@lovrabet/rabetbase-cli 2.5.2-beta.1 → 2.5.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 (342) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/delete.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/init.js +1 -1
  56. package/lib/commands/config/list.js +1 -1
  57. package/lib/commands/config/set.js +1 -1
  58. package/lib/commands/config/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/business-groups.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-restore.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff-refresh-start.js +1 -1
  89. package/lib/commands/db/diff-refresh-status.js +1 -1
  90. package/lib/commands/db/diff.js +1 -1
  91. package/lib/commands/db/index.js +1 -1
  92. package/lib/commands/db/list.js +1 -1
  93. package/lib/commands/db/shared.js +1 -1
  94. package/lib/commands/db/table-diff-shared.js +1 -1
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/deployment/auto-sync.js +1 -1
  99. package/lib/commands/deployment/index.js +1 -1
  100. package/lib/commands/deployment/sync-all.d.ts +2 -0
  101. package/lib/commands/deployment/sync-all.js +1 -0
  102. package/lib/commands/deployment/sync-jobs.d.ts +2 -0
  103. package/lib/commands/deployment/sync-jobs.js +1 -0
  104. package/lib/commands/deployment/sync-status.d.ts +2 -0
  105. package/lib/commands/deployment/sync-status.js +1 -0
  106. package/lib/commands/deployment/sync.js +1 -1
  107. package/lib/commands/doctor.js +1 -1
  108. package/lib/commands/file/index.js +1 -1
  109. package/lib/commands/instant-api-policy/current.d.ts +2 -0
  110. package/lib/commands/instant-api-policy/current.js +1 -0
  111. package/lib/commands/instant-api-policy/index.d.ts +2 -0
  112. package/lib/commands/instant-api-policy/index.js +1 -0
  113. package/lib/commands/instant-api-policy/init.d.ts +2 -0
  114. package/lib/commands/instant-api-policy/init.js +1 -0
  115. package/lib/commands/instant-api-policy/publish.d.ts +2 -0
  116. package/lib/commands/instant-api-policy/publish.js +1 -0
  117. package/lib/commands/instant-api-policy/pull.d.ts +2 -0
  118. package/lib/commands/instant-api-policy/pull.js +1 -0
  119. package/lib/commands/instant-api-policy/revision.d.ts +2 -0
  120. package/lib/commands/instant-api-policy/revision.js +1 -0
  121. package/lib/commands/instant-api-policy/revisions.d.ts +2 -0
  122. package/lib/commands/instant-api-policy/revisions.js +1 -0
  123. package/lib/commands/instant-api-policy/rollback.d.ts +2 -0
  124. package/lib/commands/instant-api-policy/rollback.js +1 -0
  125. package/lib/commands/instant-api-policy/shared.d.ts +82 -0
  126. package/lib/commands/instant-api-policy/shared.js +1 -0
  127. package/lib/commands/instant-api-policy/validate.d.ts +2 -0
  128. package/lib/commands/instant-api-policy/validate.js +1 -0
  129. package/lib/commands/issue/index.js +1 -1
  130. package/lib/commands/issue/nudge.js +1 -1
  131. package/lib/commands/issue/report.js +1 -1
  132. package/lib/commands/issue/shared.js +1 -1
  133. package/lib/commands/kb/create.js +1 -1
  134. package/lib/commands/kb/delete.js +1 -1
  135. package/lib/commands/kb/detail.js +1 -1
  136. package/lib/commands/kb/index.js +1 -1
  137. package/lib/commands/kb/list.js +1 -1
  138. package/lib/commands/kb/search.js +1 -1
  139. package/lib/commands/kb/shared.js +1 -1
  140. package/lib/commands/kb/update.js +1 -1
  141. package/lib/commands/logs/index.js +1 -1
  142. package/lib/commands/menu/asset-update.js +1 -1
  143. package/lib/commands/menu/delete.js +1 -1
  144. package/lib/commands/menu/external-link-create.js +1 -1
  145. package/lib/commands/menu/external-link-update.js +1 -1
  146. package/lib/commands/menu/group-create.js +1 -1
  147. package/lib/commands/menu/group-update.js +1 -1
  148. package/lib/commands/menu/index.js +1 -1
  149. package/lib/commands/menu/list.js +1 -1
  150. package/lib/commands/menu/move.js +1 -1
  151. package/lib/commands/menu/regroup-start.js +1 -1
  152. package/lib/commands/menu/rename.js +1 -1
  153. package/lib/commands/menu/shared/compare-table.js +1 -1
  154. package/lib/commands/menu/shared/delete-plan.js +1 -1
  155. package/lib/commands/menu/shared/facts.js +1 -1
  156. package/lib/commands/menu/shared/index.js +1 -1
  157. package/lib/commands/menu/shared/inquirer.js +1 -1
  158. package/lib/commands/menu/shared/local-pages.js +1 -1
  159. package/lib/commands/menu/shared/logic.js +1 -1
  160. package/lib/commands/menu/shared/mutations.js +1 -1
  161. package/lib/commands/menu/shared/service.js +1 -1
  162. package/lib/commands/menu/shared/sync-core.js +1 -1
  163. package/lib/commands/menu/shared/update-core.js +1 -1
  164. package/lib/commands/menu/shared/valid-url.js +1 -1
  165. package/lib/commands/menu/sync.js +1 -1
  166. package/lib/commands/menu/visibility-update.js +1 -1
  167. package/lib/commands/notification/config-create.js +1 -1
  168. package/lib/commands/notification/config-delete.js +1 -1
  169. package/lib/commands/notification/config-list.js +1 -1
  170. package/lib/commands/notification/config-update.js +1 -1
  171. package/lib/commands/notification/index.js +1 -1
  172. package/lib/commands/notification/shared.js +1 -1
  173. package/lib/commands/ocr/index.js +1 -1
  174. package/lib/commands/page/create.js +1 -1
  175. package/lib/commands/page/custom/detail.js +1 -1
  176. package/lib/commands/page/custom/list.js +1 -1
  177. package/lib/commands/page/custom/publish.js +1 -1
  178. package/lib/commands/page/custom/shared.js +1 -1
  179. package/lib/commands/page/custom/syntax.js +1 -1
  180. package/lib/commands/page/custom/template.js +1 -1
  181. package/lib/commands/page/custom/update.js +1 -1
  182. package/lib/commands/page/data-list-status.js +1 -1
  183. package/lib/commands/page/generate-start.js +1 -1
  184. package/lib/commands/page/generate-status.js +1 -1
  185. package/lib/commands/page/index.js +1 -1
  186. package/lib/commands/page/pull.js +1 -1
  187. package/lib/commands/page/push.js +1 -1
  188. package/lib/commands/page/relation-audit.js +1 -1
  189. package/lib/commands/page/restore.js +1 -1
  190. package/lib/commands/page/shared.js +1 -1
  191. package/lib/commands/page/sync.js +1 -1
  192. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  193. package/lib/commands/project/create/format-elapsed.js +1 -1
  194. package/lib/commands/project/create/main.js +1 -1
  195. package/lib/commands/project/create/materialize-project-template.js +1 -1
  196. package/lib/commands/project/create/project-name.js +1 -1
  197. package/lib/commands/project/create/project-template-archive.js +1 -1
  198. package/lib/commands/project/create/project-template-path.js +1 -1
  199. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  200. package/lib/commands/project/create/use-format-code.js +1 -1
  201. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  202. package/lib/commands/project/domain-routing-sync.js +1 -1
  203. package/lib/commands/project/index.js +1 -1
  204. package/lib/commands/project/upgrade.js +1 -1
  205. package/lib/commands/registry.js +1 -1
  206. package/lib/commands/role/delete.js +1 -1
  207. package/lib/commands/role/detail.js +1 -1
  208. package/lib/commands/role/index.js +1 -1
  209. package/lib/commands/role/list.js +1 -1
  210. package/lib/commands/role/shared.js +1 -1
  211. package/lib/commands/role/update.js +1 -1
  212. package/lib/commands/role/user-add.js +1 -1
  213. package/lib/commands/role/user-remove.js +1 -1
  214. package/lib/commands/role/user-resolve.js +1 -1
  215. package/lib/commands/rule/get.js +1 -1
  216. package/lib/commands/rule/index.js +1 -1
  217. package/lib/commands/rule/list.js +1 -1
  218. package/lib/commands/rule/set.js +1 -1
  219. package/lib/commands/rule/shared.js +1 -1
  220. package/lib/commands/run/index.js +1 -1
  221. package/lib/commands/schema.js +1 -1
  222. package/lib/commands/sql/create.js +1 -1
  223. package/lib/commands/sql/delete.js +1 -1
  224. package/lib/commands/sql/detail.js +1 -1
  225. package/lib/commands/sql/exec.js +1 -1
  226. package/lib/commands/sql/index.js +1 -1
  227. package/lib/commands/sql/list.js +1 -1
  228. package/lib/commands/sql/pull.js +1 -1
  229. package/lib/commands/sql/push.js +1 -1
  230. package/lib/commands/sql/shared.js +1 -1
  231. package/lib/commands/sql/status.js +1 -1
  232. package/lib/commands/sql/validate.js +1 -1
  233. package/lib/commands/task/index.js +1 -1
  234. package/lib/commands/task/status.js +1 -1
  235. package/lib/commands/tenant/index.js +1 -1
  236. package/lib/commands/tenant/members-list.js +1 -1
  237. package/lib/commands/tenant/shared.js +1 -1
  238. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  239. package/lib/commands/user-account/index.js +1 -1
  240. package/lib/commands/workspace/add.js +1 -1
  241. package/lib/commands/workspace/index.js +1 -1
  242. package/lib/commands/workspace/remove.js +1 -1
  243. package/lib/config/domain-config.js +1 -1
  244. package/lib/config/project-domain-routing.js +1 -1
  245. package/lib/config/schema.js +1 -1
  246. package/lib/constant/cdn.js +1 -1
  247. package/lib/constant/cli.js +1 -1
  248. package/lib/constant/defaults.js +1 -1
  249. package/lib/constant/domain.js +1 -1
  250. package/lib/constant/env.js +1 -1
  251. package/lib/constant/output.js +1 -1
  252. package/lib/constant/paths.js +1 -1
  253. package/lib/constant/region.js +1 -1
  254. package/lib/constant/risk.js +1 -1
  255. package/lib/constant/routing-profile.js +1 -1
  256. package/lib/context/app-resolver.js +1 -1
  257. package/lib/context/auth-resolver.js +1 -1
  258. package/lib/context/config-loader.js +1 -1
  259. package/lib/context.js +1 -1
  260. package/lib/core/alias-resolver.js +1 -1
  261. package/lib/core/api-client.d.ts +113 -0
  262. package/lib/core/api-client.js +1 -1
  263. package/lib/core/bff/config.js +1 -1
  264. package/lib/core/bff/file-system.js +1 -1
  265. package/lib/core/bff/hash.js +1 -1
  266. package/lib/core/bff/lock.js +1 -1
  267. package/lib/core/bff/utils.js +1 -1
  268. package/lib/core/db-resolver.js +1 -1
  269. package/lib/core/instant-api-policy/config.d.ts +23 -0
  270. package/lib/core/instant-api-policy/config.js +1 -0
  271. package/lib/core/kb-search-client.js +1 -1
  272. package/lib/core/page/file-system.js +1 -1
  273. package/lib/core/page/hash.js +1 -1
  274. package/lib/core/page/lock.js +1 -1
  275. package/lib/core/sql-index-auditor.js +1 -1
  276. package/lib/core/sql-sync/config.js +1 -1
  277. package/lib/core/sql-sync/file-system.js +1 -1
  278. package/lib/core/sql-sync/hash.js +1 -1
  279. package/lib/core/sql-sync/lock.js +1 -1
  280. package/lib/core/sql-sync/utils.js +1 -1
  281. package/lib/core/sql-validator.js +1 -1
  282. package/lib/errors.js +1 -1
  283. package/lib/framework/build-all-flags.js +1 -1
  284. package/lib/framework/error-output.js +1 -1
  285. package/lib/framework/explicit-yes.js +1 -1
  286. package/lib/framework/flags.js +1 -1
  287. package/lib/framework/help.js +1 -1
  288. package/lib/framework/index.js +1 -1
  289. package/lib/framework/output.js +1 -1
  290. package/lib/framework/response.js +1 -1
  291. package/lib/framework/runner-alias.js +1 -1
  292. package/lib/framework/runner.js +1 -1
  293. package/lib/framework/schema-export.js +1 -1
  294. package/lib/framework/supported-flags.js +1 -1
  295. package/lib/framework/types.js +1 -1
  296. package/lib/generated/build-info.d.ts +4 -4
  297. package/lib/generated/build-info.js +1 -1
  298. package/lib/generated/official-routing.js +1 -1
  299. package/lib/generated/routing-contract.js +1 -1
  300. package/lib/help.js +1 -1
  301. package/lib/postinstall.js +1 -1
  302. package/lib/runtime/confirmation.js +1 -1
  303. package/lib/runtime/event.js +1 -1
  304. package/lib/runtime/index.js +1 -1
  305. package/lib/runtime/queue.js +1 -1
  306. package/lib/runtime/resolve.js +1 -1
  307. package/lib/skills/builtin-skill.js +1 -1
  308. package/lib/skills/main.js +1 -1
  309. package/lib/skills/npx-skills-add.js +1 -1
  310. package/lib/skills/skill-presence.js +1 -1
  311. package/lib/telemetry/cli-command-trace.js +1 -1
  312. package/lib/telemetry/cli-help-trace.js +1 -1
  313. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  314. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  315. package/lib/telemetry/send-cli-trace-log.js +1 -1
  316. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  317. package/lib/utils/ai_config.js +1 -1
  318. package/lib/utils/apply-jq-filter.js +1 -1
  319. package/lib/utils/cdn-config.js +1 -1
  320. package/lib/utils/check-sdk-version.js +1 -1
  321. package/lib/utils/cli-version-check.js +1 -1
  322. package/lib/utils/cli-version-policy.js +1 -1
  323. package/lib/utils/config.js +1 -1
  324. package/lib/utils/entity-with-id.js +1 -1
  325. package/lib/utils/file-utils.js +1 -1
  326. package/lib/utils/guides-cdn.js +1 -1
  327. package/lib/utils/http-client.js +1 -1
  328. package/lib/utils/is-non-interactive.js +1 -1
  329. package/lib/utils/logger.js +1 -1
  330. package/lib/utils/params.js +1 -1
  331. package/lib/utils/platform.js +1 -1
  332. package/lib/utils/sleep.js +1 -1
  333. package/lib/utils/template-replacer.js +1 -1
  334. package/lib/utils/update-notice.js +1 -1
  335. package/lib/utils/version.js +1 -1
  336. package/lib/utils/with-active-cookie.js +1 -1
  337. package/lib/utils/write-cli-side-channel.js +1 -1
  338. package/package.json +1 -1
  339. package/skills/rabetbase/SKILL.md +11 -5
  340. package/skills/rabetbase/references/rabetbase-deployment-sync.md +41 -5
  341. package/skills/rabetbase/references/rabetbase-instant-api-policy.md +92 -0
  342. package/skills/rabetbase.manifest.json +4 -3
@@ -1 +1 @@
1
- const a281_0x2e6f11=a281_0x2390;(function(_0x1e0954,_0x1fdac7){const _0x333708=a281_0x2390,_0xbb7a57=_0x1e0954();while(!![]){try{const _0x578843=parseInt(_0x333708(0x124))/0x1+parseInt(_0x333708(0xfc))/0x2+parseInt(_0x333708(0x123))/0x3+parseInt(_0x333708(0x110))/0x4+parseInt(_0x333708(0xfb))/0x5+parseInt(_0x333708(0xf7))/0x6+-parseInt(_0x333708(0x119))/0x7*(parseInt(_0x333708(0x118))/0x8);if(_0x578843===_0x1fdac7)break;else _0xbb7a57['push'](_0xbb7a57['shift']());}catch(_0x345c47){_0xbb7a57['push'](_0xbb7a57['shift']());}}}(a281_0x3d9f,0xa92ec));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='rabetbase\x20cli-skill\x20install',SKILL_NAME=a281_0x2e6f11(0x107);function frontmatterValue(_0x3de1d8,_0x485896){const _0x52481c=a281_0x2e6f11;return _0x3de1d8[_0x52481c(0x111)](new RegExp('^'+_0x485896+_0x52481c(0xfe),'m'))?.[0x1]?.[_0x52481c(0x108)]()??'';}function listFiles(_0x32ff6f,_0x36b0dc=_0x32ff6f){const _0xf6b478=a281_0x2e6f11;return readdirSync(_0x36b0dc,{'withFileTypes':!![]})[_0xf6b478(0x10b)](_0x2cd258=>{const _0x5191c0=_0xf6b478,_0x4cb3e1=join(_0x36b0dc,_0x2cd258['name']),_0x1746d3=lstatSync(_0x4cb3e1);if(_0x1746d3[_0x5191c0(0xff)]())throw new Error(_0x5191c0(0x122)+_0x4cb3e1);if(_0x1746d3[_0x5191c0(0x12b)]())return listFiles(_0x32ff6f,_0x4cb3e1);if(!_0x1746d3['isFile']())throw new Error(_0x5191c0(0x128)+_0x4cb3e1);return[relative(_0x32ff6f,_0x4cb3e1)[_0x5191c0(0xf5)](sep)['join']('/')];})[_0xf6b478(0x109)]((_0x318a83,_0x28faba)=>_0x318a83<_0x28faba?-0x1:_0x318a83>_0x28faba?0x1:0x0);}function digestFiles(_0x54fca6,_0x589974){const _0x42d52c=a281_0x2e6f11,_0x507188=createHash(_0x42d52c(0x106));for(const _0x5da0bb of _0x589974){if(_0x5da0bb[_0x42d52c(0x11a)]('/')||_0x5da0bb[_0x42d52c(0xf5)]('/')[_0x42d52c(0x102)]('..')||_0x5da0bb['includes']('\x5c'))throw new Error(_0x42d52c(0x121)+_0x5da0bb);_0x507188['update'](_0x5da0bb),_0x507188[_0x42d52c(0x116)]('\x00'),_0x507188[_0x42d52c(0x116)](readFileSync(join(_0x54fca6,..._0x5da0bb[_0x42d52c(0xf5)]('/')))),_0x507188[_0x42d52c(0x116)]('\x00');}return _0x507188[_0x42d52c(0x12d)](_0x42d52c(0xf1));}function a281_0x2390(_0x69a8e6,_0x47e405){_0x69a8e6=_0x69a8e6-0xed;const _0x3d9f8b=a281_0x3d9f();let _0x239045=_0x3d9f8b[_0x69a8e6];return _0x239045;}function sameFiles(_0x5c25d4,_0x832223){const _0xbd5156=a281_0x2e6f11;return _0x5c25d4[_0xbd5156(0x101)]===_0x832223[_0xbd5156(0x101)]&&_0x5c25d4[_0xbd5156(0x120)]((_0x49b881,_0x3f2062)=>_0x49b881===_0x832223[_0x3f2062]);}function readSource(_0x187e76){const _0x4a0fd1=a281_0x2e6f11,_0x5b8486=JSON[_0x4a0fd1(0xf6)](readFileSync(join(_0x187e76,_0x4a0fd1(0x129)),_0x4a0fd1(0xfa))),_0xc590df=JSON[_0x4a0fd1(0xf6)](readFileSync(join(_0x187e76,_0x4a0fd1(0xf2),_0x4a0fd1(0xfd)),_0x4a0fd1(0xfa))),_0x998982=join(_0x187e76,_0x4a0fd1(0xf2),SKILL_NAME),_0x107052=frontmatterValue(readFileSync(join(_0x998982,'SKILL.md'),_0x4a0fd1(0xfa)),'version'),_0x50301d=listFiles(_0x998982);if(_0xc590df[_0x4a0fd1(0xf9)]!==0x1||_0xc590df[_0x4a0fd1(0x114)]!==SKILL_NAME||!_0x5b8486[_0x4a0fd1(0x105)]||_0xc590df['packageVersion']!==_0x5b8486[_0x4a0fd1(0x105)]||_0xc590df[_0x4a0fd1(0x12c)]!==_0x5b8486['version']||_0x107052!==_0x5b8486[_0x4a0fd1(0x105)]||!sameFiles(_0x50301d,_0xc590df['files'])||digestFiles(_0x998982,_0x50301d)!==_0xc590df['digest'])throw new Error(_0x4a0fd1(0x10a));return{'packageVersion':_0x5b8486[_0x4a0fd1(0x105)],'skillVersion':_0x107052,'root':_0x998982,'manifest':_0xc590df};}function installedSkillPath(_0x295aba){const _0x3ed92e=a281_0x2e6f11,_0x577788=resolveInstalledSkill(SKILL_NAME,{'home':_0x295aba});if(_0x577788[_0x3ed92e(0x11f)]==='present')return{'state':_0x3ed92e(0x10e),'path':dirname(_0x577788[_0x3ed92e(0xef)])};if(_0x577788[_0x3ed92e(0x11f)]==='absent')return{'state':_0x3ed92e(0xee)};return{'state':_0x3ed92e(0xf0),'reason':_0x577788[_0x3ed92e(0xf4)]};}export function inspectInstalledBuiltinSkillVersion(_0x740109,_0x45e26a={}){const _0x1f48b6=a281_0x2e6f11,_0x1bc093=installedSkillPath(_0x45e26a[_0x1f48b6(0x127)]??homedir());if(_0x1bc093[_0x1f48b6(0x11f)]===_0x1f48b6(0xee))return{'state':_0x1f48b6(0xee),'expectedVersion':_0x740109,'repairCommand':REPAIR_COMMAND};if(_0x1bc093[_0x1f48b6(0x11f)]===_0x1f48b6(0xf0))return{'state':_0x1f48b6(0xf0),'expectedVersion':_0x740109,'reason':_0x1bc093[_0x1f48b6(0xf4)],'repairCommand':REPAIR_COMMAND};try{const _0x10e831=frontmatterValue(readFileSync(join(_0x1bc093[_0x1f48b6(0xef)],_0x1f48b6(0x11c)),_0x1f48b6(0xfa)),_0x1f48b6(0x105));return{'state':_0x10e831===_0x740109?_0x1f48b6(0x125):'version_mismatch','expectedVersion':_0x740109,'skillVersion':_0x10e831,'installedPath':_0x1bc093['path'],'repairCommand':REPAIR_COMMAND};}catch(_0x3ff767){return{'state':'unverifiable','expectedVersion':_0x740109,'installedPath':_0x1bc093[_0x1f48b6(0xef)],'reason':_0x3ff767 instanceof Error?_0x3ff767['message']:String(_0x3ff767),'repairCommand':REPAIR_COMMAND};}}function a281_0x3d9f(){const _0x33912a=['schemaVersion','utf8','1269370ZlXtXx','334076QAWZfe','rabetbase.manifest.json',':\x5cs*(.+)$','isSymbolicLink','root','length','includes','message','packageVersion','version','sha256','rabetbase','trim','sort','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','flatMap','Installed\x20Skill\x20state\x20is\x20','VERIFY_FAILED','present','unknown','174864wHkkIa','match','skills@latest\x20exited\x20','files','name','INSTALL_FAILED','update','skipped','389984ZGfwNb','28jHhrTv','startsWith','content_mismatch','SKILL.md','status','stdio','state','every','Unsafe\x20manifest\x20path:\x20','Symbolic\x20link\x20is\x20not\x20allowed:\x20','390954FnHNDj','119207EOUvOk','current','installedPath','home','Unsupported\x20Skill\x20entry:\x20','package.json','packageRoot','isDirectory','skillVersion','digest','pipe','missing','path','unverifiable','hex','skills','manifest','reason','split','parse','1042866BuDsJD','version_mismatch'];a281_0x3d9f=function(){return _0x33912a;};return a281_0x3d9f();}export function inspectBuiltinSkill(_0x2bf899={}){const _0x2b2ab0=a281_0x2e6f11,_0x25d9e3=_0x2bf899[_0x2b2ab0(0x12a)]??DEFAULT_PACKAGE_ROOT;let _0x5958a7;try{_0x5958a7=readSource(_0x25d9e3);}catch(_0x384335){return{'state':'unverifiable','packageVersion':_0x2b2ab0(0x10f),'reason':_0x384335 instanceof Error?_0x384335[_0x2b2ab0(0x103)]:String(_0x384335),'repairCommand':REPAIR_COMMAND};}const _0x36ae6e=installedSkillPath(_0x2bf899[_0x2b2ab0(0x127)]??homedir());if(_0x36ae6e[_0x2b2ab0(0x11f)]===_0x2b2ab0(0xee))return{'state':_0x2b2ab0(0xee),'packageVersion':_0x5958a7[_0x2b2ab0(0x104)],'repairCommand':REPAIR_COMMAND};if(_0x36ae6e[_0x2b2ab0(0x11f)]===_0x2b2ab0(0xf0))return{'state':_0x2b2ab0(0xf0),'packageVersion':_0x5958a7[_0x2b2ab0(0x104)],'reason':_0x36ae6e[_0x2b2ab0(0xf4)],'repairCommand':REPAIR_COMMAND};try{const _0x22ee35=frontmatterValue(readFileSync(join(_0x36ae6e['path'],_0x2b2ab0(0x11c)),'utf8'),_0x2b2ab0(0x105));if(_0x22ee35!==_0x5958a7[_0x2b2ab0(0x12c)])return{'state':_0x2b2ab0(0xf8),'packageVersion':_0x5958a7[_0x2b2ab0(0x104)],'skillVersion':_0x22ee35,'installedPath':_0x36ae6e['path'],'repairCommand':REPAIR_COMMAND};const _0x23bc16=listFiles(_0x36ae6e[_0x2b2ab0(0xef)]),_0x5ba090=digestFiles(_0x36ae6e[_0x2b2ab0(0xef)],_0x23bc16);return{'state':sameFiles(_0x23bc16,_0x5958a7[_0x2b2ab0(0xf3)][_0x2b2ab0(0x113)])&&_0x5ba090===_0x5958a7['manifest'][_0x2b2ab0(0x12d)]?_0x2b2ab0(0x125):_0x2b2ab0(0x11b),'packageVersion':_0x5958a7[_0x2b2ab0(0x104)],'skillVersion':_0x22ee35,'installedPath':_0x36ae6e[_0x2b2ab0(0xef)],'digest':_0x5ba090,'repairCommand':REPAIR_COMMAND};}catch(_0x377764){return{'state':_0x2b2ab0(0xf0),'packageVersion':_0x5958a7[_0x2b2ab0(0x104)],'installedPath':_0x36ae6e[_0x2b2ab0(0xef)],'reason':_0x377764 instanceof Error?_0x377764[_0x2b2ab0(0x103)]:String(_0x377764),'repairCommand':REPAIR_COMMAND};}}function failure(_0x5ba02e,_0x17fdd9,_0x11919c,_0x936530){const _0x173257=a281_0x2e6f11;return{'ok':![],'code':_0x5ba02e,'packageVersion':_0x17fdd9[_0x173257(0x104)],'skillVersion':_0x17fdd9[_0x173257(0x12c)],'installedPath':_0x936530,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x11919c instanceof Error?_0x11919c['message']:String(_0x11919c)};}export function installBuiltinSkill(_0x1b8cf6={}){const _0x4fcb11=a281_0x2e6f11,_0x22027f=_0x1b8cf6[_0x4fcb11(0x12a)]??DEFAULT_PACKAGE_ROOT,_0x5bccd0=_0x1b8cf6[_0x4fcb11(0x127)]??homedir();let _0x7420b5;try{_0x7420b5=readSource(_0x22027f);}catch(_0x330811){return failure('SOURCE_INVALID',{'packageVersion':_0x4fcb11(0x10f),'skillVersion':_0x4fcb11(0x10f)},_0x330811);}const _0x3d453a=inspectBuiltinSkill({'packageRoot':_0x22027f,'home':_0x5bccd0}),_0x2345e1=runNpxSkillsAddGlobal(_0x22027f,_0x7420b5[_0x4fcb11(0x100)],{'stdio':_0x1b8cf6[_0x4fcb11(0x11e)]??_0x4fcb11(0xed),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x5bccd0}});if(_0x2345e1[_0x4fcb11(0x117)])return{'ok':!![],'packageVersion':_0x7420b5[_0x4fcb11(0x104)],'skillVersion':_0x7420b5['skillVersion'],'installedPath':_0x3d453a[_0x4fcb11(0x126)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x2345e1['ok'])return failure(_0x4fcb11(0x115),_0x7420b5,_0x2345e1['error']??_0x4fcb11(0x112)+_0x2345e1[_0x4fcb11(0x11d)]);const _0x1a46a3=inspectBuiltinSkill({'packageRoot':_0x22027f,'home':_0x5bccd0});if(_0x1a46a3[_0x4fcb11(0x11f)]!==_0x4fcb11(0x125))return failure(_0x4fcb11(0x10d),_0x7420b5,_0x1a46a3[_0x4fcb11(0xf4)]??_0x4fcb11(0x10c)+_0x1a46a3[_0x4fcb11(0x11f)],_0x1a46a3[_0x4fcb11(0x126)]);return{'ok':!![],'packageVersion':_0x7420b5[_0x4fcb11(0x104)],'skillVersion':_0x7420b5[_0x4fcb11(0x12c)],'installedPath':_0x1a46a3[_0x4fcb11(0x126)],'changed':_0x3d453a[_0x4fcb11(0x11f)]!==_0x4fcb11(0x125),'repairCommand':REPAIR_COMMAND};}
1
+ const a295_0x422078=a295_0x3a40;(function(_0x118a53,_0x2ed4fb){const _0x471058=a295_0x3a40,_0x41d0b5=_0x118a53();while(!![]){try{const _0xce1d9d=-parseInt(_0x471058(0xe7))/0x1*(-parseInt(_0x471058(0xe3))/0x2)+-parseInt(_0x471058(0xab))/0x3*(parseInt(_0x471058(0xae))/0x4)+parseInt(_0x471058(0xa7))/0x5+parseInt(_0x471058(0xc8))/0x6*(parseInt(_0x471058(0xd7))/0x7)+-parseInt(_0x471058(0xbf))/0x8*(parseInt(_0x471058(0xcb))/0x9)+parseInt(_0x471058(0xa9))/0xa+-parseInt(_0x471058(0xdf))/0xb*(parseInt(_0x471058(0xb0))/0xc);if(_0xce1d9d===_0x2ed4fb)break;else _0x41d0b5['push'](_0x41d0b5['shift']());}catch(_0x459666){_0x41d0b5['push'](_0x41d0b5['shift']());}}}(a295_0x4f8c,0x8ccbc));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=a295_0x422078(0xd9),SKILL_NAME=a295_0x422078(0xb7);function frontmatterValue(_0x4e64b5,_0x1382fc){const _0x5d2ce6=a295_0x422078;return _0x4e64b5[_0x5d2ce6(0xde)](new RegExp('^'+_0x1382fc+_0x5d2ce6(0xdc),'m'))?.[0x1]?.[_0x5d2ce6(0xbd)]()??'';}function listFiles(_0x122ad0,_0xa35ca2=_0x122ad0){const _0x36d98f=a295_0x422078;return readdirSync(_0xa35ca2,{'withFileTypes':!![]})[_0x36d98f(0xaf)](_0x20ec39=>{const _0x293237=_0x36d98f,_0x3a93b5=join(_0xa35ca2,_0x20ec39[_0x293237(0xd4)]),_0x528734=lstatSync(_0x3a93b5);if(_0x528734['isSymbolicLink']())throw new Error(_0x293237(0xe4)+_0x3a93b5);if(_0x528734[_0x293237(0xc1)]())return listFiles(_0x122ad0,_0x3a93b5);if(!_0x528734[_0x293237(0xdb)]())throw new Error(_0x293237(0xb5)+_0x3a93b5);return[relative(_0x122ad0,_0x3a93b5)['split'](sep)[_0x293237(0xa4)]('/')];})[_0x36d98f(0xb8)]((_0x4b864e,_0x26ad07)=>_0x4b864e<_0x26ad07?-0x1:_0x4b864e>_0x26ad07?0x1:0x0);}function a295_0x4f8c(){const _0x519103=['status','trim','manifest','4688bROBoj','parse','isDirectory','SKILL.md','SOURCE_INVALID','startsWith','package.json','unknown','current','19662DpVvLY','present','absent','1791HdVbQQ','length','content_mismatch','root','files','skipped','includes','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','message','name','split','version','987juouPW','digest','rabetbase\x20cli-skill\x20install','rabetbase.manifest.json','isFile',':\x5cs*(.+)$','update','match','1133kBqDSE','missing','home','utf8','94JoOJQT','Symbolic\x20link\x20is\x20not\x20allowed:\x20','version_mismatch','stdio','14277UMhycl','unverifiable','join','skills','state','916495QpxWez','skills@latest\x20exited\x20','7949360LdGcNA','sha256','36ATndvP','path','installedPath','340036MbAoWV','flatMap','46356hoNcPK','packageRoot','reason','packageVersion','skillVersion','Unsupported\x20Skill\x20entry:\x20','INSTALL_FAILED','rabetbase','sort','error','Installed\x20Skill\x20state\x20is\x20','every'];a295_0x4f8c=function(){return _0x519103;};return a295_0x4f8c();}function digestFiles(_0x5aa468,_0x475c68){const _0x574681=a295_0x422078,_0x18b49a=createHash(_0x574681(0xaa));for(const _0x1ec53a of _0x475c68){if(_0x1ec53a[_0x574681(0xc4)]('/')||_0x1ec53a[_0x574681(0xd5)]('/')[_0x574681(0xd1)]('..')||_0x1ec53a[_0x574681(0xd1)]('\x5c'))throw new Error('Unsafe\x20manifest\x20path:\x20'+_0x1ec53a);_0x18b49a[_0x574681(0xdd)](_0x1ec53a),_0x18b49a[_0x574681(0xdd)]('\x00'),_0x18b49a[_0x574681(0xdd)](readFileSync(join(_0x5aa468,..._0x1ec53a['split']('/')))),_0x18b49a[_0x574681(0xdd)]('\x00');}return _0x18b49a[_0x574681(0xd8)]('hex');}function sameFiles(_0x17a193,_0x1f715a){const _0xfc3de5=a295_0x422078;return _0x17a193['length']===_0x1f715a[_0xfc3de5(0xcc)]&&_0x17a193[_0xfc3de5(0xbb)]((_0x1307fb,_0x4bc8bc)=>_0x1307fb===_0x1f715a[_0x4bc8bc]);}function readSource(_0x24ee3f){const _0x2f3072=a295_0x422078,_0x5c4f91=JSON[_0x2f3072(0xc0)](readFileSync(join(_0x24ee3f,_0x2f3072(0xc5)),_0x2f3072(0xe2))),_0x263f19=JSON['parse'](readFileSync(join(_0x24ee3f,_0x2f3072(0xa5),_0x2f3072(0xda)),'utf8')),_0x3e5b6b=join(_0x24ee3f,_0x2f3072(0xa5),SKILL_NAME),_0x784d19=frontmatterValue(readFileSync(join(_0x3e5b6b,'SKILL.md'),'utf8'),_0x2f3072(0xd6)),_0x9502d6=listFiles(_0x3e5b6b);if(_0x263f19['schemaVersion']!==0x1||_0x263f19[_0x2f3072(0xd4)]!==SKILL_NAME||!_0x5c4f91[_0x2f3072(0xd6)]||_0x263f19[_0x2f3072(0xb3)]!==_0x5c4f91['version']||_0x263f19['skillVersion']!==_0x5c4f91[_0x2f3072(0xd6)]||_0x784d19!==_0x5c4f91[_0x2f3072(0xd6)]||!sameFiles(_0x9502d6,_0x263f19[_0x2f3072(0xcf)])||digestFiles(_0x3e5b6b,_0x9502d6)!==_0x263f19['digest'])throw new Error(_0x2f3072(0xd2));return{'packageVersion':_0x5c4f91[_0x2f3072(0xd6)],'skillVersion':_0x784d19,'root':_0x3e5b6b,'manifest':_0x263f19};}function installedSkillPath(_0x36ae72){const _0x3bc903=a295_0x422078,_0x476d6a=resolveInstalledSkill(SKILL_NAME,{'home':_0x36ae72});if(_0x476d6a[_0x3bc903(0xa6)]===_0x3bc903(0xc9))return{'state':_0x3bc903(0xc9),'path':dirname(_0x476d6a[_0x3bc903(0xac)])};if(_0x476d6a[_0x3bc903(0xa6)]===_0x3bc903(0xca))return{'state':_0x3bc903(0xe0)};return{'state':_0x3bc903(0xe8),'reason':_0x476d6a['reason']};}export function inspectInstalledBuiltinSkillVersion(_0x5e9f32,_0x28181e={}){const _0x57d1c0=a295_0x422078,_0x49d8e3=installedSkillPath(_0x28181e['home']??homedir());if(_0x49d8e3[_0x57d1c0(0xa6)]===_0x57d1c0(0xe0))return{'state':_0x57d1c0(0xe0),'expectedVersion':_0x5e9f32,'repairCommand':REPAIR_COMMAND};if(_0x49d8e3['state']==='unverifiable')return{'state':_0x57d1c0(0xe8),'expectedVersion':_0x5e9f32,'reason':_0x49d8e3[_0x57d1c0(0xb2)],'repairCommand':REPAIR_COMMAND};try{const _0x51b5ce=frontmatterValue(readFileSync(join(_0x49d8e3[_0x57d1c0(0xac)],_0x57d1c0(0xc2)),_0x57d1c0(0xe2)),_0x57d1c0(0xd6));return{'state':_0x51b5ce===_0x5e9f32?'current':_0x57d1c0(0xe5),'expectedVersion':_0x5e9f32,'skillVersion':_0x51b5ce,'installedPath':_0x49d8e3['path'],'repairCommand':REPAIR_COMMAND};}catch(_0x13ac3a){return{'state':_0x57d1c0(0xe8),'expectedVersion':_0x5e9f32,'installedPath':_0x49d8e3[_0x57d1c0(0xac)],'reason':_0x13ac3a instanceof Error?_0x13ac3a[_0x57d1c0(0xd3)]:String(_0x13ac3a),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x14491a={}){const _0x1156ff=a295_0x422078,_0x305f7c=_0x14491a['packageRoot']??DEFAULT_PACKAGE_ROOT;let _0x2faebf;try{_0x2faebf=readSource(_0x305f7c);}catch(_0x19c8c4){return{'state':'unverifiable','packageVersion':_0x1156ff(0xc6),'reason':_0x19c8c4 instanceof Error?_0x19c8c4['message']:String(_0x19c8c4),'repairCommand':REPAIR_COMMAND};}const _0x2c7ff3=installedSkillPath(_0x14491a[_0x1156ff(0xe1)]??homedir());if(_0x2c7ff3['state']==='missing')return{'state':_0x1156ff(0xe0),'packageVersion':_0x2faebf[_0x1156ff(0xb3)],'repairCommand':REPAIR_COMMAND};if(_0x2c7ff3[_0x1156ff(0xa6)]===_0x1156ff(0xe8))return{'state':_0x1156ff(0xe8),'packageVersion':_0x2faebf[_0x1156ff(0xb3)],'reason':_0x2c7ff3[_0x1156ff(0xb2)],'repairCommand':REPAIR_COMMAND};try{const _0x288b7b=frontmatterValue(readFileSync(join(_0x2c7ff3[_0x1156ff(0xac)],_0x1156ff(0xc2)),_0x1156ff(0xe2)),_0x1156ff(0xd6));if(_0x288b7b!==_0x2faebf[_0x1156ff(0xb4)])return{'state':_0x1156ff(0xe5),'packageVersion':_0x2faebf[_0x1156ff(0xb3)],'skillVersion':_0x288b7b,'installedPath':_0x2c7ff3[_0x1156ff(0xac)],'repairCommand':REPAIR_COMMAND};const _0x36efb7=listFiles(_0x2c7ff3['path']),_0x43355e=digestFiles(_0x2c7ff3[_0x1156ff(0xac)],_0x36efb7);return{'state':sameFiles(_0x36efb7,_0x2faebf[_0x1156ff(0xbe)]['files'])&&_0x43355e===_0x2faebf['manifest'][_0x1156ff(0xd8)]?_0x1156ff(0xc7):_0x1156ff(0xcd),'packageVersion':_0x2faebf[_0x1156ff(0xb3)],'skillVersion':_0x288b7b,'installedPath':_0x2c7ff3['path'],'digest':_0x43355e,'repairCommand':REPAIR_COMMAND};}catch(_0x3fe71c){return{'state':'unverifiable','packageVersion':_0x2faebf['packageVersion'],'installedPath':_0x2c7ff3[_0x1156ff(0xac)],'reason':_0x3fe71c instanceof Error?_0x3fe71c['message']:String(_0x3fe71c),'repairCommand':REPAIR_COMMAND};}}function failure(_0xdd1b26,_0x363b95,_0x39b6be,_0x526c85){const _0x279619=a295_0x422078;return{'ok':![],'code':_0xdd1b26,'packageVersion':_0x363b95[_0x279619(0xb3)],'skillVersion':_0x363b95[_0x279619(0xb4)],'installedPath':_0x526c85,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x39b6be instanceof Error?_0x39b6be[_0x279619(0xd3)]:String(_0x39b6be)};}function a295_0x3a40(_0x4dda64,_0x4f86fa){_0x4dda64=_0x4dda64-0xa4;const _0x4f8c6d=a295_0x4f8c();let _0x3a4007=_0x4f8c6d[_0x4dda64];return _0x3a4007;}export function installBuiltinSkill(_0x10c3a2={}){const _0x5f9e4a=a295_0x422078,_0x3e8bc6=_0x10c3a2[_0x5f9e4a(0xb1)]??DEFAULT_PACKAGE_ROOT,_0x1e6cb9=_0x10c3a2[_0x5f9e4a(0xe1)]??homedir();let _0x589fa5;try{_0x589fa5=readSource(_0x3e8bc6);}catch(_0x4d7a3a){return failure(_0x5f9e4a(0xc3),{'packageVersion':_0x5f9e4a(0xc6),'skillVersion':'unknown'},_0x4d7a3a);}const _0x20492d=inspectBuiltinSkill({'packageRoot':_0x3e8bc6,'home':_0x1e6cb9}),_0x749bbe=runNpxSkillsAddGlobal(_0x3e8bc6,_0x589fa5[_0x5f9e4a(0xce)],{'stdio':_0x10c3a2[_0x5f9e4a(0xe6)]??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x1e6cb9}});if(_0x749bbe[_0x5f9e4a(0xd0)])return{'ok':!![],'packageVersion':_0x589fa5[_0x5f9e4a(0xb3)],'skillVersion':_0x589fa5[_0x5f9e4a(0xb4)],'installedPath':_0x20492d[_0x5f9e4a(0xad)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x749bbe['ok'])return failure(_0x5f9e4a(0xb6),_0x589fa5,_0x749bbe[_0x5f9e4a(0xb9)]??_0x5f9e4a(0xa8)+_0x749bbe[_0x5f9e4a(0xbc)]);const _0x197ee0=inspectBuiltinSkill({'packageRoot':_0x3e8bc6,'home':_0x1e6cb9});if(_0x197ee0[_0x5f9e4a(0xa6)]!==_0x5f9e4a(0xc7))return failure('VERIFY_FAILED',_0x589fa5,_0x197ee0[_0x5f9e4a(0xb2)]??_0x5f9e4a(0xba)+_0x197ee0['state'],_0x197ee0[_0x5f9e4a(0xad)]);return{'ok':!![],'packageVersion':_0x589fa5['packageVersion'],'skillVersion':_0x589fa5['skillVersion'],'installedPath':_0x197ee0[_0x5f9e4a(0xad)],'changed':_0x20492d[_0x5f9e4a(0xa6)]!==_0x5f9e4a(0xc7),'repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- (function(_0x49e769,_0x3421f4){const _0x3fd6c2=a282_0x4d00,_0x5ca1f4=_0x49e769();while(!![]){try{const _0x31aa9e=-parseInt(_0x3fd6c2(0x13b))/0x1*(-parseInt(_0x3fd6c2(0x13a))/0x2)+-parseInt(_0x3fd6c2(0x11d))/0x3+-parseInt(_0x3fd6c2(0x139))/0x4+-parseInt(_0x3fd6c2(0x13f))/0x5*(-parseInt(_0x3fd6c2(0x13c))/0x6)+parseInt(_0x3fd6c2(0x126))/0x7+parseInt(_0x3fd6c2(0x13e))/0x8*(-parseInt(_0x3fd6c2(0x132))/0x9)+-parseInt(_0x3fd6c2(0x140))/0xa*(-parseInt(_0x3fd6c2(0x12d))/0xb);if(_0x31aa9e===_0x3421f4)break;else _0x5ca1f4['push'](_0x5ca1f4['shift']());}catch(_0x2b6d4e){_0x5ca1f4['push'](_0x5ca1f4['shift']());}}}(a282_0x4241,0x40030));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x226fc6){const _0x2881b4=a282_0x4d00,_0x25e7ad=[];for(const [_0x79a2f5,_0x3bca54]of Object[_0x2881b4(0x12f)](_0x226fc6)){if(_0x3bca54===!![]){const _0x2c6a57=_0x79a2f5[_0x2881b4(0x136)](/([A-Z])/g,'-$1')[_0x2881b4(0x13d)]();_0x25e7ad[_0x2881b4(0x122)](_0x2c6a57);}}return _0x25e7ad;}function a282_0x4d00(_0x4d19d0,_0x2b8601){_0x4d19d0=_0x4d19d0-0x11d;const _0x42412c=a282_0x4241();let _0x4d0061=_0x42412c[_0x4d19d0];return _0x4d0061;}export function parseDynamicFlags(){const _0x1a3f0a=a282_0x4d00,_0x4bfe98=[];for(let _0x24cd03=0x3;_0x24cd03<process['argv'][_0x1a3f0a(0x120)];_0x24cd03++){const _0xb0df0d=process['argv'][_0x24cd03];if(_0xb0df0d&&_0xb0df0d[_0x1a3f0a(0x11f)]('--')){const _0x2f7336=_0xb0df0d[_0x1a3f0a(0x12c)](0x2);_0x2f7336&&!_0x2f7336[_0x1a3f0a(0x138)]('=')&&_0x4bfe98[_0x1a3f0a(0x122)](_0x2f7336);}}return _0x4bfe98;}export function getAllProvidedFlags(_0x3150d8){const _0x2c9c00=a282_0x4d00,_0x350105=camelCaseFlagsToKebab(_0x3150d8),_0x2640a9=parseDynamicFlags(),_0x417240=new Set([..._0x350105,..._0x2640a9]);return Array[_0x2c9c00(0x135)](_0x417240);}export function normalizeLegacyBffSaveFlags(_0x46460b){const _0x150513=a282_0x4d00,_0x58f789=new Set(_0x46460b);return _0x58f789[_0x150513(0x133)]('dangerously-bff-save')&&_0x58f789[_0x150513(0x128)](_0x150513(0x134)),Array[_0x150513(0x135)](_0x58f789);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a282_0x4241(){const _0x5c4926=['has','enable-bff-save','from','replace','cwd','includes','2000896AVWZOj','2NnTdTw','380482fgDcaV','4986dcATmT','toLowerCase','367064VTajpw','275vLFIOH','3106170uMEPcB','781848MszBMI','setLogPath','startsWith','length','Error:\x20Unsupported\x20command:\x20','push','log','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','error','2967139BSZKVY','--help','add','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','Public\x20Open\x20Skill\x20source:\x20','Unsupported\x20command:\x20','slice','11mfpdRR','exit','entries','help','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','27qBDDGw'];a282_0x4241=function(){return _0x5c4926;};return a282_0x4241();}export async function skillsCommand(_0x5d6f5f,_0x3fd31d,_0x40717e){const _0x302712=a282_0x4d00;logger[_0x302712(0x11e)](process[_0x302712(0x137)]());if(_0x40717e?.[_0x302712(0x130)]||_0x5d6f5f===_0x302712(0x127)){showHelp();return;}console[_0x302712(0x125)](_0x302712(0x121)+(_0x5d6f5f||'(empty)')),console[_0x302712(0x123)]('\x0aAvailable\x20commands:'),console[_0x302712(0x123)]('\x20\x20'+CLI_BIN_NAME+_0x302712(0x124)),console[_0x302712(0x123)](''),console[_0x302712(0x123)](_0x302712(0x12a)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x302712(0x125)]('skill',_0x302712(0x12b)+_0x5d6f5f),process[_0x302712(0x12e)](0x1);}function showHelp(){const _0x4b3251=a282_0x4d00;console[_0x4b3251(0x123)](_0x4b3251(0x131)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x4b3251(0x129));}
1
+ (function(_0x3a7c80,_0x1b6853){const _0x4dccf3=a296_0xc24d,_0x5214c2=_0x3a7c80();while(!![]){try{const _0xbb6e5d=-parseInt(_0x4dccf3(0x1f9))/0x1*(parseInt(_0x4dccf3(0x1eb))/0x2)+-parseInt(_0x4dccf3(0x1f6))/0x3+-parseInt(_0x4dccf3(0x1e9))/0x4+parseInt(_0x4dccf3(0x209))/0x5*(-parseInt(_0x4dccf3(0x206))/0x6)+-parseInt(_0x4dccf3(0x208))/0x7+-parseInt(_0x4dccf3(0x1f4))/0x8*(parseInt(_0x4dccf3(0x20a))/0x9)+parseInt(_0x4dccf3(0x205))/0xa;if(_0xbb6e5d===_0x1b6853)break;else _0x5214c2['push'](_0x5214c2['shift']());}catch(_0x588f91){_0x5214c2['push'](_0x5214c2['shift']());}}}(a296_0x4c48,0x1aefb));function a296_0xc24d(_0x73f5c,_0x5357ed){_0x73f5c=_0x73f5c-0x1e9;const _0x4c4835=a296_0x4c48();let _0xc24d61=_0x4c4835[_0x73f5c];return _0xc24d61;}import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x2b73d1){const _0x1ddc73=a296_0xc24d,_0x2145ad=[];for(const [_0x397fa4,_0x196a59]of Object[_0x1ddc73(0x202)](_0x2b73d1)){if(_0x196a59===!![]){const _0x5a7210=_0x397fa4['replace'](/([A-Z])/g,_0x1ddc73(0x1f5))[_0x1ddc73(0x203)]();_0x2145ad[_0x1ddc73(0x207)](_0x5a7210);}}return _0x2145ad;}export function parseDynamicFlags(){const _0xce9e87=a296_0xc24d,_0x4ad73d=[];for(let _0x3cff62=0x3;_0x3cff62<process[_0xce9e87(0x1f3)]['length'];_0x3cff62++){const _0x35a056=process[_0xce9e87(0x1f3)][_0x3cff62];if(_0x35a056&&_0x35a056[_0xce9e87(0x1ff)]('--')){const _0x2883f8=_0x35a056[_0xce9e87(0x1fd)](0x2);_0x2883f8&&!_0x2883f8[_0xce9e87(0x1f0)]('=')&&_0x4ad73d[_0xce9e87(0x207)](_0x2883f8);}}return _0x4ad73d;}export function getAllProvidedFlags(_0x480199){const _0x8f516b=camelCaseFlagsToKebab(_0x480199),_0x5341d4=parseDynamicFlags(),_0x4ae597=new Set([..._0x8f516b,..._0x5341d4]);return Array['from'](_0x4ae597);}export function normalizeLegacyBffSaveFlags(_0x42041f){const _0x330fcc=a296_0xc24d,_0x426fc6=new Set(_0x42041f);return _0x426fc6[_0x330fcc(0x1ed)]('dangerously-bff-save')&&_0x426fc6[_0x330fcc(0x204)](_0x330fcc(0x1f1)),Array[_0x330fcc(0x1ee)](_0x426fc6);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x41d56e,_0x5592b3,_0x3ec40b){const _0x321bab=a296_0xc24d;logger['setLogPath'](process[_0x321bab(0x201)]());if(_0x3ec40b?.[_0x321bab(0x1fc)]||_0x41d56e===_0x321bab(0x1fb)){showHelp();return;}console[_0x321bab(0x1fa)]('Error:\x20Unsupported\x20command:\x20'+(_0x41d56e||_0x321bab(0x1ec))),console['log'](_0x321bab(0x200)),console[_0x321bab(0x1ef)]('\x20\x20'+CLI_BIN_NAME+_0x321bab(0x1f7)),console[_0x321bab(0x1ef)](''),console['log'](_0x321bab(0x1f8)+SKILLS_INSTALL_COMMAND_LINE),logger['error']('skill','Unsupported\x20command:\x20'+_0x41d56e),process[_0x321bab(0x1ea)](0x1);}function a296_0x4c48(){const _0x344350=['has','from','log','includes','enable-bff-save','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','argv','16504pQJupY','-$1','130029DGbHsX','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','Public\x20Open\x20Skill\x20source:\x20','73697mtlHPB','error','--help','help','slice','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','startsWith','\x0aAvailable\x20commands:','cwd','entries','toLowerCase','add','8497660tymQBD','4404ZJlGHG','push','1175594JkzgEQ','415zUGWYS','801wPMPhz','839696FifEXr','exit','2jqxLdZ','(empty)'];a296_0x4c48=function(){return _0x344350;};return a296_0x4c48();}function showHelp(){const _0x4563eb=a296_0xc24d;console['log'](_0x4563eb(0x1fe)+CLI_BIN_NAME+_0x4563eb(0x1f2)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a');}
@@ -1 +1 @@
1
- const a283_0x2990b5=a283_0xe216;(function(_0x18f66f,_0xbb22ef){const _0x23795f=a283_0xe216,_0x43544e=_0x18f66f();while(!![]){try{const _0x4cf2fb=parseInt(_0x23795f(0x1f1))/0x1*(-parseInt(_0x23795f(0x1cb))/0x2)+parseInt(_0x23795f(0x1da))/0x3+-parseInt(_0x23795f(0x1c7))/0x4*(parseInt(_0x23795f(0x1d1))/0x5)+-parseInt(_0x23795f(0x1b4))/0x6*(parseInt(_0x23795f(0x1d9))/0x7)+-parseInt(_0x23795f(0x1c9))/0x8*(-parseInt(_0x23795f(0x1bf))/0x9)+parseInt(_0x23795f(0x1ec))/0xa+parseInt(_0x23795f(0x1dc))/0xb;if(_0x4cf2fb===_0xbb22ef)break;else _0x43544e['push'](_0x43544e['shift']());}catch(_0x2ad8b3){_0x43544e['push'](_0x43544e['shift']());}}}(a283_0x7b5b,0xc4ee7));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a283_0x2990b5(0x1e1);export const NPX_SKILLS_SUBCOMMAND_ADD=a283_0x2990b5(0x1e3);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a283_0x2990b5(0x1b1);export const LEGACY_RABETBASE_SKILL_SOURCE=a283_0x2990b5(0x1d7);export const DEFAULT_RABETBASE_SKILL_NAME=a283_0x2990b5(0x1d3);export const RABETBASE_GLOBAL_SKILL_NAME=a283_0x2990b5(0x1b7);export const RABETBASE_SKILL_GIT_SOURCE=a283_0x2990b5(0x1bc);export function resolveGlobalSkillName(_0x2976c6){const _0x5aed03=a283_0x2990b5;switch(_0x2976c6[_0x5aed03(0x1c2)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}function a283_0x7b5b(){const _0x564d4e=['Installer\x20reported\x20','yes','inherit','EACCES','25KyNWNw','NPM_CONFIG_GLOBAL','Lovrabet','NPX_NOT_FOUND','join','EPERM','lovrabet/lovrabet-skill','expectedSkillName','28NQUbFh','2769162fECOKs','message','11922845OCcxyo','pipe','checked','stdout','ENOENT','skills@latest','\x20failed\x20target(s)','add','code','present','toString','warn','\x22\x20install\x20state:\x20','push','stdio','Skill\x20\x22','8011600eAkcRG','exit\x20','skill','npm_config_global','absent','468382jndiRg','lovrabet/rabetbase','signal','PERMISSION_DENIED','2143176pIMnMA','stderr','status','rabetbase','SPAWN_FAILED','unknown','log','state','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','npx','unverifiable','1471833shXWNX','match','filter','trim','error','reason','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','SKILL_NOT_INSTALLED','362892YtRAoc','CHILD_EXIT_NONZERO','40bwtATW','CHILD_TERMINATED','4EDXcWL','npx\x20terminated\x20by\x20signal\x20'];a283_0x7b5b=function(){return _0x564d4e;};return a283_0x7b5b();}export function buildNpxSkillsAddArgv(_0x2e2dbb){const _0x360b01=a283_0x2990b5,_0x416542=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x2e2dbb&&_0x416542[_0x360b01(0x1e9)](NPX_SKILLS_FLAG_SKILL,_0x2e2dbb),_0x416542;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a283_0x2990b5(0x1bd),...buildNpxSkillsAddArgv()][a283_0x2990b5(0x1d5)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a283_0x2990b5(0x1bd),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a283_0x2990b5(0x1d5)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x53384a,_0x92dbd8,_0x160566){return{'ok':![],'status':_0x92dbd8,'code':_0x53384a,'error':'['+_0x53384a+']\x20'+_0x160566};}function a283_0xe216(_0x2052a5,_0x3995ee){_0x2052a5=_0x2052a5-0x1b1;const _0x7b5bd9=a283_0x7b5b();let _0xe21696=_0x7b5bd9[_0x2052a5];return _0xe21696;}function spawnOptions(_0x1e7236,_0x2d95ea){const _0x55bf6b=a283_0x2990b5,_0x2ac1db={...process.env};return delete _0x2ac1db[_0x55bf6b(0x1ef)],delete _0x2ac1db[_0x55bf6b(0x1d2)],{'cwd':_0x1e7236,'stdio':_0x2d95ea,'env':_0x2ac1db,'shell':![],..._0x2d95ea===_0x55bf6b(0x1dd)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x50e7f7,_0x20a1b8,_0xe611d0,_0x24ac78){const _0x51a1ec=a283_0x2990b5,_0x22d04e=[_0x50e7f7[_0x51a1ec(0x1df)]?_0x50e7f7[_0x51a1ec(0x1df)][_0x51a1ec(0x1e6)]():'',_0x50e7f7[_0x51a1ec(0x1b5)]?_0x50e7f7['stderr'][_0x51a1ec(0x1e6)]():''][_0x51a1ec(0x1c1)](Boolean)[_0x51a1ec(0x1d5)]('\x0a')['trim']();_0x24ac78!=='pipe'&&_0x22d04e&&console[_0x51a1ec(0x1ba)](_0x22d04e);if(_0x50e7f7[_0x51a1ec(0x1c3)]){const _0x1239d3=_0x50e7f7[_0x51a1ec(0x1c3)],_0x43567e=_0x1239d3[_0x51a1ec(0x1e4)]===_0x51a1ec(0x1e0)?_0x51a1ec(0x1d4):_0x1239d3[_0x51a1ec(0x1e4)]===_0x51a1ec(0x1d6)||_0x1239d3[_0x51a1ec(0x1e4)]===_0x51a1ec(0x1d0)?_0x51a1ec(0x1b3):_0x51a1ec(0x1b8);return failure(_0x43567e,_0x50e7f7[_0x51a1ec(0x1b6)],_0x1239d3[_0x51a1ec(0x1db)]);}if(_0x50e7f7[_0x51a1ec(0x1b2)])return failure(_0x51a1ec(0x1ca),_0x50e7f7[_0x51a1ec(0x1b6)],_0x51a1ec(0x1cc)+_0x50e7f7[_0x51a1ec(0x1b2)]);if(_0x50e7f7[_0x51a1ec(0x1b6)]!==0x0)return failure(_0x51a1ec(0x1c8),_0x50e7f7['status'],_0x22d04e||_0x51a1ec(0x1ed)+(_0x50e7f7['status']??_0x51a1ec(0x1b9)));const _0x4212f8=_0x20a1b8?resolveInstalledSkill(_0x20a1b8,_0xe611d0):undefined,_0x50b237=_0x22d04e[_0x51a1ec(0x1c0)](/Failed to install\s+(\d+)/i);if(_0x50b237&&Number(_0x50b237[0x1])>0x0){const _0x5969c4=_0x51a1ec(0x1cd)+_0x50b237[0x1]+_0x51a1ec(0x1e2)+(_0x22d04e?':\x0a'+_0x22d04e:'');if(_0x4212f8?.[_0x51a1ec(0x1bb)]===_0x51a1ec(0x1e5))return console['warn']('!\x20'+_0x5969c4),{'ok':!![],'status':0x0};return failure('INSTALL_PARTIAL',0x0,_0x5969c4);}if(_0x4212f8){if(_0x4212f8[_0x51a1ec(0x1bb)]===_0x51a1ec(0x1f0))return failure(_0x51a1ec(0x1c6),0x0,_0x51a1ec(0x1eb)+_0x20a1b8+_0x51a1ec(0x1c5)+_0x4212f8[_0x51a1ec(0x1de)]['join'](',\x20')+')');_0x4212f8[_0x51a1ec(0x1bb)]===_0x51a1ec(0x1be)&&console[_0x51a1ec(0x1e7)]('!\x20Could\x20not\x20verify\x20\x22'+_0x20a1b8+_0x51a1ec(0x1e8)+_0x4212f8[_0x51a1ec(0x1c4)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2f4198,_0x598dbb){const _0x565fbf=a283_0x2990b5;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xb61157=_0x598dbb?.[_0x565fbf(0x1ea)]??_0x565fbf(0x1cf),_0x21c1a1=resolveNpmBin(_0x565fbf(0x1bd)),_0x129a49=buildNpxSkillsAddArgv(_0x598dbb?.[_0x565fbf(0x1ee)]),_0x527dd2=[_0x565fbf(0x1bd),..._0x129a49][_0x565fbf(0x1d5)]('\x20');console[_0x565fbf(0x1ba)]('*\x20'+_0x527dd2);const _0x275006=spawnSync(_0x21c1a1,_0x129a49,spawnOptions(_0x2f4198,_0xb61157));return normalizeSpawnResult(_0x275006,undefined,undefined,_0xb61157);}export function runNpxSkillsRemove(_0x25aa20,_0x338d90,_0x1b63d2=LEGACY_RABETBASE_SKILL_SOURCE){const _0x482b1d=a283_0x2990b5;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x576ff4=_0x338d90?.['stdio']??_0x482b1d(0x1cf),_0x10051e=resolveNpmBin(_0x482b1d(0x1bd)),_0x59a3c7=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x1b63d2,NPX_SKILLS_FLAG_SKILL,_0x338d90?.[_0x482b1d(0x1ee)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x338d90?.[_0x482b1d(0x1ce)]?['-y']:[]],_0x15c273=[_0x10051e,..._0x59a3c7][_0x482b1d(0x1d5)]('\x20');console[_0x482b1d(0x1ba)]('*\x20'+_0x15c273);const _0x5c45a1=spawnSync(_0x10051e,_0x59a3c7,spawnOptions(_0x25aa20,_0x576ff4));return normalizeSpawnResult(_0x5c45a1,undefined,undefined,_0x576ff4);}export function runNpxSkillsAddGlobal(_0x38de1a,_0x12f630,_0x354b7a){const _0x38dac2=a283_0x2990b5;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1d63fd=resolveNpmBin(_0x38dac2(0x1bd)),_0x55671c=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x12f630,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x1cf630=['npx',NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x12f630,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x38dac2(0x1ba)]('*\x20'+_0x1cf630);const _0x58e196=spawnSync(_0x1d63fd,_0x55671c,spawnOptions(_0x38de1a,'pipe'));return normalizeSpawnResult(_0x58e196,_0x354b7a?.[_0x38dac2(0x1d8)]??resolveGlobalSkillName(_0x12f630),_0x354b7a?.['presence'],_0x354b7a?.['stdio']);}
1
+ const a297_0x11f76e=a297_0x1f56;(function(_0x1e0f3b,_0x4a77ef){const _0x20beac=a297_0x1f56,_0x33172a=_0x1e0f3b();while(!![]){try{const _0x2245a2=parseInt(_0x20beac(0x186))/0x1*(-parseInt(_0x20beac(0x185))/0x2)+-parseInt(_0x20beac(0x17c))/0x3*(-parseInt(_0x20beac(0x177))/0x4)+parseInt(_0x20beac(0x176))/0x5*(parseInt(_0x20beac(0x18c))/0x6)+parseInt(_0x20beac(0x18d))/0x7*(parseInt(_0x20beac(0x164))/0x8)+parseInt(_0x20beac(0x165))/0x9*(-parseInt(_0x20beac(0x17b))/0xa)+parseInt(_0x20beac(0x17d))/0xb+-parseInt(_0x20beac(0x182))/0xc;if(_0x2245a2===_0x4a77ef)break;else _0x33172a['push'](_0x33172a['shift']());}catch(_0x5a5287){_0x33172a['push'](_0x33172a['shift']());}}}(a297_0x1022,0xe62c0));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a297_0x11f76e(0x178);export const NPX_SKILLS_SUBCOMMAND_ADD=a297_0x11f76e(0x17a);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a297_0x11f76e(0x180);export const LEGACY_RABETBASE_SKILL_SOURCE=a297_0x11f76e(0x191);export const DEFAULT_RABETBASE_SKILL_NAME=a297_0x11f76e(0x166);export const RABETBASE_GLOBAL_SKILL_NAME=a297_0x11f76e(0x18b);export const RABETBASE_SKILL_GIT_SOURCE=a297_0x11f76e(0x189);export function resolveGlobalSkillName(_0x47549a){const _0x5bae8c=a297_0x11f76e;switch(_0x47549a[_0x5bae8c(0x170)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x41bb58){const _0x2602c5=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x41bb58&&_0x2602c5['push'](NPX_SKILLS_FLAG_SKILL,_0x41bb58),_0x2602c5;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a297_0x11f76e(0x169),...buildNpxSkillsAddArgv()][a297_0x11f76e(0x196)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a297_0x11f76e(0x169),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a297_0x11f76e(0x196)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function a297_0x1022(){const _0x4d463d=['expectedSkillName','SPAWN_FAILED','5915368peNfUx','387TKlnPM','Lovrabet','toString','signal','npx','match','unknown','CHILD_TERMINATED','warn','code','state','trim','checked','stdio','NPM_CONFIG_GLOBAL','!\x20Could\x20not\x20verify\x20\x22','npm_config_global','364415clzwYb','7229620FRUJos','skills@latest','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','add','135950vfMYuG','3kjKYVE','19621690nHnceB','unverifiable','Installer\x20reported\x20','lovrabet/rabetbase','INSTALL_PARTIAL','32051820SdneOL','yes','inherit','2JJbWMG','933975Qnvdso','remove','log','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','stdout','rabetbase','66CJSyjM','7jzVeuX','NPX_NOT_FOUND','EPERM','filter','lovrabet/lovrabet-skill','SKILL_NOT_INSTALLED','pipe','error','stderr','join','\x22\x20install\x20state:\x20','presence','present','message','reason','status','skill'];a297_0x1022=function(){return _0x4d463d;};return a297_0x1022();}function failure(_0x268a46,_0x453606,_0x20a572){return{'ok':![],'status':_0x453606,'code':_0x268a46,'error':'['+_0x268a46+']\x20'+_0x20a572};}function spawnOptions(_0x2651ae,_0x2494ad){const _0x57bce7=a297_0x11f76e,_0x4fe6bb={...process.env};return delete _0x4fe6bb[_0x57bce7(0x175)],delete _0x4fe6bb[_0x57bce7(0x173)],{'cwd':_0x2651ae,'stdio':_0x2494ad,'env':_0x4fe6bb,'shell':![],..._0x2494ad===_0x57bce7(0x193)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x4408b9,_0x61846c,_0x4d7b64,_0x42d8d1){const _0x3e1055=a297_0x11f76e,_0xf6eede=[_0x4408b9[_0x3e1055(0x18a)]?_0x4408b9[_0x3e1055(0x18a)]['toString']():'',_0x4408b9[_0x3e1055(0x195)]?_0x4408b9['stderr'][_0x3e1055(0x167)]():''][_0x3e1055(0x190)](Boolean)['join']('\x0a')[_0x3e1055(0x170)]();_0x42d8d1!=='pipe'&&_0xf6eede&&console[_0x3e1055(0x188)](_0xf6eede);if(_0x4408b9[_0x3e1055(0x194)]){const _0x450e6f=_0x4408b9[_0x3e1055(0x194)],_0x216e8d=_0x450e6f[_0x3e1055(0x16e)]==='ENOENT'?_0x3e1055(0x18e):_0x450e6f[_0x3e1055(0x16e)]===_0x3e1055(0x18f)||_0x450e6f[_0x3e1055(0x16e)]==='EACCES'?'PERMISSION_DENIED':_0x3e1055(0x163);return failure(_0x216e8d,_0x4408b9[_0x3e1055(0x19c)],_0x450e6f[_0x3e1055(0x19a)]);}if(_0x4408b9[_0x3e1055(0x168)])return failure(_0x3e1055(0x16c),_0x4408b9[_0x3e1055(0x19c)],'npx\x20terminated\x20by\x20signal\x20'+_0x4408b9[_0x3e1055(0x168)]);if(_0x4408b9[_0x3e1055(0x19c)]!==0x0)return failure('CHILD_EXIT_NONZERO',_0x4408b9[_0x3e1055(0x19c)],_0xf6eede||'exit\x20'+(_0x4408b9[_0x3e1055(0x19c)]??_0x3e1055(0x16b)));const _0x19104a=_0x61846c?resolveInstalledSkill(_0x61846c,_0x4d7b64):undefined,_0x20ee9b=_0xf6eede[_0x3e1055(0x16a)](/Failed to install\s+(\d+)/i);if(_0x20ee9b&&Number(_0x20ee9b[0x1])>0x0){const _0x4f07e0=_0x3e1055(0x17f)+_0x20ee9b[0x1]+'\x20failed\x20target(s)'+(_0xf6eede?':\x0a'+_0xf6eede:'');if(_0x19104a?.[_0x3e1055(0x16f)]===_0x3e1055(0x199))return console[_0x3e1055(0x16d)]('!\x20'+_0x4f07e0),{'ok':!![],'status':0x0};return failure(_0x3e1055(0x181),0x0,_0x4f07e0);}if(_0x19104a){if(_0x19104a['state']==='absent')return failure(_0x3e1055(0x192),0x0,'Skill\x20\x22'+_0x61846c+_0x3e1055(0x179)+_0x19104a[_0x3e1055(0x171)][_0x3e1055(0x196)](',\x20')+')');_0x19104a[_0x3e1055(0x16f)]===_0x3e1055(0x17e)&&console[_0x3e1055(0x16d)](_0x3e1055(0x174)+_0x61846c+_0x3e1055(0x197)+_0x19104a[_0x3e1055(0x19b)]);}return{'ok':!![],'status':0x0};}function a297_0x1f56(_0x32c3af,_0x277e10){_0x32c3af=_0x32c3af-0x163;const _0x1022ce=a297_0x1022();let _0x1f5647=_0x1022ce[_0x32c3af];return _0x1f5647;}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x506f28,_0x3289f7){const _0x410540=a297_0x11f76e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x54e1e0=_0x3289f7?.[_0x410540(0x172)]??'inherit',_0x104875=resolveNpmBin(_0x410540(0x169)),_0x16f8b9=buildNpxSkillsAddArgv(_0x3289f7?.[_0x410540(0x19d)]),_0x54e544=[_0x410540(0x169),..._0x16f8b9][_0x410540(0x196)]('\x20');console['log']('*\x20'+_0x54e544);const _0x540173=spawnSync(_0x104875,_0x16f8b9,spawnOptions(_0x506f28,_0x54e1e0));return normalizeSpawnResult(_0x540173,undefined,undefined,_0x54e1e0);}export function runNpxSkillsRemove(_0x1130a0,_0x53fec0,_0x28a25d=LEGACY_RABETBASE_SKILL_SOURCE){const _0x4b6bcc=a297_0x11f76e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x55cfb5=_0x53fec0?.[_0x4b6bcc(0x172)]??_0x4b6bcc(0x184),_0xb3943=resolveNpmBin('npx'),_0x310744=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x4b6bcc(0x187),_0x28a25d,NPX_SKILLS_FLAG_SKILL,_0x53fec0?.[_0x4b6bcc(0x19d)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x53fec0?.[_0x4b6bcc(0x183)]?['-y']:[]],_0x5ecaf7=[_0xb3943,..._0x310744][_0x4b6bcc(0x196)]('\x20');console[_0x4b6bcc(0x188)]('*\x20'+_0x5ecaf7);const _0x572224=spawnSync(_0xb3943,_0x310744,spawnOptions(_0x1130a0,_0x55cfb5));return normalizeSpawnResult(_0x572224,undefined,undefined,_0x55cfb5);}export function runNpxSkillsAddGlobal(_0x49840d,_0x4f636d,_0x57f167){const _0xfcf789=a297_0x11f76e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x565045=resolveNpmBin(_0xfcf789(0x169)),_0x3b5932=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4f636d,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x48211a=[_0xfcf789(0x169),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4f636d,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0xfcf789(0x196)]('\x20');console['log']('*\x20'+_0x48211a);const _0xb37d0b=spawnSync(_0x565045,_0x3b5932,spawnOptions(_0x49840d,_0xfcf789(0x193)));return normalizeSpawnResult(_0xb37d0b,_0x57f167?.[_0xfcf789(0x19e)]??resolveGlobalSkillName(_0x4f636d),_0x57f167?.[_0xfcf789(0x198)],_0x57f167?.[_0xfcf789(0x172)]);}
@@ -1 +1 @@
1
- const a284_0x4f9cfb=a284_0xd97d;(function(_0x45ad30,_0x1fbf41){const _0x46c90e=a284_0xd97d,_0x2e5a76=_0x45ad30();while(!![]){try{const _0x2a6b4a=parseInt(_0x46c90e(0xe8))/0x1+parseInt(_0x46c90e(0xf1))/0x2+-parseInt(_0x46c90e(0xe3))/0x3*(parseInt(_0x46c90e(0xd9))/0x4)+parseInt(_0x46c90e(0xd7))/0x5*(-parseInt(_0x46c90e(0xde))/0x6)+parseInt(_0x46c90e(0xd2))/0x7*(-parseInt(_0x46c90e(0xea))/0x8)+parseInt(_0x46c90e(0xe0))/0x9+parseInt(_0x46c90e(0xdd))/0xa*(parseInt(_0x46c90e(0xda))/0xb);if(_0x2a6b4a===_0x1fbf41)break;else _0x2e5a76['push'](_0x2e5a76['shift']());}catch(_0x565041){_0x2e5a76['push'](_0x2e5a76['shift']());}}}(a284_0x19b2,0xae065));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';function a284_0xd97d(_0x2c4d0c,_0x52775e){_0x2c4d0c=_0x2c4d0c-0xcd;const _0x19b228=a284_0x19b2();let _0xd97dfd=_0x19b228[_0x2c4d0c];return _0xd97dfd;}function a284_0x19b2(){const _0x5a88fb=['recorded','kind','1832824KWiKoB','\x20has\x20no\x20skills\x20map','message','absent','\x20is\x20unreadable:\x20','.skill-lock.json','182PHsPYQ','unusable','skills','globalSkillsDirs','.claude','693865IlGaMh','number','1324omPPJi','1361415jnfjBd','version','.agents','40YRCbSk','48QpNOpA','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','4315122ztdSHN','SKILL.md','reason','6252RgLovN','lockFile','object','includes','not-recorded','910749tOVQGX','\x20records\x20\x22','88888CgAkVB','map','unverifiable','utf8','home'];a284_0x19b2=function(){return _0x5a88fb;};return a284_0x19b2();}import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a284_0x4f9cfb(0xdc),a284_0x4f9cfb(0xd1));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a284_0x4f9cfb(0xdc),a284_0x4f9cfb(0xd4)),join(a284_0x4f9cfb(0xd6),a284_0x4f9cfb(0xd4))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x2dd353,_0x3852c5){const _0x110abb=a284_0x4f9cfb;if(!existsSync(_0x2dd353))return{'kind':_0x110abb(0xe7)};let _0x2997ed;try{_0x2997ed=JSON['parse'](readFileSync(_0x2dd353,_0x110abb(0xed)));}catch(_0x4ecb5d){return{'kind':_0x110abb(0xd3),'reason':_0x2dd353+_0x110abb(0xd0)+_0x4ecb5d[_0x110abb(0xce)]};}const _0x2adc02=_0x2997ed;if(typeof _0x2adc02?.['version']!==_0x110abb(0xd8)||!SUPPORTED_LOCK_VERSIONS[_0x110abb(0xe6)](_0x2adc02['version']))return{'kind':_0x110abb(0xd3),'reason':_0x2dd353+'\x20uses\x20unsupported\x20version\x20'+String(_0x2adc02?.[_0x110abb(0xdb)])};if(!_0x2adc02[_0x110abb(0xd4)]||typeof _0x2adc02[_0x110abb(0xd4)]!==_0x110abb(0xe5))return{'kind':'unusable','reason':_0x2dd353+_0x110abb(0xcd)};return _0x2adc02[_0x110abb(0xd4)][_0x3852c5]?{'kind':_0x110abb(0xef)}:{'kind':'not-recorded'};}export function resolveInstalledSkill(_0x51c16c,_0x162c26){const _0x4d71d7=a284_0x4f9cfb,_0x168fd6=_0x162c26?.[_0x4d71d7(0xee)]??homedir(),_0x3c9241=_0x162c26?.[_0x4d71d7(0xd5)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x4d71d7(0xeb)](_0x1920bb=>join(_0x168fd6,_0x1920bb)),_0x27b49c=_0x162c26?.[_0x4d71d7(0xe4)]??join(_0x168fd6,SKILL_LOCK_RELATIVE_PATH),_0x59f5ca=_0x3c9241[_0x4d71d7(0xeb)](_0x4093d0=>join(_0x4093d0,_0x51c16c,_0x4d71d7(0xe1))),_0x5b22d8=_0x59f5ca['find'](_0x52df43=>existsSync(_0x52df43));if(_0x5b22d8)return{'state':'present','path':_0x5b22d8};const _0x28c669=readLockLookup(_0x27b49c,_0x51c16c);if(_0x28c669[_0x4d71d7(0xf0)]==='unusable')return{'state':_0x4d71d7(0xec),'reason':_0x28c669[_0x4d71d7(0xe2)]};if(_0x28c669[_0x4d71d7(0xf0)]===_0x4d71d7(0xef))return{'state':'unverifiable','reason':_0x27b49c+_0x4d71d7(0xe9)+_0x51c16c+_0x4d71d7(0xdf)+('('+_0x59f5ca['join'](',\x20')+')')};return{'state':_0x4d71d7(0xcf),'checked':_0x59f5ca};}
1
+ const a298_0x418ae5=a298_0x1e05;(function(_0x5dfd9d,_0x30bb4d){const _0x866fd9=a298_0x1e05,_0x3f0f56=_0x5dfd9d();while(!![]){try{const _0x3f26b1=parseInt(_0x866fd9(0xf5))/0x1+parseInt(_0x866fd9(0xf0))/0x2*(-parseInt(_0x866fd9(0xe0))/0x3)+-parseInt(_0x866fd9(0xfc))/0x4+parseInt(_0x866fd9(0xe2))/0x5+parseInt(_0x866fd9(0xfb))/0x6+parseInt(_0x866fd9(0xde))/0x7*(-parseInt(_0x866fd9(0xed))/0x8)+parseInt(_0x866fd9(0xf9))/0x9;if(_0x3f26b1===_0x30bb4d)break;else _0x3f0f56['push'](_0x3f0f56['shift']());}catch(_0x5ba14b){_0x3f0f56['push'](_0x3f0f56['shift']());}}}(a298_0x4748,0xd4223));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a298_0x418ae5(0xe3),a298_0x418ae5(0xe1));function a298_0x1e05(_0x307289,_0x4cdd31){_0x307289=_0x307289-0xdd;const _0x474821=a298_0x4748();let _0x1e055a=_0x474821[_0x307289];return _0x1e055a;}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a298_0x418ae5(0xe3),a298_0x418ae5(0xeb)),join('.claude',a298_0x418ae5(0xeb))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x2f8562,_0x5edd45){const _0x23a887=a298_0x418ae5;if(!existsSync(_0x2f8562))return{'kind':_0x23a887(0xe8)};let _0x2a0d56;try{_0x2a0d56=JSON['parse'](readFileSync(_0x2f8562,_0x23a887(0xf3)));}catch(_0x4ebc05){return{'kind':_0x23a887(0xf8),'reason':_0x2f8562+_0x23a887(0xef)+_0x4ebc05[_0x23a887(0xf7)]};}const _0x565888=_0x2a0d56;if(typeof _0x565888?.[_0x23a887(0xfa)]!=='number'||!SUPPORTED_LOCK_VERSIONS['includes'](_0x565888['version']))return{'kind':_0x23a887(0xf8),'reason':_0x2f8562+_0x23a887(0xfe)+String(_0x565888?.[_0x23a887(0xfa)])};if(!_0x565888[_0x23a887(0xeb)]||typeof _0x565888[_0x23a887(0xeb)]!==_0x23a887(0xe4))return{'kind':_0x23a887(0xf8),'reason':_0x2f8562+_0x23a887(0xdf)};return _0x565888['skills'][_0x5edd45]?{'kind':_0x23a887(0xec)}:{'kind':_0x23a887(0xe8)};}export function resolveInstalledSkill(_0x22c314,_0x425f51){const _0x3e85e5=a298_0x418ae5,_0x166761=_0x425f51?.[_0x3e85e5(0xf1)]??homedir(),_0x2b12a5=_0x425f51?.[_0x3e85e5(0xe5)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x3e85e5(0xf6)](_0x1813e2=>join(_0x166761,_0x1813e2)),_0x259bdf=_0x425f51?.[_0x3e85e5(0xfd)]??join(_0x166761,SKILL_LOCK_RELATIVE_PATH),_0x1e33aa=_0x2b12a5[_0x3e85e5(0xf6)](_0x1e2666=>join(_0x1e2666,_0x22c314,_0x3e85e5(0xea))),_0x1bb5a8=_0x1e33aa['find'](_0x40bc56=>existsSync(_0x40bc56));if(_0x1bb5a8)return{'state':_0x3e85e5(0xe7),'path':_0x1bb5a8};const _0x1ef013=readLockLookup(_0x259bdf,_0x22c314);if(_0x1ef013[_0x3e85e5(0xee)]==='unusable')return{'state':_0x3e85e5(0xf4),'reason':_0x1ef013['reason']};if(_0x1ef013[_0x3e85e5(0xee)]===_0x3e85e5(0xec))return{'state':_0x3e85e5(0xf4),'reason':_0x259bdf+_0x3e85e5(0xe6)+_0x22c314+_0x3e85e5(0xe9)+('('+_0x1e33aa[_0x3e85e5(0xdd)](',\x20')+')')};return{'state':_0x3e85e5(0xf2),'checked':_0x1e33aa};}function a298_0x4748(){const _0x1e432f=['2225555nWUKDx','.agents','object','globalSkillsDirs','\x20records\x20\x22','present','not-recorded','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','SKILL.md','skills','recorded','16euGWgS','kind','\x20is\x20unreadable:\x20','20aOdnOE','home','absent','utf8','unverifiable','631655JXDQYE','map','message','unusable','26532378VHHJXO','version','6694314uhwgBl','6688360Pckgde','lockFile','\x20uses\x20unsupported\x20version\x20','join','3466638WkMQYU','\x20has\x20no\x20skills\x20map','482721kDsrvv','.skill-lock.json'];a298_0x4748=function(){return _0x1e432f;};return a298_0x4748();}
@@ -1 +1 @@
1
- (function(_0x57185f,_0x472bcb){const _0x1ace92=a285_0x25a9,_0x5b5292=_0x57185f();while(!![]){try{const _0x2a8178=parseInt(_0x1ace92(0x174))/0x1+-parseInt(_0x1ace92(0x179))/0x2*(-parseInt(_0x1ace92(0x17c))/0x3)+parseInt(_0x1ace92(0x16d))/0x4*(-parseInt(_0x1ace92(0x177))/0x5)+-parseInt(_0x1ace92(0x178))/0x6+parseInt(_0x1ace92(0x16c))/0x7*(parseInt(_0x1ace92(0x16a))/0x8)+parseInt(_0x1ace92(0x175))/0x9*(-parseInt(_0x1ace92(0x171))/0xa)+parseInt(_0x1ace92(0x17b))/0xb;if(_0x2a8178===_0x472bcb)break;else _0x5b5292['push'](_0x5b5292['shift']());}catch(_0x54963e){_0x5b5292['push'](_0x5b5292['shift']());}}}(a285_0x52dc,0xb6645));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x39f7b2){const _0x44d3cd=a285_0x25a9;return SENSITIVE_PATTERNS['some'](_0x12a361=>_0x12a361[_0x44d3cd(0x170)](_0x39f7b2));}function sanitizeFlags(_0x35e63f){const _0x2e68ee=a285_0x25a9,_0x2f9270={};for(const [_0x42a4a5,_0xce9b6e]of Object[_0x2e68ee(0x16b)](_0x35e63f)){isSensitiveKey(_0x42a4a5)?_0x2f9270[_0x42a4a5]=_0xce9b6e!=null&&_0xce9b6e!==''?_0x2e68ee(0x173):_0xce9b6e:_0x2f9270[_0x42a4a5]=_0xce9b6e;}return _0x2f9270;}function a285_0x25a9(_0x1d9e80,_0x3f99c6){_0x1d9e80=_0x1d9e80-0x169;const _0x52dcb9=a285_0x52dc();let _0x25a964=_0x52dcb9[_0x1d9e80];return _0x25a964;}function a285_0x52dc(){const _0x333b02=['flags','5pDssxw','8783016HPTzXV','472ktCpDO','rabetbase.command','15562294ClXDRP','12111SQIFpR','stringify','700360dkqEvE','entries','56Nwsvbv','2856668DMFbYj','service','durationMs','test','458360ncpWsW','error','[REDACTED]','728118uVnUsG','171yYUlRL'];a285_0x52dc=function(){return _0x333b02;};return a285_0x52dc();}export async function reportCommandTrace(_0xb331ca){const _0x1537d8=a285_0x25a9;try{const _0x574d83=sanitizeFlags(_0xb331ca[_0x1537d8(0x176)]);await sendCliTraceLog({'spanName':_0x1537d8(0x17a),'logData':{'command.cli_version':getCliVersion(),'command.service':_0xb331ca[_0x1537d8(0x16e)],'command.name':_0xb331ca['command'],'command.flags':JSON[_0x1537d8(0x169)](_0x574d83),..._0xb331ca[_0x1537d8(0x16f)]!=null?{'command.duration_ms':_0xb331ca[_0x1537d8(0x16f)]}:{},..._0xb331ca[_0x1537d8(0x172)]?{'command.error':_0xb331ca[_0x1537d8(0x172)]instanceof Error?_0xb331ca['error']['message']:String(_0xb331ca[_0x1537d8(0x172)])}:{}}});}catch{}}
1
+ (function(_0x59fb6b,_0x3653da){const _0x438c5f=a299_0x3ff1,_0x6aa451=_0x59fb6b();while(!![]){try{const _0x24c625=parseInt(_0x438c5f(0x1ab))/0x1+parseInt(_0x438c5f(0x1a0))/0x2+-parseInt(_0x438c5f(0x19e))/0x3+-parseInt(_0x438c5f(0x1a4))/0x4*(parseInt(_0x438c5f(0x1ac))/0x5)+-parseInt(_0x438c5f(0x1ae))/0x6+parseInt(_0x438c5f(0x1a9))/0x7*(parseInt(_0x438c5f(0x1a5))/0x8)+parseInt(_0x438c5f(0x1a6))/0x9;if(_0x24c625===_0x3653da)break;else _0x6aa451['push'](_0x6aa451['shift']());}catch(_0x24d672){_0x6aa451['push'](_0x6aa451['shift']());}}}(a299_0x5c72,0xc63fe));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a299_0x3ff1(_0x1be48c,_0x3ff98d){_0x1be48c=_0x1be48c-0x19c;const _0x5c72c0=a299_0x5c72();let _0x3ff139=_0x5c72c0[_0x1be48c];return _0x3ff139;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0xb1ed43){const _0x5f0f64=a299_0x3ff1;return SENSITIVE_PATTERNS[_0x5f0f64(0x1a2)](_0x49b980=>_0x49b980[_0x5f0f64(0x1a1)](_0xb1ed43));}function a299_0x5c72(){const _0x38df01=['335436gqaQSn','durationMs','stringify','2210706BpnbvQ','rabetbase.command','1073282yUyKQj','test','some','message','3774472AZaPSZ','161256GwhebK','628533eyMLHS','command','service','133tBPatI','error','1558995BMMCot','5XFxfth','flags'];a299_0x5c72=function(){return _0x38df01;};return a299_0x5c72();}function sanitizeFlags(_0x5ec2fe){const _0x5e05e6={};for(const [_0x5720f3,_0x34988e]of Object['entries'](_0x5ec2fe)){isSensitiveKey(_0x5720f3)?_0x5e05e6[_0x5720f3]=_0x34988e!=null&&_0x34988e!==''?'[REDACTED]':_0x34988e:_0x5e05e6[_0x5720f3]=_0x34988e;}return _0x5e05e6;}export async function reportCommandTrace(_0xf56824){const _0x560757=a299_0x3ff1;try{const _0x5d4086=sanitizeFlags(_0xf56824[_0x560757(0x1ad)]);await sendCliTraceLog({'spanName':_0x560757(0x19f),'logData':{'command.cli_version':getCliVersion(),'command.service':_0xf56824[_0x560757(0x1a8)],'command.name':_0xf56824[_0x560757(0x1a7)],'command.flags':JSON[_0x560757(0x19d)](_0x5d4086),..._0xf56824['durationMs']!=null?{'command.duration_ms':_0xf56824[_0x560757(0x19c)]}:{},..._0xf56824['error']?{'command.error':_0xf56824['error']instanceof Error?_0xf56824[_0x560757(0x1aa)][_0x560757(0x1a3)]:String(_0xf56824[_0x560757(0x1aa)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a286_0x1e59(){var _0x3c4df1=['8AtMXYi','Failed\x20to\x20report\x20CLI\x20help\x20trace:','114335pgWfDm','1704240jfQiNG','10BTTAXh','930284WiAHfB','3909850sEixBx','2192952sLkqDB','14990iFfFkC','cli.help','service','9qqjKnA','2893KPNMmk','1011906dcDpmA','error'];a286_0x1e59=function(){return _0x3c4df1;};return a286_0x1e59();}function a286_0x5144(_0xea8460,_0x5d0cb0){_0xea8460=_0xea8460-0x187;var _0x1e592a=a286_0x1e59();var _0x5144b9=_0x1e592a[_0xea8460];return _0x5144b9;}(function(_0x2b4db5,_0x562fd7){var _0x671013=a286_0x5144,_0x54e9b8=_0x2b4db5();while(!![]){try{var _0x374ed5=parseInt(_0x671013(0x18f))/0x1*(-parseInt(_0x671013(0x18d))/0x2)+-parseInt(_0x671013(0x190))/0x3+parseInt(_0x671013(0x192))/0x4*(parseInt(_0x671013(0x191))/0x5)+parseInt(_0x671013(0x18b))/0x6+parseInt(_0x671013(0x193))/0x7+-parseInt(_0x671013(0x194))/0x8*(parseInt(_0x671013(0x189))/0x9)+parseInt(_0x671013(0x195))/0xa*(parseInt(_0x671013(0x18a))/0xb);if(_0x374ed5===_0x562fd7)break;else _0x54e9b8['push'](_0x54e9b8['shift']());}catch(_0x5d2728){_0x54e9b8['push'](_0x54e9b8['shift']());}}}(a286_0x1e59,0x46141));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x23485a,_0x1ac6bc){var _0x3a81bb=a286_0x5144;try{await sendCliTraceLog({'spanName':_0x3a81bb(0x187),'logData':{'rabetbase.help.kind':_0x23485a,..._0x1ac6bc?.['service']&&{'rabetbase.help.service':_0x1ac6bc[_0x3a81bb(0x188)]}}});}catch(_0x238497){console[_0x3a81bb(0x18c)](_0x3a81bb(0x18e),_0x238497);}}
1
+ function a300_0x26c6(_0x5aac28,_0x15d91b){_0x5aac28=_0x5aac28-0xbd;var _0x4c3617=a300_0x4c36();var _0x26c623=_0x4c3617[_0x5aac28];return _0x26c623;}(function(_0x22e180,_0x4e6123){var _0x391bb8=a300_0x26c6,_0x2b6d3c=_0x22e180();while(!![]){try{var _0x57fd34=-parseInt(_0x391bb8(0xbf))/0x1+parseInt(_0x391bb8(0xc8))/0x2+-parseInt(_0x391bb8(0xc9))/0x3*(-parseInt(_0x391bb8(0xbd))/0x4)+-parseInt(_0x391bb8(0xc4))/0x5*(parseInt(_0x391bb8(0xc2))/0x6)+parseInt(_0x391bb8(0xbe))/0x7*(parseInt(_0x391bb8(0xc3))/0x8)+-parseInt(_0x391bb8(0xc1))/0x9+-parseInt(_0x391bb8(0xc6))/0xa;if(_0x57fd34===_0x4e6123)break;else _0x2b6d3c['push'](_0x2b6d3c['shift']());}catch(_0x39ac4c){_0x2b6d3c['push'](_0x2b6d3c['shift']());}}}(a300_0x4c36,0xf38c2));function a300_0x4c36(){var _0x3adba3=['11889451caPcaI','605594vRTZcG','Failed\x20to\x20report\x20CLI\x20help\x20trace:','1696095tOSlco','474OKmsSR','8NtqedQ','20240bwGWMg','error','11092450iaDwrr','cli.help','603362tBqCWK','1830723LbUVrJ','service','8WbgtEz'];a300_0x4c36=function(){return _0x3adba3;};return a300_0x4c36();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x1d43a6,_0x21a3c1){var _0x2d0b19=a300_0x26c6;try{await sendCliTraceLog({'spanName':_0x2d0b19(0xc7),'logData':{'rabetbase.help.kind':_0x1d43a6,..._0x21a3c1?.[_0x2d0b19(0xca)]&&{'rabetbase.help.service':_0x21a3c1[_0x2d0b19(0xca)]}}});}catch(_0x825d9a){console[_0x2d0b19(0xc5)](_0x2d0b19(0xc0),_0x825d9a);}}
@@ -1 +1 @@
1
- (function(_0x13191d,_0x3aae1a){const _0x57c888=a287_0x2cf0,_0x290a1b=_0x13191d();while(!![]){try{const _0x43864c=-parseInt(_0x57c888(0x202))/0x1*(-parseInt(_0x57c888(0x1f5))/0x2)+parseInt(_0x57c888(0x1f6))/0x3*(parseInt(_0x57c888(0x201))/0x4)+parseInt(_0x57c888(0x1f4))/0x5+parseInt(_0x57c888(0x1f0))/0x6+-parseInt(_0x57c888(0x1f9))/0x7*(-parseInt(_0x57c888(0x1fe))/0x8)+-parseInt(_0x57c888(0x1f1))/0x9*(-parseInt(_0x57c888(0x1f8))/0xa)+-parseInt(_0x57c888(0x1fd))/0xb;if(_0x43864c===_0x3aae1a)break;else _0x290a1b['push'](_0x290a1b['shift']());}catch(_0x8116b){_0x290a1b['push'](_0x290a1b['shift']());}}}(a287_0x1285,0x3e298));function a287_0x1285(){const _0x4c9d5c=['1223615yWVPtZ','2gTSApa','6MADkBZ','unknown','1591630JkDIno','158879TZmNGm','production','tenant_code','tenant','15042863mdNEaW','120spYGdB','user','email','11228BYnUTk','266327uPbxgv','2680224hMrZvI','18YRcdTm','username','daily'];a287_0x1285=function(){return _0x4c9d5c;};return a287_0x1285();}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a287_0x2cf0(_0x18f926,_0x3f5282){_0x18f926=_0x18f926-0x1f0;const _0x1285ab=a287_0x1285();let _0x2cf0ea=_0x1285ab[_0x18f926];return _0x2cf0ea;}import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0xbadbe6=a287_0x2cf0,_0x3704d5=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x2d0b86=_0x3704d5?.[_0xbadbe6(0x1ff)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0xbadbe6(0x1f7)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0xbadbe6(0x1f3):_0xbadbe6(0x1fa))}),setUserContext({'id':_0x2d0b86?.['id'],'username':_0x2d0b86?.[_0xbadbe6(0x1f2)],'nickname':_0x2d0b86?.['nickname'],'email':_0x2d0b86?.[_0xbadbe6(0x200)],'tenantCode':_0x2d0b86?.[_0xbadbe6(0x1fc)]?.[_0xbadbe6(0x1fb)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x3704d5;}
1
+ (function(_0x103594,_0x71b893){const _0x6eda1d=a301_0x28ff,_0x21f487=_0x103594();while(!![]){try{const _0x31ec28=-parseInt(_0x6eda1d(0xe4))/0x1*(-parseInt(_0x6eda1d(0xec))/0x2)+parseInt(_0x6eda1d(0xe7))/0x3*(parseInt(_0x6eda1d(0xf6))/0x4)+-parseInt(_0x6eda1d(0xf1))/0x5+-parseInt(_0x6eda1d(0xf4))/0x6+-parseInt(_0x6eda1d(0xe8))/0x7+parseInt(_0x6eda1d(0xf5))/0x8*(parseInt(_0x6eda1d(0xf2))/0x9)+-parseInt(_0x6eda1d(0xe6))/0xa*(-parseInt(_0x6eda1d(0xed))/0xb);if(_0x31ec28===_0x71b893)break;else _0x21f487['push'](_0x21f487['shift']());}catch(_0x1a7f61){_0x21f487['push'](_0x21f487['shift']());}}}(a301_0x3b84,0x5fb27));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a301_0x28ff(_0xa62046,_0x411527){_0xa62046=_0xa62046-0xe3;const _0x3b842f=a301_0x3b84();let _0x28ffe3=_0x3b842f[_0xa62046];return _0x28ffe3;}import{getConfigAppCode}from'../utils/config.js';function a301_0x3b84(){const _0x170b9c=['tenant_code','tenant','3677480koFinJ','5211999JPBfOM','username','142872mzZYeu','8UtSsuj','45596yEhpoM','email','13982aMFUAm','daily','400270sFoDPm','159pSyANM','3764565TqvnVW','nickname','unknown','production','38TAOycw','66vsCxCI','user'];a301_0x3b84=function(){return _0x170b9c;};return a301_0x3b84();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x5c0dc1=a301_0x28ff,_0x5aa374=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x565231=_0x5aa374?.[_0x5c0dc1(0xee)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x5c0dc1(0xea)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x5c0dc1(0xe5):_0x5c0dc1(0xeb))}),setUserContext({'id':_0x565231?.['id'],'username':_0x565231?.[_0x5c0dc1(0xf3)],'nickname':_0x565231?.[_0x5c0dc1(0xe9)],'email':_0x565231?.[_0x5c0dc1(0xe3)],'tenantCode':_0x565231?.[_0x5c0dc1(0xf0)]?.[_0x5c0dc1(0xef)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x5aa374;}
@@ -1 +1 @@
1
- (function(_0x51c838,_0x45ba7d){const _0x117db4=a288_0x3768,_0x39935c=_0x51c838();while(!![]){try{const _0x3a96fa=-parseInt(_0x117db4(0x1c1))/0x1+-parseInt(_0x117db4(0x1bb))/0x2+-parseInt(_0x117db4(0x1c7))/0x3+-parseInt(_0x117db4(0x1c6))/0x4*(-parseInt(_0x117db4(0x1c3))/0x5)+parseInt(_0x117db4(0x1bf))/0x6+parseInt(_0x117db4(0x1c4))/0x7*(-parseInt(_0x117db4(0x1c2))/0x8)+parseInt(_0x117db4(0x1c5))/0x9*(parseInt(_0x117db4(0x1be))/0xa);if(_0x3a96fa===_0x45ba7d)break;else _0x39935c['push'](_0x39935c['shift']());}catch(_0x5a13ae){_0x39935c['push'](_0x39935c['shift']());}}}(a288_0x3f4f,0x3fc85));import{shutdownTraces}from'@lovrabet/otel-logger';function a288_0x3768(_0x3db6b6,_0x529f3d){_0x3db6b6=_0x3db6b6-0x1bb;const _0x3f4f58=a288_0x3f4f();let _0x3768ab=_0x3f4f58[_0x3db6b6];return _0x3768ab;}function a288_0x3f4f(){const _0x46cf8b=['7245vdXfyX','7544493ajgcoF','2328VYdLWi','200157LlMjqK','175700MgTbLN','exit','SIGINT','10hLMTil','1975884bFyAXk','once','385682JPITie','3320FNCodl','545qeFejs'];a288_0x3f4f=function(){return _0x46cf8b;};return a288_0x3f4f();}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x4b36bc=a288_0x3768;process[_0x4b36bc(0x1c0)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x119a05=()=>{void flushOtelNodeIfUsed()['then'](()=>process['exit'](0x0));};process[_0x4b36bc(0x1c0)](_0x4b36bc(0x1bd),_0x119a05),process[_0x4b36bc(0x1c0)]('SIGTERM',_0x119a05);}export async function exitWithOtelShutdown(_0x36b21d){const _0x3eaa7c=a288_0x3768;await flushOtelNodeIfUsed(),process[_0x3eaa7c(0x1bc)](_0x36b21d);}
1
+ (function(_0x368a0d,_0x4fe5cf){const _0x1d0bcb=a302_0x3658,_0x3fa91b=_0x368a0d();while(!![]){try{const _0x606d35=parseInt(_0x1d0bcb(0x10b))/0x1+-parseInt(_0x1d0bcb(0x100))/0x2*(-parseInt(_0x1d0bcb(0xfc))/0x3)+-parseInt(_0x1d0bcb(0x101))/0x4+parseInt(_0x1d0bcb(0x108))/0x5*(parseInt(_0x1d0bcb(0x107))/0x6)+-parseInt(_0x1d0bcb(0xff))/0x7+-parseInt(_0x1d0bcb(0x106))/0x8*(parseInt(_0x1d0bcb(0x105))/0x9)+parseInt(_0x1d0bcb(0x103))/0xa*(parseInt(_0x1d0bcb(0xfe))/0xb);if(_0x606d35===_0x4fe5cf)break;else _0x3fa91b['push'](_0x3fa91b['shift']());}catch(_0x563276){_0x3fa91b['push'](_0x3fa91b['shift']());}}}(a302_0x592d,0xd84c8));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a302_0x3658(_0x102d8a,_0x3c14b2){_0x102d8a=_0x102d8a-0xfc;const _0x592d24=a302_0x592d();let _0x3658f0=_0x592d24[_0x102d8a];return _0x3658f0;}function a302_0x592d(){const _0x4d9b08=['25CHtgTD','SIGTERM','SIGINT','301262MHivtM','18HMZPdV','once','11grWtru','7277256skCuxq','53994WDceRK','2260132fxtalh','exit','16875130xEACGf','then','24579VmzsuQ','2648raQsFq','1492566FwkYWg'];a302_0x592d=function(){return _0x4d9b08;};return a302_0x592d();}export function registerOtelShutdownOnExit(){const _0x53e95c=a302_0x3658;process[_0x53e95c(0xfd)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x1dfd8a=()=>{const _0x2e0f10=_0x53e95c;void flushOtelNodeIfUsed()[_0x2e0f10(0x104)](()=>process[_0x2e0f10(0x102)](0x0));};process['once'](_0x53e95c(0x10a),_0x1dfd8a),process['once'](_0x53e95c(0x109),_0x1dfd8a);}export async function exitWithOtelShutdown(_0x78d336){const _0x42cd9c=a302_0x3658;await flushOtelNodeIfUsed(),process[_0x42cd9c(0x102)](_0x78d336);}
@@ -1 +1 @@
1
- (function(_0x3286fa,_0x4b434e){const _0x3e3d63=a289_0x2d7c,_0x578bc7=_0x3286fa();while(!![]){try{const _0x107ce7=parseInt(_0x3e3d63(0xb0))/0x1+-parseInt(_0x3e3d63(0xa9))/0x2*(parseInt(_0x3e3d63(0xac))/0x3)+parseInt(_0x3e3d63(0xb2))/0x4+-parseInt(_0x3e3d63(0xb4))/0x5+parseInt(_0x3e3d63(0xb5))/0x6+-parseInt(_0x3e3d63(0xb3))/0x7+parseInt(_0x3e3d63(0xb1))/0x8;if(_0x107ce7===_0x4b434e)break;else _0x578bc7['push'](_0x578bc7['shift']());}catch(_0xca22d8){_0x578bc7['push'](_0x578bc7['shift']());}}}(a289_0x3f26,0x41eba));import{sendTraceLog}from'@lovrabet/otel-logger';function a289_0x3f26(){const _0x101565=['2300347Vgmyzn','445240VTuVDI','2678424VfcfsM','traceName','6310DqnEsI','version','traceparent','249sADOsj','logData','manual','spanName','283703cuESRy','1387288aNgWJm','184104bYOXIm'];a289_0x3f26=function(){return _0x101565;};return a289_0x3f26();}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a289_0x2d7c(_0xec15b5,_0x395e3f){_0xec15b5=_0xec15b5-0xa9;const _0x3f2679=a289_0x3f26();let _0x2d7c54=_0x3f2679[_0xec15b5];return _0x2d7c54;}const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x5b21e8){const _0x59203e=a289_0x2d7c;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x5b21e8[_0x59203e(0xb6)]??DEFAULT_TRACE_NAME,'version':_0x5b21e8[_0x59203e(0xaa)]??getCliVersion(),'spanName':_0x5b21e8[_0x59203e(0xaf)],'eventType':_0x59203e(0xae),'logData':_0x5b21e8[_0x59203e(0xad)],..._0x5b21e8[_0x59203e(0xab)]&&{'traceparent':_0x5b21e8[_0x59203e(0xab)]}});}
1
+ const a303_0x55570f=a303_0x112b;(function(_0x4c6fea,_0x351dcf){const _0x301014=a303_0x112b,_0x3113f1=_0x4c6fea();while(!![]){try{const _0x2328e1=-parseInt(_0x301014(0xfa))/0x1*(parseInt(_0x301014(0xfb))/0x2)+-parseInt(_0x301014(0xf8))/0x3+-parseInt(_0x301014(0xf4))/0x4+-parseInt(_0x301014(0xf7))/0x5*(-parseInt(_0x301014(0xf1))/0x6)+-parseInt(_0x301014(0xee))/0x7*(parseInt(_0x301014(0xf2))/0x8)+-parseInt(_0x301014(0xef))/0x9*(-parseInt(_0x301014(0xf0))/0xa)+parseInt(_0x301014(0xf5))/0xb*(parseInt(_0x301014(0xfc))/0xc);if(_0x2328e1===_0x351dcf)break;else _0x3113f1['push'](_0x3113f1['shift']());}catch(_0x14cc2f){_0x3113f1['push'](_0x3113f1['shift']());}}}(a303_0x55e7,0x4fec7));function a303_0x55e7(){const _0x39460e=['rabetbase-cli','47341bNmJmo','171XjuUly','45970TRwGgX','25338IWLGwm','80EIptte','traceparent','1163892nepHVO','2187449BQmJYV','logData','40IsMODX','1012032IsZGat','manual','46054DVamCg','4UImuCn','60LlWEbS','traceName'];a303_0x55e7=function(){return _0x39460e;};return a303_0x55e7();}import{sendTraceLog}from'@lovrabet/otel-logger';function a303_0x112b(_0x38bcb3,_0x4c787d){_0x38bcb3=_0x38bcb3-0xee;const _0x55e702=a303_0x55e7();let _0x112b13=_0x55e702[_0x38bcb3];return _0x112b13;}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a303_0x55570f(0xfe);export async function sendCliTraceLog(_0x2beba7){const _0x1267b1=a303_0x55570f;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x2beba7[_0x1267b1(0xfd)]??DEFAULT_TRACE_NAME,'version':_0x2beba7['version']??getCliVersion(),'spanName':_0x2beba7['spanName'],'eventType':_0x1267b1(0xf9),'logData':_0x2beba7[_0x1267b1(0xf6)],..._0x2beba7['traceparent']&&{'traceparent':_0x2beba7[_0x1267b1(0xf3)]}});}
@@ -1 +1 @@
1
- function a290_0x13d8(){const _0x50c706=['35005YgEhct','186NxgBZT','9326601QnzZRc','77918lBGztr','join','8fylCkL','sanitize','2254800dTLXzU','redactionCount','originalBytes','description','11932cuJrJE','redactionKinds','548616LJQecl','platform-issue-log-collect','647423mXeofT'];a290_0x13d8=function(){return _0x50c706;};return a290_0x13d8();}const a290_0x2fcbff=a290_0x1a58;(function(_0x15bfa3,_0x20e20b){const _0x5440e8=a290_0x1a58,_0x4edc16=_0x15bfa3();while(!![]){try{const _0x4d6e09=parseInt(_0x5440e8(0x14b))/0x1+-parseInt(_0x5440e8(0x143))/0x2+-parseInt(_0x5440e8(0x14d))/0x3*(parseInt(_0x5440e8(0x145))/0x4)+parseInt(_0x5440e8(0x140))/0x5*(-parseInt(_0x5440e8(0x141))/0x6)+parseInt(_0x5440e8(0x13f))/0x7+-parseInt(_0x5440e8(0x147))/0x8+parseInt(_0x5440e8(0x142))/0x9;if(_0x4d6e09===_0x20e20b)break;else _0x4edc16['push'](_0x4edc16['shift']());}catch(_0x55e11f){_0x4edc16['push'](_0x4edc16['shift']());}}}(a290_0x13d8,0x39e46));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a290_0x2fcbff(0x14e);function a290_0x1a58(_0x42de84,_0xfda18b){_0x42de84=_0x42de84-0x13f;const _0x13d85f=a290_0x13d8();let _0x1a58e9=_0x13d85f[_0x42de84];return _0x1a58e9;}export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x5a8630){const _0x5bb55f=a290_0x2fcbff;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x5a8630['title'],'issue.description':_0x5a8630[_0x5bb55f(0x14a)],..._0x5a8630[_0x5bb55f(0x146)]?{'issue.description_original_bytes':_0x5a8630[_0x5bb55f(0x146)][_0x5bb55f(0x149)],'issue.description_truncated':_0x5a8630[_0x5bb55f(0x146)]['truncated'],'issue.description_redactions':_0x5a8630['sanitize'][_0x5bb55f(0x148)],'issue.description_redaction_kinds':_0x5a8630[_0x5bb55f(0x146)][_0x5bb55f(0x14c)][_0x5bb55f(0x144)](',')}:{}}});}
1
+ const a304_0xe43d86=a304_0x2585;function a304_0x5074(){const _0x4dfd32=['platform-issue-log-collect','1200432WRZMSX','truncated','152UMIfYk','940pfuojW','23970037JFgwIx','146930oTwtoD','sanitize','40266dBAhvy','description','109468YDbKHh','redactionKinds','77itKbiM','312396PRofeD','935184mZyhwR','15pSZbAh','redactionCount','2CfdGeg','originalBytes','69WQcrKZ','join'];a304_0x5074=function(){return _0x4dfd32;};return a304_0x5074();}function a304_0x2585(_0x1f92bc,_0x463fe6){_0x1f92bc=_0x1f92bc-0x1b6;const _0x5074e6=a304_0x5074();let _0x2585e2=_0x5074e6[_0x1f92bc];return _0x2585e2;}(function(_0x1a3528,_0x7ac0e7){const _0x3f4590=a304_0x2585,_0x2a1fc3=_0x1a3528();while(!![]){try{const _0x178289=-parseInt(_0x3f4590(0x1bd))/0x1*(-parseInt(_0x3f4590(0x1b9))/0x2)+parseInt(_0x3f4590(0x1bf))/0x3*(-parseInt(_0x3f4590(0x1b6))/0x4)+parseInt(_0x3f4590(0x1bb))/0x5*(-parseInt(_0x3f4590(0x1c2))/0x6)+-parseInt(_0x3f4590(0x1c7))/0x7*(parseInt(_0x3f4590(0x1c4))/0x8)+parseInt(_0x3f4590(0x1c9))/0x9*(parseInt(_0x3f4590(0x1c5))/0xa)+parseInt(_0x3f4590(0x1b8))/0xb*(-parseInt(_0x3f4590(0x1ba))/0xc)+parseInt(_0x3f4590(0x1c6))/0xd;if(_0x178289===_0x7ac0e7)break;else _0x2a1fc3['push'](_0x2a1fc3['shift']());}catch(_0x50a0f6){_0x2a1fc3['push'](_0x2a1fc3['shift']());}}}(a304_0x5074,0x6257a));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a304_0xe43d86(0x1c1);export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x2c24a0){const _0x62e115=a304_0xe43d86;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2c24a0['title'],'issue.description':_0x2c24a0[_0x62e115(0x1ca)],..._0x2c24a0[_0x62e115(0x1c8)]?{'issue.description_original_bytes':_0x2c24a0['sanitize'][_0x62e115(0x1be)],'issue.description_truncated':_0x2c24a0['sanitize'][_0x62e115(0x1c3)],'issue.description_redactions':_0x2c24a0[_0x62e115(0x1c8)][_0x62e115(0x1bc)],'issue.description_redaction_kinds':_0x2c24a0['sanitize'][_0x62e115(0x1b7)][_0x62e115(0x1c0)](',')}:{}}});}
@@ -1 +1 @@
1
- const a292_0x1e9bd5=a292_0x5c24;(function(_0x24492d,_0x218556){const _0x1734a8=a292_0x5c24,_0x3e401c=_0x24492d();while(!![]){try{const _0x3790b9=parseInt(_0x1734a8(0x10e))/0x1*(-parseInt(_0x1734a8(0x11d))/0x2)+parseInt(_0x1734a8(0x121))/0x3*(parseInt(_0x1734a8(0xf6))/0x4)+-parseInt(_0x1734a8(0x110))/0x5+-parseInt(_0x1734a8(0x10a))/0x6+-parseInt(_0x1734a8(0x100))/0x7*(parseInt(_0x1734a8(0xfb))/0x8)+parseInt(_0x1734a8(0x101))/0x9*(-parseInt(_0x1734a8(0x111))/0xa)+parseInt(_0x1734a8(0x117))/0xb;if(_0x3790b9===_0x218556)break;else _0x3e401c['push'](_0x3e401c['shift']());}catch(_0x5486b6){_0x3e401c['push'](_0x3e401c['shift']());}}}(a292_0x3c54,0x4adbd));export const CORE_IDE_CONFIGS={'cursor':{'name':a292_0x1e9bd5(0x116),'description':'Cursor\x20IDE','folders':['.cursorrules','.cursor'],'files':[{'type':'file','path':a292_0x1e9bd5(0xfd)}]},'windsurf':{'name':'Windsurf','description':'Windsurf\x20IDE','folders':[a292_0x1e9bd5(0xf2)],'files':[{'type':a292_0x1e9bd5(0x124),'path':a292_0x1e9bd5(0x109)}]},'claude':{'name':'Claude\x20Code','description':a292_0x1e9bd5(0x10d),'folders':[a292_0x1e9bd5(0x10b)],'files':[{'type':a292_0x1e9bd5(0x124),'path':'.claude/skills/lovrabet/SKILL.md'}]},'cline':{'name':a292_0x1e9bd5(0xfe),'description':a292_0x1e9bd5(0x102),'folders':[a292_0x1e9bd5(0x113)],'files':[{'type':a292_0x1e9bd5(0x124),'path':'.cline/skills/lovrabet/SKILL.md'}]},'codex':{'name':a292_0x1e9bd5(0x118),'description':'Codex\x20IDE','folders':[a292_0x1e9bd5(0x108)],'files':[{'type':a292_0x1e9bd5(0x124),'path':a292_0x1e9bd5(0x120)}]},'opencode':{'name':'OpenCode','description':a292_0x1e9bd5(0x11c),'folders':[a292_0x1e9bd5(0x10c)],'files':[{'type':a292_0x1e9bd5(0x124),'path':a292_0x1e9bd5(0xfc)}]},'qoder':{'name':a292_0x1e9bd5(0x114),'description':'Qoder\x20IDE','folders':[a292_0x1e9bd5(0x106)],'files':[{'type':a292_0x1e9bd5(0x124),'path':a292_0x1e9bd5(0x11b)},{'type':'file','path':a292_0x1e9bd5(0x112)}]},'codebuddy':{'name':a292_0x1e9bd5(0xfa),'description':a292_0x1e9bd5(0x11e),'folders':[a292_0x1e9bd5(0xf8)],'files':[{'type':a292_0x1e9bd5(0x124),'path':'.codebuddy/skills/lovrabet/SKILL.md'}]},'trae':{'name':a292_0x1e9bd5(0x119),'description':a292_0x1e9bd5(0x105),'folders':[a292_0x1e9bd5(0x122)],'files':[{'type':'file','path':a292_0x1e9bd5(0x11f)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'Other\x20(generic\x20template)','description':a292_0x1e9bd5(0x115),'folders':[a292_0x1e9bd5(0x125)],'files':[{'type':a292_0x1e9bd5(0x124),'path':a292_0x1e9bd5(0xf5)}]},'antigravity':{'name':'Antigravity','description':a292_0x1e9bd5(0xf9),'folders':['.agent'],'files':[{'type':a292_0x1e9bd5(0x124),'path':a292_0x1e9bd5(0xf5)}]}};export const CORE_IDE_LIST=[a292_0x1e9bd5(0xff),'cline',a292_0x1e9bd5(0x103),a292_0x1e9bd5(0xf3),a292_0x1e9bd5(0x126),a292_0x1e9bd5(0x11a),'qoder','trae',a292_0x1e9bd5(0x107)];export const IDE_LIST=[a292_0x1e9bd5(0xf4),a292_0x1e9bd5(0xff),a292_0x1e9bd5(0xf7),a292_0x1e9bd5(0x103),'codex',a292_0x1e9bd5(0x126),a292_0x1e9bd5(0x11a),'qoder',a292_0x1e9bd5(0x10f),a292_0x1e9bd5(0x107),a292_0x1e9bd5(0x123)];function a292_0x3c54(){const _0x1610dd=['cline','.codebuddy','Antigravity\x20IDE','CodeBuddy','1201840nICqRL','.opencode/skills/lovrabet/SKILL.md','.cursor/skills/rabetbase.md','Cline','claude','7tFnFfH','45hJWsxi','Cline\x20IDE','codebuddy','qoder','Trae\x20IDE','.qoder','windsurf','.codex','.windsurf/workflows/rabetbase.md','3655506GLBHWc','.claude','.opencode','Claude\x20Code','1NUNuHM','trae','231485bwCdjN','1170650DMSSha','.qoder/skills/lovrabet/SKILL.md','.cline','Qoder','Generic\x20template\x20fallback','Cursor','21260206GxPeEH','Codex','Trae','opencode','.qoder/rules/rabetbase.md','OpenCode\x20IDE','600146KRnMhp','CodeBuddy\x20IDE','.trae/skills/lovrabet/SKILL.md','.codex/skills/lovrabet/SKILL.md','27879xrVMdp','.trae','agent','file','.agent','cursor','.windsurf','codex','antigravity','.agent/skills/lovrabet/SKILL.md','28JCaPUr'];a292_0x3c54=function(){return _0x1610dd;};return a292_0x3c54();}function a292_0x5c24(_0x233ae5,_0x1f67b7){_0x233ae5=_0x233ae5-0xf2;const _0x3c54df=a292_0x3c54();let _0x5c244b=_0x3c54df[_0x233ae5];return _0x5c244b;}export const ALL_CORE_IDES=[a292_0x1e9bd5(0x126),a292_0x1e9bd5(0x107),a292_0x1e9bd5(0xff),a292_0x1e9bd5(0xf7),a292_0x1e9bd5(0xf3),'opencode',a292_0x1e9bd5(0x104),a292_0x1e9bd5(0x103),a292_0x1e9bd5(0x10f)];
1
+ const a306_0xcbc500=a306_0x5ef1;function a306_0x3b90(){const _0x2dba92=['1mUNeNL','.agent','trae','file','antigravity','agent','.agent/skills/lovrabet/SKILL.md','Codex\x20IDE','948756dFHVYS','opencode','Cursor','.cline','Trae','Windsurf','.opencode/skills/lovrabet/SKILL.md','769744bamIXJ','.claude','.qoder','.cline/skills/lovrabet/SKILL.md','18NrUMzT','12168GpzgmG','claude','.cursor/skills/rabetbase.md','Antigravity\x20IDE','CodeBuddy\x20IDE','cline','.codebuddy','qoder','CodeBuddy','.trae','.cursor','252GolTmd','673615lVtOZm','windsurf','.qoder/skills/lovrabet/SKILL.md','cursor','.opencode','127238QQsLQb','Windsurf\x20IDE','.windsurf','1201767RshYji','Generic\x20template\x20fallback','codex','Cursor\x20IDE','1565310kJDLAe','OpenCode\x20IDE','OpenCode','.qoder/rules/rabetbase.md','Antigravity','codebuddy','.codebuddy/skills/lovrabet/SKILL.md'];a306_0x3b90=function(){return _0x2dba92;};return a306_0x3b90();}(function(_0x1d17bc,_0x17ad1e){const _0x464934=a306_0x5ef1,_0x1843d9=_0x1d17bc();while(!![]){try{const _0x377e2e=parseInt(_0x464934(0x1ee))/0x1*(parseInt(_0x464934(0x213))/0x2)+-parseInt(_0x464934(0x202))/0x3*(-parseInt(_0x464934(0x20d))/0x4)+-parseInt(_0x464934(0x20e))/0x5+parseInt(_0x464934(0x1f6))/0x6+parseInt(_0x464934(0x216))/0x7+parseInt(_0x464934(0x1fd))/0x8*(-parseInt(_0x464934(0x201))/0x9)+-parseInt(_0x464934(0x21a))/0xa;if(_0x377e2e===_0x17ad1e)break;else _0x1843d9['push'](_0x1843d9['shift']());}catch(_0x138304){_0x1843d9['push'](_0x1843d9['shift']());}}}(a306_0x3b90,0x28590));function a306_0x5ef1(_0x41bc73,_0xfc8b63){_0x41bc73=_0x41bc73-0x1ea;const _0x3b90ee=a306_0x3b90();let _0x5ef1ea=_0x3b90ee[_0x41bc73];return _0x5ef1ea;}export const CORE_IDE_CONFIGS={'cursor':{'name':a306_0xcbc500(0x1f8),'description':a306_0xcbc500(0x219),'folders':['.cursorrules',a306_0xcbc500(0x20c)],'files':[{'type':a306_0xcbc500(0x1f1),'path':a306_0xcbc500(0x204)}]},'windsurf':{'name':a306_0xcbc500(0x1fb),'description':a306_0xcbc500(0x214),'folders':[a306_0xcbc500(0x215)],'files':[{'type':'file','path':'.windsurf/workflows/rabetbase.md'}]},'claude':{'name':'Claude\x20Code','description':'Claude\x20Code','folders':[a306_0xcbc500(0x1fe)],'files':[{'type':a306_0xcbc500(0x1f1),'path':'.claude/skills/lovrabet/SKILL.md'}]},'cline':{'name':'Cline','description':'Cline\x20IDE','folders':[a306_0xcbc500(0x1f9)],'files':[{'type':a306_0xcbc500(0x1f1),'path':a306_0xcbc500(0x200)}]},'codex':{'name':'Codex','description':a306_0xcbc500(0x1f5),'folders':['.codex'],'files':[{'type':a306_0xcbc500(0x1f1),'path':'.codex/skills/lovrabet/SKILL.md'}]},'opencode':{'name':a306_0xcbc500(0x21c),'description':a306_0xcbc500(0x21b),'folders':[a306_0xcbc500(0x212)],'files':[{'type':a306_0xcbc500(0x1f1),'path':a306_0xcbc500(0x1fc)}]},'qoder':{'name':'Qoder','description':'Qoder\x20IDE','folders':[a306_0xcbc500(0x1ff)],'files':[{'type':'file','path':a306_0xcbc500(0x1ea)},{'type':a306_0xcbc500(0x1f1),'path':a306_0xcbc500(0x210)}]},'codebuddy':{'name':a306_0xcbc500(0x20a),'description':a306_0xcbc500(0x206),'folders':[a306_0xcbc500(0x208)],'files':[{'type':'file','path':a306_0xcbc500(0x1ed)}]},'trae':{'name':a306_0xcbc500(0x1fa),'description':'Trae\x20IDE','folders':[a306_0xcbc500(0x20b)],'files':[{'type':'file','path':'.trae/skills/lovrabet/SKILL.md'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'Other\x20(generic\x20template)','description':a306_0xcbc500(0x217),'folders':['.agent'],'files':[{'type':'file','path':a306_0xcbc500(0x1f4)}]},'antigravity':{'name':a306_0xcbc500(0x1eb),'description':a306_0xcbc500(0x205),'folders':[a306_0xcbc500(0x1ef)],'files':[{'type':a306_0xcbc500(0x1f1),'path':a306_0xcbc500(0x1f4)}]}};export const CORE_IDE_LIST=['claude','cline','codebuddy',a306_0xcbc500(0x218),a306_0xcbc500(0x211),'opencode','qoder',a306_0xcbc500(0x1f0),'windsurf'];export const IDE_LIST=[a306_0xcbc500(0x1f2),a306_0xcbc500(0x203),'cline','codebuddy','codex',a306_0xcbc500(0x211),a306_0xcbc500(0x1f7),a306_0xcbc500(0x209),a306_0xcbc500(0x1f0),a306_0xcbc500(0x20f),a306_0xcbc500(0x1f3)];export const ALL_CORE_IDES=[a306_0xcbc500(0x211),a306_0xcbc500(0x20f),a306_0xcbc500(0x203),a306_0xcbc500(0x207),'codex','opencode',a306_0xcbc500(0x209),a306_0xcbc500(0x1ec),a306_0xcbc500(0x1f0)];
@@ -1 +1 @@
1
- function a293_0x568c(){const _0x2d0486=['5668EiSQVb','6KMquQc','908910GvkTEl','28795tEgcMK','9062750ECzEqq','86704gBqeLk','669896raOoOM','246bUHQcJ','1323222IkxzYo','7wAOMRY'];a293_0x568c=function(){return _0x2d0486;};return a293_0x568c();}(function(_0x1fa106,_0x621ed8){const _0x294ae1=a293_0x5a3a,_0x10e6a8=_0x1fa106();while(!![]){try{const _0x2fb6a9=parseInt(_0x294ae1(0x13f))/0x1*(-parseInt(_0x294ae1(0x143))/0x2)+parseInt(_0x294ae1(0x145))/0x3*(-parseInt(_0x294ae1(0x13e))/0x4)+parseInt(_0x294ae1(0x141))/0x5+-parseInt(_0x294ae1(0x146))/0x6+-parseInt(_0x294ae1(0x147))/0x7*(parseInt(_0x294ae1(0x144))/0x8)+-parseInt(_0x294ae1(0x140))/0x9+parseInt(_0x294ae1(0x142))/0xa;if(_0x2fb6a9===_0x621ed8)break;else _0x10e6a8['push'](_0x10e6a8['shift']());}catch(_0x12ff68){_0x10e6a8['push'](_0x10e6a8['shift']());}}}(a293_0x568c,0x1fda0));function a293_0x5a3a(_0x52c25b,_0x377b9d){_0x52c25b=_0x52c25b-0x13e;const _0x568ce0=a293_0x568c();let _0x5a3a81=_0x568ce0[_0x52c25b];return _0x5a3a81;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a307_0x39f1(_0x29e848,_0x3a91f1){_0x29e848=_0x29e848-0x1e4;const _0x557208=a307_0x5572();let _0x39f16e=_0x557208[_0x29e848];return _0x39f16e;}(function(_0x221638,_0x3be876){const _0x865029=a307_0x39f1,_0x2c7998=_0x221638();while(!![]){try{const _0x185ce2=-parseInt(_0x865029(0x1e4))/0x1*(-parseInt(_0x865029(0x1e8))/0x2)+-parseInt(_0x865029(0x1e5))/0x3+parseInt(_0x865029(0x1e6))/0x4+parseInt(_0x865029(0x1eb))/0x5+-parseInt(_0x865029(0x1ea))/0x6+-parseInt(_0x865029(0x1e9))/0x7+parseInt(_0x865029(0x1e7))/0x8;if(_0x185ce2===_0x3be876)break;else _0x2c7998['push'](_0x2c7998['shift']());}catch(_0xe5c18c){_0x2c7998['push'](_0x2c7998['shift']());}}}(a307_0x5572,0x4e8d0));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a307_0x5572(){const _0x4f79bd=['25GedrkH','1157862GkWePw','2075908dnxMzw','1744296iidozh','47156WDEoZW','3159611FmftTn','1962750qCSAeL','798660AZrYsU'];a307_0x5572=function(){return _0x4f79bd;};return a307_0x5572();}
@@ -1 +1 @@
1
- (function(_0x5cf442,_0x2a96ad){const _0x4a68bd=a294_0x28db,_0xeb96f1=_0x5cf442();while(!![]){try{const _0xbb0f5c=parseInt(_0x4a68bd(0x82))/0x1+parseInt(_0x4a68bd(0x8a))/0x2*(-parseInt(_0x4a68bd(0x84))/0x3)+-parseInt(_0x4a68bd(0x7f))/0x4*(parseInt(_0x4a68bd(0x7d))/0x5)+parseInt(_0x4a68bd(0x83))/0x6+parseInt(_0x4a68bd(0x87))/0x7*(parseInt(_0x4a68bd(0x81))/0x8)+-parseInt(_0x4a68bd(0x7e))/0x9+parseInt(_0x4a68bd(0x89))/0xa;if(_0xbb0f5c===_0x2a96ad)break;else _0xeb96f1['push'](_0xeb96f1['shift']());}catch(_0x39df0c){_0xeb96f1['push'](_0xeb96f1['shift']());}}}(a294_0x4dc8,0xabc51));import{getTemplateBaseUrl}from'../utils/config.js';function a294_0x4dc8(){const _0x167b2b=['3401520LihsCV','66ncYJEp','cli','/config.json','441hfdURS','now','18804700QlxnnX','31878vBGAaA','json','/config/index.json','application/json','5014985kzGCaX','10419201RMBbVf','4WUMFYn','stableVersion','29768tXpbfR','533100nBsoOH'];a294_0x4dc8=function(){return _0x167b2b;};return a294_0x4dc8();}export async function fetchCdnConfig(){const _0x1cca21=a294_0x28db,_0x3c2234=getTemplateBaseUrl(),_0x58ebbb=[_0x3c2234+_0x1cca21(0x86),_0x3c2234+_0x1cca21(0x7b)];for(const _0x4a5190 of _0x58ebbb){try{const _0x403a54=await fetch(_0x4a5190,{'headers':{'Accept':_0x1cca21(0x7c)}});if(!_0x403a54['ok'])continue;const _0x4d2d16=await _0x403a54[_0x1cca21(0x7a)]();if(!_0x4d2d16[_0x1cca21(0x85)]?.[_0x1cca21(0x80)]||!_0x4d2d16['sdk']?.['node']?.[_0x1cca21(0x80)])continue;return _0x4d2d16;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a294_0x28db(_0x579ac8,_0x343897){_0x579ac8=_0x579ac8-0x7a;const _0x4dc8cc=a294_0x4dc8();let _0x28db18=_0x4dc8cc[_0x579ac8];return _0x28db18;}export async function getCdnConfig(){const _0x3999c5=a294_0x28db,_0x4e014e=Date[_0x3999c5(0x88)]();if(hasCachedConfig){const _0x1d206b=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4e014e-cacheTime<_0x1d206b)return cachedConfig;}const _0x4830ea=await fetchCdnConfig();return cachedConfig=_0x4830ea,cacheTime=_0x4e014e,hasCachedConfig=!![],_0x4830ea;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x1b0e84,_0x365570){const _0x501b82=a308_0x33c2,_0x2f2f65=_0x1b0e84();while(!![]){try{const _0x22aa33=parseInt(_0x501b82(0x1e8))/0x1+parseInt(_0x501b82(0x1eb))/0x2+parseInt(_0x501b82(0x1ed))/0x3+parseInt(_0x501b82(0x1e3))/0x4+parseInt(_0x501b82(0x1e2))/0x5*(-parseInt(_0x501b82(0x1ec))/0x6)+-parseInt(_0x501b82(0x1df))/0x7+-parseInt(_0x501b82(0x1e0))/0x8*(parseInt(_0x501b82(0x1e1))/0x9);if(_0x22aa33===_0x365570)break;else _0x2f2f65['push'](_0x2f2f65['shift']());}catch(_0x4d863d){_0x2f2f65['push'](_0x2f2f65['shift']());}}}(a308_0x513b,0x31ad2));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x28aa11=a308_0x33c2,_0x4abfa9=getTemplateBaseUrl(),_0x144bd5=[_0x4abfa9+_0x28aa11(0x1ea),_0x4abfa9+_0x28aa11(0x1e7)];for(const _0x4629fb of _0x144bd5){try{const _0x5a3723=await fetch(_0x4629fb,{'headers':{'Accept':_0x28aa11(0x1e4)}});if(!_0x5a3723['ok'])continue;const _0x6a3a1e=await _0x5a3723[_0x28aa11(0x1e5)]();if(!_0x6a3a1e[_0x28aa11(0x1ef)]?.['stableVersion']||!_0x6a3a1e[_0x28aa11(0x1e9)]?.[_0x28aa11(0x1ee)]?.['stableVersion'])continue;return _0x6a3a1e;}catch{}}return null;}function a308_0x513b(){const _0x3ee5ff=['cli','814506CoqWav','1305544gXZCoG','18uTDJwL','10MNIMEr','1506472bGoKzP','application/json','json','now','/config/index.json','16648elEhuu','sdk','/config.json','754424ZmFgkH','981816ZnuZCl','609036lTRKLc','node'];a308_0x513b=function(){return _0x3ee5ff;};return a308_0x513b();}function a308_0x33c2(_0x34f84a,_0x58f3c5){_0x34f84a=_0x34f84a-0x1df;const _0x513b76=a308_0x513b();let _0x33c23c=_0x513b76[_0x34f84a];return _0x33c23c;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x13385f=a308_0x33c2,_0x19e0a5=Date[_0x13385f(0x1e6)]();if(hasCachedConfig){const _0x2b8f4c=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x19e0a5-cacheTime<_0x2b8f4c)return cachedConfig;}const _0x1baf5f=await fetchCdnConfig();return cachedConfig=_0x1baf5f,cacheTime=_0x19e0a5,hasCachedConfig=!![],_0x1baf5f;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a295_0x5dc0c9=a295_0x5c4d;(function(_0x59288d,_0x3071a3){const _0x165c74=a295_0x5c4d,_0xe0ec94=_0x59288d();while(!![]){try{const _0x45023d=parseInt(_0x165c74(0xa3))/0x1+parseInt(_0x165c74(0x8f))/0x2+parseInt(_0x165c74(0x8d))/0x3+parseInt(_0x165c74(0xa7))/0x4+parseInt(_0x165c74(0x9d))/0x5+-parseInt(_0x165c74(0x9e))/0x6+-parseInt(_0x165c74(0x8e))/0x7;if(_0x45023d===_0x3071a3)break;else _0xe0ec94['push'](_0xe0ec94['shift']());}catch(_0x41a884){_0xe0ec94['push'](_0xe0ec94['shift']());}}}(a295_0x3fc3,0xdc135));import a295_0x4859b7 from'node:fs';import a295_0x36b2d2 from'node:path';import a295_0x4212a5 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a295_0x5dc0c9(0x99);function isNonNumericVersion(_0x5b063a){const _0x53cc37=a295_0x5dc0c9,_0x4ec99b=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x4ec99b[_0x53cc37(0x91)](_0x4522d0=>_0x4522d0[_0x53cc37(0x8c)](_0x5b063a));}function getInstalledVersion(_0xfeb386,_0x2d1266){const _0x517a5b=a295_0x5dc0c9;try{const _0x3ac341=a295_0x36b2d2[_0x517a5b(0x92)](_0xfeb386,'node_modules',_0x2d1266,_0x517a5b(0xa0));if(a295_0x4859b7[_0x517a5b(0x9c)](_0x3ac341)){const _0x598b8d=JSON[_0x517a5b(0x88)](a295_0x4859b7[_0x517a5b(0xa6)](_0x3ac341,_0x517a5b(0x8a)));return _0x598b8d[_0x517a5b(0x9f)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x5281ed=a295_0x5dc0c9;try{const _0xb19305=await getCdnConfig();return _0xb19305?.[_0x5281ed(0x9b)]?.['node']?.[_0x5281ed(0x85)]||null;}catch{return null;}}function a295_0x5c4d(_0x5c6085,_0x27deac){_0x5c6085=_0x5c6085-0x85;const _0x3fc3f8=a295_0x3fc3();let _0x5c4d58=_0x3fc3f8[_0x5c6085];return _0x5c4d58;}async function getSdkPackageName(){const _0xa09441=a295_0x5dc0c9;try{const _0x3bb1ef=await getCdnConfig();return _0x3bb1ef?.[_0xa09441(0x9b)]?.[_0xa09441(0x98)]?.[_0xa09441(0x86)]||_0xa09441(0x96);}catch{return _0xa09441(0x96);}}export async function checkSdkVersion(_0x3a3d5a){const _0x442867=a295_0x5dc0c9,_0x4e576c=a295_0x36b2d2[_0x442867(0x92)](_0x3a3d5a,_0x442867(0xa0)),[_0x28b956,_0xfd7097]=await Promise[_0x442867(0x87)]([getSdkStableVersion(),getSdkPackageName()]),_0x255255=_0x28b956||FALLBACK_MIN_SDK_VERSION;if(!a295_0x4859b7[_0x442867(0x9c)](_0x4e576c))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x255255,'packageName':_0xfd7097,'stableVersion':_0x28b956};try{const _0x379434=JSON[_0x442867(0x88)](a295_0x4859b7[_0x442867(0xa6)](_0x4e576c,_0x442867(0xa5))),_0x110cb6=_0x379434[_0x442867(0x95)]||{},_0x346082=_0x379434[_0x442867(0x9a)]||{},_0x45e128=_0x110cb6[_0xfd7097]||_0x346082[_0xfd7097];if(!_0x45e128)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x255255,'packageName':_0xfd7097,'stableVersion':_0x28b956};let _0x21a29b=getInstalledVersion(_0x3a3d5a,_0xfd7097);!_0x21a29b&&(_0x21a29b=_0x45e128);if(isNonNumericVersion(_0x45e128))return{'installed':!![],'version':_0x21a29b,'needsUpgrade':![],'minVersion':_0x255255,'packageName':_0xfd7097,'stableVersion':_0x28b956};const _0x4f5c8a=a295_0x4212a5[_0x442867(0xa1)](_0x21a29b),_0x41948b=a295_0x4212a5['coerce'](_0x255255),_0xa216b3=_0x4f5c8a&&_0x41948b?a295_0x4212a5['lt'](_0x4f5c8a,_0x41948b):![];return{'installed':!![],'version':_0x21a29b,'needsUpgrade':_0xa216b3,'minVersion':_0x255255,'packageName':_0xfd7097,'stableVersion':_0x28b956};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x255255,'packageName':_0xfd7097,'stableVersion':_0x28b956};}}function a295_0x3fc3(){const _0x15816e=['@lovrabet/sdk','\x1b[1m','node','1.2.0','devDependencies','sdk','existsSync','8798315IqOEQa','4406580pQWoBn','version','package.json','coerce','log','208434gNuIeY','minVersion','utf8','readFileSync','1038192VExcjr','latest','stableVersion','packageName','all','parse','\x1b[33m','utf-8','\x1b[0m','test','3495186YFErAW','22063335CJilnu','2790114lKXUqg','needsUpgrade','some','join','npm\x20install\x20','\x20\x20\x20Current\x20version:\x20','dependencies'];a295_0x3fc3=function(){return _0x15816e;};return a295_0x3fc3();}export function checkSdkVersionSync(_0x464893){const _0x307d10=a295_0x5dc0c9,_0xd49544=a295_0x36b2d2[_0x307d10(0x92)](_0x464893,_0x307d10(0xa0)),_0x398128='@lovrabet/sdk';if(!a295_0x4859b7[_0x307d10(0x9c)](_0xd49544))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x398128,'stableVersion':null};try{const _0x177826=JSON['parse'](a295_0x4859b7[_0x307d10(0xa6)](_0xd49544,'utf8')),_0x52fd59=_0x177826['dependencies']||{},_0x404fc7=_0x177826[_0x307d10(0x9a)]||{},_0x5c9c98=_0x52fd59[_0x398128]||_0x404fc7[_0x398128];if(!_0x5c9c98)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x398128,'stableVersion':null};let _0x21d021=getInstalledVersion(_0x464893,_0x398128);!_0x21d021&&(_0x21d021=_0x5c9c98);if(isNonNumericVersion(_0x5c9c98))return{'installed':!![],'version':_0x21d021,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x398128,'stableVersion':null};const _0x5d059f=a295_0x4212a5[_0x307d10(0xa1)](_0x21d021),_0x490e94=_0x5d059f?a295_0x4212a5['lt'](_0x5d059f,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x21d021,'needsUpgrade':_0x490e94,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x398128,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x398128,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x5073f3){const _0x1f43b0=a295_0x5dc0c9;if(!_0x5073f3[_0x1f43b0(0x90)])return;const _0x2a970e=_0x1f43b0(0x89),_0x18b527=_0x1f43b0(0x8b),_0xe80bb2=_0x1f43b0(0x97),_0x4e0c69=_0x5073f3['packageName']||_0x1f43b0(0x96),_0x4931d6=_0x5073f3[_0x1f43b0(0x85)]||_0x5073f3[_0x1f43b0(0xa4)],_0x510737=_0x1f43b0(0x93)+_0x4e0c69+'@'+(_0x4931d6||_0x1f43b0(0xa8));console[_0x1f43b0(0xa2)](),console[_0x1f43b0(0xa2)](''+_0x2a970e+_0xe80bb2+'↪\x20SDK\x20update\x20available'+_0x18b527),console['log'](_0x2a970e+_0x1f43b0(0x94)+_0x4e0c69+'@'+_0x5073f3[_0x1f43b0(0x9f)]+_0x18b527),console['log'](_0x2a970e+'\x20\x20\x20Stable\x20version:\x20'+_0x4931d6+_0x18b527),console[_0x1f43b0(0xa2)](_0x2a970e+'\x20\x20\x20Upgrade\x20command:\x20'+_0x510737+_0x18b527),console[_0x1f43b0(0xa2)]();}
1
+ (function(_0xa85b22,_0x1c5520){const _0x596a59=a309_0x1bbd,_0x2ee385=_0xa85b22();while(!![]){try{const _0xe360f9=-parseInt(_0x596a59(0xf2))/0x1*(-parseInt(_0x596a59(0xfa))/0x2)+parseInt(_0x596a59(0xf0))/0x3*(parseInt(_0x596a59(0xd8))/0x4)+parseInt(_0x596a59(0xf9))/0x5+-parseInt(_0x596a59(0xe6))/0x6*(-parseInt(_0x596a59(0xfd))/0x7)+parseInt(_0x596a59(0xfc))/0x8*(parseInt(_0x596a59(0xe7))/0x9)+parseInt(_0x596a59(0xe4))/0xa*(parseInt(_0x596a59(0xe5))/0xb)+-parseInt(_0x596a59(0xed))/0xc;if(_0xe360f9===_0x1c5520)break;else _0x2ee385['push'](_0x2ee385['shift']());}catch(_0x1912f7){_0x2ee385['push'](_0x2ee385['shift']());}}}(a309_0x3542,0xa6a56));import a309_0x16eb8f from'node:fs';import a309_0x4e440d from'node:path';import a309_0x2b5c9b from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x4b990e){const _0x2d8f49=a309_0x1bbd,_0x4b2992=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x4b2992[_0x2d8f49(0xf5)](_0x5d7712=>_0x5d7712[_0x2d8f49(0xf8)](_0x4b990e));}function a309_0x1bbd(_0x42d81d,_0x27bc26){_0x42d81d=_0x42d81d-0xd8;const _0x3542ec=a309_0x3542();let _0x1bbd0a=_0x3542ec[_0x42d81d];return _0x1bbd0a;}function getInstalledVersion(_0xb2db01,_0x27c16e){const _0x1171ee=a309_0x1bbd;try{const _0x5c7a6e=a309_0x4e440d[_0x1171ee(0xf3)](_0xb2db01,_0x1171ee(0xff),_0x27c16e,_0x1171ee(0xe8));if(a309_0x16eb8f['existsSync'](_0x5c7a6e)){const _0x4afd36=JSON[_0x1171ee(0xdd)](a309_0x16eb8f[_0x1171ee(0xea)](_0x5c7a6e,_0x1171ee(0xe1)));return _0x4afd36[_0x1171ee(0x100)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x6bf98e=a309_0x1bbd;try{const _0x217585=await getCdnConfig();return _0x217585?.[_0x6bf98e(0x101)]?.[_0x6bf98e(0xf4)]?.[_0x6bf98e(0xde)]||null;}catch{return null;}}function a309_0x3542(){const _0x1d277d=['44osyHeS','\x1b[1m','existsSync','\x20\x20\x20Current\x20version:\x20','latest','parse','stableVersion','\x20\x20\x20Upgrade\x20command:\x20','npm\x20install\x20','utf-8','coerce','↪\x20SDK\x20update\x20available','6230znGKLS','13013hmdjyS','18YZjGPM','13086HdweVF','package.json','@lovrabet/sdk','readFileSync','minVersion','devDependencies','45431400dLffSx','log','needsUpgrade','199191veLkNR','\x20\x20\x20Stable\x20version:\x20','1dRPwZu','join','node','some','packageName','dependencies','test','358315vDeqma','2642606kWobpb','\x1b[33m','1576FCaiAn','3084088ayVhsw','utf8','node_modules','version','sdk'];a309_0x3542=function(){return _0x1d277d;};return a309_0x3542();}async function getSdkPackageName(){const _0x2dd55b=a309_0x1bbd;try{const _0x54fd62=await getCdnConfig();return _0x54fd62?.[_0x2dd55b(0x101)]?.[_0x2dd55b(0xf4)]?.[_0x2dd55b(0xf6)]||_0x2dd55b(0xe9);}catch{return _0x2dd55b(0xe9);}}export async function checkSdkVersion(_0x21ffbe){const _0x2b373e=a309_0x1bbd,_0x2e17dd=a309_0x4e440d['join'](_0x21ffbe,'package.json'),[_0x31017b,_0x1974e2]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x198301=_0x31017b||FALLBACK_MIN_SDK_VERSION;if(!a309_0x16eb8f[_0x2b373e(0xda)](_0x2e17dd))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x198301,'packageName':_0x1974e2,'stableVersion':_0x31017b};try{const _0x404a50=JSON[_0x2b373e(0xdd)](a309_0x16eb8f[_0x2b373e(0xea)](_0x2e17dd,_0x2b373e(0xfe))),_0x2f9b27=_0x404a50[_0x2b373e(0xf7)]||{},_0x34a9d2=_0x404a50[_0x2b373e(0xec)]||{},_0x8d1ea3=_0x2f9b27[_0x1974e2]||_0x34a9d2[_0x1974e2];if(!_0x8d1ea3)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x198301,'packageName':_0x1974e2,'stableVersion':_0x31017b};let _0x111f42=getInstalledVersion(_0x21ffbe,_0x1974e2);!_0x111f42&&(_0x111f42=_0x8d1ea3);if(isNonNumericVersion(_0x8d1ea3))return{'installed':!![],'version':_0x111f42,'needsUpgrade':![],'minVersion':_0x198301,'packageName':_0x1974e2,'stableVersion':_0x31017b};const _0x2133ec=a309_0x2b5c9b[_0x2b373e(0xe2)](_0x111f42),_0x1b4bcd=a309_0x2b5c9b[_0x2b373e(0xe2)](_0x198301),_0x54c4ac=_0x2133ec&&_0x1b4bcd?a309_0x2b5c9b['lt'](_0x2133ec,_0x1b4bcd):![];return{'installed':!![],'version':_0x111f42,'needsUpgrade':_0x54c4ac,'minVersion':_0x198301,'packageName':_0x1974e2,'stableVersion':_0x31017b};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x198301,'packageName':_0x1974e2,'stableVersion':_0x31017b};}}export function checkSdkVersionSync(_0x4bc1b5){const _0x83d2a2=a309_0x1bbd,_0x2d851f=a309_0x4e440d['join'](_0x4bc1b5,_0x83d2a2(0xe8)),_0x1af8cf='@lovrabet/sdk';if(!a309_0x16eb8f['existsSync'](_0x2d851f))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1af8cf,'stableVersion':null};try{const _0x5431c7=JSON[_0x83d2a2(0xdd)](a309_0x16eb8f[_0x83d2a2(0xea)](_0x2d851f,_0x83d2a2(0xfe))),_0x727596=_0x5431c7[_0x83d2a2(0xf7)]||{},_0x4e0702=_0x5431c7['devDependencies']||{},_0x78c911=_0x727596[_0x1af8cf]||_0x4e0702[_0x1af8cf];if(!_0x78c911)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1af8cf,'stableVersion':null};let _0x586f19=getInstalledVersion(_0x4bc1b5,_0x1af8cf);!_0x586f19&&(_0x586f19=_0x78c911);if(isNonNumericVersion(_0x78c911))return{'installed':!![],'version':_0x586f19,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1af8cf,'stableVersion':null};const _0x575529=a309_0x2b5c9b[_0x83d2a2(0xe2)](_0x586f19),_0x1b4de4=_0x575529?a309_0x2b5c9b['lt'](_0x575529,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x586f19,'needsUpgrade':_0x1b4de4,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1af8cf,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1af8cf,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x41024f){const _0x58bd50=a309_0x1bbd;if(!_0x41024f[_0x58bd50(0xef)])return;const _0x4f915d=_0x58bd50(0xfb),_0x471c15='\x1b[0m',_0x5ac742=_0x58bd50(0xd9),_0x55aac7=_0x41024f[_0x58bd50(0xf6)]||_0x58bd50(0xe9),_0x562063=_0x41024f[_0x58bd50(0xde)]||_0x41024f[_0x58bd50(0xeb)],_0x4532ca=_0x58bd50(0xe0)+_0x55aac7+'@'+(_0x562063||_0x58bd50(0xdc));console[_0x58bd50(0xee)](),console['log'](''+_0x4f915d+_0x5ac742+_0x58bd50(0xe3)+_0x471c15),console[_0x58bd50(0xee)](_0x4f915d+_0x58bd50(0xdb)+_0x55aac7+'@'+_0x41024f[_0x58bd50(0x100)]+_0x471c15),console[_0x58bd50(0xee)](_0x4f915d+_0x58bd50(0xf1)+_0x562063+_0x471c15),console[_0x58bd50(0xee)](_0x4f915d+_0x58bd50(0xdf)+_0x4532ca+_0x471c15),console[_0x58bd50(0xee)]();}
@@ -1 +1 @@
1
- function a296_0x5271(_0x1b7510,_0x1acc41){_0x1b7510=_0x1b7510-0x7d;const _0x15523f=a296_0x1552();let _0x5271a2=_0x15523f[_0x1b7510];return _0x5271a2;}(function(_0x1a8d53,_0x105e27){const _0x10ac3d=a296_0x5271,_0x3443a3=_0x1a8d53();while(!![]){try{const _0x2e8680=parseInt(_0x10ac3d(0x86))/0x1*(parseInt(_0x10ac3d(0x88))/0x2)+-parseInt(_0x10ac3d(0x9f))/0x3*(parseInt(_0x10ac3d(0xa1))/0x4)+parseInt(_0x10ac3d(0x8c))/0x5*(-parseInt(_0x10ac3d(0x90))/0x6)+parseInt(_0x10ac3d(0x7d))/0x7+-parseInt(_0x10ac3d(0x8d))/0x8+parseInt(_0x10ac3d(0x91))/0x9*(-parseInt(_0x10ac3d(0x83))/0xa)+parseInt(_0x10ac3d(0x82))/0xb;if(_0x2e8680===_0x105e27)break;else _0x3443a3['push'](_0x3443a3['shift']());}catch(_0xa4b52){_0x3443a3['push'](_0x3443a3['shift']());}}}(a296_0x1552,0x2ee82));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a296_0x166f7e from'semver';function a296_0x1552(){const _0x250824=['Minimum\x20supported:\x20','\x20\x20\x20Upgrade\x20command:\x20','2292QDNTiP','\x1b[0m','1964kMcaeU','Upgrade\x20command:\x20','\x20\x20\x20','2365517HHrwGD','coerce','minimumVersion','upgradeMessage','\x20\x20\x20Current\x20CLI\x20version:\x20','4433924VYRFII','928660fxuERa','\x20\x20\x20Recommended\x20stable:\x20','log','3qKtAzI','version','201514wnTZLM','currentVersion','Current\x20version:\x20','npm\x20install\x20-g\x20','24775zrWwNZ','1440088NNiTvA','minimumVersionMessage','stableVersion','246hfgZLj','9OENecL','../..','1.0.0','↪\x20New\x20version\x20available','\x20\x20\x20Stable\x20version:\x20','belowMinimum','↪\x20Critical\x20CLI\x20upgrade\x20required','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','needsUpgrade','validation','join','\x1b[31m'];a296_0x1552=function(){return _0x250824;};return a296_0x1552();}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x2e1e82){const _0x3e328f=a296_0x5271,_0x12d70f=_0x2e1e82[_0x3e328f(0x8f)]||'latest';return _0x3e328f(0x8b)+NPM_PACKAGE_NAME+'@'+_0x12d70f;}function getCurrentCliVersion(){const _0x2e7b65=a296_0x5271;try{const _0x59225e=fileURLToPath(import.meta.url),_0x3e7ba6=resolve(dirname(_0x59225e),_0x2e7b65(0x92)),_0x30970f=resolve(_0x3e7ba6,'package.json'),_0x5860e6=JSON['parse'](readFileSync(_0x30970f,'utf-8'));return _0x5860e6[_0x2e7b65(0x87)]||_0x2e7b65(0x93);}catch{return _0x2e7b65(0x93);}}export async function checkCliVersion(){const _0x1d12ac=a296_0x5271,_0x7757b2=getCurrentCliVersion(),_0xebc90d=await getCliVersionPolicy(),_0x313338=_0xebc90d?.[_0x1d12ac(0x8f)]||null,_0x18cdc1=_0xebc90d?.[_0x1d12ac(0x7f)]||null;let _0x368f86=![],_0x3998aa=![];const _0x3deb50=a296_0x166f7e[_0x1d12ac(0x7e)](_0x7757b2);if(_0x3deb50&&_0x313338)try{const _0x48383a=a296_0x166f7e['coerce'](_0x313338);if(_0x48383a)_0x368f86=a296_0x166f7e['lt'](_0x3deb50,_0x48383a);}catch{}if(_0x3deb50&&_0x18cdc1)try{const _0x1c7e7a=a296_0x166f7e[_0x1d12ac(0x7e)](_0x18cdc1);if(_0x1c7e7a)_0x3998aa=a296_0x166f7e['lt'](_0x3deb50,_0x1c7e7a);}catch{}return _0x3998aa&&(_0x368f86=!![]),{'currentVersion':_0x7757b2,'stableVersion':_0x313338,'minimumVersion':_0x18cdc1,'needsUpgrade':_0x368f86,'belowMinimum':_0x3998aa,'isPreRelease':![],'upgradeMessage':_0xebc90d?.[_0x1d12ac(0x80)],'minimumVersionMessage':_0xebc90d?.[_0x1d12ac(0x8e)]};}export function printCliUpgradeWarning(_0x4f68d0){const _0x1ce285=a296_0x5271;if(!_0x4f68d0[_0x1ce285(0x99)]&&!_0x4f68d0[_0x1ce285(0x96)])return;const _0x18f228=_0x1ce285(0x9c),_0x414bd8='\x1b[33m',_0x323f32=_0x1ce285(0xa0),_0x2bd5ce='\x1b[1m',_0x3e33e8=getCliUpgradeCommand(_0x4f68d0);console['log'](),_0x4f68d0[_0x1ce285(0x96)]?(console[_0x1ce285(0x85)](''+_0x18f228+_0x2bd5ce+_0x1ce285(0x97)+_0x323f32),console[_0x1ce285(0x85)](_0x18f228+_0x1ce285(0x81)+_0x4f68d0[_0x1ce285(0x89)]+_0x323f32),_0x4f68d0[_0x1ce285(0x7f)]&&console[_0x1ce285(0x85)](_0x18f228+'\x20\x20\x20Minimum\x20supported:\x20'+_0x4f68d0[_0x1ce285(0x7f)]+_0x323f32),_0x4f68d0[_0x1ce285(0x8f)]&&_0x4f68d0[_0x1ce285(0x8f)]!==_0x4f68d0[_0x1ce285(0x7f)]&&console['log'](_0x18f228+_0x1ce285(0x84)+_0x4f68d0[_0x1ce285(0x8f)]+_0x323f32),_0x4f68d0[_0x1ce285(0x8e)]&&console[_0x1ce285(0x85)](_0x18f228+'\x20\x20\x20'+_0x4f68d0[_0x1ce285(0x8e)]+_0x323f32),console[_0x1ce285(0x85)](_0x18f228+_0x1ce285(0x9e)+_0x3e33e8+_0x323f32)):(console[_0x1ce285(0x85)](''+_0x414bd8+_0x2bd5ce+_0x1ce285(0x94)+_0x323f32),console[_0x1ce285(0x85)](_0x414bd8+_0x1ce285(0x81)+_0x4f68d0[_0x1ce285(0x89)]+_0x323f32),console[_0x1ce285(0x85)](_0x414bd8+_0x1ce285(0x95)+_0x4f68d0[_0x1ce285(0x8f)]+_0x323f32),_0x4f68d0[_0x1ce285(0x80)]&&console[_0x1ce285(0x85)](_0x414bd8+_0x1ce285(0xa3)+_0x4f68d0[_0x1ce285(0x80)]+_0x323f32),console['log'](_0x414bd8+'\x20\x20\x20Upgrade\x20command:\x20'+_0x3e33e8+_0x323f32)),console[_0x1ce285(0x85)]();}export function assertCliVersionSupported(_0x1c2c72){const _0x461eca=a296_0x5271;if(!_0x1c2c72[_0x461eca(0x96)])return;const _0x11e42f=[_0x1c2c72[_0x461eca(0x8e)],_0x461eca(0x8a)+_0x1c2c72[_0x461eca(0x89)],_0x1c2c72['minimumVersion']?_0x461eca(0x9d)+_0x1c2c72[_0x461eca(0x7f)]:null,_0x461eca(0xa2)+getCliUpgradeCommand(_0x1c2c72)]['filter'](Boolean)[_0x461eca(0x9b)]('\x0a');throw CliErrors[_0x461eca(0x9a)](_0x461eca(0x98),_0x11e42f);}
1
+ (function(_0x51bbfa,_0x2e6e89){const _0xe8958=a310_0x4c8f,_0x550036=_0x51bbfa();while(!![]){try{const _0x1ff2e6=-parseInt(_0xe8958(0x76))/0x1*(-parseInt(_0xe8958(0x7f))/0x2)+-parseInt(_0xe8958(0x84))/0x3*(parseInt(_0xe8958(0x6e))/0x4)+-parseInt(_0xe8958(0x93))/0x5+parseInt(_0xe8958(0x8d))/0x6+parseInt(_0xe8958(0x8f))/0x7*(-parseInt(_0xe8958(0x7e))/0x8)+-parseInt(_0xe8958(0x89))/0x9*(parseInt(_0xe8958(0x82))/0xa)+-parseInt(_0xe8958(0x6c))/0xb*(-parseInt(_0xe8958(0x87))/0xc);if(_0x1ff2e6===_0x2e6e89)break;else _0x550036['push'](_0x550036['shift']());}catch(_0x221aba){_0x550036['push'](_0x550036['shift']());}}}(a310_0xd96e,0x67d28));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a310_0x22adaf from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a310_0xd96e(){const _0x1004eb=['\x20\x20\x20Upgrade\x20command:\x20','11074BoqTOe','\x1b[31m','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','\x1b[1m','3989615uLObPf','\x20\x20\x20Recommended\x20stable:\x20','15740791fBqeTs','\x1b[0m','4NWkCou','upgradeMessage','\x20\x20\x20','version','utf-8','\x1b[33m','minimumVersionMessage','Minimum\x20supported:\x20','23487ENNymK','validation','parse','\x20\x20\x20Stable\x20version:\x20','belowMinimum','\x20\x20\x20Current\x20CLI\x20version:\x20','1.0.0','../..','32MdHYwj','52ErcnKS','log','↪\x20New\x20version\x20available','31550NuJYzn','stableVersion','2068341NRnQrp','Current\x20version:\x20','coerce','12kKUVBd','needsUpgrade','1512oyzaXi','currentVersion','minimumVersion','↪\x20Critical\x20CLI\x20upgrade\x20required','2444106aQZXhG'];a310_0xd96e=function(){return _0x1004eb;};return a310_0xd96e();}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x1cdddd){const _0x56074b=a310_0x4c8f,_0x2102db=_0x1cdddd[_0x56074b(0x83)]||'latest';return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x2102db;}function a310_0x4c8f(_0x907bf1,_0x5e9dd7){_0x907bf1=_0x907bf1-0x6c;const _0xd96e08=a310_0xd96e();let _0x4c8f24=_0xd96e08[_0x907bf1];return _0x4c8f24;}function getCurrentCliVersion(){const _0x35b63e=a310_0x4c8f;try{const _0x1c42ab=fileURLToPath(import.meta.url),_0x166ac3=resolve(dirname(_0x1c42ab),_0x35b63e(0x7d)),_0x10a25f=resolve(_0x166ac3,'package.json'),_0x2cba42=JSON[_0x35b63e(0x78)](readFileSync(_0x10a25f,_0x35b63e(0x72)));return _0x2cba42[_0x35b63e(0x71)]||_0x35b63e(0x7c);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x53a191=a310_0x4c8f,_0x5dc23f=getCurrentCliVersion(),_0x538228=await getCliVersionPolicy(),_0x46fdaa=_0x538228?.[_0x53a191(0x83)]||null,_0xdba9b7=_0x538228?.['minimumVersion']||null;let _0x4172e6=![],_0x8c9a81=![];const _0x9572bb=a310_0x22adaf[_0x53a191(0x86)](_0x5dc23f);if(_0x9572bb&&_0x46fdaa)try{const _0x2ab7ae=a310_0x22adaf['coerce'](_0x46fdaa);if(_0x2ab7ae)_0x4172e6=a310_0x22adaf['lt'](_0x9572bb,_0x2ab7ae);}catch{}if(_0x9572bb&&_0xdba9b7)try{const _0x1cfd62=a310_0x22adaf['coerce'](_0xdba9b7);if(_0x1cfd62)_0x8c9a81=a310_0x22adaf['lt'](_0x9572bb,_0x1cfd62);}catch{}return _0x8c9a81&&(_0x4172e6=!![]),{'currentVersion':_0x5dc23f,'stableVersion':_0x46fdaa,'minimumVersion':_0xdba9b7,'needsUpgrade':_0x4172e6,'belowMinimum':_0x8c9a81,'isPreRelease':![],'upgradeMessage':_0x538228?.['upgradeMessage'],'minimumVersionMessage':_0x538228?.[_0x53a191(0x74)]};}export function printCliUpgradeWarning(_0xa1a9e0){const _0x22f997=a310_0x4c8f;if(!_0xa1a9e0[_0x22f997(0x88)]&&!_0xa1a9e0['belowMinimum'])return;const _0x516b0f=_0x22f997(0x90),_0x173279=_0x22f997(0x73),_0x4b2d30=_0x22f997(0x6d),_0x4b170e=_0x22f997(0x92),_0x245d0a=getCliUpgradeCommand(_0xa1a9e0);console[_0x22f997(0x80)](),_0xa1a9e0[_0x22f997(0x7a)]?(console[_0x22f997(0x80)](''+_0x516b0f+_0x4b170e+_0x22f997(0x8c)+_0x4b2d30),console['log'](_0x516b0f+_0x22f997(0x7b)+_0xa1a9e0[_0x22f997(0x8a)]+_0x4b2d30),_0xa1a9e0[_0x22f997(0x8b)]&&console[_0x22f997(0x80)](_0x516b0f+'\x20\x20\x20Minimum\x20supported:\x20'+_0xa1a9e0[_0x22f997(0x8b)]+_0x4b2d30),_0xa1a9e0[_0x22f997(0x83)]&&_0xa1a9e0['stableVersion']!==_0xa1a9e0[_0x22f997(0x8b)]&&console['log'](_0x516b0f+_0x22f997(0x94)+_0xa1a9e0[_0x22f997(0x83)]+_0x4b2d30),_0xa1a9e0[_0x22f997(0x74)]&&console[_0x22f997(0x80)](_0x516b0f+_0x22f997(0x70)+_0xa1a9e0[_0x22f997(0x74)]+_0x4b2d30),console['log'](_0x516b0f+_0x22f997(0x8e)+_0x245d0a+_0x4b2d30)):(console[_0x22f997(0x80)](''+_0x173279+_0x4b170e+_0x22f997(0x81)+_0x4b2d30),console['log'](_0x173279+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0xa1a9e0[_0x22f997(0x8a)]+_0x4b2d30),console[_0x22f997(0x80)](_0x173279+_0x22f997(0x79)+_0xa1a9e0[_0x22f997(0x83)]+_0x4b2d30),_0xa1a9e0[_0x22f997(0x6f)]&&console['log'](_0x173279+_0x22f997(0x70)+_0xa1a9e0[_0x22f997(0x6f)]+_0x4b2d30),console[_0x22f997(0x80)](_0x173279+_0x22f997(0x8e)+_0x245d0a+_0x4b2d30)),console[_0x22f997(0x80)]();}export function assertCliVersionSupported(_0x4c5fc9){const _0x2b46c5=a310_0x4c8f;if(!_0x4c5fc9['belowMinimum'])return;const _0x2fd823=[_0x4c5fc9[_0x2b46c5(0x74)],_0x2b46c5(0x85)+_0x4c5fc9[_0x2b46c5(0x8a)],_0x4c5fc9['minimumVersion']?_0x2b46c5(0x75)+_0x4c5fc9[_0x2b46c5(0x8b)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x4c5fc9)]['filter'](Boolean)['join']('\x0a');throw CliErrors[_0x2b46c5(0x77)](_0x2b46c5(0x91),_0x2fd823);}
@@ -1 +1 @@
1
- function a297_0x3df3(){const _0x2bc80c=['349252PkmWrx','194283OsUruG','latestVersion','length','abort','3036dHZDPm','object','cli','9094878RlYlBk','10uMvzyw','signal','json','stableVersion','minimumVersionMessage','12rbUXrO','6082320pogXfy','upgradeMessage','7PbwHGs','trim','240490PAHCKS','2397324ExjOXn','minimumVersion','50739xKvCQl','297LrnMcN','6MylZIC'];a297_0x3df3=function(){return _0x2bc80c;};return a297_0x3df3();}(function(_0x3e7b98,_0x2a2704){const _0x48ec72=a297_0x5de4,_0x5247ff=_0x3e7b98();while(!![]){try{const _0x24bc30=parseInt(_0x48ec72(0xcf))/0x1*(parseInt(_0x48ec72(0xd0))/0x2)+parseInt(_0x48ec72(0xd1))/0x3*(parseInt(_0x48ec72(0xde))/0x4)+-parseInt(_0x48ec72(0xd9))/0x5*(parseInt(_0x48ec72(0xe4))/0x6)+parseInt(_0x48ec72(0xe1))/0x7*(parseInt(_0x48ec72(0xdf))/0x8)+-parseInt(_0x48ec72(0xd8))/0x9+-parseInt(_0x48ec72(0xe3))/0xa*(parseInt(_0x48ec72(0xce))/0xb)+parseInt(_0x48ec72(0xd5))/0xc*(parseInt(_0x48ec72(0xcd))/0xd);if(_0x24bc30===_0x2a2704)break;else _0x5247ff['push'](_0x5247ff['shift']());}catch(_0xf2bc3c){_0x5247ff['push'](_0x5247ff['shift']());}}}(a297_0x3df3,0x8197f));function a297_0x5de4(_0x20bd8b,_0x3eff8e){_0x20bd8b=_0x20bd8b-0xcc;const _0x3df390=a297_0x3df3();let _0x5de4ce=_0x3df390[_0x20bd8b];return _0x5de4ce;}import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x18c6ee){const _0x54ec59=a297_0x5de4;return typeof _0x18c6ee==='string'&&_0x18c6ee[_0x54ec59(0xe2)]()[_0x54ec59(0xd3)]>0x0?_0x18c6ee['trim']():null;}function normalizeCliVersionPolicy(_0x42dc74){const _0x2ed042=a297_0x5de4;if(!_0x42dc74||typeof _0x42dc74!==_0x2ed042(0xd6))return null;const _0x44d845=_0x42dc74,_0x33f74d=_0x44d845[_0x2ed042(0xd7)]&&typeof _0x44d845['cli']===_0x2ed042(0xd6)?_0x44d845[_0x2ed042(0xd7)]:_0x44d845,_0x52b6b4=pickString(_0x33f74d[_0x2ed042(0xdc)])||pickString(_0x33f74d[_0x2ed042(0xd2)])||pickString(_0x33f74d['recommendedVersion']),_0x26b577=pickString(_0x33f74d[_0x2ed042(0xcc)])||pickString(_0x33f74d['minVersion']);if(!_0x52b6b4&&!_0x26b577)return null;return{'stableVersion':_0x52b6b4,'minimumVersion':_0x26b577,'upgradeMessage':pickString(_0x33f74d[_0x2ed042(0xe0)])||undefined,'minimumVersionMessage':pickString(_0x33f74d[_0x2ed042(0xdd)])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x399d26=a297_0x5de4,_0x495761=new AbortController(),_0x1c9aa1=setTimeout(()=>_0x495761[_0x399d26(0xd4)](),FETCH_TIMEOUT_MS);try{const _0x4d4bdc=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x495761[_0x399d26(0xda)]});if(!_0x4d4bdc['ok'])return null;const _0x23128c=await _0x4d4bdc[_0x399d26(0xdb)]();return _0x23128c&&typeof _0x23128c===_0x399d26(0xd6)?_0x23128c:null;}catch{return null;}finally{clearTimeout(_0x1c9aa1);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x45d504=Date['now']();if(hasCachedConfig){const _0x4f6a21=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x45d504-cacheTime<_0x4f6a21)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x45d504,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x4bed70,_0x239489){const _0x439233=a311_0x2d08,_0x37148c=_0x4bed70();while(!![]){try{const _0x5c7455=-parseInt(_0x439233(0x199))/0x1+-parseInt(_0x439233(0x187))/0x2+parseInt(_0x439233(0x192))/0x3+-parseInt(_0x439233(0x18b))/0x4*(-parseInt(_0x439233(0x19c))/0x5)+parseInt(_0x439233(0x191))/0x6*(parseInt(_0x439233(0x18c))/0x7)+parseInt(_0x439233(0x197))/0x8+-parseInt(_0x439233(0x18a))/0x9;if(_0x5c7455===_0x239489)break;else _0x37148c['push'](_0x37148c['shift']());}catch(_0x44da53){_0x37148c['push'](_0x37148c['shift']());}}}(a311_0x5dac,0x7842d));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x2c9b9c){const _0x508dc4=a311_0x2d08;return typeof _0x2c9b9c==='string'&&_0x2c9b9c[_0x508dc4(0x188)]()[_0x508dc4(0x19a)]>0x0?_0x2c9b9c['trim']():null;}function normalizeCliVersionPolicy(_0x42cc7a){const _0x5a7628=a311_0x2d08;if(!_0x42cc7a||typeof _0x42cc7a!==_0x5a7628(0x190))return null;const _0x3216bd=_0x42cc7a,_0x2beb4c=_0x3216bd[_0x5a7628(0x198)]&&typeof _0x3216bd[_0x5a7628(0x198)]===_0x5a7628(0x190)?_0x3216bd[_0x5a7628(0x198)]:_0x3216bd,_0xadcd65=pickString(_0x2beb4c[_0x5a7628(0x195)])||pickString(_0x2beb4c[_0x5a7628(0x19b)])||pickString(_0x2beb4c['recommendedVersion']),_0x3a3bed=pickString(_0x2beb4c[_0x5a7628(0x18e)])||pickString(_0x2beb4c[_0x5a7628(0x194)]);if(!_0xadcd65&&!_0x3a3bed)return null;return{'stableVersion':_0xadcd65,'minimumVersion':_0x3a3bed,'upgradeMessage':pickString(_0x2beb4c[_0x5a7628(0x193)])||undefined,'minimumVersionMessage':pickString(_0x2beb4c[_0x5a7628(0x18d)])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x35d3f4=a311_0x2d08,_0x1bebf0=new AbortController(),_0x3d0911=setTimeout(()=>_0x1bebf0[_0x35d3f4(0x186)](),FETCH_TIMEOUT_MS);try{const _0x2de3e9=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x35d3f4(0x18f)},'signal':_0x1bebf0[_0x35d3f4(0x189)]});if(!_0x2de3e9['ok'])return null;const _0x107eb7=await _0x2de3e9['json']();return _0x107eb7&&typeof _0x107eb7===_0x35d3f4(0x190)?_0x107eb7:null;}catch{return null;}finally{clearTimeout(_0x3d0911);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}function a311_0x5dac(){const _0x251f62=['minimumVersionMessage','minimumVersion','application/json','object','413796tjTHee','2070795scUtBA','upgradeMessage','minVersion','stableVersion','now','7863288BCJTGP','cli','696801ypXDvp','length','latestVersion','10gyeAiy','abort','1308068AWNNiz','trim','signal','7153308HYbbYl','412868xaYdzB','77vKmvXo'];a311_0x5dac=function(){return _0x251f62;};return a311_0x5dac();}function a311_0x2d08(_0x1f16ac,_0xc363f7){_0x1f16ac=_0x1f16ac-0x186;const _0x5dacb1=a311_0x5dac();let _0x2d08b6=_0x5dacb1[_0x1f16ac];return _0x2d08b6;}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x416d7a=a311_0x2d08,_0x3b8eff=Date[_0x416d7a(0x196)]();if(hasCachedConfig){const _0xf1133e=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x3b8eff-cacheTime<_0xf1133e)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x3b8eff,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- function a298_0x200a(_0x287702,_0x30093e){_0x287702=_0x287702-0xea;const _0x9075f5=a298_0x9075();let _0x200a6d=_0x9075f5[_0x287702];return _0x200a6d;}(function(_0x4d8bb2,_0x5633b7){const _0xc99ec6=a298_0x200a,_0x28c3b5=_0x4d8bb2();while(!![]){try{const _0x45aec1=-parseInt(_0xc99ec6(0xea))/0x1*(-parseInt(_0xc99ec6(0xef))/0x2)+parseInt(_0xc99ec6(0xee))/0x3*(parseInt(_0xc99ec6(0xf4))/0x4)+-parseInt(_0xc99ec6(0xf3))/0x5*(-parseInt(_0xc99ec6(0xf2))/0x6)+-parseInt(_0xc99ec6(0xf7))/0x7*(parseInt(_0xc99ec6(0xed))/0x8)+-parseInt(_0xc99ec6(0xec))/0x9+-parseInt(_0xc99ec6(0xf6))/0xa*(-parseInt(_0xc99ec6(0xeb))/0xb)+-parseInt(_0xc99ec6(0xf0))/0xc;if(_0x45aec1===_0x5633b7)break;else _0x28c3b5['push'](_0x28c3b5['shift']());}catch(_0x247c82){_0x28c3b5['push'](_0x28c3b5['shift']());}}}(a298_0x9075,0x22f27));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a298_0x4d235b,getMultiAppConfigs as a298_0x1c63d4,getTemplateBaseUrl as a298_0x4936c9}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a298_0x9075(){const _0x2ad94c=['221028MGwhmI','string','265074gTrLKm','5IImxqz','599888rhsQlK','env','10jbnWvu','1318674BeplOd','4eWHyjX','725747GaVPVz','679932JzgywL','8axhZGn','3QPyRHD','82682LKkqqI'];a298_0x9075=function(){return _0x2ad94c;};return a298_0x9075();}export{isInProject}from'../context.js';export function readConfig(_0x1a69ff){const _0x27daaa=a298_0x200a,_0x3f7f50=readRawConfig(_0x1a69ff);return _0x3f7f50[_0x27daaa(0xf5)]&&typeof _0x3f7f50[_0x27daaa(0xf5)]===_0x27daaa(0xf1)&&initEnv(_0x3f7f50['env']),_0x3f7f50;}export function getConfigAppCode(){return a298_0x4d235b();}export function getMultiAppConfigs(_0x177fae='project'){return a298_0x1c63d4(_0x177fae);}export function getTemplateBaseUrl(){return a298_0x4936c9();}
1
+ const a312_0x29a406=a312_0x5a4e;(function(_0x3d01dd,_0x591b67){const _0xab14ae=a312_0x5a4e,_0x40c9a3=_0x3d01dd();while(!![]){try{const _0x2491cf=-parseInt(_0xab14ae(0x106))/0x1+-parseInt(_0xab14ae(0x104))/0x2+parseInt(_0xab14ae(0x10d))/0x3+parseInt(_0xab14ae(0x10c))/0x4*(parseInt(_0xab14ae(0x110))/0x5)+-parseInt(_0xab14ae(0x10b))/0x6*(-parseInt(_0xab14ae(0x108))/0x7)+parseInt(_0xab14ae(0x10a))/0x8+-parseInt(_0xab14ae(0x107))/0x9*(parseInt(_0xab14ae(0x109))/0xa);if(_0x2491cf===_0x591b67)break;else _0x40c9a3['push'](_0x40c9a3['shift']());}catch(_0x32aacf){_0x40c9a3['push'](_0x40c9a3['shift']());}}}(a312_0x2235,0x7c583));import{initEnv}from'../constant/env.js';function a312_0x5a4e(_0x26bcab,_0xe8ee15){_0x26bcab=_0x26bcab-0x104;const _0x22353a=a312_0x2235();let _0x5a4e30=_0x22353a[_0x26bcab];return _0x5a4e30;}import{readRawConfig,getConfigAppCode as a312_0x2aca53,getMultiAppConfigs as a312_0x24f84a,getTemplateBaseUrl as a312_0x1e704b}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a312_0x2235(){const _0x9b3173=['296124Nyokrq','30441QGISdU','project','env','25OvmEDF','703646nLoABS','string','669845hPXVmi','5535PNpiHY','13923sQEvOU','2620rNuAIr','6023216bvejZw','1686xuWrgf'];a312_0x2235=function(){return _0x9b3173;};return a312_0x2235();}export function readConfig(_0x41ebc7){const _0x1128fd=a312_0x5a4e,_0x136c8a=readRawConfig(_0x41ebc7);return _0x136c8a[_0x1128fd(0x10f)]&&typeof _0x136c8a[_0x1128fd(0x10f)]===_0x1128fd(0x105)&&initEnv(_0x136c8a[_0x1128fd(0x10f)]),_0x136c8a;}export function getConfigAppCode(){return a312_0x2aca53();}export function getMultiAppConfigs(_0x3f7c12=a312_0x29a406(0x10e)){return a312_0x24f84a(_0x3f7c12);}export function getTemplateBaseUrl(){return a312_0x1e704b();}
@@ -1 +1 @@
1
- function a299_0x5e46(_0x250da7,_0x199c08){_0x250da7=_0x250da7-0x1cd;const _0x53d64c=a299_0x53d6();let _0x5e469e=_0x53d64c[_0x250da7];return _0x5e469e;}(function(_0x493150,_0x30ec5b){const _0x10728a=a299_0x5e46,_0x2823d3=_0x493150();while(!![]){try{const _0x4e0b4c=-parseInt(_0x10728a(0x1ce))/0x1*(parseInt(_0x10728a(0x1d5))/0x2)+-parseInt(_0x10728a(0x1d2))/0x3+parseInt(_0x10728a(0x1cf))/0x4+parseInt(_0x10728a(0x1d4))/0x5*(parseInt(_0x10728a(0x1d3))/0x6)+parseInt(_0x10728a(0x1d1))/0x7+-parseInt(_0x10728a(0x1cd))/0x8+parseInt(_0x10728a(0x1d6))/0x9;if(_0x4e0b4c===_0x30ec5b)break;else _0x2823d3['push'](_0x2823d3['shift']());}catch(_0x120cd0){_0x2823d3['push'](_0x2823d3['shift']());}}}(a299_0x53d6,0x61377));function toFiniteNumber(_0x12a6ae){const _0x18aac4=a299_0x5e46;if(typeof _0x12a6ae===_0x18aac4(0x1d8)&&Number['isFinite'](_0x12a6ae))return _0x12a6ae;if(typeof _0x12a6ae===_0x18aac4(0x1d9)){const _0x294590=_0x12a6ae['trim']();if(!_0x294590)return undefined;const _0x59b9f4=Number(_0x294590);if(Number[_0x18aac4(0x1d0)](_0x59b9f4))return _0x59b9f4;}return undefined;}function a299_0x53d6(){const _0x1a7fba=['number','string','665000nybceu','878cIkxZG','3172996kGngqE','isFinite','2040115EScMww','2296779ELqVfQ','1755012DneboM','5gbwajW','1614xIbiwe','5204403ilAsmc','object'];a299_0x53d6=function(){return _0x1a7fba;};return a299_0x53d6();}export function normalizeEntityWithIdResponse(_0xe9c70d){const _0x57a8d2=a299_0x5e46,_0x5749f9=toFiniteNumber(_0xe9c70d);if(_0x5749f9!==undefined)return{'id':_0x5749f9,'entity':{'id':_0x5749f9}};if(!_0xe9c70d||typeof _0xe9c70d!==_0x57a8d2(0x1d7))return{'id':undefined,'entity':{}};const _0x5952cf={..._0xe9c70d},_0x3a3ce1=toFiniteNumber(_0x5952cf['id']);return _0x3a3ce1!==undefined&&(_0x5952cf['id']=_0x3a3ce1),{'id':_0x3a3ce1,'entity':_0x5952cf};}
1
+ (function(_0x3ea5bf,_0x5f4bcd){const _0x1163ef=a313_0x1f8b,_0x149b23=_0x3ea5bf();while(!![]){try{const _0x1ac846=-parseInt(_0x1163ef(0xfe))/0x1+-parseInt(_0x1163ef(0x104))/0x2+-parseInt(_0x1163ef(0x102))/0x3*(-parseInt(_0x1163ef(0xfc))/0x4)+parseInt(_0x1163ef(0x103))/0x5*(-parseInt(_0x1163ef(0x105))/0x6)+parseInt(_0x1163ef(0x107))/0x7*(-parseInt(_0x1163ef(0x106))/0x8)+parseInt(_0x1163ef(0xff))/0x9*(-parseInt(_0x1163ef(0x108))/0xa)+parseInt(_0x1163ef(0xfd))/0xb;if(_0x1ac846===_0x5f4bcd)break;else _0x149b23['push'](_0x149b23['shift']());}catch(_0x5d2cd7){_0x149b23['push'](_0x149b23['shift']());}}}(a313_0x1291,0xb4d70));function a313_0x1291(){const _0x1df7c2=['1476976QINFUl','35lBEMec','3564930URtSps','object','isFinite','2523308wOjyLC','39048867ugCWXD','346710iVhLOI','36KsXIZf','number','trim','6OHeYFt','5UBhaGA','765706bwfmCc','5953116psIrmG'];a313_0x1291=function(){return _0x1df7c2;};return a313_0x1291();}function a313_0x1f8b(_0x30da1f,_0x29f107){_0x30da1f=_0x30da1f-0xfa;const _0x129168=a313_0x1291();let _0x1f8b57=_0x129168[_0x30da1f];return _0x1f8b57;}function toFiniteNumber(_0x644053){const _0x2b2500=a313_0x1f8b;if(typeof _0x644053===_0x2b2500(0x100)&&Number['isFinite'](_0x644053))return _0x644053;if(typeof _0x644053==='string'){const _0x15d3e5=_0x644053[_0x2b2500(0x101)]();if(!_0x15d3e5)return undefined;const _0x21a57f=Number(_0x15d3e5);if(Number[_0x2b2500(0xfb)](_0x21a57f))return _0x21a57f;}return undefined;}export function normalizeEntityWithIdResponse(_0x5b0a3a){const _0x7e9a4b=a313_0x1f8b,_0x3041c5=toFiniteNumber(_0x5b0a3a);if(_0x3041c5!==undefined)return{'id':_0x3041c5,'entity':{'id':_0x3041c5}};if(!_0x5b0a3a||typeof _0x5b0a3a!==_0x7e9a4b(0xfa))return{'id':undefined,'entity':{}};const _0x158719={..._0x5b0a3a},_0x37e759=toFiniteNumber(_0x158719['id']);return _0x37e759!==undefined&&(_0x158719['id']=_0x37e759),{'id':_0x37e759,'entity':_0x158719};}
@@ -1 +1 @@
1
- (function(_0x3888d7,_0x4894b2){const _0x2b2313=a300_0x3aa9,_0x38921c=_0x3888d7();while(!![]){try{const _0x204798=parseInt(_0x2b2313(0x1bf))/0x1+-parseInt(_0x2b2313(0x1c4))/0x2+-parseInt(_0x2b2313(0x1c5))/0x3*(parseInt(_0x2b2313(0x1c2))/0x4)+-parseInt(_0x2b2313(0x1c1))/0x5+-parseInt(_0x2b2313(0x1bb))/0x6*(-parseInt(_0x2b2313(0x1c0))/0x7)+parseInt(_0x2b2313(0x1bd))/0x8*(parseInt(_0x2b2313(0x1be))/0x9)+parseInt(_0x2b2313(0x1c3))/0xa*(parseInt(_0x2b2313(0x1bc))/0xb);if(_0x204798===_0x4894b2)break;else _0x38921c['push'](_0x38921c['shift']());}catch(_0x3b222d){_0x38921c['push'](_0x38921c['shift']());}}}(a300_0x33a1,0x1eaf5));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a300_0x3aa9(_0x2070ee,_0x2a2b4a){_0x2070ee=_0x2070ee-0x1bb;const _0x33a1d3=a300_0x33a1();let _0x3aa94a=_0x33a1d3[_0x2070ee];return _0x3aa94a;}import{join}from'node:path';export async function copyDir(_0x59e7ab,_0x229230){const _0x121bd8=statSync(_0x59e7ab);if(_0x121bd8['isDirectory']()){!existsSync(_0x229230)&&mkdirSync(_0x229230,{'recursive':!![]});const _0x5cbfec=readdirSync(_0x59e7ab);for(const _0x49d32b of _0x5cbfec){await copyDir(join(_0x59e7ab,_0x49d32b),join(_0x229230,_0x49d32b));}}else copyFileSync(_0x59e7ab,_0x229230);}export function ensureDir(_0x53a84e){!existsSync(_0x53a84e)&&mkdirSync(_0x53a84e,{'recursive':!![]});}function a300_0x33a1(){const _0x11d725=['64161wxgBcG','1057Whvwog','688140OMafcX','68pvvCXz','76030wXMWqS','320324prdizg','36669CPzfNa','3450KUzoBh','649IUNUqJ','8aDzOFG','285327lmzsEm'];a300_0x33a1=function(){return _0x11d725;};return a300_0x33a1();}export function pathExists(_0x365e53){return existsSync(_0x365e53);}
1
+ (function(_0x4274a3,_0xb5cdd1){const _0x28231e=a314_0x7850,_0x37a7ec=_0x4274a3();while(!![]){try{const _0x39ad80=-parseInt(_0x28231e(0x127))/0x1*(parseInt(_0x28231e(0x122))/0x2)+-parseInt(_0x28231e(0x120))/0x3*(-parseInt(_0x28231e(0x126))/0x4)+parseInt(_0x28231e(0x12b))/0x5*(parseInt(_0x28231e(0x129))/0x6)+parseInt(_0x28231e(0x121))/0x7+-parseInt(_0x28231e(0x123))/0x8+parseInt(_0x28231e(0x124))/0x9*(-parseInt(_0x28231e(0x128))/0xa)+parseInt(_0x28231e(0x12a))/0xb*(parseInt(_0x28231e(0x125))/0xc);if(_0x39ad80===_0xb5cdd1)break;else _0x37a7ec['push'](_0x37a7ec['shift']());}catch(_0x1d07f2){_0x37a7ec['push'](_0x37a7ec['shift']());}}}(a314_0x7115,0xbd938));function a314_0x7115(){const _0x4bf180=['11egVswm','243265kEghLH','3RWUlyZ','3584637biTZuF','270462ItegnD','119080tcdJpF','9AssGGJ','22943448OkLcfB','1723504AhjCKM','11qRXMHm','8679090RSVlWP','36cqBYGC'];a314_0x7115=function(){return _0x4bf180;};return a314_0x7115();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x1e6380,_0x31d036){const _0x312d2c=statSync(_0x1e6380);if(_0x312d2c['isDirectory']()){!existsSync(_0x31d036)&&mkdirSync(_0x31d036,{'recursive':!![]});const _0x1a32bd=readdirSync(_0x1e6380);for(const _0x3d0e50 of _0x1a32bd){await copyDir(join(_0x1e6380,_0x3d0e50),join(_0x31d036,_0x3d0e50));}}else copyFileSync(_0x1e6380,_0x31d036);}export function ensureDir(_0x23315a){!existsSync(_0x23315a)&&mkdirSync(_0x23315a,{'recursive':!![]});}function a314_0x7850(_0x3374b3,_0x27b7df){_0x3374b3=_0x3374b3-0x120;const _0x7115b2=a314_0x7115();let _0x7850d4=_0x7115b2[_0x3374b3];return _0x7850d4;}export function pathExists(_0x27896c){return existsSync(_0x27896c);}