@lovrabet/rabetbase-cli 2.5.2-beta.7 → 2.5.3-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.d.ts +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.d.ts +2 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/auth/auth-server-ui.js +1 -1
  8. package/lib/auth/auth-server.js +1 -1
  9. package/lib/auth/constant.js +1 -1
  10. package/lib/auth/get-cookie.js +1 -1
  11. package/lib/auth/get-session-user.js +1 -1
  12. package/lib/auth/is-session-valid.js +1 -1
  13. package/lib/auth/login-success-html.js +1 -1
  14. package/lib/auth/logout.js +1 -1
  15. package/lib/cli-flags.js +1 -1
  16. package/lib/cli.js +1 -1
  17. package/lib/commands/api/generate.js +1 -1
  18. package/lib/commands/api/index.js +1 -1
  19. package/lib/commands/api/list.js +1 -1
  20. package/lib/commands/api/pull.js +1 -1
  21. package/lib/commands/api/shared.js +1 -1
  22. package/lib/commands/app/index.js +1 -1
  23. package/lib/commands/app/list.js +1 -1
  24. package/lib/commands/app/members-list.js +1 -1
  25. package/lib/commands/app/remote-directory.js +1 -1
  26. package/lib/commands/app/shared.js +1 -1
  27. package/lib/commands/app-config/delete.js +1 -1
  28. package/lib/commands/app-config/get.js +1 -1
  29. package/lib/commands/app-config/index.js +1 -1
  30. package/lib/commands/app-config/list.js +1 -1
  31. package/lib/commands/app-config/set.js +1 -1
  32. package/lib/commands/app-config/shared.js +1 -1
  33. package/lib/commands/auth/index.js +1 -1
  34. package/lib/commands/bff/create.js +1 -1
  35. package/lib/commands/bff/delete.js +1 -1
  36. package/lib/commands/bff/detail.js +1 -1
  37. package/lib/commands/bff/index.js +1 -1
  38. package/lib/commands/bff/list.js +1 -1
  39. package/lib/commands/bff/pull.js +1 -1
  40. package/lib/commands/bff/push.js +1 -1
  41. package/lib/commands/bff/status.js +1 -1
  42. package/lib/commands/cli-skill/index.js +1 -1
  43. package/lib/commands/cli-update.js +1 -1
  44. package/lib/commands/codegen/index.js +1 -1
  45. package/lib/commands/codegen/sdk.js +1 -1
  46. package/lib/commands/codegen/sql.js +1 -1
  47. package/lib/commands/common/app-registry.js +1 -1
  48. package/lib/commands/common/app-selector.js +1 -1
  49. package/lib/commands/common/async-task.js +1 -1
  50. package/lib/commands/common/dry-run.js +1 -1
  51. package/lib/commands/common/flags.js +1 -1
  52. package/lib/commands/common/local-file.js +1 -1
  53. package/lib/commands/common/validate.js +1 -1
  54. package/lib/commands/config/delete.js +1 -1
  55. package/lib/commands/config/get.js +1 -1
  56. package/lib/commands/config/index.js +1 -1
  57. package/lib/commands/config/init.js +1 -1
  58. package/lib/commands/config/list.js +1 -1
  59. package/lib/commands/config/set.js +1 -1
  60. package/lib/commands/config/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/business-groups.js +1 -1
  63. package/lib/commands/dataset/capability.js +1 -1
  64. package/lib/commands/dataset/delete.js +1 -1
  65. package/lib/commands/dataset/detail.js +1 -1
  66. package/lib/commands/dataset/extend-update.js +1 -1
  67. package/lib/commands/dataset/field-restore.js +1 -1
  68. package/lib/commands/dataset/field-update.js +1 -1
  69. package/lib/commands/dataset/generate.js +1 -1
  70. package/lib/commands/dataset/index.js +1 -1
  71. package/lib/commands/dataset/list.js +1 -1
  72. package/lib/commands/dataset/operations.js +1 -1
  73. package/lib/commands/dataset/relation-audit.js +1 -1
  74. package/lib/commands/dataset/relation-create.js +1 -1
  75. package/lib/commands/dataset/relation-delete.js +1 -1
  76. package/lib/commands/dataset/relation-shared.js +1 -1
  77. package/lib/commands/dataset/relation-update.js +1 -1
  78. package/lib/commands/dataset/relations.js +1 -1
  79. package/lib/commands/dataset/rename.js +1 -1
  80. package/lib/commands/dataset/restore.js +1 -1
  81. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  82. package/lib/commands/db/analysis-batching.js +1 -1
  83. package/lib/commands/db/analyze-batch-plan.js +1 -1
  84. package/lib/commands/db/analyze-cancel.js +1 -1
  85. package/lib/commands/db/analyze-start.js +1 -1
  86. package/lib/commands/db/analyze-status.js +1 -1
  87. package/lib/commands/db/create.js +1 -1
  88. package/lib/commands/db/delete.js +1 -1
  89. package/lib/commands/db/detail.js +1 -1
  90. package/lib/commands/db/diff-refresh-start.js +1 -1
  91. package/lib/commands/db/diff-refresh-status.js +1 -1
  92. package/lib/commands/db/diff.js +1 -1
  93. package/lib/commands/db/index.js +1 -1
  94. package/lib/commands/db/list.js +1 -1
  95. package/lib/commands/db/shared.js +1 -1
  96. package/lib/commands/db/table-diff-shared.js +1 -1
  97. package/lib/commands/db/tables.js +1 -1
  98. package/lib/commands/db/test.js +1 -1
  99. package/lib/commands/db/update.js +1 -1
  100. package/lib/commands/deployment/index.js +1 -1
  101. package/lib/commands/deployment/sync-all.js +1 -1
  102. package/lib/commands/deployment/sync-jobs.js +1 -1
  103. package/lib/commands/deployment/sync-status.js +1 -1
  104. package/lib/commands/doctor.js +1 -1
  105. package/lib/commands/file/index.js +1 -1
  106. package/lib/commands/instant-api-policy/current.js +1 -1
  107. package/lib/commands/instant-api-policy/index.js +1 -1
  108. package/lib/commands/instant-api-policy/init.js +1 -1
  109. package/lib/commands/instant-api-policy/publish.js +1 -1
  110. package/lib/commands/instant-api-policy/pull.js +1 -1
  111. package/lib/commands/instant-api-policy/revision.js +1 -1
  112. package/lib/commands/instant-api-policy/revisions.js +1 -1
  113. package/lib/commands/instant-api-policy/rollback.js +1 -1
  114. package/lib/commands/instant-api-policy/shared.js +1 -1
  115. package/lib/commands/instant-api-policy/validate.js +1 -1
  116. package/lib/commands/issue/index.js +1 -1
  117. package/lib/commands/issue/nudge.js +1 -1
  118. package/lib/commands/issue/report.js +1 -1
  119. package/lib/commands/issue/shared.js +1 -1
  120. package/lib/commands/kb/create.js +1 -1
  121. package/lib/commands/kb/delete.js +1 -1
  122. package/lib/commands/kb/detail.js +1 -1
  123. package/lib/commands/kb/index.js +1 -1
  124. package/lib/commands/kb/list.js +1 -1
  125. package/lib/commands/kb/search.js +1 -1
  126. package/lib/commands/kb/shared.js +1 -1
  127. package/lib/commands/kb/update.js +1 -1
  128. package/lib/commands/logs/index.js +1 -1
  129. package/lib/commands/menu/asset-update.js +1 -1
  130. package/lib/commands/menu/delete.js +1 -1
  131. package/lib/commands/menu/external-link-create.js +1 -1
  132. package/lib/commands/menu/external-link-update.js +1 -1
  133. package/lib/commands/menu/group-create.js +1 -1
  134. package/lib/commands/menu/group-update.js +1 -1
  135. package/lib/commands/menu/index.js +1 -1
  136. package/lib/commands/menu/list.js +1 -1
  137. package/lib/commands/menu/move.js +1 -1
  138. package/lib/commands/menu/regroup-start.js +1 -1
  139. package/lib/commands/menu/rename.js +1 -1
  140. package/lib/commands/menu/shared/compare-table.js +1 -1
  141. package/lib/commands/menu/shared/delete-plan.js +1 -1
  142. package/lib/commands/menu/shared/facts.js +1 -1
  143. package/lib/commands/menu/shared/index.js +1 -1
  144. package/lib/commands/menu/shared/inquirer.js +1 -1
  145. package/lib/commands/menu/shared/local-pages.js +1 -1
  146. package/lib/commands/menu/shared/logic.js +1 -1
  147. package/lib/commands/menu/shared/mutations.js +1 -1
  148. package/lib/commands/menu/shared/service.js +1 -1
  149. package/lib/commands/menu/shared/sync-core.js +1 -1
  150. package/lib/commands/menu/shared/update-core.js +1 -1
  151. package/lib/commands/menu/shared/valid-url.js +1 -1
  152. package/lib/commands/menu/sync.js +1 -1
  153. package/lib/commands/menu/visibility-update.js +1 -1
  154. package/lib/commands/notification/config-create.js +1 -1
  155. package/lib/commands/notification/config-delete.js +1 -1
  156. package/lib/commands/notification/config-list.js +1 -1
  157. package/lib/commands/notification/config-update.js +1 -1
  158. package/lib/commands/notification/index.js +1 -1
  159. package/lib/commands/notification/shared.js +1 -1
  160. package/lib/commands/ocr/index.js +1 -1
  161. package/lib/commands/page/create.js +1 -1
  162. package/lib/commands/page/custom/detail.js +1 -1
  163. package/lib/commands/page/custom/list.js +1 -1
  164. package/lib/commands/page/custom/publish.js +1 -1
  165. package/lib/commands/page/custom/shared.js +1 -1
  166. package/lib/commands/page/custom/syntax.js +1 -1
  167. package/lib/commands/page/custom/update.js +1 -1
  168. package/lib/commands/page/data-list-status.js +1 -1
  169. package/lib/commands/page/generate-start.js +1 -1
  170. package/lib/commands/page/generate-status.js +1 -1
  171. package/lib/commands/page/index.js +1 -1
  172. package/lib/commands/page/pull.js +1 -1
  173. package/lib/commands/page/push.js +1 -1
  174. package/lib/commands/page/relation-audit.js +1 -1
  175. package/lib/commands/page/restore.js +1 -1
  176. package/lib/commands/page/shared.js +1 -1
  177. package/lib/commands/page/sync.js +1 -1
  178. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  179. package/lib/commands/project/create/format-elapsed.js +1 -1
  180. package/lib/commands/project/create/main.js +1 -1
  181. package/lib/commands/project/create/materialize-project-template.js +1 -1
  182. package/lib/commands/project/create/project-name.js +1 -1
  183. package/lib/commands/project/create/project-template-archive.js +1 -1
  184. package/lib/commands/project/create/project-template-path.js +1 -1
  185. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  186. package/lib/commands/project/create/use-format-code.js +1 -1
  187. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  188. package/lib/commands/project/domain-routing-sync.js +1 -1
  189. package/lib/commands/project/index.js +1 -1
  190. package/lib/commands/project/upgrade.js +1 -1
  191. package/lib/commands/registry.js +1 -1
  192. package/lib/commands/role/delete.js +1 -1
  193. package/lib/commands/role/detail.js +1 -1
  194. package/lib/commands/role/index.js +1 -1
  195. package/lib/commands/role/list.js +1 -1
  196. package/lib/commands/role/shared.js +1 -1
  197. package/lib/commands/role/update.js +1 -1
  198. package/lib/commands/role/user-add.js +1 -1
  199. package/lib/commands/role/user-remove.js +1 -1
  200. package/lib/commands/role/user-resolve.js +1 -1
  201. package/lib/commands/rule/get.js +1 -1
  202. package/lib/commands/rule/index.js +1 -1
  203. package/lib/commands/rule/list.js +1 -1
  204. package/lib/commands/rule/set.js +1 -1
  205. package/lib/commands/rule/shared.js +1 -1
  206. package/lib/commands/run/index.js +1 -1
  207. package/lib/commands/schema.js +1 -1
  208. package/lib/commands/sql/create.js +1 -1
  209. package/lib/commands/sql/delete.js +1 -1
  210. package/lib/commands/sql/detail.js +1 -1
  211. package/lib/commands/sql/exec.js +1 -1
  212. package/lib/commands/sql/index.js +1 -1
  213. package/lib/commands/sql/list.js +1 -1
  214. package/lib/commands/sql/pull.js +1 -1
  215. package/lib/commands/sql/push.js +1 -1
  216. package/lib/commands/sql/shared.js +1 -1
  217. package/lib/commands/sql/status.js +1 -1
  218. package/lib/commands/sql/validate.js +1 -1
  219. package/lib/commands/task/index.js +1 -1
  220. package/lib/commands/task/status.js +1 -1
  221. package/lib/commands/tenant/index.js +1 -1
  222. package/lib/commands/tenant/members-list.js +1 -1
  223. package/lib/commands/tenant/shared.js +1 -1
  224. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  225. package/lib/commands/user-account/index.js +1 -1
  226. package/lib/commands/workspace/add.js +1 -1
  227. package/lib/commands/workspace/index.js +1 -1
  228. package/lib/commands/workspace/remove.js +1 -1
  229. package/lib/config/domain-config.js +1 -1
  230. package/lib/config/project-domain-routing.js +1 -1
  231. package/lib/config/region-config.d.ts +23 -0
  232. package/lib/config/region-config.js +1 -0
  233. package/lib/config/schema.d.ts +15 -0
  234. package/lib/config/schema.js +1 -1
  235. package/lib/constant/cdn.js +1 -1
  236. package/lib/constant/cli.js +1 -1
  237. package/lib/constant/defaults.js +1 -1
  238. package/lib/constant/domain.js +1 -1
  239. package/lib/constant/env.js +1 -1
  240. package/lib/constant/output.js +1 -1
  241. package/lib/constant/paths.js +1 -1
  242. package/lib/constant/region.js +1 -1
  243. package/lib/constant/risk.js +1 -1
  244. package/lib/constant/routing-profile.js +1 -1
  245. package/lib/context/app-resolver.d.ts +6 -0
  246. package/lib/context/app-resolver.js +1 -1
  247. package/lib/context/auth-resolver.js +1 -1
  248. package/lib/context/config-loader.js +1 -1
  249. package/lib/context.d.ts +13 -0
  250. package/lib/context.js +1 -1
  251. package/lib/core/alias-resolver.js +1 -1
  252. package/lib/core/api-client.d.ts +2 -0
  253. package/lib/core/api-client.js +1 -1
  254. package/lib/core/bff/config.js +1 -1
  255. package/lib/core/bff/file-system.js +1 -1
  256. package/lib/core/bff/hash.js +1 -1
  257. package/lib/core/bff/lock.js +1 -1
  258. package/lib/core/bff/utils.js +1 -1
  259. package/lib/core/db-resolver.js +1 -1
  260. package/lib/core/instant-api-policy/config.js +1 -1
  261. package/lib/core/kb-search-client.js +1 -1
  262. package/lib/core/page/file-system.js +1 -1
  263. package/lib/core/page/hash.js +1 -1
  264. package/lib/core/page/lock.js +1 -1
  265. package/lib/core/page/lr-smart-jsx.d.ts +6 -0
  266. package/lib/core/page/lr-smart-jsx.js +1 -0
  267. package/lib/core/sql-index-auditor.js +1 -1
  268. package/lib/core/sql-sync/config.js +1 -1
  269. package/lib/core/sql-sync/file-system.js +1 -1
  270. package/lib/core/sql-sync/hash.js +1 -1
  271. package/lib/core/sql-sync/lock.js +1 -1
  272. package/lib/core/sql-sync/utils.js +1 -1
  273. package/lib/core/sql-validator.js +1 -1
  274. package/lib/errors.js +1 -1
  275. package/lib/framework/build-all-flags.js +1 -1
  276. package/lib/framework/error-output.js +1 -1
  277. package/lib/framework/explicit-yes.js +1 -1
  278. package/lib/framework/flags.js +1 -1
  279. package/lib/framework/help.js +1 -1
  280. package/lib/framework/index.js +1 -1
  281. package/lib/framework/output.js +1 -1
  282. package/lib/framework/response.js +1 -1
  283. package/lib/framework/runner-alias.js +1 -1
  284. package/lib/framework/runner.js +1 -1
  285. package/lib/framework/schema-export.js +1 -1
  286. package/lib/framework/supported-flags.js +1 -1
  287. package/lib/framework/types.js +1 -1
  288. package/lib/generated/build-info.d.ts +4 -4
  289. package/lib/generated/build-info.js +1 -1
  290. package/lib/generated/official-routing.js +1 -1
  291. package/lib/generated/routing-contract.js +1 -1
  292. package/lib/help.js +1 -1
  293. package/lib/postinstall.js +1 -1
  294. package/lib/runtime/confirmation.js +1 -1
  295. package/lib/runtime/event.js +1 -1
  296. package/lib/runtime/index.js +1 -1
  297. package/lib/runtime/queue.js +1 -1
  298. package/lib/runtime/resolve.js +1 -1
  299. package/lib/skills/builtin-skill.js +1 -1
  300. package/lib/skills/main.js +1 -1
  301. package/lib/skills/npx-skills-add.js +1 -1
  302. package/lib/skills/skill-presence.js +1 -1
  303. package/lib/telemetry/cli-command-trace.js +1 -1
  304. package/lib/telemetry/cli-help-trace.js +1 -1
  305. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  306. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  307. package/lib/telemetry/send-cli-trace-log.js +1 -1
  308. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  309. package/lib/types/index.d.ts +1 -1
  310. package/lib/utils/ai_config.js +1 -1
  311. package/lib/utils/apply-jq-filter.js +1 -1
  312. package/lib/utils/cdn-config.js +1 -1
  313. package/lib/utils/check-sdk-version.js +1 -1
  314. package/lib/utils/cli-version-check.js +1 -1
  315. package/lib/utils/cli-version-policy.js +1 -1
  316. package/lib/utils/config.d.ts +2 -8
  317. package/lib/utils/config.js +1 -1
  318. package/lib/utils/entity-with-id.js +1 -1
  319. package/lib/utils/file-utils.js +1 -1
  320. package/lib/utils/guides-cdn.js +1 -1
  321. package/lib/utils/http-client.js +1 -1
  322. package/lib/utils/is-non-interactive.js +1 -1
  323. package/lib/utils/logger.js +1 -1
  324. package/lib/utils/params.js +1 -1
  325. package/lib/utils/platform.js +1 -1
  326. package/lib/utils/sleep.js +1 -1
  327. package/lib/utils/template-replacer.d.ts +2 -1
  328. package/lib/utils/template-replacer.js +1 -1
  329. package/lib/utils/update-notice.js +1 -1
  330. package/lib/utils/version.js +1 -1
  331. package/lib/utils/with-active-cookie.js +1 -1
  332. package/lib/utils/write-cli-side-channel.js +1 -1
  333. package/package.json +1 -1
  334. package/skills/rabetbase/SKILL.md +6 -5
  335. package/skills/rabetbase/guides/page-development-workflow.md +3 -0
  336. package/skills/rabetbase/guides/sdk-client-generation.md +5 -5
  337. package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +11 -3
  338. package/skills/rabetbase/references/rabetbase-api-pull.md +5 -4
  339. package/skills/rabetbase/references/rabetbase-app-list.md +3 -0
  340. package/skills/rabetbase/references/rabetbase-bff-list.md +1 -1
  341. package/skills/rabetbase/references/rabetbase-bff-pull.md +2 -0
  342. package/skills/rabetbase/references/rabetbase-bff-status.md +2 -0
  343. package/skills/rabetbase/references/rabetbase-config.md +10 -9
  344. package/skills/rabetbase/references/rabetbase-doctor.md +2 -2
  345. package/skills/rabetbase/references/rabetbase-page-push.md +5 -1
  346. package/skills/rabetbase/references/rabetbase-workspace.md +4 -2
  347. package/skills/rabetbase.manifest.json +3 -3
  348. package/templates/generate-api/client.ts.tpl +1 -1
@@ -1 +1 @@
1
- const a282_0x369e79=a282_0x3564;(function(_0x2c1ce7,_0x52fa47){const _0x3cfa37=a282_0x3564,_0x11abe7=_0x2c1ce7();while(!![]){try{const _0x37ae10=-parseInt(_0x3cfa37(0x14d))/0x1*(-parseInt(_0x3cfa37(0x152))/0x2)+parseInt(_0x3cfa37(0x150))/0x3+-parseInt(_0x3cfa37(0x155))/0x4*(-parseInt(_0x3cfa37(0x151))/0x5)+parseInt(_0x3cfa37(0x13f))/0x6+parseInt(_0x3cfa37(0x141))/0x7+-parseInt(_0x3cfa37(0x138))/0x8+-parseInt(_0x3cfa37(0x147))/0x9;if(_0x37ae10===_0x52fa47)break;else _0x11abe7['push'](_0x11abe7['shift']());}catch(_0x5035dc){_0x11abe7['push'](_0x11abe7['shift']());}}}(a282_0x2512,0x9a469));function a282_0x2512(){const _0x16a8bb=['3233172YXjodY','1910fbGiti','2NMTAVI','https://api.lovrabet.ai','china','1480gHnZUt','https://user.lovrabet.id','https://dev.lovrabet.ai','Indonesia','245456ppGsxp','https://api.lovrabet.id','https://cdnjs.cloudflare.com/ajax/libs','https://api.lovrabet.com','global','https://app.lovrabet.id','https://daily-api.lovrabet.com','1360788iQeTrO','https://runtime.lovrabet.com','7759619LLEGDZ','indonesia','https://app.lovrabet.com','https://user.lovrabet.com','3106fb4f7940b1f4446307e8a7f0c6f6e4a71affd6f8ebe7e5f23e055c08ca3f','https://dev.lovrabet.id','22401819cncjGt','https://daily-runtime.lovrabet.com','https://skills-daily.lovrabet.com','https://g.lovrabet.com','https://g.lovrabet.id','https://runtime.lovrabet.id','597307NdNCeN','https://skills.lovrabet.com','Mainland\x20China'];a282_0x2512=function(){return _0x16a8bb;};return a282_0x2512();}export const ROUTING_CATALOG_DIGEST=a282_0x369e79(0x145);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a282_0x369e79(0x13c)];function a282_0x3564(_0x44bbbf,_0x163514){_0x44bbbf=_0x44bbbf-0x136;const _0x2512af=a282_0x2512();let _0x356464=_0x2512af[_0x44bbbf];return _0x356464;}export const ENABLED_REGION_VALUES=['cn','id'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a282_0x369e79(0x14f),'aliases':[a282_0x369e79(0x154)],'serviceDomains':{'production':{'user':a282_0x369e79(0x144),'api':a282_0x369e79(0x13b),'runtime':a282_0x369e79(0x140),'skill':a282_0x369e79(0x14e),'kb':a282_0x369e79(0x13b),'app':a282_0x369e79(0x143)},'daily':{'user':'https://user-daily.lovrabet.com','api':a282_0x369e79(0x13e),'runtime':a282_0x369e79(0x148),'skill':a282_0x369e79(0x149),'kb':a282_0x369e79(0x13e),'app':'https://daily.lovrabet.com'}},'cdn':{'libraries':'https://g.alicdn.com/code/lib','lovrabet':a282_0x369e79(0x14a)},'local':{'origin':'https://dev.lovrabet.com'}},'id':{'enabled':!![],'label':a282_0x369e79(0x137),'aliases':[a282_0x369e79(0x142)],'serviceDomains':{'production':{'user':a282_0x369e79(0x156),'api':a282_0x369e79(0x139),'runtime':a282_0x369e79(0x14c),'skill':'https://skills.lovrabet.id','kb':'https://api.lovrabet.id','app':a282_0x369e79(0x13d)}},'cdn':{'libraries':'https://cdnjs.cloudflare.com/ajax/libs','lovrabet':a282_0x369e79(0x14b)},'local':{'origin':a282_0x369e79(0x146)}},'global':{'enabled':![],'label':'Global','aliases':[],'serviceDomains':{'production':{'user':'https://user.lovrabet.ai','api':a282_0x369e79(0x153),'runtime':'https://runtime.lovrabet.ai','skill':'https://skills.lovrabet.ai','kb':a282_0x369e79(0x153),'app':'https://app.lovrabet.ai'}},'cdn':{'libraries':a282_0x369e79(0x13a)},'local':{'origin':a282_0x369e79(0x136)}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
1
+ const a284_0x47e2d4=a284_0x2eb6;(function(_0x225432,_0x3061b4){const _0x34937b=a284_0x2eb6,_0x62634d=_0x225432();while(!![]){try{const _0x2d6d17=-parseInt(_0x34937b(0x83))/0x1+parseInt(_0x34937b(0x8e))/0x2*(parseInt(_0x34937b(0x9d))/0x3)+parseInt(_0x34937b(0x96))/0x4+-parseInt(_0x34937b(0x7c))/0x5+parseInt(_0x34937b(0x7e))/0x6+parseInt(_0x34937b(0x94))/0x7+-parseInt(_0x34937b(0x82))/0x8;if(_0x2d6d17===_0x3061b4)break;else _0x62634d['push'](_0x62634d['shift']());}catch(_0x5e91c0){_0x62634d['push'](_0x62634d['shift']());}}}(a284_0x56bb,0x4416c));function a284_0x56bb(){const _0x5aacf7=['https://daily-api.lovrabet.com','global','172655TjtFFq','https://app.lovrabet.com','2210352epqBtp','https://skills.lovrabet.ai','https://user.lovrabet.id','https://cdnjs.cloudflare.com/ajax/libs','https://skills.lovrabet.id','https://skills-daily.lovrabet.com','Indonesia','3dkCBKy','https://skills.lovrabet.com','Global','https://daily.lovrabet.com','https://api.lovrabet.id','https://runtime.lovrabet.ai','1557125hlXCay','https://g.alicdn.com/code/lib','2839038rHlkoW','https://daily-runtime.lovrabet.com','Mainland\x20China','https://dev.lovrabet.ai','5148480KEBhYS','75520FZnrry','https://api.lovrabet.ai','https://dev.lovrabet.com','indonesia','china','https://api.lovrabet.com','https://app.lovrabet.id','https://g.lovrabet.id','https://dev.lovrabet.id','https://runtime.lovrabet.com','https://runtime.lovrabet.id','517942hAfNaL','https://g.lovrabet.com','https://user.lovrabet.ai','3106fb4f7940b1f4446307e8a7f0c6f6e4a71affd6f8ebe7e5f23e055c08ca3f'];a284_0x56bb=function(){return _0x5aacf7;};return a284_0x56bb();}export const ROUTING_CATALOG_DIGEST=a284_0x47e2d4(0x91);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a284_0x47e2d4(0x93)];function a284_0x2eb6(_0x371a36,_0x19ad89){_0x371a36=_0x371a36-0x77;const _0x56bba3=a284_0x56bb();let _0x2eb6ac=_0x56bba3[_0x371a36];return _0x2eb6ac;}export const ENABLED_REGION_VALUES=['cn','id'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a284_0x47e2d4(0x80),'aliases':[a284_0x47e2d4(0x87)],'serviceDomains':{'production':{'user':'https://user.lovrabet.com','api':a284_0x47e2d4(0x88),'runtime':a284_0x47e2d4(0x8c),'skill':a284_0x47e2d4(0x77),'kb':a284_0x47e2d4(0x88),'app':a284_0x47e2d4(0x95)},'daily':{'user':'https://user-daily.lovrabet.com','api':a284_0x47e2d4(0x92),'runtime':a284_0x47e2d4(0x7f),'skill':a284_0x47e2d4(0x9b),'kb':a284_0x47e2d4(0x92),'app':a284_0x47e2d4(0x79)}},'cdn':{'libraries':a284_0x47e2d4(0x7d),'lovrabet':a284_0x47e2d4(0x8f)},'local':{'origin':a284_0x47e2d4(0x85)}},'id':{'enabled':!![],'label':a284_0x47e2d4(0x9c),'aliases':[a284_0x47e2d4(0x86)],'serviceDomains':{'production':{'user':a284_0x47e2d4(0x98),'api':a284_0x47e2d4(0x7a),'runtime':a284_0x47e2d4(0x8d),'skill':a284_0x47e2d4(0x9a),'kb':a284_0x47e2d4(0x7a),'app':a284_0x47e2d4(0x89)}},'cdn':{'libraries':'https://cdnjs.cloudflare.com/ajax/libs','lovrabet':a284_0x47e2d4(0x8a)},'local':{'origin':a284_0x47e2d4(0x8b)}},'global':{'enabled':![],'label':a284_0x47e2d4(0x78),'aliases':[],'serviceDomains':{'production':{'user':a284_0x47e2d4(0x90),'api':a284_0x47e2d4(0x84),'runtime':a284_0x47e2d4(0x7b),'skill':a284_0x47e2d4(0x97),'kb':'https://api.lovrabet.ai','app':'https://app.lovrabet.ai'}},'cdn':{'libraries':a284_0x47e2d4(0x99)},'local':{'origin':a284_0x47e2d4(0x81)}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
@@ -1 +1 @@
1
- function a283_0x4d1e(){const _0x162f17=['2wvHxfH','7OHUmBs','enterprise','1096917TEswfV','skillDomain','libraries','261KLFzhO','lovrabet-routing/v1','lovrabet','40170JmWjid','certificateDomain','appDomain','132cvoNHu','184040AkXWiP','apiDomain','50485yCoxEh','userDomain','runtimeDomain','7812882cXaeYX','3129032IlHBNR','1646142uoDOUW'];a283_0x4d1e=function(){return _0x162f17;};return a283_0x4d1e();}const a283_0x8d84f6=a283_0x58ed;(function(_0x54bb11,_0x119c13){const _0x2165e1=a283_0x58ed,_0xc478c0=_0x54bb11();while(!![]){try{const _0x1b1076=parseInt(_0x2165e1(0x1f4))/0x1+parseInt(_0x2165e1(0x1e7))/0x2*(-parseInt(_0x2165e1(0x1ea))/0x3)+parseInt(_0x2165e1(0x1f3))/0x4*(parseInt(_0x2165e1(0x1e1))/0x5)+-parseInt(_0x2165e1(0x1e6))/0x6*(-parseInt(_0x2165e1(0x1e8))/0x7)+parseInt(_0x2165e1(0x1e5))/0x8+parseInt(_0x2165e1(0x1ed))/0x9*(parseInt(_0x2165e1(0x1f0))/0xa)+-parseInt(_0x2165e1(0x1e4))/0xb;if(_0x1b1076===_0x119c13)break;else _0xc478c0['push'](_0xc478c0['shift']());}catch(_0x162391){_0xc478c0['push'](_0xc478c0['shift']());}}}(a283_0x4d1e,0x36857));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST='d83929cbced3959b68435d16131e5ff12a4bfc6095e6b7f15bada2bfd03a72cc';function a283_0x58ed(_0x4d627f,_0x56634e){_0x4d627f=_0x4d627f-0x1e1;const _0x4d1ec3=a283_0x4d1e();let _0x58edf7=_0x4d1ec3[_0x4d627f];return _0x58edf7;}export const ENTERPRISE_ROUTING_PROTOCOL=a283_0x8d84f6(0x1ee);export const ENTERPRISE_ROUTING_KIND=a283_0x8d84f6(0x1e9);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain',a283_0x8d84f6(0x1f5),a283_0x8d84f6(0x1e3),a283_0x8d84f6(0x1eb),'kbDomain',a283_0x8d84f6(0x1f2),'localDomain',a283_0x8d84f6(0x1f1)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a283_0x8d84f6(0x1e2),a283_0x8d84f6(0x1f5),a283_0x8d84f6(0x1e3),a283_0x8d84f6(0x1eb),'kbDomain',a283_0x8d84f6(0x1f2)];export const ENTERPRISE_ROUTING_CDN_FIELDS=[a283_0x8d84f6(0x1ec),'lovrabet'];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=['libraries',a283_0x8d84f6(0x1ef)];
1
+ const a285_0x4cca4b=a285_0x382e;(function(_0x119eb0,_0xf47650){const _0x452d6a=a285_0x382e,_0x55f393=_0x119eb0();while(!![]){try{const _0x1bd1e8=-parseInt(_0x452d6a(0x17b))/0x1*(parseInt(_0x452d6a(0x182))/0x2)+-parseInt(_0x452d6a(0x17a))/0x3+parseInt(_0x452d6a(0x180))/0x4+parseInt(_0x452d6a(0x16f))/0x5+parseInt(_0x452d6a(0x177))/0x6+parseInt(_0x452d6a(0x171))/0x7*(parseInt(_0x452d6a(0x16e))/0x8)+parseInt(_0x452d6a(0x178))/0x9;if(_0x1bd1e8===_0xf47650)break;else _0x55f393['push'](_0x55f393['shift']());}catch(_0x5785a4){_0x55f393['push'](_0x55f393['shift']());}}}(a285_0xfb08,0x56591));function a285_0x382e(_0x416af5,_0x1e4f58){_0x416af5=_0x416af5-0x16e;const _0xfb08de=a285_0xfb08();let _0x382e3c=_0xfb08de[_0x416af5];return _0x382e3c;}export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a285_0x4cca4b(0x17e);function a285_0xfb08(){const _0x1675a0=['1620279ZLkKtC','appDomain','2073372ZpNVju','2xvjXei','libraries','lovrabet','d83929cbced3959b68435d16131e5ff12a4bfc6095e6b7f15bada2bfd03a72cc','skillDomain','1844408GgGsXo','certificateDomain','602584HgcmIj','8DgUSCX','2033570nqNODk','lovrabet-routing/v1','3326295JwxUOz','apiDomain','kbDomain','userDomain','runtimeDomain','enterprise','746142hQsFND'];a285_0xfb08=function(){return _0x1675a0;};return a285_0xfb08();}export const ENTERPRISE_ROUTING_PROTOCOL=a285_0x4cca4b(0x170);export const ENTERPRISE_ROUTING_KIND=a285_0x4cca4b(0x176);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain',a285_0x4cca4b(0x172),a285_0x4cca4b(0x175),a285_0x4cca4b(0x17f),a285_0x4cca4b(0x173),a285_0x4cca4b(0x179),'localDomain',a285_0x4cca4b(0x181)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a285_0x4cca4b(0x174),a285_0x4cca4b(0x172),a285_0x4cca4b(0x175),'skillDomain',a285_0x4cca4b(0x173),'appDomain'];export const ENTERPRISE_ROUTING_CDN_FIELDS=[a285_0x4cca4b(0x17c),'lovrabet'];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a285_0x4cca4b(0x17c),a285_0x4cca4b(0x17d)];
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a284_0x321b(){var _0x2a5cae=['\x20to\x20view\x20available\x20commands.','33EyhwXR','5554827lgFshz','bold','log','346bXaPZQ','678536yRsrAo','166fiqePg','177028PFjfle','729525dWjMNe','5244140wyQnEn','\x20--help','green','70840hADsSA','432vJaIUN'];a284_0x321b=function(){return _0x2a5cae;};return a284_0x321b();}(function(_0xc8fa89,_0x4c3970){var _0x2f4f27=a284_0x7a55,_0x1b24fc=_0xc8fa89();while(!![]){try{var _0x341cca=parseInt(_0x2f4f27(0x1be))/0x1*(-parseInt(_0x2f4f27(0x1cb))/0x2)+parseInt(_0x2f4f27(0x1c7))/0x3*(-parseInt(_0x2f4f27(0x1bf))/0x4)+parseInt(_0x2f4f27(0x1c0))/0x5+parseInt(_0x2f4f27(0x1c5))/0x6*(parseInt(_0x2f4f27(0x1c4))/0x7)+-parseInt(_0x2f4f27(0x1bd))/0x8+parseInt(_0x2f4f27(0x1c8))/0x9+-parseInt(_0x2f4f27(0x1c1))/0xa;if(_0x341cca===_0x4c3970)break;else _0x1b24fc['push'](_0x1b24fc['shift']());}catch(_0x2f1cd3){_0x1b24fc['push'](_0x1b24fc['shift']());}}}(a284_0x321b,0x5997c));function a284_0x7a55(_0x5d582b,_0x24b2c7){_0x5d582b=_0x5d582b-0x1bd;var _0x321b91=a284_0x321b();var _0x7a5575=_0x321b91[_0x5d582b];return _0x7a5575;}import a284_0x4565d8 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0xf7bc27=a284_0x7a55;console[_0xf7bc27(0x1ca)](),console[_0xf7bc27(0x1ca)](a284_0x4565d8[_0xf7bc27(0x1c3)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console['log']('\x20\x20Use\x20'+a284_0x4565d8[_0xf7bc27(0x1c3)][_0xf7bc27(0x1c9)](CLI_BIN_NAME+_0xf7bc27(0x1c2))+_0xf7bc27(0x1c6)),console['log']();}
1
+ (function(_0x393547,_0x1d883b){var _0x125eb7=a286_0x3e8f,_0x18b56c=_0x393547();while(!![]){try{var _0x4a7779=-parseInt(_0x125eb7(0x153))/0x1*(parseInt(_0x125eb7(0x15a))/0x2)+-parseInt(_0x125eb7(0x156))/0x3*(parseInt(_0x125eb7(0x159))/0x4)+-parseInt(_0x125eb7(0x14f))/0x5*(parseInt(_0x125eb7(0x15b))/0x6)+parseInt(_0x125eb7(0x15c))/0x7+-parseInt(_0x125eb7(0x150))/0x8+-parseInt(_0x125eb7(0x15f))/0x9+parseInt(_0x125eb7(0x151))/0xa*(parseInt(_0x125eb7(0x15e))/0xb);if(_0x4a7779===_0x1d883b)break;else _0x18b56c['push'](_0x18b56c['shift']());}catch(_0x4f0f64){_0x18b56c['push'](_0x18b56c['shift']());}}}(a286_0x11ea,0x969f9));function a286_0x3e8f(_0x2e660f,_0x527905){_0x2e660f=_0x2e660f-0x14f;var _0x11ea8b=a286_0x11ea();var _0x3e8f5d=_0x11ea8b[_0x2e660f];return _0x3e8f5d;}import a286_0x565d67 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a286_0x11ea(){var _0x3da3f3=['60330nkanWP','log','104847aVrKvF','\x20to\x20view\x20available\x20commands.','\x20\x20Use\x20','8403oAQMUd','green','bold','1376lXtrPh','6jcjUdq','6fzbEeO','2372762jLCHDX','\x20--help','5401TpUAmn','2970180ckBrIm','2818505TduJMq','4099280bNCfPU'];a286_0x11ea=function(){return _0x3da3f3;};return a286_0x11ea();}export function showHelp(){var _0x178a2d=a286_0x3e8f;console[_0x178a2d(0x152)](),console[_0x178a2d(0x152)](a286_0x565d67['green'][_0x178a2d(0x158)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x178a2d(0x152)](),console[_0x178a2d(0x152)](_0x178a2d(0x155)+a286_0x565d67[_0x178a2d(0x157)]['bold'](CLI_BIN_NAME+_0x178a2d(0x15d))+_0x178a2d(0x154)),console['log']();}
@@ -1 +1 @@
1
- (function(_0x12bd86,_0x2557c9){const _0xf79bae=a285_0x18ab,_0x4ee0b5=_0x12bd86();while(!![]){try{const _0x59b3c7=parseInt(_0xf79bae(0x116))/0x1*(parseInt(_0xf79bae(0x103))/0x2)+parseInt(_0xf79bae(0x10e))/0x3+parseInt(_0xf79bae(0x107))/0x4+parseInt(_0xf79bae(0x118))/0x5+-parseInt(_0xf79bae(0x104))/0x6+-parseInt(_0xf79bae(0x10d))/0x7+parseInt(_0xf79bae(0x113))/0x8*(-parseInt(_0xf79bae(0x10a))/0x9);if(_0x59b3c7===_0x2557c9)break;else _0x4ee0b5['push'](_0x4ee0b5['shift']());}catch(_0x1775b3){_0x4ee0b5['push'](_0x4ee0b5['shift']());}}}(a285_0x40b0,0xabdf1));import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x2f81c2={}){const _0x586629=a285_0x18ab,_0x4c2a9d=installBuiltinSkill(_0x2f81c2);if(_0x4c2a9d['ok']){const _0x36df50=_0x4c2a9d[_0x586629(0x114)]?'installed':_0x586629(0x117),_0x4937d3=_0x4c2a9d['installedPath']?_0x586629(0x119)+_0x4c2a9d[_0x586629(0x10c)]:_0x586629(0x112);return console[_0x586629(0x10b)](_0x586629(0x111)+_0x4c2a9d[_0x586629(0x110)]+'\x20'+_0x36df50+_0x4937d3),_0x4c2a9d;}const _0x2f5456=_0x586629(0x115)+(_0x4c2a9d[_0x586629(0x10f)]??_0x586629(0x109))+']\x20'+(_0x4c2a9d[_0x586629(0x105)]??_0x586629(0x106))+'.\x20'+(_0x586629(0x101)+_0x4c2a9d[_0x586629(0x102)]);if(_0x4c2a9d[_0x586629(0x10f)]===_0x586629(0x108))throw new Error(_0x2f5456);return console['warn'](_0x2f5456),_0x4c2a9d;}function a285_0x18ab(_0x33e522,_0x4cafdb){_0x33e522=_0x33e522-0x101;const _0x40b051=a285_0x40b0();let _0x18abc=_0x40b051[_0x33e522];return _0x18abc;}function a285_0x40b0(){const _0x237ce6=['[BUILTIN_SKILL_INSTALL_','1282222YxopKx','already\x20current','1714430FdVXhp','\x20at\x20','Repair\x20with:\x20','repairCommand','2sMFwbR','1105836swODsB','error','Installation\x20failed','5214448DyzVjn','SOURCE_INVALID','FAILED','663489QhXDot','log','installedPath','6930497NUSpeG','608697DKuFlh','code','skillVersion','Rabetbase\x20Built-in\x20Skill\x20','\x20via\x20skills@latest','136LkDbte','changed'];a285_0x40b0=function(){return _0x237ce6;};return a285_0x40b0();}
1
+ (function(_0x44d38d,_0x56c56d){const _0x788504=a287_0x2619,_0x1a90be=_0x44d38d();while(!![]){try{const _0x4e672a=parseInt(_0x788504(0x18c))/0x1+parseInt(_0x788504(0x193))/0x2+parseInt(_0x788504(0x190))/0x3+-parseInt(_0x788504(0x18b))/0x4*(-parseInt(_0x788504(0x18e))/0x5)+parseInt(_0x788504(0x185))/0x6+-parseInt(_0x788504(0x184))/0x7+-parseInt(_0x788504(0x18f))/0x8*(parseInt(_0x788504(0x17f))/0x9);if(_0x4e672a===_0x56c56d)break;else _0x1a90be['push'](_0x1a90be['shift']());}catch(_0x5b1f80){_0x1a90be['push'](_0x1a90be['shift']());}}}(a287_0x3e6b,0xf2400));function a287_0x3e6b(){const _0x528565=['7866225ZGqTOw','installedPath','installed','skillVersion','[BUILTIN_SKILL_INSTALL_','9284779NONxzA','5626854qQzvrj','repairCommand','changed','warn','Rabetbase\x20Built-in\x20Skill\x20','\x20at\x20','7001004VaTBWK','1137628ixqGpT','log','5QIXixz','24HZCfNk','1521354JLJTrH','error','Repair\x20with:\x20','1215844ofHaHI','code'];a287_0x3e6b=function(){return _0x528565;};return a287_0x3e6b();}function a287_0x2619(_0x1d2ae9,_0x356ff7){_0x1d2ae9=_0x1d2ae9-0x17e;const _0x3e6ba8=a287_0x3e6b();let _0x261910=_0x3e6ba8[_0x1d2ae9];return _0x261910;}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x2c5512={}){const _0x4ad8d3=a287_0x2619,_0x435823=installBuiltinSkill(_0x2c5512);if(_0x435823['ok']){const _0x45abcd=_0x435823[_0x4ad8d3(0x187)]?_0x4ad8d3(0x181):'already\x20current',_0x31b695=_0x435823['installedPath']?_0x4ad8d3(0x18a)+_0x435823[_0x4ad8d3(0x180)]:'\x20via\x20skills@latest';return console[_0x4ad8d3(0x18d)](_0x4ad8d3(0x189)+_0x435823[_0x4ad8d3(0x182)]+'\x20'+_0x45abcd+_0x31b695),_0x435823;}const _0xccc77f=_0x4ad8d3(0x183)+(_0x435823[_0x4ad8d3(0x17e)]??'FAILED')+']\x20'+(_0x435823[_0x4ad8d3(0x191)]??'Installation\x20failed')+'.\x20'+(_0x4ad8d3(0x192)+_0x435823[_0x4ad8d3(0x186)]);if(_0x435823[_0x4ad8d3(0x17e)]==='SOURCE_INVALID')throw new Error(_0xccc77f);return console[_0x4ad8d3(0x188)](_0xccc77f),_0x435823;}
@@ -1 +1 @@
1
- (function(_0x555723,_0x32b274){const _0x19252b=a286_0x3d0d,_0x3c8a38=_0x555723();while(!![]){try{const _0x11ff17=parseInt(_0x19252b(0x70))/0x1*(parseInt(_0x19252b(0x7c))/0x2)+-parseInt(_0x19252b(0x75))/0x3*(parseInt(_0x19252b(0x6b))/0x4)+parseInt(_0x19252b(0x6d))/0x5+parseInt(_0x19252b(0x6e))/0x6+-parseInt(_0x19252b(0x6f))/0x7+parseInt(_0x19252b(0x6a))/0x8*(parseInt(_0x19252b(0x6c))/0x9)+-parseInt(_0x19252b(0x78))/0xa*(parseInt(_0x19252b(0x71))/0xb);if(_0x11ff17===_0x32b274)break;else _0x3c8a38['push'](_0x3c8a38['shift']());}catch(_0x327f87){_0x3c8a38['push'](_0x3c8a38['shift']());}}}(a286_0xc57e,0x65207));function a286_0xc57e(){const _0x76b2be=['1xTuNtv','11wKbEdT','high-risk-write','string','replace','7002eEgfOS','This\x20will\x20run\x20the\x20high-risk\x20write\x20','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','2294330hHuOgT','confirmationDescription','write','trim','1198074DorHWu','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','risk','1069912HdlAeT','968tKZWBk','18IXlIES','2737215sENNEf','2658606ZjXBgR','4540081ddcoAd'];a286_0xc57e=function(){return _0x76b2be;};return a286_0xc57e();}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x2fe539,_0x578a88,_0x1a134f){const _0x5022fe=a286_0x3d0d,_0x4dab38=normalizeText(_0x2fe539[_0x5022fe(0x79)],DESCRIPTION_MAX_LENGTH),_0xd4d702=_0x4dab38||normalizeText(defaultDescription(requireWriteRisk(_0x2fe539),_0x578a88),DESCRIPTION_MAX_LENGTH);return{'operation':_0x578a88,'risk':requireWriteRisk(_0x2fe539),'description':_0xd4d702,..._0x1a134f?{'signal':_0x1a134f}:{}};}function a286_0x3d0d(_0x45d2c2,_0x1b0b8e){_0x45d2c2=_0x45d2c2-0x69;const _0xc57e06=a286_0xc57e();let _0x3d0de5=_0xc57e06[_0x45d2c2];return _0x3d0de5;}function requireWriteRisk(_0x47c2fc){const _0x363700=a286_0x3d0d;if(_0x47c2fc[_0x363700(0x69)]===_0x363700(0x7a)||_0x47c2fc['risk']===_0x363700(0x72))return _0x47c2fc[_0x363700(0x69)];throw new Error(_0x363700(0x77));}function defaultDescription(_0x659fad,_0x1fdbd6){const _0x14d762=a286_0x3d0d;if(_0x659fad===_0x14d762(0x72))return _0x14d762(0x76)+_0x1fdbd6+'.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.';return'This\x20will\x20run\x20the\x20write\x20'+_0x1fdbd6+_0x14d762(0x7d);}function normalizeText(_0x259eec,_0x27d8b8){const _0x24c507=a286_0x3d0d;if(typeof _0x259eec!==_0x24c507(0x73))return'';return _0x259eec['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x24c507(0x74)](/\s+/g,'\x20')[_0x24c507(0x7b)]()['slice'](0x0,_0x27d8b8);}
1
+ (function(_0x36e659,_0x1fb62d){const _0x2dc022=a288_0x19b1,_0x30490c=_0x36e659();while(!![]){try{const _0x451c1f=-parseInt(_0x2dc022(0x100))/0x1+parseInt(_0x2dc022(0x106))/0x2*(-parseInt(_0x2dc022(0x109))/0x3)+parseInt(_0x2dc022(0xff))/0x4+parseInt(_0x2dc022(0x108))/0x5+-parseInt(_0x2dc022(0x105))/0x6*(parseInt(_0x2dc022(0xfe))/0x7)+-parseInt(_0x2dc022(0x10e))/0x8*(-parseInt(_0x2dc022(0x104))/0x9)+-parseInt(_0x2dc022(0x10b))/0xa*(parseInt(_0x2dc022(0x103))/0xb);if(_0x451c1f===_0x1fb62d)break;else _0x30490c['push'](_0x30490c['shift']());}catch(_0x5696fc){_0x30490c['push'](_0x30490c['shift']());}}}(a288_0x552e,0x87bf4));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x337aac,_0x1d7561,_0x4ff7f9){const _0x24ff68=normalizeText(_0x337aac['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x415b03=_0x24ff68||normalizeText(defaultDescription(requireWriteRisk(_0x337aac),_0x1d7561),DESCRIPTION_MAX_LENGTH);return{'operation':_0x1d7561,'risk':requireWriteRisk(_0x337aac),'description':_0x415b03,..._0x4ff7f9?{'signal':_0x4ff7f9}:{}};}function requireWriteRisk(_0xfa396b){const _0x40d677=a288_0x19b1;if(_0xfa396b[_0x40d677(0x101)]==='write'||_0xfa396b[_0x40d677(0x101)]===_0x40d677(0xfb))return _0xfa396b[_0x40d677(0x101)];throw new Error(_0x40d677(0xfd));}function a288_0x552e(){const _0x5d791c=['9zLFyTH','283308nSLUff','2051794Wkxnqd','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','4042875dzsOUd','3ApYBQs','string','50570xnezfI','replace','trim','7986880efpxCR','slice','high-risk-write','This\x20will\x20run\x20the\x20high-risk\x20write\x20','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','7jISEpB','2840808HVCzIX','427815BlfEPU','risk','This\x20will\x20run\x20the\x20write\x20','1001ViAIlN'];a288_0x552e=function(){return _0x5d791c;};return a288_0x552e();}function defaultDescription(_0x16377d,_0x1f75ad){const _0x5621c1=a288_0x19b1;if(_0x16377d==='high-risk-write')return _0x5621c1(0xfc)+_0x1f75ad+'.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.';return _0x5621c1(0x102)+_0x1f75ad+_0x5621c1(0x107);}function a288_0x19b1(_0x4187f3,_0x1c40ff){_0x4187f3=_0x4187f3-0xfb;const _0x552e7a=a288_0x552e();let _0x19b1fd=_0x552e7a[_0x4187f3];return _0x19b1fd;}function normalizeText(_0xdd40d3,_0x38ecf4){const _0x21e151=a288_0x19b1;if(typeof _0xdd40d3!==_0x21e151(0x10a))return'';return _0xdd40d3['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x21e151(0x10c)](/\s+/g,'\x20')[_0x21e151(0x10d)]()[_0x21e151(0x10f)](0x0,_0x38ecf4);}
@@ -1 +1 @@
1
- (function(_0x1e6287,_0x4b2581){var _0x1477f4=a287_0x14ee,_0x1c2985=_0x1e6287();while(!![]){try{var _0x31fb6=-parseInt(_0x1477f4(0xdd))/0x1+-parseInt(_0x1477f4(0xe7))/0x2*(parseInt(_0x1477f4(0xe0))/0x3)+-parseInt(_0x1477f4(0xe4))/0x4*(-parseInt(_0x1477f4(0xec))/0x5)+parseInt(_0x1477f4(0xe5))/0x6+parseInt(_0x1477f4(0xea))/0x7*(-parseInt(_0x1477f4(0xdf))/0x8)+parseInt(_0x1477f4(0xe6))/0x9*(parseInt(_0x1477f4(0xe9))/0xa)+parseInt(_0x1477f4(0xed))/0xb;if(_0x31fb6===_0x4b2581)break;else _0x1c2985['push'](_0x1c2985['shift']());}catch(_0x3fe8af){_0x1c2985['push'](_0x1c2985['shift']());}}}(a287_0x5447,0xe8500));function a287_0x14ee(_0x51f0fa,_0x4ff7dc){_0x51f0fa=_0x51f0fa-0xdd;var _0x54475f=a287_0x5447();var _0x14eee7=_0x54475f[_0x51f0fa];return _0x14eee7;}export function canonicalRabetbaseOperation(_0x5017c2){var _0x3ad142=a287_0x14ee;return[_0x5017c2[_0x3ad142(0xe8)],..._0x5017c2[_0x3ad142(0xe1)][_0x3ad142(0xe3)]()[_0x3ad142(0xf0)](/\s+/)][_0x3ad142(0xde)](Boolean)[_0x3ad142(0xee)]('.');}function a287_0x5447(){var _0x7cfad=['24817188PTdKzt','join','high-risk-write','split','151013dzaWsV','filter','2872mQPhlX','39066xrKoub','command','rabetbase.write.completed','trim','190796jsEslk','6512466qBQoSB','558fWcTMM','278uATJKz','service','114060aQqbvE','25872ITJCcz','risk','20XqfRHy'];a287_0x5447=function(){return _0x7cfad;};return a287_0x5447();}export function createRabetbaseWriteMetadata(_0x2eab24,_0x3ed7f5,_0x3b8000,_0x174b49){var _0x2b001b=a287_0x14ee;if(_0x174b49||_0x3b8000['ok']!==!![]||_0x2eab24[_0x2b001b(0xeb)]!=='write'&&_0x2eab24[_0x2b001b(0xeb)]!==_0x2b001b(0xef))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x2b001b(0xe2),'operation':_0x3ed7f5,'risk':_0x2eab24[_0x2b001b(0xeb)]}}};}
1
+ function a289_0x1a78(){var _0x3770a4=['risk','13329349ssFmPD','79983pmViAf','join','568gDaYqq','24BMhXwe','rabetbase.write.completed','532NAZcXA','trim','56190WgMKpb','1655882EwnXAc','15705hcDlur','438SqUYxl','7040670AxCHvA','1tvnNYa','3466456JfoWBD','high-risk-write','command'];a289_0x1a78=function(){return _0x3770a4;};return a289_0x1a78();}function a289_0x4544(_0x2aa1d3,_0x24af71){_0x2aa1d3=_0x2aa1d3-0x141;var _0x1a782b=a289_0x1a78();var _0x454402=_0x1a782b[_0x2aa1d3];return _0x454402;}(function(_0x47bc5c,_0x20e1cf){var _0x308215=a289_0x4544,_0x432ae2=_0x47bc5c();while(!![]){try{var _0x56e611=-parseInt(_0x308215(0x14b))/0x1*(-parseInt(_0x308215(0x147))/0x2)+-parseInt(_0x308215(0x148))/0x3*(-parseInt(_0x308215(0x144))/0x4)+-parseInt(_0x308215(0x146))/0x5*(-parseInt(_0x308215(0x149))/0x6)+parseInt(_0x308215(0x14c))/0x7+parseInt(_0x308215(0x141))/0x8*(-parseInt(_0x308215(0x151))/0x9)+parseInt(_0x308215(0x14a))/0xa+-parseInt(_0x308215(0x150))/0xb*(parseInt(_0x308215(0x142))/0xc);if(_0x56e611===_0x20e1cf)break;else _0x432ae2['push'](_0x432ae2['shift']());}catch(_0x3a87d9){_0x432ae2['push'](_0x432ae2['shift']());}}}(a289_0x1a78,0x77786));export function canonicalRabetbaseOperation(_0x58829c){var _0x17d8b1=a289_0x4544;return[_0x58829c['service'],..._0x58829c[_0x17d8b1(0x14e)][_0x17d8b1(0x145)]()['split'](/\s+/)]['filter'](Boolean)[_0x17d8b1(0x152)]('.');}export function createRabetbaseWriteMetadata(_0x4c9a59,_0x323863,_0xf2c462,_0x15bfd8){var _0x87dd70=a289_0x4544;if(_0x15bfd8||_0xf2c462['ok']!==!![]||_0x4c9a59[_0x87dd70(0x14f)]!=='write'&&_0x4c9a59[_0x87dd70(0x14f)]!==_0x87dd70(0x14d))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x87dd70(0x143),'operation':_0x323863,'risk':_0x4c9a59[_0x87dd70(0x14f)]}}};}
@@ -1 +1 @@
1
- (function(_0x5d3ac3,_0x13647d){const _0x5ac63d=a288_0x392f,_0x30780a=_0x5d3ac3();while(!![]){try{const _0x44e550=parseInt(_0x5ac63d(0xe0))/0x1+parseInt(_0x5ac63d(0xed))/0x2*(-parseInt(_0x5ac63d(0xd9))/0x3)+parseInt(_0x5ac63d(0xf9))/0x4+parseInt(_0x5ac63d(0xe2))/0x5+parseInt(_0x5ac63d(0xe3))/0x6*(parseInt(_0x5ac63d(0xf5))/0x7)+parseInt(_0x5ac63d(0xf8))/0x8+-parseInt(_0x5ac63d(0xf6))/0x9;if(_0x44e550===_0x13647d)break;else _0x30780a['push'](_0x30780a['shift']());}catch(_0x229a75){_0x30780a['push'](_0x30780a['shift']());}}}(a288_0x2415,0x1ba7a));function a288_0x392f(_0x5c1b45,_0x52a7ee){_0x5c1b45=_0x5c1b45-0xd9;const _0x24150c=a288_0x2415();let _0x392f1e=_0x24150c[_0x5c1b45];return _0x392f1e;}import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';function a288_0x2415(){const _0x364c86=['768620UcIhcH','9474qxdxQB','format','aborted','rawFlags','reason','riskLevel','risk','service','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','high-risk-write','746fHRbjb','command','execute','AbortError','definition','result','message','data','525CJXUKq','4549068NZcSXe','present','88968yZoqeO','702696IPDROy','isNonInteractive','confirmation','confirm','stringify','411YJmoQL','dry-run','dryRun','Rabetbase\x20invocation\x20aborted.','presentation','signal','args','210883WGzWtQ','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.'];a288_0x2415=function(){return _0x364c86;};return a288_0x2415();}const defaultPresentation={'present'({result:_0x1efe65,command:_0x1b4523,risk:_0x2215fa,dryRun:_0x42ca28}){const _0x1c7efa=a288_0x392f;return JSON[_0x1c7efa(0xfd)]({'ok':_0x1efe65['ok'],'command':_0x1b4523,'risk':_0x2215fa,..._0x42ca28?{'dryRun':!![]}:{},..._0x1efe65[_0x1c7efa(0xf4)]!==undefined?{'data':_0x1efe65[_0x1c7efa(0xf4)]}:{},..._0x1efe65[_0x1c7efa(0xf3)]?{'message':_0x1efe65['message']}:{}});}};export async function invokeRabetbase(_0x18057b,_0x2611c2){const _0x4fcdfc=a288_0x392f;throwIfAborted(_0x2611c2[_0x4fcdfc(0xde)]);const _0x4ee007=await resolveRabetbaseInvocation(_0x18057b),_0x4d905f=canonicalRabetbaseOperation(_0x4ee007['definition']);return await confirmWriteBeforeQueue(_0x4ee007[_0x4fcdfc(0xf1)],_0x4ee007['rawFlags'],_0x4d905f,_0x2611c2),runSerialized(async()=>{const _0x437b49=_0x4fcdfc,_0xf3ebf7={};try{throwIfAborted(_0x2611c2['signal']);const _0x2a4780=buildConfigFromFlags(_0x4ee007[_0x437b49(0xe6)]);!isRoutingRecoveryService(_0x4ee007[_0x437b49(0xf1)][_0x437b49(0xea)])&&await initGlobalEnvironment(_0x2a4780);const _0x9610ad=createPipelineEnv(_0x2a4780,{..._0x4ee007['rawFlags'],'yes':_0x4ee007[_0x437b49(0xf1)]['risk']===_0x437b49(0xec)?!![]:_0x4ee007['rawFlags']['yes'],'nonInteractive':!![]},_0x4ee007[_0x437b49(0xdf)]);_0x9610ad[_0x437b49(0xfa)]=!![],_0x9610ad[_0x437b49(0xe8)]=_0x437b49(0xec);const _0x3fe86c=withAbortSignal(_0x4ee007['definition'],_0x2611c2[_0x437b49(0xde)]),_0x2c4413=createRabetbaseRunnerAdapter({'formatOutput'(_0x4c6850,_0x44df30){const _0x1b7884=_0x437b49;_0xf3ebf7[_0x1b7884(0xf2)]=_0x4c6850,_0xf3ebf7[_0x1b7884(0xee)]=_0x44df30[_0x1b7884(0xee)],_0xf3ebf7['risk']=_0x44df30[_0x1b7884(0xe9)],_0xf3ebf7[_0x1b7884(0xe4)]=_0x44df30[_0x1b7884(0xe4)],_0xf3ebf7[_0x1b7884(0xdb)]=_0x44df30[_0x1b7884(0xdb)]===!![];},async 'confirmHighRisk'(){const _0x38279d=_0x437b49;throw new Error(_0x38279d(0xe1));}});await runCommand(_0x3fe86c,_0x9610ad,_0x2c4413);if(!_0xf3ebf7[_0x437b49(0xf2)]||!_0xf3ebf7['command']||!_0xf3ebf7[_0x437b49(0xe9)]||!_0xf3ebf7['format'])throw new Error(_0x437b49(0xeb));const _0x37a581=_0xf3ebf7[_0x437b49(0xdb)]===!![],_0x43c9a5=_0x2611c2[_0x437b49(0xdd)]??defaultPresentation,_0x3cc1a6={'result':_0xf3ebf7['result'],'command':_0xf3ebf7[_0x437b49(0xee)],'operation':_0x4d905f,'risk':_0xf3ebf7[_0x437b49(0xe9)],'format':_0xf3ebf7[_0x437b49(0xe4)],'dryRun':_0x37a581},_0xae87f7=createRabetbaseWriteMetadata(_0x4ee007[_0x437b49(0xf1)],_0x4d905f,_0xf3ebf7[_0x437b49(0xf2)],_0x37a581);let _0x1c98da;try{_0x1c98da=await _0x43c9a5[_0x437b49(0xf7)](_0x3cc1a6);}catch(_0x3a589c){if(!_0xae87f7||_0x43c9a5===defaultPresentation)throw _0x3a589c;_0x1c98da=await defaultPresentation[_0x437b49(0xf7)](_0x3cc1a6);}return{'operation':_0x4d905f,'risk':_0xf3ebf7[_0x437b49(0xe9)],'mode':_0x37a581?_0x437b49(0xda):_0x437b49(0xef),'result':_0xf3ebf7[_0x437b49(0xf2)],'output':_0x1c98da,..._0xae87f7?{'metadata':_0xae87f7}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x167f86,_0x504d93,_0x3821ea,_0x32bbee){const _0x56f661=a288_0x392f;if(_0x504d93[_0x56f661(0xdb)]===!![]||_0x167f86[_0x56f661(0xe9)]!=='write'&&_0x167f86['risk']!==_0x56f661(0xec))return;await _0x32bbee[_0x56f661(0xfb)][_0x56f661(0xfc)](buildRabetbaseConfirmationRequest(_0x167f86,_0x3821ea,_0x32bbee['signal']));}function withAbortSignal(_0x17157c,_0x24681e){return{..._0x17157c,async 'execute'(_0x11d2c1){const _0x4ea0cc=a288_0x392f;return throwIfAborted(_0x24681e),_0x17157c[_0x4ea0cc(0xef)]({..._0x11d2c1,'signal':_0x24681e});}};}function throwIfAborted(_0x28c2b4){const _0x324190=a288_0x392f;if(_0x28c2b4?.[_0x324190(0xe5)])throw _0x28c2b4[_0x324190(0xe7)]instanceof Error?_0x28c2b4[_0x324190(0xe7)]:new DOMException(_0x324190(0xdc),_0x324190(0xf0));}
1
+ (function(_0x394b94,_0x225525){const _0x24a4e9=a290_0x58d1,_0x138114=_0x394b94();while(!![]){try{const _0x55bf3b=parseInt(_0x24a4e9(0x116))/0x1*(parseInt(_0x24a4e9(0x113))/0x2)+parseInt(_0x24a4e9(0x120))/0x3*(parseInt(_0x24a4e9(0x11b))/0x4)+parseInt(_0x24a4e9(0x128))/0x5+parseInt(_0x24a4e9(0x10c))/0x6+-parseInt(_0x24a4e9(0x10f))/0x7*(parseInt(_0x24a4e9(0x11c))/0x8)+parseInt(_0x24a4e9(0x11f))/0x9*(-parseInt(_0x24a4e9(0x11d))/0xa)+-parseInt(_0x24a4e9(0x124))/0xb;if(_0x55bf3b===_0x225525)break;else _0x138114['push'](_0x138114['shift']());}catch(_0x15e50b){_0x138114['push'](_0x138114['shift']());}}}(a290_0x384f,0x31dac));import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}from'../context.js';function a290_0x58d1(_0x1a687c,_0x5a0971){_0x1a687c=_0x1a687c-0x10a;const _0x384f20=a290_0x384f();let _0x58d19d=_0x384f20[_0x1a687c];return _0x58d19d;}import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';function a290_0x384f(){const _0x5b2b8b=['confirm','present','489940hVKGnZ','format','stringify','isNonInteractive','aborted','presentation','high-risk-write','command','dry-run','674658dGETPF','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','data','1407fqAbIj','service','AbortError','rawFlags','780866CUoBVm','execute','definition','1HpmTYF','message','args','confirmation','result','876ZjNMVl','11792cYlcKV','1500DfOFrB','reason','2583YSwTwx','5223OhWhxM','dryRun','signal','risk','4824765UzmLAU','write'];a290_0x384f=function(){return _0x5b2b8b;};return a290_0x384f();}import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0xabd211,command:_0x4051e1,risk:_0x4822bd,dryRun:_0xa75371}){const _0x476388=a290_0x58d1;return JSON[_0x476388(0x12a)]({'ok':_0xabd211['ok'],'command':_0x4051e1,'risk':_0x4822bd,..._0xa75371?{'dryRun':!![]}:{},..._0xabd211[_0x476388(0x10e)]!==undefined?{'data':_0xabd211[_0x476388(0x10e)]}:{},..._0xabd211[_0x476388(0x117)]?{'message':_0xabd211[_0x476388(0x117)]}:{}});}};export async function invokeRabetbase(_0x1c1e46,_0x47e4f5){const _0x39542a=a290_0x58d1;throwIfAborted(_0x47e4f5['signal']);const _0x57616b=await resolveRabetbaseInvocation(_0x1c1e46),_0x408a28=canonicalRabetbaseOperation(_0x57616b[_0x39542a(0x115)]);return await confirmWriteBeforeQueue(_0x57616b[_0x39542a(0x115)],_0x57616b['rawFlags'],_0x408a28,_0x47e4f5),runSerialized(async()=>{const _0x332be1=_0x39542a,_0x4cbfe5={};try{throwIfAborted(_0x47e4f5['signal']);const _0x18a579=buildConfigFromFlags(_0x57616b[_0x332be1(0x112)]);!isRoutingRecoveryService(_0x57616b[_0x332be1(0x115)][_0x332be1(0x110)])&&await initGlobalEnvironment(_0x18a579);const _0x2515ad=createPipelineEnv(_0x18a579,{..._0x57616b[_0x332be1(0x112)],'yes':_0x57616b['definition'][_0x332be1(0x123)]===_0x332be1(0x12e)?!![]:_0x57616b[_0x332be1(0x112)]['yes'],'nonInteractive':!![]},_0x57616b[_0x332be1(0x118)]);_0x2515ad[_0x332be1(0x12b)]=!![],_0x2515ad['riskLevel']='high-risk-write';const _0x4e2cd2=withAbortSignal(_0x57616b[_0x332be1(0x115)],_0x47e4f5[_0x332be1(0x122)]),_0x2715f2=createRabetbaseRunnerAdapter({'formatOutput'(_0x3fc0a3,_0x55b9a0){const _0x31d1dd=_0x332be1;_0x4cbfe5[_0x31d1dd(0x11a)]=_0x3fc0a3,_0x4cbfe5[_0x31d1dd(0x10a)]=_0x55b9a0[_0x31d1dd(0x10a)],_0x4cbfe5[_0x31d1dd(0x123)]=_0x55b9a0['risk'],_0x4cbfe5[_0x31d1dd(0x129)]=_0x55b9a0[_0x31d1dd(0x129)],_0x4cbfe5['dryRun']=_0x55b9a0[_0x31d1dd(0x121)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.');}});await runCommand(_0x4e2cd2,_0x2515ad,_0x2715f2);if(!_0x4cbfe5['result']||!_0x4cbfe5[_0x332be1(0x10a)]||!_0x4cbfe5[_0x332be1(0x123)]||!_0x4cbfe5[_0x332be1(0x129)])throw new Error(_0x332be1(0x10d));const _0x3a600d=_0x4cbfe5['dryRun']===!![],_0x356fcb=_0x47e4f5[_0x332be1(0x12d)]??defaultPresentation,_0x4bf08c={'result':_0x4cbfe5[_0x332be1(0x11a)],'command':_0x4cbfe5['command'],'operation':_0x408a28,'risk':_0x4cbfe5[_0x332be1(0x123)],'format':_0x4cbfe5[_0x332be1(0x129)],'dryRun':_0x3a600d},_0x294c6e=createRabetbaseWriteMetadata(_0x57616b['definition'],_0x408a28,_0x4cbfe5[_0x332be1(0x11a)],_0x3a600d);let _0x413008;try{_0x413008=await _0x356fcb[_0x332be1(0x127)](_0x4bf08c);}catch(_0xfc95a){if(!_0x294c6e||_0x356fcb===defaultPresentation)throw _0xfc95a;_0x413008=await defaultPresentation['present'](_0x4bf08c);}return{'operation':_0x408a28,'risk':_0x4cbfe5['risk'],'mode':_0x3a600d?_0x332be1(0x10b):_0x332be1(0x114),'result':_0x4cbfe5[_0x332be1(0x11a)],'output':_0x413008,..._0x294c6e?{'metadata':_0x294c6e}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x2e3240,_0x54336d,_0x471a45,_0x3f99e7){const _0x5c5bd4=a290_0x58d1;if(_0x54336d[_0x5c5bd4(0x121)]===!![]||_0x2e3240[_0x5c5bd4(0x123)]!==_0x5c5bd4(0x125)&&_0x2e3240['risk']!==_0x5c5bd4(0x12e))return;await _0x3f99e7[_0x5c5bd4(0x119)][_0x5c5bd4(0x126)](buildRabetbaseConfirmationRequest(_0x2e3240,_0x471a45,_0x3f99e7[_0x5c5bd4(0x122)]));}function withAbortSignal(_0x5d7047,_0x114119){return{..._0x5d7047,async 'execute'(_0x207911){const _0xddd43b=a290_0x58d1;return throwIfAborted(_0x114119),_0x5d7047[_0xddd43b(0x114)]({..._0x207911,'signal':_0x114119});}};}function throwIfAborted(_0x1e6124){const _0x1d81ba=a290_0x58d1;if(_0x1e6124?.[_0x1d81ba(0x12c)])throw _0x1e6124[_0x1d81ba(0x11e)]instanceof Error?_0x1e6124[_0x1d81ba(0x11e)]:new DOMException('Rabetbase\x20invocation\x20aborted.',_0x1d81ba(0x111));}
@@ -1 +1 @@
1
- (function(_0x3e1021,_0x3b63fa){const _0x3efdd4=a289_0xa06c,_0x30052b=_0x3e1021();while(!![]){try{const _0x5e2d53=parseInt(_0x3efdd4(0x125))/0x1+-parseInt(_0x3efdd4(0x12a))/0x2*(-parseInt(_0x3efdd4(0x12b))/0x3)+-parseInt(_0x3efdd4(0x123))/0x4*(parseInt(_0x3efdd4(0x128))/0x5)+parseInt(_0x3efdd4(0x129))/0x6+-parseInt(_0x3efdd4(0x126))/0x7+-parseInt(_0x3efdd4(0x127))/0x8+-parseInt(_0x3efdd4(0x124))/0x9*(-parseInt(_0x3efdd4(0x122))/0xa);if(_0x5e2d53===_0x3b63fa)break;else _0x30052b['push'](_0x30052b['shift']());}catch(_0x2adf8e){_0x30052b['push'](_0x30052b['shift']());}}}(a289_0x243a,0xc9c94));let tail=Promise['resolve']();function a289_0xa06c(_0x136dcf,_0x56e045){_0x136dcf=_0x136dcf-0x122;const _0x243a32=a289_0x243a();let _0xa06c34=_0x243a32[_0x136dcf];return _0xa06c34;}export async function runSerialized(_0x141576){const _0x270c91=tail;let _0x8da006;tail=new Promise(_0x2c409d=>{_0x8da006=_0x2c409d;}),await _0x270c91['catch'](()=>undefined);try{return await _0x141576();}finally{_0x8da006();}}function a289_0x243a(){const _0x566454=['14LeLLGF','257787GhRpWR','14880dICoHH','54024bxtNFt','11511VqvSok','1228428PuVSyW','2142175qWzdkZ','10049384MxcdVd','535lYhLtQ','604638mHiqUu'];a289_0x243a=function(){return _0x566454;};return a289_0x243a();}
1
+ const a291_0x21a4e1=a291_0x4f58;function a291_0x4f58(_0x293361,_0x1177cc){_0x293361=_0x293361-0x167;const _0x41a1fb=a291_0x41a1();let _0x4f5837=_0x41a1fb[_0x293361];return _0x4f5837;}(function(_0x5c74d9,_0xa3d545){const _0x2d2cc1=a291_0x4f58,_0x2f189e=_0x5c74d9();while(!![]){try{const _0x3b8919=parseInt(_0x2d2cc1(0x16e))/0x1*(-parseInt(_0x2d2cc1(0x16d))/0x2)+parseInt(_0x2d2cc1(0x16f))/0x3*(parseInt(_0x2d2cc1(0x169))/0x4)+parseInt(_0x2d2cc1(0x173))/0x5*(parseInt(_0x2d2cc1(0x171))/0x6)+parseInt(_0x2d2cc1(0x168))/0x7+-parseInt(_0x2d2cc1(0x170))/0x8*(parseInt(_0x2d2cc1(0x167))/0x9)+-parseInt(_0x2d2cc1(0x174))/0xa*(parseInt(_0x2d2cc1(0x16b))/0xb)+-parseInt(_0x2d2cc1(0x16a))/0xc;if(_0x3b8919===_0xa3d545)break;else _0x2f189e['push'](_0x2f189e['shift']());}catch(_0x5e9867){_0x2f189e['push'](_0x2f189e['shift']());}}}(a291_0x41a1,0xafd83));let tail=Promise[a291_0x21a4e1(0x16c)]();export async function runSerialized(_0x405591){const _0x460850=a291_0x21a4e1,_0x5ae47e=tail;let _0x38eb79;tail=new Promise(_0x5ea148=>{_0x38eb79=_0x5ea148;}),await _0x5ae47e[_0x460850(0x172)](()=>undefined);try{return await _0x405591();}finally{_0x38eb79();}}function a291_0x41a1(){const _0x57844d=['3bdLiqE','56HklrTF','156RyuFNL','catch','268445kSdDCU','4157390DIgWYz','334467kJDFCE','8320151uVqtXX','3927332fDVuhC','16882212xoLaWW','22dJyuwe','resolve','63202uKpmha','11UogHYY'];a291_0x41a1=function(){return _0x57844d;};return a291_0x41a1();}
@@ -1 +1 @@
1
- (function(_0x106cb3,_0x4bda53){const _0x480bf0=a290_0x4eab,_0x3b7ccc=_0x106cb3();while(!![]){try{const _0x1b7c6e=parseInt(_0x480bf0(0x139))/0x1+parseInt(_0x480bf0(0x133))/0x2+-parseInt(_0x480bf0(0x137))/0x3+parseInt(_0x480bf0(0x130))/0x4+parseInt(_0x480bf0(0x12c))/0x5*(-parseInt(_0x480bf0(0x127))/0x6)+parseInt(_0x480bf0(0x134))/0x7*(parseInt(_0x480bf0(0x12f))/0x8)+-parseInt(_0x480bf0(0x135))/0x9;if(_0x1b7c6e===_0x4bda53)break;else _0x3b7ccc['push'](_0x3b7ccc['shift']());}catch(_0x3619d7){_0x3b7ccc['push'](_0x3b7ccc['shift']());}}}(a290_0x2d40,0xf3901));import a290_0x1bd3ab from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a290_0x4eab(_0x427e3d,_0x4c1d06){_0x427e3d=_0x427e3d-0x125;const _0x2d4059=a290_0x2d40();let _0x4eab17=_0x2d4059[_0x427e3d];return _0x4eab17;}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';function a290_0x2d40(){const _0x4e47e0=['Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','130578DCKIgM','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','569649tneFQe','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','validation','unknownCommand','42wYHMPn','defaultCommand','flags','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','message','376385IVuzya','run','join','128gBHEMS','149060fhIrTs','hint','wildcardDef','2967126niQuGl','469889BDiztF','14367699vjDOAh'];a290_0x2d40=function(){return _0x4e47e0;};return a290_0x2d40();}export async function resolveRabetbaseInvocation(_0x455c02){const _0x3d4bda=a290_0x4eab,_0x5689ae=a290_0x1bd3ab('',{'importMeta':import.meta,'argv':[..._0x455c02],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x250825=[..._0x5689ae['input']],_0x35918c=_0x5689ae[_0x3d4bda(0x129)],_0x731fc7=_0x250825[0x0];if(!_0x731fc7)throw CliErrors[_0x3d4bda(0x125)](_0x3d4bda(0x12a));const _0x2b016a=resolveRemovedCommand(_0x731fc7,_0x250825[0x1]);if(_0x2b016a)throw CliErrors[_0x3d4bda(0x125)](_0x2b016a[_0x3d4bda(0x12b)],_0x2b016a[_0x3d4bda(0x131)]);if(_0x731fc7===_0x3d4bda(0x12d))throw CliErrors[_0x3d4bda(0x125)](_0x3d4bda(0x138),_0x3d4bda(0x136));if(!isKnownService(_0x731fc7))throw CliErrors['unknownCommand'](_0x250825[_0x3d4bda(0x12e)]('\x20'));const _0xf38ec5=getServiceEntry(_0x731fc7),_0x195645=_0x250825[0x1],_0x2df7cf=_0x195645||_0xf38ec5[_0x3d4bda(0x128)];if(!_0x2df7cf){if(_0xf38ec5[_0x3d4bda(0x132)])return{'definition':_0xf38ec5[_0x3d4bda(0x132)],'rawFlags':_0x35918c,'args':[]};throw CliErrors['validation'](_0x3d4bda(0x13a)+_0x731fc7+'\x22.');}const _0x47e253=findDefinition(_0x731fc7,_0x2df7cf);if(_0x47e253)return assertSupportedCommandFlags(_0x47e253,_0x35918c),{'definition':_0x47e253,'rawFlags':_0x35918c,'args':_0x250825['slice'](0x2)};if(_0xf38ec5[_0x3d4bda(0x132)])return{'definition':_0xf38ec5['wildcardDef'],'rawFlags':_0x35918c,'args':[_0x2df7cf,..._0x250825['slice'](0x2)]};throw CliErrors[_0x3d4bda(0x126)](_0x731fc7+'\x20'+_0x2df7cf);}
1
+ function a292_0x4bb9(){const _0xb7bfc3=['678JAuAzn','408078CuvGgq','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','run','validation','message','input','9afdUqL','hint','37171123LNSvcf','wildcardDef','join','12OScVtZ','13345qaLvhN','440702CNBmFT','684qIEXAp','2uEHneh','unknownCommand','42329iLlIUO','9632390FrAifR','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','2405544kwOjbJ'];a292_0x4bb9=function(){return _0xb7bfc3;};return a292_0x4bb9();}(function(_0x553629,_0x57d1c2){const _0x2649dd=a292_0x3d89,_0x32915e=_0x553629();while(!![]){try{const _0x908824=-parseInt(_0x2649dd(0x128))/0x1*(parseInt(_0x2649dd(0x12a))/0x2)+parseInt(_0x2649dd(0x132))/0x3+-parseInt(_0x2649dd(0x129))/0x4*(parseInt(_0x2649dd(0x127))/0x5)+parseInt(_0x2649dd(0x131))/0x6*(-parseInt(_0x2649dd(0x12c))/0x7)+-parseInt(_0x2649dd(0x130))/0x8+parseInt(_0x2649dd(0x121))/0x9*(-parseInt(_0x2649dd(0x12d))/0xa)+-parseInt(_0x2649dd(0x123))/0xb*(-parseInt(_0x2649dd(0x126))/0xc);if(_0x908824===_0x57d1c2)break;else _0x32915e['push'](_0x32915e['shift']());}catch(_0x4d86cf){_0x32915e['push'](_0x32915e['shift']());}}}(a292_0x4bb9,0xa3c9b));import a292_0x28194f from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';function a292_0x3d89(_0x9e35b5,_0x124b83){_0x9e35b5=_0x9e35b5-0x11e;const _0x4bb932=a292_0x4bb9();let _0x3d8928=_0x4bb932[_0x9e35b5];return _0x3d8928;}export async function resolveRabetbaseInvocation(_0x29d85c){const _0x34c14a=a292_0x3d89,_0x2a2fac=a292_0x28194f('',{'importMeta':import.meta,'argv':[..._0x29d85c],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0xaeec8d=[..._0x2a2fac[_0x34c14a(0x120)]],_0x2f0518=_0x2a2fac['flags'],_0x44a2ae=_0xaeec8d[0x0];if(!_0x44a2ae)throw CliErrors[_0x34c14a(0x11e)](_0x34c14a(0x12f));const _0x55c0ea=resolveRemovedCommand(_0x44a2ae,_0xaeec8d[0x1]);if(_0x55c0ea)throw CliErrors[_0x34c14a(0x11e)](_0x55c0ea[_0x34c14a(0x11f)],_0x55c0ea[_0x34c14a(0x122)]);if(_0x44a2ae===_0x34c14a(0x134))throw CliErrors[_0x34c14a(0x11e)](_0x34c14a(0x133),'Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.');if(!isKnownService(_0x44a2ae))throw CliErrors[_0x34c14a(0x12b)](_0xaeec8d[_0x34c14a(0x125)]('\x20'));const _0xbd98c=getServiceEntry(_0x44a2ae),_0x30e2bd=_0xaeec8d[0x1],_0x507e9c=_0x30e2bd||_0xbd98c['defaultCommand'];if(!_0x507e9c){if(_0xbd98c['wildcardDef'])return{'definition':_0xbd98c[_0x34c14a(0x124)],'rawFlags':_0x2f0518,'args':[]};throw CliErrors[_0x34c14a(0x11e)](_0x34c14a(0x12e)+_0x44a2ae+'\x22.');}const _0x5cf026=findDefinition(_0x44a2ae,_0x507e9c);if(_0x5cf026)return assertSupportedCommandFlags(_0x5cf026,_0x2f0518),{'definition':_0x5cf026,'rawFlags':_0x2f0518,'args':_0xaeec8d['slice'](0x2)};if(_0xbd98c[_0x34c14a(0x124)])return{'definition':_0xbd98c[_0x34c14a(0x124)],'rawFlags':_0x2f0518,'args':[_0x507e9c,..._0xaeec8d['slice'](0x2)]};throw CliErrors[_0x34c14a(0x12b)](_0x44a2ae+'\x20'+_0x507e9c);}
@@ -1 +1 @@
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
+ const a294_0x2a3801=a294_0x3c48;(function(_0x1d2d59,_0x5d1ba1){const _0xd50e98=a294_0x3c48,_0x35752b=_0x1d2d59();while(!![]){try{const _0x325faf=parseInt(_0xd50e98(0xce))/0x1+-parseInt(_0xd50e98(0xd4))/0x2*(-parseInt(_0xd50e98(0xcc))/0x3)+-parseInt(_0xd50e98(0xba))/0x4+-parseInt(_0xd50e98(0xc2))/0x5+parseInt(_0xd50e98(0xf1))/0x6+parseInt(_0xd50e98(0xed))/0x7*(-parseInt(_0xd50e98(0xde))/0x8)+parseInt(_0xd50e98(0xeb))/0x9;if(_0x325faf===_0x5d1ba1)break;else _0x35752b['push'](_0x35752b['shift']());}catch(_0x12e6a4){_0x35752b['push'](_0x35752b['shift']());}}}(a294_0x3176,0xf4019));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{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=a294_0x2a3801(0xc6),SKILL_NAME=a294_0x2a3801(0xe5);function frontmatterValue(_0xd72907,_0x54b3e0){const _0x96f61c=a294_0x2a3801;return _0xd72907[_0x96f61c(0xc7)](new RegExp('^'+_0x54b3e0+_0x96f61c(0xd2),'m'))?.[0x1]?.[_0x96f61c(0xef)]()??'';}function listFiles(_0x564308,_0x12e774=_0x564308){return readdirSync(_0x12e774,{'withFileTypes':!![]})['flatMap'](_0x56323b=>{const _0x1ed45c=a294_0x3c48,_0x14fb5e=join(_0x12e774,_0x56323b[_0x1ed45c(0xe2)]),_0x22b401=lstatSync(_0x14fb5e);if(_0x22b401[_0x1ed45c(0xe9)]())throw new Error('Symbolic\x20link\x20is\x20not\x20allowed:\x20'+_0x14fb5e);if(_0x22b401[_0x1ed45c(0xec)]())return listFiles(_0x564308,_0x14fb5e);if(!_0x22b401['isFile']())throw new Error('Unsupported\x20Skill\x20entry:\x20'+_0x14fb5e);return[relative(_0x564308,_0x14fb5e)['split'](sep)[_0x1ed45c(0xc8)]('/')];})['sort']((_0xe9cce5,_0x57ff0e)=>_0xe9cce5<_0x57ff0e?-0x1:_0xe9cce5>_0x57ff0e?0x1:0x0);}function digestFiles(_0xc625af,_0x21d849){const _0x27a447=a294_0x2a3801,_0x1aa54d=createHash(_0x27a447(0xcf));for(const _0x47aa8e of _0x21d849){if(_0x47aa8e[_0x27a447(0xdc)]('/')||_0x47aa8e['split']('/')[_0x27a447(0xe4)]('..')||_0x47aa8e[_0x27a447(0xe4)]('\x5c'))throw new Error('Unsafe\x20manifest\x20path:\x20'+_0x47aa8e);_0x1aa54d[_0x27a447(0xdf)](_0x47aa8e),_0x1aa54d['update']('\x00'),_0x1aa54d['update'](readFileSync(join(_0xc625af,..._0x47aa8e[_0x27a447(0xd9)]('/')))),_0x1aa54d[_0x27a447(0xdf)]('\x00');}return _0x1aa54d[_0x27a447(0xbd)]('hex');}function sameFiles(_0x1d18ba,_0x53e111){const _0x4f077c=a294_0x2a3801;return _0x1d18ba[_0x4f077c(0xd6)]===_0x53e111['length']&&_0x1d18ba['every']((_0x37dcdb,_0xf3453b)=>_0x37dcdb===_0x53e111[_0xf3453b]);}function readSource(_0x10ebf2){const _0x49ac26=a294_0x2a3801,_0x4befff=JSON[_0x49ac26(0xd5)](readFileSync(join(_0x10ebf2,'package.json'),_0x49ac26(0xda))),_0x539925=JSON[_0x49ac26(0xd5)](readFileSync(join(_0x10ebf2,_0x49ac26(0xc9),_0x49ac26(0xbe)),_0x49ac26(0xda))),_0xb0d0ad=join(_0x10ebf2,_0x49ac26(0xc9),SKILL_NAME),_0x33af33=frontmatterValue(readFileSync(join(_0xb0d0ad,_0x49ac26(0xe0)),_0x49ac26(0xda)),_0x49ac26(0xe1)),_0x561db4=listFiles(_0xb0d0ad);if(_0x539925['schemaVersion']!==0x1||_0x539925[_0x49ac26(0xe2)]!==SKILL_NAME||!_0x4befff[_0x49ac26(0xe1)]||_0x539925[_0x49ac26(0xbf)]!==_0x4befff[_0x49ac26(0xe1)]||_0x539925[_0x49ac26(0xf2)]!==_0x4befff[_0x49ac26(0xe1)]||_0x33af33!==_0x4befff[_0x49ac26(0xe1)]||!sameFiles(_0x561db4,_0x539925[_0x49ac26(0xdb)])||digestFiles(_0xb0d0ad,_0x561db4)!==_0x539925[_0x49ac26(0xbd)])throw new Error(_0x49ac26(0xee));return{'packageVersion':_0x4befff[_0x49ac26(0xe1)],'skillVersion':_0x33af33,'root':_0xb0d0ad,'manifest':_0x539925};}function installedSkillPath(_0x195806){const _0x31df72=a294_0x2a3801,_0x1be6d7=resolveInstalledSkill(SKILL_NAME,{'home':_0x195806});if(_0x1be6d7[_0x31df72(0xd7)]===_0x31df72(0xc0))return{'state':_0x31df72(0xc0),'path':dirname(_0x1be6d7[_0x31df72(0xc5)])};if(_0x1be6d7['state']===_0x31df72(0xc1))return{'state':'missing'};return{'state':'unverifiable','reason':_0x1be6d7[_0x31df72(0xcd)]};}function a294_0x3c48(_0x1efaa4,_0x4f6c86){_0x1efaa4=_0x1efaa4-0xba;const _0x31763f=a294_0x3176();let _0x3c48f0=_0x31763f[_0x1efaa4];return _0x3c48f0;}export function inspectInstalledBuiltinSkillVersion(_0x23f56e,_0x4962db={}){const _0x36e0e9=a294_0x2a3801,_0x320088=installedSkillPath(_0x4962db[_0x36e0e9(0xd8)]??homedir());if(_0x320088[_0x36e0e9(0xd7)]==='missing')return{'state':_0x36e0e9(0xea),'expectedVersion':_0x23f56e,'repairCommand':REPAIR_COMMAND};if(_0x320088[_0x36e0e9(0xd7)]==='unverifiable')return{'state':_0x36e0e9(0xe7),'expectedVersion':_0x23f56e,'reason':_0x320088[_0x36e0e9(0xcd)],'repairCommand':REPAIR_COMMAND};try{const _0x4b7399=frontmatterValue(readFileSync(join(_0x320088['path'],'SKILL.md'),_0x36e0e9(0xda)),_0x36e0e9(0xe1));return{'state':_0x4b7399===_0x23f56e?_0x36e0e9(0xd3):_0x36e0e9(0xf5),'expectedVersion':_0x23f56e,'skillVersion':_0x4b7399,'installedPath':_0x320088[_0x36e0e9(0xc5)],'repairCommand':REPAIR_COMMAND};}catch(_0x3ef23a){return{'state':_0x36e0e9(0xe7),'expectedVersion':_0x23f56e,'installedPath':_0x320088[_0x36e0e9(0xc5)],'reason':_0x3ef23a instanceof Error?_0x3ef23a[_0x36e0e9(0xe6)]:String(_0x3ef23a),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x47a01c={}){const _0x18433=a294_0x2a3801,_0x4257db=_0x47a01c[_0x18433(0xf4)]??DEFAULT_PACKAGE_ROOT;let _0x5ebaa5;try{_0x5ebaa5=readSource(_0x4257db);}catch(_0x57d5fb){return{'state':_0x18433(0xe7),'packageVersion':'unknown','reason':_0x57d5fb instanceof Error?_0x57d5fb[_0x18433(0xe6)]:String(_0x57d5fb),'repairCommand':REPAIR_COMMAND};}const _0x318d76=installedSkillPath(_0x47a01c[_0x18433(0xd8)]??homedir());if(_0x318d76[_0x18433(0xd7)]===_0x18433(0xea))return{'state':_0x18433(0xea),'packageVersion':_0x5ebaa5[_0x18433(0xbf)],'repairCommand':REPAIR_COMMAND};if(_0x318d76['state']==='unverifiable')return{'state':_0x18433(0xe7),'packageVersion':_0x5ebaa5[_0x18433(0xbf)],'reason':_0x318d76['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x734654=frontmatterValue(readFileSync(join(_0x318d76[_0x18433(0xc5)],_0x18433(0xe0)),_0x18433(0xda)),_0x18433(0xe1));if(_0x734654!==_0x5ebaa5['skillVersion'])return{'state':_0x18433(0xf5),'packageVersion':_0x5ebaa5[_0x18433(0xbf)],'skillVersion':_0x734654,'installedPath':_0x318d76['path'],'repairCommand':REPAIR_COMMAND};const _0x2a6cef=listFiles(_0x318d76[_0x18433(0xc5)]),_0x58c0d3=digestFiles(_0x318d76['path'],_0x2a6cef);return{'state':sameFiles(_0x2a6cef,_0x5ebaa5[_0x18433(0xf0)]['files'])&&_0x58c0d3===_0x5ebaa5[_0x18433(0xf0)][_0x18433(0xbd)]?_0x18433(0xd3):_0x18433(0xca),'packageVersion':_0x5ebaa5[_0x18433(0xbf)],'skillVersion':_0x734654,'installedPath':_0x318d76[_0x18433(0xc5)],'digest':_0x58c0d3,'repairCommand':REPAIR_COMMAND};}catch(_0x26dee8){return{'state':'unverifiable','packageVersion':_0x5ebaa5['packageVersion'],'installedPath':_0x318d76[_0x18433(0xc5)],'reason':_0x26dee8 instanceof Error?_0x26dee8[_0x18433(0xe6)]:String(_0x26dee8),'repairCommand':REPAIR_COMMAND};}}function failure(_0x5263ae,_0x3ea4e1,_0x119f53,_0x4da10d){const _0x46306c=a294_0x2a3801;return{'ok':![],'code':_0x5263ae,'packageVersion':_0x3ea4e1['packageVersion'],'skillVersion':_0x3ea4e1[_0x46306c(0xf2)],'installedPath':_0x4da10d,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x119f53 instanceof Error?_0x119f53[_0x46306c(0xe6)]:String(_0x119f53)};}function a294_0x3176(){const _0xb507b2=['rabetbase','message','unverifiable','error','isSymbolicLink','missing','1042119AChyak','isDirectory','349944hGthxI','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','trim','manifest','10150776YSfVvB','skillVersion','SOURCE_INVALID','packageRoot','version_mismatch','6456076rqFLqF','stdio','installedPath','digest','rabetbase.manifest.json','packageVersion','present','absent','527035jEikNE','skipped','unknown','path','rabetbase\x20cli-skill\x20install','match','join','skills','content_mismatch','INSTALL_FAILED','651ONiCON','reason','497397cKmZZQ','sha256','VERIFY_FAILED','pipe',':\x5cs*(.+)$','current','10726HsOIZA','parse','length','state','home','split','utf8','files','startsWith','root','120ZhYNvU','update','SKILL.md','version','name','Installed\x20Skill\x20state\x20is\x20','includes'];a294_0x3176=function(){return _0xb507b2;};return a294_0x3176();}export function installBuiltinSkill(_0x481943={}){const _0x3c72be=a294_0x2a3801,_0xb7e061=_0x481943[_0x3c72be(0xf4)]??DEFAULT_PACKAGE_ROOT,_0x19f158=_0x481943[_0x3c72be(0xd8)]??homedir();let _0x181774;try{_0x181774=readSource(_0xb7e061);}catch(_0x629e84){return failure(_0x3c72be(0xf3),{'packageVersion':_0x3c72be(0xc4),'skillVersion':'unknown'},_0x629e84);}const _0x1d2107=inspectBuiltinSkill({'packageRoot':_0xb7e061,'home':_0x19f158}),_0x518978=runNpxSkillsAddGlobal(_0xb7e061,_0x181774[_0x3c72be(0xdd)],{'stdio':_0x481943[_0x3c72be(0xbb)]??_0x3c72be(0xd1),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x19f158}});if(_0x518978[_0x3c72be(0xc3)])return{'ok':!![],'packageVersion':_0x181774['packageVersion'],'skillVersion':_0x181774[_0x3c72be(0xf2)],'installedPath':_0x1d2107['installedPath'],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x518978['ok'])return failure(_0x3c72be(0xcb),_0x181774,_0x518978[_0x3c72be(0xe8)]??'skills@latest\x20exited\x20'+_0x518978['status']);const _0x40fd51=inspectBuiltinSkill({'packageRoot':_0xb7e061,'home':_0x19f158});if(_0x40fd51['state']!==_0x3c72be(0xd3))return failure(_0x3c72be(0xd0),_0x181774,_0x40fd51[_0x3c72be(0xcd)]??_0x3c72be(0xe3)+_0x40fd51[_0x3c72be(0xd7)],_0x40fd51['installedPath']);return{'ok':!![],'packageVersion':_0x181774[_0x3c72be(0xbf)],'skillVersion':_0x181774[_0x3c72be(0xf2)],'installedPath':_0x40fd51[_0x3c72be(0xbc)],'changed':_0x1d2107['state']!=='current','repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
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
+ (function(_0x59835a,_0x9054b){const _0x499a99=a295_0x4be7,_0x778068=_0x59835a();while(!![]){try{const _0x1a68d9=parseInt(_0x499a99(0x20c))/0x1+-parseInt(_0x499a99(0x1f0))/0x2+parseInt(_0x499a99(0x20a))/0x3+-parseInt(_0x499a99(0x203))/0x4*(parseInt(_0x499a99(0x20d))/0x5)+parseInt(_0x499a99(0x20f))/0x6*(parseInt(_0x499a99(0x1f8))/0x7)+parseInt(_0x499a99(0x202))/0x8*(parseInt(_0x499a99(0x208))/0x9)+parseInt(_0x499a99(0x1f9))/0xa*(-parseInt(_0x499a99(0x209))/0xb);if(_0x1a68d9===_0x9054b)break;else _0x778068['push'](_0x778068['shift']());}catch(_0x4bc217){_0x778068['push'](_0x778068['shift']());}}}(a295_0x2dd7,0xb2de2));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';function a295_0x4be7(_0x373b50,_0x5db466){_0x373b50=_0x373b50-0x1f0;const _0x2dd746=a295_0x2dd7();let _0x4be743=_0x2dd746[_0x373b50];return _0x4be743;}export function camelCaseFlagsToKebab(_0x485cea){const _0x5d8018=a295_0x4be7,_0x13820f=[];for(const [_0x4898bc,_0x5d9fb8]of Object[_0x5d8018(0x200)](_0x485cea)){if(_0x5d9fb8===!![]){const _0x2d968b=_0x4898bc[_0x5d8018(0x206)](/([A-Z])/g,_0x5d8018(0x1fd))['toLowerCase']();_0x13820f[_0x5d8018(0x205)](_0x2d968b);}}return _0x13820f;}export function parseDynamicFlags(){const _0xf89a35=a295_0x4be7,_0x2d35b7=[];for(let _0x17838e=0x3;_0x17838e<process[_0xf89a35(0x1f4)][_0xf89a35(0x1fa)];_0x17838e++){const _0x5b8713=process[_0xf89a35(0x1f4)][_0x17838e];if(_0x5b8713&&_0x5b8713['startsWith']('--')){const _0x5a9e25=_0x5b8713['slice'](0x2);_0x5a9e25&&!_0x5a9e25[_0xf89a35(0x213)]('=')&&_0x2d35b7[_0xf89a35(0x205)](_0x5a9e25);}}return _0x2d35b7;}export function getAllProvidedFlags(_0x3a1d11){const _0x289fb6=a295_0x4be7,_0x39b35b=camelCaseFlagsToKebab(_0x3a1d11),_0x2c27a7=parseDynamicFlags(),_0x171e3d=new Set([..._0x39b35b,..._0x2c27a7]);return Array[_0x289fb6(0x211)](_0x171e3d);}export function normalizeLegacyBffSaveFlags(_0x392d5c){const _0x40a260=a295_0x4be7,_0x8cb9e7=new Set(_0x392d5c);return _0x8cb9e7[_0x40a260(0x204)](_0x40a260(0x1fc))&&_0x8cb9e7[_0x40a260(0x20b)](_0x40a260(0x1f3)),Array[_0x40a260(0x211)](_0x8cb9e7);}function a295_0x2dd7(){const _0x1fa1e6=['1131096AUrwSV','50KxosWZ','Unsupported\x20command:\x20','6PLmhXk','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','from','help','includes','skill','1275780cWkCyc','error','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','enable-bff-save','argv','log','--help','setLogPath','5113423vSeFIM','40YZVfYT','length','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','dangerously-bff-save','-$1','(empty)','cwd','entries','\x0aAvailable\x20commands:','17016xncbTY','576920mLkCoQ','has','push','replace','\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20','2619LSYsHV','2487419GYrLim','3710418TRAqMH','add'];a295_0x2dd7=function(){return _0x1fa1e6;};return a295_0x2dd7();}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x4dc63c,_0xf528d0,_0x62d09c){const _0x21270c=a295_0x4be7;logger[_0x21270c(0x1f7)](process[_0x21270c(0x1ff)]());if(_0x62d09c?.[_0x21270c(0x212)]||_0x4dc63c===_0x21270c(0x1f6)){showHelp();return;}console['error']('Error:\x20Unsupported\x20command:\x20'+(_0x4dc63c||_0x21270c(0x1fe))),console['log'](_0x21270c(0x201)),console[_0x21270c(0x1f5)]('\x20\x20'+CLI_BIN_NAME+_0x21270c(0x1fb)),console[_0x21270c(0x1f5)](''),console[_0x21270c(0x1f5)]('Public\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x21270c(0x1f1)](_0x21270c(0x214),_0x21270c(0x20e)+_0x4dc63c),process['exit'](0x1);}function showHelp(){const _0x1c6fc3=a295_0x4be7;console[_0x1c6fc3(0x1f5)](_0x1c6fc3(0x210)+CLI_BIN_NAME+_0x1c6fc3(0x207)+SKILLS_INSTALL_COMMAND_LINE+_0x1c6fc3(0x1f2));}
@@ -1 +1 @@
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
+ const a296_0x4a5ff8=a296_0x6183;(function(_0x2dfaad,_0x2bcaaf){const _0x14ec4e=a296_0x6183,_0x684aee=_0x2dfaad();while(!![]){try{const _0xf76243=parseInt(_0x14ec4e(0xaa))/0x1+parseInt(_0x14ec4e(0xcc))/0x2+parseInt(_0x14ec4e(0xb1))/0x3*(parseInt(_0x14ec4e(0xca))/0x4)+-parseInt(_0x14ec4e(0xb6))/0x5+parseInt(_0x14ec4e(0xc8))/0x6+-parseInt(_0x14ec4e(0x9b))/0x7*(-parseInt(_0x14ec4e(0x9d))/0x8)+-parseInt(_0x14ec4e(0xb0))/0x9*(parseInt(_0x14ec4e(0xa5))/0xa);if(_0xf76243===_0x2bcaaf)break;else _0x684aee['push'](_0x684aee['shift']());}catch(_0x12c6ce){_0x684aee['push'](_0x684aee['shift']());}}}(a296_0x4f1f,0xac244));import{execaSync}from'execa';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';function a296_0x4f1f(){const _0x2dec4a=['INSTALL_PARTIAL','expectedSkillName','checked','NPX_NOT_FOUND','add','stderr','push','log','3469080LfXBWc','filter','68KStVdw','shortMessage','672220NlexHR','pipe','skill','absent','EPERM','presence','join','EACCES','7114933SVkEuy','npm_config_global','8QDCzbz','remove','lovrabet/lovrabet-skill','CHILD_EXIT_NONZERO','message','npx\x20failed\x20to\x20start','Skill\x20\x22','SPAWN_FAILED','10arbkpT','\x20failed\x20target(s)','NPM_CONFIG_GLOBAL','\x22\x20install\x20state:\x20','--skill','1175808bcoFHs','present','rabetbase','match','signal','warn','18003654tezrsl','147417oncJkk','code','PERMISSION_DENIED','stdio','npx','6181910wTmplF','unverifiable','CHILD_TERMINATED','lovrabet/rabetbase','exit\x20','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','state','yes','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','inherit'];a296_0x4f1f=function(){return _0x2dec4a;};return a296_0x4f1f();}export const SKILLS_FLAG_GLOBAL='-g';function a296_0x6183(_0x54eaf3,_0x4611dd){_0x54eaf3=_0x54eaf3-0x96;const _0x4f1f0=a296_0x4f1f();let _0x6183a6=_0x4f1f0[_0x54eaf3];return _0x6183a6;}export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills@latest';export const NPX_SKILLS_SUBCOMMAND_ADD=a296_0x4a5ff8(0xc4);export const NPX_SKILLS_FLAG_SKILL=a296_0x4a5ff8(0xa9);export const RABETBASE_SKILL_SOURCE=a296_0x4a5ff8(0xb9);export const LEGACY_RABETBASE_SKILL_SOURCE=a296_0x4a5ff8(0x9f);export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export const RABETBASE_GLOBAL_SKILL_NAME=a296_0x4a5ff8(0xac);export const RABETBASE_SKILL_GIT_SOURCE=a296_0x4a5ff8(0xbe);export function resolveGlobalSkillName(_0x24c046){switch(_0x24c046['trim']()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x33f84b){const _0x19117d=a296_0x4a5ff8,_0x292a31=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x33f84b&&_0x292a31[_0x19117d(0xc6)](NPX_SKILLS_FLAG_SKILL,_0x33f84b),_0x292a31;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()][a296_0x4a5ff8(0x99)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a296_0x4a5ff8(0xb5),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a296_0x4a5ff8(0x99)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x530ff8,_0xcb37f7,_0x2c94c9){return{'ok':![],'status':_0xcb37f7,'code':_0x530ff8,'error':'['+_0x530ff8+']\x20'+_0x2c94c9};}function execaOptions(_0x96ea2d,_0x364330){const _0xb429e3=a296_0x4a5ff8,_0x4a7c25={...process.env};return delete _0x4a7c25[_0xb429e3(0x9c)],delete _0x4a7c25[_0xb429e3(0xa7)],{'cwd':_0x96ea2d,'stdio':_0x364330,'env':_0x4a7c25,'extendEnv':![],'shell':![],'reject':![],..._0x364330===_0xb429e3(0xcd)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0x4feed6,_0x3ccf1d,_0x383ead,_0x46b77d){const _0x34e35c=a296_0x4a5ff8,_0x30345a=[_0x4feed6['stdout']?String(_0x4feed6['stdout']):'',_0x4feed6[_0x34e35c(0xc5)]?String(_0x4feed6[_0x34e35c(0xc5)]):''][_0x34e35c(0xc9)](Boolean)['join']('\x0a')['trim'](),_0x434008=_0x4feed6['exitCode']??null;_0x46b77d!==_0x34e35c(0xcd)&&_0x30345a&&console[_0x34e35c(0xc7)](_0x30345a);if(_0x4feed6[_0x34e35c(0xb2)]){const _0x4ea57f=_0x4feed6[_0x34e35c(0xb2)]==='ENOENT'?_0x34e35c(0xc3):_0x4feed6['code']===_0x34e35c(0x97)||_0x4feed6[_0x34e35c(0xb2)]===_0x34e35c(0x9a)?_0x34e35c(0xb3):_0x34e35c(0xa4);return failure(_0x4ea57f,_0x434008,_0x4feed6['shortMessage']??_0x4feed6[_0x34e35c(0xa1)]??_0x4feed6[_0x34e35c(0xb2)]);}if(_0x4feed6[_0x34e35c(0xae)])return failure(_0x34e35c(0xb8),_0x434008,'npx\x20terminated\x20by\x20signal\x20'+_0x4feed6[_0x34e35c(0xae)]);if(_0x4feed6['failed']&&_0x434008===null)return failure(_0x34e35c(0xa4),_0x434008,_0x4feed6[_0x34e35c(0xcb)]??_0x4feed6['message']??_0x34e35c(0xa2));if(_0x434008!==0x0)return failure(_0x34e35c(0xa0),_0x434008,_0x30345a||_0x4feed6[_0x34e35c(0xcb)]||_0x34e35c(0xba)+(_0x434008??'unknown'));const _0x5914d8=_0x3ccf1d?resolveInstalledSkill(_0x3ccf1d,_0x383ead):undefined,_0xc6cbee=_0x30345a[_0x34e35c(0xad)](/Failed to install\s+(\d+)/i);if(_0xc6cbee&&Number(_0xc6cbee[0x1])>0x0){const _0x3547c8='Installer\x20reported\x20'+_0xc6cbee[0x1]+_0x34e35c(0xa6)+(_0x30345a?':\x0a'+_0x30345a:'');if(_0x5914d8?.['state']===_0x34e35c(0xab))return console[_0x34e35c(0xaf)]('!\x20'+_0x3547c8),{'ok':!![],'status':0x0};return failure(_0x34e35c(0xc0),0x0,_0x3547c8);}if(_0x5914d8){if(_0x5914d8[_0x34e35c(0xbc)]===_0x34e35c(0x96))return failure('SKILL_NOT_INSTALLED',0x0,_0x34e35c(0xa3)+_0x3ccf1d+_0x34e35c(0xbb)+_0x5914d8[_0x34e35c(0xc2)][_0x34e35c(0x99)](',\x20')+')');_0x5914d8['state']===_0x34e35c(0xb7)&&console[_0x34e35c(0xaf)]('!\x20Could\x20not\x20verify\x20\x22'+_0x3ccf1d+_0x34e35c(0xa8)+_0x5914d8['reason']);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x374f50,_0x3db098){const _0x279e6d=a296_0x4a5ff8;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x104587=_0x3db098?.[_0x279e6d(0xb4)]??_0x279e6d(0xbf),_0x45488b=buildNpxSkillsAddArgv(_0x3db098?.[_0x279e6d(0xce)]),_0x1ecb67=[_0x279e6d(0xb5),..._0x45488b][_0x279e6d(0x99)]('\x20');console[_0x279e6d(0xc7)]('*\x20'+_0x1ecb67);const _0x3bdc82=execaSync(_0x279e6d(0xb5),_0x45488b,execaOptions(_0x374f50,_0x104587));return normalizeExecaResult(_0x3bdc82,undefined,undefined,_0x104587);}export function runNpxSkillsRemove(_0x461776,_0x109acf,_0xc51678=LEGACY_RABETBASE_SKILL_SOURCE){const _0x2dddff=a296_0x4a5ff8;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x417c90=_0x109acf?.['stdio']??'inherit',_0x271b41=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x2dddff(0x9e),_0xc51678,NPX_SKILLS_FLAG_SKILL,_0x109acf?.[_0x2dddff(0xce)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x109acf?.[_0x2dddff(0xbd)]?['-y']:[]],_0x3d9a80=['npx',..._0x271b41][_0x2dddff(0x99)]('\x20');console['log']('*\x20'+_0x3d9a80);const _0x2aa259=execaSync(_0x2dddff(0xb5),_0x271b41,execaOptions(_0x461776,_0x417c90));return normalizeExecaResult(_0x2aa259,undefined,undefined,_0x417c90);}export function runNpxSkillsAddGlobal(_0x11996e,_0x306973,_0x3e50e3){const _0x57809a=a296_0x4a5ff8;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5e491d=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x306973,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x290535=['npx',NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x306973,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x57809a(0x99)]('\x20');console[_0x57809a(0xc7)]('*\x20'+_0x290535);const _0xf72d1=execaSync('npx',_0x5e491d,execaOptions(_0x11996e,_0x57809a(0xcd)));return normalizeExecaResult(_0xf72d1,_0x3e50e3?.[_0x57809a(0xc1)]??resolveGlobalSkillName(_0x306973),_0x3e50e3?.[_0x57809a(0x98)],_0x3e50e3?.[_0x57809a(0xb4)]);}
@@ -1 +1 @@
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
+ const a297_0x357037=a297_0x23f4;function a297_0x5363(){const _0x3baa13=['1356048EXDAUM','find','.agents','utf8','not-recorded','\x20is\x20unreadable:\x20','message','.claude','version','includes','448JLumTJ','unusable','4855230SJuDyK','kind','38572twBbvt','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','\x20records\x20\x22','parse','SKILL.md','skills','recorded','number','object','absent','89608yOFNlh','70198nunxIs','\x20uses\x20unsupported\x20version\x20','24918kDrFHK','lockFile','\x20has\x20no\x20skills\x20map','unverifiable','map','318130LsxxZq','3eZLKOE'];a297_0x5363=function(){return _0x3baa13;};return a297_0x5363();}(function(_0x5cb162,_0x219019){const _0x31115e=a297_0x23f4,_0x19c81e=_0x5cb162();while(!![]){try{const _0x3d7cd4=parseInt(_0x31115e(0x7e))/0x1+parseInt(_0x31115e(0x7d))/0x2+-parseInt(_0x31115e(0x86))/0x3*(parseInt(_0x31115e(0x95))/0x4)+-parseInt(_0x31115e(0x85))/0x5+-parseInt(_0x31115e(0x80))/0x6*(parseInt(_0x31115e(0x91))/0x7)+-parseInt(_0x31115e(0x87))/0x8+parseInt(_0x31115e(0x93))/0x9;if(_0x3d7cd4===_0x219019)break;else _0x19c81e['push'](_0x19c81e['shift']());}catch(_0x29aa29){_0x19c81e['push'](_0x19c81e['shift']());}}}(a297_0x5363,0x239f1));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a297_0x357037(0x89),'.skill-lock.json');export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a297_0x357037(0x89),a297_0x357037(0x78)),join(a297_0x357037(0x8e),a297_0x357037(0x78))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x586052,_0x1b3dfd){const _0x39ae35=a297_0x357037;if(!existsSync(_0x586052))return{'kind':_0x39ae35(0x8b)};let _0x14e58c;try{_0x14e58c=JSON[_0x39ae35(0x98)](readFileSync(_0x586052,_0x39ae35(0x8a)));}catch(_0x118e33){return{'kind':_0x39ae35(0x92),'reason':_0x586052+_0x39ae35(0x8c)+_0x118e33[_0x39ae35(0x8d)]};}const _0x422bfd=_0x14e58c;if(typeof _0x422bfd?.['version']!==_0x39ae35(0x7a)||!SUPPORTED_LOCK_VERSIONS[_0x39ae35(0x90)](_0x422bfd[_0x39ae35(0x8f)]))return{'kind':_0x39ae35(0x92),'reason':_0x586052+_0x39ae35(0x7f)+String(_0x422bfd?.['version'])};if(!_0x422bfd[_0x39ae35(0x78)]||typeof _0x422bfd['skills']!==_0x39ae35(0x7b))return{'kind':_0x39ae35(0x92),'reason':_0x586052+_0x39ae35(0x82)};return _0x422bfd[_0x39ae35(0x78)][_0x1b3dfd]?{'kind':_0x39ae35(0x79)}:{'kind':_0x39ae35(0x8b)};}function a297_0x23f4(_0x4dbb9c,_0x27a418){_0x4dbb9c=_0x4dbb9c-0x78;const _0x536335=a297_0x5363();let _0x23f426=_0x536335[_0x4dbb9c];return _0x23f426;}export function resolveInstalledSkill(_0x89dbd9,_0x492f47){const _0x436392=a297_0x357037,_0x51001e=_0x492f47?.['home']??homedir(),_0x28ce0f=_0x492f47?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x436392(0x84)](_0x76305=>join(_0x51001e,_0x76305)),_0xcc572b=_0x492f47?.[_0x436392(0x81)]??join(_0x51001e,SKILL_LOCK_RELATIVE_PATH),_0xf42d39=_0x28ce0f[_0x436392(0x84)](_0x4c1de4=>join(_0x4c1de4,_0x89dbd9,_0x436392(0x99))),_0x1ce8bd=_0xf42d39[_0x436392(0x88)](_0x2d30c4=>existsSync(_0x2d30c4));if(_0x1ce8bd)return{'state':'present','path':_0x1ce8bd};const _0x559935=readLockLookup(_0xcc572b,_0x89dbd9);if(_0x559935[_0x436392(0x94)]===_0x436392(0x92))return{'state':_0x436392(0x83),'reason':_0x559935['reason']};if(_0x559935[_0x436392(0x94)]===_0x436392(0x79))return{'state':'unverifiable','reason':_0xcc572b+_0x436392(0x97)+_0x89dbd9+_0x436392(0x96)+('('+_0xf42d39['join'](',\x20')+')')};return{'state':_0x436392(0x7c),'checked':_0xf42d39};}
@@ -1 +1 @@
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
+ (function(_0x45c9d6,_0x1acef9){const _0x2cdef6=a298_0x4a5d,_0x3bd08a=_0x45c9d6();while(!![]){try{const _0x313a9c=-parseInt(_0x2cdef6(0x12c))/0x1*(-parseInt(_0x2cdef6(0x122))/0x2)+-parseInt(_0x2cdef6(0x126))/0x3*(parseInt(_0x2cdef6(0x12a))/0x4)+-parseInt(_0x2cdef6(0x132))/0x5+parseInt(_0x2cdef6(0x123))/0x6+parseInt(_0x2cdef6(0x127))/0x7*(-parseInt(_0x2cdef6(0x130))/0x8)+parseInt(_0x2cdef6(0x124))/0x9*(-parseInt(_0x2cdef6(0x12e))/0xa)+parseInt(_0x2cdef6(0x133))/0xb;if(_0x313a9c===_0x1acef9)break;else _0x3bd08a['push'](_0x3bd08a['shift']());}catch(_0x4e96e7){_0x3bd08a['push'](_0x3bd08a['shift']());}}}(a298_0x598f,0x97dea));function a298_0x598f(){const _0x57e5e6=['3ZRODYN','963543pAORxj','entries','test','194188fnEjzL','stringify','7511mGiGGq','error','1711490iNZiEM','service','32TQsHnE','[REDACTED]','1458155zNNVUs','17432261vhINHf','flags','110XzNCXA','170538JtNYCx','27sRdMaY','command'];a298_0x598f=function(){return _0x57e5e6;};return a298_0x598f();}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(_0x49d52b){const _0x262c65=a298_0x4a5d;return SENSITIVE_PATTERNS['some'](_0x4ae592=>_0x4ae592[_0x262c65(0x129)](_0x49d52b));}function a298_0x4a5d(_0x39584f,_0x1903c7){_0x39584f=_0x39584f-0x122;const _0x598fac=a298_0x598f();let _0x4a5d61=_0x598fac[_0x39584f];return _0x4a5d61;}function sanitizeFlags(_0x33c223){const _0x687d1f=a298_0x4a5d,_0x9e370c={};for(const [_0x3baf8c,_0x16c733]of Object[_0x687d1f(0x128)](_0x33c223)){isSensitiveKey(_0x3baf8c)?_0x9e370c[_0x3baf8c]=_0x16c733!=null&&_0x16c733!==''?_0x687d1f(0x131):_0x16c733:_0x9e370c[_0x3baf8c]=_0x16c733;}return _0x9e370c;}export async function reportCommandTrace(_0x5c77ef){const _0x1c51c3=a298_0x4a5d;try{const _0x1a90ab=sanitizeFlags(_0x5c77ef[_0x1c51c3(0x134)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x5c77ef[_0x1c51c3(0x12f)],'command.name':_0x5c77ef[_0x1c51c3(0x125)],'command.flags':JSON[_0x1c51c3(0x12b)](_0x1a90ab),..._0x5c77ef['durationMs']!=null?{'command.duration_ms':_0x5c77ef['durationMs']}:{},..._0x5c77ef['error']?{'command.error':_0x5c77ef['error']instanceof Error?_0x5c77ef[_0x1c51c3(0x12d)]['message']:String(_0x5c77ef[_0x1c51c3(0x12d)])}:{}}});}catch{}}
@@ -1 +1 @@
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
+ function a299_0x4c87(_0x3dc6ef,_0x171444){_0x3dc6ef=_0x3dc6ef-0x13e;var _0x477bfe=a299_0x477b();var _0x4c87b2=_0x477bfe[_0x3dc6ef];return _0x4c87b2;}(function(_0x562f1f,_0x3c7248){var _0x36efa3=a299_0x4c87,_0x56a34a=_0x562f1f();while(!![]){try{var _0x373f4c=-parseInt(_0x36efa3(0x143))/0x1*(-parseInt(_0x36efa3(0x148))/0x2)+-parseInt(_0x36efa3(0x141))/0x3+-parseInt(_0x36efa3(0x146))/0x4*(parseInt(_0x36efa3(0x142))/0x5)+-parseInt(_0x36efa3(0x145))/0x6*(-parseInt(_0x36efa3(0x140))/0x7)+-parseInt(_0x36efa3(0x149))/0x8+-parseInt(_0x36efa3(0x13e))/0x9+parseInt(_0x36efa3(0x147))/0xa*(parseInt(_0x36efa3(0x13f))/0xb);if(_0x373f4c===_0x3c7248)break;else _0x56a34a['push'](_0x56a34a['shift']());}catch(_0x17ce79){_0x56a34a['push'](_0x56a34a['shift']());}}}(a299_0x477b,0x23bf7));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x4d8785,_0xe73b1f){var _0x958d0a=a299_0x4c87;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x4d8785,..._0xe73b1f?.['service']&&{'rabetbase.help.service':_0xe73b1f[_0x958d0a(0x144)]}}});}catch(_0x3e20f7){console['error'](_0x958d0a(0x14a),_0x3e20f7);}}function a299_0x477b(){var _0x34cb21=['40MTVNnO','52994bayksG','1930496wuChJy','Failed\x20to\x20report\x20CLI\x20help\x20trace:','1743480WhRmOH','1383646naGNlN','561484THQyLD','319194fzEBeX','54485IJPbRJ','6zJJWlh','service','6jtlRAs','20FXWmcY'];a299_0x477b=function(){return _0x34cb21;};return a299_0x477b();}
@@ -1 +1 @@
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
+ (function(_0x59917b,_0x31b031){const _0x555401=a300_0x1101,_0x3f1f84=_0x59917b();while(!![]){try{const _0x510393=parseInt(_0x555401(0xdc))/0x1*(-parseInt(_0x555401(0xe4))/0x2)+parseInt(_0x555401(0xda))/0x3+parseInt(_0x555401(0xe2))/0x4*(parseInt(_0x555401(0xe7))/0x5)+parseInt(_0x555401(0xe1))/0x6+-parseInt(_0x555401(0xe0))/0x7*(-parseInt(_0x555401(0xde))/0x8)+parseInt(_0x555401(0xe3))/0x9+-parseInt(_0x555401(0xdb))/0xa;if(_0x510393===_0x31b031)break;else _0x3f1f84['push'](_0x3f1f84['shift']());}catch(_0x10c418){_0x3f1f84['push'](_0x3f1f84['shift']());}}}(a300_0x19f0,0x2b6db));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a300_0x19f0(){const _0x57d9fa=['341eFCmha','email','7736DNCyCK','username','2513AzYqAi','1730394tApmet','4nEmcUf','2602764eOIpXj','1154SFOKtK','unknown','nickname','1041320oyfKfi','2619vURHkt','7592450UExZPk'];a300_0x19f0=function(){return _0x57d9fa;};return a300_0x19f0();}function a300_0x1101(_0x501f0e,_0x49497b){_0x501f0e=_0x501f0e-0xda;const _0x19f0d5=a300_0x19f0();let _0x11014c=_0x19f0d5[_0x501f0e];return _0x11014c;}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 _0x162e7f=a300_0x1101,_0x2e2f9d=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x4280a8=_0x2e2f9d?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x162e7f(0xe5)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':'production')}),setUserContext({'id':_0x4280a8?.['id'],'username':_0x4280a8?.[_0x162e7f(0xdf)],'nickname':_0x4280a8?.[_0x162e7f(0xe6)],'email':_0x4280a8?.[_0x162e7f(0xdd)],'tenantCode':_0x4280a8?.['tenant']?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x2e2f9d;}
@@ -1 +1 @@
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
+ (function(_0x3a3fd4,_0x2a7a85){const _0x28eb50=a301_0x3956,_0x4c3a75=_0x3a3fd4();while(!![]){try{const _0x511b50=-parseInt(_0x28eb50(0x1ae))/0x1+-parseInt(_0x28eb50(0x1ac))/0x2*(parseInt(_0x28eb50(0x1a7))/0x3)+-parseInt(_0x28eb50(0x1a8))/0x4*(-parseInt(_0x28eb50(0x1a9))/0x5)+parseInt(_0x28eb50(0x1af))/0x6+parseInt(_0x28eb50(0x1aa))/0x7+parseInt(_0x28eb50(0x1b4))/0x8*(-parseInt(_0x28eb50(0x1b0))/0x9)+parseInt(_0x28eb50(0x1ab))/0xa*(parseInt(_0x28eb50(0x1a6))/0xb);if(_0x511b50===_0x2a7a85)break;else _0x4c3a75['push'](_0x4c3a75['shift']());}catch(_0x248619){_0x4c3a75['push'](_0x4c3a75['shift']());}}}(a301_0x10a9,0x2c2b2));function a301_0x3956(_0x574ed5,_0x4f0265){_0x574ed5=_0x574ed5-0x1a5;const _0x10a985=a301_0x10a9();let _0x3956fd=_0x10a985[_0x574ed5];return _0x3956fd;}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a301_0x10a9(){const _0x58a372=['5bIscPq','2530955pReLvw','58670SziVtM','94bfCGWa','SIGTERM','309390fisKVc','1767264SCfttU','294741gHPitZ','exit','then','SIGINT','24DivzXy','once','242WCZwKM','20373PsOQBQ','490180xPesjR'];a301_0x10a9=function(){return _0x58a372;};return a301_0x10a9();}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x37e046=a301_0x3956;process[_0x37e046(0x1a5)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x2ca454=()=>{const _0x5e85d6=_0x37e046;void flushOtelNodeIfUsed()[_0x5e85d6(0x1b2)](()=>process[_0x5e85d6(0x1b1)](0x0));};process[_0x37e046(0x1a5)](_0x37e046(0x1b3),_0x2ca454),process['once'](_0x37e046(0x1ad),_0x2ca454);}export async function exitWithOtelShutdown(_0x1ebfc2){const _0x18b94d=a301_0x3956;await flushOtelNodeIfUsed(),process[_0x18b94d(0x1b1)](_0x1ebfc2);}
@@ -1 +1 @@
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
+ (function(_0x468979,_0x30738d){const _0xa1ea4b=a302_0x53d4,_0x56fe2c=_0x468979();while(!![]){try{const _0x10be45=parseInt(_0xa1ea4b(0x74))/0x1*(parseInt(_0xa1ea4b(0x7e))/0x2)+-parseInt(_0xa1ea4b(0x82))/0x3+parseInt(_0xa1ea4b(0x75))/0x4*(-parseInt(_0xa1ea4b(0x81))/0x5)+-parseInt(_0xa1ea4b(0x7c))/0x6+parseInt(_0xa1ea4b(0x78))/0x7*(parseInt(_0xa1ea4b(0x76))/0x8)+parseInt(_0xa1ea4b(0x79))/0x9+-parseInt(_0xa1ea4b(0x80))/0xa*(-parseInt(_0xa1ea4b(0x7a))/0xb);if(_0x10be45===_0x30738d)break;else _0x56fe2c['push'](_0x56fe2c['shift']());}catch(_0x24dabf){_0x56fe2c['push'](_0x56fe2c['shift']());}}}(a302_0x404f,0x2d08a));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a302_0x404f(){const _0x22fa01=['traceparent','973LJlIdH','2764395qFCvZG','84414xrkxfk','logData','1588980zxCNlt','version','2qIEuwO','manual','500HkkzBm','1774345tKILdk','768825rlTRrj','102141niZkJQ','4zGQJKF','15392zBNQSK'];a302_0x404f=function(){return _0x22fa01;};return a302_0x404f();}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';function a302_0x53d4(_0x36f4f7,_0x270678){_0x36f4f7=_0x36f4f7-0x74;const _0x404fa5=a302_0x404f();let _0x53d41b=_0x404fa5[_0x36f4f7];return _0x53d41b;}export async function sendCliTraceLog(_0x57c6e7){const _0x46e00b=a302_0x53d4;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x57c6e7['traceName']??DEFAULT_TRACE_NAME,'version':_0x57c6e7[_0x46e00b(0x7d)]??getCliVersion(),'spanName':_0x57c6e7['spanName'],'eventType':_0x46e00b(0x7f),'logData':_0x57c6e7[_0x46e00b(0x7b)],..._0x57c6e7[_0x46e00b(0x77)]&&{'traceparent':_0x57c6e7[_0x46e00b(0x77)]}});}
@@ -1 +1 @@
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
+ const a303_0x5caa1d=a303_0x57ee;(function(_0x5a7eb1,_0x2528c9){const _0x3cf495=a303_0x57ee,_0x17d164=_0x5a7eb1();while(!![]){try{const _0x18bcef=parseInt(_0x3cf495(0x194))/0x1*(-parseInt(_0x3cf495(0x19a))/0x2)+parseInt(_0x3cf495(0x196))/0x3+-parseInt(_0x3cf495(0x19d))/0x4*(parseInt(_0x3cf495(0x190))/0x5)+-parseInt(_0x3cf495(0x19b))/0x6+parseInt(_0x3cf495(0x197))/0x7+parseInt(_0x3cf495(0x195))/0x8+parseInt(_0x3cf495(0x191))/0x9;if(_0x18bcef===_0x2528c9)break;else _0x17d164['push'](_0x17d164['shift']());}catch(_0x183592){_0x17d164['push'](_0x17d164['shift']());}}}(a303_0x1e41,0x27fcf));function a303_0x57ee(_0x3ac521,_0x3df2e1){_0x3ac521=_0x3ac521-0x18e;const _0x1e41c9=a303_0x1e41();let _0x57ee65=_0x1e41c9[_0x3ac521];return _0x57ee65;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a303_0x1e41(){const _0x317cbc=['sanitize','1355rOduXF','912222clZRYF','issue.log.collect','redactionCount','143215LwlaJC','1294120SDATqh','893226DJMbfl','151130RKtikm','truncated','platform-issue-log-collect','2TDjPDu','171408Zttqlj','redactionKinds','3644ULnHSP','title','description'];a303_0x1e41=function(){return _0x317cbc;};return a303_0x1e41();}export const PLATFORM_ISSUE_TRACE_NAME=a303_0x5caa1d(0x199);export const PLATFORM_ISSUE_SPAN_NAME=a303_0x5caa1d(0x192);export async function sendPlatformIssueCollectLog(_0x510b08){const _0x178866=a303_0x5caa1d;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x510b08[_0x178866(0x19e)],'issue.description':_0x510b08[_0x178866(0x18e)],..._0x510b08[_0x178866(0x18f)]?{'issue.description_original_bytes':_0x510b08[_0x178866(0x18f)]['originalBytes'],'issue.description_truncated':_0x510b08[_0x178866(0x18f)][_0x178866(0x198)],'issue.description_redactions':_0x510b08[_0x178866(0x18f)][_0x178866(0x193)],'issue.description_redaction_kinds':_0x510b08[_0x178866(0x18f)][_0x178866(0x19c)]['join'](',')}:{}}});}
@@ -45,7 +45,7 @@ export interface ApiPullFileStatus {
45
45
  * 生成 API 文件的结果
46
46
  *
47
47
  * `api.ts` / `client.ts` 仅在缺失(或显式 overwrite)时写入脚手架;
48
- * `sdk-config.ts` 每次都会按当前路由刷新。
48
+ * 匹配当前应用的 `sdk-config.ts` / `<prefix>-sdk-config.ts` 每次都会刷新。
49
49
  */
50
50
  export interface GenerateApiFileResult {
51
51
  appCode: string;
@@ -1 +1 @@
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
+ const a305_0x3bf0df=a305_0x71f9;function a305_0x51a1(){const _0x24ea3e=['codebuddy','.agent/skills/lovrabet/SKILL.md','Generic\x20template\x20fallback','.windsurf/workflows/rabetbase.md','claude','agent','file','cursor','qoder','Windsurf','windsurf','cline','1970OuCdWU','Cline\x20IDE','25522auGUUS','CodeBuddy\x20IDE','.trae/skills/lovrabet/SKILL.md','90376oqSmNt','Cline','.opencode/skills/lovrabet/SKILL.md','772995qAVNNV','4seHRXo','1200928MyOmoP','.cursor/skills/rabetbase.md','codex','Qoder\x20IDE','Cursor\x20IDE','.cline','.windsurf','Other\x20(generic\x20template)','156sSqFEg','.codex/skills/lovrabet/SKILL.md','trae','.cursorrules','.qoder/rules/rabetbase.md','.codebuddy','5445BUraAp','Antigravity','4821YCcNAH','Codex\x20IDE','OpenCode\x20IDE','Qoder','Windsurf\x20IDE','6719328qmjGFb','Cursor','.agent','.claude/skills/lovrabet/SKILL.md','.cursor','.cline/skills/lovrabet/SKILL.md','.qoder/skills/lovrabet/SKILL.md','Claude\x20Code','.codex','Antigravity\x20IDE','484LPpvhV'];a305_0x51a1=function(){return _0x24ea3e;};return a305_0x51a1();}(function(_0x23008c,_0x5571a0){const _0x17d110=a305_0x71f9,_0x4a482c=_0x23008c();while(!![]){try{const _0x5ec9f4=-parseInt(_0x17d110(0x15d))/0x1*(parseInt(_0x17d110(0x159))/0x2)+-parseInt(_0x17d110(0x138))/0x3*(parseInt(_0x17d110(0x147))/0x4)+-parseInt(_0x17d110(0x15c))/0x5+-parseInt(_0x17d110(0x130))/0x6*(-parseInt(_0x17d110(0x156))/0x7)+-parseInt(_0x17d110(0x15e))/0x8+-parseInt(_0x17d110(0x136))/0x9*(-parseInt(_0x17d110(0x154))/0xa)+parseInt(_0x17d110(0x13d))/0xb;if(_0x5ec9f4===_0x5571a0)break;else _0x4a482c['push'](_0x4a482c['shift']());}catch(_0x1e2ff4){_0x4a482c['push'](_0x4a482c['shift']());}}}(a305_0x51a1,0x23613));export const CORE_IDE_CONFIGS={'cursor':{'name':a305_0x3bf0df(0x13e),'description':a305_0x3bf0df(0x12c),'folders':[a305_0x3bf0df(0x133),a305_0x3bf0df(0x141)],'files':[{'type':a305_0x3bf0df(0x14e),'path':a305_0x3bf0df(0x15f)}]},'windsurf':{'name':a305_0x3bf0df(0x151),'description':a305_0x3bf0df(0x13c),'folders':[a305_0x3bf0df(0x12e)],'files':[{'type':a305_0x3bf0df(0x14e),'path':a305_0x3bf0df(0x14b)}]},'claude':{'name':a305_0x3bf0df(0x144),'description':'Claude\x20Code','folders':['.claude'],'files':[{'type':a305_0x3bf0df(0x14e),'path':a305_0x3bf0df(0x140)}]},'cline':{'name':a305_0x3bf0df(0x15a),'description':a305_0x3bf0df(0x155),'folders':[a305_0x3bf0df(0x12d)],'files':[{'type':a305_0x3bf0df(0x14e),'path':a305_0x3bf0df(0x142)}]},'codex':{'name':'Codex','description':a305_0x3bf0df(0x139),'folders':[a305_0x3bf0df(0x145)],'files':[{'type':a305_0x3bf0df(0x14e),'path':a305_0x3bf0df(0x131)}]},'opencode':{'name':'OpenCode','description':a305_0x3bf0df(0x13a),'folders':['.opencode'],'files':[{'type':'file','path':a305_0x3bf0df(0x15b)}]},'qoder':{'name':a305_0x3bf0df(0x13b),'description':a305_0x3bf0df(0x12b),'folders':['.qoder'],'files':[{'type':'file','path':a305_0x3bf0df(0x134)},{'type':'file','path':a305_0x3bf0df(0x143)}]},'codebuddy':{'name':'CodeBuddy','description':a305_0x3bf0df(0x157),'folders':[a305_0x3bf0df(0x135)],'files':[{'type':'file','path':'.codebuddy/skills/lovrabet/SKILL.md'}]},'trae':{'name':'Trae','description':'Trae\x20IDE','folders':['.trae'],'files':[{'type':'file','path':a305_0x3bf0df(0x158)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a305_0x3bf0df(0x12f),'description':a305_0x3bf0df(0x14a),'folders':[a305_0x3bf0df(0x13f)],'files':[{'type':a305_0x3bf0df(0x14e),'path':a305_0x3bf0df(0x149)}]},'antigravity':{'name':a305_0x3bf0df(0x137),'description':a305_0x3bf0df(0x146),'folders':['.agent'],'files':[{'type':a305_0x3bf0df(0x14e),'path':a305_0x3bf0df(0x149)}]}};export const CORE_IDE_LIST=[a305_0x3bf0df(0x14c),'cline',a305_0x3bf0df(0x148),a305_0x3bf0df(0x12a),a305_0x3bf0df(0x14f),'opencode',a305_0x3bf0df(0x150),a305_0x3bf0df(0x132),a305_0x3bf0df(0x152)];function a305_0x71f9(_0x4cb18b,_0x3f9a40){_0x4cb18b=_0x4cb18b-0x12a;const _0x51a195=a305_0x51a1();let _0x71f9cc=_0x51a195[_0x4cb18b];return _0x71f9cc;}export const IDE_LIST=['antigravity',a305_0x3bf0df(0x14c),'cline',a305_0x3bf0df(0x148),a305_0x3bf0df(0x12a),a305_0x3bf0df(0x14f),'opencode',a305_0x3bf0df(0x150),a305_0x3bf0df(0x132),'windsurf',a305_0x3bf0df(0x14d)];export const ALL_CORE_IDES=[a305_0x3bf0df(0x14f),a305_0x3bf0df(0x152),a305_0x3bf0df(0x14c),a305_0x3bf0df(0x153),a305_0x3bf0df(0x12a),'opencode','qoder',a305_0x3bf0df(0x148),a305_0x3bf0df(0x132)];