@lovrabet/lovrabet-cli 2.2.0 → 2.2.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 (138) 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/diagram.js +1 -1
  46. package/lib/commands/skill/commands/install.js +1 -1
  47. package/lib/commands/skill/commands/list.js +1 -1
  48. package/lib/commands/skill/commands/push.js +1 -1
  49. package/lib/commands/skill/commands/validate.js +1 -1
  50. package/lib/commands/skill/diagram.js +1 -1
  51. package/lib/commands/skill/flags.js +1 -1
  52. package/lib/commands/skill/index.js +1 -1
  53. package/lib/commands/skill/manifest-helpers.js +1 -1
  54. package/lib/commands/skill/push-execute.js +1 -1
  55. package/lib/commands/skill/push-flow-helpers.js +1 -1
  56. package/lib/commands/skill/push-retarget.js +1 -1
  57. package/lib/commands/skill/scopes.js +1 -1
  58. package/lib/commands/skill/summary.js +1 -1
  59. package/lib/commands/skill/templates.js +1 -1
  60. package/lib/commands/skill/validate.js +1 -1
  61. package/lib/commands/sql/detail.js +1 -1
  62. package/lib/commands/sql/exec.js +1 -1
  63. package/lib/commands/sql/index.js +1 -1
  64. package/lib/commands/update.js +1 -1
  65. package/lib/commands/workspace/index.js +1 -1
  66. package/lib/config/schema.js +1 -1
  67. package/lib/constant/app.js +1 -1
  68. package/lib/constant/auth-mode.js +1 -1
  69. package/lib/constant/cli.js +1 -1
  70. package/lib/constant/defaults.js +1 -1
  71. package/lib/constant/distribution.js +1 -1
  72. package/lib/constant/domain.js +1 -1
  73. package/lib/constant/env.js +1 -1
  74. package/lib/constant/output.js +1 -1
  75. package/lib/constant/product.js +1 -1
  76. package/lib/constant/risk.js +1 -1
  77. package/lib/constant/url.js +1 -1
  78. package/lib/context.js +1 -1
  79. package/lib/core/api-client.d.ts +2 -1
  80. package/lib/core/api-client.js +1 -1
  81. package/lib/core/db-resolver.js +1 -1
  82. package/lib/core/sdk-client.js +1 -1
  83. package/lib/errors.js +1 -1
  84. package/lib/framework/build-all-flags.js +1 -1
  85. package/lib/framework/dryrun.js +1 -1
  86. package/lib/framework/flags.js +1 -1
  87. package/lib/framework/help.js +1 -1
  88. package/lib/framework/index.js +1 -1
  89. package/lib/framework/output.js +1 -1
  90. package/lib/framework/preparse.js +1 -1
  91. package/lib/framework/rate-limit.js +1 -1
  92. package/lib/framework/raw-flags.js +1 -1
  93. package/lib/framework/response.js +1 -1
  94. package/lib/framework/runner-confirmation.js +1 -1
  95. package/lib/framework/runner-error.js +1 -1
  96. package/lib/framework/runner.js +1 -1
  97. package/lib/framework/schema-export.js +1 -1
  98. package/lib/framework/service-order.js +1 -1
  99. package/lib/framework/types.js +1 -1
  100. package/lib/generated/build-info.d.ts +4 -4
  101. package/lib/generated/build-info.js +1 -1
  102. package/lib/help.js +1 -1
  103. package/lib/postinstall.js +1 -1
  104. package/lib/runtime/confirmation.js +1 -1
  105. package/lib/runtime/event.js +1 -1
  106. package/lib/runtime/index.js +1 -1
  107. package/lib/runtime/queue.js +1 -1
  108. package/lib/runtime/resolve.js +1 -1
  109. package/lib/skills/builtin-skill.js +1 -1
  110. package/lib/skills/npx-skills-add.js +1 -1
  111. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  112. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  113. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  114. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  115. package/lib/skills/runtime-skill-sync/links.js +1 -1
  116. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  117. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  118. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  119. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  120. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  121. package/lib/skills/runtime-skill-sync/push.js +1 -1
  122. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  123. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  124. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  125. package/lib/skills/runtime-skill-sync.js +1 -1
  126. package/lib/skills/skill-presence.js +1 -1
  127. package/lib/utils/apply-jq-filter.js +1 -1
  128. package/lib/utils/logger.js +1 -1
  129. package/lib/utils/lossless-json.js +1 -1
  130. package/lib/utils/params.js +1 -1
  131. package/lib/utils/platform.js +1 -1
  132. package/lib/utils/update-notice.js +1 -1
  133. package/lib/utils/version.js +1 -1
  134. package/lib/utils/write-cli-side-channel.js +1 -1
  135. package/package.json +1 -1
  136. package/skills/lovrabet/SKILL.md +4 -2
  137. package/skills/lovrabet/references/lovrabet-schedule-workflow.md +10 -4
  138. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x51c4a3,_0x3f8fe6){const _0x2eab54=a114_0x35bf,_0x12a212=_0x51c4a3();while(!![]){try{const _0x3109ce=-parseInt(_0x2eab54(0x127))/0x1*(parseInt(_0x2eab54(0x109))/0x2)+parseInt(_0x2eab54(0x10b))/0x3*(-parseInt(_0x2eab54(0x12d))/0x4)+-parseInt(_0x2eab54(0x101))/0x5+-parseInt(_0x2eab54(0x124))/0x6*(-parseInt(_0x2eab54(0x112))/0x7)+parseInt(_0x2eab54(0x125))/0x8*(-parseInt(_0x2eab54(0x122))/0x9)+parseInt(_0x2eab54(0x110))/0xa*(parseInt(_0x2eab54(0x123))/0xb)+parseInt(_0x2eab54(0x118))/0xc*(parseInt(_0x2eab54(0x113))/0xd);if(_0x3109ce===_0x3f8fe6)break;else _0x12a212['push'](_0x12a212['shift']());}catch(_0x216901){_0x12a212['push'](_0x12a212['shift']());}}}(a114_0x58ba,0x18902));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';import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';function a114_0x58ba(){const _0x1e7e18=['env','filter','local','get','skillRoots','metadataPath','name','project','1422621eklXRD','58949bBVAKe','6rdWKzn','8ELWjgc','skillMdPath','1sgEwpq','from','cache','skillCode','map','scope','41476IMkJdZ','Runtime\x20Skill\x20install\x20target\x20app\x20mismatch:\x20','builtin','localeCompare','360635iqhRYE','sort','startsWith','trim','dir','source','appCode','\x20!=\x20','238874mkCqMZ','tags','39eBYhIk','accessKey','code','isSymbolicLink','link','10UvOmxp','push','130431bizBDa','1261napuKm','isDirectory','linkedPath','scopes','isArray','69408Vbrvcw','linkedPaths'];a114_0x58ba=function(){return _0x1e7e18;};return a114_0x58ba();}export function listLocalRuntimeSkills(_0x618f59,_0x2d759a,_0x34f79d={}){const _0x2572af=a114_0x35bf,_0x4115d1=safePathSegment(_0x618f59['appCode'],_0x2572af(0x107));if(_0x2d759a[_0x2572af(0x107)]!==_0x4115d1)throw CliErrors['validation'](_0x2572af(0x12e)+_0x2d759a['appCode']+_0x2572af(0x108)+_0x4115d1);const _0x8381e1=normalizeRuntimeSkillScopes(_0x618f59['scopes']),_0x8429fb=new Set(_0x8381e1),_0x5c8999=_0x618f59[_0x2572af(0x10d)]?.['trim'](),_0x4628ef=new Map(),_0x1339c5=resolve(getRuntimeSkillCacheRoot(_0x618f59[_0x2572af(0x11a)],_0x618f59[_0x2572af(0x10c)],_0x34f79d),_0x4115d1);for(const _0x5aa882 of _0x8381e1){for(const _0xff5e08 of localSkillEntryDirs(resolve(_0x1339c5,_0x5aa882))){collectLocalRuntimeSkill(_0x4628ef,_0xff5e08,{'appCode':_0x4115d1,'scopes':_0x8429fb,'code':_0x5c8999,'source':_0x2572af(0x129)});}}for(const _0x1d1a34 of _0x2d759a[_0x2572af(0x11e)]){for(const _0x2cacfb of localSkillLinkCandidates(_0x1d1a34,_0x2d759a,_0x8429fb)){collectLocalRuntimeSkill(_0x4628ef,_0x2cacfb,{'appCode':_0x4115d1,'scopes':_0x8429fb,'code':_0x5c8999,'source':_0x2572af(0x10f),'linkedPath':_0x2cacfb});}}return Array[_0x2572af(0x128)](_0x4628ef['values']())[_0x2572af(0x102)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x25af8f){const _0x582209=a114_0x35bf;if(!existsSync(_0x25af8f))return[];return readdirSync(_0x25af8f,{'withFileTypes':!![]})[_0x582209(0x11b)](_0x2680f3=>_0x2680f3[_0x582209(0x114)]()||_0x2680f3[_0x582209(0x10e)]())[_0x582209(0x12b)](_0x417f91=>resolve(_0x25af8f,_0x417f91[_0x582209(0x120)]));}function a114_0x35bf(_0x4580d9,_0x548cb4){_0x4580d9=_0x4580d9-0xff;const _0x58ba42=a114_0x58ba();let _0x35bff2=_0x58ba42[_0x4580d9];return _0x35bff2;}function localSkillLinkCandidates(_0x36f036,_0x9e96cb,_0x57a4e7){const _0x58d483=a114_0x35bf;if(!existsSync(_0x36f036))return[];const _0x295b3e=_0x9e96cb[_0x58d483(0x107)]+'--';return readdirSync(_0x36f036,{'withFileTypes':!![]})[_0x58d483(0x11b)](_0x1ad2b7=>_0x1ad2b7[_0x58d483(0x114)]()||_0x1ad2b7[_0x58d483(0x10e)]())[_0x58d483(0x11b)](_0x214b7d=>_0x9e96cb[_0x58d483(0x12c)]===_0x58d483(0x121)||_0x214b7d['name'][_0x58d483(0x103)](_0x295b3e)||_0x57a4e7['has'](_0x58d483(0xff)))['map'](_0x513004=>resolve(_0x36f036,_0x513004[_0x58d483(0x120)]));}function collectLocalRuntimeSkill(_0x1e0e0f,_0x195132,_0x19d0c6){const _0x4a1023=a114_0x35bf,_0x2918df=resolve(_0x195132,METADATA_FILE),_0x4506a6=readMetadataIfPresent(_0x2918df);if(!_0x4506a6)return;if(_0x4506a6[_0x4a1023(0x107)]!==_0x19d0c6[_0x4a1023(0x107)])return;if(!isRuntimeSkillScope(_0x4506a6[_0x4a1023(0x12c)])||!_0x19d0c6[_0x4a1023(0x116)]['has'](_0x4506a6[_0x4a1023(0x12c)]))return;const _0x22949a=_0x4506a6[_0x4a1023(0x12a)]?.[_0x4a1023(0x104)]();if(!_0x22949a)return;if(_0x19d0c6[_0x4a1023(0x10d)]&&_0x22949a!==_0x19d0c6[_0x4a1023(0x10d)])return;const _0x1332a5=_0x4506a6[_0x4a1023(0x12c)]+':'+_0x22949a,_0x52cd80=_0x19d0c6[_0x4a1023(0x115)]?[_0x19d0c6[_0x4a1023(0x115)]]:[],_0x350f2e=_0x1e0e0f[_0x4a1023(0x11d)](_0x1332a5);if(_0x350f2e){_0x19d0c6[_0x4a1023(0x106)]==='cache'&&(_0x350f2e[_0x4a1023(0x105)]=_0x195132,_0x350f2e['cacheDir']=_0x195132,_0x350f2e[_0x4a1023(0x126)]=resolve(_0x195132,SKILL_FILE),_0x350f2e[_0x4a1023(0x11f)]=_0x2918df);for(const _0x1b8bbb of _0x52cd80){!_0x350f2e[_0x4a1023(0x119)]['includes'](_0x1b8bbb)&&_0x350f2e['linkedPaths'][_0x4a1023(0x111)](_0x1b8bbb);}_0x350f2e['linkedPaths'][_0x4a1023(0x102)]();return;}_0x1e0e0f['set'](_0x1332a5,{..._0x4506a6,'tags':Array[_0x4a1023(0x117)](_0x4506a6[_0x4a1023(0x10a)])?_0x4506a6['tags']:[],'scope':_0x4506a6[_0x4a1023(0x12c)],'source':_0x4a1023(0x11c),'dir':_0x195132,'cacheDir':_0x19d0c6['source']===_0x4a1023(0x129)?_0x195132:undefined,'skillMdPath':resolve(_0x195132,SKILL_FILE),'metadataPath':_0x2918df,'linkedPaths':_0x52cd80});}function compareLocalRuntimeSkills(_0x5d82bc,_0x1bdf16){const _0x219259=a114_0x35bf,_0x4e25e4={'personal':0x0,'company':0x1,'builtin':0x2};return _0x4e25e4[_0x5d82bc[_0x219259(0x12c)]]-_0x4e25e4[_0x1bdf16[_0x219259(0x12c)]]||_0x5d82bc[_0x219259(0x12a)]['localeCompare'](_0x1bdf16[_0x219259(0x12a)])||_0x5d82bc['dir'][_0x219259(0x100)](_0x1bdf16[_0x219259(0x105)]);}
1
+ (function(_0x109219,_0x5e01a6){const _0x4e0e2f=a114_0x5c80,_0x92b298=_0x109219();while(!![]){try{const _0x5e4c37=-parseInt(_0x4e0e2f(0x11e))/0x1*(-parseInt(_0x4e0e2f(0x117))/0x2)+parseInt(_0x4e0e2f(0x11a))/0x3+-parseInt(_0x4e0e2f(0x10f))/0x4+-parseInt(_0x4e0e2f(0x110))/0x5+parseInt(_0x4e0e2f(0x120))/0x6*(parseInt(_0x4e0e2f(0x12f))/0x7)+-parseInt(_0x4e0e2f(0x11c))/0x8+-parseInt(_0x4e0e2f(0x125))/0x9;if(_0x5e4c37===_0x5e01a6)break;else _0x92b298['push'](_0x92b298['shift']());}catch(_0x4dbaa9){_0x92b298['push'](_0x92b298['shift']());}}}(a114_0x22e0,0x3ddcb));import{existsSync,readdirSync}from'node:fs';import{resolve}from'node:path';function a114_0x5c80(_0x5279ff,_0x1b7f44){_0x5279ff=_0x5279ff-0x106;const _0x22e035=a114_0x22e0();let _0x5c806e=_0x22e035[_0x5279ff];return _0x5c806e;}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(_0x4618fd,_0xe2ec91,_0x497af1={}){const _0x520c5e=a114_0x5c80,_0x29dc7a=safePathSegment(_0x4618fd['appCode'],_0x520c5e(0x126));if(_0xe2ec91['appCode']!==_0x29dc7a)throw CliErrors[_0x520c5e(0x12a)](_0x520c5e(0x111)+_0xe2ec91[_0x520c5e(0x126)]+_0x520c5e(0x10d)+_0x29dc7a);const _0x297648=normalizeRuntimeSkillScopes(_0x4618fd[_0x520c5e(0x133)]),_0x577f6e=new Set(_0x297648),_0x2e8521=_0x4618fd['code']?.['trim'](),_0x3e7b26=new Map(),_0x500ceb=resolve(getRuntimeSkillCacheRoot(_0x4618fd[_0x520c5e(0x129)],_0x4618fd[_0x520c5e(0x113)],_0x497af1),_0x29dc7a);for(const _0x3ab0fa of _0x297648){for(const _0x1caafc of localSkillEntryDirs(resolve(_0x500ceb,_0x3ab0fa))){collectLocalRuntimeSkill(_0x3e7b26,_0x1caafc,{'appCode':_0x29dc7a,'scopes':_0x577f6e,'code':_0x2e8521,'source':_0x520c5e(0x10e)});}}for(const _0x4afd0e of _0xe2ec91[_0x520c5e(0x11b)]){for(const _0x1d97ce of localSkillLinkCandidates(_0x4afd0e,_0xe2ec91,_0x577f6e)){collectLocalRuntimeSkill(_0x3e7b26,_0x1d97ce,{'appCode':_0x29dc7a,'scopes':_0x577f6e,'code':_0x2e8521,'source':_0x520c5e(0x134),'linkedPath':_0x1d97ce});}}return Array['from'](_0x3e7b26[_0x520c5e(0x12c)]())['sort'](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x367f69){const _0x181d57=a114_0x5c80;if(!existsSync(_0x367f69))return[];return readdirSync(_0x367f69,{'withFileTypes':!![]})[_0x181d57(0x108)](_0x444445=>_0x444445[_0x181d57(0x112)]()||_0x444445[_0x181d57(0x116)]())['map'](_0x2378aa=>resolve(_0x367f69,_0x2378aa[_0x181d57(0x119)]));}function localSkillLinkCandidates(_0x55330a,_0x46e867,_0x253f94){const _0x5612c5=a114_0x5c80;if(!existsSync(_0x55330a))return[];const _0x5590ea=_0x46e867[_0x5612c5(0x126)]+'--';return readdirSync(_0x55330a,{'withFileTypes':!![]})[_0x5612c5(0x108)](_0x38a54d=>_0x38a54d[_0x5612c5(0x112)]()||_0x38a54d[_0x5612c5(0x116)]())[_0x5612c5(0x108)](_0x111220=>_0x46e867['scope']===_0x5612c5(0x106)||_0x111220[_0x5612c5(0x119)][_0x5612c5(0x132)](_0x5590ea)||_0x253f94[_0x5612c5(0x127)](_0x5612c5(0x10c)))[_0x5612c5(0x11d)](_0x56d180=>resolve(_0x55330a,_0x56d180[_0x5612c5(0x119)]));}function collectLocalRuntimeSkill(_0x28be9e,_0x5e2b53,_0x2a5190){const _0xcb67e4=a114_0x5c80,_0x40311c=resolve(_0x5e2b53,METADATA_FILE),_0x3ba663=readMetadataIfPresent(_0x40311c);if(!_0x3ba663)return;if(_0x3ba663[_0xcb67e4(0x126)]!==_0x2a5190[_0xcb67e4(0x126)])return;if(!isRuntimeSkillScope(_0x3ba663['scope'])||!_0x2a5190[_0xcb67e4(0x133)][_0xcb67e4(0x127)](_0x3ba663[_0xcb67e4(0x124)]))return;const _0x144423=_0x3ba663[_0xcb67e4(0x123)]?.[_0xcb67e4(0x10a)]();if(!_0x144423)return;if(_0x2a5190[_0xcb67e4(0x118)]&&_0x144423!==_0x2a5190[_0xcb67e4(0x118)])return;const _0x54468b=_0x3ba663['scope']+':'+_0x144423,_0xef9d68=_0x2a5190['linkedPath']?[_0x2a5190[_0xcb67e4(0x12e)]]:[],_0x35f0ae=_0x28be9e[_0xcb67e4(0x10b)](_0x54468b);if(_0x35f0ae){_0x2a5190[_0xcb67e4(0x122)]===_0xcb67e4(0x10e)&&(_0x35f0ae[_0xcb67e4(0x115)]=_0x5e2b53,_0x35f0ae[_0xcb67e4(0x107)]=_0x5e2b53,_0x35f0ae[_0xcb67e4(0x121)]=resolve(_0x5e2b53,SKILL_FILE),_0x35f0ae['metadataPath']=_0x40311c);for(const _0x572d54 of _0xef9d68){!_0x35f0ae[_0xcb67e4(0x109)][_0xcb67e4(0x11f)](_0x572d54)&&_0x35f0ae['linkedPaths'][_0xcb67e4(0x131)](_0x572d54);}_0x35f0ae[_0xcb67e4(0x109)][_0xcb67e4(0x12d)]();return;}_0x28be9e[_0xcb67e4(0x130)](_0x54468b,{..._0x3ba663,'tags':Array[_0xcb67e4(0x114)](_0x3ba663[_0xcb67e4(0x128)])?_0x3ba663[_0xcb67e4(0x128)]:[],'scope':_0x3ba663[_0xcb67e4(0x124)],'source':'local','dir':_0x5e2b53,'cacheDir':_0x2a5190[_0xcb67e4(0x122)]===_0xcb67e4(0x10e)?_0x5e2b53:undefined,'skillMdPath':resolve(_0x5e2b53,SKILL_FILE),'metadataPath':_0x40311c,'linkedPaths':_0xef9d68});}function a114_0x22e0(){const _0x35497b=['cacheDir','filter','linkedPaths','trim','get','builtin','\x20!=\x20','cache','1887860jULfPd','418605bprytU','Runtime\x20Skill\x20install\x20target\x20app\x20mismatch:\x20','isDirectory','accessKey','isArray','dir','isSymbolicLink','2nfmvSk','code','name','521895lQRVlI','skillRoots','689200WgMLIZ','map','366563yuLaBG','includes','1079502DGixTg','skillMdPath','source','skillCode','scope','46251DWsDvd','appCode','has','tags','env','validation','localeCompare','values','sort','linkedPath','14mGHDAT','set','push','startsWith','scopes','link','project'];a114_0x22e0=function(){return _0x35497b;};return a114_0x22e0();}function compareLocalRuntimeSkills(_0x5e4d39,_0x30b2ca){const _0x5c4e9a=a114_0x5c80,_0x43fd80={'personal':0x0,'company':0x1,'builtin':0x2};return _0x43fd80[_0x5e4d39['scope']]-_0x43fd80[_0x30b2ca[_0x5c4e9a(0x124)]]||_0x5e4d39['skillCode'][_0x5c4e9a(0x12b)](_0x30b2ca[_0x5c4e9a(0x123)])||_0x5e4d39[_0x5c4e9a(0x115)][_0x5c4e9a(0x12b)](_0x30b2ca[_0x5c4e9a(0x115)]);}
@@ -1 +1 @@
1
- (function(_0x4e85a5,_0x3f8f86){const _0x213c8e=a115_0x584b,_0x4be3d5=_0x4e85a5();while(!![]){try{const _0x59a609=-parseInt(_0x213c8e(0x1c5))/0x1*(parseInt(_0x213c8e(0x1bf))/0x2)+-parseInt(_0x213c8e(0x1d6))/0x3*(parseInt(_0x213c8e(0x1c2))/0x4)+parseInt(_0x213c8e(0x1bd))/0x5*(parseInt(_0x213c8e(0x1ce))/0x6)+-parseInt(_0x213c8e(0x1c9))/0x7*(parseInt(_0x213c8e(0x1cf))/0x8)+parseInt(_0x213c8e(0x1d1))/0x9+-parseInt(_0x213c8e(0x1d8))/0xa*(-parseInt(_0x213c8e(0x1a9))/0xb)+-parseInt(_0x213c8e(0x1d2))/0xc*(parseInt(_0x213c8e(0x1b0))/0xd);if(_0x59a609===_0x3f8f86)break;else _0x4be3d5['push'](_0x4be3d5['shift']());}catch(_0x46df6e){_0x4be3d5['push'](_0x4be3d5['shift']());}}}(a115_0x4252,0xdcd39));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(_0x388bd8){const _0x59f0b2=a115_0x584b;return _0x388bd8[_0x59f0b2(0x1d7)]??Buffer[_0x59f0b2(0x1c3)](_0x388bd8['content']??'','utf8');}export function fileText(_0x38f5ec){const _0x5f4903=a115_0x584b;return fileContent(_0x38f5ec)[_0x5f4903(0x1b2)]('utf8');}export function normalizeLocalFiles(_0x2b9e8d){const _0x171cd3=a115_0x584b;if(!Array[_0x171cd3(0x1c8)](_0x2b9e8d)||_0x2b9e8d[_0x171cd3(0x1b5)]===0x0)return[];const _0x34e0cf=new Map();for(const _0x435ace of _0x2b9e8d){if(!_0x435ace||typeof _0x435ace!==_0x171cd3(0x1d9)||typeof _0x435ace['path']!==_0x171cd3(0x1ba))throw CliErrors['validation'](_0x171cd3(0x1af));const _0x2211f5=normalizeSkillRelativePath(_0x435ace[_0x171cd3(0x1b7)]);if(_0x34e0cf[_0x171cd3(0x1a8)](_0x2211f5))throw CliErrors[_0x171cd3(0x1bc)]('Duplicate\x20Skill\x20file\x20path:\x20'+_0x2211f5);if(_0x435ace[_0x171cd3(0x1d7)]!==undefined&&!Buffer[_0x171cd3(0x1cd)](_0x435ace[_0x171cd3(0x1d7)]))throw CliErrors[_0x171cd3(0x1bc)]('Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20'+_0x2211f5);if(_0x435ace['bytes']===undefined&&typeof _0x435ace[_0x171cd3(0x1b4)]!==_0x171cd3(0x1ba))throw CliErrors[_0x171cd3(0x1bc)](_0x171cd3(0x1ab)+_0x2211f5);const _0x225dbc=fileContent(_0x435ace);_0x34e0cf[_0x171cd3(0x1aa)](_0x2211f5,{'path':_0x2211f5,'bytes':_0x225dbc});}return Array[_0x171cd3(0x1c3)](_0x34e0cf[_0x171cd3(0x1d4)]())[_0x171cd3(0x1c4)](compareSkillFiles);}export function normalizeManifestFiles(_0x7b1f97){const _0x2b0a7b=a115_0x584b;if(!Array[_0x2b0a7b(0x1c8)](_0x7b1f97)||_0x7b1f97[_0x2b0a7b(0x1b5)]===0x0)return[];const _0x21cff6=new Map();for(const _0x3a6bf7 of _0x7b1f97){if(!_0x3a6bf7||typeof _0x3a6bf7!==_0x2b0a7b(0x1d9)||typeof _0x3a6bf7[_0x2b0a7b(0x1b7)]!==_0x2b0a7b(0x1ba))throw CliErrors['validation'](_0x2b0a7b(0x1af));const _0x1c262d=normalizeSkillRelativePath(_0x3a6bf7[_0x2b0a7b(0x1b7)]);if(_0x21cff6['has'](_0x1c262d))throw CliErrors[_0x2b0a7b(0x1bc)](_0x2b0a7b(0x1d3)+_0x1c262d);if(!isSha256Hex(_0x3a6bf7[_0x2b0a7b(0x1ac)]))throw CliErrors[_0x2b0a7b(0x1bc)](_0x2b0a7b(0x1c7)+_0x1c262d);if(!Number['isSafeInteger'](_0x3a6bf7[_0x2b0a7b(0x1c6)])||_0x3a6bf7[_0x2b0a7b(0x1c6)]<0x0)throw CliErrors['validation'](_0x2b0a7b(0x1ca)+_0x1c262d);_0x21cff6['set'](_0x1c262d,{'path':_0x1c262d,'sha256':_0x3a6bf7['sha256'][_0x2b0a7b(0x1d0)](),'size':_0x3a6bf7[_0x2b0a7b(0x1c6)]});}return Array[_0x2b0a7b(0x1c3)](_0x21cff6[_0x2b0a7b(0x1d4)]())['sort'](compareSkillFiles);}export function scanSkillDirectory(_0x12512e,_0x3985bc={}){const _0x493429=realpathSync(_0x12512e),_0x274f67=canonicalExcludedFilePaths(_0x3985bc['excludedFilePaths']),_0x130282=[];function _0x2be727(_0x2f3d79){const _0x3ec9fd=a115_0x584b,_0x112e70=readdirSync(_0x2f3d79,{'withFileTypes':!![]})[_0x3ec9fd(0x1c4)]((_0x414d62,_0x76d7e0)=>_0x414d62[_0x3ec9fd(0x1d5)][_0x3ec9fd(0x1cb)](_0x76d7e0['name']));for(const _0x8234b3 of _0x112e70){if(_0x8234b3[_0x3ec9fd(0x1b1)]()&&IGNORED_DIR_NAMES['has'](_0x8234b3['name']))continue;if(IGNORED_FILE_NAMES[_0x3ec9fd(0x1a8)](_0x8234b3[_0x3ec9fd(0x1d5)]))continue;const _0x3f7d56=resolve(_0x2f3d79,_0x8234b3[_0x3ec9fd(0x1d5)]);if(isExcludedFilePath(_0x3f7d56,_0x274f67))continue;if(_0x8234b3[_0x3ec9fd(0x1ae)]())throw CliErrors[_0x3ec9fd(0x1bc)](_0x3ec9fd(0x1b9)+_0x3f7d56);const _0x324185=toPosixPath(relative(_0x493429,_0x3f7d56));if(_0x8234b3[_0x3ec9fd(0x1b1)]()){_0x2be727(_0x3f7d56);continue;}if(!_0x8234b3[_0x3ec9fd(0x1b8)]())continue;validateSkillRelativePath(_0x324185);const _0x5206e2=readFileSync(_0x3f7d56);_0x130282['push']({'path':_0x324185,'bytes':_0x5206e2});}}return _0x2be727(_0x493429),normalizeLocalFiles(_0x130282);}function canonicalExcludedFilePaths(_0x36fba4){const _0xcc217a=a115_0x584b,_0x54cc5c=new Set();for(const _0xea2326 of _0x36fba4??[]){const _0x4a23cd=resolve(_0xea2326);_0x54cc5c['add'](_0x4a23cd);try{_0x54cc5c[_0xcc217a(0x1bb)](realpathSync(_0x4a23cd));}catch{}}return _0x54cc5c;}function isExcludedFilePath(_0x136daf,_0x25dc36){const _0x13f157=a115_0x584b;if(_0x25dc36['has'](_0x136daf))return!![];if(_0x25dc36['size']===0x0)return![];try{return _0x25dc36[_0x13f157(0x1a8)](realpathSync(_0x136daf));}catch{return![];}}function a115_0x584b(_0x1b03dc,_0x4ef221){_0x1b03dc=_0x1b03dc-0x1a7;const _0x4252a2=a115_0x4252();let _0x584b1c=_0x4252a2[_0x1b03dc];return _0x584b1c;}export function compareSkillFiles(_0x23f06b,_0x16b481){const _0x540d11=a115_0x584b;if(_0x23f06b[_0x540d11(0x1b7)]===SKILL_FILE)return _0x16b481['path']===SKILL_FILE?0x0:-0x1;if(_0x16b481[_0x540d11(0x1b7)]===SKILL_FILE)return 0x1;return Buffer[_0x540d11(0x1b3)](Buffer[_0x540d11(0x1c3)](_0x23f06b[_0x540d11(0x1b7)],'utf8'),Buffer['from'](_0x16b481[_0x540d11(0x1b7)],'utf8'));}export function normalizeSkillRelativePath(_0x5bac3d){const _0x30cd1d=a115_0x584b,_0x53f340=toPosixPath(_0x5bac3d[_0x30cd1d(0x1cc)]());return validateSkillRelativePath(_0x53f340),_0x53f340;}function a115_0x4252(){const _0x3e2464=['has','16842925kVMLlK','set','Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20','sha256','includes','isSymbolicLink','Skill\x20file\x20path\x20must\x20be\x20text.','26vVqubX','isDirectory','toString','compare','content','length','Unsafe\x20Skill\x20file\x20path:\x20','path','isFile','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','string','add','validation','10EVDeiG','split','174gOzKCr','test','startsWith','100HHqZaV','from','sort','10192iKeRhi','size','Skill\x20file\x20sha256\x20is\x20invalid:\x20','isArray','363293QwEbbx','Skill\x20file\x20size\x20is\x20invalid:\x20','localeCompare','trim','isBuffer','3536634JBmqLd','272ubufSs','toLowerCase','13550067PDNrHY','2942196mPkuqr','Duplicate\x20Skill\x20file\x20path:\x20','values','name','20337vvNXKX','bytes','10RgAoVo','object','replace'];a115_0x4252=function(){return _0x3e2464;};return a115_0x4252();}export function validateSkillRelativePath(_0x20bd71){const _0x47a7a3=a115_0x584b;if(!_0x20bd71||_0x20bd71[_0x47a7a3(0x1c1)]('/')||_0x20bd71[_0x47a7a3(0x1ad)]('//'))throw CliErrors['validation'](_0x47a7a3(0x1b6)+_0x20bd71);for(const _0x2cdf30 of _0x20bd71[_0x47a7a3(0x1be)]('/')){if(!_0x2cdf30||_0x2cdf30==='.'||_0x2cdf30==='..')throw CliErrors[_0x47a7a3(0x1bc)](_0x47a7a3(0x1b6)+_0x20bd71);}}export function toPosixPath(_0x32b874){const _0x2caa34=a115_0x584b;return _0x32b874[_0x2caa34(0x1a7)](/\\/g,'/');}export function isSha256Hex(_0x4814cb){const _0xd9936=a115_0x584b;return typeof _0x4814cb===_0xd9936(0x1ba)&&/^[a-fA-F0-9]{64}$/[_0xd9936(0x1c0)](_0x4814cb);}
1
+ (function(_0x3aa6f5,_0x22db97){const _0x264508=a115_0x576a,_0x36b1a0=_0x3aa6f5();while(!![]){try{const _0x580fc6=-parseInt(_0x264508(0xa1))/0x1*(parseInt(_0x264508(0x96))/0x2)+-parseInt(_0x264508(0xac))/0x3+-parseInt(_0x264508(0xb4))/0x4*(parseInt(_0x264508(0x99))/0x5)+-parseInt(_0x264508(0xa8))/0x6*(-parseInt(_0x264508(0x8e))/0x7)+parseInt(_0x264508(0x8c))/0x8*(parseInt(_0x264508(0x90))/0x9)+-parseInt(_0x264508(0xa6))/0xa*(-parseInt(_0x264508(0xab))/0xb)+-parseInt(_0x264508(0x91))/0xc*(-parseInt(_0x264508(0xa9))/0xd);if(_0x580fc6===_0x22db97)break;else _0x36b1a0['push'](_0x36b1a0['shift']());}catch(_0x1f96ff){_0x36b1a0['push'](_0x36b1a0['shift']());}}}(a115_0xe23c,0x52e36));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(_0x74ad2b){return _0x74ad2b['bytes']??Buffer['from'](_0x74ad2b['content']??'','utf8');}export function fileText(_0x266d6d){const _0x2fcd9c=a115_0x576a;return fileContent(_0x266d6d)[_0x2fcd9c(0x9b)]('utf8');}export function normalizeLocalFiles(_0x4340dd){const _0x5534ca=a115_0x576a;if(!Array[_0x5534ca(0x8b)](_0x4340dd)||_0x4340dd[_0x5534ca(0xae)]===0x0)return[];const _0x5886d6=new Map();for(const _0x687356 of _0x4340dd){if(!_0x687356||typeof _0x687356!=='object'||typeof _0x687356[_0x5534ca(0x98)]!=='string')throw CliErrors[_0x5534ca(0xa4)](_0x5534ca(0xb5));const _0x534972=normalizeSkillRelativePath(_0x687356[_0x5534ca(0x98)]);if(_0x5886d6[_0x5534ca(0x9d)](_0x534972))throw CliErrors[_0x5534ca(0xa4)]('Duplicate\x20Skill\x20file\x20path:\x20'+_0x534972);if(_0x687356[_0x5534ca(0x9f)]!==undefined&&!Buffer['isBuffer'](_0x687356[_0x5534ca(0x9f)]))throw CliErrors['validation'](_0x5534ca(0xa0)+_0x534972);if(_0x687356[_0x5534ca(0x9f)]===undefined&&typeof _0x687356[_0x5534ca(0x9a)]!==_0x5534ca(0xa7))throw CliErrors['validation'](_0x5534ca(0xa2)+_0x534972);const _0x322d3a=fileContent(_0x687356);_0x5886d6[_0x5534ca(0x9c)](_0x534972,{'path':_0x534972,'bytes':_0x322d3a});}return Array[_0x5534ca(0xb7)](_0x5886d6[_0x5534ca(0xad)]())[_0x5534ca(0xaa)](compareSkillFiles);}export function normalizeManifestFiles(_0x2cd7a4){const _0x532ca6=a115_0x576a;if(!Array[_0x532ca6(0x8b)](_0x2cd7a4)||_0x2cd7a4[_0x532ca6(0xae)]===0x0)return[];const _0x2adc5b=new Map();for(const _0x4323c8 of _0x2cd7a4){if(!_0x4323c8||typeof _0x4323c8!==_0x532ca6(0x95)||typeof _0x4323c8[_0x532ca6(0x98)]!=='string')throw CliErrors[_0x532ca6(0xa4)]('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x27f0eb=normalizeSkillRelativePath(_0x4323c8[_0x532ca6(0x98)]);if(_0x2adc5b['has'](_0x27f0eb))throw CliErrors[_0x532ca6(0xa4)](_0x532ca6(0x9e)+_0x27f0eb);if(!isSha256Hex(_0x4323c8[_0x532ca6(0x8d)]))throw CliErrors['validation'](_0x532ca6(0x92)+_0x27f0eb);if(!Number['isSafeInteger'](_0x4323c8[_0x532ca6(0x8f)])||_0x4323c8[_0x532ca6(0x8f)]<0x0)throw CliErrors[_0x532ca6(0xa4)](_0x532ca6(0xb8)+_0x27f0eb);_0x2adc5b['set'](_0x27f0eb,{'path':_0x27f0eb,'sha256':_0x4323c8[_0x532ca6(0x8d)][_0x532ca6(0xa5)](),'size':_0x4323c8[_0x532ca6(0x8f)]});}return Array[_0x532ca6(0xb7)](_0x2adc5b[_0x532ca6(0xad)]())[_0x532ca6(0xaa)](compareSkillFiles);}export function scanSkillDirectory(_0x5381e0,_0x86722b={}){const _0x257460=a115_0x576a,_0x21bd8c=realpathSync(_0x5381e0),_0x327c05=canonicalExcludedFilePaths(_0x86722b[_0x257460(0x93)]),_0xa937f5=[];function _0x41362f(_0x49ac45){const _0x16efc7=_0x257460,_0x229da2=readdirSync(_0x49ac45,{'withFileTypes':!![]})[_0x16efc7(0xaa)]((_0x57a28f,_0x521058)=>_0x57a28f[_0x16efc7(0xb6)][_0x16efc7(0xb0)](_0x521058[_0x16efc7(0xb6)]));for(const _0x273229 of _0x229da2){if(_0x273229['isDirectory']()&&IGNORED_DIR_NAMES['has'](_0x273229['name']))continue;if(IGNORED_FILE_NAMES['has'](_0x273229[_0x16efc7(0xb6)]))continue;const _0x2f4a1e=resolve(_0x49ac45,_0x273229[_0x16efc7(0xb6)]);if(isExcludedFilePath(_0x2f4a1e,_0x327c05))continue;if(_0x273229['isSymbolicLink']())throw CliErrors[_0x16efc7(0xa4)](_0x16efc7(0x97)+_0x2f4a1e);const _0x54795f=toPosixPath(relative(_0x21bd8c,_0x2f4a1e));if(_0x273229['isDirectory']()){_0x41362f(_0x2f4a1e);continue;}if(!_0x273229[_0x16efc7(0xb3)]())continue;validateSkillRelativePath(_0x54795f);const _0x552285=readFileSync(_0x2f4a1e);_0xa937f5['push']({'path':_0x54795f,'bytes':_0x552285});}}return _0x41362f(_0x21bd8c),normalizeLocalFiles(_0xa937f5);}function canonicalExcludedFilePaths(_0x4ec992){const _0x5e4d64=a115_0x576a,_0x33d3ff=new Set();for(const _0x1b86fb of _0x4ec992??[]){const _0x2c8ae4=resolve(_0x1b86fb);_0x33d3ff[_0x5e4d64(0xa3)](_0x2c8ae4);try{_0x33d3ff[_0x5e4d64(0xa3)](realpathSync(_0x2c8ae4));}catch{}}return _0x33d3ff;}function isExcludedFilePath(_0x53a4af,_0x225186){const _0x24d9c8=a115_0x576a;if(_0x225186[_0x24d9c8(0x9d)](_0x53a4af))return!![];if(_0x225186[_0x24d9c8(0x8f)]===0x0)return![];try{return _0x225186[_0x24d9c8(0x9d)](realpathSync(_0x53a4af));}catch{return![];}}export function compareSkillFiles(_0x3e5480,_0x28e1c0){const _0x445ba5=a115_0x576a;if(_0x3e5480[_0x445ba5(0x98)]===SKILL_FILE)return _0x28e1c0[_0x445ba5(0x98)]===SKILL_FILE?0x0:-0x1;if(_0x28e1c0[_0x445ba5(0x98)]===SKILL_FILE)return 0x1;return Buffer['compare'](Buffer[_0x445ba5(0xb7)](_0x3e5480[_0x445ba5(0x98)],_0x445ba5(0x8a)),Buffer[_0x445ba5(0xb7)](_0x28e1c0[_0x445ba5(0x98)],_0x445ba5(0x8a)));}export function normalizeSkillRelativePath(_0x5d8a7f){const _0x41014d=a115_0x576a,_0x576cff=toPosixPath(_0x5d8a7f[_0x41014d(0xaf)]());return validateSkillRelativePath(_0x576cff),_0x576cff;}export function validateSkillRelativePath(_0x2bbf45){const _0xe845ab=a115_0x576a;if(!_0x2bbf45||_0x2bbf45[_0xe845ab(0xb1)]('/')||_0x2bbf45[_0xe845ab(0xb2)]('//'))throw CliErrors['validation'](_0xe845ab(0xb9)+_0x2bbf45);for(const _0x5bdc7c of _0x2bbf45['split']('/')){if(!_0x5bdc7c||_0x5bdc7c==='.'||_0x5bdc7c==='..')throw CliErrors[_0xe845ab(0xa4)]('Unsafe\x20Skill\x20file\x20path:\x20'+_0x2bbf45);}}function a115_0xe23c(){const _0x2b10a5=['isArray','24nycXTn','sha256','7fdobil','size','290349MiucGj','4157628oGfCvT','Skill\x20file\x20sha256\x20is\x20invalid:\x20','excludedFilePaths','replace','object','2fOWRhO','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','path','32590AgZibM','content','toString','set','has','Duplicate\x20Skill\x20file\x20path:\x20','bytes','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','387066ImyLJK','Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20','add','validation','toLowerCase','50920xHTFKN','string','3298434VltUne','13RNQYVi','sort','242oKvWDN','763791uyqQdM','values','length','trim','localeCompare','startsWith','includes','isFile','76kGntMV','Skill\x20file\x20path\x20must\x20be\x20text.','name','from','Skill\x20file\x20size\x20is\x20invalid:\x20','Unsafe\x20Skill\x20file\x20path:\x20','utf8'];a115_0xe23c=function(){return _0x2b10a5;};return a115_0xe23c();}export function toPosixPath(_0x31dffa){const _0x44d3fd=a115_0x576a;return _0x31dffa[_0x44d3fd(0x94)](/\\/g,'/');}function a115_0x576a(_0x50a930,_0x487be2){_0x50a930=_0x50a930-0x8a;const _0xe23c0b=a115_0xe23c();let _0x576ab2=_0xe23c0b[_0x50a930];return _0x576ab2;}export function isSha256Hex(_0x20467f){return typeof _0x20467f==='string'&&/^[a-fA-F0-9]{64}$/['test'](_0x20467f);}
@@ -1 +1 @@
1
- (function(_0x4c6088,_0x337c44){const _0x3e58d5=a116_0x51ef,_0x26868a=_0x4c6088();while(!![]){try{const _0xf22af3=parseInt(_0x3e58d5(0xa1))/0x1+-parseInt(_0x3e58d5(0xc4))/0x2*(-parseInt(_0x3e58d5(0xb7))/0x3)+-parseInt(_0x3e58d5(0xb2))/0x4*(parseInt(_0x3e58d5(0xb9))/0x5)+parseInt(_0x3e58d5(0xbe))/0x6+-parseInt(_0x3e58d5(0x9c))/0x7*(-parseInt(_0x3e58d5(0x92))/0x8)+-parseInt(_0x3e58d5(0x94))/0x9*(-parseInt(_0x3e58d5(0x9b))/0xa)+-parseInt(_0x3e58d5(0xac))/0xb;if(_0xf22af3===_0x337c44)break;else _0x26868a['push'](_0x26868a['shift']());}catch(_0xb96385){_0x26868a['push'](_0x26868a['shift']());}}}(a116_0x3324,0xcd365));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';function a116_0x3324(){const _0x3df250=['length','5838276mPkaJR','description:\x20','replace','fileHashes','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','join','66242fawYxt','.\x20Changed\x20file:\x20','errors','displayName','utf8','paths','---\x0a','find','12960cIQYvN','trimEnd','13004028uFVXoK','name','match','map','---','isFile','test','10nXXjHz','2940kmfVZT','stringify','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20','flow','606316bJconk','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','filter','\x0a---\x0a\x0a','contents','env','name:\x20','displayName:\x20','Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20','keys','trim','22739431aZCgfw','has','slice','contentHash','Runtime\x20Skill\x20package\x20is\x20missing\x20','Managed\x20file\x20was\x20removed\x20locally:\x20','68FsLwvj','set','skillName','delete','Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20','15QDvbaz','description','283085FDwVRa','path','validation','toString'];a116_0x3324=function(){return _0x3df250;};return a116_0x3324();}import{fileContent,fileText,normalizeLocalFiles}from'./local-files.js';import{buildMetadata,readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillDir}from'./paths.js';function a116_0x51ef(_0x3828e7,_0x53cac0){_0x3828e7=_0x3828e7-0x8e;const _0x33243b=a116_0x3324();let _0x51efe8=_0x33243b[_0x3828e7];return _0x51efe8;}import{extractDownloadedPackage,requirePackageBytes}from'./zip-package.js';export function materializeRuntimeSkill(_0x3e66c6,_0x3f584c,_0x23d784){const _0x42ef18=a116_0x51ef,_0x1dc582=requireSkillCode(_0x3e66c6),_0x519990=requirePackageBytes(_0x1dc582,_0x23d784['packageBytes']),_0xb407a9=extractDownloadedPackage(_0x519990),_0x375f6f=_0xb407a9[_0x42ef18(0x91)](_0x1c7980=>_0x1c7980[_0x42ef18(0xba)]===SKILL_FILE);if(!_0x375f6f)throw CliErrors['validation'](_0x42ef18(0xb0)+SKILL_FILE+':\x20'+_0x1dc582);const _0x4f2abe=withMaterializedSkillFrontmatter(_0xb407a9,_0x3e66c6,_0x1dc582),_0x1f706a=_0x4f2abe[_0x42ef18(0x91)](_0x35fa35=>_0x35fa35[_0x42ef18(0xba)]===SKILL_FILE),_0x967c27=fileText(_0x1f706a),_0x5f2b44=getRuntimeSkillDir(_0x23d784[_0x42ef18(0xa6)],_0x23d784['accessKey'],_0x23d784['appCode'],_0x3f584c,_0x1dc582,_0x23d784[_0x42ef18(0x8f)]),_0x574ab3=resolve(_0x5f2b44,SKILL_FILE),_0x349a68=resolve(_0x5f2b44,METADATA_FILE),_0x2da5de=contentHash(_0x967c27),_0xe7427a=readMetadataIfPresent(_0x349a68)?.[_0x42ef18(0xc1)];ensurePulledFilesCanBeOverwritten(_0x5f2b44,_0x349a68,_0x4f2abe,_0x23d784['force']===!![]),mkdirSync(_0x5f2b44,{'recursive':!![],'mode':0x1c0});const _0x3574f4=existsSync(_0x574ab3)?readFileSync(_0x574ab3,_0x42ef18(0x8e)):undefined;return materializeFiles(_0x5f2b44,_0x4f2abe),removeStaleManagedFiles(_0x5f2b44,_0xe7427a,_0x4f2abe),writeJsonAtomic(_0x349a68,buildMetadata(_0x3e66c6,_0x3f584c,_0x23d784['appCode'],_0x2da5de,_0x23d784['pulledAt'],_0x4f2abe,_0x519990)),{'skill':_0x3e66c6,'scope':_0x3f584c,'dir':_0x5f2b44,'skillMdPath':_0x574ab3,'metadataPath':_0x349a68,'contentHash':_0x2da5de,'changed':_0x3574f4!==_0x967c27};}function withMaterializedSkillFrontmatter(_0x4c26d5,_0x34efa9,_0x44d601){const _0x371302=a116_0x51ef,_0x40a598=skillDisplayName(_0x34efa9,_0x44d601),_0x368eeb=_0x34efa9[_0x371302(0xb8)]?.[_0x371302(0xab)]()||_0x40a598||_0x44d601;return normalizeLocalFiles(_0x4c26d5)[_0x371302(0x97)](_0x4e44df=>{const _0x6660c=_0x371302,_0x5d7a7d=fileText(_0x4e44df);if(_0x4e44df[_0x6660c(0xba)]!==SKILL_FILE)return _0x4e44df;if(hasYamlFrontmatter(_0x5d7a7d))return{'path':_0x4e44df[_0x6660c(0xba)],'content':withSyncedDisplayName(_0x5d7a7d,_0x40a598)};return{'path':_0x4e44df[_0x6660c(0xba)],'content':prependSkillFrontmatter(_0x5d7a7d,{'name':_0x44d601,'displayName':_0x40a598,'description':_0x368eeb})};});}function hasYamlFrontmatter(_0x8eab52){const _0x5e0b92=a116_0x51ef;return/^\uFEFF?---\s*\r?\n/[_0x5e0b92(0x9a)](_0x8eab52);}function prependSkillFrontmatter(_0xf8d593,_0x3f2c97){const _0x1a7b24=a116_0x51ef,_0x39a84e=_0xf8d593[_0x1a7b24(0xc0)](/^\uFEFF/,'');return[_0x1a7b24(0x98),_0x1a7b24(0xa7)+yamlString(_0x3f2c97[_0x1a7b24(0x95)]),_0x3f2c97['displayName']?_0x1a7b24(0xa8)+yamlString(_0x3f2c97[_0x1a7b24(0xc7)]):undefined,_0x1a7b24(0xbf)+yamlString(_0x3f2c97[_0x1a7b24(0xb8)]),_0x1a7b24(0x98),'',_0x39a84e][_0x1a7b24(0xa3)](_0x17b2cd=>_0x17b2cd!==undefined)[_0x1a7b24(0xc3)]('\x0a');}function yamlString(_0x1f6186){const _0x33a225=a116_0x51ef;return JSON[_0x33a225(0x9d)](_0x1f6186[_0x33a225(0xc0)](/\r/g,'')[_0x33a225(0xab)]());}function skillDisplayName(_0x118703,_0x42c023){const _0x13a504=a116_0x51ef,_0x39ac69=_0x118703[_0x13a504(0xb4)]?.[_0x13a504(0xab)]();return _0x39ac69||_0x42c023;}function withSyncedDisplayName(_0x421d9f,_0x50d0e2){const _0x47c121=a116_0x51ef,_0x249cfa=_0x421d9f[_0x47c121(0x96)](/^(\uFEFF?)---\s*\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x249cfa)return _0x421d9f;const _0x29953b=_0x249cfa[0x1]??'',_0x9b3d5=_0x249cfa[0x2]??'',_0x9fb0db=parseDocument(_0x9b3d5);if(_0x9fb0db[_0x47c121(0xc6)][_0x47c121(0xbd)]>0x0||!isMap(_0x9fb0db[_0x47c121(0xa5)]))return _0x421d9f;if(_0x50d0e2)_0x9fb0db[_0x47c121(0xb3)](_0x47c121(0xc7),_0x50d0e2);else{if(_0x9fb0db[_0x47c121(0xad)]('displayName'))_0x9fb0db[_0x47c121(0xb5)](_0x47c121(0xc7));else return _0x421d9f;}forceBlockCollections(_0x9fb0db[_0x47c121(0xa5)]);const _0x2b9eb2=_0x9fb0db[_0x47c121(0xbc)]({'lineWidth':0x0})[_0x47c121(0x93)](),_0x3ad61b=_0x421d9f[_0x47c121(0xae)](_0x249cfa[0x0][_0x47c121(0xbd)])[_0x47c121(0xc0)](/^\r?\n/,'');return _0x29953b+_0x47c121(0x90)+_0x2b9eb2+_0x47c121(0xa4)+_0x3ad61b;}function forceBlockCollections(_0x465b12){if(!isNode(_0x465b12))return;visit(_0x465b12,(_0x3a59fa,_0x28e20d)=>{const _0x4b5c05=a116_0x51ef;isCollection(_0x28e20d)&&(_0x28e20d[_0x4b5c05(0xa0)]=![]);});}function ensurePulledFilesCanBeOverwritten(_0x5f1cea,_0x537aca,_0x1591c8,_0x1c1d6a){const _0x3a517c=a116_0x51ef;if(_0x1c1d6a||!existsSync(_0x537aca))return;const _0x26d98e=readMetadataIfPresent(_0x537aca);if(!_0x26d98e)return;const _0x3a6676=_0x26d98e[_0x3a517c(0xc1)]&&Object[_0x3a517c(0xaa)](_0x26d98e[_0x3a517c(0xc1)])[_0x3a517c(0xbd)]>0x0?_0x26d98e[_0x3a517c(0xc1)]:undefined;if(_0x3a6676)for(const [_0x3c2e48,_0x4234f9]of Object['entries'](_0x3a6676)){const _0x6cb076=resolveManagedFilePath(_0x5f1cea,_0x3c2e48);if(!existsSync(_0x6cb076))throw CliErrors[_0x3a517c(0xbb)](_0x3a517c(0xc2)+_0x5f1cea,_0x3a517c(0xb1)+_0x3c2e48);const _0x1dfb05=lstatSync(_0x6cb076);if(!_0x1dfb05[_0x3a517c(0x99)]())throw CliErrors[_0x3a517c(0xbb)](_0x3a517c(0xc2)+_0x5f1cea,_0x3a517c(0xb6)+_0x3c2e48);const _0x4e1227=bufferSha256(readFileSync(_0x6cb076));if(_0x4e1227!==_0x4234f9)throw CliErrors[_0x3a517c(0xbb)](_0x3a517c(0xc2)+_0x5f1cea+_0x3a517c(0xc5)+_0x3c2e48,_0x3a517c(0x9f)+_0x3c2e48);}else{const _0x443f91=resolve(_0x5f1cea,SKILL_FILE);if(existsSync(_0x443f91)&&_0x26d98e[_0x3a517c(0xaf)]){const _0x3beb54=contentHash(readFileSync(_0x443f91,_0x3a517c(0x8e)));if(_0x3beb54!==_0x26d98e[_0x3a517c(0xaf)])throw CliErrors[_0x3a517c(0xbb)](_0x3a517c(0x9e)+_0x443f91,'Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.');}}for(const _0x3bed17 of normalizeLocalFiles(_0x1591c8)){if(_0x3a6676?.[_0x3bed17['path']])continue;if(!_0x3a6676&&_0x3bed17['path']===SKILL_FILE)continue;const _0x51bf90=resolveManagedFilePath(_0x5f1cea,_0x3bed17[_0x3a517c(0xba)]);if(!existsSync(_0x51bf90))continue;const _0x3b548a=lstatSync(_0x51bf90);if(!_0x3b548a[_0x3a517c(0x99)]())throw CliErrors[_0x3a517c(0xbb)](_0x3a517c(0xc2)+_0x5f1cea,_0x3a517c(0xa9)+_0x3bed17['path']);const _0x1410a6=bufferSha256(readFileSync(_0x51bf90));if(_0x1410a6!==fileHash(_0x3bed17))throw CliErrors['validation'](_0x3a517c(0xc2)+_0x5f1cea,_0x3a517c(0xa2)+_0x3bed17['path']);}}function materializeFiles(_0xdac6d2,_0x5df81a){const _0x399eac=a116_0x51ef;for(const _0x45803d of normalizeLocalFiles(_0x5df81a)){const _0x205bcb=resolveManagedFilePath(_0xdac6d2,_0x45803d[_0x399eac(0xba)]);mkdirSync(dirname(_0x205bcb),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0x205bcb,fileContent(_0x45803d),0x180);}}function removeStaleManagedFiles(_0x1b6e2c,_0x33b395,_0x3329a5){const _0xee60db=a116_0x51ef;if(!_0x33b395)return;const _0x39b438=new Set(normalizeLocalFiles(_0x3329a5)[_0xee60db(0x97)](_0x13291e=>_0x13291e[_0xee60db(0xba)]));for(const _0x1c19bb of Object[_0xee60db(0xaa)](_0x33b395)){if(_0x39b438[_0xee60db(0xad)](_0x1c19bb))continue;const _0x32b9d1=resolveManagedFilePath(_0x1b6e2c,_0x1c19bb);existsSync(_0x32b9d1)&&lstatSync(_0x32b9d1)[_0xee60db(0x99)]()&&rmSync(_0x32b9d1,{'force':!![]});}}
1
+ (function(_0x1cd4f1,_0x2f7710){const _0x5e085d=a116_0x32ce,_0x4ad079=_0x1cd4f1();while(!![]){try{const _0x27d01e=parseInt(_0x5e085d(0x155))/0x1*(-parseInt(_0x5e085d(0x16a))/0x2)+-parseInt(_0x5e085d(0x162))/0x3*(-parseInt(_0x5e085d(0x14e))/0x4)+-parseInt(_0x5e085d(0x152))/0x5+-parseInt(_0x5e085d(0x167))/0x6+-parseInt(_0x5e085d(0x166))/0x7*(parseInt(_0x5e085d(0x13c))/0x8)+-parseInt(_0x5e085d(0x13b))/0x9+parseInt(_0x5e085d(0x149))/0xa;if(_0x27d01e===_0x2f7710)break;else _0x4ad079['push'](_0x4ad079['shift']());}catch(_0x2b4f57){_0x4ad079['push'](_0x4ad079['shift']());}}}(a116_0x3429,0xcd0ee));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';function a116_0x3429(){const _0x54122a=['contents','72292bFtGmA','Runtime\x20Skill\x20package\x20is\x20missing\x20','flow','description','7218365ZQtDbG','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','errors','14iLNcIW','contentHash','isFile','trim','validation','test','name:\x20','name','paths','match','delete','toString','path','159WzrDqJ','appCode','replace','keys','7aauGak','2733780tBEyuB','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','54354LCZaut','set','entries','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.','.\x20Changed\x20file:\x20','trimEnd','slice','join','\x0a---\x0a\x0a','has','1814148XpbcYR','7290224aArYGv','Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20','accessKey','fileHashes','packageBytes','length','utf8','map','description:\x20','Managed\x20file\x20was\x20removed\x20locally:\x20','displayName:\x20','Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20','stringify','32746800BBUEwA','find','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','displayName'];a116_0x3429=function(){return _0x54122a;};return a116_0x3429();}function a116_0x32ce(_0xdb2da9,_0x3fb7c3){_0xdb2da9=_0xdb2da9-0x133;const _0x3429a8=a116_0x3429();let _0x32ce21=_0x3429a8[_0xdb2da9];return _0x32ce21;}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(_0x4332cb,_0x1dc5d4,_0x183625){const _0x29b94b=a116_0x32ce,_0x21c907=requireSkillCode(_0x4332cb),_0x12add5=requirePackageBytes(_0x21c907,_0x183625[_0x29b94b(0x140)]),_0x1f13fb=extractDownloadedPackage(_0x12add5),_0x59371f=_0x1f13fb[_0x29b94b(0x14a)](_0x7fab05=>_0x7fab05[_0x29b94b(0x161)]===SKILL_FILE);if(!_0x59371f)throw CliErrors[_0x29b94b(0x159)](_0x29b94b(0x14f)+SKILL_FILE+':\x20'+_0x21c907);const _0x516de8=withMaterializedSkillFrontmatter(_0x1f13fb,_0x4332cb,_0x21c907),_0x2d5de4=_0x516de8[_0x29b94b(0x14a)](_0x448b63=>_0x448b63['path']===SKILL_FILE),_0x5c3a73=fileText(_0x2d5de4),_0x2fb952=getRuntimeSkillDir(_0x183625['env'],_0x183625[_0x29b94b(0x13e)],_0x183625[_0x29b94b(0x163)],_0x1dc5d4,_0x21c907,_0x183625[_0x29b94b(0x15d)]),_0x22b1bd=resolve(_0x2fb952,SKILL_FILE),_0x1f1a6e=resolve(_0x2fb952,METADATA_FILE),_0x3dcb23=contentHash(_0x5c3a73),_0x8a496=readMetadataIfPresent(_0x1f1a6e)?.[_0x29b94b(0x13f)];ensurePulledFilesCanBeOverwritten(_0x2fb952,_0x1f1a6e,_0x516de8,_0x183625['force']===!![]),mkdirSync(_0x2fb952,{'recursive':!![],'mode':0x1c0});const _0x5d26b2=existsSync(_0x22b1bd)?readFileSync(_0x22b1bd,_0x29b94b(0x142)):undefined;return materializeFiles(_0x2fb952,_0x516de8),removeStaleManagedFiles(_0x2fb952,_0x8a496,_0x516de8),writeJsonAtomic(_0x1f1a6e,buildMetadata(_0x4332cb,_0x1dc5d4,_0x183625[_0x29b94b(0x163)],_0x3dcb23,_0x183625['pulledAt'],_0x516de8,_0x12add5)),{'skill':_0x4332cb,'scope':_0x1dc5d4,'dir':_0x2fb952,'skillMdPath':_0x22b1bd,'metadataPath':_0x1f1a6e,'contentHash':_0x3dcb23,'changed':_0x5d26b2!==_0x5c3a73};}function withMaterializedSkillFrontmatter(_0x57a0fc,_0x4821be,_0x20973b){const _0x5f0d17=a116_0x32ce,_0x589e10=skillDisplayName(_0x4821be,_0x20973b),_0x2189d6=_0x4821be[_0x5f0d17(0x151)]?.[_0x5f0d17(0x158)]()||_0x589e10||_0x20973b;return normalizeLocalFiles(_0x57a0fc)[_0x5f0d17(0x143)](_0x285d0c=>{const _0x1760ee=_0x5f0d17,_0x9fce1=fileText(_0x285d0c);if(_0x285d0c['path']!==SKILL_FILE)return _0x285d0c;if(hasYamlFrontmatter(_0x9fce1))return{'path':_0x285d0c[_0x1760ee(0x161)],'content':withSyncedDisplayName(_0x9fce1,_0x589e10)};return{'path':_0x285d0c['path'],'content':prependSkillFrontmatter(_0x9fce1,{'name':_0x20973b,'displayName':_0x589e10,'description':_0x2189d6})};});}function hasYamlFrontmatter(_0x30805f){const _0x55dee9=a116_0x32ce;return/^\uFEFF?---\s*\r?\n/[_0x55dee9(0x15a)](_0x30805f);}function prependSkillFrontmatter(_0x77f63f,_0x15d829){const _0x22daa6=a116_0x32ce,_0x96099d=_0x77f63f[_0x22daa6(0x164)](/^\uFEFF/,'');return['---',_0x22daa6(0x15b)+yamlString(_0x15d829[_0x22daa6(0x15c)]),_0x15d829[_0x22daa6(0x14c)]?_0x22daa6(0x146)+yamlString(_0x15d829[_0x22daa6(0x14c)]):undefined,_0x22daa6(0x144)+yamlString(_0x15d829[_0x22daa6(0x151)]),'---','',_0x96099d]['filter'](_0x4c9f17=>_0x4c9f17!==undefined)[_0x22daa6(0x138)]('\x0a');}function yamlString(_0x4aca75){const _0x2dece5=a116_0x32ce;return JSON[_0x2dece5(0x148)](_0x4aca75[_0x2dece5(0x164)](/\r/g,'')[_0x2dece5(0x158)]());}function skillDisplayName(_0x2f658f,_0x207bb7){const _0xe6f22e=a116_0x32ce,_0x444e5a=_0x2f658f['skillName']?.[_0xe6f22e(0x158)]();return _0x444e5a||_0x207bb7;}function withSyncedDisplayName(_0x11f347,_0x12d805){const _0x3e650f=a116_0x32ce,_0x1dd50d=_0x11f347[_0x3e650f(0x15e)](/^(\uFEFF?)---\s*\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x1dd50d)return _0x11f347;const _0x51553e=_0x1dd50d[0x1]??'',_0x4fa16f=_0x1dd50d[0x2]??'',_0xed344e=parseDocument(_0x4fa16f);if(_0xed344e[_0x3e650f(0x154)][_0x3e650f(0x141)]>0x0||!isMap(_0xed344e['contents']))return _0x11f347;if(_0x12d805)_0xed344e[_0x3e650f(0x16b)](_0x3e650f(0x14c),_0x12d805);else{if(_0xed344e[_0x3e650f(0x13a)]('displayName'))_0xed344e[_0x3e650f(0x15f)](_0x3e650f(0x14c));else return _0x11f347;}forceBlockCollections(_0xed344e[_0x3e650f(0x14d)]);const _0x3c5956=_0xed344e[_0x3e650f(0x160)]({'lineWidth':0x0})[_0x3e650f(0x136)](),_0x17ea10=_0x11f347[_0x3e650f(0x137)](_0x1dd50d[0x0]['length'])[_0x3e650f(0x164)](/^\r?\n/,'');return _0x51553e+'---\x0a'+_0x3c5956+_0x3e650f(0x139)+_0x17ea10;}function forceBlockCollections(_0x32db9b){if(!isNode(_0x32db9b))return;visit(_0x32db9b,(_0x264cb8,_0x4c5dba)=>{const _0x4257ac=a116_0x32ce;isCollection(_0x4c5dba)&&(_0x4c5dba[_0x4257ac(0x150)]=![]);});}function ensurePulledFilesCanBeOverwritten(_0x53c724,_0x87d312,_0x3432a7,_0x1ebc1a){const _0x384254=a116_0x32ce;if(_0x1ebc1a||!existsSync(_0x87d312))return;const _0x5ba8ee=readMetadataIfPresent(_0x87d312);if(!_0x5ba8ee)return;const _0x33add8=_0x5ba8ee[_0x384254(0x13f)]&&Object[_0x384254(0x165)](_0x5ba8ee[_0x384254(0x13f)])['length']>0x0?_0x5ba8ee[_0x384254(0x13f)]:undefined;if(_0x33add8)for(const [_0x9acd8c,_0x2481a4]of Object[_0x384254(0x133)](_0x33add8)){const _0x510f37=resolveManagedFilePath(_0x53c724,_0x9acd8c);if(!existsSync(_0x510f37))throw CliErrors[_0x384254(0x159)](_0x384254(0x169)+_0x53c724,_0x384254(0x145)+_0x9acd8c);const _0xe380cd=lstatSync(_0x510f37);if(!_0xe380cd[_0x384254(0x157)]())throw CliErrors['validation'](_0x384254(0x169)+_0x53c724,_0x384254(0x13d)+_0x9acd8c);const _0x46e98d=bufferSha256(readFileSync(_0x510f37));if(_0x46e98d!==_0x2481a4)throw CliErrors['validation']('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x53c724+_0x384254(0x135)+_0x9acd8c,_0x384254(0x168)+_0x9acd8c);}else{const _0x4668db=resolve(_0x53c724,SKILL_FILE);if(existsSync(_0x4668db)&&_0x5ba8ee[_0x384254(0x156)]){const _0x1cfb1f=contentHash(readFileSync(_0x4668db,_0x384254(0x142)));if(_0x1cfb1f!==_0x5ba8ee[_0x384254(0x156)])throw CliErrors['validation'](_0x384254(0x153)+_0x4668db,_0x384254(0x134));}}for(const _0x167dae of normalizeLocalFiles(_0x3432a7)){if(_0x33add8?.[_0x167dae['path']])continue;if(!_0x33add8&&_0x167dae['path']===SKILL_FILE)continue;const _0x2806b2=resolveManagedFilePath(_0x53c724,_0x167dae[_0x384254(0x161)]);if(!existsSync(_0x2806b2))continue;const _0x42c6b7=lstatSync(_0x2806b2);if(!_0x42c6b7[_0x384254(0x157)]())throw CliErrors[_0x384254(0x159)]('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x53c724,_0x384254(0x147)+_0x167dae[_0x384254(0x161)]);const _0x161a44=bufferSha256(readFileSync(_0x2806b2));if(_0x161a44!==fileHash(_0x167dae))throw CliErrors['validation']('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x53c724,_0x384254(0x14b)+_0x167dae['path']);}}function materializeFiles(_0xa097aa,_0x5592b2){const _0x39cd85=a116_0x32ce;for(const _0x24ea03 of normalizeLocalFiles(_0x5592b2)){const _0x4fe523=resolveManagedFilePath(_0xa097aa,_0x24ea03[_0x39cd85(0x161)]);mkdirSync(dirname(_0x4fe523),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0x4fe523,fileContent(_0x24ea03),0x180);}}function removeStaleManagedFiles(_0x27b2bd,_0x202bb6,_0xad64c0){const _0x358bc5=a116_0x32ce;if(!_0x202bb6)return;const _0x523f11=new Set(normalizeLocalFiles(_0xad64c0)[_0x358bc5(0x143)](_0x4906d5=>_0x4906d5[_0x358bc5(0x161)]));for(const _0x435711 of Object[_0x358bc5(0x165)](_0x202bb6)){if(_0x523f11['has'](_0x435711))continue;const _0x2062bf=resolveManagedFilePath(_0x27b2bd,_0x435711);existsSync(_0x2062bf)&&lstatSync(_0x2062bf)['isFile']()&&rmSync(_0x2062bf,{'force':!![]});}}
@@ -1 +1 @@
1
- function a117_0x3b62(_0xab9bc6,_0x597c05){_0xab9bc6=_0xab9bc6-0x8a;const _0x744cd3=a117_0x744c();let _0x3b6268=_0x744cd3[_0xab9bc6];return _0x3b6268;}(function(_0x306a92,_0x2ff30d){const _0x53ab0a=a117_0x3b62,_0x475dd1=_0x306a92();while(!![]){try{const _0x1a4e63=parseInt(_0x53ab0a(0xab))/0x1+parseInt(_0x53ab0a(0x92))/0x2*(-parseInt(_0x53ab0a(0x9b))/0x3)+-parseInt(_0x53ab0a(0x9f))/0x4*(-parseInt(_0x53ab0a(0x94))/0x5)+parseInt(_0x53ab0a(0x98))/0x6+parseInt(_0x53ab0a(0x9e))/0x7*(parseInt(_0x53ab0a(0x91))/0x8)+parseInt(_0x53ab0a(0x97))/0x9+parseInt(_0x53ab0a(0xa1))/0xa*(-parseInt(_0x53ab0a(0x8e))/0xb);if(_0x1a4e63===_0x2ff30d)break;else _0x475dd1['push'](_0x475dd1['shift']());}catch(_0x20eb94){_0x475dd1['push'](_0x475dd1['shift']());}}}(a117_0x744c,0x8e6b1));function a117_0x744c(){const _0x2c34fc=['skillName','385672CNjLYI','61512RxzmUd','tags','158330RFEvDF','fromEntries','path','1229769cgAqyZ','3693942CxAMqf','forkedFromVersion','trim','39FpiPeN','ossPath','userId','49zTRHWY','4jKNsBc','status','5740420rucOaS','hasUpstreamUpdate','manifest','validation','Runtime\x20Skill\x20is\x20missing\x20skillCode.','sourceSessionId','version','zipSize','files','parse','1009830xzcZHA','string','personal','isArray','forkedFromSkillId','object','readonly','skillCode','zipSha256','22sjmuYS','length'];a117_0x744c=function(){return _0x2c34fc;};return a117_0x744c();}import{existsSync,readFileSync}from'node:fs';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,normalizeLocalFiles}from'./local-files.js';import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';export function buildMetadata(_0x1eaeb2,_0x3a1d00,_0x24d7bd,_0x4a6778,_0x32215e,_0x590050,_0x3f4adc){const _0x55c736=a117_0x3b62,_0x3cd35d=_0x590050?normalizeLocalFiles(_0x590050):[],_0x42fc47=!_0x3f4adc&&_0x3cd35d[_0x55c736(0x8f)]>0x0?buildSkillPackage(_0x3cd35d):undefined,_0x169644=_0x3f4adc?bufferSha256(_0x3f4adc):_0x42fc47?.[_0x55c736(0xa3)][_0x55c736(0x8d)],_0x498e4e=_0x3f4adc?.[_0x55c736(0x8f)]??_0x42fc47?.[_0x55c736(0xa3)][_0x55c736(0xa8)],_0x2bc20a=_0x3cd35d[_0x55c736(0x8f)]>0x0?Object[_0x55c736(0x95)](_0x3cd35d['map'](_0x2080f5=>[_0x2080f5[_0x55c736(0x96)],fileHash(_0x2080f5)])):undefined;return{'schemaVersion':_0x3cd35d[_0x55c736(0x8f)]>0x0?0x2:0x1,'id':_0x1eaeb2['id'],'appCode':_0x24d7bd,'skillCode':requireSkillCode(_0x1eaeb2),'skillName':_0x1eaeb2[_0x55c736(0x90)],'description':_0x1eaeb2['description'],'scope':_0x3a1d00,'readonly':_0x3a1d00!==_0x55c736(0xad)||_0x1eaeb2[_0x55c736(0x8b)]===!![],'tenantCode':_0x1eaeb2['tenantCode'],'userId':_0x1eaeb2[_0x55c736(0x9d)],'version':_0x1eaeb2[_0x55c736(0xa7)],'status':_0x1eaeb2[_0x55c736(0xa0)],'tags':Array[_0x55c736(0xae)](_0x1eaeb2[_0x55c736(0x93)])?_0x1eaeb2[_0x55c736(0x93)]:[],'hasUpstreamUpdate':_0x1eaeb2[_0x55c736(0xa2)],'forkedFromSkillId':_0x1eaeb2[_0x55c736(0xaf)],'forkedFromVersion':_0x1eaeb2[_0x55c736(0x99)],'sourceSessionId':_0x1eaeb2[_0x55c736(0xa6)],'contentHash':_0x4a6778,'fileHashes':_0x2bc20a,'treeHash':_0x3cd35d[_0x55c736(0x8f)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x3cd35d)):undefined,'ossPath':remoteManifestOssPath(_0x1eaeb2[_0x55c736(0xa9)]),'zipSha256':_0x169644,'zipSize':_0x498e4e,'files':_0x3cd35d[_0x55c736(0x8f)]>0x0?_0x3cd35d['map'](_0x4395d7=>({'path':_0x4395d7[_0x55c736(0x96)],'hash':fileHash(_0x4395d7),'size':fileContent(_0x4395d7)['length']})):undefined,'pulledAt':_0x32215e??new Date()['toISOString']()};}export function requireSkillCode(_0x331ee1){const _0x5f458b=a117_0x3b62,_0x5b87f3=_0x331ee1[_0x5f458b(0x8c)]?.[_0x5f458b(0x9a)]();if(!_0x5b87f3)throw CliErrors['validation'](_0x5f458b(0xa5));return _0x5b87f3;}export function readMetadataIfPresent(_0xc81db7){const _0x4511d7=a117_0x3b62;if(!existsSync(_0xc81db7))return undefined;try{const _0x5ea202=JSON[_0x4511d7(0xaa)](readFileSync(_0xc81db7,'utf8'));return _0x5ea202;}catch{throw CliErrors[_0x4511d7(0xa4)]('Invalid\x20'+METADATA_FILE+':\x20'+_0xc81db7);}}function remoteManifestOssPath(_0x49df17){const _0x2bb7a6=a117_0x3b62;if(!_0x49df17||typeof _0x49df17!==_0x2bb7a6(0x8a)||Array[_0x2bb7a6(0xae)](_0x49df17))return undefined;const _0x4d3397=_0x49df17[_0x2bb7a6(0x9c)];return typeof _0x4d3397===_0x2bb7a6(0xac)&&_0x4d3397[_0x2bb7a6(0x9a)]()?_0x4d3397['trim']():undefined;}
1
+ (function(_0x3f4851,_0x2b29e0){const _0x32582a=a117_0x2d0e,_0x5715e2=_0x3f4851();while(!![]){try{const _0x49c9ed=parseInt(_0x32582a(0x1b5))/0x1+parseInt(_0x32582a(0x1cb))/0x2*(-parseInt(_0x32582a(0x1c2))/0x3)+-parseInt(_0x32582a(0x1b6))/0x4*(-parseInt(_0x32582a(0x1ba))/0x5)+parseInt(_0x32582a(0x1c6))/0x6*(-parseInt(_0x32582a(0x1a6))/0x7)+-parseInt(_0x32582a(0x1bb))/0x8*(parseInt(_0x32582a(0x1a7))/0x9)+-parseInt(_0x32582a(0x1a9))/0xa*(parseInt(_0x32582a(0x1a5))/0xb)+-parseInt(_0x32582a(0x1bf))/0xc*(-parseInt(_0x32582a(0x1c1))/0xd);if(_0x49c9ed===_0x2b29e0)break;else _0x5715e2['push'](_0x5715e2['shift']());}catch(_0x58e41e){_0x5715e2['push'](_0x5715e2['shift']());}}}(a117_0xaac2,0x2890d));import{existsSync,readFileSync}from'node:fs';import{CliErrors}from'../../errors.js';function a117_0x2d0e(_0x231da8,_0x484de8){_0x231da8=_0x231da8-0x1a5;const _0xaac254=a117_0xaac2();let _0x2d0e99=_0xaac254[_0x231da8];return _0x2d0e99;}import{METADATA_FILE}from'./constants.js';import{bufferSha256,fileHash,fileTreeHash}from'./hashing.js';import{fileContent,normalizeLocalFiles}from'./local-files.js';import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';function a117_0xaac2(){const _0x324109=['path','6WHWjeU','manifest','forkedFromSkillId','zipSha256','Invalid\x20','76622RXXQKu','status','109351qrnMwt','1728643iRxQIk','18FKybvG','trim','30smMNgU','Runtime\x20Skill\x20is\x20missing\x20skillCode.','skillCode','userId','tenantCode','readonly','utf8','parse','string','zipSize','personal','map','207270zYilgk','20eVMGzx','length','tags','toISOString','311560svexyy','1219352QqGfPp','sourceSessionId','files','ossPath','30372FTODjX','forkedFromVersion','1963lwRETm','12TOWPRZ','isArray','validation'];a117_0xaac2=function(){return _0x324109;};return a117_0xaac2();}export function buildMetadata(_0x276f41,_0x2eaeb2,_0x3d4cc5,_0x2bd19a,_0x5815be,_0x38fa54,_0x386303){const _0x303ee5=a117_0x2d0e,_0x4e2b54=_0x38fa54?normalizeLocalFiles(_0x38fa54):[],_0x4061a5=!_0x386303&&_0x4e2b54[_0x303ee5(0x1b7)]>0x0?buildSkillPackage(_0x4e2b54):undefined,_0x3ac745=_0x386303?bufferSha256(_0x386303):_0x4061a5?.[_0x303ee5(0x1c7)][_0x303ee5(0x1c9)],_0x598a76=_0x386303?.[_0x303ee5(0x1b7)]??_0x4061a5?.[_0x303ee5(0x1c7)][_0x303ee5(0x1b2)],_0x4065c0=_0x4e2b54[_0x303ee5(0x1b7)]>0x0?Object['fromEntries'](_0x4e2b54[_0x303ee5(0x1b4)](_0x48dbda=>[_0x48dbda[_0x303ee5(0x1c5)],fileHash(_0x48dbda)])):undefined;return{'schemaVersion':_0x4e2b54[_0x303ee5(0x1b7)]>0x0?0x2:0x1,'id':_0x276f41['id'],'appCode':_0x3d4cc5,'skillCode':requireSkillCode(_0x276f41),'skillName':_0x276f41['skillName'],'description':_0x276f41['description'],'scope':_0x2eaeb2,'readonly':_0x2eaeb2!==_0x303ee5(0x1b3)||_0x276f41[_0x303ee5(0x1ae)]===!![],'tenantCode':_0x276f41[_0x303ee5(0x1ad)],'userId':_0x276f41[_0x303ee5(0x1ac)],'version':_0x276f41['version'],'status':_0x276f41[_0x303ee5(0x1cc)],'tags':Array[_0x303ee5(0x1c3)](_0x276f41[_0x303ee5(0x1b8)])?_0x276f41['tags']:[],'hasUpstreamUpdate':_0x276f41['hasUpstreamUpdate'],'forkedFromSkillId':_0x276f41[_0x303ee5(0x1c8)],'forkedFromVersion':_0x276f41[_0x303ee5(0x1c0)],'sourceSessionId':_0x276f41[_0x303ee5(0x1bc)],'contentHash':_0x2bd19a,'fileHashes':_0x4065c0,'treeHash':_0x4e2b54[_0x303ee5(0x1b7)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x4e2b54)):undefined,'ossPath':remoteManifestOssPath(_0x276f41[_0x303ee5(0x1bd)]),'zipSha256':_0x3ac745,'zipSize':_0x598a76,'files':_0x4e2b54[_0x303ee5(0x1b7)]>0x0?_0x4e2b54['map'](_0x45b218=>({'path':_0x45b218[_0x303ee5(0x1c5)],'hash':fileHash(_0x45b218),'size':fileContent(_0x45b218)[_0x303ee5(0x1b7)]})):undefined,'pulledAt':_0x5815be??new Date()[_0x303ee5(0x1b9)]()};}export function requireSkillCode(_0x439dbe){const _0x542a08=a117_0x2d0e,_0x46a3b8=_0x439dbe[_0x542a08(0x1ab)]?.['trim']();if(!_0x46a3b8)throw CliErrors['validation'](_0x542a08(0x1aa));return _0x46a3b8;}export function readMetadataIfPresent(_0x499c22){const _0x37c092=a117_0x2d0e;if(!existsSync(_0x499c22))return undefined;try{const _0x2b0066=JSON[_0x37c092(0x1b0)](readFileSync(_0x499c22,_0x37c092(0x1af)));return _0x2b0066;}catch{throw CliErrors[_0x37c092(0x1c4)](_0x37c092(0x1ca)+METADATA_FILE+':\x20'+_0x499c22);}}function remoteManifestOssPath(_0x38343b){const _0x1288b8=a117_0x2d0e;if(!_0x38343b||typeof _0x38343b!=='object'||Array[_0x1288b8(0x1c3)](_0x38343b))return undefined;const _0x16911a=_0x38343b[_0x1288b8(0x1be)];return typeof _0x16911a===_0x1288b8(0x1b1)&&_0x16911a[_0x1288b8(0x1a8)]()?_0x16911a[_0x1288b8(0x1a8)]():undefined;}
@@ -1 +1 @@
1
- const a118_0x336e93=a118_0x4a19;(function(_0x8fc3ba,_0x53cb4a){const _0x4e07a=a118_0x4a19,_0x5a0930=_0x8fc3ba();while(!![]){try{const _0x489b57=parseInt(_0x4e07a(0x154))/0x1*(parseInt(_0x4e07a(0x14c))/0x2)+-parseInt(_0x4e07a(0x139))/0x3*(-parseInt(_0x4e07a(0x13f))/0x4)+-parseInt(_0x4e07a(0x151))/0x5*(parseInt(_0x4e07a(0x13e))/0x6)+-parseInt(_0x4e07a(0x146))/0x7+parseInt(_0x4e07a(0x153))/0x8+parseInt(_0x4e07a(0x144))/0x9+parseInt(_0x4e07a(0x148))/0xa*(-parseInt(_0x4e07a(0x149))/0xb);if(_0x489b57===_0x53cb4a)break;else _0x5a0930['push'](_0x5a0930['shift']());}catch(_0x39b073){_0x5a0930['push'](_0x5a0930['shift']());}}}(a118_0x48c4,0x9ce62));import{existsSync}from'node:fs';import{homedir}from'node:os';function a118_0x48c4(){const _0x319383=['Unsafe\x20','appCode','CLAUDE_SKILL_ROOT','4782bUQMuw','47420mKuvdy','includes','filter','.claude','\x20for\x20local\x20path:\x20','4098321OFwMVo','path\x20segment','668675wnassH','claudeSkillsDir','19390QQouvq','5555DVzdDL','skills','homeDirName','158mQXWhh','.agents','cacheRoot','homeDir','validation','1985awzNiI','workbuddySkillsDir','4492240JdzhXC','1017DbXDKD','trim','237QJFvpI','.workbuddy'];a118_0x48c4=function(){return _0x319383;};return a118_0x48c4();}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(_0xedd2b0={}){const _0x4fdf82=a118_0x4a19,_0x246fef=_0xedd2b0[_0x4fdf82(0x14f)]??homedir(),_0x21d6d2=resolve(_0x246fef,PRODUCT_CONFIG[_0x4fdf82(0x14b)],'cache'),_0x51ef44=trimmedEnv('SKILL_ROOT'),_0x47b0ec=trimmedEnv(_0x4fdf82(0x13d)),_0x4ea8f9=resolve(_0x246fef,_0x4fdf82(0x13a)),_0x588618=_0xedd2b0[_0x4fdf82(0x152)]??(existsSync(_0x4ea8f9)?resolve(_0x4ea8f9,'skills'):undefined);return{'homeDir':_0x246fef,'cacheRoot':_0x21d6d2,'managedRoot':resolve(_0x246fef,PRODUCT_CONFIG[_0x4fdf82(0x14b)]),'agentsSkillsDir':_0xedd2b0['agentsSkillsDir']??_0x51ef44??resolve(_0x246fef,_0x4fdf82(0x14d),_0x4fdf82(0x14a)),'claudeSkillsDir':_0xedd2b0[_0x4fdf82(0x147)]??_0x47b0ec??resolve(_0x246fef,_0x4fdf82(0x142),'skills'),'workbuddySkillsDir':_0x588618};}export function runtimeAgentSkillRoots(_0xa02688){const _0xfeccb9=a118_0x4a19;return[_0xa02688['agentsSkillsDir'],_0xa02688['claudeSkillsDir'],_0xa02688[_0xfeccb9(0x152)]][_0xfeccb9(0x141)](_0x2968fc=>Boolean(_0x2968fc));}function a118_0x4a19(_0x4f664e,_0x181dc0){_0x4f664e=_0x4f664e-0x139;const _0x48c4a7=a118_0x48c4();let _0x4a19ff=_0x48c4a7[_0x4f664e];return _0x4a19ff;}export function getRuntimeSkillCacheRoot(_0x4011a6,_0x1e72be,_0x425681={}){const _0x4ee23f=a118_0x4a19,_0x4659b2=resolveSkillSyncPaths(_0x425681);return resolve(_0x4659b2[_0x4ee23f(0x14e)],_0x4011a6,fingerprintAccessKey(_0x1e72be),'skills');}export function getRuntimeSkillDir(_0x2d9f8a,_0x527889,_0x500e9a,_0x31cb83,_0x3374c5,_0x5182a8={}){const _0x5ac51e=a118_0x4a19;return resolve(getRuntimeSkillCacheRoot(_0x2d9f8a,_0x527889,_0x5182a8),safePathSegment(_0x500e9a,_0x5ac51e(0x13c)),_0x31cb83,safePathSegment(_0x3374c5,'skillCode'));}export function safePathSegment(_0x5e63e7,_0x27211f=a118_0x336e93(0x145)){const _0x1d8882=a118_0x336e93;if(!_0x5e63e7||_0x5e63e7[_0x1d8882(0x140)]('/')||_0x5e63e7[_0x1d8882(0x140)]('\x5c')||_0x5e63e7['includes']('..'))throw CliErrors[_0x1d8882(0x150)](_0x1d8882(0x13b)+_0x27211f+_0x1d8882(0x143)+_0x5e63e7);return _0x5e63e7;}function trimmedEnv(_0x49089f){const _0x171dd8=a118_0x336e93,_0x2b4225=productEnv(_0x49089f)?.[_0x171dd8(0x155)]();return _0x2b4225?_0x2b4225:undefined;}
1
+ (function(_0x632bc8,_0x125038){const _0x127227=a118_0x3415,_0x419f5d=_0x632bc8();while(!![]){try{const _0x15d952=-parseInt(_0x127227(0x152))/0x1+-parseInt(_0x127227(0x14f))/0x2*(-parseInt(_0x127227(0x143))/0x3)+-parseInt(_0x127227(0x154))/0x4+parseInt(_0x127227(0x157))/0x5*(-parseInt(_0x127227(0x144))/0x6)+parseInt(_0x127227(0x158))/0x7+-parseInt(_0x127227(0x142))/0x8*(parseInt(_0x127227(0x14e))/0x9)+parseInt(_0x127227(0x141))/0xa;if(_0x15d952===_0x125038)break;else _0x419f5d['push'](_0x419f5d['shift']());}catch(_0x4c6b4e){_0x419f5d['push'](_0x419f5d['shift']());}}}(a118_0x24f1,0x537f5));import{existsSync}from'node:fs';import{homedir}from'node:os';function a118_0x24f1(){const _0x5d39ae=['workbuddySkillsDir','7049080OnuJUP','1208NJDOQy','3453UxxiLX','399804bKOxvg','validation','trim','filter','CLAUDE_SKILL_ROOT','.workbuddy','.claude','cacheRoot','claudeSkillsDir','homeDir','2169YhZPcl','312xoPhQf','includes','homeDirName','80518pMEoHU','Unsafe\x20','922540ZimkpB','appCode','skills','40cnHVRE','2367099hHdIpp','agentsSkillsDir','\x20for\x20local\x20path:\x20','cache','.agents'];a118_0x24f1=function(){return _0x5d39ae;};return a118_0x24f1();}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(_0x26c638={}){const _0x463e0a=a118_0x3415,_0x663f9d=_0x26c638[_0x463e0a(0x14d)]??homedir(),_0x2d2954=resolve(_0x663f9d,PRODUCT_CONFIG[_0x463e0a(0x151)],_0x463e0a(0x15b)),_0x47dc19=trimmedEnv('SKILL_ROOT'),_0x64570c=trimmedEnv(_0x463e0a(0x148)),_0x24d8d2=resolve(_0x663f9d,_0x463e0a(0x149)),_0x1ec9e6=_0x26c638[_0x463e0a(0x140)]??(existsSync(_0x24d8d2)?resolve(_0x24d8d2,_0x463e0a(0x156)):undefined);return{'homeDir':_0x663f9d,'cacheRoot':_0x2d2954,'managedRoot':resolve(_0x663f9d,PRODUCT_CONFIG[_0x463e0a(0x151)]),'agentsSkillsDir':_0x26c638[_0x463e0a(0x159)]??_0x47dc19??resolve(_0x663f9d,_0x463e0a(0x15c),_0x463e0a(0x156)),'claudeSkillsDir':_0x26c638[_0x463e0a(0x14c)]??_0x64570c??resolve(_0x663f9d,_0x463e0a(0x14a),'skills'),'workbuddySkillsDir':_0x1ec9e6};}export function runtimeAgentSkillRoots(_0x41adc2){const _0x58f460=a118_0x3415;return[_0x41adc2[_0x58f460(0x159)],_0x41adc2[_0x58f460(0x14c)],_0x41adc2['workbuddySkillsDir']][_0x58f460(0x147)](_0x4d28e0=>Boolean(_0x4d28e0));}function a118_0x3415(_0x1f0ed3,_0x5a9bd8){_0x1f0ed3=_0x1f0ed3-0x140;const _0x24f11c=a118_0x24f1();let _0x341517=_0x24f11c[_0x1f0ed3];return _0x341517;}export function getRuntimeSkillCacheRoot(_0x1d1539,_0x2d7031,_0x42a797={}){const _0x570a3f=a118_0x3415,_0x4dfc04=resolveSkillSyncPaths(_0x42a797);return resolve(_0x4dfc04[_0x570a3f(0x14b)],_0x1d1539,fingerprintAccessKey(_0x2d7031),_0x570a3f(0x156));}export function getRuntimeSkillDir(_0x9e994e,_0x34e742,_0x3ac2f4,_0x4fad95,_0x517608,_0x4b27ad={}){const _0x41ec82=a118_0x3415;return resolve(getRuntimeSkillCacheRoot(_0x9e994e,_0x34e742,_0x4b27ad),safePathSegment(_0x3ac2f4,_0x41ec82(0x155)),_0x4fad95,safePathSegment(_0x517608,'skillCode'));}export function safePathSegment(_0x5d5e04,_0x287f08='path\x20segment'){const _0x1c6c21=a118_0x3415;if(!_0x5d5e04||_0x5d5e04[_0x1c6c21(0x150)]('/')||_0x5d5e04['includes']('\x5c')||_0x5d5e04[_0x1c6c21(0x150)]('..'))throw CliErrors[_0x1c6c21(0x145)](_0x1c6c21(0x153)+_0x287f08+_0x1c6c21(0x15a)+_0x5d5e04);return _0x5d5e04;}function trimmedEnv(_0x2f7be3){const _0x3c5dd4=a118_0x3415,_0x33339e=productEnv(_0x2f7be3)?.[_0x3c5dd4(0x146)]();return _0x33339e?_0x33339e:undefined;}
@@ -1 +1 @@
1
- (function(_0x131381,_0x1ced35){const _0x138680=a119_0x156a,_0x470356=_0x131381();while(!![]){try{const _0x237e7e=parseInt(_0x138680(0x1f8))/0x1*(-parseInt(_0x138680(0x1c5))/0x2)+parseInt(_0x138680(0x1d0))/0x3+-parseInt(_0x138680(0x1eb))/0x4*(-parseInt(_0x138680(0x1f2))/0x5)+parseInt(_0x138680(0x1ec))/0x6+parseInt(_0x138680(0x1df))/0x7+-parseInt(_0x138680(0x1c9))/0x8+-parseInt(_0x138680(0x1d5))/0x9;if(_0x237e7e===_0x1ced35)break;else _0x470356['push'](_0x470356['shift']());}catch(_0x59df55){_0x470356['push'](_0x470356['shift']());}}}(a119_0x5198,0xb2f63));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a119_0x93a14a}from'yaml';import{CliErrors}from'../../errors.js';function a119_0x5198(){const _0x4d88ba=['3859366bTAvhl','company','content','ignoreMetadataAppCodeMismatch','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','toLowerCase','description','isDirectory','ignoreMetadataScope','Remote\x20Skill\x20','find','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','10848NrhXxv','4912536PILaqO','path','replace','Invalid\x20','isSymbolicLink','filter','300oghLQs','builtin','utf8','tags','object','Skill\x20directory\x20not\x20found:\x20','7AQRdXi','files','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','Unable\x20to\x20resolve\x20skillCode\x20from\x20','\x20name\x20for\x20SkillHub\x20slug\x20generation.','boolean','skillCode','unknown','skillName','trim','\x20has\x20scope=\x22','packageBase64','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','isArray','111858ShNlZd','pushedAt','slice','some','1812688yKwixl','isFile','dir','appCode','validation','string','displayName','4332537GMERyd','name','ignoreInvalidMetadata','sourceSessionId','Missing\x20','14632893NmkZjb','scope','personal','excludedFilePaths','(unknown)','ignoreMetadataSkillCode','match','number','length','targetScope'];a119_0x5198=function(){return _0x4d88ba;};return a119_0x5198();}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(_0x3999b8,_0x5bd171,_0x56d37b={}){const _0x35bb46=a119_0x156a,_0x4ebfe0=resolvePushDirectoryRoot(_0x3999b8),_0x1dd126=readPushMetadataIfPresent(resolve(_0x4ebfe0,METADATA_FILE),{'ignoreInvalidMetadata':_0x56d37b['ignoreInvalidMetadata']});if(_0x1dd126?.[_0x35bb46(0x1cc)]&&_0x1dd126[_0x35bb46(0x1cc)]!==_0x5bd171&&!_0x56d37b['allowAppCodeRetarget']&&!_0x56d37b[_0x35bb46(0x1e2)])throw CliErrors['validation']('Skill\x20metadata\x20appCode\x20\x22'+_0x1dd126[_0x35bb46(0x1cc)]+_0x35bb46(0x1ea)+_0x5bd171+'\x22.');const _0x49d73d=resolvePushSkillCode(_0x4ebfe0,_0x5bd171,_0x1dd126,_0x56d37b);if(!_0x49d73d)throw CliErrors[_0x35bb46(0x1cd)](_0x35bb46(0x1fb)+SKILL_FILE+',\x20'+METADATA_FILE+',\x20or\x20directory\x20name.');return{'dir':_0x4ebfe0,'skillCode':_0x49d73d,'metadata':_0x1dd126};}export function readPushDirectory(_0x256c1d,_0x2f90de,_0x4854ce={}){const _0x50d629=a119_0x156a,_0x4538dd=resolvePushDirectoryIdentity(_0x256c1d,_0x2f90de,_0x4854ce),_0x49cde7=_0x4538dd[_0x50d629(0x1cb)],_0x2fc0b2=resolve(_0x49cde7,SKILL_FILE);if(!existsSync(_0x2fc0b2)||!lstatSync(_0x2fc0b2)[_0x50d629(0x1ca)]())throw CliErrors['validation'](_0x50d629(0x1d4)+SKILL_FILE+':\x20'+_0x2fc0b2);const _0x37dda8=_0x4538dd['metadata'],_0x28ebc3=_0x4854ce[_0x50d629(0x1de)]??_0x50d629(0x1d7);if(!_0x4854ce[_0x50d629(0x1e7)]&&_0x37dda8?.[_0x50d629(0x1d6)]===_0x50d629(0x1f3))throw CliErrors[_0x50d629(0x1cd)](_0x50d629(0x1fa)+METADATA_FILE+_0x50d629(0x1c1)+_0x37dda8[_0x50d629(0x1d6)]+'\x22.');if(!_0x4854ce[_0x50d629(0x1e7)]&&_0x28ebc3===_0x50d629(0x1d7)&&_0x37dda8?.['scope']&&_0x37dda8[_0x50d629(0x1d6)]!==_0x50d629(0x1d7))throw CliErrors[_0x50d629(0x1cd)](_0x50d629(0x1e3)+METADATA_FILE+_0x50d629(0x1c1)+_0x37dda8['scope']+'\x22.',_0x50d629(0x1c3)+_0x49cde7+'\x20to\x20submit\x20company\x20Skills\x20for\x20review.');const _0x20a437=scanSkillDirectory(_0x49cde7,{'excludedFilePaths':_0x4854ce[_0x50d629(0x1d8)]}),_0x7feffa=buildSkillPackage(_0x20a437),_0x1a8ed8=readFileSync(_0x2fc0b2,'utf8'),_0x34e944=_0x4538dd[_0x50d629(0x1bd)],_0x5698f2=_0x4854ce['ignoreMetadataForPayload']?undefined:_0x37dda8,_0x2685d2=readSkillDisplayName(_0x1a8ed8);return{'skillCode':_0x34e944,'metadata':_0x37dda8,'frontmatterDisplayName':_0x2685d2,'input':{'skillCode':_0x34e944,'skillName':_0x2685d2??_0x5698f2?.[_0x50d629(0x1bf)],'description':_0x5698f2?.[_0x50d629(0x1e5)],'content':_0x1a8ed8,'files':_0x7feffa['manifest'],'packageBase64':_0x7feffa[_0x50d629(0x1c2)],'tags':_0x5698f2?.[_0x50d629(0x1f5)],'version':_0x5698f2?.['version'],'sourceSessionId':_0x5698f2?.['sourceSessionId']}};}export function refreshPushDirectoryMetadataFromRemote(_0x37ee24,_0x1cb770,_0x4eb9ad,_0x56c06e={}){const _0x151ba7=a119_0x156a,_0x9d23aa=resolvePushDirectoryRoot(_0x37ee24),_0x347acf=readPushMetadataIfPresent(resolve(_0x9d23aa,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x4b6123=requireRemoteScope(_0x1cb770),_0x3a14fd=readLocalSkillContent(_0x9d23aa),_0x212eed={..._0x1cb770,'appCode':_0x1cb770['appCode']??_0x4eb9ad,'skillName':_0x1cb770[_0x151ba7(0x1bf)]??_0x347acf?.[_0x151ba7(0x1bf)],'description':_0x1cb770[_0x151ba7(0x1e5)]??_0x347acf?.[_0x151ba7(0x1e5)],'tags':Array['isArray'](_0x1cb770['tags'])?_0x1cb770['tags']:_0x347acf?.[_0x151ba7(0x1f5)],'sourceSessionId':_0x1cb770[_0x151ba7(0x1d3)]??_0x347acf?.[_0x151ba7(0x1d3)],'content':_0x1cb770[_0x151ba7(0x1e1)]??_0x3a14fd},_0x499901=buildMetadata(_0x212eed,_0x4b6123,_0x4eb9ad,contentHash(_0x3a14fd),_0x56c06e['refreshedAt']);writeJsonAtomic(resolve(_0x9d23aa,METADATA_FILE),_0x499901);}export function recordPushedRuntimeSkill(_0x2a0fa5,_0x59d47b,_0x5833f6,_0x425146={}){const _0xad996a=a119_0x156a,_0x57d069=resolvePushDirectoryRoot(_0x2a0fa5),_0xb9e6ed=scanSkillDirectory(_0x57d069),_0xfc93fe=_0xb9e6ed[_0xad996a(0x1e9)](_0x2aba13=>_0x2aba13[_0xad996a(0x1ed)]===SKILL_FILE),_0x19dcd3=_0xfc93fe?fileText(_0xfc93fe):'',_0x25cd9e=tryNormalizePackageManifest(_0x59d47b[_0xad996a(0x1f9)]),_0x5b97b6={..._0x59d47b,'content':_0x59d47b['content']??_0x19dcd3,'files':_0x25cd9e},_0x3f5263=_0x25cd9e?normalizeLocalFiles(_0xb9e6ed)[_0xad996a(0x1f1)](_0x4142ff=>_0x25cd9e['files'][_0xad996a(0x1c8)](_0x3190ae=>_0x3190ae['path']===_0x4142ff[_0xad996a(0x1ed)])):undefined,_0x300571=buildMetadata(_0x5b97b6,_0x425146['scope']??_0xad996a(0x1d7),_0x5833f6,contentHash(_0x5b97b6[_0xad996a(0x1e1)]??''),_0x425146[_0xad996a(0x1c6)],_0x3f5263);writeJsonAtomic(resolve(_0x57d069,METADATA_FILE),_0x300571);}export function deriveSkillCodeFromDirectory(_0x43b0f4,_0x2ec7b8){const _0x2f7b3d=a119_0x156a,_0xe1c6d=basename(resolve(_0x43b0f4)),_0x1798e9=_0x2ec7b8+'--';return _0xe1c6d['startsWith'](_0x1798e9)?_0xe1c6d[_0x2f7b3d(0x1c7)](_0x1798e9[_0x2f7b3d(0x1dd)]):_0xe1c6d;}function resolvePushSkillCode(_0x24f2af,_0x3e776b,_0x40615a,_0x1e1ff7){const _0x477112=a119_0x156a,_0x8dad66=deriveSkillCodeFromSkillFile(_0x24f2af)||deriveSkillCodeFromDirectory(_0x24f2af,_0x3e776b);if(_0x1e1ff7[_0x477112(0x1da)])return _0x8dad66;return _0x40615a?.[_0x477112(0x1bd)]?.[_0x477112(0x1c0)]()||_0x8dad66;}function deriveSkillCodeFromSkillFile(_0x43c565){const _0xbbd869=a119_0x156a,_0x4c801d=resolve(_0x43c565,SKILL_FILE);if(!existsSync(_0x4c801d)||!lstatSync(_0x4c801d)[_0xbbd869(0x1ca)]())return undefined;const _0x78f134=readFileSync(_0x4c801d,_0xbbd869(0x1f4)),_0x42c717=_0x78f134[_0xbbd869(0x1db)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x42c717)return undefined;const _0x40d3b8=parseFrontmatterObject(_0x42c717[0x1]??''),_0x182084=scalarToString(_0x40d3b8?.[_0xbbd869(0x1d1)]);return _0x182084?slugifySkillName(_0x182084):undefined;}function readSkillDisplayName(_0x382a0){const _0x4a09fc=a119_0x156a,_0x423ee8=_0x382a0[_0x4a09fc(0x1db)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x423ee8)return undefined;const _0x273e2f=parseFrontmatterObject(_0x423ee8[0x1]??'');return scalarToString(_0x273e2f?.[_0x4a09fc(0x1cf)]);}function slugifySkillName(_0x1c10c7){const _0x20ddb5=a119_0x156a,_0x165a7f=_0x1c10c7[_0x20ddb5(0x1c0)]()[_0x20ddb5(0x1e4)]()[_0x20ddb5(0x1ee)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x20ddb5(0x1ee)](/^-+/,'')[_0x20ddb5(0x1ee)](/-+$/,'')[_0x20ddb5(0x1ee)](/-{2,}/g,'-');if(!_0x165a7f)throw CliErrors['validation'](_0x20ddb5(0x1ef)+SKILL_FILE+_0x20ddb5(0x1fc));return _0x165a7f;}function a119_0x156a(_0x38947a,_0x4583ab){_0x38947a=_0x38947a-0x1bd;const _0x519813=a119_0x5198();let _0x156a23=_0x519813[_0x38947a];return _0x156a23;}function parseFrontmatterObject(_0x421139){const _0x21cd13=a119_0x156a;try{const _0x4dabaf=a119_0x93a14a(_0x421139);return _0x4dabaf&&typeof _0x4dabaf===_0x21cd13(0x1f6)&&!Array[_0x21cd13(0x1c4)](_0x4dabaf)?_0x4dabaf:undefined;}catch{return undefined;}}function scalarToString(_0x3d1b8b){const _0x534ac6=a119_0x156a;if(typeof _0x3d1b8b===_0x534ac6(0x1ce))return _0x3d1b8b[_0x534ac6(0x1c0)]();if(typeof _0x3d1b8b===_0x534ac6(0x1dc)||typeof _0x3d1b8b===_0x534ac6(0x1fd))return String(_0x3d1b8b);return undefined;}function resolvePushDirectoryRoot(_0x22503b){const _0x5315c0=a119_0x156a,_0xd6f4f9=resolve(_0x22503b);if(!existsSync(_0xd6f4f9))throw CliErrors[_0x5315c0(0x1cd)](_0x5315c0(0x1f7)+_0x22503b);const _0x35061b=lstatSync(_0xd6f4f9);if(_0x35061b[_0x5315c0(0x1e6)]())return _0xd6f4f9;if(_0x35061b[_0x5315c0(0x1f0)]()){const _0xee1304=realpathSync(_0xd6f4f9);if(lstatSync(_0xee1304)['isDirectory']())return _0xee1304;}throw CliErrors['validation'](_0x5315c0(0x1f7)+_0x22503b);}function requireRemoteScope(_0x2e69f6){const _0x14ca49=a119_0x156a;if(_0x2e69f6[_0x14ca49(0x1d6)]===_0x14ca49(0x1d7)||_0x2e69f6[_0x14ca49(0x1d6)]===_0x14ca49(0x1e0)||_0x2e69f6[_0x14ca49(0x1d6)]===_0x14ca49(0x1f3))return _0x2e69f6[_0x14ca49(0x1d6)];throw CliErrors[_0x14ca49(0x1cd)](_0x14ca49(0x1e8)+(_0x2e69f6[_0x14ca49(0x1bd)]||_0x14ca49(0x1d9))+'\x20has\x20unsupported\x20scope\x20\x22'+(_0x2e69f6[_0x14ca49(0x1d6)]??_0x14ca49(0x1be))+'\x22.');}function readLocalSkillContent(_0x3ade64){const _0x52d89a=a119_0x156a,_0x1a0dfc=resolve(_0x3ade64,SKILL_FILE);return existsSync(_0x1a0dfc)&&lstatSync(_0x1a0dfc)[_0x52d89a(0x1ca)]()?readFileSync(_0x1a0dfc,_0x52d89a(0x1f4)):'';}function readPushMetadataIfPresent(_0x34ef39,_0x3617e4={}){const _0x38031b=a119_0x156a;try{return readMetadataIfPresent(_0x34ef39);}catch(_0x54e663){if(_0x3617e4[_0x38031b(0x1d2)])return undefined;throw _0x54e663;}}
1
+ (function(_0x31a9c6,_0x20ffca){const _0x98d904=a119_0x1116,_0x188d62=_0x31a9c6();while(!![]){try{const _0x4e44e4=parseInt(_0x98d904(0x74))/0x1+-parseInt(_0x98d904(0x8b))/0x2+-parseInt(_0x98d904(0x82))/0x3+parseInt(_0x98d904(0xb4))/0x4*(parseInt(_0x98d904(0x8c))/0x5)+-parseInt(_0x98d904(0x7d))/0x6*(parseInt(_0x98d904(0xa4))/0x7)+-parseInt(_0x98d904(0xb1))/0x8+parseInt(_0x98d904(0x7b))/0x9;if(_0x4e44e4===_0x20ffca)break;else _0x188d62['push'](_0x188d62['shift']());}catch(_0x58c894){_0x188d62['push'](_0x188d62['shift']());}}}(a119_0x4a7c,0x4de65));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a119_0x8c94ce}from'yaml';function a119_0x1116(_0x2e82b6,_0x27380b){_0x2e82b6=_0x2e82b6-0x72;const _0x4a7ce0=a119_0x4a7c();let _0x11165c=_0x4a7ce0[_0x2e82b6];return _0x11165c;}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(_0xb63ad2,_0x5d9b44,_0xb7ef78={}){const _0x47f228=a119_0x1116,_0x4a1146=resolvePushDirectoryRoot(_0xb63ad2),_0x35ea7b=readPushMetadataIfPresent(resolve(_0x4a1146,METADATA_FILE),{'ignoreInvalidMetadata':_0xb7ef78[_0x47f228(0xa8)]});if(_0x35ea7b?.[_0x47f228(0xb3)]&&_0x35ea7b['appCode']!==_0x5d9b44&&!_0xb7ef78[_0x47f228(0x7f)]&&!_0xb7ef78[_0x47f228(0x81)])throw CliErrors[_0x47f228(0xa6)]('Skill\x20metadata\x20appCode\x20\x22'+_0x35ea7b['appCode']+_0x47f228(0x9c)+_0x5d9b44+'\x22.');const _0x4f8073=resolvePushSkillCode(_0x4a1146,_0x5d9b44,_0x35ea7b,_0xb7ef78);if(!_0x4f8073)throw CliErrors['validation'](_0x47f228(0x78)+SKILL_FILE+',\x20'+METADATA_FILE+_0x47f228(0xb5));return{'dir':_0x4a1146,'skillCode':_0x4f8073,'metadata':_0x35ea7b};}export function readPushDirectory(_0x2e2f60,_0x3d3e39,_0x5c6a8f={}){const _0x4d3307=a119_0x1116,_0x35dbaf=resolvePushDirectoryIdentity(_0x2e2f60,_0x3d3e39,_0x5c6a8f),_0x1fe15b=_0x35dbaf[_0x4d3307(0x88)],_0x5ef3a9=resolve(_0x1fe15b,SKILL_FILE);if(!existsSync(_0x5ef3a9)||!lstatSync(_0x5ef3a9)[_0x4d3307(0x99)]())throw CliErrors['validation'](_0x4d3307(0x73)+SKILL_FILE+':\x20'+_0x5ef3a9);const _0x1a6e11=_0x35dbaf[_0x4d3307(0x9e)],_0x2ff717=_0x5c6a8f[_0x4d3307(0xa5)]??_0x4d3307(0xae);if(!_0x5c6a8f['ignoreMetadataScope']&&_0x1a6e11?.[_0x4d3307(0x8f)]===_0x4d3307(0x84))throw CliErrors[_0x4d3307(0xa6)]('Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20'+METADATA_FILE+_0x4d3307(0x96)+_0x1a6e11[_0x4d3307(0x8f)]+'\x22.');if(!_0x5c6a8f[_0x4d3307(0xb0)]&&_0x2ff717===_0x4d3307(0xae)&&_0x1a6e11?.[_0x4d3307(0x8f)]&&_0x1a6e11[_0x4d3307(0x8f)]!==_0x4d3307(0xae))throw CliErrors['validation'](_0x4d3307(0x8e)+METADATA_FILE+_0x4d3307(0x96)+_0x1a6e11['scope']+'\x22.',_0x4d3307(0x87)+_0x1fe15b+'\x20to\x20submit\x20company\x20Skills\x20for\x20review.');const _0xe6d60e=scanSkillDirectory(_0x1fe15b,{'excludedFilePaths':_0x5c6a8f[_0x4d3307(0x8d)]}),_0x27ba3a=buildSkillPackage(_0xe6d60e),_0x333d31=readFileSync(_0x5ef3a9,_0x4d3307(0xa9)),_0x5822e9=_0x35dbaf[_0x4d3307(0xa2)],_0x244128=_0x5c6a8f[_0x4d3307(0xa0)]?undefined:_0x1a6e11,_0x177922=readSkillDisplayName(_0x333d31);return{'skillCode':_0x5822e9,'metadata':_0x1a6e11,'frontmatterDisplayName':_0x177922,'input':{'skillCode':_0x5822e9,'skillName':_0x177922??_0x244128?.[_0x4d3307(0x7a)],'description':_0x244128?.[_0x4d3307(0x94)],'content':_0x333d31,'files':_0x27ba3a['manifest'],'packageBase64':_0x27ba3a[_0x4d3307(0x9d)],'tags':_0x244128?.[_0x4d3307(0x72)],'version':_0x244128?.[_0x4d3307(0x98)],'sourceSessionId':_0x244128?.[_0x4d3307(0xa1)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x267ef1,_0x478111,_0x265faa,_0x5da35c={}){const _0x937c79=a119_0x1116,_0x325534=resolvePushDirectoryRoot(_0x267ef1),_0x1eb02c=readPushMetadataIfPresent(resolve(_0x325534,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x5c7eb6=requireRemoteScope(_0x478111),_0x3b2ab4=readLocalSkillContent(_0x325534),_0x1cd6c0={..._0x478111,'appCode':_0x478111[_0x937c79(0xb3)]??_0x265faa,'skillName':_0x478111[_0x937c79(0x7a)]??_0x1eb02c?.[_0x937c79(0x7a)],'description':_0x478111[_0x937c79(0x94)]??_0x1eb02c?.[_0x937c79(0x94)],'tags':Array['isArray'](_0x478111['tags'])?_0x478111[_0x937c79(0x72)]:_0x1eb02c?.[_0x937c79(0x72)],'sourceSessionId':_0x478111[_0x937c79(0xa1)]??_0x1eb02c?.[_0x937c79(0xa1)],'content':_0x478111[_0x937c79(0xaf)]??_0x3b2ab4},_0x379672=buildMetadata(_0x1cd6c0,_0x5c7eb6,_0x265faa,contentHash(_0x3b2ab4),_0x5da35c[_0x937c79(0xb2)]);writeJsonAtomic(resolve(_0x325534,METADATA_FILE),_0x379672);}export function recordPushedRuntimeSkill(_0xb65f6d,_0x4c17bc,_0x26be59,_0x38ff0f={}){const _0x5c0ed0=a119_0x1116,_0x582fa9=resolvePushDirectoryRoot(_0xb65f6d),_0x3c8288=scanSkillDirectory(_0x582fa9),_0x1579c2=_0x3c8288[_0x5c0ed0(0x91)](_0x4f8c01=>_0x4f8c01[_0x5c0ed0(0xa3)]===SKILL_FILE),_0x365581=_0x1579c2?fileText(_0x1579c2):'',_0x122487=tryNormalizePackageManifest(_0x4c17bc[_0x5c0ed0(0x9a)]),_0x49b29c={..._0x4c17bc,'content':_0x4c17bc[_0x5c0ed0(0xaf)]??_0x365581,'files':_0x122487},_0x15e7ce=_0x122487?normalizeLocalFiles(_0x3c8288)[_0x5c0ed0(0x95)](_0x47abf4=>_0x122487[_0x5c0ed0(0x9a)][_0x5c0ed0(0x86)](_0x5c6dfc=>_0x5c6dfc[_0x5c0ed0(0xa3)]===_0x47abf4[_0x5c0ed0(0xa3)])):undefined,_0xeba0c3=buildMetadata(_0x49b29c,_0x38ff0f[_0x5c0ed0(0x8f)]??_0x5c0ed0(0xae),_0x26be59,contentHash(_0x49b29c[_0x5c0ed0(0xaf)]??''),_0x38ff0f[_0x5c0ed0(0x76)],_0x15e7ce);writeJsonAtomic(resolve(_0x582fa9,METADATA_FILE),_0xeba0c3);}export function deriveSkillCodeFromDirectory(_0x34a51a,_0x42fc5f){const _0x13dc45=a119_0x1116,_0x50a10e=basename(resolve(_0x34a51a)),_0x32e149=_0x42fc5f+'--';return _0x50a10e[_0x13dc45(0x93)](_0x32e149)?_0x50a10e[_0x13dc45(0xa7)](_0x32e149[_0x13dc45(0x79)]):_0x50a10e;}function resolvePushSkillCode(_0x3fffbf,_0x5aa173,_0x189b20,_0x3bd505){const _0x1069fa=a119_0x1116,_0x4a4e54=deriveSkillCodeFromSkillFile(_0x3fffbf)||deriveSkillCodeFromDirectory(_0x3fffbf,_0x5aa173);if(_0x3bd505['ignoreMetadataSkillCode'])return _0x4a4e54;return _0x189b20?.[_0x1069fa(0xa2)]?.['trim']()||_0x4a4e54;}function deriveSkillCodeFromSkillFile(_0x197f10){const _0x4a5571=a119_0x1116,_0xd1c594=resolve(_0x197f10,SKILL_FILE);if(!existsSync(_0xd1c594)||!lstatSync(_0xd1c594)[_0x4a5571(0x99)]())return undefined;const _0x25bae9=readFileSync(_0xd1c594,_0x4a5571(0xa9)),_0x279c88=_0x25bae9[_0x4a5571(0x7e)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x279c88)return undefined;const _0x5971db=parseFrontmatterObject(_0x279c88[0x1]??''),_0x521230=scalarToString(_0x5971db?.[_0x4a5571(0x92)]);return _0x521230?slugifySkillName(_0x521230):undefined;}function a119_0x4a7c(){const _0x58f1d8=['builtin','\x20name\x20for\x20SkillHub\x20slug\x20generation.','some','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','dir','number','replace','777100Pxoyux','817995VFirlv','excludedFilePaths','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','scope','unknown','find','name','startsWith','description','filter','\x20has\x20scope=\x22','isSymbolicLink','version','isFile','files','string','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','packageBase64','metadata','Skill\x20directory\x20not\x20found:\x20','ignoreMetadataForPayload','sourceSessionId','skillCode','path','63294uAKqMA','targetScope','validation','slice','ignoreInvalidMetadata','utf8','object','toLowerCase','(unknown)','displayName','personal','content','ignoreMetadataScope','4322152gYLhHS','refreshedAt','appCode','12XPlAYM',',\x20or\x20directory\x20name.','tags','Missing\x20','447695YtGLoC','isDirectory','pushedAt','Remote\x20Skill\x20','Unable\x20to\x20resolve\x20skillCode\x20from\x20','length','skillName','6974397eREJsV','\x20has\x20unsupported\x20scope\x20\x22','144pthlPr','match','allowAppCodeRetarget','company','ignoreMetadataAppCodeMismatch','745563ENpXxj','isArray'];a119_0x4a7c=function(){return _0x58f1d8;};return a119_0x4a7c();}function readSkillDisplayName(_0x18a7d0){const _0x3bb7d8=a119_0x1116,_0x4a7054=_0x18a7d0[_0x3bb7d8(0x7e)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x4a7054)return undefined;const _0x417023=parseFrontmatterObject(_0x4a7054[0x1]??'');return scalarToString(_0x417023?.[_0x3bb7d8(0xad)]);}function slugifySkillName(_0x320ab1){const _0x34ce78=a119_0x1116,_0x195c17=_0x320ab1['trim']()[_0x34ce78(0xab)]()['replace'](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x34ce78(0x8a)](/^-+/,'')[_0x34ce78(0x8a)](/-+$/,'')['replace'](/-{2,}/g,'-');if(!_0x195c17)throw CliErrors['validation']('Invalid\x20'+SKILL_FILE+_0x34ce78(0x85));return _0x195c17;}function parseFrontmatterObject(_0x1ccd54){const _0xe35b5c=a119_0x1116;try{const _0x596a07=a119_0x8c94ce(_0x1ccd54);return _0x596a07&&typeof _0x596a07===_0xe35b5c(0xaa)&&!Array[_0xe35b5c(0x83)](_0x596a07)?_0x596a07:undefined;}catch{return undefined;}}function scalarToString(_0x1492c8){const _0x1503a8=a119_0x1116;if(typeof _0x1492c8===_0x1503a8(0x9b))return _0x1492c8['trim']();if(typeof _0x1492c8===_0x1503a8(0x89)||typeof _0x1492c8==='boolean')return String(_0x1492c8);return undefined;}function resolvePushDirectoryRoot(_0x1e7438){const _0x4fd2c9=a119_0x1116,_0x22f26e=resolve(_0x1e7438);if(!existsSync(_0x22f26e))throw CliErrors[_0x4fd2c9(0xa6)](_0x4fd2c9(0x9f)+_0x1e7438);const _0x2fb3ec=lstatSync(_0x22f26e);if(_0x2fb3ec['isDirectory']())return _0x22f26e;if(_0x2fb3ec[_0x4fd2c9(0x97)]()){const _0x27597d=realpathSync(_0x22f26e);if(lstatSync(_0x27597d)[_0x4fd2c9(0x75)]())return _0x27597d;}throw CliErrors[_0x4fd2c9(0xa6)](_0x4fd2c9(0x9f)+_0x1e7438);}function requireRemoteScope(_0x224a1c){const _0x17edfb=a119_0x1116;if(_0x224a1c['scope']==='personal'||_0x224a1c[_0x17edfb(0x8f)]===_0x17edfb(0x80)||_0x224a1c[_0x17edfb(0x8f)]===_0x17edfb(0x84))return _0x224a1c[_0x17edfb(0x8f)];throw CliErrors[_0x17edfb(0xa6)](_0x17edfb(0x77)+(_0x224a1c[_0x17edfb(0xa2)]||_0x17edfb(0xac))+_0x17edfb(0x7c)+(_0x224a1c['scope']??_0x17edfb(0x90))+'\x22.');}function readLocalSkillContent(_0xc9ab85){const _0x44c50c=a119_0x1116,_0x8b1c54=resolve(_0xc9ab85,SKILL_FILE);return existsSync(_0x8b1c54)&&lstatSync(_0x8b1c54)['isFile']()?readFileSync(_0x8b1c54,_0x44c50c(0xa9)):'';}function readPushMetadataIfPresent(_0x959477,_0x378e67={}){try{return readMetadataIfPresent(_0x959477);}catch(_0x11c77b){if(_0x378e67['ignoreInvalidMetadata'])return undefined;throw _0x11c77b;}}
@@ -1 +1 @@
1
- (function(_0x59e3dc,_0x4a65eb){const _0x359460=a120_0x3971,_0x32bce1=_0x59e3dc();while(!![]){try{const _0xb3f273=-parseInt(_0x359460(0x6b))/0x1+-parseInt(_0x359460(0x68))/0x2*(-parseInt(_0x359460(0x67))/0x3)+parseInt(_0x359460(0x74))/0x4*(parseInt(_0x359460(0x78))/0x5)+parseInt(_0x359460(0x6d))/0x6+parseInt(_0x359460(0x72))/0x7*(-parseInt(_0x359460(0x75))/0x8)+-parseInt(_0x359460(0x76))/0x9*(-parseInt(_0x359460(0x6c))/0xa)+-parseInt(_0x359460(0x6f))/0xb*(parseInt(_0x359460(0x73))/0xc);if(_0xb3f273===_0x4a65eb)break;else _0x32bce1['push'](_0x32bce1['shift']());}catch(_0x3d1567){_0x32bce1['push'](_0x32bce1['shift']());}}}(a120_0xb14f,0x358cc));function a120_0xb14f(){const _0x4201b1=['48oLobxG','1004PheddO','304408PHbvPs','342eRoVNV','includes','3060KgwFBo','company','1210938FTRNGd','2ICqibH','personal','push','210944SyOnwo','42590oZdtyr','2295342XCbVhj','length','1113794JArsFr','builtin','Unsupported\x20runtime\x20Skill\x20scope:\x20','49ZQWQBk'];a120_0xb14f=function(){return _0x4201b1;};return a120_0xb14f();}function a120_0x3971(_0xd7d5e8,_0x28515d){_0xd7d5e8=_0xd7d5e8-0x66;const _0xb14f02=a120_0xb14f();let _0x397164=_0xb14f02[_0xd7d5e8];return _0x397164;}import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x4f4005){const _0x1af2e0=a120_0x3971,_0x47bcb1=_0x4f4005&&_0x4f4005[_0x1af2e0(0x6e)]>0x0?_0x4f4005:[_0x1af2e0(0x69),_0x1af2e0(0x66),_0x1af2e0(0x70)],_0x2487f6=[];for(const _0x22dd80 of _0x47bcb1){if(!isRuntimeSkillScope(_0x22dd80))throw CliErrors['validation'](_0x1af2e0(0x71)+_0x22dd80);!_0x2487f6[_0x1af2e0(0x77)](_0x22dd80)&&_0x2487f6[_0x1af2e0(0x6a)](_0x22dd80);}return _0x2487f6;}export function isRuntimeSkillScope(_0x18b26c){const _0x81c41a=a120_0x3971;return _0x18b26c==='personal'||_0x18b26c===_0x81c41a(0x66)||_0x18b26c==='builtin';}
1
+ function a120_0x1019(){const _0x5bcdde=['22286WFEWkd','2595315uPPngA','15683650YzgRBO','4216758QERHin','12cTTBbN','length','1368UVQiTW','includes','2qOWhBH','builtin','972uwGxfz','push','25332SwmxqV','company','10812yeSlPA','validation','574724qoIUFp','13080bASJcH','personal'];a120_0x1019=function(){return _0x5bcdde;};return a120_0x1019();}(function(_0xaf79b,_0x5d5ac2){const _0xf70cd3=a120_0x3324,_0x3f2c2d=_0xaf79b();while(!![]){try{const _0xbf2b26=-parseInt(_0xf70cd3(0x1bf))/0x1*(-parseInt(_0xf70cd3(0x1b4))/0x2)+parseInt(_0xf70cd3(0x1bd))/0x3*(parseInt(_0xf70cd3(0x1b2))/0x4)+parseInt(_0xf70cd3(0x1b8))/0x5+-parseInt(_0xf70cd3(0x1bb))/0x6*(-parseInt(_0xf70cd3(0x1ba))/0x7)+parseInt(_0xf70cd3(0x1b5))/0x8*(parseInt(_0xf70cd3(0x1c1))/0x9)+parseInt(_0xf70cd3(0x1b9))/0xa+-parseInt(_0xf70cd3(0x1b7))/0xb*(parseInt(_0xf70cd3(0x1c3))/0xc);if(_0xbf2b26===_0x5d5ac2)break;else _0x3f2c2d['push'](_0x3f2c2d['shift']());}catch(_0x217ce0){_0x3f2c2d['push'](_0x3f2c2d['shift']());}}}(a120_0x1019,0xf3f22));function a120_0x3324(_0x55f107,_0x1a6196){_0x55f107=_0x55f107-0x1b2;const _0x101924=a120_0x1019();let _0x33249a=_0x101924[_0x55f107];return _0x33249a;}import{CliErrors}from'../../errors.js';export function normalizeRuntimeSkillScopes(_0x3d7a62){const _0x3c2c68=a120_0x3324,_0x5b76ed=_0x3d7a62&&_0x3d7a62[_0x3c2c68(0x1bc)]>0x0?_0x3d7a62:[_0x3c2c68(0x1b6),_0x3c2c68(0x1c4),_0x3c2c68(0x1c0)],_0x580829=[];for(const _0x4cd106 of _0x5b76ed){if(!isRuntimeSkillScope(_0x4cd106))throw CliErrors[_0x3c2c68(0x1b3)]('Unsupported\x20runtime\x20Skill\x20scope:\x20'+_0x4cd106);!_0x580829[_0x3c2c68(0x1be)](_0x4cd106)&&_0x580829[_0x3c2c68(0x1c2)](_0x4cd106);}return _0x580829;}export function isRuntimeSkillScope(_0x535798){const _0x3bdacd=a120_0x3324;return _0x535798===_0x3bdacd(0x1b6)||_0x535798==='company'||_0x535798===_0x3bdacd(0x1c0);}
@@ -1 +1 @@
1
- const a122_0x987955=a122_0x147d;function a122_0x147d(_0x17e091,_0x1af019){_0x17e091=_0x17e091-0x153;const _0x4ad354=a122_0x4ad3();let _0x147d2b=_0x4ad354[_0x17e091];return _0x147d2b;}function a122_0x4ad3(){const _0x175a25=['36YLPCZH','5210595iTYKLm','1436481oCMUHz','from','18568qHenOc','map','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','validation','2uYAlYA','151085aPgSKE','path','2529428IYfzeR','entries','1980-01-01T00:00:00.000Z','431525xNnAey','name','length','15800570XeoXdu','code','7jmMXpj'];a122_0x4ad3=function(){return _0x175a25;};return a122_0x4ad3();}(function(_0x4f95fa,_0x5a5e08){const _0x4da297=a122_0x147d,_0x311e5f=_0x4f95fa();while(!![]){try{const _0x1a0dac=-parseInt(_0x4da297(0x154))/0x1+-parseInt(_0x4da297(0x153))/0x2*(parseInt(_0x4da297(0x161))/0x3)+-parseInt(_0x4da297(0x156))/0x4+-parseInt(_0x4da297(0x159))/0x5*(parseInt(_0x4da297(0x15f))/0x6)+-parseInt(_0x4da297(0x15e))/0x7*(parseInt(_0x4da297(0x163))/0x8)+parseInt(_0x4da297(0x160))/0x9+parseInt(_0x4da297(0x15c))/0xa;if(_0x1a0dac===_0x5a5e08)break;else _0x311e5f['push'](_0x311e5f['shift']());}catch(_0x4f984d){_0x311e5f['push'](_0x311e5f['shift']());}}}(a122_0x4ad3,0x5bf10));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date(a122_0x987955(0x158));export function createDeterministicZipPackage(_0x46a1ea){const _0x4d7b35=a122_0x987955,_0x2cb748={};for(const _0x1ddad8 of normalizeLocalFiles(_0x46a1ea)){_0x2cb748[_0x1ddad8[_0x4d7b35(0x155)]]=fileContent(_0x1ddad8);}return Buffer[_0x4d7b35(0x162)](zipSync(_0x2cb748,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x260999){const _0x208d56=a122_0x987955;if(_0x260999[_0x208d56(0x15b)]<0x16)throw CliErrors[_0x208d56(0x166)](_0x208d56(0x165));let _0x59188e;try{_0x59188e=unzipSync(_0x260999,{'filter'(_0x46ae43){const _0x3a0379=_0x208d56,_0x359ef9=normalizeSkillRelativePath(_0x46ae43[_0x3a0379(0x15a)]);if(_0x359ef9['endsWith']('/'))throw CliErrors[_0x3a0379(0x166)]('Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20'+_0x359ef9);return!![];}});}catch(_0x57848b){if(isRuntimeSkillValidationError(_0x57848b))throw _0x57848b;throw CliErrors[_0x208d56(0x166)](_0x208d56(0x165));}return Object[_0x208d56(0x157)](_0x59188e)[_0x208d56(0x164)](([_0x5e8dad,_0x4c4156])=>({'path':normalizeSkillRelativePath(_0x5e8dad),'bytes':Buffer[_0x208d56(0x162)](_0x4c4156)}))['sort'](compareSkillFiles);}function isRuntimeSkillValidationError(_0x3facbb){const _0x30f195=a122_0x987955;return typeof _0x3facbb==='object'&&_0x3facbb!==null&&'code'in _0x3facbb&&_0x3facbb[_0x30f195(0x15d)]==='validation_error';}
1
+ const a122_0x54bcee=a122_0x2444;(function(_0x515997,_0x5cb574){const _0x59fb2c=a122_0x2444,_0x447a52=_0x515997();while(!![]){try{const _0x5f4e26=-parseInt(_0x59fb2c(0x194))/0x1+parseInt(_0x59fb2c(0x19c))/0x2*(-parseInt(_0x59fb2c(0x1a3))/0x3)+-parseInt(_0x59fb2c(0x1a2))/0x4*(-parseInt(_0x59fb2c(0x199))/0x5)+parseInt(_0x59fb2c(0x19a))/0x6+parseInt(_0x59fb2c(0x1a0))/0x7*(parseInt(_0x59fb2c(0x1a8))/0x8)+parseInt(_0x59fb2c(0x19b))/0x9+-parseInt(_0x59fb2c(0x19f))/0xa;if(_0x5f4e26===_0x5cb574)break;else _0x447a52['push'](_0x447a52['shift']());}catch(_0x14a9e1){_0x447a52['push'](_0x447a52['shift']());}}}(a122_0x56be,0x84c13));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';function a122_0x56be(){const _0x3b51ca=['sort','map','185IEpQQP','270432YGUxKh','6490233SfGMMZ','38532FcDWdu','code','name','3738700ETNqOS','964726ZIodBe','validation_error','3788Gdxbmf','57ijDDre','1980-01-01T00:00:00.000Z','endsWith','validation','path','32rvmGeh','length','68833VNXGkV','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','entries'];a122_0x56be=function(){return _0x3b51ca;};return a122_0x56be();}function a122_0x2444(_0x1cf769,_0x597385){_0x1cf769=_0x1cf769-0x194;const _0x56bebc=a122_0x56be();let _0x244413=_0x56bebc[_0x1cf769];return _0x244413;}const ZIP_MTIME=new Date(a122_0x54bcee(0x1a4));export function createDeterministicZipPackage(_0x17470f){const _0x395672=a122_0x54bcee,_0x113970={};for(const _0xd49f19 of normalizeLocalFiles(_0x17470f)){_0x113970[_0xd49f19[_0x395672(0x1a7)]]=fileContent(_0xd49f19);}return Buffer['from'](zipSync(_0x113970,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x529beb){const _0x4af34f=a122_0x54bcee;if(_0x529beb[_0x4af34f(0x1a9)]<0x16)throw CliErrors[_0x4af34f(0x1a6)](_0x4af34f(0x195));let _0xaffa3c;try{_0xaffa3c=unzipSync(_0x529beb,{'filter'(_0x1439cb){const _0x4b7d95=_0x4af34f,_0x1651b9=normalizeSkillRelativePath(_0x1439cb[_0x4b7d95(0x19e)]);if(_0x1651b9[_0x4b7d95(0x1a5)]('/'))throw CliErrors['validation']('Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20'+_0x1651b9);return!![];}});}catch(_0x243bed){if(isRuntimeSkillValidationError(_0x243bed))throw _0x243bed;throw CliErrors[_0x4af34f(0x1a6)](_0x4af34f(0x195));}return Object[_0x4af34f(0x196)](_0xaffa3c)[_0x4af34f(0x198)](([_0x2eac9f,_0x5c46c2])=>({'path':normalizeSkillRelativePath(_0x2eac9f),'bytes':Buffer['from'](_0x5c46c2)}))[_0x4af34f(0x197)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x10f043){const _0xc6bb46=a122_0x54bcee;return typeof _0x10f043==='object'&&_0x10f043!==null&&_0xc6bb46(0x19d)in _0x10f043&&_0x10f043[_0xc6bb46(0x19d)]===_0xc6bb46(0x1a1);}
@@ -1 +1 @@
1
- (function(_0x10ccf7,_0x4e28e3){const _0x3d8ab0=a123_0x3041,_0x45786f=_0x10ccf7();while(!![]){try{const _0x401a27=-parseInt(_0x3d8ab0(0xc5))/0x1+-parseInt(_0x3d8ab0(0xbb))/0x2*(-parseInt(_0x3d8ab0(0xc0))/0x3)+parseInt(_0x3d8ab0(0xc4))/0x4+-parseInt(_0x3d8ab0(0xd3))/0x5+-parseInt(_0x3d8ab0(0xcf))/0x6*(parseInt(_0x3d8ab0(0xd2))/0x7)+parseInt(_0x3d8ab0(0xcd))/0x8+parseInt(_0x3d8ab0(0xe0))/0x9*(parseInt(_0x3d8ab0(0xc8))/0xa);if(_0x401a27===_0x4e28e3)break;else _0x45786f['push'](_0x45786f['shift']());}catch(_0x5695a5){_0x45786f['push'](_0x45786f['shift']());}}}(a123_0x4876,0xa39fa));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';function a123_0x3041(_0xd5d985,_0xb7e205){_0xd5d985=_0xd5d985-0xb8;const _0x48765b=a123_0x4876();let _0x304129=_0x48765b[_0xd5d985];return _0x304129;}import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x34cbb4){const _0x1221e5=a123_0x3041,_0x3d9cba=normalizeLocalFiles(_0x34cbb4);if(!_0x3d9cba[_0x1221e5(0xd5)](_0x379012=>_0x379012['path']===SKILL_FILE))throw CliErrors[_0x1221e5(0xc1)](_0x1221e5(0xce)+SKILL_FILE+_0x1221e5(0xd0));const _0x57b5e2=localFilesToManifestFiles(_0x3d9cba),_0x4eb4cc=createDeterministicZipPackage(_0x3d9cba);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x57b5e2),'zipSha256':bufferSha256(_0x4eb4cc),'zipSize':_0x4eb4cc['length'],'files':_0x57b5e2},'packageBytes':_0x4eb4cc,'packageBase64':_0x4eb4cc['toString'](_0x1221e5(0xc7))};}export function verifyRuntimeSkillPackage(_0x2c4927,_0x3c75a6){const _0x24e00f=a123_0x3041,_0x51feba=normalizePackageManifest(_0x2c4927,{'requireOssPath':![]});if(!_0x51feba)throw CliErrors[_0x24e00f(0xc1)](_0x24e00f(0xda));return extractAndVerifyPackage(_0x51feba,_0x3c75a6);}export function verifyRuntimeSkillBundle(_0x183b36,_0x2e8198){const _0x42ea9e=a123_0x3041,_0x1a8d05=normalizePackageManifest(_0x183b36,{'requireOssPath':![]});if(!_0x1a8d05)throw CliErrors[_0x42ea9e(0xc1)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x1a8d05,_0x2e8198);}export function tryNormalizePackageManifest(_0xfa69b2){return normalizePackageManifest(_0xfa69b2,{'requireOssPath':![]});}export function requirePackageBytes(_0x4f98ed,_0x5b4c6d){const _0x18f47b=a123_0x3041;if(!_0x5b4c6d||_0x5b4c6d[_0x18f47b(0xe3)]===0x0)throw CliErrors[_0x18f47b(0xc1)](_0x18f47b(0xd8)+_0x4f98ed);return _0x5b4c6d;}export function extractDownloadedPackage(_0x1fe935){const _0xd7dffe=a123_0x3041,_0x347d95=parseZipPackage(_0x1fe935)[_0xd7dffe(0xc2)](_0x27f2d3=>({'path':_0x27f2d3[_0xd7dffe(0xbc)],'bytes':_0x27f2d3['bytes']}));if(!_0x347d95[_0xd7dffe(0xd5)](_0x7d4ee2=>_0x7d4ee2[_0xd7dffe(0xbc)]===SKILL_FILE))throw CliErrors[_0xd7dffe(0xc1)](_0xd7dffe(0xe5)+SKILL_FILE+'.');return normalizeLocalFiles(_0x347d95);}function a123_0x4876(){const _0x430c09=['5699560dvlqns','sha256','some','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','treeSha256','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','bytes','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','schemaVersion','isSafeInteger','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','push','729441oFAGIA','Runtime\x20Skill\x20package\x20size\x20mismatch.','zipSize','length','isArray','Runtime\x20Skill\x20package\x20is\x20missing\x20','set','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','toLowerCase','3566aXvOxi','path','size','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','879kokzjR','validation','map','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','1353580shnPWm','312180KYOnDr','get','base64','110dIfqqT','ossPath','files','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','object','6446608WUVYdf','Missing\x20','523062liKlFP','\x20in\x20Skill\x20file\x20package.','string','35SEMiLN'];a123_0x4876=function(){return _0x430c09;};return a123_0x4876();}export function localFilesToManifestFiles(_0x4b2752){const _0x4df587=a123_0x3041;return normalizeLocalFiles(_0x4b2752)[_0x4df587(0xc2)](_0x27959b=>({'path':_0x27959b['path'],'sha256':fileHash(_0x27959b),'size':fileContent(_0x27959b)['length']}));}function normalizePackageManifest(_0x1584f8,_0x14f771){const _0x26b184=a123_0x3041;if(!_0x1584f8||typeof _0x1584f8!==_0x26b184(0xcc)||Array[_0x26b184(0xe4)](_0x1584f8))return undefined;const _0x215594=_0x1584f8,_0x553130=typeof _0x215594[_0x26b184(0xc9)]===_0x26b184(0xd1)?_0x215594[_0x26b184(0xc9)]['trim']():undefined;if(_0x14f771['requireOssPath']&&!_0x553130)return undefined;if(!Array[_0x26b184(0xe4)](_0x215594['files'])||_0x215594[_0x26b184(0xca)][_0x26b184(0xe3)]===0x0)return undefined;if(!isSha256Hex(_0x215594[_0x26b184(0xd7)]))throw CliErrors['validation']('Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.');if(!isSha256Hex(_0x215594['zipSha256']))throw CliErrors[_0x26b184(0xc1)](_0x26b184(0xbf));if(!Number['isSafeInteger'](_0x215594[_0x26b184(0xe2)])||_0x215594[_0x26b184(0xe2)]<0x0)throw CliErrors[_0x26b184(0xc1)](_0x26b184(0xbe));const _0x1dae2b=normalizeManifestFiles(_0x215594[_0x26b184(0xca)]);if(!_0x1dae2b[_0x26b184(0xd5)](_0x4af39c=>_0x4af39c['path']===SKILL_FILE))throw CliErrors[_0x26b184(0xc1)](_0x26b184(0xd6)+SKILL_FILE+'.');const _0x335500=fileTreeHash(_0x1dae2b);if(_0x335500!==_0x215594[_0x26b184(0xd7)][_0x26b184(0xba)]())throw CliErrors[_0x26b184(0xc1)](_0x26b184(0xdd));return{'schemaVersion':Number[_0x26b184(0xdc)](_0x215594[_0x26b184(0xdb)])?_0x215594['schemaVersion']:0x2,'ossPath':_0x553130,'treeSha256':_0x335500,'zipSha256':_0x215594['zipSha256'][_0x26b184(0xba)](),'zipSize':_0x215594['zipSize'],'files':_0x1dae2b};}function extractAndVerifyPackage(_0x4f547a,_0x2f2cba){const _0x270ec9=a123_0x3041,_0x21b56a=normalizePackageManifest(_0x4f547a,{'requireOssPath':![]});if(!_0x21b56a)throw CliErrors[_0x270ec9(0xc1)](_0x270ec9(0xda));if(_0x2f2cba[_0x270ec9(0xe3)]!==_0x21b56a['zipSize'])throw CliErrors['validation'](_0x270ec9(0xe1));const _0x4454c1=bufferSha256(_0x2f2cba);if(_0x4454c1!==_0x21b56a['zipSha256'])throw CliErrors[_0x270ec9(0xc1)](_0x270ec9(0xde));return extractAndVerifyPackageFiles(_0x21b56a,_0x2f2cba);}function extractAndVerifyPackageFiles(_0x2a0bd6,_0x286dc5){const _0xba59f6=a123_0x3041,_0x4ec72d=parseZipPackage(_0x286dc5);if(_0x4ec72d['length']!==_0x2a0bd6[_0xba59f6(0xca)]['length'])throw CliErrors[_0xba59f6(0xc1)](_0xba59f6(0xb9));const _0x114c5a=new Map();for(const _0x32ee01 of _0x4ec72d){if(_0x114c5a['has'](_0x32ee01['path']))throw CliErrors[_0xba59f6(0xc1)]('Duplicate\x20Skill\x20package\x20entry:\x20'+_0x32ee01['path']);_0x114c5a[_0xba59f6(0xb8)](_0x32ee01[_0xba59f6(0xbc)],_0x32ee01);}const _0x8a4100=[];for(const _0x1840d4 of _0x2a0bd6[_0xba59f6(0xca)]){const _0x2d44be=_0x114c5a[_0xba59f6(0xc6)](_0x1840d4[_0xba59f6(0xbc)]);if(!_0x2d44be)throw CliErrors[_0xba59f6(0xc1)]('Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20'+_0x1840d4[_0xba59f6(0xbc)]);if(_0x2d44be[_0xba59f6(0xd9)][_0xba59f6(0xe3)]!==_0x1840d4[_0xba59f6(0xbd)])throw CliErrors[_0xba59f6(0xc1)](_0xba59f6(0xc3)+_0x1840d4[_0xba59f6(0xbc)]);const _0x552bf5=bufferSha256(_0x2d44be[_0xba59f6(0xd9)]);if(_0x552bf5!==_0x1840d4[_0xba59f6(0xd4)])throw CliErrors[_0xba59f6(0xc1)](_0xba59f6(0xcb)+_0x1840d4['path']);_0x8a4100[_0xba59f6(0xdf)]({'path':_0x1840d4[_0xba59f6(0xbc)],'bytes':_0x2d44be[_0xba59f6(0xd9)]});}return normalizeLocalFiles(_0x8a4100);}
1
+ function a123_0x1844(_0x4c328d,_0x190a36){_0x4c328d=_0x4c328d-0x16f;const _0x5abe25=a123_0x5abe();let _0x184406=_0x5abe25[_0x4c328d];return _0x184406;}(function(_0x429a4c,_0x18807e){const _0x3a748e=a123_0x1844,_0x392dde=_0x429a4c();while(!![]){try{const _0x5c9e7e=-parseInt(_0x3a748e(0x187))/0x1*(parseInt(_0x3a748e(0x191))/0x2)+-parseInt(_0x3a748e(0x186))/0x3*(parseInt(_0x3a748e(0x183))/0x4)+parseInt(_0x3a748e(0x174))/0x5*(-parseInt(_0x3a748e(0x176))/0x6)+parseInt(_0x3a748e(0x184))/0x7*(-parseInt(_0x3a748e(0x181))/0x8)+parseInt(_0x3a748e(0x185))/0x9+-parseInt(_0x3a748e(0x192))/0xa*(parseInt(_0x3a748e(0x175))/0xb)+parseInt(_0x3a748e(0x18e))/0xc;if(_0x5c9e7e===_0x18807e)break;else _0x392dde['push'](_0x392dde['shift']());}catch(_0x4a1c3e){_0x392dde['push'](_0x392dde['shift']());}}}(a123_0x5abe,0x4cbf2));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(_0x917782){const _0x3e9d08=a123_0x1844,_0x44f4db=normalizeLocalFiles(_0x917782);if(!_0x44f4db[_0x3e9d08(0x17d)](_0x3c8cc5=>_0x3c8cc5[_0x3e9d08(0x18a)]===SKILL_FILE))throw CliErrors[_0x3e9d08(0x195)](_0x3e9d08(0x190)+SKILL_FILE+_0x3e9d08(0x199));const _0x4ebd2e=localFilesToManifestFiles(_0x44f4db),_0x2d6c4=createDeterministicZipPackage(_0x44f4db);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x4ebd2e),'zipSha256':bufferSha256(_0x2d6c4),'zipSize':_0x2d6c4[_0x3e9d08(0x19a)],'files':_0x4ebd2e},'packageBytes':_0x2d6c4,'packageBase64':_0x2d6c4[_0x3e9d08(0x196)]('base64')};}export function verifyRuntimeSkillPackage(_0x140919,_0x32beb7){const _0x14345c=a123_0x1844,_0xdd9ae1=normalizePackageManifest(_0x140919,{'requireOssPath':![]});if(!_0xdd9ae1)throw CliErrors['validation'](_0x14345c(0x17a));return extractAndVerifyPackage(_0xdd9ae1,_0x32beb7);}export function verifyRuntimeSkillBundle(_0xf02354,_0x4b9b94){const _0x9581db=a123_0x1844,_0x106669=normalizePackageManifest(_0xf02354,{'requireOssPath':![]});if(!_0x106669)throw CliErrors[_0x9581db(0x195)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x106669,_0x4b9b94);}export function tryNormalizePackageManifest(_0x5f4e88){return normalizePackageManifest(_0x5f4e88,{'requireOssPath':![]});}export function requirePackageBytes(_0x114fe3,_0x164c52){const _0x952b61=a123_0x1844;if(!_0x164c52||_0x164c52['length']===0x0)throw CliErrors[_0x952b61(0x195)]('Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20'+_0x114fe3);return _0x164c52;}export function extractDownloadedPackage(_0x1bb3a0){const _0x2632bb=a123_0x1844,_0x5ac51e=parseZipPackage(_0x1bb3a0)[_0x2632bb(0x182)](_0x2ca2cb=>({'path':_0x2ca2cb[_0x2632bb(0x18a)],'bytes':_0x2ca2cb[_0x2632bb(0x179)]}));if(!_0x5ac51e[_0x2632bb(0x17d)](_0x47248d=>_0x47248d[_0x2632bb(0x18a)]===SKILL_FILE))throw CliErrors['validation'](_0x2632bb(0x177)+SKILL_FILE+'.');return normalizeLocalFiles(_0x5ac51e);}export function localFilesToManifestFiles(_0x25e2cb){const _0x1bda4c=a123_0x1844;return normalizeLocalFiles(_0x25e2cb)[_0x1bda4c(0x182)](_0x29e6fc=>({'path':_0x29e6fc[_0x1bda4c(0x18a)],'sha256':fileHash(_0x29e6fc),'size':fileContent(_0x29e6fc)[_0x1bda4c(0x19a)]}));}function normalizePackageManifest(_0x47130d,_0x58a484){const _0x46d8b8=a123_0x1844;if(!_0x47130d||typeof _0x47130d!==_0x46d8b8(0x1a0)||Array[_0x46d8b8(0x170)](_0x47130d))return undefined;const _0x5870b8=_0x47130d,_0x108d1b=typeof _0x5870b8[_0x46d8b8(0x19c)]===_0x46d8b8(0x197)?_0x5870b8[_0x46d8b8(0x19c)]['trim']():undefined;if(_0x58a484[_0x46d8b8(0x173)]&&!_0x108d1b)return undefined;if(!Array['isArray'](_0x5870b8[_0x46d8b8(0x189)])||_0x5870b8[_0x46d8b8(0x189)][_0x46d8b8(0x19a)]===0x0)return undefined;if(!isSha256Hex(_0x5870b8[_0x46d8b8(0x19e)]))throw CliErrors['validation'](_0x46d8b8(0x171));if(!isSha256Hex(_0x5870b8[_0x46d8b8(0x17b)]))throw CliErrors[_0x46d8b8(0x195)](_0x46d8b8(0x17e));if(!Number[_0x46d8b8(0x16f)](_0x5870b8[_0x46d8b8(0x194)])||_0x5870b8[_0x46d8b8(0x194)]<0x0)throw CliErrors[_0x46d8b8(0x195)](_0x46d8b8(0x172));const _0x30533d=normalizeManifestFiles(_0x5870b8[_0x46d8b8(0x189)]);if(!_0x30533d[_0x46d8b8(0x17d)](_0x28bf5d=>_0x28bf5d[_0x46d8b8(0x18a)]===SKILL_FILE))throw CliErrors[_0x46d8b8(0x195)](_0x46d8b8(0x17f)+SKILL_FILE+'.');const _0x2296f2=fileTreeHash(_0x30533d);if(_0x2296f2!==_0x5870b8[_0x46d8b8(0x19e)][_0x46d8b8(0x198)]())throw CliErrors[_0x46d8b8(0x195)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number[_0x46d8b8(0x16f)](_0x5870b8[_0x46d8b8(0x188)])?_0x5870b8[_0x46d8b8(0x188)]:0x2,'ossPath':_0x108d1b,'treeSha256':_0x2296f2,'zipSha256':_0x5870b8[_0x46d8b8(0x17b)][_0x46d8b8(0x198)](),'zipSize':_0x5870b8[_0x46d8b8(0x194)],'files':_0x30533d};}function extractAndVerifyPackage(_0x1601ea,_0x1c1f81){const _0x4a4f28=a123_0x1844,_0x583c48=normalizePackageManifest(_0x1601ea,{'requireOssPath':![]});if(!_0x583c48)throw CliErrors['validation'](_0x4a4f28(0x17a));if(_0x1c1f81[_0x4a4f28(0x19a)]!==_0x583c48[_0x4a4f28(0x194)])throw CliErrors[_0x4a4f28(0x195)](_0x4a4f28(0x19b));const _0x4e7a4e=bufferSha256(_0x1c1f81);if(_0x4e7a4e!==_0x583c48[_0x4a4f28(0x17b)])throw CliErrors[_0x4a4f28(0x195)](_0x4a4f28(0x19f));return extractAndVerifyPackageFiles(_0x583c48,_0x1c1f81);}function extractAndVerifyPackageFiles(_0x1e0d97,_0x21e56b){const _0x4c68f9=a123_0x1844,_0x133fd3=parseZipPackage(_0x21e56b);if(_0x133fd3[_0x4c68f9(0x19a)]!==_0x1e0d97['files'][_0x4c68f9(0x19a)])throw CliErrors['validation'](_0x4c68f9(0x17c));const _0x1f5d9d=new Map();for(const _0x2d5abe of _0x133fd3){if(_0x1f5d9d[_0x4c68f9(0x180)](_0x2d5abe[_0x4c68f9(0x18a)]))throw CliErrors[_0x4c68f9(0x195)](_0x4c68f9(0x18f)+_0x2d5abe[_0x4c68f9(0x18a)]);_0x1f5d9d[_0x4c68f9(0x19d)](_0x2d5abe['path'],_0x2d5abe);}const _0x5d3251=[];for(const _0x31b1c5 of _0x1e0d97['files']){const _0x3fa192=_0x1f5d9d[_0x4c68f9(0x178)](_0x31b1c5[_0x4c68f9(0x18a)]);if(!_0x3fa192)throw CliErrors['validation'](_0x4c68f9(0x18c)+_0x31b1c5[_0x4c68f9(0x18a)]);if(_0x3fa192[_0x4c68f9(0x179)][_0x4c68f9(0x19a)]!==_0x31b1c5[_0x4c68f9(0x193)])throw CliErrors['validation']('Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20'+_0x31b1c5[_0x4c68f9(0x18a)]);const _0xdecd82=bufferSha256(_0x3fa192['bytes']);if(_0xdecd82!==_0x31b1c5[_0x4c68f9(0x18b)])throw CliErrors[_0x4c68f9(0x195)]('Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20'+_0x31b1c5[_0x4c68f9(0x18a)]);_0x5d3251[_0x4c68f9(0x18d)]({'path':_0x31b1c5[_0x4c68f9(0x18a)],'bytes':_0x3fa192['bytes']});}return normalizeLocalFiles(_0x5d3251);}function a123_0x5abe(){const _0x3f7dc7=['1937106CPKXVq','138zPtbkx','17uHdjTY','schemaVersion','files','path','sha256','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','push','20517048ZjCVvz','Duplicate\x20Skill\x20package\x20entry:\x20','Missing\x20','9554zGmsGJ','4209310Jjzauq','size','zipSize','validation','toString','string','toLowerCase','\x20in\x20Skill\x20file\x20package.','length','Runtime\x20Skill\x20package\x20size\x20mismatch.','ossPath','set','treeSha256','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','object','isSafeInteger','isArray','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','requireOssPath','867715XlCORF','11dTfLyp','12vKvQMw','Runtime\x20Skill\x20package\x20is\x20missing\x20','get','bytes','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','zipSha256','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','some','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','has','480JpMuHF','map','25712lLbhQs','54334USCPOH'];a123_0x5abe=function(){return _0x3f7dc7;};return a123_0x5abe();}
@@ -1 +1 @@
1
- (function(_0x4bfea9,_0x55b7c9){var _0x2bcdd1=a124_0x4858,_0x3575d1=_0x4bfea9();while(!![]){try{var _0x211d05=parseInt(_0x2bcdd1(0x13a))/0x1*(parseInt(_0x2bcdd1(0x13d))/0x2)+parseInt(_0x2bcdd1(0x13f))/0x3*(-parseInt(_0x2bcdd1(0x141))/0x4)+-parseInt(_0x2bcdd1(0x13e))/0x5*(-parseInt(_0x2bcdd1(0x13b))/0x6)+-parseInt(_0x2bcdd1(0x13c))/0x7*(parseInt(_0x2bcdd1(0x143))/0x8)+-parseInt(_0x2bcdd1(0x139))/0x9+-parseInt(_0x2bcdd1(0x142))/0xa+parseInt(_0x2bcdd1(0x140))/0xb;if(_0x211d05===_0x55b7c9)break;else _0x3575d1['push'](_0x3575d1['shift']());}catch(_0x19015d){_0x3575d1['push'](_0x3575d1['shift']());}}}(a124_0x7221,0x53522));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';function a124_0x4858(_0x135699,_0x2a5383){_0x135699=_0x135699-0x139;var _0x72217e=a124_0x7221();var _0x485889=_0x72217e[_0x135699];return _0x485889;}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';function a124_0x7221(){var _0x1aea13=['5849690IANYsP','8xVjcqA','2856168IyDRtw','207745ZFBDJs','24WWiSxr','2896502mTHvvN','2NklZUa','295BOgOeX','951LHwpNY','18764471ofyJIX','3236GPtVQd'];a124_0x7221=function(){return _0x1aea13;};return a124_0x7221();}
1
+ (function(_0xc1c931,_0x55558d){var _0x5b59fc=a124_0x4da5,_0xde958f=_0xc1c931();while(!![]){try{var _0x23c06e=parseInt(_0x5b59fc(0x19d))/0x1*(-parseInt(_0x5b59fc(0x1a0))/0x2)+-parseInt(_0x5b59fc(0x1a1))/0x3*(parseInt(_0x5b59fc(0x19b))/0x4)+parseInt(_0x5b59fc(0x199))/0x5*(parseInt(_0x5b59fc(0x196))/0x6)+parseInt(_0x5b59fc(0x19c))/0x7*(-parseInt(_0x5b59fc(0x19f))/0x8)+-parseInt(_0x5b59fc(0x19a))/0x9*(-parseInt(_0x5b59fc(0x19e))/0xa)+-parseInt(_0x5b59fc(0x197))/0xb+parseInt(_0x5b59fc(0x198))/0xc;if(_0x23c06e===_0x55558d)break;else _0xde958f['push'](_0xde958f['shift']());}catch(_0x382991){_0xde958f['push'](_0xde958f['shift']());}}}(a124_0x2550,0x51831));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 a124_0x2550(){var _0x32bd4e=['6pbquXd','2619186oRDbuj','5833289kxDeYR','15101880XHXCyB','5JhoAoY','13329CTdJiY','712760FvhUMH','14OynAWz','1712oYHNfE','1350neteLu','1471824UUiGzh','358pmTZjI'];a124_0x2550=function(){return _0x32bd4e;};return a124_0x2550();}export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill}from'./runtime-skill-sync/materialize.js';function a124_0x4da5(_0x3ea0a3,_0x10bdee){_0x3ea0a3=_0x3ea0a3-0x196;var _0x255086=a124_0x2550();var _0x4da568=_0x255086[_0x3ea0a3];return _0x4da568;}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 a125_0x2f34(){const _0x5da75f=['unusable','kind','367590SSoduB','99XLijJJ','skills','14fdgZFM','\x20records\x20\x22','.agents','parse','includes','5upJXCN','not-recorded','map','9gpJlTU','join','2332614lsbcoD','124886sIeNnf','version','globalSkillsDirs','.claude','1MedIlN','SKILL.md','home','84TIfAyu','find','3614091TUFZlV','unverifiable','object','absent','2352004HEcyKf','.skill-lock.json','lockFile','present','828372KVeYjR','number','6842312aMqFDk'];a125_0x2f34=function(){return _0x5da75f;};return a125_0x2f34();}const a125_0x1fec5d=a125_0x1c27;(function(_0x31b44c,_0x4432a0){const _0x14b4c3=a125_0x1c27,_0x458664=_0x31b44c();while(!![]){try{const _0x36c388=-parseInt(_0x14b4c3(0x16e))/0x1*(parseInt(_0x14b4c3(0x16a))/0x2)+parseInt(_0x14b4c3(0x169))/0x3+-parseInt(_0x14b4c3(0x177))/0x4*(parseInt(_0x14b4c3(0x164))/0x5)+-parseInt(_0x14b4c3(0x17b))/0x6*(parseInt(_0x14b4c3(0x183))/0x7)+-parseInt(_0x14b4c3(0x17d))/0x8*(parseInt(_0x14b4c3(0x167))/0x9)+-parseInt(_0x14b4c3(0x180))/0xa*(parseInt(_0x14b4c3(0x181))/0xb)+-parseInt(_0x14b4c3(0x171))/0xc*(-parseInt(_0x14b4c3(0x173))/0xd);if(_0x36c388===_0x4432a0)break;else _0x458664['push'](_0x458664['shift']());}catch(_0x3aeb30){_0x458664['push'](_0x458664['shift']());}}}(a125_0x2f34,0x95253));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a125_0x1fec5d(0x185),a125_0x1fec5d(0x178));function a125_0x1c27(_0x1fcb8f,_0x389454){_0x1fcb8f=_0x1fcb8f-0x162;const _0x2f3489=a125_0x2f34();let _0x1c273a=_0x2f3489[_0x1fcb8f];return _0x1c273a;}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a125_0x1fec5d(0x182)),join(a125_0x1fec5d(0x16d),a125_0x1fec5d(0x182))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x31efd1,_0xf4e5ba){const _0x4311ae=a125_0x1fec5d;if(!existsSync(_0x31efd1))return{'kind':_0x4311ae(0x165)};let _0x319044;try{_0x319044=JSON[_0x4311ae(0x162)](readFileSync(_0x31efd1,'utf8'));}catch(_0x634620){return{'kind':_0x4311ae(0x17e),'reason':_0x31efd1+'\x20is\x20unreadable:\x20'+_0x634620['message']};}const _0x409ba5=_0x319044;if(typeof _0x409ba5?.[_0x4311ae(0x16b)]!==_0x4311ae(0x17c)||!SUPPORTED_LOCK_VERSIONS[_0x4311ae(0x163)](_0x409ba5[_0x4311ae(0x16b)]))return{'kind':_0x4311ae(0x17e),'reason':_0x31efd1+'\x20uses\x20unsupported\x20version\x20'+String(_0x409ba5?.['version'])};if(!_0x409ba5[_0x4311ae(0x182)]||typeof _0x409ba5[_0x4311ae(0x182)]!==_0x4311ae(0x175))return{'kind':_0x4311ae(0x17e),'reason':_0x31efd1+'\x20has\x20no\x20skills\x20map'};return _0x409ba5[_0x4311ae(0x182)][_0xf4e5ba]?{'kind':'recorded'}:{'kind':_0x4311ae(0x165)};}export function resolveInstalledSkill(_0x37ee46,_0x31595d){const _0x334962=a125_0x1fec5d,_0x1751f1=_0x31595d?.[_0x334962(0x170)]??homedir(),_0x3fdded=_0x31595d?.[_0x334962(0x16c)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x334962(0x166)](_0x30e3d6=>join(_0x1751f1,_0x30e3d6)),_0x4b4808=_0x31595d?.[_0x334962(0x179)]??join(_0x1751f1,SKILL_LOCK_RELATIVE_PATH),_0x1f438e=_0x3fdded[_0x334962(0x166)](_0x5622ed=>join(_0x5622ed,_0x37ee46,_0x334962(0x16f))),_0x37a850=_0x1f438e[_0x334962(0x172)](_0x398b68=>existsSync(_0x398b68));if(_0x37a850)return{'state':_0x334962(0x17a),'path':_0x37a850};const _0x5b5517=readLockLookup(_0x4b4808,_0x37ee46);if(_0x5b5517[_0x334962(0x17f)]===_0x334962(0x17e))return{'state':_0x334962(0x174),'reason':_0x5b5517['reason']};if(_0x5b5517['kind']==='recorded')return{'state':'unverifiable','reason':_0x4b4808+_0x334962(0x184)+_0x37ee46+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x1f438e[_0x334962(0x168)](',\x20')+')')};return{'state':_0x334962(0x176),'checked':_0x1f438e};}
1
+ function a125_0x209e(_0x2dd259,_0x259cfc){_0x2dd259=_0x2dd259-0x133;const _0x6ef4c9=a125_0x6ef4();let _0x209e0b=_0x6ef4c9[_0x2dd259];return _0x209e0b;}const a125_0x13fbbc=a125_0x209e;(function(_0x4e13ed,_0x302e38){const _0x37bf19=a125_0x209e,_0x2c58e6=_0x4e13ed();while(!![]){try{const _0x19a362=-parseInt(_0x37bf19(0x147))/0x1+parseInt(_0x37bf19(0x13d))/0x2*(parseInt(_0x37bf19(0x152))/0x3)+parseInt(_0x37bf19(0x136))/0x4+parseInt(_0x37bf19(0x134))/0x5+-parseInt(_0x37bf19(0x14e))/0x6+parseInt(_0x37bf19(0x154))/0x7*(-parseInt(_0x37bf19(0x149))/0x8)+parseInt(_0x37bf19(0x142))/0x9;if(_0x19a362===_0x302e38)break;else _0x2c58e6['push'](_0x2c58e6['shift']());}catch(_0x4a9a6){_0x2c58e6['push'](_0x2c58e6['shift']());}}}(a125_0x6ef4,0xbbee7));import{existsSync,readFileSync}from'node:fs';function a125_0x6ef4(){const _0x2cbe8c=['not-recorded','\x20has\x20no\x20skills\x20map','123vLJfnb','recorded','37387earIjC','home','message','utf8','.agents','3510445sTuNML','number','2381380cbpxZG','find','.skill-lock.json','skills','unusable','unverifiable','includes','32086vcuOUG','.claude','\x20records\x20\x22','\x20uses\x20unsupported\x20version\x20','globalSkillsDirs','10582506cmVlPE','lockFile','version','\x20is\x20unreadable:\x20','SKILL.md','369614TFbsdf','reason','1936qUoOrg','present','kind','parse','object','4194768XhqShL','map'];a125_0x6ef4=function(){return _0x2cbe8c;};return a125_0x6ef4();}import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a125_0x13fbbc(0x133),a125_0x13fbbc(0x138));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a125_0x13fbbc(0x133),a125_0x13fbbc(0x139)),join(a125_0x13fbbc(0x13e),a125_0x13fbbc(0x139))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x3275cc,_0x4ba1b8){const _0x3bde50=a125_0x13fbbc;if(!existsSync(_0x3275cc))return{'kind':_0x3bde50(0x150)};let _0x531d5;try{_0x531d5=JSON[_0x3bde50(0x14c)](readFileSync(_0x3275cc,_0x3bde50(0x157)));}catch(_0x25cfa2){return{'kind':_0x3bde50(0x13a),'reason':_0x3275cc+_0x3bde50(0x145)+_0x25cfa2[_0x3bde50(0x156)]};}const _0x2625c3=_0x531d5;if(typeof _0x2625c3?.[_0x3bde50(0x144)]!==_0x3bde50(0x135)||!SUPPORTED_LOCK_VERSIONS[_0x3bde50(0x13c)](_0x2625c3[_0x3bde50(0x144)]))return{'kind':_0x3bde50(0x13a),'reason':_0x3275cc+_0x3bde50(0x140)+String(_0x2625c3?.['version'])};if(!_0x2625c3[_0x3bde50(0x139)]||typeof _0x2625c3[_0x3bde50(0x139)]!==_0x3bde50(0x14d))return{'kind':_0x3bde50(0x13a),'reason':_0x3275cc+_0x3bde50(0x151)};return _0x2625c3[_0x3bde50(0x139)][_0x4ba1b8]?{'kind':_0x3bde50(0x153)}:{'kind':_0x3bde50(0x150)};}export function resolveInstalledSkill(_0x193aa4,_0x196690){const _0x3bb451=a125_0x13fbbc,_0x4e4212=_0x196690?.[_0x3bb451(0x155)]??homedir(),_0xd77360=_0x196690?.[_0x3bb451(0x141)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x3bb451(0x14f)](_0x3ad0f7=>join(_0x4e4212,_0x3ad0f7)),_0x46bd73=_0x196690?.[_0x3bb451(0x143)]??join(_0x4e4212,SKILL_LOCK_RELATIVE_PATH),_0x2183d5=_0xd77360['map'](_0x28b11c=>join(_0x28b11c,_0x193aa4,_0x3bb451(0x146))),_0xed0903=_0x2183d5[_0x3bb451(0x137)](_0x48f15a=>existsSync(_0x48f15a));if(_0xed0903)return{'state':_0x3bb451(0x14a),'path':_0xed0903};const _0x5eabd3=readLockLookup(_0x46bd73,_0x193aa4);if(_0x5eabd3[_0x3bb451(0x14b)]==='unusable')return{'state':'unverifiable','reason':_0x5eabd3[_0x3bb451(0x148)]};if(_0x5eabd3[_0x3bb451(0x14b)]===_0x3bb451(0x153))return{'state':_0x3bb451(0x13b),'reason':_0x46bd73+_0x3bb451(0x13f)+_0x193aa4+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x2183d5['join'](',\x20')+')')};return{'state':'absent','checked':_0x2183d5};}
@@ -1 +1 @@
1
- (function(_0x3f715e,_0x32fe3f){const _0x44a2e1=a126_0x5be8,_0x2fa22f=_0x3f715e();while(!![]){try{const _0x1c055d=parseInt(_0x44a2e1(0x17a))/0x1+-parseInt(_0x44a2e1(0x181))/0x2+parseInt(_0x44a2e1(0x180))/0x3*(-parseInt(_0x44a2e1(0x17d))/0x4)+parseInt(_0x44a2e1(0x183))/0x5*(-parseInt(_0x44a2e1(0x17f))/0x6)+parseInt(_0x44a2e1(0x182))/0x7*(-parseInt(_0x44a2e1(0x17b))/0x8)+-parseInt(_0x44a2e1(0x179))/0x9+-parseInt(_0x44a2e1(0x17c))/0xa*(-parseInt(_0x44a2e1(0x17e))/0xb);if(_0x1c055d===_0x32fe3f)break;else _0x2fa22f['push'](_0x2fa22f['shift']());}catch(_0x2dd569){_0x2fa22f['push'](_0x2fa22f['shift']());}}}(a126_0x1d53,0xf164f));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a126_0x5be8(_0x20d485,_0x1d0bbc){_0x20d485=_0x20d485-0x179;const _0x1d53b5=a126_0x1d53();let _0x5be842=_0x1d53b5[_0x20d485];return _0x5be842;}function a126_0x1d53(){const _0x11567d=['79340IybgMC','532MKaEHO','8426rvRhSj','126ESqXeo','11991vONPbM','3110226lbfwxX','7TtezID','373100mtMlNX','10927602PHCbUI','666218FKtWlS','7095992VhaWAm'];a126_0x1d53=function(){return _0x11567d;};return a126_0x1d53();}
1
+ function a126_0x195c(){const _0x1f029d=['40waoFcw','3MJkHUz','14600TUkvws','5025393AfkDII','570032AsFYoz','1474221bfrwsZ','12JRUxoB','4810926nwhupF','237715geBzUL','20009cfGAYD','664414RbDwFU'];a126_0x195c=function(){return _0x1f029d;};return a126_0x195c();}(function(_0x3a52da,_0xd7aef4){const _0x45175d=a126_0x3c21,_0xf07d20=_0x3a52da();while(!![]){try{const _0x535a45=parseInt(_0x45175d(0xc7))/0x1+-parseInt(_0x45175d(0xc2))/0x2*(parseInt(_0x45175d(0xc4))/0x3)+-parseInt(_0x45175d(0xc9))/0x4*(-parseInt(_0x45175d(0xcb))/0x5)+-parseInt(_0x45175d(0xca))/0x6+parseInt(_0x45175d(0xc8))/0x7*(-parseInt(_0x45175d(0xc3))/0x8)+-parseInt(_0x45175d(0xc6))/0x9+parseInt(_0x45175d(0xc5))/0xa*(parseInt(_0x45175d(0xcc))/0xb);if(_0x535a45===_0xd7aef4)break;else _0xf07d20['push'](_0xf07d20['shift']());}catch(_0xb8aa5f){_0xf07d20['push'](_0xf07d20['shift']());}}}(a126_0x195c,0x98185));function a126_0x3c21(_0x4df47e,_0x125e85){_0x4df47e=_0x4df47e-0xc2;const _0x195c3b=a126_0x195c();let _0x3c2127=_0x195c3b[_0x4df47e];return _0x3c2127;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- const a127_0x31696a=a127_0x3df1;(function(_0x4f44e9,_0x2a74ff){const _0x764bf4=a127_0x3df1,_0xe0d69f=_0x4f44e9();while(!![]){try{const _0x4a3760=parseInt(_0x764bf4(0x1b2))/0x1*(parseInt(_0x764bf4(0x1d0))/0x2)+parseInt(_0x764bf4(0x1d6))/0x3*(-parseInt(_0x764bf4(0x1bc))/0x4)+-parseInt(_0x764bf4(0x1c8))/0x5*(parseInt(_0x764bf4(0x1c2))/0x6)+-parseInt(_0x764bf4(0x1d9))/0x7*(-parseInt(_0x764bf4(0x1d4))/0x8)+-parseInt(_0x764bf4(0x1ae))/0x9*(-parseInt(_0x764bf4(0x1de))/0xa)+parseInt(_0x764bf4(0x1b6))/0xb*(parseInt(_0x764bf4(0x1ad))/0xc)+-parseInt(_0x764bf4(0x1bb))/0xd;if(_0x4a3760===_0x2a74ff)break;else _0xe0d69f['push'](_0xe0d69f['shift']());}catch(_0x4b7017){_0xe0d69f['push'](_0xe0d69f['shift']());}}}(a127_0x3e1c,0x236f2));import a127_0x5b6b14 from'winston';import a127_0x4ae95d from'node:fs';function a127_0x3e1c(){const _0x35856f=['now','104855uUCkSq','readLogs','split','timestamp','toISOString','map','command','warn','93988kInbeJ','parse','red','logFilePath','16ssCzej','utf8','59739Nlychx','join','format','43141aITrdr','log','error','logFileName','info','690tyoTRG','winstonLogger','writeFileSync','Failed\x20to\x20clear\x20logs:','initWinstonLogger','Failed\x20to\x20read\x20logs:','combine','120sQxUTD','8172Ujazjh','level','Failed:\x20','logTask','2qMqIFW','green','addColors','success','99517UVmnHl','clearLogs','createLogger','dirname','setRawCommand','681759ktlnPe','4jBvtJk','rawCommand','existsSync','Completed:\x20','currentRawCommand','transports','12BjzYID','getWinstonInstance','message','yellow','blue'];a127_0x3e1c=function(){return _0x35856f;};return a127_0x3e1c();}import a127_0x3f22e2 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a127_0x31696a(0x1df)];['logFilePath']='';[a127_0x31696a(0x1c0)]='';constructor(){}[a127_0x31696a(0x1ba)](_0x13d1a3){const _0x1ba17a=a127_0x31696a;this[_0x1ba17a(0x1c0)]=_0x13d1a3;}['setLogPath'](_0x2d0727){const _0x323a2b=a127_0x31696a;this[_0x323a2b(0x1d3)]=a127_0x3f22e2[_0x323a2b(0x1d7)](_0x2d0727,PRODUCT_CONFIG[_0x323a2b(0x1dc)]),this[_0x323a2b(0x1df)]&&this[_0x323a2b(0x1df)]['clear'](),this[_0x323a2b(0x1aa)]();}[a127_0x31696a(0x1aa)](){const _0x253609=a127_0x31696a,_0x2d78dd=a127_0x3f22e2[_0x253609(0x1b9)](this[_0x253609(0x1d3)]);!a127_0x4ae95d['existsSync'](_0x2d78dd)&&a127_0x4ae95d['mkdirSync'](_0x2d78dd,{'recursive':!![]});const _0x53f6a9=a127_0x5b6b14[_0x253609(0x1d8)][_0x253609(0x1ac)](a127_0x5b6b14[_0x253609(0x1d8)][_0x253609(0x1cb)](),a127_0x5b6b14[_0x253609(0x1d8)]['errors']({'stack':!![]}),a127_0x5b6b14['format']['printf'](_0x569402=>{const _0x5a3e40=_0x253609,_0x4e76e3={'timestamp':_0x569402['timestamp']||new Date()[_0x5a3e40(0x1cc)](),'level':_0x569402[_0x5a3e40(0x1af)]||'info','command':_0x569402[_0x5a3e40(0x1ce)]||'unknown','rawCommand':_0x569402[_0x5a3e40(0x1bd)]||this['currentRawCommand']||undefined,'message':_0x569402[_0x5a3e40(0x1c4)]||'','duration':_0x569402['duration']||undefined,'details':_0x569402['details']||undefined};return JSON['stringify'](_0x4e76e3);}));this[_0x253609(0x1df)]=a127_0x5b6b14[_0x253609(0x1b8)]({'level':_0x253609(0x1dd),'format':_0x53f6a9,'transports':[new a127_0x5b6b14[(_0x253609(0x1c1))]['File']({'filename':this[_0x253609(0x1d3)],'level':_0x253609(0x1dd)})],'silent':![]}),a127_0x5b6b14[_0x253609(0x1b4)]({'success':_0x253609(0x1b3),'error':_0x253609(0x1d2),'warn':_0x253609(0x1c5),'info':_0x253609(0x1c6)});}[a127_0x31696a(0x1dd)](_0x3dee75,_0x50faf1,_0x423003){const _0x113212=a127_0x31696a;if(!this[_0x113212(0x1d3)]||!this[_0x113212(0x1df)])return;this[_0x113212(0x1df)][_0x113212(0x1dd)](_0x50faf1,{'command':_0x3dee75,'details':_0x423003});}[a127_0x31696a(0x1b5)](_0x552bd3,_0x4975cf,_0xcb014f,_0x321916){const _0x2e7302=a127_0x31696a;if(!this[_0x2e7302(0x1d3)]||!this['winstonLogger'])return;this['winstonLogger'][_0x2e7302(0x1da)](_0x2e7302(0x1dd),_0x4975cf,{'level':_0x2e7302(0x1b5),'command':_0x552bd3,'duration':_0xcb014f,'details':_0x321916});}['error'](_0x1de28c,_0x2f5f4e,_0x5cfc4c){const _0x183d3f=a127_0x31696a;if(!this[_0x183d3f(0x1d3)]||!this[_0x183d3f(0x1df)])return;this['winstonLogger']['error'](_0x2f5f4e,{'command':_0x1de28c,'details':_0x5cfc4c});}[a127_0x31696a(0x1cf)](_0x169d5a,_0xa70c24,_0x3c3219){const _0x52f85e=a127_0x31696a;if(!this[_0x52f85e(0x1d3)]||!this[_0x52f85e(0x1df)])return;this['winstonLogger'][_0x52f85e(0x1cf)](_0xa70c24,{'command':_0x169d5a,'details':_0x3c3219});}async[a127_0x31696a(0x1b1)](_0x3dae9c,_0x5acd97,_0x4e941a){const _0x5f1108=a127_0x31696a,_0x17e7f8=Date['now']();this[_0x5f1108(0x1dd)](_0x3dae9c,'Starting:\x20'+_0x5acd97);try{const _0x1a442b=await _0x4e941a(),_0x2cf3a3=Date[_0x5f1108(0x1c7)]()-_0x17e7f8;return this[_0x5f1108(0x1b5)](_0x3dae9c,_0x5f1108(0x1bf)+_0x5acd97,_0x2cf3a3),_0x1a442b;}catch(_0x255af3){const _0x19db91=Date['now']()-_0x17e7f8;this[_0x5f1108(0x1db)](_0x3dae9c,_0x5f1108(0x1b0)+_0x5acd97,{'error':_0x255af3 instanceof Error?_0x255af3[_0x5f1108(0x1c4)]:String(_0x255af3),'duration':_0x19db91});throw _0x255af3;}}[a127_0x31696a(0x1c9)](){const _0x3ea691=a127_0x31696a;try{if(!a127_0x4ae95d['existsSync'](this[_0x3ea691(0x1d3)]))return[];const _0x22a7bf=a127_0x4ae95d['readFileSync'](this['logFilePath'],_0x3ea691(0x1d5));return _0x22a7bf[_0x3ea691(0x1ca)](/\r?\n/)['filter'](_0x44a795=>_0x44a795['trim']())[_0x3ea691(0x1cd)](_0x36fab6=>JSON[_0x3ea691(0x1d1)](_0x36fab6));}catch(_0x3eb7cf){return console[_0x3ea691(0x1cf)](_0x3ea691(0x1ab),_0x3eb7cf),[];}}[a127_0x31696a(0x1b7)](){const _0x5df5ec=a127_0x31696a;try{a127_0x4ae95d[_0x5df5ec(0x1be)](this['logFilePath'])&&a127_0x4ae95d[_0x5df5ec(0x1e0)](this[_0x5df5ec(0x1d3)],'',_0x5df5ec(0x1d5));}catch(_0x21a41d){console[_0x5df5ec(0x1cf)](_0x5df5ec(0x1e1),_0x21a41d);}}[a127_0x31696a(0x1c3)](){const _0x342f32=a127_0x31696a;return this[_0x342f32(0x1df)];}}function a127_0x3df1(_0x1d0b29,_0x1d7501){_0x1d0b29=_0x1d0b29-0x1aa;const _0x3e1c3b=a127_0x3e1c();let _0x3df14f=_0x3e1c3b[_0x1d0b29];return _0x3df14f;}export const logger=new Logger();
1
+ const a127_0x54b26a=a127_0x37f7;function a127_0x2e4d(){const _0x3d4c9a=['3109070XXYwzu','existsSync','currentRawCommand','initWinstonLogger','logFileName','stringify','Failed:\x20','setLogPath','format','340EtnXGf','error','setRawCommand','toISOString','6503981OHLDkW','unknown','warn','dirname','map','green','683uUPdyG','now','clearLogs','trim','info','printf','1968CgVZCR','mkdirSync','join','errors','9ZNkuNu','301974QzPbbc','39656eYxjML','command','logFilePath','level','timestamp','logTask','red','Completed:\x20','1393IjTByL','10213524ZtWGBD','Failed\x20to\x20clear\x20logs:','transports','details','combine','createLogger','Failed\x20to\x20read\x20logs:','log','message','35295FOcbJB','winstonLogger','utf8','success','split','getWinstonInstance','10IDturQ','readFileSync','yellow'];a127_0x2e4d=function(){return _0x3d4c9a;};return a127_0x2e4d();}(function(_0x53e2cf,_0x2c8bf4){const _0x29f63e=a127_0x37f7,_0x2ac7d6=_0x53e2cf();while(!![]){try{const _0x592f74=parseInt(_0x29f63e(0x12b))/0x1*(-parseInt(_0x29f63e(0x131))/0x2)+-parseInt(_0x29f63e(0x10f))/0x3*(-parseInt(_0x29f63e(0x121))/0x4)+parseInt(_0x29f63e(0x115))/0x5*(parseInt(_0x29f63e(0x136))/0x6)+-parseInt(_0x29f63e(0x105))/0x7*(parseInt(_0x29f63e(0x137))/0x8)+-parseInt(_0x29f63e(0x135))/0x9*(parseInt(_0x29f63e(0x118))/0xa)+parseInt(_0x29f63e(0x125))/0xb+parseInt(_0x29f63e(0x106))/0xc;if(_0x592f74===_0x2c8bf4)break;else _0x2ac7d6['push'](_0x2ac7d6['shift']());}catch(_0x57abb2){_0x2ac7d6['push'](_0x2ac7d6['shift']());}}}(a127_0x2e4d,0x8c0db));import a127_0xcadac2 from'winston';import a127_0x4b488f from'node:fs';function a127_0x37f7(_0x415a66,_0x352b8b){_0x415a66=_0x415a66-0x105;const _0x2e4d26=a127_0x2e4d();let _0x37f71d=_0x2e4d26[_0x415a66];return _0x37f71d;}import a127_0x32ff60 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{['winstonLogger'];[a127_0x54b26a(0x139)]='';[a127_0x54b26a(0x11a)]='';constructor(){}[a127_0x54b26a(0x123)](_0x5c15e2){const _0x9a6944=a127_0x54b26a;this[_0x9a6944(0x11a)]=_0x5c15e2;}[a127_0x54b26a(0x11f)](_0x592df3){const _0x152bba=a127_0x54b26a;this[_0x152bba(0x139)]=a127_0x32ff60[_0x152bba(0x133)](_0x592df3,PRODUCT_CONFIG[_0x152bba(0x11c)]),this['winstonLogger']&&this[_0x152bba(0x110)]['clear'](),this[_0x152bba(0x11b)]();}[a127_0x54b26a(0x11b)](){const _0x452755=a127_0x54b26a,_0x4004b5=a127_0x32ff60[_0x452755(0x128)](this['logFilePath']);!a127_0x4b488f[_0x452755(0x119)](_0x4004b5)&&a127_0x4b488f[_0x452755(0x132)](_0x4004b5,{'recursive':!![]});const _0x2aa3c3=a127_0xcadac2['format'][_0x452755(0x10a)](a127_0xcadac2[_0x452755(0x120)][_0x452755(0x13b)](),a127_0xcadac2[_0x452755(0x120)][_0x452755(0x134)]({'stack':!![]}),a127_0xcadac2[_0x452755(0x120)][_0x452755(0x130)](_0x515d29=>{const _0x1a47b5=_0x452755,_0x5dfed1={'timestamp':_0x515d29['timestamp']||new Date()[_0x1a47b5(0x124)](),'level':_0x515d29[_0x1a47b5(0x13a)]||_0x1a47b5(0x12f),'command':_0x515d29[_0x1a47b5(0x138)]||_0x1a47b5(0x126),'rawCommand':_0x515d29['rawCommand']||this[_0x1a47b5(0x11a)]||undefined,'message':_0x515d29[_0x1a47b5(0x10e)]||'','duration':_0x515d29['duration']||undefined,'details':_0x515d29[_0x1a47b5(0x109)]||undefined};return JSON[_0x1a47b5(0x11d)](_0x5dfed1);}));this[_0x452755(0x110)]=a127_0xcadac2[_0x452755(0x10b)]({'level':_0x452755(0x12f),'format':_0x2aa3c3,'transports':[new a127_0xcadac2[(_0x452755(0x108))]['File']({'filename':this[_0x452755(0x139)],'level':_0x452755(0x12f)})],'silent':![]}),a127_0xcadac2['addColors']({'success':_0x452755(0x12a),'error':_0x452755(0x13d),'warn':_0x452755(0x117),'info':'blue'});}['info'](_0x113ee3,_0x1de20e,_0x24a669){const _0x5cf327=a127_0x54b26a;if(!this[_0x5cf327(0x139)]||!this['winstonLogger'])return;this['winstonLogger']['info'](_0x1de20e,{'command':_0x113ee3,'details':_0x24a669});}[a127_0x54b26a(0x112)](_0x1554f3,_0x475b99,_0x58dff4,_0x13abc6){const _0x30c230=a127_0x54b26a;if(!this['logFilePath']||!this[_0x30c230(0x110)])return;this[_0x30c230(0x110)][_0x30c230(0x10d)](_0x30c230(0x12f),_0x475b99,{'level':_0x30c230(0x112),'command':_0x1554f3,'duration':_0x58dff4,'details':_0x13abc6});}[a127_0x54b26a(0x122)](_0xbf2f83,_0x14b61f,_0x28cce2){const _0x47bd57=a127_0x54b26a;if(!this[_0x47bd57(0x139)]||!this['winstonLogger'])return;this['winstonLogger'][_0x47bd57(0x122)](_0x14b61f,{'command':_0xbf2f83,'details':_0x28cce2});}['warn'](_0x455819,_0x33ba71,_0x57534b){const _0x35c86a=a127_0x54b26a;if(!this[_0x35c86a(0x139)]||!this['winstonLogger'])return;this[_0x35c86a(0x110)][_0x35c86a(0x127)](_0x33ba71,{'command':_0x455819,'details':_0x57534b});}async[a127_0x54b26a(0x13c)](_0x225055,_0x757975,_0x2a3dd3){const _0x4fccb0=a127_0x54b26a,_0x5bd8e5=Date[_0x4fccb0(0x12c)]();this[_0x4fccb0(0x12f)](_0x225055,'Starting:\x20'+_0x757975);try{const _0x4d70bd=await _0x2a3dd3(),_0x1793f2=Date[_0x4fccb0(0x12c)]()-_0x5bd8e5;return this[_0x4fccb0(0x112)](_0x225055,_0x4fccb0(0x13e)+_0x757975,_0x1793f2),_0x4d70bd;}catch(_0x411252){const _0x3ed897=Date[_0x4fccb0(0x12c)]()-_0x5bd8e5;this['error'](_0x225055,_0x4fccb0(0x11e)+_0x757975,{'error':_0x411252 instanceof Error?_0x411252['message']:String(_0x411252),'duration':_0x3ed897});throw _0x411252;}}['readLogs'](){const _0x10ffc7=a127_0x54b26a;try{if(!a127_0x4b488f[_0x10ffc7(0x119)](this[_0x10ffc7(0x139)]))return[];const _0x87e0db=a127_0x4b488f[_0x10ffc7(0x116)](this[_0x10ffc7(0x139)],_0x10ffc7(0x111));return _0x87e0db[_0x10ffc7(0x113)](/\r?\n/)['filter'](_0x4b259e=>_0x4b259e[_0x10ffc7(0x12e)]())[_0x10ffc7(0x129)](_0x2d1771=>JSON['parse'](_0x2d1771));}catch(_0x1ff568){return console[_0x10ffc7(0x127)](_0x10ffc7(0x10c),_0x1ff568),[];}}[a127_0x54b26a(0x12d)](){const _0x4d9a73=a127_0x54b26a;try{a127_0x4b488f['existsSync'](this[_0x4d9a73(0x139)])&&a127_0x4b488f['writeFileSync'](this[_0x4d9a73(0x139)],'','utf8');}catch(_0xaf7141){console[_0x4d9a73(0x127)](_0x4d9a73(0x107),_0xaf7141);}}[a127_0x54b26a(0x114)](){const _0xdec68=a127_0x54b26a;return this[_0xdec68(0x110)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- function a128_0x36f0(){const _0x19b713=['30oClLxD','24822JUmPXL','103nfHOog','5159759EUBEhG','defineProperty','1190532TkdzjR','3725420EmRMhX','slice','text','includes','50dsEaAy','4390uffHEF','4200732NPhOkL','24YsoiOu','prototype','json','6672980AfGhnX','MIN_SAFE_INTEGER','MAX_SAFE_INTEGER','exec','length'];a128_0x36f0=function(){return _0x19b713;};return a128_0x36f0();}const a128_0x574016=a128_0x5578;(function(_0x4550c4,_0x4d09a7){const _0x2037a6=a128_0x5578,_0x1209bc=_0x4550c4();while(!![]){try{const _0x4757d8=-parseInt(_0x2037a6(0x122))/0x1*(-parseInt(_0x2037a6(0x12b))/0x2)+parseInt(_0x2037a6(0x12c))/0x3+parseInt(_0x2037a6(0x126))/0x4+parseInt(_0x2037a6(0x130))/0x5+-parseInt(_0x2037a6(0x120))/0x6*(parseInt(_0x2037a6(0x125))/0x7)+parseInt(_0x2037a6(0x12d))/0x8*(parseInt(_0x2037a6(0x121))/0x9)+-parseInt(_0x2037a6(0x12a))/0xa*(parseInt(_0x2037a6(0x123))/0xb);if(_0x4757d8===_0x4d09a7)break;else _0x1209bc['push'](_0x1209bc['shift']());}catch(_0x327e9a){_0x1209bc['push'](_0x1209bc['shift']());}}}(a128_0x36f0,0xac13d));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a128_0x574016(0x132)]),MIN_SAFE_INTEGER=BigInt(Number[a128_0x574016(0x131)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x506aba){const _0x487025=a128_0x574016;if(_0x506aba[_0x487025(0x129)]('.')||_0x506aba[_0x487025(0x129)]('e')||_0x506aba[_0x487025(0x129)]('E'))return![];const _0x524de1=BigInt(_0x506aba);return _0x524de1>MAX_SAFE_INTEGER||_0x524de1<MIN_SAFE_INTEGER;}function a128_0x5578(_0x372f39,_0x406908){_0x372f39=_0x372f39-0x11e;const _0x36f030=a128_0x36f0();let _0x5578ad=_0x36f030[_0x372f39];return _0x5578ad;}function quoteUnsafeIntegerLiterals(_0xf71174){const _0xd74e76=a128_0x574016;let _0x2f523a='',_0x469015=![],_0x24f338=![];for(let _0x8a66ea=0x0;_0x8a66ea<_0xf71174[_0xd74e76(0x11f)];){const _0x2bacc1=_0xf71174[_0x8a66ea];if(_0x469015){_0x2f523a+=_0x2bacc1,_0x8a66ea+=0x1;if(_0x24f338)_0x24f338=![];else{if(_0x2bacc1==='\x5c')_0x24f338=!![];else _0x2bacc1==='\x22'&&(_0x469015=![]);}continue;}if(_0x2bacc1==='\x22'){_0x469015=!![],_0x2f523a+=_0x2bacc1,_0x8a66ea+=0x1;continue;}if(_0x2bacc1==='-'||_0x2bacc1>='0'&&_0x2bacc1<='9'){const _0x2d37ca=JSON_NUMBER_PATTERN[_0xd74e76(0x11e)](_0xf71174[_0xd74e76(0x127)](_0x8a66ea))?.[0x0];if(_0x2d37ca){_0x2f523a+=isUnsafeIntegerLiteral(_0x2d37ca)?'\x22'+_0x2d37ca+'\x22':_0x2d37ca,_0x8a66ea+=_0x2d37ca[_0xd74e76(0x11f)];continue;}}_0x2f523a+=_0x2bacc1,_0x8a66ea+=0x1;}return _0x2f523a;}export function parseLosslessJson(_0x2c7acb){return JSON['parse'](quoteUnsafeIntegerLiterals(_0x2c7acb));}export function installLosslessJsonResponseParser(){const _0x1c3b92=a128_0x574016;if(typeof Response==='undefined')return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x1c3b92(0x12e)],originalResponseJsonDescriptor=Object['getOwnPropertyDescriptor'](responseJsonPrototype,_0x1c3b92(0x12f)),Object[_0x1c3b92(0x124)](responseJsonPrototype,'json',{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x468556(){const _0x24b032=_0x1c3b92;return parseLosslessJson(await this[_0x24b032(0x128)]());}}),restoreResponseJsonParser=()=>{if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object['defineProperty'](responseJsonPrototype,'json',originalResponseJsonDescriptor):delete responseJsonPrototype['json'],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
1
+ const a128_0x2fcb7e=a128_0x29ca;(function(_0x45f2fe,_0xf308b6){const _0x593e64=a128_0x29ca,_0x3a6a65=_0x45f2fe();while(!![]){try{const _0x171c5e=parseInt(_0x593e64(0xa1))/0x1*(parseInt(_0x593e64(0x97))/0x2)+-parseInt(_0x593e64(0x98))/0x3+-parseInt(_0x593e64(0x96))/0x4*(-parseInt(_0x593e64(0xa0))/0x5)+parseInt(_0x593e64(0xa5))/0x6*(parseInt(_0x593e64(0x91))/0x7)+-parseInt(_0x593e64(0x99))/0x8*(-parseInt(_0x593e64(0x9f))/0x9)+-parseInt(_0x593e64(0x9c))/0xa*(parseInt(_0x593e64(0xa3))/0xb)+parseInt(_0x593e64(0xa4))/0xc*(-parseInt(_0x593e64(0x93))/0xd);if(_0x171c5e===_0xf308b6)break;else _0x3a6a65['push'](_0x3a6a65['shift']());}catch(_0x382688){_0x3a6a65['push'](_0x3a6a65['shift']());}}}(a128_0x1250,0xa8b27));function a128_0x1250(){const _0x2faedb=['json','2486FEIPVg','2505228DgYfMV','258OqwLqw','MIN_SAFE_INTEGER','133434FnIxPU','getOwnPropertyDescriptor','78sCGIKW','defineProperty','slice','2564RyHPOj','2rAOEOw','610551SezMko','227744yESRJB','text','exec','41510KaxgGh','includes','length','243hflsUj','9255TCuefQ','310447wZSkLC'];a128_0x1250=function(){return _0x2faedb;};return a128_0x1250();}const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number['MAX_SAFE_INTEGER']),MIN_SAFE_INTEGER=BigInt(Number[a128_0x2fcb7e(0x90)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x340416){const _0x5864ec=a128_0x2fcb7e;if(_0x340416[_0x5864ec(0x9d)]('.')||_0x340416['includes']('e')||_0x340416['includes']('E'))return![];const _0x318446=BigInt(_0x340416);return _0x318446>MAX_SAFE_INTEGER||_0x318446<MIN_SAFE_INTEGER;}function a128_0x29ca(_0xb058ff,_0x381fc7){_0xb058ff=_0xb058ff-0x90;const _0x125086=a128_0x1250();let _0x29ca3c=_0x125086[_0xb058ff];return _0x29ca3c;}function quoteUnsafeIntegerLiterals(_0x42996d){const _0x246679=a128_0x2fcb7e;let _0x35253c='',_0xb167b6=![],_0x39f246=![];for(let _0x1bb5ed=0x0;_0x1bb5ed<_0x42996d[_0x246679(0x9e)];){const _0x34a1ca=_0x42996d[_0x1bb5ed];if(_0xb167b6){_0x35253c+=_0x34a1ca,_0x1bb5ed+=0x1;if(_0x39f246)_0x39f246=![];else{if(_0x34a1ca==='\x5c')_0x39f246=!![];else _0x34a1ca==='\x22'&&(_0xb167b6=![]);}continue;}if(_0x34a1ca==='\x22'){_0xb167b6=!![],_0x35253c+=_0x34a1ca,_0x1bb5ed+=0x1;continue;}if(_0x34a1ca==='-'||_0x34a1ca>='0'&&_0x34a1ca<='9'){const _0x1c4612=JSON_NUMBER_PATTERN[_0x246679(0x9b)](_0x42996d[_0x246679(0x95)](_0x1bb5ed))?.[0x0];if(_0x1c4612){_0x35253c+=isUnsafeIntegerLiteral(_0x1c4612)?'\x22'+_0x1c4612+'\x22':_0x1c4612,_0x1bb5ed+=_0x1c4612['length'];continue;}}_0x35253c+=_0x34a1ca,_0x1bb5ed+=0x1;}return _0x35253c;}export function parseLosslessJson(_0x379de7){return JSON['parse'](quoteUnsafeIntegerLiterals(_0x379de7));}export function installLosslessJsonResponseParser(){const _0x121ac3=a128_0x2fcb7e;if(typeof Response==='undefined')return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response['prototype'],originalResponseJsonDescriptor=Object[_0x121ac3(0x92)](responseJsonPrototype,'json'),Object[_0x121ac3(0x94)](responseJsonPrototype,_0x121ac3(0xa2),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x539161(){const _0x4c39b0=_0x121ac3;return parseLosslessJson(await this[_0x4c39b0(0x9a)]());}}),restoreResponseJsonParser=()=>{const _0x4fdecd=_0x121ac3;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x4fdecd(0x94)](responseJsonPrototype,_0x4fdecd(0xa2),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x4fdecd(0xa2)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}