@lovrabet/rabetbase-cli 2.5.2-beta.5 → 2.5.2-beta.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 (329) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/delete.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/init.js +1 -1
  56. package/lib/commands/config/list.js +1 -1
  57. package/lib/commands/config/set.js +1 -1
  58. package/lib/commands/config/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/business-groups.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-restore.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff-refresh-start.js +1 -1
  89. package/lib/commands/db/diff-refresh-status.js +1 -1
  90. package/lib/commands/db/diff.js +1 -1
  91. package/lib/commands/db/index.js +1 -1
  92. package/lib/commands/db/list.js +1 -1
  93. package/lib/commands/db/shared.js +1 -1
  94. package/lib/commands/db/table-diff-shared.js +1 -1
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/deployment/index.js +1 -1
  99. package/lib/commands/deployment/sync-all.js +1 -1
  100. package/lib/commands/deployment/sync-jobs.js +1 -1
  101. package/lib/commands/deployment/sync-status.js +1 -1
  102. package/lib/commands/doctor.js +1 -1
  103. package/lib/commands/file/index.js +1 -1
  104. package/lib/commands/instant-api-policy/current.js +1 -1
  105. package/lib/commands/instant-api-policy/index.js +1 -1
  106. package/lib/commands/instant-api-policy/init.js +1 -1
  107. package/lib/commands/instant-api-policy/publish.js +1 -1
  108. package/lib/commands/instant-api-policy/pull.js +1 -1
  109. package/lib/commands/instant-api-policy/revision.js +1 -1
  110. package/lib/commands/instant-api-policy/revisions.js +1 -1
  111. package/lib/commands/instant-api-policy/rollback.js +1 -1
  112. package/lib/commands/instant-api-policy/shared.js +1 -1
  113. package/lib/commands/instant-api-policy/validate.js +1 -1
  114. package/lib/commands/issue/index.js +1 -1
  115. package/lib/commands/issue/nudge.js +1 -1
  116. package/lib/commands/issue/report.js +1 -1
  117. package/lib/commands/issue/shared.js +1 -1
  118. package/lib/commands/kb/create.js +1 -1
  119. package/lib/commands/kb/delete.js +1 -1
  120. package/lib/commands/kb/detail.js +1 -1
  121. package/lib/commands/kb/index.js +1 -1
  122. package/lib/commands/kb/list.js +1 -1
  123. package/lib/commands/kb/search.js +1 -1
  124. package/lib/commands/kb/shared.js +1 -1
  125. package/lib/commands/kb/update.js +1 -1
  126. package/lib/commands/logs/index.js +1 -1
  127. package/lib/commands/menu/asset-update.js +1 -1
  128. package/lib/commands/menu/delete.js +1 -1
  129. package/lib/commands/menu/external-link-create.js +1 -1
  130. package/lib/commands/menu/external-link-update.js +1 -1
  131. package/lib/commands/menu/group-create.js +1 -1
  132. package/lib/commands/menu/group-update.js +1 -1
  133. package/lib/commands/menu/index.js +1 -1
  134. package/lib/commands/menu/list.js +1 -1
  135. package/lib/commands/menu/move.js +1 -1
  136. package/lib/commands/menu/regroup-start.js +1 -1
  137. package/lib/commands/menu/rename.js +1 -1
  138. package/lib/commands/menu/shared/compare-table.js +1 -1
  139. package/lib/commands/menu/shared/delete-plan.js +1 -1
  140. package/lib/commands/menu/shared/facts.js +1 -1
  141. package/lib/commands/menu/shared/index.js +1 -1
  142. package/lib/commands/menu/shared/inquirer.js +1 -1
  143. package/lib/commands/menu/shared/local-pages.js +1 -1
  144. package/lib/commands/menu/shared/logic.js +1 -1
  145. package/lib/commands/menu/shared/mutations.js +1 -1
  146. package/lib/commands/menu/shared/service.js +1 -1
  147. package/lib/commands/menu/shared/sync-core.js +1 -1
  148. package/lib/commands/menu/shared/update-core.js +1 -1
  149. package/lib/commands/menu/shared/valid-url.js +1 -1
  150. package/lib/commands/menu/sync.js +1 -1
  151. package/lib/commands/menu/visibility-update.js +1 -1
  152. package/lib/commands/notification/config-create.js +1 -1
  153. package/lib/commands/notification/config-delete.js +1 -1
  154. package/lib/commands/notification/config-list.js +1 -1
  155. package/lib/commands/notification/config-update.js +1 -1
  156. package/lib/commands/notification/index.js +1 -1
  157. package/lib/commands/notification/shared.js +1 -1
  158. package/lib/commands/ocr/index.js +1 -1
  159. package/lib/commands/page/create.js +1 -1
  160. package/lib/commands/page/custom/detail.js +1 -1
  161. package/lib/commands/page/custom/list.js +1 -1
  162. package/lib/commands/page/custom/publish.js +1 -1
  163. package/lib/commands/page/custom/shared.js +1 -1
  164. package/lib/commands/page/custom/syntax.js +1 -1
  165. package/lib/commands/page/custom/update.js +1 -1
  166. package/lib/commands/page/data-list-status.js +1 -1
  167. package/lib/commands/page/generate-start.js +1 -1
  168. package/lib/commands/page/generate-status.js +1 -1
  169. package/lib/commands/page/index.js +1 -1
  170. package/lib/commands/page/pull.js +1 -1
  171. package/lib/commands/page/push.js +1 -1
  172. package/lib/commands/page/relation-audit.js +1 -1
  173. package/lib/commands/page/restore.js +1 -1
  174. package/lib/commands/page/shared.js +1 -1
  175. package/lib/commands/page/sync.js +1 -1
  176. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  177. package/lib/commands/project/create/format-elapsed.js +1 -1
  178. package/lib/commands/project/create/main.js +1 -1
  179. package/lib/commands/project/create/materialize-project-template.js +1 -1
  180. package/lib/commands/project/create/project-name.js +1 -1
  181. package/lib/commands/project/create/project-template-archive.js +1 -1
  182. package/lib/commands/project/create/project-template-path.js +1 -1
  183. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  184. package/lib/commands/project/create/use-format-code.js +1 -1
  185. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  186. package/lib/commands/project/domain-routing-sync.js +1 -1
  187. package/lib/commands/project/index.js +1 -1
  188. package/lib/commands/project/upgrade.js +1 -1
  189. package/lib/commands/registry.js +1 -1
  190. package/lib/commands/role/delete.js +1 -1
  191. package/lib/commands/role/detail.js +1 -1
  192. package/lib/commands/role/index.js +1 -1
  193. package/lib/commands/role/list.js +1 -1
  194. package/lib/commands/role/shared.js +1 -1
  195. package/lib/commands/role/update.js +1 -1
  196. package/lib/commands/role/user-add.js +1 -1
  197. package/lib/commands/role/user-remove.js +1 -1
  198. package/lib/commands/role/user-resolve.js +1 -1
  199. package/lib/commands/rule/get.js +1 -1
  200. package/lib/commands/rule/index.js +1 -1
  201. package/lib/commands/rule/list.js +1 -1
  202. package/lib/commands/rule/set.js +1 -1
  203. package/lib/commands/rule/shared.js +1 -1
  204. package/lib/commands/run/index.js +1 -1
  205. package/lib/commands/schema.js +1 -1
  206. package/lib/commands/sql/create.js +1 -1
  207. package/lib/commands/sql/delete.js +1 -1
  208. package/lib/commands/sql/detail.js +1 -1
  209. package/lib/commands/sql/exec.js +1 -1
  210. package/lib/commands/sql/index.js +1 -1
  211. package/lib/commands/sql/list.js +1 -1
  212. package/lib/commands/sql/pull.js +1 -1
  213. package/lib/commands/sql/push.js +1 -1
  214. package/lib/commands/sql/shared.js +1 -1
  215. package/lib/commands/sql/status.js +1 -1
  216. package/lib/commands/sql/validate.js +1 -1
  217. package/lib/commands/task/index.js +1 -1
  218. package/lib/commands/task/status.js +1 -1
  219. package/lib/commands/tenant/index.js +1 -1
  220. package/lib/commands/tenant/members-list.js +1 -1
  221. package/lib/commands/tenant/shared.js +1 -1
  222. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  223. package/lib/commands/user-account/index.js +1 -1
  224. package/lib/commands/workspace/add.js +1 -1
  225. package/lib/commands/workspace/index.js +1 -1
  226. package/lib/commands/workspace/remove.js +1 -1
  227. package/lib/config/domain-config.js +1 -1
  228. package/lib/config/project-domain-routing.js +1 -1
  229. package/lib/config/schema.js +1 -1
  230. package/lib/constant/cdn.js +1 -1
  231. package/lib/constant/cli.js +1 -1
  232. package/lib/constant/defaults.js +1 -1
  233. package/lib/constant/domain.js +1 -1
  234. package/lib/constant/env.js +1 -1
  235. package/lib/constant/output.js +1 -1
  236. package/lib/constant/paths.js +1 -1
  237. package/lib/constant/region.js +1 -1
  238. package/lib/constant/risk.js +1 -1
  239. package/lib/constant/routing-profile.js +1 -1
  240. package/lib/context/app-resolver.js +1 -1
  241. package/lib/context/auth-resolver.js +1 -1
  242. package/lib/context/config-loader.js +1 -1
  243. package/lib/context.js +1 -1
  244. package/lib/core/alias-resolver.js +1 -1
  245. package/lib/core/api-client.d.ts +0 -17
  246. package/lib/core/api-client.js +1 -1
  247. package/lib/core/bff/config.js +1 -1
  248. package/lib/core/bff/file-system.js +1 -1
  249. package/lib/core/bff/hash.js +1 -1
  250. package/lib/core/bff/lock.js +1 -1
  251. package/lib/core/bff/utils.js +1 -1
  252. package/lib/core/db-resolver.js +1 -1
  253. package/lib/core/instant-api-policy/config.js +1 -1
  254. package/lib/core/kb-search-client.js +1 -1
  255. package/lib/core/page/file-system.js +1 -1
  256. package/lib/core/page/hash.js +1 -1
  257. package/lib/core/page/lock.js +1 -1
  258. package/lib/core/sql-index-auditor.js +1 -1
  259. package/lib/core/sql-sync/config.js +1 -1
  260. package/lib/core/sql-sync/file-system.js +1 -1
  261. package/lib/core/sql-sync/hash.js +1 -1
  262. package/lib/core/sql-sync/lock.js +1 -1
  263. package/lib/core/sql-sync/utils.js +1 -1
  264. package/lib/core/sql-validator.js +1 -1
  265. package/lib/errors.js +1 -1
  266. package/lib/framework/build-all-flags.js +1 -1
  267. package/lib/framework/error-output.js +1 -1
  268. package/lib/framework/explicit-yes.js +1 -1
  269. package/lib/framework/flags.js +1 -1
  270. package/lib/framework/help.js +1 -1
  271. package/lib/framework/index.js +1 -1
  272. package/lib/framework/output.js +1 -1
  273. package/lib/framework/response.js +1 -1
  274. package/lib/framework/runner-alias.js +1 -1
  275. package/lib/framework/runner.js +1 -1
  276. package/lib/framework/schema-export.js +1 -1
  277. package/lib/framework/supported-flags.js +1 -1
  278. package/lib/framework/types.js +1 -1
  279. package/lib/generated/build-info.d.ts +4 -4
  280. package/lib/generated/build-info.js +1 -1
  281. package/lib/generated/official-routing.js +1 -1
  282. package/lib/generated/routing-contract.js +1 -1
  283. package/lib/help.js +1 -1
  284. package/lib/postinstall.js +1 -1
  285. package/lib/runtime/confirmation.js +1 -1
  286. package/lib/runtime/event.js +1 -1
  287. package/lib/runtime/index.js +1 -1
  288. package/lib/runtime/queue.js +1 -1
  289. package/lib/runtime/resolve.js +1 -1
  290. package/lib/skills/builtin-skill.js +1 -1
  291. package/lib/skills/main.js +1 -1
  292. package/lib/skills/npx-skills-add.js +1 -1
  293. package/lib/skills/skill-presence.js +1 -1
  294. package/lib/telemetry/cli-command-trace.js +1 -1
  295. package/lib/telemetry/cli-help-trace.js +1 -1
  296. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  297. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  298. package/lib/telemetry/send-cli-trace-log.js +1 -1
  299. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  300. package/lib/utils/ai_config.js +1 -1
  301. package/lib/utils/apply-jq-filter.js +1 -1
  302. package/lib/utils/cdn-config.js +1 -1
  303. package/lib/utils/check-sdk-version.js +1 -1
  304. package/lib/utils/cli-version-check.js +1 -1
  305. package/lib/utils/cli-version-policy.js +1 -1
  306. package/lib/utils/config.js +1 -1
  307. package/lib/utils/entity-with-id.js +1 -1
  308. package/lib/utils/file-utils.js +1 -1
  309. package/lib/utils/guides-cdn.js +1 -1
  310. package/lib/utils/http-client.js +1 -1
  311. package/lib/utils/is-non-interactive.js +1 -1
  312. package/lib/utils/logger.js +1 -1
  313. package/lib/utils/params.js +1 -1
  314. package/lib/utils/platform.js +1 -1
  315. package/lib/utils/sleep.js +1 -1
  316. package/lib/utils/template-replacer.js +1 -1
  317. package/lib/utils/update-notice.js +1 -1
  318. package/lib/utils/version.js +1 -1
  319. package/lib/utils/with-active-cookie.js +1 -1
  320. package/lib/utils/write-cli-side-channel.js +1 -1
  321. package/package.json +1 -1
  322. package/skills/rabetbase/SKILL.md +5 -6
  323. package/skills/rabetbase/references/rabetbase-deployment-sync-all.md +56 -0
  324. package/skills/rabetbase.manifest.json +4 -4
  325. package/lib/commands/deployment/auto-sync.d.ts +0 -20
  326. package/lib/commands/deployment/auto-sync.js +0 -1
  327. package/lib/commands/deployment/sync.d.ts +0 -2
  328. package/lib/commands/deployment/sync.js +0 -1
  329. package/skills/rabetbase/references/rabetbase-deployment-sync.md +0 -100
@@ -1 +1 @@
1
- const a294_0x27d610=a294_0x1b72;(function(_0x20f524,_0x5f09f1){const _0x4b22f8=a294_0x1b72,_0x509223=_0x20f524();while(!![]){try{const _0x344eb5=parseInt(_0x4b22f8(0x20a))/0x1+parseInt(_0x4b22f8(0x207))/0x2+-parseInt(_0x4b22f8(0x1dd))/0x3*(-parseInt(_0x4b22f8(0x1d2))/0x4)+-parseInt(_0x4b22f8(0x1d1))/0x5*(-parseInt(_0x4b22f8(0x1e8))/0x6)+-parseInt(_0x4b22f8(0x1e3))/0x7*(parseInt(_0x4b22f8(0x1d8))/0x8)+parseInt(_0x4b22f8(0x1df))/0x9+-parseInt(_0x4b22f8(0x1d0))/0xa;if(_0x344eb5===_0x5f09f1)break;else _0x509223['push'](_0x509223['shift']());}catch(_0x566dff){_0x509223['push'](_0x509223['shift']());}}}(a294_0x2145,0xbd7d6));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';function a294_0x2145(){const _0x5ed9be=['digest','name','reason','unverifiable','skills','Unsupported\x20Skill\x20entry:\x20','missing','every','join','1855468LOnyEf','present','flatMap','1110621mjKsfK','update','parse','state','version','absent','skipped','32729040Rsomze','5AqWKHQ','80452BWGdBq','rabetbase','hex','status','version_mismatch','SOURCE_INVALID','98584ldNAwi','error','sort','SKILL.md','length','75AWQnIz','content_mismatch','12740877XIQCLw',':\x5cs*(.+)$','Symbolic\x20link\x20is\x20not\x20allowed:\x20','message','742AkPjxE','rabetbase\x20cli-skill\x20install','skills@latest\x20exited\x20','package.json','split','8390754rrLMJm','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','VERIFY_FAILED','unknown','packageRoot','Unsafe\x20manifest\x20path:\x20','stdio','skillVersion','isDirectory','includes','INSTALL_FAILED','home','current','root','trim','path','packageVersion','utf8','sha256','startsWith','installedPath','manifest'];a294_0x2145=function(){return _0x5ed9be;};return a294_0x2145();}import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';function a294_0x1b72(_0x348954,_0x3ad9bd){_0x348954=_0x348954-0x1ce;const _0x214557=a294_0x2145();let _0x1b727a=_0x214557[_0x348954];return _0x1b727a;}const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a294_0x27d610(0x1e4),SKILL_NAME=a294_0x27d610(0x1d3);function frontmatterValue(_0x3034ea,_0x484054){const _0x1bcaf5=a294_0x27d610;return _0x3034ea['match'](new RegExp('^'+_0x484054+_0x1bcaf5(0x1e0),'m'))?.[0x1]?.[_0x1bcaf5(0x1f6)]()??'';}function listFiles(_0x4da8f2,_0x119817=_0x4da8f2){const _0x5174aa=a294_0x27d610;return readdirSync(_0x119817,{'withFileTypes':!![]})[_0x5174aa(0x209)](_0x58dcc4=>{const _0x450373=_0x5174aa,_0x2d9122=join(_0x119817,_0x58dcc4[_0x450373(0x1ff)]),_0x35754e=lstatSync(_0x2d9122);if(_0x35754e['isSymbolicLink']())throw new Error(_0x450373(0x1e1)+_0x2d9122);if(_0x35754e[_0x450373(0x1f0)]())return listFiles(_0x4da8f2,_0x2d9122);if(!_0x35754e['isFile']())throw new Error(_0x450373(0x203)+_0x2d9122);return[relative(_0x4da8f2,_0x2d9122)[_0x450373(0x1e7)](sep)[_0x450373(0x206)]('/')];})[_0x5174aa(0x1da)]((_0x2e7783,_0x3eed24)=>_0x2e7783<_0x3eed24?-0x1:_0x2e7783>_0x3eed24?0x1:0x0);}function digestFiles(_0x532e07,_0x41e590){const _0x471905=a294_0x27d610,_0x36138a=createHash(_0x471905(0x1fa));for(const _0x20a7ea of _0x41e590){if(_0x20a7ea[_0x471905(0x1fb)]('/')||_0x20a7ea[_0x471905(0x1e7)]('/')[_0x471905(0x1f1)]('..')||_0x20a7ea[_0x471905(0x1f1)]('\x5c'))throw new Error(_0x471905(0x1ed)+_0x20a7ea);_0x36138a[_0x471905(0x20b)](_0x20a7ea),_0x36138a[_0x471905(0x20b)]('\x00'),_0x36138a[_0x471905(0x20b)](readFileSync(join(_0x532e07,..._0x20a7ea[_0x471905(0x1e7)]('/')))),_0x36138a[_0x471905(0x20b)]('\x00');}return _0x36138a[_0x471905(0x1fe)](_0x471905(0x1d4));}function sameFiles(_0x146c16,_0x1f4075){const _0x373593=a294_0x27d610;return _0x146c16['length']===_0x1f4075[_0x373593(0x1dc)]&&_0x146c16[_0x373593(0x205)]((_0x3da72f,_0x577ae0)=>_0x3da72f===_0x1f4075[_0x577ae0]);}function readSource(_0x5e5b52){const _0x99199a=a294_0x27d610,_0x1088b6=JSON[_0x99199a(0x20c)](readFileSync(join(_0x5e5b52,_0x99199a(0x1e6)),_0x99199a(0x1f9))),_0x4df155=JSON[_0x99199a(0x20c)](readFileSync(join(_0x5e5b52,_0x99199a(0x202),'rabetbase.manifest.json'),'utf8')),_0x1cfc55=join(_0x5e5b52,_0x99199a(0x202),SKILL_NAME),_0x3e55f6=frontmatterValue(readFileSync(join(_0x1cfc55,_0x99199a(0x1db)),_0x99199a(0x1f9)),_0x99199a(0x20e)),_0x4bec33=listFiles(_0x1cfc55);if(_0x4df155['schemaVersion']!==0x1||_0x4df155[_0x99199a(0x1ff)]!==SKILL_NAME||!_0x1088b6['version']||_0x4df155[_0x99199a(0x1f8)]!==_0x1088b6[_0x99199a(0x20e)]||_0x4df155['skillVersion']!==_0x1088b6[_0x99199a(0x20e)]||_0x3e55f6!==_0x1088b6['version']||!sameFiles(_0x4bec33,_0x4df155['files'])||digestFiles(_0x1cfc55,_0x4bec33)!==_0x4df155[_0x99199a(0x1fe)])throw new Error(_0x99199a(0x1e9));return{'packageVersion':_0x1088b6[_0x99199a(0x20e)],'skillVersion':_0x3e55f6,'root':_0x1cfc55,'manifest':_0x4df155};}function installedSkillPath(_0xa5d249){const _0x37eab5=a294_0x27d610,_0x5221da=resolveInstalledSkill(SKILL_NAME,{'home':_0xa5d249});if(_0x5221da[_0x37eab5(0x20d)]===_0x37eab5(0x208))return{'state':'present','path':dirname(_0x5221da[_0x37eab5(0x1f7)])};if(_0x5221da['state']===_0x37eab5(0x1ce))return{'state':'missing'};return{'state':'unverifiable','reason':_0x5221da[_0x37eab5(0x200)]};}export function inspectInstalledBuiltinSkillVersion(_0x2bd3ef,_0x514255={}){const _0x41ee56=a294_0x27d610,_0x40646f=installedSkillPath(_0x514255['home']??homedir());if(_0x40646f[_0x41ee56(0x20d)]===_0x41ee56(0x204))return{'state':_0x41ee56(0x204),'expectedVersion':_0x2bd3ef,'repairCommand':REPAIR_COMMAND};if(_0x40646f[_0x41ee56(0x20d)]===_0x41ee56(0x201))return{'state':'unverifiable','expectedVersion':_0x2bd3ef,'reason':_0x40646f['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x507949=frontmatterValue(readFileSync(join(_0x40646f[_0x41ee56(0x1f7)],'SKILL.md'),_0x41ee56(0x1f9)),_0x41ee56(0x20e));return{'state':_0x507949===_0x2bd3ef?_0x41ee56(0x1f4):_0x41ee56(0x1d6),'expectedVersion':_0x2bd3ef,'skillVersion':_0x507949,'installedPath':_0x40646f[_0x41ee56(0x1f7)],'repairCommand':REPAIR_COMMAND};}catch(_0x2ce861){return{'state':'unverifiable','expectedVersion':_0x2bd3ef,'installedPath':_0x40646f[_0x41ee56(0x1f7)],'reason':_0x2ce861 instanceof Error?_0x2ce861[_0x41ee56(0x1e2)]:String(_0x2ce861),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x476816={}){const _0x274901=a294_0x27d610,_0x572ef5=_0x476816[_0x274901(0x1ec)]??DEFAULT_PACKAGE_ROOT;let _0x250798;try{_0x250798=readSource(_0x572ef5);}catch(_0x10fb00){return{'state':_0x274901(0x201),'packageVersion':_0x274901(0x1eb),'reason':_0x10fb00 instanceof Error?_0x10fb00['message']:String(_0x10fb00),'repairCommand':REPAIR_COMMAND};}const _0x1d24fd=installedSkillPath(_0x476816[_0x274901(0x1f3)]??homedir());if(_0x1d24fd[_0x274901(0x20d)]===_0x274901(0x204))return{'state':_0x274901(0x204),'packageVersion':_0x250798['packageVersion'],'repairCommand':REPAIR_COMMAND};if(_0x1d24fd['state']===_0x274901(0x201))return{'state':'unverifiable','packageVersion':_0x250798[_0x274901(0x1f8)],'reason':_0x1d24fd[_0x274901(0x200)],'repairCommand':REPAIR_COMMAND};try{const _0x540d07=frontmatterValue(readFileSync(join(_0x1d24fd[_0x274901(0x1f7)],_0x274901(0x1db)),_0x274901(0x1f9)),_0x274901(0x20e));if(_0x540d07!==_0x250798[_0x274901(0x1ef)])return{'state':'version_mismatch','packageVersion':_0x250798['packageVersion'],'skillVersion':_0x540d07,'installedPath':_0x1d24fd[_0x274901(0x1f7)],'repairCommand':REPAIR_COMMAND};const _0x51e84f=listFiles(_0x1d24fd[_0x274901(0x1f7)]),_0x35fbb6=digestFiles(_0x1d24fd['path'],_0x51e84f);return{'state':sameFiles(_0x51e84f,_0x250798['manifest']['files'])&&_0x35fbb6===_0x250798[_0x274901(0x1fd)][_0x274901(0x1fe)]?_0x274901(0x1f4):_0x274901(0x1de),'packageVersion':_0x250798[_0x274901(0x1f8)],'skillVersion':_0x540d07,'installedPath':_0x1d24fd[_0x274901(0x1f7)],'digest':_0x35fbb6,'repairCommand':REPAIR_COMMAND};}catch(_0x4e551d){return{'state':_0x274901(0x201),'packageVersion':_0x250798[_0x274901(0x1f8)],'installedPath':_0x1d24fd[_0x274901(0x1f7)],'reason':_0x4e551d instanceof Error?_0x4e551d[_0x274901(0x1e2)]:String(_0x4e551d),'repairCommand':REPAIR_COMMAND};}}function failure(_0xec86c,_0x5b9d23,_0x48017c,_0xdb00d0){const _0x67d8d7=a294_0x27d610;return{'ok':![],'code':_0xec86c,'packageVersion':_0x5b9d23[_0x67d8d7(0x1f8)],'skillVersion':_0x5b9d23[_0x67d8d7(0x1ef)],'installedPath':_0xdb00d0,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x48017c instanceof Error?_0x48017c[_0x67d8d7(0x1e2)]:String(_0x48017c)};}export function installBuiltinSkill(_0x4bb047={}){const _0x4c6415=a294_0x27d610,_0x1693bb=_0x4bb047['packageRoot']??DEFAULT_PACKAGE_ROOT,_0x9b482e=_0x4bb047[_0x4c6415(0x1f3)]??homedir();let _0x3459fa;try{_0x3459fa=readSource(_0x1693bb);}catch(_0x3905d2){return failure(_0x4c6415(0x1d7),{'packageVersion':'unknown','skillVersion':_0x4c6415(0x1eb)},_0x3905d2);}const _0x5dace5=inspectBuiltinSkill({'packageRoot':_0x1693bb,'home':_0x9b482e}),_0x59e25f=runNpxSkillsAddGlobal(_0x1693bb,_0x3459fa[_0x4c6415(0x1f5)],{'stdio':_0x4bb047[_0x4c6415(0x1ee)]??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x9b482e}});if(_0x59e25f[_0x4c6415(0x1cf)])return{'ok':!![],'packageVersion':_0x3459fa[_0x4c6415(0x1f8)],'skillVersion':_0x3459fa[_0x4c6415(0x1ef)],'installedPath':_0x5dace5[_0x4c6415(0x1fc)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x59e25f['ok'])return failure(_0x4c6415(0x1f2),_0x3459fa,_0x59e25f[_0x4c6415(0x1d9)]??_0x4c6415(0x1e5)+_0x59e25f[_0x4c6415(0x1d5)]);const _0x42d6e5=inspectBuiltinSkill({'packageRoot':_0x1693bb,'home':_0x9b482e});if(_0x42d6e5[_0x4c6415(0x20d)]!==_0x4c6415(0x1f4))return failure(_0x4c6415(0x1ea),_0x3459fa,_0x42d6e5[_0x4c6415(0x200)]??'Installed\x20Skill\x20state\x20is\x20'+_0x42d6e5[_0x4c6415(0x20d)],_0x42d6e5['installedPath']);return{'ok':!![],'packageVersion':_0x3459fa[_0x4c6415(0x1f8)],'skillVersion':_0x3459fa[_0x4c6415(0x1ef)],'installedPath':_0x42d6e5[_0x4c6415(0x1fc)],'changed':_0x5dace5['state']!=='current','repairCommand':REPAIR_COMMAND};}
1
+ (function(_0x3304c4,_0x39d63e){const _0x491ff6=a292_0x478c,_0x5f2428=_0x3304c4();while(!![]){try{const _0x557174=-parseInt(_0x491ff6(0x17b))/0x1+parseInt(_0x491ff6(0x160))/0x2*(parseInt(_0x491ff6(0x16d))/0x3)+-parseInt(_0x491ff6(0x149))/0x4*(parseInt(_0x491ff6(0x165))/0x5)+parseInt(_0x491ff6(0x169))/0x6+parseInt(_0x491ff6(0x179))/0x7+parseInt(_0x491ff6(0x15b))/0x8*(-parseInt(_0x491ff6(0x147))/0x9)+parseInt(_0x491ff6(0x14c))/0xa*(parseInt(_0x491ff6(0x17c))/0xb);if(_0x557174===_0x39d63e)break;else _0x5f2428['push'](_0x5f2428['shift']());}catch(_0x4fc46d){_0x5f2428['push'](_0x5f2428['shift']());}}}(a292_0x5d61,0x29a6d));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';function a292_0x5d61(){const _0x5af92c=['isDirectory','root','present','name','14HRsLht','Unsafe\x20manifest\x20path:\x20','schemaVersion','length','path','122545cRwIXZ','digest','state','missing','1468848oflzmI','pipe','unverifiable','version','33276ZPobVQ','flatMap','unknown','content_mismatch','skills@latest\x20exited\x20','status','package.json','skills','absent','version_mismatch','stdio','home','409920teTyDq','packageVersion','80360qIsXRm','22yazKPk','update','sha256','SKILL.md','Installed\x20Skill\x20state\x20is\x20','packageRoot','error','current','SOURCE_INVALID','isSymbolicLink','join','252ztQfcN','trim','36MWrMby','files','isFile','1053410tKnKmy','includes','installedPath','rabetbase.manifest.json','utf8','sort','match','message','skillVersion','split','Unsupported\x20Skill\x20entry:\x20','reason','parse','hex',':\x5cs*(.+)$','34328gWSMBB'];a292_0x5d61=function(){return _0x5af92c;};return a292_0x5d61();}import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND='rabetbase\x20cli-skill\x20install',SKILL_NAME='rabetbase';function frontmatterValue(_0x4b22a1,_0x48b202){const _0x1b9dd8=a292_0x478c;return _0x4b22a1[_0x1b9dd8(0x152)](new RegExp('^'+_0x48b202+_0x1b9dd8(0x15a),'m'))?.[0x1]?.[_0x1b9dd8(0x148)]()??'';}function listFiles(_0x3b595f,_0x1fe5c1=_0x3b595f){const _0x132960=a292_0x478c;return readdirSync(_0x1fe5c1,{'withFileTypes':!![]})[_0x132960(0x16e)](_0x7d5f63=>{const _0x5a5c6d=_0x132960,_0x4eee81=join(_0x1fe5c1,_0x7d5f63[_0x5a5c6d(0x15f)]),_0x3cbf3d=lstatSync(_0x4eee81);if(_0x3cbf3d[_0x5a5c6d(0x145)]())throw new Error('Symbolic\x20link\x20is\x20not\x20allowed:\x20'+_0x4eee81);if(_0x3cbf3d[_0x5a5c6d(0x15c)]())return listFiles(_0x3b595f,_0x4eee81);if(!_0x3cbf3d[_0x5a5c6d(0x14b)]())throw new Error(_0x5a5c6d(0x156)+_0x4eee81);return[relative(_0x3b595f,_0x4eee81)[_0x5a5c6d(0x155)](sep)[_0x5a5c6d(0x146)]('/')];})[_0x132960(0x151)]((_0x79315e,_0x17859c)=>_0x79315e<_0x17859c?-0x1:_0x79315e>_0x17859c?0x1:0x0);}function digestFiles(_0x360716,_0x4c21d9){const _0x4b80f5=a292_0x478c,_0x191431=createHash(_0x4b80f5(0x17e));for(const _0x27907e of _0x4c21d9){if(_0x27907e['startsWith']('/')||_0x27907e[_0x4b80f5(0x155)]('/')['includes']('..')||_0x27907e[_0x4b80f5(0x14d)]('\x5c'))throw new Error(_0x4b80f5(0x161)+_0x27907e);_0x191431[_0x4b80f5(0x17d)](_0x27907e),_0x191431[_0x4b80f5(0x17d)]('\x00'),_0x191431[_0x4b80f5(0x17d)](readFileSync(join(_0x360716,..._0x27907e[_0x4b80f5(0x155)]('/')))),_0x191431['update']('\x00');}return _0x191431[_0x4b80f5(0x166)](_0x4b80f5(0x159));}function sameFiles(_0x84b4cc,_0x5812bd){const _0xb2e66b=a292_0x478c;return _0x84b4cc[_0xb2e66b(0x163)]===_0x5812bd[_0xb2e66b(0x163)]&&_0x84b4cc['every']((_0x5583fd,_0x1e947c)=>_0x5583fd===_0x5812bd[_0x1e947c]);}function readSource(_0x336540){const _0x5ca4e7=a292_0x478c,_0x156b42=JSON['parse'](readFileSync(join(_0x336540,_0x5ca4e7(0x173)),_0x5ca4e7(0x150))),_0x3c9641=JSON[_0x5ca4e7(0x158)](readFileSync(join(_0x336540,'skills',_0x5ca4e7(0x14f)),_0x5ca4e7(0x150))),_0x16cf0e=join(_0x336540,_0x5ca4e7(0x174),SKILL_NAME),_0x511a57=frontmatterValue(readFileSync(join(_0x16cf0e,_0x5ca4e7(0x17f)),_0x5ca4e7(0x150)),_0x5ca4e7(0x16c)),_0x34967c=listFiles(_0x16cf0e);if(_0x3c9641[_0x5ca4e7(0x162)]!==0x1||_0x3c9641[_0x5ca4e7(0x15f)]!==SKILL_NAME||!_0x156b42[_0x5ca4e7(0x16c)]||_0x3c9641['packageVersion']!==_0x156b42['version']||_0x3c9641[_0x5ca4e7(0x154)]!==_0x156b42[_0x5ca4e7(0x16c)]||_0x511a57!==_0x156b42[_0x5ca4e7(0x16c)]||!sameFiles(_0x34967c,_0x3c9641[_0x5ca4e7(0x14a)])||digestFiles(_0x16cf0e,_0x34967c)!==_0x3c9641[_0x5ca4e7(0x166)])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x156b42[_0x5ca4e7(0x16c)],'skillVersion':_0x511a57,'root':_0x16cf0e,'manifest':_0x3c9641};}function a292_0x478c(_0xdabdb3,_0x5dc5bd){_0xdabdb3=_0xdabdb3-0x143;const _0x5d6112=a292_0x5d61();let _0x478c4d=_0x5d6112[_0xdabdb3];return _0x478c4d;}function installedSkillPath(_0x5d24e6){const _0x599314=a292_0x478c,_0x1ec3fd=resolveInstalledSkill(SKILL_NAME,{'home':_0x5d24e6});if(_0x1ec3fd['state']==='present')return{'state':_0x599314(0x15e),'path':dirname(_0x1ec3fd[_0x599314(0x164)])};if(_0x1ec3fd[_0x599314(0x167)]===_0x599314(0x175))return{'state':_0x599314(0x168)};return{'state':'unverifiable','reason':_0x1ec3fd[_0x599314(0x157)]};}export function inspectInstalledBuiltinSkillVersion(_0x160100,_0x18624b={}){const _0x183642=a292_0x478c,_0x3c1af4=installedSkillPath(_0x18624b[_0x183642(0x178)]??homedir());if(_0x3c1af4['state']==='missing')return{'state':_0x183642(0x168),'expectedVersion':_0x160100,'repairCommand':REPAIR_COMMAND};if(_0x3c1af4[_0x183642(0x167)]==='unverifiable')return{'state':'unverifiable','expectedVersion':_0x160100,'reason':_0x3c1af4[_0x183642(0x157)],'repairCommand':REPAIR_COMMAND};try{const _0xc88e41=frontmatterValue(readFileSync(join(_0x3c1af4[_0x183642(0x164)],_0x183642(0x17f)),'utf8'),_0x183642(0x16c));return{'state':_0xc88e41===_0x160100?'current':_0x183642(0x176),'expectedVersion':_0x160100,'skillVersion':_0xc88e41,'installedPath':_0x3c1af4[_0x183642(0x164)],'repairCommand':REPAIR_COMMAND};}catch(_0x5a112f){return{'state':_0x183642(0x16b),'expectedVersion':_0x160100,'installedPath':_0x3c1af4[_0x183642(0x164)],'reason':_0x5a112f instanceof Error?_0x5a112f[_0x183642(0x153)]:String(_0x5a112f),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x2f10ac={}){const _0x3466ea=a292_0x478c,_0x5683c2=_0x2f10ac[_0x3466ea(0x181)]??DEFAULT_PACKAGE_ROOT;let _0x3efb25;try{_0x3efb25=readSource(_0x5683c2);}catch(_0x1f6b14){return{'state':_0x3466ea(0x16b),'packageVersion':_0x3466ea(0x16f),'reason':_0x1f6b14 instanceof Error?_0x1f6b14['message']:String(_0x1f6b14),'repairCommand':REPAIR_COMMAND};}const _0x2899b2=installedSkillPath(_0x2f10ac[_0x3466ea(0x178)]??homedir());if(_0x2899b2['state']===_0x3466ea(0x168))return{'state':_0x3466ea(0x168),'packageVersion':_0x3efb25[_0x3466ea(0x17a)],'repairCommand':REPAIR_COMMAND};if(_0x2899b2[_0x3466ea(0x167)]===_0x3466ea(0x16b))return{'state':_0x3466ea(0x16b),'packageVersion':_0x3efb25[_0x3466ea(0x17a)],'reason':_0x2899b2[_0x3466ea(0x157)],'repairCommand':REPAIR_COMMAND};try{const _0x4c464f=frontmatterValue(readFileSync(join(_0x2899b2[_0x3466ea(0x164)],'SKILL.md'),'utf8'),_0x3466ea(0x16c));if(_0x4c464f!==_0x3efb25[_0x3466ea(0x154)])return{'state':'version_mismatch','packageVersion':_0x3efb25[_0x3466ea(0x17a)],'skillVersion':_0x4c464f,'installedPath':_0x2899b2[_0x3466ea(0x164)],'repairCommand':REPAIR_COMMAND};const _0x5ec8c8=listFiles(_0x2899b2[_0x3466ea(0x164)]),_0x43bcba=digestFiles(_0x2899b2[_0x3466ea(0x164)],_0x5ec8c8);return{'state':sameFiles(_0x5ec8c8,_0x3efb25['manifest'][_0x3466ea(0x14a)])&&_0x43bcba===_0x3efb25['manifest'][_0x3466ea(0x166)]?_0x3466ea(0x143):_0x3466ea(0x170),'packageVersion':_0x3efb25[_0x3466ea(0x17a)],'skillVersion':_0x4c464f,'installedPath':_0x2899b2['path'],'digest':_0x43bcba,'repairCommand':REPAIR_COMMAND};}catch(_0x12572a){return{'state':_0x3466ea(0x16b),'packageVersion':_0x3efb25[_0x3466ea(0x17a)],'installedPath':_0x2899b2[_0x3466ea(0x164)],'reason':_0x12572a instanceof Error?_0x12572a[_0x3466ea(0x153)]:String(_0x12572a),'repairCommand':REPAIR_COMMAND};}}function failure(_0x2e06b6,_0x494c96,_0x5a791e,_0x43a6dc){const _0x5c073b=a292_0x478c;return{'ok':![],'code':_0x2e06b6,'packageVersion':_0x494c96[_0x5c073b(0x17a)],'skillVersion':_0x494c96[_0x5c073b(0x154)],'installedPath':_0x43a6dc,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x5a791e instanceof Error?_0x5a791e[_0x5c073b(0x153)]:String(_0x5a791e)};}export function installBuiltinSkill(_0x377604={}){const _0x4c8270=a292_0x478c,_0x57db21=_0x377604[_0x4c8270(0x181)]??DEFAULT_PACKAGE_ROOT,_0x1291a4=_0x377604[_0x4c8270(0x178)]??homedir();let _0x2eef74;try{_0x2eef74=readSource(_0x57db21);}catch(_0x1520dc){return failure(_0x4c8270(0x144),{'packageVersion':_0x4c8270(0x16f),'skillVersion':_0x4c8270(0x16f)},_0x1520dc);}const _0x3d4b0f=inspectBuiltinSkill({'packageRoot':_0x57db21,'home':_0x1291a4}),_0x51c108=runNpxSkillsAddGlobal(_0x57db21,_0x2eef74[_0x4c8270(0x15d)],{'stdio':_0x377604[_0x4c8270(0x177)]??_0x4c8270(0x16a),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x1291a4}});if(_0x51c108['skipped'])return{'ok':!![],'packageVersion':_0x2eef74[_0x4c8270(0x17a)],'skillVersion':_0x2eef74[_0x4c8270(0x154)],'installedPath':_0x3d4b0f['installedPath'],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x51c108['ok'])return failure('INSTALL_FAILED',_0x2eef74,_0x51c108[_0x4c8270(0x182)]??_0x4c8270(0x171)+_0x51c108[_0x4c8270(0x172)]);const _0x5ed240=inspectBuiltinSkill({'packageRoot':_0x57db21,'home':_0x1291a4});if(_0x5ed240[_0x4c8270(0x167)]!==_0x4c8270(0x143))return failure('VERIFY_FAILED',_0x2eef74,_0x5ed240[_0x4c8270(0x157)]??_0x4c8270(0x180)+_0x5ed240[_0x4c8270(0x167)],_0x5ed240[_0x4c8270(0x14e)]);return{'ok':!![],'packageVersion':_0x2eef74[_0x4c8270(0x17a)],'skillVersion':_0x2eef74[_0x4c8270(0x154)],'installedPath':_0x5ed240[_0x4c8270(0x14e)],'changed':_0x3d4b0f[_0x4c8270(0x167)]!=='current','repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- (function(_0x196742,_0x587f6b){const _0x11ea55=a295_0xa364,_0x53f5db=_0x196742();while(!![]){try{const _0xd636fa=parseInt(_0x11ea55(0x107))/0x1+-parseInt(_0x11ea55(0x106))/0x2+-parseInt(_0x11ea55(0x10b))/0x3*(parseInt(_0x11ea55(0xf3))/0x4)+-parseInt(_0x11ea55(0x102))/0x5*(-parseInt(_0x11ea55(0xee))/0x6)+-parseInt(_0x11ea55(0xfb))/0x7+parseInt(_0x11ea55(0xf5))/0x8*(-parseInt(_0x11ea55(0x10f))/0x9)+-parseInt(_0x11ea55(0xfc))/0xa*(-parseInt(_0x11ea55(0x108))/0xb);if(_0xd636fa===_0x587f6b)break;else _0x53f5db['push'](_0x53f5db['shift']());}catch(_0x460761){_0x53f5db['push'](_0x53f5db['shift']());}}}(a295_0x498c,0x6c617));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a295_0xa364(_0x292d6e,_0x4b021a){_0x292d6e=_0x292d6e-0xee;const _0x498ca0=a295_0x498c();let _0xa36471=_0x498ca0[_0x292d6e];return _0xa36471;}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x3ce07f){const _0x398e32=a295_0xa364,_0xd7e59=[];for(const [_0x2c346a,_0x573163]of Object['entries'](_0x3ce07f)){if(_0x573163===!![]){const _0x14e54b=_0x2c346a[_0x398e32(0x110)](/([A-Z])/g,_0x398e32(0x109))[_0x398e32(0x105)]();_0xd7e59['push'](_0x14e54b);}}return _0xd7e59;}export function parseDynamicFlags(){const _0x169fb2=a295_0xa364,_0x12c443=[];for(let _0x27f77d=0x3;_0x27f77d<process[_0x169fb2(0xf7)]['length'];_0x27f77d++){const _0x1e577=process['argv'][_0x27f77d];if(_0x1e577&&_0x1e577[_0x169fb2(0xfd)]('--')){const _0x4ff816=_0x1e577['slice'](0x2);_0x4ff816&&!_0x4ff816[_0x169fb2(0xff)]('=')&&_0x12c443[_0x169fb2(0xf9)](_0x4ff816);}}return _0x12c443;}function a295_0x498c(){const _0x2fe9b7=['4398910gNJCwD','startsWith','setLogPath','includes','exit','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','15905nQrOCv','has','help','toLowerCase','558142OCOPzy','190033yvIzsc','44RHwaij','-$1','log','3ZEEjND','Unsupported\x20command:\x20','error','skill','7975161DHgHsu','replace','dangerously-bff-save','1674hCkEIj','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','--help','(empty)','\x0aAvailable\x20commands:','2642260mJvuyP','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','8xMnczk','enable-bff-save','argv','add','push','cwd','3971828ldwvOa'];a295_0x498c=function(){return _0x2fe9b7;};return a295_0x498c();}export function getAllProvidedFlags(_0x1f43a1){const _0xe17ebf=camelCaseFlagsToKebab(_0x1f43a1),_0x279658=parseDynamicFlags(),_0x4d9842=new Set([..._0xe17ebf,..._0x279658]);return Array['from'](_0x4d9842);}export function normalizeLegacyBffSaveFlags(_0x26b885){const _0x5ca0d2=a295_0xa364,_0x5d2d96=new Set(_0x26b885);return _0x5d2d96[_0x5ca0d2(0x103)](_0x5ca0d2(0x111))&&_0x5d2d96[_0x5ca0d2(0xf8)](_0x5ca0d2(0xf6)),Array['from'](_0x5d2d96);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x529eda,_0x511f24,_0x499611){const _0x301f86=a295_0xa364;logger[_0x301f86(0xfe)](process[_0x301f86(0xfa)]());if(_0x499611?.[_0x301f86(0x104)]||_0x529eda===_0x301f86(0xf0)){showHelp();return;}console[_0x301f86(0x10d)]('Error:\x20Unsupported\x20command:\x20'+(_0x529eda||_0x301f86(0xf1))),console[_0x301f86(0x10a)](_0x301f86(0xf2)),console[_0x301f86(0x10a)]('\x20\x20'+CLI_BIN_NAME+_0x301f86(0x101)),console[_0x301f86(0x10a)](''),console[_0x301f86(0x10a)]('Public\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x301f86(0x10d)](_0x301f86(0x10e),_0x301f86(0x10c)+_0x529eda),process[_0x301f86(0x100)](0x1);}function showHelp(){const _0x5eff6c=a295_0xa364;console['log'](_0x5eff6c(0xef)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x5eff6c(0xf4));}
1
+ (function(_0x16f62c,_0x47f198){const _0x360048=a293_0x382d,_0x2d234f=_0x16f62c();while(!![]){try{const _0x2d5165=-parseInt(_0x360048(0x178))/0x1*(-parseInt(_0x360048(0x169))/0x2)+-parseInt(_0x360048(0x16f))/0x3+-parseInt(_0x360048(0x179))/0x4*(-parseInt(_0x360048(0x164))/0x5)+parseInt(_0x360048(0x156))/0x6+parseInt(_0x360048(0x168))/0x7+parseInt(_0x360048(0x160))/0x8*(parseInt(_0x360048(0x167))/0x9)+-parseInt(_0x360048(0x170))/0xa;if(_0x2d5165===_0x47f198)break;else _0x2d234f['push'](_0x2d234f['shift']());}catch(_0x385da1){_0x2d234f['push'](_0x2d234f['shift']());}}}(a293_0x2dd8,0x8b69b));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(_0x65aad7){const _0x4cb1cf=a293_0x382d,_0x1724ff=[];for(const [_0x1ff956,_0x31b108]of Object[_0x4cb1cf(0x155)](_0x65aad7)){if(_0x31b108===!![]){const _0x61a07d=_0x1ff956[_0x4cb1cf(0x173)](/([A-Z])/g,_0x4cb1cf(0x163))[_0x4cb1cf(0x176)]();_0x1724ff['push'](_0x61a07d);}}return _0x1724ff;}function a293_0x382d(_0xf689f1,_0x2ef3e3){_0xf689f1=_0xf689f1-0x153;const _0x2dd821=a293_0x2dd8();let _0x382d1d=_0x2dd821[_0xf689f1];return _0x382d1d;}export function parseDynamicFlags(){const _0x26c348=a293_0x382d,_0x4b6af5=[];for(let _0x54547f=0x3;_0x54547f<process['argv'][_0x26c348(0x171)];_0x54547f++){const _0xf27541=process[_0x26c348(0x161)][_0x54547f];if(_0xf27541&&_0xf27541[_0x26c348(0x172)]('--')){const _0x88601a=_0xf27541[_0x26c348(0x153)](0x2);_0x88601a&&!_0x88601a[_0x26c348(0x15b)]('=')&&_0x4b6af5['push'](_0x88601a);}}return _0x4b6af5;}export function getAllProvidedFlags(_0x130dbe){const _0xe397dd=a293_0x382d,_0x29c1f5=camelCaseFlagsToKebab(_0x130dbe),_0x4553ca=parseDynamicFlags(),_0x4b594d=new Set([..._0x29c1f5,..._0x4553ca]);return Array[_0xe397dd(0x154)](_0x4b594d);}export function normalizeLegacyBffSaveFlags(_0x20b195){const _0x2f2afa=a293_0x382d,_0x38aad6=new Set(_0x20b195);return _0x38aad6[_0x2f2afa(0x159)](_0x2f2afa(0x16b))&&_0x38aad6[_0x2f2afa(0x15a)](_0x2f2afa(0x15d)),Array[_0x2f2afa(0x154)](_0x38aad6);}function a293_0x2dd8(){const _0xa36fa0=['\x0aAvailable\x20commands:','962928hzVyBn','3330922YuSdZN','2ehXEKl','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','dangerously-bff-save','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','--help','error','1525479lLCudP','29102160AFYCAK','length','startsWith','replace','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','help','toLowerCase','skill','1021463iKzGyk','466924yXzBHJ','slice','from','entries','5499810cMurPb','Public\x20Open\x20Skill\x20source:\x20','Error:\x20Unsupported\x20command:\x20','has','add','includes','cwd','enable-bff-save','(empty)','exit','48aULYXr','argv','log','-$1','40oUfFgJ','setLogPath'];a293_0x2dd8=function(){return _0xa36fa0;};return a293_0x2dd8();}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x410b02,_0x150a24,_0x2382ab){const _0x40086e=a293_0x382d;logger[_0x40086e(0x165)](process[_0x40086e(0x15c)]());if(_0x2382ab?.[_0x40086e(0x175)]||_0x410b02===_0x40086e(0x16d)){showHelp();return;}console[_0x40086e(0x16e)](_0x40086e(0x158)+(_0x410b02||_0x40086e(0x15e))),console[_0x40086e(0x162)](_0x40086e(0x166)),console[_0x40086e(0x162)]('\x20\x20'+CLI_BIN_NAME+_0x40086e(0x174)),console[_0x40086e(0x162)](''),console['log'](_0x40086e(0x157)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x40086e(0x16e)](_0x40086e(0x177),'Unsupported\x20command:\x20'+_0x410b02),process[_0x40086e(0x15f)](0x1);}function showHelp(){const _0x391c07=a293_0x382d;console[_0x391c07(0x162)](_0x391c07(0x16a)+CLI_BIN_NAME+_0x391c07(0x16c)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a');}
@@ -1 +1 @@
1
- const a296_0x4ae83e=a296_0x1ebc;(function(_0x1b6c7e,_0x5efae0){const _0x1ff2ef=a296_0x1ebc,_0x4000de=_0x1b6c7e();while(!![]){try{const _0x6b218d=parseInt(_0x1ff2ef(0x185))/0x1*(-parseInt(_0x1ff2ef(0x191))/0x2)+parseInt(_0x1ff2ef(0x186))/0x3+-parseInt(_0x1ff2ef(0x1b3))/0x4+-parseInt(_0x1ff2ef(0x187))/0x5*(parseInt(_0x1ff2ef(0x1a9))/0x6)+parseInt(_0x1ff2ef(0x188))/0x7+-parseInt(_0x1ff2ef(0x19c))/0x8*(-parseInt(_0x1ff2ef(0x18d))/0x9)+-parseInt(_0x1ff2ef(0x19b))/0xa*(-parseInt(_0x1ff2ef(0x1b9))/0xb);if(_0x6b218d===_0x5efae0)break;else _0x4000de['push'](_0x4000de['shift']());}catch(_0x3fe3a3){_0x4000de['push'](_0x4000de['shift']());}}}(a296_0x7749,0xbd6a0));import{execaSync}from'execa';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';function a296_0x1ebc(_0x3eb110,_0x25a258){_0x3eb110=_0x3eb110-0x184;const _0x7749f4=a296_0x7749();let _0x1ebc47=_0x7749f4[_0x3eb110];return _0x1ebc47;}export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a296_0x4ae83e(0x192);export const NPX_SKILLS_SUBCOMMAND_ADD=a296_0x4ae83e(0x194);export const NPX_SKILLS_FLAG_SKILL=a296_0x4ae83e(0x1ba);function a296_0x7749(){const _0x583a91=['shortMessage','expectedSkillName','1096028uiYVYK','pipe','lovrabet/rabetbase','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','npm_config_global','state','2333606vDdVXu','--skill','EACCES','Installer\x20reported\x20','stderr','unknown','npx','30652bduTyA','1885581KNGwgd','3345ydTEoY','1743098aLJrLK','yes','present','EPERM','unverifiable','512811VBFFkL','npx\x20failed\x20to\x20start','rabetbase','message','66YLSlwM','skills@latest','SKILL_NOT_INSTALLED','add','exitCode','stdio','match','CHILD_TERMINATED','ENOENT','push','10ADNOro','208JDKmAs','stdout','filter','remove','SPAWN_FAILED','exit\x20','Lovrabet','Skill\x20\x22','signal','trim','code','\x20failed\x20target(s)','skill','4572GGOglm','join','checked','log','inherit','\x22\x20install\x20state:\x20','presence','npx\x20terminated\x20by\x20signal\x20'];a296_0x7749=function(){return _0x583a91;};return a296_0x7749();}export const RABETBASE_SKILL_SOURCE=a296_0x4ae83e(0x1b5);export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a296_0x4ae83e(0x1a2);export const RABETBASE_GLOBAL_SKILL_NAME=a296_0x4ae83e(0x18f);export const RABETBASE_SKILL_GIT_SOURCE=a296_0x4ae83e(0x1b6);export function resolveGlobalSkillName(_0x1d1620){switch(_0x1d1620['trim']()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x37ce60){const _0x487bcf=a296_0x4ae83e,_0xf94497=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x37ce60&&_0xf94497[_0x487bcf(0x19a)](NPX_SKILLS_FLAG_SKILL,_0x37ce60),_0xf94497;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a296_0x4ae83e(0x184),...buildNpxSkillsAddArgv()][a296_0x4ae83e(0x1aa)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a296_0x4ae83e(0x184),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a296_0x4ae83e(0x1aa)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x390ae0,_0x373c87,_0x17d1ab){return{'ok':![],'status':_0x373c87,'code':_0x390ae0,'error':'['+_0x390ae0+']\x20'+_0x17d1ab};}function execaOptions(_0x4b0f35,_0x2641ce){const _0x49eb53=a296_0x4ae83e,_0x281ed0={...process.env};return delete _0x281ed0[_0x49eb53(0x1b7)],delete _0x281ed0['NPM_CONFIG_GLOBAL'],{'cwd':_0x4b0f35,'stdio':_0x2641ce,'env':_0x281ed0,'extendEnv':![],'shell':![],'reject':![],..._0x2641ce===_0x49eb53(0x1b4)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0x1ced08,_0x550ccd,_0x5b8567,_0x3134db){const _0x2a735a=a296_0x4ae83e,_0x180367=[_0x1ced08[_0x2a735a(0x19d)]?String(_0x1ced08[_0x2a735a(0x19d)]):'',_0x1ced08[_0x2a735a(0x1bd)]?String(_0x1ced08[_0x2a735a(0x1bd)]):''][_0x2a735a(0x19e)](Boolean)[_0x2a735a(0x1aa)]('\x0a')[_0x2a735a(0x1a5)](),_0x14e59c=_0x1ced08[_0x2a735a(0x195)]??null;_0x3134db!==_0x2a735a(0x1b4)&&_0x180367&&console[_0x2a735a(0x1ac)](_0x180367);if(_0x1ced08[_0x2a735a(0x1a6)]){const _0x1bce7d=_0x1ced08['code']===_0x2a735a(0x199)?'NPX_NOT_FOUND':_0x1ced08[_0x2a735a(0x1a6)]===_0x2a735a(0x18b)||_0x1ced08[_0x2a735a(0x1a6)]===_0x2a735a(0x1bb)?'PERMISSION_DENIED':_0x2a735a(0x1a0);return failure(_0x1bce7d,_0x14e59c,_0x1ced08[_0x2a735a(0x1b1)]??_0x1ced08['message']??_0x1ced08[_0x2a735a(0x1a6)]);}if(_0x1ced08[_0x2a735a(0x1a4)])return failure(_0x2a735a(0x198),_0x14e59c,_0x2a735a(0x1b0)+_0x1ced08[_0x2a735a(0x1a4)]);if(_0x1ced08['failed']&&_0x14e59c===null)return failure(_0x2a735a(0x1a0),_0x14e59c,_0x1ced08[_0x2a735a(0x1b1)]??_0x1ced08[_0x2a735a(0x190)]??_0x2a735a(0x18e));if(_0x14e59c!==0x0)return failure('CHILD_EXIT_NONZERO',_0x14e59c,_0x180367||_0x1ced08[_0x2a735a(0x1b1)]||_0x2a735a(0x1a1)+(_0x14e59c??_0x2a735a(0x1be)));const _0x253661=_0x550ccd?resolveInstalledSkill(_0x550ccd,_0x5b8567):undefined,_0x53388b=_0x180367[_0x2a735a(0x197)](/Failed to install\s+(\d+)/i);if(_0x53388b&&Number(_0x53388b[0x1])>0x0){const _0x170dff=_0x2a735a(0x1bc)+_0x53388b[0x1]+_0x2a735a(0x1a7)+(_0x180367?':\x0a'+_0x180367:'');if(_0x253661?.[_0x2a735a(0x1b8)]===_0x2a735a(0x18a))return console['warn']('!\x20'+_0x170dff),{'ok':!![],'status':0x0};return failure('INSTALL_PARTIAL',0x0,_0x170dff);}if(_0x253661){if(_0x253661[_0x2a735a(0x1b8)]==='absent')return failure(_0x2a735a(0x193),0x0,_0x2a735a(0x1a3)+_0x550ccd+'\x22\x20not\x20found\x20after\x20install\x20(checked\x20'+_0x253661[_0x2a735a(0x1ab)][_0x2a735a(0x1aa)](',\x20')+')');_0x253661[_0x2a735a(0x1b8)]===_0x2a735a(0x18c)&&console['warn']('!\x20Could\x20not\x20verify\x20\x22'+_0x550ccd+_0x2a735a(0x1ae)+_0x253661['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x3c5394,_0x3a9f89){const _0xf1d75a=a296_0x4ae83e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x7deb4a=_0x3a9f89?.[_0xf1d75a(0x196)]??_0xf1d75a(0x1ad),_0x31034f=buildNpxSkillsAddArgv(_0x3a9f89?.[_0xf1d75a(0x1a8)]),_0x34c39c=['npx',..._0x31034f][_0xf1d75a(0x1aa)]('\x20');console[_0xf1d75a(0x1ac)]('*\x20'+_0x34c39c);const _0x26babb=execaSync('npx',_0x31034f,execaOptions(_0x3c5394,_0x7deb4a));return normalizeExecaResult(_0x26babb,undefined,undefined,_0x7deb4a);}export function runNpxSkillsRemove(_0x5dbe9a,_0x450125,_0x263cac=LEGACY_RABETBASE_SKILL_SOURCE){const _0xe5c340=a296_0x4ae83e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x55bb3a=_0x450125?.[_0xe5c340(0x196)]??_0xe5c340(0x1ad),_0x2ea1ee=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0xe5c340(0x19f),_0x263cac,NPX_SKILLS_FLAG_SKILL,_0x450125?.[_0xe5c340(0x1a8)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x450125?.[_0xe5c340(0x189)]?['-y']:[]],_0x2991de=[_0xe5c340(0x184),..._0x2ea1ee][_0xe5c340(0x1aa)]('\x20');console[_0xe5c340(0x1ac)]('*\x20'+_0x2991de);const _0x43dba1=execaSync(_0xe5c340(0x184),_0x2ea1ee,execaOptions(_0x5dbe9a,_0x55bb3a));return normalizeExecaResult(_0x43dba1,undefined,undefined,_0x55bb3a);}export function runNpxSkillsAddGlobal(_0x3c0776,_0x27a3c4,_0x5053e7){const _0x51fc42=a296_0x4ae83e;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x14a36f=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x27a3c4,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x39f1ac=[_0x51fc42(0x184),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x27a3c4,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x51fc42(0x1aa)]('\x20');console[_0x51fc42(0x1ac)]('*\x20'+_0x39f1ac);const _0x3d17f1=execaSync(_0x51fc42(0x184),_0x14a36f,execaOptions(_0x3c0776,_0x51fc42(0x1b4)));return normalizeExecaResult(_0x3d17f1,_0x5053e7?.[_0x51fc42(0x1b2)]??resolveGlobalSkillName(_0x27a3c4),_0x5053e7?.[_0x51fc42(0x1af)],_0x5053e7?.[_0x51fc42(0x196)]);}
1
+ const a294_0x43f511=a294_0x5cd6;(function(_0x4b0612,_0x3b0178){const _0x51ccf9=a294_0x5cd6,_0x13cef3=_0x4b0612();while(!![]){try{const _0x283e63=-parseInt(_0x51ccf9(0xf7))/0x1*(parseInt(_0x51ccf9(0x119))/0x2)+-parseInt(_0x51ccf9(0x11b))/0x3*(-parseInt(_0x51ccf9(0x11f))/0x4)+-parseInt(_0x51ccf9(0x129))/0x5*(-parseInt(_0x51ccf9(0x106))/0x6)+-parseInt(_0x51ccf9(0x10a))/0x7+-parseInt(_0x51ccf9(0x131))/0x8*(-parseInt(_0x51ccf9(0xfd))/0x9)+parseInt(_0x51ccf9(0x102))/0xa+-parseInt(_0x51ccf9(0x11e))/0xb;if(_0x283e63===_0x3b0178)break;else _0x13cef3['push'](_0x13cef3['shift']());}catch(_0x1ffde2){_0x13cef3['push'](_0x13cef3['shift']());}}}(a294_0x4be9,0x7b3d6));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=a294_0x43f511(0x10f);function a294_0x4be9(){const _0xff9005=['9715288AXDWbN','2595444sYYMbJ','checked','CHILD_EXIT_NONZERO','rabetbase','expectedSkillName','message','stdio','shortMessage','npx','SPAWN_FAILED','2265oIcMrg','remove','PERMISSION_DENIED','Skill\x20\x22','pipe','stdout','npm_config_global','present','4104104UNtnXH','match','SKILL_NOT_INSTALLED','trim','Lovrabet','183405yfNGBs','signal','join','\x22\x20install\x20state:\x20','npx\x20failed\x20to\x20start','CHILD_TERMINATED','9tVGwox','stderr','NPM_CONFIG_GLOBAL','--skill','EACCES','2817300PVbYtt','push','Installer\x20reported\x20','INSTALL_PARTIAL','9474xqOGeN','inherit','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','\x20failed\x20target(s)','260911ALscpt','failed','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','code','skill','skills@latest','filter','absent','NPX_NOT_FOUND','exitCode','npx\x20terminated\x20by\x20signal\x20','state','lovrabet/lovrabet-skill','warn','log','8mSJWCT','ENOENT','3MniBmV','!\x20Could\x20not\x20verify\x20\x22','exit\x20'];a294_0x4be9=function(){return _0xff9005;};return a294_0x4be9();}export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a294_0x43f511(0x100);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a294_0x43f511(0x116);export const DEFAULT_RABETBASE_SKILL_NAME=a294_0x43f511(0xf6);export const RABETBASE_GLOBAL_SKILL_NAME=a294_0x43f511(0x122);export const RABETBASE_SKILL_GIT_SOURCE=a294_0x43f511(0x108);export function resolveGlobalSkillName(_0x31b529){const _0x21f836=a294_0x43f511;switch(_0x31b529[_0x21f836(0xf5)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x1653cb){const _0x358bc8=a294_0x43f511,_0x580673=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x1653cb&&_0x580673[_0x358bc8(0x103)](NPX_SKILLS_FLAG_SKILL,_0x1653cb),_0x580673;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a294_0x43f511(0x127),...buildNpxSkillsAddArgv()][a294_0x43f511(0xf9)]('\x20');function a294_0x5cd6(_0x40bcfc,_0x4b41c7){_0x40bcfc=_0x40bcfc-0xf3;const _0x4be91c=a294_0x4be9();let _0x5cd652=_0x4be91c[_0x40bcfc];return _0x5cd652;}export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a294_0x43f511(0x127),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 failure(_0x4207b1,_0x13a472,_0x13c760){return{'ok':![],'status':_0x13a472,'code':_0x4207b1,'error':'['+_0x4207b1+']\x20'+_0x13c760};}function execaOptions(_0x1136c0,_0xa42a4c){const _0x2365d=a294_0x43f511,_0x695e7={...process.env};return delete _0x695e7[_0x2365d(0x12f)],delete _0x695e7[_0x2365d(0xff)],{'cwd':_0x1136c0,'stdio':_0xa42a4c,'env':_0x695e7,'extendEnv':![],'shell':![],'reject':![],..._0xa42a4c===_0x2365d(0x12d)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0x5d3149,_0x2ee818,_0x45b429,_0x52b907){const _0x142bc2=a294_0x43f511,_0x59a4c8=[_0x5d3149[_0x142bc2(0x12e)]?String(_0x5d3149['stdout']):'',_0x5d3149[_0x142bc2(0xfe)]?String(_0x5d3149['stderr']):''][_0x142bc2(0x110)](Boolean)[_0x142bc2(0xf9)]('\x0a')[_0x142bc2(0xf5)](),_0x46265c=_0x5d3149[_0x142bc2(0x113)]??null;_0x52b907!==_0x142bc2(0x12d)&&_0x59a4c8&&console[_0x142bc2(0x118)](_0x59a4c8);if(_0x5d3149[_0x142bc2(0x10d)]){const _0x169ed7=_0x5d3149['code']===_0x142bc2(0x11a)?_0x142bc2(0x112):_0x5d3149['code']==='EPERM'||_0x5d3149[_0x142bc2(0x10d)]===_0x142bc2(0x101)?_0x142bc2(0x12b):_0x142bc2(0x128);return failure(_0x169ed7,_0x46265c,_0x5d3149[_0x142bc2(0x126)]??_0x5d3149[_0x142bc2(0x124)]??_0x5d3149[_0x142bc2(0x10d)]);}if(_0x5d3149[_0x142bc2(0xf8)])return failure(_0x142bc2(0xfc),_0x46265c,_0x142bc2(0x114)+_0x5d3149[_0x142bc2(0xf8)]);if(_0x5d3149[_0x142bc2(0x10b)]&&_0x46265c===null)return failure(_0x142bc2(0x128),_0x46265c,_0x5d3149[_0x142bc2(0x126)]??_0x5d3149[_0x142bc2(0x124)]??_0x142bc2(0xfb));if(_0x46265c!==0x0)return failure(_0x142bc2(0x121),_0x46265c,_0x59a4c8||_0x5d3149[_0x142bc2(0x126)]||_0x142bc2(0x11d)+(_0x46265c??'unknown'));const _0x374e13=_0x2ee818?resolveInstalledSkill(_0x2ee818,_0x45b429):undefined,_0x15bb6b=_0x59a4c8[_0x142bc2(0xf3)](/Failed to install\s+(\d+)/i);if(_0x15bb6b&&Number(_0x15bb6b[0x1])>0x0){const _0x497c91=_0x142bc2(0x104)+_0x15bb6b[0x1]+_0x142bc2(0x109)+(_0x59a4c8?':\x0a'+_0x59a4c8:'');if(_0x374e13?.[_0x142bc2(0x115)]===_0x142bc2(0x130))return console[_0x142bc2(0x117)]('!\x20'+_0x497c91),{'ok':!![],'status':0x0};return failure(_0x142bc2(0x105),0x0,_0x497c91);}if(_0x374e13){if(_0x374e13[_0x142bc2(0x115)]===_0x142bc2(0x111))return failure(_0x142bc2(0xf4),0x0,_0x142bc2(0x12c)+_0x2ee818+_0x142bc2(0x10c)+_0x374e13[_0x142bc2(0x120)][_0x142bc2(0xf9)](',\x20')+')');_0x374e13[_0x142bc2(0x115)]==='unverifiable'&&console['warn'](_0x142bc2(0x11c)+_0x2ee818+_0x142bc2(0xfa)+_0x374e13['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x1c228f,_0x296091){const _0x381869=a294_0x43f511;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4f7f86=_0x296091?.[_0x381869(0x125)]??'inherit',_0x419215=buildNpxSkillsAddArgv(_0x296091?.[_0x381869(0x10e)]),_0x41df10=[_0x381869(0x127),..._0x419215]['join']('\x20');console[_0x381869(0x118)]('*\x20'+_0x41df10);const _0x50d1aa=execaSync(_0x381869(0x127),_0x419215,execaOptions(_0x1c228f,_0x4f7f86));return normalizeExecaResult(_0x50d1aa,undefined,undefined,_0x4f7f86);}export function runNpxSkillsRemove(_0x41a74f,_0x4b97e0,_0x3393a0=LEGACY_RABETBASE_SKILL_SOURCE){const _0x328b70=a294_0x43f511;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5d0682=_0x4b97e0?.[_0x328b70(0x125)]??_0x328b70(0x107),_0xf16122=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x328b70(0x12a),_0x3393a0,NPX_SKILLS_FLAG_SKILL,_0x4b97e0?.[_0x328b70(0x10e)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x4b97e0?.['yes']?['-y']:[]],_0x2da9b2=['npx',..._0xf16122][_0x328b70(0xf9)]('\x20');console[_0x328b70(0x118)]('*\x20'+_0x2da9b2);const _0x11b430=execaSync(_0x328b70(0x127),_0xf16122,execaOptions(_0x41a74f,_0x5d0682));return normalizeExecaResult(_0x11b430,undefined,undefined,_0x5d0682);}export function runNpxSkillsAddGlobal(_0x381813,_0x58317f,_0x16dff5){const _0x3fcc81=a294_0x43f511;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x41f44e=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x58317f,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x323b5e=[_0x3fcc81(0x127),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x58317f,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x3fcc81(0xf9)]('\x20');console[_0x3fcc81(0x118)]('*\x20'+_0x323b5e);const _0x348dd7=execaSync('npx',_0x41f44e,execaOptions(_0x381813,_0x3fcc81(0x12d)));return normalizeExecaResult(_0x348dd7,_0x16dff5?.[_0x3fcc81(0x123)]??resolveGlobalSkillName(_0x58317f),_0x16dff5?.['presence'],_0x16dff5?.['stdio']);}
@@ -1 +1 @@
1
- const a297_0x4a8cde=a297_0xca28;(function(_0x4a1976,_0xd6c6b6){const _0x334518=a297_0xca28,_0x156b6a=_0x4a1976();while(!![]){try{const _0x36e270=parseInt(_0x334518(0x99))/0x1*(parseInt(_0x334518(0x91))/0x2)+parseInt(_0x334518(0x94))/0x3*(-parseInt(_0x334518(0x89))/0x4)+-parseInt(_0x334518(0x81))/0x5+-parseInt(_0x334518(0x8f))/0x6*(parseInt(_0x334518(0x83))/0x7)+-parseInt(_0x334518(0x9b))/0x8*(parseInt(_0x334518(0x97))/0x9)+parseInt(_0x334518(0x7d))/0xa+-parseInt(_0x334518(0x8a))/0xb;if(_0x36e270===_0xd6c6b6)break;else _0x156b6a['push'](_0x156b6a['shift']());}catch(_0x9e35b5){_0x156b6a['push'](_0x156b6a['shift']());}}}(a297_0x371a,0xcba8e));import{existsSync,readFileSync}from'node:fs';function a297_0x371a(){const _0x133996=['SKILL.md','2402660eArEFx','globalSkillsDirs','583681bPCHQy','unverifiable','unusable','skills','lockFile','message','892qpKWxn','877767BOSvOB','not-recorded','.skill-lock.json','number','\x20records\x20\x22','6bnncZt','\x20is\x20unreadable:\x20','583546HcBuAA','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','join','11721EPIkpi','recorded','home','1615257aGAwll','reason','5dhKcSw','parse','8eKYUMy','present','utf8','absent','kind','\x20uses\x20unsupported\x20version\x20','version','.agents','\x20has\x20no\x20skills\x20map','10697710TICpMn','object','map'];a297_0x371a=function(){return _0x133996;};return a297_0x371a();}import{homedir}from'node:os';import{join}from'node:path';function a297_0xca28(_0xef8813,_0x4a94dd){_0xef8813=_0xef8813-0x7a;const _0x371ae6=a297_0x371a();let _0xca2819=_0x371ae6[_0xef8813];return _0xca2819;}export const SKILL_LOCK_RELATIVE_PATH=join(a297_0x4a8cde(0x7b),a297_0x4a8cde(0x8c));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a297_0x4a8cde(0x7b),'skills'),join('.claude','skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x51ee38,_0x553d65){const _0xde889b=a297_0x4a8cde;if(!existsSync(_0x51ee38))return{'kind':_0xde889b(0x8b)};let _0x3aeffa;try{_0x3aeffa=JSON[_0xde889b(0x9a)](readFileSync(_0x51ee38,_0xde889b(0x9d)));}catch(_0x3401e6){return{'kind':_0xde889b(0x85),'reason':_0x51ee38+_0xde889b(0x90)+_0x3401e6[_0xde889b(0x88)]};}const _0x1d7c94=_0x3aeffa;if(typeof _0x1d7c94?.['version']!==_0xde889b(0x8d)||!SUPPORTED_LOCK_VERSIONS['includes'](_0x1d7c94[_0xde889b(0x7a)]))return{'kind':_0xde889b(0x85),'reason':_0x51ee38+_0xde889b(0xa0)+String(_0x1d7c94?.[_0xde889b(0x7a)])};if(!_0x1d7c94[_0xde889b(0x86)]||typeof _0x1d7c94[_0xde889b(0x86)]!==_0xde889b(0x7e))return{'kind':_0xde889b(0x85),'reason':_0x51ee38+_0xde889b(0x7c)};return _0x1d7c94['skills'][_0x553d65]?{'kind':_0xde889b(0x95)}:{'kind':_0xde889b(0x8b)};}export function resolveInstalledSkill(_0xb26f99,_0x3aefb3){const _0xd0acad=a297_0x4a8cde,_0x467931=_0x3aefb3?.[_0xd0acad(0x96)]??homedir(),_0x3f7b0d=_0x3aefb3?.[_0xd0acad(0x82)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0xd0acad(0x7f)](_0x52223f=>join(_0x467931,_0x52223f)),_0x23409c=_0x3aefb3?.[_0xd0acad(0x87)]??join(_0x467931,SKILL_LOCK_RELATIVE_PATH),_0xfbf62f=_0x3f7b0d[_0xd0acad(0x7f)](_0x2f231e=>join(_0x2f231e,_0xb26f99,_0xd0acad(0x80))),_0x3f20a9=_0xfbf62f['find'](_0x5c25f8=>existsSync(_0x5c25f8));if(_0x3f20a9)return{'state':_0xd0acad(0x9c),'path':_0x3f20a9};const _0x21eb2b=readLockLookup(_0x23409c,_0xb26f99);if(_0x21eb2b[_0xd0acad(0x9f)]===_0xd0acad(0x85))return{'state':_0xd0acad(0x84),'reason':_0x21eb2b[_0xd0acad(0x98)]};if(_0x21eb2b[_0xd0acad(0x9f)]===_0xd0acad(0x95))return{'state':_0xd0acad(0x84),'reason':_0x23409c+_0xd0acad(0x8e)+_0xb26f99+_0xd0acad(0x92)+('('+_0xfbf62f[_0xd0acad(0x93)](',\x20')+')')};return{'state':_0xd0acad(0x9e),'checked':_0xfbf62f};}
1
+ const a295_0x116f03=a295_0x3f63;(function(_0x40052e,_0x80ef7){const _0x11b40f=a295_0x3f63,_0x54701c=_0x40052e();while(!![]){try{const _0x147917=-parseInt(_0x11b40f(0x1a2))/0x1*(-parseInt(_0x11b40f(0x1aa))/0x2)+-parseInt(_0x11b40f(0x18f))/0x3*(parseInt(_0x11b40f(0x1a7))/0x4)+-parseInt(_0x11b40f(0x19c))/0x5+-parseInt(_0x11b40f(0x1a4))/0x6+parseInt(_0x11b40f(0x197))/0x7+parseInt(_0x11b40f(0x188))/0x8+-parseInt(_0x11b40f(0x19e))/0x9*(-parseInt(_0x11b40f(0x191))/0xa);if(_0x147917===_0x80ef7)break;else _0x54701c['push'](_0x54701c['shift']());}catch(_0x4227ac){_0x54701c['push'](_0x54701c['shift']());}}}(a295_0x52f6,0x6944b));function a295_0x3f63(_0x23c5f,_0x525a95){_0x23c5f=_0x23c5f-0x187;const _0x52f606=a295_0x52f6();let _0x3f63ea=_0x52f606[_0x23c5f];return _0x3f63ea;}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join('.agents',a295_0x116f03(0x1a1));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a295_0x116f03(0x1a0),a295_0x116f03(0x198)),join('.claude',a295_0x116f03(0x198))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x34f964,_0x64b382){const _0x2d4fe1=a295_0x116f03;if(!existsSync(_0x34f964))return{'kind':'not-recorded'};let _0xc2d272;try{_0xc2d272=JSON['parse'](readFileSync(_0x34f964,_0x2d4fe1(0x19f)));}catch(_0x341c73){return{'kind':_0x2d4fe1(0x1a8),'reason':_0x34f964+_0x2d4fe1(0x199)+_0x341c73[_0x2d4fe1(0x18c)]};}const _0x520130=_0xc2d272;if(typeof _0x520130?.[_0x2d4fe1(0x19b)]!=='number'||!SUPPORTED_LOCK_VERSIONS[_0x2d4fe1(0x187)](_0x520130[_0x2d4fe1(0x19b)]))return{'kind':_0x2d4fe1(0x1a8),'reason':_0x34f964+_0x2d4fe1(0x1ab)+String(_0x520130?.[_0x2d4fe1(0x19b)])};if(!_0x520130[_0x2d4fe1(0x198)]||typeof _0x520130[_0x2d4fe1(0x198)]!==_0x2d4fe1(0x18a))return{'kind':'unusable','reason':_0x34f964+'\x20has\x20no\x20skills\x20map'};return _0x520130[_0x2d4fe1(0x198)][_0x64b382]?{'kind':'recorded'}:{'kind':_0x2d4fe1(0x196)};}function a295_0x52f6(){const _0x4f6951=['unusable','absent','8458LUqBCx','\x20uses\x20unsupported\x20version\x20','includes','1334760XqLOGT','home','object','globalSkillsDirs','message','present','unverifiable','12OAbTRg','SKILL.md','30JNeTsi','reason','recorded','kind','map','not-recorded','4816294xYgbUq','skills','\x20is\x20unreadable:\x20','lockFile','version','1390085YqBNgy','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','1661571RUmbTa','utf8','.agents','.skill-lock.json','133xzKRqs','\x20records\x20\x22','2975406DUOIEM','join','find','766104hLoQyg'];a295_0x52f6=function(){return _0x4f6951;};return a295_0x52f6();}export function resolveInstalledSkill(_0x4bcffe,_0x1dc5c9){const _0x22beba=a295_0x116f03,_0x2e4827=_0x1dc5c9?.[_0x22beba(0x189)]??homedir(),_0x10a442=_0x1dc5c9?.[_0x22beba(0x18b)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x22beba(0x195)](_0x189cee=>join(_0x2e4827,_0x189cee)),_0x1c775a=_0x1dc5c9?.[_0x22beba(0x19a)]??join(_0x2e4827,SKILL_LOCK_RELATIVE_PATH),_0x41eb3e=_0x10a442[_0x22beba(0x195)](_0x59f1ae=>join(_0x59f1ae,_0x4bcffe,_0x22beba(0x190))),_0x421970=_0x41eb3e[_0x22beba(0x1a6)](_0x2ff6b2=>existsSync(_0x2ff6b2));if(_0x421970)return{'state':_0x22beba(0x18d),'path':_0x421970};const _0xf161a3=readLockLookup(_0x1c775a,_0x4bcffe);if(_0xf161a3[_0x22beba(0x194)]===_0x22beba(0x1a8))return{'state':'unverifiable','reason':_0xf161a3[_0x22beba(0x192)]};if(_0xf161a3['kind']===_0x22beba(0x193))return{'state':_0x22beba(0x18e),'reason':_0x1c775a+_0x22beba(0x1a3)+_0x4bcffe+_0x22beba(0x19d)+('('+_0x41eb3e[_0x22beba(0x1a5)](',\x20')+')')};return{'state':_0x22beba(0x1a9),'checked':_0x41eb3e};}
@@ -1 +1 @@
1
- (function(_0x331e44,_0xf95b1d){const _0x1b921a=a298_0x1cf8,_0x2c8e9b=_0x331e44();while(!![]){try{const _0x4a12a7=-parseInt(_0x1b921a(0x8a))/0x1+-parseInt(_0x1b921a(0x97))/0x2*(-parseInt(_0x1b921a(0x9b))/0x3)+parseInt(_0x1b921a(0x8e))/0x4+-parseInt(_0x1b921a(0x89))/0x5+-parseInt(_0x1b921a(0x8f))/0x6*(parseInt(_0x1b921a(0x8c))/0x7)+-parseInt(_0x1b921a(0x93))/0x8*(-parseInt(_0x1b921a(0x94))/0x9)+-parseInt(_0x1b921a(0x90))/0xa*(-parseInt(_0x1b921a(0x98))/0xb);if(_0x4a12a7===_0xf95b1d)break;else _0x2c8e9b['push'](_0x2c8e9b['shift']());}catch(_0x55e94b){_0x2c8e9b['push'](_0x2c8e9b['shift']());}}}(a298_0x4103,0x7fe2e));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a298_0x1cf8(_0x31d07f,_0x2c5ad6){_0x31d07f=_0x31d07f-0x88;const _0x41037e=a298_0x4103();let _0x1cf885=_0x41037e[_0x31d07f];return _0x1cf885;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x214cef){const _0x2d55e3=a298_0x1cf8;return SENSITIVE_PATTERNS[_0x2d55e3(0x8d)](_0x1a2a1d=>_0x1a2a1d['test'](_0x214cef));}function a298_0x4103(){const _0x30fb11=['error','135741rbDoZh','entries','4592700lYsAFe','761577BaxVww','stringify','21gBDASq','some','2544712PBuHVZ','167724dRPlmC','31550Clzsit','durationMs','command','336AgrbAL','141831Nxhsqt','service','rabetbase.command','10RiIxcr','2662ixfPWX','flags'];a298_0x4103=function(){return _0x30fb11;};return a298_0x4103();}function sanitizeFlags(_0x55e0a4){const _0x122f8a=a298_0x1cf8,_0x1911d3={};for(const [_0xd4fbad,_0x355fc9]of Object[_0x122f8a(0x88)](_0x55e0a4)){isSensitiveKey(_0xd4fbad)?_0x1911d3[_0xd4fbad]=_0x355fc9!=null&&_0x355fc9!==''?'[REDACTED]':_0x355fc9:_0x1911d3[_0xd4fbad]=_0x355fc9;}return _0x1911d3;}export async function reportCommandTrace(_0x305d79){const _0x9153c2=a298_0x1cf8;try{const _0x4f352c=sanitizeFlags(_0x305d79[_0x9153c2(0x99)]);await sendCliTraceLog({'spanName':_0x9153c2(0x96),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x305d79[_0x9153c2(0x95)],'command.name':_0x305d79[_0x9153c2(0x92)],'command.flags':JSON[_0x9153c2(0x8b)](_0x4f352c),..._0x305d79['durationMs']!=null?{'command.duration_ms':_0x305d79[_0x9153c2(0x91)]}:{},..._0x305d79[_0x9153c2(0x9a)]?{'command.error':_0x305d79['error']instanceof Error?_0x305d79[_0x9153c2(0x9a)]['message']:String(_0x305d79[_0x9153c2(0x9a)])}:{}}});}catch{}}
1
+ (function(_0x3a0244,_0x3d34b9){const _0x5c869c=a296_0x2bec,_0x5e991f=_0x3a0244();while(!![]){try{const _0x501636=parseInt(_0x5c869c(0x96))/0x1*(-parseInt(_0x5c869c(0xa1))/0x2)+parseInt(_0x5c869c(0x9e))/0x3+parseInt(_0x5c869c(0x98))/0x4+parseInt(_0x5c869c(0x99))/0x5+parseInt(_0x5c869c(0x9f))/0x6*(parseInt(_0x5c869c(0x9a))/0x7)+parseInt(_0x5c869c(0x94))/0x8+-parseInt(_0x5c869c(0x9b))/0x9;if(_0x501636===_0x3d34b9)break;else _0x5e991f['push'](_0x5e991f['shift']());}catch(_0x4729dd){_0x5e991f['push'](_0x5e991f['shift']());}}}(a296_0xe309,0xba0ba));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(_0x315826){const _0x391f2f=a296_0x2bec;return SENSITIVE_PATTERNS['some'](_0x33e809=>_0x33e809[_0x391f2f(0x91)](_0x315826));}function a296_0xe309(){const _0x1f8ec5=['entries','error','4724368SaMpdD','command','8948adpPnR','stringify','695360WHtYoI','4682780wFZsoi','42PXCeNW','17142642LxLuMO','durationMs','message','2264664SLmVlt','685194GuHXBj','rabetbase.command','106nUJzdE','service','flags','test'];a296_0xe309=function(){return _0x1f8ec5;};return a296_0xe309();}function a296_0x2bec(_0x2c2e87,_0x1b1f8e){_0x2c2e87=_0x2c2e87-0x91;const _0xe30952=a296_0xe309();let _0x2bec53=_0xe30952[_0x2c2e87];return _0x2bec53;}function sanitizeFlags(_0x50e776){const _0x24577d=a296_0x2bec,_0x16ac07={};for(const [_0x5c6166,_0x5db7bd]of Object[_0x24577d(0x92)](_0x50e776)){isSensitiveKey(_0x5c6166)?_0x16ac07[_0x5c6166]=_0x5db7bd!=null&&_0x5db7bd!==''?'[REDACTED]':_0x5db7bd:_0x16ac07[_0x5c6166]=_0x5db7bd;}return _0x16ac07;}export async function reportCommandTrace(_0x43f0a4){const _0x1a9df6=a296_0x2bec;try{const _0x2a19f7=sanitizeFlags(_0x43f0a4[_0x1a9df6(0xa3)]);await sendCliTraceLog({'spanName':_0x1a9df6(0xa0),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x43f0a4[_0x1a9df6(0xa2)],'command.name':_0x43f0a4[_0x1a9df6(0x95)],'command.flags':JSON[_0x1a9df6(0x97)](_0x2a19f7),..._0x43f0a4[_0x1a9df6(0x9c)]!=null?{'command.duration_ms':_0x43f0a4[_0x1a9df6(0x9c)]}:{},..._0x43f0a4['error']?{'command.error':_0x43f0a4[_0x1a9df6(0x93)]instanceof Error?_0x43f0a4[_0x1a9df6(0x93)][_0x1a9df6(0x9d)]:String(_0x43f0a4['error'])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x2c3cef,_0x2e6731){var _0xf3b8f7=a299_0x4445,_0x3c53e4=_0x2c3cef();while(!![]){try{var _0x2e38fe=-parseInt(_0xf3b8f7(0x147))/0x1+parseInt(_0xf3b8f7(0x141))/0x2*(-parseInt(_0xf3b8f7(0x13f))/0x3)+parseInt(_0xf3b8f7(0x143))/0x4+-parseInt(_0xf3b8f7(0x145))/0x5+parseInt(_0xf3b8f7(0x144))/0x6+-parseInt(_0xf3b8f7(0x149))/0x7+parseInt(_0xf3b8f7(0x148))/0x8*(parseInt(_0xf3b8f7(0x146))/0x9);if(_0x2e38fe===_0x2e6731)break;else _0x3c53e4['push'](_0x3c53e4['shift']());}catch(_0x5cb93c){_0x3c53e4['push'](_0x3c53e4['shift']());}}}(a299_0x31db,0xc2cec));function a299_0x31db(){var _0x50d7ee=['738kUGSyS','584569mASUAQ','72368WEvkFA','1757651NlSszo','Failed\x20to\x20report\x20CLI\x20help\x20trace:','251835mAxBmp','service','14FeQmit','cli.help','3614136XPPAlA','4399992dWEkSh','787145fwxcME'];a299_0x31db=function(){return _0x50d7ee;};return a299_0x31db();}function a299_0x4445(_0x2ac34c,_0x3e76b7){_0x2ac34c=_0x2ac34c-0x13e;var _0x31db07=a299_0x31db();var _0x44459f=_0x31db07[_0x2ac34c];return _0x44459f;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x35c1e9,_0x5adacc){var _0x5e6ff9=a299_0x4445;try{await sendCliTraceLog({'spanName':_0x5e6ff9(0x142),'logData':{'rabetbase.help.kind':_0x35c1e9,..._0x5adacc?.[_0x5e6ff9(0x140)]&&{'rabetbase.help.service':_0x5adacc['service']}}});}catch(_0x14d824){console['error'](_0x5e6ff9(0x13e),_0x14d824);}}
1
+ function a297_0x2e62(_0x1386bf,_0x343b6f){_0x1386bf=_0x1386bf-0x159;var _0x2eb40c=a297_0x2eb4();var _0x2e62d6=_0x2eb40c[_0x1386bf];return _0x2e62d6;}function a297_0x2eb4(){var _0x116d00=['30830wpUWVB','1632915HiAwmd','2hJVXJc','162wEydZZ','error','169632zCWKVb','72605wutIty','Failed\x20to\x20report\x20CLI\x20help\x20trace:','cli.help','2610816XStEGT','473451XfhTcA','service','2018891nVZaMj'];a297_0x2eb4=function(){return _0x116d00;};return a297_0x2eb4();}(function(_0x10a64a,_0xe4c08e){var _0x49334e=a297_0x2e62,_0x6b79a3=_0x10a64a();while(!![]){try{var _0x14e760=parseInt(_0x49334e(0x163))/0x1+-parseInt(_0x49334e(0x15f))/0x2*(parseInt(_0x49334e(0x15a))/0x3)+parseInt(_0x49334e(0x162))/0x4+-parseInt(_0x49334e(0x15d))/0x5*(parseInt(_0x49334e(0x160))/0x6)+parseInt(_0x49334e(0x15c))/0x7+parseInt(_0x49334e(0x159))/0x8+-parseInt(_0x49334e(0x15e))/0x9;if(_0x14e760===_0xe4c08e)break;else _0x6b79a3['push'](_0x6b79a3['shift']());}catch(_0x4d049b){_0x6b79a3['push'](_0x6b79a3['shift']());}}}(a297_0x2eb4,0x36b2c));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x575483,_0x368e7b){var _0x237bae=a297_0x2e62;try{await sendCliTraceLog({'spanName':_0x237bae(0x165),'logData':{'rabetbase.help.kind':_0x575483,..._0x368e7b?.[_0x237bae(0x15b)]&&{'rabetbase.help.service':_0x368e7b[_0x237bae(0x15b)]}}});}catch(_0x537479){console[_0x237bae(0x161)](_0x237bae(0x164),_0x537479);}}
@@ -1 +1 @@
1
- (function(_0x5e0847,_0x4c2f66){const _0x584c34=a300_0x5536,_0x1ee8b2=_0x5e0847();while(!![]){try{const _0x55fed7=parseInt(_0x584c34(0x13a))/0x1*(-parseInt(_0x584c34(0x141))/0x2)+-parseInt(_0x584c34(0x140))/0x3*(parseInt(_0x584c34(0x13b))/0x4)+-parseInt(_0x584c34(0x136))/0x5+parseInt(_0x584c34(0x135))/0x6*(-parseInt(_0x584c34(0x12f))/0x7)+parseInt(_0x584c34(0x130))/0x8*(-parseInt(_0x584c34(0x137))/0x9)+parseInt(_0x584c34(0x133))/0xa*(-parseInt(_0x584c34(0x13e))/0xb)+parseInt(_0x584c34(0x132))/0xc;if(_0x55fed7===_0x4c2f66)break;else _0x1ee8b2['push'](_0x1ee8b2['shift']());}catch(_0xf6a425){_0x1ee8b2['push'](_0x1ee8b2['shift']());}}}(a300_0x531e,0xae452));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a300_0x5536(_0x1ee945,_0x5717a6){_0x1ee945=_0x1ee945-0x12f;const _0x531e78=a300_0x531e();let _0x553613=_0x531e78[_0x1ee945];return _0x553613;}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 _0x5dde3d=a300_0x5536,_0x40ce3a=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x10e646=_0x40ce3a?.[_0x5dde3d(0x139)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x5dde3d(0x13f)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x5dde3d(0x131):'production')}),setUserContext({'id':_0x10e646?.['id'],'username':_0x10e646?.[_0x5dde3d(0x138)],'nickname':_0x10e646?.['nickname'],'email':_0x10e646?.[_0x5dde3d(0x134)],'tenantCode':_0x10e646?.[_0x5dde3d(0x13d)]?.[_0x5dde3d(0x13c)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x40ce3a;}function a300_0x531e(){const _0x1fc89e=['tenant','64339HPCYyk','unknown','55143lNyRpg','40hcciCD','4319fNHVCY','152HjmTYE','daily','58108752rWFBmf','1070udBdaH','email','4566qMCcGK','6152930QzchIo','252405oNPmAy','username','user','40512xQUJUt','100pipjcy','tenant_code'];a300_0x531e=function(){return _0x1fc89e;};return a300_0x531e();}
1
+ (function(_0x43de19,_0x291bb5){const _0x1eda85=a298_0xe1dd,_0x4cd70a=_0x43de19();while(!![]){try{const _0x2e6040=-parseInt(_0x1eda85(0x9c))/0x1*(-parseInt(_0x1eda85(0x9b))/0x2)+parseInt(_0x1eda85(0x9d))/0x3+parseInt(_0x1eda85(0x96))/0x4*(parseInt(_0x1eda85(0x9a))/0x5)+-parseInt(_0x1eda85(0x90))/0x6+-parseInt(_0x1eda85(0x98))/0x7+-parseInt(_0x1eda85(0x99))/0x8+parseInt(_0x1eda85(0x92))/0x9*(parseInt(_0x1eda85(0x8d))/0xa);if(_0x2e6040===_0x291bb5)break;else _0x4cd70a['push'](_0x4cd70a['shift']());}catch(_0x3d3d4e){_0x4cd70a['push'](_0x4cd70a['shift']());}}}(a298_0x2326,0x3337b));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a298_0x2326(){const _0x39a877=['tenant_code','4LQMsbe','username','1850583xYdhjf','46792KpzFOp','401615JMkFxw','4XbzjgE','79970euYRcY','58923ZgvfrA','447210AfWGxa','nickname','user','21024FqCase','production','45fZOsKH','tenant','daily'];a298_0x2326=function(){return _0x39a877;};return a298_0x2326();}function a298_0xe1dd(_0x5cc843,_0xdc08c4){_0x5cc843=_0x5cc843-0x8d;const _0x23261c=a298_0x2326();let _0xe1dd51=_0x23261c[_0x5cc843];return _0xe1dd51;}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 _0x68ae98=a298_0xe1dd,_0xfd69c4=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0xabff5=_0xfd69c4?.[_0x68ae98(0x8f)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x68ae98(0x94):_0x68ae98(0x91))}),setUserContext({'id':_0xabff5?.['id'],'username':_0xabff5?.[_0x68ae98(0x97)],'nickname':_0xabff5?.[_0x68ae98(0x8e)],'email':_0xabff5?.['email'],'tenantCode':_0xabff5?.[_0x68ae98(0x93)]?.[_0x68ae98(0x95)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0xfd69c4;}
@@ -1 +1 @@
1
- function a301_0x29fd(_0xa86f7f,_0x1ac22a){_0xa86f7f=_0xa86f7f-0x191;const _0x186042=a301_0x1860();let _0x29fd1d=_0x186042[_0xa86f7f];return _0x29fd1d;}(function(_0x95a3fe,_0x1a8eda){const _0x152bcf=a301_0x29fd,_0xc2c51b=_0x95a3fe();while(!![]){try{const _0x4f8e8f=-parseInt(_0x152bcf(0x194))/0x1+parseInt(_0x152bcf(0x19d))/0x2+-parseInt(_0x152bcf(0x199))/0x3+parseInt(_0x152bcf(0x197))/0x4*(parseInt(_0x152bcf(0x19b))/0x5)+-parseInt(_0x152bcf(0x198))/0x6*(parseInt(_0x152bcf(0x193))/0x7)+parseInt(_0x152bcf(0x195))/0x8*(parseInt(_0x152bcf(0x19c))/0x9)+parseInt(_0x152bcf(0x196))/0xa;if(_0x4f8e8f===_0x1a8eda)break;else _0xc2c51b['push'](_0xc2c51b['shift']());}catch(_0x575cf3){_0xc2c51b['push'](_0xc2c51b['shift']());}}}(a301_0x1860,0x5bc6b));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a301_0x1860(){const _0x46197b=['371626cQkOqp','once','SIGINT','56VbuFAG','720726HfVhzM','8456aTAgLn','11341010WhTxUE','2765912fdBRFo','292914uyfwHz','2121180utZyAd','exit','5haFKjX','1557wFEFsL'];a301_0x1860=function(){return _0x46197b;};return a301_0x1860();}export function registerOtelShutdownOnExit(){const _0x2a0d78=a301_0x29fd;process[_0x2a0d78(0x191)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x5a1829=()=>{const _0x9d125e=_0x2a0d78;void flushOtelNodeIfUsed()['then'](()=>process[_0x9d125e(0x19a)](0x0));};process[_0x2a0d78(0x191)](_0x2a0d78(0x192),_0x5a1829),process['once']('SIGTERM',_0x5a1829);}export async function exitWithOtelShutdown(_0x55fe46){const _0x300ee0=a301_0x29fd;await flushOtelNodeIfUsed(),process[_0x300ee0(0x19a)](_0x55fe46);}
1
+ (function(_0x37dcae,_0x3faf34){const _0x24ce85=a299_0x8490,_0x5d405b=_0x37dcae();while(!![]){try{const _0x45d3db=-parseInt(_0x24ce85(0x1b2))/0x1+parseInt(_0x24ce85(0x1af))/0x2+parseInt(_0x24ce85(0x1ac))/0x3+parseInt(_0x24ce85(0x1ad))/0x4*(parseInt(_0x24ce85(0x1ab))/0x5)+parseInt(_0x24ce85(0x1b0))/0x6+parseInt(_0x24ce85(0x1b3))/0x7*(-parseInt(_0x24ce85(0x1ae))/0x8)+parseInt(_0x24ce85(0x1b7))/0x9*(-parseInt(_0x24ce85(0x1b6))/0xa);if(_0x45d3db===_0x3faf34)break;else _0x5d405b['push'](_0x5d405b['shift']());}catch(_0x5f1d0f){_0x5d405b['push'](_0x5d405b['shift']());}}}(a299_0x5b65,0x9d84a));function a299_0x5b65(){const _0x2af23f=['5656380AouPmk','exit','1235654vCpBnP','7aZkvyK','SIGTERM','once','2420BBxIoE','17487rapDCe','then','5LJhbPF','1742880OdyJoU','974492DQNFtl','3493488YizzFu','2040854hxISlx'];a299_0x5b65=function(){return _0x2af23f;};return a299_0x5b65();}function a299_0x8490(_0x45f15d,_0x4eed0b){_0x45f15d=_0x45f15d-0x1aa;const _0x5b657c=a299_0x5b65();let _0x849052=_0x5b657c[_0x45f15d];return _0x849052;}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x2d6ca1=a299_0x8490;process['once']('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0xb51898=()=>{const _0x10334e=a299_0x8490;void flushOtelNodeIfUsed()[_0x10334e(0x1aa)](()=>process['exit'](0x0));};process[_0x2d6ca1(0x1b5)]('SIGINT',_0xb51898),process[_0x2d6ca1(0x1b5)](_0x2d6ca1(0x1b4),_0xb51898);}export async function exitWithOtelShutdown(_0x14dd1b){const _0x386c3e=a299_0x8490;await flushOtelNodeIfUsed(),process[_0x386c3e(0x1b1)](_0x14dd1b);}
@@ -1 +1 @@
1
- (function(_0x327af6,_0x1e3f4c){const _0x397437=a302_0x1bda,_0x423596=_0x327af6();while(!![]){try{const _0x16b549=parseInt(_0x397437(0x116))/0x1+parseInt(_0x397437(0x120))/0x2*(-parseInt(_0x397437(0x123))/0x3)+-parseInt(_0x397437(0x11c))/0x4+parseInt(_0x397437(0x11a))/0x5+-parseInt(_0x397437(0x118))/0x6+parseInt(_0x397437(0x11e))/0x7*(-parseInt(_0x397437(0x11b))/0x8)+parseInt(_0x397437(0x117))/0x9;if(_0x16b549===_0x1e3f4c)break;else _0x423596['push'](_0x423596['shift']());}catch(_0x53f672){_0x423596['push'](_0x423596['shift']());}}}(a302_0x1991,0xc2d2d));function a302_0x1991(){const _0x543843=['3104877klorVr','traceparent','1591053ALtzRM','14066514vTEFZN','4378434cgDPxN','manual','1033290XpPbKX','200ooZqxl','1938048NvEzpf','logData','87766NAbuLJ','spanName','2PViMmt','traceName','version'];a302_0x1991=function(){return _0x543843;};return a302_0x1991();}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a302_0x1bda(_0x4f6eaf,_0x122018){_0x4f6eaf=_0x4f6eaf-0x115;const _0x199171=a302_0x1991();let _0x1bda98=_0x199171[_0x4f6eaf];return _0x1bda98;}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x510909){const _0x3d12d8=a302_0x1bda;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x510909[_0x3d12d8(0x121)]??DEFAULT_TRACE_NAME,'version':_0x510909[_0x3d12d8(0x122)]??getCliVersion(),'spanName':_0x510909[_0x3d12d8(0x11f)],'eventType':_0x3d12d8(0x119),'logData':_0x510909[_0x3d12d8(0x11d)],..._0x510909[_0x3d12d8(0x115)]&&{'traceparent':_0x510909[_0x3d12d8(0x115)]}});}
1
+ (function(_0x452b16,_0x78d892){const _0x1cc180=a300_0x123f,_0x2d08c5=_0x452b16();while(!![]){try{const _0x1c6e27=-parseInt(_0x1cc180(0xdb))/0x1+parseInt(_0x1cc180(0xeb))/0x2*(parseInt(_0x1cc180(0xe3))/0x3)+parseInt(_0x1cc180(0xdc))/0x4*(parseInt(_0x1cc180(0xea))/0x5)+-parseInt(_0x1cc180(0xe0))/0x6*(-parseInt(_0x1cc180(0xe1))/0x7)+-parseInt(_0x1cc180(0xdd))/0x8*(parseInt(_0x1cc180(0xe5))/0x9)+-parseInt(_0x1cc180(0xe8))/0xa*(parseInt(_0x1cc180(0xda))/0xb)+parseInt(_0x1cc180(0xe4))/0xc;if(_0x1c6e27===_0x78d892)break;else _0x2d08c5['push'](_0x2d08c5['shift']());}catch(_0x1d3001){_0x2d08c5['push'](_0x2d08c5['shift']());}}}(a300_0x4fb9,0xbd67e));function a300_0x4fb9(){const _0x5b3a73=['11620472GgDfVq','spanName','manual','3831348XZjAeG','7vLVdli','traceparent','298905BUxiOj','2537640AlYVPF','9OEmNNn','logData','version','184310VgxyEk','traceName','5fZvIOq','24duDbRQ','242yiGjmz','502872nXeSNi','4364284XlXBQZ'];a300_0x4fb9=function(){return _0x5b3a73;};return a300_0x4fb9();}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a300_0x123f(_0x2091b7,_0x345ba7){_0x2091b7=_0x2091b7-0xda;const _0x4fb906=a300_0x4fb9();let _0x123ff6=_0x4fb906[_0x2091b7];return _0x123ff6;}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x2b58cf){const _0x2d601a=a300_0x123f;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x2b58cf[_0x2d601a(0xe9)]??DEFAULT_TRACE_NAME,'version':_0x2b58cf[_0x2d601a(0xe7)]??getCliVersion(),'spanName':_0x2b58cf[_0x2d601a(0xde)],'eventType':_0x2d601a(0xdf),'logData':_0x2b58cf[_0x2d601a(0xe6)],..._0x2b58cf[_0x2d601a(0xe2)]&&{'traceparent':_0x2b58cf['traceparent']}});}
@@ -1 +1 @@
1
- function a303_0x1bd9(){const _0x433f96=['4046488wpoxPo','5IynlMo','45544kofoXy','redactionCount','222498NXdLJt','33475eORnvK','sanitize','redactionKinds','truncated','description','platform-issue-log-collect','1809934SFLYWz','192xQjvqp','5374440EmydLz','title','177401YWpHVU','740PROJWp','issue.log.collect'];a303_0x1bd9=function(){return _0x433f96;};return a303_0x1bd9();}const a303_0x44cc2f=a303_0x32ec;(function(_0x1ec323,_0x17611b){const _0x5db5f3=a303_0x32ec,_0x275c44=_0x1ec323();while(!![]){try{const _0x1449fb=-parseInt(_0x5db5f3(0x1de))/0x1+-parseInt(_0x5db5f3(0x1e4))/0x2+-parseInt(_0x5db5f3(0x1e5))/0x3*(parseInt(_0x5db5f3(0x1db))/0x4)+parseInt(_0x5db5f3(0x1da))/0x5*(parseInt(_0x5db5f3(0x1e6))/0x6)+-parseInt(_0x5db5f3(0x1d6))/0x7+-parseInt(_0x5db5f3(0x1d9))/0x8+parseInt(_0x5db5f3(0x1dd))/0x9*(parseInt(_0x5db5f3(0x1d7))/0xa);if(_0x1449fb===_0x17611b)break;else _0x275c44['push'](_0x275c44['shift']());}catch(_0x167c29){_0x275c44['push'](_0x275c44['shift']());}}}(a303_0x1bd9,0x80a14));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a303_0x32ec(_0x1d27fc,_0x1efe10){_0x1d27fc=_0x1d27fc-0x1d6;const _0x1bd9d9=a303_0x1bd9();let _0x32ecc5=_0x1bd9d9[_0x1d27fc];return _0x32ecc5;}export const PLATFORM_ISSUE_TRACE_NAME=a303_0x44cc2f(0x1e3);export const PLATFORM_ISSUE_SPAN_NAME=a303_0x44cc2f(0x1d8);export async function sendPlatformIssueCollectLog(_0xc0c49e){const _0x55ac89=a303_0x44cc2f;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0xc0c49e[_0x55ac89(0x1e7)],'issue.description':_0xc0c49e[_0x55ac89(0x1e2)],..._0xc0c49e[_0x55ac89(0x1df)]?{'issue.description_original_bytes':_0xc0c49e[_0x55ac89(0x1df)]['originalBytes'],'issue.description_truncated':_0xc0c49e[_0x55ac89(0x1df)][_0x55ac89(0x1e1)],'issue.description_redactions':_0xc0c49e[_0x55ac89(0x1df)][_0x55ac89(0x1dc)],'issue.description_redaction_kinds':_0xc0c49e['sanitize'][_0x55ac89(0x1e0)]['join'](',')}:{}}});}
1
+ const a301_0x159bd2=a301_0x2ff4;(function(_0x213887,_0x871541){const _0x18bd77=a301_0x2ff4,_0xfe4083=_0x213887();while(!![]){try{const _0x47db72=-parseInt(_0x18bd77(0x143))/0x1*(-parseInt(_0x18bd77(0x153))/0x2)+parseInt(_0x18bd77(0x150))/0x3+parseInt(_0x18bd77(0x147))/0x4*(-parseInt(_0x18bd77(0x149))/0x5)+parseInt(_0x18bd77(0x146))/0x6*(parseInt(_0x18bd77(0x14a))/0x7)+parseInt(_0x18bd77(0x152))/0x8*(parseInt(_0x18bd77(0x155))/0x9)+-parseInt(_0x18bd77(0x154))/0xa*(parseInt(_0x18bd77(0x151))/0xb)+-parseInt(_0x18bd77(0x142))/0xc*(parseInt(_0x18bd77(0x14f))/0xd);if(_0x47db72===_0x871541)break;else _0xfe4083['push'](_0xfe4083['shift']());}catch(_0x8c73ca){_0xfe4083['push'](_0xfe4083['shift']());}}}(a301_0x21aa,0x30054));function a301_0x21aa(){const _0x1a1aa0=['840511qPiYdW','truncated','join','title','redactionCount','69979Ccjgze','835872VFUDVf','22wPbwYf','1356848vYAXrE','6802dBssgf','85690aotMwN','18MzuQUJ','sanitize','issue.log.collect','1176rBBmBA','101rsuKcy','description','redactionKinds','6flOhNR','97156hCEivY','originalBytes','70SzWaBg'];a301_0x21aa=function(){return _0x1a1aa0;};return a301_0x21aa();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a301_0x2ff4(_0x288de8,_0x4b0858){_0x288de8=_0x288de8-0x140;const _0x21aa58=a301_0x21aa();let _0x2ff45b=_0x21aa58[_0x288de8];return _0x2ff45b;}export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a301_0x159bd2(0x141);export async function sendPlatformIssueCollectLog(_0x50fa2d){const _0x38972b=a301_0x159bd2;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x50fa2d[_0x38972b(0x14d)],'issue.description':_0x50fa2d[_0x38972b(0x144)],..._0x50fa2d['sanitize']?{'issue.description_original_bytes':_0x50fa2d[_0x38972b(0x140)][_0x38972b(0x148)],'issue.description_truncated':_0x50fa2d[_0x38972b(0x140)][_0x38972b(0x14b)],'issue.description_redactions':_0x50fa2d[_0x38972b(0x140)][_0x38972b(0x14e)],'issue.description_redaction_kinds':_0x50fa2d[_0x38972b(0x140)][_0x38972b(0x145)][_0x38972b(0x14c)](',')}:{}}});}
@@ -1 +1 @@
1
- const a305_0x38d252=a305_0x2bce;function a305_0x1f7f(){const _0x1d3f53=['Trae','11VhsXCt','.cursor/skills/rabetbase.md','.cursorrules','.agent/skills/lovrabet/SKILL.md','qoder','110UdIihV','.windsurf/workflows/rabetbase.md','Claude\x20Code','file','Cline\x20IDE','585RhgyNz','.claude','Antigravity\x20IDE','cursor','.cursor','Cline','22772bbyIdU','Codex\x20IDE','Qoder\x20IDE','windsurf','.codex','.trae/skills/lovrabet/SKILL.md','816bTGnif','trae','.codebuddy/skills/lovrabet/SKILL.md','8022FIdRUe','Cursor','215743lbzFAD','.claude/skills/lovrabet/SKILL.md','90467aUlnSa','49224HJAvJX','2212ufZRnI','cline','Windsurf\x20IDE','CodeBuddy','.windsurf','codebuddy','.agent','Antigravity','6JAiUex','codex','.codex/skills/lovrabet/SKILL.md','OpenCode','opencode','Generic\x20template\x20fallback','535085DWrQsJ','claude','OpenCode\x20IDE','.qoder','.trae','.qoder/rules/rabetbase.md','.cline/skills/lovrabet/SKILL.md','.opencode','595244mwxnfd','agent'];a305_0x1f7f=function(){return _0x1d3f53;};return a305_0x1f7f();}(function(_0xe51b77,_0x3ababe){const _0x45571e=a305_0x2bce,_0x5e4739=_0xe51b77();while(!![]){try{const _0x37e9a4=parseInt(_0x45571e(0xc5))/0x1*(parseInt(_0x45571e(0xd5))/0x2)+-parseInt(_0x45571e(0xb4))/0x3*(parseInt(_0x45571e(0xc2))/0x4)+parseInt(_0x45571e(0xba))/0x5+parseInt(_0x45571e(0xde))/0x6*(parseInt(_0x45571e(0xe4))/0x7)+parseInt(_0x45571e(0xe3))/0x8*(-parseInt(_0x45571e(0xcf))/0x9)+parseInt(_0x45571e(0xca))/0xa*(-parseInt(_0x45571e(0xe0))/0xb)+parseInt(_0x45571e(0xdb))/0xc*(parseInt(_0x45571e(0xe2))/0xd);if(_0x37e9a4===_0x3ababe)break;else _0x5e4739['push'](_0x5e4739['shift']());}catch(_0x3206ce){_0x5e4739['push'](_0x5e4739['shift']());}}}(a305_0x1f7f,0x34681));export const CORE_IDE_CONFIGS={'cursor':{'name':a305_0x38d252(0xdf),'description':'Cursor\x20IDE','folders':[a305_0x38d252(0xc7),a305_0x38d252(0xd3)],'files':[{'type':'file','path':a305_0x38d252(0xc6)}]},'windsurf':{'name':'Windsurf','description':a305_0x38d252(0xe6),'folders':[a305_0x38d252(0xe8)],'files':[{'type':a305_0x38d252(0xcd),'path':a305_0x38d252(0xcb)}]},'claude':{'name':a305_0x38d252(0xcc),'description':a305_0x38d252(0xcc),'folders':[a305_0x38d252(0xd0)],'files':[{'type':a305_0x38d252(0xcd),'path':a305_0x38d252(0xe1)}]},'cline':{'name':a305_0x38d252(0xd4),'description':a305_0x38d252(0xce),'folders':['.cline'],'files':[{'type':a305_0x38d252(0xcd),'path':a305_0x38d252(0xc0)}]},'codex':{'name':'Codex','description':a305_0x38d252(0xd6),'folders':[a305_0x38d252(0xd9)],'files':[{'type':a305_0x38d252(0xcd),'path':a305_0x38d252(0xb6)}]},'opencode':{'name':a305_0x38d252(0xb7),'description':a305_0x38d252(0xbc),'folders':[a305_0x38d252(0xc1)],'files':[{'type':a305_0x38d252(0xcd),'path':'.opencode/skills/lovrabet/SKILL.md'}]},'qoder':{'name':'Qoder','description':a305_0x38d252(0xd7),'folders':[a305_0x38d252(0xbd)],'files':[{'type':a305_0x38d252(0xcd),'path':a305_0x38d252(0xbf)},{'type':'file','path':'.qoder/skills/lovrabet/SKILL.md'}]},'codebuddy':{'name':a305_0x38d252(0xe7),'description':'CodeBuddy\x20IDE','folders':['.codebuddy'],'files':[{'type':'file','path':a305_0x38d252(0xdd)}]},'trae':{'name':a305_0x38d252(0xc4),'description':'Trae\x20IDE','folders':[a305_0x38d252(0xbe)],'files':[{'type':'file','path':a305_0x38d252(0xda)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'Other\x20(generic\x20template)','description':a305_0x38d252(0xb9),'folders':[a305_0x38d252(0xb2)],'files':[{'type':a305_0x38d252(0xcd),'path':a305_0x38d252(0xc8)}]},'antigravity':{'name':a305_0x38d252(0xb3),'description':a305_0x38d252(0xd1),'folders':[a305_0x38d252(0xb2)],'files':[{'type':a305_0x38d252(0xcd),'path':a305_0x38d252(0xc8)}]}};export const CORE_IDE_LIST=[a305_0x38d252(0xbb),a305_0x38d252(0xe5),a305_0x38d252(0xb1),'codex','cursor',a305_0x38d252(0xb8),a305_0x38d252(0xc9),'trae','windsurf'];export const IDE_LIST=['antigravity','claude',a305_0x38d252(0xe5),'codebuddy',a305_0x38d252(0xb5),a305_0x38d252(0xd2),a305_0x38d252(0xb8),a305_0x38d252(0xc9),a305_0x38d252(0xdc),a305_0x38d252(0xd8),a305_0x38d252(0xc3)];function a305_0x2bce(_0x2039c1,_0x454bf0){_0x2039c1=_0x2039c1-0xb1;const _0x1f7fe9=a305_0x1f7f();let _0x2bcebe=_0x1f7fe9[_0x2039c1];return _0x2bcebe;}export const ALL_CORE_IDES=[a305_0x38d252(0xd2),a305_0x38d252(0xd8),'claude','cline',a305_0x38d252(0xb5),a305_0x38d252(0xb8),a305_0x38d252(0xc9),a305_0x38d252(0xb1),a305_0x38d252(0xdc)];
1
+ const a303_0x1e4d6a=a303_0x3920;(function(_0x396fda,_0x127bb4){const _0x50b62d=a303_0x3920,_0x32035c=_0x396fda();while(!![]){try{const _0x562fae=parseInt(_0x50b62d(0x124))/0x1+-parseInt(_0x50b62d(0x10e))/0x2*(parseInt(_0x50b62d(0x115))/0x3)+-parseInt(_0x50b62d(0x127))/0x4+parseInt(_0x50b62d(0x11d))/0x5+parseInt(_0x50b62d(0x101))/0x6+parseInt(_0x50b62d(0xfa))/0x7*(parseInt(_0x50b62d(0xf6))/0x8)+-parseInt(_0x50b62d(0x113))/0x9;if(_0x562fae===_0x127bb4)break;else _0x32035c['push'](_0x32035c['shift']());}catch(_0xa0958b){_0x32035c['push'](_0x32035c['shift']());}}}(a303_0x3990,0x36b51));export const CORE_IDE_CONFIGS={'cursor':{'name':a303_0x1e4d6a(0xf8),'description':a303_0x1e4d6a(0x116),'folders':['.cursorrules','.cursor'],'files':[{'type':a303_0x1e4d6a(0x11e),'path':a303_0x1e4d6a(0x104)}]},'windsurf':{'name':a303_0x1e4d6a(0xf3),'description':a303_0x1e4d6a(0x102),'folders':['.windsurf'],'files':[{'type':a303_0x1e4d6a(0x11e),'path':a303_0x1e4d6a(0xf9)}]},'claude':{'name':'Claude\x20Code','description':a303_0x1e4d6a(0x118),'folders':[a303_0x1e4d6a(0x11b)],'files':[{'type':a303_0x1e4d6a(0x11e),'path':a303_0x1e4d6a(0x106)}]},'cline':{'name':a303_0x1e4d6a(0x11a),'description':'Cline\x20IDE','folders':['.cline'],'files':[{'type':a303_0x1e4d6a(0x11e),'path':a303_0x1e4d6a(0x11f)}]},'codex':{'name':a303_0x1e4d6a(0x103),'description':a303_0x1e4d6a(0x123),'folders':[a303_0x1e4d6a(0x105)],'files':[{'type':'file','path':a303_0x1e4d6a(0xf0)}]},'opencode':{'name':a303_0x1e4d6a(0x10a),'description':a303_0x1e4d6a(0x121),'folders':[a303_0x1e4d6a(0x111)],'files':[{'type':a303_0x1e4d6a(0x11e),'path':a303_0x1e4d6a(0xfe)}]},'qoder':{'name':a303_0x1e4d6a(0x10b),'description':a303_0x1e4d6a(0xf7),'folders':[a303_0x1e4d6a(0xf5)],'files':[{'type':a303_0x1e4d6a(0x11e),'path':a303_0x1e4d6a(0xfb)},{'type':'file','path':a303_0x1e4d6a(0x114)}]},'codebuddy':{'name':a303_0x1e4d6a(0x107),'description':a303_0x1e4d6a(0x112),'folders':[a303_0x1e4d6a(0x11c)],'files':[{'type':a303_0x1e4d6a(0x11e),'path':a303_0x1e4d6a(0xff)}]},'trae':{'name':'Trae','description':'Trae\x20IDE','folders':[a303_0x1e4d6a(0x117)],'files':[{'type':a303_0x1e4d6a(0x11e),'path':a303_0x1e4d6a(0xf1)}]}};function a303_0x3990(){const _0x5272aa=['.trae','Claude\x20Code','qoder','Cline','.claude','.codebuddy','2222115hBMwbQ','file','.cline/skills/lovrabet/SKILL.md','agent','OpenCode\x20IDE','Other\x20(generic\x20template)','Codex\x20IDE','93438kZynMl','Antigravity','Generic\x20template\x20fallback','14288jHRURU','.codex/skills/lovrabet/SKILL.md','.trae/skills/lovrabet/SKILL.md','windsurf','Windsurf','antigravity','.qoder','1528xXEpKf','Qoder\x20IDE','Cursor','.windsurf/workflows/rabetbase.md','8246IzZaTg','.qoder/rules/rabetbase.md','cursor','codebuddy','.opencode/skills/lovrabet/SKILL.md','.codebuddy/skills/lovrabet/SKILL.md','.agent','1992618hQYhMh','Windsurf\x20IDE','Codex','.cursor/skills/rabetbase.md','.codex','.claude/skills/lovrabet/SKILL.md','CodeBuddy','.agent/skills/lovrabet/SKILL.md','trae','OpenCode','Qoder','cline','codex','6bvRzpb','claude','opencode','.opencode','CodeBuddy\x20IDE','6847092BnqbRn','.qoder/skills/lovrabet/SKILL.md','106521azlEzk','Cursor\x20IDE'];a303_0x3990=function(){return _0x5272aa;};return a303_0x3990();}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a303_0x1e4d6a(0x122),'description':a303_0x1e4d6a(0x126),'folders':['.agent'],'files':[{'type':a303_0x1e4d6a(0x11e),'path':'.agent/skills/lovrabet/SKILL.md'}]},'antigravity':{'name':a303_0x1e4d6a(0x125),'description':'Antigravity\x20IDE','folders':[a303_0x1e4d6a(0x100)],'files':[{'type':a303_0x1e4d6a(0x11e),'path':a303_0x1e4d6a(0x108)}]}};function a303_0x3920(_0x121a73,_0x5399f6){_0x121a73=_0x121a73-0xf0;const _0x399090=a303_0x3990();let _0x3920a9=_0x399090[_0x121a73];return _0x3920a9;}export const CORE_IDE_LIST=['claude',a303_0x1e4d6a(0x10c),a303_0x1e4d6a(0xfd),a303_0x1e4d6a(0x10d),'cursor',a303_0x1e4d6a(0x110),a303_0x1e4d6a(0x119),a303_0x1e4d6a(0x109),a303_0x1e4d6a(0xf2)];export const IDE_LIST=[a303_0x1e4d6a(0xf4),a303_0x1e4d6a(0x10f),a303_0x1e4d6a(0x10c),a303_0x1e4d6a(0xfd),a303_0x1e4d6a(0x10d),'cursor','opencode','qoder',a303_0x1e4d6a(0x109),a303_0x1e4d6a(0xf2),a303_0x1e4d6a(0x120)];export const ALL_CORE_IDES=[a303_0x1e4d6a(0xfc),a303_0x1e4d6a(0xf2),a303_0x1e4d6a(0x10f),'cline','codex',a303_0x1e4d6a(0x110),a303_0x1e4d6a(0x119),a303_0x1e4d6a(0xfd),'trae'];
@@ -1 +1 @@
1
- function a306_0x303a(_0x503126,_0xc2d0dc){_0x503126=_0x503126-0xed;const _0x13b62d=a306_0x13b6();let _0x303a4f=_0x13b62d[_0x503126];return _0x303a4f;}(function(_0x446ae5,_0x2508ea){const _0x2750fa=a306_0x303a,_0x1c8c8a=_0x446ae5();while(!![]){try{const _0x401bc9=-parseInt(_0x2750fa(0xf0))/0x1*(parseInt(_0x2750fa(0xf2))/0x2)+-parseInt(_0x2750fa(0xed))/0x3*(-parseInt(_0x2750fa(0xf1))/0x4)+parseInt(_0x2750fa(0xf5))/0x5*(-parseInt(_0x2750fa(0xf4))/0x6)+parseInt(_0x2750fa(0xf7))/0x7+parseInt(_0x2750fa(0xf6))/0x8+-parseInt(_0x2750fa(0xee))/0x9*(-parseInt(_0x2750fa(0xf3))/0xa)+-parseInt(_0x2750fa(0xef))/0xb;if(_0x401bc9===_0x2508ea)break;else _0x1c8c8a['push'](_0x1c8c8a['shift']());}catch(_0xaa5198){_0x1c8c8a['push'](_0x1c8c8a['shift']());}}}(a306_0x13b6,0xa0054));function a306_0x13b6(){const _0x15f4e4=['102JcgzcK','30QyvmYM','1627782hphrNC','5fOhFef','6696392NLqUCY','2874977miTSgj','2850969xMmwlA','2742003jnhVHG','23298814eIlddh','1319VmUwrL','4wVThzT'];a306_0x13b6=function(){return _0x15f4e4;};return a306_0x13b6();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x549a20,_0x40e448){const _0x1e51aa=a304_0x16c7,_0x4746b1=_0x549a20();while(!![]){try{const _0x105f0b=-parseInt(_0x1e51aa(0x11b))/0x1+parseInt(_0x1e51aa(0x117))/0x2*(-parseInt(_0x1e51aa(0x115))/0x3)+-parseInt(_0x1e51aa(0x11c))/0x4+parseInt(_0x1e51aa(0x113))/0x5*(parseInt(_0x1e51aa(0x116))/0x6)+-parseInt(_0x1e51aa(0x114))/0x7*(parseInt(_0x1e51aa(0x119))/0x8)+parseInt(_0x1e51aa(0x11d))/0x9+-parseInt(_0x1e51aa(0x11a))/0xa*(-parseInt(_0x1e51aa(0x118))/0xb);if(_0x105f0b===_0x40e448)break;else _0x4746b1['push'](_0x4746b1['shift']());}catch(_0x2c6ce1){_0x4746b1['push'](_0x4746b1['shift']());}}}(a304_0x4318,0xa584a));function a304_0x4318(){const _0x37ce92=['4740508OAjKry','4783383NWtvcN','685VUQdgt','176190pmVKrQ','4026369PqlPty','51180PGhSAj','2GIZMhG','33srLmWR','80detGIT','6334070KLcDIb','143406hCQRxf'];a304_0x4318=function(){return _0x37ce92;};return a304_0x4318();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a304_0x16c7(_0x47cd4b,_0x4b7794){_0x47cd4b=_0x47cd4b-0x113;const _0x431817=a304_0x4318();let _0x16c783=_0x431817[_0x47cd4b];return _0x16c783;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x476d83,_0x5d4307){const _0x1a49f5=a307_0x382f,_0x472629=_0x476d83();while(!![]){try{const _0x26719f=parseInt(_0x1a49f5(0x171))/0x1*(-parseInt(_0x1a49f5(0x16c))/0x2)+-parseInt(_0x1a49f5(0x16f))/0x3+parseInt(_0x1a49f5(0x178))/0x4+-parseInt(_0x1a49f5(0x175))/0x5*(parseInt(_0x1a49f5(0x174))/0x6)+parseInt(_0x1a49f5(0x16b))/0x7*(parseInt(_0x1a49f5(0x170))/0x8)+parseInt(_0x1a49f5(0x16e))/0x9*(parseInt(_0x1a49f5(0x17a))/0xa)+parseInt(_0x1a49f5(0x16d))/0xb;if(_0x26719f===_0x5d4307)break;else _0x472629['push'](_0x472629['shift']());}catch(_0x5ac1b9){_0x472629['push'](_0x472629['shift']());}}}(a307_0xf9e8,0x79d5e));import{getTemplateBaseUrl}from'../utils/config.js';function a307_0x382f(_0xfc8ba2,_0x2688eb){_0xfc8ba2=_0xfc8ba2-0x16a;const _0xf9e897=a307_0xf9e8();let _0x382fcd=_0xf9e897[_0xfc8ba2];return _0x382fcd;}export async function fetchCdnConfig(){const _0x442fce=a307_0x382f,_0x3610ee=getTemplateBaseUrl(),_0x597cea=[_0x3610ee+_0x442fce(0x176),_0x3610ee+'/config/index.json'];for(const _0x5bedd7 of _0x597cea){try{const _0x3c79d5=await fetch(_0x5bedd7,{'headers':{'Accept':_0x442fce(0x172)}});if(!_0x3c79d5['ok'])continue;const _0x13c9d4=await _0x3c79d5['json']();if(!_0x13c9d4['cli']?.[_0x442fce(0x177)]||!_0x13c9d4[_0x442fce(0x179)]?.[_0x442fce(0x16a)]?.[_0x442fce(0x177)])continue;return _0x13c9d4;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a307_0xf9e8(){const _0x23ec23=['sdk','4670CDkoWU','node','1029MDRyqu','4084vOfudy','4357496wXlnml','10485aaDUxa','1800270uwSSvu','39416akzmyT','163NPEEXk','application/json','now','96HybRGv','107185XHNafR','/config.json','stableVersion','442024owrTdW'];a307_0xf9e8=function(){return _0x23ec23;};return a307_0xf9e8();}let hasCachedConfig=![];export async function getCdnConfig(){const _0x5aa8ae=a307_0x382f,_0x279d7c=Date[_0x5aa8ae(0x173)]();if(hasCachedConfig){const _0x4b41a2=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x279d7c-cacheTime<_0x4b41a2)return cachedConfig;}const _0x3e1a85=await fetchCdnConfig();return cachedConfig=_0x3e1a85,cacheTime=_0x279d7c,hasCachedConfig=!![],_0x3e1a85;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x2e5c4e,_0x560bcb){const _0x3fed84=a305_0x5688,_0x7812f9=_0x2e5c4e();while(!![]){try{const _0x10fbf4=parseInt(_0x3fed84(0xa7))/0x1*(-parseInt(_0x3fed84(0xa3))/0x2)+-parseInt(_0x3fed84(0xa5))/0x3*(-parseInt(_0x3fed84(0xa2))/0x4)+-parseInt(_0x3fed84(0xb0))/0x5*(-parseInt(_0x3fed84(0x9f))/0x6)+parseInt(_0x3fed84(0xa9))/0x7*(-parseInt(_0x3fed84(0xb1))/0x8)+-parseInt(_0x3fed84(0xa4))/0x9*(parseInt(_0x3fed84(0xab))/0xa)+-parseInt(_0x3fed84(0xaa))/0xb+parseInt(_0x3fed84(0xa8))/0xc*(parseInt(_0x3fed84(0xa6))/0xd);if(_0x10fbf4===_0x560bcb)break;else _0x7812f9['push'](_0x7812f9['shift']());}catch(_0x4a617d){_0x7812f9['push'](_0x7812f9['shift']());}}}(a305_0x4c8d,0xec225));import{getTemplateBaseUrl}from'../utils/config.js';function a305_0x4c8d(){const _0x317c46=['2028240BAHxnx','1428216QgEFRc','/config.json','stableVersion','25980hiQmOU','34dTErXS','12103983FlsFjC','156gEvqkQ','7813cCFMOO','88953YXOyQP','79956gohIKs','14kvYeJY','2737746BSdzac','10tyqGHN','json','/config/index.json','now','application/json','5sqIJlN'];a305_0x4c8d=function(){return _0x317c46;};return a305_0x4c8d();}function a305_0x5688(_0x3f2d08,_0x1ce77e){_0x3f2d08=_0x3f2d08-0x9f;const _0x4c8d24=a305_0x4c8d();let _0x56888e=_0x4c8d24[_0x3f2d08];return _0x56888e;}export async function fetchCdnConfig(){const _0x43aa71=a305_0x5688,_0x4e93d8=getTemplateBaseUrl(),_0xad8e21=[_0x4e93d8+_0x43aa71(0xa0),_0x4e93d8+_0x43aa71(0xad)];for(const _0x12dd39 of _0xad8e21){try{const _0x203e61=await fetch(_0x12dd39,{'headers':{'Accept':_0x43aa71(0xaf)}});if(!_0x203e61['ok'])continue;const _0x9751e0=await _0x203e61[_0x43aa71(0xac)]();if(!_0x9751e0['cli']?.[_0x43aa71(0xa1)]||!_0x9751e0['sdk']?.['node']?.[_0x43aa71(0xa1)])continue;return _0x9751e0;}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 _0x13aca4=a305_0x5688,_0xe8f251=Date[_0x13aca4(0xae)]();if(hasCachedConfig){const _0xe05550=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xe8f251-cacheTime<_0xe05550)return cachedConfig;}const _0x1cc120=await fetchCdnConfig();return cachedConfig=_0x1cc120,cacheTime=_0xe8f251,hasCachedConfig=!![],_0x1cc120;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a308_0x553902=a308_0x231c;(function(_0x311e0a,_0x3a6141){const _0x32b60f=a308_0x231c,_0x37ad8b=_0x311e0a();while(!![]){try{const _0x251db2=-parseInt(_0x32b60f(0x18c))/0x1*(-parseInt(_0x32b60f(0x1a3))/0x2)+parseInt(_0x32b60f(0x193))/0x3*(-parseInt(_0x32b60f(0x1a4))/0x4)+-parseInt(_0x32b60f(0x18d))/0x5+-parseInt(_0x32b60f(0x1a8))/0x6*(-parseInt(_0x32b60f(0x18f))/0x7)+-parseInt(_0x32b60f(0x18e))/0x8*(parseInt(_0x32b60f(0x189))/0x9)+-parseInt(_0x32b60f(0x191))/0xa*(-parseInt(_0x32b60f(0x1a7))/0xb)+-parseInt(_0x32b60f(0x197))/0xc*(parseInt(_0x32b60f(0x1ab))/0xd);if(_0x251db2===_0x3a6141)break;else _0x37ad8b['push'](_0x37ad8b['shift']());}catch(_0xde5823){_0x37ad8b['push'](_0x37ad8b['shift']());}}}(a308_0x3d8e,0xd8efb));import a308_0x31dfc7 from'node:fs';import a308_0x3a9ff6 from'node:path';function a308_0x3d8e(){const _0x436fe6=['package.json','\x1b[33m','node','\x20\x20\x20Current\x20version:\x20','\x20\x20\x20Stable\x20version:\x20','some','1.2.0','utf8','↪\x20SDK\x20update\x20available','14140obrAll','4XJiufv','utf-8','readFileSync','143mEyEHh','2533644FUwhLN','log','coerce','143oJslZt','packageName','\x1b[0m','minVersion','needsUpgrade','\x20\x20\x20Upgrade\x20command:\x20','version','sdk','devDependencies','@lovrabet/sdk','3582icLcDY','latest','stableVersion','210uUHuZf','1953005eMiMRe','6408DgRsVO','14RQcaHd','all','1191340QfwTwL','existsSync','3590847NLjpsu','test','dependencies','join','1181532ZIpxgN','node_modules','parse'];a308_0x3d8e=function(){return _0x436fe6;};return a308_0x3d8e();}import a308_0x380ae2 from'semver';function a308_0x231c(_0x59a593,_0x44bed0){_0x59a593=_0x59a593-0x185;const _0x3d8e03=a308_0x3d8e();let _0x231c84=_0x3d8e03[_0x59a593];return _0x231c84;}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a308_0x553902(0x1a0);function isNonNumericVersion(_0x59ab40){const _0x343e62=a308_0x553902,_0x2aee61=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2aee61[_0x343e62(0x19f)](_0xc76236=>_0xc76236[_0x343e62(0x194)](_0x59ab40));}function getInstalledVersion(_0x3d82c2,_0x8163d1){const _0x43dd5b=a308_0x553902;try{const _0x227bb2=a308_0x3a9ff6[_0x43dd5b(0x196)](_0x3d82c2,_0x43dd5b(0x198),_0x8163d1,_0x43dd5b(0x19a));if(a308_0x31dfc7[_0x43dd5b(0x192)](_0x227bb2)){const _0x53717c=JSON['parse'](a308_0x31dfc7[_0x43dd5b(0x1a6)](_0x227bb2,_0x43dd5b(0x1a5)));return _0x53717c[_0x43dd5b(0x185)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x47f2d9=a308_0x553902;try{const _0x3f7de0=await getCdnConfig();return _0x3f7de0?.[_0x47f2d9(0x186)]?.['node']?.[_0x47f2d9(0x18b)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x5684be=a308_0x553902;try{const _0x4dd7e7=await getCdnConfig();return _0x4dd7e7?.[_0x5684be(0x186)]?.[_0x5684be(0x19c)]?.[_0x5684be(0x1ac)]||_0x5684be(0x188);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x3b3261){const _0x14bbf0=a308_0x553902,_0x50ce70=a308_0x3a9ff6[_0x14bbf0(0x196)](_0x3b3261,_0x14bbf0(0x19a)),[_0x12d3ac,_0x49caae]=await Promise[_0x14bbf0(0x190)]([getSdkStableVersion(),getSdkPackageName()]),_0x181553=_0x12d3ac||FALLBACK_MIN_SDK_VERSION;if(!a308_0x31dfc7[_0x14bbf0(0x192)](_0x50ce70))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x181553,'packageName':_0x49caae,'stableVersion':_0x12d3ac};try{const _0x1d5e4f=JSON[_0x14bbf0(0x199)](a308_0x31dfc7[_0x14bbf0(0x1a6)](_0x50ce70,_0x14bbf0(0x1a1))),_0x4e7523=_0x1d5e4f['dependencies']||{},_0x305066=_0x1d5e4f[_0x14bbf0(0x187)]||{},_0x56ed89=_0x4e7523[_0x49caae]||_0x305066[_0x49caae];if(!_0x56ed89)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x181553,'packageName':_0x49caae,'stableVersion':_0x12d3ac};let _0x34c08d=getInstalledVersion(_0x3b3261,_0x49caae);!_0x34c08d&&(_0x34c08d=_0x56ed89);if(isNonNumericVersion(_0x56ed89))return{'installed':!![],'version':_0x34c08d,'needsUpgrade':![],'minVersion':_0x181553,'packageName':_0x49caae,'stableVersion':_0x12d3ac};const _0x25bdf4=a308_0x380ae2[_0x14bbf0(0x1aa)](_0x34c08d),_0x3d6ce8=a308_0x380ae2[_0x14bbf0(0x1aa)](_0x181553),_0x5398bd=_0x25bdf4&&_0x3d6ce8?a308_0x380ae2['lt'](_0x25bdf4,_0x3d6ce8):![];return{'installed':!![],'version':_0x34c08d,'needsUpgrade':_0x5398bd,'minVersion':_0x181553,'packageName':_0x49caae,'stableVersion':_0x12d3ac};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x181553,'packageName':_0x49caae,'stableVersion':_0x12d3ac};}}export function checkSdkVersionSync(_0x190a45){const _0x19092f=a308_0x553902,_0x166936=a308_0x3a9ff6[_0x19092f(0x196)](_0x190a45,_0x19092f(0x19a)),_0x295135=_0x19092f(0x188);if(!a308_0x31dfc7['existsSync'](_0x166936))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x295135,'stableVersion':null};try{const _0x1bad68=JSON[_0x19092f(0x199)](a308_0x31dfc7['readFileSync'](_0x166936,_0x19092f(0x1a1))),_0x1f7290=_0x1bad68[_0x19092f(0x195)]||{},_0x4f24e3=_0x1bad68[_0x19092f(0x187)]||{},_0x32111b=_0x1f7290[_0x295135]||_0x4f24e3[_0x295135];if(!_0x32111b)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x295135,'stableVersion':null};let _0x1467b8=getInstalledVersion(_0x190a45,_0x295135);!_0x1467b8&&(_0x1467b8=_0x32111b);if(isNonNumericVersion(_0x32111b))return{'installed':!![],'version':_0x1467b8,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x295135,'stableVersion':null};const _0x4c09ab=a308_0x380ae2[_0x19092f(0x1aa)](_0x1467b8),_0xe517d4=_0x4c09ab?a308_0x380ae2['lt'](_0x4c09ab,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x1467b8,'needsUpgrade':_0xe517d4,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x295135,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x295135,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x115b0e){const _0x46af6b=a308_0x553902;if(!_0x115b0e[_0x46af6b(0x1af)])return;const _0x3c1c3d=_0x46af6b(0x19b),_0xe3e6a=_0x46af6b(0x1ad),_0x15a098='\x1b[1m',_0x4fab5c=_0x115b0e['packageName']||_0x46af6b(0x188),_0x14a73f=_0x115b0e[_0x46af6b(0x18b)]||_0x115b0e[_0x46af6b(0x1ae)],_0x4823af='npm\x20install\x20'+_0x4fab5c+'@'+(_0x14a73f||_0x46af6b(0x18a));console[_0x46af6b(0x1a9)](),console[_0x46af6b(0x1a9)](''+_0x3c1c3d+_0x15a098+_0x46af6b(0x1a2)+_0xe3e6a),console[_0x46af6b(0x1a9)](_0x3c1c3d+_0x46af6b(0x19d)+_0x4fab5c+'@'+_0x115b0e[_0x46af6b(0x185)]+_0xe3e6a),console['log'](_0x3c1c3d+_0x46af6b(0x19e)+_0x14a73f+_0xe3e6a),console[_0x46af6b(0x1a9)](_0x3c1c3d+_0x46af6b(0x1b0)+_0x4823af+_0xe3e6a),console['log']();}
1
+ const a306_0x4f4f1d=a306_0x2bb9;(function(_0x4f84fc,_0x5e4495){const _0x4192e3=a306_0x2bb9,_0x590060=_0x4f84fc();while(!![]){try{const _0x1e36f8=parseInt(_0x4192e3(0x193))/0x1*(-parseInt(_0x4192e3(0x1a2))/0x2)+parseInt(_0x4192e3(0x1a7))/0x3+parseInt(_0x4192e3(0x19b))/0x4*(-parseInt(_0x4192e3(0x1b1))/0x5)+parseInt(_0x4192e3(0x1a8))/0x6+parseInt(_0x4192e3(0x18c))/0x7+-parseInt(_0x4192e3(0x190))/0x8*(parseInt(_0x4192e3(0x1ac))/0x9)+parseInt(_0x4192e3(0x1ab))/0xa;if(_0x1e36f8===_0x5e4495)break;else _0x590060['push'](_0x590060['shift']());}catch(_0x4189ae){_0x590060['push'](_0x590060['shift']());}}}(a306_0x2803,0xe8ce4));import a306_0x32bb7b from'node:fs';import a306_0x5b84bd from'node:path';import a306_0xf25d7d from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a306_0x4f4f1d(0x1a3);function isNonNumericVersion(_0x5a5568){const _0x4d3a10=a306_0x4f4f1d,_0x2930c2=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2930c2[_0x4d3a10(0x18d)](_0x26ed3b=>_0x26ed3b['test'](_0x5a5568));}function getInstalledVersion(_0x49b0d9,_0x58cfe4){const _0x1eac6f=a306_0x4f4f1d;try{const _0x55b924=a306_0x5b84bd['join'](_0x49b0d9,_0x1eac6f(0x19a),_0x58cfe4,_0x1eac6f(0x19c));if(a306_0x32bb7b[_0x1eac6f(0x18e)](_0x55b924)){const _0x34a948=JSON[_0x1eac6f(0x1a6)](a306_0x32bb7b[_0x1eac6f(0x192)](_0x55b924,_0x1eac6f(0x1ad)));return _0x34a948[_0x1eac6f(0x18f)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x3d330f=a306_0x4f4f1d;try{const _0x5045cc=await getCdnConfig();return _0x5045cc?.[_0x3d330f(0x199)]?.[_0x3d330f(0x191)]?.[_0x3d330f(0x19d)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x49edef=a306_0x4f4f1d;try{const _0x1890f3=await getCdnConfig();return _0x1890f3?.[_0x49edef(0x199)]?.['node']?.[_0x49edef(0x1aa)]||_0x49edef(0x18b);}catch{return _0x49edef(0x18b);}}function a306_0x2803(){const _0x4a0696=['5924580KoqedI','\x20\x20\x20Stable\x20version:\x20','packageName','3931070aBHkBg','981flXFCx','utf-8','↪\x20SDK\x20update\x20available','join','utf8','4175UmUWWK','@lovrabet/sdk','12414647AJmMSf','some','existsSync','version','34928haPTdv','node','readFileSync','1098101SxxjsA','all','\x1b[1m','dependencies','log','\x20\x20\x20Upgrade\x20command:\x20','sdk','node_modules','3128HXPhbX','package.json','stableVersion','needsUpgrade','minVersion','coerce','devDependencies','2HsYdUk','1.2.0','\x20\x20\x20Current\x20version:\x20','latest','parse','79437PCSdQp'];a306_0x2803=function(){return _0x4a0696;};return a306_0x2803();}export async function checkSdkVersion(_0x578325){const _0x1076ba=a306_0x4f4f1d,_0x84cb14=a306_0x5b84bd[_0x1076ba(0x1af)](_0x578325,'package.json'),[_0x387535,_0x1bb297]=await Promise[_0x1076ba(0x194)]([getSdkStableVersion(),getSdkPackageName()]),_0x110430=_0x387535||FALLBACK_MIN_SDK_VERSION;if(!a306_0x32bb7b[_0x1076ba(0x18e)](_0x84cb14))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x110430,'packageName':_0x1bb297,'stableVersion':_0x387535};try{const _0x1118b1=JSON[_0x1076ba(0x1a6)](a306_0x32bb7b[_0x1076ba(0x192)](_0x84cb14,'utf8')),_0x41c3ea=_0x1118b1['dependencies']||{},_0x186604=_0x1118b1[_0x1076ba(0x1a1)]||{},_0x100bb0=_0x41c3ea[_0x1bb297]||_0x186604[_0x1bb297];if(!_0x100bb0)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x110430,'packageName':_0x1bb297,'stableVersion':_0x387535};let _0xecb097=getInstalledVersion(_0x578325,_0x1bb297);!_0xecb097&&(_0xecb097=_0x100bb0);if(isNonNumericVersion(_0x100bb0))return{'installed':!![],'version':_0xecb097,'needsUpgrade':![],'minVersion':_0x110430,'packageName':_0x1bb297,'stableVersion':_0x387535};const _0x46d4bf=a306_0xf25d7d[_0x1076ba(0x1a0)](_0xecb097),_0x4ed189=a306_0xf25d7d[_0x1076ba(0x1a0)](_0x110430),_0x5c4b07=_0x46d4bf&&_0x4ed189?a306_0xf25d7d['lt'](_0x46d4bf,_0x4ed189):![];return{'installed':!![],'version':_0xecb097,'needsUpgrade':_0x5c4b07,'minVersion':_0x110430,'packageName':_0x1bb297,'stableVersion':_0x387535};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x110430,'packageName':_0x1bb297,'stableVersion':_0x387535};}}function a306_0x2bb9(_0x2d85cb,_0x5019aa){_0x2d85cb=_0x2d85cb-0x18b;const _0x2803bf=a306_0x2803();let _0x2bb9eb=_0x2803bf[_0x2d85cb];return _0x2bb9eb;}export function checkSdkVersionSync(_0x413f4b){const _0x459049=a306_0x4f4f1d,_0x3b61b5=a306_0x5b84bd[_0x459049(0x1af)](_0x413f4b,_0x459049(0x19c)),_0x13682c=_0x459049(0x18b);if(!a306_0x32bb7b['existsSync'](_0x3b61b5))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x13682c,'stableVersion':null};try{const _0x5aaabc=JSON['parse'](a306_0x32bb7b[_0x459049(0x192)](_0x3b61b5,_0x459049(0x1b0))),_0x36120a=_0x5aaabc[_0x459049(0x196)]||{},_0x5c2139=_0x5aaabc['devDependencies']||{},_0x3edb58=_0x36120a[_0x13682c]||_0x5c2139[_0x13682c];if(!_0x3edb58)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x13682c,'stableVersion':null};let _0x1c124f=getInstalledVersion(_0x413f4b,_0x13682c);!_0x1c124f&&(_0x1c124f=_0x3edb58);if(isNonNumericVersion(_0x3edb58))return{'installed':!![],'version':_0x1c124f,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x13682c,'stableVersion':null};const _0x277958=a306_0xf25d7d[_0x459049(0x1a0)](_0x1c124f),_0x523666=_0x277958?a306_0xf25d7d['lt'](_0x277958,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x1c124f,'needsUpgrade':_0x523666,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x13682c,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x13682c,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x305f84){const _0x57e5b8=a306_0x4f4f1d;if(!_0x305f84[_0x57e5b8(0x19e)])return;const _0x8fd205='\x1b[33m',_0x452d25='\x1b[0m',_0x134c02=_0x57e5b8(0x195),_0x20374c=_0x305f84['packageName']||_0x57e5b8(0x18b),_0x1c984b=_0x305f84[_0x57e5b8(0x19d)]||_0x305f84[_0x57e5b8(0x19f)],_0x2e24af='npm\x20install\x20'+_0x20374c+'@'+(_0x1c984b||_0x57e5b8(0x1a5));console['log'](),console[_0x57e5b8(0x197)](''+_0x8fd205+_0x134c02+_0x57e5b8(0x1ae)+_0x452d25),console['log'](_0x8fd205+_0x57e5b8(0x1a4)+_0x20374c+'@'+_0x305f84[_0x57e5b8(0x18f)]+_0x452d25),console[_0x57e5b8(0x197)](_0x8fd205+_0x57e5b8(0x1a9)+_0x1c984b+_0x452d25),console[_0x57e5b8(0x197)](_0x8fd205+_0x57e5b8(0x198)+_0x2e24af+_0x452d25),console[_0x57e5b8(0x197)]();}
@@ -1 +1 @@
1
- function a309_0x3724(_0x38de9a,_0x303af1){_0x38de9a=_0x38de9a-0xd5;const _0x5a4e2b=a309_0x5a4e();let _0x372445=_0x5a4e2b[_0x38de9a];return _0x372445;}(function(_0x2d5b5a,_0x6572b0){const _0x57be42=a309_0x3724,_0xdcecb8=_0x2d5b5a();while(!![]){try{const _0x56172a=-parseInt(_0x57be42(0xd7))/0x1+-parseInt(_0x57be42(0xe7))/0x2+-parseInt(_0x57be42(0xf3))/0x3*(parseInt(_0x57be42(0xf2))/0x4)+parseInt(_0x57be42(0xee))/0x5+-parseInt(_0x57be42(0xf0))/0x6*(-parseInt(_0x57be42(0xdc))/0x7)+-parseInt(_0x57be42(0xe2))/0x8*(parseInt(_0x57be42(0xf8))/0x9)+parseInt(_0x57be42(0xfd))/0xa*(parseInt(_0x57be42(0xea))/0xb);if(_0x56172a===_0x6572b0)break;else _0xdcecb8['push'](_0xdcecb8['shift']());}catch(_0x149ea9){_0xdcecb8['push'](_0xdcecb8['shift']());}}}(a309_0x5a4e,0x44257));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a309_0x4a31f3 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a309_0x5a4e(){const _0x3e912d=['\x1b[0m','Current\x20version:\x20','\x20\x20\x20Recommended\x20stable:\x20','2570fvMHio','Upgrade\x20command:\x20','parse','\x20\x20\x20Stable\x20version:\x20','202811YxjZFw','↪\x20New\x20version\x20available','\x1b[33m','1.0.0','../..','21dgJlNy','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','belowMinimum','\x20\x20\x20Minimum\x20supported:\x20','minimumVersionMessage','\x20\x20\x20Upgrade\x20command:\x20','74488CbSWtQ','\x1b[1m','upgradeMessage','package.json','latest','119684eWjaFO','\x20\x20\x20Current\x20CLI\x20version:\x20','\x20\x20\x20','3817ySPUlJ','stableVersion','validation','minimumVersion','2427350CwbkLC','join','545526aHQNUM','currentVersion','80632yGdrXy','15rvwRGu','log','filter','coerce','\x1b[31m','198UfzQYN','↪\x20Critical\x20CLI\x20upgrade\x20required'];a309_0x5a4e=function(){return _0x3e912d;};return a309_0x5a4e();}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0xfecf27){const _0x53c4f8=a309_0x3724,_0x117cf4=_0xfecf27['stableVersion']||_0x53c4f8(0xe6);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x117cf4;}function getCurrentCliVersion(){const _0x264e56=a309_0x3724;try{const _0x105279=fileURLToPath(import.meta.url),_0x3a3311=resolve(dirname(_0x105279),_0x264e56(0xdb)),_0x1a7843=resolve(_0x3a3311,_0x264e56(0xe5)),_0x4dbb6e=JSON[_0x264e56(0xd5)](readFileSync(_0x1a7843,'utf-8'));return _0x4dbb6e['version']||_0x264e56(0xda);}catch{return _0x264e56(0xda);}}export async function checkCliVersion(){const _0x52fabb=a309_0x3724,_0x4e916c=getCurrentCliVersion(),_0x4751c1=await getCliVersionPolicy(),_0xc75937=_0x4751c1?.['stableVersion']||null,_0x59548d=_0x4751c1?.[_0x52fabb(0xed)]||null;let _0x1d38e2=![],_0x4c9a49=![];const _0x145597=a309_0x4a31f3['coerce'](_0x4e916c);if(_0x145597&&_0xc75937)try{const _0x26fb66=a309_0x4a31f3[_0x52fabb(0xf6)](_0xc75937);if(_0x26fb66)_0x1d38e2=a309_0x4a31f3['lt'](_0x145597,_0x26fb66);}catch{}if(_0x145597&&_0x59548d)try{const _0x57a31f=a309_0x4a31f3[_0x52fabb(0xf6)](_0x59548d);if(_0x57a31f)_0x4c9a49=a309_0x4a31f3['lt'](_0x145597,_0x57a31f);}catch{}return _0x4c9a49&&(_0x1d38e2=!![]),{'currentVersion':_0x4e916c,'stableVersion':_0xc75937,'minimumVersion':_0x59548d,'needsUpgrade':_0x1d38e2,'belowMinimum':_0x4c9a49,'isPreRelease':![],'upgradeMessage':_0x4751c1?.[_0x52fabb(0xe4)],'minimumVersionMessage':_0x4751c1?.[_0x52fabb(0xe0)]};}export function printCliUpgradeWarning(_0x245893){const _0x1e6282=a309_0x3724;if(!_0x245893['needsUpgrade']&&!_0x245893[_0x1e6282(0xde)])return;const _0x2832fc=_0x1e6282(0xf7),_0x5918d7=_0x1e6282(0xd9),_0x21b108=_0x1e6282(0xfa),_0x5da72f=_0x1e6282(0xe3),_0x4a9d3b=getCliUpgradeCommand(_0x245893);console[_0x1e6282(0xf4)](),_0x245893['belowMinimum']?(console['log'](''+_0x2832fc+_0x5da72f+_0x1e6282(0xf9)+_0x21b108),console[_0x1e6282(0xf4)](_0x2832fc+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x245893[_0x1e6282(0xf1)]+_0x21b108),_0x245893[_0x1e6282(0xed)]&&console[_0x1e6282(0xf4)](_0x2832fc+_0x1e6282(0xdf)+_0x245893[_0x1e6282(0xed)]+_0x21b108),_0x245893[_0x1e6282(0xeb)]&&_0x245893[_0x1e6282(0xeb)]!==_0x245893[_0x1e6282(0xed)]&&console[_0x1e6282(0xf4)](_0x2832fc+_0x1e6282(0xfc)+_0x245893[_0x1e6282(0xeb)]+_0x21b108),_0x245893[_0x1e6282(0xe0)]&&console[_0x1e6282(0xf4)](_0x2832fc+_0x1e6282(0xe9)+_0x245893['minimumVersionMessage']+_0x21b108),console['log'](_0x2832fc+_0x1e6282(0xe1)+_0x4a9d3b+_0x21b108)):(console[_0x1e6282(0xf4)](''+_0x5918d7+_0x5da72f+_0x1e6282(0xd8)+_0x21b108),console[_0x1e6282(0xf4)](_0x5918d7+_0x1e6282(0xe8)+_0x245893[_0x1e6282(0xf1)]+_0x21b108),console['log'](_0x5918d7+_0x1e6282(0xd6)+_0x245893[_0x1e6282(0xeb)]+_0x21b108),_0x245893[_0x1e6282(0xe4)]&&console[_0x1e6282(0xf4)](_0x5918d7+_0x1e6282(0xe9)+_0x245893[_0x1e6282(0xe4)]+_0x21b108),console['log'](_0x5918d7+_0x1e6282(0xe1)+_0x4a9d3b+_0x21b108)),console[_0x1e6282(0xf4)]();}export function assertCliVersionSupported(_0xb377c9){const _0x4d0491=a309_0x3724;if(!_0xb377c9[_0x4d0491(0xde)])return;const _0x2c425d=[_0xb377c9[_0x4d0491(0xe0)],_0x4d0491(0xfb)+_0xb377c9[_0x4d0491(0xf1)],_0xb377c9[_0x4d0491(0xed)]?'Minimum\x20supported:\x20'+_0xb377c9[_0x4d0491(0xed)]:null,_0x4d0491(0xfe)+getCliUpgradeCommand(_0xb377c9)][_0x4d0491(0xf5)](Boolean)[_0x4d0491(0xef)]('\x0a');throw CliErrors[_0x4d0491(0xec)](_0x4d0491(0xdd),_0x2c425d);}
1
+ (function(_0x2e2b1e,_0x163ea0){const _0x5a06ac=a307_0x5211,_0x281d31=_0x2e2b1e();while(!![]){try{const _0x116abd=-parseInt(_0x5a06ac(0xb4))/0x1*(parseInt(_0x5a06ac(0xa5))/0x2)+-parseInt(_0x5a06ac(0xa6))/0x3+parseInt(_0x5a06ac(0xa9))/0x4+parseInt(_0x5a06ac(0xb1))/0x5*(-parseInt(_0x5a06ac(0xa8))/0x6)+parseInt(_0x5a06ac(0xc6))/0x7*(parseInt(_0x5a06ac(0xb6))/0x8)+parseInt(_0x5a06ac(0xb7))/0x9+parseInt(_0x5a06ac(0xac))/0xa*(-parseInt(_0x5a06ac(0xba))/0xb);if(_0x116abd===_0x163ea0)break;else _0x281d31['push'](_0x281d31['shift']());}catch(_0x28400c){_0x281d31['push'](_0x281d31['shift']());}}}(a307_0x4317,0x8e7aa));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a307_0x36e2d5 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a307_0x5211(_0x47788f,_0xbf9a55){_0x47788f=_0x47788f-0xa5;const _0x431735=a307_0x4317();let _0x5211e7=_0x431735[_0x47788f];return _0x5211e7;}export function getCliUpgradeCommand(_0x64a7cf){const _0x13073c=a307_0x5211,_0x1e0f61=_0x64a7cf[_0x13073c(0xb3)]||_0x13073c(0xa7);return _0x13073c(0xc8)+NPM_PACKAGE_NAME+'@'+_0x1e0f61;}function getCurrentCliVersion(){const _0x3a43de=a307_0x5211;try{const _0x20b607=fileURLToPath(import.meta.url),_0x4ebc50=resolve(dirname(_0x20b607),'../..'),_0x32db79=resolve(_0x4ebc50,'package.json'),_0x3317e5=JSON['parse'](readFileSync(_0x32db79,_0x3a43de(0xb8)));return _0x3317e5['version']||'1.0.0';}catch{return _0x3a43de(0xbd);}}export async function checkCliVersion(){const _0x16dd94=a307_0x5211,_0x317784=getCurrentCliVersion(),_0xc2f3fc=await getCliVersionPolicy(),_0x3d695b=_0xc2f3fc?.[_0x16dd94(0xb3)]||null,_0x3e9dd2=_0xc2f3fc?.[_0x16dd94(0xbe)]||null;let _0x321ce9=![],_0x35b14a=![];const _0x4003bf=a307_0x36e2d5[_0x16dd94(0xb0)](_0x317784);if(_0x4003bf&&_0x3d695b)try{const _0x5de7ec=a307_0x36e2d5['coerce'](_0x3d695b);if(_0x5de7ec)_0x321ce9=a307_0x36e2d5['lt'](_0x4003bf,_0x5de7ec);}catch{}if(_0x4003bf&&_0x3e9dd2)try{const _0x34c18d=a307_0x36e2d5[_0x16dd94(0xb0)](_0x3e9dd2);if(_0x34c18d)_0x35b14a=a307_0x36e2d5['lt'](_0x4003bf,_0x34c18d);}catch{}return _0x35b14a&&(_0x321ce9=!![]),{'currentVersion':_0x317784,'stableVersion':_0x3d695b,'minimumVersion':_0x3e9dd2,'needsUpgrade':_0x321ce9,'belowMinimum':_0x35b14a,'isPreRelease':![],'upgradeMessage':_0xc2f3fc?.[_0x16dd94(0xbf)],'minimumVersionMessage':_0xc2f3fc?.[_0x16dd94(0xad)]};}function a307_0x4317(){const _0x2fc011=['7HWQIzu','Minimum\x20supported:\x20','npm\x20install\x20-g\x20','38deMFiq','548427JBehkj','latest','12XRqFGA','1497440wfvogD','log','join','740yvXmLl','minimumVersionMessage','needsUpgrade','\x1b[1m','coerce','309560nugUXv','\x20\x20\x20Stable\x20version:\x20','stableVersion','6619HXcUIC','\x20\x20\x20Upgrade\x20command:\x20','1906768gPtCfo','8290206wMzsLv','utf-8','belowMinimum','76978SlgHTh','\x20\x20\x20Minimum\x20supported:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','1.0.0','minimumVersion','upgradeMessage','filter','↪\x20Critical\x20CLI\x20upgrade\x20required','\x1b[33m','\x20\x20\x20','Current\x20version:\x20','currentVersion'];a307_0x4317=function(){return _0x2fc011;};return a307_0x4317();}export function printCliUpgradeWarning(_0x2922ac){const _0x597be1=a307_0x5211;if(!_0x2922ac[_0x597be1(0xae)]&&!_0x2922ac[_0x597be1(0xb9)])return;const _0x229ab8='\x1b[31m',_0x56cd66=_0x597be1(0xc2),_0x3ffb96='\x1b[0m',_0x5c32e6=_0x597be1(0xaf),_0x2b3fde=getCliUpgradeCommand(_0x2922ac);console[_0x597be1(0xaa)](),_0x2922ac[_0x597be1(0xb9)]?(console['log'](''+_0x229ab8+_0x5c32e6+_0x597be1(0xc1)+_0x3ffb96),console[_0x597be1(0xaa)](_0x229ab8+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x2922ac[_0x597be1(0xc5)]+_0x3ffb96),_0x2922ac['minimumVersion']&&console[_0x597be1(0xaa)](_0x229ab8+_0x597be1(0xbb)+_0x2922ac['minimumVersion']+_0x3ffb96),_0x2922ac[_0x597be1(0xb3)]&&_0x2922ac[_0x597be1(0xb3)]!==_0x2922ac[_0x597be1(0xbe)]&&console[_0x597be1(0xaa)](_0x229ab8+'\x20\x20\x20Recommended\x20stable:\x20'+_0x2922ac['stableVersion']+_0x3ffb96),_0x2922ac['minimumVersionMessage']&&console['log'](_0x229ab8+'\x20\x20\x20'+_0x2922ac[_0x597be1(0xad)]+_0x3ffb96),console[_0x597be1(0xaa)](_0x229ab8+_0x597be1(0xb5)+_0x2b3fde+_0x3ffb96)):(console[_0x597be1(0xaa)](''+_0x56cd66+_0x5c32e6+'↪\x20New\x20version\x20available'+_0x3ffb96),console[_0x597be1(0xaa)](_0x56cd66+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x2922ac['currentVersion']+_0x3ffb96),console[_0x597be1(0xaa)](_0x56cd66+_0x597be1(0xb2)+_0x2922ac[_0x597be1(0xb3)]+_0x3ffb96),_0x2922ac[_0x597be1(0xbf)]&&console['log'](_0x56cd66+_0x597be1(0xc3)+_0x2922ac[_0x597be1(0xbf)]+_0x3ffb96),console['log'](_0x56cd66+_0x597be1(0xb5)+_0x2b3fde+_0x3ffb96)),console['log']();}export function assertCliVersionSupported(_0x52f11b){const _0x2d3c82=a307_0x5211;if(!_0x52f11b['belowMinimum'])return;const _0x2f6868=[_0x52f11b[_0x2d3c82(0xad)],_0x2d3c82(0xc4)+_0x52f11b['currentVersion'],_0x52f11b[_0x2d3c82(0xbe)]?_0x2d3c82(0xc7)+_0x52f11b['minimumVersion']:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x52f11b)][_0x2d3c82(0xc0)](Boolean)[_0x2d3c82(0xab)]('\x0a');throw CliErrors['validation'](_0x2d3c82(0xbc),_0x2f6868);}
@@ -1 +1 @@
1
- (function(_0x455571,_0x546270){const _0x270cde=a310_0x5036,_0x28302d=_0x455571();while(!![]){try{const _0x13b789=parseInt(_0x270cde(0x1ca))/0x1+-parseInt(_0x270cde(0x1c8))/0x2+-parseInt(_0x270cde(0x1d6))/0x3+-parseInt(_0x270cde(0x1c7))/0x4+parseInt(_0x270cde(0x1d2))/0x5+-parseInt(_0x270cde(0x1cb))/0x6+parseInt(_0x270cde(0x1ce))/0x7;if(_0x13b789===_0x546270)break;else _0x28302d['push'](_0x28302d['shift']());}catch(_0x7b1e4d){_0x28302d['push'](_0x28302d['shift']());}}}(a310_0x41e9,0x332b2));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';function a310_0x41e9(){const _0x1f5690=['now','1189635vMFmwp','json','signal','minimumVersion','1083954MoRVUH','trim','latestVersion','object','upgradeMessage','stableVersion','719720gGZqJd','553040fdnMjC','recommendedVersion','79709EzYzuJ','857376yrSAJI','minimumVersionMessage','application/json','5968298gyTwGv','length','cli'];a310_0x41e9=function(){return _0x1f5690;};return a310_0x41e9();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x51fcad){const _0x287920=a310_0x5036;return typeof _0x51fcad==='string'&&_0x51fcad[_0x287920(0x1c2)]()[_0x287920(0x1cf)]>0x0?_0x51fcad[_0x287920(0x1c2)]():null;}function normalizeCliVersionPolicy(_0x3ae15a){const _0x26784b=a310_0x5036;if(!_0x3ae15a||typeof _0x3ae15a!==_0x26784b(0x1c4))return null;const _0x483c8=_0x3ae15a,_0xaaf245=_0x483c8[_0x26784b(0x1d0)]&&typeof _0x483c8['cli']==='object'?_0x483c8['cli']:_0x483c8,_0x5aa81a=pickString(_0xaaf245[_0x26784b(0x1c6)])||pickString(_0xaaf245[_0x26784b(0x1c3)])||pickString(_0xaaf245[_0x26784b(0x1c9)]),_0x26ea6f=pickString(_0xaaf245[_0x26784b(0x1d5)])||pickString(_0xaaf245['minVersion']);if(!_0x5aa81a&&!_0x26ea6f)return null;return{'stableVersion':_0x5aa81a,'minimumVersion':_0x26ea6f,'upgradeMessage':pickString(_0xaaf245[_0x26784b(0x1c5)])||undefined,'minimumVersionMessage':pickString(_0xaaf245[_0x26784b(0x1cc)])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0xc959d3=a310_0x5036,_0x5dc40a=new AbortController(),_0x1953f9=setTimeout(()=>_0x5dc40a['abort'](),FETCH_TIMEOUT_MS);try{const _0x2cef1d=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0xc959d3(0x1cd)},'signal':_0x5dc40a[_0xc959d3(0x1d4)]});if(!_0x2cef1d['ok'])return null;const _0x288193=await _0x2cef1d[_0xc959d3(0x1d3)]();return _0x288193&&typeof _0x288193===_0xc959d3(0x1c4)?_0x288193:null;}catch{return null;}finally{clearTimeout(_0x1953f9);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x4838ff=a310_0x5036,_0x4ff62f=Date[_0x4838ff(0x1d1)]();if(hasCachedConfig){const _0xe565fa=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4ff62f-cacheTime<_0xe565fa)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x4ff62f,hasCachedConfig=!![],cachedConfig;}function a310_0x5036(_0x3c2963,_0x228272){_0x3c2963=_0x3c2963-0x1c2;const _0x41e9e7=a310_0x41e9();let _0x50366e=_0x41e9e7[_0x3c2963];return _0x50366e;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x369587,_0x202a1e){const _0x3a449b=a308_0x2af3,_0x4a5576=_0x369587();while(!![]){try{const _0x49bac2=-parseInt(_0x3a449b(0x15a))/0x1*(parseInt(_0x3a449b(0x162))/0x2)+-parseInt(_0x3a449b(0x159))/0x3+-parseInt(_0x3a449b(0x160))/0x4*(parseInt(_0x3a449b(0x161))/0x5)+parseInt(_0x3a449b(0x169))/0x6*(parseInt(_0x3a449b(0x15c))/0x7)+parseInt(_0x3a449b(0x163))/0x8*(parseInt(_0x3a449b(0x165))/0x9)+-parseInt(_0x3a449b(0x166))/0xa*(parseInt(_0x3a449b(0x15e))/0xb)+parseInt(_0x3a449b(0x167))/0xc;if(_0x49bac2===_0x202a1e)break;else _0x4a5576['push'](_0x4a5576['shift']());}catch(_0x56ef77){_0x4a5576['push'](_0x4a5576['shift']());}}}(a308_0x16c7,0x1a7f6));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x1e3438){const _0x2576eb=a308_0x2af3;return typeof _0x1e3438===_0x2576eb(0x16d)&&_0x1e3438[_0x2576eb(0x16a)]()[_0x2576eb(0x16f)]>0x0?_0x1e3438[_0x2576eb(0x16a)]():null;}function normalizeCliVersionPolicy(_0x5c679f){const _0x2c281a=a308_0x2af3;if(!_0x5c679f||typeof _0x5c679f!==_0x2c281a(0x16b))return null;const _0x51dc95=_0x5c679f,_0x32501c=_0x51dc95[_0x2c281a(0x171)]&&typeof _0x51dc95[_0x2c281a(0x171)]===_0x2c281a(0x16b)?_0x51dc95[_0x2c281a(0x171)]:_0x51dc95,_0x581b1c=pickString(_0x32501c['stableVersion'])||pickString(_0x32501c[_0x2c281a(0x172)])||pickString(_0x32501c[_0x2c281a(0x168)]),_0x445eac=pickString(_0x32501c['minimumVersion'])||pickString(_0x32501c[_0x2c281a(0x170)]);if(!_0x581b1c&&!_0x445eac)return null;return{'stableVersion':_0x581b1c,'minimumVersion':_0x445eac,'upgradeMessage':pickString(_0x32501c[_0x2c281a(0x15b)])||undefined,'minimumVersionMessage':pickString(_0x32501c[_0x2c281a(0x15d)])||undefined};}function a308_0x16c7(){const _0x1ed774=['530280BPXeej','45DTTBEI','upgradeMessage','21413hYfIac','minimumVersionMessage','134497mUEYFc','application/json','4FKjAza','499715psVfPy','1492tuwkkS','8AhBHuR','abort','97686tQVHVn','30pbkzKp','4124244ZlRJrA','recommendedVersion','198fIsChZ','trim','object','now','string','json','length','minVersion','cli','latestVersion','signal'];a308_0x16c7=function(){return _0x1ed774;};return a308_0x16c7();}export async function fetchRabetbaseCdnConfig(){const _0x4a569d=a308_0x2af3,_0x20a117=new AbortController(),_0x458e55=setTimeout(()=>_0x20a117[_0x4a569d(0x164)](),FETCH_TIMEOUT_MS);try{const _0x487487=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x4a569d(0x15f)},'signal':_0x20a117[_0x4a569d(0x158)]});if(!_0x487487['ok'])return null;const _0x32241c=await _0x487487[_0x4a569d(0x16e)]();return _0x32241c&&typeof _0x32241c===_0x4a569d(0x16b)?_0x32241c:null;}catch{return null;}finally{clearTimeout(_0x458e55);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x5536b8=a308_0x2af3,_0x19427d=Date[_0x5536b8(0x16c)]();if(hasCachedConfig){const _0x3c6e03=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x19427d-cacheTime<_0x3c6e03)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x19427d,hasCachedConfig=!![],cachedConfig;}function a308_0x2af3(_0x1d1a37,_0x1e85ff){_0x1d1a37=_0x1d1a37-0x158;const _0x16c7b4=a308_0x16c7();let _0x2af38b=_0x16c7b4[_0x1d1a37];return _0x2af38b;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- function a311_0x5a91(_0x275a82,_0x354df6){_0x275a82=_0x275a82-0x19f;const _0x19f217=a311_0x19f2();let _0x5a91c9=_0x19f217[_0x275a82];return _0x5a91c9;}function a311_0x19f2(){const _0x5c23e7=['952765fUBgwf','8yUNyBD','366759LBAlOp','4661613ZrFBHO','735988MkRsMo','2273210UhWRIq','env','14xapuwW','7GPZvXn','210582eDgCVE','project','2654172OEsyqc','170mYdlUY'];a311_0x19f2=function(){return _0x5c23e7;};return a311_0x19f2();}const a311_0x3d9fad=a311_0x5a91;(function(_0x102fa1,_0x388675){const _0x157e6b=a311_0x5a91,_0x9b4fea=_0x102fa1();while(!![]){try{const _0x2bd773=-parseInt(_0x157e6b(0x1a5))/0x1+parseInt(_0x157e6b(0x1a8))/0x2*(-parseInt(_0x157e6b(0x1a3))/0x3)+parseInt(_0x157e6b(0x19f))/0x4+parseInt(_0x157e6b(0x1a6))/0x5+parseInt(_0x157e6b(0x1aa))/0x6*(-parseInt(_0x157e6b(0x1a9))/0x7)+-parseInt(_0x157e6b(0x1a2))/0x8*(parseInt(_0x157e6b(0x1a4))/0x9)+-parseInt(_0x157e6b(0x1a0))/0xa*(-parseInt(_0x157e6b(0x1a1))/0xb);if(_0x2bd773===_0x388675)break;else _0x9b4fea['push'](_0x9b4fea['shift']());}catch(_0x4ab6c9){_0x9b4fea['push'](_0x9b4fea['shift']());}}}(a311_0x19f2,0x6cd83));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a311_0x11b660,getMultiAppConfigs as a311_0x545fab,getTemplateBaseUrl as a311_0xa4f3e1}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x377308){const _0x163e87=a311_0x5a91,_0x18928e=readRawConfig(_0x377308);return _0x18928e[_0x163e87(0x1a7)]&&typeof _0x18928e[_0x163e87(0x1a7)]==='string'&&initEnv(_0x18928e[_0x163e87(0x1a7)]),_0x18928e;}export function getConfigAppCode(){return a311_0x11b660();}export function getMultiAppConfigs(_0x37066b=a311_0x3d9fad(0x1ab)){return a311_0x545fab(_0x37066b);}export function getTemplateBaseUrl(){return a311_0xa4f3e1();}
1
+ const a309_0x58f974=a309_0x2469;function a309_0xaa73(){const _0x3c72b5=['project','93861vEUHsm','7620652VycGHK','147ThTUSd','196lWhcwc','env','90072tzcvkT','5rwZFVZ','1390wSiBjO','55YjopVZ','3354684GGuwPN','136uNTpHp','14627VvPPfq','7459836okgVSJ','134556brGgyd'];a309_0xaa73=function(){return _0x3c72b5;};return a309_0xaa73();}(function(_0x25af4a,_0x29eed8){const _0x1d4066=a309_0x2469,_0x144c9f=_0x25af4a();while(!![]){try{const _0x2f1a5b=parseInt(_0x1d4066(0x1e3))/0x1*(-parseInt(_0x1d4066(0x1ea))/0x2)+-parseInt(_0x1d4066(0x1e5))/0x3*(-parseInt(_0x1d4066(0x1e2))/0x4)+-parseInt(_0x1d4066(0x1de))/0x5*(-parseInt(_0x1d4066(0x1e4))/0x6)+parseInt(_0x1d4066(0x1e9))/0x7*(parseInt(_0x1d4066(0x1dd))/0x8)+-parseInt(_0x1d4066(0x1e7))/0x9*(parseInt(_0x1d4066(0x1df))/0xa)+-parseInt(_0x1d4066(0x1e0))/0xb*(-parseInt(_0x1d4066(0x1e1))/0xc)+-parseInt(_0x1d4066(0x1e8))/0xd;if(_0x2f1a5b===_0x29eed8)break;else _0x144c9f['push'](_0x144c9f['shift']());}catch(_0xc43e83){_0x144c9f['push'](_0x144c9f['shift']());}}}(a309_0xaa73,0xe3d61));function a309_0x2469(_0x43384e,_0x35a3dd){_0x43384e=_0x43384e-0x1dd;const _0xaa7302=a309_0xaa73();let _0x246908=_0xaa7302[_0x43384e];return _0x246908;}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a309_0x165d72,getMultiAppConfigs as a309_0x928b49,getTemplateBaseUrl as a309_0x142423}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x50318c){const _0x270bcf=a309_0x2469,_0x4df29f=readRawConfig(_0x50318c);return _0x4df29f[_0x270bcf(0x1eb)]&&typeof _0x4df29f[_0x270bcf(0x1eb)]==='string'&&initEnv(_0x4df29f['env']),_0x4df29f;}export function getConfigAppCode(){return a309_0x165d72();}export function getMultiAppConfigs(_0x1325df=a309_0x58f974(0x1e6)){return a309_0x928b49(_0x1325df);}export function getTemplateBaseUrl(){return a309_0x142423();}
@@ -1 +1 @@
1
- function a312_0x548a(){const _0x5904d3=['number','4183762qJCyua','string','3896484fWwnjb','3hGgeSI','139640DvSUad','7974965CjBvFS','93990yKGsSp','513lNlEOF','49644744palYcE','isFinite','3RaNrKX','40tLemgk','object','511jRBpxj','654154qZGmIs'];a312_0x548a=function(){return _0x5904d3;};return a312_0x548a();}(function(_0x563de3,_0x439ef1){const _0x38a8c3=a312_0x5233,_0x306a06=_0x563de3();while(!![]){try{const _0x284aaf=parseInt(_0x38a8c3(0x142))/0x1*(-parseInt(_0x38a8c3(0x136))/0x2)+-parseInt(_0x38a8c3(0x13b))/0x3*(-parseInt(_0x38a8c3(0x13a))/0x4)+-parseInt(_0x38a8c3(0x13d))/0x5+-parseInt(_0x38a8c3(0x13e))/0x6*(parseInt(_0x38a8c3(0x145))/0x7)+-parseInt(_0x38a8c3(0x13c))/0x8*(-parseInt(_0x38a8c3(0x13f))/0x9)+parseInt(_0x38a8c3(0x143))/0xa*(-parseInt(_0x38a8c3(0x138))/0xb)+parseInt(_0x38a8c3(0x140))/0xc;if(_0x284aaf===_0x439ef1)break;else _0x306a06['push'](_0x306a06['shift']());}catch(_0x50b3ff){_0x306a06['push'](_0x306a06['shift']());}}}(a312_0x548a,0xd32d5));function toFiniteNumber(_0xe6f8c3){const _0xbc848a=a312_0x5233;if(typeof _0xe6f8c3===_0xbc848a(0x137)&&Number[_0xbc848a(0x141)](_0xe6f8c3))return _0xe6f8c3;if(typeof _0xe6f8c3===_0xbc848a(0x139)){const _0xe540bf=_0xe6f8c3['trim']();if(!_0xe540bf)return undefined;const _0x50fba9=Number(_0xe540bf);if(Number[_0xbc848a(0x141)](_0x50fba9))return _0x50fba9;}return undefined;}function a312_0x5233(_0x35dc35,_0x2532d7){_0x35dc35=_0x35dc35-0x136;const _0x548a61=a312_0x548a();let _0x5233f6=_0x548a61[_0x35dc35];return _0x5233f6;}export function normalizeEntityWithIdResponse(_0xa35d19){const _0xed9a72=a312_0x5233,_0x414a06=toFiniteNumber(_0xa35d19);if(_0x414a06!==undefined)return{'id':_0x414a06,'entity':{'id':_0x414a06}};if(!_0xa35d19||typeof _0xa35d19!==_0xed9a72(0x144))return{'id':undefined,'entity':{}};const _0x157e9c={..._0xa35d19},_0x3c8105=toFiniteNumber(_0x157e9c['id']);return _0x3c8105!==undefined&&(_0x157e9c['id']=_0x3c8105),{'id':_0x3c8105,'entity':_0x157e9c};}
1
+ function a310_0x3f82(_0x564c7b,_0x3569de){_0x564c7b=_0x564c7b-0x1ea;const _0x3c79ae=a310_0x3c79();let _0x3f8278=_0x3c79ae[_0x564c7b];return _0x3f8278;}(function(_0x3dc661,_0x1e7ca6){const _0xb811ec=a310_0x3f82,_0x3c6197=_0x3dc661();while(!![]){try{const _0x496cf2=-parseInt(_0xb811ec(0x1eb))/0x1+-parseInt(_0xb811ec(0x1ed))/0x2+parseInt(_0xb811ec(0x1f4))/0x3*(parseInt(_0xb811ec(0x1ec))/0x4)+-parseInt(_0xb811ec(0x1ea))/0x5+-parseInt(_0xb811ec(0x1f6))/0x6*(parseInt(_0xb811ec(0x1f3))/0x7)+-parseInt(_0xb811ec(0x1f5))/0x8+-parseInt(_0xb811ec(0x1ee))/0x9*(-parseInt(_0xb811ec(0x1f0))/0xa);if(_0x496cf2===_0x1e7ca6)break;else _0x3c6197['push'](_0x3c6197['shift']());}catch(_0x58e4f2){_0x3c6197['push'](_0x3c6197['shift']());}}}(a310_0x3c79,0xe90e0));function a310_0x3c79(){const _0x219ffa=['12Fgpxqq','3790310wymoRp','1426204BVXiZX','2032HLRodB','3302840akkOBl','20187pRlNrg','string','18830rlwmBv','number','isFinite','510839Tjjusq','4998RviDFt','1069320HhSnAk'];a310_0x3c79=function(){return _0x219ffa;};return a310_0x3c79();}function toFiniteNumber(_0x216aa4){const _0x1c2409=a310_0x3f82;if(typeof _0x216aa4===_0x1c2409(0x1f1)&&Number[_0x1c2409(0x1f2)](_0x216aa4))return _0x216aa4;if(typeof _0x216aa4===_0x1c2409(0x1ef)){const _0x3984b2=_0x216aa4['trim']();if(!_0x3984b2)return undefined;const _0x588591=Number(_0x3984b2);if(Number[_0x1c2409(0x1f2)](_0x588591))return _0x588591;}return undefined;}export function normalizeEntityWithIdResponse(_0x688c03){const _0x2d03e4=toFiniteNumber(_0x688c03);if(_0x2d03e4!==undefined)return{'id':_0x2d03e4,'entity':{'id':_0x2d03e4}};if(!_0x688c03||typeof _0x688c03!=='object')return{'id':undefined,'entity':{}};const _0x46ae15={..._0x688c03},_0x4fb77a=toFiniteNumber(_0x46ae15['id']);return _0x4fb77a!==undefined&&(_0x46ae15['id']=_0x4fb77a),{'id':_0x4fb77a,'entity':_0x46ae15};}
@@ -1 +1 @@
1
- function a313_0x1fca(_0x1027a7,_0x2fe603){_0x1027a7=_0x1027a7-0x145;const _0x14a534=a313_0x14a5();let _0x1fca6d=_0x14a534[_0x1027a7];return _0x1fca6d;}(function(_0xcffa5,_0x2bf96a){const _0x1f43a4=a313_0x1fca,_0x446c52=_0xcffa5();while(!![]){try{const _0x17d7ac=parseInt(_0x1f43a4(0x14e))/0x1*(parseInt(_0x1f43a4(0x150))/0x2)+-parseInt(_0x1f43a4(0x146))/0x3+-parseInt(_0x1f43a4(0x14d))/0x4*(parseInt(_0x1f43a4(0x14f))/0x5)+-parseInt(_0x1f43a4(0x14a))/0x6*(-parseInt(_0x1f43a4(0x147))/0x7)+-parseInt(_0x1f43a4(0x14c))/0x8+parseInt(_0x1f43a4(0x149))/0x9*(-parseInt(_0x1f43a4(0x145))/0xa)+parseInt(_0x1f43a4(0x148))/0xb*(-parseInt(_0x1f43a4(0x14b))/0xc);if(_0x17d7ac===_0x2bf96a)break;else _0x446c52['push'](_0x446c52['shift']());}catch(_0x44b95b){_0x446c52['push'](_0x446c52['shift']());}}}(a313_0x14a5,0x95b81));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x4dd0e8,_0x32ff0c){const _0x49d5af=a313_0x1fca,_0x45f435=statSync(_0x4dd0e8);if(_0x45f435[_0x49d5af(0x151)]()){!existsSync(_0x32ff0c)&&mkdirSync(_0x32ff0c,{'recursive':!![]});const _0x3f7724=readdirSync(_0x4dd0e8);for(const _0x51ed71 of _0x3f7724){await copyDir(join(_0x4dd0e8,_0x51ed71),join(_0x32ff0c,_0x51ed71));}}else copyFileSync(_0x4dd0e8,_0x32ff0c);}export function ensureDir(_0x25a347){!existsSync(_0x25a347)&&mkdirSync(_0x25a347,{'recursive':!![]});}export function pathExists(_0x1fe02a){return existsSync(_0x1fe02a);}function a313_0x14a5(){const _0x19f8a9=['2090792fRvZOj','1332fcvNlT','592089cOivEz','265nlzuMT','4ynjdNL','isDirectory','30SGyREP','80088meMDSR','133IDEjZu','195437Pplbta','470277ErbDIs','139674XgfXbT','372yBNJVW'];a313_0x14a5=function(){return _0x19f8a9;};return a313_0x14a5();}
1
+ (function(_0x57b129,_0xac5db7){const _0x33be39=a311_0x16fb,_0x105eba=_0x57b129();while(!![]){try{const _0x13cf4f=-parseInt(_0x33be39(0xf6))/0x1*(-parseInt(_0x33be39(0xf2))/0x2)+parseInt(_0x33be39(0xf1))/0x3+parseInt(_0x33be39(0xef))/0x4+parseInt(_0x33be39(0xf0))/0x5*(-parseInt(_0x33be39(0xf5))/0x6)+parseInt(_0x33be39(0xf3))/0x7*(parseInt(_0x33be39(0xf4))/0x8)+parseInt(_0x33be39(0xf7))/0x9*(-parseInt(_0x33be39(0xed))/0xa)+-parseInt(_0x33be39(0xf8))/0xb*(parseInt(_0x33be39(0xee))/0xc);if(_0x13cf4f===_0xac5db7)break;else _0x105eba['push'](_0x105eba['shift']());}catch(_0x589d23){_0x105eba['push'](_0x105eba['shift']());}}}(a311_0x16c1,0xc0f18));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a311_0x16c1(){const _0x55d093=['50OTXAnL','2790672ltoZUD','10AcVOYI','217JAwraa','108504YpQiSz','763380uVRoMW','109093AaZQXx','164268nleXvV','2239391IMUHGh','500iBXSkU','12LYLHvO','5130540SFsLHY'];a311_0x16c1=function(){return _0x55d093;};return a311_0x16c1();}import{join}from'node:path';function a311_0x16fb(_0x5834dc,_0x58b3c6){_0x5834dc=_0x5834dc-0xed;const _0x16c1ff=a311_0x16c1();let _0x16fb6d=_0x16c1ff[_0x5834dc];return _0x16fb6d;}export async function copyDir(_0x9d1b59,_0x788417){const _0x19ef05=statSync(_0x9d1b59);if(_0x19ef05['isDirectory']()){!existsSync(_0x788417)&&mkdirSync(_0x788417,{'recursive':!![]});const _0x4d8fed=readdirSync(_0x9d1b59);for(const _0x2c371e of _0x4d8fed){await copyDir(join(_0x9d1b59,_0x2c371e),join(_0x788417,_0x2c371e));}}else copyFileSync(_0x9d1b59,_0x788417);}export function ensureDir(_0x2e162e){!existsSync(_0x2e162e)&&mkdirSync(_0x2e162e,{'recursive':!![]});}export function pathExists(_0x360a14){return existsSync(_0x360a14);}