@lovrabet/rabetbase-cli 2.4.2 → 2.4.3

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 (294) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/members-list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app-config/delete.js +1 -1
  25. package/lib/commands/app-config/get.js +1 -1
  26. package/lib/commands/app-config/index.js +1 -1
  27. package/lib/commands/app-config/list.js +1 -1
  28. package/lib/commands/app-config/set.js +1 -1
  29. package/lib/commands/app-config/shared.js +1 -1
  30. package/lib/commands/auth/index.js +1 -1
  31. package/lib/commands/bff/create.js +1 -1
  32. package/lib/commands/bff/delete.js +1 -1
  33. package/lib/commands/bff/detail.js +1 -1
  34. package/lib/commands/bff/index.js +1 -1
  35. package/lib/commands/bff/list.js +1 -1
  36. package/lib/commands/bff/pull.js +1 -1
  37. package/lib/commands/bff/push.js +1 -1
  38. package/lib/commands/bff/status.js +1 -1
  39. package/lib/commands/cli-skill/index.js +1 -1
  40. package/lib/commands/cli-update.js +1 -1
  41. package/lib/commands/codegen/index.js +1 -1
  42. package/lib/commands/codegen/sdk.js +1 -1
  43. package/lib/commands/codegen/sql.js +1 -1
  44. package/lib/commands/common/app-registry.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/async-task.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff.js +1 -1
  87. package/lib/commands/db/index.js +1 -1
  88. package/lib/commands/db/list.js +1 -1
  89. package/lib/commands/db/shared.js +1 -1
  90. package/lib/commands/db/tables.js +1 -1
  91. package/lib/commands/db/test.js +1 -1
  92. package/lib/commands/db/update.js +1 -1
  93. package/lib/commands/doctor.js +1 -1
  94. package/lib/commands/file/index.js +1 -1
  95. package/lib/commands/init/index.js +1 -1
  96. package/lib/commands/issue/index.js +1 -1
  97. package/lib/commands/issue/nudge.js +1 -1
  98. package/lib/commands/issue/report.js +1 -1
  99. package/lib/commands/issue/shared.js +1 -1
  100. package/lib/commands/kb/create.js +1 -1
  101. package/lib/commands/kb/delete.js +1 -1
  102. package/lib/commands/kb/detail.js +1 -1
  103. package/lib/commands/kb/index.js +1 -1
  104. package/lib/commands/kb/list.js +1 -1
  105. package/lib/commands/kb/shared.js +1 -1
  106. package/lib/commands/kb/update.js +1 -1
  107. package/lib/commands/logs/index.js +1 -1
  108. package/lib/commands/menu/asset-update.js +1 -1
  109. package/lib/commands/menu/delete.js +1 -1
  110. package/lib/commands/menu/external-link-create.js +1 -1
  111. package/lib/commands/menu/external-link-update.js +1 -1
  112. package/lib/commands/menu/group-create.js +1 -1
  113. package/lib/commands/menu/group-update.js +1 -1
  114. package/lib/commands/menu/index.js +1 -1
  115. package/lib/commands/menu/list.js +1 -1
  116. package/lib/commands/menu/move.js +1 -1
  117. package/lib/commands/menu/regroup-start.js +1 -1
  118. package/lib/commands/menu/rename.js +1 -1
  119. package/lib/commands/menu/shared/compare-table.js +1 -1
  120. package/lib/commands/menu/shared/delete-plan.js +1 -1
  121. package/lib/commands/menu/shared/facts.js +1 -1
  122. package/lib/commands/menu/shared/index.js +1 -1
  123. package/lib/commands/menu/shared/inquirer.js +1 -1
  124. package/lib/commands/menu/shared/local-pages.js +1 -1
  125. package/lib/commands/menu/shared/logic.js +1 -1
  126. package/lib/commands/menu/shared/mutations.js +1 -1
  127. package/lib/commands/menu/shared/service.js +1 -1
  128. package/lib/commands/menu/shared/sync-core.js +1 -1
  129. package/lib/commands/menu/shared/update-core.js +1 -1
  130. package/lib/commands/menu/shared/valid-url.js +1 -1
  131. package/lib/commands/menu/sync.js +1 -1
  132. package/lib/commands/notification/config-list.js +1 -1
  133. package/lib/commands/notification/index.js +1 -1
  134. package/lib/commands/ocr/index.js +1 -1
  135. package/lib/commands/page/generate-start.js +1 -1
  136. package/lib/commands/page/generate-status.js +1 -1
  137. package/lib/commands/page/index.js +1 -1
  138. package/lib/commands/page/pull.js +1 -1
  139. package/lib/commands/page/push.js +1 -1
  140. package/lib/commands/page/react/create.js +1 -1
  141. package/lib/commands/page/react/detail.js +1 -1
  142. package/lib/commands/page/react/list.js +1 -1
  143. package/lib/commands/page/react/publish.js +1 -1
  144. package/lib/commands/page/react/shared.js +1 -1
  145. package/lib/commands/page/react/syntax.js +1 -1
  146. package/lib/commands/page/react/template.js +1 -1
  147. package/lib/commands/page/react/update.js +1 -1
  148. package/lib/commands/page/relation-audit.js +1 -1
  149. package/lib/commands/page/restore.js +1 -1
  150. package/lib/commands/page/shared.js +1 -1
  151. package/lib/commands/page/standard-page-status.js +1 -1
  152. package/lib/commands/page/sync.js +1 -1
  153. package/lib/commands/permit/index.js +1 -1
  154. package/lib/commands/permit/page-get.js +1 -1
  155. package/lib/commands/permit/page-set.js +1 -1
  156. package/lib/commands/permit/role-apis-set.js +1 -1
  157. package/lib/commands/permit/role-menus-set.js +1 -1
  158. package/lib/commands/permit/role-menus.js +1 -1
  159. package/lib/commands/permit/shared.js +1 -1
  160. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  161. package/lib/commands/project/create/format-elapsed.js +1 -1
  162. package/lib/commands/project/create/main.js +1 -1
  163. package/lib/commands/project/create/non-interactive.js +1 -1
  164. package/lib/commands/project/create/project-template-path.js +1 -1
  165. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  166. package/lib/commands/project/create/use-format-code.js +1 -1
  167. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  168. package/lib/commands/project/index.js +1 -1
  169. package/lib/commands/project/upgrade.js +1 -1
  170. package/lib/commands/registry.js +1 -1
  171. package/lib/commands/role/create.js +1 -1
  172. package/lib/commands/role/delete.js +1 -1
  173. package/lib/commands/role/detail.js +1 -1
  174. package/lib/commands/role/index.js +1 -1
  175. package/lib/commands/role/list.js +1 -1
  176. package/lib/commands/role/shared.js +1 -1
  177. package/lib/commands/role/update.js +1 -1
  178. package/lib/commands/role/user-add.js +1 -1
  179. package/lib/commands/role/user-remove.js +1 -1
  180. package/lib/commands/role/user-resolve.js +1 -1
  181. package/lib/commands/run/index.js +1 -1
  182. package/lib/commands/schema.js +1 -1
  183. package/lib/commands/sql/create.js +1 -1
  184. package/lib/commands/sql/delete.js +1 -1
  185. package/lib/commands/sql/detail.js +1 -1
  186. package/lib/commands/sql/exec.js +1 -1
  187. package/lib/commands/sql/index.js +1 -1
  188. package/lib/commands/sql/list.js +1 -1
  189. package/lib/commands/sql/pull.js +1 -1
  190. package/lib/commands/sql/push.js +1 -1
  191. package/lib/commands/sql/shared.js +1 -1
  192. package/lib/commands/sql/status.js +1 -1
  193. package/lib/commands/sql/validate.js +1 -1
  194. package/lib/commands/task/index.js +1 -1
  195. package/lib/commands/task/status.js +1 -1
  196. package/lib/commands/tenant/index.js +1 -1
  197. package/lib/commands/tenant/members-list.js +1 -1
  198. package/lib/commands/tenant/shared.js +1 -1
  199. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  200. package/lib/commands/user-account/index.js +1 -1
  201. package/lib/commands/workspace/add.js +1 -1
  202. package/lib/commands/workspace/index.js +1 -1
  203. package/lib/commands/workspace/remove.js +1 -1
  204. package/lib/config/schema.js +1 -1
  205. package/lib/constant/cdn.js +1 -1
  206. package/lib/constant/cli.js +1 -1
  207. package/lib/constant/defaults.js +1 -1
  208. package/lib/constant/domain.js +1 -1
  209. package/lib/constant/env.js +1 -1
  210. package/lib/constant/output.js +1 -1
  211. package/lib/constant/paths.js +1 -1
  212. package/lib/constant/risk.js +1 -1
  213. package/lib/context/app-resolver.js +1 -1
  214. package/lib/context/auth-resolver.js +1 -1
  215. package/lib/context/config-loader.js +1 -1
  216. package/lib/context.js +1 -1
  217. package/lib/core/alias-resolver.js +1 -1
  218. package/lib/core/api-client.js +1 -1
  219. package/lib/core/bff/config.js +1 -1
  220. package/lib/core/bff/file-system.js +1 -1
  221. package/lib/core/bff/hash.js +1 -1
  222. package/lib/core/bff/lock.js +1 -1
  223. package/lib/core/bff/utils.js +1 -1
  224. package/lib/core/db-resolver.js +1 -1
  225. package/lib/core/page/file-system.js +1 -1
  226. package/lib/core/page/hash.js +1 -1
  227. package/lib/core/page/lock.js +1 -1
  228. package/lib/core/sql-index-auditor.js +1 -1
  229. package/lib/core/sql-sync/config.js +1 -1
  230. package/lib/core/sql-sync/file-system.js +1 -1
  231. package/lib/core/sql-sync/hash.js +1 -1
  232. package/lib/core/sql-sync/lock.js +1 -1
  233. package/lib/core/sql-sync/utils.js +1 -1
  234. package/lib/core/sql-validator.js +1 -1
  235. package/lib/errors.js +1 -1
  236. package/lib/framework/build-all-flags.js +1 -1
  237. package/lib/framework/error-output.js +1 -1
  238. package/lib/framework/explicit-yes.js +1 -1
  239. package/lib/framework/flags.js +1 -1
  240. package/lib/framework/help.js +1 -1
  241. package/lib/framework/index.js +1 -1
  242. package/lib/framework/output.js +1 -1
  243. package/lib/framework/response.js +1 -1
  244. package/lib/framework/runner-alias.js +1 -1
  245. package/lib/framework/runner.js +1 -1
  246. package/lib/framework/schema-export.js +1 -1
  247. package/lib/framework/types.js +1 -1
  248. package/lib/generated/build-info.d.ts +4 -4
  249. package/lib/generated/build-info.js +1 -1
  250. package/lib/help.js +1 -1
  251. package/lib/postinstall.js +1 -1
  252. package/lib/runtime/confirmation.js +1 -1
  253. package/lib/runtime/event.js +1 -1
  254. package/lib/runtime/index.js +1 -1
  255. package/lib/runtime/queue.js +1 -1
  256. package/lib/runtime/resolve.js +1 -1
  257. package/lib/skills/builtin-skill.js +1 -1
  258. package/lib/skills/main.js +1 -1
  259. package/lib/skills/npx-skills-add.js +1 -1
  260. package/lib/skills/skill-presence.js +1 -1
  261. package/lib/telemetry/cli-command-trace.js +1 -1
  262. package/lib/telemetry/cli-help-trace.js +1 -1
  263. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  264. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  265. package/lib/telemetry/send-cli-trace-log.js +1 -1
  266. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  267. package/lib/utils/ai_config.js +1 -1
  268. package/lib/utils/apply-jq-filter.js +1 -1
  269. package/lib/utils/cdn-config.js +1 -1
  270. package/lib/utils/check-sdk-version.js +1 -1
  271. package/lib/utils/cli-version-check.js +1 -1
  272. package/lib/utils/cli-version-policy.js +1 -1
  273. package/lib/utils/config.js +1 -1
  274. package/lib/utils/copy-directory.js +1 -1
  275. package/lib/utils/entity-with-id.js +1 -1
  276. package/lib/utils/file-utils.js +1 -1
  277. package/lib/utils/guides-cdn.js +1 -1
  278. package/lib/utils/http-client.js +1 -1
  279. package/lib/utils/is-non-interactive.js +1 -1
  280. package/lib/utils/logger.js +1 -1
  281. package/lib/utils/params.js +1 -1
  282. package/lib/utils/platform.js +1 -1
  283. package/lib/utils/rules-cdn.js +1 -1
  284. package/lib/utils/sleep.js +1 -1
  285. package/lib/utils/template-replacer.js +1 -1
  286. package/lib/utils/update-notice.js +1 -1
  287. package/lib/utils/version.js +1 -1
  288. package/lib/utils/with-active-cookie.js +1 -1
  289. package/lib/utils/write-cli-side-channel.js +1 -1
  290. package/package.json +8 -4
  291. package/skills/rabetbase/SKILL.md +1 -1
  292. package/skills/rabetbase/guides/react-custom-page-workflow.md +9 -3
  293. package/skills/rabetbase/knowledge/react-page/generation-standards.md +13 -2
  294. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a90_0x20c6a2=a90_0x473f;function a90_0x2ede(){const _0x5eddc1=['1897136eldVJY','error','object','108708MaKhmX','482nQSImD','num','slice','3711350DbVHCn','test','keys','data','923AiySpJ','read','98bhYHZG','10LhfAjc','message','success','123201pduJuN','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','Connection\x20OK\x20for\x20db\x20link\x20','706668yiVBqx','\x20(see\x20data.result)','length','40412AGTEtF'];a90_0x2ede=function(){return _0x5eddc1;};return a90_0x2ede();}(function(_0x3e824b,_0x1a966c){const _0x1fde7c=a90_0x473f,_0x1a65e4=_0x3e824b();while(!![]){try{const _0x432994=-parseInt(_0x1fde7c(0x1ed))/0x1*(-parseInt(_0x1fde7c(0x1e6))/0x2)+parseInt(_0x1fde7c(0x1f6))/0x3+parseInt(_0x1fde7c(0x1f9))/0x4*(parseInt(_0x1fde7c(0x1f0))/0x5)+-parseInt(_0x1fde7c(0x1e5))/0x6*(-parseInt(_0x1fde7c(0x1ef))/0x7)+-parseInt(_0x1fde7c(0x1e2))/0x8+parseInt(_0x1fde7c(0x1f3))/0x9+-parseInt(_0x1fde7c(0x1e9))/0xa;if(_0x432994===_0x1a966c)break;else _0x1a65e4['push'](_0x1a65e4['shift']());}catch(_0x5051ea){_0x1a65e4['push'](_0x1a65e4['shift']());}}}(a90_0x2ede,0x21835));function a90_0x473f(_0x4dfd40,_0x5f31bb){_0x4dfd40=_0x4dfd40-0x1e2;const _0x2ede9e=a90_0x2ede();let _0x473f01=_0x2ede9e[_0x4dfd40];return _0x473f01;}import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x1bcefc){const _0x213f99=a90_0x473f;if(_0x1bcefc===!![]||_0x1bcefc===![])return{'success':_0x1bcefc};if(_0x1bcefc===null||_0x1bcefc===undefined)return{'type':typeof _0x1bcefc};if(typeof _0x1bcefc!=='object')return{'type':typeof _0x1bcefc};const _0x3804b2=_0x1bcefc,_0x592263=['success',_0x213f99(0x1f1),'code',_0x213f99(0x1e3),'msg',_0x213f99(0x1ec)],_0x30bbbc={};for(const _0x2a1d04 of _0x592263){if(_0x2a1d04 in _0x3804b2)_0x30bbbc[_0x2a1d04]=_0x3804b2[_0x2a1d04];}return Object[_0x213f99(0x1eb)](_0x30bbbc)[_0x213f99(0x1f8)]===0x0&&(_0x30bbbc[_0x213f99(0x1eb)]=Object[_0x213f99(0x1eb)](_0x3804b2)[_0x213f99(0x1e8)](0x0,0x14)),_0x30bbbc;}export const dbTest={'service':'db','command':a90_0x20c6a2(0x1ea),'description':a90_0x20c6a2(0x1f4),'risk':a90_0x20c6a2(0x1ee),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4de9b7){const _0x215c6e=a90_0x20c6a2,_0xf457ea=_0x4de9b7[_0x215c6e(0x1e7)]('id'),_0x34380d=await testDbLinkConnect(_0xf457ea),_0x3a90e0=_0x34380d===!![]||typeof _0x34380d===_0x215c6e(0x1e4)&&_0x34380d!==null&&_0x34380d[_0x215c6e(0x1f2)]===!![],_0x1d230b=summarizeTestConnectResult(_0x34380d);return{'ok':!![],'data':{'id':_0xf457ea,'connected':Boolean(_0x3a90e0),'result':_0x1d230b},'message':_0x3a90e0?_0x215c6e(0x1f5)+_0xf457ea:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0xf457ea+_0x215c6e(0x1f7)};}};
1
+ const a90_0x4bf2be=a90_0x4494;(function(_0x21cdcc,_0x9151a3){const _0x24650c=a90_0x4494,_0x457e2f=_0x21cdcc();while(!![]){try{const _0x3d3320=-parseInt(_0x24650c(0x1e2))/0x1+parseInt(_0x24650c(0x1da))/0x2*(-parseInt(_0x24650c(0x1d1))/0x3)+parseInt(_0x24650c(0x1d3))/0x4*(-parseInt(_0x24650c(0x1d6))/0x5)+parseInt(_0x24650c(0x1e1))/0x6*(parseInt(_0x24650c(0x1d0))/0x7)+-parseInt(_0x24650c(0x1e3))/0x8+parseInt(_0x24650c(0x1dc))/0x9+parseInt(_0x24650c(0x1e0))/0xa*(parseInt(_0x24650c(0x1e4))/0xb);if(_0x3d3320===_0x9151a3)break;else _0x457e2f['push'](_0x457e2f['shift']());}catch(_0x58d891){_0x457e2f['push'](_0x457e2f['shift']());}}}(a90_0x40c3,0xb5bfc));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x14f17f){const _0x59bd71=a90_0x4494;if(_0x14f17f===!![]||_0x14f17f===![])return{'success':_0x14f17f};if(_0x14f17f===null||_0x14f17f===undefined)return{'type':typeof _0x14f17f};if(typeof _0x14f17f!==_0x59bd71(0x1d2))return{'type':typeof _0x14f17f};const _0x4f0a4e=_0x14f17f,_0x3ff151=[_0x59bd71(0x1e8),_0x59bd71(0x1e5),'code',_0x59bd71(0x1df),'msg','data'],_0x26024d={};for(const _0x165d02 of _0x3ff151){if(_0x165d02 in _0x4f0a4e)_0x26024d[_0x165d02]=_0x4f0a4e[_0x165d02];}return Object[_0x59bd71(0x1de)](_0x26024d)[_0x59bd71(0x1e6)]===0x0&&(_0x26024d[_0x59bd71(0x1de)]=Object[_0x59bd71(0x1de)](_0x4f0a4e)[_0x59bd71(0x1d8)](0x0,0x14)),_0x26024d;}function a90_0x4494(_0x281a19,_0x3681c6){_0x281a19=_0x281a19-0x1d0;const _0x40c3b0=a90_0x40c3();let _0x449412=_0x40c3b0[_0x281a19];return _0x449412;}export const dbTest={'service':'db','command':a90_0x4bf2be(0x1dd),'description':a90_0x4bf2be(0x1db),'risk':a90_0x4bf2be(0x1d5),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x419fa7){const _0x4aec4c=a90_0x4bf2be,_0x2138ac=_0x419fa7[_0x4aec4c(0x1d4)]('id'),_0x11a713=await testDbLinkConnect(_0x2138ac),_0x520104=_0x11a713===!![]||typeof _0x11a713===_0x4aec4c(0x1d2)&&_0x11a713!==null&&_0x11a713[_0x4aec4c(0x1e8)]===!![],_0x550042=summarizeTestConnectResult(_0x11a713);return{'ok':!![],'data':{'id':_0x2138ac,'connected':Boolean(_0x520104),'result':_0x550042},'message':_0x520104?_0x4aec4c(0x1e7)+_0x2138ac:_0x4aec4c(0x1d7)+_0x2138ac+_0x4aec4c(0x1d9)};}};function a90_0x40c3(){const _0x35f4be=['slice','\x20(see\x20data.result)','2aMLrms','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','4989150ROLgYF','test','keys','error','19785410ETUqoG','18xjWWeq','812697VZMldF','2390944UUZgdU','11uTAiUm','message','length','Connection\x20OK\x20for\x20db\x20link\x20','success','1884624srUMFT','1330230zEuKOt','object','872JgANTI','num','read','23880ozLDfi','Connection\x20check\x20finished\x20for\x20db\x20link\x20'];a90_0x40c3=function(){return _0x35f4be;};return a90_0x40c3();}
@@ -1 +1 @@
1
- const a91_0x494f83=a91_0x29b7;function a91_0x29b7(_0x3446f2,_0x341327){_0x3446f2=_0x3446f2-0x182;const _0x18ed05=a91_0x18ed();let _0x29b7fc=_0x18ed05[_0x3446f2];return _0x29b7fc;}(function(_0x316ed0,_0xefffe0){const _0x2c5b95=a91_0x29b7,_0x3b8838=_0x316ed0();while(!![]){try{const _0x2e7f83=parseInt(_0x2c5b95(0x18d))/0x1*(-parseInt(_0x2c5b95(0x19a))/0x2)+parseInt(_0x2c5b95(0x190))/0x3+-parseInt(_0x2c5b95(0x18f))/0x4*(-parseInt(_0x2c5b95(0x198))/0x5)+parseInt(_0x2c5b95(0x193))/0x6+parseInt(_0x2c5b95(0x199))/0x7+parseInt(_0x2c5b95(0x1a5))/0x8*(-parseInt(_0x2c5b95(0x1a2))/0x9)+parseInt(_0x2c5b95(0x191))/0xa*(parseInt(_0x2c5b95(0x1a6))/0xb);if(_0x2e7f83===_0xefffe0)break;else _0x3b8838['push'](_0x3b8838['shift']());}catch(_0x4dcea7){_0x3b8838['push'](_0x3b8838['shift']());}}}(a91_0x18ed,0x9dc06));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a91_0x494f83(0x19c),a91_0x494f83(0x183)]);function mergeDbLinkUpdate(_0x1f1fe0,_0x240777){const _0x97d60=a91_0x494f83,_0x47da40={..._0x1f1fe0},_0x3f434d=_0x240777[_0x97d60(0x192)](_0x97d60(0x189));if(_0x3f434d&&MASKED_PASSWORD_VALUES[_0x97d60(0x195)](_0x3f434d))throw CliErrors[_0x97d60(0x197)]('--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.');if(!_0x3f434d&&MASKED_PASSWORD_VALUES[_0x97d60(0x195)](String(_0x1f1fe0['password']??'')))throw CliErrors[_0x97d60(0x197)](_0x97d60(0x184));const _0x28c133=_0x240777[_0x97d60(0x192)](_0x97d60(0x1a4));if(_0x28c133)_0x47da40[_0x97d60(0x1a9)]=_0x28c133;const _0x57e180=_0x240777[_0x97d60(0x192)]('dburl');if(_0x57e180)_0x47da40['dbUrl']=_0x57e180[_0x97d60(0x18b)]();const _0xf6c8c8=_0x240777[_0x97d60(0x192)](_0x97d60(0x18c));if(_0xf6c8c8)_0x47da40[_0x97d60(0x18c)]=_0xf6c8c8;if(_0x3f434d)_0x47da40[_0x97d60(0x189)]=_0x3f434d;const _0x2a5306=_0x240777['str'](_0x97d60(0x186));if(_0x2a5306)_0x47da40[_0x97d60(0x19d)]=_0x2a5306;const _0x1199c1=_0x240777[_0x97d60(0x192)](_0x97d60(0x1a1));if(_0x1199c1)_0x47da40['dbDesc']=_0x1199c1;return _0x47da40;}export const dbUpdate={'service':'db','command':a91_0x494f83(0x185),'description':a91_0x494f83(0x196),'risk':a91_0x494f83(0x1a0),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a91_0x494f83(0x1a4),'type':a91_0x494f83(0x19b),'description':a91_0x494f83(0x1a3)},{'name':a91_0x494f83(0x188),'type':a91_0x494f83(0x19b),'description':'New\x20host:port'},{'name':a91_0x494f83(0x18c),'type':a91_0x494f83(0x19b),'description':a91_0x494f83(0x19e)},{'name':a91_0x494f83(0x189),'type':a91_0x494f83(0x19b),'description':'Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20server\x20returns\x20a\x20masked\x20password'},{'name':'dbparam','type':'string','description':a91_0x494f83(0x182)},{'name':'dbdesc','type':'string','description':a91_0x494f83(0x1a7)}],async 'validate'(_0x47a9bd){const _0x48f319=a91_0x494f83,_0x3163d5=_0x47a9bd[_0x48f319(0x192)]('dburl');if(_0x3163d5&&!validateDbUrl(_0x3163d5[_0x48f319(0x18b)]()))throw CliErrors[_0x48f319(0x197)](_0x48f319(0x18e)+_0x3163d5+'\x22');},async 'dryRun'(_0x294d63){const _0x184ca3=a91_0x494f83,_0x36ed5a=_0x294d63[_0x184ca3(0x187)]('id'),_0x467205=await getDbLinkInfo(_0x36ed5a),_0x6cb81e=mergeDbLinkUpdate(_0x467205,_0x294d63),_0x540884=sanitizeDbLinkForOutput(_0x6cb81e);return{'method':_0x184ca3(0x194),'url':_0x184ca3(0x1a8),'body':_0x540884,'description':_0x184ca3(0x19f)};},async 'execute'(_0x486706){const _0x1c8c52=a91_0x494f83,_0x51b9ba=_0x486706[_0x1c8c52(0x187)]('id'),_0x1c1a02=await getDbLinkInfo(_0x51b9ba),_0x1f117a=mergeDbLinkUpdate(_0x1c1a02,_0x486706),{id:_0x24116a,entity:_0x4cb9de}=normalizeEntityWithIdResponse(await updateDbLink(_0x1f117a));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x4cb9de),'message':_0x1c8c52(0x18a)+(_0x24116a??_0x51b9ba)};}};function a91_0x18ed(){const _0x1df7a5=['7788920FDdfJG','484VLkFHZ','New\x20description','/smartapi/dblink/update','dbName','New\x20connection\x20parameter\x20string','[redacted]','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','update','dbparam','num','dburl','password','Updated\x20db\x20link\x20','trim','username','405011NSVZbD','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','553976HPGqvb','1685109QcOQoU','196530aqtAeS','str','3448416EVdlgm','POST','has','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','validation','15NcVlJi','91938Vmjuff','4xTjNNB','string','******','dbParam','New\x20username','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','write','dbdesc','9BTyREb','New\x20database\x20name','dbname'];a91_0x18ed=function(){return _0x1df7a5;};return a91_0x18ed();}
1
+ const a91_0x37ec04=a91_0x3aac;(function(_0xf97cef,_0x5ba362){const _0x5665e3=a91_0x3aac,_0x3a6f1a=_0xf97cef();while(!![]){try{const _0x10642a=parseInt(_0x5665e3(0x103))/0x1*(parseInt(_0x5665e3(0xed))/0x2)+parseInt(_0x5665e3(0x104))/0x3+parseInt(_0x5665e3(0xe6))/0x4+-parseInt(_0x5665e3(0xfb))/0x5+parseInt(_0x5665e3(0x105))/0x6*(parseInt(_0x5665e3(0xff))/0x7)+-parseInt(_0x5665e3(0xfa))/0x8+-parseInt(_0x5665e3(0x101))/0x9;if(_0x10642a===_0x5ba362)break;else _0x3a6f1a['push'](_0x3a6f1a['shift']());}catch(_0x54880b){_0x3a6f1a['push'](_0x3a6f1a['shift']());}}}(a91_0xd814,0xad836));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a91_0xd814(){const _0x1752a3=['--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','dbDesc','New\x20database\x20name','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20server\x20returns\x20a\x20masked\x20password','New\x20description','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','New\x20username','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','trim','dbParam','1883592CiLWWC','5586930hzpBvb','update','string','dburl','2296rcfkOI','str','22278456PEdUqD','dbparam','381RHBaRU','4021389YcJDCL','9696GrhDti','validation','has','dbdesc','/smartapi/dblink/update','username','[redacted]','num','5306144FZtcCy','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','New\x20connection\x20parameter\x20string','dbname','******','New\x20host:port','password','7044PrmDhe','dbUrl'];a91_0xd814=function(){return _0x1752a3;};return a91_0xd814();}function a91_0x3aac(_0x14e6b2,_0x20fade){_0x14e6b2=_0x14e6b2-0xe2;const _0xd81436=a91_0xd814();let _0x3aacb6=_0xd81436[_0x14e6b2];return _0x3aacb6;}const MASKED_PASSWORD_VALUES=new Set([a91_0x37ec04(0xea),a91_0x37ec04(0xe4)]);function mergeDbLinkUpdate(_0x2d2995,_0x3a261b){const _0x5684e0=a91_0x37ec04,_0x4073a4={..._0x2d2995},_0x2fa9bf=_0x3a261b['str']('password');if(_0x2fa9bf&&MASKED_PASSWORD_VALUES[_0x5684e0(0x107)](_0x2fa9bf))throw CliErrors[_0x5684e0(0x106)](_0x5684e0(0xef));if(!_0x2fa9bf&&MASKED_PASSWORD_VALUES[_0x5684e0(0x107)](String(_0x2d2995[_0x5684e0(0xec)]??'')))throw CliErrors[_0x5684e0(0x106)](_0x5684e0(0xf0));const _0x2b4da2=_0x3a261b[_0x5684e0(0x100)](_0x5684e0(0xe9));if(_0x2b4da2)_0x4073a4['dbName']=_0x2b4da2;const _0x8bfe82=_0x3a261b['str'](_0x5684e0(0xfe));if(_0x8bfe82)_0x4073a4[_0x5684e0(0xee)]=_0x8bfe82[_0x5684e0(0xf8)]();const _0x584f36=_0x3a261b['str'](_0x5684e0(0xe3));if(_0x584f36)_0x4073a4[_0x5684e0(0xe3)]=_0x584f36;if(_0x2fa9bf)_0x4073a4['password']=_0x2fa9bf;const _0x23b023=_0x3a261b['str'](_0x5684e0(0x102));if(_0x23b023)_0x4073a4[_0x5684e0(0xf9)]=_0x23b023;const _0x4cb129=_0x3a261b[_0x5684e0(0x100)](_0x5684e0(0x108));if(_0x4cb129)_0x4073a4[_0x5684e0(0xf1)]=_0x4cb129;return _0x4073a4;}export const dbUpdate={'service':'db','command':a91_0x37ec04(0xfc),'description':a91_0x37ec04(0xf7),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a91_0x37ec04(0xfd),'description':a91_0x37ec04(0xf2)},{'name':a91_0x37ec04(0xfe),'type':'string','description':a91_0x37ec04(0xeb)},{'name':a91_0x37ec04(0xe3),'type':a91_0x37ec04(0xfd),'description':a91_0x37ec04(0xf6)},{'name':a91_0x37ec04(0xec),'type':a91_0x37ec04(0xfd),'description':a91_0x37ec04(0xf3)},{'name':a91_0x37ec04(0x102),'type':a91_0x37ec04(0xfd),'description':a91_0x37ec04(0xe8)},{'name':a91_0x37ec04(0x108),'type':a91_0x37ec04(0xfd),'description':a91_0x37ec04(0xf4)}],async 'validate'(_0x2d25f3){const _0x5dcc63=a91_0x37ec04,_0x6f5bb2=_0x2d25f3[_0x5dcc63(0x100)]('dburl');if(_0x6f5bb2&&!validateDbUrl(_0x6f5bb2[_0x5dcc63(0xf8)]()))throw CliErrors['validation'](_0x5dcc63(0xf5)+_0x6f5bb2+'\x22');},async 'dryRun'(_0x576a12){const _0x468b8e=a91_0x37ec04,_0x5f1212=_0x576a12[_0x468b8e(0xe5)]('id'),_0x3c8d3e=await getDbLinkInfo(_0x5f1212),_0x440919=mergeDbLinkUpdate(_0x3c8d3e,_0x576a12),_0x127a9b=sanitizeDbLinkForOutput(_0x440919);return{'method':'POST','url':_0x468b8e(0xe2),'body':_0x127a9b,'description':_0x468b8e(0xe7)};},async 'execute'(_0x415e40){const _0x59bc80=a91_0x37ec04,_0x1626ff=_0x415e40[_0x59bc80(0xe5)]('id'),_0x7a6b10=await getDbLinkInfo(_0x1626ff),_0x27e61d=mergeDbLinkUpdate(_0x7a6b10,_0x415e40),{id:_0x4bb094,entity:_0x562504}=normalizeEntityWithIdResponse(await updateDbLink(_0x27e61d));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x562504),'message':'Updated\x20db\x20link\x20'+(_0x4bb094??_0x1626ff)};}};
@@ -1 +1 @@
1
- const a92_0x84823e=a92_0x2669;(function(_0x53fba0,_0x2ed9c0){const _0x46569f=a92_0x2669,_0x15a7fe=_0x53fba0();while(!![]){try{const _0x3ba3b8=parseInt(_0x46569f(0xae))/0x1+-parseInt(_0x46569f(0xb4))/0x2+-parseInt(_0x46569f(0xb1))/0x3+parseInt(_0x46569f(0x9c))/0x4*(-parseInt(_0x46569f(0x93))/0x5)+-parseInt(_0x46569f(0x7b))/0x6*(parseInt(_0x46569f(0x72))/0x7)+-parseInt(_0x46569f(0xb2))/0x8+parseInt(_0x46569f(0xc3))/0x9;if(_0x3ba3b8===_0x2ed9c0)break;else _0x15a7fe['push'](_0x15a7fe['shift']());}catch(_0x3817ac){_0x15a7fe['push'](_0x15a7fe['shift']());}}}(a92_0x54f8,0x50cd2));function a92_0x54f8(){const _0x292ac8=['yellow','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','state','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','message','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','155uDjhns','accessKey','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','✗\x20Expired','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Global','\x20\x20Config\x20JSON','Project','28888oFTZSp','platform','\x20\x20explicitAppName:\x20','green','\x20doctor','reason','apiDir','riskLevel','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20set)','\x20(default)','(set,\x20length=','✗\x20Not\x20logged\x20in','repeat','source','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Installed\x20Path:\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','483173fyXoeZ','(unknown)','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','72423BttTMD','3048920UILSSh','\x20\x20─','826260LHWrnH','defaultApp','\x20\x20Package\x20Version:\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','check','padEnd','empty','\x20\x20API\x20Endpoints','gray','log','slice','length','(default:\x20','(no\x20file)','raw','11440179fIlSpD','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20←\x20current','(none)','cookie','arch','doctor','value','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','skillVersion','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','keys','7FXVYCu','\x20\x20Config\x20Files','verbose','bold','currentApp','✓\x20Valid\x20JSON','\x20\x20\x20\x20accessKey:\x20\x20','packageVersion','\x20\x20runtimeDomain:\x20\x20\x20','2286444FFJFTO','appCode','pageSize','(set\x20via\x20file,\x20length=','apps','format','repairCommand','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','red','\x20\x20Built-in\x20Skill','unknown','(not\x20found)','read','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','status'];a92_0x54f8=function(){return _0x292ac8;};return a92_0x54f8();}import a92_0x812fac from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';function a92_0x2669(_0x4222cf,_0xa99d49){_0x4222cf=_0x4222cf-0x72;const _0x54f85c=a92_0x54f8();let _0x2669c7=_0x54f85c[_0x4222cf];return _0x2669c7;}import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x104d8b){const _0x2a503e=a92_0x2669,_0x286fa4=GIT_COMMIT!==_0x2a503e(0x85)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x2a503e(0xbe)](0x0,0xa)+')':VERSION,_0x2dcb6c=buildConfigFromFlags({}),_0x380220=getCookie();console[_0x2a503e(0xbd)](),console[_0x2a503e(0xbd)](a92_0x812fac[_0x2a503e(0x75)](CLI_BIN_NAME+_0x2a503e(0xa0))),console[_0x2a503e(0xbd)](a92_0x812fac[_0x2a503e(0xbc)]('─'['repeat'](0x32))),console['log']('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x286fa4),console[_0x2a503e(0xbd)](_0x2a503e(0x90)+process['version']),console[_0x2a503e(0xbd)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x2a503e(0x9d)]+'\x20'+process[_0x2a503e(0xc8)]);const _0x14fb03=inspectBuiltinSkill();console[_0x2a503e(0xbd)](),console[_0x2a503e(0xbd)](a92_0x812fac[_0x2a503e(0x75)](_0x2a503e(0x84))),console['log'](a92_0x812fac[_0x2a503e(0xbc)]('\x20\x20─'[_0x2a503e(0xa9)](0x1e)));const _0x1c52ba=_0x14fb03['state']==='current'?a92_0x812fac['green']('✓\x20'+_0x14fb03[_0x2a503e(0x8e)]):a92_0x812fac[_0x2a503e(0x83)]('✗\x20'+_0x14fb03[_0x2a503e(0x8e)]);console[_0x2a503e(0xbd)](_0x2a503e(0xcb)+_0x1c52ba),console[_0x2a503e(0xbd)](_0x2a503e(0xb6)+_0x14fb03[_0x2a503e(0x79)]),console['log']('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x14fb03[_0x2a503e(0xcc)]||a92_0x812fac[_0x2a503e(0xbc)](_0x2a503e(0xaf)))),console['log'](_0x2a503e(0xac)+(_0x14fb03['installedPath']||a92_0x812fac[_0x2a503e(0xbc)](_0x2a503e(0x86))));if(_0x14fb03[_0x2a503e(0xa1)])console[_0x2a503e(0xbd)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x14fb03[_0x2a503e(0xa1)]);_0x14fb03['state']!=='current'&&console['log'](_0x2a503e(0xab)+_0x14fb03[_0x2a503e(0x81)]);console[_0x2a503e(0xbd)](),console[_0x2a503e(0xbd)](a92_0x812fac[_0x2a503e(0x75)](_0x2a503e(0x73))),console['log'](a92_0x812fac[_0x2a503e(0xbc)]('\x20\x20─'[_0x2a503e(0xa9)](0x1e)));const _0x3e2e07=getGlobalConfigPath(),_0x380c82=getProjectConfigPath();console[_0x2a503e(0xbd)](_0x2a503e(0xcd)+(_0x3e2e07||a92_0x812fac[_0x2a503e(0xbc)](_0x2a503e(0x86)))),console[_0x2a503e(0xbd)](_0x2a503e(0x92)+(_0x380c82||a92_0x812fac[_0x2a503e(0xbc)](_0x2a503e(0x86)))),console['log'](),console[_0x2a503e(0xbd)](a92_0x812fac[_0x2a503e(0x75)](_0x2a503e(0x9a))),console[_0x2a503e(0xbd)](a92_0x812fac[_0x2a503e(0xbc)](_0x2a503e(0xb3)[_0x2a503e(0xa9)](0x1e)));const _0x53ea7d=(_0x3dc405,_0x248d20)=>{const _0x2af57a=_0x2a503e;if(!_0x248d20){console['log']('\x20\x20'+_0x3dc405[_0x2af57a(0xb9)](0x11)+'\x20'+a92_0x812fac['gray'](_0x2af57a(0xc1)));return;}const _0x3c6e67=inspectCliConfigJsonFile(_0x248d20);if(_0x3c6e67[_0x2af57a(0x8a)]==='ok')console['log']('\x20\x20'+_0x3dc405[_0x2af57a(0xb9)](0x11)+'\x20'+a92_0x812fac[_0x2af57a(0x9f)](_0x2af57a(0x77)));else{if(_0x3c6e67[_0x2af57a(0x8a)]===_0x2af57a(0xba))console['log']('\x20\x20'+_0x3dc405[_0x2af57a(0xb9)](0x11)+'\x20'+a92_0x812fac[_0x2af57a(0x8b)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x3c6e67['status']==='missing'?console[_0x2af57a(0xbd)]('\x20\x20'+_0x3dc405[_0x2af57a(0xb9)](0x11)+'\x20'+a92_0x812fac[_0x2af57a(0xbc)]('(missing)')):(console[_0x2af57a(0xbd)]('\x20\x20'+_0x3dc405['padEnd'](0x11)+'\x20'+a92_0x812fac[_0x2af57a(0x83)]('✗\x20Invalid\x20JSON')),console['log']('\x20\x20'+''[_0x2af57a(0xb9)](0x11)+'\x20'+a92_0x812fac[_0x2af57a(0x83)](_0x3c6e67[_0x2af57a(0x91)])));}};_0x53ea7d(_0x2a503e(0x99),_0x3e2e07),_0x53ea7d(_0x2a503e(0x9b),_0x380c82),console[_0x2a503e(0xbd)](),console['log'](a92_0x812fac['bold']('\x20\x20Merged\x20Config')),console[_0x2a503e(0xbd)](a92_0x812fac['gray'](_0x2a503e(0xb3)[_0x2a503e(0xa9)](0x1e))),console['log']('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2dcb6c[_0x2a503e(0x7c)]||a92_0x812fac[_0x2a503e(0x83)](_0x2a503e(0xa5)))),console[_0x2a503e(0xbd)](_0x2a503e(0x97)+_0x2dcb6c[_0x2a503e(0xce)]),console[_0x2a503e(0xbd)](_0x2a503e(0xb0)+_0x2dcb6c['locale']),console[_0x2a503e(0xbd)](_0x2a503e(0x8f)+_0x2dcb6c['apiDir']),console[_0x2a503e(0xbd)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x2dcb6c[_0x2a503e(0xb5)]||a92_0x812fac[_0x2a503e(0xbc)](_0x2a503e(0xc6)))),console[_0x2a503e(0xbd)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x2dcb6c[_0x2a503e(0x76)]||a92_0x812fac['gray'](_0x2a503e(0xc6)))),console[_0x2a503e(0xbd)](_0x2a503e(0x9e)+(_0x2dcb6c['explicitAppName']||a92_0x812fac[_0x2a503e(0xbc)](_0x2a503e(0xc6)))),console[_0x2a503e(0xbd)](_0x2a503e(0xa4)+(_0x2dcb6c['format']||a92_0x812fac[_0x2a503e(0xbc)](_0x2a503e(0xc0)+DEFAULT_CONFIG_VALUES[_0x2a503e(0x80)]+')'))),console[_0x2a503e(0xbd)](_0x2a503e(0xb7)+(_0x2dcb6c[_0x2a503e(0x7d)]??a92_0x812fac[_0x2a503e(0xbc)]('(default)'))),console[_0x2a503e(0xbd)](_0x2a503e(0x88)+_0x2dcb6c[_0x2a503e(0xa3)]),console[_0x2a503e(0xbd)](_0x2a503e(0x98)+_0x2dcb6c[_0x2a503e(0x74)]),console[_0x2a503e(0xbd)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2dcb6c['cookie']?a92_0x812fac['green'](_0x2a503e(0xa7)+_0x2dcb6c[_0x2a503e(0xc7)][_0x2a503e(0xbf)]+')'):_0x380220?a92_0x812fac['green'](_0x2a503e(0x7e)+_0x380220['length']+')'):a92_0x812fac[_0x2a503e(0xbc)]('(none)')));const _0x38113e=Object[_0x2a503e(0xcf)](_0x2dcb6c['apps']);if(_0x38113e[_0x2a503e(0xbf)]>0x0){console['log'](),console['log'](a92_0x812fac[_0x2a503e(0x75)]('\x20\x20Apps')),console['log'](a92_0x812fac[_0x2a503e(0xbc)](_0x2a503e(0xb3)['repeat'](0x1e)));for(const _0x167742 of _0x38113e){const _0x22d652=_0x2dcb6c[_0x2a503e(0x7f)][_0x167742],_0x3ccac8=_0x167742===_0x2dcb6c['defaultApp'],_0x43eec7=_0x167742===_0x2dcb6c['currentApp'],_0x2297ff=_0x43eec7?a92_0x812fac[_0x2a503e(0x9f)](_0x2a503e(0xc5)):'',_0x377d08=_0x3ccac8?_0x2a503e(0xa6):'';console[_0x2a503e(0xbd)]('\x20\x20'+_0x167742+_0x377d08+_0x2297ff),console['log'](_0x2a503e(0xad)+_0x22d652['appcode']);const _0x55b14e=buildAppDoctorFields(_0x22d652,{'env':_0x2dcb6c[_0x2a503e(0xce)],'apiDir':_0x2dcb6c[_0x2a503e(0xc2)][_0x2a503e(0xa2)]||DEFAULT_CONFIG_VALUES[_0x2a503e(0xa2)],'cookie':_0x2dcb6c[_0x2a503e(0xc7)]||_0x380220||undefined,'accessKey':_0x2dcb6c['accessKey']});console[_0x2a503e(0xbd)](_0x2a503e(0x89)+_0x55b14e[_0x2a503e(0xce)][_0x2a503e(0xca)]+'\x20\x20'+a92_0x812fac[_0x2a503e(0xbc)]('('+_0x55b14e[_0x2a503e(0xce)][_0x2a503e(0xaa)]+')')),console[_0x2a503e(0xbd)](_0x2a503e(0x82)+_0x55b14e['apiDir'][_0x2a503e(0xca)]+'\x20\x20'+a92_0x812fac[_0x2a503e(0xbc)]('('+_0x55b14e[_0x2a503e(0xa2)][_0x2a503e(0xaa)]+')'));const _0x14c3bc=_0x55b14e[_0x2a503e(0xc7)][_0x2a503e(0xca)]?a92_0x812fac[_0x2a503e(0x9f)](_0x2a503e(0xa7)+_0x55b14e[_0x2a503e(0xc7)]['value'][_0x2a503e(0xbf)]+')'):a92_0x812fac['gray'](_0x2a503e(0xc6));console['log'](_0x2a503e(0x8c)+_0x14c3bc+'\x20\x20'+a92_0x812fac[_0x2a503e(0xbc)]('('+_0x55b14e[_0x2a503e(0xc7)][_0x2a503e(0xaa)]+')'));const _0x220009=_0x55b14e['accessKey'][_0x2a503e(0xca)]?a92_0x812fac[_0x2a503e(0x9f)](_0x2a503e(0xa7)+_0x55b14e['accessKey'][_0x2a503e(0xca)][_0x2a503e(0xbf)]+')'):a92_0x812fac[_0x2a503e(0xbc)](_0x2a503e(0xc6));console[_0x2a503e(0xbd)](_0x2a503e(0x78)+_0x220009+'\x20\x20'+a92_0x812fac[_0x2a503e(0xbc)]('('+_0x55b14e[_0x2a503e(0x94)][_0x2a503e(0xaa)]+')'));}}console[_0x2a503e(0xbd)](),console[_0x2a503e(0xbd)](a92_0x812fac['bold'](_0x2a503e(0xbb))),console[_0x2a503e(0xbd)](a92_0x812fac[_0x2a503e(0xbc)](_0x2a503e(0xb3)[_0x2a503e(0xa9)](0x1e))),console[_0x2a503e(0xbd)](_0x2a503e(0x95)+getApiDomain()),console[_0x2a503e(0xbd)](_0x2a503e(0xc4)+getUserDomain()),console['log'](_0x2a503e(0x7a)+getRuntimeDomain()),console[_0x2a503e(0xbd)](),console[_0x2a503e(0xbd)](a92_0x812fac[_0x2a503e(0x75)]('\x20\x20Auth')),console[_0x2a503e(0xbd)](a92_0x812fac[_0x2a503e(0xbc)](_0x2a503e(0xb3)[_0x2a503e(0xa9)](0x1e)));if(_0x380220){const _0x35d8f1=await getIsSessionValid();console[_0x2a503e(0xbd)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x35d8f1?a92_0x812fac[_0x2a503e(0x9f)]('✓\x20Valid'):a92_0x812fac['red'](_0x2a503e(0x96))));}else console[_0x2a503e(0xbd)](_0x2a503e(0x8d)+a92_0x812fac['red'](_0x2a503e(0xa8)));return console[_0x2a503e(0xbd)](),{'ok':!![]};}export const doctorDefinition={'service':a92_0x84823e(0xc9),'command':a92_0x84823e(0xb8),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a92_0x84823e(0x87),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a92_0x203707=a92_0x4451;(function(_0x535301,_0x36195c){const _0x53d190=a92_0x4451,_0x4f90cd=_0x535301();while(!![]){try{const _0x384816=-parseInt(_0x53d190(0x1eb))/0x1+-parseInt(_0x53d190(0x192))/0x2+-parseInt(_0x53d190(0x1b7))/0x3+parseInt(_0x53d190(0x1c8))/0x4+parseInt(_0x53d190(0x1c1))/0x5+-parseInt(_0x53d190(0x19f))/0x6*(-parseInt(_0x53d190(0x1b6))/0x7)+parseInt(_0x53d190(0x19a))/0x8;if(_0x384816===_0x36195c)break;else _0x4f90cd['push'](_0x4f90cd['shift']());}catch(_0x5bf1f0){_0x4f90cd['push'](_0x4f90cd['shift']());}}}(a92_0x1c02,0xa9bf7));import a92_0x4105af from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';function a92_0x1c02(){const _0x347751=['(default)','green','log','padEnd','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20doctor','explicitAppName','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','114001MlnszP','✓\x20Valid','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','state','unknown','✗\x20Invalid\x20JSON','\x20\x20─','\x20\x20Config\x20JSON','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(not\x20found)','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Expired','1782240EWqGQI','appcode','repairCommand','read','(set,\x20length=','(none)','keys','(default:\x20','4873600jzlLhl','reason','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','Global','6PnCUCe','repeat','arch','\x20\x20Auth','appCode','apps','platform','skillVersion','defaultApp','missing','value','version','(not\x20set)','message','length','\x20\x20Package\x20Version:\x20','\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','yellow','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','raw','✓\x20Valid\x20JSON','1181551jTlttt','3510159gqkPuo','current','\x20\x20Installed\x20Path:\x20\x20','cookie','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','5419570oyTzqP','format','\x20\x20API\x20Endpoints','\x20\x20Apps','installedPath','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','riskLevel','4034216SvbMfG','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','source','status','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','red','\x20(default)','apiDir','env','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Project','slice','bold','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(unknown)','\x20\x20Merged\x20Config','locale','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files'];a92_0x1c02=function(){return _0x347751;};return a92_0x1c02();}import{inspectBuiltinSkill}from'../skills/builtin-skill.js';function a92_0x4451(_0x59fcf8,_0x2afe23){_0x59fcf8=_0x59fcf8-0x189;const _0x1c0231=a92_0x1c02();let _0x44517d=_0x1c0231[_0x59fcf8];return _0x44517d;}async function execute(_0x16a3d8){const _0x3d85e4=a92_0x4451,_0x51553e=GIT_COMMIT!==_0x3d85e4(0x18a)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x3d85e4(0x1d9)](0x0,0xa)+')':VERSION,_0x5e5eb8=buildConfigFromFlags({}),_0x37e29d=getCookie();console[_0x3d85e4(0x1e3)](),console['log'](a92_0x4105af['bold'](CLI_BIN_NAME+_0x3d85e4(0x1e6))),console[_0x3d85e4(0x1e3)](a92_0x4105af[_0x3d85e4(0x1d0)]('─'[_0x3d85e4(0x1a0)](0x32))),console['log'](_0x3d85e4(0x1ea)+_0x51553e),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1c9)+process[_0x3d85e4(0x1aa)]),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x19c)+process[_0x3d85e4(0x1a5)]+'\x20'+process[_0x3d85e4(0x1a1)]);const _0x471582=inspectBuiltinSkill();console['log'](),console[_0x3d85e4(0x1e3)](a92_0x4105af[_0x3d85e4(0x1da)]('\x20\x20Built-in\x20Skill')),console[_0x3d85e4(0x1e3)](a92_0x4105af['gray']('\x20\x20─'[_0x3d85e4(0x1a0)](0x1e)));const _0x3dc6ea=_0x471582['state']===_0x3d85e4(0x1b8)?a92_0x4105af[_0x3d85e4(0x1e2)]('✓\x20'+_0x471582['state']):a92_0x4105af[_0x3d85e4(0x1d3)]('✗\x20'+_0x471582[_0x3d85e4(0x189)]);console['log'](_0x3d85e4(0x1ed)+_0x3dc6ea),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1ae)+_0x471582['packageVersion']),console['log'](_0x3d85e4(0x1af)+(_0x471582[_0x3d85e4(0x1a6)]||a92_0x4105af[_0x3d85e4(0x1d0)](_0x3d85e4(0x1dc)))),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1b9)+(_0x471582[_0x3d85e4(0x1c5)]||a92_0x4105af[_0x3d85e4(0x1d0)](_0x3d85e4(0x18f))));if(_0x471582[_0x3d85e4(0x19b)])console['log'](_0x3d85e4(0x1cf)+_0x471582[_0x3d85e4(0x19b)]);_0x471582[_0x3d85e4(0x189)]!=='current'&&console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1d1)+_0x471582[_0x3d85e4(0x194)]);console['log'](),console[_0x3d85e4(0x1e3)](a92_0x4105af['bold'](_0x3d85e4(0x1e0))),console['log'](a92_0x4105af['gray'](_0x3d85e4(0x18c)[_0x3d85e4(0x1a0)](0x1e)));const _0x5e2a7f=getGlobalConfigPath(),_0x38c2d4=getProjectConfigPath();console[_0x3d85e4(0x1e3)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5e2a7f||a92_0x4105af[_0x3d85e4(0x1d0)](_0x3d85e4(0x18f)))),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1be)+(_0x38c2d4||a92_0x4105af[_0x3d85e4(0x1d0)](_0x3d85e4(0x18f)))),console['log'](),console[_0x3d85e4(0x1e3)](a92_0x4105af['bold'](_0x3d85e4(0x18d))),console[_0x3d85e4(0x1e3)](a92_0x4105af[_0x3d85e4(0x1d0)](_0x3d85e4(0x18c)[_0x3d85e4(0x1a0)](0x1e)));const _0x99f6b5=(_0xbf4e3e,_0x2eb8af)=>{const _0x1d3012=_0x3d85e4;if(!_0x2eb8af){console[_0x1d3012(0x1e3)]('\x20\x20'+_0xbf4e3e['padEnd'](0x11)+'\x20'+a92_0x4105af[_0x1d3012(0x1d0)]('(no\x20file)'));return;}const _0x1fa9fc=inspectCliConfigJsonFile(_0x2eb8af);if(_0x1fa9fc['status']==='ok')console[_0x1d3012(0x1e3)]('\x20\x20'+_0xbf4e3e['padEnd'](0x11)+'\x20'+a92_0x4105af[_0x1d3012(0x1e2)](_0x1d3012(0x1b5)));else{if(_0x1fa9fc[_0x1d3012(0x1ce)]==='empty')console['log']('\x20\x20'+_0xbf4e3e[_0x1d3012(0x1e4)](0x11)+'\x20'+a92_0x4105af[_0x1d3012(0x1b1)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x1fa9fc['status']===_0x1d3012(0x1a8)?console['log']('\x20\x20'+_0xbf4e3e[_0x1d3012(0x1e4)](0x11)+'\x20'+a92_0x4105af[_0x1d3012(0x1d0)](_0x1d3012(0x1bf))):(console[_0x1d3012(0x1e3)]('\x20\x20'+_0xbf4e3e[_0x1d3012(0x1e4)](0x11)+'\x20'+a92_0x4105af['red'](_0x1d3012(0x18b))),console[_0x1d3012(0x1e3)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a92_0x4105af[_0x1d3012(0x1d3)](_0x1fa9fc[_0x1d3012(0x1ac)])));}};_0x99f6b5(_0x3d85e4(0x19e),_0x5e2a7f),_0x99f6b5(_0x3d85e4(0x1d8),_0x38c2d4),console[_0x3d85e4(0x1e3)](),console['log'](a92_0x4105af[_0x3d85e4(0x1da)](_0x3d85e4(0x1dd))),console[_0x3d85e4(0x1e3)](a92_0x4105af[_0x3d85e4(0x1d0)]('\x20\x20─'[_0x3d85e4(0x1a0)](0x1e))),console[_0x3d85e4(0x1e3)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5e5eb8[_0x3d85e4(0x1a3)]||a92_0x4105af[_0x3d85e4(0x1d3)](_0x3d85e4(0x1ab)))),console['log'](_0x3d85e4(0x190)+_0x5e5eb8[_0x3d85e4(0x1d6)]),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1e8)+_0x5e5eb8[_0x3d85e4(0x1de)]),console['log'](_0x3d85e4(0x1bc)+_0x5e5eb8[_0x3d85e4(0x1d5)]),console['log']('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x5e5eb8[_0x3d85e4(0x1a7)]||a92_0x4105af[_0x3d85e4(0x1d0)]('(none)'))),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1bd)+(_0x5e5eb8['currentApp']||a92_0x4105af['gray'](_0x3d85e4(0x197)))),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1b3)+(_0x5e5eb8[_0x3d85e4(0x1e7)]||a92_0x4105af['gray'](_0x3d85e4(0x197)))),console['log'](_0x3d85e4(0x1db)+(_0x5e5eb8[_0x3d85e4(0x1c2)]||a92_0x4105af[_0x3d85e4(0x1d0)](_0x3d85e4(0x199)+DEFAULT_CONFIG_VALUES[_0x3d85e4(0x1c2)]+')'))),console['log'](_0x3d85e4(0x1d2)+(_0x5e5eb8['pageSize']??a92_0x4105af['gray'](_0x3d85e4(0x1e1)))),console['log'](_0x3d85e4(0x1e5)+_0x5e5eb8[_0x3d85e4(0x1c7)]),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1d7)+_0x5e5eb8['verbose']),console['log'](_0x3d85e4(0x1df)+(_0x5e5eb8[_0x3d85e4(0x1ba)]?a92_0x4105af['green'](_0x3d85e4(0x196)+_0x5e5eb8[_0x3d85e4(0x1ba)][_0x3d85e4(0x1ad)]+')'):_0x37e29d?a92_0x4105af[_0x3d85e4(0x1e2)]('(set\x20via\x20file,\x20length='+_0x37e29d[_0x3d85e4(0x1ad)]+')'):a92_0x4105af[_0x3d85e4(0x1d0)](_0x3d85e4(0x197))));const _0x40c0d6=Object[_0x3d85e4(0x198)](_0x5e5eb8[_0x3d85e4(0x1a4)]);if(_0x40c0d6[_0x3d85e4(0x1ad)]>0x0){console[_0x3d85e4(0x1e3)](),console['log'](a92_0x4105af['bold'](_0x3d85e4(0x1c4))),console[_0x3d85e4(0x1e3)](a92_0x4105af[_0x3d85e4(0x1d0)](_0x3d85e4(0x18c)[_0x3d85e4(0x1a0)](0x1e)));for(const _0x5a1fd4 of _0x40c0d6){const _0x1dd480=_0x5e5eb8[_0x3d85e4(0x1a4)][_0x5a1fd4],_0xab7738=_0x5a1fd4===_0x5e5eb8[_0x3d85e4(0x1a7)],_0x865263=_0x5a1fd4===_0x5e5eb8['currentApp'],_0x1d672f=_0x865263?a92_0x4105af[_0x3d85e4(0x1e2)](_0x3d85e4(0x1cc)):'',_0x2a102e=_0xab7738?_0x3d85e4(0x1d4):'';console['log']('\x20\x20'+_0x5a1fd4+_0x2a102e+_0x1d672f),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1b2)+_0x1dd480[_0x3d85e4(0x193)]);const _0xc17e35=buildAppDoctorFields(_0x1dd480,{'env':_0x5e5eb8[_0x3d85e4(0x1d6)],'apiDir':_0x5e5eb8[_0x3d85e4(0x1b4)][_0x3d85e4(0x1d5)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x5e5eb8[_0x3d85e4(0x1ba)]||_0x37e29d||undefined,'accessKey':_0x5e5eb8[_0x3d85e4(0x19d)]});console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1cb)+_0xc17e35[_0x3d85e4(0x1d6)][_0x3d85e4(0x1a9)]+'\x20\x20'+a92_0x4105af[_0x3d85e4(0x1d0)]('('+_0xc17e35[_0x3d85e4(0x1d6)]['source']+')')),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1c6)+_0xc17e35['apiDir']['value']+'\x20\x20'+a92_0x4105af['gray']('('+_0xc17e35[_0x3d85e4(0x1d5)]['source']+')'));const _0x3610e7=_0xc17e35[_0x3d85e4(0x1ba)][_0x3d85e4(0x1a9)]?a92_0x4105af['green']('(set,\x20length='+_0xc17e35[_0x3d85e4(0x1ba)][_0x3d85e4(0x1a9)][_0x3d85e4(0x1ad)]+')'):a92_0x4105af[_0x3d85e4(0x1d0)](_0x3d85e4(0x197));console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1bb)+_0x3610e7+'\x20\x20'+a92_0x4105af[_0x3d85e4(0x1d0)]('('+_0xc17e35[_0x3d85e4(0x1ba)][_0x3d85e4(0x1cd)]+')'));const _0x1b8bbd=_0xc17e35[_0x3d85e4(0x19d)]['value']?a92_0x4105af[_0x3d85e4(0x1e2)]('(set,\x20length='+_0xc17e35[_0x3d85e4(0x19d)][_0x3d85e4(0x1a9)][_0x3d85e4(0x1ad)]+')'):a92_0x4105af[_0x3d85e4(0x1d0)]('(none)');console[_0x3d85e4(0x1e3)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x1b8bbd+'\x20\x20'+a92_0x4105af[_0x3d85e4(0x1d0)]('('+_0xc17e35[_0x3d85e4(0x19d)]['source']+')'));}}console[_0x3d85e4(0x1e3)](),console[_0x3d85e4(0x1e3)](a92_0x4105af['bold'](_0x3d85e4(0x1c3))),console['log'](a92_0x4105af[_0x3d85e4(0x1d0)]('\x20\x20─'['repeat'](0x1e))),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1c0)+getApiDomain()),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x18e)+getUserDomain()),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1b0)+getRuntimeDomain()),console['log'](),console[_0x3d85e4(0x1e3)](a92_0x4105af[_0x3d85e4(0x1da)](_0x3d85e4(0x1a2))),console['log'](a92_0x4105af[_0x3d85e4(0x1d0)]('\x20\x20─'['repeat'](0x1e)));if(_0x37e29d){const _0x3e8a76=await getIsSessionValid();console[_0x3d85e4(0x1e3)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3e8a76?a92_0x4105af[_0x3d85e4(0x1e2)](_0x3d85e4(0x1ec)):a92_0x4105af[_0x3d85e4(0x1d3)](_0x3d85e4(0x191))));}else console[_0x3d85e4(0x1e3)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a92_0x4105af['red'](_0x3d85e4(0x1ca)));return console[_0x3d85e4(0x1e3)](),{'ok':!![]};}export const doctorDefinition={'service':a92_0x203707(0x1e9),'command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a92_0x203707(0x195),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a93_0x5d16cc=a93_0xadc6;(function(_0x2c5ce1,_0x635fed){const _0x4f0d98=a93_0xadc6,_0x6c448c=_0x2c5ce1();while(!![]){try{const _0xdc144b=parseInt(_0x4f0d98(0x101))/0x1*(parseInt(_0x4f0d98(0x10c))/0x2)+-parseInt(_0x4f0d98(0x109))/0x3*(-parseInt(_0x4f0d98(0xf3))/0x4)+-parseInt(_0x4f0d98(0xf7))/0x5+parseInt(_0x4f0d98(0x10d))/0x6*(-parseInt(_0x4f0d98(0xf4))/0x7)+-parseInt(_0x4f0d98(0x110))/0x8*(parseInt(_0x4f0d98(0xf0))/0x9)+-parseInt(_0x4f0d98(0xf1))/0xa*(-parseInt(_0x4f0d98(0x112))/0xb)+-parseInt(_0x4f0d98(0x102))/0xc*(parseInt(_0x4f0d98(0xf2))/0xd);if(_0xdc144b===_0x635fed)break;else _0x6c448c['push'](_0x6c448c['shift']());}catch(_0x227a90){_0x6c448c['push'](_0x6c448c['shift']());}}}(a93_0x4a4b,0xe3ccb));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';function a93_0xadc6(_0xb03e51,_0x21f328){_0xb03e51=_0xb03e51-0xef;const _0x4a4b2c=a93_0x4a4b();let _0xadc615=_0x4a4b2c[_0xb03e51];return _0xadc615;}import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a93_0x5d16cc(0x10e),'type':a93_0x5d16cc(0x10a),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a93_0x5d16cc(0xfa),'type':'string','required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':a93_0x5d16cc(0x106),'type':'boolean','description':a93_0x5d16cc(0x115)},LONG_TERM_FLAG={'name':a93_0x5d16cc(0xf6),'type':'boolean','description':a93_0x5d16cc(0x100)};function a93_0x4a4b(){const _0x37d2f3=['/smartapi/common/uploadFile','2QuntfJ','2932986XFZuUt','file','filePath\x20is\x20required.','13296688YCIhRH','Preview:\x20upload\x20','11pkfrky','validation','appCode','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','trim','9gppLXG','15842480ncAfPu','87347qXnuph','3182904VaqcEq','7JHBvjA','path','long-term','3399860nQCsxs','Uploaded\x20file:\x20','bool','filepath','str','query-url','upload','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','read','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','689041VojTOj','180SITUcS','filePath','File','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','download','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','POST','6HgxTMQ','string'];a93_0x4a4b=function(){return _0x37d2f3;};return a93_0x4a4b();}function requireFilePath(_0x1563c0){const _0xe2a303=a93_0x5d16cc,_0x29f0ba=_0x1563c0[_0xe2a303(0xef)]();if(!_0x29f0ba)throw CliErrors[_0xe2a303(0x113)](_0xe2a303(0x10f));return _0x29f0ba;}const fileUpload={'service':a93_0x5d16cc(0x10e),'command':a93_0x5d16cc(0xfd),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a93_0x5d16cc(0xff),'flags':[FILE_FLAG],async 'dryRun'(_0x591b7a){const _0xddd569=a93_0x5d16cc,_0x475174=requireDevelopmentUploadFile(_0x591b7a[_0xddd569(0xfb)](_0xddd569(0x10e)),_0xddd569(0x104));return{'method':_0xddd569(0x108),'url':_0xddd569(0x10b),'body':{'appCode':_0x591b7a[_0xddd569(0x114)],'multipart':{'file':_0x475174}},'description':_0xddd569(0x111)+_0x475174[_0xddd569(0xf5)]+'\x20to\x20development\x20app\x20'+_0x591b7a['appCode']};},async 'execute'(_0x52770e){const _0x3c58dc=a93_0x5d16cc,_0xf9867b=requireDevelopmentUploadFile(_0x52770e[_0x3c58dc(0xfb)](_0x3c58dc(0x10e)),'File'),_0x8f6760=await uploadDevelopmentFile(_0x52770e[_0x3c58dc(0x114)],_0xf9867b[_0x3c58dc(0xf5)]);return{'ok':!![],'data':_0x8f6760,'message':_0x8f6760[_0x3c58dc(0x103)]?_0x3c58dc(0xf8)+_0x8f6760['filePath']+_0x3c58dc(0x107):_0x3c58dc(0xfe)};}},fileQueryUrl={'service':a93_0x5d16cc(0x10e),'command':a93_0x5d16cc(0xfc),'description':a93_0x5d16cc(0x105),'risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x112619){const _0x3f9254=a93_0x5d16cc,_0x347145=requireFilePath(_0x112619['str']('filepath')),_0xa4901=await queryDevelopmentFileUrl(_0x347145,{'download':_0x112619['bool'](_0x3f9254(0x106)),'longTerm':_0x112619[_0x3f9254(0xf9)]('long-term')});return{'ok':!![],'data':_0xa4901};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a93_0x2b3779=a93_0x38da;(function(_0x13bd59,_0x4b6b9f){const _0x35abdc=a93_0x38da,_0x2d3b9f=_0x13bd59();while(!![]){try{const _0x840974=parseInt(_0x35abdc(0xda))/0x1+-parseInt(_0x35abdc(0xe3))/0x2*(parseInt(_0x35abdc(0xdc))/0x3)+-parseInt(_0x35abdc(0xc4))/0x4+-parseInt(_0x35abdc(0xc8))/0x5*(parseInt(_0x35abdc(0xd5))/0x6)+-parseInt(_0x35abdc(0xc7))/0x7+-parseInt(_0x35abdc(0xd4))/0x8+parseInt(_0x35abdc(0xdb))/0x9;if(_0x840974===_0x4b6b9f)break;else _0x2d3b9f['push'](_0x2d3b9f['shift']());}catch(_0x3b759e){_0x2d3b9f['push'](_0x2d3b9f['shift']());}}}(a93_0x1991,0x2190a));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a93_0x2b3779(0xc5),'type':a93_0x2b3779(0xd3),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':'filepath','type':a93_0x2b3779(0xd3),'required':!![],'description':a93_0x2b3779(0xe1)},DOWNLOAD_FLAG={'name':a93_0x2b3779(0xca),'type':a93_0x2b3779(0xe2),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a93_0x2b3779(0xc9),'type':a93_0x2b3779(0xe2),'description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x5826ea){const _0x5b00dc=a93_0x2b3779,_0x4fcbe3=_0x5826ea[_0x5b00dc(0xcd)]();if(!_0x4fcbe3)throw CliErrors[_0x5b00dc(0xd6)](_0x5b00dc(0xe0));return _0x4fcbe3;}function a93_0x38da(_0x10b521,_0x688aa9){_0x10b521=_0x10b521-0xc4;const _0x1991b0=a93_0x1991();let _0x38da22=_0x1991b0[_0x10b521];return _0x38da22;}const fileUpload={'service':a93_0x2b3779(0xc5),'command':a93_0x2b3779(0xdf),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a93_0x2b3779(0xd9),'flags':[FILE_FLAG],async 'dryRun'(_0x40ccf6){const _0x58e596=a93_0x2b3779,_0x41677a=requireDevelopmentUploadFile(_0x40ccf6[_0x58e596(0xd1)](_0x58e596(0xc5)),_0x58e596(0xc6));return{'method':_0x58e596(0xde),'url':'/smartapi/common/uploadFile','body':{'appCode':_0x40ccf6['appCode'],'multipart':{'file':_0x41677a}},'description':_0x58e596(0xcf)+_0x41677a['path']+'\x20to\x20development\x20app\x20'+_0x40ccf6[_0x58e596(0xce)]};},async 'execute'(_0x2a7ce2){const _0x1271ce=a93_0x2b3779,_0xa0bbf8=requireDevelopmentUploadFile(_0x2a7ce2['str'](_0x1271ce(0xc5)),'File'),_0x4aed7e=await uploadDevelopmentFile(_0x2a7ce2['appCode'],_0xa0bbf8[_0x1271ce(0xd2)]);return{'ok':!![],'data':_0x4aed7e,'message':_0x4aed7e[_0x1271ce(0xd7)]?_0x1271ce(0xe4)+_0x4aed7e['filePath']+_0x1271ce(0xd0):_0x1271ce(0xcb)};}},fileQueryUrl={'service':'file','command':a93_0x2b3779(0xd8),'description':a93_0x2b3779(0xdd),'risk':a93_0x2b3779(0xd9),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x39449b){const _0x28a4ef=a93_0x2b3779,_0x176f32=requireFilePath(_0x39449b['str']('filepath')),_0x464320=await queryDevelopmentFileUrl(_0x176f32,{'download':_0x39449b[_0x28a4ef(0xcc)]('download'),'longTerm':_0x39449b[_0x28a4ef(0xcc)](_0x28a4ef(0xc9))});return{'ok':!![],'data':_0x464320};}};export const fileDefinitions=[fileUpload,fileQueryUrl];function a93_0x1991(){const _0x4f6752=['Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','boolean','127378AvJTGe','Uploaded\x20file:\x20','711988coXizS','file','File','519799qCoOGK','27270bMmMtf','long-term','download','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','bool','trim','appCode','Preview:\x20upload\x20','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','str','path','string','472680HGAkVB','6AoqKBJ','validation','filePath','query-url','read','14993qDcOsp','5673141MyMcdL','9QuQjmK','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','POST','upload','filePath\x20is\x20required.'];a93_0x1991=function(){return _0x4f6752;};return a93_0x1991();}
@@ -1 +1 @@
1
- const a94_0x1d2bc5=a94_0x53cf;(function(_0xf392b5,_0x456ef7){const _0x25635f=a94_0x53cf,_0xdee368=_0xf392b5();while(!![]){try{const _0xaf8c21=parseInt(_0x25635f(0x1e2))/0x1+parseInt(_0x25635f(0x1e4))/0x2*(parseInt(_0x25635f(0x1de))/0x3)+-parseInt(_0x25635f(0x1d9))/0x4*(parseInt(_0x25635f(0x1d2))/0x5)+-parseInt(_0x25635f(0x1e6))/0x6+parseInt(_0x25635f(0x1eb))/0x7+-parseInt(_0x25635f(0x1ec))/0x8+-parseInt(_0x25635f(0x1c3))/0x9*(parseInt(_0x25635f(0x1e9))/0xa);if(_0xaf8c21===_0x456ef7)break;else _0xdee368['push'](_0xdee368['shift']());}catch(_0x3fdb74){_0xdee368['push'](_0xdee368['shift']());}}}(a94_0x16f0,0x873e8));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';function a94_0x16f0(){const _0x5134a6=['run','\x20config','validation','1540pRzlow','Usage:\x20','Use\x20`','检测到旧配置文件,正在自动升级...\x0a','\x20\x20Env:\x20','nonInteractive','write','556VnVLxt','yes','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','env','some','174603yGpVrf','cwd','str','valid','1017007CRBHAn','production','30rRAxMJ','boolean','5248884pZKQbQ','string','flagMissing','8640syAJNn','\x20\x20Apps:\x20','2604077aHVIAc','4664696HaukBm','2160sethBI','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','message','\x20\x20Default:\x20','\x20\x20Config:\x20','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','log','appCode','appcode','project','global','map'];a94_0x16f0=function(){return _0x5134a6;};return a94_0x16f0();}import{upgradeApp}from'../../commands/project/upgrade.js';function a94_0x53cf(_0x2a6028,_0x189480){_0x2a6028=_0x2a6028-0x1c3;const _0x16f0b4=a94_0x16f0();let _0x53cf11=_0x16f0b4[_0x2a6028];return _0x53cf11;}import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x40f557){return{'appCode':_0x40f557,'appName':_0x40f557};}function writeInitConfig(_0x500782,_0x2bb391,_0x8b5fbb){const _0x447f78=a94_0x53cf,_0x3a6bef=resolveWriteConfigPath(_0x500782),_0x3b86cc=buildCanonicalProjectConfig({},{'appCodes':_0x2bb391[_0x447f78(0x1ce)](_0x4123d9=>_0x4123d9[_0x447f78(0x1ca)]),'env':_0x8b5fbb,'metadata':{'version':getCliVersion(),'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0x3a6bef,_0x3b86cc);const _0x418ddc=_0x500782===_0x447f78(0x1cd)?_0x447f78(0x1cd):_0x447f78(0x1cc);console['log']('\x0a✓\x20Successfully\x20initialized\x20'+_0x418ddc+_0x447f78(0x1d0)),console['log'](_0x447f78(0x1ea)+_0x2bb391[_0x447f78(0x1ce)](_0xb33c3b=>_0xb33c3b[_0x447f78(0x1ca)])['join'](',\x20')),console[_0x447f78(0x1c9)](_0x447f78(0x1c6)+_0x3b86cc['defaultApp']),console['log'](_0x447f78(0x1d6)+_0x3b86cc[_0x447f78(0x1dc)]),console[_0x447f78(0x1c9)](_0x447f78(0x1c7)+_0x3a6bef);}async function runSmartInit(_0x1d314b){const _0x27d9f9=a94_0x53cf,_0x4d8087=process[_0x27d9f9(0x1df)](),_0x4b31e6=_0x1d314b['bool']('global')?'global':_0x27d9f9(0x1cc),_0x3ae676=_0x1d314b[_0x27d9f9(0x1e0)](_0x27d9f9(0x1dc))||_0x27d9f9(0x1e3),_0xd98530=_0x1d314b['str'](_0x27d9f9(0x1cb))||undefined;if(_0x4b31e6===_0x27d9f9(0x1cc)){const _0x111549=existsSync(resolve(_0x4d8087,NEW_CONFIG_NAME)),_0x4952bd=LEGACY_CONFIG_NAMES[_0x27d9f9(0x1dd)](_0x2ab680=>existsSync(resolve(_0x4d8087,_0x2ab680)));if(_0x4952bd&&!_0x111549)return console['log'](_0x27d9f9(0x1d5)),upgradeApp(_0x1d314b['nonInteractive'],{'yes':_0x1d314b['bool'](_0x27d9f9(0x1da))});if(_0x111549)throw CliErrors['validation'](_0x27d9f9(0x1c8),_0x27d9f9(0x1d4)+CLI_BIN_NAME+_0x27d9f9(0x1db));}if(_0xd98530){const _0x24bb57=validateAppcode(_0xd98530);if(!_0x24bb57[_0x27d9f9(0x1e1)])throw CliErrors[_0x27d9f9(0x1d1)](_0x24bb57[_0x27d9f9(0x1c5)]);writeInitConfig(_0x4b31e6,[syntheticApp(_0xd98530)],_0x3ae676);return;}if(_0x1d314b[_0x27d9f9(0x1d7)])throw CliErrors[_0x27d9f9(0x1e8)]('appcode',_0x27d9f9(0x1d3)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x5d10f9=getCookie(),_0x583d20=await selectMultipleApps(_0x5d10f9),_0x2a5fc3=_0x583d20==='custom'?[syntheticApp(await promptCustomAppcode())]:_0x583d20;writeInitConfig(_0x4b31e6,_0x2a5fc3,_0x3ae676);}const initFlags=[{'name':a94_0x1d2bc5(0x1cd),'type':'boolean','description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':'env','type':a94_0x1d2bc5(0x1e7),'description':'Target\x20environment','default':a94_0x1d2bc5(0x1e3),'enum':[...RABETBASE_ENV_VALUES]},{'name':a94_0x1d2bc5(0x1cb),'type':a94_0x1d2bc5(0x1e7),'description':'App\x20code\x20to\x20initialize\x20with'},{'name':'yes','type':a94_0x1d2bc5(0x1e5),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':'init','command':a94_0x1d2bc5(0x1cf),'description':a94_0x1d2bc5(0x1c4),'risk':a94_0x1d2bc5(0x1d8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x65e7fc){return await runSmartInit(_0x65e7fc),{'ok':!![]};}}];
1
+ const a94_0x5c761e=a94_0x1612;function a94_0x139d(){const _0x5121ad=['join','App\x20code\x20to\x20initialize\x20with','production','env','cwd','4951849iBsCEM','appcode','Usage:\x20','\x20config','8342646vErPpf','str','\x20\x20Config:\x20','\x20\x20Env:\x20','message','init','63526034tZIvda','run','map','\x0a✓\x20Successfully\x20initialized\x20','some','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','16iVtoal','\x20\x20Apps:\x20','project','flagMissing','207934wbpnxf','bool','13756KzSqsn','441kDWGCA','nonInteractive','log','3927807JCZjmc','Target\x20environment','toLocaleString','165JJFbwR','global','string','custom','yes','Write\x20to\x20global\x20config\x20instead\x20of\x20project','appCode','Use\x20`','2yvUJXQ','256140bHtyhF'];a94_0x139d=function(){return _0x5121ad;};return a94_0x139d();}(function(_0x5c42bd,_0xffa773){const _0x1364d8=a94_0x1612,_0x2061d8=_0x5c42bd();while(!![]){try{const _0x493706=parseInt(_0x1364d8(0x1ba))/0x1*(parseInt(_0x1364d8(0x1a9))/0x2)+-parseInt(_0x1364d8(0x1af))/0x3+-parseInt(_0x1364d8(0x1ab))/0x4*(-parseInt(_0x1364d8(0x1b2))/0x5)+-parseInt(_0x1364d8(0x199))/0x6+parseInt(_0x1364d8(0x195))/0x7*(-parseInt(_0x1364d8(0x1a5))/0x8)+parseInt(_0x1364d8(0x1ac))/0x9*(-parseInt(_0x1364d8(0x18f))/0xa)+parseInt(_0x1364d8(0x19f))/0xb;if(_0x493706===_0xffa773)break;else _0x2061d8['push'](_0x2061d8['shift']());}catch(_0x1a8a73){_0x2061d8['push'](_0x2061d8['shift']());}}}(a94_0x139d,0xb1779));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a94_0x1612(_0x1d6c1e,_0x55832f){_0x1d6c1e=_0x1d6c1e-0x18f;const _0x139d2b=a94_0x139d();let _0x16128f=_0x139d2b[_0x1d6c1e];return _0x16128f;}import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x103aa9){return{'appCode':_0x103aa9,'appName':_0x103aa9};}function writeInitConfig(_0x526091,_0x52fcc2,_0xc91940){const _0x438ba4=a94_0x1612,_0x38d7a9=resolveWriteConfigPath(_0x526091),_0xc9416=buildCanonicalProjectConfig({},{'appCodes':_0x52fcc2['map'](_0xbcaf9b=>_0xbcaf9b[_0x438ba4(0x1b8)]),'env':_0xc91940,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x438ba4(0x1b1)]()}});writeConfigFile(_0x38d7a9,_0xc9416);const _0x5d7e4e=_0x526091===_0x438ba4(0x1b3)?_0x438ba4(0x1b3):'project';console[_0x438ba4(0x1ae)](_0x438ba4(0x1a2)+_0x5d7e4e+_0x438ba4(0x198)),console[_0x438ba4(0x1ae)](_0x438ba4(0x1a6)+_0x52fcc2[_0x438ba4(0x1a1)](_0x38734a=>_0x38734a['appCode'])[_0x438ba4(0x190)](',\x20')),console[_0x438ba4(0x1ae)]('\x20\x20Default:\x20'+_0xc9416['defaultApp']),console[_0x438ba4(0x1ae)](_0x438ba4(0x19c)+_0xc9416['env']),console[_0x438ba4(0x1ae)](_0x438ba4(0x19b)+_0x38d7a9);}async function runSmartInit(_0x5cd9cb){const _0x5c1b9a=a94_0x1612,_0x57bf6a=process[_0x5c1b9a(0x194)](),_0x48d0fa=_0x5cd9cb['bool'](_0x5c1b9a(0x1b3))?_0x5c1b9a(0x1b3):_0x5c1b9a(0x1a7),_0x576d76=_0x5cd9cb['str'](_0x5c1b9a(0x193))||_0x5c1b9a(0x192),_0x5b8500=_0x5cd9cb[_0x5c1b9a(0x19a)]('appcode')||undefined;if(_0x48d0fa===_0x5c1b9a(0x1a7)){const _0x582407=existsSync(resolve(_0x57bf6a,NEW_CONFIG_NAME)),_0x25334c=LEGACY_CONFIG_NAMES[_0x5c1b9a(0x1a3)](_0x8e97e2=>existsSync(resolve(_0x57bf6a,_0x8e97e2)));if(_0x25334c&&!_0x582407)return console[_0x5c1b9a(0x1ae)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x5cd9cb[_0x5c1b9a(0x1ad)],{'yes':_0x5cd9cb[_0x5c1b9a(0x1aa)]('yes')});if(_0x582407)throw CliErrors['validation'](_0x5c1b9a(0x1a4),_0x5c1b9a(0x1b9)+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x5b8500){const _0x4edf86=validateAppcode(_0x5b8500);if(!_0x4edf86['valid'])throw CliErrors['validation'](_0x4edf86[_0x5c1b9a(0x19d)]);writeInitConfig(_0x48d0fa,[syntheticApp(_0x5b8500)],_0x576d76);return;}if(_0x5cd9cb[_0x5c1b9a(0x1ad)])throw CliErrors[_0x5c1b9a(0x1a8)](_0x5c1b9a(0x196),_0x5c1b9a(0x197)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x208a30=getCookie(),_0x3c52b5=await selectMultipleApps(_0x208a30),_0x19eef1=_0x3c52b5===_0x5c1b9a(0x1b5)?[syntheticApp(await promptCustomAppcode())]:_0x3c52b5;writeInitConfig(_0x48d0fa,_0x19eef1,_0x576d76);}const initFlags=[{'name':'global','type':'boolean','description':a94_0x5c761e(0x1b7),'default':![]},{'name':a94_0x5c761e(0x193),'type':a94_0x5c761e(0x1b4),'description':a94_0x5c761e(0x1b0),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':a94_0x5c761e(0x1b4),'description':a94_0x5c761e(0x191)},{'name':a94_0x5c761e(0x1b6),'type':'boolean','description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a94_0x5c761e(0x19e),'command':a94_0x5c761e(0x1a0),'description':'Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x51eede){return await runSmartInit(_0x51eede),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x34cd9c,_0x407ef7){const _0x4e58f0=a95_0x3634,_0x1042e7=_0x34cd9c();while(!![]){try{const _0x1c4445=parseInt(_0x4e58f0(0x144))/0x1+parseInt(_0x4e58f0(0x147))/0x2*(parseInt(_0x4e58f0(0x13e))/0x3)+-parseInt(_0x4e58f0(0x143))/0x4+parseInt(_0x4e58f0(0x140))/0x5*(parseInt(_0x4e58f0(0x142))/0x6)+parseInt(_0x4e58f0(0x145))/0x7+parseInt(_0x4e58f0(0x146))/0x8+-parseInt(_0x4e58f0(0x13f))/0x9*(parseInt(_0x4e58f0(0x141))/0xa);if(_0x1c4445===_0x407ef7)break;else _0x1042e7['push'](_0x1042e7['shift']());}catch(_0x1b584d){_0x1042e7['push'](_0x1042e7['shift']());}}}(a95_0x371a,0x68f0e));import{issueReport}from'../../commands/issue/report.js';function a95_0x371a(){const _0x30f472=['1212pEREzg','2027628DgPgCk','536790IUVlir','1506750GgnsaX','3829016nicgKj','2QdBBxO','1434207ABPoLW','823797LwjhRc','10345iHwYqY','130jhFCog'];a95_0x371a=function(){return _0x30f472;};return a95_0x371a();}function a95_0x3634(_0x5038d1,_0x49e530){_0x5038d1=_0x5038d1-0x13e;const _0x371a5c=a95_0x371a();let _0x3634ec=_0x371a5c[_0x5038d1];return _0x3634ec;}export const issueDefinitions=[issueReport];
1
+ function a95_0x4b56(){const _0x151ed6=['5697672hxZPkK','155rSHHBg','318mzhHsb','201130DisYvp','6591213haKEdb','135AFbLPj','627yDiaQc','11106ZlRkIo','9261dvMRYw','1570134ktAaoQ','51736uwLaEL'];a95_0x4b56=function(){return _0x151ed6;};return a95_0x4b56();}function a95_0x1409(_0x51f528,_0x2afa80){_0x51f528=_0x51f528-0x173;const _0x4b563e=a95_0x4b56();let _0x1409bc=_0x4b563e[_0x51f528];return _0x1409bc;}(function(_0x2f1d59,_0x1ca245){const _0x587f32=a95_0x1409,_0x53b6ca=_0x2f1d59();while(!![]){try{const _0x1b1cdd=parseInt(_0x587f32(0x178))/0x1*(-parseInt(_0x587f32(0x17a))/0x2)+parseInt(_0x587f32(0x17c))/0x3+-parseInt(_0x587f32(0x17d))/0x4*(parseInt(_0x587f32(0x174))/0x5)+parseInt(_0x587f32(0x175))/0x6*(parseInt(_0x587f32(0x17b))/0x7)+parseInt(_0x587f32(0x173))/0x8+-parseInt(_0x587f32(0x177))/0x9+parseInt(_0x587f32(0x176))/0xa*(parseInt(_0x587f32(0x179))/0xb);if(_0x1b1cdd===_0x1ca245)break;else _0x53b6ca['push'](_0x53b6ca['shift']());}catch(_0x24a5c7){_0x53b6ca['push'](_0x53b6ca['shift']());}}}(a95_0x4b56,0x8af5d));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a96_0xb173c8=a96_0x4c0a;(function(_0x1dfd97,_0x2a8e42){const _0x4781c4=a96_0x4c0a,_0x5a6860=_0x1dfd97();while(!![]){try{const _0x1de2a0=parseInt(_0x4781c4(0x113))/0x1*(-parseInt(_0x4781c4(0x118))/0x2)+parseInt(_0x4781c4(0x12f))/0x3+parseInt(_0x4781c4(0x12d))/0x4+parseInt(_0x4781c4(0x135))/0x5+parseInt(_0x4781c4(0x115))/0x6*(-parseInt(_0x4781c4(0x133))/0x7)+-parseInt(_0x4781c4(0x129))/0x8+parseInt(_0x4781c4(0x120))/0x9*(-parseInt(_0x4781c4(0x131))/0xa);if(_0x1de2a0===_0x2a8e42)break;else _0x5a6860['push'](_0x5a6860['shift']());}catch(_0x239b9e){_0x5a6860['push'](_0x5a6860['shift']());}}}(a96_0x5be4,0xab402));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a96_0xb173c8(0x117);function a96_0x4c0a(_0x50c90a,_0x3475f4){_0x50c90a=_0x50c90a-0x111;const _0x5be47a=a96_0x5be4();let _0x4c0a34=_0x5be47a[_0x50c90a];return _0x4c0a34;}const NUDGE_SUPPRESSED_CODES=new Set([a96_0xb173c8(0x119),a96_0xb173c8(0x11d),'config_missing',a96_0xb173c8(0x111),a96_0xb173c8(0x11e),a96_0xb173c8(0x114),a96_0xb173c8(0x127),a96_0xb173c8(0x11f)]),defaultWriter=_0x675736=>{const _0x40e86c=a96_0xb173c8;process[_0x40e86c(0x122)][_0x40e86c(0x134)](_0x675736);};export function shouldNudgeForError(_0x254866,_0x13b691){const _0x57ef1a=a96_0xb173c8;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x13b691['service']===_0x57ef1a(0x11b)&&_0x13b691[_0x57ef1a(0x126)]===_0x57ef1a(0x116))return![];if(_0x254866 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x57ef1a(0x12c)](_0x254866[_0x57ef1a(0x123)]);return!![];}function a96_0x5be4(){const _0xbcbc8b=['write','5443180MYFzly','not_in_project','replace','72628RJzauu','flag_missing','18276TdSMAa','report','RABETBASE_DISABLE_ISSUE_NUDGE','2QpPMzc','cancelled','=1\x20to\x20silence\x20this\x20hint.','issue','\x22\x20\x5c','auth_required','unknown_command','network_error','108099WNYozV','slice','stderr','code','Hit\x20a\x20','\x20\x20Set\x20','command','validation_error','\x20issue\x20report\x20\x5c','1308544RahtVd','trim','join','has','5142088qWUlTo','\x20bug?\x20Help\x20us\x20fix\x20it:','241479FNQWdm','message','170uAuDOt','\x20\x20\x20\x20--title\x20\x22','3017DBkcIq'];a96_0x5be4=function(){return _0xbcbc8b;};return a96_0x5be4();}export function printIssueReportNudgeForError(_0xb186f2,_0x36fd59,_0x4bf2a5=defaultWriter){if(!shouldNudgeForError(_0xb186f2,_0x36fd59))return;const _0x233df4=buildSuggestedTitle(_0xb186f2,_0x36fd59);_0x4bf2a5(formatNudge(_0x233df4));}function buildSuggestedTitle(_0xc35dd,_0x2cf8ca){const _0x5d20b5=a96_0xb173c8,_0x12531a=_0xc35dd instanceof Error?_0xc35dd[_0x5d20b5(0x130)]:String(_0xc35dd),_0x2ebb54=_0x12531a[_0x5d20b5(0x112)](/[\r\n]+/g,'\x20')[_0x5d20b5(0x112)](/\s+/g,'\x20')[_0x5d20b5(0x12a)]()[_0x5d20b5(0x121)](0x0,0x78)[_0x5d20b5(0x112)](/"/g,'\x5c\x22'),_0x40cfb7=CLI_BIN_NAME+'\x20'+_0x2cf8ca['service']+'\x20'+_0x2cf8ca[_0x5d20b5(0x126)];return _0x2ebb54['length']>0x0?_0x40cfb7+':\x20'+_0x2ebb54:_0x40cfb7;}function formatNudge(_0x1cae1a){const _0x51c9d3=a96_0xb173c8;return['',_0x51c9d3(0x124)+CLI_BIN_NAME+_0x51c9d3(0x12e),'\x20\x20'+CLI_BIN_NAME+_0x51c9d3(0x128),_0x51c9d3(0x132)+_0x1cae1a+_0x51c9d3(0x11c),'\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)',_0x51c9d3(0x125)+NUDGE_OPT_OUT_ENV+_0x51c9d3(0x11a),''][_0x51c9d3(0x12b)]('\x0a');}
1
+ const a96_0x26fa5b=a96_0x4cef;(function(_0x2b3980,_0x24a751){const _0x3910eb=a96_0x4cef,_0x50e11d=_0x2b3980();while(!![]){try{const _0x1bf0f5=-parseInt(_0x3910eb(0xc4))/0x1+parseInt(_0x3910eb(0xc0))/0x2+parseInt(_0x3910eb(0xbf))/0x3*(parseInt(_0x3910eb(0xb8))/0x4)+-parseInt(_0x3910eb(0xaf))/0x5+-parseInt(_0x3910eb(0xcb))/0x6*(parseInt(_0x3910eb(0xb5))/0x7)+parseInt(_0x3910eb(0xbd))/0x8+parseInt(_0x3910eb(0xad))/0x9;if(_0x1bf0f5===_0x24a751)break;else _0x50e11d['push'](_0x50e11d['shift']());}catch(_0x4a08a5){_0x50e11d['push'](_0x50e11d['shift']());}}}(a96_0x2f15,0x77c17));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a96_0x26fa5b(0xba);function a96_0x2f15(){const _0x9d9671=['validation_error','2415669qsVDeT','762522ZPEFUL','\x22\x20\x5c','\x20\x20Set\x20','\x20issue\x20report\x20\x5c','509684XKQhGv','issue','code','trim','message','unknown_command','length','18KOqJOg','slice','config_missing','service','=1\x20to\x20silence\x20this\x20hint.','439722KOkZaN','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','955170TOPQTz','has','\x20\x20\x20\x20--title\x20\x22','command','report','replace','890386HWRxRU','cancelled','stderr','4ZLoBjI','\x20bug?\x20Help\x20us\x20fix\x20it:','RABETBASE_DISABLE_ISSUE_NUDGE','network_error','write','2699912niNdzC'];a96_0x2f15=function(){return _0x9d9671;};return a96_0x2f15();}function a96_0x4cef(_0x4ecf56,_0x4f38fd){_0x4ecf56=_0x4ecf56-0xac;const _0x2f15ff=a96_0x2f15();let _0x4cef2b=_0x2f15ff[_0x4ecf56];return _0x4cef2b;}const NUDGE_SUPPRESSED_CODES=new Set([a96_0x26fa5b(0xb6),'auth_required',a96_0x26fa5b(0xcd),'not_in_project',a96_0x26fa5b(0xc9),'flag_missing',a96_0x26fa5b(0xbe),a96_0x26fa5b(0xbb)]),defaultWriter=_0x323a30=>{const _0x935fd2=a96_0x26fa5b;process[_0x935fd2(0xb7)][_0x935fd2(0xbc)](_0x323a30);};export function shouldNudgeForError(_0x5aba58,_0x3683f7){const _0x488421=a96_0x26fa5b;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x3683f7[_0x488421(0xce)]===_0x488421(0xc5)&&_0x3683f7[_0x488421(0xb2)]===_0x488421(0xb3))return![];if(_0x5aba58 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x488421(0xb0)](_0x5aba58[_0x488421(0xc6)]);return!![];}export function printIssueReportNudgeForError(_0x3d349e,_0x2e7d39,_0x409361=defaultWriter){if(!shouldNudgeForError(_0x3d349e,_0x2e7d39))return;const _0x5691a9=buildSuggestedTitle(_0x3d349e,_0x2e7d39);_0x409361(formatNudge(_0x5691a9));}function buildSuggestedTitle(_0x5a9356,_0x3fda6d){const _0x4512d0=a96_0x26fa5b,_0x56fe71=_0x5a9356 instanceof Error?_0x5a9356[_0x4512d0(0xc8)]:String(_0x5a9356),_0x5c1cfe=_0x56fe71['replace'](/[\r\n]+/g,'\x20')[_0x4512d0(0xb4)](/\s+/g,'\x20')[_0x4512d0(0xc7)]()[_0x4512d0(0xcc)](0x0,0x78)[_0x4512d0(0xb4)](/"/g,'\x5c\x22'),_0x28603f=CLI_BIN_NAME+'\x20'+_0x3fda6d[_0x4512d0(0xce)]+'\x20'+_0x3fda6d[_0x4512d0(0xb2)];return _0x5c1cfe[_0x4512d0(0xca)]>0x0?_0x28603f+':\x20'+_0x5c1cfe:_0x28603f;}function formatNudge(_0x522ee5){const _0x6d1612=a96_0x26fa5b;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x6d1612(0xb9),'\x20\x20'+CLI_BIN_NAME+_0x6d1612(0xc3),_0x6d1612(0xb1)+_0x522ee5+_0x6d1612(0xc1),'\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22',_0x6d1612(0xae),_0x6d1612(0xc2)+NUDGE_OPT_OUT_ENV+_0x6d1612(0xac),'']['join']('\x0a');}
@@ -1 +1 @@
1
- const a97_0x45e053=a97_0x13d0;(function(_0x134593,_0x5ee8c8){const _0x17b977=a97_0x13d0,_0x5d2fd0=_0x134593();while(!![]){try{const _0x5ecb23=-parseInt(_0x17b977(0x132))/0x1+-parseInt(_0x17b977(0x137))/0x2+-parseInt(_0x17b977(0x117))/0x3+-parseInt(_0x17b977(0x10a))/0x4*(-parseInt(_0x17b977(0x115))/0x5)+-parseInt(_0x17b977(0x111))/0x6+parseInt(_0x17b977(0x127))/0x7*(parseInt(_0x17b977(0x121))/0x8)+-parseInt(_0x17b977(0x116))/0x9;if(_0x5ecb23===_0x5ee8c8)break;else _0x5d2fd0['push'](_0x5d2fd0['shift']());}catch(_0x5f08d2){_0x5d2fd0['push'](_0x5d2fd0['shift']());}}}(a97_0x1caf,0xa0e9c));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';function a97_0x1caf(){const _0x226400=['Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','3796464myqYzg','\x20secret(s):\x20','issue.description_truncated','Platform\x20issue\x20reported\x20(','25545lBpDKe','2151063DfuzpQ','40881miOjSm','File\x20not\x20found:\x20','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','message','redactions:\x20','descriptionFilePath','file','flagMissing','description-file','report','8ZWCqjr','originalBytes','description','issue.description_redactions','join','filter','9032275Dnjbmu','issue.description_original_bytes','title','descriptionSource','descriptionSource:\x20','POST','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','Platform\x20issue\x20reported','One-line\x20issue\x20summary','redactionCount','543249jMJPIE','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','inline','descriptionFile:\x20','str','377270BntOxf','issue','sanitize','truncated','issue.description_redaction_kinds','string','write','Issue\x20description\x20cannot\x20be\x20empty.','push','redactionKinds','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','compress','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','Issue\x20description\x20file\x20is\x20empty:\x20','cwd','length','trim','772tkFHLg','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','redacted\x20','truncated:\x20original\x20','validation','\x20bytes'];a97_0x1caf=function(){return _0x226400;};return a97_0x1caf();}function a97_0x13d0(_0x789f3b,_0x12e64f){_0x789f3b=_0x789f3b-0x107;const _0x1cafd5=a97_0x1caf();let _0x13d0a0=_0x1cafd5[_0x789f3b];return _0x13d0a0;}import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a97_0x45e053(0x11f);export const issueReport={'service':a97_0x45e053(0x138),'command':a97_0x45e053(0x120),'description':a97_0x45e053(0x133),'risk':a97_0x45e053(0x13d),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a97_0x45e053(0x142),'flags':[{'name':a97_0x45e053(0x129),'type':'string','required':!![],'description':a97_0x45e053(0x130)},{'name':a97_0x45e053(0x123),'type':a97_0x45e053(0x13c),'description':a97_0x45e053(0x143)},{'name':DESCRIPTION_FILE_FLAG,'type':a97_0x45e053(0x13c),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x53a222){const _0x1afb30=a97_0x45e053,_0x1938d4=_0x53a222[_0x1afb30(0x136)](_0x1afb30(0x129))[_0x1afb30(0x109)](),_0x39c6ef=_0x53a222['str']('description')['trim'](),_0x4dabde=_0x53a222[_0x1afb30(0x136)](DESCRIPTION_FILE_FLAG)[_0x1afb30(0x109)]();if(!_0x1938d4)throw CliErrors[_0x1afb30(0x11e)]('title',_0x1afb30(0x12e));const _0x448945=_0x39c6ef[_0x1afb30(0x108)]>0x0,_0x43a907=_0x4dabde[_0x1afb30(0x108)]>0x0;if(_0x448945===_0x43a907)throw CliErrors[_0x1afb30(0x10e)](_0x1afb30(0x12d),_0x1afb30(0x119));if(_0x43a907){const _0x3fb3f9=resolve(process[_0x1afb30(0x107)](),_0x4dabde);if(!existsSync(_0x3fb3f9))throw CliErrors[_0x1afb30(0x10e)](_0x1afb30(0x118)+_0x3fb3f9);}},async 'dryRun'(_0x1f8a83){const _0x411d28=a97_0x45e053,_0x8783b0=await prepareIssueReport(_0x1f8a83);return{'method':_0x411d28(0x12c),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x8783b0['title'],'issue.description':_0x8783b0['description'],'issue.description_original_bytes':_0x8783b0[_0x411d28(0x139)]['originalBytes'],'issue.description_truncated':_0x8783b0[_0x411d28(0x139)][_0x411d28(0x13a)],'issue.description_redactions':_0x8783b0[_0x411d28(0x139)][_0x411d28(0x131)],'issue.description_redaction_kinds':_0x8783b0[_0x411d28(0x139)][_0x411d28(0x140)][_0x411d28(0x125)](',')}},'description':[_0x411d28(0x141),_0x411d28(0x12b)+_0x8783b0[_0x411d28(0x12a)],_0x8783b0[_0x411d28(0x11c)]?_0x411d28(0x135)+_0x8783b0['descriptionFilePath']:null,_0x8783b0[_0x411d28(0x139)][_0x411d28(0x13a)]?_0x411d28(0x10d)+_0x8783b0['sanitize'][_0x411d28(0x122)]+_0x411d28(0x10f):null,_0x8783b0['sanitize']['redactionCount']>0x0?_0x411d28(0x11b)+_0x8783b0['sanitize'][_0x411d28(0x131)]+'\x20('+_0x8783b0[_0x411d28(0x139)]['redactionKinds']['join'](',\x20')+')':null][_0x411d28(0x126)](Boolean)[_0x411d28(0x125)]('\x0a')};},async 'execute'(_0x158762){const _0x70056e=a97_0x45e053,_0x377ffd=await prepareIssueReport(_0x158762);try{await sendPlatformIssueCollectLog({'title':_0x377ffd[_0x70056e(0x129)],'description':_0x377ffd[_0x70056e(0x123)],'sanitize':{'originalBytes':_0x377ffd[_0x70056e(0x139)][_0x70056e(0x122)],'truncated':_0x377ffd['sanitize'][_0x70056e(0x13a)],'redactionCount':_0x377ffd[_0x70056e(0x139)]['redactionCount'],'redactionKinds':_0x377ffd[_0x70056e(0x139)][_0x70056e(0x140)]}});}catch(_0x3d6dd3){throw CliErrors['apiError']('Failed\x20to\x20report\x20platform\x20issue:\x20'+(_0x3d6dd3 instanceof Error?_0x3d6dd3[_0x70056e(0x11a)]:String(_0x3d6dd3)),_0x70056e(0x110));}return{'ok':!![],'message':buildResultMessage(_0x377ffd[_0x70056e(0x139)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title','issue.description',_0x70056e(0x128),_0x70056e(0x113),_0x70056e(0x124),_0x70056e(0x13b)],'issue':{'title':_0x377ffd['title'],'descriptionLength':_0x377ffd[_0x70056e(0x123)]['length'],'descriptionSource':_0x377ffd[_0x70056e(0x12a)],..._0x377ffd['descriptionFilePath']?{'descriptionFile':_0x377ffd[_0x70056e(0x11c)]}:{},'sanitize':{'originalBytes':_0x377ffd['sanitize']['originalBytes'],'truncated':_0x377ffd['sanitize'][_0x70056e(0x13a)],'redactions':_0x377ffd[_0x70056e(0x139)][_0x70056e(0x131)],'redactionKinds':_0x377ffd['sanitize']['redactionKinds']}}}};}};function buildResultMessage(_0x55bf0d){const _0x50b41b=a97_0x45e053,_0x7e4416=[];return _0x55bf0d['truncated']&&_0x7e4416[_0x50b41b(0x13f)]('truncated\x20from\x20'+_0x55bf0d[_0x50b41b(0x122)]+_0x50b41b(0x10f)),_0x55bf0d[_0x50b41b(0x131)]>0x0&&_0x7e4416[_0x50b41b(0x13f)](_0x50b41b(0x10c)+_0x55bf0d['redactionCount']+_0x50b41b(0x112)+_0x55bf0d[_0x50b41b(0x140)][_0x50b41b(0x125)](',\x20')),_0x7e4416[_0x50b41b(0x108)]===0x0?_0x50b41b(0x12f):_0x50b41b(0x114)+_0x7e4416['join'](';\x20')+')';}async function prepareIssueReport(_0x3e5ddd){const _0x571436=a97_0x45e053,_0x3a8c3c=_0x3e5ddd[_0x571436(0x136)](_0x571436(0x129))[_0x571436(0x109)](),_0x329745=_0x3e5ddd['str'](_0x571436(0x123)),_0x1f07dd=_0x3e5ddd[_0x571436(0x136)](DESCRIPTION_FILE_FLAG)[_0x571436(0x109)]();if(!_0x1f07dd){const _0x58efe2=_0x329745;if(!_0x58efe2[_0x571436(0x109)]())throw CliErrors[_0x571436(0x10e)](_0x571436(0x13e),'Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');const _0x305c49=sanitizeIssueDescription(_0x58efe2);return{'title':_0x3a8c3c,'description':_0x305c49[_0x571436(0x123)],'descriptionSource':_0x571436(0x134),'sanitize':_0x305c49};}const _0x1e89f7=resolve(process['cwd'](),_0x1f07dd),_0x8ad8f4=await readFile(_0x1e89f7,'utf8');if(!_0x8ad8f4[_0x571436(0x109)]())throw CliErrors[_0x571436(0x10e)](_0x571436(0x144)+_0x1e89f7,_0x571436(0x10b));const _0x7ff2fe=sanitizeIssueDescription(_0x8ad8f4);return{'title':_0x3a8c3c,'description':_0x7ff2fe['description'],'descriptionSource':_0x571436(0x11d),'descriptionFilePath':_0x1e89f7,'sanitize':_0x7ff2fe};}
1
+ const a97_0x34a69d=a97_0x4475;(function(_0x5f21e6,_0x202498){const _0x2a1c79=a97_0x4475,_0x494f9d=_0x5f21e6();while(!![]){try{const _0x51d8b8=-parseInt(_0x2a1c79(0x1f7))/0x1+-parseInt(_0x2a1c79(0x1ec))/0x2+parseInt(_0x2a1c79(0x1f4))/0x3*(-parseInt(_0x2a1c79(0x1f3))/0x4)+-parseInt(_0x2a1c79(0x1e0))/0x5+parseInt(_0x2a1c79(0x1d3))/0x6+-parseInt(_0x2a1c79(0x205))/0x7*(-parseInt(_0x2a1c79(0x1fc))/0x8)+parseInt(_0x2a1c79(0x1e2))/0x9*(parseInt(_0x2a1c79(0x1f9))/0xa);if(_0x51d8b8===_0x202498)break;else _0x494f9d['push'](_0x494f9d['shift']());}catch(_0x36d6ca){_0x494f9d['push'](_0x494f9d['shift']());}}}(a97_0x4a3b,0xab00d));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a97_0x34a69d(0x1dd);function a97_0x4475(_0x498d48,_0xc11be9){_0x498d48=_0x498d48-0x1d2;const _0x4a3b57=a97_0x4a3b();let _0x44750c=_0x4a3b57[_0x498d48];return _0x44750c;}function a97_0x4a3b(){const _0x2fca5d=['6915005SDRyLG','descriptionFilePath','27fKTDCy','flagMissing','trim','sanitize','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','otel://','issue.title','message','issue.description_original_bytes','join','197080MSpexB','push','File\x20not\x20found:\x20','issue.description','truncated:\x20original\x20','redactionCount','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','8YVhrqV','583473bGlcKG','redacted\x20','utf8','858055kxsPWN','truncated','6487270FTqHJa','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','originalBytes','1111032kdHliT','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','compress','Issue\x20description\x20file\x20is\x20empty:\x20','length','validation','cwd','string','description','14tFuYPx','issue.description_truncated','filter','title','truncated\x20from\x20','report','Issue\x20description\x20cannot\x20be\x20empty.','redactions:\x20','Failed\x20to\x20report\x20platform\x20issue:\x20','7230408kQwLvi','write','issue.description_redaction_kinds','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','issue.description_redactions','redactionKinds','str','apiError','Platform\x20issue\x20reported\x20(','description-file','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','\x20bytes'];a97_0x4a3b=function(){return _0x2fca5d;};return a97_0x4a3b();}export const issueReport={'service':'issue','command':a97_0x34a69d(0x20a),'description':'Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','risk':a97_0x34a69d(0x1d4),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a97_0x34a69d(0x1fe),'flags':[{'name':a97_0x34a69d(0x208),'type':'string','required':!![],'description':'One-line\x20issue\x20summary'},{'name':a97_0x34a69d(0x204),'type':a97_0x34a69d(0x203),'description':a97_0x34a69d(0x1fa)},{'name':DESCRIPTION_FILE_FLAG,'type':a97_0x34a69d(0x203),'description':a97_0x34a69d(0x1e6)}],async 'validate'(_0x56ea10){const _0x4f6d29=a97_0x34a69d,_0x329437=_0x56ea10[_0x4f6d29(0x1da)](_0x4f6d29(0x208))[_0x4f6d29(0x1e4)](),_0x2b3fb8=_0x56ea10[_0x4f6d29(0x1da)](_0x4f6d29(0x204))[_0x4f6d29(0x1e4)](),_0xa8d84b=_0x56ea10[_0x4f6d29(0x1da)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x329437)throw CliErrors[_0x4f6d29(0x1e3)](_0x4f6d29(0x208),_0x4f6d29(0x1d7));const _0x9088b1=_0x2b3fb8[_0x4f6d29(0x200)]>0x0,_0x1f6759=_0xa8d84b['length']>0x0;if(_0x9088b1===_0x1f6759)throw CliErrors[_0x4f6d29(0x201)](_0x4f6d29(0x1de),_0x4f6d29(0x1f2));if(_0x1f6759){const _0x1ed956=resolve(process['cwd'](),_0xa8d84b);if(!existsSync(_0x1ed956))throw CliErrors[_0x4f6d29(0x201)](_0x4f6d29(0x1ee)+_0x1ed956);}},async 'dryRun'(_0x4b06e8){const _0x386144=a97_0x34a69d,_0x448c75=await prepareIssueReport(_0x4b06e8);return{'method':'POST','url':_0x386144(0x1e7)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x448c75[_0x386144(0x208)],'issue.description':_0x448c75[_0x386144(0x204)],'issue.description_original_bytes':_0x448c75[_0x386144(0x1e5)][_0x386144(0x1fb)],'issue.description_truncated':_0x448c75[_0x386144(0x1e5)]['truncated'],'issue.description_redactions':_0x448c75[_0x386144(0x1e5)]['redactionCount'],'issue.description_redaction_kinds':_0x448c75['sanitize'][_0x386144(0x1d9)]['join'](',')}},'description':[_0x386144(0x1d6),'descriptionSource:\x20'+_0x448c75['descriptionSource'],_0x448c75[_0x386144(0x1e1)]?'descriptionFile:\x20'+_0x448c75[_0x386144(0x1e1)]:null,_0x448c75[_0x386144(0x1e5)][_0x386144(0x1f8)]?_0x386144(0x1f0)+_0x448c75[_0x386144(0x1e5)]['originalBytes']+_0x386144(0x1df):null,_0x448c75[_0x386144(0x1e5)][_0x386144(0x1f1)]>0x0?_0x386144(0x20c)+_0x448c75[_0x386144(0x1e5)][_0x386144(0x1f1)]+'\x20('+_0x448c75[_0x386144(0x1e5)][_0x386144(0x1d9)][_0x386144(0x1eb)](',\x20')+')':null][_0x386144(0x207)](Boolean)['join']('\x0a')};},async 'execute'(_0x2e1584){const _0x3e1836=a97_0x34a69d,_0x30c965=await prepareIssueReport(_0x2e1584);try{await sendPlatformIssueCollectLog({'title':_0x30c965['title'],'description':_0x30c965[_0x3e1836(0x204)],'sanitize':{'originalBytes':_0x30c965[_0x3e1836(0x1e5)][_0x3e1836(0x1fb)],'truncated':_0x30c965['sanitize'][_0x3e1836(0x1f8)],'redactionCount':_0x30c965['sanitize'][_0x3e1836(0x1f1)],'redactionKinds':_0x30c965[_0x3e1836(0x1e5)][_0x3e1836(0x1d9)]}});}catch(_0x454bae){throw CliErrors[_0x3e1836(0x1db)](_0x3e1836(0x1d2)+(_0x454bae instanceof Error?_0x454bae[_0x3e1836(0x1e9)]:String(_0x454bae)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x30c965['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x3e1836(0x1e8),_0x3e1836(0x1ef),_0x3e1836(0x1ea),_0x3e1836(0x206),_0x3e1836(0x1d8),_0x3e1836(0x1d5)],'issue':{'title':_0x30c965[_0x3e1836(0x208)],'descriptionLength':_0x30c965['description'][_0x3e1836(0x200)],'descriptionSource':_0x30c965['descriptionSource'],..._0x30c965[_0x3e1836(0x1e1)]?{'descriptionFile':_0x30c965[_0x3e1836(0x1e1)]}:{},'sanitize':{'originalBytes':_0x30c965[_0x3e1836(0x1e5)]['originalBytes'],'truncated':_0x30c965[_0x3e1836(0x1e5)][_0x3e1836(0x1f8)],'redactions':_0x30c965[_0x3e1836(0x1e5)][_0x3e1836(0x1f1)],'redactionKinds':_0x30c965['sanitize'][_0x3e1836(0x1d9)]}}}};}};function buildResultMessage(_0x37180c){const _0x52dfad=a97_0x34a69d,_0x51eb7d=[];return _0x37180c[_0x52dfad(0x1f8)]&&_0x51eb7d[_0x52dfad(0x1ed)](_0x52dfad(0x209)+_0x37180c[_0x52dfad(0x1fb)]+_0x52dfad(0x1df)),_0x37180c[_0x52dfad(0x1f1)]>0x0&&_0x51eb7d[_0x52dfad(0x1ed)](_0x52dfad(0x1f5)+_0x37180c[_0x52dfad(0x1f1)]+'\x20secret(s):\x20'+_0x37180c[_0x52dfad(0x1d9)]['join'](',\x20')),_0x51eb7d['length']===0x0?'Platform\x20issue\x20reported':_0x52dfad(0x1dc)+_0x51eb7d[_0x52dfad(0x1eb)](';\x20')+')';}async function prepareIssueReport(_0x5956ac){const _0x56d3c0=a97_0x34a69d,_0x3e628c=_0x5956ac[_0x56d3c0(0x1da)](_0x56d3c0(0x208))[_0x56d3c0(0x1e4)](),_0x24ec41=_0x5956ac[_0x56d3c0(0x1da)](_0x56d3c0(0x204)),_0x4a493e=_0x5956ac[_0x56d3c0(0x1da)](DESCRIPTION_FILE_FLAG)[_0x56d3c0(0x1e4)]();if(!_0x4a493e){const _0x56fed0=_0x24ec41;if(!_0x56fed0[_0x56d3c0(0x1e4)]())throw CliErrors[_0x56d3c0(0x201)](_0x56d3c0(0x20b),_0x56d3c0(0x1fd));const _0x4a0726=sanitizeIssueDescription(_0x56fed0);return{'title':_0x3e628c,'description':_0x4a0726['description'],'descriptionSource':'inline','sanitize':_0x4a0726};}const _0x12a18d=resolve(process[_0x56d3c0(0x202)](),_0x4a493e),_0x3fff01=await readFile(_0x12a18d,_0x56d3c0(0x1f6));if(!_0x3fff01['trim']())throw CliErrors[_0x56d3c0(0x201)](_0x56d3c0(0x1ff)+_0x12a18d,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x29f510=sanitizeIssueDescription(_0x3fff01);return{'title':_0x3e628c,'description':_0x29f510[_0x56d3c0(0x204)],'descriptionSource':'file','descriptionFilePath':_0x12a18d,'sanitize':_0x29f510};}
@@ -1 +1 @@
1
- const a98_0x510536=a98_0x22ac;(function(_0x2ebc6f,_0x44003a){const _0x5ac2bd=a98_0x22ac,_0x3fee03=_0x2ebc6f();while(!![]){try{const _0x266db3=-parseInt(_0x5ac2bd(0x186))/0x1*(parseInt(_0x5ac2bd(0x172))/0x2)+parseInt(_0x5ac2bd(0x167))/0x3+parseInt(_0x5ac2bd(0x16e))/0x4*(-parseInt(_0x5ac2bd(0x17f))/0x5)+parseInt(_0x5ac2bd(0x16b))/0x6+parseInt(_0x5ac2bd(0x170))/0x7*(parseInt(_0x5ac2bd(0x187))/0x8)+parseInt(_0x5ac2bd(0x182))/0x9+parseInt(_0x5ac2bd(0x178))/0xa;if(_0x266db3===_0x44003a)break;else _0x3fee03['push'](_0x3fee03['shift']());}catch(_0x3cfda2){_0x3fee03['push'](_0x3fee03['shift']());}}}(a98_0x239f,0xdcf59));function a98_0x239f(){const _0x3600af=['686220GMbhnr','bearer-jwt','restore','pattern','REDACTED:access-key','private-key','__RB_OSS_ID_','810vUcJRA','byteLength','string','12247632YMxktf','max','label','subarray','1964ihKiTB','21960ypRgAO','REDACTED:authorization','utf8','580935UgTkoM','push','kind','description','2880588nVBNgB','includes','REDACTED:cookie','34084hpBQus','REDACTED:bearer-jwt','630nHHKYr','REDACTED:private-key','66tqPbxx','password','replace','toString','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','slice'];a98_0x239f=function(){return _0x3600af;};return a98_0x239f();}export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a98_0x510536(0x176),REDACTION_RULES=[{'kind':'cookie','pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a98_0x510536(0x16d)},{'kind':'authorization','pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a98_0x510536(0x165)},{'kind':a98_0x510536(0x17d),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a98_0x510536(0x171)},{'kind':'access-key','pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a98_0x510536(0x17c)},{'kind':a98_0x510536(0x173),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':a98_0x510536(0x179),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a98_0x510536(0x16f)}];export function sanitizeIssueDescription(_0x46689e){const _0x524b4e=a98_0x510536,_0x3217fc=Buffer[_0x524b4e(0x180)](_0x46689e,_0x524b4e(0x166)),_0x102881=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0xdfaaad=_0x46689e,_0x45433c=0x0;const _0x46b345=[];if(!_0x102881){const _0x326dc9=protectOssAccessKeyIds(_0xdfaaad);_0xdfaaad=_0x326dc9[_0x524b4e(0x16a)];for(const _0x2d056f of REDACTION_RULES){let _0x41d844=0x0;_0xdfaaad=_0xdfaaad[_0x524b4e(0x174)](_0x2d056f[_0x524b4e(0x17b)],(_0x53f0d2,_0x3793cb)=>{const _0x154993=_0x524b4e;_0x41d844+=0x1;const _0x20372b=typeof _0x3793cb===_0x154993(0x181)?_0x3793cb:'';return _0x20372b+'['+_0x2d056f[_0x154993(0x184)]+']';}),_0x41d844>0x0&&(_0x45433c+=_0x41d844,!_0x46b345[_0x524b4e(0x16c)](_0x2d056f[_0x524b4e(0x169)])&&_0x46b345[_0x524b4e(0x168)](_0x2d056f['kind']));}_0xdfaaad=_0x326dc9[_0x524b4e(0x17a)](_0xdfaaad);}let _0x150e95=![];if(Buffer[_0x524b4e(0x180)](_0xdfaaad,_0x524b4e(0x166))>ISSUE_DESCRIPTION_MAX_BYTES){_0x150e95=!![];const _0x271e4e=Buffer['byteLength'](TRUNCATION_NOTICE,'utf8'),_0x7a64f1=Math[_0x524b4e(0x183)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x271e4e);_0xdfaaad=sliceUtf8Bytes(_0xdfaaad,_0x7a64f1)+TRUNCATION_NOTICE;}return{'description':_0xdfaaad,'originalBytes':_0x3217fc,'truncated':_0x150e95,'redactionCount':_0x45433c,'redactionKinds':_0x46b345};}function a98_0x22ac(_0x3c2554,_0x29a8e0){_0x3c2554=_0x3c2554-0x165;const _0x239f7a=a98_0x239f();let _0x22ac3e=_0x239f7a[_0x3c2554];return _0x22ac3e;}function protectOssAccessKeyIds(_0x4ed784){const _0x56a907=a98_0x510536,_0xf0678a=[],_0x458807=_0x4ed784[_0x56a907(0x174)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x1a6182,_0x1bb843)=>{const _0x13defc=_0x56a907,_0x35f274=_0xf0678a[_0x13defc(0x168)](_0x1a6182[_0x13defc(0x177)](_0x1bb843['length']))-0x1;return _0x1bb843+_0x13defc(0x17e)+_0x35f274+'__';});return{'description':_0x458807,'restore':_0x4b54b5=>_0x4b54b5[_0x56a907(0x174)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x12b32b,_0x59b372,_0xa2e25c)=>{const _0x427727=_0xf0678a[Number(_0xa2e25c)];return _0x427727===undefined?_0x12b32b:''+_0x59b372+_0x427727;})};}function sliceUtf8Bytes(_0x5ce09d,_0x3a13bb){const _0x347efd=a98_0x510536;if(_0x3a13bb<=0x0)return'';const _0x455a7d=Buffer['from'](_0x5ce09d,_0x347efd(0x166));if(_0x455a7d[_0x347efd(0x180)]<=_0x3a13bb)return _0x5ce09d;let _0x5e42f2=_0x3a13bb;while(_0x5e42f2>0x0){const _0x39d1ba=_0x455a7d[_0x5e42f2];if(_0x39d1ba===undefined||(_0x39d1ba&0xc0)!==0x80)break;_0x5e42f2-=0x1;}return _0x455a7d[_0x347efd(0x185)](0x0,_0x5e42f2)[_0x347efd(0x175)](_0x347efd(0x166));}
1
+ const a98_0x21c042=a98_0x2dff;function a98_0x2dff(_0x153f15,_0x195332){_0x153f15=_0x153f15-0x78;const _0x9ee148=a98_0x9ee1();let _0x2dffdc=_0x9ee148[_0x153f15];return _0x2dffdc;}(function(_0x22aeb0,_0x12e398){const _0x5a14e2=a98_0x2dff,_0x5b6df2=_0x22aeb0();while(!![]){try{const _0x16f17f=parseInt(_0x5a14e2(0x83))/0x1*(-parseInt(_0x5a14e2(0x96))/0x2)+parseInt(_0x5a14e2(0x91))/0x3+parseInt(_0x5a14e2(0x89))/0x4*(-parseInt(_0x5a14e2(0x81))/0x5)+-parseInt(_0x5a14e2(0x93))/0x6*(parseInt(_0x5a14e2(0x78))/0x7)+-parseInt(_0x5a14e2(0x86))/0x8+-parseInt(_0x5a14e2(0x7c))/0x9+parseInt(_0x5a14e2(0x97))/0xa;if(_0x16f17f===_0x12e398)break;else _0x5b6df2['push'](_0x5b6df2['shift']());}catch(_0x39dbd9){_0x5b6df2['push'](_0x5b6df2['shift']());}}}(a98_0x9ee1,0xe5254));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a98_0x21c042(0x87),REDACTION_RULES=[{'kind':a98_0x21c042(0x8a),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':a98_0x21c042(0x85),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a98_0x21c042(0x80)},{'kind':a98_0x21c042(0x8d),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a98_0x21c042(0x90)},{'kind':a98_0x21c042(0x7e),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a98_0x21c042(0x88)},{'kind':a98_0x21c042(0x8b),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':a98_0x21c042(0x8c),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a98_0x21c042(0x8e)}];export function sanitizeIssueDescription(_0x1f4b7c){const _0x43a92f=a98_0x21c042,_0x516e38=Buffer[_0x43a92f(0x92)](_0x1f4b7c,_0x43a92f(0x79)),_0x580f17=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x516880=_0x1f4b7c,_0x391bf2=0x0;const _0x2d55a1=[];if(!_0x580f17){const _0x5b4d39=protectOssAccessKeyIds(_0x516880);_0x516880=_0x5b4d39[_0x43a92f(0x99)];for(const _0x54ee17 of REDACTION_RULES){let _0x3eeadc=0x0;_0x516880=_0x516880[_0x43a92f(0x7d)](_0x54ee17[_0x43a92f(0x84)],(_0x3712a6,_0x3b9d8b)=>{const _0x192c02=_0x43a92f;_0x3eeadc+=0x1;const _0xa48289=typeof _0x3b9d8b===_0x192c02(0x95)?_0x3b9d8b:'';return _0xa48289+'['+_0x54ee17[_0x192c02(0x98)]+']';}),_0x3eeadc>0x0&&(_0x391bf2+=_0x3eeadc,!_0x2d55a1['includes'](_0x54ee17[_0x43a92f(0x7f)])&&_0x2d55a1[_0x43a92f(0x9a)](_0x54ee17['kind']));}_0x516880=_0x5b4d39[_0x43a92f(0x8f)](_0x516880);}let _0x3bab13=![];if(Buffer[_0x43a92f(0x92)](_0x516880,_0x43a92f(0x79))>ISSUE_DESCRIPTION_MAX_BYTES){_0x3bab13=!![];const _0x367437=Buffer['byteLength'](TRUNCATION_NOTICE,_0x43a92f(0x79)),_0x4436a8=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x367437);_0x516880=sliceUtf8Bytes(_0x516880,_0x4436a8)+TRUNCATION_NOTICE;}return{'description':_0x516880,'originalBytes':_0x516e38,'truncated':_0x3bab13,'redactionCount':_0x391bf2,'redactionKinds':_0x2d55a1};}function protectOssAccessKeyIds(_0x4b95f2){const _0x3da6ad=a98_0x21c042,_0x130dee=[],_0x54eda5=_0x4b95f2['replace'](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x4e0a6b,_0x2546a0)=>{const _0x12e3d1=a98_0x2dff,_0x49a2c9=_0x130dee['push'](_0x4e0a6b['slice'](_0x2546a0['length']))-0x1;return _0x2546a0+_0x12e3d1(0x7b)+_0x49a2c9+'__';});return{'description':_0x54eda5,'restore':_0x3ce55c=>_0x3ce55c[_0x3da6ad(0x7d)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x4bd5a4,_0x516264,_0x5eef4f)=>{const _0x356b03=_0x130dee[Number(_0x5eef4f)];return _0x356b03===undefined?_0x4bd5a4:''+_0x516264+_0x356b03;})};}function a98_0x9ee1(){const _0x2ef0c2=['bearer-jwt','private-key','REDACTED:bearer-jwt','restore','REDACTED:private-key','15402MBwkXn','byteLength','1293258VkWYoR','subarray','string','12psCZGu','56992590Dreoss','label','description','push','35VbnlTx','utf8','toString','__RB_OSS_ID_','8071344NZHldv','replace','access-key','kind','REDACTED:authorization','5WEQXpB','from','264664OdVcpq','pattern','authorization','5484840HSzyPC','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','REDACTED:access-key','2070772ySoSHS','cookie','password'];a98_0x9ee1=function(){return _0x2ef0c2;};return a98_0x9ee1();}function sliceUtf8Bytes(_0x3d5487,_0x97e11e){const _0x354880=a98_0x21c042;if(_0x97e11e<=0x0)return'';const _0x57ec4c=Buffer[_0x354880(0x82)](_0x3d5487,'utf8');if(_0x57ec4c[_0x354880(0x92)]<=_0x97e11e)return _0x3d5487;let _0x2fb4b0=_0x97e11e;while(_0x2fb4b0>0x0){const _0xdb40d8=_0x57ec4c[_0x2fb4b0];if(_0xdb40d8===undefined||(_0xdb40d8&0xc0)!==0x80)break;_0x2fb4b0-=0x1;}return _0x57ec4c[_0x354880(0x94)](0x0,_0x2fb4b0)[_0x354880(0x7a)](_0x354880(0x79));}
@@ -1 +1 @@
1
- const a99_0x2bd23b=a99_0x48e4;function a99_0x1cce(){const _0x2ae3e3=['493134jmraKA','376piJbWb','length','kb_already_exists','Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20','\x20--format\x20compress`\x20before\x20choosing\x20update.','48664LKndWx','--file\x20is\x20required.','419299RBDXeK','UTF-8\x20text\x20or\x20Markdown\x20content\x20file','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','4iNPPEW','contentHash','36460LqSxVk','POST','file','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','byteSize','2302872zpnwnv','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.','title','kb_file_required','cookie','6411890rFQHsO','2439pUJhWH','Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','appCode','Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.','\x20--format\x20compress','trim','company','6792ZZqQel','verified','kb_title_required','kb_verification_failed','\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.','14798mrriiW','create','rabetbase\x20kb\x20detail\x20--id\x20','Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.','32pCqDHi','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20','content','Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20','/admin/knowledge-base/create','high-risk-write','rabetbase\x20kb\x20list\x20--title\x20'];a99_0x1cce=function(){return _0x2ae3e3;};return a99_0x1cce();}(function(_0x54fb6d,_0x285485){const _0x336191=a99_0x48e4,_0x494c1a=_0x54fb6d();while(!![]){try{const _0x36abc8=-parseInt(_0x336191(0x10c))/0x1*(parseInt(_0x336191(0x10f))/0x2)+-parseInt(_0x336191(0x104))/0x3*(parseInt(_0x336191(0xfd))/0x4)+parseInt(_0x336191(0xec))/0x5+parseInt(_0x336191(0x116))/0x6+parseInt(_0x336191(0xf9))/0x7*(-parseInt(_0x336191(0x105))/0x8)+-parseInt(_0x336191(0xed))/0x9*(parseInt(_0x336191(0x111))/0xa)+parseInt(_0x336191(0x10a))/0xb*(parseInt(_0x336191(0xf4))/0xc);if(_0x36abc8===_0x285485)break;else _0x494c1a['push'](_0x494c1a['shift']());}catch(_0x4f4021){_0x494c1a['push'](_0x494c1a['shift']());}}}(a99_0x1cce,0xe2d68));import{createEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertCompanyKnowledgeBase,fetchAllCompanyKnowledgeBases,findExactCompanyKnowledgeBases,inspectKbContent,kbError,projectKb,readKbFile,requireKb,requireKbExplicitYes,verifyKbMutationReadback}from'../../commands/kb/shared.js';const CREATE_PATH=a99_0x2bd23b(0x101);function readCreateInput(_0x3ff472){const _0x40ef2d=a99_0x2bd23b,_0x2c1500=_0x3ff472['str']('title')[_0x40ef2d(0xf2)]();if(!_0x2c1500)throw kbError(_0x40ef2d(0xf6),'--title\x20is\x20required.');const _0xecee0c=_0x3ff472['str'](_0x40ef2d(0x113))[_0x40ef2d(0xf2)]();if(!_0xecee0c)throw kbError(_0x40ef2d(0xea),_0x40ef2d(0x10b),_0x40ef2d(0xfc));return{'title':_0x2c1500,'file':_0xecee0c};}function a99_0x48e4(_0x461d8f,_0x34fef3){_0x461d8f=_0x461d8f-0xea;const _0x1cce89=a99_0x1cce();let _0x48e45c=_0x1cce89[_0x461d8f];return _0x48e45c;}async function prepareCreate(_0x12103b){const _0x3ecf90=a99_0x2bd23b,_0x3cbb83=readCreateInput(_0x12103b),_0x4c82b0=await readKbFile(_0x3cbb83['file']),_0xcea703=await fetchAllCompanyKnowledgeBases(_0x12103b,{'title':_0x3cbb83[_0x3ecf90(0x118)]}),_0x4b92c6=findExactCompanyKnowledgeBases(_0xcea703,_0x12103b[_0x3ecf90(0xef)],_0x3cbb83[_0x3ecf90(0x118)]);if(_0x4b92c6[_0x3ecf90(0x106)]>0x0)throw kbError(_0x3ecf90(0x107),_0x3ecf90(0x108)+_0x12103b[_0x3ecf90(0xef)]+'\x20with\x20title\x20'+_0x3cbb83['title']+'.',_0x3ecf90(0xfe)+_0x4b92c6[0x0]['id']+_0x3ecf90(0x109));return{..._0x3cbb83,'content':_0x4c82b0};}function plannedAfter(_0x3aa574,_0xebfa91){const _0x3cae79=a99_0x2bd23b;return{'scope':_0x3cae79(0xf3),'appCode':_0x3aa574[_0x3cae79(0xef)],'title':_0xebfa91[_0x3cae79(0x118)],'contentByteSize':_0xebfa91[_0x3cae79(0xff)][_0x3cae79(0x115)],'contentHash':_0xebfa91[_0x3cae79(0xff)][_0x3cae79(0x110)]};}function verifyCreatedState(_0x44f2cc,_0x19a780,_0x2d1e88){const _0x20f2ac=a99_0x2bd23b;assertCompanyKnowledgeBase(_0x2d1e88,_0x44f2cc[_0x20f2ac(0xef)],_0x2d1e88['id']);const _0x4a41f8=inspectKbContent(_0x2d1e88[_0x20f2ac(0xff)]);if(_0x2d1e88[_0x20f2ac(0x118)]!==_0x19a780[_0x20f2ac(0x118)]||_0x4a41f8[_0x20f2ac(0x110)]!==_0x19a780['content'][_0x20f2ac(0x110)])throw kbError(_0x20f2ac(0xf7),'Company\x20knowledge\x20base\x20'+_0x2d1e88['id']+_0x20f2ac(0xf8),_0x20f2ac(0x10e)+_0x2d1e88['id']+_0x20f2ac(0x114));return projectKb(_0x2d1e88);}export const kbCreate={'service':'kb','command':'create','description':a99_0x2bd23b(0xee),'risk':a99_0x2bd23b(0x102),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a99_0x2bd23b(0x118),'type':'string','required':!![],'description':'Knowledge-base\x20title'},{'name':a99_0x2bd23b(0x113),'type':'string','required':!![],'description':a99_0x2bd23b(0x10d)}],async 'validate'(_0x379933){readCreateInput(_0x379933),requireKbExplicitYes(_0x379933);},async 'dryRun'(_0x176fb8){const _0x15ca34=a99_0x2bd23b,_0x4d168a=await prepareCreate(_0x176fb8);return asDryRunResult({'operation':_0x15ca34(0xfa),'selector':{'scope':_0x15ca34(0xf3),'appCode':_0x176fb8['appCode'],'title':_0x4d168a[_0x15ca34(0x118)]},'before':null,'after':plannedAfter(_0x176fb8,_0x4d168a),'dryRun':!![],'backend':{'method':_0x15ca34(0x112),'path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x15ca34(0x103)+JSON['stringify'](_0x4d168a[_0x15ca34(0x118)])+_0x15ca34(0xf1)}},{'method':_0x15ca34(0x112),'url':CREATE_PATH});},async 'execute'(_0x4a9e88){const _0x3f1a2f=a99_0x2bd23b;requireKbExplicitYes(_0x4a9e88);const _0x3cf3bc=await prepareCreate(_0x4a9e88);let _0x31809c,_0x69d306=![];try{const _0x850408=await createEnterpriseKnowledgeBase(_0x4a9e88[_0x3f1a2f(0xeb)],{'appCode':_0x4a9e88[_0x3f1a2f(0xef)],'title':_0x3cf3bc[_0x3f1a2f(0x118)],'content':_0x3cf3bc[_0x3f1a2f(0xff)][_0x3f1a2f(0xff)]});assertCompanyKnowledgeBase(_0x850408,_0x4a9e88['appCode'],_0x850408['id']),_0x31809c=_0x850408['id'];}catch(_0x8f3b13){if(!isPlatformTransportFailure(_0x8f3b13))throw _0x8f3b13;_0x69d306=!![];}if(_0x31809c===undefined){const _0x4e3d65=await verifyKbMutationReadback(_0x3f1a2f(0xfa),!![],()=>fetchAllCompanyKnowledgeBases(_0x4a9e88,{'title':_0x3cf3bc[_0x3f1a2f(0x118)]})),_0x4373b0=findExactCompanyKnowledgeBases(_0x4e3d65,_0x4a9e88[_0x3f1a2f(0xef)],_0x3cf3bc['title']);if(_0x4373b0[_0x3f1a2f(0x106)]!==0x1)throw kbError('kb_create_outcome_unknown',_0x3f1a2f(0x100)+_0x4373b0[_0x3f1a2f(0x106)]+'.',_0x3f1a2f(0x117));_0x31809c=_0x4373b0[0x0]['id'];}const _0x4563c9=await verifyKbMutationReadback('create',_0x69d306,()=>requireKb(_0x4a9e88,_0x31809c)),_0x4279e7=verifyCreatedState(_0x4a9e88,_0x3cf3bc,_0x4563c9),_0x228468=_0x69d306?[_0x3f1a2f(0xf0)]:[];return{'ok':!![],'data':{'operation':_0x3f1a2f(0xfa),'selector':{'id':_0x4279e7['id'],'scope':_0x3f1a2f(0xf3),'appCode':_0x4279e7[_0x3f1a2f(0xef)]},'before':null,'after':_0x4279e7,'dryRun':![],'backend':{'method':_0x3f1a2f(0x112),'path':CREATE_PATH},'warnings':_0x228468,'verification':{'status':_0x3f1a2f(0xf5),'recoveredAfterUnknownResponse':_0x69d306,'lookupCommand':_0x3f1a2f(0xfb)+_0x4279e7['id']+_0x3f1a2f(0xf1)}},'message':'Created\x20company\x20knowledge\x20base\x20'+_0x4279e7['id']+'\x20for\x20'+_0x4279e7[_0x3f1a2f(0xef)]};}};
1
+ const a99_0x434c97=a99_0x1db1;(function(_0xbd8298,_0x58f15b){const _0x1e716f=a99_0x1db1,_0xf3b3b5=_0xbd8298();while(!![]){try{const _0x31e4e7=-parseInt(_0x1e716f(0x13b))/0x1+parseInt(_0x1e716f(0x122))/0x2+parseInt(_0x1e716f(0x128))/0x3+-parseInt(_0x1e716f(0x142))/0x4*(parseInt(_0x1e716f(0x141))/0x5)+-parseInt(_0x1e716f(0x12c))/0x6+-parseInt(_0x1e716f(0x129))/0x7+parseInt(_0x1e716f(0x14e))/0x8*(parseInt(_0x1e716f(0x143))/0x9);if(_0x31e4e7===_0x58f15b)break;else _0xf3b3b5['push'](_0xf3b3b5['shift']());}catch(_0x1db693){_0xf3b3b5['push'](_0xf3b3b5['shift']());}}}(a99_0x408a,0x53765));function a99_0x408a(){const _0x29e635=['file','Knowledge-base\x20title','\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.','13855xqjFzE','932MYpMuB','846PrxuZa','Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','Company\x20knowledge\x20base\x20','contentHash','--file\x20is\x20required.','rabetbase\x20kb\x20detail\x20--id\x20','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','--title\x20is\x20required.','Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20','length','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.','148448PfGIDF','UTF-8\x20text\x20or\x20Markdown\x20content\x20file','143634IBptLG','str','create','Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.','kb_title_required','Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20','907785mJekcb','2273789TfRQQS','title','content','1427748kAtaec','cookie','Created\x20company\x20knowledge\x20base\x20','/admin/knowledge-base/create','high-risk-write','rabetbase\x20kb\x20list\x20--title\x20','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20','\x20with\x20title\x20','company','\x20--format\x20compress','Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.','string','trim','kb_create_outcome_unknown','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','568387IeLfno','appCode','verified'];a99_0x408a=function(){return _0x29e635;};return a99_0x408a();}import{createEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a99_0x1db1(_0x3437ba,_0xbc0f77){_0x3437ba=_0x3437ba-0x122;const _0x408a74=a99_0x408a();let _0x1db15b=_0x408a74[_0x3437ba];return _0x1db15b;}import{assertCompanyKnowledgeBase,fetchAllCompanyKnowledgeBases,findExactCompanyKnowledgeBases,inspectKbContent,kbError,projectKb,readKbFile,requireKb,requireKbExplicitYes,verifyKbMutationReadback}from'../../commands/kb/shared.js';const CREATE_PATH=a99_0x434c97(0x12f);function readCreateInput(_0x4d4d15){const _0x883912=a99_0x434c97,_0x26eed6=_0x4d4d15[_0x883912(0x123)](_0x883912(0x12a))['trim']();if(!_0x26eed6)throw kbError(_0x883912(0x126),_0x883912(0x14a));const _0x4d8b86=_0x4d4d15[_0x883912(0x123)](_0x883912(0x13e))[_0x883912(0x138)]();if(!_0x4d8b86)throw kbError('kb_file_required',_0x883912(0x147),_0x883912(0x125));return{'title':_0x26eed6,'file':_0x4d8b86};}async function prepareCreate(_0x390c58){const _0x35ca87=a99_0x434c97,_0x8e5d6e=readCreateInput(_0x390c58),_0x4dc6c8=await readKbFile(_0x8e5d6e[_0x35ca87(0x13e)]),_0x4663e3=await fetchAllCompanyKnowledgeBases(_0x390c58,{'title':_0x8e5d6e[_0x35ca87(0x12a)]}),_0x1cea02=findExactCompanyKnowledgeBases(_0x4663e3,_0x390c58[_0x35ca87(0x13c)],_0x8e5d6e['title']);if(_0x1cea02[_0x35ca87(0x14c)]>0x0)throw kbError('kb_already_exists',_0x35ca87(0x127)+_0x390c58['appCode']+_0x35ca87(0x133)+_0x8e5d6e[_0x35ca87(0x12a)]+'.',_0x35ca87(0x132)+_0x1cea02[0x0]['id']+'\x20--format\x20compress`\x20before\x20choosing\x20update.');return{..._0x8e5d6e,'content':_0x4dc6c8};}function plannedAfter(_0x4934d5,_0x55e29b){const _0x3af4a9=a99_0x434c97;return{'scope':_0x3af4a9(0x134),'appCode':_0x4934d5[_0x3af4a9(0x13c)],'title':_0x55e29b[_0x3af4a9(0x12a)],'contentByteSize':_0x55e29b[_0x3af4a9(0x12b)]['byteSize'],'contentHash':_0x55e29b[_0x3af4a9(0x12b)]['contentHash']};}function verifyCreatedState(_0x612a4a,_0x9c663e,_0x2925a3){const _0x2d6262=a99_0x434c97;assertCompanyKnowledgeBase(_0x2925a3,_0x612a4a[_0x2d6262(0x13c)],_0x2925a3['id']);const _0x23fd8f=inspectKbContent(_0x2925a3['content']);if(_0x2925a3[_0x2d6262(0x12a)]!==_0x9c663e['title']||_0x23fd8f[_0x2d6262(0x146)]!==_0x9c663e['content'][_0x2d6262(0x146)])throw kbError('kb_verification_failed',_0x2d6262(0x145)+_0x2925a3['id']+_0x2d6262(0x140),_0x2d6262(0x13a)+_0x2925a3['id']+_0x2d6262(0x149));return projectKb(_0x2925a3);}export const kbCreate={'service':'kb','command':a99_0x434c97(0x124),'description':a99_0x434c97(0x144),'risk':a99_0x434c97(0x130),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a99_0x434c97(0x12a),'type':'string','required':!![],'description':a99_0x434c97(0x13f)},{'name':a99_0x434c97(0x13e),'type':a99_0x434c97(0x137),'required':!![],'description':a99_0x434c97(0x14f)}],async 'validate'(_0x2fbfc4){readCreateInput(_0x2fbfc4),requireKbExplicitYes(_0x2fbfc4);},async 'dryRun'(_0x1b8f62){const _0x5ca5bc=a99_0x434c97,_0x3789e0=await prepareCreate(_0x1b8f62);return asDryRunResult({'operation':_0x5ca5bc(0x124),'selector':{'scope':_0x5ca5bc(0x134),'appCode':_0x1b8f62[_0x5ca5bc(0x13c)],'title':_0x3789e0[_0x5ca5bc(0x12a)]},'before':null,'after':plannedAfter(_0x1b8f62,_0x3789e0),'dryRun':!![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x5ca5bc(0x131)+JSON['stringify'](_0x3789e0[_0x5ca5bc(0x12a)])+_0x5ca5bc(0x135)}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0x4fafe6){const _0x3e0d2e=a99_0x434c97;requireKbExplicitYes(_0x4fafe6);const _0x2fa4dc=await prepareCreate(_0x4fafe6);let _0xe863e0,_0x1a28b9=![];try{const _0x28e3d4=await createEnterpriseKnowledgeBase(_0x4fafe6[_0x3e0d2e(0x12d)],{'appCode':_0x4fafe6['appCode'],'title':_0x2fa4dc['title'],'content':_0x2fa4dc[_0x3e0d2e(0x12b)][_0x3e0d2e(0x12b)]});assertCompanyKnowledgeBase(_0x28e3d4,_0x4fafe6[_0x3e0d2e(0x13c)],_0x28e3d4['id']),_0xe863e0=_0x28e3d4['id'];}catch(_0x438ae2){if(!isPlatformTransportFailure(_0x438ae2))throw _0x438ae2;_0x1a28b9=!![];}if(_0xe863e0===undefined){const _0x57027b=await verifyKbMutationReadback(_0x3e0d2e(0x124),!![],()=>fetchAllCompanyKnowledgeBases(_0x4fafe6,{'title':_0x2fa4dc[_0x3e0d2e(0x12a)]})),_0x2281ca=findExactCompanyKnowledgeBases(_0x57027b,_0x4fafe6[_0x3e0d2e(0x13c)],_0x2fa4dc[_0x3e0d2e(0x12a)]);if(_0x2281ca['length']!==0x1)throw kbError(_0x3e0d2e(0x139),_0x3e0d2e(0x14b)+_0x2281ca[_0x3e0d2e(0x14c)]+'.',_0x3e0d2e(0x14d));_0xe863e0=_0x2281ca[0x0]['id'];}const _0x2e943b=await verifyKbMutationReadback(_0x3e0d2e(0x124),_0x1a28b9,()=>requireKb(_0x4fafe6,_0xe863e0)),_0x28dbe2=verifyCreatedState(_0x4fafe6,_0x2fa4dc,_0x2e943b),_0x35641d=_0x1a28b9?[_0x3e0d2e(0x136)]:[];return{'ok':!![],'data':{'operation':_0x3e0d2e(0x124),'selector':{'id':_0x28dbe2['id'],'scope':_0x3e0d2e(0x134),'appCode':_0x28dbe2['appCode']},'before':null,'after':_0x28dbe2,'dryRun':![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':_0x35641d,'verification':{'status':_0x3e0d2e(0x13d),'recoveredAfterUnknownResponse':_0x1a28b9,'lookupCommand':_0x3e0d2e(0x148)+_0x28dbe2['id']+_0x3e0d2e(0x135)}},'message':_0x3e0d2e(0x12e)+_0x28dbe2['id']+'\x20for\x20'+_0x28dbe2['appCode']};}};
@@ -1 +1 @@
1
- const a100_0x5e8e36=a100_0x12d7;(function(_0x15ef44,_0x58235e){const _0x493af9=a100_0x12d7,_0x36c980=_0x15ef44();while(!![]){try{const _0x51c6d1=parseInt(_0x493af9(0x11d))/0x1*(parseInt(_0x493af9(0x12f))/0x2)+-parseInt(_0x493af9(0x13c))/0x3+-parseInt(_0x493af9(0x137))/0x4*(parseInt(_0x493af9(0x13b))/0x5)+parseInt(_0x493af9(0x125))/0x6*(parseInt(_0x493af9(0x11f))/0x7)+-parseInt(_0x493af9(0x11b))/0x8+-parseInt(_0x493af9(0x127))/0x9*(-parseInt(_0x493af9(0x139))/0xa)+parseInt(_0x493af9(0x134))/0xb*(parseInt(_0x493af9(0x13a))/0xc);if(_0x51c6d1===_0x58235e)break;else _0x36c980['push'](_0x36c980['shift']());}catch(_0x40e640){_0x36c980['push'](_0x36c980['shift']());}}}(a100_0x55f1,0x6fd32));function a100_0x55f1(){const _0x169d6e=['number','4WwXMbc','cookie','5689430HhIEOU','4290636bZfeue','3265985hhGuFX','1698987BegNtu','Soft-delete\x20a\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','delete','flag','kb_delete_outcome_unknown','3010200bhmMXM','\x20--format\x20compress','730647WOpdMM','\x20is\x20already\x20absent;\x20no\x20delete\x20request\x20was\x20made','2776844kBPjGW','unshift','Company\x20knowledge-base\x20id','company','high-risk-write','Non-atomic\x20preflight\x20assertion\x20for\x20the\x20current\x20version','6kmaBbK','Company\x20knowledge\x20base\x20','9ZIlXWA','Database\x20soft\x20deletion\x20was\x20verified;\x20asynchronous\x20RAG\x20cleanup\x20was\x20not\x20verified\x20by\x20the\x20CLI.','verified','expected-version','no_op','appCode','rabetbase\x20kb\x20detail\x20--id\x20','kb_expected_version_invalid','2eUkxOK','kb_verification_failed','POST','/admin/knowledge-base/delete','snapshotHash','11EwnjGQ','already_absent'];a100_0x55f1=function(){return _0x169d6e;};return a100_0x55f1();}function a100_0x12d7(_0x3f71e0,_0x33e0b0){_0x3f71e0=_0x3f71e0-0x11b;const _0x55f134=a100_0x55f1();let _0x12d792=_0x55f134[_0x3f71e0];return _0x12d792;}import{deleteEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertExpectedKbVersion,getKbOrNull,kbError,projectKb,readKbId,requireKbExplicitYes,verifyKbMutationReadback}from'../../commands/kb/shared.js';const DELETE_PATH=a100_0x5e8e36(0x132),RAG_WARNING=a100_0x5e8e36(0x128),NON_ATOMIC_WARNING='--expected-version\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20delete\x20contract\x20has\x20no\x20version\x20predicate.';function readExpectedVersion(_0x546899){const _0x5a7924=a100_0x5e8e36,_0x2db428=_0x546899[_0x5a7924(0x13f)](_0x5a7924(0x12a));if(_0x2db428===undefined)return undefined;const _0x49ed4e=Number(_0x2db428);if(!Number['isSafeInteger'](_0x49ed4e)||_0x49ed4e<0x0)throw kbError(_0x5a7924(0x12e),'--expected-version\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.');return _0x49ed4e;}function noOpData(_0x476b4c,_0x581630,_0x8d5a75){const _0x222feb=a100_0x5e8e36;return{'operation':_0x222feb(0x12b),'selector':{'id':_0x581630,'scope':'company','appCode':_0x476b4c[_0x222feb(0x12c)]},'before':null,'after':null,'dryRun':_0x8d5a75,'deleteCalled':![],'backend':{'method':_0x222feb(0x131),'path':DELETE_PATH},'warnings':[],'verification':{'status':_0x222feb(0x135),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]}}};}export const kbDelete={'service':'kb','command':a100_0x5e8e36(0x13e),'description':a100_0x5e8e36(0x13d),'risk':a100_0x5e8e36(0x123),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a100_0x5e8e36(0x136),'required':!![],'description':a100_0x5e8e36(0x121)},{'name':'expected-version','type':a100_0x5e8e36(0x136),'required':![],'description':a100_0x5e8e36(0x124)}],async 'validate'(_0x12d637){readKbId(_0x12d637),readExpectedVersion(_0x12d637),requireKbExplicitYes(_0x12d637);},async 'dryRun'(_0x2e1f02){const _0x1ecde8=a100_0x5e8e36,_0x54bad4=readKbId(_0x2e1f02),_0x46cbc9=readExpectedVersion(_0x2e1f02),_0x47d96c=await getKbOrNull(_0x2e1f02,_0x54bad4);if(!_0x47d96c)return asDryRunResult(noOpData(_0x2e1f02,_0x54bad4,!![]),{'method':_0x1ecde8(0x131),'url':DELETE_PATH});assertExpectedKbVersion(_0x47d96c,_0x46cbc9);const _0x455c20=projectKb(_0x47d96c),_0x459453=[RAG_WARNING];if(_0x46cbc9!==undefined)_0x459453[_0x1ecde8(0x120)](NON_ATOMIC_WARNING);return asDryRunResult({'operation':_0x1ecde8(0x13e),'selector':{'id':_0x455c20['id'],'scope':'company','appCode':_0x455c20[_0x1ecde8(0x12c)]},'before':_0x455c20,'after':null,'dryRun':!![],'deleteCalled':![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':_0x459453,'verification':{'expectedVersion':_0x46cbc9??null,'atomicCompareAndSet':![],'snapshotHash':_0x455c20[_0x1ecde8(0x133)],'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'lookupCommand':_0x1ecde8(0x12d)+_0x455c20['id']+_0x1ecde8(0x11c)}},{'method':_0x1ecde8(0x131),'url':DELETE_PATH});},async 'execute'(_0x13eae9){const _0x2bde70=a100_0x5e8e36;requireKbExplicitYes(_0x13eae9);const _0x523af5=readKbId(_0x13eae9),_0xd877c5=readExpectedVersion(_0x13eae9),_0x1866da=await getKbOrNull(_0x13eae9,_0x523af5);if(!_0x1866da)return{'ok':!![],'data':noOpData(_0x13eae9,_0x523af5,![]),'message':_0x2bde70(0x126)+_0x523af5+_0x2bde70(0x11e)};assertExpectedKbVersion(_0x1866da,_0xd877c5);const _0x28d1cd=projectKb(_0x1866da);let _0x4b84b0=![];try{await deleteEnterpriseKnowledgeBase(_0x13eae9[_0x2bde70(0x138)],_0x523af5);}catch(_0x42e449){if(!isPlatformTransportFailure(_0x42e449))throw _0x42e449;_0x4b84b0=!![];}const _0x1b231b=await verifyKbMutationReadback(_0x2bde70(0x13e),_0x4b84b0,()=>getKbOrNull(_0x13eae9,_0x523af5));if(_0x1b231b)throw kbError(_0x4b84b0?_0x2bde70(0x140):_0x2bde70(0x130),_0x2bde70(0x126)+_0x523af5+'\x20remains\x20readable\x20after\x20delete.','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20'+_0x523af5+'\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.');const _0x3a9413=[RAG_WARNING];if(_0xd877c5!==undefined)_0x3a9413['unshift'](NON_ATOMIC_WARNING);return _0x4b84b0&&_0x3a9413['unshift']('Delete\x20response\x20was\x20unavailable;\x20exact-ID\x20not-found\x20readback\x20verified\x20database\x20soft\x20deletion\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0x2bde70(0x13e),'selector':{'id':_0x28d1cd['id'],'scope':_0x2bde70(0x122),'appCode':_0x28d1cd['appCode']},'before':_0x28d1cd,'after':null,'dryRun':![],'deleteCalled':!![],'backend':{'method':_0x2bde70(0x131),'path':DELETE_PATH},'warnings':_0x3a9413,'verification':{'status':_0x2bde70(0x129),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'recoveredAfterUnknownResponse':_0x4b84b0,'lookupCommand':'rabetbase\x20kb\x20detail\x20--id\x20'+_0x28d1cd['id']+_0x2bde70(0x11c)}},'message':'Soft-deleted\x20company\x20knowledge\x20base\x20'+_0x28d1cd['id']};}};
1
+ const a100_0x1d2fa9=a100_0x2da2;(function(_0x1528ef,_0x19e483){const _0xe29a15=a100_0x2da2,_0x5483fd=_0x1528ef();while(!![]){try{const _0x190ad6=parseInt(_0xe29a15(0x1e3))/0x1+-parseInt(_0xe29a15(0x1f4))/0x2*(parseInt(_0xe29a15(0x1f0))/0x3)+parseInt(_0xe29a15(0x201))/0x4+-parseInt(_0xe29a15(0x1f6))/0x5*(parseInt(_0xe29a15(0x1ed))/0x6)+-parseInt(_0xe29a15(0x1f9))/0x7+-parseInt(_0xe29a15(0x202))/0x8*(-parseInt(_0xe29a15(0x1e2))/0x9)+parseInt(_0xe29a15(0x1f2))/0xa;if(_0x190ad6===_0x19e483)break;else _0x5483fd['push'](_0x5483fd['shift']());}catch(_0x3f0670){_0x5483fd['push'](_0x5483fd['shift']());}}}(a100_0x5ba1,0x361cd));import{deleteEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';function a100_0x2da2(_0x38202c,_0x2066e9){_0x38202c=_0x38202c-0x1e1;const _0x5ba197=a100_0x5ba1();let _0x2da285=_0x5ba197[_0x38202c];return _0x2da285;}import{asDryRunResult}from'../../commands/common/dry-run.js';function a100_0x5ba1(){const _0x1dbadc=['195692hayMXA','kb_expected_version_invalid','isSafeInteger','no_op','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','/admin/knowledge-base/delete','unshift','snapshotHash','Non-atomic\x20preflight\x20assertion\x20for\x20the\x20current\x20version','company','90CZSVTq','\x20remains\x20readable\x20after\x20delete.','verified','1347bGnDPB','--expected-version\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','2189090xEBVSe','high-risk-write','992GLllXH','\x20--format\x20compress','31760zOYkyf','expected-version','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','1276247SGxwIT','Soft-delete\x20a\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','delete','already_absent','appCode','Company\x20knowledge\x20base\x20','POST','\x20is\x20already\x20absent;\x20no\x20delete\x20request\x20was\x20made','892448IeAAbH','8SLerOM','rabetbase\x20kb\x20detail\x20--id\x20','Delete\x20response\x20was\x20unavailable;\x20exact-ID\x20not-found\x20readback\x20verified\x20database\x20soft\x20deletion\x20without\x20resubmitting.','flag','number','758133VCvBFP'];a100_0x5ba1=function(){return _0x1dbadc;};return a100_0x5ba1();}import{assertExpectedKbVersion,getKbOrNull,kbError,projectKb,readKbId,requireKbExplicitYes,verifyKbMutationReadback}from'../../commands/kb/shared.js';const DELETE_PATH=a100_0x1d2fa9(0x1e8),RAG_WARNING='Database\x20soft\x20deletion\x20was\x20verified;\x20asynchronous\x20RAG\x20cleanup\x20was\x20not\x20verified\x20by\x20the\x20CLI.',NON_ATOMIC_WARNING='--expected-version\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20delete\x20contract\x20has\x20no\x20version\x20predicate.';function readExpectedVersion(_0xdd20a3){const _0x5bba78=a100_0x1d2fa9,_0x4aecbe=_0xdd20a3[_0x5bba78(0x205)](_0x5bba78(0x1f7));if(_0x4aecbe===undefined)return undefined;const _0x3d086f=Number(_0x4aecbe);if(!Number[_0x5bba78(0x1e5)](_0x3d086f)||_0x3d086f<0x0)throw kbError(_0x5bba78(0x1e4),_0x5bba78(0x1f1));return _0x3d086f;}function noOpData(_0x92f4a8,_0xab7711,_0x87e68){const _0x40eeea=a100_0x1d2fa9;return{'operation':_0x40eeea(0x1e6),'selector':{'id':_0xab7711,'scope':_0x40eeea(0x1ec),'appCode':_0x92f4a8[_0x40eeea(0x1fd)]},'before':null,'after':null,'dryRun':_0x87e68,'deleteCalled':![],'backend':{'method':_0x40eeea(0x1ff),'path':DELETE_PATH},'warnings':[],'verification':{'status':_0x40eeea(0x1fc),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]}}};}export const kbDelete={'service':'kb','command':'delete','description':a100_0x1d2fa9(0x1fa),'risk':a100_0x1d2fa9(0x1f3),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':'number','required':!![],'description':'Company\x20knowledge-base\x20id'},{'name':'expected-version','type':a100_0x1d2fa9(0x1e1),'required':![],'description':a100_0x1d2fa9(0x1eb)}],async 'validate'(_0x1def49){readKbId(_0x1def49),readExpectedVersion(_0x1def49),requireKbExplicitYes(_0x1def49);},async 'dryRun'(_0x19163f){const _0x4b27b7=a100_0x1d2fa9,_0x3c2c6b=readKbId(_0x19163f),_0x1dc317=readExpectedVersion(_0x19163f),_0x1e4cc6=await getKbOrNull(_0x19163f,_0x3c2c6b);if(!_0x1e4cc6)return asDryRunResult(noOpData(_0x19163f,_0x3c2c6b,!![]),{'method':_0x4b27b7(0x1ff),'url':DELETE_PATH});assertExpectedKbVersion(_0x1e4cc6,_0x1dc317);const _0x709051=projectKb(_0x1e4cc6),_0x136f08=[RAG_WARNING];if(_0x1dc317!==undefined)_0x136f08[_0x4b27b7(0x1e9)](NON_ATOMIC_WARNING);return asDryRunResult({'operation':_0x4b27b7(0x1fb),'selector':{'id':_0x709051['id'],'scope':_0x4b27b7(0x1ec),'appCode':_0x709051['appCode']},'before':_0x709051,'after':null,'dryRun':!![],'deleteCalled':![],'backend':{'method':_0x4b27b7(0x1ff),'path':DELETE_PATH},'warnings':_0x136f08,'verification':{'expectedVersion':_0x1dc317??null,'atomicCompareAndSet':![],'snapshotHash':_0x709051[_0x4b27b7(0x1ea)],'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'lookupCommand':_0x4b27b7(0x203)+_0x709051['id']+_0x4b27b7(0x1f5)}},{'method':_0x4b27b7(0x1ff),'url':DELETE_PATH});},async 'execute'(_0x4caf10){const _0x71333=a100_0x1d2fa9;requireKbExplicitYes(_0x4caf10);const _0x1436db=readKbId(_0x4caf10),_0x5c90d4=readExpectedVersion(_0x4caf10),_0x307c86=await getKbOrNull(_0x4caf10,_0x1436db);if(!_0x307c86)return{'ok':!![],'data':noOpData(_0x4caf10,_0x1436db,![]),'message':_0x71333(0x1fe)+_0x1436db+_0x71333(0x200)};assertExpectedKbVersion(_0x307c86,_0x5c90d4);const _0x2e6af6=projectKb(_0x307c86);let _0x24da40=![];try{await deleteEnterpriseKnowledgeBase(_0x4caf10['cookie'],_0x1436db);}catch(_0x299e6a){if(!isPlatformTransportFailure(_0x299e6a))throw _0x299e6a;_0x24da40=!![];}const _0x67167e=await verifyKbMutationReadback(_0x71333(0x1fb),_0x24da40,()=>getKbOrNull(_0x4caf10,_0x1436db));if(_0x67167e)throw kbError(_0x24da40?'kb_delete_outcome_unknown':'kb_verification_failed',_0x71333(0x1fe)+_0x1436db+_0x71333(0x1ee),_0x71333(0x1f8)+_0x1436db+_0x71333(0x1e7));const _0x4463db=[RAG_WARNING];if(_0x5c90d4!==undefined)_0x4463db['unshift'](NON_ATOMIC_WARNING);return _0x24da40&&_0x4463db[_0x71333(0x1e9)](_0x71333(0x204)),{'ok':!![],'data':{'operation':_0x71333(0x1fb),'selector':{'id':_0x2e6af6['id'],'scope':_0x71333(0x1ec),'appCode':_0x2e6af6[_0x71333(0x1fd)]},'before':_0x2e6af6,'after':null,'dryRun':![],'deleteCalled':!![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':_0x4463db,'verification':{'status':_0x71333(0x1ef),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'recoveredAfterUnknownResponse':_0x24da40,'lookupCommand':'rabetbase\x20kb\x20detail\x20--id\x20'+_0x2e6af6['id']+_0x71333(0x1f5)}},'message':'Soft-deleted\x20company\x20knowledge\x20base\x20'+_0x2e6af6['id']};}};
@@ -1 +1 @@
1
- function a101_0x9ba4(_0x307ab8,_0x3a45f7){_0x307ab8=_0x307ab8-0x149;const _0xe2837b=a101_0xe283();let _0x9ba49b=_0xe2837b[_0x307ab8];return _0x9ba49b;}const a101_0x3755fc=a101_0x9ba4;(function(_0x101c3c,_0x4f26d2){const _0x32650d=a101_0x9ba4,_0x20a14f=_0x101c3c();while(!![]){try{const _0x196ef6=parseInt(_0x32650d(0x14e))/0x1+-parseInt(_0x32650d(0x151))/0x2+parseInt(_0x32650d(0x153))/0x3+parseInt(_0x32650d(0x14a))/0x4+-parseInt(_0x32650d(0x154))/0x5*(parseInt(_0x32650d(0x149))/0x6)+parseInt(_0x32650d(0x14c))/0x7*(-parseInt(_0x32650d(0x14f))/0x8)+parseInt(_0x32650d(0x14d))/0x9*(parseInt(_0x32650d(0x150))/0xa);if(_0x196ef6===_0x4f26d2)break;else _0x20a14f['push'](_0x20a14f['shift']());}catch(_0x6e2181){_0x20a14f['push'](_0x20a14f['shift']());}}}(a101_0xe283,0x2e980));function a101_0xe283(){const _0x43faab=['10bCtmir','123016wwefLN','detail','210546BdbWvi','70DJBeHd','Loaded\x20company\x20knowledge\x20base\x20','read','17322ZgmDGo','734696QHJXev','Company\x20knowledge-base\x20id','375823AUyUwY','1594548VjexRF','130191XyPbtb','40avggMI'];a101_0xe283=function(){return _0x43faab;};return a101_0xe283();}import{projectKb,readKbId,requireKb}from'../../commands/kb/shared.js';export const kbDetail={'service':'kb','command':a101_0x3755fc(0x152),'description':'Show\x20one\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','risk':a101_0x3755fc(0x156),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':'number','required':!![],'description':a101_0x3755fc(0x14b)}],async 'validate'(_0x238c83){readKbId(_0x238c83);},async 'execute'(_0x35b4ab){const _0x5c1c79=a101_0x3755fc,_0x4dafb9=readKbId(_0x35b4ab),_0x551df3=await requireKb(_0x35b4ab,_0x4dafb9);return{'ok':!![],'data':{'knowledgeBase':projectKb(_0x551df3)},'message':_0x5c1c79(0x155)+_0x4dafb9};}};
1
+ function a101_0x12b5(_0x58d70b,_0x21e61e){_0x58d70b=_0x58d70b-0x154;const _0x1d8a2a=a101_0x1d8a();let _0x12b550=_0x1d8a2a[_0x58d70b];return _0x12b550;}const a101_0x211379=a101_0x12b5;(function(_0x4ea6d0,_0x1a4318){const _0x45d433=a101_0x12b5,_0x25afdc=_0x4ea6d0();while(!![]){try{const _0x2856a9=parseInt(_0x45d433(0x155))/0x1+-parseInt(_0x45d433(0x156))/0x2*(parseInt(_0x45d433(0x15f))/0x3)+parseInt(_0x45d433(0x15b))/0x4*(parseInt(_0x45d433(0x15e))/0x5)+parseInt(_0x45d433(0x15c))/0x6*(-parseInt(_0x45d433(0x159))/0x7)+parseInt(_0x45d433(0x158))/0x8*(-parseInt(_0x45d433(0x15a))/0x9)+-parseInt(_0x45d433(0x154))/0xa+parseInt(_0x45d433(0x160))/0xb;if(_0x2856a9===_0x1a4318)break;else _0x25afdc['push'](_0x25afdc['shift']());}catch(_0x13de71){_0x25afdc['push'](_0x25afdc['shift']());}}}(a101_0x1d8a,0x9bab9));import{projectKb,readKbId,requireKb}from'../../commands/kb/shared.js';function a101_0x1d8a(){const _0x158249=['20489568DwrqDF','Show\x20one\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','Loaded\x20company\x20knowledge\x20base\x20','6566760GtalZi','434741xOEEoO','6jdyRln','number','104mBJYSt','287vOiCUO','278595rddkMc','28XteKyH','121782tYMrFv','read','718255TEQwGf','774093RJaWGW'];a101_0x1d8a=function(){return _0x158249;};return a101_0x1d8a();}export const kbDetail={'service':'kb','command':'detail','description':a101_0x211379(0x161),'risk':a101_0x211379(0x15d),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a101_0x211379(0x157),'required':!![],'description':'Company\x20knowledge-base\x20id'}],async 'validate'(_0x413aeb){readKbId(_0x413aeb);},async 'execute'(_0x5333cc){const _0x40537c=a101_0x211379,_0x2cd710=readKbId(_0x5333cc),_0x134007=await requireKb(_0x5333cc,_0x2cd710);return{'ok':!![],'data':{'knowledgeBase':projectKb(_0x134007)},'message':_0x40537c(0x162)+_0x2cd710};}};
@@ -1 +1 @@
1
- (function(_0x2f3dd3,_0x58e4b2){const _0x20e7e1=a102_0x5828,_0x3b98c5=_0x2f3dd3();while(!![]){try{const _0x3a0f31=-parseInt(_0x20e7e1(0x1bb))/0x1*(parseInt(_0x20e7e1(0x1bc))/0x2)+parseInt(_0x20e7e1(0x1bd))/0x3+parseInt(_0x20e7e1(0x1bf))/0x4*(parseInt(_0x20e7e1(0x1b7))/0x5)+-parseInt(_0x20e7e1(0x1be))/0x6*(-parseInt(_0x20e7e1(0x1b8))/0x7)+parseInt(_0x20e7e1(0x1b6))/0x8*(-parseInt(_0x20e7e1(0x1ba))/0x9)+parseInt(_0x20e7e1(0x1b9))/0xa*(-parseInt(_0x20e7e1(0x1b5))/0xb)+parseInt(_0x20e7e1(0x1c0))/0xc;if(_0x3a0f31===_0x58e4b2)break;else _0x3b98c5['push'](_0x3b98c5['shift']());}catch(_0x512779){_0x3b98c5['push'](_0x3b98c5['shift']());}}}(a102_0x338b,0x38b8b));import{kbList}from'../../commands/kb/list.js';import{kbDetail}from'../../commands/kb/detail.js';import{kbCreate}from'../../commands/kb/create.js';import{kbUpdate}from'../../commands/kb/update.js';import{kbDelete}from'../../commands/kb/delete.js';function a102_0x338b(){const _0x211cf6=['5wVvxWX','7UvUqGc','70Auhfxd','144uZDMIg','11yKnSfB','44706ZPthmw','171123UAIGKr','1375032YPQEFO','1328692Rrgnwe','5851200GxTyYm','286572JXBunQ','222704LZceTU'];a102_0x338b=function(){return _0x211cf6;};return a102_0x338b();}function a102_0x5828(_0x42aa0e,_0x4840ef){_0x42aa0e=_0x42aa0e-0x1b5;const _0x338b47=a102_0x338b();let _0x58280a=_0x338b47[_0x42aa0e];return _0x58280a;}export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbDelete];
1
+ (function(_0xa5ba11,_0x3c2904){const _0x55a12f=a102_0xdbf2,_0x25b7bb=_0xa5ba11();while(!![]){try{const _0x128e41=-parseInt(_0x55a12f(0x1f6))/0x1+-parseInt(_0x55a12f(0x1fa))/0x2+parseInt(_0x55a12f(0x1f7))/0x3*(-parseInt(_0x55a12f(0x1f8))/0x4)+parseInt(_0x55a12f(0x1f9))/0x5*(parseInt(_0x55a12f(0x1f3))/0x6)+-parseInt(_0x55a12f(0x1f4))/0x7+parseInt(_0x55a12f(0x1f5))/0x8*(parseInt(_0x55a12f(0x1fd))/0x9)+-parseInt(_0x55a12f(0x1fb))/0xa*(-parseInt(_0x55a12f(0x1fc))/0xb);if(_0x128e41===_0x3c2904)break;else _0x25b7bb['push'](_0x25b7bb['shift']());}catch(_0x1734d8){_0x25b7bb['push'](_0x25b7bb['shift']());}}}(a102_0x58b5,0x1d5d4));function a102_0x58b5(){const _0x4130f8=['841960cZnUst','40xRHPLR','139841MyvRxb','24DcIaQU','6104uLpPxB','280rGkXXA','380274cVkFgC','81830WrtajO','517dCZzOm','306153tDTChA','3006HzrlxA'];a102_0x58b5=function(){return _0x4130f8;};return a102_0x58b5();}import{kbList}from'../../commands/kb/list.js';import{kbDetail}from'../../commands/kb/detail.js';import{kbCreate}from'../../commands/kb/create.js';import{kbUpdate}from'../../commands/kb/update.js';function a102_0xdbf2(_0x53e4cc,_0x212c9f){_0x53e4cc=_0x53e4cc-0x1f3;const _0x58b5bf=a102_0x58b5();let _0xdbf25=_0x58b5bf[_0x53e4cc];return _0xdbf25;}import{kbDelete}from'../../commands/kb/delete.js';export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbDelete];
@@ -1 +1 @@
1
- const a103_0x17d02e=a103_0x55aa;(function(_0x9527f0,_0x209253){const _0xf06d1c=a103_0x55aa,_0x2eb1c7=_0x9527f0();while(!![]){try{const _0x1e137a=parseInt(_0xf06d1c(0x1f2))/0x1+parseInt(_0xf06d1c(0x1ef))/0x2+parseInt(_0xf06d1c(0x1e3))/0x3+-parseInt(_0xf06d1c(0x1e8))/0x4+parseInt(_0xf06d1c(0x1e2))/0x5*(parseInt(_0xf06d1c(0x1e9))/0x6)+-parseInt(_0xf06d1c(0x1df))/0x7+parseInt(_0xf06d1c(0x1ed))/0x8*(-parseInt(_0xf06d1c(0x1f0))/0x9);if(_0x1e137a===_0x209253)break;else _0x2eb1c7['push'](_0x2eb1c7['shift']());}catch(_0x46aef7){_0x2eb1c7['push'](_0x2eb1c7['shift']());}}}(a103_0x2f3d,0xbe97f));function a103_0x2f3d(){const _0x39000c=['1625208mFBNDZ','117090oXCXAC','Filter\x20by\x20knowledge-base\x20title','read','map','8344OtPINW','appCode','2545576oWIPXR','8199qpiENG','list','884680dIqiCi','10205531yGcrxf','string','trim','35StCXcs','3903018KxEcXy','\x20company\x20knowledge\x20base(s)\x20for\x20','title','length','List\x20company\x20knowledge\x20bases\x20for\x20the\x20resolved\x20app'];a103_0x2f3d=function(){return _0x39000c;};return a103_0x2f3d();}function a103_0x55aa(_0x30d4ac,_0x5651e){_0x30d4ac=_0x30d4ac-0x1df;const _0x2f3d29=a103_0x2f3d();let _0x55aa36=_0x2f3d29[_0x30d4ac];return _0x55aa36;}import{fetchAllCompanyKnowledgeBases,projectKb}from'../../commands/kb/shared.js';export const kbList={'service':'kb','command':a103_0x17d02e(0x1f1),'description':a103_0x17d02e(0x1e7),'risk':a103_0x17d02e(0x1eb),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a103_0x17d02e(0x1e5),'type':a103_0x17d02e(0x1e0),'required':![],'description':a103_0x17d02e(0x1ea)}],async 'execute'(_0x215f41){const _0x8339b3=a103_0x17d02e,_0x5f1757=_0x215f41['str'](_0x8339b3(0x1e5))[_0x8339b3(0x1e1)](),_0x136b60=await fetchAllCompanyKnowledgeBases(_0x215f41,{..._0x5f1757?{'title':_0x5f1757}:{}}),_0x3b9a25=_0x136b60[_0x8339b3(0x1ec)](projectKb);return{'ok':!![],'data':{'total':_0x3b9a25[_0x8339b3(0x1e6)],'knowledgeBases':_0x3b9a25},'message':'Found\x20'+_0x3b9a25[_0x8339b3(0x1e6)]+_0x8339b3(0x1e4)+_0x215f41[_0x8339b3(0x1ee)]};}};
1
+ const a103_0x1e9da5=a103_0x31d2;(function(_0x162145,_0xbb4b58){const _0x5b0eb9=a103_0x31d2,_0x13ec0b=_0x162145();while(!![]){try{const _0x4083aa=parseInt(_0x5b0eb9(0x93))/0x1*(-parseInt(_0x5b0eb9(0x8f))/0x2)+-parseInt(_0x5b0eb9(0x95))/0x3+-parseInt(_0x5b0eb9(0x97))/0x4+parseInt(_0x5b0eb9(0x96))/0x5+-parseInt(_0x5b0eb9(0x9d))/0x6+-parseInt(_0x5b0eb9(0x9a))/0x7*(-parseInt(_0x5b0eb9(0x91))/0x8)+parseInt(_0x5b0eb9(0x99))/0x9*(parseInt(_0x5b0eb9(0x90))/0xa);if(_0x4083aa===_0xbb4b58)break;else _0x13ec0b['push'](_0x13ec0b['shift']());}catch(_0x4a35b0){_0x13ec0b['push'](_0x13ec0b['shift']());}}}(a103_0x2ac6,0x5778e));import{fetchAllCompanyKnowledgeBases,projectKb}from'../../commands/kb/shared.js';export const kbList={'service':'kb','command':'list','description':a103_0x1e9da5(0x9f),'risk':a103_0x1e9da5(0x94),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a103_0x1e9da5(0x9b),'type':a103_0x1e9da5(0xa2),'required':![],'description':a103_0x1e9da5(0x98)}],async 'execute'(_0x5ebe4f){const _0x1946f7=a103_0x1e9da5,_0x570c5f=_0x5ebe4f[_0x1946f7(0x9e)](_0x1946f7(0x9b))[_0x1946f7(0xa3)](),_0x1f34b9=await fetchAllCompanyKnowledgeBases(_0x5ebe4f,{..._0x570c5f?{'title':_0x570c5f}:{}}),_0xfd986d=_0x1f34b9[_0x1946f7(0x9c)](projectKb);return{'ok':!![],'data':{'total':_0xfd986d[_0x1946f7(0x92)],'knowledgeBases':_0xfd986d},'message':_0x1946f7(0xa0)+_0xfd986d[_0x1946f7(0x92)]+_0x1946f7(0xa4)+_0x5ebe4f[_0x1946f7(0xa1)]};}};function a103_0x31d2(_0x3e968b,_0x67aef9){_0x3e968b=_0x3e968b-0x8f;const _0x2ac605=a103_0x2ac6();let _0x31d27a=_0x2ac605[_0x3e968b];return _0x31d27a;}function a103_0x2ac6(){const _0xc59c24=['appCode','string','trim','\x20company\x20knowledge\x20base(s)\x20for\x20','2IGKESq','58010TqHWDK','434344rmmuCU','length','405079BWXLSg','read','398157OPAZro','3302850NTervW','1034420VwlvzM','Filter\x20by\x20knowledge-base\x20title','1206bkPmXQ','35rUoFIJ','title','map','3328080taKEeT','str','List\x20company\x20knowledge\x20bases\x20for\x20the\x20resolved\x20app','Found\x20'];a103_0x2ac6=function(){return _0xc59c24;};return a103_0x2ac6();}