@lovrabet/lovrabet-cli 2.3.2 → 2.3.3

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 (174) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/approval/index.d.ts +15 -0
  12. package/lib/commands/approval/index.js +1 -0
  13. package/lib/commands/artifact/index.js +1 -1
  14. package/lib/commands/auth/device.js +1 -1
  15. package/lib/commands/auth/index.js +1 -1
  16. package/lib/commands/auth/prompt.js +1 -1
  17. package/lib/commands/bff/detail.js +1 -1
  18. package/lib/commands/bff/exec.js +1 -1
  19. package/lib/commands/bff/index.js +1 -1
  20. package/lib/commands/cli-skill/index.js +1 -1
  21. package/lib/commands/common/config-policy.js +1 -1
  22. package/lib/commands/common/constraints.js +1 -1
  23. package/lib/commands/common/flags.js +1 -1
  24. package/lib/commands/common/local-file.js +1 -1
  25. package/lib/commands/config/definitions.js +1 -1
  26. package/lib/commands/config/init.js +1 -1
  27. package/lib/commands/config/shared.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/kb/index.js +1 -1
  37. package/lib/commands/logs/index.js +1 -1
  38. package/lib/commands/notification/config-list.js +1 -1
  39. package/lib/commands/notification/index.js +1 -1
  40. package/lib/commands/notification/shared.js +1 -1
  41. package/lib/commands/ocr/index.js +1 -1
  42. package/lib/commands/permit/dataset-get.js +1 -1
  43. package/lib/commands/permit/dataset-set.js +1 -1
  44. package/lib/commands/permit/index.js +1 -1
  45. package/lib/commands/permit/page-get.js +1 -1
  46. package/lib/commands/permit/page-set.js +1 -1
  47. package/lib/commands/permit/role-menus-set.js +1 -1
  48. package/lib/commands/permit/role-menus.js +1 -1
  49. package/lib/commands/permit/shared.js +1 -1
  50. package/lib/commands/personal-bff/index.js +1 -1
  51. package/lib/commands/registry.js +1 -1
  52. package/lib/commands/role/create.js +1 -1
  53. package/lib/commands/role/delete.js +1 -1
  54. package/lib/commands/role/detail.js +1 -1
  55. package/lib/commands/role/index.js +1 -1
  56. package/lib/commands/role/list.js +1 -1
  57. package/lib/commands/role/shared.js +1 -1
  58. package/lib/commands/role/update.js +1 -1
  59. package/lib/commands/role/user-add.js +1 -1
  60. package/lib/commands/role/user-remove.js +1 -1
  61. package/lib/commands/schedule/index.js +1 -1
  62. package/lib/commands/schema.js +1 -1
  63. package/lib/commands/service/dynamic.js +1 -1
  64. package/lib/commands/service/function-name-adapter.js +1 -1
  65. package/lib/commands/service/index.js +1 -1
  66. package/lib/commands/service/registry.js +1 -1
  67. package/lib/commands/skill/commands/create.js +1 -1
  68. package/lib/commands/skill/commands/diagram.js +1 -1
  69. package/lib/commands/skill/commands/install.js +1 -1
  70. package/lib/commands/skill/commands/list.js +1 -1
  71. package/lib/commands/skill/commands/push.js +1 -1
  72. package/lib/commands/skill/commands/validate.js +1 -1
  73. package/lib/commands/skill/diagram.js +1 -1
  74. package/lib/commands/skill/flags.js +1 -1
  75. package/lib/commands/skill/index.js +1 -1
  76. package/lib/commands/skill/manifest-helpers.js +1 -1
  77. package/lib/commands/skill/push-execute.js +1 -1
  78. package/lib/commands/skill/push-flow-helpers.js +1 -1
  79. package/lib/commands/skill/push-retarget.js +1 -1
  80. package/lib/commands/skill/scopes.js +1 -1
  81. package/lib/commands/skill/summary.js +1 -1
  82. package/lib/commands/skill/templates.js +1 -1
  83. package/lib/commands/skill/validate.js +1 -1
  84. package/lib/commands/sql/detail.js +1 -1
  85. package/lib/commands/sql/exec.js +1 -1
  86. package/lib/commands/sql/index.js +1 -1
  87. package/lib/commands/update.js +1 -1
  88. package/lib/commands/user-account/bind.js +1 -1
  89. package/lib/commands/user-account/index.js +1 -1
  90. package/lib/commands/workspace/index.js +1 -1
  91. package/lib/config/domain-config.js +1 -1
  92. package/lib/config/schema.js +1 -1
  93. package/lib/constant/app.js +1 -1
  94. package/lib/constant/auth-mode.js +1 -1
  95. package/lib/constant/cli.js +1 -1
  96. package/lib/constant/defaults.js +1 -1
  97. package/lib/constant/distribution.js +1 -1
  98. package/lib/constant/domain.js +1 -1
  99. package/lib/constant/env.js +1 -1
  100. package/lib/constant/output.js +1 -1
  101. package/lib/constant/product.js +1 -1
  102. package/lib/constant/region.js +1 -1
  103. package/lib/constant/risk.js +1 -1
  104. package/lib/constant/url.js +1 -1
  105. package/lib/context.js +1 -1
  106. package/lib/core/api-client.d.ts +83 -0
  107. package/lib/core/api-client.js +1 -1
  108. package/lib/core/db-resolver.js +1 -1
  109. package/lib/core/kb-search-client.js +1 -1
  110. package/lib/core/sdk-client.js +1 -1
  111. package/lib/errors.js +1 -1
  112. package/lib/framework/build-all-flags.js +1 -1
  113. package/lib/framework/dryrun.js +1 -1
  114. package/lib/framework/flags.js +1 -1
  115. package/lib/framework/help.js +1 -1
  116. package/lib/framework/index.js +1 -1
  117. package/lib/framework/output.js +1 -1
  118. package/lib/framework/preparse.js +1 -1
  119. package/lib/framework/rate-limit.js +1 -1
  120. package/lib/framework/raw-flags.js +1 -1
  121. package/lib/framework/response.js +1 -1
  122. package/lib/framework/runner-confirmation.js +1 -1
  123. package/lib/framework/runner-error.js +1 -1
  124. package/lib/framework/runner.js +1 -1
  125. package/lib/framework/schema-export.js +1 -1
  126. package/lib/framework/service-order.js +1 -1
  127. package/lib/framework/types.js +1 -1
  128. package/lib/generated/build-info.d.ts +4 -4
  129. package/lib/generated/build-info.js +1 -1
  130. package/lib/generated/official-routing.js +1 -1
  131. package/lib/generated/routing-contract.js +1 -1
  132. package/lib/help.js +1 -1
  133. package/lib/postinstall.js +1 -1
  134. package/lib/runtime/confirmation.js +1 -1
  135. package/lib/runtime/event.js +1 -1
  136. package/lib/runtime/index.js +1 -1
  137. package/lib/runtime/queue.js +1 -1
  138. package/lib/runtime/resolve.js +1 -1
  139. package/lib/skills/builtin-skill.js +1 -1
  140. package/lib/skills/npx-skills-add.js +1 -1
  141. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  142. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  143. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  144. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  145. package/lib/skills/runtime-skill-sync/links.js +1 -1
  146. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  147. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  148. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  149. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  150. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  151. package/lib/skills/runtime-skill-sync/push.js +1 -1
  152. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  153. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  154. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  155. package/lib/skills/runtime-skill-sync.js +1 -1
  156. package/lib/skills/skill-presence.js +1 -1
  157. package/lib/utils/access-key-redaction.js +1 -1
  158. package/lib/utils/apply-jq-filter.js +1 -1
  159. package/lib/utils/cli-version-check.js +1 -1
  160. package/lib/utils/cli-version-policy.js +1 -1
  161. package/lib/utils/logger.js +1 -1
  162. package/lib/utils/lossless-json.js +1 -1
  163. package/lib/utils/params.js +1 -1
  164. package/lib/utils/positive-safe-integer.d.ts +5 -0
  165. package/lib/utils/positive-safe-integer.js +1 -0
  166. package/lib/utils/redaction.d.ts +17 -0
  167. package/lib/utils/redaction.js +1 -0
  168. package/lib/utils/update-notice.js +1 -1
  169. package/lib/utils/version.js +1 -1
  170. package/lib/utils/write-cli-side-channel.js +1 -1
  171. package/package.json +1 -1
  172. package/skills/lovrabet/SKILL.md +3 -2
  173. package/skills/lovrabet/references/lovrabet-approval-workflow.md +73 -0
  174. package/skills/lovrabet.manifest.json +4 -3
@@ -1 +1 @@
1
- const a125_0x5c5efb=a125_0x30ec;(function(_0x2026d1,_0x310a91){const _0x42cfa9=a125_0x30ec,_0x2bb3fb=_0x2026d1();while(!![]){try{const _0x159ec9=-parseInt(_0x42cfa9(0x1b1))/0x1*(parseInt(_0x42cfa9(0x1aa))/0x2)+-parseInt(_0x42cfa9(0x1b7))/0x3*(parseInt(_0x42cfa9(0x1b6))/0x4)+parseInt(_0x42cfa9(0x1ad))/0x5+parseInt(_0x42cfa9(0x1b2))/0x6*(parseInt(_0x42cfa9(0x1b4))/0x7)+parseInt(_0x42cfa9(0x1a3))/0x8*(parseInt(_0x42cfa9(0x1a1))/0x9)+-parseInt(_0x42cfa9(0x1ab))/0xa+parseInt(_0x42cfa9(0x1b9))/0xb;if(_0x159ec9===_0x310a91)break;else _0x2bb3fb['push'](_0x2bb3fb['shift']());}catch(_0x1a6321){_0x2bb3fb['push'](_0x2bb3fb['shift']());}}}(a125_0x4d34,0x9cd8a));export const ROUTING_CATALOG_DIGEST=a125_0x5c5efb(0x1a2);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a125_0x5c5efb(0x1af)];function a125_0x30ec(_0xafca65,_0x334d10){_0xafca65=_0xafca65-0x1a1;const _0x4d34af=a125_0x4d34();let _0x30ecca=_0x4d34af[_0xafca65];return _0x30ecca;}function a125_0x4d34(){const _0x3773b7=['china','7RQYFij','24DfKnPf','https://skills.lovrabet.id','1490650xfxXdN','https://daily-api.lovrabet.com','40kljLMD','263553VtbTjY','https://runtime.lovrabet.id','9687634iPeRJb','9UOmdiN','41caa63f2eaa9f96327376df380668b835ef80916584dc754147daf394c2c513','1529776jsNSlF','https://api.lovrabet.com','https://user-daily.lovrabet.com','indonesia','https://user.lovrabet.id','https://user.lovrabet.ai','https://runtime.lovrabet.ai','184654oJboRs','7660040xYajvB','Global','5047645BlCCRO','https://user.lovrabet.com','global'];a125_0x4d34=function(){return _0x3773b7;};return a125_0x4d34();}export const ENABLED_REGION_VALUES=['cn','id'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':'Mainland\x20China','aliases':[a125_0x5c5efb(0x1b0)],'serviceDomains':{'production':{'user':a125_0x5c5efb(0x1ae),'api':a125_0x5c5efb(0x1a4),'runtime':'https://runtime.lovrabet.com','skill':'https://skills.lovrabet.com'},'daily':{'user':a125_0x5c5efb(0x1a5),'api':a125_0x5c5efb(0x1b5),'runtime':'https://daily-runtime.lovrabet.com','skill':'https://skills-daily.lovrabet.com'}}},'id':{'enabled':!![],'label':'Indonesia','aliases':[a125_0x5c5efb(0x1a6)],'serviceDomains':{'production':{'user':a125_0x5c5efb(0x1a7),'api':'https://api.lovrabet.id','runtime':a125_0x5c5efb(0x1b8),'skill':a125_0x5c5efb(0x1b3)}}},'global':{'enabled':![],'label':a125_0x5c5efb(0x1ac),'aliases':[],'serviceDomains':{'production':{'user':a125_0x5c5efb(0x1a8),'api':'https://api.lovrabet.ai','runtime':a125_0x5c5efb(0x1a9),'skill':'https://skills.lovrabet.ai'}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
1
+ const a126_0x1a0fb1=a126_0x7506;(function(_0x61192e,_0x1054e0){const _0x468e75=a126_0x7506,_0x28dbff=_0x61192e();while(!![]){try{const _0x34feb6=parseInt(_0x468e75(0x95))/0x1+parseInt(_0x468e75(0x99))/0x2+-parseInt(_0x468e75(0xa4))/0x3+-parseInt(_0x468e75(0x9b))/0x4*(parseInt(_0x468e75(0x94))/0x5)+-parseInt(_0x468e75(0x92))/0x6+-parseInt(_0x468e75(0x91))/0x7*(parseInt(_0x468e75(0x93))/0x8)+parseInt(_0x468e75(0x9a))/0x9*(parseInt(_0x468e75(0x96))/0xa);if(_0x34feb6===_0x1054e0)break;else _0x28dbff['push'](_0x28dbff['shift']());}catch(_0x24d4e1){_0x28dbff['push'](_0x28dbff['shift']());}}}(a126_0x1c55,0x58017));export const ROUTING_CATALOG_DIGEST=a126_0x1a0fb1(0xa1);export const DEFAULT_REGION='cn';function a126_0x1c55(){const _0x36a515=['https://user.lovrabet.id','41caa63f2eaa9f96327376df380668b835ef80916584dc754147daf394c2c513','Indonesia','https://api.lovrabet.ai','1659318wrWoLh','global','https://user-daily.lovrabet.com','china','https://user.lovrabet.ai','https://runtime.lovrabet.ai','https://skills.lovrabet.com','Global','https://skills-daily.lovrabet.com','238PfznjF','2176980YKPvlX','104136ygTGQr','1436165JkXmGs','619664hktodj','70bxAsBl','https://api.lovrabet.id','indonesia','1304666imTAQY','1313298PMrYSl','8qabvkA','https://skills.lovrabet.ai','https://skills.lovrabet.id','Mainland\x20China','https://runtime.lovrabet.id'];a126_0x1c55=function(){return _0x36a515;};return a126_0x1c55();}function a126_0x7506(_0x52b8b1,_0x17e48f){_0x52b8b1=_0x52b8b1-0x90;const _0x1c5515=a126_0x1c55();let _0x7506ed=_0x1c5515[_0x52b8b1];return _0x7506ed;}export const REGION_VALUES=['cn','id',a126_0x1a0fb1(0xa5)];export const ENABLED_REGION_VALUES=['cn','id'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a126_0x1a0fb1(0x9e),'aliases':[a126_0x1a0fb1(0xa7)],'serviceDomains':{'production':{'user':'https://user.lovrabet.com','api':'https://api.lovrabet.com','runtime':'https://runtime.lovrabet.com','skill':a126_0x1a0fb1(0xaa)},'daily':{'user':a126_0x1a0fb1(0xa6),'api':'https://daily-api.lovrabet.com','runtime':'https://daily-runtime.lovrabet.com','skill':a126_0x1a0fb1(0x90)}}},'id':{'enabled':!![],'label':a126_0x1a0fb1(0xa2),'aliases':[a126_0x1a0fb1(0x98)],'serviceDomains':{'production':{'user':a126_0x1a0fb1(0xa0),'api':a126_0x1a0fb1(0x97),'runtime':a126_0x1a0fb1(0x9f),'skill':a126_0x1a0fb1(0x9d)}}},'global':{'enabled':![],'label':a126_0x1a0fb1(0xab),'aliases':[],'serviceDomains':{'production':{'user':a126_0x1a0fb1(0xa8),'api':a126_0x1a0fb1(0xa3),'runtime':a126_0x1a0fb1(0xa9),'skill':a126_0x1a0fb1(0x9c)}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
@@ -1 +1 @@
1
- function a126_0x3164(){const _0x3f5cb4=['184550WmvTfH','apiDomain','skillDomain','1570478lWgONg','1080uZgGDG','lovrabet-routing/v1','664380vUNsnt','51e352a2636c432b76d331cc9ff81c215d7cbe3d1d07ab7bd7bedb7bdb91631c','runtimeDomain','3784020hStmfe','2279418ILbrAz','60CqxomT','userDomain','3IhIjoV','65730QvWTHH','455139keSVwW'];a126_0x3164=function(){return _0x3f5cb4;};return a126_0x3164();}const a126_0x5696df=a126_0xa521;(function(_0x371481,_0x47ea8c){const _0x3f0f4d=a126_0xa521,_0xd9d66d=_0x371481();while(!![]){try{const _0x5b02aa=-parseInt(_0x3f0f4d(0x200))/0x1+-parseInt(_0x3f0f4d(0x1f7))/0x2*(-parseInt(_0x3f0f4d(0x1fa))/0x3)+-parseInt(_0x3f0f4d(0x203))/0x4+-parseInt(_0x3f0f4d(0x1fd))/0x5+parseInt(_0x3f0f4d(0x1f6))/0x6+parseInt(_0x3f0f4d(0x1fb))/0x7*(parseInt(_0x3f0f4d(0x201))/0x8)+parseInt(_0x3f0f4d(0x1fc))/0x9*(-parseInt(_0x3f0f4d(0x1f8))/0xa);if(_0x5b02aa===_0x47ea8c)break;else _0xd9d66d['push'](_0xd9d66d['shift']());}catch(_0x2459d3){_0xd9d66d['push'](_0xd9d66d['shift']());}}}(a126_0x3164,0xeaa60));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a126_0x5696df(0x1f4);export const ENTERPRISE_ROUTING_PROTOCOL=a126_0x5696df(0x202);export const ENTERPRISE_ROUTING_KIND='enterprise';export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a126_0x5696df(0x1f9),a126_0x5696df(0x1fe),a126_0x5696df(0x1f5),'skillDomain'];function a126_0xa521(_0x32421b,_0x4a856c){_0x32421b=_0x32421b-0x1f4;const _0x316427=a126_0x3164();let _0xa521ee=_0x316427[_0x32421b];return _0xa521ee;}export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a126_0x5696df(0x1f9),a126_0x5696df(0x1fe),a126_0x5696df(0x1f5),a126_0x5696df(0x1ff)];
1
+ const a127_0x37a7c2=a127_0x1da7;(function(_0x22fe6a,_0x4a26cb){const _0xd54981=a127_0x1da7,_0x57e569=_0x22fe6a();while(!![]){try{const _0x5b40e4=-parseInt(_0xd54981(0x1f4))/0x1+-parseInt(_0xd54981(0x1f3))/0x2*(parseInt(_0xd54981(0x201))/0x3)+-parseInt(_0xd54981(0x1f2))/0x4+-parseInt(_0xd54981(0x1fd))/0x5*(parseInt(_0xd54981(0x1fb))/0x6)+parseInt(_0xd54981(0x1f7))/0x7+parseInt(_0xd54981(0x1f6))/0x8*(parseInt(_0xd54981(0x1f1))/0x9)+-parseInt(_0xd54981(0x1f8))/0xa*(-parseInt(_0xd54981(0x1f9))/0xb);if(_0x5b40e4===_0x4a26cb)break;else _0x57e569['push'](_0x57e569['shift']());}catch(_0xdb3808){_0x57e569['push'](_0x57e569['shift']());}}}(a127_0x269f,0xc0251));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST='51e352a2636c432b76d331cc9ff81c215d7cbe3d1d07ab7bd7bedb7bdb91631c';export const ENTERPRISE_ROUTING_PROTOCOL=a127_0x37a7c2(0x1f5);function a127_0x1da7(_0x24dd48,_0xb84ac7){_0x24dd48=_0x24dd48-0x1f1;const _0x269fdd=a127_0x269f();let _0x1da730=_0x269fdd[_0x24dd48];return _0x1da730;}export const ENTERPRISE_ROUTING_KIND=a127_0x37a7c2(0x1fc);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a127_0x37a7c2(0x1ff),a127_0x37a7c2(0x200),a127_0x37a7c2(0x1fa),a127_0x37a7c2(0x1fe)];function a127_0x269f(){const _0x32694d=['927230rRnEOE','121TiQbbo','runtimeDomain','4743222tMllFH','enterprise','5kNbTIR','skillDomain','userDomain','apiDomain','2440521iKYMmz','2722122XqnMQx','2672748QBtMKK','2jHoACT','258890qqTLYO','lovrabet-routing/v1','24rUUBjt','9735733ufwUOw'];a127_0x269f=function(){return _0x32694d;};return a127_0x269f();}export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a127_0x37a7c2(0x1ff),a127_0x37a7c2(0x200),a127_0x37a7c2(0x1fa),'skillDomain'];
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x33eb6d,_0x3b3e44){const _0x9de626=a127_0x3aa0,_0x51ae10=_0x33eb6d();while(!![]){try{const _0x34d05b=-parseInt(_0x9de626(0x8c))/0x1*(-parseInt(_0x9de626(0x89))/0x2)+-parseInt(_0x9de626(0x7e))/0x3+-parseInt(_0x9de626(0x7f))/0x4*(parseInt(_0x9de626(0x82))/0x5)+-parseInt(_0x9de626(0x87))/0x6*(-parseInt(_0x9de626(0x83))/0x7)+-parseInt(_0x9de626(0x8b))/0x8*(-parseInt(_0x9de626(0x88))/0x9)+-parseInt(_0x9de626(0x86))/0xa*(parseInt(_0x9de626(0x7d))/0xb)+-parseInt(_0x9de626(0x85))/0xc*(-parseInt(_0x9de626(0x84))/0xd);if(_0x34d05b===_0x3b3e44)break;else _0x51ae10['push'](_0x51ae10['shift']());}catch(_0x552d3e){_0x51ae10['push'](_0x51ae10['shift']());}}}(a127_0xfead,0x80aa0));import{jsx as a127_0x1d444c,jsxs as a127_0x49d9c1}from'react/jsx-runtime';function a127_0xfead(){const _0xaf21b5=['804655KrFbyb','4865kEbElZ','4849oGscVn','39756USKzZg','40Ulyeen','1158fvflRf','18zTkRMB','1488484zQAZox','\x20to\x20view\x20available\x20commands.','205120myOTkk','1qNQNYR','column','\x20--help','1673716cNcPUj','1640943YFfJxf','12oHBZJC','\x20\x20Use\x20','green'];a127_0xfead=function(){return _0xaf21b5;};return a127_0xfead();}import{useEffect}from'react';function a127_0x3aa0(_0x4a2d44,_0x209efd){_0x4a2d44=_0x4a2d44-0x7d;const _0xfeadf5=a127_0xfead();let _0x3aa05e=_0xfeadf5[_0x4a2d44];return _0x3aa05e;}import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x55113a=a127_0x3aa0,{exit:_0xedd5b}=useApp();return useEffect(()=>{_0xedd5b();},[_0xedd5b]),a127_0x49d9c1(Box,{'flexDirection':_0x55113a(0x8d),'marginTop':0x1,'marginBottom':0x1,'children':[a127_0x1d444c(Box,{'children':a127_0x1d444c(Text,{'bold':!![],'color':_0x55113a(0x81),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a127_0x49d9c1(Box,{'marginTop':0x1,'children':[a127_0x1d444c(Text,{'dimColor':!![],'children':_0x55113a(0x80)}),a127_0x1d444c(Text,{'bold':!![],'color':_0x55113a(0x81),'children':CLI_BIN_NAME+_0x55113a(0x8e)}),a127_0x1d444c(Text,{'dimColor':!![],'children':_0x55113a(0x8a)})]})]});}
1
+ (function(_0x3d3ea0,_0x237e11){const _0x13668b=a128_0x2f59,_0xe52f26=_0x3d3ea0();while(!![]){try{const _0x1a5ebb=-parseInt(_0x13668b(0xa8))/0x1*(parseInt(_0x13668b(0x9b))/0x2)+-parseInt(_0x13668b(0xa3))/0x3*(parseInt(_0x13668b(0xa2))/0x4)+parseInt(_0x13668b(0x9c))/0x5*(parseInt(_0x13668b(0xa5))/0x6)+parseInt(_0x13668b(0x9a))/0x7+-parseInt(_0x13668b(0x9e))/0x8+parseInt(_0x13668b(0x9d))/0x9*(-parseInt(_0x13668b(0xa7))/0xa)+parseInt(_0x13668b(0xa9))/0xb;if(_0x1a5ebb===_0x237e11)break;else _0xe52f26['push'](_0xe52f26['shift']());}catch(_0x3641a4){_0xe52f26['push'](_0xe52f26['shift']());}}}(a128_0x5415,0x4042b));function a128_0x5415(){const _0x318ec7=['green','\x20--help','212284HEonvz','3FNSvld','\x20to\x20view\x20available\x20commands.','175722gReNUa','\x20\x20Use\x20','410MpLtAQ','1vcdxET','4935205bnxbnx','778624aJflKS','674538WmuVeV','80ONZTQr','441YlTIFD','2983352UnYUOO','column'];a128_0x5415=function(){return _0x318ec7;};return a128_0x5415();}import{jsx as a128_0x1bb543,jsxs as a128_0x131ec8}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';function a128_0x2f59(_0x460948,_0x22f18){_0x460948=_0x460948-0x9a;const _0x54150c=a128_0x5415();let _0x2f596a=_0x54150c[_0x460948];return _0x2f596a;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0xe5a33c=a128_0x2f59,{exit:_0x38fe72}=useApp();return useEffect(()=>{_0x38fe72();},[_0x38fe72]),a128_0x131ec8(Box,{'flexDirection':_0xe5a33c(0x9f),'marginTop':0x1,'marginBottom':0x1,'children':[a128_0x1bb543(Box,{'children':a128_0x1bb543(Text,{'bold':!![],'color':_0xe5a33c(0xa0),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a128_0x131ec8(Box,{'marginTop':0x1,'children':[a128_0x1bb543(Text,{'dimColor':!![],'children':_0xe5a33c(0xa6)}),a128_0x1bb543(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+_0xe5a33c(0xa1)}),a128_0x1bb543(Text,{'dimColor':!![],'children':_0xe5a33c(0xa4)})]})]});}
@@ -1 +1 @@
1
- (function(_0x176911,_0x3c03e0){const _0x54c107=a128_0x33ce,_0x27a036=_0x176911();while(!![]){try{const _0x1cada1=-parseInt(_0x54c107(0x19a))/0x1*(parseInt(_0x54c107(0x18c))/0x2)+parseInt(_0x54c107(0x18a))/0x3*(parseInt(_0x54c107(0x18f))/0x4)+-parseInt(_0x54c107(0x191))/0x5+parseInt(_0x54c107(0x18b))/0x6*(-parseInt(_0x54c107(0x192))/0x7)+parseInt(_0x54c107(0x189))/0x8+parseInt(_0x54c107(0x193))/0x9+parseInt(_0x54c107(0x196))/0xa;if(_0x1cada1===_0x3c03e0)break;else _0x27a036['push'](_0x27a036['shift']());}catch(_0x34773e){_0x27a036['push'](_0x27a036['shift']());}}}(a128_0x3d4e,0xcd420));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a128_0x33ce(_0x19ca15,_0x12822a){_0x19ca15=_0x19ca15-0x185;const _0x3d4ef3=a128_0x3d4e();let _0x33ced7=_0x3d4ef3[_0x19ca15];return _0x33ced7;}function a128_0x3d4e(){const _0x4ef80b=['FAILED','\x20at\x20','3409EJNWjX','Repair\x20with:\x20','installedPath','SOURCE_INVALID','repairCommand','error','[BUILTIN_SKILL_INSTALL_','Lovrabet\x20Built-in\x20Skill\x20','9617400YoxlGr','159633uLHQYZ','6ysYFHi','668Sndrtm','skillVersion','log','4nVwwnm','installed','4986590xGRVxE','6464087NezPoH','3766914PvsehZ','\x20via\x20skills@latest','code','22261690knzSYa','warn'];a128_0x3d4e=function(){return _0x4ef80b;};return a128_0x3d4e();}export async function runPostinstall(_0x544f9f={}){const _0x4f45fc=a128_0x33ce,_0x147217=installBuiltinSkill(_0x544f9f);if(_0x147217['ok']){const _0x4596d7=_0x147217['changed']?_0x4f45fc(0x190):'already\x20current',_0x4e0b35=_0x147217['installedPath']?_0x4f45fc(0x199)+_0x147217[_0x4f45fc(0x19c)]:_0x4f45fc(0x194);return console[_0x4f45fc(0x18e)](_0x4f45fc(0x188)+_0x147217[_0x4f45fc(0x18d)]+'\x20'+_0x4596d7+_0x4e0b35),_0x147217;}const _0x2082e4=_0x4f45fc(0x187)+(_0x147217[_0x4f45fc(0x195)]??_0x4f45fc(0x198))+']\x20'+(_0x147217[_0x4f45fc(0x186)]??'Installation\x20failed')+'.\x20'+(_0x4f45fc(0x19b)+_0x147217[_0x4f45fc(0x185)]);if(_0x147217[_0x4f45fc(0x195)]===_0x4f45fc(0x19d))throw new Error(_0x2082e4);return console[_0x4f45fc(0x197)](_0x2082e4),_0x147217;}
1
+ function a129_0x3807(){const _0x351486=['1993368iUsLmi','5214PIYift','33UAZPdC','log','35spxYnX','430472dFNLpu','92GNqnuJ','skillVersion','\x20at\x20','installed','45VZzOzf','changed','installedPath','792459MAmYIJ','code','already\x20current','Repair\x20with:\x20','694449EbBAXq','4145620DZAyxi','[BUILTIN_SKILL_INSTALL_','54505XSyqoM'];a129_0x3807=function(){return _0x351486;};return a129_0x3807();}function a129_0x424f(_0x9dd944,_0xd05861){_0x9dd944=_0x9dd944-0x18c;const _0x38075c=a129_0x3807();let _0x424f20=_0x38075c[_0x9dd944];return _0x424f20;}(function(_0x107ef2,_0x1e916a){const _0x23b5bc=a129_0x424f,_0x1377a7=_0x107ef2();while(!![]){try{const _0x2037db=parseInt(_0x23b5bc(0x18c))/0x1*(parseInt(_0x23b5bc(0x198))/0x2)+-parseInt(_0x23b5bc(0x18f))/0x3+parseInt(_0x23b5bc(0x19d))/0x4*(-parseInt(_0x23b5bc(0x196))/0x5)+-parseInt(_0x23b5bc(0x197))/0x6+-parseInt(_0x23b5bc(0x19b))/0x7*(parseInt(_0x23b5bc(0x19c))/0x8)+-parseInt(_0x23b5bc(0x193))/0x9+-parseInt(_0x23b5bc(0x194))/0xa*(-parseInt(_0x23b5bc(0x199))/0xb);if(_0x2037db===_0x1e916a)break;else _0x1377a7['push'](_0x1377a7['shift']());}catch(_0x272389){_0x1377a7['push'](_0x1377a7['shift']());}}}(a129_0x3807,0x28f0b));import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x50eaf6={}){const _0x44b00a=a129_0x424f,_0x54b756=installBuiltinSkill(_0x50eaf6);if(_0x54b756['ok']){const _0x3d6e3d=_0x54b756[_0x44b00a(0x18d)]?_0x44b00a(0x1a0):_0x44b00a(0x191),_0x30ad1e=_0x54b756[_0x44b00a(0x18e)]?_0x44b00a(0x19f)+_0x54b756['installedPath']:'\x20via\x20skills@latest';return console[_0x44b00a(0x19a)]('Lovrabet\x20Built-in\x20Skill\x20'+_0x54b756[_0x44b00a(0x19e)]+'\x20'+_0x3d6e3d+_0x30ad1e),_0x54b756;}const _0x59b533=_0x44b00a(0x195)+(_0x54b756[_0x44b00a(0x190)]??'FAILED')+']\x20'+(_0x54b756['error']??'Installation\x20failed')+'.\x20'+(_0x44b00a(0x192)+_0x54b756['repairCommand']);if(_0x54b756[_0x44b00a(0x190)]==='SOURCE_INVALID')throw new Error(_0x59b533);return console['warn'](_0x59b533),_0x54b756;}
@@ -1 +1 @@
1
- (function(_0x1f96f5,_0x5bceb3){const _0x1b01ff=a129_0x9058,_0x3b2b29=_0x1f96f5();while(!![]){try{const _0x266911=parseInt(_0x1b01ff(0xb8))/0x1+parseInt(_0x1b01ff(0xad))/0x2+parseInt(_0x1b01ff(0xae))/0x3+parseInt(_0x1b01ff(0xaf))/0x4*(-parseInt(_0x1b01ff(0xb7))/0x5)+-parseInt(_0x1b01ff(0xb1))/0x6+parseInt(_0x1b01ff(0xb3))/0x7+parseInt(_0x1b01ff(0xab))/0x8;if(_0x266911===_0x5bceb3)break;else _0x3b2b29['push'](_0x3b2b29['shift']());}catch(_0xc4a131){_0x3b2b29['push'](_0x3b2b29['shift']());}}}(a129_0x3c43,0x8e148));function a129_0x3c43(){const _0x382a4f=['164185tWjape','49058YmojjX','Run\x20this\x20write\x20operation','write','10218816tOdEIH','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','451370fEFKsr','199314qJASXd','44UfLQaD','confirmationDescription','6833448dJTwlS','replace','3244794GBLMUx','risk','trim','slice'];a129_0x3c43=function(){return _0x382a4f;};return a129_0x3c43();}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x43dc64,_0x3ef169,_0x27cccd){const _0x51a55d=a129_0x9058,_0x15a354=normalizeText(_0x43dc64[_0x51a55d(0xb0)],DESCRIPTION_MAX_LENGTH),_0x55508a=normalizeText(_0x43dc64['description'],DESCRIPTION_MAX_LENGTH);return{'operation':_0x3ef169,'risk':requireWriteRisk(_0x43dc64),'description':_0x15a354||_0x55508a||_0x51a55d(0xb9),..._0x27cccd?{'signal':_0x27cccd}:{}};}function requireWriteRisk(_0x26694c){const _0xf03b12=a129_0x9058;if(_0x26694c['risk']===_0xf03b12(0xba)||_0x26694c['risk']==='high-risk-write')return _0x26694c[_0xf03b12(0xb4)];throw new Error(_0xf03b12(0xac));}function a129_0x9058(_0x1af20b,_0x46799b){_0x1af20b=_0x1af20b-0xab;const _0x3c43fa=a129_0x3c43();let _0x9058b7=_0x3c43fa[_0x1af20b];return _0x9058b7;}function normalizeText(_0xaa5fc1,_0xb8ce77){const _0x203980=a129_0x9058;if(typeof _0xaa5fc1!=='string')return'';return _0xaa5fc1[_0x203980(0xb2)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x203980(0xb2)](/\s+/g,'\x20')[_0x203980(0xb5)]()[_0x203980(0xb6)](0x0,_0xb8ce77);}
1
+ (function(_0xdb4e7f,_0x4dca2b){const _0x300684=a130_0x428b,_0x4ca399=_0xdb4e7f();while(!![]){try{const _0x158c4a=-parseInt(_0x300684(0xb7))/0x1*(parseInt(_0x300684(0xb1))/0x2)+parseInt(_0x300684(0xb4))/0x3+-parseInt(_0x300684(0xba))/0x4*(-parseInt(_0x300684(0xbb))/0x5)+-parseInt(_0x300684(0xb0))/0x6*(parseInt(_0x300684(0xb6))/0x7)+parseInt(_0x300684(0xb3))/0x8+parseInt(_0x300684(0xb8))/0x9+-parseInt(_0x300684(0xb2))/0xa;if(_0x158c4a===_0x4dca2b)break;else _0x4ca399['push'](_0x4ca399['shift']());}catch(_0x2e0482){_0x4ca399['push'](_0x4ca399['shift']());}}}(a130_0x2ecb,0xbf109));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x30249b,_0x1a86d9,_0x4e5e25){const _0x4c74ef=a130_0x428b,_0x16ea07=normalizeText(_0x30249b['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x3b4da5=normalizeText(_0x30249b['description'],DESCRIPTION_MAX_LENGTH);return{'operation':_0x1a86d9,'risk':requireWriteRisk(_0x30249b),'description':_0x16ea07||_0x3b4da5||_0x4c74ef(0xaf),..._0x4e5e25?{'signal':_0x4e5e25}:{}};}function requireWriteRisk(_0x457a72){const _0x3ce562=a130_0x428b;if(_0x457a72[_0x3ce562(0xae)]==='write'||_0x457a72[_0x3ce562(0xae)]==='high-risk-write')return _0x457a72[_0x3ce562(0xae)];throw new Error('Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.');}function a130_0x2ecb(){const _0x1b50ee=['612132KHryNt','170650LWXuee','14475530BgaIQQ','10909400LRYRJJ','3622218UsHDMy','trim','49dqWvhm','2ssrquQ','2805651LGcdiA','replace','464276HqOBLd','10AUgJmi','slice','risk','Run\x20this\x20write\x20operation'];a130_0x2ecb=function(){return _0x1b50ee;};return a130_0x2ecb();}function a130_0x428b(_0x407a08,_0x4d4ff8){_0x407a08=_0x407a08-0xad;const _0x2ecb35=a130_0x2ecb();let _0x428b49=_0x2ecb35[_0x407a08];return _0x428b49;}function normalizeText(_0x43fdd6,_0x5b4193){const _0x389b11=a130_0x428b;if(typeof _0x43fdd6!=='string')return'';return _0x43fdd6[_0x389b11(0xb9)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x389b11(0xb9)](/\s+/g,'\x20')[_0x389b11(0xb5)]()[_0x389b11(0xad)](0x0,_0x5b4193);}
@@ -1 +1 @@
1
- (function(_0x203368,_0x4b9270){const _0x8f9c3d=a130_0x5e45,_0x324c6c=_0x203368();while(!![]){try{const _0x4cac32=parseInt(_0x8f9c3d(0x1d8))/0x1*(parseInt(_0x8f9c3d(0x1d2))/0x2)+parseInt(_0x8f9c3d(0x1db))/0x3+parseInt(_0x8f9c3d(0x1d6))/0x4+parseInt(_0x8f9c3d(0x1cd))/0x5+parseInt(_0x8f9c3d(0x1d4))/0x6+parseInt(_0x8f9c3d(0x1cc))/0x7+parseInt(_0x8f9c3d(0x1da))/0x8*(-parseInt(_0x8f9c3d(0x1ce))/0x9);if(_0x4cac32===_0x4b9270)break;else _0x324c6c['push'](_0x324c6c['shift']());}catch(_0x37bffe){_0x324c6c['push'](_0x324c6c['shift']());}}}(a130_0x23aa,0x8f798));export function canonicalLovrabetOperation(_0x284795){const _0x1ec035=a130_0x5e45;return[_0x284795['service'],..._0x284795[_0x1ec035(0x1d7)][_0x1ec035(0x1d0)]()[_0x1ec035(0x1d1)](/\s+/)][_0x1ec035(0x1d3)](Boolean)[_0x1ec035(0x1d5)]('.');}function a130_0x5e45(_0x2fac19,_0x710bdd){_0x2fac19=_0x2fac19-0x1cb;const _0x23aaf5=a130_0x23aa();let _0x5e4589=_0x23aaf5[_0x2fac19];return _0x5e4589;}export function createLovrabetWriteMetadata(_0x53bc81,_0x3f224e,_0x380388,_0x30f489){const _0x16e7af=a130_0x5e45;if(_0x30f489||_0x380388['ok']!==!![]||_0x53bc81[_0x16e7af(0x1cb)]!==_0x16e7af(0x1cf)&&_0x53bc81[_0x16e7af(0x1cb)]!==_0x16e7af(0x1d9))return undefined;const _0x3a05d3=_0x53bc81['writeEventSubject']?.(_0x380388),_0x1993d9={'type':'lovrabet.write.completed','operation':_0x3f224e,'risk':_0x53bc81['risk'],..._0x3a05d3?{'subject':_0x3a05d3}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x1993d9}};}function a130_0x23aa(){const _0x240801=['trim','split','2UzHPeQ','filter','2991324jiVoRC','join','921504ShRPvf','command','84177MCGigY','high-risk-write','304nCuAfH','3042684kihBrO','risk','5717614wLqfQQ','5675775BfCSJG','755910WkNBzv','write'];a130_0x23aa=function(){return _0x240801;};return a130_0x23aa();}
1
+ (function(_0x7cbd61,_0x57a89a){const _0x20a738=a131_0x4c60,_0x2e79f9=_0x7cbd61();while(!![]){try{const _0x5326bd=-parseInt(_0x20a738(0xd8))/0x1+-parseInt(_0x20a738(0xd9))/0x2*(-parseInt(_0x20a738(0xe4))/0x3)+-parseInt(_0x20a738(0xe1))/0x4+-parseInt(_0x20a738(0xd7))/0x5*(parseInt(_0x20a738(0xd4))/0x6)+-parseInt(_0x20a738(0xdd))/0x7*(-parseInt(_0x20a738(0xe5))/0x8)+parseInt(_0x20a738(0xdc))/0x9*(parseInt(_0x20a738(0xe0))/0xa)+parseInt(_0x20a738(0xd3))/0xb;if(_0x5326bd===_0x57a89a)break;else _0x2e79f9['push'](_0x2e79f9['shift']());}catch(_0xd4ccd0){_0x2e79f9['push'](_0x2e79f9['shift']());}}}(a131_0x17b3,0x77bbb));function a131_0x17b3(){const _0x2f4a2e=['trim','2349842jDvBHv','6oeuUDJ','join','filter','1184450DBIIew','284388RBJhAu','439682SCOkrN','split','command','261tuUZRH','2331098wdOdRm','write','risk','167290VzPagS','1839016xXrgcY','high-risk-write','lovrabet.write.completed','6tkeAea','8kmvggd','writeEventSubject'];a131_0x17b3=function(){return _0x2f4a2e;};return a131_0x17b3();}export function canonicalLovrabetOperation(_0x4e5d0c){const _0x4985cd=a131_0x4c60;return[_0x4e5d0c['service'],..._0x4e5d0c[_0x4985cd(0xdb)][_0x4985cd(0xd2)]()[_0x4985cd(0xda)](/\s+/)][_0x4985cd(0xd6)](Boolean)[_0x4985cd(0xd5)]('.');}function a131_0x4c60(_0x5180eb,_0x37a445){_0x5180eb=_0x5180eb-0xd1;const _0x17b356=a131_0x17b3();let _0x4c60c8=_0x17b356[_0x5180eb];return _0x4c60c8;}export function createLovrabetWriteMetadata(_0x94c7dd,_0x1be0c5,_0x1146a6,_0x128145){const _0x37e4d7=a131_0x4c60;if(_0x128145||_0x1146a6['ok']!==!![]||_0x94c7dd[_0x37e4d7(0xdf)]!==_0x37e4d7(0xde)&&_0x94c7dd[_0x37e4d7(0xdf)]!==_0x37e4d7(0xe2))return undefined;const _0x135686=_0x94c7dd[_0x37e4d7(0xd1)]?.(_0x1146a6),_0x503696={'type':_0x37e4d7(0xe3),'operation':_0x1be0c5,'risk':_0x94c7dd[_0x37e4d7(0xdf)],..._0x135686?{'subject':_0x135686}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x503696}};}
@@ -1 +1 @@
1
- (function(_0x5c174c,_0x3125e4){const _0x1b73db=a131_0x32aa,_0x11b3b0=_0x5c174c();while(!![]){try{const _0x3df0b8=parseInt(_0x1b73db(0x12d))/0x1+-parseInt(_0x1b73db(0x136))/0x2+parseInt(_0x1b73db(0x144))/0x3*(parseInt(_0x1b73db(0x148))/0x4)+parseInt(_0x1b73db(0x13d))/0x5+parseInt(_0x1b73db(0x12f))/0x6+parseInt(_0x1b73db(0x13a))/0x7*(-parseInt(_0x1b73db(0x134))/0x8)+parseInt(_0x1b73db(0x131))/0x9*(-parseInt(_0x1b73db(0x145))/0xa);if(_0x3df0b8===_0x3125e4)break;else _0x11b3b0['push'](_0x11b3b0['shift']());}catch(_0x32e645){_0x11b3b0['push'](_0x11b3b0['shift']());}}}(a131_0x2521,0xc7173));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';function a131_0x2521(){const _0x434433=['high-risk-write','dryRun','rawFlags','481352KzomIO','yes','8935164XRBmPc','presentation','8973liELlN','result','reason','160mBYDkk','definition','3031724TnsfQu','confirmation','command','stringify','15519zTMMUn','confirm','message','4597360bvuIVU','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','execute','format','aborted','risk','signal','141NMcHVh','18350pjEWQN','AbortError','data','111928NaCRsp','args','present','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','Lovrabet\x20invocation\x20aborted.'];a131_0x2521=function(){return _0x434433;};return a131_0x2521();}function a131_0x32aa(_0x3b211b,_0x35ce27){_0x3b211b=_0x3b211b-0x126;const _0x252121=a131_0x2521();let _0x32aa0d=_0x252121[_0x3b211b];return _0x32aa0d;}import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x45bc99,command:_0x582176,risk:_0x301cce,dryRun:_0x1d6f4b}){const _0x21c38e=a131_0x32aa;return JSON[_0x21c38e(0x139)]({'ok':_0x45bc99['ok'],'command':_0x582176,'risk':_0x301cce,..._0x1d6f4b?{'dryRun':!![]}:{},..._0x45bc99[_0x21c38e(0x147)]!==undefined?{'data':_0x45bc99[_0x21c38e(0x147)]}:{},..._0x45bc99[_0x21c38e(0x13c)]?{'message':_0x45bc99[_0x21c38e(0x13c)]}:{}});}};export async function invokeLovrabet(_0x47e4a6,_0x52ba32){const _0x58a815=a131_0x32aa;throwIfAborted(_0x52ba32['signal']);const _0x451bdf=await resolveLovrabetInvocation(_0x47e4a6),_0x285709=canonicalLovrabetOperation(_0x451bdf['definition']);return await confirmWriteBeforeQueue(_0x451bdf[_0x58a815(0x135)],_0x451bdf[_0x58a815(0x12c)],_0x285709,_0x52ba32),runSerialized(async()=>{const _0x5a8998=_0x58a815;throwIfAborted(_0x52ba32[_0x5a8998(0x143)]);const _0x457295={},_0x34a599=buildConfigFromFlags(_0x451bdf[_0x5a8998(0x12c)]);await initGlobalEnvironment(_0x34a599);const _0x3b5a62=createPipelineEnv(_0x34a599,{..._0x451bdf['rawFlags'],'yes':_0x451bdf['definition'][_0x5a8998(0x142)]===_0x5a8998(0x12a)?!![]:_0x451bdf[_0x5a8998(0x12c)][_0x5a8998(0x12e)],'nonInteractive':!![]});_0x3b5a62[_0x5a8998(0x126)]=_0x451bdf[_0x5a8998(0x126)],_0x3b5a62['isNonInteractive']=!![],_0x3b5a62['riskLevel']=_0x5a8998(0x12a);const _0x14efeb=withAbortSignal(_0x451bdf[_0x5a8998(0x135)],_0x52ba32[_0x5a8998(0x143)]),_0x1b6ecf=createLovrabetRunnerAdapter({'formatOutput'(_0x279875,_0x4c2ee7){const _0x16816e=_0x5a8998;_0x457295[_0x16816e(0x132)]=_0x279875,_0x457295[_0x16816e(0x138)]=_0x4c2ee7[_0x16816e(0x138)],_0x457295['risk']=_0x4c2ee7['risk'],_0x457295[_0x16816e(0x140)]=_0x4c2ee7[_0x16816e(0x140)],_0x457295['dryRun']=_0x4c2ee7[_0x16816e(0x12b)]===!![];},async 'confirmHighRisk'(){const _0x595b7d=_0x5a8998;throw new Error(_0x595b7d(0x128));}});try{await runCommand(_0x14efeb,_0x3b5a62,_0x1b6ecf);if(!_0x457295[_0x5a8998(0x132)]||!_0x457295[_0x5a8998(0x138)]||!_0x457295[_0x5a8998(0x142)]||!_0x457295[_0x5a8998(0x140)])throw new Error(_0x5a8998(0x13e));const _0x57a276=_0x52ba32[_0x5a8998(0x130)]??defaultPresentation,_0xe21c95=_0x457295[_0x5a8998(0x12b)]===!![],_0x1ecbc5={'result':_0x457295['result'],'command':_0x457295[_0x5a8998(0x138)],'operation':_0x285709,'risk':_0x457295[_0x5a8998(0x142)],'format':_0x457295[_0x5a8998(0x140)],'dryRun':_0xe21c95},_0x19b64e=createLovrabetWriteMetadata(_0x451bdf[_0x5a8998(0x135)],_0x285709,_0x457295[_0x5a8998(0x132)],_0xe21c95);let _0x1599e7;try{_0x1599e7=await _0x57a276[_0x5a8998(0x127)](_0x1ecbc5);}catch(_0xe7974e){if(!_0x19b64e||_0x57a276===defaultPresentation)throw _0xe7974e;_0x1599e7=await defaultPresentation[_0x5a8998(0x127)](_0x1ecbc5);}return{'operation':_0x285709,'risk':_0x457295[_0x5a8998(0x142)],'mode':_0xe21c95?'dry-run':'execute','result':_0x457295['result'],'output':_0x1599e7,..._0x19b64e?{'metadata':_0x19b64e}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x547afb,_0xeeb96c,_0x496009,_0x14cf2a){const _0x15f4cf=a131_0x32aa;if(_0xeeb96c[_0x15f4cf(0x12b)]===!![]||_0x547afb[_0x15f4cf(0x142)]!=='write'&&_0x547afb[_0x15f4cf(0x142)]!==_0x15f4cf(0x12a))return;await _0x14cf2a[_0x15f4cf(0x137)][_0x15f4cf(0x13b)](buildLovrabetConfirmationRequest(_0x547afb,_0x496009,_0x14cf2a['signal']));}function withAbortSignal(_0x329350,_0x4bd14b){return{..._0x329350,async 'execute'(_0x1036ab){const _0x448cff=a131_0x32aa;return throwIfAborted(_0x4bd14b),_0x329350[_0x448cff(0x13f)]({..._0x1036ab,'signal':_0x4bd14b});}};}function throwIfAborted(_0x452840){const _0x428c59=a131_0x32aa;if(_0x452840?.[_0x428c59(0x141)])throw _0x452840[_0x428c59(0x133)]instanceof Error?_0x452840[_0x428c59(0x133)]:new DOMException(_0x428c59(0x129),_0x428c59(0x146));}
1
+ (function(_0x951aea,_0x16ce41){const _0x54ffe1=a132_0x1129,_0x479421=_0x951aea();while(!![]){try{const _0x21987d=parseInt(_0x54ffe1(0x1aa))/0x1*(parseInt(_0x54ffe1(0x1a1))/0x2)+parseInt(_0x54ffe1(0x1ae))/0x3*(parseInt(_0x54ffe1(0x1b4))/0x4)+-parseInt(_0x54ffe1(0x1b0))/0x5+parseInt(_0x54ffe1(0x1b7))/0x6*(-parseInt(_0x54ffe1(0x1a5))/0x7)+-parseInt(_0x54ffe1(0x1a3))/0x8*(-parseInt(_0x54ffe1(0x1ac))/0x9)+-parseInt(_0x54ffe1(0x1a2))/0xa+parseInt(_0x54ffe1(0x19d))/0xb;if(_0x21987d===_0x16ce41)break;else _0x479421['push'](_0x479421['shift']());}catch(_0x57f354){_0x479421['push'](_0x479421['shift']());}}}(a132_0x2c04,0x8c9f0));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x35c4a3,command:_0x395530,risk:_0x1e6d81,dryRun:_0x33238d}){const _0x3071bf=a132_0x1129;return JSON[_0x3071bf(0x1a7)]({'ok':_0x35c4a3['ok'],'command':_0x395530,'risk':_0x1e6d81,..._0x33238d?{'dryRun':!![]}:{},..._0x35c4a3['data']!==undefined?{'data':_0x35c4a3[_0x3071bf(0x1b6)]}:{},..._0x35c4a3[_0x3071bf(0x1b5)]?{'message':_0x35c4a3['message']}:{}});}};export async function invokeLovrabet(_0x19f57e,_0x54b722){const _0xf525b5=a132_0x1129;throwIfAborted(_0x54b722[_0xf525b5(0x1b2)]);const _0x162241=await resolveLovrabetInvocation(_0x19f57e),_0x29dd79=canonicalLovrabetOperation(_0x162241['definition']);return await confirmWriteBeforeQueue(_0x162241[_0xf525b5(0x199)],_0x162241[_0xf525b5(0x19c)],_0x29dd79,_0x54b722),runSerialized(async()=>{const _0xbd1664=_0xf525b5;throwIfAborted(_0x54b722[_0xbd1664(0x1b2)]);const _0x1910e9={},_0x46f5ce=buildConfigFromFlags(_0x162241[_0xbd1664(0x19c)]);await initGlobalEnvironment(_0x46f5ce);const _0x2dc4f6=createPipelineEnv(_0x46f5ce,{..._0x162241[_0xbd1664(0x19c)],'yes':_0x162241[_0xbd1664(0x199)][_0xbd1664(0x1a6)]==='high-risk-write'?!![]:_0x162241['rawFlags'][_0xbd1664(0x1a8)],'nonInteractive':!![]});_0x2dc4f6[_0xbd1664(0x19e)]=_0x162241[_0xbd1664(0x19e)],_0x2dc4f6[_0xbd1664(0x197)]=!![],_0x2dc4f6['riskLevel']=_0xbd1664(0x1ad);const _0x25f52a=withAbortSignal(_0x162241[_0xbd1664(0x199)],_0x54b722[_0xbd1664(0x1b2)]),_0x54feed=createLovrabetRunnerAdapter({'formatOutput'(_0x3c17be,_0x42c5f4){const _0x2fef54=_0xbd1664;_0x1910e9['result']=_0x3c17be,_0x1910e9[_0x2fef54(0x19b)]=_0x42c5f4[_0x2fef54(0x19b)],_0x1910e9[_0x2fef54(0x1a6)]=_0x42c5f4[_0x2fef54(0x1a6)],_0x1910e9[_0x2fef54(0x1a9)]=_0x42c5f4['format'],_0x1910e9[_0x2fef54(0x1b3)]=_0x42c5f4[_0x2fef54(0x1b3)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.');}});try{await runCommand(_0x25f52a,_0x2dc4f6,_0x54feed);if(!_0x1910e9[_0xbd1664(0x1a0)]||!_0x1910e9['command']||!_0x1910e9[_0xbd1664(0x1a6)]||!_0x1910e9['format'])throw new Error(_0xbd1664(0x19a));const _0x238798=_0x54b722[_0xbd1664(0x1ab)]??defaultPresentation,_0x29a9a1=_0x1910e9[_0xbd1664(0x1b3)]===!![],_0x1ab346={'result':_0x1910e9[_0xbd1664(0x1a0)],'command':_0x1910e9[_0xbd1664(0x19b)],'operation':_0x29dd79,'risk':_0x1910e9['risk'],'format':_0x1910e9['format'],'dryRun':_0x29a9a1},_0x139b3a=createLovrabetWriteMetadata(_0x162241[_0xbd1664(0x199)],_0x29dd79,_0x1910e9[_0xbd1664(0x1a0)],_0x29a9a1);let _0x4f93d0;try{_0x4f93d0=await _0x238798['present'](_0x1ab346);}catch(_0x5cd87c){if(!_0x139b3a||_0x238798===defaultPresentation)throw _0x5cd87c;_0x4f93d0=await defaultPresentation[_0xbd1664(0x198)](_0x1ab346);}return{'operation':_0x29dd79,'risk':_0x1910e9['risk'],'mode':_0x29a9a1?'dry-run':_0xbd1664(0x1af),'result':_0x1910e9[_0xbd1664(0x1a0)],'output':_0x4f93d0,..._0x139b3a?{'metadata':_0x139b3a}:{}};}finally{await finalizeLovrabetRuntimeState();}});}function a132_0x1129(_0xcf222d,_0x3513c9){_0xcf222d=_0xcf222d-0x197;const _0x2c04f3=a132_0x2c04();let _0x11291a=_0x2c04f3[_0xcf222d];return _0x11291a;}async function confirmWriteBeforeQueue(_0x28fba9,_0x5e6146,_0x3a684d,_0x18cb6d){const _0xbaa3bd=a132_0x1129;if(_0x5e6146['dryRun']===!![]||_0x28fba9[_0xbaa3bd(0x1a6)]!=='write'&&_0x28fba9[_0xbaa3bd(0x1a6)]!=='high-risk-write')return;await _0x18cb6d['confirmation']['confirm'](buildLovrabetConfirmationRequest(_0x28fba9,_0x3a684d,_0x18cb6d[_0xbaa3bd(0x1b2)]));}function withAbortSignal(_0x4371af,_0x34ce1e){return{..._0x4371af,async 'execute'(_0x263ecb){const _0x8dfa04=a132_0x1129;return throwIfAborted(_0x34ce1e),_0x4371af[_0x8dfa04(0x1af)]({..._0x263ecb,'signal':_0x34ce1e});}};}function throwIfAborted(_0x61df5){const _0x410347=a132_0x1129;if(_0x61df5?.['aborted'])throw _0x61df5[_0x410347(0x1b1)]instanceof Error?_0x61df5[_0x410347(0x1b1)]:new DOMException(_0x410347(0x1a4),_0x410347(0x19f));}function a132_0x2c04(){const _0x1a1e94=['isNonInteractive','present','definition','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','command','rawFlags','5154523lVZlPD','args','AbortError','result','3202BrniEr','2453270etREkz','824KFwbXd','Lovrabet\x20invocation\x20aborted.','3514462YqORcx','risk','stringify','yes','format','42fouYQq','presentation','41949aMWZRJ','high-risk-write','868089dYQvvW','execute','2803150fVImYF','reason','signal','dryRun','12OTplFj','message','data','6uUmsQI'];a132_0x2c04=function(){return _0x1a1e94;};return a132_0x2c04();}
@@ -1 +1 @@
1
- const a132_0x4e7392=a132_0x2eba;function a132_0x45f9(){const _0x57d9c8=['resolve','1802297iArwSA','catch','6798015JFBPrx','81135sCQXBo','150cBvOmN','4pUSTKt','575548WnCqwk','739128PVHYlS','939261HmSmPF','451836owgqXe'];a132_0x45f9=function(){return _0x57d9c8;};return a132_0x45f9();}(function(_0x521943,_0x37770f){const _0x50d8e2=a132_0x2eba,_0x3d9a0b=_0x521943();while(!![]){try{const _0x8085f3=parseInt(_0x50d8e2(0x128))/0x1+parseInt(_0x50d8e2(0x125))/0x2+-parseInt(_0x50d8e2(0x127))/0x3*(parseInt(_0x50d8e2(0x124))/0x4)+-parseInt(_0x50d8e2(0x122))/0x5*(-parseInt(_0x50d8e2(0x123))/0x6)+parseInt(_0x50d8e2(0x12a))/0x7+-parseInt(_0x50d8e2(0x126))/0x8+-parseInt(_0x50d8e2(0x12c))/0x9;if(_0x8085f3===_0x37770f)break;else _0x3d9a0b['push'](_0x3d9a0b['shift']());}catch(_0xcf07b0){_0x3d9a0b['push'](_0x3d9a0b['shift']());}}}(a132_0x45f9,0x3b117));let tail=Promise[a132_0x4e7392(0x129)]();function a132_0x2eba(_0x4ffb54,_0x252238){_0x4ffb54=_0x4ffb54-0x122;const _0x45f98d=a132_0x45f9();let _0x2ebafc=_0x45f98d[_0x4ffb54];return _0x2ebafc;}export async function runSerialized(_0x2f5e83){const _0x4d33f8=a132_0x4e7392,_0x482a22=tail;let _0x5aa409;tail=new Promise(_0x24912a=>{_0x5aa409=_0x24912a;}),await _0x482a22[_0x4d33f8(0x12b)](()=>undefined);try{return await _0x2f5e83();}finally{_0x5aa409();}}
1
+ function a133_0x41bf(){const _0x1d4ab8=['591524QHVESB','3AdBzpP','2141FvMvby','12223002DzMNOC','680NcvjeE','catch','4528KEWviU','11160ogihrZ','resolve','6629slbHow','1696320JisfYi','1905258JnJaUs','4540aPsdHo','5eHiCgK'];a133_0x41bf=function(){return _0x1d4ab8;};return a133_0x41bf();}function a133_0xc9a3(_0x3a29f5,_0x1d1eea){_0x3a29f5=_0x3a29f5-0x189;const _0x41bf11=a133_0x41bf();let _0xc9a356=_0x41bf11[_0x3a29f5];return _0xc9a356;}const a133_0x4de4ce=a133_0xc9a3;(function(_0x2fc59b,_0x3fe3c7){const _0x1378f8=a133_0xc9a3,_0xf29ac8=_0x2fc59b();while(!![]){try{const _0x27a01c=parseInt(_0x1378f8(0x191))/0x1*(parseInt(_0x1378f8(0x193))/0x2)+-parseInt(_0x1378f8(0x190))/0x3*(parseInt(_0x1378f8(0x18f))/0x4)+parseInt(_0x1378f8(0x18e))/0x5*(parseInt(_0x1378f8(0x18c))/0x6)+-parseInt(_0x1378f8(0x18a))/0x7*(-parseInt(_0x1378f8(0x195))/0x8)+-parseInt(_0x1378f8(0x196))/0x9*(-parseInt(_0x1378f8(0x18d))/0xa)+-parseInt(_0x1378f8(0x192))/0xb+-parseInt(_0x1378f8(0x18b))/0xc;if(_0x27a01c===_0x3fe3c7)break;else _0xf29ac8['push'](_0xf29ac8['shift']());}catch(_0x486b99){_0xf29ac8['push'](_0xf29ac8['shift']());}}}(a133_0x41bf,0xb5a56));let tail=Promise[a133_0x4de4ce(0x189)]();export async function runSerialized(_0x597178){const _0x9768d1=a133_0x4de4ce,_0x15ebe2=tail;let _0x18b40f;tail=new Promise(_0x5bae4c=>{_0x18b40f=_0x5bae4c;}),await _0x15ebe2[_0x9768d1(0x194)](()=>undefined);try{return await _0x597178();}finally{_0x18b40f();}}
@@ -1 +1 @@
1
- (function(_0x4c7971,_0x30008e){const _0x381506=a133_0x479b,_0x1e23a0=_0x4c7971();while(!![]){try{const _0x2956fa=-parseInt(_0x381506(0x1ed))/0x1+-parseInt(_0x381506(0x1da))/0x2+-parseInt(_0x381506(0x1eb))/0x3+-parseInt(_0x381506(0x1e8))/0x4*(-parseInt(_0x381506(0x1e6))/0x5)+-parseInt(_0x381506(0x1e4))/0x6*(parseInt(_0x381506(0x1e0))/0x7)+parseInt(_0x381506(0x1d9))/0x8*(parseInt(_0x381506(0x1e9))/0x9)+parseInt(_0x381506(0x1e5))/0xa;if(_0x2956fa===_0x30008e)break;else _0x1e23a0['push'](_0x1e23a0['shift']());}catch(_0x292174){_0x1e23a0['push'](_0x1e23a0['shift']());}}}(a133_0x19f0,0x51a33));import a133_0x3d4029 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';function a133_0x479b(_0x591c99,_0x50ecfa){_0x591c99=_0x591c99-0x1d8;const _0x19f0aa=a133_0x19f0();let _0x479b75=_0x19f0aa[_0x591c99];return _0x479b75;}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x3f348d){const _0x4f1737=a133_0x479b,_0x1bb40b=a133_0x3d4029('',{'importMeta':import.meta,'argv':_0x3f348d,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x52566b=[..._0x1bb40b['input']],_0x7baac9=_0x1bb40b[_0x4f1737(0x1dc)];await correctFlags(_0x7baac9);const _0x1b9ef9=_0x52566b[0x0];if(!_0x1b9ef9)throw CliErrors[_0x4f1737(0x1dd)]('Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0x4bc8e1=resolveRemovedCommand(_0x1b9ef9,_0x52566b[0x1]);if(_0x4bc8e1)throw CliErrors['validation'](_0x4bc8e1[_0x4f1737(0x1db)],_0x4bc8e1['hint']);if(!isKnownService(_0x1b9ef9)){const _0x5968d2=resolveDynamicServiceCommand(_0x52566b,_0x7baac9);if(!_0x5968d2)throw CliErrors[_0x4f1737(0x1ea)](_0x52566b[_0x4f1737(0x1de)]('\x20'));return Object['assign'](_0x7baac9,_0x5968d2[_0x4f1737(0x1dc)]),{'definition':_0x5968d2['definition'],'rawFlags':_0x7baac9,'args':_0x5968d2[_0x4f1737(0x1ec)]};}const _0x4fb436=getServiceEntry(_0x1b9ef9),_0x316370=_0x52566b[0x1]||_0x4fb436[_0x4f1737(0x1df)];if(!_0x316370)throw CliErrors[_0x4f1737(0x1dd)](_0x4f1737(0x1e3)+_0x1b9ef9+'\x22.');const _0x4daa3d=findDefinition(_0x1b9ef9,_0x316370);if(!_0x4daa3d)throw CliErrors['unknownCommand'](_0x1b9ef9+'\x20'+_0x316370);return{'definition':_0x4daa3d,'rawFlags':_0x7baac9,'args':_0x52566b[_0x4f1737(0x1e1)](0x2)};}function a133_0x19f0(){const _0x3bdc56=['5mBWVXE','../commands/registry.js','1036492BTTyDZ','226377jLErlS','unknownCommand','1679511hdCyhb','args','621244Gibjkd','assign','8ZVvfZm','62770ArujyA','message','flags','validation','join','defaultCommand','3479945cNwKdW','slice','flatMap','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','6XVyiII','17597120ptHbyX'];a133_0x19f0=function(){return _0x3bdc56;};return a133_0x19f0();}async function correctFlags(_0x3e8f3a){const _0x2a21bf=a133_0x479b;try{const {correctFlags:_0x192ba2}=await import('../framework/preparse.js'),{getAllDefinitions:_0x3a4b9e}=await import(_0x2a21bf(0x1e7)),_0x353bf2=_0x3a4b9e()[_0x2a21bf(0x1e2)](_0x167ed7=>_0x167ed7[_0x2a21bf(0x1dc)]??[]),_0x23d259=_0x192ba2(_0x3e8f3a,_0x353bf2);Object[_0x2a21bf(0x1d8)](_0x3e8f3a,_0x23d259['flags']);}catch{}}
1
+ (function(_0x55d7eb,_0x5e2963){const _0xbc7df6=a134_0x3c34,_0x472844=_0x55d7eb();while(!![]){try{const _0x3d9218=-parseInt(_0xbc7df6(0x15a))/0x1*(parseInt(_0xbc7df6(0x152))/0x2)+-parseInt(_0xbc7df6(0x153))/0x3+parseInt(_0xbc7df6(0x159))/0x4+-parseInt(_0xbc7df6(0x163))/0x5*(-parseInt(_0xbc7df6(0x167))/0x6)+-parseInt(_0xbc7df6(0x15f))/0x7*(parseInt(_0xbc7df6(0x155))/0x8)+-parseInt(_0xbc7df6(0x169))/0x9+parseInt(_0xbc7df6(0x15c))/0xa;if(_0x3d9218===_0x5e2963)break;else _0x472844['push'](_0x472844['shift']());}catch(_0x1d1e73){_0x472844['push'](_0x472844['shift']());}}}(a134_0x4e43,0xba16e));import a134_0x18ef24 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a134_0x4e43(){const _0x2d3a55=['defaultCommand','7yMTAXE','validation','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','join','515pJPHeB','../commands/registry.js','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','hint','63006DKxEqN','assign','11480922CFQRVL','704762DIxUgw','2941437xoCAbG','flags','1512872vlExes','slice','../framework/preparse.js','args','616564HodaBi','3JuGSAN','unknownCommand','30288670ruBpRw','message'];a134_0x4e43=function(){return _0x2d3a55;};return a134_0x4e43();}import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';function a134_0x3c34(_0x419506,_0x3f1318){_0x419506=_0x419506-0x152;const _0x4e436e=a134_0x4e43();let _0x3c34b4=_0x4e436e[_0x419506];return _0x3c34b4;}import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x51990b){const _0x126ad4=a134_0x3c34,_0x25a9ff=a134_0x18ef24('',{'importMeta':import.meta,'argv':_0x51990b,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x52d8d0=[..._0x25a9ff['input']],_0x53a70b=_0x25a9ff[_0x126ad4(0x154)];await correctFlags(_0x53a70b);const _0xbd38fc=_0x52d8d0[0x0];if(!_0xbd38fc)throw CliErrors[_0x126ad4(0x160)](_0x126ad4(0x161));const _0x3071ec=resolveRemovedCommand(_0xbd38fc,_0x52d8d0[0x1]);if(_0x3071ec)throw CliErrors[_0x126ad4(0x160)](_0x3071ec[_0x126ad4(0x15d)],_0x3071ec[_0x126ad4(0x166)]);if(!isKnownService(_0xbd38fc)){const _0x257aea=resolveDynamicServiceCommand(_0x52d8d0,_0x53a70b);if(!_0x257aea)throw CliErrors[_0x126ad4(0x15b)](_0x52d8d0[_0x126ad4(0x162)]('\x20'));return Object['assign'](_0x53a70b,_0x257aea['flags']),{'definition':_0x257aea['definition'],'rawFlags':_0x53a70b,'args':_0x257aea[_0x126ad4(0x158)]};}const _0x234d48=getServiceEntry(_0xbd38fc),_0x5a21a5=_0x52d8d0[0x1]||_0x234d48[_0x126ad4(0x15e)];if(!_0x5a21a5)throw CliErrors[_0x126ad4(0x160)](_0x126ad4(0x165)+_0xbd38fc+'\x22.');const _0x1f1ba4=findDefinition(_0xbd38fc,_0x5a21a5);if(!_0x1f1ba4)throw CliErrors['unknownCommand'](_0xbd38fc+'\x20'+_0x5a21a5);return{'definition':_0x1f1ba4,'rawFlags':_0x53a70b,'args':_0x52d8d0[_0x126ad4(0x156)](0x2)};}async function correctFlags(_0x4ec616){const _0x4d079b=a134_0x3c34;try{const {correctFlags:_0x47f9d6}=await import(_0x4d079b(0x157)),{getAllDefinitions:_0x524191}=await import(_0x4d079b(0x164)),_0x26be5e=_0x524191()['flatMap'](_0x1871ad=>_0x1871ad[_0x4d079b(0x154)]??[]),_0x350281=_0x47f9d6(_0x4ec616,_0x26be5e);Object[_0x4d079b(0x168)](_0x4ec616,_0x350281[_0x4d079b(0x154)]);}catch{}}
@@ -1 +1 @@
1
- const a135_0x284a58=a135_0x356e;(function(_0x3c36b2,_0x2a9f9d){const _0x176e2d=a135_0x356e,_0x877660=_0x3c36b2();while(!![]){try{const _0x52b6f1=-parseInt(_0x176e2d(0x12e))/0x1*(-parseInt(_0x176e2d(0x11a))/0x2)+parseInt(_0x176e2d(0x10a))/0x3*(-parseInt(_0x176e2d(0x11d))/0x4)+parseInt(_0x176e2d(0x131))/0x5*(parseInt(_0x176e2d(0x115))/0x6)+parseInt(_0x176e2d(0xfa))/0x7*(-parseInt(_0x176e2d(0x11e))/0x8)+-parseInt(_0x176e2d(0x112))/0x9*(-parseInt(_0x176e2d(0xf9))/0xa)+-parseInt(_0x176e2d(0x108))/0xb*(parseInt(_0x176e2d(0x13a))/0xc)+parseInt(_0x176e2d(0x111))/0xd;if(_0x52b6f1===_0x2a9f9d)break;else _0x877660['push'](_0x877660['shift']());}catch(_0x3040a1){_0x877660['push'](_0x877660['shift']());}}}(a135_0x9a69,0x6b73e));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a135_0x284a58(0x133),SKILL_NAME=a135_0x284a58(0x129);function frontmatterValue(_0xa4cd44,_0x43b10c){const _0x38570b=a135_0x284a58;return _0xa4cd44[_0x38570b(0x101)](new RegExp('^'+_0x43b10c+_0x38570b(0x139),'m'))?.[0x1]?.[_0x38570b(0x136)]()??'';}function listFiles(_0x5e9b50,_0x40869e=_0x5e9b50){const _0x451412=a135_0x284a58;return readdirSync(_0x40869e,{'withFileTypes':!![]})[_0x451412(0x118)](_0x20c9b2=>{const _0x50cdb2=_0x451412,_0x2c17b9=join(_0x40869e,_0x20c9b2[_0x50cdb2(0xfc)]),_0x20cb1f=lstatSync(_0x2c17b9);if(_0x20cb1f[_0x50cdb2(0x10e)]())throw new Error(_0x50cdb2(0x130)+_0x2c17b9);if(_0x20cb1f[_0x50cdb2(0x104)]())return listFiles(_0x5e9b50,_0x2c17b9);if(!_0x20cb1f[_0x50cdb2(0x11b)]())throw new Error(_0x50cdb2(0x128)+_0x2c17b9);return[relative(_0x5e9b50,_0x2c17b9)[_0x50cdb2(0xfe)](sep)[_0x50cdb2(0x100)]('/')];})[_0x451412(0xf3)]((_0x3eab6f,_0x5a9d6d)=>_0x3eab6f<_0x5a9d6d?-0x1:_0x3eab6f>_0x5a9d6d?0x1:0x0);}function a135_0x356e(_0x156781,_0x33fcba){_0x156781=_0x156781-0xf3;const _0x9a699d=a135_0x9a69();let _0x356e18=_0x9a699d[_0x156781];return _0x356e18;}function digestFiles(_0x2aa85c,_0x2caf7f){const _0x89daad=a135_0x284a58,_0x3b7a9b=createHash(_0x89daad(0x107));for(const _0x2b7d5e of _0x2caf7f){if(_0x2b7d5e[_0x89daad(0xf6)]('/')||_0x2b7d5e[_0x89daad(0xfe)]('/')[_0x89daad(0xfb)]('..')||_0x2b7d5e[_0x89daad(0xfb)]('\x5c'))throw new Error(_0x89daad(0x120)+_0x2b7d5e);_0x3b7a9b[_0x89daad(0x103)](_0x2b7d5e),_0x3b7a9b['update']('\x00'),_0x3b7a9b[_0x89daad(0x103)](readFileSync(join(_0x2aa85c,..._0x2b7d5e[_0x89daad(0xfe)]('/')))),_0x3b7a9b['update']('\x00');}return _0x3b7a9b[_0x89daad(0xff)](_0x89daad(0x10b));}function sameFiles(_0x7ae153,_0x52f816){const _0x14589d=a135_0x284a58;return _0x7ae153['length']===_0x52f816[_0x14589d(0x12a)]&&_0x7ae153[_0x14589d(0x105)]((_0x41617a,_0x2c781f)=>_0x41617a===_0x52f816[_0x2c781f]);}function readSource(_0x20bb7f){const _0x49298b=a135_0x284a58,_0x406715=JSON[_0x49298b(0x114)](readFileSync(join(_0x20bb7f,_0x49298b(0x11c)),'utf8')),_0x136dcb=JSON['parse'](readFileSync(join(_0x20bb7f,_0x49298b(0xf8),_0x49298b(0x102)),_0x49298b(0x116))),_0x58198e=join(_0x20bb7f,_0x49298b(0xf8),SKILL_NAME),_0x1002b0=frontmatterValue(readFileSync(join(_0x58198e,_0x49298b(0x117)),'utf8'),_0x49298b(0x109)),_0x1a5791=listFiles(_0x58198e);if(_0x136dcb[_0x49298b(0x12c)]!==0x1||_0x136dcb[_0x49298b(0xfc)]!==SKILL_NAME||!_0x406715[_0x49298b(0x109)]||_0x136dcb[_0x49298b(0x134)]!==_0x406715[_0x49298b(0x109)]||_0x136dcb[_0x49298b(0xf5)]!==_0x406715['version']||_0x1002b0!==_0x406715[_0x49298b(0x109)]||!sameFiles(_0x1a5791,_0x136dcb[_0x49298b(0x12b)])||digestFiles(_0x58198e,_0x1a5791)!==_0x136dcb[_0x49298b(0xff)])throw new Error(_0x49298b(0x10f));return{'packageVersion':_0x406715[_0x49298b(0x109)],'skillVersion':_0x1002b0,'root':_0x58198e,'manifest':_0x136dcb};}function installedSkillPath(_0x4f5dc3){const _0x5ad6b1=a135_0x284a58,_0x496a87=resolveInstalledSkill(SKILL_NAME,{'home':_0x4f5dc3});if(_0x496a87[_0x5ad6b1(0x12d)]==='present')return{'state':_0x5ad6b1(0x119),'path':dirname(_0x496a87[_0x5ad6b1(0x10c)])};if(_0x496a87[_0x5ad6b1(0x12d)]===_0x5ad6b1(0x11f))return{'state':'missing'};return{'state':_0x5ad6b1(0x122),'reason':_0x496a87[_0x5ad6b1(0xfd)]};}export function inspectInstalledBuiltinSkillVersion(_0x322eda,_0x3f5631={}){const _0x33e220=a135_0x284a58,_0x4d46a8=installedSkillPath(_0x3f5631[_0x33e220(0x12f)]??homedir());if(_0x4d46a8[_0x33e220(0x12d)]===_0x33e220(0xf7))return{'state':_0x33e220(0xf7),'expectedVersion':_0x322eda,'repairCommand':REPAIR_COMMAND};if(_0x4d46a8[_0x33e220(0x12d)]===_0x33e220(0x122))return{'state':_0x33e220(0x122),'expectedVersion':_0x322eda,'reason':_0x4d46a8['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x5a7254=frontmatterValue(readFileSync(join(_0x4d46a8[_0x33e220(0x10c)],_0x33e220(0x117)),_0x33e220(0x116)),_0x33e220(0x109));return{'state':_0x5a7254===_0x322eda?_0x33e220(0x138):_0x33e220(0x123),'expectedVersion':_0x322eda,'skillVersion':_0x5a7254,'installedPath':_0x4d46a8['path'],'repairCommand':REPAIR_COMMAND};}catch(_0x37f319){return{'state':_0x33e220(0x122),'expectedVersion':_0x322eda,'installedPath':_0x4d46a8[_0x33e220(0x10c)],'reason':_0x37f319 instanceof Error?_0x37f319[_0x33e220(0x127)]:String(_0x37f319),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x456724={}){const _0x465421=a135_0x284a58,_0x12dbdf=_0x456724[_0x465421(0x137)]??DEFAULT_PACKAGE_ROOT;let _0x4935ff;try{_0x4935ff=readSource(_0x12dbdf);}catch(_0x42a719){return{'state':_0x465421(0x122),'packageVersion':'unknown','reason':_0x42a719 instanceof Error?_0x42a719[_0x465421(0x127)]:String(_0x42a719),'repairCommand':REPAIR_COMMAND};}const _0x4e3372=installedSkillPath(_0x456724[_0x465421(0x12f)]??homedir());if(_0x4e3372[_0x465421(0x12d)]===_0x465421(0xf7))return{'state':_0x465421(0xf7),'packageVersion':_0x4935ff[_0x465421(0x134)],'repairCommand':REPAIR_COMMAND};if(_0x4e3372[_0x465421(0x12d)]===_0x465421(0x122))return{'state':'unverifiable','packageVersion':_0x4935ff[_0x465421(0x134)],'reason':_0x4e3372[_0x465421(0xfd)],'repairCommand':REPAIR_COMMAND};try{const _0x165502=frontmatterValue(readFileSync(join(_0x4e3372[_0x465421(0x10c)],'SKILL.md'),_0x465421(0x116)),_0x465421(0x109));if(_0x165502!==_0x4935ff['skillVersion'])return{'state':'version_mismatch','packageVersion':_0x4935ff[_0x465421(0x134)],'skillVersion':_0x165502,'installedPath':_0x4e3372[_0x465421(0x10c)],'repairCommand':REPAIR_COMMAND};const _0x40dcbe=listFiles(_0x4e3372['path']),_0x207bcd=digestFiles(_0x4e3372[_0x465421(0x10c)],_0x40dcbe);return{'state':sameFiles(_0x40dcbe,_0x4935ff[_0x465421(0x132)]['files'])&&_0x207bcd===_0x4935ff['manifest'][_0x465421(0xff)]?'current':_0x465421(0x113),'packageVersion':_0x4935ff[_0x465421(0x134)],'skillVersion':_0x165502,'installedPath':_0x4e3372['path'],'digest':_0x207bcd,'repairCommand':REPAIR_COMMAND};}catch(_0x5cdb72){return{'state':'unverifiable','packageVersion':_0x4935ff[_0x465421(0x134)],'installedPath':_0x4e3372['path'],'reason':_0x5cdb72 instanceof Error?_0x5cdb72[_0x465421(0x127)]:String(_0x5cdb72),'repairCommand':REPAIR_COMMAND};}}function failure(_0x4b1708,_0x1e4758,_0x559778,_0x859b79){const _0x44f319=a135_0x284a58;return{'ok':![],'code':_0x4b1708,'packageVersion':_0x1e4758['packageVersion'],'skillVersion':_0x1e4758['skillVersion'],'installedPath':_0x859b79,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x559778 instanceof Error?_0x559778[_0x44f319(0x127)]:String(_0x559778)};}export function installBuiltinSkill(_0x107347={}){const _0x50c0db=a135_0x284a58,_0x3bf8d8=_0x107347[_0x50c0db(0x137)]??DEFAULT_PACKAGE_ROOT,_0x4f3564=_0x107347['home']??homedir();let _0x316f09;try{_0x316f09=readSource(_0x3bf8d8);}catch(_0x3cfc81){return failure(_0x50c0db(0x135),{'packageVersion':_0x50c0db(0xf4),'skillVersion':'unknown'},_0x3cfc81);}const _0x3dc037=inspectBuiltinSkill({'packageRoot':_0x3bf8d8,'home':_0x4f3564}),_0x4aded5=runNpxSkillsAddGlobal(_0x3bf8d8,_0x316f09[_0x50c0db(0x121)],{'stdio':_0x107347[_0x50c0db(0x106)]??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x4f3564}});if(_0x4aded5[_0x50c0db(0x110)])return{'ok':!![],'packageVersion':_0x316f09[_0x50c0db(0x134)],'skillVersion':_0x316f09['skillVersion'],'installedPath':_0x3dc037[_0x50c0db(0x125)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x4aded5['ok'])return failure('INSTALL_FAILED',_0x316f09,_0x4aded5[_0x50c0db(0x126)]??_0x50c0db(0x124)+_0x4aded5['status']);const _0x201154=inspectBuiltinSkill({'packageRoot':_0x3bf8d8,'home':_0x4f3564});if(_0x201154[_0x50c0db(0x12d)]!==_0x50c0db(0x138))return failure('VERIFY_FAILED',_0x316f09,_0x201154[_0x50c0db(0xfd)]??_0x50c0db(0x10d)+_0x201154[_0x50c0db(0x12d)],_0x201154[_0x50c0db(0x125)]);return{'ok':!![],'packageVersion':_0x316f09[_0x50c0db(0x134)],'skillVersion':_0x316f09[_0x50c0db(0xf5)],'installedPath':_0x201154['installedPath'],'changed':_0x3dc037[_0x50c0db(0x12d)]!==_0x50c0db(0x138),'repairCommand':REPAIR_COMMAND};}function a135_0x9a69(){const _0x17a3a8=['missing','skills','680OlIzeM','1668226rjBmqb','includes','name','reason','split','digest','join','match','lovrabet.manifest.json','update','isDirectory','every','stdio','sha256','130658PXJHlL','version','1970547FLdNLC','hex','path','Installed\x20Skill\x20state\x20is\x20','isSymbolicLink','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','skipped','19807008ASqOSF','10665jOHzEj','content_mismatch','parse','18zaqpGd','utf8','SKILL.md','flatMap','present','102NshBrI','isFile','package.json','4rgNwTu','16ECmVYm','absent','Unsafe\x20manifest\x20path:\x20','root','unverifiable','version_mismatch','skills@latest\x20exited\x20','installedPath','error','message','Unsupported\x20Skill\x20entry:\x20','lovrabet','length','files','schemaVersion','state','9703UPJESH','home','Symbolic\x20link\x20is\x20not\x20allowed:\x20','312070MZgYbn','manifest','lovrabet\x20cli-skill\x20install','packageVersion','SOURCE_INVALID','trim','packageRoot','current',':\x5cs*(.+)$','720vQQIAH','sort','unknown','skillVersion','startsWith'];a135_0x9a69=function(){return _0x17a3a8;};return a135_0x9a69();}
1
+ function a136_0x7755(){const _0x47dc69=['isSymbolicLink','reason','length','SKILL.md','sort','missing','current','94854UwPOOx','skipped','package.json','split','INSTALL_FAILED','sha256','schemaVersion','files','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','2499602LPYkwz','message','packageVersion','home','root','2154856OvpaPe','path','present','trim','572885iWGiVE','Unsafe\x20manifest\x20path:\x20','isDirectory','lovrabet','unverifiable','parse',':\x5cs*(.+)$','13476617kPmcGM','Installed\x20Skill\x20state\x20is\x20','includes','manifest','state','every','44190EKfPfe','skillVersion','unknown','name','70RIfmhT','join','version','skills@latest\x20exited\x20','152UBrtAc','installedPath','lovrabet.manifest.json','SOURCE_INVALID','startsWith','skills','absent','flatMap','hex','2aRYSow','lovrabet\x20cli-skill\x20install','6310IRLqtH','7911vpteEh','packageRoot','digest','utf8','isFile','update','stdio'];a136_0x7755=function(){return _0x47dc69;};return a136_0x7755();}const a136_0x4cd20e=a136_0x1d80;(function(_0x5ac6be,_0x5d809c){const _0x1d3dde=a136_0x1d80,_0x49ed7a=_0x5ac6be();while(!![]){try{const _0x24feaf=parseInt(_0x1d3dde(0x1e5))/0x1*(-parseInt(_0x1d3dde(0x203))/0x2)+parseInt(_0x1d3dde(0x1f2))/0x3*(-parseInt(_0x1d3dde(0x1fa))/0x4)+parseInt(_0x1d3dde(0x1f6))/0x5*(-parseInt(_0x1d3dde(0x214))/0x6)+-parseInt(_0x1d3dde(0x1dc))/0x7+parseInt(_0x1d3dde(0x1e1))/0x8+parseInt(_0x1d3dde(0x206))/0x9*(parseInt(_0x1d3dde(0x205))/0xa)+parseInt(_0x1d3dde(0x1ec))/0xb;if(_0x24feaf===_0x5d809c)break;else _0x49ed7a['push'](_0x49ed7a['shift']());}catch(_0x2ad123){_0x49ed7a['push'](_0x49ed7a['shift']());}}}(a136_0x7755,0x528c4));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a136_0x4cd20e(0x204),SKILL_NAME=a136_0x4cd20e(0x1e8);function frontmatterValue(_0x546c14,_0x2cbcf5){const _0x421182=a136_0x4cd20e;return _0x546c14['match'](new RegExp('^'+_0x2cbcf5+_0x421182(0x1eb),'m'))?.[0x1]?.[_0x421182(0x1e4)]()??'';}function listFiles(_0x31f5ad,_0x974fdf=_0x31f5ad){const _0x3122e1=a136_0x4cd20e;return readdirSync(_0x974fdf,{'withFileTypes':!![]})[_0x3122e1(0x201)](_0x24d55c=>{const _0xa8eac0=_0x3122e1,_0x2046b6=join(_0x974fdf,_0x24d55c[_0xa8eac0(0x1f5)]),_0x3b2a55=lstatSync(_0x2046b6);if(_0x3b2a55[_0xa8eac0(0x20d)]())throw new Error('Symbolic\x20link\x20is\x20not\x20allowed:\x20'+_0x2046b6);if(_0x3b2a55[_0xa8eac0(0x1e7)]())return listFiles(_0x31f5ad,_0x2046b6);if(!_0x3b2a55[_0xa8eac0(0x20a)]())throw new Error('Unsupported\x20Skill\x20entry:\x20'+_0x2046b6);return[relative(_0x31f5ad,_0x2046b6)['split'](sep)[_0xa8eac0(0x1f7)]('/')];})[_0x3122e1(0x211)]((_0x37d315,_0x5abfdb)=>_0x37d315<_0x5abfdb?-0x1:_0x37d315>_0x5abfdb?0x1:0x0);}function digestFiles(_0x54a406,_0x5252ef){const _0x4cc654=a136_0x4cd20e,_0x55ec33=createHash(_0x4cc654(0x219));for(const _0x555a78 of _0x5252ef){if(_0x555a78[_0x4cc654(0x1fe)]('/')||_0x555a78[_0x4cc654(0x217)]('/')[_0x4cc654(0x1ee)]('..')||_0x555a78[_0x4cc654(0x1ee)]('\x5c'))throw new Error(_0x4cc654(0x1e6)+_0x555a78);_0x55ec33[_0x4cc654(0x20b)](_0x555a78),_0x55ec33['update']('\x00'),_0x55ec33[_0x4cc654(0x20b)](readFileSync(join(_0x54a406,..._0x555a78[_0x4cc654(0x217)]('/')))),_0x55ec33[_0x4cc654(0x20b)]('\x00');}return _0x55ec33['digest'](_0x4cc654(0x202));}function sameFiles(_0x81974f,_0x5bb2b6){const _0x3b4105=a136_0x4cd20e;return _0x81974f['length']===_0x5bb2b6[_0x3b4105(0x20f)]&&_0x81974f[_0x3b4105(0x1f1)]((_0xa691c9,_0x386a59)=>_0xa691c9===_0x5bb2b6[_0x386a59]);}function readSource(_0x3e1020){const _0x5aab44=a136_0x4cd20e,_0x40e36d=JSON[_0x5aab44(0x1ea)](readFileSync(join(_0x3e1020,_0x5aab44(0x216)),'utf8')),_0x1a39a4=JSON['parse'](readFileSync(join(_0x3e1020,_0x5aab44(0x1ff),_0x5aab44(0x1fc)),_0x5aab44(0x209))),_0x176da2=join(_0x3e1020,'skills',SKILL_NAME),_0x264650=frontmatterValue(readFileSync(join(_0x176da2,'SKILL.md'),_0x5aab44(0x209)),_0x5aab44(0x1f8)),_0x30b46a=listFiles(_0x176da2);if(_0x1a39a4[_0x5aab44(0x1d9)]!==0x1||_0x1a39a4[_0x5aab44(0x1f5)]!==SKILL_NAME||!_0x40e36d['version']||_0x1a39a4[_0x5aab44(0x1de)]!==_0x40e36d[_0x5aab44(0x1f8)]||_0x1a39a4[_0x5aab44(0x1f3)]!==_0x40e36d[_0x5aab44(0x1f8)]||_0x264650!==_0x40e36d[_0x5aab44(0x1f8)]||!sameFiles(_0x30b46a,_0x1a39a4[_0x5aab44(0x1da)])||digestFiles(_0x176da2,_0x30b46a)!==_0x1a39a4[_0x5aab44(0x208)])throw new Error(_0x5aab44(0x1db));return{'packageVersion':_0x40e36d[_0x5aab44(0x1f8)],'skillVersion':_0x264650,'root':_0x176da2,'manifest':_0x1a39a4};}function installedSkillPath(_0xdcb356){const _0x14aa5b=a136_0x4cd20e,_0x343295=resolveInstalledSkill(SKILL_NAME,{'home':_0xdcb356});if(_0x343295['state']===_0x14aa5b(0x1e3))return{'state':_0x14aa5b(0x1e3),'path':dirname(_0x343295[_0x14aa5b(0x1e2)])};if(_0x343295['state']===_0x14aa5b(0x200))return{'state':_0x14aa5b(0x212)};return{'state':_0x14aa5b(0x1e9),'reason':_0x343295[_0x14aa5b(0x20e)]};}export function inspectInstalledBuiltinSkillVersion(_0x5360f7,_0x5c9df2={}){const _0x43994c=a136_0x4cd20e,_0x14af0c=installedSkillPath(_0x5c9df2[_0x43994c(0x1df)]??homedir());if(_0x14af0c['state']===_0x43994c(0x212))return{'state':_0x43994c(0x212),'expectedVersion':_0x5360f7,'repairCommand':REPAIR_COMMAND};if(_0x14af0c[_0x43994c(0x1f0)]===_0x43994c(0x1e9))return{'state':_0x43994c(0x1e9),'expectedVersion':_0x5360f7,'reason':_0x14af0c['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x5c3014=frontmatterValue(readFileSync(join(_0x14af0c[_0x43994c(0x1e2)],'SKILL.md'),_0x43994c(0x209)),'version');return{'state':_0x5c3014===_0x5360f7?_0x43994c(0x213):'version_mismatch','expectedVersion':_0x5360f7,'skillVersion':_0x5c3014,'installedPath':_0x14af0c['path'],'repairCommand':REPAIR_COMMAND};}catch(_0x5b405e){return{'state':_0x43994c(0x1e9),'expectedVersion':_0x5360f7,'installedPath':_0x14af0c[_0x43994c(0x1e2)],'reason':_0x5b405e instanceof Error?_0x5b405e[_0x43994c(0x1dd)]:String(_0x5b405e),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x4db9d7={}){const _0x25e118=a136_0x4cd20e,_0x1a09a3=_0x4db9d7[_0x25e118(0x207)]??DEFAULT_PACKAGE_ROOT;let _0x149c4;try{_0x149c4=readSource(_0x1a09a3);}catch(_0x441e81){return{'state':'unverifiable','packageVersion':'unknown','reason':_0x441e81 instanceof Error?_0x441e81[_0x25e118(0x1dd)]:String(_0x441e81),'repairCommand':REPAIR_COMMAND};}const _0x440ec7=installedSkillPath(_0x4db9d7['home']??homedir());if(_0x440ec7[_0x25e118(0x1f0)]==='missing')return{'state':_0x25e118(0x212),'packageVersion':_0x149c4['packageVersion'],'repairCommand':REPAIR_COMMAND};if(_0x440ec7['state']===_0x25e118(0x1e9))return{'state':_0x25e118(0x1e9),'packageVersion':_0x149c4[_0x25e118(0x1de)],'reason':_0x440ec7[_0x25e118(0x20e)],'repairCommand':REPAIR_COMMAND};try{const _0x10491b=frontmatterValue(readFileSync(join(_0x440ec7[_0x25e118(0x1e2)],_0x25e118(0x210)),_0x25e118(0x209)),_0x25e118(0x1f8));if(_0x10491b!==_0x149c4[_0x25e118(0x1f3)])return{'state':'version_mismatch','packageVersion':_0x149c4['packageVersion'],'skillVersion':_0x10491b,'installedPath':_0x440ec7[_0x25e118(0x1e2)],'repairCommand':REPAIR_COMMAND};const _0x3299b2=listFiles(_0x440ec7['path']),_0x4b0a19=digestFiles(_0x440ec7[_0x25e118(0x1e2)],_0x3299b2);return{'state':sameFiles(_0x3299b2,_0x149c4[_0x25e118(0x1ef)][_0x25e118(0x1da)])&&_0x4b0a19===_0x149c4[_0x25e118(0x1ef)]['digest']?_0x25e118(0x213):'content_mismatch','packageVersion':_0x149c4[_0x25e118(0x1de)],'skillVersion':_0x10491b,'installedPath':_0x440ec7[_0x25e118(0x1e2)],'digest':_0x4b0a19,'repairCommand':REPAIR_COMMAND};}catch(_0x15881e){return{'state':_0x25e118(0x1e9),'packageVersion':_0x149c4[_0x25e118(0x1de)],'installedPath':_0x440ec7['path'],'reason':_0x15881e instanceof Error?_0x15881e['message']:String(_0x15881e),'repairCommand':REPAIR_COMMAND};}}function a136_0x1d80(_0x4ba359,_0x3cf8c5){_0x4ba359=_0x4ba359-0x1d9;const _0x77551f=a136_0x7755();let _0x1d8061=_0x77551f[_0x4ba359];return _0x1d8061;}function failure(_0x4d5dc0,_0x177b21,_0x295ca8,_0x3440c1){const _0x17680b=a136_0x4cd20e;return{'ok':![],'code':_0x4d5dc0,'packageVersion':_0x177b21['packageVersion'],'skillVersion':_0x177b21[_0x17680b(0x1f3)],'installedPath':_0x3440c1,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x295ca8 instanceof Error?_0x295ca8[_0x17680b(0x1dd)]:String(_0x295ca8)};}export function installBuiltinSkill(_0x33015b={}){const _0xa8726b=a136_0x4cd20e,_0x1b176c=_0x33015b[_0xa8726b(0x207)]??DEFAULT_PACKAGE_ROOT,_0xa0d1c4=_0x33015b[_0xa8726b(0x1df)]??homedir();let _0x75c2d2;try{_0x75c2d2=readSource(_0x1b176c);}catch(_0x4e8f24){return failure(_0xa8726b(0x1fd),{'packageVersion':'unknown','skillVersion':_0xa8726b(0x1f4)},_0x4e8f24);}const _0x4f5306=inspectBuiltinSkill({'packageRoot':_0x1b176c,'home':_0xa0d1c4}),_0x50e89d=runNpxSkillsAddGlobal(_0x1b176c,_0x75c2d2[_0xa8726b(0x1e0)],{'stdio':_0x33015b[_0xa8726b(0x20c)]??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0xa0d1c4}});if(_0x50e89d[_0xa8726b(0x215)])return{'ok':!![],'packageVersion':_0x75c2d2[_0xa8726b(0x1de)],'skillVersion':_0x75c2d2[_0xa8726b(0x1f3)],'installedPath':_0x4f5306[_0xa8726b(0x1fb)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x50e89d['ok'])return failure(_0xa8726b(0x218),_0x75c2d2,_0x50e89d['error']??_0xa8726b(0x1f9)+_0x50e89d['status']);const _0x26fcc8=inspectBuiltinSkill({'packageRoot':_0x1b176c,'home':_0xa0d1c4});if(_0x26fcc8[_0xa8726b(0x1f0)]!==_0xa8726b(0x213))return failure('VERIFY_FAILED',_0x75c2d2,_0x26fcc8['reason']??_0xa8726b(0x1ed)+_0x26fcc8[_0xa8726b(0x1f0)],_0x26fcc8[_0xa8726b(0x1fb)]);return{'ok':!![],'packageVersion':_0x75c2d2[_0xa8726b(0x1de)],'skillVersion':_0x75c2d2[_0xa8726b(0x1f3)],'installedPath':_0x26fcc8[_0xa8726b(0x1fb)],'changed':_0x4f5306['state']!==_0xa8726b(0x213),'repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- const a136_0x3cd937=a136_0x3594;(function(_0x3fa443,_0xa92192){const _0xb4031a=a136_0x3594,_0x2b72e3=_0x3fa443();while(!![]){try{const _0x225ed7=parseInt(_0xb4031a(0xfc))/0x1*(-parseInt(_0xb4031a(0x11c))/0x2)+-parseInt(_0xb4031a(0x108))/0x3+parseInt(_0xb4031a(0xf6))/0x4+-parseInt(_0xb4031a(0xfb))/0x5*(parseInt(_0xb4031a(0x107))/0x6)+parseInt(_0xb4031a(0x117))/0x7*(parseInt(_0xb4031a(0x116))/0x8)+-parseInt(_0xb4031a(0x123))/0x9*(parseInt(_0xb4031a(0x10f))/0xa)+-parseInt(_0xb4031a(0x10c))/0xb*(-parseInt(_0xb4031a(0x10a))/0xc);if(_0x225ed7===_0xa92192)break;else _0x2b72e3['push'](_0x2b72e3['shift']());}catch(_0xafd849){_0x2b72e3['push'](_0x2b72e3['shift']());}}}(a136_0x29e1,0xd15b4));import{execaSync}from'execa';import{LOVRABET_SKILL_SOURCE as a136_0x30fe58}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const LOVRABET_SKILL_SOURCE=a136_0x30fe58;export const LOVRABET_SKILL_GIT_SOURCE=PRODUCT_CONFIG[a136_0x3cd937(0x105)];export const LOVRABET_GLOBAL_SKILL_NAME=PRODUCT_CONFIG[a136_0x3cd937(0xf4)];export function resolveGlobalSkillName(_0x6135d7){const _0x3b0046=a136_0x3cd937;switch(_0x6135d7[_0x3b0046(0x128)]()){case LOVRABET_SKILL_SOURCE:case LOVRABET_SKILL_GIT_SOURCE:return LOVRABET_GLOBAL_SKILL_NAME;default:return undefined;}}export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a136_0x3cd937(0x10b)]);const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function a136_0x3594(_0x36f222,_0x29fdfb){_0x36f222=_0x36f222-0xf3;const _0x29e10f=a136_0x29e1();let _0x359486=_0x29e10f[_0x36f222];return _0x359486;}function failure(_0x41a1de,_0x119c96,_0x1955fa){return{'ok':![],'status':_0x119c96,'code':_0x41a1de,'error':'['+_0x41a1de+']\x20'+_0x1955fa};}function a136_0x29e1(){const _0x9507bf=['56777gEwhcd','signal','stdout','warn','stderr','19218ANDVQr','Installer\x20reported\x20','present','\x20failed\x20target(s)','npx','npx\x20failed\x20to\x20start','PERMISSION_DENIED','141579GFHoEA','npm_config_global','SKILL_NOT_INSTALLED','CHILD_TERMINATED','code','trim','filter','skills@latest','globalSkillName','pipe','2973624YSmTWJ','exit\x20','state','SPAWN_FAILED','join','1267490zEOMRP','101VoCqlx','reason','ENOENT','CHILD_EXIT_NONZERO','EACCES','shortMessage','stdio','unverifiable','failed','internalSkillSource','EPERM','12qFqTAK','1348236YeVrTb','NPM_CONFIG_GLOBAL','1645548BAOpMl','skipNpxSkillsEnvSuffix','121swRYOP','\x22\x20install\x20state:\x20','exitCode','110UFpJRP','match','Skill\x20\x22','message','absent','log','npx\x20terminated\x20by\x20signal\x20','696lPsqXc'];a136_0x29e1=function(){return _0x9507bf;};return a136_0x29e1();}export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}export function runNpxSkillsAddGlobal(_0x48c0b1,_0xbb76b9=LOVRABET_SKILL_SOURCE,_0x8a1828){const _0x294b22=a136_0x3cd937;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x36bd1b=['-y',_0x294b22(0xf3),'add',_0xbb76b9,'-g','-y'],_0x50b733=[_0x294b22(0x120),..._0x36bd1b][_0x294b22(0xfa)]('\x20');console[_0x294b22(0x114)]('*\x20'+_0x50b733);const _0x358e0b={...process.env};delete _0x358e0b[_0x294b22(0x124)],delete _0x358e0b[_0x294b22(0x109)];const _0x41202d=execaSync(_0x294b22(0x120),_0x36bd1b,{'cwd':_0x48c0b1,'stdio':_0x294b22(0xf5),'env':_0x358e0b,'extendEnv':![],'shell':![],'reject':![],'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}),_0x2eede8=[_0x41202d[_0x294b22(0x119)]?String(_0x41202d['stdout']):'',_0x41202d[_0x294b22(0x11b)]?String(_0x41202d[_0x294b22(0x11b)]):''][_0x294b22(0x129)](Boolean)[_0x294b22(0xfa)]('\x0a')['trim'](),_0x160f1e=_0x41202d[_0x294b22(0x10e)]??null;_0x8a1828?.[_0x294b22(0x102)]!==_0x294b22(0xf5)&&_0x2eede8&&console['log'](_0x2eede8);if(_0x41202d['code']){const _0x598a49=_0x41202d['code']===_0x294b22(0xfe)?'NPX_NOT_FOUND':_0x41202d[_0x294b22(0x127)]===_0x294b22(0x106)||_0x41202d['code']===_0x294b22(0x100)?_0x294b22(0x122):'SPAWN_FAILED';return failure(_0x598a49,_0x160f1e,_0x41202d[_0x294b22(0x101)]??_0x41202d[_0x294b22(0x112)]??_0x41202d[_0x294b22(0x127)]);}if(_0x41202d['signal'])return failure(_0x294b22(0x126),_0x160f1e,_0x294b22(0x115)+_0x41202d[_0x294b22(0x118)]);if(_0x41202d[_0x294b22(0x104)]&&_0x160f1e===null)return failure(_0x294b22(0xf9),_0x160f1e,_0x41202d[_0x294b22(0x101)]??_0x41202d['message']??_0x294b22(0x121));if(_0x160f1e!==0x0)return failure(_0x294b22(0xff),_0x160f1e,_0x2eede8||_0x41202d[_0x294b22(0x101)]||_0x294b22(0xf7)+(_0x160f1e??'unknown'));const _0x5b650e=_0x8a1828?.['expectedSkillName']??resolveGlobalSkillName(_0xbb76b9),_0x379738=_0x5b650e?resolveInstalledSkill(_0x5b650e,_0x8a1828?.['presence']):undefined,_0x4ff0ea=_0x2eede8[_0x294b22(0x110)](/Failed to install\s+(\d+)/i);if(_0x4ff0ea&&Number(_0x4ff0ea[0x1])>0x0){const _0x3d653b=_0x294b22(0x11d)+_0x4ff0ea[0x1]+_0x294b22(0x11f)+(_0x2eede8?':\x0a'+_0x2eede8:'');if(_0x379738?.[_0x294b22(0xf8)]===_0x294b22(0x11e))return console[_0x294b22(0x11a)]('!\x20'+_0x3d653b),{'ok':!![],'status':0x0};return failure('INSTALL_PARTIAL',0x0,_0x3d653b);}if(_0x5b650e&&_0x379738){if(_0x379738[_0x294b22(0xf8)]===_0x294b22(0x113))return failure(_0x294b22(0x125),0x0,_0x294b22(0x111)+_0x5b650e+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x379738['checked'][_0x294b22(0xfa)](',\x20')+')');_0x379738[_0x294b22(0xf8)]===_0x294b22(0x103)&&console[_0x294b22(0x11a)]('!\x20Could\x20not\x20verify\x20\x22'+_0x5b650e+_0x294b22(0x10d)+_0x379738[_0x294b22(0xfd)]);}return{'ok':!![],'status':0x0};}
1
+ const a137_0x255dca=a137_0x46b7;(function(_0x59b216,_0x3f70ae){const _0x223b86=a137_0x46b7,_0x2dd993=_0x59b216();while(!![]){try{const _0x5293b4=-parseInt(_0x223b86(0x1c6))/0x1*(-parseInt(_0x223b86(0x1b4))/0x2)+parseInt(_0x223b86(0x1c1))/0x3+-parseInt(_0x223b86(0x1ac))/0x4*(parseInt(_0x223b86(0x1ca))/0x5)+parseInt(_0x223b86(0x1c4))/0x6+-parseInt(_0x223b86(0x1c0))/0x7+-parseInt(_0x223b86(0x1b0))/0x8*(parseInt(_0x223b86(0x1aa))/0x9)+-parseInt(_0x223b86(0x1d8))/0xa*(parseInt(_0x223b86(0x1b2))/0xb);if(_0x5293b4===_0x3f70ae)break;else _0x2dd993['push'](_0x2dd993['shift']());}catch(_0x2c5bee){_0x2dd993['push'](_0x2dd993['shift']());}}}(a137_0x558f,0x4a46d));import{execaSync}from'execa';import{LOVRABET_SKILL_SOURCE as a137_0x18d3ac}from'../constant/distribution.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const LOVRABET_SKILL_SOURCE=a137_0x18d3ac;export const LOVRABET_SKILL_GIT_SOURCE=PRODUCT_CONFIG[a137_0x255dca(0x1a9)];export const LOVRABET_GLOBAL_SKILL_NAME=PRODUCT_CONFIG[a137_0x255dca(0x1db)];export function resolveGlobalSkillName(_0x558313){const _0x99c2ba=a137_0x255dca;switch(_0x558313[_0x99c2ba(0x1c2)]()){case LOVRABET_SKILL_SOURCE:case LOVRABET_SKILL_GIT_SOURCE:return LOVRABET_GLOBAL_SKILL_NAME;default:return undefined;}}export const LOVRABET_SKIP_NPX_SKILLS_ENV=productEnvName(PRODUCT_CONFIG[a137_0x255dca(0x1d1)]);const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x1fe91b,_0x1e21c5,_0x19b588){return{'ok':![],'status':_0x1e21c5,'code':_0x1fe91b,'error':'['+_0x1fe91b+']\x20'+_0x19b588};}export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}function a137_0x46b7(_0x20761e,_0x33d4b5){_0x20761e=_0x20761e-0x1a7;const _0x558f02=a137_0x558f();let _0x46b77d=_0x558f02[_0x20761e];return _0x46b77d;}export function runNpxSkillsAddGlobal(_0x1c1f7a,_0x26d7e5=LOVRABET_SKILL_SOURCE,_0x2becc5){const _0x2e54b8=a137_0x255dca;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2c1fd4=['-y',_0x2e54b8(0x1ae),_0x2e54b8(0x1d4),_0x26d7e5,'-g','-y'],_0x2670e3=[_0x2e54b8(0x1be),..._0x2c1fd4]['join']('\x20');console[_0x2e54b8(0x1cf)]('*\x20'+_0x2670e3);const _0x3cc241={...process.env};delete _0x3cc241[_0x2e54b8(0x1bd)],delete _0x3cc241['NPM_CONFIG_GLOBAL'];const _0x265a68=execaSync(_0x2e54b8(0x1be),_0x2c1fd4,{'cwd':_0x1c1f7a,'stdio':_0x2e54b8(0x1a8),'env':_0x3cc241,'extendEnv':![],'shell':![],'reject':![],'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}),_0xd386bb=[_0x265a68[_0x2e54b8(0x1cb)]?String(_0x265a68[_0x2e54b8(0x1cb)]):'',_0x265a68[_0x2e54b8(0x1d7)]?String(_0x265a68[_0x2e54b8(0x1d7)]):''][_0x2e54b8(0x1d2)](Boolean)['join']('\x0a')[_0x2e54b8(0x1c2)](),_0x53a769=_0x265a68[_0x2e54b8(0x1c3)]??null;_0x2becc5?.[_0x2e54b8(0x1af)]!=='pipe'&&_0xd386bb&&console[_0x2e54b8(0x1cf)](_0xd386bb);if(_0x265a68[_0x2e54b8(0x1ab)]){const _0x540ff9=_0x265a68[_0x2e54b8(0x1ab)]==='ENOENT'?_0x2e54b8(0x1b5):_0x265a68[_0x2e54b8(0x1ab)]==='EPERM'||_0x265a68[_0x2e54b8(0x1ab)]===_0x2e54b8(0x1d9)?_0x2e54b8(0x1bc):_0x2e54b8(0x1dc);return failure(_0x540ff9,_0x53a769,_0x265a68['shortMessage']??_0x265a68[_0x2e54b8(0x1d5)]??_0x265a68[_0x2e54b8(0x1ab)]);}if(_0x265a68[_0x2e54b8(0x1ba)])return failure(_0x2e54b8(0x1c5),_0x53a769,_0x2e54b8(0x1d3)+_0x265a68[_0x2e54b8(0x1ba)]);if(_0x265a68['failed']&&_0x53a769===null)return failure('SPAWN_FAILED',_0x53a769,_0x265a68['shortMessage']??_0x265a68[_0x2e54b8(0x1d5)]??_0x2e54b8(0x1d0));if(_0x53a769!==0x0)return failure('CHILD_EXIT_NONZERO',_0x53a769,_0xd386bb||_0x265a68['shortMessage']||'exit\x20'+(_0x53a769??_0x2e54b8(0x1ce)));const _0x4e74fc=_0x2becc5?.[_0x2e54b8(0x1bb)]??resolveGlobalSkillName(_0x26d7e5),_0x452c8=_0x4e74fc?resolveInstalledSkill(_0x4e74fc,_0x2becc5?.[_0x2e54b8(0x1b1)]):undefined,_0x1d9401=_0xd386bb['match'](/Failed to install\s+(\d+)/i);if(_0x1d9401&&Number(_0x1d9401[0x1])>0x0){const _0x1c144a=_0x2e54b8(0x1c7)+_0x1d9401[0x1]+_0x2e54b8(0x1cc)+(_0xd386bb?':\x0a'+_0xd386bb:'');if(_0x452c8?.['state']===_0x2e54b8(0x1cd))return console[_0x2e54b8(0x1bf)]('!\x20'+_0x1c144a),{'ok':!![],'status':0x0};return failure(_0x2e54b8(0x1c8),0x0,_0x1c144a);}if(_0x4e74fc&&_0x452c8){if(_0x452c8[_0x2e54b8(0x1b6)]===_0x2e54b8(0x1d6))return failure(_0x2e54b8(0x1b7),0x0,_0x2e54b8(0x1ad)+_0x4e74fc+_0x2e54b8(0x1da)+_0x452c8[_0x2e54b8(0x1b3)][_0x2e54b8(0x1b8)](',\x20')+')');_0x452c8['state']==='unverifiable'&&console['warn'](_0x2e54b8(0x1c9)+_0x4e74fc+_0x2e54b8(0x1b9)+_0x452c8[_0x2e54b8(0x1a7)]);}return{'ok':!![],'status':0x0};}function a137_0x558f(){const _0x4446a0=['171CZtauM','code','268usJaGA','Skill\x20\x22','skills@latest','stdio','20392GPuXZr','presence','11nfRmxK','checked','4tWpTGo','NPX_NOT_FOUND','state','SKILL_NOT_INSTALLED','join','\x22\x20install\x20state:\x20','signal','expectedSkillName','PERMISSION_DENIED','npm_config_global','npx','warn','1967126hZHcKh','504747aUgskb','trim','exitCode','3563694OKCiwp','CHILD_TERMINATED','252986lSviOH','Installer\x20reported\x20','INSTALL_PARTIAL','!\x20Could\x20not\x20verify\x20\x22','24045MVbXNX','stdout','\x20failed\x20target(s)','present','unknown','log','npx\x20failed\x20to\x20start','skipNpxSkillsEnvSuffix','filter','npx\x20terminated\x20by\x20signal\x20','add','message','absent','stderr','3122810qaOsoM','EACCES','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','globalSkillName','SPAWN_FAILED','reason','pipe','internalSkillSource'];a137_0x558f=function(){return _0x4446a0;};return a137_0x558f();}
@@ -1 +1 @@
1
- const a137_0x310576=a137_0x2fce;(function(_0x36f94b,_0x32e8f0){const _0x442bd3=a137_0x2fce,_0x57e27b=_0x36f94b();while(!![]){try{const _0x1f891c=-parseInt(_0x442bd3(0x165))/0x1*(-parseInt(_0x442bd3(0x170))/0x2)+parseInt(_0x442bd3(0x171))/0x3+-parseInt(_0x442bd3(0x16b))/0x4*(-parseInt(_0x442bd3(0x167))/0x5)+-parseInt(_0x442bd3(0x16e))/0x6*(parseInt(_0x442bd3(0x16c))/0x7)+parseInt(_0x442bd3(0x163))/0x8+-parseInt(_0x442bd3(0x162))/0x9+-parseInt(_0x442bd3(0x168))/0xa;if(_0x1f891c===_0x32e8f0)break;else _0x57e27b['push'](_0x57e27b['shift']());}catch(_0x1fb9ce){_0x57e27b['push'](_0x57e27b['shift']());}}}(a137_0x427d,0xd45b8));function a137_0x427d(){const _0x240584=['4952097HoziTf','5647712yzOjLy','.DS_Store','19stKVOA','build','73985Hyjagw','8369850tlomXo','.cache','.next','172PzrBXW','7hDyqxO','.hg','7002150BUEMmf','node_modules','164788whSlgF','1549014aVQixH','lovrabet.skill.json','SKILL.md'];a137_0x427d=function(){return _0x240584;};return a137_0x427d();}function a137_0x2fce(_0x45caca,_0x312944){_0x45caca=_0x45caca-0x160;const _0x427d52=a137_0x427d();let _0x2fcec1=_0x427d52[_0x45caca];return _0x2fcec1;}export const METADATA_FILE=a137_0x310576(0x160);export const SKILL_FILE=a137_0x310576(0x161);export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a137_0x310576(0x164)]);export const IGNORED_DIR_NAMES=new Set(['.git',a137_0x310576(0x16d),'.svn',a137_0x310576(0x16f),a137_0x310576(0x16a),'dist',a137_0x310576(0x166),'coverage','.turbo',a137_0x310576(0x169)]);
1
+ const a138_0x15caba=a138_0x46ac;function a138_0x549b(){const _0x3b6ef5=['.svn','2439104edDJxp','lovrabet.skill.json','build','282ymWDcG','133847qdVwZC','dist','5rKbKsr','167028KRVfYb','4451428nFXdIG','17178SbYcjj','.git','node_modules','218XAgNdH','.next','6508593bVJrLH','.cache','.turbo','7391780uZplwt'];a138_0x549b=function(){return _0x3b6ef5;};return a138_0x549b();}(function(_0x565adc,_0xd4f433){const _0x1a51d5=a138_0x46ac,_0x333eb6=_0x565adc();while(!![]){try{const _0x587e25=-parseInt(_0x1a51d5(0x1d0))/0x1+parseInt(_0x1a51d5(0x1d5))/0x2*(parseInt(_0x1a51d5(0x1d2))/0x3)+-parseInt(_0x1a51d5(0x1d1))/0x4*(-parseInt(_0x1a51d5(0x1cf))/0x5)+parseInt(_0x1a51d5(0x1cc))/0x6*(parseInt(_0x1a51d5(0x1cd))/0x7)+-parseInt(_0x1a51d5(0x1c9))/0x8+-parseInt(_0x1a51d5(0x1d7))/0x9+-parseInt(_0x1a51d5(0x1c7))/0xa;if(_0x587e25===_0xd4f433)break;else _0x333eb6['push'](_0x333eb6['shift']());}catch(_0x1b1fc8){_0x333eb6['push'](_0x333eb6['shift']());}}}(a138_0x549b,0xab3df));export const METADATA_FILE=a138_0x15caba(0x1ca);export const SKILL_FILE='SKILL.md';export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,'.DS_Store']);function a138_0x46ac(_0x5c8627,_0x5ad842){_0x5c8627=_0x5c8627-0x1c7;const _0x549bb9=a138_0x549b();let _0x46accb=_0x549bb9[_0x5c8627];return _0x46accb;}export const IGNORED_DIR_NAMES=new Set([a138_0x15caba(0x1d3),'.hg',a138_0x15caba(0x1c8),a138_0x15caba(0x1d4),a138_0x15caba(0x1d6),a138_0x15caba(0x1ce),a138_0x15caba(0x1cb),'coverage',a138_0x15caba(0x1d9),a138_0x15caba(0x1d8)]);
@@ -1 +1 @@
1
- (function(_0x1b94c7,_0x39a2a9){const _0x5802a7=a138_0x5c4c,_0x27a8a0=_0x1b94c7();while(!![]){try{const _0x59680d=-parseInt(_0x5802a7(0xe9))/0x1*(-parseInt(_0x5802a7(0xfb))/0x2)+-parseInt(_0x5802a7(0xf0))/0x3+-parseInt(_0x5802a7(0xec))/0x4+parseInt(_0x5802a7(0xf7))/0x5*(parseInt(_0x5802a7(0xeb))/0x6)+-parseInt(_0x5802a7(0xf8))/0x7+parseInt(_0x5802a7(0xf2))/0x8*(parseInt(_0x5802a7(0xef))/0x9)+parseInt(_0x5802a7(0xf4))/0xa;if(_0x59680d===_0x39a2a9)break;else _0x27a8a0['push'](_0x27a8a0['shift']());}catch(_0x2b2d6d){_0x27a8a0['push'](_0x27a8a0['shift']());}}}(a138_0x13f9,0x3791b));import{lstatSync,readlinkSync,realpathSync,renameSync,rmSync,writeFileSync}from'node:fs';import{dirname,isAbsolute,resolve,sep}from'node:path';import{CliErrors}from'../../errors.js';function a138_0x5c4c(_0x1f9c15,_0x33d2d0){_0x1f9c15=_0x1f9c15-0xe9;const _0x13f9cf=a138_0x13f9();let _0x5c4c6c=_0x13f9cf[_0x1f9c15];return _0x5c4c6c;}import{normalizeSkillRelativePath}from'./local-files.js';export function resolveManagedFilePath(_0x57487b,_0x1a7d27){const _0x48dfe7=a138_0x5c4c,_0x1bfcbf=normalizeSkillRelativePath(_0x1a7d27),_0x2169ae=realOrResolved(_0x57487b),_0x7f3e50=resolve(_0x2169ae,..._0x1bfcbf[_0x48dfe7(0xf5)]('/'));if(!isPathInside(_0x7f3e50,_0x2169ae))throw CliErrors['validation'](_0x48dfe7(0xf3)+_0x1a7d27);return ensureNoSymlinkInManagedPath(_0x2169ae,_0x1bfcbf),_0x7f3e50;}export function ensureNoSymlinkInManagedPath(_0x330581,_0x550aa5){const _0x4e5f29=a138_0x5c4c;let _0x4a167a=_0x330581;for(const _0x4e1c57 of _0x550aa5[_0x4e5f29(0xf5)]('/')){_0x4a167a=resolve(_0x4a167a,_0x4e1c57);const _0x35183b=lstatIfPresent(_0x4a167a);if(_0x35183b?.[_0x4e5f29(0xea)]())throw CliErrors['validation'](_0x4e5f29(0xf1)+_0x550aa5);}}export function isDanglingSymlink(_0x171bae){const _0xec4dc9=a138_0x5c4c;try{return lstatSync(_0x171bae)[_0xec4dc9(0xea)]();}catch{return![];}}export function resolveSymlinkTarget(_0x44bcfb){const _0x53de04=readlinkSync(_0x44bcfb);return isAbsolute(_0x53de04)?_0x53de04:resolve(dirname(_0x44bcfb),_0x53de04);}export function isPathInside(_0x2f231a,_0x32e8e1){const _0x3b1b58=a138_0x5c4c,_0x3ff20b=_0x2f231a['endsWith'](sep)?_0x2f231a:''+_0x2f231a+sep,_0x29cf0e=_0x32e8e1[_0x3b1b58(0xf6)](sep)?_0x32e8e1:''+_0x32e8e1+sep;return _0x2f231a===_0x32e8e1||_0x3ff20b['startsWith'](_0x29cf0e);}export function realOrResolved(_0x3675e2){try{return realpathSync(_0x3675e2);}catch{return resolve(_0x3675e2);}}export function lstatIfPresent(_0x1860eb){try{return lstatSync(_0x1860eb);}catch{return undefined;}}export function writeTextAtomic(_0x1fb325,_0x599f29,_0x53e251){const _0x555119=a138_0x5c4c;writeBytesAtomic(_0x1fb325,Buffer[_0x555119(0xed)](_0x599f29,_0x555119(0xfa)),_0x53e251);}export function writeBytesAtomic(_0x302aad,_0x438cab,_0x2c4041){const _0x3ef20b=a138_0x5c4c,_0x84114e=_0x302aad+_0x3ef20b(0xee);try{writeFileSync(_0x84114e,_0x438cab,{'mode':_0x2c4041}),renameSync(_0x84114e,_0x302aad);}catch(_0x386881){try{rmSync(_0x84114e,{'force':!![]});}catch{}throw _0x386881;}}export function writeJsonAtomic(_0x2e9c20,_0x285578){const _0x1ee9bb=a138_0x5c4c;writeTextAtomic(_0x2e9c20,JSON[_0x1ee9bb(0xf9)](_0x285578,null,0x2)+'\x0a',0x180);}function a138_0x13f9(){const _0x228050=['stringify','utf8','14986YtfzVE','2YfvOxW','isSymbolicLink','18894qDHEcB','784324ZJzMiR','from','.tmp','90GOIOcT','1311240ZPtPWT','Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20','256056YKiUpR','Unsafe\x20Skill\x20file\x20path:\x20','2434600OQMHTk','split','endsWith','465lZIrit','74207yYCZiK'];a138_0x13f9=function(){return _0x228050;};return a138_0x13f9();}
1
+ (function(_0x4e2a47,_0x21b51e){const _0x3e67e3=a139_0x5b13,_0xa592a5=_0x4e2a47();while(!![]){try{const _0x44eab2=parseInt(_0x3e67e3(0x132))/0x1+parseInt(_0x3e67e3(0x13d))/0x2*(parseInt(_0x3e67e3(0x136))/0x3)+-parseInt(_0x3e67e3(0x130))/0x4*(-parseInt(_0x3e67e3(0x12d))/0x5)+-parseInt(_0x3e67e3(0x13e))/0x6+parseInt(_0x3e67e3(0x133))/0x7*(parseInt(_0x3e67e3(0x12f))/0x8)+parseInt(_0x3e67e3(0x137))/0x9*(-parseInt(_0x3e67e3(0x139))/0xa)+-parseInt(_0x3e67e3(0x131))/0xb*(parseInt(_0x3e67e3(0x134))/0xc);if(_0x44eab2===_0x21b51e)break;else _0xa592a5['push'](_0xa592a5['shift']());}catch(_0x276bae){_0xa592a5['push'](_0xa592a5['shift']());}}}(a139_0x5c48,0xb0e30));import{lstatSync,readlinkSync,realpathSync,renameSync,rmSync,writeFileSync}from'node:fs';import{dirname,isAbsolute,resolve,sep}from'node:path';import{CliErrors}from'../../errors.js';function a139_0x5b13(_0xd1612,_0x4f4d97){_0xd1612=_0xd1612-0x12c;const _0x5c484c=a139_0x5c48();let _0x5b13c0=_0x5c484c[_0xd1612];return _0x5b13c0;}function a139_0x5c48(){const _0x2d3eb8=['75867JAVnSH','1081987xKvuov','1141588FgOrgD','1740YMqHuD','startsWith','463071HwJGyM','4359240ClXRJL','stringify','10RShFZT','validation','.tmp','split','2tefXmm','4894134LGADID','isSymbolicLink','endsWith','323355THJAlm','Unsafe\x20Skill\x20file\x20path:\x20','56xGJiya','40TieRwW'];a139_0x5c48=function(){return _0x2d3eb8;};return a139_0x5c48();}import{normalizeSkillRelativePath}from'./local-files.js';export function resolveManagedFilePath(_0xa68f7c,_0x42d2cc){const _0x574f2d=a139_0x5b13,_0x1d6e12=normalizeSkillRelativePath(_0x42d2cc),_0xc45e99=realOrResolved(_0xa68f7c),_0x2375ca=resolve(_0xc45e99,..._0x1d6e12[_0x574f2d(0x13c)]('/'));if(!isPathInside(_0x2375ca,_0xc45e99))throw CliErrors['validation'](_0x574f2d(0x12e)+_0x42d2cc);return ensureNoSymlinkInManagedPath(_0xc45e99,_0x1d6e12),_0x2375ca;}export function ensureNoSymlinkInManagedPath(_0x3c3076,_0x461840){const _0x5ed3f4=a139_0x5b13;let _0x4518f3=_0x3c3076;for(const _0x239546 of _0x461840[_0x5ed3f4(0x13c)]('/')){_0x4518f3=resolve(_0x4518f3,_0x239546);const _0x3fc469=lstatIfPresent(_0x4518f3);if(_0x3fc469?.[_0x5ed3f4(0x13f)]())throw CliErrors[_0x5ed3f4(0x13a)]('Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20'+_0x461840);}}export function isDanglingSymlink(_0x46c1b7){const _0x4c3fc8=a139_0x5b13;try{return lstatSync(_0x46c1b7)[_0x4c3fc8(0x13f)]();}catch{return![];}}export function resolveSymlinkTarget(_0x2bcbaa){const _0x3e7227=readlinkSync(_0x2bcbaa);return isAbsolute(_0x3e7227)?_0x3e7227:resolve(dirname(_0x2bcbaa),_0x3e7227);}export function isPathInside(_0x2ae540,_0x17cf71){const _0x1e977b=a139_0x5b13,_0x2324fb=_0x2ae540[_0x1e977b(0x12c)](sep)?_0x2ae540:''+_0x2ae540+sep,_0x2a8f0d=_0x17cf71[_0x1e977b(0x12c)](sep)?_0x17cf71:''+_0x17cf71+sep;return _0x2ae540===_0x17cf71||_0x2324fb[_0x1e977b(0x135)](_0x2a8f0d);}export function realOrResolved(_0x5b0d6b){try{return realpathSync(_0x5b0d6b);}catch{return resolve(_0x5b0d6b);}}export function lstatIfPresent(_0x5a60a6){try{return lstatSync(_0x5a60a6);}catch{return undefined;}}export function writeTextAtomic(_0x3a7c1d,_0x1e84a7,_0x2c3b75){writeBytesAtomic(_0x3a7c1d,Buffer['from'](_0x1e84a7,'utf8'),_0x2c3b75);}export function writeBytesAtomic(_0x10551d,_0x872374,_0xfc0a26){const _0x4dcee2=a139_0x5b13,_0x2352ff=_0x10551d+_0x4dcee2(0x13b);try{writeFileSync(_0x2352ff,_0x872374,{'mode':_0xfc0a26}),renameSync(_0x2352ff,_0x10551d);}catch(_0x299eb3){try{rmSync(_0x2352ff,{'force':!![]});}catch{}throw _0x299eb3;}}export function writeJsonAtomic(_0x146ab8,_0x1092df){const _0x49b916=a139_0x5b13;writeTextAtomic(_0x146ab8,JSON[_0x49b916(0x138)](_0x1092df,null,0x2)+'\x0a',0x180);}
@@ -1 +1 @@
1
- (function(_0x59438c,_0x42eb50){const _0x328820=a139_0x471c,_0x10517b=_0x59438c();while(!![]){try{const _0x3e7d3b=-parseInt(_0x328820(0x153))/0x1+parseInt(_0x328820(0x155))/0x2*(parseInt(_0x328820(0x15a))/0x3)+parseInt(_0x328820(0x156))/0x4*(-parseInt(_0x328820(0x15f))/0x5)+-parseInt(_0x328820(0x152))/0x6*(-parseInt(_0x328820(0x150))/0x7)+-parseInt(_0x328820(0x157))/0x8*(-parseInt(_0x328820(0x15c))/0x9)+-parseInt(_0x328820(0x15e))/0xa+parseInt(_0x328820(0x154))/0xb*(parseInt(_0x328820(0x151))/0xc);if(_0x3e7d3b===_0x42eb50)break;else _0x10517b['push'](_0x10517b['shift']());}catch(_0x41900f){_0x10517b['push'](_0x10517b['shift']());}}}(a139_0x3ee3,0x43f6d));import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x7cecbc){const _0x2fb0c9=a139_0x471c;return createHash('sha256')[_0x2fb0c9(0x160)](_0x7cecbc)[_0x2fb0c9(0x159)](_0x2fb0c9(0x158));}export function fileHash(_0x3f304e){return bufferSha256(fileContent(_0x3f304e));}export function bufferSha256(_0x29aa18){const _0x23f4d9=a139_0x471c;return createHash('sha256')[_0x23f4d9(0x160)](_0x29aa18)[_0x23f4d9(0x159)](_0x23f4d9(0x158));}export function fileTreeHash(_0x36ac1c){const _0x3f4d6b=a139_0x471c,_0x39e513=createHash(_0x3f4d6b(0x15b));for(const _0x270ba8 of normalizeManifestFiles(_0x36ac1c)){_0x39e513[_0x3f4d6b(0x160)](_0x270ba8[_0x3f4d6b(0x15d)]),_0x39e513[_0x3f4d6b(0x160)]('\x00'),_0x39e513[_0x3f4d6b(0x160)](_0x270ba8[_0x3f4d6b(0x15b)]),_0x39e513['update']('\x00'),_0x39e513[_0x3f4d6b(0x160)](String(_0x270ba8[_0x3f4d6b(0x161)])),_0x39e513[_0x3f4d6b(0x160)]('\x00');}return _0x39e513[_0x3f4d6b(0x159)](_0x3f4d6b(0x158));}function a139_0x471c(_0x39859e,_0x2d355e){_0x39859e=_0x39859e-0x150;const _0x3ee3b5=a139_0x3ee3();let _0x471c26=_0x3ee3b5[_0x39859e];return _0x471c26;}function a139_0x3ee3(){const _0x5eb176=['15cYMQfQ','update','size','522172LjPSBD','258132YlmxQn','36aYeCxQ','341390ZXrQfq','121znygSF','30838iKejQq','501076zStoKx','8oazCwC','hex','digest','93tszwxN','sha256','2601495pPFyBv','path','4556630ShFdUf'];a139_0x3ee3=function(){return _0x5eb176;};return a139_0x3ee3();}
1
+ (function(_0x273e2f,_0x406335){const _0xf7e3cf=a140_0x2057,_0x4ef0c5=_0x273e2f();while(!![]){try{const _0x1a0ae6=parseInt(_0xf7e3cf(0x127))/0x1*(parseInt(_0xf7e3cf(0x12a))/0x2)+parseInt(_0xf7e3cf(0x124))/0x3+-parseInt(_0xf7e3cf(0x11e))/0x4+parseInt(_0xf7e3cf(0x123))/0x5*(-parseInt(_0xf7e3cf(0x129))/0x6)+parseInt(_0xf7e3cf(0x128))/0x7*(parseInt(_0xf7e3cf(0x11f))/0x8)+parseInt(_0xf7e3cf(0x120))/0x9*(-parseInt(_0xf7e3cf(0x11b))/0xa)+-parseInt(_0xf7e3cf(0x122))/0xb;if(_0x1a0ae6===_0x406335)break;else _0x4ef0c5['push'](_0x4ef0c5['shift']());}catch(_0x170583){_0x4ef0c5['push'](_0x4ef0c5['shift']());}}}(a140_0xc09b,0xb85e5));function a140_0x2057(_0x332ade,_0x2a561f){_0x332ade=_0x332ade-0x11b;const _0xc09be7=a140_0xc09b();let _0x205734=_0xc09be7[_0x332ade];return _0x205734;}import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';function a140_0xc09b(){const _0x1326ee=['9svCCgH','sha256','2769360tOdJfp','45rbYqpN','3657435ZBTNvP','path','digest','1IrHcHu','427xGwmzC','414516OzesaL','235986FRUbFg','1238630ntxeIN','update','hex','889048vmItdi','83632pUTtBS'];a140_0xc09b=function(){return _0x1326ee;};return a140_0xc09b();}export function contentHash(_0x461726){const _0x30f28a=a140_0x2057;return createHash('sha256')[_0x30f28a(0x11c)](_0x461726)['digest'](_0x30f28a(0x11d));}export function fileHash(_0x4eedbe){return bufferSha256(fileContent(_0x4eedbe));}export function bufferSha256(_0xb4c12e){const _0x5bdf20=a140_0x2057;return createHash(_0x5bdf20(0x121))[_0x5bdf20(0x11c)](_0xb4c12e)[_0x5bdf20(0x126)](_0x5bdf20(0x11d));}export function fileTreeHash(_0x58cf23){const _0x96a2e7=a140_0x2057,_0x5d63d9=createHash(_0x96a2e7(0x121));for(const _0x5c5fb3 of normalizeManifestFiles(_0x58cf23)){_0x5d63d9[_0x96a2e7(0x11c)](_0x5c5fb3[_0x96a2e7(0x125)]),_0x5d63d9[_0x96a2e7(0x11c)]('\x00'),_0x5d63d9[_0x96a2e7(0x11c)](_0x5c5fb3[_0x96a2e7(0x121)]),_0x5d63d9[_0x96a2e7(0x11c)]('\x00'),_0x5d63d9[_0x96a2e7(0x11c)](String(_0x5c5fb3['size'])),_0x5d63d9[_0x96a2e7(0x11c)]('\x00');}return _0x5d63d9['digest'](_0x96a2e7(0x11d));}
@@ -1 +1 @@
1
- function a140_0x4792(_0x483b82,_0x12809c){_0x483b82=_0x483b82-0xc7;const _0x303ef2=a140_0x303e();let _0x4792ef=_0x303ef2[_0x483b82];return _0x4792ef;}const a140_0x4ccc72=a140_0x4792;(function(_0x7fcb00,_0x4fc484){const _0x2ebbd6=a140_0x4792,_0x28a148=_0x7fcb00();while(!![]){try{const _0x4de1a2=-parseInt(_0x2ebbd6(0xcf))/0x1*(parseInt(_0x2ebbd6(0xd2))/0x2)+parseInt(_0x2ebbd6(0xd0))/0x3+parseInt(_0x2ebbd6(0xc7))/0x4*(-parseInt(_0x2ebbd6(0xc8))/0x5)+-parseInt(_0x2ebbd6(0xd6))/0x6*(-parseInt(_0x2ebbd6(0xd7))/0x7)+parseInt(_0x2ebbd6(0xce))/0x8+-parseInt(_0x2ebbd6(0xcc))/0x9*(-parseInt(_0x2ebbd6(0xcd))/0xa)+parseInt(_0x2ebbd6(0xd3))/0xb;if(_0x4de1a2===_0x4fc484)break;else _0x28a148['push'](_0x28a148['shift']());}catch(_0x157fdb){_0x28a148['push'](_0x28a148['shift']());}}}(a140_0x303e,0xe4392));import{resolve}from'node:path';import{resolveSkillSyncPaths,runtimeAgentSkillRoots,safePathSegment}from'./paths.js';export function resolveRuntimeSkillInstallTarget(_0x5f3d21,_0x1548f8=a140_0x4ccc72(0xd4),_0x180057={}){const _0x287e46=a140_0x4ccc72,_0x1bb707=resolveSkillSyncPaths(_0x180057),_0x3475e0=safePathSegment(_0x5f3d21,_0x287e46(0xc9)),_0x9f5393=_0x1548f8==='project'?[resolve(_0x180057[_0x287e46(0xd1)]??process[_0x287e46(0xd1)](),_0x287e46(0xd5),_0x287e46(0xca))]:runtimeAgentSkillRoots(_0x1bb707);return Object[_0x287e46(0xcb)]({'scope':_0x1548f8,'appCode':_0x3475e0,'skillRoots':Object[_0x287e46(0xcb)](_0x9f5393),'managedRoot':_0x1bb707['managedRoot']});}function a140_0x303e(){const _0x16b245=['10KjiwaJ','appCode','skills','freeze','4869eQLrUq','15670dHsXZK','6277360rAPKsV','59irthTU','381021gudetG','cwd','33350PpPwLZ','14200868aysWNf','global','.agents','2305782CFEPmB','7WtoGLO','3032164aXknwN'];a140_0x303e=function(){return _0x16b245;};return a140_0x303e();}
1
+ function a141_0x54d8(_0x4ec79b,_0x23ffbb){_0x4ec79b=_0x4ec79b-0xd0;const _0x4d6f03=a141_0x4d6f();let _0x54d87a=_0x4d6f03[_0x4ec79b];return _0x54d87a;}(function(_0x436630,_0x2b8c20){const _0x27fab8=a141_0x54d8,_0x4513f2=_0x436630();while(!![]){try{const _0x2bf574=-parseInt(_0x27fab8(0xd3))/0x1+parseInt(_0x27fab8(0xd1))/0x2+-parseInt(_0x27fab8(0xd2))/0x3+-parseInt(_0x27fab8(0xd4))/0x4*(-parseInt(_0x27fab8(0xdb))/0x5)+-parseInt(_0x27fab8(0xd5))/0x6+parseInt(_0x27fab8(0xda))/0x7+-parseInt(_0x27fab8(0xd6))/0x8*(parseInt(_0x27fab8(0xd9))/0x9);if(_0x2bf574===_0x2b8c20)break;else _0x4513f2['push'](_0x4513f2['shift']());}catch(_0xc80e0f){_0x4513f2['push'](_0x4513f2['shift']());}}}(a141_0x4d6f,0x35823));import{resolve}from'node:path';function a141_0x4d6f(){const _0x27bd83=['project','freeze','skills','700346WXQRIq','88437goZDrW','175692iXFUIQ','20kBvxKQ','154104cJjOUf','16ZVpYAs','managedRoot','.agents','2970486zNfzXF','2579682ItYwcD','391435MJFjuN','cwd'];a141_0x4d6f=function(){return _0x27bd83;};return a141_0x4d6f();}import{resolveSkillSyncPaths,runtimeAgentSkillRoots,safePathSegment}from'./paths.js';export function resolveRuntimeSkillInstallTarget(_0x490002,_0x32aebf='global',_0x41f3da={}){const _0x2b97f7=a141_0x54d8,_0xd0a73d=resolveSkillSyncPaths(_0x41f3da),_0x3e5f12=safePathSegment(_0x490002,'appCode'),_0x1eebbb=_0x32aebf===_0x2b97f7(0xdd)?[resolve(_0x41f3da[_0x2b97f7(0xdc)]??process[_0x2b97f7(0xdc)](),_0x2b97f7(0xd8),_0x2b97f7(0xd0))]:runtimeAgentSkillRoots(_0xd0a73d);return Object[_0x2b97f7(0xde)]({'scope':_0x32aebf,'appCode':_0x3e5f12,'skillRoots':Object[_0x2b97f7(0xde)](_0x1eebbb),'managedRoot':_0xd0a73d[_0x2b97f7(0xd7)]});}
@@ -1 +1 @@
1
- const a141_0x13c03d=a141_0x2e26;(function(_0x20ffdf,_0x11f729){const _0x2cfc85=a141_0x2e26,_0x15a449=_0x20ffdf();while(!![]){try{const _0xa90ba=parseInt(_0x2cfc85(0x11a))/0x1*(parseInt(_0x2cfc85(0xfe))/0x2)+parseInt(_0x2cfc85(0x121))/0x3+-parseInt(_0x2cfc85(0x101))/0x4+parseInt(_0x2cfc85(0x102))/0x5*(-parseInt(_0x2cfc85(0x11b))/0x6)+parseInt(_0x2cfc85(0x106))/0x7*(parseInt(_0x2cfc85(0x108))/0x8)+parseInt(_0x2cfc85(0x119))/0x9*(parseInt(_0x2cfc85(0x127))/0xa)+-parseInt(_0x2cfc85(0x11e))/0xb;if(_0xa90ba===_0x11f729)break;else _0x15a449['push'](_0x15a449['shift']());}catch(_0x3c18e6){_0x15a449['push'](_0x15a449['shift']());}}}(a141_0x4dbb,0x85fd8));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a141_0x4d15a9 from'fs-extra';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{isDanglingSymlink,isPathInside,lstatIfPresent,realOrResolved,resolveSymlinkTarget}from'./fs-utils.js';import{readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a141_0x4d15a9,RESERVED_PROJECT_SKILL_CODES=new Set([a141_0x13c03d(0x105),'runtime-observe','secret-retriever']);export function linkEffectiveRuntimeSkills(_0x354e2e,_0x3b893c){const _0xad1f05=a141_0x13c03d,_0x3a0d11=new Map();for(const _0xd4e23c of _0x354e2e){const _0x315036=_0xd4e23c[_0xad1f05(0x10d)]['skillCode'];if(!_0x315036)continue;const _0x527017=_0x3a0d11[_0xad1f05(0x12a)](_0x315036);(!_0x527017||_0xd4e23c[_0xad1f05(0x10c)]===_0xad1f05(0x116))&&_0x3a0d11[_0xad1f05(0x120)](_0x315036,_0xd4e23c);}const _0x6bda95=[];for(const _0x1af63d of _0x3a0d11['values']()){const _0x2acea8=requireSkillCode(_0x1af63d['skill']),_0x3d12c1=readMetadataIfPresent(_0x1af63d[_0xad1f05(0x104)]);if(_0x3d12c1?.[_0xad1f05(0xfb)]!==_0x3b893c[_0xad1f05(0xfb)]||_0x3d12c1[_0xad1f05(0x129)]!==_0x2acea8)throw CliErrors['validation']('Refusing\x20to\x20link\x20Skill\x20metadata\x20outside\x20target\x20'+_0x3b893c[_0xad1f05(0xfb)]+':\x20'+_0x1af63d[_0xad1f05(0x104)]);const _0xf78b8c=runtimeSkillLinkName(_0x3b893c,_0x2acea8);for(const _0x5c9c3c of _0x3b893c['skillRoots']){_0x6bda95[_0xad1f05(0x111)](ensureManagedSymlink(resolve(_0x5c9c3c,_0xf78b8c),_0x1af63d['dir'],_0x3b893c,_0x2acea8));}}return _0x6bda95;}export function pruneStaleRuntimeSkillLinks(_0x101e05,_0x504487,_0xd056b6){const _0x342f47=a141_0x13c03d,_0x422580=new Set([..._0x504487][_0x342f47(0x100)](_0x387f07=>_0x387f07[_0x342f47(0x114)]())[_0x342f47(0x12b)](Boolean)),_0x2317f1=_0xd056b6?new Set([..._0xd056b6]['map'](_0xcc5167=>_0xcc5167[_0x342f47(0x114)]())[_0x342f47(0x12b)](Boolean)):undefined,_0x1caebc=[];for(const _0x4f3b53 of _0x101e05['skillRoots']){for(const _0x22b757 of managedTargetSkillLinkPaths(_0x4f3b53,_0x101e05)){const _0x537852=runtimeSkillCodeFromLink(_0x101e05,_0x22b757);if(_0x2317f1&&!_0x2317f1[_0x342f47(0x123)](_0x537852))continue;if(_0x422580[_0x342f47(0x123)](_0x537852))continue;_0x1caebc[_0x342f47(0x111)](removeManagedSkillLink(_0x22b757,_0x101e05,_0x537852));}}return _0x1caebc;}export function pruneStaleRuntimeSkillCache(_0x45362f,_0xe3f0e6={}){const _0x562200=a141_0x13c03d,_0xfb63f1=new Set([..._0x45362f[_0x562200(0x115)]][_0x562200(0x100)](_0x18aeb3=>_0x18aeb3['trim']())[_0x562200(0x12b)](Boolean)),_0x10740f=_0x45362f[_0x562200(0x11f)]?new Set([..._0x45362f[_0x562200(0x11f)]][_0x562200(0x100)](_0x771037=>_0x771037[_0x562200(0x114)]())[_0x562200(0x12b)](Boolean)):undefined,_0x4f94ea=_0x45362f[_0x562200(0x103)]??[_0x562200(0x116),_0x562200(0x118)],_0x3ab620=resolve(getRuntimeSkillCacheRoot(_0x45362f[_0x562200(0xfa)],_0x45362f[_0x562200(0xf6)],_0xe3f0e6),safePathSegment(_0x45362f[_0x562200(0xfb)],'appCode')),_0x51f9cb=[];for(const _0x294bc7 of _0x4f94ea){const _0x32c98a=resolve(_0x3ab620,_0x294bc7);if(!existsSync(_0x32c98a))continue;for(const _0x155a88 of readdirSync(_0x32c98a,{'withFileTypes':!![]})){if(!_0x155a88['isDirectory']())continue;const _0x23c3e7=_0x155a88[_0x562200(0x10a)];if(_0x10740f&&!_0x10740f[_0x562200(0x123)](_0x23c3e7))continue;if(_0xfb63f1[_0x562200(0x123)](_0x23c3e7))continue;const _0x55b447=resolve(_0x32c98a,_0x23c3e7),_0x2436fb=readMetadataIfPresent(resolve(_0x55b447,METADATA_FILE));if(_0x2436fb?.[_0x562200(0xfb)]!==_0x45362f[_0x562200(0xfb)]||_0x2436fb['scope']!==_0x294bc7||_0x2436fb[_0x562200(0x129)]!==_0x23c3e7){_0x51f9cb['push']({'path':_0x55b447,'action':_0x562200(0xf8),'reason':_0x562200(0xf9)});continue;}if(isLinkedFromAnyRoot(_0x55b447,_0x45362f['protectedLinkRoots']??[])){_0x51f9cb[_0x562200(0x111)]({'path':_0x55b447,'action':'skipped','reason':'linked-from-protected-root'});continue;}removeSync(_0x55b447),_0x51f9cb['push']({'path':_0x55b447,'action':_0x562200(0x126)});}}return _0x51f9cb;}export function linkGlobalRuntimeSkills(_0x4f44af,_0x56911d={}){const _0x503d06=a141_0x13c03d,_0x1e44d6=resolveSkillSyncPaths(_0x56911d),_0x3c049e=[];for(const _0x5cf011 of _0x4f44af){if(_0x5cf011['scope']!==_0x503d06(0xf7))throw CliErrors[_0x503d06(0x109)]('Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20'+_0x5cf011['scope']);const _0x25f509=requireSkillCode(_0x5cf011[_0x503d06(0x10d)]),_0x37371b=copyManagedSkillDirectory(_0x5cf011[_0x503d06(0x11c)],resolve(_0x1e44d6[_0x503d06(0x107)],_0x25f509));_0x3c049e['push']({..._0x37371b,'contentHash':_0x5cf011['contentHash']});}return _0x3c049e;}function ensureManagedSymlink(_0x1dfb46,_0x505a5d,_0x51a547,_0x4c2b91){const _0x3c1b90=a141_0x13c03d;mkdirSync(dirname(_0x1dfb46),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x1dfb46)||isDanglingSymlink(_0x1dfb46)){const _0x406269=lstatSync(_0x1dfb46);if(!_0x406269[_0x3c1b90(0xfc)]())throw CliErrors[_0x3c1b90(0x109)]('Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20'+_0x1dfb46);const _0x313dfa=resolveSymlinkTarget(_0x1dfb46);if(!isPathInside(realOrResolved(_0x313dfa),realOrResolved(_0x51a547['managedRoot'])))throw CliErrors[_0x3c1b90(0x109)](_0x3c1b90(0x10e)+_0x1dfb46);if(realOrResolved(_0x313dfa)===realOrResolved(_0x505a5d))return{'path':_0x1dfb46,'target':_0x505a5d,'action':_0x3c1b90(0x10f)};const _0x49274a=readMetadataIfPresent(resolve(_0x313dfa,METADATA_FILE));if(_0x51a547[_0x3c1b90(0x10c)]==='project'&&(_0x49274a?.['appCode']!==_0x51a547[_0x3c1b90(0xfb)]||_0x49274a[_0x3c1b90(0x129)]!==_0x4c2b91))throw CliErrors[_0x3c1b90(0x109)](_0x3c1b90(0x117)+_0x1dfb46);return unlinkSync(_0x1dfb46),symlinkSync(_0x505a5d,_0x1dfb46,_0x3c1b90(0x11c)),{'path':_0x1dfb46,'target':_0x505a5d,'action':_0x3c1b90(0x10b)};}return symlinkSync(_0x505a5d,_0x1dfb46,_0x3c1b90(0x11c)),{'path':_0x1dfb46,'target':_0x505a5d,'action':_0x3c1b90(0x11d)};}function a141_0x2e26(_0x1aff68,_0x44c7d9){_0x1aff68=_0x1aff68-0xf5;const _0x4dbbf1=a141_0x4dbb();let _0x2e2661=_0x4dbbf1[_0x1aff68];return _0x2e2661;}function managedTargetSkillLinkPaths(_0xd33e0e,_0x33acd5){const _0x5716a8=a141_0x13c03d;if(!existsSync(_0xd33e0e))return[];const _0x17e4cb=_0x33acd5[_0x5716a8(0xfb)]+'--';return readdirSync(_0xd33e0e,{'withFileTypes':!![]})[_0x5716a8(0x12b)](_0xb88f16=>_0x33acd5[_0x5716a8(0x10c)]===_0x5716a8(0xfd)||_0xb88f16[_0x5716a8(0x10a)]['startsWith'](_0x17e4cb))[_0x5716a8(0x100)](_0x4ecb35=>resolve(_0xd33e0e,_0x4ecb35[_0x5716a8(0x10a)]));}function removeManagedSkillLink(_0x29bc81,_0x536813,_0x577e7b){const _0x3c70fa=a141_0x13c03d,_0x509614=lstatIfPresent(_0x29bc81);if(!_0x509614?.[_0x3c70fa(0xfc)]())return{'path':_0x29bc81,'action':_0x3c70fa(0xf8),'reason':_0x3c70fa(0x125)};const _0x122a73=resolveSymlinkTarget(_0x29bc81);if(!isPathInside(realOrResolved(_0x122a73),realOrResolved(_0x536813[_0x3c70fa(0x112)])))return{'path':_0x29bc81,'action':_0x3c70fa(0xf8),'reason':_0x3c70fa(0x110)};const _0x3a4bab=readMetadataIfPresent(resolve(_0x122a73,METADATA_FILE));if(_0x536813['scope']==='project'&&(_0x3a4bab?.['appCode']!==_0x536813[_0x3c70fa(0xfb)]||_0x3a4bab[_0x3c70fa(0x129)]!==_0x577e7b))return{'path':_0x29bc81,'action':_0x3c70fa(0xf8),'reason':_0x3c70fa(0xf9)};return unlinkSync(_0x29bc81),{'path':_0x29bc81,'action':_0x3c70fa(0x126)};}function a141_0x4dbb(){const _0x17d113=['name','updated','scope','skill','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','unchanged','external-symlink','push','managedRoot','isDirectory','trim','activeSkillCodes','personal','Refusing\x20to\x20overwrite\x20managed\x20Skill\x20link\x20owned\x20by\x20another\x20app\x20or\x20code:\x20','company','8935686XGIWoU','1DGoHJt','804948hTxxor','dir','created','18083956FwRcFz','pruneSkillCodes','set','837000qsHhxb','contentHash','has','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','not-managed-symlink','removed','10FzQFoz','Refusing\x20to\x20shadow\x20reserved\x20Agent\x20Skill\x20in\x20project\x20scope:\x20','skillCode','get','filter','slice','accessKey','builtin','skipped','metadata-mismatch','env','appCode','isSymbolicLink','project','1516744zaqUEU','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','map','44316rZPqnh','5shALaE','scopes','metadataPath','lovrabet','7tnFrnK','agentsSkillsDir','2462648RxqrYJ','validation'];a141_0x4dbb=function(){return _0x17d113;};return a141_0x4dbb();}function isLinkedFromAnyRoot(_0xea9104,_0x49ccfe){const _0x68f936=a141_0x13c03d,_0x5debc3=realOrResolved(_0xea9104);for(const _0x21889a of _0x49ccfe){if(!existsSync(_0x21889a))continue;for(const _0x4083a6 of readdirSync(_0x21889a,{'withFileTypes':!![]})){if(!_0x4083a6[_0x68f936(0xfc)]())continue;const _0x5b15e7=resolve(_0x21889a,_0x4083a6[_0x68f936(0x10a)]);if(realOrResolved(resolveSymlinkTarget(_0x5b15e7))===_0x5debc3)return!![];}}return![];}function runtimeSkillLinkName(_0x4cbec3,_0x3a816e){const _0x7535e0=a141_0x13c03d,_0x2783af=safePathSegment(_0x3a816e,_0x7535e0(0x129));if(_0x4cbec3['scope']==='project'&&RESERVED_PROJECT_SKILL_CODES[_0x7535e0(0x123)](_0x2783af))throw CliErrors[_0x7535e0(0x109)](_0x7535e0(0x128)+_0x2783af);return _0x4cbec3[_0x7535e0(0x10c)]===_0x7535e0(0xfd)?_0x2783af:_0x4cbec3[_0x7535e0(0xfb)]+'--'+_0x2783af;}function runtimeSkillCodeFromLink(_0x55934b,_0x2fe6c3){const _0x2dbbf4=a141_0x13c03d,_0x16d45a=basename(_0x2fe6c3);return _0x55934b[_0x2dbbf4(0x10c)]===_0x2dbbf4(0xfd)?_0x16d45a:_0x16d45a[_0x2dbbf4(0xf5)]((_0x55934b[_0x2dbbf4(0xfb)]+'--')['length']);}export function copyManagedSkillDirectory(_0x4cfd0f,_0x45e4c9){const _0x3f52c4=a141_0x13c03d,_0xacd4bd=resolve(_0x45e4c9,METADATA_FILE),_0x90add1=existsSync(_0x45e4c9);if(_0x90add1){const _0x117ea4=lstatSync(_0x45e4c9);if(_0x117ea4[_0x3f52c4(0xfc)]())throw CliErrors['validation']('Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20'+_0x45e4c9);if(!_0x117ea4[_0x3f52c4(0x113)]())throw CliErrors[_0x3f52c4(0x109)]('Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20'+_0x45e4c9);const _0x575c78=readMetadataIfPresent(_0xacd4bd);if(_0x575c78?.[_0x3f52c4(0x10c)]!=='builtin')throw CliErrors['validation'](_0x3f52c4(0xff)+_0x45e4c9);}ensureDirSync(dirname(_0x45e4c9));const _0x3a69a6=_0x90add1?readMetadataIfPresent(_0xacd4bd)?.[_0x3f52c4(0x122)]:undefined,_0x37c75d=readMetadataIfPresent(resolve(_0x4cfd0f,METADATA_FILE))?.[_0x3f52c4(0x122)];return _0x90add1&&removeSync(_0x45e4c9),copySkillDirectory(_0x4cfd0f,_0x45e4c9),{'path':_0x45e4c9,'target':_0x4cfd0f,'action':!_0x90add1?_0x3f52c4(0x11d):_0x3a69a6===_0x37c75d?_0x3f52c4(0x10f):_0x3f52c4(0x10b)};}function copySkillDirectory(_0x1bdba7,_0x4f1103){copySync(_0x1bdba7,_0x4f1103,{'dereference':![],'overwrite':!![],'filter'(_0x5c7d1a){const _0x3ef998=a141_0x2e26;if(lstatSync(_0x5c7d1a)['isSymbolicLink']())throw CliErrors[_0x3ef998(0x109)](_0x3ef998(0x124)+_0x5c7d1a);return!![];}});}
1
+ const a142_0x2e161c=a142_0x1005;(function(_0x3ae6b9,_0x38b550){const _0x162420=a142_0x1005,_0x1bb553=_0x3ae6b9();while(!![]){try{const _0x5cf624=-parseInt(_0x162420(0x182))/0x1+-parseInt(_0x162420(0x193))/0x2+-parseInt(_0x162420(0x1b1))/0x3*(-parseInt(_0x162420(0x184))/0x4)+-parseInt(_0x162420(0x18b))/0x5+parseInt(_0x162420(0x186))/0x6*(-parseInt(_0x162420(0x195))/0x7)+-parseInt(_0x162420(0x18a))/0x8+-parseInt(_0x162420(0x1aa))/0x9*(-parseInt(_0x162420(0x19d))/0xa);if(_0x5cf624===_0x38b550)break;else _0x1bb553['push'](_0x1bb553['shift']());}catch(_0x12569d){_0x1bb553['push'](_0x1bb553['shift']());}}}(a142_0x1aba,0x2f394));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a142_0x152fd2 from'fs-extra';import{CliErrors}from'../../errors.js';import{METADATA_FILE}from'./constants.js';import{isDanglingSymlink,isPathInside,lstatIfPresent,realOrResolved,resolveSymlinkTarget}from'./fs-utils.js';import{readMetadataIfPresent,requireSkillCode}from'./metadata.js';import{getRuntimeSkillCacheRoot,resolveSkillSyncPaths,safePathSegment}from'./paths.js';const {copySync,ensureDirSync,removeSync}=a142_0x152fd2,RESERVED_PROJECT_SKILL_CODES=new Set(['lovrabet',a142_0x2e161c(0x1b5),a142_0x2e161c(0x17b)]);function a142_0x1005(_0x42da6d,_0x53fd4c){_0x42da6d=_0x42da6d-0x179;const _0x1aba01=a142_0x1aba();let _0x10051f=_0x1aba01[_0x42da6d];return _0x10051f;}export function linkEffectiveRuntimeSkills(_0x292411,_0x33014e){const _0x58c893=a142_0x2e161c,_0x37275f=new Map();for(const _0x3617cf of _0x292411){const _0x2b8938=_0x3617cf[_0x58c893(0x1b0)][_0x58c893(0x191)];if(!_0x2b8938)continue;const _0x3acde5=_0x37275f['get'](_0x2b8938);(!_0x3acde5||_0x3617cf[_0x58c893(0x1ae)]===_0x58c893(0x188))&&_0x37275f[_0x58c893(0x189)](_0x2b8938,_0x3617cf);}const _0x38a3b1=[];for(const _0x117869 of _0x37275f['values']()){const _0x2e37b3=requireSkillCode(_0x117869[_0x58c893(0x1b0)]),_0x36dcf7=readMetadataIfPresent(_0x117869[_0x58c893(0x1a4)]);if(_0x36dcf7?.[_0x58c893(0x1ab)]!==_0x33014e[_0x58c893(0x1ab)]||_0x36dcf7[_0x58c893(0x191)]!==_0x2e37b3)throw CliErrors[_0x58c893(0x19b)](_0x58c893(0x1b4)+_0x33014e['appCode']+':\x20'+_0x117869['metadataPath']);const _0x224821=runtimeSkillLinkName(_0x33014e,_0x2e37b3);for(const _0x2c9c90 of _0x33014e[_0x58c893(0x179)]){_0x38a3b1[_0x58c893(0x1a3)](ensureManagedSymlink(resolve(_0x2c9c90,_0x224821),_0x117869[_0x58c893(0x1a8)],_0x33014e,_0x2e37b3));}}return _0x38a3b1;}function a142_0x1aba(){const _0x7bd955=['84380Uawpuj','Refusing\x20to\x20overwrite\x20managed\x20Skill\x20link\x20owned\x20by\x20another\x20app\x20or\x20code:\x20','slice','activeSkillCodes','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','managedRoot','push','metadataPath','scopes','accessKey','external-symlink','dir','Refusing\x20to\x20shadow\x20reserved\x20Agent\x20Skill\x20in\x20project\x20scope:\x20','1422jXPOUA','appCode','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','metadata-mismatch','scope','env','skill','3YgXnMX','filter','length','Refusing\x20to\x20link\x20Skill\x20metadata\x20outside\x20target\x20','runtime-observe','trim','skillRoots','has','secret-retriever','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','company','created','isSymbolicLink','linked-from-protected-root','name','374012pyHbNR','not-managed-symlink','298428soSGng','skipped','148206rPycQN','map','personal','set','2661224VkMGdr','939280EASwEe','pruneSkillCodes','protectedLinkRoots','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','updated','startsWith','skillCode','project','145704qPZPwL','builtin','70qHqYWO','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','contentHash','unchanged','agentsSkillsDir','isDirectory','validation','removed'];a142_0x1aba=function(){return _0x7bd955;};return a142_0x1aba();}export function pruneStaleRuntimeSkillLinks(_0x259c83,_0xbee37,_0x5f2465){const _0x515dc8=a142_0x2e161c,_0x5ab605=new Set([..._0xbee37][_0x515dc8(0x187)](_0x15555c=>_0x15555c[_0x515dc8(0x1b6)]())[_0x515dc8(0x1b2)](Boolean)),_0x442a6b=_0x5f2465?new Set([..._0x5f2465][_0x515dc8(0x187)](_0x23c1e9=>_0x23c1e9['trim']())[_0x515dc8(0x1b2)](Boolean)):undefined,_0x1cba37=[];for(const _0x1b7317 of _0x259c83[_0x515dc8(0x179)]){for(const _0x556c0e of managedTargetSkillLinkPaths(_0x1b7317,_0x259c83)){const _0x2b4d6f=runtimeSkillCodeFromLink(_0x259c83,_0x556c0e);if(_0x442a6b&&!_0x442a6b['has'](_0x2b4d6f))continue;if(_0x5ab605[_0x515dc8(0x17a)](_0x2b4d6f))continue;_0x1cba37[_0x515dc8(0x1a3)](removeManagedSkillLink(_0x556c0e,_0x259c83,_0x2b4d6f));}}return _0x1cba37;}export function pruneStaleRuntimeSkillCache(_0x2f5980,_0x5aa2ef={}){const _0x1fbeb5=a142_0x2e161c,_0x2c70de=new Set([..._0x2f5980[_0x1fbeb5(0x1a0)]][_0x1fbeb5(0x187)](_0x1008a6=>_0x1008a6[_0x1fbeb5(0x1b6)]())['filter'](Boolean)),_0x40fe56=_0x2f5980[_0x1fbeb5(0x18c)]?new Set([..._0x2f5980[_0x1fbeb5(0x18c)]][_0x1fbeb5(0x187)](_0x18c4dc=>_0x18c4dc[_0x1fbeb5(0x1b6)]())[_0x1fbeb5(0x1b2)](Boolean)):undefined,_0x163e10=_0x2f5980[_0x1fbeb5(0x1a5)]??['personal',_0x1fbeb5(0x17d)],_0x3d430c=resolve(getRuntimeSkillCacheRoot(_0x2f5980[_0x1fbeb5(0x1af)],_0x2f5980[_0x1fbeb5(0x1a6)],_0x5aa2ef),safePathSegment(_0x2f5980['appCode'],_0x1fbeb5(0x1ab))),_0x1ce61c=[];for(const _0x5049d8 of _0x163e10){const _0x36df87=resolve(_0x3d430c,_0x5049d8);if(!existsSync(_0x36df87))continue;for(const _0x144fc6 of readdirSync(_0x36df87,{'withFileTypes':!![]})){if(!_0x144fc6['isDirectory']())continue;const _0x16119a=_0x144fc6[_0x1fbeb5(0x181)];if(_0x40fe56&&!_0x40fe56['has'](_0x16119a))continue;if(_0x2c70de[_0x1fbeb5(0x17a)](_0x16119a))continue;const _0x2799d1=resolve(_0x36df87,_0x16119a),_0x5a8d4b=readMetadataIfPresent(resolve(_0x2799d1,METADATA_FILE));if(_0x5a8d4b?.[_0x1fbeb5(0x1ab)]!==_0x2f5980['appCode']||_0x5a8d4b['scope']!==_0x5049d8||_0x5a8d4b[_0x1fbeb5(0x191)]!==_0x16119a){_0x1ce61c['push']({'path':_0x2799d1,'action':_0x1fbeb5(0x185),'reason':_0x1fbeb5(0x1ad)});continue;}if(isLinkedFromAnyRoot(_0x2799d1,_0x2f5980[_0x1fbeb5(0x18d)]??[])){_0x1ce61c[_0x1fbeb5(0x1a3)]({'path':_0x2799d1,'action':_0x1fbeb5(0x185),'reason':_0x1fbeb5(0x180)});continue;}removeSync(_0x2799d1),_0x1ce61c[_0x1fbeb5(0x1a3)]({'path':_0x2799d1,'action':_0x1fbeb5(0x19c)});}}return _0x1ce61c;}export function linkGlobalRuntimeSkills(_0x309c30,_0x40472e={}){const _0x6e8277=a142_0x2e161c,_0x465e8d=resolveSkillSyncPaths(_0x40472e),_0x253521=[];for(const _0x5023a7 of _0x309c30){if(_0x5023a7[_0x6e8277(0x1ae)]!=='builtin')throw CliErrors['validation'](_0x6e8277(0x17c)+_0x5023a7['scope']);const _0x1a6446=requireSkillCode(_0x5023a7[_0x6e8277(0x1b0)]),_0x50c29f=copyManagedSkillDirectory(_0x5023a7[_0x6e8277(0x1a8)],resolve(_0x465e8d[_0x6e8277(0x199)],_0x1a6446));_0x253521[_0x6e8277(0x1a3)]({..._0x50c29f,'contentHash':_0x5023a7[_0x6e8277(0x197)]});}return _0x253521;}function ensureManagedSymlink(_0x1360ac,_0x15b65e,_0x5a8fcb,_0x537455){const _0x44cf54=a142_0x2e161c;mkdirSync(dirname(_0x1360ac),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x1360ac)||isDanglingSymlink(_0x1360ac)){const _0x26965b=lstatSync(_0x1360ac);if(!_0x26965b[_0x44cf54(0x17f)]())throw CliErrors[_0x44cf54(0x19b)](_0x44cf54(0x196)+_0x1360ac);const _0x60e75f=resolveSymlinkTarget(_0x1360ac);if(!isPathInside(realOrResolved(_0x60e75f),realOrResolved(_0x5a8fcb[_0x44cf54(0x1a2)])))throw CliErrors[_0x44cf54(0x19b)]('Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20'+_0x1360ac);if(realOrResolved(_0x60e75f)===realOrResolved(_0x15b65e))return{'path':_0x1360ac,'target':_0x15b65e,'action':_0x44cf54(0x198)};const _0x206c28=readMetadataIfPresent(resolve(_0x60e75f,METADATA_FILE));if(_0x5a8fcb[_0x44cf54(0x1ae)]===_0x44cf54(0x192)&&(_0x206c28?.[_0x44cf54(0x1ab)]!==_0x5a8fcb[_0x44cf54(0x1ab)]||_0x206c28[_0x44cf54(0x191)]!==_0x537455))throw CliErrors[_0x44cf54(0x19b)](_0x44cf54(0x19e)+_0x1360ac);return unlinkSync(_0x1360ac),symlinkSync(_0x15b65e,_0x1360ac,_0x44cf54(0x1a8)),{'path':_0x1360ac,'target':_0x15b65e,'action':_0x44cf54(0x18f)};}return symlinkSync(_0x15b65e,_0x1360ac,'dir'),{'path':_0x1360ac,'target':_0x15b65e,'action':'created'};}function managedTargetSkillLinkPaths(_0x434ffa,_0x1040ce){const _0x17e52c=a142_0x2e161c;if(!existsSync(_0x434ffa))return[];const _0x25abb4=_0x1040ce[_0x17e52c(0x1ab)]+'--';return readdirSync(_0x434ffa,{'withFileTypes':!![]})[_0x17e52c(0x1b2)](_0x12bc9a=>_0x1040ce[_0x17e52c(0x1ae)]===_0x17e52c(0x192)||_0x12bc9a[_0x17e52c(0x181)][_0x17e52c(0x190)](_0x25abb4))[_0x17e52c(0x187)](_0x1c5c68=>resolve(_0x434ffa,_0x1c5c68['name']));}function removeManagedSkillLink(_0x3da645,_0x4662d7,_0x735770){const _0x416536=a142_0x2e161c,_0x19a2ec=lstatIfPresent(_0x3da645);if(!_0x19a2ec?.[_0x416536(0x17f)]())return{'path':_0x3da645,'action':'skipped','reason':_0x416536(0x183)};const _0x24a4b8=resolveSymlinkTarget(_0x3da645);if(!isPathInside(realOrResolved(_0x24a4b8),realOrResolved(_0x4662d7['managedRoot'])))return{'path':_0x3da645,'action':_0x416536(0x185),'reason':_0x416536(0x1a7)};const _0x48cb55=readMetadataIfPresent(resolve(_0x24a4b8,METADATA_FILE));if(_0x4662d7['scope']===_0x416536(0x192)&&(_0x48cb55?.['appCode']!==_0x4662d7[_0x416536(0x1ab)]||_0x48cb55[_0x416536(0x191)]!==_0x735770))return{'path':_0x3da645,'action':_0x416536(0x185),'reason':_0x416536(0x1ad)};return unlinkSync(_0x3da645),{'path':_0x3da645,'action':'removed'};}function isLinkedFromAnyRoot(_0x52aadf,_0x1e995f){const _0x3e145f=a142_0x2e161c,_0x3dc2aa=realOrResolved(_0x52aadf);for(const _0xea5972 of _0x1e995f){if(!existsSync(_0xea5972))continue;for(const _0x467542 of readdirSync(_0xea5972,{'withFileTypes':!![]})){if(!_0x467542[_0x3e145f(0x17f)]())continue;const _0xc38391=resolve(_0xea5972,_0x467542['name']);if(realOrResolved(resolveSymlinkTarget(_0xc38391))===_0x3dc2aa)return!![];}}return![];}function runtimeSkillLinkName(_0x130328,_0x52eff3){const _0x562c89=a142_0x2e161c,_0x3db72b=safePathSegment(_0x52eff3,'skillCode');if(_0x130328['scope']===_0x562c89(0x192)&&RESERVED_PROJECT_SKILL_CODES['has'](_0x3db72b))throw CliErrors[_0x562c89(0x19b)](_0x562c89(0x1a9)+_0x3db72b);return _0x130328[_0x562c89(0x1ae)]===_0x562c89(0x192)?_0x3db72b:_0x130328[_0x562c89(0x1ab)]+'--'+_0x3db72b;}function runtimeSkillCodeFromLink(_0x2bbba7,_0x34cf80){const _0x2c2a69=a142_0x2e161c,_0x45e1aa=basename(_0x34cf80);return _0x2bbba7[_0x2c2a69(0x1ae)]===_0x2c2a69(0x192)?_0x45e1aa:_0x45e1aa[_0x2c2a69(0x19f)]((_0x2bbba7['appCode']+'--')[_0x2c2a69(0x1b3)]);}export function copyManagedSkillDirectory(_0x311dda,_0x5a64bb){const _0x1088c7=a142_0x2e161c,_0x37e442=resolve(_0x5a64bb,METADATA_FILE),_0x19fe72=existsSync(_0x5a64bb);if(_0x19fe72){const _0x64e1e2=lstatSync(_0x5a64bb);if(_0x64e1e2[_0x1088c7(0x17f)]())throw CliErrors['validation'](_0x1088c7(0x1ac)+_0x5a64bb);if(!_0x64e1e2[_0x1088c7(0x19a)]())throw CliErrors['validation'](_0x1088c7(0x1a1)+_0x5a64bb);const _0x29cdcc=readMetadataIfPresent(_0x37e442);if(_0x29cdcc?.[_0x1088c7(0x1ae)]!==_0x1088c7(0x194))throw CliErrors[_0x1088c7(0x19b)](_0x1088c7(0x18e)+_0x5a64bb);}ensureDirSync(dirname(_0x5a64bb));const _0x597e22=_0x19fe72?readMetadataIfPresent(_0x37e442)?.[_0x1088c7(0x197)]:undefined,_0x2ffd5f=readMetadataIfPresent(resolve(_0x311dda,METADATA_FILE))?.[_0x1088c7(0x197)];return _0x19fe72&&removeSync(_0x5a64bb),copySkillDirectory(_0x311dda,_0x5a64bb),{'path':_0x5a64bb,'target':_0x311dda,'action':!_0x19fe72?_0x1088c7(0x17e):_0x597e22===_0x2ffd5f?_0x1088c7(0x198):_0x1088c7(0x18f)};}function copySkillDirectory(_0x3ad0a7,_0x32d356){copySync(_0x3ad0a7,_0x32d356,{'dereference':![],'overwrite':!![],'filter'(_0x3a6f5c){const _0x4e63df=a142_0x1005;if(lstatSync(_0x3a6f5c)[_0x4e63df(0x17f)]())throw CliErrors[_0x4e63df(0x19b)]('Refusing\x20to\x20copy\x20Skill\x20symlink:\x20'+_0x3a6f5c);return!![];}});}
@@ -1 +1 @@
1
- (function(_0x19eed5,_0x5dc376){const _0x32fbe8=a142_0x1d50,_0x1fd453=_0x19eed5();while(!![]){try{const _0x2846aa=parseInt(_0x32fbe8(0x118))/0x1*(-parseInt(_0x32fbe8(0x11a))/0x2)+-parseInt(_0x32fbe8(0x114))/0x3+-parseInt(_0x32fbe8(0x12e))/0x4*(-parseInt(_0x32fbe8(0x116))/0x5)+-parseInt(_0x32fbe8(0x137))/0x6*(parseInt(_0x32fbe8(0x11c))/0x7)+parseInt(_0x32fbe8(0x128))/0x8+parseInt(_0x32fbe8(0x121))/0x9+-parseInt(_0x32fbe8(0x11d))/0xa;if(_0x2846aa===_0x5dc376)break;else _0x1fd453['push'](_0x1fd453['shift']());}catch(_0x172f29){_0x1fd453['push'](_0x1fd453['shift']());}}}(a142_0x8fdf,0xb584a));function a142_0x1d50(_0x2cf9b2,_0x382718){_0x2cf9b2=_0x2cf9b2-0x111;const _0x8fdf7b=a142_0x8fdf();let _0x1d5096=_0x8fdf7b[_0x2cf9b2];return _0x1d5096;}import{existsSync,readdirSync}from'node:fs';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';import{readMetadataIfPresent}from'./metadata.js';import{getRuntimeSkillCacheRoot,safePathSegment}from'./paths.js';function a142_0x8fdf(){const _0x273bc3=['dir','appCode','localeCompare','includes','values','link','7742000FyVPcH','startsWith','cache','skillRoots','linkedPaths','scopes','4LOjtiP','code','filter','sort','from','metadataPath','scope','Runtime\x20Skill\x20install\x20target\x20app\x20mismatch:\x20','builtin','786ghIKJN','skillMdPath','validation','source','linkedPath','\x20!=\x20','438825sesxYR','local','2177620zZAMxr','push','1vBpGAW','map','296350CHZHvj','name','78316kjgMCC','3036660TApfhO','trim','accessKey','project','12635712WUFcmD'];a142_0x8fdf=function(){return _0x273bc3;};return a142_0x8fdf();}import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';export function listLocalRuntimeSkills(_0x538dbf,_0x1c395c,_0x74ed8a={}){const _0x393364=a142_0x1d50,_0x2e35d7=safePathSegment(_0x538dbf[_0x393364(0x123)],_0x393364(0x123));if(_0x1c395c[_0x393364(0x123)]!==_0x2e35d7)throw CliErrors[_0x393364(0x139)](_0x393364(0x135)+_0x1c395c[_0x393364(0x123)]+_0x393364(0x113)+_0x2e35d7);const _0x3d6814=normalizeRuntimeSkillScopes(_0x538dbf[_0x393364(0x12d)]),_0x2f0201=new Set(_0x3d6814),_0x533f00=_0x538dbf[_0x393364(0x12f)]?.['trim'](),_0x1c94ab=new Map(),_0x35c6a3=resolve(getRuntimeSkillCacheRoot(_0x538dbf['env'],_0x538dbf[_0x393364(0x11f)],_0x74ed8a),_0x2e35d7);for(const _0x2a5fb1 of _0x3d6814){for(const _0xc4f863 of localSkillEntryDirs(resolve(_0x35c6a3,_0x2a5fb1))){collectLocalRuntimeSkill(_0x1c94ab,_0xc4f863,{'appCode':_0x2e35d7,'scopes':_0x2f0201,'code':_0x533f00,'source':_0x393364(0x12a)});}}for(const _0x34247f of _0x1c395c[_0x393364(0x12b)]){for(const _0x32aac9 of localSkillLinkCandidates(_0x34247f,_0x1c395c,_0x2f0201)){collectLocalRuntimeSkill(_0x1c94ab,_0x32aac9,{'appCode':_0x2e35d7,'scopes':_0x2f0201,'code':_0x533f00,'source':_0x393364(0x127),'linkedPath':_0x32aac9});}}return Array[_0x393364(0x132)](_0x1c94ab[_0x393364(0x126)]())[_0x393364(0x131)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x4e073a){const _0x195823=a142_0x1d50;if(!existsSync(_0x4e073a))return[];return readdirSync(_0x4e073a,{'withFileTypes':!![]})[_0x195823(0x130)](_0x41806d=>_0x41806d['isDirectory']()||_0x41806d['isSymbolicLink']())['map'](_0x5b17d8=>resolve(_0x4e073a,_0x5b17d8['name']));}function localSkillLinkCandidates(_0x372708,_0x44166c,_0x35d66e){const _0x469b0f=a142_0x1d50;if(!existsSync(_0x372708))return[];const _0x51c80d=_0x44166c['appCode']+'--';return readdirSync(_0x372708,{'withFileTypes':!![]})[_0x469b0f(0x130)](_0x38dc78=>_0x38dc78['isDirectory']()||_0x38dc78['isSymbolicLink']())[_0x469b0f(0x130)](_0x4fc0e2=>_0x44166c['scope']===_0x469b0f(0x120)||_0x4fc0e2[_0x469b0f(0x11b)][_0x469b0f(0x129)](_0x51c80d)||_0x35d66e['has'](_0x469b0f(0x136)))[_0x469b0f(0x119)](_0x5e980e=>resolve(_0x372708,_0x5e980e[_0x469b0f(0x11b)]));}function collectLocalRuntimeSkill(_0x5b0112,_0x1766fe,_0x3ac307){const _0x41dba9=a142_0x1d50,_0x9f87e5=resolve(_0x1766fe,METADATA_FILE),_0x4f6b36=readMetadataIfPresent(_0x9f87e5);if(!_0x4f6b36)return;if(_0x4f6b36['appCode']!==_0x3ac307[_0x41dba9(0x123)])return;if(!isRuntimeSkillScope(_0x4f6b36['scope'])||!_0x3ac307['scopes']['has'](_0x4f6b36['scope']))return;const _0x177075=_0x4f6b36['skillCode']?.[_0x41dba9(0x11e)]();if(!_0x177075)return;if(_0x3ac307[_0x41dba9(0x12f)]&&_0x177075!==_0x3ac307[_0x41dba9(0x12f)])return;const _0x210d76=_0x4f6b36[_0x41dba9(0x134)]+':'+_0x177075,_0x1ec479=_0x3ac307[_0x41dba9(0x112)]?[_0x3ac307[_0x41dba9(0x112)]]:[],_0x4812dd=_0x5b0112['get'](_0x210d76);if(_0x4812dd){_0x3ac307[_0x41dba9(0x111)]===_0x41dba9(0x12a)&&(_0x4812dd[_0x41dba9(0x122)]=_0x1766fe,_0x4812dd['cacheDir']=_0x1766fe,_0x4812dd[_0x41dba9(0x138)]=resolve(_0x1766fe,SKILL_FILE),_0x4812dd[_0x41dba9(0x133)]=_0x9f87e5);for(const _0x4a5e50 of _0x1ec479){!_0x4812dd[_0x41dba9(0x12c)][_0x41dba9(0x125)](_0x4a5e50)&&_0x4812dd[_0x41dba9(0x12c)][_0x41dba9(0x117)](_0x4a5e50);}_0x4812dd['linkedPaths'][_0x41dba9(0x131)]();return;}_0x5b0112['set'](_0x210d76,{..._0x4f6b36,'tags':Array['isArray'](_0x4f6b36['tags'])?_0x4f6b36['tags']:[],'scope':_0x4f6b36[_0x41dba9(0x134)],'source':_0x41dba9(0x115),'dir':_0x1766fe,'cacheDir':_0x3ac307[_0x41dba9(0x111)]===_0x41dba9(0x12a)?_0x1766fe:undefined,'skillMdPath':resolve(_0x1766fe,SKILL_FILE),'metadataPath':_0x9f87e5,'linkedPaths':_0x1ec479});}function compareLocalRuntimeSkills(_0x468ea0,_0x1d1503){const _0x35bc00=a142_0x1d50,_0x14ca62={'personal':0x0,'company':0x1,'builtin':0x2};return _0x14ca62[_0x468ea0[_0x35bc00(0x134)]]-_0x14ca62[_0x1d1503['scope']]||_0x468ea0['skillCode'][_0x35bc00(0x124)](_0x1d1503['skillCode'])||_0x468ea0[_0x35bc00(0x122)][_0x35bc00(0x124)](_0x1d1503[_0x35bc00(0x122)]);}
1
+ (function(_0x5d0a94,_0x3ed663){const _0x3f1c72=a143_0x1321,_0x3bafeb=_0x5d0a94();while(!![]){try{const _0x3540fd=-parseInt(_0x3f1c72(0x125))/0x1*(parseInt(_0x3f1c72(0x107))/0x2)+parseInt(_0x3f1c72(0x12c))/0x3*(parseInt(_0x3f1c72(0x11f))/0x4)+parseInt(_0x3f1c72(0x12e))/0x5+-parseInt(_0x3f1c72(0x10f))/0x6+parseInt(_0x3f1c72(0x111))/0x7+-parseInt(_0x3f1c72(0x11e))/0x8*(-parseInt(_0x3f1c72(0x128))/0x9)+-parseInt(_0x3f1c72(0x121))/0xa*(-parseInt(_0x3f1c72(0x123))/0xb);if(_0x3540fd===_0x3ed663)break;else _0x3bafeb['push'](_0x3bafeb['shift']());}catch(_0x2463c4){_0x3bafeb['push'](_0x3bafeb['shift']());}}}(a143_0x4c9f,0x89669));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(_0x3e20c2,_0x1b0852,_0x42b0b9={}){const _0x1158e4=a143_0x1321,_0xb9619=safePathSegment(_0x3e20c2[_0x1158e4(0x124)],_0x1158e4(0x124));if(_0x1b0852[_0x1158e4(0x124)]!==_0xb9619)throw CliErrors[_0x1158e4(0x130)](_0x1158e4(0x129)+_0x1b0852['appCode']+_0x1158e4(0x109)+_0xb9619);const _0x128d25=normalizeRuntimeSkillScopes(_0x3e20c2[_0x1158e4(0x132)]),_0x51fa0d=new Set(_0x128d25),_0xad4878=_0x3e20c2['code']?.[_0x1158e4(0x114)](),_0x37fa9c=new Map(),_0x3c6c43=resolve(getRuntimeSkillCacheRoot(_0x3e20c2['env'],_0x3e20c2['accessKey'],_0x42b0b9),_0xb9619);for(const _0x1d2fcd of _0x128d25){for(const _0x1c2f4a of localSkillEntryDirs(resolve(_0x3c6c43,_0x1d2fcd))){collectLocalRuntimeSkill(_0x37fa9c,_0x1c2f4a,{'appCode':_0xb9619,'scopes':_0x51fa0d,'code':_0xad4878,'source':_0x1158e4(0x10e)});}}for(const _0x451759 of _0x1b0852['skillRoots']){for(const _0x8b1375 of localSkillLinkCandidates(_0x451759,_0x1b0852,_0x51fa0d)){collectLocalRuntimeSkill(_0x37fa9c,_0x8b1375,{'appCode':_0xb9619,'scopes':_0x51fa0d,'code':_0xad4878,'source':_0x1158e4(0x10c),'linkedPath':_0x8b1375});}}return Array[_0x1158e4(0x11d)](_0x37fa9c[_0x1158e4(0x11b)]())['sort'](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x4a700b){const _0x1ce0b6=a143_0x1321;if(!existsSync(_0x4a700b))return[];return readdirSync(_0x4a700b,{'withFileTypes':!![]})['filter'](_0x1fe48d=>_0x1fe48d[_0x1ce0b6(0x110)]()||_0x1fe48d[_0x1ce0b6(0x126)]())[_0x1ce0b6(0x12d)](_0x4adb6e=>resolve(_0x4a700b,_0x4adb6e[_0x1ce0b6(0x131)]));}function localSkillLinkCandidates(_0x20e1a8,_0x252ef4,_0x124b9d){const _0x18af4a=a143_0x1321;if(!existsSync(_0x20e1a8))return[];const _0x1fcc13=_0x252ef4[_0x18af4a(0x124)]+'--';return readdirSync(_0x20e1a8,{'withFileTypes':!![]})[_0x18af4a(0x12b)](_0xa954f6=>_0xa954f6['isDirectory']()||_0xa954f6[_0x18af4a(0x126)]())[_0x18af4a(0x12b)](_0x2bc694=>_0x252ef4[_0x18af4a(0x116)]===_0x18af4a(0x115)||_0x2bc694['name'][_0x18af4a(0x10b)](_0x1fcc13)||_0x124b9d[_0x18af4a(0x12a)](_0x18af4a(0x11c)))['map'](_0x2fdcbf=>resolve(_0x20e1a8,_0x2fdcbf[_0x18af4a(0x131)]));}function a143_0x1321(_0x4a612c,_0x3821f0){_0x4a612c=_0x4a612c-0x107;const _0x4c9f3e=a143_0x4c9f();let _0x1321fa=_0x4c9f3e[_0x4a612c];return _0x1321fa;}function collectLocalRuntimeSkill(_0x4a6690,_0x532022,_0x4377f2){const _0x51f45f=a143_0x1321,_0x57cc07=resolve(_0x532022,METADATA_FILE),_0x19ae07=readMetadataIfPresent(_0x57cc07);if(!_0x19ae07)return;if(_0x19ae07['appCode']!==_0x4377f2['appCode'])return;if(!isRuntimeSkillScope(_0x19ae07[_0x51f45f(0x116)])||!_0x4377f2[_0x51f45f(0x132)][_0x51f45f(0x12a)](_0x19ae07[_0x51f45f(0x116)]))return;const _0x3f32e6=_0x19ae07[_0x51f45f(0x113)]?.['trim']();if(!_0x3f32e6)return;if(_0x4377f2[_0x51f45f(0x10d)]&&_0x3f32e6!==_0x4377f2[_0x51f45f(0x10d)])return;const _0x1ad079=_0x19ae07[_0x51f45f(0x116)]+':'+_0x3f32e6,_0x3e9dec=_0x4377f2[_0x51f45f(0x120)]?[_0x4377f2[_0x51f45f(0x120)]]:[],_0x50e0d8=_0x4a6690['get'](_0x1ad079);if(_0x50e0d8){_0x4377f2[_0x51f45f(0x12f)]==='cache'&&(_0x50e0d8[_0x51f45f(0x108)]=_0x532022,_0x50e0d8['cacheDir']=_0x532022,_0x50e0d8['skillMdPath']=resolve(_0x532022,SKILL_FILE),_0x50e0d8[_0x51f45f(0x118)]=_0x57cc07);for(const _0xb751f5 of _0x3e9dec){!_0x50e0d8['linkedPaths']['includes'](_0xb751f5)&&_0x50e0d8[_0x51f45f(0x10a)][_0x51f45f(0x112)](_0xb751f5);}_0x50e0d8[_0x51f45f(0x10a)][_0x51f45f(0x117)]();return;}_0x4a6690[_0x51f45f(0x127)](_0x1ad079,{..._0x19ae07,'tags':Array[_0x51f45f(0x11a)](_0x19ae07[_0x51f45f(0x119)])?_0x19ae07['tags']:[],'scope':_0x19ae07[_0x51f45f(0x116)],'source':'local','dir':_0x532022,'cacheDir':_0x4377f2[_0x51f45f(0x12f)]===_0x51f45f(0x10e)?_0x532022:undefined,'skillMdPath':resolve(_0x532022,SKILL_FILE),'metadataPath':_0x57cc07,'linkedPaths':_0x3e9dec});}function compareLocalRuntimeSkills(_0x4e05c4,_0x56c788){const _0x340370=a143_0x1321,_0x185973={'personal':0x0,'company':0x1,'builtin':0x2};return _0x185973[_0x4e05c4[_0x340370(0x116)]]-_0x185973[_0x56c788[_0x340370(0x116)]]||_0x4e05c4[_0x340370(0x113)][_0x340370(0x122)](_0x56c788[_0x340370(0x113)])||_0x4e05c4[_0x340370(0x108)]['localeCompare'](_0x56c788[_0x340370(0x108)]);}function a143_0x4c9f(){const _0x121216=['filter','1047327cBJvGQ','map','333995ypjFSN','source','validation','name','scopes','2EtibBm','dir','\x20!=\x20','linkedPaths','startsWith','link','code','cache','6448806aApZkJ','isDirectory','3881192wfRQca','push','skillCode','trim','project','scope','sort','metadataPath','tags','isArray','values','builtin','from','72208rBzwGI','4fJOSqU','linkedPath','10TdNqXM','localeCompare','4967897PjRxtA','appCode','425243MEkXWX','isSymbolicLink','set','639GeXCER','Runtime\x20Skill\x20install\x20target\x20app\x20mismatch:\x20','has'];a143_0x4c9f=function(){return _0x121216;};return a143_0x4c9f();}
@@ -1 +1 @@
1
- (function(_0x23f2d1,_0x1e8798){const _0x1f6ff1=a143_0x240c,_0x37ec53=_0x23f2d1();while(!![]){try{const _0x4e6a79=-parseInt(_0x1f6ff1(0x1b4))/0x1+parseInt(_0x1f6ff1(0x1d7))/0x2+parseInt(_0x1f6ff1(0x1c1))/0x3*(parseInt(_0x1f6ff1(0x1b6))/0x4)+parseInt(_0x1f6ff1(0x1ca))/0x5+-parseInt(_0x1f6ff1(0x1bb))/0x6+parseInt(_0x1f6ff1(0x1b1))/0x7+-parseInt(_0x1f6ff1(0x1c9))/0x8;if(_0x4e6a79===_0x1e8798)break;else _0x37ec53['push'](_0x37ec53['shift']());}catch(_0x10f9ff){_0x37ec53['push'](_0x37ec53['shift']());}}}(a143_0x5647,0x40dd3));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(_0x5cb92d){const _0x16f91b=a143_0x240c;return _0x5cb92d[_0x16f91b(0x1d1)]??Buffer['from'](_0x5cb92d[_0x16f91b(0x1d3)]??'',_0x16f91b(0x1d4));}function a143_0x240c(_0x316491,_0x26ad76){_0x316491=_0x316491-0x1b0;const _0x564768=a143_0x5647();let _0x240c70=_0x564768[_0x316491];return _0x240c70;}function a143_0x5647(){const _0x2e9f18=['sha256','isSafeInteger','string','Skill\x20file\x20path\x20must\x20be\x20text.','bytes','object','content','utf8','isDirectory','Skill\x20file\x20size\x20is\x20invalid:\x20','995612UgxZWT','Skill\x20file\x20sha256\x20is\x20invalid:\x20','isFile','name','sort','compare','excludedFilePaths','1585192KmORVU','test','includes','196305HrQVlx','toLowerCase','13016lNsFta','add','isSymbolicLink','Duplicate\x20Skill\x20file\x20path:\x20','validation','2110194ddBeJV','from','toString','Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20','isArray','length','381cNVKQF','Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20','localeCompare','push','size','has','values','split','4068464IYPQDa','923625FmBUrP','path','replace'];a143_0x5647=function(){return _0x2e9f18;};return a143_0x5647();}export function fileText(_0x5c8c13){const _0x19efe5=a143_0x240c;return fileContent(_0x5c8c13)[_0x19efe5(0x1bd)](_0x19efe5(0x1d4));}export function normalizeLocalFiles(_0x4eba6f){const _0x6d6a62=a143_0x240c;if(!Array['isArray'](_0x4eba6f)||_0x4eba6f['length']===0x0)return[];const _0x54137e=new Map();for(const _0x289c2d of _0x4eba6f){if(!_0x289c2d||typeof _0x289c2d!=='object'||typeof _0x289c2d['path']!=='string')throw CliErrors[_0x6d6a62(0x1ba)](_0x6d6a62(0x1d0));const _0x541a03=normalizeSkillRelativePath(_0x289c2d[_0x6d6a62(0x1cb)]);if(_0x54137e[_0x6d6a62(0x1c6)](_0x541a03))throw CliErrors['validation'](_0x6d6a62(0x1b9)+_0x541a03);if(_0x289c2d[_0x6d6a62(0x1d1)]!==undefined&&!Buffer['isBuffer'](_0x289c2d['bytes']))throw CliErrors[_0x6d6a62(0x1ba)](_0x6d6a62(0x1be)+_0x541a03);if(_0x289c2d[_0x6d6a62(0x1d1)]===undefined&&typeof _0x289c2d[_0x6d6a62(0x1d3)]!=='string')throw CliErrors[_0x6d6a62(0x1ba)](_0x6d6a62(0x1c2)+_0x541a03);const _0x3e33c7=fileContent(_0x289c2d);_0x54137e['set'](_0x541a03,{'path':_0x541a03,'bytes':_0x3e33c7});}return Array['from'](_0x54137e[_0x6d6a62(0x1c7)]())[_0x6d6a62(0x1db)](compareSkillFiles);}export function normalizeManifestFiles(_0x44e439){const _0x352562=a143_0x240c;if(!Array[_0x352562(0x1bf)](_0x44e439)||_0x44e439[_0x352562(0x1c0)]===0x0)return[];const _0x39e96c=new Map();for(const _0x4fe0b2 of _0x44e439){if(!_0x4fe0b2||typeof _0x4fe0b2!==_0x352562(0x1d2)||typeof _0x4fe0b2[_0x352562(0x1cb)]!==_0x352562(0x1cf))throw CliErrors[_0x352562(0x1ba)]('Skill\x20file\x20path\x20must\x20be\x20text.');const _0x225ad4=normalizeSkillRelativePath(_0x4fe0b2[_0x352562(0x1cb)]);if(_0x39e96c[_0x352562(0x1c6)](_0x225ad4))throw CliErrors[_0x352562(0x1ba)](_0x352562(0x1b9)+_0x225ad4);if(!isSha256Hex(_0x4fe0b2['sha256']))throw CliErrors[_0x352562(0x1ba)](_0x352562(0x1d8)+_0x225ad4);if(!Number[_0x352562(0x1ce)](_0x4fe0b2['size'])||_0x4fe0b2[_0x352562(0x1c5)]<0x0)throw CliErrors[_0x352562(0x1ba)](_0x352562(0x1d6)+_0x225ad4);_0x39e96c['set'](_0x225ad4,{'path':_0x225ad4,'sha256':_0x4fe0b2[_0x352562(0x1cd)][_0x352562(0x1b5)](),'size':_0x4fe0b2[_0x352562(0x1c5)]});}return Array[_0x352562(0x1bc)](_0x39e96c[_0x352562(0x1c7)]())[_0x352562(0x1db)](compareSkillFiles);}export function scanSkillDirectory(_0x3306d6,_0x1e6b27={}){const _0x19c584=a143_0x240c,_0x4d165a=realpathSync(_0x3306d6),_0x2163be=canonicalExcludedFilePaths(_0x1e6b27[_0x19c584(0x1b0)]),_0x50e072=[];function _0x3404b4(_0x2c98b6){const _0x5eea7d=_0x19c584,_0x3b7795=readdirSync(_0x2c98b6,{'withFileTypes':!![]})[_0x5eea7d(0x1db)]((_0x30629a,_0x324114)=>_0x30629a[_0x5eea7d(0x1da)][_0x5eea7d(0x1c3)](_0x324114[_0x5eea7d(0x1da)]));for(const _0x51926c of _0x3b7795){if(_0x51926c[_0x5eea7d(0x1d5)]()&&IGNORED_DIR_NAMES['has'](_0x51926c[_0x5eea7d(0x1da)]))continue;if(IGNORED_FILE_NAMES[_0x5eea7d(0x1c6)](_0x51926c['name']))continue;const _0x1a2f4d=resolve(_0x2c98b6,_0x51926c[_0x5eea7d(0x1da)]);if(isExcludedFilePath(_0x1a2f4d,_0x2163be))continue;if(_0x51926c[_0x5eea7d(0x1b8)]())throw CliErrors[_0x5eea7d(0x1ba)]('Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20'+_0x1a2f4d);const _0x55b4fd=toPosixPath(relative(_0x4d165a,_0x1a2f4d));if(_0x51926c[_0x5eea7d(0x1d5)]()){_0x3404b4(_0x1a2f4d);continue;}if(!_0x51926c[_0x5eea7d(0x1d9)]())continue;validateSkillRelativePath(_0x55b4fd);const _0x5384b7=readFileSync(_0x1a2f4d);_0x50e072[_0x5eea7d(0x1c4)]({'path':_0x55b4fd,'bytes':_0x5384b7});}}return _0x3404b4(_0x4d165a),normalizeLocalFiles(_0x50e072);}function canonicalExcludedFilePaths(_0x1d3c52){const _0x3fb40f=a143_0x240c,_0x49b1ce=new Set();for(const _0x44e10a of _0x1d3c52??[]){const _0x550329=resolve(_0x44e10a);_0x49b1ce[_0x3fb40f(0x1b7)](_0x550329);try{_0x49b1ce[_0x3fb40f(0x1b7)](realpathSync(_0x550329));}catch{}}return _0x49b1ce;}function isExcludedFilePath(_0x4cdf28,_0x513839){const _0x2d6ed1=a143_0x240c;if(_0x513839[_0x2d6ed1(0x1c6)](_0x4cdf28))return!![];if(_0x513839[_0x2d6ed1(0x1c5)]===0x0)return![];try{return _0x513839[_0x2d6ed1(0x1c6)](realpathSync(_0x4cdf28));}catch{return![];}}export function compareSkillFiles(_0x16d0f0,_0x1cdfa1){const _0x1b7f48=a143_0x240c;if(_0x16d0f0['path']===SKILL_FILE)return _0x1cdfa1['path']===SKILL_FILE?0x0:-0x1;if(_0x1cdfa1[_0x1b7f48(0x1cb)]===SKILL_FILE)return 0x1;return Buffer[_0x1b7f48(0x1dc)](Buffer[_0x1b7f48(0x1bc)](_0x16d0f0[_0x1b7f48(0x1cb)],_0x1b7f48(0x1d4)),Buffer[_0x1b7f48(0x1bc)](_0x1cdfa1[_0x1b7f48(0x1cb)],_0x1b7f48(0x1d4)));}export function normalizeSkillRelativePath(_0x5df00c){const _0x1427b2=toPosixPath(_0x5df00c['trim']());return validateSkillRelativePath(_0x1427b2),_0x1427b2;}export function validateSkillRelativePath(_0x39180d){const _0x394da9=a143_0x240c;if(!_0x39180d||_0x39180d['startsWith']('/')||_0x39180d[_0x394da9(0x1b3)]('//'))throw CliErrors[_0x394da9(0x1ba)]('Unsafe\x20Skill\x20file\x20path:\x20'+_0x39180d);for(const _0x438ad8 of _0x39180d[_0x394da9(0x1c8)]('/')){if(!_0x438ad8||_0x438ad8==='.'||_0x438ad8==='..')throw CliErrors[_0x394da9(0x1ba)]('Unsafe\x20Skill\x20file\x20path:\x20'+_0x39180d);}}export function toPosixPath(_0x583960){const _0x2228c5=a143_0x240c;return _0x583960[_0x2228c5(0x1cc)](/\\/g,'/');}export function isSha256Hex(_0x2aaf0f){const _0x566b76=a143_0x240c;return typeof _0x2aaf0f===_0x566b76(0x1cf)&&/^[a-fA-F0-9]{64}$/[_0x566b76(0x1b2)](_0x2aaf0f);}
1
+ (function(_0x28c79f,_0x334ebc){const _0x115db6=a144_0x7695,_0x2c7106=_0x28c79f();while(!![]){try{const _0x3b88da=-parseInt(_0x115db6(0x1a1))/0x1*(-parseInt(_0x115db6(0x1a3))/0x2)+-parseInt(_0x115db6(0x1be))/0x3*(-parseInt(_0x115db6(0x1a0))/0x4)+parseInt(_0x115db6(0x1a8))/0x5+-parseInt(_0x115db6(0x1c8))/0x6*(-parseInt(_0x115db6(0x1bc))/0x7)+parseInt(_0x115db6(0x1a6))/0x8+-parseInt(_0x115db6(0x1bd))/0x9*(-parseInt(_0x115db6(0x1b1))/0xa)+-parseInt(_0x115db6(0x19e))/0xb;if(_0x3b88da===_0x334ebc)break;else _0x2c7106['push'](_0x2c7106['shift']());}catch(_0x22d24d){_0x2c7106['push'](_0x2c7106['shift']());}}}(a144_0x52fc,0x3c58d));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';function a144_0x7695(_0x203f5e,_0x2f7862){_0x203f5e=_0x203f5e-0x19e;const _0x52fc35=a144_0x52fc();let _0x769515=_0x52fc35[_0x203f5e];return _0x769515;}export function fileContent(_0x2641dc){const _0x7a55c7=a144_0x7695;return _0x2641dc[_0x7a55c7(0x1cc)]??Buffer[_0x7a55c7(0x19f)](_0x2641dc[_0x7a55c7(0x1b5)]??'','utf8');}export function fileText(_0x280935){const _0xe1d90=a144_0x7695;return fileContent(_0x280935)[_0xe1d90(0x1ba)](_0xe1d90(0x1b7));}export function normalizeLocalFiles(_0x1ceb1f){const _0x2a3628=a144_0x7695;if(!Array[_0x2a3628(0x1c2)](_0x1ceb1f)||_0x1ceb1f[_0x2a3628(0x1b9)]===0x0)return[];const _0x4bec5c=new Map();for(const _0x165595 of _0x1ceb1f){if(!_0x165595||typeof _0x165595!==_0x2a3628(0x1bb)||typeof _0x165595[_0x2a3628(0x1a4)]!==_0x2a3628(0x1b8))throw CliErrors[_0x2a3628(0x1c3)](_0x2a3628(0x1b2));const _0x1cb5cd=normalizeSkillRelativePath(_0x165595[_0x2a3628(0x1a4)]);if(_0x4bec5c['has'](_0x1cb5cd))throw CliErrors[_0x2a3628(0x1c3)](_0x2a3628(0x1b6)+_0x1cb5cd);if(_0x165595['bytes']!==undefined&&!Buffer['isBuffer'](_0x165595[_0x2a3628(0x1cc)]))throw CliErrors[_0x2a3628(0x1c3)]('Skill\x20file\x20bytes\x20must\x20be\x20a\x20Buffer:\x20'+_0x1cb5cd);if(_0x165595[_0x2a3628(0x1cc)]===undefined&&typeof _0x165595[_0x2a3628(0x1b5)]!==_0x2a3628(0x1b8))throw CliErrors[_0x2a3628(0x1c3)]('Skill\x20file\x20content\x20must\x20be\x20text\x20or\x20bytes:\x20'+_0x1cb5cd);const _0x4ce47b=fileContent(_0x165595);_0x4bec5c['set'](_0x1cb5cd,{'path':_0x1cb5cd,'bytes':_0x4ce47b});}return Array[_0x2a3628(0x19f)](_0x4bec5c[_0x2a3628(0x1b4)]())['sort'](compareSkillFiles);}export function normalizeManifestFiles(_0x26911b){const _0x46eb22=a144_0x7695;if(!Array[_0x46eb22(0x1c2)](_0x26911b)||_0x26911b[_0x46eb22(0x1b9)]===0x0)return[];const _0x4224e6=new Map();for(const _0x50820f of _0x26911b){if(!_0x50820f||typeof _0x50820f!=='object'||typeof _0x50820f[_0x46eb22(0x1a4)]!==_0x46eb22(0x1b8))throw CliErrors['validation'](_0x46eb22(0x1b2));const _0x448497=normalizeSkillRelativePath(_0x50820f[_0x46eb22(0x1a4)]);if(_0x4224e6[_0x46eb22(0x1cb)](_0x448497))throw CliErrors[_0x46eb22(0x1c3)](_0x46eb22(0x1b6)+_0x448497);if(!isSha256Hex(_0x50820f['sha256']))throw CliErrors[_0x46eb22(0x1c3)](_0x46eb22(0x1bf)+_0x448497);if(!Number['isSafeInteger'](_0x50820f[_0x46eb22(0x1c0)])||_0x50820f['size']<0x0)throw CliErrors[_0x46eb22(0x1c3)](_0x46eb22(0x1c4)+_0x448497);_0x4224e6[_0x46eb22(0x1c5)](_0x448497,{'path':_0x448497,'sha256':_0x50820f['sha256'][_0x46eb22(0x1c6)](),'size':_0x50820f[_0x46eb22(0x1c0)]});}return Array[_0x46eb22(0x19f)](_0x4224e6['values']())[_0x46eb22(0x1ca)](compareSkillFiles);}export function scanSkillDirectory(_0x171ba9,_0x2465bb={}){const _0x4a4b23=a144_0x7695,_0x4b030b=realpathSync(_0x171ba9),_0x4918a5=canonicalExcludedFilePaths(_0x2465bb[_0x4a4b23(0x1ae)]),_0x457579=[];function _0x25281b(_0x38c2f7){const _0x4e4ce5=_0x4a4b23,_0xc6db38=readdirSync(_0x38c2f7,{'withFileTypes':!![]})[_0x4e4ce5(0x1ca)]((_0x250224,_0x46327d)=>_0x250224[_0x4e4ce5(0x1a2)][_0x4e4ce5(0x1b0)](_0x46327d['name']));for(const _0x4b42b2 of _0xc6db38){if(_0x4b42b2[_0x4e4ce5(0x1c1)]()&&IGNORED_DIR_NAMES[_0x4e4ce5(0x1cb)](_0x4b42b2[_0x4e4ce5(0x1a2)]))continue;if(IGNORED_FILE_NAMES[_0x4e4ce5(0x1cb)](_0x4b42b2[_0x4e4ce5(0x1a2)]))continue;const _0x298072=resolve(_0x38c2f7,_0x4b42b2['name']);if(isExcludedFilePath(_0x298072,_0x4918a5))continue;if(_0x4b42b2[_0x4e4ce5(0x1a7)]())throw CliErrors[_0x4e4ce5(0x1c3)](_0x4e4ce5(0x1ad)+_0x298072);const _0x59318b=toPosixPath(relative(_0x4b030b,_0x298072));if(_0x4b42b2[_0x4e4ce5(0x1c1)]()){_0x25281b(_0x298072);continue;}if(!_0x4b42b2[_0x4e4ce5(0x1cd)]())continue;validateSkillRelativePath(_0x59318b);const _0x3504ce=readFileSync(_0x298072);_0x457579[_0x4e4ce5(0x1a9)]({'path':_0x59318b,'bytes':_0x3504ce});}}return _0x25281b(_0x4b030b),normalizeLocalFiles(_0x457579);}function canonicalExcludedFilePaths(_0x11fe3b){const _0x2866dc=new Set();for(const _0x475d22 of _0x11fe3b??[]){const _0x13976b=resolve(_0x475d22);_0x2866dc['add'](_0x13976b);try{_0x2866dc['add'](realpathSync(_0x13976b));}catch{}}return _0x2866dc;}function a144_0x52fc(){const _0x42110d=['bytes','isFile','14411023bOWBnn','from','3492EiDYrU','2ipfWIS','name','308654TmEeaI','path','replace','2078136YTboHM','isSymbolicLink','990380zpsjqt','push','Unsafe\x20Skill\x20file\x20path:\x20','split','compare','Skill\x20directory\x20contains\x20unsupported\x20symlink:\x20','excludedFilePaths','startsWith','localeCompare','10JKgFJJ','Skill\x20file\x20path\x20must\x20be\x20text.','includes','values','content','Duplicate\x20Skill\x20file\x20path:\x20','utf8','string','length','toString','object','758436grhrlC','4075470pjXYRm','789uZPiSY','Skill\x20file\x20sha256\x20is\x20invalid:\x20','size','isDirectory','isArray','validation','Skill\x20file\x20size\x20is\x20invalid:\x20','set','toLowerCase','test','6KKJIvx','trim','sort','has'];a144_0x52fc=function(){return _0x42110d;};return a144_0x52fc();}function isExcludedFilePath(_0x4b3d93,_0x3faf9d){const _0x1fe022=a144_0x7695;if(_0x3faf9d[_0x1fe022(0x1cb)](_0x4b3d93))return!![];if(_0x3faf9d['size']===0x0)return![];try{return _0x3faf9d[_0x1fe022(0x1cb)](realpathSync(_0x4b3d93));}catch{return![];}}export function compareSkillFiles(_0x3ff4d9,_0x99b14b){const _0x12454a=a144_0x7695;if(_0x3ff4d9['path']===SKILL_FILE)return _0x99b14b[_0x12454a(0x1a4)]===SKILL_FILE?0x0:-0x1;if(_0x99b14b[_0x12454a(0x1a4)]===SKILL_FILE)return 0x1;return Buffer[_0x12454a(0x1ac)](Buffer['from'](_0x3ff4d9[_0x12454a(0x1a4)],_0x12454a(0x1b7)),Buffer[_0x12454a(0x19f)](_0x99b14b[_0x12454a(0x1a4)],_0x12454a(0x1b7)));}export function normalizeSkillRelativePath(_0x302fc4){const _0x6e42e7=a144_0x7695,_0x508fe7=toPosixPath(_0x302fc4[_0x6e42e7(0x1c9)]());return validateSkillRelativePath(_0x508fe7),_0x508fe7;}export function validateSkillRelativePath(_0x57476e){const _0x2e250e=a144_0x7695;if(!_0x57476e||_0x57476e[_0x2e250e(0x1af)]('/')||_0x57476e[_0x2e250e(0x1b3)]('//'))throw CliErrors[_0x2e250e(0x1c3)](_0x2e250e(0x1aa)+_0x57476e);for(const _0x51388c of _0x57476e[_0x2e250e(0x1ab)]('/')){if(!_0x51388c||_0x51388c==='.'||_0x51388c==='..')throw CliErrors['validation'](_0x2e250e(0x1aa)+_0x57476e);}}export function toPosixPath(_0x38c2bd){const _0x33b9b5=a144_0x7695;return _0x38c2bd[_0x33b9b5(0x1a5)](/\\/g,'/');}export function isSha256Hex(_0x25340f){const _0x1eac1e=a144_0x7695;return typeof _0x25340f===_0x1eac1e(0x1b8)&&/^[a-fA-F0-9]{64}$/[_0x1eac1e(0x1c7)](_0x25340f);}