@lovrabet/rabetbase-cli 2.5.2-beta.4 → 2.5.2-beta.6

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 (330) 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/index.js +1 -1
  99. package/lib/commands/deployment/sync-all.js +1 -1
  100. package/lib/commands/deployment/sync-jobs.js +1 -1
  101. package/lib/commands/deployment/sync-status.js +1 -1
  102. package/lib/commands/doctor.js +1 -1
  103. package/lib/commands/file/index.js +1 -1
  104. package/lib/commands/instant-api-policy/current.js +1 -1
  105. package/lib/commands/instant-api-policy/index.js +1 -1
  106. package/lib/commands/instant-api-policy/init.js +1 -1
  107. package/lib/commands/instant-api-policy/publish.js +1 -1
  108. package/lib/commands/instant-api-policy/pull.js +1 -1
  109. package/lib/commands/instant-api-policy/revision.js +1 -1
  110. package/lib/commands/instant-api-policy/revisions.js +1 -1
  111. package/lib/commands/instant-api-policy/rollback.js +1 -1
  112. package/lib/commands/instant-api-policy/shared.js +1 -1
  113. package/lib/commands/instant-api-policy/validate.js +1 -1
  114. package/lib/commands/issue/index.js +1 -1
  115. package/lib/commands/issue/nudge.js +1 -1
  116. package/lib/commands/issue/report.js +1 -1
  117. package/lib/commands/issue/shared.js +1 -1
  118. package/lib/commands/kb/create.js +1 -1
  119. package/lib/commands/kb/delete.js +1 -1
  120. package/lib/commands/kb/detail.js +1 -1
  121. package/lib/commands/kb/index.js +1 -1
  122. package/lib/commands/kb/list.js +1 -1
  123. package/lib/commands/kb/search.js +1 -1
  124. package/lib/commands/kb/shared.js +1 -1
  125. package/lib/commands/kb/update.js +1 -1
  126. package/lib/commands/logs/index.js +1 -1
  127. package/lib/commands/menu/asset-update.js +1 -1
  128. package/lib/commands/menu/delete.js +1 -1
  129. package/lib/commands/menu/external-link-create.js +1 -1
  130. package/lib/commands/menu/external-link-update.js +1 -1
  131. package/lib/commands/menu/group-create.js +1 -1
  132. package/lib/commands/menu/group-update.js +1 -1
  133. package/lib/commands/menu/index.js +1 -1
  134. package/lib/commands/menu/list.js +1 -1
  135. package/lib/commands/menu/move.js +1 -1
  136. package/lib/commands/menu/regroup-start.js +1 -1
  137. package/lib/commands/menu/rename.js +1 -1
  138. package/lib/commands/menu/shared/compare-table.js +1 -1
  139. package/lib/commands/menu/shared/delete-plan.js +1 -1
  140. package/lib/commands/menu/shared/facts.js +1 -1
  141. package/lib/commands/menu/shared/index.js +1 -1
  142. package/lib/commands/menu/shared/inquirer.js +1 -1
  143. package/lib/commands/menu/shared/local-pages.js +1 -1
  144. package/lib/commands/menu/shared/logic.js +1 -1
  145. package/lib/commands/menu/shared/mutations.js +1 -1
  146. package/lib/commands/menu/shared/service.js +1 -1
  147. package/lib/commands/menu/shared/sync-core.js +1 -1
  148. package/lib/commands/menu/shared/update-core.js +1 -1
  149. package/lib/commands/menu/shared/valid-url.js +1 -1
  150. package/lib/commands/menu/sync.js +1 -1
  151. package/lib/commands/menu/visibility-update.js +1 -1
  152. package/lib/commands/notification/config-create.js +1 -1
  153. package/lib/commands/notification/config-delete.js +1 -1
  154. package/lib/commands/notification/config-list.js +1 -1
  155. package/lib/commands/notification/config-update.js +1 -1
  156. package/lib/commands/notification/index.js +1 -1
  157. package/lib/commands/notification/shared.js +1 -1
  158. package/lib/commands/ocr/index.js +1 -1
  159. package/lib/commands/page/create.js +1 -1
  160. package/lib/commands/page/custom/detail.js +1 -1
  161. package/lib/commands/page/custom/list.js +1 -1
  162. package/lib/commands/page/custom/publish.js +1 -1
  163. package/lib/commands/page/custom/shared.js +1 -1
  164. package/lib/commands/page/custom/syntax.js +1 -1
  165. package/lib/commands/page/custom/update.js +1 -1
  166. package/lib/commands/page/data-list-status.js +1 -1
  167. package/lib/commands/page/generate-start.js +1 -1
  168. package/lib/commands/page/generate-status.js +1 -1
  169. package/lib/commands/page/index.js +1 -1
  170. package/lib/commands/page/pull.js +1 -1
  171. package/lib/commands/page/push.js +1 -1
  172. package/lib/commands/page/relation-audit.js +1 -1
  173. package/lib/commands/page/restore.js +1 -1
  174. package/lib/commands/page/shared.js +1 -1
  175. package/lib/commands/page/sync.js +1 -1
  176. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  177. package/lib/commands/project/create/format-elapsed.js +1 -1
  178. package/lib/commands/project/create/main.js +1 -1
  179. package/lib/commands/project/create/materialize-project-template.js +1 -1
  180. package/lib/commands/project/create/project-name.js +1 -1
  181. package/lib/commands/project/create/project-template-archive.js +1 -1
  182. package/lib/commands/project/create/project-template-path.js +1 -1
  183. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  184. package/lib/commands/project/create/use-format-code.js +1 -1
  185. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  186. package/lib/commands/project/domain-routing-sync.js +1 -1
  187. package/lib/commands/project/index.js +1 -1
  188. package/lib/commands/project/upgrade.js +1 -1
  189. package/lib/commands/registry.js +1 -1
  190. package/lib/commands/role/delete.js +1 -1
  191. package/lib/commands/role/detail.js +1 -1
  192. package/lib/commands/role/index.js +1 -1
  193. package/lib/commands/role/list.js +1 -1
  194. package/lib/commands/role/shared.js +1 -1
  195. package/lib/commands/role/update.js +1 -1
  196. package/lib/commands/role/user-add.js +1 -1
  197. package/lib/commands/role/user-remove.js +1 -1
  198. package/lib/commands/role/user-resolve.js +1 -1
  199. package/lib/commands/rule/get.js +1 -1
  200. package/lib/commands/rule/index.js +1 -1
  201. package/lib/commands/rule/list.js +1 -1
  202. package/lib/commands/rule/set.js +1 -1
  203. package/lib/commands/rule/shared.js +1 -1
  204. package/lib/commands/run/index.js +1 -1
  205. package/lib/commands/schema.js +1 -1
  206. package/lib/commands/sql/create.js +1 -1
  207. package/lib/commands/sql/delete.js +1 -1
  208. package/lib/commands/sql/detail.js +1 -1
  209. package/lib/commands/sql/exec.js +1 -1
  210. package/lib/commands/sql/index.js +1 -1
  211. package/lib/commands/sql/list.js +1 -1
  212. package/lib/commands/sql/pull.js +1 -1
  213. package/lib/commands/sql/push.js +1 -1
  214. package/lib/commands/sql/shared.js +1 -1
  215. package/lib/commands/sql/status.js +1 -1
  216. package/lib/commands/sql/validate.js +1 -1
  217. package/lib/commands/task/index.js +1 -1
  218. package/lib/commands/task/status.js +1 -1
  219. package/lib/commands/tenant/index.js +1 -1
  220. package/lib/commands/tenant/members-list.js +1 -1
  221. package/lib/commands/tenant/shared.js +1 -1
  222. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  223. package/lib/commands/user-account/index.js +1 -1
  224. package/lib/commands/workspace/add.js +1 -1
  225. package/lib/commands/workspace/index.js +1 -1
  226. package/lib/commands/workspace/remove.js +1 -1
  227. package/lib/config/domain-config.js +1 -1
  228. package/lib/config/project-domain-routing.js +1 -1
  229. package/lib/config/schema.js +1 -1
  230. package/lib/constant/cdn.js +1 -1
  231. package/lib/constant/cli.js +1 -1
  232. package/lib/constant/defaults.js +1 -1
  233. package/lib/constant/domain.js +1 -1
  234. package/lib/constant/env.js +1 -1
  235. package/lib/constant/output.js +1 -1
  236. package/lib/constant/paths.js +1 -1
  237. package/lib/constant/region.js +1 -1
  238. package/lib/constant/risk.js +1 -1
  239. package/lib/constant/routing-profile.js +1 -1
  240. package/lib/context/app-resolver.js +1 -1
  241. package/lib/context/auth-resolver.js +1 -1
  242. package/lib/context/config-loader.js +1 -1
  243. package/lib/context.js +1 -1
  244. package/lib/core/alias-resolver.js +1 -1
  245. package/lib/core/api-client.d.ts +0 -17
  246. package/lib/core/api-client.js +1 -1
  247. package/lib/core/bff/config.js +1 -1
  248. package/lib/core/bff/file-system.js +1 -1
  249. package/lib/core/bff/hash.js +1 -1
  250. package/lib/core/bff/lock.js +1 -1
  251. package/lib/core/bff/utils.js +1 -1
  252. package/lib/core/db-resolver.js +1 -1
  253. package/lib/core/instant-api-policy/config.js +1 -1
  254. package/lib/core/kb-search-client.js +1 -1
  255. package/lib/core/page/file-system.js +1 -1
  256. package/lib/core/page/hash.js +1 -1
  257. package/lib/core/page/lock.js +1 -1
  258. package/lib/core/sql-index-auditor.js +1 -1
  259. package/lib/core/sql-sync/config.js +1 -1
  260. package/lib/core/sql-sync/file-system.js +1 -1
  261. package/lib/core/sql-sync/hash.js +1 -1
  262. package/lib/core/sql-sync/lock.js +1 -1
  263. package/lib/core/sql-sync/utils.js +1 -1
  264. package/lib/core/sql-validator.js +1 -1
  265. package/lib/errors.js +1 -1
  266. package/lib/framework/build-all-flags.js +1 -1
  267. package/lib/framework/error-output.js +1 -1
  268. package/lib/framework/explicit-yes.js +1 -1
  269. package/lib/framework/flags.js +1 -1
  270. package/lib/framework/help.js +1 -1
  271. package/lib/framework/index.js +1 -1
  272. package/lib/framework/output.js +1 -1
  273. package/lib/framework/response.js +1 -1
  274. package/lib/framework/runner-alias.js +1 -1
  275. package/lib/framework/runner.js +1 -1
  276. package/lib/framework/schema-export.js +1 -1
  277. package/lib/framework/supported-flags.js +1 -1
  278. package/lib/framework/types.js +1 -1
  279. package/lib/generated/build-info.d.ts +4 -4
  280. package/lib/generated/build-info.js +1 -1
  281. package/lib/generated/official-routing.js +1 -1
  282. package/lib/generated/routing-contract.js +1 -1
  283. package/lib/help.js +1 -1
  284. package/lib/postinstall.js +1 -1
  285. package/lib/runtime/confirmation.js +1 -1
  286. package/lib/runtime/event.js +1 -1
  287. package/lib/runtime/index.js +1 -1
  288. package/lib/runtime/queue.js +1 -1
  289. package/lib/runtime/resolve.js +1 -1
  290. package/lib/skills/builtin-skill.js +1 -1
  291. package/lib/skills/main.js +1 -1
  292. package/lib/skills/npx-skills-add.js +1 -1
  293. package/lib/skills/skill-presence.js +1 -1
  294. package/lib/telemetry/cli-command-trace.js +1 -1
  295. package/lib/telemetry/cli-help-trace.js +1 -1
  296. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  297. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  298. package/lib/telemetry/send-cli-trace-log.js +1 -1
  299. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  300. package/lib/utils/ai_config.js +1 -1
  301. package/lib/utils/apply-jq-filter.js +1 -1
  302. package/lib/utils/cdn-config.js +1 -1
  303. package/lib/utils/check-sdk-version.js +1 -1
  304. package/lib/utils/cli-version-check.js +1 -1
  305. package/lib/utils/cli-version-policy.js +1 -1
  306. package/lib/utils/config.js +1 -1
  307. package/lib/utils/entity-with-id.js +1 -1
  308. package/lib/utils/file-utils.js +1 -1
  309. package/lib/utils/guides-cdn.js +1 -1
  310. package/lib/utils/http-client.js +1 -1
  311. package/lib/utils/is-non-interactive.js +1 -1
  312. package/lib/utils/logger.js +1 -1
  313. package/lib/utils/params.js +1 -1
  314. package/lib/utils/platform.d.ts +6 -5
  315. package/lib/utils/platform.js +1 -1
  316. package/lib/utils/sleep.js +1 -1
  317. package/lib/utils/template-replacer.js +1 -1
  318. package/lib/utils/update-notice.js +1 -1
  319. package/lib/utils/version.js +1 -1
  320. package/lib/utils/with-active-cookie.js +1 -1
  321. package/lib/utils/write-cli-side-channel.js +1 -1
  322. package/package.json +1 -1
  323. package/skills/rabetbase/SKILL.md +5 -6
  324. package/skills/rabetbase/references/rabetbase-deployment-sync-all.md +56 -0
  325. package/skills/rabetbase.manifest.json +4 -4
  326. package/lib/commands/deployment/auto-sync.d.ts +0 -20
  327. package/lib/commands/deployment/auto-sync.js +0 -1
  328. package/lib/commands/deployment/sync.d.ts +0 -2
  329. package/lib/commands/deployment/sync.js +0 -1
  330. package/skills/rabetbase/references/rabetbase-deployment-sync.md +0 -100
@@ -1 +1 @@
1
- const a294_0x1b79d7=a294_0x434e;(function(_0x50300f,_0x5bbd50){const _0x1b23e8=a294_0x434e,_0x374b27=_0x50300f();while(!![]){try{const _0x376640=-parseInt(_0x1b23e8(0x1da))/0x1*(parseInt(_0x1b23e8(0x1ac))/0x2)+parseInt(_0x1b23e8(0x1c8))/0x3+-parseInt(_0x1b23e8(0x1d3))/0x4*(parseInt(_0x1b23e8(0x1af))/0x5)+parseInt(_0x1b23e8(0x1e2))/0x6*(parseInt(_0x1b23e8(0x1cc))/0x7)+-parseInt(_0x1b23e8(0x1c4))/0x8+parseInt(_0x1b23e8(0x1d6))/0x9+-parseInt(_0x1b23e8(0x1c1))/0xa*(-parseInt(_0x1b23e8(0x1b4))/0xb);if(_0x376640===_0x5bbd50)break;else _0x374b27['push'](_0x374b27['shift']());}catch(_0x39867b){_0x374b27['push'](_0x374b27['shift']());}}}(a294_0x544b,0xbda05));import{createHash}from'node:crypto';function a294_0x544b(){const _0x30425d=['361025edDRuB',':\x5cs*(.+)$','path','name','state','manifest','isSymbolicLink','trim','8741868HTzvPy','current','VERIFY_FAILED','split','package.json','home','unknown','packageVersion','reason','4MbbSHI','isFile','sha256','109425Pxuznd','length','startsWith','root','INSTALL_FAILED','1881ZkCnwf','flatMap','unverifiable','schemaVersion','every','isDirectory','missing','installedPath','skills','SKILL.md','includes','digest','skipped','27630AYcOdU','rabetbase','skillVersion','7866368KuZGwE','status','match','packageRoot','1067550kSphEO','skills@latest\x20exited\x20','message','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','7zyYmRn','SOURCE_INVALID','update','rabetbase.manifest.json','version','pipe','rabetbase\x20cli-skill\x20install','100UbzkQZ','version_mismatch','absent','6694911OgIIuv','utf8','files','error'];a294_0x544b=function(){return _0x30425d;};return a294_0x544b();}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=a294_0x1b79d7(0x1d2),SKILL_NAME=a294_0x1b79d7(0x1c2);function a294_0x434e(_0x409cf8,_0x273d5e){_0x409cf8=_0x409cf8-0x1a7;const _0x544ba2=a294_0x544b();let _0x434e16=_0x544ba2[_0x409cf8];return _0x434e16;}function frontmatterValue(_0x173ad8,_0x5f2942){const _0x4ae006=a294_0x1b79d7;return _0x173ad8[_0x4ae006(0x1c6)](new RegExp('^'+_0x5f2942+_0x4ae006(0x1db),'m'))?.[0x1]?.[_0x4ae006(0x1e1)]()??'';}function listFiles(_0xc05297,_0x253144=_0xc05297){const _0x486744=a294_0x1b79d7;return readdirSync(_0x253144,{'withFileTypes':!![]})[_0x486744(0x1b5)](_0x69c706=>{const _0x119221=_0x486744,_0x2c25c4=join(_0x253144,_0x69c706[_0x119221(0x1dd)]),_0x54fa09=lstatSync(_0x2c25c4);if(_0x54fa09[_0x119221(0x1e0)]())throw new Error('Symbolic\x20link\x20is\x20not\x20allowed:\x20'+_0x2c25c4);if(_0x54fa09[_0x119221(0x1b9)]())return listFiles(_0xc05297,_0x2c25c4);if(!_0x54fa09[_0x119221(0x1ad)]())throw new Error('Unsupported\x20Skill\x20entry:\x20'+_0x2c25c4);return[relative(_0xc05297,_0x2c25c4)[_0x119221(0x1e5)](sep)['join']('/')];})['sort']((_0x33ca80,_0x37bca5)=>_0x33ca80<_0x37bca5?-0x1:_0x33ca80>_0x37bca5?0x1:0x0);}function digestFiles(_0x4214ff,_0x1c6ef5){const _0x13839b=a294_0x1b79d7,_0x4a3f34=createHash(_0x13839b(0x1ae));for(const _0x1565c6 of _0x1c6ef5){if(_0x1565c6[_0x13839b(0x1b1)]('/')||_0x1565c6[_0x13839b(0x1e5)]('/')[_0x13839b(0x1be)]('..')||_0x1565c6[_0x13839b(0x1be)]('\x5c'))throw new Error('Unsafe\x20manifest\x20path:\x20'+_0x1565c6);_0x4a3f34[_0x13839b(0x1ce)](_0x1565c6),_0x4a3f34[_0x13839b(0x1ce)]('\x00'),_0x4a3f34[_0x13839b(0x1ce)](readFileSync(join(_0x4214ff,..._0x1565c6[_0x13839b(0x1e5)]('/')))),_0x4a3f34[_0x13839b(0x1ce)]('\x00');}return _0x4a3f34[_0x13839b(0x1bf)]('hex');}function sameFiles(_0x358c61,_0x143ec1){const _0x119dc0=a294_0x1b79d7;return _0x358c61[_0x119dc0(0x1b0)]===_0x143ec1[_0x119dc0(0x1b0)]&&_0x358c61[_0x119dc0(0x1b8)]((_0x51c201,_0x41377d)=>_0x51c201===_0x143ec1[_0x41377d]);}function readSource(_0x35bb4a){const _0x3b7368=a294_0x1b79d7,_0x1ec466=JSON['parse'](readFileSync(join(_0x35bb4a,_0x3b7368(0x1a7)),_0x3b7368(0x1d7))),_0x77cb78=JSON['parse'](readFileSync(join(_0x35bb4a,_0x3b7368(0x1bc),_0x3b7368(0x1cf)),_0x3b7368(0x1d7))),_0x360482=join(_0x35bb4a,_0x3b7368(0x1bc),SKILL_NAME),_0x1edcc9=frontmatterValue(readFileSync(join(_0x360482,_0x3b7368(0x1bd)),'utf8'),_0x3b7368(0x1d0)),_0x351092=listFiles(_0x360482);if(_0x77cb78[_0x3b7368(0x1b7)]!==0x1||_0x77cb78['name']!==SKILL_NAME||!_0x1ec466[_0x3b7368(0x1d0)]||_0x77cb78[_0x3b7368(0x1aa)]!==_0x1ec466[_0x3b7368(0x1d0)]||_0x77cb78[_0x3b7368(0x1c3)]!==_0x1ec466['version']||_0x1edcc9!==_0x1ec466[_0x3b7368(0x1d0)]||!sameFiles(_0x351092,_0x77cb78[_0x3b7368(0x1d8)])||digestFiles(_0x360482,_0x351092)!==_0x77cb78[_0x3b7368(0x1bf)])throw new Error(_0x3b7368(0x1cb));return{'packageVersion':_0x1ec466[_0x3b7368(0x1d0)],'skillVersion':_0x1edcc9,'root':_0x360482,'manifest':_0x77cb78};}function installedSkillPath(_0x368816){const _0xd2827c=a294_0x1b79d7,_0xd6cc10=resolveInstalledSkill(SKILL_NAME,{'home':_0x368816});if(_0xd6cc10[_0xd2827c(0x1de)]==='present')return{'state':'present','path':dirname(_0xd6cc10[_0xd2827c(0x1dc)])};if(_0xd6cc10[_0xd2827c(0x1de)]===_0xd2827c(0x1d5))return{'state':_0xd2827c(0x1ba)};return{'state':_0xd2827c(0x1b6),'reason':_0xd6cc10[_0xd2827c(0x1ab)]};}export function inspectInstalledBuiltinSkillVersion(_0x1099c6,_0x2ef84d={}){const _0x7ed914=a294_0x1b79d7,_0x268302=installedSkillPath(_0x2ef84d[_0x7ed914(0x1a8)]??homedir());if(_0x268302['state']===_0x7ed914(0x1ba))return{'state':_0x7ed914(0x1ba),'expectedVersion':_0x1099c6,'repairCommand':REPAIR_COMMAND};if(_0x268302[_0x7ed914(0x1de)]==='unverifiable')return{'state':_0x7ed914(0x1b6),'expectedVersion':_0x1099c6,'reason':_0x268302[_0x7ed914(0x1ab)],'repairCommand':REPAIR_COMMAND};try{const _0x46ba7b=frontmatterValue(readFileSync(join(_0x268302['path'],_0x7ed914(0x1bd)),_0x7ed914(0x1d7)),_0x7ed914(0x1d0));return{'state':_0x46ba7b===_0x1099c6?_0x7ed914(0x1e3):_0x7ed914(0x1d4),'expectedVersion':_0x1099c6,'skillVersion':_0x46ba7b,'installedPath':_0x268302[_0x7ed914(0x1dc)],'repairCommand':REPAIR_COMMAND};}catch(_0x364838){return{'state':_0x7ed914(0x1b6),'expectedVersion':_0x1099c6,'installedPath':_0x268302['path'],'reason':_0x364838 instanceof Error?_0x364838[_0x7ed914(0x1ca)]:String(_0x364838),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x61a9b9={}){const _0x386a12=a294_0x1b79d7,_0x54be79=_0x61a9b9[_0x386a12(0x1c7)]??DEFAULT_PACKAGE_ROOT;let _0x2db97e;try{_0x2db97e=readSource(_0x54be79);}catch(_0x3e7502){return{'state':_0x386a12(0x1b6),'packageVersion':_0x386a12(0x1a9),'reason':_0x3e7502 instanceof Error?_0x3e7502[_0x386a12(0x1ca)]:String(_0x3e7502),'repairCommand':REPAIR_COMMAND};}const _0xd4b3e6=installedSkillPath(_0x61a9b9[_0x386a12(0x1a8)]??homedir());if(_0xd4b3e6['state']==='missing')return{'state':_0x386a12(0x1ba),'packageVersion':_0x2db97e[_0x386a12(0x1aa)],'repairCommand':REPAIR_COMMAND};if(_0xd4b3e6[_0x386a12(0x1de)]===_0x386a12(0x1b6))return{'state':_0x386a12(0x1b6),'packageVersion':_0x2db97e[_0x386a12(0x1aa)],'reason':_0xd4b3e6[_0x386a12(0x1ab)],'repairCommand':REPAIR_COMMAND};try{const _0x36a240=frontmatterValue(readFileSync(join(_0xd4b3e6[_0x386a12(0x1dc)],_0x386a12(0x1bd)),_0x386a12(0x1d7)),'version');if(_0x36a240!==_0x2db97e[_0x386a12(0x1c3)])return{'state':'version_mismatch','packageVersion':_0x2db97e[_0x386a12(0x1aa)],'skillVersion':_0x36a240,'installedPath':_0xd4b3e6['path'],'repairCommand':REPAIR_COMMAND};const _0x1a91e0=listFiles(_0xd4b3e6[_0x386a12(0x1dc)]),_0x82c313=digestFiles(_0xd4b3e6[_0x386a12(0x1dc)],_0x1a91e0);return{'state':sameFiles(_0x1a91e0,_0x2db97e[_0x386a12(0x1df)][_0x386a12(0x1d8)])&&_0x82c313===_0x2db97e[_0x386a12(0x1df)][_0x386a12(0x1bf)]?_0x386a12(0x1e3):'content_mismatch','packageVersion':_0x2db97e[_0x386a12(0x1aa)],'skillVersion':_0x36a240,'installedPath':_0xd4b3e6[_0x386a12(0x1dc)],'digest':_0x82c313,'repairCommand':REPAIR_COMMAND};}catch(_0x567681){return{'state':'unverifiable','packageVersion':_0x2db97e[_0x386a12(0x1aa)],'installedPath':_0xd4b3e6[_0x386a12(0x1dc)],'reason':_0x567681 instanceof Error?_0x567681[_0x386a12(0x1ca)]:String(_0x567681),'repairCommand':REPAIR_COMMAND};}}function failure(_0x193983,_0x2ed025,_0x1c1af0,_0x108166){const _0x4fd201=a294_0x1b79d7;return{'ok':![],'code':_0x193983,'packageVersion':_0x2ed025['packageVersion'],'skillVersion':_0x2ed025['skillVersion'],'installedPath':_0x108166,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x1c1af0 instanceof Error?_0x1c1af0[_0x4fd201(0x1ca)]:String(_0x1c1af0)};}export function installBuiltinSkill(_0x358d2b={}){const _0x4acec1=a294_0x1b79d7,_0x28298c=_0x358d2b[_0x4acec1(0x1c7)]??DEFAULT_PACKAGE_ROOT,_0x65e43e=_0x358d2b[_0x4acec1(0x1a8)]??homedir();let _0x137ae3;try{_0x137ae3=readSource(_0x28298c);}catch(_0xf77ad9){return failure(_0x4acec1(0x1cd),{'packageVersion':_0x4acec1(0x1a9),'skillVersion':_0x4acec1(0x1a9)},_0xf77ad9);}const _0x428a37=inspectBuiltinSkill({'packageRoot':_0x28298c,'home':_0x65e43e}),_0x2c7c1c=runNpxSkillsAddGlobal(_0x28298c,_0x137ae3[_0x4acec1(0x1b2)],{'stdio':_0x358d2b['stdio']??_0x4acec1(0x1d1),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x65e43e}});if(_0x2c7c1c[_0x4acec1(0x1c0)])return{'ok':!![],'packageVersion':_0x137ae3[_0x4acec1(0x1aa)],'skillVersion':_0x137ae3[_0x4acec1(0x1c3)],'installedPath':_0x428a37['installedPath'],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x2c7c1c['ok'])return failure(_0x4acec1(0x1b3),_0x137ae3,_0x2c7c1c[_0x4acec1(0x1d9)]??_0x4acec1(0x1c9)+_0x2c7c1c[_0x4acec1(0x1c5)]);const _0x367415=inspectBuiltinSkill({'packageRoot':_0x28298c,'home':_0x65e43e});if(_0x367415[_0x4acec1(0x1de)]!==_0x4acec1(0x1e3))return failure(_0x4acec1(0x1e4),_0x137ae3,_0x367415[_0x4acec1(0x1ab)]??'Installed\x20Skill\x20state\x20is\x20'+_0x367415[_0x4acec1(0x1de)],_0x367415[_0x4acec1(0x1bb)]);return{'ok':!![],'packageVersion':_0x137ae3['packageVersion'],'skillVersion':_0x137ae3[_0x4acec1(0x1c3)],'installedPath':_0x367415[_0x4acec1(0x1bb)],'changed':_0x428a37['state']!==_0x4acec1(0x1e3),'repairCommand':REPAIR_COMMAND};}
1
+ const a292_0x1f5000=a292_0x44d7;(function(_0x51b08b,_0xf8ff5c){const _0x4ee79d=a292_0x44d7,_0x274646=_0x51b08b();while(!![]){try{const _0x417d5d=-parseInt(_0x4ee79d(0x88))/0x1+-parseInt(_0x4ee79d(0x93))/0x2*(parseInt(_0x4ee79d(0x7d))/0x3)+-parseInt(_0x4ee79d(0x7a))/0x4*(-parseInt(_0x4ee79d(0x9a))/0x5)+parseInt(_0x4ee79d(0x72))/0x6*(parseInt(_0x4ee79d(0x9c))/0x7)+-parseInt(_0x4ee79d(0x8e))/0x8+parseInt(_0x4ee79d(0xa9))/0x9*(-parseInt(_0x4ee79d(0x75))/0xa)+-parseInt(_0x4ee79d(0xaa))/0xb*(-parseInt(_0x4ee79d(0x96))/0xc);if(_0x417d5d===_0xf8ff5c)break;else _0x274646['push'](_0x274646['shift']());}catch(_0x45d34d){_0x274646['push'](_0x274646['shift']());}}}(a292_0x1fe1,0xd8e8f));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';function a292_0x44d7(_0x53a25f,_0x485c5b){_0x53a25f=_0x53a25f-0x71;const _0x1fe10e=a292_0x1fe1();let _0x44d706=_0x1fe10e[_0x53a25f];return _0x44d706;}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=a292_0x1f5000(0x8b),SKILL_NAME=a292_0x1f5000(0xb1);function frontmatterValue(_0x443272,_0x4dc991){const _0xfc23d6=a292_0x1f5000;return _0x443272[_0xfc23d6(0xaf)](new RegExp('^'+_0x4dc991+':\x5cs*(.+)$','m'))?.[0x1]?.[_0xfc23d6(0x73)]()??'';}function listFiles(_0x3e67ce,_0x2692da=_0x3e67ce){const _0x112040=a292_0x1f5000;return readdirSync(_0x2692da,{'withFileTypes':!![]})['flatMap'](_0x480d08=>{const _0x1c82a2=a292_0x44d7,_0x2e8ac7=join(_0x2692da,_0x480d08[_0x1c82a2(0x97)]),_0x1354a5=lstatSync(_0x2e8ac7);if(_0x1354a5[_0x1c82a2(0x9b)]())throw new Error(_0x1c82a2(0x98)+_0x2e8ac7);if(_0x1354a5[_0x1c82a2(0x8d)]())return listFiles(_0x3e67ce,_0x2e8ac7);if(!_0x1354a5['isFile']())throw new Error(_0x1c82a2(0xa5)+_0x2e8ac7);return[relative(_0x3e67ce,_0x2e8ac7)[_0x1c82a2(0xb2)](sep)[_0x1c82a2(0x86)]('/')];})[_0x112040(0x7e)]((_0x79cd29,_0x1a0d67)=>_0x79cd29<_0x1a0d67?-0x1:_0x79cd29>_0x1a0d67?0x1:0x0);}function digestFiles(_0x47ebb9,_0x2e8d81){const _0x736bd8=a292_0x1f5000,_0x4ef9aa=createHash(_0x736bd8(0x87));for(const _0x1dca3e of _0x2e8d81){if(_0x1dca3e[_0x736bd8(0xa3)]('/')||_0x1dca3e[_0x736bd8(0xb2)]('/')[_0x736bd8(0x89)]('..')||_0x1dca3e[_0x736bd8(0x89)]('\x5c'))throw new Error(_0x736bd8(0x80)+_0x1dca3e);_0x4ef9aa[_0x736bd8(0x8f)](_0x1dca3e),_0x4ef9aa[_0x736bd8(0x8f)]('\x00'),_0x4ef9aa[_0x736bd8(0x8f)](readFileSync(join(_0x47ebb9,..._0x1dca3e[_0x736bd8(0xb2)]('/')))),_0x4ef9aa[_0x736bd8(0x8f)]('\x00');}return _0x4ef9aa[_0x736bd8(0xa4)](_0x736bd8(0xa6));}function sameFiles(_0x42de0b,_0x593ffe){const _0x478413=a292_0x1f5000;return _0x42de0b[_0x478413(0xad)]===_0x593ffe[_0x478413(0xad)]&&_0x42de0b[_0x478413(0x90)]((_0xb8e06e,_0x5c039b)=>_0xb8e06e===_0x593ffe[_0x5c039b]);}function a292_0x1fe1(){const _0x161fd1=['version_mismatch','packageVersion','2406858RcIVvX','sort','VERIFY_FAILED','Unsafe\x20manifest\x20path:\x20','utf8','SOURCE_INVALID','stdio','rabetbase.manifest.json','reason','join','sha256','1389579MfQeAx','includes','schemaVersion','rabetbase\x20cli-skill\x20install','skillVersion','isDirectory','13871448bCIedE','update','every','present','current','2pGvjXA','skills@latest\x20exited\x20','installedPath','12uRwCjY','name','Symbolic\x20link\x20is\x20not\x20allowed:\x20','files','575495rcLTSw','isSymbolicLink','7ArOfTJ','skills','INSTALL_FAILED','message','parse','error','home','startsWith','digest','Unsupported\x20Skill\x20entry:\x20','hex','package.json','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','36nUfRDj','61807812aSVZsu','state','SKILL.md','length','version','match','unverifiable','rabetbase','split','unknown','manifest','path','1191174bMTvQY','trim','missing','4234390XFRWVP','root','content_mismatch','packageRoot','pipe','24cduJiX'];a292_0x1fe1=function(){return _0x161fd1;};return a292_0x1fe1();}function readSource(_0x38a26d){const _0x1632e8=a292_0x1f5000,_0x438d84=JSON[_0x1632e8(0xa0)](readFileSync(join(_0x38a26d,_0x1632e8(0xa7)),'utf8')),_0x159ebf=JSON[_0x1632e8(0xa0)](readFileSync(join(_0x38a26d,_0x1632e8(0x9d),_0x1632e8(0x84)),_0x1632e8(0x81))),_0x4dc63d=join(_0x38a26d,'skills',SKILL_NAME),_0x537fe9=frontmatterValue(readFileSync(join(_0x4dc63d,_0x1632e8(0xac)),_0x1632e8(0x81)),_0x1632e8(0xae)),_0x46b6e0=listFiles(_0x4dc63d);if(_0x159ebf[_0x1632e8(0x8a)]!==0x1||_0x159ebf[_0x1632e8(0x97)]!==SKILL_NAME||!_0x438d84[_0x1632e8(0xae)]||_0x159ebf[_0x1632e8(0x7c)]!==_0x438d84[_0x1632e8(0xae)]||_0x159ebf[_0x1632e8(0x8c)]!==_0x438d84[_0x1632e8(0xae)]||_0x537fe9!==_0x438d84[_0x1632e8(0xae)]||!sameFiles(_0x46b6e0,_0x159ebf[_0x1632e8(0x99)])||digestFiles(_0x4dc63d,_0x46b6e0)!==_0x159ebf[_0x1632e8(0xa4)])throw new Error(_0x1632e8(0xa8));return{'packageVersion':_0x438d84[_0x1632e8(0xae)],'skillVersion':_0x537fe9,'root':_0x4dc63d,'manifest':_0x159ebf};}function installedSkillPath(_0x340924){const _0x218c91=a292_0x1f5000,_0x1dac3c=resolveInstalledSkill(SKILL_NAME,{'home':_0x340924});if(_0x1dac3c['state']===_0x218c91(0x91))return{'state':_0x218c91(0x91),'path':dirname(_0x1dac3c[_0x218c91(0x71)])};if(_0x1dac3c['state']==='absent')return{'state':_0x218c91(0x74)};return{'state':_0x218c91(0xb0),'reason':_0x1dac3c[_0x218c91(0x85)]};}export function inspectInstalledBuiltinSkillVersion(_0x2e2ccc,_0x31d743={}){const _0x4a20b3=a292_0x1f5000,_0x4c3b79=installedSkillPath(_0x31d743['home']??homedir());if(_0x4c3b79[_0x4a20b3(0xab)]==='missing')return{'state':_0x4a20b3(0x74),'expectedVersion':_0x2e2ccc,'repairCommand':REPAIR_COMMAND};if(_0x4c3b79[_0x4a20b3(0xab)]===_0x4a20b3(0xb0))return{'state':_0x4a20b3(0xb0),'expectedVersion':_0x2e2ccc,'reason':_0x4c3b79['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x2ffe32=frontmatterValue(readFileSync(join(_0x4c3b79[_0x4a20b3(0x71)],_0x4a20b3(0xac)),_0x4a20b3(0x81)),'version');return{'state':_0x2ffe32===_0x2e2ccc?'current':'version_mismatch','expectedVersion':_0x2e2ccc,'skillVersion':_0x2ffe32,'installedPath':_0x4c3b79[_0x4a20b3(0x71)],'repairCommand':REPAIR_COMMAND};}catch(_0x211d73){return{'state':'unverifiable','expectedVersion':_0x2e2ccc,'installedPath':_0x4c3b79[_0x4a20b3(0x71)],'reason':_0x211d73 instanceof Error?_0x211d73[_0x4a20b3(0x9f)]:String(_0x211d73),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x31cc61={}){const _0x1e8657=a292_0x1f5000,_0x4223a3=_0x31cc61[_0x1e8657(0x78)]??DEFAULT_PACKAGE_ROOT;let _0x1e10a8;try{_0x1e10a8=readSource(_0x4223a3);}catch(_0x20829f){return{'state':'unverifiable','packageVersion':_0x1e8657(0xb3),'reason':_0x20829f instanceof Error?_0x20829f[_0x1e8657(0x9f)]:String(_0x20829f),'repairCommand':REPAIR_COMMAND};}const _0x2773ec=installedSkillPath(_0x31cc61[_0x1e8657(0xa2)]??homedir());if(_0x2773ec['state']===_0x1e8657(0x74))return{'state':'missing','packageVersion':_0x1e10a8[_0x1e8657(0x7c)],'repairCommand':REPAIR_COMMAND};if(_0x2773ec[_0x1e8657(0xab)]==='unverifiable')return{'state':'unverifiable','packageVersion':_0x1e10a8[_0x1e8657(0x7c)],'reason':_0x2773ec[_0x1e8657(0x85)],'repairCommand':REPAIR_COMMAND};try{const _0x11787e=frontmatterValue(readFileSync(join(_0x2773ec['path'],'SKILL.md'),'utf8'),'version');if(_0x11787e!==_0x1e10a8[_0x1e8657(0x8c)])return{'state':_0x1e8657(0x7b),'packageVersion':_0x1e10a8[_0x1e8657(0x7c)],'skillVersion':_0x11787e,'installedPath':_0x2773ec['path'],'repairCommand':REPAIR_COMMAND};const _0x4fd4e8=listFiles(_0x2773ec[_0x1e8657(0x71)]),_0x394968=digestFiles(_0x2773ec[_0x1e8657(0x71)],_0x4fd4e8);return{'state':sameFiles(_0x4fd4e8,_0x1e10a8[_0x1e8657(0xb4)]['files'])&&_0x394968===_0x1e10a8[_0x1e8657(0xb4)][_0x1e8657(0xa4)]?_0x1e8657(0x92):_0x1e8657(0x77),'packageVersion':_0x1e10a8['packageVersion'],'skillVersion':_0x11787e,'installedPath':_0x2773ec[_0x1e8657(0x71)],'digest':_0x394968,'repairCommand':REPAIR_COMMAND};}catch(_0x459ff5){return{'state':'unverifiable','packageVersion':_0x1e10a8[_0x1e8657(0x7c)],'installedPath':_0x2773ec[_0x1e8657(0x71)],'reason':_0x459ff5 instanceof Error?_0x459ff5['message']:String(_0x459ff5),'repairCommand':REPAIR_COMMAND};}}function failure(_0x1052fb,_0x502fa2,_0x502fca,_0x6056ac){const _0x5893a8=a292_0x1f5000;return{'ok':![],'code':_0x1052fb,'packageVersion':_0x502fa2[_0x5893a8(0x7c)],'skillVersion':_0x502fa2[_0x5893a8(0x8c)],'installedPath':_0x6056ac,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x502fca instanceof Error?_0x502fca[_0x5893a8(0x9f)]:String(_0x502fca)};}export function installBuiltinSkill(_0x269d9e={}){const _0x4748fe=a292_0x1f5000,_0x26a009=_0x269d9e[_0x4748fe(0x78)]??DEFAULT_PACKAGE_ROOT,_0x165f51=_0x269d9e[_0x4748fe(0xa2)]??homedir();let _0x457a3b;try{_0x457a3b=readSource(_0x26a009);}catch(_0x19755c){return failure(_0x4748fe(0x82),{'packageVersion':_0x4748fe(0xb3),'skillVersion':_0x4748fe(0xb3)},_0x19755c);}const _0x309d81=inspectBuiltinSkill({'packageRoot':_0x26a009,'home':_0x165f51}),_0x2ae04a=runNpxSkillsAddGlobal(_0x26a009,_0x457a3b[_0x4748fe(0x76)],{'stdio':_0x269d9e[_0x4748fe(0x83)]??_0x4748fe(0x79),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x165f51}});if(_0x2ae04a['skipped'])return{'ok':!![],'packageVersion':_0x457a3b[_0x4748fe(0x7c)],'skillVersion':_0x457a3b[_0x4748fe(0x8c)],'installedPath':_0x309d81[_0x4748fe(0x95)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x2ae04a['ok'])return failure(_0x4748fe(0x9e),_0x457a3b,_0x2ae04a[_0x4748fe(0xa1)]??_0x4748fe(0x94)+_0x2ae04a['status']);const _0x2b3c18=inspectBuiltinSkill({'packageRoot':_0x26a009,'home':_0x165f51});if(_0x2b3c18[_0x4748fe(0xab)]!=='current')return failure(_0x4748fe(0x7f),_0x457a3b,_0x2b3c18[_0x4748fe(0x85)]??'Installed\x20Skill\x20state\x20is\x20'+_0x2b3c18[_0x4748fe(0xab)],_0x2b3c18['installedPath']);return{'ok':!![],'packageVersion':_0x457a3b[_0x4748fe(0x7c)],'skillVersion':_0x457a3b[_0x4748fe(0x8c)],'installedPath':_0x2b3c18[_0x4748fe(0x95)],'changed':_0x309d81['state']!=='current','repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- (function(_0x126736,_0x224c96){const _0x31b798=a295_0x443d,_0xff049c=_0x126736();while(!![]){try{const _0x10a434=-parseInt(_0x31b798(0xad))/0x1+-parseInt(_0x31b798(0xbd))/0x2*(parseInt(_0x31b798(0xb1))/0x3)+parseInt(_0x31b798(0xb0))/0x4*(parseInt(_0x31b798(0xa7))/0x5)+-parseInt(_0x31b798(0xc6))/0x6*(-parseInt(_0x31b798(0xb5))/0x7)+-parseInt(_0x31b798(0xc5))/0x8*(-parseInt(_0x31b798(0xbb))/0x9)+-parseInt(_0x31b798(0xc3))/0xa+-parseInt(_0x31b798(0xc2))/0xb*(-parseInt(_0x31b798(0xcb))/0xc);if(_0x10a434===_0x224c96)break;else _0xff049c['push'](_0xff049c['shift']());}catch(_0x2372aa){_0xff049c['push'](_0xff049c['shift']());}}}(a295_0x53e1,0x86905));function a295_0x443d(_0x238a3b,_0x1e42b1){_0x238a3b=_0x238a3b-0xa7;const _0x53e1aa=a295_0x53e1();let _0x443df7=_0x53e1aa[_0x238a3b];return _0x443df7;}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(_0x5a279b){const _0x19e7a4=a295_0x443d,_0x19b8c0=[];for(const [_0x1b11e2,_0xb757a6]of Object[_0x19e7a4(0xb6)](_0x5a279b)){if(_0xb757a6===!![]){const _0x364ffb=_0x1b11e2[_0x19e7a4(0xb9)](/([A-Z])/g,_0x19e7a4(0xb7))['toLowerCase']();_0x19b8c0[_0x19e7a4(0xbf)](_0x364ffb);}}return _0x19b8c0;}export function parseDynamicFlags(){const _0x46bba4=a295_0x443d,_0x5bfbff=[];for(let _0x34ea1e=0x3;_0x34ea1e<process[_0x46bba4(0xb4)][_0x46bba4(0xa9)];_0x34ea1e++){const _0x3e4bb3=process['argv'][_0x34ea1e];if(_0x3e4bb3&&_0x3e4bb3[_0x46bba4(0xc0)]('--')){const _0x5eb2a2=_0x3e4bb3[_0x46bba4(0xa8)](0x2);_0x5eb2a2&&!_0x5eb2a2[_0x46bba4(0xbe)]('=')&&_0x5bfbff[_0x46bba4(0xbf)](_0x5eb2a2);}}return _0x5bfbff;}function a295_0x53e1(){const _0x8ca93a=['315354OPiDRE','Error:\x20Unsupported\x20command:\x20','\x0aAvailable\x20commands:','enable-bff-save','add','24bEnjsc','13930VlmBHE','slice','length','dangerously-bff-save','log','error','62050akhQPb','help','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','888PUJgmN','78363YVQPhj','from','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','argv','14eZZpse','entries','-$1','(empty)','replace','Public\x20Open\x20Skill\x20source:\x20','3041991hYWSxK','--help','38AJIMSV','includes','push','startsWith','setLogPath','3562427RSQAfB','5998010eiTQYz','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','8AEBKcf'];a295_0x53e1=function(){return _0x8ca93a;};return a295_0x53e1();}export function getAllProvidedFlags(_0x477eb1){const _0x1bea4b=a295_0x443d,_0x131dac=camelCaseFlagsToKebab(_0x477eb1),_0x26f30e=parseDynamicFlags(),_0x32ad89=new Set([..._0x131dac,..._0x26f30e]);return Array[_0x1bea4b(0xb2)](_0x32ad89);}export function normalizeLegacyBffSaveFlags(_0x31b26c){const _0x1ed610=a295_0x443d,_0x351be0=new Set(_0x31b26c);return _0x351be0['has'](_0x1ed610(0xaa))&&_0x351be0[_0x1ed610(0xca)](_0x1ed610(0xc9)),Array[_0x1ed610(0xb2)](_0x351be0);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x215af8,_0x347f73,_0x257b5b){const _0x89b4ae=a295_0x443d;logger[_0x89b4ae(0xc1)](process['cwd']());if(_0x257b5b?.[_0x89b4ae(0xae)]||_0x215af8===_0x89b4ae(0xbc)){showHelp();return;}console[_0x89b4ae(0xac)](_0x89b4ae(0xc7)+(_0x215af8||_0x89b4ae(0xb8))),console['log'](_0x89b4ae(0xc8)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x89b4ae(0xaf)),console[_0x89b4ae(0xab)](''),console[_0x89b4ae(0xab)](_0x89b4ae(0xba)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x89b4ae(0xac)]('skill','Unsupported\x20command:\x20'+_0x215af8),process['exit'](0x1);}function showHelp(){const _0x12eaa4=a295_0x443d;console['log'](_0x12eaa4(0xc4)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x12eaa4(0xb3));}
1
+ (function(_0x146975,_0x19404d){const _0x3a25c2=a293_0x32f3,_0x5afe43=_0x146975();while(!![]){try{const _0xe50e86=parseInt(_0x3a25c2(0x108))/0x1*(parseInt(_0x3a25c2(0xfe))/0x2)+-parseInt(_0x3a25c2(0x10a))/0x3+-parseInt(_0x3a25c2(0xe9))/0x4*(parseInt(_0x3a25c2(0x104))/0x5)+parseInt(_0x3a25c2(0x10d))/0x6+-parseInt(_0x3a25c2(0xe6))/0x7+-parseInt(_0x3a25c2(0xe8))/0x8*(-parseInt(_0x3a25c2(0xec))/0x9)+parseInt(_0x3a25c2(0xf6))/0xa*(parseInt(_0x3a25c2(0xf3))/0xb);if(_0xe50e86===_0x19404d)break;else _0x5afe43['push'](_0x5afe43['shift']());}catch(_0x71fdc0){_0x5afe43['push'](_0x5afe43['shift']());}}}(a293_0xf747,0xa6126));function a293_0x32f3(_0x42f2af,_0x5081a3){_0x42f2af=_0x42f2af-0xe6;const _0xf7473d=a293_0xf747();let _0x32f3c1=_0xf7473d[_0x42f2af];return _0x32f3c1;}import{logger}from'../utils/logger.js';function a293_0xf747(){const _0x1b0579=['dangerously-bff-save','227003aoFjpY','push','3894168AptonU','replace','\x0aAvailable\x20commands:','7152018bXZAui','4253130MhumFZ','setLogPath','6224152tXQmsz','355612LzMIRW','skill','length','9oaeimW','Error:\x20Unsupported\x20command:\x20','has','includes','startsWith','--help','help','1779173zdANWC','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','-$1','90VDvUEA','Unsupported\x20command:\x20','(empty)','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','error','from','entries','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','2RMcBUz','log','argv','toLowerCase','exit','cwd','60SbLbXE','add','enable-bff-save'];a293_0xf747=function(){return _0x1b0579;};return a293_0xf747();}import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x3f3ebe){const _0x1b344b=a293_0x32f3,_0x45c0cf=[];for(const [_0xb1b101,_0x5c2b48]of Object[_0x1b344b(0xfc)](_0x3f3ebe)){if(_0x5c2b48===!![]){const _0x177854=_0xb1b101[_0x1b344b(0x10b)](/([A-Z])/g,_0x1b344b(0xf5))[_0x1b344b(0x101)]();_0x45c0cf['push'](_0x177854);}}return _0x45c0cf;}export function parseDynamicFlags(){const _0x156e61=a293_0x32f3,_0x4ff80f=[];for(let _0x51d422=0x3;_0x51d422<process[_0x156e61(0x100)][_0x156e61(0xeb)];_0x51d422++){const _0x3286f9=process[_0x156e61(0x100)][_0x51d422];if(_0x3286f9&&_0x3286f9[_0x156e61(0xf0)]('--')){const _0x56e0a8=_0x3286f9['slice'](0x2);_0x56e0a8&&!_0x56e0a8[_0x156e61(0xef)]('=')&&_0x4ff80f[_0x156e61(0x109)](_0x56e0a8);}}return _0x4ff80f;}export function getAllProvidedFlags(_0x5a3588){const _0x34642b=a293_0x32f3,_0x2e5bb1=camelCaseFlagsToKebab(_0x5a3588),_0x12ecb6=parseDynamicFlags(),_0x33733a=new Set([..._0x2e5bb1,..._0x12ecb6]);return Array[_0x34642b(0xfb)](_0x33733a);}export function normalizeLegacyBffSaveFlags(_0x24ab5d){const _0x38d417=a293_0x32f3,_0x3d4765=new Set(_0x24ab5d);return _0x3d4765[_0x38d417(0xee)](_0x38d417(0x107))&&_0x3d4765[_0x38d417(0x105)](_0x38d417(0x106)),Array[_0x38d417(0xfb)](_0x3d4765);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x123149,_0x5c435e,_0x22bd13){const _0x564c79=a293_0x32f3;logger[_0x564c79(0xe7)](process[_0x564c79(0x103)]());if(_0x22bd13?.[_0x564c79(0xf2)]||_0x123149===_0x564c79(0xf1)){showHelp();return;}console[_0x564c79(0xfa)](_0x564c79(0xed)+(_0x123149||_0x564c79(0xf8))),console[_0x564c79(0xff)](_0x564c79(0x10c)),console[_0x564c79(0xff)]('\x20\x20'+CLI_BIN_NAME+'\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill'),console[_0x564c79(0xff)](''),console[_0x564c79(0xff)]('Public\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x564c79(0xfa)](_0x564c79(0xea),_0x564c79(0xf7)+_0x123149),process[_0x564c79(0x102)](0x1);}function showHelp(){const _0xf6a2e0=a293_0x32f3;console['log'](_0xf6a2e0(0xf4)+CLI_BIN_NAME+_0xf6a2e0(0xf9)+SKILLS_INSTALL_COMMAND_LINE+_0xf6a2e0(0xfd));}
@@ -1 +1 @@
1
- const a296_0x2a82ee=a296_0x2677;(function(_0x1028e5,_0x2179ea){const _0x131085=a296_0x2677,_0x5524c8=_0x1028e5();while(!![]){try{const _0x1b5094=-parseInt(_0x131085(0x16d))/0x1+-parseInt(_0x131085(0x19a))/0x2+-parseInt(_0x131085(0x18f))/0x3*(-parseInt(_0x131085(0x169))/0x4)+-parseInt(_0x131085(0x171))/0x5*(parseInt(_0x131085(0x179))/0x6)+-parseInt(_0x131085(0x175))/0x7+-parseInt(_0x131085(0x18b))/0x8*(parseInt(_0x131085(0x165))/0x9)+parseInt(_0x131085(0x182))/0xa;if(_0x1b5094===_0x2179ea)break;else _0x5524c8['push'](_0x5524c8['shift']());}catch(_0x481f6b){_0x5524c8['push'](_0x5524c8['shift']());}}}(a296_0x109b,0xc42fe));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';function a296_0x2677(_0x3821fc,_0x212889){_0x3821fc=_0x3821fc-0x161;const _0x109bae=a296_0x109b();let _0x267789=_0x109bae[_0x3821fc];return _0x267789;}export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a296_0x2a82ee(0x193);export const NPX_SKILLS_SUBCOMMAND_ADD=a296_0x2a82ee(0x17f);export const NPX_SKILLS_FLAG_SKILL=a296_0x2a82ee(0x17e);export const RABETBASE_SKILL_SOURCE=a296_0x2a82ee(0x197);export const LEGACY_RABETBASE_SKILL_SOURCE=a296_0x2a82ee(0x194);export const DEFAULT_RABETBASE_SKILL_NAME=a296_0x2a82ee(0x199);export const RABETBASE_GLOBAL_SKILL_NAME=a296_0x2a82ee(0x196);export const RABETBASE_SKILL_GIT_SOURCE=a296_0x2a82ee(0x187);export function resolveGlobalSkillName(_0x1116ad){switch(_0x1116ad['trim']()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x5af4c1){const _0x5078da=a296_0x2a82ee,_0x1317ba=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x5af4c1&&_0x1317ba[_0x5078da(0x166)](NPX_SKILLS_FLAG_SKILL,_0x5af4c1),_0x1317ba;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a296_0x2a82ee(0x17b),...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a296_0x2a82ee(0x17b),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a296_0x2a82ee(0x17a)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function a296_0x109b(){const _0x32d0cb=['exit\x20','36PYqmqO','push','trim','Skill\x20\x22','2375356dFJANn','error','match','npm_config_global','383902efHoyW','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','present','inherit','5IpeGXa','message','skill','NPX_NOT_FOUND','4577076zYXUOz','yes','log','reason','1697214SDjrOv','join','npx','stderr','status','--skill','add','INSTALL_PARTIAL','signal','38004080dXDheB','CHILD_EXIT_NONZERO','unverifiable','checked','stdout','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','warn','filter','EACCES','2542472OplqdM','pipe','code','PERMISSION_DENIED','3fwYRdl','NPM_CONFIG_GLOBAL','state','presence','skills@latest','lovrabet/lovrabet-skill','Installer\x20reported\x20','rabetbase','lovrabet/rabetbase','npx\x20terminated\x20by\x20signal\x20','Lovrabet','1997580meOXOG','toString','\x22\x20install\x20state:\x20','stdio'];a296_0x109b=function(){return _0x32d0cb;};return a296_0x109b();}function failure(_0x2fd757,_0xff2e58,_0x2ffdec){return{'ok':![],'status':_0xff2e58,'code':_0x2fd757,'error':'['+_0x2fd757+']\x20'+_0x2ffdec};}function spawnOptions(_0x2d0d46,_0x3b8d46){const _0x1fcdca=a296_0x2a82ee,_0x2ffff7={...process.env};return delete _0x2ffff7[_0x1fcdca(0x16c)],delete _0x2ffff7[_0x1fcdca(0x190)],{'cwd':_0x2d0d46,'stdio':_0x3b8d46,'env':_0x2ffff7,'shell':![],..._0x3b8d46===_0x1fcdca(0x18c)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x44ea32,_0x11e0db,_0xb6298b,_0x4ec22c){const _0x2ecb80=a296_0x2a82ee,_0xb0308a=[_0x44ea32[_0x2ecb80(0x186)]?_0x44ea32[_0x2ecb80(0x186)][_0x2ecb80(0x161)]():'',_0x44ea32[_0x2ecb80(0x17c)]?_0x44ea32[_0x2ecb80(0x17c)]['toString']():''][_0x2ecb80(0x189)](Boolean)[_0x2ecb80(0x17a)]('\x0a')[_0x2ecb80(0x167)]();_0x4ec22c!==_0x2ecb80(0x18c)&&_0xb0308a&&console['log'](_0xb0308a);if(_0x44ea32['error']){const _0x1d4528=_0x44ea32[_0x2ecb80(0x16a)],_0x437c0f=_0x1d4528[_0x2ecb80(0x18d)]==='ENOENT'?_0x2ecb80(0x174):_0x1d4528['code']==='EPERM'||_0x1d4528[_0x2ecb80(0x18d)]===_0x2ecb80(0x18a)?_0x2ecb80(0x18e):'SPAWN_FAILED';return failure(_0x437c0f,_0x44ea32[_0x2ecb80(0x17d)],_0x1d4528[_0x2ecb80(0x172)]);}if(_0x44ea32[_0x2ecb80(0x181)])return failure('CHILD_TERMINATED',_0x44ea32[_0x2ecb80(0x17d)],_0x2ecb80(0x198)+_0x44ea32[_0x2ecb80(0x181)]);if(_0x44ea32[_0x2ecb80(0x17d)]!==0x0)return failure(_0x2ecb80(0x183),_0x44ea32['status'],_0xb0308a||_0x2ecb80(0x164)+(_0x44ea32[_0x2ecb80(0x17d)]??'unknown'));const _0x4d52c5=_0x11e0db?resolveInstalledSkill(_0x11e0db,_0xb6298b):undefined,_0x2b09f6=_0xb0308a[_0x2ecb80(0x16b)](/Failed to install\s+(\d+)/i);if(_0x2b09f6&&Number(_0x2b09f6[0x1])>0x0){const _0x156a09=_0x2ecb80(0x195)+_0x2b09f6[0x1]+'\x20failed\x20target(s)'+(_0xb0308a?':\x0a'+_0xb0308a:'');if(_0x4d52c5?.[_0x2ecb80(0x191)]===_0x2ecb80(0x16f))return console['warn']('!\x20'+_0x156a09),{'ok':!![],'status':0x0};return failure(_0x2ecb80(0x180),0x0,_0x156a09);}if(_0x4d52c5){if(_0x4d52c5['state']==='absent')return failure('SKILL_NOT_INSTALLED',0x0,_0x2ecb80(0x168)+_0x11e0db+_0x2ecb80(0x16e)+_0x4d52c5[_0x2ecb80(0x185)][_0x2ecb80(0x17a)](',\x20')+')');_0x4d52c5[_0x2ecb80(0x191)]===_0x2ecb80(0x184)&&console[_0x2ecb80(0x188)]('!\x20Could\x20not\x20verify\x20\x22'+_0x11e0db+_0x2ecb80(0x162)+_0x4d52c5[_0x2ecb80(0x178)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x30a02f,_0x3f091f){const _0x18b1fd=a296_0x2a82ee;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2e6bb9=_0x3f091f?.['stdio']??_0x18b1fd(0x170),_0x5210a6=resolveNpmBin(_0x18b1fd(0x17b)),_0x2cc8b9=buildNpxSkillsAddArgv(_0x3f091f?.['skill']),_0xa138dc=['npx',..._0x2cc8b9]['join']('\x20');console['log']('*\x20'+_0xa138dc);const _0x2fbbfe=spawnSync(_0x5210a6,_0x2cc8b9,spawnOptions(_0x30a02f,_0x2e6bb9));return normalizeSpawnResult(_0x2fbbfe,undefined,undefined,_0x2e6bb9);}export function runNpxSkillsRemove(_0x5bd7cf,_0x544363,_0x2e2e03=LEGACY_RABETBASE_SKILL_SOURCE){const _0x418d06=a296_0x2a82ee;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1990d0=_0x544363?.[_0x418d06(0x163)]??_0x418d06(0x170),_0x39e266=resolveNpmBin(_0x418d06(0x17b)),_0x52f6c6=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x2e2e03,NPX_SKILLS_FLAG_SKILL,_0x544363?.[_0x418d06(0x173)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x544363?.[_0x418d06(0x176)]?['-y']:[]],_0x4d3094=[_0x39e266,..._0x52f6c6][_0x418d06(0x17a)]('\x20');console[_0x418d06(0x177)]('*\x20'+_0x4d3094);const _0x1d2503=spawnSync(_0x39e266,_0x52f6c6,spawnOptions(_0x5bd7cf,_0x1990d0));return normalizeSpawnResult(_0x1d2503,undefined,undefined,_0x1990d0);}export function runNpxSkillsAddGlobal(_0x11f43d,_0xbb473d,_0x52c72c){const _0x1b78c9=a296_0x2a82ee;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x26ee26=resolveNpmBin('npx'),_0x3d1a9=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xbb473d,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x4c06ac=[_0x1b78c9(0x17b),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xbb473d,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x1b78c9(0x17a)]('\x20');console[_0x1b78c9(0x177)]('*\x20'+_0x4c06ac);const _0x44c991=spawnSync(_0x26ee26,_0x3d1a9,spawnOptions(_0x11f43d,'pipe'));return normalizeSpawnResult(_0x44c991,_0x52c72c?.['expectedSkillName']??resolveGlobalSkillName(_0xbb473d),_0x52c72c?.[_0x1b78c9(0x192)],_0x52c72c?.['stdio']);}
1
+ const a294_0x4f78a9=a294_0xf459;(function(_0x2eda88,_0x1086d2){const _0x52bad9=a294_0xf459,_0x4a0ae2=_0x2eda88();while(!![]){try{const _0x24c70d=-parseInt(_0x52bad9(0x207))/0x1*(-parseInt(_0x52bad9(0x209))/0x2)+-parseInt(_0x52bad9(0x1f3))/0x3+-parseInt(_0x52bad9(0x213))/0x4+-parseInt(_0x52bad9(0x217))/0x5+-parseInt(_0x52bad9(0x1f5))/0x6*(parseInt(_0x52bad9(0x1e7))/0x7)+-parseInt(_0x52bad9(0x203))/0x8*(-parseInt(_0x52bad9(0x202))/0x9)+parseInt(_0x52bad9(0x200))/0xa*(parseInt(_0x52bad9(0x1fa))/0xb);if(_0x24c70d===_0x1086d2)break;else _0x4a0ae2['push'](_0x4a0ae2['shift']());}catch(_0x36369c){_0x4a0ae2['push'](_0x4a0ae2['shift']());}}}(a294_0x56d4,0xc1ea4));import{execaSync}from'execa';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='skills@latest';function a294_0x56d4(){const _0x34ee32=['CHILD_TERMINATED','absent','message','23rqFJCe','shortMessage','26026yGApNV','join','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','Skill\x20\x22','SPAWN_FAILED','remove','stderr','presence','code','exit\x20','4923388SLnDoA','npx\x20failed\x20to\x20start','match','trim','4912200BGxnlE','SKILL_NOT_INSTALLED','--skill','stdout','lovrabet/rabetbase','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','Installer\x20reported\x20','exitCode','inherit','Lovrabet','skill','signal','present','unknown','stdio','1024177fLaSVC','failed','expectedSkillName','EPERM','EACCES','npx\x20terminated\x20by\x20signal\x20','warn','ENOENT','filter','rabetbase','log','NPM_CONFIG_GLOBAL','4074750QjPGEw','npx','6RoGHrN','add','pipe','CHILD_EXIT_NONZERO','!\x20Could\x20not\x20verify\x20\x22','20207ZyqaXK','checked','\x22\x20install\x20state:\x20','npm_config_global','state','lovrabet/lovrabet-skill','17200rtVPUi','INSTALL_PARTIAL','9hTJIBT','8425480dDXYGU'];a294_0x56d4=function(){return _0x34ee32;};return a294_0x56d4();}export const NPX_SKILLS_SUBCOMMAND_ADD=a294_0x4f78a9(0x1f6);export const NPX_SKILLS_FLAG_SKILL=a294_0x4f78a9(0x219);export const RABETBASE_SKILL_SOURCE=a294_0x4f78a9(0x21b);export const LEGACY_RABETBASE_SKILL_SOURCE=a294_0x4f78a9(0x1ff);export const DEFAULT_RABETBASE_SKILL_NAME=a294_0x4f78a9(0x1e1);export const RABETBASE_GLOBAL_SKILL_NAME=a294_0x4f78a9(0x1f0);export const RABETBASE_SKILL_GIT_SOURCE=a294_0x4f78a9(0x20b);export function resolveGlobalSkillName(_0x1f58d9){switch(_0x1f58d9['trim']()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x106058){const _0x7ccc46=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x106058&&_0x7ccc46['push'](NPX_SKILLS_FLAG_SKILL,_0x106058),_0x7ccc46;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a294_0x4f78a9(0x1f4),...buildNpxSkillsAddArgv()][a294_0x4f78a9(0x20a)]('\x20');function a294_0xf459(_0x38b7f8,_0xf00141){_0x38b7f8=_0x38b7f8-0x1de;const _0x56d40f=a294_0x56d4();let _0xf45911=_0x56d40f[_0x38b7f8];return _0xf45911;}export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a294_0x4f78a9(0x1f4),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a294_0x4f78a9(0x20a)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x36b7d1,_0x567ea9,_0x29a239){return{'ok':![],'status':_0x567ea9,'code':_0x36b7d1,'error':'['+_0x36b7d1+']\x20'+_0x29a239};}function execaOptions(_0x4e3186,_0x4ecc50){const _0x48e427=a294_0x4f78a9,_0x432d22={...process.env};return delete _0x432d22[_0x48e427(0x1fd)],delete _0x432d22[_0x48e427(0x1f2)],{'cwd':_0x4e3186,'stdio':_0x4ecc50,'env':_0x432d22,'extendEnv':![],'shell':![],'reject':![],..._0x4ecc50==='pipe'?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0x1a18cc,_0x2d46b0,_0x248c79,_0x1d2b27){const _0x182f07=a294_0x4f78a9,_0x466782=[_0x1a18cc['stdout']?String(_0x1a18cc[_0x182f07(0x21a)]):'',_0x1a18cc[_0x182f07(0x20f)]?String(_0x1a18cc[_0x182f07(0x20f)]):''][_0x182f07(0x1ef)](Boolean)[_0x182f07(0x20a)]('\x0a')[_0x182f07(0x216)](),_0x2aae6b=_0x1a18cc[_0x182f07(0x1df)]??null;_0x1d2b27!==_0x182f07(0x1f7)&&_0x466782&&console[_0x182f07(0x1f1)](_0x466782);if(_0x1a18cc[_0x182f07(0x211)]){const _0x7ad08f=_0x1a18cc[_0x182f07(0x211)]===_0x182f07(0x1ee)?'NPX_NOT_FOUND':_0x1a18cc[_0x182f07(0x211)]===_0x182f07(0x1ea)||_0x1a18cc[_0x182f07(0x211)]===_0x182f07(0x1eb)?'PERMISSION_DENIED':_0x182f07(0x20d);return failure(_0x7ad08f,_0x2aae6b,_0x1a18cc[_0x182f07(0x208)]??_0x1a18cc[_0x182f07(0x206)]??_0x1a18cc[_0x182f07(0x211)]);}if(_0x1a18cc[_0x182f07(0x1e3)])return failure(_0x182f07(0x204),_0x2aae6b,_0x182f07(0x1ec)+_0x1a18cc[_0x182f07(0x1e3)]);if(_0x1a18cc[_0x182f07(0x1e8)]&&_0x2aae6b===null)return failure(_0x182f07(0x20d),_0x2aae6b,_0x1a18cc[_0x182f07(0x208)]??_0x1a18cc[_0x182f07(0x206)]??_0x182f07(0x214));if(_0x2aae6b!==0x0)return failure(_0x182f07(0x1f8),_0x2aae6b,_0x466782||_0x1a18cc[_0x182f07(0x208)]||_0x182f07(0x212)+(_0x2aae6b??_0x182f07(0x1e5)));const _0x6182cd=_0x2d46b0?resolveInstalledSkill(_0x2d46b0,_0x248c79):undefined,_0x4c10fe=_0x466782[_0x182f07(0x215)](/Failed to install\s+(\d+)/i);if(_0x4c10fe&&Number(_0x4c10fe[0x1])>0x0){const _0x190260=_0x182f07(0x1de)+_0x4c10fe[0x1]+'\x20failed\x20target(s)'+(_0x466782?':\x0a'+_0x466782:'');if(_0x6182cd?.[_0x182f07(0x1fe)]===_0x182f07(0x1e4))return console[_0x182f07(0x1ed)]('!\x20'+_0x190260),{'ok':!![],'status':0x0};return failure(_0x182f07(0x201),0x0,_0x190260);}if(_0x6182cd){if(_0x6182cd['state']===_0x182f07(0x205))return failure(_0x182f07(0x218),0x0,_0x182f07(0x20c)+_0x2d46b0+_0x182f07(0x21c)+_0x6182cd[_0x182f07(0x1fb)][_0x182f07(0x20a)](',\x20')+')');_0x6182cd['state']==='unverifiable'&&console[_0x182f07(0x1ed)](_0x182f07(0x1f9)+_0x2d46b0+_0x182f07(0x1fc)+_0x6182cd['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2c3a10,_0x2fd7d2){const _0x5056a3=a294_0x4f78a9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x193089=_0x2fd7d2?.[_0x5056a3(0x1e6)]??_0x5056a3(0x1e0),_0x430c0b=buildNpxSkillsAddArgv(_0x2fd7d2?.[_0x5056a3(0x1e2)]),_0xe09569=[_0x5056a3(0x1f4),..._0x430c0b][_0x5056a3(0x20a)]('\x20');console[_0x5056a3(0x1f1)]('*\x20'+_0xe09569);const _0x5e4978=execaSync(_0x5056a3(0x1f4),_0x430c0b,execaOptions(_0x2c3a10,_0x193089));return normalizeExecaResult(_0x5e4978,undefined,undefined,_0x193089);}export function runNpxSkillsRemove(_0x2570b5,_0x2d9df9,_0x4aa5f2=LEGACY_RABETBASE_SKILL_SOURCE){const _0xfe182f=a294_0x4f78a9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3cb802=_0x2d9df9?.[_0xfe182f(0x1e6)]??_0xfe182f(0x1e0),_0x292537=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0xfe182f(0x20e),_0x4aa5f2,NPX_SKILLS_FLAG_SKILL,_0x2d9df9?.[_0xfe182f(0x1e2)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x2d9df9?.['yes']?['-y']:[]],_0x531c5f=['npx',..._0x292537][_0xfe182f(0x20a)]('\x20');console[_0xfe182f(0x1f1)]('*\x20'+_0x531c5f);const _0x4b9245=execaSync('npx',_0x292537,execaOptions(_0x2570b5,_0x3cb802));return normalizeExecaResult(_0x4b9245,undefined,undefined,_0x3cb802);}export function runNpxSkillsAddGlobal(_0x26df25,_0x23a18c,_0x23499f){const _0x58007f=a294_0x4f78a9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x2b4af2=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x23a18c,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x432f66=[_0x58007f(0x1f4),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x23a18c,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x58007f(0x20a)]('\x20');console[_0x58007f(0x1f1)]('*\x20'+_0x432f66);const _0x3d3c0c=execaSync(_0x58007f(0x1f4),_0x2b4af2,execaOptions(_0x26df25,_0x58007f(0x1f7)));return normalizeExecaResult(_0x3d3c0c,_0x23499f?.[_0x58007f(0x1e9)]??resolveGlobalSkillName(_0x23a18c),_0x23499f?.[_0x58007f(0x210)],_0x23499f?.[_0x58007f(0x1e6)]);}
@@ -1 +1 @@
1
- function a297_0x2546(){const _0x2eda01=['find','\x20uses\x20unsupported\x20version\x20','5IgmEha','895717BQVfLr','3HzhFrZ','object','map','lockFile','8740700kFSnFL','message','9ELQAZp','join','parse','\x20has\x20no\x20skills\x20map','absent','2714778edOiRL','kind','globalSkillsDirs','not-recorded','includes','42qfTNCD','18901392nAzPaH','.agents','.skill-lock.json','recorded','\x20records\x20\x22','1194683wlEkfs','version','home','11tThmEx','SKILL.md','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','unusable','skills','unverifiable','1017280vvbyKm','284304JEEwrP'];a297_0x2546=function(){return _0x2eda01;};return a297_0x2546();}const a297_0x483936=a297_0x2649;(function(_0x18ab53,_0x4b0009){const _0x44342e=a297_0x2649,_0x261ba6=_0x18ab53();while(!![]){try{const _0x2760aa=-parseInt(_0x44342e(0x14f))/0x1+parseInt(_0x44342e(0x15b))/0x2*(parseInt(_0x44342e(0x150))/0x3)+-parseInt(_0x44342e(0x170))/0x4*(parseInt(_0x44342e(0x173))/0x5)+-parseInt(_0x44342e(0x160))/0x6*(-parseInt(_0x44342e(0x166))/0x7)+-parseInt(_0x44342e(0x16f))/0x8+-parseInt(_0x44342e(0x156))/0x9*(-parseInt(_0x44342e(0x154))/0xa)+parseInt(_0x44342e(0x169))/0xb*(-parseInt(_0x44342e(0x161))/0xc);if(_0x2760aa===_0x4b0009)break;else _0x261ba6['push'](_0x261ba6['shift']());}catch(_0x108b11){_0x261ba6['push'](_0x261ba6['shift']());}}}(a297_0x2546,0xb8d51));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a297_0x483936(0x162),a297_0x483936(0x163));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents','skills'),join('.claude',a297_0x483936(0x16d))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x2fa501,_0x11f14e){const _0x3607a6=a297_0x483936;if(!existsSync(_0x2fa501))return{'kind':_0x3607a6(0x15e)};let _0x2b010b;try{_0x2b010b=JSON[_0x3607a6(0x158)](readFileSync(_0x2fa501,'utf8'));}catch(_0x33bc63){return{'kind':_0x3607a6(0x16c),'reason':_0x2fa501+'\x20is\x20unreadable:\x20'+_0x33bc63[_0x3607a6(0x155)]};}const _0x5f47c0=_0x2b010b;if(typeof _0x5f47c0?.[_0x3607a6(0x167)]!=='number'||!SUPPORTED_LOCK_VERSIONS[_0x3607a6(0x15f)](_0x5f47c0[_0x3607a6(0x167)]))return{'kind':_0x3607a6(0x16c),'reason':_0x2fa501+_0x3607a6(0x172)+String(_0x5f47c0?.[_0x3607a6(0x167)])};if(!_0x5f47c0[_0x3607a6(0x16d)]||typeof _0x5f47c0[_0x3607a6(0x16d)]!==_0x3607a6(0x151))return{'kind':_0x3607a6(0x16c),'reason':_0x2fa501+_0x3607a6(0x159)};return _0x5f47c0['skills'][_0x11f14e]?{'kind':'recorded'}:{'kind':_0x3607a6(0x15e)};}function a297_0x2649(_0x29057a,_0x89851a){_0x29057a=_0x29057a-0x14f;const _0x254626=a297_0x2546();let _0x26492c=_0x254626[_0x29057a];return _0x26492c;}export function resolveInstalledSkill(_0x4cda06,_0x2f21d1){const _0x52d6d7=a297_0x483936,_0x5da885=_0x2f21d1?.[_0x52d6d7(0x168)]??homedir(),_0x10ca9a=_0x2f21d1?.[_0x52d6d7(0x15d)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x52d6d7(0x152)](_0x5cfa5f=>join(_0x5da885,_0x5cfa5f)),_0x491c15=_0x2f21d1?.[_0x52d6d7(0x153)]??join(_0x5da885,SKILL_LOCK_RELATIVE_PATH),_0x50042b=_0x10ca9a[_0x52d6d7(0x152)](_0x1afc88=>join(_0x1afc88,_0x4cda06,_0x52d6d7(0x16a))),_0xededb6=_0x50042b[_0x52d6d7(0x171)](_0x105375=>existsSync(_0x105375));if(_0xededb6)return{'state':'present','path':_0xededb6};const _0x26140e=readLockLookup(_0x491c15,_0x4cda06);if(_0x26140e[_0x52d6d7(0x15c)]===_0x52d6d7(0x16c))return{'state':_0x52d6d7(0x16e),'reason':_0x26140e['reason']};if(_0x26140e[_0x52d6d7(0x15c)]===_0x52d6d7(0x164))return{'state':_0x52d6d7(0x16e),'reason':_0x491c15+_0x52d6d7(0x165)+_0x4cda06+_0x52d6d7(0x16b)+('('+_0x50042b[_0x52d6d7(0x157)](',\x20')+')')};return{'state':_0x52d6d7(0x15a),'checked':_0x50042b};}
1
+ const a295_0x3f03fa=a295_0x3c53;function a295_0x6dac(){const _0x205140=['present','27714EdzLDj','version','SKILL.md','includes','.agents','recorded','absent','message','104527GqOmRP','object','not-recorded','20JYIxie','kind','.claude','966462ZCHvUR','find','map','home','skills','\x20uses\x20unsupported\x20version\x20','853101thaKNQ','\x20is\x20unreadable:\x20','4499240oxPcLA','parse','.skill-lock.json','24cOxtFt','unverifiable','utf8','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','unusable','8XsxSrg','6988201MVZEZM','406ITZgoM','number','766092aJRdYM'];a295_0x6dac=function(){return _0x205140;};return a295_0x6dac();}(function(_0xfe340b,_0x5d2663){const _0x502873=a295_0x3c53,_0x7ff002=_0xfe340b();while(!![]){try{const _0x48c9db=parseInt(_0x502873(0x1e0))/0x1+-parseInt(_0x502873(0x1d6))/0x2+parseInt(_0x502873(0x1e6))/0x3*(-parseInt(_0x502873(0x1d2))/0x4)+parseInt(_0x502873(0x1ee))/0x5+parseInt(_0x502873(0x1d8))/0x6*(-parseInt(_0x502873(0x1d4))/0x7)+-parseInt(_0x502873(0x1cd))/0x8*(parseInt(_0x502873(0x1ec))/0x9)+parseInt(_0x502873(0x1e3))/0xa*(parseInt(_0x502873(0x1d3))/0xb);if(_0x48c9db===_0x5d2663)break;else _0x7ff002['push'](_0x7ff002['shift']());}catch(_0x3c2e4e){_0x7ff002['push'](_0x7ff002['shift']());}}}(a295_0x6dac,0xa9c26));function a295_0x3c53(_0x301b53,_0x95088a){_0x301b53=_0x301b53-0x1cc;const _0x6dac84=a295_0x6dac();let _0x3c537d=_0x6dac84[_0x301b53];return _0x3c537d;}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a295_0x3f03fa(0x1dc),a295_0x3f03fa(0x1cc));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a295_0x3f03fa(0x1dc),a295_0x3f03fa(0x1ea)),join(a295_0x3f03fa(0x1e5),'skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x456693,_0x29abaf){const _0x46c698=a295_0x3f03fa;if(!existsSync(_0x456693))return{'kind':_0x46c698(0x1e2)};let _0x12ea4c;try{_0x12ea4c=JSON[_0x46c698(0x1ef)](readFileSync(_0x456693,_0x46c698(0x1cf)));}catch(_0x59c110){return{'kind':_0x46c698(0x1d1),'reason':_0x456693+_0x46c698(0x1ed)+_0x59c110[_0x46c698(0x1df)]};}const _0x269fa6=_0x12ea4c;if(typeof _0x269fa6?.[_0x46c698(0x1d9)]!==_0x46c698(0x1d5)||!SUPPORTED_LOCK_VERSIONS[_0x46c698(0x1db)](_0x269fa6[_0x46c698(0x1d9)]))return{'kind':_0x46c698(0x1d1),'reason':_0x456693+_0x46c698(0x1eb)+String(_0x269fa6?.[_0x46c698(0x1d9)])};if(!_0x269fa6['skills']||typeof _0x269fa6[_0x46c698(0x1ea)]!==_0x46c698(0x1e1))return{'kind':_0x46c698(0x1d1),'reason':_0x456693+'\x20has\x20no\x20skills\x20map'};return _0x269fa6[_0x46c698(0x1ea)][_0x29abaf]?{'kind':'recorded'}:{'kind':'not-recorded'};}export function resolveInstalledSkill(_0x15eab5,_0x4e689e){const _0x5d0685=a295_0x3f03fa,_0x4f6ebd=_0x4e689e?.[_0x5d0685(0x1e9)]??homedir(),_0x52d534=_0x4e689e?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x5d0685(0x1e8)](_0x17af0e=>join(_0x4f6ebd,_0x17af0e)),_0x3a4e3c=_0x4e689e?.['lockFile']??join(_0x4f6ebd,SKILL_LOCK_RELATIVE_PATH),_0xa5abf3=_0x52d534[_0x5d0685(0x1e8)](_0x2d4dd2=>join(_0x2d4dd2,_0x15eab5,_0x5d0685(0x1da))),_0x6704=_0xa5abf3[_0x5d0685(0x1e7)](_0x15a33f=>existsSync(_0x15a33f));if(_0x6704)return{'state':_0x5d0685(0x1d7),'path':_0x6704};const _0xc30c87=readLockLookup(_0x3a4e3c,_0x15eab5);if(_0xc30c87[_0x5d0685(0x1e4)]==='unusable')return{'state':_0x5d0685(0x1ce),'reason':_0xc30c87['reason']};if(_0xc30c87[_0x5d0685(0x1e4)]===_0x5d0685(0x1dd))return{'state':_0x5d0685(0x1ce),'reason':_0x3a4e3c+'\x20records\x20\x22'+_0x15eab5+_0x5d0685(0x1d0)+('('+_0xa5abf3['join'](',\x20')+')')};return{'state':_0x5d0685(0x1de),'checked':_0xa5abf3};}
@@ -1 +1 @@
1
- function a298_0x2e2d(){const _0x5e5873=['message','1190522fASsXe','6072498tOvrmj','error','[REDACTED]','entries','93335PsNUgH','flags','command','test','39258430MUogZL','6pwZCUT','188DGOexd','4606539WsBeEn','9FRCHwt','service','rabetbase.command','durationMs','10614552ODWJMu','1850325gtjviE'];a298_0x2e2d=function(){return _0x5e5873;};return a298_0x2e2d();}(function(_0x39d906,_0xc34b42){const _0x51017e=a298_0x1b47,_0x22e714=_0x39d906();while(!![]){try{const _0x3b465b=parseInt(_0x51017e(0x10e))/0x1+parseInt(_0x51017e(0x110))/0x2*(parseInt(_0x51017e(0x106))/0x3)+-parseInt(_0x51017e(0x107))/0x4*(-parseInt(_0x51017e(0x115))/0x5)+-parseInt(_0x51017e(0x111))/0x6+parseInt(_0x51017e(0x108))/0x7+parseInt(_0x51017e(0x10d))/0x8+-parseInt(_0x51017e(0x109))/0x9*(parseInt(_0x51017e(0x105))/0xa);if(_0x3b465b===_0xc34b42)break;else _0x22e714['push'](_0x22e714['shift']());}catch(_0x46c0bd){_0x22e714['push'](_0x22e714['shift']());}}}(a298_0x2e2d,0xeba2e));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a298_0x1b47(_0x51edea,_0x59fc16){_0x51edea=_0x51edea-0x102;const _0x2e2d33=a298_0x2e2d();let _0x1b472e=_0x2e2d33[_0x51edea];return _0x1b472e;}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(_0x147991){const _0x58190d=a298_0x1b47;return SENSITIVE_PATTERNS['some'](_0x2c4609=>_0x2c4609[_0x58190d(0x104)](_0x147991));}function sanitizeFlags(_0xe049ac){const _0x3a6d7e=a298_0x1b47,_0x1b95cb={};for(const [_0x4895f3,_0x2f82d6]of Object[_0x3a6d7e(0x114)](_0xe049ac)){isSensitiveKey(_0x4895f3)?_0x1b95cb[_0x4895f3]=_0x2f82d6!=null&&_0x2f82d6!==''?_0x3a6d7e(0x113):_0x2f82d6:_0x1b95cb[_0x4895f3]=_0x2f82d6;}return _0x1b95cb;}export async function reportCommandTrace(_0x50f9f3){const _0x225c0d=a298_0x1b47;try{const _0x3396e6=sanitizeFlags(_0x50f9f3[_0x225c0d(0x102)]);await sendCliTraceLog({'spanName':_0x225c0d(0x10b),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x50f9f3[_0x225c0d(0x10a)],'command.name':_0x50f9f3[_0x225c0d(0x103)],'command.flags':JSON['stringify'](_0x3396e6),..._0x50f9f3['durationMs']!=null?{'command.duration_ms':_0x50f9f3[_0x225c0d(0x10c)]}:{},..._0x50f9f3[_0x225c0d(0x112)]?{'command.error':_0x50f9f3[_0x225c0d(0x112)]instanceof Error?_0x50f9f3['error'][_0x225c0d(0x10f)]:String(_0x50f9f3[_0x225c0d(0x112)])}:{}}});}catch{}}
1
+ (function(_0x9c899b,_0x15527a){const _0x36ae9f=a296_0x1979,_0x417e65=_0x9c899b();while(!![]){try{const _0x46f4c7=parseInt(_0x36ae9f(0x176))/0x1+-parseInt(_0x36ae9f(0x181))/0x2+parseInt(_0x36ae9f(0x178))/0x3*(-parseInt(_0x36ae9f(0x179))/0x4)+parseInt(_0x36ae9f(0x17b))/0x5+parseInt(_0x36ae9f(0x173))/0x6+-parseInt(_0x36ae9f(0x180))/0x7+-parseInt(_0x36ae9f(0x172))/0x8*(-parseInt(_0x36ae9f(0x175))/0x9);if(_0x46f4c7===_0x15527a)break;else _0x417e65['push'](_0x417e65['shift']());}catch(_0x370a43){_0x417e65['push'](_0x417e65['shift']());}}}(a296_0x45f9,0xec8bc));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a296_0x1979(_0x39726a,_0x4f5d14){_0x39726a=_0x39726a-0x171;const _0x45f972=a296_0x45f9();let _0x19790b=_0x45f972[_0x39726a];return _0x19790b;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0xd8ac34){const _0x18f4d6=a296_0x1979;return SENSITIVE_PATTERNS[_0x18f4d6(0x17e)](_0x355430=>_0x355430[_0x18f4d6(0x177)](_0xd8ac34));}function sanitizeFlags(_0x6a38d3){const _0xe0a1a5={};for(const [_0x15da89,_0x288cbc]of Object['entries'](_0x6a38d3)){isSensitiveKey(_0x15da89)?_0xe0a1a5[_0x15da89]=_0x288cbc!=null&&_0x288cbc!==''?'[REDACTED]':_0x288cbc:_0xe0a1a5[_0x15da89]=_0x288cbc;}return _0xe0a1a5;}function a296_0x45f9(){const _0x83f3e6=['some','stringify','2889208pgABDo','3654022dNRiaR','service','2416968pFAvoZ','9203100SUpFgY','durationMs','99bMJxof','244618uSbJvz','test','57qJjcgG','401504Konxot','flags','69960AXxOuY','command','error'];a296_0x45f9=function(){return _0x83f3e6;};return a296_0x45f9();}export async function reportCommandTrace(_0x3e41a0){const _0x2c54ee=a296_0x1979;try{const _0x4dabe4=sanitizeFlags(_0x3e41a0[_0x2c54ee(0x17a)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x3e41a0[_0x2c54ee(0x171)],'command.name':_0x3e41a0[_0x2c54ee(0x17c)],'command.flags':JSON[_0x2c54ee(0x17f)](_0x4dabe4),..._0x3e41a0[_0x2c54ee(0x174)]!=null?{'command.duration_ms':_0x3e41a0['durationMs']}:{},..._0x3e41a0[_0x2c54ee(0x17d)]?{'command.error':_0x3e41a0[_0x2c54ee(0x17d)]instanceof Error?_0x3e41a0[_0x2c54ee(0x17d)]['message']:String(_0x3e41a0[_0x2c54ee(0x17d)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a299_0x5869(_0x7b3628,_0x44515f){_0x7b3628=_0x7b3628-0xd2;var _0x14a4d5=a299_0x14a4();var _0x586926=_0x14a4d5[_0x7b3628];return _0x586926;}(function(_0x92ce85,_0x3dd998){var _0xa70a97=a299_0x5869,_0x13a0f5=_0x92ce85();while(!![]){try{var _0x502611=parseInt(_0xa70a97(0xdd))/0x1*(parseInt(_0xa70a97(0xd9))/0x2)+-parseInt(_0xa70a97(0xd2))/0x3+parseInt(_0xa70a97(0xd8))/0x4*(-parseInt(_0xa70a97(0xde))/0x5)+parseInt(_0xa70a97(0xdc))/0x6+parseInt(_0xa70a97(0xda))/0x7+-parseInt(_0xa70a97(0xd3))/0x8*(-parseInt(_0xa70a97(0xd5))/0x9)+parseInt(_0xa70a97(0xdb))/0xa*(-parseInt(_0xa70a97(0xd4))/0xb);if(_0x502611===_0x3dd998)break;else _0x13a0f5['push'](_0x13a0f5['shift']());}catch(_0x828167){_0x13a0f5['push'](_0x13a0f5['shift']());}}}(a299_0x14a4,0x76770));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a299_0x14a4(){var _0xbcb3d6=['16TYtcEX','212883sSbjNY','163071EtdqMr','Failed\x20to\x20report\x20CLI\x20help\x20trace:','error','8HCjqCi','275114eOFBQY','3886407QbEFIt','470xjcKwk','3586620PaQUOy','6ugHtLb','881390mUgcrj','service','801516PNQlRJ'];a299_0x14a4=function(){return _0xbcb3d6;};return a299_0x14a4();}export async function reportCliHelpTrace(_0x304193,_0x4171a1){var _0x573a2e=a299_0x5869;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x304193,..._0x4171a1?.[_0x573a2e(0xdf)]&&{'rabetbase.help.service':_0x4171a1['service']}}});}catch(_0x3d4d69){console[_0x573a2e(0xd7)](_0x573a2e(0xd6),_0x3d4d69);}}
1
+ function a297_0x4f8c(_0x4213e2,_0x3c1f76){_0x4213e2=_0x4213e2-0x1ae;var _0x19f69b=a297_0x19f6();var _0x4f8ca7=_0x19f69b[_0x4213e2];return _0x4f8ca7;}(function(_0x5526c4,_0x1733d2){var _0x56ff08=a297_0x4f8c,_0x8d5c0a=_0x5526c4();while(!![]){try{var _0x3e6b98=-parseInt(_0x56ff08(0x1ba))/0x1*(-parseInt(_0x56ff08(0x1b6))/0x2)+-parseInt(_0x56ff08(0x1b4))/0x3*(parseInt(_0x56ff08(0x1af))/0x4)+-parseInt(_0x56ff08(0x1bc))/0x5*(parseInt(_0x56ff08(0x1b7))/0x6)+-parseInt(_0x56ff08(0x1b3))/0x7*(parseInt(_0x56ff08(0x1b0))/0x8)+parseInt(_0x56ff08(0x1bb))/0x9*(parseInt(_0x56ff08(0x1b8))/0xa)+parseInt(_0x56ff08(0x1b1))/0xb+-parseInt(_0x56ff08(0x1b9))/0xc*(-parseInt(_0x56ff08(0x1b2))/0xd);if(_0x3e6b98===_0x1733d2)break;else _0x8d5c0a['push'](_0x8d5c0a['shift']());}catch(_0x4b22a0){_0x8d5c0a['push'](_0x8d5c0a['shift']());}}}(a297_0x19f6,0x94811));function a297_0x19f6(){var _0x5cc992=['288tlTjiH','1byMhTl','8568738ZbOiqx','3425305xVKnjb','service','cli.help','784UqaGwU','1389368JzZpDv','5119510GipssL','633126YeFQaB','21Oqjgil','18030RdkNjJ','Failed\x20to\x20report\x20CLI\x20help\x20trace:','811934LMdxhW','6jWnDqU','10LAcaTX'];a297_0x19f6=function(){return _0x5cc992;};return a297_0x19f6();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x3b227c,_0x35225b){var _0x489af5=a297_0x4f8c;try{await sendCliTraceLog({'spanName':_0x489af5(0x1ae),'logData':{'rabetbase.help.kind':_0x3b227c,..._0x35225b?.[_0x489af5(0x1bd)]&&{'rabetbase.help.service':_0x35225b['service']}}});}catch(_0x1c0f52){console['error'](_0x489af5(0x1b5),_0x1c0f52);}}
@@ -1 +1 @@
1
- (function(_0x2a40b5,_0x37b628){const _0x33e93e=a300_0x2521,_0xb2146f=_0x2a40b5();while(!![]){try{const _0x1521d6=parseInt(_0x33e93e(0x194))/0x1+parseInt(_0x33e93e(0x18b))/0x2*(-parseInt(_0x33e93e(0x185))/0x3)+-parseInt(_0x33e93e(0x18d))/0x4+parseInt(_0x33e93e(0x192))/0x5*(-parseInt(_0x33e93e(0x186))/0x6)+-parseInt(_0x33e93e(0x18e))/0x7+parseInt(_0x33e93e(0x187))/0x8+parseInt(_0x33e93e(0x18c))/0x9;if(_0x1521d6===_0x37b628)break;else _0xb2146f['push'](_0xb2146f['shift']());}catch(_0x55ae41){_0xb2146f['push'](_0xb2146f['shift']());}}}(a300_0x4bc5,0x71d42));function a300_0x2521(_0x35a9f2,_0x1ce8da){_0x35a9f2=_0x35a9f2-0x185;const _0x4bc554=a300_0x4bc5();let _0x2521dd=_0x4bc554[_0x35a9f2];return _0x2521dd;}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a300_0x4bc5(){const _0x1aeeff=['tenant','822550JifSCD','8786178gQHwkj','331180RbDKIu','6439279pJuJRZ','tenant_code','daily','username','5OvESxu','email','204800iFKAmw','user','3aCJxhw','98238JmrKTh','5724320GzEpfl','nickname','unknown'];a300_0x4bc5=function(){return _0x1aeeff;};return a300_0x4bc5();}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 _0x31fd54=a300_0x2521,_0x39bc1e=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x472354=_0x39bc1e?.[_0x31fd54(0x195)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x31fd54(0x189)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x31fd54(0x190):'production')}),setUserContext({'id':_0x472354?.['id'],'username':_0x472354?.[_0x31fd54(0x191)],'nickname':_0x472354?.[_0x31fd54(0x188)],'email':_0x472354?.[_0x31fd54(0x193)],'tenantCode':_0x472354?.[_0x31fd54(0x18a)]?.[_0x31fd54(0x18f)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x39bc1e;}
1
+ (function(_0x3e3332,_0x54aca6){const _0x40d3e4=a298_0x4db5,_0x5472af=_0x3e3332();while(!![]){try{const _0x56d673=parseInt(_0x40d3e4(0x14c))/0x1*(parseInt(_0x40d3e4(0x147))/0x2)+-parseInt(_0x40d3e4(0x145))/0x3+parseInt(_0x40d3e4(0x149))/0x4*(-parseInt(_0x40d3e4(0x148))/0x5)+parseInt(_0x40d3e4(0x146))/0x6+-parseInt(_0x40d3e4(0x153))/0x7*(parseInt(_0x40d3e4(0x151))/0x8)+-parseInt(_0x40d3e4(0x14a))/0x9*(parseInt(_0x40d3e4(0x14b))/0xa)+-parseInt(_0x40d3e4(0x144))/0xb*(-parseInt(_0x40d3e4(0x14e))/0xc);if(_0x56d673===_0x54aca6)break;else _0x5472af['push'](_0x5472af['shift']());}catch(_0x33d180){_0x5472af['push'](_0x5472af['shift']());}}}(a298_0x39a4,0xb9a8b));function a298_0x4db5(_0x25a58b,_0x329a03){_0x25a58b=_0x25a58b-0x143;const _0x39a45c=a298_0x39a4();let _0x4db5e3=_0x39a45c[_0x25a58b];return _0x4db5e3;}function a298_0x39a4(){const _0x34b113=['unknown','21mJbwmG','email','daily','1628RwraVS','1876992YkWkNs','907056LsPWqI','2391436yQKwOL','459475EstBwr','20KUjwPS','4405959tAaPaw','30KluvUK','1Bqswxa','tenant_code','206772LcFNco','nickname','tenant','1554216uNCeGS'];a298_0x39a4=function(){return _0x34b113;};return a298_0x39a4();}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';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x217c68=a298_0x4db5,_0x81768a=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x4562a5=_0x81768a?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x217c68(0x152)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x217c68(0x143):'production')}),setUserContext({'id':_0x4562a5?.['id'],'username':_0x4562a5?.['username'],'nickname':_0x4562a5?.[_0x217c68(0x14f)],'email':_0x4562a5?.[_0x217c68(0x154)],'tenantCode':_0x4562a5?.[_0x217c68(0x150)]?.[_0x217c68(0x14d)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x81768a;}
@@ -1 +1 @@
1
- (function(_0x2bd00c,_0x1169a1){const _0x4bd05b=a301_0x5994,_0x22eaac=_0x2bd00c();while(!![]){try{const _0x41a575=parseInt(_0x4bd05b(0x11f))/0x1*(-parseInt(_0x4bd05b(0x11a))/0x2)+-parseInt(_0x4bd05b(0x117))/0x3+-parseInt(_0x4bd05b(0x116))/0x4*(parseInt(_0x4bd05b(0x11d))/0x5)+parseInt(_0x4bd05b(0x111))/0x6*(parseInt(_0x4bd05b(0x11b))/0x7)+-parseInt(_0x4bd05b(0x114))/0x8*(parseInt(_0x4bd05b(0x115))/0x9)+-parseInt(_0x4bd05b(0x110))/0xa+parseInt(_0x4bd05b(0x120))/0xb*(parseInt(_0x4bd05b(0x11e))/0xc);if(_0x41a575===_0x1169a1)break;else _0x22eaac['push'](_0x22eaac['shift']());}catch(_0x3c2245){_0x22eaac['push'](_0x22eaac['shift']());}}}(a301_0x4017,0x1fe92));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 a301_0x5994(_0x9ea8a3,_0xbce461){_0x9ea8a3=_0x9ea8a3-0x10f;const _0x401753=a301_0x4017();let _0x5994d5=_0x401753[_0x9ea8a3];return _0x5994d5;}function a301_0x4017(){const _0x135e43=['29074ApCXQx','4627WHqFcP','exit','100DWqolF','864QhSSBh','7wXoeeK','69377rdUlov','SIGTERM','89800lnosAz','1134BQfdQE','beforeExit','once','8TqPWhZ','2059137RLbVgW','21172BQUeFt','8805yjzbkf','then','SIGINT'];a301_0x4017=function(){return _0x135e43;};return a301_0x4017();}export function registerOtelShutdownOnExit(){const _0x4b6956=a301_0x5994;process['once'](_0x4b6956(0x112),()=>{void flushOtelNodeIfUsed();});const _0xa639e6=()=>{const _0x140cb6=_0x4b6956;void flushOtelNodeIfUsed()[_0x140cb6(0x118)](()=>process[_0x140cb6(0x11c)](0x0));};process[_0x4b6956(0x113)](_0x4b6956(0x119),_0xa639e6),process[_0x4b6956(0x113)](_0x4b6956(0x10f),_0xa639e6);}export async function exitWithOtelShutdown(_0x12ed82){await flushOtelNodeIfUsed(),process['exit'](_0x12ed82);}
1
+ (function(_0x4193fc,_0x280fbc){const _0x1cd4c4=a299_0x2310,_0xfdbacb=_0x4193fc();while(!![]){try{const _0x476e25=parseInt(_0x1cd4c4(0x11e))/0x1*(-parseInt(_0x1cd4c4(0x11f))/0x2)+-parseInt(_0x1cd4c4(0x112))/0x3+-parseInt(_0x1cd4c4(0x118))/0x4+parseInt(_0x1cd4c4(0x11b))/0x5*(-parseInt(_0x1cd4c4(0x11a))/0x6)+-parseInt(_0x1cd4c4(0x117))/0x7*(-parseInt(_0x1cd4c4(0x119))/0x8)+parseInt(_0x1cd4c4(0x111))/0x9*(-parseInt(_0x1cd4c4(0x10f))/0xa)+-parseInt(_0x1cd4c4(0x113))/0xb*(-parseInt(_0x1cd4c4(0x110))/0xc);if(_0x476e25===_0x280fbc)break;else _0xfdbacb['push'](_0xfdbacb['shift']());}catch(_0x43a765){_0xfdbacb['push'](_0xfdbacb['shift']());}}}(a299_0x3d16,0xda940));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 a299_0x2310(_0x2810e7,_0x301bcd){_0x2810e7=_0x2810e7-0x10f;const _0x3d1628=a299_0x3d16();let _0x231047=_0x3d1628[_0x2810e7];return _0x231047;}export function registerOtelShutdownOnExit(){const _0x351b09=a299_0x2310;process[_0x351b09(0x114)](_0x351b09(0x116),()=>{void flushOtelNodeIfUsed();});const _0x2b115c=()=>{const _0x2f88fd=_0x351b09;void flushOtelNodeIfUsed()[_0x2f88fd(0x11d)](()=>process[_0x2f88fd(0x11c)](0x0));};process['once']('SIGINT',_0x2b115c),process['once'](_0x351b09(0x115),_0x2b115c);}export async function exitWithOtelShutdown(_0x40de70){const _0x43cd99=a299_0x2310;await flushOtelNodeIfUsed(),process[_0x43cd99(0x11c)](_0x40de70);}function a299_0x3d16(){const _0x153a0b=['once','SIGTERM','beforeExit','2114PoDDZz','7097832cQMDFR','43664ocofhp','3810PmatwK','13415gODzNO','exit','then','122caIQWE','3228wLaAqG','46810RXcJcG','12Mlrshv','486ucWNph','4991034UxkCOe','53223533zFQXzw'];a299_0x3d16=function(){return _0x153a0b;};return a299_0x3d16();}
@@ -1 +1 @@
1
- const a302_0x52e9ed=a302_0x4820;(function(_0x4abc35,_0x1498c5){const _0x6c5618=a302_0x4820,_0x5545ff=_0x4abc35();while(!![]){try{const _0x45f525=parseInt(_0x6c5618(0xdf))/0x1+-parseInt(_0x6c5618(0xe4))/0x2+parseInt(_0x6c5618(0xdd))/0x3*(parseInt(_0x6c5618(0xdb))/0x4)+parseInt(_0x6c5618(0xe2))/0x5*(parseInt(_0x6c5618(0xe6))/0x6)+-parseInt(_0x6c5618(0xe5))/0x7+-parseInt(_0x6c5618(0xe1))/0x8*(-parseInt(_0x6c5618(0xe0))/0x9)+parseInt(_0x6c5618(0xe8))/0xa*(parseInt(_0x6c5618(0xde))/0xb);if(_0x45f525===_0x1498c5)break;else _0x5545ff['push'](_0x5545ff['shift']());}catch(_0x156c5d){_0x5545ff['push'](_0x5545ff['shift']());}}}(a302_0x15be,0x5488f));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a302_0x4820(_0x139310,_0x11c7b6){_0x139310=_0x139310-0xda;const _0x15beeb=a302_0x15be();let _0x482074=_0x15beeb[_0x139310];return _0x482074;}const DEFAULT_TRACE_NAME=a302_0x52e9ed(0xdc);export async function sendCliTraceLog(_0x4a7178){const _0x1ed96f=a302_0x52e9ed;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x4a7178[_0x1ed96f(0xda)]??DEFAULT_TRACE_NAME,'version':_0x4a7178[_0x1ed96f(0xe3)]??getCliVersion(),'spanName':_0x4a7178['spanName'],'eventType':'manual','logData':_0x4a7178['logData'],..._0x4a7178['traceparent']&&{'traceparent':_0x4a7178[_0x1ed96f(0xe7)]}});}function a302_0x15be(){const _0x38b9b7=['9SnGoTR','3337248LyLjvu','5bMoLPr','version','1371744Jewkxe','2758084GYtcPe','1708962corNBF','traceparent','1311630sNDzBr','traceName','4WkgTtC','rabetbase-cli','180051zTMNuF','33KonFTh','270650KYnWtV'];a302_0x15be=function(){return _0x38b9b7;};return a302_0x15be();}
1
+ const a300_0x3384e5=a300_0x401b;function a300_0x401b(_0x202fcb,_0x30ca33){_0x202fcb=_0x202fcb-0x1be;const _0x27c5db=a300_0x27c5();let _0x401b84=_0x27c5db[_0x202fcb];return _0x401b84;}(function(_0x9631b0,_0xc00446){const _0x11922b=a300_0x401b,_0x282d2e=_0x9631b0();while(!![]){try{const _0x1dd275=-parseInt(_0x11922b(0x1c5))/0x1+-parseInt(_0x11922b(0x1be))/0x2+-parseInt(_0x11922b(0x1ca))/0x3+parseInt(_0x11922b(0x1c2))/0x4*(parseInt(_0x11922b(0x1cb))/0x5)+-parseInt(_0x11922b(0x1c6))/0x6*(-parseInt(_0x11922b(0x1c1))/0x7)+parseInt(_0x11922b(0x1c0))/0x8*(-parseInt(_0x11922b(0x1c9))/0x9)+parseInt(_0x11922b(0x1c7))/0xa;if(_0x1dd275===_0xc00446)break;else _0x282d2e['push'](_0x282d2e['shift']());}catch(_0x1eb1af){_0x282d2e['push'](_0x282d2e['shift']());}}}(a300_0x27c5,0x57eaf));function a300_0x27c5(){const _0x449785=['561501izfyzC','1618995ASZmzR','233185RBoDfK','version','logData','876466yuFhFo','rabetbase-cli','72fOnmoi','4281319yThtiJ','12lToeYf','traceName','traceparent','704798igSvXv','6YVWsrW','18527800sRcbjl','manual'];a300_0x27c5=function(){return _0x449785;};return a300_0x27c5();}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a300_0x3384e5(0x1bf);export async function sendCliTraceLog(_0x5a25f7){const _0x3775d3=a300_0x3384e5;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x5a25f7[_0x3775d3(0x1c3)]??DEFAULT_TRACE_NAME,'version':_0x5a25f7[_0x3775d3(0x1cc)]??getCliVersion(),'spanName':_0x5a25f7['spanName'],'eventType':_0x3775d3(0x1c8),'logData':_0x5a25f7[_0x3775d3(0x1cd)],..._0x5a25f7[_0x3775d3(0x1c4)]&&{'traceparent':_0x5a25f7[_0x3775d3(0x1c4)]}});}
@@ -1 +1 @@
1
- const a303_0xd938b9=a303_0x152a;(function(_0xfac0d0,_0x4c1150){const _0x2aaaaf=a303_0x152a,_0x5572ff=_0xfac0d0();while(!![]){try{const _0x54ac6f=-parseInt(_0x2aaaaf(0x17d))/0x1+-parseInt(_0x2aaaaf(0x174))/0x2+-parseInt(_0x2aaaaf(0x171))/0x3+-parseInt(_0x2aaaaf(0x16d))/0x4*(-parseInt(_0x2aaaaf(0x175))/0x5)+parseInt(_0x2aaaaf(0x179))/0x6+parseInt(_0x2aaaaf(0x173))/0x7*(-parseInt(_0x2aaaaf(0x177))/0x8)+parseInt(_0x2aaaaf(0x170))/0x9;if(_0x54ac6f===_0x4c1150)break;else _0x5572ff['push'](_0x5572ff['shift']());}catch(_0x3767d0){_0x5572ff['push'](_0x5572ff['shift']());}}}(a303_0x1ff3,0xeef80));function a303_0x152a(_0xbca932,_0x236298){_0xbca932=_0xbca932-0x16d;const _0x1ff323=a303_0x1ff3();let _0x152a42=_0x1ff323[_0xbca932];return _0x152a42;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a303_0x1ff3(){const _0x137e24=['732209VpPckK','22096LETBWv','sanitize','redactionKinds','38714049zbsFYH','2566317ZlGcnt','truncated','1330553nmStGQ','3519196JbYRJi','685fCRfVK','issue.log.collect','64JeFxfV','platform-issue-log-collect','4730070mjHuWR','description','originalBytes','title'];a303_0x1ff3=function(){return _0x137e24;};return a303_0x1ff3();}export const PLATFORM_ISSUE_TRACE_NAME=a303_0xd938b9(0x178);export const PLATFORM_ISSUE_SPAN_NAME=a303_0xd938b9(0x176);export async function sendPlatformIssueCollectLog(_0x5819cf){const _0x2277e9=a303_0xd938b9;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x5819cf[_0x2277e9(0x17c)],'issue.description':_0x5819cf[_0x2277e9(0x17a)],..._0x5819cf[_0x2277e9(0x16e)]?{'issue.description_original_bytes':_0x5819cf[_0x2277e9(0x16e)][_0x2277e9(0x17b)],'issue.description_truncated':_0x5819cf[_0x2277e9(0x16e)][_0x2277e9(0x172)],'issue.description_redactions':_0x5819cf[_0x2277e9(0x16e)]['redactionCount'],'issue.description_redaction_kinds':_0x5819cf[_0x2277e9(0x16e)][_0x2277e9(0x16f)]['join'](',')}:{}}});}
1
+ function a301_0x3b2a(_0x2ae762,_0x2b0ba1){_0x2ae762=_0x2ae762-0x182;const _0x1312c9=a301_0x1312();let _0x3b2a58=_0x1312c9[_0x2ae762];return _0x3b2a58;}const a301_0x4958cf=a301_0x3b2a;(function(_0x5ca9b8,_0x434c36){const _0x2f7654=a301_0x3b2a,_0xb87eda=_0x5ca9b8();while(!![]){try{const _0x204019=-parseInt(_0x2f7654(0x190))/0x1+parseInt(_0x2f7654(0x188))/0x2+-parseInt(_0x2f7654(0x18e))/0x3+-parseInt(_0x2f7654(0x192))/0x4*(-parseInt(_0x2f7654(0x186))/0x5)+-parseInt(_0x2f7654(0x18f))/0x6+parseInt(_0x2f7654(0x187))/0x7*(parseInt(_0x2f7654(0x184))/0x8)+parseInt(_0x2f7654(0x18b))/0x9;if(_0x204019===_0x434c36)break;else _0xb87eda['push'](_0xb87eda['shift']());}catch(_0x1ff951){_0xb87eda['push'](_0xb87eda['shift']());}}}(a301_0x1312,0xb21e6));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a301_0x4958cf(0x182);export async function sendPlatformIssueCollectLog(_0x375a80){const _0x2dc68e=a301_0x4958cf;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x375a80[_0x2dc68e(0x189)],'issue.description':_0x375a80[_0x2dc68e(0x18c)],..._0x375a80[_0x2dc68e(0x18d)]?{'issue.description_original_bytes':_0x375a80[_0x2dc68e(0x18d)][_0x2dc68e(0x18a)],'issue.description_truncated':_0x375a80[_0x2dc68e(0x18d)][_0x2dc68e(0x185)],'issue.description_redactions':_0x375a80[_0x2dc68e(0x18d)]['redactionCount'],'issue.description_redaction_kinds':_0x375a80[_0x2dc68e(0x18d)][_0x2dc68e(0x183)][_0x2dc68e(0x191)](',')}:{}}});}function a301_0x1312(){const _0x4e2fab=['originalBytes','13210272uoQtMF','description','sanitize','3705777RpaYDJ','4905480EUkydf','1358908zubFIO','join','4jOsSKs','issue.log.collect','redactionKinds','258232FmXLvG','truncated','6172315WSlzeq','35jXHukV','2555310EpYOCV','title'];a301_0x1312=function(){return _0x4e2fab;};return a301_0x1312();}
@@ -1 +1 @@
1
- function a305_0x5b9b(){const _0x196fbd=['Qoder\x20IDE','opencode','.claude/skills/lovrabet/SKILL.md','.codex/skills/lovrabet/SKILL.md','.trae/skills/lovrabet/SKILL.md','qoder','Trae\x20IDE','.opencode','.qoder','45270TbOBMC','.codex','.windsurf','Cline','Cursor\x20IDE','383564MRIEus','CodeBuddy\x20IDE','Antigravity','claude','Codex','2593402BBTTuG','codebuddy','cline','.qoder/skills/lovrabet/SKILL.md','windsurf','1728177mhAqaq','.agent','Cursor','.cline','OpenCode','antigravity','Cline\x20IDE','4YKPOXK','.trae','trae','OpenCode\x20IDE','.codebuddy/skills/lovrabet/SKILL.md','15129352jNOZEo','.cursorrules','Trae','.cursor/skills/rabetbase.md','Antigravity\x20IDE','Claude\x20Code','file','codex','75MtWwsc','6221580KAslRQ','.claude','Codex\x20IDE','Generic\x20template\x20fallback','cursor','763854ZfxHZS','.codebuddy','.cursor','Windsurf\x20IDE','Windsurf','7947Qqifen','Qoder','.opencode/skills/lovrabet/SKILL.md'];a305_0x5b9b=function(){return _0x196fbd;};return a305_0x5b9b();}function a305_0x3644(_0x5979d3,_0x4fcffd){_0x5979d3=_0x5979d3-0x13c;const _0x5b9b01=a305_0x5b9b();let _0x364460=_0x5b9b01[_0x5979d3];return _0x364460;}const a305_0x15b232=a305_0x3644;(function(_0x3686fc,_0x3f2d56){const _0xe8a02a=a305_0x3644,_0x35611a=_0x3686fc();while(!![]){try{const _0x1092ad=parseInt(_0xe8a02a(0x164))/0x1*(parseInt(_0xe8a02a(0x13d))/0x2)+-parseInt(_0xe8a02a(0x15d))/0x3+parseInt(_0xe8a02a(0x153))/0x4*(parseInt(_0xe8a02a(0x171))/0x5)+parseInt(_0xe8a02a(0x172))/0x6+-parseInt(_0xe8a02a(0x158))/0x7+parseInt(_0xe8a02a(0x169))/0x8+parseInt(_0xe8a02a(0x142))/0x9*(-parseInt(_0xe8a02a(0x14e))/0xa);if(_0x1092ad===_0x3f2d56)break;else _0x35611a['push'](_0x35611a['shift']());}catch(_0x963b15){_0x35611a['push'](_0x35611a['shift']());}}}(a305_0x5b9b,0xe800e));export const CORE_IDE_CONFIGS={'cursor':{'name':a305_0x15b232(0x15f),'description':a305_0x15b232(0x152),'folders':[a305_0x15b232(0x16a),a305_0x15b232(0x13f)],'files':[{'type':a305_0x15b232(0x16f),'path':a305_0x15b232(0x16c)}]},'windsurf':{'name':a305_0x15b232(0x141),'description':a305_0x15b232(0x140),'folders':[a305_0x15b232(0x150)],'files':[{'type':a305_0x15b232(0x16f),'path':'.windsurf/workflows/rabetbase.md'}]},'claude':{'name':'Claude\x20Code','description':a305_0x15b232(0x16e),'folders':[a305_0x15b232(0x173)],'files':[{'type':'file','path':a305_0x15b232(0x147)}]},'cline':{'name':a305_0x15b232(0x151),'description':a305_0x15b232(0x163),'folders':[a305_0x15b232(0x160)],'files':[{'type':'file','path':'.cline/skills/lovrabet/SKILL.md'}]},'codex':{'name':a305_0x15b232(0x157),'description':a305_0x15b232(0x174),'folders':[a305_0x15b232(0x14f)],'files':[{'type':'file','path':a305_0x15b232(0x148)}]},'opencode':{'name':a305_0x15b232(0x161),'description':a305_0x15b232(0x167),'folders':[a305_0x15b232(0x14c)],'files':[{'type':a305_0x15b232(0x16f),'path':a305_0x15b232(0x144)}]},'qoder':{'name':a305_0x15b232(0x143),'description':a305_0x15b232(0x145),'folders':[a305_0x15b232(0x14d)],'files':[{'type':a305_0x15b232(0x16f),'path':'.qoder/rules/rabetbase.md'},{'type':a305_0x15b232(0x16f),'path':a305_0x15b232(0x15b)}]},'codebuddy':{'name':'CodeBuddy','description':a305_0x15b232(0x154),'folders':[a305_0x15b232(0x13e)],'files':[{'type':a305_0x15b232(0x16f),'path':a305_0x15b232(0x168)}]},'trae':{'name':a305_0x15b232(0x16b),'description':a305_0x15b232(0x14b),'folders':[a305_0x15b232(0x165)],'files':[{'type':a305_0x15b232(0x16f),'path':a305_0x15b232(0x149)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'Other\x20(generic\x20template)','description':a305_0x15b232(0x175),'folders':[a305_0x15b232(0x15e)],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md'}]},'antigravity':{'name':a305_0x15b232(0x155),'description':a305_0x15b232(0x16d),'folders':['.agent'],'files':[{'type':a305_0x15b232(0x16f),'path':'.agent/skills/lovrabet/SKILL.md'}]}};export const CORE_IDE_LIST=['claude','cline',a305_0x15b232(0x159),'codex',a305_0x15b232(0x13c),'opencode','qoder',a305_0x15b232(0x166),a305_0x15b232(0x15c)];export const IDE_LIST=[a305_0x15b232(0x162),'claude',a305_0x15b232(0x15a),a305_0x15b232(0x159),a305_0x15b232(0x170),a305_0x15b232(0x13c),a305_0x15b232(0x146),a305_0x15b232(0x14a),'trae','windsurf','agent'];export const ALL_CORE_IDES=[a305_0x15b232(0x13c),'windsurf',a305_0x15b232(0x156),a305_0x15b232(0x15a),'codex','opencode',a305_0x15b232(0x14a),a305_0x15b232(0x159),a305_0x15b232(0x166)];
1
+ function a303_0x5670(){const _0x49007d=['615254itVxEF','948360MIUFLi','cline','trae','.trae/skills/lovrabet/SKILL.md','Qoder\x20IDE','.qoder/skills/lovrabet/SKILL.md','CodeBuddy\x20IDE','Trae','opencode','antigravity','.agent','codebuddy','cursor','Windsurf\x20IDE','qoder','claude','.cline/skills/lovrabet/SKILL.md','Generic\x20template\x20fallback','windsurf','Qoder','.trae','1322384AgFuIx','.opencode','Cursor\x20IDE','207Guzsht','.cline','Antigravity','Antigravity\x20IDE','3435770clEuCT','Codex\x20IDE','3FhvDbE','Other\x20(generic\x20template)','2457456HzsHLz','OpenCode\x20IDE','.claude/skills/lovrabet/SKILL.md','codex','.codex','.agent/skills/lovrabet/SKILL.md','Cursor','.qoder','agent','.qoder/rules/rabetbase.md','772614DzCokf','.cursorrules','.codebuddy','file','Claude\x20Code','.claude','Cline\x20IDE','1451353bOBUIG'];a303_0x5670=function(){return _0x49007d;};return a303_0x5670();}const a303_0x87077f=a303_0x1ae1;(function(_0xd786e3,_0x4e9e20){const _0x970f55=a303_0x1ae1,_0x2cffc0=_0xd786e3();while(!![]){try{const _0x3f871d=-parseInt(_0x970f55(0x14e))/0x1+parseInt(_0x970f55(0x14f))/0x2*(-parseInt(_0x970f55(0x16e))/0x3)+-parseInt(_0x970f55(0x170))/0x4+-parseInt(_0x970f55(0x16c))/0x5+parseInt(_0x970f55(0x147))/0x6+-parseInt(_0x970f55(0x150))/0x7+-parseInt(_0x970f55(0x165))/0x8*(-parseInt(_0x970f55(0x168))/0x9);if(_0x3f871d===_0x4e9e20)break;else _0x2cffc0['push'](_0x2cffc0['shift']());}catch(_0x37b8af){_0x2cffc0['push'](_0x2cffc0['shift']());}}}(a303_0x5670,0xb35b5));export const CORE_IDE_CONFIGS={'cursor':{'name':a303_0x87077f(0x176),'description':a303_0x87077f(0x167),'folders':[a303_0x87077f(0x148),'.cursor'],'files':[{'type':a303_0x87077f(0x14a),'path':'.cursor/skills/rabetbase.md'}]},'windsurf':{'name':'Windsurf','description':a303_0x87077f(0x15d),'folders':['.windsurf'],'files':[{'type':a303_0x87077f(0x14a),'path':'.windsurf/workflows/rabetbase.md'}]},'claude':{'name':a303_0x87077f(0x14b),'description':a303_0x87077f(0x14b),'folders':[a303_0x87077f(0x14c)],'files':[{'type':a303_0x87077f(0x14a),'path':a303_0x87077f(0x172)}]},'cline':{'name':'Cline','description':a303_0x87077f(0x14d),'folders':[a303_0x87077f(0x169)],'files':[{'type':a303_0x87077f(0x14a),'path':a303_0x87077f(0x160)}]},'codex':{'name':'Codex','description':a303_0x87077f(0x16d),'folders':[a303_0x87077f(0x174)],'files':[{'type':a303_0x87077f(0x14a),'path':'.codex/skills/lovrabet/SKILL.md'}]},'opencode':{'name':'OpenCode','description':a303_0x87077f(0x171),'folders':[a303_0x87077f(0x166)],'files':[{'type':a303_0x87077f(0x14a),'path':'.opencode/skills/lovrabet/SKILL.md'}]},'qoder':{'name':a303_0x87077f(0x163),'description':a303_0x87077f(0x154),'folders':[a303_0x87077f(0x177)],'files':[{'type':'file','path':a303_0x87077f(0x179)},{'type':'file','path':a303_0x87077f(0x155)}]},'codebuddy':{'name':'CodeBuddy','description':a303_0x87077f(0x156),'folders':[a303_0x87077f(0x149)],'files':[{'type':'file','path':'.codebuddy/skills/lovrabet/SKILL.md'}]},'trae':{'name':a303_0x87077f(0x157),'description':'Trae\x20IDE','folders':[a303_0x87077f(0x164)],'files':[{'type':a303_0x87077f(0x14a),'path':a303_0x87077f(0x153)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a303_0x87077f(0x16f),'description':a303_0x87077f(0x161),'folders':[a303_0x87077f(0x15a)],'files':[{'type':a303_0x87077f(0x14a),'path':a303_0x87077f(0x175)}]},'antigravity':{'name':a303_0x87077f(0x16a),'description':a303_0x87077f(0x16b),'folders':['.agent'],'files':[{'type':a303_0x87077f(0x14a),'path':'.agent/skills/lovrabet/SKILL.md'}]}};export const CORE_IDE_LIST=[a303_0x87077f(0x15f),'cline',a303_0x87077f(0x15b),a303_0x87077f(0x173),'cursor',a303_0x87077f(0x158),a303_0x87077f(0x15e),a303_0x87077f(0x152),a303_0x87077f(0x162)];function a303_0x1ae1(_0xbe7900,_0x1d2199){_0xbe7900=_0xbe7900-0x147;const _0x56708e=a303_0x5670();let _0x1ae124=_0x56708e[_0xbe7900];return _0x1ae124;}export const IDE_LIST=[a303_0x87077f(0x159),a303_0x87077f(0x15f),a303_0x87077f(0x151),'codebuddy',a303_0x87077f(0x173),a303_0x87077f(0x15c),a303_0x87077f(0x158),a303_0x87077f(0x15e),'trae',a303_0x87077f(0x162),a303_0x87077f(0x178)];export const ALL_CORE_IDES=['cursor',a303_0x87077f(0x162),a303_0x87077f(0x15f),a303_0x87077f(0x151),'codex',a303_0x87077f(0x158),a303_0x87077f(0x15e),a303_0x87077f(0x15b),a303_0x87077f(0x152)];
@@ -1 +1 @@
1
- function a306_0x1b2e(){const _0x1af499=['853519ZyObKh','131276HwnmnX','438006StBnrS','2740RuknEa','3384438XqGlUo','59488RdwYOr','385iRauzo','145IaAvAg','28369MJdJPD','8815842ZLPcey','2IgmbpB'];a306_0x1b2e=function(){return _0x1af499;};return a306_0x1b2e();}function a306_0x304a(_0x47edfc,_0x18687d){_0x47edfc=_0x47edfc-0xa5;const _0x1b2ef3=a306_0x1b2e();let _0x304abf=_0x1b2ef3[_0x47edfc];return _0x304abf;}(function(_0x19fa2c,_0x1bfd6e){const _0x41abea=a306_0x304a,_0x164a9a=_0x19fa2c();while(!![]){try{const _0x4f641c=parseInt(_0x41abea(0xa6))/0x1*(-parseInt(_0x41abea(0xa5))/0x2)+parseInt(_0x41abea(0xa8))/0x3+-parseInt(_0x41abea(0xa7))/0x4*(-parseInt(_0x41abea(0xad))/0x5)+parseInt(_0x41abea(0xaa))/0x6+-parseInt(_0x41abea(0xac))/0x7*(parseInt(_0x41abea(0xab))/0x8)+parseInt(_0x41abea(0xaf))/0x9+parseInt(_0x41abea(0xa9))/0xa*(-parseInt(_0x41abea(0xae))/0xb);if(_0x4f641c===_0x1bfd6e)break;else _0x164a9a['push'](_0x164a9a['shift']());}catch(_0xbf2f3){_0x164a9a['push'](_0x164a9a['shift']());}}}(a306_0x1b2e,0xa41db));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x457102,_0x331e0a){const _0x260083=a304_0x1094,_0x3fba97=_0x457102();while(!![]){try{const _0x4a35f6=-parseInt(_0x260083(0x96))/0x1+-parseInt(_0x260083(0x92))/0x2*(parseInt(_0x260083(0x8e))/0x3)+parseInt(_0x260083(0x91))/0x4*(parseInt(_0x260083(0x94))/0x5)+parseInt(_0x260083(0x98))/0x6*(parseInt(_0x260083(0x8f))/0x7)+parseInt(_0x260083(0x99))/0x8*(-parseInt(_0x260083(0x90))/0x9)+parseInt(_0x260083(0x95))/0xa+-parseInt(_0x260083(0x97))/0xb*(-parseInt(_0x260083(0x93))/0xc);if(_0x4a35f6===_0x331e0a)break;else _0x3fba97['push'](_0x3fba97['shift']());}catch(_0x2203ed){_0x3fba97['push'](_0x3fba97['shift']());}}}(a304_0x29df,0xd31f8));function a304_0x29df(){const _0x3bad67=['5589852fzFNuQ','478605PreUmu','322080HBmleo','1291372CDuTMO','33dyJGjh','246ksUvLA','55960vkeKmM','1470741mppwEJ','222502iyGCbJ','2205iBBLTQ','68axjcEb','2zzrTjN'];a304_0x29df=function(){return _0x3bad67;};return a304_0x29df();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a304_0x1094(_0x277b58,_0x3d954e){_0x277b58=_0x277b58-0x8e;const _0x29dfac=a304_0x29df();let _0x10941c=_0x29dfac[_0x277b58];return _0x10941c;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x17588b,_0x7af0f5){const _0x1252ed=a307_0x3d07,_0x53cd91=_0x17588b();while(!![]){try{const _0x2a9afe=parseInt(_0x1252ed(0x113))/0x1*(-parseInt(_0x1252ed(0x10f))/0x2)+-parseInt(_0x1252ed(0x10e))/0x3+parseInt(_0x1252ed(0x115))/0x4+-parseInt(_0x1252ed(0x10d))/0x5+parseInt(_0x1252ed(0x110))/0x6+parseInt(_0x1252ed(0x112))/0x7+parseInt(_0x1252ed(0x108))/0x8*(parseInt(_0x1252ed(0x10b))/0x9);if(_0x2a9afe===_0x7af0f5)break;else _0x53cd91['push'](_0x53cd91['shift']());}catch(_0x54777a){_0x53cd91['push'](_0x53cd91['shift']());}}}(a307_0x1bff,0x4415f));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x5b5416=a307_0x3d07,_0x25bfde=getTemplateBaseUrl(),_0x1e406f=[_0x25bfde+_0x5b5416(0x117),_0x25bfde+'/config/index.json'];for(const _0x2a0f55 of _0x1e406f){try{const _0x4c8b89=await fetch(_0x2a0f55,{'headers':{'Accept':_0x5b5416(0x10a)}});if(!_0x4c8b89['ok'])continue;const _0x6d167c=await _0x4c8b89[_0x5b5416(0x10c)]();if(!_0x6d167c[_0x5b5416(0x114)]?.[_0x5b5416(0x109)]||!_0x6d167c[_0x5b5416(0x111)]?.[_0x5b5416(0x116)]?.['stableVersion'])continue;return _0x6d167c;}catch{}}return null;}function a307_0x3d07(_0xf98fc3,_0x643cbd){_0xf98fc3=_0xf98fc3-0x108;const _0x1bff43=a307_0x1bff();let _0x3d07f2=_0x1bff43[_0xf98fc3];return _0x3d07f2;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x38eaba=Date['now']();if(hasCachedConfig){const _0x41843f=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x38eaba-cacheTime<_0x41843f)return cachedConfig;}const _0x1a8053=await fetchCdnConfig();return cachedConfig=_0x1a8053,cacheTime=_0x38eaba,hasCachedConfig=!![],_0x1a8053;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}function a307_0x1bff(){const _0x415018=['application/json','1215WujEBT','json','607440DFKwJA','710451RszXrB','1096dveEnh','2484390tLMvxt','sdk','2301327dCrHbB','1011WnDLGU','cli','11544uegPLy','node','/config.json','26400UDYckA','stableVersion'];a307_0x1bff=function(){return _0x415018;};return a307_0x1bff();}
1
+ (function(_0x39e059,_0x2c84a2){const _0x1ee673=a305_0x19e0,_0x1b0d1b=_0x39e059();while(!![]){try{const _0x476cd2=-parseInt(_0x1ee673(0x19f))/0x1*(parseInt(_0x1ee673(0x19a))/0x2)+parseInt(_0x1ee673(0x19d))/0x3+parseInt(_0x1ee673(0x194))/0x4+parseInt(_0x1ee673(0x19c))/0x5*(-parseInt(_0x1ee673(0x196))/0x6)+-parseInt(_0x1ee673(0x19b))/0x7*(parseInt(_0x1ee673(0x193))/0x8)+-parseInt(_0x1ee673(0x19e))/0x9*(parseInt(_0x1ee673(0x192))/0xa)+parseInt(_0x1ee673(0x199))/0xb;if(_0x476cd2===_0x2c84a2)break;else _0x1b0d1b['push'](_0x1b0d1b['shift']());}catch(_0x3cfd80){_0x1b0d1b['push'](_0x1b0d1b['shift']());}}}(a305_0x133a,0xcfbd4));function a305_0x133a(){const _0x4e5268=['10ugXVEl','232yoVHPV','4560276hlOVOa','stableVersion','2694wDnwCz','sdk','application/json','15968799teAiRZ','8xIUtCF','242319Obkxbn','1970kpMdkZ','3447738MIWyAW','146061riYIKD','423274GpnDEm','node'];a305_0x133a=function(){return _0x4e5268;};return a305_0x133a();}import{getTemplateBaseUrl}from'../utils/config.js';function a305_0x19e0(_0x139ea2,_0x65b3e){_0x139ea2=_0x139ea2-0x191;const _0x133aa8=a305_0x133a();let _0x19e0a9=_0x133aa8[_0x139ea2];return _0x19e0a9;}export async function fetchCdnConfig(){const _0xe54680=a305_0x19e0,_0x953596=getTemplateBaseUrl(),_0x1b4edc=[_0x953596+'/config.json',_0x953596+'/config/index.json'];for(const _0x35a871 of _0x1b4edc){try{const _0x5bc657=await fetch(_0x35a871,{'headers':{'Accept':_0xe54680(0x198)}});if(!_0x5bc657['ok'])continue;const _0x559684=await _0x5bc657['json']();if(!_0x559684['cli']?.[_0xe54680(0x195)]||!_0x559684[_0xe54680(0x197)]?.[_0xe54680(0x191)]?.['stableVersion'])continue;return _0x559684;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x2e032a=Date['now']();if(hasCachedConfig){const _0x2c3cd5=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2e032a-cacheTime<_0x2c3cd5)return cachedConfig;}const _0x1ca3aa=await fetchCdnConfig();return cachedConfig=_0x1ca3aa,cacheTime=_0x2e032a,hasCachedConfig=!![],_0x1ca3aa;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- (function(_0x3d669a,_0x143305){const _0x4e1f87=a308_0x123f,_0x348eb8=_0x3d669a();while(!![]){try{const _0xd8616e=-parseInt(_0x4e1f87(0x19f))/0x1*(parseInt(_0x4e1f87(0x1a6))/0x2)+parseInt(_0x4e1f87(0x1a7))/0x3*(parseInt(_0x4e1f87(0x194))/0x4)+-parseInt(_0x4e1f87(0x199))/0x5+parseInt(_0x4e1f87(0x198))/0x6+parseInt(_0x4e1f87(0x1a4))/0x7*(parseInt(_0x4e1f87(0x193))/0x8)+parseInt(_0x4e1f87(0x19c))/0x9+-parseInt(_0x4e1f87(0x185))/0xa;if(_0xd8616e===_0x143305)break;else _0x348eb8['push'](_0x348eb8['shift']());}catch(_0x39d5d5){_0x348eb8['push'](_0x348eb8['shift']());}}}(a308_0x5451,0xd4227));import a308_0x58bae5 from'node:fs';import a308_0x5c91a2 from'node:path';import a308_0x4a113b from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x3e9b47){const _0x4e9610=a308_0x123f,_0x3ada2f=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x3ada2f[_0x4e9610(0x1a5)](_0x5ad5df=>_0x5ad5df['test'](_0x3e9b47));}function a308_0x123f(_0x10c8fa,_0x5326a9){_0x10c8fa=_0x10c8fa-0x183;const _0x545178=a308_0x5451();let _0x123ffe=_0x545178[_0x10c8fa];return _0x123ffe;}function getInstalledVersion(_0x1e97ae,_0x1f79fd){const _0xcf26e=a308_0x123f;try{const _0x5c2ed8=a308_0x5c91a2[_0xcf26e(0x18f)](_0x1e97ae,_0xcf26e(0x191),_0x1f79fd,'package.json');if(a308_0x58bae5[_0xcf26e(0x190)](_0x5c2ed8)){const _0x3d0a50=JSON[_0xcf26e(0x1a3)](a308_0x58bae5[_0xcf26e(0x1a2)](_0x5c2ed8,'utf-8'));return _0x3d0a50[_0xcf26e(0x197)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x50b33d=a308_0x123f;try{const _0xe7e2de=await getCdnConfig();return _0xe7e2de?.[_0x50b33d(0x1a0)]?.['node']?.[_0x50b33d(0x1a1)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x2c18a0=a308_0x123f;try{const _0x35a4ae=await getCdnConfig();return _0x35a4ae?.[_0x2c18a0(0x1a0)]?.[_0x2c18a0(0x196)]?.['packageName']||'@lovrabet/sdk';}catch{return _0x2c18a0(0x18e);}}export async function checkSdkVersion(_0xa49c58){const _0xd0341e=a308_0x123f,_0x443805=a308_0x5c91a2['join'](_0xa49c58,_0xd0341e(0x192)),[_0x40b083,_0x8416c6]=await Promise[_0xd0341e(0x186)]([getSdkStableVersion(),getSdkPackageName()]),_0x54ca0d=_0x40b083||FALLBACK_MIN_SDK_VERSION;if(!a308_0x58bae5[_0xd0341e(0x190)](_0x443805))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x54ca0d,'packageName':_0x8416c6,'stableVersion':_0x40b083};try{const _0x8265f9=JSON[_0xd0341e(0x1a3)](a308_0x58bae5[_0xd0341e(0x1a2)](_0x443805,'utf8')),_0x599502=_0x8265f9['dependencies']||{},_0x894a3=_0x8265f9[_0xd0341e(0x19d)]||{},_0x49aaf6=_0x599502[_0x8416c6]||_0x894a3[_0x8416c6];if(!_0x49aaf6)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x54ca0d,'packageName':_0x8416c6,'stableVersion':_0x40b083};let _0x592060=getInstalledVersion(_0xa49c58,_0x8416c6);!_0x592060&&(_0x592060=_0x49aaf6);if(isNonNumericVersion(_0x49aaf6))return{'installed':!![],'version':_0x592060,'needsUpgrade':![],'minVersion':_0x54ca0d,'packageName':_0x8416c6,'stableVersion':_0x40b083};const _0x1977d1=a308_0x4a113b[_0xd0341e(0x184)](_0x592060),_0x3c1721=a308_0x4a113b[_0xd0341e(0x184)](_0x54ca0d),_0x113c10=_0x1977d1&&_0x3c1721?a308_0x4a113b['lt'](_0x1977d1,_0x3c1721):![];return{'installed':!![],'version':_0x592060,'needsUpgrade':_0x113c10,'minVersion':_0x54ca0d,'packageName':_0x8416c6,'stableVersion':_0x40b083};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x54ca0d,'packageName':_0x8416c6,'stableVersion':_0x40b083};}}export function checkSdkVersionSync(_0xf315ea){const _0x63bbde=a308_0x123f,_0xe71836=a308_0x5c91a2[_0x63bbde(0x18f)](_0xf315ea,_0x63bbde(0x192)),_0xb68267=_0x63bbde(0x18e);if(!a308_0x58bae5['existsSync'](_0xe71836))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xb68267,'stableVersion':null};try{const _0x4d411b=JSON[_0x63bbde(0x1a3)](a308_0x58bae5[_0x63bbde(0x1a2)](_0xe71836,_0x63bbde(0x18d))),_0x1fe603=_0x4d411b['dependencies']||{},_0x18d00e=_0x4d411b[_0x63bbde(0x19d)]||{},_0x54a418=_0x1fe603[_0xb68267]||_0x18d00e[_0xb68267];if(!_0x54a418)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xb68267,'stableVersion':null};let _0x34ce9c=getInstalledVersion(_0xf315ea,_0xb68267);!_0x34ce9c&&(_0x34ce9c=_0x54a418);if(isNonNumericVersion(_0x54a418))return{'installed':!![],'version':_0x34ce9c,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xb68267,'stableVersion':null};const _0x3aa579=a308_0x4a113b[_0x63bbde(0x184)](_0x34ce9c),_0x5bc9d8=_0x3aa579?a308_0x4a113b['lt'](_0x3aa579,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x34ce9c,'needsUpgrade':_0x5bc9d8,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xb68267,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0xb68267,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x44ed70){const _0xfa33b4=a308_0x123f;if(!_0x44ed70[_0xfa33b4(0x19b)])return;const _0x1c3a77=_0xfa33b4(0x18c),_0x34b13a='\x1b[0m',_0x2ee8cd=_0xfa33b4(0x195),_0x30aeda=_0x44ed70[_0xfa33b4(0x19e)]||_0xfa33b4(0x18e),_0xa2f6c7=_0x44ed70[_0xfa33b4(0x1a1)]||_0x44ed70[_0xfa33b4(0x189)],_0x176376=_0xfa33b4(0x18a)+_0x30aeda+'@'+(_0xa2f6c7||_0xfa33b4(0x19a));console[_0xfa33b4(0x188)](),console[_0xfa33b4(0x188)](''+_0x1c3a77+_0x2ee8cd+_0xfa33b4(0x183)+_0x34b13a),console[_0xfa33b4(0x188)](_0x1c3a77+_0xfa33b4(0x18b)+_0x30aeda+'@'+_0x44ed70[_0xfa33b4(0x197)]+_0x34b13a),console[_0xfa33b4(0x188)](_0x1c3a77+_0xfa33b4(0x187)+_0xa2f6c7+_0x34b13a),console[_0xfa33b4(0x188)](_0x1c3a77+'\x20\x20\x20Upgrade\x20command:\x20'+_0x176376+_0x34b13a),console[_0xfa33b4(0x188)]();}function a308_0x5451(){const _0x78ef3f=['24flhabw','\x1b[1m','node','version','9183594zXWskG','141510MuXYmo','latest','needsUpgrade','2610090lqUrcF','devDependencies','packageName','572097LoLUGB','sdk','stableVersion','readFileSync','parse','6391ykAfvP','some','6DbMQJy','720393XdGQxU','↪\x20SDK\x20update\x20available','coerce','14202970BAomaT','all','\x20\x20\x20Stable\x20version:\x20','log','minVersion','npm\x20install\x20','\x20\x20\x20Current\x20version:\x20','\x1b[33m','utf8','@lovrabet/sdk','join','existsSync','node_modules','package.json','6768DXHrVT'];a308_0x5451=function(){return _0x78ef3f;};return a308_0x5451();}
1
+ (function(_0x1ea520,_0x271cae){const _0xd8f9f2=a306_0x80e3,_0x3d32fb=_0x1ea520();while(!![]){try{const _0x316c1e=parseInt(_0xd8f9f2(0x79))/0x1*(parseInt(_0xd8f9f2(0x6a))/0x2)+-parseInt(_0xd8f9f2(0x7a))/0x3+parseInt(_0xd8f9f2(0x6e))/0x4*(-parseInt(_0xd8f9f2(0x89))/0x5)+parseInt(_0xd8f9f2(0x77))/0x6*(-parseInt(_0xd8f9f2(0x8a))/0x7)+parseInt(_0xd8f9f2(0x85))/0x8+parseInt(_0xd8f9f2(0x87))/0x9+-parseInt(_0xd8f9f2(0x7e))/0xa*(-parseInt(_0xd8f9f2(0x70))/0xb);if(_0x316c1e===_0x271cae)break;else _0x3d32fb['push'](_0x3d32fb['shift']());}catch(_0x1509dc){_0x3d32fb['push'](_0x3d32fb['shift']());}}}(a306_0x17b9,0xe4d13));import a306_0x3ca9d9 from'node:fs';import a306_0x2c137e from'node:path';import a306_0x24b21f from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a306_0x17b9(){const _0x59b015=['minVersion','all','8071800uaQxBL','log','12198762vdIPgK','stableVersion','3270rFIQSC','98zfirnW','utf-8','\x20\x20\x20Stable\x20version:\x20','readFileSync','\x1b[1m','package.json','coerce','5158fnAMsV','sdk','version','dependencies','3908sOPTxU','npm\x20install\x20','16049MAuSEd','↪\x20SDK\x20update\x20available','@lovrabet/sdk','join','\x1b[33m','devDependencies','utf8','777714rfnynj','\x1b[0m','331dwwnlJ','4712064bIoozt','existsSync','\x20\x20\x20Upgrade\x20command:\x20','needsUpgrade','11950djXvSw','parse','\x20\x20\x20Current\x20version:\x20','test','packageName'];a306_0x17b9=function(){return _0x59b015;};return a306_0x17b9();}const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x564b86){const _0x4d8a86=a306_0x80e3,_0x5168cf=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x5168cf['some'](_0x5eab2c=>_0x5eab2c[_0x4d8a86(0x81)](_0x564b86));}function getInstalledVersion(_0x52c346,_0x25fbe4){const _0x43c3af=a306_0x80e3;try{const _0x5dd325=a306_0x2c137e[_0x43c3af(0x73)](_0x52c346,'node_modules',_0x25fbe4,_0x43c3af(0x68));if(a306_0x3ca9d9[_0x43c3af(0x7b)](_0x5dd325)){const _0x41bf1f=JSON['parse'](a306_0x3ca9d9[_0x43c3af(0x8d)](_0x5dd325,_0x43c3af(0x8b)));return _0x41bf1f[_0x43c3af(0x6c)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x56be2b=a306_0x80e3;try{const _0x485009=await getCdnConfig();return _0x485009?.[_0x56be2b(0x6b)]?.['node']?.[_0x56be2b(0x88)]||null;}catch{return null;}}function a306_0x80e3(_0x24c440,_0x501fc7){_0x24c440=_0x24c440-0x68;const _0x17b927=a306_0x17b9();let _0x80e30e=_0x17b927[_0x24c440];return _0x80e30e;}async function getSdkPackageName(){const _0x447941=a306_0x80e3;try{const _0x4fbcf9=await getCdnConfig();return _0x4fbcf9?.['sdk']?.['node']?.[_0x447941(0x82)]||_0x447941(0x72);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x4d30d6){const _0xafb84b=a306_0x80e3,_0x4ca92b=a306_0x2c137e[_0xafb84b(0x73)](_0x4d30d6,'package.json'),[_0x679f38,_0x2cedc0]=await Promise[_0xafb84b(0x84)]([getSdkStableVersion(),getSdkPackageName()]),_0x10523e=_0x679f38||FALLBACK_MIN_SDK_VERSION;if(!a306_0x3ca9d9[_0xafb84b(0x7b)](_0x4ca92b))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x10523e,'packageName':_0x2cedc0,'stableVersion':_0x679f38};try{const _0x206ccf=JSON[_0xafb84b(0x7f)](a306_0x3ca9d9[_0xafb84b(0x8d)](_0x4ca92b,'utf8')),_0x153a09=_0x206ccf[_0xafb84b(0x6d)]||{},_0x529996=_0x206ccf[_0xafb84b(0x75)]||{},_0x4d2d9e=_0x153a09[_0x2cedc0]||_0x529996[_0x2cedc0];if(!_0x4d2d9e)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x10523e,'packageName':_0x2cedc0,'stableVersion':_0x679f38};let _0x1e8c73=getInstalledVersion(_0x4d30d6,_0x2cedc0);!_0x1e8c73&&(_0x1e8c73=_0x4d2d9e);if(isNonNumericVersion(_0x4d2d9e))return{'installed':!![],'version':_0x1e8c73,'needsUpgrade':![],'minVersion':_0x10523e,'packageName':_0x2cedc0,'stableVersion':_0x679f38};const _0x40f08f=a306_0x24b21f[_0xafb84b(0x69)](_0x1e8c73),_0x5e8560=a306_0x24b21f['coerce'](_0x10523e),_0x5604dd=_0x40f08f&&_0x5e8560?a306_0x24b21f['lt'](_0x40f08f,_0x5e8560):![];return{'installed':!![],'version':_0x1e8c73,'needsUpgrade':_0x5604dd,'minVersion':_0x10523e,'packageName':_0x2cedc0,'stableVersion':_0x679f38};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x10523e,'packageName':_0x2cedc0,'stableVersion':_0x679f38};}}export function checkSdkVersionSync(_0x958e0a){const _0x5e7e4e=a306_0x80e3,_0x414c69=a306_0x2c137e[_0x5e7e4e(0x73)](_0x958e0a,_0x5e7e4e(0x68)),_0x4ce986=_0x5e7e4e(0x72);if(!a306_0x3ca9d9[_0x5e7e4e(0x7b)](_0x414c69))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4ce986,'stableVersion':null};try{const _0x271616=JSON[_0x5e7e4e(0x7f)](a306_0x3ca9d9['readFileSync'](_0x414c69,_0x5e7e4e(0x76))),_0xf71beb=_0x271616[_0x5e7e4e(0x6d)]||{},_0x309e4a=_0x271616[_0x5e7e4e(0x75)]||{},_0x2e28ce=_0xf71beb[_0x4ce986]||_0x309e4a[_0x4ce986];if(!_0x2e28ce)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4ce986,'stableVersion':null};let _0x26ba3b=getInstalledVersion(_0x958e0a,_0x4ce986);!_0x26ba3b&&(_0x26ba3b=_0x2e28ce);if(isNonNumericVersion(_0x2e28ce))return{'installed':!![],'version':_0x26ba3b,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4ce986,'stableVersion':null};const _0x3fa533=a306_0x24b21f[_0x5e7e4e(0x69)](_0x26ba3b),_0x25da2b=_0x3fa533?a306_0x24b21f['lt'](_0x3fa533,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x26ba3b,'needsUpgrade':_0x25da2b,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4ce986,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x4ce986,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x29cd64){const _0x3594cd=a306_0x80e3;if(!_0x29cd64[_0x3594cd(0x7d)])return;const _0x3f23c3=_0x3594cd(0x74),_0x2a480e=_0x3594cd(0x78),_0x1f8f47=_0x3594cd(0x8e),_0x2bf50a=_0x29cd64[_0x3594cd(0x82)]||_0x3594cd(0x72),_0x48fb8a=_0x29cd64[_0x3594cd(0x88)]||_0x29cd64[_0x3594cd(0x83)],_0x1efc90=_0x3594cd(0x6f)+_0x2bf50a+'@'+(_0x48fb8a||'latest');console['log'](),console['log'](''+_0x3f23c3+_0x1f8f47+_0x3594cd(0x71)+_0x2a480e),console[_0x3594cd(0x86)](_0x3f23c3+_0x3594cd(0x80)+_0x2bf50a+'@'+_0x29cd64['version']+_0x2a480e),console['log'](_0x3f23c3+_0x3594cd(0x8c)+_0x48fb8a+_0x2a480e),console[_0x3594cd(0x86)](_0x3f23c3+_0x3594cd(0x7c)+_0x1efc90+_0x2a480e),console[_0x3594cd(0x86)]();}
@@ -1 +1 @@
1
- (function(_0x5be9f8,_0xb60ae3){const _0x587f7f=a309_0x4563,_0x3a3af3=_0x5be9f8();while(!![]){try{const _0x2cf729=parseInt(_0x587f7f(0xb0))/0x1*(parseInt(_0x587f7f(0xb7))/0x2)+parseInt(_0x587f7f(0xc0))/0x3+parseInt(_0x587f7f(0x9f))/0x4*(parseInt(_0x587f7f(0xa5))/0x5)+-parseInt(_0x587f7f(0xa0))/0x6+-parseInt(_0x587f7f(0xb1))/0x7*(-parseInt(_0x587f7f(0xac))/0x8)+parseInt(_0x587f7f(0xc2))/0x9*(parseInt(_0x587f7f(0xa7))/0xa)+-parseInt(_0x587f7f(0xaa))/0xb*(parseInt(_0x587f7f(0xb9))/0xc);if(_0x2cf729===_0xb60ae3)break;else _0x3a3af3['push'](_0x3a3af3['shift']());}catch(_0x307a02){_0x3a3af3['push'](_0x3a3af3['shift']());}}}(a309_0x5b62,0x4857a));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a309_0xf623d6 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a309_0x5b62(){const _0x47189b=['latest','needsUpgrade','462837EpmNdj','1.0.0','27MeQNoJ','Minimum\x20supported:\x20','upgradeMessage','utf-8','minimumVersion','25064LUHXfo','3000870OnDUMZ','coerce','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Stable\x20version:\x20','npm\x20install\x20-g\x20','5HRSlmk','join','794510iagzbI','currentVersion','\x20\x20\x20Current\x20CLI\x20version:\x20','864897aNakrh','../..','8oAeGuA','↪\x20New\x20version\x20available','stableVersion','↪\x20Critical\x20CLI\x20upgrade\x20required','447571wqqDak','200319qUCeDl','\x20\x20\x20','\x20\x20\x20Recommended\x20stable:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','filter','\x1b[0m','2BbeIpr','\x1b[31m','12hgkyhv','belowMinimum','log','minimumVersionMessage','version'];a309_0x5b62=function(){return _0x47189b;};return a309_0x5b62();}export function getCliUpgradeCommand(_0x4283b2){const _0x161566=a309_0x4563,_0x31a596=_0x4283b2[_0x161566(0xae)]||_0x161566(0xbe);return _0x161566(0xa4)+NPM_PACKAGE_NAME+'@'+_0x31a596;}function a309_0x4563(_0x4e4e85,_0xf1abf7){_0x4e4e85=_0x4e4e85-0x9f;const _0x5b626f=a309_0x5b62();let _0x456340=_0x5b626f[_0x4e4e85];return _0x456340;}function getCurrentCliVersion(){const _0x49f004=a309_0x4563;try{const _0x5aa06b=fileURLToPath(import.meta.url),_0x2bf6bd=resolve(dirname(_0x5aa06b),_0x49f004(0xab)),_0x566ffd=resolve(_0x2bf6bd,'package.json'),_0x31fa71=JSON['parse'](readFileSync(_0x566ffd,_0x49f004(0xc5)));return _0x31fa71[_0x49f004(0xbd)]||_0x49f004(0xc1);}catch{return _0x49f004(0xc1);}}export async function checkCliVersion(){const _0x9ab63=a309_0x4563,_0x5306bf=getCurrentCliVersion(),_0x320116=await getCliVersionPolicy(),_0x1d2745=_0x320116?.[_0x9ab63(0xae)]||null,_0x487c44=_0x320116?.['minimumVersion']||null;let _0x104437=![],_0x56c915=![];const _0x35a830=a309_0xf623d6[_0x9ab63(0xa1)](_0x5306bf);if(_0x35a830&&_0x1d2745)try{const _0x1c5d9f=a309_0xf623d6[_0x9ab63(0xa1)](_0x1d2745);if(_0x1c5d9f)_0x104437=a309_0xf623d6['lt'](_0x35a830,_0x1c5d9f);}catch{}if(_0x35a830&&_0x487c44)try{const _0x47d1fa=a309_0xf623d6['coerce'](_0x487c44);if(_0x47d1fa)_0x56c915=a309_0xf623d6['lt'](_0x35a830,_0x47d1fa);}catch{}return _0x56c915&&(_0x104437=!![]),{'currentVersion':_0x5306bf,'stableVersion':_0x1d2745,'minimumVersion':_0x487c44,'needsUpgrade':_0x104437,'belowMinimum':_0x56c915,'isPreRelease':![],'upgradeMessage':_0x320116?.[_0x9ab63(0xc4)],'minimumVersionMessage':_0x320116?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x28bfdb){const _0x18f00b=a309_0x4563;if(!_0x28bfdb[_0x18f00b(0xbf)]&&!_0x28bfdb['belowMinimum'])return;const _0x2b3704=_0x18f00b(0xb8),_0x21b1cf='\x1b[33m',_0x47fd49=_0x18f00b(0xb6),_0x50aacd='\x1b[1m',_0x281252=getCliUpgradeCommand(_0x28bfdb);console[_0x18f00b(0xbb)](),_0x28bfdb[_0x18f00b(0xba)]?(console[_0x18f00b(0xbb)](''+_0x2b3704+_0x50aacd+_0x18f00b(0xaf)+_0x47fd49),console[_0x18f00b(0xbb)](_0x2b3704+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x28bfdb[_0x18f00b(0xa8)]+_0x47fd49),_0x28bfdb[_0x18f00b(0xc6)]&&console['log'](_0x2b3704+'\x20\x20\x20Minimum\x20supported:\x20'+_0x28bfdb[_0x18f00b(0xc6)]+_0x47fd49),_0x28bfdb[_0x18f00b(0xae)]&&_0x28bfdb[_0x18f00b(0xae)]!==_0x28bfdb[_0x18f00b(0xc6)]&&console['log'](_0x2b3704+_0x18f00b(0xb3)+_0x28bfdb['stableVersion']+_0x47fd49),_0x28bfdb[_0x18f00b(0xbc)]&&console['log'](_0x2b3704+'\x20\x20\x20'+_0x28bfdb[_0x18f00b(0xbc)]+_0x47fd49),console[_0x18f00b(0xbb)](_0x2b3704+_0x18f00b(0xa2)+_0x281252+_0x47fd49)):(console[_0x18f00b(0xbb)](''+_0x21b1cf+_0x50aacd+_0x18f00b(0xad)+_0x47fd49),console['log'](_0x21b1cf+_0x18f00b(0xa9)+_0x28bfdb[_0x18f00b(0xa8)]+_0x47fd49),console[_0x18f00b(0xbb)](_0x21b1cf+_0x18f00b(0xa3)+_0x28bfdb[_0x18f00b(0xae)]+_0x47fd49),_0x28bfdb[_0x18f00b(0xc4)]&&console[_0x18f00b(0xbb)](_0x21b1cf+_0x18f00b(0xb2)+_0x28bfdb[_0x18f00b(0xc4)]+_0x47fd49),console['log'](_0x21b1cf+_0x18f00b(0xa2)+_0x281252+_0x47fd49)),console['log']();}export function assertCliVersionSupported(_0x558266){const _0x4ffd33=a309_0x4563;if(!_0x558266[_0x4ffd33(0xba)])return;const _0x26c806=[_0x558266[_0x4ffd33(0xbc)],'Current\x20version:\x20'+_0x558266['currentVersion'],_0x558266['minimumVersion']?_0x4ffd33(0xc3)+_0x558266[_0x4ffd33(0xc6)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x558266)][_0x4ffd33(0xb5)](Boolean)[_0x4ffd33(0xa6)]('\x0a');throw CliErrors['validation'](_0x4ffd33(0xb4),_0x26c806);}
1
+ function a307_0x5e3d(_0x3a142a,_0x51236f){_0x3a142a=_0x3a142a-0x120;const _0x142a3d=a307_0x142a();let _0x5e3d50=_0x142a3d[_0x3a142a];return _0x5e3d50;}(function(_0xf9ff7a,_0x15dada){const _0x3de25c=a307_0x5e3d,_0x29c1c3=_0xf9ff7a();while(!![]){try{const _0x3fcc62=parseInt(_0x3de25c(0x147))/0x1*(-parseInt(_0x3de25c(0x129))/0x2)+-parseInt(_0x3de25c(0x141))/0x3*(-parseInt(_0x3de25c(0x13b))/0x4)+parseInt(_0x3de25c(0x138))/0x5*(-parseInt(_0x3de25c(0x144))/0x6)+-parseInt(_0x3de25c(0x135))/0x7+parseInt(_0x3de25c(0x13a))/0x8*(-parseInt(_0x3de25c(0x126))/0x9)+parseInt(_0x3de25c(0x12c))/0xa+parseInt(_0x3de25c(0x13d))/0xb;if(_0x3fcc62===_0x15dada)break;else _0x29c1c3['push'](_0x29c1c3['shift']());}catch(_0x3b89ab){_0x29c1c3['push'](_0x29c1c3['shift']());}}}(a307_0x142a,0x85b38));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a307_0x1efa64 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a307_0x142a(){const _0x1faa9b=['Current\x20version:\x20','version','utf-8','package.json','upgradeMessage','\x20\x20\x20Recommended\x20stable:\x20','coerce','6515922avQIDb','join','1.0.0','2213885vUhKSU','latest','472ugDbEt','439876TrTMIu','stableVersion','18440807LwSHAZ','Minimum\x20supported:\x20','\x1b[33m','validation','3PJnlFf','\x1b[31m','↪\x20Critical\x20CLI\x20upgrade\x20required','6KorVZo','\x20\x20\x20Current\x20CLI\x20version:\x20','currentVersion','1ywIjEm','↪\x20New\x20version\x20available','\x20\x20\x20','minimumVersion','log','\x1b[1m','\x20\x20\x20Minimum\x20supported:\x20','belowMinimum','minimumVersionMessage','84519CRMWar','filter','npm\x20install\x20-g\x20','438082ltCRba','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Stable\x20version:\x20','9079670czCSOC','needsUpgrade'];a307_0x142a=function(){return _0x1faa9b;};return a307_0x142a();}export function getCliUpgradeCommand(_0x2ed2ac){const _0x996447=a307_0x5e3d,_0x54f84e=_0x2ed2ac[_0x996447(0x13c)]||_0x996447(0x139);return _0x996447(0x128)+NPM_PACKAGE_NAME+'@'+_0x54f84e;}function getCurrentCliVersion(){const _0x4d082a=a307_0x5e3d;try{const _0x864e7c=fileURLToPath(import.meta.url),_0x22b752=resolve(dirname(_0x864e7c),'../..'),_0x5eaab4=resolve(_0x22b752,_0x4d082a(0x131)),_0x390e33=JSON['parse'](readFileSync(_0x5eaab4,_0x4d082a(0x130)));return _0x390e33[_0x4d082a(0x12f)]||_0x4d082a(0x137);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x3506a6=a307_0x5e3d,_0x1ceb65=getCurrentCliVersion(),_0x1fc4e0=await getCliVersionPolicy(),_0x48e71b=_0x1fc4e0?.[_0x3506a6(0x13c)]||null,_0x49147b=_0x1fc4e0?.[_0x3506a6(0x120)]||null;let _0x38810b=![],_0x54173b=![];const _0x5ee3f9=a307_0x1efa64[_0x3506a6(0x134)](_0x1ceb65);if(_0x5ee3f9&&_0x48e71b)try{const _0xb5863f=a307_0x1efa64[_0x3506a6(0x134)](_0x48e71b);if(_0xb5863f)_0x38810b=a307_0x1efa64['lt'](_0x5ee3f9,_0xb5863f);}catch{}if(_0x5ee3f9&&_0x49147b)try{const _0x5a08d8=a307_0x1efa64[_0x3506a6(0x134)](_0x49147b);if(_0x5a08d8)_0x54173b=a307_0x1efa64['lt'](_0x5ee3f9,_0x5a08d8);}catch{}return _0x54173b&&(_0x38810b=!![]),{'currentVersion':_0x1ceb65,'stableVersion':_0x48e71b,'minimumVersion':_0x49147b,'needsUpgrade':_0x38810b,'belowMinimum':_0x54173b,'isPreRelease':![],'upgradeMessage':_0x1fc4e0?.[_0x3506a6(0x132)],'minimumVersionMessage':_0x1fc4e0?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x40b6c0){const _0x2f65ad=a307_0x5e3d;if(!_0x40b6c0[_0x2f65ad(0x12d)]&&!_0x40b6c0[_0x2f65ad(0x124)])return;const _0x76f8a2=_0x2f65ad(0x142),_0x2a53df=_0x2f65ad(0x13f),_0x3a8957='\x1b[0m',_0x2708d8=_0x2f65ad(0x122),_0x4ecdc5=getCliUpgradeCommand(_0x40b6c0);console['log'](),_0x40b6c0['belowMinimum']?(console[_0x2f65ad(0x121)](''+_0x76f8a2+_0x2708d8+_0x2f65ad(0x143)+_0x3a8957),console[_0x2f65ad(0x121)](_0x76f8a2+_0x2f65ad(0x145)+_0x40b6c0[_0x2f65ad(0x146)]+_0x3a8957),_0x40b6c0[_0x2f65ad(0x120)]&&console['log'](_0x76f8a2+_0x2f65ad(0x123)+_0x40b6c0[_0x2f65ad(0x120)]+_0x3a8957),_0x40b6c0[_0x2f65ad(0x13c)]&&_0x40b6c0[_0x2f65ad(0x13c)]!==_0x40b6c0['minimumVersion']&&console[_0x2f65ad(0x121)](_0x76f8a2+_0x2f65ad(0x133)+_0x40b6c0['stableVersion']+_0x3a8957),_0x40b6c0[_0x2f65ad(0x125)]&&console[_0x2f65ad(0x121)](_0x76f8a2+_0x2f65ad(0x149)+_0x40b6c0[_0x2f65ad(0x125)]+_0x3a8957),console['log'](_0x76f8a2+_0x2f65ad(0x12a)+_0x4ecdc5+_0x3a8957)):(console[_0x2f65ad(0x121)](''+_0x2a53df+_0x2708d8+_0x2f65ad(0x148)+_0x3a8957),console[_0x2f65ad(0x121)](_0x2a53df+_0x2f65ad(0x145)+_0x40b6c0[_0x2f65ad(0x146)]+_0x3a8957),console[_0x2f65ad(0x121)](_0x2a53df+_0x2f65ad(0x12b)+_0x40b6c0[_0x2f65ad(0x13c)]+_0x3a8957),_0x40b6c0[_0x2f65ad(0x132)]&&console['log'](_0x2a53df+'\x20\x20\x20'+_0x40b6c0[_0x2f65ad(0x132)]+_0x3a8957),console[_0x2f65ad(0x121)](_0x2a53df+_0x2f65ad(0x12a)+_0x4ecdc5+_0x3a8957)),console[_0x2f65ad(0x121)]();}export function assertCliVersionSupported(_0x199987){const _0x5afac2=a307_0x5e3d;if(!_0x199987[_0x5afac2(0x124)])return;const _0x559ad1=[_0x199987['minimumVersionMessage'],_0x5afac2(0x12e)+_0x199987[_0x5afac2(0x146)],_0x199987[_0x5afac2(0x120)]?_0x5afac2(0x13e)+_0x199987[_0x5afac2(0x120)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x199987)][_0x5afac2(0x127)](Boolean)[_0x5afac2(0x136)]('\x0a');throw CliErrors[_0x5afac2(0x140)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x559ad1);}
@@ -1 +1 @@
1
- (function(_0x4a69e9,_0x36479e){const _0x1d0b62=a310_0x4f36,_0xda212e=_0x4a69e9();while(!![]){try{const _0x32abe9=-parseInt(_0x1d0b62(0x1c8))/0x1*(parseInt(_0x1d0b62(0x1d1))/0x2)+-parseInt(_0x1d0b62(0x1cb))/0x3*(parseInt(_0x1d0b62(0x1ca))/0x4)+-parseInt(_0x1d0b62(0x1ce))/0x5+parseInt(_0x1d0b62(0x1d3))/0x6*(-parseInt(_0x1d0b62(0x1bd))/0x7)+parseInt(_0x1d0b62(0x1c3))/0x8*(-parseInt(_0x1d0b62(0x1bc))/0x9)+parseInt(_0x1d0b62(0x1bb))/0xa+parseInt(_0x1d0b62(0x1be))/0xb*(parseInt(_0x1d0b62(0x1cd))/0xc);if(_0x32abe9===_0x36479e)break;else _0xda212e['push'](_0xda212e['shift']());}catch(_0xc3f0ed){_0xda212e['push'](_0xda212e['shift']());}}}(a310_0x1096,0x9da5b));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(_0x5d0fe7){const _0x417584=a310_0x4f36;return typeof _0x5d0fe7===_0x417584(0x1c7)&&_0x5d0fe7['trim']()['length']>0x0?_0x5d0fe7[_0x417584(0x1c9)]():null;}function a310_0x1096(){const _0x295dad=['31836krurlr','2146190oCbPlr','application/json','latestVersion','464586GYAlUT','minimumVersion','989622wKSKdp','now','7484710tYhqam','63zbKGHk','49ruFXGz','11110vACxvA','recommendedVersion','json','object','stableVersion','46056FYJumV','upgradeMessage','cli','signal','string','2axKVpX','trim','2774384MgMLim','3evqrML','abort'];a310_0x1096=function(){return _0x295dad;};return a310_0x1096();}function normalizeCliVersionPolicy(_0x4e23ef){const _0x3cbc6d=a310_0x4f36;if(!_0x4e23ef||typeof _0x4e23ef!==_0x3cbc6d(0x1c1))return null;const _0x5e38c0=_0x4e23ef,_0x16b94f=_0x5e38c0[_0x3cbc6d(0x1c5)]&&typeof _0x5e38c0[_0x3cbc6d(0x1c5)]===_0x3cbc6d(0x1c1)?_0x5e38c0[_0x3cbc6d(0x1c5)]:_0x5e38c0,_0x3e57ab=pickString(_0x16b94f[_0x3cbc6d(0x1c2)])||pickString(_0x16b94f[_0x3cbc6d(0x1d0)])||pickString(_0x16b94f[_0x3cbc6d(0x1bf)]),_0x229e97=pickString(_0x16b94f[_0x3cbc6d(0x1d2)])||pickString(_0x16b94f['minVersion']);if(!_0x3e57ab&&!_0x229e97)return null;return{'stableVersion':_0x3e57ab,'minimumVersion':_0x229e97,'upgradeMessage':pickString(_0x16b94f[_0x3cbc6d(0x1c4)])||undefined,'minimumVersionMessage':pickString(_0x16b94f['minimumVersionMessage'])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0xeebcfc=a310_0x4f36,_0xbf868=new AbortController(),_0x520642=setTimeout(()=>_0xbf868[_0xeebcfc(0x1cc)](),FETCH_TIMEOUT_MS);try{const _0x508441=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0xeebcfc(0x1cf)},'signal':_0xbf868[_0xeebcfc(0x1c6)]});if(!_0x508441['ok'])return null;const _0x121a61=await _0x508441[_0xeebcfc(0x1c0)]();return _0x121a61&&typeof _0x121a61===_0xeebcfc(0x1c1)?_0x121a61:null;}catch{return null;}finally{clearTimeout(_0x520642);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}function a310_0x4f36(_0x5e7d58,_0x5e5910){_0x5e7d58=_0x5e7d58-0x1bb;const _0x1096b3=a310_0x1096();let _0x4f3653=_0x1096b3[_0x5e7d58];return _0x4f3653;}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x115957=a310_0x4f36,_0x1a5bf9=Date[_0x115957(0x1d4)]();if(hasCachedConfig){const _0x2a1612=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x1a5bf9-cacheTime<_0x2a1612)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x1a5bf9,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x1f18b8,_0x28d958){const _0x2bcb09=a308_0x5a19,_0x1b1a45=_0x1f18b8();while(!![]){try{const _0x36de83=parseInt(_0x2bcb09(0x10c))/0x1+-parseInt(_0x2bcb09(0x119))/0x2+-parseInt(_0x2bcb09(0x115))/0x3+-parseInt(_0x2bcb09(0x112))/0x4*(parseInt(_0x2bcb09(0x10e))/0x5)+parseInt(_0x2bcb09(0x107))/0x6+parseInt(_0x2bcb09(0x117))/0x7+-parseInt(_0x2bcb09(0x118))/0x8*(-parseInt(_0x2bcb09(0x10a))/0x9);if(_0x36de83===_0x28d958)break;else _0x1b1a45['push'](_0x1b1a45['shift']());}catch(_0x2623ca){_0x1b1a45['push'](_0x1b1a45['shift']());}}}(a308_0x544e,0x25db0));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(_0x4f8c8e){const _0x532c4b=a308_0x5a19;return typeof _0x4f8c8e==='string'&&_0x4f8c8e[_0x532c4b(0x109)]()['length']>0x0?_0x4f8c8e[_0x532c4b(0x109)]():null;}function normalizeCliVersionPolicy(_0x511089){const _0x23815c=a308_0x5a19;if(!_0x511089||typeof _0x511089!==_0x23815c(0x10f))return null;const _0x13c6ce=_0x511089,_0x44fede=_0x13c6ce['cli']&&typeof _0x13c6ce[_0x23815c(0x11a)]==='object'?_0x13c6ce[_0x23815c(0x11a)]:_0x13c6ce,_0x39d05d=pickString(_0x44fede[_0x23815c(0x116)])||pickString(_0x44fede[_0x23815c(0x111)])||pickString(_0x44fede['recommendedVersion']),_0x3e5856=pickString(_0x44fede[_0x23815c(0x106)])||pickString(_0x44fede['minVersion']);if(!_0x39d05d&&!_0x3e5856)return null;return{'stableVersion':_0x39d05d,'minimumVersion':_0x3e5856,'upgradeMessage':pickString(_0x44fede[_0x23815c(0x110)])||undefined,'minimumVersionMessage':pickString(_0x44fede[_0x23815c(0x113)])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x597e5d=a308_0x5a19,_0x3c150c=new AbortController(),_0x1d3cde=setTimeout(()=>_0x3c150c[_0x597e5d(0x10b)](),FETCH_TIMEOUT_MS);try{const _0x1d0b89=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x3c150c[_0x597e5d(0x114)]});if(!_0x1d0b89['ok'])return null;const _0x17011c=await _0x1d0b89[_0x597e5d(0x108)]();return _0x17011c&&typeof _0x17011c===_0x597e5d(0x10f)?_0x17011c:null;}catch{return null;}finally{clearTimeout(_0x1d3cde);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x1e4523=a308_0x5a19,_0x5c111f=Date[_0x1e4523(0x10d)]();if(hasCachedConfig){const _0x52b0d1=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5c111f-cacheTime<_0x52b0d1)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x5c111f,hasCachedConfig=!![],cachedConfig;}function a308_0x544e(){const _0x2614d8=['256259ZhFqkT','now','32415mzQtWt','object','upgradeMessage','latestVersion','168zMJfDx','minimumVersionMessage','signal','607890pisDEC','stableVersion','399714eWqQAr','953968LcdumU','470986ntIPQp','cli','minimumVersion','450720VDQltR','json','trim','36cAFhHO','abort'];a308_0x544e=function(){return _0x2614d8;};return a308_0x544e();}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}function a308_0x5a19(_0x2c8357,_0x30c8fd){_0x2c8357=_0x2c8357-0x106;const _0x544ec7=a308_0x544e();let _0x5a19f4=_0x544ec7[_0x2c8357];return _0x5a19f4;}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- (function(_0x3308b7,_0x7f82d0){const _0x6cacdc=a311_0x3492,_0x12daca=_0x3308b7();while(!![]){try{const _0x35db53=parseInt(_0x6cacdc(0x1db))/0x1+-parseInt(_0x6cacdc(0x1e3))/0x2*(parseInt(_0x6cacdc(0x1e5))/0x3)+parseInt(_0x6cacdc(0x1dc))/0x4*(-parseInt(_0x6cacdc(0x1e4))/0x5)+parseInt(_0x6cacdc(0x1df))/0x6*(parseInt(_0x6cacdc(0x1e6))/0x7)+parseInt(_0x6cacdc(0x1e1))/0x8+-parseInt(_0x6cacdc(0x1e2))/0x9*(-parseInt(_0x6cacdc(0x1da))/0xa)+-parseInt(_0x6cacdc(0x1e0))/0xb;if(_0x35db53===_0x7f82d0)break;else _0x12daca['push'](_0x12daca['shift']());}catch(_0x4bdfdb){_0x12daca['push'](_0x12daca['shift']());}}}(a311_0x516d,0x1a761));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a311_0x3c5f47,getMultiAppConfigs as a311_0x544986,getTemplateBaseUrl as a311_0x475c31}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a311_0x516d(){const _0x215e26=['1065208FRzWUE','36rnzQtc','3142OqMXQB','3415eFvjHT','39FCKVQQ','84mqkJLr','45740NVZOLA','11328ZJsxvA','260vbHaqr','string','env','57528OvstsR','1150908QdDVJL'];a311_0x516d=function(){return _0x215e26;};return a311_0x516d();}export{isInProject}from'../context.js';export function readConfig(_0x39cc32){const _0x1c179b=a311_0x3492,_0x27f817=readRawConfig(_0x39cc32);return _0x27f817[_0x1c179b(0x1de)]&&typeof _0x27f817[_0x1c179b(0x1de)]===_0x1c179b(0x1dd)&&initEnv(_0x27f817[_0x1c179b(0x1de)]),_0x27f817;}export function getConfigAppCode(){return a311_0x3c5f47();}export function getMultiAppConfigs(_0x4a16cd='project'){return a311_0x544986(_0x4a16cd);}function a311_0x3492(_0x2951d1,_0x26f895){_0x2951d1=_0x2951d1-0x1da;const _0x516d3b=a311_0x516d();let _0x3492ee=_0x516d3b[_0x2951d1];return _0x3492ee;}export function getTemplateBaseUrl(){return a311_0x475c31();}
1
+ const a309_0x176ea6=a309_0x621c;(function(_0x5050cc,_0x55aa5f){const _0x458c85=a309_0x621c,_0x761e5c=_0x5050cc();while(!![]){try{const _0x2e830a=-parseInt(_0x458c85(0x158))/0x1+-parseInt(_0x458c85(0x15a))/0x2+-parseInt(_0x458c85(0x15b))/0x3*(parseInt(_0x458c85(0x15c))/0x4)+parseInt(_0x458c85(0x152))/0x5*(-parseInt(_0x458c85(0x157))/0x6)+-parseInt(_0x458c85(0x155))/0x7*(parseInt(_0x458c85(0x153))/0x8)+parseInt(_0x458c85(0x154))/0x9*(-parseInt(_0x458c85(0x156))/0xa)+-parseInt(_0x458c85(0x15d))/0xb*(-parseInt(_0x458c85(0x159))/0xc);if(_0x2e830a===_0x55aa5f)break;else _0x761e5c['push'](_0x761e5c['shift']());}catch(_0x319009){_0x761e5c['push'](_0x761e5c['shift']());}}}(a309_0x425d,0xd5087));function a309_0x621c(_0x1ce099,_0x15a6e0){_0x1ce099=_0x1ce099-0x151;const _0x425da3=a309_0x425d();let _0x621cfc=_0x425da3[_0x1ce099];return _0x621cfc;}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a309_0x2a42f4,getMultiAppConfigs as a309_0x4e5b1f,getTemplateBaseUrl as a309_0x1bc536}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a309_0x425d(){const _0x5b998e=['12VqtvhB','921225hijdsU','60oVpvoB','194752aAibbw','681QSGyrQ','1392JOLQAT','10322257vtGWsB','project','env','2667145SdCcWC','16mDFeyo','45vFbmdV','5713267JWFlYH','45070onmXUq'];a309_0x425d=function(){return _0x5b998e;};return a309_0x425d();}export function readConfig(_0x18fa99){const _0x2cfc5d=a309_0x621c,_0x458b8e=readRawConfig(_0x18fa99);return _0x458b8e[_0x2cfc5d(0x151)]&&typeof _0x458b8e[_0x2cfc5d(0x151)]==='string'&&initEnv(_0x458b8e[_0x2cfc5d(0x151)]),_0x458b8e;}export function getConfigAppCode(){return a309_0x2a42f4();}export function getMultiAppConfigs(_0x71e792=a309_0x176ea6(0x15e)){return a309_0x4e5b1f(_0x71e792);}export function getTemplateBaseUrl(){return a309_0x1bc536();}
@@ -1 +1 @@
1
- function a312_0x4e2e(_0x16e790,_0x56b89c){_0x16e790=_0x16e790-0x150;const _0x8ecbcf=a312_0x8ecb();let _0x4e2e6c=_0x8ecbcf[_0x16e790];return _0x4e2e6c;}function a312_0x8ecb(){const _0x567f6f=['3ZLfRhP','38330nCcDOy','12YLSKXw','isFinite','object','2153895WMAXAc','trim','1559564rhRwYZ','728371MPxoMD','212751RxNzQK','452392EFgYcY','477UxESfW','138070SwbcVn','string'];a312_0x8ecb=function(){return _0x567f6f;};return a312_0x8ecb();}(function(_0x44cfa1,_0x367221){const _0x1f5f96=a312_0x4e2e,_0x118a4f=_0x44cfa1();while(!![]){try{const _0x4aa766=-parseInt(_0x1f5f96(0x15a))/0x1+-parseInt(_0x1f5f96(0x152))/0x2*(parseInt(_0x1f5f96(0x151))/0x3)+-parseInt(_0x1f5f96(0x158))/0x4+parseInt(_0x1f5f96(0x156))/0x5+-parseInt(_0x1f5f96(0x153))/0x6*(parseInt(_0x1f5f96(0x159))/0x7)+-parseInt(_0x1f5f96(0x15b))/0x8+-parseInt(_0x1f5f96(0x15c))/0x9*(-parseInt(_0x1f5f96(0x15d))/0xa);if(_0x4aa766===_0x367221)break;else _0x118a4f['push'](_0x118a4f['shift']());}catch(_0x3f03f9){_0x118a4f['push'](_0x118a4f['shift']());}}}(a312_0x8ecb,0x43678));function toFiniteNumber(_0x4d1485){const _0x6599c2=a312_0x4e2e;if(typeof _0x4d1485==='number'&&Number[_0x6599c2(0x154)](_0x4d1485))return _0x4d1485;if(typeof _0x4d1485===_0x6599c2(0x150)){const _0x2e4d1d=_0x4d1485[_0x6599c2(0x157)]();if(!_0x2e4d1d)return undefined;const _0x5c9ca0=Number(_0x2e4d1d);if(Number['isFinite'](_0x5c9ca0))return _0x5c9ca0;}return undefined;}export function normalizeEntityWithIdResponse(_0x33763a){const _0x51d052=a312_0x4e2e,_0xa7ff05=toFiniteNumber(_0x33763a);if(_0xa7ff05!==undefined)return{'id':_0xa7ff05,'entity':{'id':_0xa7ff05}};if(!_0x33763a||typeof _0x33763a!==_0x51d052(0x155))return{'id':undefined,'entity':{}};const _0x2a2a03={..._0x33763a},_0x2cb281=toFiniteNumber(_0x2a2a03['id']);return _0x2cb281!==undefined&&(_0x2a2a03['id']=_0x2cb281),{'id':_0x2cb281,'entity':_0x2a2a03};}
1
+ (function(_0x29d2d0,_0x5ae565){const _0x219435=a310_0x1536,_0x3baa21=_0x29d2d0();while(!![]){try{const _0x548c6e=parseInt(_0x219435(0x120))/0x1*(-parseInt(_0x219435(0x128))/0x2)+-parseInt(_0x219435(0x11b))/0x3*(parseInt(_0x219435(0x12a))/0x4)+-parseInt(_0x219435(0x11e))/0x5+-parseInt(_0x219435(0x124))/0x6*(parseInt(_0x219435(0x129))/0x7)+-parseInt(_0x219435(0x123))/0x8+-parseInt(_0x219435(0x121))/0x9*(parseInt(_0x219435(0x11d))/0xa)+parseInt(_0x219435(0x125))/0xb;if(_0x548c6e===_0x5ae565)break;else _0x3baa21['push'](_0x3baa21['shift']());}catch(_0x155f0e){_0x3baa21['push'](_0x3baa21['shift']());}}}(a310_0x3957,0x2c23f));function a310_0x3957(){const _0x1198b8=['11045485YymcdW','object','string','3202yRkeKe','28gKzblI','2164qwnJWe','1155ktgetD','trim','410nbYvDP','800475GjVELa','isFinite','217yoqhtC','7659KDIVSh','number','61536CSiooF','97434GjYNxT'];a310_0x3957=function(){return _0x1198b8;};return a310_0x3957();}function toFiniteNumber(_0x42ab4f){const _0x193a8c=a310_0x1536;if(typeof _0x42ab4f===_0x193a8c(0x122)&&Number[_0x193a8c(0x11f)](_0x42ab4f))return _0x42ab4f;if(typeof _0x42ab4f===_0x193a8c(0x127)){const _0x4eeb3c=_0x42ab4f[_0x193a8c(0x11c)]();if(!_0x4eeb3c)return undefined;const _0x450cad=Number(_0x4eeb3c);if(Number['isFinite'](_0x450cad))return _0x450cad;}return undefined;}function a310_0x1536(_0x3d5727,_0x19d82e){_0x3d5727=_0x3d5727-0x11b;const _0x3957fb=a310_0x3957();let _0x153611=_0x3957fb[_0x3d5727];return _0x153611;}export function normalizeEntityWithIdResponse(_0x5ed044){const _0x1c6a58=a310_0x1536,_0x267b92=toFiniteNumber(_0x5ed044);if(_0x267b92!==undefined)return{'id':_0x267b92,'entity':{'id':_0x267b92}};if(!_0x5ed044||typeof _0x5ed044!==_0x1c6a58(0x126))return{'id':undefined,'entity':{}};const _0x2b9eaf={..._0x5ed044},_0x1bf2f4=toFiniteNumber(_0x2b9eaf['id']);return _0x1bf2f4!==undefined&&(_0x2b9eaf['id']=_0x1bf2f4),{'id':_0x1bf2f4,'entity':_0x2b9eaf};}
@@ -1 +1 @@
1
- (function(_0xd8da1,_0xf35b3a){const _0x9b0fb2=a313_0x3f06,_0x776d01=_0xd8da1();while(!![]){try{const _0x584a35=parseInt(_0x9b0fb2(0xe7))/0x1+-parseInt(_0x9b0fb2(0xe0))/0x2+-parseInt(_0x9b0fb2(0xde))/0x3*(parseInt(_0x9b0fb2(0xe5))/0x4)+-parseInt(_0x9b0fb2(0xe4))/0x5*(parseInt(_0x9b0fb2(0xe3))/0x6)+-parseInt(_0x9b0fb2(0xe2))/0x7+-parseInt(_0x9b0fb2(0xe1))/0x8+-parseInt(_0x9b0fb2(0xdf))/0x9*(-parseInt(_0x9b0fb2(0xe6))/0xa);if(_0x584a35===_0xf35b3a)break;else _0x776d01['push'](_0x776d01['shift']());}catch(_0x537907){_0x776d01['push'](_0x776d01['shift']());}}}(a313_0x2e24,0xd9f50));function a313_0x3f06(_0x2f9627,_0x575192){_0x2f9627=_0x2f9627-0xde;const _0x2e24bb=a313_0x2e24();let _0x3f0637=_0x2e24bb[_0x2f9627];return _0x3f0637;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a313_0x2e24(){const _0x3c61c5=['1703162oIgWks','230331LaInUz','27443655msvIUn','1240550EBbwXP','8763744VLDPQQ','5248887hevhWy','6jqmpnM','3131755xfeLcN','40VdRFqA','10XixFvs'];a313_0x2e24=function(){return _0x3c61c5;};return a313_0x2e24();}import{join}from'node:path';export async function copyDir(_0x2c160a,_0x320a05){const _0x5c7710=statSync(_0x2c160a);if(_0x5c7710['isDirectory']()){!existsSync(_0x320a05)&&mkdirSync(_0x320a05,{'recursive':!![]});const _0x8d5457=readdirSync(_0x2c160a);for(const _0x3929e9 of _0x8d5457){await copyDir(join(_0x2c160a,_0x3929e9),join(_0x320a05,_0x3929e9));}}else copyFileSync(_0x2c160a,_0x320a05);}export function ensureDir(_0x12789f){!existsSync(_0x12789f)&&mkdirSync(_0x12789f,{'recursive':!![]});}export function pathExists(_0x196bb2){return existsSync(_0x196bb2);}
1
+ function a311_0x32ce(_0x21e843,_0x1f5db9){_0x21e843=_0x21e843-0xf5;const _0x2e5b6b=a311_0x2e5b();let _0x32ce4f=_0x2e5b6b[_0x21e843];return _0x32ce4f;}(function(_0x2eb569,_0x4a6cb2){const _0x3b4295=a311_0x32ce,_0x4c0a00=_0x2eb569();while(!![]){try{const _0x47a566=parseInt(_0x3b4295(0xf8))/0x1*(parseInt(_0x3b4295(0xf9))/0x2)+parseInt(_0x3b4295(0xfe))/0x3*(parseInt(_0x3b4295(0xf6))/0x4)+-parseInt(_0x3b4295(0xfb))/0x5+parseInt(_0x3b4295(0xfa))/0x6+-parseInt(_0x3b4295(0xfd))/0x7+-parseInt(_0x3b4295(0xf7))/0x8+-parseInt(_0x3b4295(0xfc))/0x9;if(_0x47a566===_0x4a6cb2)break;else _0x4c0a00['push'](_0x4c0a00['shift']());}catch(_0x538cdf){_0x4c0a00['push'](_0x4c0a00['shift']());}}}(a311_0x2e5b,0x440ba));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x28386e,_0x506746){const _0x5a224b=a311_0x32ce,_0x11728a=statSync(_0x28386e);if(_0x11728a[_0x5a224b(0xf5)]()){!existsSync(_0x506746)&&mkdirSync(_0x506746,{'recursive':!![]});const _0xc00f18=readdirSync(_0x28386e);for(const _0x20586e of _0xc00f18){await copyDir(join(_0x28386e,_0x20586e),join(_0x506746,_0x20586e));}}else copyFileSync(_0x28386e,_0x506746);}export function ensureDir(_0x1beedd){!existsSync(_0x1beedd)&&mkdirSync(_0x1beedd,{'recursive':!![]});}function a311_0x2e5b(){const _0x582c89=['3377864MkOUoG','615paVcqW','isDirectory','8952YywXHP','872632dVcRbv','135658RHEyvM','8SzTAKX','1539900OTpwZo','147940BjKqnG','3223251omSGlZ'];a311_0x2e5b=function(){return _0x582c89;};return a311_0x2e5b();}export function pathExists(_0x285885){return existsSync(_0x285885);}