@lovrabet/rabetbase-cli 2.5.7 → 2.5.8-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (381) hide show
  1. package/README.md +7 -0
  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.d.ts +1 -1
  278. package/lib/constant/domain.js +1 -1
  279. package/lib/constant/env.js +1 -1
  280. package/lib/constant/output.js +1 -1
  281. package/lib/constant/paths.js +1 -1
  282. package/lib/constant/region.js +1 -1
  283. package/lib/constant/risk.js +1 -1
  284. package/lib/constant/routing-profile.js +1 -1
  285. package/lib/context/app-resolver.js +1 -1
  286. package/lib/context/auth-resolver.js +1 -1
  287. package/lib/context/config-loader.js +1 -1
  288. package/lib/context.js +1 -1
  289. package/lib/core/alias-resolver.js +1 -1
  290. package/lib/core/api-client.d.ts +2 -2
  291. package/lib/core/api-client.js +1 -1
  292. package/lib/core/bff/config.js +1 -1
  293. package/lib/core/bff/file-system.js +1 -1
  294. package/lib/core/bff/hash.js +1 -1
  295. package/lib/core/bff/hook-directory.js +1 -1
  296. package/lib/core/bff/lock.js +1 -1
  297. package/lib/core/bff/utils.js +1 -1
  298. package/lib/core/cross-db-analysis.js +1 -1
  299. package/lib/core/cross-db-relation.js +1 -1
  300. package/lib/core/db-resolver.js +1 -1
  301. package/lib/core/flow-config.js +1 -1
  302. package/lib/core/instant-api-policy/config.js +1 -1
  303. package/lib/core/kb-management-client.d.ts +19 -0
  304. package/lib/core/kb-management-client.js +1 -0
  305. package/lib/core/kb-search-client.js +1 -1
  306. package/lib/core/page/file-system.js +1 -1
  307. package/lib/core/page/hash.js +1 -1
  308. package/lib/core/page/lock.js +1 -1
  309. package/lib/core/page/lr-smart-jsx.js +1 -1
  310. package/lib/core/sql-index-auditor.js +1 -1
  311. package/lib/core/sql-sync/config.js +1 -1
  312. package/lib/core/sql-sync/file-system.js +1 -1
  313. package/lib/core/sql-sync/hash.js +1 -1
  314. package/lib/core/sql-sync/lock.js +1 -1
  315. package/lib/core/sql-sync/utils.js +1 -1
  316. package/lib/core/sql-validator.js +1 -1
  317. package/lib/errors.js +1 -1
  318. package/lib/framework/build-all-flags.js +1 -1
  319. package/lib/framework/error-output.js +1 -1
  320. package/lib/framework/explicit-yes.js +1 -1
  321. package/lib/framework/flags.js +1 -1
  322. package/lib/framework/help.js +1 -1
  323. package/lib/framework/index.js +1 -1
  324. package/lib/framework/output.js +1 -1
  325. package/lib/framework/response.js +1 -1
  326. package/lib/framework/runner-alias.js +1 -1
  327. package/lib/framework/runner.js +1 -1
  328. package/lib/framework/schema-export.js +1 -1
  329. package/lib/framework/supported-flags.js +1 -1
  330. package/lib/framework/types.js +1 -1
  331. package/lib/generated/build-info.d.ts +4 -4
  332. package/lib/generated/build-info.js +1 -1
  333. package/lib/generated/official-routing.js +1 -1
  334. package/lib/generated/routing-contract.js +1 -1
  335. package/lib/help.js +1 -1
  336. package/lib/postinstall.js +1 -1
  337. package/lib/runtime/confirmation.js +1 -1
  338. package/lib/runtime/event.js +1 -1
  339. package/lib/runtime/index.js +1 -1
  340. package/lib/runtime/queue.js +1 -1
  341. package/lib/runtime/resolve.js +1 -1
  342. package/lib/services/dataset-design/checkpoint.js +1 -1
  343. package/lib/services/dataset-design/commands.js +1 -1
  344. package/lib/services/dataset-design/contract.js +1 -1
  345. package/lib/skills/builtin-skill.js +1 -1
  346. package/lib/skills/main.js +1 -1
  347. package/lib/skills/npx-skills-add.js +1 -1
  348. package/lib/skills/skill-presence.js +1 -1
  349. package/lib/telemetry/cli-command-trace.js +1 -1
  350. package/lib/telemetry/cli-help-trace.js +1 -1
  351. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  352. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  353. package/lib/telemetry/send-cli-trace-log.js +1 -1
  354. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  355. package/lib/utils/ai_config.js +1 -1
  356. package/lib/utils/apply-jq-filter.js +1 -1
  357. package/lib/utils/cdn-config.js +1 -1
  358. package/lib/utils/check-sdk-version.js +1 -1
  359. package/lib/utils/cli-version-check.js +1 -1
  360. package/lib/utils/cli-version-policy.js +1 -1
  361. package/lib/utils/config.js +1 -1
  362. package/lib/utils/entity-with-id.js +1 -1
  363. package/lib/utils/file-utils.js +1 -1
  364. package/lib/utils/guides-cdn.js +1 -1
  365. package/lib/utils/http-client.js +1 -1
  366. package/lib/utils/is-non-interactive.js +1 -1
  367. package/lib/utils/logger.js +1 -1
  368. package/lib/utils/params.js +1 -1
  369. package/lib/utils/platform.js +1 -1
  370. package/lib/utils/sleep.js +1 -1
  371. package/lib/utils/template-replacer.js +1 -1
  372. package/lib/utils/update-notice.js +1 -1
  373. package/lib/utils/version.js +1 -1
  374. package/lib/utils/with-active-cookie.js +1 -1
  375. package/lib/utils/write-cli-side-channel.js +1 -1
  376. package/package.json +1 -1
  377. package/skills/rabetbase/SKILL.md +2 -2
  378. package/skills/rabetbase/references/rabetbase-kb.md +7 -6
  379. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  380. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  381. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a287_0x143ebe=a287_0x3a2c;function a287_0x3a2c(_0x17d7ea,_0x10a76f){_0x17d7ea=_0x17d7ea-0x1ba;const _0x70edf8=a287_0x70ed();let _0x3a2c50=_0x70edf8[_0x17d7ea];return _0x3a2c50;}(function(_0x327a94,_0x1bda11){const _0x184c2c=a287_0x3a2c,_0x2983ef=_0x327a94();while(!![]){try{const _0x29b0d=-parseInt(_0x184c2c(0x1c0))/0x1+-parseInt(_0x184c2c(0x1de))/0x2+parseInt(_0x184c2c(0x1bd))/0x3+-parseInt(_0x184c2c(0x1c2))/0x4*(-parseInt(_0x184c2c(0x1d8))/0x5)+-parseInt(_0x184c2c(0x1d9))/0x6*(parseInt(_0x184c2c(0x1d3))/0x7)+-parseInt(_0x184c2c(0x1d0))/0x8*(parseInt(_0x184c2c(0x1ba))/0x9)+parseInt(_0x184c2c(0x1c3))/0xa*(parseInt(_0x184c2c(0x1e0))/0xb);if(_0x29b0d===_0x1bda11)break;else _0x2983ef['push'](_0x2983ef['shift']());}catch(_0x2145cd){_0x2983ef['push'](_0x2983ef['shift']());}}}(a287_0x70ed,0x4570a));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{dirname,extname,isAbsolute,relative,resolve}from'node:path';import{MODEL_REGISTRY_FILE_NAME,getProfileModels,readModelRegistry}from'../api/model-registry-file.js';import{parseLegacyApiModels}from'../api/legacy-api-file.js';import{findProjectRootDirectory}from'../context/config-loader.js';const cache=new Map(),MAX_LOCAL_REEXPORT_DEPTH=0x8,SOURCE_FILE_EXTENSIONS=[a287_0x143ebe(0x1e3),a287_0x143ebe(0x1c1),a287_0x143ebe(0x1d7),a287_0x143ebe(0x1cb),a287_0x143ebe(0x1db),'.jsx',a287_0x143ebe(0x1c5),a287_0x143ebe(0x1ca)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a287_0x143ebe(0x1e3),'.tsx'],'.jsx':[a287_0x143ebe(0x1c1)],'.mjs':[a287_0x143ebe(0x1d7)],'.cjs':[a287_0x143ebe(0x1cb)]};function parseApiFile(_0x59bdf2){const _0x1ebdac=a287_0x143ebe;return parseLegacyApiModels(_0x59bdf2)[_0x1ebdac(0x1dd)](_0x390a88=>_0x390a88[_0x1ebdac(0x1c8)]?[{'alias':_0x390a88[_0x1ebdac(0x1c8)],'datasetCode':_0x390a88[_0x1ebdac(0x1c7)],'tableName':_0x390a88[_0x1ebdac(0x1cf)],'name':_0x390a88[_0x1ebdac(0x1cd)]}]:[]);}function isWithinRoot(_0x1d2dbd,_0x329949){const _0x4186da=a287_0x143ebe,_0x45b602=relative(_0x1d2dbd,_0x329949);return _0x45b602===''||!_0x45b602[_0x4186da(0x1d2)]('..')&&!isAbsolute(_0x45b602);}function resolveExistingFile(_0x2ce8bb){if(!existsSync(_0x2ce8bb))return undefined;try{return statSync(_0x2ce8bb)['isFile']()?realpathSync(_0x2ce8bb):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x352e69){const _0x4c7881=a287_0x143ebe,_0x467987=extname(_0x352e69);if(!_0x467987)return[...SOURCE_FILE_EXTENSIONS[_0x4c7881(0x1e2)](_0x8ae9a3=>''+_0x352e69+_0x8ae9a3),...SOURCE_FILE_EXTENSIONS[_0x4c7881(0x1e2)](_0x29c56b=>resolve(_0x352e69,_0x4c7881(0x1bc)+_0x29c56b))];const _0x176b7f=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x467987];if(!_0x176b7f)return[_0x352e69];const _0x51b97e=_0x352e69[_0x4c7881(0x1be)](0x0,-_0x467987['length']);return[..._0x176b7f['map'](_0xa730a=>''+_0x51b97e+_0xa730a),_0x352e69];}function resolveLocalReexport(_0x126ada,_0x136d11,_0x3930cf){const _0x121ec9=a287_0x143ebe;if(!_0x136d11['startsWith']('./')&&!_0x136d11[_0x121ec9(0x1d2)](_0x121ec9(0x1dc)))return undefined;const _0xf493cf=resolve(dirname(_0x126ada),_0x136d11);if(!isWithinRoot(_0x3930cf,_0xf493cf))return undefined;for(const _0x2b73e9 of reexportCandidatePaths(_0xf493cf)){const _0x136bfe=resolveExistingFile(_0x2b73e9);if(_0x136bfe&&isWithinRoot(_0x3930cf,_0x136bfe))return _0x136bfe;}return undefined;}function parseApiFileTree(_0x505c63,_0x45d948,_0x41b740,_0x49f5a5){const _0x50125e=a287_0x143ebe,_0x4b8ae4=resolveExistingFile(_0x505c63);if(!_0x4b8ae4)return[];const _0x5e4ba1=_0x41b740[_0x50125e(0x1da)](_0x4b8ae4);if(_0x5e4ba1!==undefined&&_0x5e4ba1<=_0x49f5a5)return[];_0x41b740['set'](_0x4b8ae4,_0x49f5a5);const _0x3fb819=readFileSync(_0x4b8ae4,_0x50125e(0x1bb)),_0x30ca94=parseApiFile(_0x3fb819);if(_0x49f5a5>=MAX_LOCAL_REEXPORT_DEPTH)return _0x30ca94;const _0x3490b2=new RegExp(LOCAL_REEXPORT_RE[_0x50125e(0x1d1)],LOCAL_REEXPORT_RE[_0x50125e(0x1e1)]);let _0x285a80;while((_0x285a80=_0x3490b2['exec'](_0x3fb819))!==null){const _0x2ac484=resolveLocalReexport(_0x4b8ae4,_0x285a80[0x1],_0x45d948);_0x2ac484&&_0x30ca94[_0x50125e(0x1ce)](...parseApiFileTree(_0x2ac484,_0x45d948,_0x41b740,_0x49f5a5+0x1));}return _0x30ca94;}function aliasProjectRoot(_0x7e20e4){const _0x1132e9=findProjectRootDirectory(dirname(_0x7e20e4));try{return realpathSync(_0x1132e9);}catch{return _0x1132e9;}}function uniqueAliasEntries(_0x137953){const _0x370e59=a287_0x143ebe,_0x514af7=new Set();return _0x137953[_0x370e59(0x1d5)](_0xa0a02e=>{const _0x503b01=_0x370e59,_0x4b6368=JSON[_0x503b01(0x1d6)](_0xa0a02e);if(_0x514af7[_0x503b01(0x1c4)](_0x4b6368))return![];return _0x514af7[_0x503b01(0x1d4)](_0x4b6368),!![];});}function a287_0x70ed(){const _0x5cd5d6=['629232ItbGMs','get','.js','../','flatMap','905776yyHGDr','api.ts','6068491xeLELD','flags','map','.ts','342GCtqPc','utf-8','index','1650561XTKfmQ','slice','defaultProfile','135882WejvZe','.tsx','494216DIDQkZ','10xWnwyz','has','.mjs','set','datasetCode','alias','size','.cjs','.cts','endsWith','name','push','tableName','15784CQrDQc','source','startsWith','35MlMfUC','add','filter','stringify','.mts','15NUjLCa'];a287_0x70ed=function(){return _0x5cd5d6;};return a287_0x70ed();}export function loadAliasMap(_0x20bcf8,_0x4654cc,_0x22ecfa,_0x42c15b){const _0x185ed4=a287_0x143ebe,_0x3b3458=resolve(_0x22ecfa??resolve(process['cwd'](),_0x20bcf8,_0x185ed4(0x1df))),_0x16b685=_0x42c15b?_0x3b3458+'#'+_0x42c15b:_0x3b3458;if(cache['has'](_0x16b685))return cache[_0x185ed4(0x1da)](_0x16b685);if(!existsSync(_0x3b3458))return cache['set'](_0x16b685,[]),[];try{if(_0x3b3458[_0x185ed4(0x1cc)](MODEL_REGISTRY_FILE_NAME)){const _0x199f4d=readModelRegistry(_0x3b3458),_0xee776b=_0x42c15b??_0x199f4d?.[_0x185ed4(0x1bf)],_0x106d13=_0xee776b&&_0x199f4d?getProfileModels(_0x199f4d,_0xee776b):[],_0x21b0d1=uniqueAliasEntries(_0x106d13[_0x185ed4(0x1dd)](_0x54512b=>_0x54512b[_0x185ed4(0x1c8)]?[{'alias':_0x54512b[_0x185ed4(0x1c8)],'datasetCode':_0x54512b[_0x185ed4(0x1c7)],'tableName':_0x54512b['tableName'],'name':_0x54512b[_0x185ed4(0x1cd)]}]:[]));return cache[_0x185ed4(0x1c6)](_0x16b685,_0x21b0d1),_0x21b0d1;}const _0x49895e=uniqueAliasEntries(parseApiFileTree(_0x3b3458,aliasProjectRoot(_0x3b3458),new Map(),0x0));return cache[_0x185ed4(0x1c6)](_0x16b685,_0x49895e),_0x49895e;}catch{return cache[_0x185ed4(0x1c6)](_0x16b685,[]),[];}}export function resolveAlias(_0x62232b,_0x44a413,_0x125548,_0x7097e5,_0xc4c69c){const _0x5ac046=a287_0x143ebe;if(!_0x44a413)return undefined;const _0x5acdc3=loadAliasMap(_0x62232b,_0x125548,_0x7097e5,_0xc4c69c),_0x39947a=new Set(_0x5acdc3[_0x5ac046(0x1d5)](_0x24dc71=>_0x24dc71[_0x5ac046(0x1c8)]===_0x44a413)[_0x5ac046(0x1e2)](_0x21907a=>_0x21907a[_0x5ac046(0x1c7)]));return _0x39947a[_0x5ac046(0x1c9)]===0x1?[..._0x39947a][0x0]:undefined;}export function listAliases(_0x383efe,_0x4205cd,_0x526e1c,_0x4afc13){return loadAliasMap(_0x383efe,_0x4205cd,_0x526e1c,_0x4afc13);}
1
+ const a287_0x191cad=a287_0x3165;(function(_0x466ffa,_0x14d9af){const _0x2abf17=a287_0x3165,_0x27e87a=_0x466ffa();while(!![]){try{const _0x1a0ce5=parseInt(_0x2abf17(0x193))/0x1+-parseInt(_0x2abf17(0x17d))/0x2+-parseInt(_0x2abf17(0x182))/0x3+parseInt(_0x2abf17(0x186))/0x4+parseInt(_0x2abf17(0x194))/0x5+-parseInt(_0x2abf17(0x19c))/0x6*(parseInt(_0x2abf17(0x199))/0x7)+-parseInt(_0x2abf17(0x18e))/0x8*(-parseInt(_0x2abf17(0x187))/0x9);if(_0x1a0ce5===_0x14d9af)break;else _0x27e87a['push'](_0x27e87a['shift']());}catch(_0x27e87d){_0x27e87a['push'](_0x27e87a['shift']());}}}(a287_0x377a,0x2a7dc));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{dirname,extname,isAbsolute,relative,resolve}from'node:path';import{MODEL_REGISTRY_FILE_NAME,getProfileModels,readModelRegistry}from'../api/model-registry-file.js';import{parseLegacyApiModels}from'../api/legacy-api-file.js';import{findProjectRootDirectory}from'../context/config-loader.js';const cache=new Map(),MAX_LOCAL_REEXPORT_DEPTH=0x8,SOURCE_FILE_EXTENSIONS=[a287_0x191cad(0x17a),a287_0x191cad(0x198),a287_0x191cad(0x19f),a287_0x191cad(0x195),'.js',a287_0x191cad(0x191),a287_0x191cad(0x19a),a287_0x191cad(0x18c)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a287_0x191cad(0x17a),'.tsx'],'.jsx':[a287_0x191cad(0x198)],'.mjs':[a287_0x191cad(0x19f)],'.cjs':['.cts']};function parseApiFile(_0x1b5d0e){const _0xb2885b=a287_0x191cad;return parseLegacyApiModels(_0x1b5d0e)[_0xb2885b(0x180)](_0x38fcc4=>_0x38fcc4[_0xb2885b(0x181)]?[{'alias':_0x38fcc4[_0xb2885b(0x181)],'datasetCode':_0x38fcc4[_0xb2885b(0x17c)],'tableName':_0x38fcc4['tableName'],'name':_0x38fcc4[_0xb2885b(0x18f)]}]:[]);}function isWithinRoot(_0x57954c,_0x40e0f3){const _0x2e12cf=a287_0x191cad,_0x25feff=relative(_0x57954c,_0x40e0f3);return _0x25feff===''||!_0x25feff[_0x2e12cf(0x19d)]('..')&&!isAbsolute(_0x25feff);}function resolveExistingFile(_0x4c2c3f){const _0x1bde6e=a287_0x191cad;if(!existsSync(_0x4c2c3f))return undefined;try{return statSync(_0x4c2c3f)[_0x1bde6e(0x18b)]()?realpathSync(_0x4c2c3f):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x16ed65){const _0x42543a=a287_0x191cad,_0xd99731=extname(_0x16ed65);if(!_0xd99731)return[...SOURCE_FILE_EXTENSIONS[_0x42543a(0x17e)](_0x123c34=>''+_0x16ed65+_0x123c34),...SOURCE_FILE_EXTENSIONS[_0x42543a(0x17e)](_0x160da=>resolve(_0x16ed65,'index'+_0x160da))];const _0x5ec3ff=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0xd99731];if(!_0x5ec3ff)return[_0x16ed65];const _0x59f2d0=_0x16ed65[_0x42543a(0x196)](0x0,-_0xd99731[_0x42543a(0x192)]);return[..._0x5ec3ff[_0x42543a(0x17e)](_0x2ca5c5=>''+_0x59f2d0+_0x2ca5c5),_0x16ed65];}function resolveLocalReexport(_0x3925e1,_0x2bb8fc,_0x5c00ca){const _0x478b45=a287_0x191cad;if(!_0x2bb8fc['startsWith']('./')&&!_0x2bb8fc[_0x478b45(0x19d)](_0x478b45(0x188)))return undefined;const _0xd6754d=resolve(dirname(_0x3925e1),_0x2bb8fc);if(!isWithinRoot(_0x5c00ca,_0xd6754d))return undefined;for(const _0x263204 of reexportCandidatePaths(_0xd6754d)){const _0x2d8041=resolveExistingFile(_0x263204);if(_0x2d8041&&isWithinRoot(_0x5c00ca,_0x2d8041))return _0x2d8041;}return undefined;}function parseApiFileTree(_0x4b6815,_0x270739,_0x728877,_0x3f3573){const _0x462cbc=a287_0x191cad,_0x1c3df5=resolveExistingFile(_0x4b6815);if(!_0x1c3df5)return[];const _0x170cdc=_0x728877[_0x462cbc(0x17f)](_0x1c3df5);if(_0x170cdc!==undefined&&_0x170cdc<=_0x3f3573)return[];_0x728877[_0x462cbc(0x190)](_0x1c3df5,_0x3f3573);const _0x13e83a=readFileSync(_0x1c3df5,'utf-8'),_0x26444e=parseApiFile(_0x13e83a);if(_0x3f3573>=MAX_LOCAL_REEXPORT_DEPTH)return _0x26444e;const _0x583f28=new RegExp(LOCAL_REEXPORT_RE[_0x462cbc(0x18a)],LOCAL_REEXPORT_RE['flags']);let _0x38d5c9;while((_0x38d5c9=_0x583f28[_0x462cbc(0x19b)](_0x13e83a))!==null){const _0x393bcc=resolveLocalReexport(_0x1c3df5,_0x38d5c9[0x1],_0x270739);_0x393bcc&&_0x26444e[_0x462cbc(0x197)](...parseApiFileTree(_0x393bcc,_0x270739,_0x728877,_0x3f3573+0x1));}return _0x26444e;}function aliasProjectRoot(_0x171921){const _0x211d15=findProjectRootDirectory(dirname(_0x171921));try{return realpathSync(_0x211d15);}catch{return _0x211d15;}}function uniqueAliasEntries(_0x230e2c){const _0x2a8a5e=a287_0x191cad,_0x374bd1=new Set();return _0x230e2c[_0x2a8a5e(0x18d)](_0x304194=>{const _0x3fe83b=_0x2a8a5e,_0x5bc9a=JSON[_0x3fe83b(0x189)](_0x304194);if(_0x374bd1['has'](_0x5bc9a))return![];return _0x374bd1[_0x3fe83b(0x19e)](_0x5bc9a),!![];});}export function loadAliasMap(_0x595f3b,_0x514b49,_0x2881b1,_0x24c73e){const _0x13ee26=a287_0x191cad,_0x36453=resolve(_0x2881b1??resolve(process[_0x13ee26(0x178)](),_0x595f3b,'api.ts')),_0xa17b3b=_0x24c73e?_0x36453+'#'+_0x24c73e:_0x36453;if(cache[_0x13ee26(0x17b)](_0xa17b3b))return cache[_0x13ee26(0x17f)](_0xa17b3b);if(!existsSync(_0x36453))return cache['set'](_0xa17b3b,[]),[];try{if(_0x36453[_0x13ee26(0x184)](MODEL_REGISTRY_FILE_NAME)){const _0x34ce96=readModelRegistry(_0x36453),_0x498379=_0x24c73e??_0x34ce96?.[_0x13ee26(0x185)],_0x951f11=_0x498379&&_0x34ce96?getProfileModels(_0x34ce96,_0x498379):[],_0x2755c7=uniqueAliasEntries(_0x951f11[_0x13ee26(0x180)](_0x3aecd6=>_0x3aecd6[_0x13ee26(0x181)]?[{'alias':_0x3aecd6[_0x13ee26(0x181)],'datasetCode':_0x3aecd6[_0x13ee26(0x17c)],'tableName':_0x3aecd6[_0x13ee26(0x183)],'name':_0x3aecd6[_0x13ee26(0x18f)]}]:[]));return cache[_0x13ee26(0x190)](_0xa17b3b,_0x2755c7),_0x2755c7;}const _0x58e276=uniqueAliasEntries(parseApiFileTree(_0x36453,aliasProjectRoot(_0x36453),new Map(),0x0));return cache['set'](_0xa17b3b,_0x58e276),_0x58e276;}catch{return cache[_0x13ee26(0x190)](_0xa17b3b,[]),[];}}export function resolveAlias(_0x298edb,_0x194dd5,_0x50af96,_0x13b0be,_0x4dc9ea){const _0x2badd8=a287_0x191cad;if(!_0x194dd5)return undefined;const _0x1ba9d1=loadAliasMap(_0x298edb,_0x50af96,_0x13b0be,_0x4dc9ea),_0xa3f476=new Set(_0x1ba9d1[_0x2badd8(0x18d)](_0x249fab=>_0x249fab[_0x2badd8(0x181)]===_0x194dd5)[_0x2badd8(0x17e)](_0x4a6de7=>_0x4a6de7['datasetCode']));return _0xa3f476[_0x2badd8(0x179)]===0x1?[..._0xa3f476][0x0]:undefined;}export function listAliases(_0x366487,_0x10ae2d,_0x29b5df,_0x2a2cd5){return loadAliasMap(_0x366487,_0x10ae2d,_0x29b5df,_0x2a2cd5);}function a287_0x3165(_0x310796,_0x1c6c56){_0x310796=_0x310796-0x178;const _0x377ae7=a287_0x377a();let _0x3165e9=_0x377ae7[_0x310796];return _0x3165e9;}function a287_0x377a(){const _0x51d8f7=['.jsx','length','123332bLhiPG','1182355wmjTlQ','.cts','slice','push','.tsx','63pRlgFw','.mjs','exec','204942WqvTxd','startsWith','add','.mts','cwd','size','.ts','has','datasetCode','599336MzJHFh','map','get','flatMap','alias','715908HyosfA','tableName','endsWith','defaultProfile','1383968gyoTlv','7893OHJDcS','../','stringify','source','isFile','.cjs','filter','2864VNyDmW','name','set'];a287_0x377a=function(){return _0x51d8f7;};return a287_0x377a();}
@@ -81,7 +81,7 @@ export declare function platformFetch<T = any>(url: string, opts: PlatformFetchO
81
81
  * platformFetch 保留给历史调用与少数确需绝对 URL 的场景。
82
82
  */
83
83
  export declare function platformRequest<T = any>(path: string, opts: PlatformFetchOptions): Promise<T>;
84
- /** Requests the knowledge-base backend used by company KB APIs. */
84
+ /** Requests the legacy rules backend; company management uses KB Service. */
85
85
  export declare function kbRequest<T = any>(path: string, opts: PlatformFetchOptions): Promise<T>;
86
86
  export interface KnowledgeBaseRecord {
87
87
  id: number;
@@ -124,7 +124,7 @@ export declare function listEnterpriseKnowledgeBases(cookie: string, filters?: K
124
124
  items: KnowledgeBaseRecord[];
125
125
  paging?: Paging;
126
126
  }>;
127
- export declare function getEnterpriseKnowledgeBase(cookie: string, id: number): Promise<KnowledgeBaseRecord>;
127
+ export declare function getEnterpriseKnowledgeBase(cookie: string, id: number, appCode: string): Promise<KnowledgeBaseRecord>;
128
128
  export declare function createEnterpriseKnowledgeBase(cookie: string, input: {
129
129
  appCode: string;
130
130
  title: string;