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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (365) 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-business-group-update.md +17 -6
  332. package/skills/rabetbase/references/rabetbase-dataset-detail.md +1 -1
  333. package/skills/rabetbase/references/rabetbase-db-analyze.md +3 -3
  334. package/skills/rabetbase/references/rabetbase-db-detail.md +2 -2
  335. package/skills/rabetbase/references/rabetbase-db-diff-refresh.md +4 -4
  336. package/skills/rabetbase/references/rabetbase-db-diff.md +6 -9
  337. package/skills/rabetbase/references/rabetbase-doctor.md +1 -1
  338. package/skills/rabetbase/references/rabetbase-init.md +57 -51
  339. package/skills/rabetbase/references/rabetbase-kb.md +2 -0
  340. package/skills/rabetbase/references/rabetbase-page-create.md +1 -1
  341. package/skills/rabetbase/references/rabetbase-page-custom-detail.md +3 -3
  342. package/skills/rabetbase/references/rabetbase-page-custom-list.md +2 -2
  343. package/skills/rabetbase/references/rabetbase-project-create.md +12 -3
  344. package/skills/rabetbase/references/rabetbase-project-upgrade.md +2 -2
  345. package/skills/rabetbase/references/rabetbase-role-user-resolve.md +2 -2
  346. package/skills/rabetbase/references/rabetbase-user-account.md +1 -1
  347. package/skills/rabetbase/references/rabetbase-workspace.md +6 -6
  348. package/skills/rabetbase.manifest.json +4 -3
  349. package/templates/README.md +17 -28
  350. package/templates/generate-api/api.ts.tpl +3 -3
  351. package/templates/generate-api/client.ts.tpl +10 -37
  352. package/lib/commands/data/filter.d.ts +0 -7
  353. package/lib/commands/data/filter.js +0 -1
  354. package/lib/commands/data/getOne.d.ts +0 -7
  355. package/lib/commands/data/getOne.js +0 -1
  356. package/lib/commands/data/index.d.ts +0 -8
  357. package/lib/commands/data/index.js +0 -1
  358. package/lib/commands/data/shared.d.ts +0 -33
  359. package/lib/commands/data/shared.js +0 -1
  360. package/lib/commands/init/index.d.ts +0 -11
  361. package/lib/commands/init/index.js +0 -1
  362. package/lib/utils/rules-cdn.d.ts +0 -38
  363. package/lib/utils/rules-cdn.js +0 -1
  364. package/templates/rules/lovrabet_rules.mdc.tpl +0 -893
  365. package/templates/skill/SKILL.md.tpl +0 -120
@@ -1 +1 @@
1
- const a265_0x2e1ad5=a265_0x277b;function a265_0x3cf8(){const _0x1127d7=['Lovrabet','skills@latest','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','36536kLgMQR','12FjFtdh','log','add','toString','7wLxOfV','--skill','20KiwbiA','stdio','882GKEabx','presence','exit\x20','warn','filter','reason','NPM_CONFIG_GLOBAL','8841985SncTci','\x22\x20install\x20state:\x20','code','message','join','INSTALL_PARTIAL','Skill\x20\x22','Installer\x20reported\x20','skill','inherit','826133mkhvtT','state','CHILD_EXIT_NONZERO','EACCES','CHILD_TERMINATED','npx\x20terminated\x20by\x20signal\x20','status','5246864lqBkJd','2489097lYjWRV','lovrabet/lovrabet-skill','match','pipe','yes','signal','NPX_NOT_FOUND','rabetbase','lovrabet/rabetbase','ENOENT','unverifiable','expectedSkillName','stdout','error','SKILL_NOT_INSTALLED','trim','npm_config_global','57945vVXVmM','present','npx','!\x20Could\x20not\x20verify\x20\x22','stderr','343074MPKihZ'];a265_0x3cf8=function(){return _0x1127d7;};return a265_0x3cf8();}(function(_0xdfd45f,_0x45b938){const _0x52fec3=a265_0x277b,_0x2134d5=_0xdfd45f();while(!![]){try{const _0x1b3501=-parseInt(_0x52fec3(0x7e))/0x1*(-parseInt(_0x52fec3(0x88))/0x2)+parseInt(_0x52fec3(0x6d))/0x3+parseInt(_0x52fec3(0x6c))/0x4+-parseInt(_0x52fec3(0x97))/0x5+parseInt(_0x52fec3(0x83))/0x6*(-parseInt(_0x52fec3(0x8c))/0x7)+parseInt(_0x52fec3(0x87))/0x8*(parseInt(_0x52fec3(0x90))/0x9)+-parseInt(_0x52fec3(0x8e))/0xa*(parseInt(_0x52fec3(0xa1))/0xb);if(_0x1b3501===_0x45b938)break;else _0x2134d5['push'](_0x2134d5['shift']());}catch(_0x96abe2){_0x2134d5['push'](_0x2134d5['shift']());}}}(a265_0x3cf8,0xea965));import{spawnSync}from'node:child_process';function a265_0x277b(_0x377f60,_0x50e2a4){_0x377f60=_0x377f60-0x69;const _0x3cf8ff=a265_0x3cf8();let _0x277be2=_0x3cf8ff[_0x377f60];return _0x277be2;}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_0x2e1ad5(0x85);export const NPX_SKILLS_SUBCOMMAND_ADD=a265_0x2e1ad5(0x8a);export const NPX_SKILLS_FLAG_SKILL=a265_0x2e1ad5(0x8d);export const RABETBASE_SKILL_SOURCE=a265_0x2e1ad5(0x75);export const LEGACY_RABETBASE_SKILL_SOURCE=a265_0x2e1ad5(0x6e);export const DEFAULT_RABETBASE_SKILL_NAME=a265_0x2e1ad5(0x84);export const RABETBASE_GLOBAL_SKILL_NAME=a265_0x2e1ad5(0x74);export const RABETBASE_SKILL_GIT_SOURCE=a265_0x2e1ad5(0x86);export function resolveGlobalSkillName(_0x100326){const _0x4621e4=a265_0x2e1ad5;switch(_0x100326[_0x4621e4(0x7c)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x42b4aa){const _0x101532=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x42b4aa&&_0x101532['push'](NPX_SKILLS_FLAG_SKILL,_0x42b4aa),_0x101532;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a265_0x2e1ad5(0x80),...buildNpxSkillsAddArgv()][a265_0x2e1ad5(0x9b)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a265_0x2e1ad5(0x9b)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0xe7dd73,_0xb8389,_0x1d2de2){return{'ok':![],'status':_0xb8389,'code':_0xe7dd73,'error':'['+_0xe7dd73+']\x20'+_0x1d2de2};}function spawnOptions(_0x163887,_0xb248b4){const _0x149342=a265_0x2e1ad5,_0x5eeae4={...process.env};return delete _0x5eeae4[_0x149342(0x7d)],delete _0x5eeae4[_0x149342(0x96)],{'cwd':_0x163887,'stdio':_0xb248b4,'env':_0x5eeae4,'shell':![],..._0xb248b4===_0x149342(0x70)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x5041fa,_0x4cd33e,_0x1ec2d9,_0x9329a7){const _0x1f9f46=a265_0x2e1ad5,_0x4216e3=[_0x5041fa[_0x1f9f46(0x79)]?_0x5041fa[_0x1f9f46(0x79)][_0x1f9f46(0x8b)]():'',_0x5041fa[_0x1f9f46(0x82)]?_0x5041fa[_0x1f9f46(0x82)][_0x1f9f46(0x8b)]():''][_0x1f9f46(0x94)](Boolean)[_0x1f9f46(0x9b)]('\x0a')[_0x1f9f46(0x7c)]();_0x9329a7!==_0x1f9f46(0x70)&&_0x4216e3&&console['log'](_0x4216e3);if(_0x5041fa[_0x1f9f46(0x7a)]){const _0x26e296=_0x5041fa[_0x1f9f46(0x7a)],_0xddc9a5=_0x26e296[_0x1f9f46(0x99)]===_0x1f9f46(0x76)?_0x1f9f46(0x73):_0x26e296[_0x1f9f46(0x99)]==='EPERM'||_0x26e296['code']===_0x1f9f46(0xa4)?'PERMISSION_DENIED':'SPAWN_FAILED';return failure(_0xddc9a5,_0x5041fa[_0x1f9f46(0x6b)],_0x26e296[_0x1f9f46(0x9a)]);}if(_0x5041fa[_0x1f9f46(0x72)])return failure(_0x1f9f46(0x69),_0x5041fa[_0x1f9f46(0x6b)],_0x1f9f46(0x6a)+_0x5041fa[_0x1f9f46(0x72)]);if(_0x5041fa['status']!==0x0)return failure(_0x1f9f46(0xa3),_0x5041fa[_0x1f9f46(0x6b)],_0x4216e3||_0x1f9f46(0x92)+(_0x5041fa[_0x1f9f46(0x6b)]??'unknown'));const _0xa1da52=_0x4cd33e?resolveInstalledSkill(_0x4cd33e,_0x1ec2d9):undefined,_0x4f6450=_0x4216e3[_0x1f9f46(0x6f)](/Failed to install\s+(\d+)/i);if(_0x4f6450&&Number(_0x4f6450[0x1])>0x0){const _0x5f2bc6=_0x1f9f46(0x9e)+_0x4f6450[0x1]+'\x20failed\x20target(s)'+(_0x4216e3?':\x0a'+_0x4216e3:'');if(_0xa1da52?.['state']===_0x1f9f46(0x7f))return console[_0x1f9f46(0x93)]('!\x20'+_0x5f2bc6),{'ok':!![],'status':0x0};return failure(_0x1f9f46(0x9c),0x0,_0x5f2bc6);}if(_0xa1da52){if(_0xa1da52[_0x1f9f46(0xa2)]==='absent')return failure(_0x1f9f46(0x7b),0x0,_0x1f9f46(0x9d)+_0x4cd33e+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0xa1da52['checked']['join'](',\x20')+')');_0xa1da52[_0x1f9f46(0xa2)]===_0x1f9f46(0x77)&&console[_0x1f9f46(0x93)](_0x1f9f46(0x81)+_0x4cd33e+_0x1f9f46(0x98)+_0xa1da52[_0x1f9f46(0x95)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x27295d,_0x7952da){const _0x3722c7=a265_0x2e1ad5;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1703ca=_0x7952da?.[_0x3722c7(0x8f)]??'inherit',_0x52ebc2=resolveNpmBin(_0x3722c7(0x80)),_0x2114d1=buildNpxSkillsAddArgv(_0x7952da?.[_0x3722c7(0x9f)]),_0x1ec208=[_0x3722c7(0x80),..._0x2114d1][_0x3722c7(0x9b)]('\x20');console[_0x3722c7(0x89)]('*\x20'+_0x1ec208);const _0x1ad22d=spawnSync(_0x52ebc2,_0x2114d1,spawnOptions(_0x27295d,_0x1703ca));return normalizeSpawnResult(_0x1ad22d,undefined,undefined,_0x1703ca);}export function runNpxSkillsRemove(_0x57b0da,_0x44552f,_0x45ad0a=LEGACY_RABETBASE_SKILL_SOURCE){const _0x218f42=a265_0x2e1ad5;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x37c16f=_0x44552f?.[_0x218f42(0x8f)]??_0x218f42(0xa0),_0x4e0d5a=resolveNpmBin('npx'),_0x28af14=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x45ad0a,NPX_SKILLS_FLAG_SKILL,_0x44552f?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x44552f?.[_0x218f42(0x71)]?['-y']:[]],_0x44b4f9=[_0x4e0d5a,..._0x28af14][_0x218f42(0x9b)]('\x20');console[_0x218f42(0x89)]('*\x20'+_0x44b4f9);const _0x2df540=spawnSync(_0x4e0d5a,_0x28af14,spawnOptions(_0x57b0da,_0x37c16f));return normalizeSpawnResult(_0x2df540,undefined,undefined,_0x37c16f);}export function runNpxSkillsAddGlobal(_0x3edb60,_0x3fd59a,_0x24285b){const _0x52761b=a265_0x2e1ad5;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5c64ad=resolveNpmBin('npx'),_0x5068ee=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3fd59a,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x45a2f4=[_0x52761b(0x80),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3fd59a,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x52761b(0x9b)]('\x20');console[_0x52761b(0x89)]('*\x20'+_0x45a2f4);const _0x5d82ed=spawnSync(_0x5c64ad,_0x5068ee,spawnOptions(_0x3edb60,'pipe'));return normalizeSpawnResult(_0x5d82ed,_0x24285b?.[_0x52761b(0x78)]??resolveGlobalSkillName(_0x3fd59a),_0x24285b?.[_0x52761b(0x91)],_0x24285b?.[_0x52761b(0x8f)]);}
1
+ const a265_0x4271e1=a265_0x19af;(function(_0x3ba24b,_0x2fb559){const _0x1b9954=a265_0x19af,_0x163207=_0x3ba24b();while(!![]){try{const _0x4eb336=parseInt(_0x1b9954(0x182))/0x1+parseInt(_0x1b9954(0x15d))/0x2*(-parseInt(_0x1b9954(0x17e))/0x3)+parseInt(_0x1b9954(0x165))/0x4*(parseInt(_0x1b9954(0x17a))/0x5)+-parseInt(_0x1b9954(0x177))/0x6+-parseInt(_0x1b9954(0x180))/0x7*(-parseInt(_0x1b9954(0x17b))/0x8)+-parseInt(_0x1b9954(0x157))/0x9+-parseInt(_0x1b9954(0x16b))/0xa*(parseInt(_0x1b9954(0x15e))/0xb);if(_0x4eb336===_0x2fb559)break;else _0x163207['push'](_0x163207['shift']());}catch(_0x2a74e2){_0x163207['push'](_0x163207['shift']());}}}(a265_0x2fcc,0x2626b));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_0x4271e1(0x14e);export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a265_0x4271e1(0x174);export const RABETBASE_SKILL_SOURCE=a265_0x4271e1(0x162);export const LEGACY_RABETBASE_SKILL_SOURCE=a265_0x4271e1(0x173);export const DEFAULT_RABETBASE_SKILL_NAME=a265_0x4271e1(0x166);export const RABETBASE_GLOBAL_SKILL_NAME=a265_0x4271e1(0x183);export const RABETBASE_SKILL_GIT_SOURCE=a265_0x4271e1(0x14c);export function resolveGlobalSkillName(_0x11f06f){const _0x24c9b1=a265_0x4271e1;switch(_0x11f06f[_0x24c9b1(0x15c)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}function a265_0x19af(_0xf599fd,_0x4a96b9){_0xf599fd=_0xf599fd-0x14c;const _0x2fcc65=a265_0x2fcc();let _0x19af1b=_0x2fcc65[_0xf599fd];return _0x19af1b;}export function buildNpxSkillsAddArgv(_0x25d7e9){const _0x5da028=a265_0x4271e1,_0x1766c3=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x25d7e9&&_0x1766c3[_0x5da028(0x160)](NPX_SKILLS_FLAG_SKILL,_0x25d7e9),_0x1766c3;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a265_0x4271e1(0x151),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a265_0x4271e1(0x17c)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x3d8ffe,_0x7b353d,_0xaa5e6a){return{'ok':![],'status':_0x7b353d,'code':_0x3d8ffe,'error':'['+_0x3d8ffe+']\x20'+_0xaa5e6a};}function spawnOptions(_0x1b13d7,_0x55cfd7){const _0x1d5c13=a265_0x4271e1,_0x56455e={...process.env};return delete _0x56455e['npm_config_global'],delete _0x56455e[_0x1d5c13(0x152)],{'cwd':_0x1b13d7,'stdio':_0x55cfd7,'env':_0x56455e,'shell':![],..._0x55cfd7==='pipe'?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x4a506d,_0xd04ee7,_0x194b96,_0xd9ca67){const _0x5c527a=a265_0x4271e1,_0x3712d4=[_0x4a506d[_0x5c527a(0x178)]?_0x4a506d[_0x5c527a(0x178)]['toString']():'',_0x4a506d['stderr']?_0x4a506d[_0x5c527a(0x181)]['toString']():''][_0x5c527a(0x16e)](Boolean)[_0x5c527a(0x17c)]('\x0a')[_0x5c527a(0x15c)]();_0xd9ca67!==_0x5c527a(0x164)&&_0x3712d4&&console[_0x5c527a(0x15b)](_0x3712d4);if(_0x4a506d['error']){const _0x405133=_0x4a506d[_0x5c527a(0x16f)],_0x3263e1=_0x405133[_0x5c527a(0x150)]==='ENOENT'?'NPX_NOT_FOUND':_0x405133[_0x5c527a(0x150)]===_0x5c527a(0x16d)||_0x405133['code']===_0x5c527a(0x186)?_0x5c527a(0x155):_0x5c527a(0x158);return failure(_0x3263e1,_0x4a506d[_0x5c527a(0x16a)],_0x405133['message']);}if(_0x4a506d[_0x5c527a(0x153)])return failure(_0x5c527a(0x14d),_0x4a506d[_0x5c527a(0x16a)],_0x5c527a(0x154)+_0x4a506d[_0x5c527a(0x153)]);if(_0x4a506d['status']!==0x0)return failure(_0x5c527a(0x15f),_0x4a506d[_0x5c527a(0x16a)],_0x3712d4||_0x5c527a(0x17d)+(_0x4a506d['status']??_0x5c527a(0x17f)));const _0x1777d8=_0xd04ee7?resolveInstalledSkill(_0xd04ee7,_0x194b96):undefined,_0x4289b4=_0x3712d4[_0x5c527a(0x187)](/Failed to install\s+(\d+)/i);if(_0x4289b4&&Number(_0x4289b4[0x1])>0x0){const _0x735b52='Installer\x20reported\x20'+_0x4289b4[0x1]+_0x5c527a(0x159)+(_0x3712d4?':\x0a'+_0x3712d4:'');if(_0x1777d8?.[_0x5c527a(0x184)]===_0x5c527a(0x179))return console[_0x5c527a(0x175)]('!\x20'+_0x735b52),{'ok':!![],'status':0x0};return failure('INSTALL_PARTIAL',0x0,_0x735b52);}if(_0x1777d8){if(_0x1777d8[_0x5c527a(0x184)]===_0x5c527a(0x169))return failure(_0x5c527a(0x156),0x0,_0x5c527a(0x171)+_0xd04ee7+_0x5c527a(0x15a)+_0x1777d8[_0x5c527a(0x161)][_0x5c527a(0x17c)](',\x20')+')');_0x1777d8[_0x5c527a(0x184)]===_0x5c527a(0x185)&&console[_0x5c527a(0x175)](_0x5c527a(0x168)+_0xd04ee7+_0x5c527a(0x163)+_0x1777d8['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x3f9067,_0x1da6ef){const _0x3b06ad=a265_0x4271e1;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5a401a=_0x1da6ef?.['stdio']??_0x3b06ad(0x176),_0x45b1b7=resolveNpmBin(_0x3b06ad(0x151)),_0x7af881=buildNpxSkillsAddArgv(_0x1da6ef?.[_0x3b06ad(0x16c)]),_0x5d059d=[_0x3b06ad(0x151),..._0x7af881][_0x3b06ad(0x17c)]('\x20');console[_0x3b06ad(0x15b)]('*\x20'+_0x5d059d);const _0x1dae24=spawnSync(_0x45b1b7,_0x7af881,spawnOptions(_0x3f9067,_0x5a401a));return normalizeSpawnResult(_0x1dae24,undefined,undefined,_0x5a401a);}export function runNpxSkillsRemove(_0x5cd495,_0x3e9c57,_0x229155=LEGACY_RABETBASE_SKILL_SOURCE){const _0x9d48c=a265_0x4271e1;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x539bc2=_0x3e9c57?.['stdio']??'inherit',_0x26605e=resolveNpmBin(_0x9d48c(0x151)),_0x200bff=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x9d48c(0x167),_0x229155,NPX_SKILLS_FLAG_SKILL,_0x3e9c57?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x3e9c57?.[_0x9d48c(0x14f)]?['-y']:[]],_0x3a359c=[_0x26605e,..._0x200bff][_0x9d48c(0x17c)]('\x20');console['log']('*\x20'+_0x3a359c);const _0x23ecc9=spawnSync(_0x26605e,_0x200bff,spawnOptions(_0x5cd495,_0x539bc2));return normalizeSpawnResult(_0x23ecc9,undefined,undefined,_0x539bc2);}function a265_0x2fcc(){const _0x14dd02=['23930JvhEBD','skill','EPERM','filter','error','presence','Skill\x20\x22','expectedSkillName','lovrabet/lovrabet-skill','--skill','warn','inherit','621318yzjkMW','stdout','present','485HzGCOc','38328dmTuDK','join','exit\x20','3yqaJUF','unknown','315FXBHQs','stderr','230603pdSaqd','rabetbase','state','unverifiable','EACCES','match','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','CHILD_TERMINATED','skills@latest','yes','code','npx','NPM_CONFIG_GLOBAL','signal','npx\x20terminated\x20by\x20signal\x20','PERMISSION_DENIED','SKILL_NOT_INSTALLED','2125692SoBhFm','SPAWN_FAILED','\x20failed\x20target(s)','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','log','trim','186236xuYkcu','583eguZBk','CHILD_EXIT_NONZERO','push','checked','lovrabet/rabetbase','\x22\x20install\x20state:\x20','pipe','11124eimGHM','Lovrabet','remove','!\x20Could\x20not\x20verify\x20\x22','absent','status'];a265_0x2fcc=function(){return _0x14dd02;};return a265_0x2fcc();}export function runNpxSkillsAddGlobal(_0x2d62fb,_0x2b64ea,_0x2a11ed){const _0x31775c=a265_0x4271e1;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5895bb=resolveNpmBin(_0x31775c(0x151)),_0x1145f4=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x2b64ea,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x33b016=[_0x31775c(0x151),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x2b64ea,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x31775c(0x17c)]('\x20');console['log']('*\x20'+_0x33b016);const _0x2427af=spawnSync(_0x5895bb,_0x1145f4,spawnOptions(_0x2d62fb,_0x31775c(0x164)));return normalizeSpawnResult(_0x2427af,_0x2a11ed?.[_0x31775c(0x172)]??resolveGlobalSkillName(_0x2b64ea),_0x2a11ed?.[_0x31775c(0x170)],_0x2a11ed?.['stdio']);}
@@ -1 +1 @@
1
- const a266_0x20ee7c=a266_0x4942;(function(_0x6b10ad,_0x2c7894){const _0x29aabc=a266_0x4942,_0x427f72=_0x6b10ad();while(!![]){try{const _0x281c26=parseInt(_0x29aabc(0xb4))/0x1*(-parseInt(_0x29aabc(0xb2))/0x2)+-parseInt(_0x29aabc(0xc6))/0x3*(parseInt(_0x29aabc(0xb8))/0x4)+parseInt(_0x29aabc(0xcb))/0x5*(-parseInt(_0x29aabc(0xae))/0x6)+-parseInt(_0x29aabc(0xbb))/0x7*(-parseInt(_0x29aabc(0xaf))/0x8)+parseInt(_0x29aabc(0xb1))/0x9*(-parseInt(_0x29aabc(0xb3))/0xa)+-parseInt(_0x29aabc(0xba))/0xb+parseInt(_0x29aabc(0xc7))/0xc;if(_0x281c26===_0x2c7894)break;else _0x427f72['push'](_0x427f72['shift']());}catch(_0xde9dfd){_0x427f72['push'](_0x427f72['shift']());}}}(a266_0x3219,0x214b8));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a266_0x20ee7c(0xc1),'.skill-lock.json');function a266_0x3219(){const _0xa8c5c8=['find','map','recorded','3LxrEhd','10117584OBkrXB','join','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','\x20records\x20\x22','290020SSgLOL','reason','\x20uses\x20unsupported\x20version\x20','present','18nMjvlt','8FGJhEg','not-recorded','54Hwawvz','1710bmcylz','403440hWZBcR','195ErZcbZ','unusable','skills','kind','75212VkFpwJ','utf8','2711049HzlxXL','989149acAbkl','number','object','includes','\x20has\x20no\x20skills\x20map','\x20is\x20unreadable:\x20','.agents','unverifiable'];a266_0x3219=function(){return _0xa8c5c8;};return a266_0x3219();}function a266_0x4942(_0x2dd746,_0x7615b1){_0x2dd746=_0x2dd746-0xae;const _0x32191c=a266_0x3219();let _0x494272=_0x32191c[_0x2dd746];return _0x494272;}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a266_0x20ee7c(0xc1),'skills'),join('.claude',a266_0x20ee7c(0xb6))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x54a01d,_0x5990a2){const _0x33bb5d=a266_0x20ee7c;if(!existsSync(_0x54a01d))return{'kind':_0x33bb5d(0xb0)};let _0x42d37c;try{_0x42d37c=JSON['parse'](readFileSync(_0x54a01d,_0x33bb5d(0xb9)));}catch(_0x1ca3a4){return{'kind':'unusable','reason':_0x54a01d+_0x33bb5d(0xc0)+_0x1ca3a4['message']};}const _0x319f97=_0x42d37c;if(typeof _0x319f97?.['version']!==_0x33bb5d(0xbc)||!SUPPORTED_LOCK_VERSIONS[_0x33bb5d(0xbe)](_0x319f97['version']))return{'kind':_0x33bb5d(0xb5),'reason':_0x54a01d+_0x33bb5d(0xcd)+String(_0x319f97?.['version'])};if(!_0x319f97['skills']||typeof _0x319f97[_0x33bb5d(0xb6)]!==_0x33bb5d(0xbd))return{'kind':_0x33bb5d(0xb5),'reason':_0x54a01d+_0x33bb5d(0xbf)};return _0x319f97[_0x33bb5d(0xb6)][_0x5990a2]?{'kind':_0x33bb5d(0xc5)}:{'kind':'not-recorded'};}export function resolveInstalledSkill(_0x4428ac,_0x4e3442){const _0x4659c0=a266_0x20ee7c,_0x5eaefd=_0x4e3442?.['home']??homedir(),_0x59a7e5=_0x4e3442?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x4659c0(0xc4)](_0x4bc83a=>join(_0x5eaefd,_0x4bc83a)),_0x56271b=_0x4e3442?.['lockFile']??join(_0x5eaefd,SKILL_LOCK_RELATIVE_PATH),_0x59c4a8=_0x59a7e5['map'](_0x4cf308=>join(_0x4cf308,_0x4428ac,'SKILL.md')),_0xbf4f86=_0x59c4a8[_0x4659c0(0xc3)](_0x41618b=>existsSync(_0x41618b));if(_0xbf4f86)return{'state':_0x4659c0(0xce),'path':_0xbf4f86};const _0x44168e=readLockLookup(_0x56271b,_0x4428ac);if(_0x44168e[_0x4659c0(0xb7)]===_0x4659c0(0xb5))return{'state':_0x4659c0(0xc2),'reason':_0x44168e[_0x4659c0(0xcc)]};if(_0x44168e[_0x4659c0(0xb7)]===_0x4659c0(0xc5))return{'state':_0x4659c0(0xc2),'reason':_0x56271b+_0x4659c0(0xca)+_0x4428ac+_0x4659c0(0xc9)+('('+_0x59c4a8[_0x4659c0(0xc8)](',\x20')+')')};return{'state':'absent','checked':_0x59c4a8};}
1
+ const a266_0x4a83ca=a266_0xb944;(function(_0x5476f5,_0x3cd67a){const _0x4eae03=a266_0xb944,_0x412f0e=_0x5476f5();while(!![]){try{const _0x5369f3=-parseInt(_0x4eae03(0x1b2))/0x1*(parseInt(_0x4eae03(0x1a0))/0x2)+-parseInt(_0x4eae03(0x1b0))/0x3*(parseInt(_0x4eae03(0x197))/0x4)+parseInt(_0x4eae03(0x196))/0x5*(parseInt(_0x4eae03(0x1a6))/0x6)+-parseInt(_0x4eae03(0x19f))/0x7*(parseInt(_0x4eae03(0x1a7))/0x8)+parseInt(_0x4eae03(0x1a1))/0x9*(-parseInt(_0x4eae03(0x19d))/0xa)+-parseInt(_0x4eae03(0x1ad))/0xb+parseInt(_0x4eae03(0x19a))/0xc*(parseInt(_0x4eae03(0x19e))/0xd);if(_0x5369f3===_0x3cd67a)break;else _0x412f0e['push'](_0x412f0e['shift']());}catch(_0x420c89){_0x412f0e['push'](_0x412f0e['shift']());}}}(a266_0x1adc,0x29b9a));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';function a266_0xb944(_0x23aee8,_0x26af41){_0x23aee8=_0x23aee8-0x192;const _0x1adcdf=a266_0x1adc();let _0xb944c4=_0x1adcdf[_0x23aee8];return _0xb944c4;}export const SKILL_LOCK_RELATIVE_PATH=join(a266_0x4a83ca(0x1a5),'.skill-lock.json');function a266_0x1adc(){const _0x50ea50=['skills','.agents','22062ouYtCu','8zjpBjh','kind','unusable','number','utf8','reason','1135068uhpiCd','.claude','SKILL.md','12aPgtDg','globalSkillsDirs','3UARWyh','version','join','unverifiable','includes','message','430jMYgzc','82724CRxYbD','\x20uses\x20unsupported\x20version\x20','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','5533260cFIZKD','\x20records\x20\x22','not-recorded','2590dpJlMA','13KEzpRi','562135qKowza','152038oTjyTv','3897AqHbvD','recorded','\x20is\x20unreadable:\x20'];a266_0x1adc=function(){return _0x50ea50;};return a266_0x1adc();}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a266_0x4a83ca(0x1a5),a266_0x4a83ca(0x1a4)),join(a266_0x4a83ca(0x1ae),'skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x17aa8f,_0x56edea){const _0x17ac7a=a266_0x4a83ca;if(!existsSync(_0x17aa8f))return{'kind':'not-recorded'};let _0x1cab48;try{_0x1cab48=JSON['parse'](readFileSync(_0x17aa8f,_0x17ac7a(0x1ab)));}catch(_0x4ca1f5){return{'kind':'unusable','reason':_0x17aa8f+_0x17ac7a(0x1a3)+_0x4ca1f5[_0x17ac7a(0x195)]};}const _0x140f70=_0x1cab48;if(typeof _0x140f70?.[_0x17ac7a(0x1b3)]!==_0x17ac7a(0x1aa)||!SUPPORTED_LOCK_VERSIONS[_0x17ac7a(0x194)](_0x140f70['version']))return{'kind':_0x17ac7a(0x1a9),'reason':_0x17aa8f+_0x17ac7a(0x198)+String(_0x140f70?.[_0x17ac7a(0x1b3)])};if(!_0x140f70[_0x17ac7a(0x1a4)]||typeof _0x140f70['skills']!=='object')return{'kind':_0x17ac7a(0x1a9),'reason':_0x17aa8f+'\x20has\x20no\x20skills\x20map'};return _0x140f70['skills'][_0x56edea]?{'kind':_0x17ac7a(0x1a2)}:{'kind':_0x17ac7a(0x19c)};}export function resolveInstalledSkill(_0x14043c,_0x2f47f4){const _0x162fb0=a266_0x4a83ca,_0x3b03c7=_0x2f47f4?.['home']??homedir(),_0x336a88=_0x2f47f4?.[_0x162fb0(0x1b1)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x25a675=>join(_0x3b03c7,_0x25a675)),_0x528448=_0x2f47f4?.['lockFile']??join(_0x3b03c7,SKILL_LOCK_RELATIVE_PATH),_0x190735=_0x336a88['map'](_0x2e9b7c=>join(_0x2e9b7c,_0x14043c,_0x162fb0(0x1af))),_0x3ab9b7=_0x190735['find'](_0x5bdba7=>existsSync(_0x5bdba7));if(_0x3ab9b7)return{'state':'present','path':_0x3ab9b7};const _0x3a7332=readLockLookup(_0x528448,_0x14043c);if(_0x3a7332[_0x162fb0(0x1a8)]===_0x162fb0(0x1a9))return{'state':'unverifiable','reason':_0x3a7332[_0x162fb0(0x1ac)]};if(_0x3a7332['kind']==='recorded')return{'state':_0x162fb0(0x193),'reason':_0x528448+_0x162fb0(0x19b)+_0x14043c+_0x162fb0(0x199)+('('+_0x190735[_0x162fb0(0x192)](',\x20')+')')};return{'state':'absent','checked':_0x190735};}
@@ -1 +1 @@
1
- (function(_0x851016,_0x468c12){const _0x2d6e52=a267_0x370d,_0x58770e=_0x851016();while(!![]){try{const _0x51f130=-parseInt(_0x2d6e52(0xc9))/0x1*(-parseInt(_0x2d6e52(0xbc))/0x2)+parseInt(_0x2d6e52(0xc6))/0x3*(-parseInt(_0x2d6e52(0xc3))/0x4)+parseInt(_0x2d6e52(0xcd))/0x5*(-parseInt(_0x2d6e52(0xc0))/0x6)+parseInt(_0x2d6e52(0xcb))/0x7*(parseInt(_0x2d6e52(0xc1))/0x8)+parseInt(_0x2d6e52(0xd0))/0x9+parseInt(_0x2d6e52(0xbd))/0xa+-parseInt(_0x2d6e52(0xcc))/0xb*(parseInt(_0x2d6e52(0xc4))/0xc);if(_0x51f130===_0x468c12)break;else _0x58770e['push'](_0x58770e['shift']());}catch(_0xb362eb){_0x58770e['push'](_0x58770e['shift']());}}}(a267_0x5c81,0x5bfe8));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_0x370d(_0x55ee88,_0x57d072){_0x55ee88=_0x55ee88-0xbc;const _0x5c8149=a267_0x5c81();let _0x370d21=_0x5c8149[_0x55ee88];return _0x370d21;}function isSensitiveKey(_0x2cc11b){const _0x49d5cd=a267_0x370d;return SENSITIVE_PATTERNS[_0x49d5cd(0xd1)](_0x3d397f=>_0x3d397f[_0x49d5cd(0xca)](_0x2cc11b));}function sanitizeFlags(_0x5e8c6d){const _0x5508f8=a267_0x370d,_0x36950f={};for(const [_0x479593,_0x1391bf]of Object[_0x5508f8(0xc7)](_0x5e8c6d)){isSensitiveKey(_0x479593)?_0x36950f[_0x479593]=_0x1391bf!=null&&_0x1391bf!==''?_0x5508f8(0xcf):_0x1391bf:_0x36950f[_0x479593]=_0x1391bf;}return _0x36950f;}function a267_0x5c81(){const _0x4315b2=['2046eNpmAk','3012056QxeuUf','durationMs','52CGeUIr','12qNfOjC','flags','61647umHDNa','entries','error','3063GqgSgS','test','14ySemVr','18973724zyUaQC','2780FViEQf','message','[REDACTED]','6733233OaxOZE','some','service','282GkzPkR','6253910smFXcy','rabetbase.command','stringify'];a267_0x5c81=function(){return _0x4315b2;};return a267_0x5c81();}export async function reportCommandTrace(_0x575376){const _0x226775=a267_0x370d;try{const _0x51fe48=sanitizeFlags(_0x575376[_0x226775(0xc5)]);await sendCliTraceLog({'spanName':_0x226775(0xbe),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x575376[_0x226775(0xd2)],'command.name':_0x575376['command'],'command.flags':JSON[_0x226775(0xbf)](_0x51fe48),..._0x575376['durationMs']!=null?{'command.duration_ms':_0x575376[_0x226775(0xc2)]}:{},..._0x575376[_0x226775(0xc8)]?{'command.error':_0x575376[_0x226775(0xc8)]instanceof Error?_0x575376[_0x226775(0xc8)][_0x226775(0xce)]:String(_0x575376['error'])}:{}}});}catch{}}
1
+ function a267_0x38a3(){const _0x24b775=['6586881xOYyqG','1818585XLFFPp','message','durationMs','6843685oMNMXW','stringify','rabetbase.command','88162jMQLYF','8035764UdAMub','10MXiHbc','1708868SkUDAV','20275389YWvvEn','test','some','command','[REDACTED]','error','8WDyzPs','service'];a267_0x38a3=function(){return _0x24b775;};return a267_0x38a3();}(function(_0x334cf0,_0x339cd0){const _0x148e6f=a267_0x41c0,_0x40805e=_0x334cf0();while(!![]){try{const _0x6c6e2f=-parseInt(_0x148e6f(0x178))/0x1*(-parseInt(_0x148e6f(0x176))/0x2)+-parseInt(_0x148e6f(0x170))/0x3+-parseInt(_0x148e6f(0x179))/0x4+parseInt(_0x148e6f(0x173))/0x5+parseInt(_0x148e6f(0x177))/0x6+-parseInt(_0x148e6f(0x16f))/0x7*(-parseInt(_0x148e6f(0x180))/0x8)+-parseInt(_0x148e6f(0x17a))/0x9;if(_0x6c6e2f===_0x339cd0)break;else _0x40805e['push'](_0x40805e['shift']());}catch(_0x2200be){_0x40805e['push'](_0x40805e['shift']());}}}(a267_0x38a3,0xc4307));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a267_0x41c0(_0x488725,_0x55a6f6){_0x488725=_0x488725-0x16f;const _0x38a3b5=a267_0x38a3();let _0x41c05e=_0x38a3b5[_0x488725];return _0x41c05e;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x4303f2){const _0xd93027=a267_0x41c0;return SENSITIVE_PATTERNS[_0xd93027(0x17c)](_0x1eb0bd=>_0x1eb0bd[_0xd93027(0x17b)](_0x4303f2));}function sanitizeFlags(_0x1468b7){const _0x3e22a0=a267_0x41c0,_0x7cfed4={};for(const [_0x10c5e8,_0x361527]of Object['entries'](_0x1468b7)){isSensitiveKey(_0x10c5e8)?_0x7cfed4[_0x10c5e8]=_0x361527!=null&&_0x361527!==''?_0x3e22a0(0x17e):_0x361527:_0x7cfed4[_0x10c5e8]=_0x361527;}return _0x7cfed4;}export async function reportCommandTrace(_0x436474){const _0xf0f94c=a267_0x41c0;try{const _0xf7b671=sanitizeFlags(_0x436474['flags']);await sendCliTraceLog({'spanName':_0xf0f94c(0x175),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x436474[_0xf0f94c(0x181)],'command.name':_0x436474[_0xf0f94c(0x17d)],'command.flags':JSON[_0xf0f94c(0x174)](_0xf7b671),..._0x436474[_0xf0f94c(0x172)]!=null?{'command.duration_ms':_0x436474[_0xf0f94c(0x172)]}:{},..._0x436474[_0xf0f94c(0x17f)]?{'command.error':_0x436474['error']instanceof Error?_0x436474[_0xf0f94c(0x17f)][_0xf0f94c(0x171)]:String(_0x436474['error'])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x1960d0,_0x2efec7){var _0x5450e0=a268_0x538a,_0x2cec76=_0x1960d0();while(!![]){try{var _0x4ccca2=parseInt(_0x5450e0(0x90))/0x1+parseInt(_0x5450e0(0x87))/0x2*(parseInt(_0x5450e0(0x8f))/0x3)+parseInt(_0x5450e0(0x8c))/0x4*(-parseInt(_0x5450e0(0x89))/0x5)+-parseInt(_0x5450e0(0x8b))/0x6+parseInt(_0x5450e0(0x8a))/0x7*(-parseInt(_0x5450e0(0x8d))/0x8)+parseInt(_0x5450e0(0x91))/0x9+parseInt(_0x5450e0(0x8e))/0xa;if(_0x4ccca2===_0x2efec7)break;else _0x2cec76['push'](_0x2cec76['shift']());}catch(_0x195f37){_0x2cec76['push'](_0x2cec76['shift']());}}}(a268_0x57be,0x2ed6b));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a268_0x538a(_0xb2527d,_0x3e8276){_0xb2527d=_0xb2527d-0x87;var _0x57be39=a268_0x57be();var _0x538a9c=_0x57be39[_0xb2527d];return _0x538a9c;}function a268_0x57be(){var _0x4470a3=['318930MteywC','42aBJzvZ','842640sXRoGt','20uLXsQX','77128UfMntt','983340AnHuWE','3aGVFHL','236410uFHZha','898011pXwwuX','Failed\x20to\x20report\x20CLI\x20help\x20trace:','cli.help','549088EBWaRS','service'];a268_0x57be=function(){return _0x4470a3;};return a268_0x57be();}export async function reportCliHelpTrace(_0x31671d,_0x3ffbb2){var _0xe80878=a268_0x538a;try{await sendCliTraceLog({'spanName':_0xe80878(0x93),'logData':{'rabetbase.help.kind':_0x31671d,..._0x3ffbb2?.[_0xe80878(0x88)]&&{'rabetbase.help.service':_0x3ffbb2['service']}}});}catch(_0x1c2ce9){console['error'](_0xe80878(0x92),_0x1c2ce9);}}
1
+ (function(_0x7ee333,_0x249cc8){var _0x18e0e9=a268_0x3cda,_0x211b97=_0x7ee333();while(!![]){try{var _0x20a29c=-parseInt(_0x18e0e9(0x137))/0x1*(-parseInt(_0x18e0e9(0x134))/0x2)+-parseInt(_0x18e0e9(0x131))/0x3*(-parseInt(_0x18e0e9(0x130))/0x4)+-parseInt(_0x18e0e9(0x13a))/0x5*(parseInt(_0x18e0e9(0x135))/0x6)+-parseInt(_0x18e0e9(0x132))/0x7*(-parseInt(_0x18e0e9(0x13c))/0x8)+parseInt(_0x18e0e9(0x136))/0x9*(-parseInt(_0x18e0e9(0x133))/0xa)+-parseInt(_0x18e0e9(0x12d))/0xb+-parseInt(_0x18e0e9(0x12e))/0xc*(parseInt(_0x18e0e9(0x138))/0xd);if(_0x20a29c===_0x249cc8)break;else _0x211b97['push'](_0x211b97['shift']());}catch(_0x1f1db0){_0x211b97['push'](_0x211b97['shift']());}}}(a268_0x5757,0x29dd0));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x53cbe5,_0x736daa){var _0x551b6e=a268_0x3cda;try{await sendCliTraceLog({'spanName':_0x551b6e(0x13b),'logData':{'rabetbase.help.kind':_0x53cbe5,..._0x736daa?.[_0x551b6e(0x13d)]&&{'rabetbase.help.service':_0x736daa['service']}}});}catch(_0xabafb){console[_0x551b6e(0x12f)](_0x551b6e(0x139),_0xabafb);}}function a268_0x3cda(_0x26dfcd,_0x1a3786){_0x26dfcd=_0x26dfcd-0x12d;var _0x5757ed=a268_0x5757();var _0x3cda74=_0x5757ed[_0x26dfcd];return _0x3cda74;}function a268_0x5757(){var _0x276b2d=['3936mjECxy','666gZhUYl','338119gjCips','1469usKWiG','Failed\x20to\x20report\x20CLI\x20help\x20trace:','1605mumdjw','cli.help','8FUcfSH','service','47663kSfLxJ','8892rjKdyI','error','652572rorTUH','3wToqxo','1387246LxYcWJ','30990xLrbkx','2KcOKqi'];a268_0x5757=function(){return _0x276b2d;};return a268_0x5757();}
@@ -1 +1 @@
1
- (function(_0x59b1c8,_0xc36fca){const _0x465334=a269_0x3c3e,_0x571ff0=_0x59b1c8();while(!![]){try{const _0x591789=parseInt(_0x465334(0xf8))/0x1*(parseInt(_0x465334(0x10a))/0x2)+-parseInt(_0x465334(0x106))/0x3*(-parseInt(_0x465334(0x103))/0x4)+-parseInt(_0x465334(0x107))/0x5+parseInt(_0x465334(0xff))/0x6+-parseInt(_0x465334(0x105))/0x7*(parseInt(_0x465334(0x104))/0x8)+parseInt(_0x465334(0xfd))/0x9*(-parseInt(_0x465334(0xf9))/0xa)+-parseInt(_0x465334(0xfb))/0xb*(-parseInt(_0x465334(0x101))/0xc);if(_0x591789===_0xc36fca)break;else _0x571ff0['push'](_0x571ff0['shift']());}catch(_0x2d0496){_0x571ff0['push'](_0x571ff0['shift']());}}}(a269_0x26c9,0x44a48));function a269_0x3c3e(_0x5352d8,_0x11d832){_0x5352d8=_0x5352d8-0xf8;const _0x26c976=a269_0x26c9();let _0x3c3e30=_0x26c976[_0x5352d8];return _0x3c3e30;}function a269_0x26c9(){const _0x581cdb=['12xXSORU','tenant','4knjmHk','487208jFizBo','7lZooUg','874545CWtQMB','865755fgtdvO','email','nickname','3046DWLwKS','18UmulYo','1870xoXdBo','user','3564979ShEBWZ','production','24579Evkwuw','daily','2297346lbIeIe','unknown'];a269_0x26c9=function(){return _0x581cdb;};return a269_0x26c9();}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 _0xdf94d6=a269_0x3c3e,_0x466253=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x23e1f0=_0x466253?.[_0xdf94d6(0xfa)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0xdf94d6(0x100)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0xdf94d6(0xfe):_0xdf94d6(0xfc))}),setUserContext({'id':_0x23e1f0?.['id'],'username':_0x23e1f0?.['username'],'nickname':_0x23e1f0?.[_0xdf94d6(0x109)],'email':_0x23e1f0?.[_0xdf94d6(0x108)],'tenantCode':_0x23e1f0?.[_0xdf94d6(0x102)]?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x466253;}
1
+ (function(_0x14a6a9,_0x5a3995){const _0x31b295=a269_0x1175,_0x427686=_0x14a6a9();while(!![]){try{const _0x851596=-parseInt(_0x31b295(0xab))/0x1+-parseInt(_0x31b295(0xb5))/0x2+parseInt(_0x31b295(0xb4))/0x3+parseInt(_0x31b295(0xb3))/0x4+parseInt(_0x31b295(0xaf))/0x5*(parseInt(_0x31b295(0xaa))/0x6)+parseInt(_0x31b295(0xb0))/0x7+parseInt(_0x31b295(0xb7))/0x8*(parseInt(_0x31b295(0xa8))/0x9);if(_0x851596===_0x5a3995)break;else _0x427686['push'](_0x427686['shift']());}catch(_0x7a2744){_0x427686['push'](_0x427686['shift']());}}}(a269_0x4e0e,0xa5559));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a269_0x1175(_0x1f95c1,_0x5559ed){_0x1f95c1=_0x1f95c1-0xa8;const _0x4e0e19=a269_0x4e0e();let _0x117553=_0x4e0e19[_0x1f95c1];return _0x117553;}import{getConfigAppCode}from'../utils/config.js';function a269_0x4e0e(){const _0x48e50c=['production','unknown','user','4270325taxeaA','3511991eSrgVJ','email','username','1663944cvYiGl','109392oLPTxk','2524170uTqdah','daily','80wAtKWc','276327FsaEmd','tenant_code','6hwyIax','175964jAuhtK'];a269_0x4e0e=function(){return _0x48e50c;};return a269_0x4e0e();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x1735d9=a269_0x1175,_0x27faea=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x1fd41f=_0x27faea?.[_0x1735d9(0xae)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x1735d9(0xad)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x1735d9(0xb6):_0x1735d9(0xac))}),setUserContext({'id':_0x1fd41f?.['id'],'username':_0x1fd41f?.[_0x1735d9(0xb2)],'nickname':_0x1fd41f?.['nickname'],'email':_0x1fd41f?.[_0x1735d9(0xb1)],'tenantCode':_0x1fd41f?.['tenant']?.[_0x1735d9(0xa9)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x27faea;}
@@ -1 +1 @@
1
- (function(_0xe83064,_0x1e2c65){const _0xc67a8a=a270_0x542f,_0xd6839b=_0xe83064();while(!![]){try{const _0x55660c=-parseInt(_0xc67a8a(0xb8))/0x1*(-parseInt(_0xc67a8a(0xb7))/0x2)+parseInt(_0xc67a8a(0xb9))/0x3*(parseInt(_0xc67a8a(0xb5))/0x4)+parseInt(_0xc67a8a(0xbd))/0x5+-parseInt(_0xc67a8a(0xbf))/0x6*(-parseInt(_0xc67a8a(0xbb))/0x7)+-parseInt(_0xc67a8a(0xc6))/0x8*(-parseInt(_0xc67a8a(0xbc))/0x9)+-parseInt(_0xc67a8a(0xc5))/0xa*(-parseInt(_0xc67a8a(0xc0))/0xb)+-parseInt(_0xc67a8a(0xb6))/0xc;if(_0x55660c===_0x1e2c65)break;else _0xd6839b['push'](_0xd6839b['shift']());}catch(_0x29637f){_0xd6839b['push'](_0xd6839b['shift']());}}}(a270_0x1e92,0xa0745));function a270_0x542f(_0xc05f53,_0x2ad978){_0xc05f53=_0xc05f53-0xb5;const _0x1e9219=a270_0x1e92();let _0x542f65=_0x1e9219[_0xc05f53];return _0x542f65;}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a270_0x1e92(){const _0x77d3e7=['748240SdychE','23656OPuQzd','5788vVOcBR','31878012eHOAGy','2jNovrM','787625zKoLKE','1092fzugRl','then','3545787VpryUF','1782ExRxXi','1917970KYygTs','exit','6GFeoIU','77qcjpWc','once','SIGTERM','SIGINT','beforeExit'];a270_0x1e92=function(){return _0x77d3e7;};return a270_0x1e92();}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x162af4=a270_0x542f;process[_0x162af4(0xc1)](_0x162af4(0xc4),()=>{void flushOtelNodeIfUsed();});const _0x57a2f5=()=>{const _0x134d1=_0x162af4;void flushOtelNodeIfUsed()[_0x134d1(0xba)](()=>process[_0x134d1(0xbe)](0x0));};process[_0x162af4(0xc1)](_0x162af4(0xc3),_0x57a2f5),process['once'](_0x162af4(0xc2),_0x57a2f5);}export async function exitWithOtelShutdown(_0x37d601){const _0x57e486=a270_0x542f;await flushOtelNodeIfUsed(),process[_0x57e486(0xbe)](_0x37d601);}
1
+ (function(_0x39d56a,_0x26caf9){const _0x4ffea3=a270_0x9b29,_0x48de43=_0x39d56a();while(!![]){try{const _0x143d0d=-parseInt(_0x4ffea3(0xdc))/0x1*(parseInt(_0x4ffea3(0xdf))/0x2)+-parseInt(_0x4ffea3(0xda))/0x3*(parseInt(_0x4ffea3(0xdb))/0x4)+parseInt(_0x4ffea3(0xde))/0x5+-parseInt(_0x4ffea3(0xd3))/0x6*(-parseInt(_0x4ffea3(0xd9))/0x7)+-parseInt(_0x4ffea3(0xe1))/0x8+parseInt(_0x4ffea3(0xd5))/0x9*(parseInt(_0x4ffea3(0xd2))/0xa)+parseInt(_0x4ffea3(0xd6))/0xb*(-parseInt(_0x4ffea3(0xd0))/0xc);if(_0x143d0d===_0x26caf9)break;else _0x48de43['push'](_0x48de43['shift']());}catch(_0x5e17ee){_0x48de43['push'](_0x48de43['shift']());}}}(a270_0x9dcf,0x997cb));import{shutdownTraces}from'@lovrabet/otel-logger';function a270_0x9b29(_0x16913c,_0x6e5ebc){_0x16913c=_0x16913c-0xd0;const _0x9dcfc9=a270_0x9dcf();let _0x9b29b5=_0x9dcfc9[_0x16913c];return _0x9b29b5;}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x563aed=a270_0x9b29;process[_0x563aed(0xd8)](_0x563aed(0xd1),()=>{void flushOtelNodeIfUsed();});const _0xae3cbe=()=>{const _0x4382b0=_0x563aed;void flushOtelNodeIfUsed()[_0x4382b0(0xd7)](()=>process[_0x4382b0(0xe0)](0x0));};process['once'](_0x563aed(0xd4),_0xae3cbe),process[_0x563aed(0xd8)](_0x563aed(0xdd),_0xae3cbe);}export async function exitWithOtelShutdown(_0x46adb2){await flushOtelNodeIfUsed(),process['exit'](_0x46adb2);}function a270_0x9dcf(){const _0x1e5b15=['18mTcUZy','exit','2285000CakDCt','84wUYxpy','beforeExit','20IHegaM','6xumHqq','SIGINT','769644yicgWe','314809WULExs','then','once','8727677IJPrEy','5166UeYEFF','444iNVNMP','46327tEFAHV','SIGTERM','1524415jGKMco'];a270_0x9dcf=function(){return _0x1e5b15;};return a270_0x9dcf();}
@@ -1 +1 @@
1
- const a271_0x8940b7=a271_0x59aa;function a271_0x59aa(_0x114fd0,_0x4660dd){_0x114fd0=_0x114fd0-0xba;const _0x5a0b1f=a271_0x5a0b();let _0x59aa=_0x5a0b1f[_0x114fd0];return _0x59aa;}(function(_0x51f9d5,_0x374238){const _0x50c9ec=a271_0x59aa,_0x51df40=_0x51f9d5();while(!![]){try{const _0x355388=parseInt(_0x50c9ec(0xc3))/0x1+-parseInt(_0x50c9ec(0xc0))/0x2*(-parseInt(_0x50c9ec(0xc5))/0x3)+-parseInt(_0x50c9ec(0xc6))/0x4+-parseInt(_0x50c9ec(0xbb))/0x5+-parseInt(_0x50c9ec(0xbe))/0x6*(-parseInt(_0x50c9ec(0xba))/0x7)+-parseInt(_0x50c9ec(0xc4))/0x8+parseInt(_0x50c9ec(0xc1))/0x9;if(_0x355388===_0x374238)break;else _0x51df40['push'](_0x51df40['shift']());}catch(_0x59db24){_0x51df40['push'](_0x51df40['shift']());}}}(a271_0x5a0b,0x9d2e5));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_0x8940b7(0xbd);function a271_0x5a0b(){const _0x166adf=['322mCHekA','5034636sNYTtq','traceparent','561394onXxfU','3575408IWQwSC','5958ohAiky','1114596ywaGQt','48517aNzguJ','1464740gMBSXl','manual','rabetbase-cli','192sqGlCD','version'];a271_0x5a0b=function(){return _0x166adf;};return a271_0x5a0b();}export async function sendCliTraceLog(_0x293607){const _0x2b5edb=a271_0x8940b7;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x293607['traceName']??DEFAULT_TRACE_NAME,'version':_0x293607[_0x2b5edb(0xbf)]??getCliVersion(),'spanName':_0x293607['spanName'],'eventType':_0x2b5edb(0xbc),'logData':_0x293607['logData'],..._0x293607['traceparent']&&{'traceparent':_0x293607[_0x2b5edb(0xc2)]}});}
1
+ const a271_0xc9af94=a271_0x2f18;(function(_0x1b49c2,_0x25a0ba){const _0x22ad23=a271_0x2f18,_0x1d8a18=_0x1b49c2();while(!![]){try{const _0x1f1df0=-parseInt(_0x22ad23(0xa8))/0x1*(parseInt(_0x22ad23(0xb8))/0x2)+-parseInt(_0x22ad23(0xb7))/0x3+-parseInt(_0x22ad23(0xb6))/0x4*(-parseInt(_0x22ad23(0xb0))/0x5)+parseInt(_0x22ad23(0xa9))/0x6*(-parseInt(_0x22ad23(0xb5))/0x7)+-parseInt(_0x22ad23(0xaf))/0x8*(-parseInt(_0x22ad23(0xae))/0x9)+-parseInt(_0x22ad23(0xad))/0xa*(-parseInt(_0x22ad23(0xb4))/0xb)+parseInt(_0x22ad23(0xb3))/0xc*(parseInt(_0x22ad23(0xb2))/0xd);if(_0x1f1df0===_0x25a0ba)break;else _0x1d8a18['push'](_0x1d8a18['shift']());}catch(_0x3b1f00){_0x1d8a18['push'](_0x1d8a18['shift']());}}}(a271_0x1f0c,0x23cf9));function a271_0x1f0c(){const _0xf8c682=['manual','2810VWKeJt','42237rSDafI','8XhcfIb','5vlLeKf','logData','1313Crzoem','38988dTMHrT','8107shHHNP','136178rcgPHL','40472cRURBK','312456IudjNL','5540vQtnSd','101tpIxBs','6yHSDzL','rabetbase-cli','traceparent'];a271_0x1f0c=function(){return _0xf8c682;};return a271_0x1f0c();}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a271_0x2f18(_0x161cde,_0x57e04b){_0x161cde=_0x161cde-0xa8;const _0x1f0c67=a271_0x1f0c();let _0x2f1889=_0x1f0c67[_0x161cde];return _0x2f1889;}const DEFAULT_TRACE_NAME=a271_0xc9af94(0xaa);export async function sendCliTraceLog(_0x127cc0){const _0x7a342c=a271_0xc9af94;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x127cc0['traceName']??DEFAULT_TRACE_NAME,'version':_0x127cc0['version']??getCliVersion(),'spanName':_0x127cc0['spanName'],'eventType':_0x7a342c(0xac),'logData':_0x127cc0[_0x7a342c(0xb1)],..._0x127cc0[_0x7a342c(0xab)]&&{'traceparent':_0x127cc0[_0x7a342c(0xab)]}});}
@@ -1 +1 @@
1
- const a272_0x17d834=a272_0x1607;(function(_0x544537,_0xf18b01){const _0x28d108=a272_0x1607,_0x322398=_0x544537();while(!![]){try{const _0x544359=-parseInt(_0x28d108(0x1a1))/0x1+-parseInt(_0x28d108(0x1aa))/0x2*(parseInt(_0x28d108(0x1a0))/0x3)+-parseInt(_0x28d108(0x1a9))/0x4*(parseInt(_0x28d108(0x1a4))/0x5)+-parseInt(_0x28d108(0x1a7))/0x6*(parseInt(_0x28d108(0x1a6))/0x7)+-parseInt(_0x28d108(0x1a3))/0x8*(parseInt(_0x28d108(0x1a5))/0x9)+-parseInt(_0x28d108(0x1a8))/0xa*(parseInt(_0x28d108(0x1ab))/0xb)+parseInt(_0x28d108(0x1b4))/0xc;if(_0x544359===_0xf18b01)break;else _0x322398['push'](_0x322398['shift']());}catch(_0x263325){_0x322398['push'](_0x322398['shift']());}}}(a272_0xcb37,0xef83d));function a272_0xcb37(){const _0x1964f9=['originalBytes','join','redactionCount','sanitize','issue.log.collect','redactionKinds','truncated','description','89009520TvHLsm','7116gBKOuJ','1028194wlMFIj','title','39464SfARmp','17105PVxVLW','1413ztDJBR','8764693OOQfZt','6mAmaXh','113630tFCNxQ','688ZcURbE','1330ZDHcOM','1177TjndnZ'];a272_0xcb37=function(){return _0x1964f9;};return a272_0xcb37();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a272_0x1607(_0x312558,_0x2d1fc4){_0x312558=_0x312558-0x1a0;const _0xcb3732=a272_0xcb37();let _0x160720=_0xcb3732[_0x312558];return _0x160720;}export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a272_0x17d834(0x1b0);export async function sendPlatformIssueCollectLog(_0x171202){const _0x50b756=a272_0x17d834;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x171202[_0x50b756(0x1a2)],'issue.description':_0x171202[_0x50b756(0x1b3)],..._0x171202[_0x50b756(0x1af)]?{'issue.description_original_bytes':_0x171202[_0x50b756(0x1af)][_0x50b756(0x1ac)],'issue.description_truncated':_0x171202[_0x50b756(0x1af)][_0x50b756(0x1b2)],'issue.description_redactions':_0x171202['sanitize'][_0x50b756(0x1ae)],'issue.description_redaction_kinds':_0x171202[_0x50b756(0x1af)][_0x50b756(0x1b1)][_0x50b756(0x1ad)](',')}:{}}});}
1
+ function a272_0x266f(_0x53fbd1,_0x5e8787){_0x53fbd1=_0x53fbd1-0xa7;const _0x4db619=a272_0x4db6();let _0x266faa=_0x4db619[_0x53fbd1];return _0x266faa;}const a272_0x4e8e86=a272_0x266f;(function(_0x3ecd11,_0xc58551){const _0x677e45=a272_0x266f,_0x4ae2fe=_0x3ecd11();while(!![]){try{const _0x44b732=-parseInt(_0x677e45(0xb3))/0x1+parseInt(_0x677e45(0xb6))/0x2*(parseInt(_0x677e45(0xab))/0x3)+parseInt(_0x677e45(0xb5))/0x4+parseInt(_0x677e45(0xa8))/0x5+parseInt(_0x677e45(0xae))/0x6*(-parseInt(_0x677e45(0xad))/0x7)+-parseInt(_0x677e45(0xb2))/0x8*(parseInt(_0x677e45(0xac))/0x9)+parseInt(_0x677e45(0xa7))/0xa*(parseInt(_0x677e45(0xb1))/0xb);if(_0x44b732===_0xc58551)break;else _0x4ae2fe['push'](_0x4ae2fe['shift']());}catch(_0x30e75f){_0x4ae2fe['push'](_0x4ae2fe['shift']());}}}(a272_0x4db6,0xa8e2f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a272_0x4e8e86(0xaa);function a272_0x4db6(){const _0x1d4f83=['issue.log.collect','3vMNGWK','6225192ubFMns','11676xCsPvn','12JMYiCR','sanitize','redactionKinds','379709lbZlAm','8USCxMF','202811lasUXu','title','818788xNfbsT','1282574tFDdzX','originalBytes','110aMeCAI','1819505ANMuvU','join'];a272_0x4db6=function(){return _0x1d4f83;};return a272_0x4db6();}export async function sendPlatformIssueCollectLog(_0x2255c1){const _0x3f228f=a272_0x4e8e86;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2255c1[_0x3f228f(0xb4)],'issue.description':_0x2255c1['description'],..._0x2255c1[_0x3f228f(0xaf)]?{'issue.description_original_bytes':_0x2255c1[_0x3f228f(0xaf)][_0x3f228f(0xb7)],'issue.description_truncated':_0x2255c1[_0x3f228f(0xaf)]['truncated'],'issue.description_redactions':_0x2255c1[_0x3f228f(0xaf)]['redactionCount'],'issue.description_redaction_kinds':_0x2255c1[_0x3f228f(0xaf)][_0x3f228f(0xb0)][_0x3f228f(0xa9)](',')}:{}}});}
@@ -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
- const a274_0x80d13f=a274_0x19f7;(function(_0x2c85be,_0x39b649){const _0x92a290=a274_0x19f7,_0x842fec=_0x2c85be();while(!![]){try{const _0x4082e1=parseInt(_0x92a290(0x1ce))/0x1*(-parseInt(_0x92a290(0x1c0))/0x2)+parseInt(_0x92a290(0x1d5))/0x3*(parseInt(_0x92a290(0x1c2))/0x4)+-parseInt(_0x92a290(0x1bc))/0x5+parseInt(_0x92a290(0x1d7))/0x6+-parseInt(_0x92a290(0x1c3))/0x7+parseInt(_0x92a290(0x1c9))/0x8*(parseInt(_0x92a290(0x1db))/0x9)+parseInt(_0x92a290(0x1ab))/0xa;if(_0x4082e1===_0x39b649)break;else _0x842fec['push'](_0x842fec['shift']());}catch(_0x3e3a45){_0x842fec['push'](_0x842fec['shift']());}}}(a274_0x2fce,0xe63ba));export const CORE_IDE_CONFIGS={'cursor':{'name':'Cursor','description':a274_0x80d13f(0x1b0),'folders':[a274_0x80d13f(0x1d2),a274_0x80d13f(0x1cd)],'files':[{'type':a274_0x80d13f(0x1d9),'path':'.cursor/skills/rabetbase.md','template':'SKILL.md.tpl'}]},'windsurf':{'name':a274_0x80d13f(0x1bb),'description':a274_0x80d13f(0x1aa),'folders':['.windsurf'],'files':[{'type':'file','path':'.windsurf/workflows/rabetbase.md','template':a274_0x80d13f(0x1b9)}]},'claude':{'name':a274_0x80d13f(0x1cc),'description':'Claude\x20Code','folders':['.claude'],'files':[{'type':a274_0x80d13f(0x1d9),'path':a274_0x80d13f(0x1af),'template':'SKILL.md.tpl'}]},'cline':{'name':a274_0x80d13f(0x1c8),'description':a274_0x80d13f(0x1d1),'folders':[a274_0x80d13f(0x1b1)],'files':[{'type':a274_0x80d13f(0x1d9),'path':'.cline/skills/lovrabet/SKILL.md','template':a274_0x80d13f(0x1b9)}]},'codex':{'name':a274_0x80d13f(0x1d6),'description':a274_0x80d13f(0x1c4),'folders':['.codex'],'files':[{'type':a274_0x80d13f(0x1d9),'path':'.codex/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'opencode':{'name':a274_0x80d13f(0x1c1),'description':a274_0x80d13f(0x1a9),'folders':['.opencode'],'files':[{'type':'file','path':a274_0x80d13f(0x1b2),'template':a274_0x80d13f(0x1b9)}]},'qoder':{'name':a274_0x80d13f(0x1b5),'description':a274_0x80d13f(0x1ca),'folders':[a274_0x80d13f(0x1b8)],'files':[{'type':'file','path':a274_0x80d13f(0x1b6),'template':a274_0x80d13f(0x1b9)},{'type':a274_0x80d13f(0x1d9),'path':'.qoder/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'codebuddy':{'name':a274_0x80d13f(0x1da),'description':a274_0x80d13f(0x1dd),'folders':[a274_0x80d13f(0x1c5)],'files':[{'type':a274_0x80d13f(0x1d9),'path':a274_0x80d13f(0x1b4),'template':'SKILL.md.tpl'}]},'trae':{'name':a274_0x80d13f(0x1ad),'description':'Trae\x20IDE','folders':[a274_0x80d13f(0x1b7)],'files':[{'type':a274_0x80d13f(0x1d9),'path':a274_0x80d13f(0x1d3),'template':a274_0x80d13f(0x1b9)}]}};function a274_0x19f7(_0x4038a7,_0x5a92c2){_0x4038a7=_0x4038a7-0x1a9;const _0x2fcebc=a274_0x2fce();let _0x19f73c=_0x2fcebc[_0x4038a7];return _0x19f73c;}function a274_0x2fce(){const _0x3392d1=['Cursor\x20IDE','.cline','.opencode/skills/lovrabet/SKILL.md','通用模板\x20-\x20兜底方案','.codebuddy/skills/lovrabet/SKILL.md','Qoder','.qoder/rules/rabetbase.md','.trae','.qoder','SKILL.md.tpl','Antigravity\x20IDE','Windsurf','8223980pLpwej','cursor','qoder','codex','4LKIajK','OpenCode','5341516aEKBui','12711265BkrKcW','Codex\x20IDE','.codebuddy','claude','agent','Cline','104HuHDAT','Qoder\x20IDE','opencode','Claude\x20Code','.cursor','346844SqSaCb','trae','cline','Cline\x20IDE','.cursorrules','.trae/skills/lovrabet/SKILL.md','.agent/skills/lovrabet/SKILL.md','3hpMdMj','Codex','6375480jXElIX','.agent','file','CodeBuddy','973539xrjVeX','windsurf','CodeBuddy\x20IDE','OpenCode\x20IDE','Windsurf\x20IDE','12932310QlmGgf','Antigravity','Trae','codebuddy','.claude/skills/lovrabet/SKILL.md'];a274_0x2fce=function(){return _0x3392d1;};return a274_0x2fce();}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a274_0x80d13f(0x1b3),'folders':[a274_0x80d13f(0x1d8)],'files':[{'type':a274_0x80d13f(0x1d9),'path':a274_0x80d13f(0x1d4),'template':a274_0x80d13f(0x1b9)}]},'antigravity':{'name':a274_0x80d13f(0x1ac),'description':a274_0x80d13f(0x1ba),'folders':['.agent'],'files':[{'type':a274_0x80d13f(0x1d9),'path':a274_0x80d13f(0x1d4),'template':a274_0x80d13f(0x1b9)}]}};export const CORE_IDE_LIST=['claude',a274_0x80d13f(0x1d0),a274_0x80d13f(0x1ae),a274_0x80d13f(0x1bf),'cursor',a274_0x80d13f(0x1cb),a274_0x80d13f(0x1be),a274_0x80d13f(0x1cf),a274_0x80d13f(0x1dc)];export const IDE_LIST=['antigravity',a274_0x80d13f(0x1c6),a274_0x80d13f(0x1d0),a274_0x80d13f(0x1ae),a274_0x80d13f(0x1bf),a274_0x80d13f(0x1bd),a274_0x80d13f(0x1cb),a274_0x80d13f(0x1be),'trae','windsurf',a274_0x80d13f(0x1c7)];export const ALL_CORE_IDES=[a274_0x80d13f(0x1bd),a274_0x80d13f(0x1dc),a274_0x80d13f(0x1c6),a274_0x80d13f(0x1d0),a274_0x80d13f(0x1bf),a274_0x80d13f(0x1cb),a274_0x80d13f(0x1be),'codebuddy',a274_0x80d13f(0x1cf)];
1
+ const a274_0x2502bd=a274_0x5ae2;(function(_0x5b894b,_0x2a1f1d){const _0x37e0de=a274_0x5ae2,_0x3411c4=_0x5b894b();while(!![]){try{const _0x4d836b=parseInt(_0x37e0de(0xc9))/0x1+-parseInt(_0x37e0de(0xcd))/0x2+parseInt(_0x37e0de(0xd5))/0x3*(-parseInt(_0x37e0de(0xd7))/0x4)+parseInt(_0x37e0de(0xc0))/0x5+parseInt(_0x37e0de(0xb3))/0x6+-parseInt(_0x37e0de(0xce))/0x7+parseInt(_0x37e0de(0xcc))/0x8;if(_0x4d836b===_0x2a1f1d)break;else _0x3411c4['push'](_0x3411c4['shift']());}catch(_0x2b48b8){_0x3411c4['push'](_0x3411c4['shift']());}}}(a274_0x2cdf,0x748a4));function a274_0x2cdf(){const _0x15dcb5=['Qoder\x20IDE','Claude\x20Code','claude','antigravity','trae','Cursor\x20IDE','Cline','opencode','.windsurf/workflows/rabetbase.md','cline','.opencode','cursor','Codex','1234320JNbxEQ','.codebuddy/skills/lovrabet/SKILL.md','Codex\x20IDE','codex','.qoder/rules/rabetbase.md','.opencode/skills/lovrabet/SKILL.md','.trae','codebuddy','.cursor/skills/rabetbase.md','qoder','windsurf','Qoder','Antigravity','3661245SUfobe','Trae','Trae\x20IDE','Windsurf','CodeBuddy\x20IDE','Cline\x20IDE','.qoder','.agent/skills/lovrabet/SKILL.md','.cursorrules','154436cjwJyM','.cursor','Antigravity\x20IDE','3896976gYLgUH','691198jVWaPq','3819795abIHIF','.qoder/skills/lovrabet/SKILL.md','Cursor','OpenCode\x20IDE','agent','Generic\x20template\x20fallback','.agent','3Kmmrwz','file','843580VQNcAP','.codebuddy','.claude'];a274_0x2cdf=function(){return _0x15dcb5;};return a274_0x2cdf();}export const CORE_IDE_CONFIGS={'cursor':{'name':a274_0x2502bd(0xd0),'description':a274_0x2502bd(0xdf),'folders':[a274_0x2502bd(0xc8),a274_0x2502bd(0xca)],'files':[{'type':'file','path':a274_0x2502bd(0xbb)}]},'windsurf':{'name':a274_0x2502bd(0xc3),'description':'Windsurf\x20IDE','folders':['.windsurf'],'files':[{'type':'file','path':a274_0x2502bd(0xe2)}]},'claude':{'name':a274_0x2502bd(0xdb),'description':a274_0x2502bd(0xdb),'folders':[a274_0x2502bd(0xd9)],'files':[{'type':a274_0x2502bd(0xd6),'path':'.claude/skills/lovrabet/SKILL.md'}]},'cline':{'name':a274_0x2502bd(0xe0),'description':a274_0x2502bd(0xc5),'folders':['.cline'],'files':[{'type':'file','path':'.cline/skills/lovrabet/SKILL.md'}]},'codex':{'name':a274_0x2502bd(0xb2),'description':a274_0x2502bd(0xb5),'folders':['.codex'],'files':[{'type':a274_0x2502bd(0xd6),'path':'.codex/skills/lovrabet/SKILL.md'}]},'opencode':{'name':'OpenCode','description':a274_0x2502bd(0xd1),'folders':[a274_0x2502bd(0xb0)],'files':[{'type':'file','path':a274_0x2502bd(0xb8)}]},'qoder':{'name':a274_0x2502bd(0xbe),'description':a274_0x2502bd(0xda),'folders':[a274_0x2502bd(0xc6)],'files':[{'type':a274_0x2502bd(0xd6),'path':a274_0x2502bd(0xb7)},{'type':a274_0x2502bd(0xd6),'path':a274_0x2502bd(0xcf)}]},'codebuddy':{'name':'CodeBuddy','description':a274_0x2502bd(0xc4),'folders':[a274_0x2502bd(0xd8)],'files':[{'type':'file','path':a274_0x2502bd(0xb4)}]},'trae':{'name':a274_0x2502bd(0xc1),'description':a274_0x2502bd(0xc2),'folders':[a274_0x2502bd(0xb9)],'files':[{'type':a274_0x2502bd(0xd6),'path':'.trae/skills/lovrabet/SKILL.md'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'Other\x20(generic\x20template)','description':a274_0x2502bd(0xd3),'folders':[a274_0x2502bd(0xd4)],'files':[{'type':a274_0x2502bd(0xd6),'path':a274_0x2502bd(0xc7)}]},'antigravity':{'name':a274_0x2502bd(0xbf),'description':a274_0x2502bd(0xcb),'folders':['.agent'],'files':[{'type':a274_0x2502bd(0xd6),'path':a274_0x2502bd(0xc7)}]}};function a274_0x5ae2(_0x1fa03c,_0x323716){_0x1fa03c=_0x1fa03c-0xaf;const _0x2cdf6f=a274_0x2cdf();let _0x5ae2d8=_0x2cdf6f[_0x1fa03c];return _0x5ae2d8;}export const CORE_IDE_LIST=[a274_0x2502bd(0xdc),a274_0x2502bd(0xaf),'codebuddy',a274_0x2502bd(0xb6),'cursor',a274_0x2502bd(0xe1),'qoder',a274_0x2502bd(0xde),a274_0x2502bd(0xbd)];export const IDE_LIST=[a274_0x2502bd(0xdd),'claude',a274_0x2502bd(0xaf),'codebuddy',a274_0x2502bd(0xb6),a274_0x2502bd(0xb1),a274_0x2502bd(0xe1),'qoder',a274_0x2502bd(0xde),'windsurf',a274_0x2502bd(0xd2)];export const ALL_CORE_IDES=['cursor','windsurf','claude',a274_0x2502bd(0xaf),a274_0x2502bd(0xb6),a274_0x2502bd(0xe1),a274_0x2502bd(0xbc),a274_0x2502bd(0xba),a274_0x2502bd(0xde)];
@@ -1 +1 @@
1
- (function(_0x55b3ec,_0x172213){const _0x39dfe5=a275_0x10b0,_0x32f1e5=_0x55b3ec();while(!![]){try{const _0x1f73ac=-parseInt(_0x39dfe5(0xca))/0x1+-parseInt(_0x39dfe5(0xce))/0x2+-parseInt(_0x39dfe5(0xcf))/0x3*(-parseInt(_0x39dfe5(0xd2))/0x4)+-parseInt(_0x39dfe5(0xd1))/0x5+parseInt(_0x39dfe5(0xcd))/0x6*(-parseInt(_0x39dfe5(0xcb))/0x7)+parseInt(_0x39dfe5(0xd0))/0x8+parseInt(_0x39dfe5(0xcc))/0x9;if(_0x1f73ac===_0x172213)break;else _0x32f1e5['push'](_0x32f1e5['shift']());}catch(_0x38b847){_0x32f1e5['push'](_0x32f1e5['shift']());}}}(a275_0x3055,0x534a9));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a275_0x10b0(_0x42e675,_0x187643){_0x42e675=_0x42e675-0xca;const _0x30552f=a275_0x3055();let _0x10b08d=_0x30552f[_0x42e675];return _0x10b08d;}function a275_0x3055(){const _0x6c885=['35122lykCCq','973154MkMlXX','7608384xnDCzb','6Nxvbuj','1106160WxcOUh','416982dQvBVZ','2421816gbIFWA','1788530fVSrJf','8pmhYCi'];a275_0x3055=function(){return _0x6c885;};return a275_0x3055();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a275_0x5619(_0x47290f,_0x49dfd9){_0x47290f=_0x47290f-0x181;const _0x1e2e8b=a275_0x1e2e();let _0x5619f5=_0x1e2e8b[_0x47290f];return _0x5619f5;}(function(_0x4cc46e,_0x5689eb){const _0x59142b=a275_0x5619,_0x486f07=_0x4cc46e();while(!![]){try{const _0x15be3b=-parseInt(_0x59142b(0x184))/0x1*(-parseInt(_0x59142b(0x186))/0x2)+parseInt(_0x59142b(0x189))/0x3+-parseInt(_0x59142b(0x181))/0x4*(-parseInt(_0x59142b(0x18a))/0x5)+parseInt(_0x59142b(0x188))/0x6*(-parseInt(_0x59142b(0x185))/0x7)+-parseInt(_0x59142b(0x187))/0x8+-parseInt(_0x59142b(0x18b))/0x9+parseInt(_0x59142b(0x183))/0xa*(parseInt(_0x59142b(0x182))/0xb);if(_0x15be3b===_0x5689eb)break;else _0x486f07['push'](_0x486f07['shift']());}catch(_0x13c27e){_0x486f07['push'](_0x486f07['shift']());}}}(a275_0x1e2e,0x6b1ff));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a275_0x1e2e(){const _0x428e93=['276610aeMkXf','6638gveoCR','2653ynQCqS','184rKALaT','437624lGYCHo','2286aVoDYU','262212jFjaRQ','89705ACKrSo','1598229OgeRfg','20iEwpKX','11iRqqvt'];a275_0x1e2e=function(){return _0x428e93;};return a275_0x1e2e();}
@@ -1 +1 @@
1
- function a276_0x5804(){const _0x27ca1c=['6nEXqfi','795508NWnIlA','sdk','2817776gDzpXR','555618Zqietm','cli','134923qxlytH','/config/index.json','now','node','489104UBKteH','stableVersion','146942DBWANo','789480EyfNmj','/config.json'];a276_0x5804=function(){return _0x27ca1c;};return a276_0x5804();}(function(_0x447297,_0x46a6f3){const _0x37134d=a276_0xcdae,_0x321f3d=_0x447297();while(!![]){try{const _0x582406=parseInt(_0x37134d(0xed))/0x1+-parseInt(_0x37134d(0xf3))/0x2+-parseInt(_0x37134d(0xeb))/0x3+-parseInt(_0x37134d(0xe8))/0x4+parseInt(_0x37134d(0xf4))/0x5+-parseInt(_0x37134d(0xf6))/0x6*(parseInt(_0x37134d(0xf1))/0x7)+parseInt(_0x37134d(0xea))/0x8;if(_0x582406===_0x46a6f3)break;else _0x321f3d['push'](_0x321f3d['shift']());}catch(_0x266aa1){_0x321f3d['push'](_0x321f3d['shift']());}}}(a276_0x5804,0x1cb6f));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x52c99c=a276_0xcdae,_0x16275c=getTemplateBaseUrl(),_0x573eaa=[_0x16275c+_0x52c99c(0xf5),_0x16275c+_0x52c99c(0xee)];for(const _0x4a24a6 of _0x573eaa){try{const _0x588d35=await fetch(_0x4a24a6,{'headers':{'Accept':'application/json'}});if(!_0x588d35['ok'])continue;const _0x3ae4b7=await _0x588d35['json']();if(!_0x3ae4b7[_0x52c99c(0xec)]?.[_0x52c99c(0xf2)]||!_0x3ae4b7[_0x52c99c(0xe9)]?.[_0x52c99c(0xf0)]?.[_0x52c99c(0xf2)])continue;return _0x3ae4b7;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a276_0xcdae(_0x2ed7c6,_0x23edcb){_0x2ed7c6=_0x2ed7c6-0xe8;const _0x58041f=a276_0x5804();let _0xcdae41=_0x58041f[_0x2ed7c6];return _0xcdae41;}export async function getCdnConfig(){const _0x81c259=a276_0xcdae,_0x35a467=Date[_0x81c259(0xef)]();if(hasCachedConfig){const _0x56b8de=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x35a467-cacheTime<_0x56b8de)return cachedConfig;}const _0x56dbff=await fetchCdnConfig();return cachedConfig=_0x56dbff,cacheTime=_0x35a467,hasCachedConfig=!![],_0x56dbff;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x312c74,_0xba55c4){const _0x95f6b1=a276_0x1e54,_0x54b59e=_0x312c74();while(!![]){try{const _0x48920f=-parseInt(_0x95f6b1(0xdd))/0x1+parseInt(_0x95f6b1(0xd3))/0x2+parseInt(_0x95f6b1(0xda))/0x3*(parseInt(_0x95f6b1(0xd5))/0x4)+parseInt(_0x95f6b1(0xd9))/0x5+parseInt(_0x95f6b1(0xd8))/0x6+-parseInt(_0x95f6b1(0xd6))/0x7+parseInt(_0x95f6b1(0xd4))/0x8*(-parseInt(_0x95f6b1(0xd1))/0x9);if(_0x48920f===_0xba55c4)break;else _0x54b59e['push'](_0x54b59e['shift']());}catch(_0x3dd953){_0x54b59e['push'](_0x54b59e['shift']());}}}(a276_0x3688,0x93705));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x458c32=a276_0x1e54,_0x257198=getTemplateBaseUrl(),_0x1aadda=[_0x257198+'/config.json',_0x257198+_0x458c32(0xdb)];for(const _0x382597 of _0x1aadda){try{const _0x1486a2=await fetch(_0x382597,{'headers':{'Accept':_0x458c32(0xd0)}});if(!_0x1486a2['ok'])continue;const _0x1c6395=await _0x1486a2[_0x458c32(0xcf)]();if(!_0x1c6395['cli']?.['stableVersion']||!_0x1c6395[_0x458c32(0xce)]?.[_0x458c32(0xd7)]?.[_0x458c32(0xd2)])continue;return _0x1c6395;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a276_0x1e54(_0x55861c,_0x494eed){_0x55861c=_0x55861c-0xce;const _0x3688e1=a276_0x3688();let _0x1e54fc=_0x3688e1[_0x55861c];return _0x1e54fc;}let hasCachedConfig=![];export async function getCdnConfig(){const _0x3f059f=a276_0x1e54,_0x4d90e7=Date[_0x3f059f(0xdc)]();if(hasCachedConfig){const _0x1e6591=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4d90e7-cacheTime<_0x1e6591)return cachedConfig;}const _0x547ead=await fetchCdnConfig();return cachedConfig=_0x547ead,cacheTime=_0x4d90e7,hasCachedConfig=!![],_0x547ead;}function a276_0x3688(){const _0x5aa1b2=['3580380YknOrO','/config/index.json','now','223888WrRDZM','sdk','json','application/json','812259fKGxIb','stableVersion','1613826oOIJKP','288xHGfWP','4sjZcvV','760004QrRTTm','node','6197436OzymOo','5760630esPwsw'];a276_0x3688=function(){return _0x5aa1b2;};return a276_0x3688();}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a277_0x5dd6d7=a277_0x2dfc;(function(_0x289559,_0x10621a){const _0x5a5035=a277_0x2dfc,_0x2b1eb7=_0x289559();while(!![]){try{const _0x566b70=parseInt(_0x5a5035(0x1e7))/0x1*(parseInt(_0x5a5035(0x1e5))/0x2)+parseInt(_0x5a5035(0x1eb))/0x3*(-parseInt(_0x5a5035(0x1cf))/0x4)+-parseInt(_0x5a5035(0x1d2))/0x5+parseInt(_0x5a5035(0x1cd))/0x6+parseInt(_0x5a5035(0x1ec))/0x7+-parseInt(_0x5a5035(0x1d1))/0x8+parseInt(_0x5a5035(0x1dd))/0x9;if(_0x566b70===_0x10621a)break;else _0x2b1eb7['push'](_0x2b1eb7['shift']());}catch(_0x24b24c){_0x2b1eb7['push'](_0x2b1eb7['shift']());}}}(a277_0x2dce,0x57295));import a277_0x1a3ad0 from'node:fs';import a277_0x1e0067 from'node:path';function a277_0x2dce(){const _0x38b2b4=['utf8','sdk','readFileSync','\x1b[33m','join','953244Xoucit','log','1.2.0','package.json','\x1b[0m','node','existsSync','parse','2504KDQqVA','coerce','346aUSDzg','packageName','node_modules','npm\x20install\x20','3PCNBOd','3533488tIvZdm','\x1b[1m','stableVersion','version','utf-8','1673628xSMBHN','\x20\x20\x20Current\x20version:\x20','1024284nwemZG','needsUpgrade','5127224yRayYH','344215ukokTI','@lovrabet/sdk','devDependencies','↪\x20SDK\x20update\x20available','\x20\x20\x20Stable\x20version:\x20','latest'];a277_0x2dce=function(){return _0x38b2b4;};return a277_0x2dce();}function a277_0x2dfc(_0x1951a9,_0x40d3eb){_0x1951a9=_0x1951a9-0x1cb;const _0x2dce5b=a277_0x2dce();let _0x2dfcdc=_0x2dce5b[_0x1951a9];return _0x2dfcdc;}import a277_0x737f07 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a277_0x5dd6d7(0x1df);function isNonNumericVersion(_0x488a59){const _0x54dc80=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x54dc80['some'](_0x45b110=>_0x45b110['test'](_0x488a59));}function getInstalledVersion(_0x300d11,_0x38f3f9){const _0x2ae624=a277_0x5dd6d7;try{const _0x7ca371=a277_0x1e0067['join'](_0x300d11,_0x2ae624(0x1e9),_0x38f3f9,_0x2ae624(0x1e0));if(a277_0x1a3ad0[_0x2ae624(0x1e3)](_0x7ca371)){const _0x5b2c74=JSON['parse'](a277_0x1a3ad0[_0x2ae624(0x1da)](_0x7ca371,_0x2ae624(0x1cc)));return _0x5b2c74[_0x2ae624(0x1cb)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x406233=a277_0x5dd6d7;try{const _0x3f2b2f=await getCdnConfig();return _0x3f2b2f?.[_0x406233(0x1d9)]?.[_0x406233(0x1e2)]?.[_0x406233(0x1ee)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x84c972=a277_0x5dd6d7;try{const _0xe661a9=await getCdnConfig();return _0xe661a9?.[_0x84c972(0x1d9)]?.[_0x84c972(0x1e2)]?.[_0x84c972(0x1e8)]||_0x84c972(0x1d3);}catch{return _0x84c972(0x1d3);}}export async function checkSdkVersion(_0x262fd0){const _0x7cb12e=a277_0x5dd6d7,_0x25fdd6=a277_0x1e0067[_0x7cb12e(0x1dc)](_0x262fd0,'package.json'),[_0x18d6c7,_0x33eba9]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x24d5ca=_0x18d6c7||FALLBACK_MIN_SDK_VERSION;if(!a277_0x1a3ad0[_0x7cb12e(0x1e3)](_0x25fdd6))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x24d5ca,'packageName':_0x33eba9,'stableVersion':_0x18d6c7};try{const _0x3e62f9=JSON[_0x7cb12e(0x1e4)](a277_0x1a3ad0[_0x7cb12e(0x1da)](_0x25fdd6,_0x7cb12e(0x1d8))),_0x46dec0=_0x3e62f9['dependencies']||{},_0x52fe4b=_0x3e62f9[_0x7cb12e(0x1d4)]||{},_0x53e7e3=_0x46dec0[_0x33eba9]||_0x52fe4b[_0x33eba9];if(!_0x53e7e3)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x24d5ca,'packageName':_0x33eba9,'stableVersion':_0x18d6c7};let _0x40882a=getInstalledVersion(_0x262fd0,_0x33eba9);!_0x40882a&&(_0x40882a=_0x53e7e3);if(isNonNumericVersion(_0x53e7e3))return{'installed':!![],'version':_0x40882a,'needsUpgrade':![],'minVersion':_0x24d5ca,'packageName':_0x33eba9,'stableVersion':_0x18d6c7};const _0xa91fdd=a277_0x737f07['coerce'](_0x40882a),_0x20dac4=a277_0x737f07[_0x7cb12e(0x1e6)](_0x24d5ca),_0x39cc79=_0xa91fdd&&_0x20dac4?a277_0x737f07['lt'](_0xa91fdd,_0x20dac4):![];return{'installed':!![],'version':_0x40882a,'needsUpgrade':_0x39cc79,'minVersion':_0x24d5ca,'packageName':_0x33eba9,'stableVersion':_0x18d6c7};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x24d5ca,'packageName':_0x33eba9,'stableVersion':_0x18d6c7};}}export function checkSdkVersionSync(_0x16b332){const _0x5d578a=a277_0x5dd6d7,_0x5d1353=a277_0x1e0067[_0x5d578a(0x1dc)](_0x16b332,_0x5d578a(0x1e0)),_0x44c5ea=_0x5d578a(0x1d3);if(!a277_0x1a3ad0[_0x5d578a(0x1e3)](_0x5d1353))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x44c5ea,'stableVersion':null};try{const _0x26adcf=JSON['parse'](a277_0x1a3ad0[_0x5d578a(0x1da)](_0x5d1353,_0x5d578a(0x1d8))),_0x3f83e1=_0x26adcf['dependencies']||{},_0xcb74d3=_0x26adcf[_0x5d578a(0x1d4)]||{},_0x1a0968=_0x3f83e1[_0x44c5ea]||_0xcb74d3[_0x44c5ea];if(!_0x1a0968)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x44c5ea,'stableVersion':null};let _0x3b2698=getInstalledVersion(_0x16b332,_0x44c5ea);!_0x3b2698&&(_0x3b2698=_0x1a0968);if(isNonNumericVersion(_0x1a0968))return{'installed':!![],'version':_0x3b2698,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x44c5ea,'stableVersion':null};const _0x989111=a277_0x737f07[_0x5d578a(0x1e6)](_0x3b2698),_0x4f8e3f=_0x989111?a277_0x737f07['lt'](_0x989111,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x3b2698,'needsUpgrade':_0x4f8e3f,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x44c5ea,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x44c5ea,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x585331){const _0x112006=a277_0x5dd6d7;if(!_0x585331[_0x112006(0x1d0)])return;const _0x53178f=_0x112006(0x1db),_0x52ff30=_0x112006(0x1e1),_0xb4ffbb=_0x112006(0x1ed),_0x56623f=_0x585331[_0x112006(0x1e8)]||_0x112006(0x1d3),_0x218233=_0x585331[_0x112006(0x1ee)]||_0x585331['minVersion'],_0x35b6d4=_0x112006(0x1ea)+_0x56623f+'@'+(_0x218233||_0x112006(0x1d7));console['log'](),console[_0x112006(0x1de)](''+_0x53178f+_0xb4ffbb+_0x112006(0x1d5)+_0x52ff30),console[_0x112006(0x1de)](_0x53178f+_0x112006(0x1ce)+_0x56623f+'@'+_0x585331[_0x112006(0x1cb)]+_0x52ff30),console['log'](_0x53178f+_0x112006(0x1d6)+_0x218233+_0x52ff30),console['log'](_0x53178f+'\x20\x20\x20Upgrade\x20command:\x20'+_0x35b6d4+_0x52ff30),console[_0x112006(0x1de)]();}
1
+ const a277_0xffb1c8=a277_0x25e8;(function(_0x2df985,_0x28c6e3){const _0x6654b2=a277_0x25e8,_0xc90c2a=_0x2df985();while(!![]){try{const _0x25697a=parseInt(_0x6654b2(0xdf))/0x1*(parseInt(_0x6654b2(0xde))/0x2)+parseInt(_0x6654b2(0xca))/0x3*(parseInt(_0x6654b2(0xe1))/0x4)+-parseInt(_0x6654b2(0xc4))/0x5+parseInt(_0x6654b2(0xcc))/0x6+-parseInt(_0x6654b2(0xd2))/0x7+-parseInt(_0x6654b2(0xc2))/0x8*(parseInt(_0x6654b2(0xc1))/0x9)+parseInt(_0x6654b2(0xdd))/0xa*(parseInt(_0x6654b2(0xd8))/0xb);if(_0x25697a===_0x28c6e3)break;else _0xc90c2a['push'](_0xc90c2a['shift']());}catch(_0x15e26a){_0xc90c2a['push'](_0xc90c2a['shift']());}}}(a277_0x1d93,0x4ff77));import a277_0x3e761f from'node:fs';import a277_0x2381d4 from'node:path';import a277_0x5388e6 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a277_0x1d93(){const _0x3f0863=['\x20\x20\x20Current\x20version:\x20','utf-8','needsUpgrade','1.2.0','node_modules','326973kZMLgm','node','1800576RVIPwC','coerce','readFileSync','\x20\x20\x20Stable\x20version:\x20','dependencies','minVersion','2795149vHalmv','join','utf8','log','\x20\x20\x20Upgrade\x20command:\x20','devDependencies','33TzVwZr','parse','existsSync','some','all','2160030zRHcjW','548tafLaX','1355TPvcVB','npm\x20install\x20','4ojJoMG','\x1b[33m','package.json','stableVersion','packageName','version','@lovrabet/sdk','test','18lPiGih','1109432GyDisQ','sdk','2120790KZjBDa'];a277_0x1d93=function(){return _0x3f0863;};return a277_0x1d93();}const FALLBACK_MIN_SDK_VERSION=a277_0xffb1c8(0xc8);function isNonNumericVersion(_0x38398b){const _0x755934=a277_0xffb1c8,_0x2a4bea=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2a4bea[_0x755934(0xdb)](_0x548d01=>_0x548d01[_0x755934(0xc0)](_0x38398b));}function getInstalledVersion(_0x4d024e,_0x3badf3){const _0x338438=a277_0xffb1c8;try{const _0x57f077=a277_0x2381d4[_0x338438(0xd3)](_0x4d024e,_0x338438(0xc9),_0x3badf3,_0x338438(0xe3));if(a277_0x3e761f[_0x338438(0xda)](_0x57f077)){const _0x538205=JSON[_0x338438(0xd9)](a277_0x3e761f[_0x338438(0xce)](_0x57f077,_0x338438(0xc6)));return _0x538205[_0x338438(0xe6)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4501b6=a277_0xffb1c8;try{const _0x47a78b=await getCdnConfig();return _0x47a78b?.['sdk']?.[_0x4501b6(0xcb)]?.[_0x4501b6(0xe4)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x324e5f=a277_0xffb1c8;try{const _0x3b095d=await getCdnConfig();return _0x3b095d?.[_0x324e5f(0xc3)]?.['node']?.[_0x324e5f(0xe5)]||_0x324e5f(0xbf);}catch{return'@lovrabet/sdk';}}function a277_0x25e8(_0x512b55,_0x34dcb9){_0x512b55=_0x512b55-0xbf;const _0x1d93c7=a277_0x1d93();let _0x25e8f9=_0x1d93c7[_0x512b55];return _0x25e8f9;}export async function checkSdkVersion(_0x246a0){const _0x58bdca=a277_0xffb1c8,_0x1a8835=a277_0x2381d4[_0x58bdca(0xd3)](_0x246a0,_0x58bdca(0xe3)),[_0x414880,_0x5bf227]=await Promise[_0x58bdca(0xdc)]([getSdkStableVersion(),getSdkPackageName()]),_0x1ed1a9=_0x414880||FALLBACK_MIN_SDK_VERSION;if(!a277_0x3e761f[_0x58bdca(0xda)](_0x1a8835))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1ed1a9,'packageName':_0x5bf227,'stableVersion':_0x414880};try{const _0x3a14e5=JSON['parse'](a277_0x3e761f[_0x58bdca(0xce)](_0x1a8835,_0x58bdca(0xd4))),_0x3f2a37=_0x3a14e5[_0x58bdca(0xd0)]||{},_0x5ca399=_0x3a14e5['devDependencies']||{},_0x597a39=_0x3f2a37[_0x5bf227]||_0x5ca399[_0x5bf227];if(!_0x597a39)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1ed1a9,'packageName':_0x5bf227,'stableVersion':_0x414880};let _0x47f9c6=getInstalledVersion(_0x246a0,_0x5bf227);!_0x47f9c6&&(_0x47f9c6=_0x597a39);if(isNonNumericVersion(_0x597a39))return{'installed':!![],'version':_0x47f9c6,'needsUpgrade':![],'minVersion':_0x1ed1a9,'packageName':_0x5bf227,'stableVersion':_0x414880};const _0x399089=a277_0x5388e6[_0x58bdca(0xcd)](_0x47f9c6),_0x4d5b88=a277_0x5388e6['coerce'](_0x1ed1a9),_0x51b9d5=_0x399089&&_0x4d5b88?a277_0x5388e6['lt'](_0x399089,_0x4d5b88):![];return{'installed':!![],'version':_0x47f9c6,'needsUpgrade':_0x51b9d5,'minVersion':_0x1ed1a9,'packageName':_0x5bf227,'stableVersion':_0x414880};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1ed1a9,'packageName':_0x5bf227,'stableVersion':_0x414880};}}export function checkSdkVersionSync(_0x8a0bf5){const _0x4847cf=a277_0xffb1c8,_0x16c900=a277_0x2381d4[_0x4847cf(0xd3)](_0x8a0bf5,_0x4847cf(0xe3)),_0x2740b5=_0x4847cf(0xbf);if(!a277_0x3e761f[_0x4847cf(0xda)](_0x16c900))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2740b5,'stableVersion':null};try{const _0x48b37c=JSON[_0x4847cf(0xd9)](a277_0x3e761f[_0x4847cf(0xce)](_0x16c900,_0x4847cf(0xd4))),_0xbc783f=_0x48b37c['dependencies']||{},_0x693bb1=_0x48b37c[_0x4847cf(0xd7)]||{},_0x2defab=_0xbc783f[_0x2740b5]||_0x693bb1[_0x2740b5];if(!_0x2defab)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2740b5,'stableVersion':null};let _0x25dfd6=getInstalledVersion(_0x8a0bf5,_0x2740b5);!_0x25dfd6&&(_0x25dfd6=_0x2defab);if(isNonNumericVersion(_0x2defab))return{'installed':!![],'version':_0x25dfd6,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2740b5,'stableVersion':null};const _0x34e982=a277_0x5388e6[_0x4847cf(0xcd)](_0x25dfd6),_0x4bcb71=_0x34e982?a277_0x5388e6['lt'](_0x34e982,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x25dfd6,'needsUpgrade':_0x4bcb71,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2740b5,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2740b5,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x3dfd2b){const _0x32deeb=a277_0xffb1c8;if(!_0x3dfd2b[_0x32deeb(0xc7)])return;const _0x4abdde=_0x32deeb(0xe2),_0x56dc65='\x1b[0m',_0x51c060='\x1b[1m',_0x39cf49=_0x3dfd2b['packageName']||'@lovrabet/sdk',_0x533f39=_0x3dfd2b[_0x32deeb(0xe4)]||_0x3dfd2b[_0x32deeb(0xd1)],_0x6f4f12=_0x32deeb(0xe0)+_0x39cf49+'@'+(_0x533f39||'latest');console[_0x32deeb(0xd5)](),console['log'](''+_0x4abdde+_0x51c060+'↪\x20SDK\x20update\x20available'+_0x56dc65),console[_0x32deeb(0xd5)](_0x4abdde+_0x32deeb(0xc5)+_0x39cf49+'@'+_0x3dfd2b[_0x32deeb(0xe6)]+_0x56dc65),console[_0x32deeb(0xd5)](_0x4abdde+_0x32deeb(0xcf)+_0x533f39+_0x56dc65),console[_0x32deeb(0xd5)](_0x4abdde+_0x32deeb(0xd6)+_0x6f4f12+_0x56dc65),console['log']();}
@@ -1 +1 @@
1
- (function(_0x9afd6f,_0x4fb033){const _0x15543b=a278_0x2dd0,_0x4237a8=_0x9afd6f();while(!![]){try{const _0x3dc7c7=-parseInt(_0x15543b(0x9f))/0x1+parseInt(_0x15543b(0xa3))/0x2+-parseInt(_0x15543b(0xaa))/0x3+-parseInt(_0x15543b(0xb2))/0x4*(-parseInt(_0x15543b(0xaf))/0x5)+parseInt(_0x15543b(0x9e))/0x6*(parseInt(_0x15543b(0x9c))/0x7)+parseInt(_0x15543b(0xab))/0x8*(parseInt(_0x15543b(0xb1))/0x9)+-parseInt(_0x15543b(0xbf))/0xa*(-parseInt(_0x15543b(0xad))/0xb);if(_0x3dc7c7===_0x4fb033)break;else _0x4237a8['push'](_0x4237a8['shift']());}catch(_0x2a3943){_0x4237a8['push'](_0x4237a8['shift']());}}}(a278_0x34bc,0xd77ba));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a278_0x5cba8c 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(_0x598c87){const _0x3b19c8=a278_0x2dd0,_0x4aa1c5=_0x598c87[_0x3b19c8(0xc2)]||_0x3b19c8(0xac);return _0x3b19c8(0xbe)+NPM_PACKAGE_NAME+'@'+_0x4aa1c5;}function getCurrentCliVersion(){const _0x1438f1=a278_0x2dd0;try{const _0x4c10be=fileURLToPath(import.meta.url),_0x25c245=resolve(dirname(_0x4c10be),_0x1438f1(0xa4)),_0x1711e9=resolve(_0x25c245,_0x1438f1(0xa0)),_0x3d7355=JSON[_0x1438f1(0xa2)](readFileSync(_0x1711e9,_0x1438f1(0xc0)));return _0x3d7355['version']||_0x1438f1(0xb9);}catch{return'1.0.0';}}function a278_0x2dd0(_0xdbf248,_0x4ec022){_0xdbf248=_0xdbf248-0x9b;const _0x34bc4=a278_0x34bc();let _0x2dd094=_0x34bc4[_0xdbf248];return _0x2dd094;}export async function checkCliVersion(){const _0x73ba70=a278_0x2dd0,_0x2cd2fe=getCurrentCliVersion(),_0x2682f4=await getCliVersionPolicy(),_0x149416=_0x2682f4?.[_0x73ba70(0xc2)]||null,_0x29ff59=_0x2682f4?.['minimumVersion']||null;let _0x5c7dea=![],_0x17730d=![];const _0x43b033=a278_0x5cba8c[_0x73ba70(0xb5)](_0x2cd2fe);if(_0x43b033&&_0x149416)try{const _0x502060=a278_0x5cba8c[_0x73ba70(0xb5)](_0x149416);if(_0x502060)_0x5c7dea=a278_0x5cba8c['lt'](_0x43b033,_0x502060);}catch{}if(_0x43b033&&_0x29ff59)try{const _0x35d1bd=a278_0x5cba8c[_0x73ba70(0xb5)](_0x29ff59);if(_0x35d1bd)_0x17730d=a278_0x5cba8c['lt'](_0x43b033,_0x35d1bd);}catch{}return _0x17730d&&(_0x5c7dea=!![]),{'currentVersion':_0x2cd2fe,'stableVersion':_0x149416,'minimumVersion':_0x29ff59,'needsUpgrade':_0x5c7dea,'belowMinimum':_0x17730d,'isPreRelease':![],'upgradeMessage':_0x2682f4?.[_0x73ba70(0xae)],'minimumVersionMessage':_0x2682f4?.['minimumVersionMessage']};}function a278_0x34bc(){const _0x5c9758=['8117960yvamHA','utf-8','↪\x20New\x20version\x20available','stableVersion','currentVersion','join','1358lbjslM','log','37644LHuICU','1007204xSvWlS','package.json','belowMinimum','parse','271358toPPQZ','../..','filter','needsUpgrade','\x1b[1m','\x20\x20\x20Recommended\x20stable:\x20','validation','4653120ZqVaPG','3656152HjWSPc','latest','11YNzewh','upgradeMessage','4096060jyrJEJ','\x1b[33m','9NTCdVc','4zVjnWc','\x1b[31m','\x20\x20\x20Upgrade\x20command:\x20','coerce','↪\x20Critical\x20CLI\x20upgrade\x20required','minimumVersionMessage','\x20\x20\x20Minimum\x20supported:\x20','1.0.0','\x1b[0m','minimumVersion','Current\x20version:\x20','\x20\x20\x20','npm\x20install\x20-g\x20'];a278_0x34bc=function(){return _0x5c9758;};return a278_0x34bc();}export function printCliUpgradeWarning(_0xa88814){const _0x4115f1=a278_0x2dd0;if(!_0xa88814[_0x4115f1(0xa6)]&&!_0xa88814[_0x4115f1(0xa1)])return;const _0x121f44=_0x4115f1(0xb3),_0x58113c=_0x4115f1(0xb0),_0x11d028=_0x4115f1(0xba),_0x7bd6d2=_0x4115f1(0xa7),_0x32e9cd=getCliUpgradeCommand(_0xa88814);console[_0x4115f1(0x9d)](),_0xa88814['belowMinimum']?(console[_0x4115f1(0x9d)](''+_0x121f44+_0x7bd6d2+_0x4115f1(0xb6)+_0x11d028),console['log'](_0x121f44+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0xa88814[_0x4115f1(0xc3)]+_0x11d028),_0xa88814[_0x4115f1(0xbb)]&&console['log'](_0x121f44+_0x4115f1(0xb8)+_0xa88814[_0x4115f1(0xbb)]+_0x11d028),_0xa88814[_0x4115f1(0xc2)]&&_0xa88814[_0x4115f1(0xc2)]!==_0xa88814[_0x4115f1(0xbb)]&&console[_0x4115f1(0x9d)](_0x121f44+_0x4115f1(0xa8)+_0xa88814['stableVersion']+_0x11d028),_0xa88814[_0x4115f1(0xb7)]&&console[_0x4115f1(0x9d)](_0x121f44+_0x4115f1(0xbd)+_0xa88814[_0x4115f1(0xb7)]+_0x11d028),console[_0x4115f1(0x9d)](_0x121f44+_0x4115f1(0xb4)+_0x32e9cd+_0x11d028)):(console['log'](''+_0x58113c+_0x7bd6d2+_0x4115f1(0xc1)+_0x11d028),console[_0x4115f1(0x9d)](_0x58113c+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0xa88814[_0x4115f1(0xc3)]+_0x11d028),console['log'](_0x58113c+'\x20\x20\x20Stable\x20version:\x20'+_0xa88814['stableVersion']+_0x11d028),_0xa88814[_0x4115f1(0xae)]&&console[_0x4115f1(0x9d)](_0x58113c+_0x4115f1(0xbd)+_0xa88814['upgradeMessage']+_0x11d028),console[_0x4115f1(0x9d)](_0x58113c+_0x4115f1(0xb4)+_0x32e9cd+_0x11d028)),console[_0x4115f1(0x9d)]();}export function assertCliVersionSupported(_0x19337f){const _0x207208=a278_0x2dd0;if(!_0x19337f['belowMinimum'])return;const _0x1a9d29=[_0x19337f[_0x207208(0xb7)],_0x207208(0xbc)+_0x19337f['currentVersion'],_0x19337f[_0x207208(0xbb)]?'Minimum\x20supported:\x20'+_0x19337f[_0x207208(0xbb)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x19337f)][_0x207208(0xa5)](Boolean)[_0x207208(0x9b)]('\x0a');throw CliErrors[_0x207208(0xa9)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x1a9d29);}
1
+ (function(_0x2774b9,_0x17a0f1){const _0x49cc96=a278_0x980c,_0x53b9df=_0x2774b9();while(!![]){try{const _0x26c1b2=-parseInt(_0x49cc96(0x1f9))/0x1+parseInt(_0x49cc96(0x1e3))/0x2+parseInt(_0x49cc96(0x1f8))/0x3*(parseInt(_0x49cc96(0x1e1))/0x4)+-parseInt(_0x49cc96(0x1e4))/0x5*(parseInt(_0x49cc96(0x1f0))/0x6)+parseInt(_0x49cc96(0x1e0))/0x7+parseInt(_0x49cc96(0x1e7))/0x8*(parseInt(_0x49cc96(0x1f3))/0x9)+-parseInt(_0x49cc96(0x1f2))/0xa*(-parseInt(_0x49cc96(0x1e5))/0xb);if(_0x26c1b2===_0x17a0f1)break;else _0x53b9df['push'](_0x53b9df['shift']());}catch(_0x25b0e6){_0x53b9df['push'](_0x53b9df['shift']());}}}(a278_0x4a5a,0xe57be));import{readFileSync}from'node:fs';function a278_0x980c(_0x40a111,_0x35addf){_0x40a111=_0x40a111-0x1d5;const _0x4a5a02=a278_0x4a5a();let _0x980c35=_0x4a5a02[_0x40a111];return _0x980c35;}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a278_0x1e664a 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(_0x17b295){const _0x1eec61=a278_0x980c,_0x293b69=_0x17b295['stableVersion']||_0x1eec61(0x1d8);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x293b69;}function getCurrentCliVersion(){const _0x2e7a81=a278_0x980c;try{const _0x333f7f=fileURLToPath(import.meta.url),_0x2be559=resolve(dirname(_0x333f7f),_0x2e7a81(0x1fb)),_0x3742dc=resolve(_0x2be559,'package.json'),_0x225c1a=JSON['parse'](readFileSync(_0x3742dc,'utf-8'));return _0x225c1a[_0x2e7a81(0x1f7)]||_0x2e7a81(0x1ef);}catch{return _0x2e7a81(0x1ef);}}export async function checkCliVersion(){const _0x1bf47b=a278_0x980c,_0x33034c=getCurrentCliVersion(),_0x3e78c2=await getCliVersionPolicy(),_0x1bae41=_0x3e78c2?.[_0x1bf47b(0x1ee)]||null,_0xb07823=_0x3e78c2?.[_0x1bf47b(0x1de)]||null;let _0x355d33=![],_0x440b3c=![];const _0xbc7897=a278_0x1e664a[_0x1bf47b(0x1df)](_0x33034c);if(_0xbc7897&&_0x1bae41)try{const _0x500936=a278_0x1e664a[_0x1bf47b(0x1df)](_0x1bae41);if(_0x500936)_0x355d33=a278_0x1e664a['lt'](_0xbc7897,_0x500936);}catch{}if(_0xbc7897&&_0xb07823)try{const _0x353c87=a278_0x1e664a[_0x1bf47b(0x1df)](_0xb07823);if(_0x353c87)_0x440b3c=a278_0x1e664a['lt'](_0xbc7897,_0x353c87);}catch{}return _0x440b3c&&(_0x355d33=!![]),{'currentVersion':_0x33034c,'stableVersion':_0x1bae41,'minimumVersion':_0xb07823,'needsUpgrade':_0x355d33,'belowMinimum':_0x440b3c,'isPreRelease':![],'upgradeMessage':_0x3e78c2?.[_0x1bf47b(0x1f1)],'minimumVersionMessage':_0x3e78c2?.[_0x1bf47b(0x1e6)]};}function a278_0x4a5a(){const _0x4d38af=['Upgrade\x20command:\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','\x1b[33m','stableVersion','1.0.0','6mRdOeK','upgradeMessage','12290JYyOTf','1293039rwkAWd','Current\x20version:\x20','validation','filter','version','12aQmeoH','1534210xhIAzD','\x20\x20\x20Recommended\x20stable:\x20','../..','needsUpgrade','join','log','latest','currentVersion','\x20\x20\x20Stable\x20version:\x20','\x1b[31m','\x20\x20\x20Upgrade\x20command:\x20','Minimum\x20supported:\x20','minimumVersion','coerce','797930WYKGIL','1811948fMBvGe','\x1b[0m','623580KjtZjx','2841515jpoICI','4631otTLub','minimumVersionMessage','16mcHkrc','\x20\x20\x20','\x1b[1m','belowMinimum'];a278_0x4a5a=function(){return _0x4d38af;};return a278_0x4a5a();}export function printCliUpgradeWarning(_0x31b5a5){const _0x5a8120=a278_0x980c;if(!_0x31b5a5[_0x5a8120(0x1d5)]&&!_0x31b5a5[_0x5a8120(0x1ea)])return;const _0x35cdb3=_0x5a8120(0x1db),_0x2e010c=_0x5a8120(0x1ed),_0x36e548=_0x5a8120(0x1e2),_0x3263b4=_0x5a8120(0x1e9),_0x4e5971=getCliUpgradeCommand(_0x31b5a5);console[_0x5a8120(0x1d7)](),_0x31b5a5[_0x5a8120(0x1ea)]?(console['log'](''+_0x35cdb3+_0x3263b4+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x36e548),console[_0x5a8120(0x1d7)](_0x35cdb3+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x31b5a5['currentVersion']+_0x36e548),_0x31b5a5[_0x5a8120(0x1de)]&&console[_0x5a8120(0x1d7)](_0x35cdb3+'\x20\x20\x20Minimum\x20supported:\x20'+_0x31b5a5['minimumVersion']+_0x36e548),_0x31b5a5[_0x5a8120(0x1ee)]&&_0x31b5a5[_0x5a8120(0x1ee)]!==_0x31b5a5[_0x5a8120(0x1de)]&&console[_0x5a8120(0x1d7)](_0x35cdb3+_0x5a8120(0x1fa)+_0x31b5a5[_0x5a8120(0x1ee)]+_0x36e548),_0x31b5a5[_0x5a8120(0x1e6)]&&console[_0x5a8120(0x1d7)](_0x35cdb3+_0x5a8120(0x1e8)+_0x31b5a5[_0x5a8120(0x1e6)]+_0x36e548),console[_0x5a8120(0x1d7)](_0x35cdb3+_0x5a8120(0x1dc)+_0x4e5971+_0x36e548)):(console[_0x5a8120(0x1d7)](''+_0x2e010c+_0x3263b4+'↪\x20New\x20version\x20available'+_0x36e548),console[_0x5a8120(0x1d7)](_0x2e010c+_0x5a8120(0x1ec)+_0x31b5a5[_0x5a8120(0x1d9)]+_0x36e548),console['log'](_0x2e010c+_0x5a8120(0x1da)+_0x31b5a5[_0x5a8120(0x1ee)]+_0x36e548),_0x31b5a5['upgradeMessage']&&console['log'](_0x2e010c+_0x5a8120(0x1e8)+_0x31b5a5[_0x5a8120(0x1f1)]+_0x36e548),console['log'](_0x2e010c+_0x5a8120(0x1dc)+_0x4e5971+_0x36e548)),console[_0x5a8120(0x1d7)]();}export function assertCliVersionSupported(_0x1628e0){const _0x3ed7d6=a278_0x980c;if(!_0x1628e0[_0x3ed7d6(0x1ea)])return;const _0x3aac07=[_0x1628e0[_0x3ed7d6(0x1e6)],_0x3ed7d6(0x1f4)+_0x1628e0[_0x3ed7d6(0x1d9)],_0x1628e0['minimumVersion']?_0x3ed7d6(0x1dd)+_0x1628e0[_0x3ed7d6(0x1de)]:null,_0x3ed7d6(0x1eb)+getCliUpgradeCommand(_0x1628e0)][_0x3ed7d6(0x1f6)](Boolean)[_0x3ed7d6(0x1d6)]('\x0a');throw CliErrors[_0x3ed7d6(0x1f5)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x3aac07);}
@@ -1 +1 @@
1
- (function(_0x11f2fb,_0x56e750){const _0x6292ef=a279_0x1cba,_0x249017=_0x11f2fb();while(!![]){try{const _0x2359ef=parseInt(_0x6292ef(0x10d))/0x1+-parseInt(_0x6292ef(0x107))/0x2*(-parseInt(_0x6292ef(0x105))/0x3)+parseInt(_0x6292ef(0x100))/0x4*(-parseInt(_0x6292ef(0x103))/0x5)+parseInt(_0x6292ef(0xfe))/0x6*(parseInt(_0x6292ef(0x104))/0x7)+-parseInt(_0x6292ef(0xf7))/0x8+-parseInt(_0x6292ef(0x101))/0x9+parseInt(_0x6292ef(0xfc))/0xa*(parseInt(_0x6292ef(0xf9))/0xb);if(_0x2359ef===_0x56e750)break;else _0x249017['push'](_0x249017['shift']());}catch(_0x3c8267){_0x249017['push'](_0x249017['shift']());}}}(a279_0x26b0,0xdccc4));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_0x26b0(){const _0x1e6090=['18614ybjzHo','application/json','cli','12287424SyyEUT','minVersion','644083wQxrVI','upgradeMessage','abort','640qYLwBp','stableVersion','6EOLGzQ','trim','52yNZIro','14907483YdWght','minimumVersionMessage','613035qfCnvf','5734211DHPmNG','3yneZNZ','signal','2210830UoCyqD','string','json','object','now','minimumVersion'];a279_0x26b0=function(){return _0x1e6090;};return a279_0x26b0();}function pickString(_0xa83804){const _0x2f6d19=a279_0x1cba;return typeof _0xa83804===_0x2f6d19(0x108)&&_0xa83804[_0x2f6d19(0xff)]()['length']>0x0?_0xa83804['trim']():null;}function normalizeCliVersionPolicy(_0x2c733d){const _0x11fb07=a279_0x1cba;if(!_0x2c733d||typeof _0x2c733d!=='object')return null;const _0x1329f4=_0x2c733d,_0x17fbb7=_0x1329f4[_0x11fb07(0xf6)]&&typeof _0x1329f4[_0x11fb07(0xf6)]===_0x11fb07(0x10a)?_0x1329f4[_0x11fb07(0xf6)]:_0x1329f4,_0x3598a1=pickString(_0x17fbb7[_0x11fb07(0xfd)])||pickString(_0x17fbb7['latestVersion'])||pickString(_0x17fbb7['recommendedVersion']),_0x39fa87=pickString(_0x17fbb7[_0x11fb07(0x10c)])||pickString(_0x17fbb7[_0x11fb07(0xf8)]);if(!_0x3598a1&&!_0x39fa87)return null;return{'stableVersion':_0x3598a1,'minimumVersion':_0x39fa87,'upgradeMessage':pickString(_0x17fbb7[_0x11fb07(0xfa)])||undefined,'minimumVersionMessage':pickString(_0x17fbb7[_0x11fb07(0x102)])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x1f88a7=a279_0x1cba,_0x29b3f6=new AbortController(),_0x80d0da=setTimeout(()=>_0x29b3f6[_0x1f88a7(0xfb)](),FETCH_TIMEOUT_MS);try{const _0x37ff74=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x1f88a7(0x10e)},'signal':_0x29b3f6[_0x1f88a7(0x106)]});if(!_0x37ff74['ok'])return null;const _0x353f08=await _0x37ff74[_0x1f88a7(0x109)]();return _0x353f08&&typeof _0x353f08==='object'?_0x353f08:null;}catch{return null;}finally{clearTimeout(_0x80d0da);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];function a279_0x1cba(_0x26c8d7,_0x12ea9){_0x26c8d7=_0x26c8d7-0xf6;const _0x26b04a=a279_0x26b0();let _0x1cba81=_0x26b04a[_0x26c8d7];return _0x1cba81;}export async function getRabetbaseCdnConfig(){const _0x1108ad=a279_0x1cba,_0x9109e7=Date[_0x1108ad(0x10b)]();if(hasCachedConfig){const _0x327053=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x9109e7-cacheTime<_0x327053)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x9109e7,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x349e8e,_0x34fd9f){const _0x28a6cd=a279_0xf934,_0x53085f=_0x349e8e();while(!![]){try{const _0x51abe7=-parseInt(_0x28a6cd(0x1f2))/0x1+-parseInt(_0x28a6cd(0x1e7))/0x2*(-parseInt(_0x28a6cd(0x1f4))/0x3)+-parseInt(_0x28a6cd(0x1ec))/0x4*(-parseInt(_0x28a6cd(0x1e6))/0x5)+parseInt(_0x28a6cd(0x1eb))/0x6+parseInt(_0x28a6cd(0x1e2))/0x7*(-parseInt(_0x28a6cd(0x1f5))/0x8)+-parseInt(_0x28a6cd(0x1f0))/0x9+-parseInt(_0x28a6cd(0x1f3))/0xa;if(_0x51abe7===_0x34fd9f)break;else _0x53085f['push'](_0x53085f['shift']());}catch(_0x5e247e){_0x53085f['push'](_0x53085f['shift']());}}}(a279_0x45aa,0xd775a));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(_0x5a208d){const _0x2afc08=a279_0xf934;return typeof _0x5a208d===_0x2afc08(0x1e4)&&_0x5a208d['trim']()['length']>0x0?_0x5a208d[_0x2afc08(0x1ee)]():null;}function normalizeCliVersionPolicy(_0x2c8d90){const _0x11f3c2=a279_0xf934;if(!_0x2c8d90||typeof _0x2c8d90!==_0x11f3c2(0x1f6))return null;const _0x22dc0a=_0x2c8d90,_0x5bb09a=_0x22dc0a['cli']&&typeof _0x22dc0a['cli']===_0x11f3c2(0x1f6)?_0x22dc0a[_0x11f3c2(0x1e9)]:_0x22dc0a,_0x21892a=pickString(_0x5bb09a['stableVersion'])||pickString(_0x5bb09a[_0x11f3c2(0x1f1)])||pickString(_0x5bb09a[_0x11f3c2(0x1e8)]),_0x31b19b=pickString(_0x5bb09a[_0x11f3c2(0x1f8)])||pickString(_0x5bb09a['minVersion']);if(!_0x21892a&&!_0x31b19b)return null;return{'stableVersion':_0x21892a,'minimumVersion':_0x31b19b,'upgradeMessage':pickString(_0x5bb09a[_0x11f3c2(0x1ea)])||undefined,'minimumVersionMessage':pickString(_0x5bb09a['minimumVersionMessage'])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x2f99f1=a279_0xf934,_0x22c8da=new AbortController(),_0x31926d=setTimeout(()=>_0x22c8da[_0x2f99f1(0x1e3)](),FETCH_TIMEOUT_MS);try{const _0x577241=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x2f99f1(0x1ef)},'signal':_0x22c8da[_0x2f99f1(0x1ed)]});if(!_0x577241['ok'])return null;const _0x5bbfb9=await _0x577241[_0x2f99f1(0x1f7)]();return _0x5bbfb9&&typeof _0x5bbfb9===_0x2f99f1(0x1f6)?_0x5bbfb9:null;}catch{return null;}finally{clearTimeout(_0x31926d);}}function a279_0xf934(_0x1b48de,_0x130fb4){_0x1b48de=_0x1b48de-0x1e2;const _0x45aa91=a279_0x45aa();let _0xf934e7=_0x45aa91[_0x1b48de];return _0xf934e7;}function a279_0x45aa(){const _0x19f63=['1444653vFXmAG','latestVersion','1522229sqnLxJ','11750440PBJCvs','3fvIzwA','80eHRpXB','object','json','minimumVersion','127281XIUFhy','abort','string','now','3783100vtSSdD','2349188jURTRe','recommendedVersion','cli','upgradeMessage','7405848jRWYKv','8IVTTry','signal','trim','application/json'];a279_0x45aa=function(){return _0x19f63;};return a279_0x45aa();}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x5d5ae9=a279_0xf934,_0x271f97=Date[_0x5d5ae9(0x1e5)]();if(hasCachedConfig){const _0x2ebe81=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x271f97-cacheTime<_0x2ebe81)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x271f97,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a280_0x4b1e18=a280_0x53c5;function a280_0xd1ce(){const _0x3fa5d2=['63795862QqWlrH','17400922kevaSf','36NQhWHw','16GYgMUb','12ojvuRF','477918EEPDrH','1RXXWbj','3777WtMUHT','string','1589320RyFVCg','2492xsEAhr','728015znenRM','env','27iHojHY','project','863366ivTvjx'];a280_0xd1ce=function(){return _0x3fa5d2;};return a280_0xd1ce();}(function(_0x108068,_0x4798c6){const _0x6a92e4=a280_0x53c5,_0x25c500=_0x108068();while(!![]){try{const _0x19a1b8=-parseInt(_0x6a92e4(0x83))/0x1*(parseInt(_0x6a92e4(0x8c))/0x2)+-parseInt(_0x6a92e4(0x84))/0x3*(parseInt(_0x6a92e4(0x87))/0x4)+parseInt(_0x6a92e4(0x88))/0x5*(-parseInt(_0x6a92e4(0x8f))/0x6)+parseInt(_0x6a92e4(0x92))/0x7*(parseInt(_0x6a92e4(0x90))/0x8)+parseInt(_0x6a92e4(0x8a))/0x9*(-parseInt(_0x6a92e4(0x86))/0xa)+-parseInt(_0x6a92e4(0x8e))/0xb+parseInt(_0x6a92e4(0x91))/0xc*(parseInt(_0x6a92e4(0x8d))/0xd);if(_0x19a1b8===_0x4798c6)break;else _0x25c500['push'](_0x25c500['shift']());}catch(_0x5c49b7){_0x25c500['push'](_0x25c500['shift']());}}}(a280_0xd1ce,0xdaa4e));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a280_0x17523f,getMultiAppConfigs as a280_0x5677f1,getTemplateBaseUrl as a280_0x5e2e3c}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x4520fc){const _0x171ee1=a280_0x53c5,_0x348a26=readRawConfig(_0x4520fc);return _0x348a26[_0x171ee1(0x89)]&&typeof _0x348a26['env']===_0x171ee1(0x85)&&initEnv(_0x348a26['env']),_0x348a26;}function a280_0x53c5(_0x3f0635,_0x6bbb2e){_0x3f0635=_0x3f0635-0x83;const _0xd1ced7=a280_0xd1ce();let _0x53c5a5=_0xd1ced7[_0x3f0635];return _0x53c5a5;}export function getConfigAppCode(){return a280_0x17523f();}export function getMultiAppConfigs(_0x1487f9=a280_0x4b1e18(0x8b)){return a280_0x5677f1(_0x1487f9);}export function getTemplateBaseUrl(){return a280_0x5e2e3c();}
1
+ (function(_0x364c92,_0x559c3c){const _0x19e3c4=a280_0x3b42,_0x3abd46=_0x364c92();while(!![]){try{const _0x39a798=-parseInt(_0x19e3c4(0x107))/0x1*(-parseInt(_0x19e3c4(0x102))/0x2)+parseInt(_0x19e3c4(0x108))/0x3+-parseInt(_0x19e3c4(0xfd))/0x4+parseInt(_0x19e3c4(0x109))/0x5*(-parseInt(_0x19e3c4(0x103))/0x6)+-parseInt(_0x19e3c4(0xff))/0x7*(-parseInt(_0x19e3c4(0x106))/0x8)+parseInt(_0x19e3c4(0x105))/0x9*(-parseInt(_0x19e3c4(0x101))/0xa)+parseInt(_0x19e3c4(0x100))/0xb;if(_0x39a798===_0x559c3c)break;else _0x3abd46['push'](_0x3abd46['shift']());}catch(_0xa3ff0b){_0x3abd46['push'](_0x3abd46['shift']());}}}(a280_0x4e02,0x42a74));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a280_0x591874,getMultiAppConfigs as a280_0x450854,getTemplateBaseUrl as a280_0xafca8f}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a280_0x3b42(_0x43cb81,_0x287898){_0x43cb81=_0x43cb81-0xfd;const _0x4e0204=a280_0x4e02();let _0x3b4239=_0x4e0204[_0x43cb81];return _0x3b4239;}function a280_0x4e02(){const _0x5b43a0=['371463UwZRMj','2425GUZSrv','2104036wcpoSc','env','142107bjstVD','8188004nzetnP','1370YwhBGz','2tCeIVq','3810vzwjre','string','7425qhOZXC','48AYqDqK','230030FCDjTT'];a280_0x4e02=function(){return _0x5b43a0;};return a280_0x4e02();}export function readConfig(_0x290e50){const _0x18d00f=a280_0x3b42,_0x549c00=readRawConfig(_0x290e50);return _0x549c00[_0x18d00f(0xfe)]&&typeof _0x549c00[_0x18d00f(0xfe)]===_0x18d00f(0x104)&&initEnv(_0x549c00['env']),_0x549c00;}export function getConfigAppCode(){return a280_0x591874();}export function getMultiAppConfigs(_0x3fe421='project'){return a280_0x450854(_0x3fe421);}export function getTemplateBaseUrl(){return a280_0xafca8f();}
@@ -1 +1 @@
1
- (function(_0x48e620,_0x780b6c){const _0xd49bf0=a281_0x8389,_0x23aaf5=_0x48e620();while(!![]){try{const _0x1dbdbe=-parseInt(_0xd49bf0(0x189))/0x1+parseInt(_0xd49bf0(0x180))/0x2*(parseInt(_0xd49bf0(0x185))/0x3)+-parseInt(_0xd49bf0(0x181))/0x4+parseInt(_0xd49bf0(0x187))/0x5*(-parseInt(_0xd49bf0(0x17f))/0x6)+parseInt(_0xd49bf0(0x17d))/0x7+parseInt(_0xd49bf0(0x188))/0x8+parseInt(_0xd49bf0(0x17e))/0x9;if(_0x1dbdbe===_0x780b6c)break;else _0x23aaf5['push'](_0x23aaf5['shift']());}catch(_0x5cc54e){_0x23aaf5['push'](_0x23aaf5['shift']());}}}(a281_0x245d,0xa95d1));function toFiniteNumber(_0x43af47){const _0x5e3368=a281_0x8389;if(typeof _0x43af47==='number'&&Number[_0x5e3368(0x186)](_0x43af47))return _0x43af47;if(typeof _0x43af47===_0x5e3368(0x183)){const _0x2b6183=_0x43af47[_0x5e3368(0x182)]();if(!_0x2b6183)return undefined;const _0x1955f7=Number(_0x2b6183);if(Number[_0x5e3368(0x186)](_0x1955f7))return _0x1955f7;}return undefined;}function a281_0x245d(){const _0x115e84=['1053888JdPldt','946892ifMBbz','4110666kYdMzT','7124364DBxSVg','6dMXCXC','1814MenDzQ','1366628TqAlpW','trim','string','object','2916tIliwy','isFinite','2049560RoBXvu'];a281_0x245d=function(){return _0x115e84;};return a281_0x245d();}function a281_0x8389(_0x200d98,_0x247485){_0x200d98=_0x200d98-0x17d;const _0x245d12=a281_0x245d();let _0x838935=_0x245d12[_0x200d98];return _0x838935;}export function normalizeEntityWithIdResponse(_0x212164){const _0x4c72bd=a281_0x8389,_0x1c32fd=toFiniteNumber(_0x212164);if(_0x1c32fd!==undefined)return{'id':_0x1c32fd,'entity':{'id':_0x1c32fd}};if(!_0x212164||typeof _0x212164!==_0x4c72bd(0x184))return{'id':undefined,'entity':{}};const _0x5bdc13={..._0x212164},_0x2d0cfa=toFiniteNumber(_0x5bdc13['id']);return _0x2d0cfa!==undefined&&(_0x5bdc13['id']=_0x2d0cfa),{'id':_0x2d0cfa,'entity':_0x5bdc13};}
1
+ (function(_0x499402,_0x3c4555){const _0x31c20e=a281_0x5bdf,_0x4482d6=_0x499402();while(!![]){try{const _0x314bda=-parseInt(_0x31c20e(0x19a))/0x1+-parseInt(_0x31c20e(0x19e))/0x2*(-parseInt(_0x31c20e(0x1a2))/0x3)+parseInt(_0x31c20e(0x199))/0x4+-parseInt(_0x31c20e(0x19f))/0x5+-parseInt(_0x31c20e(0x19b))/0x6+-parseInt(_0x31c20e(0x19d))/0x7*(parseInt(_0x31c20e(0x198))/0x8)+-parseInt(_0x31c20e(0x197))/0x9*(-parseInt(_0x31c20e(0x1a0))/0xa);if(_0x314bda===_0x3c4555)break;else _0x4482d6['push'](_0x4482d6['shift']());}catch(_0x285c9b){_0x4482d6['push'](_0x4482d6['shift']());}}}(a281_0x453f,0x81e5e));function a281_0x453f(){const _0x7ce656=['10MBZjTp','string','3ahthdB','number','18153657UoCVSk','16CCysMt','1905144tnhSDb','577147sIXzuG','2789862lFhRjW','object','1614291ZbpabJ','324838DYLbou','3101830XMZZNy'];a281_0x453f=function(){return _0x7ce656;};return a281_0x453f();}function toFiniteNumber(_0x5cd865){const _0x184b92=a281_0x5bdf;if(typeof _0x5cd865===_0x184b92(0x196)&&Number['isFinite'](_0x5cd865))return _0x5cd865;if(typeof _0x5cd865===_0x184b92(0x1a1)){const _0x3e1570=_0x5cd865['trim']();if(!_0x3e1570)return undefined;const _0x25904e=Number(_0x3e1570);if(Number['isFinite'](_0x25904e))return _0x25904e;}return undefined;}function a281_0x5bdf(_0x494970,_0x5a21c0){_0x494970=_0x494970-0x196;const _0x453ff1=a281_0x453f();let _0x5bdf36=_0x453ff1[_0x494970];return _0x5bdf36;}export function normalizeEntityWithIdResponse(_0x17f929){const _0x36a509=a281_0x5bdf,_0x2bc684=toFiniteNumber(_0x17f929);if(_0x2bc684!==undefined)return{'id':_0x2bc684,'entity':{'id':_0x2bc684}};if(!_0x17f929||typeof _0x17f929!==_0x36a509(0x19c))return{'id':undefined,'entity':{}};const _0x3f5043={..._0x17f929},_0x15a4fd=toFiniteNumber(_0x3f5043['id']);return _0x15a4fd!==undefined&&(_0x3f5043['id']=_0x15a4fd),{'id':_0x15a4fd,'entity':_0x3f5043};}
@@ -1 +1 @@
1
- (function(_0xa102f6,_0x3adb93){const _0x4640c1=a282_0x4942,_0x1e393f=_0xa102f6();while(!![]){try{const _0x345997=-parseInt(_0x4640c1(0x125))/0x1+-parseInt(_0x4640c1(0x121))/0x2*(-parseInt(_0x4640c1(0x128))/0x3)+parseInt(_0x4640c1(0x12b))/0x4+parseInt(_0x4640c1(0x120))/0x5*(parseInt(_0x4640c1(0x123))/0x6)+-parseInt(_0x4640c1(0x126))/0x7*(-parseInt(_0x4640c1(0x12c))/0x8)+parseInt(_0x4640c1(0x12a))/0x9*(parseInt(_0x4640c1(0x129))/0xa)+parseInt(_0x4640c1(0x124))/0xb*(-parseInt(_0x4640c1(0x127))/0xc);if(_0x345997===_0x3adb93)break;else _0x1e393f['push'](_0x1e393f['shift']());}catch(_0x95c14c){_0x1e393f['push'](_0x1e393f['shift']());}}}(a282_0x218f,0xd2604));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x116dce,_0x46bb97){const _0x4c4fd1=a282_0x4942,_0x326943=statSync(_0x116dce);if(_0x326943[_0x4c4fd1(0x122)]()){!existsSync(_0x46bb97)&&mkdirSync(_0x46bb97,{'recursive':!![]});const _0x81bb22=readdirSync(_0x116dce);for(const _0x4dcb7e of _0x81bb22){await copyDir(join(_0x116dce,_0x4dcb7e),join(_0x46bb97,_0x4dcb7e));}}else copyFileSync(_0x116dce,_0x46bb97);}function a282_0x218f(){const _0x240fbb=['5PBMIAb','1367914ZOaUPI','isDirectory','5471676oIgdOu','165ytOqUe','1413633LAAZTZ','1430345eUOzjd','1207056KoWUKQ','3XFzRUV','70YSmjzC','1089765wOgzhH','1275920rfQpgp','40JTPNHj'];a282_0x218f=function(){return _0x240fbb;};return a282_0x218f();}export function ensureDir(_0x13d796){!existsSync(_0x13d796)&&mkdirSync(_0x13d796,{'recursive':!![]});}function a282_0x4942(_0x415482,_0x5a7ea9){_0x415482=_0x415482-0x120;const _0x218f1d=a282_0x218f();let _0x494286=_0x218f1d[_0x415482];return _0x494286;}export function pathExists(_0xdbe53){return existsSync(_0xdbe53);}
1
+ (function(_0x2c90ac,_0x3dd2cd){const _0x300674=a282_0x4003,_0x2ca874=_0x2c90ac();while(!![]){try{const _0x105711=-parseInt(_0x300674(0xb5))/0x1+parseInt(_0x300674(0xb1))/0x2+-parseInt(_0x300674(0xb8))/0x3+parseInt(_0x300674(0xb7))/0x4*(-parseInt(_0x300674(0xb6))/0x5)+-parseInt(_0x300674(0xb2))/0x6*(-parseInt(_0x300674(0xb3))/0x7)+-parseInt(_0x300674(0xbb))/0x8*(parseInt(_0x300674(0xb9))/0x9)+parseInt(_0x300674(0xb4))/0xa;if(_0x105711===_0x3dd2cd)break;else _0x2ca874['push'](_0x2ca874['shift']());}catch(_0x1c710e){_0x2ca874['push'](_0x2ca874['shift']());}}}(a282_0x4651,0xd7894));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a282_0x4003(_0x2d24aa,_0x4da305){_0x2d24aa=_0x2d24aa-0xb1;const _0x465186=a282_0x4651();let _0x400334=_0x465186[_0x2d24aa];return _0x400334;}export async function copyDir(_0x123327,_0xcadbc){const _0x28c1d0=a282_0x4003,_0x33090b=statSync(_0x123327);if(_0x33090b[_0x28c1d0(0xba)]()){!existsSync(_0xcadbc)&&mkdirSync(_0xcadbc,{'recursive':!![]});const _0x50b070=readdirSync(_0x123327);for(const _0x5d5f06 of _0x50b070){await copyDir(join(_0x123327,_0x5d5f06),join(_0xcadbc,_0x5d5f06));}}else copyFileSync(_0x123327,_0xcadbc);}export function ensureDir(_0x606513){!existsSync(_0x606513)&&mkdirSync(_0x606513,{'recursive':!![]});}export function pathExists(_0xff57da){return existsSync(_0xff57da);}function a282_0x4651(){const _0x39b931=['304576TkPkTA','2560940vUiRTL','18yLGcti','3143371BeBKGC','21076740NDWzON','1543288tQPiAP','25dcBIfI','346844HoiPBk','4827360bYkueG','63VVOnJz','isDirectory'];a282_0x4651=function(){return _0x39b931;};return a282_0x4651();}
@@ -1 +1 @@
1
- const a283_0x365169=a283_0x41b2;(function(_0x3f1254,_0x2f852f){const _0x316112=a283_0x41b2,_0x283199=_0x3f1254();while(!![]){try{const _0x4fa411=parseInt(_0x316112(0x1f4))/0x1*(-parseInt(_0x316112(0x20c))/0x2)+-parseInt(_0x316112(0x1f6))/0x3*(-parseInt(_0x316112(0x210))/0x4)+parseInt(_0x316112(0x20d))/0x5+-parseInt(_0x316112(0x203))/0x6*(-parseInt(_0x316112(0x1fc))/0x7)+-parseInt(_0x316112(0x1f3))/0x8*(parseInt(_0x316112(0x1f8))/0x9)+-parseInt(_0x316112(0x206))/0xa*(parseInt(_0x316112(0x200))/0xb)+-parseInt(_0x316112(0x1fd))/0xc*(-parseInt(_0x316112(0x1f5))/0xd);if(_0x4fa411===_0x2f852f)break;else _0x283199['push'](_0x283199['shift']());}catch(_0x168185){_0x283199['push'](_0x283199['shift']());}}}(a283_0x227a,0x9b3aa));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function a283_0x41b2(_0x4a92b4,_0x4a2ea9){_0x4a92b4=_0x4a92b4-0x1f2;const _0x227a6d=a283_0x227a();let _0x41b235=_0x227a6d[_0x4a92b4];return _0x41b235;}function getGuidesCdnUrl(){const _0x460eb0=getTemplateBaseUrl();return _0x460eb0+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a283_0x365169(0x1f2),a283_0x365169(0x209));export async function fetchGuidesFromCDN(){const _0x26193b=a283_0x365169,_0x60ef55=getGuidesCdnUrl(),_0x42bd98=await fetch(_0x60ef55,{'headers':{'Accept':_0x26193b(0x20e)}});if(!_0x42bd98['ok'])throw new Error(_0x26193b(0x20b)+_0x42bd98['status']+'\x20'+_0x42bd98['statusText']);const _0x452c90=await _0x42bd98[_0x26193b(0x201)]();if(!_0x452c90[_0x26193b(0x211)]||typeof _0x452c90[_0x26193b(0x211)]!=='object')throw new Error(_0x26193b(0x1fb));return _0x452c90;}export function writeGuidesToProject(_0x376cae,_0x4fc6d5,_0x204280=a283_0x365169(0x1ff),_0x1be2f4){const _0x531453=a283_0x365169,_0x17aa60=join(_0x4fc6d5,_0x204280);mkdirSync(_0x17aa60,{'recursive':!![]});for(const [_0x4f37fe,_0x504280]of Object[_0x531453(0x20f)](_0x376cae['guides'])){let _0x39c339=_0x504280[_0x531453(0x207)];_0x504280[_0x531453(0x1f7)]&&(_0x39c339=appendUpdateTime(_0x39c339,_0x504280[_0x531453(0x1f7)])),writeFileSync(join(_0x17aa60,_0x4f37fe+_0x531453(0x208)),_0x39c339,_0x531453(0x213));}}export function appendUpdateTime(_0x18009a,_0x2aeed3){const _0x17cc15=a283_0x365169;return _0x18009a=_0x18009a[_0x17cc15(0x205)](/\n*>更新时间:.*$/m,''),_0x18009a[_0x17cc15(0x1f9)]()+('\x0a\x0a>更新时间:'+_0x2aeed3);}export function getSkillTemplate(_0x24c3f1){const _0x4366f1=a283_0x365169;return _0x24c3f1['skillTemplate']?.[_0x4366f1(0x207)]||'';}export function appendExtendContents(_0x563b68,_0x3117bb,_0x23c712){const _0x244a22=a283_0x365169,_0x7ccfc5=[];for(const [,_0x5a97a2]of Object[_0x244a22(0x20f)](_0x3117bb[_0x244a22(0x211)])){_0x5a97a2[_0x244a22(0x212)]&&_0x7ccfc5[_0x244a22(0x1fe)](_0x5a97a2[_0x244a22(0x212)][_0x244a22(0x1f9)]());}if(_0x7ccfc5[_0x244a22(0x20a)]===0x0)return _0x563b68;return _0x563b68[_0x244a22(0x1f9)]()+'\x0a\x0a'+_0x7ccfc5[_0x244a22(0x214)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x5e33f4,_0x1af2fc,_0x11e7ee){const _0x29f041=a283_0x365169,_0x3da495=getSkillTemplate(_0x5e33f4);if(!_0x3da495)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x1f5227=dirname(_0x1af2fc);mkdirSync(_0x1f5227,{'recursive':!![]});let _0x627db9=_0x3da495[_0x29f041(0x205)](/\{\{IDE_NAME\}\}/g,_0x11e7ee);_0x627db9=appendExtendContents(_0x627db9,_0x5e33f4),_0x5e33f4['skillTemplate']['lastUpdated']&&(_0x627db9=appendUpdateTime(_0x627db9,_0x5e33f4[_0x29f041(0x202)][_0x29f041(0x1f7)])),writeFileSync(_0x1af2fc,_0x627db9,_0x29f041(0x213));}export async function installGuides(_0x4f673c){const _0xd13cc4=await fetchGuidesFromCDN();return writeGuidesToProject(_0xd13cc4,_0x4f673c),Object['keys'](_0xd13cc4['guides'])['length'];}function a283_0x227a(){const _0x36f79f=['355251zFdkmX','30lxHBhW','lastUpdated','18GMCJlY','trimEnd','path','CDN\x20返回数据格式错误','6454xMBdDL','348uTPVXt','push','.lovrabet/skill/guides','32637lxpQeh','json','skillTemplate','3966mapBNZ','title','replace','940hOvUIB','content','.md','cache','length','CDN\x20请求失败:\x20','10418haHlbT','4720185ONWNfv','application/json','entries','187244akKGdm','guides','extendContent','utf-8','join','.lovrabet','3638584eZkRuq','190GKeCDF'];a283_0x227a=function(){return _0x36f79f;};return a283_0x227a();}export function getGuidesSummary(_0x47d1cf){const _0x455090=a283_0x365169;return Object['entries'](_0x47d1cf['guides'])['map'](([_0x407636,_0x3dc8d2])=>({'key':_0x407636,'title':_0x3dc8d2[_0x455090(0x204)],'path':_0x3dc8d2[_0x455090(0x1fa)]}));}
1
+ const a283_0x25a7a8=a283_0x27d3;function a283_0x27d3(_0x3ccfcd,_0x75aff5){_0x3ccfcd=_0x3ccfcd-0x13a;const _0xf1fd46=a283_0xf1fd();let _0x27d3ef=_0xf1fd46[_0x3ccfcd];return _0x27d3ef;}(function(_0x571f28,_0x10bc96){const _0x84ae1b=a283_0x27d3,_0x26dcc7=_0x571f28();while(!![]){try{const _0x6c72fc=-parseInt(_0x84ae1b(0x14a))/0x1+parseInt(_0x84ae1b(0x14d))/0x2+parseInt(_0x84ae1b(0x13f))/0x3*(parseInt(_0x84ae1b(0x140))/0x4)+parseInt(_0x84ae1b(0x155))/0x5+-parseInt(_0x84ae1b(0x159))/0x6+parseInt(_0x84ae1b(0x158))/0x7+-parseInt(_0x84ae1b(0x149))/0x8*(parseInt(_0x84ae1b(0x157))/0x9);if(_0x6c72fc===_0x10bc96)break;else _0x26dcc7['push'](_0x26dcc7['shift']());}catch(_0x5dc155){_0x26dcc7['push'](_0x26dcc7['shift']());}}}(a283_0xf1fd,0x98406));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 _0x1460b4=a283_0x27d3,_0x589e53=getTemplateBaseUrl();return _0x589e53+_0x1460b4(0x14c);}const CACHE_DIR=join(homedir(),a283_0x25a7a8(0x14f),'cache');export async function fetchGuidesFromCDN(){const _0x590f13=a283_0x25a7a8,_0x2a24bd=getGuidesCdnUrl(),_0x3728ff=await fetch(_0x2a24bd,{'headers':{'Accept':_0x590f13(0x13d)}});if(!_0x3728ff['ok'])throw new Error(_0x590f13(0x151)+_0x3728ff[_0x590f13(0x14e)]+'\x20'+_0x3728ff[_0x590f13(0x142)]);const _0x30f0aa=await _0x3728ff[_0x590f13(0x145)]();if(!_0x30f0aa[_0x590f13(0x143)]||typeof _0x30f0aa[_0x590f13(0x143)]!==_0x590f13(0x152))throw new Error(_0x590f13(0x146));return _0x30f0aa;}export function writeGuidesToProject(_0x1938cf,_0x296a04,_0x2d61e2=a283_0x25a7a8(0x15a),_0x1fa8b3){const _0x22e08e=a283_0x25a7a8,_0x247979=join(_0x296a04,_0x2d61e2);mkdirSync(_0x247979,{'recursive':!![]});for(const [_0x1137b4,_0x5cd598]of Object[_0x22e08e(0x156)](_0x1938cf[_0x22e08e(0x143)])){let _0x26229f=_0x5cd598[_0x22e08e(0x154)];_0x5cd598[_0x22e08e(0x153)]&&(_0x26229f=appendUpdateTime(_0x26229f,_0x5cd598['lastUpdated'])),writeFileSync(join(_0x247979,_0x1137b4+_0x22e08e(0x13c)),_0x26229f,_0x22e08e(0x13b));}}export function appendUpdateTime(_0x3576eb,_0x9ccfae){const _0x50fc70=a283_0x25a7a8;return _0x3576eb=_0x3576eb[_0x50fc70(0x150)](/\n*>更新时间:.*$/m,''),_0x3576eb['trimEnd']()+('\x0a\x0a>更新时间:'+_0x9ccfae);}export function getSkillTemplate(_0x2a04dc){const _0xd95ae1=a283_0x25a7a8;return _0x2a04dc[_0xd95ae1(0x13a)]?.[_0xd95ae1(0x154)]||'';}export function appendExtendContents(_0x36c9bd,_0x86fb01,_0x392de2){const _0x311d0d=a283_0x25a7a8,_0x1eb4b4=[];for(const [,_0x555d8d]of Object[_0x311d0d(0x156)](_0x86fb01[_0x311d0d(0x143)])){_0x555d8d[_0x311d0d(0x144)]&&_0x1eb4b4['push'](_0x555d8d[_0x311d0d(0x144)]['trimEnd']());}if(_0x1eb4b4['length']===0x0)return _0x36c9bd;return _0x36c9bd['trimEnd']()+'\x0a\x0a'+_0x1eb4b4[_0x311d0d(0x13e)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x22584a,_0x37d236,_0x57f358){const _0x2e3f7e=a283_0x25a7a8,_0x28be47=getSkillTemplate(_0x22584a);if(!_0x28be47)throw new Error(_0x2e3f7e(0x141));const _0x449941=dirname(_0x37d236);mkdirSync(_0x449941,{'recursive':!![]});let _0x3b6e98=_0x28be47[_0x2e3f7e(0x150)](/\{\{IDE_NAME\}\}/g,_0x57f358);_0x3b6e98=appendExtendContents(_0x3b6e98,_0x22584a),_0x22584a['skillTemplate'][_0x2e3f7e(0x153)]&&(_0x3b6e98=appendUpdateTime(_0x3b6e98,_0x22584a[_0x2e3f7e(0x13a)][_0x2e3f7e(0x153)])),writeFileSync(_0x37d236,_0x3b6e98,_0x2e3f7e(0x13b));}export async function installGuides(_0x2e675c){const _0x2a10c5=a283_0x25a7a8,_0x46885d=await fetchGuidesFromCDN();return writeGuidesToProject(_0x46885d,_0x2e675c),Object['keys'](_0x46885d['guides'])[_0x2a10c5(0x148)];}export function getGuidesSummary(_0x200254){const _0x13dae9=a283_0x25a7a8;return Object[_0x13dae9(0x156)](_0x200254[_0x13dae9(0x143)])[_0x13dae9(0x14b)](([_0x3db7a8,_0x308052])=>({'key':_0x3db7a8,'title':_0x308052['title'],'path':_0x308052[_0x13dae9(0x147)]}));}function a283_0xf1fd(){const _0x5e55c9=['utf-8','.md','application/json','join','3PLBpKa','4792228GAHjVw','CDN\x20data\x20is\x20missing\x20skillTemplate','statusText','guides','extendContent','json','CDN\x20returned\x20invalid\x20data','path','length','11427488XcfFPv','243403HbHrVP','map','/skills/guides.json','1559970tmwEYH','status','.lovrabet','replace','CDN\x20request\x20failed:\x20','object','lastUpdated','content','205095TkJSIg','entries','9NNDfet','4369498cazYZO','2086884PfjLgT','.lovrabet/skill/guides','skillTemplate'];a283_0xf1fd=function(){return _0x5e55c9;};return a283_0xf1fd();}