@lovrabet/rabetbase-cli 2.2.5-beta.1 → 2.3.1-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. package/README.md +1 -1
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/add.js +1 -1
  21. package/lib/commands/app/discover.js +1 -1
  22. package/lib/commands/app/index.js +1 -1
  23. package/lib/commands/app/list.js +1 -1
  24. package/lib/commands/app/remove.js +1 -1
  25. package/lib/commands/app/shared.js +1 -1
  26. package/lib/commands/app/use.js +1 -1
  27. package/lib/commands/app-config/delete.js +1 -1
  28. package/lib/commands/app-config/get.js +1 -1
  29. package/lib/commands/app-config/index.js +1 -1
  30. package/lib/commands/app-config/list.js +1 -1
  31. package/lib/commands/app-config/set.js +1 -1
  32. package/lib/commands/app-config/shared.js +1 -1
  33. package/lib/commands/auth/index.js +1 -1
  34. package/lib/commands/bff/create.js +1 -1
  35. package/lib/commands/bff/delete.js +1 -1
  36. package/lib/commands/bff/detail.js +1 -1
  37. package/lib/commands/bff/index.js +1 -1
  38. package/lib/commands/bff/list.js +1 -1
  39. package/lib/commands/bff/pull.js +1 -1
  40. package/lib/commands/bff/push.js +1 -1
  41. package/lib/commands/bff/status.js +1 -1
  42. package/lib/commands/cli-skill/index.js +1 -0
  43. package/lib/commands/cli-update.js +1 -1
  44. package/lib/commands/codegen/index.js +1 -1
  45. package/lib/commands/codegen/sdk.js +1 -1
  46. package/lib/commands/codegen/sql.js +1 -1
  47. package/lib/commands/common/app-selector.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/validate.js +1 -1
  50. package/lib/commands/config/get.js +1 -1
  51. package/lib/commands/config/index.js +1 -1
  52. package/lib/commands/config/list.js +1 -1
  53. package/lib/commands/config/set.js +1 -1
  54. package/lib/commands/config/shared.js +1 -1
  55. package/lib/commands/data/filter.js +1 -1
  56. package/lib/commands/data/getOne.js +1 -1
  57. package/lib/commands/data/index.js +1 -1
  58. package/lib/commands/data/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/capability.js +1 -1
  61. package/lib/commands/dataset/delete.js +1 -1
  62. package/lib/commands/dataset/detail.js +1 -1
  63. package/lib/commands/dataset/extend-update.js +1 -1
  64. package/lib/commands/dataset/field-update.js +1 -1
  65. package/lib/commands/dataset/index.js +1 -1
  66. package/lib/commands/dataset/list.js +1 -1
  67. package/lib/commands/dataset/operations.js +1 -1
  68. package/lib/commands/dataset/relation-create.js +1 -1
  69. package/lib/commands/dataset/relation-delete.js +1 -1
  70. package/lib/commands/dataset/relation-shared.js +1 -1
  71. package/lib/commands/dataset/relation-update.js +1 -1
  72. package/lib/commands/dataset/relations.js +1 -1
  73. package/lib/commands/dataset/rename.js +1 -1
  74. package/lib/commands/dataset/restore.js +1 -0
  75. package/lib/commands/db/analyze-cancel.js +1 -1
  76. package/lib/commands/db/analyze-start.js +1 -1
  77. package/lib/commands/db/analyze-status.js +1 -1
  78. package/lib/commands/db/create.js +1 -1
  79. package/lib/commands/db/delete.js +1 -1
  80. package/lib/commands/db/detail.js +1 -1
  81. package/lib/commands/db/diff.js +1 -1
  82. package/lib/commands/db/index.js +1 -1
  83. package/lib/commands/db/list.js +1 -1
  84. package/lib/commands/db/shared.js +1 -1
  85. package/lib/commands/db/tables.js +1 -1
  86. package/lib/commands/db/test.js +1 -1
  87. package/lib/commands/db/update.js +1 -1
  88. package/lib/commands/doctor.js +1 -1
  89. package/lib/commands/init/index.js +1 -1
  90. package/lib/commands/issue/index.js +1 -1
  91. package/lib/commands/issue/nudge.js +1 -1
  92. package/lib/commands/issue/report.js +1 -1
  93. package/lib/commands/issue/shared.js +1 -1
  94. package/lib/commands/logs/index.js +1 -1
  95. package/lib/commands/menu/index.js +1 -1
  96. package/lib/commands/menu/list.js +1 -1
  97. package/lib/commands/menu/shared/compare-table.js +1 -1
  98. package/lib/commands/menu/shared/index.js +1 -1
  99. package/lib/commands/menu/shared/inquirer.js +1 -1
  100. package/lib/commands/menu/shared/local-pages.js +1 -1
  101. package/lib/commands/menu/shared/logic.js +1 -1
  102. package/lib/commands/menu/shared/service.js +1 -1
  103. package/lib/commands/menu/shared/sync-core.js +1 -1
  104. package/lib/commands/menu/shared/update-core.js +1 -1
  105. package/lib/commands/menu/shared/valid-url.js +1 -1
  106. package/lib/commands/menu/sync.js +1 -1
  107. package/lib/commands/menu/update.js +1 -1
  108. package/lib/commands/page/generate-start.js +1 -1
  109. package/lib/commands/page/generate-status.js +1 -1
  110. package/lib/commands/page/index.js +1 -1
  111. package/lib/commands/page/pull.js +1 -1
  112. package/lib/commands/page/push.js +1 -1
  113. package/lib/commands/page/relation-audit.js +1 -1
  114. package/lib/commands/page/shared.js +1 -1
  115. package/lib/commands/page/standard-page-status.js +1 -1
  116. package/lib/commands/page/sync.js +1 -1
  117. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  118. package/lib/commands/project/create/format-elapsed.js +1 -1
  119. package/lib/commands/project/create/main.js +1 -1
  120. package/lib/commands/project/create/non-interactive.js +1 -1
  121. package/lib/commands/project/create/project-template-path.js +1 -1
  122. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  123. package/lib/commands/project/create/use-format-code.js +1 -1
  124. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  125. package/lib/commands/project/index.js +1 -1
  126. package/lib/commands/project/init.js +1 -1
  127. package/lib/commands/project/upgrade.js +1 -1
  128. package/lib/commands/registry.js +1 -1
  129. package/lib/commands/run/index.js +1 -1
  130. package/lib/commands/schema.js +1 -1
  131. package/lib/commands/sql/create.js +1 -1
  132. package/lib/commands/sql/delete.js +1 -1
  133. package/lib/commands/sql/detail.js +1 -1
  134. package/lib/commands/sql/exec.js +1 -1
  135. package/lib/commands/sql/index.js +1 -1
  136. package/lib/commands/sql/list.js +1 -1
  137. package/lib/commands/sql/pull.js +1 -1
  138. package/lib/commands/sql/push.js +1 -1
  139. package/lib/commands/sql/save.js +1 -1
  140. package/lib/commands/sql/shared.js +1 -1
  141. package/lib/commands/sql/status.js +1 -1
  142. package/lib/commands/sql/validate.js +1 -1
  143. package/lib/commands/workspace/index.js +1 -1
  144. package/lib/config/schema.js +1 -1
  145. package/lib/constant/cdn.js +1 -1
  146. package/lib/constant/cli.js +1 -1
  147. package/lib/constant/defaults.js +1 -1
  148. package/lib/constant/domain.js +1 -1
  149. package/lib/constant/env.js +1 -1
  150. package/lib/constant/output.js +1 -1
  151. package/lib/constant/paths.js +1 -1
  152. package/lib/constant/risk.js +1 -1
  153. package/lib/context/app-resolver.js +1 -1
  154. package/lib/context/auth-resolver.js +1 -1
  155. package/lib/context/config-loader.js +1 -1
  156. package/lib/context.js +1 -1
  157. package/lib/core/alias-resolver.js +1 -1
  158. package/lib/core/api-client.js +1 -1
  159. package/lib/core/bff/config.js +1 -1
  160. package/lib/core/bff/file-system.js +1 -1
  161. package/lib/core/bff/hash.js +1 -1
  162. package/lib/core/bff/lock.js +1 -1
  163. package/lib/core/bff/utils.js +1 -1
  164. package/lib/core/db-resolver.js +1 -1
  165. package/lib/core/page/file-system.js +1 -1
  166. package/lib/core/page/hash.js +1 -1
  167. package/lib/core/page/lock.js +1 -1
  168. package/lib/core/sql-sync/config.js +1 -1
  169. package/lib/core/sql-sync/file-system.js +1 -1
  170. package/lib/core/sql-sync/hash.js +1 -1
  171. package/lib/core/sql-sync/lock.js +1 -1
  172. package/lib/core/sql-sync/utils.js +1 -1
  173. package/lib/core/sql-validator.js +1 -1
  174. package/lib/errors.js +1 -1
  175. package/lib/framework/build-all-flags.js +1 -1
  176. package/lib/framework/flags.js +1 -1
  177. package/lib/framework/help.js +1 -1
  178. package/lib/framework/index.js +1 -1
  179. package/lib/framework/output.js +1 -1
  180. package/lib/framework/response.js +1 -1
  181. package/lib/framework/runner-alias.js +1 -1
  182. package/lib/framework/runner.js +1 -1
  183. package/lib/framework/schema-export.js +1 -1
  184. package/lib/framework/types.js +1 -1
  185. package/lib/generated/build-info.js +1 -1
  186. package/lib/help.js +1 -1
  187. package/lib/skills/main.js +1 -1
  188. package/lib/skills/npx-skills-add.js +1 -1
  189. package/lib/telemetry/cli-command-trace.js +1 -1
  190. package/lib/telemetry/cli-help-trace.js +1 -1
  191. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  192. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  193. package/lib/telemetry/send-cli-trace-log.js +1 -1
  194. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  195. package/lib/utils/ai_config.js +1 -1
  196. package/lib/utils/apply-jq-filter.js +1 -1
  197. package/lib/utils/cdn-config.js +1 -1
  198. package/lib/utils/check-sdk-version.js +1 -1
  199. package/lib/utils/cli-version-check.js +1 -1
  200. package/lib/utils/cli-version-policy.js +1 -1
  201. package/lib/utils/config.js +1 -1
  202. package/lib/utils/copy-directory.js +1 -1
  203. package/lib/utils/entity-with-id.js +1 -1
  204. package/lib/utils/file-utils.js +1 -1
  205. package/lib/utils/guides-cdn.js +1 -1
  206. package/lib/utils/http-client.js +1 -1
  207. package/lib/utils/is-non-interactive.js +1 -1
  208. package/lib/utils/logger.js +1 -1
  209. package/lib/utils/params.js +1 -1
  210. package/lib/utils/platform.js +1 -1
  211. package/lib/utils/rules-cdn.js +1 -1
  212. package/lib/utils/sleep.js +1 -1
  213. package/lib/utils/template-replacer.js +1 -1
  214. package/lib/utils/update-notice.js +1 -1
  215. package/lib/utils/version.js +1 -1
  216. package/lib/utils/with-active-cookie.js +1 -1
  217. package/lib/utils/write-cli-side-channel.js +1 -1
  218. package/package.json +1 -1
  219. package/templates/README.md +15 -25
  220. package/templates/generate-api/api.ts.tpl +2 -2
  221. package/templates/generate-api/client.ts.tpl +2 -2
  222. package/templates/projects/sub-app-react-demo/CHANGELOG.md +15 -1
  223. package/templates/projects/sub-app-react-demo/README.md +159 -231
  224. package/templates/projects/sub-app-react-demo/docs/quick-start.md +145 -426
  225. package/templates/projects/sub-app-react-demo/src/api/api.ts +8 -65
  226. package/templates/projects/sub-app-react-demo/src/api/client.ts +10 -42
  227. package/templates/projects/sub-app-react-demo/src/components/demo-page-container/DemoPageContainer.module.css +28 -0
  228. package/templates/projects/sub-app-react-demo/src/components/demo-page-container/DemoPageContainer.tsx +55 -0
  229. package/templates/projects/sub-app-react-demo/src/layouts/MainLayout.tsx +6 -9
  230. package/templates/projects/sub-app-react-demo/src/main.tsx +10 -6
  231. package/templates/projects/sub-app-react-demo/src/pages/dashboard/index.tsx +3 -5
  232. package/templates/projects/sub-app-react-demo/src/pages/data-screen/index.tsx +153 -148
  233. package/templates/projects/sub-app-react-demo/src/pages/index.module.css +500 -0
  234. package/templates/projects/sub-app-react-demo/src/pages/index.tsx +517 -343
  235. package/templates/projects/sub-app-react-demo/src/pages/sdk-demo/index.tsx +325 -242
  236. package/templates/projects/sub-app-react-demo/src/pages/workbench/index.module.css +8 -6
  237. package/templates/projects/sub-app-react-demo/src/pages/workbench/index.tsx +174 -87
  238. package/templates/projects/sub-app-react-demo/src/style.css +19 -3
  239. package/templates/projects/sub-app-react-demo/src/vite-env.d.ts +1 -1
  240. package/lib/commands/skill/index.js +0 -1
  241. package/templates/projects/sub-app-react-demo/docs/API_RULE_CHANGE.md +0 -212
@@ -1 +1 @@
1
- function a74_0x1e21(_0x4a81d7,_0x100661){_0x4a81d7=_0x4a81d7-0xcf;const _0x1ab205=a74_0x1ab2();let _0x1e2145=_0x1ab205[_0x4a81d7];return _0x1e2145;}const a74_0x1583af=a74_0x1e21;(function(_0x48e925,_0x3bcc25){const _0x151b65=a74_0x1e21,_0x22a391=_0x48e925();while(!![]){try{const _0x46a6c2=parseInt(_0x151b65(0xe3))/0x1+parseInt(_0x151b65(0xed))/0x2+parseInt(_0x151b65(0xcf))/0x3+-parseInt(_0x151b65(0xde))/0x4+parseInt(_0x151b65(0xf4))/0x5+parseInt(_0x151b65(0xd7))/0x6+-parseInt(_0x151b65(0xe4))/0x7*(parseInt(_0x151b65(0xe1))/0x8);if(_0x46a6c2===_0x3bcc25)break;else _0x22a391['push'](_0x22a391['shift']());}catch(_0x10afe6){_0x22a391['push'](_0x22a391['shift']());}}}(a74_0x1ab2,0x3a297));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';function a74_0x1ab2(){const _0x3f38d2=['Database\x20username','autostart','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','/smartapi/dblink/create','Database\x20password','1050160dxofLq','databasePage','dburl','8414232uvuQGN','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','212421kqzlIx','7GhDegv','POST','dbdesc','Create\x20dblink','username','dbtype','boolean','[redacted]','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','583904ZUojwM','password','dbname','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','dbversion','dbparam','Created\x20db\x20link\x20','1188395nJCaPT','Host\x20and\x20port:\x20host:port','trim','1013562KLztGw','Extra\x20JDBC-style\x20connection\x20parameters\x20string','bool','appCode','string','str','8.0','After\x20create,\x20start\x20schema\x20analysis','2835864MfCuVq','\x20and\x20started\x20analysis'];a74_0x1ab2=function(){return _0x3f38d2;};return a74_0x1ab2();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':'create','description':'Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','risk':'write','flags':[APPCODE_FLAG_OPTIONAL,{'name':a74_0x1583af(0xef),'type':a74_0x1583af(0xd3),'required':!![],'description':'Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server'},DB_TYPE_FLAG,{'name':a74_0x1583af(0xf1),'type':'string','description':a74_0x1583af(0xec),'default':a74_0x1583af(0xd5)},{'name':a74_0x1583af(0xe0),'type':a74_0x1583af(0xd3),'required':!![],'description':a74_0x1583af(0xf5)},{'name':a74_0x1583af(0xe8),'type':a74_0x1583af(0xd3),'required':!![],'description':a74_0x1583af(0xd9)},{'name':'password','type':a74_0x1583af(0xd3),'required':!![],'description':a74_0x1583af(0xdd)},{'name':a74_0x1583af(0xf2),'type':a74_0x1583af(0xd3),'description':a74_0x1583af(0xd0)},{'name':a74_0x1583af(0xe6),'type':a74_0x1583af(0xd3),'description':'Human-readable\x20description'},{'name':a74_0x1583af(0xda),'type':a74_0x1583af(0xea),'description':a74_0x1583af(0xd6),'default':![]}],async 'validate'(_0x4ee651){const _0x204803=a74_0x1583af,_0x304a83=_0x4ee651[_0x204803(0xd4)](_0x204803(0xe0))[_0x204803(0xf6)]();if(!validateDbUrl(_0x304a83))throw CliErrors['validation'](_0x204803(0xe2)+_0x304a83+'\x22',_0x204803(0xf0));},async 'dryRun'(_0x1d716d){const _0x503b1e=a74_0x1583af,_0x2f201a={'appCode':_0x1d716d[_0x503b1e(0xd2)],'dbName':_0x1d716d[_0x503b1e(0xd4)]('dbname'),'dbType':_0x1d716d[_0x503b1e(0xd4)](_0x503b1e(0xe9)),'dbVersion':_0x1d716d['str'](_0x503b1e(0xf1))||_0x503b1e(0xd5),'dbUrl':_0x1d716d[_0x503b1e(0xd4)](_0x503b1e(0xe0))[_0x503b1e(0xf6)](),'username':_0x1d716d[_0x503b1e(0xd4)](_0x503b1e(0xe8)),'password':_0x503b1e(0xeb),..._0x1d716d[_0x503b1e(0xd4)](_0x503b1e(0xf2))?{'dbParam':_0x1d716d['str']('dbparam')}:{},..._0x1d716d[_0x503b1e(0xd4)](_0x503b1e(0xe6))?{'dbDesc':_0x1d716d[_0x503b1e(0xd4)](_0x503b1e(0xe6))}:{}};return{'method':_0x503b1e(0xe5),'url':_0x503b1e(0xdc),'body':_0x2f201a,'description':[_0x503b1e(0xe7),_0x1d716d[_0x503b1e(0xd1)]('autostart')?'Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id':'No\x20follow-up\x20analysis']['join']('\x0a')};},async 'execute'(_0x39e084){const _0x11a85d=a74_0x1583af,_0x4f1732={'appCode':_0x39e084['appCode'],'dbName':_0x39e084[_0x11a85d(0xd4)](_0x11a85d(0xef)),'dbType':_0x39e084[_0x11a85d(0xd4)](_0x11a85d(0xe9)),'dbVersion':_0x39e084[_0x11a85d(0xd4)](_0x11a85d(0xf1))||_0x11a85d(0xd5),'dbUrl':_0x39e084['str'](_0x11a85d(0xe0))['trim'](),'username':_0x39e084[_0x11a85d(0xd4)](_0x11a85d(0xe8)),'password':_0x39e084['str'](_0x11a85d(0xee)),..._0x39e084['str']('dbparam')?{'dbParam':_0x39e084[_0x11a85d(0xd4)](_0x11a85d(0xf2))}:{},..._0x39e084[_0x11a85d(0xd4)](_0x11a85d(0xe6))?{'dbDesc':_0x39e084['str'](_0x11a85d(0xe6))}:{}},{id:_0xbecbf7,entity:_0x1eba63}=normalizeEntityWithIdResponse(await createDbLink(_0x4f1732));if(!_0xbecbf7)return{'ok':![],'message':_0x11a85d(0xdb),'data':sanitizeDbLinkForOutput(_0x1eba63)};let _0x260f70,_0x4982cd;if(_0x39e084[_0x11a85d(0xd1)]('autostart'))try{_0x260f70=await startDbAnalysis(_0xbecbf7);}catch(_0xd71354){_0x4982cd=_0xd71354 instanceof Error?_0xd71354['message']:String(_0xd71354);}const _0x4154d4=buildDbPageLinks(_0x39e084[_0x11a85d(0xd2)],_0xbecbf7),_0x2dd518={'connection':sanitizeDbLinkForOutput(_0x1eba63),..._0x4154d4?{'links':{'databasePage':_0x4154d4[_0x11a85d(0xdf)]}}:{},..._0x260f70?{'analysisPlanId':_0x260f70}:{},..._0x4982cd?{'analysisStartWarning':_0x4982cd}:{}};let _0x362697;return _0x39e084[_0x11a85d(0xd1)](_0x11a85d(0xda))?_0x4982cd?_0x362697=_0x11a85d(0xf3)+_0xbecbf7+';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning':_0x362697='Created\x20db\x20link\x20'+_0xbecbf7+_0x11a85d(0xd8):_0x362697=_0x11a85d(0xf3)+_0xbecbf7,{'ok':!![],'data':_0x2dd518,'message':_0x362697};}};
1
+ function a76_0x569d(_0x263265,_0xa930c){_0x263265=_0x263265-0x1da;const _0xfb1156=a76_0xfb11();let _0x569d4e=_0xfb1156[_0x263265];return _0x569d4e;}const a76_0x126d38=a76_0x569d;(function(_0x39be01,_0x437498){const _0x5336e4=a76_0x569d,_0x5d834f=_0x39be01();while(!![]){try{const _0xd79a84=-parseInt(_0x5336e4(0x1da))/0x1+parseInt(_0x5336e4(0x1f3))/0x2*(-parseInt(_0x5336e4(0x1f0))/0x3)+parseInt(_0x5336e4(0x1fd))/0x4+parseInt(_0x5336e4(0x1e6))/0x5*(-parseInt(_0x5336e4(0x1fe))/0x6)+-parseInt(_0x5336e4(0x1dd))/0x7+-parseInt(_0x5336e4(0x1e2))/0x8*(parseInt(_0x5336e4(0x1e8))/0x9)+parseInt(_0x5336e4(0x202))/0xa;if(_0xd79a84===_0x437498)break;else _0x5d834f['push'](_0x5d834f['shift']());}catch(_0x5c5dd8){_0x5d834f['push'](_0x5d834f['shift']());}}}(a76_0xfb11,0x49beb));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a76_0xfb11(){const _0x3970d9=['dbversion','\x20and\x20started\x20analysis','bool','write','Host\x20and\x20port:\x20host:port','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','264140YGSITP','string','trim','367213wGjFut','[redacted]','appCode','message','validation','8qpiThY','Extra\x20JDBC-style\x20connection\x20parameters\x20string','password','username','10COsHin','Create\x20dblink','1605006mpqmHM','autostart','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','dbname','join','str','No\x20follow-up\x20analysis','dbparam','3XMhPfi','Database\x20password','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','971198HupaAn','/smartapi/dblink/create','8.0','dbdesc','create','Created\x20db\x20link\x20','dburl','databasePage','dbtype','Database\x20username','2145728btIGWZ','1456734CRBvUk','POST','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','12317370XXhtyH'];a76_0xfb11=function(){return _0x3970d9;};return a76_0xfb11();}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':a76_0x126d38(0x1f7),'description':'Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','risk':a76_0x126d38(0x206),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a76_0x126d38(0x1eb),'type':'string','required':!![],'description':'Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server'},DB_TYPE_FLAG,{'name':a76_0x126d38(0x203),'type':a76_0x126d38(0x1db),'description':a76_0x126d38(0x200),'default':'8.0'},{'name':a76_0x126d38(0x1f9),'type':a76_0x126d38(0x1db),'required':!![],'description':a76_0x126d38(0x207)},{'name':a76_0x126d38(0x1e5),'type':'string','required':!![],'description':a76_0x126d38(0x1fc)},{'name':a76_0x126d38(0x1e4),'type':a76_0x126d38(0x1db),'required':!![],'description':a76_0x126d38(0x1f1)},{'name':'dbparam','type':a76_0x126d38(0x1db),'description':a76_0x126d38(0x1e3)},{'name':'dbdesc','type':a76_0x126d38(0x1db),'description':'Human-readable\x20description'},{'name':a76_0x126d38(0x1e9),'type':'boolean','description':'After\x20create,\x20start\x20schema\x20analysis','default':![]}],async 'validate'(_0x128a54){const _0x425379=a76_0x126d38,_0x3ec086=_0x128a54[_0x425379(0x1ed)]('dburl')[_0x425379(0x1dc)]();if(!validateDbUrl(_0x3ec086))throw CliErrors[_0x425379(0x1e1)]('Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22'+_0x3ec086+'\x22',_0x425379(0x208));},async 'dryRun'(_0x2ff10b){const _0x29147f=a76_0x126d38,_0x4a3ab0={'appCode':_0x2ff10b[_0x29147f(0x1df)],'dbName':_0x2ff10b['str'](_0x29147f(0x1eb)),'dbType':_0x2ff10b[_0x29147f(0x1ed)](_0x29147f(0x1fb)),'dbVersion':_0x2ff10b['str'](_0x29147f(0x203))||_0x29147f(0x1f5),'dbUrl':_0x2ff10b['str'](_0x29147f(0x1f9))['trim'](),'username':_0x2ff10b[_0x29147f(0x1ed)]('username'),'password':_0x29147f(0x1de),..._0x2ff10b[_0x29147f(0x1ed)]('dbparam')?{'dbParam':_0x2ff10b[_0x29147f(0x1ed)]('dbparam')}:{},..._0x2ff10b[_0x29147f(0x1ed)]('dbdesc')?{'dbDesc':_0x2ff10b[_0x29147f(0x1ed)](_0x29147f(0x1f6))}:{}};return{'method':_0x29147f(0x1ff),'url':_0x29147f(0x1f4),'body':_0x4a3ab0,'description':[_0x29147f(0x1e7),_0x2ff10b[_0x29147f(0x205)]('autostart')?_0x29147f(0x1ea):_0x29147f(0x1ee)][_0x29147f(0x1ec)]('\x0a')};},async 'execute'(_0x46ed64){const _0x14a00d=a76_0x126d38,_0x35f97b={'appCode':_0x46ed64['appCode'],'dbName':_0x46ed64[_0x14a00d(0x1ed)]('dbname'),'dbType':_0x46ed64[_0x14a00d(0x1ed)]('dbtype'),'dbVersion':_0x46ed64[_0x14a00d(0x1ed)](_0x14a00d(0x203))||_0x14a00d(0x1f5),'dbUrl':_0x46ed64['str'](_0x14a00d(0x1f9))[_0x14a00d(0x1dc)](),'username':_0x46ed64[_0x14a00d(0x1ed)]('username'),'password':_0x46ed64[_0x14a00d(0x1ed)](_0x14a00d(0x1e4)),..._0x46ed64['str'](_0x14a00d(0x1ef))?{'dbParam':_0x46ed64[_0x14a00d(0x1ed)](_0x14a00d(0x1ef))}:{},..._0x46ed64[_0x14a00d(0x1ed)](_0x14a00d(0x1f6))?{'dbDesc':_0x46ed64['str'](_0x14a00d(0x1f6))}:{}},{id:_0x5c4976,entity:_0x28d066}=normalizeEntityWithIdResponse(await createDbLink(_0x35f97b));if(!_0x5c4976)return{'ok':![],'message':_0x14a00d(0x1f2),'data':sanitizeDbLinkForOutput(_0x28d066)};let _0x7232c8,_0xac680f;if(_0x46ed64[_0x14a00d(0x205)](_0x14a00d(0x1e9)))try{_0x7232c8=await startDbAnalysis(_0x5c4976);}catch(_0x26b80e){_0xac680f=_0x26b80e instanceof Error?_0x26b80e[_0x14a00d(0x1e0)]:String(_0x26b80e);}const _0x5be3aa=buildDbPageLinks(_0x46ed64[_0x14a00d(0x1df)],_0x5c4976),_0x3e385f={'connection':sanitizeDbLinkForOutput(_0x28d066),..._0x5be3aa?{'links':{'databasePage':_0x5be3aa[_0x14a00d(0x1fa)]}}:{},..._0x7232c8?{'analysisPlanId':_0x7232c8}:{},..._0xac680f?{'analysisStartWarning':_0xac680f}:{}};let _0x1f31b6;return _0x46ed64[_0x14a00d(0x205)](_0x14a00d(0x1e9))?_0xac680f?_0x1f31b6=_0x14a00d(0x1f8)+_0x5c4976+_0x14a00d(0x201):_0x1f31b6='Created\x20db\x20link\x20'+_0x5c4976+_0x14a00d(0x204):_0x1f31b6=_0x14a00d(0x1f8)+_0x5c4976,{'ok':!![],'data':_0x3e385f,'message':_0x1f31b6};}};
@@ -1 +1 @@
1
- const a75_0x4ca916=a75_0x10d4;function a75_0x10d4(_0x54db0d,_0x3e9764){_0x54db0d=_0x54db0d-0x100;const _0x3da655=a75_0x3da6();let _0x10d4eb=_0x3da655[_0x54db0d];return _0x10d4eb;}function a75_0x3da6(){const _0x1e3569=['439587RiseMp','4bKRExO','1781508mlnExS','Deleted\x20db\x20link\x20','326952tyWNcr','1908426QrVmOo','1hizUUf','high-risk-write','delete','3982275SQAPIa','7351595OADdtW','70cPPOYw','203hrxnfI','333354xsZqks','11gQcjjZ'];a75_0x3da6=function(){return _0x1e3569;};return a75_0x3da6();}(function(_0x500e05,_0x2ae347){const _0x53ded4=a75_0x10d4,_0x579af2=_0x500e05();while(!![]){try{const _0x66187f=-parseInt(_0x53ded4(0x10a))/0x1*(-parseInt(_0x53ded4(0x102))/0x2)+parseInt(_0x53ded4(0x10d))/0x3+-parseInt(_0x53ded4(0x105))/0x4*(-parseInt(_0x53ded4(0x10e))/0x5)+-parseInt(_0x53ded4(0x109))/0x6+-parseInt(_0x53ded4(0x101))/0x7*(parseInt(_0x53ded4(0x108))/0x8)+-parseInt(_0x53ded4(0x104))/0x9*(parseInt(_0x53ded4(0x100))/0xa)+parseInt(_0x53ded4(0x103))/0xb*(-parseInt(_0x53ded4(0x106))/0xc);if(_0x66187f===_0x2ae347)break;else _0x579af2['push'](_0x579af2['shift']());}catch(_0x171ff0){_0x579af2['push'](_0x579af2['shift']());}}}(a75_0x3da6,0xed025));import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDelete={'service':'db','command':a75_0x4ca916(0x10c),'description':'Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','risk':a75_0x4ca916(0x10b),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x13589e){const _0x32cff6=a75_0x4ca916,_0x5c747b=_0x13589e['num']('id');return await deleteDbLink(_0x5c747b),{'ok':!![],'data':{'id':_0x5c747b,'deleted':!![]},'message':_0x32cff6(0x107)+_0x5c747b};}};
1
+ const a77_0x202591=a77_0x3741;function a77_0x2f69(){const _0x320e7d=['1796664WsTwxX','6526920HWiPIz','delete','126575ewGJbr','173592UUFznt','2265VhfzSy','5289093TbpLsN','574322dCuRag','852NtZVjS','54AjUqcJ','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently'];a77_0x2f69=function(){return _0x320e7d;};return a77_0x2f69();}(function(_0x51c6a5,_0x111be5){const _0x35163c=a77_0x3741,_0x336908=_0x51c6a5();while(!![]){try{const _0x411271=parseInt(_0x35163c(0x175))/0x1+-parseInt(_0x35163c(0x171))/0x2+parseInt(_0x35163c(0x176))/0x3*(parseInt(_0x35163c(0x16e))/0x4)+-parseInt(_0x35163c(0x174))/0x5*(parseInt(_0x35163c(0x16f))/0x6)+-parseInt(_0x35163c(0x16d))/0x7+parseInt(_0x35163c(0x172))/0x8+parseInt(_0x35163c(0x16c))/0x9;if(_0x411271===_0x111be5)break;else _0x336908['push'](_0x336908['shift']());}catch(_0x597733){_0x336908['push'](_0x336908['shift']());}}}(a77_0x2f69,0x81548));import{deleteDbLink}from'../../core/api-client.js';function a77_0x3741(_0x289d12,_0xa4e51){_0x289d12=_0x289d12-0x16c;const _0x2f699d=a77_0x2f69();let _0x3741df=_0x2f699d[_0x289d12];return _0x3741df;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDelete={'service':'db','command':a77_0x202591(0x173),'description':a77_0x202591(0x170),'risk':'high-risk-write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x13fe69){const _0x164016=_0x13fe69['num']('id');return await deleteDbLink(_0x164016),{'ok':!![],'data':{'id':_0x164016,'deleted':!![]},'message':'Deleted\x20db\x20link\x20'+_0x164016};}};
@@ -1 +1 @@
1
- function a76_0x32da(_0x2321dd,_0x1639b8){_0x2321dd=_0x2321dd-0x17c;const _0x6815c9=a76_0x6815();let _0x32daa0=_0x6815c9[_0x2321dd];return _0x32daa0;}const a76_0x4ac173=a76_0x32da;(function(_0xb85f8c,_0x3f8ef9){const _0x15b098=a76_0x32da,_0x42a074=_0xb85f8c();while(!![]){try{const _0x74c87a=-parseInt(_0x15b098(0x189))/0x1+-parseInt(_0x15b098(0x180))/0x2+parseInt(_0x15b098(0x185))/0x3+parseInt(_0x15b098(0x186))/0x4*(-parseInt(_0x15b098(0x17d))/0x5)+-parseInt(_0x15b098(0x18a))/0x6+-parseInt(_0x15b098(0x184))/0x7*(parseInt(_0x15b098(0x187))/0x8)+parseInt(_0x15b098(0x183))/0x9;if(_0x74c87a===_0x3f8ef9)break;else _0x42a074['push'](_0x42a074['shift']());}catch(_0x2cdccc){_0x42a074['push'](_0x42a074['shift']());}}}(a76_0x6815,0x60ae4));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a76_0x4ac173(0x17f),'description':a76_0x4ac173(0x17e),'risk':a76_0x4ac173(0x181),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2968b2){const _0x2c22a2=a76_0x4ac173,_0x52f3d5=_0x2968b2[_0x2c22a2(0x17c)]('id'),_0x116152=await getDbLinkInfo(_0x52f3d5);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x116152),'message':_0x2c22a2(0x188)+_0x52f3d5+':\x20'+_0x116152[_0x2c22a2(0x182)]};}};function a76_0x6815(){const _0x527072=['155690ZPvUMe','3163140tBayqX','num','270WXiWWb','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','detail','652014kNbzCL','read','dbName','16015842UZuGrD','7hYTtgl','1750854akqpHT','33472VWzspJ','4051144sHJLGQ','db\x20link\x20'];a76_0x6815=function(){return _0x527072;};return a76_0x6815();}
1
+ const a78_0x4721cf=a78_0x48f8;(function(_0x1bfac8,_0xdef345){const _0x122b2e=a78_0x48f8,_0x17a6c2=_0x1bfac8();while(!![]){try{const _0x21c1ee=-parseInt(_0x122b2e(0x1a1))/0x1*(parseInt(_0x122b2e(0x1a7))/0x2)+parseInt(_0x122b2e(0x19e))/0x3*(-parseInt(_0x122b2e(0x1a6))/0x4)+-parseInt(_0x122b2e(0x19f))/0x5+-parseInt(_0x122b2e(0x1a2))/0x6+parseInt(_0x122b2e(0x1a5))/0x7*(-parseInt(_0x122b2e(0x1a4))/0x8)+-parseInt(_0x122b2e(0x1ab))/0x9+parseInt(_0x122b2e(0x1a3))/0xa*(parseInt(_0x122b2e(0x1a9))/0xb);if(_0x21c1ee===_0xdef345)break;else _0x17a6c2['push'](_0x17a6c2['shift']());}catch(_0x27de8c){_0x17a6c2['push'](_0x17a6c2['shift']());}}}(a78_0x3982,0x5d62a));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a78_0x48f8(_0x1af428,_0x8b97b2){_0x1af428=_0x1af428-0x19e;const _0x39828b=a78_0x3982();let _0x48f844=_0x39828b[_0x1af428];return _0x48f844;}import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a78_0x3982(){const _0x1c18ea=['30oLwKVR','6568ruUWvw','525fJMuDh','2308KcQGPd','30aOCCUS','dbName','8087475dLzciZ','num','2924289XmifAg','detail','948Debumx','630775MWtgnl','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','50763bNZUGV','2200446wrmMkB'];a78_0x3982=function(){return _0x1c18ea;};return a78_0x3982();}export const dbDetail={'service':'db','command':a78_0x4721cf(0x1ac),'description':a78_0x4721cf(0x1a0),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1a39f2){const _0x4daba3=a78_0x4721cf,_0x1ab592=_0x1a39f2[_0x4daba3(0x1aa)]('id'),_0x33cb4a=await getDbLinkInfo(_0x1ab592);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x33cb4a),'message':'db\x20link\x20'+_0x1ab592+':\x20'+_0x33cb4a[_0x4daba3(0x1a8)]};}};
@@ -1 +1 @@
1
- function a77_0x4db3(){const _0xa1306b=['24gdDsCm','table','number','18731658HkCHMo','167yyQPOw','appCode','read','343QDlpgB','1885685hvMOyc','diff','str','Page\x20size','length','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','16288KWnGyG','Page\x20index\x20(1-based)','2742AOIOCH','page','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','1278549toqAAN','\x20row(s),\x20total\x20','\x20(db\x20link\x20','177858tDoiHZ','2072788dUPRGt','40HIjlrH'];a77_0x4db3=function(){return _0xa1306b;};return a77_0x4db3();}const a77_0x5ea0da=a77_0x45b6;function a77_0x45b6(_0xc9fcb4,_0x56bf1f){_0xc9fcb4=_0xc9fcb4-0x190;const _0x4db33a=a77_0x4db3();let _0x45b617=_0x4db33a[_0xc9fcb4];return _0x45b617;}(function(_0x367dec,_0x4fbaca){const _0x1cfa03=a77_0x45b6,_0x1a77e1=_0x367dec();while(!![]){try{const _0x4eb1a7=parseInt(_0x1cfa03(0x1a6))/0x1*(parseInt(_0x1cfa03(0x199))/0x2)+parseInt(_0x1cfa03(0x19c))/0x3+parseInt(_0x1cfa03(0x1a0))/0x4+-parseInt(_0x1cfa03(0x191))/0x5*(-parseInt(_0x1cfa03(0x1a2))/0x6)+-parseInt(_0x1cfa03(0x190))/0x7*(parseInt(_0x1cfa03(0x197))/0x8)+-parseInt(_0x1cfa03(0x19f))/0x9*(parseInt(_0x1cfa03(0x1a1))/0xa)+-parseInt(_0x1cfa03(0x1a5))/0xb;if(_0x4eb1a7===_0x4fbaca)break;else _0x1a77e1['push'](_0x1a77e1['shift']());}catch(_0x959c93){_0x1a77e1['push'](_0x1a77e1['shift']());}}}(a77_0x4db3,0xc35c3));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDiff={'service':'db','command':a77_0x5ea0da(0x192),'description':a77_0x5ea0da(0x196),'risk':a77_0x5ea0da(0x1a8),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a77_0x5ea0da(0x1a3),'type':'string','description':a77_0x5ea0da(0x19b)},{'name':a77_0x5ea0da(0x19a),'type':a77_0x5ea0da(0x1a4),'description':a77_0x5ea0da(0x198),'default':0x1},{'name':'pagesize','type':a77_0x5ea0da(0x1a4),'description':a77_0x5ea0da(0x194),'default':0x14}],async 'execute'(_0x14fff8){const _0x54e95f=a77_0x5ea0da,_0x4f87d5=_0x14fff8['num']('id'),_0x16637f=_0x14fff8['num'](_0x54e95f(0x19a),0x1)||0x1,_0x5ed942=_0x14fff8['num']('pagesize',0x14)||0x14,_0x3ed25f=_0x14fff8[_0x54e95f(0x193)]('table')||undefined,{totalCount:_0x26328b,tableList:_0x3c21cb}=await getDbTableDiff(_0x14fff8[_0x54e95f(0x1a7)],_0x4f87d5,{'pageIndex':_0x16637f,'pageSize':_0x5ed942,'tableName':_0x3ed25f});return{'ok':!![],'data':{'dbLinkId':_0x4f87d5,'page':_0x16637f,'pageSize':_0x5ed942,'totalCount':_0x26328b,'tableList':_0x3c21cb},'message':_0x3c21cb[_0x54e95f(0x195)]+_0x54e95f(0x19d)+_0x26328b+_0x54e95f(0x19e)+_0x4f87d5+')'};}};
1
+ const a79_0x5c82ee=a79_0x436c;(function(_0x1a773e,_0x35d308){const _0x528497=a79_0x436c,_0x5a4dd7=_0x1a773e();while(!![]){try{const _0xde4812=parseInt(_0x528497(0x183))/0x1+parseInt(_0x528497(0x17f))/0x2+parseInt(_0x528497(0x192))/0x3+parseInt(_0x528497(0x187))/0x4+parseInt(_0x528497(0x186))/0x5*(parseInt(_0x528497(0x184))/0x6)+-parseInt(_0x528497(0x18c))/0x7+-parseInt(_0x528497(0x180))/0x8;if(_0xde4812===_0x35d308)break;else _0x5a4dd7['push'](_0x5a4dd7['shift']());}catch(_0x93c884){_0x5a4dd7['push'](_0x5a4dd7['shift']());}}}(a79_0x4c61,0x9677c));function a79_0x436c(_0x1a744e,_0x1ab2d3){_0x1a744e=_0x1a744e-0x17d;const _0x4c6161=a79_0x4c61();let _0x436c43=_0x4c6161[_0x1a744e];return _0x436c43;}function a79_0x4c61(){const _0x58d3c8=['page','table','Page\x20index\x20(1-based)','2076426iVMLiR','22207056ZyOuDn','pagesize','number','945159GJFvNy','7335834edbZyK','diff','5Jgmjcd','3331216zBIYaW','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','\x20(db\x20link\x20','read','appCode','7095130xPMmtA','Page\x20size','num','length','string','\x20row(s),\x20total\x20','1100919jpKBDj','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)'];a79_0x4c61=function(){return _0x58d3c8;};return a79_0x4c61();}import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDiff={'service':'db','command':a79_0x5c82ee(0x185),'description':a79_0x5c82ee(0x193),'risk':a79_0x5c82ee(0x18a),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':a79_0x5c82ee(0x190),'description':a79_0x5c82ee(0x188)},{'name':a79_0x5c82ee(0x194),'type':'number','description':a79_0x5c82ee(0x17e),'default':0x1},{'name':a79_0x5c82ee(0x181),'type':a79_0x5c82ee(0x182),'description':a79_0x5c82ee(0x18d),'default':0x14}],async 'execute'(_0x3eecc5){const _0x423091=a79_0x5c82ee,_0x3d204f=_0x3eecc5['num']('id'),_0x144353=_0x3eecc5[_0x423091(0x18e)](_0x423091(0x194),0x1)||0x1,_0x25794c=_0x3eecc5['num'](_0x423091(0x181),0x14)||0x14,_0x5a1a5a=_0x3eecc5['str'](_0x423091(0x17d))||undefined,{totalCount:_0x2ef0f0,tableList:_0x5f3b32}=await getDbTableDiff(_0x3eecc5[_0x423091(0x18b)],_0x3d204f,{'pageIndex':_0x144353,'pageSize':_0x25794c,'tableName':_0x5a1a5a});return{'ok':!![],'data':{'dbLinkId':_0x3d204f,'page':_0x144353,'pageSize':_0x25794c,'totalCount':_0x2ef0f0,'tableList':_0x5f3b32},'message':_0x5f3b32[_0x423091(0x18f)]+_0x423091(0x191)+_0x2ef0f0+_0x423091(0x189)+_0x3d204f+')'};}};
@@ -1 +1 @@
1
- (function(_0x2eb5ec,_0x3d3a1e){const _0x635cb1=a78_0x58af,_0x14cc9c=_0x2eb5ec();while(!![]){try{const _0x4f90db=parseInt(_0x635cb1(0x104))/0x1+parseInt(_0x635cb1(0x108))/0x2+parseInt(_0x635cb1(0x105))/0x3*(parseInt(_0x635cb1(0x10b))/0x4)+-parseInt(_0x635cb1(0x106))/0x5*(-parseInt(_0x635cb1(0x102))/0x6)+-parseInt(_0x635cb1(0x109))/0x7+-parseInt(_0x635cb1(0x103))/0x8+parseInt(_0x635cb1(0x10a))/0x9*(parseInt(_0x635cb1(0x107))/0xa);if(_0x4f90db===_0x3d3a1e)break;else _0x14cc9c['push'](_0x14cc9c['shift']());}catch(_0x3c07f5){_0x14cc9c['push'](_0x14cc9c['shift']());}}}(a78_0x509b,0xa65e8));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';function a78_0x509b(){const _0x445d77=['12bJlsFQ','8211056fxLSIE','726183dnrzse','30813smRURj','106895tyvMQk','10KfAljr','1019578scFSEq','6474622qPBzfg','5900562vWNqlG','272qTqJjQ'];a78_0x509b=function(){return _0x445d77;};return a78_0x509b();}function a78_0x58af(_0x208f89,_0x2b2983){_0x208f89=_0x208f89-0x102;const _0x509bc4=a78_0x509b();let _0x58af07=_0x509bc4[_0x208f89];return _0x58af07;}import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
1
+ (function(_0x337557,_0x1146fe){const _0x40bc4d=a80_0x5170,_0x4ffbaf=_0x337557();while(!![]){try{const _0x86dddb=parseInt(_0x40bc4d(0x15f))/0x1+-parseInt(_0x40bc4d(0x15c))/0x2*(-parseInt(_0x40bc4d(0x165))/0x3)+-parseInt(_0x40bc4d(0x166))/0x4+parseInt(_0x40bc4d(0x163))/0x5*(parseInt(_0x40bc4d(0x164))/0x6)+parseInt(_0x40bc4d(0x160))/0x7*(parseInt(_0x40bc4d(0x15e))/0x8)+parseInt(_0x40bc4d(0x162))/0x9+-parseInt(_0x40bc4d(0x15d))/0xa*(parseInt(_0x40bc4d(0x161))/0xb);if(_0x86dddb===_0x1146fe)break;else _0x4ffbaf['push'](_0x4ffbaf['shift']());}catch(_0x5adb9d){_0x4ffbaf['push'](_0x4ffbaf['shift']());}}}(a80_0x3004,0x97690));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';function a80_0x5170(_0x36f5fa,_0x5858c5){_0x36f5fa=_0x36f5fa-0x15c;const _0x300495=a80_0x3004();let _0x5170f2=_0x300495[_0x36f5fa];return _0x5170f2;}import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';function a80_0x3004(){const _0x469395=['2692476DoVolP','10WlmWaG','2116146EomxBu','27UAVdkd','4122900UwJuxU','255526wiqCGs','9251140gxZwFS','279208ppwExw','1137310bPqxzb','42ssedRH','22UeYBhd'];a80_0x3004=function(){return _0x469395;};return a80_0x3004();}import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
@@ -1 +1 @@
1
- const a79_0x47011a=a79_0x27a5;(function(_0x2901db,_0x5d49af){const _0x285584=a79_0x27a5,_0x2f7b80=_0x2901db();while(!![]){try{const _0x12dc22=-parseInt(_0x285584(0x1d4))/0x1*(parseInt(_0x285584(0x1d3))/0x2)+-parseInt(_0x285584(0x1db))/0x3+-parseInt(_0x285584(0x1e2))/0x4*(parseInt(_0x285584(0x1d8))/0x5)+-parseInt(_0x285584(0x1d7))/0x6+parseInt(_0x285584(0x1e0))/0x7+parseInt(_0x285584(0x1e6))/0x8*(parseInt(_0x285584(0x1dd))/0x9)+parseInt(_0x285584(0x1d5))/0xa;if(_0x12dc22===_0x5d49af)break;else _0x2f7b80['push'](_0x2f7b80['shift']());}catch(_0x34ff0e){_0x2f7b80['push'](_0x2f7b80['shift']());}}}(a79_0xa48c,0x5477c));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a79_0x27a5(_0x4eb9a8,_0x118aeb){_0x4eb9a8=_0x4eb9a8-0x1d3;const _0xa48c50=a79_0xa48c();let _0x27a571=_0xa48c50[_0x4eb9a8];return _0x27a571;}import{sanitizeDbLinkList}from'../../commands/db/shared.js';function a79_0xa48c(){const _0x43fb3d=['num','pagesize','appCode','96ZxFeoH','13864AQXHYd','33AtxtZm','11394510iptilW','page','2295846SFhANq','2907725TwMSmT','length','number','1030896nAOCxz','List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','434691NXqvjH','Page\x20size','Found\x20','1144605MVIMLR','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','4eienDa'];a79_0xa48c=function(){return _0x43fb3d;};return a79_0xa48c();}export const dbList={'service':'db','command':'list','description':a79_0x47011a(0x1dc),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a79_0x47011a(0x1d6),'type':a79_0x47011a(0x1da),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':'pagesize','type':a79_0x47011a(0x1da),'description':a79_0x47011a(0x1de),'default':0x64}],async 'execute'(_0x2f81af){const _0x475a7c=a79_0x47011a,_0x3991ed=_0x2f81af[_0x475a7c(0x1e3)](_0x475a7c(0x1d6),0x1)||0x1,_0x3e4ce5=_0x2f81af[_0x475a7c(0x1e3)](_0x475a7c(0x1e4),0x64)||0x64,{items:_0x3624e4,paging:_0x26c625}=await listDbLinks(_0x2f81af[_0x475a7c(0x1e5)],{'currentPage':_0x3991ed,'pageSize':_0x3e4ce5}),_0x38964a=sanitizeDbLinkList(_0x3624e4),_0x3a1ff8=_0x26c625?_0x26c625:{'currentPage':_0x3991ed,'pageSize':_0x3e4ce5,'rowsOnPage':_0x38964a['length'],'totalCount':null,'note':_0x475a7c(0x1e1)};return{'ok':!![],'data':{'connections':_0x38964a,'paging':_0x3a1ff8},'message':_0x475a7c(0x1df)+_0x38964a[_0x475a7c(0x1d9)]+'\x20database\x20connection(s)'};}};
1
+ function a81_0x1bd8(_0x77c013,_0x57b94d){_0x77c013=_0x77c013-0x13d;const _0x168ed5=a81_0x168e();let _0x1bd8d5=_0x168ed5[_0x77c013];return _0x1bd8d5;}const a81_0x27c6ee=a81_0x1bd8;(function(_0x3ed08f,_0x35e44b){const _0x69fc4b=a81_0x1bd8,_0x15220f=_0x3ed08f();while(!![]){try{const _0x4f131d=parseInt(_0x69fc4b(0x154))/0x1+parseInt(_0x69fc4b(0x14f))/0x2+-parseInt(_0x69fc4b(0x150))/0x3*(-parseInt(_0x69fc4b(0x145))/0x4)+-parseInt(_0x69fc4b(0x153))/0x5+-parseInt(_0x69fc4b(0x142))/0x6*(-parseInt(_0x69fc4b(0x14c))/0x7)+parseInt(_0x69fc4b(0x149))/0x8*(parseInt(_0x69fc4b(0x141))/0x9)+parseInt(_0x69fc4b(0x140))/0xa*(-parseInt(_0x69fc4b(0x14d))/0xb);if(_0x4f131d===_0x35e44b)break;else _0x15220f['push'](_0x15220f['shift']());}catch(_0x22f11e){_0x15220f['push'](_0x15220f['shift']());}}}(a81_0x168e,0xf324c));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a81_0x27c6ee(0x147),'description':a81_0x27c6ee(0x13e),'risk':a81_0x27c6ee(0x152),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a81_0x27c6ee(0x13f),'type':a81_0x27c6ee(0x144),'description':a81_0x27c6ee(0x148),'default':0x1},{'name':'pagesize','type':a81_0x27c6ee(0x144),'description':a81_0x27c6ee(0x146),'default':0x64}],async 'execute'(_0x3dd00b){const _0x2788d6=a81_0x27c6ee,_0x5c52bb=_0x3dd00b['num'](_0x2788d6(0x13f),0x1)||0x1,_0x314d11=_0x3dd00b[_0x2788d6(0x14b)](_0x2788d6(0x14e),0x64)||0x64,{items:_0x1f65e6,paging:_0x180195}=await listDbLinks(_0x3dd00b[_0x2788d6(0x14a)],{'currentPage':_0x5c52bb,'pageSize':_0x314d11}),_0x1ba324=sanitizeDbLinkList(_0x1f65e6),_0x2fba5a=_0x180195?_0x180195:{'currentPage':_0x5c52bb,'pageSize':_0x314d11,'rowsOnPage':_0x1ba324[_0x2788d6(0x143)],'totalCount':null,'note':_0x2788d6(0x151)};return{'ok':!![],'data':{'connections':_0x1ba324,'paging':_0x2fba5a},'message':'Found\x20'+_0x1ba324[_0x2788d6(0x143)]+_0x2788d6(0x13d)};}};function a81_0x168e(){const _0xfcc82=['6BAiuwj','length','number','12nhKSCl','Page\x20size','list','Page\x20index\x20(1-based)','90008SWneXS','appCode','num','8171149ylWkus','22WtfgcL','pagesize','1051344YvGmnW','1165239UtzCft','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','read','6411125rTmIkN','241029apgSDY','\x20database\x20connection(s)','List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','page','12093740jmvzKY','1278NZyndw'];a81_0x168e=function(){return _0xfcc82;};return a81_0x168e();}
@@ -1 +1 @@
1
- (function(_0x56ce0b,_0xa0703e){const _0x45dcdf=a80_0x58c0,_0x1b7424=_0x56ce0b();while(!![]){try{const _0x55d49f=parseInt(_0x45dcdf(0xbf))/0x1*(parseInt(_0x45dcdf(0xc6))/0x2)+parseInt(_0x45dcdf(0xcd))/0x3*(parseInt(_0x45dcdf(0xc0))/0x4)+parseInt(_0x45dcdf(0xcc))/0x5+parseInt(_0x45dcdf(0xc7))/0x6*(-parseInt(_0x45dcdf(0xbe))/0x7)+-parseInt(_0x45dcdf(0xc5))/0x8*(-parseInt(_0x45dcdf(0xd4))/0x9)+-parseInt(_0x45dcdf(0xdd))/0xa*(-parseInt(_0x45dcdf(0xc3))/0xb)+-parseInt(_0x45dcdf(0xc8))/0xc;if(_0x55d49f===_0xa0703e)break;else _0x1b7424['push'](_0x1b7424['shift']());}catch(_0x2fac09){_0x1b7424['push'](_0x1b7424['shift']());}}}(a80_0x2806,0xdbb24));import{getAppBaseUrl}from'../../constant/domain.js';function a80_0x58c0(_0x1799f6,_0x221493){_0x1799f6=_0x1799f6-0xbe;const _0x2806ac=a80_0x2806();let _0x58c071=_0x2806ac[_0x1799f6];return _0x58c071;}function a80_0x2806(){const _0x460e47=['includes','privatekey','/data/er?dbId=','connectionstring','trim','dbpassword','27ZLhZzj','map','password','toLowerCase','number','secret','test','[redacted]','isFinite','7900URiLaI','length','247247UkdBbr','417zhyPQD','1327524gtqUTu','passwd','jdbcurl','19096eTOXSk','accesskey','2209496xaHVXA','4586pszclP','30rhdXMw','38054244vRnpcu','authorization','credential','keys','3798025cNwKiQ','3iqqyFj'];a80_0x2806=function(){return _0x460e47;};return a80_0x2806();}function shouldRedactKey(_0x227a4f){const _0x55bb6a=a80_0x58c0,_0x1022eb=_0x227a4f[_0x55bb6a(0xd7)]();if(_0x1022eb===_0x55bb6a(0xd6)||_0x1022eb===_0x55bb6a(0xc1)||_0x1022eb===_0x55bb6a(0xd3))return!![];if(_0x1022eb['includes'](_0x55bb6a(0xd9))||_0x1022eb['includes']('token')||_0x1022eb[_0x55bb6a(0xce)](_0x55bb6a(0xca)))return!![];if(_0x1022eb[_0x55bb6a(0xce)](_0x55bb6a(0xcf))||_0x1022eb['includes'](_0x55bb6a(0xc4)))return!![];if(_0x1022eb===_0x55bb6a(0xc9)||_0x1022eb===_0x55bb6a(0xd1)||_0x1022eb===_0x55bb6a(0xc2))return!![];return![];}export function sanitizeDbLinkForOutput(_0x154e06){const _0x200074=a80_0x58c0,_0x130063={..._0x154e06};for(const _0x59eb73 of Object[_0x200074(0xcb)](_0x130063)){if(!shouldRedactKey(_0x59eb73))continue;const _0x1e6f16=_0x130063[_0x59eb73];_0x1e6f16!=null&&String(_0x1e6f16)[_0x200074(0xde)]>0x0&&(_0x130063[_0x59eb73]=_0x200074(0xdb));}return _0x130063;}export function sanitizeDbLinkList(_0x27ac77){const _0x42af34=a80_0x58c0;return _0x27ac77[_0x42af34(0xd5)](_0x587a1=>sanitizeDbLinkForOutput(_0x587a1));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x40acb6){const _0x568b52=a80_0x58c0,_0xfcd94a=_0x40acb6['trim']();if(!_0xfcd94a)return![];return DB_URL_PATTERN[_0x568b52(0xda)](_0xfcd94a);}export function buildDbPageLinks(_0x293ba7,_0x313491){const _0xdb0691=a80_0x58c0,_0x742fbb=_0x293ba7?.[_0xdb0691(0xd2)]();if(!_0x742fbb)return undefined;const _0x4e9a40=typeof _0x313491===_0xdb0691(0xd8)?String(_0x313491):String(_0x313491??'')[_0xdb0691(0xd2)]();if(!_0x4e9a40)return undefined;const _0x1f3535=Number(_0x4e9a40);if(!Number[_0xdb0691(0xdc)](_0x1f3535)||_0x1f3535<=0x0)return undefined;const _0xef33cf=getAppBaseUrl(_0x742fbb),_0x2be6bc=encodeURIComponent(String(_0x1f3535));return{'databasePage':_0xef33cf+'/data/database','erPage':_0xef33cf+_0xdb0691(0xd0)+_0x2be6bc};}
1
+ (function(_0x43846b,_0x2753f2){const _0x58eee5=a82_0x4f28,_0x2b3fc5=_0x43846b();while(!![]){try{const _0x2d7001=parseInt(_0x58eee5(0xe3))/0x1+-parseInt(_0x58eee5(0xe1))/0x2+parseInt(_0x58eee5(0xd0))/0x3*(-parseInt(_0x58eee5(0xe6))/0x4)+parseInt(_0x58eee5(0xdf))/0x5+-parseInt(_0x58eee5(0xdc))/0x6+-parseInt(_0x58eee5(0xe5))/0x7*(parseInt(_0x58eee5(0xd6))/0x8)+parseInt(_0x58eee5(0xd3))/0x9;if(_0x2d7001===_0x2753f2)break;else _0x2b3fc5['push'](_0x2b3fc5['shift']());}catch(_0x70a331){_0x2b3fc5['push'](_0x2b3fc5['shift']());}}}(a82_0x2847,0xc0ee3));import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0x10e6bb){const _0x34ab3e=a82_0x4f28,_0x1eabcc=_0x10e6bb['toLowerCase']();if(_0x1eabcc===_0x34ab3e(0xe8)||_0x1eabcc===_0x34ab3e(0xe0)||_0x1eabcc==='dbpassword')return!![];if(_0x1eabcc[_0x34ab3e(0xd4)](_0x34ab3e(0xd2))||_0x1eabcc[_0x34ab3e(0xd4)](_0x34ab3e(0xdb))||_0x1eabcc[_0x34ab3e(0xd4)](_0x34ab3e(0xd7)))return!![];if(_0x1eabcc[_0x34ab3e(0xd4)](_0x34ab3e(0xdd))||_0x1eabcc['includes'](_0x34ab3e(0xe9)))return!![];if(_0x1eabcc===_0x34ab3e(0xd9)||_0x1eabcc===_0x34ab3e(0xd8)||_0x1eabcc===_0x34ab3e(0xd1))return!![];return![];}export function sanitizeDbLinkForOutput(_0x2546ed){const _0x5b5c01=a82_0x4f28,_0x1da143={..._0x2546ed};for(const _0x17d9cc of Object[_0x5b5c01(0xe7)](_0x1da143)){if(!shouldRedactKey(_0x17d9cc))continue;const _0x5eb8ad=_0x1da143[_0x17d9cc];_0x5eb8ad!=null&&String(_0x5eb8ad)[_0x5b5c01(0xda)]>0x0&&(_0x1da143[_0x17d9cc]='[redacted]');}return _0x1da143;}export function sanitizeDbLinkList(_0x306bc2){const _0x56ed92=a82_0x4f28;return _0x306bc2[_0x56ed92(0xde)](_0x5f0755=>sanitizeDbLinkForOutput(_0x5f0755));}function a82_0x4f28(_0x147bc3,_0x202b00){_0x147bc3=_0x147bc3-0xd0;const _0x2847c7=a82_0x2847();let _0x4f2819=_0x2847c7[_0x147bc3];return _0x4f2819;}function a82_0x2847(){const _0x52da6e=['passwd','1467966gUsEBd','trim','169871TCEIhe','/data/database','3374iivoPj','124IXvkuC','keys','password','accesskey','125328gwXyKN','jdbcurl','secret','32895531PbYJPs','includes','/data/er?dbId=','16304tgDCJZ','credential','connectionstring','authorization','length','token','969858wCebbt','privatekey','map','691555FYwMyd'];a82_0x2847=function(){return _0x52da6e;};return a82_0x2847();}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x14c053){const _0x4cd633=_0x14c053['trim']();if(!_0x4cd633)return![];return DB_URL_PATTERN['test'](_0x4cd633);}export function buildDbPageLinks(_0x2f6b05,_0x47449b){const _0x36bb02=a82_0x4f28,_0x43f23c=_0x2f6b05?.[_0x36bb02(0xe2)]();if(!_0x43f23c)return undefined;const _0x5713d0=typeof _0x47449b==='number'?String(_0x47449b):String(_0x47449b??'')['trim']();if(!_0x5713d0)return undefined;const _0x3457ee=Number(_0x5713d0);if(!Number['isFinite'](_0x3457ee)||_0x3457ee<=0x0)return undefined;const _0x139a47=getAppBaseUrl(_0x43f23c),_0x351f8d=encodeURIComponent(String(_0x3457ee));return{'databasePage':_0x139a47+_0x36bb02(0xe4),'erPage':_0x139a47+_0x36bb02(0xd5)+_0x351f8d};}
@@ -1 +1 @@
1
- const a81_0x31e7bf=a81_0x33dc;function a81_0x33dc(_0x3ebd0f,_0x372fb){_0x3ebd0f=_0x3ebd0f-0xc3;const _0x369088=a81_0x3690();let _0x33dc58=_0x369088[_0x3ebd0f];return _0x33dc58;}(function(_0x7a9d07,_0x3ed39f){const _0x5804d3=a81_0x33dc,_0xaaa218=_0x7a9d07();while(!![]){try{const _0x3a1263=parseInt(_0x5804d3(0xcd))/0x1*(-parseInt(_0x5804d3(0xce))/0x2)+-parseInt(_0x5804d3(0xc5))/0x3+-parseInt(_0x5804d3(0xd1))/0x4+parseInt(_0x5804d3(0xca))/0x5*(-parseInt(_0x5804d3(0xc7))/0x6)+-parseInt(_0x5804d3(0xc3))/0x7*(-parseInt(_0x5804d3(0xc9))/0x8)+-parseInt(_0x5804d3(0xcf))/0x9*(parseInt(_0x5804d3(0xd3))/0xa)+-parseInt(_0x5804d3(0xcb))/0xb*(-parseInt(_0x5804d3(0xd0))/0xc);if(_0x3a1263===_0x3ed39f)break;else _0xaaa218['push'](_0xaaa218['shift']());}catch(_0x2e6c6d){_0xaaa218['push'](_0xaaa218['shift']());}}}(a81_0x3690,0xdaed1));function a81_0x3690(){const _0xfa23c8=['num','8835810HfKztJ','7idvCoq','length','4041360veUtdT','\x20table(s)\x20on\x20db\x20link\x20','8090508wUpRTx','tables','11410376KZSkYh','5jbCODv','31416143jNONgv','read','135389HqcJBB','14UXzkEH','9RNOwjF','24PgnDFr','6859040CiNpXf'];a81_0x3690=function(){return _0xfa23c8;};return a81_0x3690();}import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a81_0x31e7bf(0xc8),'description':'List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','risk':a81_0x31e7bf(0xcc),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0xfaf317){const _0x443d81=a81_0x31e7bf,_0x3d393e=_0xfaf317[_0x443d81(0xd2)]('id'),_0x4a8eca=await getDbAllTableList(_0xfaf317['appCode'],_0x3d393e);return{'ok':!![],'data':{'dbLinkId':_0x3d393e,'total':_0x4a8eca[_0x443d81(0xc4)],'tables':_0x4a8eca},'message':_0x4a8eca[_0x443d81(0xc4)]+_0x443d81(0xc6)+_0x3d393e};}};
1
+ const a83_0xe3711d=a83_0xf908;(function(_0x495689,_0x1e8bd2){const _0x1d2643=a83_0xf908,_0x3ba9b1=_0x495689();while(!![]){try{const _0x16081b=-parseInt(_0x1d2643(0x1d7))/0x1+parseInt(_0x1d2643(0x1e1))/0x2*(parseInt(_0x1d2643(0x1dd))/0x3)+-parseInt(_0x1d2643(0x1df))/0x4+parseInt(_0x1d2643(0x1d8))/0x5+parseInt(_0x1d2643(0x1e5))/0x6*(parseInt(_0x1d2643(0x1db))/0x7)+-parseInt(_0x1d2643(0x1d9))/0x8+parseInt(_0x1d2643(0x1e3))/0x9;if(_0x16081b===_0x1e8bd2)break;else _0x3ba9b1['push'](_0x3ba9b1['shift']());}catch(_0x2e42e9){_0x3ba9b1['push'](_0x3ba9b1['shift']());}}}(a83_0x5232,0xc36ca));function a83_0x5232(){const _0x569459=['length','441576sVVcjE','3457775vKdhQd','10704656ajqwvE','num','2386489pKDKHp','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','204LFYPPS','read','6190120tnizff','appCode','14716QQsXeU','tables','14148351qkzLCP','\x20table(s)\x20on\x20db\x20link\x20','24ykXQsC'];a83_0x5232=function(){return _0x569459;};return a83_0x5232();}function a83_0xf908(_0x1352ce,_0x43967b){_0x1352ce=_0x1352ce-0x1d7;const _0x52322d=a83_0x5232();let _0xf90834=_0x52322d[_0x1352ce];return _0xf90834;}import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a83_0xe3711d(0x1e2),'description':a83_0xe3711d(0x1dc),'risk':a83_0xe3711d(0x1de),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x255ae3){const _0xe56fa6=a83_0xe3711d,_0x2ab7ce=_0x255ae3[_0xe56fa6(0x1da)]('id'),_0x2c1dd1=await getDbAllTableList(_0x255ae3[_0xe56fa6(0x1e0)],_0x2ab7ce);return{'ok':!![],'data':{'dbLinkId':_0x2ab7ce,'total':_0x2c1dd1[_0xe56fa6(0x1e6)],'tables':_0x2c1dd1},'message':_0x2c1dd1[_0xe56fa6(0x1e6)]+_0xe56fa6(0x1e4)+_0x2ab7ce};}};
@@ -1 +1 @@
1
- const a82_0x1b3133=a82_0x22a2;function a82_0x22a2(_0x5621e5,_0x244468){_0x5621e5=_0x5621e5-0x175;const _0x14039a=a82_0x1403();let _0x22a2eb=_0x14039a[_0x5621e5];return _0x22a2eb;}(function(_0x43828f,_0x4ef209){const _0x10a783=a82_0x22a2,_0x55c762=_0x43828f();while(!![]){try{const _0x3308df=-parseInt(_0x10a783(0x18d))/0x1*(-parseInt(_0x10a783(0x181))/0x2)+-parseInt(_0x10a783(0x17f))/0x3*(parseInt(_0x10a783(0x186))/0x4)+-parseInt(_0x10a783(0x18c))/0x5+parseInt(_0x10a783(0x183))/0x6*(-parseInt(_0x10a783(0x188))/0x7)+parseInt(_0x10a783(0x180))/0x8*(parseInt(_0x10a783(0x17a))/0x9)+parseInt(_0x10a783(0x177))/0xa*(-parseInt(_0x10a783(0x17d))/0xb)+parseInt(_0x10a783(0x189))/0xc;if(_0x3308df===_0x4ef209)break;else _0x55c762['push'](_0x55c762['shift']());}catch(_0x42440e){_0x55c762['push'](_0x55c762['shift']());}}}(a82_0x1403,0x192a1));import{testDbLinkConnect}from'../../core/api-client.js';function a82_0x1403(){const _0x2e8c62=['test','msg','297ELAHhQ','\x20(see\x20data.result)','80583lSRGJh','136NIIaVZ','98WqfnzH','success','6cExJLC','Connection\x20OK\x20for\x20db\x20link\x20','Connection\x20check\x20finished\x20for\x20db\x20link\x20','20llEXeI','error','239792wOlbhm','3819360Mhrdpc','code','read','788055JnLgyH','1933cRysGh','length','message','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','data','9830eaiJDg','num','keys','22653CkjlVE'];a82_0x1403=function(){return _0x2e8c62;};return a82_0x1403();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x12a56c){const _0x304a94=a82_0x22a2;if(_0x12a56c===!![]||_0x12a56c===![])return{'success':_0x12a56c};if(_0x12a56c===null||_0x12a56c===undefined)return{'type':typeof _0x12a56c};if(typeof _0x12a56c!=='object')return{'type':typeof _0x12a56c};const _0x3cbeba=_0x12a56c,_0x569cbd=[_0x304a94(0x182),_0x304a94(0x18f),_0x304a94(0x18a),_0x304a94(0x187),_0x304a94(0x17c),_0x304a94(0x176)],_0x5d2356={};for(const _0x3a7f27 of _0x569cbd){if(_0x3a7f27 in _0x3cbeba)_0x5d2356[_0x3a7f27]=_0x3cbeba[_0x3a7f27];}return Object['keys'](_0x5d2356)[_0x304a94(0x18e)]===0x0&&(_0x5d2356[_0x304a94(0x179)]=Object['keys'](_0x3cbeba)['slice'](0x0,0x14)),_0x5d2356;}export const dbTest={'service':'db','command':a82_0x1b3133(0x17b),'description':a82_0x1b3133(0x175),'risk':a82_0x1b3133(0x18b),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x552d57){const _0x5c3352=a82_0x1b3133,_0x508dad=_0x552d57[_0x5c3352(0x178)]('id'),_0x372785=await testDbLinkConnect(_0x508dad),_0x8a945a=_0x372785===!![]||typeof _0x372785==='object'&&_0x372785!==null&&_0x372785[_0x5c3352(0x182)]===!![],_0x4e83d1=summarizeTestConnectResult(_0x372785);return{'ok':!![],'data':{'id':_0x508dad,'connected':Boolean(_0x8a945a),'result':_0x4e83d1},'message':_0x8a945a?_0x5c3352(0x184)+_0x508dad:_0x5c3352(0x185)+_0x508dad+_0x5c3352(0x17e)};}};
1
+ const a84_0x52ab5d=a84_0x1218;(function(_0x4aeaca,_0x466006){const _0x10b915=a84_0x1218,_0x4b9af5=_0x4aeaca();while(!![]){try{const _0x24524e=parseInt(_0x10b915(0x137))/0x1+-parseInt(_0x10b915(0x12e))/0x2+parseInt(_0x10b915(0x123))/0x3*(-parseInt(_0x10b915(0x12d))/0x4)+parseInt(_0x10b915(0x130))/0x5*(parseInt(_0x10b915(0x134))/0x6)+parseInt(_0x10b915(0x13a))/0x7+-parseInt(_0x10b915(0x121))/0x8*(-parseInt(_0x10b915(0x139))/0x9)+parseInt(_0x10b915(0x129))/0xa*(-parseInt(_0x10b915(0x135))/0xb);if(_0x24524e===_0x466006)break;else _0x4b9af5['push'](_0x4b9af5['shift']());}catch(_0x560380){_0x4b9af5['push'](_0x4b9af5['shift']());}}}(a84_0xe128,0x2e341));function a84_0x1218(_0x3bc71f,_0xd4605a){_0x3bc71f=_0x3bc71f-0x120;const _0xe1286b=a84_0xe128();let _0x1218c9=_0xe1286b[_0x3bc71f];return _0x1218c9;}import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x5b54c3){const _0x388c56=a84_0x1218;if(_0x5b54c3===!![]||_0x5b54c3===![])return{'success':_0x5b54c3};if(_0x5b54c3===null||_0x5b54c3===undefined)return{'type':typeof _0x5b54c3};if(typeof _0x5b54c3!=='object')return{'type':typeof _0x5b54c3};const _0x43b867=_0x5b54c3,_0x4023b1=[_0x388c56(0x125),_0x388c56(0x12f),_0x388c56(0x128),_0x388c56(0x136),_0x388c56(0x133),'data'],_0x1a3042={};for(const _0xb4d2f9 of _0x4023b1){if(_0xb4d2f9 in _0x43b867)_0x1a3042[_0xb4d2f9]=_0x43b867[_0xb4d2f9];}return Object['keys'](_0x1a3042)[_0x388c56(0x138)]===0x0&&(_0x1a3042[_0x388c56(0x12c)]=Object[_0x388c56(0x12c)](_0x43b867)[_0x388c56(0x127)](0x0,0x14)),_0x1a3042;}function a84_0xe128(){const _0x2e690e=['slice','code','268240QwyzMM','test','num','keys','4WiFcNz','729228bndWGK','message','1970PUlqcU','\x20(see\x20data.result)','object','msg','4302SJJDLb','44khTuMu','error','184623UiYrly','length','5121Xewldr','2574229sZJmkE','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','104yCfajB','Connection\x20check\x20finished\x20for\x20db\x20link\x20','543318FPzUiW','read','success','Connection\x20OK\x20for\x20db\x20link\x20'];a84_0xe128=function(){return _0x2e690e;};return a84_0xe128();}export const dbTest={'service':'db','command':a84_0x52ab5d(0x12a),'description':a84_0x52ab5d(0x120),'risk':a84_0x52ab5d(0x124),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1aa69d){const _0xf86ad9=a84_0x52ab5d,_0x1d7fe0=_0x1aa69d[_0xf86ad9(0x12b)]('id'),_0x4c1681=await testDbLinkConnect(_0x1d7fe0),_0x592654=_0x4c1681===!![]||typeof _0x4c1681===_0xf86ad9(0x132)&&_0x4c1681!==null&&_0x4c1681['success']===!![],_0x925bc0=summarizeTestConnectResult(_0x4c1681);return{'ok':!![],'data':{'id':_0x1d7fe0,'connected':Boolean(_0x592654),'result':_0x925bc0},'message':_0x592654?_0xf86ad9(0x126)+_0x1d7fe0:_0xf86ad9(0x122)+_0x1d7fe0+_0xf86ad9(0x131)};}};
@@ -1 +1 @@
1
- function a83_0x1c63(_0x17ceb6,_0x407613){_0x17ceb6=_0x17ceb6-0x15d;const _0x455f5a=a83_0x455f();let _0x1c639f=_0x455f5a[_0x17ceb6];return _0x1c639f;}const a83_0x1e33c5=a83_0x1c63;(function(_0x40ac65,_0x3b3977){const _0x2dd5e6=a83_0x1c63,_0x16fa09=_0x40ac65();while(!![]){try{const _0x33493f=parseInt(_0x2dd5e6(0x163))/0x1+parseInt(_0x2dd5e6(0x17e))/0x2*(parseInt(_0x2dd5e6(0x15f))/0x3)+parseInt(_0x2dd5e6(0x16d))/0x4*(-parseInt(_0x2dd5e6(0x179))/0x5)+-parseInt(_0x2dd5e6(0x16f))/0x6+parseInt(_0x2dd5e6(0x169))/0x7*(parseInt(_0x2dd5e6(0x176))/0x8)+-parseInt(_0x2dd5e6(0x15e))/0x9+parseInt(_0x2dd5e6(0x164))/0xa;if(_0x33493f===_0x3b3977)break;else _0x16fa09['push'](_0x16fa09['shift']());}catch(_0x135ed0){_0x16fa09['push'](_0x16fa09['shift']());}}}(a83_0x455f,0x4855e));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';function a83_0x455f(){const _0x301fe1=['validation','dbdesc','305428sVZtrF','3249140GdYCwS','New\x20username','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','dbDesc','string','200459Zipkbb','dburl','POST','username','73356rgkYvi','New\x20description','3336582rOHZfS','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','dbParam','New\x20connection\x20parameter\x20string','str','Updated\x20db\x20link\x20','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','40jdzYMK','dbUrl','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','30SWPwxh','New\x20host:port','dbparam','trim','write','42AnoDWG','num','dbname','dbName','password','New\x20database\x20name','1127619XaLYqZ','44883GFcpUz','update'];a83_0x455f=function(){return _0x301fe1;};return a83_0x455f();}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';export const dbUpdate={'service':'db','command':a83_0x1e33c5(0x160),'description':a83_0x1e33c5(0x170),'risk':a83_0x1e33c5(0x17d),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a83_0x1e33c5(0x180),'type':'string','description':a83_0x1e33c5(0x15d)},{'name':a83_0x1e33c5(0x16a),'type':a83_0x1e33c5(0x168),'description':a83_0x1e33c5(0x17a)},{'name':a83_0x1e33c5(0x16c),'type':a83_0x1e33c5(0x168),'description':a83_0x1e33c5(0x165)},{'name':a83_0x1e33c5(0x182),'type':a83_0x1e33c5(0x168),'description':a83_0x1e33c5(0x166)},{'name':'dbparam','type':'string','description':a83_0x1e33c5(0x172)},{'name':a83_0x1e33c5(0x162),'type':a83_0x1e33c5(0x168),'description':a83_0x1e33c5(0x16e)}],async 'validate'(_0x287637){const _0x3addc1=a83_0x1e33c5,_0x523a79=_0x287637[_0x3addc1(0x173)](_0x3addc1(0x16a));if(_0x523a79&&!validateDbUrl(_0x523a79[_0x3addc1(0x17c)]()))throw CliErrors[_0x3addc1(0x161)](_0x3addc1(0x178)+_0x523a79+'\x22');},async 'dryRun'(_0x5b1956){const _0x4eedde=a83_0x1e33c5,_0x42d2c1=_0x5b1956[_0x4eedde(0x17f)]('id'),_0x3f7664=await getDbLinkInfo(_0x42d2c1),_0x13eb6e={..._0x3f7664},_0x4a5203=_0x5b1956[_0x4eedde(0x173)](_0x4eedde(0x180));if(_0x4a5203)_0x13eb6e[_0x4eedde(0x181)]=_0x4a5203;const _0x18b237=_0x5b1956['str']('dburl');if(_0x18b237)_0x13eb6e[_0x4eedde(0x177)]=_0x18b237[_0x4eedde(0x17c)]();const _0x28de8a=_0x5b1956[_0x4eedde(0x173)](_0x4eedde(0x16c));if(_0x28de8a)_0x13eb6e[_0x4eedde(0x16c)]=_0x28de8a;const _0x3475f0=_0x5b1956[_0x4eedde(0x173)](_0x4eedde(0x182));if(_0x3475f0)_0x13eb6e[_0x4eedde(0x182)]=_0x3475f0;const _0xa10bc9=_0x5b1956['str'](_0x4eedde(0x17b));if(_0xa10bc9)_0x13eb6e[_0x4eedde(0x171)]=_0xa10bc9;const _0x336ead=_0x5b1956[_0x4eedde(0x173)](_0x4eedde(0x162));if(_0x336ead)_0x13eb6e[_0x4eedde(0x167)]=_0x336ead;const _0x351128=sanitizeDbLinkForOutput(_0x13eb6e);return{'method':_0x4eedde(0x16b),'url':'/smartapi/dblink/update','body':_0x351128,'description':_0x4eedde(0x175)};},async 'execute'(_0x383ccb){const _0x4bb853=a83_0x1e33c5,_0x4faedd=_0x383ccb[_0x4bb853(0x17f)]('id'),_0x47d538=await getDbLinkInfo(_0x4faedd),_0x481b08={..._0x47d538},_0x42dad8=_0x383ccb[_0x4bb853(0x173)](_0x4bb853(0x180));if(_0x42dad8)_0x481b08[_0x4bb853(0x181)]=_0x42dad8;const _0x4056e9=_0x383ccb[_0x4bb853(0x173)](_0x4bb853(0x16a));if(_0x4056e9)_0x481b08[_0x4bb853(0x177)]=_0x4056e9[_0x4bb853(0x17c)]();const _0x4672db=_0x383ccb[_0x4bb853(0x173)](_0x4bb853(0x16c));if(_0x4672db)_0x481b08[_0x4bb853(0x16c)]=_0x4672db;const _0x24df2c=_0x383ccb[_0x4bb853(0x173)]('password');if(_0x24df2c)_0x481b08[_0x4bb853(0x182)]=_0x24df2c;const _0xc4ca49=_0x383ccb[_0x4bb853(0x173)](_0x4bb853(0x17b));if(_0xc4ca49)_0x481b08[_0x4bb853(0x171)]=_0xc4ca49;const _0x12fe51=_0x383ccb[_0x4bb853(0x173)](_0x4bb853(0x162));if(_0x12fe51)_0x481b08[_0x4bb853(0x167)]=_0x12fe51;const {id:_0x334848,entity:_0x53ee18}=normalizeEntityWithIdResponse(await updateDbLink(_0x481b08));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x53ee18),'message':_0x4bb853(0x174)+(_0x334848??_0x4faedd)};}};
1
+ const a85_0x34bc47=a85_0x5993;(function(_0x59f230,_0x5007f2){const _0x276e1f=a85_0x5993,_0x7ac07b=_0x59f230();while(!![]){try{const _0x389401=-parseInt(_0x276e1f(0x1d8))/0x1*(parseInt(_0x276e1f(0x1c9))/0x2)+-parseInt(_0x276e1f(0x1e3))/0x3*(-parseInt(_0x276e1f(0x1db))/0x4)+parseInt(_0x276e1f(0x1cc))/0x5*(-parseInt(_0x276e1f(0x1df))/0x6)+-parseInt(_0x276e1f(0x1d9))/0x7+-parseInt(_0x276e1f(0x1ca))/0x8*(parseInt(_0x276e1f(0x1cf))/0x9)+-parseInt(_0x276e1f(0x1d1))/0xa+parseInt(_0x276e1f(0x1dd))/0xb;if(_0x389401===_0x5007f2)break;else _0x7ac07b['push'](_0x7ac07b['shift']());}catch(_0x2d1201){_0x7ac07b['push'](_0x7ac07b['shift']());}}}(a85_0x5a30,0x9af73));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';function a85_0x5993(_0x51b57f,_0x433a83){_0x51b57f=_0x51b57f-0x1c6;const _0x5a3088=a85_0x5a30();let _0x599360=_0x5a3088[_0x51b57f];return _0x599360;}import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a85_0x5a30(){const _0x18e582=['18hXreJU','New\x20host:port','4793180HxccaP','dbUrl','trim','New\x20connection\x20parameter\x20string','New\x20description','New\x20username','POST','36oZHKLH','1011374qkLhTH','dburl','4aZbPWB','dbname','24135276sQzFdp','dbParam','2220POhotc','dbDesc','dbdesc','string','3557247ungpvY','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','update','dbparam','str','num','username','password','20994tthMmH','2863776HvqaCq','New\x20database\x20name','13885dpJaMB','Updated\x20db\x20link\x20','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview'];a85_0x5a30=function(){return _0x18e582;};return a85_0x5a30();}export const dbUpdate={'service':'db','command':a85_0x34bc47(0x1e6),'description':'Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a85_0x34bc47(0x1dc),'type':a85_0x34bc47(0x1e2),'description':a85_0x34bc47(0x1cb)},{'name':a85_0x34bc47(0x1da),'type':'string','description':a85_0x34bc47(0x1d0)},{'name':a85_0x34bc47(0x1c7),'type':a85_0x34bc47(0x1e2),'description':a85_0x34bc47(0x1d6)},{'name':a85_0x34bc47(0x1c8),'type':a85_0x34bc47(0x1e2),'description':a85_0x34bc47(0x1e5)},{'name':a85_0x34bc47(0x1e7),'type':'string','description':a85_0x34bc47(0x1d4)},{'name':a85_0x34bc47(0x1e1),'type':a85_0x34bc47(0x1e2),'description':a85_0x34bc47(0x1d5)}],async 'validate'(_0xe38343){const _0x357a93=a85_0x34bc47,_0x36f4dc=_0xe38343[_0x357a93(0x1e8)]('dburl');if(_0x36f4dc&&!validateDbUrl(_0x36f4dc[_0x357a93(0x1d3)]()))throw CliErrors['validation'](_0x357a93(0x1e4)+_0x36f4dc+'\x22');},async 'dryRun'(_0x2f415b){const _0x697128=a85_0x34bc47,_0x23ea78=_0x2f415b['num']('id'),_0x205ac6=await getDbLinkInfo(_0x23ea78),_0x3e9d89={..._0x205ac6},_0x2245ea=_0x2f415b['str']('dbname');if(_0x2245ea)_0x3e9d89['dbName']=_0x2245ea;const _0x53259e=_0x2f415b[_0x697128(0x1e8)](_0x697128(0x1da));if(_0x53259e)_0x3e9d89['dbUrl']=_0x53259e[_0x697128(0x1d3)]();const _0xb0f277=_0x2f415b[_0x697128(0x1e8)](_0x697128(0x1c7));if(_0xb0f277)_0x3e9d89[_0x697128(0x1c7)]=_0xb0f277;const _0x1ce21a=_0x2f415b[_0x697128(0x1e8)](_0x697128(0x1c8));if(_0x1ce21a)_0x3e9d89['password']=_0x1ce21a;const _0x50b6d6=_0x2f415b[_0x697128(0x1e8)](_0x697128(0x1e7));if(_0x50b6d6)_0x3e9d89['dbParam']=_0x50b6d6;const _0x2660e0=_0x2f415b[_0x697128(0x1e8)](_0x697128(0x1e1));if(_0x2660e0)_0x3e9d89['dbDesc']=_0x2660e0;const _0x354a00=sanitizeDbLinkForOutput(_0x3e9d89);return{'method':_0x697128(0x1d7),'url':'/smartapi/dblink/update','body':_0x354a00,'description':_0x697128(0x1ce)};},async 'execute'(_0x53f38b){const _0x499797=a85_0x34bc47,_0x3bab9b=_0x53f38b[_0x499797(0x1c6)]('id'),_0x1beb88=await getDbLinkInfo(_0x3bab9b),_0x2d4ca1={..._0x1beb88},_0x225962=_0x53f38b[_0x499797(0x1e8)]('dbname');if(_0x225962)_0x2d4ca1['dbName']=_0x225962;const _0x3503e8=_0x53f38b[_0x499797(0x1e8)]('dburl');if(_0x3503e8)_0x2d4ca1[_0x499797(0x1d2)]=_0x3503e8['trim']();const _0x5ca001=_0x53f38b['str'](_0x499797(0x1c7));if(_0x5ca001)_0x2d4ca1[_0x499797(0x1c7)]=_0x5ca001;const _0x42d189=_0x53f38b['str']('password');if(_0x42d189)_0x2d4ca1[_0x499797(0x1c8)]=_0x42d189;const _0x302dff=_0x53f38b[_0x499797(0x1e8)](_0x499797(0x1e7));if(_0x302dff)_0x2d4ca1[_0x499797(0x1de)]=_0x302dff;const _0x12de2f=_0x53f38b[_0x499797(0x1e8)](_0x499797(0x1e1));if(_0x12de2f)_0x2d4ca1[_0x499797(0x1e0)]=_0x12de2f;const {id:_0x34f593,entity:_0x42885f}=normalizeEntityWithIdResponse(await updateDbLink(_0x2d4ca1));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x42885f),'message':_0x499797(0x1cd)+(_0x34f593??_0x3bab9b)};}};
@@ -1 +1 @@
1
- const a84_0x4d4b27=a84_0x4ecf;(function(_0x3554c3,_0x4b2173){const _0x104b54=a84_0x4ecf,_0x598465=_0x3554c3();while(!![]){try{const _0xab986f=-parseInt(_0x104b54(0xb4))/0x1*(parseInt(_0x104b54(0xc6))/0x2)+parseInt(_0x104b54(0xb7))/0x3*(-parseInt(_0x104b54(0xcf))/0x4)+-parseInt(_0x104b54(0xa2))/0x5*(-parseInt(_0x104b54(0xd2))/0x6)+-parseInt(_0x104b54(0xc2))/0x7+-parseInt(_0x104b54(0xce))/0x8+parseInt(_0x104b54(0xa3))/0x9*(-parseInt(_0x104b54(0x9f))/0xa)+parseInt(_0x104b54(0xa9))/0xb;if(_0xab986f===_0x4b2173)break;else _0x598465['push'](_0x598465['shift']());}catch(_0x438c9e){_0x598465['push'](_0x598465['shift']());}}}(a84_0x3f81,0xf2f2d));import a84_0x2f943d 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 a84_0x3f81(){const _0x3f9e11=['message','keys','repeat','Project','(set\x20via\x20file,\x20length=','bold','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','read','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Expired','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Global','\x20\x20─','status','platform','verbose','apps','log','(default)','length','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Apps','✗\x20Not\x20logged\x20in','(not\x20found)','410MReIDR','version','currentApp','8605ZXRHPC','2259qxEhrH','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','defaultApp','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','37394544nuvxyt','slice','check','format','yellow','source','gray','\x20\x20Auth','padEnd','\x20\x20explicitAppName:\x20','env','44791UBCyEJ','green','cookie','1654509cRJRkq','doctor','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','accessKey','(missing)','appCode','(none)','✓\x20Valid','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','riskLevel','3027136uAqlCg','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','78mclIYn','raw','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20(default)','missing','\x20\x20\x20\x20accessKey:\x20\x20','explicitAppName','12643920ylNbHu','4hUFwyX','✗\x20Invalid\x20JSON','value','6684qLuQQb','\x20doctor','arch','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','(set,\x20length=','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'];a84_0x3f81=function(){return _0x3f9e11;};return a84_0x3f81();}async function execute(_0x165e6e){const _0x2a0f4f=a84_0x4ecf,_0x142135=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x2a0f4f(0xaa)](0x0,0xa)+')':VERSION,_0x28b801=buildConfigFromFlags({}),_0x427a73=getCookie();console['log'](),console[_0x2a0f4f(0x95)](a84_0x2f943d[_0x2a0f4f(0x88)](CLI_BIN_NAME+_0x2a0f4f(0xd3))),console[_0x2a0f4f(0x95)](a84_0x2f943d['gray']('─'[_0x2a0f4f(0xdb)](0x32))),console[_0x2a0f4f(0x95)](_0x2a0f4f(0xd6)+_0x142135),console['log']('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x2a0f4f(0xa0)]),console[_0x2a0f4f(0x95)](_0x2a0f4f(0xd8)+process[_0x2a0f4f(0x92)]+'\x20'+process[_0x2a0f4f(0xd4)]),console['log'](),console[_0x2a0f4f(0x95)](a84_0x2f943d[_0x2a0f4f(0x88)]('\x20\x20Config\x20Files')),console[_0x2a0f4f(0x95)](a84_0x2f943d[_0x2a0f4f(0xaf)](_0x2a0f4f(0x90)[_0x2a0f4f(0xdb)](0x1e)));const _0x1a08fb=getGlobalConfigPath(),_0xe794bc=getProjectConfigPath();console['log']('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1a08fb||a84_0x2f943d['gray'](_0x2a0f4f(0x9e)))),console[_0x2a0f4f(0x95)](_0x2a0f4f(0x99)+(_0xe794bc||a84_0x2f943d['gray'](_0x2a0f4f(0x9e)))),console[_0x2a0f4f(0x95)](),console[_0x2a0f4f(0x95)](a84_0x2f943d[_0x2a0f4f(0x88)](_0x2a0f4f(0xa6))),console[_0x2a0f4f(0x95)](a84_0x2f943d[_0x2a0f4f(0xaf)](_0x2a0f4f(0x90)['repeat'](0x1e)));const _0x4f9894=(_0x11ed46,_0x57a584)=>{const _0x315e8d=_0x2a0f4f;if(!_0x57a584){console[_0x315e8d(0x95)]('\x20\x20'+_0x11ed46[_0x315e8d(0xb1)](0x11)+'\x20'+a84_0x2f943d[_0x315e8d(0xaf)]('(no\x20file)'));return;}const _0x2c17b8=inspectCliConfigJsonFile(_0x57a584);if(_0x2c17b8[_0x315e8d(0x91)]==='ok')console[_0x315e8d(0x95)]('\x20\x20'+_0x11ed46[_0x315e8d(0xb1)](0x11)+'\x20'+a84_0x2f943d[_0x315e8d(0xb5)]('✓\x20Valid\x20JSON'));else{if(_0x2c17b8['status']==='empty')console[_0x315e8d(0x95)]('\x20\x20'+_0x11ed46[_0x315e8d(0xb1)](0x11)+'\x20'+a84_0x2f943d[_0x315e8d(0xad)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x2c17b8[_0x315e8d(0x91)]===_0x315e8d(0xcb)?console[_0x315e8d(0x95)]('\x20\x20'+_0x11ed46[_0x315e8d(0xb1)](0x11)+'\x20'+a84_0x2f943d['gray'](_0x315e8d(0xbb))):(console['log']('\x20\x20'+_0x11ed46['padEnd'](0x11)+'\x20'+a84_0x2f943d['red'](_0x315e8d(0xd0))),console[_0x315e8d(0x95)]('\x20\x20'+''[_0x315e8d(0xb1)](0x11)+'\x20'+a84_0x2f943d['red'](_0x2c17b8[_0x315e8d(0xd9)])));}};_0x4f9894(_0x2a0f4f(0x8f),_0x1a08fb),_0x4f9894(_0x2a0f4f(0xdc),_0xe794bc),console['log'](),console[_0x2a0f4f(0x95)](a84_0x2f943d[_0x2a0f4f(0x88)]('\x20\x20Merged\x20Config')),console[_0x2a0f4f(0x95)](a84_0x2f943d[_0x2a0f4f(0xaf)](_0x2a0f4f(0x90)[_0x2a0f4f(0xdb)](0x1e))),console[_0x2a0f4f(0x95)](_0x2a0f4f(0x9b)+(_0x28b801[_0x2a0f4f(0xbc)]||a84_0x2f943d[_0x2a0f4f(0x8a)]('(not\x20set)'))),console['log'](_0x2a0f4f(0x9a)+_0x28b801[_0x2a0f4f(0xb3)]),console['log'](_0x2a0f4f(0x8c)+_0x28b801['locale']),console[_0x2a0f4f(0x95)](_0x2a0f4f(0x89)+_0x28b801[_0x2a0f4f(0xc4)]),console[_0x2a0f4f(0x95)](_0x2a0f4f(0xb9)+(_0x28b801['defaultApp']||a84_0x2f943d['gray'](_0x2a0f4f(0xbd)))),console[_0x2a0f4f(0x95)](_0x2a0f4f(0xa5)+(_0x28b801[_0x2a0f4f(0xa1)]||a84_0x2f943d[_0x2a0f4f(0xaf)](_0x2a0f4f(0xbd)))),console[_0x2a0f4f(0x95)](_0x2a0f4f(0xb2)+(_0x28b801[_0x2a0f4f(0xcd)]||a84_0x2f943d[_0x2a0f4f(0xaf)](_0x2a0f4f(0xbd)))),console[_0x2a0f4f(0x95)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x28b801['format']||a84_0x2f943d[_0x2a0f4f(0xaf)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x2a0f4f(0xac)]+')'))),console[_0x2a0f4f(0x95)](_0x2a0f4f(0x98)+(_0x28b801['pageSize']??a84_0x2f943d[_0x2a0f4f(0xaf)](_0x2a0f4f(0x96)))),console[_0x2a0f4f(0x95)](_0x2a0f4f(0xc8)+_0x28b801[_0x2a0f4f(0xc1)]),console[_0x2a0f4f(0x95)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x28b801[_0x2a0f4f(0x93)]),console[_0x2a0f4f(0x95)](_0x2a0f4f(0xd5)+(_0x28b801[_0x2a0f4f(0xb6)]?a84_0x2f943d[_0x2a0f4f(0xb5)](_0x2a0f4f(0xd7)+_0x28b801[_0x2a0f4f(0xb6)][_0x2a0f4f(0x97)]+')'):_0x427a73?a84_0x2f943d[_0x2a0f4f(0xb5)](_0x2a0f4f(0x87)+_0x427a73[_0x2a0f4f(0x97)]+')'):a84_0x2f943d[_0x2a0f4f(0xaf)](_0x2a0f4f(0xbd))));const _0x5ceab2=Object[_0x2a0f4f(0xda)](_0x28b801[_0x2a0f4f(0x94)]);if(_0x5ceab2[_0x2a0f4f(0x97)]>0x0){console[_0x2a0f4f(0x95)](),console['log'](a84_0x2f943d[_0x2a0f4f(0x88)](_0x2a0f4f(0x9c))),console[_0x2a0f4f(0x95)](a84_0x2f943d[_0x2a0f4f(0xaf)](_0x2a0f4f(0x90)[_0x2a0f4f(0xdb)](0x1e)));for(const _0x31d320 of _0x5ceab2){const _0xbc774d=_0x28b801[_0x2a0f4f(0x94)][_0x31d320],_0x49fbce=_0x31d320===_0x28b801[_0x2a0f4f(0xa7)],_0x5136e7=_0x31d320===_0x28b801['currentApp'],_0x47e7db=_0x5136e7?a84_0x2f943d[_0x2a0f4f(0xb5)]('\x20←\x20current'):'',_0x419a7c=_0x49fbce?_0x2a0f4f(0xca):'';console['log']('\x20\x20'+_0x31d320+_0x419a7c+_0x47e7db),console['log'](_0x2a0f4f(0xc9)+_0xbc774d['appcode']);const _0x4e5e2d=buildAppDoctorFields(_0xbc774d,{'env':_0x28b801[_0x2a0f4f(0xb3)],'apiDir':_0x28b801[_0x2a0f4f(0xc7)][_0x2a0f4f(0xc4)]||DEFAULT_CONFIG_VALUES[_0x2a0f4f(0xc4)],'cookie':_0x28b801['cookie']||_0x427a73||undefined,'accessKey':_0x28b801[_0x2a0f4f(0xba)]});console[_0x2a0f4f(0x95)](_0x2a0f4f(0xc3)+_0x4e5e2d[_0x2a0f4f(0xb3)][_0x2a0f4f(0xd1)]+'\x20\x20'+a84_0x2f943d[_0x2a0f4f(0xaf)]('('+_0x4e5e2d[_0x2a0f4f(0xb3)][_0x2a0f4f(0xae)]+')')),console[_0x2a0f4f(0x95)](_0x2a0f4f(0xc5)+_0x4e5e2d['apiDir'][_0x2a0f4f(0xd1)]+'\x20\x20'+a84_0x2f943d['gray']('('+_0x4e5e2d[_0x2a0f4f(0xc4)]['source']+')'));const _0xedd7d5=_0x4e5e2d['cookie'][_0x2a0f4f(0xd1)]?a84_0x2f943d[_0x2a0f4f(0xb5)](_0x2a0f4f(0xd7)+_0x4e5e2d[_0x2a0f4f(0xb6)][_0x2a0f4f(0xd1)]['length']+')'):a84_0x2f943d[_0x2a0f4f(0xaf)](_0x2a0f4f(0xbd));console[_0x2a0f4f(0x95)](_0x2a0f4f(0xa8)+_0xedd7d5+'\x20\x20'+a84_0x2f943d['gray']('('+_0x4e5e2d[_0x2a0f4f(0xb6)][_0x2a0f4f(0xae)]+')'));const _0x302fe2=_0x4e5e2d[_0x2a0f4f(0xba)][_0x2a0f4f(0xd1)]?a84_0x2f943d[_0x2a0f4f(0xb5)](_0x2a0f4f(0xd7)+_0x4e5e2d['accessKey'][_0x2a0f4f(0xd1)]['length']+')'):a84_0x2f943d[_0x2a0f4f(0xaf)]('(none)');console[_0x2a0f4f(0x95)](_0x2a0f4f(0xcc)+_0x302fe2+'\x20\x20'+a84_0x2f943d[_0x2a0f4f(0xaf)]('('+_0x4e5e2d['accessKey'][_0x2a0f4f(0xae)]+')'));}}console[_0x2a0f4f(0x95)](),console['log'](a84_0x2f943d[_0x2a0f4f(0x88)]('\x20\x20API\x20Endpoints')),console[_0x2a0f4f(0x95)](a84_0x2f943d[_0x2a0f4f(0xaf)]('\x20\x20─'[_0x2a0f4f(0xdb)](0x1e))),console['log'](_0x2a0f4f(0xc0)+getApiDomain()),console[_0x2a0f4f(0x95)](_0x2a0f4f(0xa4)+getUserDomain()),console['log']('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x2a0f4f(0x95)](),console[_0x2a0f4f(0x95)](a84_0x2f943d[_0x2a0f4f(0x88)](_0x2a0f4f(0xb0))),console[_0x2a0f4f(0x95)](a84_0x2f943d['gray'](_0x2a0f4f(0x90)[_0x2a0f4f(0xdb)](0x1e)));if(_0x427a73){const _0x1015e=await getIsSessionValid();console[_0x2a0f4f(0x95)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1015e?a84_0x2f943d['green'](_0x2a0f4f(0xbe)):a84_0x2f943d[_0x2a0f4f(0x8a)](_0x2a0f4f(0x8d))));}else console['log'](_0x2a0f4f(0x8e)+a84_0x2f943d[_0x2a0f4f(0x8a)](_0x2a0f4f(0x9d)));return console['log'](),{'ok':!![]};}function a84_0x4ecf(_0x20efd8,_0x4290ae){_0x20efd8=_0x20efd8-0x87;const _0x3f8149=a84_0x3f81();let _0x4ecf11=_0x3f8149[_0x20efd8];return _0x4ecf11;}export const doctorDefinition={'service':a84_0x4d4b27(0xb8),'command':a84_0x4d4b27(0xab),'description':a84_0x4d4b27(0xbf),'risk':a84_0x4d4b27(0x8b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a86_0x519ca2=a86_0x4c0b;function a86_0x2622(){const _0x584bf8=['(not\x20set)','532635fpGvGv','log','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','value','\x20\x20Config\x20Files','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','gray','bold','currentApp','✗\x20Expired','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','slice','explicitAppName','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','empty','appcode','(set,\x20length=','\x20\x20Config\x20JSON','apps','Global','red','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid','331628RnCBnj','message','✓\x20Valid\x20JSON','(no\x20file)','unknown','repeat','yellow','status','cookie','\x20\x20explicitAppName:\x20','(default:\x20','411564owJiez','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20←\x20current','source','⚠\x20Empty\x20(treated\x20as\x20{})','apiDir','format','\x20\x20\x20\x20accessKey:\x20\x20','(not\x20found)','verbose','873698JRMGTy','read','accessKey','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(default)','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20─','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','locale','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','1356257IBRNiW','(set\x20via\x20file,\x20length=','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','env','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','18XidUKn','\x20\x20Auth','version','keys','padEnd','missing','riskLevel','\x20\x20Apps','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor','✗\x20Not\x20logged\x20in','defaultApp','arch','✗\x20Invalid\x20JSON','2929116EYddZf','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','1100408lEBQqn','platform','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a86_0x2622=function(){return _0x584bf8;};return a86_0x2622();}(function(_0x789746,_0x11eb8d){const _0x566ce5=a86_0x4c0b,_0x5ca5a0=_0x789746();while(!![]){try{const _0x533cb1=parseInt(_0x566ce5(0x1db))/0x1+parseInt(_0x566ce5(0x1f0))/0x2+parseInt(_0x566ce5(0x1e6))/0x3+-parseInt(_0x566ce5(0x1bc))/0x4+-parseInt(_0x566ce5(0x1c2))/0x5+-parseInt(_0x566ce5(0x1ac))/0x6*(-parseInt(_0x566ce5(0x1a6))/0x7)+-parseInt(_0x566ce5(0x1be))/0x8;if(_0x533cb1===_0x11eb8d)break;else _0x5ca5a0['push'](_0x5ca5a0['shift']());}catch(_0x45d806){_0x5ca5a0['push'](_0x5ca5a0['shift']());}}}(a86_0x2622,0x7ca61));import a86_0x52cbc7 from'chalk';function a86_0x4c0b(_0x472de6,_0x2f8a68){_0x472de6=_0x472de6-0x1a3;const _0x2622b5=a86_0x2622();let _0x4c0b6a=_0x2622b5[_0x472de6];return _0x4c0b6a;}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';async function execute(_0x41b3fe){const _0x4bd265=a86_0x4c0b,_0x1416f4=GIT_COMMIT!==_0x4bd265(0x1df)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x4bd265(0x1ce)](0x0,0xa)+')':VERSION,_0x3c4064=buildConfigFromFlags({}),_0x277e4e=getCookie();console[_0x4bd265(0x1c3)](),console['log'](a86_0x52cbc7[_0x4bd265(0x1ca)](CLI_BIN_NAME+_0x4bd265(0x1b7))),console[_0x4bd265(0x1c3)](a86_0x52cbc7[_0x4bd265(0x1c9)]('─'[_0x4bd265(0x1e0)](0x32))),console[_0x4bd265(0x1c3)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x1416f4),console['log'](_0x4bd265(0x1ab)+process[_0x4bd265(0x1ae)]),console[_0x4bd265(0x1c3)](_0x4bd265(0x1c8)+process[_0x4bd265(0x1bf)]+'\x20'+process[_0x4bd265(0x1ba)]),console[_0x4bd265(0x1c3)](),console[_0x4bd265(0x1c3)](a86_0x52cbc7[_0x4bd265(0x1ca)](_0x4bd265(0x1c7))),console[_0x4bd265(0x1c3)](a86_0x52cbc7[_0x4bd265(0x1c9)](_0x4bd265(0x1f8)[_0x4bd265(0x1e0)](0x1e)));const _0x284e4c=getGlobalConfigPath(),_0x381f1e=getProjectConfigPath();console['log'](_0x4bd265(0x1f5)+(_0x284e4c||a86_0x52cbc7[_0x4bd265(0x1c9)](_0x4bd265(0x1ee)))),console[_0x4bd265(0x1c3)](_0x4bd265(0x1cd)+(_0x381f1e||a86_0x52cbc7[_0x4bd265(0x1c9)](_0x4bd265(0x1ee)))),console[_0x4bd265(0x1c3)](),console[_0x4bd265(0x1c3)](a86_0x52cbc7[_0x4bd265(0x1ca)](_0x4bd265(0x1d5))),console[_0x4bd265(0x1c3)](a86_0x52cbc7[_0x4bd265(0x1c9)](_0x4bd265(0x1f8)['repeat'](0x1e)));const _0x4f56dd=(_0x4eb2f0,_0x218aa6)=>{const _0x5a3873=_0x4bd265;if(!_0x218aa6){console[_0x5a3873(0x1c3)]('\x20\x20'+_0x4eb2f0[_0x5a3873(0x1b0)](0x11)+'\x20'+a86_0x52cbc7[_0x5a3873(0x1c9)](_0x5a3873(0x1de)));return;}const _0x48947b=inspectCliConfigJsonFile(_0x218aa6);if(_0x48947b['status']==='ok')console[_0x5a3873(0x1c3)]('\x20\x20'+_0x4eb2f0[_0x5a3873(0x1b0)](0x11)+'\x20'+a86_0x52cbc7['green'](_0x5a3873(0x1dd)));else{if(_0x48947b['status']===_0x5a3873(0x1d2))console[_0x5a3873(0x1c3)]('\x20\x20'+_0x4eb2f0[_0x5a3873(0x1b0)](0x11)+'\x20'+a86_0x52cbc7[_0x5a3873(0x1e1)](_0x5a3873(0x1ea)));else _0x48947b[_0x5a3873(0x1e2)]===_0x5a3873(0x1b1)?console['log']('\x20\x20'+_0x4eb2f0['padEnd'](0x11)+'\x20'+a86_0x52cbc7[_0x5a3873(0x1c9)](_0x5a3873(0x1b5))):(console[_0x5a3873(0x1c3)]('\x20\x20'+_0x4eb2f0[_0x5a3873(0x1b0)](0x11)+'\x20'+a86_0x52cbc7[_0x5a3873(0x1d8)](_0x5a3873(0x1bb))),console[_0x5a3873(0x1c3)]('\x20\x20'+''[_0x5a3873(0x1b0)](0x11)+'\x20'+a86_0x52cbc7[_0x5a3873(0x1d8)](_0x48947b[_0x5a3873(0x1dc)])));}};_0x4f56dd(_0x4bd265(0x1d7),_0x284e4c),_0x4f56dd('Project',_0x381f1e),console[_0x4bd265(0x1c3)](),console[_0x4bd265(0x1c3)](a86_0x52cbc7[_0x4bd265(0x1ca)]('\x20\x20Merged\x20Config')),console[_0x4bd265(0x1c3)](a86_0x52cbc7['gray']('\x20\x20─'[_0x4bd265(0x1e0)](0x1e))),console[_0x4bd265(0x1c3)](_0x4bd265(0x1a8)+(_0x3c4064['appCode']||a86_0x52cbc7[_0x4bd265(0x1d8)](_0x4bd265(0x1c1)))),console[_0x4bd265(0x1c3)](_0x4bd265(0x1b6)+_0x3c4064[_0x4bd265(0x1aa)]),console[_0x4bd265(0x1c3)](_0x4bd265(0x1a3)+_0x3c4064[_0x4bd265(0x1a4)]),console[_0x4bd265(0x1c3)](_0x4bd265(0x1f3)+_0x3c4064[_0x4bd265(0x1eb)]),console[_0x4bd265(0x1c3)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x3c4064['defaultApp']||a86_0x52cbc7[_0x4bd265(0x1c9)](_0x4bd265(0x1a9)))),console[_0x4bd265(0x1c3)](_0x4bd265(0x1e7)+(_0x3c4064[_0x4bd265(0x1cb)]||a86_0x52cbc7['gray'](_0x4bd265(0x1a9)))),console[_0x4bd265(0x1c3)](_0x4bd265(0x1e4)+(_0x3c4064[_0x4bd265(0x1cf)]||a86_0x52cbc7['gray'](_0x4bd265(0x1a9)))),console[_0x4bd265(0x1c3)](_0x4bd265(0x1c0)+(_0x3c4064[_0x4bd265(0x1ec)]||a86_0x52cbc7['gray'](_0x4bd265(0x1e5)+DEFAULT_CONFIG_VALUES[_0x4bd265(0x1ec)]+')'))),console['log'](_0x4bd265(0x1bd)+(_0x3c4064['pageSize']??a86_0x52cbc7[_0x4bd265(0x1c9)]('(default)'))),console[_0x4bd265(0x1c3)](_0x4bd265(0x1d9)+_0x3c4064[_0x4bd265(0x1b2)]),console[_0x4bd265(0x1c3)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3c4064[_0x4bd265(0x1ef)]),console[_0x4bd265(0x1c3)](_0x4bd265(0x1c4)+(_0x3c4064[_0x4bd265(0x1e3)]?a86_0x52cbc7[_0x4bd265(0x1f4)](_0x4bd265(0x1d4)+_0x3c4064[_0x4bd265(0x1e3)][_0x4bd265(0x1c5)]+')'):_0x277e4e?a86_0x52cbc7[_0x4bd265(0x1f4)](_0x4bd265(0x1a7)+_0x277e4e[_0x4bd265(0x1c5)]+')'):a86_0x52cbc7[_0x4bd265(0x1c9)](_0x4bd265(0x1a9))));const _0x48460e=Object[_0x4bd265(0x1af)](_0x3c4064[_0x4bd265(0x1d6)]);if(_0x48460e[_0x4bd265(0x1c5)]>0x0){console[_0x4bd265(0x1c3)](),console['log'](a86_0x52cbc7['bold'](_0x4bd265(0x1b3))),console[_0x4bd265(0x1c3)](a86_0x52cbc7[_0x4bd265(0x1c9)](_0x4bd265(0x1f8)[_0x4bd265(0x1e0)](0x1e)));for(const _0x46fef5 of _0x48460e){const _0x4b4aed=_0x3c4064[_0x4bd265(0x1d6)][_0x46fef5],_0x3e89ba=_0x46fef5===_0x3c4064[_0x4bd265(0x1b9)],_0x4d5ed8=_0x46fef5===_0x3c4064[_0x4bd265(0x1cb)],_0x51732f=_0x4d5ed8?a86_0x52cbc7[_0x4bd265(0x1f4)](_0x4bd265(0x1e8)):'',_0x4a04df=_0x3e89ba?_0x4bd265(0x1f6):'';console['log']('\x20\x20'+_0x46fef5+_0x4a04df+_0x51732f),console[_0x4bd265(0x1c3)](_0x4bd265(0x1a5)+_0x4b4aed[_0x4bd265(0x1d3)]);const _0x35e959=buildAppDoctorFields(_0x4b4aed,{'env':_0x3c4064[_0x4bd265(0x1aa)],'apiDir':_0x3c4064['raw'][_0x4bd265(0x1eb)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x3c4064[_0x4bd265(0x1e3)]||_0x277e4e||undefined,'accessKey':_0x3c4064['accessKey']});console[_0x4bd265(0x1c3)](_0x4bd265(0x1b4)+_0x35e959[_0x4bd265(0x1aa)][_0x4bd265(0x1c6)]+'\x20\x20'+a86_0x52cbc7[_0x4bd265(0x1c9)]('('+_0x35e959['env'][_0x4bd265(0x1e9)]+')')),console['log']('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x35e959['apiDir']['value']+'\x20\x20'+a86_0x52cbc7[_0x4bd265(0x1c9)]('('+_0x35e959[_0x4bd265(0x1eb)][_0x4bd265(0x1e9)]+')'));const _0xa6bdf3=_0x35e959[_0x4bd265(0x1e3)][_0x4bd265(0x1c6)]?a86_0x52cbc7[_0x4bd265(0x1f4)](_0x4bd265(0x1d4)+_0x35e959['cookie'][_0x4bd265(0x1c6)][_0x4bd265(0x1c5)]+')'):a86_0x52cbc7['gray']('(none)');console[_0x4bd265(0x1c3)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0xa6bdf3+'\x20\x20'+a86_0x52cbc7[_0x4bd265(0x1c9)]('('+_0x35e959[_0x4bd265(0x1e3)]['source']+')'));const _0x2a99ac=_0x35e959[_0x4bd265(0x1f2)][_0x4bd265(0x1c6)]?a86_0x52cbc7[_0x4bd265(0x1f4)](_0x4bd265(0x1d4)+_0x35e959['accessKey'][_0x4bd265(0x1c6)][_0x4bd265(0x1c5)]+')'):a86_0x52cbc7[_0x4bd265(0x1c9)](_0x4bd265(0x1a9));console[_0x4bd265(0x1c3)](_0x4bd265(0x1ed)+_0x2a99ac+'\x20\x20'+a86_0x52cbc7['gray']('('+_0x35e959[_0x4bd265(0x1f2)]['source']+')'));}}console[_0x4bd265(0x1c3)](),console[_0x4bd265(0x1c3)](a86_0x52cbc7[_0x4bd265(0x1ca)]('\x20\x20API\x20Endpoints')),console[_0x4bd265(0x1c3)](a86_0x52cbc7[_0x4bd265(0x1c9)](_0x4bd265(0x1f8)[_0x4bd265(0x1e0)](0x1e))),console[_0x4bd265(0x1c3)](_0x4bd265(0x1d1)+getApiDomain()),console[_0x4bd265(0x1c3)](_0x4bd265(0x1d0)+getUserDomain()),console[_0x4bd265(0x1c3)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x4bd265(0x1c3)](),console['log'](a86_0x52cbc7[_0x4bd265(0x1ca)](_0x4bd265(0x1ad))),console['log'](a86_0x52cbc7[_0x4bd265(0x1c9)](_0x4bd265(0x1f8)[_0x4bd265(0x1e0)](0x1e)));if(_0x277e4e){const _0x40cb8e=await getIsSessionValid();console[_0x4bd265(0x1c3)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x40cb8e?a86_0x52cbc7['green'](_0x4bd265(0x1da)):a86_0x52cbc7[_0x4bd265(0x1d8)](_0x4bd265(0x1cc))));}else console[_0x4bd265(0x1c3)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a86_0x52cbc7[_0x4bd265(0x1d8)](_0x4bd265(0x1b8)));return console[_0x4bd265(0x1c3)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':'check','description':a86_0x519ca2(0x1f7),'risk':a86_0x519ca2(0x1f1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a85_0x61a80=a85_0x8ef1;(function(_0x36c8e8,_0xdf7891){const _0x5743fe=a85_0x8ef1,_0x2d3790=_0x36c8e8();while(!![]){try{const _0x24f971=parseInt(_0x5743fe(0x77))/0x1+-parseInt(_0x5743fe(0x90))/0x2*(parseInt(_0x5743fe(0x82))/0x3)+-parseInt(_0x5743fe(0x8b))/0x4*(parseInt(_0x5743fe(0x78))/0x5)+-parseInt(_0x5743fe(0xa3))/0x6*(-parseInt(_0x5743fe(0x8c))/0x7)+parseInt(_0x5743fe(0x93))/0x8*(parseInt(_0x5743fe(0xa1))/0x9)+-parseInt(_0x5743fe(0x7c))/0xa+-parseInt(_0x5743fe(0x95))/0xb*(-parseInt(_0x5743fe(0x8a))/0xc);if(_0x24f971===_0xdf7891)break;else _0x2d3790['push'](_0x2d3790['shift']());}catch(_0x49a6a0){_0x2d3790['push'](_0x2d3790['shift']());}}}(a85_0x5555,0xb995f));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';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 a85_0x8ef1(_0x110e60,_0x918306){_0x110e60=_0x110e60-0x75;const _0x5555ee=a85_0x5555();let _0x8ef1a7=_0x5555ee[_0x110e60];return _0x8ef1a7;}function syntheticApp(_0x3b0d44){return{'appCode':_0x3b0d44,'appName':_0x3b0d44};}function writeInitConfig(_0x2888d4,_0x201ac8,_0x4b593d){const _0x5a7840=a85_0x8ef1,_0x36abe1=resolveWriteConfigPath(_0x2888d4),_0x44748f=buildCanonicalProjectConfig({},{'appCodes':_0x201ac8['map'](_0x57cb9f=>_0x57cb9f['appCode']),'env':_0x4b593d,'metadata':{'version':getCliVersion(),'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0x36abe1,_0x44748f);const _0x25b663=_0x2888d4===_0x5a7840(0xa0)?_0x5a7840(0xa0):_0x5a7840(0x87);console['log'](_0x5a7840(0x76)+_0x25b663+'\x20config'),console['log'](_0x5a7840(0x9d)+_0x201ac8[_0x5a7840(0x7a)](_0x2b36cf=>_0x2b36cf[_0x5a7840(0x98)])[_0x5a7840(0x86)](',\x20')),console[_0x5a7840(0x7f)](_0x5a7840(0x8f)+_0x44748f[_0x5a7840(0x8e)]),console[_0x5a7840(0x7f)](_0x5a7840(0x88)+_0x44748f[_0x5a7840(0x7b)]),console[_0x5a7840(0x7f)](_0x5a7840(0x91)+_0x36abe1);}async function runSmartInit(_0x3aeefa){const _0x216c47=a85_0x8ef1,_0x29e651=process['cwd'](),_0x1ded54=_0x3aeefa[_0x216c47(0x97)](_0x216c47(0xa0))?_0x216c47(0xa0):'project',_0x4ef11=_0x3aeefa[_0x216c47(0x96)](_0x216c47(0x7b))||'production',_0x2669ab=_0x3aeefa[_0x216c47(0x96)](_0x216c47(0x80))||undefined,_0x4c57f4=_0x3aeefa['bool'](_0x216c47(0x87));if(_0x4c57f4){const {initConfig:_0x3838c0}=await import(_0x216c47(0x85));return _0x3838c0({'appcode':_0x2669ab,'env':_0x4ef11,'autoYes':_0x3aeefa['bool']('yes')});}if(_0x1ded54===_0x216c47(0x87)){const _0x3a2710=existsSync(resolve(_0x29e651,NEW_CONFIG_NAME)),_0x44d99b=LEGACY_CONFIG_NAMES['some'](_0x5358da=>existsSync(resolve(_0x29e651,_0x5358da)));if(_0x44d99b&&!_0x3a2710)return console[_0x216c47(0x7f)](_0x216c47(0x9e)),upgradeApp(_0x3aeefa['nonInteractive'],{'yes':_0x3aeefa[_0x216c47(0x97)](_0x216c47(0xa4))});if(_0x3a2710)throw CliErrors['validation'](_0x216c47(0x84),_0x216c47(0x83)+CLI_BIN_NAME+_0x216c47(0x7d));}if(_0x2669ab){const _0x2d9eb1=validateAppcode(_0x2669ab);if(!_0x2d9eb1['valid'])throw CliErrors[_0x216c47(0x9b)](_0x2d9eb1[_0x216c47(0x8d)]);writeInitConfig(_0x1ded54,[syntheticApp(_0x2669ab)],_0x4ef11);return;}if(_0x3aeefa[_0x216c47(0x9f)])throw CliErrors[_0x216c47(0x94)](_0x216c47(0x80),'Usage:\x20'+CLI_BIN_NAME+_0x216c47(0x92));const _0x3861c9=getCookie(),_0x4d2fad=await selectMultipleApps(_0x3861c9),_0x23ef8a=_0x4d2fad===_0x216c47(0x99)?[syntheticApp(await promptCustomAppcode())]:_0x4d2fad;writeInitConfig(_0x1ded54,_0x23ef8a,_0x4ef11);}const initFlags=[{'name':a85_0x61a80(0xa0),'type':'boolean','description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a85_0x61a80(0x7b),'type':a85_0x61a80(0x81),'description':a85_0x61a80(0xa2),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':a85_0x61a80(0x80),'type':a85_0x61a80(0x81),'description':a85_0x61a80(0x75)},{'name':'project','type':a85_0x61a80(0x7e),'description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':'yes','type':a85_0x61a80(0x7e),'description':'Auto-confirm\x20prompts','default':![]}];function a85_0x5555(){const _0x47e200=['string','12gLvqsb','Use\x20`','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','../../commands/project/init.js','join','project','\x20\x20Env:\x20','init','7875564yMPnQj','2721188vyDeoh','21MXMcSx','message','defaultApp','\x20\x20Default:\x20','262322uRpnBd','\x20\x20Config:\x20','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','16gmiFty','flagMissing','11xAmrNv','str','bool','appCode','custom','write','validation','run','\x20\x20Apps:\x20','检测到旧配置文件,正在自动升级...\x0a','nonInteractive','global','6373179JCKzmm','Target\x20environment','900462FjwwTy','yes','App\x20code\x20to\x20initialize\x20with','\x0a✓\x20Successfully\x20initialized\x20','783279gtwaPC','5yGsKGc','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','map','env','13409690XEAooS','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','boolean','log','appcode'];a85_0x5555=function(){return _0x47e200;};return a85_0x5555();}export const initDefinitions=[{'service':a85_0x61a80(0x89),'command':a85_0x61a80(0x9c),'description':a85_0x61a80(0x79),'risk':a85_0x61a80(0x9a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x52be0c){return await runSmartInit(_0x52be0c),{'ok':!![]};}}];
1
+ const a87_0x48c874=a87_0x3fa7;(function(_0x25c52e,_0x12fb4f){const _0x2e5f95=a87_0x3fa7,_0x5acd61=_0x25c52e();while(!![]){try{const _0x23627c=-parseInt(_0x2e5f95(0x8d))/0x1*(-parseInt(_0x2e5f95(0x97))/0x2)+parseInt(_0x2e5f95(0xac))/0x3*(parseInt(_0x2e5f95(0xa3))/0x4)+parseInt(_0x2e5f95(0xa0))/0x5*(parseInt(_0x2e5f95(0xad))/0x6)+parseInt(_0x2e5f95(0xb2))/0x7+parseInt(_0x2e5f95(0x9f))/0x8*(parseInt(_0x2e5f95(0x85))/0x9)+parseInt(_0x2e5f95(0xae))/0xa*(parseInt(_0x2e5f95(0x8c))/0xb)+-parseInt(_0x2e5f95(0xa5))/0xc*(parseInt(_0x2e5f95(0xb0))/0xd);if(_0x23627c===_0x12fb4f)break;else _0x5acd61['push'](_0x5acd61['shift']());}catch(_0xf91eb){_0x5acd61['push'](_0x5acd61['shift']());}}}(a87_0x4a86,0x743ba));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';function a87_0x4a86(){const _0x575306=['nonInteractive','some','join','3sIEwUS','370758DIhxkY','765190weSRQR','boolean','104iWKoOj','global','4875521MIOalc','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','Target\x20environment','env','run','str','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','1259307qfcPAL','appcode','log','\x0a✓\x20Successfully\x20initialized\x20','\x20\x20Default:\x20','string','validation','44XwJKQT','1231DFXzmx','\x20\x20Config:\x20','\x20\x20Env:\x20','flagMissing','bool','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','\x20config','message','yes','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','296KqsRdm','map','\x20\x20Apps:\x20','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','toLocaleString','Auto-confirm\x20prompts','appCode','cwd','8PYvfOO','25dxPZqj','App\x20code\x20to\x20initialize\x20with','project','1331596inirqV','production','2235696wvvOnS','Use\x20`','defaultApp','valid'];a87_0x4a86=function(){return _0x575306;};return a87_0x4a86();}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';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(_0x4a01d0){return{'appCode':_0x4a01d0,'appName':_0x4a01d0};}function writeInitConfig(_0x3322f3,_0x1cf2f6,_0x4e13fd){const _0x54195d=a87_0x3fa7,_0x562ff=resolveWriteConfigPath(_0x3322f3),_0x4c9f4e=buildCanonicalProjectConfig({},{'appCodes':_0x1cf2f6['map'](_0x4f2fc3=>_0x4f2fc3[_0x54195d(0x9d)]),'env':_0x4e13fd,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x54195d(0x9b)]()}});writeConfigFile(_0x562ff,_0x4c9f4e);const _0x4fa737=_0x3322f3===_0x54195d(0xb1)?'global':_0x54195d(0xa2);console[_0x54195d(0x87)](_0x54195d(0x88)+_0x4fa737+_0x54195d(0x93)),console[_0x54195d(0x87)](_0x54195d(0x99)+_0x1cf2f6[_0x54195d(0x98)](_0x207881=>_0x207881[_0x54195d(0x9d)])[_0x54195d(0xab)](',\x20')),console[_0x54195d(0x87)](_0x54195d(0x89)+_0x4c9f4e[_0x54195d(0xa7)]),console['log'](_0x54195d(0x8f)+_0x4c9f4e[_0x54195d(0xb5)]),console[_0x54195d(0x87)](_0x54195d(0x8e)+_0x562ff);}async function runSmartInit(_0x3cf9f5){const _0x64cb0c=a87_0x3fa7,_0xd9c4ac=process[_0x64cb0c(0x9e)](),_0x4c1ef7=_0x3cf9f5[_0x64cb0c(0x91)](_0x64cb0c(0xb1))?_0x64cb0c(0xb1):_0x64cb0c(0xa2),_0x392b56=_0x3cf9f5[_0x64cb0c(0xb7)]('env')||'production',_0x441b14=_0x3cf9f5['str'](_0x64cb0c(0x86))||undefined,_0x4550ed=_0x3cf9f5[_0x64cb0c(0x91)](_0x64cb0c(0xa2));if(_0x4550ed){const {initConfig:_0x29e546}=await import('../../commands/project/init.js');return _0x29e546({'appcode':_0x441b14,'env':_0x392b56,'autoYes':_0x3cf9f5[_0x64cb0c(0x91)](_0x64cb0c(0x95))});}if(_0x4c1ef7==='project'){const _0x27add6=existsSync(resolve(_0xd9c4ac,NEW_CONFIG_NAME)),_0x44e60c=LEGACY_CONFIG_NAMES[_0x64cb0c(0xaa)](_0x2c8879=>existsSync(resolve(_0xd9c4ac,_0x2c8879)));if(_0x44e60c&&!_0x27add6)return console[_0x64cb0c(0x87)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x3cf9f5[_0x64cb0c(0xa9)],{'yes':_0x3cf9f5[_0x64cb0c(0x91)]('yes')});if(_0x27add6)throw CliErrors[_0x64cb0c(0x8b)](_0x64cb0c(0xb8),_0x64cb0c(0xa6)+CLI_BIN_NAME+_0x64cb0c(0x92));}if(_0x441b14){const _0x2ca624=validateAppcode(_0x441b14);if(!_0x2ca624[_0x64cb0c(0xa8)])throw CliErrors['validation'](_0x2ca624[_0x64cb0c(0x94)]);writeInitConfig(_0x4c1ef7,[syntheticApp(_0x441b14)],_0x392b56);return;}if(_0x3cf9f5[_0x64cb0c(0xa9)])throw CliErrors[_0x64cb0c(0x90)](_0x64cb0c(0x86),'Usage:\x20'+CLI_BIN_NAME+_0x64cb0c(0x96));const _0x33f8a0=getCookie(),_0xbd06fe=await selectMultipleApps(_0x33f8a0),_0x281331=_0xbd06fe==='custom'?[syntheticApp(await promptCustomAppcode())]:_0xbd06fe;writeInitConfig(_0x4c1ef7,_0x281331,_0x392b56);}const initFlags=[{'name':a87_0x48c874(0xb1),'type':a87_0x48c874(0xaf),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a87_0x48c874(0xb5),'type':'string','description':a87_0x48c874(0xb4),'default':a87_0x48c874(0xa4),'enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':a87_0x48c874(0x8a),'description':a87_0x48c874(0xa1)},{'name':a87_0x48c874(0xa2),'type':a87_0x48c874(0xaf),'description':a87_0x48c874(0x9a),'default':![]},{'name':a87_0x48c874(0x95),'type':a87_0x48c874(0xaf),'description':a87_0x48c874(0x9c),'default':![]}];function a87_0x3fa7(_0x275c4b,_0x421d62){_0x275c4b=_0x275c4b-0x85;const _0x4a863a=a87_0x4a86();let _0x3fa7bd=_0x4a863a[_0x275c4b];return _0x3fa7bd;}export const initDefinitions=[{'service':'init','command':a87_0x48c874(0xb6),'description':a87_0x48c874(0xb3),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x15e513){return await runSmartInit(_0x15e513),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x1a0d3d,_0xa73152){const _0x3d718d=a86_0x4ad3,_0xd5f60c=_0x1a0d3d();while(!![]){try{const _0x482224=-parseInt(_0x3d718d(0x70))/0x1*(-parseInt(_0x3d718d(0x76))/0x2)+parseInt(_0x3d718d(0x6f))/0x3+parseInt(_0x3d718d(0x73))/0x4+-parseInt(_0x3d718d(0x71))/0x5*(parseInt(_0x3d718d(0x75))/0x6)+parseInt(_0x3d718d(0x6c))/0x7+parseInt(_0x3d718d(0x6e))/0x8*(parseInt(_0x3d718d(0x6d))/0x9)+-parseInt(_0x3d718d(0x74))/0xa*(parseInt(_0x3d718d(0x72))/0xb);if(_0x482224===_0xa73152)break;else _0xd5f60c['push'](_0xd5f60c['shift']());}catch(_0x16715f){_0xd5f60c['push'](_0xd5f60c['shift']());}}}(a86_0x2bbe,0x830c6));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];function a86_0x4ad3(_0xaeef19,_0x2eef49){_0xaeef19=_0xaeef19-0x6c;const _0x2bbe30=a86_0x2bbe();let _0x4ad332=_0x2bbe30[_0xaeef19];return _0x4ad332;}function a86_0x2bbe(){const _0x4a67ae=['2749292vwqniN','3735Mnhzeu','9368XGFhuB','1128456ufJtkb','2kivptQ','10pFiaIa','18435967lVNijO','443760WPHcmL','10TnHnGs','394104tiuykw','978326WJdqGD'];a86_0x2bbe=function(){return _0x4a67ae;};return a86_0x2bbe();}
1
+ (function(_0x5a7047,_0x57ca03){const _0x4bf004=a88_0x42bd,_0x564f93=_0x5a7047();while(!![]){try{const _0x4b2b48=parseInt(_0x4bf004(0x99))/0x1*(parseInt(_0x4bf004(0x9c))/0x2)+-parseInt(_0x4bf004(0x95))/0x3*(-parseInt(_0x4bf004(0x9e))/0x4)+-parseInt(_0x4bf004(0x98))/0x5+parseInt(_0x4bf004(0x9d))/0x6*(-parseInt(_0x4bf004(0x9a))/0x7)+-parseInt(_0x4bf004(0x96))/0x8+-parseInt(_0x4bf004(0x9b))/0x9+-parseInt(_0x4bf004(0x9f))/0xa*(-parseInt(_0x4bf004(0x97))/0xb);if(_0x4b2b48===_0x57ca03)break;else _0x564f93['push'](_0x564f93['shift']());}catch(_0x6b8c67){_0x564f93['push'](_0x564f93['shift']());}}}(a88_0x33c3,0x372bb));import{issueReport}from'../../commands/issue/report.js';function a88_0x42bd(_0x1fb944,_0x3fadfe){_0x1fb944=_0x1fb944-0x95;const _0x33c38e=a88_0x33c3();let _0x42bdf1=_0x33c38e[_0x1fb944];return _0x42bdf1;}export const issueDefinitions=[issueReport];function a88_0x33c3(){const _0x3a084d=['100631CSbwNd','511jInkHg','474813WFWHHo','2dOqdom','12018XqNnLZ','1668HgexNl','10HxEIdX','636cKrjmk','2848408KCFsCG','8866451OzhryD','1070350OmCzni'];a88_0x33c3=function(){return _0x3a084d;};return a88_0x33c3();}
@@ -1 +1 @@
1
- const a87_0x4631bc=a87_0x47f1;(function(_0x39857c,_0xbbfb75){const _0x351db3=a87_0x47f1,_0x40bc6b=_0x39857c();while(!![]){try{const _0x17da6a=parseInt(_0x351db3(0xac))/0x1+-parseInt(_0x351db3(0xa4))/0x2*(-parseInt(_0x351db3(0xbc))/0x3)+parseInt(_0x351db3(0xb7))/0x4*(parseInt(_0x351db3(0xbd))/0x5)+-parseInt(_0x351db3(0xab))/0x6+parseInt(_0x351db3(0xc0))/0x7+-parseInt(_0x351db3(0xa3))/0x8+-parseInt(_0x351db3(0xb3))/0x9*(-parseInt(_0x351db3(0xb0))/0xa);if(_0x17da6a===_0xbbfb75)break;else _0x40bc6b['push'](_0x40bc6b['shift']());}catch(_0x5ea1b7){_0x40bc6b['push'](_0x40bc6b['shift']());}}}(a87_0x8694,0x692e9));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a87_0x4631bc(0xa2);const NUDGE_SUPPRESSED_CODES=new Set([a87_0x4631bc(0xa6),a87_0x4631bc(0xae),a87_0x4631bc(0xc1),'not_in_project',a87_0x4631bc(0xb1),a87_0x4631bc(0xa9),a87_0x4631bc(0xaf),a87_0x4631bc(0xb2)]),defaultWriter=_0x46be7e=>{const _0x1f9304=a87_0x4631bc;process[_0x1f9304(0xaa)][_0x1f9304(0xbb)](_0x46be7e);};export function shouldNudgeForError(_0x4cbc44,_0x1558e2){const _0x132011=a87_0x4631bc;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x1558e2[_0x132011(0xa8)]==='issue'&&_0x1558e2[_0x132011(0xa1)]===_0x132011(0xbf))return![];if(_0x4cbc44 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x132011(0xa0)](_0x4cbc44[_0x132011(0xa5)]);return!![];}function a87_0x8694(){const _0xcf2071=['message','replace','255876hbGGQO','length','\x20\x20Set\x20','\x20issue\x20report\x20\x5c','write','203979fpTFoX','30QpIcZs','trim','report','4176571CzGvHJ','config_missing','has','command','RABETBASE_DISABLE_ISSUE_NUDGE','6616416stzjfM','4CxNZkA','code','cancelled','slice','service','flag_missing','stderr','4101432UoqanT','729143UnrWzz','=1\x20to\x20silence\x20this\x20hint.','auth_required','validation_error','890xpdRdc','unknown_command','network_error','9693ycxrbT','\x20\x20\x20\x20--title\x20\x22'];a87_0x8694=function(){return _0xcf2071;};return a87_0x8694();}function a87_0x47f1(_0x6e7f9,_0x26fdd6){_0x6e7f9=_0x6e7f9-0xa0;const _0x8694ce=a87_0x8694();let _0x47f188=_0x8694ce[_0x6e7f9];return _0x47f188;}export function printIssueReportNudgeForError(_0x4a441f,_0x30ea4a,_0x3b2f47=defaultWriter){if(!shouldNudgeForError(_0x4a441f,_0x30ea4a))return;const _0x77663=buildSuggestedTitle(_0x4a441f,_0x30ea4a);_0x3b2f47(formatNudge(_0x77663));}function buildSuggestedTitle(_0x2f3add,_0x4fe452){const _0x239b93=a87_0x4631bc,_0x1a838b=_0x2f3add instanceof Error?_0x2f3add[_0x239b93(0xb5)]:String(_0x2f3add),_0x127100=_0x1a838b[_0x239b93(0xb6)](/[\r\n]+/g,'\x20')[_0x239b93(0xb6)](/\s+/g,'\x20')[_0x239b93(0xbe)]()[_0x239b93(0xa7)](0x0,0x78)[_0x239b93(0xb6)](/"/g,'\x5c\x22'),_0x3da592=CLI_BIN_NAME+'\x20'+_0x4fe452['service']+'\x20'+_0x4fe452[_0x239b93(0xa1)];return _0x127100[_0x239b93(0xb8)]>0x0?_0x3da592+':\x20'+_0x127100:_0x3da592;}function formatNudge(_0x328c0e){const _0x3714c8=a87_0x4631bc;return['','Hit\x20a\x20'+CLI_BIN_NAME+'\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20'+CLI_BIN_NAME+_0x3714c8(0xba),_0x3714c8(0xb4)+_0x328c0e+'\x22\x20\x5c','\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.)',_0x3714c8(0xb9)+NUDGE_OPT_OUT_ENV+_0x3714c8(0xad),'']['join']('\x0a');}
1
+ const a89_0x4b4a45=a89_0x14e2;(function(_0x5ac4f3,_0xfa0fa9){const _0x4de888=a89_0x14e2,_0x560959=_0x5ac4f3();while(!![]){try{const _0x2985ab=parseInt(_0x4de888(0x13a))/0x1+parseInt(_0x4de888(0x134))/0x2*(parseInt(_0x4de888(0x126))/0x3)+-parseInt(_0x4de888(0x11c))/0x4+-parseInt(_0x4de888(0x13f))/0x5*(parseInt(_0x4de888(0x131))/0x6)+-parseInt(_0x4de888(0x129))/0x7+parseInt(_0x4de888(0x11d))/0x8*(parseInt(_0x4de888(0x136))/0x9)+parseInt(_0x4de888(0x140))/0xa;if(_0x2985ab===_0xfa0fa9)break;else _0x560959['push'](_0x560959['shift']());}catch(_0x20d59f){_0x560959['push'](_0x560959['shift']());}}}(a89_0x3848,0xec4ac));import{CliError}from'../../errors.js';function a89_0x14e2(_0x5088c6,_0x203e55){_0x5088c6=_0x5088c6-0x11c;const _0x38485b=a89_0x3848();let _0x14e29=_0x38485b[_0x5088c6];return _0x14e29;}import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV='RABETBASE_DISABLE_ISSUE_NUDGE';function a89_0x3848(){const _0x517539=['stderr','auth_required','436659NyYhrd','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','command','message','network_error','5LmzDnD','1207100KSfuMf','replace','2641160KCliCV','199000ouqbfv','=1\x20to\x20silence\x20this\x20hint.','\x22\x20\x5c','issue','code','write','Hit\x20a\x20','report','trim','1739034qaIfFg','slice','cancelled','5814865cOIavR','length','flag_missing','config_missing','service','join','\x20\x20Set\x20','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','2562078ZKNIbF','\x20issue\x20report\x20\x5c','\x20\x20\x20\x20--title\x20\x22','4BOgvrC','unknown_command','423MrlfsE','not_in_project'];a89_0x3848=function(){return _0x517539;};return a89_0x3848();}const NUDGE_SUPPRESSED_CODES=new Set([a89_0x4b4a45(0x128),a89_0x4b4a45(0x139),a89_0x4b4a45(0x12c),a89_0x4b4a45(0x137),a89_0x4b4a45(0x135),a89_0x4b4a45(0x12b),'validation_error',a89_0x4b4a45(0x13e)]),defaultWriter=_0x261ccd=>{const _0x3b75f9=a89_0x4b4a45;process[_0x3b75f9(0x138)][_0x3b75f9(0x122)](_0x261ccd);};export function shouldNudgeForError(_0x49fd71,_0x26dbb2){const _0x41db8e=a89_0x4b4a45;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x26dbb2[_0x41db8e(0x12d)]===_0x41db8e(0x120)&&_0x26dbb2['command']===_0x41db8e(0x124))return![];if(_0x49fd71 instanceof CliError)return!NUDGE_SUPPRESSED_CODES['has'](_0x49fd71[_0x41db8e(0x121)]);return!![];}export function printIssueReportNudgeForError(_0x3a7237,_0x22cbea,_0x2b7d46=defaultWriter){if(!shouldNudgeForError(_0x3a7237,_0x22cbea))return;const _0x5217f5=buildSuggestedTitle(_0x3a7237,_0x22cbea);_0x2b7d46(formatNudge(_0x5217f5));}function buildSuggestedTitle(_0x80d78b,_0x791a2b){const _0x3b4154=a89_0x4b4a45,_0x395be0=_0x80d78b instanceof Error?_0x80d78b[_0x3b4154(0x13d)]:String(_0x80d78b),_0x15220f=_0x395be0['replace'](/[\r\n]+/g,'\x20')[_0x3b4154(0x141)](/\s+/g,'\x20')[_0x3b4154(0x125)]()[_0x3b4154(0x127)](0x0,0x78)[_0x3b4154(0x141)](/"/g,'\x5c\x22'),_0x28baf2=CLI_BIN_NAME+'\x20'+_0x791a2b[_0x3b4154(0x12d)]+'\x20'+_0x791a2b[_0x3b4154(0x13c)];return _0x15220f[_0x3b4154(0x12a)]>0x0?_0x28baf2+':\x20'+_0x15220f:_0x28baf2;}function formatNudge(_0x22f376){const _0x34c100=a89_0x4b4a45;return['',_0x34c100(0x123)+CLI_BIN_NAME+'\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20'+CLI_BIN_NAME+_0x34c100(0x132),_0x34c100(0x133)+_0x22f376+_0x34c100(0x11f),_0x34c100(0x130),_0x34c100(0x13b),_0x34c100(0x12f)+NUDGE_OPT_OUT_ENV+_0x34c100(0x11e),''][_0x34c100(0x12e)]('\x0a');}
@@ -1 +1 @@
1
- const a88_0xeb74a0=a88_0x1d33;(function(_0x7db727,_0x4fd9ef){const _0xee95e3=a88_0x1d33,_0x44c704=_0x7db727();while(!![]){try{const _0x170be0=parseInt(_0xee95e3(0x1b1))/0x1+parseInt(_0xee95e3(0x1c4))/0x2+parseInt(_0xee95e3(0x1c1))/0x3*(-parseInt(_0xee95e3(0x1d7))/0x4)+parseInt(_0xee95e3(0x1a5))/0x5+parseInt(_0xee95e3(0x1d6))/0x6+-parseInt(_0xee95e3(0x1d2))/0x7*(-parseInt(_0xee95e3(0x1ca))/0x8)+-parseInt(_0xee95e3(0x1b5))/0x9*(parseInt(_0xee95e3(0x1d0))/0xa);if(_0x170be0===_0x4fd9ef)break;else _0x44c704['push'](_0x44c704['shift']());}catch(_0x203181){_0x44c704['push'](_0x44c704['shift']());}}}(a88_0x3db1,0xe76ef));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';function a88_0x1d33(_0x363f8e,_0x39e456){_0x363f8e=_0x363f8e-0x19c;const _0x3db133=a88_0x3db1();let _0x1d33db=_0x3db133[_0x363f8e];return _0x1d33db;}const DESCRIPTION_FILE_FLAG=a88_0xeb74a0(0x1b3);export const issueReport={'service':a88_0xeb74a0(0x1a8),'command':a88_0xeb74a0(0x1aa),'description':a88_0xeb74a0(0x1b2),'risk':a88_0xeb74a0(0x1c7),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a88_0xeb74a0(0x19d),'flags':[{'name':a88_0xeb74a0(0x1cd),'type':'string','required':!![],'description':'One-line\x20issue\x20summary'},{'name':a88_0xeb74a0(0x1bc),'type':a88_0xeb74a0(0x1d3),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a88_0xeb74a0(0x1d3),'description':a88_0xeb74a0(0x1d9)}],async 'validate'(_0x126800){const _0x112258=a88_0xeb74a0,_0x581b69=_0x126800[_0x112258(0x1a7)]('title')[_0x112258(0x1c2)](),_0x501ce4=_0x126800[_0x112258(0x1a7)]('description')[_0x112258(0x1c2)](),_0x29e3e0=_0x126800['str'](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x581b69)throw CliErrors[_0x112258(0x1c0)]('title',_0x112258(0x1a6));const _0x49fa16=_0x501ce4[_0x112258(0x19f)]>0x0,_0x5d1edf=_0x29e3e0['length']>0x0;if(_0x49fa16===_0x5d1edf)throw CliErrors[_0x112258(0x1ae)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0x112258(0x1a1));if(_0x5d1edf){const _0x425210=resolve(process[_0x112258(0x19c)](),_0x29e3e0);if(!existsSync(_0x425210))throw CliErrors['validation'](_0x112258(0x1ac)+_0x425210);}},async 'dryRun'(_0x1b5736){const _0x585c4c=a88_0xeb74a0,_0x2e63ee=await prepareIssueReport(_0x1b5736);return{'method':_0x585c4c(0x1cf),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2e63ee[_0x585c4c(0x1cd)],'issue.description':_0x2e63ee[_0x585c4c(0x1bc)],'issue.description_original_bytes':_0x2e63ee[_0x585c4c(0x1c5)][_0x585c4c(0x1b4)],'issue.description_truncated':_0x2e63ee[_0x585c4c(0x1c5)][_0x585c4c(0x1b8)],'issue.description_redactions':_0x2e63ee[_0x585c4c(0x1c5)][_0x585c4c(0x1a9)],'issue.description_redaction_kinds':_0x2e63ee[_0x585c4c(0x1c5)]['redactionKinds']['join'](',')}},'description':[_0x585c4c(0x1b0),'descriptionSource:\x20'+_0x2e63ee[_0x585c4c(0x1c6)],_0x2e63ee['descriptionFilePath']?_0x585c4c(0x1ad)+_0x2e63ee[_0x585c4c(0x1d5)]:null,_0x2e63ee[_0x585c4c(0x1c5)]['truncated']?_0x585c4c(0x1ce)+_0x2e63ee[_0x585c4c(0x1c5)]['originalBytes']+_0x585c4c(0x1a2):null,_0x2e63ee[_0x585c4c(0x1c5)][_0x585c4c(0x1a9)]>0x0?'redactions:\x20'+_0x2e63ee[_0x585c4c(0x1c5)][_0x585c4c(0x1a9)]+'\x20('+_0x2e63ee[_0x585c4c(0x1c5)][_0x585c4c(0x1bd)][_0x585c4c(0x1d8)](',\x20')+')':null][_0x585c4c(0x1a4)](Boolean)[_0x585c4c(0x1d8)]('\x0a')};},async 'execute'(_0x1ccb82){const _0x11b4a1=a88_0xeb74a0,_0x35a525=await prepareIssueReport(_0x1ccb82);try{await sendPlatformIssueCollectLog({'title':_0x35a525['title'],'description':_0x35a525['description'],'sanitize':{'originalBytes':_0x35a525['sanitize'][_0x11b4a1(0x1b4)],'truncated':_0x35a525['sanitize'][_0x11b4a1(0x1b8)],'redactionCount':_0x35a525[_0x11b4a1(0x1c5)][_0x11b4a1(0x1a9)],'redactionKinds':_0x35a525[_0x11b4a1(0x1c5)][_0x11b4a1(0x1bd)]}});}catch(_0x3f7273){throw CliErrors[_0x11b4a1(0x1a0)](_0x11b4a1(0x19e)+(_0x3f7273 instanceof Error?_0x3f7273[_0x11b4a1(0x1bf)]:String(_0x3f7273)),_0x11b4a1(0x1b9));}return{'ok':!![],'message':buildResultMessage(_0x35a525[_0x11b4a1(0x1c5)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x11b4a1(0x1bb),_0x11b4a1(0x1c3),_0x11b4a1(0x1af),_0x11b4a1(0x1b7),_0x11b4a1(0x1d1),'issue.description_redaction_kinds'],'issue':{'title':_0x35a525[_0x11b4a1(0x1cd)],'descriptionLength':_0x35a525[_0x11b4a1(0x1bc)][_0x11b4a1(0x19f)],'descriptionSource':_0x35a525[_0x11b4a1(0x1c6)],..._0x35a525['descriptionFilePath']?{'descriptionFile':_0x35a525[_0x11b4a1(0x1d5)]}:{},'sanitize':{'originalBytes':_0x35a525['sanitize'][_0x11b4a1(0x1b4)],'truncated':_0x35a525[_0x11b4a1(0x1c5)]['truncated'],'redactions':_0x35a525[_0x11b4a1(0x1c5)][_0x11b4a1(0x1a9)],'redactionKinds':_0x35a525[_0x11b4a1(0x1c5)][_0x11b4a1(0x1bd)]}}}};}};function buildResultMessage(_0x3827ae){const _0x76f4ba=a88_0xeb74a0,_0x159833=[];return _0x3827ae[_0x76f4ba(0x1b8)]&&_0x159833[_0x76f4ba(0x1b6)](_0x76f4ba(0x1da)+_0x3827ae[_0x76f4ba(0x1b4)]+_0x76f4ba(0x1a2)),_0x3827ae[_0x76f4ba(0x1a9)]>0x0&&_0x159833['push'](_0x76f4ba(0x1ab)+_0x3827ae['redactionCount']+_0x76f4ba(0x1a3)+_0x3827ae[_0x76f4ba(0x1bd)][_0x76f4ba(0x1d8)](',\x20')),_0x159833[_0x76f4ba(0x19f)]===0x0?_0x76f4ba(0x1c8):_0x76f4ba(0x1d4)+_0x159833[_0x76f4ba(0x1d8)](';\x20')+')';}function a88_0x3db1(){const _0x3a4c8e=['Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','message','flagMissing','3973773VqnnlM','trim','issue.description','2582506ajHRRL','sanitize','descriptionSource','write','Platform\x20issue\x20reported','file','136JMIVJU','Issue\x20description\x20file\x20is\x20empty:\x20','inline','title','truncated:\x20original\x20','POST','2580BVnaet','issue.description_redactions','159586GdAnTl','string','Platform\x20issue\x20reported\x20(','descriptionFilePath','8129172rFhWqP','4NtELMo','join','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','truncated\x20from\x20','cwd','compress','Failed\x20to\x20report\x20platform\x20issue:\x20','length','apiError','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','\x20bytes','\x20secret(s):\x20','filter','2650660eUvDGP','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','str','issue','redactionCount','report','redacted\x20','File\x20not\x20found:\x20','descriptionFile:\x20','validation','issue.description_original_bytes','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','1817371ZELZvx','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','description-file','originalBytes','108441syOnum','push','issue.description_truncated','truncated','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','utf8','issue.title','description','redactionKinds'];a88_0x3db1=function(){return _0x3a4c8e;};return a88_0x3db1();}async function prepareIssueReport(_0x972c1f){const _0x3b2db6=a88_0xeb74a0,_0x2d661b=_0x972c1f[_0x3b2db6(0x1a7)](_0x3b2db6(0x1cd))[_0x3b2db6(0x1c2)](),_0x413f21=_0x972c1f[_0x3b2db6(0x1a7)](_0x3b2db6(0x1bc)),_0x7612fa=_0x972c1f[_0x3b2db6(0x1a7)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x7612fa){const _0x55e0b8=_0x413f21;if(!_0x55e0b8['trim']())throw CliErrors['validation']('Issue\x20description\x20cannot\x20be\x20empty.','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');const _0x251578=sanitizeIssueDescription(_0x55e0b8);return{'title':_0x2d661b,'description':_0x251578['description'],'descriptionSource':_0x3b2db6(0x1cc),'sanitize':_0x251578};}const _0x3ac229=resolve(process['cwd'](),_0x7612fa),_0x3943eb=await readFile(_0x3ac229,_0x3b2db6(0x1ba));if(!_0x3943eb[_0x3b2db6(0x1c2)]())throw CliErrors[_0x3b2db6(0x1ae)](_0x3b2db6(0x1cb)+_0x3ac229,_0x3b2db6(0x1be));const _0x45c5cb=sanitizeIssueDescription(_0x3943eb);return{'title':_0x2d661b,'description':_0x45c5cb['description'],'descriptionSource':_0x3b2db6(0x1c9),'descriptionFilePath':_0x3ac229,'sanitize':_0x45c5cb};}
1
+ const a90_0xcb6f2f=a90_0x8dbb;function a90_0x8dbb(_0x4b271f,_0x497e59){_0x4b271f=_0x4b271f-0x1b9;const _0x2c553d=a90_0x2c55();let _0x8dbb43=_0x2c553d[_0x4b271f];return _0x8dbb43;}(function(_0x824d46,_0x50df70){const _0x274235=a90_0x8dbb,_0x23761f=_0x824d46();while(!![]){try{const _0x2ae261=parseInt(_0x274235(0x1d4))/0x1*(-parseInt(_0x274235(0x1e5))/0x2)+parseInt(_0x274235(0x1eb))/0x3+parseInt(_0x274235(0x1ec))/0x4+parseInt(_0x274235(0x1c8))/0x5+parseInt(_0x274235(0x1c2))/0x6+-parseInt(_0x274235(0x1ba))/0x7*(-parseInt(_0x274235(0x1cb))/0x8)+-parseInt(_0x274235(0x1e1))/0x9;if(_0x2ae261===_0x50df70)break;else _0x23761f['push'](_0x23761f['shift']());}catch(_0x2b3307){_0x23761f['push'](_0x23761f['shift']());}}}(a90_0x2c55,0x7f30c));import{existsSync}from'node:fs';function a90_0x2c55(){const _0x3eccb6=['sanitize','1005955kauUKF','compress','utf8','12976SKvSDP','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','join','file','descriptionSource','validation','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','Platform\x20issue\x20reported','flagMissing','11426azrIoG','truncated\x20from\x20','str','redactions:\x20','otel://','issue.title','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','redacted\x20','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','One-line\x20issue\x20summary','originalBytes','length','filter','10219329dWUpyH','truncated','trim','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','86VwVuiy','Issue\x20description\x20cannot\x20be\x20empty.','redactionCount','issue.description_original_bytes','description','descriptionFile:\x20','1118217qAkBGa','1402696ttVZxa','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','title','Failed\x20to\x20report\x20platform\x20issue:\x20','description-file','2177MSNLWC','issue.description','issue.description_redaction_kinds','descriptionSource:\x20','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','\x20secret(s):\x20','descriptionFilePath','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','4312350UDoolx','issue','redactionKinds','push','\x20bytes'];a90_0x2c55=function(){return _0x3eccb6;};return a90_0x2c55();}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=a90_0xcb6f2f(0x1b9);export const issueReport={'service':a90_0xcb6f2f(0x1c3),'command':'report','description':a90_0xcb6f2f(0x1c1),'risk':'write','requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a90_0xcb6f2f(0x1c9),'flags':[{'name':'title','type':'string','required':!![],'description':a90_0xcb6f2f(0x1dd)},{'name':'description','type':'string','description':a90_0xcb6f2f(0x1e4)},{'name':DESCRIPTION_FILE_FLAG,'type':'string','description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x5dc654){const _0x2fccdb=a90_0xcb6f2f,_0x12de6a=_0x5dc654[_0x2fccdb(0x1d6)](_0x2fccdb(0x1ee))[_0x2fccdb(0x1e3)](),_0x4cb21d=_0x5dc654[_0x2fccdb(0x1d6)](_0x2fccdb(0x1e9))[_0x2fccdb(0x1e3)](),_0x2cbe17=_0x5dc654[_0x2fccdb(0x1d6)](DESCRIPTION_FILE_FLAG)[_0x2fccdb(0x1e3)]();if(!_0x12de6a)throw CliErrors[_0x2fccdb(0x1d3)](_0x2fccdb(0x1ee),_0x2fccdb(0x1dc));const _0xde2cc1=_0x4cb21d[_0x2fccdb(0x1df)]>0x0,_0x41e3f3=_0x2cbe17[_0x2fccdb(0x1df)]>0x0;if(_0xde2cc1===_0x41e3f3)throw CliErrors[_0x2fccdb(0x1d0)](_0x2fccdb(0x1ed),_0x2fccdb(0x1d1));if(_0x41e3f3){const _0x43de0c=resolve(process['cwd'](),_0x2cbe17);if(!existsSync(_0x43de0c))throw CliErrors['validation']('File\x20not\x20found:\x20'+_0x43de0c);}},async 'dryRun'(_0x2569ac){const _0x19a38c=a90_0xcb6f2f,_0x99b893=await prepareIssueReport(_0x2569ac);return{'method':'POST','url':_0x19a38c(0x1d8)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x99b893[_0x19a38c(0x1ee)],'issue.description':_0x99b893[_0x19a38c(0x1e9)],'issue.description_original_bytes':_0x99b893[_0x19a38c(0x1c7)][_0x19a38c(0x1de)],'issue.description_truncated':_0x99b893['sanitize'][_0x19a38c(0x1e2)],'issue.description_redactions':_0x99b893[_0x19a38c(0x1c7)][_0x19a38c(0x1e7)],'issue.description_redaction_kinds':_0x99b893[_0x19a38c(0x1c7)][_0x19a38c(0x1c4)][_0x19a38c(0x1cd)](',')}},'description':[_0x19a38c(0x1be),_0x19a38c(0x1bd)+_0x99b893[_0x19a38c(0x1cf)],_0x99b893[_0x19a38c(0x1c0)]?_0x19a38c(0x1ea)+_0x99b893[_0x19a38c(0x1c0)]:null,_0x99b893[_0x19a38c(0x1c7)][_0x19a38c(0x1e2)]?'truncated:\x20original\x20'+_0x99b893[_0x19a38c(0x1c7)][_0x19a38c(0x1de)]+_0x19a38c(0x1c6):null,_0x99b893['sanitize'][_0x19a38c(0x1e7)]>0x0?_0x19a38c(0x1d7)+_0x99b893['sanitize'][_0x19a38c(0x1e7)]+'\x20('+_0x99b893[_0x19a38c(0x1c7)][_0x19a38c(0x1c4)][_0x19a38c(0x1cd)](',\x20')+')':null][_0x19a38c(0x1e0)](Boolean)[_0x19a38c(0x1cd)]('\x0a')};},async 'execute'(_0x37ea5e){const _0x1eae71=a90_0xcb6f2f,_0x592b57=await prepareIssueReport(_0x37ea5e);try{await sendPlatformIssueCollectLog({'title':_0x592b57['title'],'description':_0x592b57[_0x1eae71(0x1e9)],'sanitize':{'originalBytes':_0x592b57[_0x1eae71(0x1c7)][_0x1eae71(0x1de)],'truncated':_0x592b57[_0x1eae71(0x1c7)][_0x1eae71(0x1e2)],'redactionCount':_0x592b57[_0x1eae71(0x1c7)][_0x1eae71(0x1e7)],'redactionKinds':_0x592b57[_0x1eae71(0x1c7)]['redactionKinds']}});}catch(_0x19e504){throw CliErrors['apiError'](_0x1eae71(0x1ef)+(_0x19e504 instanceof Error?_0x19e504['message']:String(_0x19e504)),_0x1eae71(0x1da));}return{'ok':!![],'message':buildResultMessage(_0x592b57['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x1eae71(0x1d9),_0x1eae71(0x1bb),_0x1eae71(0x1e8),'issue.description_truncated','issue.description_redactions',_0x1eae71(0x1bc)],'issue':{'title':_0x592b57['title'],'descriptionLength':_0x592b57[_0x1eae71(0x1e9)][_0x1eae71(0x1df)],'descriptionSource':_0x592b57[_0x1eae71(0x1cf)],..._0x592b57[_0x1eae71(0x1c0)]?{'descriptionFile':_0x592b57[_0x1eae71(0x1c0)]}:{},'sanitize':{'originalBytes':_0x592b57['sanitize']['originalBytes'],'truncated':_0x592b57[_0x1eae71(0x1c7)]['truncated'],'redactions':_0x592b57[_0x1eae71(0x1c7)]['redactionCount'],'redactionKinds':_0x592b57[_0x1eae71(0x1c7)][_0x1eae71(0x1c4)]}}}};}};function buildResultMessage(_0x337967){const _0x1d2463=a90_0xcb6f2f,_0x3d913a=[];return _0x337967[_0x1d2463(0x1e2)]&&_0x3d913a[_0x1d2463(0x1c5)](_0x1d2463(0x1d5)+_0x337967[_0x1d2463(0x1de)]+_0x1d2463(0x1c6)),_0x337967[_0x1d2463(0x1e7)]>0x0&&_0x3d913a[_0x1d2463(0x1c5)](_0x1d2463(0x1db)+_0x337967['redactionCount']+_0x1d2463(0x1bf)+_0x337967['redactionKinds'][_0x1d2463(0x1cd)](',\x20')),_0x3d913a['length']===0x0?_0x1d2463(0x1d2):'Platform\x20issue\x20reported\x20('+_0x3d913a['join'](';\x20')+')';}async function prepareIssueReport(_0x4732db){const _0x2f67ca=a90_0xcb6f2f,_0x3ad09a=_0x4732db[_0x2f67ca(0x1d6)]('title')[_0x2f67ca(0x1e3)](),_0x4ea735=_0x4732db[_0x2f67ca(0x1d6)](_0x2f67ca(0x1e9)),_0xab9735=_0x4732db[_0x2f67ca(0x1d6)](DESCRIPTION_FILE_FLAG)[_0x2f67ca(0x1e3)]();if(!_0xab9735){const _0x1efe22=_0x4ea735;if(!_0x1efe22[_0x2f67ca(0x1e3)]())throw CliErrors[_0x2f67ca(0x1d0)](_0x2f67ca(0x1e6),_0x2f67ca(0x1cc));const _0x1fc505=sanitizeIssueDescription(_0x1efe22);return{'title':_0x3ad09a,'description':_0x1fc505[_0x2f67ca(0x1e9)],'descriptionSource':'inline','sanitize':_0x1fc505};}const _0x493fbc=resolve(process['cwd'](),_0xab9735),_0xbbb074=await readFile(_0x493fbc,_0x2f67ca(0x1ca));if(!_0xbbb074['trim']())throw CliErrors[_0x2f67ca(0x1d0)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x493fbc,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x44e1d8=sanitizeIssueDescription(_0xbbb074);return{'title':_0x3ad09a,'description':_0x44e1d8['description'],'descriptionSource':_0x2f67ca(0x1ce),'descriptionFilePath':_0x493fbc,'sanitize':_0x44e1d8};}
@@ -1 +1 @@
1
- function a89_0x101d(){const _0x157c55=['224BAbujT','private-key','authorization','kind','286345tdYtVr','bearer-jwt','string','pattern','push','3965706JZwyHv','114630VyVrVH','byteLength','10gxbMnh','48238553PszqDN','replace','password','REDACTED:authorization','1036233gmIMtZ','subarray','313812eFlfIM','184TtepFj','REDACTED:cookie','REDACTED:password','toString','max','cookie','includes','350242XQEXtU','REDACTED:private-key','REDACTED:access-key','REDACTED:bearer-jwt','80jMZiZl','utf8'];a89_0x101d=function(){return _0x157c55;};return a89_0x101d();}const a89_0x4ffd6c=a89_0x398d;(function(_0x47ed26,_0x1ef3c2){const _0xa08bbd=a89_0x398d,_0x4f1938=_0x47ed26();while(!![]){try{const _0x59e91f=-parseInt(_0xa08bbd(0x111))/0x1+parseInt(_0xa08bbd(0xfa))/0x2+-parseInt(_0xa08bbd(0x109))/0x3+parseInt(_0xa08bbd(0xfe))/0x4*(-parseInt(_0xa08bbd(0x104))/0x5)+parseInt(_0xa08bbd(0x10a))/0x6*(parseInt(_0xa08bbd(0x100))/0x7)+-parseInt(_0xa08bbd(0x114))/0x8*(parseInt(_0xa08bbd(0x113))/0x9)+-parseInt(_0xa08bbd(0x10c))/0xa*(-parseInt(_0xa08bbd(0x10d))/0xb);if(_0x59e91f===_0x1ef3c2)break;else _0x4f1938['push'](_0x4f1938['shift']());}catch(_0x249ae2){_0x4f1938['push'](_0x4f1938['shift']());}}}(a89_0x101d,0xd3815));function a89_0x398d(_0x4dbeed,_0x34e9f7){_0x4dbeed=_0x4dbeed-0xf7;const _0x101d60=a89_0x101d();let _0x398d2f=_0x101d60[_0x4dbeed];return _0x398d2f;}export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':a89_0x4ffd6c(0xf8),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a89_0x4ffd6c(0x115)},{'kind':a89_0x4ffd6c(0x102),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a89_0x4ffd6c(0x110)},{'kind':a89_0x4ffd6c(0x101),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a89_0x4ffd6c(0xfb)},{'kind':'access-key','pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a89_0x4ffd6c(0xfc)},{'kind':a89_0x4ffd6c(0x10f),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a89_0x4ffd6c(0x116)},{'kind':a89_0x4ffd6c(0x105),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a89_0x4ffd6c(0xfd)}];export function sanitizeIssueDescription(_0x33bbee){const _0x49072c=a89_0x4ffd6c,_0x27f663=Buffer['byteLength'](_0x33bbee,_0x49072c(0xff)),_0x4e703f=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x425edb=_0x33bbee,_0x251f84=0x0;const _0x3fef89=[];if(!_0x4e703f)for(const _0x4a40f3 of REDACTION_RULES){let _0x54496c=0x0;_0x425edb=_0x425edb[_0x49072c(0x10e)](_0x4a40f3[_0x49072c(0x107)],(_0x274a45,_0x124ea1)=>{const _0x45e768=_0x49072c;_0x54496c+=0x1;const _0x3e06d7=typeof _0x124ea1===_0x45e768(0x106)?_0x124ea1:'';return _0x3e06d7+'['+_0x4a40f3['label']+']';}),_0x54496c>0x0&&(_0x251f84+=_0x54496c,!_0x3fef89[_0x49072c(0xf9)](_0x4a40f3[_0x49072c(0x103)])&&_0x3fef89[_0x49072c(0x108)](_0x4a40f3[_0x49072c(0x103)]));}let _0x16367f=![];if(Buffer[_0x49072c(0x10b)](_0x425edb,_0x49072c(0xff))>ISSUE_DESCRIPTION_MAX_BYTES){_0x16367f=!![];const _0xbc75c3=Buffer[_0x49072c(0x10b)](TRUNCATION_NOTICE,_0x49072c(0xff)),_0x50ebbe=Math[_0x49072c(0xf7)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0xbc75c3);_0x425edb=sliceUtf8Bytes(_0x425edb,_0x50ebbe)+TRUNCATION_NOTICE;}return{'description':_0x425edb,'originalBytes':_0x27f663,'truncated':_0x16367f,'redactionCount':_0x251f84,'redactionKinds':_0x3fef89};}function sliceUtf8Bytes(_0x2444a7,_0x5cff16){const _0x59c008=a89_0x4ffd6c;if(_0x5cff16<=0x0)return'';const _0xbe8ba7=Buffer['from'](_0x2444a7,'utf8');if(_0xbe8ba7[_0x59c008(0x10b)]<=_0x5cff16)return _0x2444a7;let _0x3983d7=_0x5cff16;while(_0x3983d7>0x0){const _0x4d4150=_0xbe8ba7[_0x3983d7];if(_0x4d4150===undefined||(_0x4d4150&0xc0)!==0x80)break;_0x3983d7-=0x1;}return _0xbe8ba7[_0x59c008(0x112)](0x0,_0x3983d7)[_0x59c008(0x117)]('utf8');}
1
+ const a91_0x45af1e=a91_0x53e6;(function(_0x45c0d9,_0x404fa3){const _0x5ded27=a91_0x53e6,_0x3ca083=_0x45c0d9();while(!![]){try{const _0x25829e=parseInt(_0x5ded27(0x206))/0x1+parseInt(_0x5ded27(0x1f7))/0x2+parseInt(_0x5ded27(0x1f0))/0x3*(-parseInt(_0x5ded27(0x1f3))/0x4)+parseInt(_0x5ded27(0x1f6))/0x5+parseInt(_0x5ded27(0x1f8))/0x6*(-parseInt(_0x5ded27(0x1f4))/0x7)+parseInt(_0x5ded27(0x1f2))/0x8+parseInt(_0x5ded27(0x1f1))/0x9*(-parseInt(_0x5ded27(0x1ff))/0xa);if(_0x25829e===_0x404fa3)break;else _0x3ca083['push'](_0x3ca083['shift']());}catch(_0x3b47d9){_0x3ca083['push'](_0x3ca083['shift']());}}}(a91_0x2039,0xdefe3));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a91_0x45af1e(0x205),REDACTION_RULES=[{'kind':a91_0x45af1e(0x203),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a91_0x45af1e(0x200)},{'kind':a91_0x45af1e(0x20c),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':a91_0x45af1e(0x1fb),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a91_0x45af1e(0x204),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':'REDACTED:access-key'},{'kind':a91_0x45af1e(0x1f9),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':a91_0x45af1e(0x209),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a91_0x45af1e(0x1fd)}];function a91_0x2039(){const _0x5bf897=['push','5152740oZLrCa','REDACTED:cookie','from','toString','cookie','access-key','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','1705144UWugQk','subarray','string','bearer-jwt','utf8','byteLength','authorization','135oUWWxz','18QWunJt','6729048LnoAki','127160DuGXsj','1239CqJQzJ','kind','2104605qVBPyJ','1384856jTDObK','9666APWJGZ','password','includes','private-key','pattern','REDACTED:bearer-jwt'];a91_0x2039=function(){return _0x5bf897;};return a91_0x2039();}function a91_0x53e6(_0x15181f,_0x2ba07c){_0x15181f=_0x15181f-0x1f0;const _0x203981=a91_0x2039();let _0x53e68e=_0x203981[_0x15181f];return _0x53e68e;}export function sanitizeIssueDescription(_0xbdd46f){const _0x302183=a91_0x45af1e,_0x5c2b69=Buffer[_0x302183(0x20b)](_0xbdd46f,_0x302183(0x20a)),_0x2f8d9e=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x4ef590=_0xbdd46f,_0x3ed0c4=0x0;const _0x448ee8=[];if(!_0x2f8d9e)for(const _0x167337 of REDACTION_RULES){let _0x1e98d3=0x0;_0x4ef590=_0x4ef590['replace'](_0x167337[_0x302183(0x1fc)],(_0x374214,_0x597364)=>{const _0xef7b85=_0x302183;_0x1e98d3+=0x1;const _0x3fbe21=typeof _0x597364===_0xef7b85(0x208)?_0x597364:'';return _0x3fbe21+'['+_0x167337['label']+']';}),_0x1e98d3>0x0&&(_0x3ed0c4+=_0x1e98d3,!_0x448ee8[_0x302183(0x1fa)](_0x167337[_0x302183(0x1f5)])&&_0x448ee8[_0x302183(0x1fe)](_0x167337[_0x302183(0x1f5)]));}let _0x21c3cc=![];if(Buffer[_0x302183(0x20b)](_0x4ef590,'utf8')>ISSUE_DESCRIPTION_MAX_BYTES){_0x21c3cc=!![];const _0x385be6=Buffer[_0x302183(0x20b)](TRUNCATION_NOTICE,_0x302183(0x20a)),_0x10cc24=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x385be6);_0x4ef590=sliceUtf8Bytes(_0x4ef590,_0x10cc24)+TRUNCATION_NOTICE;}return{'description':_0x4ef590,'originalBytes':_0x5c2b69,'truncated':_0x21c3cc,'redactionCount':_0x3ed0c4,'redactionKinds':_0x448ee8};}function sliceUtf8Bytes(_0x2db948,_0x454148){const _0x5f4e96=a91_0x45af1e;if(_0x454148<=0x0)return'';const _0x4862ed=Buffer[_0x5f4e96(0x201)](_0x2db948,_0x5f4e96(0x20a));if(_0x4862ed['byteLength']<=_0x454148)return _0x2db948;let _0x5b6d6e=_0x454148;while(_0x5b6d6e>0x0){const _0x2b98dd=_0x4862ed[_0x5b6d6e];if(_0x2b98dd===undefined||(_0x2b98dd&0xc0)!==0x80)break;_0x5b6d6e-=0x1;}return _0x4862ed[_0x5f4e96(0x207)](0x0,_0x5b6d6e)[_0x5f4e96(0x202)](_0x5f4e96(0x20a));}
@@ -1 +1 @@
1
- const a90_0x130787=a90_0xa5d2;(function(_0x3c3656,_0x24baa5){const _0x476a68=a90_0xa5d2,_0x1bb951=_0x3c3656();while(!![]){try{const _0x9ad893=-parseInt(_0x476a68(0x184))/0x1+parseInt(_0x476a68(0x171))/0x2+-parseInt(_0x476a68(0x16c))/0x3*(parseInt(_0x476a68(0x185))/0x4)+parseInt(_0x476a68(0x182))/0x5+parseInt(_0x476a68(0x16b))/0x6*(parseInt(_0x476a68(0x188))/0x7)+parseInt(_0x476a68(0x17c))/0x8*(-parseInt(_0x476a68(0x17d))/0x9)+parseInt(_0x476a68(0x172))/0xa;if(_0x9ad893===_0x24baa5)break;else _0x1bb951['push'](_0x1bb951['shift']());}catch(_0x42185b){_0x1bb951['push'](_0x1bb951['shift']());}}}(a90_0xf8d5,0x4ef06));import{logger}from'../../utils/logger.js';function a90_0xa5d2(_0x131610,_0x41875f){_0x131610=_0x131610-0x16a;const _0xf8d5b7=a90_0xf8d5();let _0xa5d2af=_0xf8d5b7[_0x131610];return _0xa5d2af;}function printLogs(_0x66391e){const _0x52ced3=a90_0xa5d2;if(_0x66391e[_0x52ced3(0x189)]===0x0){console[_0x52ced3(0x177)](_0x52ced3(0x176));return;}console[_0x52ced3(0x177)](_0x52ced3(0x180)),_0x66391e['forEach']((_0xf071bc,_0x4cf655)=>{const _0x510d98=_0x52ced3,_0x111711=new Date(_0xf071bc[_0x510d98(0x17a)])[_0x510d98(0x178)](_0x510d98(0x16d)),_0x58b495=_0xf071bc['level']==='success'?'√':_0xf071bc['level']===_0x510d98(0x17f)?'×':_0xf071bc[_0x510d98(0x181)]==='warn'?'!':'i';console[_0x510d98(0x177)](_0x4cf655+0x1+'.\x20'+_0x58b495+'\x20['+_0xf071bc[_0x510d98(0x17e)]+']\x20'+_0xf071bc[_0x510d98(0x18b)]),console[_0x510d98(0x177)](_0x510d98(0x186)+_0x111711),_0xf071bc[_0x510d98(0x175)]&&console[_0x510d98(0x177)](_0x510d98(0x170)+_0xf071bc[_0x510d98(0x175)]+'ms'),_0xf071bc[_0x510d98(0x187)]&&Object[_0x510d98(0x16f)](_0xf071bc[_0x510d98(0x187)])['length']>0x0&&console[_0x510d98(0x177)](_0x510d98(0x183)+JSON[_0x510d98(0x18c)](_0xf071bc['details'],null,0x2)),console[_0x510d98(0x177)]('');});}export const logsDefinitions=[{'service':a90_0x130787(0x173),'command':'show','description':a90_0x130787(0x16a),'risk':a90_0x130787(0x18a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2b986d){const _0x1d0397=a90_0x130787;return printLogs(logger[_0x1d0397(0x179)]()),{'ok':!![]};}},{'service':'logs','command':a90_0x130787(0x16e),'description':a90_0x130787(0x174),'risk':a90_0x130787(0x17b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x51d2ad){const _0x4dd89c=a90_0x130787;return logger['clearLogs'](),console[_0x4dd89c(0x177)]('*\x20Logs\x20cleared'),{'ok':!![]};}}];function a90_0xf8d5(){const _0x18fac3=['*\x20Lovrabet\x20CLI\x20logs:\x0a','level','1249970ZsFnpi','\x20\x20\x20Details:\x20','165806SldrbO','996924lebUim','\x20\x20\x20Time:\x20','details','608846UXOoxA','length','read','message','stringify','View\x20command\x20history\x20logs','42IBQYLA','6bupOyI','en-US','clear','keys','\x20\x20\x20Duration:\x20','517668UvnsyC','758850PeZaxu','logs','Clear\x20command\x20history\x20logs','duration','*\x20No\x20logs\x20found','log','toLocaleString','readLogs','timestamp','write','8eWfYHt','1853613OUATWD','command','error'];a90_0xf8d5=function(){return _0x18fac3;};return a90_0xf8d5();}
1
+ const a92_0x26c203=a92_0xb2e9;function a92_0xb2e9(_0x54051c,_0x148d2){_0x54051c=_0x54051c-0x75;const _0x22cce0=a92_0x22cc();let _0xb2e987=_0x22cce0[_0x54051c];return _0xb2e987;}(function(_0xb61c56,_0x4e6544){const _0x2a41ed=a92_0xb2e9,_0x13691c=_0xb61c56();while(!![]){try{const _0x26b74b=parseInt(_0x2a41ed(0x7e))/0x1*(-parseInt(_0x2a41ed(0x77))/0x2)+parseInt(_0x2a41ed(0x88))/0x3+parseInt(_0x2a41ed(0x7a))/0x4+-parseInt(_0x2a41ed(0x95))/0x5+parseInt(_0x2a41ed(0x8c))/0x6*(-parseInt(_0x2a41ed(0x7b))/0x7)+parseInt(_0x2a41ed(0x85))/0x8*(-parseInt(_0x2a41ed(0x84))/0x9)+parseInt(_0x2a41ed(0x93))/0xa;if(_0x26b74b===_0x4e6544)break;else _0x13691c['push'](_0x13691c['shift']());}catch(_0x30ee08){_0x13691c['push'](_0x13691c['shift']());}}}(a92_0x22cc,0x7a86f));import{logger}from'../../utils/logger.js';function a92_0x22cc(){const _0x3d0a05=['clearLogs','success','\x20\x20\x20Duration:\x20','\x20\x20\x20Details:\x20','read','14147860RnlepI','duration','3855480EKMMnP','command','toLocaleString','232JIynWl','en-US','level','2481168IAksjX','1064497phWaHJ','write','stringify','1464cfpfTA','details','Clear\x20command\x20history\x20logs','clear','length','error','18gWzthi','3843656vYXPdW','forEach','log','2474520vGDQiN','*\x20Logs\x20cleared','keys','show','18JoStYo','logs'];a92_0x22cc=function(){return _0x3d0a05;};return a92_0x22cc();}function printLogs(_0x58c054){const _0x15bef6=a92_0xb2e9;if(_0x58c054[_0x15bef6(0x82)]===0x0){console['log']('*\x20No\x20logs\x20found');return;}console[_0x15bef6(0x87)]('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0x58c054[_0x15bef6(0x86)]((_0x54b3ad,_0x4bc911)=>{const _0x5d8f2d=_0x15bef6,_0x507598=new Date(_0x54b3ad['timestamp'])[_0x5d8f2d(0x76)](_0x5d8f2d(0x78)),_0x9f188a=_0x54b3ad[_0x5d8f2d(0x79)]===_0x5d8f2d(0x8f)?'√':_0x54b3ad[_0x5d8f2d(0x79)]===_0x5d8f2d(0x83)?'×':_0x54b3ad[_0x5d8f2d(0x79)]==='warn'?'!':'i';console[_0x5d8f2d(0x87)](_0x4bc911+0x1+'.\x20'+_0x9f188a+'\x20['+_0x54b3ad[_0x5d8f2d(0x75)]+']\x20'+_0x54b3ad['message']),console[_0x5d8f2d(0x87)]('\x20\x20\x20Time:\x20'+_0x507598),_0x54b3ad[_0x5d8f2d(0x94)]&&console[_0x5d8f2d(0x87)](_0x5d8f2d(0x90)+_0x54b3ad[_0x5d8f2d(0x94)]+'ms'),_0x54b3ad[_0x5d8f2d(0x7f)]&&Object[_0x5d8f2d(0x8a)](_0x54b3ad[_0x5d8f2d(0x7f)])[_0x5d8f2d(0x82)]>0x0&&console[_0x5d8f2d(0x87)](_0x5d8f2d(0x91)+JSON[_0x5d8f2d(0x7d)](_0x54b3ad[_0x5d8f2d(0x7f)],null,0x2)),console[_0x5d8f2d(0x87)]('');});}export const logsDefinitions=[{'service':a92_0x26c203(0x8d),'command':a92_0x26c203(0x8b),'description':'View\x20command\x20history\x20logs','risk':a92_0x26c203(0x92),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x546f59){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':a92_0x26c203(0x8d),'command':a92_0x26c203(0x81),'description':a92_0x26c203(0x80),'risk':a92_0x26c203(0x7c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4bcf92){const _0x599046=a92_0x26c203;return logger[_0x599046(0x8e)](),console[_0x599046(0x87)](_0x599046(0x89)),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x54f7ad,_0x25ecf5){const _0xcc80e6=a91_0x2ded,_0x1a6fd9=_0x54f7ad();while(!![]){try{const _0x4a182a=-parseInt(_0xcc80e6(0x7b))/0x1*(-parseInt(_0xcc80e6(0x7d))/0x2)+parseInt(_0xcc80e6(0x7c))/0x3+parseInt(_0xcc80e6(0x7f))/0x4+parseInt(_0xcc80e6(0x78))/0x5+parseInt(_0xcc80e6(0x7a))/0x6+parseInt(_0xcc80e6(0x79))/0x7+-parseInt(_0xcc80e6(0x7e))/0x8;if(_0x4a182a===_0x25ecf5)break;else _0x1a6fd9['push'](_0x1a6fd9['shift']());}catch(_0x51e55b){_0x1a6fd9['push'](_0x1a6fd9['shift']());}}}(a91_0x4564,0xeeb2c));import{menuList}from'../../commands/menu/list.js';function a91_0x2ded(_0x3ce19c,_0x491af3){_0x3ce19c=_0x3ce19c-0x78;const _0x45640d=a91_0x4564();let _0x2ded4e=_0x45640d[_0x3ce19c];return _0x2ded4e;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];function a91_0x4564(){const _0x5de903=['50802008MIZOcX','7504664kbmjsp','762805cJKIEe','10783605ZbVMdF','1810110LRPXtr','1773295wTesQD','5051211xQaoAb','2XgzzpW'];a91_0x4564=function(){return _0x5de903;};return a91_0x4564();}
1
+ (function(_0x4d80c0,_0x30b27e){const _0x404c81=a93_0x52fd,_0x27f694=_0x4d80c0();while(!![]){try{const _0x1a36b1=-parseInt(_0x404c81(0x179))/0x1*(parseInt(_0x404c81(0x176))/0x2)+parseInt(_0x404c81(0x17e))/0x3+-parseInt(_0x404c81(0x17a))/0x4*(parseInt(_0x404c81(0x17b))/0x5)+-parseInt(_0x404c81(0x177))/0x6+parseInt(_0x404c81(0x17d))/0x7+parseInt(_0x404c81(0x17f))/0x8*(parseInt(_0x404c81(0x17c))/0x9)+-parseInt(_0x404c81(0x178))/0xa;if(_0x1a36b1===_0x30b27e)break;else _0x27f694['push'](_0x27f694['shift']());}catch(_0x437f0f){_0x27f694['push'](_0x27f694['shift']());}}}(a93_0x2b6c,0xe6a27));function a93_0x2b6c(){const _0x49e60e=['665733uJDauY','3080568inIXYB','12mBiadU','1012356QwIEWm','1293990wSZjjS','81935ZnndCI','3669308iGyoQa','5iDVUtQ','27CBKFYF','8922319nhIcTc'];a93_0x2b6c=function(){return _0x49e60e;};return a93_0x2b6c();}import{menuList}from'../../commands/menu/list.js';import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';function a93_0x52fd(_0x33f16b,_0x444440){_0x33f16b=_0x33f16b-0x176;const _0x2b6c59=a93_0x2b6c();let _0x52fddc=_0x2b6c59[_0x33f16b];return _0x52fddc;}export const menuDefinitions=[menuList,menuSync,menuUpdate];