@lovrabet/rabetbase-cli 2.4.7-beta.2 → 2.5.0-beta.1

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 (364) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.d.ts +13 -3
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.d.ts +7 -0
  6. package/lib/api/generate-sdk-config-file.js +1 -0
  7. package/lib/auth/auth-server-ui.js +1 -1
  8. package/lib/auth/auth-server.js +1 -1
  9. package/lib/auth/constant.js +1 -1
  10. package/lib/auth/get-cookie.js +1 -1
  11. package/lib/auth/get-session-user.js +1 -1
  12. package/lib/auth/is-session-valid.js +1 -1
  13. package/lib/auth/login-success-html.js +1 -1
  14. package/lib/auth/logout.js +1 -1
  15. package/lib/cli-flags.js +1 -1
  16. package/lib/cli.js +1 -1
  17. package/lib/commands/api/generate.js +1 -1
  18. package/lib/commands/api/index.js +1 -1
  19. package/lib/commands/api/list.js +1 -1
  20. package/lib/commands/api/pull.js +1 -1
  21. package/lib/commands/api/shared.js +1 -1
  22. package/lib/commands/app/index.js +1 -1
  23. package/lib/commands/app/list.js +1 -1
  24. package/lib/commands/app/members-list.js +1 -1
  25. package/lib/commands/app/remote-directory.js +1 -1
  26. package/lib/commands/app/shared.d.ts +2 -5
  27. package/lib/commands/app/shared.js +1 -1
  28. package/lib/commands/app-config/delete.js +1 -1
  29. package/lib/commands/app-config/get.js +1 -1
  30. package/lib/commands/app-config/index.js +1 -1
  31. package/lib/commands/app-config/list.js +1 -1
  32. package/lib/commands/app-config/set.js +1 -1
  33. package/lib/commands/app-config/shared.js +1 -1
  34. package/lib/commands/auth/index.js +1 -1
  35. package/lib/commands/bff/create.js +1 -1
  36. package/lib/commands/bff/delete.js +1 -1
  37. package/lib/commands/bff/detail.js +1 -1
  38. package/lib/commands/bff/index.js +1 -1
  39. package/lib/commands/bff/list.js +1 -1
  40. package/lib/commands/bff/pull.js +1 -1
  41. package/lib/commands/bff/push.js +1 -1
  42. package/lib/commands/bff/status.js +1 -1
  43. package/lib/commands/cli-skill/index.js +1 -1
  44. package/lib/commands/cli-update.js +1 -1
  45. package/lib/commands/codegen/index.js +1 -1
  46. package/lib/commands/codegen/sdk.js +1 -1
  47. package/lib/commands/codegen/sql.js +1 -1
  48. package/lib/commands/common/app-registry.js +1 -1
  49. package/lib/commands/common/app-selector.js +1 -1
  50. package/lib/commands/common/async-task.js +1 -1
  51. package/lib/commands/common/dry-run.js +1 -1
  52. package/lib/commands/common/flags.js +1 -1
  53. package/lib/commands/common/local-file.js +1 -1
  54. package/lib/commands/common/validate.js +1 -1
  55. package/lib/commands/config/delete.d.ts +5 -0
  56. package/lib/commands/config/delete.js +1 -0
  57. package/lib/commands/config/get.js +1 -1
  58. package/lib/commands/config/index.js +1 -1
  59. package/lib/commands/config/init.d.ts +12 -0
  60. package/lib/commands/config/init.js +1 -0
  61. package/lib/commands/config/list.js +1 -1
  62. package/lib/commands/config/set.js +1 -1
  63. package/lib/commands/config/shared.js +1 -1
  64. package/lib/commands/dataset/business-group-update.js +1 -1
  65. package/lib/commands/dataset/business-groups.js +1 -1
  66. package/lib/commands/dataset/capability.js +1 -1
  67. package/lib/commands/dataset/delete.js +1 -1
  68. package/lib/commands/dataset/detail.js +1 -1
  69. package/lib/commands/dataset/extend-update.js +1 -1
  70. package/lib/commands/dataset/field-update.js +1 -1
  71. package/lib/commands/dataset/generate.js +1 -1
  72. package/lib/commands/dataset/index.js +1 -1
  73. package/lib/commands/dataset/list.js +1 -1
  74. package/lib/commands/dataset/operations.js +1 -1
  75. package/lib/commands/dataset/relation-audit.js +1 -1
  76. package/lib/commands/dataset/relation-create.js +1 -1
  77. package/lib/commands/dataset/relation-delete.js +1 -1
  78. package/lib/commands/dataset/relation-shared.js +1 -1
  79. package/lib/commands/dataset/relation-update.js +1 -1
  80. package/lib/commands/dataset/relations.js +1 -1
  81. package/lib/commands/dataset/rename.js +1 -1
  82. package/lib/commands/dataset/restore.js +1 -1
  83. package/lib/commands/db/analysis-batching.js +1 -1
  84. package/lib/commands/db/analyze-batch-plan.js +1 -1
  85. package/lib/commands/db/analyze-cancel.js +1 -1
  86. package/lib/commands/db/analyze-start.js +1 -1
  87. package/lib/commands/db/analyze-status.js +1 -1
  88. package/lib/commands/db/create.js +1 -1
  89. package/lib/commands/db/delete.js +1 -1
  90. package/lib/commands/db/detail.js +1 -1
  91. package/lib/commands/db/diff-refresh-start.js +1 -1
  92. package/lib/commands/db/diff-refresh-status.js +1 -1
  93. package/lib/commands/db/diff.js +1 -1
  94. package/lib/commands/db/index.js +1 -1
  95. package/lib/commands/db/list.js +1 -1
  96. package/lib/commands/db/shared.js +1 -1
  97. package/lib/commands/db/tables.js +1 -1
  98. package/lib/commands/db/test.js +1 -1
  99. package/lib/commands/db/update.js +1 -1
  100. package/lib/commands/doctor.js +1 -1
  101. package/lib/commands/file/index.js +1 -1
  102. package/lib/commands/issue/index.js +1 -1
  103. package/lib/commands/issue/nudge.js +1 -1
  104. package/lib/commands/issue/report.js +1 -1
  105. package/lib/commands/issue/shared.js +1 -1
  106. package/lib/commands/kb/create.js +1 -1
  107. package/lib/commands/kb/delete.js +1 -1
  108. package/lib/commands/kb/detail.js +1 -1
  109. package/lib/commands/kb/index.js +1 -1
  110. package/lib/commands/kb/list.js +1 -1
  111. package/lib/commands/kb/search.js +1 -1
  112. package/lib/commands/kb/shared.js +1 -1
  113. package/lib/commands/kb/update.js +1 -1
  114. package/lib/commands/logs/index.js +1 -1
  115. package/lib/commands/menu/asset-update.js +1 -1
  116. package/lib/commands/menu/delete.js +1 -1
  117. package/lib/commands/menu/external-link-create.js +1 -1
  118. package/lib/commands/menu/external-link-update.js +1 -1
  119. package/lib/commands/menu/group-create.js +1 -1
  120. package/lib/commands/menu/group-update.js +1 -1
  121. package/lib/commands/menu/index.js +1 -1
  122. package/lib/commands/menu/list.js +1 -1
  123. package/lib/commands/menu/move.js +1 -1
  124. package/lib/commands/menu/regroup-start.js +1 -1
  125. package/lib/commands/menu/rename.js +1 -1
  126. package/lib/commands/menu/shared/compare-table.js +1 -1
  127. package/lib/commands/menu/shared/delete-plan.js +1 -1
  128. package/lib/commands/menu/shared/facts.js +1 -1
  129. package/lib/commands/menu/shared/index.js +1 -1
  130. package/lib/commands/menu/shared/inquirer.js +1 -1
  131. package/lib/commands/menu/shared/local-pages.js +1 -1
  132. package/lib/commands/menu/shared/logic.js +1 -1
  133. package/lib/commands/menu/shared/mutations.js +1 -1
  134. package/lib/commands/menu/shared/service.js +1 -1
  135. package/lib/commands/menu/shared/sync-core.js +1 -1
  136. package/lib/commands/menu/shared/update-core.js +1 -1
  137. package/lib/commands/menu/shared/valid-url.js +1 -1
  138. package/lib/commands/menu/sync.js +1 -1
  139. package/lib/commands/menu/visibility-update.js +1 -1
  140. package/lib/commands/notification/config-create.js +1 -1
  141. package/lib/commands/notification/config-delete.js +1 -1
  142. package/lib/commands/notification/config-list.js +1 -1
  143. package/lib/commands/notification/config-update.js +1 -1
  144. package/lib/commands/notification/index.js +1 -1
  145. package/lib/commands/notification/shared.js +1 -1
  146. package/lib/commands/ocr/index.js +1 -1
  147. package/lib/commands/page/create.js +1 -1
  148. package/lib/commands/page/custom/detail.js +1 -1
  149. package/lib/commands/page/custom/list.js +1 -1
  150. package/lib/commands/page/custom/publish.js +1 -1
  151. package/lib/commands/page/custom/shared.js +1 -1
  152. package/lib/commands/page/custom/syntax.js +1 -1
  153. package/lib/commands/page/custom/template.js +1 -1
  154. package/lib/commands/page/custom/update.js +1 -1
  155. package/lib/commands/page/data-list-status.js +1 -1
  156. package/lib/commands/page/generate-start.js +1 -1
  157. package/lib/commands/page/generate-status.js +1 -1
  158. package/lib/commands/page/index.js +1 -1
  159. package/lib/commands/page/pull.js +1 -1
  160. package/lib/commands/page/push.js +1 -1
  161. package/lib/commands/page/relation-audit.js +1 -1
  162. package/lib/commands/page/restore.js +1 -1
  163. package/lib/commands/page/shared.js +1 -1
  164. package/lib/commands/page/sync.js +1 -1
  165. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  166. package/lib/commands/project/create/format-elapsed.js +1 -1
  167. package/lib/commands/project/create/main.d.ts +1 -0
  168. package/lib/commands/project/create/main.js +1 -1
  169. package/lib/commands/project/create/materialize-project-template.d.ts +6 -2
  170. package/lib/commands/project/create/materialize-project-template.js +1 -1
  171. package/lib/commands/project/create/project-name.js +1 -1
  172. package/lib/commands/project/create/project-template-archive.js +1 -1
  173. package/lib/commands/project/create/project-template-path.js +1 -1
  174. package/lib/commands/project/create/use-copy-project-template.d.ts +1 -1
  175. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  176. package/lib/commands/project/create/use-format-code.js +1 -1
  177. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  178. package/lib/commands/project/index.js +1 -1
  179. package/lib/commands/project/upgrade.js +1 -1
  180. package/lib/commands/registry.d.ts +2 -2
  181. package/lib/commands/registry.js +1 -1
  182. package/lib/commands/role/delete.js +1 -1
  183. package/lib/commands/role/detail.js +1 -1
  184. package/lib/commands/role/index.js +1 -1
  185. package/lib/commands/role/list.js +1 -1
  186. package/lib/commands/role/shared.d.ts +1 -1
  187. package/lib/commands/role/shared.js +1 -1
  188. package/lib/commands/role/update.js +1 -1
  189. package/lib/commands/role/user-add.js +1 -1
  190. package/lib/commands/role/user-remove.js +1 -1
  191. package/lib/commands/role/user-resolve.js +1 -1
  192. package/lib/commands/run/index.js +1 -1
  193. package/lib/commands/schema.js +1 -1
  194. package/lib/commands/sql/create.js +1 -1
  195. package/lib/commands/sql/delete.js +1 -1
  196. package/lib/commands/sql/detail.js +1 -1
  197. package/lib/commands/sql/exec.js +1 -1
  198. package/lib/commands/sql/index.js +1 -1
  199. package/lib/commands/sql/list.js +1 -1
  200. package/lib/commands/sql/pull.js +1 -1
  201. package/lib/commands/sql/push.js +1 -1
  202. package/lib/commands/sql/shared.js +1 -1
  203. package/lib/commands/sql/status.js +1 -1
  204. package/lib/commands/sql/validate.js +1 -1
  205. package/lib/commands/task/index.js +1 -1
  206. package/lib/commands/task/status.js +1 -1
  207. package/lib/commands/tenant/index.js +1 -1
  208. package/lib/commands/tenant/members-list.js +1 -1
  209. package/lib/commands/tenant/shared.js +1 -1
  210. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  211. package/lib/commands/user-account/index.js +1 -1
  212. package/lib/commands/workspace/add.js +1 -1
  213. package/lib/commands/workspace/index.js +1 -1
  214. package/lib/commands/workspace/remove.js +1 -1
  215. package/lib/config/domain-config.d.ts +10 -0
  216. package/lib/config/domain-config.js +1 -0
  217. package/lib/config/schema.d.ts +3 -1
  218. package/lib/config/schema.js +1 -1
  219. package/lib/constant/cdn.js +1 -1
  220. package/lib/constant/cli.js +1 -1
  221. package/lib/constant/defaults.js +1 -1
  222. package/lib/constant/domain.d.ts +23 -1
  223. package/lib/constant/domain.js +1 -1
  224. package/lib/constant/env.js +1 -1
  225. package/lib/constant/output.js +1 -1
  226. package/lib/constant/paths.js +1 -1
  227. package/lib/constant/region.d.ts +9 -0
  228. package/lib/constant/region.js +1 -0
  229. package/lib/constant/risk.js +1 -1
  230. package/lib/context/app-resolver.js +1 -1
  231. package/lib/context/auth-resolver.js +1 -1
  232. package/lib/context/config-loader.d.ts +4 -6
  233. package/lib/context/config-loader.js +1 -1
  234. package/lib/context.d.ts +2 -2
  235. package/lib/context.js +1 -1
  236. package/lib/core/alias-resolver.js +1 -1
  237. package/lib/core/api-client.d.ts +2 -0
  238. package/lib/core/api-client.js +1 -1
  239. package/lib/core/bff/config.js +1 -1
  240. package/lib/core/bff/file-system.js +1 -1
  241. package/lib/core/bff/hash.js +1 -1
  242. package/lib/core/bff/lock.js +1 -1
  243. package/lib/core/bff/utils.js +1 -1
  244. package/lib/core/db-resolver.js +1 -1
  245. package/lib/core/page/file-system.js +1 -1
  246. package/lib/core/page/hash.js +1 -1
  247. package/lib/core/page/lock.js +1 -1
  248. package/lib/core/sql-index-auditor.js +1 -1
  249. package/lib/core/sql-sync/config.js +1 -1
  250. package/lib/core/sql-sync/file-system.js +1 -1
  251. package/lib/core/sql-sync/hash.js +1 -1
  252. package/lib/core/sql-sync/lock.js +1 -1
  253. package/lib/core/sql-sync/utils.js +1 -1
  254. package/lib/core/sql-validator.js +1 -1
  255. package/lib/errors.d.ts +11 -1
  256. package/lib/errors.js +1 -1
  257. package/lib/framework/build-all-flags.js +1 -1
  258. package/lib/framework/error-output.js +1 -1
  259. package/lib/framework/explicit-yes.js +1 -1
  260. package/lib/framework/flags.js +1 -1
  261. package/lib/framework/help.d.ts +2 -2
  262. package/lib/framework/help.js +1 -1
  263. package/lib/framework/index.js +1 -1
  264. package/lib/framework/output.js +1 -1
  265. package/lib/framework/response.js +1 -1
  266. package/lib/framework/runner-alias.js +1 -1
  267. package/lib/framework/runner.js +1 -1
  268. package/lib/framework/schema-export.js +1 -1
  269. package/lib/framework/types.js +1 -1
  270. package/lib/generated/build-info.d.ts +4 -4
  271. package/lib/generated/build-info.js +1 -1
  272. package/lib/help.js +1 -1
  273. package/lib/postinstall.js +1 -1
  274. package/lib/runtime/confirmation.js +1 -1
  275. package/lib/runtime/event.js +1 -1
  276. package/lib/runtime/index.js +1 -1
  277. package/lib/runtime/queue.js +1 -1
  278. package/lib/runtime/resolve.js +1 -1
  279. package/lib/skills/builtin-skill.js +1 -1
  280. package/lib/skills/main.js +1 -1
  281. package/lib/skills/npx-skills-add.js +1 -1
  282. package/lib/skills/skill-presence.js +1 -1
  283. package/lib/telemetry/cli-command-trace.js +1 -1
  284. package/lib/telemetry/cli-help-trace.js +1 -1
  285. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  286. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  287. package/lib/telemetry/send-cli-trace-log.js +1 -1
  288. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  289. package/lib/types/index.d.ts +28 -0
  290. package/lib/utils/ai_config.d.ts +1 -2
  291. package/lib/utils/ai_config.js +1 -1
  292. package/lib/utils/apply-jq-filter.js +1 -1
  293. package/lib/utils/cdn-config.js +1 -1
  294. package/lib/utils/check-sdk-version.js +1 -1
  295. package/lib/utils/cli-version-check.js +1 -1
  296. package/lib/utils/cli-version-policy.js +1 -1
  297. package/lib/utils/config.js +1 -1
  298. package/lib/utils/entity-with-id.js +1 -1
  299. package/lib/utils/file-utils.js +1 -1
  300. package/lib/utils/guides-cdn.js +1 -1
  301. package/lib/utils/http-client.js +1 -1
  302. package/lib/utils/is-non-interactive.js +1 -1
  303. package/lib/utils/logger.js +1 -1
  304. package/lib/utils/params.js +1 -1
  305. package/lib/utils/platform.js +1 -1
  306. package/lib/utils/sleep.js +1 -1
  307. package/lib/utils/template-replacer.js +1 -1
  308. package/lib/utils/update-notice.js +1 -1
  309. package/lib/utils/version.js +1 -1
  310. package/lib/utils/with-active-cookie.js +1 -1
  311. package/lib/utils/write-cli-side-channel.js +1 -1
  312. package/package.json +1 -3
  313. package/skills/rabetbase/SKILL.md +33 -28
  314. package/skills/rabetbase/guides/backend-function.md +41 -12
  315. package/skills/rabetbase/guides/bff-creation-workflow.md +6 -4
  316. package/skills/rabetbase/guides/custom-page-workflow.md +1 -1
  317. package/skills/rabetbase/guides/data-api-guidelines.md +8 -8
  318. package/skills/rabetbase/guides/database-connection-workflow.md +8 -16
  319. package/skills/rabetbase/guides/menu-anomaly-manual-cleanup.md +1 -6
  320. package/skills/rabetbase/guides/sdk-client-generation.md +146 -0
  321. package/skills/rabetbase/guides/sql-creation-workflow.md +1 -1
  322. package/skills/rabetbase/guides/troubleshooting.md +1 -1
  323. package/skills/rabetbase/guides/typescript-sdk.md +46 -10
  324. package/skills/rabetbase/references/rabetbase-api-list.md +4 -4
  325. package/skills/rabetbase/references/rabetbase-api-pull.md +44 -29
  326. package/skills/rabetbase/references/rabetbase-app-list.md +2 -2
  327. package/skills/rabetbase/references/rabetbase-auth-login.md +4 -2
  328. package/skills/rabetbase/references/rabetbase-bff-push.md +3 -1
  329. package/skills/rabetbase/references/rabetbase-codegen-sql.md +3 -1
  330. package/skills/rabetbase/references/rabetbase-config.md +75 -30
  331. package/skills/rabetbase/references/rabetbase-dataset-detail.md +1 -1
  332. package/skills/rabetbase/references/rabetbase-db-analyze.md +3 -3
  333. package/skills/rabetbase/references/rabetbase-db-detail.md +2 -2
  334. package/skills/rabetbase/references/rabetbase-db-diff-refresh.md +4 -4
  335. package/skills/rabetbase/references/rabetbase-db-diff.md +6 -9
  336. package/skills/rabetbase/references/rabetbase-doctor.md +1 -1
  337. package/skills/rabetbase/references/rabetbase-init.md +57 -51
  338. package/skills/rabetbase/references/rabetbase-kb.md +2 -0
  339. package/skills/rabetbase/references/rabetbase-page-create.md +1 -1
  340. package/skills/rabetbase/references/rabetbase-page-custom-detail.md +3 -3
  341. package/skills/rabetbase/references/rabetbase-page-custom-list.md +2 -2
  342. package/skills/rabetbase/references/rabetbase-project-create.md +12 -3
  343. package/skills/rabetbase/references/rabetbase-project-upgrade.md +2 -2
  344. package/skills/rabetbase/references/rabetbase-role-user-resolve.md +2 -2
  345. package/skills/rabetbase/references/rabetbase-user-account.md +1 -1
  346. package/skills/rabetbase/references/rabetbase-workspace.md +6 -6
  347. package/skills/rabetbase.manifest.json +4 -3
  348. package/templates/README.md +17 -28
  349. package/templates/generate-api/api.ts.tpl +3 -3
  350. package/templates/generate-api/client.ts.tpl +10 -37
  351. package/lib/commands/data/filter.d.ts +0 -7
  352. package/lib/commands/data/filter.js +0 -1
  353. package/lib/commands/data/getOne.d.ts +0 -7
  354. package/lib/commands/data/getOne.js +0 -1
  355. package/lib/commands/data/index.d.ts +0 -8
  356. package/lib/commands/data/index.js +0 -1
  357. package/lib/commands/data/shared.d.ts +0 -33
  358. package/lib/commands/data/shared.js +0 -1
  359. package/lib/commands/init/index.d.ts +0 -11
  360. package/lib/commands/init/index.js +0 -1
  361. package/lib/utils/rules-cdn.d.ts +0 -38
  362. package/lib/utils/rules-cdn.js +0 -1
  363. package/templates/rules/lovrabet_rules.mdc.tpl +0 -893
  364. package/templates/skill/SKILL.md.tpl +0 -120
@@ -1 +1 @@
1
- const a265_0x4f5347=a265_0x43f1;(function(_0x4118d2,_0x474c6b){const _0x857e25=a265_0x43f1,_0x24bdf5=_0x4118d2();while(!![]){try{const _0x5928c6=-parseInt(_0x857e25(0x1ce))/0x1*(-parseInt(_0x857e25(0x1c6))/0x2)+-parseInt(_0x857e25(0x1c4))/0x3*(parseInt(_0x857e25(0x201))/0x4)+parseInt(_0x857e25(0x1e4))/0x5*(-parseInt(_0x857e25(0x1c9))/0x6)+parseInt(_0x857e25(0x1ef))/0x7*(parseInt(_0x857e25(0x1f0))/0x8)+parseInt(_0x857e25(0x202))/0x9*(parseInt(_0x857e25(0x1f5))/0xa)+parseInt(_0x857e25(0x1f3))/0xb*(parseInt(_0x857e25(0x1c5))/0xc)+parseInt(_0x857e25(0x1e9))/0xd*(-parseInt(_0x857e25(0x1f4))/0xe);if(_0x5928c6===_0x474c6b)break;else _0x24bdf5['push'](_0x24bdf5['shift']());}catch(_0x15ba84){_0x24bdf5['push'](_0x24bdf5['shift']());}}}(a265_0x581f,0xf09a4));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills@latest';export const NPX_SKILLS_SUBCOMMAND_ADD=a265_0x4f5347(0x1e5);export const NPX_SKILLS_FLAG_SKILL=a265_0x4f5347(0x1d1);export const RABETBASE_SKILL_SOURCE=a265_0x4f5347(0x1f8);export const LEGACY_RABETBASE_SKILL_SOURCE=a265_0x4f5347(0x1d7);export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export const RABETBASE_GLOBAL_SKILL_NAME=a265_0x4f5347(0x1ca);export const RABETBASE_SKILL_GIT_SOURCE=a265_0x4f5347(0x1e2);export function resolveGlobalSkillName(_0x5a3496){switch(_0x5a3496['trim']()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x3a379a){const _0x117720=a265_0x4f5347,_0x83f925=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x3a379a&&_0x83f925[_0x117720(0x1d5)](NPX_SKILLS_FLAG_SKILL,_0x3a379a),_0x83f925;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a265_0x4f5347(0x1d3),...buildNpxSkillsAddArgv()][a265_0x4f5347(0x1e8)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a265_0x4f5347(0x1d3),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a265_0x4f5347(0x1e8)]('\x20');function a265_0x581f(){const _0x5073ac=['error','EACCES','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','unverifiable','166610LWWoce','add','signal','SKILL_NOT_INSTALLED','join','24089frqcjc','presence','present','exit\x20','inherit','match','8743vJMaBj','8XoKNif','PERMISSION_DENIED','stderr','1089xEwedy','13286xcnBQe','30svUnap','trim','NPM_CONFIG_GLOBAL','lovrabet/rabetbase','warn','ENOENT','code','npm_config_global','expectedSkillName','reason','toString','EPERM','434524LppqSW','974367irXehx','INSTALL_PARTIAL','pipe','NPX_NOT_FOUND','15cvdSRx','214284YJeWHv','78zWzPGO','CHILD_EXIT_NONZERO','stdout','60BQUWNQ','rabetbase','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','skill','npx\x20terminated\x20by\x20signal\x20','39141oTgZCt','\x22\x20install\x20state:\x20','\x20failed\x20target(s)','--skill','Skill\x20\x22','npx','checked','push','log','lovrabet/lovrabet-skill','state','stdio','message','status','remove','Installer\x20reported\x20','CHILD_TERMINATED','filter'];a265_0x581f=function(){return _0x5073ac;};return a265_0x581f();}const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0xbbb4d5,_0x15ea53,_0xa41e05){return{'ok':![],'status':_0x15ea53,'code':_0xbbb4d5,'error':'['+_0xbbb4d5+']\x20'+_0xa41e05};}function a265_0x43f1(_0x5dbf4b,_0x26ff4a){_0x5dbf4b=_0x5dbf4b-0x1c3;const _0x581f34=a265_0x581f();let _0x43f144=_0x581f34[_0x5dbf4b];return _0x43f144;}function spawnOptions(_0x5c54d7,_0x90e330){const _0x2283cd=a265_0x4f5347,_0x482a35={...process.env};return delete _0x482a35[_0x2283cd(0x1fc)],delete _0x482a35[_0x2283cd(0x1f7)],{'cwd':_0x5c54d7,'stdio':_0x90e330,'env':_0x482a35,'shell':![],..._0x90e330===_0x2283cd(0x204)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x3d2bb8,_0x3c4c37,_0x499540,_0x18ff28){const _0x23e448=a265_0x4f5347,_0x46260d=[_0x3d2bb8[_0x23e448(0x1c8)]?_0x3d2bb8['stdout'][_0x23e448(0x1ff)]():'',_0x3d2bb8['stderr']?_0x3d2bb8[_0x23e448(0x1f2)][_0x23e448(0x1ff)]():''][_0x23e448(0x1df)](Boolean)[_0x23e448(0x1e8)]('\x0a')[_0x23e448(0x1f6)]();_0x18ff28!==_0x23e448(0x204)&&_0x46260d&&console[_0x23e448(0x1d6)](_0x46260d);if(_0x3d2bb8['error']){const _0x41811a=_0x3d2bb8[_0x23e448(0x1e0)],_0x1b5d1c=_0x41811a[_0x23e448(0x1fb)]===_0x23e448(0x1fa)?_0x23e448(0x1c3):_0x41811a[_0x23e448(0x1fb)]===_0x23e448(0x200)||_0x41811a[_0x23e448(0x1fb)]===_0x23e448(0x1e1)?_0x23e448(0x1f1):'SPAWN_FAILED';return failure(_0x1b5d1c,_0x3d2bb8[_0x23e448(0x1db)],_0x41811a[_0x23e448(0x1da)]);}if(_0x3d2bb8[_0x23e448(0x1e6)])return failure(_0x23e448(0x1de),_0x3d2bb8[_0x23e448(0x1db)],_0x23e448(0x1cd)+_0x3d2bb8[_0x23e448(0x1e6)]);if(_0x3d2bb8[_0x23e448(0x1db)]!==0x0)return failure(_0x23e448(0x1c7),_0x3d2bb8[_0x23e448(0x1db)],_0x46260d||_0x23e448(0x1ec)+(_0x3d2bb8[_0x23e448(0x1db)]??'unknown'));const _0x1f47bb=_0x3c4c37?resolveInstalledSkill(_0x3c4c37,_0x499540):undefined,_0x440a04=_0x46260d[_0x23e448(0x1ee)](/Failed to install\s+(\d+)/i);if(_0x440a04&&Number(_0x440a04[0x1])>0x0){const _0x1fee49=_0x23e448(0x1dd)+_0x440a04[0x1]+_0x23e448(0x1d0)+(_0x46260d?':\x0a'+_0x46260d:'');if(_0x1f47bb?.['state']===_0x23e448(0x1eb))return console[_0x23e448(0x1f9)]('!\x20'+_0x1fee49),{'ok':!![],'status':0x0};return failure(_0x23e448(0x203),0x0,_0x1fee49);}if(_0x1f47bb){if(_0x1f47bb[_0x23e448(0x1d8)]==='absent')return failure(_0x23e448(0x1e7),0x0,_0x23e448(0x1d2)+_0x3c4c37+_0x23e448(0x1cb)+_0x1f47bb[_0x23e448(0x1d4)]['join'](',\x20')+')');_0x1f47bb[_0x23e448(0x1d8)]===_0x23e448(0x1e3)&&console[_0x23e448(0x1f9)]('!\x20Could\x20not\x20verify\x20\x22'+_0x3c4c37+_0x23e448(0x1cf)+_0x1f47bb[_0x23e448(0x1fe)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x3be8cd,_0x3eb083){const _0x33e8a1=a265_0x4f5347;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1e4f68=_0x3eb083?.[_0x33e8a1(0x1d9)]??'inherit',_0xe948b5=resolveNpmBin('npx'),_0x434b16=buildNpxSkillsAddArgv(_0x3eb083?.['skill']),_0x2e637d=[_0x33e8a1(0x1d3),..._0x434b16][_0x33e8a1(0x1e8)]('\x20');console[_0x33e8a1(0x1d6)]('*\x20'+_0x2e637d);const _0x1755f3=spawnSync(_0xe948b5,_0x434b16,spawnOptions(_0x3be8cd,_0x1e4f68));return normalizeSpawnResult(_0x1755f3,undefined,undefined,_0x1e4f68);}export function runNpxSkillsRemove(_0x3302ea,_0x1b90f1,_0x584e36=LEGACY_RABETBASE_SKILL_SOURCE){const _0x5221a2=a265_0x4f5347;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x534433=_0x1b90f1?.['stdio']??_0x5221a2(0x1ed),_0xad14ae=resolveNpmBin('npx'),_0x1ffa82=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x5221a2(0x1dc),_0x584e36,NPX_SKILLS_FLAG_SKILL,_0x1b90f1?.[_0x5221a2(0x1cc)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x1b90f1?.['yes']?['-y']:[]],_0x346706=[_0xad14ae,..._0x1ffa82][_0x5221a2(0x1e8)]('\x20');console[_0x5221a2(0x1d6)]('*\x20'+_0x346706);const _0x2105cb=spawnSync(_0xad14ae,_0x1ffa82,spawnOptions(_0x3302ea,_0x534433));return normalizeSpawnResult(_0x2105cb,undefined,undefined,_0x534433);}export function runNpxSkillsAddGlobal(_0x3749b7,_0x53a4d5,_0x4689a0){const _0x675183=a265_0x4f5347;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5a2e7b=resolveNpmBin(_0x675183(0x1d3)),_0x5e9c99=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x53a4d5,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x23e9fc=[_0x675183(0x1d3),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x53a4d5,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console['log']('*\x20'+_0x23e9fc);const _0x523863=spawnSync(_0x5a2e7b,_0x5e9c99,spawnOptions(_0x3749b7,_0x675183(0x204)));return normalizeSpawnResult(_0x523863,_0x4689a0?.[_0x675183(0x1fd)]??resolveGlobalSkillName(_0x53a4d5),_0x4689a0?.[_0x675183(0x1ea)],_0x4689a0?.[_0x675183(0x1d9)]);}
1
+ function a265_0x2faf(){const _0x3d7b31=['824NivdLP','\x22\x20install\x20state:\x20','skills@latest','stderr','8217CFKOxB','npx','207105wFaMuu','expectedSkillName','CHILD_TERMINATED','npm_config_global','\x20failed\x20target(s)','presence','add','signal','CHILD_EXIT_NONZERO','lovrabet/lovrabet-skill','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','SKILL_NOT_INSTALLED','reason','2701208QStYKT','warn','EPERM','log','stdout','EACCES','INSTALL_PARTIAL','1629YHXvHn','lovrabet/rabetbase','checked','7685450DNLhSV','12ZWUSty','ENOENT','skill','346YkFKAX','Skill\x20\x22','exit\x20','status','PERMISSION_DENIED','--skill','trim','state','NPM_CONFIG_GLOBAL','NPX_NOT_FOUND','511385yCuGpo','yes','unknown','code','pipe','remove','stdio','toString','join','2056209BHdiDE','rabetbase','message'];a265_0x2faf=function(){return _0x3d7b31;};return a265_0x2faf();}const a265_0x50a6c2=a265_0x2ef6;(function(_0x311620,_0x157a68){const _0x1b0d13=a265_0x2ef6,_0x238e55=_0x311620();while(!![]){try{const _0x253460=-parseInt(_0x1b0d13(0x1b9))/0x1*(parseInt(_0x1b0d13(0x1c0))/0x2)+parseInt(_0x1b0d13(0x19c))/0x3+-parseInt(_0x1b0d13(0x1b2))/0x4+-parseInt(_0x1b0d13(0x1a5))/0x5*(parseInt(_0x1b0d13(0x1bd))/0x6)+parseInt(_0x1b0d13(0x193))/0x7+-parseInt(_0x1b0d13(0x19f))/0x8*(parseInt(_0x1b0d13(0x1a3))/0x9)+parseInt(_0x1b0d13(0x1bc))/0xa;if(_0x253460===_0x157a68)break;else _0x238e55['push'](_0x238e55['shift']());}catch(_0x1cee3e){_0x238e55['push'](_0x238e55['shift']());}}}(a265_0x2faf,0x5ff2b));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a265_0x50a6c2(0x1a1);export const NPX_SKILLS_SUBCOMMAND_ADD=a265_0x50a6c2(0x1ab);function a265_0x2ef6(_0x4e87f7,_0x15a771){_0x4e87f7=_0x4e87f7-0x191;const _0x2faf26=a265_0x2faf();let _0x2ef6c6=_0x2faf26[_0x4e87f7];return _0x2ef6c6;}export const NPX_SKILLS_FLAG_SKILL=a265_0x50a6c2(0x1c5);export const RABETBASE_SKILL_SOURCE=a265_0x50a6c2(0x1ba);export const LEGACY_RABETBASE_SKILL_SOURCE=a265_0x50a6c2(0x1ae);export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export const RABETBASE_GLOBAL_SKILL_NAME=a265_0x50a6c2(0x19d);export const RABETBASE_SKILL_GIT_SOURCE=a265_0x50a6c2(0x1af);export function resolveGlobalSkillName(_0x3cceeb){const _0x161a66=a265_0x50a6c2;switch(_0x3cceeb[_0x161a66(0x1c6)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x2961c4){const _0x434b72=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x2961c4&&_0x434b72['push'](NPX_SKILLS_FLAG_SKILL,_0x2961c4),_0x434b72;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a265_0x50a6c2(0x1a4),...buildNpxSkillsAddArgv()][a265_0x50a6c2(0x19b)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a265_0x50a6c2(0x1a4),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a265_0x50a6c2(0x19b)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x31ce71,_0x124594,_0x2976dd){return{'ok':![],'status':_0x124594,'code':_0x31ce71,'error':'['+_0x31ce71+']\x20'+_0x2976dd};}function spawnOptions(_0x42261a,_0x61195b){const _0x20b3ab=a265_0x50a6c2,_0x5bedaa={...process.env};return delete _0x5bedaa[_0x20b3ab(0x1a8)],delete _0x5bedaa[_0x20b3ab(0x191)],{'cwd':_0x42261a,'stdio':_0x61195b,'env':_0x5bedaa,'shell':![],..._0x61195b===_0x20b3ab(0x197)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0xee5d07,_0x3cddad,_0x503e53,_0x5b9b0e){const _0xf50411=a265_0x50a6c2,_0x533402=[_0xee5d07[_0xf50411(0x1b6)]?_0xee5d07[_0xf50411(0x1b6)][_0xf50411(0x19a)]():'',_0xee5d07[_0xf50411(0x1a2)]?_0xee5d07['stderr'][_0xf50411(0x19a)]():'']['filter'](Boolean)[_0xf50411(0x19b)]('\x0a')['trim']();_0x5b9b0e!==_0xf50411(0x197)&&_0x533402&&console[_0xf50411(0x1b5)](_0x533402);if(_0xee5d07['error']){const _0x24d968=_0xee5d07['error'],_0x434271=_0x24d968['code']===_0xf50411(0x1be)?_0xf50411(0x192):_0x24d968['code']===_0xf50411(0x1b4)||_0x24d968[_0xf50411(0x196)]===_0xf50411(0x1b7)?_0xf50411(0x1c4):'SPAWN_FAILED';return failure(_0x434271,_0xee5d07[_0xf50411(0x1c3)],_0x24d968[_0xf50411(0x19e)]);}if(_0xee5d07[_0xf50411(0x1ac)])return failure(_0xf50411(0x1a7),_0xee5d07[_0xf50411(0x1c3)],'npx\x20terminated\x20by\x20signal\x20'+_0xee5d07[_0xf50411(0x1ac)]);if(_0xee5d07[_0xf50411(0x1c3)]!==0x0)return failure(_0xf50411(0x1ad),_0xee5d07[_0xf50411(0x1c3)],_0x533402||_0xf50411(0x1c2)+(_0xee5d07[_0xf50411(0x1c3)]??_0xf50411(0x195)));const _0x336ed5=_0x3cddad?resolveInstalledSkill(_0x3cddad,_0x503e53):undefined,_0x24bf12=_0x533402['match'](/Failed to install\s+(\d+)/i);if(_0x24bf12&&Number(_0x24bf12[0x1])>0x0){const _0x2b7f35='Installer\x20reported\x20'+_0x24bf12[0x1]+_0xf50411(0x1a9)+(_0x533402?':\x0a'+_0x533402:'');if(_0x336ed5?.[_0xf50411(0x1c7)]==='present')return console[_0xf50411(0x1b3)]('!\x20'+_0x2b7f35),{'ok':!![],'status':0x0};return failure(_0xf50411(0x1b8),0x0,_0x2b7f35);}if(_0x336ed5){if(_0x336ed5[_0xf50411(0x1c7)]==='absent')return failure(_0xf50411(0x1b0),0x0,_0xf50411(0x1c1)+_0x3cddad+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x336ed5[_0xf50411(0x1bb)][_0xf50411(0x19b)](',\x20')+')');_0x336ed5['state']==='unverifiable'&&console[_0xf50411(0x1b3)]('!\x20Could\x20not\x20verify\x20\x22'+_0x3cddad+_0xf50411(0x1a0)+_0x336ed5[_0xf50411(0x1b1)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x1c9895,_0x2a9a11){const _0x3b5cbc=a265_0x50a6c2;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4c63d0=_0x2a9a11?.['stdio']??'inherit',_0x3a51e6=resolveNpmBin('npx'),_0xbc8012=buildNpxSkillsAddArgv(_0x2a9a11?.[_0x3b5cbc(0x1bf)]),_0x2245bb=[_0x3b5cbc(0x1a4),..._0xbc8012][_0x3b5cbc(0x19b)]('\x20');console['log']('*\x20'+_0x2245bb);const _0x457709=spawnSync(_0x3a51e6,_0xbc8012,spawnOptions(_0x1c9895,_0x4c63d0));return normalizeSpawnResult(_0x457709,undefined,undefined,_0x4c63d0);}export function runNpxSkillsRemove(_0x868f7f,_0x12b033,_0x5b456b=LEGACY_RABETBASE_SKILL_SOURCE){const _0x82a14f=a265_0x50a6c2;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x22692e=_0x12b033?.[_0x82a14f(0x199)]??'inherit',_0x272c4f=resolveNpmBin(_0x82a14f(0x1a4)),_0x555b2f=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x82a14f(0x198),_0x5b456b,NPX_SKILLS_FLAG_SKILL,_0x12b033?.[_0x82a14f(0x1bf)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x12b033?.[_0x82a14f(0x194)]?['-y']:[]],_0x4e250a=[_0x272c4f,..._0x555b2f]['join']('\x20');console[_0x82a14f(0x1b5)]('*\x20'+_0x4e250a);const _0x1153ee=spawnSync(_0x272c4f,_0x555b2f,spawnOptions(_0x868f7f,_0x22692e));return normalizeSpawnResult(_0x1153ee,undefined,undefined,_0x22692e);}export function runNpxSkillsAddGlobal(_0x1c3435,_0x417179,_0x9f4020){const _0x2d9239=a265_0x50a6c2;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x50d45a=resolveNpmBin(_0x2d9239(0x1a4)),_0x406d8a=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x417179,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x3eda45=[_0x2d9239(0x1a4),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x417179,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x2d9239(0x1b5)]('*\x20'+_0x3eda45);const _0x2b6f11=spawnSync(_0x50d45a,_0x406d8a,spawnOptions(_0x1c3435,_0x2d9239(0x197)));return normalizeSpawnResult(_0x2b6f11,_0x9f4020?.[_0x2d9239(0x1a6)]??resolveGlobalSkillName(_0x417179),_0x9f4020?.[_0x2d9239(0x1aa)],_0x9f4020?.[_0x2d9239(0x199)]);}
@@ -1 +1 @@
1
- const a266_0x25042c=a266_0x908e;(function(_0x197d0d,_0x1f6dd2){const _0x39fb2e=a266_0x908e,_0x467e7f=_0x197d0d();while(!![]){try{const _0x673f62=parseInt(_0x39fb2e(0x16f))/0x1*(parseInt(_0x39fb2e(0x164))/0x2)+-parseInt(_0x39fb2e(0x16b))/0x3*(-parseInt(_0x39fb2e(0x16a))/0x4)+parseInt(_0x39fb2e(0x17a))/0x5*(parseInt(_0x39fb2e(0x16c))/0x6)+-parseInt(_0x39fb2e(0x17f))/0x7+parseInt(_0x39fb2e(0x167))/0x8+parseInt(_0x39fb2e(0x17c))/0x9+-parseInt(_0x39fb2e(0x17d))/0xa;if(_0x673f62===_0x1f6dd2)break;else _0x467e7f['push'](_0x467e7f['shift']());}catch(_0x23a0a2){_0x467e7f['push'](_0x467e7f['shift']());}}}(a266_0x9e93,0x2ad94));function a266_0x908e(_0x2d03e2,_0x140809){_0x2d03e2=_0x2d03e2-0x15b;const _0x9e935=a266_0x9e93();let _0x908e40=_0x9e935[_0x2d03e2];return _0x908e40;}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a266_0x25042c(0x171),a266_0x25042c(0x162));function a266_0x9e93(){const _0x1b3efb=['4ABrRwl','254889JISFkQ','30EkDfuO','number','kind','3727yTQxzY','includes','.agents','\x20records\x20\x22','SKILL.md','join','version','\x20uses\x20unsupported\x20version\x20','absent','\x20has\x20no\x20skills\x20map','parse','242705ALZfkr','globalSkillsDirs','1098270sRbwQs','5177640UlxMQh','lockFile','243488JhhTrq','unusable','recorded','object','unverifiable','\x20is\x20unreadable:\x20','.claude','reason','skills','.skill-lock.json','present','52ViyzHl','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','home','1451648Sabbst','message','map'];a266_0x9e93=function(){return _0x1b3efb;};return a266_0x9e93();}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a266_0x25042c(0x171),a266_0x25042c(0x161)),join(a266_0x25042c(0x15f),a266_0x25042c(0x161))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x52d9da,_0x27d840){const _0x3a338f=a266_0x25042c;if(!existsSync(_0x52d9da))return{'kind':'not-recorded'};let _0x483b44;try{_0x483b44=JSON[_0x3a338f(0x179)](readFileSync(_0x52d9da,'utf8'));}catch(_0x38a5aa){return{'kind':_0x3a338f(0x180),'reason':_0x52d9da+_0x3a338f(0x15e)+_0x38a5aa[_0x3a338f(0x168)]};}const _0x354598=_0x483b44;if(typeof _0x354598?.[_0x3a338f(0x175)]!==_0x3a338f(0x16d)||!SUPPORTED_LOCK_VERSIONS[_0x3a338f(0x170)](_0x354598['version']))return{'kind':'unusable','reason':_0x52d9da+_0x3a338f(0x176)+String(_0x354598?.[_0x3a338f(0x175)])};if(!_0x354598[_0x3a338f(0x161)]||typeof _0x354598[_0x3a338f(0x161)]!==_0x3a338f(0x15c))return{'kind':_0x3a338f(0x180),'reason':_0x52d9da+_0x3a338f(0x178)};return _0x354598[_0x3a338f(0x161)][_0x27d840]?{'kind':_0x3a338f(0x15b)}:{'kind':'not-recorded'};}export function resolveInstalledSkill(_0x453a63,_0x2ab39){const _0x198f33=a266_0x25042c,_0x2180c1=_0x2ab39?.[_0x198f33(0x166)]??homedir(),_0x3f7b2b=_0x2ab39?.[_0x198f33(0x17b)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x5b6be8=>join(_0x2180c1,_0x5b6be8)),_0x555301=_0x2ab39?.[_0x198f33(0x17e)]??join(_0x2180c1,SKILL_LOCK_RELATIVE_PATH),_0x4ca34f=_0x3f7b2b[_0x198f33(0x169)](_0x4ba658=>join(_0x4ba658,_0x453a63,_0x198f33(0x173))),_0x5a3320=_0x4ca34f['find'](_0x363983=>existsSync(_0x363983));if(_0x5a3320)return{'state':_0x198f33(0x163),'path':_0x5a3320};const _0x4f3bee=readLockLookup(_0x555301,_0x453a63);if(_0x4f3bee[_0x198f33(0x16e)]===_0x198f33(0x180))return{'state':_0x198f33(0x15d),'reason':_0x4f3bee[_0x198f33(0x160)]};if(_0x4f3bee[_0x198f33(0x16e)]===_0x198f33(0x15b))return{'state':_0x198f33(0x15d),'reason':_0x555301+_0x198f33(0x172)+_0x453a63+_0x198f33(0x165)+('('+_0x4ca34f[_0x198f33(0x174)](',\x20')+')')};return{'state':_0x198f33(0x177),'checked':_0x4ca34f};}
1
+ const a266_0x2adddf=a266_0x492e;(function(_0x22d02d,_0x359ff1){const _0x1f71d6=a266_0x492e,_0x199b2f=_0x22d02d();while(!![]){try{const _0x39a6ce=-parseInt(_0x1f71d6(0xcf))/0x1*(parseInt(_0x1f71d6(0xad))/0x2)+-parseInt(_0x1f71d6(0xcd))/0x3+-parseInt(_0x1f71d6(0xc6))/0x4*(-parseInt(_0x1f71d6(0xbb))/0x5)+parseInt(_0x1f71d6(0xba))/0x6*(-parseInt(_0x1f71d6(0xab))/0x7)+parseInt(_0x1f71d6(0xc8))/0x8+parseInt(_0x1f71d6(0xc7))/0x9*(-parseInt(_0x1f71d6(0xc0))/0xa)+parseInt(_0x1f71d6(0xc5))/0xb;if(_0x39a6ce===_0x359ff1)break;else _0x199b2f['push'](_0x199b2f['shift']());}catch(_0x5ddb10){_0x199b2f['push'](_0x199b2f['shift']());}}}(a266_0x2b7f,0xc6bfb));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';function a266_0x2b7f(){const _0x1de7ec=['includes','unusable','recorded','6cNKgWl','501595VIOYse','globalSkillsDirs','message','present','join','2121680aLfyGS','kind','lockFile','.agents','object','38175896gXXSyU','8aPQxjZ','18UWeblY','1531504tWniYe','map','reason','version','utf8','1792149uGDYnv','absent','184693cjUldt','skills','7723471YdISmp','.claude','10PzBAsK','\x20uses\x20unsupported\x20version\x20','unverifiable','not-recorded','\x20records\x20\x22','number','SKILL.md','.skill-lock.json','find','home'];a266_0x2b7f=function(){return _0x1de7ec;};return a266_0x2b7f();}export const SKILL_LOCK_RELATIVE_PATH=join(a266_0x2adddf(0xc3),a266_0x2adddf(0xb4));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a266_0x2adddf(0xc3),a266_0x2adddf(0xd0)),join(a266_0x2adddf(0xac),a266_0x2adddf(0xd0))];function a266_0x492e(_0x255037,_0x2cd8ae){_0x255037=_0x255037-0xab;const _0x2b7fd4=a266_0x2b7f();let _0x492ea5=_0x2b7fd4[_0x255037];return _0x492ea5;}const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0xc5a1ad,_0x390c39){const _0x33c073=a266_0x2adddf;if(!existsSync(_0xc5a1ad))return{'kind':_0x33c073(0xb0)};let _0x18240b;try{_0x18240b=JSON['parse'](readFileSync(_0xc5a1ad,_0x33c073(0xcc)));}catch(_0x2155f3){return{'kind':_0x33c073(0xb8),'reason':_0xc5a1ad+'\x20is\x20unreadable:\x20'+_0x2155f3[_0x33c073(0xbd)]};}const _0x26d907=_0x18240b;if(typeof _0x26d907?.[_0x33c073(0xcb)]!==_0x33c073(0xb2)||!SUPPORTED_LOCK_VERSIONS[_0x33c073(0xb7)](_0x26d907[_0x33c073(0xcb)]))return{'kind':_0x33c073(0xb8),'reason':_0xc5a1ad+_0x33c073(0xae)+String(_0x26d907?.[_0x33c073(0xcb)])};if(!_0x26d907[_0x33c073(0xd0)]||typeof _0x26d907['skills']!==_0x33c073(0xc4))return{'kind':_0x33c073(0xb8),'reason':_0xc5a1ad+'\x20has\x20no\x20skills\x20map'};return _0x26d907['skills'][_0x390c39]?{'kind':_0x33c073(0xb9)}:{'kind':_0x33c073(0xb0)};}export function resolveInstalledSkill(_0x540c97,_0x314544){const _0x587075=a266_0x2adddf,_0x35ee71=_0x314544?.[_0x587075(0xb6)]??homedir(),_0x5435f6=_0x314544?.[_0x587075(0xbc)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x587075(0xc9)](_0x452a1b=>join(_0x35ee71,_0x452a1b)),_0x138748=_0x314544?.[_0x587075(0xc2)]??join(_0x35ee71,SKILL_LOCK_RELATIVE_PATH),_0xc198e1=_0x5435f6[_0x587075(0xc9)](_0x31d579=>join(_0x31d579,_0x540c97,_0x587075(0xb3))),_0x205bd6=_0xc198e1[_0x587075(0xb5)](_0x294dc1=>existsSync(_0x294dc1));if(_0x205bd6)return{'state':_0x587075(0xbe),'path':_0x205bd6};const _0x5edb08=readLockLookup(_0x138748,_0x540c97);if(_0x5edb08[_0x587075(0xc1)]==='unusable')return{'state':'unverifiable','reason':_0x5edb08[_0x587075(0xca)]};if(_0x5edb08[_0x587075(0xc1)]===_0x587075(0xb9))return{'state':_0x587075(0xaf),'reason':_0x138748+_0x587075(0xb1)+_0x540c97+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0xc198e1[_0x587075(0xbf)](',\x20')+')')};return{'state':_0x587075(0xce),'checked':_0xc198e1};}
@@ -1 +1 @@
1
- (function(_0x590895,_0x25c861){const _0x35a620=a267_0x64ba,_0x9f59ad=_0x590895();while(!![]){try{const _0x41a49a=parseInt(_0x35a620(0x1bc))/0x1+-parseInt(_0x35a620(0x1c4))/0x2+-parseInt(_0x35a620(0x1bd))/0x3+-parseInt(_0x35a620(0x1b8))/0x4+-parseInt(_0x35a620(0x1bf))/0x5+-parseInt(_0x35a620(0x1b7))/0x6+-parseInt(_0x35a620(0x1c5))/0x7*(-parseInt(_0x35a620(0x1b5))/0x8);if(_0x41a49a===_0x25c861)break;else _0x9f59ad['push'](_0x9f59ad['shift']());}catch(_0x1b196c){_0x9f59ad['push'](_0x9f59ad['shift']());}}}(a267_0x5d71,0x4d8f0));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a267_0x5d71(){const _0x4b12f9=['durationMs','61206ZWoHsj','565089KFWNgx','some','1234305aILdmG','message','[REDACTED]','service','error','800174YKGRNS','497REJXHw','232072cDWPCn','test','3759474yzzMmd','1365100sDZvzg','stringify','rabetbase.command'];a267_0x5d71=function(){return _0x4b12f9;};return a267_0x5d71();}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x23a53a){const _0x39ecc7=a267_0x64ba;return SENSITIVE_PATTERNS[_0x39ecc7(0x1be)](_0x47a7a3=>_0x47a7a3[_0x39ecc7(0x1b6)](_0x23a53a));}function sanitizeFlags(_0x4efcea){const _0x3b3905=a267_0x64ba,_0x218c58={};for(const [_0x2b360d,_0x157b80]of Object['entries'](_0x4efcea)){isSensitiveKey(_0x2b360d)?_0x218c58[_0x2b360d]=_0x157b80!=null&&_0x157b80!==''?_0x3b3905(0x1c1):_0x157b80:_0x218c58[_0x2b360d]=_0x157b80;}return _0x218c58;}function a267_0x64ba(_0x3ad0b1,_0x52f98c){_0x3ad0b1=_0x3ad0b1-0x1b5;const _0x5d7128=a267_0x5d71();let _0x64bade=_0x5d7128[_0x3ad0b1];return _0x64bade;}export async function reportCommandTrace(_0x139bef){const _0x3e71c6=a267_0x64ba;try{const _0x38a4ef=sanitizeFlags(_0x139bef['flags']);await sendCliTraceLog({'spanName':_0x3e71c6(0x1ba),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x139bef[_0x3e71c6(0x1c2)],'command.name':_0x139bef['command'],'command.flags':JSON[_0x3e71c6(0x1b9)](_0x38a4ef),..._0x139bef[_0x3e71c6(0x1bb)]!=null?{'command.duration_ms':_0x139bef[_0x3e71c6(0x1bb)]}:{},..._0x139bef['error']?{'command.error':_0x139bef['error']instanceof Error?_0x139bef['error'][_0x3e71c6(0x1c0)]:String(_0x139bef[_0x3e71c6(0x1c3)])}:{}}});}catch{}}
1
+ (function(_0x582030,_0x30be50){const _0x58c4ea=a267_0x3b15,_0xbf5504=_0x582030();while(!![]){try{const _0x481adc=parseInt(_0x58c4ea(0xf3))/0x1+-parseInt(_0x58c4ea(0xf6))/0x2*(parseInt(_0x58c4ea(0xf8))/0x3)+-parseInt(_0x58c4ea(0xf1))/0x4+parseInt(_0x58c4ea(0xf0))/0x5+-parseInt(_0x58c4ea(0xeb))/0x6+parseInt(_0x58c4ea(0xee))/0x7+parseInt(_0x58c4ea(0xea))/0x8;if(_0x481adc===_0x30be50)break;else _0xbf5504['push'](_0xbf5504['shift']());}catch(_0x312c25){_0xbf5504['push'](_0xbf5504['shift']());}}}(a267_0x3733,0x63be1));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 a267_0x3b15(_0x1e6823,_0x4e09aa){_0x1e6823=_0x1e6823-0xe8;const _0x37336b=a267_0x3733();let _0x3b1588=_0x37336b[_0x1e6823];return _0x3b1588;}function a267_0x3733(){const _0x1a96f5=['message','error','5257944QDClzF','2775936XmWNvb','test','[REDACTED]','2804207VxPvsR','some','67380cPqsHL','975720gWDbSn','service','81954gdJWWs','durationMs','entries','2LIxjLI','stringify','114429EBYoFA'];a267_0x3733=function(){return _0x1a96f5;};return a267_0x3733();}function isSensitiveKey(_0xd3d49c){const _0x574655=a267_0x3b15;return SENSITIVE_PATTERNS[_0x574655(0xef)](_0x2e8905=>_0x2e8905[_0x574655(0xec)](_0xd3d49c));}function sanitizeFlags(_0x43c41a){const _0x322d15=a267_0x3b15,_0x3c649e={};for(const [_0x34b1f5,_0x4aff]of Object[_0x322d15(0xf5)](_0x43c41a)){isSensitiveKey(_0x34b1f5)?_0x3c649e[_0x34b1f5]=_0x4aff!=null&&_0x4aff!==''?_0x322d15(0xed):_0x4aff:_0x3c649e[_0x34b1f5]=_0x4aff;}return _0x3c649e;}export async function reportCommandTrace(_0x1148d6){const _0x4aa244=a267_0x3b15;try{const _0x1c3b8e=sanitizeFlags(_0x1148d6['flags']);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x1148d6[_0x4aa244(0xf2)],'command.name':_0x1148d6['command'],'command.flags':JSON[_0x4aa244(0xf7)](_0x1c3b8e),..._0x1148d6['durationMs']!=null?{'command.duration_ms':_0x1148d6[_0x4aa244(0xf4)]}:{},..._0x1148d6[_0x4aa244(0xe9)]?{'command.error':_0x1148d6[_0x4aa244(0xe9)]instanceof Error?_0x1148d6['error'][_0x4aa244(0xe8)]:String(_0x1148d6['error'])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a268_0x6670(){var _0xfeff14=['error','3rNEwKp','5890vsCUMb','service','cli.help','4018743dgEKwm','16522sDAiNU','15787QccDNA','8jjlPrH','3121916FMNjvN','1258621FuDWOe','Failed\x20to\x20report\x20CLI\x20help\x20trace:','366780LCJKcz','30aKoVVL','66oJWZYy','17796000XuNgqL'];a268_0x6670=function(){return _0xfeff14;};return a268_0x6670();}(function(_0x31848c,_0x18d897){var _0x21dc52=a268_0x4c9c,_0x32d9fc=_0x31848c();while(!![]){try{var _0x4bf1e6=-parseInt(_0x21dc52(0x1a6))/0x1*(-parseInt(_0x21dc52(0x19d))/0x2)+-parseInt(_0x21dc52(0x1a0))/0x3*(-parseInt(_0x21dc52(0x1a8))/0x4)+-parseInt(_0x21dc52(0x1ab))/0x5+parseInt(_0x21dc52(0x19c))/0x6*(-parseInt(_0x21dc52(0x1a9))/0x7)+-parseInt(_0x21dc52(0x1a7))/0x8*(parseInt(_0x21dc52(0x1a4))/0x9)+-parseInt(_0x21dc52(0x1a1))/0xa*(parseInt(_0x21dc52(0x1a5))/0xb)+parseInt(_0x21dc52(0x19e))/0xc;if(_0x4bf1e6===_0x18d897)break;else _0x32d9fc['push'](_0x32d9fc['shift']());}catch(_0x1ce933){_0x32d9fc['push'](_0x32d9fc['shift']());}}}(a268_0x6670,0x7566a));function a268_0x4c9c(_0x562ea2,_0x5a75c2){_0x562ea2=_0x562ea2-0x19c;var _0x667038=a268_0x6670();var _0x4c9cc1=_0x667038[_0x562ea2];return _0x4c9cc1;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x45ab2d,_0x4196a3){var _0x232024=a268_0x4c9c;try{await sendCliTraceLog({'spanName':_0x232024(0x1a3),'logData':{'rabetbase.help.kind':_0x45ab2d,..._0x4196a3?.['service']&&{'rabetbase.help.service':_0x4196a3[_0x232024(0x1a2)]}}});}catch(_0x5108b6){console[_0x232024(0x19f)](_0x232024(0x1aa),_0x5108b6);}}
1
+ (function(_0x5cc8f8,_0x13f364){var _0x4cdee5=a268_0x2307,_0x527ef7=_0x5cc8f8();while(!![]){try{var _0x46404f=-parseInt(_0x4cdee5(0x156))/0x1+parseInt(_0x4cdee5(0x15d))/0x2*(-parseInt(_0x4cdee5(0x15b))/0x3)+parseInt(_0x4cdee5(0x162))/0x4+parseInt(_0x4cdee5(0x155))/0x5*(parseInt(_0x4cdee5(0x15a))/0x6)+parseInt(_0x4cdee5(0x157))/0x7+-parseInt(_0x4cdee5(0x161))/0x8*(parseInt(_0x4cdee5(0x15f))/0x9)+-parseInt(_0x4cdee5(0x15e))/0xa*(-parseInt(_0x4cdee5(0x160))/0xb);if(_0x46404f===_0x13f364)break;else _0x527ef7['push'](_0x527ef7['shift']());}catch(_0x32c238){_0x527ef7['push'](_0x527ef7['shift']());}}}(a268_0x78b5,0x2be4b));function a268_0x2307(_0x18328a,_0x54d6bd){_0x18328a=_0x18328a-0x155;var _0x78b59b=a268_0x78b5();var _0x230760=_0x78b59b[_0x18328a];return _0x230760;}function a268_0x78b5(){var _0x54f21a=['Failed\x20to\x20report\x20CLI\x20help\x20trace:','20AZJjmB','320351pjNxgE','627697cQAxOK','service','cli.help','295146vOwGnb','6GxAkmm','error','16130JSiVuS','1416060ZSuPqx','1206CRAEYD','11FrXNUb','3064MSXGfY','558196aRtAma'];a268_0x78b5=function(){return _0x54f21a;};return a268_0x78b5();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x4a7fe4,_0x12c263){var _0x4e9cc2=a268_0x2307;try{await sendCliTraceLog({'spanName':_0x4e9cc2(0x159),'logData':{'rabetbase.help.kind':_0x4a7fe4,..._0x12c263?.[_0x4e9cc2(0x158)]&&{'rabetbase.help.service':_0x12c263['service']}}});}catch(_0x303938){console[_0x4e9cc2(0x15c)](_0x4e9cc2(0x163),_0x303938);}}
@@ -1 +1 @@
1
- function a269_0xb5f0(){const _0x17b494=['8gOxjRH','tenant_code','production','username','tenant','11085705YpFHDV','12SgBRFM','4546892NwhnVj','email','unknown','nickname','1947890uGNEhO','3867516zcVgPM','daily','34803QoljJt','388470HdEMMV','256980vndvEg'];a269_0xb5f0=function(){return _0x17b494;};return a269_0xb5f0();}(function(_0x309697,_0x340810){const _0x4302fb=a269_0x20eb,_0x33481a=_0x309697();while(!![]){try{const _0x2d7baf=-parseInt(_0x4302fb(0x150))/0x1+-parseInt(_0x4302fb(0x151))/0x2+-parseInt(_0x4302fb(0x14f))/0x3*(-parseInt(_0x4302fb(0x158))/0x4)+-parseInt(_0x4302fb(0x15d))/0x5+-parseInt(_0x4302fb(0x15e))/0x6+parseInt(_0x4302fb(0x159))/0x7*(parseInt(_0x4302fb(0x152))/0x8)+parseInt(_0x4302fb(0x157))/0x9;if(_0x2d7baf===_0x340810)break;else _0x33481a['push'](_0x33481a['shift']());}catch(_0x480a56){_0x33481a['push'](_0x33481a['shift']());}}}(a269_0xb5f0,0x591b4));function a269_0x20eb(_0x9779ff,_0x215fe4){_0x9779ff=_0x9779ff-0x14f;const _0xb5f0ad=a269_0xb5f0();let _0x20eb23=_0xb5f0ad[_0x9779ff];return _0x20eb23;}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 _0x456122=a269_0x20eb,_0x238b30=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x2c994c=_0x238b30?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x456122(0x15b)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x456122(0x15f):_0x456122(0x154))}),setUserContext({'id':_0x2c994c?.['id'],'username':_0x2c994c?.[_0x456122(0x155)],'nickname':_0x2c994c?.[_0x456122(0x15c)],'email':_0x2c994c?.[_0x456122(0x15a)],'tenantCode':_0x2c994c?.[_0x456122(0x156)]?.[_0x456122(0x153)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x238b30;}
1
+ function a269_0xfe84(){const _0x432881=['7855MRwPEo','email','2363488YdiPrd','production','1005564kWzbGS','459114zdsSOE','tenant','1540494WCAkZf','username','1IGAfDm','256413DcJOHm','unknown','user','daily','76fSfxOR','nickname','10CQWGpg','1947249uZsawD'];a269_0xfe84=function(){return _0x432881;};return a269_0xfe84();}(function(_0x2e4335,_0x211099){const _0x46e9da=a269_0x5557,_0x3d536=_0x2e4335();while(!![]){try{const _0x5309d1=parseInt(_0x46e9da(0x1f5))/0x1*(parseInt(_0x46e9da(0x1f1))/0x2)+-parseInt(_0x46e9da(0x1f6))/0x3+-parseInt(_0x46e9da(0x1fa))/0x4*(parseInt(_0x46e9da(0x1ec))/0x5)+parseInt(_0x46e9da(0x1f3))/0x6+-parseInt(_0x46e9da(0x1f0))/0x7+-parseInt(_0x46e9da(0x1ee))/0x8+-parseInt(_0x46e9da(0x1fd))/0x9*(-parseInt(_0x46e9da(0x1fc))/0xa);if(_0x5309d1===_0x211099)break;else _0x3d536['push'](_0x3d536['shift']());}catch(_0x1375bb){_0x3d536['push'](_0x3d536['shift']());}}}(a269_0xfe84,0x24323));function a269_0x5557(_0x297a77,_0x3d291f){_0x297a77=_0x297a77-0x1ec;const _0xfe8467=a269_0xfe84();let _0x55570a=_0xfe8467[_0x297a77];return _0x55570a;}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 _0x314ecc=a269_0x5557,_0x13618b=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x17cb57=_0x13618b?.[_0x314ecc(0x1f8)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x314ecc(0x1f7)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x314ecc(0x1f9):_0x314ecc(0x1ef))}),setUserContext({'id':_0x17cb57?.['id'],'username':_0x17cb57?.[_0x314ecc(0x1f4)],'nickname':_0x17cb57?.[_0x314ecc(0x1fb)],'email':_0x17cb57?.[_0x314ecc(0x1ed)],'tenantCode':_0x17cb57?.[_0x314ecc(0x1f2)]?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x13618b;}
@@ -1 +1 @@
1
- (function(_0x1f024d,_0x4b7934){const _0x471e96=a270_0x2581,_0x322b1c=_0x1f024d();while(!![]){try{const _0x1a7ca3=-parseInt(_0x471e96(0x1cc))/0x1+-parseInt(_0x471e96(0x1d0))/0x2+-parseInt(_0x471e96(0x1ce))/0x3*(parseInt(_0x471e96(0x1ca))/0x4)+parseInt(_0x471e96(0x1cd))/0x5+parseInt(_0x471e96(0x1d2))/0x6*(parseInt(_0x471e96(0x1cb))/0x7)+parseInt(_0x471e96(0x1c7))/0x8+parseInt(_0x471e96(0x1c8))/0x9;if(_0x1a7ca3===_0x4b7934)break;else _0x322b1c['push'](_0x322b1c['shift']());}catch(_0x59e4ee){_0x322b1c['push'](_0x322b1c['shift']());}}}(a270_0x2ad3,0x33a77));function a270_0x2ad3(){const _0x141203=['713447qJODRs','283784otsBhe','2006165XaymlS','7203YSKqHP','then','270104BtgpUN','once','6cRdhCU','exit','SIGINT','SIGTERM','1457408oGpOtX','499743vqtBuB','beforeExit','184RQUfMv'];a270_0x2ad3=function(){return _0x141203;};return a270_0x2ad3();}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 _0x4446c7=a270_0x2581;process[_0x4446c7(0x1d1)](_0x4446c7(0x1c9),()=>{void flushOtelNodeIfUsed();});const _0x2e96c0=()=>{const _0x35b637=_0x4446c7;void flushOtelNodeIfUsed()[_0x35b637(0x1cf)](()=>process['exit'](0x0));};process[_0x4446c7(0x1d1)](_0x4446c7(0x1c5),_0x2e96c0),process[_0x4446c7(0x1d1)](_0x4446c7(0x1c6),_0x2e96c0);}function a270_0x2581(_0x4648b4,_0x257ec3){_0x4648b4=_0x4648b4-0x1c4;const _0x2ad38d=a270_0x2ad3();let _0x2581e8=_0x2ad38d[_0x4648b4];return _0x2581e8;}export async function exitWithOtelShutdown(_0x51547b){const _0x125559=a270_0x2581;await flushOtelNodeIfUsed(),process[_0x125559(0x1c4)](_0x51547b);}
1
+ (function(_0x448309,_0x681e25){const _0x1c1e8d=a270_0x3837,_0x39cc9a=_0x448309();while(!![]){try{const _0xe0a55d=-parseInt(_0x1c1e8d(0x89))/0x1+parseInt(_0x1c1e8d(0x88))/0x2+parseInt(_0x1c1e8d(0x87))/0x3*(-parseInt(_0x1c1e8d(0x83))/0x4)+parseInt(_0x1c1e8d(0x86))/0x5*(-parseInt(_0x1c1e8d(0x84))/0x6)+-parseInt(_0x1c1e8d(0x7f))/0x7*(parseInt(_0x1c1e8d(0x7e))/0x8)+-parseInt(_0x1c1e8d(0x80))/0x9*(parseInt(_0x1c1e8d(0x82))/0xa)+parseInt(_0x1c1e8d(0x7b))/0xb;if(_0xe0a55d===_0x681e25)break;else _0x39cc9a['push'](_0x39cc9a['shift']());}catch(_0x1ae4dc){_0x39cc9a['push'](_0x39cc9a['shift']());}}}(a270_0x3dca,0x700ed));function a270_0x3837(_0x1baad0,_0x2dfa45){_0x1baad0=_0x1baad0-0x7a;const _0x3dcae7=a270_0x3dca();let _0x3837e6=_0x3dcae7[_0x1baad0];return _0x3837e6;}function a270_0x3dca(){const _0x355f53=['2983379yLUeKE','9lOtHfJ','then','1176460cQTwDg','24yWAsbx','297798DFvoRE','SIGINT','65cLiGHe','90510DHQyKx','155748fgzEIc','261228iOfnYO','beforeExit','once','26824952cIijni','exit','SIGTERM','16nhBcvM'];a270_0x3dca=function(){return _0x355f53;};return a270_0x3dca();}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 _0x249877=a270_0x3837;process[_0x249877(0x7a)](_0x249877(0x8a),()=>{void flushOtelNodeIfUsed();});const _0x5bffbf=()=>{const _0x31c82c=_0x249877;void flushOtelNodeIfUsed()[_0x31c82c(0x81)](()=>process[_0x31c82c(0x7c)](0x0));};process[_0x249877(0x7a)](_0x249877(0x85),_0x5bffbf),process[_0x249877(0x7a)](_0x249877(0x7d),_0x5bffbf);}export async function exitWithOtelShutdown(_0x79497d){const _0x489998=a270_0x3837;await flushOtelNodeIfUsed(),process[_0x489998(0x7c)](_0x79497d);}
@@ -1 +1 @@
1
- const a271_0x872484=a271_0x4a77;(function(_0x4156b2,_0x531247){const _0x2136f6=a271_0x4a77,_0x4c37dd=_0x4156b2();while(!![]){try{const _0x399cec=-parseInt(_0x2136f6(0xd3))/0x1+parseInt(_0x2136f6(0xe2))/0x2+-parseInt(_0x2136f6(0xda))/0x3+-parseInt(_0x2136f6(0xdd))/0x4+parseInt(_0x2136f6(0xd2))/0x5*(parseInt(_0x2136f6(0xdf))/0x6)+-parseInt(_0x2136f6(0xdc))/0x7*(parseInt(_0x2136f6(0xe0))/0x8)+parseInt(_0x2136f6(0xd9))/0x9*(parseInt(_0x2136f6(0xde))/0xa);if(_0x399cec===_0x531247)break;else _0x4c37dd['push'](_0x4c37dd['shift']());}catch(_0x32cd8e){_0x4c37dd['push'](_0x4c37dd['shift']());}}}(a271_0x434e,0xdfbc6));function a271_0x4a77(_0x3005d6,_0x461886){_0x3005d6=_0x3005d6-0xd2;const _0x434eb2=a271_0x434e();let _0x4a77a5=_0x434eb2[_0x3005d6];return _0x4a77a5;}function a271_0x434e(){const _0x1ebe1e=['3644760cURdwa','8532855RyldVU','600093AGyeGd','manual','spanName','version','traceName','rabetbase-cli','9ODTfIK','1949190abZQQX','traceparent','70NHFeSV','4894820zcjLnv','3263090cVbygL','6hegwvG','372248ZaiLei','logData'];a271_0x434e=function(){return _0x1ebe1e;};return a271_0x434e();}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=a271_0x872484(0xd8);export async function sendCliTraceLog(_0x6c4a2c){const _0x801f34=a271_0x872484;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x6c4a2c[_0x801f34(0xd7)]??DEFAULT_TRACE_NAME,'version':_0x6c4a2c[_0x801f34(0xd6)]??getCliVersion(),'spanName':_0x6c4a2c[_0x801f34(0xd5)],'eventType':_0x801f34(0xd4),'logData':_0x6c4a2c[_0x801f34(0xe1)],..._0x6c4a2c[_0x801f34(0xdb)]&&{'traceparent':_0x6c4a2c[_0x801f34(0xdb)]}});}
1
+ const a271_0x3a8715=a271_0x35d9;function a271_0x35d9(_0x2eb07b,_0x2f9830){_0x2eb07b=_0x2eb07b-0xa8;const _0x3e0d8d=a271_0x3e0d();let _0x35d9ea=_0x3e0d8d[_0x2eb07b];return _0x35d9ea;}(function(_0x23393c,_0x581be0){const _0xddce7d=a271_0x35d9,_0x3374ae=_0x23393c();while(!![]){try{const _0x442cf0=-parseInt(_0xddce7d(0xb9))/0x1*(-parseInt(_0xddce7d(0xaf))/0x2)+-parseInt(_0xddce7d(0xb7))/0x3*(-parseInt(_0xddce7d(0xab))/0x4)+-parseInt(_0xddce7d(0xa9))/0x5+parseInt(_0xddce7d(0xad))/0x6*(-parseInt(_0xddce7d(0xac))/0x7)+parseInt(_0xddce7d(0xb5))/0x8*(parseInt(_0xddce7d(0xb1))/0x9)+-parseInt(_0xddce7d(0xb0))/0xa*(-parseInt(_0xddce7d(0xb8))/0xb)+-parseInt(_0xddce7d(0xae))/0xc;if(_0x442cf0===_0x581be0)break;else _0x3374ae['push'](_0x3374ae['shift']());}catch(_0x1b7926){_0x3374ae['push'](_0x3374ae['shift']());}}}(a271_0x3e0d,0xb1f09));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=a271_0x3a8715(0xb2);export async function sendCliTraceLog(_0x37cd59){const _0xf1edc4=a271_0x3a8715;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x37cd59[_0xf1edc4(0xb4)]??DEFAULT_TRACE_NAME,'version':_0x37cd59[_0xf1edc4(0xb3)]??getCliVersion(),'spanName':_0x37cd59[_0xf1edc4(0xb6)],'eventType':'manual','logData':_0x37cd59[_0xf1edc4(0xa8)],..._0x37cd59['traceparent']&&{'traceparent':_0x37cd59[_0xf1edc4(0xaa)]}});}function a271_0x3e0d(){const _0xe4df65=['276CvZTvC','12857424jdHUCz','31814dYJpZV','1679610DEPpxH','9xzbREM','rabetbase-cli','version','traceName','10991408SsySiE','spanName','213yaaMHY','11yMQIUo','73OOofAP','logData','3032460wTfszB','traceparent','8732cNVZBL','68677MhYiiu'];a271_0x3e0d=function(){return _0xe4df65;};return a271_0x3e0d();}
@@ -1 +1 @@
1
- const a272_0x350824=a272_0x23db;(function(_0x28b6cc,_0x1558ff){const _0x159363=a272_0x23db,_0x346355=_0x28b6cc();while(!![]){try{const _0x5b5281=-parseInt(_0x159363(0x19f))/0x1+parseInt(_0x159363(0x1aa))/0x2*(parseInt(_0x159363(0x1a0))/0x3)+-parseInt(_0x159363(0x1a6))/0x4*(-parseInt(_0x159363(0x1a8))/0x5)+parseInt(_0x159363(0x1ae))/0x6*(-parseInt(_0x159363(0x19e))/0x7)+parseInt(_0x159363(0x1a3))/0x8*(-parseInt(_0x159363(0x19d))/0x9)+parseInt(_0x159363(0x1a2))/0xa+parseInt(_0x159363(0x1a4))/0xb;if(_0x5b5281===_0x1558ff)break;else _0x346355['push'](_0x346355['shift']());}catch(_0x1170d4){_0x346355['push'](_0x346355['shift']());}}}(a272_0x1e2d,0x69630));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a272_0x350824(0x1a9);function a272_0x23db(_0x20f06d,_0xaa2c1e){_0x20f06d=_0x20f06d-0x19d;const _0x1e2d27=a272_0x1e2d();let _0x23db5a=_0x1e2d27[_0x20f06d];return _0x23db5a;}export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';function a272_0x1e2d(){const _0x2a7ec9=['586430qwUMJO','14142OksFEL','sanitize','4973940uhdAcO','32HJZjSU','6617600yWqwxR','redactionCount','1379012SLyErT','truncated','5XkUlEA','platform-issue-log-collect','258aiIrPt','redactionKinds','join','originalBytes','4888482wBdIvX','492777QQEMyf','7EDSriT'];a272_0x1e2d=function(){return _0x2a7ec9;};return a272_0x1e2d();}export async function sendPlatformIssueCollectLog(_0x8e23b){const _0x16e923=a272_0x350824;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x8e23b['title'],'issue.description':_0x8e23b['description'],..._0x8e23b[_0x16e923(0x1a1)]?{'issue.description_original_bytes':_0x8e23b[_0x16e923(0x1a1)][_0x16e923(0x1ad)],'issue.description_truncated':_0x8e23b[_0x16e923(0x1a1)][_0x16e923(0x1a7)],'issue.description_redactions':_0x8e23b[_0x16e923(0x1a1)][_0x16e923(0x1a5)],'issue.description_redaction_kinds':_0x8e23b['sanitize'][_0x16e923(0x1ab)][_0x16e923(0x1ac)](',')}:{}}});}
1
+ const a272_0x4306bf=a272_0x12d2;function a272_0x3383(){const _0x321c36=['440080caIfup','originalBytes','1083036ikXBZL','9354jrVpVG','91oqZXFi','13402584lNJNjW','redactionCount','18aloHkY','1895965hKiUPK','title','truncated','768368NbeLWM','48ugMUGZ','platform-issue-log-collect','sanitize','43701750eRsDHp'];a272_0x3383=function(){return _0x321c36;};return a272_0x3383();}(function(_0x213a4c,_0x145d21){const _0x515565=a272_0x12d2,_0xf3637=_0x213a4c();while(!![]){try{const _0x26e2a9=parseInt(_0x515565(0x1da))/0x1+parseInt(_0x515565(0x1db))/0x2*(parseInt(_0x515565(0x1e4))/0x3)+parseInt(_0x515565(0x1d8))/0x4+parseInt(_0x515565(0x1e0))/0x5*(parseInt(_0x515565(0x1df))/0x6)+parseInt(_0x515565(0x1dc))/0x7*(parseInt(_0x515565(0x1e3))/0x8)+parseInt(_0x515565(0x1dd))/0x9+-parseInt(_0x515565(0x1d7))/0xa;if(_0x26e2a9===_0x145d21)break;else _0xf3637['push'](_0xf3637['shift']());}catch(_0x190177){_0xf3637['push'](_0xf3637['shift']());}}}(a272_0x3383,0xbcbca));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a272_0x12d2(_0xa63a2a,_0x1b9e9c){_0xa63a2a=_0xa63a2a-0x1d5;const _0x3383de=a272_0x3383();let _0x12d2fe=_0x3383de[_0xa63a2a];return _0x12d2fe;}export const PLATFORM_ISSUE_TRACE_NAME=a272_0x4306bf(0x1d5);export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x3d5f59){const _0x452ea1=a272_0x4306bf;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3d5f59[_0x452ea1(0x1e1)],'issue.description':_0x3d5f59['description'],..._0x3d5f59[_0x452ea1(0x1d6)]?{'issue.description_original_bytes':_0x3d5f59[_0x452ea1(0x1d6)][_0x452ea1(0x1d9)],'issue.description_truncated':_0x3d5f59['sanitize'][_0x452ea1(0x1e2)],'issue.description_redactions':_0x3d5f59['sanitize'][_0x452ea1(0x1de)],'issue.description_redaction_kinds':_0x3d5f59[_0x452ea1(0x1d6)]['redactionKinds']['join'](',')}:{}}});}
@@ -32,14 +32,42 @@ export interface FetchModelListResult {
32
32
  configArray: ModelListItem[];
33
33
  count: number;
34
34
  }
35
+ /**
36
+ * api.ts / client.ts 的 CLI 写入动作。
37
+ * `preserved` 表示文件已存在且本次未覆盖,Agent 必须按 data.models 合并。
38
+ */
39
+ export type ApiPullFileAction = "created" | "overwritten" | "preserved" | "refreshed";
40
+ export interface ApiPullFileStatus {
41
+ path: string;
42
+ action: ApiPullFileAction;
43
+ }
35
44
  /**
36
45
  * 生成 API 文件的结果
46
+ *
47
+ * `api.ts` / `client.ts` 仅在缺失(或显式 overwrite)时写入脚手架;
48
+ * `sdk-config.ts` 每次都会按当前路由刷新。
37
49
  */
38
50
  export interface GenerateApiFileResult {
51
+ appCode: string;
39
52
  modelCount: number;
53
+ models: RegisterModelConfig[];
40
54
  apiFilePath: string;
41
55
  clientFilePath: string;
56
+ sdkConfigPath: string;
57
+ /** 公开协议:默认应用为 `"default"`,具名应用为 profile 名或 appCode,不含 TS 引号 */
42
58
  configName: string;
59
+ isDefaultConfig: boolean;
60
+ sdkRouting: {
61
+ region?: "id";
62
+ runtimeDomain?: string;
63
+ };
64
+ files: {
65
+ api: ApiPullFileStatus;
66
+ client: ApiPullFileStatus;
67
+ sdkConfig: ApiPullFileStatus;
68
+ };
69
+ /** 任一 TypeScript 文件被保留时为 true,Agent 必须按 models 合并,不能当成脚手架已写完 */
70
+ needsAgentMerge: boolean;
43
71
  }
44
72
  /**
45
73
  * 获取文档的选项
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * AI IDE 配置 - 单一数据源
3
3
  *
4
- * 用于 skill install 和 create 时选择 IDE
4
+ * 用于 project upgrade 识别并清理旧版 IDE Skill 文件。
5
5
  */
6
6
  /**
7
7
  * 核心支持的 IDE 类型
@@ -23,7 +23,6 @@ export interface IDEConfig {
23
23
  export interface IDEDirectory {
24
24
  type: "file";
25
25
  path: string;
26
- template?: string;
27
26
  }
28
27
  /**
29
28
  * 核心 IDE 配置
@@ -1 +1 @@
1
- function a274_0x2e04(_0x42b42f,_0x5cca29){_0x42b42f=_0x42b42f-0x1d3;const _0x5bf92e=a274_0x5bf9();let _0x2e0467=_0x5bf92e[_0x42b42f];return _0x2e0467;}const a274_0x23da49=a274_0x2e04;function a274_0x5bf9(){const _0x392908=['7DyDkAZ','qoder','.cursor/skills/rabetbase.md','287823eqyguk','.codebuddy','Codex\x20IDE','claude','18frTQrE','Trae','.qoder/rules/rabetbase.md','Antigravity\x20IDE','Qoder','.cursor','.windsurf','.agent/skills/lovrabet/SKILL.md','通用模板\x20-\x20兜底方案','991090jJoUFr','Qoder\x20IDE','Codex','OpenCode\x20IDE','codex','Antigravity','cline','file','.windsurf/workflows/rabetbase.md','Claude\x20Code','702504QafGoJ','74wNtrQJ','.opencode','.codex','.agent','opencode','.opencode/skills/lovrabet/SKILL.md','23709BeVaTo','Windsurf','Cursor','trae','.cline/skills/lovrabet/SKILL.md','codebuddy','.claude','.qoder','1318840aGgARn','63312QdlOLN','Cursor\x20IDE','cursor','windsurf','antigravity','.trae','1579974UPhQvM','.claude/skills/lovrabet/SKILL.md','.cline','其他\x20(通用模板)','SKILL.md.tpl'];a274_0x5bf9=function(){return _0x392908;};return a274_0x5bf9();}(function(_0x1287fc,_0x1d6288){const _0x119128=a274_0x2e04,_0x421099=_0x1287fc();while(!![]){try{const _0x2dff16=parseInt(_0x119128(0x1fb))/0x1+-parseInt(_0x119128(0x1de))/0x2*(-parseInt(_0x119128(0x1e4))/0x3)+-parseInt(_0x119128(0x1dd))/0x4+-parseInt(_0x119128(0x1d3))/0x5+parseInt(_0x119128(0x1f3))/0x6+parseInt(_0x119128(0x1f8))/0x7*(-parseInt(_0x119128(0x1ed))/0x8)+parseInt(_0x119128(0x1ff))/0x9*(-parseInt(_0x119128(0x1ec))/0xa);if(_0x2dff16===_0x1d6288)break;else _0x421099['push'](_0x421099['shift']());}catch(_0x3cf052){_0x421099['push'](_0x421099['shift']());}}}(a274_0x5bf9,0x30595));export const CORE_IDE_CONFIGS={'cursor':{'name':a274_0x23da49(0x1e6),'description':a274_0x23da49(0x1ee),'folders':['.cursorrules',a274_0x23da49(0x204)],'files':[{'type':a274_0x23da49(0x1da),'path':a274_0x23da49(0x1fa),'template':a274_0x23da49(0x1f7)}]},'windsurf':{'name':a274_0x23da49(0x1e5),'description':'Windsurf\x20IDE','folders':[a274_0x23da49(0x205)],'files':[{'type':'file','path':a274_0x23da49(0x1db),'template':'SKILL.md.tpl'}]},'claude':{'name':a274_0x23da49(0x1dc),'description':a274_0x23da49(0x1dc),'folders':[a274_0x23da49(0x1ea)],'files':[{'type':a274_0x23da49(0x1da),'path':a274_0x23da49(0x1f4),'template':'SKILL.md.tpl'}]},'cline':{'name':'Cline','description':'Cline\x20IDE','folders':[a274_0x23da49(0x1f5)],'files':[{'type':'file','path':a274_0x23da49(0x1e8),'template':'SKILL.md.tpl'}]},'codex':{'name':a274_0x23da49(0x1d5),'description':a274_0x23da49(0x1fd),'folders':[a274_0x23da49(0x1e0)],'files':[{'type':a274_0x23da49(0x1da),'path':'.codex/skills/lovrabet/SKILL.md','template':a274_0x23da49(0x1f7)}]},'opencode':{'name':'OpenCode','description':a274_0x23da49(0x1d6),'folders':[a274_0x23da49(0x1df)],'files':[{'type':'file','path':a274_0x23da49(0x1e3),'template':a274_0x23da49(0x1f7)}]},'qoder':{'name':a274_0x23da49(0x203),'description':a274_0x23da49(0x1d4),'folders':[a274_0x23da49(0x1eb)],'files':[{'type':a274_0x23da49(0x1da),'path':a274_0x23da49(0x201),'template':'SKILL.md.tpl'},{'type':a274_0x23da49(0x1da),'path':'.qoder/skills/lovrabet/SKILL.md','template':a274_0x23da49(0x1f7)}]},'codebuddy':{'name':'CodeBuddy','description':'CodeBuddy\x20IDE','folders':[a274_0x23da49(0x1fc)],'files':[{'type':a274_0x23da49(0x1da),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'trae':{'name':a274_0x23da49(0x200),'description':'Trae\x20IDE','folders':[a274_0x23da49(0x1f2)],'files':[{'type':a274_0x23da49(0x1da),'path':'.trae/skills/lovrabet/SKILL.md','template':a274_0x23da49(0x1f7)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a274_0x23da49(0x1f6),'description':a274_0x23da49(0x207),'folders':[a274_0x23da49(0x1e1)],'files':[{'type':a274_0x23da49(0x1da),'path':a274_0x23da49(0x206),'template':a274_0x23da49(0x1f7)}]},'antigravity':{'name':a274_0x23da49(0x1d8),'description':a274_0x23da49(0x202),'folders':[a274_0x23da49(0x1e1)],'files':[{'type':a274_0x23da49(0x1da),'path':'.agent/skills/lovrabet/SKILL.md','template':a274_0x23da49(0x1f7)}]}};export const CORE_IDE_LIST=['claude',a274_0x23da49(0x1d9),a274_0x23da49(0x1e9),a274_0x23da49(0x1d7),a274_0x23da49(0x1ef),a274_0x23da49(0x1e2),'qoder','trae',a274_0x23da49(0x1f0)];export const IDE_LIST=[a274_0x23da49(0x1f1),'claude','cline',a274_0x23da49(0x1e9),a274_0x23da49(0x1d7),a274_0x23da49(0x1ef),'opencode',a274_0x23da49(0x1f9),a274_0x23da49(0x1e7),a274_0x23da49(0x1f0),'agent'];export const ALL_CORE_IDES=[a274_0x23da49(0x1ef),a274_0x23da49(0x1f0),a274_0x23da49(0x1fe),'cline','codex','opencode','qoder',a274_0x23da49(0x1e9),a274_0x23da49(0x1e7)];
1
+ const a274_0x5212e9=a274_0x1d2e;(function(_0x8ab48d,_0x452f13){const _0x2a5e5b=a274_0x1d2e,_0x89938e=_0x8ab48d();while(!![]){try{const _0x40a1a3=parseInt(_0x2a5e5b(0x203))/0x1+-parseInt(_0x2a5e5b(0x1f3))/0x2+-parseInt(_0x2a5e5b(0x1f1))/0x3*(-parseInt(_0x2a5e5b(0x1f2))/0x4)+-parseInt(_0x2a5e5b(0x1d3))/0x5*(-parseInt(_0x2a5e5b(0x1df))/0x6)+parseInt(_0x2a5e5b(0x1e6))/0x7+parseInt(_0x2a5e5b(0x1f8))/0x8*(parseInt(_0x2a5e5b(0x1e9))/0x9)+parseInt(_0x2a5e5b(0x1fe))/0xa*(-parseInt(_0x2a5e5b(0x1ec))/0xb);if(_0x40a1a3===_0x452f13)break;else _0x89938e['push'](_0x89938e['shift']());}catch(_0x56fec3){_0x89938e['push'](_0x89938e['shift']());}}}(a274_0x46bd,0x7c143));export const CORE_IDE_CONFIGS={'cursor':{'name':a274_0x5212e9(0x1d6),'description':a274_0x5212e9(0x1e1),'folders':['.cursorrules',a274_0x5212e9(0x1d5)],'files':[{'type':a274_0x5212e9(0x1f7),'path':a274_0x5212e9(0x1e5)}]},'windsurf':{'name':a274_0x5212e9(0x1f9),'description':a274_0x5212e9(0x1da),'folders':[a274_0x5212e9(0x1fd)],'files':[{'type':a274_0x5212e9(0x1f7),'path':a274_0x5212e9(0x200)}]},'claude':{'name':'Claude\x20Code','description':a274_0x5212e9(0x202),'folders':[a274_0x5212e9(0x1e7)],'files':[{'type':a274_0x5212e9(0x1f7),'path':a274_0x5212e9(0x1f5)}]},'cline':{'name':a274_0x5212e9(0x205),'description':'Cline\x20IDE','folders':[a274_0x5212e9(0x1e3)],'files':[{'type':'file','path':a274_0x5212e9(0x1e0)}]},'codex':{'name':a274_0x5212e9(0x1d1),'description':a274_0x5212e9(0x1d0),'folders':[a274_0x5212e9(0x1e8)],'files':[{'type':a274_0x5212e9(0x1f7),'path':'.codex/skills/lovrabet/SKILL.md'}]},'opencode':{'name':'OpenCode','description':a274_0x5212e9(0x1f6),'folders':[a274_0x5212e9(0x1d4)],'files':[{'type':a274_0x5212e9(0x1f7),'path':'.opencode/skills/lovrabet/SKILL.md'}]},'qoder':{'name':a274_0x5212e9(0x1ff),'description':a274_0x5212e9(0x1d7),'folders':['.qoder'],'files':[{'type':a274_0x5212e9(0x1f7),'path':'.qoder/rules/rabetbase.md'},{'type':a274_0x5212e9(0x1f7),'path':a274_0x5212e9(0x1d8)}]},'codebuddy':{'name':a274_0x5212e9(0x1dd),'description':a274_0x5212e9(0x1db),'folders':[a274_0x5212e9(0x1fb)],'files':[{'type':a274_0x5212e9(0x1f7),'path':a274_0x5212e9(0x201)}]},'trae':{'name':a274_0x5212e9(0x1f4),'description':a274_0x5212e9(0x1e4),'folders':[a274_0x5212e9(0x1ed)],'files':[{'type':a274_0x5212e9(0x1f7),'path':'.trae/skills/lovrabet/SKILL.md'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'Other\x20(generic\x20template)','description':a274_0x5212e9(0x1f0),'folders':[a274_0x5212e9(0x1dc)],'files':[{'type':'file','path':a274_0x5212e9(0x1d9)}]},'antigravity':{'name':a274_0x5212e9(0x1ea),'description':a274_0x5212e9(0x1d2),'folders':[a274_0x5212e9(0x1dc)],'files':[{'type':a274_0x5212e9(0x1f7),'path':a274_0x5212e9(0x1d9)}]}};function a274_0x46bd(){const _0x32f754=['.windsurf/workflows/rabetbase.md','.codebuddy/skills/lovrabet/SKILL.md','Claude\x20Code','191533CoYVKw','opencode','Cline','cursor','Codex\x20IDE','Codex','Antigravity\x20IDE','5ntGJkF','.opencode','.cursor','Cursor','Qoder\x20IDE','.qoder/skills/lovrabet/SKILL.md','.agent/skills/lovrabet/SKILL.md','Windsurf\x20IDE','CodeBuddy\x20IDE','.agent','CodeBuddy','agent','4931814MyxDxA','.cline/skills/lovrabet/SKILL.md','Cursor\x20IDE','windsurf','.cline','Trae\x20IDE','.cursor/skills/rabetbase.md','6719573eXLvtH','.claude','.codex','9wJjgLY','Antigravity','cline','8766395LeldOf','.trae','antigravity','codex','Generic\x20template\x20fallback','3GJHJNB','489116AMAKhP','347772bsMfxN','Trae','.claude/skills/lovrabet/SKILL.md','OpenCode\x20IDE','file','1442264tydnPy','Windsurf','trae','.codebuddy','claude','.windsurf','20WnOvdQ','Qoder'];a274_0x46bd=function(){return _0x32f754;};return a274_0x46bd();}export const CORE_IDE_LIST=[a274_0x5212e9(0x1fc),a274_0x5212e9(0x1eb),'codebuddy',a274_0x5212e9(0x1ef),a274_0x5212e9(0x1cf),'opencode','qoder','trae',a274_0x5212e9(0x1e2)];export const IDE_LIST=[a274_0x5212e9(0x1ee),a274_0x5212e9(0x1fc),a274_0x5212e9(0x1eb),'codebuddy','codex',a274_0x5212e9(0x1cf),a274_0x5212e9(0x204),'qoder',a274_0x5212e9(0x1fa),a274_0x5212e9(0x1e2),a274_0x5212e9(0x1de)];function a274_0x1d2e(_0x140073,_0x44c69f){_0x140073=_0x140073-0x1cf;const _0x46bdcd=a274_0x46bd();let _0x1d2e86=_0x46bdcd[_0x140073];return _0x1d2e86;}export const ALL_CORE_IDES=[a274_0x5212e9(0x1cf),'windsurf',a274_0x5212e9(0x1fc),a274_0x5212e9(0x1eb),a274_0x5212e9(0x1ef),a274_0x5212e9(0x204),'qoder','codebuddy',a274_0x5212e9(0x1fa)];
@@ -1 +1 @@
1
- (function(_0x579673,_0x5bf5fe){const _0x29da77=a275_0x41e6,_0x2c655b=_0x579673();while(!![]){try{const _0x4df308=parseInt(_0x29da77(0x99))/0x1+-parseInt(_0x29da77(0x9a))/0x2+-parseInt(_0x29da77(0x9b))/0x3+-parseInt(_0x29da77(0x9c))/0x4+parseInt(_0x29da77(0x9e))/0x5*(-parseInt(_0x29da77(0x9f))/0x6)+-parseInt(_0x29da77(0x98))/0x7+parseInt(_0x29da77(0x9d))/0x8;if(_0x4df308===_0x5bf5fe)break;else _0x2c655b['push'](_0x2c655b['shift']());}catch(_0x582e20){_0x2c655b['push'](_0x2c655b['shift']());}}}(a275_0x544e,0xa15c3));function a275_0x41e6(_0x50d760,_0x13b693){_0x50d760=_0x50d760-0x98;const _0x544ecf=a275_0x544e();let _0x41e634=_0x544ecf[_0x50d760];return _0x41e634;}function a275_0x544e(){const _0x2628c6=['34815136JQrvjA','5UXvffl','5646744AYnTib','7727391NSjCww','821111KehSLA','856252sefRzY','3182457CHlrOm','3912360PdJGOC'];a275_0x544e=function(){return _0x2628c6;};return a275_0x544e();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x4e87f,_0x586d05){const _0x1062b8=a275_0x3bd4,_0x5adbc3=_0x4e87f();while(!![]){try{const _0x32951f=-parseInt(_0x1062b8(0x122))/0x1*(parseInt(_0x1062b8(0x124))/0x2)+parseInt(_0x1062b8(0x127))/0x3*(parseInt(_0x1062b8(0x120))/0x4)+-parseInt(_0x1062b8(0x123))/0x5*(-parseInt(_0x1062b8(0x11e))/0x6)+-parseInt(_0x1062b8(0x121))/0x7+parseInt(_0x1062b8(0x126))/0x8+parseInt(_0x1062b8(0x125))/0x9*(parseInt(_0x1062b8(0x11f))/0xa)+-parseInt(_0x1062b8(0x11c))/0xb*(parseInt(_0x1062b8(0x11d))/0xc);if(_0x32951f===_0x586d05)break;else _0x5adbc3['push'](_0x5adbc3['shift']());}catch(_0x4840e8){_0x5adbc3['push'](_0x5adbc3['shift']());}}}(a275_0x2804,0x5414d));function a275_0x2804(){const _0x4614ee=['19654Irbffe','2189529TWkret','2043392EAVBdh','81JrUGap','764786WOfIKG','12WCeDLv','85866cYdkDa','20fNlqxT','72868bOGgOB','4558015JyOsmW','23JkPRve','20YOTVAr'];a275_0x2804=function(){return _0x4614ee;};return a275_0x2804();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a275_0x3bd4(_0x50c563,_0x533200){_0x50c563=_0x50c563-0x11c;const _0x2804e2=a275_0x2804();let _0x3bd40c=_0x2804e2[_0x50c563];return _0x3bd40c;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0xb55054,_0x4e0b7c){const _0x3a9c7b=a276_0x17af,_0x4cf522=_0xb55054();while(!![]){try{const _0x233e72=-parseInt(_0x3a9c7b(0x161))/0x1*(parseInt(_0x3a9c7b(0x15e))/0x2)+parseInt(_0x3a9c7b(0x16c))/0x3*(parseInt(_0x3a9c7b(0x165))/0x4)+-parseInt(_0x3a9c7b(0x168))/0x5*(-parseInt(_0x3a9c7b(0x15f))/0x6)+parseInt(_0x3a9c7b(0x170))/0x7*(-parseInt(_0x3a9c7b(0x163))/0x8)+-parseInt(_0x3a9c7b(0x162))/0x9+parseInt(_0x3a9c7b(0x16b))/0xa*(-parseInt(_0x3a9c7b(0x167))/0xb)+parseInt(_0x3a9c7b(0x164))/0xc;if(_0x233e72===_0x4e0b7c)break;else _0x4cf522['push'](_0x4cf522['shift']());}catch(_0x47c00e){_0x4cf522['push'](_0x4cf522['shift']());}}}(a276_0x3604,0x19276));function a276_0x17af(_0x4e780e,_0x4ea7c6){_0x4e780e=_0x4e780e-0x15e;const _0x3604b3=a276_0x3604();let _0x17afcb=_0x3604b3[_0x4e780e];return _0x17afcb;}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x1274a4=a276_0x17af,_0x4e9c98=getTemplateBaseUrl(),_0x20f5ed=[_0x4e9c98+_0x1274a4(0x16f),_0x4e9c98+_0x1274a4(0x169)];for(const _0x1c52ef of _0x20f5ed){try{const _0x54ca2f=await fetch(_0x1c52ef,{'headers':{'Accept':_0x1274a4(0x16d)}});if(!_0x54ca2f['ok'])continue;const _0x2d5ae9=await _0x54ca2f['json']();if(!_0x2d5ae9[_0x1274a4(0x166)]?.['stableVersion']||!_0x2d5ae9[_0x1274a4(0x16e)]?.[_0x1274a4(0x160)]?.[_0x1274a4(0x16a)])continue;return _0x2d5ae9;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a276_0x3604(){const _0x3a75ab=['308410vKhWlU','/config/index.json','stableVersion','10EglhDt','135uYqwKC','application/json','sdk','/config.json','219555lDtGha','62pXvAZE','12LQvJXV','node','5018mvYQNr','828261pOERcN','8ddEUEs','4515132rribJJ','192sfuGjR','cli','1317833AUTvoc'];a276_0x3604=function(){return _0x3a75ab;};return a276_0x3604();}let hasCachedConfig=![];export async function getCdnConfig(){const _0x49e28b=Date['now']();if(hasCachedConfig){const _0x1b4a22=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x49e28b-cacheTime<_0x1b4a22)return cachedConfig;}const _0x20ee86=await fetchCdnConfig();return cachedConfig=_0x20ee86,cacheTime=_0x49e28b,hasCachedConfig=!![],_0x20ee86;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ function a276_0x27ae(){const _0x150161=['1630560NHJIkc','1608JnazYK','cli','1847860PNNuxo','4280HuZKIV','/config/index.json','11922345GeWSho','/config.json','json','sdk','813wtPXMa','53057kuvFMD','404198LXuRFd','stableVersion','10ttFCMY','now','node','3448ZAEoUH','application/json'];a276_0x27ae=function(){return _0x150161;};return a276_0x27ae();}function a276_0x28fa(_0x21e71b,_0x16d16e){_0x21e71b=_0x21e71b-0xc7;const _0x27ae5d=a276_0x27ae();let _0x28fa71=_0x27ae5d[_0x21e71b];return _0x28fa71;}(function(_0x188c4e,_0x20e7eb){const _0x470aec=a276_0x28fa,_0x3e366a=_0x188c4e();while(!![]){try{const _0x5df8e8=-parseInt(_0x470aec(0xd0))/0x1+-parseInt(_0x470aec(0xd1))/0x2+-parseInt(_0x470aec(0xcf))/0x3*(parseInt(_0x470aec(0xd6))/0x4)+parseInt(_0x470aec(0xc9))/0x5*(-parseInt(_0x470aec(0xd9))/0x6)+-parseInt(_0x470aec(0xc8))/0x7+-parseInt(_0x470aec(0xd8))/0x8+parseInt(_0x470aec(0xcb))/0x9*(parseInt(_0x470aec(0xd3))/0xa);if(_0x5df8e8===_0x20e7eb)break;else _0x3e366a['push'](_0x3e366a['shift']());}catch(_0x69eeea){_0x3e366a['push'](_0x3e366a['shift']());}}}(a276_0x27ae,0x21df3));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x5a24cb=a276_0x28fa,_0x9f70d9=getTemplateBaseUrl(),_0x29b1c4=[_0x9f70d9+_0x5a24cb(0xcc),_0x9f70d9+_0x5a24cb(0xca)];for(const _0x23365e of _0x29b1c4){try{const _0x38268f=await fetch(_0x23365e,{'headers':{'Accept':_0x5a24cb(0xd7)}});if(!_0x38268f['ok'])continue;const _0x40567d=await _0x38268f[_0x5a24cb(0xcd)]();if(!_0x40567d[_0x5a24cb(0xc7)]?.[_0x5a24cb(0xd2)]||!_0x40567d[_0x5a24cb(0xce)]?.[_0x5a24cb(0xd5)]?.['stableVersion'])continue;return _0x40567d;}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 _0x6c2fe2=a276_0x28fa,_0x365fc1=Date[_0x6c2fe2(0xd4)]();if(hasCachedConfig){const _0x212060=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x365fc1-cacheTime<_0x212060)return cachedConfig;}const _0x37217c=await fetchCdnConfig();return cachedConfig=_0x37217c,cacheTime=_0x365fc1,hasCachedConfig=!![],_0x37217c;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a277_0x2f310c=a277_0x2bd4;(function(_0x1114a1,_0x55883a){const _0x5a8018=a277_0x2bd4,_0x4a85ea=_0x1114a1();while(!![]){try{const _0x5a34ff=-parseInt(_0x5a8018(0x154))/0x1*(parseInt(_0x5a8018(0x13b))/0x2)+-parseInt(_0x5a8018(0x141))/0x3+parseInt(_0x5a8018(0x153))/0x4+-parseInt(_0x5a8018(0x156))/0x5+-parseInt(_0x5a8018(0x14d))/0x6+parseInt(_0x5a8018(0x14f))/0x7*(-parseInt(_0x5a8018(0x14c))/0x8)+parseInt(_0x5a8018(0x151))/0x9*(parseInt(_0x5a8018(0x158))/0xa);if(_0x5a34ff===_0x55883a)break;else _0x4a85ea['push'](_0x4a85ea['shift']());}catch(_0x2a4ef4){_0x4a85ea['push'](_0x4a85ea['shift']());}}}(a277_0x54b0,0x1d4af));function a277_0x54b0(){const _0x51d6db=['\x20\x20\x20Upgrade\x20command:\x20','version','29400IGlCOQ','973236iEhYYS','test','147GRVgsj','packageName','24291EhdoDL','all','534252FKTveY','1SsxczP','parse','8110cRFrTq','log','1930FcTerC','1.2.0','readFileSync','coerce','latest','package.json','155866AzsvmQ','utf8','npm\x20install\x20','\x20\x20\x20Stable\x20version:\x20','needsUpgrade','join','646653iIqDvZ','@lovrabet/sdk','\x1b[0m','stableVersion','existsSync','minVersion','dependencies','node','node_modules'];a277_0x54b0=function(){return _0x51d6db;};return a277_0x54b0();}import a277_0x27978c from'node:fs';import a277_0x1e5a36 from'node:path';import a277_0x380752 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a277_0x2f310c(0x159);function isNonNumericVersion(_0x367413){const _0x559566=a277_0x2f310c,_0x32f747=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x32f747['some'](_0x222c24=>_0x222c24[_0x559566(0x14e)](_0x367413));}function getInstalledVersion(_0x280550,_0x13a71d){const _0x565854=a277_0x2f310c;try{const _0x24b06b=a277_0x1e5a36[_0x565854(0x140)](_0x280550,_0x565854(0x149),_0x13a71d,'package.json');if(a277_0x27978c['existsSync'](_0x24b06b)){const _0x3a1a52=JSON[_0x565854(0x155)](a277_0x27978c['readFileSync'](_0x24b06b,'utf-8'));return _0x3a1a52[_0x565854(0x14b)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0xebedd6=a277_0x2f310c;try{const _0x5e6f73=await getCdnConfig();return _0x5e6f73?.['sdk']?.[_0xebedd6(0x148)]?.[_0xebedd6(0x144)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x5afad7=a277_0x2f310c;try{const _0x4fffb4=await getCdnConfig();return _0x4fffb4?.['sdk']?.[_0x5afad7(0x148)]?.[_0x5afad7(0x150)]||_0x5afad7(0x142);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x51749e){const _0xefa16a=a277_0x2f310c,_0xb59765=a277_0x1e5a36[_0xefa16a(0x140)](_0x51749e,'package.json'),[_0xc039d5,_0x5a307a]=await Promise[_0xefa16a(0x152)]([getSdkStableVersion(),getSdkPackageName()]),_0x164cbd=_0xc039d5||FALLBACK_MIN_SDK_VERSION;if(!a277_0x27978c[_0xefa16a(0x145)](_0xb59765))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x164cbd,'packageName':_0x5a307a,'stableVersion':_0xc039d5};try{const _0x3781ef=JSON['parse'](a277_0x27978c[_0xefa16a(0x15a)](_0xb59765,_0xefa16a(0x13c))),_0x5b442c=_0x3781ef[_0xefa16a(0x147)]||{},_0x518cec=_0x3781ef['devDependencies']||{},_0x469af8=_0x5b442c[_0x5a307a]||_0x518cec[_0x5a307a];if(!_0x469af8)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x164cbd,'packageName':_0x5a307a,'stableVersion':_0xc039d5};let _0x43f6f7=getInstalledVersion(_0x51749e,_0x5a307a);!_0x43f6f7&&(_0x43f6f7=_0x469af8);if(isNonNumericVersion(_0x469af8))return{'installed':!![],'version':_0x43f6f7,'needsUpgrade':![],'minVersion':_0x164cbd,'packageName':_0x5a307a,'stableVersion':_0xc039d5};const _0x58c32f=a277_0x380752[_0xefa16a(0x138)](_0x43f6f7),_0xf1d961=a277_0x380752[_0xefa16a(0x138)](_0x164cbd),_0x3a5b36=_0x58c32f&&_0xf1d961?a277_0x380752['lt'](_0x58c32f,_0xf1d961):![];return{'installed':!![],'version':_0x43f6f7,'needsUpgrade':_0x3a5b36,'minVersion':_0x164cbd,'packageName':_0x5a307a,'stableVersion':_0xc039d5};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x164cbd,'packageName':_0x5a307a,'stableVersion':_0xc039d5};}}export function checkSdkVersionSync(_0x4c1894){const _0x50b562=a277_0x2f310c,_0x30d791=a277_0x1e5a36['join'](_0x4c1894,_0x50b562(0x13a)),_0x5248c4='@lovrabet/sdk';if(!a277_0x27978c[_0x50b562(0x145)](_0x30d791))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5248c4,'stableVersion':null};try{const _0x184b34=JSON['parse'](a277_0x27978c[_0x50b562(0x15a)](_0x30d791,'utf8')),_0x19780f=_0x184b34[_0x50b562(0x147)]||{},_0x3f1806=_0x184b34['devDependencies']||{},_0x337eac=_0x19780f[_0x5248c4]||_0x3f1806[_0x5248c4];if(!_0x337eac)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5248c4,'stableVersion':null};let _0x2a58a1=getInstalledVersion(_0x4c1894,_0x5248c4);!_0x2a58a1&&(_0x2a58a1=_0x337eac);if(isNonNumericVersion(_0x337eac))return{'installed':!![],'version':_0x2a58a1,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5248c4,'stableVersion':null};const _0x478424=a277_0x380752[_0x50b562(0x138)](_0x2a58a1),_0x11f1f8=_0x478424?a277_0x380752['lt'](_0x478424,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2a58a1,'needsUpgrade':_0x11f1f8,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5248c4,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5248c4,'stableVersion':null};}}function a277_0x2bd4(_0xd8ca78,_0x5c29b8){_0xd8ca78=_0xd8ca78-0x138;const _0x54b076=a277_0x54b0();let _0x2bd4c2=_0x54b076[_0xd8ca78];return _0x2bd4c2;}export function printSdkUpgradeWarning(_0x4e0c3b){const _0x121a06=a277_0x2f310c;if(!_0x4e0c3b[_0x121a06(0x13f)])return;const _0x24378a='\x1b[33m',_0x291462=_0x121a06(0x143),_0x4a31ed='\x1b[1m',_0x234209=_0x4e0c3b['packageName']||_0x121a06(0x142),_0x4bc993=_0x4e0c3b[_0x121a06(0x144)]||_0x4e0c3b[_0x121a06(0x146)],_0x1a3bef=_0x121a06(0x13d)+_0x234209+'@'+(_0x4bc993||_0x121a06(0x139));console[_0x121a06(0x157)](),console['log'](''+_0x24378a+_0x4a31ed+'↪\x20SDK\x20update\x20available'+_0x291462),console[_0x121a06(0x157)](_0x24378a+'\x20\x20\x20Current\x20version:\x20'+_0x234209+'@'+_0x4e0c3b[_0x121a06(0x14b)]+_0x291462),console[_0x121a06(0x157)](_0x24378a+_0x121a06(0x13e)+_0x4bc993+_0x291462),console['log'](_0x24378a+_0x121a06(0x14a)+_0x1a3bef+_0x291462),console[_0x121a06(0x157)]();}
1
+ function a277_0x5828(){const _0x5e4024=['\x20\x20\x20Current\x20version:\x20','\x20\x20\x20Stable\x20version:\x20','devDependencies','readFileSync','@lovrabet/sdk','895116WouHWh','npm\x20install\x20','\x1b[0m','latest','utf8','existsSync','1.2.0','some','3oDdRjU','node','6Vcrpzs','2101920CIboBJ','18928vTbwgI','↪\x20SDK\x20update\x20available','parse','coerce','2980830NpMbOF','stableVersion','packageName','sdk','1454528ufNSwK','all','1629FVCxSU','\x1b[1m','minVersion','needsUpgrade','5250063Rhwczl','package.json','join','node_modules','log','10072egYzTI'];a277_0x5828=function(){return _0x5e4024;};return a277_0x5828();}const a277_0x5a108b=a277_0x2176;(function(_0x2d595f,_0x4a9a9e){const _0x457e86=a277_0x2176,_0x4db770=_0x2d595f();while(!![]){try{const _0x3e55ea=parseInt(_0x457e86(0x16f))/0x1+-parseInt(_0x457e86(0x15e))/0x2+-parseInt(_0x457e86(0x152))/0x3*(parseInt(_0x457e86(0x169))/0x4)+parseInt(_0x457e86(0x15a))/0x5+parseInt(_0x457e86(0x154))/0x6*(parseInt(_0x457e86(0x164))/0x7)+parseInt(_0x457e86(0x156))/0x8*(-parseInt(_0x457e86(0x160))/0x9)+-parseInt(_0x457e86(0x155))/0xa;if(_0x3e55ea===_0x4a9a9e)break;else _0x4db770['push'](_0x4db770['shift']());}catch(_0x580270){_0x4db770['push'](_0x4db770['shift']());}}}(a277_0x5828,0xd526f));import a277_0x35c533 from'node:fs';import a277_0x3adb06 from'node:path';import a277_0x506743 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a277_0x5a108b(0x150);function isNonNumericVersion(_0x2c695b){const _0x12e14b=a277_0x5a108b,_0x23d4cf=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x23d4cf[_0x12e14b(0x151)](_0x113dfd=>_0x113dfd['test'](_0x2c695b));}function getInstalledVersion(_0x176ce2,_0x181cd4){const _0xc0f136=a277_0x5a108b;try{const _0x4e6fb7=a277_0x3adb06[_0xc0f136(0x166)](_0x176ce2,_0xc0f136(0x167),_0x181cd4,_0xc0f136(0x165));if(a277_0x35c533[_0xc0f136(0x14f)](_0x4e6fb7)){const _0x1b8050=JSON[_0xc0f136(0x158)](a277_0x35c533[_0xc0f136(0x16d)](_0x4e6fb7,'utf-8'));return _0x1b8050['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x33019b=a277_0x5a108b;try{const _0xcf319f=await getCdnConfig();return _0xcf319f?.[_0x33019b(0x15d)]?.[_0x33019b(0x153)]?.[_0x33019b(0x15b)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x44e04a=a277_0x5a108b;try{const _0xc66c12=await getCdnConfig();return _0xc66c12?.[_0x44e04a(0x15d)]?.[_0x44e04a(0x153)]?.['packageName']||_0x44e04a(0x16e);}catch{return _0x44e04a(0x16e);}}export async function checkSdkVersion(_0x44242d){const _0x207cf7=a277_0x5a108b,_0x216edb=a277_0x3adb06['join'](_0x44242d,_0x207cf7(0x165)),[_0x1d40f4,_0x1cff4f]=await Promise[_0x207cf7(0x15f)]([getSdkStableVersion(),getSdkPackageName()]),_0x219425=_0x1d40f4||FALLBACK_MIN_SDK_VERSION;if(!a277_0x35c533[_0x207cf7(0x14f)](_0x216edb))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x219425,'packageName':_0x1cff4f,'stableVersion':_0x1d40f4};try{const _0xa54765=JSON[_0x207cf7(0x158)](a277_0x35c533[_0x207cf7(0x16d)](_0x216edb,_0x207cf7(0x14e))),_0x2f4c3e=_0xa54765['dependencies']||{},_0x1135b2=_0xa54765[_0x207cf7(0x16c)]||{},_0x3411e2=_0x2f4c3e[_0x1cff4f]||_0x1135b2[_0x1cff4f];if(!_0x3411e2)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x219425,'packageName':_0x1cff4f,'stableVersion':_0x1d40f4};let _0x5218ba=getInstalledVersion(_0x44242d,_0x1cff4f);!_0x5218ba&&(_0x5218ba=_0x3411e2);if(isNonNumericVersion(_0x3411e2))return{'installed':!![],'version':_0x5218ba,'needsUpgrade':![],'minVersion':_0x219425,'packageName':_0x1cff4f,'stableVersion':_0x1d40f4};const _0x4d1acc=a277_0x506743['coerce'](_0x5218ba),_0x48e97e=a277_0x506743[_0x207cf7(0x159)](_0x219425),_0x3e6d18=_0x4d1acc&&_0x48e97e?a277_0x506743['lt'](_0x4d1acc,_0x48e97e):![];return{'installed':!![],'version':_0x5218ba,'needsUpgrade':_0x3e6d18,'minVersion':_0x219425,'packageName':_0x1cff4f,'stableVersion':_0x1d40f4};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x219425,'packageName':_0x1cff4f,'stableVersion':_0x1d40f4};}}export function checkSdkVersionSync(_0x4c9a6e){const _0x59af0e=a277_0x5a108b,_0x54e39a=a277_0x3adb06['join'](_0x4c9a6e,_0x59af0e(0x165)),_0x45158d=_0x59af0e(0x16e);if(!a277_0x35c533[_0x59af0e(0x14f)](_0x54e39a))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x45158d,'stableVersion':null};try{const _0x1df094=JSON[_0x59af0e(0x158)](a277_0x35c533[_0x59af0e(0x16d)](_0x54e39a,_0x59af0e(0x14e))),_0x3aeea5=_0x1df094['dependencies']||{},_0x2d4d3c=_0x1df094[_0x59af0e(0x16c)]||{},_0x2e1fc9=_0x3aeea5[_0x45158d]||_0x2d4d3c[_0x45158d];if(!_0x2e1fc9)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x45158d,'stableVersion':null};let _0x4b9f87=getInstalledVersion(_0x4c9a6e,_0x45158d);!_0x4b9f87&&(_0x4b9f87=_0x2e1fc9);if(isNonNumericVersion(_0x2e1fc9))return{'installed':!![],'version':_0x4b9f87,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x45158d,'stableVersion':null};const _0x33c9c3=a277_0x506743[_0x59af0e(0x159)](_0x4b9f87),_0x5a6fd5=_0x33c9c3?a277_0x506743['lt'](_0x33c9c3,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x4b9f87,'needsUpgrade':_0x5a6fd5,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x45158d,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x45158d,'stableVersion':null};}}function a277_0x2176(_0x4f1711,_0x10a053){_0x4f1711=_0x4f1711-0x14b;const _0x582829=a277_0x5828();let _0x21763f=_0x582829[_0x4f1711];return _0x21763f;}export function printSdkUpgradeWarning(_0x4cb9b5){const _0x2b8846=a277_0x5a108b;if(!_0x4cb9b5[_0x2b8846(0x163)])return;const _0x354cef='\x1b[33m',_0x43b07e=_0x2b8846(0x14c),_0x122ab0=_0x2b8846(0x161),_0x580314=_0x4cb9b5[_0x2b8846(0x15c)]||'@lovrabet/sdk',_0x543a92=_0x4cb9b5[_0x2b8846(0x15b)]||_0x4cb9b5[_0x2b8846(0x162)],_0x479f08=_0x2b8846(0x14b)+_0x580314+'@'+(_0x543a92||_0x2b8846(0x14d));console[_0x2b8846(0x168)](),console[_0x2b8846(0x168)](''+_0x354cef+_0x122ab0+_0x2b8846(0x157)+_0x43b07e),console[_0x2b8846(0x168)](_0x354cef+_0x2b8846(0x16a)+_0x580314+'@'+_0x4cb9b5['version']+_0x43b07e),console[_0x2b8846(0x168)](_0x354cef+_0x2b8846(0x16b)+_0x543a92+_0x43b07e),console[_0x2b8846(0x168)](_0x354cef+'\x20\x20\x20Upgrade\x20command:\x20'+_0x479f08+_0x43b07e),console[_0x2b8846(0x168)]();}
@@ -1 +1 @@
1
- (function(_0x30108b,_0x393e14){const _0x4ad921=a278_0x1951,_0x3e996e=_0x30108b();while(!![]){try{const _0x514a75=parseInt(_0x4ad921(0x12c))/0x1+parseInt(_0x4ad921(0x133))/0x2+parseInt(_0x4ad921(0x11f))/0x3*(parseInt(_0x4ad921(0x129))/0x4)+parseInt(_0x4ad921(0x119))/0x5*(parseInt(_0x4ad921(0x11a))/0x6)+parseInt(_0x4ad921(0x12b))/0x7*(-parseInt(_0x4ad921(0x12f))/0x8)+parseInt(_0x4ad921(0x115))/0x9*(-parseInt(_0x4ad921(0x11b))/0xa)+parseInt(_0x4ad921(0x121))/0xb*(-parseInt(_0x4ad921(0x112))/0xc);if(_0x514a75===_0x393e14)break;else _0x3e996e['push'](_0x3e996e['shift']());}catch(_0x2f973f){_0x3e996e['push'](_0x3e996e['shift']());}}}(a278_0xba6c,0x7f36e));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a278_0x25b58c 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(_0x5cb83f){const _0x3899a7=a278_0x1951,_0x399b8d=_0x5cb83f[_0x3899a7(0x132)]||'latest';return _0x3899a7(0x125)+NPM_PACKAGE_NAME+'@'+_0x399b8d;}function a278_0xba6c(){const _0x1adc44=['stableVersion','1148346jBKTNE','Minimum\x20supported:\x20','log','belowMinimum','↪\x20Critical\x20CLI\x20upgrade\x20required','295800AfGfkq','needsUpgrade','currentVersion','18TvrAGw','coerce','\x1b[1m','minimumVersionMessage','10LnwGyq','328974VXoBlG','2170790wMEYTl','Upgrade\x20command:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','\x20\x20\x20Upgrade\x20command:\x20','1977OIhioY','\x20\x20\x20Current\x20CLI\x20version:\x20','187HooAjH','Current\x20version:\x20','minimumVersion','\x20\x20\x20','npm\x20install\x20-g\x20','\x1b[0m','filter','\x1b[31m','5148OlTmuz','upgradeMessage','77zmhPhC','807388bQvOTB','1.0.0','version','701872nRsirZ','\x20\x20\x20Recommended\x20stable:\x20','../..'];a278_0xba6c=function(){return _0x1adc44;};return a278_0xba6c();}function getCurrentCliVersion(){const _0x552768=a278_0x1951;try{const _0x5dff75=fileURLToPath(import.meta.url),_0x27e9ae=resolve(dirname(_0x5dff75),_0x552768(0x131)),_0x43dd8e=resolve(_0x27e9ae,'package.json'),_0x878a90=JSON['parse'](readFileSync(_0x43dd8e,'utf-8'));return _0x878a90[_0x552768(0x12e)]||'1.0.0';}catch{return _0x552768(0x12d);}}export async function checkCliVersion(){const _0x337ad8=a278_0x1951,_0x4adb21=getCurrentCliVersion(),_0x1b0693=await getCliVersionPolicy(),_0x3c7ded=_0x1b0693?.[_0x337ad8(0x132)]||null,_0x3e37c4=_0x1b0693?.[_0x337ad8(0x123)]||null;let _0x5952a2=![],_0x102186=![];const _0x530312=a278_0x25b58c[_0x337ad8(0x116)](_0x4adb21);if(_0x530312&&_0x3c7ded)try{const _0x2b705f=a278_0x25b58c[_0x337ad8(0x116)](_0x3c7ded);if(_0x2b705f)_0x5952a2=a278_0x25b58c['lt'](_0x530312,_0x2b705f);}catch{}if(_0x530312&&_0x3e37c4)try{const _0xbd0150=a278_0x25b58c['coerce'](_0x3e37c4);if(_0xbd0150)_0x102186=a278_0x25b58c['lt'](_0x530312,_0xbd0150);}catch{}return _0x102186&&(_0x5952a2=!![]),{'currentVersion':_0x4adb21,'stableVersion':_0x3c7ded,'minimumVersion':_0x3e37c4,'needsUpgrade':_0x5952a2,'belowMinimum':_0x102186,'isPreRelease':![],'upgradeMessage':_0x1b0693?.[_0x337ad8(0x12a)],'minimumVersionMessage':_0x1b0693?.[_0x337ad8(0x118)]};}export function printCliUpgradeWarning(_0x5b8f04){const _0x27e997=a278_0x1951;if(!_0x5b8f04[_0x27e997(0x113)]&&!_0x5b8f04[_0x27e997(0x110)])return;const _0x1d5b5c=_0x27e997(0x128),_0x2ec621='\x1b[33m',_0xa051e7=_0x27e997(0x126),_0x33da84=_0x27e997(0x117),_0x2a93e2=getCliUpgradeCommand(_0x5b8f04);console[_0x27e997(0x10f)](),_0x5b8f04[_0x27e997(0x110)]?(console[_0x27e997(0x10f)](''+_0x1d5b5c+_0x33da84+_0x27e997(0x111)+_0xa051e7),console[_0x27e997(0x10f)](_0x1d5b5c+_0x27e997(0x120)+_0x5b8f04[_0x27e997(0x114)]+_0xa051e7),_0x5b8f04[_0x27e997(0x123)]&&console[_0x27e997(0x10f)](_0x1d5b5c+'\x20\x20\x20Minimum\x20supported:\x20'+_0x5b8f04[_0x27e997(0x123)]+_0xa051e7),_0x5b8f04[_0x27e997(0x132)]&&_0x5b8f04[_0x27e997(0x132)]!==_0x5b8f04[_0x27e997(0x123)]&&console['log'](_0x1d5b5c+_0x27e997(0x130)+_0x5b8f04[_0x27e997(0x132)]+_0xa051e7),_0x5b8f04[_0x27e997(0x118)]&&console[_0x27e997(0x10f)](_0x1d5b5c+'\x20\x20\x20'+_0x5b8f04[_0x27e997(0x118)]+_0xa051e7),console[_0x27e997(0x10f)](_0x1d5b5c+_0x27e997(0x11e)+_0x2a93e2+_0xa051e7)):(console[_0x27e997(0x10f)](''+_0x2ec621+_0x33da84+'↪\x20New\x20version\x20available'+_0xa051e7),console[_0x27e997(0x10f)](_0x2ec621+_0x27e997(0x120)+_0x5b8f04[_0x27e997(0x114)]+_0xa051e7),console[_0x27e997(0x10f)](_0x2ec621+'\x20\x20\x20Stable\x20version:\x20'+_0x5b8f04[_0x27e997(0x132)]+_0xa051e7),_0x5b8f04[_0x27e997(0x12a)]&&console[_0x27e997(0x10f)](_0x2ec621+_0x27e997(0x124)+_0x5b8f04[_0x27e997(0x12a)]+_0xa051e7),console[_0x27e997(0x10f)](_0x2ec621+'\x20\x20\x20Upgrade\x20command:\x20'+_0x2a93e2+_0xa051e7)),console['log']();}function a278_0x1951(_0x1d24ab,_0x5d981e){_0x1d24ab=_0x1d24ab-0x10f;const _0xba6c56=a278_0xba6c();let _0x19512d=_0xba6c56[_0x1d24ab];return _0x19512d;}export function assertCliVersionSupported(_0xaac150){const _0x148585=a278_0x1951;if(!_0xaac150[_0x148585(0x110)])return;const _0x42fe42=[_0xaac150['minimumVersionMessage'],_0x148585(0x122)+_0xaac150['currentVersion'],_0xaac150[_0x148585(0x123)]?_0x148585(0x134)+_0xaac150[_0x148585(0x123)]:null,_0x148585(0x11c)+getCliUpgradeCommand(_0xaac150)][_0x148585(0x127)](Boolean)['join']('\x0a');throw CliErrors['validation'](_0x148585(0x11d),_0x42fe42);}
1
+ (function(_0x5dcfaf,_0x2ab1a3){const _0x10177e=a278_0x1eeb,_0x5f558e=_0x5dcfaf();while(!![]){try{const _0x1e6b10=parseInt(_0x10177e(0xbb))/0x1+-parseInt(_0x10177e(0xb9))/0x2*(-parseInt(_0x10177e(0xd1))/0x3)+parseInt(_0x10177e(0xca))/0x4*(parseInt(_0x10177e(0xbc))/0x5)+-parseInt(_0x10177e(0xc8))/0x6*(-parseInt(_0x10177e(0xbd))/0x7)+parseInt(_0x10177e(0xbf))/0x8+parseInt(_0x10177e(0xd8))/0x9+parseInt(_0x10177e(0xce))/0xa*(-parseInt(_0x10177e(0xc7))/0xb);if(_0x1e6b10===_0x2ab1a3)break;else _0x5f558e['push'](_0x5f558e['shift']());}catch(_0x58a523){_0x5f558e['push'](_0x5f558e['shift']());}}}(a278_0x1db6,0x1c509));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a278_0x35fe3b from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a278_0x1db6(){const _0x120d3a=['318dSHYOI','upgradeMessage','10333mXyLZC','370970UcKnPh','1352890tFqTzc','\x20\x20\x20Upgrade\x20command:\x20','968808BrShMo','join','↪\x20Critical\x20CLI\x20upgrade\x20required','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','parse','\x1b[1m','stableVersion','npm\x20install\x20-g\x20','103763MbaIAU','6ffExOq','\x1b[33m','4bdiIYv','1.0.0','\x20\x20\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','490bWxtue','minimumVersion','log','1896VlCPec','\x1b[31m','coerce','../..','currentVersion','filter','latest','709272sbZnvr','Upgrade\x20command:\x20','minimumVersionMessage','Current\x20version:\x20','belowMinimum','version'];a278_0x1db6=function(){return _0x120d3a;};return a278_0x1db6();}function a278_0x1eeb(_0x2278ee,_0x3e5984){_0x2278ee=_0x2278ee-0xb8;const _0x1db6bf=a278_0x1db6();let _0x1eeb2e=_0x1db6bf[_0x2278ee];return _0x1eeb2e;}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x32d2a6){const _0xd710be=a278_0x1eeb,_0x12729d=_0x32d2a6['stableVersion']||_0xd710be(0xd7);return _0xd710be(0xc6)+NPM_PACKAGE_NAME+'@'+_0x12729d;}function getCurrentCliVersion(){const _0x40248c=a278_0x1eeb;try{const _0x4d0f98=fileURLToPath(import.meta.url),_0x432dd0=resolve(dirname(_0x4d0f98),_0x40248c(0xd4)),_0x1ee347=resolve(_0x432dd0,'package.json'),_0x1938df=JSON[_0x40248c(0xc3)](readFileSync(_0x1ee347,'utf-8'));return _0x1938df[_0x40248c(0xb8)]||_0x40248c(0xcb);}catch{return _0x40248c(0xcb);}}export async function checkCliVersion(){const _0x330545=a278_0x1eeb,_0x39c393=getCurrentCliVersion(),_0x7bcf0a=await getCliVersionPolicy(),_0x4cfb74=_0x7bcf0a?.[_0x330545(0xc5)]||null,_0x5eabc3=_0x7bcf0a?.[_0x330545(0xcf)]||null;let _0x3250b8=![],_0x435818=![];const _0x1a24f0=a278_0x35fe3b[_0x330545(0xd3)](_0x39c393);if(_0x1a24f0&&_0x4cfb74)try{const _0x1444fb=a278_0x35fe3b[_0x330545(0xd3)](_0x4cfb74);if(_0x1444fb)_0x3250b8=a278_0x35fe3b['lt'](_0x1a24f0,_0x1444fb);}catch{}if(_0x1a24f0&&_0x5eabc3)try{const _0x4cacda=a278_0x35fe3b[_0x330545(0xd3)](_0x5eabc3);if(_0x4cacda)_0x435818=a278_0x35fe3b['lt'](_0x1a24f0,_0x4cacda);}catch{}return _0x435818&&(_0x3250b8=!![]),{'currentVersion':_0x39c393,'stableVersion':_0x4cfb74,'minimumVersion':_0x5eabc3,'needsUpgrade':_0x3250b8,'belowMinimum':_0x435818,'isPreRelease':![],'upgradeMessage':_0x7bcf0a?.[_0x330545(0xba)],'minimumVersionMessage':_0x7bcf0a?.[_0x330545(0xda)]};}export function printCliUpgradeWarning(_0x132cf1){const _0x48d750=a278_0x1eeb;if(!_0x132cf1['needsUpgrade']&&!_0x132cf1[_0x48d750(0xdc)])return;const _0x3ab027=_0x48d750(0xd2),_0x419c01=_0x48d750(0xc9),_0x3bacb5='\x1b[0m',_0x3f5653=_0x48d750(0xc4),_0x154c54=getCliUpgradeCommand(_0x132cf1);console[_0x48d750(0xd0)](),_0x132cf1['belowMinimum']?(console[_0x48d750(0xd0)](''+_0x3ab027+_0x3f5653+_0x48d750(0xc1)+_0x3bacb5),console[_0x48d750(0xd0)](_0x3ab027+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x132cf1[_0x48d750(0xd5)]+_0x3bacb5),_0x132cf1[_0x48d750(0xcf)]&&console[_0x48d750(0xd0)](_0x3ab027+'\x20\x20\x20Minimum\x20supported:\x20'+_0x132cf1[_0x48d750(0xcf)]+_0x3bacb5),_0x132cf1['stableVersion']&&_0x132cf1[_0x48d750(0xc5)]!==_0x132cf1[_0x48d750(0xcf)]&&console[_0x48d750(0xd0)](_0x3ab027+'\x20\x20\x20Recommended\x20stable:\x20'+_0x132cf1[_0x48d750(0xc5)]+_0x3bacb5),_0x132cf1[_0x48d750(0xda)]&&console['log'](_0x3ab027+'\x20\x20\x20'+_0x132cf1[_0x48d750(0xda)]+_0x3bacb5),console['log'](_0x3ab027+_0x48d750(0xbe)+_0x154c54+_0x3bacb5)):(console[_0x48d750(0xd0)](''+_0x419c01+_0x3f5653+'↪\x20New\x20version\x20available'+_0x3bacb5),console[_0x48d750(0xd0)](_0x419c01+_0x48d750(0xcd)+_0x132cf1[_0x48d750(0xd5)]+_0x3bacb5),console[_0x48d750(0xd0)](_0x419c01+'\x20\x20\x20Stable\x20version:\x20'+_0x132cf1[_0x48d750(0xc5)]+_0x3bacb5),_0x132cf1[_0x48d750(0xba)]&&console[_0x48d750(0xd0)](_0x419c01+_0x48d750(0xcc)+_0x132cf1[_0x48d750(0xba)]+_0x3bacb5),console[_0x48d750(0xd0)](_0x419c01+'\x20\x20\x20Upgrade\x20command:\x20'+_0x154c54+_0x3bacb5)),console['log']();}export function assertCliVersionSupported(_0x1d4e2b){const _0x52245a=a278_0x1eeb;if(!_0x1d4e2b['belowMinimum'])return;const _0xbefdd4=[_0x1d4e2b[_0x52245a(0xda)],_0x52245a(0xdb)+_0x1d4e2b[_0x52245a(0xd5)],_0x1d4e2b[_0x52245a(0xcf)]?'Minimum\x20supported:\x20'+_0x1d4e2b[_0x52245a(0xcf)]:null,_0x52245a(0xd9)+getCliUpgradeCommand(_0x1d4e2b)][_0x52245a(0xd6)](Boolean)[_0x52245a(0xc0)]('\x0a');throw CliErrors['validation'](_0x52245a(0xc2),_0xbefdd4);}
@@ -1 +1 @@
1
- (function(_0x70259c,_0x19c798){const _0x185d81=a279_0x392e,_0x10dac3=_0x70259c();while(!![]){try{const _0x24efb9=-parseInt(_0x185d81(0xc3))/0x1*(-parseInt(_0x185d81(0xb0))/0x2)+-parseInt(_0x185d81(0xbf))/0x3*(parseInt(_0x185d81(0xb5))/0x4)+parseInt(_0x185d81(0xb9))/0x5*(-parseInt(_0x185d81(0xbc))/0x6)+parseInt(_0x185d81(0xb7))/0x7*(-parseInt(_0x185d81(0xc0))/0x8)+-parseInt(_0x185d81(0xc2))/0x9+-parseInt(_0x185d81(0xb2))/0xa*(-parseInt(_0x185d81(0xad))/0xb)+-parseInt(_0x185d81(0xbb))/0xc*(-parseInt(_0x185d81(0xb8))/0xd);if(_0x24efb9===_0x19c798)break;else _0x10dac3['push'](_0x10dac3['shift']());}catch(_0x4aee78){_0x10dac3['push'](_0x10dac3['shift']());}}}(a279_0x3a8b,0x65661));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 a279_0x392e(_0x2fe5dc,_0x2677b0){_0x2fe5dc=_0x2fe5dc-0xad;const _0x3a8bbd=a279_0x3a8b();let _0x392eb7=_0x3a8bbd[_0x2fe5dc];return _0x392eb7;}function pickString(_0x3e58ff){const _0x1922f5=a279_0x392e;return typeof _0x3e58ff==='string'&&_0x3e58ff['trim']()[_0x1922f5(0xb3)]>0x0?_0x3e58ff[_0x1922f5(0xc5)]():null;}function normalizeCliVersionPolicy(_0xfbe500){const _0x1aa046=a279_0x392e;if(!_0xfbe500||typeof _0xfbe500!==_0x1aa046(0xbe))return null;const _0x16cd1c=_0xfbe500,_0x5545bc=_0x16cd1c['cli']&&typeof _0x16cd1c[_0x1aa046(0xb6)]==='object'?_0x16cd1c[_0x1aa046(0xb6)]:_0x16cd1c,_0x3f7b98=pickString(_0x5545bc[_0x1aa046(0xaf)])||pickString(_0x5545bc['latestVersion'])||pickString(_0x5545bc['recommendedVersion']),_0x24960f=pickString(_0x5545bc[_0x1aa046(0xb1)])||pickString(_0x5545bc[_0x1aa046(0xbd)]);if(!_0x3f7b98&&!_0x24960f)return null;return{'stableVersion':_0x3f7b98,'minimumVersion':_0x24960f,'upgradeMessage':pickString(_0x5545bc[_0x1aa046(0xae)])||undefined,'minimumVersionMessage':pickString(_0x5545bc['minimumVersionMessage'])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x30283c=a279_0x392e,_0x2ba6a1=new AbortController(),_0x533735=setTimeout(()=>_0x2ba6a1[_0x30283c(0xc4)](),FETCH_TIMEOUT_MS);try{const _0x2844a7=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x30283c(0xc1)},'signal':_0x2ba6a1[_0x30283c(0xba)]});if(!_0x2844a7['ok'])return null;const _0x20ae96=await _0x2844a7['json']();return _0x20ae96&&typeof _0x20ae96===_0x30283c(0xbe)?_0x20ae96:null;}catch{return null;}finally{clearTimeout(_0x533735);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x18bee2=a279_0x392e,_0x1aedf0=Date[_0x18bee2(0xb4)]();if(hasCachedConfig){const _0x3a5cb6=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x1aedf0-cacheTime<_0x3a5cb6)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x1aedf0,hasCachedConfig=!![],cachedConfig;}function a279_0x3a8b(){const _0x3d4a41=['12JWxpVO','192DInzqn','application/json','3473280ltxHRh','10474HETnOv','abort','trim','8052QDdKIu','upgradeMessage','stableVersion','22wEesEp','minimumVersion','4670oTYiMK','length','now','281044ghNDCU','cli','53123KvrCXW','5629eohJDy','5QNkhVi','signal','32916vAsIIp','2282088qnMcNL','minVersion','object'];a279_0x3a8b=function(){return _0x3d4a41;};return a279_0x3a8b();}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0xa743f2,_0x46d278){const _0xaa8f6=a279_0x2dc9,_0x3bf705=_0xa743f2();while(!![]){try{const _0x2bf867=-parseInt(_0xaa8f6(0xfe))/0x1+parseInt(_0xaa8f6(0x10a))/0x2*(-parseInt(_0xaa8f6(0x101))/0x3)+-parseInt(_0xaa8f6(0x10e))/0x4+-parseInt(_0xaa8f6(0xf7))/0x5+-parseInt(_0xaa8f6(0xff))/0x6+-parseInt(_0xaa8f6(0x102))/0x7*(parseInt(_0xaa8f6(0xf9))/0x8)+-parseInt(_0xaa8f6(0xfb))/0x9*(-parseInt(_0xaa8f6(0x10b))/0xa);if(_0x2bf867===_0x46d278)break;else _0x3bf705['push'](_0x3bf705['shift']());}catch(_0x59f7f3){_0x3bf705['push'](_0x3bf705['shift']());}}}(a279_0x3a60,0x9ec1f));function a279_0x3a60(){const _0x58e285=['15ESsvQE','112LPufHx','minVersion','string','signal','abort','stableVersion','recommendedVersion','minimumVersionMessage','208858ezbeHg','378380mPhPBY','cli','latestVersion','4279336EkDHKD','2519400YgJuDJ','trim','150576XWRQPy','now','1089oiVYUq','object','json','350722zkuDTp','7082364jJXEjc','length'];a279_0x3a60=function(){return _0x58e285;};return a279_0x3a60();}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(_0x4150eb){const _0xd5b5b8=a279_0x2dc9;return typeof _0x4150eb===_0xd5b5b8(0x104)&&_0x4150eb[_0xd5b5b8(0xf8)]()[_0xd5b5b8(0x100)]>0x0?_0x4150eb[_0xd5b5b8(0xf8)]():null;}function normalizeCliVersionPolicy(_0x34eb3d){const _0x52a417=a279_0x2dc9;if(!_0x34eb3d||typeof _0x34eb3d!==_0x52a417(0xfc))return null;const _0xb91482=_0x34eb3d,_0x593821=_0xb91482[_0x52a417(0x10c)]&&typeof _0xb91482[_0x52a417(0x10c)]===_0x52a417(0xfc)?_0xb91482[_0x52a417(0x10c)]:_0xb91482,_0x4c5a0d=pickString(_0x593821[_0x52a417(0x107)])||pickString(_0x593821[_0x52a417(0x10d)])||pickString(_0x593821[_0x52a417(0x108)]),_0x1c3fb=pickString(_0x593821['minimumVersion'])||pickString(_0x593821[_0x52a417(0x103)]);if(!_0x4c5a0d&&!_0x1c3fb)return null;return{'stableVersion':_0x4c5a0d,'minimumVersion':_0x1c3fb,'upgradeMessage':pickString(_0x593821['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x593821[_0x52a417(0x109)])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x4622fd=a279_0x2dc9,_0x174585=new AbortController(),_0x77da17=setTimeout(()=>_0x174585[_0x4622fd(0x106)](),FETCH_TIMEOUT_MS);try{const _0x367906=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x174585[_0x4622fd(0x105)]});if(!_0x367906['ok'])return null;const _0x2117ac=await _0x367906[_0x4622fd(0xfd)]();return _0x2117ac&&typeof _0x2117ac===_0x4622fd(0xfc)?_0x2117ac:null;}catch{return null;}finally{clearTimeout(_0x77da17);}}function a279_0x2dc9(_0x72b0db,_0x596143){_0x72b0db=_0x72b0db-0xf7;const _0x3a6080=a279_0x3a60();let _0x2dc992=_0x3a6080[_0x72b0db];return _0x2dc992;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x425f40=a279_0x2dc9,_0x32843b=Date[_0x425f40(0xfa)]();if(hasCachedConfig){const _0x377355=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x32843b-cacheTime<_0x377355)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x32843b,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a280_0x4cd09a=a280_0x5bf1;function a280_0x5bf1(_0x4b3a5d,_0x599a15){_0x4b3a5d=_0x4b3a5d-0x166;const _0x1cdb97=a280_0x1cdb();let _0x5bf1a9=_0x1cdb97[_0x4b3a5d];return _0x5bf1a9;}(function(_0x353462,_0x4ba9f2){const _0x4168a0=a280_0x5bf1,_0x3f79ab=_0x353462();while(!![]){try{const _0x3f692b=parseInt(_0x4168a0(0x16e))/0x1*(-parseInt(_0x4168a0(0x169))/0x2)+parseInt(_0x4168a0(0x16b))/0x3+-parseInt(_0x4168a0(0x170))/0x4+parseInt(_0x4168a0(0x166))/0x5+parseInt(_0x4168a0(0x16f))/0x6+parseInt(_0x4168a0(0x167))/0x7*(parseInt(_0x4168a0(0x168))/0x8)+-parseInt(_0x4168a0(0x16c))/0x9*(parseInt(_0x4168a0(0x16a))/0xa);if(_0x3f692b===_0x4ba9f2)break;else _0x3f79ab['push'](_0x3f79ab['shift']());}catch(_0x36601d){_0x3f79ab['push'](_0x3f79ab['shift']());}}}(a280_0x1cdb,0x88455));function a280_0x1cdb(){const _0x11c1c7=['1560zdCkYW','2532456JbsueS','81612GsGykT','env','1qJOwKt','3470898LIDftz','1096560slTGLI','project','2004760GfBQSi','10451WPQUzm','3592gEphJG','494062EJnEQY'];a280_0x1cdb=function(){return _0x11c1c7;};return a280_0x1cdb();}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a280_0x3db888,getMultiAppConfigs as a280_0x2517cd,getTemplateBaseUrl as a280_0x1ddc2d}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x1429f6){const _0x23d324=a280_0x5bf1,_0x5d973f=readRawConfig(_0x1429f6);return _0x5d973f['env']&&typeof _0x5d973f['env']==='string'&&initEnv(_0x5d973f[_0x23d324(0x16d)]),_0x5d973f;}export function getConfigAppCode(){return a280_0x3db888();}export function getMultiAppConfigs(_0x5c8605=a280_0x4cd09a(0x171)){return a280_0x2517cd(_0x5c8605);}export function getTemplateBaseUrl(){return a280_0x1ddc2d();}
1
+ (function(_0x55050a,_0x55dfb5){const _0x38e2ad=a280_0x1f5f,_0x2c53fe=_0x55050a();while(!![]){try{const _0x3a5bd4=parseInt(_0x38e2ad(0x198))/0x1+parseInt(_0x38e2ad(0x190))/0x2*(-parseInt(_0x38e2ad(0x19c))/0x3)+-parseInt(_0x38e2ad(0x193))/0x4*(-parseInt(_0x38e2ad(0x192))/0x5)+parseInt(_0x38e2ad(0x191))/0x6+parseInt(_0x38e2ad(0x195))/0x7*(parseInt(_0x38e2ad(0x19b))/0x8)+-parseInt(_0x38e2ad(0x19a))/0x9*(-parseInt(_0x38e2ad(0x197))/0xa)+parseInt(_0x38e2ad(0x18f))/0xb*(-parseInt(_0x38e2ad(0x196))/0xc);if(_0x3a5bd4===_0x55dfb5)break;else _0x2c53fe['push'](_0x2c53fe['shift']());}catch(_0x3eeb0d){_0x2c53fe['push'](_0x2c53fe['shift']());}}}(a280_0x5bb9,0x6c52f));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a280_0x54d4c2,getMultiAppConfigs as a280_0x240063,getTemplateBaseUrl as a280_0x22b43c}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x37350e){const _0x56bfc1=a280_0x1f5f,_0x4f1d25=readRawConfig(_0x37350e);return _0x4f1d25[_0x56bfc1(0x199)]&&typeof _0x4f1d25['env']===_0x56bfc1(0x194)&&initEnv(_0x4f1d25['env']),_0x4f1d25;}function a280_0x5bb9(){const _0x5c9a89=['string','116305KJPiFA','12SUMnhd','10LHCths','325893IjlGaF','env','3086613GuKTzX','216GZzfCa','993gqieqJ','17663129vTyscS','1822CVrfcy','4196142abDhgs','4795dIkdLW','2228tCAkaY'];a280_0x5bb9=function(){return _0x5c9a89;};return a280_0x5bb9();}export function getConfigAppCode(){return a280_0x54d4c2();}export function getMultiAppConfigs(_0x1d4ac5='project'){return a280_0x240063(_0x1d4ac5);}function a280_0x1f5f(_0x167325,_0xaef339){_0x167325=_0x167325-0x18f;const _0x5bb90c=a280_0x5bb9();let _0x1f5ff7=_0x5bb90c[_0x167325];return _0x1f5ff7;}export function getTemplateBaseUrl(){return a280_0x22b43c();}
@@ -1 +1 @@
1
- (function(_0x69e14e,_0x1e5883){const _0x284b3e=a281_0x56f6,_0x5a05f1=_0x69e14e();while(!![]){try{const _0x1593a3=parseInt(_0x284b3e(0x18f))/0x1*(-parseInt(_0x284b3e(0x197))/0x2)+-parseInt(_0x284b3e(0x194))/0x3*(-parseInt(_0x284b3e(0x18d))/0x4)+parseInt(_0x284b3e(0x189))/0x5+parseInt(_0x284b3e(0x193))/0x6+-parseInt(_0x284b3e(0x196))/0x7*(parseInt(_0x284b3e(0x195))/0x8)+-parseInt(_0x284b3e(0x188))/0x9*(parseInt(_0x284b3e(0x18b))/0xa)+-parseInt(_0x284b3e(0x190))/0xb*(-parseInt(_0x284b3e(0x18e))/0xc);if(_0x1593a3===_0x1e5883)break;else _0x5a05f1['push'](_0x5a05f1['shift']());}catch(_0x3c5b4e){_0x5a05f1['push'](_0x5a05f1['shift']());}}}(a281_0xcd91,0x3a9d6));function a281_0x56f6(_0x27d637,_0x1485ef){_0x27d637=_0x27d637-0x188;const _0xcd9142=a281_0xcd91();let _0x56f6a6=_0xcd9142[_0x27d637];return _0x56f6a6;}function toFiniteNumber(_0x3b1954){const _0x41c16a=a281_0x56f6;if(typeof _0x3b1954===_0x41c16a(0x191)&&Number[_0x41c16a(0x18c)](_0x3b1954))return _0x3b1954;if(typeof _0x3b1954===_0x41c16a(0x18a)){const _0x4c2ef4=_0x3b1954['trim']();if(!_0x4c2ef4)return undefined;const _0x21cf02=Number(_0x4c2ef4);if(Number[_0x41c16a(0x18c)](_0x21cf02))return _0x21cf02;}return undefined;}function a281_0xcd91(){const _0x578595=['45ksWoHh','2534168llHjSV','7DYMKnA','8276mzLdyd','63NGFmPa','1089695OOlvHi','string','505870KzRmtl','isFinite','50744sKlAxb','1516104ESdCCR','97LlQjaL','77qmGFGq','number','object','118374eWFNFL'];a281_0xcd91=function(){return _0x578595;};return a281_0xcd91();}export function normalizeEntityWithIdResponse(_0x48eb53){const _0x4c174d=a281_0x56f6,_0x7019b7=toFiniteNumber(_0x48eb53);if(_0x7019b7!==undefined)return{'id':_0x7019b7,'entity':{'id':_0x7019b7}};if(!_0x48eb53||typeof _0x48eb53!==_0x4c174d(0x192))return{'id':undefined,'entity':{}};const _0x543b6f={..._0x48eb53},_0x22f681=toFiniteNumber(_0x543b6f['id']);return _0x22f681!==undefined&&(_0x543b6f['id']=_0x22f681),{'id':_0x22f681,'entity':_0x543b6f};}
1
+ (function(_0x9799f1,_0x121913){const _0x555600=a281_0x1c09,_0x49e99a=_0x9799f1();while(!![]){try{const _0x470455=parseInt(_0x555600(0x1ef))/0x1*(-parseInt(_0x555600(0x1f1))/0x2)+parseInt(_0x555600(0x1f4))/0x3*(parseInt(_0x555600(0x1fe))/0x4)+-parseInt(_0x555600(0x1ff))/0x5+-parseInt(_0x555600(0x1f3))/0x6*(-parseInt(_0x555600(0x1f0))/0x7)+parseInt(_0x555600(0x1fc))/0x8+-parseInt(_0x555600(0x1f9))/0x9*(-parseInt(_0x555600(0x1fb))/0xa)+-parseInt(_0x555600(0x1f5))/0xb*(parseInt(_0x555600(0x1f8))/0xc);if(_0x470455===_0x121913)break;else _0x49e99a['push'](_0x49e99a['shift']());}catch(_0x1f2171){_0x49e99a['push'](_0x49e99a['shift']());}}}(a281_0x204c,0x4fcf7));function toFiniteNumber(_0x1afd89){const _0x4f9f9c=a281_0x1c09;if(typeof _0x1afd89===_0x4f9f9c(0x1fa)&&Number[_0x4f9f9c(0x1f7)](_0x1afd89))return _0x1afd89;if(typeof _0x1afd89===_0x4f9f9c(0x1f2)){const _0x46f9e0=_0x1afd89[_0x4f9f9c(0x1fd)]();if(!_0x46f9e0)return undefined;const _0x2b02cb=Number(_0x46f9e0);if(Number[_0x4f9f9c(0x1f7)](_0x2b02cb))return _0x2b02cb;}return undefined;}export function normalizeEntityWithIdResponse(_0x3a4d31){const _0x506246=a281_0x1c09,_0x543791=toFiniteNumber(_0x3a4d31);if(_0x543791!==undefined)return{'id':_0x543791,'entity':{'id':_0x543791}};if(!_0x3a4d31||typeof _0x3a4d31!==_0x506246(0x1f6))return{'id':undefined,'entity':{}};const _0x3e4b84={..._0x3a4d31},_0x5c22d5=toFiniteNumber(_0x3e4b84['id']);return _0x5c22d5!==undefined&&(_0x3e4b84['id']=_0x5c22d5),{'id':_0x5c22d5,'entity':_0x3e4b84};}function a281_0x1c09(_0x4b44b6,_0xf9d974){_0x4b44b6=_0x4b44b6-0x1ef;const _0x204cea=a281_0x204c();let _0x1c09fa=_0x204cea[_0x4b44b6];return _0x1c09fa;}function a281_0x204c(){const _0x22ed6c=['number','594850tHgzEH','5131032dkdOba','trim','348dGgpMT','2283640CDnZAx','3NsohDh','49nETsNR','200406PAPYnR','string','549348wRQiGA','6876bhXkfq','5680609MWJqQk','object','isFinite','12whYYxH','18gxYYUM'];a281_0x204c=function(){return _0x22ed6c;};return a281_0x204c();}
@@ -1 +1 @@
1
- (function(_0x5334f1,_0x309992){const _0x28fbba=a282_0x4dfd,_0x288d78=_0x5334f1();while(!![]){try{const _0x45b705=parseInt(_0x28fbba(0x1c3))/0x1+-parseInt(_0x28fbba(0x1c9))/0x2+parseInt(_0x28fbba(0x1c4))/0x3*(parseInt(_0x28fbba(0x1cb))/0x4)+-parseInt(_0x28fbba(0x1cc))/0x5+-parseInt(_0x28fbba(0x1c8))/0x6*(-parseInt(_0x28fbba(0x1c7))/0x7)+parseInt(_0x28fbba(0x1ca))/0x8*(parseInt(_0x28fbba(0x1c6))/0x9)+-parseInt(_0x28fbba(0x1c5))/0xa;if(_0x45b705===_0x309992)break;else _0x288d78['push'](_0x288d78['shift']());}catch(_0x49f444){_0x288d78['push'](_0x288d78['shift']());}}}(a282_0x3e39,0x3ffeb));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a282_0x4dfd(_0x3affc6,_0x226ec0){_0x3affc6=_0x3affc6-0x1c3;const _0x3e391d=a282_0x3e39();let _0x4dfdd4=_0x3e391d[_0x3affc6];return _0x4dfdd4;}export async function copyDir(_0x3fe4ed,_0x5eb8e8){const _0xbf3fcd=statSync(_0x3fe4ed);if(_0xbf3fcd['isDirectory']()){!existsSync(_0x5eb8e8)&&mkdirSync(_0x5eb8e8,{'recursive':!![]});const _0x36f271=readdirSync(_0x3fe4ed);for(const _0x38ed1c of _0x36f271){await copyDir(join(_0x3fe4ed,_0x38ed1c),join(_0x5eb8e8,_0x38ed1c));}}else copyFileSync(_0x3fe4ed,_0x5eb8e8);}function a282_0x3e39(){const _0x52a537=['629538tnIFqV','51848rmKayF','953404PJWxAZ','2264990KSBRgi','467900WwhMDp','6GRPupT','7124640qLmgSu','549wfZboF','217XEwWCt','77886gavdIp'];a282_0x3e39=function(){return _0x52a537;};return a282_0x3e39();}export function ensureDir(_0x564d70){!existsSync(_0x564d70)&&mkdirSync(_0x564d70,{'recursive':!![]});}export function pathExists(_0x4d1a31){return existsSync(_0x4d1a31);}
1
+ (function(_0x5c6393,_0x3dc5cf){const _0x46ca4d=a282_0x2b88,_0x1e35cd=_0x5c6393();while(!![]){try{const _0x39003d=parseInt(_0x46ca4d(0xd7))/0x1+parseInt(_0x46ca4d(0xde))/0x2*(-parseInt(_0x46ca4d(0xd9))/0x3)+parseInt(_0x46ca4d(0xdd))/0x4+parseInt(_0x46ca4d(0xdc))/0x5+parseInt(_0x46ca4d(0xdb))/0x6+parseInt(_0x46ca4d(0xdf))/0x7*(-parseInt(_0x46ca4d(0xd8))/0x8)+-parseInt(_0x46ca4d(0xda))/0x9;if(_0x39003d===_0x3dc5cf)break;else _0x1e35cd['push'](_0x1e35cd['shift']());}catch(_0x2b4988){_0x1e35cd['push'](_0x1e35cd['shift']());}}}(a282_0x1a8d,0x37c80));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a282_0x1a8d(){const _0x14fac3=['920125irCXJw','1645120qIZEjm','164yeQSZi','1743NZWRLu','104818CUJXvl','1672FuvOQu','3453mIUxqO','4445631FHdjkM','1012434zeGhvF'];a282_0x1a8d=function(){return _0x14fac3;};return a282_0x1a8d();}import{join}from'node:path';export async function copyDir(_0x45264c,_0x3245b0){const _0x5453fd=statSync(_0x45264c);if(_0x5453fd['isDirectory']()){!existsSync(_0x3245b0)&&mkdirSync(_0x3245b0,{'recursive':!![]});const _0x1e822b=readdirSync(_0x45264c);for(const _0x47f45f of _0x1e822b){await copyDir(join(_0x45264c,_0x47f45f),join(_0x3245b0,_0x47f45f));}}else copyFileSync(_0x45264c,_0x3245b0);}export function ensureDir(_0x547a92){!existsSync(_0x547a92)&&mkdirSync(_0x547a92,{'recursive':!![]});}function a282_0x2b88(_0x1ddf93,_0x50036a){_0x1ddf93=_0x1ddf93-0xd7;const _0x1a8d08=a282_0x1a8d();let _0x2b885d=_0x1a8d08[_0x1ddf93];return _0x2b885d;}export function pathExists(_0xcf35f5){return existsSync(_0xcf35f5);}
@@ -1 +1 @@
1
- const a283_0x3f57de=a283_0x4241;(function(_0x3f8bbd,_0x5d2e39){const _0x540dd2=a283_0x4241,_0x574e3f=_0x3f8bbd();while(!![]){try{const _0x71863=parseInt(_0x540dd2(0x1f9))/0x1+-parseInt(_0x540dd2(0x1e9))/0x2*(-parseInt(_0x540dd2(0x1e7))/0x3)+-parseInt(_0x540dd2(0x1f4))/0x4*(parseInt(_0x540dd2(0x1f8))/0x5)+-parseInt(_0x540dd2(0x1e5))/0x6+parseInt(_0x540dd2(0x1ef))/0x7+parseInt(_0x540dd2(0x1f1))/0x8+parseInt(_0x540dd2(0x1e3))/0x9*(-parseInt(_0x540dd2(0x1f5))/0xa);if(_0x71863===_0x5d2e39)break;else _0x574e3f['push'](_0x574e3f['shift']());}catch(_0x2e6bc2){_0x574e3f['push'](_0x574e3f['shift']());}}}(a283_0x36b6,0x7b605));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 _0x7bde43=a283_0x4241,_0x3f03ad=getTemplateBaseUrl();return _0x3f03ad+_0x7bde43(0x1f3);}const CACHE_DIR=join(homedir(),a283_0x3f57de(0x201),'cache');function a283_0x36b6(){const _0x5b61cf=['336680QDmqKy','keys','/skills/guides.json','376RpGdVr','1026390PJfrPE','length','entries','21990BrzKYK','958700ZBAjIa','path','extendContent','.md','trimEnd','lastUpdated','\x0a\x0a>更新时间:','guides','.lovrabet','statusText','push','status','27JQtYng','application/json','5221050XpFQze','skillTemplate','560292DCeIoT','map','8EduhuJ','object','CDN\x20数据中缺少\x20skillTemplate','CDN\x20返回数据格式错误','utf-8','replace','2443084MhCyUU','content'];a283_0x36b6=function(){return _0x5b61cf;};return a283_0x36b6();}export async function fetchGuidesFromCDN(){const _0x3be774=a283_0x3f57de,_0x4af0dd=getGuidesCdnUrl(),_0x4da2ca=await fetch(_0x4af0dd,{'headers':{'Accept':_0x3be774(0x1e4)}});if(!_0x4da2ca['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x4da2ca[_0x3be774(0x1e2)]+'\x20'+_0x4da2ca[_0x3be774(0x1e0)]);const _0x14613e=await _0x4da2ca['json']();if(!_0x14613e[_0x3be774(0x200)]||typeof _0x14613e['guides']!==_0x3be774(0x1ea))throw new Error(_0x3be774(0x1ec));return _0x14613e;}export function writeGuidesToProject(_0x3ef61c,_0x1a686a,_0xa9fbbc='.lovrabet/skill/guides',_0x47fc0d){const _0x5e9d37=a283_0x3f57de,_0x13c373=join(_0x1a686a,_0xa9fbbc);mkdirSync(_0x13c373,{'recursive':!![]});for(const [_0x16a865,_0x5e70ee]of Object['entries'](_0x3ef61c['guides'])){let _0x2e0ba8=_0x5e70ee[_0x5e9d37(0x1f0)];_0x5e70ee[_0x5e9d37(0x1fe)]&&(_0x2e0ba8=appendUpdateTime(_0x2e0ba8,_0x5e70ee[_0x5e9d37(0x1fe)])),writeFileSync(join(_0x13c373,_0x16a865+_0x5e9d37(0x1fc)),_0x2e0ba8,'utf-8');}}export function appendUpdateTime(_0x58e014,_0x4d6fca){const _0x2c341d=a283_0x3f57de;return _0x58e014=_0x58e014[_0x2c341d(0x1ee)](/\n*>更新时间:.*$/m,''),_0x58e014[_0x2c341d(0x1fd)]()+(_0x2c341d(0x1ff)+_0x4d6fca);}export function getSkillTemplate(_0x5da0a3){return _0x5da0a3['skillTemplate']?.['content']||'';}export function appendExtendContents(_0x2e96a4,_0x37c37a,_0x2ad023){const _0x9b5c04=a283_0x3f57de,_0x27f099=[];for(const [,_0x3f4540]of Object[_0x9b5c04(0x1f7)](_0x37c37a['guides'])){_0x3f4540[_0x9b5c04(0x1fb)]&&_0x27f099[_0x9b5c04(0x1e1)](_0x3f4540['extendContent']['trimEnd']());}if(_0x27f099[_0x9b5c04(0x1f6)]===0x0)return _0x2e96a4;return _0x2e96a4[_0x9b5c04(0x1fd)]()+'\x0a\x0a'+_0x27f099['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x33d877,_0x5451d1,_0x2890b9){const _0x1fb933=a283_0x3f57de,_0x82784=getSkillTemplate(_0x33d877);if(!_0x82784)throw new Error(_0x1fb933(0x1eb));const _0x57b4bd=dirname(_0x5451d1);mkdirSync(_0x57b4bd,{'recursive':!![]});let _0x5881a4=_0x82784[_0x1fb933(0x1ee)](/\{\{IDE_NAME\}\}/g,_0x2890b9);_0x5881a4=appendExtendContents(_0x5881a4,_0x33d877),_0x33d877['skillTemplate'][_0x1fb933(0x1fe)]&&(_0x5881a4=appendUpdateTime(_0x5881a4,_0x33d877[_0x1fb933(0x1e6)][_0x1fb933(0x1fe)])),writeFileSync(_0x5451d1,_0x5881a4,_0x1fb933(0x1ed));}function a283_0x4241(_0x3cd4d4,_0x4eff0b){_0x3cd4d4=_0x3cd4d4-0x1e0;const _0x36b6c7=a283_0x36b6();let _0x424157=_0x36b6c7[_0x3cd4d4];return _0x424157;}export async function installGuides(_0x227a6b){const _0xee09c9=a283_0x3f57de,_0x4b662a=await fetchGuidesFromCDN();return writeGuidesToProject(_0x4b662a,_0x227a6b),Object[_0xee09c9(0x1f2)](_0x4b662a['guides'])[_0xee09c9(0x1f6)];}export function getGuidesSummary(_0x188926){const _0x3d9bcf=a283_0x3f57de;return Object[_0x3d9bcf(0x1f7)](_0x188926[_0x3d9bcf(0x200)])[_0x3d9bcf(0x1e8)](([_0x5ea482,_0x1b47e2])=>({'key':_0x5ea482,'title':_0x1b47e2['title'],'path':_0x1b47e2[_0x3d9bcf(0x1fa)]}));}
1
+ const a283_0x27a2aa=a283_0x2de9;(function(_0x329523,_0x57ef18){const _0x1135b9=a283_0x2de9,_0x3ca1f8=_0x329523();while(!![]){try{const _0x175d63=parseInt(_0x1135b9(0x203))/0x1+-parseInt(_0x1135b9(0x1f5))/0x2*(-parseInt(_0x1135b9(0x1fa))/0x3)+-parseInt(_0x1135b9(0x1fd))/0x4+parseInt(_0x1135b9(0x1f8))/0x5+-parseInt(_0x1135b9(0x1f2))/0x6*(-parseInt(_0x1135b9(0x210))/0x7)+parseInt(_0x1135b9(0x1f1))/0x8+parseInt(_0x1135b9(0x20c))/0x9*(-parseInt(_0x1135b9(0x1f7))/0xa);if(_0x175d63===_0x57ef18)break;else _0x3ca1f8['push'](_0x3ca1f8['shift']());}catch(_0x487283){_0x3ca1f8['push'](_0x3ca1f8['shift']());}}}(a283_0x5828,0xca28c));function a283_0x2de9(_0x3993eb,_0x4855e4){_0x3993eb=_0x3993eb-0x1f1;const _0x58287b=a283_0x5828();let _0x2de974=_0x58287b[_0x3993eb];return _0x2de974;}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 _0x60d1cb=getTemplateBaseUrl();return _0x60d1cb+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a283_0x27a2aa(0x205),a283_0x27a2aa(0x201));export async function fetchGuidesFromCDN(){const _0x4122c3=a283_0x27a2aa,_0xd0aef8=getGuidesCdnUrl(),_0x3cbe71=await fetch(_0xd0aef8,{'headers':{'Accept':_0x4122c3(0x211)}});if(!_0x3cbe71['ok'])throw new Error('CDN\x20request\x20failed:\x20'+_0x3cbe71[_0x4122c3(0x1ff)]+'\x20'+_0x3cbe71[_0x4122c3(0x1f6)]);const _0x4a6600=await _0x3cbe71[_0x4122c3(0x209)]();if(!_0x4a6600['guides']||typeof _0x4a6600['guides']!==_0x4122c3(0x20d))throw new Error(_0x4122c3(0x1f9));return _0x4a6600;}export function writeGuidesToProject(_0x50762f,_0x1fb52a,_0x19d419='.lovrabet/skill/guides',_0x1340bd){const _0x48a908=a283_0x27a2aa,_0x5013b1=join(_0x1fb52a,_0x19d419);mkdirSync(_0x5013b1,{'recursive':!![]});for(const [_0x4969d6,_0x5da11a]of Object[_0x48a908(0x207)](_0x50762f[_0x48a908(0x20a)])){let _0x4a2010=_0x5da11a[_0x48a908(0x208)];_0x5da11a[_0x48a908(0x1f4)]&&(_0x4a2010=appendUpdateTime(_0x4a2010,_0x5da11a[_0x48a908(0x1f4)])),writeFileSync(join(_0x5013b1,_0x4969d6+'.md'),_0x4a2010,_0x48a908(0x202));}}export function appendUpdateTime(_0x4aa872,_0x4905e5){const _0x222503=a283_0x27a2aa;return _0x4aa872=_0x4aa872['replace'](/\n*>更新时间:.*$/m,''),_0x4aa872[_0x222503(0x1fc)]()+(_0x222503(0x1fe)+_0x4905e5);}function a283_0x5828(){const _0x7cb3e3=['json','guides','title','20135943DcRgCq','object','CDN\x20data\x20is\x20missing\x20skillTemplate','map','7mfqwzB','application/json','extendContent','10660584HYQUYL','580422QAVGqc','skillTemplate','lastUpdated','10Zaouhq','statusText','10FuosTR','1993110rcGJMo','CDN\x20returned\x20invalid\x20data','509697UAuVRa','replace','trimEnd','3390892LRKJcb','\x0a\x0a>更新时间:','status','push','cache','utf-8','1235667qvTkJZ','length','.lovrabet','keys','entries','content'];a283_0x5828=function(){return _0x7cb3e3;};return a283_0x5828();}export function getSkillTemplate(_0x1e21bf){const _0x19262c=a283_0x27a2aa;return _0x1e21bf[_0x19262c(0x1f3)]?.[_0x19262c(0x208)]||'';}export function appendExtendContents(_0x2f01af,_0x44bb7a,_0x565d16){const _0x37c46c=a283_0x27a2aa,_0x2b8fd0=[];for(const [,_0x1175a6]of Object[_0x37c46c(0x207)](_0x44bb7a[_0x37c46c(0x20a)])){_0x1175a6['extendContent']&&_0x2b8fd0[_0x37c46c(0x200)](_0x1175a6[_0x37c46c(0x212)][_0x37c46c(0x1fc)]());}if(_0x2b8fd0[_0x37c46c(0x204)]===0x0)return _0x2f01af;return _0x2f01af[_0x37c46c(0x1fc)]()+'\x0a\x0a'+_0x2b8fd0['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x5c4fe9,_0x53f347,_0x47ce60){const _0x4cd6cb=a283_0x27a2aa,_0xce88e4=getSkillTemplate(_0x5c4fe9);if(!_0xce88e4)throw new Error(_0x4cd6cb(0x20e));const _0x6c6b67=dirname(_0x53f347);mkdirSync(_0x6c6b67,{'recursive':!![]});let _0x3fd437=_0xce88e4[_0x4cd6cb(0x1fb)](/\{\{IDE_NAME\}\}/g,_0x47ce60);_0x3fd437=appendExtendContents(_0x3fd437,_0x5c4fe9),_0x5c4fe9[_0x4cd6cb(0x1f3)][_0x4cd6cb(0x1f4)]&&(_0x3fd437=appendUpdateTime(_0x3fd437,_0x5c4fe9[_0x4cd6cb(0x1f3)][_0x4cd6cb(0x1f4)])),writeFileSync(_0x53f347,_0x3fd437,'utf-8');}export async function installGuides(_0x17bb41){const _0x43cd2c=a283_0x27a2aa,_0x3de8a2=await fetchGuidesFromCDN();return writeGuidesToProject(_0x3de8a2,_0x17bb41),Object[_0x43cd2c(0x206)](_0x3de8a2[_0x43cd2c(0x20a)])['length'];}export function getGuidesSummary(_0x20d2e4){const _0x2f7dc4=a283_0x27a2aa;return Object[_0x2f7dc4(0x207)](_0x20d2e4[_0x2f7dc4(0x20a)])[_0x2f7dc4(0x20f)](([_0x47326b,_0x37e6f4])=>({'key':_0x47326b,'title':_0x37e6f4[_0x2f7dc4(0x20b)],'path':_0x37e6f4['path']}));}