@lovrabet/lovrabet-cli 2.1.23 → 2.2.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/README.md +13 -10
  2. package/lib/cli.js +1 -1
  3. package/lib/commands/api-doc/index.js +1 -1
  4. package/lib/commands/app/cache.js +1 -1
  5. package/lib/commands/app/definitions.js +1 -1
  6. package/lib/commands/app/eligibility.js +1 -1
  7. package/lib/commands/app/mock-loader.js +1 -1
  8. package/lib/commands/app/remote-source.js +1 -1
  9. package/lib/commands/app/shared.js +1 -1
  10. package/lib/commands/app-config/get.js +1 -1
  11. package/lib/commands/app-config/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/shared.js +1 -1
  26. package/lib/commands/data/index.js +1 -1
  27. package/lib/commands/dataset/detail.js +1 -1
  28. package/lib/commands/dataset/index.js +1 -1
  29. package/lib/commands/dataset/list.js +1 -1
  30. package/lib/commands/dataset/sdk-doc.js +1 -1
  31. package/lib/commands/doctor.js +1 -1
  32. package/lib/commands/file/index.js +1 -1
  33. package/lib/commands/init.js +1 -1
  34. package/lib/commands/kb/index.js +1 -1
  35. package/lib/commands/logs/index.js +1 -1
  36. package/lib/commands/ocr/index.js +1 -1
  37. package/lib/commands/personal-bff/index.js +1 -1
  38. package/lib/commands/registry.js +1 -1
  39. package/lib/commands/schedule/index.js +1 -1
  40. package/lib/commands/schema.js +1 -1
  41. package/lib/commands/service/dynamic.js +1 -1
  42. package/lib/commands/service/function-name-adapter.js +1 -1
  43. package/lib/commands/service/index.js +1 -1
  44. package/lib/commands/service/registry.js +1 -1
  45. package/lib/commands/skill/commands/create.js +1 -1
  46. package/lib/commands/skill/commands/diagram.js +1 -1
  47. package/lib/commands/skill/commands/install.js +1 -1
  48. package/lib/commands/skill/commands/list.js +1 -1
  49. package/lib/commands/skill/commands/push.js +1 -1
  50. package/lib/commands/skill/commands/validate.js +1 -1
  51. package/lib/commands/skill/diagram.js +1 -1
  52. package/lib/commands/skill/flags.js +1 -1
  53. package/lib/commands/skill/index.js +1 -1
  54. package/lib/commands/skill/manifest-helpers.js +1 -1
  55. package/lib/commands/skill/push-execute.js +1 -1
  56. package/lib/commands/skill/push-flow-helpers.js +1 -1
  57. package/lib/commands/skill/push-retarget.js +1 -1
  58. package/lib/commands/skill/scopes.js +1 -1
  59. package/lib/commands/skill/summary.js +1 -1
  60. package/lib/commands/skill/templates.js +1 -1
  61. package/lib/commands/skill/validate.js +1 -1
  62. package/lib/commands/sql/detail.js +1 -1
  63. package/lib/commands/sql/exec.js +1 -1
  64. package/lib/commands/sql/index.js +1 -1
  65. package/lib/commands/update.d.ts +2 -2
  66. package/lib/commands/update.js +1 -1
  67. package/lib/commands/workspace/index.js +1 -1
  68. package/lib/config/schema.js +1 -1
  69. package/lib/constant/app.js +1 -1
  70. package/lib/constant/auth-mode.js +1 -1
  71. package/lib/constant/cli.js +1 -1
  72. package/lib/constant/defaults.js +1 -1
  73. package/lib/constant/distribution.js +1 -1
  74. package/lib/constant/domain.js +1 -1
  75. package/lib/constant/env.js +1 -1
  76. package/lib/constant/output.js +1 -1
  77. package/lib/constant/product.js +1 -1
  78. package/lib/constant/risk.js +1 -1
  79. package/lib/constant/url.js +1 -1
  80. package/lib/context.js +1 -1
  81. package/lib/core/api-client.d.ts +2 -1
  82. package/lib/core/api-client.js +1 -1
  83. package/lib/core/db-resolver.js +1 -1
  84. package/lib/core/sdk-client.js +1 -1
  85. package/lib/errors.js +1 -1
  86. package/lib/framework/build-all-flags.js +1 -1
  87. package/lib/framework/dryrun.js +1 -1
  88. package/lib/framework/flags.js +1 -1
  89. package/lib/framework/help.js +1 -1
  90. package/lib/framework/index.js +1 -1
  91. package/lib/framework/output.js +1 -1
  92. package/lib/framework/preparse.js +1 -1
  93. package/lib/framework/rate-limit.js +1 -1
  94. package/lib/framework/raw-flags.js +1 -1
  95. package/lib/framework/response.js +1 -1
  96. package/lib/framework/runner-confirmation.js +1 -1
  97. package/lib/framework/runner-error.js +1 -1
  98. package/lib/framework/runner.js +1 -1
  99. package/lib/framework/schema-export.js +1 -1
  100. package/lib/framework/service-order.js +1 -1
  101. package/lib/framework/types.js +1 -1
  102. package/lib/generated/build-info.d.ts +4 -4
  103. package/lib/generated/build-info.js +1 -1
  104. package/lib/help.js +1 -1
  105. package/lib/postinstall.d.ts +2 -0
  106. package/lib/postinstall.js +1 -0
  107. package/lib/runtime/confirmation.js +1 -1
  108. package/lib/runtime/event.js +1 -1
  109. package/lib/runtime/index.js +1 -1
  110. package/lib/runtime/queue.js +1 -1
  111. package/lib/runtime/resolve.js +1 -1
  112. package/lib/skills/builtin-skill.d.ts +37 -0
  113. package/lib/skills/builtin-skill.js +1 -0
  114. package/lib/skills/npx-skills-add.d.ts +3 -1
  115. package/lib/skills/npx-skills-add.js +1 -1
  116. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  117. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  118. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  119. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  120. package/lib/skills/runtime-skill-sync/links.js +1 -1
  121. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  122. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  123. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  124. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  125. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  126. package/lib/skills/runtime-skill-sync/push.js +1 -1
  127. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  128. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  129. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  130. package/lib/skills/runtime-skill-sync.js +1 -1
  131. package/lib/skills/skill-presence.js +1 -1
  132. package/lib/utils/apply-jq-filter.js +1 -1
  133. package/lib/utils/logger.js +1 -1
  134. package/lib/utils/lossless-json.js +1 -1
  135. package/lib/utils/params.js +1 -1
  136. package/lib/utils/platform.js +1 -1
  137. package/lib/utils/update-notice.js +1 -1
  138. package/lib/utils/version.js +1 -1
  139. package/lib/utils/write-cli-side-channel.js +1 -1
  140. package/package.json +14 -3
  141. package/scripts/postinstall.mjs +24 -0
  142. package/skills/lovrabet/SKILL.md +704 -0
  143. package/skills/lovrabet/guides/app-resolution.md +165 -0
  144. package/skills/lovrabet/guides/dataset-and-data-workflow.md +170 -0
  145. package/skills/lovrabet/guides/sql-and-bff-workflow.md +132 -0
  146. package/skills/lovrabet/guides/troubleshooting.md +91 -0
  147. package/skills/lovrabet/references/dataset-discovery-workflow.md +160 -0
  148. package/skills/lovrabet/references/instant-api-workflow.md +259 -0
  149. package/skills/lovrabet/references/lovrabet-app-config.md +51 -0
  150. package/skills/lovrabet/references/lovrabet-app.md +113 -0
  151. package/skills/lovrabet/references/lovrabet-auth.md +136 -0
  152. package/skills/lovrabet/references/lovrabet-bff-workflow.md +139 -0
  153. package/skills/lovrabet/references/lovrabet-config-commands.md +104 -0
  154. package/skills/lovrabet/references/lovrabet-config.md +124 -0
  155. package/skills/lovrabet/references/lovrabet-doctor.md +26 -0
  156. package/skills/lovrabet/references/lovrabet-file-workflow.md +62 -0
  157. package/skills/lovrabet/references/lovrabet-kb-workflow.md +78 -0
  158. package/skills/lovrabet/references/lovrabet-logs.md +19 -0
  159. package/skills/lovrabet/references/lovrabet-ocr-workflow.md +83 -0
  160. package/skills/lovrabet/references/lovrabet-output-format-jq.md +40 -0
  161. package/skills/lovrabet/references/lovrabet-personal-bff-workflow.md +108 -0
  162. package/skills/lovrabet/references/lovrabet-schedule-workflow.md +181 -0
  163. package/skills/lovrabet/references/lovrabet-service-tree.md +279 -0
  164. package/skills/lovrabet/references/lovrabet-skill-authoring.md +128 -0
  165. package/skills/lovrabet/references/lovrabet-skill-install.md +34 -0
  166. package/skills/lovrabet/references/lovrabet-skill-sync.md +146 -0
  167. package/skills/lovrabet/references/lovrabet-sql-workflow.md +111 -0
  168. package/skills/lovrabet/references/lovrabet-update.md +34 -0
  169. package/skills/lovrabet/references/lovrabet-workspace.md +82 -0
  170. package/skills/lovrabet.manifest.json +38 -0
@@ -1 +1 @@
1
- (function(_0x443c72,_0x2d5713){const _0x4f0ab5=a112_0x5df0,_0x5c9007=_0x443c72();while(!![]){try{const _0x590ef5=-parseInt(_0x4f0ab5(0x139))/0x1*(-parseInt(_0x4f0ab5(0x11e))/0x2)+parseInt(_0x4f0ab5(0x112))/0x3+-parseInt(_0x4f0ab5(0x11a))/0x4*(-parseInt(_0x4f0ab5(0x116))/0x5)+parseInt(_0x4f0ab5(0x129))/0x6*(-parseInt(_0x4f0ab5(0x128))/0x7)+parseInt(_0x4f0ab5(0x12c))/0x8+-parseInt(_0x4f0ab5(0x11c))/0x9+parseInt(_0x4f0ab5(0x127))/0xa;if(_0x590ef5===_0x2d5713)break;else _0x5c9007['push'](_0x5c9007['shift']());}catch(_0x3013d4){_0x5c9007['push'](_0x5c9007['shift']());}}}(a112_0x31ee,0x2e937));function a112_0x5df0(_0x5bccf7,_0xf43273){_0x5bccf7=_0x5bccf7-0x10d;const _0x31ee42=a112_0x31ee();let _0x5df00f=_0x31ee42[_0x5bccf7];return _0x5df00f;}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';export function listLocalRuntimeSkills(_0x18ab20,_0x1de857,_0x59c771={}){const _0x5858bd=a112_0x5df0,_0x304bec=safePathSegment(_0x18ab20[_0x5858bd(0x130)],_0x5858bd(0x130));if(_0x1de857[_0x5858bd(0x130)]!==_0x304bec)throw CliErrors[_0x5858bd(0x12e)]('Runtime\x20Skill\x20install\x20target\x20app\x20mismatch:\x20'+_0x1de857[_0x5858bd(0x130)]+'\x20!=\x20'+_0x304bec);const _0x3f4dbe=normalizeRuntimeSkillScopes(_0x18ab20['scopes']),_0x5e876a=new Set(_0x3f4dbe),_0x4ef3eb=_0x18ab20['code']?.[_0x5858bd(0x119)](),_0x172f55=new Map(),_0x45c693=resolve(getRuntimeSkillCacheRoot(_0x18ab20[_0x5858bd(0x124)],_0x18ab20['accessKey'],_0x59c771),_0x304bec);for(const _0x447f17 of _0x3f4dbe){for(const _0x1f92b4 of localSkillEntryDirs(resolve(_0x45c693,_0x447f17))){collectLocalRuntimeSkill(_0x172f55,_0x1f92b4,{'appCode':_0x304bec,'scopes':_0x5e876a,'code':_0x4ef3eb,'source':'cache'});}}for(const _0xf283ec of _0x1de857[_0x5858bd(0x136)]){for(const _0x27dadb of localSkillLinkCandidates(_0xf283ec,_0x1de857,_0x5e876a)){collectLocalRuntimeSkill(_0x172f55,_0x27dadb,{'appCode':_0x304bec,'scopes':_0x5e876a,'code':_0x4ef3eb,'source':'link','linkedPath':_0x27dadb});}}return Array[_0x5858bd(0x115)](_0x172f55[_0x5858bd(0x118)]())[_0x5858bd(0x134)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x25a8f4){const _0x5f5b53=a112_0x5df0;if(!existsSync(_0x25a8f4))return[];return readdirSync(_0x25a8f4,{'withFileTypes':!![]})[_0x5f5b53(0x12d)](_0x36d531=>_0x36d531['isDirectory']()||_0x36d531['isSymbolicLink']())[_0x5f5b53(0x131)](_0x5b5fa0=>resolve(_0x25a8f4,_0x5b5fa0[_0x5f5b53(0x122)]));}function a112_0x31ee(){const _0x55b094=['trim','39092bfZuLD','isDirectory','2818314YSuwxj','local','110566kotClr','project','linkedPaths','skillMdPath','name','scopes','env','cache','code','611830daWJru','74669sEnEWG','120ICOsGh','push','cacheDir','602784IrUoxT','filter','validation','set','appCode','map','linkedPath','isSymbolicLink','sort','dir','skillRoots','source','get','2Kpyqsx','scope','skillCode','has','tags','startsWith','1117302XpLxwr','metadataPath','includes','from','50qiOksR','isArray','values'];a112_0x31ee=function(){return _0x55b094;};return a112_0x31ee();}function localSkillLinkCandidates(_0x5b83d0,_0x58d5a3,_0x1ba748){const _0x59ae16=a112_0x5df0;if(!existsSync(_0x5b83d0))return[];const _0x3d6fd2=_0x58d5a3[_0x59ae16(0x130)]+'--';return readdirSync(_0x5b83d0,{'withFileTypes':!![]})[_0x59ae16(0x12d)](_0x2e587f=>_0x2e587f[_0x59ae16(0x11b)]()||_0x2e587f[_0x59ae16(0x133)]())[_0x59ae16(0x12d)](_0x1711f3=>_0x58d5a3[_0x59ae16(0x10d)]===_0x59ae16(0x11f)||_0x1711f3[_0x59ae16(0x122)][_0x59ae16(0x111)](_0x3d6fd2)||_0x1ba748[_0x59ae16(0x10f)]('builtin'))[_0x59ae16(0x131)](_0x4bf09f=>resolve(_0x5b83d0,_0x4bf09f[_0x59ae16(0x122)]));}function collectLocalRuntimeSkill(_0x500cdd,_0xaca0e4,_0xbe29f1){const _0x5ae4c2=a112_0x5df0,_0x50f163=resolve(_0xaca0e4,METADATA_FILE),_0x5701e3=readMetadataIfPresent(_0x50f163);if(!_0x5701e3)return;if(_0x5701e3[_0x5ae4c2(0x130)]!==_0xbe29f1[_0x5ae4c2(0x130)])return;if(!isRuntimeSkillScope(_0x5701e3[_0x5ae4c2(0x10d)])||!_0xbe29f1[_0x5ae4c2(0x123)]['has'](_0x5701e3['scope']))return;const _0x412e81=_0x5701e3[_0x5ae4c2(0x10e)]?.['trim']();if(!_0x412e81)return;if(_0xbe29f1[_0x5ae4c2(0x126)]&&_0x412e81!==_0xbe29f1[_0x5ae4c2(0x126)])return;const _0x6105d7=_0x5701e3[_0x5ae4c2(0x10d)]+':'+_0x412e81,_0x13cfa3=_0xbe29f1[_0x5ae4c2(0x132)]?[_0xbe29f1['linkedPath']]:[],_0x17b181=_0x500cdd[_0x5ae4c2(0x138)](_0x6105d7);if(_0x17b181){_0xbe29f1[_0x5ae4c2(0x137)]===_0x5ae4c2(0x125)&&(_0x17b181[_0x5ae4c2(0x135)]=_0xaca0e4,_0x17b181[_0x5ae4c2(0x12b)]=_0xaca0e4,_0x17b181[_0x5ae4c2(0x121)]=resolve(_0xaca0e4,SKILL_FILE),_0x17b181[_0x5ae4c2(0x113)]=_0x50f163);for(const _0x1fc1fd of _0x13cfa3){!_0x17b181[_0x5ae4c2(0x120)][_0x5ae4c2(0x114)](_0x1fc1fd)&&_0x17b181[_0x5ae4c2(0x120)][_0x5ae4c2(0x12a)](_0x1fc1fd);}_0x17b181['linkedPaths'][_0x5ae4c2(0x134)]();return;}_0x500cdd[_0x5ae4c2(0x12f)](_0x6105d7,{..._0x5701e3,'tags':Array[_0x5ae4c2(0x117)](_0x5701e3['tags'])?_0x5701e3[_0x5ae4c2(0x110)]:[],'scope':_0x5701e3['scope'],'source':_0x5ae4c2(0x11d),'dir':_0xaca0e4,'cacheDir':_0xbe29f1[_0x5ae4c2(0x137)]==='cache'?_0xaca0e4:undefined,'skillMdPath':resolve(_0xaca0e4,SKILL_FILE),'metadataPath':_0x50f163,'linkedPaths':_0x13cfa3});}function compareLocalRuntimeSkills(_0x54683b,_0xd8774f){const _0x5cb3ca=a112_0x5df0,_0x49a644={'personal':0x0,'company':0x1,'builtin':0x2};return _0x49a644[_0x54683b['scope']]-_0x49a644[_0xd8774f[_0x5cb3ca(0x10d)]]||_0x54683b[_0x5cb3ca(0x10e)]['localeCompare'](_0xd8774f[_0x5cb3ca(0x10e)])||_0x54683b[_0x5cb3ca(0x135)]['localeCompare'](_0xd8774f[_0x5cb3ca(0x135)]);}
1
+ function a114_0x1b2a(){const _0x11e390=['cache','isSymbolicLink','skillMdPath','22595TWyDKc','linkedPath','validation','startsWith','18oeKvKh','linkedPaths','includes','code','skillRoots','1066HPWyVG','local','3891096wpJMev','dir','2558DVamFy','30wbsdrn','source','map','\x20!=\x20','scope','values','tags','cacheDir','isDirectory','28234764ypYHCS','has','appCode','1090075QZWMxE','metadataPath','406988zaMLKF','from','45pPibIP','Runtime\x20Skill\x20install\x20target\x20app\x20mismatch:\x20','get','set','accessKey','name','link','skillCode','12307690ezVthG','11LnfdjB','project','builtin','scopes','sort','filter','localeCompare'];a114_0x1b2a=function(){return _0x11e390;};return a114_0x1b2a();}(function(_0x3de6fb,_0x2c6e6a){const _0x5d3d87=a114_0x4feb,_0x1936cb=_0x3de6fb();while(!![]){try{const _0x1cf697=-parseInt(_0x5d3d87(0xd6))/0x1*(parseInt(_0x5d3d87(0xd2))/0x2)+parseInt(_0x5d3d87(0xb6))/0x3*(parseInt(_0x5d3d87(0xb4))/0x4)+parseInt(_0x5d3d87(0xc9))/0x5+-parseInt(_0x5d3d87(0xd7))/0x6*(-parseInt(_0x5d3d87(0xb2))/0x7)+-parseInt(_0x5d3d87(0xd4))/0x8*(-parseInt(_0x5d3d87(0xcd))/0x9)+-parseInt(_0x5d3d87(0xbe))/0xa*(-parseInt(_0x5d3d87(0xbf))/0xb)+-parseInt(_0x5d3d87(0xaf))/0xc;if(_0x1cf697===_0x2c6e6a)break;else _0x1936cb['push'](_0x1936cb['shift']());}catch(_0x1a329d){_0x1936cb['push'](_0x1936cb['shift']());}}}(a114_0x1b2a,0xc27a5));import{existsSync,readdirSync}from'node:fs';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';function a114_0x4feb(_0x21e3e7,_0x453e51){_0x21e3e7=_0x21e3e7-0xac;const _0x1b2a5e=a114_0x1b2a();let _0x4feb5d=_0x1b2a5e[_0x21e3e7];return _0x4feb5d;}import{readMetadataIfPresent}from'./metadata.js';import{getRuntimeSkillCacheRoot,safePathSegment}from'./paths.js';import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';export function listLocalRuntimeSkills(_0x4d9155,_0x1cd532,_0x45b344={}){const _0x2080df=a114_0x4feb,_0x4dbb3a=safePathSegment(_0x4d9155[_0x2080df(0xb1)],_0x2080df(0xb1));if(_0x1cd532['appCode']!==_0x4dbb3a)throw CliErrors[_0x2080df(0xcb)](_0x2080df(0xb7)+_0x1cd532['appCode']+_0x2080df(0xda)+_0x4dbb3a);const _0x57f91d=normalizeRuntimeSkillScopes(_0x4d9155[_0x2080df(0xc2)]),_0x629f94=new Set(_0x57f91d),_0x5ad076=_0x4d9155[_0x2080df(0xd0)]?.['trim'](),_0x46e257=new Map(),_0x259ac4=resolve(getRuntimeSkillCacheRoot(_0x4d9155['env'],_0x4d9155[_0x2080df(0xba)],_0x45b344),_0x4dbb3a);for(const _0x469d70 of _0x57f91d){for(const _0x17ffa3 of localSkillEntryDirs(resolve(_0x259ac4,_0x469d70))){collectLocalRuntimeSkill(_0x46e257,_0x17ffa3,{'appCode':_0x4dbb3a,'scopes':_0x629f94,'code':_0x5ad076,'source':'cache'});}}for(const _0x255eb4 of _0x1cd532[_0x2080df(0xd1)]){for(const _0x3d6d48 of localSkillLinkCandidates(_0x255eb4,_0x1cd532,_0x629f94)){collectLocalRuntimeSkill(_0x46e257,_0x3d6d48,{'appCode':_0x4dbb3a,'scopes':_0x629f94,'code':_0x5ad076,'source':_0x2080df(0xbc),'linkedPath':_0x3d6d48});}}return Array[_0x2080df(0xb5)](_0x46e257[_0x2080df(0xdc)]())[_0x2080df(0xc3)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x2fbb5f){const _0x616dc1=a114_0x4feb;if(!existsSync(_0x2fbb5f))return[];return readdirSync(_0x2fbb5f,{'withFileTypes':!![]})['filter'](_0x3893d8=>_0x3893d8['isDirectory']()||_0x3893d8[_0x616dc1(0xc7)]())[_0x616dc1(0xd9)](_0x368673=>resolve(_0x2fbb5f,_0x368673[_0x616dc1(0xbb)]));}function localSkillLinkCandidates(_0x1485e3,_0x5080b8,_0x2eec17){const _0x5c5500=a114_0x4feb;if(!existsSync(_0x1485e3))return[];const _0x6a3f6=_0x5080b8[_0x5c5500(0xb1)]+'--';return readdirSync(_0x1485e3,{'withFileTypes':!![]})[_0x5c5500(0xc4)](_0x3abcdc=>_0x3abcdc[_0x5c5500(0xae)]()||_0x3abcdc[_0x5c5500(0xc7)]())[_0x5c5500(0xc4)](_0x5800bf=>_0x5080b8['scope']===_0x5c5500(0xc0)||_0x5800bf[_0x5c5500(0xbb)][_0x5c5500(0xcc)](_0x6a3f6)||_0x2eec17[_0x5c5500(0xb0)](_0x5c5500(0xc1)))['map'](_0x2f247e=>resolve(_0x1485e3,_0x2f247e['name']));}function collectLocalRuntimeSkill(_0x24ffc4,_0xf71c1b,_0x3cfa02){const _0x74e168=a114_0x4feb,_0x8559ea=resolve(_0xf71c1b,METADATA_FILE),_0x2a6837=readMetadataIfPresent(_0x8559ea);if(!_0x2a6837)return;if(_0x2a6837['appCode']!==_0x3cfa02['appCode'])return;if(!isRuntimeSkillScope(_0x2a6837[_0x74e168(0xdb)])||!_0x3cfa02[_0x74e168(0xc2)][_0x74e168(0xb0)](_0x2a6837[_0x74e168(0xdb)]))return;const _0x59431a=_0x2a6837['skillCode']?.['trim']();if(!_0x59431a)return;if(_0x3cfa02[_0x74e168(0xd0)]&&_0x59431a!==_0x3cfa02[_0x74e168(0xd0)])return;const _0x4b2907=_0x2a6837[_0x74e168(0xdb)]+':'+_0x59431a,_0x5ba62d=_0x3cfa02[_0x74e168(0xca)]?[_0x3cfa02[_0x74e168(0xca)]]:[],_0x524478=_0x24ffc4[_0x74e168(0xb8)](_0x4b2907);if(_0x524478){_0x3cfa02[_0x74e168(0xd8)]==='cache'&&(_0x524478[_0x74e168(0xd5)]=_0xf71c1b,_0x524478[_0x74e168(0xad)]=_0xf71c1b,_0x524478[_0x74e168(0xc8)]=resolve(_0xf71c1b,SKILL_FILE),_0x524478[_0x74e168(0xb3)]=_0x8559ea);for(const _0x30ad39 of _0x5ba62d){!_0x524478['linkedPaths'][_0x74e168(0xcf)](_0x30ad39)&&_0x524478[_0x74e168(0xce)]['push'](_0x30ad39);}_0x524478[_0x74e168(0xce)][_0x74e168(0xc3)]();return;}_0x24ffc4[_0x74e168(0xb9)](_0x4b2907,{..._0x2a6837,'tags':Array['isArray'](_0x2a6837['tags'])?_0x2a6837[_0x74e168(0xac)]:[],'scope':_0x2a6837[_0x74e168(0xdb)],'source':_0x74e168(0xd3),'dir':_0xf71c1b,'cacheDir':_0x3cfa02[_0x74e168(0xd8)]===_0x74e168(0xc6)?_0xf71c1b:undefined,'skillMdPath':resolve(_0xf71c1b,SKILL_FILE),'metadataPath':_0x8559ea,'linkedPaths':_0x5ba62d});}function compareLocalRuntimeSkills(_0x312fb0,_0x5a0ea8){const _0x427351=a114_0x4feb,_0x50f104={'personal':0x0,'company':0x1,'builtin':0x2};return _0x50f104[_0x312fb0[_0x427351(0xdb)]]-_0x50f104[_0x5a0ea8['scope']]||_0x312fb0[_0x427351(0xbd)]['localeCompare'](_0x5a0ea8['skillCode'])||_0x312fb0['dir'][_0x427351(0xc5)](_0x5a0ea8[_0x427351(0xd5)]);}
@@ -1 +1 @@
1
- (function(_0x2c066c,_0x48d30c){const _0xfb6b5d=a113_0x2ee8,_0x2d19ca=_0x2c066c();while(!![]){try{const _0x42e779=parseInt(_0xfb6b5d(0x13f))/0x1+-parseInt(_0xfb6b5d(0x13e))/0x2+parseInt(_0xfb6b5d(0x122))/0x3*(parseInt(_0xfb6b5d(0x131))/0x4)+-parseInt(_0xfb6b5d(0x11b))/0x5*(parseInt(_0xfb6b5d(0x123))/0x6)+parseInt(_0xfb6b5d(0x126))/0x7*(-parseInt(_0xfb6b5d(0x11d))/0x8)+parseInt(_0xfb6b5d(0x119))/0x9*(parseInt(_0xfb6b5d(0x133))/0xa)+parseInt(_0xfb6b5d(0x12b))/0xb;if(_0x42e779===_0x48d30c)break;else _0x2d19ca['push'](_0x2d19ca['shift']());}catch(_0x20568d){_0x2d19ca['push'](_0x2d19ca['shift']());}}}(a113_0x36a5,0x7578f));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(_0x562e7c){const _0x404280=a113_0x2ee8;return _0x562e7c['bytes']??Buffer['from'](_0x562e7c['content']??'',_0x404280(0x138));}export function fileText(_0x26a3c8){const _0x272f11=a113_0x2ee8;return fileContent(_0x26a3c8)[_0x272f11(0x140)](_0x272f11(0x138));}export function normalizeLocalFiles(_0x2bc939){const _0x4b16d1=a113_0x2ee8;if(!Array[_0x4b16d1(0x121)](_0x2bc939)||_0x2bc939[_0x4b16d1(0x120)]===0x0)return[];const _0x11f84f=new Map();for(const _0x257031 of _0x2bc939){if(!_0x257031||typeof _0x257031!==_0x4b16d1(0x118)||typeof _0x257031['path']!==_0x4b16d1(0x11c))throw CliErrors[_0x4b16d1(0x132)]('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x2d91e3=normalizeSkillRelativePath(_0x257031[_0x4b16d1(0x117)]);if(_0x11f84f[_0x4b16d1(0x12c)](_0x2d91e3))throw CliErrors['validation'](_0x4b16d1(0x145)+_0x2d91e3);if(_0x257031[_0x4b16d1(0x12f)]!==undefined&&!Buffer[_0x4b16d1(0x13a)](_0x257031[_0x4b16d1(0x12f)]))throw CliErrors['validation'](_0x4b16d1(0x124)+_0x2d91e3);if(_0x257031[_0x4b16d1(0x12f)]===undefined&&typeof _0x257031['content']!==_0x4b16d1(0x11c))throw CliErrors[_0x4b16d1(0x132)](_0x4b16d1(0x11a)+_0x2d91e3);const _0x47f185=fileContent(_0x257031);_0x11f84f[_0x4b16d1(0x136)](_0x2d91e3,{'path':_0x2d91e3,'bytes':_0x47f185});}return Array[_0x4b16d1(0x13d)](_0x11f84f[_0x4b16d1(0x144)]())[_0x4b16d1(0x11f)](compareSkillFiles);}function a113_0x36a5(){const _0xfe6cee=['isBuffer','trim','split','from','1801676vjbNmi','754193IkhbTF','toString','includes','sha256','name','values','Duplicate\x20Skill\x20file\x20path:\x20','path','object','4443651hIUMyO','Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20','375bynemr','string','16jWEMaQ','replace','sort','length','isArray','6CqVMNc','1662Fvhatj','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','compare','2131661TqPgnO','Skill\x20file\x20size\x20is\x20invalid:\x20','test','isSymbolicLink','isSafeInteger','8179072mokKeh','has','Skill\x20file\x20sha256\x20is\x20invalid:\x20','isFile','bytes','excludedFilePaths','40684pMkfpx','validation','10bpFnYI','isDirectory','size','set','add','utf8','Unsafe\x20Skill\x20file\x20path:\x20'];a113_0x36a5=function(){return _0xfe6cee;};return a113_0x36a5();}export function normalizeManifestFiles(_0x166b69){const _0x443e66=a113_0x2ee8;if(!Array[_0x443e66(0x121)](_0x166b69)||_0x166b69['length']===0x0)return[];const _0x30e41a=new Map();for(const _0x586c7b of _0x166b69){if(!_0x586c7b||typeof _0x586c7b!=='object'||typeof _0x586c7b[_0x443e66(0x117)]!=='string')throw CliErrors['validation']('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x58e2f7=normalizeSkillRelativePath(_0x586c7b[_0x443e66(0x117)]);if(_0x30e41a['has'](_0x58e2f7))throw CliErrors[_0x443e66(0x132)](_0x443e66(0x145)+_0x58e2f7);if(!isSha256Hex(_0x586c7b['sha256']))throw CliErrors[_0x443e66(0x132)](_0x443e66(0x12d)+_0x58e2f7);if(!Number[_0x443e66(0x12a)](_0x586c7b[_0x443e66(0x135)])||_0x586c7b[_0x443e66(0x135)]<0x0)throw CliErrors[_0x443e66(0x132)](_0x443e66(0x127)+_0x58e2f7);_0x30e41a[_0x443e66(0x136)](_0x58e2f7,{'path':_0x58e2f7,'sha256':_0x586c7b[_0x443e66(0x142)]['toLowerCase'](),'size':_0x586c7b[_0x443e66(0x135)]});}return Array[_0x443e66(0x13d)](_0x30e41a['values']())[_0x443e66(0x11f)](compareSkillFiles);}export function scanSkillDirectory(_0x1f58b3,_0x3a3aa4={}){const _0x14267e=a113_0x2ee8,_0x183a09=realpathSync(_0x1f58b3),_0x32c864=canonicalExcludedFilePaths(_0x3a3aa4[_0x14267e(0x130)]),_0x50de5b=[];function _0x17bef7(_0x582c3c){const _0x2742ba=_0x14267e,_0x13e2ef=readdirSync(_0x582c3c,{'withFileTypes':!![]})['sort']((_0x471194,_0x52ad7a)=>_0x471194['name']['localeCompare'](_0x52ad7a['name']));for(const _0x230558 of _0x13e2ef){if(_0x230558[_0x2742ba(0x134)]()&&IGNORED_DIR_NAMES[_0x2742ba(0x12c)](_0x230558[_0x2742ba(0x143)]))continue;if(IGNORED_FILE_NAMES[_0x2742ba(0x12c)](_0x230558[_0x2742ba(0x143)]))continue;const _0x15cbfd=resolve(_0x582c3c,_0x230558[_0x2742ba(0x143)]);if(isExcludedFilePath(_0x15cbfd,_0x32c864))continue;if(_0x230558[_0x2742ba(0x129)]())throw CliErrors[_0x2742ba(0x132)]('Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20'+_0x15cbfd);const _0x51fe7e=toPosixPath(relative(_0x183a09,_0x15cbfd));if(_0x230558[_0x2742ba(0x134)]()){_0x17bef7(_0x15cbfd);continue;}if(!_0x230558[_0x2742ba(0x12e)]())continue;validateSkillRelativePath(_0x51fe7e);const _0x3a72d5=readFileSync(_0x15cbfd);_0x50de5b['push']({'path':_0x51fe7e,'bytes':_0x3a72d5});}}return _0x17bef7(_0x183a09),normalizeLocalFiles(_0x50de5b);}function a113_0x2ee8(_0x440d8d,_0x4e08d7){_0x440d8d=_0x440d8d-0x117;const _0x36a53a=a113_0x36a5();let _0x2ee867=_0x36a53a[_0x440d8d];return _0x2ee867;}function canonicalExcludedFilePaths(_0xcb5006){const _0x508947=a113_0x2ee8,_0x422d9a=new Set();for(const _0x11b541 of _0xcb5006??[]){const _0xc48b5c=resolve(_0x11b541);_0x422d9a[_0x508947(0x137)](_0xc48b5c);try{_0x422d9a[_0x508947(0x137)](realpathSync(_0xc48b5c));}catch{}}return _0x422d9a;}function isExcludedFilePath(_0x27bba7,_0x49369d){const _0x5189d6=a113_0x2ee8;if(_0x49369d[_0x5189d6(0x12c)](_0x27bba7))return!![];if(_0x49369d[_0x5189d6(0x135)]===0x0)return![];try{return _0x49369d[_0x5189d6(0x12c)](realpathSync(_0x27bba7));}catch{return![];}}export function compareSkillFiles(_0x183493,_0x304e95){const _0x1efa88=a113_0x2ee8;if(_0x183493[_0x1efa88(0x117)]===SKILL_FILE)return _0x304e95[_0x1efa88(0x117)]===SKILL_FILE?0x0:-0x1;if(_0x304e95[_0x1efa88(0x117)]===SKILL_FILE)return 0x1;return Buffer[_0x1efa88(0x125)](Buffer['from'](_0x183493['path'],'utf8'),Buffer['from'](_0x304e95[_0x1efa88(0x117)],_0x1efa88(0x138)));}export function normalizeSkillRelativePath(_0x2a5635){const _0x529d89=a113_0x2ee8,_0x6573b4=toPosixPath(_0x2a5635[_0x529d89(0x13b)]());return validateSkillRelativePath(_0x6573b4),_0x6573b4;}export function validateSkillRelativePath(_0x3e030d){const _0x60972a=a113_0x2ee8;if(!_0x3e030d||_0x3e030d['startsWith']('/')||_0x3e030d[_0x60972a(0x141)]('//'))throw CliErrors[_0x60972a(0x132)](_0x60972a(0x139)+_0x3e030d);for(const _0x410fc6 of _0x3e030d[_0x60972a(0x13c)]('/')){if(!_0x410fc6||_0x410fc6==='.'||_0x410fc6==='..')throw CliErrors[_0x60972a(0x132)]('Unsafe\x20Skill\x20file\x20path:\x20'+_0x3e030d);}}export function toPosixPath(_0x1cba31){const _0x286852=a113_0x2ee8;return _0x1cba31[_0x286852(0x11e)](/\\/g,'/');}export function isSha256Hex(_0x2d7654){const _0x737272=a113_0x2ee8;return typeof _0x2d7654===_0x737272(0x11c)&&/^[a-fA-F0-9]{64}$/[_0x737272(0x128)](_0x2d7654);}
1
+ (function(_0xdca6e0,_0x21d699){const _0x3e9ea0=a115_0xf30e,_0x5c9976=_0xdca6e0();while(!![]){try{const _0x158b6c=-parseInt(_0x3e9ea0(0xd9))/0x1+-parseInt(_0x3e9ea0(0xea))/0x2*(parseInt(_0x3e9ea0(0xeb))/0x3)+-parseInt(_0x3e9ea0(0xcd))/0x4+-parseInt(_0x3e9ea0(0xd5))/0x5+parseInt(_0x3e9ea0(0xe6))/0x6+-parseInt(_0x3e9ea0(0xd7))/0x7*(-parseInt(_0x3e9ea0(0xd4))/0x8)+parseInt(_0x3e9ea0(0xee))/0x9*(parseInt(_0x3e9ea0(0xce))/0xa);if(_0x158b6c===_0x21d699)break;else _0x5c9976['push'](_0x5c9976['shift']());}catch(_0x4c86b9){_0x5c9976['push'](_0x5c9976['shift']());}}}(a115_0x25ca,0xb647c));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(_0x31d6ec){const _0x39b6f3=a115_0xf30e;return _0x31d6ec[_0x39b6f3(0xc8)]??Buffer[_0x39b6f3(0xd2)](_0x31d6ec[_0x39b6f3(0xec)]??'',_0x39b6f3(0xcf));}function a115_0x25ca(){const _0x3d3d59=['split','localeCompare','includes','3967492COsFfo','2420020aclVfa','utf8','name','validation','from','isSafeInteger','16ZaNpBs','5083270uIyNFp','isArray','3338069kPafRm','isBuffer','288901TjubGv','isSymbolicLink','values','set','string','has','length','toString','test','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','sha256','sort','8387934AuWodH','Skill\x20file\x20sha256\x20is\x20invalid:\x20','Unsafe\x20Skill\x20file\x20path:\x20','path','6282ZgslUs','1419UvCGLS','content','Skill\x20file\x20path\x20must\x20be\x20text.','81rgqYVn','isDirectory','push','startsWith','replace','Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20','size','isFile','object','Duplicate\x20Skill\x20file\x20path:\x20','bytes','toLowerCase'];a115_0x25ca=function(){return _0x3d3d59;};return a115_0x25ca();}export function fileText(_0x5e839a){const _0x216aba=a115_0xf30e;return fileContent(_0x5e839a)[_0x216aba(0xe0)]('utf8');}export function normalizeLocalFiles(_0x4b0ed4){const _0x117d01=a115_0xf30e;if(!Array[_0x117d01(0xd6)](_0x4b0ed4)||_0x4b0ed4[_0x117d01(0xdf)]===0x0)return[];const _0x3387cf=new Map();for(const _0x199965 of _0x4b0ed4){if(!_0x199965||typeof _0x199965!==_0x117d01(0xc6)||typeof _0x199965['path']!=='string')throw CliErrors['validation'](_0x117d01(0xed));const _0x53d0a7=normalizeSkillRelativePath(_0x199965[_0x117d01(0xe9)]);if(_0x3387cf[_0x117d01(0xde)](_0x53d0a7))throw CliErrors[_0x117d01(0xd1)](_0x117d01(0xc7)+_0x53d0a7);if(_0x199965[_0x117d01(0xc8)]!==undefined&&!Buffer[_0x117d01(0xd8)](_0x199965[_0x117d01(0xc8)]))throw CliErrors[_0x117d01(0xd1)](_0x117d01(0xe2)+_0x53d0a7);if(_0x199965[_0x117d01(0xc8)]===undefined&&typeof _0x199965['content']!==_0x117d01(0xdd))throw CliErrors['validation'](_0x117d01(0xf3)+_0x53d0a7);const _0x409c86=fileContent(_0x199965);_0x3387cf[_0x117d01(0xdc)](_0x53d0a7,{'path':_0x53d0a7,'bytes':_0x409c86});}return Array[_0x117d01(0xd2)](_0x3387cf[_0x117d01(0xdb)]())['sort'](compareSkillFiles);}export function normalizeManifestFiles(_0x1633c9){const _0x46da6a=a115_0xf30e;if(!Array['isArray'](_0x1633c9)||_0x1633c9[_0x46da6a(0xdf)]===0x0)return[];const _0x1e02e3=new Map();for(const _0x5f0a94 of _0x1633c9){if(!_0x5f0a94||typeof _0x5f0a94!==_0x46da6a(0xc6)||typeof _0x5f0a94['path']!=='string')throw CliErrors['validation']('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x395c61=normalizeSkillRelativePath(_0x5f0a94[_0x46da6a(0xe9)]);if(_0x1e02e3[_0x46da6a(0xde)](_0x395c61))throw CliErrors['validation'](_0x46da6a(0xc7)+_0x395c61);if(!isSha256Hex(_0x5f0a94['sha256']))throw CliErrors[_0x46da6a(0xd1)](_0x46da6a(0xe7)+_0x395c61);if(!Number[_0x46da6a(0xd3)](_0x5f0a94['size'])||_0x5f0a94[_0x46da6a(0xf4)]<0x0)throw CliErrors[_0x46da6a(0xd1)]('Skill\x20file\x20size\x20is\x20invalid:\x20'+_0x395c61);_0x1e02e3['set'](_0x395c61,{'path':_0x395c61,'sha256':_0x5f0a94[_0x46da6a(0xe4)][_0x46da6a(0xc9)](),'size':_0x5f0a94[_0x46da6a(0xf4)]});}return Array['from'](_0x1e02e3['values']())[_0x46da6a(0xe5)](compareSkillFiles);}export function scanSkillDirectory(_0x48d444,_0x55492f={}){const _0x4adce1=realpathSync(_0x48d444),_0x271500=canonicalExcludedFilePaths(_0x55492f['excludedFilePaths']),_0x40759c=[];function _0x397173(_0x5c5571){const _0xcb6a36=a115_0xf30e,_0x207fef=readdirSync(_0x5c5571,{'withFileTypes':!![]})['sort']((_0x46ddcb,_0x543b90)=>_0x46ddcb['name'][_0xcb6a36(0xcb)](_0x543b90[_0xcb6a36(0xd0)]));for(const _0x239e51 of _0x207fef){if(_0x239e51[_0xcb6a36(0xef)]()&&IGNORED_DIR_NAMES['has'](_0x239e51[_0xcb6a36(0xd0)]))continue;if(IGNORED_FILE_NAMES[_0xcb6a36(0xde)](_0x239e51[_0xcb6a36(0xd0)]))continue;const _0x7747b7=resolve(_0x5c5571,_0x239e51['name']);if(isExcludedFilePath(_0x7747b7,_0x271500))continue;if(_0x239e51[_0xcb6a36(0xda)]())throw CliErrors[_0xcb6a36(0xd1)](_0xcb6a36(0xe3)+_0x7747b7);const _0x23041a=toPosixPath(relative(_0x4adce1,_0x7747b7));if(_0x239e51[_0xcb6a36(0xef)]()){_0x397173(_0x7747b7);continue;}if(!_0x239e51[_0xcb6a36(0xc5)]())continue;validateSkillRelativePath(_0x23041a);const _0x38b067=readFileSync(_0x7747b7);_0x40759c[_0xcb6a36(0xf0)]({'path':_0x23041a,'bytes':_0x38b067});}}return _0x397173(_0x4adce1),normalizeLocalFiles(_0x40759c);}function canonicalExcludedFilePaths(_0x292e5e){const _0x2b98d2=new Set();for(const _0x40ae22 of _0x292e5e??[]){const _0x55248e=resolve(_0x40ae22);_0x2b98d2['add'](_0x55248e);try{_0x2b98d2['add'](realpathSync(_0x55248e));}catch{}}return _0x2b98d2;}function isExcludedFilePath(_0x571f81,_0x9b65e1){const _0x334ff2=a115_0xf30e;if(_0x9b65e1[_0x334ff2(0xde)](_0x571f81))return!![];if(_0x9b65e1[_0x334ff2(0xf4)]===0x0)return![];try{return _0x9b65e1['has'](realpathSync(_0x571f81));}catch{return![];}}export function compareSkillFiles(_0x1dd254,_0x340d77){const _0x49a51f=a115_0xf30e;if(_0x1dd254[_0x49a51f(0xe9)]===SKILL_FILE)return _0x340d77[_0x49a51f(0xe9)]===SKILL_FILE?0x0:-0x1;if(_0x340d77[_0x49a51f(0xe9)]===SKILL_FILE)return 0x1;return Buffer['compare'](Buffer[_0x49a51f(0xd2)](_0x1dd254[_0x49a51f(0xe9)],_0x49a51f(0xcf)),Buffer[_0x49a51f(0xd2)](_0x340d77[_0x49a51f(0xe9)],'utf8'));}export function normalizeSkillRelativePath(_0x1490af){const _0x147c76=toPosixPath(_0x1490af['trim']());return validateSkillRelativePath(_0x147c76),_0x147c76;}export function validateSkillRelativePath(_0x3c7c9c){const _0x3e49da=a115_0xf30e;if(!_0x3c7c9c||_0x3c7c9c[_0x3e49da(0xf1)]('/')||_0x3c7c9c[_0x3e49da(0xcc)]('//'))throw CliErrors[_0x3e49da(0xd1)](_0x3e49da(0xe8)+_0x3c7c9c);for(const _0x27c470 of _0x3c7c9c[_0x3e49da(0xca)]('/')){if(!_0x27c470||_0x27c470==='.'||_0x27c470==='..')throw CliErrors['validation'](_0x3e49da(0xe8)+_0x3c7c9c);}}export function toPosixPath(_0xd8cf4a){const _0x500caf=a115_0xf30e;return _0xd8cf4a[_0x500caf(0xf2)](/\\/g,'/');}function a115_0xf30e(_0x4a489f,_0x18026e){_0x4a489f=_0x4a489f-0xc5;const _0x25ca8d=a115_0x25ca();let _0xf30ec=_0x25ca8d[_0x4a489f];return _0xf30ec;}export function isSha256Hex(_0x5dd3d4){const _0x53bf20=a115_0xf30e;return typeof _0x5dd3d4===_0x53bf20(0xdd)&&/^[a-fA-F0-9]{64}$/[_0x53bf20(0xe1)](_0x5dd3d4);}
@@ -1 +1 @@
1
- (function(_0x3577ed,_0x3c062a){const _0x29036f=a114_0x5160,_0x438be2=_0x3577ed();while(!![]){try{const _0x3b3001=parseInt(_0x29036f(0x9a))/0x1+parseInt(_0x29036f(0xa3))/0x2+parseInt(_0x29036f(0xb6))/0x3*(-parseInt(_0x29036f(0x8f))/0x4)+-parseInt(_0x29036f(0x91))/0x5*(parseInt(_0x29036f(0xba))/0x6)+-parseInt(_0x29036f(0x99))/0x7*(parseInt(_0x29036f(0xa0))/0x8)+-parseInt(_0x29036f(0xac))/0x9*(-parseInt(_0x29036f(0xa1))/0xa)+parseInt(_0x29036f(0xb1))/0xb;if(_0x3b3001===_0x3c062a)break;else _0x438be2['push'](_0x438be2['shift']());}catch(_0x1d57ea){_0x438be2['push'](_0x438be2['shift']());}}}(a114_0x6460,0x6f372));function a114_0x6460(){const _0x45a4f1=['6odLVZM','flow','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.','set','---','errors','join','find','contents','replace','name','---\x0a','filter','6836zmPhtb','name:\x20','2673485AqJjNc','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20','Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20','path','accessKey','validation','Runtime\x20Skill\x20package\x20is\x20missing\x20','Managed\x20file\x20was\x20removed\x20locally:\x20','5948124IbMEBf','39039BzOvZG','appCode','slice','utf8','map','entries','8jddcmL','10oPEHCb','displayName','1697030LVQkuF','has','packageBytes','trim','length','skillName','toString','displayName:\x20','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','3029139edUuwc','keys','Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20','description','paths','12921535lXbxMN','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','fileHashes','contentHash','trimEnd','981VIkMIU','env','isFile','\x0a---\x0a\x0a'];a114_0x6460=function(){return _0x45a4f1;};return a114_0x6460();}import{existsSync,lstatSync,mkdirSync,readFileSync,rmSync}from'node:fs';import{dirname,resolve}from'node:path';import{isCollection,isMap,isNode,parseDocument,visit}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{resolveManagedFilePath,writeBytesAtomic,writeJsonAtomic}from'./fs-utils.js';import{bufferSha256,contentHash,fileHash}from'./hashing.js';import{fileContent,fileText,normalizeLocalFiles}from'./local-files.js';function a114_0x5160(_0x16473f,_0x57c357){_0x16473f=_0x16473f-0x8e;const _0x646038=a114_0x6460();let _0x516063=_0x646038[_0x16473f];return _0x516063;}import{buildMetadata,readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillDir}from'./paths.js';import{extractDownloadedPackage,requirePackageBytes}from'./zip-package.js';export function materializeRuntimeSkill(_0x2ed8d0,_0x48bc0c,_0x3d2230){const _0x5f4211=a114_0x5160,_0x23a216=requireSkillCode(_0x2ed8d0),_0x1a74d5=requirePackageBytes(_0x23a216,_0x3d2230[_0x5f4211(0xa5)]),_0x3c2284=extractDownloadedPackage(_0x1a74d5),_0x39a76d=_0x3c2284[_0x5f4211(0xc1)](_0x24eb87=>_0x24eb87[_0x5f4211(0x94)]===SKILL_FILE);if(!_0x39a76d)throw CliErrors['validation'](_0x5f4211(0x97)+SKILL_FILE+':\x20'+_0x23a216);const _0x4c248c=withMaterializedSkillFrontmatter(_0x3c2284,_0x2ed8d0,_0x23a216),_0x1c3a8f=_0x4c248c['find'](_0x11a742=>_0x11a742[_0x5f4211(0x94)]===SKILL_FILE),_0xf2aa7e=fileText(_0x1c3a8f),_0x1c22b3=getRuntimeSkillDir(_0x3d2230[_0x5f4211(0xb7)],_0x3d2230[_0x5f4211(0x95)],_0x3d2230[_0x5f4211(0x9b)],_0x48bc0c,_0x23a216,_0x3d2230[_0x5f4211(0xb0)]),_0x460752=resolve(_0x1c22b3,SKILL_FILE),_0x585458=resolve(_0x1c22b3,METADATA_FILE),_0x527177=contentHash(_0xf2aa7e),_0x8bf846=readMetadataIfPresent(_0x585458)?.[_0x5f4211(0xb3)];ensurePulledFilesCanBeOverwritten(_0x1c22b3,_0x585458,_0x4c248c,_0x3d2230['force']===!![]),mkdirSync(_0x1c22b3,{'recursive':!![],'mode':0x1c0});const _0x2c0539=existsSync(_0x460752)?readFileSync(_0x460752,_0x5f4211(0x9d)):undefined;return materializeFiles(_0x1c22b3,_0x4c248c),removeStaleManagedFiles(_0x1c22b3,_0x8bf846,_0x4c248c),writeJsonAtomic(_0x585458,buildMetadata(_0x2ed8d0,_0x48bc0c,_0x3d2230[_0x5f4211(0x9b)],_0x527177,_0x3d2230['pulledAt'],_0x4c248c,_0x1a74d5)),{'skill':_0x2ed8d0,'scope':_0x48bc0c,'dir':_0x1c22b3,'skillMdPath':_0x460752,'metadataPath':_0x585458,'contentHash':_0x527177,'changed':_0x2c0539!==_0xf2aa7e};}function withMaterializedSkillFrontmatter(_0x4f6e3a,_0x4f0632,_0x484393){const _0x3cbceb=a114_0x5160,_0x553e81=skillDisplayName(_0x4f0632,_0x484393),_0x501b7a=_0x4f0632[_0x3cbceb(0xaf)]?.['trim']()||_0x553e81||_0x484393;return normalizeLocalFiles(_0x4f6e3a)[_0x3cbceb(0x9e)](_0x272be0=>{const _0x27a52d=_0x3cbceb,_0x45620e=fileText(_0x272be0);if(_0x272be0['path']!==SKILL_FILE)return _0x272be0;if(hasYamlFrontmatter(_0x45620e))return{'path':_0x272be0[_0x27a52d(0x94)],'content':withSyncedDisplayName(_0x45620e,_0x553e81)};return{'path':_0x272be0[_0x27a52d(0x94)],'content':prependSkillFrontmatter(_0x45620e,{'name':_0x484393,'displayName':_0x553e81,'description':_0x501b7a})};});}function hasYamlFrontmatter(_0x58d83c){return/^\uFEFF?---\s*\r?\n/['test'](_0x58d83c);}function prependSkillFrontmatter(_0x43c30f,_0x19e4f8){const _0x42ff7c=a114_0x5160,_0x154ca7=_0x43c30f[_0x42ff7c(0xc3)](/^\uFEFF/,'');return['---',_0x42ff7c(0x90)+yamlString(_0x19e4f8[_0x42ff7c(0xc4)]),_0x19e4f8[_0x42ff7c(0xa2)]?_0x42ff7c(0xaa)+yamlString(_0x19e4f8[_0x42ff7c(0xa2)]):undefined,'description:\x20'+yamlString(_0x19e4f8[_0x42ff7c(0xaf)]),_0x42ff7c(0xbe),'',_0x154ca7][_0x42ff7c(0x8e)](_0x2c255c=>_0x2c255c!==undefined)[_0x42ff7c(0xc0)]('\x0a');}function yamlString(_0x330396){const _0x5cd924=a114_0x5160;return JSON['stringify'](_0x330396[_0x5cd924(0xc3)](/\r/g,'')[_0x5cd924(0xa6)]());}function skillDisplayName(_0x374613,_0x2da2db){const _0x17e259=a114_0x5160,_0x44396d=_0x374613[_0x17e259(0xa8)]?.[_0x17e259(0xa6)]();return _0x44396d||_0x2da2db;}function withSyncedDisplayName(_0x2763a9,_0x2deac2){const _0x4bf730=a114_0x5160,_0x3cce70=_0x2763a9['match'](/^(\uFEFF?)---\s*\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x3cce70)return _0x2763a9;const _0x532a54=_0x3cce70[0x1]??'',_0x4c676e=_0x3cce70[0x2]??'',_0x1f30ea=parseDocument(_0x4c676e);if(_0x1f30ea[_0x4bf730(0xbf)][_0x4bf730(0xa7)]>0x0||!isMap(_0x1f30ea['contents']))return _0x2763a9;if(_0x2deac2)_0x1f30ea[_0x4bf730(0xbd)](_0x4bf730(0xa2),_0x2deac2);else{if(_0x1f30ea[_0x4bf730(0xa4)](_0x4bf730(0xa2)))_0x1f30ea['delete'](_0x4bf730(0xa2));else return _0x2763a9;}forceBlockCollections(_0x1f30ea[_0x4bf730(0xc2)]);const _0x47feea=_0x1f30ea[_0x4bf730(0xa9)]({'lineWidth':0x0})[_0x4bf730(0xb5)](),_0x10e646=_0x2763a9[_0x4bf730(0x9c)](_0x3cce70[0x0]['length'])[_0x4bf730(0xc3)](/^\r?\n/,'');return _0x532a54+_0x4bf730(0xc5)+_0x47feea+_0x4bf730(0xb9)+_0x10e646;}function forceBlockCollections(_0x10dbd8){if(!isNode(_0x10dbd8))return;visit(_0x10dbd8,(_0x4e7c2e,_0x475501)=>{const _0x64ba92=a114_0x5160;isCollection(_0x475501)&&(_0x475501[_0x64ba92(0xbb)]=![]);});}function ensurePulledFilesCanBeOverwritten(_0x9ed722,_0x1e0b25,_0x307d13,_0x309aaf){const _0x499ffa=a114_0x5160;if(_0x309aaf||!existsSync(_0x1e0b25))return;const _0xe1d97=readMetadataIfPresent(_0x1e0b25);if(!_0xe1d97)return;const _0x4ccbb0=_0xe1d97[_0x499ffa(0xb3)]&&Object[_0x499ffa(0xad)](_0xe1d97[_0x499ffa(0xb3)])[_0x499ffa(0xa7)]>0x0?_0xe1d97[_0x499ffa(0xb3)]:undefined;if(_0x4ccbb0)for(const [_0xf6b675,_0x2c67a4]of Object[_0x499ffa(0x9f)](_0x4ccbb0)){const _0x4efbed=resolveManagedFilePath(_0x9ed722,_0xf6b675);if(!existsSync(_0x4efbed))throw CliErrors['validation'](_0x499ffa(0xab)+_0x9ed722,_0x499ffa(0x98)+_0xf6b675);const _0x47893f=lstatSync(_0x4efbed);if(!_0x47893f[_0x499ffa(0xb8)]())throw CliErrors[_0x499ffa(0x96)](_0x499ffa(0xab)+_0x9ed722,_0x499ffa(0x93)+_0xf6b675);const _0x292823=bufferSha256(readFileSync(_0x4efbed));if(_0x292823!==_0x2c67a4)throw CliErrors[_0x499ffa(0x96)](_0x499ffa(0xab)+_0x9ed722+'.\x20Changed\x20file:\x20'+_0xf6b675,_0x499ffa(0x92)+_0xf6b675);}else{const _0xb31692=resolve(_0x9ed722,SKILL_FILE);if(existsSync(_0xb31692)&&_0xe1d97[_0x499ffa(0xb4)]){const _0x1982d7=contentHash(readFileSync(_0xb31692,_0x499ffa(0x9d)));if(_0x1982d7!==_0xe1d97[_0x499ffa(0xb4)])throw CliErrors[_0x499ffa(0x96)]('Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20'+_0xb31692,_0x499ffa(0xbc));}}for(const _0xf33346 of normalizeLocalFiles(_0x307d13)){if(_0x4ccbb0?.[_0xf33346[_0x499ffa(0x94)]])continue;if(!_0x4ccbb0&&_0xf33346[_0x499ffa(0x94)]===SKILL_FILE)continue;const _0x595074=resolveManagedFilePath(_0x9ed722,_0xf33346[_0x499ffa(0x94)]);if(!existsSync(_0x595074))continue;const _0x136756=lstatSync(_0x595074);if(!_0x136756[_0x499ffa(0xb8)]())throw CliErrors[_0x499ffa(0x96)]('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x9ed722,_0x499ffa(0xae)+_0xf33346[_0x499ffa(0x94)]);const _0x5bee17=bufferSha256(readFileSync(_0x595074));if(_0x5bee17!==fileHash(_0xf33346))throw CliErrors[_0x499ffa(0x96)](_0x499ffa(0xab)+_0x9ed722,_0x499ffa(0xb2)+_0xf33346['path']);}}function materializeFiles(_0x204b5c,_0x2ab194){const _0x3d4fce=a114_0x5160;for(const _0x677f04 of normalizeLocalFiles(_0x2ab194)){const _0x1dea57=resolveManagedFilePath(_0x204b5c,_0x677f04[_0x3d4fce(0x94)]);mkdirSync(dirname(_0x1dea57),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0x1dea57,fileContent(_0x677f04),0x180);}}function removeStaleManagedFiles(_0x21b275,_0x5241ea,_0x5e3217){const _0x5e67d7=a114_0x5160;if(!_0x5241ea)return;const _0x3cc7c7=new Set(normalizeLocalFiles(_0x5e3217)[_0x5e67d7(0x9e)](_0x3edd9b=>_0x3edd9b['path']));for(const _0x548e2c of Object[_0x5e67d7(0xad)](_0x5241ea)){if(_0x3cc7c7['has'](_0x548e2c))continue;const _0x17fb4d=resolveManagedFilePath(_0x21b275,_0x548e2c);existsSync(_0x17fb4d)&&lstatSync(_0x17fb4d)[_0x5e67d7(0xb8)]()&&rmSync(_0x17fb4d,{'force':!![]});}}
1
+ (function(_0x5bf107,_0xf5a2a7){const _0x6c024a=a116_0x1bcb,_0x38410b=_0x5bf107();while(!![]){try{const _0x3b72c5=parseInt(_0x6c024a(0x1eb))/0x1+parseInt(_0x6c024a(0x1bd))/0x2*(parseInt(_0x6c024a(0x1bf))/0x3)+parseInt(_0x6c024a(0x1ef))/0x4+-parseInt(_0x6c024a(0x1dc))/0x5+parseInt(_0x6c024a(0x1ee))/0x6+-parseInt(_0x6c024a(0x1de))/0x7*(parseInt(_0x6c024a(0x1d8))/0x8)+parseInt(_0x6c024a(0x1c3))/0x9*(-parseInt(_0x6c024a(0x1c2))/0xa);if(_0x3b72c5===_0xf5a2a7)break;else _0x38410b['push'](_0x38410b['shift']());}catch(_0x4690ac){_0x38410b['push'](_0x38410b['shift']());}}}(a116_0x3b78,0x23653));import{existsSync,lstatSync,mkdirSync,readFileSync,rmSync}from'node:fs';import{dirname,resolve}from'node:path';import{isCollection,isMap,isNode,parseDocument,visit}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{resolveManagedFilePath,writeBytesAtomic,writeJsonAtomic}from'./fs-utils.js';import{bufferSha256,contentHash,fileHash}from'./hashing.js';import{fileContent,fileText,normalizeLocalFiles}from'./local-files.js';import{buildMetadata,readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillDir}from'./paths.js';import{extractDownloadedPackage,requirePackageBytes}from'./zip-package.js';export function materializeRuntimeSkill(_0x78e7ff,_0x4323e4,_0x34293c){const _0x17a551=a116_0x1bcb,_0x26ca56=requireSkillCode(_0x78e7ff),_0x2caccf=requirePackageBytes(_0x26ca56,_0x34293c[_0x17a551(0x1f0)]),_0xbec597=extractDownloadedPackage(_0x2caccf),_0x19dfd0=_0xbec597[_0x17a551(0x1cb)](_0x2ec3e2=>_0x2ec3e2[_0x17a551(0x1c9)]===SKILL_FILE);if(!_0x19dfd0)throw CliErrors[_0x17a551(0x1df)]('Runtime\x20Skill\x20package\x20is\x20missing\x20'+SKILL_FILE+':\x20'+_0x26ca56);const _0x35049a=withMaterializedSkillFrontmatter(_0xbec597,_0x78e7ff,_0x26ca56),_0x54b83b=_0x35049a[_0x17a551(0x1cb)](_0x55b9ef=>_0x55b9ef[_0x17a551(0x1c9)]===SKILL_FILE),_0x47f71e=fileText(_0x54b83b),_0x545107=getRuntimeSkillDir(_0x34293c[_0x17a551(0x1d3)],_0x34293c[_0x17a551(0x1cf)],_0x34293c[_0x17a551(0x1c6)],_0x4323e4,_0x26ca56,_0x34293c[_0x17a551(0x1d6)]),_0x5652d6=resolve(_0x545107,SKILL_FILE),_0x36aff9=resolve(_0x545107,METADATA_FILE),_0x3e7913=contentHash(_0x47f71e),_0x382a35=readMetadataIfPresent(_0x36aff9)?.['fileHashes'];ensurePulledFilesCanBeOverwritten(_0x545107,_0x36aff9,_0x35049a,_0x34293c[_0x17a551(0x1cc)]===!![]),mkdirSync(_0x545107,{'recursive':!![],'mode':0x1c0});const _0x3a398e=existsSync(_0x5652d6)?readFileSync(_0x5652d6,_0x17a551(0x1d0)):undefined;return materializeFiles(_0x545107,_0x35049a),removeStaleManagedFiles(_0x545107,_0x382a35,_0x35049a),writeJsonAtomic(_0x36aff9,buildMetadata(_0x78e7ff,_0x4323e4,_0x34293c[_0x17a551(0x1c6)],_0x3e7913,_0x34293c[_0x17a551(0x1f1)],_0x35049a,_0x2caccf)),{'skill':_0x78e7ff,'scope':_0x4323e4,'dir':_0x545107,'skillMdPath':_0x5652d6,'metadataPath':_0x36aff9,'contentHash':_0x3e7913,'changed':_0x3a398e!==_0x47f71e};}function withMaterializedSkillFrontmatter(_0x27152a,_0x2ec475,_0x2beb48){const _0x346208=a116_0x1bcb,_0x4cc312=skillDisplayName(_0x2ec475,_0x2beb48),_0x56f98b=_0x2ec475[_0x346208(0x1ce)]?.['trim']()||_0x4cc312||_0x2beb48;return normalizeLocalFiles(_0x27152a)[_0x346208(0x1d2)](_0x2d2210=>{const _0x569f5b=_0x346208,_0x4f8498=fileText(_0x2d2210);if(_0x2d2210['path']!==SKILL_FILE)return _0x2d2210;if(hasYamlFrontmatter(_0x4f8498))return{'path':_0x2d2210[_0x569f5b(0x1c9)],'content':withSyncedDisplayName(_0x4f8498,_0x4cc312)};return{'path':_0x2d2210[_0x569f5b(0x1c9)],'content':prependSkillFrontmatter(_0x4f8498,{'name':_0x2beb48,'displayName':_0x4cc312,'description':_0x56f98b})};});}function hasYamlFrontmatter(_0x30f8be){const _0x58c29f=a116_0x1bcb;return/^\uFEFF?---\s*\r?\n/[_0x58c29f(0x1f6)](_0x30f8be);}function prependSkillFrontmatter(_0x42261b,_0x346731){const _0x1dcf02=a116_0x1bcb,_0x7d20b6=_0x42261b[_0x1dcf02(0x1dd)](/^\uFEFF/,'');return['---',_0x1dcf02(0x1c4)+yamlString(_0x346731['name']),_0x346731[_0x1dcf02(0x1e9)]?_0x1dcf02(0x1e3)+yamlString(_0x346731[_0x1dcf02(0x1e9)]):undefined,_0x1dcf02(0x1c8)+yamlString(_0x346731['description']),_0x1dcf02(0x1e4),'',_0x7d20b6][_0x1dcf02(0x1d5)](_0x45ba0f=>_0x45ba0f!==undefined)[_0x1dcf02(0x1e2)]('\x0a');}function yamlString(_0xce511c){const _0x53078e=a116_0x1bcb;return JSON[_0x53078e(0x1ca)](_0xce511c[_0x53078e(0x1dd)](/\r/g,'')[_0x53078e(0x1cd)]());}function skillDisplayName(_0x571fb2,_0x559f2d){const _0x4cb2a1=a116_0x1bcb,_0xffc7e3=_0x571fb2[_0x4cb2a1(0x1e5)]?.[_0x4cb2a1(0x1cd)]();return _0xffc7e3||_0x559f2d;}function withSyncedDisplayName(_0x475fe8,_0x5d3873){const _0x3bdf77=a116_0x1bcb,_0x4ee364=_0x475fe8[_0x3bdf77(0x1e0)](/^(\uFEFF?)---\s*\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x4ee364)return _0x475fe8;const _0x730f13=_0x4ee364[0x1]??'',_0x1eec6a=_0x4ee364[0x2]??'',_0xe52956=parseDocument(_0x1eec6a);if(_0xe52956[_0x3bdf77(0x1d9)][_0x3bdf77(0x1db)]>0x0||!isMap(_0xe52956[_0x3bdf77(0x1bb)]))return _0x475fe8;if(_0x5d3873)_0xe52956[_0x3bdf77(0x1e7)](_0x3bdf77(0x1e9),_0x5d3873);else{if(_0xe52956[_0x3bdf77(0x1ec)](_0x3bdf77(0x1e9)))_0xe52956[_0x3bdf77(0x1ed)]('displayName');else return _0x475fe8;}forceBlockCollections(_0xe52956[_0x3bdf77(0x1bb)]);const _0x47bc0a=_0xe52956[_0x3bdf77(0x1e6)]({'lineWidth':0x0})[_0x3bdf77(0x1d1)](),_0x4ad306=_0x475fe8[_0x3bdf77(0x1da)](_0x4ee364[0x0][_0x3bdf77(0x1db)])[_0x3bdf77(0x1dd)](/^\r?\n/,'');return _0x730f13+_0x3bdf77(0x1f5)+_0x47bc0a+_0x3bdf77(0x1ba)+_0x4ad306;}function forceBlockCollections(_0x4676be){if(!isNode(_0x4676be))return;visit(_0x4676be,(_0x15406f,_0x1f2a33)=>{const _0xfd0754=a116_0x1bcb;isCollection(_0x1f2a33)&&(_0x1f2a33[_0xfd0754(0x1bc)]=![]);});}function a116_0x1bcb(_0xff7f3b,_0x201f64){_0xff7f3b=_0xff7f3b-0x1ba;const _0x3b78ae=a116_0x3b78();let _0x1bcbcd=_0x3b78ae[_0xff7f3b];return _0x1bcbcd;}function ensurePulledFilesCanBeOverwritten(_0x4b9bdc,_0x39f3e4,_0xea4fae,_0x49f2f7){const _0x3f6772=a116_0x1bcb;if(_0x49f2f7||!existsSync(_0x39f3e4))return;const _0x142869=readMetadataIfPresent(_0x39f3e4);if(!_0x142869)return;const _0x419dcc=_0x142869[_0x3f6772(0x1c1)]&&Object[_0x3f6772(0x1be)](_0x142869['fileHashes'])[_0x3f6772(0x1db)]>0x0?_0x142869[_0x3f6772(0x1c1)]:undefined;if(_0x419dcc)for(const [_0x3d4e0b,_0x2c75dc]of Object[_0x3f6772(0x1c0)](_0x419dcc)){const _0x492d95=resolveManagedFilePath(_0x4b9bdc,_0x3d4e0b);if(!existsSync(_0x492d95))throw CliErrors[_0x3f6772(0x1df)](_0x3f6772(0x1f3)+_0x4b9bdc,_0x3f6772(0x1e8)+_0x3d4e0b);const _0x566f1e=lstatSync(_0x492d95);if(!_0x566f1e[_0x3f6772(0x1d4)]())throw CliErrors['validation']('Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20'+_0x4b9bdc,_0x3f6772(0x1d7)+_0x3d4e0b);const _0x46e27b=bufferSha256(readFileSync(_0x492d95));if(_0x46e27b!==_0x2c75dc)throw CliErrors[_0x3f6772(0x1df)](_0x3f6772(0x1f3)+_0x4b9bdc+_0x3f6772(0x1f2)+_0x3d4e0b,'Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.\x20Changed\x20file:\x20'+_0x3d4e0b);}else{const _0x5b34e4=resolve(_0x4b9bdc,SKILL_FILE);if(existsSync(_0x5b34e4)&&_0x142869[_0x3f6772(0x1ea)]){const _0xa43e11=contentHash(readFileSync(_0x5b34e4,_0x3f6772(0x1d0)));if(_0xa43e11!==_0x142869['contentHash'])throw CliErrors[_0x3f6772(0x1df)](_0x3f6772(0x1e1)+_0x5b34e4,_0x3f6772(0x1f4));}}for(const _0x26e255 of normalizeLocalFiles(_0xea4fae)){if(_0x419dcc?.[_0x26e255[_0x3f6772(0x1c9)]])continue;if(!_0x419dcc&&_0x26e255[_0x3f6772(0x1c9)]===SKILL_FILE)continue;const _0x3f2861=resolveManagedFilePath(_0x4b9bdc,_0x26e255[_0x3f6772(0x1c9)]);if(!existsSync(_0x3f2861))continue;const _0x1ba87c=lstatSync(_0x3f2861);if(!_0x1ba87c[_0x3f6772(0x1d4)]())throw CliErrors['validation'](_0x3f6772(0x1f3)+_0x4b9bdc,_0x3f6772(0x1c5)+_0x26e255[_0x3f6772(0x1c9)]);const _0x1b7deb=bufferSha256(readFileSync(_0x3f2861));if(_0x1b7deb!==fileHash(_0x26e255))throw CliErrors[_0x3f6772(0x1df)](_0x3f6772(0x1f3)+_0x4b9bdc,_0x3f6772(0x1c7)+_0x26e255['path']);}}function a116_0x3b78(){const _0x165de3=['slice','length','1129020WTeqjy','replace','7ToFOxD','validation','match','Local\x20SKILL.md\x20has\x20unpushed\x20edits:\x20','join','displayName:\x20','---','skillName','toString','set','Managed\x20file\x20was\x20removed\x20locally:\x20','displayName','contentHash','82279yMmzNn','has','delete','1488720iAVXen','713424rhhJBp','packageBytes','pulledAt','.\x20Changed\x20file:\x20','Local\x20Skill\x20files\x20have\x20unpushed\x20edits:\x20','Push\x20the\x20directory\x20first,\x20then\x20rerun\x20skill\x20install.','---\x0a','test','\x0a---\x0a\x0a','contents','flow','226AVfHIf','keys','5613BxoTal','entries','fileHashes','25870YzTJfT','819UeKvLX','name:\x20','Remote\x20Skill\x20would\x20overwrite\x20a\x20local\x20non-file\x20path:\x20','appCode','Remote\x20Skill\x20would\x20overwrite\x20an\x20unmanaged\x20local\x20file:\x20','description:\x20','path','stringify','find','force','trim','description','accessKey','utf8','trimEnd','map','env','isFile','filter','paths','Managed\x20file\x20is\x20no\x20longer\x20a\x20regular\x20file:\x20','911824dXYXAX','errors'];a116_0x3b78=function(){return _0x165de3;};return a116_0x3b78();}function materializeFiles(_0x2f6700,_0x1184b3){for(const _0x118afa of normalizeLocalFiles(_0x1184b3)){const _0x2a2045=resolveManagedFilePath(_0x2f6700,_0x118afa['path']);mkdirSync(dirname(_0x2a2045),{'recursive':!![],'mode':0x1c0}),writeBytesAtomic(_0x2a2045,fileContent(_0x118afa),0x180);}}function removeStaleManagedFiles(_0x17a679,_0x487f8b,_0x213998){const _0x2e22c9=a116_0x1bcb;if(!_0x487f8b)return;const _0x2b5f29=new Set(normalizeLocalFiles(_0x213998)['map'](_0x5471f8=>_0x5471f8[_0x2e22c9(0x1c9)]));for(const _0x42589e of Object['keys'](_0x487f8b)){if(_0x2b5f29[_0x2e22c9(0x1ec)](_0x42589e))continue;const _0x3a8b50=resolveManagedFilePath(_0x17a679,_0x42589e);existsSync(_0x3a8b50)&&lstatSync(_0x3a8b50)[_0x2e22c9(0x1d4)]()&&rmSync(_0x3a8b50,{'force':!![]});}}
@@ -1 +1 @@
1
- (function(_0x37a6a6,_0x528f0d){const _0x196331=a115_0x3b90,_0x55214c=_0x37a6a6();while(!![]){try{const _0x47425f=parseInt(_0x196331(0x103))/0x1*(parseInt(_0x196331(0xfa))/0x2)+parseInt(_0x196331(0xf5))/0x3*(-parseInt(_0x196331(0x10a))/0x4)+parseInt(_0x196331(0x112))/0x5+-parseInt(_0x196331(0xfd))/0x6*(-parseInt(_0x196331(0x10c))/0x7)+parseInt(_0x196331(0x105))/0x8*(parseInt(_0x196331(0x104))/0x9)+parseInt(_0x196331(0xfb))/0xa+-parseInt(_0x196331(0x116))/0xb*(parseInt(_0x196331(0x115))/0xc);if(_0x47425f===_0x528f0d)break;else _0x55214c['push'](_0x55214c['shift']());}catch(_0x101998){_0x55214c['push'](_0x55214c['shift']());}}}(a115_0x253b,0x47d38));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';function a115_0x3b90(_0x510feb,_0x4f44c5){_0x510feb=_0x510feb-0xf5;const _0x253bef=a115_0x253b();let _0x3b90e7=_0x253bef[_0x510feb];return _0x3b90e7;}import{buildSkillPackage,localFilesToManifestFiles}from'./zip-package.js';export function buildMetadata(_0x455dbb,_0x5f14ef,_0x26b2f7,_0x43743d,_0x14fb6b,_0x5ee133,_0x4d58b5){const _0x22535a=a115_0x3b90,_0x360c91=_0x5ee133?normalizeLocalFiles(_0x5ee133):[],_0x262890=!_0x4d58b5&&_0x360c91[_0x22535a(0x102)]>0x0?buildSkillPackage(_0x360c91):undefined,_0x5338ff=_0x4d58b5?bufferSha256(_0x4d58b5):_0x262890?.[_0x22535a(0x111)][_0x22535a(0x110)],_0x5e7d20=_0x4d58b5?.[_0x22535a(0x102)]??_0x262890?.[_0x22535a(0x111)]['zipSize'],_0x241bcb=_0x360c91[_0x22535a(0x102)]>0x0?Object['fromEntries'](_0x360c91[_0x22535a(0x107)](_0x2aece1=>[_0x2aece1[_0x22535a(0x101)],fileHash(_0x2aece1)])):undefined;return{'schemaVersion':_0x360c91[_0x22535a(0x102)]>0x0?0x2:0x1,'id':_0x455dbb['id'],'appCode':_0x26b2f7,'skillCode':requireSkillCode(_0x455dbb),'skillName':_0x455dbb[_0x22535a(0xf8)],'description':_0x455dbb[_0x22535a(0x119)],'scope':_0x5f14ef,'readonly':_0x5f14ef!==_0x22535a(0x117)||_0x455dbb['readonly']===!![],'tenantCode':_0x455dbb[_0x22535a(0xfe)],'userId':_0x455dbb[_0x22535a(0xff)],'version':_0x455dbb['version'],'status':_0x455dbb[_0x22535a(0x108)],'tags':Array[_0x22535a(0x100)](_0x455dbb['tags'])?_0x455dbb['tags']:[],'hasUpstreamUpdate':_0x455dbb[_0x22535a(0x10f)],'forkedFromSkillId':_0x455dbb[_0x22535a(0x10e)],'forkedFromVersion':_0x455dbb[_0x22535a(0x113)],'sourceSessionId':_0x455dbb[_0x22535a(0x10d)],'contentHash':_0x43743d,'fileHashes':_0x241bcb,'treeHash':_0x360c91['length']>0x0?fileTreeHash(localFilesToManifestFiles(_0x360c91)):undefined,'ossPath':remoteManifestOssPath(_0x455dbb[_0x22535a(0xf9)]),'zipSha256':_0x5338ff,'zipSize':_0x5e7d20,'files':_0x360c91[_0x22535a(0x102)]>0x0?_0x360c91[_0x22535a(0x107)](_0x2dc06e=>({'path':_0x2dc06e[_0x22535a(0x101)],'hash':fileHash(_0x2dc06e),'size':fileContent(_0x2dc06e)['length']})):undefined,'pulledAt':_0x14fb6b??new Date()[_0x22535a(0x118)]()};}function a115_0x253b(){const _0x23fb49=['description','3cBZhJD','utf8','object','skillName','files','240010uMXSXx','5113720jCaoGs','skillCode','6HLDZCG','tenantCode','userId','isArray','path','length','3hubWPI','508347jejLdd','64fIaJvW','trim','map','status','validation','988772cDNsFq','ossPath','3350571cuiBDP','sourceSessionId','forkedFromSkillId','hasUpstreamUpdate','zipSha256','manifest','1968820KRpzcG','forkedFromVersion','parse','60eXkGuO','3639405SUFUMu','personal','toISOString'];a115_0x253b=function(){return _0x23fb49;};return a115_0x253b();}export function requireSkillCode(_0x35b41d){const _0x15ecbb=a115_0x3b90,_0x47038b=_0x35b41d[_0x15ecbb(0xfc)]?.['trim']();if(!_0x47038b)throw CliErrors[_0x15ecbb(0x109)]('Runtime\x20Skill\x20is\x20missing\x20skillCode.');return _0x47038b;}export function readMetadataIfPresent(_0x29f72f){const _0x5d86ba=a115_0x3b90;if(!existsSync(_0x29f72f))return undefined;try{const _0x5d1e04=JSON[_0x5d86ba(0x114)](readFileSync(_0x29f72f,_0x5d86ba(0xf6)));return _0x5d1e04;}catch{throw CliErrors['validation']('Invalid\x20'+METADATA_FILE+':\x20'+_0x29f72f);}}function remoteManifestOssPath(_0x58c60a){const _0xb2896f=a115_0x3b90;if(!_0x58c60a||typeof _0x58c60a!==_0xb2896f(0xf7)||Array['isArray'](_0x58c60a))return undefined;const _0x310a21=_0x58c60a[_0xb2896f(0x10b)];return typeof _0x310a21==='string'&&_0x310a21[_0xb2896f(0x106)]()?_0x310a21[_0xb2896f(0x106)]():undefined;}
1
+ function a117_0x49d2(){const _0x4ec1df=['validation','parse','6095824tQDgnY','hasUpstreamUpdate','105600rITCnL','Invalid\x20','manifest','isArray','skillName','string','80171AafnTS','993756kXeQcB','skillCode','822831jzuTzD','3834hIxHOb','description','readonly','map','sourceSessionId','129951RYYKdm','files','forkedFromSkillId','Runtime\x20Skill\x20is\x20missing\x20skillCode.','path','toISOString','length','trim','version','tenantCode','userId','fromEntries','1160eLRsZW','object'];a117_0x49d2=function(){return _0x4ec1df;};return a117_0x49d2();}(function(_0x2b4b87,_0x4e2ce8){const _0x4ffdfb=a117_0x3156,_0x145277=_0x2b4b87();while(!![]){try{const _0xcd361c=parseInt(_0x4ffdfb(0x111))/0x1+-parseInt(_0x4ffdfb(0x12a))/0x2+-parseInt(_0x4ffdfb(0x12c))/0x3+-parseInt(_0x4ffdfb(0x123))/0x4+-parseInt(_0x4ffdfb(0x11d))/0x5*(-parseInt(_0x4ffdfb(0x12d))/0x6)+parseInt(_0x4ffdfb(0x129))/0x7+parseInt(_0x4ffdfb(0x121))/0x8;if(_0xcd361c===_0x4e2ce8)break;else _0x145277['push'](_0x145277['shift']());}catch(_0x3a6aa3){_0x145277['push'](_0x145277['shift']());}}}(a117_0x49d2,0x3e07b));import{existsSync,readFileSync}from'node:fs';function a117_0x3156(_0xf5614f,_0x5b97a7){_0xf5614f=_0xf5614f-0x111;const _0x49d2c3=a117_0x49d2();let _0x315620=_0x49d2c3[_0xf5614f];return _0x315620;}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(_0x1ffefa,_0x3bbc35,_0x88d739,_0x233adc,_0x450571,_0x523424,_0x4f3b02){const _0x59e26e=a117_0x3156,_0x54046d=_0x523424?normalizeLocalFiles(_0x523424):[],_0x882490=!_0x4f3b02&&_0x54046d[_0x59e26e(0x117)]>0x0?buildSkillPackage(_0x54046d):undefined,_0x44bd87=_0x4f3b02?bufferSha256(_0x4f3b02):_0x882490?.[_0x59e26e(0x125)]['zipSha256'],_0x5a16b7=_0x4f3b02?.[_0x59e26e(0x117)]??_0x882490?.[_0x59e26e(0x125)]['zipSize'],_0x3bdd8a=_0x54046d[_0x59e26e(0x117)]>0x0?Object[_0x59e26e(0x11c)](_0x54046d[_0x59e26e(0x130)](_0x3532e7=>[_0x3532e7[_0x59e26e(0x115)],fileHash(_0x3532e7)])):undefined;return{'schemaVersion':_0x54046d[_0x59e26e(0x117)]>0x0?0x2:0x1,'id':_0x1ffefa['id'],'appCode':_0x88d739,'skillCode':requireSkillCode(_0x1ffefa),'skillName':_0x1ffefa[_0x59e26e(0x127)],'description':_0x1ffefa[_0x59e26e(0x12e)],'scope':_0x3bbc35,'readonly':_0x3bbc35!=='personal'||_0x1ffefa[_0x59e26e(0x12f)]===!![],'tenantCode':_0x1ffefa[_0x59e26e(0x11a)],'userId':_0x1ffefa[_0x59e26e(0x11b)],'version':_0x1ffefa[_0x59e26e(0x119)],'status':_0x1ffefa['status'],'tags':Array[_0x59e26e(0x126)](_0x1ffefa['tags'])?_0x1ffefa['tags']:[],'hasUpstreamUpdate':_0x1ffefa[_0x59e26e(0x122)],'forkedFromSkillId':_0x1ffefa[_0x59e26e(0x113)],'forkedFromVersion':_0x1ffefa['forkedFromVersion'],'sourceSessionId':_0x1ffefa[_0x59e26e(0x131)],'contentHash':_0x233adc,'fileHashes':_0x3bdd8a,'treeHash':_0x54046d[_0x59e26e(0x117)]>0x0?fileTreeHash(localFilesToManifestFiles(_0x54046d)):undefined,'ossPath':remoteManifestOssPath(_0x1ffefa[_0x59e26e(0x112)]),'zipSha256':_0x44bd87,'zipSize':_0x5a16b7,'files':_0x54046d[_0x59e26e(0x117)]>0x0?_0x54046d['map'](_0xe202d6=>({'path':_0xe202d6[_0x59e26e(0x115)],'hash':fileHash(_0xe202d6),'size':fileContent(_0xe202d6)[_0x59e26e(0x117)]})):undefined,'pulledAt':_0x450571??new Date()[_0x59e26e(0x116)]()};}export function requireSkillCode(_0x21dedc){const _0x118eb0=a117_0x3156,_0x53f105=_0x21dedc[_0x118eb0(0x12b)]?.[_0x118eb0(0x118)]();if(!_0x53f105)throw CliErrors['validation'](_0x118eb0(0x114));return _0x53f105;}export function readMetadataIfPresent(_0x2292d9){const _0x396100=a117_0x3156;if(!existsSync(_0x2292d9))return undefined;try{const _0x44874c=JSON[_0x396100(0x120)](readFileSync(_0x2292d9,'utf8'));return _0x44874c;}catch{throw CliErrors[_0x396100(0x11f)](_0x396100(0x124)+METADATA_FILE+':\x20'+_0x2292d9);}}function remoteManifestOssPath(_0x20987c){const _0x4f2c1a=a117_0x3156;if(!_0x20987c||typeof _0x20987c!==_0x4f2c1a(0x11e)||Array[_0x4f2c1a(0x126)](_0x20987c))return undefined;const _0x13d9a8=_0x20987c['ossPath'];return typeof _0x13d9a8===_0x4f2c1a(0x128)&&_0x13d9a8[_0x4f2c1a(0x118)]()?_0x13d9a8[_0x4f2c1a(0x118)]():undefined;}
@@ -1 +1 @@
1
- const a116_0x19bda2=a116_0x34f2;function a116_0x34f2(_0x3d34b0,_0x4db176){_0x3d34b0=_0x3d34b0-0x1a6;const _0x490cb1=a116_0x490c();let _0x34f273=_0x490cb1[_0x3d34b0];return _0x34f273;}(function(_0x40ef44,_0x34560b){const _0x6e0531=a116_0x34f2,_0x2fed25=_0x40ef44();while(!![]){try{const _0x15cb69=-parseInt(_0x6e0531(0x1b2))/0x1+parseInt(_0x6e0531(0x1a7))/0x2+-parseInt(_0x6e0531(0x1a9))/0x3*(parseInt(_0x6e0531(0x1c0))/0x4)+-parseInt(_0x6e0531(0x1bf))/0x5+parseInt(_0x6e0531(0x1b9))/0x6*(parseInt(_0x6e0531(0x1af))/0x7)+parseInt(_0x6e0531(0x1c1))/0x8+-parseInt(_0x6e0531(0x1bb))/0x9;if(_0x15cb69===_0x34560b)break;else _0x2fed25['push'](_0x2fed25['shift']());}catch(_0x42e3ad){_0x2fed25['push'](_0x2fed25['shift']());}}}(a116_0x490c,0x71116));import{existsSync}from'node:fs';import{homedir}from'node:os';import{resolve}from'node:path';function a116_0x490c(){const _0x2aa42f=['agentsSkillsDir','2563825sHTQmG','356HRKnjA','2252992DbLhck','path\x20segment','claudeSkillsDir','815148ltgWlc','.claude','3681aEICMI','\x20for\x20local\x20path:\x20','Unsafe\x20','validation','cacheRoot','trim','6178144TXQhoT','appCode','filter','297370rYBVlr','homeDir','homeDirName','cache','includes','skills','.agents','6aLsfao','skillCode','1703934LXJwoK','SKILL_ROOT','workbuddySkillsDir'];a116_0x490c=function(){return _0x2aa42f;};return a116_0x490c();}import{fingerprintAccessKey}from'../../commands/app/cache.js';import{PRODUCT_CONFIG,productEnv}from'../../constant/product.js';import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0x26adfd={}){const _0x354b34=a116_0x34f2,_0x25dc09=_0x26adfd[_0x354b34(0x1b3)]??homedir(),_0x5ca2fa=resolve(_0x25dc09,PRODUCT_CONFIG[_0x354b34(0x1b4)],_0x354b34(0x1b5)),_0x31004c=trimmedEnv(_0x354b34(0x1bc)),_0x2bc4a6=trimmedEnv('CLAUDE_SKILL_ROOT'),_0x2961f9=resolve(_0x25dc09,'.workbuddy'),_0x52e9d9=_0x26adfd['workbuddySkillsDir']??(existsSync(_0x2961f9)?resolve(_0x2961f9,_0x354b34(0x1b7)):undefined);return{'homeDir':_0x25dc09,'cacheRoot':_0x5ca2fa,'managedRoot':resolve(_0x25dc09,PRODUCT_CONFIG[_0x354b34(0x1b4)]),'agentsSkillsDir':_0x26adfd[_0x354b34(0x1be)]??_0x31004c??resolve(_0x25dc09,_0x354b34(0x1b8),_0x354b34(0x1b7)),'claudeSkillsDir':_0x26adfd['claudeSkillsDir']??_0x2bc4a6??resolve(_0x25dc09,_0x354b34(0x1a8),_0x354b34(0x1b7)),'workbuddySkillsDir':_0x52e9d9};}export function runtimeAgentSkillRoots(_0x2ef032){const _0x523125=a116_0x34f2;return[_0x2ef032[_0x523125(0x1be)],_0x2ef032[_0x523125(0x1a6)],_0x2ef032[_0x523125(0x1bd)]][_0x523125(0x1b1)](_0x530fbe=>Boolean(_0x530fbe));}export function getRuntimeSkillCacheRoot(_0x364fda,_0x3718dd,_0x3e5b7e={}){const _0x32983b=a116_0x34f2,_0x2bbf1d=resolveSkillSyncPaths(_0x3e5b7e);return resolve(_0x2bbf1d[_0x32983b(0x1ad)],_0x364fda,fingerprintAccessKey(_0x3718dd),_0x32983b(0x1b7));}export function getRuntimeSkillDir(_0x27bf0c,_0x400afe,_0x17fa78,_0x5ba9f4,_0x2ee1e3,_0x2cda0e={}){const _0x1ae76c=a116_0x34f2;return resolve(getRuntimeSkillCacheRoot(_0x27bf0c,_0x400afe,_0x2cda0e),safePathSegment(_0x17fa78,_0x1ae76c(0x1b0)),_0x5ba9f4,safePathSegment(_0x2ee1e3,_0x1ae76c(0x1ba)));}export function safePathSegment(_0x5dd16e,_0x525c7f=a116_0x19bda2(0x1c2)){const _0x1728a1=a116_0x19bda2;if(!_0x5dd16e||_0x5dd16e[_0x1728a1(0x1b6)]('/')||_0x5dd16e[_0x1728a1(0x1b6)]('\x5c')||_0x5dd16e['includes']('..'))throw CliErrors[_0x1728a1(0x1ac)](_0x1728a1(0x1ab)+_0x525c7f+_0x1728a1(0x1aa)+_0x5dd16e);return _0x5dd16e;}function trimmedEnv(_0x2ed962){const _0x590912=a116_0x19bda2,_0x18d779=productEnv(_0x2ed962)?.[_0x590912(0x1ae)]();return _0x18d779?_0x18d779:undefined;}
1
+ const a118_0x52f001=a118_0x1b05;(function(_0x4f337a,_0x5e6215){const _0x18235d=a118_0x1b05,_0x2fbf77=_0x4f337a();while(!![]){try{const _0x1ef5b6=parseInt(_0x18235d(0xee))/0x1*(parseInt(_0x18235d(0xe9))/0x2)+parseInt(_0x18235d(0xed))/0x3*(parseInt(_0x18235d(0x106))/0x4)+-parseInt(_0x18235d(0x105))/0x5+parseInt(_0x18235d(0xfd))/0x6*(parseInt(_0x18235d(0xe8))/0x7)+-parseInt(_0x18235d(0xe7))/0x8*(parseInt(_0x18235d(0x107))/0x9)+parseInt(_0x18235d(0xf5))/0xa*(-parseInt(_0x18235d(0xf4))/0xb)+-parseInt(_0x18235d(0xf7))/0xc*(-parseInt(_0x18235d(0xf0))/0xd);if(_0x1ef5b6===_0x5e6215)break;else _0x2fbf77['push'](_0x2fbf77['shift']());}catch(_0x339c5f){_0x2fbf77['push'](_0x2fbf77['shift']());}}}(a118_0x6917,0x65aa5));import{existsSync}from'node:fs';import{homedir}from'node:os';import{resolve}from'node:path';import{fingerprintAccessKey}from'../../commands/app/cache.js';import{PRODUCT_CONFIG,productEnv}from'../../constant/product.js';import{CliErrors}from'../../errors.js';export function resolveSkillSyncPaths(_0xaa48eb={}){const _0x3b0722=a118_0x1b05,_0x28d175=_0xaa48eb[_0x3b0722(0x103)]??homedir(),_0x483012=resolve(_0x28d175,PRODUCT_CONFIG[_0x3b0722(0xeb)],_0x3b0722(0x102)),_0x199266=trimmedEnv(_0x3b0722(0xf3)),_0x5c5ac1=trimmedEnv(_0x3b0722(0xff)),_0x55d22b=resolve(_0x28d175,'.workbuddy'),_0x4033bd=_0xaa48eb['workbuddySkillsDir']??(existsSync(_0x55d22b)?resolve(_0x55d22b,_0x3b0722(0xfe)):undefined);return{'homeDir':_0x28d175,'cacheRoot':_0x483012,'managedRoot':resolve(_0x28d175,PRODUCT_CONFIG[_0x3b0722(0xeb)]),'agentsSkillsDir':_0xaa48eb[_0x3b0722(0x104)]??_0x199266??resolve(_0x28d175,_0x3b0722(0xf2),'skills'),'claudeSkillsDir':_0xaa48eb['claudeSkillsDir']??_0x5c5ac1??resolve(_0x28d175,'.claude',_0x3b0722(0xfe)),'workbuddySkillsDir':_0x4033bd};}export function runtimeAgentSkillRoots(_0x1916ff){const _0x52331e=a118_0x1b05;return[_0x1916ff['agentsSkillsDir'],_0x1916ff[_0x52331e(0xea)],_0x1916ff[_0x52331e(0xf8)]][_0x52331e(0xfc)](_0x2d0545=>Boolean(_0x2d0545));}function a118_0x6917(){const _0x5552e0=['84tJYAPD','1hCaFMH','path\x20segment','40300XmINYz','trim','.agents','SKILL_ROOT','11pZonRP','363890dxrgAk','\x20for\x20local\x20path:\x20','996lWiRyJ','workbuddySkillsDir','Unsafe\x20','appCode','skillCode','filter','526368VcdBAb','skills','CLAUDE_SKILL_ROOT','validation','cacheRoot','cache','homeDir','agentsSkillsDir','2615515NPoznj','43376pIkWUd','40482pDNUfl','216PDZppP','35FYAZYm','195574WEjFQp','claudeSkillsDir','homeDirName','includes'];a118_0x6917=function(){return _0x5552e0;};return a118_0x6917();}export function getRuntimeSkillCacheRoot(_0x53eb19,_0xf7686c,_0xf846c={}){const _0x16e65a=a118_0x1b05,_0x289732=resolveSkillSyncPaths(_0xf846c);return resolve(_0x289732[_0x16e65a(0x101)],_0x53eb19,fingerprintAccessKey(_0xf7686c),'skills');}export function getRuntimeSkillDir(_0x2f4ec4,_0x1c2d92,_0x55eed1,_0x3c966a,_0x581ab5,_0x50f853={}){const _0xce6f99=a118_0x1b05;return resolve(getRuntimeSkillCacheRoot(_0x2f4ec4,_0x1c2d92,_0x50f853),safePathSegment(_0x55eed1,_0xce6f99(0xfa)),_0x3c966a,safePathSegment(_0x581ab5,_0xce6f99(0xfb)));}export function safePathSegment(_0x2a2a7f,_0x5507aa=a118_0x52f001(0xef)){const _0x5c9d45=a118_0x52f001;if(!_0x2a2a7f||_0x2a2a7f['includes']('/')||_0x2a2a7f['includes']('\x5c')||_0x2a2a7f[_0x5c9d45(0xec)]('..'))throw CliErrors[_0x5c9d45(0x100)](_0x5c9d45(0xf9)+_0x5507aa+_0x5c9d45(0xf6)+_0x2a2a7f);return _0x2a2a7f;}function a118_0x1b05(_0x41441e,_0x326a00){_0x41441e=_0x41441e-0xe7;const _0x6917a6=a118_0x6917();let _0x1b057c=_0x6917a6[_0x41441e];return _0x1b057c;}function trimmedEnv(_0x1960cf){const _0x401bb5=a118_0x52f001,_0x10059b=productEnv(_0x1960cf)?.[_0x401bb5(0xf1)]();return _0x10059b?_0x10059b:undefined;}
@@ -1 +1 @@
1
- (function(_0x620bf0,_0x4a4eed){const _0x44aa52=a117_0x533a,_0x5252af=_0x620bf0();while(!![]){try{const _0x1fb4ee=parseInt(_0x44aa52(0xc2))/0x1+-parseInt(_0x44aa52(0xf3))/0x2*(-parseInt(_0x44aa52(0xc5))/0x3)+parseInt(_0x44aa52(0xc6))/0x4*(parseInt(_0x44aa52(0xe1))/0x5)+-parseInt(_0x44aa52(0xc7))/0x6*(-parseInt(_0x44aa52(0xd7))/0x7)+parseInt(_0x44aa52(0xc3))/0x8*(parseInt(_0x44aa52(0xf7))/0x9)+-parseInt(_0x44aa52(0xed))/0xa+-parseInt(_0x44aa52(0xcd))/0xb;if(_0x1fb4ee===_0x4a4eed)break;else _0x5252af['push'](_0x5252af['shift']());}catch(_0x4a4a07){_0x5252af['push'](_0x5252af['shift']());}}}(a117_0x1791,0x84478));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';import{parse as a117_0xbc08f1}from'yaml';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{writeJsonAtomic}from'./fs-utils.js';import{contentHash}from'./hashing.js';import{fileText,normalizeLocalFiles,scanSkillDirectory}from'./local-files.js';import{buildMetadata,readMetadataIfPresent}from'./metadata.js';function a117_0x1791(){const _0x2c6d64=['displayName','4360RZeydR','number','isFile','isArray','614277UOtxMr','ignoreMetadataScope','(unknown)','utf8','match','sourceSessionId','tags','replace','isDirectory','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','ignoreMetadataForPayload','allowAppCodeRetarget','1057241bMyQVl','24QSNGph','description','420YfemSz','2891516iDAbTN','59082pasDaJ','ignoreMetadataAppCodeMismatch','builtin','length','validation','Remote\x20Skill\x20','25262314QpVRhe','string','object','isSymbolicLink','unknown','version','skillName','Unable\x20to\x20resolve\x20skillCode\x20from\x20','toLowerCase','name','441rMpDep','refreshedAt','personal','trim','skillCode','dir','company','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','ignoreInvalidMetadata','files','5cwrUfJ','path','\x20has\x20unsupported\x20scope\x20\x22','Skill\x20metadata\x20appCode\x20\x22','scope','startsWith','excludedFilePaths','content','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','slice','appCode','Skill\x20directory\x20not\x20found:\x20','720500gTDvXY','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','pushedAt','some','boolean'];a117_0x1791=function(){return _0x2c6d64;};return a117_0x1791();}import{buildSkillPackage,tryNormalizePackageManifest}from'./zip-package.js';export function resolvePushDirectoryIdentity(_0x1075ab,_0x435f49,_0x35fde2={}){const _0x540976=a117_0x533a,_0x5cea1d=resolvePushDirectoryRoot(_0x1075ab),_0x2b1564=readPushMetadataIfPresent(resolve(_0x5cea1d,METADATA_FILE),{'ignoreInvalidMetadata':_0x35fde2[_0x540976(0xdf)]});if(_0x2b1564?.[_0x540976(0xeb)]&&_0x2b1564[_0x540976(0xeb)]!==_0x435f49&&!_0x35fde2[_0x540976(0xc1)]&&!_0x35fde2[_0x540976(0xc8)])throw CliErrors[_0x540976(0xcb)](_0x540976(0xe4)+_0x2b1564[_0x540976(0xeb)]+_0x540976(0xde)+_0x435f49+'\x22.');const _0x1dab02=resolvePushSkillCode(_0x5cea1d,_0x435f49,_0x2b1564,_0x35fde2);if(!_0x1dab02)throw CliErrors[_0x540976(0xcb)](_0x540976(0xd4)+SKILL_FILE+',\x20'+METADATA_FILE+',\x20or\x20directory\x20name.');return{'dir':_0x5cea1d,'skillCode':_0x1dab02,'metadata':_0x2b1564};}export function readPushDirectory(_0x522733,_0x2356ed,_0x2acdc7={}){const _0x4f7b40=a117_0x533a,_0x5f10b5=resolvePushDirectoryIdentity(_0x522733,_0x2356ed,_0x2acdc7),_0x5bc4f7=_0x5f10b5[_0x4f7b40(0xdc)],_0x658122=resolve(_0x5bc4f7,SKILL_FILE);if(!existsSync(_0x658122)||!lstatSync(_0x658122)[_0x4f7b40(0xf5)]())throw CliErrors[_0x4f7b40(0xcb)]('Missing\x20'+SKILL_FILE+':\x20'+_0x658122);const _0x8662a=_0x5f10b5['metadata'],_0x28447c=_0x2acdc7['targetScope']??_0x4f7b40(0xd9);if(!_0x2acdc7[_0x4f7b40(0xf8)]&&_0x8662a?.[_0x4f7b40(0xe5)]===_0x4f7b40(0xc9))throw CliErrors[_0x4f7b40(0xcb)](_0x4f7b40(0xe9)+METADATA_FILE+'\x20has\x20scope=\x22'+_0x8662a[_0x4f7b40(0xe5)]+'\x22.');if(!_0x2acdc7['ignoreMetadataScope']&&_0x28447c===_0x4f7b40(0xd9)&&_0x8662a?.[_0x4f7b40(0xe5)]&&_0x8662a['scope']!==_0x4f7b40(0xd9))throw CliErrors['validation']('Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20'+METADATA_FILE+'\x20has\x20scope=\x22'+_0x8662a[_0x4f7b40(0xe5)]+'\x22.',_0x4f7b40(0xee)+_0x5bc4f7+_0x4f7b40(0xbf));const _0x1dbe4a=scanSkillDirectory(_0x5bc4f7,{'excludedFilePaths':_0x2acdc7[_0x4f7b40(0xe7)]}),_0x4ad6bf=buildSkillPackage(_0x1dbe4a),_0x40cd97=readFileSync(_0x658122,'utf8'),_0x412397=_0x5f10b5['skillCode'],_0x2b56dd=_0x2acdc7[_0x4f7b40(0xc0)]?undefined:_0x8662a,_0x3b3ca8=readSkillDisplayName(_0x40cd97);return{'skillCode':_0x412397,'metadata':_0x8662a,'frontmatterDisplayName':_0x3b3ca8,'input':{'skillCode':_0x412397,'skillName':_0x3b3ca8??_0x2b56dd?.['skillName'],'description':_0x2b56dd?.[_0x4f7b40(0xc4)],'content':_0x40cd97,'files':_0x4ad6bf['manifest'],'packageBase64':_0x4ad6bf['packageBase64'],'tags':_0x2b56dd?.['tags'],'version':_0x2b56dd?.[_0x4f7b40(0xd2)],'sourceSessionId':_0x2b56dd?.[_0x4f7b40(0xfc)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x46c6fb,_0x385e00,_0x40833a,_0xe3d0f6={}){const _0x126ef1=a117_0x533a,_0x10aa13=resolvePushDirectoryRoot(_0x46c6fb),_0x27ab99=readPushMetadataIfPresent(resolve(_0x10aa13,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x1287a6=requireRemoteScope(_0x385e00),_0x1b7d10=readLocalSkillContent(_0x10aa13),_0x292545={..._0x385e00,'appCode':_0x385e00[_0x126ef1(0xeb)]??_0x40833a,'skillName':_0x385e00[_0x126ef1(0xd3)]??_0x27ab99?.['skillName'],'description':_0x385e00[_0x126ef1(0xc4)]??_0x27ab99?.['description'],'tags':Array['isArray'](_0x385e00[_0x126ef1(0xfd)])?_0x385e00[_0x126ef1(0xfd)]:_0x27ab99?.[_0x126ef1(0xfd)],'sourceSessionId':_0x385e00[_0x126ef1(0xfc)]??_0x27ab99?.[_0x126ef1(0xfc)],'content':_0x385e00[_0x126ef1(0xe8)]??_0x1b7d10},_0x135708=buildMetadata(_0x292545,_0x1287a6,_0x40833a,contentHash(_0x1b7d10),_0xe3d0f6[_0x126ef1(0xd8)]);writeJsonAtomic(resolve(_0x10aa13,METADATA_FILE),_0x135708);}export function recordPushedRuntimeSkill(_0x1c3946,_0x1a53ba,_0x5f37dd,_0x587206={}){const _0x33a0a2=a117_0x533a,_0x44d114=resolvePushDirectoryRoot(_0x1c3946),_0x26433f=scanSkillDirectory(_0x44d114),_0x155a20=_0x26433f['find'](_0x1bd387=>_0x1bd387['path']===SKILL_FILE),_0x579220=_0x155a20?fileText(_0x155a20):'',_0x41054a=tryNormalizePackageManifest(_0x1a53ba[_0x33a0a2(0xe0)]),_0x4787b7={..._0x1a53ba,'content':_0x1a53ba[_0x33a0a2(0xe8)]??_0x579220,'files':_0x41054a},_0x3f360a=_0x41054a?normalizeLocalFiles(_0x26433f)['filter'](_0x393b3e=>_0x41054a[_0x33a0a2(0xe0)][_0x33a0a2(0xf0)](_0x12cac3=>_0x12cac3[_0x33a0a2(0xe2)]===_0x393b3e[_0x33a0a2(0xe2)])):undefined,_0x5838f1=buildMetadata(_0x4787b7,_0x587206[_0x33a0a2(0xe5)]??_0x33a0a2(0xd9),_0x5f37dd,contentHash(_0x4787b7['content']??''),_0x587206[_0x33a0a2(0xef)],_0x3f360a);writeJsonAtomic(resolve(_0x44d114,METADATA_FILE),_0x5838f1);}export function deriveSkillCodeFromDirectory(_0x253733,_0x5a2c81){const _0x31db47=a117_0x533a,_0x495699=basename(resolve(_0x253733)),_0x6b8213=_0x5a2c81+'--';return _0x495699[_0x31db47(0xe6)](_0x6b8213)?_0x495699[_0x31db47(0xea)](_0x6b8213[_0x31db47(0xca)]):_0x495699;}function resolvePushSkillCode(_0xb267bd,_0x402f19,_0x3360ac,_0x30e2fb){const _0x1dd069=a117_0x533a,_0x590ab9=deriveSkillCodeFromSkillFile(_0xb267bd)||deriveSkillCodeFromDirectory(_0xb267bd,_0x402f19);if(_0x30e2fb['ignoreMetadataSkillCode'])return _0x590ab9;return _0x3360ac?.[_0x1dd069(0xdb)]?.[_0x1dd069(0xda)]()||_0x590ab9;}function deriveSkillCodeFromSkillFile(_0x4ef3e4){const _0x3deb5f=a117_0x533a,_0xc71fa9=resolve(_0x4ef3e4,SKILL_FILE);if(!existsSync(_0xc71fa9)||!lstatSync(_0xc71fa9)['isFile']())return undefined;const _0x10609c=readFileSync(_0xc71fa9,'utf8'),_0x44cfaa=_0x10609c['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x44cfaa)return undefined;const _0x817904=parseFrontmatterObject(_0x44cfaa[0x1]??''),_0x39b2eb=scalarToString(_0x817904?.[_0x3deb5f(0xd6)]);return _0x39b2eb?slugifySkillName(_0x39b2eb):undefined;}function readSkillDisplayName(_0x2ad41f){const _0xc809ba=a117_0x533a,_0xb5c863=_0x2ad41f[_0xc809ba(0xfb)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0xb5c863)return undefined;const _0x22be75=parseFrontmatterObject(_0xb5c863[0x1]??'');return scalarToString(_0x22be75?.[_0xc809ba(0xf2)]);}function a117_0x533a(_0x146443,_0x249edb){_0x146443=_0x146443-0xbd;const _0x17916f=a117_0x1791();let _0x533ac1=_0x17916f[_0x146443];return _0x533ac1;}function slugifySkillName(_0x486982){const _0x2e24ec=a117_0x533a,_0x17769d=_0x486982[_0x2e24ec(0xda)]()[_0x2e24ec(0xd5)]()[_0x2e24ec(0xbd)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x2e24ec(0xbd)](/^-+/,'')[_0x2e24ec(0xbd)](/-+$/,'')[_0x2e24ec(0xbd)](/-{2,}/g,'-');if(!_0x17769d)throw CliErrors[_0x2e24ec(0xcb)]('Invalid\x20'+SKILL_FILE+'\x20name\x20for\x20SkillHub\x20slug\x20generation.');return _0x17769d;}function parseFrontmatterObject(_0x1e2519){const _0x3f564a=a117_0x533a;try{const _0x23e18a=a117_0xbc08f1(_0x1e2519);return _0x23e18a&&typeof _0x23e18a===_0x3f564a(0xcf)&&!Array[_0x3f564a(0xf6)](_0x23e18a)?_0x23e18a:undefined;}catch{return undefined;}}function scalarToString(_0x51037a){const _0x5a4f43=a117_0x533a;if(typeof _0x51037a===_0x5a4f43(0xce))return _0x51037a[_0x5a4f43(0xda)]();if(typeof _0x51037a===_0x5a4f43(0xf4)||typeof _0x51037a===_0x5a4f43(0xf1))return String(_0x51037a);return undefined;}function resolvePushDirectoryRoot(_0x42c969){const _0x35e39e=a117_0x533a,_0x2832ab=resolve(_0x42c969);if(!existsSync(_0x2832ab))throw CliErrors[_0x35e39e(0xcb)](_0x35e39e(0xec)+_0x42c969);const _0x1cf246=lstatSync(_0x2832ab);if(_0x1cf246[_0x35e39e(0xbe)]())return _0x2832ab;if(_0x1cf246[_0x35e39e(0xd0)]()){const _0x22f71a=realpathSync(_0x2832ab);if(lstatSync(_0x22f71a)[_0x35e39e(0xbe)]())return _0x22f71a;}throw CliErrors['validation'](_0x35e39e(0xec)+_0x42c969);}function requireRemoteScope(_0x5881a7){const _0x48976b=a117_0x533a;if(_0x5881a7[_0x48976b(0xe5)]===_0x48976b(0xd9)||_0x5881a7[_0x48976b(0xe5)]===_0x48976b(0xdd)||_0x5881a7[_0x48976b(0xe5)]===_0x48976b(0xc9))return _0x5881a7[_0x48976b(0xe5)];throw CliErrors[_0x48976b(0xcb)](_0x48976b(0xcc)+(_0x5881a7[_0x48976b(0xdb)]||_0x48976b(0xf9))+_0x48976b(0xe3)+(_0x5881a7[_0x48976b(0xe5)]??_0x48976b(0xd1))+'\x22.');}function readLocalSkillContent(_0x38c12d){const _0x55a238=a117_0x533a,_0x2a896f=resolve(_0x38c12d,SKILL_FILE);return existsSync(_0x2a896f)&&lstatSync(_0x2a896f)[_0x55a238(0xf5)]()?readFileSync(_0x2a896f,_0x55a238(0xfa)):'';}function readPushMetadataIfPresent(_0x1210b7,_0x310498={}){try{return readMetadataIfPresent(_0x1210b7);}catch(_0xae9ef6){if(_0x310498['ignoreInvalidMetadata'])return undefined;throw _0xae9ef6;}}
1
+ (function(_0x5d34b9,_0x47131e){const _0x1d70bd=a119_0x55e2,_0x5a2851=_0x5d34b9();while(!![]){try{const _0x29d3a8=-parseInt(_0x1d70bd(0x7e))/0x1+parseInt(_0x1d70bd(0x75))/0x2+parseInt(_0x1d70bd(0xa6))/0x3*(parseInt(_0x1d70bd(0xa1))/0x4)+parseInt(_0x1d70bd(0x84))/0x5*(parseInt(_0x1d70bd(0x8d))/0x6)+parseInt(_0x1d70bd(0x9d))/0x7+parseInt(_0x1d70bd(0x8c))/0x8+-parseInt(_0x1d70bd(0x92))/0x9;if(_0x29d3a8===_0x47131e)break;else _0x5a2851['push'](_0x5a2851['shift']());}catch(_0x268fd0){_0x5a2851['push'](_0x5a2851['shift']());}}}(a119_0x7260,0x41415));import{existsSync,lstatSync,readFileSync,realpathSync}from'node:fs';import{basename,resolve}from'node:path';function a119_0x7260(){const _0x556168=['version','find','Use\x20lovrabet\x20skill\x20push\x20--scope\x20company\x20--dir\x20','manifest','object','673546NqKBAe','skillName','pushedAt','displayName','dir','Skill\x20directory\x20not\x20found:\x20','trim','ignoreMetadataForPayload','\x20to\x20submit\x20company\x20Skills\x20for\x20review.','93158ulciwZ','number','isDirectory','packageBase64','isArray','Missing\x20','920iVUCDf','toLowerCase','tags','ignoreMetadataSkillCode','startsWith','some','\x20name\x20for\x20SkillHub\x20slug\x20generation.','targetScope','2260808MLAzAX','14262IteiBU',',\x20or\x20directory\x20name.','appCode','replace','path','14925303NeBqOc','\x22\x20does\x20not\x20match\x20current\x20appCode\x20\x22','\x20has\x20scope=\x22','files','length','ignoreMetadataScope','refreshedAt','validation','string','Builtin\x20Skills\x20cannot\x20be\x20pushed;\x20','excludedFilePaths','3312337eXSHAL','ignoreMetadataAppCodeMismatch','builtin','isSymbolicLink','356EKgXhX','Only\x20personal\x20Skills\x20can\x20be\x20pushed;\x20','Remote\x20Skill\x20','match','company','16479YHPVEn','ignoreInvalidMetadata','utf8','scope','content','isFile','personal','sourceSessionId','skillCode','name'];a119_0x7260=function(){return _0x556168;};return a119_0x7260();}import{parse as a119_0x5b9430}from'yaml';function a119_0x55e2(_0x25ec7d,_0xf92d14){_0x25ec7d=_0x25ec7d-0x71;const _0x7260b2=a119_0x7260();let _0x55e234=_0x7260b2[_0x25ec7d];return _0x55e234;}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(_0x3e6e87,_0x3f42f0,_0x145e71={}){const _0x5ec386=a119_0x55e2,_0x4832c8=resolvePushDirectoryRoot(_0x3e6e87),_0x1cf7d3=readPushMetadataIfPresent(resolve(_0x4832c8,METADATA_FILE),{'ignoreInvalidMetadata':_0x145e71[_0x5ec386(0xa7)]});if(_0x1cf7d3?.[_0x5ec386(0x8f)]&&_0x1cf7d3[_0x5ec386(0x8f)]!==_0x3f42f0&&!_0x145e71['allowAppCodeRetarget']&&!_0x145e71[_0x5ec386(0x9e)])throw CliErrors[_0x5ec386(0x99)]('Skill\x20metadata\x20appCode\x20\x22'+_0x1cf7d3[_0x5ec386(0x8f)]+_0x5ec386(0x93)+_0x3f42f0+'\x22.');const _0x38b594=resolvePushSkillCode(_0x4832c8,_0x3f42f0,_0x1cf7d3,_0x145e71);if(!_0x38b594)throw CliErrors[_0x5ec386(0x99)]('Unable\x20to\x20resolve\x20skillCode\x20from\x20'+SKILL_FILE+',\x20'+METADATA_FILE+_0x5ec386(0x8e));return{'dir':_0x4832c8,'skillCode':_0x38b594,'metadata':_0x1cf7d3};}export function readPushDirectory(_0x5c332d,_0x183e45,_0x19bd5d={}){const _0x4d70da=a119_0x55e2,_0xbf6f6e=resolvePushDirectoryIdentity(_0x5c332d,_0x183e45,_0x19bd5d),_0x2a80f8=_0xbf6f6e[_0x4d70da(0x79)],_0x2af6ae=resolve(_0x2a80f8,SKILL_FILE);if(!existsSync(_0x2af6ae)||!lstatSync(_0x2af6ae)[_0x4d70da(0xab)]())throw CliErrors[_0x4d70da(0x99)](_0x4d70da(0x83)+SKILL_FILE+':\x20'+_0x2af6ae);const _0x1e8c6d=_0xbf6f6e['metadata'],_0x3c9178=_0x19bd5d[_0x4d70da(0x8b)]??_0x4d70da(0xac);if(!_0x19bd5d[_0x4d70da(0x97)]&&_0x1e8c6d?.['scope']===_0x4d70da(0x9f))throw CliErrors['validation'](_0x4d70da(0x9b)+METADATA_FILE+_0x4d70da(0x94)+_0x1e8c6d[_0x4d70da(0xa9)]+'\x22.');if(!_0x19bd5d[_0x4d70da(0x97)]&&_0x3c9178===_0x4d70da(0xac)&&_0x1e8c6d?.['scope']&&_0x1e8c6d[_0x4d70da(0xa9)]!==_0x4d70da(0xac))throw CliErrors['validation'](_0x4d70da(0xa2)+METADATA_FILE+_0x4d70da(0x94)+_0x1e8c6d['scope']+'\x22.',_0x4d70da(0x72)+_0x2a80f8+_0x4d70da(0x7d));const _0x3abe3d=scanSkillDirectory(_0x2a80f8,{'excludedFilePaths':_0x19bd5d[_0x4d70da(0x9c)]}),_0x5b8a55=buildSkillPackage(_0x3abe3d),_0xe428c5=readFileSync(_0x2af6ae,'utf8'),_0x39bb36=_0xbf6f6e['skillCode'],_0x5d7bd7=_0x19bd5d[_0x4d70da(0x7c)]?undefined:_0x1e8c6d,_0x1dd9d7=readSkillDisplayName(_0xe428c5);return{'skillCode':_0x39bb36,'metadata':_0x1e8c6d,'frontmatterDisplayName':_0x1dd9d7,'input':{'skillCode':_0x39bb36,'skillName':_0x1dd9d7??_0x5d7bd7?.[_0x4d70da(0x76)],'description':_0x5d7bd7?.['description'],'content':_0xe428c5,'files':_0x5b8a55[_0x4d70da(0x73)],'packageBase64':_0x5b8a55[_0x4d70da(0x81)],'tags':_0x5d7bd7?.[_0x4d70da(0x86)],'version':_0x5d7bd7?.[_0x4d70da(0xb0)],'sourceSessionId':_0x5d7bd7?.[_0x4d70da(0xad)]}};}export function refreshPushDirectoryMetadataFromRemote(_0x3a4f2c,_0x13cac1,_0x13a290,_0x3e588d={}){const _0x1e65b7=a119_0x55e2,_0x1d7f5d=resolvePushDirectoryRoot(_0x3a4f2c),_0x25fdd5=readPushMetadataIfPresent(resolve(_0x1d7f5d,METADATA_FILE),{'ignoreInvalidMetadata':!![]}),_0x37c36c=requireRemoteScope(_0x13cac1),_0x1fe77d=readLocalSkillContent(_0x1d7f5d),_0x34af6b={..._0x13cac1,'appCode':_0x13cac1[_0x1e65b7(0x8f)]??_0x13a290,'skillName':_0x13cac1['skillName']??_0x25fdd5?.['skillName'],'description':_0x13cac1['description']??_0x25fdd5?.['description'],'tags':Array['isArray'](_0x13cac1[_0x1e65b7(0x86)])?_0x13cac1[_0x1e65b7(0x86)]:_0x25fdd5?.[_0x1e65b7(0x86)],'sourceSessionId':_0x13cac1['sourceSessionId']??_0x25fdd5?.[_0x1e65b7(0xad)],'content':_0x13cac1[_0x1e65b7(0xaa)]??_0x1fe77d},_0x3d7513=buildMetadata(_0x34af6b,_0x37c36c,_0x13a290,contentHash(_0x1fe77d),_0x3e588d[_0x1e65b7(0x98)]);writeJsonAtomic(resolve(_0x1d7f5d,METADATA_FILE),_0x3d7513);}export function recordPushedRuntimeSkill(_0x52ac25,_0x340b0e,_0x3bea76,_0x343bfc={}){const _0x2dc346=a119_0x55e2,_0x258492=resolvePushDirectoryRoot(_0x52ac25),_0x215a53=scanSkillDirectory(_0x258492),_0x515552=_0x215a53[_0x2dc346(0x71)](_0x53cf55=>_0x53cf55[_0x2dc346(0x91)]===SKILL_FILE),_0x51cbc9=_0x515552?fileText(_0x515552):'',_0x4742e5=tryNormalizePackageManifest(_0x340b0e[_0x2dc346(0x95)]),_0x365355={..._0x340b0e,'content':_0x340b0e[_0x2dc346(0xaa)]??_0x51cbc9,'files':_0x4742e5},_0x3b28c0=_0x4742e5?normalizeLocalFiles(_0x215a53)['filter'](_0x16604e=>_0x4742e5[_0x2dc346(0x95)][_0x2dc346(0x89)](_0x4f5bb8=>_0x4f5bb8['path']===_0x16604e[_0x2dc346(0x91)])):undefined,_0x486043=buildMetadata(_0x365355,_0x343bfc['scope']??_0x2dc346(0xac),_0x3bea76,contentHash(_0x365355[_0x2dc346(0xaa)]??''),_0x343bfc[_0x2dc346(0x77)],_0x3b28c0);writeJsonAtomic(resolve(_0x258492,METADATA_FILE),_0x486043);}export function deriveSkillCodeFromDirectory(_0x3c17cf,_0x58a9df){const _0x56cb5a=a119_0x55e2,_0x2f249b=basename(resolve(_0x3c17cf)),_0x3fee6b=_0x58a9df+'--';return _0x2f249b[_0x56cb5a(0x88)](_0x3fee6b)?_0x2f249b['slice'](_0x3fee6b[_0x56cb5a(0x96)]):_0x2f249b;}function resolvePushSkillCode(_0x83ebfa,_0x5c1b82,_0x76c9fd,_0xba731){const _0x43063e=a119_0x55e2,_0x3aeada=deriveSkillCodeFromSkillFile(_0x83ebfa)||deriveSkillCodeFromDirectory(_0x83ebfa,_0x5c1b82);if(_0xba731[_0x43063e(0x87)])return _0x3aeada;return _0x76c9fd?.[_0x43063e(0xae)]?.[_0x43063e(0x7b)]()||_0x3aeada;}function deriveSkillCodeFromSkillFile(_0x53394a){const _0x4c5d42=a119_0x55e2,_0x4a71ce=resolve(_0x53394a,SKILL_FILE);if(!existsSync(_0x4a71ce)||!lstatSync(_0x4a71ce)[_0x4c5d42(0xab)]())return undefined;const _0x25ce95=readFileSync(_0x4a71ce,_0x4c5d42(0xa8)),_0x5eac2f=_0x25ce95[_0x4c5d42(0xa4)](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x5eac2f)return undefined;const _0xa65b0e=parseFrontmatterObject(_0x5eac2f[0x1]??''),_0x4180f9=scalarToString(_0xa65b0e?.[_0x4c5d42(0xaf)]);return _0x4180f9?slugifySkillName(_0x4180f9):undefined;}function readSkillDisplayName(_0x38f09d){const _0x3d3a4d=a119_0x55e2,_0x4cc0c2=_0x38f09d['match'](/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/);if(!_0x4cc0c2)return undefined;const _0x22b4b6=parseFrontmatterObject(_0x4cc0c2[0x1]??'');return scalarToString(_0x22b4b6?.[_0x3d3a4d(0x78)]);}function slugifySkillName(_0x371606){const _0x3eeded=a119_0x55e2,_0x57d3ff=_0x371606[_0x3eeded(0x7b)]()[_0x3eeded(0x85)]()[_0x3eeded(0x90)](/[^\p{L}\p{N}\p{So}]+/gu,'-')[_0x3eeded(0x90)](/^-+/,'')[_0x3eeded(0x90)](/-+$/,'')[_0x3eeded(0x90)](/-{2,}/g,'-');if(!_0x57d3ff)throw CliErrors['validation']('Invalid\x20'+SKILL_FILE+_0x3eeded(0x8a));return _0x57d3ff;}function parseFrontmatterObject(_0x48c622){const _0xd1176d=a119_0x55e2;try{const _0x2f1c47=a119_0x5b9430(_0x48c622);return _0x2f1c47&&typeof _0x2f1c47===_0xd1176d(0x74)&&!Array[_0xd1176d(0x82)](_0x2f1c47)?_0x2f1c47:undefined;}catch{return undefined;}}function scalarToString(_0x306b59){const _0x57df52=a119_0x55e2;if(typeof _0x306b59===_0x57df52(0x9a))return _0x306b59[_0x57df52(0x7b)]();if(typeof _0x306b59===_0x57df52(0x7f)||typeof _0x306b59==='boolean')return String(_0x306b59);return undefined;}function resolvePushDirectoryRoot(_0x13cc7c){const _0x2c5b49=a119_0x55e2,_0x520f12=resolve(_0x13cc7c);if(!existsSync(_0x520f12))throw CliErrors[_0x2c5b49(0x99)](_0x2c5b49(0x7a)+_0x13cc7c);const _0xbd4352=lstatSync(_0x520f12);if(_0xbd4352[_0x2c5b49(0x80)]())return _0x520f12;if(_0xbd4352[_0x2c5b49(0xa0)]()){const _0x1f6916=realpathSync(_0x520f12);if(lstatSync(_0x1f6916)[_0x2c5b49(0x80)]())return _0x1f6916;}throw CliErrors[_0x2c5b49(0x99)](_0x2c5b49(0x7a)+_0x13cc7c);}function requireRemoteScope(_0x2aa10c){const _0x44b2e1=a119_0x55e2;if(_0x2aa10c['scope']===_0x44b2e1(0xac)||_0x2aa10c[_0x44b2e1(0xa9)]===_0x44b2e1(0xa5)||_0x2aa10c[_0x44b2e1(0xa9)]==='builtin')return _0x2aa10c[_0x44b2e1(0xa9)];throw CliErrors['validation'](_0x44b2e1(0xa3)+(_0x2aa10c['skillCode']||'(unknown)')+'\x20has\x20unsupported\x20scope\x20\x22'+(_0x2aa10c[_0x44b2e1(0xa9)]??'unknown')+'\x22.');}function readLocalSkillContent(_0x45e72b){const _0x1b4c97=a119_0x55e2,_0xc109df=resolve(_0x45e72b,SKILL_FILE);return existsSync(_0xc109df)&&lstatSync(_0xc109df)[_0x1b4c97(0xab)]()?readFileSync(_0xc109df,_0x1b4c97(0xa8)):'';}function readPushMetadataIfPresent(_0x1d499c,_0x41e821={}){try{return readMetadataIfPresent(_0x1d499c);}catch(_0x41db8){if(_0x41e821['ignoreInvalidMetadata'])return undefined;throw _0x41db8;}}
@@ -1 +1 @@
1
- (function(_0xaea109,_0x459faf){const _0x5c9b89=a118_0x157b,_0x5e30c2=_0xaea109();while(!![]){try{const _0x33ba94=parseInt(_0x5c9b89(0xd0))/0x1+parseInt(_0x5c9b89(0xcb))/0x2+parseInt(_0x5c9b89(0xcf))/0x3*(parseInt(_0x5c9b89(0xd8))/0x4)+-parseInt(_0x5c9b89(0xcd))/0x5+-parseInt(_0x5c9b89(0xd5))/0x6*(-parseInt(_0x5c9b89(0xcc))/0x7)+parseInt(_0x5c9b89(0xd6))/0x8*(parseInt(_0x5c9b89(0xd4))/0x9)+parseInt(_0x5c9b89(0xd7))/0xa*(-parseInt(_0x5c9b89(0xd3))/0xb);if(_0x33ba94===_0x459faf)break;else _0x5e30c2['push'](_0x5e30c2['shift']());}catch(_0x3c7a31){_0x5e30c2['push'](_0x5e30c2['shift']());}}}(a118_0x279d,0xbfc92));import{CliErrors}from'../../errors.js';function a118_0x157b(_0x470d48,_0x1e9e24){_0x470d48=_0x470d48-0xc8;const _0x279db5=a118_0x279d();let _0x157bb4=_0x279db5[_0x470d48];return _0x157bb4;}export function normalizeRuntimeSkillScopes(_0x4950a9){const _0x151cb2=a118_0x157b,_0x48f2b4=_0x4950a9&&_0x4950a9[_0x151cb2(0xd2)]>0x0?_0x4950a9:[_0x151cb2(0xca),_0x151cb2(0xc8),_0x151cb2(0xce)],_0x451719=[];for(const _0x350d32 of _0x48f2b4){if(!isRuntimeSkillScope(_0x350d32))throw CliErrors['validation'](_0x151cb2(0xc9)+_0x350d32);!_0x451719[_0x151cb2(0xd1)](_0x350d32)&&_0x451719['push'](_0x350d32);}return _0x451719;}export function isRuntimeSkillScope(_0xf5e47c){const _0x42c0a6=a118_0x157b;return _0xf5e47c===_0x42c0a6(0xca)||_0xf5e47c==='company'||_0xf5e47c===_0x42c0a6(0xce);}function a118_0x279d(){const _0x546f43=['1880606vXNLho','7516820foQsVz','builtin','1083765DlgfCw','190464LsPNaZ','includes','length','57189vQnKsX','18sjpRbS','24LocHCq','4031792zOWmOY','1720NSCLTk','4oMxjzK','company','Unsupported\x20runtime\x20Skill\x20scope:\x20','personal','1097694BJBnJm'];a118_0x279d=function(){return _0x546f43;};return a118_0x279d();}
1
+ function a120_0x28c7(){const _0x123f49=['424740yoFNEl','66600GtLuQZ','length','3669903mYajis','2302206ExRHwn','builtin','584gycibI','includes','8974YBNClS','1248015mXXIdh','personal','company','validation','push','11xMBDVl','Unsupported\x20runtime\x20Skill\x20scope:\x20','46235ZcCMvH','128fvROZu'];a120_0x28c7=function(){return _0x123f49;};return a120_0x28c7();}(function(_0x4b22be,_0x4b13fb){const _0x42559e=a120_0x5595,_0x12b5ea=_0x4b22be();while(!![]){try{const _0x124cea=parseInt(_0x42559e(0xca))/0x1*(-parseInt(_0x42559e(0xc4))/0x2)+parseInt(_0x42559e(0xc5))/0x3+-parseInt(_0x42559e(0xcd))/0x4*(-parseInt(_0x42559e(0xcf))/0x5)+-parseInt(_0x42559e(0xc0))/0x6+-parseInt(_0x42559e(0xcc))/0x7*(parseInt(_0x42559e(0xc2))/0x8)+parseInt(_0x42559e(0xbf))/0x9+-parseInt(_0x42559e(0xce))/0xa;if(_0x124cea===_0x4b13fb)break;else _0x12b5ea['push'](_0x12b5ea['shift']());}catch(_0x9f4456){_0x12b5ea['push'](_0x12b5ea['shift']());}}}(a120_0x28c7,0x475db));import{CliErrors}from'../../errors.js';function a120_0x5595(_0x35b7d7,_0x2bb992){_0x35b7d7=_0x35b7d7-0xbe;const _0x28c764=a120_0x28c7();let _0x559537=_0x28c764[_0x35b7d7];return _0x559537;}export function normalizeRuntimeSkillScopes(_0x15b8fb){const _0x274819=a120_0x5595,_0x7461e6=_0x15b8fb&&_0x15b8fb[_0x274819(0xbe)]>0x0?_0x15b8fb:[_0x274819(0xc6),_0x274819(0xc7),'builtin'],_0x3388d3=[];for(const _0x28d9d4 of _0x7461e6){if(!isRuntimeSkillScope(_0x28d9d4))throw CliErrors[_0x274819(0xc8)](_0x274819(0xcb)+_0x28d9d4);!_0x3388d3[_0x274819(0xc3)](_0x28d9d4)&&_0x3388d3[_0x274819(0xc9)](_0x28d9d4);}return _0x3388d3;}export function isRuntimeSkillScope(_0x1f4196){const _0x1c938b=a120_0x5595;return _0x1f4196===_0x1c938b(0xc6)||_0x1f4196===_0x1c938b(0xc7)||_0x1f4196===_0x1c938b(0xc1);}
@@ -1 +1 @@
1
- (function(_0x5c3e37,_0x136ab2){const _0x2c07ec=a120_0x2b2d,_0x8dbf9c=_0x5c3e37();while(!![]){try{const _0x3961f4=parseInt(_0x2c07ec(0x129))/0x1*(-parseInt(_0x2c07ec(0x115))/0x2)+-parseInt(_0x2c07ec(0x117))/0x3+-parseInt(_0x2c07ec(0x127))/0x4*(parseInt(_0x2c07ec(0x128))/0x5)+-parseInt(_0x2c07ec(0x11f))/0x6*(-parseInt(_0x2c07ec(0x11e))/0x7)+-parseInt(_0x2c07ec(0x125))/0x8*(parseInt(_0x2c07ec(0x119))/0x9)+parseInt(_0x2c07ec(0x123))/0xa+parseInt(_0x2c07ec(0x11c))/0xb*(parseInt(_0x2c07ec(0x12a))/0xc);if(_0x3961f4===_0x136ab2)break;else _0x8dbf9c['push'](_0x8dbf9c['shift']());}catch(_0x423e7c){_0x8dbf9c['push'](_0x8dbf9c['shift']());}}}(a120_0x49da,0xba3c2));import{unzipSync,zipSync}from'fflate';function a120_0x49da(){const _0x52f171=['655140WEcmwz','entries','64ejEjMo','validation','676JQqLNH','38795UzEOqX','17NZbOVS','21816CuRbcz','name','Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.','51430eCBiIk','validation_error','21078RADFTA','length','105003tGCPay','from','code','13563yyrcSD','object','1065743TcvVLl','12Czgprt','endsWith','sort','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20'];a120_0x49da=function(){return _0x52f171;};return a120_0x49da();}import{CliErrors}from'../../errors.js';function a120_0x2b2d(_0xed8d2e,_0x1be0ce){_0xed8d2e=_0xed8d2e-0x113;const _0x49da12=a120_0x49da();let _0x2b2d86=_0x49da12[_0xed8d2e];return _0x2b2d86;}import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';const ZIP_MTIME=new Date('1980-01-01T00:00:00.000Z');export function createDeterministicZipPackage(_0xa8cf79){const _0x4489e8={};for(const _0x37d028 of normalizeLocalFiles(_0xa8cf79)){_0x4489e8[_0x37d028['path']]=fileContent(_0x37d028);}return Buffer['from'](zipSync(_0x4489e8,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x525cf9){const _0x4b2fa4=a120_0x2b2d;if(_0x525cf9[_0x4b2fa4(0x118)]<0x16)throw CliErrors[_0x4b2fa4(0x126)](_0x4b2fa4(0x114));let _0x193dcc;try{_0x193dcc=unzipSync(_0x525cf9,{'filter'(_0x316c04){const _0x39063c=_0x4b2fa4,_0x57a533=normalizeSkillRelativePath(_0x316c04[_0x39063c(0x113)]);if(_0x57a533[_0x39063c(0x120)]('/'))throw CliErrors[_0x39063c(0x126)](_0x39063c(0x122)+_0x57a533);return!![];}});}catch(_0x30aef3){if(isRuntimeSkillValidationError(_0x30aef3))throw _0x30aef3;throw CliErrors['validation']('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');}return Object[_0x4b2fa4(0x124)](_0x193dcc)['map'](([_0x24b6c5,_0x25fe2e])=>({'path':normalizeSkillRelativePath(_0x24b6c5),'bytes':Buffer[_0x4b2fa4(0x11a)](_0x25fe2e)}))[_0x4b2fa4(0x121)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x1a9c28){const _0x539adc=a120_0x2b2d;return typeof _0x1a9c28===_0x539adc(0x11d)&&_0x1a9c28!==null&&_0x539adc(0x11b)in _0x1a9c28&&_0x1a9c28[_0x539adc(0x11b)]===_0x539adc(0x116);}
1
+ const a122_0x2f4439=a122_0x1b5b;function a122_0x3954(){const _0x167429=['369NmjgEn','sort','116952MsXWQU','path','endsWith','669BlzRqU','entries','validation_error','1843820zBTdwq','from','2386232XMSAyU','Runtime\x20Skill\x20package\x20contains\x20directory\x20entry:\x20','2994VeMunY','147590pipkgk','1980-01-01T00:00:00.000Z','length','code','127379PmuxWL','validation','226824gjyAaT','7vCSVXi','map'];a122_0x3954=function(){return _0x167429;};return a122_0x3954();}(function(_0x334298,_0x4c07d9){const _0x5b51c6=a122_0x1b5b,_0x470881=_0x334298();while(!![]){try{const _0x8f78e5=parseInt(_0x5b51c6(0x8f))/0x1+-parseInt(_0x5b51c6(0xa0))/0x2*(-parseInt(_0x5b51c6(0x99))/0x3)+parseInt(_0x5b51c6(0x91))/0x4+-parseInt(_0x5b51c6(0x9c))/0x5+-parseInt(_0x5b51c6(0x96))/0x6*(-parseInt(_0x5b51c6(0x92))/0x7)+-parseInt(_0x5b51c6(0x9e))/0x8+parseInt(_0x5b51c6(0x94))/0x9*(parseInt(_0x5b51c6(0xa1))/0xa);if(_0x8f78e5===_0x4c07d9)break;else _0x470881['push'](_0x470881['shift']());}catch(_0x5c17a0){_0x470881['push'](_0x470881['shift']());}}}(a122_0x3954,0x7415c));import{unzipSync,zipSync}from'fflate';import{CliErrors}from'../../errors.js';import{compareSkillFiles,fileContent,normalizeLocalFiles,normalizeSkillRelativePath}from'./local-files.js';function a122_0x1b5b(_0xad99e8,_0x1a2387){_0xad99e8=_0xad99e8-0x8c;const _0x3954c1=a122_0x3954();let _0x1b5b48=_0x3954c1[_0xad99e8];return _0x1b5b48;}const ZIP_MTIME=new Date(a122_0x2f4439(0x8c));export function createDeterministicZipPackage(_0x235b18){const _0x234446=a122_0x2f4439,_0x124979={};for(const _0x594744 of normalizeLocalFiles(_0x235b18)){_0x124979[_0x594744[_0x234446(0x97)]]=fileContent(_0x594744);}return Buffer[_0x234446(0x9d)](zipSync(_0x124979,{'level':0x0,'mtime':ZIP_MTIME}));}export function parseZipPackage(_0x43fef2){const _0x4f9ff8=a122_0x2f4439;if(_0x43fef2[_0x4f9ff8(0x8d)]<0x16)throw CliErrors[_0x4f9ff8(0x90)]('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');let _0x54f259;try{_0x54f259=unzipSync(_0x43fef2,{'filter'(_0x1d7f61){const _0x1c247b=_0x4f9ff8,_0x1bce6d=normalizeSkillRelativePath(_0x1d7f61['name']);if(_0x1bce6d[_0x1c247b(0x98)]('/'))throw CliErrors[_0x1c247b(0x90)](_0x1c247b(0x9f)+_0x1bce6d);return!![];}});}catch(_0x4b044f){if(isRuntimeSkillValidationError(_0x4b044f))throw _0x4b044f;throw CliErrors[_0x4f9ff8(0x90)]('Runtime\x20Skill\x20package\x20is\x20not\x20a\x20valid\x20zip\x20file.');}return Object[_0x4f9ff8(0x9a)](_0x54f259)[_0x4f9ff8(0x93)](([_0x49545e,_0x23a6d9])=>({'path':normalizeSkillRelativePath(_0x49545e),'bytes':Buffer[_0x4f9ff8(0x9d)](_0x23a6d9)}))[_0x4f9ff8(0x95)](compareSkillFiles);}function isRuntimeSkillValidationError(_0x3a3a8c){const _0x39c239=a122_0x2f4439;return typeof _0x3a3a8c==='object'&&_0x3a3a8c!==null&&_0x39c239(0x8e)in _0x3a3a8c&&_0x3a3a8c[_0x39c239(0x8e)]===_0x39c239(0x9b);}
@@ -1 +1 @@
1
- (function(_0xcadfea,_0x4a1410){const _0x119049=a121_0x5c4b,_0x51c731=_0xcadfea();while(!![]){try{const _0x464da2=-parseInt(_0x119049(0xfc))/0x1*(-parseInt(_0x119049(0xe2))/0x2)+parseInt(_0x119049(0x108))/0x3*(-parseInt(_0x119049(0xf3))/0x4)+-parseInt(_0x119049(0xf4))/0x5*(-parseInt(_0x119049(0xec))/0x6)+-parseInt(_0x119049(0xf9))/0x7+parseInt(_0x119049(0xf5))/0x8+parseInt(_0x119049(0x115))/0x9*(parseInt(_0x119049(0x10f))/0xa)+parseInt(_0x119049(0x109))/0xb*(-parseInt(_0x119049(0xfb))/0xc);if(_0x464da2===_0x4a1410)break;else _0x51c731['push'](_0x51c731['shift']());}catch(_0x24266e){_0x51c731['push'](_0x51c731['shift']());}}}(a121_0x5c52,0x5e855));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 a121_0x5c4b(_0x37be8d,_0x5e4f3e){_0x37be8d=_0x37be8d-0xe2;const _0x5c5274=a121_0x5c52();let _0x5c4bf7=_0x5c5274[_0x37be8d];return _0x5c4bf7;}import{createDeterministicZipPackage,parseZipPackage}from'./zip-codec.js';export function buildSkillPackage(_0x1047f3){const _0x876ae3=a121_0x5c4b,_0x14cabe=normalizeLocalFiles(_0x1047f3);if(!_0x14cabe[_0x876ae3(0x10e)](_0x34cc85=>_0x34cc85[_0x876ae3(0x10a)]===SKILL_FILE))throw CliErrors[_0x876ae3(0x10c)](_0x876ae3(0x116)+SKILL_FILE+_0x876ae3(0x102));const _0x19d8d5=localFilesToManifestFiles(_0x14cabe),_0x5ddd74=createDeterministicZipPackage(_0x14cabe);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x19d8d5),'zipSha256':bufferSha256(_0x5ddd74),'zipSize':_0x5ddd74['length'],'files':_0x19d8d5},'packageBytes':_0x5ddd74,'packageBase64':_0x5ddd74[_0x876ae3(0xfd)](_0x876ae3(0x106))};}function a121_0x5c52(){const _0x59959c=['609323YfUZtD','path','Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.','validation','bytes','some','2203430nFPAUK','push','Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.','trim','Runtime\x20Skill\x20package\x20is\x20missing\x20','isSafeInteger','27bEaevb','Missing\x20','20SgUyAj','Runtime\x20Skill\x20package\x20size\x20mismatch.','size','toLowerCase','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','Runtime\x20Skill\x20package\x20size\x20is\x20invalid.','ossPath','zipSize','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','sha256','17454YoBSeG','zipSha256','requireOssPath','isArray','treeSha256','Duplicate\x20Skill\x20package\x20entry:\x20','length','4HtKWkP','565cBTrBC','3572624jkBTIm','Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20','files','get','3776255ZKfirN','map','60kqueRU','15761mlMgsk','toString','schemaVersion','Runtime\x20Skill\x20package\x20sha256\x20mismatch.','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','string','\x20in\x20Skill\x20file\x20package.','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','has','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','base64','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','1171041MuViaD'];a121_0x5c52=function(){return _0x59959c;};return a121_0x5c52();}export function verifyRuntimeSkillPackage(_0x34ce34,_0x5ed6ac){const _0xad46b0=a121_0x5c4b,_0x2274a8=normalizePackageManifest(_0x34ce34,{'requireOssPath':![]});if(!_0x2274a8)throw CliErrors['validation'](_0xad46b0(0x107));return extractAndVerifyPackage(_0x2274a8,_0x5ed6ac);}export function verifyRuntimeSkillBundle(_0x16fb6e,_0x8ee642){const _0x5be13f=a121_0x5c4b,_0x2dccaa=normalizePackageManifest(_0x16fb6e,{'requireOssPath':![]});if(!_0x2dccaa)throw CliErrors[_0x5be13f(0x10c)](_0x5be13f(0x107));return extractAndVerifyPackageFiles(_0x2dccaa,_0x8ee642);}export function tryNormalizePackageManifest(_0x5c622e){return normalizePackageManifest(_0x5c622e,{'requireOssPath':![]});}export function requirePackageBytes(_0x583b46,_0x1a47c1){const _0x278119=a121_0x5c4b;if(!_0x1a47c1||_0x1a47c1[_0x278119(0xf2)]===0x0)throw CliErrors['validation'](_0x278119(0x103)+_0x583b46);return _0x1a47c1;}export function extractDownloadedPackage(_0x5b95c2){const _0x2a8e09=a121_0x5c4b,_0x46ba1b=parseZipPackage(_0x5b95c2)[_0x2a8e09(0xfa)](_0x24f9b1=>({'path':_0x24f9b1[_0x2a8e09(0x10a)],'bytes':_0x24f9b1['bytes']}));if(!_0x46ba1b[_0x2a8e09(0x10e)](_0x21fa6a=>_0x21fa6a['path']===SKILL_FILE))throw CliErrors[_0x2a8e09(0x10c)](_0x2a8e09(0x113)+SKILL_FILE+'.');return normalizeLocalFiles(_0x46ba1b);}export function localFilesToManifestFiles(_0x4efbf6){const _0x377d5c=a121_0x5c4b;return normalizeLocalFiles(_0x4efbf6)[_0x377d5c(0xfa)](_0x40968f=>({'path':_0x40968f[_0x377d5c(0x10a)],'sha256':fileHash(_0x40968f),'size':fileContent(_0x40968f)[_0x377d5c(0xf2)]}));}function normalizePackageManifest(_0x3542c9,_0x89828e){const _0xebce50=a121_0x5c4b;if(!_0x3542c9||typeof _0x3542c9!=='object'||Array[_0xebce50(0xef)](_0x3542c9))return undefined;const _0x52a10a=_0x3542c9,_0x1b008f=typeof _0x52a10a[_0xebce50(0xe8)]===_0xebce50(0x101)?_0x52a10a[_0xebce50(0xe8)][_0xebce50(0x112)]():undefined;if(_0x89828e[_0xebce50(0xee)]&&!_0x1b008f)return undefined;if(!Array[_0xebce50(0xef)](_0x52a10a[_0xebce50(0xf7)])||_0x52a10a[_0xebce50(0xf7)]['length']===0x0)return undefined;if(!isSha256Hex(_0x52a10a[_0xebce50(0xf0)]))throw CliErrors[_0xebce50(0x10c)](_0xebce50(0xe6));if(!isSha256Hex(_0x52a10a[_0xebce50(0xed)]))throw CliErrors['validation'](_0xebce50(0x111));if(!Number[_0xebce50(0x114)](_0x52a10a[_0xebce50(0xe9)])||_0x52a10a[_0xebce50(0xe9)]<0x0)throw CliErrors[_0xebce50(0x10c)](_0xebce50(0xe7));const _0x510af6=normalizeManifestFiles(_0x52a10a[_0xebce50(0xf7)]);if(!_0x510af6[_0xebce50(0x10e)](_0x341a30=>_0x341a30[_0xebce50(0x10a)]===SKILL_FILE))throw CliErrors[_0xebce50(0x10c)](_0xebce50(0x105)+SKILL_FILE+'.');const _0x49b96d=fileTreeHash(_0x510af6);if(_0x49b96d!==_0x52a10a[_0xebce50(0xf0)][_0xebce50(0xe5)]())throw CliErrors[_0xebce50(0x10c)](_0xebce50(0x10b));return{'schemaVersion':Number[_0xebce50(0x114)](_0x52a10a[_0xebce50(0xfe)])?_0x52a10a[_0xebce50(0xfe)]:0x2,'ossPath':_0x1b008f,'treeSha256':_0x49b96d,'zipSha256':_0x52a10a[_0xebce50(0xed)][_0xebce50(0xe5)](),'zipSize':_0x52a10a[_0xebce50(0xe9)],'files':_0x510af6};}function extractAndVerifyPackage(_0x3c067b,_0x207016){const _0x3ab224=a121_0x5c4b,_0x135d5c=normalizePackageManifest(_0x3c067b,{'requireOssPath':![]});if(!_0x135d5c)throw CliErrors[_0x3ab224(0x10c)](_0x3ab224(0x107));if(_0x207016[_0x3ab224(0xf2)]!==_0x135d5c['zipSize'])throw CliErrors['validation'](_0x3ab224(0xe3));const _0x5e3112=bufferSha256(_0x207016);if(_0x5e3112!==_0x135d5c[_0x3ab224(0xed)])throw CliErrors[_0x3ab224(0x10c)](_0x3ab224(0xff));return extractAndVerifyPackageFiles(_0x135d5c,_0x207016);}function extractAndVerifyPackageFiles(_0x1dc692,_0x3a4a30){const _0x4678f2=a121_0x5c4b,_0x397f2d=parseZipPackage(_0x3a4a30);if(_0x397f2d[_0x4678f2(0xf2)]!==_0x1dc692['files'][_0x4678f2(0xf2)])throw CliErrors[_0x4678f2(0x10c)]('Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.');const _0x132454=new Map();for(const _0x56cdc5 of _0x397f2d){if(_0x132454[_0x4678f2(0x104)](_0x56cdc5[_0x4678f2(0x10a)]))throw CliErrors[_0x4678f2(0x10c)](_0x4678f2(0xf1)+_0x56cdc5[_0x4678f2(0x10a)]);_0x132454['set'](_0x56cdc5[_0x4678f2(0x10a)],_0x56cdc5);}const _0x449369=[];for(const _0x4ca046 of _0x1dc692[_0x4678f2(0xf7)]){const _0x17b981=_0x132454[_0x4678f2(0xf8)](_0x4ca046[_0x4678f2(0x10a)]);if(!_0x17b981)throw CliErrors[_0x4678f2(0x10c)](_0x4678f2(0x100)+_0x4ca046[_0x4678f2(0x10a)]);if(_0x17b981[_0x4678f2(0x10d)]['length']!==_0x4ca046[_0x4678f2(0xe4)])throw CliErrors[_0x4678f2(0x10c)](_0x4678f2(0xea)+_0x4ca046[_0x4678f2(0x10a)]);const _0x2113b9=bufferSha256(_0x17b981[_0x4678f2(0x10d)]);if(_0x2113b9!==_0x4ca046[_0x4678f2(0xeb)])throw CliErrors['validation'](_0x4678f2(0xf6)+_0x4ca046['path']);_0x449369[_0x4678f2(0x110)]({'path':_0x4ca046[_0x4678f2(0x10a)],'bytes':_0x17b981[_0x4678f2(0x10d)]});}return normalizeLocalFiles(_0x449369);}
1
+ (function(_0x485895,_0x265206){const _0x5a3d39=a123_0x299a,_0x181e61=_0x485895();while(!![]){try{const _0x197623=parseInt(_0x5a3d39(0x1d3))/0x1+parseInt(_0x5a3d39(0x1e1))/0x2+-parseInt(_0x5a3d39(0x1ec))/0x3*(-parseInt(_0x5a3d39(0x1da))/0x4)+-parseInt(_0x5a3d39(0x1de))/0x5*(-parseInt(_0x5a3d39(0x1cd))/0x6)+parseInt(_0x5a3d39(0x1c6))/0x7+-parseInt(_0x5a3d39(0x1c4))/0x8+-parseInt(_0x5a3d39(0x1e0))/0x9*(parseInt(_0x5a3d39(0x1ed))/0xa);if(_0x197623===_0x265206)break;else _0x181e61['push'](_0x181e61['shift']());}catch(_0x4913a9){_0x181e61['push'](_0x181e61['shift']());}}}(a123_0x179c,0x95ad0));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';function a123_0x179c(){const _0x5a1ea1=['Runtime\x20Skill\x20package\x20sha256\x20mismatch.','size','zipSize','push','zipSha256','2472SJudJO','validation','\x20in\x20Skill\x20file\x20package.','ossPath','sha256','Duplicate\x20Skill\x20package\x20entry:\x20','1016419nYjRwu','Runtime\x20Skill\x20package\x20is\x20missing\x20','Runtime\x20Skill\x20package\x20is\x20missing\x20entry:\x20','schemaVersion','treeSha256','object','requireOssPath','1925072EOATPI','some','toString','isArray','13085uZRyUr','Runtime\x20Skill\x20package\x20is\x20required\x20for\x20Skill\x20install:\x20','95589xdZYGc','293622IHaOSS','set','Runtime\x20Skill\x20file\x20tree\x20sha256\x20is\x20invalid.','map','Runtime\x20Skill\x20package\x20size\x20mismatch.','toLowerCase','Runtime\x20Skill\x20package\x20entry\x20list\x20mismatch.','Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.','Runtime\x20Skill\x20package\x20file\x20size\x20mismatch:\x20','files','Runtime\x20Skill\x20manifest\x20is\x20missing\x20','6aEkZrK','3380ITHxCz','bytes','path','1391904QIFPrS','length','8210916ujyzGg','isSafeInteger'];a123_0x179c=function(){return _0x5a1ea1;};return a123_0x179c();}export function buildSkillPackage(_0x11d701){const _0x204d7d=a123_0x299a,_0x419cc4=normalizeLocalFiles(_0x11d701);if(!_0x419cc4[_0x204d7d(0x1db)](_0x681d03=>_0x681d03[_0x204d7d(0x1c3)]===SKILL_FILE))throw CliErrors['validation']('Missing\x20'+SKILL_FILE+_0x204d7d(0x1cf));const _0x52587b=localFilesToManifestFiles(_0x419cc4),_0x22dacf=createDeterministicZipPackage(_0x419cc4);return{'manifest':{'schemaVersion':0x2,'treeSha256':fileTreeHash(_0x52587b),'zipSha256':bufferSha256(_0x22dacf),'zipSize':_0x22dacf['length'],'files':_0x52587b},'packageBytes':_0x22dacf,'packageBase64':_0x22dacf[_0x204d7d(0x1dc)]('base64')};}export function verifyRuntimeSkillPackage(_0x22ee92,_0x38e467){const _0x5690a2=a123_0x299a,_0x2fd84a=normalizePackageManifest(_0x22ee92,{'requireOssPath':![]});if(!_0x2fd84a)throw CliErrors[_0x5690a2(0x1ce)](_0x5690a2(0x1e8));return extractAndVerifyPackage(_0x2fd84a,_0x38e467);}export function verifyRuntimeSkillBundle(_0x87a790,_0xf119fc){const _0xbaae8c=a123_0x299a,_0x45dfb2=normalizePackageManifest(_0x87a790,{'requireOssPath':![]});if(!_0x45dfb2)throw CliErrors[_0xbaae8c(0x1ce)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');return extractAndVerifyPackageFiles(_0x45dfb2,_0xf119fc);}export function tryNormalizePackageManifest(_0x6929c){return normalizePackageManifest(_0x6929c,{'requireOssPath':![]});}function a123_0x299a(_0xa38547,_0x4890d8){_0xa38547=_0xa38547-0x1c3;const _0x179ca3=a123_0x179c();let _0x299a2b=_0x179ca3[_0xa38547];return _0x299a2b;}export function requirePackageBytes(_0x129424,_0x1a328c){const _0x2939b9=a123_0x299a;if(!_0x1a328c||_0x1a328c[_0x2939b9(0x1c5)]===0x0)throw CliErrors[_0x2939b9(0x1ce)](_0x2939b9(0x1df)+_0x129424);return _0x1a328c;}export function extractDownloadedPackage(_0x13690a){const _0x4edff8=a123_0x299a,_0x588724=parseZipPackage(_0x13690a)[_0x4edff8(0x1e4)](_0x100741=>({'path':_0x100741['path'],'bytes':_0x100741[_0x4edff8(0x1ee)]}));if(!_0x588724[_0x4edff8(0x1db)](_0x2cc0ed=>_0x2cc0ed[_0x4edff8(0x1c3)]===SKILL_FILE))throw CliErrors[_0x4edff8(0x1ce)](_0x4edff8(0x1d4)+SKILL_FILE+'.');return normalizeLocalFiles(_0x588724);}export function localFilesToManifestFiles(_0x30352e){const _0xeef2f4=a123_0x299a;return normalizeLocalFiles(_0x30352e)[_0xeef2f4(0x1e4)](_0xb74d26=>({'path':_0xb74d26[_0xeef2f4(0x1c3)],'sha256':fileHash(_0xb74d26),'size':fileContent(_0xb74d26)['length']}));}function normalizePackageManifest(_0x23e73a,_0x54ca23){const _0x21435a=a123_0x299a;if(!_0x23e73a||typeof _0x23e73a!==_0x21435a(0x1d8)||Array[_0x21435a(0x1dd)](_0x23e73a))return undefined;const _0x25a67f=_0x23e73a,_0x2a4018=typeof _0x25a67f[_0x21435a(0x1d0)]==='string'?_0x25a67f[_0x21435a(0x1d0)]['trim']():undefined;if(_0x54ca23[_0x21435a(0x1d9)]&&!_0x2a4018)return undefined;if(!Array[_0x21435a(0x1dd)](_0x25a67f[_0x21435a(0x1ea)])||_0x25a67f[_0x21435a(0x1ea)][_0x21435a(0x1c5)]===0x0)return undefined;if(!isSha256Hex(_0x25a67f['treeSha256']))throw CliErrors[_0x21435a(0x1ce)](_0x21435a(0x1e3));if(!isSha256Hex(_0x25a67f['zipSha256']))throw CliErrors[_0x21435a(0x1ce)]('Runtime\x20Skill\x20package\x20sha256\x20is\x20invalid.');if(!Number['isSafeInteger'](_0x25a67f['zipSize'])||_0x25a67f[_0x21435a(0x1ca)]<0x0)throw CliErrors['validation']('Runtime\x20Skill\x20package\x20size\x20is\x20invalid.');const _0x3fc6a1=normalizeManifestFiles(_0x25a67f[_0x21435a(0x1ea)]);if(!_0x3fc6a1[_0x21435a(0x1db)](_0x4e58f4=>_0x4e58f4[_0x21435a(0x1c3)]===SKILL_FILE))throw CliErrors[_0x21435a(0x1ce)](_0x21435a(0x1eb)+SKILL_FILE+'.');const _0x5442f0=fileTreeHash(_0x3fc6a1);if(_0x5442f0!==_0x25a67f[_0x21435a(0x1d7)][_0x21435a(0x1e6)]())throw CliErrors[_0x21435a(0x1ce)]('Runtime\x20Skill\x20file\x20tree\x20sha256\x20mismatch.');return{'schemaVersion':Number[_0x21435a(0x1c7)](_0x25a67f['schemaVersion'])?_0x25a67f[_0x21435a(0x1d6)]:0x2,'ossPath':_0x2a4018,'treeSha256':_0x5442f0,'zipSha256':_0x25a67f[_0x21435a(0x1cc)][_0x21435a(0x1e6)](),'zipSize':_0x25a67f[_0x21435a(0x1ca)],'files':_0x3fc6a1};}function extractAndVerifyPackage(_0x36dd38,_0x4fc927){const _0x55fca5=a123_0x299a,_0x5226b0=normalizePackageManifest(_0x36dd38,{'requireOssPath':![]});if(!_0x5226b0)throw CliErrors[_0x55fca5(0x1ce)]('Runtime\x20Skill\x20package\x20manifest\x20is\x20missing.');if(_0x4fc927[_0x55fca5(0x1c5)]!==_0x5226b0['zipSize'])throw CliErrors['validation'](_0x55fca5(0x1e5));const _0x325910=bufferSha256(_0x4fc927);if(_0x325910!==_0x5226b0[_0x55fca5(0x1cc)])throw CliErrors[_0x55fca5(0x1ce)](_0x55fca5(0x1c8));return extractAndVerifyPackageFiles(_0x5226b0,_0x4fc927);}function extractAndVerifyPackageFiles(_0x1f5416,_0x4efb23){const _0x23ff88=a123_0x299a,_0x382028=parseZipPackage(_0x4efb23);if(_0x382028[_0x23ff88(0x1c5)]!==_0x1f5416[_0x23ff88(0x1ea)][_0x23ff88(0x1c5)])throw CliErrors[_0x23ff88(0x1ce)](_0x23ff88(0x1e7));const _0x5e57c6=new Map();for(const _0x20178d of _0x382028){if(_0x5e57c6['has'](_0x20178d['path']))throw CliErrors[_0x23ff88(0x1ce)](_0x23ff88(0x1d2)+_0x20178d[_0x23ff88(0x1c3)]);_0x5e57c6[_0x23ff88(0x1e2)](_0x20178d[_0x23ff88(0x1c3)],_0x20178d);}const _0xcded6=[];for(const _0xdb9baa of _0x1f5416[_0x23ff88(0x1ea)]){const _0x51004d=_0x5e57c6['get'](_0xdb9baa[_0x23ff88(0x1c3)]);if(!_0x51004d)throw CliErrors['validation'](_0x23ff88(0x1d5)+_0xdb9baa[_0x23ff88(0x1c3)]);if(_0x51004d['bytes']['length']!==_0xdb9baa[_0x23ff88(0x1c9)])throw CliErrors[_0x23ff88(0x1ce)](_0x23ff88(0x1e9)+_0xdb9baa['path']);const _0x1bf942=bufferSha256(_0x51004d['bytes']);if(_0x1bf942!==_0xdb9baa[_0x23ff88(0x1d1)])throw CliErrors[_0x23ff88(0x1ce)]('Runtime\x20Skill\x20package\x20file\x20sha256\x20mismatch:\x20'+_0xdb9baa[_0x23ff88(0x1c3)]);_0xcded6[_0x23ff88(0x1cb)]({'path':_0xdb9baa[_0x23ff88(0x1c3)],'bytes':_0x51004d[_0x23ff88(0x1ee)]});}return normalizeLocalFiles(_0xcded6);}
@@ -1 +1 @@
1
- (function(_0x2519b2,_0x2f44f5){var _0x2e6aeb=a122_0x6e45,_0x35f7bd=_0x2519b2();while(!![]){try{var _0x239600=parseInt(_0x2e6aeb(0x14b))/0x1+parseInt(_0x2e6aeb(0x14a))/0x2+-parseInt(_0x2e6aeb(0x14d))/0x3+-parseInt(_0x2e6aeb(0x14c))/0x4+parseInt(_0x2e6aeb(0x14e))/0x5+parseInt(_0x2e6aeb(0x14f))/0x6+parseInt(_0x2e6aeb(0x150))/0x7;if(_0x239600===_0x2f44f5)break;else _0x35f7bd['push'](_0x35f7bd['shift']());}catch(_0x4d011c){_0x35f7bd['push'](_0x35f7bd['shift']());}}}(a122_0x4e65,0xeacbd));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';function a122_0x6e45(_0x35efc0,_0x7fa9b){_0x35efc0=_0x35efc0-0x14a;var _0x4e6527=a122_0x4e65();var _0x6e4582=_0x4e6527[_0x35efc0];return _0x6e4582;}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';function a122_0x4e65(){var _0x91b2d0=['3890376FApyPl','5661500ptUGZX','7324458oOHuCn','1694889iXIyzD','1413776BZzfoq','127813oFzCqN','4685416anzLjp'];a122_0x4e65=function(){return _0x91b2d0;};return a122_0x4e65();}export{buildSkillPackage,verifyRuntimeSkillBundle,verifyRuntimeSkillPackage}from'./runtime-skill-sync/zip-package.js';
1
+ function a124_0x3ba6(){var _0xab8035=['1275906aKAUts','5709BVzTgD','1062730DQZHrl','88794SQopNF','12PqZczQ','39wKLPQX','24ZoFCBo','45GPNPjF','323393ppsBfB','6397090EZhJuP','564058rysFPb','6pRJuDU','1444KflHoO','5tHlPkO'];a124_0x3ba6=function(){return _0xab8035;};return a124_0x3ba6();}(function(_0x1e1a79,_0x503a44){var _0x1f9075=a124_0x549c,_0x520b3c=_0x1e1a79();while(!![]){try{var _0x1bd41a=-parseInt(_0x1f9075(0x170))/0x1*(-parseInt(_0x1f9075(0x176))/0x2)+parseInt(_0x1f9075(0x174))/0x3*(parseInt(_0x1f9075(0x171))/0x4)+-parseInt(_0x1f9075(0x172))/0x5*(-parseInt(_0x1f9075(0x173))/0x6)+parseInt(_0x1f9075(0x17b))/0x7*(parseInt(_0x1f9075(0x179))/0x8)+-parseInt(_0x1f9075(0x17a))/0x9*(-parseInt(_0x1f9075(0x175))/0xa)+-parseInt(_0x1f9075(0x17d))/0xb*(parseInt(_0x1f9075(0x177))/0xc)+-parseInt(_0x1f9075(0x178))/0xd*(parseInt(_0x1f9075(0x17c))/0xe);if(_0x1bd41a===_0x503a44)break;else _0x520b3c['push'](_0x520b3c['shift']());}catch(_0x2abdc6){_0x520b3c['push'](_0x520b3c['shift']());}}}(a124_0x3ba6,0x650c7));function a124_0x549c(_0x3908cb,_0x5c180e){_0x3908cb=_0x3908cb-0x170;var _0x3ba6b0=a124_0x3ba6();var _0x549c34=_0x3ba6b0[_0x3908cb];return _0x549c34;}export{contentHash,fileTreeHash}from'./runtime-skill-sync/hashing.js';export{linkEffectiveRuntimeSkills,linkGlobalRuntimeSkills,pruneStaleRuntimeSkillCache,pruneStaleRuntimeSkillLinks}from'./runtime-skill-sync/links.js';export{resolveRuntimeSkillInstallTarget}from'./runtime-skill-sync/install-target.js';export{listLocalRuntimeSkills}from'./runtime-skill-sync/list-local.js';export{materializeRuntimeSkill}from'./runtime-skill-sync/materialize.js';export{readMetadataIfPresent}from'./runtime-skill-sync/metadata.js';export{getRuntimeSkillCacheRoot,getRuntimeSkillDir,resolveSkillSyncPaths,runtimeAgentSkillRoots}from'./runtime-skill-sync/paths.js';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
- const a123_0x429e5a=a123_0x4562;(function(_0x2d4d83,_0x3bd202){const _0x39a36d=a123_0x4562,_0x42c522=_0x2d4d83();while(!![]){try{const _0x256794=parseInt(_0x39a36d(0x190))/0x1*(-parseInt(_0x39a36d(0x17e))/0x2)+-parseInt(_0x39a36d(0x18d))/0x3*(-parseInt(_0x39a36d(0x193))/0x4)+-parseInt(_0x39a36d(0x18a))/0x5+parseInt(_0x39a36d(0x17b))/0x6+parseInt(_0x39a36d(0x196))/0x7+-parseInt(_0x39a36d(0x182))/0x8+parseInt(_0x39a36d(0x18f))/0x9*(parseInt(_0x39a36d(0x180))/0xa);if(_0x256794===_0x3bd202)break;else _0x42c522['push'](_0x42c522['shift']());}catch(_0x52ecb5){_0x42c522['push'](_0x42c522['shift']());}}}(a123_0x4536,0x3b706));function a123_0x4562(_0x592b69,_0x3884ab){_0x592b69=_0x592b69-0x178;const _0x4536a3=a123_0x4536();let _0x4562f8=_0x4536a3[_0x592b69];return _0x4562f8;}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';function a123_0x4536(){const _0x140e8b=['find','present','220370qJgEhr','globalSkillsDirs','11650njaJwg','recorded','2865856sGOPIk','\x20is\x20unreadable:\x20','object','.agents','\x20uses\x20unsupported\x20version\x20','.claude','home','\x20records\x20\x22','73430ZQtcdy','lockFile','unverifiable','336759OGFzLf','version','3177KHCXxW','3myVlNR','reason','map','4grDLKa','message','not-recorded','566657AWEJmv','unusable','join','SKILL.md','\x20has\x20no\x20skills\x20map','skills','kind','utf8','2054916mjkXSW'];a123_0x4536=function(){return _0x140e8b;};return a123_0x4536();}import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a123_0x429e5a(0x185),'.skill-lock.json');export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a123_0x429e5a(0x185),'skills'),join(a123_0x429e5a(0x187),a123_0x429e5a(0x178))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x590285,_0x21b489){const _0x3c26d2=a123_0x429e5a;if(!existsSync(_0x590285))return{'kind':_0x3c26d2(0x195)};let _0x2b1b6e;try{_0x2b1b6e=JSON['parse'](readFileSync(_0x590285,_0x3c26d2(0x17a)));}catch(_0x11de94){return{'kind':_0x3c26d2(0x197),'reason':_0x590285+_0x3c26d2(0x183)+_0x11de94[_0x3c26d2(0x194)]};}const _0x416d89=_0x2b1b6e;if(typeof _0x416d89?.['version']!=='number'||!SUPPORTED_LOCK_VERSIONS['includes'](_0x416d89[_0x3c26d2(0x18e)]))return{'kind':_0x3c26d2(0x197),'reason':_0x590285+_0x3c26d2(0x186)+String(_0x416d89?.[_0x3c26d2(0x18e)])};if(!_0x416d89[_0x3c26d2(0x178)]||typeof _0x416d89[_0x3c26d2(0x178)]!==_0x3c26d2(0x184))return{'kind':_0x3c26d2(0x197),'reason':_0x590285+_0x3c26d2(0x19a)};return _0x416d89[_0x3c26d2(0x178)][_0x21b489]?{'kind':_0x3c26d2(0x181)}:{'kind':'not-recorded'};}export function resolveInstalledSkill(_0x9d66a5,_0x26875f){const _0x36ce6f=a123_0x429e5a,_0x19bdef=_0x26875f?.[_0x36ce6f(0x188)]??homedir(),_0x3cc3a9=_0x26875f?.[_0x36ce6f(0x17f)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x36ce6f(0x192)](_0x29b3b1=>join(_0x19bdef,_0x29b3b1)),_0x29f795=_0x26875f?.[_0x36ce6f(0x18b)]??join(_0x19bdef,SKILL_LOCK_RELATIVE_PATH),_0x3856ba=_0x3cc3a9[_0x36ce6f(0x192)](_0xb5d3eb=>join(_0xb5d3eb,_0x9d66a5,_0x36ce6f(0x199))),_0x5bab9a=_0x3856ba[_0x36ce6f(0x17c)](_0x47a31f=>existsSync(_0x47a31f));if(_0x5bab9a)return{'state':_0x36ce6f(0x17d),'path':_0x5bab9a};const _0x5aeb4d=readLockLookup(_0x29f795,_0x9d66a5);if(_0x5aeb4d['kind']===_0x36ce6f(0x197))return{'state':_0x36ce6f(0x18c),'reason':_0x5aeb4d[_0x36ce6f(0x191)]};if(_0x5aeb4d[_0x36ce6f(0x179)]===_0x36ce6f(0x181))return{'state':_0x36ce6f(0x18c),'reason':_0x29f795+_0x36ce6f(0x189)+_0x9d66a5+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x3856ba[_0x36ce6f(0x198)](',\x20')+')')};return{'state':'absent','checked':_0x3856ba};}
1
+ function a125_0x3142(){const _0x1a9a84=['parse','not-recorded','lockFile','recorded','reason','join','SKILL.md','skills','228KCatgX','map','3167012jXkxCz','version','.agents','number','unusable','14139glSECQ','object','.claude','kind','1217060AkZkpf','64gZBJjb','5286ESDwRf','.skill-lock.json','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','unverifiable','utf8','3611328uoxinZ','13251000zpOtVZ','8848DODVbN','\x20records\x20\x22','\x20is\x20unreadable:\x20','\x20has\x20no\x20skills\x20map','1112JyNkFA','\x20uses\x20unsupported\x20version\x20','home','find'];a125_0x3142=function(){return _0x1a9a84;};return a125_0x3142();}const a125_0x429b55=a125_0x1aad;(function(_0x59a9b1,_0x240bec){const _0x16b674=a125_0x1aad,_0x2b4316=_0x59a9b1();while(!![]){try{const _0x282877=parseInt(_0x16b674(0x1f7))/0x1*(parseInt(_0x16b674(0x1f8))/0x2)+-parseInt(_0x16b674(0x1fd))/0x3+parseInt(_0x16b674(0x211))/0x4+-parseInt(_0x16b674(0x1f6))/0x5+parseInt(_0x16b674(0x20f))/0x6*(parseInt(_0x16b674(0x1ff))/0x7)+-parseInt(_0x16b674(0x203))/0x8*(parseInt(_0x16b674(0x216))/0x9)+parseInt(_0x16b674(0x1fe))/0xa;if(_0x282877===_0x240bec)break;else _0x2b4316['push'](_0x2b4316['shift']());}catch(_0xa8c45c){_0x2b4316['push'](_0x2b4316['shift']());}}}(a125_0x3142,0xa3340));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a125_0x429b55(0x213),a125_0x429b55(0x1f9));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a125_0x429b55(0x213),a125_0x429b55(0x20e)),join(a125_0x429b55(0x1f4),a125_0x429b55(0x20e))];function a125_0x1aad(_0x127003,_0xf2874c){_0x127003=_0x127003-0x1f3;const _0x314214=a125_0x3142();let _0x1aad8a=_0x314214[_0x127003];return _0x1aad8a;}const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x6f3c0d,_0xf82d7b){const _0x3172c4=a125_0x429b55;if(!existsSync(_0x6f3c0d))return{'kind':_0x3172c4(0x208)};let _0x5f5337;try{_0x5f5337=JSON[_0x3172c4(0x207)](readFileSync(_0x6f3c0d,_0x3172c4(0x1fc)));}catch(_0x4ce695){return{'kind':_0x3172c4(0x215),'reason':_0x6f3c0d+_0x3172c4(0x201)+_0x4ce695['message']};}const _0x87201=_0x5f5337;if(typeof _0x87201?.[_0x3172c4(0x212)]!==_0x3172c4(0x214)||!SUPPORTED_LOCK_VERSIONS['includes'](_0x87201['version']))return{'kind':_0x3172c4(0x215),'reason':_0x6f3c0d+_0x3172c4(0x204)+String(_0x87201?.['version'])};if(!_0x87201['skills']||typeof _0x87201[_0x3172c4(0x20e)]!==_0x3172c4(0x1f3))return{'kind':_0x3172c4(0x215),'reason':_0x6f3c0d+_0x3172c4(0x202)};return _0x87201[_0x3172c4(0x20e)][_0xf82d7b]?{'kind':'recorded'}:{'kind':'not-recorded'};}export function resolveInstalledSkill(_0x48e930,_0x4ced95){const _0xe34afb=a125_0x429b55,_0x23565a=_0x4ced95?.[_0xe34afb(0x205)]??homedir(),_0x45ed50=_0x4ced95?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0xe34afb(0x210)](_0x1773b1=>join(_0x23565a,_0x1773b1)),_0x49c2ea=_0x4ced95?.[_0xe34afb(0x209)]??join(_0x23565a,SKILL_LOCK_RELATIVE_PATH),_0x28eb18=_0x45ed50[_0xe34afb(0x210)](_0x289b47=>join(_0x289b47,_0x48e930,_0xe34afb(0x20d))),_0x34bfa4=_0x28eb18[_0xe34afb(0x206)](_0x109332=>existsSync(_0x109332));if(_0x34bfa4)return{'state':'present','path':_0x34bfa4};const _0x3d3d19=readLockLookup(_0x49c2ea,_0x48e930);if(_0x3d3d19[_0xe34afb(0x1f5)]==='unusable')return{'state':_0xe34afb(0x1fb),'reason':_0x3d3d19[_0xe34afb(0x20b)]};if(_0x3d3d19[_0xe34afb(0x1f5)]===_0xe34afb(0x20a))return{'state':_0xe34afb(0x1fb),'reason':_0x49c2ea+_0xe34afb(0x200)+_0x48e930+_0xe34afb(0x1fa)+('('+_0x28eb18[_0xe34afb(0x20c)](',\x20')+')')};return{'state':'absent','checked':_0x28eb18};}
@@ -1 +1 @@
1
- (function(_0x3dcd06,_0x5e4619){const _0x4b1d8d=a124_0x256f,_0x13a262=_0x3dcd06();while(!![]){try{const _0x3458f4=-parseInt(_0x4b1d8d(0x112))/0x1+-parseInt(_0x4b1d8d(0x10f))/0x2*(-parseInt(_0x4b1d8d(0x114))/0x3)+parseInt(_0x4b1d8d(0x115))/0x4+parseInt(_0x4b1d8d(0x113))/0x5+parseInt(_0x4b1d8d(0x111))/0x6*(parseInt(_0x4b1d8d(0x10d))/0x7)+parseInt(_0x4b1d8d(0x110))/0x8+-parseInt(_0x4b1d8d(0x10e))/0x9;if(_0x3458f4===_0x5e4619)break;else _0x13a262['push'](_0x13a262['shift']());}catch(_0x3e70d6){_0x13a262['push'](_0x13a262['shift']());}}}(a124_0x2bc8,0x61b4b));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a124_0x256f(_0x5f3ad2,_0x3c426e){_0x5f3ad2=_0x5f3ad2-0x10d;const _0x2bc8b5=a124_0x2bc8();let _0x256f9c=_0x2bc8b5[_0x5f3ad2];return _0x256f9c;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a124_0x2bc8(){const _0x54c6de=['321909OGzdcH','319616ldDVNS','252203WUdBpS','4131639zlGVme','2xwxotO','4887984ZvySFn','42OxAeEu','675065czwZWz','2419655lyMYGR'];a124_0x2bc8=function(){return _0x54c6de;};return a124_0x2bc8();}
1
+ (function(_0x54b85f,_0x45871a){const _0x26b6b9=a126_0x368d,_0x96de20=_0x54b85f();while(!![]){try{const _0x1bf8df=-parseInt(_0x26b6b9(0x17e))/0x1*(-parseInt(_0x26b6b9(0x174))/0x2)+parseInt(_0x26b6b9(0x179))/0x3*(parseInt(_0x26b6b9(0x177))/0x4)+-parseInt(_0x26b6b9(0x17d))/0x5*(parseInt(_0x26b6b9(0x17a))/0x6)+-parseInt(_0x26b6b9(0x17b))/0x7+-parseInt(_0x26b6b9(0x17c))/0x8+-parseInt(_0x26b6b9(0x175))/0x9*(-parseInt(_0x26b6b9(0x178))/0xa)+parseInt(_0x26b6b9(0x176))/0xb;if(_0x1bf8df===_0x45871a)break;else _0x96de20['push'](_0x96de20['shift']());}catch(_0x401952){_0x96de20['push'](_0x96de20['shift']());}}}(a126_0x1e65,0xd4405));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a126_0x368d(_0x46880e,_0x279915){_0x46880e=_0x46880e-0x174;const _0x1e6510=a126_0x1e65();let _0x368dc3=_0x1e6510[_0x46880e];return _0x368dc3;}function a126_0x1e65(){const _0x1fecca=['1920HzctOi','96774EchuPs','1956300wFmEKu','10721508RrGTZa','12735608jVUVaM','25MyCVgV','29YGoRZm','7216rzVRrH','234lZVsCP','58520594ornQmX','24loUCOI'];a126_0x1e65=function(){return _0x1fecca;};return a126_0x1e65();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- const a125_0x5b31d7=a125_0x1073;function a125_0x1073(_0x44bd76,_0x51f7a1){_0x44bd76=_0x44bd76-0x1d7;const _0x40f127=a125_0x40f1();let _0x10731a=_0x40f127[_0x44bd76];return _0x10731a;}(function(_0x1d17a1,_0x2f722e){const _0x3c4e9a=a125_0x1073,_0x19b1a6=_0x1d17a1();while(!![]){try{const _0x154485=parseInt(_0x3c4e9a(0x1e4))/0x1+parseInt(_0x3c4e9a(0x20f))/0x2*(parseInt(_0x3c4e9a(0x1e5))/0x3)+-parseInt(_0x3c4e9a(0x211))/0x4+-parseInt(_0x3c4e9a(0x203))/0x5+-parseInt(_0x3c4e9a(0x1f1))/0x6*(parseInt(_0x3c4e9a(0x1dd))/0x7)+parseInt(_0x3c4e9a(0x210))/0x8*(-parseInt(_0x3c4e9a(0x208))/0x9)+-parseInt(_0x3c4e9a(0x1e6))/0xa*(-parseInt(_0x3c4e9a(0x20b))/0xb);if(_0x154485===_0x2f722e)break;else _0x19b1a6['push'](_0x19b1a6['shift']());}catch(_0x18ac6f){_0x19b1a6['push'](_0x19b1a6['shift']());}}}(a125_0x40f1,0x437d9));import a125_0x1885c9 from'winston';import a125_0x5d9be9 from'node:fs';import a125_0x37d73d from'node:path';function a125_0x40f1(){const _0x12ea68=['error','utf8','timestamp','writeFileSync','blue','initWinstonLogger','71646hTcbgL','combine','logFilePath','errors','join','warn','trim','map','existsSync','Completed:\x20','rawCommand','getWinstonInstance','readLogs','success','info','createLogger','filter','now','214920XZiBMU','split','command','readFileSync','log','522EuHLVN','clearLogs','red','156552sKbqsN','parse','transports','setRawCommand','160qpxzmr','49944wjZEEb','1830748qxewTd','mkdirSync','format','toISOString','level','logFileName','yellow','238CUWSuo','Failed\x20to\x20clear\x20logs:','message','currentRawCommand','Starting:\x20','details','Failed\x20to\x20read\x20logs:','542928IzopDE','2361PwyLkb','660NjwgHS','logTask','Failed:\x20','winstonLogger','duration'];a125_0x40f1=function(){return _0x12ea68;};return a125_0x40f1();}import{PRODUCT_CONFIG}from'../constant/product.js';class Logger{[a125_0x5b31d7(0x1e9)];[a125_0x5b31d7(0x1f3)]='';[a125_0x5b31d7(0x1e0)]='';constructor(){}[a125_0x5b31d7(0x20e)](_0x40130c){const _0x297a7c=a125_0x5b31d7;this[_0x297a7c(0x1e0)]=_0x40130c;}['setLogPath'](_0x2170d6){const _0x5996ec=a125_0x5b31d7;this[_0x5996ec(0x1f3)]=a125_0x37d73d[_0x5996ec(0x1f5)](_0x2170d6,PRODUCT_CONFIG[_0x5996ec(0x1db)]),this[_0x5996ec(0x1e9)]&&this[_0x5996ec(0x1e9)]['clear'](),this[_0x5996ec(0x1f0)]();}[a125_0x5b31d7(0x1f0)](){const _0x103413=a125_0x5b31d7,_0x5a3ca7=a125_0x37d73d['dirname'](this[_0x103413(0x1f3)]);!a125_0x5d9be9[_0x103413(0x1f9)](_0x5a3ca7)&&a125_0x5d9be9[_0x103413(0x1d7)](_0x5a3ca7,{'recursive':!![]});const _0x3e4de6=a125_0x1885c9[_0x103413(0x1d8)][_0x103413(0x1f2)](a125_0x1885c9[_0x103413(0x1d8)]['timestamp'](),a125_0x1885c9['format'][_0x103413(0x1f4)]({'stack':!![]}),a125_0x1885c9[_0x103413(0x1d8)]['printf'](_0x462401=>{const _0x4e5253=_0x103413,_0x436e5e={'timestamp':_0x462401[_0x4e5253(0x1ed)]||new Date()[_0x4e5253(0x1d9)](),'level':_0x462401[_0x4e5253(0x1da)]||_0x4e5253(0x1ff),'command':_0x462401[_0x4e5253(0x205)]||'unknown','rawCommand':_0x462401[_0x4e5253(0x1fb)]||this[_0x4e5253(0x1e0)]||undefined,'message':_0x462401['message']||'','duration':_0x462401[_0x4e5253(0x1ea)]||undefined,'details':_0x462401[_0x4e5253(0x1e2)]||undefined};return JSON['stringify'](_0x436e5e);}));this[_0x103413(0x1e9)]=a125_0x1885c9[_0x103413(0x200)]({'level':'info','format':_0x3e4de6,'transports':[new a125_0x1885c9[(_0x103413(0x20d))]['File']({'filename':this['logFilePath'],'level':_0x103413(0x1ff)})],'silent':![]}),a125_0x1885c9['addColors']({'success':'green','error':_0x103413(0x20a),'warn':_0x103413(0x1dc),'info':_0x103413(0x1ef)});}[a125_0x5b31d7(0x1ff)](_0x2fcd12,_0x2013ea,_0x52b55d){const _0x4e742f=a125_0x5b31d7;if(!this['logFilePath']||!this[_0x4e742f(0x1e9)])return;this[_0x4e742f(0x1e9)][_0x4e742f(0x1ff)](_0x2013ea,{'command':_0x2fcd12,'details':_0x52b55d});}['success'](_0x119ec7,_0x17dbbe,_0x4cccb3,_0x2b6062){const _0x24d346=a125_0x5b31d7;if(!this[_0x24d346(0x1f3)]||!this['winstonLogger'])return;this['winstonLogger'][_0x24d346(0x207)](_0x24d346(0x1ff),_0x17dbbe,{'level':_0x24d346(0x1fe),'command':_0x119ec7,'duration':_0x4cccb3,'details':_0x2b6062});}[a125_0x5b31d7(0x1eb)](_0x443f33,_0x20c84f,_0x7abe1e){const _0x596a84=a125_0x5b31d7;if(!this[_0x596a84(0x1f3)]||!this[_0x596a84(0x1e9)])return;this[_0x596a84(0x1e9)]['error'](_0x20c84f,{'command':_0x443f33,'details':_0x7abe1e});}[a125_0x5b31d7(0x1f6)](_0x41de40,_0x109027,_0x2c0ce0){const _0x545895=a125_0x5b31d7;if(!this['logFilePath']||!this['winstonLogger'])return;this['winstonLogger'][_0x545895(0x1f6)](_0x109027,{'command':_0x41de40,'details':_0x2c0ce0});}async[a125_0x5b31d7(0x1e7)](_0x4c4e4a,_0x13ae43,_0x1e05ad){const _0x5024d3=a125_0x5b31d7,_0x302cad=Date[_0x5024d3(0x202)]();this[_0x5024d3(0x1ff)](_0x4c4e4a,_0x5024d3(0x1e1)+_0x13ae43);try{const _0x1223fc=await _0x1e05ad(),_0x16a97b=Date[_0x5024d3(0x202)]()-_0x302cad;return this[_0x5024d3(0x1fe)](_0x4c4e4a,_0x5024d3(0x1fa)+_0x13ae43,_0x16a97b),_0x1223fc;}catch(_0x2ec860){const _0x1de2fc=Date['now']()-_0x302cad;this[_0x5024d3(0x1eb)](_0x4c4e4a,_0x5024d3(0x1e8)+_0x13ae43,{'error':_0x2ec860 instanceof Error?_0x2ec860[_0x5024d3(0x1df)]:String(_0x2ec860),'duration':_0x1de2fc});throw _0x2ec860;}}[a125_0x5b31d7(0x1fd)](){const _0x36c054=a125_0x5b31d7;try{if(!a125_0x5d9be9[_0x36c054(0x1f9)](this[_0x36c054(0x1f3)]))return[];const _0x4f9b4e=a125_0x5d9be9[_0x36c054(0x206)](this[_0x36c054(0x1f3)],_0x36c054(0x1ec));return _0x4f9b4e[_0x36c054(0x204)](/\r?\n/)[_0x36c054(0x201)](_0x19aa87=>_0x19aa87[_0x36c054(0x1f7)]())[_0x36c054(0x1f8)](_0x4ed166=>JSON[_0x36c054(0x20c)](_0x4ed166));}catch(_0x4c1648){return console[_0x36c054(0x1f6)](_0x36c054(0x1e3),_0x4c1648),[];}}[a125_0x5b31d7(0x209)](){const _0x53299a=a125_0x5b31d7;try{a125_0x5d9be9['existsSync'](this['logFilePath'])&&a125_0x5d9be9[_0x53299a(0x1ee)](this[_0x53299a(0x1f3)],'',_0x53299a(0x1ec));}catch(_0x1c461d){console[_0x53299a(0x1f6)](_0x53299a(0x1de),_0x1c461d);}}[a125_0x5b31d7(0x1fc)](){const _0x315fae=a125_0x5b31d7;return this[_0x315fae(0x1e9)];}}export const logger=new Logger();
1
+ const a127_0x19db5c=a127_0x17eb;(function(_0x5d4f58,_0x301204){const _0x39e137=a127_0x17eb,_0x5716e9=_0x5d4f58();while(!![]){try{const _0x2b60c2=-parseInt(_0x39e137(0xba))/0x1+parseInt(_0x39e137(0xef))/0x2+-parseInt(_0x39e137(0xc3))/0x3*(parseInt(_0x39e137(0xb4))/0x4)+parseInt(_0x39e137(0xde))/0x5+-parseInt(_0x39e137(0xc5))/0x6*(parseInt(_0x39e137(0xd5))/0x7)+parseInt(_0x39e137(0xc9))/0x8*(parseInt(_0x39e137(0xc1))/0x9)+parseInt(_0x39e137(0xdd))/0xa;if(_0x2b60c2===_0x301204)break;else _0x5716e9['push'](_0x5716e9['shift']());}catch(_0x29255f){_0x5716e9['push'](_0x5716e9['shift']());}}}(a127_0x191b,0x7a473));function a127_0x17eb(_0x50bc67,_0x5493d5){_0x50bc67=_0x50bc67-0xb4;const _0x191b09=a127_0x191b();let _0x17eb64=_0x191b09[_0x50bc67];return _0x17eb64;}import a127_0x1fad12 from'winston';import a127_0x4d87ab from'node:fs';import a127_0x4554b1 from'node:path';import{PRODUCT_CONFIG}from'../constant/product.js';function a127_0x191b(){const _0x21c1a2=['timestamp','existsSync','now','File','1597240rMNAHb','winstonLogger','1884BBoisL','createLogger','clearLogs','details','trim','utf8','718114YDjybe','Failed\x20to\x20read\x20logs:','currentRawCommand','Starting:\x20','toISOString','message','red','765621BMHuLk','dirname','2298AHYGTo','logTask','4213188pBzEOq','green','filter','blue','16jPNQfg','mkdirSync','error','printf','errors','map','format','Completed:\x20','level','transports','setRawCommand','command','7xzeCVq','rawCommand','initWinstonLogger','join','logFilePath','stringify','combine','warn','5717200iqkYGZ','3707355fJskLD','duration','readLogs','info','split','success','addColors','log','clear','Failed\x20to\x20clear\x20logs:','yellow','setLogPath','Failed:\x20'];a127_0x191b=function(){return _0x21c1a2;};return a127_0x191b();}class Logger{['winstonLogger'];[a127_0x19db5c(0xd9)]='';[a127_0x19db5c(0xbc)]='';constructor(){}[a127_0x19db5c(0xd3)](_0xc7eae){const _0x49c6cc=a127_0x19db5c;this[_0x49c6cc(0xbc)]=_0xc7eae;}[a127_0x19db5c(0xe9)](_0x16b1d8){const _0x2a5306=a127_0x19db5c;this[_0x2a5306(0xd9)]=a127_0x4554b1[_0x2a5306(0xd8)](_0x16b1d8,PRODUCT_CONFIG['logFileName']),this['winstonLogger']&&this[_0x2a5306(0xf0)][_0x2a5306(0xe6)](),this[_0x2a5306(0xd7)]();}[a127_0x19db5c(0xd7)](){const _0x169ef0=a127_0x19db5c,_0x59987f=a127_0x4554b1[_0x169ef0(0xc2)](this[_0x169ef0(0xd9)]);!a127_0x4d87ab[_0x169ef0(0xec)](_0x59987f)&&a127_0x4d87ab[_0x169ef0(0xca)](_0x59987f,{'recursive':!![]});const _0x468b56=a127_0x1fad12[_0x169ef0(0xcf)][_0x169ef0(0xdb)](a127_0x1fad12[_0x169ef0(0xcf)][_0x169ef0(0xeb)](),a127_0x1fad12[_0x169ef0(0xcf)][_0x169ef0(0xcd)]({'stack':!![]}),a127_0x1fad12[_0x169ef0(0xcf)][_0x169ef0(0xcc)](_0x42bc60=>{const _0x19804d=_0x169ef0,_0xaa568a={'timestamp':_0x42bc60[_0x19804d(0xeb)]||new Date()[_0x19804d(0xbe)](),'level':_0x42bc60[_0x19804d(0xd1)]||_0x19804d(0xe1),'command':_0x42bc60[_0x19804d(0xd4)]||'unknown','rawCommand':_0x42bc60[_0x19804d(0xd6)]||this[_0x19804d(0xbc)]||undefined,'message':_0x42bc60[_0x19804d(0xbf)]||'','duration':_0x42bc60[_0x19804d(0xdf)]||undefined,'details':_0x42bc60[_0x19804d(0xb7)]||undefined};return JSON[_0x19804d(0xda)](_0xaa568a);}));this['winstonLogger']=a127_0x1fad12[_0x169ef0(0xb5)]({'level':'info','format':_0x468b56,'transports':[new a127_0x1fad12[(_0x169ef0(0xd2))][(_0x169ef0(0xee))]({'filename':this[_0x169ef0(0xd9)],'level':_0x169ef0(0xe1)})],'silent':![]}),a127_0x1fad12[_0x169ef0(0xe4)]({'success':_0x169ef0(0xc6),'error':_0x169ef0(0xc0),'warn':_0x169ef0(0xe8),'info':_0x169ef0(0xc8)});}[a127_0x19db5c(0xe1)](_0x466da8,_0x2f88c1,_0xf0dffd){const _0x29fd1d=a127_0x19db5c;if(!this[_0x29fd1d(0xd9)]||!this[_0x29fd1d(0xf0)])return;this['winstonLogger'][_0x29fd1d(0xe1)](_0x2f88c1,{'command':_0x466da8,'details':_0xf0dffd});}[a127_0x19db5c(0xe3)](_0x3b45b0,_0x22030c,_0x318b00,_0xa94edb){const _0xab9d9e=a127_0x19db5c;if(!this['logFilePath']||!this[_0xab9d9e(0xf0)])return;this[_0xab9d9e(0xf0)][_0xab9d9e(0xe5)](_0xab9d9e(0xe1),_0x22030c,{'level':_0xab9d9e(0xe3),'command':_0x3b45b0,'duration':_0x318b00,'details':_0xa94edb});}[a127_0x19db5c(0xcb)](_0x27b7bf,_0x3fdc72,_0x3111d9){const _0x1cae8a=a127_0x19db5c;if(!this['logFilePath']||!this[_0x1cae8a(0xf0)])return;this[_0x1cae8a(0xf0)]['error'](_0x3fdc72,{'command':_0x27b7bf,'details':_0x3111d9});}[a127_0x19db5c(0xdc)](_0x14e451,_0x5bca70,_0x3c386b){const _0x5e35ff=a127_0x19db5c;if(!this['logFilePath']||!this[_0x5e35ff(0xf0)])return;this[_0x5e35ff(0xf0)][_0x5e35ff(0xdc)](_0x5bca70,{'command':_0x14e451,'details':_0x3c386b});}async[a127_0x19db5c(0xc4)](_0x26de5a,_0x2ea398,_0x5a65f3){const _0x408de2=a127_0x19db5c,_0x20babc=Date[_0x408de2(0xed)]();this[_0x408de2(0xe1)](_0x26de5a,_0x408de2(0xbd)+_0x2ea398);try{const _0x5cbbda=await _0x5a65f3(),_0x439ac3=Date[_0x408de2(0xed)]()-_0x20babc;return this['success'](_0x26de5a,_0x408de2(0xd0)+_0x2ea398,_0x439ac3),_0x5cbbda;}catch(_0x57a437){const _0x43702a=Date[_0x408de2(0xed)]()-_0x20babc;this[_0x408de2(0xcb)](_0x26de5a,_0x408de2(0xea)+_0x2ea398,{'error':_0x57a437 instanceof Error?_0x57a437['message']:String(_0x57a437),'duration':_0x43702a});throw _0x57a437;}}[a127_0x19db5c(0xe0)](){const _0x571910=a127_0x19db5c;try{if(!a127_0x4d87ab[_0x571910(0xec)](this[_0x571910(0xd9)]))return[];const _0x461858=a127_0x4d87ab['readFileSync'](this[_0x571910(0xd9)],_0x571910(0xb9));return _0x461858[_0x571910(0xe2)](/\r?\n/)[_0x571910(0xc7)](_0x56022c=>_0x56022c[_0x571910(0xb8)]())[_0x571910(0xce)](_0x191132=>JSON['parse'](_0x191132));}catch(_0x84aa30){return console[_0x571910(0xdc)](_0x571910(0xbb),_0x84aa30),[];}}[a127_0x19db5c(0xb6)](){const _0x1544ea=a127_0x19db5c;try{a127_0x4d87ab[_0x1544ea(0xec)](this[_0x1544ea(0xd9)])&&a127_0x4d87ab['writeFileSync'](this[_0x1544ea(0xd9)],'',_0x1544ea(0xb9));}catch(_0xa618fa){console[_0x1544ea(0xdc)](_0x1544ea(0xe7),_0xa618fa);}}['getWinstonInstance'](){return this['winstonLogger'];}}export const logger=new Logger();
@@ -1 +1 @@
1
- const a126_0x2b9abb=a126_0xefba;function a126_0x2dcf(){const _0x2d5401=['1290646rdnFhe','prototype','exec','6264140IprQzj','text','slice','2607745mRAGjk','792066jfWdjU','json','undefined','11PvWXmy','parse','39011oQfiYo','defineProperty','length','includes','MIN_SAFE_INTEGER','MAX_SAFE_INTEGER','168CEiAGi','7740GfXUWc','1711508PqvOty','4952tOwdyu','3qOtQdm','getOwnPropertyDescriptor'];a126_0x2dcf=function(){return _0x2d5401;};return a126_0x2dcf();}function a126_0xefba(_0x4bf264,_0x5e9bd8){_0x4bf264=_0x4bf264-0x102;const _0x2dcf7b=a126_0x2dcf();let _0xefba6f=_0x2dcf7b[_0x4bf264];return _0xefba6f;}(function(_0x1d4082,_0x4e5164){const _0x1959dc=a126_0xefba,_0xc0acde=_0x1d4082();while(!![]){try{const _0xf043e5=parseInt(_0x1959dc(0x103))/0x1+parseInt(_0x1959dc(0x114))/0x2+-parseInt(_0x1959dc(0x112))/0x3*(parseInt(_0x1959dc(0x110))/0x4)+-parseInt(_0x1959dc(0x102))/0x5+parseInt(_0x1959dc(0x10e))/0x6*(-parseInt(_0x1959dc(0x108))/0x7)+parseInt(_0x1959dc(0x111))/0x8*(-parseInt(_0x1959dc(0x10f))/0x9)+-parseInt(_0x1959dc(0x117))/0xa*(-parseInt(_0x1959dc(0x106))/0xb);if(_0xf043e5===_0x4e5164)break;else _0xc0acde['push'](_0xc0acde['shift']());}catch(_0x3d7348){_0xc0acde['push'](_0xc0acde['shift']());}}}(a126_0x2dcf,0x68009));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a126_0x2b9abb(0x10d)]),MIN_SAFE_INTEGER=BigInt(Number[a126_0x2b9abb(0x10c)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0xc3a1cf){const _0x25311b=a126_0x2b9abb;if(_0xc3a1cf[_0x25311b(0x10b)]('.')||_0xc3a1cf[_0x25311b(0x10b)]('e')||_0xc3a1cf['includes']('E'))return![];const _0x3e069b=BigInt(_0xc3a1cf);return _0x3e069b>MAX_SAFE_INTEGER||_0x3e069b<MIN_SAFE_INTEGER;}function quoteUnsafeIntegerLiterals(_0xfcb947){const _0x40f6dc=a126_0x2b9abb;let _0x3bd1a1='',_0x323087=![],_0x2b9d9a=![];for(let _0x404575=0x0;_0x404575<_0xfcb947[_0x40f6dc(0x10a)];){const _0x38059d=_0xfcb947[_0x404575];if(_0x323087){_0x3bd1a1+=_0x38059d,_0x404575+=0x1;if(_0x2b9d9a)_0x2b9d9a=![];else{if(_0x38059d==='\x5c')_0x2b9d9a=!![];else _0x38059d==='\x22'&&(_0x323087=![]);}continue;}if(_0x38059d==='\x22'){_0x323087=!![],_0x3bd1a1+=_0x38059d,_0x404575+=0x1;continue;}if(_0x38059d==='-'||_0x38059d>='0'&&_0x38059d<='9'){const _0x3300a8=JSON_NUMBER_PATTERN[_0x40f6dc(0x116)](_0xfcb947[_0x40f6dc(0x119)](_0x404575))?.[0x0];if(_0x3300a8){_0x3bd1a1+=isUnsafeIntegerLiteral(_0x3300a8)?'\x22'+_0x3300a8+'\x22':_0x3300a8,_0x404575+=_0x3300a8[_0x40f6dc(0x10a)];continue;}}_0x3bd1a1+=_0x38059d,_0x404575+=0x1;}return _0x3bd1a1;}export function parseLosslessJson(_0x25394e){const _0x4b54f6=a126_0x2b9abb;return JSON[_0x4b54f6(0x107)](quoteUnsafeIntegerLiterals(_0x25394e));}export function installLosslessJsonResponseParser(){const _0x3cd2fa=a126_0x2b9abb;if(typeof Response===_0x3cd2fa(0x105))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response[_0x3cd2fa(0x115)],originalResponseJsonDescriptor=Object[_0x3cd2fa(0x113)](responseJsonPrototype,_0x3cd2fa(0x104)),Object[_0x3cd2fa(0x109)](responseJsonPrototype,_0x3cd2fa(0x104),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x4f4bbf(){const _0x577a20=_0x3cd2fa;return parseLosslessJson(await this[_0x577a20(0x118)]());}}),restoreResponseJsonParser=()=>{const _0x36ef4c=_0x3cd2fa;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object[_0x36ef4c(0x109)](responseJsonPrototype,_0x36ef4c(0x104),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x36ef4c(0x104)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}
1
+ function a128_0x5b3a(){const _0x20f647=['MIN_SAFE_INTEGER','includes','345688FVMdxE','undefined','4giUcQK','190839ozegvy','434602eiZmFp','json','27OwMgTt','20KZFvPZ','5474480TgUqRa','length','7OUPhZU','parse','1619770ywrqBa','1113762nCcsSu','exec','294270EaJqLs','MAX_SAFE_INTEGER','defineProperty'];a128_0x5b3a=function(){return _0x20f647;};return a128_0x5b3a();}const a128_0x48baee=a128_0x217b;(function(_0x5c2d76,_0x4d2c78){const _0x4ac25e=a128_0x217b,_0x33ed33=_0x5c2d76();while(!![]){try{const _0x49af62=parseInt(_0x4ac25e(0x1b6))/0x1+parseInt(_0x4ac25e(0x1b7))/0x2+-parseInt(_0x4ac25e(0x1c0))/0x3*(parseInt(_0x4ac25e(0x1b5))/0x4)+parseInt(_0x4ac25e(0x1ba))/0x5*(parseInt(_0x4ac25e(0x1ae))/0x6)+parseInt(_0x4ac25e(0x1bd))/0x7*(parseInt(_0x4ac25e(0x1b3))/0x8)+-parseInt(_0x4ac25e(0x1b9))/0x9*(-parseInt(_0x4ac25e(0x1bf))/0xa)+-parseInt(_0x4ac25e(0x1bb))/0xb;if(_0x49af62===_0x4d2c78)break;else _0x33ed33['push'](_0x33ed33['shift']());}catch(_0x4c0563){_0x33ed33['push'](_0x33ed33['shift']());}}}(a128_0x5b3a,0x40950));const JSON_NUMBER_PATTERN=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/,MAX_SAFE_INTEGER=BigInt(Number[a128_0x48baee(0x1af)]),MIN_SAFE_INTEGER=BigInt(Number[a128_0x48baee(0x1b1)]);let restoreResponseJsonParser,responseJsonPrototype,originalResponseJsonDescriptor;function isUnsafeIntegerLiteral(_0x559195){const _0x57419f=a128_0x48baee;if(_0x559195[_0x57419f(0x1b2)]('.')||_0x559195[_0x57419f(0x1b2)]('e')||_0x559195['includes']('E'))return![];const _0xe3e24c=BigInt(_0x559195);return _0xe3e24c>MAX_SAFE_INTEGER||_0xe3e24c<MIN_SAFE_INTEGER;}function a128_0x217b(_0x270879,_0x30a005){_0x270879=_0x270879-0x1ad;const _0x5b3ad8=a128_0x5b3a();let _0x217b0a=_0x5b3ad8[_0x270879];return _0x217b0a;}function quoteUnsafeIntegerLiterals(_0x2e9690){const _0x1e6e26=a128_0x48baee;let _0x4575b6='',_0x525fa6=![],_0x439246=![];for(let _0x1befd0=0x0;_0x1befd0<_0x2e9690[_0x1e6e26(0x1bc)];){const _0x271c6b=_0x2e9690[_0x1befd0];if(_0x525fa6){_0x4575b6+=_0x271c6b,_0x1befd0+=0x1;if(_0x439246)_0x439246=![];else{if(_0x271c6b==='\x5c')_0x439246=!![];else _0x271c6b==='\x22'&&(_0x525fa6=![]);}continue;}if(_0x271c6b==='\x22'){_0x525fa6=!![],_0x4575b6+=_0x271c6b,_0x1befd0+=0x1;continue;}if(_0x271c6b==='-'||_0x271c6b>='0'&&_0x271c6b<='9'){const _0x7f03b7=JSON_NUMBER_PATTERN[_0x1e6e26(0x1ad)](_0x2e9690['slice'](_0x1befd0))?.[0x0];if(_0x7f03b7){_0x4575b6+=isUnsafeIntegerLiteral(_0x7f03b7)?'\x22'+_0x7f03b7+'\x22':_0x7f03b7,_0x1befd0+=_0x7f03b7['length'];continue;}}_0x4575b6+=_0x271c6b,_0x1befd0+=0x1;}return _0x4575b6;}export function parseLosslessJson(_0x5c76d6){const _0x15dd88=a128_0x48baee;return JSON[_0x15dd88(0x1be)](quoteUnsafeIntegerLiterals(_0x5c76d6));}export function installLosslessJsonResponseParser(){const _0x28ff17=a128_0x48baee;if(typeof Response===_0x28ff17(0x1b4))return()=>{};if(restoreResponseJsonParser)return restoreResponseJsonParser;return responseJsonPrototype=Response['prototype'],originalResponseJsonDescriptor=Object['getOwnPropertyDescriptor'](responseJsonPrototype,'json'),Object[_0x28ff17(0x1b0)](responseJsonPrototype,_0x28ff17(0x1b8),{...originalResponseJsonDescriptor??{'configurable':!![],'enumerable':![],'writable':!![]},'value':async function _0x2980b3(){return parseLosslessJson(await this['text']());}}),restoreResponseJsonParser=()=>{const _0x23683e=_0x28ff17;if(!responseJsonPrototype)return;originalResponseJsonDescriptor?Object['defineProperty'](responseJsonPrototype,_0x23683e(0x1b8),originalResponseJsonDescriptor):delete responseJsonPrototype[_0x23683e(0x1b8)],responseJsonPrototype=undefined,originalResponseJsonDescriptor=undefined,restoreResponseJsonParser=undefined;},restoreResponseJsonParser;}export function restoreLosslessJsonResponseParser(){restoreResponseJsonParser?.();}