@lovrabet/rabetbase-cli 2.2.5-beta.1 → 2.2.5-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 (240) 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-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/flags.js +1 -1
  48. package/lib/commands/common/validate.js +1 -1
  49. package/lib/commands/config/get.js +1 -1
  50. package/lib/commands/config/index.js +1 -1
  51. package/lib/commands/config/list.js +1 -1
  52. package/lib/commands/config/set.js +1 -1
  53. package/lib/commands/config/shared.js +1 -1
  54. package/lib/commands/data/filter.js +1 -1
  55. package/lib/commands/data/getOne.js +1 -1
  56. package/lib/commands/data/index.js +1 -1
  57. package/lib/commands/data/shared.js +1 -1
  58. package/lib/commands/dataset/business-group-update.js +1 -1
  59. package/lib/commands/dataset/capability.js +1 -1
  60. package/lib/commands/dataset/delete.js +1 -1
  61. package/lib/commands/dataset/detail.js +1 -1
  62. package/lib/commands/dataset/extend-update.js +1 -1
  63. package/lib/commands/dataset/field-update.js +1 -1
  64. package/lib/commands/dataset/index.js +1 -1
  65. package/lib/commands/dataset/list.js +1 -1
  66. package/lib/commands/dataset/operations.js +1 -1
  67. package/lib/commands/dataset/relation-create.js +1 -1
  68. package/lib/commands/dataset/relation-delete.js +1 -1
  69. package/lib/commands/dataset/relation-shared.js +1 -1
  70. package/lib/commands/dataset/relation-update.js +1 -1
  71. package/lib/commands/dataset/relations.js +1 -1
  72. package/lib/commands/dataset/rename.js +1 -1
  73. package/lib/commands/dataset/restore.js +1 -0
  74. package/lib/commands/db/analyze-cancel.js +1 -1
  75. package/lib/commands/db/analyze-start.js +1 -1
  76. package/lib/commands/db/analyze-status.js +1 -1
  77. package/lib/commands/db/create.js +1 -1
  78. package/lib/commands/db/delete.js +1 -1
  79. package/lib/commands/db/detail.js +1 -1
  80. package/lib/commands/db/diff.js +1 -1
  81. package/lib/commands/db/index.js +1 -1
  82. package/lib/commands/db/list.js +1 -1
  83. package/lib/commands/db/shared.js +1 -1
  84. package/lib/commands/db/tables.js +1 -1
  85. package/lib/commands/db/test.js +1 -1
  86. package/lib/commands/db/update.js +1 -1
  87. package/lib/commands/doctor.js +1 -1
  88. package/lib/commands/init/index.js +1 -1
  89. package/lib/commands/issue/index.js +1 -1
  90. package/lib/commands/issue/nudge.js +1 -1
  91. package/lib/commands/issue/report.js +1 -1
  92. package/lib/commands/issue/shared.js +1 -1
  93. package/lib/commands/logs/index.js +1 -1
  94. package/lib/commands/menu/index.js +1 -1
  95. package/lib/commands/menu/list.js +1 -1
  96. package/lib/commands/menu/shared/compare-table.js +1 -1
  97. package/lib/commands/menu/shared/index.js +1 -1
  98. package/lib/commands/menu/shared/inquirer.js +1 -1
  99. package/lib/commands/menu/shared/local-pages.js +1 -1
  100. package/lib/commands/menu/shared/logic.js +1 -1
  101. package/lib/commands/menu/shared/service.js +1 -1
  102. package/lib/commands/menu/shared/sync-core.js +1 -1
  103. package/lib/commands/menu/shared/update-core.js +1 -1
  104. package/lib/commands/menu/shared/valid-url.js +1 -1
  105. package/lib/commands/menu/sync.js +1 -1
  106. package/lib/commands/menu/update.js +1 -1
  107. package/lib/commands/page/generate-start.js +1 -1
  108. package/lib/commands/page/generate-status.js +1 -1
  109. package/lib/commands/page/index.js +1 -1
  110. package/lib/commands/page/pull.js +1 -1
  111. package/lib/commands/page/push.js +1 -1
  112. package/lib/commands/page/relation-audit.js +1 -1
  113. package/lib/commands/page/shared.js +1 -1
  114. package/lib/commands/page/standard-page-status.js +1 -1
  115. package/lib/commands/page/sync.js +1 -1
  116. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  117. package/lib/commands/project/create/format-elapsed.js +1 -1
  118. package/lib/commands/project/create/main.js +1 -1
  119. package/lib/commands/project/create/non-interactive.js +1 -1
  120. package/lib/commands/project/create/project-template-path.js +1 -1
  121. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  122. package/lib/commands/project/create/use-format-code.js +1 -1
  123. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  124. package/lib/commands/project/index.js +1 -1
  125. package/lib/commands/project/init.js +1 -1
  126. package/lib/commands/project/upgrade.js +1 -1
  127. package/lib/commands/registry.js +1 -1
  128. package/lib/commands/run/index.js +1 -1
  129. package/lib/commands/schema.js +1 -1
  130. package/lib/commands/skill/index.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/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 a75_0x103f(_0x2ce739,_0xd1bc8a){_0x2ce739=_0x2ce739-0x11c;const _0x416f0a=a75_0x416f();let _0x103ffd=_0x416f0a[_0x2ce739];return _0x103ffd;}const a75_0x2f5ae2=a75_0x103f;(function(_0x4865ea,_0xa30936){const _0x57ba78=a75_0x103f,_0x246d1d=_0x4865ea();while(!![]){try{const _0x49751f=parseInt(_0x57ba78(0x138))/0x1*(-parseInt(_0x57ba78(0x13d))/0x2)+-parseInt(_0x57ba78(0x129))/0x3*(-parseInt(_0x57ba78(0x122))/0x4)+-parseInt(_0x57ba78(0x127))/0x5+parseInt(_0x57ba78(0x145))/0x6*(-parseInt(_0x57ba78(0x136))/0x7)+parseInt(_0x57ba78(0x125))/0x8+parseInt(_0x57ba78(0x12e))/0x9*(parseInt(_0x57ba78(0x146))/0xa)+parseInt(_0x57ba78(0x13a))/0xb*(parseInt(_0x57ba78(0x130))/0xc);if(_0x49751f===_0xa30936)break;else _0x246d1d['push'](_0x246d1d['shift']());}catch(_0x22f6c0){_0x246d1d['push'](_0x246d1d['shift']());}}}(a75_0x416f,0xeab42));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';function a75_0x416f(){const _0x424ad5=[';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','trim','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','8NGytmo','\x20and\x20started\x20analysis','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','7166328TWbygJ','dbname','8845960LBjCUW','Create\x20dblink','589287FfePRQ','dbparam','create','bool','Created\x20db\x20link\x20','35487sddPWn','str','431592RrUIBs','No\x20follow-up\x20analysis','message','POST','password','dbdesc','18011fYLvpY','Host\x20and\x20port:\x20host:port','124204EPVfRy','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','616kDLZcN','join','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','10KNBJJv','8.0','boolean','autostart','appCode','/smartapi/dblink/create','dbtype','[redacted]','1578NrZPFf','1840KDtiwY','dburl','validation','string','dbversion','username'];a75_0x416f=function(){return _0x424ad5;};return a75_0x416f();}import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':a75_0x2f5ae2(0x12b),'description':a75_0x2f5ae2(0x121),'risk':'write','flags':[APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a75_0x2f5ae2(0x149),'required':!![],'description':a75_0x2f5ae2(0x139)},DB_TYPE_FLAG,{'name':a75_0x2f5ae2(0x11c),'type':'string','description':'Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','default':a75_0x2f5ae2(0x13e)},{'name':'dburl','type':a75_0x2f5ae2(0x149),'required':!![],'description':a75_0x2f5ae2(0x137)},{'name':a75_0x2f5ae2(0x11d),'type':a75_0x2f5ae2(0x149),'required':!![],'description':'Database\x20username'},{'name':a75_0x2f5ae2(0x134),'type':a75_0x2f5ae2(0x149),'required':!![],'description':'Database\x20password'},{'name':a75_0x2f5ae2(0x12a),'type':'string','description':'Extra\x20JDBC-style\x20connection\x20parameters\x20string'},{'name':a75_0x2f5ae2(0x135),'type':'string','description':'Human-readable\x20description'},{'name':a75_0x2f5ae2(0x140),'type':a75_0x2f5ae2(0x13f),'description':'After\x20create,\x20start\x20schema\x20analysis','default':![]}],async 'validate'(_0x282306){const _0x14f70e=a75_0x2f5ae2,_0x22ed2b=_0x282306['str'](_0x14f70e(0x147))[_0x14f70e(0x11f)]();if(!validateDbUrl(_0x22ed2b))throw CliErrors[_0x14f70e(0x148)](_0x14f70e(0x13c)+_0x22ed2b+'\x22',_0x14f70e(0x120));},async 'dryRun'(_0x31c72b){const _0x430ab2=a75_0x2f5ae2,_0x19906c={'appCode':_0x31c72b[_0x430ab2(0x141)],'dbName':_0x31c72b[_0x430ab2(0x12f)]('dbname'),'dbType':_0x31c72b['str'](_0x430ab2(0x143)),'dbVersion':_0x31c72b['str']('dbversion')||_0x430ab2(0x13e),'dbUrl':_0x31c72b[_0x430ab2(0x12f)]('dburl')[_0x430ab2(0x11f)](),'username':_0x31c72b[_0x430ab2(0x12f)](_0x430ab2(0x11d)),'password':_0x430ab2(0x144),..._0x31c72b[_0x430ab2(0x12f)]('dbparam')?{'dbParam':_0x31c72b[_0x430ab2(0x12f)](_0x430ab2(0x12a))}:{},..._0x31c72b['str'](_0x430ab2(0x135))?{'dbDesc':_0x31c72b['str'](_0x430ab2(0x135))}:{}};return{'method':_0x430ab2(0x133),'url':_0x430ab2(0x142),'body':_0x19906c,'description':[_0x430ab2(0x128),_0x31c72b[_0x430ab2(0x12c)](_0x430ab2(0x140))?_0x430ab2(0x124):_0x430ab2(0x131)][_0x430ab2(0x13b)]('\x0a')};},async 'execute'(_0x2f5683){const _0x2e3d35=a75_0x2f5ae2,_0x4cca72={'appCode':_0x2f5683[_0x2e3d35(0x141)],'dbName':_0x2f5683['str'](_0x2e3d35(0x126)),'dbType':_0x2f5683[_0x2e3d35(0x12f)]('dbtype'),'dbVersion':_0x2f5683[_0x2e3d35(0x12f)](_0x2e3d35(0x11c))||_0x2e3d35(0x13e),'dbUrl':_0x2f5683[_0x2e3d35(0x12f)](_0x2e3d35(0x147))[_0x2e3d35(0x11f)](),'username':_0x2f5683[_0x2e3d35(0x12f)](_0x2e3d35(0x11d)),'password':_0x2f5683[_0x2e3d35(0x12f)](_0x2e3d35(0x134)),..._0x2f5683[_0x2e3d35(0x12f)](_0x2e3d35(0x12a))?{'dbParam':_0x2f5683[_0x2e3d35(0x12f)](_0x2e3d35(0x12a))}:{},..._0x2f5683[_0x2e3d35(0x12f)](_0x2e3d35(0x135))?{'dbDesc':_0x2f5683[_0x2e3d35(0x12f)](_0x2e3d35(0x135))}:{}},{id:_0x51b79d,entity:_0x4ea5e6}=normalizeEntityWithIdResponse(await createDbLink(_0x4cca72));if(!_0x51b79d)return{'ok':![],'message':'Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','data':sanitizeDbLinkForOutput(_0x4ea5e6)};let _0x1b912e,_0x1de58d;if(_0x2f5683['bool'](_0x2e3d35(0x140)))try{_0x1b912e=await startDbAnalysis(_0x51b79d);}catch(_0x11c800){_0x1de58d=_0x11c800 instanceof Error?_0x11c800[_0x2e3d35(0x132)]:String(_0x11c800);}const _0x1bfda4=buildDbPageLinks(_0x2f5683[_0x2e3d35(0x141)],_0x51b79d),_0x21eda6={'connection':sanitizeDbLinkForOutput(_0x4ea5e6),..._0x1bfda4?{'links':{'databasePage':_0x1bfda4['databasePage']}}:{},..._0x1b912e?{'analysisPlanId':_0x1b912e}:{},..._0x1de58d?{'analysisStartWarning':_0x1de58d}:{}};let _0x522c38;return _0x2f5683[_0x2e3d35(0x12c)](_0x2e3d35(0x140))?_0x1de58d?_0x522c38=_0x2e3d35(0x12d)+_0x51b79d+_0x2e3d35(0x11e):_0x522c38=_0x2e3d35(0x12d)+_0x51b79d+_0x2e3d35(0x123):_0x522c38=_0x2e3d35(0x12d)+_0x51b79d,{'ok':!![],'data':_0x21eda6,'message':_0x522c38};}};
@@ -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 a76_0x3116ab=a76_0x57af;(function(_0x4087e7,_0x240cce){const _0x3dab72=a76_0x57af,_0x5ad704=_0x4087e7();while(!![]){try{const _0x243fcd=parseInt(_0x3dab72(0x1ce))/0x1+parseInt(_0x3dab72(0x1cb))/0x2+-parseInt(_0x3dab72(0x1ca))/0x3+parseInt(_0x3dab72(0x1d0))/0x4+parseInt(_0x3dab72(0x1cf))/0x5*(parseInt(_0x3dab72(0x1cd))/0x6)+-parseInt(_0x3dab72(0x1d1))/0x7+-parseInt(_0x3dab72(0x1cc))/0x8;if(_0x243fcd===_0x240cce)break;else _0x5ad704['push'](_0x5ad704['shift']());}catch(_0x1f15af){_0x5ad704['push'](_0x5ad704['shift']());}}}(a76_0x240b,0xd6837));import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a76_0x57af(_0x4e4ff6,_0x15290a){_0x4e4ff6=_0x4e4ff6-0x1c7;const _0x240b03=a76_0x240b();let _0x57afca=_0x240b03[_0x4e4ff6];return _0x57afca;}function a76_0x240b(){const _0x390722=['4543821DDYyCP','2269772EDFjoU','5904ZBRlTd','6cHsSaQ','720846COFsdO','882380mWWEDx','3058872JzwWjC','2820538ZSFnhw','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','high-risk-write','Deleted\x20db\x20link\x20'];a76_0x240b=function(){return _0x390722;};return a76_0x240b();}export const dbDelete={'service':'db','command':'delete','description':a76_0x3116ab(0x1c7),'risk':a76_0x3116ab(0x1c8),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x22c7f5){const _0x436f40=a76_0x3116ab,_0x43eb76=_0x22c7f5['num']('id');return await deleteDbLink(_0x43eb76),{'ok':!![],'data':{'id':_0x43eb76,'deleted':!![]},'message':_0x436f40(0x1c9)+_0x43eb76};}};
@@ -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
+ function a77_0x5777(_0x4d41d9,_0x2f7fe9){_0x4d41d9=_0x4d41d9-0x14b;const _0x595aac=a77_0x595a();let _0x577768=_0x595aac[_0x4d41d9];return _0x577768;}const a77_0x12e54d=a77_0x5777;(function(_0x1b1abb,_0x15ccba){const _0x321bba=a77_0x5777,_0x44cc33=_0x1b1abb();while(!![]){try{const _0x334f45=-parseInt(_0x321bba(0x14e))/0x1+parseInt(_0x321bba(0x151))/0x2*(parseInt(_0x321bba(0x154))/0x3)+-parseInt(_0x321bba(0x150))/0x4+parseInt(_0x321bba(0x153))/0x5+-parseInt(_0x321bba(0x14c))/0x6*(-parseInt(_0x321bba(0x158))/0x7)+-parseInt(_0x321bba(0x152))/0x8*(-parseInt(_0x321bba(0x156))/0x9)+-parseInt(_0x321bba(0x14f))/0xa;if(_0x334f45===_0x15ccba)break;else _0x44cc33['push'](_0x44cc33['shift']());}catch(_0x10e0bc){_0x44cc33['push'](_0x44cc33['shift']());}}}(a77_0x595a,0x31050));function a77_0x595a(){const _0xdabea7=['378128iGDvYR','1057220MZRKTp','6kEcEAf','num','27yVZAAY','dbName','7TNxtof','detail','read','db\x20link\x20','1780836qQAsuj','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','95616bEXUUB','4024340QpFBjJ','970032QgiWFJ','291294jQojsu'];a77_0x595a=function(){return _0xdabea7;};return a77_0x595a();}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':a77_0x12e54d(0x159),'description':a77_0x12e54d(0x14d),'risk':a77_0x12e54d(0x15a),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1aff57){const _0x3145ce=a77_0x12e54d,_0x13327d=_0x1aff57[_0x3145ce(0x155)]('id'),_0x4ba577=await getDbLinkInfo(_0x13327d);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x4ba577),'message':_0x3145ce(0x14b)+_0x13327d+':\x20'+_0x4ba577[_0x3145ce(0x157)]};}};
@@ -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 a78_0x508812=a78_0x2696;(function(_0xe12fee,_0x24e902){const _0xdb4044=a78_0x2696,_0x205501=_0xe12fee();while(!![]){try{const _0x57e434=parseInt(_0xdb4044(0x199))/0x1*(-parseInt(_0xdb4044(0x197))/0x2)+-parseInt(_0xdb4044(0x196))/0x3+-parseInt(_0xdb4044(0x1a4))/0x4*(parseInt(_0xdb4044(0x195))/0x5)+-parseInt(_0xdb4044(0x19f))/0x6*(parseInt(_0xdb4044(0x19a))/0x7)+-parseInt(_0xdb4044(0x1a7))/0x8+-parseInt(_0xdb4044(0x19b))/0x9+parseInt(_0xdb4044(0x1a1))/0xa;if(_0x57e434===_0x24e902)break;else _0x205501['push'](_0x205501['shift']());}catch(_0x33fc77){_0x205501['push'](_0x205501['shift']());}}}(a78_0x5c51,0x8d30a));import{getDbTableDiff}from'../../core/api-client.js';function a78_0x2696(_0x272b80,_0x255bb4){_0x272b80=_0x272b80-0x192;const _0x5c510c=a78_0x5c51();let _0x269644=_0x5c510c[_0x272b80];return _0x269644;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDiff={'service':'db','command':a78_0x508812(0x198),'description':'Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a78_0x508812(0x1a2),'type':a78_0x508812(0x19e),'description':a78_0x508812(0x193)},{'name':a78_0x508812(0x1a3),'type':a78_0x508812(0x1a6),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':a78_0x508812(0x192),'type':a78_0x508812(0x1a6),'description':a78_0x508812(0x19d),'default':0x14}],async 'execute'(_0x4222b8){const _0x2db0eb=a78_0x508812,_0x4f60a2=_0x4222b8[_0x2db0eb(0x19c)]('id'),_0x21b4c6=_0x4222b8[_0x2db0eb(0x19c)](_0x2db0eb(0x1a3),0x1)||0x1,_0x2060f7=_0x4222b8[_0x2db0eb(0x19c)](_0x2db0eb(0x192),0x14)||0x14,_0x579a6a=_0x4222b8[_0x2db0eb(0x1a0)](_0x2db0eb(0x1a2))||undefined,{totalCount:_0x555764,tableList:_0x5d2021}=await getDbTableDiff(_0x4222b8['appCode'],_0x4f60a2,{'pageIndex':_0x21b4c6,'pageSize':_0x2060f7,'tableName':_0x579a6a});return{'ok':!![],'data':{'dbLinkId':_0x4f60a2,'page':_0x21b4c6,'pageSize':_0x2060f7,'totalCount':_0x555764,'tableList':_0x5d2021},'message':_0x5d2021[_0x2db0eb(0x194)]+_0x2db0eb(0x1a5)+_0x555764+'\x20(db\x20link\x20'+_0x4f60a2+')'};}};function a78_0x5c51(){const _0x3dfe13=['diff','3fYNtNT','7NThNBn','8450838CtlqfJ','num','Page\x20size','string','1840464drmsLl','str','38285480DvtMyW','table','page','13636sOmXhe','\x20row(s),\x20total\x20','number','4341936HsPIiQ','pagesize','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','length','170dRypXC','2239272XWTSVy','399624EzTCTt'];a78_0x5c51=function(){return _0x3dfe13;};return a78_0x5c51();}
@@ -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(_0x5cd7e3,_0x4d4c48){const _0x8b66e3=a79_0x319c,_0x3cbea3=_0x5cd7e3();while(!![]){try{const _0xb60dc7=parseInt(_0x8b66e3(0x181))/0x1+-parseInt(_0x8b66e3(0x185))/0x2*(parseInt(_0x8b66e3(0x188))/0x3)+-parseInt(_0x8b66e3(0x182))/0x4*(parseInt(_0x8b66e3(0x180))/0x5)+-parseInt(_0x8b66e3(0x189))/0x6*(-parseInt(_0x8b66e3(0x184))/0x7)+parseInt(_0x8b66e3(0x17f))/0x8+parseInt(_0x8b66e3(0x186))/0x9+-parseInt(_0x8b66e3(0x183))/0xa*(parseInt(_0x8b66e3(0x187))/0xb);if(_0xb60dc7===_0x4d4c48)break;else _0x3cbea3['push'](_0x3cbea3['shift']());}catch(_0x1e2960){_0x3cbea3['push'](_0x3cbea3['shift']());}}}(a79_0x350e,0x97c5b));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';function a79_0x319c(_0x3bde57,_0x7e7a94){_0x3bde57=_0x3bde57-0x17f;const _0x350ede=a79_0x350e();let _0x319cb4=_0x350ede[_0x3bde57];return _0x319cb4;}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 a79_0x350e(){const _0x20c3dd=['11pdfjGj','3eYTpwU','222qYufLX','8985128Hvsfra','45xtMjml','158663BVNixH','548572nuczCd','5396530PuSqqO','115843nVPvVe','70814MWsPzS','4832001NFVZgF'];a79_0x350e=function(){return _0x20c3dd;};return a79_0x350e();}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
+ const a80_0x1162b2=a80_0x3e9e;function a80_0x3e9e(_0x12d11c,_0x15b1ed){_0x12d11c=_0x12d11c-0x18a;const _0x1c850b=a80_0x1c85();let _0x3e9e87=_0x1c850b[_0x12d11c];return _0x3e9e87;}(function(_0x524466,_0x5c32e7){const _0x2559a4=a80_0x3e9e,_0x4dc059=_0x524466();while(!![]){try{const _0x1c380f=-parseInt(_0x2559a4(0x19f))/0x1+parseInt(_0x2559a4(0x19e))/0x2*(-parseInt(_0x2559a4(0x19d))/0x3)+parseInt(_0x2559a4(0x199))/0x4+parseInt(_0x2559a4(0x18a))/0x5*(-parseInt(_0x2559a4(0x18f))/0x6)+-parseInt(_0x2559a4(0x195))/0x7+parseInt(_0x2559a4(0x18b))/0x8+parseInt(_0x2559a4(0x19b))/0x9;if(_0x1c380f===_0x5c32e7)break;else _0x4dc059['push'](_0x4dc059['shift']());}catch(_0xf316b6){_0x4dc059['push'](_0x4dc059['shift']());}}}(a80_0x1c85,0xe1048));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a80_0x1c85(){const _0x3d7897=['length','37708479dViPLk','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','72FUPYsX','138962LbBbUA','1653258mkxBPY','95lnsqpA','13242944EUzJxF','page','number','Page\x20index\x20(1-based)','366018AlYiZC','pagesize','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','read','\x20database\x20connection(s)','Found\x20','10873016xDqyOb','list','appCode','Page\x20size','4438480Ejpmdu'];a80_0x1c85=function(){return _0x3d7897;};return a80_0x1c85();}import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a80_0x1162b2(0x196),'description':a80_0x1162b2(0x191),'risk':a80_0x1162b2(0x192),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a80_0x1162b2(0x18c),'type':a80_0x1162b2(0x18d),'description':a80_0x1162b2(0x18e),'default':0x1},{'name':a80_0x1162b2(0x190),'type':a80_0x1162b2(0x18d),'description':a80_0x1162b2(0x198),'default':0x64}],async 'execute'(_0x20d2d9){const _0x1ccb68=a80_0x1162b2,_0xfd764d=_0x20d2d9['num']('page',0x1)||0x1,_0x394441=_0x20d2d9['num'](_0x1ccb68(0x190),0x64)||0x64,{items:_0x5a807d,paging:_0x59c13a}=await listDbLinks(_0x20d2d9[_0x1ccb68(0x197)],{'currentPage':_0xfd764d,'pageSize':_0x394441}),_0x5c4b17=sanitizeDbLinkList(_0x5a807d),_0x749fcb=_0x59c13a?_0x59c13a:{'currentPage':_0xfd764d,'pageSize':_0x394441,'rowsOnPage':_0x5c4b17[_0x1ccb68(0x19a)],'totalCount':null,'note':_0x1ccb68(0x19c)};return{'ok':!![],'data':{'connections':_0x5c4b17,'paging':_0x749fcb},'message':_0x1ccb68(0x194)+_0x5c4b17[_0x1ccb68(0x19a)]+_0x1ccb68(0x193)};}};
@@ -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(_0xf1f930,_0x3fdb9b){const _0x230d1e=a81_0x5e00,_0x3efdb1=_0xf1f930();while(!![]){try{const _0x4066ae=-parseInt(_0x230d1e(0xe6))/0x1+parseInt(_0x230d1e(0xf6))/0x2*(parseInt(_0x230d1e(0xf5))/0x3)+-parseInt(_0x230d1e(0xf3))/0x4+parseInt(_0x230d1e(0xf7))/0x5+-parseInt(_0x230d1e(0xfd))/0x6+-parseInt(_0x230d1e(0xf8))/0x7+parseInt(_0x230d1e(0xeb))/0x8*(parseInt(_0x230d1e(0xf2))/0x9);if(_0x4066ae===_0x3fdb9b)break;else _0x3efdb1['push'](_0x3efdb1['shift']());}catch(_0x2d44c3){_0x3efdb1['push'](_0x3efdb1['shift']());}}}(a81_0x7f42,0xd7fbc));import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0x307cc4){const _0x4b5bd8=a81_0x5e00,_0x221a28=_0x307cc4['toLowerCase']();if(_0x221a28===_0x4b5bd8(0xf0)||_0x221a28===_0x4b5bd8(0xed)||_0x221a28===_0x4b5bd8(0xe5))return!![];if(_0x221a28[_0x4b5bd8(0xfb)](_0x4b5bd8(0xe7))||_0x221a28[_0x4b5bd8(0xfb)](_0x4b5bd8(0xe9))||_0x221a28[_0x4b5bd8(0xfb)](_0x4b5bd8(0xec)))return!![];if(_0x221a28[_0x4b5bd8(0xfb)](_0x4b5bd8(0xfe))||_0x221a28[_0x4b5bd8(0xfb)](_0x4b5bd8(0xff)))return!![];if(_0x221a28===_0x4b5bd8(0xf1)||_0x221a28===_0x4b5bd8(0xf4)||_0x221a28==='jdbcurl')return!![];return![];}function a81_0x7f42(){const _0x1cbd81=['[redacted]','password','authorization','27gplNur','3583408fGDrYa','connectionstring','12417xTuwkn','74PWsBjD','6895115aGnZaW','3574039gfdFis','test','isFinite','includes','map','9131514zrsxHd','privatekey','accesskey','dbpassword','1627415WaChVj','secret','keys','token','trim','10422040gwQqlI','credential','passwd','length'];a81_0x7f42=function(){return _0x1cbd81;};return a81_0x7f42();}export function sanitizeDbLinkForOutput(_0x4854d9){const _0x3a638a=a81_0x5e00,_0x329bd7={..._0x4854d9};for(const _0x7fd82a of Object[_0x3a638a(0xe8)](_0x329bd7)){if(!shouldRedactKey(_0x7fd82a))continue;const _0x5a38b5=_0x329bd7[_0x7fd82a];_0x5a38b5!=null&&String(_0x5a38b5)[_0x3a638a(0xee)]>0x0&&(_0x329bd7[_0x7fd82a]=_0x3a638a(0xef));}return _0x329bd7;}export function sanitizeDbLinkList(_0x2db0dd){const _0x2ae248=a81_0x5e00;return _0x2db0dd[_0x2ae248(0xfc)](_0xd0ae76=>sanitizeDbLinkForOutput(_0xd0ae76));}function a81_0x5e00(_0x2481fe,_0x41e941){_0x2481fe=_0x2481fe-0xe5;const _0x7f4256=a81_0x7f42();let _0x5e0013=_0x7f4256[_0x2481fe];return _0x5e0013;}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x5760b7){const _0x2a3d3c=a81_0x5e00,_0x54065b=_0x5760b7[_0x2a3d3c(0xea)]();if(!_0x54065b)return![];return DB_URL_PATTERN[_0x2a3d3c(0xf9)](_0x54065b);}export function buildDbPageLinks(_0x32a67e,_0x2c4f52){const _0x4e92dc=a81_0x5e00,_0x7b587b=_0x32a67e?.[_0x4e92dc(0xea)]();if(!_0x7b587b)return undefined;const _0xd3f2e4=typeof _0x2c4f52==='number'?String(_0x2c4f52):String(_0x2c4f52??'')[_0x4e92dc(0xea)]();if(!_0xd3f2e4)return undefined;const _0x16237d=Number(_0xd3f2e4);if(!Number[_0x4e92dc(0xfa)](_0x16237d)||_0x16237d<=0x0)return undefined;const _0x5172f8=getAppBaseUrl(_0x7b587b),_0xb5c035=encodeURIComponent(String(_0x16237d));return{'databasePage':_0x5172f8+'/data/database','erPage':_0x5172f8+'/data/er?dbId='+_0xb5c035};}
@@ -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
+ function a82_0x2490(){const _0x5350bf=['362795qZthgK','1591612DJHjtO','read','1397thkJls','tables','351240sLurAd','1822614wsiJSa','44610oiLSEx','2NrUaxg','215VUnzxi','82590OHlfcD','5276124TgQGBW','length','7FNpVYp','num'];a82_0x2490=function(){return _0x5350bf;};return a82_0x2490();}const a82_0x3adb4b=a82_0x15e1;(function(_0x56a142,_0xafe5e){const _0x7ef4b4=a82_0x15e1,_0x4a40f0=_0x56a142();while(!![]){try{const _0x4d7b3=-parseInt(_0x7ef4b4(0x189))/0x1*(parseInt(_0x7ef4b4(0x191))/0x2)+parseInt(_0x7ef4b4(0x18f))/0x3+-parseInt(_0x7ef4b4(0x18a))/0x4+-parseInt(_0x7ef4b4(0x192))/0x5*(-parseInt(_0x7ef4b4(0x193))/0x6)+-parseInt(_0x7ef4b4(0x187))/0x7*(parseInt(_0x7ef4b4(0x18e))/0x8)+-parseInt(_0x7ef4b4(0x194))/0x9+parseInt(_0x7ef4b4(0x190))/0xa*(parseInt(_0x7ef4b4(0x18c))/0xb);if(_0x4d7b3===_0xafe5e)break;else _0x4a40f0['push'](_0x4a40f0['shift']());}catch(_0xba714b){_0x4a40f0['push'](_0x4a40f0['shift']());}}}(a82_0x2490,0x5b965));function a82_0x15e1(_0x26412b,_0x3c6787){_0x26412b=_0x26412b-0x187;const _0x24906f=a82_0x2490();let _0x15e17e=_0x24906f[_0x26412b];return _0x15e17e;}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':a82_0x3adb4b(0x18d),'description':'List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','risk':a82_0x3adb4b(0x18b),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0xd92a36){const _0x39a231=a82_0x3adb4b,_0x3fbe4f=_0xd92a36[_0x39a231(0x188)]('id'),_0x6e2d69=await getDbAllTableList(_0xd92a36['appCode'],_0x3fbe4f);return{'ok':!![],'data':{'dbLinkId':_0x3fbe4f,'total':_0x6e2d69['length'],'tables':_0x6e2d69},'message':_0x6e2d69[_0x39a231(0x195)]+'\x20table(s)\x20on\x20db\x20link\x20'+_0x3fbe4f};}};
@@ -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 a83_0x2219e8=a83_0x29ec;(function(_0x37e4b8,_0x4a5c65){const _0x3d3680=a83_0x29ec,_0x2bb936=_0x37e4b8();while(!![]){try{const _0x1724a6=parseInt(_0x3d3680(0xc7))/0x1*(parseInt(_0x3d3680(0xc6))/0x2)+parseInt(_0x3d3680(0xbc))/0x3+parseInt(_0x3d3680(0xc3))/0x4*(-parseInt(_0x3d3680(0xb1))/0x5)+-parseInt(_0x3d3680(0xb7))/0x6*(-parseInt(_0x3d3680(0xc4))/0x7)+-parseInt(_0x3d3680(0xb3))/0x8*(-parseInt(_0x3d3680(0xad))/0x9)+-parseInt(_0x3d3680(0xb5))/0xa*(-parseInt(_0x3d3680(0xc5))/0xb)+-parseInt(_0x3d3680(0xbd))/0xc;if(_0x1724a6===_0x4a5c65)break;else _0x2bb936['push'](_0x2bb936['shift']());}catch(_0x5994e4){_0x2bb936['push'](_0x2bb936['shift']());}}}(a83_0xa3cf,0x84946));import{testDbLinkConnect}from'../../core/api-client.js';function a83_0x29ec(_0x1882a1,_0x5eaaa8){_0x1882a1=_0x1882a1-0xad;const _0xa3cf2b=a83_0xa3cf();let _0x29ec02=_0xa3cf2b[_0x1882a1];return _0x29ec02;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a83_0xa3cf(){const _0x6869d2=['Connection\x20check\x20finished\x20for\x20db\x20link\x20','keys','\x20(see\x20data.result)','1880CmJHMd','error','520768UQKNOp','data','557490BlbqwZ','success','6PCyhDL','Connection\x20OK\x20for\x20db\x20link\x20','object','message','code','3091578QsmTvi','24951696BlRwkt','read','num','length','slice','test','4076MTGVTv','712635midhhA','66euEwwE','286RchauV','6663VgqaVp','81WZnoMm'];a83_0xa3cf=function(){return _0x6869d2;};return a83_0xa3cf();}function summarizeTestConnectResult(_0x22131f){const _0x42271b=a83_0x29ec;if(_0x22131f===!![]||_0x22131f===![])return{'success':_0x22131f};if(_0x22131f===null||_0x22131f===undefined)return{'type':typeof _0x22131f};if(typeof _0x22131f!==_0x42271b(0xb9))return{'type':typeof _0x22131f};const _0x38cc59=_0x22131f,_0x4454e1=[_0x42271b(0xb6),_0x42271b(0xba),_0x42271b(0xbb),_0x42271b(0xb2),'msg',_0x42271b(0xb4)],_0x269ec7={};for(const _0x523823 of _0x4454e1){if(_0x523823 in _0x38cc59)_0x269ec7[_0x523823]=_0x38cc59[_0x523823];}return Object[_0x42271b(0xaf)](_0x269ec7)[_0x42271b(0xc0)]===0x0&&(_0x269ec7[_0x42271b(0xaf)]=Object[_0x42271b(0xaf)](_0x38cc59)[_0x42271b(0xc1)](0x0,0x14)),_0x269ec7;}export const dbTest={'service':'db','command':a83_0x2219e8(0xc2),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':a83_0x2219e8(0xbe),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4ed86f){const _0x5d9745=a83_0x2219e8,_0x4f1f82=_0x4ed86f[_0x5d9745(0xbf)]('id'),_0x27cb81=await testDbLinkConnect(_0x4f1f82),_0x47c466=_0x27cb81===!![]||typeof _0x27cb81===_0x5d9745(0xb9)&&_0x27cb81!==null&&_0x27cb81[_0x5d9745(0xb6)]===!![],_0x2af193=summarizeTestConnectResult(_0x27cb81);return{'ok':!![],'data':{'id':_0x4f1f82,'connected':Boolean(_0x47c466),'result':_0x2af193},'message':_0x47c466?_0x5d9745(0xb8)+_0x4f1f82:_0x5d9745(0xae)+_0x4f1f82+_0x5d9745(0xb0)};}};
@@ -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 a84_0xa2a833=a84_0x476d;(function(_0x5095a3,_0x10baf9){const _0x3be5ea=a84_0x476d,_0x5cdd75=_0x5095a3();while(!![]){try{const _0x5cf54f=-parseInt(_0x3be5ea(0xfb))/0x1+parseInt(_0x3be5ea(0x106))/0x2+-parseInt(_0x3be5ea(0x10b))/0x3+-parseInt(_0x3be5ea(0x109))/0x4*(parseInt(_0x3be5ea(0xea))/0x5)+parseInt(_0x3be5ea(0xeb))/0x6+parseInt(_0x3be5ea(0xf6))/0x7+parseInt(_0x3be5ea(0x101))/0x8;if(_0x5cf54f===_0x10baf9)break;else _0x5cdd75['push'](_0x5cdd75['shift']());}catch(_0x1d9d0d){_0x5cdd75['push'](_0x5cdd75['shift']());}}}(a84_0x1004,0x3cd31));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 a84_0x476d(_0x3313fc,_0x355855){_0x3313fc=_0x3313fc-0xea;const _0x10045c=a84_0x1004();let _0x476dc4=_0x10045c[_0x3313fc];return _0x476dc4;}import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a84_0x1004(){const _0xfab50d=['username','New\x20connection\x20parameter\x20string','validation','New\x20username','password','str','dbparam','dbDesc','3077389GIMZzI','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','Updated\x20db\x20link\x20','New\x20host:port','171364BnXMrN','write','dbname','POST','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','trim','1693600lXAIdt','dbdesc','New\x20description','dburl','num','442290fPaLXF','string','New\x20database\x20name','1252PmIMcq','dbUrl','212685srtPRm','dbParam','7915iUXXXa','686418InVnrC','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','dbName'];a84_0x1004=function(){return _0xfab50d;};return a84_0x1004();}export const dbUpdate={'service':'db','command':'update','description':a84_0xa2a833(0xec),'risk':a84_0xa2a833(0xfc),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a84_0xa2a833(0xfd),'type':'string','description':a84_0xa2a833(0x108)},{'name':'dburl','type':'string','description':a84_0xa2a833(0xfa)},{'name':a84_0xa2a833(0xee),'type':a84_0xa2a833(0x107),'description':a84_0xa2a833(0xf1)},{'name':a84_0xa2a833(0xf2),'type':a84_0xa2a833(0x107),'description':a84_0xa2a833(0xff)},{'name':a84_0xa2a833(0xf4),'type':a84_0xa2a833(0x107),'description':a84_0xa2a833(0xef)},{'name':a84_0xa2a833(0x102),'type':'string','description':a84_0xa2a833(0x103)}],async 'validate'(_0x57c75f){const _0x479c2b=a84_0xa2a833,_0x2aee7d=_0x57c75f[_0x479c2b(0xf3)]('dburl');if(_0x2aee7d&&!validateDbUrl(_0x2aee7d[_0x479c2b(0x100)]()))throw CliErrors[_0x479c2b(0xf0)](_0x479c2b(0xf8)+_0x2aee7d+'\x22');},async 'dryRun'(_0x5ee65f){const _0x371fc7=a84_0xa2a833,_0x439954=_0x5ee65f[_0x371fc7(0x105)]('id'),_0x2d7d1c=await getDbLinkInfo(_0x439954),_0x55cdcc={..._0x2d7d1c},_0x1170a0=_0x5ee65f['str'](_0x371fc7(0xfd));if(_0x1170a0)_0x55cdcc[_0x371fc7(0xed)]=_0x1170a0;const _0xc6af6e=_0x5ee65f[_0x371fc7(0xf3)](_0x371fc7(0x104));if(_0xc6af6e)_0x55cdcc[_0x371fc7(0x10a)]=_0xc6af6e['trim']();const _0x3b77a8=_0x5ee65f[_0x371fc7(0xf3)](_0x371fc7(0xee));if(_0x3b77a8)_0x55cdcc[_0x371fc7(0xee)]=_0x3b77a8;const _0x34bfb6=_0x5ee65f['str']('password');if(_0x34bfb6)_0x55cdcc[_0x371fc7(0xf2)]=_0x34bfb6;const _0x2ad1a6=_0x5ee65f[_0x371fc7(0xf3)](_0x371fc7(0xf4));if(_0x2ad1a6)_0x55cdcc[_0x371fc7(0x10c)]=_0x2ad1a6;const _0x1a1180=_0x5ee65f[_0x371fc7(0xf3)](_0x371fc7(0x102));if(_0x1a1180)_0x55cdcc[_0x371fc7(0xf5)]=_0x1a1180;const _0x1f59e6=sanitizeDbLinkForOutput(_0x55cdcc);return{'method':_0x371fc7(0xfe),'url':'/smartapi/dblink/update','body':_0x1f59e6,'description':_0x371fc7(0xf7)};},async 'execute'(_0x540896){const _0x2698a0=a84_0xa2a833,_0x57c640=_0x540896[_0x2698a0(0x105)]('id'),_0x380579=await getDbLinkInfo(_0x57c640),_0x18bdc7={..._0x380579},_0x474860=_0x540896['str']('dbname');if(_0x474860)_0x18bdc7['dbName']=_0x474860;const _0x307cc7=_0x540896[_0x2698a0(0xf3)](_0x2698a0(0x104));if(_0x307cc7)_0x18bdc7[_0x2698a0(0x10a)]=_0x307cc7[_0x2698a0(0x100)]();const _0xe5449f=_0x540896[_0x2698a0(0xf3)](_0x2698a0(0xee));if(_0xe5449f)_0x18bdc7[_0x2698a0(0xee)]=_0xe5449f;const _0x344354=_0x540896[_0x2698a0(0xf3)]('password');if(_0x344354)_0x18bdc7[_0x2698a0(0xf2)]=_0x344354;const _0x592e86=_0x540896[_0x2698a0(0xf3)](_0x2698a0(0xf4));if(_0x592e86)_0x18bdc7[_0x2698a0(0x10c)]=_0x592e86;const _0x5eb60f=_0x540896[_0x2698a0(0xf3)](_0x2698a0(0x102));if(_0x5eb60f)_0x18bdc7[_0x2698a0(0xf5)]=_0x5eb60f;const {id:_0x4396bf,entity:_0x451525}=normalizeEntityWithIdResponse(await updateDbLink(_0x18bdc7));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x451525),'message':_0x2698a0(0xf9)+(_0x4396bf??_0x57c640)};}};
@@ -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 a85_0x162547=a85_0x5495;(function(_0x5c8c0a,_0x4fa459){const _0x242e9a=a85_0x5495,_0x328877=_0x5c8c0a();while(!![]){try{const _0x125597=-parseInt(_0x242e9a(0xca))/0x1+-parseInt(_0x242e9a(0x9f))/0x2*(-parseInt(_0x242e9a(0xd6))/0x3)+parseInt(_0x242e9a(0xba))/0x4+-parseInt(_0x242e9a(0xb8))/0x5+-parseInt(_0x242e9a(0xd0))/0x6*(parseInt(_0x242e9a(0xc7))/0x7)+-parseInt(_0x242e9a(0xd7))/0x8+parseInt(_0x242e9a(0xd3))/0x9;if(_0x125597===_0x4fa459)break;else _0x328877['push'](_0x328877['shift']());}catch(_0xd5d84){_0x328877['push'](_0x328877['shift']());}}}(a85_0x4fdc,0xe69e4));import a85_0x518a82 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';function a85_0x5495(_0x25f839,_0x3d674d){_0x25f839=_0x25f839-0x91;const _0x4fdc18=a85_0x4fdc();let _0x5495b9=_0x4fdc18[_0x25f839];return _0x5495b9;}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 a85_0x4fdc(){const _0x36400d=['\x20\x20API\x20Endpoints','currentApp','(none)','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','raw','accessKey','\x20\x20Config\x20Files','keys','empty','\x20\x20Config\x20JSON','\x20\x20Merged\x20Config','defaultApp','✗\x20Not\x20logged\x20in','38MXgITy','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','(set\x20via\x20file,\x20length=','(default:\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','unknown','pageSize','riskLevel','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','env','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','slice','\x20\x20─','doctor','repeat','locale','format','check','length','\x20\x20explicitAppName:\x20','✓\x20Valid\x20JSON','apps','padEnd','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','8015065pRWxdl','⚠\x20Empty\x20(treated\x20as\x20{})','4007328lhNLeR','(missing)','(default)','green','(no\x20file)','(not\x20found)','read','status','yellow','gray','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2493813YgIqDE','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','567974TTbzDq','source','\x20(default)','log','apiDir','bold','6ZFWUly','red','✓\x20Valid','20735694lckrlR','cookie','(set,\x20length=','279897RHvhQP','12852968XNgQxC','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','appcode','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','value','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','Project','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','arch'];a85_0x4fdc=function(){return _0x36400d;};return a85_0x4fdc();}async function execute(_0x51f560){const _0x2edf3a=a85_0x5495,_0x5a8f50=GIT_COMMIT!==_0x2edf3a(0xa5)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x2edf3a(0xab)](0x0,0xa)+')':VERSION,_0x285bee=buildConfigFromFlags({}),_0x3da772=getCookie();console[_0x2edf3a(0xcd)](),console[_0x2edf3a(0xcd)](a85_0x518a82['bold'](CLI_BIN_NAME+'\x20doctor')),console['log'](a85_0x518a82[_0x2edf3a(0xc3)]('─'['repeat'](0x32))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xa1)+_0x5a8f50),console[_0x2edf3a(0xcd)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console[_0x2edf3a(0xcd)](_0x2edf3a(0xd8)+process['platform']+'\x20'+process[_0x2edf3a(0x91)]),console['log'](),console[_0x2edf3a(0xcd)](a85_0x518a82[_0x2edf3a(0xcf)](_0x2edf3a(0x98))),console[_0x2edf3a(0xcd)](a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0xac)['repeat'](0x1e)));const _0xd5080d=getGlobalConfigPath(),_0x118270=getProjectConfigPath();console[_0x2edf3a(0xcd)](_0x2edf3a(0xb7)+(_0xd5080d||a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0xbf)))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xc4)+(_0x118270||a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0xbf)))),console['log'](),console['log'](a85_0x518a82[_0x2edf3a(0xcf)](_0x2edf3a(0x9b))),console[_0x2edf3a(0xcd)](a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0xac)[_0x2edf3a(0xae)](0x1e)));const _0xcb1c5a=(_0x2aa84a,_0x3329b1)=>{const _0x122e78=_0x2edf3a;if(!_0x3329b1){console[_0x122e78(0xcd)]('\x20\x20'+_0x2aa84a[_0x122e78(0xb6)](0x11)+'\x20'+a85_0x518a82[_0x122e78(0xc3)](_0x122e78(0xbe)));return;}const _0x20655b=inspectCliConfigJsonFile(_0x3329b1);if(_0x20655b[_0x122e78(0xc1)]==='ok')console[_0x122e78(0xcd)]('\x20\x20'+_0x2aa84a[_0x122e78(0xb6)](0x11)+'\x20'+a85_0x518a82[_0x122e78(0xbd)](_0x122e78(0xb4)));else{if(_0x20655b['status']===_0x122e78(0x9a))console[_0x122e78(0xcd)]('\x20\x20'+_0x2aa84a[_0x122e78(0xb6)](0x11)+'\x20'+a85_0x518a82[_0x122e78(0xc2)](_0x122e78(0xb9)));else _0x20655b[_0x122e78(0xc1)]==='missing'?console[_0x122e78(0xcd)]('\x20\x20'+_0x2aa84a[_0x122e78(0xb6)](0x11)+'\x20'+a85_0x518a82[_0x122e78(0xc3)](_0x122e78(0xbb))):(console['log']('\x20\x20'+_0x2aa84a[_0x122e78(0xb6)](0x11)+'\x20'+a85_0x518a82['red']('✗\x20Invalid\x20JSON')),console[_0x122e78(0xcd)]('\x20\x20'+''[_0x122e78(0xb6)](0x11)+'\x20'+a85_0x518a82[_0x122e78(0xd1)](_0x20655b['message'])));}};_0xcb1c5a('Global',_0xd5080d),_0xcb1c5a(_0x2edf3a(0xdf),_0x118270),console['log'](),console['log'](a85_0x518a82[_0x2edf3a(0xcf)](_0x2edf3a(0x9c))),console['log'](a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0xac)[_0x2edf3a(0xae)](0x1e))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xa4)+(_0x285bee['appCode']||a85_0x518a82[_0x2edf3a(0xd1)]('(not\x20set)'))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xc8)+_0x285bee[_0x2edf3a(0xa9)]),console['log']('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x285bee[_0x2edf3a(0xaf)]),console[_0x2edf3a(0xcd)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x285bee[_0x2edf3a(0xce)]),console[_0x2edf3a(0xcd)](_0x2edf3a(0xe0)+(_0x285bee[_0x2edf3a(0x9d)]||a85_0x518a82['gray'](_0x2edf3a(0x94)))),console[_0x2edf3a(0xcd)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x285bee[_0x2edf3a(0x93)]||a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0x94)))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xb3)+(_0x285bee['explicitAppName']||a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0x94)))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xc6)+(_0x285bee['format']||a85_0x518a82['gray'](_0x2edf3a(0xa3)+DEFAULT_CONFIG_VALUES[_0x2edf3a(0xb0)]+')'))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xa0)+(_0x285bee[_0x2edf3a(0xa6)]??a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0xbc)))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xc5)+_0x285bee[_0x2edf3a(0xa7)]),console[_0x2edf3a(0xcd)](_0x2edf3a(0xaa)+_0x285bee['verbose']),console[_0x2edf3a(0xcd)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x285bee['cookie']?a85_0x518a82[_0x2edf3a(0xbd)](_0x2edf3a(0xd5)+_0x285bee['cookie'][_0x2edf3a(0xb2)]+')'):_0x3da772?a85_0x518a82[_0x2edf3a(0xbd)](_0x2edf3a(0xa2)+_0x3da772[_0x2edf3a(0xb2)]+')'):a85_0x518a82[_0x2edf3a(0xc3)]('(none)')));const _0x1cb1ca=Object[_0x2edf3a(0x99)](_0x285bee[_0x2edf3a(0xb5)]);if(_0x1cb1ca['length']>0x0){console[_0x2edf3a(0xcd)](),console[_0x2edf3a(0xcd)](a85_0x518a82[_0x2edf3a(0xcf)]('\x20\x20Apps')),console[_0x2edf3a(0xcd)](a85_0x518a82['gray'](_0x2edf3a(0xac)[_0x2edf3a(0xae)](0x1e)));for(const _0x3e4f06 of _0x1cb1ca){const _0x5761cc=_0x285bee[_0x2edf3a(0xb5)][_0x3e4f06],_0x2e01c8=_0x3e4f06===_0x285bee[_0x2edf3a(0x9d)],_0xd805eb=_0x3e4f06===_0x285bee[_0x2edf3a(0x93)],_0x22b213=_0xd805eb?a85_0x518a82[_0x2edf3a(0xbd)](_0x2edf3a(0xd9)):'',_0x16ce30=_0x2e01c8?_0x2edf3a(0xcc):'';console[_0x2edf3a(0xcd)]('\x20\x20'+_0x3e4f06+_0x16ce30+_0x22b213),console[_0x2edf3a(0xcd)](_0x2edf3a(0xa8)+_0x5761cc[_0x2edf3a(0xdb)]);const _0x11c96d=buildAppDoctorFields(_0x5761cc,{'env':_0x285bee[_0x2edf3a(0xa9)],'apiDir':_0x285bee[_0x2edf3a(0x96)][_0x2edf3a(0xce)]||DEFAULT_CONFIG_VALUES[_0x2edf3a(0xce)],'cookie':_0x285bee[_0x2edf3a(0xd4)]||_0x3da772||undefined,'accessKey':_0x285bee[_0x2edf3a(0x97)]});console['log']('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x11c96d[_0x2edf3a(0xa9)][_0x2edf3a(0xdd)]+'\x20\x20'+a85_0x518a82['gray']('('+_0x11c96d['env'][_0x2edf3a(0xcb)]+')')),console[_0x2edf3a(0xcd)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x11c96d['apiDir'][_0x2edf3a(0xdd)]+'\x20\x20'+a85_0x518a82['gray']('('+_0x11c96d[_0x2edf3a(0xce)]['source']+')'));const _0x43c6e8=_0x11c96d[_0x2edf3a(0xd4)]['value']?a85_0x518a82['green'](_0x2edf3a(0xd5)+_0x11c96d['cookie'][_0x2edf3a(0xdd)][_0x2edf3a(0xb2)]+')'):a85_0x518a82['gray'](_0x2edf3a(0x94));console[_0x2edf3a(0xcd)](_0x2edf3a(0xda)+_0x43c6e8+'\x20\x20'+a85_0x518a82['gray']('('+_0x11c96d[_0x2edf3a(0xd4)][_0x2edf3a(0xcb)]+')'));const _0x10d53f=_0x11c96d[_0x2edf3a(0x97)]['value']?a85_0x518a82[_0x2edf3a(0xbd)](_0x2edf3a(0xd5)+_0x11c96d['accessKey']['value'][_0x2edf3a(0xb2)]+')'):a85_0x518a82['gray'](_0x2edf3a(0x94));console[_0x2edf3a(0xcd)](_0x2edf3a(0xe1)+_0x10d53f+'\x20\x20'+a85_0x518a82[_0x2edf3a(0xc3)]('('+_0x11c96d[_0x2edf3a(0x97)][_0x2edf3a(0xcb)]+')'));}}console[_0x2edf3a(0xcd)](),console[_0x2edf3a(0xcd)](a85_0x518a82[_0x2edf3a(0xcf)](_0x2edf3a(0x92))),console[_0x2edf3a(0xcd)](a85_0x518a82[_0x2edf3a(0xc3)]('\x20\x20─'[_0x2edf3a(0xae)](0x1e))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xde)+getApiDomain()),console['log'](_0x2edf3a(0x95)+getUserDomain()),console[_0x2edf3a(0xcd)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x2edf3a(0xcd)](),console[_0x2edf3a(0xcd)](a85_0x518a82[_0x2edf3a(0xcf)]('\x20\x20Auth')),console['log'](a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0xac)[_0x2edf3a(0xae)](0x1e)));if(_0x3da772){const _0x4c2828=await getIsSessionValid();console[_0x2edf3a(0xcd)](_0x2edf3a(0xc9)+(_0x4c2828?a85_0x518a82[_0x2edf3a(0xbd)](_0x2edf3a(0xd2)):a85_0x518a82[_0x2edf3a(0xd1)]('✗\x20Expired')));}else console[_0x2edf3a(0xcd)](_0x2edf3a(0xc9)+a85_0x518a82[_0x2edf3a(0xd1)](_0x2edf3a(0x9e)));return console[_0x2edf3a(0xcd)](),{'ok':!![]};}export const doctorDefinition={'service':a85_0x162547(0xad),'command':a85_0x162547(0xb1),'description':a85_0x162547(0xdc),'risk':a85_0x162547(0xc0),'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 a86_0x3b25eb=a86_0x736d;(function(_0xd2a3c5,_0x1ea670){const _0x13d263=a86_0x736d,_0x22f7dc=_0xd2a3c5();while(!![]){try{const _0x39eec9=-parseInt(_0x13d263(0xba))/0x1*(parseInt(_0x13d263(0x9c))/0x2)+-parseInt(_0x13d263(0xaa))/0x3*(parseInt(_0x13d263(0xa6))/0x4)+parseInt(_0x13d263(0x99))/0x5*(-parseInt(_0x13d263(0x90))/0x6)+-parseInt(_0x13d263(0xb9))/0x7*(-parseInt(_0x13d263(0x8d))/0x8)+parseInt(_0x13d263(0xa0))/0x9+-parseInt(_0x13d263(0x8c))/0xa+parseInt(_0x13d263(0x9a))/0xb;if(_0x39eec9===_0x1ea670)break;else _0x22f7dc['push'](_0x22f7dc['shift']());}catch(_0x27095b){_0x22f7dc['push'](_0x22f7dc['shift']());}}}(a86_0x15d7,0x89ad2));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';function a86_0x736d(_0x2fa5b1,_0x18e0fa){_0x2fa5b1=_0x2fa5b1-0x87;const _0x15d7c5=a86_0x15d7();let _0x736dd0=_0x15d7c5[_0x2fa5b1];return _0x736dd0;}function a86_0x15d7(){const _0x1e6e88=['6364510ayvUqJ','5392JNzWPd','log','map','507966MaWQhR','global','env','project','run','validation','boolean','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','\x0a✓\x20Successfully\x20initialized\x20','65DBhClv','30517927ttGPnw','yes','713562DYWilN','appcode','custom','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','6991263WxXyaW','join','Usage:\x20','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','cwd','valid','36092dUeMVT','App\x20code\x20to\x20initialize\x20with','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','production','177cuJIye','string','defaultApp','flagMissing','appCode','init','../../commands/project/init.js','Use\x20`','nonInteractive','\x20\x20Default:\x20','write','\x20config','Auto-confirm\x20prompts','\x20\x20Apps:\x20','bool','3661HtPNGf','3qrNUhW','Target\x20environment','toLocaleString','\x20\x20Env:\x20','str','message','some'];a86_0x15d7=function(){return _0x1e6e88;};return a86_0x15d7();}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(_0x45de12){return{'appCode':_0x45de12,'appName':_0x45de12};}function writeInitConfig(_0x3a4a99,_0x676d22,_0x142cf6){const _0xc04d25=a86_0x736d,_0x39ec15=resolveWriteConfigPath(_0x3a4a99),_0xbc7f4c=buildCanonicalProjectConfig({},{'appCodes':_0x676d22[_0xc04d25(0x8f)](_0x4dd78f=>_0x4dd78f[_0xc04d25(0xae)]),'env':_0x142cf6,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0xc04d25(0x87)]()}});writeConfigFile(_0x39ec15,_0xbc7f4c);const _0x2817f3=_0x3a4a99===_0xc04d25(0x91)?_0xc04d25(0x91):_0xc04d25(0x93);console[_0xc04d25(0x8e)](_0xc04d25(0x98)+_0x2817f3+_0xc04d25(0xb5)),console[_0xc04d25(0x8e)](_0xc04d25(0xb7)+_0x676d22[_0xc04d25(0x8f)](_0x494566=>_0x494566[_0xc04d25(0xae)])[_0xc04d25(0xa1)](',\x20')),console[_0xc04d25(0x8e)](_0xc04d25(0xb3)+_0xbc7f4c[_0xc04d25(0xac)]),console[_0xc04d25(0x8e)](_0xc04d25(0x88)+_0xbc7f4c[_0xc04d25(0x92)]),console[_0xc04d25(0x8e)]('\x20\x20Config:\x20'+_0x39ec15);}async function runSmartInit(_0x1da5c0){const _0x4f58ff=a86_0x736d,_0x434cf0=process[_0x4f58ff(0xa4)](),_0x1d4c46=_0x1da5c0[_0x4f58ff(0xb8)]('global')?_0x4f58ff(0x91):_0x4f58ff(0x93),_0x1a109f=_0x1da5c0['str'](_0x4f58ff(0x92))||_0x4f58ff(0xa9),_0x2f5ec0=_0x1da5c0[_0x4f58ff(0x89)](_0x4f58ff(0x9d))||undefined,_0x1cdd1e=_0x1da5c0['bool'](_0x4f58ff(0x93));if(_0x1cdd1e){const {initConfig:_0x332463}=await import(_0x4f58ff(0xb0));return _0x332463({'appcode':_0x2f5ec0,'env':_0x1a109f,'autoYes':_0x1da5c0[_0x4f58ff(0xb8)](_0x4f58ff(0x9b))});}if(_0x1d4c46===_0x4f58ff(0x93)){const _0x42d0ee=existsSync(resolve(_0x434cf0,NEW_CONFIG_NAME)),_0x5ceb56=LEGACY_CONFIG_NAMES[_0x4f58ff(0x8b)](_0x57f705=>existsSync(resolve(_0x434cf0,_0x57f705)));if(_0x5ceb56&&!_0x42d0ee)return console[_0x4f58ff(0x8e)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x1da5c0[_0x4f58ff(0xb2)],{'yes':_0x1da5c0[_0x4f58ff(0xb8)](_0x4f58ff(0x9b))});if(_0x42d0ee)throw CliErrors['validation'](_0x4f58ff(0xa3),_0x4f58ff(0xb1)+CLI_BIN_NAME+_0x4f58ff(0x97));}if(_0x2f5ec0){const _0x442f11=validateAppcode(_0x2f5ec0);if(!_0x442f11[_0x4f58ff(0xa5)])throw CliErrors[_0x4f58ff(0x95)](_0x442f11[_0x4f58ff(0x8a)]);writeInitConfig(_0x1d4c46,[syntheticApp(_0x2f5ec0)],_0x1a109f);return;}if(_0x1da5c0[_0x4f58ff(0xb2)])throw CliErrors[_0x4f58ff(0xad)](_0x4f58ff(0x9d),_0x4f58ff(0xa2)+CLI_BIN_NAME+_0x4f58ff(0xa8));const _0x292a35=getCookie(),_0x1df63d=await selectMultipleApps(_0x292a35),_0xe2ed51=_0x1df63d===_0x4f58ff(0x9e)?[syntheticApp(await promptCustomAppcode())]:_0x1df63d;writeInitConfig(_0x1d4c46,_0xe2ed51,_0x1a109f);}const initFlags=[{'name':'global','type':a86_0x3b25eb(0x96),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a86_0x3b25eb(0x92),'type':a86_0x3b25eb(0xab),'description':a86_0x3b25eb(0xbb),'default':a86_0x3b25eb(0xa9),'enum':[...RABETBASE_ENV_VALUES]},{'name':a86_0x3b25eb(0x9d),'type':a86_0x3b25eb(0xab),'description':a86_0x3b25eb(0xa7)},{'name':a86_0x3b25eb(0x93),'type':a86_0x3b25eb(0x96),'description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':a86_0x3b25eb(0x9b),'type':a86_0x3b25eb(0x96),'description':a86_0x3b25eb(0xb6),'default':![]}];export const initDefinitions=[{'service':a86_0x3b25eb(0xaf),'command':a86_0x3b25eb(0x94),'description':a86_0x3b25eb(0x9f),'risk':a86_0x3b25eb(0xb4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x59bbab){return await runSmartInit(_0x59bbab),{'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(_0x483cca,_0x255f84){const _0x501a64=a87_0x3727,_0x518df5=_0x483cca();while(!![]){try{const _0x37bec6=parseInt(_0x501a64(0x189))/0x1+parseInt(_0x501a64(0x18b))/0x2*(parseInt(_0x501a64(0x181))/0x3)+parseInt(_0x501a64(0x183))/0x4*(-parseInt(_0x501a64(0x184))/0x5)+-parseInt(_0x501a64(0x186))/0x6*(parseInt(_0x501a64(0x18a))/0x7)+-parseInt(_0x501a64(0x188))/0x8*(parseInt(_0x501a64(0x187))/0x9)+parseInt(_0x501a64(0x180))/0xa*(parseInt(_0x501a64(0x182))/0xb)+-parseInt(_0x501a64(0x18c))/0xc*(parseInt(_0x501a64(0x185))/0xd);if(_0x37bec6===_0x255f84)break;else _0x518df5['push'](_0x518df5['shift']());}catch(_0x3845b0){_0x518df5['push'](_0x518df5['shift']());}}}(a87_0x14ed,0x5432d));import{issueReport}from'../../commands/issue/report.js';function a87_0x3727(_0x52fe5d,_0x14662e){_0x52fe5d=_0x52fe5d-0x180;const _0x14ed08=a87_0x14ed();let _0x372770=_0x14ed08[_0x52fe5d];return _0x372770;}function a87_0x14ed(){const _0x3d3b72=['56116yYAHxY','95Stpbku','104kXwuDI','2946gceWeZ','118431JfvFYd','40NRkJVz','669144bBFLAo','8722DIlQdU','60WxZshH','292116ieQjDB','130GhioxY','51297ZBdDuJ','255233KfNKiX'];a87_0x14ed=function(){return _0x3d3b72;};return a87_0x14ed();}export const issueDefinitions=[issueReport];
@@ -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 a88_0x2dfee7=a88_0x2c67;(function(_0x5258ef,_0x5a101a){const _0x34569c=a88_0x2c67,_0x52a72b=_0x5258ef();while(!![]){try{const _0xa76f22=parseInt(_0x34569c(0x12c))/0x1+-parseInt(_0x34569c(0x13c))/0x2*(-parseInt(_0x34569c(0x13e))/0x3)+parseInt(_0x34569c(0x125))/0x4*(parseInt(_0x34569c(0x12f))/0x5)+-parseInt(_0x34569c(0x13a))/0x6+parseInt(_0x34569c(0x126))/0x7+-parseInt(_0x34569c(0x13f))/0x8+-parseInt(_0x34569c(0x12e))/0x9;if(_0xa76f22===_0x5a101a)break;else _0x52a72b['push'](_0x52a72b['shift']());}catch(_0x281734){_0x52a72b['push'](_0x52a72b['shift']());}}}(a88_0x431d,0x5b0ac));function a88_0x2c67(_0x3f7846,_0x3d6f09){_0x3f7846=_0x3f7846-0x124;const _0x431dcf=a88_0x431d();let _0x2c67cf=_0x431dcf[_0x3f7846];return _0x2c67cf;}import{CliError}from'../../errors.js';function a88_0x431d(){const _0x7ae431=['\x20\x20\x20\x20--title\x20\x22','auth_required','not_in_project','unknown_command','RABETBASE_DISABLE_ISSUE_NUDGE','slice','\x20\x20Set\x20','network_error','\x22\x20\x5c','4061376waaifY','command','19608hoNGpy','config_missing','87NWrRVY','1498200ikDolu','stderr','has','code','\x20bug?\x20Help\x20us\x20fix\x20it:','8OyiNpk','3746463rMaTPD','cancelled','replace','service','trim','validation_error','402927dOMUtB','Hit\x20a\x20','5348943CEyChI','1522385EXLMcV','=1\x20to\x20silence\x20this\x20hint.'];a88_0x431d=function(){return _0x7ae431;};return a88_0x431d();}import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a88_0x2dfee7(0x135);const NUDGE_SUPPRESSED_CODES=new Set([a88_0x2dfee7(0x127),a88_0x2dfee7(0x132),a88_0x2dfee7(0x13d),a88_0x2dfee7(0x133),a88_0x2dfee7(0x134),'flag_missing',a88_0x2dfee7(0x12b),a88_0x2dfee7(0x138)]),defaultWriter=_0x360917=>{const _0x345bf2=a88_0x2dfee7;process[_0x345bf2(0x140)]['write'](_0x360917);};export function shouldNudgeForError(_0x4e9053,_0x34709b){const _0x50ddf0=a88_0x2dfee7;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x34709b[_0x50ddf0(0x129)]==='issue'&&_0x34709b[_0x50ddf0(0x13b)]==='report')return![];if(_0x4e9053 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x50ddf0(0x141)](_0x4e9053[_0x50ddf0(0x142)]);return!![];}export function printIssueReportNudgeForError(_0x49d2dd,_0x2d7d5a,_0x44709c=defaultWriter){if(!shouldNudgeForError(_0x49d2dd,_0x2d7d5a))return;const _0x317a5a=buildSuggestedTitle(_0x49d2dd,_0x2d7d5a);_0x44709c(formatNudge(_0x317a5a));}function buildSuggestedTitle(_0x50043e,_0x50b65d){const _0x54329a=a88_0x2dfee7,_0x49782f=_0x50043e instanceof Error?_0x50043e['message']:String(_0x50043e),_0x515db1=_0x49782f[_0x54329a(0x128)](/[\r\n]+/g,'\x20')[_0x54329a(0x128)](/\s+/g,'\x20')[_0x54329a(0x12a)]()[_0x54329a(0x136)](0x0,0x78)[_0x54329a(0x128)](/"/g,'\x5c\x22'),_0x2db7f8=CLI_BIN_NAME+'\x20'+_0x50b65d[_0x54329a(0x129)]+'\x20'+_0x50b65d[_0x54329a(0x13b)];return _0x515db1['length']>0x0?_0x2db7f8+':\x20'+_0x515db1:_0x2db7f8;}function formatNudge(_0xd232a0){const _0xca8791=a88_0x2dfee7;return['',_0xca8791(0x12d)+CLI_BIN_NAME+_0xca8791(0x124),'\x20\x20'+CLI_BIN_NAME+'\x20issue\x20report\x20\x5c',_0xca8791(0x131)+_0xd232a0+_0xca8791(0x139),'\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.)',_0xca8791(0x137)+NUDGE_OPT_OUT_ENV+_0xca8791(0x130),'']['join']('\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
+ function a89_0x106b(_0x717d27,_0x160236){_0x717d27=_0x717d27-0xb1;const _0x387586=a89_0x3875();let _0x106b9f=_0x387586[_0x717d27];return _0x106b9f;}const a89_0x3af9e7=a89_0x106b;(function(_0x371a5c,_0x53920f){const _0x4f3191=a89_0x106b,_0x40368a=_0x371a5c();while(!![]){try{const _0x151cbf=parseInt(_0x4f3191(0xe5))/0x1*(parseInt(_0x4f3191(0xb3))/0x2)+-parseInt(_0x4f3191(0xca))/0x3*(parseInt(_0x4f3191(0xe4))/0x4)+parseInt(_0x4f3191(0xc3))/0x5*(-parseInt(_0x4f3191(0xbc))/0x6)+parseInt(_0x4f3191(0xd8))/0x7+parseInt(_0x4f3191(0xea))/0x8*(-parseInt(_0x4f3191(0xc6))/0x9)+-parseInt(_0x4f3191(0xef))/0xa+parseInt(_0x4f3191(0xd7))/0xb*(parseInt(_0x4f3191(0xe6))/0xc);if(_0x151cbf===_0x53920f)break;else _0x40368a['push'](_0x40368a['shift']());}catch(_0x13b9cb){_0x40368a['push'](_0x40368a['shift']());}}}(a89_0x3875,0xd7a89));function a89_0x3875(){const _0x8a8415=['cwd','descriptionSource','str','sanitize','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','Issue\x20description\x20file\x20is\x20empty:\x20','Issue\x20description\x20cannot\x20be\x20empty.','\x20bytes','4exfsVC','257shAkge','36yZoeYh','originalBytes','apiError','description','8881688RVbjBA','message','filter','title','Platform\x20issue\x20reported','625830GHGMrz','redactionCount','truncated','13318jApMpg','redactionKinds','issue.title','\x20secret(s):\x20','push','file','join','compress','descriptionFilePath','6eLGUJK','report','issue.description','issue.description_truncated','length','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','6732055vujZCd','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','issue','9MFIZtB','otel://','write','validation','1294287cmATcu','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','trim','utf8','descriptionFile:\x20','issue.description_redaction_kinds','redactions:\x20','inline','string','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','descriptionSource:\x20','description-file','truncated:\x20original\x20','5697439sXKGQs','3981327CSPNIH','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','Failed\x20to\x20report\x20platform\x20issue:\x20'];a89_0x3875=function(){return _0x8a8415;};return a89_0x3875();}import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a89_0x3af9e7(0xd5);export const issueReport={'service':a89_0x3af9e7(0xc5),'command':a89_0x3af9e7(0xbd),'description':a89_0x3af9e7(0xd9),'risk':a89_0x3af9e7(0xc8),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a89_0x3af9e7(0xba),'flags':[{'name':a89_0x3af9e7(0xed),'type':a89_0x3af9e7(0xd2),'required':!![],'description':'One-line\x20issue\x20summary'},{'name':a89_0x3af9e7(0xe9),'type':a89_0x3af9e7(0xd2),'description':a89_0x3af9e7(0xc4)},{'name':DESCRIPTION_FILE_FLAG,'type':a89_0x3af9e7(0xd2),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x3b2bfb){const _0x34701f=a89_0x3af9e7,_0x12c1dc=_0x3b2bfb[_0x34701f(0xde)](_0x34701f(0xed))[_0x34701f(0xcc)](),_0x2ee296=_0x3b2bfb[_0x34701f(0xde)](_0x34701f(0xe9))[_0x34701f(0xcc)](),_0x2499b6=_0x3b2bfb[_0x34701f(0xde)](DESCRIPTION_FILE_FLAG)[_0x34701f(0xcc)]();if(!_0x12c1dc)throw CliErrors['flagMissing'](_0x34701f(0xed),_0x34701f(0xda));const _0x44cbc3=_0x2ee296['length']>0x0,_0x3a7bf9=_0x2499b6[_0x34701f(0xc0)]>0x0;if(_0x44cbc3===_0x3a7bf9)throw CliErrors[_0x34701f(0xc9)](_0x34701f(0xd3),_0x34701f(0xcb));if(_0x3a7bf9){const _0x55dd29=resolve(process[_0x34701f(0xdc)](),_0x2499b6);if(!existsSync(_0x55dd29))throw CliErrors[_0x34701f(0xc9)]('File\x20not\x20found:\x20'+_0x55dd29);}},async 'dryRun'(_0x232363){const _0x5490ea=a89_0x3af9e7,_0x293ec8=await prepareIssueReport(_0x232363);return{'method':'POST','url':_0x5490ea(0xc7)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x293ec8[_0x5490ea(0xed)],'issue.description':_0x293ec8[_0x5490ea(0xe9)],'issue.description_original_bytes':_0x293ec8[_0x5490ea(0xdf)][_0x5490ea(0xe7)],'issue.description_truncated':_0x293ec8[_0x5490ea(0xdf)][_0x5490ea(0xb2)],'issue.description_redactions':_0x293ec8[_0x5490ea(0xdf)][_0x5490ea(0xb1)],'issue.description_redaction_kinds':_0x293ec8[_0x5490ea(0xdf)][_0x5490ea(0xb4)][_0x5490ea(0xb9)](',')}},'description':[_0x5490ea(0xc1),_0x5490ea(0xd4)+_0x293ec8[_0x5490ea(0xdd)],_0x293ec8[_0x5490ea(0xbb)]?_0x5490ea(0xce)+_0x293ec8['descriptionFilePath']:null,_0x293ec8[_0x5490ea(0xdf)][_0x5490ea(0xb2)]?_0x5490ea(0xd6)+_0x293ec8['sanitize']['originalBytes']+_0x5490ea(0xe3):null,_0x293ec8[_0x5490ea(0xdf)][_0x5490ea(0xb1)]>0x0?_0x5490ea(0xd0)+_0x293ec8[_0x5490ea(0xdf)]['redactionCount']+'\x20('+_0x293ec8[_0x5490ea(0xdf)]['redactionKinds'][_0x5490ea(0xb9)](',\x20')+')':null][_0x5490ea(0xec)](Boolean)[_0x5490ea(0xb9)]('\x0a')};},async 'execute'(_0x4e02f5){const _0x1ddd60=a89_0x3af9e7,_0x2bb5ff=await prepareIssueReport(_0x4e02f5);try{await sendPlatformIssueCollectLog({'title':_0x2bb5ff[_0x1ddd60(0xed)],'description':_0x2bb5ff[_0x1ddd60(0xe9)],'sanitize':{'originalBytes':_0x2bb5ff['sanitize']['originalBytes'],'truncated':_0x2bb5ff[_0x1ddd60(0xdf)]['truncated'],'redactionCount':_0x2bb5ff[_0x1ddd60(0xdf)]['redactionCount'],'redactionKinds':_0x2bb5ff[_0x1ddd60(0xdf)][_0x1ddd60(0xb4)]}});}catch(_0xe9872a){throw CliErrors[_0x1ddd60(0xe8)](_0x1ddd60(0xdb)+(_0xe9872a instanceof Error?_0xe9872a[_0x1ddd60(0xeb)]:String(_0xe9872a)),_0x1ddd60(0xc2));}return{'ok':!![],'message':buildResultMessage(_0x2bb5ff[_0x1ddd60(0xdf)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x1ddd60(0xb5),_0x1ddd60(0xbe),'issue.description_original_bytes',_0x1ddd60(0xbf),'issue.description_redactions',_0x1ddd60(0xcf)],'issue':{'title':_0x2bb5ff['title'],'descriptionLength':_0x2bb5ff[_0x1ddd60(0xe9)]['length'],'descriptionSource':_0x2bb5ff['descriptionSource'],..._0x2bb5ff[_0x1ddd60(0xbb)]?{'descriptionFile':_0x2bb5ff[_0x1ddd60(0xbb)]}:{},'sanitize':{'originalBytes':_0x2bb5ff[_0x1ddd60(0xdf)]['originalBytes'],'truncated':_0x2bb5ff[_0x1ddd60(0xdf)][_0x1ddd60(0xb2)],'redactions':_0x2bb5ff['sanitize'][_0x1ddd60(0xb1)],'redactionKinds':_0x2bb5ff[_0x1ddd60(0xdf)]['redactionKinds']}}}};}};function buildResultMessage(_0x442d94){const _0x166a41=a89_0x3af9e7,_0x12ea58=[];return _0x442d94[_0x166a41(0xb2)]&&_0x12ea58[_0x166a41(0xb7)]('truncated\x20from\x20'+_0x442d94[_0x166a41(0xe7)]+_0x166a41(0xe3)),_0x442d94['redactionCount']>0x0&&_0x12ea58[_0x166a41(0xb7)]('redacted\x20'+_0x442d94[_0x166a41(0xb1)]+_0x166a41(0xb6)+_0x442d94[_0x166a41(0xb4)][_0x166a41(0xb9)](',\x20')),_0x12ea58[_0x166a41(0xc0)]===0x0?_0x166a41(0xee):'Platform\x20issue\x20reported\x20('+_0x12ea58['join'](';\x20')+')';}async function prepareIssueReport(_0x378f96){const _0x199be8=a89_0x3af9e7,_0x486167=_0x378f96[_0x199be8(0xde)](_0x199be8(0xed))[_0x199be8(0xcc)](),_0x2eb9ca=_0x378f96[_0x199be8(0xde)]('description'),_0x5cab52=_0x378f96[_0x199be8(0xde)](DESCRIPTION_FILE_FLAG)[_0x199be8(0xcc)]();if(!_0x5cab52){const _0x4501dc=_0x2eb9ca;if(!_0x4501dc[_0x199be8(0xcc)]())throw CliErrors[_0x199be8(0xc9)](_0x199be8(0xe2),_0x199be8(0xe0));const _0x95cbda=sanitizeIssueDescription(_0x4501dc);return{'title':_0x486167,'description':_0x95cbda[_0x199be8(0xe9)],'descriptionSource':_0x199be8(0xd1),'sanitize':_0x95cbda};}const _0x29863f=resolve(process[_0x199be8(0xdc)](),_0x5cab52),_0xcf20e5=await readFile(_0x29863f,_0x199be8(0xcd));if(!_0xcf20e5['trim']())throw CliErrors[_0x199be8(0xc9)](_0x199be8(0xe1)+_0x29863f,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x2f45c3=sanitizeIssueDescription(_0xcf20e5);return{'title':_0x486167,'description':_0x2f45c3[_0x199be8(0xe9)],'descriptionSource':_0x199be8(0xb8),'descriptionFilePath':_0x29863f,'sanitize':_0x2f45c3};}
@@ -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 a90_0x4cd0b3=a90_0x383e;(function(_0x587548,_0x4c6e71){const _0xc89def=a90_0x383e,_0x35217d=_0x587548();while(!![]){try{const _0x425d43=parseInt(_0xc89def(0x12b))/0x1+-parseInt(_0xc89def(0x115))/0x2+-parseInt(_0xc89def(0x12c))/0x3*(parseInt(_0xc89def(0x121))/0x4)+parseInt(_0xc89def(0x123))/0x5*(-parseInt(_0xc89def(0x129))/0x6)+-parseInt(_0xc89def(0x12a))/0x7+-parseInt(_0xc89def(0x127))/0x8+parseInt(_0xc89def(0x124))/0x9;if(_0x425d43===_0x4c6e71)break;else _0x35217d['push'](_0x35217d['shift']());}catch(_0xb1218f){_0x35217d['push'](_0x35217d['shift']());}}}(a90_0x1fb7,0x90b0d));function a90_0x1fb7(){const _0x6152b3=['REDACTED:bearer-jwt','pattern','utf8','cookie','3479116swUGAK','REDACTED:access-key','19615QEFvZK','32244147HEteZh','REDACTED:private-key','REDACTED:cookie','5143312xOvhbj','label','336hBafVr','7433405YLtIxo','855064EjKCwQ','3nDvqVp','private-key','toString','includes','byteLength','2101596OHhEVc','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','bearer-jwt','push','string','subarray','max','REDACTED:password'];a90_0x1fb7=function(){return _0x6152b3;};return a90_0x1fb7();}export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a90_0x4cd0b3(0x116),REDACTION_RULES=[{'kind':a90_0x4cd0b3(0x120),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a90_0x4cd0b3(0x126)},{'kind':'authorization','pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':a90_0x4cd0b3(0x111),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a90_0x4cd0b3(0x125)},{'kind':'access-key','pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a90_0x4cd0b3(0x122)},{'kind':'password','pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a90_0x4cd0b3(0x11c)},{'kind':a90_0x4cd0b3(0x117),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a90_0x4cd0b3(0x11d)}];export function sanitizeIssueDescription(_0x1824ca){const _0x3b443f=a90_0x4cd0b3,_0x4ca0db=Buffer['byteLength'](_0x1824ca,_0x3b443f(0x11f)),_0x4f3b64=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x1a515b=_0x1824ca,_0x194065=0x0;const _0xef4c03=[];if(!_0x4f3b64)for(const _0x15b6e6 of REDACTION_RULES){let _0x302cae=0x0;_0x1a515b=_0x1a515b['replace'](_0x15b6e6[_0x3b443f(0x11e)],(_0x135370,_0x340ba0)=>{const _0x10081c=_0x3b443f;_0x302cae+=0x1;const _0x5f2b58=typeof _0x340ba0===_0x10081c(0x119)?_0x340ba0:'';return _0x5f2b58+'['+_0x15b6e6[_0x10081c(0x128)]+']';}),_0x302cae>0x0&&(_0x194065+=_0x302cae,!_0xef4c03[_0x3b443f(0x113)](_0x15b6e6['kind'])&&_0xef4c03[_0x3b443f(0x118)](_0x15b6e6['kind']));}let _0x35cb0f=![];if(Buffer['byteLength'](_0x1a515b,'utf8')>ISSUE_DESCRIPTION_MAX_BYTES){_0x35cb0f=!![];const _0x3bfab8=Buffer[_0x3b443f(0x114)](TRUNCATION_NOTICE,_0x3b443f(0x11f)),_0x1515ac=Math[_0x3b443f(0x11b)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x3bfab8);_0x1a515b=sliceUtf8Bytes(_0x1a515b,_0x1515ac)+TRUNCATION_NOTICE;}return{'description':_0x1a515b,'originalBytes':_0x4ca0db,'truncated':_0x35cb0f,'redactionCount':_0x194065,'redactionKinds':_0xef4c03};}function a90_0x383e(_0x24ffba,_0x46057e){_0x24ffba=_0x24ffba-0x111;const _0x1fb7d7=a90_0x1fb7();let _0x383e5f=_0x1fb7d7[_0x24ffba];return _0x383e5f;}function sliceUtf8Bytes(_0x56b0a1,_0x445af2){const _0x73e87d=a90_0x4cd0b3;if(_0x445af2<=0x0)return'';const _0x484036=Buffer['from'](_0x56b0a1,_0x73e87d(0x11f));if(_0x484036[_0x73e87d(0x114)]<=_0x445af2)return _0x56b0a1;let _0xede223=_0x445af2;while(_0xede223>0x0){const _0x5013bc=_0x484036[_0xede223];if(_0x5013bc===undefined||(_0x5013bc&0xc0)!==0x80)break;_0xede223-=0x1;}return _0x484036[_0x73e87d(0x11a)](0x0,_0xede223)[_0x73e87d(0x112)](_0x73e87d(0x11f));}
@@ -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
+ function a91_0x31a5(){const _0x3acb18=['message','toLocaleString','log','logs','650294ScsUSv','293204ZjCqSu','8ufKcHY','command','length','\x20\x20\x20Time:\x20','*\x20No\x20logs\x20found','show','clearLogs','forEach','warn','en-US','read','200073PZdeHt','Clear\x20command\x20history\x20logs','7975570jDQVYb','keys','3072083MtGbah','3hHyeOm','462lVddOZ','28570CbLlJG','3985695lkCBaF','\x20\x20\x20Details:\x20','level','duration','*\x20Lovrabet\x20CLI\x20logs:\x0a','success','View\x20command\x20history\x20logs','details'];a91_0x31a5=function(){return _0x3acb18;};return a91_0x31a5();}const a91_0x53f415=a91_0x3a78;function a91_0x3a78(_0x3a01d7,_0x36b660){_0x3a01d7=_0x3a01d7-0x182;const _0x31a577=a91_0x31a5();let _0x3a787e=_0x31a577[_0x3a01d7];return _0x3a787e;}(function(_0x5eeaf8,_0xb266e5){const _0x40e75c=a91_0x3a78,_0x5c7a13=_0x5eeaf8();while(!![]){try{const _0x2c278d=parseInt(_0x40e75c(0x19a))/0x1+parseInt(_0x40e75c(0x18d))/0x2*(parseInt(_0x40e75c(0x19f))/0x3)+parseInt(_0x40e75c(0x18e))/0x4+parseInt(_0x40e75c(0x1a1))/0x5*(-parseInt(_0x40e75c(0x1a0))/0x6)+parseInt(_0x40e75c(0x19e))/0x7*(parseInt(_0x40e75c(0x18f))/0x8)+parseInt(_0x40e75c(0x1a2))/0x9+-parseInt(_0x40e75c(0x19c))/0xa;if(_0x2c278d===_0xb266e5)break;else _0x5c7a13['push'](_0x5c7a13['shift']());}catch(_0x281b72){_0x5c7a13['push'](_0x5c7a13['shift']());}}}(a91_0x31a5,0x3b416));import{logger}from'../../utils/logger.js';function printLogs(_0x2258d4){const _0x4dc094=a91_0x3a78;if(_0x2258d4[_0x4dc094(0x191)]===0x0){console[_0x4dc094(0x18b)](_0x4dc094(0x193));return;}console[_0x4dc094(0x18b)](_0x4dc094(0x185)),_0x2258d4[_0x4dc094(0x196)]((_0x26c26a,_0x504ce3)=>{const _0x5c3db8=_0x4dc094,_0x817da3=new Date(_0x26c26a['timestamp'])[_0x5c3db8(0x18a)](_0x5c3db8(0x198)),_0x20948f=_0x26c26a['level']===_0x5c3db8(0x186)?'√':_0x26c26a[_0x5c3db8(0x183)]==='error'?'×':_0x26c26a[_0x5c3db8(0x183)]===_0x5c3db8(0x197)?'!':'i';console['log'](_0x504ce3+0x1+'.\x20'+_0x20948f+'\x20['+_0x26c26a[_0x5c3db8(0x190)]+']\x20'+_0x26c26a[_0x5c3db8(0x189)]),console[_0x5c3db8(0x18b)](_0x5c3db8(0x192)+_0x817da3),_0x26c26a['duration']&&console[_0x5c3db8(0x18b)]('\x20\x20\x20Duration:\x20'+_0x26c26a[_0x5c3db8(0x184)]+'ms'),_0x26c26a[_0x5c3db8(0x188)]&&Object[_0x5c3db8(0x19d)](_0x26c26a[_0x5c3db8(0x188)])[_0x5c3db8(0x191)]>0x0&&console['log'](_0x5c3db8(0x182)+JSON['stringify'](_0x26c26a[_0x5c3db8(0x188)],null,0x2)),console[_0x5c3db8(0x18b)]('');});}export const logsDefinitions=[{'service':a91_0x53f415(0x18c),'command':a91_0x53f415(0x194),'description':a91_0x53f415(0x187),'risk':a91_0x53f415(0x199),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x405059){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':a91_0x53f415(0x18c),'command':'clear','description':a91_0x53f415(0x19b),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x502312){const _0x249fb4=a91_0x53f415;return logger[_0x249fb4(0x195)](),console[_0x249fb4(0x18b)]('*\x20Logs\x20cleared'),{'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 a92_0x3d91(_0x10c332,_0x3a46a9){_0x10c332=_0x10c332-0x119;const _0x192202=a92_0x1922();let _0x3d919a=_0x192202[_0x10c332];return _0x3d919a;}(function(_0x1f6745,_0x578c47){const _0x42b63e=a92_0x3d91,_0x243f79=_0x1f6745();while(!![]){try{const _0x2efc0b=parseInt(_0x42b63e(0x122))/0x1+-parseInt(_0x42b63e(0x11b))/0x2*(parseInt(_0x42b63e(0x11a))/0x3)+-parseInt(_0x42b63e(0x11f))/0x4+parseInt(_0x42b63e(0x11c))/0x5+parseInt(_0x42b63e(0x11e))/0x6+parseInt(_0x42b63e(0x120))/0x7*(-parseInt(_0x42b63e(0x11d))/0x8)+parseInt(_0x42b63e(0x121))/0x9*(-parseInt(_0x42b63e(0x119))/0xa);if(_0x2efc0b===_0x578c47)break;else _0x243f79['push'](_0x243f79['shift']());}catch(_0x5e5a54){_0x243f79['push'](_0x243f79['shift']());}}}(a92_0x1922,0xcfa3a));import{menuList}from'../../commands/menu/list.js';import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];function a92_0x1922(){const _0xa3d90b=['1523588cnWZmj','2090522GwfIsN','9WILCpT','1047727fnJyXY','10643110ntxAPc','260247SoRLRx','26VfhxQA','5811855VIynIY','8cjoaeS','9071898WleCAO'];a92_0x1922=function(){return _0xa3d90b;};return a92_0x1922();}