@lovrabet/rabetbase-cli 2.5.3-beta.2 → 2.5.3-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (387) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.d.ts +22 -0
  3. package/lib/api/api-group.js +1 -0
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.d.ts +18 -2
  6. package/lib/api/generate-api-file.js +1 -1
  7. package/lib/api/generate-sdk-config-file.js +1 -1
  8. package/lib/api/legacy-api-file.d.ts +11 -0
  9. package/lib/api/legacy-api-file.js +1 -0
  10. package/lib/api/model-registry-file.d.ts +36 -0
  11. package/lib/api/model-registry-file.js +1 -0
  12. package/lib/api/model-registry-scaffold.d.ts +7 -0
  13. package/lib/api/model-registry-scaffold.js +1 -0
  14. package/lib/api/model-source.d.ts +6 -0
  15. package/lib/api/model-source.js +1 -0
  16. package/lib/auth/auth-server-ui.js +1 -1
  17. package/lib/auth/auth-server.js +1 -1
  18. package/lib/auth/constant.js +1 -1
  19. package/lib/auth/get-cookie.js +1 -1
  20. package/lib/auth/get-session-user.js +1 -1
  21. package/lib/auth/is-session-valid.js +1 -1
  22. package/lib/auth/login-success-html.js +1 -1
  23. package/lib/auth/logout.js +1 -1
  24. package/lib/cli-flags.js +1 -1
  25. package/lib/cli.js +1 -1
  26. package/lib/commands/api/generate.js +1 -1
  27. package/lib/commands/api/index.js +1 -1
  28. package/lib/commands/api/list.js +1 -1
  29. package/lib/commands/api/pull.js +1 -1
  30. package/lib/commands/api/shared.js +1 -1
  31. package/lib/commands/app/index.js +1 -1
  32. package/lib/commands/app/list.js +1 -1
  33. package/lib/commands/app/members-list.js +1 -1
  34. package/lib/commands/app/remote-directory.js +1 -1
  35. package/lib/commands/app/shared.js +1 -1
  36. package/lib/commands/app-config/delete.js +1 -1
  37. package/lib/commands/app-config/get.js +1 -1
  38. package/lib/commands/app-config/index.js +1 -1
  39. package/lib/commands/app-config/list.js +1 -1
  40. package/lib/commands/app-config/set.js +1 -1
  41. package/lib/commands/app-config/shared.js +1 -1
  42. package/lib/commands/auth/index.js +1 -1
  43. package/lib/commands/bff/create.js +1 -1
  44. package/lib/commands/bff/delete.js +1 -1
  45. package/lib/commands/bff/detail.js +1 -1
  46. package/lib/commands/bff/index.js +1 -1
  47. package/lib/commands/bff/list.js +1 -1
  48. package/lib/commands/bff/logs.js +1 -1
  49. package/lib/commands/bff/pull.js +1 -1
  50. package/lib/commands/bff/push.js +1 -1
  51. package/lib/commands/bff/status.js +1 -1
  52. package/lib/commands/cli-skill/index.js +1 -1
  53. package/lib/commands/cli-update.js +1 -1
  54. package/lib/commands/codegen/index.js +1 -1
  55. package/lib/commands/codegen/sdk.js +1 -1
  56. package/lib/commands/codegen/sql.js +1 -1
  57. package/lib/commands/common/app-registry.js +1 -1
  58. package/lib/commands/common/app-selector.js +1 -1
  59. package/lib/commands/common/async-task.js +1 -1
  60. package/lib/commands/common/dry-run.js +1 -1
  61. package/lib/commands/common/flags.d.ts +7 -0
  62. package/lib/commands/common/flags.js +1 -1
  63. package/lib/commands/common/local-file.js +1 -1
  64. package/lib/commands/common/validate.js +1 -1
  65. package/lib/commands/config/delete.js +1 -1
  66. package/lib/commands/config/get.js +1 -1
  67. package/lib/commands/config/index.js +1 -1
  68. package/lib/commands/config/init.js +1 -1
  69. package/lib/commands/config/list.js +1 -1
  70. package/lib/commands/config/set.js +1 -1
  71. package/lib/commands/config/shared.js +1 -1
  72. package/lib/commands/dataset/batch-design.js +1 -1
  73. package/lib/commands/dataset/business-group-update.js +1 -1
  74. package/lib/commands/dataset/business-groups.js +1 -1
  75. package/lib/commands/dataset/capability.js +1 -1
  76. package/lib/commands/dataset/cross-relation-create.d.ts +2 -0
  77. package/lib/commands/dataset/cross-relation-create.js +1 -0
  78. package/lib/commands/dataset/cross-relation-delete.d.ts +2 -0
  79. package/lib/commands/dataset/cross-relation-delete.js +1 -0
  80. package/lib/commands/dataset/cross-relation-list.d.ts +2 -0
  81. package/lib/commands/dataset/cross-relation-list.js +1 -0
  82. package/lib/commands/dataset/cross-relation-shared.d.ts +190 -0
  83. package/lib/commands/dataset/cross-relation-shared.js +1 -0
  84. package/lib/commands/dataset/cross-relation-update.d.ts +2 -0
  85. package/lib/commands/dataset/cross-relation-update.js +1 -0
  86. package/lib/commands/dataset/delete.js +1 -1
  87. package/lib/commands/dataset/detail.js +1 -1
  88. package/lib/commands/dataset/extend-update.js +1 -1
  89. package/lib/commands/dataset/field-restore.js +1 -1
  90. package/lib/commands/dataset/field-update.js +1 -1
  91. package/lib/commands/dataset/generate.js +1 -1
  92. package/lib/commands/dataset/index.js +1 -1
  93. package/lib/commands/dataset/list.js +1 -1
  94. package/lib/commands/dataset/operations.js +1 -1
  95. package/lib/commands/dataset/relation-audit.js +1 -1
  96. package/lib/commands/dataset/relation-create.js +1 -1
  97. package/lib/commands/dataset/relation-delete.js +1 -1
  98. package/lib/commands/dataset/relation-shared.js +1 -1
  99. package/lib/commands/dataset/relation-update.js +1 -1
  100. package/lib/commands/dataset/relations.js +1 -1
  101. package/lib/commands/dataset/rename.js +1 -1
  102. package/lib/commands/dataset/restore.js +1 -1
  103. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  104. package/lib/commands/db/analysis-batching.js +1 -1
  105. package/lib/commands/db/analyze-batch-plan.js +1 -1
  106. package/lib/commands/db/analyze-cancel.js +1 -1
  107. package/lib/commands/db/analyze-start.js +1 -1
  108. package/lib/commands/db/analyze-status.js +1 -1
  109. package/lib/commands/db/create.js +1 -1
  110. package/lib/commands/db/delete.js +1 -1
  111. package/lib/commands/db/detail.js +1 -1
  112. package/lib/commands/db/diff-refresh-start.js +1 -1
  113. package/lib/commands/db/diff-refresh-status.js +1 -1
  114. package/lib/commands/db/diff.js +1 -1
  115. package/lib/commands/db/index.js +1 -1
  116. package/lib/commands/db/list.js +1 -1
  117. package/lib/commands/db/shared.js +1 -1
  118. package/lib/commands/db/table-diff-shared.js +1 -1
  119. package/lib/commands/db/tables.js +1 -1
  120. package/lib/commands/db/test.js +1 -1
  121. package/lib/commands/db/update.js +1 -1
  122. package/lib/commands/deployment/index.js +1 -1
  123. package/lib/commands/deployment/sync-all.js +1 -1
  124. package/lib/commands/deployment/sync-jobs.js +1 -1
  125. package/lib/commands/deployment/sync-status.js +1 -1
  126. package/lib/commands/doctor.js +1 -1
  127. package/lib/commands/file/index.js +1 -1
  128. package/lib/commands/flow/create.js +1 -1
  129. package/lib/commands/flow/detail.js +1 -1
  130. package/lib/commands/flow/index.js +1 -1
  131. package/lib/commands/flow/list.js +1 -1
  132. package/lib/commands/flow/publish.js +1 -1
  133. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  134. package/lib/commands/flow/runtime-role-list.js +1 -1
  135. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  136. package/lib/commands/flow/runtime-user-search.js +1 -1
  137. package/lib/commands/flow/shared.js +1 -1
  138. package/lib/commands/flow/update.js +1 -1
  139. package/lib/commands/flow/validate.js +1 -1
  140. package/lib/commands/instant-api-policy/current.js +1 -1
  141. package/lib/commands/instant-api-policy/index.js +1 -1
  142. package/lib/commands/instant-api-policy/init.js +1 -1
  143. package/lib/commands/instant-api-policy/publish.js +1 -1
  144. package/lib/commands/instant-api-policy/pull.js +1 -1
  145. package/lib/commands/instant-api-policy/revision.js +1 -1
  146. package/lib/commands/instant-api-policy/revisions.js +1 -1
  147. package/lib/commands/instant-api-policy/rollback.js +1 -1
  148. package/lib/commands/instant-api-policy/shared.js +1 -1
  149. package/lib/commands/instant-api-policy/validate.js +1 -1
  150. package/lib/commands/issue/index.js +1 -1
  151. package/lib/commands/issue/nudge.js +1 -1
  152. package/lib/commands/issue/report.js +1 -1
  153. package/lib/commands/issue/shared.js +1 -1
  154. package/lib/commands/kb/create.js +1 -1
  155. package/lib/commands/kb/delete.js +1 -1
  156. package/lib/commands/kb/detail.js +1 -1
  157. package/lib/commands/kb/index.js +1 -1
  158. package/lib/commands/kb/list.js +1 -1
  159. package/lib/commands/kb/search.js +1 -1
  160. package/lib/commands/kb/shared.js +1 -1
  161. package/lib/commands/kb/update.js +1 -1
  162. package/lib/commands/logs/index.js +1 -1
  163. package/lib/commands/menu/asset-update.js +1 -1
  164. package/lib/commands/menu/delete.js +1 -1
  165. package/lib/commands/menu/external-link-create.js +1 -1
  166. package/lib/commands/menu/external-link-update.js +1 -1
  167. package/lib/commands/menu/group-create.js +1 -1
  168. package/lib/commands/menu/group-update.js +1 -1
  169. package/lib/commands/menu/index.js +1 -1
  170. package/lib/commands/menu/list.js +1 -1
  171. package/lib/commands/menu/move.js +1 -1
  172. package/lib/commands/menu/regroup-start.js +1 -1
  173. package/lib/commands/menu/rename.js +1 -1
  174. package/lib/commands/menu/shared/compare-table.js +1 -1
  175. package/lib/commands/menu/shared/delete-plan.js +1 -1
  176. package/lib/commands/menu/shared/facts.js +1 -1
  177. package/lib/commands/menu/shared/index.js +1 -1
  178. package/lib/commands/menu/shared/inquirer.js +1 -1
  179. package/lib/commands/menu/shared/local-pages.js +1 -1
  180. package/lib/commands/menu/shared/logic.js +1 -1
  181. package/lib/commands/menu/shared/mutations.js +1 -1
  182. package/lib/commands/menu/shared/service.js +1 -1
  183. package/lib/commands/menu/shared/sync-core.js +1 -1
  184. package/lib/commands/menu/shared/update-core.js +1 -1
  185. package/lib/commands/menu/shared/valid-url.js +1 -1
  186. package/lib/commands/menu/sync.js +1 -1
  187. package/lib/commands/menu/visibility-update.js +1 -1
  188. package/lib/commands/notification/config-create.js +1 -1
  189. package/lib/commands/notification/config-delete.js +1 -1
  190. package/lib/commands/notification/config-list.js +1 -1
  191. package/lib/commands/notification/config-update.js +1 -1
  192. package/lib/commands/notification/index.js +1 -1
  193. package/lib/commands/notification/shared.js +1 -1
  194. package/lib/commands/ocr/index.js +1 -1
  195. package/lib/commands/page/create.js +1 -1
  196. package/lib/commands/page/custom/detail.js +1 -1
  197. package/lib/commands/page/custom/list.js +1 -1
  198. package/lib/commands/page/custom/publish.js +1 -1
  199. package/lib/commands/page/custom/shared.js +1 -1
  200. package/lib/commands/page/custom/syntax.js +1 -1
  201. package/lib/commands/page/custom/update.js +1 -1
  202. package/lib/commands/page/data-list-status.js +1 -1
  203. package/lib/commands/page/generate-start.js +1 -1
  204. package/lib/commands/page/generate-status.js +1 -1
  205. package/lib/commands/page/index.js +1 -1
  206. package/lib/commands/page/pull.js +1 -1
  207. package/lib/commands/page/push.js +1 -1
  208. package/lib/commands/page/relation-audit.js +1 -1
  209. package/lib/commands/page/restore.js +1 -1
  210. package/lib/commands/page/shared.js +1 -1
  211. package/lib/commands/page/sync.js +1 -1
  212. package/lib/commands/project/api-architecture-upgrade.d.ts +28 -0
  213. package/lib/commands/project/api-architecture-upgrade.js +1 -0
  214. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  215. package/lib/commands/project/create/format-elapsed.js +1 -1
  216. package/lib/commands/project/create/main.js +1 -1
  217. package/lib/commands/project/create/materialize-project-template.js +1 -1
  218. package/lib/commands/project/create/project-name.js +1 -1
  219. package/lib/commands/project/create/project-template-archive.js +1 -1
  220. package/lib/commands/project/create/project-template-path.js +1 -1
  221. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  222. package/lib/commands/project/create/use-format-code.js +1 -1
  223. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  224. package/lib/commands/project/domain-routing-sync.js +1 -1
  225. package/lib/commands/project/index.js +1 -1
  226. package/lib/commands/project/upgrade.d.ts +30 -1
  227. package/lib/commands/project/upgrade.js +1 -1
  228. package/lib/commands/registry.js +1 -1
  229. package/lib/commands/role/delete.js +1 -1
  230. package/lib/commands/role/detail.js +1 -1
  231. package/lib/commands/role/index.js +1 -1
  232. package/lib/commands/role/list.js +1 -1
  233. package/lib/commands/role/shared.js +1 -1
  234. package/lib/commands/role/update.js +1 -1
  235. package/lib/commands/role/user-add.js +1 -1
  236. package/lib/commands/role/user-remove.js +1 -1
  237. package/lib/commands/role/user-resolve.js +1 -1
  238. package/lib/commands/rule/get.js +1 -1
  239. package/lib/commands/rule/index.js +1 -1
  240. package/lib/commands/rule/list.js +1 -1
  241. package/lib/commands/rule/set.js +1 -1
  242. package/lib/commands/rule/shared.js +1 -1
  243. package/lib/commands/run/index.js +1 -1
  244. package/lib/commands/schema.js +1 -1
  245. package/lib/commands/sql/create.js +1 -1
  246. package/lib/commands/sql/delete.js +1 -1
  247. package/lib/commands/sql/detail.js +1 -1
  248. package/lib/commands/sql/exec.js +1 -1
  249. package/lib/commands/sql/index.js +1 -1
  250. package/lib/commands/sql/list.js +1 -1
  251. package/lib/commands/sql/pull.js +1 -1
  252. package/lib/commands/sql/push.js +1 -1
  253. package/lib/commands/sql/shared.js +1 -1
  254. package/lib/commands/sql/status.js +1 -1
  255. package/lib/commands/sql/validate.js +1 -1
  256. package/lib/commands/task/index.js +1 -1
  257. package/lib/commands/task/status.js +1 -1
  258. package/lib/commands/tenant/index.js +1 -1
  259. package/lib/commands/tenant/members-list.js +1 -1
  260. package/lib/commands/tenant/shared.js +1 -1
  261. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  262. package/lib/commands/user-account/index.js +1 -1
  263. package/lib/commands/workspace/add.js +1 -1
  264. package/lib/commands/workspace/index.js +1 -1
  265. package/lib/commands/workspace/remove.js +1 -1
  266. package/lib/config/domain-config.js +1 -1
  267. package/lib/config/project-domain-routing.js +1 -1
  268. package/lib/config/region-config.js +1 -1
  269. package/lib/config/schema.js +1 -1
  270. package/lib/constant/cdn.js +1 -1
  271. package/lib/constant/cli.js +1 -1
  272. package/lib/constant/defaults.js +1 -1
  273. package/lib/constant/domain.js +1 -1
  274. package/lib/constant/env.js +1 -1
  275. package/lib/constant/output.js +1 -1
  276. package/lib/constant/paths.js +1 -1
  277. package/lib/constant/region.js +1 -1
  278. package/lib/constant/risk.js +1 -1
  279. package/lib/constant/routing-profile.js +1 -1
  280. package/lib/context/app-resolver.d.ts +2 -0
  281. package/lib/context/app-resolver.js +1 -1
  282. package/lib/context/auth-resolver.js +1 -1
  283. package/lib/context/config-loader.js +1 -1
  284. package/lib/context.d.ts +2 -1
  285. package/lib/context.js +1 -1
  286. package/lib/core/alias-resolver.d.ts +13 -17
  287. package/lib/core/alias-resolver.js +1 -1
  288. package/lib/core/api-client.d.ts +6 -0
  289. package/lib/core/api-client.js +1 -1
  290. package/lib/core/bff/config.js +1 -1
  291. package/lib/core/bff/file-system.js +1 -1
  292. package/lib/core/bff/hash.js +1 -1
  293. package/lib/core/bff/hook-directory.js +1 -1
  294. package/lib/core/bff/lock.js +1 -1
  295. package/lib/core/bff/utils.js +1 -1
  296. package/lib/core/cross-db-relation.d.ts +41 -0
  297. package/lib/core/cross-db-relation.js +1 -0
  298. package/lib/core/db-resolver.js +1 -1
  299. package/lib/core/flow-config.js +1 -1
  300. package/lib/core/instant-api-policy/config.js +1 -1
  301. package/lib/core/kb-search-client.js +1 -1
  302. package/lib/core/page/file-system.js +1 -1
  303. package/lib/core/page/hash.js +1 -1
  304. package/lib/core/page/lock.js +1 -1
  305. package/lib/core/page/lr-smart-jsx.js +1 -1
  306. package/lib/core/sql-index-auditor.js +1 -1
  307. package/lib/core/sql-sync/config.js +1 -1
  308. package/lib/core/sql-sync/file-system.js +1 -1
  309. package/lib/core/sql-sync/hash.js +1 -1
  310. package/lib/core/sql-sync/lock.js +1 -1
  311. package/lib/core/sql-sync/utils.js +1 -1
  312. package/lib/core/sql-validator.js +1 -1
  313. package/lib/errors.js +1 -1
  314. package/lib/framework/build-all-flags.js +1 -1
  315. package/lib/framework/error-output.js +1 -1
  316. package/lib/framework/explicit-yes.js +1 -1
  317. package/lib/framework/flags.js +1 -1
  318. package/lib/framework/help.js +1 -1
  319. package/lib/framework/index.js +1 -1
  320. package/lib/framework/output.js +1 -1
  321. package/lib/framework/response.js +1 -1
  322. package/lib/framework/runner-alias.d.ts +1 -1
  323. package/lib/framework/runner-alias.js +1 -1
  324. package/lib/framework/runner.js +1 -1
  325. package/lib/framework/schema-export.js +1 -1
  326. package/lib/framework/supported-flags.js +1 -1
  327. package/lib/framework/types.js +1 -1
  328. package/lib/generated/build-info.d.ts +4 -4
  329. package/lib/generated/build-info.js +1 -1
  330. package/lib/generated/official-routing.js +1 -1
  331. package/lib/generated/routing-contract.js +1 -1
  332. package/lib/help.js +1 -1
  333. package/lib/postinstall.js +1 -1
  334. package/lib/runtime/confirmation.js +1 -1
  335. package/lib/runtime/event.js +1 -1
  336. package/lib/runtime/index.js +1 -1
  337. package/lib/runtime/queue.js +1 -1
  338. package/lib/runtime/resolve.js +1 -1
  339. package/lib/skills/builtin-skill.js +1 -1
  340. package/lib/skills/main.js +1 -1
  341. package/lib/skills/npx-skills-add.d.ts +0 -10
  342. package/lib/skills/npx-skills-add.js +1 -1
  343. package/lib/skills/skill-presence.js +1 -1
  344. package/lib/telemetry/cli-command-trace.js +1 -1
  345. package/lib/telemetry/cli-help-trace.js +1 -1
  346. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  347. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  348. package/lib/telemetry/send-cli-trace-log.js +1 -1
  349. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  350. package/lib/types/index.d.ts +11 -1
  351. package/lib/utils/ai_config.js +1 -1
  352. package/lib/utils/apply-jq-filter.js +1 -1
  353. package/lib/utils/cdn-config.js +1 -1
  354. package/lib/utils/check-sdk-version.js +1 -1
  355. package/lib/utils/cli-version-check.js +1 -1
  356. package/lib/utils/cli-version-policy.d.ts +12 -0
  357. package/lib/utils/cli-version-policy.js +1 -1
  358. package/lib/utils/config.js +1 -1
  359. package/lib/utils/entity-with-id.js +1 -1
  360. package/lib/utils/file-utils.js +1 -1
  361. package/lib/utils/guides-cdn.js +1 -1
  362. package/lib/utils/http-client.js +1 -1
  363. package/lib/utils/is-non-interactive.js +1 -1
  364. package/lib/utils/logger.js +1 -1
  365. package/lib/utils/params.js +1 -1
  366. package/lib/utils/platform.js +1 -1
  367. package/lib/utils/sleep.js +1 -1
  368. package/lib/utils/template-replacer.js +1 -1
  369. package/lib/utils/update-notice.js +1 -1
  370. package/lib/utils/version.js +1 -1
  371. package/lib/utils/with-active-cookie.js +1 -1
  372. package/lib/utils/write-cli-side-channel.js +1 -1
  373. package/package.json +4 -1
  374. package/skills/rabetbase/SKILL.md +10 -6
  375. package/skills/rabetbase/guides/sdk-client-generation.md +112 -61
  376. package/skills/rabetbase/guides/typescript-sdk.md +9 -0
  377. package/skills/rabetbase/references/rabetbase-api-pull.md +30 -19
  378. package/skills/rabetbase/references/rabetbase-app-list.md +1 -1
  379. package/skills/rabetbase/references/rabetbase-config.md +2 -1
  380. package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +60 -0
  381. package/skills/rabetbase/references/rabetbase-project-create.md +3 -3
  382. package/skills/rabetbase/references/rabetbase-project-upgrade.md +24 -13
  383. package/skills/rabetbase.manifest.json +4 -3
  384. package/templates/README.md +16 -4
  385. package/templates/generate-api/model-runtime.ts.tpl +101 -0
  386. package/templates/generate-api/profile-api.ts.tpl +21 -0
  387. package/templates/generate-api/profile-client.ts.tpl +14 -0
@@ -1 +1 @@
1
- const a312_0x28e1ee=a312_0x16ff;(function(_0x241d6b,_0x2abe2d){const _0x2faf17=a312_0x16ff,_0x861386=_0x241d6b();while(!![]){try{const _0x2cb3db=-parseInt(_0x2faf17(0xa1))/0x1+-parseInt(_0x2faf17(0x9c))/0x2*(-parseInt(_0x2faf17(0x7a))/0x3)+parseInt(_0x2faf17(0x9e))/0x4*(parseInt(_0x2faf17(0x81))/0x5)+parseInt(_0x2faf17(0x9b))/0x6+-parseInt(_0x2faf17(0x97))/0x7*(-parseInt(_0x2faf17(0x80))/0x8)+parseInt(_0x2faf17(0xaa))/0x9*(parseInt(_0x2faf17(0x8c))/0xa)+-parseInt(_0x2faf17(0x9a))/0xb;if(_0x2cb3db===_0x2abe2d)break;else _0x861386['push'](_0x861386['shift']());}catch(_0x87e38e){_0x861386['push'](_0x861386['shift']());}}}(a312_0x40f0,0x8cbc2));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';export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a312_0x28e1ee(0x96);export const LEGACY_RABETBASE_SKILL_SOURCE=a312_0x28e1ee(0x76);export const DEFAULT_RABETBASE_SKILL_NAME=a312_0x28e1ee(0x7b);export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE=a312_0x28e1ee(0x8d);export function resolveGlobalSkillName(_0x5d066){switch(_0x5d066['trim']()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x3b88af){const _0x5c6051=a312_0x28e1ee,_0x5d09d9=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x3b88af&&_0x5d09d9[_0x5c6051(0x77)](NPX_SKILLS_FLAG_SKILL,_0x3b88af),_0x5d09d9;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a312_0x28e1ee(0x99),...buildNpxSkillsAddArgv()][a312_0x28e1ee(0x91)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a312_0x28e1ee(0x99),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a312_0x28e1ee(0x91)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x2af936,_0x1e7a23,_0x29bdc6){return{'ok':![],'status':_0x1e7a23,'code':_0x2af936,'error':'['+_0x2af936+']\x20'+_0x29bdc6};}function execaOptions(_0x1bf8b4,_0x4e371d){const _0x3ff86b=a312_0x28e1ee,_0x4fceb1={...process.env};return delete _0x4fceb1[_0x3ff86b(0x75)],delete _0x4fceb1[_0x3ff86b(0xa6)],{'cwd':_0x1bf8b4,'stdio':_0x4e371d,'env':_0x4fceb1,'extendEnv':![],'shell':![],'reject':![],..._0x4e371d==='pipe'?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function a312_0x40f0(){const _0x34f698=['exitCode','unverifiable','EPERM','filter','SPAWN_FAILED','log','ENOENT','170hAiydD','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','CHILD_EXIT_NONZERO','failed','trim','join','stdout','checked','state','!\x20Could\x20not\x20verify\x20\x22','lovrabet/rabetbase','7uWjtxL','present','npx','19753855PMgzUY','6628164SRZAyB','3554ymgbZg','warn','26060fqTDgc','\x20failed\x20target(s)','presence','1152831AEYJWf','pipe','CHILD_TERMINATED','inherit','shortMessage','NPM_CONFIG_GLOBAL','\x22\x20install\x20state:\x20','remove','absent','436041asGGeo','INSTALL_PARTIAL','NPX_NOT_FOUND','signal','npm_config_global','lovrabet/lovrabet-skill','push','npx\x20terminated\x20by\x20signal\x20','code','1422XRMLua','Lovrabet','unknown','skill','stderr','match','2230928zZimYD','365JIdrUL','EACCES','PERMISSION_DENIED','stdio'];a312_0x40f0=function(){return _0x34f698;};return a312_0x40f0();}function normalizeExecaResult(_0x5256c4,_0x3d3e33,_0x2bdd36,_0x1be439){const _0x57e804=a312_0x28e1ee,_0x28a14e=[_0x5256c4[_0x57e804(0x92)]?String(_0x5256c4[_0x57e804(0x92)]):'',_0x5256c4[_0x57e804(0x7e)]?String(_0x5256c4['stderr']):''][_0x57e804(0x88)](Boolean)[_0x57e804(0x91)]('\x0a')[_0x57e804(0x90)](),_0x2b2889=_0x5256c4[_0x57e804(0x85)]??null;_0x1be439!==_0x57e804(0xa2)&&_0x28a14e&&console[_0x57e804(0x8a)](_0x28a14e);if(_0x5256c4['code']){const _0x59ceb0=_0x5256c4[_0x57e804(0x79)]===_0x57e804(0x8b)?_0x57e804(0x73):_0x5256c4[_0x57e804(0x79)]===_0x57e804(0x87)||_0x5256c4[_0x57e804(0x79)]===_0x57e804(0x82)?_0x57e804(0x83):_0x57e804(0x89);return failure(_0x59ceb0,_0x2b2889,_0x5256c4[_0x57e804(0xa5)]??_0x5256c4['message']??_0x5256c4[_0x57e804(0x79)]);}if(_0x5256c4[_0x57e804(0x74)])return failure(_0x57e804(0xa3),_0x2b2889,_0x57e804(0x78)+_0x5256c4[_0x57e804(0x74)]);if(_0x5256c4[_0x57e804(0x8f)]&&_0x2b2889===null)return failure('SPAWN_FAILED',_0x2b2889,_0x5256c4['shortMessage']??_0x5256c4['message']??'npx\x20failed\x20to\x20start');if(_0x2b2889!==0x0)return failure(_0x57e804(0x8e),_0x2b2889,_0x28a14e||_0x5256c4[_0x57e804(0xa5)]||'exit\x20'+(_0x2b2889??_0x57e804(0x7c)));const _0x1d3ba3=_0x3d3e33?resolveInstalledSkill(_0x3d3e33,_0x2bdd36):undefined,_0x36a965=_0x28a14e[_0x57e804(0x7f)](/Failed to install\s+(\d+)/i);if(_0x36a965&&Number(_0x36a965[0x1])>0x0){const _0x16258f='Installer\x20reported\x20'+_0x36a965[0x1]+_0x57e804(0x9f)+(_0x28a14e?':\x0a'+_0x28a14e:'');if(_0x1d3ba3?.[_0x57e804(0x94)]===_0x57e804(0x98))return console[_0x57e804(0x9d)]('!\x20'+_0x16258f),{'ok':!![],'status':0x0};return failure(_0x57e804(0xab),0x0,_0x16258f);}if(_0x1d3ba3){if(_0x1d3ba3['state']===_0x57e804(0xa9))return failure('SKILL_NOT_INSTALLED',0x0,'Skill\x20\x22'+_0x3d3e33+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x1d3ba3[_0x57e804(0x93)][_0x57e804(0x91)](',\x20')+')');_0x1d3ba3[_0x57e804(0x94)]===_0x57e804(0x86)&&console[_0x57e804(0x9d)](_0x57e804(0x95)+_0x3d3e33+_0x57e804(0xa7)+_0x1d3ba3['reason']);}return{'ok':!![],'status':0x0};}function a312_0x16ff(_0x345978,_0xe304d1){_0x345978=_0x345978-0x73;const _0x40f044=a312_0x40f0();let _0x16ff19=_0x40f044[_0x345978];return _0x16ff19;}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x516c49,_0x3e61a7){const _0x4c74da=a312_0x28e1ee;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x56cfc8=_0x3e61a7?.[_0x4c74da(0x84)]??_0x4c74da(0xa4),_0x5111d8=buildNpxSkillsAddArgv(_0x3e61a7?.[_0x4c74da(0x7d)]),_0x42dac8=[_0x4c74da(0x99),..._0x5111d8]['join']('\x20');console[_0x4c74da(0x8a)]('*\x20'+_0x42dac8);const _0x1bc2cc=execaSync('npx',_0x5111d8,execaOptions(_0x516c49,_0x56cfc8));return normalizeExecaResult(_0x1bc2cc,undefined,undefined,_0x56cfc8);}export function runNpxSkillsRemove(_0x616fe8,_0x3791bb,_0xace068=LEGACY_RABETBASE_SKILL_SOURCE){const _0x289408=a312_0x28e1ee;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xbfc947=_0x3791bb?.[_0x289408(0x84)]??'inherit',_0xcb415f=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x289408(0xa8),_0xace068,NPX_SKILLS_FLAG_SKILL,_0x3791bb?.[_0x289408(0x7d)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x3791bb?.['yes']?['-y']:[]],_0x1d89ec=[_0x289408(0x99),..._0xcb415f]['join']('\x20');console['log']('*\x20'+_0x1d89ec);const _0x5a5517=execaSync(_0x289408(0x99),_0xcb415f,execaOptions(_0x616fe8,_0xbfc947));return normalizeExecaResult(_0x5a5517,undefined,undefined,_0xbfc947);}export function runNpxSkillsAddGlobal(_0x12712d,_0x385909,_0x157415){const _0xb5ad29=a312_0x28e1ee;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x23b55c=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x385909,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x87b931=[_0xb5ad29(0x99),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x385909,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0xb5ad29(0x91)]('\x20');console['log']('*\x20'+_0x87b931);const _0x3c4bd3=execaSync(_0xb5ad29(0x99),_0x23b55c,execaOptions(_0x12712d,_0xb5ad29(0xa2)));return normalizeExecaResult(_0x3c4bd3,_0x157415?.['expectedSkillName']??resolveGlobalSkillName(_0x385909),_0x157415?.[_0xb5ad29(0xa0)],_0x157415?.[_0xb5ad29(0x84)]);}
1
+ const a324_0x4f2a04=a324_0x8ec5;(function(_0x489122,_0x245e66){const _0x458244=a324_0x8ec5,_0x502837=_0x489122();while(!![]){try{const _0xe1d413=-parseInt(_0x458244(0xeb))/0x1+parseInt(_0x458244(0xda))/0x2*(parseInt(_0x458244(0x105))/0x3)+-parseInt(_0x458244(0xfe))/0x4+parseInt(_0x458244(0xdc))/0x5*(parseInt(_0x458244(0x107))/0x6)+-parseInt(_0x458244(0x109))/0x7*(parseInt(_0x458244(0xe9))/0x8)+-parseInt(_0x458244(0xe8))/0x9*(parseInt(_0x458244(0xde))/0xa)+parseInt(_0x458244(0xe0))/0xb*(parseInt(_0x458244(0x101))/0xc);if(_0xe1d413===_0x245e66)break;else _0x502837['push'](_0x502837['shift']());}catch(_0x25c893){_0x502837['push'](_0x502837['shift']());}}}(a324_0xb186,0x8ba6b));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';function a324_0x8ec5(_0x260235,_0x4c5f60){_0x260235=_0x260235-0xd1;const _0xb186ea=a324_0xb186();let _0x8ec59d=_0xb186ea[_0x260235];return _0x8ec59d;}function a324_0xb186(){const _0x44698=['code','76730UtsfRC','exitCode','215310zgGSrY','npx\x20terminated\x20by\x20signal\x20','90LXNRMY','warn','11eLOwmZ','filter','NPX_NOT_FOUND','expectedSkillName','add','ENOENT','match','signal','235755BBUJtx','1928FixwKB','state','1085681uCufZx','SPAWN_FAILED','failed','stderr','skill','NPM_CONFIG_GLOBAL','CHILD_TERMINATED','checked','skills@latest','shortMessage','\x22\x20install\x20state:\x20','CHILD_EXIT_NONZERO','PERMISSION_DENIED','stdout','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','inherit','unknown','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','join','1077328TAfHeF','rabetbase','push','15730668wsKGCw','stdio','trim','exit\x20','39iAxXhi','SKILL_NOT_INSTALLED','144neMJRF','EACCES','19761mEpVxU','Installer\x20reported\x20','lovrabet/rabetbase','pipe','npx','log','message','Skill\x20\x22','INSTALL_PARTIAL'];a324_0xb186=function(){return _0x44698;};return a324_0xb186();}export const NPX_SKILLS_CLI=a324_0x4f2a04(0xf3);export const NPX_SKILLS_SUBCOMMAND_ADD=a324_0x4f2a04(0xe4);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a324_0x4f2a04(0xd2);export const RABETBASE_GLOBAL_SKILL_NAME=a324_0x4f2a04(0xff);export const RABETBASE_SKILL_GIT_SOURCE=a324_0x4f2a04(0xf9);export function resolveGlobalSkillName(_0x242818){const _0x6da266=a324_0x4f2a04;switch(_0x242818[_0x6da266(0x103)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x30e9c0){const _0x5c61ac=a324_0x4f2a04,_0xc7e924=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x30e9c0&&_0xc7e924[_0x5c61ac(0x100)](NPX_SKILLS_FLAG_SKILL,_0x30e9c0),_0xc7e924;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a324_0x4f2a04(0xd4),...buildNpxSkillsAddArgv()][a324_0x4f2a04(0xfd)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a324_0x4f2a04(0xd4),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a324_0x4f2a04(0xfd)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x17eb28,_0x4a10c7,_0x42168d){return{'ok':![],'status':_0x4a10c7,'code':_0x17eb28,'error':'['+_0x17eb28+']\x20'+_0x42168d};}function execaOptions(_0x5a1fa1,_0x56339e){const _0x50ad8f=a324_0x4f2a04,_0x5b0d5f={...process.env};return delete _0x5b0d5f['npm_config_global'],delete _0x5b0d5f[_0x50ad8f(0xf0)],{'cwd':_0x5a1fa1,'stdio':_0x56339e,'env':_0x5b0d5f,'extendEnv':![],'shell':![],'reject':![],..._0x56339e==='pipe'?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0x55f239,_0x45c4bc,_0x29410c,_0x42863c){const _0x3415a2=a324_0x4f2a04,_0x1b10b9=[_0x55f239[_0x3415a2(0xf8)]?String(_0x55f239[_0x3415a2(0xf8)]):'',_0x55f239[_0x3415a2(0xee)]?String(_0x55f239[_0x3415a2(0xee)]):''][_0x3415a2(0xe1)](Boolean)[_0x3415a2(0xfd)]('\x0a')['trim'](),_0x210145=_0x55f239[_0x3415a2(0xdb)]??null;_0x42863c!==_0x3415a2(0xd3)&&_0x1b10b9&&console[_0x3415a2(0xd5)](_0x1b10b9);if(_0x55f239[_0x3415a2(0xd9)]){const _0x1999ce=_0x55f239[_0x3415a2(0xd9)]===_0x3415a2(0xe5)?_0x3415a2(0xe2):_0x55f239['code']==='EPERM'||_0x55f239[_0x3415a2(0xd9)]===_0x3415a2(0x108)?_0x3415a2(0xf7):_0x3415a2(0xec);return failure(_0x1999ce,_0x210145,_0x55f239[_0x3415a2(0xf4)]??_0x55f239['message']??_0x55f239[_0x3415a2(0xd9)]);}if(_0x55f239[_0x3415a2(0xe7)])return failure(_0x3415a2(0xf1),_0x210145,_0x3415a2(0xdd)+_0x55f239[_0x3415a2(0xe7)]);if(_0x55f239[_0x3415a2(0xed)]&&_0x210145===null)return failure(_0x3415a2(0xec),_0x210145,_0x55f239['shortMessage']??_0x55f239[_0x3415a2(0xd6)]??'npx\x20failed\x20to\x20start');if(_0x210145!==0x0)return failure(_0x3415a2(0xf6),_0x210145,_0x1b10b9||_0x55f239[_0x3415a2(0xf4)]||_0x3415a2(0x104)+(_0x210145??_0x3415a2(0xfb)));const _0x8ecddb=_0x45c4bc?resolveInstalledSkill(_0x45c4bc,_0x29410c):undefined,_0x1fc88c=_0x1b10b9[_0x3415a2(0xe6)](/Failed to install\s+(\d+)/i);if(_0x1fc88c&&Number(_0x1fc88c[0x1])>0x0){const _0x155f51=_0x3415a2(0xd1)+_0x1fc88c[0x1]+'\x20failed\x20target(s)'+(_0x1b10b9?':\x0a'+_0x1b10b9:'');if(_0x8ecddb?.[_0x3415a2(0xea)]==='present')return console[_0x3415a2(0xdf)]('!\x20'+_0x155f51),{'ok':!![],'status':0x0};return failure(_0x3415a2(0xd8),0x0,_0x155f51);}if(_0x8ecddb){if(_0x8ecddb['state']==='absent')return failure(_0x3415a2(0x106),0x0,_0x3415a2(0xd7)+_0x45c4bc+_0x3415a2(0xfc)+_0x8ecddb[_0x3415a2(0xf2)][_0x3415a2(0xfd)](',\x20')+')');_0x8ecddb['state']==='unverifiable'&&console[_0x3415a2(0xdf)]('!\x20Could\x20not\x20verify\x20\x22'+_0x45c4bc+_0x3415a2(0xf5)+_0x8ecddb['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x4c614d,_0x1e0545){const _0x2b1355=a324_0x4f2a04;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1719ab=_0x1e0545?.[_0x2b1355(0x102)]??_0x2b1355(0xfa),_0x4c478e=buildNpxSkillsAddArgv(_0x1e0545?.[_0x2b1355(0xef)]),_0x984a20=[_0x2b1355(0xd4),..._0x4c478e][_0x2b1355(0xfd)]('\x20');console['log']('*\x20'+_0x984a20);const _0x4fe696=execaSync('npx',_0x4c478e,execaOptions(_0x4c614d,_0x1719ab));return normalizeExecaResult(_0x4fe696,undefined,undefined,_0x1719ab);}export function runNpxSkillsAddGlobal(_0x341ebd,_0x3dcedb,_0x391f21){const _0x5cc5bc=a324_0x4f2a04;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x387a48=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3dcedb,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x2b0019=[_0x5cc5bc(0xd4),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3dcedb,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x5cc5bc(0xfd)]('\x20');console[_0x5cc5bc(0xd5)]('*\x20'+_0x2b0019);const _0x30c0e9=execaSync(_0x5cc5bc(0xd4),_0x387a48,execaOptions(_0x341ebd,_0x5cc5bc(0xd3)));return normalizeExecaResult(_0x30c0e9,_0x391f21?.[_0x5cc5bc(0xe3)]??resolveGlobalSkillName(_0x3dcedb),_0x391f21?.['presence'],_0x391f21?.[_0x5cc5bc(0x102)]);}
@@ -1 +1 @@
1
- const a313_0x3bffef=a313_0x4dfc;function a313_0x495a(){const _0x4b90dd=['166520TKTczs','skills','message','version','join','\x20has\x20no\x20skills\x20map','SKILL.md','\x20records\x20\x22','unusable','unverifiable','not-recorded','utf8','1690pnQtpo','1076439bALhvw','reason','recorded','1533213OIQzWC','globalSkillsDirs','1959582LUacGI','lockFile','93gNpiEE','.agents','home','529TOvPNS','22552aLVYdu','present','absent','.claude','290665yLOhOZ','map','object','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','kind','.skill-lock.json','find'];a313_0x495a=function(){return _0x4b90dd;};return a313_0x495a();}(function(_0x1edef9,_0x36ce08){const _0xe7e63b=a313_0x4dfc,_0x14909c=_0x1edef9();while(!![]){try{const _0x47382f=parseInt(_0xe7e63b(0x84))/0x1*(parseInt(_0xe7e63b(0x79))/0x2)+parseInt(_0xe7e63b(0x81))/0x3*(parseInt(_0xe7e63b(0x85))/0x4)+-parseInt(_0xe7e63b(0x89))/0x5+-parseInt(_0xe7e63b(0x7f))/0x6+-parseInt(_0xe7e63b(0x7a))/0x7+parseInt(_0xe7e63b(0x90))/0x8+parseInt(_0xe7e63b(0x7d))/0x9;if(_0x47382f===_0x36ce08)break;else _0x14909c['push'](_0x14909c['shift']());}catch(_0x3433f5){_0x14909c['push'](_0x14909c['shift']());}}}(a313_0x495a,0x43010));function a313_0x4dfc(_0x5b9696,_0x3b96ff){_0x5b9696=_0x5b9696-0x77;const _0x495a19=a313_0x495a();let _0x4dfc19=_0x495a19[_0x5b9696];return _0x4dfc19;}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join('.agents',a313_0x3bffef(0x8e));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a313_0x3bffef(0x82),'skills'),join(a313_0x3bffef(0x88),a313_0x3bffef(0x91))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x44803a,_0x1d5700){const _0x1ef116=a313_0x3bffef;if(!existsSync(_0x44803a))return{'kind':_0x1ef116(0x77)};let _0x171a51;try{_0x171a51=JSON['parse'](readFileSync(_0x44803a,_0x1ef116(0x78)));}catch(_0x346230){return{'kind':'unusable','reason':_0x44803a+'\x20is\x20unreadable:\x20'+_0x346230[_0x1ef116(0x92)]};}const _0x1a70cc=_0x171a51;if(typeof _0x1a70cc?.['version']!=='number'||!SUPPORTED_LOCK_VERSIONS['includes'](_0x1a70cc['version']))return{'kind':_0x1ef116(0x98),'reason':_0x44803a+'\x20uses\x20unsupported\x20version\x20'+String(_0x1a70cc?.[_0x1ef116(0x93)])};if(!_0x1a70cc[_0x1ef116(0x91)]||typeof _0x1a70cc[_0x1ef116(0x91)]!==_0x1ef116(0x8b))return{'kind':_0x1ef116(0x98),'reason':_0x44803a+_0x1ef116(0x95)};return _0x1a70cc['skills'][_0x1d5700]?{'kind':_0x1ef116(0x7c)}:{'kind':_0x1ef116(0x77)};}export function resolveInstalledSkill(_0x14ff6a,_0x4ccbf2){const _0x29daa8=a313_0x3bffef,_0x119d8e=_0x4ccbf2?.[_0x29daa8(0x83)]??homedir(),_0x4c5b2f=_0x4ccbf2?.[_0x29daa8(0x7e)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x29daa8(0x8a)](_0x1b6b16=>join(_0x119d8e,_0x1b6b16)),_0x148ef7=_0x4ccbf2?.[_0x29daa8(0x80)]??join(_0x119d8e,SKILL_LOCK_RELATIVE_PATH),_0x1d1a67=_0x4c5b2f['map'](_0x1707f4=>join(_0x1707f4,_0x14ff6a,_0x29daa8(0x96))),_0x3fc179=_0x1d1a67[_0x29daa8(0x8f)](_0x6a97a8=>existsSync(_0x6a97a8));if(_0x3fc179)return{'state':_0x29daa8(0x86),'path':_0x3fc179};const _0x5a571b=readLockLookup(_0x148ef7,_0x14ff6a);if(_0x5a571b[_0x29daa8(0x8d)]==='unusable')return{'state':'unverifiable','reason':_0x5a571b[_0x29daa8(0x7b)]};if(_0x5a571b[_0x29daa8(0x8d)]===_0x29daa8(0x7c))return{'state':_0x29daa8(0x99),'reason':_0x148ef7+_0x29daa8(0x97)+_0x14ff6a+_0x29daa8(0x8c)+('('+_0x1d1a67[_0x29daa8(0x94)](',\x20')+')')};return{'state':_0x29daa8(0x87),'checked':_0x1d1a67};}
1
+ function a325_0x744c(_0x4251c7,_0x3bcbd7){_0x4251c7=_0x4251c7-0xd0;const _0x2fd11f=a325_0x2fd1();let _0x744c63=_0x2fd11f[_0x4251c7];return _0x744c63;}const a325_0x28a664=a325_0x744c;(function(_0x4c8e16,_0x4b1d09){const _0x444138=a325_0x744c,_0x3b512c=_0x4c8e16();while(!![]){try{const _0x1cad46=-parseInt(_0x444138(0xdd))/0x1+-parseInt(_0x444138(0xde))/0x2*(parseInt(_0x444138(0xe9))/0x3)+parseInt(_0x444138(0xec))/0x4+-parseInt(_0x444138(0xf5))/0x5+parseInt(_0x444138(0xe6))/0x6*(-parseInt(_0x444138(0xd0))/0x7)+-parseInt(_0x444138(0xdf))/0x8*(parseInt(_0x444138(0xd2))/0x9)+-parseInt(_0x444138(0xda))/0xa*(-parseInt(_0x444138(0xe2))/0xb);if(_0x1cad46===_0x4b1d09)break;else _0x3b512c['push'](_0x3b512c['shift']());}catch(_0x779858){_0x3b512c['push'](_0x3b512c['shift']());}}}(a325_0x2fd1,0x8e51a));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join('.agents',a325_0x28a664(0xf2));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a325_0x28a664(0xd5),'skills'),join('.claude','skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function a325_0x2fd1(){const _0x51e431=['join','\x20is\x20unreadable:\x20','1678074VFgbXf','globalSkillsDirs','reason','9GVMzRR','\x20records\x20\x22','parse','2067628GcxwgY','present','lockFile','utf8','\x20uses\x20unsupported\x20version\x20','version','.skill-lock.json','unusable','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','2884265yGdNaN','SKILL.md','14nAXsfe','kind','9XEdrLv','home','not-recorded','.agents','skills','recorded','unverifiable','includes','30BqNbTs','number','\x20has\x20no\x20skills\x20map','62853eoxlca','227946RPQaRH','3647176vLcMkE','map','absent','7564007DGkxwr','find'];a325_0x2fd1=function(){return _0x51e431;};return a325_0x2fd1();}function readLockLookup(_0x35dba1,_0x47a54c){const _0x1f0141=a325_0x28a664;if(!existsSync(_0x35dba1))return{'kind':_0x1f0141(0xd4)};let _0x2973fe;try{_0x2973fe=JSON[_0x1f0141(0xeb)](readFileSync(_0x35dba1,_0x1f0141(0xef)));}catch(_0x1788bc){return{'kind':_0x1f0141(0xf3),'reason':_0x35dba1+_0x1f0141(0xe5)+_0x1788bc['message']};}const _0x42e1c3=_0x2973fe;if(typeof _0x42e1c3?.['version']!==_0x1f0141(0xdb)||!SUPPORTED_LOCK_VERSIONS[_0x1f0141(0xd9)](_0x42e1c3[_0x1f0141(0xf1)]))return{'kind':_0x1f0141(0xf3),'reason':_0x35dba1+_0x1f0141(0xf0)+String(_0x42e1c3?.[_0x1f0141(0xf1)])};if(!_0x42e1c3[_0x1f0141(0xd6)]||typeof _0x42e1c3[_0x1f0141(0xd6)]!=='object')return{'kind':_0x1f0141(0xf3),'reason':_0x35dba1+_0x1f0141(0xdc)};return _0x42e1c3[_0x1f0141(0xd6)][_0x47a54c]?{'kind':_0x1f0141(0xd7)}:{'kind':_0x1f0141(0xd4)};}export function resolveInstalledSkill(_0x563172,_0x5a9bfb){const _0x313b98=a325_0x28a664,_0x5d3e12=_0x5a9bfb?.[_0x313b98(0xd3)]??homedir(),_0x3f90c2=_0x5a9bfb?.[_0x313b98(0xe7)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x18186a=>join(_0x5d3e12,_0x18186a)),_0x31c907=_0x5a9bfb?.[_0x313b98(0xee)]??join(_0x5d3e12,SKILL_LOCK_RELATIVE_PATH),_0x1539e7=_0x3f90c2[_0x313b98(0xe0)](_0x4d3885=>join(_0x4d3885,_0x563172,_0x313b98(0xf6))),_0xca429b=_0x1539e7[_0x313b98(0xe3)](_0x33130a=>existsSync(_0x33130a));if(_0xca429b)return{'state':_0x313b98(0xed),'path':_0xca429b};const _0x55e0e9=readLockLookup(_0x31c907,_0x563172);if(_0x55e0e9[_0x313b98(0xd1)]==='unusable')return{'state':_0x313b98(0xd8),'reason':_0x55e0e9[_0x313b98(0xe8)]};if(_0x55e0e9[_0x313b98(0xd1)]===_0x313b98(0xd7))return{'state':_0x313b98(0xd8),'reason':_0x31c907+_0x313b98(0xea)+_0x563172+_0x313b98(0xf4)+('('+_0x1539e7[_0x313b98(0xe4)](',\x20')+')')};return{'state':_0x313b98(0xe1),'checked':_0x1539e7};}
@@ -1 +1 @@
1
- function a314_0x5d6e(){const _0x2e6bc4=['stringify','17912GRuWFG','19579tiLxSF','service','719412tnkDof','rabetbase.command','durationMs','546356GWQQyR','flags','some','9djwqMR','28TLehyi','140ipEDyG','24fPqZCq','[REDACTED]','entries','command','4620tiAISO','493163iNMoRl','2557480FdKicn'];a314_0x5d6e=function(){return _0x2e6bc4;};return a314_0x5d6e();}(function(_0x40b1af,_0x2a5882){const _0x1f2cff=a314_0x34cc,_0x229f37=_0x40b1af();while(!![]){try{const _0x15010d=-parseInt(_0x1f2cff(0x99))/0x1*(-parseInt(_0x1f2cff(0x8f))/0x2)+-parseInt(_0x1f2cff(0x92))/0x3+-parseInt(_0x1f2cff(0x95))/0x4+parseInt(_0x1f2cff(0x8b))/0x5+parseInt(_0x1f2cff(0x87))/0x6*(-parseInt(_0x1f2cff(0x90))/0x7)+-parseInt(_0x1f2cff(0x8d))/0x8*(parseInt(_0x1f2cff(0x98))/0x9)+parseInt(_0x1f2cff(0x86))/0xa*(parseInt(_0x1f2cff(0x8c))/0xb);if(_0x15010d===_0x2a5882)break;else _0x229f37['push'](_0x229f37['shift']());}catch(_0x583f6a){_0x229f37['push'](_0x229f37['shift']());}}}(a314_0x5d6e,0x2a038));function a314_0x34cc(_0x4ae7d,_0x1f7327){_0x4ae7d=_0x4ae7d-0x86;const _0x5d6ef5=a314_0x5d6e();let _0x34cc45=_0x5d6ef5[_0x4ae7d];return _0x34cc45;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x334016){const _0xa04352=a314_0x34cc;return SENSITIVE_PATTERNS[_0xa04352(0x97)](_0x5b7612=>_0x5b7612['test'](_0x334016));}function sanitizeFlags(_0x3650e4){const _0x23a01b=a314_0x34cc,_0x5dac36={};for(const [_0x3a9a8c,_0x23ed8f]of Object[_0x23a01b(0x89)](_0x3650e4)){isSensitiveKey(_0x3a9a8c)?_0x5dac36[_0x3a9a8c]=_0x23ed8f!=null&&_0x23ed8f!==''?_0x23a01b(0x88):_0x23ed8f:_0x5dac36[_0x3a9a8c]=_0x23ed8f;}return _0x5dac36;}export async function reportCommandTrace(_0x47c1d8){const _0x2b4a17=a314_0x34cc;try{const _0x582a44=sanitizeFlags(_0x47c1d8[_0x2b4a17(0x96)]);await sendCliTraceLog({'spanName':_0x2b4a17(0x93),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x47c1d8[_0x2b4a17(0x91)],'command.name':_0x47c1d8[_0x2b4a17(0x8a)],'command.flags':JSON[_0x2b4a17(0x8e)](_0x582a44),..._0x47c1d8[_0x2b4a17(0x94)]!=null?{'command.duration_ms':_0x47c1d8['durationMs']}:{},..._0x47c1d8['error']?{'command.error':_0x47c1d8['error']instanceof Error?_0x47c1d8['error']['message']:String(_0x47c1d8['error'])}:{}}});}catch{}}
1
+ (function(_0x372f18,_0x91496d){const _0x76e291=a326_0x39cb,_0x292f9f=_0x372f18();while(!![]){try{const _0x51c1fa=-parseInt(_0x76e291(0x1f3))/0x1+parseInt(_0x76e291(0x1f9))/0x2*(-parseInt(_0x76e291(0x1f5))/0x3)+parseInt(_0x76e291(0x1ff))/0x4+-parseInt(_0x76e291(0x1f7))/0x5+-parseInt(_0x76e291(0x1f6))/0x6*(parseInt(_0x76e291(0x202))/0x7)+parseInt(_0x76e291(0x204))/0x8*(parseInt(_0x76e291(0x1fe))/0x9)+-parseInt(_0x76e291(0x1fd))/0xa*(-parseInt(_0x76e291(0x1f2))/0xb);if(_0x51c1fa===_0x91496d)break;else _0x292f9f['push'](_0x292f9f['shift']());}catch(_0x106168){_0x292f9f['push'](_0x292f9f['shift']());}}}(a326_0x55c4,0x53670));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a326_0x39cb(_0x252d17,_0x4f2cd8){_0x252d17=_0x252d17-0x1f1;const _0x55c471=a326_0x55c4();let _0x39cb26=_0x55c471[_0x252d17];return _0x39cb26;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x2d1441){return SENSITIVE_PATTERNS['some'](_0x1caf99=>_0x1caf99['test'](_0x2d1441));}function sanitizeFlags(_0x57ffef){const _0x44553b=a326_0x39cb,_0x4b6256={};for(const [_0x4bd8d4,_0x3d477a]of Object[_0x44553b(0x203)](_0x57ffef)){isSensitiveKey(_0x4bd8d4)?_0x4b6256[_0x4bd8d4]=_0x3d477a!=null&&_0x3d477a!==''?_0x44553b(0x1f8):_0x3d477a:_0x4b6256[_0x4bd8d4]=_0x3d477a;}return _0x4b6256;}function a326_0x55c4(){const _0x12aae2=['33boRfRt','66xEiiAl','906670lBjBEF','[REDACTED]','118246fwprrd','message','error','command','37720ifHPgI','135axAgem','688820OAoGMZ','service','stringify','164759ojWxFd','entries','44536LaXElJ','durationMs','4664vXlvQo','422828XqgYPs','rabetbase.command'];a326_0x55c4=function(){return _0x12aae2;};return a326_0x55c4();}export async function reportCommandTrace(_0x21b4ab){const _0x347dca=a326_0x39cb;try{const _0x193a6a=sanitizeFlags(_0x21b4ab['flags']);await sendCliTraceLog({'spanName':_0x347dca(0x1f4),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x21b4ab[_0x347dca(0x200)],'command.name':_0x21b4ab[_0x347dca(0x1fc)],'command.flags':JSON[_0x347dca(0x201)](_0x193a6a),..._0x21b4ab[_0x347dca(0x1f1)]!=null?{'command.duration_ms':_0x21b4ab[_0x347dca(0x1f1)]}:{},..._0x21b4ab[_0x347dca(0x1fb)]?{'command.error':_0x21b4ab[_0x347dca(0x1fb)]instanceof Error?_0x21b4ab[_0x347dca(0x1fb)][_0x347dca(0x1fa)]:String(_0x21b4ab[_0x347dca(0x1fb)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x2d6f3b,_0x5be2c8){var _0x96d25d=a315_0x431e,_0x389664=_0x2d6f3b();while(!![]){try{var _0x569deb=parseInt(_0x96d25d(0x7f))/0x1+parseInt(_0x96d25d(0x86))/0x2*(parseInt(_0x96d25d(0x7c))/0x3)+parseInt(_0x96d25d(0x80))/0x4*(parseInt(_0x96d25d(0x7e))/0x5)+parseInt(_0x96d25d(0x87))/0x6*(-parseInt(_0x96d25d(0x81))/0x7)+parseInt(_0x96d25d(0x82))/0x8+-parseInt(_0x96d25d(0x83))/0x9+-parseInt(_0x96d25d(0x84))/0xa;if(_0x569deb===_0x5be2c8)break;else _0x389664['push'](_0x389664['shift']());}catch(_0x52dadd){_0x389664['push'](_0x389664['shift']());}}}(a315_0x30a3,0x4a07b));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a315_0x30a3(){var _0x244b0d=['error','59127oHvAnZ','cli.help','10xiKMke','537446BkhCvt','944936BeYKZA','2758224Svppii','4488632fTFvXa','3470220SBNihO','8626250CrpRJm','service','38vNOPpF','6BbjLMa'];a315_0x30a3=function(){return _0x244b0d;};return a315_0x30a3();}function a315_0x431e(_0x47b767,_0x29e70d){_0x47b767=_0x47b767-0x7b;var _0x30a3bc=a315_0x30a3();var _0x431e16=_0x30a3bc[_0x47b767];return _0x431e16;}export async function reportCliHelpTrace(_0x2021b0,_0x1bc6b6){var _0x1e7824=a315_0x431e;try{await sendCliTraceLog({'spanName':_0x1e7824(0x7d),'logData':{'rabetbase.help.kind':_0x2021b0,..._0x1bc6b6?.['service']&&{'rabetbase.help.service':_0x1bc6b6[_0x1e7824(0x85)]}}});}catch(_0x3a17d5){console[_0x1e7824(0x7b)]('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x3a17d5);}}
1
+ function a327_0x5338(_0x763de1,_0x1505f5){_0x763de1=_0x763de1-0xe0;var _0x536c97=a327_0x536c();var _0x533863=_0x536c97[_0x763de1];return _0x533863;}function a327_0x536c(){var _0xa24cc6=['error','23466ysNTdn','8rAHHzD','196ptDfWa','94458HjFbrX','7827239FkNDRt','service','14351454oYKGGH','22781436wHkLhz','88215MSEgCV','10xoYGNN','cli.help','Failed\x20to\x20report\x20CLI\x20help\x20trace:','19740523aDObjq','1970tGNGCf','16ksutNU'];a327_0x536c=function(){return _0xa24cc6;};return a327_0x536c();}(function(_0x22e823,_0x75c2a0){var _0x55f6c1=a327_0x5338,_0xce6bff=_0x22e823();while(!![]){try{var _0x3fb734=-parseInt(_0x55f6c1(0xe9))/0x1*(-parseInt(_0x55f6c1(0xee))/0x2)+parseInt(_0x55f6c1(0xe3))/0x3*(-parseInt(_0x55f6c1(0xed))/0x4)+-parseInt(_0x55f6c1(0xe8))/0x5*(parseInt(_0x55f6c1(0xeb))/0x6)+parseInt(_0x55f6c1(0xef))/0x7*(parseInt(_0x55f6c1(0xec))/0x8)+-parseInt(_0x55f6c1(0xe1))/0x9+-parseInt(_0x55f6c1(0xe4))/0xa*(-parseInt(_0x55f6c1(0xe7))/0xb)+parseInt(_0x55f6c1(0xe2))/0xc;if(_0x3fb734===_0x75c2a0)break;else _0xce6bff['push'](_0xce6bff['shift']());}catch(_0x1cfcff){_0xce6bff['push'](_0xce6bff['shift']());}}}(a327_0x536c,0xf1d26));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x557821,_0x946c01){var _0x421b55=a327_0x5338;try{await sendCliTraceLog({'spanName':_0x421b55(0xe5),'logData':{'rabetbase.help.kind':_0x557821,..._0x946c01?.[_0x421b55(0xe0)]&&{'rabetbase.help.service':_0x946c01[_0x421b55(0xe0)]}}});}catch(_0xb7f88b){console[_0x421b55(0xea)](_0x421b55(0xe6),_0xb7f88b);}}
@@ -1 +1 @@
1
- (function(_0x3ee71e,_0x14a48a){const _0x4f81f7=a316_0x23b9,_0x1ade37=_0x3ee71e();while(!![]){try{const _0x1fbf6a=-parseInt(_0x4f81f7(0x155))/0x1*(parseInt(_0x4f81f7(0x15d))/0x2)+-parseInt(_0x4f81f7(0x151))/0x3*(-parseInt(_0x4f81f7(0x15c))/0x4)+-parseInt(_0x4f81f7(0x153))/0x5+parseInt(_0x4f81f7(0x15e))/0x6*(parseInt(_0x4f81f7(0x15f))/0x7)+-parseInt(_0x4f81f7(0x158))/0x8+-parseInt(_0x4f81f7(0x157))/0x9*(-parseInt(_0x4f81f7(0x152))/0xa)+parseInt(_0x4f81f7(0x14f))/0xb*(parseInt(_0x4f81f7(0x159))/0xc);if(_0x1fbf6a===_0x14a48a)break;else _0x1ade37['push'](_0x1ade37['shift']());}catch(_0x30eefd){_0x1ade37['push'](_0x1ade37['shift']());}}}(a316_0x4614,0xbb53d));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a316_0x23b9(_0x542587,_0x2a4592){_0x542587=_0x542587-0x14d;const _0x461410=a316_0x4614();let _0x23b9ad=_0x461410[_0x542587];return _0x23b9ad;}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 _0x2127a1=a316_0x23b9,_0x4159b1=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x5ebf0c=_0x4159b1?.[_0x2127a1(0x15a)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x2127a1(0x154):_0x2127a1(0x15b))}),setUserContext({'id':_0x5ebf0c?.['id'],'username':_0x5ebf0c?.[_0x2127a1(0x14d)],'nickname':_0x5ebf0c?.[_0x2127a1(0x156)],'email':_0x5ebf0c?.[_0x2127a1(0x14e)],'tenantCode':_0x5ebf0c?.['tenant']?.[_0x2127a1(0x150)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x4159b1;}function a316_0x4614(){const _0x107fe1=['3SiCdDs','121470crYlqN','6328605NyLfNu','daily','29507mJXKjE','nickname','126JqYjmW','1820320epUAvh','2869764NpdNyL','user','production','107216qjgwyS','34oeuMiL','12bhNBHh','3119487UAbjWw','username','email','77SuJOmi','tenant_code'];a316_0x4614=function(){return _0x107fe1;};return a316_0x4614();}
1
+ function a328_0xccae(_0x5b918f,_0x106b5a){_0x5b918f=_0x5b918f-0xb8;const _0x854acc=a328_0x854a();let _0xccae6=_0x854acc[_0x5b918f];return _0xccae6;}(function(_0x272b31,_0x3246c3){const _0x29db5c=a328_0xccae,_0x1d3943=_0x272b31();while(!![]){try{const _0x3bd634=-parseInt(_0x29db5c(0xbf))/0x1*(parseInt(_0x29db5c(0xc4))/0x2)+parseInt(_0x29db5c(0xc6))/0x3+-parseInt(_0x29db5c(0xc2))/0x4*(parseInt(_0x29db5c(0xc5))/0x5)+parseInt(_0x29db5c(0xc8))/0x6+-parseInt(_0x29db5c(0xbd))/0x7*(-parseInt(_0x29db5c(0xba))/0x8)+-parseInt(_0x29db5c(0xbc))/0x9*(-parseInt(_0x29db5c(0xcb))/0xa)+-parseInt(_0x29db5c(0xc9))/0xb;if(_0x3bd634===_0x3246c3)break;else _0x1d3943['push'](_0x1d3943['shift']());}catch(_0x1260dc){_0x1d3943['push'](_0x1d3943['shift']());}}}(a328_0x854a,0x8d55c));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 _0x5421a5=a328_0xccae,_0x5dc3e7=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0xfd2691=_0x5dc3e7?.[_0x5421a5(0xbe)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x5421a5(0xc0)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x5421a5(0xc7):_0x5421a5(0xb8))}),setUserContext({'id':_0xfd2691?.['id'],'username':_0xfd2691?.[_0x5421a5(0xb9)],'nickname':_0xfd2691?.[_0x5421a5(0xbb)],'email':_0xfd2691?.[_0x5421a5(0xc3)],'tenantCode':_0xfd2691?.[_0x5421a5(0xca)]?.[_0x5421a5(0xc1)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x5dc3e7;}function a328_0x854a(){const _0x46aa3a=['production','username','544nHPfaC','nickname','9ZqsrPO','44359QAatSt','user','57183ehxXnK','unknown','tenant_code','632WYlXks','email','14elLhzy','19315QDrjfG','3465672Zocumw','daily','4989936AnWsrl','16951902BLrujz','tenant','7128290lKAxBG'];a328_0x854a=function(){return _0x46aa3a;};return a328_0x854a();}
@@ -1 +1 @@
1
- (function(_0x10b3f7,_0x14bfa7){const _0x36c4eb=a317_0x21d4,_0x4e34de=_0x10b3f7();while(!![]){try{const _0x5efaee=parseInt(_0x36c4eb(0x188))/0x1+parseInt(_0x36c4eb(0x18d))/0x2*(parseInt(_0x36c4eb(0x182))/0x3)+-parseInt(_0x36c4eb(0x18c))/0x4*(-parseInt(_0x36c4eb(0x189))/0x5)+parseInt(_0x36c4eb(0x183))/0x6*(-parseInt(_0x36c4eb(0x180))/0x7)+-parseInt(_0x36c4eb(0x18a))/0x8+-parseInt(_0x36c4eb(0x187))/0x9+parseInt(_0x36c4eb(0x184))/0xa;if(_0x5efaee===_0x14bfa7)break;else _0x4e34de['push'](_0x4e34de['shift']());}catch(_0x348c6e){_0x4e34de['push'](_0x4e34de['shift']());}}}(a317_0x45c8,0x79aa3));function a317_0x21d4(_0x1797d,_0x46be84){_0x1797d=_0x1797d-0x17e;const _0x45c836=a317_0x45c8();let _0x21d460=_0x45c836[_0x1797d];return _0x21d460;}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;}export function registerOtelShutdownOnExit(){const _0x189839=a317_0x21d4;process[_0x189839(0x185)](_0x189839(0x17e),()=>{void flushOtelNodeIfUsed();});const _0xb7a61d=()=>{const _0x56f5f2=_0x189839;void flushOtelNodeIfUsed()[_0x56f5f2(0x181)](()=>process[_0x56f5f2(0x17f)](0x0));};process['once'](_0x189839(0x18b),_0xb7a61d),process[_0x189839(0x185)](_0x189839(0x186),_0xb7a61d);}export async function exitWithOtelShutdown(_0x504e1b){const _0x53e3f0=a317_0x21d4;await flushOtelNodeIfUsed(),process[_0x53e3f0(0x17f)](_0x504e1b);}function a317_0x45c8(){const _0x501126=['SIGINT','1206160lTTKBc','2QDplCE','beforeExit','exit','693hpgMCO','then','2193849hfzLzU','5154btzwlk','1930320QULogF','once','SIGTERM','8148996bDqReF','582097kdSRYl','10LreGer','4965344HcIpPO'];a317_0x45c8=function(){return _0x501126;};return a317_0x45c8();}
1
+ function a329_0x3bb5(_0x73d454,_0x1d7b7c){_0x73d454=_0x73d454-0xb7;const _0x419340=a329_0x4193();let _0x3bb573=_0x419340[_0x73d454];return _0x3bb573;}(function(_0x58a945,_0x5f46cc){const _0x47363f=a329_0x3bb5,_0x411ace=_0x58a945();while(!![]){try{const _0x70f86e=-parseInt(_0x47363f(0xbd))/0x1*(-parseInt(_0x47363f(0xc5))/0x2)+-parseInt(_0x47363f(0xc4))/0x3+-parseInt(_0x47363f(0xc1))/0x4*(-parseInt(_0x47363f(0xc3))/0x5)+-parseInt(_0x47363f(0xbc))/0x6*(parseInt(_0x47363f(0xba))/0x7)+parseInt(_0x47363f(0xb9))/0x8*(-parseInt(_0x47363f(0xbf))/0x9)+-parseInt(_0x47363f(0xb8))/0xa+parseInt(_0x47363f(0xc2))/0xb;if(_0x70f86e===_0x5f46cc)break;else _0x411ace['push'](_0x411ace['shift']());}catch(_0x1548cc){_0x411ace['push'](_0x411ace['shift']());}}}(a329_0x4193,0x296c1));import{shutdownTraces}from'@lovrabet/otel-logger';function a329_0x4193(){const _0x354d31=['SIGINT','8055jYYvhg','exit','53644unREvW','7938711JhfLsV','15xLtWMY','848403shpdtR','32FXAAmC','beforeExit','1529080uAwWxb','1168TdjSnx','7TqcoRh','once','1975308boceTM','18958SNdkVM'];a329_0x4193=function(){return _0x354d31;};return a329_0x4193();}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x535260=a329_0x3bb5;process[_0x535260(0xbb)](_0x535260(0xb7),()=>{void flushOtelNodeIfUsed();});const _0xe1588e=()=>{const _0x1f6a38=_0x535260;void flushOtelNodeIfUsed()['then'](()=>process[_0x1f6a38(0xc0)](0x0));};process['once'](_0x535260(0xbe),_0xe1588e),process[_0x535260(0xbb)]('SIGTERM',_0xe1588e);}export async function exitWithOtelShutdown(_0x11a03f){const _0x4bc0fd=a329_0x3bb5;await flushOtelNodeIfUsed(),process[_0x4bc0fd(0xc0)](_0x11a03f);}
@@ -1 +1 @@
1
- function a318_0x4b1d(_0x31dede,_0x2a36c0){_0x31dede=_0x31dede-0x118;const _0x18c1ba=a318_0x18c1();let _0x4b1d02=_0x18c1ba[_0x31dede];return _0x4b1d02;}(function(_0x58e936,_0x5a11bf){const _0x30ba22=a318_0x4b1d,_0x340e61=_0x58e936();while(!![]){try{const _0x48fc0d=parseInt(_0x30ba22(0x118))/0x1+parseInt(_0x30ba22(0x124))/0x2*(-parseInt(_0x30ba22(0x121))/0x3)+-parseInt(_0x30ba22(0x11e))/0x4*(parseInt(_0x30ba22(0x11c))/0x5)+-parseInt(_0x30ba22(0x120))/0x6+parseInt(_0x30ba22(0x11d))/0x7+-parseInt(_0x30ba22(0x11b))/0x8+-parseInt(_0x30ba22(0x119))/0x9*(-parseInt(_0x30ba22(0x11a))/0xa);if(_0x48fc0d===_0x5a11bf)break;else _0x340e61['push'](_0x340e61['shift']());}catch(_0x536fc8){_0x340e61['push'](_0x340e61['shift']());}}}(a318_0x18c1,0x55116));function a318_0x18c1(){const _0x175067=['9532791IlLxCu','10kmtxxh','4787216sxuEJs','15SLvbLn','3481919eebkdz','717796CzBjlC','traceparent','3029166EsjbLo','6vWUSPy','manual','traceName','244522UNXGnD','677954aBGVjo'];a318_0x18c1=function(){return _0x175067;};return a318_0x18c1();}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='rabetbase-cli';export async function sendCliTraceLog(_0x460596){const _0x5329aa=a318_0x4b1d;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x460596[_0x5329aa(0x123)]??DEFAULT_TRACE_NAME,'version':_0x460596['version']??getCliVersion(),'spanName':_0x460596['spanName'],'eventType':_0x5329aa(0x122),'logData':_0x460596['logData'],..._0x460596[_0x5329aa(0x11f)]&&{'traceparent':_0x460596[_0x5329aa(0x11f)]}});}
1
+ const a330_0x162966=a330_0x4bac;(function(_0x3fd11d,_0x5f5515){const _0x567519=a330_0x4bac,_0x47c616=_0x3fd11d();while(!![]){try{const _0x4173bc=parseInt(_0x567519(0x1c6))/0x1*(parseInt(_0x567519(0x1c4))/0x2)+parseInt(_0x567519(0x1cb))/0x3+-parseInt(_0x567519(0x1ca))/0x4*(-parseInt(_0x567519(0x1c2))/0x5)+parseInt(_0x567519(0x1cd))/0x6*(parseInt(_0x567519(0x1c5))/0x7)+parseInt(_0x567519(0x1c1))/0x8+parseInt(_0x567519(0x1cc))/0x9*(parseInt(_0x567519(0x1c9))/0xa)+-parseInt(_0x567519(0x1ce))/0xb;if(_0x4173bc===_0x5f5515)break;else _0x47c616['push'](_0x47c616['shift']());}catch(_0x506c8c){_0x47c616['push'](_0x47c616['shift']());}}}(a330_0x4008,0xdefa6));import{sendTraceLog}from'@lovrabet/otel-logger';function a330_0x4008(){const _0x4d3cce=['traceparent','28qKmewC','81179SjTtTd','8627rlhiyR','rabetbase-cli','version','20AbPGQj','28uKdDDM','4455939KefcGy','5121108VwjvRG','66OsvHQh','45176296VtIAnL','manual','logData','6028728gLgdqf','996415NyzavD'];a330_0x4008=function(){return _0x4d3cce;};return a330_0x4008();}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a330_0x4bac(_0x40d77c,_0x4ae292){_0x40d77c=_0x40d77c-0x1c1;const _0x400870=a330_0x4008();let _0x4bac77=_0x400870[_0x40d77c];return _0x4bac77;}const DEFAULT_TRACE_NAME=a330_0x162966(0x1c7);export async function sendCliTraceLog(_0x87a93a){const _0x40d4d6=a330_0x162966;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x87a93a['traceName']??DEFAULT_TRACE_NAME,'version':_0x87a93a[_0x40d4d6(0x1c8)]??getCliVersion(),'spanName':_0x87a93a['spanName'],'eventType':_0x40d4d6(0x1cf),'logData':_0x87a93a[_0x40d4d6(0x1d0)],..._0x87a93a[_0x40d4d6(0x1c3)]&&{'traceparent':_0x87a93a[_0x40d4d6(0x1c3)]}});}
@@ -1 +1 @@
1
- const a319_0x34bdc4=a319_0xee66;(function(_0x2f8eee,_0x1f6c09){const _0x55f66d=a319_0xee66,_0x2188b3=_0x2f8eee();while(!![]){try{const _0x57b910=parseInt(_0x55f66d(0x119))/0x1+-parseInt(_0x55f66d(0x11d))/0x2*(-parseInt(_0x55f66d(0x11b))/0x3)+-parseInt(_0x55f66d(0x10e))/0x4+parseInt(_0x55f66d(0x11a))/0x5*(-parseInt(_0x55f66d(0x110))/0x6)+parseInt(_0x55f66d(0x112))/0x7+parseInt(_0x55f66d(0x115))/0x8+-parseInt(_0x55f66d(0x10f))/0x9;if(_0x57b910===_0x1f6c09)break;else _0x2188b3['push'](_0x2188b3['shift']());}catch(_0x301dfb){_0x2188b3['push'](_0x2188b3['shift']());}}}(a319_0x2316,0xb783b));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a319_0x34bdc4(0x11c);function a319_0xee66(_0x547416,_0x4c4000){_0x547416=_0x547416-0x10e;const _0x231657=a319_0x2316();let _0xee661a=_0x231657[_0x547416];return _0xee661a;}function a319_0x2316(){const _0x957030=['6FPQAGI','sanitize','originalBytes','join','5296776drYXQd','12721761AqmFTi','498qIIrwi','redactionCount','5973744SYRrCA','description','issue.log.collect','3858056kDBaPe','truncated','title','redactionKinds','1442856zndING','13115eqlQsV','928602jXeWri','platform-issue-log-collect'];a319_0x2316=function(){return _0x957030;};return a319_0x2316();}export const PLATFORM_ISSUE_SPAN_NAME=a319_0x34bdc4(0x114);export async function sendPlatformIssueCollectLog(_0x120c96){const _0x2f1511=a319_0x34bdc4;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x120c96[_0x2f1511(0x117)],'issue.description':_0x120c96[_0x2f1511(0x113)],..._0x120c96[_0x2f1511(0x11e)]?{'issue.description_original_bytes':_0x120c96['sanitize'][_0x2f1511(0x11f)],'issue.description_truncated':_0x120c96['sanitize'][_0x2f1511(0x116)],'issue.description_redactions':_0x120c96[_0x2f1511(0x11e)][_0x2f1511(0x111)],'issue.description_redaction_kinds':_0x120c96[_0x2f1511(0x11e)][_0x2f1511(0x118)][_0x2f1511(0x120)](',')}:{}}});}
1
+ function a331_0x3d9d(_0x1c78ec,_0x4da7d5){_0x1c78ec=_0x1c78ec-0x118;const _0x492270=a331_0x4922();let _0x3d9da2=_0x492270[_0x1c78ec];return _0x3d9da2;}const a331_0x4c4fe5=a331_0x3d9d;(function(_0x5d6b7a,_0x37e594){const _0x1f8d4a=a331_0x3d9d,_0x4a9870=_0x5d6b7a();while(!![]){try{const _0x31e089=-parseInt(_0x1f8d4a(0x123))/0x1+-parseInt(_0x1f8d4a(0x11c))/0x2+-parseInt(_0x1f8d4a(0x11e))/0x3+-parseInt(_0x1f8d4a(0x118))/0x4*(-parseInt(_0x1f8d4a(0x127))/0x5)+parseInt(_0x1f8d4a(0x122))/0x6+-parseInt(_0x1f8d4a(0x11d))/0x7*(parseInt(_0x1f8d4a(0x129))/0x8)+-parseInt(_0x1f8d4a(0x11a))/0x9*(-parseInt(_0x1f8d4a(0x125))/0xa);if(_0x31e089===_0x37e594)break;else _0x4a9870['push'](_0x4a9870['shift']());}catch(_0x525706){_0x4a9870['push'](_0x4a9870['shift']());}}}(a331_0x4922,0x4bc04));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a331_0x4c4fe5(0x124);export const PLATFORM_ISSUE_SPAN_NAME=a331_0x4c4fe5(0x11b);function a331_0x4922(){const _0x19a07c=['9aVwsFB','issue.log.collect','164216pTfyLz','21HTeUGG','1046364BXGEhE','description','title','sanitize','3337002pBsmjd','286986lDrMai','platform-issue-log-collect','4531570YEWHKP','originalBytes','306165iTxqgL','join','766216QgDLOu','20HqmZSZ','redactionCount'];a331_0x4922=function(){return _0x19a07c;};return a331_0x4922();}export async function sendPlatformIssueCollectLog(_0x329501){const _0x330983=a331_0x4c4fe5;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x329501[_0x330983(0x120)],'issue.description':_0x329501[_0x330983(0x11f)],..._0x329501['sanitize']?{'issue.description_original_bytes':_0x329501[_0x330983(0x121)][_0x330983(0x126)],'issue.description_truncated':_0x329501[_0x330983(0x121)]['truncated'],'issue.description_redactions':_0x329501[_0x330983(0x121)][_0x330983(0x119)],'issue.description_redaction_kinds':_0x329501[_0x330983(0x121)]['redactionKinds'][_0x330983(0x128)](',')}:{}}});}
@@ -36,7 +36,7 @@ export interface FetchModelListResult {
36
36
  * api.ts / client.ts 的 CLI 写入动作。
37
37
  * `preserved` 表示文件已存在且本次未覆盖,Agent 必须按 data.models 合并。
38
38
  */
39
- export type ApiPullFileAction = "created" | "overwritten" | "preserved" | "refreshed";
39
+ export type ApiPullFileAction = "created" | "overwritten" | "preserved" | "refreshed" | "missing";
40
40
  export interface ApiPullFileStatus {
41
41
  path: string;
42
42
  action: ApiPullFileAction;
@@ -54,6 +54,12 @@ export interface GenerateApiFileResult {
54
54
  apiFilePath: string;
55
55
  clientFilePath: string;
56
56
  sdkConfigPath: string;
57
+ /** Profile-aware model facts. Present for the stable api.ts/client.ts entrypoint. */
58
+ modelRegistryPath?: string;
59
+ /** Stable profile selection helper used by api.ts. */
60
+ modelRuntimePath?: string;
61
+ /** Profile updated in modelRegistryPath. */
62
+ modelProfile?: string;
57
63
  /** 公开协议:默认应用为 `"default"`,具名应用为 profile 名或 appCode,不含 TS 引号 */
58
64
  configName: string;
59
65
  isDefaultConfig: boolean;
@@ -64,9 +70,13 @@ export interface GenerateApiFileResult {
64
70
  api: ApiPullFileStatus;
65
71
  client: ApiPullFileStatus;
66
72
  sdkConfig: ApiPullFileStatus;
73
+ modelRegistry?: ApiPullFileStatus;
74
+ modelRuntime?: ApiPullFileStatus;
67
75
  };
68
76
  /** 任一 TypeScript 文件被保留时为 true,Agent 必须按 models 合并,不能当成脚手架已写完 */
69
77
  needsAgentMerge: boolean;
78
+ /** Profile-aware facts are current, but project upgrade is required for stable source entrypoints. */
79
+ needsProjectUpgrade?: boolean;
70
80
  }
71
81
  /**
72
82
  * 获取文档的选项
@@ -1 +1 @@
1
- const a321_0x3abae9=a321_0x1979;(function(_0x53dba8,_0x5e444f){const _0x41f000=a321_0x1979,_0x3343ca=_0x53dba8();while(!![]){try{const _0x50a73c=-parseInt(_0x41f000(0x1c1))/0x1*(parseInt(_0x41f000(0x1b4))/0x2)+parseInt(_0x41f000(0x1c4))/0x3*(parseInt(_0x41f000(0x1db))/0x4)+parseInt(_0x41f000(0x1cd))/0x5+-parseInt(_0x41f000(0x1c8))/0x6*(-parseInt(_0x41f000(0x1b3))/0x7)+-parseInt(_0x41f000(0x1c3))/0x8*(-parseInt(_0x41f000(0x1cb))/0x9)+parseInt(_0x41f000(0x1d8))/0xa*(parseInt(_0x41f000(0x1d1))/0xb)+-parseInt(_0x41f000(0x1bb))/0xc*(parseInt(_0x41f000(0x1b8))/0xd);if(_0x50a73c===_0x5e444f)break;else _0x3343ca['push'](_0x3343ca['shift']());}catch(_0xb4b3ac){_0x3343ca['push'](_0x3343ca['shift']());}}}(a321_0x4a29,0x196a1));export const CORE_IDE_CONFIGS={'cursor':{'name':a321_0x3abae9(0x1cf),'description':'Cursor\x20IDE','folders':[a321_0x3abae9(0x1ba),a321_0x3abae9(0x1ad)],'files':[{'type':a321_0x3abae9(0x1cc),'path':a321_0x3abae9(0x1b7)}]},'windsurf':{'name':a321_0x3abae9(0x1c5),'description':a321_0x3abae9(0x1d0),'folders':['.windsurf'],'files':[{'type':a321_0x3abae9(0x1cc),'path':a321_0x3abae9(0x1bc)}]},'claude':{'name':a321_0x3abae9(0x1df),'description':'Claude\x20Code','folders':['.claude'],'files':[{'type':a321_0x3abae9(0x1cc),'path':a321_0x3abae9(0x1b6)}]},'cline':{'name':a321_0x3abae9(0x1b1),'description':a321_0x3abae9(0x1d3),'folders':[a321_0x3abae9(0x1c6)],'files':[{'type':a321_0x3abae9(0x1cc),'path':a321_0x3abae9(0x1de)}]},'codex':{'name':a321_0x3abae9(0x1c9),'description':a321_0x3abae9(0x1bf),'folders':[a321_0x3abae9(0x1ce)],'files':[{'type':a321_0x3abae9(0x1cc),'path':'.codex/skills/lovrabet/SKILL.md'}]},'opencode':{'name':a321_0x3abae9(0x1d7),'description':'OpenCode\x20IDE','folders':[a321_0x3abae9(0x1d4)],'files':[{'type':a321_0x3abae9(0x1cc),'path':a321_0x3abae9(0x1be)}]},'qoder':{'name':'Qoder','description':a321_0x3abae9(0x1dd),'folders':[a321_0x3abae9(0x1ae)],'files':[{'type':'file','path':'.qoder/rules/rabetbase.md'},{'type':a321_0x3abae9(0x1cc),'path':'.qoder/skills/lovrabet/SKILL.md'}]},'codebuddy':{'name':'CodeBuddy','description':'CodeBuddy\x20IDE','folders':[a321_0x3abae9(0x1aa)],'files':[{'type':a321_0x3abae9(0x1cc),'path':a321_0x3abae9(0x1c0)}]},'trae':{'name':a321_0x3abae9(0x1af),'description':a321_0x3abae9(0x1ab),'folders':[a321_0x3abae9(0x1b2)],'files':[{'type':a321_0x3abae9(0x1cc),'path':a321_0x3abae9(0x1c7)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a321_0x3abae9(0x1ca),'description':a321_0x3abae9(0x1b0),'folders':['.agent'],'files':[{'type':a321_0x3abae9(0x1cc),'path':a321_0x3abae9(0x1e0)}]},'antigravity':{'name':a321_0x3abae9(0x1d5),'description':'Antigravity\x20IDE','folders':['.agent'],'files':[{'type':a321_0x3abae9(0x1cc),'path':a321_0x3abae9(0x1e0)}]}};export const CORE_IDE_LIST=[a321_0x3abae9(0x1d2),a321_0x3abae9(0x1b5),a321_0x3abae9(0x1da),'codex',a321_0x3abae9(0x1dc),a321_0x3abae9(0x1ac),a321_0x3abae9(0x1c2),'trae',a321_0x3abae9(0x1b9)];export const IDE_LIST=['antigravity',a321_0x3abae9(0x1d2),a321_0x3abae9(0x1b5),a321_0x3abae9(0x1da),a321_0x3abae9(0x1d9),a321_0x3abae9(0x1dc),a321_0x3abae9(0x1ac),a321_0x3abae9(0x1c2),a321_0x3abae9(0x1bd),a321_0x3abae9(0x1b9),a321_0x3abae9(0x1d6)];function a321_0x4a29(){const _0x4861a1=['Other\x20(generic\x20template)','18bANqce','file','813865UTLexu','.codex','Cursor','Windsurf\x20IDE','889394ywjaxr','claude','Cline\x20IDE','.opencode','Antigravity','agent','OpenCode','10LulBHs','codex','codebuddy','29620bPvfEC','cursor','Qoder\x20IDE','.cline/skills/lovrabet/SKILL.md','Claude\x20Code','.agent/skills/lovrabet/SKILL.md','.codebuddy','Trae\x20IDE','opencode','.cursor','.qoder','Trae','Generic\x20template\x20fallback','Cline','.trae','13706qjIyUo','2cVaVQP','cline','.claude/skills/lovrabet/SKILL.md','.cursor/skills/rabetbase.md','1885uOrpfl','windsurf','.cursorrules','29616umNhPX','.windsurf/workflows/rabetbase.md','trae','.opencode/skills/lovrabet/SKILL.md','Codex\x20IDE','.codebuddy/skills/lovrabet/SKILL.md','179913kRiENg','qoder','799648XxWgGu','51vuwrOw','Windsurf','.cline','.trae/skills/lovrabet/SKILL.md','222YhMqyb','Codex'];a321_0x4a29=function(){return _0x4861a1;};return a321_0x4a29();}function a321_0x1979(_0x578463,_0x1a789b){_0x578463=_0x578463-0x1aa;const _0x4a2973=a321_0x4a29();let _0x1979f6=_0x4a2973[_0x578463];return _0x1979f6;}export const ALL_CORE_IDES=[a321_0x3abae9(0x1dc),a321_0x3abae9(0x1b9),'claude','cline',a321_0x3abae9(0x1d9),a321_0x3abae9(0x1ac),a321_0x3abae9(0x1c2),a321_0x3abae9(0x1da),a321_0x3abae9(0x1bd)];
1
+ const a333_0x43db81=a333_0x300e;(function(_0x6e0c7b,_0x46c2b0){const _0x1d4eca=a333_0x300e,_0x59db18=_0x6e0c7b();while(!![]){try{const _0x6ba81=-parseInt(_0x1d4eca(0x1bd))/0x1+parseInt(_0x1d4eca(0x1ca))/0x2*(-parseInt(_0x1d4eca(0x1d0))/0x3)+parseInt(_0x1d4eca(0x1ce))/0x4+-parseInt(_0x1d4eca(0x1cb))/0x5*(-parseInt(_0x1d4eca(0x1df))/0x6)+-parseInt(_0x1d4eca(0x1d8))/0x7+-parseInt(_0x1d4eca(0x1e1))/0x8*(parseInt(_0x1d4eca(0x1cc))/0x9)+-parseInt(_0x1d4eca(0x1e4))/0xa*(parseInt(_0x1d4eca(0x1db))/0xb);if(_0x6ba81===_0x46c2b0)break;else _0x59db18['push'](_0x59db18['shift']());}catch(_0x95961d){_0x59db18['push'](_0x59db18['shift']());}}}(a333_0x5548,0x4d78f));export const CORE_IDE_CONFIGS={'cursor':{'name':a333_0x43db81(0x1dc),'description':a333_0x43db81(0x1d5),'folders':[a333_0x43db81(0x1be),'.cursor'],'files':[{'type':a333_0x43db81(0x1e2),'path':a333_0x43db81(0x1c4)}]},'windsurf':{'name':a333_0x43db81(0x1cf),'description':a333_0x43db81(0x1e3),'folders':[a333_0x43db81(0x1c7)],'files':[{'type':'file','path':a333_0x43db81(0x1c3)}]},'claude':{'name':a333_0x43db81(0x1c0),'description':'Claude\x20Code','folders':[a333_0x43db81(0x1b8)],'files':[{'type':a333_0x43db81(0x1e2),'path':a333_0x43db81(0x1b5)}]},'cline':{'name':a333_0x43db81(0x1bc),'description':a333_0x43db81(0x1d1),'folders':['.cline'],'files':[{'type':'file','path':a333_0x43db81(0x1b7)}]},'codex':{'name':a333_0x43db81(0x1d7),'description':a333_0x43db81(0x1d9),'folders':['.codex'],'files':[{'type':a333_0x43db81(0x1e2),'path':'.codex/skills/lovrabet/SKILL.md'}]},'opencode':{'name':a333_0x43db81(0x1c1),'description':'OpenCode\x20IDE','folders':['.opencode'],'files':[{'type':a333_0x43db81(0x1e2),'path':'.opencode/skills/lovrabet/SKILL.md'}]},'qoder':{'name':a333_0x43db81(0x1c6),'description':'Qoder\x20IDE','folders':['.qoder'],'files':[{'type':a333_0x43db81(0x1e2),'path':a333_0x43db81(0x1e0)},{'type':'file','path':a333_0x43db81(0x1c8)}]},'codebuddy':{'name':a333_0x43db81(0x1ba),'description':'CodeBuddy\x20IDE','folders':['.codebuddy'],'files':[{'type':'file','path':a333_0x43db81(0x1c5)}]},'trae':{'name':a333_0x43db81(0x1b9),'description':'Trae\x20IDE','folders':[a333_0x43db81(0x1c2)],'files':[{'type':'file','path':'.trae/skills/lovrabet/SKILL.md'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a333_0x43db81(0x1e5),'description':'Generic\x20template\x20fallback','folders':['.agent'],'files':[{'type':'file','path':a333_0x43db81(0x1bb)}]},'antigravity':{'name':a333_0x43db81(0x1b4),'description':a333_0x43db81(0x1c9),'folders':['.agent'],'files':[{'type':a333_0x43db81(0x1e2),'path':a333_0x43db81(0x1bb)}]}};function a333_0x300e(_0x41cf3d,_0x5084b7){_0x41cf3d=_0x41cf3d-0x1b4;const _0x55489a=a333_0x5548();let _0x300e25=_0x55489a[_0x41cf3d];return _0x300e25;}export const CORE_IDE_LIST=[a333_0x43db81(0x1dd),a333_0x43db81(0x1b6),a333_0x43db81(0x1da),'codex',a333_0x43db81(0x1d6),a333_0x43db81(0x1bf),a333_0x43db81(0x1d3),a333_0x43db81(0x1d2),a333_0x43db81(0x1d4)];export const IDE_LIST=['antigravity',a333_0x43db81(0x1dd),a333_0x43db81(0x1b6),a333_0x43db81(0x1da),a333_0x43db81(0x1cd),a333_0x43db81(0x1d6),a333_0x43db81(0x1bf),a333_0x43db81(0x1d3),a333_0x43db81(0x1d2),a333_0x43db81(0x1d4),a333_0x43db81(0x1de)];function a333_0x5548(){const _0x453010=['2248656tHiDCv','Windsurf','6249ccCLyx','Cline\x20IDE','trae','qoder','windsurf','Cursor\x20IDE','cursor','Codex','1659819TsBjGZ','Codex\x20IDE','codebuddy','568733lucMPS','Cursor','claude','agent','6XnKaLQ','.qoder/rules/rabetbase.md','296jNhmNZ','file','Windsurf\x20IDE','20ijSRBy','Other\x20(generic\x20template)','Antigravity','.claude/skills/lovrabet/SKILL.md','cline','.cline/skills/lovrabet/SKILL.md','.claude','Trae','CodeBuddy','.agent/skills/lovrabet/SKILL.md','Cline','123352tioArR','.cursorrules','opencode','Claude\x20Code','OpenCode','.trae','.windsurf/workflows/rabetbase.md','.cursor/skills/rabetbase.md','.codebuddy/skills/lovrabet/SKILL.md','Qoder','.windsurf','.qoder/skills/lovrabet/SKILL.md','Antigravity\x20IDE','382oGWqtP','3146245HgGyYs','3006tLoepO','codex'];a333_0x5548=function(){return _0x453010;};return a333_0x5548();}export const ALL_CORE_IDES=['cursor','windsurf',a333_0x43db81(0x1dd),a333_0x43db81(0x1b6),a333_0x43db81(0x1cd),'opencode',a333_0x43db81(0x1d3),a333_0x43db81(0x1da),a333_0x43db81(0x1d2)];
@@ -1 +1 @@
1
- (function(_0xc9729e,_0x228fe4){const _0x37695e=a322_0x2cb1,_0x2ab0d5=_0xc9729e();while(!![]){try{const _0x2d4dce=-parseInt(_0x37695e(0x1dc))/0x1*(parseInt(_0x37695e(0x1db))/0x2)+-parseInt(_0x37695e(0x1e0))/0x3*(parseInt(_0x37695e(0x1de))/0x4)+-parseInt(_0x37695e(0x1dd))/0x5*(-parseInt(_0x37695e(0x1d7))/0x6)+parseInt(_0x37695e(0x1d9))/0x7*(-parseInt(_0x37695e(0x1df))/0x8)+parseInt(_0x37695e(0x1d6))/0x9+-parseInt(_0x37695e(0x1d8))/0xa*(parseInt(_0x37695e(0x1e1))/0xb)+parseInt(_0x37695e(0x1da))/0xc;if(_0x2d4dce===_0x228fe4)break;else _0x2ab0d5['push'](_0x2ab0d5['shift']());}catch(_0x4a5f3a){_0x2ab0d5['push'](_0x2ab0d5['shift']());}}}(a322_0x2207,0x28b5f));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a322_0x2207(){const _0x56f5e4=['198Twxkyk','9160LvLQxX','12376xvYoFv','5517156AIAkWb','94RUbIJz','829qLYdqZ','1060eTMeuS','4SYXXIN','1072YfDMxQ','734259sckvZW','55xyxjEB','2026800nSbTmX'];a322_0x2207=function(){return _0x56f5e4;};return a322_0x2207();}function a322_0x2cb1(_0x2e8a1a,_0xd34f44){_0x2e8a1a=_0x2e8a1a-0x1d6;const _0x2207f4=a322_0x2207();let _0x2cb1de=_0x2207f4[_0x2e8a1a];return _0x2cb1de;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x35578f,_0x6786b0){const _0x36d147=a334_0x29c3,_0x1387b1=_0x35578f();while(!![]){try{const _0xd4f556=-parseInt(_0x36d147(0x84))/0x1+-parseInt(_0x36d147(0x7c))/0x2*(-parseInt(_0x36d147(0x82))/0x3)+-parseInt(_0x36d147(0x81))/0x4+parseInt(_0x36d147(0x80))/0x5+-parseInt(_0x36d147(0x7f))/0x6*(-parseInt(_0x36d147(0x83))/0x7)+-parseInt(_0x36d147(0x7d))/0x8+parseInt(_0x36d147(0x85))/0x9*(parseInt(_0x36d147(0x7e))/0xa);if(_0xd4f556===_0x6786b0)break;else _0x1387b1['push'](_0x1387b1['shift']());}catch(_0x2834e8){_0x1387b1['push'](_0x1387b1['shift']());}}}(a334_0x2ea4,0x863ce));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a334_0x2ea4(){const _0x1310b4=['2528808PlSxJq','6UGYueC','231mwvmUF','610220oCkyAv','27KmVhxm','655418VtiyUT','4760352lrbAKD','2552690KWBxyN','24QPPbuq','4829735grYbgz'];a334_0x2ea4=function(){return _0x1310b4;};return a334_0x2ea4();}import{CliErrors}from'../errors.js';function a334_0x29c3(_0x274b3c,_0x54a229){_0x274b3c=_0x274b3c-0x7c;const _0x2ea422=a334_0x2ea4();let _0x29c3e4=_0x2ea422[_0x274b3c];return _0x29c3e4;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x583ae6,_0x4d726a){const _0x52c078=a323_0xacb5,_0x5c0922=_0x583ae6();while(!![]){try{const _0x375db2=parseInt(_0x52c078(0x15e))/0x1*(parseInt(_0x52c078(0x166))/0x2)+parseInt(_0x52c078(0x163))/0x3*(parseInt(_0x52c078(0x158))/0x4)+-parseInt(_0x52c078(0x162))/0x5*(parseInt(_0x52c078(0x165))/0x6)+-parseInt(_0x52c078(0x168))/0x7*(parseInt(_0x52c078(0x15f))/0x8)+-parseInt(_0x52c078(0x157))/0x9*(-parseInt(_0x52c078(0x15b))/0xa)+-parseInt(_0x52c078(0x164))/0xb+-parseInt(_0x52c078(0x15d))/0xc;if(_0x375db2===_0x4d726a)break;else _0x5c0922['push'](_0x5c0922['shift']());}catch(_0x36b4fd){_0x5c0922['push'](_0x5c0922['shift']());}}}(a323_0x1764,0x1f2b7));function a323_0x1764(){const _0x453ca5=['json','16737rWdiyM','cli','13077EIRjzU','1940CLAgvN','node','/config.json','1450UfTIVI','/config/index.json','90060hgAJQy','1vHgUUE','456oyQBCR','stableVersion','now','1237805gPMetJ','1257ZaJhEU','703439CSJFsA','6EahybN','338146TqyhhM'];a323_0x1764=function(){return _0x453ca5;};return a323_0x1764();}import{getTemplateBaseUrl}from'../utils/config.js';function a323_0xacb5(_0x68f4cd,_0x45d6b1){_0x68f4cd=_0x68f4cd-0x157;const _0x1764fd=a323_0x1764();let _0xacb550=_0x1764fd[_0x68f4cd];return _0xacb550;}export async function fetchCdnConfig(){const _0x150e44=a323_0xacb5,_0x48fe85=getTemplateBaseUrl(),_0x7cdcb5=[_0x48fe85+_0x150e44(0x15a),_0x48fe85+_0x150e44(0x15c)];for(const _0x57abb4 of _0x7cdcb5){try{const _0x1bd02f=await fetch(_0x57abb4,{'headers':{'Accept':'application/json'}});if(!_0x1bd02f['ok'])continue;const _0xfc84bf=await _0x1bd02f[_0x150e44(0x167)]();if(!_0xfc84bf[_0x150e44(0x169)]?.[_0x150e44(0x160)]||!_0xfc84bf['sdk']?.[_0x150e44(0x159)]?.['stableVersion'])continue;return _0xfc84bf;}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 _0x46f5f2=a323_0xacb5,_0x4d19a2=Date[_0x46f5f2(0x161)]();if(hasCachedConfig){const _0x298280=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4d19a2-cacheTime<_0x298280)return cachedConfig;}const _0x4cf947=await fetchCdnConfig();return cachedConfig=_0x4cf947,cacheTime=_0x4d19a2,hasCachedConfig=!![],_0x4cf947;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ function a335_0x16bd(){const _0x275940=['30XSTSlh','942156sJiEQm','3081fUMQki','462538GndLYH','2410680WCYIFs','15817020wZVckR','node','10413896fKrHwE','stableVersion','sdk','3092KsHtwp','/config.json','application/json','18TTXEvd','/config/index.json','791203ObipTZ'];a335_0x16bd=function(){return _0x275940;};return a335_0x16bd();}(function(_0x217d15,_0x48d6a0){const _0x498c7f=a335_0x5cdf,_0x16bb9a=_0x217d15();while(!![]){try{const _0x15252c=-parseInt(_0x498c7f(0xe0))/0x1+-parseInt(_0x498c7f(0xde))/0x2+parseInt(_0x498c7f(0xdf))/0x3*(parseInt(_0x498c7f(0xd7))/0x4)+-parseInt(_0x498c7f(0xe1))/0x5+-parseInt(_0x498c7f(0xdd))/0x6*(parseInt(_0x498c7f(0xdc))/0x7)+-parseInt(_0x498c7f(0xd4))/0x8+-parseInt(_0x498c7f(0xda))/0x9*(-parseInt(_0x498c7f(0xe2))/0xa);if(_0x15252c===_0x48d6a0)break;else _0x16bb9a['push'](_0x16bb9a['shift']());}catch(_0x4dbe61){_0x16bb9a['push'](_0x16bb9a['shift']());}}}(a335_0x16bd,0xa4b51));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x1be585=a335_0x5cdf,_0x28ff05=getTemplateBaseUrl(),_0x2eaa30=[_0x28ff05+_0x1be585(0xd8),_0x28ff05+_0x1be585(0xdb)];for(const _0x47d942 of _0x2eaa30){try{const _0x2aac63=await fetch(_0x47d942,{'headers':{'Accept':_0x1be585(0xd9)}});if(!_0x2aac63['ok'])continue;const _0x4c2f1e=await _0x2aac63['json']();if(!_0x4c2f1e['cli']?.[_0x1be585(0xd5)]||!_0x4c2f1e[_0x1be585(0xd6)]?.[_0x1be585(0xe3)]?.[_0x1be585(0xd5)])continue;return _0x4c2f1e;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a335_0x5cdf(_0xf35c91,_0x45f217){_0xf35c91=_0xf35c91-0xd4;const _0x16bd1c=a335_0x16bd();let _0x5cdf34=_0x16bd1c[_0xf35c91];return _0x5cdf34;}let hasCachedConfig=![];export async function getCdnConfig(){const _0x5116e9=Date['now']();if(hasCachedConfig){const _0x55be41=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5116e9-cacheTime<_0x55be41)return cachedConfig;}const _0x107d53=await fetchCdnConfig();return cachedConfig=_0x107d53,cacheTime=_0x5116e9,hasCachedConfig=!![],_0x107d53;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- function a324_0x235f(){const _0x4abbd3=['\x20\x20\x20Current\x20version:\x20','11ekdOaA','dependencies','existsSync','39276LiZvkH','7JgKqkw','\x1b[33m','3945696XpFPpn','4075090HVvGck','join','872523UHVKAe','1634075OWprXA','some','143276OaWWEi','32fQihhR','102112jSoplh','\x1b[0m','stableVersion','coerce','packageName','\x20\x20\x20Stable\x20version:\x20','sdk','node_modules','needsUpgrade','↪\x20SDK\x20update\x20available','2irgbMm','\x1b[1m','utf8','node','@lovrabet/sdk','version','package.json','parse','30PnkdGC','devDependencies','minVersion','latest','readFileSync','log'];a324_0x235f=function(){return _0x4abbd3;};return a324_0x235f();}(function(_0x95581f,_0x2287d3){const _0x3e7494=a324_0x14a3,_0x26d18a=_0x95581f();while(!![]){try{const _0x318493=-parseInt(_0x3e7494(0xe5))/0x1*(parseInt(_0x3e7494(0x102))/0x2)+parseInt(_0x3e7494(0xed))/0x3*(parseInt(_0x3e7494(0x100))/0x4)+parseInt(_0x3e7494(0xfe))/0x5+-parseInt(_0x3e7494(0xf7))/0x6*(-parseInt(_0x3e7494(0xf8))/0x7)+-parseInt(_0x3e7494(0x101))/0x8*(-parseInt(_0x3e7494(0xfd))/0x9)+parseInt(_0x3e7494(0xfb))/0xa*(-parseInt(_0x3e7494(0xf4))/0xb)+-parseInt(_0x3e7494(0xfa))/0xc;if(_0x318493===_0x2287d3)break;else _0x26d18a['push'](_0x26d18a['shift']());}catch(_0x4062e4){_0x26d18a['push'](_0x26d18a['shift']());}}}(a324_0x235f,0x3ad0e));import a324_0xd10ef5 from'node:fs';import a324_0x99e699 from'node:path';import a324_0x349abd from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function a324_0x14a3(_0x55d510,_0x5bad04){_0x55d510=_0x55d510-0xe0;const _0x235fcd=a324_0x235f();let _0x14a390=_0x235fcd[_0x55d510];return _0x14a390;}function isNonNumericVersion(_0x331c6f){const _0x1c5620=a324_0x14a3,_0x46f9de=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x46f9de[_0x1c5620(0xff)](_0x29eaab=>_0x29eaab['test'](_0x331c6f));}function getInstalledVersion(_0x38d3c5,_0x49ba15){const _0xd7eef2=a324_0x14a3;try{const _0x47e77e=a324_0x99e699[_0xd7eef2(0xfc)](_0x38d3c5,_0xd7eef2(0xe2),_0x49ba15,_0xd7eef2(0xeb));if(a324_0xd10ef5[_0xd7eef2(0xf6)](_0x47e77e)){const _0x215221=JSON['parse'](a324_0xd10ef5[_0xd7eef2(0xf1)](_0x47e77e,'utf-8'));return _0x215221[_0xd7eef2(0xea)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4ed88f=a324_0x14a3;try{const _0x2e6cc9=await getCdnConfig();return _0x2e6cc9?.[_0x4ed88f(0xe1)]?.[_0x4ed88f(0xe8)]?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x17f864=a324_0x14a3;try{const _0x4279c0=await getCdnConfig();return _0x4279c0?.['sdk']?.[_0x17f864(0xe8)]?.[_0x17f864(0x106)]||_0x17f864(0xe9);}catch{return _0x17f864(0xe9);}}export async function checkSdkVersion(_0x11e3d0){const _0x4a1c57=a324_0x14a3,_0xa7ca04=a324_0x99e699['join'](_0x11e3d0,_0x4a1c57(0xeb)),[_0x16b58e,_0x4862d5]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0xbb750f=_0x16b58e||FALLBACK_MIN_SDK_VERSION;if(!a324_0xd10ef5[_0x4a1c57(0xf6)](_0xa7ca04))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xbb750f,'packageName':_0x4862d5,'stableVersion':_0x16b58e};try{const _0x162db1=JSON[_0x4a1c57(0xec)](a324_0xd10ef5[_0x4a1c57(0xf1)](_0xa7ca04,_0x4a1c57(0xe7))),_0x5f4aa9=_0x162db1[_0x4a1c57(0xf5)]||{},_0x418e6a=_0x162db1[_0x4a1c57(0xee)]||{},_0x419035=_0x5f4aa9[_0x4862d5]||_0x418e6a[_0x4862d5];if(!_0x419035)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xbb750f,'packageName':_0x4862d5,'stableVersion':_0x16b58e};let _0x1b8752=getInstalledVersion(_0x11e3d0,_0x4862d5);!_0x1b8752&&(_0x1b8752=_0x419035);if(isNonNumericVersion(_0x419035))return{'installed':!![],'version':_0x1b8752,'needsUpgrade':![],'minVersion':_0xbb750f,'packageName':_0x4862d5,'stableVersion':_0x16b58e};const _0x4db01e=a324_0x349abd[_0x4a1c57(0x105)](_0x1b8752),_0x2f6e64=a324_0x349abd[_0x4a1c57(0x105)](_0xbb750f),_0x658b8=_0x4db01e&&_0x2f6e64?a324_0x349abd['lt'](_0x4db01e,_0x2f6e64):![];return{'installed':!![],'version':_0x1b8752,'needsUpgrade':_0x658b8,'minVersion':_0xbb750f,'packageName':_0x4862d5,'stableVersion':_0x16b58e};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xbb750f,'packageName':_0x4862d5,'stableVersion':_0x16b58e};}}export function checkSdkVersionSync(_0x5b643f){const _0x1c4c02=a324_0x14a3,_0x293d33=a324_0x99e699[_0x1c4c02(0xfc)](_0x5b643f,_0x1c4c02(0xeb)),_0x508527=_0x1c4c02(0xe9);if(!a324_0xd10ef5[_0x1c4c02(0xf6)](_0x293d33))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x508527,'stableVersion':null};try{const _0x40bea8=JSON['parse'](a324_0xd10ef5[_0x1c4c02(0xf1)](_0x293d33,_0x1c4c02(0xe7))),_0x55f5c=_0x40bea8[_0x1c4c02(0xf5)]||{},_0xe1538a=_0x40bea8['devDependencies']||{},_0x2bc054=_0x55f5c[_0x508527]||_0xe1538a[_0x508527];if(!_0x2bc054)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x508527,'stableVersion':null};let _0x50e7b1=getInstalledVersion(_0x5b643f,_0x508527);!_0x50e7b1&&(_0x50e7b1=_0x2bc054);if(isNonNumericVersion(_0x2bc054))return{'installed':!![],'version':_0x50e7b1,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x508527,'stableVersion':null};const _0x144ff1=a324_0x349abd[_0x1c4c02(0x105)](_0x50e7b1),_0x22158c=_0x144ff1?a324_0x349abd['lt'](_0x144ff1,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x50e7b1,'needsUpgrade':_0x22158c,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x508527,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x508527,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x1a9b98){const _0x184a88=a324_0x14a3;if(!_0x1a9b98[_0x184a88(0xe3)])return;const _0x54973e=_0x184a88(0xf9),_0x2d7e3d=_0x184a88(0x103),_0x19396b=_0x184a88(0xe6),_0x6b8894=_0x1a9b98[_0x184a88(0x106)]||_0x184a88(0xe9),_0x309ada=_0x1a9b98[_0x184a88(0x104)]||_0x1a9b98[_0x184a88(0xef)],_0x5dbd67='npm\x20install\x20'+_0x6b8894+'@'+(_0x309ada||_0x184a88(0xf0));console[_0x184a88(0xf2)](),console[_0x184a88(0xf2)](''+_0x54973e+_0x19396b+_0x184a88(0xe4)+_0x2d7e3d),console['log'](_0x54973e+_0x184a88(0xf3)+_0x6b8894+'@'+_0x1a9b98[_0x184a88(0xea)]+_0x2d7e3d),console[_0x184a88(0xf2)](_0x54973e+_0x184a88(0xe0)+_0x309ada+_0x2d7e3d),console['log'](_0x54973e+'\x20\x20\x20Upgrade\x20command:\x20'+_0x5dbd67+_0x2d7e3d),console[_0x184a88(0xf2)]();}
1
+ const a336_0x152524=a336_0x145a;function a336_0x145a(_0x28ca44,_0x1e81c1){_0x28ca44=_0x28ca44-0x146;const _0x4e7519=a336_0x4e75();let _0x145ac8=_0x4e7519[_0x28ca44];return _0x145ac8;}(function(_0x5aa900,_0xa72b57){const _0x57165d=a336_0x145a,_0x3ee8e5=_0x5aa900();while(!![]){try{const _0x9db78=-parseInt(_0x57165d(0x158))/0x1*(parseInt(_0x57165d(0x15e))/0x2)+-parseInt(_0x57165d(0x16a))/0x3*(-parseInt(_0x57165d(0x147))/0x4)+parseInt(_0x57165d(0x169))/0x5+-parseInt(_0x57165d(0x160))/0x6*(parseInt(_0x57165d(0x156))/0x7)+parseInt(_0x57165d(0x154))/0x8*(parseInt(_0x57165d(0x14e))/0x9)+parseInt(_0x57165d(0x15b))/0xa+parseInt(_0x57165d(0x14c))/0xb;if(_0x9db78===_0xa72b57)break;else _0x3ee8e5['push'](_0x3ee8e5['shift']());}catch(_0x110a97){_0x3ee8e5['push'](_0x3ee8e5['shift']());}}}(a336_0x4e75,0xc2fa5));import a336_0x720b8c from'node:fs';import a336_0x2cfac9 from'node:path';import a336_0x453d42 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a336_0x152524(0x15a);function a336_0x4e75(){const _0x132446=['\x1b[0m','devDependencies','package.json','\x20\x20\x20Stable\x20version:\x20','node_modules','208xjGMQt','↪\x20SDK\x20update\x20available','691159XaVyhi','minVersion','2167GnznFn','utf-8','1.2.0','2567970SGGXAu','log','sdk','668EhQydi','stableVersion','96smdyma','readFileSync','needsUpgrade','dependencies','npm\x20install\x20','packageName','\x1b[33m','latest','existsSync','6866875TMmJHd','3LuCnKI','coerce','\x20\x20\x20Current\x20version:\x20','@lovrabet/sdk','2971564WgOLGQ','version','join','utf8','parse','3551174aNwsFs','node','140643zExqQs'];a336_0x4e75=function(){return _0x132446;};return a336_0x4e75();}function isNonNumericVersion(_0x1f58ac){const _0x31fd5d=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x31fd5d['some'](_0x19148f=>_0x19148f['test'](_0x1f58ac));}function getInstalledVersion(_0x185c5a,_0xa68644){const _0x4b907d=a336_0x152524;try{const _0x558184=a336_0x2cfac9[_0x4b907d(0x149)](_0x185c5a,_0x4b907d(0x153),_0xa68644,_0x4b907d(0x151));if(a336_0x720b8c[_0x4b907d(0x168)](_0x558184)){const _0x34684d=JSON[_0x4b907d(0x14b)](a336_0x720b8c[_0x4b907d(0x161)](_0x558184,_0x4b907d(0x159)));return _0x34684d[_0x4b907d(0x148)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x442cc9=a336_0x152524;try{const _0x3e15c2=await getCdnConfig();return _0x3e15c2?.[_0x442cc9(0x15d)]?.[_0x442cc9(0x14d)]?.[_0x442cc9(0x15f)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x427a18=a336_0x152524;try{const _0x3e8861=await getCdnConfig();return _0x3e8861?.[_0x427a18(0x15d)]?.[_0x427a18(0x14d)]?.[_0x427a18(0x165)]||_0x427a18(0x146);}catch{return _0x427a18(0x146);}}export async function checkSdkVersion(_0x28936e){const _0x57e291=a336_0x152524,_0x447fa6=a336_0x2cfac9[_0x57e291(0x149)](_0x28936e,_0x57e291(0x151)),[_0x4e2626,_0x4a68b3]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x3f2335=_0x4e2626||FALLBACK_MIN_SDK_VERSION;if(!a336_0x720b8c['existsSync'](_0x447fa6))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3f2335,'packageName':_0x4a68b3,'stableVersion':_0x4e2626};try{const _0x38973d=JSON[_0x57e291(0x14b)](a336_0x720b8c[_0x57e291(0x161)](_0x447fa6,'utf8')),_0x2c1d00=_0x38973d[_0x57e291(0x163)]||{},_0x2f75a8=_0x38973d[_0x57e291(0x150)]||{},_0x20ba97=_0x2c1d00[_0x4a68b3]||_0x2f75a8[_0x4a68b3];if(!_0x20ba97)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3f2335,'packageName':_0x4a68b3,'stableVersion':_0x4e2626};let _0x8ce546=getInstalledVersion(_0x28936e,_0x4a68b3);!_0x8ce546&&(_0x8ce546=_0x20ba97);if(isNonNumericVersion(_0x20ba97))return{'installed':!![],'version':_0x8ce546,'needsUpgrade':![],'minVersion':_0x3f2335,'packageName':_0x4a68b3,'stableVersion':_0x4e2626};const _0x2d1dcc=a336_0x453d42[_0x57e291(0x16b)](_0x8ce546),_0xb8f8a2=a336_0x453d42[_0x57e291(0x16b)](_0x3f2335),_0x5bbeae=_0x2d1dcc&&_0xb8f8a2?a336_0x453d42['lt'](_0x2d1dcc,_0xb8f8a2):![];return{'installed':!![],'version':_0x8ce546,'needsUpgrade':_0x5bbeae,'minVersion':_0x3f2335,'packageName':_0x4a68b3,'stableVersion':_0x4e2626};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3f2335,'packageName':_0x4a68b3,'stableVersion':_0x4e2626};}}export function checkSdkVersionSync(_0x2c239f){const _0x35a3f6=a336_0x152524,_0xda1264=a336_0x2cfac9[_0x35a3f6(0x149)](_0x2c239f,'package.json'),_0x2f32e1='@lovrabet/sdk';if(!a336_0x720b8c['existsSync'](_0xda1264))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2f32e1,'stableVersion':null};try{const _0x4997e2=JSON[_0x35a3f6(0x14b)](a336_0x720b8c[_0x35a3f6(0x161)](_0xda1264,_0x35a3f6(0x14a))),_0x2aa63=_0x4997e2[_0x35a3f6(0x163)]||{},_0x467fdf=_0x4997e2[_0x35a3f6(0x150)]||{},_0x2fdad9=_0x2aa63[_0x2f32e1]||_0x467fdf[_0x2f32e1];if(!_0x2fdad9)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2f32e1,'stableVersion':null};let _0x2c6e2b=getInstalledVersion(_0x2c239f,_0x2f32e1);!_0x2c6e2b&&(_0x2c6e2b=_0x2fdad9);if(isNonNumericVersion(_0x2fdad9))return{'installed':!![],'version':_0x2c6e2b,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2f32e1,'stableVersion':null};const _0x10d946=a336_0x453d42[_0x35a3f6(0x16b)](_0x2c6e2b),_0x2d44cb=_0x10d946?a336_0x453d42['lt'](_0x10d946,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2c6e2b,'needsUpgrade':_0x2d44cb,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2f32e1,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2f32e1,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x5e42c3){const _0x577773=a336_0x152524;if(!_0x5e42c3[_0x577773(0x162)])return;const _0x190901=_0x577773(0x166),_0xec53e0=_0x577773(0x14f),_0x4e1642='\x1b[1m',_0x346436=_0x5e42c3[_0x577773(0x165)]||'@lovrabet/sdk',_0x5a7efd=_0x5e42c3[_0x577773(0x15f)]||_0x5e42c3[_0x577773(0x157)],_0x48d249=_0x577773(0x164)+_0x346436+'@'+(_0x5a7efd||_0x577773(0x167));console['log'](),console[_0x577773(0x15c)](''+_0x190901+_0x4e1642+_0x577773(0x155)+_0xec53e0),console['log'](_0x190901+_0x577773(0x16c)+_0x346436+'@'+_0x5e42c3['version']+_0xec53e0),console[_0x577773(0x15c)](_0x190901+_0x577773(0x152)+_0x5a7efd+_0xec53e0),console[_0x577773(0x15c)](_0x190901+'\x20\x20\x20Upgrade\x20command:\x20'+_0x48d249+_0xec53e0),console[_0x577773(0x15c)]();}
@@ -1 +1 @@
1
- (function(_0x6fd45a,_0x4a3bea){const _0x886686=a325_0x2915,_0x44d0ab=_0x6fd45a();while(!![]){try{const _0xe344ef=parseInt(_0x886686(0xb3))/0x1*(parseInt(_0x886686(0x93))/0x2)+-parseInt(_0x886686(0xab))/0x3*(parseInt(_0x886686(0xa4))/0x4)+-parseInt(_0x886686(0xaa))/0x5*(parseInt(_0x886686(0xa1))/0x6)+parseInt(_0x886686(0x8b))/0x7*(-parseInt(_0x886686(0xa2))/0x8)+parseInt(_0x886686(0xaf))/0x9+-parseInt(_0x886686(0x9f))/0xa+parseInt(_0x886686(0x9c))/0xb;if(_0xe344ef===_0x4a3bea)break;else _0x44d0ab['push'](_0x44d0ab['shift']());}catch(_0x489b43){_0x44d0ab['push'](_0x44d0ab['shift']());}}}(a325_0x5544,0x561ad));import{readFileSync}from'node:fs';function a325_0x2915(_0x52e5fe,_0x3b2a39){_0x52e5fe=_0x52e5fe-0x8b;const _0x55447d=a325_0x5544();let _0x2915c5=_0x55447d[_0x52e5fe];return _0x2915c5;}function a325_0x5544(){const _0x540bb5=['16193672vNNoHR','\x20\x20\x20','join','3023900wPLXBq','stableVersion','6idiUgv','8KchRDr','npm\x20install\x20-g\x20','4zLKcFQ','\x20\x20\x20Upgrade\x20command:\x20','utf-8','Upgrade\x20command:\x20','1.0.0','Minimum\x20supported:\x20','757035qGQSmN','1908366cTmcBv','\x20\x20\x20Minimum\x20supported:\x20','parse','↪\x20New\x20version\x20available','3649185lwCsYC','coerce','\x1b[1m','Current\x20version:\x20','125003wwBtHh','minimumVersionMessage','4795133VzivKk','validation','\x1b[33m','↪\x20Critical\x20CLI\x20upgrade\x20required','upgradeMessage','belowMinimum','log','minimumVersion','4mHwUEb','\x20\x20\x20Current\x20CLI\x20version:\x20','\x1b[31m','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','filter','\x20\x20\x20Recommended\x20stable:\x20','../..','needsUpgrade','version'];a325_0x5544=function(){return _0x540bb5;};return a325_0x5544();}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a325_0x42b5cf from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x5418ea){const _0x59cb9e=a325_0x2915,_0xb5335c=_0x5418ea['stableVersion']||'latest';return _0x59cb9e(0xa3)+NPM_PACKAGE_NAME+'@'+_0xb5335c;}function getCurrentCliVersion(){const _0x473c94=a325_0x2915;try{const _0x22064e=fileURLToPath(import.meta.url),_0x46f3d4=resolve(dirname(_0x22064e),_0x473c94(0x99)),_0x2dea7e=resolve(_0x46f3d4,'package.json'),_0x3e1fbf=JSON[_0x473c94(0xad)](readFileSync(_0x2dea7e,_0x473c94(0xa6)));return _0x3e1fbf[_0x473c94(0x9b)]||_0x473c94(0xa8);}catch{return _0x473c94(0xa8);}}export async function checkCliVersion(){const _0x1499cc=a325_0x2915,_0x41d133=getCurrentCliVersion(),_0x53af17=await getCliVersionPolicy(),_0x165997=_0x53af17?.[_0x1499cc(0xa0)]||null,_0x40a542=_0x53af17?.[_0x1499cc(0x92)]||null;let _0x4c78e3=![],_0x153544=![];const _0x5e2b97=a325_0x42b5cf[_0x1499cc(0xb0)](_0x41d133);if(_0x5e2b97&&_0x165997)try{const _0x3351ce=a325_0x42b5cf[_0x1499cc(0xb0)](_0x165997);if(_0x3351ce)_0x4c78e3=a325_0x42b5cf['lt'](_0x5e2b97,_0x3351ce);}catch{}if(_0x5e2b97&&_0x40a542)try{const _0x19745f=a325_0x42b5cf[_0x1499cc(0xb0)](_0x40a542);if(_0x19745f)_0x153544=a325_0x42b5cf['lt'](_0x5e2b97,_0x19745f);}catch{}return _0x153544&&(_0x4c78e3=!![]),{'currentVersion':_0x41d133,'stableVersion':_0x165997,'minimumVersion':_0x40a542,'needsUpgrade':_0x4c78e3,'belowMinimum':_0x153544,'isPreRelease':![],'upgradeMessage':_0x53af17?.[_0x1499cc(0x8f)],'minimumVersionMessage':_0x53af17?.[_0x1499cc(0xb4)]};}export function printCliUpgradeWarning(_0x3ffc0d){const _0x4379b6=a325_0x2915;if(!_0x3ffc0d[_0x4379b6(0x9a)]&&!_0x3ffc0d[_0x4379b6(0x90)])return;const _0x467eed=_0x4379b6(0x95),_0x3d6c2f=_0x4379b6(0x8d),_0x200a78='\x1b[0m',_0x103d37=_0x4379b6(0xb1),_0x4a91ac=getCliUpgradeCommand(_0x3ffc0d);console[_0x4379b6(0x91)](),_0x3ffc0d['belowMinimum']?(console[_0x4379b6(0x91)](''+_0x467eed+_0x103d37+_0x4379b6(0x8e)+_0x200a78),console[_0x4379b6(0x91)](_0x467eed+_0x4379b6(0x94)+_0x3ffc0d['currentVersion']+_0x200a78),_0x3ffc0d['minimumVersion']&&console[_0x4379b6(0x91)](_0x467eed+_0x4379b6(0xac)+_0x3ffc0d['minimumVersion']+_0x200a78),_0x3ffc0d['stableVersion']&&_0x3ffc0d[_0x4379b6(0xa0)]!==_0x3ffc0d['minimumVersion']&&console[_0x4379b6(0x91)](_0x467eed+_0x4379b6(0x98)+_0x3ffc0d[_0x4379b6(0xa0)]+_0x200a78),_0x3ffc0d[_0x4379b6(0xb4)]&&console['log'](_0x467eed+_0x4379b6(0x9d)+_0x3ffc0d[_0x4379b6(0xb4)]+_0x200a78),console[_0x4379b6(0x91)](_0x467eed+_0x4379b6(0xa5)+_0x4a91ac+_0x200a78)):(console[_0x4379b6(0x91)](''+_0x3d6c2f+_0x103d37+_0x4379b6(0xae)+_0x200a78),console['log'](_0x3d6c2f+_0x4379b6(0x94)+_0x3ffc0d['currentVersion']+_0x200a78),console[_0x4379b6(0x91)](_0x3d6c2f+'\x20\x20\x20Stable\x20version:\x20'+_0x3ffc0d[_0x4379b6(0xa0)]+_0x200a78),_0x3ffc0d[_0x4379b6(0x8f)]&&console[_0x4379b6(0x91)](_0x3d6c2f+'\x20\x20\x20'+_0x3ffc0d['upgradeMessage']+_0x200a78),console[_0x4379b6(0x91)](_0x3d6c2f+_0x4379b6(0xa5)+_0x4a91ac+_0x200a78)),console[_0x4379b6(0x91)]();}export function assertCliVersionSupported(_0x32595a){const _0x5e28fe=a325_0x2915;if(!_0x32595a[_0x5e28fe(0x90)])return;const _0x445192=[_0x32595a[_0x5e28fe(0xb4)],_0x5e28fe(0xb2)+_0x32595a['currentVersion'],_0x32595a[_0x5e28fe(0x92)]?_0x5e28fe(0xa9)+_0x32595a[_0x5e28fe(0x92)]:null,_0x5e28fe(0xa7)+getCliUpgradeCommand(_0x32595a)][_0x5e28fe(0x97)](Boolean)[_0x5e28fe(0x9e)]('\x0a');throw CliErrors[_0x5e28fe(0x8c)](_0x5e28fe(0x96),_0x445192);}
1
+ (function(_0xb3df4b,_0x4403f2){const _0x33499c=a337_0x2cc7,_0x4920c3=_0xb3df4b();while(!![]){try{const _0x3cb617=parseInt(_0x33499c(0x94))/0x1+parseInt(_0x33499c(0xa3))/0x2*(-parseInt(_0x33499c(0xa8))/0x3)+-parseInt(_0x33499c(0x96))/0x4*(-parseInt(_0x33499c(0x8f))/0x5)+-parseInt(_0x33499c(0x9b))/0x6*(-parseInt(_0x33499c(0x97))/0x7)+parseInt(_0x33499c(0x8b))/0x8+parseInt(_0x33499c(0x91))/0x9+parseInt(_0x33499c(0x93))/0xa*(-parseInt(_0x33499c(0x95))/0xb);if(_0x3cb617===_0x4403f2)break;else _0x4920c3['push'](_0x4920c3['shift']());}catch(_0x1ff458){_0x4920c3['push'](_0x4920c3['shift']());}}}(a337_0x494b,0x98a70));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a337_0x1d6470 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x584cf2){const _0xc6a021=a337_0x2cc7,_0x3a6394=_0x584cf2['stableVersion']||_0xc6a021(0x8c);return _0xc6a021(0x9c)+NPM_PACKAGE_NAME+'@'+_0x3a6394;}function a337_0x2cc7(_0x1dd184,_0x3488b2){_0x1dd184=_0x1dd184-0x86;const _0x494b25=a337_0x494b();let _0x2cc717=_0x494b25[_0x1dd184];return _0x2cc717;}function getCurrentCliVersion(){const _0x4d4d74=a337_0x2cc7;try{const _0x33ece8=fileURLToPath(import.meta.url),_0x22d78c=resolve(dirname(_0x33ece8),_0x4d4d74(0xa6)),_0x62fe9b=resolve(_0x22d78c,_0x4d4d74(0x98)),_0x1e4bea=JSON['parse'](readFileSync(_0x62fe9b,'utf-8'));return _0x1e4bea[_0x4d4d74(0x8d)]||'1.0.0';}catch{return _0x4d4d74(0x89);}}export async function checkCliVersion(){const _0x1e39f5=a337_0x2cc7,_0x4cd31e=getCurrentCliVersion(),_0x4d8562=await getCliVersionPolicy(),_0x20f7a9=_0x4d8562?.['stableVersion']||null,_0x129025=_0x4d8562?.[_0x1e39f5(0x87)]||null;let _0x31cb83=![],_0x494810=![];const _0x11a8e1=a337_0x1d6470[_0x1e39f5(0x8e)](_0x4cd31e);if(_0x11a8e1&&_0x20f7a9)try{const _0x3d733d=a337_0x1d6470[_0x1e39f5(0x8e)](_0x20f7a9);if(_0x3d733d)_0x31cb83=a337_0x1d6470['lt'](_0x11a8e1,_0x3d733d);}catch{}if(_0x11a8e1&&_0x129025)try{const _0x555ef4=a337_0x1d6470[_0x1e39f5(0x8e)](_0x129025);if(_0x555ef4)_0x494810=a337_0x1d6470['lt'](_0x11a8e1,_0x555ef4);}catch{}return _0x494810&&(_0x31cb83=!![]),{'currentVersion':_0x4cd31e,'stableVersion':_0x20f7a9,'minimumVersion':_0x129025,'needsUpgrade':_0x31cb83,'belowMinimum':_0x494810,'isPreRelease':![],'upgradeMessage':_0x4d8562?.['upgradeMessage'],'minimumVersionMessage':_0x4d8562?.[_0x1e39f5(0x8a)]};}export function printCliUpgradeWarning(_0x56624a){const _0x32adb6=a337_0x2cc7;if(!_0x56624a['needsUpgrade']&&!_0x56624a[_0x32adb6(0x86)])return;const _0x2b25b7='\x1b[31m',_0x238ed0=_0x32adb6(0xa2),_0x4cda9d=_0x32adb6(0xac),_0x59aa13='\x1b[1m',_0x4b6567=getCliUpgradeCommand(_0x56624a);console[_0x32adb6(0xa5)](),_0x56624a['belowMinimum']?(console[_0x32adb6(0xa5)](''+_0x2b25b7+_0x59aa13+_0x32adb6(0xa0)+_0x4cda9d),console[_0x32adb6(0xa5)](_0x2b25b7+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x56624a[_0x32adb6(0x9d)]+_0x4cda9d),_0x56624a[_0x32adb6(0x87)]&&console['log'](_0x2b25b7+'\x20\x20\x20Minimum\x20supported:\x20'+_0x56624a['minimumVersion']+_0x4cda9d),_0x56624a['stableVersion']&&_0x56624a['stableVersion']!==_0x56624a['minimumVersion']&&console[_0x32adb6(0xa5)](_0x2b25b7+_0x32adb6(0x88)+_0x56624a['stableVersion']+_0x4cda9d),_0x56624a[_0x32adb6(0x8a)]&&console[_0x32adb6(0xa5)](_0x2b25b7+_0x32adb6(0x99)+_0x56624a[_0x32adb6(0x8a)]+_0x4cda9d),console[_0x32adb6(0xa5)](_0x2b25b7+_0x32adb6(0x9a)+_0x4b6567+_0x4cda9d)):(console[_0x32adb6(0xa5)](''+_0x238ed0+_0x59aa13+_0x32adb6(0xa7)+_0x4cda9d),console[_0x32adb6(0xa5)](_0x238ed0+_0x32adb6(0xa4)+_0x56624a[_0x32adb6(0x9d)]+_0x4cda9d),console[_0x32adb6(0xa5)](_0x238ed0+_0x32adb6(0xab)+_0x56624a[_0x32adb6(0xa1)]+_0x4cda9d),_0x56624a[_0x32adb6(0x9f)]&&console[_0x32adb6(0xa5)](_0x238ed0+_0x32adb6(0x99)+_0x56624a[_0x32adb6(0x9f)]+_0x4cda9d),console[_0x32adb6(0xa5)](_0x238ed0+_0x32adb6(0x9a)+_0x4b6567+_0x4cda9d)),console[_0x32adb6(0xa5)]();}function a337_0x494b(){const _0x4f7220=['filter','Upgrade\x20command:\x20','\x20\x20\x20Stable\x20version:\x20','\x1b[0m','belowMinimum','minimumVersion','\x20\x20\x20Recommended\x20stable:\x20','1.0.0','minimumVersionMessage','8728752CHovtL','latest','version','coerce','35dXUAAi','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','9876465dqWHag','validation','610OsqKJq','959933rbgcou','622127CToOHw','435124rJqRbE','7ptunpO','package.json','\x20\x20\x20','\x20\x20\x20Upgrade\x20command:\x20','5589714YxzrVl','npm\x20install\x20-g\x20','currentVersion','join','upgradeMessage','↪\x20Critical\x20CLI\x20upgrade\x20required','stableVersion','\x1b[33m','6NdFYMo','\x20\x20\x20Current\x20CLI\x20version:\x20','log','../..','↪\x20New\x20version\x20available','766257XinHrJ'];a337_0x494b=function(){return _0x4f7220;};return a337_0x494b();}export function assertCliVersionSupported(_0x16440c){const _0x27bfd5=a337_0x2cc7;if(!_0x16440c['belowMinimum'])return;const _0x487c65=[_0x16440c['minimumVersionMessage'],'Current\x20version:\x20'+_0x16440c[_0x27bfd5(0x9d)],_0x16440c[_0x27bfd5(0x87)]?'Minimum\x20supported:\x20'+_0x16440c[_0x27bfd5(0x87)]:null,_0x27bfd5(0xaa)+getCliUpgradeCommand(_0x16440c)][_0x27bfd5(0xa9)](Boolean)[_0x27bfd5(0x9e)]('\x0a');throw CliErrors[_0x27bfd5(0x92)](_0x27bfd5(0x90),_0x487c65);}
@@ -11,10 +11,22 @@ export interface ProjectTemplateCdnDescriptor {
11
11
  size: number;
12
12
  }
13
13
  export interface RabetbaseCdnConfig {
14
+ schemaVersion?: number;
14
15
  cli?: Record<string, unknown>;
15
16
  projectTemplate?: ProjectTemplateCdnDescriptor;
17
+ beta?: {
18
+ projectTemplate?: ProjectTemplateCdnDescriptor;
19
+ [key: string]: unknown;
20
+ };
16
21
  [key: string]: unknown;
17
22
  }
23
+ export declare function isBetaCliVersion(version: string): boolean;
24
+ /**
25
+ * Resolve the project template channel without changing the legacy contract:
26
+ * stable releases keep reading the top-level descriptor, while beta releases
27
+ * may override it under `beta.projectTemplate`.
28
+ */
29
+ export declare function resolveProjectTemplateDescriptor(config: RabetbaseCdnConfig, cliVersion: string): ProjectTemplateCdnDescriptor | undefined;
18
30
  export declare function fetchRabetbaseCdnConfig(): Promise<RabetbaseCdnConfig | null>;
19
31
  export declare function fetchCliVersionPolicy(): Promise<CliVersionPolicy | null>;
20
32
  export declare function getRabetbaseCdnConfig(): Promise<RabetbaseCdnConfig | null>;
@@ -1 +1 @@
1
- (function(_0x248bc,_0x23b3d4){const _0x32ca47=a326_0x104e,_0x4fe00d=_0x248bc();while(!![]){try{const _0x2ab65e=-parseInt(_0x32ca47(0x129))/0x1+parseInt(_0x32ca47(0x11b))/0x2+-parseInt(_0x32ca47(0x120))/0x3+-parseInt(_0x32ca47(0x11a))/0x4+parseInt(_0x32ca47(0x11e))/0x5*(parseInt(_0x32ca47(0x124))/0x6)+parseInt(_0x32ca47(0x125))/0x7+-parseInt(_0x32ca47(0x11d))/0x8*(parseInt(_0x32ca47(0x128))/0x9);if(_0x2ab65e===_0x23b3d4)break;else _0x4fe00d['push'](_0x4fe00d['shift']());}catch(_0x1e4660){_0x4fe00d['push'](_0x4fe00d['shift']());}}}(a326_0x42fd,0x2f07b));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(_0x41aecb){const _0x226f70=a326_0x104e;return typeof _0x41aecb===_0x226f70(0x11c)&&_0x41aecb[_0x226f70(0x12e)]()[_0x226f70(0x126)]>0x0?_0x41aecb[_0x226f70(0x12e)]():null;}function normalizeCliVersionPolicy(_0x352cf4){const _0x450361=a326_0x104e;if(!_0x352cf4||typeof _0x352cf4!==_0x450361(0x12d))return null;const _0x16bbdc=_0x352cf4,_0x3e8740=_0x16bbdc['cli']&&typeof _0x16bbdc['cli']==='object'?_0x16bbdc[_0x450361(0x12a)]:_0x16bbdc,_0x497f30=pickString(_0x3e8740[_0x450361(0x127)])||pickString(_0x3e8740[_0x450361(0x11f)])||pickString(_0x3e8740[_0x450361(0x12f)]),_0x2d1517=pickString(_0x3e8740['minimumVersion'])||pickString(_0x3e8740[_0x450361(0x121)]);if(!_0x497f30&&!_0x2d1517)return null;return{'stableVersion':_0x497f30,'minimumVersion':_0x2d1517,'upgradeMessage':pickString(_0x3e8740[_0x450361(0x12b)])||undefined,'minimumVersionMessage':pickString(_0x3e8740['minimumVersionMessage'])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x5ef702=a326_0x104e,_0x57f924=new AbortController(),_0x34cec3=setTimeout(()=>_0x57f924[_0x5ef702(0x123)](),FETCH_TIMEOUT_MS);try{const _0x6f70ca=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x5ef702(0x122)},'signal':_0x57f924[_0x5ef702(0x12c)]});if(!_0x6f70ca['ok'])return null;const _0x42172a=await _0x6f70ca['json']();return _0x42172a&&typeof _0x42172a===_0x5ef702(0x12d)?_0x42172a:null;}catch{return null;}finally{clearTimeout(_0x34cec3);}}function a326_0x104e(_0x427ba1,_0x2a035d){_0x427ba1=_0x427ba1-0x119;const _0x42fd10=a326_0x42fd();let _0x104e5b=_0x42fd10[_0x427ba1];return _0x104e5b;}function a326_0x42fd(){const _0x4660f3=['length','stableVersion','18MpffNb','111998eeYPLT','cli','upgradeMessage','signal','object','trim','recommendedVersion','now','170416VAXsRR','753234fTaWns','string','278232ywVdNW','925mMYcVU','latestVersion','1048866nQmRSb','minVersion','application/json','abort','6756dWlDkw','1270430tiUxAa'];a326_0x42fd=function(){return _0x4660f3;};return a326_0x42fd();}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x3cabd0=a326_0x104e,_0x4c2416=Date[_0x3cabd0(0x119)]();if(hasCachedConfig){const _0xe76c6b=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4c2416-cacheTime<_0xe76c6b)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x4c2416,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x10f0cb,_0x41e307){const _0x7493f=a338_0x4e3e,_0x165fad=_0x10f0cb();while(!![]){try{const _0x562494=parseInt(_0x7493f(0x1a7))/0x1*(-parseInt(_0x7493f(0x1a9))/0x2)+parseInt(_0x7493f(0x1ae))/0x3+parseInt(_0x7493f(0x1b5))/0x4*(parseInt(_0x7493f(0x1a8))/0x5)+parseInt(_0x7493f(0x1b1))/0x6*(parseInt(_0x7493f(0x1bb))/0x7)+parseInt(_0x7493f(0x1bd))/0x8+-parseInt(_0x7493f(0x1b4))/0x9*(parseInt(_0x7493f(0x1b6))/0xa)+-parseInt(_0x7493f(0x1b3))/0xb;if(_0x562494===_0x41e307)break;else _0x165fad['push'](_0x165fad['shift']());}catch(_0x2626ae){_0x165fad['push'](_0x165fad['shift']());}}}(a338_0x2baa,0x32161));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';import a338_0x5027f6 from'semver';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;export function isBetaCliVersion(_0x580689){const _0x40cfb9=a338_0x4e3e,_0x195495=a338_0x5027f6[_0x40cfb9(0x1bc)](_0x580689);return _0x195495?a338_0x5027f6[_0x40cfb9(0x1b8)](_0x195495)?.[0x0]==='beta':![];}export function resolveProjectTemplateDescriptor(_0x5f04f7,_0x221624){const _0x18e59a=a338_0x4e3e;if(isBetaCliVersion(_0x221624))return _0x5f04f7[_0x18e59a(0x1a6)]?.['projectTemplate']??_0x5f04f7[_0x18e59a(0x1a5)];return _0x5f04f7[_0x18e59a(0x1a5)];}function pickString(_0x305bc1){const _0x2c8d22=a338_0x4e3e;return typeof _0x305bc1===_0x2c8d22(0x1ad)&&_0x305bc1[_0x2c8d22(0x1b2)]()[_0x2c8d22(0x1a3)]>0x0?_0x305bc1[_0x2c8d22(0x1b2)]():null;}function normalizeCliVersionPolicy(_0x4d6d65){const _0x5ce57c=a338_0x4e3e;if(!_0x4d6d65||typeof _0x4d6d65!=='object')return null;const _0x90969b=_0x4d6d65,_0x30f729=_0x90969b['cli']&&typeof _0x90969b[_0x5ce57c(0x1b7)]===_0x5ce57c(0x1aa)?_0x90969b[_0x5ce57c(0x1b7)]:_0x90969b,_0x3f1680=pickString(_0x30f729['stableVersion'])||pickString(_0x30f729['latestVersion'])||pickString(_0x30f729['recommendedVersion']),_0x49eae2=pickString(_0x30f729[_0x5ce57c(0x1b0)])||pickString(_0x30f729[_0x5ce57c(0x1ac)]);if(!_0x3f1680&&!_0x49eae2)return null;return{'stableVersion':_0x3f1680,'minimumVersion':_0x49eae2,'upgradeMessage':pickString(_0x30f729[_0x5ce57c(0x1b9)])||undefined,'minimumVersionMessage':pickString(_0x30f729[_0x5ce57c(0x1af)])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x4d29a1=a338_0x4e3e,_0xcb6b86=new AbortController(),_0x48125a=setTimeout(()=>_0xcb6b86[_0x4d29a1(0x1ba)](),FETCH_TIMEOUT_MS);try{const _0x1d6d06=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x4d29a1(0x1a2)},'signal':_0xcb6b86[_0x4d29a1(0x1a4)]});if(!_0x1d6d06['ok'])return null;const _0x2068d7=await _0x1d6d06[_0x4d29a1(0x1ab)]();return _0x2068d7&&typeof _0x2068d7===_0x4d29a1(0x1aa)?_0x2068d7:null;}catch{return null;}finally{clearTimeout(_0x48125a);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];function a338_0x4e3e(_0x469238,_0x56149a){_0x469238=_0x469238-0x1a2;const _0x2baaeb=a338_0x2baa();let _0x4e3e0b=_0x2baaeb[_0x469238];return _0x4e3e0b;}function a338_0x2baa(){const _0x5ab609=['3142840fDmXwp','cli','prerelease','upgradeMessage','abort','6076jBsLVA','valid','2213920jEpbKU','application/json','length','signal','projectTemplate','beta','14020ywAsld','76185OVGeLr','26rfLKAM','object','json','minVersion','string','839313pFOjGf','minimumVersionMessage','minimumVersion','2172VzSyYE','trim','5043863eyotJY','9IwRiIi','76ggSWNv'];a338_0x2baa=function(){return _0x5ab609;};return a338_0x2baa();}export async function getRabetbaseCdnConfig(){const _0x2ca347=Date['now']();if(hasCachedConfig){const _0x15c981=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2ca347-cacheTime<_0x15c981)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x2ca347,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a327_0x2dc36f=a327_0xb5b2;(function(_0x213323,_0xc5d841){const _0x194d51=a327_0xb5b2,_0x32c1ca=_0x213323();while(!![]){try{const _0x24f5ad=-parseInt(_0x194d51(0x92))/0x1+parseInt(_0x194d51(0x90))/0x2*(-parseInt(_0x194d51(0x8a))/0x3)+-parseInt(_0x194d51(0x8e))/0x4+-parseInt(_0x194d51(0x8b))/0x5+-parseInt(_0x194d51(0x95))/0x6+-parseInt(_0x194d51(0x91))/0x7*(parseInt(_0x194d51(0x8c))/0x8)+parseInt(_0x194d51(0x94))/0x9;if(_0x24f5ad===_0xc5d841)break;else _0x32c1ca['push'](_0x32c1ca['shift']());}catch(_0x20ae75){_0x32c1ca['push'](_0x32c1ca['shift']());}}}(a327_0x4a5f,0xa3556));import{initEnv}from'../constant/env.js';function a327_0x4a5f(){const _0x170c3a=['3971656xLgSSS','string','218PHAFCm','1306844BHLtes','99437fGwVsU','env','46303344ttrnmF','1487694zdiRnJ','28668YajdrP','3935270DuqjYu','56ElADcE','project'];a327_0x4a5f=function(){return _0x170c3a;};return a327_0x4a5f();}import{readRawConfig,getConfigAppCode as a327_0xe6217f,getMultiAppConfigs as a327_0x523c7b,getTemplateBaseUrl as a327_0xc0dcb2}from'../context.js';function a327_0xb5b2(_0x400c51,_0x1d9265){_0x400c51=_0x400c51-0x8a;const _0x4a5f59=a327_0x4a5f();let _0xb5b255=_0x4a5f59[_0x400c51];return _0xb5b255;}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x7b462e){const _0xc3fb5=a327_0xb5b2,_0x735214=readRawConfig(_0x7b462e);return _0x735214[_0xc3fb5(0x93)]&&typeof _0x735214[_0xc3fb5(0x93)]===_0xc3fb5(0x8f)&&initEnv(_0x735214[_0xc3fb5(0x93)]),_0x735214;}export function getConfigAppCode(){return a327_0xe6217f();}export function getMultiAppConfigs(_0x5aa0c0=a327_0x2dc36f(0x8d)){return a327_0x523c7b(_0x5aa0c0);}export function getTemplateBaseUrl(){return a327_0xc0dcb2();}
1
+ const a339_0x1a332a=a339_0x286b;(function(_0x400efd,_0x3fcf5e){const _0x559d57=a339_0x286b,_0x5a6fde=_0x400efd();while(!![]){try{const _0x43e6c7=parseInt(_0x559d57(0x1d8))/0x1*(parseInt(_0x559d57(0x1d3))/0x2)+-parseInt(_0x559d57(0x1d7))/0x3*(-parseInt(_0x559d57(0x1ce))/0x4)+parseInt(_0x559d57(0x1d5))/0x5*(parseInt(_0x559d57(0x1d4))/0x6)+-parseInt(_0x559d57(0x1cd))/0x7+-parseInt(_0x559d57(0x1db))/0x8+parseInt(_0x559d57(0x1d0))/0x9*(-parseInt(_0x559d57(0x1d6))/0xa)+-parseInt(_0x559d57(0x1da))/0xb*(-parseInt(_0x559d57(0x1cf))/0xc);if(_0x43e6c7===_0x3fcf5e)break;else _0x5a6fde['push'](_0x5a6fde['shift']());}catch(_0xf358c5){_0x5a6fde['push'](_0x5a6fde['shift']());}}}(a339_0xb1b1,0xe5961));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a339_0x50c915,getMultiAppConfigs as a339_0x549cdb,getTemplateBaseUrl as a339_0xbb1234}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a339_0x286b(_0x7b0f8a,_0x31e260){_0x7b0f8a=_0x7b0f8a-0x1cd;const _0xb1b14a=a339_0xb1b1();let _0x286b68=_0xb1b14a[_0x7b0f8a];return _0x286b68;}export{isInProject}from'../context.js';export function readConfig(_0x44849b){const _0x491232=a339_0x286b,_0xb15184=readRawConfig(_0x44849b);return _0xb15184[_0x491232(0x1d1)]&&typeof _0xb15184[_0x491232(0x1d1)]===_0x491232(0x1d9)&&initEnv(_0xb15184[_0x491232(0x1d1)]),_0xb15184;}export function getConfigAppCode(){return a339_0x50c915();}export function getMultiAppConfigs(_0xe29288=a339_0x1a332a(0x1d2)){return a339_0x549cdb(_0xe29288);}function a339_0xb1b1(){const _0xdee32d=['440712AfpkUQ','8575317TuBZLM','env','project','2OdOuEM','24wFkrxT','1229270EHjgTG','10vyTslI','590931SIEoml','906553ksbInf','string','143eTtTMH','6032296Psqgqd','7693077puqhet','28DGToZW'];a339_0xb1b1=function(){return _0xdee32d;};return a339_0xb1b1();}export function getTemplateBaseUrl(){return a339_0xbb1234();}
@@ -1 +1 @@
1
- (function(_0x1cb098,_0x26da96){const _0x49aded=a328_0x5373,_0x167ab0=_0x1cb098();while(!![]){try{const _0x419a6c=parseInt(_0x49aded(0x129))/0x1+parseInt(_0x49aded(0x132))/0x2*(-parseInt(_0x49aded(0x130))/0x3)+parseInt(_0x49aded(0x12c))/0x4+-parseInt(_0x49aded(0x12e))/0x5*(-parseInt(_0x49aded(0x12f))/0x6)+-parseInt(_0x49aded(0x131))/0x7*(parseInt(_0x49aded(0x12a))/0x8)+parseInt(_0x49aded(0x134))/0x9+-parseInt(_0x49aded(0x12b))/0xa*(parseInt(_0x49aded(0x137))/0xb);if(_0x419a6c===_0x26da96)break;else _0x167ab0['push'](_0x167ab0['shift']());}catch(_0xe5ecdf){_0x167ab0['push'](_0x167ab0['shift']());}}}(a328_0x2922,0xa20f3));function toFiniteNumber(_0x1dfc10){const _0x5a450=a328_0x5373;if(typeof _0x1dfc10===_0x5a450(0x135)&&Number[_0x5a450(0x136)](_0x1dfc10))return _0x1dfc10;if(typeof _0x1dfc10===_0x5a450(0x12d)){const _0x2229cc=_0x1dfc10[_0x5a450(0x128)]();if(!_0x2229cc)return undefined;const _0x2c6d47=Number(_0x2229cc);if(Number[_0x5a450(0x136)](_0x2c6d47))return _0x2c6d47;}return undefined;}function a328_0x5373(_0x5109e1,_0x116e3f){_0x5109e1=_0x5109e1-0x128;const _0x292294=a328_0x2922();let _0x537319=_0x292294[_0x5109e1];return _0x537319;}function a328_0x2922(){const _0xd57dd0=['isFinite','124883UXQdYn','trim','529035HLaIus','6704736UJvPSW','1610VgpTQg','5215688kVhvio','string','5Lqxmah','5088024wDEqKi','1194SIKbvh','7gvCYEm','2182rLxSNq','object','9746793yHQmlk','number'];a328_0x2922=function(){return _0xd57dd0;};return a328_0x2922();}export function normalizeEntityWithIdResponse(_0x4c9522){const _0x2ecddf=a328_0x5373,_0x2c7aeb=toFiniteNumber(_0x4c9522);if(_0x2c7aeb!==undefined)return{'id':_0x2c7aeb,'entity':{'id':_0x2c7aeb}};if(!_0x4c9522||typeof _0x4c9522!==_0x2ecddf(0x133))return{'id':undefined,'entity':{}};const _0x398a93={..._0x4c9522},_0x1a21d8=toFiniteNumber(_0x398a93['id']);return _0x1a21d8!==undefined&&(_0x398a93['id']=_0x1a21d8),{'id':_0x1a21d8,'entity':_0x398a93};}
1
+ (function(_0x308ea7,_0x188662){const _0x4c3716=a340_0x3872,_0x3bd3df=_0x308ea7();while(!![]){try{const _0x3613f1=-parseInt(_0x4c3716(0x128))/0x1+parseInt(_0x4c3716(0x12a))/0x2*(parseInt(_0x4c3716(0x131))/0x3)+-parseInt(_0x4c3716(0x134))/0x4+parseInt(_0x4c3716(0x130))/0x5+parseInt(_0x4c3716(0x133))/0x6*(-parseInt(_0x4c3716(0x12c))/0x7)+parseInt(_0x4c3716(0x12e))/0x8*(-parseInt(_0x4c3716(0x132))/0x9)+-parseInt(_0x4c3716(0x135))/0xa*(-parseInt(_0x4c3716(0x12f))/0xb);if(_0x3613f1===_0x188662)break;else _0x3bd3df['push'](_0x3bd3df['shift']());}catch(_0xba22e1){_0x3bd3df['push'](_0x3bd3df['shift']());}}}(a340_0x244c,0x68c00));function toFiniteNumber(_0x48565e){const _0x3303bb=a340_0x3872;if(typeof _0x48565e===_0x3303bb(0x12d)&&Number[_0x3303bb(0x129)](_0x48565e))return _0x48565e;if(typeof _0x48565e==='string'){const _0x72bfd4=_0x48565e[_0x3303bb(0x127)]();if(!_0x72bfd4)return undefined;const _0x1aa4cc=Number(_0x72bfd4);if(Number[_0x3303bb(0x129)](_0x1aa4cc))return _0x1aa4cc;}return undefined;}function a340_0x3872(_0x8fe285,_0x5a8800){_0x8fe285=_0x8fe285-0x127;const _0x244c9d=a340_0x244c();let _0x387219=_0x244c9d[_0x8fe285];return _0x387219;}function a340_0x244c(){const _0x551ef3=['33lHQljd','3782095DTkVde','6eETsdw','195309jxKEPw','252ncqSTO','813792BFUHdV','2091510MEEFHI','trim','94400XxxBwi','isFinite','320154XOoMIH','object','90517OxYUIy','number','160KvIPnM'];a340_0x244c=function(){return _0x551ef3;};return a340_0x244c();}export function normalizeEntityWithIdResponse(_0x30ae12){const _0x25031e=a340_0x3872,_0x4d2c69=toFiniteNumber(_0x30ae12);if(_0x4d2c69!==undefined)return{'id':_0x4d2c69,'entity':{'id':_0x4d2c69}};if(!_0x30ae12||typeof _0x30ae12!==_0x25031e(0x12b))return{'id':undefined,'entity':{}};const _0x53ddaa={..._0x30ae12},_0x51ed71=toFiniteNumber(_0x53ddaa['id']);return _0x51ed71!==undefined&&(_0x53ddaa['id']=_0x51ed71),{'id':_0x51ed71,'entity':_0x53ddaa};}
@@ -1 +1 @@
1
- (function(_0x53665e,_0x5e8eec){const _0x445736=a329_0x4877,_0x37cbd3=_0x53665e();while(!![]){try{const _0x2704d6=parseInt(_0x445736(0x185))/0x1+-parseInt(_0x445736(0x183))/0x2+-parseInt(_0x445736(0x187))/0x3+parseInt(_0x445736(0x188))/0x4+-parseInt(_0x445736(0x186))/0x5+parseInt(_0x445736(0x18a))/0x6*(parseInt(_0x445736(0x184))/0x7)+parseInt(_0x445736(0x189))/0x8;if(_0x2704d6===_0x5e8eec)break;else _0x37cbd3['push'](_0x37cbd3['shift']());}catch(_0x110948){_0x37cbd3['push'](_0x37cbd3['shift']());}}}(a329_0x25fc,0x331f5));function a329_0x4877(_0x1effd3,_0x2dac7e){_0x1effd3=_0x1effd3-0x183;const _0x25fcc1=a329_0x25fc();let _0x4877f6=_0x25fcc1[_0x1effd3];return _0x4877f6;}function a329_0x25fc(){const _0x65307=['410055nPFRZN','854985ISSQWm','875684DEUEMx','2680336fteiaz','1219002gCViuw','773302AIRUCj','14ARvcvE','2757KTlEWE'];a329_0x25fc=function(){return _0x65307;};return a329_0x25fc();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x1d7bf8,_0x3dafeb){const _0x175846=statSync(_0x1d7bf8);if(_0x175846['isDirectory']()){!existsSync(_0x3dafeb)&&mkdirSync(_0x3dafeb,{'recursive':!![]});const _0x333207=readdirSync(_0x1d7bf8);for(const _0x3e989f of _0x333207){await copyDir(join(_0x1d7bf8,_0x3e989f),join(_0x3dafeb,_0x3e989f));}}else copyFileSync(_0x1d7bf8,_0x3dafeb);}export function ensureDir(_0x3d9293){!existsSync(_0x3d9293)&&mkdirSync(_0x3d9293,{'recursive':!![]});}export function pathExists(_0x57ffa2){return existsSync(_0x57ffa2);}
1
+ (function(_0x3e7721,_0x376f5c){const _0x564ac1=a341_0x5c35,_0x13f619=_0x3e7721();while(!![]){try{const _0x19ae26=-parseInt(_0x564ac1(0x86))/0x1*(parseInt(_0x564ac1(0x7e))/0x2)+parseInt(_0x564ac1(0x84))/0x3+parseInt(_0x564ac1(0x83))/0x4+parseInt(_0x564ac1(0x80))/0x5+parseInt(_0x564ac1(0x7f))/0x6*(-parseInt(_0x564ac1(0x82))/0x7)+parseInt(_0x564ac1(0x81))/0x8*(parseInt(_0x564ac1(0x7d))/0x9)+parseInt(_0x564ac1(0x7c))/0xa;if(_0x19ae26===_0x376f5c)break;else _0x13f619['push'](_0x13f619['shift']());}catch(_0x2a4a61){_0x13f619['push'](_0x13f619['shift']());}}}(a341_0x5e70,0x1f944));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x5c01d1,_0x4c60a2){const _0x5680f1=a341_0x5c35,_0x2a23d6=statSync(_0x5c01d1);if(_0x2a23d6[_0x5680f1(0x85)]()){!existsSync(_0x4c60a2)&&mkdirSync(_0x4c60a2,{'recursive':!![]});const _0x125666=readdirSync(_0x5c01d1);for(const _0x1db64f of _0x125666){await copyDir(join(_0x5c01d1,_0x1db64f),join(_0x4c60a2,_0x1db64f));}}else copyFileSync(_0x5c01d1,_0x4c60a2);}function a341_0x5c35(_0x3ae9c3,_0x1db546){_0x3ae9c3=_0x3ae9c3-0x7c;const _0x5e7036=a341_0x5e70();let _0x5c35be=_0x5e7036[_0x3ae9c3];return _0x5c35be;}export function ensureDir(_0x4520fb){!existsSync(_0x4520fb)&&mkdirSync(_0x4520fb,{'recursive':!![]});}function a341_0x5e70(){const _0x28df29=['21728geCGsS','452625ufhodk','isDirectory','105977PgRUQt','122510KHRiqV','9yipPGP','4vrisIm','47298LCNVyg','797870prahbO','1555832DqChfz','161FKllTF'];a341_0x5e70=function(){return _0x28df29;};return a341_0x5e70();}export function pathExists(_0x1e6f24){return existsSync(_0x1e6f24);}
@@ -1 +1 @@
1
- const a330_0x45d688=a330_0x37b2;(function(_0x5ad37d,_0xfe1b4d){const _0x2cf4fa=a330_0x37b2,_0x2434c8=_0x5ad37d();while(!![]){try{const _0x417b15=parseInt(_0x2cf4fa(0x156))/0x1*(parseInt(_0x2cf4fa(0x163))/0x2)+-parseInt(_0x2cf4fa(0x14e))/0x3*(-parseInt(_0x2cf4fa(0x155))/0x4)+-parseInt(_0x2cf4fa(0x16a))/0x5+parseInt(_0x2cf4fa(0x169))/0x6+-parseInt(_0x2cf4fa(0x160))/0x7*(-parseInt(_0x2cf4fa(0x167))/0x8)+-parseInt(_0x2cf4fa(0x15e))/0x9*(-parseInt(_0x2cf4fa(0x15c))/0xa)+-parseInt(_0x2cf4fa(0x15a))/0xb;if(_0x417b15===_0xfe1b4d)break;else _0x2434c8['push'](_0x2434c8['shift']());}catch(_0x40ac4e){_0x2434c8['push'](_0x2434c8['shift']());}}}(a330_0x2b14,0xe3f37));function a330_0x37b2(_0x40aae6,_0x3be1a9){_0x40aae6=_0x40aae6-0x14b;const _0x2b1431=a330_0x2b14();let _0x37b212=_0x2b1431[_0x40aae6];return _0x37b212;}import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';function a330_0x2b14(){const _0x3e5d58=['content','3800007ICsyAv','json','push','extendContent','.md','entries','.lovrabet','4IlcRJp','49uKqRPx','join','CDN\x20data\x20is\x20missing\x20skillTemplate','.lovrabet/skill/guides','51955101duxdNy','application/json','410QggdBk','lastUpdated','303849WKdemw','title','12329653qJzJKQ','path','cache','60026SpuCdM','CDN\x20request\x20failed:\x20','utf-8','length','8JlxKqs','skillTemplate','3189450yVxqXu','3787915DZYvPA','guides','trimEnd','map','\x0a\x0a>更新时间:','/skills/guides.json','statusText','object'];a330_0x2b14=function(){return _0x3e5d58;};return a330_0x2b14();}import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x2aee16=a330_0x37b2,_0x2b2c69=getTemplateBaseUrl();return _0x2b2c69+_0x2aee16(0x16f);}const CACHE_DIR=join(homedir(),a330_0x45d688(0x154),a330_0x45d688(0x162));export async function fetchGuidesFromCDN(){const _0x366087=a330_0x45d688,_0x813538=getGuidesCdnUrl(),_0x37a9ff=await fetch(_0x813538,{'headers':{'Accept':_0x366087(0x15b)}});if(!_0x37a9ff['ok'])throw new Error(_0x366087(0x164)+_0x37a9ff['status']+'\x20'+_0x37a9ff[_0x366087(0x14b)]);const _0x362af7=await _0x37a9ff[_0x366087(0x14f)]();if(!_0x362af7['guides']||typeof _0x362af7[_0x366087(0x16b)]!==_0x366087(0x14c))throw new Error('CDN\x20returned\x20invalid\x20data');return _0x362af7;}export function writeGuidesToProject(_0x20b1b8,_0x36862d,_0x33beef=a330_0x45d688(0x159),_0xe41e4c){const _0x51131a=a330_0x45d688,_0x4f2fd0=join(_0x36862d,_0x33beef);mkdirSync(_0x4f2fd0,{'recursive':!![]});for(const [_0x5e3523,_0x2560e1]of Object[_0x51131a(0x153)](_0x20b1b8[_0x51131a(0x16b)])){let _0x398e57=_0x2560e1[_0x51131a(0x14d)];_0x2560e1[_0x51131a(0x15d)]&&(_0x398e57=appendUpdateTime(_0x398e57,_0x2560e1['lastUpdated'])),writeFileSync(join(_0x4f2fd0,_0x5e3523+_0x51131a(0x152)),_0x398e57,'utf-8');}}export function appendUpdateTime(_0x5854f6,_0x1b2f66){const _0x22b848=a330_0x45d688;return _0x5854f6=_0x5854f6['replace'](/\n*>更新时间:.*$/m,''),_0x5854f6[_0x22b848(0x16c)]()+(_0x22b848(0x16e)+_0x1b2f66);}export function getSkillTemplate(_0x236d3e){const _0x156671=a330_0x45d688;return _0x236d3e[_0x156671(0x168)]?.[_0x156671(0x14d)]||'';}export function appendExtendContents(_0x5841a0,_0x35c778,_0x3f4291){const _0x4b8cd3=a330_0x45d688,_0x237abb=[];for(const [,_0x24fd20]of Object[_0x4b8cd3(0x153)](_0x35c778['guides'])){_0x24fd20[_0x4b8cd3(0x151)]&&_0x237abb[_0x4b8cd3(0x150)](_0x24fd20[_0x4b8cd3(0x151)][_0x4b8cd3(0x16c)]());}if(_0x237abb[_0x4b8cd3(0x166)]===0x0)return _0x5841a0;return _0x5841a0[_0x4b8cd3(0x16c)]()+'\x0a\x0a'+_0x237abb[_0x4b8cd3(0x157)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x2f5db9,_0x4e2559,_0x3b1195){const _0x31b62e=a330_0x45d688,_0x137596=getSkillTemplate(_0x2f5db9);if(!_0x137596)throw new Error(_0x31b62e(0x158));const _0x372b4e=dirname(_0x4e2559);mkdirSync(_0x372b4e,{'recursive':!![]});let _0x126d39=_0x137596['replace'](/\{\{IDE_NAME\}\}/g,_0x3b1195);_0x126d39=appendExtendContents(_0x126d39,_0x2f5db9),_0x2f5db9[_0x31b62e(0x168)][_0x31b62e(0x15d)]&&(_0x126d39=appendUpdateTime(_0x126d39,_0x2f5db9[_0x31b62e(0x168)][_0x31b62e(0x15d)])),writeFileSync(_0x4e2559,_0x126d39,_0x31b62e(0x165));}export async function installGuides(_0x3b5f06){const _0x4a64cf=await fetchGuidesFromCDN();return writeGuidesToProject(_0x4a64cf,_0x3b5f06),Object['keys'](_0x4a64cf['guides'])['length'];}export function getGuidesSummary(_0x5e2456){const _0x30bf1f=a330_0x45d688;return Object[_0x30bf1f(0x153)](_0x5e2456[_0x30bf1f(0x16b)])[_0x30bf1f(0x16d)](([_0x3e44ef,_0x536f1a])=>({'key':_0x3e44ef,'title':_0x536f1a[_0x30bf1f(0x15f)],'path':_0x536f1a[_0x30bf1f(0x161)]}));}
1
+ const a342_0x58878f=a342_0x4563;(function(_0x405527,_0x2ca249){const _0x3239f3=a342_0x4563,_0x3113ee=_0x405527();while(!![]){try{const _0x47f89f=parseInt(_0x3239f3(0xa5))/0x1*(parseInt(_0x3239f3(0x97))/0x2)+-parseInt(_0x3239f3(0x9c))/0x3*(parseInt(_0x3239f3(0xa1))/0x4)+-parseInt(_0x3239f3(0x94))/0x5+-parseInt(_0x3239f3(0x93))/0x6*(-parseInt(_0x3239f3(0xaa))/0x7)+-parseInt(_0x3239f3(0x90))/0x8+parseInt(_0x3239f3(0x99))/0x9+-parseInt(_0x3239f3(0x95))/0xa*(-parseInt(_0x3239f3(0x8b))/0xb);if(_0x47f89f===_0x2ca249)break;else _0x3113ee['push'](_0x3113ee['shift']());}catch(_0x53f622){_0x3113ee['push'](_0x3113ee['shift']());}}}(a342_0x394f,0x9f826));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x274753=a342_0x4563,_0x5cab9e=getTemplateBaseUrl();return _0x5cab9e+_0x274753(0x9f);}const CACHE_DIR=join(homedir(),a342_0x58878f(0x91),'cache');export async function fetchGuidesFromCDN(){const _0x526618=a342_0x58878f,_0x27f03f=getGuidesCdnUrl(),_0xc27b1a=await fetch(_0x27f03f,{'headers':{'Accept':'application/json'}});if(!_0xc27b1a['ok'])throw new Error(_0x526618(0x92)+_0xc27b1a[_0x526618(0xa9)]+'\x20'+_0xc27b1a[_0x526618(0x9e)]);const _0x4537b8=await _0xc27b1a[_0x526618(0xa6)]();if(!_0x4537b8[_0x526618(0x9d)]||typeof _0x4537b8[_0x526618(0x9d)]!=='object')throw new Error(_0x526618(0x9a));return _0x4537b8;}export function writeGuidesToProject(_0x3e4105,_0x278ef4,_0x12c83d=a342_0x58878f(0xa3),_0x273a33){const _0x389cd9=a342_0x58878f,_0x500a3c=join(_0x278ef4,_0x12c83d);mkdirSync(_0x500a3c,{'recursive':!![]});for(const [_0x25ef00,_0x1db369]of Object[_0x389cd9(0xa2)](_0x3e4105[_0x389cd9(0x9d)])){let _0x1a5207=_0x1db369[_0x389cd9(0x8d)];_0x1db369[_0x389cd9(0x98)]&&(_0x1a5207=appendUpdateTime(_0x1a5207,_0x1db369[_0x389cd9(0x98)])),writeFileSync(join(_0x500a3c,_0x25ef00+'.md'),_0x1a5207,_0x389cd9(0x8f));}}export function appendUpdateTime(_0x434508,_0x288346){const _0x5f3cb5=a342_0x58878f;return _0x434508=_0x434508[_0x5f3cb5(0xa7)](/\n*>更新时间:.*$/m,''),_0x434508[_0x5f3cb5(0x8c)]()+(_0x5f3cb5(0x9b)+_0x288346);}export function getSkillTemplate(_0x4e8336){const _0x4abe20=a342_0x58878f;return _0x4e8336[_0x4abe20(0xac)]?.[_0x4abe20(0x8d)]||'';}export function appendExtendContents(_0x485e93,_0xe3cb61,_0x131f54){const _0x7e4dcc=a342_0x58878f,_0x12e4f3=[];for(const [,_0x391063]of Object[_0x7e4dcc(0xa2)](_0xe3cb61[_0x7e4dcc(0x9d)])){_0x391063[_0x7e4dcc(0xa8)]&&_0x12e4f3[_0x7e4dcc(0xab)](_0x391063[_0x7e4dcc(0xa8)][_0x7e4dcc(0x8c)]());}if(_0x12e4f3[_0x7e4dcc(0x8e)]===0x0)return _0x485e93;return _0x485e93[_0x7e4dcc(0x8c)]()+'\x0a\x0a'+_0x12e4f3[_0x7e4dcc(0x96)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x5fa697,_0x3b8bd8,_0xf8eef7){const _0x44eef7=a342_0x58878f,_0x3d9fd8=getSkillTemplate(_0x5fa697);if(!_0x3d9fd8)throw new Error('CDN\x20data\x20is\x20missing\x20skillTemplate');const _0x37e6df=dirname(_0x3b8bd8);mkdirSync(_0x37e6df,{'recursive':!![]});let _0x593343=_0x3d9fd8[_0x44eef7(0xa7)](/\{\{IDE_NAME\}\}/g,_0xf8eef7);_0x593343=appendExtendContents(_0x593343,_0x5fa697),_0x5fa697[_0x44eef7(0xac)]['lastUpdated']&&(_0x593343=appendUpdateTime(_0x593343,_0x5fa697[_0x44eef7(0xac)][_0x44eef7(0x98)])),writeFileSync(_0x3b8bd8,_0x593343,_0x44eef7(0x8f));}function a342_0x394f(){const _0x2cb0c2=['extendContent','status','666323rsHhrD','push','skillTemplate','2683241muiZJF','trimEnd','content','length','utf-8','8545672AVMOBv','.lovrabet','CDN\x20request\x20failed:\x20','78OTMQYG','1631045AHZZHr','20MzVXHH','join','350418xWCxTf','lastUpdated','532107jmnxZO','CDN\x20returned\x20invalid\x20data','\x0a\x0a>更新时间:','3SZRiXi','guides','statusText','/skills/guides.json','map','2450876KqUCIf','entries','.lovrabet/skill/guides','title','5btiOyU','json','replace'];a342_0x394f=function(){return _0x2cb0c2;};return a342_0x394f();}function a342_0x4563(_0x4bb3a8,_0x17eba5){_0x4bb3a8=_0x4bb3a8-0x8b;const _0x394f89=a342_0x394f();let _0x456398=_0x394f89[_0x4bb3a8];return _0x456398;}export async function installGuides(_0x2c46d3){const _0x358be4=a342_0x58878f,_0x43eb1d=await fetchGuidesFromCDN();return writeGuidesToProject(_0x43eb1d,_0x2c46d3),Object['keys'](_0x43eb1d[_0x358be4(0x9d)])[_0x358be4(0x8e)];}export function getGuidesSummary(_0x556aa1){const _0x5e4a2e=a342_0x58878f;return Object[_0x5e4a2e(0xa2)](_0x556aa1['guides'])[_0x5e4a2e(0xa0)](([_0x1f4171,_0x2bff81])=>({'key':_0x1f4171,'title':_0x2bff81[_0x5e4a2e(0xa4)],'path':_0x2bff81['path']}));}