@lovrabet/rabetbase-cli 2.5.9-beta.1 → 2.5.10-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 (377) hide show
  1. package/README.md +1 -1
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/api-group.js +1 -1
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.js +1 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/api/legacy-api-file.js +1 -1
  8. package/lib/api/model-registry-file.js +1 -1
  9. package/lib/api/model-registry-scaffold.js +1 -1
  10. package/lib/api/model-source.js +1 -1
  11. package/lib/auth/auth-server-ui.js +1 -1
  12. package/lib/auth/auth-server.js +1 -1
  13. package/lib/auth/constant.js +1 -1
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.js +1 -1
  16. package/lib/auth/is-session-valid.js +1 -1
  17. package/lib/auth/login-success-html.js +1 -1
  18. package/lib/auth/logout.js +1 -1
  19. package/lib/cli-flags.js +1 -1
  20. package/lib/cli.js +1 -1
  21. package/lib/commands/api/generate.js +1 -1
  22. package/lib/commands/api/index.js +1 -1
  23. package/lib/commands/api/list.js +1 -1
  24. package/lib/commands/api/pull.js +1 -1
  25. package/lib/commands/api/shared.js +1 -1
  26. package/lib/commands/app/detail.js +1 -1
  27. package/lib/commands/app/index.js +1 -1
  28. package/lib/commands/app/list.js +1 -1
  29. package/lib/commands/app/members-list.js +1 -1
  30. package/lib/commands/app/remote-directory.js +1 -1
  31. package/lib/commands/app/shared.js +1 -1
  32. package/lib/commands/app-config/delete.js +1 -1
  33. package/lib/commands/app-config/get.js +1 -1
  34. package/lib/commands/app-config/index.js +1 -1
  35. package/lib/commands/app-config/list.js +1 -1
  36. package/lib/commands/app-config/set.js +1 -1
  37. package/lib/commands/app-config/shared.js +1 -1
  38. package/lib/commands/auth/index.js +1 -1
  39. package/lib/commands/bff/create.js +1 -1
  40. package/lib/commands/bff/delete.js +1 -1
  41. package/lib/commands/bff/detail.js +1 -1
  42. package/lib/commands/bff/index.js +1 -1
  43. package/lib/commands/bff/list.js +1 -1
  44. package/lib/commands/bff/logs.js +1 -1
  45. package/lib/commands/bff/pull.js +1 -1
  46. package/lib/commands/bff/push.js +1 -1
  47. package/lib/commands/bff/status.js +1 -1
  48. package/lib/commands/cli-skill/index.js +1 -1
  49. package/lib/commands/cli-update.js +1 -1
  50. package/lib/commands/codegen/index.js +1 -1
  51. package/lib/commands/codegen/sdk.js +1 -1
  52. package/lib/commands/codegen/sql.js +1 -1
  53. package/lib/commands/common/app-registry.js +1 -1
  54. package/lib/commands/common/app-selector.js +1 -1
  55. package/lib/commands/common/async-task.js +1 -1
  56. package/lib/commands/common/dry-run.js +1 -1
  57. package/lib/commands/common/flags.js +1 -1
  58. package/lib/commands/common/local-file.js +1 -1
  59. package/lib/commands/common/validate.js +1 -1
  60. package/lib/commands/config/delete.js +1 -1
  61. package/lib/commands/config/get.js +1 -1
  62. package/lib/commands/config/index.js +1 -1
  63. package/lib/commands/config/init.js +1 -1
  64. package/lib/commands/config/list.js +1 -1
  65. package/lib/commands/config/set.js +1 -1
  66. package/lib/commands/config/shared.js +1 -1
  67. package/lib/commands/dataset/batch-design.js +1 -1
  68. package/lib/commands/dataset/business-group-update.js +1 -1
  69. package/lib/commands/dataset/business-groups.js +1 -1
  70. package/lib/commands/dataset/capability.js +1 -1
  71. package/lib/commands/dataset/cross-relation-create.js +1 -1
  72. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  73. package/lib/commands/dataset/cross-relation-list.js +1 -1
  74. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  75. package/lib/commands/dataset/cross-relation-update.js +1 -1
  76. package/lib/commands/dataset/delete.js +1 -1
  77. package/lib/commands/dataset/design-context.js +1 -1
  78. package/lib/commands/dataset/design-start.js +1 -1
  79. package/lib/commands/dataset/design-status.js +1 -1
  80. package/lib/commands/dataset/design-sync-retry.js +1 -1
  81. package/lib/commands/dataset/design-sync-status.js +1 -1
  82. package/lib/commands/dataset/design-validate.js +1 -1
  83. package/lib/commands/dataset/detail.js +1 -1
  84. package/lib/commands/dataset/extend-update.js +1 -1
  85. package/lib/commands/dataset/field-restore.js +1 -1
  86. package/lib/commands/dataset/field-update.js +1 -1
  87. package/lib/commands/dataset/generate.js +1 -1
  88. package/lib/commands/dataset/index.js +1 -1
  89. package/lib/commands/dataset/list.js +1 -1
  90. package/lib/commands/dataset/operations.js +1 -1
  91. package/lib/commands/dataset/relation-audit.js +1 -1
  92. package/lib/commands/dataset/relation-create.js +1 -1
  93. package/lib/commands/dataset/relation-delete.js +1 -1
  94. package/lib/commands/dataset/relation-shared.js +1 -1
  95. package/lib/commands/dataset/relation-update.js +1 -1
  96. package/lib/commands/dataset/relations.js +1 -1
  97. package/lib/commands/dataset/rename.js +1 -1
  98. package/lib/commands/dataset/restore.js +1 -1
  99. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  100. package/lib/commands/db/analysis-batching.js +1 -1
  101. package/lib/commands/db/analyze-batch-plan.js +1 -1
  102. package/lib/commands/db/analyze-cancel.js +1 -1
  103. package/lib/commands/db/analyze-start.js +1 -1
  104. package/lib/commands/db/analyze-status.js +1 -1
  105. package/lib/commands/db/create.js +1 -1
  106. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  109. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  110. package/lib/commands/db/delete.js +1 -1
  111. package/lib/commands/db/detail.js +1 -1
  112. package/lib/commands/db/diff-refresh-start.js +1 -1
  113. package/lib/commands/db/diff-refresh-status.js +1 -1
  114. package/lib/commands/db/diff.js +1 -1
  115. package/lib/commands/db/index.js +1 -1
  116. package/lib/commands/db/list.js +1 -1
  117. package/lib/commands/db/shared.js +1 -1
  118. package/lib/commands/db/table-diff-shared.js +1 -1
  119. package/lib/commands/db/tables.js +1 -1
  120. package/lib/commands/db/test.js +1 -1
  121. package/lib/commands/db/update.js +1 -1
  122. package/lib/commands/deployment/index.js +1 -1
  123. package/lib/commands/deployment/sync-all.js +1 -1
  124. package/lib/commands/deployment/sync-jobs.js +1 -1
  125. package/lib/commands/deployment/sync-status.js +1 -1
  126. package/lib/commands/doctor.js +1 -1
  127. package/lib/commands/file/index.js +1 -1
  128. package/lib/commands/flow/create.js +1 -1
  129. package/lib/commands/flow/detail.js +1 -1
  130. package/lib/commands/flow/index.js +1 -1
  131. package/lib/commands/flow/list.js +1 -1
  132. package/lib/commands/flow/page-list.js +1 -1
  133. package/lib/commands/flow/publish.js +1 -1
  134. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  135. package/lib/commands/flow/runtime-role-list.js +1 -1
  136. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  137. package/lib/commands/flow/runtime-user-search.js +1 -1
  138. package/lib/commands/flow/shared.js +1 -1
  139. package/lib/commands/flow/update.js +1 -1
  140. package/lib/commands/flow/validate.js +1 -1
  141. package/lib/commands/instant-api-policy/current.js +1 -1
  142. package/lib/commands/instant-api-policy/index.js +1 -1
  143. package/lib/commands/instant-api-policy/init.js +1 -1
  144. package/lib/commands/instant-api-policy/publish.js +1 -1
  145. package/lib/commands/instant-api-policy/pull.js +1 -1
  146. package/lib/commands/instant-api-policy/revision.js +1 -1
  147. package/lib/commands/instant-api-policy/revisions.js +1 -1
  148. package/lib/commands/instant-api-policy/rollback.js +1 -1
  149. package/lib/commands/instant-api-policy/shared.js +1 -1
  150. package/lib/commands/instant-api-policy/validate.js +1 -1
  151. package/lib/commands/issue/index.js +1 -1
  152. package/lib/commands/issue/nudge.js +1 -1
  153. package/lib/commands/issue/report.js +1 -1
  154. package/lib/commands/issue/shared.js +1 -1
  155. package/lib/commands/kb/create.js +1 -1
  156. package/lib/commands/kb/delete.js +1 -1
  157. package/lib/commands/kb/detail.js +1 -1
  158. package/lib/commands/kb/index.js +1 -1
  159. package/lib/commands/kb/list.js +1 -1
  160. package/lib/commands/kb/search.js +1 -1
  161. package/lib/commands/kb/shared.js +1 -1
  162. package/lib/commands/kb/update.js +1 -1
  163. package/lib/commands/logs/index.js +1 -1
  164. package/lib/commands/menu/asset-update.js +1 -1
  165. package/lib/commands/menu/delete.js +1 -1
  166. package/lib/commands/menu/external-link-create.js +1 -1
  167. package/lib/commands/menu/external-link-update.js +1 -1
  168. package/lib/commands/menu/group-create.js +1 -1
  169. package/lib/commands/menu/group-update.js +1 -1
  170. package/lib/commands/menu/index.js +1 -1
  171. package/lib/commands/menu/list.js +1 -1
  172. package/lib/commands/menu/move.js +1 -1
  173. package/lib/commands/menu/regroup-start.js +1 -1
  174. package/lib/commands/menu/rename.js +1 -1
  175. package/lib/commands/menu/shared/compare-table.js +1 -1
  176. package/lib/commands/menu/shared/delete-plan.js +1 -1
  177. package/lib/commands/menu/shared/facts.js +1 -1
  178. package/lib/commands/menu/shared/index.js +1 -1
  179. package/lib/commands/menu/shared/inquirer.js +1 -1
  180. package/lib/commands/menu/shared/local-pages.js +1 -1
  181. package/lib/commands/menu/shared/logic.js +1 -1
  182. package/lib/commands/menu/shared/mutations.js +1 -1
  183. package/lib/commands/menu/shared/path.js +1 -1
  184. package/lib/commands/menu/shared/service.js +1 -1
  185. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  186. package/lib/commands/menu/shared/sync-core.js +1 -1
  187. package/lib/commands/menu/shared/update-core.js +1 -1
  188. package/lib/commands/menu/shared/valid-url.js +1 -1
  189. package/lib/commands/menu/subapp-assets-status.js +1 -1
  190. package/lib/commands/menu/subapp-assets-update.js +1 -1
  191. package/lib/commands/menu/sync.js +1 -1
  192. package/lib/commands/menu/visibility-update.js +1 -1
  193. package/lib/commands/notification/config-create.js +1 -1
  194. package/lib/commands/notification/config-delete.js +1 -1
  195. package/lib/commands/notification/config-list.js +1 -1
  196. package/lib/commands/notification/config-update.js +1 -1
  197. package/lib/commands/notification/index.js +1 -1
  198. package/lib/commands/notification/shared.js +1 -1
  199. package/lib/commands/ocr/index.js +1 -1
  200. package/lib/commands/page/create.js +1 -1
  201. package/lib/commands/page/custom/detail.js +1 -1
  202. package/lib/commands/page/custom/list.js +1 -1
  203. package/lib/commands/page/custom/publish.js +1 -1
  204. package/lib/commands/page/custom/shared.js +1 -1
  205. package/lib/commands/page/custom/syntax.js +1 -1
  206. package/lib/commands/page/custom/update.js +1 -1
  207. package/lib/commands/page/data-list-status.js +1 -1
  208. package/lib/commands/page/generate-start.js +1 -1
  209. package/lib/commands/page/generate-status.js +1 -1
  210. package/lib/commands/page/index.js +1 -1
  211. package/lib/commands/page/pull.js +1 -1
  212. package/lib/commands/page/push.js +1 -1
  213. package/lib/commands/page/relation-audit.js +1 -1
  214. package/lib/commands/page/restore.js +1 -1
  215. package/lib/commands/page/shared.js +1 -1
  216. package/lib/commands/page/sync.js +1 -1
  217. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  218. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  219. package/lib/commands/project/create/format-elapsed.js +1 -1
  220. package/lib/commands/project/create/main.js +1 -1
  221. package/lib/commands/project/create/materialize-project-template.js +1 -1
  222. package/lib/commands/project/create/project-name.js +1 -1
  223. package/lib/commands/project/create/project-template-archive.js +1 -1
  224. package/lib/commands/project/create/project-template-path.js +1 -1
  225. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  226. package/lib/commands/project/create/use-format-code.js +1 -1
  227. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  228. package/lib/commands/project/domain-routing-sync.js +1 -1
  229. package/lib/commands/project/index.js +1 -1
  230. package/lib/commands/project/upgrade.js +1 -1
  231. package/lib/commands/registry.js +1 -1
  232. package/lib/commands/role/delete.js +1 -1
  233. package/lib/commands/role/detail.js +1 -1
  234. package/lib/commands/role/index.js +1 -1
  235. package/lib/commands/role/list.js +1 -1
  236. package/lib/commands/role/shared.js +1 -1
  237. package/lib/commands/role/update.js +1 -1
  238. package/lib/commands/role/user-add.js +1 -1
  239. package/lib/commands/role/user-remove.js +1 -1
  240. package/lib/commands/role/user-resolve.js +1 -1
  241. package/lib/commands/rule/get.js +1 -1
  242. package/lib/commands/rule/index.js +1 -1
  243. package/lib/commands/rule/list.js +1 -1
  244. package/lib/commands/rule/set.js +1 -1
  245. package/lib/commands/rule/shared.js +1 -1
  246. package/lib/commands/run/index.js +1 -1
  247. package/lib/commands/schema.js +1 -1
  248. package/lib/commands/sql/create.js +1 -1
  249. package/lib/commands/sql/delete.js +1 -1
  250. package/lib/commands/sql/detail.js +1 -1
  251. package/lib/commands/sql/exec.js +1 -1
  252. package/lib/commands/sql/index.js +1 -1
  253. package/lib/commands/sql/list.js +1 -1
  254. package/lib/commands/sql/pull.js +1 -1
  255. package/lib/commands/sql/push.js +1 -1
  256. package/lib/commands/sql/shared.js +1 -1
  257. package/lib/commands/sql/status.js +1 -1
  258. package/lib/commands/sql/validate.js +1 -1
  259. package/lib/commands/task/index.js +1 -1
  260. package/lib/commands/task/status.js +1 -1
  261. package/lib/commands/tenant/index.js +1 -1
  262. package/lib/commands/tenant/members-list.js +1 -1
  263. package/lib/commands/tenant/shared.js +1 -1
  264. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  265. package/lib/commands/user-account/feishu-bind.js +1 -1
  266. package/lib/commands/user-account/index.js +1 -1
  267. package/lib/commands/workspace/add.js +1 -1
  268. package/lib/commands/workspace/index.js +1 -1
  269. package/lib/commands/workspace/remove.js +1 -1
  270. package/lib/config/domain-config.js +1 -1
  271. package/lib/config/project-domain-routing.js +1 -1
  272. package/lib/config/region-config.js +1 -1
  273. package/lib/config/schema.js +1 -1
  274. package/lib/constant/cdn.js +1 -1
  275. package/lib/constant/cli.js +1 -1
  276. package/lib/constant/defaults.js +1 -1
  277. package/lib/constant/domain.js +1 -1
  278. package/lib/constant/env.js +1 -1
  279. package/lib/constant/output.js +1 -1
  280. package/lib/constant/paths.js +1 -1
  281. package/lib/constant/region.js +1 -1
  282. package/lib/constant/risk.js +1 -1
  283. package/lib/constant/routing-profile.js +1 -1
  284. package/lib/context/app-resolver.js +1 -1
  285. package/lib/context/auth-resolver.js +1 -1
  286. package/lib/context/config-loader.js +1 -1
  287. package/lib/context.js +1 -1
  288. package/lib/core/alias-resolver.js +1 -1
  289. package/lib/core/api-client.js +1 -1
  290. package/lib/core/bff/config.js +1 -1
  291. package/lib/core/bff/file-system.js +1 -1
  292. package/lib/core/bff/hash.js +1 -1
  293. package/lib/core/bff/hook-directory.js +1 -1
  294. package/lib/core/bff/lock.js +1 -1
  295. package/lib/core/bff/utils.js +1 -1
  296. package/lib/core/cross-db-analysis.js +1 -1
  297. package/lib/core/cross-db-relation.js +1 -1
  298. package/lib/core/db-resolver.js +1 -1
  299. package/lib/core/flow-config.js +1 -1
  300. package/lib/core/instant-api-policy/config.js +1 -1
  301. package/lib/core/kb-management-client.js +1 -1
  302. package/lib/core/kb-search-client.js +1 -1
  303. package/lib/core/page/file-system.js +1 -1
  304. package/lib/core/page/hash.js +1 -1
  305. package/lib/core/page/lock.js +1 -1
  306. package/lib/core/page/lr-smart-jsx.js +1 -1
  307. package/lib/core/sql-index-auditor.js +1 -1
  308. package/lib/core/sql-sync/config.js +1 -1
  309. package/lib/core/sql-sync/file-system.js +1 -1
  310. package/lib/core/sql-sync/hash.js +1 -1
  311. package/lib/core/sql-sync/lock.js +1 -1
  312. package/lib/core/sql-sync/utils.js +1 -1
  313. package/lib/core/sql-validator.js +1 -1
  314. package/lib/errors.js +1 -1
  315. package/lib/framework/build-all-flags.js +1 -1
  316. package/lib/framework/error-output.js +1 -1
  317. package/lib/framework/explicit-yes.js +1 -1
  318. package/lib/framework/flags.js +1 -1
  319. package/lib/framework/help.js +1 -1
  320. package/lib/framework/index.js +1 -1
  321. package/lib/framework/output.js +1 -1
  322. package/lib/framework/response.js +1 -1
  323. package/lib/framework/runner-alias.js +1 -1
  324. package/lib/framework/runner.js +1 -1
  325. package/lib/framework/schema-export.js +1 -1
  326. package/lib/framework/supported-flags.js +1 -1
  327. package/lib/framework/types.js +1 -1
  328. package/lib/generated/build-info.d.ts +4 -4
  329. package/lib/generated/build-info.js +1 -1
  330. package/lib/generated/official-routing.js +1 -1
  331. package/lib/generated/routing-contract.js +1 -1
  332. package/lib/help.js +1 -1
  333. package/lib/postinstall.js +1 -1
  334. package/lib/runtime/confirmation.js +1 -1
  335. package/lib/runtime/event.js +1 -1
  336. package/lib/runtime/index.js +1 -1
  337. package/lib/runtime/queue.js +1 -1
  338. package/lib/runtime/resolve.js +1 -1
  339. package/lib/services/dataset-design/checkpoint.js +1 -1
  340. package/lib/services/dataset-design/commands.js +1 -1
  341. package/lib/services/dataset-design/contract.js +1 -1
  342. package/lib/skills/builtin-skill.js +1 -1
  343. package/lib/skills/main.js +1 -1
  344. package/lib/skills/npx-skills-add.js +1 -1
  345. package/lib/skills/skill-presence.js +1 -1
  346. package/lib/telemetry/cli-command-trace.js +1 -1
  347. package/lib/telemetry/cli-help-trace.js +1 -1
  348. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  349. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  350. package/lib/telemetry/send-cli-trace-log.js +1 -1
  351. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  352. package/lib/utils/ai_config.js +1 -1
  353. package/lib/utils/apply-jq-filter.js +1 -1
  354. package/lib/utils/cdn-config.js +1 -1
  355. package/lib/utils/check-sdk-version.js +1 -1
  356. package/lib/utils/cli-version-check.js +1 -1
  357. package/lib/utils/cli-version-policy.js +1 -1
  358. package/lib/utils/config.js +1 -1
  359. package/lib/utils/entity-with-id.js +1 -1
  360. package/lib/utils/file-utils.js +1 -1
  361. package/lib/utils/guides-cdn.js +1 -1
  362. package/lib/utils/http-client.js +1 -1
  363. package/lib/utils/is-non-interactive.js +1 -1
  364. package/lib/utils/logger.js +1 -1
  365. package/lib/utils/params.js +1 -1
  366. package/lib/utils/platform.js +1 -1
  367. package/lib/utils/sleep.js +1 -1
  368. package/lib/utils/template-replacer.js +1 -1
  369. package/lib/utils/update-notice.js +1 -1
  370. package/lib/utils/version.js +1 -1
  371. package/lib/utils/with-active-cookie.js +1 -1
  372. package/lib/utils/write-cli-side-channel.js +1 -1
  373. package/package.json +2 -2
  374. package/skills/rabetbase/SKILL.md +2 -2
  375. package/skills/rabetbase-dataset-generation/SKILL.md +2 -2
  376. package/skills/rabetbase-page-generation/SKILL.md +2 -2
  377. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- function a342_0x45fd(){const _0x42dd0f=['has','output','read','clientOperationId','hash','operationId','get','PENDING','220fdEtKp','some','createdRelations','fields','toDatasetCode','232860JfEqYK','61883496uVHMUV','Server\x20rejected\x20the\x20design;\x20run\x20design-validate\x20and\x20repair\x20the\x20reported\x20fields.','FAILED','200154djZdDm','fromField','fieldCount','set','dataset-design-operation','Durable\x20operation\x20checkpoint\x20path','state','includes','sync','node:path','str','stringify','manifest','Server\x20returned\x20an\x20invalid\x20design\x20hash.','operation_failed','datasets','prepared','search','errorMsg','relations','context','Dataset\x20detail\x20does\x20not\x20contain\x20matching\x20DOV2\x20metadata.','start','name','identityKey','1607583rxcCSi','normalizedHash','modelCode','PROCESSING','flagMissing','username','fromDatasetCode','string','Deterministic\x20dataset\x20design\x20','client','localKey','write','2296266PKdRVs','dataset-design-','Operation\x20submitted;\x20continue\x20querying\x20its\x20status.','apiDomain','Provide\x20exactly\x20one\x20operation-id,\x20client-operation-id\x20or\x20checkpoint.','toField','Invalid\x20client-operation-id.','10609025XZhLFZ','design-status','unknown_reconcile_failed','6517108rTaeyY','test','Save\x20the\x20server-normalized\x20design\x20JSON','/smartapi/dataset/design/','taskId','validate','filter','.checkpoint.json','file','--format','startsWith','GET','status','toString','entries','inputHash','Server\x20response\x20does\x20not\x20contain\x20a\x20valid\x20operation\x20state.','map','Server\x20context\x20lacks\x20an\x20authenticated\x20identity.','Submission\x20outcome\x20is\x20unknown;\x20query\x20the\x20original\x20operation.','Agent-authored\x20JSON\x20dataset\x20manifest','SUCCESS','unknown','replace','datasets_created','relationType','rabetbase','checkpoint','isArray','reused','appCode','Checkpoint\x20not\x20found.','expectedHash','fromDatasetKey','valid','add','\x20response\x20received','operation-id','password','size','submission_unknown','sync-retry','operation','every','values','push','operation_pending','length','dataset','toDatasetKey','compress','Stable\x20recovery\x20ID\x20for\x20one\x20design\x20operation','code','find','client-operation-id','metrics','options','result','deleted','currentStep','failedStage','createdDatasets'];a342_0x45fd=function(){return _0x42dd0f;};return a342_0x45fd();}const a342_0x531d59=a342_0x4e65;(function(_0x3ec356,_0x4e5e7c){const _0x47aad5=a342_0x4e65,_0x51f10e=_0x3ec356();while(!![]){try{const _0x4f25fc=-parseInt(_0x47aad5(0x1c5))/0x1+parseInt(_0x47aad5(0x1a8))/0x2+-parseInt(_0x47aad5(0x1d1))/0x3+-parseInt(_0x47aad5(0x1db))/0x4+parseInt(_0x47aad5(0x1a3))/0x5*(-parseInt(_0x47aad5(0x1ac))/0x6)+-parseInt(_0x47aad5(0x1d8))/0x7+parseInt(_0x47aad5(0x1a9))/0x8;if(_0x4f25fc===_0x4e5e7c)break;else _0x51f10e['push'](_0x51f10e['shift']());}catch(_0x211645){_0x51f10e['push'](_0x51f10e['shift']());}}}(a342_0x45fd,0xd37a6));import{randomUUID}from'node:crypto';import{resolve}from'node:path';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{getApiDomain}from'../../constant/domain.js';import{getDatasetDesignContext,validateDatasetDesign,startDatasetDesign,getDatasetDesignStatus,getDatasetDesignSyncStatus,retryDatasetDesignSync,getDatasetDetail,getPlatformHttpStatus,isPlatformTransportFailure}from'../../core/api-client.js';function a342_0x4e65(_0x5afb1a,_0x254dec){_0x5afb1a=_0x5afb1a-0x16c;const _0x45fd66=a342_0x45fd();let _0x4e65a4=_0x45fd66[_0x5afb1a];return _0x4e65a4;}import{inputHash,isObject,readManifest,requireValue,validateManifest}from'./contract.js';import{readCheckpoint,saveCheckpoint}from'./checkpoint.js';const flag=(_0x2e8d77,_0xaa3f70)=>({'name':_0x2e8d77,'type':a342_0x531d59(0x1cc),'description':_0xaa3f70}),flags={'file':flag(a342_0x531d59(0x1e3),a342_0x531d59(0x171)),'output':flag(a342_0x531d59(0x19c),a342_0x531d59(0x1dd)),'checkpoint':flag(a342_0x531d59(0x178),a342_0x531d59(0x1b1)),'client':flag('client-operation-id',a342_0x531d59(0x190)),'operation':flag(a342_0x531d59(0x182),'Server\x20operation\x20ID'),'code':flag(a342_0x531d59(0x191),'Saved\x20dataset\x20code')};function domain(_0x5c768){const _0x17c404=a342_0x531d59,_0x352ac5=new URL(_0x5c768[_0x17c404(0x1d4)]||getApiDomain());return requireValue(!_0x352ac5[_0x17c404(0x1ca)]&&!_0x352ac5[_0x17c404(0x183)]&&!_0x352ac5[_0x17c404(0x1bd)]&&!_0x352ac5[_0x17c404(0x19f)],'API\x20domain\x20must\x20not\x20contain\x20credentials,\x20query\x20or\x20fragment.'),_0x352ac5[_0x17c404(0x1e8)]()[_0x17c404(0x174)](/\/+$/,'');}function required(_0x57e769,_0x48985e){const _0x20091f=a342_0x531d59,_0x3466c1=_0x57e769[_0x20091f(0x1b6)](_0x48985e);if(!_0x3466c1)throw CliErrors[_0x20091f(0x1c9)](_0x48985e);return _0x3466c1;}function bind(_0x4029c2,_0x3fa62c,_0x390840){const _0x1d33c5=a342_0x531d59;requireValue(_0x4029c2[_0x1d33c5(0x17b)]===_0x3fa62c[_0x1d33c5(0x17b)]&&_0x4029c2[_0x1d33c5(0x1d4)]===domain(_0x3fa62c)&&(_0x390840===undefined||_0x4029c2[_0x1d33c5(0x16c)]===_0x390840),'Checkpoint\x20target\x20or\x20design\x20changed.\x20Reconcile\x20the\x20original\x20operation;\x20use\x20a\x20new\x20design\x20file\x20for\x20an\x20intentional\x20new\x20operation.');}function query(_0x1e11ee,_0x5c2718){const _0x2d2daf=a342_0x531d59;return{'command':_0x2d2daf(0x1d9),'argv':[_0x2d2daf(0x177),'dataset','design-status','--appcode',_0x1e11ee['appCode'],'--checkpoint',_0x5c2718,_0x2d2daf(0x1e4),_0x2d2daf(0x18f)]};}function unknown(_0x32a3bc,_0x6118ed){const _0x1c0186=a342_0x531d59;return{'status':'submission_unknown','clientOperationId':_0x32a3bc[_0x1c0186(0x19e)],'operationId':_0x32a3bc[_0x1c0186(0x1a0)]??null,'checkpoint':_0x6118ed,'query':query(_0x32a3bc,_0x6118ed),'nextAction':'query_original_operation'};}function matchesField(_0x13708b,_0x45edd6){const _0x444f62=a342_0x531d59;return Object[_0x444f62(0x1e9)](_0x45edd6)[_0x444f62(0x188)](([_0x6e46a8,_0x348aa0])=>{const _0x3a96c6=_0x444f62;if(_0x348aa0==null)return!![];const _0xc07ea1=_0x13708b[_0x6e46a8];if(_0x6e46a8===_0x3a96c6(0x195)){if(!Array[_0x3a96c6(0x179)](_0xc07ea1)||!Array[_0x3a96c6(0x179)](_0x348aa0)||_0xc07ea1['some'](_0x53709b=>!isObject(_0x53709b)))return![];const _0x3db953=_0x20bcf4=>_0x20bcf4[_0x3a96c6(0x16e)](({label:_0x247cf9,value:_0x1bb21d})=>({'label':_0x247cf9,'value':_0x1bb21d}));return inputHash(_0x3db953(_0xc07ea1))===inputHash(_0x3db953(_0x348aa0));}return _0xc07ea1!==undefined&&inputHash(_0xc07ea1)===inputHash(_0x348aa0);});}function reconcile(_0x4dbf07,_0x559961){const _0x4b885d=a342_0x531d59;if(!isObject(_0x4dbf07)||!Array['isArray'](_0x4dbf07['createdDatasets'])||!Array[_0x4b885d(0x179)](_0x4dbf07[_0x4b885d(0x1a5)]))return;const _0x4e38f3=_0x4dbf07[_0x4b885d(0x19a)],_0x545f8d=_0x559961?.[_0x4b885d(0x1bb)][_0x4b885d(0x16e)](_0x564ba5=>_0x564ba5['localKey'])??_0x4dbf07['expectedLocalKeys'];if(!Array[_0x4b885d(0x179)](_0x545f8d)||_0x545f8d[_0x4b885d(0x18c)]!==_0x4e38f3[_0x4b885d(0x18c)]||new Set(_0x545f8d)[_0x4b885d(0x184)]!==_0x545f8d[_0x4b885d(0x18c)])return;const _0x23d2ad=new Map();for(const _0x592a56 of _0x4e38f3){if(!isObject(_0x592a56)||typeof _0x592a56[_0x4b885d(0x1cf)]!==_0x4b885d(0x1cc)||typeof _0x592a56[_0x4b885d(0x191)]!==_0x4b885d(0x1cc)||!_0x592a56[_0x4b885d(0x191)]||_0x23d2ad['has'](_0x592a56[_0x4b885d(0x1cf)]))return;_0x23d2ad[_0x4b885d(0x1af)](_0x592a56[_0x4b885d(0x1cf)],_0x592a56[_0x4b885d(0x191)]);if(_0x559961){const _0x248353=_0x559961[_0x4b885d(0x1bb)][_0x4b885d(0x192)](_0x43df4c=>_0x43df4c[_0x4b885d(0x1cf)]===_0x592a56[_0x4b885d(0x1cf)]);if(!_0x248353||!Array[_0x4b885d(0x179)](_0x592a56[_0x4b885d(0x1a6)]))return;if(_0x592a56[_0x4b885d(0x1a6)][_0x4b885d(0x1a4)](_0x21d6f4=>!isObject(_0x21d6f4)))return;const _0x57feab=new Map(_0x592a56['fields'][_0x4b885d(0x16e)](_0x443028=>[_0x443028[_0x4b885d(0x1c3)],_0x443028]));if(_0x57feab[_0x4b885d(0x184)]!==_0x592a56[_0x4b885d(0x1a6)][_0x4b885d(0x18c)]||_0x592a56[_0x4b885d(0x1ae)]!==_0x592a56[_0x4b885d(0x1a6)]['length'])return;if(_0x248353['fields'][_0x4b885d(0x1a4)](_0x273235=>!_0x57feab[_0x4b885d(0x19b)](_0x273235[_0x4b885d(0x1c3)])||!matchesField(_0x57feab['get'](_0x273235[_0x4b885d(0x1c3)]),_0x273235)))return;const _0x29c8a7=new Set(_0x248353[_0x4b885d(0x1a6)][_0x4b885d(0x16e)](_0x3bad3c=>_0x3bad3c[_0x4b885d(0x1c3)]));_0x29c8a7[_0x4b885d(0x180)]('id');if(_0x592a56[_0x4b885d(0x1a6)][_0x4b885d(0x1a4)](_0x53eb72=>!_0x29c8a7[_0x4b885d(0x19b)](_0x53eb72[_0x4b885d(0x1c3)])))return;}}if(new Set(_0x23d2ad[_0x4b885d(0x189)]())[_0x4b885d(0x184)]!==_0x23d2ad[_0x4b885d(0x184)]||_0x545f8d['some'](_0x1d5999=>!_0x23d2ad[_0x4b885d(0x19b)](_0x1d5999)))return;const _0x418916=_0x559961?.[_0x4b885d(0x1bf)]??_0x4dbf07['expectedRelations'];if(!Array[_0x4b885d(0x179)](_0x418916)||_0x418916['length']!==_0x4dbf07[_0x4b885d(0x1a5)]['length'])return;const _0x301136=_0x48f092=>JSON['stringify']([_0x48f092[_0x4b885d(0x17e)],_0x48f092[_0x4b885d(0x1ad)],_0x48f092[_0x4b885d(0x1a7)]||_0x23d2ad[_0x4b885d(0x1a1)](_0x48f092['toDatasetKey']),_0x48f092[_0x4b885d(0x1d6)],_0x48f092[_0x4b885d(0x176)]||'lookup',_0x48f092['cardinality']||'MANY_TO_ONE']),_0x1db635=new Set(_0x418916[_0x4b885d(0x16e)](_0x301136)),_0x5369d2=new Set(_0x4dbf07['createdRelations'][_0x4b885d(0x16e)](_0x301136));if(_0x5369d2[_0x4b885d(0x184)]!==_0x418916[_0x4b885d(0x18c)]||_0x1db635[_0x4b885d(0x184)]!==_0x418916[_0x4b885d(0x18c)]||[..._0x1db635][_0x4b885d(0x1a4)](_0x58b5e0=>!_0x5369d2[_0x4b885d(0x19b)](_0x58b5e0)))return;for(const _0x3f3217 of _0x4dbf07[_0x4b885d(0x1a5)]){if(_0x3f3217[_0x4b885d(0x1cb)]!==_0x23d2ad[_0x4b885d(0x1a1)](_0x3f3217['fromDatasetKey'])||_0x3f3217[_0x4b885d(0x18e)]&&_0x3f3217[_0x4b885d(0x1a7)]!==_0x23d2ad[_0x4b885d(0x1a1)](_0x3f3217[_0x4b885d(0x18e)]))return;}return{'createdDatasets':_0x4e38f3,'createdRelations':_0x4dbf07['createdRelations'],'unresolvedRelations':_0x4dbf07['unresolvedRelations']??[]};}export function statusData(_0x312331,_0x2e97e8){const _0x2e3e2a=a342_0x531d59;requireValue(isObject(_0x312331)&&typeof _0x312331[_0x2e3e2a(0x1e7)]===_0x2e3e2a(0x1cc),_0x2e3e2a(0x16d));const _0x2a3601={'jobStatus':_0x312331[_0x2e3e2a(0x1e7)],'operationId':_0x312331[_0x2e3e2a(0x1a0)]??_0x312331[_0x2e3e2a(0x1df)]??null,'taskId':_0x312331[_0x2e3e2a(0x1df)]??_0x312331[_0x2e3e2a(0x1a0)]??null,'clientOperationId':_0x312331[_0x2e3e2a(0x19e)]??null,'progressRate':_0x312331['progressRate']??null,'currentStep':_0x312331[_0x2e3e2a(0x198)]??null,'failedStage':_0x312331[_0x2e3e2a(0x199)]??null,'sync':_0x312331[_0x2e3e2a(0x1b4)]??null,'errorMsg':_0x312331[_0x2e3e2a(0x1be)]??null,'metrics':_0x312331[_0x2e3e2a(0x194)]??null},_0x372ab9=!_0x2e97e8&&_0x312331[_0x2e3e2a(0x1e7)]===_0x2e3e2a(0x172)&&isObject(_0x312331[_0x2e3e2a(0x196)]?.[_0x2e3e2a(0x18d)])?_0x312331['result'][_0x2e3e2a(0x18d)]:undefined;if(_0x372ab9&&typeof _0x372ab9[_0x2e3e2a(0x191)]===_0x2e3e2a(0x1cc)&&_0x372ab9[_0x2e3e2a(0x191)]&&_0x372ab9['id']!=null)return{..._0x2a3601,'status':'dataset_created','createdDataset':_0x372ab9};const _0x925898=_0x312331[_0x2e3e2a(0x1e7)]===_0x2e3e2a(0x172)?reconcile(_0x312331[_0x2e3e2a(0x196)],_0x2e97e8):undefined;return{..._0x2a3601,'status':_0x312331[_0x2e3e2a(0x1e7)]===_0x2e3e2a(0x172)?_0x925898?_0x2e3e2a(0x175):_0x2e3e2a(0x1da):_0x312331['status']===_0x2e3e2a(0x1ab)?_0x2e3e2a(0x1ba):[_0x2e3e2a(0x1a2),_0x2e3e2a(0x1c8)]['includes'](_0x312331[_0x2e3e2a(0x1e7)])?_0x2e3e2a(0x18b):_0x2e3e2a(0x1da),..._0x925898};}async function readStatus(_0x27cbda,_0x18fbe6){const _0x43ebe6=a342_0x531d59,_0x430713=statusData(_0x27cbda,_0x18fbe6);if(_0x27cbda[_0x43ebe6(0x1e7)]!=='SUCCESS'||!reconcile(_0x27cbda[_0x43ebe6(0x196)]))return _0x430713;const _0x15c721=[];for(const _0x16956a of _0x27cbda['result']['createdDatasets']){const _0x4a997b=await getDatasetDetail(_0x16956a[_0x43ebe6(0x191)]);requireValue(isObject(_0x4a997b)&&(_0x4a997b[_0x43ebe6(0x1c7)]||_0x4a997b[_0x43ebe6(0x191)])===_0x16956a[_0x43ebe6(0x191)]&&Array[_0x43ebe6(0x179)](_0x4a997b[_0x43ebe6(0x1a6)]),_0x43ebe6(0x1c1));const _0x243437=_0x4a997b['fields'][_0x43ebe6(0x1e1)](_0x811e2b=>_0x811e2b[_0x43ebe6(0x197)]!==!![]);_0x15c721[_0x43ebe6(0x18a)]({..._0x16956a,'fields':_0x243437,'fieldCount':_0x243437[_0x43ebe6(0x18c)]});}return statusData({..._0x27cbda,'result':{..._0x27cbda['result'],'createdDatasets':_0x15c721}},_0x18fbe6);}async function recover(_0x50afd8,_0xd0a2c3,_0x57ea50){const _0x127845=a342_0x531d59;bind(_0x50afd8,_0x57ea50);const _0x41470a=await getDatasetDesignContext(_0x57ea50['appCode']);requireValue(_0x41470a?.[_0x127845(0x1c4)]===_0x50afd8[_0x127845(0x1c4)],'Checkpoint\x20belongs\x20to\x20another\x20authenticated\x20principal.');let _0xbb64d;try{_0xbb64d=await getDatasetDesignStatus(_0x57ea50[_0x127845(0x17b)],{'clientOperationId':_0x50afd8[_0x127845(0x19e)]});}catch(_0x27ba65){const _0x381866=getPlatformHttpStatus(_0x27ba65);if(isPlatformTransportFailure(_0x27ba65)||_0x381866===0x194)return unknown(_0x50afd8,_0xd0a2c3);throw _0x27ba65;}const _0x2f6429=await readStatus(_0xbb64d,_0x50afd8[_0x127845(0x1b8)]);return _0x50afd8[_0x127845(0x1b2)]=_0x2f6429[_0x127845(0x1e7)],_0x50afd8[_0x127845(0x1a0)]=_0xbb64d[_0x127845(0x1a0)]||_0x50afd8[_0x127845(0x1a0)],await saveCheckpoint(_0xd0a2c3,_0x50afd8),{..._0x2f6429,'checkpoint':_0xd0a2c3,'query':query(_0x50afd8,_0xd0a2c3)};}async function start(_0x15816e){const _0xe6df24=a342_0x531d59,_0x5d6927=resolve(required(_0x15816e,_0xe6df24(0x1e3))),_0x5c5353=await readManifest(_0x5d6927),_0x15c0f8=inputHash(_0x5c5353),_0x1edaf1=resolve(_0x15816e[_0xe6df24(0x1b6)]('checkpoint')||_0x5d6927+_0xe6df24(0x1e2)),_0x14f13e=await readCheckpoint(_0x1edaf1);if(_0x14f13e)return bind(_0x14f13e,_0x15816e,_0x15c0f8),requireValue(!_0x15816e[_0xe6df24(0x1b6)](_0xe6df24(0x193))||_0x15816e['str'](_0xe6df24(0x193))===_0x14f13e['clientOperationId'],'client-operation-id\x20differs\x20from\x20the\x20checkpoint\x20operation.'),recover(_0x14f13e,_0x1edaf1,_0x15816e);const _0x287216=await getDatasetDesignContext(_0x15816e[_0xe6df24(0x17b)]);requireValue(typeof _0x287216?.[_0xe6df24(0x1c4)]===_0xe6df24(0x1cc)&&_0x287216[_0xe6df24(0x1c4)],_0xe6df24(0x16f));const _0x3863d9=await validateDatasetDesign(_0x15816e['appCode'],_0x5c5353);requireValue(_0x3863d9?.['valid']===!![],_0xe6df24(0x1aa));const _0x573a3b=validateManifest(_0x3863d9['normalizedManifest']);requireValue(typeof _0x3863d9[_0xe6df24(0x1c6)]==='string'&&/^[a-f0-9]{64}$/[_0xe6df24(0x1dc)](_0x3863d9['normalizedHash']),_0xe6df24(0x1b9));const _0x464ac1=_0x15816e[_0xe6df24(0x1b6)](_0xe6df24(0x193))||_0xe6df24(0x1d2)+randomUUID();requireValue(/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/['test'](_0x464ac1),_0xe6df24(0x1d7));const _0x28c1b0={'kind':_0xe6df24(0x1b0),'schemaVersion':0x1,'appCode':_0x15816e[_0xe6df24(0x17b)],'apiDomain':domain(_0x15816e),'identityKey':_0x287216[_0xe6df24(0x1c4)],'inputHash':_0x15c0f8,'clientOperationId':_0x464ac1,'manifest':_0x573a3b,'expectedHash':_0x3863d9[_0xe6df24(0x1c6)],'state':_0xe6df24(0x1bc)};if(!await saveCheckpoint(_0x1edaf1,_0x28c1b0,!![])){const _0xf6e46a=await readCheckpoint(_0x1edaf1);return requireValue(_0xf6e46a,'Checkpoint\x20creation\x20could\x20not\x20be\x20reconciled.'),bind(_0xf6e46a,_0x15816e,_0x15c0f8),recover(_0xf6e46a,_0x1edaf1,_0x15816e);}_0x28c1b0[_0xe6df24(0x1b2)]='submitting',await saveCheckpoint(_0x1edaf1,_0x28c1b0);let _0x1f733c;try{_0x1f733c=await startDatasetDesign(_0x15816e[_0xe6df24(0x17b)],_0x573a3b,_0x28c1b0[_0xe6df24(0x17d)],_0x464ac1);}catch(_0x572c5c){const _0x5c7439=isPlatformTransportFailure(_0x572c5c);_0x28c1b0[_0xe6df24(0x1b2)]=_0x5c7439?'unknown':'rejected',await saveCheckpoint(_0x1edaf1,_0x28c1b0);if(!_0x5c7439)throw _0x572c5c;return unknown(_0x28c1b0,_0x1edaf1);}if(!isObject(_0x1f733c)||!(_0x1f733c[_0xe6df24(0x1a0)]||_0x1f733c['taskId'])||typeof _0x1f733c[_0xe6df24(0x1e7)]!==_0xe6df24(0x1cc))return _0x28c1b0[_0xe6df24(0x1b2)]=_0xe6df24(0x173),await saveCheckpoint(_0x1edaf1,_0x28c1b0),unknown(_0x28c1b0,_0x1edaf1);_0x28c1b0[_0xe6df24(0x1a0)]=_0x1f733c[_0xe6df24(0x1a0)]||_0x1f733c['taskId'],_0x28c1b0[_0xe6df24(0x1b2)]=_0x1f733c[_0xe6df24(0x1e7)],await saveCheckpoint(_0x1edaf1,_0x28c1b0);if(_0x1f733c[_0xe6df24(0x1e7)]===_0xe6df24(0x172))return{...await recover(_0x28c1b0,_0x1edaf1,_0x15816e),'clientOperationId':_0x464ac1,'reused':_0x1f733c[_0xe6df24(0x17a)]??![]};return{...await readStatus(_0x1f733c,_0x573a3b),'clientOperationId':_0x464ac1,'checkpoint':_0x1edaf1,'reused':_0x1f733c[_0xe6df24(0x17a)]??![],'query':query(_0x28c1b0,_0x1edaf1)};}export function designCommand(_0x2e3b0a){const _0x2db5f4=a342_0x531d59,_0x13a981='design-'+_0x2e3b0a,_0x278892=_0x2e3b0a===_0x2db5f4(0x1e0)?[flags[_0x2db5f4(0x1e3)],flags[_0x2db5f4(0x19c)]]:_0x2e3b0a===_0x2db5f4(0x1c2)?[flags[_0x2db5f4(0x1e3)],flags[_0x2db5f4(0x178)],flags[_0x2db5f4(0x1ce)]]:_0x2e3b0a===_0x2db5f4(0x1e7)?[flags[_0x2db5f4(0x187)],flags[_0x2db5f4(0x1ce)],flags[_0x2db5f4(0x178)]]:_0x2e3b0a[_0x2db5f4(0x1e5)](_0x2db5f4(0x1b4))?[flags[_0x2db5f4(0x191)]]:[];return{'service':'dataset','command':_0x13a981,'description':_0x2db5f4(0x1cd)+_0x2e3b0a,'risk':_0x2e3b0a===_0x2db5f4(0x1c2)||_0x2e3b0a===_0x2db5f4(0x186)?_0x2db5f4(0x1d0):_0x2db5f4(0x19d),'defaultOutputFormat':_0x2db5f4(0x18f),'strictFlags':!![],'structuredErrors':!![],'flags':[..._0x278892,APPCODE_FLAG_OPTIONAL],async 'validate'(_0xdcd089){const _0x5b0943=_0x2db5f4;if([_0x5b0943(0x1e0),_0x5b0943(0x1c2)][_0x5b0943(0x1b3)](_0x2e3b0a))required(_0xdcd089,_0x5b0943(0x1e3));if(_0x2e3b0a[_0x5b0943(0x1e5)](_0x5b0943(0x1b4)))required(_0xdcd089,_0x5b0943(0x191));if(_0x2e3b0a===_0x5b0943(0x1e7))requireValue([_0xdcd089[_0x5b0943(0x1b6)](_0x5b0943(0x182)),_0xdcd089[_0x5b0943(0x1b6)](_0x5b0943(0x193)),_0xdcd089[_0x5b0943(0x1b6)]('checkpoint')][_0x5b0943(0x1e1)](Boolean)[_0x5b0943(0x18c)]===0x1,_0x5b0943(0x1d5));},async 'dryRun'(_0x4082e3){const _0x5c768d=_0x2db5f4,_0x25bd3e=[_0x5c768d(0x1e0),_0x5c768d(0x1c2)][_0x5c768d(0x1b3)](_0x2e3b0a)?await readManifest(resolve(required(_0x4082e3,_0x5c768d(0x1e3)))):undefined;return{'method':[_0x5c768d(0x1e0),_0x5c768d(0x1c2),_0x5c768d(0x186)]['includes'](_0x2e3b0a)?'POST':_0x5c768d(0x1e6),'url':_0x5c768d(0x1de)+_0x2e3b0a,'body':_0x25bd3e?{'appCode':_0x4082e3[_0x5c768d(0x17b)],'manifest':_0x25bd3e}:undefined,'description':'Inspect\x20the\x20deterministic\x20request\x20without\x20submission\x20or\x20checkpoint\x20writes.'};},async 'execute'(_0xd85a01){const _0x10d2b6=_0x2db5f4;let _0x4cd645;if(_0x2e3b0a===_0x10d2b6(0x1c0))_0x4cd645=await getDatasetDesignContext(_0xd85a01['appCode']);else{if(_0x2e3b0a===_0x10d2b6(0x1e0)){_0x4cd645=await validateDatasetDesign(_0xd85a01[_0x10d2b6(0x17b)],await readManifest(resolve(required(_0xd85a01,'file'))));if(_0xd85a01[_0x10d2b6(0x1b6)](_0x10d2b6(0x19c))&&_0x4cd645?.[_0x10d2b6(0x17f)]===!![]){const {writeFile:_0x1eee9b,mkdir:_0x4581d0}=await import('node:fs/promises'),{dirname:_0x6ea8f6}=await import(_0x10d2b6(0x1b5)),_0x388910=resolve(_0xd85a01[_0x10d2b6(0x1b6)](_0x10d2b6(0x19c)));await _0x4581d0(_0x6ea8f6(_0x388910),{'recursive':!![]}),await _0x1eee9b(_0x388910,JSON[_0x10d2b6(0x1b7)](_0x4cd645,null,0x2)+'\x0a',{'mode':0x180});}}else{if(_0x2e3b0a===_0x10d2b6(0x1c2))_0x4cd645=await start(_0xd85a01);else{if(_0x2e3b0a==='status'){const _0x34a3cb=_0xd85a01[_0x10d2b6(0x1b6)]('checkpoint');if(_0x34a3cb){const _0x56def4=await readCheckpoint(resolve(_0x34a3cb));requireValue(_0x56def4,_0x10d2b6(0x17c)),_0x4cd645=await recover(_0x56def4,resolve(_0x34a3cb),_0xd85a01);}else _0x4cd645=statusData(await getDatasetDesignStatus(_0xd85a01[_0x10d2b6(0x17b)],{'operationId':_0xd85a01[_0x10d2b6(0x1b6)](_0x10d2b6(0x182))||undefined,'clientOperationId':_0xd85a01['str'](_0x10d2b6(0x193))||undefined}));}else{if(_0x2e3b0a==='sync-status')_0x4cd645=await getDatasetDesignSyncStatus(_0xd85a01[_0x10d2b6(0x17b)],required(_0xd85a01,_0x10d2b6(0x191)));else _0x4cd645=await retryDatasetDesignSync(_0xd85a01[_0x10d2b6(0x17b)],required(_0xd85a01,_0x10d2b6(0x191)));}}}}return{'ok':!![],'message':_0x4cd645[_0x10d2b6(0x1e7)]===_0x10d2b6(0x185)?_0x10d2b6(0x170):_0x4cd645[_0x10d2b6(0x1e7)]===_0x10d2b6(0x18b)?_0x10d2b6(0x1d3):'Dataset\x20design\x20'+_0x2e3b0a+_0x10d2b6(0x181),'data':{'operation':'dataset.'+_0x13a981,'appCode':_0xd85a01['appCode'],..._0x4cd645}};}};}
1
+ const a342_0x27ab4c=a342_0x4443;(function(_0x4b60b9,_0x2b47a3){const _0x1c6893=a342_0x4443,_0x4709fa=_0x4b60b9();while(!![]){try{const _0x37c6f3=parseInt(_0x1c6893(0xbf))/0x1*(parseInt(_0x1c6893(0xf7))/0x2)+-parseInt(_0x1c6893(0x130))/0x3*(parseInt(_0x1c6893(0xe9))/0x4)+parseInt(_0x1c6893(0x125))/0x5*(parseInt(_0x1c6893(0x11e))/0x6)+parseInt(_0x1c6893(0x132))/0x7+parseInt(_0x1c6893(0xbd))/0x8+-parseInt(_0x1c6893(0xf2))/0x9+parseInt(_0x1c6893(0xff))/0xa*(-parseInt(_0x1c6893(0xcc))/0xb);if(_0x37c6f3===_0x2b47a3)break;else _0x4709fa['push'](_0x4709fa['shift']());}catch(_0x3b9499){_0x4709fa['push'](_0x4709fa['shift']());}}}(a342_0x1f16,0xd0b64));import{randomUUID}from'node:crypto';import{resolve}from'node:path';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{getApiDomain}from'../../constant/domain.js';import{getDatasetDesignContext,validateDatasetDesign,startDatasetDesign,getDatasetDesignStatus,getDatasetDesignSyncStatus,retryDatasetDesignSync,getDatasetDetail,getPlatformHttpStatus,isPlatformTransportFailure}from'../../core/api-client.js';import{inputHash,isObject,readManifest,requireValue,validateManifest}from'./contract.js';function a342_0x1f16(){const _0x369746=['metrics','51mUEKWK','Save\x20the\x20server-normalized\x20design\x20JSON','5555599NVVJoc','query_original_operation','currentStep','push','identityKey','MANY_TO_ONE','.checkpoint.json','checkpoint','\x20response\x20received','apiDomain','password','toDatasetKey','status','dataset','dataset.','toString','filter','sync-status','11540368WnOSKi','write','596209apWYtZ','relations','rejected','username','Checkpoint\x20creation\x20could\x20not\x20be\x20reconciled.','operation-id','rabetbase','flagMissing','failedStage','expectedLocalKeys','Operation\x20submitted;\x20continue\x20querying\x20its\x20status.','expectedRelations','has','11BXNBvF','manifest','localKey','fromDatasetKey','client-operation-id\x20differs\x20from\x20the\x20checkpoint\x20operation.','get','node:path','progressRate','toDatasetCode','Dataset\x20design\x20','unknown_reconcile_failed','Agent-authored\x20JSON\x20dataset\x20manifest','dataset-design-','validate','datasets','inputHash','createdDatasets','sync','expectedHash','reused','search','Dataset\x20detail\x20does\x20not\x20contain\x20matching\x20DOV2\x20metadata.','PROCESSING','str','API\x20domain\x20must\x20not\x20contain\x20credentials,\x20query\x20or\x20fragment.','Checkpoint\x20target\x20or\x20design\x20changed.\x20Reconcile\x20the\x20original\x20operation;\x20use\x20a\x20new\x20design\x20file\x20for\x20an\x20intentional\x20new\x20operation.','client','cardinality','valid','29076oviNml','Server\x20context\x20lacks\x20an\x20authenticated\x20identity.','test','set','operation_failed','--format','Inspect\x20the\x20deterministic\x20request\x20without\x20submission\x20or\x20checkpoint\x20writes.','dataset-design-operation','lookup','3842181WaFnLi','prepared','Durable\x20operation\x20checkpoint\x20path','submission_unknown','FAILED','2iQGwDt','datasets_created','find','normalizedManifest','clientOperationId','design-status','values','--checkpoint','28041710aNUbEH','SUCCESS','name','string','replace','Checkpoint\x20belongs\x20to\x20another\x20authenticated\x20principal.','map','dataset_created','Server\x20returned\x20an\x20invalid\x20design\x20hash.','modelCode','errorMsg','file','result','--appcode','every','context','unresolvedRelations','toField','taskId','fromField','output','startsWith','Deterministic\x20dataset\x20design\x20','operation_pending','createdRelations','Saved\x20dataset\x20code','Server\x20response\x20does\x20not\x20contain\x20a\x20valid\x20operation\x20state.','sync-retry','length','hash','Server\x20rejected\x20the\x20design;\x20run\x20design-validate\x20and\x20repair\x20the\x20reported\x20fields.','30lrFXdk','start','some','normalizedHash','appCode','unknown','isArray','1377125HzfRRe','client-operation-id','includes','size','operationId','code','node:fs/promises','state','fields','stringify'];a342_0x1f16=function(){return _0x369746;};return a342_0x1f16();}import{readCheckpoint,saveCheckpoint}from'./checkpoint.js';const flag=(_0x2fa871,_0x56614c)=>({'name':_0x2fa871,'type':'string','description':_0x56614c}),flags={'file':flag(a342_0x27ab4c(0x10a),a342_0x27ab4c(0xd7)),'output':flag(a342_0x27ab4c(0x113),a342_0x27ab4c(0x131)),'checkpoint':flag(a342_0x27ab4c(0x139),a342_0x27ab4c(0xf4)),'client':flag('client-operation-id','Stable\x20recovery\x20ID\x20for\x20one\x20design\x20operation'),'operation':flag(a342_0x27ab4c(0xc4),'Server\x20operation\x20ID'),'code':flag(a342_0x27ab4c(0x12a),a342_0x27ab4c(0x118))};function domain(_0x4bae09){const _0x457c0c=a342_0x27ab4c,_0x133631=new URL(_0x4bae09[_0x457c0c(0x13b)]||getApiDomain());return requireValue(!_0x133631[_0x457c0c(0xc2)]&&!_0x133631[_0x457c0c(0x13c)]&&!_0x133631[_0x457c0c(0xe0)]&&!_0x133631[_0x457c0c(0x11c)],_0x457c0c(0xe4)),_0x133631[_0x457c0c(0xba)]()[_0x457c0c(0x103)](/\/+$/,'');}function required(_0x191f4e,_0x32a5d0){const _0xc5c08f=a342_0x27ab4c,_0x28e66a=_0x191f4e[_0xc5c08f(0xe3)](_0x32a5d0);if(!_0x28e66a)throw CliErrors[_0xc5c08f(0xc6)](_0x32a5d0);return _0x28e66a;}function bind(_0x45637c,_0x50094b,_0x2295e){const _0x519881=a342_0x27ab4c;requireValue(_0x45637c[_0x519881(0x122)]===_0x50094b[_0x519881(0x122)]&&_0x45637c[_0x519881(0x13b)]===domain(_0x50094b)&&(_0x2295e===undefined||_0x45637c[_0x519881(0xdb)]===_0x2295e),_0x519881(0xe5));}function query(_0x1e6e98,_0x453c4a){const _0x3dc8be=a342_0x27ab4c;return{'command':_0x3dc8be(0xfc),'argv':[_0x3dc8be(0xc5),_0x3dc8be(0x13f),_0x3dc8be(0xfc),_0x3dc8be(0x10c),_0x1e6e98['appCode'],_0x3dc8be(0xfe),_0x453c4a,_0x3dc8be(0xee),'compress']};}function unknown(_0x4d28e4,_0x123ea7){const _0x423bfa=a342_0x27ab4c;return{'status':_0x423bfa(0xf5),'clientOperationId':_0x4d28e4[_0x423bfa(0xfb)],'operationId':_0x4d28e4['operationId']??null,'checkpoint':_0x123ea7,'query':query(_0x4d28e4,_0x123ea7),'nextAction':_0x423bfa(0x133)};}function a342_0x4443(_0x32ff69,_0x5c2d3f){_0x32ff69=_0x32ff69-0xb9;const _0x1f169e=a342_0x1f16();let _0x444351=_0x1f169e[_0x32ff69];return _0x444351;}function matchesField(_0xc7a725,_0x302b10){const _0xd6b751=a342_0x27ab4c;return Object['entries'](_0x302b10)[_0xd6b751(0x10d)](([_0x44a455,_0x5d2cee])=>{const _0x1e13c2=_0xd6b751;if(_0x5d2cee==null)return!![];const _0x580ef0=_0xc7a725[_0x44a455];if(_0x44a455==='options'){if(!Array[_0x1e13c2(0x124)](_0x580ef0)||!Array[_0x1e13c2(0x124)](_0x5d2cee)||_0x580ef0[_0x1e13c2(0x120)](_0x2c107b=>!isObject(_0x2c107b)))return![];const _0x598f5c=_0xb31afe=>_0xb31afe[_0x1e13c2(0x105)](({label:_0x5dcec6,value:_0x319333})=>({'label':_0x5dcec6,'value':_0x319333}));return inputHash(_0x598f5c(_0x580ef0))===inputHash(_0x598f5c(_0x5d2cee));}return _0x580ef0!==undefined&&inputHash(_0x580ef0)===inputHash(_0x5d2cee);});}function reconcile(_0x298b58,_0x5d1eca){const _0x23a597=a342_0x27ab4c;if(!isObject(_0x298b58)||!Array[_0x23a597(0x124)](_0x298b58[_0x23a597(0xdc)])||!Array[_0x23a597(0x124)](_0x298b58['createdRelations']))return;const _0x19d24e=_0x298b58[_0x23a597(0xdc)],_0x3e1e8d=_0x5d1eca?.[_0x23a597(0xda)]['map'](_0x381fb2=>_0x381fb2['localKey'])??_0x298b58[_0x23a597(0xc8)];if(!Array['isArray'](_0x3e1e8d)||_0x3e1e8d[_0x23a597(0x11b)]!==_0x19d24e[_0x23a597(0x11b)]||new Set(_0x3e1e8d)['size']!==_0x3e1e8d['length'])return;const _0x3877c4=new Map();for(const _0xd11614 of _0x19d24e){if(!isObject(_0xd11614)||typeof _0xd11614[_0x23a597(0xce)]!=='string'||typeof _0xd11614[_0x23a597(0x12a)]!=='string'||!_0xd11614[_0x23a597(0x12a)]||_0x3877c4[_0x23a597(0xcb)](_0xd11614['localKey']))return;_0x3877c4[_0x23a597(0xec)](_0xd11614[_0x23a597(0xce)],_0xd11614['code']);if(_0x5d1eca){const _0x3b9d38=_0x5d1eca[_0x23a597(0xda)][_0x23a597(0xf9)](_0x1935ca=>_0x1935ca[_0x23a597(0xce)]===_0xd11614['localKey']);if(!_0x3b9d38||!Array[_0x23a597(0x124)](_0xd11614[_0x23a597(0x12d)]))return;if(_0xd11614[_0x23a597(0x12d)][_0x23a597(0x120)](_0x5b96b6=>!isObject(_0x5b96b6)))return;const _0x20cce0=new Map(_0xd11614[_0x23a597(0x12d)][_0x23a597(0x105)](_0x16e1cf=>[_0x16e1cf[_0x23a597(0x101)],_0x16e1cf]));if(_0x20cce0[_0x23a597(0x128)]!==_0xd11614[_0x23a597(0x12d)][_0x23a597(0x11b)]||_0xd11614['fieldCount']!==_0xd11614['fields'][_0x23a597(0x11b)])return;if(_0x3b9d38[_0x23a597(0x12d)][_0x23a597(0x120)](_0x22d95d=>!_0x20cce0[_0x23a597(0xcb)](_0x22d95d[_0x23a597(0x101)])||!matchesField(_0x20cce0[_0x23a597(0xd1)](_0x22d95d[_0x23a597(0x101)]),_0x22d95d)))return;const _0x176d16=new Set(_0x3b9d38[_0x23a597(0x12d)][_0x23a597(0x105)](_0x9e3b72=>_0x9e3b72[_0x23a597(0x101)]));_0x176d16['add']('id');if(_0xd11614[_0x23a597(0x12d)][_0x23a597(0x120)](_0x26f103=>!_0x176d16[_0x23a597(0xcb)](_0x26f103[_0x23a597(0x101)])))return;}}if(new Set(_0x3877c4[_0x23a597(0xfd)]())[_0x23a597(0x128)]!==_0x3877c4[_0x23a597(0x128)]||_0x3e1e8d[_0x23a597(0x120)](_0x4294d7=>!_0x3877c4[_0x23a597(0xcb)](_0x4294d7)))return;const _0x36daf4=_0x5d1eca?.[_0x23a597(0xc0)]??_0x298b58[_0x23a597(0xca)];if(!Array[_0x23a597(0x124)](_0x36daf4)||_0x36daf4[_0x23a597(0x11b)]!==_0x298b58['createdRelations'][_0x23a597(0x11b)])return;const _0x260deb=_0x684f6e=>JSON[_0x23a597(0x12e)]([_0x684f6e['fromDatasetKey'],_0x684f6e[_0x23a597(0x112)],_0x684f6e[_0x23a597(0xd4)]||_0x3877c4['get'](_0x684f6e['toDatasetKey']),_0x684f6e[_0x23a597(0x110)],_0x684f6e['relationType']||_0x23a597(0xf1),_0x684f6e[_0x23a597(0xe7)]||_0x23a597(0x137)]),_0x2712b7=new Set(_0x36daf4[_0x23a597(0x105)](_0x260deb)),_0x5dae04=new Set(_0x298b58[_0x23a597(0x117)]['map'](_0x260deb));if(_0x5dae04[_0x23a597(0x128)]!==_0x36daf4[_0x23a597(0x11b)]||_0x2712b7[_0x23a597(0x128)]!==_0x36daf4[_0x23a597(0x11b)]||[..._0x2712b7][_0x23a597(0x120)](_0x12fd10=>!_0x5dae04['has'](_0x12fd10)))return;for(const _0x104a05 of _0x298b58['createdRelations']){if(_0x104a05['fromDatasetCode']!==_0x3877c4[_0x23a597(0xd1)](_0x104a05[_0x23a597(0xcf)])||_0x104a05[_0x23a597(0x13d)]&&_0x104a05[_0x23a597(0xd4)]!==_0x3877c4['get'](_0x104a05[_0x23a597(0x13d)]))return;}return{'createdDatasets':_0x19d24e,'createdRelations':_0x298b58[_0x23a597(0x117)],'unresolvedRelations':_0x298b58[_0x23a597(0x10f)]??[]};}export function statusData(_0x4674e8,_0x5b20f7){const _0x21b8b1=a342_0x27ab4c;requireValue(isObject(_0x4674e8)&&typeof _0x4674e8[_0x21b8b1(0x13e)]===_0x21b8b1(0x102),_0x21b8b1(0x119));const _0x52e5e1={'jobStatus':_0x4674e8['status'],'operationId':_0x4674e8[_0x21b8b1(0x129)]??_0x4674e8[_0x21b8b1(0x111)]??null,'taskId':_0x4674e8[_0x21b8b1(0x111)]??_0x4674e8['operationId']??null,'clientOperationId':_0x4674e8[_0x21b8b1(0xfb)]??null,'progressRate':_0x4674e8[_0x21b8b1(0xd3)]??null,'currentStep':_0x4674e8[_0x21b8b1(0x134)]??null,'failedStage':_0x4674e8[_0x21b8b1(0xc7)]??null,'sync':_0x4674e8['sync']??null,'errorMsg':_0x4674e8[_0x21b8b1(0x109)]??null,'metrics':_0x4674e8[_0x21b8b1(0x12f)]??null},_0x361bb9=!_0x5b20f7&&_0x4674e8[_0x21b8b1(0x13e)]===_0x21b8b1(0x100)&&isObject(_0x4674e8[_0x21b8b1(0x10b)]?.['dataset'])?_0x4674e8[_0x21b8b1(0x10b)][_0x21b8b1(0x13f)]:undefined;if(_0x361bb9&&typeof _0x361bb9[_0x21b8b1(0x12a)]===_0x21b8b1(0x102)&&_0x361bb9['code']&&_0x361bb9['id']!=null)return{..._0x52e5e1,'status':_0x21b8b1(0x106),'createdDataset':_0x361bb9};const _0x2d5bc2=_0x4674e8['status']===_0x21b8b1(0x100)?reconcile(_0x4674e8[_0x21b8b1(0x10b)],_0x5b20f7):undefined;return{..._0x52e5e1,'status':_0x4674e8[_0x21b8b1(0x13e)]==='SUCCESS'?_0x2d5bc2?_0x21b8b1(0xf8):_0x21b8b1(0xd6):_0x4674e8[_0x21b8b1(0x13e)]===_0x21b8b1(0xf6)?_0x21b8b1(0xed):['PENDING',_0x21b8b1(0xe2)][_0x21b8b1(0x127)](_0x4674e8[_0x21b8b1(0x13e)])?_0x21b8b1(0x116):_0x21b8b1(0xd6),..._0x2d5bc2};}async function readStatus(_0xb26094,_0x4676a3){const _0x2410c9=a342_0x27ab4c,_0x5cbb0f=statusData(_0xb26094,_0x4676a3);if(_0xb26094[_0x2410c9(0x13e)]!==_0x2410c9(0x100)||!reconcile(_0xb26094['result']))return _0x5cbb0f;const _0x5e962f=[];for(const _0x446722 of _0xb26094[_0x2410c9(0x10b)][_0x2410c9(0xdc)]){const _0x3ce03d=await getDatasetDetail(_0x446722[_0x2410c9(0x12a)]);requireValue(isObject(_0x3ce03d)&&(_0x3ce03d[_0x2410c9(0x108)]||_0x3ce03d[_0x2410c9(0x12a)])===_0x446722[_0x2410c9(0x12a)]&&Array[_0x2410c9(0x124)](_0x3ce03d[_0x2410c9(0x12d)]),_0x2410c9(0xe1));const _0x473a43=_0x3ce03d[_0x2410c9(0x12d)][_0x2410c9(0xbb)](_0x4fda42=>_0x4fda42['deleted']!==!![]);_0x5e962f[_0x2410c9(0x135)]({..._0x446722,'fields':_0x473a43,'fieldCount':_0x473a43[_0x2410c9(0x11b)]});}return statusData({..._0xb26094,'result':{..._0xb26094[_0x2410c9(0x10b)],'createdDatasets':_0x5e962f}},_0x4676a3);}async function recover(_0x14f700,_0x36620d,_0xe34ee6){const _0x30297d=a342_0x27ab4c;bind(_0x14f700,_0xe34ee6);const _0x2365ed=await getDatasetDesignContext(_0xe34ee6[_0x30297d(0x122)]);requireValue(_0x2365ed?.[_0x30297d(0x136)]===_0x14f700[_0x30297d(0x136)],_0x30297d(0x104));let _0x4007d7;try{_0x4007d7=await getDatasetDesignStatus(_0xe34ee6[_0x30297d(0x122)],{'clientOperationId':_0x14f700[_0x30297d(0xfb)]});}catch(_0x2a8806){const _0x24b021=getPlatformHttpStatus(_0x2a8806);if(isPlatformTransportFailure(_0x2a8806)||_0x24b021===0x194)return unknown(_0x14f700,_0x36620d);throw _0x2a8806;}const _0x47bf5d=await readStatus(_0x4007d7,_0x14f700[_0x30297d(0xcd)]);return _0x14f700['state']=_0x47bf5d[_0x30297d(0x13e)],_0x14f700['operationId']=_0x4007d7[_0x30297d(0x129)]||_0x14f700['operationId'],await saveCheckpoint(_0x36620d,_0x14f700),{..._0x47bf5d,'checkpoint':_0x36620d,'query':query(_0x14f700,_0x36620d)};}async function start(_0x2da70e){const _0x48ed52=a342_0x27ab4c,_0x2b7f76=resolve(required(_0x2da70e,'file')),_0x42f745=await readManifest(_0x2b7f76),_0x49ba9b=inputHash(_0x42f745),_0xd5939d=resolve(_0x2da70e[_0x48ed52(0xe3)](_0x48ed52(0x139))||_0x2b7f76+_0x48ed52(0x138)),_0x5fa586=await readCheckpoint(_0xd5939d);if(_0x5fa586)return bind(_0x5fa586,_0x2da70e,_0x49ba9b),requireValue(!_0x2da70e['str'](_0x48ed52(0x126))||_0x2da70e[_0x48ed52(0xe3)](_0x48ed52(0x126))===_0x5fa586[_0x48ed52(0xfb)],_0x48ed52(0xd0)),recover(_0x5fa586,_0xd5939d,_0x2da70e);const _0x2bcdc8=await getDatasetDesignContext(_0x2da70e[_0x48ed52(0x122)]);requireValue(typeof _0x2bcdc8?.[_0x48ed52(0x136)]===_0x48ed52(0x102)&&_0x2bcdc8['identityKey'],_0x48ed52(0xea));const _0xdfeea5=await validateDatasetDesign(_0x2da70e[_0x48ed52(0x122)],_0x42f745);requireValue(_0xdfeea5?.[_0x48ed52(0xe8)]===!![],_0x48ed52(0x11d));const _0x142775=validateManifest(_0xdfeea5[_0x48ed52(0xfa)]);requireValue(typeof _0xdfeea5['normalizedHash']===_0x48ed52(0x102)&&/^[a-f0-9]{64}$/[_0x48ed52(0xeb)](_0xdfeea5[_0x48ed52(0x121)]),_0x48ed52(0x107));const _0x4fa3a5=_0x2da70e['str'](_0x48ed52(0x126))||_0x48ed52(0xd8)+randomUUID();requireValue(/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/[_0x48ed52(0xeb)](_0x4fa3a5),'Invalid\x20client-operation-id.');const _0x5daef7={'kind':_0x48ed52(0xf0),'schemaVersion':0x1,'appCode':_0x2da70e[_0x48ed52(0x122)],'apiDomain':domain(_0x2da70e),'identityKey':_0x2bcdc8[_0x48ed52(0x136)],'inputHash':_0x49ba9b,'clientOperationId':_0x4fa3a5,'manifest':_0x142775,'expectedHash':_0xdfeea5[_0x48ed52(0x121)],'state':_0x48ed52(0xf3)};if(!await saveCheckpoint(_0xd5939d,_0x5daef7,!![])){const _0x238146=await readCheckpoint(_0xd5939d);return requireValue(_0x238146,_0x48ed52(0xc3)),bind(_0x238146,_0x2da70e,_0x49ba9b),recover(_0x238146,_0xd5939d,_0x2da70e);}_0x5daef7[_0x48ed52(0x12c)]='submitting',await saveCheckpoint(_0xd5939d,_0x5daef7);let _0x2ae6fe;try{_0x2ae6fe=await startDatasetDesign(_0x2da70e[_0x48ed52(0x122)],_0x142775,_0x5daef7[_0x48ed52(0xde)],_0x4fa3a5);}catch(_0x360cd8){const _0x3878a0=isPlatformTransportFailure(_0x360cd8);_0x5daef7[_0x48ed52(0x12c)]=_0x3878a0?_0x48ed52(0x123):_0x48ed52(0xc1),await saveCheckpoint(_0xd5939d,_0x5daef7);if(!_0x3878a0)throw _0x360cd8;return unknown(_0x5daef7,_0xd5939d);}if(!isObject(_0x2ae6fe)||!(_0x2ae6fe[_0x48ed52(0x129)]||_0x2ae6fe[_0x48ed52(0x111)])||typeof _0x2ae6fe[_0x48ed52(0x13e)]!==_0x48ed52(0x102))return _0x5daef7[_0x48ed52(0x12c)]=_0x48ed52(0x123),await saveCheckpoint(_0xd5939d,_0x5daef7),unknown(_0x5daef7,_0xd5939d);_0x5daef7['operationId']=_0x2ae6fe[_0x48ed52(0x129)]||_0x2ae6fe[_0x48ed52(0x111)],_0x5daef7[_0x48ed52(0x12c)]=_0x2ae6fe[_0x48ed52(0x13e)],await saveCheckpoint(_0xd5939d,_0x5daef7);if(_0x2ae6fe[_0x48ed52(0x13e)]===_0x48ed52(0x100))return{...await recover(_0x5daef7,_0xd5939d,_0x2da70e),'clientOperationId':_0x4fa3a5,'reused':_0x2ae6fe['reused']??![]};return{...await readStatus(_0x2ae6fe,_0x142775),'clientOperationId':_0x4fa3a5,'checkpoint':_0xd5939d,'reused':_0x2ae6fe[_0x48ed52(0xdf)]??![],'query':query(_0x5daef7,_0xd5939d)};}export function designCommand(_0x529b16){const _0x4d8a08=a342_0x27ab4c,_0x28553f='design-'+_0x529b16,_0x2e74f4=_0x529b16===_0x4d8a08(0xd9)?[flags[_0x4d8a08(0x10a)],flags['output']]:_0x529b16==='start'?[flags['file'],flags[_0x4d8a08(0x139)],flags[_0x4d8a08(0xe6)]]:_0x529b16===_0x4d8a08(0x13e)?[flags['operation'],flags[_0x4d8a08(0xe6)],flags[_0x4d8a08(0x139)]]:_0x529b16[_0x4d8a08(0x114)](_0x4d8a08(0xdd))?[flags['code']]:[];return{'service':_0x4d8a08(0x13f),'command':_0x28553f,'description':_0x4d8a08(0x115)+_0x529b16,'risk':_0x529b16===_0x4d8a08(0x11f)||_0x529b16===_0x4d8a08(0x11a)?_0x4d8a08(0xbe):'read','defaultOutputFormat':'compress','strictFlags':!![],'structuredErrors':!![],'flags':[..._0x2e74f4,APPCODE_FLAG_OPTIONAL],async 'validate'(_0xac6420){const _0x172480=_0x4d8a08;if([_0x172480(0xd9),_0x172480(0x11f)][_0x172480(0x127)](_0x529b16))required(_0xac6420,_0x172480(0x10a));if(_0x529b16[_0x172480(0x114)](_0x172480(0xdd)))required(_0xac6420,_0x172480(0x12a));if(_0x529b16===_0x172480(0x13e))requireValue([_0xac6420['str'](_0x172480(0xc4)),_0xac6420['str']('client-operation-id'),_0xac6420[_0x172480(0xe3)]('checkpoint')][_0x172480(0xbb)](Boolean)[_0x172480(0x11b)]===0x1,'Provide\x20exactly\x20one\x20operation-id,\x20client-operation-id\x20or\x20checkpoint.');},async 'dryRun'(_0x4ed44a){const _0x5e2fe9=_0x4d8a08,_0x5b742d=['validate',_0x5e2fe9(0x11f)][_0x5e2fe9(0x127)](_0x529b16)?await readManifest(resolve(required(_0x4ed44a,_0x5e2fe9(0x10a)))):undefined;return{'method':[_0x5e2fe9(0xd9),_0x5e2fe9(0x11f),'sync-retry']['includes'](_0x529b16)?'POST':'GET','url':'/smartapi/dataset/design/'+_0x529b16,'body':_0x5b742d?{'appCode':_0x4ed44a['appCode'],'manifest':_0x5b742d}:undefined,'description':_0x5e2fe9(0xef)};},async 'execute'(_0x1c22b4){const _0x5ebea4=_0x4d8a08;let _0x19f93b;if(_0x529b16===_0x5ebea4(0x10e))_0x19f93b=await getDatasetDesignContext(_0x1c22b4[_0x5ebea4(0x122)]);else{if(_0x529b16==='validate'){_0x19f93b=await validateDatasetDesign(_0x1c22b4[_0x5ebea4(0x122)],await readManifest(resolve(required(_0x1c22b4,_0x5ebea4(0x10a)))));if(_0x1c22b4[_0x5ebea4(0xe3)](_0x5ebea4(0x113))&&_0x19f93b?.['valid']===!![]){const {writeFile:_0xd28aac,mkdir:_0x4f0571}=await import(_0x5ebea4(0x12b)),{dirname:_0x1539b0}=await import(_0x5ebea4(0xd2)),_0x46933c=resolve(_0x1c22b4[_0x5ebea4(0xe3)](_0x5ebea4(0x113)));await _0x4f0571(_0x1539b0(_0x46933c),{'recursive':!![]}),await _0xd28aac(_0x46933c,JSON[_0x5ebea4(0x12e)](_0x19f93b,null,0x2)+'\x0a',{'mode':0x180});}}else{if(_0x529b16==='start')_0x19f93b=await start(_0x1c22b4);else{if(_0x529b16==='status'){const _0xb55b63=_0x1c22b4[_0x5ebea4(0xe3)]('checkpoint');if(_0xb55b63){const _0x3f2c86=await readCheckpoint(resolve(_0xb55b63));requireValue(_0x3f2c86,'Checkpoint\x20not\x20found.'),_0x19f93b=await recover(_0x3f2c86,resolve(_0xb55b63),_0x1c22b4);}else _0x19f93b=statusData(await getDatasetDesignStatus(_0x1c22b4[_0x5ebea4(0x122)],{'operationId':_0x1c22b4[_0x5ebea4(0xe3)](_0x5ebea4(0xc4))||undefined,'clientOperationId':_0x1c22b4[_0x5ebea4(0xe3)](_0x5ebea4(0x126))||undefined}));}else{if(_0x529b16===_0x5ebea4(0xbc))_0x19f93b=await getDatasetDesignSyncStatus(_0x1c22b4[_0x5ebea4(0x122)],required(_0x1c22b4,_0x5ebea4(0x12a)));else _0x19f93b=await retryDatasetDesignSync(_0x1c22b4[_0x5ebea4(0x122)],required(_0x1c22b4,'code'));}}}}return{'ok':!![],'message':_0x19f93b[_0x5ebea4(0x13e)]==='submission_unknown'?'Submission\x20outcome\x20is\x20unknown;\x20query\x20the\x20original\x20operation.':_0x19f93b['status']===_0x5ebea4(0x116)?_0x5ebea4(0xc9):_0x5ebea4(0xd5)+_0x529b16+_0x5ebea4(0x13a),'data':{'operation':_0x5ebea4(0xb9)+_0x28553f,'appCode':_0x1c22b4[_0x5ebea4(0x122)],..._0x19f93b}};}};}
@@ -1 +1 @@
1
- function a343_0x27bc(_0x478beb,_0x3a1990){_0x478beb=_0x478beb-0xdf;const _0x26f178=a343_0x26f1();let _0x27bc3c=_0x26f178[_0x478beb];return _0x27bc3c;}const a343_0x27513a=a343_0x27bc;(function(_0x238cc1,_0x59cfdf){const _0x3cdeda=a343_0x27bc,_0x1a7251=_0x238cc1();while(!![]){try{const _0xd2446=parseInt(_0x3cdeda(0xfe))/0x1+-parseInt(_0x3cdeda(0xe7))/0x2*(-parseInt(_0x3cdeda(0xff))/0x3)+parseInt(_0x3cdeda(0xee))/0x4+-parseInt(_0x3cdeda(0x163))/0x5*(-parseInt(_0x3cdeda(0x15c))/0x6)+parseInt(_0x3cdeda(0xe9))/0x7*(-parseInt(_0x3cdeda(0xf6))/0x8)+-parseInt(_0x3cdeda(0xe8))/0x9+-parseInt(_0x3cdeda(0xf9))/0xa*(-parseInt(_0x3cdeda(0x124))/0xb);if(_0xd2446===_0x59cfdf)break;else _0x1a7251['push'](_0x1a7251['shift']());}catch(_0x3e86b6){_0x1a7251['push'](_0x1a7251['shift']());}}}(a343_0x26f1,0x34037));import{createHash}from'node:crypto';import{readFile,lstat}from'node:fs/promises';import{CliErrors}from'../../errors.js';function a343_0x26f1(){const _0x5452f6=['string','.relationType\x20must\x20be\x20lookup.','1110WOtOQL','.dataset.datasetName','datasets','.name\x20is\x20invalid\x20or\x20duplicated.','NUMERIC','semanticName','toDatasetKey','9655lImGwQ','\x20target\x20field\x20does\x20not\x20exist.','\x20must\x20be\x20a\x20boolean.','boolean','isTimeDimension','\x20requires\x20exactly\x20one\x20target.','get','displayFormat','options','datasetName','.options\x20must\x20be\x20an\x20array.','reason','datasets[','required','DATETIME','confidence','tableComment','DECIMAL','unresolvedRelations','length','parse','chartRole','94PMRKAR','3809493yxFOvM','14HXeXCc','fromEntries','fromField','schemaVersion','datasets\x20must\x20contain\x201..20\x20items.','19448nVXeaT','.toField','\x20requires\x20options\x20or\x20an\x20explicit\x20relation.','TINYINT','USER','.options\x20contains\x20an\x20invalid\x20item.','UPLOAD','VARCHAR','502184yUBNJD','readonly','.supportedAggregation\x20must\x20contain\x20strings.','125780jUlIYo','TIMESTAMP','manifest','hex','has','62778DKaeaH','7059wMDSfl','dataset-design','autoIncrement','.cardinality\x20is\x20unsupported.','SMALLINT','validation','Design\x20file\x20must\x20be\x20a\x20regular\x20JSON\x20file\x20no\x20larger\x20than\x202\x20MB.','DATE','.options','supportedAggregation','.localKey\x20is\x20invalid\x20or\x20duplicated.','dbTypeLen','cardinality','sha256','every','.options\x20is\x20invalid\x20or\x20duplicated.','entries','\x20source\x20does\x20not\x20exist.','keys','digest','FLOAT','NUMBER','.reason','sort','relations','isFinite','INT','.fields[','displayName','pkField','MULTI_SELECT','\x20duplicates\x20a\x20source\x20field.','fields','SELECT','Design\x20file\x20contains\x20invalid\x20JSON.','name','Manifest\x20must\x20be\x20an\x20object.','198fFNpcK','.toDatasetCode','label','DOUBLE','\x20must\x20be\x20a\x20non-empty\x20string.','BOOLEAN','test','\x20must\x20contain\x20at\x20most\x20200\x20items.','disabled','localKey','BIGINT','doVersion','.dbType\x20is\x20required\x20and\x20must\x20be\x20a\x20supported\x20storage\x20type.','relationType','.dataset','Unsupported\x20dataset\x20manifest\x20version.','visible','toDatasetCode','businessGroup','\x20must\x20be\x20an\x20object.','map','add','lookup','.displayName','some','toFieldLabel','MANY_TO_ONE','unresolvedRelations.reason','normalizedManifest','.doType\x20is\x20unsupported.','isFile','CHAR','Invalid\x20unresolved\x20relation.','number','INTEGER','fromDatasetKey','description','trim','dataset','dbType','size','value','ONE_TO_ONE','isArray','includes','defaultAggregation','relations[','update','set','stringify','TEXT','.dbTypeLen\x20must\x20be\x20an\x20integer\x20in\x201..65535.','.dataset.','doType'];a343_0x26f1=function(){return _0x5452f6;};return a343_0x26f1();}export const isObject=_0xd0b37d=>_0xd0b37d!==null&&typeof _0xd0b37d==='object'&&!Array[a343_0x27513a(0x14f)](_0xd0b37d);const types=new Set(['TEXT',a343_0x27513a(0x114),a343_0x27513a(0xdf),'BOOLEAN',a343_0x27513a(0x120),a343_0x27513a(0x11d),'DATE_RANGE',a343_0x27513a(0xf2),'ADDRESS',a343_0x27513a(0xf4)]),dbTypes=new Set([a343_0x27513a(0xf5),a343_0x27513a(0x143),a343_0x27513a(0x156),'LONGTEXT',a343_0x27513a(0xf1),a343_0x27513a(0x103),a343_0x27513a(0x119),a343_0x27513a(0x146),a343_0x27513a(0x12e),a343_0x27513a(0x113),a343_0x27513a(0x127),a343_0x27513a(0xe2),a343_0x27513a(0x160),a343_0x27513a(0x106),a343_0x27513a(0xdf),a343_0x27513a(0xfa),a343_0x27513a(0x129),'JSON']),identifier=/^[a-z][a-z0-9_]*$/;export function requireValue(_0x16620e,_0x3fc0dc){const _0x1e8cc7=a343_0x27513a;if(!_0x16620e)throw CliErrors[_0x1e8cc7(0x104)](_0x3fc0dc);}function keys(_0x555a17,_0x4f7e12,_0x21822c){const _0x35e89f=a343_0x27513a;for(const _0x6a88f1 of Object[_0x35e89f(0x111)](_0x555a17))requireValue(_0x4f7e12[_0x35e89f(0x150)](_0x6a88f1),_0x21822c+'.'+_0x6a88f1+'\x20is\x20not\x20supported.');}function text(_0xa2cf10,_0x32ee76){const _0x50ae90=a343_0x27513a;requireValue(typeof _0xa2cf10==='string'&&_0xa2cf10[_0x50ae90(0x149)]()[_0x50ae90(0xe4)]>0x0,_0x32ee76+_0x50ae90(0x128));}export function validateManifest(_0xc569e3){const _0x5465aa=a343_0x27513a;requireValue(isObject(_0xc569e3),_0x5465aa(0x123)),keys(_0xc569e3,['kind',_0x5465aa(0xec),_0x5465aa(0x12f),_0x5465aa(0x15e),_0x5465aa(0x117),_0x5465aa(0xe3)],_0x5465aa(0xfb)),requireValue(_0xc569e3['kind']===_0x5465aa(0x100)&&_0xc569e3['schemaVersion']===0x1&&_0xc569e3[_0x5465aa(0x12f)]==='v2',_0x5465aa(0x133)),requireValue(Array[_0x5465aa(0x14f)](_0xc569e3[_0x5465aa(0x15e)])&&_0xc569e3[_0x5465aa(0x15e)]['length']>=0x1&&_0xc569e3['datasets'][_0x5465aa(0xe4)]<=0x14,_0x5465aa(0xed));const _0x2ad1ba=new Map();for(const [_0x8f7536,_0x181102]of _0xc569e3[_0x5465aa(0x15e)]['entries']()){const _0x20f4f7=_0x5465aa(0x16f)+_0x8f7536+']';requireValue(isObject(_0x181102),_0x20f4f7+_0x5465aa(0x137)),keys(_0x181102,[_0x5465aa(0x12d),_0x5465aa(0x14a),_0x5465aa(0x11f)],_0x20f4f7),requireValue(typeof _0x181102[_0x5465aa(0x12d)]===_0x5465aa(0x15a)&&/^[a-z][a-z0-9_]{0,63}$/[_0x5465aa(0x12a)](_0x181102[_0x5465aa(0x12d)])&&!_0x2ad1ba[_0x5465aa(0xfd)](_0x181102[_0x5465aa(0x12d)]),_0x20f4f7+_0x5465aa(0x109)),requireValue(isObject(_0x181102['dataset']),_0x20f4f7+'.dataset\x20is\x20required.'),keys(_0x181102['dataset'],['datasetName','tableName',_0x5465aa(0xe1),_0x5465aa(0x136),'labelField'],_0x20f4f7+_0x5465aa(0x132)),text(_0x181102[_0x5465aa(0x14a)][_0x5465aa(0x16c)],_0x20f4f7+_0x5465aa(0x15d));for(const [_0x4915d9,_0x3a689f]of Object[_0x5465aa(0x10f)](_0x181102[_0x5465aa(0x14a)]))requireValue(_0x3a689f==null||typeof _0x3a689f==='string',_0x20f4f7+_0x5465aa(0x158)+_0x4915d9+'\x20must\x20be\x20a\x20string.');requireValue(Array['isArray'](_0x181102[_0x5465aa(0x11f)])&&_0x181102[_0x5465aa(0x11f)][_0x5465aa(0xe4)]>0x0&&(_0xc569e3[_0x5465aa(0x15e)][_0x5465aa(0xe4)]===0x1||_0x181102[_0x5465aa(0x11f)]['length']<=0xc8),_0x20f4f7+'.fields\x20is\x20empty\x20or\x20exceeds\x20the\x20batch\x20limit.');const _0xd03dc0=new Set();_0x2ad1ba[_0x5465aa(0x154)](_0x181102['localKey'],_0xd03dc0);for(const [_0x79a61b,_0x22c43d]of _0x181102[_0x5465aa(0x11f)][_0x5465aa(0x10f)]()){const _0x3dad42=_0x20f4f7+_0x5465aa(0x11a)+_0x79a61b+']';requireValue(isObject(_0x22c43d),_0x3dad42+_0x5465aa(0x137)),keys(_0x22c43d,[_0x5465aa(0x122),_0x5465aa(0x11b),_0x5465aa(0x159),_0x5465aa(0x14b),_0x5465aa(0x10a),_0x5465aa(0x148),_0x5465aa(0x170),_0x5465aa(0x134),_0x5465aa(0x12c),_0x5465aa(0xf7),'pkField',_0x5465aa(0x101),'options',_0x5465aa(0x161),_0x5465aa(0xe6),_0x5465aa(0x151),'supportedAggregation',_0x5465aa(0x167),_0x5465aa(0x16a)],_0x3dad42),requireValue(typeof _0x22c43d['name']===_0x5465aa(0x15a)&&identifier[_0x5465aa(0x12a)](_0x22c43d[_0x5465aa(0x122)])&&!_0xd03dc0[_0x5465aa(0xfd)](_0x22c43d['name']),_0x3dad42+_0x5465aa(0x15f)),_0xd03dc0[_0x5465aa(0x139)](_0x22c43d[_0x5465aa(0x122)]),text(_0x22c43d['displayName'],_0x3dad42+_0x5465aa(0x13b)),requireValue(types[_0x5465aa(0xfd)](_0x22c43d[_0x5465aa(0x159)]),_0x3dad42+_0x5465aa(0x141)),requireValue(dbTypes[_0x5465aa(0xfd)](_0x22c43d['dbType']),_0x3dad42+_0x5465aa(0x130));for(const _0x5de265 of[_0x5465aa(0x14b),'description',_0x5465aa(0x161),_0x5465aa(0xe6),'defaultAggregation',_0x5465aa(0x16a)]){requireValue(_0x22c43d[_0x5de265]==null||typeof _0x22c43d[_0x5de265]==='string',_0x3dad42+'.'+_0x5de265+'\x20must\x20be\x20a\x20string.');}for(const _0x497335 of[_0x5465aa(0x170),'visible','disabled',_0x5465aa(0xf7),_0x5465aa(0x11c),_0x5465aa(0x101),_0x5465aa(0x167)]){requireValue(_0x22c43d[_0x497335]==null||typeof _0x22c43d[_0x497335]===_0x5465aa(0x166),_0x3dad42+'.'+_0x497335+_0x5465aa(0x165));}requireValue(_0x22c43d['dbTypeLen']==null||Number['isSafeInteger'](_0x22c43d[_0x5465aa(0x10a)])&&_0x22c43d['dbTypeLen']>0x0&&_0x22c43d[_0x5465aa(0x10a)]<=0xffff,_0x3dad42+_0x5465aa(0x157)),requireValue(_0x22c43d[_0x5465aa(0x108)]==null||Array[_0x5465aa(0x14f)](_0x22c43d[_0x5465aa(0x108)])&&_0x22c43d[_0x5465aa(0x108)][_0x5465aa(0x10d)](_0x51bd28=>typeof _0x51bd28===_0x5465aa(0x15a)),_0x3dad42+_0x5465aa(0xf8));if(_0x22c43d[_0x5465aa(0x16b)]!=null){requireValue(Array[_0x5465aa(0x14f)](_0x22c43d['options']),_0x3dad42+_0x5465aa(0x16d));const _0x457a17=new Set(),_0x3c5d94=new Set();for(const _0x2d1f36 of _0x22c43d[_0x5465aa(0x16b)]){requireValue(isObject(_0x2d1f36),_0x3dad42+_0x5465aa(0xf3)),keys(_0x2d1f36,['label',_0x5465aa(0x14d)],_0x3dad42+_0x5465aa(0x107)),text(_0x2d1f36[_0x5465aa(0x126)],_0x3dad42+'.options.label'),requireValue(typeof _0x2d1f36['value']===_0x5465aa(0x15a)&&identifier['test'](_0x2d1f36[_0x5465aa(0x14d)])&&!_0x3c5d94[_0x5465aa(0xfd)](_0x2d1f36[_0x5465aa(0x14d)])&&!_0x457a17[_0x5465aa(0xfd)](_0x2d1f36[_0x5465aa(0x126)]),_0x3dad42+_0x5465aa(0x10e)),_0x457a17[_0x5465aa(0x139)](_0x2d1f36[_0x5465aa(0x126)]),_0x3c5d94[_0x5465aa(0x139)](_0x2d1f36['value']);}}if([_0x5465aa(0x120),_0x5465aa(0x11d)]['includes'](_0x22c43d[_0x5465aa(0x159)])){const _0x2d191=Array['isArray'](_0xc569e3[_0x5465aa(0x117)])&&_0xc569e3[_0x5465aa(0x117)][_0x5465aa(0x13c)](_0x16adaa=>_0x16adaa?.['fromDatasetKey']===_0x181102[_0x5465aa(0x12d)]&&_0x16adaa?.[_0x5465aa(0xeb)]===_0x22c43d[_0x5465aa(0x122)]);requireValue(_0x2d191||Array['isArray'](_0x22c43d['options'])&&_0x22c43d[_0x5465aa(0x16b)][_0x5465aa(0xe4)]>0x0,_0x3dad42+_0x5465aa(0xf0));}}_0xd03dc0[_0x5465aa(0x139)]('id');}for(const _0x767058 of[_0x5465aa(0x117),_0x5465aa(0xe3)])requireValue(_0xc569e3[_0x767058]==null||Array[_0x5465aa(0x14f)](_0xc569e3[_0x767058])&&_0xc569e3[_0x767058][_0x5465aa(0xe4)]<=0xc8,_0x767058+_0x5465aa(0x12b));const _0xb9ba51=new Set();for(const [_0x155567,_0xd12b6a]of(_0xc569e3[_0x5465aa(0x117)]??[])[_0x5465aa(0x10f)]()){const _0x46c0fe=_0x5465aa(0x152)+_0x155567+']';requireValue(isObject(_0xd12b6a),_0x46c0fe+_0x5465aa(0x137)),keys(_0xd12b6a,[_0x5465aa(0x147),_0x5465aa(0xeb),'toDatasetKey',_0x5465aa(0x135),'toField',_0x5465aa(0x13d),_0x5465aa(0x131),_0x5465aa(0x10b),'reason',_0x5465aa(0xe0)],_0x46c0fe),requireValue(_0x2ad1ba[_0x5465aa(0x169)](_0xd12b6a[_0x5465aa(0x147)])?.[_0x5465aa(0xfd)](_0xd12b6a[_0x5465aa(0xeb)]),_0x46c0fe+_0x5465aa(0x110)),requireValue(Boolean(_0xd12b6a[_0x5465aa(0x162)])!==Boolean(_0xd12b6a[_0x5465aa(0x135)]),_0x46c0fe+_0x5465aa(0x168));if(_0xd12b6a[_0x5465aa(0x162)])requireValue(_0x2ad1ba['get'](_0xd12b6a[_0x5465aa(0x162)])?.[_0x5465aa(0xfd)](_0xd12b6a['toField']),_0x46c0fe+_0x5465aa(0x164));else text(_0xd12b6a[_0x5465aa(0x135)],_0x46c0fe+_0x5465aa(0x125)),text(_0xd12b6a['toField'],_0x46c0fe+_0x5465aa(0xef));requireValue(_0xd12b6a['relationType']==null||_0xd12b6a['relationType']===_0x5465aa(0x13a),_0x46c0fe+_0x5465aa(0x15b)),requireValue(_0xd12b6a[_0x5465aa(0x10b)]==null||[_0x5465aa(0x13e),_0x5465aa(0x14e)][_0x5465aa(0x150)](_0xd12b6a['cardinality']),_0x46c0fe+_0x5465aa(0x102)),text(_0xd12b6a[_0x5465aa(0x16e)],_0x46c0fe+_0x5465aa(0x115)),requireValue(_0xd12b6a[_0x5465aa(0xe0)]==null||typeof _0xd12b6a[_0x5465aa(0xe0)]===_0x5465aa(0x145)&&Number[_0x5465aa(0x118)](_0xd12b6a['confidence'])&&_0xd12b6a[_0x5465aa(0xe0)]>=0x0&&_0xd12b6a[_0x5465aa(0xe0)]<=0x1,_0x46c0fe+'.confidence\x20is\x20invalid.');const _0x2d775f=_0xd12b6a[_0x5465aa(0x147)]+':'+_0xd12b6a[_0x5465aa(0xeb)];requireValue(!_0xb9ba51['has'](_0x2d775f),_0x46c0fe+_0x5465aa(0x11e)),_0xb9ba51[_0x5465aa(0x139)](_0x2d775f);}for(const _0x5246e2 of _0xc569e3[_0x5465aa(0xe3)]??[]){requireValue(isObject(_0x5246e2),_0x5465aa(0x144)),text(_0x5246e2[_0x5465aa(0x16e)],_0x5465aa(0x13f));}return _0xc569e3;}export async function readManifest(_0xaeaa1d){const _0x1a0e6a=a343_0x27513a,_0x1a48f3=await lstat(_0xaeaa1d);requireValue(_0x1a48f3[_0x1a0e6a(0x142)]()&&!_0x1a48f3['isSymbolicLink']()&&_0x1a48f3[_0x1a0e6a(0x14c)]<=0x1e8480,_0x1a0e6a(0x105));let _0x5126ec;try{_0x5126ec=JSON[_0x1a0e6a(0xe5)](await readFile(_0xaeaa1d,'utf8'));}catch{throw CliErrors[_0x1a0e6a(0x104)](_0x1a0e6a(0x121));}return validateManifest(isObject(_0x5126ec)&&isObject(_0x5126ec[_0x1a0e6a(0x140)])?_0x5126ec[_0x1a0e6a(0x140)]:_0x5126ec);}export function inputHash(_0x3ceaae){const _0x5a9934=a343_0x27513a,_0x422921=_0x33ec18=>Array[_0x5a9934(0x14f)](_0x33ec18)?_0x33ec18[_0x5a9934(0x138)](_0x422921):isObject(_0x33ec18)?Object[_0x5a9934(0xea)](Object[_0x5a9934(0x111)](_0x33ec18)[_0x5a9934(0x116)]()[_0x5a9934(0x138)](_0x8074a5=>[_0x8074a5,_0x422921(_0x33ec18[_0x8074a5])])):_0x33ec18;return createHash(_0x5a9934(0x10c))[_0x5a9934(0x153)](JSON[_0x5a9934(0x155)](_0x422921(_0x3ceaae)))[_0x5a9934(0x112)](_0x5a9934(0xfc));}
1
+ const a343_0x2d7279=a343_0x5c63;(function(_0x3adfa9,_0x3132c4){const _0x557bf6=a343_0x5c63,_0x25138f=_0x3adfa9();while(!![]){try{const _0x10fe4e=parseInt(_0x557bf6(0x1ac))/0x1+parseInt(_0x557bf6(0x174))/0x2*(-parseInt(_0x557bf6(0x1aa))/0x3)+-parseInt(_0x557bf6(0x157))/0x4*(-parseInt(_0x557bf6(0x194))/0x5)+parseInt(_0x557bf6(0x14a))/0x6+parseInt(_0x557bf6(0x14b))/0x7*(parseInt(_0x557bf6(0x17e))/0x8)+-parseInt(_0x557bf6(0x170))/0x9*(parseInt(_0x557bf6(0x130))/0xa)+-parseInt(_0x557bf6(0x19a))/0xb*(parseInt(_0x557bf6(0x1ab))/0xc);if(_0x10fe4e===_0x3132c4)break;else _0x25138f['push'](_0x25138f['shift']());}catch(_0x5755c3){_0x25138f['push'](_0x25138f['shift']());}}}(a343_0x226a,0xbcff6));import{createHash}from'node:crypto';import{readFile,lstat}from'node:fs/promises';import{CliErrors}from'../../errors.js';export const isObject=_0x2301cf=>_0x2301cf!==null&&typeof _0x2301cf===a343_0x2d7279(0x12a)&&!Array['isArray'](_0x2301cf);const types=new Set([a343_0x2d7279(0x16d),a343_0x2d7279(0x14c),a343_0x2d7279(0x172),a343_0x2d7279(0x156),a343_0x2d7279(0x198),a343_0x2d7279(0x19e),a343_0x2d7279(0x131),a343_0x2d7279(0x154),a343_0x2d7279(0x135),'UPLOAD']),dbTypes=new Set([a343_0x2d7279(0x17a),'CHAR','TEXT','LONGTEXT',a343_0x2d7279(0x159),a343_0x2d7279(0x19f),a343_0x2d7279(0x19d),'INTEGER','BIGINT','FLOAT',a343_0x2d7279(0x185),'DECIMAL',a343_0x2d7279(0x183),a343_0x2d7279(0x145),'DATETIME',a343_0x2d7279(0x164),a343_0x2d7279(0x156),'JSON']),identifier=/^[a-z][a-z0-9_]*$/;export function requireValue(_0x463c46,_0x564e87){const _0x5a4caf=a343_0x2d7279;if(!_0x463c46)throw CliErrors[_0x5a4caf(0x147)](_0x564e87);}function keys(_0x301da9,_0x1f1346,_0x5c0b42){const _0x9eab46=a343_0x2d7279;for(const _0x256a48 of Object[_0x9eab46(0x146)](_0x301da9))requireValue(_0x1f1346['includes'](_0x256a48),_0x5c0b42+'.'+_0x256a48+'\x20is\x20not\x20supported.');}function a343_0x226a(){const _0x119a15=['DOUBLE','.dataset','\x20requires\x20options\x20or\x20an\x20explicit\x20relation.','Invalid\x20unresolved\x20relation.','doVersion','required','\x20must\x20be\x20a\x20non-empty\x20string.','\x20source\x20does\x20not\x20exist.','cardinality','.localKey\x20is\x20invalid\x20or\x20duplicated.','normalizedManifest','labelField','chartRole','datasets[','supportedAggregation','5MacNZf','doType','readonly','toDatasetKey','SELECT','disabled','1100oVqitc','.name\x20is\x20invalid\x20or\x20duplicated.','tableComment','INT','MULTI_SELECT','SMALLINT','Unsupported\x20dataset\x20manifest\x20version.','fromField','lookup','.fields[','pkField','digest','get','dataset','fromDatasetKey','unresolvedRelations','824481HeRaYq','4260hNeoeY','510886NqmwQk','autoIncrement','kind','number','utf8','test','name','object','\x20must\x20be\x20a\x20string.','.options.label','confidence','.supportedAggregation\x20must\x20contain\x20strings.','.options\x20contains\x20an\x20invalid\x20item.','518920JLIuIN','DATE_RANGE','\x20must\x20contain\x20at\x20most\x20200\x20items.','ONE_TO_ONE','boolean','ADDRESS','set','.dataset.','Design\x20file\x20contains\x20invalid\x20JSON.','value','unresolvedRelations.reason','.toField','entries','relationType','\x20duplicates\x20a\x20source\x20field.','\x20requires\x20exactly\x20one\x20target.','string','dataset-design','map','isSymbolicLink','.options','DATE','keys','validation','fromEntries','businessGroup','7828146lzGSWz','98YBRHcZ','NUMBER','every','\x20target\x20field\x20does\x20not\x20exist.','dbTypeLen','localKey','datasets','dbType','.options\x20is\x20invalid\x20or\x20duplicated.','USER','size','BOOLEAN','1095608TWusYg','some','TINYINT','label','stringify','isFinite','options','.confidence\x20is\x20invalid.','\x20must\x20be\x20an\x20object.','\x20must\x20be\x20a\x20boolean.','sha256','reason','.options\x20must\x20be\x20an\x20array.','TIMESTAMP','.dataset.datasetName','relations','.reason','toFieldLabel','toField','trim','datasetName','tableName','TEXT','Manifest\x20must\x20be\x20an\x20object.','.cardinality\x20is\x20unsupported.','63xIylSl','add','DATETIME','defaultAggregation','10gBwPPj','isArray','hex','manifest','has','length','VARCHAR','fields','Design\x20file\x20must\x20be\x20a\x20regular\x20JSON\x20file\x20no\x20larger\x20than\x202\x20MB.','toDatasetCode','261448MYefIN','isFile','schemaVersion','visible','parse','NUMERIC','includes'];a343_0x226a=function(){return _0x119a15;};return a343_0x226a();}function text(_0x5b2dd8,_0x3e724){const _0x4f9c5c=a343_0x2d7279;requireValue(typeof _0x5b2dd8===_0x4f9c5c(0x140)&&_0x5b2dd8[_0x4f9c5c(0x16a)]()[_0x4f9c5c(0x179)]>0x0,_0x3e724+_0x4f9c5c(0x18b));}function a343_0x5c63(_0xcd40d4,_0x56eb9d){_0xcd40d4=_0xcd40d4-0x127;const _0x226aa3=a343_0x226a();let _0x5c633a=_0x226aa3[_0xcd40d4];return _0x5c633a;}export function validateManifest(_0x1d48c3){const _0x1b5c84=a343_0x2d7279;requireValue(isObject(_0x1d48c3),_0x1b5c84(0x16e)),keys(_0x1d48c3,[_0x1b5c84(0x1ae),'schemaVersion',_0x1b5c84(0x189),_0x1b5c84(0x151),_0x1b5c84(0x166),_0x1b5c84(0x1a9)],_0x1b5c84(0x177)),requireValue(_0x1d48c3[_0x1b5c84(0x1ae)]===_0x1b5c84(0x141)&&_0x1d48c3[_0x1b5c84(0x180)]===0x1&&_0x1d48c3[_0x1b5c84(0x189)]==='v2',_0x1b5c84(0x1a0)),requireValue(Array[_0x1b5c84(0x175)](_0x1d48c3[_0x1b5c84(0x151)])&&_0x1d48c3[_0x1b5c84(0x151)]['length']>=0x1&&_0x1d48c3[_0x1b5c84(0x151)][_0x1b5c84(0x179)]<=0x14,'datasets\x20must\x20contain\x201..20\x20items.');const _0xc35401=new Map();for(const [_0x3adf4a,_0x185758]of _0x1d48c3[_0x1b5c84(0x151)]['entries']()){const _0x2d88f0=_0x1b5c84(0x192)+_0x3adf4a+']';requireValue(isObject(_0x185758),_0x2d88f0+_0x1b5c84(0x15f)),keys(_0x185758,['localKey','dataset',_0x1b5c84(0x17b)],_0x2d88f0),requireValue(typeof _0x185758[_0x1b5c84(0x150)]===_0x1b5c84(0x140)&&/^[a-z][a-z0-9_]{0,63}$/[_0x1b5c84(0x128)](_0x185758['localKey'])&&!_0xc35401[_0x1b5c84(0x178)](_0x185758[_0x1b5c84(0x150)]),_0x2d88f0+_0x1b5c84(0x18e)),requireValue(isObject(_0x185758[_0x1b5c84(0x1a7)]),_0x2d88f0+'.dataset\x20is\x20required.'),keys(_0x185758[_0x1b5c84(0x1a7)],[_0x1b5c84(0x16b),_0x1b5c84(0x16c),_0x1b5c84(0x19c),_0x1b5c84(0x149),_0x1b5c84(0x190)],_0x2d88f0+_0x1b5c84(0x186)),text(_0x185758['dataset'][_0x1b5c84(0x16b)],_0x2d88f0+_0x1b5c84(0x165));for(const [_0x297f44,_0x187639]of Object[_0x1b5c84(0x13c)](_0x185758[_0x1b5c84(0x1a7)]))requireValue(_0x187639==null||typeof _0x187639===_0x1b5c84(0x140),_0x2d88f0+_0x1b5c84(0x137)+_0x297f44+_0x1b5c84(0x12b));requireValue(Array[_0x1b5c84(0x175)](_0x185758[_0x1b5c84(0x17b)])&&_0x185758['fields'][_0x1b5c84(0x179)]>0x0&&(_0x1d48c3[_0x1b5c84(0x151)][_0x1b5c84(0x179)]===0x1||_0x185758['fields'][_0x1b5c84(0x179)]<=0xc8),_0x2d88f0+'.fields\x20is\x20empty\x20or\x20exceeds\x20the\x20batch\x20limit.');const _0xf5d147=new Set();_0xc35401[_0x1b5c84(0x136)](_0x185758[_0x1b5c84(0x150)],_0xf5d147);for(const [_0x23946e,_0x76a6fc]of _0x185758['fields']['entries']()){const _0x46546c=_0x2d88f0+_0x1b5c84(0x1a3)+_0x23946e+']';requireValue(isObject(_0x76a6fc),_0x46546c+_0x1b5c84(0x15f)),keys(_0x76a6fc,[_0x1b5c84(0x129),'displayName',_0x1b5c84(0x195),_0x1b5c84(0x152),'dbTypeLen','description',_0x1b5c84(0x18a),'visible',_0x1b5c84(0x199),'readonly',_0x1b5c84(0x1a4),_0x1b5c84(0x1ad),_0x1b5c84(0x15d),'semanticName',_0x1b5c84(0x191),_0x1b5c84(0x173),_0x1b5c84(0x193),'isTimeDimension','displayFormat'],_0x46546c),requireValue(typeof _0x76a6fc[_0x1b5c84(0x129)]===_0x1b5c84(0x140)&&identifier[_0x1b5c84(0x128)](_0x76a6fc[_0x1b5c84(0x129)])&&!_0xf5d147[_0x1b5c84(0x178)](_0x76a6fc['name']),_0x46546c+_0x1b5c84(0x19b)),_0xf5d147['add'](_0x76a6fc[_0x1b5c84(0x129)]),text(_0x76a6fc['displayName'],_0x46546c+'.displayName'),requireValue(types[_0x1b5c84(0x178)](_0x76a6fc[_0x1b5c84(0x195)]),_0x46546c+'.doType\x20is\x20unsupported.'),requireValue(dbTypes[_0x1b5c84(0x178)](_0x76a6fc[_0x1b5c84(0x152)]),_0x46546c+'.dbType\x20is\x20required\x20and\x20must\x20be\x20a\x20supported\x20storage\x20type.');for(const _0x4b82e8 of[_0x1b5c84(0x152),'description','semanticName','chartRole',_0x1b5c84(0x173),'displayFormat']){requireValue(_0x76a6fc[_0x4b82e8]==null||typeof _0x76a6fc[_0x4b82e8]===_0x1b5c84(0x140),_0x46546c+'.'+_0x4b82e8+_0x1b5c84(0x12b));}for(const _0x591515 of[_0x1b5c84(0x18a),_0x1b5c84(0x181),_0x1b5c84(0x199),_0x1b5c84(0x196),_0x1b5c84(0x1a4),_0x1b5c84(0x1ad),'isTimeDimension']){requireValue(_0x76a6fc[_0x591515]==null||typeof _0x76a6fc[_0x591515]===_0x1b5c84(0x134),_0x46546c+'.'+_0x591515+_0x1b5c84(0x160));}requireValue(_0x76a6fc[_0x1b5c84(0x14f)]==null||Number['isSafeInteger'](_0x76a6fc[_0x1b5c84(0x14f)])&&_0x76a6fc[_0x1b5c84(0x14f)]>0x0&&_0x76a6fc[_0x1b5c84(0x14f)]<=0xffff,_0x46546c+'.dbTypeLen\x20must\x20be\x20an\x20integer\x20in\x201..65535.'),requireValue(_0x76a6fc[_0x1b5c84(0x193)]==null||Array[_0x1b5c84(0x175)](_0x76a6fc[_0x1b5c84(0x193)])&&_0x76a6fc[_0x1b5c84(0x193)][_0x1b5c84(0x14d)](_0x25dfe7=>typeof _0x25dfe7===_0x1b5c84(0x140)),_0x46546c+_0x1b5c84(0x12e));if(_0x76a6fc[_0x1b5c84(0x15d)]!=null){requireValue(Array['isArray'](_0x76a6fc[_0x1b5c84(0x15d)]),_0x46546c+_0x1b5c84(0x163));const _0x1c60ad=new Set(),_0x1da7e4=new Set();for(const _0x3c1949 of _0x76a6fc[_0x1b5c84(0x15d)]){requireValue(isObject(_0x3c1949),_0x46546c+_0x1b5c84(0x12f)),keys(_0x3c1949,[_0x1b5c84(0x15a),'value'],_0x46546c+_0x1b5c84(0x144)),text(_0x3c1949[_0x1b5c84(0x15a)],_0x46546c+_0x1b5c84(0x12c)),requireValue(typeof _0x3c1949['value']===_0x1b5c84(0x140)&&identifier[_0x1b5c84(0x128)](_0x3c1949['value'])&&!_0x1da7e4[_0x1b5c84(0x178)](_0x3c1949[_0x1b5c84(0x139)])&&!_0x1c60ad[_0x1b5c84(0x178)](_0x3c1949['label']),_0x46546c+_0x1b5c84(0x153)),_0x1c60ad[_0x1b5c84(0x171)](_0x3c1949[_0x1b5c84(0x15a)]),_0x1da7e4[_0x1b5c84(0x171)](_0x3c1949[_0x1b5c84(0x139)]);}}if([_0x1b5c84(0x198),_0x1b5c84(0x19e)][_0x1b5c84(0x184)](_0x76a6fc[_0x1b5c84(0x195)])){const _0x52d3c9=Array[_0x1b5c84(0x175)](_0x1d48c3[_0x1b5c84(0x166)])&&_0x1d48c3[_0x1b5c84(0x166)][_0x1b5c84(0x158)](_0x31a881=>_0x31a881?.[_0x1b5c84(0x1a8)]===_0x185758[_0x1b5c84(0x150)]&&_0x31a881?.[_0x1b5c84(0x1a1)]===_0x76a6fc[_0x1b5c84(0x129)]);requireValue(_0x52d3c9||Array[_0x1b5c84(0x175)](_0x76a6fc[_0x1b5c84(0x15d)])&&_0x76a6fc[_0x1b5c84(0x15d)][_0x1b5c84(0x179)]>0x0,_0x46546c+_0x1b5c84(0x187));}}_0xf5d147[_0x1b5c84(0x171)]('id');}for(const _0x47b2ee of[_0x1b5c84(0x166),_0x1b5c84(0x1a9)])requireValue(_0x1d48c3[_0x47b2ee]==null||Array['isArray'](_0x1d48c3[_0x47b2ee])&&_0x1d48c3[_0x47b2ee][_0x1b5c84(0x179)]<=0xc8,_0x47b2ee+_0x1b5c84(0x132));const _0x5a3018=new Set();for(const [_0x31ec7e,_0x4b0504]of(_0x1d48c3[_0x1b5c84(0x166)]??[])[_0x1b5c84(0x13c)]()){const _0x5e4ebe='relations['+_0x31ec7e+']';requireValue(isObject(_0x4b0504),_0x5e4ebe+_0x1b5c84(0x15f)),keys(_0x4b0504,[_0x1b5c84(0x1a8),_0x1b5c84(0x1a1),'toDatasetKey',_0x1b5c84(0x17d),_0x1b5c84(0x169),_0x1b5c84(0x168),_0x1b5c84(0x13d),_0x1b5c84(0x18d),'reason',_0x1b5c84(0x12d)],_0x5e4ebe),requireValue(_0xc35401['get'](_0x4b0504['fromDatasetKey'])?.['has'](_0x4b0504['fromField']),_0x5e4ebe+_0x1b5c84(0x18c)),requireValue(Boolean(_0x4b0504[_0x1b5c84(0x197)])!==Boolean(_0x4b0504[_0x1b5c84(0x17d)]),_0x5e4ebe+_0x1b5c84(0x13f));if(_0x4b0504['toDatasetKey'])requireValue(_0xc35401[_0x1b5c84(0x1a6)](_0x4b0504[_0x1b5c84(0x197)])?.[_0x1b5c84(0x178)](_0x4b0504['toField']),_0x5e4ebe+_0x1b5c84(0x14e));else text(_0x4b0504['toDatasetCode'],_0x5e4ebe+'.toDatasetCode'),text(_0x4b0504[_0x1b5c84(0x169)],_0x5e4ebe+_0x1b5c84(0x13b));requireValue(_0x4b0504['relationType']==null||_0x4b0504[_0x1b5c84(0x13d)]===_0x1b5c84(0x1a2),_0x5e4ebe+'.relationType\x20must\x20be\x20lookup.'),requireValue(_0x4b0504['cardinality']==null||['MANY_TO_ONE',_0x1b5c84(0x133)][_0x1b5c84(0x184)](_0x4b0504[_0x1b5c84(0x18d)]),_0x5e4ebe+_0x1b5c84(0x16f)),text(_0x4b0504['reason'],_0x5e4ebe+_0x1b5c84(0x167)),requireValue(_0x4b0504['confidence']==null||typeof _0x4b0504[_0x1b5c84(0x12d)]===_0x1b5c84(0x1af)&&Number[_0x1b5c84(0x15c)](_0x4b0504[_0x1b5c84(0x12d)])&&_0x4b0504[_0x1b5c84(0x12d)]>=0x0&&_0x4b0504[_0x1b5c84(0x12d)]<=0x1,_0x5e4ebe+_0x1b5c84(0x15e));const _0x5b1616=_0x4b0504[_0x1b5c84(0x1a8)]+':'+_0x4b0504[_0x1b5c84(0x1a1)];requireValue(!_0x5a3018['has'](_0x5b1616),_0x5e4ebe+_0x1b5c84(0x13e)),_0x5a3018[_0x1b5c84(0x171)](_0x5b1616);}for(const _0x5b2d64 of _0x1d48c3['unresolvedRelations']??[]){requireValue(isObject(_0x5b2d64),_0x1b5c84(0x188)),text(_0x5b2d64[_0x1b5c84(0x162)],_0x1b5c84(0x13a));}return _0x1d48c3;}export async function readManifest(_0x592b9b){const _0x56fbeb=a343_0x2d7279,_0x49a6bb=await lstat(_0x592b9b);requireValue(_0x49a6bb[_0x56fbeb(0x17f)]()&&!_0x49a6bb[_0x56fbeb(0x143)]()&&_0x49a6bb[_0x56fbeb(0x155)]<=0x1e8480,_0x56fbeb(0x17c));let _0x5a655d;try{_0x5a655d=JSON[_0x56fbeb(0x182)](await readFile(_0x592b9b,_0x56fbeb(0x127)));}catch{throw CliErrors[_0x56fbeb(0x147)](_0x56fbeb(0x138));}return validateManifest(isObject(_0x5a655d)&&isObject(_0x5a655d[_0x56fbeb(0x18f)])?_0x5a655d[_0x56fbeb(0x18f)]:_0x5a655d);}export function inputHash(_0x1a416e){const _0x209c37=a343_0x2d7279,_0x2d0dd8=_0x2a53ea=>Array[_0x209c37(0x175)](_0x2a53ea)?_0x2a53ea[_0x209c37(0x142)](_0x2d0dd8):isObject(_0x2a53ea)?Object[_0x209c37(0x148)](Object[_0x209c37(0x146)](_0x2a53ea)['sort']()[_0x209c37(0x142)](_0x1bc40f=>[_0x1bc40f,_0x2d0dd8(_0x2a53ea[_0x1bc40f])])):_0x2a53ea;return createHash(_0x209c37(0x161))['update'](JSON[_0x209c37(0x15b)](_0x2d0dd8(_0x1a416e)))[_0x209c37(0x1a5)](_0x209c37(0x176));}
@@ -1 +1 @@
1
- const a344_0x74ff41=a344_0x149e;(function(_0x2b6ed3,_0x304f94){const _0x5c117f=a344_0x149e,_0x247352=_0x2b6ed3();while(!![]){try{const _0x5987aa=parseInt(_0x5c117f(0x11c))/0x1+parseInt(_0x5c117f(0x114))/0x2*(-parseInt(_0x5c117f(0x122))/0x3)+-parseInt(_0x5c117f(0x116))/0x4*(-parseInt(_0x5c117f(0xfc))/0x5)+parseInt(_0x5c117f(0x12d))/0x6+-parseInt(_0x5c117f(0x10b))/0x7+parseInt(_0x5c117f(0x11f))/0x8+-parseInt(_0x5c117f(0xfd))/0x9;if(_0x5987aa===_0x304f94)break;else _0x247352['push'](_0x247352['shift']());}catch(_0x540bc0){_0x247352['push'](_0x247352['shift']());}}}(a344_0xc045,0x3e28c));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{debuglog}from'node:util';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a344_0x74ff41(0x11d),SKILL_NAME=a344_0x74ff41(0x131),debug=debuglog(a344_0x74ff41(0x11b));function frontmatterValue(_0x213a76,_0x2ae193){const _0x50642d=a344_0x74ff41;return _0x213a76['match'](new RegExp('^'+_0x2ae193+_0x50642d(0x130),'m'))?.[0x1]?.['trim']()??'';}function listFiles(_0x519b5b,_0x19612f=_0x519b5b){const _0x2f7d40=a344_0x74ff41;return readdirSync(_0x19612f,{'withFileTypes':!![]})[_0x2f7d40(0x123)](_0x6d7440=>{const _0x1278ec=_0x2f7d40,_0x394e65=join(_0x19612f,_0x6d7440[_0x1278ec(0x129)]),_0x991ce=lstatSync(_0x394e65);if(_0x991ce[_0x1278ec(0x127)]())throw new Error('Symbolic\x20link\x20is\x20not\x20allowed:\x20'+_0x394e65);if(_0x991ce[_0x1278ec(0x103)]())return listFiles(_0x519b5b,_0x394e65);if(!_0x991ce[_0x1278ec(0x12b)]())throw new Error(_0x1278ec(0x12c)+_0x394e65);return[relative(_0x519b5b,_0x394e65)[_0x1278ec(0x111)](sep)[_0x1278ec(0x12a)]('/')];})[_0x2f7d40(0x115)]((_0x5c360f,_0x169ee7)=>_0x5c360f<_0x169ee7?-0x1:_0x5c360f>_0x169ee7?0x1:0x0);}function digestFiles(_0x1993b7,_0x13d7b3){const _0x5d2317=a344_0x74ff41,_0x5ab67=createHash('sha256');for(const _0x3971b6 of _0x13d7b3){if(_0x3971b6[_0x5d2317(0x10c)]('/')||_0x3971b6[_0x5d2317(0x111)]('/')[_0x5d2317(0x109)]('..')||_0x3971b6[_0x5d2317(0x109)]('\x5c'))throw new Error(_0x5d2317(0x118)+_0x3971b6);_0x5ab67['update'](_0x3971b6),_0x5ab67[_0x5d2317(0x13c)]('\x00'),_0x5ab67[_0x5d2317(0x13c)](readFileSync(join(_0x1993b7,..._0x3971b6['split']('/')))),_0x5ab67[_0x5d2317(0x13c)]('\x00');}return _0x5ab67[_0x5d2317(0x112)](_0x5d2317(0x108));}function sameFiles(_0x2e165d,_0x44eb1f){const _0x188982=a344_0x74ff41;return _0x2e165d[_0x188982(0x128)]===_0x44eb1f[_0x188982(0x128)]&&_0x2e165d['every']((_0x539549,_0x2efbb9)=>_0x539549===_0x44eb1f[_0x2efbb9]);}function a344_0xc045(){const _0x21edf6=['manifest','utf8','missing','isSymbolicLink','length','name','join','isFile','Unsupported\x20Skill\x20entry:\x20','3032274rUwtci','packageVersion','Installed\x20Skill\x20state\x20is\x20',':\x5cs*(.+)$','rabetbase','version','parse','current','version_mismatch','\x20automatically\x20selected\x20installation\x20target(s)\x20could\x20not\x20be\x20installed.','SKILL.md','\x20verified;\x20','skillVersion','pipe','root','update','unknown','state','path','Installer\x20reported\x20partial\x20target\x20failures:\x0a%s','schemaVersion','status','package.json','804635HUxzHA','1540908AKrqMg','reason','output','rabetbase.manifest.json','INSTALL_FAILED','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','isDirectory','packageRoot','unverifiable','skipped','absent','hex','includes','count','3507336SLyKFO','startsWith','stdio','content_mismatch','error','SOURCE_INVALID','split','digest','files','2GjdwSw','sort','8NVkpIh','partialFailure','Unsafe\x20manifest\x20path:\x20','present','installedPath','rabetbase-skills','440893KuyvVB','rabetbase\x20cli-skill\x20install','message','1054616nzHonU','skills','home','1419267EDaLtO','flatMap'];a344_0xc045=function(){return _0x21edf6;};return a344_0xc045();}function readSource(_0xe28d0a){const _0x2eaff0=a344_0x74ff41,_0x207c71=JSON[_0x2eaff0(0x133)](readFileSync(join(_0xe28d0a,_0x2eaff0(0xfb)),'utf8')),_0x55db85=JSON[_0x2eaff0(0x133)](readFileSync(join(_0xe28d0a,_0x2eaff0(0x120),_0x2eaff0(0x100)),_0x2eaff0(0x125))),_0x438761=join(_0xe28d0a,'skills',SKILL_NAME),_0x5d159b=frontmatterValue(readFileSync(join(_0x438761,_0x2eaff0(0x137)),'utf8'),_0x2eaff0(0x132)),_0x2dd9ca=listFiles(_0x438761);if(_0x55db85[_0x2eaff0(0xf9)]!==0x1||_0x55db85[_0x2eaff0(0x129)]!==SKILL_NAME||!_0x207c71['version']||_0x55db85['packageVersion']!==_0x207c71['version']||_0x55db85[_0x2eaff0(0x139)]!==_0x207c71[_0x2eaff0(0x132)]||_0x5d159b!==_0x207c71[_0x2eaff0(0x132)]||!sameFiles(_0x2dd9ca,_0x55db85[_0x2eaff0(0x113)])||digestFiles(_0x438761,_0x2dd9ca)!==_0x55db85[_0x2eaff0(0x112)])throw new Error(_0x2eaff0(0x102));return{'packageVersion':_0x207c71[_0x2eaff0(0x132)],'skillVersion':_0x5d159b,'root':_0x438761,'manifest':_0x55db85};}function installedSkillPath(_0x4cc242){const _0x46ee8f=a344_0x74ff41,_0x44ddc1=resolveInstalledSkill(SKILL_NAME,{'home':_0x4cc242});if(_0x44ddc1[_0x46ee8f(0xf6)]===_0x46ee8f(0x119))return{'state':'present','path':dirname(_0x44ddc1[_0x46ee8f(0xf7)])};if(_0x44ddc1[_0x46ee8f(0xf6)]===_0x46ee8f(0x107))return{'state':_0x46ee8f(0x126)};return{'state':_0x46ee8f(0x105),'reason':_0x44ddc1[_0x46ee8f(0xfe)]};}export function inspectInstalledBuiltinSkillVersion(_0x41f942,_0x49d8c9={}){const _0x31c6c3=a344_0x74ff41,_0x2977b7=installedSkillPath(_0x49d8c9[_0x31c6c3(0x121)]??homedir());if(_0x2977b7[_0x31c6c3(0xf6)]===_0x31c6c3(0x126))return{'state':_0x31c6c3(0x126),'expectedVersion':_0x41f942,'repairCommand':REPAIR_COMMAND};if(_0x2977b7[_0x31c6c3(0xf6)]===_0x31c6c3(0x105))return{'state':_0x31c6c3(0x105),'expectedVersion':_0x41f942,'reason':_0x2977b7['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x5c5687=frontmatterValue(readFileSync(join(_0x2977b7[_0x31c6c3(0xf7)],_0x31c6c3(0x137)),_0x31c6c3(0x125)),_0x31c6c3(0x132));return{'state':_0x5c5687===_0x41f942?_0x31c6c3(0x134):_0x31c6c3(0x135),'expectedVersion':_0x41f942,'skillVersion':_0x5c5687,'installedPath':_0x2977b7[_0x31c6c3(0xf7)],'repairCommand':REPAIR_COMMAND};}catch(_0x2b84a6){return{'state':'unverifiable','expectedVersion':_0x41f942,'installedPath':_0x2977b7[_0x31c6c3(0xf7)],'reason':_0x2b84a6 instanceof Error?_0x2b84a6[_0x31c6c3(0x11e)]:String(_0x2b84a6),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x170b4c={}){const _0x29090c=a344_0x74ff41,_0x4f5ffd=_0x170b4c[_0x29090c(0x104)]??DEFAULT_PACKAGE_ROOT;let _0x5ebc31;try{_0x5ebc31=readSource(_0x4f5ffd);}catch(_0x99ade){return{'state':_0x29090c(0x105),'packageVersion':_0x29090c(0x13d),'reason':_0x99ade instanceof Error?_0x99ade['message']:String(_0x99ade),'repairCommand':REPAIR_COMMAND};}const _0x33fd4c=installedSkillPath(_0x170b4c['home']??homedir());if(_0x33fd4c[_0x29090c(0xf6)]===_0x29090c(0x126))return{'state':'missing','packageVersion':_0x5ebc31[_0x29090c(0x12e)],'repairCommand':REPAIR_COMMAND};if(_0x33fd4c[_0x29090c(0xf6)]===_0x29090c(0x105))return{'state':_0x29090c(0x105),'packageVersion':_0x5ebc31[_0x29090c(0x12e)],'reason':_0x33fd4c['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x4b1c8d=frontmatterValue(readFileSync(join(_0x33fd4c['path'],'SKILL.md'),_0x29090c(0x125)),'version');if(_0x4b1c8d!==_0x5ebc31[_0x29090c(0x139)])return{'state':_0x29090c(0x135),'packageVersion':_0x5ebc31[_0x29090c(0x12e)],'skillVersion':_0x4b1c8d,'installedPath':_0x33fd4c['path'],'repairCommand':REPAIR_COMMAND};const _0x414179=listFiles(_0x33fd4c[_0x29090c(0xf7)]),_0x1a354d=digestFiles(_0x33fd4c[_0x29090c(0xf7)],_0x414179);return{'state':sameFiles(_0x414179,_0x5ebc31['manifest']['files'])&&_0x1a354d===_0x5ebc31[_0x29090c(0x124)][_0x29090c(0x112)]?'current':_0x29090c(0x10e),'packageVersion':_0x5ebc31[_0x29090c(0x12e)],'skillVersion':_0x4b1c8d,'installedPath':_0x33fd4c[_0x29090c(0xf7)],'digest':_0x1a354d,'repairCommand':REPAIR_COMMAND};}catch(_0x5943b7){return{'state':'unverifiable','packageVersion':_0x5ebc31[_0x29090c(0x12e)],'installedPath':_0x33fd4c[_0x29090c(0xf7)],'reason':_0x5943b7 instanceof Error?_0x5943b7[_0x29090c(0x11e)]:String(_0x5943b7),'repairCommand':REPAIR_COMMAND};}}function failure(_0x5d7a0a,_0x27704f,_0x5e7615,_0x39bc52){const _0x3ada2d=a344_0x74ff41;return{'ok':![],'code':_0x5d7a0a,'packageVersion':_0x27704f[_0x3ada2d(0x12e)],'skillVersion':_0x27704f[_0x3ada2d(0x139)],'installedPath':_0x39bc52,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x5e7615 instanceof Error?_0x5e7615[_0x3ada2d(0x11e)]:String(_0x5e7615)};}function a344_0x149e(_0x8f1cf3,_0x530ed4){_0x8f1cf3=_0x8f1cf3-0xf6;const _0xc0457f=a344_0xc045();let _0x149e6e=_0xc0457f[_0x8f1cf3];return _0x149e6e;}export function installBuiltinSkill(_0x361163={}){const _0x4d0531=a344_0x74ff41,_0x3e31ec=_0x361163['packageRoot']??DEFAULT_PACKAGE_ROOT,_0x21698c=_0x361163[_0x4d0531(0x121)]??homedir();let _0x33bb00;try{_0x33bb00=readSource(_0x3e31ec);}catch(_0x3a3572){return failure(_0x4d0531(0x110),{'packageVersion':'unknown','skillVersion':_0x4d0531(0x13d)},_0x3a3572);}const _0x17bd0c=inspectBuiltinSkill({'packageRoot':_0x3e31ec,'home':_0x21698c}),_0x3a71b8=runNpxSkillsAddGlobal(_0x3e31ec,_0x33bb00[_0x4d0531(0x13b)],{'stdio':_0x361163[_0x4d0531(0x10d)]??_0x4d0531(0x13a),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x21698c}});if(_0x3a71b8[_0x4d0531(0x106)])return{'ok':!![],'packageVersion':_0x33bb00['packageVersion'],'skillVersion':_0x33bb00[_0x4d0531(0x139)],'installedPath':_0x17bd0c[_0x4d0531(0x11a)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x3a71b8['ok'])return failure(_0x4d0531(0x101),_0x33bb00,_0x3a71b8[_0x4d0531(0x10f)]??'skills@latest\x20exited\x20'+_0x3a71b8[_0x4d0531(0xfa)]);const _0x518533=inspectBuiltinSkill({'packageRoot':_0x3e31ec,'home':_0x21698c});if(_0x518533['state']!==_0x4d0531(0x134)){const _0x557b46=_0x518533['reason']??_0x4d0531(0x12f)+_0x518533[_0x4d0531(0xf6)];return failure('VERIFY_FAILED',_0x33bb00,_0x3a71b8[_0x4d0531(0x117)]?_0x557b46+'\x0a'+_0x3a71b8['partialFailure'][_0x4d0531(0xff)]:_0x557b46,_0x518533[_0x4d0531(0x11a)]);}return _0x3a71b8['partialFailure']&&(debug(_0x4d0531(0xf8),_0x3a71b8['partialFailure'][_0x4d0531(0xff)]),console['log']('CLI\x20Built-in\x20Skill\x20'+_0x33bb00[_0x4d0531(0x139)]+_0x4d0531(0x138)+_0x3a71b8['partialFailure'][_0x4d0531(0x10a)]+_0x4d0531(0x136))),{'ok':!![],'packageVersion':_0x33bb00[_0x4d0531(0x12e)],'skillVersion':_0x33bb00[_0x4d0531(0x139)],'installedPath':_0x518533[_0x4d0531(0x11a)],'changed':_0x17bd0c['state']!==_0x4d0531(0x134),'repairCommand':REPAIR_COMMAND};}
1
+ const a344_0xc93103=a344_0x4419;(function(_0x311940,_0x540459){const _0x1234a1=a344_0x4419,_0x4beec1=_0x311940();while(!![]){try{const _0xd291c1=-parseInt(_0x1234a1(0x193))/0x1+parseInt(_0x1234a1(0x1bc))/0x2+-parseInt(_0x1234a1(0x1a4))/0x3+-parseInt(_0x1234a1(0x19b))/0x4+parseInt(_0x1234a1(0x18f))/0x5*(-parseInt(_0x1234a1(0x1b3))/0x6)+-parseInt(_0x1234a1(0x1b0))/0x7+parseInt(_0x1234a1(0x1b5))/0x8*(parseInt(_0x1234a1(0x1a1))/0x9);if(_0xd291c1===_0x540459)break;else _0x4beec1['push'](_0x4beec1['shift']());}catch(_0xfe5c43){_0x4beec1['push'](_0x4beec1['shift']());}}}(a344_0x4049,0x67d4a));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{debuglog}from'node:util';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';function a344_0x4419(_0x503dbc,_0x3f1168){_0x503dbc=_0x503dbc-0x17b;const _0x4049f1=a344_0x4049();let _0x4419a6=_0x4049f1[_0x503dbc];return _0x4419a6;}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=a344_0xc93103(0x1a2),debug=debuglog(a344_0xc93103(0x1bb));function frontmatterValue(_0x585ff5,_0x341f86){const _0x98cbb0=a344_0xc93103;return _0x585ff5[_0x98cbb0(0x1a6)](new RegExp('^'+_0x341f86+_0x98cbb0(0x195),'m'))?.[0x1]?.['trim']()??'';}function listFiles(_0x50f117,_0x1b9d42=_0x50f117){const _0x5f1e7c=a344_0xc93103;return readdirSync(_0x1b9d42,{'withFileTypes':!![]})['flatMap'](_0x176f35=>{const _0x5ecf43=a344_0x4419,_0x2f6c6a=join(_0x1b9d42,_0x176f35[_0x5ecf43(0x1a8)]),_0x147f91=lstatSync(_0x2f6c6a);if(_0x147f91[_0x5ecf43(0x184)]())throw new Error(_0x5ecf43(0x1ad)+_0x2f6c6a);if(_0x147f91[_0x5ecf43(0x183)]())return listFiles(_0x50f117,_0x2f6c6a);if(!_0x147f91[_0x5ecf43(0x196)]())throw new Error(_0x5ecf43(0x17b)+_0x2f6c6a);return[relative(_0x50f117,_0x2f6c6a)['split'](sep)[_0x5ecf43(0x1b6)]('/')];})[_0x5f1e7c(0x18d)]((_0x46afa6,_0xa9713)=>_0x46afa6<_0xa9713?-0x1:_0x46afa6>_0xa9713?0x1:0x0);}function digestFiles(_0x3acc44,_0x53655e){const _0x53ed23=a344_0xc93103,_0x22b109=createHash(_0x53ed23(0x181));for(const _0x2c39df of _0x53655e){if(_0x2c39df[_0x53ed23(0x19f)]('/')||_0x2c39df[_0x53ed23(0x1bf)]('/')[_0x53ed23(0x186)]('..')||_0x2c39df['includes']('\x5c'))throw new Error(_0x53ed23(0x192)+_0x2c39df);_0x22b109[_0x53ed23(0x17c)](_0x2c39df),_0x22b109[_0x53ed23(0x17c)]('\x00'),_0x22b109[_0x53ed23(0x17c)](readFileSync(join(_0x3acc44,..._0x2c39df['split']('/')))),_0x22b109['update']('\x00');}return _0x22b109[_0x53ed23(0x180)](_0x53ed23(0x182));}function sameFiles(_0xccdcbb,_0x15c7f5){const _0x463f49=a344_0xc93103;return _0xccdcbb[_0x463f49(0x1bd)]===_0x15c7f5[_0x463f49(0x1bd)]&&_0xccdcbb['every']((_0x3c1d19,_0x4c976e)=>_0x3c1d19===_0x15c7f5[_0x4c976e]);}function readSource(_0x1e5e7f){const _0x4f0a8d=a344_0xc93103,_0x5856c3=JSON[_0x4f0a8d(0x19a)](readFileSync(join(_0x1e5e7f,_0x4f0a8d(0x1b4)),_0x4f0a8d(0x1aa))),_0x55fc42=JSON[_0x4f0a8d(0x19a)](readFileSync(join(_0x1e5e7f,_0x4f0a8d(0x19d),_0x4f0a8d(0x1a3)),_0x4f0a8d(0x1aa))),_0x106c0f=join(_0x1e5e7f,_0x4f0a8d(0x19d),SKILL_NAME),_0x42ea9a=frontmatterValue(readFileSync(join(_0x106c0f,'SKILL.md'),_0x4f0a8d(0x1aa)),'version'),_0x2163a1=listFiles(_0x106c0f);if(_0x55fc42['schemaVersion']!==0x1||_0x55fc42[_0x4f0a8d(0x1a8)]!==SKILL_NAME||!_0x5856c3[_0x4f0a8d(0x189)]||_0x55fc42[_0x4f0a8d(0x1b1)]!==_0x5856c3[_0x4f0a8d(0x189)]||_0x55fc42['skillVersion']!==_0x5856c3[_0x4f0a8d(0x189)]||_0x42ea9a!==_0x5856c3[_0x4f0a8d(0x189)]||!sameFiles(_0x2163a1,_0x55fc42[_0x4f0a8d(0x1af)])||digestFiles(_0x106c0f,_0x2163a1)!==_0x55fc42[_0x4f0a8d(0x180)])throw new Error(_0x4f0a8d(0x1a5));return{'packageVersion':_0x5856c3[_0x4f0a8d(0x189)],'skillVersion':_0x42ea9a,'root':_0x106c0f,'manifest':_0x55fc42};}function installedSkillPath(_0x49e99b){const _0x38a1f4=a344_0xc93103,_0x1a9853=resolveInstalledSkill(SKILL_NAME,{'home':_0x49e99b});if(_0x1a9853[_0x38a1f4(0x1ab)]===_0x38a1f4(0x185))return{'state':_0x38a1f4(0x185),'path':dirname(_0x1a9853[_0x38a1f4(0x1ac)])};if(_0x1a9853[_0x38a1f4(0x1ab)]===_0x38a1f4(0x1b2))return{'state':_0x38a1f4(0x19e)};return{'state':_0x38a1f4(0x1a7),'reason':_0x1a9853[_0x38a1f4(0x1b8)]};}function a344_0x4049(){const _0x4d45e9=['skills','missing','startsWith','version_mismatch','9QmaygS','rabetbase','rabetbase.manifest.json','1877991SOYoHO','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','match','unverifiable','name','unknown','utf8','state','path','Symbolic\x20link\x20is\x20not\x20allowed:\x20','VERIFY_FAILED','files','5213271qzTCxs','packageVersion','absent','48QaTkOz','package.json','22870224UNdflz','join','home','reason','Installer\x20reported\x20partial\x20target\x20failures:\x0a%s','output','rabetbase-skills','964272SHlarH','length','skipped','split','\x20automatically\x20selected\x20installation\x20target(s)\x20could\x20not\x20be\x20installed.','count','Unsupported\x20Skill\x20entry:\x20','update','partialFailure','manifest','SKILL.md','digest','sha256','hex','isDirectory','isSymbolicLink','present','includes','CLI\x20Built-in\x20Skill\x20','pipe','version','\x20verified;\x20','content_mismatch','INSTALL_FAILED','sort','error','163545azlatJ','skillVersion','current','Unsafe\x20manifest\x20path:\x20','725431PEReCH','Installed\x20Skill\x20state\x20is\x20',':\x5cs*(.+)$','isFile','stdio','installedPath','message','parse','2231084vDbGSk','packageRoot'];a344_0x4049=function(){return _0x4d45e9;};return a344_0x4049();}export function inspectInstalledBuiltinSkillVersion(_0x43a896,_0x1c7bb2={}){const _0x9182de=a344_0xc93103,_0x5804f5=installedSkillPath(_0x1c7bb2[_0x9182de(0x1b7)]??homedir());if(_0x5804f5['state']==='missing')return{'state':_0x9182de(0x19e),'expectedVersion':_0x43a896,'repairCommand':REPAIR_COMMAND};if(_0x5804f5[_0x9182de(0x1ab)]===_0x9182de(0x1a7))return{'state':'unverifiable','expectedVersion':_0x43a896,'reason':_0x5804f5['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x5a82c3=frontmatterValue(readFileSync(join(_0x5804f5[_0x9182de(0x1ac)],_0x9182de(0x17f)),_0x9182de(0x1aa)),_0x9182de(0x189));return{'state':_0x5a82c3===_0x43a896?_0x9182de(0x191):_0x9182de(0x1a0),'expectedVersion':_0x43a896,'skillVersion':_0x5a82c3,'installedPath':_0x5804f5[_0x9182de(0x1ac)],'repairCommand':REPAIR_COMMAND};}catch(_0x56fd6f){return{'state':'unverifiable','expectedVersion':_0x43a896,'installedPath':_0x5804f5[_0x9182de(0x1ac)],'reason':_0x56fd6f instanceof Error?_0x56fd6f[_0x9182de(0x199)]:String(_0x56fd6f),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x537679={}){const _0xffa436=a344_0xc93103,_0xb2509a=_0x537679[_0xffa436(0x19c)]??DEFAULT_PACKAGE_ROOT;let _0xc7465f;try{_0xc7465f=readSource(_0xb2509a);}catch(_0x3039c1){return{'state':_0xffa436(0x1a7),'packageVersion':_0xffa436(0x1a9),'reason':_0x3039c1 instanceof Error?_0x3039c1[_0xffa436(0x199)]:String(_0x3039c1),'repairCommand':REPAIR_COMMAND};}const _0x1360b8=installedSkillPath(_0x537679[_0xffa436(0x1b7)]??homedir());if(_0x1360b8['state']==='missing')return{'state':_0xffa436(0x19e),'packageVersion':_0xc7465f[_0xffa436(0x1b1)],'repairCommand':REPAIR_COMMAND};if(_0x1360b8[_0xffa436(0x1ab)]==='unverifiable')return{'state':_0xffa436(0x1a7),'packageVersion':_0xc7465f[_0xffa436(0x1b1)],'reason':_0x1360b8[_0xffa436(0x1b8)],'repairCommand':REPAIR_COMMAND};try{const _0x7ec209=frontmatterValue(readFileSync(join(_0x1360b8[_0xffa436(0x1ac)],_0xffa436(0x17f)),'utf8'),'version');if(_0x7ec209!==_0xc7465f[_0xffa436(0x190)])return{'state':_0xffa436(0x1a0),'packageVersion':_0xc7465f[_0xffa436(0x1b1)],'skillVersion':_0x7ec209,'installedPath':_0x1360b8[_0xffa436(0x1ac)],'repairCommand':REPAIR_COMMAND};const _0x1e66e6=listFiles(_0x1360b8[_0xffa436(0x1ac)]),_0x475417=digestFiles(_0x1360b8['path'],_0x1e66e6);return{'state':sameFiles(_0x1e66e6,_0xc7465f[_0xffa436(0x17e)]['files'])&&_0x475417===_0xc7465f[_0xffa436(0x17e)][_0xffa436(0x180)]?'current':_0xffa436(0x18b),'packageVersion':_0xc7465f[_0xffa436(0x1b1)],'skillVersion':_0x7ec209,'installedPath':_0x1360b8['path'],'digest':_0x475417,'repairCommand':REPAIR_COMMAND};}catch(_0x5958a0){return{'state':_0xffa436(0x1a7),'packageVersion':_0xc7465f['packageVersion'],'installedPath':_0x1360b8[_0xffa436(0x1ac)],'reason':_0x5958a0 instanceof Error?_0x5958a0[_0xffa436(0x199)]:String(_0x5958a0),'repairCommand':REPAIR_COMMAND};}}function failure(_0x1af3c4,_0x4126fa,_0xfd3897,_0x27e247){const _0x14a7ef=a344_0xc93103;return{'ok':![],'code':_0x1af3c4,'packageVersion':_0x4126fa[_0x14a7ef(0x1b1)],'skillVersion':_0x4126fa[_0x14a7ef(0x190)],'installedPath':_0x27e247,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0xfd3897 instanceof Error?_0xfd3897[_0x14a7ef(0x199)]:String(_0xfd3897)};}export function installBuiltinSkill(_0x597ddd={}){const _0x1e33fa=a344_0xc93103,_0x37c96f=_0x597ddd[_0x1e33fa(0x19c)]??DEFAULT_PACKAGE_ROOT,_0x36cfb4=_0x597ddd[_0x1e33fa(0x1b7)]??homedir();let _0x3f6960;try{_0x3f6960=readSource(_0x37c96f);}catch(_0x385894){return failure('SOURCE_INVALID',{'packageVersion':_0x1e33fa(0x1a9),'skillVersion':_0x1e33fa(0x1a9)},_0x385894);}const _0x28c382=inspectBuiltinSkill({'packageRoot':_0x37c96f,'home':_0x36cfb4}),_0x23d56d=runNpxSkillsAddGlobal(_0x37c96f,_0x3f6960['root'],{'stdio':_0x597ddd[_0x1e33fa(0x197)]??_0x1e33fa(0x188),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x36cfb4}});if(_0x23d56d[_0x1e33fa(0x1be)])return{'ok':!![],'packageVersion':_0x3f6960['packageVersion'],'skillVersion':_0x3f6960[_0x1e33fa(0x190)],'installedPath':_0x28c382[_0x1e33fa(0x198)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x23d56d['ok'])return failure(_0x1e33fa(0x18c),_0x3f6960,_0x23d56d[_0x1e33fa(0x18e)]??'skills@latest\x20exited\x20'+_0x23d56d['status']);const _0x5e28ee=inspectBuiltinSkill({'packageRoot':_0x37c96f,'home':_0x36cfb4});if(_0x5e28ee['state']!==_0x1e33fa(0x191)){const _0x379978=_0x5e28ee[_0x1e33fa(0x1b8)]??_0x1e33fa(0x194)+_0x5e28ee[_0x1e33fa(0x1ab)];return failure(_0x1e33fa(0x1ae),_0x3f6960,_0x23d56d[_0x1e33fa(0x17d)]?_0x379978+'\x0a'+_0x23d56d[_0x1e33fa(0x17d)][_0x1e33fa(0x1ba)]:_0x379978,_0x5e28ee['installedPath']);}return _0x23d56d[_0x1e33fa(0x17d)]&&(debug(_0x1e33fa(0x1b9),_0x23d56d[_0x1e33fa(0x17d)][_0x1e33fa(0x1ba)]),console['log'](_0x1e33fa(0x187)+_0x3f6960['skillVersion']+_0x1e33fa(0x18a)+_0x23d56d[_0x1e33fa(0x17d)][_0x1e33fa(0x1c1)]+_0x1e33fa(0x1c0))),{'ok':!![],'packageVersion':_0x3f6960['packageVersion'],'skillVersion':_0x3f6960[_0x1e33fa(0x190)],'installedPath':_0x5e28ee[_0x1e33fa(0x198)],'changed':_0x28c382[_0x1e33fa(0x1ab)]!==_0x1e33fa(0x191),'repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- (function(_0x22fb15,_0x366713){const _0x24dc19=a345_0x23aa,_0x1273d9=_0x22fb15();while(!![]){try{const _0x1d81ca=parseInt(_0x24dc19(0x7d))/0x1+-parseInt(_0x24dc19(0x7a))/0x2*(-parseInt(_0x24dc19(0x7c))/0x3)+parseInt(_0x24dc19(0x70))/0x4*(-parseInt(_0x24dc19(0x81))/0x5)+-parseInt(_0x24dc19(0x83))/0x6*(parseInt(_0x24dc19(0x7f))/0x7)+parseInt(_0x24dc19(0x84))/0x8+-parseInt(_0x24dc19(0x6b))/0x9*(parseInt(_0x24dc19(0x69))/0xa)+-parseInt(_0x24dc19(0x72))/0xb;if(_0x1d81ca===_0x366713)break;else _0x1273d9['push'](_0x1273d9['shift']());}catch(_0x4462a0){_0x1273d9['push'](_0x1273d9['shift']());}}}(a345_0x73de,0xaea7a));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a345_0x23aa(_0x2ad6be,_0x2bc869){_0x2ad6be=_0x2ad6be-0x68;const _0x73de13=a345_0x73de();let _0x23aaf8=_0x73de13[_0x2ad6be];return _0x23aaf8;}function a345_0x73de(){const _0x4aa33f=['Error:\x20Unsupported\x20command:\x20','replace','log','\x0aAvailable\x20commands:','add','dangerously-bff-save','3622syiWiq','-$1','2157egqpVG','555614vxSoWN','exit','7UODmXg','enable-bff-save','5xvlbHH','startsWith','3835266zYfQnG','8451872KCcOjU','argv','--help','Unsupported\x20command:\x20','(empty)','5438190cMRXQO','error','18ssxPqd','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','setLogPath','slice','from','1855428JTBQtz','push','89265HpMXfE','length'];a345_0x73de=function(){return _0x4aa33f;};return a345_0x73de();}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x29a201){const _0x32e3e7=a345_0x23aa,_0x147fac=[];for(const [_0x31087d,_0x41f772]of Object['entries'](_0x29a201)){if(_0x41f772===!![]){const _0x1b8f2d=_0x31087d[_0x32e3e7(0x75)](/([A-Z])/g,_0x32e3e7(0x7b))['toLowerCase']();_0x147fac[_0x32e3e7(0x71)](_0x1b8f2d);}}return _0x147fac;}export function parseDynamicFlags(){const _0x30479d=a345_0x23aa,_0x4c99a9=[];for(let _0x42eae0=0x3;_0x42eae0<process[_0x30479d(0x85)][_0x30479d(0x73)];_0x42eae0++){const _0x3b60a8=process[_0x30479d(0x85)][_0x42eae0];if(_0x3b60a8&&_0x3b60a8[_0x30479d(0x82)]('--')){const _0x1b93c1=_0x3b60a8[_0x30479d(0x6e)](0x2);_0x1b93c1&&!_0x1b93c1['includes']('=')&&_0x4c99a9[_0x30479d(0x71)](_0x1b93c1);}}return _0x4c99a9;}export function getAllProvidedFlags(_0x5bfa69){const _0x2414cf=a345_0x23aa,_0x3a612e=camelCaseFlagsToKebab(_0x5bfa69),_0x2f9772=parseDynamicFlags(),_0xc2b03a=new Set([..._0x3a612e,..._0x2f9772]);return Array[_0x2414cf(0x6f)](_0xc2b03a);}export function normalizeLegacyBffSaveFlags(_0x1600fa){const _0xc34c4d=a345_0x23aa,_0x5f44ec=new Set(_0x1600fa);return _0x5f44ec['has'](_0xc34c4d(0x79))&&_0x5f44ec[_0xc34c4d(0x78)](_0xc34c4d(0x80)),Array[_0xc34c4d(0x6f)](_0x5f44ec);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x5203ae,_0x56cfcc,_0x414988){const _0x23065d=a345_0x23aa;logger[_0x23065d(0x6d)](process['cwd']());if(_0x414988?.['help']||_0x5203ae===_0x23065d(0x86)){showHelp();return;}console['error'](_0x23065d(0x74)+(_0x5203ae||_0x23065d(0x68))),console['log'](_0x23065d(0x77)),console[_0x23065d(0x76)]('\x20\x20'+CLI_BIN_NAME+'\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill'),console[_0x23065d(0x76)](''),console[_0x23065d(0x76)]('Public\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x23065d(0x6a)]('skill',_0x23065d(0x87)+_0x5203ae),process[_0x23065d(0x7e)](0x1);}function showHelp(){const _0x1aa353=a345_0x23aa;console[_0x1aa353(0x76)](_0x1aa353(0x6c)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20'+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(_0x229cce,_0x2bee68){const _0xc5f089=a345_0x54c6,_0x120234=_0x229cce();while(!![]){try{const _0x56e683=parseInt(_0xc5f089(0xd3))/0x1+parseInt(_0xc5f089(0xbf))/0x2+-parseInt(_0xc5f089(0xbe))/0x3+parseInt(_0xc5f089(0xc6))/0x4+parseInt(_0xc5f089(0xc5))/0x5+parseInt(_0xc5f089(0xda))/0x6*(parseInt(_0xc5f089(0xc0))/0x7)+-parseInt(_0xc5f089(0xdc))/0x8;if(_0x56e683===_0x2bee68)break;else _0x120234['push'](_0x120234['shift']());}catch(_0x1a0329){_0x120234['push'](_0x120234['shift']());}}}(a345_0xd268,0xa909b));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(_0x2078ab){const _0x446721=a345_0x54c6,_0x2ab1c5=[];for(const [_0x1f4227,_0xba9f88]of Object[_0x446721(0xd2)](_0x2078ab)){if(_0xba9f88===!![]){const _0x58fbeb=_0x1f4227[_0x446721(0xc9)](/([A-Z])/g,'-$1')['toLowerCase']();_0x2ab1c5['push'](_0x58fbeb);}}return _0x2ab1c5;}function a345_0xd268(){const _0x11b712=['\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','help','--help','enable-bff-save','31962XvXqun','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','30958176QZStpL','Unsupported\x20command:\x20','includes','error','1583739FhLMmq','2669814pfrffD','1351OkWnju','Public\x20Open\x20Skill\x20source:\x20','push','Error:\x20Unsupported\x20command:\x20','dangerously-bff-save','5176495rmWTHT','2622952fvgRuT','add','from','replace','setLogPath','(empty)','length','argv','log','has','slice','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','entries','1036009aYWqgk','\x0aAvailable\x20commands:','startsWith'];a345_0xd268=function(){return _0x11b712;};return a345_0xd268();}function a345_0x54c6(_0x24510b,_0x3d1de6){_0x24510b=_0x24510b-0xbc;const _0xd26817=a345_0xd268();let _0x54c603=_0xd26817[_0x24510b];return _0x54c603;}export function parseDynamicFlags(){const _0x2fb361=a345_0x54c6,_0x5633e9=[];for(let _0x1d4570=0x3;_0x1d4570<process[_0x2fb361(0xcd)][_0x2fb361(0xcc)];_0x1d4570++){const _0x332ca6=process[_0x2fb361(0xcd)][_0x1d4570];if(_0x332ca6&&_0x332ca6[_0x2fb361(0xd5)]('--')){const _0x10339d=_0x332ca6[_0x2fb361(0xd0)](0x2);_0x10339d&&!_0x10339d[_0x2fb361(0xbc)]('=')&&_0x5633e9[_0x2fb361(0xc2)](_0x10339d);}}return _0x5633e9;}export function getAllProvidedFlags(_0x45e2f4){const _0x4a1f6e=a345_0x54c6,_0x89eca3=camelCaseFlagsToKebab(_0x45e2f4),_0x5f208c=parseDynamicFlags(),_0x2e94e2=new Set([..._0x89eca3,..._0x5f208c]);return Array[_0x4a1f6e(0xc8)](_0x2e94e2);}export function normalizeLegacyBffSaveFlags(_0x37d2cd){const _0x20cb47=a345_0x54c6,_0x369dfe=new Set(_0x37d2cd);return _0x369dfe[_0x20cb47(0xcf)](_0x20cb47(0xc4))&&_0x369dfe[_0x20cb47(0xc7)](_0x20cb47(0xd9)),Array[_0x20cb47(0xc8)](_0x369dfe);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x28da1c,_0x56f506,_0x16a845){const _0x3cfe28=a345_0x54c6;logger[_0x3cfe28(0xca)](process['cwd']());if(_0x16a845?.[_0x3cfe28(0xd7)]||_0x28da1c===_0x3cfe28(0xd8)){showHelp();return;}console['error'](_0x3cfe28(0xc3)+(_0x28da1c||_0x3cfe28(0xcb))),console[_0x3cfe28(0xce)](_0x3cfe28(0xd4)),console[_0x3cfe28(0xce)]('\x20\x20'+CLI_BIN_NAME+_0x3cfe28(0xd6)),console['log'](''),console[_0x3cfe28(0xce)](_0x3cfe28(0xc1)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x3cfe28(0xbd)]('skill',_0x3cfe28(0xdd)+_0x28da1c),process['exit'](0x1);}function showHelp(){const _0x5c1636=a345_0x54c6;console[_0x5c1636(0xce)](_0x5c1636(0xdb)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x5c1636(0xd1));}
@@ -1 +1 @@
1
- const a346_0x25b952=a346_0x32f4;(function(_0x1b5000,_0x44a428){const _0x232e2a=a346_0x32f4,_0x358b2d=_0x1b5000();while(!![]){try{const _0x113bb3=-parseInt(_0x232e2a(0xa9))/0x1*(-parseInt(_0x232e2a(0x9f))/0x2)+-parseInt(_0x232e2a(0xb6))/0x3*(-parseInt(_0x232e2a(0xb9))/0x4)+parseInt(_0x232e2a(0xa4))/0x5*(parseInt(_0x232e2a(0xb2))/0x6)+parseInt(_0x232e2a(0xa1))/0x7*(parseInt(_0x232e2a(0x94))/0x8)+parseInt(_0x232e2a(0xbb))/0x9+-parseInt(_0x232e2a(0x8b))/0xa+-parseInt(_0x232e2a(0xbe))/0xb;if(_0x113bb3===_0x44a428)break;else _0x358b2d['push'](_0x358b2d['shift']());}catch(_0x3f37ef){_0x358b2d['push'](_0x358b2d['shift']());}}}(a346_0x4c67,0xbfd51));import{execaSync}from'execa';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills@latest';function a346_0x32f4(_0x3852cd,_0x414637){_0x3852cd=_0x3852cd-0x8b;const _0x4c67f7=a346_0x4c67();let _0x32f404=_0x4c67f7[_0x3852cd];return _0x32f404;}export const NPX_SKILLS_SUBCOMMAND_ADD=a346_0x25b952(0x91);export const NPX_SKILLS_FLAG_SKILL=a346_0x25b952(0xa3);export const RABETBASE_SKILL_SOURCE=a346_0x25b952(0xa6);export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE=a346_0x25b952(0xa7);export function resolveGlobalSkillName(_0x1bfeeb){const _0x14431d=a346_0x25b952;switch(_0x1bfeeb[_0x14431d(0xa2)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x372451){const _0x37abe9=a346_0x25b952,_0x2eecaa=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x372451&&_0x2eecaa[_0x37abe9(0xab)](NPX_SKILLS_FLAG_SKILL,_0x372451),_0x2eecaa;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a346_0x25b952(0x92),...buildNpxSkillsAddArgv()][a346_0x25b952(0xba)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a346_0x25b952(0x92),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a346_0x25b952(0xba)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x4cae0c,_0x11fcb6,_0x4a0e14){return{'ok':![],'status':_0x11fcb6,'code':_0x4cae0c,'error':'['+_0x4cae0c+']\x20'+_0x4a0e14};}function a346_0x4c67(){const _0x51bda8=['439954ijOQJy','signal','8995zOaxwu','trim','--skill','1985HdxRDI','message','lovrabet/rabetbase','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','skill','1wdrtQl','stdout','push','state','warn','pipe','code','Installer\x20reported\x20','CHILD_EXIT_NONZERO','9276kuqkqY','expectedSkillName','reason','EACCES','3068220cXUqJV','CHILD_TERMINATED','inherit','4RZuyqY','join','3922218pXGuTZ','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','absent','6670059DpCbHr','shortMessage','exitCode','12573970UgSddv','match','npx\x20terminated\x20by\x20signal\x20','PERMISSION_DENIED','stdio','\x22\x20install\x20state:\x20','add','npx','\x20failed\x20target(s)','2224RJeDNd','log','stderr','present','INSTALL_PARTIAL','exit\x20','SPAWN_FAILED','filter','npx\x20failed\x20to\x20start','SKILL_NOT_INSTALLED','unknown'];a346_0x4c67=function(){return _0x51bda8;};return a346_0x4c67();}function execaOptions(_0x4ec89e,_0x12cab1){const _0x26e500={...process.env};return delete _0x26e500['npm_config_global'],delete _0x26e500['NPM_CONFIG_GLOBAL'],{'cwd':_0x4ec89e,'stdio':_0x12cab1,'env':_0x26e500,'extendEnv':![],'shell':![],'reject':![],..._0x12cab1==='pipe'?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeExecaResult(_0xa7f557,_0x1af370,_0xca4d3){const _0x4c1ed2=a346_0x25b952,_0x5f5a7e=[_0xa7f557[_0x4c1ed2(0xaa)]?String(_0xa7f557[_0x4c1ed2(0xaa)]):'',_0xa7f557['stderr']?String(_0xa7f557[_0x4c1ed2(0x96)]):''][_0x4c1ed2(0x9b)](Boolean)[_0x4c1ed2(0xba)]('\x0a')[_0x4c1ed2(0xa2)](),_0x4b28cd=_0xa7f557[_0x4c1ed2(0xc0)]??null;if(_0xa7f557[_0x4c1ed2(0xaf)]){const _0x4df038=_0xa7f557['code']==='ENOENT'?'NPX_NOT_FOUND':_0xa7f557[_0x4c1ed2(0xaf)]==='EPERM'||_0xa7f557['code']===_0x4c1ed2(0xb5)?_0x4c1ed2(0x8e):_0x4c1ed2(0x9a);return failure(_0x4df038,_0x4b28cd,_0xa7f557[_0x4c1ed2(0xbf)]??_0xa7f557[_0x4c1ed2(0xa5)]??_0xa7f557[_0x4c1ed2(0xaf)]);}if(_0xa7f557[_0x4c1ed2(0xa0)])return failure(_0x4c1ed2(0xb7),_0x4b28cd,_0x4c1ed2(0x8d)+_0xa7f557[_0x4c1ed2(0xa0)]);if(_0xa7f557['failed']&&_0x4b28cd===null)return failure(_0x4c1ed2(0x9a),_0x4b28cd,_0xa7f557[_0x4c1ed2(0xbf)]??_0xa7f557['message']??_0x4c1ed2(0x9c));if(_0x4b28cd!==0x0)return failure(_0x4c1ed2(0xb1),_0x4b28cd,_0x5f5a7e||_0xa7f557[_0x4c1ed2(0xbf)]||_0x4c1ed2(0x99)+(_0x4b28cd??_0x4c1ed2(0x9e)));const _0x2eb00e=_0x1af370?resolveInstalledSkill(_0x1af370,_0xca4d3):undefined,_0xbc578b=_0x5f5a7e[_0x4c1ed2(0x8c)](/Failed to install\s+(\d+)/i);if(_0xbc578b&&Number(_0xbc578b[0x1])>0x0){const _0x5b9f20=_0x4c1ed2(0xb0)+_0xbc578b[0x1]+_0x4c1ed2(0x93)+(_0x5f5a7e?':\x0a'+_0x5f5a7e:'');if(_0x2eb00e?.[_0x4c1ed2(0xac)]===_0x4c1ed2(0x97))return{'ok':!![],'status':0x0,'partialFailure':{'count':Number(_0xbc578b[0x1]),'output':_0x5f5a7e}};return failure(_0x4c1ed2(0x98),0x0,_0x5b9f20);}if(_0x2eb00e){if(_0x2eb00e[_0x4c1ed2(0xac)]===_0x4c1ed2(0xbd))return failure(_0x4c1ed2(0x9d),0x0,'Skill\x20\x22'+_0x1af370+_0x4c1ed2(0xbc)+_0x2eb00e['checked'][_0x4c1ed2(0xba)](',\x20')+')');_0x2eb00e[_0x4c1ed2(0xac)]==='unverifiable'&&console[_0x4c1ed2(0xad)]('!\x20Could\x20not\x20verify\x20\x22'+_0x1af370+_0x4c1ed2(0x90)+_0x2eb00e[_0x4c1ed2(0xb4)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2456d9,_0x29af77){const _0x3359f2=a346_0x25b952;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x569ff1=_0x29af77?.[_0x3359f2(0x8f)]??_0x3359f2(0xb8),_0x2b9f78=buildNpxSkillsAddArgv(_0x29af77?.[_0x3359f2(0xa8)]),_0x3c4af9=[_0x3359f2(0x92),..._0x2b9f78]['join']('\x20');console[_0x3359f2(0x95)]('*\x20'+_0x3c4af9);const _0x38f697=execaSync(_0x3359f2(0x92),_0x2b9f78,execaOptions(_0x2456d9,_0x569ff1));return normalizeExecaResult(_0x38f697);}export function runNpxSkillsAddGlobal(_0x35c924,_0xda4be3,_0x2a617c){const _0x1215d6=a346_0x25b952;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x216d6d=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xda4be3,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x1d2084=[_0x1215d6(0x92),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xda4be3,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x1215d6(0xba)]('\x20');console[_0x1215d6(0x95)]('*\x20'+_0x1d2084);const _0x333574=execaSync('npx',_0x216d6d,execaOptions(_0x35c924,_0x1215d6(0xae))),_0x451560=normalizeExecaResult(_0x333574,_0x2a617c?.[_0x1215d6(0xb3)]??resolveGlobalSkillName(_0xda4be3),_0x2a617c?.['presence']);if(_0x2a617c?.[_0x1215d6(0x8f)]!==_0x1215d6(0xae)&&!_0x451560['partialFailure']){const _0x14dc1c=[_0x333574[_0x1215d6(0xaa)],_0x333574[_0x1215d6(0x96)]][_0x1215d6(0x9b)](Boolean)[_0x1215d6(0xba)]('\x0a')[_0x1215d6(0xa2)]();if(_0x14dc1c)console['log'](_0x14dc1c);}return _0x451560;}
1
+ const a346_0x3c7c5c=a346_0x235a;(function(_0x490a15,_0x284eb3){const _0x517c16=a346_0x235a,_0x40a5d7=_0x490a15();while(!![]){try{const _0x3c21c3=parseInt(_0x517c16(0xc2))/0x1*(parseInt(_0x517c16(0xb8))/0x2)+-parseInt(_0x517c16(0xd2))/0x3+-parseInt(_0x517c16(0xc3))/0x4*(-parseInt(_0x517c16(0xd5))/0x5)+-parseInt(_0x517c16(0xdc))/0x6*(parseInt(_0x517c16(0xe2))/0x7)+-parseInt(_0x517c16(0xad))/0x8+parseInt(_0x517c16(0xdb))/0x9+-parseInt(_0x517c16(0xd0))/0xa*(-parseInt(_0x517c16(0xc5))/0xb);if(_0x3c21c3===_0x284eb3)break;else _0x40a5d7['push'](_0x40a5d7['shift']());}catch(_0x6df07b){_0x40a5d7['push'](_0x40a5d7['shift']());}}}(a346_0x53d1,0xcd4b6));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=a346_0x3c7c5c(0xb9);export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a346_0x3c7c5c(0xc6);export const RABETBASE_SKILL_SOURCE=a346_0x3c7c5c(0xcb);export const RABETBASE_GLOBAL_SKILL_NAME=a346_0x3c7c5c(0xac);export const RABETBASE_SKILL_GIT_SOURCE=a346_0x3c7c5c(0xbb);export function resolveGlobalSkillName(_0x2d4736){const _0x1e19df=a346_0x3c7c5c;switch(_0x2d4736[_0x1e19df(0xc7)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}function a346_0x235a(_0x16c191,_0x33b2cb){_0x16c191=_0x16c191-0xac;const _0x53d139=a346_0x53d1();let _0x235a5d=_0x53d139[_0x16c191];return _0x235a5d;}export function buildNpxSkillsAddArgv(_0x2cdc24){const _0x57110b=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x2cdc24&&_0x57110b['push'](NPX_SKILLS_FLAG_SKILL,_0x2cdc24),_0x57110b;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a346_0x3c7c5c(0xba),...buildNpxSkillsAddArgv()][a346_0x3c7c5c(0xcf)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a346_0x3c7c5c(0xba),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(_0x11317d,_0x19a99f,_0x5c1ffc){return{'ok':![],'status':_0x19a99f,'code':_0x11317d,'error':'['+_0x11317d+']\x20'+_0x5c1ffc};}function execaOptions(_0x35ef87,_0x29dec0){const _0x59c942=a346_0x3c7c5c,_0x85ad90={...process.env};return delete _0x85ad90[_0x59c942(0xc0)],delete _0x85ad90[_0x59c942(0xbf)],{'cwd':_0x35ef87,'stdio':_0x29dec0,'env':_0x85ad90,'extendEnv':![],'shell':![],'reject':![],..._0x29dec0===_0x59c942(0xdd)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function a346_0x53d1(){const _0x327325=['git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','ENOENT','state','presence','NPM_CONFIG_GLOBAL','npm_config_global','EPERM','3887kFUIAa','4sEVpqM','stdout','44kgfibH','--skill','trim','log','warn','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','lovrabet/rabetbase','exit\x20','!\x20Could\x20not\x20verify\x20\x22','absent','join','598310iunGrN','message','3196575XPJGxv','npx\x20failed\x20to\x20start','INSTALL_PARTIAL','8059910jqucQz','shortMessage','failed','PERMISSION_DENIED','exitCode','SKILL_NOT_INSTALLED','1976400GOKVvS','1501218MdewEh','pipe','NPX_NOT_FOUND','present','CHILD_TERMINATED','unknown','42TJsApJ','stderr','code','rabetbase','345296FfKnot','expectedSkillName','unverifiable','Skill\x20\x22','checked','CHILD_EXIT_NONZERO','stdio','npx\x20terminated\x20by\x20signal\x20','reason','match','signal','710SJzRFu','skills@latest','npx'];a346_0x53d1=function(){return _0x327325;};return a346_0x53d1();}function normalizeExecaResult(_0x5d4bca,_0x545be4,_0x39fbf4){const _0x539f53=a346_0x3c7c5c,_0x18c208=[_0x5d4bca[_0x539f53(0xc4)]?String(_0x5d4bca[_0x539f53(0xc4)]):'',_0x5d4bca[_0x539f53(0xe3)]?String(_0x5d4bca[_0x539f53(0xe3)]):'']['filter'](Boolean)[_0x539f53(0xcf)]('\x0a')[_0x539f53(0xc7)](),_0xbb93f=_0x5d4bca[_0x539f53(0xd9)]??null;if(_0x5d4bca[_0x539f53(0xe4)]){const _0x29a9b2=_0x5d4bca[_0x539f53(0xe4)]===_0x539f53(0xbc)?_0x539f53(0xde):_0x5d4bca[_0x539f53(0xe4)]===_0x539f53(0xc1)||_0x5d4bca[_0x539f53(0xe4)]==='EACCES'?_0x539f53(0xd8):'SPAWN_FAILED';return failure(_0x29a9b2,_0xbb93f,_0x5d4bca[_0x539f53(0xd6)]??_0x5d4bca['message']??_0x5d4bca[_0x539f53(0xe4)]);}if(_0x5d4bca['signal'])return failure(_0x539f53(0xe0),_0xbb93f,_0x539f53(0xb4)+_0x5d4bca[_0x539f53(0xb7)]);if(_0x5d4bca[_0x539f53(0xd7)]&&_0xbb93f===null)return failure('SPAWN_FAILED',_0xbb93f,_0x5d4bca[_0x539f53(0xd6)]??_0x5d4bca[_0x539f53(0xd1)]??_0x539f53(0xd3));if(_0xbb93f!==0x0)return failure(_0x539f53(0xb2),_0xbb93f,_0x18c208||_0x5d4bca['shortMessage']||_0x539f53(0xcc)+(_0xbb93f??_0x539f53(0xe1)));const _0x3c021a=_0x545be4?resolveInstalledSkill(_0x545be4,_0x39fbf4):undefined,_0x48cc1e=_0x18c208[_0x539f53(0xb6)](/Failed to install\s+(\d+)/i);if(_0x48cc1e&&Number(_0x48cc1e[0x1])>0x0){const _0x11a429='Installer\x20reported\x20'+_0x48cc1e[0x1]+'\x20failed\x20target(s)'+(_0x18c208?':\x0a'+_0x18c208:'');if(_0x3c021a?.[_0x539f53(0xbd)]===_0x539f53(0xdf))return{'ok':!![],'status':0x0,'partialFailure':{'count':Number(_0x48cc1e[0x1]),'output':_0x18c208}};return failure(_0x539f53(0xd4),0x0,_0x11a429);}if(_0x3c021a){if(_0x3c021a[_0x539f53(0xbd)]===_0x539f53(0xce))return failure(_0x539f53(0xda),0x0,_0x539f53(0xb0)+_0x545be4+_0x539f53(0xca)+_0x3c021a[_0x539f53(0xb1)][_0x539f53(0xcf)](',\x20')+')');_0x3c021a[_0x539f53(0xbd)]===_0x539f53(0xaf)&&console[_0x539f53(0xc9)](_0x539f53(0xcd)+_0x545be4+'\x22\x20install\x20state:\x20'+_0x3c021a[_0x539f53(0xb5)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x489298,_0x16ff0f){const _0x104ac3=a346_0x3c7c5c;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1fede6=_0x16ff0f?.[_0x104ac3(0xb3)]??'inherit',_0x52ad44=buildNpxSkillsAddArgv(_0x16ff0f?.['skill']),_0x298477=[_0x104ac3(0xba),..._0x52ad44]['join']('\x20');console[_0x104ac3(0xc8)]('*\x20'+_0x298477);const _0x4cd68a=execaSync(_0x104ac3(0xba),_0x52ad44,execaOptions(_0x489298,_0x1fede6));return normalizeExecaResult(_0x4cd68a);}export function runNpxSkillsAddGlobal(_0x58f61e,_0x4cebec,_0x179f96){const _0x557fae=a346_0x3c7c5c;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x14269b=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4cebec,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x188a79=['npx',NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4cebec,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x557fae(0xcf)]('\x20');console['log']('*\x20'+_0x188a79);const _0x2d30d5=execaSync(_0x557fae(0xba),_0x14269b,execaOptions(_0x58f61e,_0x557fae(0xdd))),_0x102064=normalizeExecaResult(_0x2d30d5,_0x179f96?.[_0x557fae(0xae)]??resolveGlobalSkillName(_0x4cebec),_0x179f96?.[_0x557fae(0xbe)]);if(_0x179f96?.[_0x557fae(0xb3)]!==_0x557fae(0xdd)&&!_0x102064['partialFailure']){const _0x4b6be5=[_0x2d30d5[_0x557fae(0xc4)],_0x2d30d5['stderr']]['filter'](Boolean)['join']('\x0a')[_0x557fae(0xc7)]();if(_0x4b6be5)console[_0x557fae(0xc8)](_0x4b6be5);}return _0x102064;}
@@ -1 +1 @@
1
- const a347_0x527860=a347_0x4269;(function(_0x11f275,_0x44689c){const _0x30bd31=a347_0x4269,_0x596945=_0x11f275();while(!![]){try{const _0x3c1751=parseInt(_0x30bd31(0x90))/0x1*(-parseInt(_0x30bd31(0x8b))/0x2)+parseInt(_0x30bd31(0x8d))/0x3+parseInt(_0x30bd31(0x8f))/0x4*(parseInt(_0x30bd31(0xa1))/0x5)+-parseInt(_0x30bd31(0x91))/0x6+-parseInt(_0x30bd31(0xa7))/0x7*(-parseInt(_0x30bd31(0xab))/0x8)+parseInt(_0x30bd31(0x95))/0x9+-parseInt(_0x30bd31(0xa9))/0xa*(-parseInt(_0x30bd31(0xa8))/0xb);if(_0x3c1751===_0x44689c)break;else _0x596945['push'](_0x596945['shift']());}catch(_0x58763a){_0x596945['push'](_0x596945['shift']());}}}(a347_0x57ad,0x65264));function a347_0x57ad(){const _0x34c401=['present','message','find','.claude','kind','.agents','home','version','unusable','unverifiable','lockFile','5YUcPho','\x20is\x20unreadable:\x20','utf8','map','.skill-lock.json','number','7MlIZHJ','3443VZODty','21710sUGuVo','not-recorded','1885768TrYQth','globalSkillsDirs','450862rveqgf','recorded','1782720MXVzei','reason','927380WwwGnh','3hMvrWG','4413960SxDNaH','parse','\x20has\x20no\x20skills\x20map','skills','764388rdIJGv'];a347_0x57ad=function(){return _0x34c401;};return a347_0x57ad();}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a347_0x527860(0x9b),a347_0x527860(0xa5));function a347_0x4269(_0x3d790a,_0x1cc004){_0x3d790a=_0x3d790a-0x8b;const _0x57ad5d=a347_0x57ad();let _0x42693d=_0x57ad5d[_0x3d790a];return _0x42693d;}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a347_0x527860(0x94)),join(a347_0x527860(0x99),'skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x2cbc2b,_0x35d6d7){const _0x5c4bb4=a347_0x527860;if(!existsSync(_0x2cbc2b))return{'kind':_0x5c4bb4(0xaa)};let _0x5367c4;try{_0x5367c4=JSON[_0x5c4bb4(0x92)](readFileSync(_0x2cbc2b,_0x5c4bb4(0xa3)));}catch(_0x2ff225){return{'kind':'unusable','reason':_0x2cbc2b+_0x5c4bb4(0xa2)+_0x2ff225[_0x5c4bb4(0x97)]};}const _0x8a5a0=_0x5367c4;if(typeof _0x8a5a0?.[_0x5c4bb4(0x9d)]!==_0x5c4bb4(0xa6)||!SUPPORTED_LOCK_VERSIONS['includes'](_0x8a5a0['version']))return{'kind':_0x5c4bb4(0x9e),'reason':_0x2cbc2b+'\x20uses\x20unsupported\x20version\x20'+String(_0x8a5a0?.['version'])};if(!_0x8a5a0[_0x5c4bb4(0x94)]||typeof _0x8a5a0[_0x5c4bb4(0x94)]!=='object')return{'kind':_0x5c4bb4(0x9e),'reason':_0x2cbc2b+_0x5c4bb4(0x93)};return _0x8a5a0[_0x5c4bb4(0x94)][_0x35d6d7]?{'kind':_0x5c4bb4(0x8c)}:{'kind':_0x5c4bb4(0xaa)};}export function resolveInstalledSkill(_0x1f6c2d,_0x392ff4){const _0x1a2322=a347_0x527860,_0x16c8ea=_0x392ff4?.[_0x1a2322(0x9c)]??homedir(),_0x2e6b4c=_0x392ff4?.[_0x1a2322(0xac)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x1a2322(0xa4)](_0x2b388=>join(_0x16c8ea,_0x2b388)),_0x1267ce=_0x392ff4?.[_0x1a2322(0xa0)]??join(_0x16c8ea,SKILL_LOCK_RELATIVE_PATH),_0x5a815e=_0x2e6b4c[_0x1a2322(0xa4)](_0x3a4633=>join(_0x3a4633,_0x1f6c2d,'SKILL.md')),_0x1f3d8b=_0x5a815e[_0x1a2322(0x98)](_0x1ed5b3=>existsSync(_0x1ed5b3));if(_0x1f3d8b)return{'state':_0x1a2322(0x96),'path':_0x1f3d8b};const _0x200dba=readLockLookup(_0x1267ce,_0x1f6c2d);if(_0x200dba[_0x1a2322(0x9a)]===_0x1a2322(0x9e))return{'state':'unverifiable','reason':_0x200dba[_0x1a2322(0x8e)]};if(_0x200dba[_0x1a2322(0x9a)]==='recorded')return{'state':_0x1a2322(0x9f),'reason':_0x1267ce+'\x20records\x20\x22'+_0x1f6c2d+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x5a815e['join'](',\x20')+')')};return{'state':'absent','checked':_0x5a815e};}
1
+ const a347_0x595d9a=a347_0x5c08;(function(_0x2a32c0,_0x4ef839){const _0x41fdca=a347_0x5c08,_0x4bae0b=_0x2a32c0();while(!![]){try{const _0xae9204=parseInt(_0x41fdca(0x19b))/0x1+-parseInt(_0x41fdca(0x199))/0x2*(parseInt(_0x41fdca(0x190))/0x3)+-parseInt(_0x41fdca(0x187))/0x4*(-parseInt(_0x41fdca(0x17f))/0x5)+parseInt(_0x41fdca(0x18a))/0x6+parseInt(_0x41fdca(0x19a))/0x7+-parseInt(_0x41fdca(0x189))/0x8*(-parseInt(_0x41fdca(0x183))/0x9)+parseInt(_0x41fdca(0x19e))/0xa*(-parseInt(_0x41fdca(0x193))/0xb);if(_0xae9204===_0x4ef839)break;else _0x4bae0b['push'](_0x4bae0b['shift']());}catch(_0x12b8fd){_0x4bae0b['push'](_0x4bae0b['shift']());}}}(a347_0x483c,0x1b861));function a347_0x483c(){const _0x31192a=['\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','314430yZvyba','skills','\x20records\x20\x22','number','1452699VYUiIP','utf8','unverifiable','message','12QzOctn','join','8sQlwwa','925956tFIXeg','home','lockFile','.agents','version','includes','383511obgMmD','recorded','\x20is\x20unreadable:\x20','2018797EpAvlp','reason','absent','present','kind','object','2oSCzeF','380947SFWoEI','48812GJmSCe','globalSkillsDirs','unusable','20mAkbGC','\x20has\x20no\x20skills\x20map'];a347_0x483c=function(){return _0x31192a;};return a347_0x483c();}import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';function a347_0x5c08(_0x1367d6,_0x481666){_0x1367d6=_0x1367d6-0x17d;const _0x483c6d=a347_0x483c();let _0x5c08a8=_0x483c6d[_0x1367d6];return _0x5c08a8;}import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join('.agents','.skill-lock.json');export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a347_0x595d9a(0x18d),a347_0x595d9a(0x180)),join('.claude',a347_0x595d9a(0x180))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x387c92,_0x4cfb49){const _0x5935b5=a347_0x595d9a;if(!existsSync(_0x387c92))return{'kind':'not-recorded'};let _0xac9437;try{_0xac9437=JSON['parse'](readFileSync(_0x387c92,_0x5935b5(0x184)));}catch(_0xa0a136){return{'kind':_0x5935b5(0x19d),'reason':_0x387c92+_0x5935b5(0x192)+_0xa0a136[_0x5935b5(0x186)]};}const _0xee9ee2=_0xac9437;if(typeof _0xee9ee2?.['version']!==_0x5935b5(0x182)||!SUPPORTED_LOCK_VERSIONS[_0x5935b5(0x18f)](_0xee9ee2['version']))return{'kind':_0x5935b5(0x19d),'reason':_0x387c92+'\x20uses\x20unsupported\x20version\x20'+String(_0xee9ee2?.[_0x5935b5(0x18e)])};if(!_0xee9ee2[_0x5935b5(0x180)]||typeof _0xee9ee2[_0x5935b5(0x180)]!==_0x5935b5(0x198))return{'kind':_0x5935b5(0x19d),'reason':_0x387c92+_0x5935b5(0x17d)};return _0xee9ee2[_0x5935b5(0x180)][_0x4cfb49]?{'kind':'recorded'}:{'kind':'not-recorded'};}export function resolveInstalledSkill(_0x1fdee8,_0x320c26){const _0x209338=a347_0x595d9a,_0x1a53da=_0x320c26?.[_0x209338(0x18b)]??homedir(),_0x17d2b5=_0x320c26?.[_0x209338(0x19c)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0xd60fa5=>join(_0x1a53da,_0xd60fa5)),_0x441191=_0x320c26?.[_0x209338(0x18c)]??join(_0x1a53da,SKILL_LOCK_RELATIVE_PATH),_0x15c990=_0x17d2b5['map'](_0x596fcd=>join(_0x596fcd,_0x1fdee8,'SKILL.md')),_0x1c5d4d=_0x15c990['find'](_0x56d60b=>existsSync(_0x56d60b));if(_0x1c5d4d)return{'state':_0x209338(0x196),'path':_0x1c5d4d};const _0x58f77d=readLockLookup(_0x441191,_0x1fdee8);if(_0x58f77d[_0x209338(0x197)]==='unusable')return{'state':_0x209338(0x185),'reason':_0x58f77d[_0x209338(0x194)]};if(_0x58f77d['kind']===_0x209338(0x191))return{'state':_0x209338(0x185),'reason':_0x441191+_0x209338(0x181)+_0x1fdee8+_0x209338(0x17e)+('('+_0x15c990[_0x209338(0x188)](',\x20')+')')};return{'state':_0x209338(0x195),'checked':_0x15c990};}
@@ -1 +1 @@
1
- (function(_0x1b94de,_0x423def){const _0xe77c8e=a348_0x5945,_0x52b0be=_0x1b94de();while(!![]){try{const _0x1a16a4=-parseInt(_0xe77c8e(0x1c2))/0x1+parseInt(_0xe77c8e(0x1cb))/0x2+parseInt(_0xe77c8e(0x1bd))/0x3*(-parseInt(_0xe77c8e(0x1c4))/0x4)+parseInt(_0xe77c8e(0x1c8))/0x5+-parseInt(_0xe77c8e(0x1c9))/0x6+-parseInt(_0xe77c8e(0x1bc))/0x7*(-parseInt(_0xe77c8e(0x1be))/0x8)+parseInt(_0xe77c8e(0x1bf))/0x9;if(_0x1a16a4===_0x423def)break;else _0x52b0be['push'](_0x52b0be['shift']());}catch(_0x1bdd65){_0x52b0be['push'](_0x52b0be['shift']());}}}(a348_0x14b5,0x80542));function a348_0x14b5(){const _0x4694ff=['test','1023589biwAkg','stringify','4AUoeLs','durationMs','error','entries','4319550GrwqhW','3815040WIjyxE','some','955416sxajSm','rabetbase.command','service','flags','command','77371wHjIir','2280951uXtuiV','328JOUUGi','10355301GvusgQ','[REDACTED]'];a348_0x14b5=function(){return _0x4694ff;};return a348_0x14b5();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a348_0x5945(_0x1910e3,_0x2dcdc3){_0x1910e3=_0x1910e3-0x1ba;const _0x14b5e0=a348_0x14b5();let _0x594554=_0x14b5e0[_0x1910e3];return _0x594554;}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(_0x5a37cd){const _0x213a4e=a348_0x5945;return SENSITIVE_PATTERNS[_0x213a4e(0x1ca)](_0x583214=>_0x583214[_0x213a4e(0x1c1)](_0x5a37cd));}function sanitizeFlags(_0x2e87b5){const _0x5d007c=a348_0x5945,_0x5974c7={};for(const [_0x196a10,_0x7f17f6]of Object[_0x5d007c(0x1c7)](_0x2e87b5)){isSensitiveKey(_0x196a10)?_0x5974c7[_0x196a10]=_0x7f17f6!=null&&_0x7f17f6!==''?_0x5d007c(0x1c0):_0x7f17f6:_0x5974c7[_0x196a10]=_0x7f17f6;}return _0x5974c7;}export async function reportCommandTrace(_0x4b93e9){const _0x2799f7=a348_0x5945;try{const _0x3eb526=sanitizeFlags(_0x4b93e9[_0x2799f7(0x1ba)]);await sendCliTraceLog({'spanName':_0x2799f7(0x1cc),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x4b93e9[_0x2799f7(0x1cd)],'command.name':_0x4b93e9[_0x2799f7(0x1bb)],'command.flags':JSON[_0x2799f7(0x1c3)](_0x3eb526),..._0x4b93e9[_0x2799f7(0x1c5)]!=null?{'command.duration_ms':_0x4b93e9[_0x2799f7(0x1c5)]}:{},..._0x4b93e9[_0x2799f7(0x1c6)]?{'command.error':_0x4b93e9['error']instanceof Error?_0x4b93e9[_0x2799f7(0x1c6)]['message']:String(_0x4b93e9[_0x2799f7(0x1c6)])}:{}}});}catch{}}
1
+ (function(_0xa03ffb,_0x48a751){const _0x30a002=a348_0x3698,_0x219f7d=_0xa03ffb();while(!![]){try{const _0x496fc6=-parseInt(_0x30a002(0xc2))/0x1+parseInt(_0x30a002(0xba))/0x2+-parseInt(_0x30a002(0xc3))/0x3+-parseInt(_0x30a002(0xc4))/0x4+parseInt(_0x30a002(0xbd))/0x5+-parseInt(_0x30a002(0xcb))/0x6+-parseInt(_0x30a002(0xbf))/0x7*(-parseInt(_0x30a002(0xcc))/0x8);if(_0x496fc6===_0x48a751)break;else _0x219f7d['push'](_0x219f7d['shift']());}catch(_0x177e17){_0x219f7d['push'](_0x219f7d['shift']());}}}(a348_0xe7f3,0x827aa));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a348_0x3698(_0x27d518,_0x2247c0){_0x27d518=_0x27d518-0xba;const _0xe7f373=a348_0xe7f3();let _0x3698d6=_0xe7f373[_0x27d518];return _0x3698d6;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x4bf74f){const _0x4ccaf6=a348_0x3698;return SENSITIVE_PATTERNS[_0x4ccaf6(0xc7)](_0x32a791=>_0x32a791['test'](_0x4bf74f));}function a348_0xe7f3(){const _0x4fd532=['entries','7yqLRww','message','[REDACTED]','675625GSNpeC','922782KDpgXg','2875976KSKZCo','service','command','some','rabetbase.command','stringify','durationMs','539262sGUWYe','4075944OVKciD','1758646nrzlJH','flags','error','4688580qMVeyN'];a348_0xe7f3=function(){return _0x4fd532;};return a348_0xe7f3();}function sanitizeFlags(_0xc19ac){const _0x166018=a348_0x3698,_0x8d8ff8={};for(const [_0x226c7c,_0x58916b]of Object[_0x166018(0xbe)](_0xc19ac)){isSensitiveKey(_0x226c7c)?_0x8d8ff8[_0x226c7c]=_0x58916b!=null&&_0x58916b!==''?_0x166018(0xc1):_0x58916b:_0x8d8ff8[_0x226c7c]=_0x58916b;}return _0x8d8ff8;}export async function reportCommandTrace(_0x305441){const _0x36f86e=a348_0x3698;try{const _0x5b2758=sanitizeFlags(_0x305441[_0x36f86e(0xbb)]);await sendCliTraceLog({'spanName':_0x36f86e(0xc8),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x305441[_0x36f86e(0xc5)],'command.name':_0x305441[_0x36f86e(0xc6)],'command.flags':JSON[_0x36f86e(0xc9)](_0x5b2758),..._0x305441[_0x36f86e(0xca)]!=null?{'command.duration_ms':_0x305441['durationMs']}:{},..._0x305441[_0x36f86e(0xbc)]?{'command.error':_0x305441[_0x36f86e(0xbc)]instanceof Error?_0x305441[_0x36f86e(0xbc)][_0x36f86e(0xc0)]:String(_0x305441[_0x36f86e(0xbc)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- (function(_0x2fad46,_0x2f95f3){var _0x44e579=a349_0x1018,_0x509a47=_0x2fad46();while(!![]){try{var _0x2d3c1c=parseInt(_0x44e579(0x192))/0x1*(-parseInt(_0x44e579(0x196))/0x2)+parseInt(_0x44e579(0x19a))/0x3+parseInt(_0x44e579(0x197))/0x4+-parseInt(_0x44e579(0x191))/0x5*(parseInt(_0x44e579(0x193))/0x6)+-parseInt(_0x44e579(0x194))/0x7+parseInt(_0x44e579(0x199))/0x8*(parseInt(_0x44e579(0x18f))/0x9)+-parseInt(_0x44e579(0x195))/0xa;if(_0x2d3c1c===_0x2f95f3)break;else _0x509a47['push'](_0x509a47['shift']());}catch(_0x3880b9){_0x509a47['push'](_0x509a47['shift']());}}}(a349_0x46bd,0x67b63));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x10c796,_0x1bc239){var _0x2a959b=a349_0x1018;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x10c796,..._0x1bc239?.[_0x2a959b(0x190)]&&{'rabetbase.help.service':_0x1bc239[_0x2a959b(0x190)]}}});}catch(_0x5c8ef8){console['error'](_0x2a959b(0x198),_0x5c8ef8);}}function a349_0x1018(_0x9ab28c,_0x3fe321){_0x9ab28c=_0x9ab28c-0x18f;var _0x46bda2=a349_0x46bd();var _0x101858=_0x46bda2[_0x9ab28c];return _0x101858;}function a349_0x46bd(){var _0x1fa8b8=['54376sSvcli','1783494HxwoUt','576FbcUkR','service','505DNywcH','37nUBXIT','21558hsyclI','29365Epzxil','5046580mVEDGE','5638tSFSZf','1485384ENWrJg','Failed\x20to\x20report\x20CLI\x20help\x20trace:'];a349_0x46bd=function(){return _0x1fa8b8;};return a349_0x46bd();}
1
+ (function(_0x1ae877,_0x1096de){var _0x573c8d=a349_0x446b,_0x1f737b=_0x1ae877();while(!![]){try{var _0x38a872=-parseInt(_0x573c8d(0xb0))/0x1*(parseInt(_0x573c8d(0xa9))/0x2)+-parseInt(_0x573c8d(0xb3))/0x3*(parseInt(_0x573c8d(0xb1))/0x4)+parseInt(_0x573c8d(0xa8))/0x5+-parseInt(_0x573c8d(0xaf))/0x6*(-parseInt(_0x573c8d(0xad))/0x7)+parseInt(_0x573c8d(0xa6))/0x8+-parseInt(_0x573c8d(0xa7))/0x9*(-parseInt(_0x573c8d(0xab))/0xa)+-parseInt(_0x573c8d(0xae))/0xb;if(_0x38a872===_0x1096de)break;else _0x1f737b['push'](_0x1f737b['shift']());}catch(_0x3cdccf){_0x1f737b['push'](_0x1f737b['shift']());}}}(a349_0x8f6f,0x46167));function a349_0x8f6f(){var _0x4890ab=['3333584yWzmeN','123516ulsZtl','1994910AQBjCX','4ZCwKLO','service','30KQekml','error','224973XMOyNz','6997529zUNjAW','102xAogbC','212479vlcWxH','9572qbVSYe','cli.help','69mGGPVW','Failed\x20to\x20report\x20CLI\x20help\x20trace:'];a349_0x8f6f=function(){return _0x4890ab;};return a349_0x8f6f();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a349_0x446b(_0x488b2c,_0x5ec594){_0x488b2c=_0x488b2c-0xa6;var _0x8f6fc4=a349_0x8f6f();var _0x446be8=_0x8f6fc4[_0x488b2c];return _0x446be8;}export async function reportCliHelpTrace(_0x4cf9a6,_0x3bd34f){var _0x4d5c8c=a349_0x446b;try{await sendCliTraceLog({'spanName':_0x4d5c8c(0xb2),'logData':{'rabetbase.help.kind':_0x4cf9a6,..._0x3bd34f?.[_0x4d5c8c(0xaa)]&&{'rabetbase.help.service':_0x3bd34f[_0x4d5c8c(0xaa)]}}});}catch(_0x11dfdd){console[_0x4d5c8c(0xac)](_0x4d5c8c(0xb4),_0x11dfdd);}}
@@ -1 +1 @@
1
- (function(_0x29005b,_0x132113){const _0x55a70a=a350_0x4ba5,_0x3b7fb9=_0x29005b();while(!![]){try{const _0x517606=parseInt(_0x55a70a(0x1d7))/0x1*(parseInt(_0x55a70a(0x1d8))/0x2)+parseInt(_0x55a70a(0x1ca))/0x3*(-parseInt(_0x55a70a(0x1d3))/0x4)+-parseInt(_0x55a70a(0x1d6))/0x5+-parseInt(_0x55a70a(0x1d5))/0x6+-parseInt(_0x55a70a(0x1d0))/0x7*(-parseInt(_0x55a70a(0x1d2))/0x8)+parseInt(_0x55a70a(0x1d9))/0x9+parseInt(_0x55a70a(0x1cd))/0xa;if(_0x517606===_0x132113)break;else _0x3b7fb9['push'](_0x3b7fb9['shift']());}catch(_0x423cdb){_0x3b7fb9['push'](_0x3b7fb9['shift']());}}}(a350_0x1e2f,0x56f08));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a350_0x4ba5(_0x4508fd,_0x5d2d05){_0x4508fd=_0x4508fd-0x1c9;const _0x1e2f46=a350_0x1e2f();let _0x4ba55e=_0x1e2f46[_0x4508fd];return _0x4ba55e;}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';function a350_0x1e2f(){const _0x17382b=['2051lXeDgX','tenant_code','9584tOpEeX','232uGytiy','username','1477458dbIbcG','964370VIASCv','1vzipxb','181014VVRnhc','381222FSPJvZ','email','18387RnfeCd','unknown','tenant','6668240aujqVE','nickname','production'];a350_0x1e2f=function(){return _0x17382b;};return a350_0x1e2f();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x27f03f=a350_0x4ba5,_0x3d22bf=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x191e17=_0x3d22bf?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x27f03f(0x1cb)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x27f03f(0x1cf))}),setUserContext({'id':_0x191e17?.['id'],'username':_0x191e17?.[_0x27f03f(0x1d4)],'nickname':_0x191e17?.[_0x27f03f(0x1ce)],'email':_0x191e17?.[_0x27f03f(0x1c9)],'tenantCode':_0x191e17?.[_0x27f03f(0x1cc)]?.[_0x27f03f(0x1d1)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x3d22bf;}
1
+ (function(_0xf74f1,_0x22f458){const _0x6f0df3=a350_0x41a3,_0x16defb=_0xf74f1();while(!![]){try{const _0xfcf5f3=-parseInt(_0x6f0df3(0x185))/0x1*(-parseInt(_0x6f0df3(0x17d))/0x2)+-parseInt(_0x6f0df3(0x17a))/0x3*(parseInt(_0x6f0df3(0x181))/0x4)+parseInt(_0x6f0df3(0x17b))/0x5+parseInt(_0x6f0df3(0x187))/0x6+parseInt(_0x6f0df3(0x180))/0x7*(-parseInt(_0x6f0df3(0x179))/0x8)+parseInt(_0x6f0df3(0x184))/0x9+-parseInt(_0x6f0df3(0x188))/0xa;if(_0xfcf5f3===_0x22f458)break;else _0x16defb['push'](_0x16defb['shift']());}catch(_0x4ba5e5){_0x16defb['push'](_0x16defb['shift']());}}}(a350_0x1cf6,0x52d9f));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a350_0x1cf6(){const _0x6ce872=['unknown','2890044uAdQXA','352082KLMdSG','username','1967076vajhGC','2320540TwWPYt','email','7248YnGGEV','541149qFUgaa','266780NbAOqe','tenant_code','2ENLolY','daily','nickname','2338szTMAu','4ODXSiv','tenant'];a350_0x1cf6=function(){return _0x6ce872;};return a350_0x1cf6();}function a350_0x41a3(_0x127b2a,_0x15129e){_0x127b2a=_0x127b2a-0x179;const _0x1cf627=a350_0x1cf6();let _0x41a31d=_0x1cf627[_0x127b2a];return _0x41a31d;}import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x411d0a=a350_0x41a3,_0x2df05a=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x4c3e4a=_0x2df05a?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x411d0a(0x183)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x411d0a(0x17e):'production')}),setUserContext({'id':_0x4c3e4a?.['id'],'username':_0x4c3e4a?.[_0x411d0a(0x186)],'nickname':_0x4c3e4a?.[_0x411d0a(0x17f)],'email':_0x4c3e4a?.[_0x411d0a(0x189)],'tenantCode':_0x4c3e4a?.[_0x411d0a(0x182)]?.[_0x411d0a(0x17c)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x2df05a;}
@@ -1 +1 @@
1
- function a351_0xd1c6(_0x5e5975,_0x3ac6cc){_0x5e5975=_0x5e5975-0xbf;const _0x2fbd40=a351_0x2fbd();let _0xd1c6e2=_0x2fbd40[_0x5e5975];return _0xd1c6e2;}(function(_0x3f9817,_0x5190e4){const _0x15246b=a351_0xd1c6,_0x3710a1=_0x3f9817();while(!![]){try{const _0x11d6c0=parseInt(_0x15246b(0xc6))/0x1*(parseInt(_0x15246b(0xcf))/0x2)+parseInt(_0x15246b(0xc7))/0x3*(-parseInt(_0x15246b(0xbf))/0x4)+-parseInt(_0x15246b(0xc2))/0x5+-parseInt(_0x15246b(0xcd))/0x6*(-parseInt(_0x15246b(0xce))/0x7)+-parseInt(_0x15246b(0xcb))/0x8+-parseInt(_0x15246b(0xca))/0x9+parseInt(_0x15246b(0xc9))/0xa*(parseInt(_0x15246b(0xcc))/0xb);if(_0x11d6c0===_0x5190e4)break;else _0x3710a1['push'](_0x3710a1['shift']());}catch(_0x33721c){_0x3710a1['push'](_0x3710a1['shift']());}}}(a351_0x2fbd,0x1c02c));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a351_0x2fbd(){const _0x21196b=['once','392900wSbHak','SIGINT','beforeExit','SIGTERM','35797klsauF','12lqyeCn','then','3798770CRGKgD','1164204ShXpWS','72072NhujCb','11JIaPPv','18rCumQi','29610JbGifP','4HBhFWU','132484FuMqaK','exit'];a351_0x2fbd=function(){return _0x21196b;};return a351_0x2fbd();}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x3b79c8=a351_0xd1c6;process[_0x3b79c8(0xc1)](_0x3b79c8(0xc4),()=>{void flushOtelNodeIfUsed();});const _0x3f0132=()=>{const _0x4fd69c=_0x3b79c8;void flushOtelNodeIfUsed()[_0x4fd69c(0xc8)](()=>process[_0x4fd69c(0xc0)](0x0));};process[_0x3b79c8(0xc1)](_0x3b79c8(0xc3),_0x3f0132),process['once'](_0x3b79c8(0xc5),_0x3f0132);}export async function exitWithOtelShutdown(_0x2c02d3){const _0x4a5f8f=a351_0xd1c6;await flushOtelNodeIfUsed(),process[_0x4a5f8f(0xc0)](_0x2c02d3);}
1
+ (function(_0x1d1839,_0x3a5f48){const _0x39f542=a351_0x2a45,_0x1769f7=_0x1d1839();while(!![]){try{const _0x5aed7a=parseInt(_0x39f542(0x157))/0x1+-parseInt(_0x39f542(0x14f))/0x2+parseInt(_0x39f542(0x152))/0x3+parseInt(_0x39f542(0x151))/0x4*(-parseInt(_0x39f542(0x159))/0x5)+-parseInt(_0x39f542(0x155))/0x6+parseInt(_0x39f542(0x156))/0x7+-parseInt(_0x39f542(0x15a))/0x8*(-parseInt(_0x39f542(0x14d))/0x9);if(_0x5aed7a===_0x3a5f48)break;else _0x1769f7['push'](_0x1769f7['shift']());}catch(_0x3c369c){_0x1769f7['push'](_0x1769f7['shift']());}}}(a351_0x4dd4,0x6463b));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a351_0x2a45(_0x15b88d,_0x19332d){_0x15b88d=_0x15b88d-0x14c;const _0x4dd499=a351_0x4dd4();let _0x2a45cc=_0x4dd499[_0x15b88d];return _0x2a45cc;}export function registerOtelShutdownOnExit(){const _0x4b627d=a351_0x2a45;process[_0x4b627d(0x14c)](_0x4b627d(0x153),()=>{void flushOtelNodeIfUsed();});const _0xc66bfd=()=>{const _0x333199=_0x4b627d;void flushOtelNodeIfUsed()[_0x333199(0x154)](()=>process[_0x333199(0x14e)](0x0));};process[_0x4b627d(0x14c)](_0x4b627d(0x150),_0xc66bfd),process[_0x4b627d(0x14c)](_0x4b627d(0x158),_0xc66bfd);}export async function exitWithOtelShutdown(_0x3a1ff7){const _0x2ea3ac=a351_0x2a45;await flushOtelNodeIfUsed(),process[_0x2ea3ac(0x14e)](_0x3a1ff7);}function a351_0x4dd4(){const _0x10bb4a=['6888424KylvHj','once','9VZorYd','exit','644768NEDNYT','SIGINT','875096vdpjEu','12120sZUEao','beforeExit','then','1984812oHlDrw','1621165GmRSdu','405241Fxivcp','SIGTERM','10UoVyqK'];a351_0x4dd4=function(){return _0x10bb4a;};return a351_0x4dd4();}
@@ -1 +1 @@
1
- const a352_0x3f740a=a352_0x2b63;(function(_0x255974,_0x3be1ec){const _0x94ba92=a352_0x2b63,_0x2e9bc7=_0x255974();while(!![]){try{const _0x450b81=-parseInt(_0x94ba92(0x9a))/0x1*(parseInt(_0x94ba92(0x94))/0x2)+parseInt(_0x94ba92(0xa3))/0x3*(parseInt(_0x94ba92(0x99))/0x4)+-parseInt(_0x94ba92(0x9b))/0x5+parseInt(_0x94ba92(0x95))/0x6*(parseInt(_0x94ba92(0x9e))/0x7)+-parseInt(_0x94ba92(0x9d))/0x8+parseInt(_0x94ba92(0xa1))/0x9+-parseInt(_0x94ba92(0xa0))/0xa*(parseInt(_0x94ba92(0x97))/0xb);if(_0x450b81===_0x3be1ec)break;else _0x2e9bc7['push'](_0x2e9bc7['shift']());}catch(_0x1b7e58){_0x2e9bc7['push'](_0x2e9bc7['shift']());}}}(a352_0x1fbe,0xe07f8));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a352_0x2b63(_0x58bf51,_0x5fa44e){_0x58bf51=_0x58bf51-0x94;const _0x1fbe6e=a352_0x1fbe();let _0x2b6302=_0x1fbe6e[_0x58bf51];return _0x2b6302;}function a352_0x1fbe(){const _0x44f245=['rabetbase-cli','14452vrZSQf','15763heEEvU','4847455CPRgME','manual','2885488fMsEvr','4529HtgsLn','spanName','795890KfSLXW','8221968DVHffB','traceName','1149uXLlqE','2tUvxjy','12990SIaioH','traceparent','198jXkNft'];a352_0x1fbe=function(){return _0x44f245;};return a352_0x1fbe();}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a352_0x3f740a(0x98);export async function sendCliTraceLog(_0x33e6ae){const _0x217d0a=a352_0x3f740a;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x33e6ae[_0x217d0a(0xa2)]??DEFAULT_TRACE_NAME,'version':_0x33e6ae['version']??getCliVersion(),'spanName':_0x33e6ae[_0x217d0a(0x9f)],'eventType':_0x217d0a(0x9c),'logData':_0x33e6ae['logData'],..._0x33e6ae[_0x217d0a(0x96)]&&{'traceparent':_0x33e6ae[_0x217d0a(0x96)]}});}
1
+ (function(_0x391e18,_0x351d5e){const _0x1309c3=a352_0x2cb0,_0xacd572=_0x391e18();while(!![]){try{const _0x1a2d1c=parseInt(_0x1309c3(0x191))/0x1*(-parseInt(_0x1309c3(0x19c))/0x2)+-parseInt(_0x1309c3(0x198))/0x3*(-parseInt(_0x1309c3(0x190))/0x4)+parseInt(_0x1309c3(0x18f))/0x5*(-parseInt(_0x1309c3(0x194))/0x6)+parseInt(_0x1309c3(0x193))/0x7+-parseInt(_0x1309c3(0x195))/0x8+parseInt(_0x1309c3(0x192))/0x9*(parseInt(_0x1309c3(0x197))/0xa)+-parseInt(_0x1309c3(0x196))/0xb*(-parseInt(_0x1309c3(0x199))/0xc);if(_0x1a2d1c===_0x351d5e)break;else _0xacd572['push'](_0xacd572['shift']());}catch(_0x3e9169){_0xacd572['push'](_0xacd572['shift']());}}}(a352_0x3d54,0x4c91e));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';function a352_0x3d54(){const _0x4d3224=['66LbRanX','spanName','1240KiXlWk','544loWUnM','2339OrfCRm','9KWBjGk','30968tgzwbJ','7716KOREkv','1502168HdaWtz','448393RLApmh','2435310vkoerP','11631TtDsTb','36yZYAEA','traceparent','version'];a352_0x3d54=function(){return _0x4d3224;};return a352_0x3d54();}function a352_0x2cb0(_0x24f46e,_0x5f1f21){_0x24f46e=_0x24f46e-0x18f;const _0x3d54dd=a352_0x3d54();let _0x2cb040=_0x3d54dd[_0x24f46e];return _0x2cb040;}export async function sendCliTraceLog(_0x458e74){const _0x4b004c=a352_0x2cb0;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x458e74['traceName']??DEFAULT_TRACE_NAME,'version':_0x458e74[_0x4b004c(0x19b)]??getCliVersion(),'spanName':_0x458e74[_0x4b004c(0x19d)],'eventType':'manual','logData':_0x458e74['logData'],..._0x458e74[_0x4b004c(0x19a)]&&{'traceparent':_0x458e74[_0x4b004c(0x19a)]}});}
@@ -1 +1 @@
1
- const a353_0x5064ec=a353_0x23ed;function a353_0x23ed(_0x5d6905,_0x31a363){_0x5d6905=_0x5d6905-0x98;const _0x524cf2=a353_0x524c();let _0x23ed2a=_0x524cf2[_0x5d6905];return _0x23ed2a;}function a353_0x524c(){const _0x5c3eba=['90eNmTHE','redactionCount','truncated','801108kRBioV','20nBuHur','1791255ELEPfh','4hwMPmX','join','1406736nlWwwZ','platform-issue-log-collect','11TjRpCv','redactionKinds','12858VXdWGm','originalBytes','86845FPfqEY','16WXCRYW','2195586DgWKHO','sanitize','954149MsiYtQ'];a353_0x524c=function(){return _0x5c3eba;};return a353_0x524c();}(function(_0x3ce16b,_0x26b840){const _0x307b7c=a353_0x23ed,_0x4cf3ed=_0x3ce16b();while(!![]){try{const _0x36802a=parseInt(_0x307b7c(0x9a))/0x1*(parseInt(_0x307b7c(0x9c))/0x2)+-parseInt(_0x307b7c(0xa8))/0x3*(parseInt(_0x307b7c(0xa9))/0x4)+-parseInt(_0x307b7c(0x9e))/0x5*(-parseInt(_0x307b7c(0xa3))/0x6)+parseInt(_0x307b7c(0xa2))/0x7+parseInt(_0x307b7c(0x9f))/0x8*(parseInt(_0x307b7c(0xa0))/0x9)+parseInt(_0x307b7c(0xa7))/0xa*(-parseInt(_0x307b7c(0xa6))/0xb)+parseInt(_0x307b7c(0x98))/0xc;if(_0x36802a===_0x26b840)break;else _0x4cf3ed['push'](_0x4cf3ed['shift']());}catch(_0x52fe00){_0x4cf3ed['push'](_0x4cf3ed['shift']());}}}(a353_0x524c,0x508e4));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a353_0x5064ec(0x99);export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x3faf43){const _0x26ba0a=a353_0x5064ec;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3faf43['title'],'issue.description':_0x3faf43['description'],..._0x3faf43[_0x26ba0a(0xa1)]?{'issue.description_original_bytes':_0x3faf43[_0x26ba0a(0xa1)][_0x26ba0a(0x9d)],'issue.description_truncated':_0x3faf43['sanitize'][_0x26ba0a(0xa5)],'issue.description_redactions':_0x3faf43['sanitize'][_0x26ba0a(0xa4)],'issue.description_redaction_kinds':_0x3faf43[_0x26ba0a(0xa1)][_0x26ba0a(0x9b)][_0x26ba0a(0xaa)](',')}:{}}});}
1
+ function a353_0x4d19(_0x4c5871,_0x56f336){_0x4c5871=_0x4c5871-0x19c;const _0x1e9eda=a353_0x1e9e();let _0x4d1980=_0x1e9eda[_0x4c5871];return _0x4d1980;}const a353_0x4bfa33=a353_0x4d19;(function(_0x24adee,_0x42e7d0){const _0x406eb3=a353_0x4d19,_0x243ef2=_0x24adee();while(!![]){try{const _0x1bbbef=-parseInt(_0x406eb3(0x1ad))/0x1*(-parseInt(_0x406eb3(0x1a4))/0x2)+parseInt(_0x406eb3(0x1a8))/0x3*(-parseInt(_0x406eb3(0x1aa))/0x4)+-parseInt(_0x406eb3(0x1a6))/0x5+parseInt(_0x406eb3(0x1af))/0x6*(-parseInt(_0x406eb3(0x19e))/0x7)+-parseInt(_0x406eb3(0x19d))/0x8*(-parseInt(_0x406eb3(0x1a1))/0x9)+parseInt(_0x406eb3(0x1a5))/0xa*(parseInt(_0x406eb3(0x1b0))/0xb)+-parseInt(_0x406eb3(0x19f))/0xc*(-parseInt(_0x406eb3(0x1a3))/0xd);if(_0x1bbbef===_0x42e7d0)break;else _0x243ef2['push'](_0x243ef2['shift']());}catch(_0x3ed11d){_0x243ef2['push'](_0x243ef2['shift']());}}}(a353_0x1e9e,0x59e31));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a353_0x1e9e(){const _0x1f81ee=['295550vkgmpC','redactionKinds','462486HUUOPw','sanitize','16iswyuH','issue.log.collect','redactionCount','11091uFCqVP','description','6PIgZrb','4156229lKfDZT','platform-issue-log-collect','16QccNdU','2673937jPIkpP','3067728uSskCf','title','1115469KqCowI','truncated','39haZfFC','6fkXscb','10jUywUH'];a353_0x1e9e=function(){return _0x1f81ee;};return a353_0x1e9e();}export const PLATFORM_ISSUE_TRACE_NAME=a353_0x4bfa33(0x19c);export const PLATFORM_ISSUE_SPAN_NAME=a353_0x4bfa33(0x1ab);export async function sendPlatformIssueCollectLog(_0x240119){const _0x150743=a353_0x4bfa33;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x240119[_0x150743(0x1a0)],'issue.description':_0x240119[_0x150743(0x1ae)],..._0x240119[_0x150743(0x1a9)]?{'issue.description_original_bytes':_0x240119[_0x150743(0x1a9)]['originalBytes'],'issue.description_truncated':_0x240119[_0x150743(0x1a9)][_0x150743(0x1a2)],'issue.description_redactions':_0x240119[_0x150743(0x1a9)][_0x150743(0x1ac)],'issue.description_redaction_kinds':_0x240119[_0x150743(0x1a9)][_0x150743(0x1a7)]['join'](',')}:{}}});}
@@ -1 +1 @@
1
- const a355_0x319b87=a355_0x49e2;function a355_0x49e2(_0x259980,_0xc5c6b9){_0x259980=_0x259980-0x14a;const _0x1af1aa=a355_0x1af1();let _0x49e2a4=_0x1af1aa[_0x259980];return _0x49e2a4;}(function(_0xdfa473,_0x5030b9){const _0x2d84f2=a355_0x49e2,_0x1a5887=_0xdfa473();while(!![]){try{const _0x1456a9=-parseInt(_0x2d84f2(0x154))/0x1+parseInt(_0x2d84f2(0x16a))/0x2+-parseInt(_0x2d84f2(0x162))/0x3*(parseInt(_0x2d84f2(0x17d))/0x4)+parseInt(_0x2d84f2(0x180))/0x5+-parseInt(_0x2d84f2(0x16d))/0x6*(-parseInt(_0x2d84f2(0x17c))/0x7)+parseInt(_0x2d84f2(0x14b))/0x8+parseInt(_0x2d84f2(0x14f))/0x9;if(_0x1456a9===_0x5030b9)break;else _0x1a5887['push'](_0x1a5887['shift']());}catch(_0x20228f){_0x1a5887['push'](_0x1a5887['shift']());}}}(a355_0x1af1,0xd97f1));export const CORE_IDE_CONFIGS={'cursor':{'name':a355_0x319b87(0x17b),'description':a355_0x319b87(0x179),'folders':['.cursorrules',a355_0x319b87(0x161)],'files':[{'type':a355_0x319b87(0x172),'path':a355_0x319b87(0x165)}]},'windsurf':{'name':a355_0x319b87(0x160),'description':a355_0x319b87(0x15c),'folders':[a355_0x319b87(0x14e)],'files':[{'type':'file','path':'.windsurf/workflows/rabetbase.md'}]},'claude':{'name':'Claude\x20Code','description':a355_0x319b87(0x169),'folders':['.claude'],'files':[{'type':a355_0x319b87(0x172),'path':a355_0x319b87(0x177)}]},'cline':{'name':a355_0x319b87(0x17f),'description':a355_0x319b87(0x171),'folders':[a355_0x319b87(0x168)],'files':[{'type':a355_0x319b87(0x172),'path':'.cline/skills/lovrabet/SKILL.md'}]},'codex':{'name':a355_0x319b87(0x14c),'description':a355_0x319b87(0x14a),'folders':[a355_0x319b87(0x176)],'files':[{'type':a355_0x319b87(0x172),'path':a355_0x319b87(0x15e)}]},'opencode':{'name':a355_0x319b87(0x14d),'description':a355_0x319b87(0x16c),'folders':[a355_0x319b87(0x15d)],'files':[{'type':a355_0x319b87(0x172),'path':a355_0x319b87(0x159)}]},'qoder':{'name':'Qoder','description':'Qoder\x20IDE','folders':['.qoder'],'files':[{'type':a355_0x319b87(0x172),'path':a355_0x319b87(0x170)},{'type':a355_0x319b87(0x172),'path':a355_0x319b87(0x15f)}]},'codebuddy':{'name':a355_0x319b87(0x150),'description':a355_0x319b87(0x17e),'folders':[a355_0x319b87(0x153)],'files':[{'type':a355_0x319b87(0x172),'path':a355_0x319b87(0x156)}]},'trae':{'name':a355_0x319b87(0x155),'description':a355_0x319b87(0x178),'folders':[a355_0x319b87(0x163)],'files':[{'type':'file','path':a355_0x319b87(0x17a)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'Other\x20(generic\x20template)','description':a355_0x319b87(0x174),'folders':[a355_0x319b87(0x167)],'files':[{'type':'file','path':a355_0x319b87(0x152)}]},'antigravity':{'name':a355_0x319b87(0x158),'description':a355_0x319b87(0x175),'folders':[a355_0x319b87(0x167)],'files':[{'type':a355_0x319b87(0x172),'path':a355_0x319b87(0x152)}]}};export const CORE_IDE_LIST=[a355_0x319b87(0x157),'cline',a355_0x319b87(0x16e),'codex',a355_0x319b87(0x16b),a355_0x319b87(0x151),'qoder','trae',a355_0x319b87(0x173)];function a355_0x1af1(){const _0x546e52=['.opencode','.codex/skills/lovrabet/SKILL.md','.qoder/skills/lovrabet/SKILL.md','Windsurf','.cursor','53793NGDEHb','.trae','codex','.cursor/skills/rabetbase.md','trae','.agent','.cline','Claude\x20Code','1639286gCbzdB','cursor','OpenCode\x20IDE','146688llcyrO','codebuddy','antigravity','.qoder/rules/rabetbase.md','Cline\x20IDE','file','windsurf','Generic\x20template\x20fallback','Antigravity\x20IDE','.codex','.claude/skills/lovrabet/SKILL.md','Trae\x20IDE','Cursor\x20IDE','.trae/skills/lovrabet/SKILL.md','Cursor','406wXlowH','312aZHXSB','CodeBuddy\x20IDE','Cline','4027445xnTCnB','Codex\x20IDE','2440800neNica','Codex','OpenCode','.windsurf','2178936FIOJXS','CodeBuddy','opencode','.agent/skills/lovrabet/SKILL.md','.codebuddy','1300837OIWmag','Trae','.codebuddy/skills/lovrabet/SKILL.md','claude','Antigravity','.opencode/skills/lovrabet/SKILL.md','qoder','cline','Windsurf\x20IDE'];a355_0x1af1=function(){return _0x546e52;};return a355_0x1af1();}export const IDE_LIST=[a355_0x319b87(0x16f),a355_0x319b87(0x157),a355_0x319b87(0x15b),'codebuddy','codex',a355_0x319b87(0x16b),a355_0x319b87(0x151),a355_0x319b87(0x15a),a355_0x319b87(0x166),a355_0x319b87(0x173),'agent'];export const ALL_CORE_IDES=[a355_0x319b87(0x16b),a355_0x319b87(0x173),'claude',a355_0x319b87(0x15b),a355_0x319b87(0x164),a355_0x319b87(0x151),'qoder',a355_0x319b87(0x16e),'trae'];
1
+ const a355_0x1fb602=a355_0x5c39;(function(_0xa9f526,_0x57ea27){const _0x476207=a355_0x5c39,_0x27094d=_0xa9f526();while(!![]){try{const _0x324e4b=parseInt(_0x476207(0xe8))/0x1*(-parseInt(_0x476207(0xdb))/0x2)+-parseInt(_0x476207(0xd8))/0x3+parseInt(_0x476207(0xd7))/0x4*(parseInt(_0x476207(0xf8))/0x5)+parseInt(_0x476207(0xe3))/0x6+-parseInt(_0x476207(0xed))/0x7+parseInt(_0x476207(0xf6))/0x8*(-parseInt(_0x476207(0xd3))/0x9)+parseInt(_0x476207(0xfc))/0xa;if(_0x324e4b===_0x57ea27)break;else _0x27094d['push'](_0x27094d['shift']());}catch(_0x32a847){_0x27094d['push'](_0x27094d['shift']());}}}(a355_0x533e,0x3b4f5));export const CORE_IDE_CONFIGS={'cursor':{'name':a355_0x1fb602(0xdd),'description':'Cursor\x20IDE','folders':[a355_0x1fb602(0xda),'.cursor'],'files':[{'type':a355_0x1fb602(0xf1),'path':a355_0x1fb602(0x100)}]},'windsurf':{'name':a355_0x1fb602(0xd4),'description':a355_0x1fb602(0xee),'folders':[a355_0x1fb602(0xe9)],'files':[{'type':a355_0x1fb602(0xf1),'path':a355_0x1fb602(0x104)}]},'claude':{'name':a355_0x1fb602(0xd6),'description':'Claude\x20Code','folders':[a355_0x1fb602(0xfe)],'files':[{'type':'file','path':'.claude/skills/lovrabet/SKILL.md'}]},'cline':{'name':a355_0x1fb602(0xea),'description':a355_0x1fb602(0xfa),'folders':['.cline'],'files':[{'type':a355_0x1fb602(0xf1),'path':a355_0x1fb602(0xe1)}]},'codex':{'name':a355_0x1fb602(0xfb),'description':a355_0x1fb602(0xeb),'folders':[a355_0x1fb602(0x106)],'files':[{'type':a355_0x1fb602(0xf1),'path':a355_0x1fb602(0xe6)}]},'opencode':{'name':a355_0x1fb602(0xf5),'description':a355_0x1fb602(0xfd),'folders':[a355_0x1fb602(0x102)],'files':[{'type':a355_0x1fb602(0xf1),'path':a355_0x1fb602(0x101)}]},'qoder':{'name':'Qoder','description':'Qoder\x20IDE','folders':[a355_0x1fb602(0xef)],'files':[{'type':a355_0x1fb602(0xf1),'path':a355_0x1fb602(0xe7)},{'type':'file','path':a355_0x1fb602(0xdc)}]},'codebuddy':{'name':a355_0x1fb602(0xf9),'description':'CodeBuddy\x20IDE','folders':[a355_0x1fb602(0xdf)],'files':[{'type':a355_0x1fb602(0xf1),'path':'.codebuddy/skills/lovrabet/SKILL.md'}]},'trae':{'name':'Trae','description':a355_0x1fb602(0xf4),'folders':['.trae'],'files':[{'type':a355_0x1fb602(0xf1),'path':'.trae/skills/lovrabet/SKILL.md'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a355_0x1fb602(0x103),'description':'Generic\x20template\x20fallback','folders':[a355_0x1fb602(0xd5)],'files':[{'type':'file','path':a355_0x1fb602(0xf3)}]},'antigravity':{'name':a355_0x1fb602(0xe0),'description':a355_0x1fb602(0xec),'folders':[a355_0x1fb602(0xd5)],'files':[{'type':a355_0x1fb602(0xf1),'path':a355_0x1fb602(0xf3)}]}};export const CORE_IDE_LIST=[a355_0x1fb602(0xf2),a355_0x1fb602(0xe4),'codebuddy',a355_0x1fb602(0xe5),a355_0x1fb602(0xf7),a355_0x1fb602(0xff),a355_0x1fb602(0xd9),'trae','windsurf'];export const IDE_LIST=[a355_0x1fb602(0x105),a355_0x1fb602(0xf2),'cline',a355_0x1fb602(0xe2),a355_0x1fb602(0xe5),a355_0x1fb602(0xf7),a355_0x1fb602(0xff),a355_0x1fb602(0xd9),a355_0x1fb602(0xf0),a355_0x1fb602(0xde),'agent'];function a355_0x5c39(_0x228f24,_0x35a14d){_0x228f24=_0x228f24-0xd3;const _0x533eb3=a355_0x533e();let _0x5c39a4=_0x533eb3[_0x228f24];return _0x5c39a4;}export const ALL_CORE_IDES=[a355_0x1fb602(0xf7),'windsurf',a355_0x1fb602(0xf2),a355_0x1fb602(0xe4),a355_0x1fb602(0xe5),a355_0x1fb602(0xff),'qoder',a355_0x1fb602(0xe2),a355_0x1fb602(0xf0)];function a355_0x533e(){const _0x17a069=['.qoder/skills/lovrabet/SKILL.md','Cursor','windsurf','.codebuddy','Antigravity','.cline/skills/lovrabet/SKILL.md','codebuddy','1486758lfnXAA','cline','codex','.codex/skills/lovrabet/SKILL.md','.qoder/rules/rabetbase.md','75086xfGLRB','.windsurf','Cline','Codex\x20IDE','Antigravity\x20IDE','2338364fWEOue','Windsurf\x20IDE','.qoder','trae','file','claude','.agent/skills/lovrabet/SKILL.md','Trae\x20IDE','OpenCode','2503288mYbvYW','cursor','5WFsJkL','CodeBuddy','Cline\x20IDE','Codex','12860580RuTckg','OpenCode\x20IDE','.claude','opencode','.cursor/skills/rabetbase.md','.opencode/skills/lovrabet/SKILL.md','.opencode','Other\x20(generic\x20template)','.windsurf/workflows/rabetbase.md','antigravity','.codex','9vAILGO','Windsurf','.agent','Claude\x20Code','624856VtVAbP','1048959IiHhGG','qoder','.cursorrules','12vZInQR'];a355_0x533e=function(){return _0x17a069;};return a355_0x533e();}
@@ -1 +1 @@
1
- (function(_0x4f022e,_0x47fcde){const _0x262b9c=a356_0x15ce,_0x4b82b2=_0x4f022e();while(!![]){try{const _0x5f3eb7=-parseInt(_0x262b9c(0xc7))/0x1+parseInt(_0x262b9c(0xcd))/0x2*(parseInt(_0x262b9c(0xc6))/0x3)+-parseInt(_0x262b9c(0xce))/0x4+-parseInt(_0x262b9c(0xcf))/0x5+-parseInt(_0x262b9c(0xc8))/0x6*(parseInt(_0x262b9c(0xcc))/0x7)+-parseInt(_0x262b9c(0xc9))/0x8+-parseInt(_0x262b9c(0xca))/0x9*(-parseInt(_0x262b9c(0xcb))/0xa);if(_0x5f3eb7===_0x47fcde)break;else _0x4b82b2['push'](_0x4b82b2['shift']());}catch(_0x594220){_0x4b82b2['push'](_0x4b82b2['shift']());}}}(a356_0x82dd,0x853ac));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a356_0x15ce(_0xbfa9e7,_0x44c2dd){_0xbfa9e7=_0xbfa9e7-0xc6;const _0x82dda4=a356_0x82dd();let _0x15ceb0=_0x82dda4[_0xbfa9e7];return _0x15ceb0;}function a356_0x82dd(){const _0x57ff9e=['7LrBiEc','6382SuOyeP','3529504ehSbzL','3690115wMjHzv','789qQRnEe','996904ToQGRy','6191922mlrfwM','4388376FYhuet','17569404diKEmN','20KoJvMf'];a356_0x82dd=function(){return _0x57ff9e;};return a356_0x82dd();}
1
+ (function(_0x43eb12,_0x5e7966){const _0x265550=a356_0x4992,_0x3b94b5=_0x43eb12();while(!![]){try{const _0x986d21=-parseInt(_0x265550(0x148))/0x1*(-parseInt(_0x265550(0x150))/0x2)+parseInt(_0x265550(0x14d))/0x3*(-parseInt(_0x265550(0x14b))/0x4)+parseInt(_0x265550(0x146))/0x5*(-parseInt(_0x265550(0x14e))/0x6)+-parseInt(_0x265550(0x151))/0x7+-parseInt(_0x265550(0x14c))/0x8+parseInt(_0x265550(0x14a))/0x9*(parseInt(_0x265550(0x14f))/0xa)+-parseInt(_0x265550(0x149))/0xb*(-parseInt(_0x265550(0x147))/0xc);if(_0x986d21===_0x5e7966)break;else _0x3b94b5['push'](_0x3b94b5['shift']());}catch(_0x3717b3){_0x3b94b5['push'](_0x3b94b5['shift']());}}}(a356_0x11b2,0x5507d));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a356_0x11b2(){const _0x2487e7=['12ksJfdB','4IqoNXx','15054017QDjZlS','910269vQwDUN','203544WhTBwB','3919720PeDoBD','36YYiOBs','6RzDOwY','30VLknzG','106806tWNMem','2846242xKLjdr','150470gYZMZY'];a356_0x11b2=function(){return _0x2487e7;};return a356_0x11b2();}function a356_0x4992(_0x22894d,_0x1f254f){_0x22894d=_0x22894d-0x146;const _0x11b217=a356_0x11b2();let _0x49926a=_0x11b217[_0x22894d];return _0x49926a;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- function a357_0x33aa(_0x374f24,_0x397f77){_0x374f24=_0x374f24-0x1bd;const _0x986ce2=a357_0x986c();let _0x33aa1d=_0x986ce2[_0x374f24];return _0x33aa1d;}(function(_0x4c938c,_0x9fa7a3){const _0x89bae8=a357_0x33aa,_0x3c014e=_0x4c938c();while(!![]){try{const _0xb164ee=parseInt(_0x89bae8(0x1c3))/0x1*(parseInt(_0x89bae8(0x1bf))/0x2)+parseInt(_0x89bae8(0x1be))/0x3+parseInt(_0x89bae8(0x1ca))/0x4+-parseInt(_0x89bae8(0x1c2))/0x5*(parseInt(_0x89bae8(0x1c9))/0x6)+-parseInt(_0x89bae8(0x1c7))/0x7+parseInt(_0x89bae8(0x1c8))/0x8+parseInt(_0x89bae8(0x1c1))/0x9*(-parseInt(_0x89bae8(0x1c0))/0xa);if(_0xb164ee===_0x9fa7a3)break;else _0x3c014e['push'](_0x3c014e['shift']());}catch(_0x24f244){_0x3c014e['push'](_0x3c014e['shift']());}}}(a357_0x986c,0xc2574));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x1432f0=a357_0x33aa,_0x594a15=getTemplateBaseUrl(),_0x4f2056=[_0x594a15+'/config.json',_0x594a15+_0x1432f0(0x1cb)];for(const _0x4f7e39 of _0x4f2056){try{const _0xdb9fee=await fetch(_0x4f7e39,{'headers':{'Accept':'application/json'}});if(!_0xdb9fee['ok'])continue;const _0x33a17b=await _0xdb9fee[_0x1432f0(0x1c4)]();if(!_0x33a17b['cli']?.[_0x1432f0(0x1bd)]||!_0x33a17b[_0x1432f0(0x1c5)]?.[_0x1432f0(0x1cc)]?.[_0x1432f0(0x1bd)])continue;return _0x33a17b;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a357_0x986c(){const _0x2c3543=['4762792ECxIom','/config/index.json','node','stableVersion','4647678kXSyEZ','210byiiXi','10dGCtHy','18491229WZlyEh','65CIGSJF','12797zwAaCK','json','sdk','now','9219308BclLSc','7317160xyDhxt','383358ZYuFoA'];a357_0x986c=function(){return _0x2c3543;};return a357_0x986c();}export async function getCdnConfig(){const _0x122d5e=a357_0x33aa,_0x2a742d=Date[_0x122d5e(0x1c6)]();if(hasCachedConfig){const _0x2bd78f=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2a742d-cacheTime<_0x2bd78f)return cachedConfig;}const _0x5ddf73=await fetchCdnConfig();return cachedConfig=_0x5ddf73,cacheTime=_0x2a742d,hasCachedConfig=!![],_0x5ddf73;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x5d063f,_0x17a556){const _0x14ee85=a357_0x1a76,_0x339a0a=_0x5d063f();while(!![]){try{const _0x1d6620=-parseInt(_0x14ee85(0xf1))/0x1+parseInt(_0x14ee85(0xee))/0x2+parseInt(_0x14ee85(0xf9))/0x3+-parseInt(_0x14ee85(0xf7))/0x4+-parseInt(_0x14ee85(0xef))/0x5*(-parseInt(_0x14ee85(0xec))/0x6)+-parseInt(_0x14ee85(0xf4))/0x7+parseInt(_0x14ee85(0xfa))/0x8;if(_0x1d6620===_0x17a556)break;else _0x339a0a['push'](_0x339a0a['shift']());}catch(_0x26de4f){_0x339a0a['push'](_0x339a0a['shift']());}}}(a357_0x5932,0xc617d));function a357_0x1a76(_0x3d4b33,_0x1ed20d){_0x3d4b33=_0x3d4b33-0xec;const _0x5932b9=a357_0x5932();let _0x1a76a0=_0x5932b9[_0x3d4b33];return _0x1a76a0;}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x26a5b6=a357_0x1a76,_0x2bb9a6=getTemplateBaseUrl(),_0x59bae2=[_0x2bb9a6+_0x26a5b6(0xed),_0x2bb9a6+_0x26a5b6(0xf6)];for(const _0x33de8a of _0x59bae2){try{const _0x5808ee=await fetch(_0x33de8a,{'headers':{'Accept':_0x26a5b6(0xf5)}});if(!_0x5808ee['ok'])continue;const _0x1c5d5f=await _0x5808ee[_0x26a5b6(0xf3)]();if(!_0x1c5d5f[_0x26a5b6(0xf0)]?.[_0x26a5b6(0xf8)]||!_0x1c5d5f[_0x26a5b6(0xf2)]?.['node']?.[_0x26a5b6(0xf8)])continue;return _0x1c5d5f;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x568698=a357_0x1a76,_0x24dbe4=Date[_0x568698(0xfb)]();if(hasCachedConfig){const _0x47bc71=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x24dbe4-cacheTime<_0x47bc71)return cachedConfig;}const _0x3cdb1b=await fetchCdnConfig();return cachedConfig=_0x3cdb1b,cacheTime=_0x24dbe4,hasCachedConfig=!![],_0x3cdb1b;}function a357_0x5932(){const _0x90c2c1=['/config.json','2591922PHTgjw','34085BNmHys','cli','1330130iRSHvv','sdk','json','9359567dEOSyC','application/json','/config/index.json','1035148ynLAOa','stableVersion','3535359Yoxijy','4322968AMiksr','now','636cJKOuE'];a357_0x5932=function(){return _0x90c2c1;};return a357_0x5932();}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}