@lovrabet/lovrabet-cli 2.3.1 → 2.3.2-beta.2

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 (184) hide show
  1. package/README.md +10 -8
  2. package/lib/cli.js +1 -1
  3. package/lib/commands/api-doc/index.js +1 -1
  4. package/lib/commands/app/cache.js +1 -1
  5. package/lib/commands/app/definitions.js +1 -1
  6. package/lib/commands/app/eligibility.js +1 -1
  7. package/lib/commands/app/mock-loader.js +1 -1
  8. package/lib/commands/app/remote-source.js +1 -1
  9. package/lib/commands/app/shared.js +1 -1
  10. package/lib/commands/app-config/get.js +1 -1
  11. package/lib/commands/app-config/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.d.ts +1 -2
  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.d.ts +0 -3
  41. package/lib/commands/notification/shared.js +1 -1
  42. package/lib/commands/ocr/index.js +1 -1
  43. package/lib/commands/permit/dataset-get.js +1 -1
  44. package/lib/commands/permit/dataset-set.js +1 -1
  45. package/lib/commands/permit/index.js +1 -1
  46. package/lib/commands/permit/page-get.js +1 -1
  47. package/lib/commands/permit/page-set.js +1 -1
  48. package/lib/commands/permit/role-menus-set.js +1 -1
  49. package/lib/commands/permit/role-menus.js +1 -1
  50. package/lib/commands/permit/shared.js +1 -1
  51. package/lib/commands/personal-bff/index.js +1 -1
  52. package/lib/commands/registry.js +1 -1
  53. package/lib/commands/role/create.js +1 -1
  54. package/lib/commands/role/delete.js +1 -1
  55. package/lib/commands/role/detail.js +1 -1
  56. package/lib/commands/role/index.js +1 -1
  57. package/lib/commands/role/list.js +1 -1
  58. package/lib/commands/role/shared.d.ts +2 -0
  59. package/lib/commands/role/shared.js +1 -1
  60. package/lib/commands/role/update.js +1 -1
  61. package/lib/commands/role/user-add.js +1 -1
  62. package/lib/commands/role/user-remove.js +1 -1
  63. package/lib/commands/schedule/index.js +1 -1
  64. package/lib/commands/schema.js +1 -1
  65. package/lib/commands/service/dynamic.js +1 -1
  66. package/lib/commands/service/function-name-adapter.js +1 -1
  67. package/lib/commands/service/index.js +1 -1
  68. package/lib/commands/service/registry.js +1 -1
  69. package/lib/commands/skill/commands/create.js +1 -1
  70. package/lib/commands/skill/commands/diagram.js +1 -1
  71. package/lib/commands/skill/commands/install.js +1 -1
  72. package/lib/commands/skill/commands/list.js +1 -1
  73. package/lib/commands/skill/commands/push.js +1 -1
  74. package/lib/commands/skill/commands/validate.js +1 -1
  75. package/lib/commands/skill/diagram.js +1 -1
  76. package/lib/commands/skill/flags.js +1 -1
  77. package/lib/commands/skill/index.js +1 -1
  78. package/lib/commands/skill/manifest-helpers.js +1 -1
  79. package/lib/commands/skill/push-execute.js +1 -1
  80. package/lib/commands/skill/push-flow-helpers.js +1 -1
  81. package/lib/commands/skill/push-retarget.js +1 -1
  82. package/lib/commands/skill/scopes.js +1 -1
  83. package/lib/commands/skill/summary.js +1 -1
  84. package/lib/commands/skill/templates.js +1 -1
  85. package/lib/commands/skill/validate.js +1 -1
  86. package/lib/commands/sql/detail.js +1 -1
  87. package/lib/commands/sql/exec.js +1 -1
  88. package/lib/commands/sql/index.js +1 -1
  89. package/lib/commands/update.js +1 -1
  90. package/lib/commands/user-account/bind.js +1 -1
  91. package/lib/commands/user-account/index.js +1 -1
  92. package/lib/commands/workspace/index.js +1 -1
  93. package/lib/config/domain-config.d.ts +6 -14
  94. package/lib/config/domain-config.js +1 -1
  95. package/lib/config/schema.d.ts +1 -1
  96. package/lib/config/schema.js +1 -1
  97. package/lib/constant/app.js +1 -1
  98. package/lib/constant/auth-mode.js +1 -1
  99. package/lib/constant/cli.js +1 -1
  100. package/lib/constant/defaults.js +1 -1
  101. package/lib/constant/distribution.js +1 -1
  102. package/lib/constant/domain.d.ts +0 -3
  103. package/lib/constant/domain.js +1 -1
  104. package/lib/constant/env.js +1 -1
  105. package/lib/constant/output.js +1 -1
  106. package/lib/constant/product.js +1 -1
  107. package/lib/constant/region.js +1 -1
  108. package/lib/constant/risk.js +1 -1
  109. package/lib/constant/url.js +1 -1
  110. package/lib/context.js +1 -1
  111. package/lib/core/api-client.d.ts +5 -10
  112. package/lib/core/api-client.js +1 -1
  113. package/lib/core/db-resolver.js +1 -1
  114. package/lib/core/kb-search-client.js +1 -1
  115. package/lib/core/sdk-client.js +1 -1
  116. package/lib/errors.js +1 -1
  117. package/lib/framework/build-all-flags.js +1 -1
  118. package/lib/framework/dryrun.js +1 -1
  119. package/lib/framework/flags.js +1 -1
  120. package/lib/framework/help.js +1 -1
  121. package/lib/framework/index.js +1 -1
  122. package/lib/framework/output.js +1 -1
  123. package/lib/framework/preparse.js +1 -1
  124. package/lib/framework/rate-limit.js +1 -1
  125. package/lib/framework/raw-flags.js +1 -1
  126. package/lib/framework/response.js +1 -1
  127. package/lib/framework/runner-confirmation.js +1 -1
  128. package/lib/framework/runner-error.js +1 -1
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/service-order.js +1 -1
  132. package/lib/framework/types.js +1 -1
  133. package/lib/generated/build-info.d.ts +4 -4
  134. package/lib/generated/build-info.js +1 -1
  135. package/lib/generated/official-routing.d.ts +1 -5
  136. package/lib/generated/official-routing.js +1 -1
  137. package/lib/generated/routing-contract.d.ts +3 -7
  138. package/lib/generated/routing-contract.js +1 -1
  139. package/lib/help.js +1 -1
  140. package/lib/postinstall.js +1 -1
  141. package/lib/runtime/confirmation.js +1 -1
  142. package/lib/runtime/event.js +1 -1
  143. package/lib/runtime/index.js +1 -1
  144. package/lib/runtime/queue.js +1 -1
  145. package/lib/runtime/resolve.js +1 -1
  146. package/lib/skills/builtin-skill.js +1 -1
  147. package/lib/skills/npx-skills-add.js +1 -1
  148. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  149. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  150. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  151. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  152. package/lib/skills/runtime-skill-sync/links.js +1 -1
  153. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  154. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  155. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  156. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  157. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  158. package/lib/skills/runtime-skill-sync/push.js +1 -1
  159. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  160. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  161. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  162. package/lib/skills/runtime-skill-sync.js +1 -1
  163. package/lib/skills/skill-presence.js +1 -1
  164. package/lib/utils/access-key-redaction.js +1 -1
  165. package/lib/utils/apply-jq-filter.js +1 -1
  166. package/lib/utils/cli-version-check.js +1 -1
  167. package/lib/utils/cli-version-policy.js +1 -1
  168. package/lib/utils/logger.js +1 -1
  169. package/lib/utils/lossless-json.js +1 -1
  170. package/lib/utils/params.js +1 -1
  171. package/lib/utils/update-notice.js +1 -1
  172. package/lib/utils/version.js +1 -1
  173. package/lib/utils/write-cli-side-channel.js +1 -1
  174. package/package.json +2 -1
  175. package/skills/lovrabet/SKILL.md +4 -4
  176. package/skills/lovrabet/guides/role-and-permission-workflow.md +6 -4
  177. package/skills/lovrabet/references/lovrabet-config-commands.md +7 -11
  178. package/skills/lovrabet/references/lovrabet-config.md +2 -3
  179. package/skills/lovrabet/references/lovrabet-doctor.md +1 -1
  180. package/skills/lovrabet/references/lovrabet-kb-workflow.md +1 -1
  181. package/skills/lovrabet/references/lovrabet-notification-config-list.md +2 -8
  182. package/skills/lovrabet.manifest.json +3 -3
  183. package/lib/utils/platform.d.ts +0 -17
  184. package/lib/utils/platform.js +0 -1
@@ -1,4 +1,4 @@
1
- export declare const ROUTING_CATALOG_DIGEST: "ad100799ce7bf5b9cb94d2b350b42d3b42aa5956faea0e371c7bd8abc2b8c75b";
1
+ export declare const ROUTING_CATALOG_DIGEST: "41caa63f2eaa9f96327376df380668b835ef80916584dc754147daf394c2c513";
2
2
  export declare const DEFAULT_REGION: "cn";
3
3
  export declare const REGION_VALUES: readonly ["cn", "id", "global"];
4
4
  export declare const ENABLED_REGION_VALUES: readonly ["cn", "id"];
@@ -13,14 +13,12 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
13
13
  readonly api: "https://api.lovrabet.com";
14
14
  readonly runtime: "https://runtime.lovrabet.com";
15
15
  readonly skill: "https://skills.lovrabet.com";
16
- readonly kb: "https://runtime.lovrabet.com";
17
16
  };
18
17
  readonly daily: {
19
18
  readonly user: "https://user-daily.lovrabet.com";
20
19
  readonly api: "https://daily-api.lovrabet.com";
21
20
  readonly runtime: "https://daily-runtime.lovrabet.com";
22
21
  readonly skill: "https://skills-daily.lovrabet.com";
23
- readonly kb: "https://daily-runtime.lovrabet.com";
24
22
  };
25
23
  };
26
24
  };
@@ -34,7 +32,6 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
34
32
  readonly api: "https://api.lovrabet.id";
35
33
  readonly runtime: "https://runtime.lovrabet.id";
36
34
  readonly skill: "https://skills.lovrabet.id";
37
- readonly kb: "https://runtime.lovrabet.id";
38
35
  };
39
36
  };
40
37
  };
@@ -48,7 +45,6 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
48
45
  readonly api: "https://api.lovrabet.ai";
49
46
  readonly runtime: "https://runtime.lovrabet.ai";
50
47
  readonly skill: "https://skills.lovrabet.ai";
51
- readonly kb: "https://runtime.lovrabet.ai";
52
48
  };
53
49
  };
54
50
  };
@@ -1 +1 @@
1
- function a125_0x2603(_0xbc89dc,_0x9b180b){_0xbc89dc=_0xbc89dc-0x6e;const _0x1f3730=a125_0x1f37();let _0x260351=_0x1f3730[_0xbc89dc];return _0x260351;}const a125_0x119b6b=a125_0x2603;(function(_0x4a84aa,_0x1f51aa){const _0x353849=a125_0x2603,_0xa231e5=_0x4a84aa();while(!![]){try{const _0x4de518=parseInt(_0x353849(0x85))/0x1+parseInt(_0x353849(0x79))/0x2*(-parseInt(_0x353849(0x73))/0x3)+parseInt(_0x353849(0x7f))/0x4*(-parseInt(_0x353849(0x81))/0x5)+parseInt(_0x353849(0x7d))/0x6+-parseInt(_0x353849(0x6e))/0x7+parseInt(_0x353849(0x77))/0x8*(parseInt(_0x353849(0x87))/0x9)+-parseInt(_0x353849(0x78))/0xa;if(_0x4de518===_0x1f51aa)break;else _0xa231e5['push'](_0xa231e5['shift']());}catch(_0x52998e){_0xa231e5['push'](_0xa231e5['shift']());}}}(a125_0x1f37,0x774f7));function a125_0x1f37(){const _0x1fbf9d=['9768zbuidC','8570860aeIBbF','2BSeruN','https://user.lovrabet.com','Mainland\x20China','Indonesia','3055284vmaOrY','https://daily-runtime.lovrabet.com','537996kmrvcW','https://api.lovrabet.id','5JozkYZ','indonesia','https://skills.lovrabet.com','https://api.lovrabet.ai','745408uRMyYd','https://runtime.lovrabet.ai','4869SCGYyD','global','https://user-daily.lovrabet.com','556514aawHHT','china','https://skills.lovrabet.id','https://skills-daily.lovrabet.com','ad100799ce7bf5b9cb94d2b350b42d3b42aa5956faea0e371c7bd8abc2b8c75b','1066203pFRAjw','https://runtime.lovrabet.com','https://runtime.lovrabet.id','https://daily-api.lovrabet.com'];a125_0x1f37=function(){return _0x1fbf9d;};return a125_0x1f37();}export const ROUTING_CATALOG_DIGEST=a125_0x119b6b(0x72);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a125_0x119b6b(0x88)];export const ENABLED_REGION_VALUES=['cn','id'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a125_0x119b6b(0x7b),'aliases':[a125_0x119b6b(0x6f)],'serviceDomains':{'production':{'user':a125_0x119b6b(0x7a),'api':'https://api.lovrabet.com','runtime':a125_0x119b6b(0x74),'skill':a125_0x119b6b(0x83),'kb':a125_0x119b6b(0x74)},'daily':{'user':a125_0x119b6b(0x89),'api':a125_0x119b6b(0x76),'runtime':a125_0x119b6b(0x7e),'skill':a125_0x119b6b(0x71),'kb':a125_0x119b6b(0x7e)}}},'id':{'enabled':!![],'label':a125_0x119b6b(0x7c),'aliases':[a125_0x119b6b(0x82)],'serviceDomains':{'production':{'user':'https://user.lovrabet.id','api':a125_0x119b6b(0x80),'runtime':a125_0x119b6b(0x75),'skill':a125_0x119b6b(0x70),'kb':a125_0x119b6b(0x75)}}},'global':{'enabled':![],'label':'Global','aliases':[],'serviceDomains':{'production':{'user':'https://user.lovrabet.ai','api':a125_0x119b6b(0x84),'runtime':a125_0x119b6b(0x86),'skill':'https://skills.lovrabet.ai','kb':a125_0x119b6b(0x86)}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
1
+ const a125_0x3d6481=a125_0x5e0d;function a125_0x5e0d(_0x36f349,_0x54634d){_0x36f349=_0x36f349-0x123;const _0x2fcf5c=a125_0x2fcf();let _0x5e0d12=_0x2fcf5c[_0x36f349];return _0x5e0d12;}(function(_0x24115f,_0x14c92e){const _0x1b1042=a125_0x5e0d,_0x3dc235=_0x24115f();while(!![]){try{const _0x3e4eeb=parseInt(_0x1b1042(0x130))/0x1+-parseInt(_0x1b1042(0x127))/0x2*(parseInt(_0x1b1042(0x132))/0x3)+-parseInt(_0x1b1042(0x131))/0x4+-parseInt(_0x1b1042(0x12b))/0x5+parseInt(_0x1b1042(0x125))/0x6*(-parseInt(_0x1b1042(0x137))/0x7)+-parseInt(_0x1b1042(0x13a))/0x8*(parseInt(_0x1b1042(0x12c))/0x9)+-parseInt(_0x1b1042(0x12a))/0xa*(-parseInt(_0x1b1042(0x12d))/0xb);if(_0x3e4eeb===_0x14c92e)break;else _0x3dc235['push'](_0x3dc235['shift']());}catch(_0x23815c){_0x3dc235['push'](_0x3dc235['shift']());}}}(a125_0x2fcf,0xbc779));export const ROUTING_CATALOG_DIGEST=a125_0x3d6481(0x123);export const DEFAULT_REGION='cn';function a125_0x2fcf(){const _0x5797e2=['https://daily-runtime.lovrabet.com','indonesia','Indonesia','41caa63f2eaa9f96327376df380668b835ef80916584dc754147daf394c2c513','https://runtime.lovrabet.ai','53892UPONuf','https://skills.lovrabet.id','4954Foljww','https://user.lovrabet.ai','https://api.lovrabet.ai','52610BEaaDu','2439740bTxHVT','724527vnLszK','10175xzgftP','https://user.lovrabet.com','Global','295054wzUXIa','4035860wZEXNW','1233RgXqdg','https://runtime.lovrabet.com','Mainland\x20China','https://api.lovrabet.id','https://skills.lovrabet.ai','959dgNQDo','https://user-daily.lovrabet.com','https://skills-daily.lovrabet.com','64zOGhti','https://user.lovrabet.id'];a125_0x2fcf=function(){return _0x5797e2;};return a125_0x2fcf();}export const REGION_VALUES=['cn','id','global'];export const ENABLED_REGION_VALUES=['cn','id'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a125_0x3d6481(0x134),'aliases':['china'],'serviceDomains':{'production':{'user':a125_0x3d6481(0x12e),'api':'https://api.lovrabet.com','runtime':a125_0x3d6481(0x133),'skill':'https://skills.lovrabet.com'},'daily':{'user':a125_0x3d6481(0x138),'api':'https://daily-api.lovrabet.com','runtime':a125_0x3d6481(0x13c),'skill':a125_0x3d6481(0x139)}}},'id':{'enabled':!![],'label':a125_0x3d6481(0x13e),'aliases':[a125_0x3d6481(0x13d)],'serviceDomains':{'production':{'user':a125_0x3d6481(0x13b),'api':a125_0x3d6481(0x135),'runtime':'https://runtime.lovrabet.id','skill':a125_0x3d6481(0x126)}}},'global':{'enabled':![],'label':a125_0x3d6481(0x12f),'aliases':[],'serviceDomains':{'production':{'user':a125_0x3d6481(0x128),'api':a125_0x3d6481(0x129),'runtime':a125_0x3d6481(0x124),'skill':a125_0x3d6481(0x136)}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
@@ -1,9 +1,5 @@
1
- export declare const ENTERPRISE_ROUTING_SCHEMA_DIGEST: "0bc465ada0b5c1621a0dfd5441b91b5d7c69d95ef7417f07cc7afd3548593d8a";
1
+ export declare const ENTERPRISE_ROUTING_SCHEMA_DIGEST: "51e352a2636c432b76d331cc9ff81c215d7cbe3d1d07ab7bd7bedb7bdb91631c";
2
2
  export declare const ENTERPRISE_ROUTING_PROTOCOL: "lovrabet-routing/v1";
3
3
  export declare const ENTERPRISE_ROUTING_KIND: "enterprise";
4
- export declare const ENTERPRISE_ROUTING_TOP_LEVEL_FIELDS: readonly ["protocol", "kind", "domains", "cdn"];
5
- export declare const ENTERPRISE_ROUTING_CONSUMERS: readonly ["rabetbase-cli", "lovrabet-cli", "lovrabet-node-sdk"];
6
- export declare const ENTERPRISE_ROUTING_DOMAIN_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "appDomain", "localDomain", "certificateDomain"];
7
- export declare const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "appDomain"];
8
- export declare const ENTERPRISE_ROUTING_CDN_FIELDS: readonly ["libraries", "lovrabet"];
9
- export declare const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS: readonly ["libraries", "lovrabet"];
4
+ export declare const ENTERPRISE_ROUTING_DOMAIN_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain"];
5
+ export declare const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain"];
@@ -1 +1 @@
1
- function a126_0x31c7(_0x5cbd79,_0x316ff1){_0x5cbd79=_0x5cbd79-0x14d;const _0x18f171=a126_0x18f1();let _0x31c749=_0x18f171[_0x5cbd79];return _0x31c749;}const a126_0x3db252=a126_0x31c7;(function(_0x2bf0fd,_0x37f8da){const _0x21527c=a126_0x31c7,_0x1fd3b2=_0x2bf0fd();while(!![]){try{const _0x302123=parseInt(_0x21527c(0x155))/0x1*(parseInt(_0x21527c(0x157))/0x2)+-parseInt(_0x21527c(0x163))/0x3*(-parseInt(_0x21527c(0x154))/0x4)+-parseInt(_0x21527c(0x160))/0x5+-parseInt(_0x21527c(0x15e))/0x6+parseInt(_0x21527c(0x14f))/0x7*(parseInt(_0x21527c(0x167))/0x8)+-parseInt(_0x21527c(0x15c))/0x9+-parseInt(_0x21527c(0x159))/0xa;if(_0x302123===_0x37f8da)break;else _0x1fd3b2['push'](_0x1fd3b2['shift']());}catch(_0x56acbe){_0x1fd3b2['push'](_0x1fd3b2['shift']());}}}(a126_0x18f1,0x9356c));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a126_0x3db252(0x15a);export const ENTERPRISE_ROUTING_PROTOCOL=a126_0x3db252(0x15b);export const ENTERPRISE_ROUTING_KIND=a126_0x3db252(0x151);export const ENTERPRISE_ROUTING_TOP_LEVEL_FIELDS=[a126_0x3db252(0x166),a126_0x3db252(0x15f),a126_0x3db252(0x158),a126_0x3db252(0x161)];export const ENTERPRISE_ROUTING_CONSUMERS=[a126_0x3db252(0x164),a126_0x3db252(0x15d),'lovrabet-node-sdk'];export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain',a126_0x3db252(0x152),a126_0x3db252(0x150),a126_0x3db252(0x153),a126_0x3db252(0x156),a126_0x3db252(0x162),'localDomain',a126_0x3db252(0x14e)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a126_0x3db252(0x165),'apiDomain','runtimeDomain',a126_0x3db252(0x153),a126_0x3db252(0x156),a126_0x3db252(0x162)];export const ENTERPRISE_ROUTING_CDN_FIELDS=['libraries',a126_0x3db252(0x14d)];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=['libraries',a126_0x3db252(0x14d)];function a126_0x18f1(){const _0x44c3bc=['lovrabet','certificateDomain','36645njBtvO','runtimeDomain','enterprise','apiDomain','skillDomain','71524rxbszg','5yRtsJs','kbDomain','353490rvHueI','domains','3935780CietsD','0bc465ada0b5c1621a0dfd5441b91b5d7c69d95ef7417f07cc7afd3548593d8a','lovrabet-routing/v1','1291842hRjcWM','lovrabet-cli','6314334JAfTVs','kind','338100AUeHBS','cdn','appDomain','195Ffuhkt','rabetbase-cli','userDomain','protocol','328swNGmL'];a126_0x18f1=function(){return _0x44c3bc;};return a126_0x18f1();}
1
+ const a126_0x125e28=a126_0x68f8;(function(_0x37d878,_0x452279){const _0x54323f=a126_0x68f8,_0x278d64=_0x37d878();while(!![]){try{const _0x4f7d67=-parseInt(_0x54323f(0x11e))/0x1+-parseInt(_0x54323f(0x11c))/0x2+parseInt(_0x54323f(0x123))/0x3+-parseInt(_0x54323f(0x11b))/0x4*(-parseInt(_0x54323f(0x124))/0x5)+-parseInt(_0x54323f(0x11f))/0x6*(parseInt(_0x54323f(0x127))/0x7)+-parseInt(_0x54323f(0x120))/0x8+parseInt(_0x54323f(0x11d))/0x9*(parseInt(_0x54323f(0x126))/0xa);if(_0x4f7d67===_0x452279)break;else _0x278d64['push'](_0x278d64['shift']());}catch(_0x2c1064){_0x278d64['push'](_0x278d64['shift']());}}}(a126_0x38e5,0x4298e));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a126_0x125e28(0x119);export const ENTERPRISE_ROUTING_PROTOCOL=a126_0x125e28(0x122);export const ENTERPRISE_ROUTING_KIND=a126_0x125e28(0x121);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain',a126_0x125e28(0x128),a126_0x125e28(0x11a),a126_0x125e28(0x125)];function a126_0x68f8(_0xa1dfa2,_0x39c8cb){_0xa1dfa2=_0xa1dfa2-0x119;const _0x38e55c=a126_0x38e5();let _0x68f879=_0x38e55c[_0xa1dfa2];return _0x68f879;}function a126_0x38e5(){const _0x4438e2=['35AXCJyn','apiDomain','51e352a2636c432b76d331cc9ff81c215d7cbe3d1d07ab7bd7bedb7bdb91631c','runtimeDomain','996vgisMN','349440CVMYTY','9MBdDIs','310507zvqEKU','497490kOgGdY','1956616VXtPvP','enterprise','lovrabet-routing/v1','1040238FcciDN','2020lkIuLb','skillDomain','9698190gEEFmG'];a126_0x38e5=function(){return _0x4438e2;};return a126_0x38e5();}export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain',a126_0x125e28(0x128),a126_0x125e28(0x11a),'skillDomain'];
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x180f7d,_0x532797){const _0x3f7f59=a127_0x3b9c,_0x821acb=_0x180f7d();while(!![]){try{const _0x2e1d2e=parseInt(_0x3f7f59(0x1b6))/0x1+parseInt(_0x3f7f59(0x1bb))/0x2*(parseInt(_0x3f7f59(0x1b9))/0x3)+parseInt(_0x3f7f59(0x1bf))/0x4*(-parseInt(_0x3f7f59(0x1b8))/0x5)+parseInt(_0x3f7f59(0x1bc))/0x6*(-parseInt(_0x3f7f59(0x1c1))/0x7)+parseInt(_0x3f7f59(0x1bd))/0x8+parseInt(_0x3f7f59(0x1b7))/0x9*(-parseInt(_0x3f7f59(0x1be))/0xa)+-parseInt(_0x3f7f59(0x1ba))/0xb;if(_0x2e1d2e===_0x532797)break;else _0x821acb['push'](_0x821acb['shift']());}catch(_0x48ce17){_0x821acb['push'](_0x821acb['shift']());}}}(a127_0x2d52,0x9008e));import{jsx as a127_0x4f5889,jsxs as a127_0x35a923}from'react/jsx-runtime';import{useEffect}from'react';function a127_0x2d52(){const _0x37def9=['597047LDsrgE','228626ikYafD','150ZfGCFd','706376vLzNzv','20pcWdIr','167084OxWpSl','green','203119SPiRjC','column','\x20\x20Use\x20','704287noYYGt','1043451LuDnJQ','40UxOAXs','30jjnbtJ'];a127_0x2d52=function(){return _0x37def9;};return a127_0x2d52();}function a127_0x3b9c(_0x343bfb,_0x72118e){_0x343bfb=_0x343bfb-0x1b6;const _0x2d52dd=a127_0x2d52();let _0x3b9c4d=_0x2d52dd[_0x343bfb];return _0x3b9c4d;}import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x1f949c=a127_0x3b9c,{exit:_0x408ecd}=useApp();return useEffect(()=>{_0x408ecd();},[_0x408ecd]),a127_0x35a923(Box,{'flexDirection':_0x1f949c(0x1c2),'marginTop':0x1,'marginBottom':0x1,'children':[a127_0x4f5889(Box,{'children':a127_0x4f5889(Text,{'bold':!![],'color':_0x1f949c(0x1c0),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a127_0x35a923(Box,{'marginTop':0x1,'children':[a127_0x4f5889(Text,{'dimColor':!![],'children':_0x1f949c(0x1c3)}),a127_0x4f5889(Text,{'bold':!![],'color':_0x1f949c(0x1c0),'children':CLI_BIN_NAME+'\x20--help'}),a127_0x4f5889(Text,{'dimColor':!![],'children':'\x20to\x20view\x20available\x20commands.'})]})]});}
1
+ (function(_0x4a3a15,_0xac8de1){const _0x1180d7=a127_0x193e,_0x326b83=_0x4a3a15();while(!![]){try{const _0x32a739=-parseInt(_0x1180d7(0x17a))/0x1+parseInt(_0x1180d7(0x17c))/0x2+parseInt(_0x1180d7(0x173))/0x3*(-parseInt(_0x1180d7(0x179))/0x4)+parseInt(_0x1180d7(0x174))/0x5*(-parseInt(_0x1180d7(0x178))/0x6)+-parseInt(_0x1180d7(0x177))/0x7+parseInt(_0x1180d7(0x17b))/0x8+-parseInt(_0x1180d7(0x175))/0x9*(-parseInt(_0x1180d7(0x172))/0xa);if(_0x32a739===_0xac8de1)break;else _0x326b83['push'](_0x326b83['shift']());}catch(_0x5e15e0){_0x326b83['push'](_0x326b83['shift']());}}}(a127_0x2fe3,0xc0cb9));import{jsx as a127_0x1917fd,jsxs as a127_0x593da0}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';function a127_0x2fe3(){const _0x4f3a1b=['6CqZLLr','4dgDEUF','179471azTBkd','3047568wYWVWg','338286QHzixf','green','\x20--help','\x20to\x20view\x20available\x20commands.','3088130fcDcXg','2936589tKELjQ','705785StZWvN','72MJBdZv','\x20\x20Use\x20','6519891mZdPpT'];a127_0x2fe3=function(){return _0x4f3a1b;};return a127_0x2fe3();}function a127_0x193e(_0x3084f9,_0x45bf0c){_0x3084f9=_0x3084f9-0x171;const _0x2fe39d=a127_0x2fe3();let _0x193e10=_0x2fe39d[_0x3084f9];return _0x193e10;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x326257=a127_0x193e,{exit:_0x5c70e2}=useApp();return useEffect(()=>{_0x5c70e2();},[_0x5c70e2]),a127_0x593da0(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a127_0x1917fd(Box,{'children':a127_0x1917fd(Text,{'bold':!![],'color':_0x326257(0x17d),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a127_0x593da0(Box,{'marginTop':0x1,'children':[a127_0x1917fd(Text,{'dimColor':!![],'children':_0x326257(0x176)}),a127_0x1917fd(Text,{'bold':!![],'color':_0x326257(0x17d),'children':CLI_BIN_NAME+_0x326257(0x17e)}),a127_0x1917fd(Text,{'dimColor':!![],'children':_0x326257(0x171)})]})]});}
@@ -1 +1 @@
1
- function a128_0x4f35(){const _0x4052a5=['skillVersion','Installation\x20failed','FAILED','Lovrabet\x20Built-in\x20Skill\x20','9OtfeXs','code','installedPath','log','1958698fXrPbA','\x20at\x20','4195EBIPSS','651432MHzTmL','50CExgvX','24390ohyUzI','331864SRlWkU','1744GtfVPG','Repair\x20with:\x20','\x20via\x20skills@latest','error','SOURCE_INVALID','warn','10coKmVx','[BUILTIN_SKILL_INSTALL_','already\x20current','installed','184008SEPpPb','repairCommand','1404799SpdptC'];a128_0x4f35=function(){return _0x4052a5;};return a128_0x4f35();}(function(_0xf208e4,_0x2bda4e){const _0x496d20=a128_0x59f6,_0x4f2ee2=_0xf208e4();while(!![]){try{const _0x1f12d9=-parseInt(_0x496d20(0x168))/0x1+parseInt(_0x496d20(0x166))/0x2*(parseInt(_0x496d20(0x167))/0x3)+-parseInt(_0x496d20(0x169))/0x4*(-parseInt(_0x496d20(0x164))/0x5)+parseInt(_0x496d20(0x165))/0x6+-parseInt(_0x496d20(0x162))/0x7+-parseInt(_0x496d20(0x157))/0x8*(-parseInt(_0x496d20(0x15e))/0x9)+parseInt(_0x496d20(0x153))/0xa*(parseInt(_0x496d20(0x159))/0xb);if(_0x1f12d9===_0x2bda4e)break;else _0x4f2ee2['push'](_0x4f2ee2['shift']());}catch(_0x14259c){_0x4f2ee2['push'](_0x4f2ee2['shift']());}}}(a128_0x4f35,0x34e52));function a128_0x59f6(_0x1991b5,_0x3d38bc){_0x1991b5=_0x1991b5-0x153;const _0x4f3576=a128_0x4f35();let _0x59f6cb=_0x4f3576[_0x1991b5];return _0x59f6cb;}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x22fb81={}){const _0x5eddf6=a128_0x59f6,_0x9b7ec3=installBuiltinSkill(_0x22fb81);if(_0x9b7ec3['ok']){const _0x1442ba=_0x9b7ec3['changed']?_0x5eddf6(0x156):_0x5eddf6(0x155),_0x59ee95=_0x9b7ec3[_0x5eddf6(0x160)]?_0x5eddf6(0x163)+_0x9b7ec3['installedPath']:_0x5eddf6(0x16b);return console[_0x5eddf6(0x161)](_0x5eddf6(0x15d)+_0x9b7ec3[_0x5eddf6(0x15a)]+'\x20'+_0x1442ba+_0x59ee95),_0x9b7ec3;}const _0x4e7e5e=_0x5eddf6(0x154)+(_0x9b7ec3[_0x5eddf6(0x15f)]??_0x5eddf6(0x15c))+']\x20'+(_0x9b7ec3[_0x5eddf6(0x16c)]??_0x5eddf6(0x15b))+'.\x20'+(_0x5eddf6(0x16a)+_0x9b7ec3[_0x5eddf6(0x158)]);if(_0x9b7ec3[_0x5eddf6(0x15f)]===_0x5eddf6(0x16d))throw new Error(_0x4e7e5e);return console[_0x5eddf6(0x16e)](_0x4e7e5e),_0x9b7ec3;}
1
+ function a128_0x1cb9(_0x320068,_0x7486f6){_0x320068=_0x320068-0x175;const _0x105c1e=a128_0x105c();let _0x1cb93f=_0x105c1e[_0x320068];return _0x1cb93f;}(function(_0x3736ad,_0x58be7c){const _0x5b9ce7=a128_0x1cb9,_0x33c1ba=_0x3736ad();while(!![]){try{const _0x4d7a46=-parseInt(_0x5b9ce7(0x184))/0x1+parseInt(_0x5b9ce7(0x17a))/0x2+parseInt(_0x5b9ce7(0x17b))/0x3*(-parseInt(_0x5b9ce7(0x186))/0x4)+parseInt(_0x5b9ce7(0x17f))/0x5+-parseInt(_0x5b9ce7(0x17d))/0x6+parseInt(_0x5b9ce7(0x181))/0x7+-parseInt(_0x5b9ce7(0x178))/0x8;if(_0x4d7a46===_0x58be7c)break;else _0x33c1ba['push'](_0x33c1ba['shift']());}catch(_0x597a1e){_0x33c1ba['push'](_0x33c1ba['shift']());}}}(a128_0x105c,0xc1029));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a128_0x105c(){const _0x1a5439=['log','2847536jKYuvk','3eoSJaL','Installation\x20failed','3811338KQwiLk','[BUILTIN_SKILL_INSTALL_','6333470YvdQZD','changed','4979051VMNiTH','FAILED','Repair\x20with:\x20','772157egcLHI','installedPath','2269892SJKZoK','\x20at\x20','code','warn','already\x20current','installed','5090664CBKvlI'];a128_0x105c=function(){return _0x1a5439;};return a128_0x105c();}export async function runPostinstall(_0x23674a={}){const _0x41f673=a128_0x1cb9,_0x422ff1=installBuiltinSkill(_0x23674a);if(_0x422ff1['ok']){const _0x5db3ff=_0x422ff1[_0x41f673(0x180)]?_0x41f673(0x177):_0x41f673(0x176),_0x51eb36=_0x422ff1[_0x41f673(0x185)]?_0x41f673(0x187)+_0x422ff1['installedPath']:'\x20via\x20skills@latest';return console[_0x41f673(0x179)]('Lovrabet\x20Built-in\x20Skill\x20'+_0x422ff1['skillVersion']+'\x20'+_0x5db3ff+_0x51eb36),_0x422ff1;}const _0xc1ae59=_0x41f673(0x17e)+(_0x422ff1[_0x41f673(0x188)]??_0x41f673(0x182))+']\x20'+(_0x422ff1['error']??_0x41f673(0x17c))+'.\x20'+(_0x41f673(0x183)+_0x422ff1['repairCommand']);if(_0x422ff1['code']==='SOURCE_INVALID')throw new Error(_0xc1ae59);return console[_0x41f673(0x175)](_0xc1ae59),_0x422ff1;}
@@ -1 +1 @@
1
- (function(_0xeb523e,_0x1026c0){const _0x1c455f=a129_0x9ede,_0x306622=_0xeb523e();while(!![]){try{const _0x23673f=parseInt(_0x1c455f(0x19f))/0x1+-parseInt(_0x1c455f(0x1a9))/0x2+parseInt(_0x1c455f(0x19a))/0x3*(parseInt(_0x1c455f(0x196))/0x4)+parseInt(_0x1c455f(0x1a2))/0x5*(-parseInt(_0x1c455f(0x197))/0x6)+parseInt(_0x1c455f(0x1aa))/0x7*(parseInt(_0x1c455f(0x1a1))/0x8)+parseInt(_0x1c455f(0x1a0))/0x9+-parseInt(_0x1c455f(0x1a7))/0xa*(-parseInt(_0x1c455f(0x1a3))/0xb);if(_0x23673f===_0x1026c0)break;else _0x306622['push'](_0x306622['shift']());}catch(_0x1c039e){_0x306622['push'](_0x306622['shift']());}}}(a129_0x6898,0x4b8bd));const DESCRIPTION_MAX_LENGTH=0x1f4;function a129_0x9ede(_0x130b4a,_0x5cef1a){_0x130b4a=_0x130b4a-0x195;const _0x689876=a129_0x6898();let _0x9ede8e=_0x689876[_0x130b4a];return _0x9ede8e;}function a129_0x6898(){const _0x53be4b=['high-risk-write','1479351JrjOYr','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','slice','string','description','70240YdDOsw','614619JDVKSC','252376KUIULt','5JKeiTM','207779XzRXHN','risk','replace','write','130MKnZeD','Run\x20this\x20write\x20operation','1181896yOZoaA','21IGlrqA','trim','4TJdadN','428766GqqVFq','confirmationDescription'];a129_0x6898=function(){return _0x53be4b;};return a129_0x6898();}export function buildLovrabetConfirmationRequest(_0x2b2aa3,_0x538531,_0x1a4ef1){const _0x4a08e0=a129_0x9ede,_0x16df7c=normalizeText(_0x2b2aa3[_0x4a08e0(0x198)],DESCRIPTION_MAX_LENGTH),_0x2a7545=normalizeText(_0x2b2aa3[_0x4a08e0(0x19e)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x538531,'risk':requireWriteRisk(_0x2b2aa3),'description':_0x16df7c||_0x2a7545||_0x4a08e0(0x1a8),..._0x1a4ef1?{'signal':_0x1a4ef1}:{}};}function requireWriteRisk(_0x48ecaf){const _0xf3cbe1=a129_0x9ede;if(_0x48ecaf['risk']===_0xf3cbe1(0x1a6)||_0x48ecaf['risk']===_0xf3cbe1(0x199))return _0x48ecaf[_0xf3cbe1(0x1a4)];throw new Error(_0xf3cbe1(0x19b));}function normalizeText(_0x408464,_0x1eec8f){const _0x216df0=a129_0x9ede;if(typeof _0x408464!==_0x216df0(0x19d))return'';return _0x408464[_0x216df0(0x1a5)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x216df0(0x1a5)](/\s+/g,'\x20')[_0x216df0(0x195)]()[_0x216df0(0x19c)](0x0,_0x1eec8f);}
1
+ (function(_0x582146,_0x37164f){const _0x180c2e=a129_0x5b2e,_0x4f07e2=_0x582146();while(!![]){try{const _0xee94c9=parseInt(_0x180c2e(0x15b))/0x1*(-parseInt(_0x180c2e(0x15d))/0x2)+parseInt(_0x180c2e(0x15a))/0x3+parseInt(_0x180c2e(0x168))/0x4*(parseInt(_0x180c2e(0x15c))/0x5)+parseInt(_0x180c2e(0x157))/0x6*(-parseInt(_0x180c2e(0x15f))/0x7)+-parseInt(_0x180c2e(0x169))/0x8*(parseInt(_0x180c2e(0x166))/0x9)+-parseInt(_0x180c2e(0x167))/0xa+parseInt(_0x180c2e(0x16a))/0xb;if(_0xee94c9===_0x37164f)break;else _0x4f07e2['push'](_0x4f07e2['shift']());}catch(_0x48011b){_0x4f07e2['push'](_0x4f07e2['shift']());}}}(a129_0x402d,0xa7c09));function a129_0x402d(){const _0x156ad7=['14836efovSR','8sQhmxv','8692992qBKCGv','string','2124FPdvbs','slice','write','3075237KoQTaW','1lKQMsR','1835PrlyWL','87914ZOgpUZ','replace','13258ZEBTsx','trim','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','Run\x20this\x20write\x20operation','risk','high-risk-write','description','7502697vNEooS','9413750UcjGUt'];a129_0x402d=function(){return _0x156ad7;};return a129_0x402d();}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0xd1e834,_0x55991d,_0x34f643){const _0x4d00db=a129_0x5b2e,_0x43f2fe=normalizeText(_0xd1e834['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x365648=normalizeText(_0xd1e834[_0x4d00db(0x165)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x55991d,'risk':requireWriteRisk(_0xd1e834),'description':_0x43f2fe||_0x365648||_0x4d00db(0x162),..._0x34f643?{'signal':_0x34f643}:{}};}function a129_0x5b2e(_0x54c127,_0x2c4e7e){_0x54c127=_0x54c127-0x156;const _0x402de4=a129_0x402d();let _0x5b2e50=_0x402de4[_0x54c127];return _0x5b2e50;}function requireWriteRisk(_0x689067){const _0x103f54=a129_0x5b2e;if(_0x689067[_0x103f54(0x163)]===_0x103f54(0x159)||_0x689067['risk']===_0x103f54(0x164))return _0x689067[_0x103f54(0x163)];throw new Error(_0x103f54(0x161));}function normalizeText(_0x87dc98,_0x34d3a0){const _0x2df538=a129_0x5b2e;if(typeof _0x87dc98!==_0x2df538(0x156))return'';return _0x87dc98['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x2df538(0x15e)](/\s+/g,'\x20')[_0x2df538(0x160)]()[_0x2df538(0x158)](0x0,_0x34d3a0);}
@@ -1 +1 @@
1
- function a130_0x3676(_0x2c4835,_0x3985d3){_0x2c4835=_0x2c4835-0x6a;const _0xe6d44b=a130_0xe6d4();let _0x367656=_0xe6d44b[_0x2c4835];return _0x367656;}(function(_0x1c12d7,_0x340ecf){const _0x4a84ef=a130_0x3676,_0x552d05=_0x1c12d7();while(!![]){try{const _0x26382c=parseInt(_0x4a84ef(0x6e))/0x1+-parseInt(_0x4a84ef(0x76))/0x2+parseInt(_0x4a84ef(0x75))/0x3*(parseInt(_0x4a84ef(0x72))/0x4)+parseInt(_0x4a84ef(0x74))/0x5*(-parseInt(_0x4a84ef(0x79))/0x6)+-parseInt(_0x4a84ef(0x70))/0x7*(parseInt(_0x4a84ef(0x6f))/0x8)+-parseInt(_0x4a84ef(0x7a))/0x9+parseInt(_0x4a84ef(0x7b))/0xa;if(_0x26382c===_0x340ecf)break;else _0x552d05['push'](_0x552d05['shift']());}catch(_0x4de240){_0x552d05['push'](_0x552d05['shift']());}}}(a130_0xe6d4,0xc44ab));export function canonicalLovrabetOperation(_0x547fb4){const _0x27e267=a130_0x3676;return[_0x547fb4[_0x27e267(0x73)],..._0x547fb4[_0x27e267(0x6a)][_0x27e267(0x6d)]()['split'](/\s+/)]['filter'](Boolean)['join']('.');}export function createLovrabetWriteMetadata(_0x135910,_0x4c36df,_0x2b107f,_0x31193d){const _0x4f8e45=a130_0x3676;if(_0x31193d||_0x2b107f['ok']!==!![]||_0x135910[_0x4f8e45(0x78)]!==_0x4f8e45(0x6c)&&_0x135910['risk']!==_0x4f8e45(0x6b))return undefined;const _0xaebfbd=_0x135910[_0x4f8e45(0x71)]?.(_0x2b107f),_0x9e5966={'type':_0x4f8e45(0x77),'operation':_0x4c36df,'risk':_0x135910[_0x4f8e45(0x78)],..._0xaebfbd?{'subject':_0xaebfbd}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x9e5966}};}function a130_0xe6d4(){const _0x178dd7=['service','5fnmGpd','3MbIdTf','2167742ljZeoD','lovrabet.write.completed','risk','278796UOjYVs','3727629BrpxTQ','23180300VhurYj','command','high-risk-write','write','trim','24586pIfhLv','16CldpUu','968674fchWgN','writeEventSubject','1130708ctESwK'];a130_0xe6d4=function(){return _0x178dd7;};return a130_0xe6d4();}
1
+ function a130_0x2779(_0x18862a,_0x40aac6){_0x18862a=_0x18862a-0x14b;const _0x5aa89b=a130_0x5aa8();let _0x27790e=_0x5aa89b[_0x18862a];return _0x27790e;}function a130_0x5aa8(){const _0x5a3148=['22VSDwBX','2221668xQmRqe','1633434QBZwIm','risk','write','24OErYEm','1179abBtWQ','2Lwbwtt','62380XqhpAy','406164NFgDCa','29155VzrkoH','split','lovrabet.write.completed','34340NeMsXG','5107sQxDgE','writeEventSubject','filter','56aNgQAc','trim'];a130_0x5aa8=function(){return _0x5a3148;};return a130_0x5aa8();}(function(_0x260542,_0x239cc0){const _0x1fe0fb=a130_0x2779,_0x2364e2=_0x260542();while(!![]){try{const _0xe55c86=parseInt(_0x1fe0fb(0x152))/0x1*(parseInt(_0x1fe0fb(0x14b))/0x2)+-parseInt(_0x1fe0fb(0x159))/0x3+parseInt(_0x1fe0fb(0x14d))/0x4+-parseInt(_0x1fe0fb(0x14c))/0x5*(parseInt(_0x1fe0fb(0x15c))/0x6)+parseInt(_0x1fe0fb(0x14e))/0x7*(-parseInt(_0x1fe0fb(0x155))/0x8)+-parseInt(_0x1fe0fb(0x15d))/0x9*(-parseInt(_0x1fe0fb(0x151))/0xa)+parseInt(_0x1fe0fb(0x157))/0xb*(parseInt(_0x1fe0fb(0x158))/0xc);if(_0xe55c86===_0x239cc0)break;else _0x2364e2['push'](_0x2364e2['shift']());}catch(_0x321ce6){_0x2364e2['push'](_0x2364e2['shift']());}}}(a130_0x5aa8,0x4a08b));export function canonicalLovrabetOperation(_0x27240b){const _0x2b304c=a130_0x2779;return[_0x27240b['service'],..._0x27240b['command'][_0x2b304c(0x156)]()[_0x2b304c(0x14f)](/\s+/)][_0x2b304c(0x154)](Boolean)['join']('.');}export function createLovrabetWriteMetadata(_0x1b87f9,_0x47024c,_0x4b7be0,_0x4cafa5){const _0xfd4e58=a130_0x2779;if(_0x4cafa5||_0x4b7be0['ok']!==!![]||_0x1b87f9['risk']!==_0xfd4e58(0x15b)&&_0x1b87f9[_0xfd4e58(0x15a)]!=='high-risk-write')return undefined;const _0x14ff10=_0x1b87f9[_0xfd4e58(0x153)]?.(_0x4b7be0),_0x231365={'type':_0xfd4e58(0x150),'operation':_0x47024c,'risk':_0x1b87f9[_0xfd4e58(0x15a)],..._0x14ff10?{'subject':_0x14ff10}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x231365}};}
@@ -1 +1 @@
1
- (function(_0x3d7c9f,_0x315f4a){const _0x2158d4=a131_0x44e3,_0x48510d=_0x3d7c9f();while(!![]){try{const _0x4b2ad3=parseInt(_0x2158d4(0x87))/0x1*(parseInt(_0x2158d4(0x78))/0x2)+parseInt(_0x2158d4(0x6d))/0x3+parseInt(_0x2158d4(0x68))/0x4+-parseInt(_0x2158d4(0x8e))/0x5*(-parseInt(_0x2158d4(0x84))/0x6)+-parseInt(_0x2158d4(0x82))/0x7*(parseInt(_0x2158d4(0x6f))/0x8)+parseInt(_0x2158d4(0x7e))/0x9+-parseInt(_0x2158d4(0x7b))/0xa*(parseInt(_0x2158d4(0x8d))/0xb);if(_0x4b2ad3===_0x315f4a)break;else _0x48510d['push'](_0x48510d['shift']());}catch(_0x49ba21){_0x48510d['push'](_0x48510d['shift']());}}}(a131_0x35d6,0x4be01));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_0x35d6(){const _0x20aae0=['isNonInteractive','risk','1628262QxVtiU','args','dry-run','yes','13461NuSQim','presentation','8178xxbpDP','format','confirmation','363889eHoLsk','present','AbortError','high-risk-write','reason','dryRun','8390657CJMWSZ','245MmzmSt','125116QZgmVQ','confirm','signal','message','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','1395939iASlYU','rawFlags','144IQFYsj','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','definition','result','riskLevel','write','command','Lovrabet\x20invocation\x20aborted.','aborted','2vqrLrz','stringify','execute','10TslbYE'];a131_0x35d6=function(){return _0x20aae0;};return a131_0x35d6();}import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x5f9fee,command:_0x11b14b,risk:_0x5cf415,dryRun:_0x3573d9}){const _0x2883b0=a131_0x44e3;return JSON[_0x2883b0(0x79)]({'ok':_0x5f9fee['ok'],'command':_0x11b14b,'risk':_0x5cf415,..._0x3573d9?{'dryRun':!![]}:{},..._0x5f9fee['data']!==undefined?{'data':_0x5f9fee['data']}:{},..._0x5f9fee['message']?{'message':_0x5f9fee[_0x2883b0(0x6b)]}:{}});}};export async function invokeLovrabet(_0x18a987,_0x2105d2){const _0x4a0695=a131_0x44e3;throwIfAborted(_0x2105d2[_0x4a0695(0x6a)]);const _0x3c0d7f=await resolveLovrabetInvocation(_0x18a987),_0x10f029=canonicalLovrabetOperation(_0x3c0d7f[_0x4a0695(0x71)]);return await confirmWriteBeforeQueue(_0x3c0d7f['definition'],_0x3c0d7f[_0x4a0695(0x6e)],_0x10f029,_0x2105d2),runSerialized(async()=>{const _0x26df34=_0x4a0695;throwIfAborted(_0x2105d2[_0x26df34(0x6a)]);const _0x51894c={},_0x4dd627=buildConfigFromFlags(_0x3c0d7f[_0x26df34(0x6e)]);await initGlobalEnvironment(_0x4dd627);const _0x39c58f=createPipelineEnv(_0x4dd627,{..._0x3c0d7f['rawFlags'],'yes':_0x3c0d7f[_0x26df34(0x71)]['risk']===_0x26df34(0x8a)?!![]:_0x3c0d7f[_0x26df34(0x6e)][_0x26df34(0x81)],'nonInteractive':!![]});_0x39c58f[_0x26df34(0x7f)]=_0x3c0d7f['args'],_0x39c58f[_0x26df34(0x7c)]=!![],_0x39c58f[_0x26df34(0x73)]=_0x26df34(0x8a);const _0xd37a3=withAbortSignal(_0x3c0d7f[_0x26df34(0x71)],_0x2105d2['signal']),_0x1369de=createLovrabetRunnerAdapter({'formatOutput'(_0x286d31,_0x2cf311){const _0x3f2778=_0x26df34;_0x51894c[_0x3f2778(0x72)]=_0x286d31,_0x51894c[_0x3f2778(0x75)]=_0x2cf311[_0x3f2778(0x75)],_0x51894c['risk']=_0x2cf311[_0x3f2778(0x7d)],_0x51894c[_0x3f2778(0x85)]=_0x2cf311[_0x3f2778(0x85)],_0x51894c[_0x3f2778(0x8c)]=_0x2cf311[_0x3f2778(0x8c)]===!![];},async 'confirmHighRisk'(){const _0x4da72a=_0x26df34;throw new Error(_0x4da72a(0x70));}});try{await runCommand(_0xd37a3,_0x39c58f,_0x1369de);if(!_0x51894c[_0x26df34(0x72)]||!_0x51894c[_0x26df34(0x75)]||!_0x51894c[_0x26df34(0x7d)]||!_0x51894c[_0x26df34(0x85)])throw new Error(_0x26df34(0x6c));const _0x5ba899=_0x2105d2[_0x26df34(0x83)]??defaultPresentation,_0x2a3372=_0x51894c[_0x26df34(0x8c)]===!![],_0x3b8d91={'result':_0x51894c[_0x26df34(0x72)],'command':_0x51894c['command'],'operation':_0x10f029,'risk':_0x51894c[_0x26df34(0x7d)],'format':_0x51894c[_0x26df34(0x85)],'dryRun':_0x2a3372},_0x253490=createLovrabetWriteMetadata(_0x3c0d7f[_0x26df34(0x71)],_0x10f029,_0x51894c[_0x26df34(0x72)],_0x2a3372);let _0x2981bf;try{_0x2981bf=await _0x5ba899['present'](_0x3b8d91);}catch(_0x333a50){if(!_0x253490||_0x5ba899===defaultPresentation)throw _0x333a50;_0x2981bf=await defaultPresentation[_0x26df34(0x88)](_0x3b8d91);}return{'operation':_0x10f029,'risk':_0x51894c[_0x26df34(0x7d)],'mode':_0x2a3372?_0x26df34(0x80):_0x26df34(0x7a),'result':_0x51894c['result'],'output':_0x2981bf,..._0x253490?{'metadata':_0x253490}:{}};}finally{await finalizeLovrabetRuntimeState();}});}function a131_0x44e3(_0x4d6872,_0x17d1af){_0x4d6872=_0x4d6872-0x68;const _0x35d6e1=a131_0x35d6();let _0x44e3cd=_0x35d6e1[_0x4d6872];return _0x44e3cd;}async function confirmWriteBeforeQueue(_0x5962db,_0x21e293,_0x1c0e2c,_0x26f69b){const _0x1dbd42=a131_0x44e3;if(_0x21e293[_0x1dbd42(0x8c)]===!![]||_0x5962db['risk']!==_0x1dbd42(0x74)&&_0x5962db[_0x1dbd42(0x7d)]!==_0x1dbd42(0x8a))return;await _0x26f69b[_0x1dbd42(0x86)][_0x1dbd42(0x69)](buildLovrabetConfirmationRequest(_0x5962db,_0x1c0e2c,_0x26f69b[_0x1dbd42(0x6a)]));}function withAbortSignal(_0x37b6ce,_0x5a17fc){return{..._0x37b6ce,async 'execute'(_0x163015){const _0xfd4ef5=a131_0x44e3;return throwIfAborted(_0x5a17fc),_0x37b6ce[_0xfd4ef5(0x7a)]({..._0x163015,'signal':_0x5a17fc});}};}function throwIfAborted(_0x14c0d7){const _0x5806c0=a131_0x44e3;if(_0x14c0d7?.[_0x5806c0(0x77)])throw _0x14c0d7['reason']instanceof Error?_0x14c0d7[_0x5806c0(0x8b)]:new DOMException(_0x5806c0(0x76),_0x5806c0(0x89));}
1
+ (function(_0x4c0dce,_0x10fbea){const _0x49fd17=a131_0x5261,_0x57073e=_0x4c0dce();while(!![]){try{const _0x4909fd=-parseInt(_0x49fd17(0x139))/0x1*(parseInt(_0x49fd17(0x13d))/0x2)+-parseInt(_0x49fd17(0x140))/0x3+parseInt(_0x49fd17(0x12f))/0x4+parseInt(_0x49fd17(0x148))/0x5*(-parseInt(_0x49fd17(0x135))/0x6)+parseInt(_0x49fd17(0x134))/0x7*(parseInt(_0x49fd17(0x13b))/0x8)+-parseInt(_0x49fd17(0x133))/0x9*(-parseInt(_0x49fd17(0x12c))/0xa)+parseInt(_0x49fd17(0x13a))/0xb;if(_0x4909fd===_0x10fbea)break;else _0x57073e['push'](_0x57073e['shift']());}catch(_0x422cf5){_0x57073e['push'](_0x57073e['shift']());}}}(a131_0x3de6,0xa2403));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_0x3de6(){const _0x298d8a=['write','confirm','high-risk-write','rawFlags','args','5WIgaDx','definition','AbortError','message','reason','aborted','risk','dry-run','1484970HpoROu','result','format','2433648kmqoMc','confirmation','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','dryRun','9JfBhtZ','7WxNWZH','6131868rHgjgB','Lovrabet\x20invocation\x20aborted.','stringify','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','1616zRVqnu','17011940OiKcxh','7816808voHEGL','command','538nWgCcL','present','execute','3477867NZnzcy','data','signal'];a131_0x3de6=function(){return _0x298d8a;};return a131_0x3de6();}import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x5894fc,command:_0x10504d,risk:_0x358c65,dryRun:_0x2fe4bf}){const _0x455e9b=a131_0x5261;return JSON[_0x455e9b(0x137)]({'ok':_0x5894fc['ok'],'command':_0x10504d,'risk':_0x358c65,..._0x2fe4bf?{'dryRun':!![]}:{},..._0x5894fc[_0x455e9b(0x141)]!==undefined?{'data':_0x5894fc[_0x455e9b(0x141)]}:{},..._0x5894fc[_0x455e9b(0x14b)]?{'message':_0x5894fc[_0x455e9b(0x14b)]}:{}});}};export async function invokeLovrabet(_0x55f366,_0x384510){const _0x4f4496=a131_0x5261;throwIfAborted(_0x384510['signal']);const _0x12a491=await resolveLovrabetInvocation(_0x55f366),_0x10d382=canonicalLovrabetOperation(_0x12a491[_0x4f4496(0x149)]);return await confirmWriteBeforeQueue(_0x12a491[_0x4f4496(0x149)],_0x12a491[_0x4f4496(0x146)],_0x10d382,_0x384510),runSerialized(async()=>{const _0x9dfd63=_0x4f4496;throwIfAborted(_0x384510[_0x9dfd63(0x142)]);const _0x5a6756={},_0x44b5b2=buildConfigFromFlags(_0x12a491[_0x9dfd63(0x146)]);await initGlobalEnvironment(_0x44b5b2);const _0xa199f3=createPipelineEnv(_0x44b5b2,{..._0x12a491[_0x9dfd63(0x146)],'yes':_0x12a491['definition'][_0x9dfd63(0x12a)]===_0x9dfd63(0x145)?!![]:_0x12a491['rawFlags']['yes'],'nonInteractive':!![]});_0xa199f3[_0x9dfd63(0x147)]=_0x12a491[_0x9dfd63(0x147)],_0xa199f3['isNonInteractive']=!![],_0xa199f3['riskLevel']=_0x9dfd63(0x145);const _0x1a9450=withAbortSignal(_0x12a491[_0x9dfd63(0x149)],_0x384510[_0x9dfd63(0x142)]),_0xe80a84=createLovrabetRunnerAdapter({'formatOutput'(_0x1ed3c4,_0xa5c285){const _0x5a7305=_0x9dfd63;_0x5a6756[_0x5a7305(0x12d)]=_0x1ed3c4,_0x5a6756['command']=_0xa5c285['command'],_0x5a6756[_0x5a7305(0x12a)]=_0xa5c285[_0x5a7305(0x12a)],_0x5a6756[_0x5a7305(0x12e)]=_0xa5c285[_0x5a7305(0x12e)],_0x5a6756[_0x5a7305(0x132)]=_0xa5c285['dryRun']===!![];},async 'confirmHighRisk'(){const _0x35cd7b=_0x9dfd63;throw new Error(_0x35cd7b(0x131));}});try{await runCommand(_0x1a9450,_0xa199f3,_0xe80a84);if(!_0x5a6756[_0x9dfd63(0x12d)]||!_0x5a6756[_0x9dfd63(0x13c)]||!_0x5a6756[_0x9dfd63(0x12a)]||!_0x5a6756['format'])throw new Error(_0x9dfd63(0x138));const _0x1a17d2=_0x384510['presentation']??defaultPresentation,_0x43fba3=_0x5a6756[_0x9dfd63(0x132)]===!![],_0x53f565={'result':_0x5a6756[_0x9dfd63(0x12d)],'command':_0x5a6756[_0x9dfd63(0x13c)],'operation':_0x10d382,'risk':_0x5a6756[_0x9dfd63(0x12a)],'format':_0x5a6756[_0x9dfd63(0x12e)],'dryRun':_0x43fba3},_0x3ac95e=createLovrabetWriteMetadata(_0x12a491[_0x9dfd63(0x149)],_0x10d382,_0x5a6756[_0x9dfd63(0x12d)],_0x43fba3);let _0x41a8a4;try{_0x41a8a4=await _0x1a17d2[_0x9dfd63(0x13e)](_0x53f565);}catch(_0x5a680b){if(!_0x3ac95e||_0x1a17d2===defaultPresentation)throw _0x5a680b;_0x41a8a4=await defaultPresentation[_0x9dfd63(0x13e)](_0x53f565);}return{'operation':_0x10d382,'risk':_0x5a6756[_0x9dfd63(0x12a)],'mode':_0x43fba3?_0x9dfd63(0x12b):_0x9dfd63(0x13f),'result':_0x5a6756['result'],'output':_0x41a8a4,..._0x3ac95e?{'metadata':_0x3ac95e}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x3e0c07,_0x498f0e,_0xfddbca,_0x3b7cc9){const _0x4fa986=a131_0x5261;if(_0x498f0e[_0x4fa986(0x132)]===!![]||_0x3e0c07[_0x4fa986(0x12a)]!==_0x4fa986(0x143)&&_0x3e0c07[_0x4fa986(0x12a)]!==_0x4fa986(0x145))return;await _0x3b7cc9[_0x4fa986(0x130)][_0x4fa986(0x144)](buildLovrabetConfirmationRequest(_0x3e0c07,_0xfddbca,_0x3b7cc9[_0x4fa986(0x142)]));}function a131_0x5261(_0x19a353,_0x580f88){_0x19a353=_0x19a353-0x12a;const _0x3de6af=a131_0x3de6();let _0x526168=_0x3de6af[_0x19a353];return _0x526168;}function withAbortSignal(_0xcfd3d2,_0x3e0866){return{..._0xcfd3d2,async 'execute'(_0x20fd53){return throwIfAborted(_0x3e0866),_0xcfd3d2['execute']({..._0x20fd53,'signal':_0x3e0866});}};}function throwIfAborted(_0xbef315){const _0x592bd8=a131_0x5261;if(_0xbef315?.[_0x592bd8(0x14d)])throw _0xbef315['reason']instanceof Error?_0xbef315[_0x592bd8(0x14c)]:new DOMException(_0x592bd8(0x136),_0x592bd8(0x14a));}
@@ -1 +1 @@
1
- function a132_0x318b(_0x1b1388,_0x478b69){_0x1b1388=_0x1b1388-0x18c;const _0x7b2a99=a132_0x7b2a();let _0x318b09=_0x7b2a99[_0x1b1388];return _0x318b09;}function a132_0x7b2a(){const _0x1d45d9=['catch','12GgQHBN','6112740BhWWfV','1025CMtxyK','25684mdXcyP','1764045wfSgTL','1iVLNQo','182JnIzDr','1197210jxlxqU','resolve','33712ihExsi','570447eyjeJv'];a132_0x7b2a=function(){return _0x1d45d9;};return a132_0x7b2a();}const a132_0x23f3cc=a132_0x318b;(function(_0x45b1f9,_0x441bcf){const _0x474ca2=a132_0x318b,_0x45c1c6=_0x45b1f9();while(!![]){try{const _0x4a153b=parseInt(_0x474ca2(0x18c))/0x1*(-parseInt(_0x474ca2(0x196))/0x2)+-parseInt(_0x474ca2(0x191))/0x3+parseInt(_0x474ca2(0x193))/0x4*(-parseInt(_0x474ca2(0x195))/0x5)+-parseInt(_0x474ca2(0x18e))/0x6+-parseInt(_0x474ca2(0x18d))/0x7*(-parseInt(_0x474ca2(0x190))/0x8)+-parseInt(_0x474ca2(0x197))/0x9+parseInt(_0x474ca2(0x194))/0xa;if(_0x4a153b===_0x441bcf)break;else _0x45c1c6['push'](_0x45c1c6['shift']());}catch(_0x866aa9){_0x45c1c6['push'](_0x45c1c6['shift']());}}}(a132_0x7b2a,0x1db5c));let tail=Promise[a132_0x23f3cc(0x18f)]();export async function runSerialized(_0x52d0ba){const _0x432a02=a132_0x23f3cc,_0x41e860=tail;let _0x132b4d;tail=new Promise(_0x50c820=>{_0x132b4d=_0x50c820;}),await _0x41e860[_0x432a02(0x192)](()=>undefined);try{return await _0x52d0ba();}finally{_0x132b4d();}}
1
+ (function(_0x4946dc,_0x2cb1c0){const _0x106d81=a132_0x5e0f,_0x4616ae=_0x4946dc();while(!![]){try{const _0x720d6a=parseInt(_0x106d81(0x153))/0x1*(-parseInt(_0x106d81(0x14f))/0x2)+parseInt(_0x106d81(0x14b))/0x3+-parseInt(_0x106d81(0x14e))/0x4*(-parseInt(_0x106d81(0x152))/0x5)+-parseInt(_0x106d81(0x14c))/0x6*(parseInt(_0x106d81(0x149))/0x7)+-parseInt(_0x106d81(0x148))/0x8*(parseInt(_0x106d81(0x14d))/0x9)+parseInt(_0x106d81(0x150))/0xa+parseInt(_0x106d81(0x151))/0xb;if(_0x720d6a===_0x2cb1c0)break;else _0x4616ae['push'](_0x4616ae['shift']());}catch(_0xcfdfe5){_0x4616ae['push'](_0x4616ae['shift']());}}}(a132_0x184f,0xa994c));function a132_0x184f(){const _0x4964d1=['72NSHEva','49khdeJx','catch','857439TFDdGu','193038XBmsBO','1267371NZDyyL','4HPlVmP','1036YlLBdB','7445590GiepjQ','23522367oeyqDI','357555gbGCbI','2033PfFZpg'];a132_0x184f=function(){return _0x4964d1;};return a132_0x184f();}let tail=Promise['resolve']();function a132_0x5e0f(_0x2b99e3,_0x132221){_0x2b99e3=_0x2b99e3-0x148;const _0x184f92=a132_0x184f();let _0x5e0f0a=_0x184f92[_0x2b99e3];return _0x5e0f0a;}export async function runSerialized(_0x247f67){const _0x34e879=a132_0x5e0f,_0x22a8d1=tail;let _0xfe6279;tail=new Promise(_0x4d23ff=>{_0xfe6279=_0x4d23ff;}),await _0x22a8d1[_0x34e879(0x14a)](()=>undefined);try{return await _0x247f67();}finally{_0xfe6279();}}
@@ -1 +1 @@
1
- (function(_0x29b583,_0x2f7d58){const _0x5dc2ca=a133_0x1f8d,_0x4c2980=_0x29b583();while(!![]){try{const _0x441a02=-parseInt(_0x5dc2ca(0xfc))/0x1+parseInt(_0x5dc2ca(0xff))/0x2+-parseInt(_0x5dc2ca(0x108))/0x3+-parseInt(_0x5dc2ca(0xf8))/0x4+-parseInt(_0x5dc2ca(0xfd))/0x5*(-parseInt(_0x5dc2ca(0xfb))/0x6)+parseInt(_0x5dc2ca(0xf4))/0x7*(-parseInt(_0x5dc2ca(0x100))/0x8)+parseInt(_0x5dc2ca(0x101))/0x9;if(_0x441a02===_0x2f7d58)break;else _0x4c2980['push'](_0x4c2980['shift']());}catch(_0x403a6a){_0x4c2980['push'](_0x4c2980['shift']());}}}(a133_0x4481,0xd62dd));function a133_0x4481(){const _0x3c7704=['189575UrZEnw','slice','788814AJmsBX','328112dcnhCB','37544580mjJUNj','args','join','../commands/registry.js','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','validation','assign','3246768GnQgPX','../framework/preparse.js','203DlpXJC','input','unknownCommand','flags','5915156HhHpZu','hint','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','108VDQtXS','620769ycumVK'];a133_0x4481=function(){return _0x3c7704;};return a133_0x4481();}import a133_0x1fb9ad from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a133_0x1f8d(_0x3f6387,_0x274094){_0x3f6387=_0x3f6387-0xf3;const _0x4481da=a133_0x4481();let _0x1f8da7=_0x4481da[_0x3f6387];return _0x1f8da7;}export async function resolveLovrabetInvocation(_0x40e3b6){const _0x123bab=a133_0x1f8d,_0x328349=a133_0x1fb9ad('',{'importMeta':import.meta,'argv':_0x40e3b6,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x2d8c62=[..._0x328349[_0x123bab(0xf5)]],_0x10880a=_0x328349[_0x123bab(0xf7)];await correctFlags(_0x10880a);const _0x25e060=_0x2d8c62[0x0];if(!_0x25e060)throw CliErrors[_0x123bab(0x106)](_0x123bab(0x105));const _0x1def1d=resolveRemovedCommand(_0x25e060,_0x2d8c62[0x1]);if(_0x1def1d)throw CliErrors[_0x123bab(0x106)](_0x1def1d['message'],_0x1def1d[_0x123bab(0xf9)]);if(!isKnownService(_0x25e060)){const _0x545ebe=resolveDynamicServiceCommand(_0x2d8c62,_0x10880a);if(!_0x545ebe)throw CliErrors['unknownCommand'](_0x2d8c62[_0x123bab(0x103)]('\x20'));return Object[_0x123bab(0x107)](_0x10880a,_0x545ebe['flags']),{'definition':_0x545ebe['definition'],'rawFlags':_0x10880a,'args':_0x545ebe[_0x123bab(0x102)]};}const _0x4fddb2=getServiceEntry(_0x25e060),_0x221220=_0x2d8c62[0x1]||_0x4fddb2['defaultCommand'];if(!_0x221220)throw CliErrors[_0x123bab(0x106)](_0x123bab(0xfa)+_0x25e060+'\x22.');const _0x557604=findDefinition(_0x25e060,_0x221220);if(!_0x557604)throw CliErrors[_0x123bab(0xf6)](_0x25e060+'\x20'+_0x221220);return{'definition':_0x557604,'rawFlags':_0x10880a,'args':_0x2d8c62[_0x123bab(0xfe)](0x2)};}async function correctFlags(_0x5655cb){const _0x1891d3=a133_0x1f8d;try{const {correctFlags:_0x3ce168}=await import(_0x1891d3(0xf3)),{getAllDefinitions:_0x8e6da0}=await import(_0x1891d3(0x104)),_0x284175=_0x8e6da0()['flatMap'](_0x4ad240=>_0x4ad240['flags']??[]),_0x21ed23=_0x3ce168(_0x5655cb,_0x284175);Object['assign'](_0x5655cb,_0x21ed23[_0x1891d3(0xf7)]);}catch{}}
1
+ (function(_0x3afe87,_0x52aad2){const _0x51cd7a=a133_0x13ea,_0x296f62=_0x3afe87();while(!![]){try{const _0x26814a=parseInt(_0x51cd7a(0x160))/0x1*(parseInt(_0x51cd7a(0x152))/0x2)+parseInt(_0x51cd7a(0x14f))/0x3+parseInt(_0x51cd7a(0x150))/0x4+-parseInt(_0x51cd7a(0x15c))/0x5*(-parseInt(_0x51cd7a(0x157))/0x6)+-parseInt(_0x51cd7a(0x156))/0x7+parseInt(_0x51cd7a(0x164))/0x8+-parseInt(_0x51cd7a(0x15e))/0x9*(parseInt(_0x51cd7a(0x15a))/0xa);if(_0x26814a===_0x52aad2)break;else _0x296f62['push'](_0x296f62['shift']());}catch(_0x175494){_0x296f62['push'](_0x296f62['shift']());}}}(a133_0x3650,0x9aa12));function a133_0x13ea(_0x279dda,_0x330136){_0x279dda=_0x279dda-0x14f;const _0x365066=a133_0x3650();let _0x13ea21=_0x365066[_0x279dda];return _0x13ea21;}import a133_0x228bed from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x45a70f){const _0x240354=a133_0x13ea,_0x3990b0=a133_0x228bed('',{'importMeta':import.meta,'argv':_0x45a70f,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x36f1a1=[..._0x3990b0[_0x240354(0x151)]],_0x557321=_0x3990b0[_0x240354(0x166)];await correctFlags(_0x557321);const _0x413d87=_0x36f1a1[0x0];if(!_0x413d87)throw CliErrors['validation'](_0x240354(0x162));const _0x29b67a=resolveRemovedCommand(_0x413d87,_0x36f1a1[0x1]);if(_0x29b67a)throw CliErrors[_0x240354(0x154)](_0x29b67a[_0x240354(0x15b)],_0x29b67a[_0x240354(0x165)]);if(!isKnownService(_0x413d87)){const _0x1e326c=resolveDynamicServiceCommand(_0x36f1a1,_0x557321);if(!_0x1e326c)throw CliErrors[_0x240354(0x158)](_0x36f1a1['join']('\x20'));return Object[_0x240354(0x15f)](_0x557321,_0x1e326c[_0x240354(0x166)]),{'definition':_0x1e326c[_0x240354(0x161)],'rawFlags':_0x557321,'args':_0x1e326c[_0x240354(0x153)]};}const _0x236851=getServiceEntry(_0x413d87),_0x591ab6=_0x36f1a1[0x1]||_0x236851['defaultCommand'];if(!_0x591ab6)throw CliErrors['validation'](_0x240354(0x15d)+_0x413d87+'\x22.');const _0x31c128=findDefinition(_0x413d87,_0x591ab6);if(!_0x31c128)throw CliErrors[_0x240354(0x158)](_0x413d87+'\x20'+_0x591ab6);return{'definition':_0x31c128,'rawFlags':_0x557321,'args':_0x36f1a1['slice'](0x2)};}async function correctFlags(_0x185f11){const _0x3efda7=a133_0x13ea;try{const {correctFlags:_0x797ce1}=await import(_0x3efda7(0x159)),{getAllDefinitions:_0x1e9cef}=await import(_0x3efda7(0x163)),_0x47504e=_0x1e9cef()[_0x3efda7(0x155)](_0x468afc=>_0x468afc['flags']??[]),_0x5c6f95=_0x797ce1(_0x185f11,_0x47504e);Object['assign'](_0x185f11,_0x5c6f95['flags']);}catch{}}function a133_0x3650(){const _0x4df8d9=['unknownCommand','../framework/preparse.js','3267650eGZOTs','message','80rtZxvR','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','36dvTQHk','assign','59253FImPOH','definition','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','../commands/registry.js','7034920HVuqem','hint','flags','824601jpTKHv','742540hhPABh','input','38Rbljxq','args','validation','flatMap','7743260rvUkoO','217848QJALWV'];a133_0x3650=function(){return _0x4df8d9;};return a133_0x3650();}
@@ -1 +1 @@
1
- const a135_0x3c9c02=a135_0x2d33;(function(_0x1b407e,_0x291880){const _0x3de1b8=a135_0x2d33,_0x1f6ffa=_0x1b407e();while(!![]){try{const _0x4ee3e4=-parseInt(_0x3de1b8(0x173))/0x1*(-parseInt(_0x3de1b8(0x175))/0x2)+-parseInt(_0x3de1b8(0x15d))/0x3*(parseInt(_0x3de1b8(0x192))/0x4)+-parseInt(_0x3de1b8(0x17c))/0x5+parseInt(_0x3de1b8(0x19c))/0x6+parseInt(_0x3de1b8(0x181))/0x7*(-parseInt(_0x3de1b8(0x19b))/0x8)+parseInt(_0x3de1b8(0x196))/0x9+-parseInt(_0x3de1b8(0x15b))/0xa;if(_0x4ee3e4===_0x291880)break;else _0x1f6ffa['push'](_0x1f6ffa['shift']());}catch(_0x491afe){_0x1f6ffa['push'](_0x1f6ffa['shift']());}}}(a135_0x275b,0xf05f4));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_0x3c9c02(0x17d),SKILL_NAME=a135_0x3c9c02(0x163);function frontmatterValue(_0x5bce13,_0x44fa6f){const _0x1aabe6=a135_0x3c9c02;return _0x5bce13[_0x1aabe6(0x179)](new RegExp('^'+_0x44fa6f+_0x1aabe6(0x195),'m'))?.[0x1]?.[_0x1aabe6(0x189)]()??'';}function listFiles(_0x376bdc,_0x342022=_0x376bdc){const _0xdb7732=a135_0x3c9c02;return readdirSync(_0x342022,{'withFileTypes':!![]})[_0xdb7732(0x174)](_0x1a7850=>{const _0x33719f=_0xdb7732,_0x4c3a4d=join(_0x342022,_0x1a7850[_0x33719f(0x15c)]),_0x1e58fe=lstatSync(_0x4c3a4d);if(_0x1e58fe[_0x33719f(0x161)]())throw new Error(_0x33719f(0x18a)+_0x4c3a4d);if(_0x1e58fe[_0x33719f(0x16d)]())return listFiles(_0x376bdc,_0x4c3a4d);if(!_0x1e58fe['isFile']())throw new Error('Unsupported\x20Skill\x20entry:\x20'+_0x4c3a4d);return[relative(_0x376bdc,_0x4c3a4d)[_0x33719f(0x171)](sep)[_0x33719f(0x16e)]('/')];})[_0xdb7732(0x17b)]((_0x27441d,_0x579fcc)=>_0x27441d<_0x579fcc?-0x1:_0x27441d>_0x579fcc?0x1:0x0);}function digestFiles(_0xdb33,_0x573d4e){const _0x4ee732=a135_0x3c9c02,_0x125cbb=createHash('sha256');for(const _0xdb5f9 of _0x573d4e){if(_0xdb5f9[_0x4ee732(0x17a)]('/')||_0xdb5f9[_0x4ee732(0x171)]('/')[_0x4ee732(0x17f)]('..')||_0xdb5f9['includes']('\x5c'))throw new Error(_0x4ee732(0x198)+_0xdb5f9);_0x125cbb[_0x4ee732(0x178)](_0xdb5f9),_0x125cbb[_0x4ee732(0x178)]('\x00'),_0x125cbb['update'](readFileSync(join(_0xdb33,..._0xdb5f9[_0x4ee732(0x171)]('/')))),_0x125cbb[_0x4ee732(0x178)]('\x00');}return _0x125cbb[_0x4ee732(0x188)](_0x4ee732(0x160));}function a135_0x2d33(_0x2e974a,_0x27c80b){_0x2e974a=_0x2e974a-0x15b;const _0x275b65=a135_0x275b();let _0x2d3360=_0x275b65[_0x2e974a];return _0x2d3360;}function sameFiles(_0x3e4bb0,_0x2fdcdc){const _0x2640e7=a135_0x3c9c02;return _0x3e4bb0[_0x2640e7(0x190)]===_0x2fdcdc[_0x2640e7(0x190)]&&_0x3e4bb0[_0x2640e7(0x167)]((_0x458c12,_0x1db866)=>_0x458c12===_0x2fdcdc[_0x1db866]);}function readSource(_0x211d6a){const _0x2ede76=a135_0x3c9c02,_0x1092ef=JSON['parse'](readFileSync(join(_0x211d6a,_0x2ede76(0x191)),_0x2ede76(0x164))),_0xf233d6=JSON[_0x2ede76(0x182)](readFileSync(join(_0x211d6a,_0x2ede76(0x197),_0x2ede76(0x18b)),_0x2ede76(0x164))),_0x307c1f=join(_0x211d6a,_0x2ede76(0x197),SKILL_NAME),_0xb2ecca=frontmatterValue(readFileSync(join(_0x307c1f,'SKILL.md'),_0x2ede76(0x164)),_0x2ede76(0x18f)),_0x337d6f=listFiles(_0x307c1f);if(_0xf233d6[_0x2ede76(0x19d)]!==0x1||_0xf233d6['name']!==SKILL_NAME||!_0x1092ef['version']||_0xf233d6[_0x2ede76(0x17e)]!==_0x1092ef[_0x2ede76(0x18f)]||_0xf233d6[_0x2ede76(0x16b)]!==_0x1092ef[_0x2ede76(0x18f)]||_0xb2ecca!==_0x1092ef[_0x2ede76(0x18f)]||!sameFiles(_0x337d6f,_0xf233d6[_0x2ede76(0x18d)])||digestFiles(_0x307c1f,_0x337d6f)!==_0xf233d6[_0x2ede76(0x188)])throw new Error(_0x2ede76(0x19a));return{'packageVersion':_0x1092ef[_0x2ede76(0x18f)],'skillVersion':_0xb2ecca,'root':_0x307c1f,'manifest':_0xf233d6};}function installedSkillPath(_0x3ffd79){const _0xcaf998=a135_0x3c9c02,_0x264310=resolveInstalledSkill(SKILL_NAME,{'home':_0x3ffd79});if(_0x264310[_0xcaf998(0x194)]===_0xcaf998(0x184))return{'state':_0xcaf998(0x184),'path':dirname(_0x264310['path'])};if(_0x264310['state']===_0xcaf998(0x18c))return{'state':_0xcaf998(0x185)};return{'state':_0xcaf998(0x16f),'reason':_0x264310['reason']};}export function inspectInstalledBuiltinSkillVersion(_0x395f93,_0x34d1da={}){const _0x4a7504=a135_0x3c9c02,_0x427163=installedSkillPath(_0x34d1da['home']??homedir());if(_0x427163[_0x4a7504(0x194)]===_0x4a7504(0x185))return{'state':_0x4a7504(0x185),'expectedVersion':_0x395f93,'repairCommand':REPAIR_COMMAND};if(_0x427163['state']==='unverifiable')return{'state':_0x4a7504(0x16f),'expectedVersion':_0x395f93,'reason':_0x427163[_0x4a7504(0x180)],'repairCommand':REPAIR_COMMAND};try{const _0x409e50=frontmatterValue(readFileSync(join(_0x427163['path'],_0x4a7504(0x177)),'utf8'),'version');return{'state':_0x409e50===_0x395f93?_0x4a7504(0x169):_0x4a7504(0x186),'expectedVersion':_0x395f93,'skillVersion':_0x409e50,'installedPath':_0x427163[_0x4a7504(0x172)],'repairCommand':REPAIR_COMMAND};}catch(_0x27b093){return{'state':_0x4a7504(0x16f),'expectedVersion':_0x395f93,'installedPath':_0x427163['path'],'reason':_0x27b093 instanceof Error?_0x27b093[_0x4a7504(0x187)]:String(_0x27b093),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x4a4775={}){const _0x5744b6=a135_0x3c9c02,_0x263bfd=_0x4a4775[_0x5744b6(0x168)]??DEFAULT_PACKAGE_ROOT;let _0x404795;try{_0x404795=readSource(_0x263bfd);}catch(_0x456bdb){return{'state':'unverifiable','packageVersion':_0x5744b6(0x170),'reason':_0x456bdb instanceof Error?_0x456bdb['message']:String(_0x456bdb),'repairCommand':REPAIR_COMMAND};}const _0x515362=installedSkillPath(_0x4a4775[_0x5744b6(0x166)]??homedir());if(_0x515362[_0x5744b6(0x194)]==='missing')return{'state':'missing','packageVersion':_0x404795[_0x5744b6(0x17e)],'repairCommand':REPAIR_COMMAND};if(_0x515362[_0x5744b6(0x194)]===_0x5744b6(0x16f))return{'state':_0x5744b6(0x16f),'packageVersion':_0x404795['packageVersion'],'reason':_0x515362[_0x5744b6(0x180)],'repairCommand':REPAIR_COMMAND};try{const _0x1695a7=frontmatterValue(readFileSync(join(_0x515362[_0x5744b6(0x172)],'SKILL.md'),'utf8'),_0x5744b6(0x18f));if(_0x1695a7!==_0x404795['skillVersion'])return{'state':_0x5744b6(0x186),'packageVersion':_0x404795[_0x5744b6(0x17e)],'skillVersion':_0x1695a7,'installedPath':_0x515362[_0x5744b6(0x172)],'repairCommand':REPAIR_COMMAND};const _0x37de75=listFiles(_0x515362[_0x5744b6(0x172)]),_0x2d6b71=digestFiles(_0x515362[_0x5744b6(0x172)],_0x37de75);return{'state':sameFiles(_0x37de75,_0x404795[_0x5744b6(0x18e)][_0x5744b6(0x18d)])&&_0x2d6b71===_0x404795['manifest'][_0x5744b6(0x188)]?_0x5744b6(0x169):'content_mismatch','packageVersion':_0x404795[_0x5744b6(0x17e)],'skillVersion':_0x1695a7,'installedPath':_0x515362[_0x5744b6(0x172)],'digest':_0x2d6b71,'repairCommand':REPAIR_COMMAND};}catch(_0x4ac6aa){return{'state':'unverifiable','packageVersion':_0x404795['packageVersion'],'installedPath':_0x515362['path'],'reason':_0x4ac6aa instanceof Error?_0x4ac6aa['message']:String(_0x4ac6aa),'repairCommand':REPAIR_COMMAND};}}function a135_0x275b(){const _0x1c0a52=['path','1lcDkBK','flatMap','2925862VEwZyK','pipe','SKILL.md','update','match','startsWith','sort','1617205oBhjjJ','lovrabet\x20cli-skill\x20install','packageVersion','includes','reason','839468hvSMpD','parse','SOURCE_INVALID','present','missing','version_mismatch','message','digest','trim','Symbolic\x20link\x20is\x20not\x20allowed:\x20','lovrabet.manifest.json','absent','files','manifest','version','length','package.json','12omgddv','root','state',':\x5cs*(.+)$','16281585jZDwfr','skills','Unsafe\x20manifest\x20path:\x20','skills@latest\x20exited\x20','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','16FBMUmM','488292cHgrvz','schemaVersion','17068940VuTDHg','name','98631UmHgXQ','installedPath','Installed\x20Skill\x20state\x20is\x20','hex','isSymbolicLink','status','lovrabet','utf8','VERIFY_FAILED','home','every','packageRoot','current','skipped','skillVersion','stdio','isDirectory','join','unverifiable','unknown','split'];a135_0x275b=function(){return _0x1c0a52;};return a135_0x275b();}function failure(_0x1a432d,_0x421b1f,_0x120fe7,_0x1f0c08){const _0x2a5f1b=a135_0x3c9c02;return{'ok':![],'code':_0x1a432d,'packageVersion':_0x421b1f[_0x2a5f1b(0x17e)],'skillVersion':_0x421b1f['skillVersion'],'installedPath':_0x1f0c08,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x120fe7 instanceof Error?_0x120fe7[_0x2a5f1b(0x187)]:String(_0x120fe7)};}export function installBuiltinSkill(_0x32fb80={}){const _0x261acf=a135_0x3c9c02,_0x522561=_0x32fb80['packageRoot']??DEFAULT_PACKAGE_ROOT,_0x1a63ee=_0x32fb80['home']??homedir();let _0x152229;try{_0x152229=readSource(_0x522561);}catch(_0x42a234){return failure(_0x261acf(0x183),{'packageVersion':_0x261acf(0x170),'skillVersion':_0x261acf(0x170)},_0x42a234);}const _0x966eee=inspectBuiltinSkill({'packageRoot':_0x522561,'home':_0x1a63ee}),_0x2b41f3=runNpxSkillsAddGlobal(_0x522561,_0x152229[_0x261acf(0x193)],{'stdio':_0x32fb80[_0x261acf(0x16c)]??_0x261acf(0x176),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x1a63ee}});if(_0x2b41f3[_0x261acf(0x16a)])return{'ok':!![],'packageVersion':_0x152229['packageVersion'],'skillVersion':_0x152229[_0x261acf(0x16b)],'installedPath':_0x966eee['installedPath'],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x2b41f3['ok'])return failure('INSTALL_FAILED',_0x152229,_0x2b41f3['error']??_0x261acf(0x199)+_0x2b41f3[_0x261acf(0x162)]);const _0x1176af=inspectBuiltinSkill({'packageRoot':_0x522561,'home':_0x1a63ee});if(_0x1176af[_0x261acf(0x194)]!=='current')return failure(_0x261acf(0x165),_0x152229,_0x1176af[_0x261acf(0x180)]??_0x261acf(0x15f)+_0x1176af[_0x261acf(0x194)],_0x1176af[_0x261acf(0x15e)]);return{'ok':!![],'packageVersion':_0x152229['packageVersion'],'skillVersion':_0x152229[_0x261acf(0x16b)],'installedPath':_0x1176af[_0x261acf(0x15e)],'changed':_0x966eee[_0x261acf(0x194)]!==_0x261acf(0x169),'repairCommand':REPAIR_COMMAND};}
1
+ function a135_0x5007(){const _0x5d06ba=['SKILL.md','message','62cqWzSJ','SOURCE_INVALID','Installed\x20Skill\x20state\x20is\x20','installedPath','580968pgjsqD','utf8','9254JZnlCt','version_mismatch','66110RmwuDa','1301994VaEkzq','Symbolic\x20link\x20is\x20not\x20allowed:\x20','unknown','parse','7WjPAGo','packageRoot','split','9FdhILf','content_mismatch','skills@latest\x20exited\x20','packageVersion','pipe','package.json','flatMap','sort','380jDttMZ','update','skillVersion','manifest','name','current','home','absent','state','stdio','trim','every','version','missing','digest','26tWarNX','reason','path','1396175ptWyuv','2408584qCKTpN',':\x5cs*(.+)$','556vPlcQU','unverifiable','skills','join','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','root','Unsupported\x20Skill\x20entry:\x20','lovrabet','VERIFY_FAILED','hex','isDirectory','schemaVersion','status','sha256','2661OoZRNd','files','present'];a135_0x5007=function(){return _0x5d06ba;};return a135_0x5007();}const a135_0x50fb5d=a135_0x4c1e;(function(_0x444c1f,_0xc1ea74){const _0x1813ce=a135_0x4c1e,_0x5c6742=_0x444c1f();while(!![]){try{const _0x4ada80=-parseInt(_0x1813ce(0x1ce))/0x1*(parseInt(_0x1813ce(0x1c8))/0x2)+parseInt(_0x1813ce(0x1c3))/0x3*(-parseInt(_0x1813ce(0x1f5))/0x4)+-parseInt(_0x1813ce(0x1f2))/0x5+parseInt(_0x1813ce(0x1d1))/0x6*(parseInt(_0x1813ce(0x1d5))/0x7)+-parseInt(_0x1813ce(0x1f3))/0x8*(-parseInt(_0x1813ce(0x1d8))/0x9)+-parseInt(_0x1813ce(0x1e0))/0xa*(-parseInt(_0x1813ce(0x1d0))/0xb)+parseInt(_0x1813ce(0x1cc))/0xc*(parseInt(_0x1813ce(0x1ef))/0xd);if(_0x4ada80===_0xc1ea74)break;else _0x5c6742['push'](_0x5c6742['shift']());}catch(_0x4e40e8){_0x5c6742['push'](_0x5c6742['shift']());}}}(a135_0x5007,0x25916));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='lovrabet\x20cli-skill\x20install',SKILL_NAME=a135_0x50fb5d(0x1bc);function frontmatterValue(_0x1c3d73,_0x5bd9a8){const _0x34905b=a135_0x50fb5d;return _0x1c3d73['match'](new RegExp('^'+_0x5bd9a8+_0x34905b(0x1f4),'m'))?.[0x1]?.[_0x34905b(0x1ea)]()??'';}function listFiles(_0x187306,_0x40b9a5=_0x187306){const _0x2e1dc7=a135_0x50fb5d;return readdirSync(_0x40b9a5,{'withFileTypes':!![]})[_0x2e1dc7(0x1de)](_0x1d12ae=>{const _0x333d8b=_0x2e1dc7,_0x2601dc=join(_0x40b9a5,_0x1d12ae[_0x333d8b(0x1e4)]),_0x30d5e6=lstatSync(_0x2601dc);if(_0x30d5e6['isSymbolicLink']())throw new Error(_0x333d8b(0x1d2)+_0x2601dc);if(_0x30d5e6[_0x333d8b(0x1bf)]())return listFiles(_0x187306,_0x2601dc);if(!_0x30d5e6['isFile']())throw new Error(_0x333d8b(0x1bb)+_0x2601dc);return[relative(_0x187306,_0x2601dc)[_0x333d8b(0x1d7)](sep)[_0x333d8b(0x1b8)]('/')];})[_0x2e1dc7(0x1df)]((_0xa66182,_0x1162c3)=>_0xa66182<_0x1162c3?-0x1:_0xa66182>_0x1162c3?0x1:0x0);}function digestFiles(_0x293f61,_0x11a76a){const _0x130a7c=a135_0x50fb5d,_0xb2ff7e=createHash(_0x130a7c(0x1c2));for(const _0x392f65 of _0x11a76a){if(_0x392f65['startsWith']('/')||_0x392f65[_0x130a7c(0x1d7)]('/')['includes']('..')||_0x392f65['includes']('\x5c'))throw new Error('Unsafe\x20manifest\x20path:\x20'+_0x392f65);_0xb2ff7e[_0x130a7c(0x1e1)](_0x392f65),_0xb2ff7e[_0x130a7c(0x1e1)]('\x00'),_0xb2ff7e['update'](readFileSync(join(_0x293f61,..._0x392f65[_0x130a7c(0x1d7)]('/')))),_0xb2ff7e['update']('\x00');}return _0xb2ff7e[_0x130a7c(0x1ee)](_0x130a7c(0x1be));}function sameFiles(_0x1fcde6,_0x3906df){const _0x206d13=a135_0x50fb5d;return _0x1fcde6['length']===_0x3906df['length']&&_0x1fcde6[_0x206d13(0x1eb)]((_0x441cbb,_0x349465)=>_0x441cbb===_0x3906df[_0x349465]);}function readSource(_0x46785a){const _0x224df7=a135_0x50fb5d,_0x30e754=JSON['parse'](readFileSync(join(_0x46785a,_0x224df7(0x1dd)),_0x224df7(0x1cd))),_0x1d44fb=JSON[_0x224df7(0x1d4)](readFileSync(join(_0x46785a,'skills','lovrabet.manifest.json'),_0x224df7(0x1cd))),_0x432ec6=join(_0x46785a,_0x224df7(0x1f7),SKILL_NAME),_0xd4290c=frontmatterValue(readFileSync(join(_0x432ec6,_0x224df7(0x1c6)),_0x224df7(0x1cd)),_0x224df7(0x1ec)),_0x5d9d22=listFiles(_0x432ec6);if(_0x1d44fb[_0x224df7(0x1c0)]!==0x1||_0x1d44fb[_0x224df7(0x1e4)]!==SKILL_NAME||!_0x30e754[_0x224df7(0x1ec)]||_0x1d44fb[_0x224df7(0x1db)]!==_0x30e754['version']||_0x1d44fb['skillVersion']!==_0x30e754['version']||_0xd4290c!==_0x30e754['version']||!sameFiles(_0x5d9d22,_0x1d44fb[_0x224df7(0x1c4)])||digestFiles(_0x432ec6,_0x5d9d22)!==_0x1d44fb[_0x224df7(0x1ee)])throw new Error(_0x224df7(0x1b9));return{'packageVersion':_0x30e754[_0x224df7(0x1ec)],'skillVersion':_0xd4290c,'root':_0x432ec6,'manifest':_0x1d44fb};}function a135_0x4c1e(_0x164675,_0x1cde36){_0x164675=_0x164675-0x1b8;const _0x50076e=a135_0x5007();let _0x4c1e7f=_0x50076e[_0x164675];return _0x4c1e7f;}function installedSkillPath(_0x49e171){const _0x526284=a135_0x50fb5d,_0x4fc0e5=resolveInstalledSkill(SKILL_NAME,{'home':_0x49e171});if(_0x4fc0e5['state']===_0x526284(0x1c5))return{'state':_0x526284(0x1c5),'path':dirname(_0x4fc0e5[_0x526284(0x1f1)])};if(_0x4fc0e5['state']===_0x526284(0x1e7))return{'state':_0x526284(0x1ed)};return{'state':_0x526284(0x1f6),'reason':_0x4fc0e5[_0x526284(0x1f0)]};}export function inspectInstalledBuiltinSkillVersion(_0x606422,_0x4d2254={}){const _0x19596f=a135_0x50fb5d,_0x3b6afe=installedSkillPath(_0x4d2254[_0x19596f(0x1e6)]??homedir());if(_0x3b6afe[_0x19596f(0x1e8)]==='missing')return{'state':_0x19596f(0x1ed),'expectedVersion':_0x606422,'repairCommand':REPAIR_COMMAND};if(_0x3b6afe[_0x19596f(0x1e8)]==='unverifiable')return{'state':_0x19596f(0x1f6),'expectedVersion':_0x606422,'reason':_0x3b6afe[_0x19596f(0x1f0)],'repairCommand':REPAIR_COMMAND};try{const _0x19f498=frontmatterValue(readFileSync(join(_0x3b6afe[_0x19596f(0x1f1)],_0x19596f(0x1c6)),_0x19596f(0x1cd)),_0x19596f(0x1ec));return{'state':_0x19f498===_0x606422?'current':_0x19596f(0x1cf),'expectedVersion':_0x606422,'skillVersion':_0x19f498,'installedPath':_0x3b6afe[_0x19596f(0x1f1)],'repairCommand':REPAIR_COMMAND};}catch(_0x17cfcb){return{'state':'unverifiable','expectedVersion':_0x606422,'installedPath':_0x3b6afe[_0x19596f(0x1f1)],'reason':_0x17cfcb instanceof Error?_0x17cfcb[_0x19596f(0x1c7)]:String(_0x17cfcb),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x162702={}){const _0x5bed1d=a135_0x50fb5d,_0x2de2ab=_0x162702[_0x5bed1d(0x1d6)]??DEFAULT_PACKAGE_ROOT;let _0x2bf339;try{_0x2bf339=readSource(_0x2de2ab);}catch(_0x10cf9b){return{'state':_0x5bed1d(0x1f6),'packageVersion':_0x5bed1d(0x1d3),'reason':_0x10cf9b instanceof Error?_0x10cf9b[_0x5bed1d(0x1c7)]:String(_0x10cf9b),'repairCommand':REPAIR_COMMAND};}const _0xaf2b4d=installedSkillPath(_0x162702[_0x5bed1d(0x1e6)]??homedir());if(_0xaf2b4d[_0x5bed1d(0x1e8)]===_0x5bed1d(0x1ed))return{'state':_0x5bed1d(0x1ed),'packageVersion':_0x2bf339['packageVersion'],'repairCommand':REPAIR_COMMAND};if(_0xaf2b4d[_0x5bed1d(0x1e8)]===_0x5bed1d(0x1f6))return{'state':'unverifiable','packageVersion':_0x2bf339[_0x5bed1d(0x1db)],'reason':_0xaf2b4d[_0x5bed1d(0x1f0)],'repairCommand':REPAIR_COMMAND};try{const _0xaff6c2=frontmatterValue(readFileSync(join(_0xaf2b4d[_0x5bed1d(0x1f1)],'SKILL.md'),_0x5bed1d(0x1cd)),'version');if(_0xaff6c2!==_0x2bf339[_0x5bed1d(0x1e2)])return{'state':_0x5bed1d(0x1cf),'packageVersion':_0x2bf339['packageVersion'],'skillVersion':_0xaff6c2,'installedPath':_0xaf2b4d[_0x5bed1d(0x1f1)],'repairCommand':REPAIR_COMMAND};const _0x3919a0=listFiles(_0xaf2b4d[_0x5bed1d(0x1f1)]),_0x853995=digestFiles(_0xaf2b4d[_0x5bed1d(0x1f1)],_0x3919a0);return{'state':sameFiles(_0x3919a0,_0x2bf339[_0x5bed1d(0x1e3)]['files'])&&_0x853995===_0x2bf339[_0x5bed1d(0x1e3)][_0x5bed1d(0x1ee)]?_0x5bed1d(0x1e5):_0x5bed1d(0x1d9),'packageVersion':_0x2bf339['packageVersion'],'skillVersion':_0xaff6c2,'installedPath':_0xaf2b4d[_0x5bed1d(0x1f1)],'digest':_0x853995,'repairCommand':REPAIR_COMMAND};}catch(_0x3bdec9){return{'state':_0x5bed1d(0x1f6),'packageVersion':_0x2bf339[_0x5bed1d(0x1db)],'installedPath':_0xaf2b4d[_0x5bed1d(0x1f1)],'reason':_0x3bdec9 instanceof Error?_0x3bdec9[_0x5bed1d(0x1c7)]:String(_0x3bdec9),'repairCommand':REPAIR_COMMAND};}}function failure(_0x8e98dc,_0x24dd51,_0x3bae8d,_0x43d895){const _0x126498=a135_0x50fb5d;return{'ok':![],'code':_0x8e98dc,'packageVersion':_0x24dd51[_0x126498(0x1db)],'skillVersion':_0x24dd51[_0x126498(0x1e2)],'installedPath':_0x43d895,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x3bae8d instanceof Error?_0x3bae8d[_0x126498(0x1c7)]:String(_0x3bae8d)};}export function installBuiltinSkill(_0xd1c0d={}){const _0x303306=a135_0x50fb5d,_0x8e29c2=_0xd1c0d[_0x303306(0x1d6)]??DEFAULT_PACKAGE_ROOT,_0x110482=_0xd1c0d[_0x303306(0x1e6)]??homedir();let _0x16939b;try{_0x16939b=readSource(_0x8e29c2);}catch(_0x92d195){return failure(_0x303306(0x1c9),{'packageVersion':_0x303306(0x1d3),'skillVersion':_0x303306(0x1d3)},_0x92d195);}const _0xd79f65=inspectBuiltinSkill({'packageRoot':_0x8e29c2,'home':_0x110482}),_0x58ec79=runNpxSkillsAddGlobal(_0x8e29c2,_0x16939b[_0x303306(0x1ba)],{'stdio':_0xd1c0d[_0x303306(0x1e9)]??_0x303306(0x1dc),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x110482}});if(_0x58ec79['skipped'])return{'ok':!![],'packageVersion':_0x16939b[_0x303306(0x1db)],'skillVersion':_0x16939b[_0x303306(0x1e2)],'installedPath':_0xd79f65['installedPath'],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x58ec79['ok'])return failure('INSTALL_FAILED',_0x16939b,_0x58ec79['error']??_0x303306(0x1da)+_0x58ec79[_0x303306(0x1c1)]);const _0x3ccf35=inspectBuiltinSkill({'packageRoot':_0x8e29c2,'home':_0x110482});if(_0x3ccf35[_0x303306(0x1e8)]!==_0x303306(0x1e5))return failure(_0x303306(0x1bd),_0x16939b,_0x3ccf35[_0x303306(0x1f0)]??_0x303306(0x1ca)+_0x3ccf35[_0x303306(0x1e8)],_0x3ccf35[_0x303306(0x1cb)]);return{'ok':!![],'packageVersion':_0x16939b[_0x303306(0x1db)],'skillVersion':_0x16939b[_0x303306(0x1e2)],'installedPath':_0x3ccf35[_0x303306(0x1cb)],'changed':_0xd79f65[_0x303306(0x1e8)]!==_0x303306(0x1e5),'repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- const a136_0x2c1521=a136_0x1648;function a136_0x1648(_0x22c174,_0x4ccec8){_0x22c174=_0x22c174-0x15a;const _0x4d158e=a136_0x4d15();let _0x164826=_0x4d158e[_0x22c174];return _0x164826;}(function(_0x8214f7,_0x21fee8){const _0x36c17a=a136_0x1648,_0x36f577=_0x8214f7();while(!![]){try{const _0x3cda94=-parseInt(_0x36c17a(0x179))/0x1*(parseInt(_0x36c17a(0x15d))/0x2)+parseInt(_0x36c17a(0x15c))/0x3+-parseInt(_0x36c17a(0x178))/0x4*(-parseInt(_0x36c17a(0x170))/0x5)+parseInt(_0x36c17a(0x15e))/0x6+-parseInt(_0x36c17a(0x18a))/0x7+parseInt(_0x36c17a(0x176))/0x8+parseInt(_0x36c17a(0x15a))/0x9*(-parseInt(_0x36c17a(0x181))/0xa);if(_0x3cda94===_0x21fee8)break;else _0x36f577['push'](_0x36f577['shift']());}catch(_0x55f0e7){_0x36f577['push'](_0x36f577['shift']());}}}(a136_0x4d15,0xe6825));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{LOVRABET_SKILL_SOURCE as a136_0x44a9d2}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_0x44a9d2;export const LOVRABET_SKILL_GIT_SOURCE=PRODUCT_CONFIG[a136_0x2c1521(0x17b)];export const LOVRABET_GLOBAL_SKILL_NAME=PRODUCT_CONFIG[a136_0x2c1521(0x173)];export function resolveGlobalSkillName(_0x5890d2){const _0x3fad1f=a136_0x2c1521;switch(_0x5890d2[_0x3fad1f(0x191)]()){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_0x2c1521(0x167)]);const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x4c5e43,_0x33b3c0,_0x31d19f){return{'ok':![],'status':_0x33b3c0,'code':_0x4c5e43,'error':'['+_0x4c5e43+']\x20'+_0x31d19f};}export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}function a136_0x4d15(){const _0x953ea7=['EACCES','1693570AvDKXO','pipe','code','npm_config_global','status','NPM_CONFIG_GLOBAL','error','message','reason','9910145mCBYVZ','\x22\x20install\x20state:\x20','skills@latest','CHILD_TERMINATED','presence','expectedSkillName','Installer\x20reported\x20','trim','SPAWN_FAILED','9cqvdZJ','join','4624932TUDlsa','577358SClbcw','4119858YQSpEx','filter','\x20failed\x20target(s)','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','Skill\x20\x22','match','signal','npx\x20terminated\x20by\x20signal\x20','ENOENT','skipNpxSkillsEnvSuffix','!\x20Could\x20not\x20verify\x20\x22','log','toString','stderr','stdio','present','stdout','EPERM','670Voywyo','unverifiable','exit\x20','globalSkillName','absent','NPX_NOT_FOUND','12667448mJrTIt','state','4804aipgQd','5zjieSk','SKILL_NOT_INSTALLED','internalSkillSource','warn','unknown','PERMISSION_DENIED','CHILD_EXIT_NONZERO'];a136_0x4d15=function(){return _0x953ea7;};return a136_0x4d15();}export function runNpxSkillsAddGlobal(_0x3c2b56,_0x3a0c40=LOVRABET_SKILL_SOURCE,_0x3c4a36){const _0x18eb9d=a136_0x2c1521;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x440b7c=resolveNpmBin('npx'),_0x1d0984=['-y',_0x18eb9d(0x18c),'add',_0x3a0c40,'-g','-y'],_0x361b01=[_0x440b7c,..._0x1d0984]['join']('\x20');console['log']('*\x20'+_0x361b01);const _0x307060={...process.env};delete _0x307060[_0x18eb9d(0x184)],delete _0x307060[_0x18eb9d(0x186)];const _0x2a21da=spawnSync(_0x440b7c,_0x1d0984,{'cwd':_0x3c2b56,'stdio':_0x18eb9d(0x182),'env':_0x307060,'shell':![],'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}),_0x38a121=[_0x2a21da['stdout']?_0x2a21da[_0x18eb9d(0x16e)]['toString']():'',_0x2a21da[_0x18eb9d(0x16b)]?_0x2a21da[_0x18eb9d(0x16b)][_0x18eb9d(0x16a)]():''][_0x18eb9d(0x15f)](Boolean)[_0x18eb9d(0x15b)]('\x0a')[_0x18eb9d(0x191)]();_0x3c4a36?.[_0x18eb9d(0x16c)]!==_0x18eb9d(0x182)&&_0x38a121&&console[_0x18eb9d(0x169)](_0x38a121);if(_0x2a21da[_0x18eb9d(0x187)]){const _0x33678d=_0x2a21da[_0x18eb9d(0x187)],_0x2da506=_0x33678d[_0x18eb9d(0x183)]===_0x18eb9d(0x166)?_0x18eb9d(0x175):_0x33678d[_0x18eb9d(0x183)]===_0x18eb9d(0x16f)||_0x33678d['code']===_0x18eb9d(0x180)?_0x18eb9d(0x17e):_0x18eb9d(0x192);return failure(_0x2da506,_0x2a21da[_0x18eb9d(0x185)],_0x33678d[_0x18eb9d(0x188)]);}if(_0x2a21da['signal'])return failure(_0x18eb9d(0x18d),_0x2a21da[_0x18eb9d(0x185)],_0x18eb9d(0x165)+_0x2a21da[_0x18eb9d(0x164)]);if(_0x2a21da['status']!==0x0)return failure(_0x18eb9d(0x17f),_0x2a21da[_0x18eb9d(0x185)],_0x38a121||_0x18eb9d(0x172)+(_0x2a21da[_0x18eb9d(0x185)]??_0x18eb9d(0x17d)));const _0x392f52=_0x3c4a36?.[_0x18eb9d(0x18f)]??resolveGlobalSkillName(_0x3a0c40),_0x3b280f=_0x392f52?resolveInstalledSkill(_0x392f52,_0x3c4a36?.[_0x18eb9d(0x18e)]):undefined,_0x5278c3=_0x38a121[_0x18eb9d(0x163)](/Failed to install\s+(\d+)/i);if(_0x5278c3&&Number(_0x5278c3[0x1])>0x0){const _0x1a6626=_0x18eb9d(0x190)+_0x5278c3[0x1]+_0x18eb9d(0x160)+(_0x38a121?':\x0a'+_0x38a121:'');if(_0x3b280f?.[_0x18eb9d(0x177)]===_0x18eb9d(0x16d))return console[_0x18eb9d(0x17c)]('!\x20'+_0x1a6626),{'ok':!![],'status':0x0};return failure('INSTALL_PARTIAL',0x0,_0x1a6626);}if(_0x392f52&&_0x3b280f){if(_0x3b280f[_0x18eb9d(0x177)]===_0x18eb9d(0x174))return failure(_0x18eb9d(0x17a),0x0,_0x18eb9d(0x162)+_0x392f52+_0x18eb9d(0x161)+_0x3b280f['checked'][_0x18eb9d(0x15b)](',\x20')+')');_0x3b280f[_0x18eb9d(0x177)]===_0x18eb9d(0x171)&&console[_0x18eb9d(0x17c)](_0x18eb9d(0x168)+_0x392f52+_0x18eb9d(0x18b)+_0x3b280f[_0x18eb9d(0x189)]);}return{'ok':!![],'status':0x0};}
1
+ const a136_0x40dc49=a136_0x54a1;(function(_0x224042,_0x47bcf6){const _0xf7097e=a136_0x54a1,_0x15dc45=_0x224042();while(!![]){try{const _0x36bac5=-parseInt(_0xf7097e(0x17d))/0x1+parseInt(_0xf7097e(0x15a))/0x2*(-parseInt(_0xf7097e(0x172))/0x3)+parseInt(_0xf7097e(0x17c))/0x4*(parseInt(_0xf7097e(0x14e))/0x5)+-parseInt(_0xf7097e(0x17f))/0x6+-parseInt(_0xf7097e(0x164))/0x7*(-parseInt(_0xf7097e(0x16f))/0x8)+-parseInt(_0xf7097e(0x162))/0x9*(-parseInt(_0xf7097e(0x14b))/0xa)+parseInt(_0xf7097e(0x15f))/0xb*(parseInt(_0xf7097e(0x161))/0xc);if(_0x36bac5===_0x47bcf6)break;else _0x15dc45['push'](_0x15dc45['shift']());}catch(_0x42a13f){_0x15dc45['push'](_0x15dc45['shift']());}}}(a136_0x3c43,0x5935e));import{execaSync}from'execa';import{LOVRABET_SKILL_SOURCE as a136_0x112132}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_0x112132;function a136_0x3c43(){const _0x1d14ee=['CHILD_TERMINATED','!\x20Could\x20not\x20verify\x20\x22','Installer\x20reported\x20','12YaTnca','434423dpfmhJ','signal','2494476xjCBgY','34420vrlQVX','state','filter','296710zcExYG','Skill\x20\x22','npm_config_global','absent','ENOENT','SPAWN_FAILED','add','\x20failed\x20target(s)','EACCES','stdout','message','checked','2JfisCH','unknown','skills@latest','warn','stderr','11WvPpmp','npx','12369792VQtQtx','162cHHNYI','failed','14aIAYSU','trim','expectedSkillName','log','pipe','join','skipNpxSkillsEnvSuffix','code','EPERM','internalSkillSource','presence','620176HJMPhh','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','present','630801XIpsWU','CHILD_EXIT_NONZERO','INSTALL_PARTIAL','shortMessage','stdio','reason','exitCode'];a136_0x3c43=function(){return _0x1d14ee;};return a136_0x3c43();}export const LOVRABET_SKILL_GIT_SOURCE=PRODUCT_CONFIG[a136_0x40dc49(0x16d)];export const LOVRABET_GLOBAL_SKILL_NAME=PRODUCT_CONFIG['globalSkillName'];export function resolveGlobalSkillName(_0x416f00){const _0x3d0c6e=a136_0x40dc49;switch(_0x416f00[_0x3d0c6e(0x165)]()){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_0x40dc49(0x16a)]);const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x3d1be1,_0x52137a,_0x467f89){return{'ok':![],'status':_0x52137a,'code':_0x3d1be1,'error':'['+_0x3d1be1+']\x20'+_0x467f89};}export function shouldSkipNpxSkillsAdd(){return process.env[LOVRABET_SKIP_NPX_SKILLS_ENV]==='1';}function a136_0x54a1(_0x4d7b65,_0x4f008e){_0x4d7b65=_0x4d7b65-0x14b;const _0x3c4370=a136_0x3c43();let _0x54a198=_0x3c4370[_0x4d7b65];return _0x54a198;}export function runNpxSkillsAddGlobal(_0x5376f6,_0x5919fc=LOVRABET_SKILL_SOURCE,_0x276052){const _0x1eb5a5=a136_0x40dc49;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x157ae2=['-y',_0x1eb5a5(0x15c),_0x1eb5a5(0x154),_0x5919fc,'-g','-y'],_0x463497=[_0x1eb5a5(0x160),..._0x157ae2][_0x1eb5a5(0x169)]('\x20');console[_0x1eb5a5(0x167)]('*\x20'+_0x463497);const _0x41a007={...process.env};delete _0x41a007[_0x1eb5a5(0x150)],delete _0x41a007['NPM_CONFIG_GLOBAL'];const _0x24f139=execaSync('npx',_0x157ae2,{'cwd':_0x5376f6,'stdio':_0x1eb5a5(0x168),'env':_0x41a007,'extendEnv':![],'shell':![],'reject':![],'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}),_0x20f3ac=[_0x24f139[_0x1eb5a5(0x157)]?String(_0x24f139[_0x1eb5a5(0x157)]):'',_0x24f139[_0x1eb5a5(0x15e)]?String(_0x24f139[_0x1eb5a5(0x15e)]):''][_0x1eb5a5(0x14d)](Boolean)[_0x1eb5a5(0x169)]('\x0a')[_0x1eb5a5(0x165)](),_0x400164=_0x24f139[_0x1eb5a5(0x178)]??null;_0x276052?.[_0x1eb5a5(0x176)]!==_0x1eb5a5(0x168)&&_0x20f3ac&&console[_0x1eb5a5(0x167)](_0x20f3ac);if(_0x24f139[_0x1eb5a5(0x16b)]){const _0x5e47d4=_0x24f139[_0x1eb5a5(0x16b)]===_0x1eb5a5(0x152)?'NPX_NOT_FOUND':_0x24f139[_0x1eb5a5(0x16b)]===_0x1eb5a5(0x16c)||_0x24f139[_0x1eb5a5(0x16b)]===_0x1eb5a5(0x156)?'PERMISSION_DENIED':_0x1eb5a5(0x153);return failure(_0x5e47d4,_0x400164,_0x24f139[_0x1eb5a5(0x175)]??_0x24f139[_0x1eb5a5(0x158)]??_0x24f139[_0x1eb5a5(0x16b)]);}if(_0x24f139[_0x1eb5a5(0x17e)])return failure(_0x1eb5a5(0x179),_0x400164,'npx\x20terminated\x20by\x20signal\x20'+_0x24f139[_0x1eb5a5(0x17e)]);if(_0x24f139[_0x1eb5a5(0x163)]&&_0x400164===null)return failure(_0x1eb5a5(0x153),_0x400164,_0x24f139[_0x1eb5a5(0x175)]??_0x24f139[_0x1eb5a5(0x158)]??'npx\x20failed\x20to\x20start');if(_0x400164!==0x0)return failure(_0x1eb5a5(0x173),_0x400164,_0x20f3ac||_0x24f139[_0x1eb5a5(0x175)]||'exit\x20'+(_0x400164??_0x1eb5a5(0x15b)));const _0x3af9cf=_0x276052?.[_0x1eb5a5(0x166)]??resolveGlobalSkillName(_0x5919fc),_0x5901d4=_0x3af9cf?resolveInstalledSkill(_0x3af9cf,_0x276052?.[_0x1eb5a5(0x16e)]):undefined,_0x21e42e=_0x20f3ac['match'](/Failed to install\s+(\d+)/i);if(_0x21e42e&&Number(_0x21e42e[0x1])>0x0){const _0x4f5442=_0x1eb5a5(0x17b)+_0x21e42e[0x1]+_0x1eb5a5(0x155)+(_0x20f3ac?':\x0a'+_0x20f3ac:'');if(_0x5901d4?.['state']===_0x1eb5a5(0x171))return console[_0x1eb5a5(0x15d)]('!\x20'+_0x4f5442),{'ok':!![],'status':0x0};return failure(_0x1eb5a5(0x174),0x0,_0x4f5442);}if(_0x3af9cf&&_0x5901d4){if(_0x5901d4[_0x1eb5a5(0x14c)]===_0x1eb5a5(0x151))return failure('SKILL_NOT_INSTALLED',0x0,_0x1eb5a5(0x14f)+_0x3af9cf+_0x1eb5a5(0x170)+_0x5901d4[_0x1eb5a5(0x159)]['join'](',\x20')+')');_0x5901d4[_0x1eb5a5(0x14c)]==='unverifiable'&&console[_0x1eb5a5(0x15d)](_0x1eb5a5(0x17a)+_0x3af9cf+'\x22\x20install\x20state:\x20'+_0x5901d4[_0x1eb5a5(0x177)]);}return{'ok':!![],'status':0x0};}
@@ -1 +1 @@
1
- const a137_0x3dd627=a137_0x3c9e;(function(_0x18aef6,_0x28b84a){const _0x607b70=a137_0x3c9e,_0x2b2f17=_0x18aef6();while(!![]){try{const _0x583485=parseInt(_0x607b70(0x172))/0x1*(parseInt(_0x607b70(0x173))/0x2)+-parseInt(_0x607b70(0x170))/0x3+parseInt(_0x607b70(0x16f))/0x4+parseInt(_0x607b70(0x174))/0x5+-parseInt(_0x607b70(0x171))/0x6+-parseInt(_0x607b70(0x179))/0x7+parseInt(_0x607b70(0x169))/0x8;if(_0x583485===_0x28b84a)break;else _0x2b2f17['push'](_0x2b2f17['shift']());}catch(_0x34ca5f){_0x2b2f17['push'](_0x2b2f17['shift']());}}}(a137_0x3791,0xa44c3));export const METADATA_FILE=a137_0x3dd627(0x175);export const SKILL_FILE=a137_0x3dd627(0x177);export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,'.DS_Store']);function a137_0x3c9e(_0x3ae9d3,_0x2f5938){_0x3ae9d3=_0x3ae9d3-0x169;const _0x3791bc=a137_0x3791();let _0x3c9e6b=_0x3791bc[_0x3ae9d3];return _0x3c9e6b;}function a137_0x3791(){const _0x175fd7=['2580584gzVAWP','975636BMgpoW','965124WezcSX','2TgfkHc','354988rObfJL','932050xIPgjs','lovrabet.skill.json','coverage','SKILL.md','.svn','1204028hUTFTF','1155912aSyRXP','.hg','dist','build','.next','.git'];a137_0x3791=function(){return _0x175fd7;};return a137_0x3791();}export const IGNORED_DIR_NAMES=new Set([a137_0x3dd627(0x16e),a137_0x3dd627(0x16a),a137_0x3dd627(0x178),'node_modules',a137_0x3dd627(0x16d),a137_0x3dd627(0x16b),a137_0x3dd627(0x16c),a137_0x3dd627(0x176),'.turbo','.cache']);
1
+ const a137_0x254896=a137_0xbc9e;function a137_0xbc9e(_0x193a07,_0x3bb74e){_0x193a07=_0x193a07-0xf3;const _0x50ebbc=a137_0x50eb();let _0xbc9e26=_0x50ebbc[_0x193a07];return _0xbc9e26;}(function(_0x327d39,_0x27396a){const _0x48f123=a137_0xbc9e,_0x1649e6=_0x327d39();while(!![]){try{const _0x22a57b=-parseInt(_0x48f123(0x104))/0x1*(parseInt(_0x48f123(0xff))/0x2)+parseInt(_0x48f123(0x10b))/0x3*(parseInt(_0x48f123(0xf3))/0x4)+-parseInt(_0x48f123(0x106))/0x5*(parseInt(_0x48f123(0x108))/0x6)+-parseInt(_0x48f123(0x10a))/0x7+parseInt(_0x48f123(0xfe))/0x8*(-parseInt(_0x48f123(0xf9))/0x9)+parseInt(_0x48f123(0xfb))/0xa*(parseInt(_0x48f123(0xfc))/0xb)+-parseInt(_0x48f123(0x105))/0xc*(-parseInt(_0x48f123(0x103))/0xd);if(_0x22a57b===_0x27396a)break;else _0x1649e6['push'](_0x1649e6['shift']());}catch(_0x2c94ae){_0x1649e6['push'](_0x1649e6['shift']());}}}(a137_0x50eb,0x80d87));export const METADATA_FILE='lovrabet.skill.json';export const SKILL_FILE=a137_0x254896(0x102);export const IGNORED_FILE_NAMES=new Set([METADATA_FILE,a137_0x254896(0xfd)]);export const IGNORED_DIR_NAMES=new Set([a137_0x254896(0x109),a137_0x254896(0xf8),a137_0x254896(0xf5),a137_0x254896(0xfa),a137_0x254896(0xf6),a137_0x254896(0x107),a137_0x254896(0x100),a137_0x254896(0xf4),a137_0x254896(0xf7),a137_0x254896(0x101)]);function a137_0x50eb(){const _0x1ebbdd=['488VopzoP','coverage','.svn','.next','.turbo','.hg','9NqUWgI','node_modules','10ZaEBYC','8461255aHWBEe','.DS_Store','3411896uQQRhU','2CfcCpb','build','.cache','SKILL.md','13qfUzSn','960229HkUhJw','25642464PRDdJb','790975RHqXJS','dist','24zXxYKi','.git','3894436ZIfkBj','4857FSYLAq'];a137_0x50eb=function(){return _0x1ebbdd;};return a137_0x50eb();}
@@ -1 +1 @@
1
- (function(_0x54015e,_0x5835e7){const _0x59b1b7=a138_0xdb88,_0x2cc61c=_0x54015e();while(!![]){try{const _0x2da0d2=parseInt(_0x59b1b7(0x124))/0x1+parseInt(_0x59b1b7(0x129))/0x2+parseInt(_0x59b1b7(0x121))/0x3+parseInt(_0x59b1b7(0x131))/0x4*(parseInt(_0x59b1b7(0x12f))/0x5)+parseInt(_0x59b1b7(0x12a))/0x6+-parseInt(_0x59b1b7(0x133))/0x7*(-parseInt(_0x59b1b7(0x130))/0x8)+-parseInt(_0x59b1b7(0x12b))/0x9;if(_0x2da0d2===_0x5835e7)break;else _0x2cc61c['push'](_0x2cc61c['shift']());}catch(_0xc91950){_0x2cc61c['push'](_0x2cc61c['shift']());}}}(a138_0xe936,0x20a49));import{lstatSync,readlinkSync,realpathSync,renameSync,rmSync,writeFileSync}from'node:fs';function a138_0xe936(){const _0x343cd1=['endsWith','utf8','stringify','Unsafe\x20Skill\x20file\x20path:\x20','130238RgYduK','178584ipjQeY','3509127QJmwZO','validation','startsWith','.tmp','45ctLVql','54424uWxHje','20228npHJVo','from','133KSMJXi','382008pqEMVD','split','isSymbolicLink','126619ZKzjJl'];a138_0xe936=function(){return _0x343cd1;};return a138_0xe936();}import{dirname,isAbsolute,resolve,sep}from'node:path';import{CliErrors}from'../../errors.js';import{normalizeSkillRelativePath}from'./local-files.js';export function resolveManagedFilePath(_0x1e0a08,_0x510831){const _0x3f4718=a138_0xdb88,_0x4afbb8=normalizeSkillRelativePath(_0x510831),_0x304c06=realOrResolved(_0x1e0a08),_0x5f36d0=resolve(_0x304c06,..._0x4afbb8[_0x3f4718(0x122)]('/'));if(!isPathInside(_0x5f36d0,_0x304c06))throw CliErrors[_0x3f4718(0x12c)](_0x3f4718(0x128)+_0x510831);return ensureNoSymlinkInManagedPath(_0x304c06,_0x4afbb8),_0x5f36d0;}export function ensureNoSymlinkInManagedPath(_0x6f310f,_0x1f198b){const _0x1589ba=a138_0xdb88;let _0x45fc58=_0x6f310f;for(const _0x8dfdc of _0x1f198b[_0x1589ba(0x122)]('/')){_0x45fc58=resolve(_0x45fc58,_0x8dfdc);const _0x2aa83e=lstatIfPresent(_0x45fc58);if(_0x2aa83e?.[_0x1589ba(0x123)]())throw CliErrors[_0x1589ba(0x12c)]('Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20'+_0x1f198b);}}function a138_0xdb88(_0x12ffe6,_0x56ebbc){_0x12ffe6=_0x12ffe6-0x121;const _0xe936cf=a138_0xe936();let _0xdb8886=_0xe936cf[_0x12ffe6];return _0xdb8886;}export function isDanglingSymlink(_0x3fb705){try{return lstatSync(_0x3fb705)['isSymbolicLink']();}catch{return![];}}export function resolveSymlinkTarget(_0x3c789b){const _0x1a8b06=readlinkSync(_0x3c789b);return isAbsolute(_0x1a8b06)?_0x1a8b06:resolve(dirname(_0x3c789b),_0x1a8b06);}export function isPathInside(_0x3a465a,_0x3a8154){const _0x3b4bfe=a138_0xdb88,_0x2b3116=_0x3a465a[_0x3b4bfe(0x125)](sep)?_0x3a465a:''+_0x3a465a+sep,_0x234b87=_0x3a8154[_0x3b4bfe(0x125)](sep)?_0x3a8154:''+_0x3a8154+sep;return _0x3a465a===_0x3a8154||_0x2b3116[_0x3b4bfe(0x12d)](_0x234b87);}export function realOrResolved(_0x3c6007){try{return realpathSync(_0x3c6007);}catch{return resolve(_0x3c6007);}}export function lstatIfPresent(_0x274828){try{return lstatSync(_0x274828);}catch{return undefined;}}export function writeTextAtomic(_0x3e5680,_0x4822bf,_0x5c42c9){const _0x1e5996=a138_0xdb88;writeBytesAtomic(_0x3e5680,Buffer[_0x1e5996(0x132)](_0x4822bf,_0x1e5996(0x126)),_0x5c42c9);}export function writeBytesAtomic(_0x2a5c2f,_0x2858ab,_0x4eebaa){const _0x113621=a138_0xdb88,_0x2c99de=_0x2a5c2f+_0x113621(0x12e);try{writeFileSync(_0x2c99de,_0x2858ab,{'mode':_0x4eebaa}),renameSync(_0x2c99de,_0x2a5c2f);}catch(_0x30cebb){try{rmSync(_0x2c99de,{'force':!![]});}catch{}throw _0x30cebb;}}export function writeJsonAtomic(_0x4613b3,_0xb789cc){const _0x354795=a138_0xdb88;writeTextAtomic(_0x4613b3,JSON[_0x354795(0x127)](_0xb789cc,null,0x2)+'\x0a',0x180);}
1
+ (function(_0x543e83,_0x1cf9b3){const _0x132bb4=a138_0xcecd,_0xddcd26=_0x543e83();while(!![]){try{const _0x3536ff=parseInt(_0x132bb4(0xdb))/0x1*(-parseInt(_0x132bb4(0xd8))/0x2)+parseInt(_0x132bb4(0xd9))/0x3*(parseInt(_0x132bb4(0xeb))/0x4)+parseInt(_0x132bb4(0xd7))/0x5*(parseInt(_0x132bb4(0xdc))/0x6)+parseInt(_0x132bb4(0xda))/0x7*(parseInt(_0x132bb4(0xe3))/0x8)+-parseInt(_0x132bb4(0xe1))/0x9+-parseInt(_0x132bb4(0xdf))/0xa+parseInt(_0x132bb4(0xde))/0xb*(parseInt(_0x132bb4(0xdd))/0xc);if(_0x3536ff===_0x1cf9b3)break;else _0xddcd26['push'](_0xddcd26['shift']());}catch(_0x25cc39){_0xddcd26['push'](_0xddcd26['shift']());}}}(a138_0x686a,0x7940a));import{lstatSync,readlinkSync,realpathSync,renameSync,rmSync,writeFileSync}from'node:fs';import{dirname,isAbsolute,resolve,sep}from'node:path';import{CliErrors}from'../../errors.js';import{normalizeSkillRelativePath}from'./local-files.js';export function resolveManagedFilePath(_0x139868,_0x1e39f8){const _0x2b4701=a138_0xcecd,_0x369a34=normalizeSkillRelativePath(_0x1e39f8),_0x5ae2bb=realOrResolved(_0x139868),_0xa85693=resolve(_0x5ae2bb,..._0x369a34['split']('/'));if(!isPathInside(_0xa85693,_0x5ae2bb))throw CliErrors[_0x2b4701(0xea)](_0x2b4701(0xe4)+_0x1e39f8);return ensureNoSymlinkInManagedPath(_0x5ae2bb,_0x369a34),_0xa85693;}export function ensureNoSymlinkInManagedPath(_0xe102b5,_0xe0ab1b){const _0x6526ab=a138_0xcecd;let _0xdc296e=_0xe102b5;for(const _0x2b2764 of _0xe0ab1b[_0x6526ab(0xe7)]('/')){_0xdc296e=resolve(_0xdc296e,_0x2b2764);const _0x59e1c8=lstatIfPresent(_0xdc296e);if(_0x59e1c8?.[_0x6526ab(0xe0)]())throw CliErrors[_0x6526ab(0xea)]('Refusing\x20to\x20write\x20through\x20Skill\x20symlink\x20path:\x20'+_0xe0ab1b);}}export function isDanglingSymlink(_0x5775cf){const _0x124583=a138_0xcecd;try{return lstatSync(_0x5775cf)[_0x124583(0xe0)]();}catch{return![];}}function a138_0xcecd(_0x56109e,_0x319eb8){_0x56109e=_0x56109e-0xd7;const _0x686a08=a138_0x686a();let _0xcecdfe=_0x686a08[_0x56109e];return _0xcecdfe;}function a138_0x686a(){const _0x8df653=['3jqYsxd','5449591EALMHv','7002qRfYSp','18cqMyCt','12JkaXKk','881551emDMaR','4449170OoueBu','isSymbolicLink','1636443XkZPPF','startsWith','8YozIxE','Unsafe\x20Skill\x20file\x20path:\x20','endsWith','.tmp','split','from','stringify','validation','1645208IXokrY','utf8','899390NruLnM','196VIJdmR'];a138_0x686a=function(){return _0x8df653;};return a138_0x686a();}export function resolveSymlinkTarget(_0x196c63){const _0x31029e=readlinkSync(_0x196c63);return isAbsolute(_0x31029e)?_0x31029e:resolve(dirname(_0x196c63),_0x31029e);}export function isPathInside(_0xf8e0f2,_0x17983e){const _0x55ebd8=a138_0xcecd,_0x3e96b6=_0xf8e0f2['endsWith'](sep)?_0xf8e0f2:''+_0xf8e0f2+sep,_0x3f6028=_0x17983e[_0x55ebd8(0xe5)](sep)?_0x17983e:''+_0x17983e+sep;return _0xf8e0f2===_0x17983e||_0x3e96b6[_0x55ebd8(0xe2)](_0x3f6028);}export function realOrResolved(_0x12afad){try{return realpathSync(_0x12afad);}catch{return resolve(_0x12afad);}}export function lstatIfPresent(_0x290ab8){try{return lstatSync(_0x290ab8);}catch{return undefined;}}export function writeTextAtomic(_0x5847d2,_0x56296c,_0x1bd67a){const _0x26cff4=a138_0xcecd;writeBytesAtomic(_0x5847d2,Buffer[_0x26cff4(0xe8)](_0x56296c,_0x26cff4(0xec)),_0x1bd67a);}export function writeBytesAtomic(_0xe94b21,_0x4de70a,_0x4c923e){const _0x1c562c=a138_0xcecd,_0x58a801=_0xe94b21+_0x1c562c(0xe6);try{writeFileSync(_0x58a801,_0x4de70a,{'mode':_0x4c923e}),renameSync(_0x58a801,_0xe94b21);}catch(_0x3687b7){try{rmSync(_0x58a801,{'force':!![]});}catch{}throw _0x3687b7;}}export function writeJsonAtomic(_0x447193,_0x55b27a){const _0x424f0a=a138_0xcecd;writeTextAtomic(_0x447193,JSON[_0x424f0a(0xe9)](_0x55b27a,null,0x2)+'\x0a',0x180);}
@@ -1 +1 @@
1
- (function(_0x2d4341,_0x552f3f){const _0x12aa2b=a139_0x401f,_0xf9debf=_0x2d4341();while(!![]){try{const _0x1e5b0b=parseInt(_0x12aa2b(0x193))/0x1*(-parseInt(_0x12aa2b(0x196))/0x2)+-parseInt(_0x12aa2b(0x187))/0x3*(-parseInt(_0x12aa2b(0x191))/0x4)+-parseInt(_0x12aa2b(0x18e))/0x5*(-parseInt(_0x12aa2b(0x194))/0x6)+parseInt(_0x12aa2b(0x192))/0x7*(-parseInt(_0x12aa2b(0x188))/0x8)+-parseInt(_0x12aa2b(0x197))/0x9+parseInt(_0x12aa2b(0x190))/0xa*(-parseInt(_0x12aa2b(0x186))/0xb)+parseInt(_0x12aa2b(0x18c))/0xc*(parseInt(_0x12aa2b(0x18d))/0xd);if(_0x1e5b0b===_0x552f3f)break;else _0xf9debf['push'](_0xf9debf['shift']());}catch(_0x3f573c){_0xf9debf['push'](_0xf9debf['shift']());}}}(a139_0x27dc,0xdd336));function a139_0x401f(_0x57302d,_0x352dc5){_0x57302d=_0x57302d-0x186;const _0x27dc7c=a139_0x27dc();let _0x401f80=_0x27dc7c[_0x57302d];return _0x401f80;}import{createHash}from'node:crypto';import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0x43a4fb){const _0x5ac04a=a139_0x401f;return createHash(_0x5ac04a(0x18f))[_0x5ac04a(0x18a)](_0x43a4fb)[_0x5ac04a(0x189)](_0x5ac04a(0x18b));}export function fileHash(_0x5edbed){return bufferSha256(fileContent(_0x5edbed));}function a139_0x27dc(){const _0x1a3f10=['13keEZgb','116295nOJelT','sha256','90YnHOAT','5129076dUPdin','1841dMaAsY','1owCAgA','18JviLIb','path','2563846zaMZjk','9130365BJGhDu','1464903ugZwhz','3rVHJvk','28816toAmQP','digest','update','hex','47955396KIzFNa'];a139_0x27dc=function(){return _0x1a3f10;};return a139_0x27dc();}export function bufferSha256(_0x2e2d93){const _0x59cdb3=a139_0x401f;return createHash(_0x59cdb3(0x18f))[_0x59cdb3(0x18a)](_0x2e2d93)[_0x59cdb3(0x189)](_0x59cdb3(0x18b));}export function fileTreeHash(_0xe91a13){const _0x364db3=a139_0x401f,_0xf05132=createHash('sha256');for(const _0x4b667a of normalizeManifestFiles(_0xe91a13)){_0xf05132[_0x364db3(0x18a)](_0x4b667a[_0x364db3(0x195)]),_0xf05132[_0x364db3(0x18a)]('\x00'),_0xf05132[_0x364db3(0x18a)](_0x4b667a[_0x364db3(0x18f)]),_0xf05132[_0x364db3(0x18a)]('\x00'),_0xf05132[_0x364db3(0x18a)](String(_0x4b667a['size'])),_0xf05132['update']('\x00');}return _0xf05132['digest'](_0x364db3(0x18b));}
1
+ (function(_0x4b5eb4,_0x3e3c5c){const _0x36d3d0=a139_0x3e59,_0x4d6d05=_0x4b5eb4();while(!![]){try{const _0x2310a1=parseInt(_0x36d3d0(0xeb))/0x1+-parseInt(_0x36d3d0(0xef))/0x2*(-parseInt(_0x36d3d0(0xe8))/0x3)+parseInt(_0x36d3d0(0xf0))/0x4+-parseInt(_0x36d3d0(0xee))/0x5+-parseInt(_0x36d3d0(0xf1))/0x6+-parseInt(_0x36d3d0(0xe9))/0x7*(-parseInt(_0x36d3d0(0xed))/0x8)+-parseInt(_0x36d3d0(0xec))/0x9;if(_0x2310a1===_0x3e3c5c)break;else _0x4d6d05['push'](_0x4d6d05['shift']());}catch(_0x5eca4e){_0x4d6d05['push'](_0x4d6d05['shift']());}}}(a139_0x23d0,0x2de77));import{createHash}from'node:crypto';function a139_0x23d0(){const _0x22a959=['468174rsdGSd','path','digest','sha256','update','765987IkaXOg','14NxqAVa','hex','97106DLvIWR','1192833FvsmNm','670936dfyjTi','739470YgkRoJ','2VHBCgx','105256CLIHiZ'];a139_0x23d0=function(){return _0x22a959;};return a139_0x23d0();}import{fileContent,normalizeManifestFiles}from'./local-files.js';export function contentHash(_0xdd26ea){const _0x35417b=a139_0x3e59;return createHash('sha256')['update'](_0xdd26ea)[_0x35417b(0xf3)](_0x35417b(0xea));}export function fileHash(_0x44eeab){return bufferSha256(fileContent(_0x44eeab));}function a139_0x3e59(_0x51a173,_0x598d9d){_0x51a173=_0x51a173-0xe6;const _0x23d036=a139_0x23d0();let _0x3e59a0=_0x23d036[_0x51a173];return _0x3e59a0;}export function bufferSha256(_0x266167){const _0x1aaccd=a139_0x3e59;return createHash(_0x1aaccd(0xe6))[_0x1aaccd(0xe7)](_0x266167)[_0x1aaccd(0xf3)](_0x1aaccd(0xea));}export function fileTreeHash(_0x4300b8){const _0x53819a=a139_0x3e59,_0x3c8a5b=createHash('sha256');for(const _0x2b3d59 of normalizeManifestFiles(_0x4300b8)){_0x3c8a5b[_0x53819a(0xe7)](_0x2b3d59[_0x53819a(0xf2)]),_0x3c8a5b[_0x53819a(0xe7)]('\x00'),_0x3c8a5b[_0x53819a(0xe7)](_0x2b3d59['sha256']),_0x3c8a5b[_0x53819a(0xe7)]('\x00'),_0x3c8a5b[_0x53819a(0xe7)](String(_0x2b3d59['size'])),_0x3c8a5b['update']('\x00');}return _0x3c8a5b[_0x53819a(0xf3)](_0x53819a(0xea));}
@@ -1 +1 @@
1
- const a140_0x418554=a140_0xb509;(function(_0x2b70fb,_0x5f4010){const _0xcc8a3a=a140_0xb509,_0x1173d4=_0x2b70fb();while(!![]){try{const _0xf469d7=parseInt(_0xcc8a3a(0x119))/0x1+-parseInt(_0xcc8a3a(0x113))/0x2+parseInt(_0xcc8a3a(0x112))/0x3+parseInt(_0xcc8a3a(0x11f))/0x4*(parseInt(_0xcc8a3a(0x11e))/0x5)+parseInt(_0xcc8a3a(0x120))/0x6+parseInt(_0xcc8a3a(0x115))/0x7+parseInt(_0xcc8a3a(0x11a))/0x8*(-parseInt(_0xcc8a3a(0x117))/0x9);if(_0xf469d7===_0x5f4010)break;else _0x1173d4['push'](_0x1173d4['shift']());}catch(_0x468a3c){_0x1173d4['push'](_0x1173d4['shift']());}}}(a140_0x49bd,0xa72f1));import{resolve}from'node:path';import{resolveSkillSyncPaths,runtimeAgentSkillRoots,safePathSegment}from'./paths.js';function a140_0xb509(_0x90be1c,_0x5486d5){_0x90be1c=_0x90be1c-0x112;const _0x49bd3c=a140_0x49bd();let _0xb5098e=_0x49bd3c[_0x90be1c];return _0xb5098e;}function a140_0x49bd(){const _0x43a982=['.agents','20PLefTl','823452qHAQJJ','7868670sHAjGg','appCode','1476204wONwYf','1084994Djsqmm','cwd','9248498DHeBQx','freeze','9KVsPUh','skills','926106myUmGB','29176024TsYFCF','global','managedRoot'];a140_0x49bd=function(){return _0x43a982;};return a140_0x49bd();}export function resolveRuntimeSkillInstallTarget(_0x3c759b,_0x32b9c6=a140_0x418554(0x11b),_0x52c457={}){const _0x3f754b=a140_0x418554,_0x3af4e7=resolveSkillSyncPaths(_0x52c457),_0x5a6df2=safePathSegment(_0x3c759b,_0x3f754b(0x121)),_0x58ac05=_0x32b9c6==='project'?[resolve(_0x52c457[_0x3f754b(0x114)]??process[_0x3f754b(0x114)](),_0x3f754b(0x11d),_0x3f754b(0x118))]:runtimeAgentSkillRoots(_0x3af4e7);return Object[_0x3f754b(0x116)]({'scope':_0x32b9c6,'appCode':_0x5a6df2,'skillRoots':Object[_0x3f754b(0x116)](_0x58ac05),'managedRoot':_0x3af4e7[_0x3f754b(0x11c)]});}
1
+ const a140_0x3eb2bb=a140_0x5a63;(function(_0x20c10a,_0x599182){const _0x2963d1=a140_0x5a63,_0x13945f=_0x20c10a();while(!![]){try{const _0x1bccbe=-parseInt(_0x2963d1(0x1d7))/0x1*(-parseInt(_0x2963d1(0x1d3))/0x2)+parseInt(_0x2963d1(0x1ce))/0x3+-parseInt(_0x2963d1(0x1d2))/0x4+-parseInt(_0x2963d1(0x1d1))/0x5+-parseInt(_0x2963d1(0x1cf))/0x6+parseInt(_0x2963d1(0x1d6))/0x7*(parseInt(_0x2963d1(0x1ca))/0x8)+-parseInt(_0x2963d1(0x1d0))/0x9*(-parseInt(_0x2963d1(0x1d4))/0xa);if(_0x1bccbe===_0x599182)break;else _0x13945f['push'](_0x13945f['shift']());}catch(_0x50b7bc){_0x13945f['push'](_0x13945f['shift']());}}}(a140_0x7982,0xbe2db));import{resolve}from'node:path';import{resolveSkillSyncPaths,runtimeAgentSkillRoots,safePathSegment}from'./paths.js';function a140_0x7982(){const _0x465739=['890nnlHNG','freeze','3466855TyHqgN','1dKDdhb','skills','.agents','cwd','8UnMJBP','appCode','project','global','1320498svInXO','4034802CVBtbb','132903mTuTEe','1595825jWTRSs','4668640llvOqj','1376138kPaSsY'];a140_0x7982=function(){return _0x465739;};return a140_0x7982();}function a140_0x5a63(_0x59f6eb,_0x11108c){_0x59f6eb=_0x59f6eb-0x1ca;const _0x798233=a140_0x7982();let _0x5a63da=_0x798233[_0x59f6eb];return _0x5a63da;}export function resolveRuntimeSkillInstallTarget(_0x435a88,_0x16b3d3=a140_0x3eb2bb(0x1cd),_0x3b8b63={}){const _0x104e62=a140_0x3eb2bb,_0x2e1b71=resolveSkillSyncPaths(_0x3b8b63),_0x27b762=safePathSegment(_0x435a88,_0x104e62(0x1cb)),_0x4c5e2e=_0x16b3d3===_0x104e62(0x1cc)?[resolve(_0x3b8b63[_0x104e62(0x1da)]??process['cwd'](),_0x104e62(0x1d9),_0x104e62(0x1d8))]:runtimeAgentSkillRoots(_0x2e1b71);return Object['freeze']({'scope':_0x16b3d3,'appCode':_0x27b762,'skillRoots':Object[_0x104e62(0x1d5)](_0x4c5e2e),'managedRoot':_0x2e1b71['managedRoot']});}
@@ -1 +1 @@
1
- const a141_0x4b3340=a141_0x259f;(function(_0x55750b,_0x4fc9de){const _0x2f3c11=a141_0x259f,_0x5817ac=_0x55750b();while(!![]){try{const _0x2fb504=parseInt(_0x2f3c11(0xc1))/0x1+-parseInt(_0x2f3c11(0xda))/0x2+parseInt(_0x2f3c11(0xc3))/0x3*(-parseInt(_0x2f3c11(0xbd))/0x4)+parseInt(_0x2f3c11(0xc6))/0x5*(-parseInt(_0x2f3c11(0xc7))/0x6)+-parseInt(_0x2f3c11(0xd4))/0x7+parseInt(_0x2f3c11(0xbf))/0x8*(-parseInt(_0x2f3c11(0xcf))/0x9)+parseInt(_0x2f3c11(0xb8))/0xa*(parseInt(_0x2f3c11(0xb6))/0xb);if(_0x2fb504===_0x4fc9de)break;else _0x5817ac['push'](_0x5817ac['shift']());}catch(_0x102ca7){_0x5817ac['push'](_0x5817ac['shift']());}}}(a141_0x1ad1,0xd7430));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a141_0x4c32bf 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_0x4c32bf,RESERVED_PROJECT_SKILL_CODES=new Set([a141_0x4b3340(0xb3),a141_0x4b3340(0xdd),a141_0x4b3340(0xdc)]);function a141_0x259f(_0x11b1a4,_0x32a3f0){_0x11b1a4=_0x11b1a4-0xaa;const _0x1ad137=a141_0x1ad1();let _0x259fde=_0x1ad137[_0x11b1a4];return _0x259fde;}export function linkEffectiveRuntimeSkills(_0x631a12,_0x5c8736){const _0x5e1bf0=a141_0x4b3340,_0x4485a5=new Map();for(const _0x27b1be of _0x631a12){const _0x3d5d8f=_0x27b1be[_0x5e1bf0(0xd9)][_0x5e1bf0(0xc5)];if(!_0x3d5d8f)continue;const _0x15483a=_0x4485a5[_0x5e1bf0(0xcb)](_0x3d5d8f);(!_0x15483a||_0x27b1be[_0x5e1bf0(0xb7)]===_0x5e1bf0(0xc0))&&_0x4485a5['set'](_0x3d5d8f,_0x27b1be);}const _0x94f387=[];for(const _0x1d276e of _0x4485a5[_0x5e1bf0(0xdb)]()){const _0xa63e1c=requireSkillCode(_0x1d276e[_0x5e1bf0(0xd9)]),_0x54175f=readMetadataIfPresent(_0x1d276e[_0x5e1bf0(0xde)]);if(_0x54175f?.['appCode']!==_0x5c8736[_0x5e1bf0(0xcd)]||_0x54175f[_0x5e1bf0(0xc5)]!==_0xa63e1c)throw CliErrors[_0x5e1bf0(0xd0)](_0x5e1bf0(0xb1)+_0x5c8736[_0x5e1bf0(0xcd)]+':\x20'+_0x1d276e[_0x5e1bf0(0xde)]);const _0x3e96db=runtimeSkillLinkName(_0x5c8736,_0xa63e1c);for(const _0x526fac of _0x5c8736[_0x5e1bf0(0xb2)]){_0x94f387[_0x5e1bf0(0xdf)](ensureManagedSymlink(resolve(_0x526fac,_0x3e96db),_0x1d276e[_0x5e1bf0(0xd1)],_0x5c8736,_0xa63e1c));}}return _0x94f387;}export function pruneStaleRuntimeSkillLinks(_0x4b86ee,_0x47f687,_0x29a987){const _0x5a4fc1=a141_0x4b3340,_0x25813d=new Set([..._0x47f687][_0x5a4fc1(0xce)](_0x1a8014=>_0x1a8014[_0x5a4fc1(0xbb)]())['filter'](Boolean)),_0x3e7fbb=_0x29a987?new Set([..._0x29a987][_0x5a4fc1(0xce)](_0xf01f81=>_0xf01f81[_0x5a4fc1(0xbb)]())['filter'](Boolean)):undefined,_0x363576=[];for(const _0x568d3c of _0x4b86ee[_0x5a4fc1(0xb2)]){for(const _0xfb5cb8 of managedTargetSkillLinkPaths(_0x568d3c,_0x4b86ee)){const _0x30e075=runtimeSkillCodeFromLink(_0x4b86ee,_0xfb5cb8);if(_0x3e7fbb&&!_0x3e7fbb['has'](_0x30e075))continue;if(_0x25813d[_0x5a4fc1(0xab)](_0x30e075))continue;_0x363576[_0x5a4fc1(0xdf)](removeManagedSkillLink(_0xfb5cb8,_0x4b86ee,_0x30e075));}}return _0x363576;}export function pruneStaleRuntimeSkillCache(_0x364ff7,_0x3d818b={}){const _0xfae03e=a141_0x4b3340,_0xa0a630=new Set([..._0x364ff7[_0xfae03e(0xaa)]][_0xfae03e(0xce)](_0x42533e=>_0x42533e[_0xfae03e(0xbb)]())['filter'](Boolean)),_0x18d013=_0x364ff7['pruneSkillCodes']?new Set([..._0x364ff7['pruneSkillCodes']][_0xfae03e(0xce)](_0x29f1df=>_0x29f1df['trim']())[_0xfae03e(0xb4)](Boolean)):undefined,_0x244c21=_0x364ff7['scopes']??['personal',_0xfae03e(0xca)],_0x2e6a41=resolve(getRuntimeSkillCacheRoot(_0x364ff7['env'],_0x364ff7[_0xfae03e(0xac)],_0x3d818b),safePathSegment(_0x364ff7[_0xfae03e(0xcd)],_0xfae03e(0xcd))),_0x31ca39=[];for(const _0x2d2cb3 of _0x244c21){const _0x4b0fd6=resolve(_0x2e6a41,_0x2d2cb3);if(!existsSync(_0x4b0fd6))continue;for(const _0x1f133e of readdirSync(_0x4b0fd6,{'withFileTypes':!![]})){if(!_0x1f133e[_0xfae03e(0xaf)]())continue;const _0xf6e99f=_0x1f133e[_0xfae03e(0xb9)];if(_0x18d013&&!_0x18d013[_0xfae03e(0xab)](_0xf6e99f))continue;if(_0xa0a630[_0xfae03e(0xab)](_0xf6e99f))continue;const _0x38d586=resolve(_0x4b0fd6,_0xf6e99f),_0x3203a4=readMetadataIfPresent(resolve(_0x38d586,METADATA_FILE));if(_0x3203a4?.['appCode']!==_0x364ff7['appCode']||_0x3203a4[_0xfae03e(0xb7)]!==_0x2d2cb3||_0x3203a4[_0xfae03e(0xc5)]!==_0xf6e99f){_0x31ca39['push']({'path':_0x38d586,'action':_0xfae03e(0xd8),'reason':_0xfae03e(0xcc)});continue;}if(isLinkedFromAnyRoot(_0x38d586,_0x364ff7['protectedLinkRoots']??[])){_0x31ca39[_0xfae03e(0xdf)]({'path':_0x38d586,'action':_0xfae03e(0xd8),'reason':'linked-from-protected-root'});continue;}removeSync(_0x38d586),_0x31ca39[_0xfae03e(0xdf)]({'path':_0x38d586,'action':'removed'});}}return _0x31ca39;}export function linkGlobalRuntimeSkills(_0x78634a,_0x4f2ad1={}){const _0x1aa149=a141_0x4b3340,_0x70053c=resolveSkillSyncPaths(_0x4f2ad1),_0x525462=[];for(const _0xd29e6 of _0x78634a){if(_0xd29e6[_0x1aa149(0xb7)]!=='builtin')throw CliErrors['validation'](_0x1aa149(0xc4)+_0xd29e6[_0x1aa149(0xb7)]);const _0x1eed14=requireSkillCode(_0xd29e6['skill']),_0x561286=copyManagedSkillDirectory(_0xd29e6['dir'],resolve(_0x70053c['agentsSkillsDir'],_0x1eed14));_0x525462[_0x1aa149(0xdf)]({..._0x561286,'contentHash':_0xd29e6[_0x1aa149(0xd7)]});}return _0x525462;}function ensureManagedSymlink(_0x181430,_0x3b36a0,_0x56402f,_0x48da62){const _0x18dc84=a141_0x4b3340;mkdirSync(dirname(_0x181430),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x181430)||isDanglingSymlink(_0x181430)){const _0x486daf=lstatSync(_0x181430);if(!_0x486daf['isSymbolicLink']())throw CliErrors[_0x18dc84(0xd0)](_0x18dc84(0xe0)+_0x181430);const _0x412a63=resolveSymlinkTarget(_0x181430);if(!isPathInside(realOrResolved(_0x412a63),realOrResolved(_0x56402f['managedRoot'])))throw CliErrors[_0x18dc84(0xd0)]('Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20'+_0x181430);if(realOrResolved(_0x412a63)===realOrResolved(_0x3b36a0))return{'path':_0x181430,'target':_0x3b36a0,'action':'unchanged'};const _0x2e0a3a=readMetadataIfPresent(resolve(_0x412a63,METADATA_FILE));if(_0x56402f[_0x18dc84(0xb7)]===_0x18dc84(0xc8)&&(_0x2e0a3a?.[_0x18dc84(0xcd)]!==_0x56402f[_0x18dc84(0xcd)]||_0x2e0a3a[_0x18dc84(0xc5)]!==_0x48da62))throw CliErrors[_0x18dc84(0xd0)](_0x18dc84(0xd6)+_0x181430);return unlinkSync(_0x181430),symlinkSync(_0x3b36a0,_0x181430,_0x18dc84(0xd1)),{'path':_0x181430,'target':_0x3b36a0,'action':_0x18dc84(0xbc)};}return symlinkSync(_0x3b36a0,_0x181430,_0x18dc84(0xd1)),{'path':_0x181430,'target':_0x3b36a0,'action':'created'};}function managedTargetSkillLinkPaths(_0x2740ee,_0x3d531e){const _0x1317b=a141_0x4b3340;if(!existsSync(_0x2740ee))return[];const _0x39f1dd=_0x3d531e[_0x1317b(0xcd)]+'--';return readdirSync(_0x2740ee,{'withFileTypes':!![]})[_0x1317b(0xb4)](_0x144020=>_0x3d531e[_0x1317b(0xb7)]===_0x1317b(0xc8)||_0x144020[_0x1317b(0xb9)][_0x1317b(0xb5)](_0x39f1dd))['map'](_0x37fcde=>resolve(_0x2740ee,_0x37fcde[_0x1317b(0xb9)]));}function removeManagedSkillLink(_0x56f281,_0x385b78,_0x2a075f){const _0x3d7388=a141_0x4b3340,_0x5a9fe0=lstatIfPresent(_0x56f281);if(!_0x5a9fe0?.['isSymbolicLink']())return{'path':_0x56f281,'action':_0x3d7388(0xd8),'reason':'not-managed-symlink'};const _0x312aa3=resolveSymlinkTarget(_0x56f281);if(!isPathInside(realOrResolved(_0x312aa3),realOrResolved(_0x385b78[_0x3d7388(0xad)])))return{'path':_0x56f281,'action':_0x3d7388(0xd8),'reason':'external-symlink'};const _0x4c7d78=readMetadataIfPresent(resolve(_0x312aa3,METADATA_FILE));if(_0x385b78[_0x3d7388(0xb7)]===_0x3d7388(0xc8)&&(_0x4c7d78?.[_0x3d7388(0xcd)]!==_0x385b78[_0x3d7388(0xcd)]||_0x4c7d78['skillCode']!==_0x2a075f))return{'path':_0x56f281,'action':'skipped','reason':_0x3d7388(0xcc)};return unlinkSync(_0x56f281),{'path':_0x56f281,'action':_0x3d7388(0xd5)};}function isLinkedFromAnyRoot(_0x4ab339,_0x3667ad){const _0x38a861=a141_0x4b3340,_0x21c5c5=realOrResolved(_0x4ab339);for(const _0x5513f6 of _0x3667ad){if(!existsSync(_0x5513f6))continue;for(const _0x3ab812 of readdirSync(_0x5513f6,{'withFileTypes':!![]})){if(!_0x3ab812['isSymbolicLink']())continue;const _0x510d39=resolve(_0x5513f6,_0x3ab812[_0x38a861(0xb9)]);if(realOrResolved(resolveSymlinkTarget(_0x510d39))===_0x21c5c5)return!![];}}return![];}function runtimeSkillLinkName(_0x1a8ce7,_0x45cabf){const _0x2ece4c=a141_0x4b3340,_0x5df586=safePathSegment(_0x45cabf,_0x2ece4c(0xc5));if(_0x1a8ce7[_0x2ece4c(0xb7)]===_0x2ece4c(0xc8)&&RESERVED_PROJECT_SKILL_CODES[_0x2ece4c(0xab)](_0x5df586))throw CliErrors[_0x2ece4c(0xd0)]('Refusing\x20to\x20shadow\x20reserved\x20Agent\x20Skill\x20in\x20project\x20scope:\x20'+_0x5df586);return _0x1a8ce7[_0x2ece4c(0xb7)]===_0x2ece4c(0xc8)?_0x5df586:_0x1a8ce7[_0x2ece4c(0xcd)]+'--'+_0x5df586;}function a141_0x1ad1(){const _0x1acdb9=['length','6443080amuFaF','removed','Refusing\x20to\x20overwrite\x20managed\x20Skill\x20link\x20owned\x20by\x20another\x20app\x20or\x20code:\x20','contentHash','skipped','skill','1800966QTiLDb','values','secret-retriever','runtime-observe','metadataPath','push','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','activeSkillCodes','has','accessKey','managedRoot','unchanged','isDirectory','builtin','Refusing\x20to\x20link\x20Skill\x20metadata\x20outside\x20target\x20','skillRoots','lovrabet','filter','startsWith','22fdhXRZ','scope','22363730JYHCss','name','isSymbolicLink','trim','updated','4AvIEBh','created','3539912mtMYuk','personal','709494fWHACH','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','4432398iuhvNt','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','skillCode','35875qARTMq','468dbltmQ','project','Refusing\x20to\x20copy\x20Skill\x20symlink:\x20','company','get','metadata-mismatch','appCode','map','9lUKPls','validation','dir','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20'];a141_0x1ad1=function(){return _0x1acdb9;};return a141_0x1ad1();}function runtimeSkillCodeFromLink(_0x450577,_0x4d7033){const _0x5062a4=a141_0x4b3340,_0x6238ac=basename(_0x4d7033);return _0x450577['scope']===_0x5062a4(0xc8)?_0x6238ac:_0x6238ac['slice']((_0x450577[_0x5062a4(0xcd)]+'--')[_0x5062a4(0xd3)]);}export function copyManagedSkillDirectory(_0x33a730,_0x51af75){const _0xae9364=a141_0x4b3340,_0x5a69da=resolve(_0x51af75,METADATA_FILE),_0x3e4e28=existsSync(_0x51af75);if(_0x3e4e28){const _0x44ddeb=lstatSync(_0x51af75);if(_0x44ddeb['isSymbolicLink']())throw CliErrors['validation']('Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20'+_0x51af75);if(!_0x44ddeb[_0xae9364(0xaf)]())throw CliErrors[_0xae9364(0xd0)](_0xae9364(0xc2)+_0x51af75);const _0x1b7b4f=readMetadataIfPresent(_0x5a69da);if(_0x1b7b4f?.[_0xae9364(0xb7)]!==_0xae9364(0xb0))throw CliErrors[_0xae9364(0xd0)](_0xae9364(0xd2)+_0x51af75);}ensureDirSync(dirname(_0x51af75));const _0x2e1446=_0x3e4e28?readMetadataIfPresent(_0x5a69da)?.[_0xae9364(0xd7)]:undefined,_0x1483c8=readMetadataIfPresent(resolve(_0x33a730,METADATA_FILE))?.[_0xae9364(0xd7)];return _0x3e4e28&&removeSync(_0x51af75),copySkillDirectory(_0x33a730,_0x51af75),{'path':_0x51af75,'target':_0x33a730,'action':!_0x3e4e28?_0xae9364(0xbe):_0x2e1446===_0x1483c8?_0xae9364(0xae):_0xae9364(0xbc)};}function copySkillDirectory(_0x2dbbd6,_0x3c2b75){copySync(_0x2dbbd6,_0x3c2b75,{'dereference':![],'overwrite':!![],'filter'(_0x2804b6){const _0x607c1d=a141_0x259f;if(lstatSync(_0x2804b6)[_0x607c1d(0xba)]())throw CliErrors[_0x607c1d(0xd0)](_0x607c1d(0xc9)+_0x2804b6);return!![];}});}
1
+ const a141_0x33b670=a141_0x14f2;(function(_0x2eabba,_0x4f8488){const _0x5762de=a141_0x14f2,_0x178157=_0x2eabba();while(!![]){try{const _0x46506e=-parseInt(_0x5762de(0x9f))/0x1*(parseInt(_0x5762de(0xb7))/0x2)+-parseInt(_0x5762de(0xa1))/0x3+-parseInt(_0x5762de(0xc7))/0x4+-parseInt(_0x5762de(0x9b))/0x5+parseInt(_0x5762de(0xab))/0x6+-parseInt(_0x5762de(0xa5))/0x7*(-parseInt(_0x5762de(0xb1))/0x8)+parseInt(_0x5762de(0xb2))/0x9;if(_0x46506e===_0x4f8488)break;else _0x178157['push'](_0x178157['shift']());}catch(_0x59f6e1){_0x178157['push'](_0x178157['shift']());}}}(a141_0x3df8,0x9971d));import{existsSync,lstatSync,mkdirSync,readdirSync,symlinkSync,unlinkSync}from'node:fs';import{basename,dirname,resolve}from'node:path';import a141_0x50d24e 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_0x50d24e,RESERVED_PROJECT_SKILL_CODES=new Set([a141_0x33b670(0xa6),a141_0x33b670(0xc4),a141_0x33b670(0xbc)]);export function linkEffectiveRuntimeSkills(_0x57cb8c,_0x31057a){const _0x1c77fd=a141_0x33b670,_0x256639=new Map();for(const _0x3874b3 of _0x57cb8c){const _0x316008=_0x3874b3['skill'][_0x1c77fd(0xcf)];if(!_0x316008)continue;const _0x3164a1=_0x256639[_0x1c77fd(0xa4)](_0x316008);(!_0x3164a1||_0x3874b3['scope']===_0x1c77fd(0xc8))&&_0x256639[_0x1c77fd(0xa8)](_0x316008,_0x3874b3);}const _0x21bfba=[];for(const _0x4d107d of _0x256639['values']()){const _0x1a150b=requireSkillCode(_0x4d107d[_0x1c77fd(0xc1)]),_0x3b5ada=readMetadataIfPresent(_0x4d107d[_0x1c77fd(0xad)]);if(_0x3b5ada?.[_0x1c77fd(0xae)]!==_0x31057a[_0x1c77fd(0xae)]||_0x3b5ada[_0x1c77fd(0xcf)]!==_0x1a150b)throw CliErrors[_0x1c77fd(0xc6)]('Refusing\x20to\x20link\x20Skill\x20metadata\x20outside\x20target\x20'+_0x31057a['appCode']+':\x20'+_0x4d107d[_0x1c77fd(0xad)]);const _0x38986c=runtimeSkillLinkName(_0x31057a,_0x1a150b);for(const _0x33b850 of _0x31057a[_0x1c77fd(0xd0)]){_0x21bfba[_0x1c77fd(0xb9)](ensureManagedSymlink(resolve(_0x33b850,_0x38986c),_0x4d107d[_0x1c77fd(0xb6)],_0x31057a,_0x1a150b));}}return _0x21bfba;}export function pruneStaleRuntimeSkillLinks(_0x43407b,_0x1343ee,_0x391f7d){const _0x58a280=a141_0x33b670,_0x1a590a=new Set([..._0x1343ee][_0x58a280(0x9a)](_0x44515a=>_0x44515a[_0x58a280(0xb3)]())[_0x58a280(0xbf)](Boolean)),_0x4e3c3f=_0x391f7d?new Set([..._0x391f7d][_0x58a280(0x9a)](_0x403045=>_0x403045[_0x58a280(0xb3)]())[_0x58a280(0xbf)](Boolean)):undefined,_0x22b1bd=[];for(const _0x1faaa4 of _0x43407b['skillRoots']){for(const _0x3ea6ad of managedTargetSkillLinkPaths(_0x1faaa4,_0x43407b)){const _0x223bbe=runtimeSkillCodeFromLink(_0x43407b,_0x3ea6ad);if(_0x4e3c3f&&!_0x4e3c3f[_0x58a280(0xa2)](_0x223bbe))continue;if(_0x1a590a[_0x58a280(0xa2)](_0x223bbe))continue;_0x22b1bd[_0x58a280(0xb9)](removeManagedSkillLink(_0x3ea6ad,_0x43407b,_0x223bbe));}}return _0x22b1bd;}export function pruneStaleRuntimeSkillCache(_0x27b952,_0x5c5002={}){const _0x1ba0bb=a141_0x33b670,_0x5ccf69=new Set([..._0x27b952[_0x1ba0bb(0xc5)]][_0x1ba0bb(0x9a)](_0x1acdcc=>_0x1acdcc['trim']())[_0x1ba0bb(0xbf)](Boolean)),_0x24fd3e=_0x27b952['pruneSkillCodes']?new Set([..._0x27b952['pruneSkillCodes']][_0x1ba0bb(0x9a)](_0xb0ad0e=>_0xb0ad0e[_0x1ba0bb(0xb3)]())['filter'](Boolean)):undefined,_0x50e321=_0x27b952['scopes']??[_0x1ba0bb(0xc8),'company'],_0x146b58=resolve(getRuntimeSkillCacheRoot(_0x27b952[_0x1ba0bb(0xa3)],_0x27b952[_0x1ba0bb(0xcb)],_0x5c5002),safePathSegment(_0x27b952[_0x1ba0bb(0xae)],_0x1ba0bb(0xae))),_0x3085de=[];for(const _0x55a8b4 of _0x50e321){const _0x4408b1=resolve(_0x146b58,_0x55a8b4);if(!existsSync(_0x4408b1))continue;for(const _0x1d6311 of readdirSync(_0x4408b1,{'withFileTypes':!![]})){if(!_0x1d6311[_0x1ba0bb(0x9c)]())continue;const _0x499ba5=_0x1d6311[_0x1ba0bb(0xa0)];if(_0x24fd3e&&!_0x24fd3e[_0x1ba0bb(0xa2)](_0x499ba5))continue;if(_0x5ccf69[_0x1ba0bb(0xa2)](_0x499ba5))continue;const _0x54bf66=resolve(_0x4408b1,_0x499ba5),_0x23da76=readMetadataIfPresent(resolve(_0x54bf66,METADATA_FILE));if(_0x23da76?.[_0x1ba0bb(0xae)]!==_0x27b952[_0x1ba0bb(0xae)]||_0x23da76[_0x1ba0bb(0xc9)]!==_0x55a8b4||_0x23da76[_0x1ba0bb(0xcf)]!==_0x499ba5){_0x3085de['push']({'path':_0x54bf66,'action':_0x1ba0bb(0xba),'reason':_0x1ba0bb(0xcc)});continue;}if(isLinkedFromAnyRoot(_0x54bf66,_0x27b952[_0x1ba0bb(0xa9)]??[])){_0x3085de[_0x1ba0bb(0xb9)]({'path':_0x54bf66,'action':'skipped','reason':'linked-from-protected-root'});continue;}removeSync(_0x54bf66),_0x3085de[_0x1ba0bb(0xb9)]({'path':_0x54bf66,'action':'removed'});}}return _0x3085de;}function a141_0x3df8(){const _0x5cb55e=['secret-retriever','Refusing\x20to\x20overwrite\x20global\x20Skill\x20symlink:\x20','removed','filter','builtin','skill','Only\x20builtin\x20Skills\x20can\x20be\x20linked\x20into\x20the\x20global\x20Skill\x20root:\x20','not-managed-symlink','runtime-observe','activeSkillCodes','validation','3691516vTDhWf','personal','scope','created','accessKey','metadata-mismatch','length','Refusing\x20to\x20shadow\x20reserved\x20Agent\x20Skill\x20in\x20project\x20scope:\x20','skillCode','skillRoots','Refusing\x20to\x20overwrite\x20unmanaged\x20symlink:\x20','startsWith','map','1392460pJeHCu','isDirectory','Refusing\x20to\x20overwrite\x20unmanaged\x20path:\x20','Refusing\x20to\x20overwrite\x20unmanaged\x20global\x20Skill\x20directory:\x20','1vkqyed','name','3456615ebRmiL','has','env','get','29239sLXSTd','lovrabet','agentsSkillsDir','set','protectedLinkRoots','unchanged','6918204AdBTDt','managedRoot','metadataPath','appCode','project','Refusing\x20to\x20overwrite\x20global\x20Skill\x20path:\x20','2056LnpNiJ','16160940dlEHys','trim','isSymbolicLink','updated','dir','2080196HDyAdk','contentHash','push','skipped','Refusing\x20to\x20overwrite\x20managed\x20Skill\x20link\x20owned\x20by\x20another\x20app\x20or\x20code:\x20'];a141_0x3df8=function(){return _0x5cb55e;};return a141_0x3df8();}export function linkGlobalRuntimeSkills(_0xdfdaa3,_0x50cd97={}){const _0x5ef831=a141_0x33b670,_0x26258f=resolveSkillSyncPaths(_0x50cd97),_0x466567=[];for(const _0x43707e of _0xdfdaa3){if(_0x43707e[_0x5ef831(0xc9)]!==_0x5ef831(0xc0))throw CliErrors['validation'](_0x5ef831(0xc2)+_0x43707e[_0x5ef831(0xc9)]);const _0x241305=requireSkillCode(_0x43707e['skill']),_0x658c04=copyManagedSkillDirectory(_0x43707e[_0x5ef831(0xb6)],resolve(_0x26258f[_0x5ef831(0xa7)],_0x241305));_0x466567['push']({..._0x658c04,'contentHash':_0x43707e[_0x5ef831(0xb8)]});}return _0x466567;}function ensureManagedSymlink(_0x17dcee,_0x3ded41,_0x4d2a32,_0x490eed){const _0x201e46=a141_0x33b670;mkdirSync(dirname(_0x17dcee),{'recursive':!![],'mode':0x1c0});if(existsSync(_0x17dcee)||isDanglingSymlink(_0x17dcee)){const _0x486b1a=lstatSync(_0x17dcee);if(!_0x486b1a[_0x201e46(0xb4)]())throw CliErrors[_0x201e46(0xc6)](_0x201e46(0x9d)+_0x17dcee);const _0x28737f=resolveSymlinkTarget(_0x17dcee);if(!isPathInside(realOrResolved(_0x28737f),realOrResolved(_0x4d2a32[_0x201e46(0xac)])))throw CliErrors['validation'](_0x201e46(0x98)+_0x17dcee);if(realOrResolved(_0x28737f)===realOrResolved(_0x3ded41))return{'path':_0x17dcee,'target':_0x3ded41,'action':_0x201e46(0xaa)};const _0x390f02=readMetadataIfPresent(resolve(_0x28737f,METADATA_FILE));if(_0x4d2a32[_0x201e46(0xc9)]===_0x201e46(0xaf)&&(_0x390f02?.[_0x201e46(0xae)]!==_0x4d2a32[_0x201e46(0xae)]||_0x390f02['skillCode']!==_0x490eed))throw CliErrors['validation'](_0x201e46(0xbb)+_0x17dcee);return unlinkSync(_0x17dcee),symlinkSync(_0x3ded41,_0x17dcee,_0x201e46(0xb6)),{'path':_0x17dcee,'target':_0x3ded41,'action':_0x201e46(0xb5)};}return symlinkSync(_0x3ded41,_0x17dcee,_0x201e46(0xb6)),{'path':_0x17dcee,'target':_0x3ded41,'action':'created'};}function managedTargetSkillLinkPaths(_0x42dc0f,_0x42830e){const _0x3ceb5b=a141_0x33b670;if(!existsSync(_0x42dc0f))return[];const _0x3d8300=_0x42830e[_0x3ceb5b(0xae)]+'--';return readdirSync(_0x42dc0f,{'withFileTypes':!![]})[_0x3ceb5b(0xbf)](_0x6d232f=>_0x42830e[_0x3ceb5b(0xc9)]===_0x3ceb5b(0xaf)||_0x6d232f[_0x3ceb5b(0xa0)][_0x3ceb5b(0x99)](_0x3d8300))[_0x3ceb5b(0x9a)](_0x4982c1=>resolve(_0x42dc0f,_0x4982c1['name']));}function a141_0x14f2(_0x2dee04,_0x55560c){_0x2dee04=_0x2dee04-0x98;const _0x3df8f=a141_0x3df8();let _0x14f2a0=_0x3df8f[_0x2dee04];return _0x14f2a0;}function removeManagedSkillLink(_0x5d648c,_0x88c4b9,_0x23e00b){const _0x3a30f4=a141_0x33b670,_0x493991=lstatIfPresent(_0x5d648c);if(!_0x493991?.[_0x3a30f4(0xb4)]())return{'path':_0x5d648c,'action':_0x3a30f4(0xba),'reason':_0x3a30f4(0xc3)};const _0x21ea66=resolveSymlinkTarget(_0x5d648c);if(!isPathInside(realOrResolved(_0x21ea66),realOrResolved(_0x88c4b9['managedRoot'])))return{'path':_0x5d648c,'action':_0x3a30f4(0xba),'reason':'external-symlink'};const _0x1565e2=readMetadataIfPresent(resolve(_0x21ea66,METADATA_FILE));if(_0x88c4b9[_0x3a30f4(0xc9)]===_0x3a30f4(0xaf)&&(_0x1565e2?.[_0x3a30f4(0xae)]!==_0x88c4b9[_0x3a30f4(0xae)]||_0x1565e2[_0x3a30f4(0xcf)]!==_0x23e00b))return{'path':_0x5d648c,'action':_0x3a30f4(0xba),'reason':_0x3a30f4(0xcc)};return unlinkSync(_0x5d648c),{'path':_0x5d648c,'action':_0x3a30f4(0xbe)};}function isLinkedFromAnyRoot(_0x26b89b,_0x42a75e){const _0x53ad11=a141_0x33b670,_0x393e63=realOrResolved(_0x26b89b);for(const _0x509abe of _0x42a75e){if(!existsSync(_0x509abe))continue;for(const _0x2c6edc of readdirSync(_0x509abe,{'withFileTypes':!![]})){if(!_0x2c6edc['isSymbolicLink']())continue;const _0x3a1a46=resolve(_0x509abe,_0x2c6edc[_0x53ad11(0xa0)]);if(realOrResolved(resolveSymlinkTarget(_0x3a1a46))===_0x393e63)return!![];}}return![];}function runtimeSkillLinkName(_0x85fd78,_0x2b9c92){const _0x378b8b=a141_0x33b670,_0xa8cb4=safePathSegment(_0x2b9c92,_0x378b8b(0xcf));if(_0x85fd78['scope']===_0x378b8b(0xaf)&&RESERVED_PROJECT_SKILL_CODES[_0x378b8b(0xa2)](_0xa8cb4))throw CliErrors[_0x378b8b(0xc6)](_0x378b8b(0xce)+_0xa8cb4);return _0x85fd78['scope']==='project'?_0xa8cb4:_0x85fd78[_0x378b8b(0xae)]+'--'+_0xa8cb4;}function runtimeSkillCodeFromLink(_0x3d0b96,_0x4966a2){const _0xc7388d=a141_0x33b670,_0x4edbd0=basename(_0x4966a2);return _0x3d0b96[_0xc7388d(0xc9)]===_0xc7388d(0xaf)?_0x4edbd0:_0x4edbd0['slice']((_0x3d0b96[_0xc7388d(0xae)]+'--')[_0xc7388d(0xcd)]);}export function copyManagedSkillDirectory(_0x355df4,_0x330124){const _0x5bfe87=a141_0x33b670,_0x2c6cf4=resolve(_0x330124,METADATA_FILE),_0x2473cb=existsSync(_0x330124);if(_0x2473cb){const _0x3b56e7=lstatSync(_0x330124);if(_0x3b56e7[_0x5bfe87(0xb4)]())throw CliErrors['validation'](_0x5bfe87(0xbd)+_0x330124);if(!_0x3b56e7[_0x5bfe87(0x9c)]())throw CliErrors['validation'](_0x5bfe87(0xb0)+_0x330124);const _0x221000=readMetadataIfPresent(_0x2c6cf4);if(_0x221000?.[_0x5bfe87(0xc9)]!==_0x5bfe87(0xc0))throw CliErrors[_0x5bfe87(0xc6)](_0x5bfe87(0x9e)+_0x330124);}ensureDirSync(dirname(_0x330124));const _0x1a3553=_0x2473cb?readMetadataIfPresent(_0x2c6cf4)?.[_0x5bfe87(0xb8)]:undefined,_0x34e260=readMetadataIfPresent(resolve(_0x355df4,METADATA_FILE))?.[_0x5bfe87(0xb8)];return _0x2473cb&&removeSync(_0x330124),copySkillDirectory(_0x355df4,_0x330124),{'path':_0x330124,'target':_0x355df4,'action':!_0x2473cb?_0x5bfe87(0xca):_0x1a3553===_0x34e260?_0x5bfe87(0xaa):_0x5bfe87(0xb5)};}function copySkillDirectory(_0x423b06,_0x4a6d21){copySync(_0x423b06,_0x4a6d21,{'dereference':![],'overwrite':!![],'filter'(_0x2e32b){const _0x4d298b=a141_0x14f2;if(lstatSync(_0x2e32b)[_0x4d298b(0xb4)]())throw CliErrors[_0x4d298b(0xc6)]('Refusing\x20to\x20copy\x20Skill\x20symlink:\x20'+_0x2e32b);return!![];}});}
@@ -1 +1 @@
1
- (function(_0x3e7ed6,_0x47f83a){const _0x33fdcd=a142_0x46b5,_0x3a0212=_0x3e7ed6();while(!![]){try{const _0x5c7f61=-parseInt(_0x33fdcd(0xed))/0x1*(-parseInt(_0x33fdcd(0xec))/0x2)+-parseInt(_0x33fdcd(0xf1))/0x3+parseInt(_0x33fdcd(0xfe))/0x4+parseInt(_0x33fdcd(0xfb))/0x5+parseInt(_0x33fdcd(0xe0))/0x6+parseInt(_0x33fdcd(0xfd))/0x7+-parseInt(_0x33fdcd(0xee))/0x8*(parseInt(_0x33fdcd(0xdd))/0x9);if(_0x5c7f61===_0x47f83a)break;else _0x3a0212['push'](_0x3a0212['shift']());}catch(_0x561984){_0x3a0212['push'](_0x3a0212['shift']());}}}(a142_0x1b50,0xab014));import{existsSync,readdirSync}from'node:fs';import{resolve}from'node:path';function a142_0x1b50(){const _0x1067df=['get','4184940EYurPg','set','linkedPath','appCode','push','startsWith','scopes','sort','skillRoots','has','6050925nZPkMd','name','6192165COZoRe','621448fTAwFZ','tags','cache','trim','builtin','env','from','map','isDirectory','isArray','code','40914NbUwMa','values','localeCompare','5021928czhrgD','isSymbolicLink','cacheDir','skillCode','includes','skillMdPath','linkedPaths','scope','Runtime\x20Skill\x20install\x20target\x20app\x20mismatch:\x20','dir','accessKey','project','145276dYoxiH','7oBYoQS','2640sSiiXe','filter'];a142_0x1b50=function(){return _0x1067df;};return a142_0x1b50();}import{CliErrors}from'../../errors.js';import{METADATA_FILE,SKILL_FILE}from'./constants.js';function a142_0x46b5(_0x29b257,_0x504303){_0x29b257=_0x29b257-0xd5;const _0x1b50d0=a142_0x1b50();let _0x46b53b=_0x1b50d0[_0x29b257];return _0x46b53b;}import{readMetadataIfPresent}from'./metadata.js';import{getRuntimeSkillCacheRoot,safePathSegment}from'./paths.js';import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';export function listLocalRuntimeSkills(_0x3e5792,_0x1aada1,_0xe93b8b={}){const _0xeab8ee=a142_0x46b5,_0x3d87e3=safePathSegment(_0x3e5792['appCode'],_0xeab8ee(0xf4));if(_0x1aada1[_0xeab8ee(0xf4)]!==_0x3d87e3)throw CliErrors['validation'](_0xeab8ee(0xe8)+_0x1aada1[_0xeab8ee(0xf4)]+'\x20!=\x20'+_0x3d87e3);const _0x4d3dc3=normalizeRuntimeSkillScopes(_0x3e5792[_0xeab8ee(0xf7)]),_0x1f1b6c=new Set(_0x4d3dc3),_0x407ba4=_0x3e5792[_0xeab8ee(0xdc)]?.[_0xeab8ee(0xd5)](),_0x819d0f=new Map(),_0x43130f=resolve(getRuntimeSkillCacheRoot(_0x3e5792[_0xeab8ee(0xd7)],_0x3e5792[_0xeab8ee(0xea)],_0xe93b8b),_0x3d87e3);for(const _0x413486 of _0x4d3dc3){for(const _0x16d163 of localSkillEntryDirs(resolve(_0x43130f,_0x413486))){collectLocalRuntimeSkill(_0x819d0f,_0x16d163,{'appCode':_0x3d87e3,'scopes':_0x1f1b6c,'code':_0x407ba4,'source':_0xeab8ee(0x100)});}}for(const _0x59d390 of _0x1aada1[_0xeab8ee(0xf9)]){for(const _0x5442f8 of localSkillLinkCandidates(_0x59d390,_0x1aada1,_0x1f1b6c)){collectLocalRuntimeSkill(_0x819d0f,_0x5442f8,{'appCode':_0x3d87e3,'scopes':_0x1f1b6c,'code':_0x407ba4,'source':'link','linkedPath':_0x5442f8});}}return Array[_0xeab8ee(0xd8)](_0x819d0f[_0xeab8ee(0xde)]())[_0xeab8ee(0xf8)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0xa878c8){const _0x88152a=a142_0x46b5;if(!existsSync(_0xa878c8))return[];return readdirSync(_0xa878c8,{'withFileTypes':!![]})['filter'](_0x9860cd=>_0x9860cd[_0x88152a(0xda)]()||_0x9860cd[_0x88152a(0xe1)]())[_0x88152a(0xd9)](_0x158450=>resolve(_0xa878c8,_0x158450[_0x88152a(0xfc)]));}function localSkillLinkCandidates(_0x2c62fe,_0x269d92,_0x4bb01b){const _0x20f49b=a142_0x46b5;if(!existsSync(_0x2c62fe))return[];const _0x2dd923=_0x269d92[_0x20f49b(0xf4)]+'--';return readdirSync(_0x2c62fe,{'withFileTypes':!![]})[_0x20f49b(0xef)](_0x54e8e2=>_0x54e8e2[_0x20f49b(0xda)]()||_0x54e8e2[_0x20f49b(0xe1)]())[_0x20f49b(0xef)](_0x408902=>_0x269d92[_0x20f49b(0xe7)]===_0x20f49b(0xeb)||_0x408902['name'][_0x20f49b(0xf6)](_0x2dd923)||_0x4bb01b[_0x20f49b(0xfa)](_0x20f49b(0xd6)))[_0x20f49b(0xd9)](_0x1e1f8a=>resolve(_0x2c62fe,_0x1e1f8a[_0x20f49b(0xfc)]));}function collectLocalRuntimeSkill(_0x53514b,_0x96206b,_0x5208b5){const _0xfdd5b5=a142_0x46b5,_0x696255=resolve(_0x96206b,METADATA_FILE),_0x4e2366=readMetadataIfPresent(_0x696255);if(!_0x4e2366)return;if(_0x4e2366[_0xfdd5b5(0xf4)]!==_0x5208b5[_0xfdd5b5(0xf4)])return;if(!isRuntimeSkillScope(_0x4e2366['scope'])||!_0x5208b5[_0xfdd5b5(0xf7)]['has'](_0x4e2366['scope']))return;const _0x2a19f0=_0x4e2366[_0xfdd5b5(0xe3)]?.[_0xfdd5b5(0xd5)]();if(!_0x2a19f0)return;if(_0x5208b5['code']&&_0x2a19f0!==_0x5208b5[_0xfdd5b5(0xdc)])return;const _0x4bb36c=_0x4e2366[_0xfdd5b5(0xe7)]+':'+_0x2a19f0,_0x536492=_0x5208b5[_0xfdd5b5(0xf3)]?[_0x5208b5[_0xfdd5b5(0xf3)]]:[],_0x64f276=_0x53514b[_0xfdd5b5(0xf0)](_0x4bb36c);if(_0x64f276){_0x5208b5['source']===_0xfdd5b5(0x100)&&(_0x64f276[_0xfdd5b5(0xe9)]=_0x96206b,_0x64f276[_0xfdd5b5(0xe2)]=_0x96206b,_0x64f276[_0xfdd5b5(0xe5)]=resolve(_0x96206b,SKILL_FILE),_0x64f276['metadataPath']=_0x696255);for(const _0x2b249a of _0x536492){!_0x64f276[_0xfdd5b5(0xe6)][_0xfdd5b5(0xe4)](_0x2b249a)&&_0x64f276[_0xfdd5b5(0xe6)][_0xfdd5b5(0xf5)](_0x2b249a);}_0x64f276[_0xfdd5b5(0xe6)][_0xfdd5b5(0xf8)]();return;}_0x53514b[_0xfdd5b5(0xf2)](_0x4bb36c,{..._0x4e2366,'tags':Array[_0xfdd5b5(0xdb)](_0x4e2366[_0xfdd5b5(0xff)])?_0x4e2366['tags']:[],'scope':_0x4e2366[_0xfdd5b5(0xe7)],'source':'local','dir':_0x96206b,'cacheDir':_0x5208b5['source']==='cache'?_0x96206b:undefined,'skillMdPath':resolve(_0x96206b,SKILL_FILE),'metadataPath':_0x696255,'linkedPaths':_0x536492});}function compareLocalRuntimeSkills(_0x5c2b82,_0x37311c){const _0xbab120=a142_0x46b5,_0x23b8dd={'personal':0x0,'company':0x1,'builtin':0x2};return _0x23b8dd[_0x5c2b82[_0xbab120(0xe7)]]-_0x23b8dd[_0x37311c[_0xbab120(0xe7)]]||_0x5c2b82[_0xbab120(0xe3)][_0xbab120(0xdf)](_0x37311c[_0xbab120(0xe3)])||_0x5c2b82[_0xbab120(0xe9)]['localeCompare'](_0x37311c[_0xbab120(0xe9)]);}
1
+ function a142_0x5f1c(){const _0x2b7d55=['2498468ewXbIb','map','2567995tFvVrv','skillRoots','name','trim','accessKey','env','has','1144233LUOrYm','isSymbolicLink','link','cacheDir','values','includes','2485370gVOivg','builtin','tags','\x20!=\x20','89120wrMfZj','cache','linkedPaths','sort','48WiBqje','scope','filter','source','appCode','12wtLokW','skillMdPath','startsWith','localeCompare','code','project','get','set','isArray','56204ujouZP','dir','Runtime\x20Skill\x20install\x20target\x20app\x20mismatch:\x20','isDirectory','local','16781967uzLNaU','metadataPath','skillCode','linkedPath'];a142_0x5f1c=function(){return _0x2b7d55;};return a142_0x5f1c();}(function(_0x5bab61,_0x2497ca){const _0x233d8c=a142_0x23b6,_0x1f5923=_0x5bab61();while(!![]){try{const _0x45282a=parseInt(_0x233d8c(0x175))/0x1+parseInt(_0x233d8c(0x17b))/0x2+parseInt(_0x233d8c(0x183))/0x3*(parseInt(_0x233d8c(0x163))/0x4)+-parseInt(_0x233d8c(0x16e))/0x5+-parseInt(_0x233d8c(0x188))/0x6*(-parseInt(_0x233d8c(0x16c))/0x7)+-parseInt(_0x233d8c(0x17f))/0x8+-parseInt(_0x233d8c(0x168))/0x9;if(_0x45282a===_0x2497ca)break;else _0x1f5923['push'](_0x1f5923['shift']());}catch(_0x572c18){_0x1f5923['push'](_0x1f5923['shift']());}}}(a142_0x5f1c,0xe48f4));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_0x23b6(_0x405ba5,_0x4f5901){_0x405ba5=_0x405ba5-0x163;const _0x5f1c98=a142_0x5f1c();let _0x23b66e=_0x5f1c98[_0x405ba5];return _0x23b66e;}import{isRuntimeSkillScope,normalizeRuntimeSkillScopes}from'./scopes.js';export function listLocalRuntimeSkills(_0x20a312,_0x3f21eb,_0x4a5d94={}){const _0x132983=a142_0x23b6,_0x52ad3b=safePathSegment(_0x20a312[_0x132983(0x187)],'appCode');if(_0x3f21eb[_0x132983(0x187)]!==_0x52ad3b)throw CliErrors['validation'](_0x132983(0x165)+_0x3f21eb[_0x132983(0x187)]+_0x132983(0x17e)+_0x52ad3b);const _0x487f24=normalizeRuntimeSkillScopes(_0x20a312['scopes']),_0x4ad575=new Set(_0x487f24),_0x5820fb=_0x20a312[_0x132983(0x18c)]?.[_0x132983(0x171)](),_0x464223=new Map(),_0x204c65=resolve(getRuntimeSkillCacheRoot(_0x20a312[_0x132983(0x173)],_0x20a312[_0x132983(0x172)],_0x4a5d94),_0x52ad3b);for(const _0x3612e3 of _0x487f24){for(const _0x334be0 of localSkillEntryDirs(resolve(_0x204c65,_0x3612e3))){collectLocalRuntimeSkill(_0x464223,_0x334be0,{'appCode':_0x52ad3b,'scopes':_0x4ad575,'code':_0x5820fb,'source':_0x132983(0x180)});}}for(const _0x378445 of _0x3f21eb[_0x132983(0x16f)]){for(const _0x50f097 of localSkillLinkCandidates(_0x378445,_0x3f21eb,_0x4ad575)){collectLocalRuntimeSkill(_0x464223,_0x50f097,{'appCode':_0x52ad3b,'scopes':_0x4ad575,'code':_0x5820fb,'source':_0x132983(0x177),'linkedPath':_0x50f097});}}return Array['from'](_0x464223[_0x132983(0x179)]())[_0x132983(0x182)](compareLocalRuntimeSkills);}function localSkillEntryDirs(_0x6d2cfa){const _0x2cb311=a142_0x23b6;if(!existsSync(_0x6d2cfa))return[];return readdirSync(_0x6d2cfa,{'withFileTypes':!![]})[_0x2cb311(0x185)](_0x31a38c=>_0x31a38c['isDirectory']()||_0x31a38c[_0x2cb311(0x176)]())[_0x2cb311(0x16d)](_0x1910da=>resolve(_0x6d2cfa,_0x1910da[_0x2cb311(0x170)]));}function localSkillLinkCandidates(_0x318a6d,_0x2737f8,_0x31870a){const _0x533c25=a142_0x23b6;if(!existsSync(_0x318a6d))return[];const _0x8a021b=_0x2737f8[_0x533c25(0x187)]+'--';return readdirSync(_0x318a6d,{'withFileTypes':!![]})[_0x533c25(0x185)](_0x34fd41=>_0x34fd41[_0x533c25(0x166)]()||_0x34fd41[_0x533c25(0x176)]())[_0x533c25(0x185)](_0x2edc85=>_0x2737f8['scope']===_0x533c25(0x18d)||_0x2edc85[_0x533c25(0x170)][_0x533c25(0x18a)](_0x8a021b)||_0x31870a[_0x533c25(0x174)](_0x533c25(0x17c)))[_0x533c25(0x16d)](_0x3e1c60=>resolve(_0x318a6d,_0x3e1c60[_0x533c25(0x170)]));}function collectLocalRuntimeSkill(_0x278368,_0x2aeae0,_0x8f3e3e){const _0x1d404f=a142_0x23b6,_0x4ff287=resolve(_0x2aeae0,METADATA_FILE),_0x417ffd=readMetadataIfPresent(_0x4ff287);if(!_0x417ffd)return;if(_0x417ffd[_0x1d404f(0x187)]!==_0x8f3e3e[_0x1d404f(0x187)])return;if(!isRuntimeSkillScope(_0x417ffd[_0x1d404f(0x184)])||!_0x8f3e3e['scopes']['has'](_0x417ffd[_0x1d404f(0x184)]))return;const _0x5381d8=_0x417ffd[_0x1d404f(0x16a)]?.[_0x1d404f(0x171)]();if(!_0x5381d8)return;if(_0x8f3e3e[_0x1d404f(0x18c)]&&_0x5381d8!==_0x8f3e3e['code'])return;const _0x2be0cb=_0x417ffd[_0x1d404f(0x184)]+':'+_0x5381d8,_0x15174f=_0x8f3e3e[_0x1d404f(0x16b)]?[_0x8f3e3e[_0x1d404f(0x16b)]]:[],_0x1a749e=_0x278368[_0x1d404f(0x18e)](_0x2be0cb);if(_0x1a749e){_0x8f3e3e['source']===_0x1d404f(0x180)&&(_0x1a749e[_0x1d404f(0x164)]=_0x2aeae0,_0x1a749e[_0x1d404f(0x178)]=_0x2aeae0,_0x1a749e[_0x1d404f(0x189)]=resolve(_0x2aeae0,SKILL_FILE),_0x1a749e[_0x1d404f(0x169)]=_0x4ff287);for(const _0xf7a86a of _0x15174f){!_0x1a749e['linkedPaths'][_0x1d404f(0x17a)](_0xf7a86a)&&_0x1a749e[_0x1d404f(0x181)]['push'](_0xf7a86a);}_0x1a749e[_0x1d404f(0x181)][_0x1d404f(0x182)]();return;}_0x278368[_0x1d404f(0x18f)](_0x2be0cb,{..._0x417ffd,'tags':Array[_0x1d404f(0x190)](_0x417ffd[_0x1d404f(0x17d)])?_0x417ffd[_0x1d404f(0x17d)]:[],'scope':_0x417ffd[_0x1d404f(0x184)],'source':_0x1d404f(0x167),'dir':_0x2aeae0,'cacheDir':_0x8f3e3e[_0x1d404f(0x186)]===_0x1d404f(0x180)?_0x2aeae0:undefined,'skillMdPath':resolve(_0x2aeae0,SKILL_FILE),'metadataPath':_0x4ff287,'linkedPaths':_0x15174f});}function compareLocalRuntimeSkills(_0xa1f403,_0x3b8c8c){const _0x29e6d2=a142_0x23b6,_0x176380={'personal':0x0,'company':0x1,'builtin':0x2};return _0x176380[_0xa1f403[_0x29e6d2(0x184)]]-_0x176380[_0x3b8c8c[_0x29e6d2(0x184)]]||_0xa1f403[_0x29e6d2(0x16a)][_0x29e6d2(0x18b)](_0x3b8c8c[_0x29e6d2(0x16a)])||_0xa1f403[_0x29e6d2(0x164)][_0x29e6d2(0x18b)](_0x3b8c8c[_0x29e6d2(0x164)]);}