@lovrabet/rabetbase-cli 2.5.6 → 2.5.7

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 (395) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/design-context.js +1 -1
  77. package/lib/commands/dataset/design-start.js +1 -1
  78. package/lib/commands/dataset/design-status.js +1 -1
  79. package/lib/commands/dataset/design-sync-retry.js +1 -1
  80. package/lib/commands/dataset/design-sync-status.js +1 -1
  81. package/lib/commands/dataset/design-validate.js +1 -1
  82. package/lib/commands/dataset/detail.js +1 -1
  83. package/lib/commands/dataset/extend-update.js +1 -1
  84. package/lib/commands/dataset/field-restore.js +1 -1
  85. package/lib/commands/dataset/field-update.js +1 -1
  86. package/lib/commands/dataset/generate.js +1 -1
  87. package/lib/commands/dataset/index.js +1 -1
  88. package/lib/commands/dataset/list.js +1 -1
  89. package/lib/commands/dataset/operations.js +1 -1
  90. package/lib/commands/dataset/relation-audit.js +1 -1
  91. package/lib/commands/dataset/relation-create.js +1 -1
  92. package/lib/commands/dataset/relation-delete.js +1 -1
  93. package/lib/commands/dataset/relation-shared.js +1 -1
  94. package/lib/commands/dataset/relation-update.js +1 -1
  95. package/lib/commands/dataset/relations.js +1 -1
  96. package/lib/commands/dataset/rename.js +1 -1
  97. package/lib/commands/dataset/restore.js +1 -1
  98. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  99. package/lib/commands/db/analysis-batching.js +1 -1
  100. package/lib/commands/db/analyze-batch-plan.js +1 -1
  101. package/lib/commands/db/analyze-cancel.js +1 -1
  102. package/lib/commands/db/analyze-start.js +1 -1
  103. package/lib/commands/db/analyze-status.js +1 -1
  104. package/lib/commands/db/create.js +1 -1
  105. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  106. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  109. package/lib/commands/db/delete.js +1 -1
  110. package/lib/commands/db/detail.js +1 -1
  111. package/lib/commands/db/diff-refresh-start.js +1 -1
  112. package/lib/commands/db/diff-refresh-status.js +1 -1
  113. package/lib/commands/db/diff.js +1 -1
  114. package/lib/commands/db/index.js +1 -1
  115. package/lib/commands/db/list.js +1 -1
  116. package/lib/commands/db/shared.js +1 -1
  117. package/lib/commands/db/table-diff-shared.js +1 -1
  118. package/lib/commands/db/tables.js +1 -1
  119. package/lib/commands/db/test.js +1 -1
  120. package/lib/commands/db/update.js +1 -1
  121. package/lib/commands/deployment/index.js +1 -1
  122. package/lib/commands/deployment/sync-all.js +1 -1
  123. package/lib/commands/deployment/sync-jobs.js +1 -1
  124. package/lib/commands/deployment/sync-status.js +1 -1
  125. package/lib/commands/doctor.js +1 -1
  126. package/lib/commands/file/index.js +1 -1
  127. package/lib/commands/flow/create.js +1 -1
  128. package/lib/commands/flow/detail.js +1 -1
  129. package/lib/commands/flow/index.js +1 -1
  130. package/lib/commands/flow/list.js +1 -1
  131. package/lib/commands/flow/page-list.d.ts +2 -0
  132. package/lib/commands/flow/page-list.js +1 -0
  133. package/lib/commands/flow/publish.js +1 -1
  134. package/lib/commands/flow/runtime-resources-shared.d.ts +1 -1
  135. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  136. package/lib/commands/flow/runtime-role-list.js +1 -1
  137. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  138. package/lib/commands/flow/runtime-user-search.js +1 -1
  139. package/lib/commands/flow/shared.d.ts +6 -2
  140. package/lib/commands/flow/shared.js +1 -1
  141. package/lib/commands/flow/update.js +1 -1
  142. package/lib/commands/flow/validate.js +1 -1
  143. package/lib/commands/instant-api-policy/current.js +1 -1
  144. package/lib/commands/instant-api-policy/index.js +1 -1
  145. package/lib/commands/instant-api-policy/init.js +1 -1
  146. package/lib/commands/instant-api-policy/publish.js +1 -1
  147. package/lib/commands/instant-api-policy/pull.js +1 -1
  148. package/lib/commands/instant-api-policy/revision.js +1 -1
  149. package/lib/commands/instant-api-policy/revisions.js +1 -1
  150. package/lib/commands/instant-api-policy/rollback.js +1 -1
  151. package/lib/commands/instant-api-policy/shared.js +1 -1
  152. package/lib/commands/instant-api-policy/validate.js +1 -1
  153. package/lib/commands/issue/index.js +1 -1
  154. package/lib/commands/issue/nudge.js +1 -1
  155. package/lib/commands/issue/report.js +1 -1
  156. package/lib/commands/issue/shared.js +1 -1
  157. package/lib/commands/kb/create.js +1 -1
  158. package/lib/commands/kb/delete.js +1 -1
  159. package/lib/commands/kb/detail.js +1 -1
  160. package/lib/commands/kb/index.js +1 -1
  161. package/lib/commands/kb/list.js +1 -1
  162. package/lib/commands/kb/search.js +1 -1
  163. package/lib/commands/kb/shared.js +1 -1
  164. package/lib/commands/kb/update.js +1 -1
  165. package/lib/commands/logs/index.js +1 -1
  166. package/lib/commands/menu/asset-update.js +1 -1
  167. package/lib/commands/menu/delete.js +1 -1
  168. package/lib/commands/menu/external-link-create.js +1 -1
  169. package/lib/commands/menu/external-link-update.js +1 -1
  170. package/lib/commands/menu/group-create.js +1 -1
  171. package/lib/commands/menu/group-update.js +1 -1
  172. package/lib/commands/menu/index.js +1 -1
  173. package/lib/commands/menu/list.js +1 -1
  174. package/lib/commands/menu/move.js +1 -1
  175. package/lib/commands/menu/regroup-start.js +1 -1
  176. package/lib/commands/menu/rename.js +1 -1
  177. package/lib/commands/menu/shared/compare-table.js +1 -1
  178. package/lib/commands/menu/shared/delete-plan.js +1 -1
  179. package/lib/commands/menu/shared/facts.js +1 -1
  180. package/lib/commands/menu/shared/index.js +1 -1
  181. package/lib/commands/menu/shared/inquirer.js +1 -1
  182. package/lib/commands/menu/shared/local-pages.js +1 -1
  183. package/lib/commands/menu/shared/logic.js +1 -1
  184. package/lib/commands/menu/shared/mutations.js +1 -1
  185. package/lib/commands/menu/shared/path.js +1 -1
  186. package/lib/commands/menu/shared/service.js +1 -1
  187. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  188. package/lib/commands/menu/shared/sync-core.js +1 -1
  189. package/lib/commands/menu/shared/update-core.js +1 -1
  190. package/lib/commands/menu/shared/valid-url.js +1 -1
  191. package/lib/commands/menu/subapp-assets-status.js +1 -1
  192. package/lib/commands/menu/subapp-assets-update.js +1 -1
  193. package/lib/commands/menu/sync.js +1 -1
  194. package/lib/commands/menu/visibility-update.js +1 -1
  195. package/lib/commands/notification/config-create.js +1 -1
  196. package/lib/commands/notification/config-delete.js +1 -1
  197. package/lib/commands/notification/config-list.js +1 -1
  198. package/lib/commands/notification/config-update.js +1 -1
  199. package/lib/commands/notification/index.js +1 -1
  200. package/lib/commands/notification/shared.js +1 -1
  201. package/lib/commands/ocr/index.js +1 -1
  202. package/lib/commands/page/create.js +1 -1
  203. package/lib/commands/page/custom/detail.js +1 -1
  204. package/lib/commands/page/custom/list.js +1 -1
  205. package/lib/commands/page/custom/publish.js +1 -1
  206. package/lib/commands/page/custom/shared.js +1 -1
  207. package/lib/commands/page/custom/syntax.js +1 -1
  208. package/lib/commands/page/custom/update.js +1 -1
  209. package/lib/commands/page/data-list-status.js +1 -1
  210. package/lib/commands/page/generate-start.js +1 -1
  211. package/lib/commands/page/generate-status.js +1 -1
  212. package/lib/commands/page/index.js +1 -1
  213. package/lib/commands/page/pull.js +1 -1
  214. package/lib/commands/page/push.js +1 -1
  215. package/lib/commands/page/relation-audit.js +1 -1
  216. package/lib/commands/page/restore.js +1 -1
  217. package/lib/commands/page/shared.js +1 -1
  218. package/lib/commands/page/sync.js +1 -1
  219. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  220. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  221. package/lib/commands/project/create/format-elapsed.js +1 -1
  222. package/lib/commands/project/create/main.js +1 -1
  223. package/lib/commands/project/create/materialize-project-template.js +1 -1
  224. package/lib/commands/project/create/project-name.js +1 -1
  225. package/lib/commands/project/create/project-template-archive.js +1 -1
  226. package/lib/commands/project/create/project-template-path.js +1 -1
  227. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  228. package/lib/commands/project/create/use-format-code.js +1 -1
  229. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  230. package/lib/commands/project/domain-routing-sync.js +1 -1
  231. package/lib/commands/project/index.js +1 -1
  232. package/lib/commands/project/upgrade.js +1 -1
  233. package/lib/commands/registry.js +1 -1
  234. package/lib/commands/role/delete.js +1 -1
  235. package/lib/commands/role/detail.js +1 -1
  236. package/lib/commands/role/index.js +1 -1
  237. package/lib/commands/role/list.js +1 -1
  238. package/lib/commands/role/shared.js +1 -1
  239. package/lib/commands/role/update.js +1 -1
  240. package/lib/commands/role/user-add.js +1 -1
  241. package/lib/commands/role/user-remove.js +1 -1
  242. package/lib/commands/role/user-resolve.js +1 -1
  243. package/lib/commands/rule/get.js +1 -1
  244. package/lib/commands/rule/index.js +1 -1
  245. package/lib/commands/rule/list.js +1 -1
  246. package/lib/commands/rule/set.js +1 -1
  247. package/lib/commands/rule/shared.js +1 -1
  248. package/lib/commands/run/index.js +1 -1
  249. package/lib/commands/schema.js +1 -1
  250. package/lib/commands/sql/create.js +1 -1
  251. package/lib/commands/sql/delete.js +1 -1
  252. package/lib/commands/sql/detail.js +1 -1
  253. package/lib/commands/sql/exec.js +1 -1
  254. package/lib/commands/sql/index.js +1 -1
  255. package/lib/commands/sql/list.js +1 -1
  256. package/lib/commands/sql/pull.js +1 -1
  257. package/lib/commands/sql/push.js +1 -1
  258. package/lib/commands/sql/shared.js +1 -1
  259. package/lib/commands/sql/status.js +1 -1
  260. package/lib/commands/sql/validate.js +1 -1
  261. package/lib/commands/task/index.js +1 -1
  262. package/lib/commands/task/status.js +1 -1
  263. package/lib/commands/tenant/index.js +1 -1
  264. package/lib/commands/tenant/members-list.js +1 -1
  265. package/lib/commands/tenant/shared.js +1 -1
  266. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  267. package/lib/commands/user-account/feishu-bind.js +1 -1
  268. package/lib/commands/user-account/index.js +1 -1
  269. package/lib/commands/workspace/add.js +1 -1
  270. package/lib/commands/workspace/index.js +1 -1
  271. package/lib/commands/workspace/remove.js +1 -1
  272. package/lib/config/domain-config.js +1 -1
  273. package/lib/config/project-domain-routing.js +1 -1
  274. package/lib/config/region-config.js +1 -1
  275. package/lib/config/schema.js +1 -1
  276. package/lib/constant/cdn.js +1 -1
  277. package/lib/constant/cli.js +1 -1
  278. package/lib/constant/defaults.js +1 -1
  279. package/lib/constant/domain.js +1 -1
  280. package/lib/constant/env.js +1 -1
  281. package/lib/constant/output.js +1 -1
  282. package/lib/constant/paths.js +1 -1
  283. package/lib/constant/region.js +1 -1
  284. package/lib/constant/risk.js +1 -1
  285. package/lib/constant/routing-profile.js +1 -1
  286. package/lib/context/app-resolver.js +1 -1
  287. package/lib/context/auth-resolver.js +1 -1
  288. package/lib/context/config-loader.js +1 -1
  289. package/lib/context.js +1 -1
  290. package/lib/core/alias-resolver.js +1 -1
  291. package/lib/core/api-client.d.ts +26 -6
  292. package/lib/core/api-client.js +1 -1
  293. package/lib/core/bff/config.js +1 -1
  294. package/lib/core/bff/file-system.js +1 -1
  295. package/lib/core/bff/hash.js +1 -1
  296. package/lib/core/bff/hook-directory.js +1 -1
  297. package/lib/core/bff/lock.js +1 -1
  298. package/lib/core/bff/utils.js +1 -1
  299. package/lib/core/cross-db-analysis.js +1 -1
  300. package/lib/core/cross-db-relation.js +1 -1
  301. package/lib/core/db-resolver.js +1 -1
  302. package/lib/core/flow-config.d.ts +12 -0
  303. package/lib/core/flow-config.js +1 -1
  304. package/lib/core/instant-api-policy/config.js +1 -1
  305. package/lib/core/kb-search-client.js +1 -1
  306. package/lib/core/page/file-system.js +1 -1
  307. package/lib/core/page/hash.js +1 -1
  308. package/lib/core/page/lock.js +1 -1
  309. package/lib/core/page/lr-smart-jsx.js +1 -1
  310. package/lib/core/sql-index-auditor.js +1 -1
  311. package/lib/core/sql-sync/config.js +1 -1
  312. package/lib/core/sql-sync/file-system.js +1 -1
  313. package/lib/core/sql-sync/hash.js +1 -1
  314. package/lib/core/sql-sync/lock.js +1 -1
  315. package/lib/core/sql-sync/utils.js +1 -1
  316. package/lib/core/sql-validator.js +1 -1
  317. package/lib/errors.js +1 -1
  318. package/lib/framework/build-all-flags.js +1 -1
  319. package/lib/framework/error-output.js +1 -1
  320. package/lib/framework/explicit-yes.js +1 -1
  321. package/lib/framework/flags.js +1 -1
  322. package/lib/framework/help.js +1 -1
  323. package/lib/framework/index.js +1 -1
  324. package/lib/framework/output.js +1 -1
  325. package/lib/framework/response.js +1 -1
  326. package/lib/framework/runner-alias.js +1 -1
  327. package/lib/framework/runner.js +1 -1
  328. package/lib/framework/schema-export.js +1 -1
  329. package/lib/framework/supported-flags.js +1 -1
  330. package/lib/framework/types.js +1 -1
  331. package/lib/generated/build-info.d.ts +4 -4
  332. package/lib/generated/build-info.js +1 -1
  333. package/lib/generated/official-routing.js +1 -1
  334. package/lib/generated/routing-contract.js +1 -1
  335. package/lib/help.js +1 -1
  336. package/lib/postinstall.js +1 -1
  337. package/lib/runtime/confirmation.js +1 -1
  338. package/lib/runtime/event.js +1 -1
  339. package/lib/runtime/index.js +1 -1
  340. package/lib/runtime/queue.js +1 -1
  341. package/lib/runtime/resolve.js +1 -1
  342. package/lib/services/dataset-design/checkpoint.js +1 -1
  343. package/lib/services/dataset-design/commands.js +1 -1
  344. package/lib/services/dataset-design/contract.js +1 -1
  345. package/lib/skills/builtin-skill.js +1 -1
  346. package/lib/skills/main.js +1 -1
  347. package/lib/skills/npx-skills-add.js +1 -1
  348. package/lib/skills/skill-presence.js +1 -1
  349. package/lib/telemetry/cli-command-trace.js +1 -1
  350. package/lib/telemetry/cli-help-trace.js +1 -1
  351. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  352. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  353. package/lib/telemetry/send-cli-trace-log.js +1 -1
  354. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  355. package/lib/utils/ai_config.js +1 -1
  356. package/lib/utils/apply-jq-filter.js +1 -1
  357. package/lib/utils/cdn-config.js +1 -1
  358. package/lib/utils/check-sdk-version.js +1 -1
  359. package/lib/utils/cli-version-check.js +1 -1
  360. package/lib/utils/cli-version-policy.js +1 -1
  361. package/lib/utils/config.js +1 -1
  362. package/lib/utils/entity-with-id.js +1 -1
  363. package/lib/utils/file-utils.js +1 -1
  364. package/lib/utils/guides-cdn.js +1 -1
  365. package/lib/utils/http-client.js +1 -1
  366. package/lib/utils/is-non-interactive.js +1 -1
  367. package/lib/utils/logger.js +1 -1
  368. package/lib/utils/params.js +1 -1
  369. package/lib/utils/platform.js +1 -1
  370. package/lib/utils/sleep.js +1 -1
  371. package/lib/utils/template-replacer.js +1 -1
  372. package/lib/utils/update-notice.js +1 -1
  373. package/lib/utils/version.js +1 -1
  374. package/lib/utils/with-active-cookie.js +1 -1
  375. package/lib/utils/write-cli-side-channel.js +1 -1
  376. package/package.json +1 -1
  377. package/skills/rabetbase/SKILL.md +8 -4
  378. package/skills/rabetbase/guides/approval-flow-development-workflow.md +52 -13
  379. package/skills/rabetbase/guides/backend-function.md +26 -4
  380. package/skills/rabetbase/guides/bff-creation-workflow.md +9 -0
  381. package/skills/rabetbase/guides/cross-database-bff.md +1 -0
  382. package/skills/rabetbase/guides/custom-page-flow-sdk.md +2 -0
  383. package/skills/rabetbase/guides/data-api-guidelines.md +2 -0
  384. package/skills/rabetbase/guides/flow-config-examples.md +75 -0
  385. package/skills/rabetbase/guides/form-flow-start.md +61 -0
  386. package/skills/rabetbase/guides/typescript-sdk.md +1 -1
  387. package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +18 -4
  388. package/skills/rabetbase/references/rabetbase-codegen-sdk.md +5 -4
  389. package/skills/rabetbase/references/rabetbase-flow-commands.md +21 -2
  390. package/skills/rabetbase/references/rabetbase-flow-resources.md +21 -3
  391. package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +6 -2
  392. package/skills/rabetbase/references/rabetbase-kb.md +4 -1
  393. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  394. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  395. package/skills/rabetbase.manifest.json +5 -3
@@ -1 +1 @@
1
- const a341_0x1856e4=a341_0x2216;(function(_0x129035,_0x257a9a){const _0x2e922d=a341_0x2216,_0x2971ca=_0x129035();while(!![]){try{const _0x5466d0=parseInt(_0x2e922d(0x1ab))/0x1*(-parseInt(_0x2e922d(0x161))/0x2)+parseInt(_0x2e922d(0x14d))/0x3+parseInt(_0x2e922d(0x1a1))/0x4*(-parseInt(_0x2e922d(0x1be))/0x5)+parseInt(_0x2e922d(0x197))/0x6+-parseInt(_0x2e922d(0x198))/0x7+parseInt(_0x2e922d(0x146))/0x8*(-parseInt(_0x2e922d(0x169))/0x9)+parseInt(_0x2e922d(0x183))/0xa;if(_0x5466d0===_0x257a9a)break;else _0x2971ca['push'](_0x2971ca['shift']());}catch(_0x2756f6){_0x2971ca['push'](_0x2971ca['shift']());}}}(a341_0x38df,0xe98ab));import{createHash}from'node:crypto';import{readFile,lstat}from'node:fs/promises';import{CliErrors}from'../../errors.js';export const isObject=_0xf31078=>_0xf31078!==null&&typeof _0xf31078===a341_0x1856e4(0x159)&&!Array[a341_0x1856e4(0x179)](_0xf31078);const types=new Set([a341_0x1856e4(0x19c),a341_0x1856e4(0x1b9),a341_0x1856e4(0x17a),a341_0x1856e4(0x1aa),a341_0x1856e4(0x191),'MULTI_SELECT',a341_0x1856e4(0x1c6),a341_0x1856e4(0x1a6),'ADDRESS',a341_0x1856e4(0x1c0)]),dbTypes=new Set(['VARCHAR','CHAR',a341_0x1856e4(0x19c),a341_0x1856e4(0x18f),a341_0x1856e4(0x1a2),a341_0x1856e4(0x177),a341_0x1856e4(0x1cb),'INTEGER',a341_0x1856e4(0x18d),a341_0x1856e4(0x185),a341_0x1856e4(0x19a),a341_0x1856e4(0x19f),'NUMERIC',a341_0x1856e4(0x175),'DATETIME',a341_0x1856e4(0x160),a341_0x1856e4(0x1aa),a341_0x1856e4(0x14e)]),identifier=/^[a-z][a-z0-9_]*$/;function a341_0x2216(_0x2f7921,_0x3985fd){_0x2f7921=_0x2f7921-0x146;const _0x38df2a=a341_0x38df();let _0x221620=_0x38df2a[_0x2f7921];return _0x221620;}export function requireValue(_0x136565,_0x3a127f){if(!_0x136565)throw CliErrors['validation'](_0x3a127f);}function keys(_0x3e91fa,_0x340192,_0x5166b3){const _0x33c8d1=a341_0x1856e4;for(const _0x1f33e7 of Object[_0x33c8d1(0x1b4)](_0x3e91fa))requireValue(_0x340192[_0x33c8d1(0x1b6)](_0x1f33e7),_0x5166b3+'.'+_0x1f33e7+_0x33c8d1(0x147));}function text(_0x419438,_0x3362bf){const _0x374891=a341_0x1856e4;requireValue(typeof _0x419438===_0x374891(0x1ba)&&_0x419438['trim']()[_0x374891(0x171)]>0x0,_0x3362bf+_0x374891(0x1ac));}export function validateManifest(_0x312398){const _0x132b02=a341_0x1856e4;requireValue(isObject(_0x312398),_0x132b02(0x1b7)),keys(_0x312398,[_0x132b02(0x199),_0x132b02(0x151),_0x132b02(0x16d),_0x132b02(0x167),'relations','unresolvedRelations'],_0x132b02(0x165)),requireValue(_0x312398[_0x132b02(0x199)]==='dataset-design'&&_0x312398[_0x132b02(0x151)]===0x1&&_0x312398[_0x132b02(0x16d)]==='v2',_0x132b02(0x1ae)),requireValue(Array['isArray'](_0x312398[_0x132b02(0x167)])&&_0x312398[_0x132b02(0x167)][_0x132b02(0x171)]>=0x1&&_0x312398['datasets'][_0x132b02(0x171)]<=0x14,_0x132b02(0x1cf));const _0x3dfc1c=new Map();for(const [_0x424b6f,_0x5b5088]of _0x312398[_0x132b02(0x167)][_0x132b02(0x184)]()){const _0x1ed52b=_0x132b02(0x17e)+_0x424b6f+']';requireValue(isObject(_0x5b5088),_0x1ed52b+_0x132b02(0x190)),keys(_0x5b5088,[_0x132b02(0x16b),'dataset','fields'],_0x1ed52b),requireValue(typeof _0x5b5088['localKey']===_0x132b02(0x1ba)&&/^[a-z][a-z0-9_]{0,63}$/[_0x132b02(0x182)](_0x5b5088[_0x132b02(0x16b)])&&!_0x3dfc1c[_0x132b02(0x15c)](_0x5b5088[_0x132b02(0x16b)]),_0x1ed52b+'.localKey\x20is\x20invalid\x20or\x20duplicated.'),requireValue(isObject(_0x5b5088[_0x132b02(0x153)]),_0x1ed52b+_0x132b02(0x181)),keys(_0x5b5088[_0x132b02(0x153)],['datasetName',_0x132b02(0x18a),_0x132b02(0x1ad),'businessGroup','labelField'],_0x1ed52b+'.dataset'),text(_0x5b5088[_0x132b02(0x153)][_0x132b02(0x1a4)],_0x1ed52b+_0x132b02(0x1a0));for(const [_0x208cd6,_0xddbcb4]of Object['entries'](_0x5b5088[_0x132b02(0x153)]))requireValue(_0xddbcb4==null||typeof _0xddbcb4===_0x132b02(0x1ba),_0x1ed52b+_0x132b02(0x1a8)+_0x208cd6+_0x132b02(0x1b5));requireValue(Array[_0x132b02(0x179)](_0x5b5088[_0x132b02(0x1b1)])&&_0x5b5088[_0x132b02(0x1b1)]['length']>0x0&&(_0x312398[_0x132b02(0x167)][_0x132b02(0x171)]===0x1||_0x5b5088['fields']['length']<=0xc8),_0x1ed52b+_0x132b02(0x1c4));const _0x170339=new Set();_0x3dfc1c[_0x132b02(0x18c)](_0x5b5088[_0x132b02(0x16b)],_0x170339);for(const [_0x4e0b0d,_0x54beb4]of _0x5b5088[_0x132b02(0x1b1)][_0x132b02(0x184)]()){const _0x4884a0=_0x1ed52b+_0x132b02(0x186)+_0x4e0b0d+']';requireValue(isObject(_0x54beb4),_0x4884a0+_0x132b02(0x190)),keys(_0x54beb4,[_0x132b02(0x193),_0x132b02(0x189),_0x132b02(0x14b),_0x132b02(0x1af),_0x132b02(0x196),_0x132b02(0x174),_0x132b02(0x19d),_0x132b02(0x1c3),'disabled',_0x132b02(0x168),'pkField','autoIncrement','options','semanticName',_0x132b02(0x1b3),_0x132b02(0x187),_0x132b02(0x152),_0x132b02(0x15e),_0x132b02(0x1c1)],_0x4884a0),requireValue(typeof _0x54beb4[_0x132b02(0x193)]===_0x132b02(0x1ba)&&identifier[_0x132b02(0x182)](_0x54beb4[_0x132b02(0x193)])&&!_0x170339[_0x132b02(0x15c)](_0x54beb4[_0x132b02(0x193)]),_0x4884a0+_0x132b02(0x1b2)),_0x170339['add'](_0x54beb4[_0x132b02(0x193)]),text(_0x54beb4[_0x132b02(0x189)],_0x4884a0+_0x132b02(0x149)),requireValue(types['has'](_0x54beb4['doType']),_0x4884a0+_0x132b02(0x1c9)),requireValue(dbTypes['has'](_0x54beb4[_0x132b02(0x1af)]),_0x4884a0+_0x132b02(0x19b));for(const _0xea9125 of['dbType',_0x132b02(0x174),_0x132b02(0x1cc),_0x132b02(0x1b3),_0x132b02(0x187),_0x132b02(0x1c1)]){requireValue(_0x54beb4[_0xea9125]==null||typeof _0x54beb4[_0xea9125]===_0x132b02(0x1ba),_0x4884a0+'.'+_0xea9125+_0x132b02(0x1b5));}for(const _0x2a7725 of[_0x132b02(0x19d),'visible','disabled',_0x132b02(0x168),_0x132b02(0x1a5),_0x132b02(0x14a),_0x132b02(0x15e)]){requireValue(_0x54beb4[_0x2a7725]==null||typeof _0x54beb4[_0x2a7725]===_0x132b02(0x18b),_0x4884a0+'.'+_0x2a7725+'\x20must\x20be\x20a\x20boolean.');}requireValue(_0x54beb4[_0x132b02(0x196)]==null||Number[_0x132b02(0x15d)](_0x54beb4[_0x132b02(0x196)])&&_0x54beb4[_0x132b02(0x196)]>0x0&&_0x54beb4[_0x132b02(0x196)]<=0xffff,_0x4884a0+'.dbTypeLen\x20must\x20be\x20an\x20integer\x20in\x201..65535.'),requireValue(_0x54beb4[_0x132b02(0x152)]==null||Array['isArray'](_0x54beb4[_0x132b02(0x152)])&&_0x54beb4['supportedAggregation']['every'](_0x50d27b=>typeof _0x50d27b===_0x132b02(0x1ba)),_0x4884a0+_0x132b02(0x17f));if(_0x54beb4[_0x132b02(0x180)]!=null){requireValue(Array[_0x132b02(0x179)](_0x54beb4[_0x132b02(0x180)]),_0x4884a0+_0x132b02(0x15b));const _0x49ae79=new Set(),_0x1dca87=new Set();for(const _0x1e259a of _0x54beb4[_0x132b02(0x180)]){requireValue(isObject(_0x1e259a),_0x4884a0+_0x132b02(0x1bf)),keys(_0x1e259a,[_0x132b02(0x15f),'value'],_0x4884a0+_0x132b02(0x192)),text(_0x1e259a[_0x132b02(0x15f)],_0x4884a0+_0x132b02(0x155)),requireValue(typeof _0x1e259a[_0x132b02(0x157)]===_0x132b02(0x1ba)&&identifier['test'](_0x1e259a[_0x132b02(0x157)])&&!_0x1dca87[_0x132b02(0x15c)](_0x1e259a[_0x132b02(0x157)])&&!_0x49ae79[_0x132b02(0x15c)](_0x1e259a[_0x132b02(0x15f)]),_0x4884a0+'.options\x20is\x20invalid\x20or\x20duplicated.'),_0x49ae79[_0x132b02(0x195)](_0x1e259a[_0x132b02(0x15f)]),_0x1dca87[_0x132b02(0x195)](_0x1e259a[_0x132b02(0x157)]);}}if([_0x132b02(0x191),'MULTI_SELECT']['includes'](_0x54beb4[_0x132b02(0x14b)])){const _0x334704=Array['isArray'](_0x312398['relations'])&&_0x312398[_0x132b02(0x162)][_0x132b02(0x14f)](_0x1ade74=>_0x1ade74?.['fromDatasetKey']===_0x5b5088[_0x132b02(0x16b)]&&_0x1ade74?.[_0x132b02(0x1c8)]===_0x54beb4[_0x132b02(0x193)]);requireValue(_0x334704||Array[_0x132b02(0x179)](_0x54beb4[_0x132b02(0x180)])&&_0x54beb4[_0x132b02(0x180)]['length']>0x0,_0x4884a0+_0x132b02(0x173));}}_0x170339['add']('id');}for(const _0xa32955 of['relations',_0x132b02(0x188)])requireValue(_0x312398[_0xa32955]==null||Array[_0x132b02(0x179)](_0x312398[_0xa32955])&&_0x312398[_0xa32955]['length']<=0xc8,_0xa32955+_0x132b02(0x166));const _0x2a7242=new Set();for(const [_0x273c73,_0x328bad]of(_0x312398[_0x132b02(0x162)]??[])[_0x132b02(0x184)]()){const _0x413a10='relations['+_0x273c73+']';requireValue(isObject(_0x328bad),_0x413a10+_0x132b02(0x190)),keys(_0x328bad,[_0x132b02(0x18e),'fromField','toDatasetKey',_0x132b02(0x16a),_0x132b02(0x1b8),_0x132b02(0x1cd),'relationType',_0x132b02(0x170),_0x132b02(0x17b),'confidence'],_0x413a10),requireValue(_0x3dfc1c[_0x132b02(0x1c7)](_0x328bad[_0x132b02(0x18e)])?.['has'](_0x328bad[_0x132b02(0x1c8)]),_0x413a10+'\x20source\x20does\x20not\x20exist.'),requireValue(Boolean(_0x328bad['toDatasetKey'])!==Boolean(_0x328bad[_0x132b02(0x16a)]),_0x413a10+'\x20requires\x20exactly\x20one\x20target.');if(_0x328bad[_0x132b02(0x194)])requireValue(_0x3dfc1c['get'](_0x328bad[_0x132b02(0x194)])?.[_0x132b02(0x15c)](_0x328bad[_0x132b02(0x1b8)]),_0x413a10+_0x132b02(0x1c2));else text(_0x328bad[_0x132b02(0x16a)],_0x413a10+_0x132b02(0x1bb)),text(_0x328bad[_0x132b02(0x1b8)],_0x413a10+_0x132b02(0x1bc));requireValue(_0x328bad[_0x132b02(0x1c5)]==null||_0x328bad[_0x132b02(0x1c5)]===_0x132b02(0x1ce),_0x413a10+'.relationType\x20must\x20be\x20lookup.'),requireValue(_0x328bad[_0x132b02(0x170)]==null||['MANY_TO_ONE',_0x132b02(0x14c)][_0x132b02(0x1b6)](_0x328bad[_0x132b02(0x170)]),_0x413a10+_0x132b02(0x158)),text(_0x328bad['reason'],_0x413a10+_0x132b02(0x1a3)),requireValue(_0x328bad[_0x132b02(0x176)]==null||typeof _0x328bad[_0x132b02(0x176)]===_0x132b02(0x156)&&Number[_0x132b02(0x16f)](_0x328bad[_0x132b02(0x176)])&&_0x328bad[_0x132b02(0x176)]>=0x0&&_0x328bad[_0x132b02(0x176)]<=0x1,_0x413a10+_0x132b02(0x17c));const _0x4e17de=_0x328bad[_0x132b02(0x18e)]+':'+_0x328bad[_0x132b02(0x1c8)];requireValue(!_0x2a7242['has'](_0x4e17de),_0x413a10+'\x20duplicates\x20a\x20source\x20field.'),_0x2a7242[_0x132b02(0x195)](_0x4e17de);}for(const _0x2cedb1 of _0x312398['unresolvedRelations']??[]){requireValue(isObject(_0x2cedb1),_0x132b02(0x154)),text(_0x2cedb1['reason'],_0x132b02(0x1a9));}return _0x312398;}export async function readManifest(_0x3a93f5){const _0x239ea9=a341_0x1856e4,_0x2aa476=await lstat(_0x3a93f5);requireValue(_0x2aa476[_0x239ea9(0x1bd)]()&&!_0x2aa476[_0x239ea9(0x164)]()&&_0x2aa476[_0x239ea9(0x1ca)]<=0x1e8480,_0x239ea9(0x178));let _0x48349a;try{_0x48349a=JSON[_0x239ea9(0x17d)](await readFile(_0x3a93f5,_0x239ea9(0x16e)));}catch{throw CliErrors[_0x239ea9(0x16c)](_0x239ea9(0x150));}return validateManifest(isObject(_0x48349a)&&isObject(_0x48349a[_0x239ea9(0x15a)])?_0x48349a[_0x239ea9(0x15a)]:_0x48349a);}export function inputHash(_0xd7e98b){const _0x29e6d0=a341_0x1856e4,_0x1860e6=_0xf41404=>Array['isArray'](_0xf41404)?_0xf41404[_0x29e6d0(0x19e)](_0x1860e6):isObject(_0xf41404)?Object[_0x29e6d0(0x1b0)](Object[_0x29e6d0(0x1b4)](_0xf41404)[_0x29e6d0(0x163)]()['map'](_0x16d188=>[_0x16d188,_0x1860e6(_0xf41404[_0x16d188])])):_0xf41404;return createHash(_0x29e6d0(0x1a7))['update'](JSON[_0x29e6d0(0x148)](_0x1860e6(_0xd7e98b)))[_0x29e6d0(0x172)]('hex');}function a341_0x38df(){const _0x4bba2c=['name','toDatasetKey','add','dbTypeLen','10548516htHKWQ','12757283oCDoQK','kind','DOUBLE','.dbType\x20is\x20required\x20and\x20must\x20be\x20a\x20supported\x20storage\x20type.','TEXT','required','map','DECIMAL','.dataset.datasetName','996okXSFO','TINYINT','.reason','datasetName','pkField','USER','sha256','.dataset.','unresolvedRelations.reason','BOOLEAN','9JsQRlR','\x20must\x20be\x20a\x20non-empty\x20string.','tableComment','Unsupported\x20dataset\x20manifest\x20version.','dbType','fromEntries','fields','.name\x20is\x20invalid\x20or\x20duplicated.','chartRole','keys','\x20must\x20be\x20a\x20string.','includes','Manifest\x20must\x20be\x20an\x20object.','toField','NUMBER','string','.toDatasetCode','.toField','isFile','14045qhfpte','.options\x20contains\x20an\x20invalid\x20item.','UPLOAD','displayFormat','\x20target\x20field\x20does\x20not\x20exist.','visible','.fields\x20is\x20empty\x20or\x20exceeds\x20the\x20batch\x20limit.','relationType','DATE_RANGE','get','fromField','.doType\x20is\x20unsupported.','size','INT','semanticName','toFieldLabel','lookup','datasets\x20must\x20contain\x201..20\x20items.','3840576UBPaPu','\x20is\x20not\x20supported.','stringify','.displayName','autoIncrement','doType','ONE_TO_ONE','3294228XoosYj','JSON','some','Design\x20file\x20contains\x20invalid\x20JSON.','schemaVersion','supportedAggregation','dataset','Invalid\x20unresolved\x20relation.','.options.label','number','value','.cardinality\x20is\x20unsupported.','object','normalizedManifest','.options\x20must\x20be\x20an\x20array.','has','isSafeInteger','isTimeDimension','label','TIMESTAMP','186122bRCIdd','relations','sort','isSymbolicLink','manifest','\x20must\x20contain\x20at\x20most\x20200\x20items.','datasets','readonly','18zTTBdk','toDatasetCode','localKey','validation','doVersion','utf8','isFinite','cardinality','length','digest','\x20requires\x20options\x20or\x20an\x20explicit\x20relation.','description','DATE','confidence','SMALLINT','Design\x20file\x20must\x20be\x20a\x20regular\x20JSON\x20file\x20no\x20larger\x20than\x202\x20MB.','isArray','DATETIME','reason','.confidence\x20is\x20invalid.','parse','datasets[','.supportedAggregation\x20must\x20contain\x20strings.','options','.dataset\x20is\x20required.','test','24200280xodaQg','entries','FLOAT','.fields[','defaultAggregation','unresolvedRelations','displayName','tableName','boolean','set','BIGINT','fromDatasetKey','LONGTEXT','\x20must\x20be\x20an\x20object.','SELECT','.options'];a341_0x38df=function(){return _0x4bba2c;};return a341_0x38df();}
1
+ function a342_0x3ea9(_0x36d5c1,_0x6e0185){_0x36d5c1=_0x36d5c1-0x175;const _0x593ed1=a342_0x593e();let _0x3ea934=_0x593ed1[_0x36d5c1];return _0x3ea934;}const a342_0x4b62bd=a342_0x3ea9;(function(_0x3259bf,_0x42a145){const _0x1444ab=a342_0x3ea9,_0x3a3807=_0x3259bf();while(!![]){try{const _0x46e951=parseInt(_0x1444ab(0x196))/0x1+-parseInt(_0x1444ab(0x19d))/0x2+parseInt(_0x1444ab(0x1bf))/0x3+parseInt(_0x1444ab(0x1a5))/0x4*(-parseInt(_0x1444ab(0x1af))/0x5)+-parseInt(_0x1444ab(0x1c9))/0x6+parseInt(_0x1444ab(0x1cf))/0x7*(parseInt(_0x1444ab(0x19b))/0x8)+parseInt(_0x1444ab(0x193))/0x9*(-parseInt(_0x1444ab(0x1a2))/0xa);if(_0x46e951===_0x42a145)break;else _0x3a3807['push'](_0x3a3807['shift']());}catch(_0x53ac67){_0x3a3807['push'](_0x3a3807['shift']());}}}(a342_0x593e,0x840be));import{createHash}from'node:crypto';import{readFile,lstat}from'node:fs/promises';import{CliErrors}from'../../errors.js';function a342_0x593e(){const _0x5e7fb3=['INTEGER','40tJjvHv','set','isTimeDimension','4TikztM','object','tableComment','toDatasetCode','displayFormat','.options','.fields[','ADDRESS','Design\x20file\x20must\x20be\x20a\x20regular\x20JSON\x20file\x20no\x20larger\x20than\x202\x20MB.','name','3758865bZJZBz','\x20target\x20field\x20does\x20not\x20exist.','fields','lookup','datasetName','pkField','relationType','.displayName','isArray','manifest','fromEntries','required','.relationType\x20must\x20be\x20lookup.','DATETIME','disabled','trim','3236826gVCvsH','readonly','Invalid\x20unresolved\x20relation.','relations[','cardinality','\x20must\x20contain\x20at\x20most\x20200\x20items.','JSON','boolean','DECIMAL','\x20requires\x20exactly\x20one\x20target.','382116OHCusc','fromField','\x20must\x20be\x20a\x20string.','fromDatasetKey','add','TIMESTAMP','6565069IqJYMD','.dataset.','dataset','localKey','BIGINT','.doType\x20is\x20unsupported.','includes','UPLOAD','description','test','chartRole','digest','kind','number','INT','.supportedAggregation\x20must\x20contain\x20strings.','TINYINT','hex','DATE_RANGE','has','string','.options\x20contains\x20an\x20invalid\x20item.','displayName','isSymbolicLink','Manifest\x20must\x20be\x20an\x20object.','Unsupported\x20dataset\x20manifest\x20version.','toDatasetKey','dbType','.dataset','schemaVersion','.dbType\x20is\x20required\x20and\x20must\x20be\x20a\x20supported\x20storage\x20type.','visible','doVersion','FLOAT','datasets','length','TEXT','semanticName','unresolvedRelations.reason','validation','datasets[','normalizedManifest','.options.label','stringify','autoIncrement','.toDatasetCode','labelField','doType','confidence','NUMBER','USER','isFinite','.dataset.datasetName','NUMERIC','supportedAggregation','MANY_TO_ONE','.fields\x20is\x20empty\x20or\x20exceeds\x20the\x20batch\x20limit.','CHAR','businessGroup','relations','\x20source\x20does\x20not\x20exist.','parse','entries','tableName','.dbTypeLen\x20must\x20be\x20an\x20integer\x20in\x201..65535.','isFile','MULTI_SELECT','toField','reason','value','options','\x20must\x20be\x20a\x20boolean.','get','SELECT','.name\x20is\x20invalid\x20or\x20duplicated.','2179449tgdDcq','toFieldLabel','LONGTEXT','739377wFFsyP','ONE_TO_ONE','dbTypeLen','\x20must\x20be\x20an\x20object.','unresolvedRelations','8XTbOSo','sha256','862442UMqWpN','label','DOUBLE','\x20is\x20not\x20supported.'];a342_0x593e=function(){return _0x5e7fb3;};return a342_0x593e();}export const isObject=_0x5be721=>_0x5be721!==null&&typeof _0x5be721===a342_0x4b62bd(0x1a6)&&!Array['isArray'](_0x5be721);const types=new Set([a342_0x4b62bd(0x1f3),a342_0x4b62bd(0x179),a342_0x4b62bd(0x1bc),'BOOLEAN',a342_0x4b62bd(0x191),a342_0x4b62bd(0x18a),a342_0x4b62bd(0x1e1),a342_0x4b62bd(0x17a),a342_0x4b62bd(0x1ac),a342_0x4b62bd(0x1d6)]),dbTypes=new Set(['VARCHAR',a342_0x4b62bd(0x181),a342_0x4b62bd(0x1f3),a342_0x4b62bd(0x195),a342_0x4b62bd(0x1df),'SMALLINT',a342_0x4b62bd(0x1dd),a342_0x4b62bd(0x1a1),a342_0x4b62bd(0x1d3),a342_0x4b62bd(0x1f0),a342_0x4b62bd(0x19f),a342_0x4b62bd(0x1c7),a342_0x4b62bd(0x17d),'DATE',a342_0x4b62bd(0x1bc),a342_0x4b62bd(0x1ce),'BOOLEAN',a342_0x4b62bd(0x1c5)]),identifier=/^[a-z][a-z0-9_]*$/;export function requireValue(_0x257dc2,_0x217003){const _0x5c0792=a342_0x4b62bd;if(!_0x257dc2)throw CliErrors[_0x5c0792(0x1f6)](_0x217003);}function keys(_0x3dc4fd,_0x31b5cc,_0x85a42c){const _0x3d2632=a342_0x4b62bd;for(const _0x54d567 of Object['keys'](_0x3dc4fd))requireValue(_0x31b5cc['includes'](_0x54d567),_0x85a42c+'.'+_0x54d567+_0x3d2632(0x1a0));}function text(_0x326c02,_0x85c36e){const _0xf56d8e=a342_0x4b62bd;requireValue(typeof _0x326c02===_0xf56d8e(0x1e3)&&_0x326c02[_0xf56d8e(0x1be)]()[_0xf56d8e(0x1f2)]>0x0,_0x85c36e+'\x20must\x20be\x20a\x20non-empty\x20string.');}export function validateManifest(_0x24782b){const _0x4c28fd=a342_0x4b62bd;requireValue(isObject(_0x24782b),_0x4c28fd(0x1e7)),keys(_0x24782b,[_0x4c28fd(0x1db),_0x4c28fd(0x1ec),_0x4c28fd(0x1ef),_0x4c28fd(0x1f1),_0x4c28fd(0x183),'unresolvedRelations'],_0x4c28fd(0x1b8)),requireValue(_0x24782b['kind']==='dataset-design'&&_0x24782b['schemaVersion']===0x1&&_0x24782b['doVersion']==='v2',_0x4c28fd(0x1e8)),requireValue(Array['isArray'](_0x24782b[_0x4c28fd(0x1f1)])&&_0x24782b[_0x4c28fd(0x1f1)][_0x4c28fd(0x1f2)]>=0x1&&_0x24782b[_0x4c28fd(0x1f1)][_0x4c28fd(0x1f2)]<=0x14,'datasets\x20must\x20contain\x201..20\x20items.');const _0x26161d=new Map();for(const [_0x5cda0c,_0x3c950a]of _0x24782b['datasets']['entries']()){const _0x3e202c=_0x4c28fd(0x1f7)+_0x5cda0c+']';requireValue(isObject(_0x3c950a),_0x3e202c+_0x4c28fd(0x199)),keys(_0x3c950a,[_0x4c28fd(0x1d2),_0x4c28fd(0x1d1),_0x4c28fd(0x1b1)],_0x3e202c),requireValue(typeof _0x3c950a[_0x4c28fd(0x1d2)]===_0x4c28fd(0x1e3)&&/^[a-z][a-z0-9_]{0,63}$/[_0x4c28fd(0x1d8)](_0x3c950a[_0x4c28fd(0x1d2)])&&!_0x26161d[_0x4c28fd(0x1e2)](_0x3c950a[_0x4c28fd(0x1d2)]),_0x3e202c+'.localKey\x20is\x20invalid\x20or\x20duplicated.'),requireValue(isObject(_0x3c950a['dataset']),_0x3e202c+'.dataset\x20is\x20required.'),keys(_0x3c950a[_0x4c28fd(0x1d1)],[_0x4c28fd(0x1b3),_0x4c28fd(0x187),_0x4c28fd(0x1a7),_0x4c28fd(0x182),_0x4c28fd(0x176)],_0x3e202c+_0x4c28fd(0x1eb)),text(_0x3c950a['dataset'][_0x4c28fd(0x1b3)],_0x3e202c+_0x4c28fd(0x17c));for(const [_0xd6a36a,_0x5f0828]of Object[_0x4c28fd(0x186)](_0x3c950a[_0x4c28fd(0x1d1)]))requireValue(_0x5f0828==null||typeof _0x5f0828===_0x4c28fd(0x1e3),_0x3e202c+_0x4c28fd(0x1d0)+_0xd6a36a+_0x4c28fd(0x1cb));requireValue(Array['isArray'](_0x3c950a[_0x4c28fd(0x1b1)])&&_0x3c950a[_0x4c28fd(0x1b1)][_0x4c28fd(0x1f2)]>0x0&&(_0x24782b[_0x4c28fd(0x1f1)][_0x4c28fd(0x1f2)]===0x1||_0x3c950a['fields'][_0x4c28fd(0x1f2)]<=0xc8),_0x3e202c+_0x4c28fd(0x180));const _0xcc0771=new Set();_0x26161d[_0x4c28fd(0x1a3)](_0x3c950a['localKey'],_0xcc0771);for(const [_0x28c438,_0x101ac2]of _0x3c950a[_0x4c28fd(0x1b1)]['entries']()){const _0x24bdaf=_0x3e202c+_0x4c28fd(0x1ab)+_0x28c438+']';requireValue(isObject(_0x101ac2),_0x24bdaf+_0x4c28fd(0x199)),keys(_0x101ac2,['name','displayName',_0x4c28fd(0x177),_0x4c28fd(0x1ea),_0x4c28fd(0x198),_0x4c28fd(0x1d7),'required',_0x4c28fd(0x1ee),'disabled','readonly','pkField','autoIncrement','options',_0x4c28fd(0x1f4),_0x4c28fd(0x1d9),'defaultAggregation',_0x4c28fd(0x17e),_0x4c28fd(0x1a4),_0x4c28fd(0x1a9)],_0x24bdaf),requireValue(typeof _0x101ac2[_0x4c28fd(0x1ae)]===_0x4c28fd(0x1e3)&&identifier[_0x4c28fd(0x1d8)](_0x101ac2[_0x4c28fd(0x1ae)])&&!_0xcc0771[_0x4c28fd(0x1e2)](_0x101ac2[_0x4c28fd(0x1ae)]),_0x24bdaf+_0x4c28fd(0x192)),_0xcc0771[_0x4c28fd(0x1cd)](_0x101ac2[_0x4c28fd(0x1ae)]),text(_0x101ac2[_0x4c28fd(0x1e5)],_0x24bdaf+_0x4c28fd(0x1b6)),requireValue(types[_0x4c28fd(0x1e2)](_0x101ac2[_0x4c28fd(0x177)]),_0x24bdaf+_0x4c28fd(0x1d4)),requireValue(dbTypes['has'](_0x101ac2[_0x4c28fd(0x1ea)]),_0x24bdaf+_0x4c28fd(0x1ed));for(const _0x27f06e of[_0x4c28fd(0x1ea),_0x4c28fd(0x1d7),'semanticName',_0x4c28fd(0x1d9),'defaultAggregation',_0x4c28fd(0x1a9)]){requireValue(_0x101ac2[_0x27f06e]==null||typeof _0x101ac2[_0x27f06e]===_0x4c28fd(0x1e3),_0x24bdaf+'.'+_0x27f06e+_0x4c28fd(0x1cb));}for(const _0x22463d of[_0x4c28fd(0x1ba),_0x4c28fd(0x1ee),_0x4c28fd(0x1bd),_0x4c28fd(0x1c0),_0x4c28fd(0x1b4),_0x4c28fd(0x1fb),_0x4c28fd(0x1a4)]){requireValue(_0x101ac2[_0x22463d]==null||typeof _0x101ac2[_0x22463d]===_0x4c28fd(0x1c6),_0x24bdaf+'.'+_0x22463d+_0x4c28fd(0x18f));}requireValue(_0x101ac2['dbTypeLen']==null||Number['isSafeInteger'](_0x101ac2[_0x4c28fd(0x198)])&&_0x101ac2['dbTypeLen']>0x0&&_0x101ac2[_0x4c28fd(0x198)]<=0xffff,_0x24bdaf+_0x4c28fd(0x188)),requireValue(_0x101ac2['supportedAggregation']==null||Array[_0x4c28fd(0x1b7)](_0x101ac2[_0x4c28fd(0x17e)])&&_0x101ac2['supportedAggregation']['every'](_0x11d227=>typeof _0x11d227===_0x4c28fd(0x1e3)),_0x24bdaf+_0x4c28fd(0x1de));if(_0x101ac2[_0x4c28fd(0x18e)]!=null){requireValue(Array[_0x4c28fd(0x1b7)](_0x101ac2[_0x4c28fd(0x18e)]),_0x24bdaf+'.options\x20must\x20be\x20an\x20array.');const _0x5f0bf7=new Set(),_0x53d1b1=new Set();for(const _0xffed58 of _0x101ac2['options']){requireValue(isObject(_0xffed58),_0x24bdaf+_0x4c28fd(0x1e4)),keys(_0xffed58,[_0x4c28fd(0x19e),_0x4c28fd(0x18d)],_0x24bdaf+_0x4c28fd(0x1aa)),text(_0xffed58[_0x4c28fd(0x19e)],_0x24bdaf+_0x4c28fd(0x1f9)),requireValue(typeof _0xffed58[_0x4c28fd(0x18d)]===_0x4c28fd(0x1e3)&&identifier['test'](_0xffed58[_0x4c28fd(0x18d)])&&!_0x53d1b1[_0x4c28fd(0x1e2)](_0xffed58[_0x4c28fd(0x18d)])&&!_0x5f0bf7[_0x4c28fd(0x1e2)](_0xffed58[_0x4c28fd(0x19e)]),_0x24bdaf+'.options\x20is\x20invalid\x20or\x20duplicated.'),_0x5f0bf7[_0x4c28fd(0x1cd)](_0xffed58['label']),_0x53d1b1[_0x4c28fd(0x1cd)](_0xffed58[_0x4c28fd(0x18d)]);}}if([_0x4c28fd(0x191),_0x4c28fd(0x18a)][_0x4c28fd(0x1d5)](_0x101ac2[_0x4c28fd(0x177)])){const _0x93e994=Array['isArray'](_0x24782b[_0x4c28fd(0x183)])&&_0x24782b[_0x4c28fd(0x183)]['some'](_0x35a784=>_0x35a784?.[_0x4c28fd(0x1cc)]===_0x3c950a[_0x4c28fd(0x1d2)]&&_0x35a784?.[_0x4c28fd(0x1ca)]===_0x101ac2['name']);requireValue(_0x93e994||Array[_0x4c28fd(0x1b7)](_0x101ac2[_0x4c28fd(0x18e)])&&_0x101ac2['options'][_0x4c28fd(0x1f2)]>0x0,_0x24bdaf+'\x20requires\x20options\x20or\x20an\x20explicit\x20relation.');}}_0xcc0771[_0x4c28fd(0x1cd)]('id');}for(const _0x35aacd of[_0x4c28fd(0x183),_0x4c28fd(0x19a)])requireValue(_0x24782b[_0x35aacd]==null||Array['isArray'](_0x24782b[_0x35aacd])&&_0x24782b[_0x35aacd]['length']<=0xc8,_0x35aacd+_0x4c28fd(0x1c4));const _0x47addd=new Set();for(const [_0x51d3dc,_0x570905]of(_0x24782b[_0x4c28fd(0x183)]??[])['entries']()){const _0x3d8362=_0x4c28fd(0x1c2)+_0x51d3dc+']';requireValue(isObject(_0x570905),_0x3d8362+_0x4c28fd(0x199)),keys(_0x570905,['fromDatasetKey',_0x4c28fd(0x1ca),_0x4c28fd(0x1e9),_0x4c28fd(0x1a8),_0x4c28fd(0x18b),_0x4c28fd(0x194),_0x4c28fd(0x1b5),_0x4c28fd(0x1c3),'reason','confidence'],_0x3d8362),requireValue(_0x26161d[_0x4c28fd(0x190)](_0x570905[_0x4c28fd(0x1cc)])?.[_0x4c28fd(0x1e2)](_0x570905[_0x4c28fd(0x1ca)]),_0x3d8362+_0x4c28fd(0x184)),requireValue(Boolean(_0x570905[_0x4c28fd(0x1e9)])!==Boolean(_0x570905['toDatasetCode']),_0x3d8362+_0x4c28fd(0x1c8));if(_0x570905['toDatasetKey'])requireValue(_0x26161d[_0x4c28fd(0x190)](_0x570905[_0x4c28fd(0x1e9)])?.[_0x4c28fd(0x1e2)](_0x570905[_0x4c28fd(0x18b)]),_0x3d8362+_0x4c28fd(0x1b0));else text(_0x570905['toDatasetCode'],_0x3d8362+_0x4c28fd(0x175)),text(_0x570905[_0x4c28fd(0x18b)],_0x3d8362+'.toField');requireValue(_0x570905[_0x4c28fd(0x1b5)]==null||_0x570905[_0x4c28fd(0x1b5)]===_0x4c28fd(0x1b2),_0x3d8362+_0x4c28fd(0x1bb)),requireValue(_0x570905['cardinality']==null||[_0x4c28fd(0x17f),_0x4c28fd(0x197)][_0x4c28fd(0x1d5)](_0x570905['cardinality']),_0x3d8362+'.cardinality\x20is\x20unsupported.'),text(_0x570905[_0x4c28fd(0x18c)],_0x3d8362+'.reason'),requireValue(_0x570905[_0x4c28fd(0x178)]==null||typeof _0x570905['confidence']===_0x4c28fd(0x1dc)&&Number[_0x4c28fd(0x17b)](_0x570905['confidence'])&&_0x570905[_0x4c28fd(0x178)]>=0x0&&_0x570905[_0x4c28fd(0x178)]<=0x1,_0x3d8362+'.confidence\x20is\x20invalid.');const _0x549d4d=_0x570905[_0x4c28fd(0x1cc)]+':'+_0x570905[_0x4c28fd(0x1ca)];requireValue(!_0x47addd[_0x4c28fd(0x1e2)](_0x549d4d),_0x3d8362+'\x20duplicates\x20a\x20source\x20field.'),_0x47addd['add'](_0x549d4d);}for(const _0xc0e0cb of _0x24782b[_0x4c28fd(0x19a)]??[]){requireValue(isObject(_0xc0e0cb),_0x4c28fd(0x1c1)),text(_0xc0e0cb['reason'],_0x4c28fd(0x1f5));}return _0x24782b;}export async function readManifest(_0x32eff9){const _0x2943be=a342_0x4b62bd,_0x55cab8=await lstat(_0x32eff9);requireValue(_0x55cab8[_0x2943be(0x189)]()&&!_0x55cab8[_0x2943be(0x1e6)]()&&_0x55cab8['size']<=0x1e8480,_0x2943be(0x1ad));let _0x54ce8a;try{_0x54ce8a=JSON[_0x2943be(0x185)](await readFile(_0x32eff9,'utf8'));}catch{throw CliErrors[_0x2943be(0x1f6)]('Design\x20file\x20contains\x20invalid\x20JSON.');}return validateManifest(isObject(_0x54ce8a)&&isObject(_0x54ce8a['normalizedManifest'])?_0x54ce8a[_0x2943be(0x1f8)]:_0x54ce8a);}export function inputHash(_0x4cd011){const _0x3a7689=a342_0x4b62bd,_0x30c346=_0xd11ef1=>Array[_0x3a7689(0x1b7)](_0xd11ef1)?_0xd11ef1['map'](_0x30c346):isObject(_0xd11ef1)?Object[_0x3a7689(0x1b9)](Object['keys'](_0xd11ef1)['sort']()['map'](_0x5d3e14=>[_0x5d3e14,_0x30c346(_0xd11ef1[_0x5d3e14])])):_0xd11ef1;return createHash(_0x3a7689(0x19c))['update'](JSON[_0x3a7689(0x1fa)](_0x30c346(_0x4cd011)))[_0x3a7689(0x1da)](_0x3a7689(0x1e0));}
@@ -1 +1 @@
1
- function a342_0x4e55(){const _0x4f2540=['name','skipped','Symbolic\x20link\x20is\x20not\x20allowed:\x20',':\x5cs*(.+)$','14OzWBVC','rabetbase\x20cli-skill\x20install','parse','1716XNuMPr','sha256','digest','count','skillVersion','utf8','manifest','every','packageRoot','20673toggpj','isDirectory','skills','INSTALL_FAILED','isFile','5nzrerE','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','startsWith','unverifiable','log','unknown','stdio','match','path','installedPath','isSymbolicLink','missing','rabetbase-skills','1036676UpKCoy','SKILL.md','message','packageVersion','partialFailure','output','root','Installer\x20reported\x20partial\x20target\x20failures:\x0a%s','trim','files','join','flatMap','version_mismatch','sort','content_mismatch','449CxhdbI','136296axkUzR','package.json','9092413TSdtOd','length','Unsafe\x20manifest\x20path:\x20','rabetbase.manifest.json','split','478qrJOua','hex','CLI\x20Built-in\x20Skill\x20','home','1432GbeKvN','pipe','state','absent','includes','10hYTEpw','633336tbiCuA','reason','\x20verified;\x20','Installed\x20Skill\x20state\x20is\x20','schemaVersion','update','version','SOURCE_INVALID','rabetbase','status','present','current','211476kXQzFU'];a342_0x4e55=function(){return _0x4f2540;};return a342_0x4e55();}const a342_0x4b01fe=a342_0x4d46;(function(_0x3e2842,_0x18ec84){const _0x3331b9=a342_0x4d46,_0x3a8a80=_0x3e2842();while(!![]){try{const _0x388a97=parseInt(_0x3331b9(0xa9))/0x1*(-parseInt(_0x3331b9(0xb1))/0x2)+-parseInt(_0x3331b9(0xbb))/0x3+-parseInt(_0x3331b9(0x9a))/0x4*(parseInt(_0x3331b9(0x8d))/0x5)+parseInt(_0x3331b9(0xaa))/0x6*(parseInt(_0x3331b9(0x7c))/0x7)+-parseInt(_0x3331b9(0xb5))/0x8*(parseInt(_0x3331b9(0x88))/0x9)+parseInt(_0x3331b9(0xba))/0xa*(-parseInt(_0x3331b9(0xac))/0xb)+parseInt(_0x3331b9(0x77))/0xc*(parseInt(_0x3331b9(0x7f))/0xd);if(_0x388a97===_0x18ec84)break;else _0x3a8a80['push'](_0x3a8a80['shift']());}catch(_0xbd5b32){_0x3a8a80['push'](_0x3a8a80['shift']());}}}(a342_0x4e55,0x87d2a));import{createHash}from'node:crypto';function a342_0x4d46(_0x1f2561,_0x562c26){_0x1f2561=_0x1f2561-0x6d;const _0x4e5535=a342_0x4e55();let _0x4d4618=_0x4e5535[_0x1f2561];return _0x4d4618;}import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{debuglog}from'node:util';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a342_0x4b01fe(0x7d),SKILL_NAME=a342_0x4b01fe(0x73),debug=debuglog(a342_0x4b01fe(0x99));function frontmatterValue(_0x4c7809,_0x4c020){const _0x1b3126=a342_0x4b01fe;return _0x4c7809[_0x1b3126(0x94)](new RegExp('^'+_0x4c020+_0x1b3126(0x7b),'m'))?.[0x1]?.[_0x1b3126(0xa2)]()??'';}function listFiles(_0x56ad9c,_0xd54b3=_0x56ad9c){const _0x21e14d=a342_0x4b01fe;return readdirSync(_0xd54b3,{'withFileTypes':!![]})[_0x21e14d(0xa5)](_0x3ed492=>{const _0x5ea6ef=_0x21e14d,_0x11aa35=join(_0xd54b3,_0x3ed492['name']),_0x8ab3a8=lstatSync(_0x11aa35);if(_0x8ab3a8[_0x5ea6ef(0x97)]())throw new Error(_0x5ea6ef(0x7a)+_0x11aa35);if(_0x8ab3a8[_0x5ea6ef(0x89)]())return listFiles(_0x56ad9c,_0x11aa35);if(!_0x8ab3a8[_0x5ea6ef(0x8c)]())throw new Error('Unsupported\x20Skill\x20entry:\x20'+_0x11aa35);return[relative(_0x56ad9c,_0x11aa35)[_0x5ea6ef(0xb0)](sep)[_0x5ea6ef(0xa4)]('/')];})[_0x21e14d(0xa7)]((_0xc99d90,_0x19da94)=>_0xc99d90<_0x19da94?-0x1:_0xc99d90>_0x19da94?0x1:0x0);}function digestFiles(_0x4d451b,_0x403a21){const _0x47a4f4=a342_0x4b01fe,_0x40b3d0=createHash(_0x47a4f4(0x80));for(const _0x118173 of _0x403a21){if(_0x118173[_0x47a4f4(0x8f)]('/')||_0x118173[_0x47a4f4(0xb0)]('/')[_0x47a4f4(0xb9)]('..')||_0x118173[_0x47a4f4(0xb9)]('\x5c'))throw new Error(_0x47a4f4(0xae)+_0x118173);_0x40b3d0['update'](_0x118173),_0x40b3d0[_0x47a4f4(0x70)]('\x00'),_0x40b3d0[_0x47a4f4(0x70)](readFileSync(join(_0x4d451b,..._0x118173[_0x47a4f4(0xb0)]('/')))),_0x40b3d0['update']('\x00');}return _0x40b3d0[_0x47a4f4(0x81)](_0x47a4f4(0xb2));}function sameFiles(_0x420671,_0x401342){const _0x9c221e=a342_0x4b01fe;return _0x420671[_0x9c221e(0xad)]===_0x401342[_0x9c221e(0xad)]&&_0x420671[_0x9c221e(0x86)]((_0x4ceac3,_0xf65a5a)=>_0x4ceac3===_0x401342[_0xf65a5a]);}function readSource(_0x3a2640){const _0x3b6861=a342_0x4b01fe,_0x598550=JSON[_0x3b6861(0x7e)](readFileSync(join(_0x3a2640,_0x3b6861(0xab)),_0x3b6861(0x84))),_0x19aeb7=JSON[_0x3b6861(0x7e)](readFileSync(join(_0x3a2640,_0x3b6861(0x8a),_0x3b6861(0xaf)),_0x3b6861(0x84))),_0x11d34f=join(_0x3a2640,_0x3b6861(0x8a),SKILL_NAME),_0xe045f7=frontmatterValue(readFileSync(join(_0x11d34f,_0x3b6861(0x9b)),_0x3b6861(0x84)),_0x3b6861(0x71)),_0x2cb1a3=listFiles(_0x11d34f);if(_0x19aeb7[_0x3b6861(0x6f)]!==0x1||_0x19aeb7[_0x3b6861(0x78)]!==SKILL_NAME||!_0x598550['version']||_0x19aeb7[_0x3b6861(0x9d)]!==_0x598550['version']||_0x19aeb7[_0x3b6861(0x83)]!==_0x598550[_0x3b6861(0x71)]||_0xe045f7!==_0x598550[_0x3b6861(0x71)]||!sameFiles(_0x2cb1a3,_0x19aeb7[_0x3b6861(0xa3)])||digestFiles(_0x11d34f,_0x2cb1a3)!==_0x19aeb7[_0x3b6861(0x81)])throw new Error(_0x3b6861(0x8e));return{'packageVersion':_0x598550[_0x3b6861(0x71)],'skillVersion':_0xe045f7,'root':_0x11d34f,'manifest':_0x19aeb7};}function installedSkillPath(_0x1a7c0b){const _0x4a9a2c=a342_0x4b01fe,_0xd1c7f9=resolveInstalledSkill(SKILL_NAME,{'home':_0x1a7c0b});if(_0xd1c7f9[_0x4a9a2c(0xb7)]===_0x4a9a2c(0x75))return{'state':'present','path':dirname(_0xd1c7f9[_0x4a9a2c(0x95)])};if(_0xd1c7f9[_0x4a9a2c(0xb7)]===_0x4a9a2c(0xb8))return{'state':_0x4a9a2c(0x98)};return{'state':_0x4a9a2c(0x90),'reason':_0xd1c7f9[_0x4a9a2c(0xbc)]};}export function inspectInstalledBuiltinSkillVersion(_0x5f59aa,_0x5a131a={}){const _0x212558=a342_0x4b01fe,_0x9828b4=installedSkillPath(_0x5a131a[_0x212558(0xb4)]??homedir());if(_0x9828b4[_0x212558(0xb7)]===_0x212558(0x98))return{'state':_0x212558(0x98),'expectedVersion':_0x5f59aa,'repairCommand':REPAIR_COMMAND};if(_0x9828b4[_0x212558(0xb7)]===_0x212558(0x90))return{'state':'unverifiable','expectedVersion':_0x5f59aa,'reason':_0x9828b4[_0x212558(0xbc)],'repairCommand':REPAIR_COMMAND};try{const _0x4607d7=frontmatterValue(readFileSync(join(_0x9828b4[_0x212558(0x95)],_0x212558(0x9b)),'utf8'),_0x212558(0x71));return{'state':_0x4607d7===_0x5f59aa?_0x212558(0x76):_0x212558(0xa6),'expectedVersion':_0x5f59aa,'skillVersion':_0x4607d7,'installedPath':_0x9828b4[_0x212558(0x95)],'repairCommand':REPAIR_COMMAND};}catch(_0x281e94){return{'state':'unverifiable','expectedVersion':_0x5f59aa,'installedPath':_0x9828b4[_0x212558(0x95)],'reason':_0x281e94 instanceof Error?_0x281e94[_0x212558(0x9c)]:String(_0x281e94),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x41d64c={}){const _0x1b1bd5=a342_0x4b01fe,_0x46f2c0=_0x41d64c[_0x1b1bd5(0x87)]??DEFAULT_PACKAGE_ROOT;let _0x46699d;try{_0x46699d=readSource(_0x46f2c0);}catch(_0x42cf34){return{'state':_0x1b1bd5(0x90),'packageVersion':'unknown','reason':_0x42cf34 instanceof Error?_0x42cf34[_0x1b1bd5(0x9c)]:String(_0x42cf34),'repairCommand':REPAIR_COMMAND};}const _0x1a013b=installedSkillPath(_0x41d64c['home']??homedir());if(_0x1a013b[_0x1b1bd5(0xb7)]===_0x1b1bd5(0x98))return{'state':_0x1b1bd5(0x98),'packageVersion':_0x46699d[_0x1b1bd5(0x9d)],'repairCommand':REPAIR_COMMAND};if(_0x1a013b[_0x1b1bd5(0xb7)]===_0x1b1bd5(0x90))return{'state':'unverifiable','packageVersion':_0x46699d['packageVersion'],'reason':_0x1a013b[_0x1b1bd5(0xbc)],'repairCommand':REPAIR_COMMAND};try{const _0x1feee0=frontmatterValue(readFileSync(join(_0x1a013b[_0x1b1bd5(0x95)],_0x1b1bd5(0x9b)),_0x1b1bd5(0x84)),_0x1b1bd5(0x71));if(_0x1feee0!==_0x46699d['skillVersion'])return{'state':_0x1b1bd5(0xa6),'packageVersion':_0x46699d['packageVersion'],'skillVersion':_0x1feee0,'installedPath':_0x1a013b['path'],'repairCommand':REPAIR_COMMAND};const _0x2a4664=listFiles(_0x1a013b[_0x1b1bd5(0x95)]),_0x47da5b=digestFiles(_0x1a013b[_0x1b1bd5(0x95)],_0x2a4664);return{'state':sameFiles(_0x2a4664,_0x46699d[_0x1b1bd5(0x85)][_0x1b1bd5(0xa3)])&&_0x47da5b===_0x46699d[_0x1b1bd5(0x85)][_0x1b1bd5(0x81)]?_0x1b1bd5(0x76):_0x1b1bd5(0xa8),'packageVersion':_0x46699d[_0x1b1bd5(0x9d)],'skillVersion':_0x1feee0,'installedPath':_0x1a013b[_0x1b1bd5(0x95)],'digest':_0x47da5b,'repairCommand':REPAIR_COMMAND};}catch(_0x3e2471){return{'state':_0x1b1bd5(0x90),'packageVersion':_0x46699d[_0x1b1bd5(0x9d)],'installedPath':_0x1a013b[_0x1b1bd5(0x95)],'reason':_0x3e2471 instanceof Error?_0x3e2471[_0x1b1bd5(0x9c)]:String(_0x3e2471),'repairCommand':REPAIR_COMMAND};}}function failure(_0x34877e,_0x386d43,_0x4908d0,_0x164020){const _0x477d52=a342_0x4b01fe;return{'ok':![],'code':_0x34877e,'packageVersion':_0x386d43['packageVersion'],'skillVersion':_0x386d43[_0x477d52(0x83)],'installedPath':_0x164020,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x4908d0 instanceof Error?_0x4908d0[_0x477d52(0x9c)]:String(_0x4908d0)};}export function installBuiltinSkill(_0x1bd608={}){const _0x51fe86=a342_0x4b01fe,_0x5ab30e=_0x1bd608[_0x51fe86(0x87)]??DEFAULT_PACKAGE_ROOT,_0x5d543e=_0x1bd608['home']??homedir();let _0x3a8545;try{_0x3a8545=readSource(_0x5ab30e);}catch(_0x4a2f72){return failure(_0x51fe86(0x72),{'packageVersion':_0x51fe86(0x92),'skillVersion':_0x51fe86(0x92)},_0x4a2f72);}const _0x249f29=inspectBuiltinSkill({'packageRoot':_0x5ab30e,'home':_0x5d543e}),_0xb3449f=runNpxSkillsAddGlobal(_0x5ab30e,_0x3a8545[_0x51fe86(0xa0)],{'stdio':_0x1bd608[_0x51fe86(0x93)]??_0x51fe86(0xb6),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x5d543e}});if(_0xb3449f[_0x51fe86(0x79)])return{'ok':!![],'packageVersion':_0x3a8545['packageVersion'],'skillVersion':_0x3a8545[_0x51fe86(0x83)],'installedPath':_0x249f29['installedPath'],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0xb3449f['ok'])return failure(_0x51fe86(0x8b),_0x3a8545,_0xb3449f['error']??'skills@latest\x20exited\x20'+_0xb3449f[_0x51fe86(0x74)]);const _0xc9f887=inspectBuiltinSkill({'packageRoot':_0x5ab30e,'home':_0x5d543e});if(_0xc9f887[_0x51fe86(0xb7)]!==_0x51fe86(0x76)){const _0x22e0f2=_0xc9f887[_0x51fe86(0xbc)]??_0x51fe86(0x6e)+_0xc9f887['state'];return failure('VERIFY_FAILED',_0x3a8545,_0xb3449f[_0x51fe86(0x9e)]?_0x22e0f2+'\x0a'+_0xb3449f['partialFailure']['output']:_0x22e0f2,_0xc9f887[_0x51fe86(0x96)]);}return _0xb3449f[_0x51fe86(0x9e)]&&(debug(_0x51fe86(0xa1),_0xb3449f[_0x51fe86(0x9e)][_0x51fe86(0x9f)]),console[_0x51fe86(0x91)](_0x51fe86(0xb3)+_0x3a8545['skillVersion']+_0x51fe86(0x6d)+_0xb3449f[_0x51fe86(0x9e)][_0x51fe86(0x82)]+'\x20automatically\x20selected\x20installation\x20target(s)\x20could\x20not\x20be\x20installed.')),{'ok':!![],'packageVersion':_0x3a8545[_0x51fe86(0x9d)],'skillVersion':_0x3a8545[_0x51fe86(0x83)],'installedPath':_0xc9f887[_0x51fe86(0x96)],'changed':_0x249f29[_0x51fe86(0xb7)]!=='current','repairCommand':REPAIR_COMMAND};}
1
+ const a343_0x5cb8bb=a343_0x1bce;(function(_0x5e5a4e,_0x23641a){const _0x3c3e7f=a343_0x1bce,_0x4f58d2=_0x5e5a4e();while(!![]){try{const _0x1d4a38=parseInt(_0x3c3e7f(0x174))/0x1*(-parseInt(_0x3c3e7f(0x158))/0x2)+-parseInt(_0x3c3e7f(0x13b))/0x3*(parseInt(_0x3c3e7f(0x169))/0x4)+-parseInt(_0x3c3e7f(0x16c))/0x5*(-parseInt(_0x3c3e7f(0x15d))/0x6)+parseInt(_0x3c3e7f(0x146))/0x7*(parseInt(_0x3c3e7f(0x167))/0x8)+-parseInt(_0x3c3e7f(0x13d))/0x9+-parseInt(_0x3c3e7f(0x165))/0xa+parseInt(_0x3c3e7f(0x15c))/0xb;if(_0x1d4a38===_0x23641a)break;else _0x4f58d2['push'](_0x4f58d2['shift']());}catch(_0x48d070){_0x4f58d2['push'](_0x4f58d2['shift']());}}}(a343_0x1815,0xb0559));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{debuglog}from'node:util';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';function a343_0x1bce(_0x14542d,_0x50a0f8){_0x14542d=_0x14542d-0x135;const _0x18153f=a343_0x1815();let _0x1bceb3=_0x18153f[_0x14542d];return _0x1bceb3;}const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a343_0x5cb8bb(0x136),SKILL_NAME=a343_0x5cb8bb(0x13e),debug=debuglog('rabetbase-skills');function frontmatterValue(_0x3752d9,_0x17eed8){const _0x2f2e08=a343_0x5cb8bb;return _0x3752d9[_0x2f2e08(0x147)](new RegExp('^'+_0x17eed8+_0x2f2e08(0x139),'m'))?.[0x1]?.[_0x2f2e08(0x14f)]()??'';}function a343_0x1815(){const _0x515857=['manifest','1099704xsMghE','installedPath','28832eFalPG','skillVersion','split','114040xsNnIC','home','packageVersion','partialFailure','utf8','hex','name','\x20verified;\x20','7589PpXlhc','isSymbolicLink','packageRoot','rabetbase.manifest.json','state','version_mismatch','length','path','rabetbase\x20cli-skill\x20install','Installer\x20reported\x20partial\x20target\x20failures:\x0a%s','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest',':\x5cs*(.+)$','SKILL.md','174MMZyQI','message','5485680zkTDzI','rabetbase','log','SOURCE_INVALID','status','Symbolic\x20link\x20is\x20not\x20allowed:\x20','Installed\x20Skill\x20state\x20is\x20','present','pipe','56WAmjvE','match','version','includes','INSTALL_FAILED','startsWith','every','output','stdio','trim','parse','count','schemaVersion','absent','join','sha256','isDirectory','reason','214ivlIvt','unknown','update','skills@latest\x20exited\x20','20830062cQvBED','138HMXTOm','VERIFY_FAILED','missing','current','digest','flatMap','files','unverifiable','9560580SkMhho'];a343_0x1815=function(){return _0x515857;};return a343_0x1815();}function listFiles(_0x4d4747,_0x52496f=_0x4d4747){const _0x5e6a77=a343_0x5cb8bb;return readdirSync(_0x52496f,{'withFileTypes':!![]})[_0x5e6a77(0x162)](_0x270f79=>{const _0xd9f23c=_0x5e6a77,_0x9cab8a=join(_0x52496f,_0x270f79[_0xd9f23c(0x172)]),_0x4d5bf1=lstatSync(_0x9cab8a);if(_0x4d5bf1[_0xd9f23c(0x175)]())throw new Error(_0xd9f23c(0x142)+_0x9cab8a);if(_0x4d5bf1[_0xd9f23c(0x156)]())return listFiles(_0x4d4747,_0x9cab8a);if(!_0x4d5bf1['isFile']())throw new Error('Unsupported\x20Skill\x20entry:\x20'+_0x9cab8a);return[relative(_0x4d4747,_0x9cab8a)[_0xd9f23c(0x16b)](sep)[_0xd9f23c(0x154)]('/')];})['sort']((_0x5c8147,_0x8ca6d9)=>_0x5c8147<_0x8ca6d9?-0x1:_0x5c8147>_0x8ca6d9?0x1:0x0);}function digestFiles(_0x68bc1e,_0x130cf0){const _0x2d8bc8=a343_0x5cb8bb,_0xbef906=createHash(_0x2d8bc8(0x155));for(const _0x4f6084 of _0x130cf0){if(_0x4f6084[_0x2d8bc8(0x14b)]('/')||_0x4f6084[_0x2d8bc8(0x16b)]('/')[_0x2d8bc8(0x149)]('..')||_0x4f6084[_0x2d8bc8(0x149)]('\x5c'))throw new Error('Unsafe\x20manifest\x20path:\x20'+_0x4f6084);_0xbef906['update'](_0x4f6084),_0xbef906[_0x2d8bc8(0x15a)]('\x00'),_0xbef906['update'](readFileSync(join(_0x68bc1e,..._0x4f6084['split']('/')))),_0xbef906[_0x2d8bc8(0x15a)]('\x00');}return _0xbef906[_0x2d8bc8(0x161)](_0x2d8bc8(0x171));}function sameFiles(_0x983072,_0x1a2e69){const _0x22fa13=a343_0x5cb8bb;return _0x983072[_0x22fa13(0x17a)]===_0x1a2e69['length']&&_0x983072[_0x22fa13(0x14c)]((_0x4e3014,_0x2a4bb1)=>_0x4e3014===_0x1a2e69[_0x2a4bb1]);}function readSource(_0x186949){const _0x3b032a=a343_0x5cb8bb,_0xf9b383=JSON['parse'](readFileSync(join(_0x186949,'package.json'),_0x3b032a(0x170))),_0xec5ac4=JSON[_0x3b032a(0x150)](readFileSync(join(_0x186949,'skills',_0x3b032a(0x177)),_0x3b032a(0x170))),_0xac6aa1=join(_0x186949,'skills',SKILL_NAME),_0x22524b=frontmatterValue(readFileSync(join(_0xac6aa1,_0x3b032a(0x13a)),'utf8'),'version'),_0xa22e6c=listFiles(_0xac6aa1);if(_0xec5ac4[_0x3b032a(0x152)]!==0x1||_0xec5ac4[_0x3b032a(0x172)]!==SKILL_NAME||!_0xf9b383['version']||_0xec5ac4[_0x3b032a(0x16e)]!==_0xf9b383[_0x3b032a(0x148)]||_0xec5ac4[_0x3b032a(0x16a)]!==_0xf9b383[_0x3b032a(0x148)]||_0x22524b!==_0xf9b383[_0x3b032a(0x148)]||!sameFiles(_0xa22e6c,_0xec5ac4['files'])||digestFiles(_0xac6aa1,_0xa22e6c)!==_0xec5ac4['digest'])throw new Error(_0x3b032a(0x138));return{'packageVersion':_0xf9b383[_0x3b032a(0x148)],'skillVersion':_0x22524b,'root':_0xac6aa1,'manifest':_0xec5ac4};}function installedSkillPath(_0x5f001b){const _0x320440=a343_0x5cb8bb,_0x1d1841=resolveInstalledSkill(SKILL_NAME,{'home':_0x5f001b});if(_0x1d1841['state']===_0x320440(0x144))return{'state':_0x320440(0x144),'path':dirname(_0x1d1841[_0x320440(0x135)])};if(_0x1d1841[_0x320440(0x178)]===_0x320440(0x153))return{'state':_0x320440(0x15f)};return{'state':_0x320440(0x164),'reason':_0x1d1841[_0x320440(0x157)]};}export function inspectInstalledBuiltinSkillVersion(_0x817fcf,_0x246521={}){const _0x12408f=a343_0x5cb8bb,_0x2fd6ae=installedSkillPath(_0x246521[_0x12408f(0x16d)]??homedir());if(_0x2fd6ae['state']==='missing')return{'state':_0x12408f(0x15f),'expectedVersion':_0x817fcf,'repairCommand':REPAIR_COMMAND};if(_0x2fd6ae[_0x12408f(0x178)]===_0x12408f(0x164))return{'state':_0x12408f(0x164),'expectedVersion':_0x817fcf,'reason':_0x2fd6ae[_0x12408f(0x157)],'repairCommand':REPAIR_COMMAND};try{const _0x473324=frontmatterValue(readFileSync(join(_0x2fd6ae['path'],_0x12408f(0x13a)),_0x12408f(0x170)),_0x12408f(0x148));return{'state':_0x473324===_0x817fcf?_0x12408f(0x160):_0x12408f(0x179),'expectedVersion':_0x817fcf,'skillVersion':_0x473324,'installedPath':_0x2fd6ae[_0x12408f(0x135)],'repairCommand':REPAIR_COMMAND};}catch(_0x43ca20){return{'state':'unverifiable','expectedVersion':_0x817fcf,'installedPath':_0x2fd6ae[_0x12408f(0x135)],'reason':_0x43ca20 instanceof Error?_0x43ca20['message']:String(_0x43ca20),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0xba6b67={}){const _0x3f6697=a343_0x5cb8bb,_0x34daf5=_0xba6b67[_0x3f6697(0x176)]??DEFAULT_PACKAGE_ROOT;let _0x5d95ec;try{_0x5d95ec=readSource(_0x34daf5);}catch(_0x10c8b3){return{'state':_0x3f6697(0x164),'packageVersion':'unknown','reason':_0x10c8b3 instanceof Error?_0x10c8b3['message']:String(_0x10c8b3),'repairCommand':REPAIR_COMMAND};}const _0x255d93=installedSkillPath(_0xba6b67[_0x3f6697(0x16d)]??homedir());if(_0x255d93[_0x3f6697(0x178)]===_0x3f6697(0x15f))return{'state':'missing','packageVersion':_0x5d95ec[_0x3f6697(0x16e)],'repairCommand':REPAIR_COMMAND};if(_0x255d93['state']===_0x3f6697(0x164))return{'state':_0x3f6697(0x164),'packageVersion':_0x5d95ec[_0x3f6697(0x16e)],'reason':_0x255d93[_0x3f6697(0x157)],'repairCommand':REPAIR_COMMAND};try{const _0x5eecd5=frontmatterValue(readFileSync(join(_0x255d93[_0x3f6697(0x135)],'SKILL.md'),'utf8'),'version');if(_0x5eecd5!==_0x5d95ec['skillVersion'])return{'state':_0x3f6697(0x179),'packageVersion':_0x5d95ec['packageVersion'],'skillVersion':_0x5eecd5,'installedPath':_0x255d93[_0x3f6697(0x135)],'repairCommand':REPAIR_COMMAND};const _0x26e98f=listFiles(_0x255d93[_0x3f6697(0x135)]),_0x48bfc4=digestFiles(_0x255d93[_0x3f6697(0x135)],_0x26e98f);return{'state':sameFiles(_0x26e98f,_0x5d95ec[_0x3f6697(0x166)][_0x3f6697(0x163)])&&_0x48bfc4===_0x5d95ec[_0x3f6697(0x166)][_0x3f6697(0x161)]?'current':'content_mismatch','packageVersion':_0x5d95ec[_0x3f6697(0x16e)],'skillVersion':_0x5eecd5,'installedPath':_0x255d93[_0x3f6697(0x135)],'digest':_0x48bfc4,'repairCommand':REPAIR_COMMAND};}catch(_0x2fa0fd){return{'state':_0x3f6697(0x164),'packageVersion':_0x5d95ec[_0x3f6697(0x16e)],'installedPath':_0x255d93['path'],'reason':_0x2fa0fd instanceof Error?_0x2fa0fd[_0x3f6697(0x13c)]:String(_0x2fa0fd),'repairCommand':REPAIR_COMMAND};}}function failure(_0x54f5b5,_0x54f622,_0x253e8c,_0x1579f6){const _0x28a3f5=a343_0x5cb8bb;return{'ok':![],'code':_0x54f5b5,'packageVersion':_0x54f622[_0x28a3f5(0x16e)],'skillVersion':_0x54f622['skillVersion'],'installedPath':_0x1579f6,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x253e8c instanceof Error?_0x253e8c[_0x28a3f5(0x13c)]:String(_0x253e8c)};}export function installBuiltinSkill(_0x1efd03={}){const _0x56ecfe=a343_0x5cb8bb,_0x3d62e1=_0x1efd03[_0x56ecfe(0x176)]??DEFAULT_PACKAGE_ROOT,_0x1a3531=_0x1efd03[_0x56ecfe(0x16d)]??homedir();let _0x15bb52;try{_0x15bb52=readSource(_0x3d62e1);}catch(_0x4a5016){return failure(_0x56ecfe(0x140),{'packageVersion':_0x56ecfe(0x159),'skillVersion':'unknown'},_0x4a5016);}const _0xf3025b=inspectBuiltinSkill({'packageRoot':_0x3d62e1,'home':_0x1a3531}),_0xcd6bc0=runNpxSkillsAddGlobal(_0x3d62e1,_0x15bb52['root'],{'stdio':_0x1efd03[_0x56ecfe(0x14e)]??_0x56ecfe(0x145),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x1a3531}});if(_0xcd6bc0['skipped'])return{'ok':!![],'packageVersion':_0x15bb52[_0x56ecfe(0x16e)],'skillVersion':_0x15bb52[_0x56ecfe(0x16a)],'installedPath':_0xf3025b[_0x56ecfe(0x168)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0xcd6bc0['ok'])return failure(_0x56ecfe(0x14a),_0x15bb52,_0xcd6bc0['error']??_0x56ecfe(0x15b)+_0xcd6bc0[_0x56ecfe(0x141)]);const _0x4ceba4=inspectBuiltinSkill({'packageRoot':_0x3d62e1,'home':_0x1a3531});if(_0x4ceba4[_0x56ecfe(0x178)]!==_0x56ecfe(0x160)){const _0x2ccc70=_0x4ceba4['reason']??_0x56ecfe(0x143)+_0x4ceba4['state'];return failure(_0x56ecfe(0x15e),_0x15bb52,_0xcd6bc0['partialFailure']?_0x2ccc70+'\x0a'+_0xcd6bc0[_0x56ecfe(0x16f)][_0x56ecfe(0x14d)]:_0x2ccc70,_0x4ceba4[_0x56ecfe(0x168)]);}return _0xcd6bc0[_0x56ecfe(0x16f)]&&(debug(_0x56ecfe(0x137),_0xcd6bc0[_0x56ecfe(0x16f)][_0x56ecfe(0x14d)]),console[_0x56ecfe(0x13f)]('CLI\x20Built-in\x20Skill\x20'+_0x15bb52[_0x56ecfe(0x16a)]+_0x56ecfe(0x173)+_0xcd6bc0[_0x56ecfe(0x16f)][_0x56ecfe(0x151)]+'\x20automatically\x20selected\x20installation\x20target(s)\x20could\x20not\x20be\x20installed.')),{'ok':!![],'packageVersion':_0x15bb52[_0x56ecfe(0x16e)],'skillVersion':_0x15bb52[_0x56ecfe(0x16a)],'installedPath':_0x4ceba4[_0x56ecfe(0x168)],'changed':_0xf3025b[_0x56ecfe(0x178)]!==_0x56ecfe(0x160),'repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- (function(_0x58c1ba,_0xc39fea){const _0x433db9=a343_0x1725,_0x574aed=_0x58c1ba();while(!![]){try{const _0x3d41da=parseInt(_0x433db9(0x90))/0x1*(parseInt(_0x433db9(0x8d))/0x2)+parseInt(_0x433db9(0x94))/0x3+parseInt(_0x433db9(0x9d))/0x4+parseInt(_0x433db9(0x85))/0x5+parseInt(_0x433db9(0x8e))/0x6+parseInt(_0x433db9(0x8a))/0x7+parseInt(_0x433db9(0x83))/0x8*(-parseInt(_0x433db9(0x97))/0x9);if(_0x3d41da===_0xc39fea)break;else _0x574aed['push'](_0x574aed['shift']());}catch(_0x15366e){_0x574aed['push'](_0x574aed['shift']());}}}(a343_0x35dc,0x1cf0c));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x21bd12){const _0xd5b6b9=a343_0x1725,_0x35ac4d=[];for(const [_0x2aff8f,_0x1d7c60]of Object['entries'](_0x21bd12)){if(_0x1d7c60===!![]){const _0x24d603=_0x2aff8f[_0xd5b6b9(0x96)](/([A-Z])/g,_0xd5b6b9(0x8f))[_0xd5b6b9(0x91)]();_0x35ac4d['push'](_0x24d603);}}return _0x35ac4d;}export function parseDynamicFlags(){const _0x29c163=a343_0x1725,_0x5d8ce2=[];for(let _0xf4fea1=0x3;_0xf4fea1<process[_0x29c163(0x95)][_0x29c163(0x93)];_0xf4fea1++){const _0x48b9e8=process[_0x29c163(0x95)][_0xf4fea1];if(_0x48b9e8&&_0x48b9e8[_0x29c163(0x7e)]('--')){const _0x4108b1=_0x48b9e8['slice'](0x2);_0x4108b1&&!_0x4108b1[_0x29c163(0x87)]('=')&&_0x5d8ce2[_0x29c163(0x7d)](_0x4108b1);}}return _0x5d8ce2;}export function getAllProvidedFlags(_0x3a4e85){const _0x4f71fa=a343_0x1725,_0x5bbd14=camelCaseFlagsToKebab(_0x3a4e85),_0x3cb807=parseDynamicFlags(),_0x175639=new Set([..._0x5bbd14,..._0x3cb807]);return Array[_0x4f71fa(0x80)](_0x175639);}export function normalizeLegacyBffSaveFlags(_0x539985){const _0x19f7cf=a343_0x1725,_0x109ff2=new Set(_0x539985);return _0x109ff2[_0x19f7cf(0x88)](_0x19f7cf(0x82))&&_0x109ff2[_0x19f7cf(0x8b)](_0x19f7cf(0x92)),Array[_0x19f7cf(0x80)](_0x109ff2);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a343_0x1725(_0x98b934,_0x9afe5d){_0x98b934=_0x98b934-0x7c;const _0x35dcb0=a343_0x35dc();let _0x1725c2=_0x35dcb0[_0x98b934];return _0x1725c2;}export async function skillsCommand(_0x28d53e,_0x4cc735,_0x12096c){const _0x5a9333=a343_0x1725;logger['setLogPath'](process[_0x5a9333(0x81)]());if(_0x12096c?.[_0x5a9333(0x84)]||_0x28d53e===_0x5a9333(0x9b)){showHelp();return;}console['error'](_0x5a9333(0x7f)+(_0x28d53e||_0x5a9333(0x98))),console[_0x5a9333(0x9f)]('\x0aAvailable\x20commands:'),console[_0x5a9333(0x9f)]('\x20\x20'+CLI_BIN_NAME+_0x5a9333(0x89)),console[_0x5a9333(0x9f)](''),console['log'](_0x5a9333(0x8c)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x5a9333(0x99)](_0x5a9333(0x7c),_0x5a9333(0x86)+_0x28d53e),process[_0x5a9333(0x9c)](0x1);}function showHelp(){const _0xac5136=a343_0x1725;console[_0xac5136(0x9f)](_0xac5136(0x9e)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0xac5136(0x9a));}function a343_0x35dc(){const _0x4d0605=['argv','replace','45MlyPjT','(empty)','error','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','--help','exit','831248KInwck','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','log','skill','push','startsWith','Error:\x20Unsupported\x20command:\x20','from','cwd','dangerously-bff-save','744744iOkxBx','help','323290wKzcou','Unsupported\x20command:\x20','includes','has','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','197855xImYdR','add','Public\x20Open\x20Skill\x20source:\x20','29324XaOPmh','274002BzWmnO','-$1','11tpUynt','toLowerCase','enable-bff-save','length','228963KWPdMd'];a343_0x35dc=function(){return _0x4d0605;};return a343_0x35dc();}
1
+ function a344_0xc516(){const _0x4397dd=['log','11732YJLtkl','dangerously-bff-save','Error:\x20Unsupported\x20command:\x20','push','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','exit','length','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','argv','5912KrwIus','--help','\x0aAvailable\x20commands:','skill','1603qbHImM','cwd','2920332SjEmsz','setLogPath','from','148232PgGbIV','add','7426590OAzdWm','2uSkhxW','has','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','2502891xilLKW','help','includes','Public\x20Open\x20Skill\x20source:\x20','(empty)','error','141cADQxS','slice','2421865yofVUv'];a344_0xc516=function(){return _0x4397dd;};return a344_0xc516();}(function(_0x15237d,_0x538c5c){const _0x225fd9=a344_0x5ee9,_0x15b459=_0x15237d();while(!![]){try{const _0x419ba8=-parseInt(_0x225fd9(0x1c7))/0x1*(parseInt(_0x225fd9(0x1ca))/0x2)+parseInt(_0x225fd9(0x1d3))/0x3*(parseInt(_0x225fd9(0x1d7))/0x4)+parseInt(_0x225fd9(0x1d5))/0x5+-parseInt(_0x225fd9(0x1c4))/0x6+parseInt(_0x225fd9(0x1c2))/0x7*(-parseInt(_0x225fd9(0x1be))/0x8)+-parseInt(_0x225fd9(0x1cd))/0x9+parseInt(_0x225fd9(0x1c9))/0xa;if(_0x419ba8===_0x538c5c)break;else _0x15b459['push'](_0x15b459['shift']());}catch(_0x5f484c){_0x15b459['push'](_0x15b459['shift']());}}}(a344_0xc516,0x44fe7));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a344_0x5ee9(_0x198fd4,_0x27e1a3){_0x198fd4=_0x198fd4-0x1b9;const _0xc516e9=a344_0xc516();let _0x5ee918=_0xc516e9[_0x198fd4];return _0x5ee918;}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x2df5b4){const _0x599152=a344_0x5ee9,_0x105ae7=[];for(const [_0x1e80cd,_0x55da98]of Object['entries'](_0x2df5b4)){if(_0x55da98===!![]){const _0x1f7e52=_0x1e80cd['replace'](/([A-Z])/g,'-$1')['toLowerCase']();_0x105ae7[_0x599152(0x1da)](_0x1f7e52);}}return _0x105ae7;}export function parseDynamicFlags(){const _0x43f012=a344_0x5ee9,_0x49af05=[];for(let _0x6e02c2=0x3;_0x6e02c2<process[_0x43f012(0x1bd)][_0x43f012(0x1ba)];_0x6e02c2++){const _0x175615=process[_0x43f012(0x1bd)][_0x6e02c2];if(_0x175615&&_0x175615['startsWith']('--')){const _0x534af5=_0x175615[_0x43f012(0x1d4)](0x2);_0x534af5&&!_0x534af5[_0x43f012(0x1cf)]('=')&&_0x49af05[_0x43f012(0x1da)](_0x534af5);}}return _0x49af05;}export function getAllProvidedFlags(_0x3f4dc9){const _0x540c2b=camelCaseFlagsToKebab(_0x3f4dc9),_0x4e2076=parseDynamicFlags(),_0x4c51a6=new Set([..._0x540c2b,..._0x4e2076]);return Array['from'](_0x4c51a6);}export function normalizeLegacyBffSaveFlags(_0x4f4974){const _0x3ac5e4=a344_0x5ee9,_0x5a21a5=new Set(_0x4f4974);return _0x5a21a5[_0x3ac5e4(0x1cb)](_0x3ac5e4(0x1d8))&&_0x5a21a5[_0x3ac5e4(0x1c8)]('enable-bff-save'),Array[_0x3ac5e4(0x1c6)](_0x5a21a5);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x446535,_0x31ffd3,_0x1a3588){const _0x5cbe36=a344_0x5ee9;logger[_0x5cbe36(0x1c5)](process[_0x5cbe36(0x1c3)]());if(_0x1a3588?.[_0x5cbe36(0x1ce)]||_0x446535===_0x5cbe36(0x1bf)){showHelp();return;}console[_0x5cbe36(0x1d2)](_0x5cbe36(0x1d9)+(_0x446535||_0x5cbe36(0x1d1))),console['log'](_0x5cbe36(0x1c0)),console[_0x5cbe36(0x1d6)]('\x20\x20'+CLI_BIN_NAME+_0x5cbe36(0x1cc)),console[_0x5cbe36(0x1d6)](''),console['log'](_0x5cbe36(0x1d0)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x5cbe36(0x1d2)](_0x5cbe36(0x1c1),'Unsupported\x20command:\x20'+_0x446535),process[_0x5cbe36(0x1b9)](0x1);}function showHelp(){const _0x560ded=a344_0x5ee9;console[_0x560ded(0x1d6)](_0x560ded(0x1db)+CLI_BIN_NAME+_0x560ded(0x1bc)+SKILLS_INSTALL_COMMAND_LINE+_0x560ded(0x1bb));}
@@ -1 +1 @@
1
- const a344_0xd1b445=a344_0x19eb;(function(_0x4c59a9,_0xace61f){const _0x1ff1e7=a344_0x19eb,_0x524989=_0x4c59a9();while(!![]){try{const _0x471a19=-parseInt(_0x1ff1e7(0x1c7))/0x1+-parseInt(_0x1ff1e7(0x1f6))/0x2+-parseInt(_0x1ff1e7(0x1cc))/0x3*(parseInt(_0x1ff1e7(0x1ef))/0x4)+parseInt(_0x1ff1e7(0x1da))/0x5+parseInt(_0x1ff1e7(0x1e1))/0x6+parseInt(_0x1ff1e7(0x1ee))/0x7+parseInt(_0x1ff1e7(0x1ea))/0x8;if(_0x471a19===_0xace61f)break;else _0x524989['push'](_0x524989['shift']());}catch(_0x1ef9e2){_0x524989['push'](_0x524989['shift']());}}}(a344_0x54ba,0xdd0a3));import{execaSync}from'execa';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills@latest';function a344_0x19eb(_0x1844c9,_0x36a0cf){_0x1844c9=_0x1844c9-0x1bf;const _0x54ba59=a344_0x54ba();let _0x19eb75=_0x54ba59[_0x1844c9];return _0x19eb75;}export const NPX_SKILLS_SUBCOMMAND_ADD=a344_0xd1b445(0x1f9);export const NPX_SKILLS_FLAG_SKILL=a344_0xd1b445(0x1c6);export const RABETBASE_SKILL_SOURCE=a344_0xd1b445(0x1d1);export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE=a344_0xd1b445(0x1e4);export function resolveGlobalSkillName(_0x50381b){const _0x380f41=a344_0xd1b445;switch(_0x50381b[_0x380f41(0x1e9)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x55c7ea){const _0x48e1d2=a344_0xd1b445,_0x237b0e=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x55c7ea&&_0x237b0e[_0x48e1d2(0x1e8)](NPX_SKILLS_FLAG_SKILL,_0x55c7ea),_0x237b0e;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a344_0xd1b445(0x1c5),...buildNpxSkillsAddArgv()][a344_0xd1b445(0x1eb)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a344_0xd1b445(0x1c5),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a344_0xd1b445(0x1eb)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x50fa95,_0x24d421,_0xcb77e2){return{'ok':![],'status':_0x24d421,'code':_0x50fa95,'error':'['+_0x50fa95+']\x20'+_0xcb77e2};}function a344_0x54ba(){const _0x279894=['filter','state','exitCode','ENOENT','checked','2352395kqajNc','absent','npm_config_global','stdio','pipe','log','skill','6002676SeHRoi','CHILD_TERMINATED','PERMISSION_DENIED','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','Skill\x20\x22','unknown','\x20failed\x20target(s)','push','trim','17085944vogfmw','join','message','present','2902865JqosuK','4DOxafI','npx\x20failed\x20to\x20start','SKILL_NOT_INSTALLED','stdout','CHILD_EXIT_NONZERO','warn','expectedSkillName','3096472lysTqP','EPERM','\x22\x20install\x20state:\x20','add','!\x20Could\x20not\x20verify\x20\x22','partialFailure','stderr','code','unverifiable','shortMessage','npx','--skill','1258657MeuoFO','NPX_NOT_FOUND','Installer\x20reported\x20','signal','EACCES','927273xkWyCb','match','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','npx\x20terminated\x20by\x20signal\x20','SPAWN_FAILED','lovrabet/rabetbase','presence','reason','INSTALL_PARTIAL'];a344_0x54ba=function(){return _0x279894;};return a344_0x54ba();}function execaOptions(_0x2760ca,_0x1755a8){const _0x15470b=a344_0xd1b445,_0x5d1b97={...process.env};return delete _0x5d1b97[_0x15470b(0x1dc)],delete _0x5d1b97['NPM_CONFIG_GLOBAL'],{'cwd':_0x2760ca,'stdio':_0x1755a8,'env':_0x5d1b97,'extendEnv':![],'shell':![],'reject':![],..._0x1755a8==='pipe'?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0x39c8a6,_0x7d2067,_0x2c0536){const _0x53a53e=a344_0xd1b445,_0x2b385b=[_0x39c8a6[_0x53a53e(0x1f2)]?String(_0x39c8a6[_0x53a53e(0x1f2)]):'',_0x39c8a6[_0x53a53e(0x1c1)]?String(_0x39c8a6[_0x53a53e(0x1c1)]):'']['filter'](Boolean)[_0x53a53e(0x1eb)]('\x0a')['trim'](),_0x246c25=_0x39c8a6[_0x53a53e(0x1d7)]??null;if(_0x39c8a6['code']){const _0x183c0b=_0x39c8a6[_0x53a53e(0x1c2)]===_0x53a53e(0x1d8)?_0x53a53e(0x1c8):_0x39c8a6[_0x53a53e(0x1c2)]===_0x53a53e(0x1f7)||_0x39c8a6[_0x53a53e(0x1c2)]===_0x53a53e(0x1cb)?_0x53a53e(0x1e3):_0x53a53e(0x1d0);return failure(_0x183c0b,_0x246c25,_0x39c8a6[_0x53a53e(0x1c4)]??_0x39c8a6[_0x53a53e(0x1ec)]??_0x39c8a6[_0x53a53e(0x1c2)]);}if(_0x39c8a6[_0x53a53e(0x1ca)])return failure(_0x53a53e(0x1e2),_0x246c25,_0x53a53e(0x1cf)+_0x39c8a6['signal']);if(_0x39c8a6['failed']&&_0x246c25===null)return failure(_0x53a53e(0x1d0),_0x246c25,_0x39c8a6[_0x53a53e(0x1c4)]??_0x39c8a6[_0x53a53e(0x1ec)]??_0x53a53e(0x1f0));if(_0x246c25!==0x0)return failure(_0x53a53e(0x1f3),_0x246c25,_0x2b385b||_0x39c8a6[_0x53a53e(0x1c4)]||'exit\x20'+(_0x246c25??_0x53a53e(0x1e6)));const _0xce2f1e=_0x7d2067?resolveInstalledSkill(_0x7d2067,_0x2c0536):undefined,_0xc418ff=_0x2b385b[_0x53a53e(0x1cd)](/Failed to install\s+(\d+)/i);if(_0xc418ff&&Number(_0xc418ff[0x1])>0x0){const _0x1456f3=_0x53a53e(0x1c9)+_0xc418ff[0x1]+_0x53a53e(0x1e7)+(_0x2b385b?':\x0a'+_0x2b385b:'');if(_0xce2f1e?.[_0x53a53e(0x1d6)]===_0x53a53e(0x1ed))return{'ok':!![],'status':0x0,'partialFailure':{'count':Number(_0xc418ff[0x1]),'output':_0x2b385b}};return failure(_0x53a53e(0x1d4),0x0,_0x1456f3);}if(_0xce2f1e){if(_0xce2f1e[_0x53a53e(0x1d6)]===_0x53a53e(0x1db))return failure(_0x53a53e(0x1f1),0x0,_0x53a53e(0x1e5)+_0x7d2067+_0x53a53e(0x1ce)+_0xce2f1e[_0x53a53e(0x1d9)][_0x53a53e(0x1eb)](',\x20')+')');_0xce2f1e['state']===_0x53a53e(0x1c3)&&console[_0x53a53e(0x1f4)](_0x53a53e(0x1bf)+_0x7d2067+_0x53a53e(0x1f8)+_0xce2f1e[_0x53a53e(0x1d3)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x487250,_0x422d97){const _0x4c7d31=a344_0xd1b445;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x57c9e8=_0x422d97?.[_0x4c7d31(0x1dd)]??'inherit',_0x3202d1=buildNpxSkillsAddArgv(_0x422d97?.[_0x4c7d31(0x1e0)]),_0x4a63fd=['npx',..._0x3202d1]['join']('\x20');console[_0x4c7d31(0x1df)]('*\x20'+_0x4a63fd);const _0x620615=execaSync(_0x4c7d31(0x1c5),_0x3202d1,execaOptions(_0x487250,_0x57c9e8));return normalizeExecaResult(_0x620615);}export function runNpxSkillsAddGlobal(_0x48ca94,_0x3805ce,_0x5ae16b){const _0x656fe0=a344_0xd1b445;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5078b2=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3805ce,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x3ee123=['npx',NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3805ce,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x656fe0(0x1eb)]('\x20');console[_0x656fe0(0x1df)]('*\x20'+_0x3ee123);const _0x3ec99d=execaSync(_0x656fe0(0x1c5),_0x5078b2,execaOptions(_0x48ca94,'pipe')),_0x322f6a=normalizeExecaResult(_0x3ec99d,_0x5ae16b?.[_0x656fe0(0x1f5)]??resolveGlobalSkillName(_0x3805ce),_0x5ae16b?.[_0x656fe0(0x1d2)]);if(_0x5ae16b?.['stdio']!==_0x656fe0(0x1de)&&!_0x322f6a[_0x656fe0(0x1c0)]){const _0x5f1094=[_0x3ec99d['stdout'],_0x3ec99d[_0x656fe0(0x1c1)]][_0x656fe0(0x1d5)](Boolean)[_0x656fe0(0x1eb)]('\x0a')[_0x656fe0(0x1e9)]();if(_0x5f1094)console[_0x656fe0(0x1df)](_0x5f1094);}return _0x322f6a;}
1
+ const a345_0x4a545f=a345_0x2dad;(function(_0x5c2497,_0x54347d){const _0x148093=a345_0x2dad,_0x1d22b0=_0x5c2497();while(!![]){try{const _0x236b7f=-parseInt(_0x148093(0x8b))/0x1+parseInt(_0x148093(0x7a))/0x2*(parseInt(_0x148093(0x9f))/0x3)+-parseInt(_0x148093(0x9c))/0x4*(-parseInt(_0x148093(0xaa))/0x5)+-parseInt(_0x148093(0x8e))/0x6+-parseInt(_0x148093(0xab))/0x7*(parseInt(_0x148093(0x94))/0x8)+parseInt(_0x148093(0xb3))/0x9*(parseInt(_0x148093(0xa3))/0xa)+-parseInt(_0x148093(0x81))/0xb*(parseInt(_0x148093(0x82))/0xc);if(_0x236b7f===_0x54347d)break;else _0x1d22b0['push'](_0x1d22b0['shift']());}catch(_0x342b3a){_0x1d22b0['push'](_0x1d22b0['shift']());}}}(a345_0x1924,0xdfe6a));import{execaSync}from'execa';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a345_0x4a545f(0x8d);export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a345_0x4a545f(0x7c);export const RABETBASE_SKILL_SOURCE=a345_0x4a545f(0x99);export const RABETBASE_GLOBAL_SKILL_NAME=a345_0x4a545f(0x9b);export const RABETBASE_SKILL_GIT_SOURCE='git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git';export function resolveGlobalSkillName(_0x1579d3){const _0x365cdb=a345_0x4a545f;switch(_0x1579d3[_0x365cdb(0xa1)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x1c2682){const _0x2c7c0d=a345_0x4a545f,_0x9ecdbf=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x1c2682&&_0x9ecdbf[_0x2c7c0d(0xb1)](NPX_SKILLS_FLAG_SKILL,_0x1c2682),_0x9ecdbf;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()][a345_0x4a545f(0x9d)]('\x20');function a345_0x1924(){const _0x4a5c11=['failed','code','skill','present','log','inherit','81335LEYDDO','98959HNUTmK','expectedSkillName','SKILL_NOT_INSTALLED','SPAWN_FAILED','pipe','Installer\x20reported\x20','push','unknown','57123jTSFfA','\x22\x20install\x20state:\x20','presence','3285286UwxsjH','message','--skill','Skill\x20\x22','shortMessage','stderr','NPX_NOT_FOUND','11qsbTHH','17541228ZyEeby','INSTALL_PARTIAL','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','CHILD_EXIT_NONZERO','partialFailure','EPERM','checked','npx','CHILD_TERMINATED','826716NEGEqk','warn','skills@latest','2745336UCMVRL','npx\x20terminated\x20by\x20signal\x20','exit\x20','reason','EACCES','npx\x20failed\x20to\x20start','104qLqOmp','signal','NPM_CONFIG_GLOBAL','ENOENT','absent','lovrabet/rabetbase','state','rabetbase','400zAEXCF','join','!\x20Could\x20not\x20verify\x20\x22','3hqqmNF','npm_config_global','trim','stdio','910yoQZde'];a345_0x1924=function(){return _0x4a5c11;};return a345_0x1924();}export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a345_0x4a545f(0x89),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function a345_0x2dad(_0x1165b6,_0x5560b9){_0x1165b6=_0x1165b6-0x79;const _0x19242b=a345_0x1924();let _0x2dad6b=_0x19242b[_0x1165b6];return _0x2dad6b;}function failure(_0x44fe15,_0x1aaa7c,_0x6f82fb){return{'ok':![],'status':_0x1aaa7c,'code':_0x44fe15,'error':'['+_0x44fe15+']\x20'+_0x6f82fb};}function execaOptions(_0x1f7065,_0x257935){const _0x2bbd3a=a345_0x4a545f,_0x3c4c9a={...process.env};return delete _0x3c4c9a[_0x2bbd3a(0xa0)],delete _0x3c4c9a[_0x2bbd3a(0x96)],{'cwd':_0x1f7065,'stdio':_0x257935,'env':_0x3c4c9a,'extendEnv':![],'shell':![],'reject':![],..._0x257935==='pipe'?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0x2cf32c,_0x338ef4,_0x15f445){const _0x233eea=a345_0x4a545f,_0x59ddd7=[_0x2cf32c['stdout']?String(_0x2cf32c['stdout']):'',_0x2cf32c[_0x233eea(0x7f)]?String(_0x2cf32c[_0x233eea(0x7f)]):'']['filter'](Boolean)[_0x233eea(0x9d)]('\x0a')[_0x233eea(0xa1)](),_0x364017=_0x2cf32c['exitCode']??null;if(_0x2cf32c[_0x233eea(0xa5)]){const _0xad5237=_0x2cf32c[_0x233eea(0xa5)]===_0x233eea(0x97)?_0x233eea(0x80):_0x2cf32c[_0x233eea(0xa5)]===_0x233eea(0x87)||_0x2cf32c[_0x233eea(0xa5)]===_0x233eea(0x92)?'PERMISSION_DENIED':_0x233eea(0xae);return failure(_0xad5237,_0x364017,_0x2cf32c[_0x233eea(0x7e)]??_0x2cf32c['message']??_0x2cf32c[_0x233eea(0xa5)]);}if(_0x2cf32c[_0x233eea(0x95)])return failure(_0x233eea(0x8a),_0x364017,_0x233eea(0x8f)+_0x2cf32c[_0x233eea(0x95)]);if(_0x2cf32c[_0x233eea(0xa4)]&&_0x364017===null)return failure(_0x233eea(0xae),_0x364017,_0x2cf32c[_0x233eea(0x7e)]??_0x2cf32c[_0x233eea(0x7b)]??_0x233eea(0x93));if(_0x364017!==0x0)return failure(_0x233eea(0x85),_0x364017,_0x59ddd7||_0x2cf32c[_0x233eea(0x7e)]||_0x233eea(0x90)+(_0x364017??_0x233eea(0xb2)));const _0x19e972=_0x338ef4?resolveInstalledSkill(_0x338ef4,_0x15f445):undefined,_0x2cb34e=_0x59ddd7['match'](/Failed to install\s+(\d+)/i);if(_0x2cb34e&&Number(_0x2cb34e[0x1])>0x0){const _0x364e20=_0x233eea(0xb0)+_0x2cb34e[0x1]+'\x20failed\x20target(s)'+(_0x59ddd7?':\x0a'+_0x59ddd7:'');if(_0x19e972?.[_0x233eea(0x9a)]===_0x233eea(0xa7))return{'ok':!![],'status':0x0,'partialFailure':{'count':Number(_0x2cb34e[0x1]),'output':_0x59ddd7}};return failure(_0x233eea(0x83),0x0,_0x364e20);}if(_0x19e972){if(_0x19e972[_0x233eea(0x9a)]===_0x233eea(0x98))return failure(_0x233eea(0xad),0x0,_0x233eea(0x7d)+_0x338ef4+_0x233eea(0x84)+_0x19e972[_0x233eea(0x88)][_0x233eea(0x9d)](',\x20')+')');_0x19e972[_0x233eea(0x9a)]==='unverifiable'&&console[_0x233eea(0x8c)](_0x233eea(0x9e)+_0x338ef4+_0x233eea(0xb4)+_0x19e972[_0x233eea(0x91)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2331ef,_0x12c1a5){const _0x2f6cac=a345_0x4a545f;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x28f607=_0x12c1a5?.['stdio']??_0x2f6cac(0xa9),_0x1516d4=buildNpxSkillsAddArgv(_0x12c1a5?.[_0x2f6cac(0xa6)]),_0x2dd424=['npx',..._0x1516d4][_0x2f6cac(0x9d)]('\x20');console[_0x2f6cac(0xa8)]('*\x20'+_0x2dd424);const _0x25f39c=execaSync('npx',_0x1516d4,execaOptions(_0x2331ef,_0x28f607));return normalizeExecaResult(_0x25f39c);}export function runNpxSkillsAddGlobal(_0x2aa788,_0x1f9d08,_0x497533){const _0x2e344a=a345_0x4a545f;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x55f842=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x1f9d08,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x276615=[_0x2e344a(0x89),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x1f9d08,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x2e344a(0x9d)]('\x20');console['log']('*\x20'+_0x276615);const _0x518f8f=execaSync(_0x2e344a(0x89),_0x55f842,execaOptions(_0x2aa788,_0x2e344a(0xaf))),_0x5a49ff=normalizeExecaResult(_0x518f8f,_0x497533?.[_0x2e344a(0xac)]??resolveGlobalSkillName(_0x1f9d08),_0x497533?.[_0x2e344a(0x79)]);if(_0x497533?.[_0x2e344a(0xa2)]!==_0x2e344a(0xaf)&&!_0x5a49ff[_0x2e344a(0x86)]){const _0x4933d6=[_0x518f8f['stdout'],_0x518f8f[_0x2e344a(0x7f)]]['filter'](Boolean)[_0x2e344a(0x9d)]('\x0a')[_0x2e344a(0xa1)]();if(_0x4933d6)console[_0x2e344a(0xa8)](_0x4933d6);}return _0x5a49ff;}
@@ -1 +1 @@
1
- const a345_0x13793c=a345_0x2c58;(function(_0x1af803,_0x13bbff){const _0x4a6093=a345_0x2c58,_0xaf66b8=_0x1af803();while(!![]){try{const _0x56b59c=parseInt(_0x4a6093(0xf3))/0x1*(-parseInt(_0x4a6093(0xd4))/0x2)+parseInt(_0x4a6093(0xe1))/0x3+-parseInt(_0x4a6093(0xd1))/0x4*(-parseInt(_0x4a6093(0xf5))/0x5)+-parseInt(_0x4a6093(0xe9))/0x6*(-parseInt(_0x4a6093(0xf2))/0x7)+-parseInt(_0x4a6093(0xe4))/0x8+-parseInt(_0x4a6093(0xdb))/0x9+parseInt(_0x4a6093(0xf0))/0xa*(parseInt(_0x4a6093(0xdd))/0xb);if(_0x56b59c===_0x13bbff)break;else _0xaf66b8['push'](_0xaf66b8['shift']());}catch(_0x37ad57){_0xaf66b8['push'](_0xaf66b8['shift']());}}}(a345_0x50e5,0xa97cd));function a345_0x50e5(){const _0xfbe9d5=['skills','49DEBBvy','843GaAXHi','version','475CkbYHT','32476CCsFCI','\x20is\x20unreadable:\x20','join','2330iEalYR','absent','SKILL.md','\x20records\x20\x22','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','message','.agents','6738570bsHPgO','not-recorded','2332748fdjVrw','present','map','kind','3989760DsbWrY','parse','object','9086744LCVnOb','\x20uses\x20unsupported\x20version\x20','utf8','reason','.claude','1069368WxyMrg','unusable','number','find','includes','unverifiable','globalSkillsDirs','10BSDIWs'];a345_0x50e5=function(){return _0xfbe9d5;};return a345_0x50e5();}function a345_0x2c58(_0x5ced0e,_0x589f49){_0x5ced0e=_0x5ced0e-0xd1;const _0x50e5c1=a345_0x50e5();let _0x2c584e=_0x50e5c1[_0x5ced0e];return _0x2c584e;}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a345_0x13793c(0xda),'.skill-lock.json');export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents','skills'),join(a345_0x13793c(0xe8),a345_0x13793c(0xf1))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x2cc9c3,_0x5870f4){const _0x2fbda0=a345_0x13793c;if(!existsSync(_0x2cc9c3))return{'kind':_0x2fbda0(0xdc)};let _0x236bc5;try{_0x236bc5=JSON[_0x2fbda0(0xe2)](readFileSync(_0x2cc9c3,_0x2fbda0(0xe6)));}catch(_0x3ce6bb){return{'kind':'unusable','reason':_0x2cc9c3+_0x2fbda0(0xd2)+_0x3ce6bb[_0x2fbda0(0xd9)]};}const _0x4a4fcc=_0x236bc5;if(typeof _0x4a4fcc?.[_0x2fbda0(0xf4)]!==_0x2fbda0(0xeb)||!SUPPORTED_LOCK_VERSIONS[_0x2fbda0(0xed)](_0x4a4fcc[_0x2fbda0(0xf4)]))return{'kind':'unusable','reason':_0x2cc9c3+_0x2fbda0(0xe5)+String(_0x4a4fcc?.['version'])};if(!_0x4a4fcc['skills']||typeof _0x4a4fcc['skills']!==_0x2fbda0(0xe3))return{'kind':_0x2fbda0(0xea),'reason':_0x2cc9c3+'\x20has\x20no\x20skills\x20map'};return _0x4a4fcc[_0x2fbda0(0xf1)][_0x5870f4]?{'kind':'recorded'}:{'kind':_0x2fbda0(0xdc)};}export function resolveInstalledSkill(_0x15f2c9,_0x19ddd6){const _0x46cd71=a345_0x13793c,_0x1dbab4=_0x19ddd6?.['home']??homedir(),_0x39147a=_0x19ddd6?.[_0x46cd71(0xef)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x46cd71(0xdf)](_0x19e76f=>join(_0x1dbab4,_0x19e76f)),_0x3dda51=_0x19ddd6?.['lockFile']??join(_0x1dbab4,SKILL_LOCK_RELATIVE_PATH),_0x2a22d0=_0x39147a['map'](_0x1195d4=>join(_0x1195d4,_0x15f2c9,_0x46cd71(0xd6))),_0x4410ac=_0x2a22d0[_0x46cd71(0xec)](_0x35b759=>existsSync(_0x35b759));if(_0x4410ac)return{'state':_0x46cd71(0xde),'path':_0x4410ac};const _0x114af0=readLockLookup(_0x3dda51,_0x15f2c9);if(_0x114af0[_0x46cd71(0xe0)]===_0x46cd71(0xea))return{'state':_0x46cd71(0xee),'reason':_0x114af0[_0x46cd71(0xe7)]};if(_0x114af0[_0x46cd71(0xe0)]==='recorded')return{'state':_0x46cd71(0xee),'reason':_0x3dda51+_0x46cd71(0xd7)+_0x15f2c9+_0x46cd71(0xd8)+('('+_0x2a22d0[_0x46cd71(0xd3)](',\x20')+')')};return{'state':_0x46cd71(0xd5),'checked':_0x2a22d0};}
1
+ const a346_0x43b92d=a346_0x3a8a;(function(_0x29b5fe,_0x4d441e){const _0x50e3f8=a346_0x3a8a,_0x353c17=_0x29b5fe();while(!![]){try{const _0x9e6336=-parseInt(_0x50e3f8(0x82))/0x1+-parseInt(_0x50e3f8(0x8d))/0x2*(-parseInt(_0x50e3f8(0x87))/0x3)+parseInt(_0x50e3f8(0x89))/0x4+-parseInt(_0x50e3f8(0x93))/0x5*(-parseInt(_0x50e3f8(0x7b))/0x6)+parseInt(_0x50e3f8(0x76))/0x7+-parseInt(_0x50e3f8(0x86))/0x8*(parseInt(_0x50e3f8(0x7d))/0x9)+-parseInt(_0x50e3f8(0x94))/0xa;if(_0x9e6336===_0x4d441e)break;else _0x353c17['push'](_0x353c17['shift']());}catch(_0x17eb88){_0x353c17['push'](_0x353c17['shift']());}}}(a346_0xd909,0x32f03));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a346_0x43b92d(0x83),a346_0x43b92d(0x84));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a346_0x43b92d(0x83),'skills'),join(a346_0x43b92d(0x80),'skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function a346_0x3a8a(_0x40d516,_0x21df61){_0x40d516=_0x40d516-0x76;const _0xd90900=a346_0xd909();let _0x3a8a45=_0xd90900[_0x40d516];return _0x3a8a45;}function a346_0xd909(){const _0x46d32b=['.claude','reason','208838QQiWVE','.agents','.skill-lock.json','unverifiable','935544fQXmDy','3vOojtY','kind','11624eOioSl','recorded','version','parse','434006wuvomc','lockFile','\x20records\x20\x22','\x20is\x20unreadable:\x20','present','\x20uses\x20unsupported\x20version\x20','1113860ZtZojn','2345980IvQVVJ','unusable','map','skills','2284387jJEhir','\x20has\x20no\x20skills\x20map','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','number','not-recorded','6OoAYuw','SKILL.md','9FrkeGz','message','utf8'];a346_0xd909=function(){return _0x46d32b;};return a346_0xd909();}function readLockLookup(_0x2983a2,_0x65ca7e){const _0x41c175=a346_0x43b92d;if(!existsSync(_0x2983a2))return{'kind':_0x41c175(0x7a)};let _0x9e74f6;try{_0x9e74f6=JSON[_0x41c175(0x8c)](readFileSync(_0x2983a2,_0x41c175(0x7f)));}catch(_0x15ba6f){return{'kind':_0x41c175(0x95),'reason':_0x2983a2+_0x41c175(0x90)+_0x15ba6f[_0x41c175(0x7e)]};}const _0x3abe80=_0x9e74f6;if(typeof _0x3abe80?.[_0x41c175(0x8b)]!==_0x41c175(0x79)||!SUPPORTED_LOCK_VERSIONS['includes'](_0x3abe80[_0x41c175(0x8b)]))return{'kind':_0x41c175(0x95),'reason':_0x2983a2+_0x41c175(0x92)+String(_0x3abe80?.[_0x41c175(0x8b)])};if(!_0x3abe80['skills']||typeof _0x3abe80[_0x41c175(0x97)]!=='object')return{'kind':'unusable','reason':_0x2983a2+_0x41c175(0x77)};return _0x3abe80[_0x41c175(0x97)][_0x65ca7e]?{'kind':_0x41c175(0x8a)}:{'kind':'not-recorded'};}export function resolveInstalledSkill(_0x5afefa,_0x4f457c){const _0x227619=a346_0x43b92d,_0x2e57bf=_0x4f457c?.['home']??homedir(),_0x2e30a7=_0x4f457c?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x227619(0x96)](_0x5f216d=>join(_0x2e57bf,_0x5f216d)),_0x5533fe=_0x4f457c?.[_0x227619(0x8e)]??join(_0x2e57bf,SKILL_LOCK_RELATIVE_PATH),_0x6b9a55=_0x2e30a7[_0x227619(0x96)](_0x248962=>join(_0x248962,_0x5afefa,_0x227619(0x7c))),_0x2808c9=_0x6b9a55['find'](_0x1069b1=>existsSync(_0x1069b1));if(_0x2808c9)return{'state':_0x227619(0x91),'path':_0x2808c9};const _0x3bea6d=readLockLookup(_0x5533fe,_0x5afefa);if(_0x3bea6d[_0x227619(0x88)]===_0x227619(0x95))return{'state':_0x227619(0x85),'reason':_0x3bea6d[_0x227619(0x81)]};if(_0x3bea6d[_0x227619(0x88)]===_0x227619(0x8a))return{'state':_0x227619(0x85),'reason':_0x5533fe+_0x227619(0x8f)+_0x5afefa+_0x227619(0x78)+('('+_0x6b9a55['join'](',\x20')+')')};return{'state':'absent','checked':_0x6b9a55};}
@@ -1 +1 @@
1
- (function(_0x17ab6c,_0x3ba2a0){const _0x5c9998=a346_0x53ae,_0x53feaf=_0x17ab6c();while(!![]){try{const _0x5dcaf9=-parseInt(_0x5c9998(0x196))/0x1*(-parseInt(_0x5c9998(0x19f))/0x2)+parseInt(_0x5c9998(0x19d))/0x3+-parseInt(_0x5c9998(0x197))/0x4+parseInt(_0x5c9998(0x193))/0x5+parseInt(_0x5c9998(0x19b))/0x6+parseInt(_0x5c9998(0x190))/0x7+-parseInt(_0x5c9998(0x1a2))/0x8;if(_0x5dcaf9===_0x3ba2a0)break;else _0x53feaf['push'](_0x53feaf['shift']());}catch(_0x3923df){_0x53feaf['push'](_0x53feaf['shift']());}}}(a346_0x51df,0xa1af3));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a346_0x53ae(_0x28f20d,_0x340d74){_0x28f20d=_0x28f20d-0x190;const _0x51df37=a346_0x51df();let _0x53ae8f=_0x51df37[_0x28f20d];return _0x53ae8f;}import{getCliVersion}from'../utils/version.js';function a346_0x51df(){const _0x3822aa=['14780624wMhadh','8871940sdcYtD','stringify','service','5302430dkvqsa','entries','message','465137fSyUSv','5073028afoWDp','rabetbase.command','command','some','5680662yVeWCe','error','114822bEnsug','durationMs','2QjmaPJ','test','flags'];a346_0x51df=function(){return _0x3822aa;};return a346_0x51df();}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x358eab){const _0x57182c=a346_0x53ae;return SENSITIVE_PATTERNS[_0x57182c(0x19a)](_0x131881=>_0x131881[_0x57182c(0x1a0)](_0x358eab));}function sanitizeFlags(_0x53b017){const _0x2091e1=a346_0x53ae,_0x13d45f={};for(const [_0x438afe,_0x2871d9]of Object[_0x2091e1(0x194)](_0x53b017)){isSensitiveKey(_0x438afe)?_0x13d45f[_0x438afe]=_0x2871d9!=null&&_0x2871d9!==''?'[REDACTED]':_0x2871d9:_0x13d45f[_0x438afe]=_0x2871d9;}return _0x13d45f;}export async function reportCommandTrace(_0x330f30){const _0x58ddf4=a346_0x53ae;try{const _0x1f2ca1=sanitizeFlags(_0x330f30[_0x58ddf4(0x1a1)]);await sendCliTraceLog({'spanName':_0x58ddf4(0x198),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x330f30[_0x58ddf4(0x192)],'command.name':_0x330f30[_0x58ddf4(0x199)],'command.flags':JSON[_0x58ddf4(0x191)](_0x1f2ca1),..._0x330f30[_0x58ddf4(0x19e)]!=null?{'command.duration_ms':_0x330f30[_0x58ddf4(0x19e)]}:{},..._0x330f30[_0x58ddf4(0x19c)]?{'command.error':_0x330f30[_0x58ddf4(0x19c)]instanceof Error?_0x330f30[_0x58ddf4(0x19c)][_0x58ddf4(0x195)]:String(_0x330f30[_0x58ddf4(0x19c)])}:{}}});}catch{}}
1
+ function a347_0x11cb(){const _0x10160f=['command','2144525zgxngR','error','128lgwzjl','3703152PhvWRi','durationMs','[REDACTED]','stringify','11886364tLkcwq','flags','16220hfKuHm','some','9IUzxpU','260XIDZIp','service','1598668PSTsby','rabetbase.command','424377albSBA','1760196LEIbdQ'];a347_0x11cb=function(){return _0x10160f;};return a347_0x11cb();}function a347_0x5669(_0x32bc5f,_0x1f7217){_0x32bc5f=_0x32bc5f-0x1bd;const _0x11cbbb=a347_0x11cb();let _0x5669b2=_0x11cbbb[_0x32bc5f];return _0x5669b2;}(function(_0x2fc398,_0x543b91){const _0x3b4647=a347_0x5669,_0x87a2b4=_0x2fc398();while(!![]){try{const _0x2aa866=parseInt(_0x3b4647(0x1c1))/0x1*(-parseInt(_0x3b4647(0x1c8))/0x2)+parseInt(_0x3b4647(0x1ca))/0x3*(-parseInt(_0x3b4647(0x1cd))/0x4)+parseInt(_0x3b4647(0x1bf))/0x5+parseInt(_0x3b4647(0x1bd))/0x6+parseInt(_0x3b4647(0x1c6))/0x7+-parseInt(_0x3b4647(0x1c2))/0x8+-parseInt(_0x3b4647(0x1cf))/0x9*(-parseInt(_0x3b4647(0x1cb))/0xa);if(_0x2aa866===_0x543b91)break;else _0x87a2b4['push'](_0x87a2b4['shift']());}catch(_0x1d5f2e){_0x87a2b4['push'](_0x87a2b4['shift']());}}}(a347_0x11cb,0xe7096));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x565674){const _0x4709a9=a347_0x5669;return SENSITIVE_PATTERNS[_0x4709a9(0x1c9)](_0x2a0a7f=>_0x2a0a7f['test'](_0x565674));}function sanitizeFlags(_0x5013be){const _0x1f68da=a347_0x5669,_0x4f9172={};for(const [_0x554644,_0x34425d]of Object['entries'](_0x5013be)){isSensitiveKey(_0x554644)?_0x4f9172[_0x554644]=_0x34425d!=null&&_0x34425d!==''?_0x1f68da(0x1c4):_0x34425d:_0x4f9172[_0x554644]=_0x34425d;}return _0x4f9172;}export async function reportCommandTrace(_0x36844d){const _0x3a40a7=a347_0x5669;try{const _0x1ef966=sanitizeFlags(_0x36844d[_0x3a40a7(0x1c7)]);await sendCliTraceLog({'spanName':_0x3a40a7(0x1ce),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x36844d[_0x3a40a7(0x1cc)],'command.name':_0x36844d[_0x3a40a7(0x1be)],'command.flags':JSON[_0x3a40a7(0x1c5)](_0x1ef966),..._0x36844d[_0x3a40a7(0x1c3)]!=null?{'command.duration_ms':_0x36844d[_0x3a40a7(0x1c3)]}:{},..._0x36844d['error']?{'command.error':_0x36844d[_0x3a40a7(0x1c0)]instanceof Error?_0x36844d[_0x3a40a7(0x1c0)]['message']:String(_0x36844d[_0x3a40a7(0x1c0)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a347_0x405b(_0xa9e2b5,_0x595980){_0xa9e2b5=_0xa9e2b5-0x72;var _0x4f59cf=a347_0x4f59();var _0x405b52=_0x4f59cf[_0xa9e2b5];return _0x405b52;}(function(_0x2e50da,_0x3a935e){var _0x5963f2=a347_0x405b,_0x5a984a=_0x2e50da();while(!![]){try{var _0x3857fd=-parseInt(_0x5963f2(0x72))/0x1*(parseInt(_0x5963f2(0x7c))/0x2)+parseInt(_0x5963f2(0x7b))/0x3+-parseInt(_0x5963f2(0x7a))/0x4*(-parseInt(_0x5963f2(0x79))/0x5)+parseInt(_0x5963f2(0x7d))/0x6*(parseInt(_0x5963f2(0x78))/0x7)+-parseInt(_0x5963f2(0x76))/0x8+-parseInt(_0x5963f2(0x77))/0x9+parseInt(_0x5963f2(0x75))/0xa;if(_0x3857fd===_0x3a935e)break;else _0x5a984a['push'](_0x5a984a['shift']());}catch(_0x4be6fb){_0x5a984a['push'](_0x5a984a['shift']());}}}(a347_0x4f59,0x2f91f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a347_0x4f59(){var _0x1f02f5=['14GycuOt','5zzCJQD','747484seGkSn','40449eeceNx','2842HmHaYi','380748ERKPKk','Failed\x20to\x20report\x20CLI\x20help\x20trace:','12JCzoJP','service','cli.help','1446530ZgQktc','100544eOxvda','2227104PjmmCb'];a347_0x4f59=function(){return _0x1f02f5;};return a347_0x4f59();}export async function reportCliHelpTrace(_0x1154eb,_0x2f16bc){var _0x5333a7=a347_0x405b;try{await sendCliTraceLog({'spanName':_0x5333a7(0x74),'logData':{'rabetbase.help.kind':_0x1154eb,..._0x2f16bc?.[_0x5333a7(0x73)]&&{'rabetbase.help.service':_0x2f16bc['service']}}});}catch(_0x78971f){console['error'](_0x5333a7(0x7e),_0x78971f);}}
1
+ (function(_0x16bf64,_0x2b860c){var _0x55073e=a348_0x1681,_0x545d3e=_0x16bf64();while(!![]){try{var _0x5b4a60=-parseInt(_0x55073e(0x15b))/0x1*(parseInt(_0x55073e(0x15c))/0x2)+-parseInt(_0x55073e(0x158))/0x3*(-parseInt(_0x55073e(0x160))/0x4)+-parseInt(_0x55073e(0x154))/0x5+-parseInt(_0x55073e(0x15a))/0x6*(-parseInt(_0x55073e(0x15e))/0x7)+parseInt(_0x55073e(0x156))/0x8+-parseInt(_0x55073e(0x15f))/0x9+parseInt(_0x55073e(0x155))/0xa;if(_0x5b4a60===_0x2b860c)break;else _0x545d3e['push'](_0x545d3e['shift']());}catch(_0x2619b7){_0x545d3e['push'](_0x545d3e['shift']());}}}(a348_0x356a,0x723f2));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x521fd3,_0x32146e){var _0x4a1821=a348_0x1681;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x521fd3,..._0x32146e?.[_0x4a1821(0x157)]&&{'rabetbase.help.service':_0x32146e[_0x4a1821(0x157)]}}});}catch(_0x409280){console[_0x4a1821(0x159)](_0x4a1821(0x15d),_0x409280);}}function a348_0x1681(_0x3dff98,_0x41323d){_0x3dff98=_0x3dff98-0x154;var _0x356a23=a348_0x356a();var _0x1681f3=_0x356a23[_0x3dff98];return _0x1681f3;}function a348_0x356a(){var _0x4e9ae4=['5859816NPcIWv','service','3LEwGoH','error','342NHjJYO','21eKfVBE','69926WZMANO','Failed\x20to\x20report\x20CLI\x20help\x20trace:','10031VLKiNY','2643876WVdQlx','2920048bdNBIm','2841725NNNngK','5201160nvPPbg'];a348_0x356a=function(){return _0x4e9ae4;};return a348_0x356a();}
@@ -1 +1 @@
1
- (function(_0x5abece,_0x287495){const _0x431fe8=a348_0x1b9c,_0xf31296=_0x5abece();while(!![]){try{const _0x4a3115=-parseInt(_0x431fe8(0x17d))/0x1*(-parseInt(_0x431fe8(0x17e))/0x2)+-parseInt(_0x431fe8(0x183))/0x3*(-parseInt(_0x431fe8(0x176))/0x4)+-parseInt(_0x431fe8(0x180))/0x5+-parseInt(_0x431fe8(0x171))/0x6*(-parseInt(_0x431fe8(0x172))/0x7)+-parseInt(_0x431fe8(0x177))/0x8*(parseInt(_0x431fe8(0x17a))/0x9)+parseInt(_0x431fe8(0x17f))/0xa+parseInt(_0x431fe8(0x173))/0xb*(-parseInt(_0x431fe8(0x182))/0xc);if(_0x4a3115===_0x287495)break;else _0xf31296['push'](_0xf31296['shift']());}catch(_0x448cfc){_0xf31296['push'](_0xf31296['shift']());}}}(a348_0x4c0d,0xc8d03));function a348_0x1b9c(_0xac5dad,_0x186ee8){_0xac5dad=_0xac5dad-0x171;const _0x4c0d3d=a348_0x4c0d();let _0x1b9c13=_0x4c0d3d[_0xac5dad];return _0x1b9c13;}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a348_0x4c0d(){const _0x2882a2=['31737qaFGmk','6ykkCQN','6592754Jrmijn','1111HnqqDB','user','username','436TbfvdL','144nxKHyK','email','daily','207171kfppKA','nickname','production','116989hCRJKo','2gaccgY','3943550XCgoqy','5783995uRzAYi','tenant','25260wHVBWX'];a348_0x4c0d=function(){return _0x2882a2;};return a348_0x4c0d();}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 _0x35e333=a348_0x1b9c,_0x3e883f=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0xdc3a7a=_0x3e883f?.[_0x35e333(0x174)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x35e333(0x179):_0x35e333(0x17c))}),setUserContext({'id':_0xdc3a7a?.['id'],'username':_0xdc3a7a?.[_0x35e333(0x175)],'nickname':_0xdc3a7a?.[_0x35e333(0x17b)],'email':_0xdc3a7a?.[_0x35e333(0x178)],'tenantCode':_0xdc3a7a?.[_0x35e333(0x181)]?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x3e883f;}
1
+ (function(_0x2c1e72,_0x5b5a1b){const _0x44aa00=a349_0x249b,_0xaf4952=_0x2c1e72();while(!![]){try{const _0x235497=parseInt(_0x44aa00(0x190))/0x1*(parseInt(_0x44aa00(0x196))/0x2)+parseInt(_0x44aa00(0x19d))/0x3+parseInt(_0x44aa00(0x19c))/0x4*(-parseInt(_0x44aa00(0x195))/0x5)+parseInt(_0x44aa00(0x198))/0x6+-parseInt(_0x44aa00(0x194))/0x7+-parseInt(_0x44aa00(0x19b))/0x8*(parseInt(_0x44aa00(0x193))/0x9)+-parseInt(_0x44aa00(0x191))/0xa;if(_0x235497===_0x5b5a1b)break;else _0xaf4952['push'](_0xaf4952['shift']());}catch(_0x1347c0){_0xaf4952['push'](_0xaf4952['shift']());}}}(a349_0x4b4a,0x728d8));function a349_0x249b(_0x27535a,_0x2b6f1d){_0x27535a=_0x27535a-0x190;const _0x4b4a2b=a349_0x4b4a();let _0x249bc6=_0x4b4a2b[_0x27535a];return _0x249bc6;}function a349_0x4b4a(){const _0x581ae3=['4254450svnQhf','username','7563285lqyPCi','403235vuhyob','5YCiBuH','31288CRaZre','tenant','4550082OZjRye','user','production','8RXlktv','1174832hKVwiZ','1261896mlXsSK','58AvOKAK'];a349_0x4b4a=function(){return _0x581ae3;};return a349_0x4b4a();}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 _0x12ffea=a349_0x249b,_0x4b4678=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x4ac94f=_0x4b4678?.[_0x12ffea(0x199)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x12ffea(0x19a))}),setUserContext({'id':_0x4ac94f?.['id'],'username':_0x4ac94f?.[_0x12ffea(0x192)],'nickname':_0x4ac94f?.['nickname'],'email':_0x4ac94f?.['email'],'tenantCode':_0x4ac94f?.[_0x12ffea(0x197)]?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x4b4678;}
@@ -1 +1 @@
1
- (function(_0x9899cd,_0x293647){const _0x5baeb7=a349_0x5341,_0x5aaaaa=_0x9899cd();while(!![]){try{const _0x3353fe=-parseInt(_0x5baeb7(0x1be))/0x1*(parseInt(_0x5baeb7(0x1bf))/0x2)+-parseInt(_0x5baeb7(0x1c5))/0x3+-parseInt(_0x5baeb7(0x1b9))/0x4+-parseInt(_0x5baeb7(0x1c8))/0x5*(parseInt(_0x5baeb7(0x1c6))/0x6)+parseInt(_0x5baeb7(0x1c0))/0x7*(-parseInt(_0x5baeb7(0x1c4))/0x8)+-parseInt(_0x5baeb7(0x1c3))/0x9*(parseInt(_0x5baeb7(0x1bc))/0xa)+-parseInt(_0x5baeb7(0x1bb))/0xb*(-parseInt(_0x5baeb7(0x1ba))/0xc);if(_0x3353fe===_0x293647)break;else _0x5aaaaa['push'](_0x5aaaaa['shift']());}catch(_0x2ed43f){_0x5aaaaa['push'](_0x5aaaaa['shift']());}}}(a349_0x5667,0xecb78));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a349_0x5667(){const _0x25c00b=['once','8135937DZZGhV','24VQKAUT','5603868VMFdRB','8214IHrHTb','SIGINT','145wIbExw','SIGTERM','339856VLxYqN','1812Dlfiiy','373978pWWyju','10JtuauH','beforeExit','540743UBuWEw','4UbtlRO','434014jSlYBd','exit'];a349_0x5667=function(){return _0x25c00b;};return a349_0x5667();}function a349_0x5341(_0x23e34e,_0x5f4320){_0x23e34e=_0x23e34e-0x1b9;const _0x56673b=a349_0x5667();let _0x5341e0=_0x56673b[_0x23e34e];return _0x5341e0;}export function registerOtelShutdownOnExit(){const _0x1ef796=a349_0x5341;process[_0x1ef796(0x1c2)](_0x1ef796(0x1bd),()=>{void flushOtelNodeIfUsed();});const _0x1104fe=()=>{const _0xfebf95=_0x1ef796;void flushOtelNodeIfUsed()['then'](()=>process[_0xfebf95(0x1c1)](0x0));};process[_0x1ef796(0x1c2)](_0x1ef796(0x1c7),_0x1104fe),process[_0x1ef796(0x1c2)](_0x1ef796(0x1c9),_0x1104fe);}export async function exitWithOtelShutdown(_0x2c7831){const _0x3e4ea6=a349_0x5341;await flushOtelNodeIfUsed(),process[_0x3e4ea6(0x1c1)](_0x2c7831);}
1
+ (function(_0x267e56,_0x380108){const _0x20748d=a350_0x5348,_0x2fda0f=_0x267e56();while(!![]){try{const _0x479071=-parseInt(_0x20748d(0x161))/0x1+parseInt(_0x20748d(0x15d))/0x2*(-parseInt(_0x20748d(0x165))/0x3)+parseInt(_0x20748d(0x16a))/0x4+parseInt(_0x20748d(0x160))/0x5+parseInt(_0x20748d(0x164))/0x6+-parseInt(_0x20748d(0x166))/0x7+parseInt(_0x20748d(0x167))/0x8*(-parseInt(_0x20748d(0x163))/0x9);if(_0x479071===_0x380108)break;else _0x2fda0f['push'](_0x2fda0f['shift']());}catch(_0x1b0b4c){_0x2fda0f['push'](_0x2fda0f['shift']());}}}(a350_0x2b31,0x26838));function a350_0x5348(_0x57ba74,_0x17e7c8){_0x57ba74=_0x57ba74-0x15c;const _0x2b31eb=a350_0x2b31();let _0x53483a=_0x2b31eb[_0x57ba74];return _0x53483a;}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a350_0x2b31(){const _0x448ed7=['SIGTERM','SIGINT','1040350XbWFyi','136642DaiJel','once','1494ZtrcBA','853788JHdAjM','3LoUgzE','1034187uittKG','40xGiSUR','then','exit','730272YXHPtC','beforeExit','179942nfVwuu'];a350_0x2b31=function(){return _0x448ed7;};return a350_0x2b31();}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x3e10a0=a350_0x5348;process[_0x3e10a0(0x162)](_0x3e10a0(0x15c),()=>{void flushOtelNodeIfUsed();});const _0x44c7af=()=>{const _0x50900b=_0x3e10a0;void flushOtelNodeIfUsed()[_0x50900b(0x168)](()=>process[_0x50900b(0x169)](0x0));};process[_0x3e10a0(0x162)](_0x3e10a0(0x15f),_0x44c7af),process[_0x3e10a0(0x162)](_0x3e10a0(0x15e),_0x44c7af);}export async function exitWithOtelShutdown(_0x3f1945){const _0x4a4515=a350_0x5348;await flushOtelNodeIfUsed(),process[_0x4a4515(0x169)](_0x3f1945);}
@@ -1 +1 @@
1
- function a350_0x4da2(_0x147cd5,_0x220c86){_0x147cd5=_0x147cd5-0x1e1;const _0x350783=a350_0x3507();let _0x4da2b8=_0x350783[_0x147cd5];return _0x4da2b8;}const a350_0x2f7f56=a350_0x4da2;(function(_0x302e0d,_0x15b9a5){const _0x74fc96=a350_0x4da2,_0x3bb611=_0x302e0d();while(!![]){try{const _0x1f02ae=parseInt(_0x74fc96(0x1e5))/0x1+parseInt(_0x74fc96(0x1ed))/0x2+-parseInt(_0x74fc96(0x1e9))/0x3*(parseInt(_0x74fc96(0x1ea))/0x4)+parseInt(_0x74fc96(0x1e1))/0x5+-parseInt(_0x74fc96(0x1ec))/0x6*(-parseInt(_0x74fc96(0x1e7))/0x7)+-parseInt(_0x74fc96(0x1e2))/0x8+-parseInt(_0x74fc96(0x1e3))/0x9;if(_0x1f02ae===_0x15b9a5)break;else _0x3bb611['push'](_0x3bb611['shift']());}catch(_0x2d7a9f){_0x3bb611['push'](_0x3bb611['shift']());}}}(a350_0x3507,0x7d188));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=a350_0x2f7f56(0x1e8);export async function sendCliTraceLog(_0x4b837d){const _0x291935=a350_0x2f7f56;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x4b837d[_0x291935(0x1ef)]??DEFAULT_TRACE_NAME,'version':_0x4b837d[_0x291935(0x1e6)]??getCliVersion(),'spanName':_0x4b837d[_0x291935(0x1e4)],'eventType':_0x291935(0x1eb),'logData':_0x4b837d['logData'],..._0x4b837d[_0x291935(0x1ee)]&&{'traceparent':_0x4b837d[_0x291935(0x1ee)]}});}function a350_0x3507(){const _0x1c1294=['9675369YrSlWX','spanName','734482lPPkWe','version','1910153lKKHoB','rabetbase-cli','60qbcUJC','125096rAHqvp','manual','12aBDKEd','1577972xxApBF','traceparent','traceName','3995630GPHYVj','5243512NLOcbZ'];a350_0x3507=function(){return _0x1c1294;};return a350_0x3507();}
1
+ function a351_0x57ae(_0x44037d,_0x530a37){_0x44037d=_0x44037d-0x1b0;const _0x2391af=a351_0x2391();let _0x57ae9a=_0x2391af[_0x44037d];return _0x57ae9a;}const a351_0x5a4ff3=a351_0x57ae;(function(_0x229195,_0x481404){const _0x5f23fe=a351_0x57ae,_0x58cc65=_0x229195();while(!![]){try{const _0xaded58=parseInt(_0x5f23fe(0x1b8))/0x1+-parseInt(_0x5f23fe(0x1bf))/0x2*(parseInt(_0x5f23fe(0x1bc))/0x3)+-parseInt(_0x5f23fe(0x1b6))/0x4+-parseInt(_0x5f23fe(0x1b1))/0x5*(-parseInt(_0x5f23fe(0x1c0))/0x6)+-parseInt(_0x5f23fe(0x1c2))/0x7*(parseInt(_0x5f23fe(0x1ba))/0x8)+-parseInt(_0x5f23fe(0x1b2))/0x9*(parseInt(_0x5f23fe(0x1b5))/0xa)+-parseInt(_0x5f23fe(0x1b9))/0xb*(-parseInt(_0x5f23fe(0x1be))/0xc);if(_0xaded58===_0x481404)break;else _0x58cc65['push'](_0x58cc65['shift']());}catch(_0x58b5c3){_0x58cc65['push'](_0x58cc65['shift']());}}}(a351_0x2391,0xd8cbd));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=a351_0x5a4ff3(0x1b0);function a351_0x2391(){const _0x45a647=['traceparent','1724359NOfbxo','rabetbase-cli','5NyYALl','27kDoxOD','logData','traceName','1826230XyvRgE','367520OgTFeN','version','562945kLzKYr','22AoKxGL','48jYrjkr','manual','3ResLjp','spanName','22115952UHzOXF','3340430aytOZe','2562276QlvzJf'];a351_0x2391=function(){return _0x45a647;};return a351_0x2391();}export async function sendCliTraceLog(_0x57e810){const _0x109622=a351_0x5a4ff3;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x57e810[_0x109622(0x1b4)]??DEFAULT_TRACE_NAME,'version':_0x57e810[_0x109622(0x1b7)]??getCliVersion(),'spanName':_0x57e810[_0x109622(0x1bd)],'eventType':_0x109622(0x1bb),'logData':_0x57e810[_0x109622(0x1b3)],..._0x57e810['traceparent']&&{'traceparent':_0x57e810[_0x109622(0x1c1)]}});}
@@ -1 +1 @@
1
- const a351_0x35e0d6=a351_0xdfe2;(function(_0x2e6929,_0x370f2e){const _0x38256d=a351_0xdfe2,_0x41a057=_0x2e6929();while(!![]){try{const _0x4079cf=parseInt(_0x38256d(0x1f4))/0x1*(-parseInt(_0x38256d(0x1f3))/0x2)+-parseInt(_0x38256d(0x1f2))/0x3+-parseInt(_0x38256d(0x1eb))/0x4+-parseInt(_0x38256d(0x1e7))/0x5+-parseInt(_0x38256d(0x1ea))/0x6+parseInt(_0x38256d(0x1e9))/0x7+-parseInt(_0x38256d(0x1e5))/0x8*(-parseInt(_0x38256d(0x1ed))/0x9);if(_0x4079cf===_0x370f2e)break;else _0x41a057['push'](_0x41a057['shift']());}catch(_0x5b6f62){_0x41a057['push'](_0x41a057['shift']());}}}(a351_0x2479,0x7f4ea));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a351_0x35e0d6(0x1ef);function a351_0xdfe2(_0x173916,_0x5d1645){_0x173916=_0x173916-0x1e4;const _0x2479b2=a351_0x2479();let _0xdfe272=_0x2479b2[_0x173916];return _0xdfe272;}export const PLATFORM_ISSUE_SPAN_NAME=a351_0x35e0d6(0x1f0);export async function sendPlatformIssueCollectLog(_0xfed9fa){const _0x3b2310=a351_0x35e0d6;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0xfed9fa[_0x3b2310(0x1e8)],'issue.description':_0xfed9fa['description'],..._0xfed9fa[_0x3b2310(0x1e6)]?{'issue.description_original_bytes':_0xfed9fa['sanitize'][_0x3b2310(0x1f1)],'issue.description_truncated':_0xfed9fa[_0x3b2310(0x1e6)]['truncated'],'issue.description_redactions':_0xfed9fa[_0x3b2310(0x1e6)][_0x3b2310(0x1ee)],'issue.description_redaction_kinds':_0xfed9fa['sanitize'][_0x3b2310(0x1e4)][_0x3b2310(0x1ec)](',')}:{}}});}function a351_0x2479(){const _0x3693db=['platform-issue-log-collect','issue.log.collect','originalBytes','2972205XUphIo','1262WjFNrQ','499TjeEIw','redactionKinds','8499424EKpedR','sanitize','4719510UzSbJx','title','901152OLyIej','5119140GcHrPH','3017208FLlqor','join','36JkIgFD','redactionCount'];a351_0x2479=function(){return _0x3693db;};return a351_0x2479();}
1
+ const a352_0x10202b=a352_0x3142;function a352_0x3440(){const _0x15fc19=['title','2423245rGUBrC','originalBytes','8RzfsoE','2676195qolaTJ','redactionCount','2BkOCYp','1109999krFHJy','11xoPuPt','sanitize','6IqONxt','248IqYGPb','join','issue.log.collect','70002ibHPwi','10765260xOUHth','truncated','description','2886506vLRUiy','64665816ccBsvO'];a352_0x3440=function(){return _0x15fc19;};return a352_0x3440();}(function(_0x3e46ed,_0x1e61e4){const _0x2fdcd8=a352_0x3142,_0x49b5bf=_0x3e46ed();while(!![]){try{const _0x4dbdba=-parseInt(_0x2fdcd8(0xb8))/0x1+-parseInt(_0x2fdcd8(0xb7))/0x2*(parseInt(_0x2fdcd8(0xb5))/0x3)+-parseInt(_0x2fdcd8(0xb4))/0x4*(parseInt(_0x2fdcd8(0xb2))/0x5)+parseInt(_0x2fdcd8(0xbb))/0x6*(-parseInt(_0x2fdcd8(0xc3))/0x7)+-parseInt(_0x2fdcd8(0xbc))/0x8*(parseInt(_0x2fdcd8(0xbf))/0x9)+-parseInt(_0x2fdcd8(0xc0))/0xa+parseInt(_0x2fdcd8(0xb9))/0xb*(parseInt(_0x2fdcd8(0xb0))/0xc);if(_0x4dbdba===_0x1e61e4)break;else _0x49b5bf['push'](_0x49b5bf['shift']());}catch(_0x3f5070){_0x49b5bf['push'](_0x49b5bf['shift']());}}}(a352_0x3440,0xa7d5e));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=a352_0x10202b(0xbe);function a352_0x3142(_0x4a8f16,_0x36ab9a){_0x4a8f16=_0x4a8f16-0xb0;const _0x3440ed=a352_0x3440();let _0x31423f=_0x3440ed[_0x4a8f16];return _0x31423f;}export async function sendPlatformIssueCollectLog(_0x4b5424){const _0x57302f=a352_0x10202b;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4b5424[_0x57302f(0xb1)],'issue.description':_0x4b5424[_0x57302f(0xc2)],..._0x4b5424[_0x57302f(0xba)]?{'issue.description_original_bytes':_0x4b5424[_0x57302f(0xba)][_0x57302f(0xb3)],'issue.description_truncated':_0x4b5424[_0x57302f(0xba)][_0x57302f(0xc1)],'issue.description_redactions':_0x4b5424['sanitize'][_0x57302f(0xb6)],'issue.description_redaction_kinds':_0x4b5424[_0x57302f(0xba)]['redactionKinds'][_0x57302f(0xbd)](',')}:{}}});}
@@ -1 +1 @@
1
- const a353_0x2f555a=a353_0x1bc6;(function(_0x12945b,_0x1ab679){const _0x4ba4f4=a353_0x1bc6,_0x5c00dd=_0x12945b();while(!![]){try{const _0xd1b071=-parseInt(_0x4ba4f4(0xa3))/0x1+-parseInt(_0x4ba4f4(0xb1))/0x2+-parseInt(_0x4ba4f4(0xc4))/0x3+parseInt(_0x4ba4f4(0xb3))/0x4+-parseInt(_0x4ba4f4(0xa4))/0x5+parseInt(_0x4ba4f4(0xac))/0x6*(parseInt(_0x4ba4f4(0xbf))/0x7)+-parseInt(_0x4ba4f4(0xb5))/0x8*(-parseInt(_0x4ba4f4(0xc7))/0x9);if(_0xd1b071===_0x1ab679)break;else _0x5c00dd['push'](_0x5c00dd['shift']());}catch(_0x2f8b63){_0x5c00dd['push'](_0x5c00dd['shift']());}}}(a353_0x36ea,0x1e099));export const CORE_IDE_CONFIGS={'cursor':{'name':a353_0x2f555a(0x9d),'description':a353_0x2f555a(0xba),'folders':[a353_0x2f555a(0xd3),a353_0x2f555a(0x9e)],'files':[{'type':a353_0x2f555a(0xcb),'path':a353_0x2f555a(0xcd)}]},'windsurf':{'name':a353_0x2f555a(0xad),'description':a353_0x2f555a(0xa0),'folders':[a353_0x2f555a(0xa8)],'files':[{'type':a353_0x2f555a(0xcb),'path':'.windsurf/workflows/rabetbase.md'}]},'claude':{'name':'Claude\x20Code','description':a353_0x2f555a(0x9f),'folders':[a353_0x2f555a(0xc9)],'files':[{'type':a353_0x2f555a(0xcb),'path':a353_0x2f555a(0xc2)}]},'cline':{'name':a353_0x2f555a(0xb0),'description':a353_0x2f555a(0xd1),'folders':[a353_0x2f555a(0xca)],'files':[{'type':a353_0x2f555a(0xcb),'path':a353_0x2f555a(0xb4)}]},'codex':{'name':a353_0x2f555a(0xa2),'description':'Codex\x20IDE','folders':[a353_0x2f555a(0xa5)],'files':[{'type':a353_0x2f555a(0xcb),'path':a353_0x2f555a(0xaa)}]},'opencode':{'name':a353_0x2f555a(0xc0),'description':'OpenCode\x20IDE','folders':['.opencode'],'files':[{'type':'file','path':a353_0x2f555a(0xce)}]},'qoder':{'name':a353_0x2f555a(0xa6),'description':'Qoder\x20IDE','folders':['.qoder'],'files':[{'type':a353_0x2f555a(0xcb),'path':a353_0x2f555a(0xc1)},{'type':a353_0x2f555a(0xcb),'path':a353_0x2f555a(0xcc)}]},'codebuddy':{'name':a353_0x2f555a(0xbe),'description':a353_0x2f555a(0xc8),'folders':[a353_0x2f555a(0xb9)],'files':[{'type':a353_0x2f555a(0xcb),'path':a353_0x2f555a(0xc3)}]},'trae':{'name':a353_0x2f555a(0xbc),'description':a353_0x2f555a(0xae),'folders':[a353_0x2f555a(0xa7)],'files':[{'type':a353_0x2f555a(0xcb),'path':'.trae/skills/lovrabet/SKILL.md'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'Other\x20(generic\x20template)','description':a353_0x2f555a(0xa1),'folders':['.agent'],'files':[{'type':a353_0x2f555a(0xcb),'path':a353_0x2f555a(0xbb)}]},'antigravity':{'name':a353_0x2f555a(0xb8),'description':a353_0x2f555a(0xd2),'folders':['.agent'],'files':[{'type':'file','path':a353_0x2f555a(0xbb)}]}};export const CORE_IDE_LIST=[a353_0x2f555a(0xc5),a353_0x2f555a(0xc6),'codebuddy',a353_0x2f555a(0xa9),'cursor',a353_0x2f555a(0xd0),a353_0x2f555a(0xb6),a353_0x2f555a(0xcf),a353_0x2f555a(0xb2)];export const IDE_LIST=[a353_0x2f555a(0xbd),a353_0x2f555a(0xc5),a353_0x2f555a(0xc6),a353_0x2f555a(0xab),a353_0x2f555a(0xa9),a353_0x2f555a(0xaf),a353_0x2f555a(0xd0),a353_0x2f555a(0xb6),a353_0x2f555a(0xcf),a353_0x2f555a(0xb2),a353_0x2f555a(0xb7)];function a353_0x36ea(){const _0xa77e93=['Windsurf\x20IDE','Generic\x20template\x20fallback','Codex','100964BlWzWO','160380cwlEQg','.codex','Qoder','.trae','.windsurf','codex','.codex/skills/lovrabet/SKILL.md','codebuddy','12EWpDMx','Windsurf','Trae\x20IDE','cursor','Cline','159820jUlejR','windsurf','751784dHXkjm','.cline/skills/lovrabet/SKILL.md','149936qBujNt','qoder','agent','Antigravity','.codebuddy','Cursor\x20IDE','.agent/skills/lovrabet/SKILL.md','Trae','antigravity','CodeBuddy','276297PeQeym','OpenCode','.qoder/rules/rabetbase.md','.claude/skills/lovrabet/SKILL.md','.codebuddy/skills/lovrabet/SKILL.md','17619ByfkRG','claude','cline','36UqiYOd','CodeBuddy\x20IDE','.claude','.cline','file','.qoder/skills/lovrabet/SKILL.md','.cursor/skills/rabetbase.md','.opencode/skills/lovrabet/SKILL.md','trae','opencode','Cline\x20IDE','Antigravity\x20IDE','.cursorrules','Cursor','.cursor','Claude\x20Code'];a353_0x36ea=function(){return _0xa77e93;};return a353_0x36ea();}function a353_0x1bc6(_0x2e9c50,_0xce0e92){_0x2e9c50=_0x2e9c50-0x9d;const _0x36ea24=a353_0x36ea();let _0x1bc646=_0x36ea24[_0x2e9c50];return _0x1bc646;}export const ALL_CORE_IDES=[a353_0x2f555a(0xaf),a353_0x2f555a(0xb2),a353_0x2f555a(0xc5),a353_0x2f555a(0xc6),a353_0x2f555a(0xa9),a353_0x2f555a(0xd0),a353_0x2f555a(0xb6),a353_0x2f555a(0xab),a353_0x2f555a(0xcf)];
1
+ function a354_0x571c(_0x5eda81,_0x3f8b43){_0x5eda81=_0x5eda81-0xd0;const _0x3ee994=a354_0x3ee9();let _0x571c67=_0x3ee994[_0x5eda81];return _0x571c67;}const a354_0x3a667a=a354_0x571c;(function(_0x5d89bf,_0x4e86e3){const _0x4894ac=a354_0x571c,_0x199fd4=_0x5d89bf();while(!![]){try{const _0x22eeb2=parseInt(_0x4894ac(0xdb))/0x1*(-parseInt(_0x4894ac(0x103))/0x2)+parseInt(_0x4894ac(0x106))/0x3+-parseInt(_0x4894ac(0xe3))/0x4+-parseInt(_0x4894ac(0x101))/0x5*(parseInt(_0x4894ac(0xf9))/0x6)+parseInt(_0x4894ac(0x102))/0x7*(-parseInt(_0x4894ac(0xe8))/0x8)+parseInt(_0x4894ac(0xf3))/0x9+parseInt(_0x4894ac(0xff))/0xa;if(_0x22eeb2===_0x4e86e3)break;else _0x199fd4['push'](_0x199fd4['shift']());}catch(_0x13492b){_0x199fd4['push'](_0x199fd4['shift']());}}}(a354_0x3ee9,0x677a1));export const CORE_IDE_CONFIGS={'cursor':{'name':a354_0x3a667a(0xd9),'description':a354_0x3a667a(0xfb),'folders':[a354_0x3a667a(0x105),a354_0x3a667a(0xea)],'files':[{'type':a354_0x3a667a(0xf7),'path':a354_0x3a667a(0xec)}]},'windsurf':{'name':a354_0x3a667a(0xe1),'description':'Windsurf\x20IDE','folders':[a354_0x3a667a(0xfd)],'files':[{'type':a354_0x3a667a(0xf7),'path':a354_0x3a667a(0xdd)}]},'claude':{'name':a354_0x3a667a(0xda),'description':a354_0x3a667a(0xda),'folders':['.claude'],'files':[{'type':a354_0x3a667a(0xf7),'path':a354_0x3a667a(0xe7)}]},'cline':{'name':a354_0x3a667a(0xe6),'description':a354_0x3a667a(0xe0),'folders':[a354_0x3a667a(0xd6)],'files':[{'type':'file','path':a354_0x3a667a(0xe2)}]},'codex':{'name':a354_0x3a667a(0xd7),'description':'Codex\x20IDE','folders':[a354_0x3a667a(0xee)],'files':[{'type':'file','path':'.codex/skills/lovrabet/SKILL.md'}]},'opencode':{'name':a354_0x3a667a(0xd4),'description':a354_0x3a667a(0xe9),'folders':[a354_0x3a667a(0xf5)],'files':[{'type':'file','path':a354_0x3a667a(0xf1)}]},'qoder':{'name':a354_0x3a667a(0xf0),'description':'Qoder\x20IDE','folders':[a354_0x3a667a(0xd3)],'files':[{'type':a354_0x3a667a(0xf7),'path':'.qoder/rules/rabetbase.md'},{'type':a354_0x3a667a(0xf7),'path':'.qoder/skills/lovrabet/SKILL.md'}]},'codebuddy':{'name':'CodeBuddy','description':a354_0x3a667a(0xe4),'folders':[a354_0x3a667a(0xdc)],'files':[{'type':a354_0x3a667a(0xf7),'path':a354_0x3a667a(0xe5)}]},'trae':{'name':a354_0x3a667a(0xfe),'description':a354_0x3a667a(0xd1),'folders':[a354_0x3a667a(0xd5)],'files':[{'type':'file','path':a354_0x3a667a(0xef)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a354_0x3a667a(0xd8),'description':a354_0x3a667a(0xf8),'folders':[a354_0x3a667a(0xfa)],'files':[{'type':a354_0x3a667a(0xf7),'path':a354_0x3a667a(0xfc)}]},'antigravity':{'name':a354_0x3a667a(0xdf),'description':a354_0x3a667a(0x104),'folders':['.agent'],'files':[{'type':a354_0x3a667a(0xf7),'path':'.agent/skills/lovrabet/SKILL.md'}]}};export const CORE_IDE_LIST=['claude',a354_0x3a667a(0xde),a354_0x3a667a(0xf6),a354_0x3a667a(0xd0),'cursor',a354_0x3a667a(0xeb),'qoder',a354_0x3a667a(0xed),a354_0x3a667a(0xd2)];export const IDE_LIST=[a354_0x3a667a(0x100),a354_0x3a667a(0xf4),a354_0x3a667a(0xde),a354_0x3a667a(0xf6),a354_0x3a667a(0xd0),'cursor',a354_0x3a667a(0xeb),a354_0x3a667a(0xf2),a354_0x3a667a(0xed),'windsurf','agent'];function a354_0x3ee9(){const _0x151575=['Trae\x20IDE','windsurf','.qoder','OpenCode','.trae','.cline','Codex','Other\x20(generic\x20template)','Cursor','Claude\x20Code','11aqjvFO','.codebuddy','.windsurf/workflows/rabetbase.md','cline','Antigravity','Cline\x20IDE','Windsurf','.cline/skills/lovrabet/SKILL.md','1309168zYiddA','CodeBuddy\x20IDE','.codebuddy/skills/lovrabet/SKILL.md','Cline','.claude/skills/lovrabet/SKILL.md','8HtydiA','OpenCode\x20IDE','.cursor','opencode','.cursor/skills/rabetbase.md','trae','.codex','.trae/skills/lovrabet/SKILL.md','Qoder','.opencode/skills/lovrabet/SKILL.md','qoder','3502071YmFKsz','claude','.opencode','codebuddy','file','Generic\x20template\x20fallback','606FVYJfe','.agent','Cursor\x20IDE','.agent/skills/lovrabet/SKILL.md','.windsurf','Trae','12785530OmNhbq','antigravity','36405VwPMAm','129395OePUbL','78076UQSINm','Antigravity\x20IDE','.cursorrules','800235IOuely','cursor','codex'];a354_0x3ee9=function(){return _0x151575;};return a354_0x3ee9();}export const ALL_CORE_IDES=[a354_0x3a667a(0x107),a354_0x3a667a(0xd2),'claude','cline','codex','opencode','qoder',a354_0x3a667a(0xf6),a354_0x3a667a(0xed)];
@@ -1 +1 @@
1
- (function(_0x5167af,_0xca316c){const _0x56f807=a354_0x5db5,_0x4a07b3=_0x5167af();while(!![]){try{const _0x22fad0=-parseInt(_0x56f807(0xf7))/0x1+parseInt(_0x56f807(0xf9))/0x2*(-parseInt(_0x56f807(0xfc))/0x3)+-parseInt(_0x56f807(0xf8))/0x4+-parseInt(_0x56f807(0xfd))/0x5+parseInt(_0x56f807(0xfe))/0x6+-parseInt(_0x56f807(0xfb))/0x7+parseInt(_0x56f807(0xfa))/0x8;if(_0x22fad0===_0xca316c)break;else _0x4a07b3['push'](_0x4a07b3['shift']());}catch(_0x2d1650){_0x4a07b3['push'](_0x4a07b3['shift']());}}}(a354_0x3376,0xe5d21));function a354_0x3376(){const _0x320074=['2956612jOYTiY','1916TBlIsC','23849000GODnzC','347368mePMYX','3225bQSyVH','1056260YOGuhW','4159980zziSUY','703231CsEtRr'];a354_0x3376=function(){return _0x320074;};return a354_0x3376();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a354_0x5db5(_0x33ab41,_0x23c6af){_0x33ab41=_0x33ab41-0xf7;const _0x33766c=a354_0x3376();let _0x5db505=_0x33766c[_0x33ab41];return _0x5db505;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x44a3b5,_0x7de9de){const _0x317d72=a355_0x2765,_0x57ee4d=_0x44a3b5();while(!![]){try{const _0x1d33ff=parseInt(_0x317d72(0x1bf))/0x1*(-parseInt(_0x317d72(0x1c0))/0x2)+parseInt(_0x317d72(0x1bc))/0x3*(parseInt(_0x317d72(0x1c4))/0x4)+-parseInt(_0x317d72(0x1c3))/0x5*(parseInt(_0x317d72(0x1c2))/0x6)+-parseInt(_0x317d72(0x1c1))/0x7*(-parseInt(_0x317d72(0x1ba))/0x8)+-parseInt(_0x317d72(0x1bb))/0x9+parseInt(_0x317d72(0x1be))/0xa+parseInt(_0x317d72(0x1bd))/0xb;if(_0x1d33ff===_0x7de9de)break;else _0x57ee4d['push'](_0x57ee4d['shift']());}catch(_0x29b7cd){_0x57ee4d['push'](_0x57ee4d['shift']());}}}(a355_0x1c2d,0x47182));function a355_0x2765(_0x320332,_0x580590){_0x320332=_0x320332-0x1ba;const _0x1c2d0c=a355_0x1c2d();let _0x27652b=_0x1c2d0c[_0x320332];return _0x27652b;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a355_0x1c2d(){const _0x160f41=['3462MokRIc','11042295oIVVVJ','3421480LeMXFL','564121PZzlty','2PIzYST','76286mvgSKE','18RXtHUx','267005jUoxyP','284hbJXlm','48yldLdY','4300101VGPWPz'];a355_0x1c2d=function(){return _0x160f41;};return a355_0x1c2d();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- function a355_0x2a82(){const _0x45b9f8=['now','20ERvytg','2025558sjhmAl','2337404IbKDme','stableVersion','1509114yyPASj','application/json','11802028IURBuc','35033440dKRnGn','node','json','cli','1648405xLshgH','2196912GrPgqc','sdk'];a355_0x2a82=function(){return _0x45b9f8;};return a355_0x2a82();}(function(_0x1466d2,_0x28b8cc){const _0x3b2f9f=a355_0x1870,_0x57fb78=_0x1466d2();while(!![]){try{const _0x414192=parseInt(_0x3b2f9f(0xbc))/0x1+-parseInt(_0x3b2f9f(0xb5))/0x2+parseInt(_0x3b2f9f(0xc1))/0x3+parseInt(_0x3b2f9f(0xc2))/0x4+parseInt(_0x3b2f9f(0xc0))/0x5*(parseInt(_0x3b2f9f(0xbd))/0x6)+parseInt(_0x3b2f9f(0xb7))/0x7+-parseInt(_0x3b2f9f(0xb8))/0x8;if(_0x414192===_0x28b8cc)break;else _0x57fb78['push'](_0x57fb78['shift']());}catch(_0x3c6ade){_0x57fb78['push'](_0x57fb78['shift']());}}}(a355_0x2a82,0xe1c91));function a355_0x1870(_0x3e95d1,_0x1907f6){_0x3e95d1=_0x3e95d1-0xb5;const _0x2a820c=a355_0x2a82();let _0x187058=_0x2a820c[_0x3e95d1];return _0x187058;}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x1da2b5=a355_0x1870,_0x30894d=getTemplateBaseUrl(),_0x5b93e2=[_0x30894d+'/config.json',_0x30894d+'/config/index.json'];for(const _0x4bd8cb of _0x5b93e2){try{const _0x1ae0e7=await fetch(_0x4bd8cb,{'headers':{'Accept':_0x1da2b5(0xb6)}});if(!_0x1ae0e7['ok'])continue;const _0x1c6266=await _0x1ae0e7[_0x1da2b5(0xba)]();if(!_0x1c6266[_0x1da2b5(0xbb)]?.[_0x1da2b5(0xc3)]||!_0x1c6266[_0x1da2b5(0xbe)]?.[_0x1da2b5(0xb9)]?.['stableVersion'])continue;return _0x1c6266;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x106ad3=a355_0x1870,_0x5576dc=Date[_0x106ad3(0xbf)]();if(hasCachedConfig){const _0x817974=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5576dc-cacheTime<_0x817974)return cachedConfig;}const _0x2de48e=await fetchCdnConfig();return cachedConfig=_0x2de48e,cacheTime=_0x5576dc,hasCachedConfig=!![],_0x2de48e;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x1afdf3,_0x480cfa){const _0x3017bd=a356_0x46f7,_0x1beb4a=_0x1afdf3();while(!![]){try{const _0x13734d=-parseInt(_0x3017bd(0x15d))/0x1*(-parseInt(_0x3017bd(0x160))/0x2)+parseInt(_0x3017bd(0x168))/0x3*(-parseInt(_0x3017bd(0x15e))/0x4)+parseInt(_0x3017bd(0x15a))/0x5+parseInt(_0x3017bd(0x15f))/0x6*(-parseInt(_0x3017bd(0x164))/0x7)+parseInt(_0x3017bd(0x166))/0x8*(-parseInt(_0x3017bd(0x167))/0x9)+-parseInt(_0x3017bd(0x161))/0xa*(parseInt(_0x3017bd(0x163))/0xb)+parseInt(_0x3017bd(0x159))/0xc*(parseInt(_0x3017bd(0x158))/0xd);if(_0x13734d===_0x480cfa)break;else _0x1beb4a['push'](_0x1beb4a['shift']());}catch(_0x15da6c){_0x1beb4a['push'](_0x1beb4a['shift']());}}}(a356_0x199d,0x335d5));function a356_0x199d(){const _0x5db8aa=['/config.json','sdk','278318RGFdcH','482680ebdqgz','78WzNLke','2yKNrVP','373970lmWVWc','/config/index.json','11xHnAxm','25655bKhWTA','application/json','8ZglKTC','3721059jPqIyI','9RpaMmr','now','9699027TWPhZD','12uhMune','232475NjubMf'];a356_0x199d=function(){return _0x5db8aa;};return a356_0x199d();}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x5bcddb=a356_0x46f7,_0x27a8b1=getTemplateBaseUrl(),_0x1a481e=[_0x27a8b1+_0x5bcddb(0x15b),_0x27a8b1+_0x5bcddb(0x162)];for(const _0x5c957c of _0x1a481e){try{const _0xc7d16a=await fetch(_0x5c957c,{'headers':{'Accept':_0x5bcddb(0x165)}});if(!_0xc7d16a['ok'])continue;const _0x3f72c2=await _0xc7d16a['json']();if(!_0x3f72c2['cli']?.['stableVersion']||!_0x3f72c2[_0x5bcddb(0x15c)]?.['node']?.['stableVersion'])continue;return _0x3f72c2;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a356_0x46f7(_0x32e8f6,_0x4bb53e){_0x32e8f6=_0x32e8f6-0x158;const _0x199dc9=a356_0x199d();let _0x46f7b2=_0x199dc9[_0x32e8f6];return _0x46f7b2;}export async function getCdnConfig(){const _0x207ed9=a356_0x46f7,_0x1a497f=Date[_0x207ed9(0x169)]();if(hasCachedConfig){const _0x197d41=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x1a497f-cacheTime<_0x197d41)return cachedConfig;}const _0xad8a79=await fetchCdnConfig();return cachedConfig=_0xad8a79,cacheTime=_0x1a497f,hasCachedConfig=!![],_0xad8a79;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a356_0x4c93df=a356_0x13c1;(function(_0x4fa202,_0x257444){const _0x58b276=a356_0x13c1,_0x173411=_0x4fa202();while(!![]){try{const _0x312cf6=parseInt(_0x58b276(0x17c))/0x1+-parseInt(_0x58b276(0x18a))/0x2+parseInt(_0x58b276(0x177))/0x3*(parseInt(_0x58b276(0x178))/0x4)+parseInt(_0x58b276(0x188))/0x5+parseInt(_0x58b276(0x170))/0x6*(-parseInt(_0x58b276(0x166))/0x7)+-parseInt(_0x58b276(0x17d))/0x8*(-parseInt(_0x58b276(0x176))/0x9)+-parseInt(_0x58b276(0x16b))/0xa*(parseInt(_0x58b276(0x167))/0xb);if(_0x312cf6===_0x257444)break;else _0x173411['push'](_0x173411['shift']());}catch(_0x2a07e0){_0x173411['push'](_0x173411['shift']());}}}(a356_0x164c,0xa805b));import a356_0x241eaa from'node:fs';function a356_0x164c(){const _0x3ff438=['all','join','existsSync','latest','devDependencies','coerce','4060610sQgWjE','parse','2598320svDZJF','node','node_modules','@lovrabet/sdk','35SwpIHU','10222861QvTqAo','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Current\x20version:\x20','npm\x20install\x20','10qnHaYS','dependencies','minVersion','packageName','package.json','131982PMIAwS','\x1b[0m','version','readFileSync','↪\x20SDK\x20update\x20available','log','5554719UQiHoR','2938029EkTGCa','4lDVhdw','sdk','\x1b[1m','utf8','618059ZNaYJR','8lmFqmE','\x1b[33m','1.2.0','stableVersion','\x20\x20\x20Stable\x20version:\x20'];a356_0x164c=function(){return _0x3ff438;};return a356_0x164c();}import a356_0x329d7c from'node:path';import a356_0xc98f50 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a356_0x4c93df(0x17f);function isNonNumericVersion(_0x61f107){const _0x57af61=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x57af61['some'](_0x39aa87=>_0x39aa87['test'](_0x61f107));}function getInstalledVersion(_0xb9cc24,_0x3dfe8e){const _0x42c43f=a356_0x4c93df;try{const _0x3edaa6=a356_0x329d7c[_0x42c43f(0x183)](_0xb9cc24,_0x42c43f(0x164),_0x3dfe8e,_0x42c43f(0x16f));if(a356_0x241eaa['existsSync'](_0x3edaa6)){const _0x34eb2c=JSON['parse'](a356_0x241eaa['readFileSync'](_0x3edaa6,'utf-8'));return _0x34eb2c[_0x42c43f(0x172)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x35c25b=a356_0x4c93df;try{const _0x2dca0a=await getCdnConfig();return _0x2dca0a?.[_0x35c25b(0x179)]?.[_0x35c25b(0x18b)]?.[_0x35c25b(0x180)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x179d6f=a356_0x4c93df;try{const _0x102587=await getCdnConfig();return _0x102587?.[_0x179d6f(0x179)]?.[_0x179d6f(0x18b)]?.['packageName']||_0x179d6f(0x165);}catch{return _0x179d6f(0x165);}}export async function checkSdkVersion(_0x5e80dd){const _0x1b1c82=a356_0x4c93df,_0x45623d=a356_0x329d7c[_0x1b1c82(0x183)](_0x5e80dd,_0x1b1c82(0x16f)),[_0x5027b3,_0x9c217]=await Promise[_0x1b1c82(0x182)]([getSdkStableVersion(),getSdkPackageName()]),_0x9aebf6=_0x5027b3||FALLBACK_MIN_SDK_VERSION;if(!a356_0x241eaa[_0x1b1c82(0x184)](_0x45623d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x9aebf6,'packageName':_0x9c217,'stableVersion':_0x5027b3};try{const _0x3cecc2=JSON[_0x1b1c82(0x189)](a356_0x241eaa['readFileSync'](_0x45623d,_0x1b1c82(0x17b))),_0x293ba9=_0x3cecc2[_0x1b1c82(0x16c)]||{},_0x38d105=_0x3cecc2[_0x1b1c82(0x186)]||{},_0x33023d=_0x293ba9[_0x9c217]||_0x38d105[_0x9c217];if(!_0x33023d)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x9aebf6,'packageName':_0x9c217,'stableVersion':_0x5027b3};let _0x3420e2=getInstalledVersion(_0x5e80dd,_0x9c217);!_0x3420e2&&(_0x3420e2=_0x33023d);if(isNonNumericVersion(_0x33023d))return{'installed':!![],'version':_0x3420e2,'needsUpgrade':![],'minVersion':_0x9aebf6,'packageName':_0x9c217,'stableVersion':_0x5027b3};const _0x1f2299=a356_0xc98f50['coerce'](_0x3420e2),_0x42324b=a356_0xc98f50['coerce'](_0x9aebf6),_0x2ee747=_0x1f2299&&_0x42324b?a356_0xc98f50['lt'](_0x1f2299,_0x42324b):![];return{'installed':!![],'version':_0x3420e2,'needsUpgrade':_0x2ee747,'minVersion':_0x9aebf6,'packageName':_0x9c217,'stableVersion':_0x5027b3};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x9aebf6,'packageName':_0x9c217,'stableVersion':_0x5027b3};}}function a356_0x13c1(_0x2c3175,_0x5404f2){_0x2c3175=_0x2c3175-0x164;const _0x164cd6=a356_0x164c();let _0x13c12f=_0x164cd6[_0x2c3175];return _0x13c12f;}export function checkSdkVersionSync(_0x3fcbed){const _0x50eb47=a356_0x4c93df,_0x11c08f=a356_0x329d7c[_0x50eb47(0x183)](_0x3fcbed,_0x50eb47(0x16f)),_0x1cd6c8=_0x50eb47(0x165);if(!a356_0x241eaa[_0x50eb47(0x184)](_0x11c08f))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1cd6c8,'stableVersion':null};try{const _0x49b692=JSON[_0x50eb47(0x189)](a356_0x241eaa[_0x50eb47(0x173)](_0x11c08f,_0x50eb47(0x17b))),_0x48bbc5=_0x49b692[_0x50eb47(0x16c)]||{},_0x5f0db5=_0x49b692['devDependencies']||{},_0x1a484d=_0x48bbc5[_0x1cd6c8]||_0x5f0db5[_0x1cd6c8];if(!_0x1a484d)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1cd6c8,'stableVersion':null};let _0x4c9427=getInstalledVersion(_0x3fcbed,_0x1cd6c8);!_0x4c9427&&(_0x4c9427=_0x1a484d);if(isNonNumericVersion(_0x1a484d))return{'installed':!![],'version':_0x4c9427,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1cd6c8,'stableVersion':null};const _0x256b57=a356_0xc98f50[_0x50eb47(0x187)](_0x4c9427),_0x491690=_0x256b57?a356_0xc98f50['lt'](_0x256b57,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x4c9427,'needsUpgrade':_0x491690,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1cd6c8,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1cd6c8,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x572384){const _0x1038c0=a356_0x4c93df;if(!_0x572384['needsUpgrade'])return;const _0x3d1b17=_0x1038c0(0x17e),_0x36c3cf=_0x1038c0(0x171),_0x489276=_0x1038c0(0x17a),_0x4c31e5=_0x572384[_0x1038c0(0x16e)]||_0x1038c0(0x165),_0x569a2b=_0x572384[_0x1038c0(0x180)]||_0x572384[_0x1038c0(0x16d)],_0xfba569=_0x1038c0(0x16a)+_0x4c31e5+'@'+(_0x569a2b||_0x1038c0(0x185));console[_0x1038c0(0x175)](),console[_0x1038c0(0x175)](''+_0x3d1b17+_0x489276+_0x1038c0(0x174)+_0x36c3cf),console[_0x1038c0(0x175)](_0x3d1b17+_0x1038c0(0x169)+_0x4c31e5+'@'+_0x572384[_0x1038c0(0x172)]+_0x36c3cf),console['log'](_0x3d1b17+_0x1038c0(0x181)+_0x569a2b+_0x36c3cf),console[_0x1038c0(0x175)](_0x3d1b17+_0x1038c0(0x168)+_0xfba569+_0x36c3cf),console['log']();}
1
+ const a357_0x5382bd=a357_0x2591;(function(_0x58d080,_0x44c408){const _0x57a687=a357_0x2591,_0x366975=_0x58d080();while(!![]){try{const _0x331088=parseInt(_0x57a687(0xcf))/0x1+parseInt(_0x57a687(0xeb))/0x2*(-parseInt(_0x57a687(0xe1))/0x3)+-parseInt(_0x57a687(0xf2))/0x4+-parseInt(_0x57a687(0xd9))/0x5+parseInt(_0x57a687(0xe6))/0x6+parseInt(_0x57a687(0xce))/0x7*(-parseInt(_0x57a687(0xe5))/0x8)+parseInt(_0x57a687(0xf0))/0x9;if(_0x331088===_0x44c408)break;else _0x366975['push'](_0x366975['shift']());}catch(_0x3ffc62){_0x366975['push'](_0x366975['shift']());}}}(a357_0x3f6f,0x4a36d));import a357_0x481ed0 from'node:fs';import a357_0x1618d2 from'node:path';import a357_0x3280b0 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a357_0x5382bd(0xe9);function isNonNumericVersion(_0x43dfb0){const _0x587eef=a357_0x5382bd,_0x512edb=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x512edb[_0x587eef(0xd2)](_0x301b7d=>_0x301b7d[_0x587eef(0xdb)](_0x43dfb0));}function getInstalledVersion(_0x5d1b59,_0x12106d){const _0x5a27ec=a357_0x5382bd;try{const _0x2af358=a357_0x1618d2['join'](_0x5d1b59,_0x5a27ec(0xd1),_0x12106d,_0x5a27ec(0xde));if(a357_0x481ed0[_0x5a27ec(0xee)](_0x2af358)){const _0x3b9b1c=JSON[_0x5a27ec(0xed)](a357_0x481ed0['readFileSync'](_0x2af358,_0x5a27ec(0xe3)));return _0x3b9b1c[_0x5a27ec(0xd7)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x116ba3=a357_0x5382bd;try{const _0xbeee42=await getCdnConfig();return _0xbeee42?.['sdk']?.['node']?.[_0x116ba3(0xef)]||null;}catch{return null;}}async function getSdkPackageName(){const _0xe64020=a357_0x5382bd;try{const _0x455550=await getCdnConfig();return _0x455550?.[_0xe64020(0xdf)]?.[_0xe64020(0xd4)]?.[_0xe64020(0xe4)]||_0xe64020(0xe8);}catch{return _0xe64020(0xe8);}}export async function checkSdkVersion(_0x199f05){const _0x38dcb8=a357_0x5382bd,_0x2ae100=a357_0x1618d2[_0x38dcb8(0xda)](_0x199f05,_0x38dcb8(0xde)),[_0x1ce0f2,_0x42cb23]=await Promise[_0x38dcb8(0xd8)]([getSdkStableVersion(),getSdkPackageName()]),_0x5312da=_0x1ce0f2||FALLBACK_MIN_SDK_VERSION;if(!a357_0x481ed0[_0x38dcb8(0xee)](_0x2ae100))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5312da,'packageName':_0x42cb23,'stableVersion':_0x1ce0f2};try{const _0x595e2a=JSON[_0x38dcb8(0xed)](a357_0x481ed0['readFileSync'](_0x2ae100,_0x38dcb8(0xf3))),_0x6985=_0x595e2a[_0x38dcb8(0xe0)]||{},_0x26a238=_0x595e2a[_0x38dcb8(0xdc)]||{},_0x3af223=_0x6985[_0x42cb23]||_0x26a238[_0x42cb23];if(!_0x3af223)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5312da,'packageName':_0x42cb23,'stableVersion':_0x1ce0f2};let _0x45f05a=getInstalledVersion(_0x199f05,_0x42cb23);!_0x45f05a&&(_0x45f05a=_0x3af223);if(isNonNumericVersion(_0x3af223))return{'installed':!![],'version':_0x45f05a,'needsUpgrade':![],'minVersion':_0x5312da,'packageName':_0x42cb23,'stableVersion':_0x1ce0f2};const _0x37582f=a357_0x3280b0[_0x38dcb8(0xd3)](_0x45f05a),_0x2089fa=a357_0x3280b0[_0x38dcb8(0xd3)](_0x5312da),_0x2da172=_0x37582f&&_0x2089fa?a357_0x3280b0['lt'](_0x37582f,_0x2089fa):![];return{'installed':!![],'version':_0x45f05a,'needsUpgrade':_0x2da172,'minVersion':_0x5312da,'packageName':_0x42cb23,'stableVersion':_0x1ce0f2};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5312da,'packageName':_0x42cb23,'stableVersion':_0x1ce0f2};}}export function checkSdkVersionSync(_0x5ba677){const _0x36e2d2=a357_0x5382bd,_0x3a3ee7=a357_0x1618d2[_0x36e2d2(0xda)](_0x5ba677,_0x36e2d2(0xde)),_0x2deb9d=_0x36e2d2(0xe8);if(!a357_0x481ed0['existsSync'](_0x3a3ee7))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2deb9d,'stableVersion':null};try{const _0x4d83e9=JSON[_0x36e2d2(0xed)](a357_0x481ed0[_0x36e2d2(0xd6)](_0x3a3ee7,_0x36e2d2(0xf3))),_0x2ba58e=_0x4d83e9[_0x36e2d2(0xe0)]||{},_0x7b943b=_0x4d83e9[_0x36e2d2(0xdc)]||{},_0x28632e=_0x2ba58e[_0x2deb9d]||_0x7b943b[_0x2deb9d];if(!_0x28632e)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2deb9d,'stableVersion':null};let _0x23ee30=getInstalledVersion(_0x5ba677,_0x2deb9d);!_0x23ee30&&(_0x23ee30=_0x28632e);if(isNonNumericVersion(_0x28632e))return{'installed':!![],'version':_0x23ee30,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2deb9d,'stableVersion':null};const _0x5ad85c=a357_0x3280b0[_0x36e2d2(0xd3)](_0x23ee30),_0x48db2f=_0x5ad85c?a357_0x3280b0['lt'](_0x5ad85c,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x23ee30,'needsUpgrade':_0x48db2f,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2deb9d,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2deb9d,'stableVersion':null};}}function a357_0x2591(_0x10986f,_0x5f2834){_0x10986f=_0x10986f-0xce;const _0x3f6fcf=a357_0x3f6f();let _0x259126=_0x3f6fcf[_0x10986f];return _0x259126;}export function printSdkUpgradeWarning(_0x5d1c09){const _0x41818b=a357_0x5382bd;if(!_0x5d1c09[_0x41818b(0xd5)])return;const _0x4bfcaf=_0x41818b(0xd0),_0x1c4254=_0x41818b(0xdd),_0x135947='\x1b[1m',_0x22b583=_0x5d1c09[_0x41818b(0xe4)]||_0x41818b(0xe8),_0x4de59b=_0x5d1c09[_0x41818b(0xef)]||_0x5d1c09[_0x41818b(0xe2)],_0x463049='npm\x20install\x20'+_0x22b583+'@'+(_0x4de59b||_0x41818b(0xe7));console[_0x41818b(0xea)](),console['log'](''+_0x4bfcaf+_0x135947+'↪\x20SDK\x20update\x20available'+_0x1c4254),console[_0x41818b(0xea)](_0x4bfcaf+_0x41818b(0xec)+_0x22b583+'@'+_0x5d1c09[_0x41818b(0xd7)]+_0x1c4254),console[_0x41818b(0xea)](_0x4bfcaf+_0x41818b(0xf1)+_0x4de59b+_0x1c4254),console['log'](_0x4bfcaf+_0x41818b(0xf4)+_0x463049+_0x1c4254),console[_0x41818b(0xea)]();}function a357_0x3f6f(){const _0x4b56c3=['48920lmwozv','1660416jmGRFH','latest','@lovrabet/sdk','1.2.0','log','382362ELLfQM','\x20\x20\x20Current\x20version:\x20','parse','existsSync','stableVersion','8190900bzjbpy','\x20\x20\x20Stable\x20version:\x20','1962548HoWJWU','utf8','\x20\x20\x20Upgrade\x20command:\x20','399SmtIQG','479933leUNud','\x1b[33m','node_modules','some','coerce','node','needsUpgrade','readFileSync','version','all','1662075KBqXnL','join','test','devDependencies','\x1b[0m','package.json','sdk','dependencies','3dlrwwJ','minVersion','utf-8','packageName'];a357_0x3f6f=function(){return _0x4b56c3;};return a357_0x3f6f();}
@@ -1 +1 @@
1
- (function(_0x1ca7e4,_0x2dbbe8){const _0x2dcbc1=a357_0x2f30,_0x5b1b32=_0x1ca7e4();while(!![]){try{const _0x359a08=parseInt(_0x2dcbc1(0xc1))/0x1+parseInt(_0x2dcbc1(0xd9))/0x2+-parseInt(_0x2dcbc1(0xc7))/0x3+-parseInt(_0x2dcbc1(0xba))/0x4*(-parseInt(_0x2dcbc1(0xda))/0x5)+-parseInt(_0x2dcbc1(0xce))/0x6+parseInt(_0x2dcbc1(0xc5))/0x7+-parseInt(_0x2dcbc1(0xdb))/0x8;if(_0x359a08===_0x2dbbe8)break;else _0x5b1b32['push'](_0x5b1b32['shift']());}catch(_0x267251){_0x5b1b32['push'](_0x5b1b32['shift']());}}}(a357_0x46fc,0x88edc));function a357_0x2f30(_0x36d759,_0x2a67a6){_0x36d759=_0x36d759-0xba;const _0x46fcd6=a357_0x46fc();let _0x2f306d=_0x46fcd6[_0x36d759];return _0x2f306d;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a357_0x2fdb5b 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(_0x52c717){const _0x3008b0=a357_0x2f30,_0x533dc0=_0x52c717['stableVersion']||_0x3008b0(0xbf);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x533dc0;}function a357_0x46fc(){const _0x58bab1=['\x1b[31m','\x20\x20\x20Minimum\x20supported:\x20','\x1b[1m','stableVersion','log','1613536lNFCes','453725hqMVqG','517064fheEaA','↪\x20New\x20version\x20available','32qKEvCQ','../..','needsUpgrade','minimumVersionMessage','parse','latest','filter','451147JCeWPe','currentVersion','1.0.0','utf-8','2799615MwrShw','validation','2318340lRWECj','belowMinimum','\x20\x20\x20Current\x20CLI\x20version:\x20','Current\x20version:\x20','\x20\x20\x20Recommended\x20stable:\x20','coerce','upgradeMessage','5913282EbhJZz','Minimum\x20supported:\x20','Upgrade\x20command:\x20','minimumVersion','\x20\x20\x20','↪\x20Critical\x20CLI\x20upgrade\x20required'];a357_0x46fc=function(){return _0x58bab1;};return a357_0x46fc();}function getCurrentCliVersion(){const _0x2df1d8=a357_0x2f30;try{const _0x242eae=fileURLToPath(import.meta.url),_0x3f858b=resolve(dirname(_0x242eae),_0x2df1d8(0xbb)),_0x3e16d5=resolve(_0x3f858b,'package.json'),_0x11b0d1=JSON[_0x2df1d8(0xbe)](readFileSync(_0x3e16d5,_0x2df1d8(0xc4)));return _0x11b0d1['version']||_0x2df1d8(0xc3);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x1ec1f6=a357_0x2f30,_0x487db8=getCurrentCliVersion(),_0x48743e=await getCliVersionPolicy(),_0x5448ef=_0x48743e?.['stableVersion']||null,_0x2e2f0b=_0x48743e?.[_0x1ec1f6(0xd1)]||null;let _0x4a2693=![],_0x4f0044=![];const _0x53ca7f=a357_0x2fdb5b[_0x1ec1f6(0xcc)](_0x487db8);if(_0x53ca7f&&_0x5448ef)try{const _0x2b1b33=a357_0x2fdb5b[_0x1ec1f6(0xcc)](_0x5448ef);if(_0x2b1b33)_0x4a2693=a357_0x2fdb5b['lt'](_0x53ca7f,_0x2b1b33);}catch{}if(_0x53ca7f&&_0x2e2f0b)try{const _0x298f69=a357_0x2fdb5b[_0x1ec1f6(0xcc)](_0x2e2f0b);if(_0x298f69)_0x4f0044=a357_0x2fdb5b['lt'](_0x53ca7f,_0x298f69);}catch{}return _0x4f0044&&(_0x4a2693=!![]),{'currentVersion':_0x487db8,'stableVersion':_0x5448ef,'minimumVersion':_0x2e2f0b,'needsUpgrade':_0x4a2693,'belowMinimum':_0x4f0044,'isPreRelease':![],'upgradeMessage':_0x48743e?.[_0x1ec1f6(0xcd)],'minimumVersionMessage':_0x48743e?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x59f53e){const _0x1c9066=a357_0x2f30;if(!_0x59f53e[_0x1c9066(0xbc)]&&!_0x59f53e[_0x1c9066(0xc8)])return;const _0x377481=_0x1c9066(0xd4),_0x314883='\x1b[33m',_0xd678d3='\x1b[0m',_0xb362e4=_0x1c9066(0xd6),_0x31ce00=getCliUpgradeCommand(_0x59f53e);console[_0x1c9066(0xd8)](),_0x59f53e[_0x1c9066(0xc8)]?(console[_0x1c9066(0xd8)](''+_0x377481+_0xb362e4+_0x1c9066(0xd3)+_0xd678d3),console['log'](_0x377481+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x59f53e['currentVersion']+_0xd678d3),_0x59f53e[_0x1c9066(0xd1)]&&console[_0x1c9066(0xd8)](_0x377481+_0x1c9066(0xd5)+_0x59f53e[_0x1c9066(0xd1)]+_0xd678d3),_0x59f53e['stableVersion']&&_0x59f53e[_0x1c9066(0xd7)]!==_0x59f53e[_0x1c9066(0xd1)]&&console[_0x1c9066(0xd8)](_0x377481+_0x1c9066(0xcb)+_0x59f53e[_0x1c9066(0xd7)]+_0xd678d3),_0x59f53e['minimumVersionMessage']&&console[_0x1c9066(0xd8)](_0x377481+_0x1c9066(0xd2)+_0x59f53e[_0x1c9066(0xbd)]+_0xd678d3),console[_0x1c9066(0xd8)](_0x377481+'\x20\x20\x20Upgrade\x20command:\x20'+_0x31ce00+_0xd678d3)):(console[_0x1c9066(0xd8)](''+_0x314883+_0xb362e4+_0x1c9066(0xdc)+_0xd678d3),console[_0x1c9066(0xd8)](_0x314883+_0x1c9066(0xc9)+_0x59f53e['currentVersion']+_0xd678d3),console[_0x1c9066(0xd8)](_0x314883+'\x20\x20\x20Stable\x20version:\x20'+_0x59f53e['stableVersion']+_0xd678d3),_0x59f53e['upgradeMessage']&&console['log'](_0x314883+_0x1c9066(0xd2)+_0x59f53e[_0x1c9066(0xcd)]+_0xd678d3),console[_0x1c9066(0xd8)](_0x314883+'\x20\x20\x20Upgrade\x20command:\x20'+_0x31ce00+_0xd678d3)),console[_0x1c9066(0xd8)]();}export function assertCliVersionSupported(_0x1197f6){const _0x4e512d=a357_0x2f30;if(!_0x1197f6[_0x4e512d(0xc8)])return;const _0x40b456=[_0x1197f6['minimumVersionMessage'],_0x4e512d(0xca)+_0x1197f6[_0x4e512d(0xc2)],_0x1197f6['minimumVersion']?_0x4e512d(0xcf)+_0x1197f6[_0x4e512d(0xd1)]:null,_0x4e512d(0xd0)+getCliUpgradeCommand(_0x1197f6)][_0x4e512d(0xc0)](Boolean)['join']('\x0a');throw CliErrors[_0x4e512d(0xc6)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x40b456);}
1
+ (function(_0x329ee9,_0x489c9){const _0x52a167=a358_0x5ad3,_0x4ad307=_0x329ee9();while(!![]){try{const _0x4b8e8e=parseInt(_0x52a167(0x120))/0x1+parseInt(_0x52a167(0x124))/0x2+parseInt(_0x52a167(0x13a))/0x3+parseInt(_0x52a167(0x125))/0x4*(parseInt(_0x52a167(0x12a))/0x5)+-parseInt(_0x52a167(0x13b))/0x6+parseInt(_0x52a167(0x12f))/0x7*(parseInt(_0x52a167(0x11d))/0x8)+-parseInt(_0x52a167(0x122))/0x9;if(_0x4b8e8e===_0x489c9)break;else _0x4ad307['push'](_0x4ad307['shift']());}catch(_0x3596bf){_0x4ad307['push'](_0x4ad307['shift']());}}}(a358_0x133f,0x7f81f));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a358_0x1bf14b 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(_0x2f51c7){const _0x32dfa1=a358_0x5ad3,_0x2d414f=_0x2f51c7[_0x32dfa1(0x12c)]||_0x32dfa1(0x136);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x2d414f;}function a358_0x5ad3(_0x282c71,_0x6a781c){_0x282c71=_0x282c71-0x11d;const _0x133f3c=a358_0x133f();let _0x5ad32f=_0x133f3c[_0x282c71];return _0x5ad32f;}function getCurrentCliVersion(){const _0x34bbfa=a358_0x5ad3;try{const _0x4b46bd=fileURLToPath(import.meta.url),_0x22b7a0=resolve(dirname(_0x4b46bd),_0x34bbfa(0x139)),_0x1bcc0b=resolve(_0x22b7a0,_0x34bbfa(0x140)),_0x4deba2=JSON['parse'](readFileSync(_0x1bcc0b,_0x34bbfa(0x130)));return _0x4deba2[_0x34bbfa(0x133)]||_0x34bbfa(0x132);}catch{return _0x34bbfa(0x132);}}export async function checkCliVersion(){const _0x17e9f2=a358_0x5ad3,_0x286841=getCurrentCliVersion(),_0x921233=await getCliVersionPolicy(),_0x4f1a74=_0x921233?.[_0x17e9f2(0x12c)]||null,_0x217f24=_0x921233?.['minimumVersion']||null;let _0x22bcc3=![],_0x18e125=![];const _0x3e6162=a358_0x1bf14b[_0x17e9f2(0x126)](_0x286841);if(_0x3e6162&&_0x4f1a74)try{const _0x47a78a=a358_0x1bf14b['coerce'](_0x4f1a74);if(_0x47a78a)_0x22bcc3=a358_0x1bf14b['lt'](_0x3e6162,_0x47a78a);}catch{}if(_0x3e6162&&_0x217f24)try{const _0x46fe9a=a358_0x1bf14b[_0x17e9f2(0x126)](_0x217f24);if(_0x46fe9a)_0x18e125=a358_0x1bf14b['lt'](_0x3e6162,_0x46fe9a);}catch{}return _0x18e125&&(_0x22bcc3=!![]),{'currentVersion':_0x286841,'stableVersion':_0x4f1a74,'minimumVersion':_0x217f24,'needsUpgrade':_0x22bcc3,'belowMinimum':_0x18e125,'isPreRelease':![],'upgradeMessage':_0x921233?.[_0x17e9f2(0x135)],'minimumVersionMessage':_0x921233?.[_0x17e9f2(0x134)]};}function a358_0x133f(){const _0x36ae21=['3145296VCPRPn','\x20\x20\x20Stable\x20version:\x20','currentVersion','\x20\x20\x20Upgrade\x20command:\x20','join','package.json','947888DmagCe','belowMinimum','\x1b[1m','300073YkPFFG','log','15895341dKiCBU','\x20\x20\x20Current\x20CLI\x20version:\x20','1686134tnlcwh','876UkEGJj','coerce','validation','\x20\x20\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','10835GRibVi','\x1b[31m','stableVersion','Upgrade\x20command:\x20','minimumVersion','28vqDeDY','utf-8','\x1b[33m','1.0.0','version','minimumVersionMessage','upgradeMessage','latest','needsUpgrade','\x20\x20\x20Minimum\x20supported:\x20','../..','2162937ViveLr'];a358_0x133f=function(){return _0x36ae21;};return a358_0x133f();}export function printCliUpgradeWarning(_0x57f603){const _0x3f2782=a358_0x5ad3;if(!_0x57f603[_0x3f2782(0x137)]&&!_0x57f603[_0x3f2782(0x11e)])return;const _0x22224c=_0x3f2782(0x12b),_0x2b91f1=_0x3f2782(0x131),_0x20225c='\x1b[0m',_0x1067dd=_0x3f2782(0x11f),_0xb80e3e=getCliUpgradeCommand(_0x57f603);console[_0x3f2782(0x121)](),_0x57f603[_0x3f2782(0x11e)]?(console[_0x3f2782(0x121)](''+_0x22224c+_0x1067dd+_0x3f2782(0x129)+_0x20225c),console[_0x3f2782(0x121)](_0x22224c+_0x3f2782(0x123)+_0x57f603[_0x3f2782(0x13d)]+_0x20225c),_0x57f603[_0x3f2782(0x12e)]&&console[_0x3f2782(0x121)](_0x22224c+_0x3f2782(0x138)+_0x57f603[_0x3f2782(0x12e)]+_0x20225c),_0x57f603[_0x3f2782(0x12c)]&&_0x57f603['stableVersion']!==_0x57f603[_0x3f2782(0x12e)]&&console['log'](_0x22224c+'\x20\x20\x20Recommended\x20stable:\x20'+_0x57f603[_0x3f2782(0x12c)]+_0x20225c),_0x57f603[_0x3f2782(0x134)]&&console[_0x3f2782(0x121)](_0x22224c+_0x3f2782(0x128)+_0x57f603[_0x3f2782(0x134)]+_0x20225c),console[_0x3f2782(0x121)](_0x22224c+_0x3f2782(0x13e)+_0xb80e3e+_0x20225c)):(console[_0x3f2782(0x121)](''+_0x2b91f1+_0x1067dd+'↪\x20New\x20version\x20available'+_0x20225c),console[_0x3f2782(0x121)](_0x2b91f1+_0x3f2782(0x123)+_0x57f603[_0x3f2782(0x13d)]+_0x20225c),console[_0x3f2782(0x121)](_0x2b91f1+_0x3f2782(0x13c)+_0x57f603[_0x3f2782(0x12c)]+_0x20225c),_0x57f603[_0x3f2782(0x135)]&&console[_0x3f2782(0x121)](_0x2b91f1+'\x20\x20\x20'+_0x57f603[_0x3f2782(0x135)]+_0x20225c),console[_0x3f2782(0x121)](_0x2b91f1+_0x3f2782(0x13e)+_0xb80e3e+_0x20225c)),console[_0x3f2782(0x121)]();}export function assertCliVersionSupported(_0x872530){const _0x53ec6b=a358_0x5ad3;if(!_0x872530['belowMinimum'])return;const _0xf2fe75=[_0x872530[_0x53ec6b(0x134)],'Current\x20version:\x20'+_0x872530[_0x53ec6b(0x13d)],_0x872530['minimumVersion']?'Minimum\x20supported:\x20'+_0x872530[_0x53ec6b(0x12e)]:null,_0x53ec6b(0x12d)+getCliUpgradeCommand(_0x872530)]['filter'](Boolean)[_0x53ec6b(0x13f)]('\x0a');throw CliErrors[_0x53ec6b(0x127)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0xf2fe75);}