@lovrabet/rabetbase-cli 2.1.12-beta.4 → 2.1.13

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 (200) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/field-update.js +1 -1
  55. package/lib/commands/dataset/index.js +1 -1
  56. package/lib/commands/dataset/link-create.js +1 -1
  57. package/lib/commands/dataset/link-delete.js +1 -1
  58. package/lib/commands/dataset/link-shared.js +1 -1
  59. package/lib/commands/dataset/link-update.js +1 -1
  60. package/lib/commands/dataset/links.js +1 -1
  61. package/lib/commands/dataset/list.js +1 -1
  62. package/lib/commands/dataset/operations.js +1 -1
  63. package/lib/commands/db/analyze-cancel.js +1 -1
  64. package/lib/commands/db/analyze-start.js +1 -1
  65. package/lib/commands/db/analyze-status.js +1 -1
  66. package/lib/commands/db/create.js +1 -1
  67. package/lib/commands/db/delete.js +1 -1
  68. package/lib/commands/db/detail.js +1 -1
  69. package/lib/commands/db/diff.js +1 -1
  70. package/lib/commands/db/index.js +1 -1
  71. package/lib/commands/db/list.js +1 -1
  72. package/lib/commands/db/shared.js +1 -1
  73. package/lib/commands/db/tables.js +1 -1
  74. package/lib/commands/db/test.js +1 -1
  75. package/lib/commands/db/update.js +1 -1
  76. package/lib/commands/doctor.js +1 -1
  77. package/lib/commands/init/index.js +1 -1
  78. package/lib/commands/issue/index.js +1 -1
  79. package/lib/commands/issue/nudge.js +1 -1
  80. package/lib/commands/issue/report.js +1 -1
  81. package/lib/commands/issue/shared.js +1 -1
  82. package/lib/commands/logs/index.js +1 -1
  83. package/lib/commands/menu/index.js +1 -1
  84. package/lib/commands/menu/shared/compare-table.js +1 -1
  85. package/lib/commands/menu/shared/index.js +1 -1
  86. package/lib/commands/menu/shared/inquirer.js +1 -1
  87. package/lib/commands/menu/shared/local-pages.js +1 -1
  88. package/lib/commands/menu/shared/logic.js +1 -1
  89. package/lib/commands/menu/shared/service.js +1 -1
  90. package/lib/commands/menu/shared/sync-core.js +1 -1
  91. package/lib/commands/menu/shared/update-core.js +1 -1
  92. package/lib/commands/menu/shared/valid-url.js +1 -1
  93. package/lib/commands/menu/sync.js +1 -1
  94. package/lib/commands/menu/update.js +1 -1
  95. package/lib/commands/page/generate-start.js +1 -1
  96. package/lib/commands/page/generate-status.js +1 -1
  97. package/lib/commands/page/index.js +1 -1
  98. package/lib/commands/page/pull.js +1 -1
  99. package/lib/commands/page/push.js +1 -1
  100. package/lib/commands/page/shared.js +1 -1
  101. package/lib/commands/page/standard-page-status.js +1 -1
  102. package/lib/commands/page/sync.js +1 -1
  103. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  104. package/lib/commands/project/create/format-elapsed.js +1 -1
  105. package/lib/commands/project/create/main.js +1 -1
  106. package/lib/commands/project/create/non-interactive.js +1 -1
  107. package/lib/commands/project/create/project-template-path.js +1 -1
  108. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  109. package/lib/commands/project/create/use-format-code.js +1 -1
  110. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  111. package/lib/commands/project/index.js +1 -1
  112. package/lib/commands/project/init.js +1 -1
  113. package/lib/commands/project/upgrade.js +1 -1
  114. package/lib/commands/registry.js +1 -1
  115. package/lib/commands/run/index.js +1 -1
  116. package/lib/commands/schema.js +1 -1
  117. package/lib/commands/skill/index.js +1 -1
  118. package/lib/commands/sql/create.js +1 -1
  119. package/lib/commands/sql/delete.js +1 -1
  120. package/lib/commands/sql/detail.js +1 -1
  121. package/lib/commands/sql/exec.js +1 -1
  122. package/lib/commands/sql/index.js +1 -1
  123. package/lib/commands/sql/list.js +1 -1
  124. package/lib/commands/sql/pull.js +1 -1
  125. package/lib/commands/sql/push.js +1 -1
  126. package/lib/commands/sql/save.js +1 -1
  127. package/lib/commands/sql/shared.js +1 -1
  128. package/lib/commands/sql/status.js +1 -1
  129. package/lib/commands/sql/validate.js +1 -1
  130. package/lib/config/schema.js +1 -1
  131. package/lib/constant/cdn.js +1 -1
  132. package/lib/constant/cli.js +1 -1
  133. package/lib/constant/defaults.js +1 -1
  134. package/lib/constant/domain.js +1 -1
  135. package/lib/constant/env.js +1 -1
  136. package/lib/constant/output.js +1 -1
  137. package/lib/constant/paths.js +1 -1
  138. package/lib/constant/risk.js +1 -1
  139. package/lib/context.js +1 -1
  140. package/lib/core/alias-resolver.js +1 -1
  141. package/lib/core/api-client.js +1 -1
  142. package/lib/core/bff/config.js +1 -1
  143. package/lib/core/bff/file-system.js +1 -1
  144. package/lib/core/bff/hash.js +1 -1
  145. package/lib/core/bff/lock.js +1 -1
  146. package/lib/core/bff/utils.js +1 -1
  147. package/lib/core/db-resolver.js +1 -1
  148. package/lib/core/page/file-system.js +1 -1
  149. package/lib/core/page/hash.js +1 -1
  150. package/lib/core/page/lock.js +1 -1
  151. package/lib/core/sql-sync/config.js +1 -1
  152. package/lib/core/sql-sync/file-system.js +1 -1
  153. package/lib/core/sql-sync/hash.js +1 -1
  154. package/lib/core/sql-sync/lock.js +1 -1
  155. package/lib/core/sql-sync/utils.js +1 -1
  156. package/lib/core/sql-validator.js +1 -1
  157. package/lib/errors.js +1 -1
  158. package/lib/framework/build-all-flags.js +1 -1
  159. package/lib/framework/flags.js +1 -1
  160. package/lib/framework/help.js +1 -1
  161. package/lib/framework/index.js +1 -1
  162. package/lib/framework/output.js +1 -1
  163. package/lib/framework/response.js +1 -1
  164. package/lib/framework/runner-alias.js +1 -1
  165. package/lib/framework/runner.js +1 -1
  166. package/lib/framework/schema-export.js +1 -1
  167. package/lib/framework/types.js +1 -1
  168. package/lib/generated/build-info.js +1 -1
  169. package/lib/help.js +1 -1
  170. package/lib/skills/main.js +1 -1
  171. package/lib/skills/npx-skills-add.js +1 -1
  172. package/lib/telemetry/cli-command-trace.js +1 -1
  173. package/lib/telemetry/cli-help-trace.js +1 -1
  174. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  175. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  176. package/lib/telemetry/send-cli-trace-log.js +1 -1
  177. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  178. package/lib/utils/ai_config.js +1 -1
  179. package/lib/utils/apply-jq-filter.js +1 -1
  180. package/lib/utils/cdn-config.js +1 -1
  181. package/lib/utils/check-sdk-version.js +1 -1
  182. package/lib/utils/cli-version-check.js +1 -1
  183. package/lib/utils/cli-version-policy.js +1 -1
  184. package/lib/utils/config.js +1 -1
  185. package/lib/utils/copy-directory.js +1 -1
  186. package/lib/utils/entity-with-id.js +1 -1
  187. package/lib/utils/file-utils.js +1 -1
  188. package/lib/utils/guides-cdn.js +1 -1
  189. package/lib/utils/http-client.js +1 -1
  190. package/lib/utils/is-non-interactive.js +1 -1
  191. package/lib/utils/logger.js +1 -1
  192. package/lib/utils/params.js +1 -1
  193. package/lib/utils/platform.js +1 -1
  194. package/lib/utils/rules-cdn.js +1 -1
  195. package/lib/utils/sleep.js +1 -1
  196. package/lib/utils/template-replacer.js +1 -1
  197. package/lib/utils/version.js +1 -1
  198. package/lib/utils/with-active-cookie.js +1 -1
  199. package/lib/utils/write-cli-side-channel.js +1 -1
  200. package/package.json +2 -2
@@ -1 +1 @@
1
- const a65_0x132e8a=a65_0xb2da;(function(_0x73b45a,_0x1722a1){const _0x1375ac=a65_0xb2da,_0x91169d=_0x73b45a();while(!![]){try{const _0x45dc96=parseInt(_0x1375ac(0x1cf))/0x1*(parseInt(_0x1375ac(0x1d6))/0x2)+-parseInt(_0x1375ac(0x1e2))/0x3+-parseInt(_0x1375ac(0x1dd))/0x4*(parseInt(_0x1375ac(0x1cb))/0x5)+parseInt(_0x1375ac(0x1df))/0x6+-parseInt(_0x1375ac(0x1f5))/0x7+-parseInt(_0x1375ac(0x1d8))/0x8+-parseInt(_0x1375ac(0x1d1))/0x9*(-parseInt(_0x1375ac(0x1e8))/0xa);if(_0x45dc96===_0x1722a1)break;else _0x91169d['push'](_0x91169d['shift']());}catch(_0x519bc2){_0x91169d['push'](_0x91169d['shift']());}}}(a65_0x3bcf,0x8bf7a));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a65_0xb2da(_0x225247,_0x1bb320){_0x225247=_0x225247-0x1c8;const _0x3bcfd2=a65_0x3bcf();let _0xb2dafc=_0x3bcfd2[_0x225247];return _0xb2dafc;}import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a65_0x3bcf(){const _0x3daa03=['1468551DnsKsj','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','write','dbdesc','appCode','dbname','3030vrZsDl','/smartapi/dblink/create','trim','autostart','Database\x20username','dbtype','password','Database\x20password','8.0','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','Extra\x20JDBC-style\x20connection\x20parameters\x20string','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','boolean','607397dUvgHj','create','dbparam','validation','2575730IqYfeu','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','dburl','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','1Zwrkak','Human-readable\x20description','35163oedyVb','\x20and\x20started\x20analysis','Created\x20db\x20link\x20','[redacted]','join','1443138ijkYFn','After\x20create,\x20start\x20schema\x20analysis','5669688GgMtcU','POST','message','username','bool','8FTjUqG','string','5899242XocXxw','dbversion','str'];a65_0x3bcf=function(){return _0x3daa03;};return a65_0x3bcf();}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':a65_0x132e8a(0x1c8),'description':a65_0x132e8a(0x1f3),'risk':a65_0x132e8a(0x1e4),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a65_0x132e8a(0x1de),'required':!![],'description':a65_0x132e8a(0x1ce)},DB_TYPE_FLAG,{'name':'dbversion','type':a65_0x132e8a(0x1de),'description':'Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','default':a65_0x132e8a(0x1f0)},{'name':a65_0x132e8a(0x1cd),'type':a65_0x132e8a(0x1de),'required':!![],'description':'Host\x20and\x20port:\x20host:port'},{'name':a65_0x132e8a(0x1db),'type':a65_0x132e8a(0x1de),'required':!![],'description':a65_0x132e8a(0x1ec)},{'name':a65_0x132e8a(0x1ee),'type':a65_0x132e8a(0x1de),'required':!![],'description':a65_0x132e8a(0x1ef)},{'name':a65_0x132e8a(0x1c9),'type':a65_0x132e8a(0x1de),'description':a65_0x132e8a(0x1f2)},{'name':a65_0x132e8a(0x1e5),'type':a65_0x132e8a(0x1de),'description':a65_0x132e8a(0x1d0)},{'name':a65_0x132e8a(0x1eb),'type':a65_0x132e8a(0x1f4),'description':a65_0x132e8a(0x1d7),'default':![]}],async 'validate'(_0x169ef1){const _0x4b1df1=a65_0x132e8a,_0x35cf89=_0x169ef1[_0x4b1df1(0x1e1)](_0x4b1df1(0x1cd))[_0x4b1df1(0x1ea)]();if(!validateDbUrl(_0x35cf89))throw CliErrors[_0x4b1df1(0x1ca)](_0x4b1df1(0x1f1)+_0x35cf89+'\x22',_0x4b1df1(0x1e3));},async 'dryRun'(_0x4d1757){const _0x1e0bd3=a65_0x132e8a,_0x1ee1b0={'appCode':_0x4d1757[_0x1e0bd3(0x1e6)],'dbName':_0x4d1757[_0x1e0bd3(0x1e1)](_0x1e0bd3(0x1e7)),'dbType':_0x4d1757[_0x1e0bd3(0x1e1)](_0x1e0bd3(0x1ed)),'dbVersion':_0x4d1757[_0x1e0bd3(0x1e1)](_0x1e0bd3(0x1e0))||_0x1e0bd3(0x1f0),'dbUrl':_0x4d1757[_0x1e0bd3(0x1e1)](_0x1e0bd3(0x1cd))['trim'](),'username':_0x4d1757[_0x1e0bd3(0x1e1)]('username'),'password':_0x1e0bd3(0x1d4),..._0x4d1757[_0x1e0bd3(0x1e1)]('dbparam')?{'dbParam':_0x4d1757[_0x1e0bd3(0x1e1)]('dbparam')}:{},..._0x4d1757[_0x1e0bd3(0x1e1)](_0x1e0bd3(0x1e5))?{'dbDesc':_0x4d1757[_0x1e0bd3(0x1e1)](_0x1e0bd3(0x1e5))}:{}};return{'method':_0x1e0bd3(0x1d9),'url':_0x1e0bd3(0x1e9),'body':_0x1ee1b0,'description':['Create\x20dblink',_0x4d1757['bool'](_0x1e0bd3(0x1eb))?'Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id':'No\x20follow-up\x20analysis'][_0x1e0bd3(0x1d5)]('\x0a')};},async 'execute'(_0x2e6414){const _0x31fbac=a65_0x132e8a,_0x3ec8f6={'appCode':_0x2e6414[_0x31fbac(0x1e6)],'dbName':_0x2e6414['str'](_0x31fbac(0x1e7)),'dbType':_0x2e6414[_0x31fbac(0x1e1)]('dbtype'),'dbVersion':_0x2e6414[_0x31fbac(0x1e1)]('dbversion')||_0x31fbac(0x1f0),'dbUrl':_0x2e6414['str'](_0x31fbac(0x1cd))[_0x31fbac(0x1ea)](),'username':_0x2e6414[_0x31fbac(0x1e1)](_0x31fbac(0x1db)),'password':_0x2e6414[_0x31fbac(0x1e1)](_0x31fbac(0x1ee)),..._0x2e6414[_0x31fbac(0x1e1)](_0x31fbac(0x1c9))?{'dbParam':_0x2e6414[_0x31fbac(0x1e1)](_0x31fbac(0x1c9))}:{},..._0x2e6414[_0x31fbac(0x1e1)](_0x31fbac(0x1e5))?{'dbDesc':_0x2e6414['str'](_0x31fbac(0x1e5))}:{}},{id:_0x54494b,entity:_0x314530}=normalizeEntityWithIdResponse(await createDbLink(_0x3ec8f6));if(!_0x54494b)return{'ok':![],'message':_0x31fbac(0x1cc),'data':sanitizeDbLinkForOutput(_0x314530)};let _0x1e6eba,_0x58334c;if(_0x2e6414[_0x31fbac(0x1dc)](_0x31fbac(0x1eb)))try{_0x1e6eba=await startDbAnalysis(_0x54494b);}catch(_0x3b1c8e){_0x58334c=_0x3b1c8e instanceof Error?_0x3b1c8e[_0x31fbac(0x1da)]:String(_0x3b1c8e);}const _0x1db2e3=buildDbPageLinks(_0x2e6414[_0x31fbac(0x1e6)],_0x54494b),_0x11f383={'connection':sanitizeDbLinkForOutput(_0x314530),..._0x1db2e3?{'links':{'databasePage':_0x1db2e3['databasePage']}}:{},..._0x1e6eba?{'analysisPlanId':_0x1e6eba}:{},..._0x58334c?{'analysisStartWarning':_0x58334c}:{}};let _0x591dc1;return _0x2e6414['bool'](_0x31fbac(0x1eb))?_0x58334c?_0x591dc1=_0x31fbac(0x1d3)+_0x54494b+';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning':_0x591dc1=_0x31fbac(0x1d3)+_0x54494b+_0x31fbac(0x1d2):_0x591dc1=_0x31fbac(0x1d3)+_0x54494b,{'ok':!![],'data':_0x11f383,'message':_0x591dc1};}};
1
+ const a65_0x5c2b69=a65_0x3672;(function(_0x281a74,_0x1356de){const _0x4153c6=a65_0x3672,_0x4966c4=_0x281a74();while(!![]){try{const _0x37a9e3=-parseInt(_0x4153c6(0x20e))/0x1+parseInt(_0x4153c6(0x1fd))/0x2+parseInt(_0x4153c6(0x1f7))/0x3*(-parseInt(_0x4153c6(0x218))/0x4)+-parseInt(_0x4153c6(0x202))/0x5*(parseInt(_0x4153c6(0x21e))/0x6)+-parseInt(_0x4153c6(0x208))/0x7*(parseInt(_0x4153c6(0x1f4))/0x8)+-parseInt(_0x4153c6(0x1fa))/0x9*(-parseInt(_0x4153c6(0x213))/0xa)+parseInt(_0x4153c6(0x1f1))/0xb;if(_0x37a9e3===_0x1356de)break;else _0x4966c4['push'](_0x4966c4['shift']());}catch(_0x28323e){_0x4966c4['push'](_0x4966c4['shift']());}}}(a65_0x1150,0x9c6d9));function a65_0x3672(_0x535980,_0x2a73aa){_0x535980=_0x535980-0x1f0;const _0x11500e=a65_0x1150();let _0x3672aa=_0x11500e[_0x535980];return _0x3672aa;}import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a65_0x1150(){const _0x2e86ed=['create','Create\x20dblink','databasePage','864508mxnark','dbparam','Human-readable\x20description','POST','bool','2260060Xnihdt','str','autostart','appCode','8.0','2929544NoQkIe','\x20and\x20started\x20analysis','Created\x20db\x20link\x20','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','dbname','dbtype','5913576OOknWv','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','join','11740168efnmiF','dburl','password','1822880XIKeYd','dbversion','Database\x20username','3OfOwlJ','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','write','45LtjKlV','boolean','/smartapi/dblink/create','2507522nboAqs','trim','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','Database\x20password','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','5rFJtdm','validation','dbdesc','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','username','7UylnCH','Host\x20and\x20port:\x20host:port','string'];a65_0x1150=function(){return _0x2e86ed;};return a65_0x1150();}export const dbCreate={'service':'db','command':a65_0x5c2b69(0x20b),'description':a65_0x5c2b69(0x201),'risk':a65_0x5c2b69(0x1f9),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a65_0x5c2b69(0x20a),'required':!![],'description':a65_0x5c2b69(0x1ff)},DB_TYPE_FLAG,{'name':'dbversion','type':a65_0x5c2b69(0x20a),'description':'Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','default':'8.0'},{'name':'dburl','type':a65_0x5c2b69(0x20a),'required':!![],'description':a65_0x5c2b69(0x209)},{'name':'username','type':a65_0x5c2b69(0x20a),'required':!![],'description':a65_0x5c2b69(0x1f6)},{'name':a65_0x5c2b69(0x1f3),'type':a65_0x5c2b69(0x20a),'required':!![],'description':a65_0x5c2b69(0x200)},{'name':a65_0x5c2b69(0x20f),'type':a65_0x5c2b69(0x20a),'description':'Extra\x20JDBC-style\x20connection\x20parameters\x20string'},{'name':a65_0x5c2b69(0x204),'type':a65_0x5c2b69(0x20a),'description':a65_0x5c2b69(0x210)},{'name':a65_0x5c2b69(0x215),'type':a65_0x5c2b69(0x1fb),'description':'After\x20create,\x20start\x20schema\x20analysis','default':![]}],async 'validate'(_0x21aa1a){const _0x9eca27=a65_0x5c2b69,_0x324016=_0x21aa1a[_0x9eca27(0x214)](_0x9eca27(0x1f2))['trim']();if(!validateDbUrl(_0x324016))throw CliErrors[_0x9eca27(0x203)](_0x9eca27(0x205)+_0x324016+'\x22',_0x9eca27(0x21f));},async 'dryRun'(_0x29da8b){const _0x5f18c3=a65_0x5c2b69,_0x5bb942={'appCode':_0x29da8b[_0x5f18c3(0x216)],'dbName':_0x29da8b['str'](_0x5f18c3(0x21c)),'dbType':_0x29da8b[_0x5f18c3(0x214)]('dbtype'),'dbVersion':_0x29da8b['str'](_0x5f18c3(0x1f5))||_0x5f18c3(0x217),'dbUrl':_0x29da8b[_0x5f18c3(0x214)](_0x5f18c3(0x1f2))[_0x5f18c3(0x1fe)](),'username':_0x29da8b[_0x5f18c3(0x214)](_0x5f18c3(0x207)),'password':'[redacted]',..._0x29da8b['str'](_0x5f18c3(0x20f))?{'dbParam':_0x29da8b[_0x5f18c3(0x214)](_0x5f18c3(0x20f))}:{},..._0x29da8b['str'](_0x5f18c3(0x204))?{'dbDesc':_0x29da8b['str'](_0x5f18c3(0x204))}:{}};return{'method':_0x5f18c3(0x211),'url':_0x5f18c3(0x1fc),'body':_0x5bb942,'description':[_0x5f18c3(0x20c),_0x29da8b[_0x5f18c3(0x212)]('autostart')?_0x5f18c3(0x21b):'No\x20follow-up\x20analysis'][_0x5f18c3(0x1f0)]('\x0a')};},async 'execute'(_0x5be7ad){const _0x299c67=a65_0x5c2b69,_0x55074c={'appCode':_0x5be7ad[_0x299c67(0x216)],'dbName':_0x5be7ad['str'](_0x299c67(0x21c)),'dbType':_0x5be7ad['str'](_0x299c67(0x21d)),'dbVersion':_0x5be7ad[_0x299c67(0x214)](_0x299c67(0x1f5))||_0x299c67(0x217),'dbUrl':_0x5be7ad[_0x299c67(0x214)](_0x299c67(0x1f2))[_0x299c67(0x1fe)](),'username':_0x5be7ad['str'](_0x299c67(0x207)),'password':_0x5be7ad[_0x299c67(0x214)]('password'),..._0x5be7ad['str']('dbparam')?{'dbParam':_0x5be7ad[_0x299c67(0x214)](_0x299c67(0x20f))}:{},..._0x5be7ad['str'](_0x299c67(0x204))?{'dbDesc':_0x5be7ad['str'](_0x299c67(0x204))}:{}},{id:_0x3723ff,entity:_0x3d1f7d}=normalizeEntityWithIdResponse(await createDbLink(_0x55074c));if(!_0x3723ff)return{'ok':![],'message':_0x299c67(0x1f8),'data':sanitizeDbLinkForOutput(_0x3d1f7d)};let _0x4c1e3f,_0x5ac3ba;if(_0x5be7ad['bool'](_0x299c67(0x215)))try{_0x4c1e3f=await startDbAnalysis(_0x3723ff);}catch(_0x431dbe){_0x5ac3ba=_0x431dbe instanceof Error?_0x431dbe['message']:String(_0x431dbe);}const _0x5d8a88=buildDbPageLinks(_0x5be7ad[_0x299c67(0x216)],_0x3723ff),_0x288b7f={'connection':sanitizeDbLinkForOutput(_0x3d1f7d),..._0x5d8a88?{'links':{'databasePage':_0x5d8a88[_0x299c67(0x20d)]}}:{},..._0x4c1e3f?{'analysisPlanId':_0x4c1e3f}:{},..._0x5ac3ba?{'analysisStartWarning':_0x5ac3ba}:{}};let _0x330c2b;return _0x5be7ad[_0x299c67(0x212)](_0x299c67(0x215))?_0x5ac3ba?_0x330c2b=_0x299c67(0x21a)+_0x3723ff+_0x299c67(0x206):_0x330c2b=_0x299c67(0x21a)+_0x3723ff+_0x299c67(0x219):_0x330c2b='Created\x20db\x20link\x20'+_0x3723ff,{'ok':!![],'data':_0x288b7f,'message':_0x330c2b};}};
@@ -1 +1 @@
1
- const a66_0x43af41=a66_0x2606;(function(_0x46cc7f,_0x18bee8){const _0x2d16ff=a66_0x2606,_0xe928f3=_0x46cc7f();while(!![]){try{const _0x263134=-parseInt(_0x2d16ff(0x65))/0x1*(parseInt(_0x2d16ff(0x66))/0x2)+-parseInt(_0x2d16ff(0x64))/0x3+-parseInt(_0x2d16ff(0x6b))/0x4+-parseInt(_0x2d16ff(0x6e))/0x5*(-parseInt(_0x2d16ff(0x69))/0x6)+parseInt(_0x2d16ff(0x67))/0x7+-parseInt(_0x2d16ff(0x6a))/0x8+parseInt(_0x2d16ff(0x6f))/0x9;if(_0x263134===_0x18bee8)break;else _0xe928f3['push'](_0xe928f3['shift']());}catch(_0x151053){_0xe928f3['push'](_0xe928f3['shift']());}}}(a66_0x1843,0x332f3));import{deleteDbLink}from'../../core/api-client.js';function a66_0x1843(){const _0xda975e=['2fAulOA','618786tyzqoC','Deleted\x20db\x20link\x20','6FzmZoQ','1922840qEFZHC','1180360WJlJMJ','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','high-risk-write','944805JCOFMP','8184222WzIgwM','348252swcJLm','325537iWLmCy'];a66_0x1843=function(){return _0xda975e;};return a66_0x1843();}function a66_0x2606(_0x16e191,_0x2c1163){_0x16e191=_0x16e191-0x64;const _0x184387=a66_0x1843();let _0x260635=_0x184387[_0x16e191];return _0x260635;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDelete={'service':'db','command':'delete','description':a66_0x43af41(0x6c),'risk':a66_0x43af41(0x6d),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5ed031){const _0x40f103=a66_0x43af41,_0x4c85ac=_0x5ed031['num']('id');return await deleteDbLink(_0x4c85ac),{'ok':!![],'data':{'id':_0x4c85ac,'deleted':!![]},'message':_0x40f103(0x68)+_0x4c85ac};}};
1
+ function a66_0x4264(){const _0x47d08f=['7oZfDik','120lgOwxL','4379122jpCUcg','3594852WQebJa','9730576kousBv','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','5GdzAgB','61192qROhGK','36zOVLCF','2285318KpyANA','422298FZtePL','delete','Deleted\x20db\x20link\x20','17656509LnTCYB','170TJUhku','1QVoQgg'];a66_0x4264=function(){return _0x47d08f;};return a66_0x4264();}const a66_0x1038ba=a66_0x538a;(function(_0x385880,_0x2d02a6){const _0x1e2eef=a66_0x538a,_0x3adaf8=_0x385880();while(!![]){try{const _0x5b83ff=-parseInt(_0x1e2eef(0x82))/0x1*(-parseInt(_0x1e2eef(0x8c))/0x2)+parseInt(_0x1e2eef(0x84))/0x3*(parseInt(_0x1e2eef(0x8a))/0x4)+-parseInt(_0x1e2eef(0x89))/0x5*(parseInt(_0x1e2eef(0x86))/0x6)+-parseInt(_0x1e2eef(0x83))/0x7*(-parseInt(_0x1e2eef(0x87))/0x8)+parseInt(_0x1e2eef(0x8d))/0x9*(parseInt(_0x1e2eef(0x91))/0xa)+parseInt(_0x1e2eef(0x85))/0xb*(-parseInt(_0x1e2eef(0x8b))/0xc)+-parseInt(_0x1e2eef(0x90))/0xd;if(_0x5b83ff===_0x2d02a6)break;else _0x3adaf8['push'](_0x3adaf8['shift']());}catch(_0x36f52e){_0x3adaf8['push'](_0x3adaf8['shift']());}}}(a66_0x4264,0x969e6));import{deleteDbLink}from'../../core/api-client.js';function a66_0x538a(_0xf2b942,_0x5e791f){_0xf2b942=_0xf2b942-0x82;const _0x4264ce=a66_0x4264();let _0x538a91=_0x4264ce[_0xf2b942];return _0x538a91;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDelete={'service':'db','command':a66_0x1038ba(0x8e),'description':a66_0x1038ba(0x88),'risk':'high-risk-write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x323f15){const _0x582202=a66_0x1038ba,_0x2d7673=_0x323f15['num']('id');return await deleteDbLink(_0x2d7673),{'ok':!![],'data':{'id':_0x2d7673,'deleted':!![]},'message':_0x582202(0x8f)+_0x2d7673};}};
@@ -1 +1 @@
1
- function a67_0x43f7(_0x292fb7,_0x14a090){_0x292fb7=_0x292fb7-0x131;const _0x3e3e2d=a67_0x3e3e();let _0x43f7ba=_0x3e3e2d[_0x292fb7];return _0x43f7ba;}const a67_0x36a828=a67_0x43f7;(function(_0x1eebb1,_0x416f20){const _0x3ddf6e=a67_0x43f7,_0x412ecb=_0x1eebb1();while(!![]){try{const _0x5a2995=-parseInt(_0x3ddf6e(0x13a))/0x1*(parseInt(_0x3ddf6e(0x13c))/0x2)+-parseInt(_0x3ddf6e(0x13d))/0x3*(-parseInt(_0x3ddf6e(0x138))/0x4)+parseInt(_0x3ddf6e(0x133))/0x5+parseInt(_0x3ddf6e(0x139))/0x6*(-parseInt(_0x3ddf6e(0x131))/0x7)+-parseInt(_0x3ddf6e(0x137))/0x8*(parseInt(_0x3ddf6e(0x13b))/0x9)+-parseInt(_0x3ddf6e(0x134))/0xa*(parseInt(_0x3ddf6e(0x132))/0xb)+parseInt(_0x3ddf6e(0x136))/0xc;if(_0x5a2995===_0x416f20)break;else _0x412ecb['push'](_0x412ecb['shift']());}catch(_0x5e5b23){_0x412ecb['push'](_0x412ecb['shift']());}}}(a67_0x3e3e,0xc3c70));function a67_0x3e3e(){const _0x289956=['24rTMLJl','54696IIycSU','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','dbName','3473785NZTlIs','110BTqQcv','166000omMrFp','1301350XmWQKn','detail','39887676tvnTEP','8czOxhQ','124LQfyqf','12zWiWGo','24867mGxQoH','4753773EEYxMl'];a67_0x3e3e=function(){return _0x289956;};return a67_0x3e3e();}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':a67_0x36a828(0x135),'description':a67_0x36a828(0x13e),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2bb5c0){const _0x36ac74=a67_0x36a828,_0x35e0ec=_0x2bb5c0['num']('id'),_0xfe6451=await getDbLinkInfo(_0x35e0ec);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0xfe6451),'message':'db\x20link\x20'+_0x35e0ec+':\x20'+_0xfe6451[_0x36ac74(0x13f)]};}};
1
+ function a67_0x11fa(_0xf6376b,_0x597845){_0xf6376b=_0xf6376b-0x71;const _0x2e54a5=a67_0x2e54();let _0x11fa9f=_0x2e54a5[_0xf6376b];return _0x11fa9f;}const a67_0x46cb1f=a67_0x11fa;(function(_0x61f643,_0x3c613b){const _0x22c19a=a67_0x11fa,_0x52925c=_0x61f643();while(!![]){try{const _0x305dd2=-parseInt(_0x22c19a(0x7a))/0x1*(-parseInt(_0x22c19a(0x78))/0x2)+-parseInt(_0x22c19a(0x71))/0x3+-parseInt(_0x22c19a(0x79))/0x4+-parseInt(_0x22c19a(0x72))/0x5+-parseInt(_0x22c19a(0x77))/0x6+-parseInt(_0x22c19a(0x7b))/0x7*(-parseInt(_0x22c19a(0x76))/0x8)+-parseInt(_0x22c19a(0x7c))/0x9*(-parseInt(_0x22c19a(0x74))/0xa);if(_0x305dd2===_0x3c613b)break;else _0x52925c['push'](_0x52925c['shift']());}catch(_0x13f1fe){_0x52925c['push'](_0x52925c['shift']());}}}(a67_0x2e54,0x752de));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':a67_0x46cb1f(0x75),'description':a67_0x46cb1f(0x73),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x912310){const _0x568bc3=a67_0x46cb1f,_0x4cf50b=_0x912310['num']('id'),_0x2af652=await getDbLinkInfo(_0x4cf50b);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x2af652),'message':'db\x20link\x20'+_0x4cf50b+':\x20'+_0x2af652[_0x568bc3(0x7d)]};}};function a67_0x2e54(){const _0x4c3b20=['4116066stCYAd','57118gLLbPj','3535500xshEvx','33rvZgmG','154NaGsMf','1089QyIjtV','dbName','2839989oXgoHl','4708195JvzrzY','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','198010NjpEsJ','detail','218104HDQXCg'];a67_0x2e54=function(){return _0x4c3b20;};return a67_0x2e54();}
@@ -1 +1 @@
1
- const a68_0x48ea84=a68_0x1204;function a68_0x1204(_0x2688fa,_0x5e80d9){_0x2688fa=_0x2688fa-0xd5;const _0x34359c=a68_0x3435();let _0x120403=_0x34359c[_0x2688fa];return _0x120403;}function a68_0x3435(){const _0x35e245=['21ddTtbw','\x20row(s),\x20total\x20','length','1181976nqhPrS','Page\x20index\x20(1-based)','Page\x20size','312dwjHpf','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','1332ZMiksv','24364lzpgFz','30583Labhpk','52625wVHxgP','diff','222222TQOUwV','appCode','read','number','table','num','8570lOxKRQ','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','552PyTxgW','page','160934sDuhXK','\x20(db\x20link\x20','str','108hCqfCQ'];a68_0x3435=function(){return _0x35e245;};return a68_0x3435();}(function(_0x5bd59b,_0x489d1b){const _0x2123ac=a68_0x1204,_0x47007d=_0x5bd59b();while(!![]){try{const _0xaf84ee=-parseInt(_0x2123ac(0xe6))/0x1+-parseInt(_0x2123ac(0xd8))/0x2*(parseInt(_0x2123ac(0xea))/0x3)+-parseInt(_0x2123ac(0xed))/0x4+parseInt(_0x2123ac(0xda))/0x5*(-parseInt(_0x2123ac(0xe9))/0x6)+-parseInt(_0x2123ac(0xd9))/0x7*(-parseInt(_0x2123ac(0xe4))/0x8)+-parseInt(_0x2123ac(0xd7))/0x9*(-parseInt(_0x2123ac(0xe2))/0xa)+parseInt(_0x2123ac(0xdc))/0xb*(parseInt(_0x2123ac(0xd5))/0xc);if(_0xaf84ee===_0x489d1b)break;else _0x47007d['push'](_0x47007d['shift']());}catch(_0x453f71){_0x47007d['push'](_0x47007d['shift']());}}}(a68_0x3435,0x364bd));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':a68_0x48ea84(0xdb),'description':a68_0x48ea84(0xd6),'risk':a68_0x48ea84(0xde),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a68_0x48ea84(0xe0),'type':'string','description':a68_0x48ea84(0xe3)},{'name':'page','type':a68_0x48ea84(0xdf),'description':a68_0x48ea84(0xee),'default':0x1},{'name':'pagesize','type':a68_0x48ea84(0xdf),'description':a68_0x48ea84(0xef),'default':0x14}],async 'execute'(_0x11d581){const _0x5aa44f=a68_0x48ea84,_0x57dd46=_0x11d581['num']('id'),_0x591e32=_0x11d581[_0x5aa44f(0xe1)](_0x5aa44f(0xe5),0x1)||0x1,_0x54b285=_0x11d581[_0x5aa44f(0xe1)]('pagesize',0x14)||0x14,_0x39fd96=_0x11d581[_0x5aa44f(0xe8)]('table')||undefined,{totalCount:_0x26f3a9,tableList:_0x48f20c}=await getDbTableDiff(_0x11d581[_0x5aa44f(0xdd)],_0x57dd46,{'pageIndex':_0x591e32,'pageSize':_0x54b285,'tableName':_0x39fd96});return{'ok':!![],'data':{'dbLinkId':_0x57dd46,'page':_0x591e32,'pageSize':_0x54b285,'totalCount':_0x26f3a9,'tableList':_0x48f20c},'message':_0x48f20c[_0x5aa44f(0xec)]+_0x5aa44f(0xeb)+_0x26f3a9+_0x5aa44f(0xe7)+_0x57dd46+')'};}};
1
+ function a68_0x52e7(_0x57cbd5,_0x42d4e8){_0x57cbd5=_0x57cbd5-0x1ab;const _0x33a3a9=a68_0x33a3();let _0x52e764=_0x33a3a9[_0x57cbd5];return _0x52e764;}const a68_0x39e8c0=a68_0x52e7;(function(_0x4632d0,_0x5df57e){const _0x58330d=a68_0x52e7,_0x26403b=_0x4632d0();while(!![]){try{const _0x21b5ce=-parseInt(_0x58330d(0x1be))/0x1*(parseInt(_0x58330d(0x1bf))/0x2)+parseInt(_0x58330d(0x1b6))/0x3*(parseInt(_0x58330d(0x1bd))/0x4)+-parseInt(_0x58330d(0x1ba))/0x5*(parseInt(_0x58330d(0x1b3))/0x6)+parseInt(_0x58330d(0x1b4))/0x7+parseInt(_0x58330d(0x1bb))/0x8+-parseInt(_0x58330d(0x1af))/0x9*(-parseInt(_0x58330d(0x1ae))/0xa)+-parseInt(_0x58330d(0x1ab))/0xb;if(_0x21b5ce===_0x5df57e)break;else _0x26403b['push'](_0x26403b['shift']());}catch(_0x2a99f2){_0x26403b['push'](_0x26403b['shift']());}}}(a68_0x33a3,0x910a4));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a68_0x33a3(){const _0x5a05e6=['str','3GstemI','Page\x20index\x20(1-based)','appCode','\x20(db\x20link\x20','24440QuPhAf','4816832TkUChA','table','3379828YDDJDe','54098yMUbot','2xCvOVv','num','16652416MqkZBh','Page\x20size','string','117340BrERsV','207iCQcYd','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','page','636QjDkfS','6742561IyFfcB'];a68_0x33a3=function(){return _0x5a05e6;};return a68_0x33a3();}export const dbDiff={'service':'db','command':'diff','description':a68_0x39e8c0(0x1b0),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':a68_0x39e8c0(0x1ad),'description':a68_0x39e8c0(0x1b1)},{'name':a68_0x39e8c0(0x1b2),'type':'number','description':a68_0x39e8c0(0x1b7),'default':0x1},{'name':'pagesize','type':'number','description':a68_0x39e8c0(0x1ac),'default':0x14}],async 'execute'(_0x5df1d7){const _0x23880a=a68_0x39e8c0,_0x7cf44c=_0x5df1d7[_0x23880a(0x1c0)]('id'),_0x4959a1=_0x5df1d7[_0x23880a(0x1c0)](_0x23880a(0x1b2),0x1)||0x1,_0xd5e48d=_0x5df1d7[_0x23880a(0x1c0)]('pagesize',0x14)||0x14,_0x160cdf=_0x5df1d7[_0x23880a(0x1b5)](_0x23880a(0x1bc))||undefined,{totalCount:_0x2c3c31,tableList:_0x2861c4}=await getDbTableDiff(_0x5df1d7[_0x23880a(0x1b8)],_0x7cf44c,{'pageIndex':_0x4959a1,'pageSize':_0xd5e48d,'tableName':_0x160cdf});return{'ok':!![],'data':{'dbLinkId':_0x7cf44c,'page':_0x4959a1,'pageSize':_0xd5e48d,'totalCount':_0x2c3c31,'tableList':_0x2861c4},'message':_0x2861c4['length']+'\x20row(s),\x20total\x20'+_0x2c3c31+_0x23880a(0x1b9)+_0x7cf44c+')'};}};
@@ -1 +1 @@
1
- (function(_0x52713a,_0xf61d73){const _0x1fe28f=a69_0x1086,_0x4374ce=_0x52713a();while(!![]){try{const _0x420fee=parseInt(_0x1fe28f(0x104))/0x1*(parseInt(_0x1fe28f(0x103))/0x2)+parseInt(_0x1fe28f(0x102))/0x3+-parseInt(_0x1fe28f(0x100))/0x4+parseInt(_0x1fe28f(0x101))/0x5*(-parseInt(_0x1fe28f(0x108))/0x6)+-parseInt(_0x1fe28f(0x106))/0x7+parseInt(_0x1fe28f(0x109))/0x8+parseInt(_0x1fe28f(0x105))/0x9*(parseInt(_0x1fe28f(0x107))/0xa);if(_0x420fee===_0xf61d73)break;else _0x4374ce['push'](_0x4374ce['shift']());}catch(_0x391ace){_0x4374ce['push'](_0x4374ce['shift']());}}}(a69_0x599c,0x68f8c));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';function a69_0x1086(_0x3d1c13,_0x5a3891){_0x3d1c13=_0x3d1c13-0x100;const _0x599c5d=a69_0x599c();let _0x10868d=_0x599c5d[_0x3d1c13];return _0x10868d;}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';import{dbDiff}from'../../commands/db/diff.js';function a69_0x599c(){const _0xa676d8=['6348QwOxkg','36qnSNjJ','519526BeWToO','232970iyJYtU','1374918ewpBFe','916088AzVrLB','1069452BZEQej','5jXErTz','626949QFjfRD','184TRfodV'];a69_0x599c=function(){return _0xa676d8;};return a69_0x599c();}export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
1
+ (function(_0x2a384a,_0x2e509e){const _0x41916a=a69_0x1135,_0x2c0d43=_0x2a384a();while(!![]){try{const _0x184dd1=-parseInt(_0x41916a(0xc0))/0x1*(-parseInt(_0x41916a(0xc9))/0x2)+parseInt(_0x41916a(0xc1))/0x3*(parseInt(_0x41916a(0xca))/0x4)+-parseInt(_0x41916a(0xc6))/0x5*(-parseInt(_0x41916a(0xc3))/0x6)+-parseInt(_0x41916a(0xc7))/0x7*(-parseInt(_0x41916a(0xc4))/0x8)+-parseInt(_0x41916a(0xbf))/0x9+parseInt(_0x41916a(0xc8))/0xa*(-parseInt(_0x41916a(0xc5))/0xb)+-parseInt(_0x41916a(0xc2))/0xc;if(_0x184dd1===_0x2e509e)break;else _0x2c0d43['push'](_0x2c0d43['shift']());}catch(_0x1937a9){_0x2c0d43['push'](_0x2c0d43['shift']());}}}(a69_0x59a9,0x9be9c));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 a69_0x59a9(){const _0x1a9af9=['4310874utfqAp','8qCMhdG','3ilgDqX','8808012qNYECb','1074uqvnhj','659528VmXnjD','10420685RCurZj','32675FwSnNO','77uLFmkS','10igxWwi','47156pACCoJ','2134808duOxIk'];a69_0x59a9=function(){return _0x1a9af9;};return a69_0x59a9();}function a69_0x1135(_0x234ec1,_0x4d40c8){_0x234ec1=_0x234ec1-0xbf;const _0x59a9dd=a69_0x59a9();let _0x113506=_0x59a9dd[_0x234ec1];return _0x113506;}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 a70_0x5b6658=a70_0xc0d6;(function(_0x4fa27c,_0x4e2c0d){const _0x44f62d=a70_0xc0d6,_0x55ed08=_0x4fa27c();while(!![]){try{const _0x5adfc1=-parseInt(_0x44f62d(0x1f9))/0x1*(-parseInt(_0x44f62d(0x1fa))/0x2)+parseInt(_0x44f62d(0x1f3))/0x3+parseInt(_0x44f62d(0x1f2))/0x4+-parseInt(_0x44f62d(0x1f4))/0x5+parseInt(_0x44f62d(0x1fc))/0x6+parseInt(_0x44f62d(0x1f5))/0x7*(parseInt(_0x44f62d(0x1f0))/0x8)+-parseInt(_0x44f62d(0x1ed))/0x9*(parseInt(_0x44f62d(0x1ec))/0xa);if(_0x5adfc1===_0x4e2c0d)break;else _0x55ed08['push'](_0x55ed08['shift']());}catch(_0x1fcb2f){_0x55ed08['push'](_0x55ed08['shift']());}}}(a70_0x2b16,0x23c37));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a70_0x2b16(){const _0xad96df=['length','8UqAmEh','pagesize','993328ffHseF','453528wsziRn','557740UuRxdI','408548BIFqKv','Found\x20','Page\x20index\x20(1-based)','number','79YjRmKY','5366CfqWYy','\x20database\x20connection(s)','1200474HjLyOv','List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','page','6118730afIzkn','9QeyWsi','num'];a70_0x2b16=function(){return _0xad96df;};return a70_0x2b16();}function a70_0xc0d6(_0x2661ce,_0x4ec3bf){_0x2661ce=_0x2661ce-0x1ec;const _0x2b16d9=a70_0x2b16();let _0xc0d66d=_0x2b16d9[_0x2661ce];return _0xc0d66d;}import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':'list','description':a70_0x5b6658(0x1fd),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a70_0x5b6658(0x1fe),'type':a70_0x5b6658(0x1f8),'description':a70_0x5b6658(0x1f7),'default':0x1},{'name':'pagesize','type':a70_0x5b6658(0x1f8),'description':'Page\x20size','default':0x64}],async 'execute'(_0x168041){const _0x438b35=a70_0x5b6658,_0x211520=_0x168041[_0x438b35(0x1ee)](_0x438b35(0x1fe),0x1)||0x1,_0x391d1b=_0x168041[_0x438b35(0x1ee)](_0x438b35(0x1f1),0x64)||0x64,{items:_0xbf60e7,paging:_0x374c58}=await listDbLinks(_0x168041['appCode'],{'currentPage':_0x211520,'pageSize':_0x391d1b}),_0x5b267f=sanitizeDbLinkList(_0xbf60e7),_0x3b239c=_0x374c58?_0x374c58:{'currentPage':_0x211520,'pageSize':_0x391d1b,'rowsOnPage':_0x5b267f[_0x438b35(0x1ef)],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x5b267f,'paging':_0x3b239c},'message':_0x438b35(0x1f6)+_0x5b267f[_0x438b35(0x1ef)]+_0x438b35(0x1fb)};}};
1
+ const a70_0x2a9929=a70_0x1756;(function(_0x57bdfd,_0x165339){const _0x4e58aa=a70_0x1756,_0x4c5f02=_0x57bdfd();while(!![]){try{const _0x371b0b=-parseInt(_0x4e58aa(0xfc))/0x1*(parseInt(_0x4e58aa(0xfa))/0x2)+parseInt(_0x4e58aa(0xf2))/0x3*(parseInt(_0x4e58aa(0xf1))/0x4)+-parseInt(_0x4e58aa(0xfb))/0x5*(parseInt(_0x4e58aa(0xeb))/0x6)+-parseInt(_0x4e58aa(0xfe))/0x7*(parseInt(_0x4e58aa(0xf9))/0x8)+-parseInt(_0x4e58aa(0xf8))/0x9+parseInt(_0x4e58aa(0xfd))/0xa+parseInt(_0x4e58aa(0xf4))/0xb*(parseInt(_0x4e58aa(0xee))/0xc);if(_0x371b0b===_0x165339)break;else _0x4c5f02['push'](_0x4c5f02['shift']());}catch(_0x3db977){_0x4c5f02['push'](_0x4c5f02['shift']());}}}(a70_0x44e5,0x22232));import{listDbLinks}from'../../core/api-client.js';function a70_0x44e5(){const _0xb2463=['646405tQpsAs','7427jfPETl','1498240OTPKRx','128940JRUBds','length','12fREpPM','num','appCode','696ROUFJD','Found\x20','\x20database\x20connection(s)','4qxLHon','374676erDbec','read','131835rLbaSZ','page','number','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','1918494cWHPvb','104sEUnEx','32liWqmW'];a70_0x44e5=function(){return _0xb2463;};return a70_0x44e5();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';function a70_0x1756(_0x5253cc,_0x36db3c){_0x5253cc=_0x5253cc-0xeb;const _0x44e5e4=a70_0x44e5();let _0x17562c=_0x44e5e4[_0x5253cc];return _0x17562c;}export const dbList={'service':'db','command':'list','description':'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','risk':a70_0x2a9929(0xf3),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a70_0x2a9929(0xf5),'type':a70_0x2a9929(0xf6),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':'pagesize','type':a70_0x2a9929(0xf6),'description':'Page\x20size','default':0x64}],async 'execute'(_0x6d7d13){const _0x4ab437=a70_0x2a9929,_0x114939=_0x6d7d13[_0x4ab437(0xec)](_0x4ab437(0xf5),0x1)||0x1,_0x53a52f=_0x6d7d13[_0x4ab437(0xec)]('pagesize',0x64)||0x64,{items:_0x1da041,paging:_0x55e566}=await listDbLinks(_0x6d7d13[_0x4ab437(0xed)],{'currentPage':_0x114939,'pageSize':_0x53a52f}),_0x10bb38=sanitizeDbLinkList(_0x1da041),_0x410801=_0x55e566?_0x55e566:{'currentPage':_0x114939,'pageSize':_0x53a52f,'rowsOnPage':_0x10bb38[_0x4ab437(0xff)],'totalCount':null,'note':_0x4ab437(0xf7)};return{'ok':!![],'data':{'connections':_0x10bb38,'paging':_0x410801},'message':_0x4ab437(0xef)+_0x10bb38[_0x4ab437(0xff)]+_0x4ab437(0xf0)};}};
@@ -1 +1 @@
1
- (function(_0x57c06f,_0x5145c3){const _0x35d0eb=a71_0x46c3,_0x129e32=_0x57c06f();while(!![]){try{const _0x42afca=parseInt(_0x35d0eb(0x109))/0x1+-parseInt(_0x35d0eb(0x118))/0x2+parseInt(_0x35d0eb(0x10e))/0x3*(-parseInt(_0x35d0eb(0x116))/0x4)+-parseInt(_0x35d0eb(0x108))/0x5+-parseInt(_0x35d0eb(0x101))/0x6+parseInt(_0x35d0eb(0x111))/0x7*(-parseInt(_0x35d0eb(0x107))/0x8)+parseInt(_0x35d0eb(0x10a))/0x9*(parseInt(_0x35d0eb(0x110))/0xa);if(_0x42afca===_0x5145c3)break;else _0x129e32['push'](_0x129e32['shift']());}catch(_0xd7d17f){_0x129e32['push'](_0x129e32['shift']());}}}(a71_0x16c3,0x619c2));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0x43a095){const _0x3a0059=a71_0x46c3,_0x4644ec=_0x43a095[_0x3a0059(0x115)]();if(_0x4644ec===_0x3a0059(0x119)||_0x4644ec==='passwd'||_0x4644ec===_0x3a0059(0x10b))return!![];if(_0x4644ec[_0x3a0059(0x105)](_0x3a0059(0x11a))||_0x4644ec[_0x3a0059(0x105)]('token')||_0x4644ec[_0x3a0059(0x105)]('credential'))return!![];if(_0x4644ec[_0x3a0059(0x105)](_0x3a0059(0x103))||_0x4644ec[_0x3a0059(0x105)](_0x3a0059(0x113)))return!![];if(_0x4644ec===_0x3a0059(0x10c)||_0x4644ec==='connectionstring'||_0x4644ec===_0x3a0059(0x117))return!![];return![];}export function sanitizeDbLinkForOutput(_0x5db8db){const _0x176678=a71_0x46c3,_0x46f5bc={..._0x5db8db};for(const _0x39affa of Object[_0x176678(0x112)](_0x46f5bc)){if(!shouldRedactKey(_0x39affa))continue;const _0x2e685e=_0x46f5bc[_0x39affa];_0x2e685e!=null&&String(_0x2e685e)[_0x176678(0x102)]>0x0&&(_0x46f5bc[_0x39affa]='[redacted]');}return _0x46f5bc;}function a71_0x16c3(){const _0x3969e9=['4GsbxZb','jdbcurl','1282284tPmdED','password','secret','951552EyuHhI','length','privatekey','test','includes','number','304IuVbzI','610280AYkgsV','523796PaGsrj','67995iWKNlz','dbpassword','authorization','trim','114489DEKujF','https://app.lovrabet.com/app/','2110snSFmO','139657ZfcqUQ','keys','accesskey','isFinite','toLowerCase'];a71_0x16c3=function(){return _0x3969e9;};return a71_0x16c3();}export function sanitizeDbLinkList(_0xade38){return _0xade38['map'](_0x212586=>sanitizeDbLinkForOutput(_0x212586));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;function a71_0x46c3(_0x3106b3,_0x15ac7b){_0x3106b3=_0x3106b3-0x101;const _0x16c336=a71_0x16c3();let _0x46c3af=_0x16c336[_0x3106b3];return _0x46c3af;}export function validateDbUrl(_0x4f0cf2){const _0x194225=a71_0x46c3,_0x44b2f9=_0x4f0cf2['trim']();if(!_0x44b2f9)return![];return DB_URL_PATTERN[_0x194225(0x104)](_0x44b2f9);}export function buildDbPageLinks(_0x5559d1,_0x31ad47){const _0x2c9691=a71_0x46c3,_0x1b09d7=_0x5559d1?.[_0x2c9691(0x10d)]();if(!_0x1b09d7)return undefined;const _0x57def6=typeof _0x31ad47===_0x2c9691(0x106)?String(_0x31ad47):String(_0x31ad47??'')[_0x2c9691(0x10d)]();if(!_0x57def6)return undefined;const _0x15c432=Number(_0x57def6);if(!Number[_0x2c9691(0x114)](_0x15c432)||_0x15c432<=0x0)return undefined;const _0x243a37=isDaily(normalizeEnv(getEnv()))?'https://daily.lovrabet.com/web-app/app/'+encodeURIComponent(_0x1b09d7):_0x2c9691(0x10f)+encodeURIComponent(_0x1b09d7),_0x48e38b=encodeURIComponent(String(_0x15c432));return{'databasePage':_0x243a37+'/data/database','erPage':_0x243a37+'/data/er?dbId='+_0x48e38b};}
1
+ (function(_0x134850,_0x3adfce){const _0x7aacb3=a71_0x3244,_0x4fb361=_0x134850();while(!![]){try{const _0x11e289=-parseInt(_0x7aacb3(0x83))/0x1+-parseInt(_0x7aacb3(0x71))/0x2*(-parseInt(_0x7aacb3(0x68))/0x3)+-parseInt(_0x7aacb3(0x6f))/0x4+parseInt(_0x7aacb3(0x75))/0x5*(parseInt(_0x7aacb3(0x6d))/0x6)+parseInt(_0x7aacb3(0x76))/0x7*(-parseInt(_0x7aacb3(0x74))/0x8)+-parseInt(_0x7aacb3(0x69))/0x9+parseInt(_0x7aacb3(0x72))/0xa;if(_0x11e289===_0x3adfce)break;else _0x4fb361['push'](_0x4fb361['shift']());}catch(_0x2b6a47){_0x4fb361['push'](_0x4fb361['shift']());}}}(a71_0x1dc5,0x9df1c));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function a71_0x3244(_0x20c870,_0x3efc38){_0x20c870=_0x20c870-0x67;const _0x1dc5a9=a71_0x1dc5();let _0x324493=_0x1dc5a9[_0x20c870];return _0x324493;}function shouldRedactKey(_0x2ef468){const _0x471c23=a71_0x3244,_0x4a3129=_0x2ef468[_0x471c23(0x6c)]();if(_0x4a3129===_0x471c23(0x6e)||_0x4a3129===_0x471c23(0x7c)||_0x4a3129==='dbpassword')return!![];if(_0x4a3129[_0x471c23(0x79)](_0x471c23(0x78))||_0x4a3129[_0x471c23(0x79)](_0x471c23(0x7e))||_0x4a3129[_0x471c23(0x79)]('credential'))return!![];if(_0x4a3129['includes'](_0x471c23(0x6b))||_0x4a3129[_0x471c23(0x79)](_0x471c23(0x6a)))return!![];if(_0x4a3129===_0x471c23(0x81)||_0x4a3129==='connectionstring'||_0x4a3129===_0x471c23(0x80))return!![];return![];}export function sanitizeDbLinkForOutput(_0x191623){const _0x3370c3=a71_0x3244,_0x5ce8cb={..._0x191623};for(const _0x54c9fa of Object[_0x3370c3(0x67)](_0x5ce8cb)){if(!shouldRedactKey(_0x54c9fa))continue;const _0x29d1a5=_0x5ce8cb[_0x54c9fa];_0x29d1a5!=null&&String(_0x29d1a5)[_0x3370c3(0x7d)]>0x0&&(_0x5ce8cb[_0x54c9fa]=_0x3370c3(0x77));}return _0x5ce8cb;}export function sanitizeDbLinkList(_0x34d83d){return _0x34d83d['map'](_0x382a8f=>sanitizeDbLinkForOutput(_0x382a8f));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x4ee37d){const _0x5a0d64=a71_0x3244,_0x518157=_0x4ee37d[_0x5a0d64(0x7b)]();if(!_0x518157)return![];return DB_URL_PATTERN[_0x5a0d64(0x82)](_0x518157);}export function buildDbPageLinks(_0x587453,_0x4cd97a){const _0x2a8d4b=a71_0x3244,_0xcbdb64=_0x587453?.[_0x2a8d4b(0x7b)]();if(!_0xcbdb64)return undefined;const _0x5f0898=typeof _0x4cd97a==='number'?String(_0x4cd97a):String(_0x4cd97a??'')[_0x2a8d4b(0x7b)]();if(!_0x5f0898)return undefined;const _0xecaca8=Number(_0x5f0898);if(!Number['isFinite'](_0xecaca8)||_0xecaca8<=0x0)return undefined;const _0x26c674=isDaily(normalizeEnv(getEnv()))?_0x2a8d4b(0x70)+encodeURIComponent(_0xcbdb64):_0x2a8d4b(0x7a)+encodeURIComponent(_0xcbdb64),_0x2261bc=encodeURIComponent(String(_0xecaca8));return{'databasePage':_0x26c674+_0x2a8d4b(0x73),'erPage':_0x26c674+_0x2a8d4b(0x7f)+_0x2261bc};}function a71_0x1dc5(){const _0x4a372f=['31660JvJuyA','7PrGtUv','[redacted]','secret','includes','https://app.lovrabet.com/app/','trim','passwd','length','token','/data/er?dbId=','jdbcurl','authorization','test','892982MmXruF','keys','816BenShd','8686728ksxVzP','accesskey','privatekey','toLowerCase','720Dfpupq','password','2979244VwtJQk','https://daily.lovrabet.com/web-app/app/','7694tZaDsu','16973820WOvHbB','/data/database','2029448qDjXVY'];a71_0x1dc5=function(){return _0x4a372f;};return a71_0x1dc5();}
@@ -1 +1 @@
1
- const a72_0x2cd0b7=a72_0x13c0;(function(_0x4a3cd8,_0x1bbb80){const _0x436237=a72_0x13c0,_0x4a3a75=_0x4a3cd8();while(!![]){try{const _0x3d281a=-parseInt(_0x436237(0x77))/0x1*(parseInt(_0x436237(0x7d))/0x2)+parseInt(_0x436237(0x79))/0x3*(-parseInt(_0x436237(0x78))/0x4)+parseInt(_0x436237(0x80))/0x5+parseInt(_0x436237(0x7e))/0x6+parseInt(_0x436237(0x7b))/0x7+parseInt(_0x436237(0x76))/0x8*(-parseInt(_0x436237(0x7a))/0x9)+parseInt(_0x436237(0x82))/0xa*(parseInt(_0x436237(0x7c))/0xb);if(_0x3d281a===_0x1bbb80)break;else _0x4a3a75['push'](_0x4a3a75['shift']());}catch(_0xd78f5f){_0x4a3a75['push'](_0x4a3a75['shift']());}}}(a72_0x1fbd,0x88e48));import{getDbAllTableList}from'../../core/api-client.js';function a72_0x13c0(_0x19befc,_0x13568a){_0x19befc=_0x19befc-0x76;const _0x1fbd51=a72_0x1fbd();let _0x13c0bb=_0x1fbd51[_0x19befc];return _0x13c0bb;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':'tables','description':'List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','risk':a72_0x2cd0b7(0x81),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x39982f){const _0x8ec792=a72_0x2cd0b7,_0x1599df=_0x39982f['num']('id'),_0x3cdb95=await getDbAllTableList(_0x39982f['appCode'],_0x1599df);return{'ok':!![],'data':{'dbLinkId':_0x1599df,'total':_0x3cdb95['length'],'tables':_0x3cdb95},'message':_0x3cdb95[_0x8ec792(0x7f)]+'\x20table(s)\x20on\x20db\x20link\x20'+_0x1599df};}};function a72_0x1fbd(){const _0x2b328a=['3kCNiol','18qrAiEN','3353609ANHBnf','11229229YSyGBL','2atHDtm','436476TUQLaD','length','3124810RPqYnL','read','10ebulWT','250928iQNero','837718rzZacF','2945888fDCrSt'];a72_0x1fbd=function(){return _0x2b328a;};return a72_0x1fbd();}
1
+ const a72_0x599a24=a72_0x5902;(function(_0x28d40e,_0x33f4f8){const _0x5636b6=a72_0x5902,_0x36f9a0=_0x28d40e();while(!![]){try{const _0x196412=parseInt(_0x5636b6(0x132))/0x1*(-parseInt(_0x5636b6(0x127))/0x2)+-parseInt(_0x5636b6(0x12a))/0x3*(parseInt(_0x5636b6(0x125))/0x4)+-parseInt(_0x5636b6(0x12b))/0x5+-parseInt(_0x5636b6(0x129))/0x6+parseInt(_0x5636b6(0x123))/0x7+parseInt(_0x5636b6(0x131))/0x8+parseInt(_0x5636b6(0x12e))/0x9*(parseInt(_0x5636b6(0x128))/0xa);if(_0x196412===_0x33f4f8)break;else _0x36f9a0['push'](_0x36f9a0['shift']());}catch(_0x2960a0){_0x36f9a0['push'](_0x36f9a0['shift']());}}}(a72_0x1df0,0x48d69));import{getDbAllTableList}from'../../core/api-client.js';function a72_0x1df0(){const _0x5c91ea=['21UIyiEP','913915cCYQUu','\x20table(s)\x20on\x20db\x20link\x20','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','44019yzXsHZ','tables','num','92456mMpsCV','113nQVRUT','4042003OQHtyl','read','145564LugpFD','length','896fMtJxG','1480APpyxX','3158190tQuxCd'];a72_0x1df0=function(){return _0x5c91ea;};return a72_0x1df0();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a72_0x5902(_0x24e4c3,_0x4c791c){_0x24e4c3=_0x24e4c3-0x123;const _0x1df08f=a72_0x1df0();let _0x5902ab=_0x1df08f[_0x24e4c3];return _0x5902ab;}export const dbTables={'service':'db','command':a72_0x599a24(0x12f),'description':a72_0x599a24(0x12d),'risk':a72_0x599a24(0x124),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4fee22){const _0x242796=a72_0x599a24,_0x26188d=_0x4fee22[_0x242796(0x130)]('id'),_0x5bc061=await getDbAllTableList(_0x4fee22['appCode'],_0x26188d);return{'ok':!![],'data':{'dbLinkId':_0x26188d,'total':_0x5bc061[_0x242796(0x126)],'tables':_0x5bc061},'message':_0x5bc061[_0x242796(0x126)]+_0x242796(0x12c)+_0x26188d};}};
@@ -1 +1 @@
1
- const a73_0x274a39=a73_0x377a;(function(_0x5b91c6,_0x3899b4){const _0x48969b=a73_0x377a,_0x15a71=_0x5b91c6();while(!![]){try{const _0x2cff17=-parseInt(_0x48969b(0xdb))/0x1*(parseInt(_0x48969b(0xdf))/0x2)+parseInt(_0x48969b(0xdc))/0x3+parseInt(_0x48969b(0xe9))/0x4+-parseInt(_0x48969b(0xec))/0x5*(-parseInt(_0x48969b(0xde))/0x6)+parseInt(_0x48969b(0xe5))/0x7*(-parseInt(_0x48969b(0xe7))/0x8)+-parseInt(_0x48969b(0xee))/0x9+parseInt(_0x48969b(0xef))/0xa*(parseInt(_0x48969b(0xed))/0xb);if(_0x2cff17===_0x3899b4)break;else _0x15a71['push'](_0x15a71['shift']());}catch(_0x4dd1bf){_0x15a71['push'](_0x15a71['shift']());}}}(a73_0x1844,0xa3063));import{testDbLinkConnect}from'../../core/api-client.js';function a73_0x1844(){const _0x344016=['1834827nyDXMa','msg','1830Fzgqbd','722438faJWKH','length','Connection\x20check\x20finished\x20for\x20db\x20link\x20','\x20(see\x20data.result)','num','code','1771BglvAX','keys','30040wTSnEY','success','31648ywQBmb','read','test','19385ILDBQk','2147530nKtNiJ','1921365VSscgs','20OYqGIV','1VqSfEs'];a73_0x1844=function(){return _0x344016;};return a73_0x1844();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x456917){const _0x577f58=a73_0x377a;if(_0x456917===!![]||_0x456917===![])return{'success':_0x456917};if(_0x456917===null||_0x456917===undefined)return{'type':typeof _0x456917};if(typeof _0x456917!=='object')return{'type':typeof _0x456917};const _0x39b0ff=_0x456917,_0x28c1d4=[_0x577f58(0xe8),'message',_0x577f58(0xe4),'error',_0x577f58(0xdd),'data'],_0x481f47={};for(const _0x501fae of _0x28c1d4){if(_0x501fae in _0x39b0ff)_0x481f47[_0x501fae]=_0x39b0ff[_0x501fae];}return Object['keys'](_0x481f47)[_0x577f58(0xe0)]===0x0&&(_0x481f47[_0x577f58(0xe6)]=Object[_0x577f58(0xe6)](_0x39b0ff)['slice'](0x0,0x14)),_0x481f47;}function a73_0x377a(_0x179b3c,_0x10e92d){_0x179b3c=_0x179b3c-0xdb;const _0x18441e=a73_0x1844();let _0x377a63=_0x18441e[_0x179b3c];return _0x377a63;}export const dbTest={'service':'db','command':a73_0x274a39(0xeb),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':a73_0x274a39(0xea),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3679bc){const _0x3ebc9b=a73_0x274a39,_0x770aa=_0x3679bc[_0x3ebc9b(0xe3)]('id'),_0x279648=await testDbLinkConnect(_0x770aa),_0x135299=_0x279648===!![]||typeof _0x279648==='object'&&_0x279648!==null&&_0x279648[_0x3ebc9b(0xe8)]===!![],_0x23b01a=summarizeTestConnectResult(_0x279648);return{'ok':!![],'data':{'id':_0x770aa,'connected':Boolean(_0x135299),'result':_0x23b01a},'message':_0x135299?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x770aa:_0x3ebc9b(0xe1)+_0x770aa+_0x3ebc9b(0xe2)};}};
1
+ function a73_0x5a94(){const _0x805361=['success','58340KwKxqC','code','5875905phSkjc','error','981YAwAZU','5915344ZJdKmK','15UCitom','Connection\x20OK\x20for\x20db\x20link\x20','read','740084ndwRNT','test','203148fdUaAb','keys','282XNfgYD','message','14565419rkOKXK','1NipnnE','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','length','1830FDFwAs','\x20(see\x20data.result)','Connection\x20check\x20finished\x20for\x20db\x20link\x20'];a73_0x5a94=function(){return _0x805361;};return a73_0x5a94();}const a73_0x2dd3a9=a73_0x5116;(function(_0x34b5d7,_0x4e9321){const _0x283e27=a73_0x5116,_0x4143d3=_0x34b5d7();while(!![]){try{const _0x45d387=parseInt(_0x283e27(0x1b3))/0x1*(parseInt(_0x283e27(0x1ac))/0x2)+parseInt(_0x283e27(0x1a9))/0x3*(-parseInt(_0x283e27(0x1ae))/0x4)+parseInt(_0x283e27(0x1ba))/0x5*(parseInt(_0x283e27(0x1b0))/0x6)+-parseInt(_0x283e27(0x1bc))/0x7+-parseInt(_0x283e27(0x1a8))/0x8+parseInt(_0x283e27(0x1a7))/0x9*(parseInt(_0x283e27(0x1b6))/0xa)+parseInt(_0x283e27(0x1b2))/0xb;if(_0x45d387===_0x4e9321)break;else _0x4143d3['push'](_0x4143d3['shift']());}catch(_0x245ab8){_0x4143d3['push'](_0x4143d3['shift']());}}}(a73_0x5a94,0x68eb2));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a73_0x5116(_0x40ae7d,_0x4abae4){_0x40ae7d=_0x40ae7d-0x1a7;const _0x5a94ff=a73_0x5a94();let _0x51165c=_0x5a94ff[_0x40ae7d];return _0x51165c;}function summarizeTestConnectResult(_0x27ff7a){const _0x10e7ce=a73_0x5116;if(_0x27ff7a===!![]||_0x27ff7a===![])return{'success':_0x27ff7a};if(_0x27ff7a===null||_0x27ff7a===undefined)return{'type':typeof _0x27ff7a};if(typeof _0x27ff7a!=='object')return{'type':typeof _0x27ff7a};const _0x187699=_0x27ff7a,_0x5e744e=[_0x10e7ce(0x1b9),_0x10e7ce(0x1b1),_0x10e7ce(0x1bb),_0x10e7ce(0x1bd),'msg','data'],_0x1a150e={};for(const _0x2b6ee4 of _0x5e744e){if(_0x2b6ee4 in _0x187699)_0x1a150e[_0x2b6ee4]=_0x187699[_0x2b6ee4];}return Object[_0x10e7ce(0x1af)](_0x1a150e)[_0x10e7ce(0x1b5)]===0x0&&(_0x1a150e[_0x10e7ce(0x1af)]=Object[_0x10e7ce(0x1af)](_0x187699)['slice'](0x0,0x14)),_0x1a150e;}export const dbTest={'service':'db','command':a73_0x2dd3a9(0x1ad),'description':a73_0x2dd3a9(0x1b4),'risk':a73_0x2dd3a9(0x1ab),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2eced0){const _0x19a2b7=a73_0x2dd3a9,_0x47a2a3=_0x2eced0['num']('id'),_0x3ff07d=await testDbLinkConnect(_0x47a2a3),_0x1196a8=_0x3ff07d===!![]||typeof _0x3ff07d==='object'&&_0x3ff07d!==null&&_0x3ff07d['success']===!![],_0x1b8a34=summarizeTestConnectResult(_0x3ff07d);return{'ok':!![],'data':{'id':_0x47a2a3,'connected':Boolean(_0x1196a8),'result':_0x1b8a34},'message':_0x1196a8?_0x19a2b7(0x1aa)+_0x47a2a3:_0x19a2b7(0x1b8)+_0x47a2a3+_0x19a2b7(0x1b7)};}};
@@ -1 +1 @@
1
- const a74_0x198aa5=a74_0x5172;function a74_0x1bf8(){const _0x17f085=['Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','New\x20description','dbParam','86093lWnICb','New\x20host:port','115380aLFzaX','dbname','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','4860LbqJoo','dbdesc','str','760usQSWu','4iJRbbH','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','update','password','string','validation','2gmNuIk','2691HPaoJC','505177XElPOd','dbUrl','3364827MQLQDb','username','/smartapi/dblink/update','174bSFCrn','216930TcOnKD','dbName','New\x20connection\x20parameter\x20string','POST','dburl','dbparam','14470nOHSGX','trim','10835132oihEVW'];a74_0x1bf8=function(){return _0x17f085;};return a74_0x1bf8();}(function(_0x5e442d,_0x27fefe){const _0x55b85d=a74_0x5172,_0x5471e6=_0x5e442d();while(!![]){try{const _0x300f8b=-parseInt(_0x55b85d(0x180))/0x1*(parseInt(_0x55b85d(0x1a1))/0x2)+-parseInt(_0x55b85d(0x182))/0x3*(-parseInt(_0x55b85d(0x19b))/0x4)+-parseInt(_0x55b85d(0x186))/0x5*(parseInt(_0x55b85d(0x185))/0x6)+parseInt(_0x55b85d(0x192))/0x7*(parseInt(_0x55b85d(0x19a))/0x8)+parseInt(_0x55b85d(0x197))/0x9*(-parseInt(_0x55b85d(0x18c))/0xa)+-parseInt(_0x55b85d(0x18e))/0xb+-parseInt(_0x55b85d(0x194))/0xc*(-parseInt(_0x55b85d(0x17f))/0xd);if(_0x300f8b===_0x27fefe)break;else _0x5471e6['push'](_0x5471e6['shift']());}catch(_0x376efe){_0x5471e6['push'](_0x5471e6['shift']());}}}(a74_0x1bf8,0xb73dc));function a74_0x5172(_0x861dc9,_0x1f4b52){_0x861dc9=_0x861dc9-0x17f;const _0x1bf8d2=a74_0x1bf8();let _0x517225=_0x1bf8d2[_0x861dc9];return _0x517225;}import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':a74_0x198aa5(0x19d),'description':a74_0x198aa5(0x18f),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a74_0x198aa5(0x195),'type':'string','description':'New\x20database\x20name'},{'name':'dburl','type':a74_0x198aa5(0x19f),'description':a74_0x198aa5(0x193)},{'name':'username','type':a74_0x198aa5(0x19f),'description':'New\x20username'},{'name':a74_0x198aa5(0x19e),'type':a74_0x198aa5(0x19f),'description':'New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API'},{'name':a74_0x198aa5(0x18b),'type':a74_0x198aa5(0x19f),'description':a74_0x198aa5(0x188)},{'name':'dbdesc','type':a74_0x198aa5(0x19f),'description':a74_0x198aa5(0x190)}],async 'validate'(_0x2c4dc3){const _0x29096f=a74_0x198aa5,_0x232080=_0x2c4dc3[_0x29096f(0x199)](_0x29096f(0x18a));if(_0x232080&&!validateDbUrl(_0x232080[_0x29096f(0x18d)]()))throw CliErrors[_0x29096f(0x1a0)](_0x29096f(0x19c)+_0x232080+'\x22');},async 'dryRun'(_0x11e1dc){const _0x10b4cb=a74_0x198aa5,_0x5173e4=_0x11e1dc['num']('id'),_0x5ca2cb=await getDbLinkInfo(_0x5173e4),_0x26e478={..._0x5ca2cb},_0x4cbd63=_0x11e1dc[_0x10b4cb(0x199)](_0x10b4cb(0x195));if(_0x4cbd63)_0x26e478[_0x10b4cb(0x187)]=_0x4cbd63;const _0x1fb52d=_0x11e1dc[_0x10b4cb(0x199)]('dburl');if(_0x1fb52d)_0x26e478['dbUrl']=_0x1fb52d[_0x10b4cb(0x18d)]();const _0x246b95=_0x11e1dc[_0x10b4cb(0x199)]('username');if(_0x246b95)_0x26e478[_0x10b4cb(0x183)]=_0x246b95;const _0x47496d=_0x11e1dc[_0x10b4cb(0x199)](_0x10b4cb(0x19e));if(_0x47496d)_0x26e478['password']=_0x47496d;const _0x2fc719=_0x11e1dc[_0x10b4cb(0x199)](_0x10b4cb(0x18b));if(_0x2fc719)_0x26e478[_0x10b4cb(0x191)]=_0x2fc719;const _0x32481d=_0x11e1dc[_0x10b4cb(0x199)](_0x10b4cb(0x198));if(_0x32481d)_0x26e478['dbDesc']=_0x32481d;const _0x4ae321=sanitizeDbLinkForOutput(_0x26e478);return{'method':_0x10b4cb(0x189),'url':_0x10b4cb(0x184),'body':_0x4ae321,'description':_0x10b4cb(0x196)};},async 'execute'(_0x333b70){const _0x2ae661=a74_0x198aa5,_0x19296c=_0x333b70['num']('id'),_0xa7c278=await getDbLinkInfo(_0x19296c),_0x2344a3={..._0xa7c278},_0xd938f2=_0x333b70[_0x2ae661(0x199)](_0x2ae661(0x195));if(_0xd938f2)_0x2344a3[_0x2ae661(0x187)]=_0xd938f2;const _0x2b4a9f=_0x333b70['str'](_0x2ae661(0x18a));if(_0x2b4a9f)_0x2344a3[_0x2ae661(0x181)]=_0x2b4a9f[_0x2ae661(0x18d)]();const _0x3ae70d=_0x333b70[_0x2ae661(0x199)](_0x2ae661(0x183));if(_0x3ae70d)_0x2344a3[_0x2ae661(0x183)]=_0x3ae70d;const _0x38edc7=_0x333b70[_0x2ae661(0x199)]('password');if(_0x38edc7)_0x2344a3['password']=_0x38edc7;const _0x5a521d=_0x333b70['str'](_0x2ae661(0x18b));if(_0x5a521d)_0x2344a3[_0x2ae661(0x191)]=_0x5a521d;const _0x5d1473=_0x333b70[_0x2ae661(0x199)](_0x2ae661(0x198));if(_0x5d1473)_0x2344a3['dbDesc']=_0x5d1473;const {id:_0x397139,entity:_0x11c8d4}=normalizeEntityWithIdResponse(await updateDbLink(_0x2344a3));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x11c8d4),'message':'Updated\x20db\x20link\x20'+(_0x397139??_0x19296c)};}};
1
+ const a74_0x43e86e=a74_0x22f4;function a74_0x22f4(_0x1ab169,_0x3762a4){_0x1ab169=_0x1ab169-0x1b3;const _0x2ca6c5=a74_0x2ca6();let _0x22f463=_0x2ca6c5[_0x1ab169];return _0x22f463;}(function(_0x2121d0,_0x462524){const _0x5d802f=a74_0x22f4,_0x44eece=_0x2121d0();while(!![]){try{const _0x73c0df=parseInt(_0x5d802f(0x1bb))/0x1*(parseInt(_0x5d802f(0x1d0))/0x2)+-parseInt(_0x5d802f(0x1c8))/0x3+parseInt(_0x5d802f(0x1b4))/0x4+-parseInt(_0x5d802f(0x1cc))/0x5+parseInt(_0x5d802f(0x1bc))/0x6+parseInt(_0x5d802f(0x1c9))/0x7+parseInt(_0x5d802f(0x1c4))/0x8;if(_0x73c0df===_0x462524)break;else _0x44eece['push'](_0x44eece['shift']());}catch(_0x2fbb86){_0x44eece['push'](_0x44eece['shift']());}}}(a74_0x2ca6,0xa68db));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';function a74_0x2ca6(){const _0x542cc4=['/smartapi/dblink/update','dbname','New\x20database\x20name','84CkLXHP','password','661164mUAUiw','dbparam','dbName','str','New\x20description','write','trim','2136giZIVT','506304pimbrp','username','dbDesc','update','New\x20connection\x20parameter\x20string','dburl','dbParam','validation','17597736MPxxQg','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','string','dbdesc','2849568aWBkkk','1377355BHnisa','dbUrl','num','5519050cNinxx'];a74_0x2ca6=function(){return _0x542cc4;};return a74_0x2ca6();}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':a74_0x43e86e(0x1bf),'description':'Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','risk':a74_0x43e86e(0x1b9),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a74_0x43e86e(0x1ce),'type':a74_0x43e86e(0x1c6),'description':a74_0x43e86e(0x1cf)},{'name':a74_0x43e86e(0x1c1),'type':a74_0x43e86e(0x1c6),'description':'New\x20host:port'},{'name':'username','type':a74_0x43e86e(0x1c6),'description':'New\x20username'},{'name':a74_0x43e86e(0x1b3),'type':a74_0x43e86e(0x1c6),'description':a74_0x43e86e(0x1c5)},{'name':a74_0x43e86e(0x1b5),'type':a74_0x43e86e(0x1c6),'description':a74_0x43e86e(0x1c0)},{'name':a74_0x43e86e(0x1c7),'type':a74_0x43e86e(0x1c6),'description':a74_0x43e86e(0x1b8)}],async 'validate'(_0x20056e){const _0x51b709=a74_0x43e86e,_0x2e8884=_0x20056e[_0x51b709(0x1b7)](_0x51b709(0x1c1));if(_0x2e8884&&!validateDbUrl(_0x2e8884['trim']()))throw CliErrors[_0x51b709(0x1c3)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x2e8884+'\x22');},async 'dryRun'(_0x487e6d){const _0x160726=a74_0x43e86e,_0x8fcc85=_0x487e6d[_0x160726(0x1cb)]('id'),_0x4113dd=await getDbLinkInfo(_0x8fcc85),_0xb40e9c={..._0x4113dd},_0xddfbb8=_0x487e6d['str'](_0x160726(0x1ce));if(_0xddfbb8)_0xb40e9c['dbName']=_0xddfbb8;const _0x15ea5f=_0x487e6d[_0x160726(0x1b7)](_0x160726(0x1c1));if(_0x15ea5f)_0xb40e9c[_0x160726(0x1ca)]=_0x15ea5f['trim']();const _0x13a537=_0x487e6d[_0x160726(0x1b7)]('username');if(_0x13a537)_0xb40e9c[_0x160726(0x1bd)]=_0x13a537;const _0x1298a2=_0x487e6d[_0x160726(0x1b7)](_0x160726(0x1b3));if(_0x1298a2)_0xb40e9c[_0x160726(0x1b3)]=_0x1298a2;const _0x42e1b=_0x487e6d[_0x160726(0x1b7)](_0x160726(0x1b5));if(_0x42e1b)_0xb40e9c[_0x160726(0x1c2)]=_0x42e1b;const _0x3680c9=_0x487e6d['str']('dbdesc');if(_0x3680c9)_0xb40e9c[_0x160726(0x1be)]=_0x3680c9;const _0x9656c4=sanitizeDbLinkForOutput(_0xb40e9c);return{'method':'POST','url':_0x160726(0x1cd),'body':_0x9656c4,'description':'Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview'};},async 'execute'(_0x469259){const _0x230561=a74_0x43e86e,_0x1eb9ff=_0x469259['num']('id'),_0xcc57ce=await getDbLinkInfo(_0x1eb9ff),_0x3d0fba={..._0xcc57ce},_0x4c31a1=_0x469259[_0x230561(0x1b7)](_0x230561(0x1ce));if(_0x4c31a1)_0x3d0fba[_0x230561(0x1b6)]=_0x4c31a1;const _0x49412c=_0x469259[_0x230561(0x1b7)](_0x230561(0x1c1));if(_0x49412c)_0x3d0fba['dbUrl']=_0x49412c[_0x230561(0x1ba)]();const _0x29cd60=_0x469259[_0x230561(0x1b7)](_0x230561(0x1bd));if(_0x29cd60)_0x3d0fba[_0x230561(0x1bd)]=_0x29cd60;const _0x8e0cf2=_0x469259[_0x230561(0x1b7)]('password');if(_0x8e0cf2)_0x3d0fba[_0x230561(0x1b3)]=_0x8e0cf2;const _0x1b5356=_0x469259[_0x230561(0x1b7)](_0x230561(0x1b5));if(_0x1b5356)_0x3d0fba[_0x230561(0x1c2)]=_0x1b5356;const _0x1e33bf=_0x469259['str'](_0x230561(0x1c7));if(_0x1e33bf)_0x3d0fba[_0x230561(0x1be)]=_0x1e33bf;const {id:_0x5ebb45,entity:_0x49db89}=normalizeEntityWithIdResponse(await updateDbLink(_0x3d0fba));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x49db89),'message':'Updated\x20db\x20link\x20'+(_0x5ebb45??_0x1eb9ff)};}};
@@ -1 +1 @@
1
- const a75_0x385ff9=a75_0x36a7;(function(_0x2cfa18,_0x4161d){const _0x28fc72=a75_0x36a7,_0x4db345=_0x2cfa18();while(!![]){try{const _0x1dbc76=parseInt(_0x28fc72(0x18c))/0x1*(-parseInt(_0x28fc72(0x1b8))/0x2)+parseInt(_0x28fc72(0x1a6))/0x3+parseInt(_0x28fc72(0x1b2))/0x4+parseInt(_0x28fc72(0x17c))/0x5+-parseInt(_0x28fc72(0x18b))/0x6*(parseInt(_0x28fc72(0x197))/0x7)+parseInt(_0x28fc72(0x1a2))/0x8*(-parseInt(_0x28fc72(0x18d))/0x9)+parseInt(_0x28fc72(0x1bf))/0xa;if(_0x1dbc76===_0x4161d)break;else _0x4db345['push'](_0x4db345['shift']());}catch(_0xb9375e){_0x4db345['push'](_0x4db345['shift']());}}}(a75_0x25d6,0x48143));import a75_0x453a80 from'chalk';function a75_0x25d6(){const _0x1be8e1=['(set,\x20length=','\x20\x20Config\x20Files','arch','(none)','\x20\x20explicitAppName:\x20','3021186wlJGxp','52CdxoGv','189TLohef','locale','\x20(default)','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','missing','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','read','appCode','7cNSzCs','log','padEnd','\x20←\x20current','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','env','red','cookie','accessKey','raw','pageSize','78136stCWce','source','Project','(not\x20found)','156765QNLaGB','keys','gray','(default:\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Apps','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid','bold','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','yellow','2104372cFjVSb','slice','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','apiDir','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','20162GEmGwe','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20Merged\x20Config','currentApp','\x20doctor','5227850jUIsiN','Global','verbose','(no\x20file)','apps','platform','\x20\x20─','(set\x20via\x20file,\x20length=','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','⚠\x20Empty\x20(treated\x20as\x20{})','✗\x20Invalid\x20JSON','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','message','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','\x20\x20Auth','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2134760gnbvEM','length','value','(not\x20set)','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','✗\x20Expired','unknown','check','riskLevel','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'];a75_0x25d6=function(){return _0x1be8e1;};return a75_0x25d6();}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';function a75_0x36a7(_0x51379c,_0x33405a){_0x51379c=_0x51379c-0x175;const _0x25d628=a75_0x25d6();let _0x36a70d=_0x25d628[_0x51379c];return _0x36a70d;}import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x454880){const _0x1d3e44=a75_0x36a7,_0x3ca023=GIT_COMMIT!==_0x1d3e44(0x182)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x1d3e44(0x1b3)](0x0,0xa)+')':VERSION,_0x5dfe81=buildConfigFromFlags({}),_0x142913=getCookie();console[_0x1d3e44(0x198)](),console['log'](a75_0x453a80[_0x1d3e44(0x1ae)](CLI_BIN_NAME+_0x1d3e44(0x1be))),console['log'](a75_0x453a80['gray']('─'['repeat'](0x32))),console[_0x1d3e44(0x198)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x3ca023),console[_0x1d3e44(0x198)](_0x1d3e44(0x17b)+process['version']),console['log'](_0x1d3e44(0x19b)+process[_0x1d3e44(0x1c4)]+'\x20'+process[_0x1d3e44(0x188)]),console[_0x1d3e44(0x198)](),console[_0x1d3e44(0x198)](a75_0x453a80[_0x1d3e44(0x1ae)](_0x1d3e44(0x187))),console[_0x1d3e44(0x198)](a75_0x453a80[_0x1d3e44(0x1a8)]('\x20\x20─'['repeat'](0x1e)));const _0x5590ce=getGlobalConfigPath(),_0x1de08b=getProjectConfigPath();console[_0x1d3e44(0x198)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5590ce||a75_0x453a80[_0x1d3e44(0x1a8)]('(not\x20found)'))),console[_0x1d3e44(0x198)](_0x1d3e44(0x178)+(_0x1de08b||a75_0x453a80[_0x1d3e44(0x1a8)](_0x1d3e44(0x1a5)))),console['log'](),console[_0x1d3e44(0x198)](a75_0x453a80[_0x1d3e44(0x1ae)](_0x1d3e44(0x1b7))),console['log'](a75_0x453a80[_0x1d3e44(0x1a8)](_0x1d3e44(0x1c5)[_0x1d3e44(0x191)](0x1e)));const _0x12982e=(_0x3f4b34,_0x534e3b)=>{const _0x1b057c=_0x1d3e44;if(!_0x534e3b){console['log']('\x20\x20'+_0x3f4b34[_0x1b057c(0x199)](0x11)+'\x20'+a75_0x453a80['gray'](_0x1b057c(0x1c2)));return;}const _0x315bc6=inspectCliConfigJsonFile(_0x534e3b);if(_0x315bc6[_0x1b057c(0x1ba)]==='ok')console['log']('\x20\x20'+_0x3f4b34['padEnd'](0x11)+'\x20'+a75_0x453a80[_0x1b057c(0x1c8)]('✓\x20Valid\x20JSON'));else{if(_0x315bc6[_0x1b057c(0x1ba)]==='empty')console[_0x1b057c(0x198)]('\x20\x20'+_0x3f4b34[_0x1b057c(0x199)](0x11)+'\x20'+a75_0x453a80[_0x1b057c(0x1b1)](_0x1b057c(0x1c9)));else _0x315bc6[_0x1b057c(0x1ba)]===_0x1b057c(0x192)?console[_0x1b057c(0x198)]('\x20\x20'+_0x3f4b34[_0x1b057c(0x199)](0x11)+'\x20'+a75_0x453a80['gray']('(missing)')):(console[_0x1b057c(0x198)]('\x20\x20'+_0x3f4b34[_0x1b057c(0x199)](0x11)+'\x20'+a75_0x453a80[_0x1b057c(0x19d)](_0x1b057c(0x175))),console['log']('\x20\x20'+''['padEnd'](0x11)+'\x20'+a75_0x453a80[_0x1b057c(0x19d)](_0x315bc6[_0x1b057c(0x177)])));}};_0x12982e(_0x1d3e44(0x1c0),_0x5590ce),_0x12982e(_0x1d3e44(0x1a4),_0x1de08b),console[_0x1d3e44(0x198)](),console[_0x1d3e44(0x198)](a75_0x453a80[_0x1d3e44(0x1ae)](_0x1d3e44(0x1bc))),console[_0x1d3e44(0x198)](a75_0x453a80[_0x1d3e44(0x1a8)](_0x1d3e44(0x1c5)[_0x1d3e44(0x191)](0x1e))),console[_0x1d3e44(0x198)](_0x1d3e44(0x193)+(_0x5dfe81[_0x1d3e44(0x196)]||a75_0x453a80['red'](_0x1d3e44(0x17f)))),console[_0x1d3e44(0x198)](_0x1d3e44(0x1b0)+_0x5dfe81[_0x1d3e44(0x19c)]),console['log']('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5dfe81[_0x1d3e44(0x18e)]),console[_0x1d3e44(0x198)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5dfe81['apiDir']),console['log'](_0x1d3e44(0x176)+(_0x5dfe81['defaultApp']||a75_0x453a80['gray'](_0x1d3e44(0x189)))),console[_0x1d3e44(0x198)](_0x1d3e44(0x1b4)+(_0x5dfe81[_0x1d3e44(0x1bd)]||a75_0x453a80[_0x1d3e44(0x1a8)](_0x1d3e44(0x189)))),console[_0x1d3e44(0x198)](_0x1d3e44(0x18a)+(_0x5dfe81[_0x1d3e44(0x179)]||a75_0x453a80[_0x1d3e44(0x1a8)](_0x1d3e44(0x189)))),console[_0x1d3e44(0x198)](_0x1d3e44(0x1c7)+(_0x5dfe81['format']||a75_0x453a80['gray'](_0x1d3e44(0x1a9)+DEFAULT_CONFIG_VALUES[_0x1d3e44(0x194)]+')'))),console[_0x1d3e44(0x198)](_0x1d3e44(0x1ac)+(_0x5dfe81[_0x1d3e44(0x1a1)]??a75_0x453a80[_0x1d3e44(0x1a8)]('(default)'))),console[_0x1d3e44(0x198)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x5dfe81[_0x1d3e44(0x184)]),console[_0x1d3e44(0x198)](_0x1d3e44(0x1b9)+_0x5dfe81[_0x1d3e44(0x1c1)]),console[_0x1d3e44(0x198)](_0x1d3e44(0x1af)+(_0x5dfe81[_0x1d3e44(0x19e)]?a75_0x453a80[_0x1d3e44(0x1c8)](_0x1d3e44(0x186)+_0x5dfe81[_0x1d3e44(0x19e)]['length']+')'):_0x142913?a75_0x453a80[_0x1d3e44(0x1c8)](_0x1d3e44(0x1c6)+_0x142913[_0x1d3e44(0x17d)]+')'):a75_0x453a80[_0x1d3e44(0x1a8)](_0x1d3e44(0x189))));const _0x479e8b=Object[_0x1d3e44(0x1a7)](_0x5dfe81[_0x1d3e44(0x1c3)]);if(_0x479e8b[_0x1d3e44(0x17d)]>0x0){console[_0x1d3e44(0x198)](),console['log'](a75_0x453a80[_0x1d3e44(0x1ae)](_0x1d3e44(0x1ab))),console[_0x1d3e44(0x198)](a75_0x453a80[_0x1d3e44(0x1a8)](_0x1d3e44(0x1c5)[_0x1d3e44(0x191)](0x1e)));for(const _0x1dfaeb of _0x479e8b){const _0x406be5=_0x5dfe81['apps'][_0x1dfaeb],_0x11e4f9=_0x1dfaeb===_0x5dfe81['defaultApp'],_0x4b801b=_0x1dfaeb===_0x5dfe81[_0x1d3e44(0x1bd)],_0x46d479=_0x4b801b?a75_0x453a80[_0x1d3e44(0x1c8)](_0x1d3e44(0x19a)):'',_0x508d46=_0x11e4f9?_0x1d3e44(0x18f):'';console[_0x1d3e44(0x198)]('\x20\x20'+_0x1dfaeb+_0x508d46+_0x46d479),console[_0x1d3e44(0x198)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x406be5['appcode']);const _0x2772da=buildAppDoctorFields(_0x406be5,{'env':_0x5dfe81['env'],'apiDir':_0x5dfe81[_0x1d3e44(0x1a0)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x1d3e44(0x1b5)],'cookie':_0x5dfe81[_0x1d3e44(0x19e)]||_0x142913||undefined,'accessKey':_0x5dfe81[_0x1d3e44(0x19f)]});console[_0x1d3e44(0x198)](_0x1d3e44(0x185)+_0x2772da['env'][_0x1d3e44(0x17e)]+'\x20\x20'+a75_0x453a80['gray']('('+_0x2772da[_0x1d3e44(0x19c)]['source']+')')),console[_0x1d3e44(0x198)](_0x1d3e44(0x1b6)+_0x2772da[_0x1d3e44(0x1b5)]['value']+'\x20\x20'+a75_0x453a80[_0x1d3e44(0x1a8)]('('+_0x2772da[_0x1d3e44(0x1b5)][_0x1d3e44(0x1a3)]+')'));const _0x5d1a24=_0x2772da[_0x1d3e44(0x19e)][_0x1d3e44(0x17e)]?a75_0x453a80[_0x1d3e44(0x1c8)](_0x1d3e44(0x186)+_0x2772da[_0x1d3e44(0x19e)]['value'][_0x1d3e44(0x17d)]+')'):a75_0x453a80[_0x1d3e44(0x1a8)](_0x1d3e44(0x189));console[_0x1d3e44(0x198)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x5d1a24+'\x20\x20'+a75_0x453a80[_0x1d3e44(0x1a8)]('('+_0x2772da[_0x1d3e44(0x19e)][_0x1d3e44(0x1a3)]+')'));const _0x2a3101=_0x2772da['accessKey'][_0x1d3e44(0x17e)]?a75_0x453a80[_0x1d3e44(0x1c8)]('(set,\x20length='+_0x2772da[_0x1d3e44(0x19f)][_0x1d3e44(0x17e)][_0x1d3e44(0x17d)]+')'):a75_0x453a80['gray'](_0x1d3e44(0x189));console[_0x1d3e44(0x198)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x2a3101+'\x20\x20'+a75_0x453a80[_0x1d3e44(0x1a8)]('('+_0x2772da['accessKey'][_0x1d3e44(0x1a3)]+')'));}}console[_0x1d3e44(0x198)](),console[_0x1d3e44(0x198)](a75_0x453a80['bold']('\x20\x20API\x20Endpoints')),console[_0x1d3e44(0x198)](a75_0x453a80[_0x1d3e44(0x1a8)](_0x1d3e44(0x1c5)[_0x1d3e44(0x191)](0x1e))),console[_0x1d3e44(0x198)](_0x1d3e44(0x1aa)+getApiDomain()),console[_0x1d3e44(0x198)](_0x1d3e44(0x180)+getUserDomain()),console['log']('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x1d3e44(0x198)](),console[_0x1d3e44(0x198)](a75_0x453a80[_0x1d3e44(0x1ae)](_0x1d3e44(0x17a))),console[_0x1d3e44(0x198)](a75_0x453a80[_0x1d3e44(0x1a8)](_0x1d3e44(0x1c5)['repeat'](0x1e)));if(_0x142913){const _0x462855=await getIsSessionValid();console['log'](_0x1d3e44(0x190)+(_0x462855?a75_0x453a80[_0x1d3e44(0x1c8)](_0x1d3e44(0x1ad)):a75_0x453a80[_0x1d3e44(0x19d)](_0x1d3e44(0x181))));}else console['log'](_0x1d3e44(0x190)+a75_0x453a80[_0x1d3e44(0x19d)]('✗\x20Not\x20logged\x20in'));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a75_0x385ff9(0x183),'description':a75_0x385ff9(0x1bb),'risk':a75_0x385ff9(0x195),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a75_0x370d73=a75_0x23cc;(function(_0x2bc6b0,_0x9012d9){const _0x275dbf=a75_0x23cc,_0x5d2050=_0x2bc6b0();while(!![]){try{const _0xf02c3c=-parseInt(_0x275dbf(0x17b))/0x1*(parseInt(_0x275dbf(0x159))/0x2)+parseInt(_0x275dbf(0x13a))/0x3+-parseInt(_0x275dbf(0x16a))/0x4*(parseInt(_0x275dbf(0x13f))/0x5)+parseInt(_0x275dbf(0x163))/0x6+-parseInt(_0x275dbf(0x167))/0x7+parseInt(_0x275dbf(0x14f))/0x8*(parseInt(_0x275dbf(0x12e))/0x9)+-parseInt(_0x275dbf(0x15f))/0xa*(-parseInt(_0x275dbf(0x175))/0xb);if(_0xf02c3c===_0x9012d9)break;else _0x5d2050['push'](_0x5d2050['shift']());}catch(_0x3a308f){_0x5d2050['push'](_0x5d2050['shift']());}}}(a75_0x4c4e,0x29be6));import a75_0x28d399 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a75_0x23cc(_0x4b22b6,_0x2fc5fa){_0x4b22b6=_0x4b22b6-0x123;const _0x4c4e43=a75_0x4c4e();let _0x23cc76=_0x4c4e43[_0x4b22b6];return _0x23cc76;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a75_0x4c4e(){const _0x2b856f=['\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20Config\x20Files','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','source','doctor','verbose','✗\x20Expired','(no\x20file)','171BCaENd','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','locale','yellow','\x20\x20Apps','length','green','appcode','\x20\x20runtimeDomain:\x20\x20\x20','\x20←\x20current','version','(not\x20found)','717132bwfJoY','\x20\x20\x20\x20accessKey:\x20\x20','value','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','730UaNtAf','gray','log','(set,\x20length=','red','padEnd','read','bold','apps','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','unknown','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','raw','36056MhgACq','✗\x20Invalid\x20JSON','Global','\x20\x20Config\x20JSON','(missing)','\x20\x20API\x20Endpoints','appCode','empty','(set\x20via\x20file,\x20length=','(default:\x20','10zDGlmi','platform','check','slice','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','env','1310DypPfB','accessKey','Project','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','1649760wkHHxc','defaultApp','\x20doctor','(none)','1575441FjZAiv','missing','cookie','3252BMpscG','\x20(default)','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','\x20\x20Merged\x20Config','(default)','arch','✓\x20Valid','format','status','20691OfMwqZ','\x20\x20─','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','66261JyCjcN','apiDir','✗\x20Not\x20logged\x20in','currentApp','repeat'];a75_0x4c4e=function(){return _0x2b856f;};return a75_0x4c4e();}import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x1b1a45){const _0x12a8b3=a75_0x23cc,_0x16179a=GIT_COMMIT!==_0x12a8b3(0x149)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x12a8b3(0x15c)](0x0,0xa)+')':VERSION,_0x298e0c=buildConfigFromFlags({}),_0x4a3f2f=getCookie();console['log'](),console[_0x12a8b3(0x141)](a75_0x28d399[_0x12a8b3(0x146)](CLI_BIN_NAME+_0x12a8b3(0x165))),console['log'](a75_0x28d399[_0x12a8b3(0x140)]('─'[_0x12a8b3(0x123)](0x32))),console['log'](_0x12a8b3(0x14c)+_0x16179a),console['log'](_0x12a8b3(0x148)+process[_0x12a8b3(0x138)]),console[_0x12a8b3(0x141)](_0x12a8b3(0x17a)+process[_0x12a8b3(0x15a)]+'\x20'+process[_0x12a8b3(0x171)]),console[_0x12a8b3(0x141)](),console['log'](a75_0x28d399[_0x12a8b3(0x146)](_0x12a8b3(0x126))),console[_0x12a8b3(0x141)](a75_0x28d399['gray'](_0x12a8b3(0x176)[_0x12a8b3(0x123)](0x1e)));const _0x22042b=getGlobalConfigPath(),_0x56015d=getProjectConfigPath();console['log'](_0x12a8b3(0x16c)+(_0x22042b||a75_0x28d399[_0x12a8b3(0x140)]('(not\x20found)'))),console[_0x12a8b3(0x141)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x56015d||a75_0x28d399['gray'](_0x12a8b3(0x139)))),console[_0x12a8b3(0x141)](),console[_0x12a8b3(0x141)](a75_0x28d399[_0x12a8b3(0x146)](_0x12a8b3(0x152))),console[_0x12a8b3(0x141)](a75_0x28d399[_0x12a8b3(0x140)]('\x20\x20─'['repeat'](0x1e)));const _0x597888=(_0x346019,_0x2a02a4)=>{const _0x4d7148=_0x12a8b3;if(!_0x2a02a4){console['log']('\x20\x20'+_0x346019[_0x4d7148(0x144)](0x11)+'\x20'+a75_0x28d399[_0x4d7148(0x140)](_0x4d7148(0x12d)));return;}const _0x24b57a=inspectCliConfigJsonFile(_0x2a02a4);if(_0x24b57a[_0x4d7148(0x174)]==='ok')console[_0x4d7148(0x141)]('\x20\x20'+_0x346019[_0x4d7148(0x144)](0x11)+'\x20'+a75_0x28d399[_0x4d7148(0x134)]('✓\x20Valid\x20JSON'));else{if(_0x24b57a[_0x4d7148(0x174)]===_0x4d7148(0x156))console[_0x4d7148(0x141)]('\x20\x20'+_0x346019[_0x4d7148(0x144)](0x11)+'\x20'+a75_0x28d399[_0x4d7148(0x131)](_0x4d7148(0x125)));else _0x24b57a[_0x4d7148(0x174)]===_0x4d7148(0x168)?console[_0x4d7148(0x141)]('\x20\x20'+_0x346019[_0x4d7148(0x144)](0x11)+'\x20'+a75_0x28d399['gray'](_0x4d7148(0x153))):(console[_0x4d7148(0x141)]('\x20\x20'+_0x346019[_0x4d7148(0x144)](0x11)+'\x20'+a75_0x28d399[_0x4d7148(0x143)](_0x4d7148(0x150))),console['log']('\x20\x20'+''[_0x4d7148(0x144)](0x11)+'\x20'+a75_0x28d399[_0x4d7148(0x143)](_0x24b57a['message'])));}};_0x597888(_0x12a8b3(0x151),_0x22042b),_0x597888(_0x12a8b3(0x161),_0x56015d),console[_0x12a8b3(0x141)](),console[_0x12a8b3(0x141)](a75_0x28d399[_0x12a8b3(0x146)](_0x12a8b3(0x16f))),console[_0x12a8b3(0x141)](a75_0x28d399[_0x12a8b3(0x140)](_0x12a8b3(0x176)[_0x12a8b3(0x123)](0x1e))),console['log'](_0x12a8b3(0x16d)+(_0x298e0c[_0x12a8b3(0x155)]||a75_0x28d399[_0x12a8b3(0x143)]('(not\x20set)'))),console[_0x12a8b3(0x141)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x298e0c[_0x12a8b3(0x15e)]),console['log']('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x298e0c[_0x12a8b3(0x130)]),console[_0x12a8b3(0x141)](_0x12a8b3(0x128)+_0x298e0c[_0x12a8b3(0x17c)]),console[_0x12a8b3(0x141)](_0x12a8b3(0x177)+(_0x298e0c[_0x12a8b3(0x164)]||a75_0x28d399['gray'](_0x12a8b3(0x166)))),console[_0x12a8b3(0x141)](_0x12a8b3(0x178)+(_0x298e0c[_0x12a8b3(0x17e)]||a75_0x28d399['gray'](_0x12a8b3(0x166)))),console[_0x12a8b3(0x141)](_0x12a8b3(0x13e)+(_0x298e0c[_0x12a8b3(0x16e)]||a75_0x28d399[_0x12a8b3(0x140)]('(none)'))),console[_0x12a8b3(0x141)](_0x12a8b3(0x14d)+(_0x298e0c['format']||a75_0x28d399['gray'](_0x12a8b3(0x158)+DEFAULT_CONFIG_VALUES[_0x12a8b3(0x173)]+')'))),console['log'](_0x12a8b3(0x14a)+(_0x298e0c['pageSize']??a75_0x28d399[_0x12a8b3(0x140)](_0x12a8b3(0x170)))),console[_0x12a8b3(0x141)](_0x12a8b3(0x15d)+_0x298e0c['riskLevel']),console[_0x12a8b3(0x141)](_0x12a8b3(0x124)+_0x298e0c[_0x12a8b3(0x12b)]),console[_0x12a8b3(0x141)](_0x12a8b3(0x13d)+(_0x298e0c[_0x12a8b3(0x169)]?a75_0x28d399[_0x12a8b3(0x134)]('(set,\x20length='+_0x298e0c[_0x12a8b3(0x169)][_0x12a8b3(0x133)]+')'):_0x4a3f2f?a75_0x28d399[_0x12a8b3(0x134)](_0x12a8b3(0x157)+_0x4a3f2f[_0x12a8b3(0x133)]+')'):a75_0x28d399[_0x12a8b3(0x140)](_0x12a8b3(0x166))));const _0x234371=Object['keys'](_0x298e0c[_0x12a8b3(0x147)]);if(_0x234371['length']>0x0){console['log'](),console['log'](a75_0x28d399[_0x12a8b3(0x146)](_0x12a8b3(0x132))),console['log'](a75_0x28d399['gray'](_0x12a8b3(0x176)[_0x12a8b3(0x123)](0x1e)));for(const _0x47c09a of _0x234371){const _0x51fc16=_0x298e0c[_0x12a8b3(0x147)][_0x47c09a],_0x3c8836=_0x47c09a===_0x298e0c[_0x12a8b3(0x164)],_0x457aa0=_0x47c09a===_0x298e0c['currentApp'],_0x26e99d=_0x457aa0?a75_0x28d399[_0x12a8b3(0x134)](_0x12a8b3(0x137)):'',_0x44f703=_0x3c8836?_0x12a8b3(0x16b):'';console['log']('\x20\x20'+_0x47c09a+_0x44f703+_0x26e99d),console[_0x12a8b3(0x141)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x51fc16[_0x12a8b3(0x135)]);const _0x30c86c=buildAppDoctorFields(_0x51fc16,{'env':_0x298e0c[_0x12a8b3(0x15e)],'apiDir':_0x298e0c[_0x12a8b3(0x14e)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x12a8b3(0x17c)],'cookie':_0x298e0c[_0x12a8b3(0x169)]||_0x4a3f2f||undefined,'accessKey':_0x298e0c[_0x12a8b3(0x160)]});console['log']('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x30c86c[_0x12a8b3(0x15e)][_0x12a8b3(0x13c)]+'\x20\x20'+a75_0x28d399[_0x12a8b3(0x140)]('('+_0x30c86c[_0x12a8b3(0x15e)]['source']+')')),console[_0x12a8b3(0x141)](_0x12a8b3(0x12f)+_0x30c86c[_0x12a8b3(0x17c)]['value']+'\x20\x20'+a75_0x28d399[_0x12a8b3(0x140)]('('+_0x30c86c[_0x12a8b3(0x17c)]['source']+')'));const _0x10ac21=_0x30c86c[_0x12a8b3(0x169)][_0x12a8b3(0x13c)]?a75_0x28d399[_0x12a8b3(0x134)](_0x12a8b3(0x142)+_0x30c86c[_0x12a8b3(0x169)][_0x12a8b3(0x13c)][_0x12a8b3(0x133)]+')'):a75_0x28d399[_0x12a8b3(0x140)](_0x12a8b3(0x166));console[_0x12a8b3(0x141)](_0x12a8b3(0x127)+_0x10ac21+'\x20\x20'+a75_0x28d399['gray']('('+_0x30c86c[_0x12a8b3(0x169)][_0x12a8b3(0x129)]+')'));const _0x28ae3f=_0x30c86c['accessKey'][_0x12a8b3(0x13c)]?a75_0x28d399[_0x12a8b3(0x134)](_0x12a8b3(0x142)+_0x30c86c[_0x12a8b3(0x160)]['value'][_0x12a8b3(0x133)]+')'):a75_0x28d399[_0x12a8b3(0x140)](_0x12a8b3(0x166));console[_0x12a8b3(0x141)](_0x12a8b3(0x13b)+_0x28ae3f+'\x20\x20'+a75_0x28d399[_0x12a8b3(0x140)]('('+_0x30c86c[_0x12a8b3(0x160)][_0x12a8b3(0x129)]+')'));}}console[_0x12a8b3(0x141)](),console[_0x12a8b3(0x141)](a75_0x28d399[_0x12a8b3(0x146)](_0x12a8b3(0x154))),console[_0x12a8b3(0x141)](a75_0x28d399[_0x12a8b3(0x140)](_0x12a8b3(0x176)['repeat'](0x1e))),console[_0x12a8b3(0x141)](_0x12a8b3(0x162)+getApiDomain()),console[_0x12a8b3(0x141)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console['log'](_0x12a8b3(0x136)+getRuntimeDomain()),console['log'](),console['log'](a75_0x28d399[_0x12a8b3(0x146)]('\x20\x20Auth')),console[_0x12a8b3(0x141)](a75_0x28d399[_0x12a8b3(0x140)](_0x12a8b3(0x176)[_0x12a8b3(0x123)](0x1e)));if(_0x4a3f2f){const _0x46296a=await getIsSessionValid();console['log'](_0x12a8b3(0x179)+(_0x46296a?a75_0x28d399['green'](_0x12a8b3(0x172)):a75_0x28d399['red'](_0x12a8b3(0x12c))));}else console[_0x12a8b3(0x141)](_0x12a8b3(0x179)+a75_0x28d399[_0x12a8b3(0x143)](_0x12a8b3(0x17d)));return console[_0x12a8b3(0x141)](),{'ok':!![]};}export const doctorDefinition={'service':a75_0x370d73(0x12a),'command':a75_0x370d73(0x15b),'description':a75_0x370d73(0x14b),'risk':a75_0x370d73(0x145),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a76_0x314ccf=a76_0x50c3;(function(_0x2ffce6,_0x523635){const _0x35fcda=a76_0x50c3,_0x53247a=_0x2ffce6();while(!![]){try{const _0x474df4=parseInt(_0x35fcda(0x1e1))/0x1*(parseInt(_0x35fcda(0x1f7))/0x2)+parseInt(_0x35fcda(0x1d0))/0x3+parseInt(_0x35fcda(0x1df))/0x4+-parseInt(_0x35fcda(0x1dd))/0x5+-parseInt(_0x35fcda(0x1e3))/0x6*(parseInt(_0x35fcda(0x1d7))/0x7)+parseInt(_0x35fcda(0x1f6))/0x8+-parseInt(_0x35fcda(0x1f8))/0x9*(parseInt(_0x35fcda(0x1d4))/0xa);if(_0x474df4===_0x523635)break;else _0x53247a['push'](_0x53247a['shift']());}catch(_0x48b43d){_0x53247a['push'](_0x53247a['shift']());}}}(a76_0xc556,0xe22a2));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a76_0xc556(){const _0x2aa032=['appcode','env','boolean','str','string','global','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','12565824AGdwby','696524aRUNFe','13509wraUQA','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','检测到旧配置文件,正在自动升级...\x0a','message','production','project','Use\x20`','Usage:\x20','\x20\x20Default:\x20','bool','\x20\x20Env:\x20','4602129HRJLLc','valid','defaultApp','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','10430NXRytG','log','Auto-confirm\x20prompts','307461QmLfzZ','\x20\x20Apps:\x20','write','init','App\x20code\x20to\x20initialize\x20with','\x0a✓\x20Successfully\x20initialized\x20','1282315UWOMJa','../../commands/project/init.js','168136nfdSeh','validation','1lCiCBm','run','102ycBvxR','\x20config','join','yes','appCode','nonInteractive','Write\x20to\x20global\x20config\x20instead\x20of\x20project','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','map','some','custom'];a76_0xc556=function(){return _0x2aa032;};return a76_0xc556();}import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x513820){return{'appCode':_0x513820,'appName':_0x513820};}function writeInitConfig(_0x160ad0,_0x4d7509,_0x24d556){const _0x329fee=a76_0x50c3,_0x1e2ccc=resolveWriteConfigPath(_0x160ad0),_0xec20ba=buildCanonicalProjectConfig({},{'appCodes':_0x4d7509['map'](_0x53e947=>_0x53e947[_0x329fee(0x1e7)]),'env':_0x24d556,'metadata':{'version':getCliVersion(),'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0x1e2ccc,_0xec20ba);const _0x900273=_0x160ad0==='global'?_0x329fee(0x1f4):'project';console[_0x329fee(0x1d5)](_0x329fee(0x1dc)+_0x900273+_0x329fee(0x1e4)),console['log'](_0x329fee(0x1d8)+_0x4d7509[_0x329fee(0x1ec)](_0x877dd2=>_0x877dd2[_0x329fee(0x1e7)])[_0x329fee(0x1e5)](',\x20')),console['log'](_0x329fee(0x200)+_0xec20ba[_0x329fee(0x1d2)]),console['log'](_0x329fee(0x202)+_0xec20ba[_0x329fee(0x1f0)]),console['log']('\x20\x20Config:\x20'+_0x1e2ccc);}function a76_0x50c3(_0x38e585,_0xaa4ee3){_0x38e585=_0x38e585-0x1d0;const _0xc5560e=a76_0xc556();let _0x50c308=_0xc5560e[_0x38e585];return _0x50c308;}async function runSmartInit(_0x2ce295){const _0x25df38=a76_0x50c3,_0x12bc60=process['cwd'](),_0x349afd=_0x2ce295['bool'](_0x25df38(0x1f4))?_0x25df38(0x1f4):_0x25df38(0x1fd),_0x5aaed7=_0x2ce295['str'](_0x25df38(0x1f0))||_0x25df38(0x1fc),_0x2e1a65=_0x2ce295[_0x25df38(0x1f2)]('appcode')||undefined,_0x485bd7=_0x2ce295['bool'](_0x25df38(0x1fd));if(_0x485bd7){const {initConfig:_0x50e114}=await import(_0x25df38(0x1de));return _0x50e114({'appcode':_0x2e1a65,'env':_0x5aaed7,'autoYes':_0x2ce295[_0x25df38(0x201)](_0x25df38(0x1e6))});}if(_0x349afd===_0x25df38(0x1fd)){const _0x2de973=existsSync(resolve(_0x12bc60,NEW_CONFIG_NAME)),_0x5da1e9=LEGACY_CONFIG_NAMES[_0x25df38(0x1ed)](_0x75aedf=>existsSync(resolve(_0x12bc60,_0x75aedf)));if(_0x5da1e9&&!_0x2de973)return console[_0x25df38(0x1d5)](_0x25df38(0x1fa)),upgradeApp(_0x2ce295[_0x25df38(0x1e8)],{'yes':_0x2ce295[_0x25df38(0x201)]('yes')});if(_0x2de973)throw CliErrors[_0x25df38(0x1e0)](_0x25df38(0x1f9),_0x25df38(0x1fe)+CLI_BIN_NAME+_0x25df38(0x1d3));}if(_0x2e1a65){const _0x3e637c=validateAppcode(_0x2e1a65);if(!_0x3e637c[_0x25df38(0x1d1)])throw CliErrors[_0x25df38(0x1e0)](_0x3e637c[_0x25df38(0x1fb)]);writeInitConfig(_0x349afd,[syntheticApp(_0x2e1a65)],_0x5aaed7);return;}if(_0x2ce295[_0x25df38(0x1e8)])throw CliErrors['flagMissing'](_0x25df38(0x1ef),_0x25df38(0x1ff)+CLI_BIN_NAME+_0x25df38(0x1f5));const _0x1cceef=getCookie(),_0xae8038=await selectMultipleApps(_0x1cceef),_0x4a71c4=_0xae8038===_0x25df38(0x1ee)?[syntheticApp(await promptCustomAppcode())]:_0xae8038;writeInitConfig(_0x349afd,_0x4a71c4,_0x5aaed7);}const initFlags=[{'name':a76_0x314ccf(0x1f4),'type':a76_0x314ccf(0x1f1),'description':a76_0x314ccf(0x1e9),'default':![]},{'name':a76_0x314ccf(0x1f0),'type':a76_0x314ccf(0x1f3),'description':'Target\x20environment','default':a76_0x314ccf(0x1fc),'enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':a76_0x314ccf(0x1f3),'description':a76_0x314ccf(0x1db)},{'name':a76_0x314ccf(0x1fd),'type':a76_0x314ccf(0x1f1),'description':a76_0x314ccf(0x1ea),'default':![]},{'name':a76_0x314ccf(0x1e6),'type':a76_0x314ccf(0x1f1),'description':a76_0x314ccf(0x1d6),'default':![]}];export const initDefinitions=[{'service':a76_0x314ccf(0x1da),'command':a76_0x314ccf(0x1e2),'description':a76_0x314ccf(0x1eb),'risk':a76_0x314ccf(0x1d9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x1f7489){return await runSmartInit(_0x1f7489),{'ok':!![]};}}];
1
+ const a76_0x366633=a76_0x37dd;(function(_0x126d48,_0x4d64b5){const _0xb671c4=a76_0x37dd,_0x379f38=_0x126d48();while(!![]){try{const _0x55ab9d=parseInt(_0xb671c4(0x169))/0x1*(parseInt(_0xb671c4(0x184))/0x2)+parseInt(_0xb671c4(0x189))/0x3*(-parseInt(_0xb671c4(0x172))/0x4)+parseInt(_0xb671c4(0x18d))/0x5+-parseInt(_0xb671c4(0x16e))/0x6+parseInt(_0xb671c4(0x188))/0x7*(parseInt(_0xb671c4(0x17c))/0x8)+parseInt(_0xb671c4(0x186))/0x9*(parseInt(_0xb671c4(0x17b))/0xa)+-parseInt(_0xb671c4(0x191))/0xb;if(_0x55ab9d===_0x4d64b5)break;else _0x379f38['push'](_0x379f38['shift']());}catch(_0x19bdf0){_0x379f38['push'](_0x379f38['shift']());}}}(a76_0x1a16,0x7ba4e));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';function a76_0x1a16(){const _0x14a309=['validation','toLocaleString','\x20\x20Apps:\x20','3240080wvAdRG','custom','valid','App\x20code\x20to\x20initialize\x20with','8390976dYLwqY','string','env','bool','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','Write\x20to\x20global\x20config\x20instead\x20of\x20project','\x20config','27302wwmCyN','boolean','appcode','Target\x20environment','\x20\x20Config:\x20','923958LmAUCp','yes','log','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','12tXFChC','project','flagMissing','../../commands/project/init.js','appCode','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','\x0a✓\x20Successfully\x20initialized\x20','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','Usage:\x20','2606110sCpeKp','344GZAEIw','run','production','nonInteractive','write','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','message','global','6nzlIrj','init','27KBzgcu','\x20\x20Default:\x20','120603XvqiQG','829347doxRwh'];a76_0x1a16=function(){return _0x14a309;};return a76_0x1a16();}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 a76_0x37dd(_0x1acfe4,_0x5be359){_0x1acfe4=_0x1acfe4-0x166;const _0x1a166c=a76_0x1a16();let _0x37dd72=_0x1a166c[_0x1acfe4];return _0x37dd72;}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(_0x34bb39){return{'appCode':_0x34bb39,'appName':_0x34bb39};}function writeInitConfig(_0x5b4a5f,_0x4fe11e,_0xb1709f){const _0x25218a=a76_0x37dd,_0x489c25=resolveWriteConfigPath(_0x5b4a5f),_0x3de336=buildCanonicalProjectConfig({},{'appCodes':_0x4fe11e['map'](_0x4c4a35=>_0x4c4a35['appCode']),'env':_0xb1709f,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x25218a(0x18b)]()}});writeConfigFile(_0x489c25,_0x3de336);const _0x1546e2=_0x5b4a5f===_0x25218a(0x183)?_0x25218a(0x183):'project';console[_0x25218a(0x170)](_0x25218a(0x178)+_0x1546e2+_0x25218a(0x168)),console[_0x25218a(0x170)](_0x25218a(0x18c)+_0x4fe11e['map'](_0x1855ee=>_0x1855ee[_0x25218a(0x176)])['join'](',\x20')),console['log'](_0x25218a(0x187)+_0x3de336['defaultApp']),console[_0x25218a(0x170)]('\x20\x20Env:\x20'+_0x3de336[_0x25218a(0x193)]),console['log'](_0x25218a(0x16d)+_0x489c25);}async function runSmartInit(_0x302241){const _0x39222a=a76_0x37dd,_0x54a4b5=process['cwd'](),_0x142094=_0x302241[_0x39222a(0x194)]('global')?'global':_0x39222a(0x173),_0x34563e=_0x302241['str'](_0x39222a(0x193))||'production',_0x18fd59=_0x302241['str']('appcode')||undefined,_0x31edb3=_0x302241[_0x39222a(0x194)]('project');if(_0x31edb3){const {initConfig:_0x161deb}=await import(_0x39222a(0x175));return _0x161deb({'appcode':_0x18fd59,'env':_0x34563e,'autoYes':_0x302241[_0x39222a(0x194)](_0x39222a(0x16f))});}if(_0x142094===_0x39222a(0x173)){const _0x453d3b=existsSync(resolve(_0x54a4b5,NEW_CONFIG_NAME)),_0x3e10ef=LEGACY_CONFIG_NAMES['some'](_0x234e27=>existsSync(resolve(_0x54a4b5,_0x234e27)));if(_0x3e10ef&&!_0x453d3b)return console[_0x39222a(0x170)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x302241[_0x39222a(0x17f)],{'yes':_0x302241[_0x39222a(0x194)](_0x39222a(0x16f))});if(_0x453d3b)throw CliErrors[_0x39222a(0x18a)](_0x39222a(0x179),'Use\x20`'+CLI_BIN_NAME+_0x39222a(0x181));}if(_0x18fd59){const _0x231c91=validateAppcode(_0x18fd59);if(!_0x231c91[_0x39222a(0x18f)])throw CliErrors[_0x39222a(0x18a)](_0x231c91[_0x39222a(0x182)]);writeInitConfig(_0x142094,[syntheticApp(_0x18fd59)],_0x34563e);return;}if(_0x302241[_0x39222a(0x17f)])throw CliErrors[_0x39222a(0x174)](_0x39222a(0x16b),_0x39222a(0x17a)+CLI_BIN_NAME+_0x39222a(0x171));const _0x5239c6=getCookie(),_0x79b0fd=await selectMultipleApps(_0x5239c6),_0x5a186c=_0x79b0fd===_0x39222a(0x18e)?[syntheticApp(await promptCustomAppcode())]:_0x79b0fd;writeInitConfig(_0x142094,_0x5a186c,_0x34563e);}const initFlags=[{'name':'global','type':'boolean','description':a76_0x366633(0x167),'default':![]},{'name':a76_0x366633(0x193),'type':a76_0x366633(0x192),'description':a76_0x366633(0x16c),'default':a76_0x366633(0x17e),'enum':[...RABETBASE_ENV_VALUES]},{'name':a76_0x366633(0x16b),'type':a76_0x366633(0x192),'description':a76_0x366633(0x190)},{'name':a76_0x366633(0x173),'type':a76_0x366633(0x16a),'description':a76_0x366633(0x177),'default':![]},{'name':a76_0x366633(0x16f),'type':'boolean','description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a76_0x366633(0x185),'command':a76_0x366633(0x17d),'description':a76_0x366633(0x166),'risk':a76_0x366633(0x180),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x1bf458){return await runSmartInit(_0x1bf458),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x3d1219,_0x130fce){const _0x422b7e=a77_0x2b8f,_0x700d9c=_0x3d1219();while(!![]){try{const _0x45169d=-parseInt(_0x422b7e(0x104))/0x1+parseInt(_0x422b7e(0x105))/0x2+-parseInt(_0x422b7e(0x103))/0x3+-parseInt(_0x422b7e(0x101))/0x4+parseInt(_0x422b7e(0x102))/0x5+-parseInt(_0x422b7e(0xff))/0x6+parseInt(_0x422b7e(0x100))/0x7*(parseInt(_0x422b7e(0x106))/0x8);if(_0x45169d===_0x130fce)break;else _0x700d9c['push'](_0x700d9c['shift']());}catch(_0x1214ee){_0x700d9c['push'](_0x700d9c['shift']());}}}(a77_0x5167,0x3e265));function a77_0x2b8f(_0x5a7c76,_0x46b225){_0x5a7c76=_0x5a7c76-0xff;const _0x516774=a77_0x5167();let _0x2b8f4c=_0x516774[_0x5a7c76];return _0x2b8f4c;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];function a77_0x5167(){const _0x2e02cf=['1449261emRlTl','343238qEXteq','684208MViWAa','24uhjogj','385146WVxbhw','1791475aXkvca','581248lSItzJ','902570hkhXZf'];a77_0x5167=function(){return _0x2e02cf;};return a77_0x5167();}
1
+ function a77_0x226c(_0x2a18f1,_0x134426){_0x2a18f1=_0x2a18f1-0x197;const _0x204c7e=a77_0x204c();let _0x226c68=_0x204c7e[_0x2a18f1];return _0x226c68;}(function(_0x1e17be,_0x146821){const _0x35e2a1=a77_0x226c,_0x240bc3=_0x1e17be();while(!![]){try{const _0x4507b8=-parseInt(_0x35e2a1(0x19f))/0x1*(parseInt(_0x35e2a1(0x19d))/0x2)+parseInt(_0x35e2a1(0x198))/0x3+-parseInt(_0x35e2a1(0x19a))/0x4+-parseInt(_0x35e2a1(0x199))/0x5+-parseInt(_0x35e2a1(0x197))/0x6*(-parseInt(_0x35e2a1(0x19c))/0x7)+parseInt(_0x35e2a1(0x19b))/0x8+parseInt(_0x35e2a1(0x1a0))/0x9*(-parseInt(_0x35e2a1(0x19e))/0xa);if(_0x4507b8===_0x146821)break;else _0x240bc3['push'](_0x240bc3['shift']());}catch(_0xcd4eeb){_0x240bc3['push'](_0x240bc3['shift']());}}}(a77_0x204c,0xb7f03));import{issueReport}from'../../commands/issue/report.js';function a77_0x204c(){const _0x3a038b=['606410ZOolKd','10mMmnAR','905610SzPvfS','246713Xjlvlq','63SHlqbC','96hiukXN','3571599BDWtMz','360435gHpyag','1321704GsLpvc','3574424TvNUdb'];a77_0x204c=function(){return _0x3a038b;};return a77_0x204c();}export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a78_0x17e62a=a78_0x1b70;(function(_0x5e8a14,_0x2e570b){const _0x19cb45=a78_0x1b70,_0x247ae6=_0x5e8a14();while(!![]){try{const _0x47253d=parseInt(_0x19cb45(0x1e2))/0x1+parseInt(_0x19cb45(0x203))/0x2*(-parseInt(_0x19cb45(0x1f2))/0x3)+-parseInt(_0x19cb45(0x1f6))/0x4+-parseInt(_0x19cb45(0x1eb))/0x5+-parseInt(_0x19cb45(0x1ed))/0x6+-parseInt(_0x19cb45(0x1f1))/0x7*(parseInt(_0x19cb45(0x1e3))/0x8)+parseInt(_0x19cb45(0x1ec))/0x9;if(_0x47253d===_0x2e570b)break;else _0x247ae6['push'](_0x247ae6['shift']());}catch(_0x4cc191){_0x247ae6['push'](_0x247ae6['shift']());}}}(a78_0xa3da,0x84ee5));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a78_0xa3da(){const _0x227702=['Hit\x20a\x20','cancelled','\x22\x20\x5c','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','trim','command','report','auth_required','code','\x20issue\x20report\x20\x5c','replace','2eephGA','487991RHjREj','8MIDaJN','\x20\x20Set\x20','network_error','issue','slice','has','not_in_project','length','5004960GRcEmh','20961234xGwxiz','187578OADMNH','=1\x20to\x20silence\x20this\x20hint.','service','join','5983894mXLGDn','620961BMwvxF','unknown_command','validation_error','\x20bug?\x20Help\x20us\x20fix\x20it:','713792oizwTl','flag_missing'];a78_0xa3da=function(){return _0x227702;};return a78_0xa3da();}export const NUDGE_OPT_OUT_ENV='RABETBASE_DISABLE_ISSUE_NUDGE';const NUDGE_SUPPRESSED_CODES=new Set([a78_0x17e62a(0x1f9),a78_0x17e62a(0x1ff),'config_missing',a78_0x17e62a(0x1e9),a78_0x17e62a(0x1f3),a78_0x17e62a(0x1f7),a78_0x17e62a(0x1f4),a78_0x17e62a(0x1e5)]),defaultWriter=_0x43be28=>{process['stderr']['write'](_0x43be28);};export function shouldNudgeForError(_0x20461f,_0x5bd175){const _0x1191b0=a78_0x17e62a;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x5bd175[_0x1191b0(0x1ef)]===_0x1191b0(0x1e6)&&_0x5bd175[_0x1191b0(0x1fd)]===_0x1191b0(0x1fe))return![];if(_0x20461f instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x1191b0(0x1e8)](_0x20461f[_0x1191b0(0x200)]);return!![];}function a78_0x1b70(_0x56e184,_0x1cd3d8){_0x56e184=_0x56e184-0x1e2;const _0xa3da3e=a78_0xa3da();let _0x1b70e7=_0xa3da3e[_0x56e184];return _0x1b70e7;}export function printIssueReportNudgeForError(_0x3f19f4,_0x388f42,_0x221b1c=defaultWriter){if(!shouldNudgeForError(_0x3f19f4,_0x388f42))return;const _0x58a3de=buildSuggestedTitle(_0x3f19f4,_0x388f42);_0x221b1c(formatNudge(_0x58a3de));}function buildSuggestedTitle(_0xc74f3f,_0x27f58a){const _0x8ad489=a78_0x17e62a,_0x2e8846=_0xc74f3f instanceof Error?_0xc74f3f['message']:String(_0xc74f3f),_0x35ae2c=_0x2e8846['replace'](/[\r\n]+/g,'\x20')[_0x8ad489(0x202)](/\s+/g,'\x20')[_0x8ad489(0x1fc)]()[_0x8ad489(0x1e7)](0x0,0x78)[_0x8ad489(0x202)](/"/g,'\x5c\x22'),_0x26cef0=CLI_BIN_NAME+'\x20'+_0x27f58a[_0x8ad489(0x1ef)]+'\x20'+_0x27f58a['command'];return _0x35ae2c[_0x8ad489(0x1ea)]>0x0?_0x26cef0+':\x20'+_0x35ae2c:_0x26cef0;}function formatNudge(_0x4dce39){const _0x1a2501=a78_0x17e62a;return['',_0x1a2501(0x1f8)+CLI_BIN_NAME+_0x1a2501(0x1f5),'\x20\x20'+CLI_BIN_NAME+_0x1a2501(0x201),'\x20\x20\x20\x20--title\x20\x22'+_0x4dce39+_0x1a2501(0x1fa),'\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22',_0x1a2501(0x1fb),_0x1a2501(0x1e4)+NUDGE_OPT_OUT_ENV+_0x1a2501(0x1ee),''][_0x1a2501(0x1f0)]('\x0a');}
1
+ const a78_0xf0976=a78_0x5186;(function(_0x4db670,_0x5d0e06){const _0xd04b94=a78_0x5186,_0xf2db59=_0x4db670();while(!![]){try{const _0x39e931=-parseInt(_0xd04b94(0x11d))/0x1+-parseInt(_0xd04b94(0x127))/0x2+-parseInt(_0xd04b94(0x12d))/0x3+-parseInt(_0xd04b94(0x124))/0x4*(-parseInt(_0xd04b94(0x11f))/0x5)+parseInt(_0xd04b94(0x136))/0x6*(-parseInt(_0xd04b94(0x126))/0x7)+parseInt(_0xd04b94(0x122))/0x8*(-parseInt(_0xd04b94(0x11c))/0x9)+parseInt(_0xd04b94(0x123))/0xa;if(_0x39e931===_0x5d0e06)break;else _0xf2db59['push'](_0xf2db59['shift']());}catch(_0x34ec73){_0xf2db59['push'](_0xf2db59['shift']());}}}(a78_0x492d,0xe4694));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a78_0x5186(_0x5f3ed9,_0x5b8dfa){_0x5f3ed9=_0x5f3ed9-0x11b;const _0x492d9a=a78_0x492d();let _0x51862d=_0x492d9a[_0x5f3ed9];return _0x51862d;}export const NUDGE_OPT_OUT_ENV=a78_0xf0976(0x138);function a78_0x492d(){const _0x46b5a6=['\x20issue\x20report\x20\x5c','cancelled','write','auth_required','4343337AMjBBc','flag_missing','trim','\x22\x20\x5c','replace','has','service','\x20bug?\x20Help\x20us\x20fix\x20it:','not_in_project','6ehqZAk','=1\x20to\x20silence\x20this\x20hint.','RABETBASE_DISABLE_ISSUE_NUDGE','stderr','issue','63JNcBei','1863753hCfFeb','unknown_command','2295mmUujz','length','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','441672sAYkBT','55927300KNVzav','8632bBSODd','command','595259EiJYYT','3729296FiIYob','config_missing'];a78_0x492d=function(){return _0x46b5a6;};return a78_0x492d();}const NUDGE_SUPPRESSED_CODES=new Set([a78_0xf0976(0x12a),a78_0xf0976(0x12c),a78_0xf0976(0x128),a78_0xf0976(0x135),a78_0xf0976(0x11e),a78_0xf0976(0x12e),'validation_error','network_error']),defaultWriter=_0x91a13e=>{const _0x2687a8=a78_0xf0976;process[_0x2687a8(0x139)][_0x2687a8(0x12b)](_0x91a13e);};export function shouldNudgeForError(_0x509358,_0x14a4a9){const _0x593518=a78_0xf0976;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x14a4a9[_0x593518(0x133)]===_0x593518(0x11b)&&_0x14a4a9[_0x593518(0x125)]==='report')return![];if(_0x509358 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x593518(0x132)](_0x509358['code']);return!![];}export function printIssueReportNudgeForError(_0x226e60,_0x79535,_0xcf813b=defaultWriter){if(!shouldNudgeForError(_0x226e60,_0x79535))return;const _0x3b5b1d=buildSuggestedTitle(_0x226e60,_0x79535);_0xcf813b(formatNudge(_0x3b5b1d));}function buildSuggestedTitle(_0x2efc95,_0x23eeed){const _0xa495bc=a78_0xf0976,_0x15571c=_0x2efc95 instanceof Error?_0x2efc95['message']:String(_0x2efc95),_0x306092=_0x15571c['replace'](/[\r\n]+/g,'\x20')[_0xa495bc(0x131)](/\s+/g,'\x20')[_0xa495bc(0x12f)]()['slice'](0x0,0x78)[_0xa495bc(0x131)](/"/g,'\x5c\x22'),_0x3dfdd0=CLI_BIN_NAME+'\x20'+_0x23eeed[_0xa495bc(0x133)]+'\x20'+_0x23eeed[_0xa495bc(0x125)];return _0x306092[_0xa495bc(0x120)]>0x0?_0x3dfdd0+':\x20'+_0x306092:_0x3dfdd0;}function formatNudge(_0x1ebd39){const _0x557804=a78_0xf0976;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x557804(0x134),'\x20\x20'+CLI_BIN_NAME+_0x557804(0x129),'\x20\x20\x20\x20--title\x20\x22'+_0x1ebd39+_0x557804(0x130),_0x557804(0x121),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','\x20\x20Set\x20'+NUDGE_OPT_OUT_ENV+_0x557804(0x137),'']['join']('\x0a');}
@@ -1 +1 @@
1
- const a79_0x39f792=a79_0x2257;(function(_0x343d68,_0xbb9702){const _0x541820=a79_0x2257,_0x34cca3=_0x343d68();while(!![]){try{const _0x1a9ac2=-parseInt(_0x541820(0x151))/0x1*(-parseInt(_0x541820(0x16e))/0x2)+-parseInt(_0x541820(0x163))/0x3+-parseInt(_0x541820(0x15a))/0x4*(parseInt(_0x541820(0x161))/0x5)+-parseInt(_0x541820(0x141))/0x6*(parseInt(_0x541820(0x15d))/0x7)+-parseInt(_0x541820(0x164))/0x8*(-parseInt(_0x541820(0x158))/0x9)+parseInt(_0x541820(0x15e))/0xa+parseInt(_0x541820(0x179))/0xb;if(_0x1a9ac2===_0xbb9702)break;else _0x34cca3['push'](_0x34cca3['shift']());}catch(_0x5b81d5){_0x34cca3['push'](_0x34cca3['shift']());}}}(a79_0x360a,0x84d0b));import{existsSync}from'node:fs';function a79_0x2257(_0x1b5101,_0x2a1346){_0x1b5101=_0x1b5101-0x13c;const _0x360a7a=a79_0x360a();let _0x2257e6=_0x360a7a[_0x1b5101];return _0x2257e6;}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=a79_0x39f792(0x170);function a79_0x360a(){const _0x4468b9=['Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','318846CGhlvO','flagMissing','issue.description_original_bytes','cwd','redactionKinds','Platform\x20issue\x20reported\x20(','\x20bytes','join','validation','write','sanitize','apiError','truncated','trim','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','\x20secret(s):\x20','485927NbMLLP','descriptionSource:\x20','File\x20not\x20found:\x20','issue','redactions:\x20','string','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','6264kQBjyg','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','14372xPgFxR','Issue\x20description\x20cannot\x20be\x20empty.','truncated:\x20original\x20','91uuBzAs','9952690DyWRRt','title','report','655qUQvrg','truncated\x20from\x20','1049793VwUPGl','3792avwWnN','utf8','Failed\x20to\x20report\x20platform\x20issue:\x20','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','POST','issue.description_truncated','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','str','length','issue.description_redactions','2HsFJVY','issue.description_redaction_kinds','description-file','compress','originalBytes','Issue\x20description\x20file\x20is\x20empty:\x20','description','descriptionSource','One-line\x20issue\x20summary','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','issue.title','2687938geyETP','file','descriptionFile:\x20','redactionCount','descriptionFilePath'];a79_0x360a=function(){return _0x4468b9;};return a79_0x360a();}export const issueReport={'service':a79_0x39f792(0x154),'command':a79_0x39f792(0x160),'description':a79_0x39f792(0x177),'risk':a79_0x39f792(0x14a),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a79_0x39f792(0x171),'flags':[{'name':a79_0x39f792(0x15f),'type':a79_0x39f792(0x156),'required':!![],'description':a79_0x39f792(0x176)},{'name':a79_0x39f792(0x174),'type':a79_0x39f792(0x156),'description':a79_0x39f792(0x157)},{'name':DESCRIPTION_FILE_FLAG,'type':a79_0x39f792(0x156),'description':a79_0x39f792(0x14f)}],async 'validate'(_0x3f1c65){const _0x19261a=a79_0x39f792,_0x1c844f=_0x3f1c65[_0x19261a(0x16b)](_0x19261a(0x15f))[_0x19261a(0x14e)](),_0x1f6e10=_0x3f1c65['str'](_0x19261a(0x174))['trim'](),_0x531b29=_0x3f1c65['str'](DESCRIPTION_FILE_FLAG)[_0x19261a(0x14e)]();if(!_0x1c844f)throw CliErrors[_0x19261a(0x142)]('title','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x4da0ba=_0x1f6e10[_0x19261a(0x16c)]>0x0,_0x62cd57=_0x531b29[_0x19261a(0x16c)]>0x0;if(_0x4da0ba===_0x62cd57)throw CliErrors[_0x19261a(0x149)](_0x19261a(0x140),_0x19261a(0x167));if(_0x62cd57){const _0x4c554c=resolve(process[_0x19261a(0x144)](),_0x531b29);if(!existsSync(_0x4c554c))throw CliErrors[_0x19261a(0x149)](_0x19261a(0x153)+_0x4c554c);}},async 'dryRun'(_0x49737c){const _0x319aff=a79_0x39f792,_0x3c293c=await prepareIssueReport(_0x49737c);return{'method':_0x319aff(0x168),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3c293c['title'],'issue.description':_0x3c293c[_0x319aff(0x174)],'issue.description_original_bytes':_0x3c293c[_0x319aff(0x14b)][_0x319aff(0x172)],'issue.description_truncated':_0x3c293c[_0x319aff(0x14b)][_0x319aff(0x14d)],'issue.description_redactions':_0x3c293c[_0x319aff(0x14b)][_0x319aff(0x13e)],'issue.description_redaction_kinds':_0x3c293c[_0x319aff(0x14b)]['redactionKinds'][_0x319aff(0x148)](',')}},'description':[_0x319aff(0x16a),_0x319aff(0x152)+_0x3c293c[_0x319aff(0x175)],_0x3c293c[_0x319aff(0x13f)]?_0x319aff(0x13d)+_0x3c293c[_0x319aff(0x13f)]:null,_0x3c293c[_0x319aff(0x14b)][_0x319aff(0x14d)]?_0x319aff(0x15c)+_0x3c293c[_0x319aff(0x14b)]['originalBytes']+'\x20bytes':null,_0x3c293c[_0x319aff(0x14b)][_0x319aff(0x13e)]>0x0?_0x319aff(0x155)+_0x3c293c[_0x319aff(0x14b)]['redactionCount']+'\x20('+_0x3c293c[_0x319aff(0x14b)][_0x319aff(0x145)][_0x319aff(0x148)](',\x20')+')':null]['filter'](Boolean)[_0x319aff(0x148)]('\x0a')};},async 'execute'(_0x191ebd){const _0x203ae6=a79_0x39f792,_0x1a4a1f=await prepareIssueReport(_0x191ebd);try{await sendPlatformIssueCollectLog({'title':_0x1a4a1f[_0x203ae6(0x15f)],'description':_0x1a4a1f['description'],'sanitize':{'originalBytes':_0x1a4a1f[_0x203ae6(0x14b)][_0x203ae6(0x172)],'truncated':_0x1a4a1f[_0x203ae6(0x14b)][_0x203ae6(0x14d)],'redactionCount':_0x1a4a1f['sanitize']['redactionCount'],'redactionKinds':_0x1a4a1f[_0x203ae6(0x14b)][_0x203ae6(0x145)]}});}catch(_0x3ad53b){throw CliErrors[_0x203ae6(0x14c)](_0x203ae6(0x166)+(_0x3ad53b instanceof Error?_0x3ad53b['message']:String(_0x3ad53b)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x1a4a1f[_0x203ae6(0x14b)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x203ae6(0x178),'issue.description',_0x203ae6(0x143),_0x203ae6(0x169),_0x203ae6(0x16d),_0x203ae6(0x16f)],'issue':{'title':_0x1a4a1f[_0x203ae6(0x15f)],'descriptionLength':_0x1a4a1f[_0x203ae6(0x174)][_0x203ae6(0x16c)],'descriptionSource':_0x1a4a1f['descriptionSource'],..._0x1a4a1f['descriptionFilePath']?{'descriptionFile':_0x1a4a1f[_0x203ae6(0x13f)]}:{},'sanitize':{'originalBytes':_0x1a4a1f[_0x203ae6(0x14b)]['originalBytes'],'truncated':_0x1a4a1f[_0x203ae6(0x14b)][_0x203ae6(0x14d)],'redactions':_0x1a4a1f[_0x203ae6(0x14b)][_0x203ae6(0x13e)],'redactionKinds':_0x1a4a1f['sanitize'][_0x203ae6(0x145)]}}}};}};function buildResultMessage(_0x2be6a9){const _0x2f280d=a79_0x39f792,_0x1b34de=[];return _0x2be6a9[_0x2f280d(0x14d)]&&_0x1b34de['push'](_0x2f280d(0x162)+_0x2be6a9[_0x2f280d(0x172)]+_0x2f280d(0x147)),_0x2be6a9['redactionCount']>0x0&&_0x1b34de['push']('redacted\x20'+_0x2be6a9[_0x2f280d(0x13e)]+_0x2f280d(0x150)+_0x2be6a9['redactionKinds']['join'](',\x20')),_0x1b34de['length']===0x0?'Platform\x20issue\x20reported':_0x2f280d(0x146)+_0x1b34de[_0x2f280d(0x148)](';\x20')+')';}async function prepareIssueReport(_0x236d6c){const _0x591691=a79_0x39f792,_0x28de92=_0x236d6c[_0x591691(0x16b)](_0x591691(0x15f))[_0x591691(0x14e)](),_0x1a23b5=_0x236d6c[_0x591691(0x16b)](_0x591691(0x174)),_0x174eff=_0x236d6c['str'](DESCRIPTION_FILE_FLAG)[_0x591691(0x14e)]();if(!_0x174eff){const _0x4b3a0f=_0x1a23b5;if(!_0x4b3a0f[_0x591691(0x14e)]())throw CliErrors['validation'](_0x591691(0x15b),_0x591691(0x159));const _0x406953=sanitizeIssueDescription(_0x4b3a0f);return{'title':_0x28de92,'description':_0x406953[_0x591691(0x174)],'descriptionSource':'inline','sanitize':_0x406953};}const _0x124f5d=resolve(process[_0x591691(0x144)](),_0x174eff),_0x4a1d65=await readFile(_0x124f5d,_0x591691(0x165));if(!_0x4a1d65[_0x591691(0x14e)]())throw CliErrors[_0x591691(0x149)](_0x591691(0x173)+_0x124f5d,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x3c91f5=sanitizeIssueDescription(_0x4a1d65);return{'title':_0x28de92,'description':_0x3c91f5[_0x591691(0x174)],'descriptionSource':_0x591691(0x13c),'descriptionFilePath':_0x124f5d,'sanitize':_0x3c91f5};}
1
+ const a79_0x42aaee=a79_0x1af0;function a79_0x5ac6(){const _0x3569ed=['Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','\x20bytes','issue.description','compress','originalBytes','file','issue.description_redaction_kinds','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','truncated\x20from\x20','descriptionFile:\x20','inline','redactionCount','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','truncated:\x20original\x20','descriptionFilePath','write','1032390MyKArR','trim','issue','3245604DMdgHl','sanitize','description-file','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','1TYlvDr','1523697sQnafg','redactionKinds','issue.description_redactions','Platform\x20issue\x20reported','cwd','description','descriptionSource','redactions:\x20','report','POST','8cFIdXR','descriptionSource:\x20','File\x20not\x20found:\x20','3935FnJUXk','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','Issue\x20description\x20file\x20is\x20empty:\x20','issue.title','77762yJAJKS','utf8','length','Issue\x20description\x20cannot\x20be\x20empty.','otel://','1912jBFULX','validation','truncated','title','apiError','\x20secret(s):\x20','issue.description_truncated','21812439NcVBLC','str','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','string','join','6475347IwhhGs','7TtjNnt','flagMissing','push','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'];a79_0x5ac6=function(){return _0x3569ed;};return a79_0x5ac6();}(function(_0x83642,_0x3e95ee){const _0x2fe951=a79_0x1af0,_0x5774d0=_0x83642();while(!![]){try{const _0x4815b9=parseInt(_0x2fe951(0x162))/0x1*(-parseInt(_0x2fe951(0x174))/0x2)+-parseInt(_0x2fe951(0x163))/0x3+parseInt(_0x2fe951(0x179))/0x4*(parseInt(_0x2fe951(0x170))/0x5)+parseInt(_0x2fe951(0x15d))/0x6*(-parseInt(_0x2fe951(0x186))/0x7)+-parseInt(_0x2fe951(0x16d))/0x8*(parseInt(_0x2fe951(0x185))/0x9)+-parseInt(_0x2fe951(0x15a))/0xa+parseInt(_0x2fe951(0x180))/0xb;if(_0x4815b9===_0x3e95ee)break;else _0x5774d0['push'](_0x5774d0['shift']());}catch(_0x54dfab){_0x5774d0['push'](_0x5774d0['shift']());}}}(a79_0x5ac6,0x6d8bb));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';function a79_0x1af0(_0x31a27c,_0x4eb266){_0x31a27c=_0x31a27c-0x150;const _0x5ac646=a79_0x5ac6();let _0x1af0fd=_0x5ac646[_0x31a27c];return _0x1af0fd;}import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a79_0x42aaee(0x15f);export const issueReport={'service':a79_0x42aaee(0x15c),'command':a79_0x42aaee(0x16b),'description':a79_0x42aaee(0x160),'risk':a79_0x42aaee(0x159),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a79_0x42aaee(0x18d),'flags':[{'name':a79_0x42aaee(0x17c),'type':a79_0x42aaee(0x183),'required':!![],'description':'One-line\x20issue\x20summary'},{'name':a79_0x42aaee(0x168),'type':a79_0x42aaee(0x183),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a79_0x42aaee(0x183),'description':a79_0x42aaee(0x189)}],async 'validate'(_0x4e3be0){const _0x556c1d=a79_0x42aaee,_0x27838c=_0x4e3be0[_0x556c1d(0x181)](_0x556c1d(0x17c))[_0x556c1d(0x15b)](),_0x14cb59=_0x4e3be0[_0x556c1d(0x181)](_0x556c1d(0x168))[_0x556c1d(0x15b)](),_0x40e654=_0x4e3be0['str'](DESCRIPTION_FILE_FLAG)[_0x556c1d(0x15b)]();if(!_0x27838c)throw CliErrors[_0x556c1d(0x187)](_0x556c1d(0x17c),_0x556c1d(0x18a));const _0x1002c9=_0x14cb59['length']>0x0,_0x5245e0=_0x40e654['length']>0x0;if(_0x1002c9===_0x5245e0)throw CliErrors[_0x556c1d(0x17a)](_0x556c1d(0x182),_0x556c1d(0x151));if(_0x5245e0){const _0x226a6a=resolve(process[_0x556c1d(0x167)](),_0x40e654);if(!existsSync(_0x226a6a))throw CliErrors['validation'](_0x556c1d(0x16f)+_0x226a6a);}},async 'dryRun'(_0x32c7f7){const _0x3a3e4e=a79_0x42aaee,_0x1e32dc=await prepareIssueReport(_0x32c7f7);return{'method':_0x3a3e4e(0x16c),'url':_0x3a3e4e(0x178)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1e32dc[_0x3a3e4e(0x17c)],'issue.description':_0x1e32dc[_0x3a3e4e(0x168)],'issue.description_original_bytes':_0x1e32dc[_0x3a3e4e(0x15e)][_0x3a3e4e(0x18e)],'issue.description_truncated':_0x1e32dc[_0x3a3e4e(0x15e)][_0x3a3e4e(0x17b)],'issue.description_redactions':_0x1e32dc['sanitize'][_0x3a3e4e(0x155)],'issue.description_redaction_kinds':_0x1e32dc[_0x3a3e4e(0x15e)][_0x3a3e4e(0x164)][_0x3a3e4e(0x184)](',')}},'description':[_0x3a3e4e(0x171),_0x3a3e4e(0x16e)+_0x1e32dc[_0x3a3e4e(0x169)],_0x1e32dc['descriptionFilePath']?_0x3a3e4e(0x153)+_0x1e32dc[_0x3a3e4e(0x158)]:null,_0x1e32dc[_0x3a3e4e(0x15e)][_0x3a3e4e(0x17b)]?_0x3a3e4e(0x157)+_0x1e32dc[_0x3a3e4e(0x15e)][_0x3a3e4e(0x18e)]+_0x3a3e4e(0x18b):null,_0x1e32dc[_0x3a3e4e(0x15e)][_0x3a3e4e(0x155)]>0x0?_0x3a3e4e(0x16a)+_0x1e32dc[_0x3a3e4e(0x15e)][_0x3a3e4e(0x155)]+'\x20('+_0x1e32dc[_0x3a3e4e(0x15e)][_0x3a3e4e(0x164)]['join'](',\x20')+')':null]['filter'](Boolean)[_0x3a3e4e(0x184)]('\x0a')};},async 'execute'(_0x36201b){const _0x3aba47=a79_0x42aaee,_0x308664=await prepareIssueReport(_0x36201b);try{await sendPlatformIssueCollectLog({'title':_0x308664[_0x3aba47(0x17c)],'description':_0x308664['description'],'sanitize':{'originalBytes':_0x308664[_0x3aba47(0x15e)][_0x3aba47(0x18e)],'truncated':_0x308664[_0x3aba47(0x15e)][_0x3aba47(0x17b)],'redactionCount':_0x308664[_0x3aba47(0x15e)][_0x3aba47(0x155)],'redactionKinds':_0x308664[_0x3aba47(0x15e)][_0x3aba47(0x164)]}});}catch(_0x3fe5e0){throw CliErrors[_0x3aba47(0x17d)]('Failed\x20to\x20report\x20platform\x20issue:\x20'+(_0x3fe5e0 instanceof Error?_0x3fe5e0['message']:String(_0x3fe5e0)),_0x3aba47(0x156));}return{'ok':!![],'message':buildResultMessage(_0x308664[_0x3aba47(0x15e)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x3aba47(0x173),_0x3aba47(0x18c),'issue.description_original_bytes',_0x3aba47(0x17f),_0x3aba47(0x165),_0x3aba47(0x150)],'issue':{'title':_0x308664[_0x3aba47(0x17c)],'descriptionLength':_0x308664[_0x3aba47(0x168)]['length'],'descriptionSource':_0x308664[_0x3aba47(0x169)],..._0x308664[_0x3aba47(0x158)]?{'descriptionFile':_0x308664['descriptionFilePath']}:{},'sanitize':{'originalBytes':_0x308664['sanitize'][_0x3aba47(0x18e)],'truncated':_0x308664[_0x3aba47(0x15e)][_0x3aba47(0x17b)],'redactions':_0x308664['sanitize'][_0x3aba47(0x155)],'redactionKinds':_0x308664[_0x3aba47(0x15e)][_0x3aba47(0x164)]}}}};}};function buildResultMessage(_0x13392d){const _0x22c64b=a79_0x42aaee,_0x1d1e54=[];return _0x13392d[_0x22c64b(0x17b)]&&_0x1d1e54[_0x22c64b(0x188)](_0x22c64b(0x152)+_0x13392d[_0x22c64b(0x18e)]+_0x22c64b(0x18b)),_0x13392d[_0x22c64b(0x155)]>0x0&&_0x1d1e54['push']('redacted\x20'+_0x13392d[_0x22c64b(0x155)]+_0x22c64b(0x17e)+_0x13392d[_0x22c64b(0x164)][_0x22c64b(0x184)](',\x20')),_0x1d1e54[_0x22c64b(0x176)]===0x0?_0x22c64b(0x166):'Platform\x20issue\x20reported\x20('+_0x1d1e54[_0x22c64b(0x184)](';\x20')+')';}async function prepareIssueReport(_0x6357b0){const _0x19e861=a79_0x42aaee,_0x1cbeb4=_0x6357b0[_0x19e861(0x181)](_0x19e861(0x17c))[_0x19e861(0x15b)](),_0x40e46d=_0x6357b0[_0x19e861(0x181)](_0x19e861(0x168)),_0x46a720=_0x6357b0[_0x19e861(0x181)](DESCRIPTION_FILE_FLAG)[_0x19e861(0x15b)]();if(!_0x46a720){const _0x220304=_0x40e46d;if(!_0x220304['trim']())throw CliErrors[_0x19e861(0x17a)](_0x19e861(0x177),'Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');const _0x36d72d=sanitizeIssueDescription(_0x220304);return{'title':_0x1cbeb4,'description':_0x36d72d[_0x19e861(0x168)],'descriptionSource':_0x19e861(0x154),'sanitize':_0x36d72d};}const _0x546708=resolve(process[_0x19e861(0x167)](),_0x46a720),_0xc4d98b=await readFile(_0x546708,_0x19e861(0x175));if(!_0xc4d98b[_0x19e861(0x15b)]())throw CliErrors[_0x19e861(0x17a)](_0x19e861(0x172)+_0x546708,_0x19e861(0x161));const _0x912846=sanitizeIssueDescription(_0xc4d98b);return{'title':_0x1cbeb4,'description':_0x912846['description'],'descriptionSource':_0x19e861(0x18f),'descriptionFilePath':_0x546708,'sanitize':_0x912846};}
@@ -1 +1 @@
1
- function a80_0xf01f(){const _0x1be4d9=['max','467845ibQqkh','toString','includes','566193oxOAGz','8199080VvWUIP','REDACTED:private-key','byteLength','REDACTED:access-key','authorization','REDACTED:cookie','20754YjIOtz','access-key','bearer-jwt','1791dOByQG','4boNjIO','string','REDACTED:authorization','7CgFgBI','3867030sQZFcj','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','replace','utf8','from','label','password','push','33008ZljSgK','kind','subarray','201875eXQKef','private-key'];a80_0xf01f=function(){return _0x1be4d9;};return a80_0xf01f();}const a80_0x5662ee=a80_0x5321;(function(_0x3ae8ee,_0x3d7234){const _0xf30344=a80_0x5321,_0xe8835c=_0x3ae8ee();while(!![]){try{const _0x44ab81=-parseInt(_0xf30344(0x8e))/0x1*(-parseInt(_0xf30344(0x87))/0x2)+parseInt(_0xf30344(0x80))/0x3*(-parseInt(_0xf30344(0x8b))/0x4)+-parseInt(_0xf30344(0x7a))/0x5+parseInt(_0xf30344(0x8f))/0x6+-parseInt(_0xf30344(0x7d))/0x7+parseInt(_0xf30344(0x77))/0x8*(-parseInt(_0xf30344(0x8a))/0x9)+parseInt(_0xf30344(0x81))/0xa;if(_0x44ab81===_0x3d7234)break;else _0xe8835c['push'](_0xe8835c['shift']());}catch(_0xf8177b){_0xe8835c['push'](_0xe8835c['shift']());}}}(a80_0xf01f,0x668c5));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a80_0x5662ee(0x90),REDACTION_RULES=[{'kind':'cookie','pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a80_0x5662ee(0x86)},{'kind':a80_0x5662ee(0x85),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a80_0x5662ee(0x8d)},{'kind':a80_0x5662ee(0x7b),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a80_0x5662ee(0x82)},{'kind':a80_0x5662ee(0x88),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a80_0x5662ee(0x84)},{'kind':a80_0x5662ee(0x75),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':a80_0x5662ee(0x89),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':'REDACTED:bearer-jwt'}];export function sanitizeIssueDescription(_0x94754c){const _0x1e6ad3=a80_0x5662ee,_0x1f0c5b=Buffer[_0x1e6ad3(0x83)](_0x94754c,_0x1e6ad3(0x72)),_0xeb6b5c=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x2ebb97=_0x94754c,_0x3e8c44=0x0;const _0x1932a2=[];if(!_0xeb6b5c)for(const _0x557b70 of REDACTION_RULES){let _0x593db7=0x0;_0x2ebb97=_0x2ebb97[_0x1e6ad3(0x91)](_0x557b70['pattern'],(_0x30fecf,_0x2c5758)=>{const _0x2fff2d=_0x1e6ad3;_0x593db7+=0x1;const _0x1313c7=typeof _0x2c5758===_0x2fff2d(0x8c)?_0x2c5758:'';return _0x1313c7+'['+_0x557b70[_0x2fff2d(0x74)]+']';}),_0x593db7>0x0&&(_0x3e8c44+=_0x593db7,!_0x1932a2[_0x1e6ad3(0x7f)](_0x557b70[_0x1e6ad3(0x78)])&&_0x1932a2[_0x1e6ad3(0x76)](_0x557b70[_0x1e6ad3(0x78)]));}let _0x102a8d=![];if(Buffer[_0x1e6ad3(0x83)](_0x2ebb97,_0x1e6ad3(0x72))>ISSUE_DESCRIPTION_MAX_BYTES){_0x102a8d=!![];const _0x3a436a=Buffer[_0x1e6ad3(0x83)](TRUNCATION_NOTICE,'utf8'),_0x3e142d=Math[_0x1e6ad3(0x7c)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x3a436a);_0x2ebb97=sliceUtf8Bytes(_0x2ebb97,_0x3e142d)+TRUNCATION_NOTICE;}return{'description':_0x2ebb97,'originalBytes':_0x1f0c5b,'truncated':_0x102a8d,'redactionCount':_0x3e8c44,'redactionKinds':_0x1932a2};}function a80_0x5321(_0x38aeb3,_0x2c2e12){_0x38aeb3=_0x38aeb3-0x72;const _0xf01fe0=a80_0xf01f();let _0x5321a7=_0xf01fe0[_0x38aeb3];return _0x5321a7;}function sliceUtf8Bytes(_0x1dcc86,_0x58ed11){const _0x21e408=a80_0x5662ee;if(_0x58ed11<=0x0)return'';const _0x36dfa7=Buffer[_0x21e408(0x73)](_0x1dcc86,'utf8');if(_0x36dfa7[_0x21e408(0x83)]<=_0x58ed11)return _0x1dcc86;let _0x2ab5f3=_0x58ed11;while(_0x2ab5f3>0x0){const _0xa4cb71=_0x36dfa7[_0x2ab5f3];if(_0xa4cb71===undefined||(_0xa4cb71&0xc0)!==0x80)break;_0x2ab5f3-=0x1;}return _0x36dfa7[_0x21e408(0x79)](0x0,_0x2ab5f3)[_0x21e408(0x7e)](_0x21e408(0x72));}
1
+ const a80_0x12f686=a80_0x61d4;(function(_0x4552ec,_0x5b65db){const _0x368d0d=a80_0x61d4,_0x2597df=_0x4552ec();while(!![]){try{const _0x3fbd73=-parseInt(_0x368d0d(0xfb))/0x1*(-parseInt(_0x368d0d(0xf9))/0x2)+parseInt(_0x368d0d(0xee))/0x3*(parseInt(_0x368d0d(0x106))/0x4)+-parseInt(_0x368d0d(0x107))/0x5+-parseInt(_0x368d0d(0xfd))/0x6*(parseInt(_0x368d0d(0xf8))/0x7)+-parseInt(_0x368d0d(0x100))/0x8+-parseInt(_0x368d0d(0xf1))/0x9+parseInt(_0x368d0d(0x101))/0xa;if(_0x3fbd73===_0x5b65db)break;else _0x2597df['push'](_0x2597df['shift']());}catch(_0x3c3500){_0x2597df['push'](_0x2597df['shift']());}}}(a80_0x54ac,0x237a1));function a80_0x54ac(){const _0x3de29c=['utf8','kind','authorization','8lECXJO','498165BPpOXZ','toString','byteLength','REDACTED:cookie','253317IVkSmR','cookie','push','335565vJxTji','subarray','bearer-jwt','REDACTED:access-key','pattern','password','REDACTED:private-key','70bDCOjU','88962yUzfFQ','private-key','3tMeTRk','from','19452Anzyhb','REDACTED:password','label','1548736pDnTcv','2059220qjIBhI','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]'];a80_0x54ac=function(){return _0x3de29c;};return a80_0x54ac();}export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;function a80_0x61d4(_0x61f69,_0x2be14e){_0x61f69=_0x61f69-0xeb;const _0x54acb2=a80_0x54ac();let _0x61d468=_0x54acb2[_0x61f69];return _0x61d468;}const TRUNCATION_NOTICE=a80_0x12f686(0x102),REDACTION_RULES=[{'kind':a80_0x12f686(0xef),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a80_0x12f686(0xed)},{'kind':a80_0x12f686(0x105),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':a80_0x12f686(0xfa),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a80_0x12f686(0xf7)},{'kind':'access-key','pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a80_0x12f686(0xf4)},{'kind':a80_0x12f686(0xf6),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a80_0x12f686(0xfe)},{'kind':a80_0x12f686(0xf3),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':'REDACTED:bearer-jwt'}];export function sanitizeIssueDescription(_0x47d5b9){const _0x5bc0f0=a80_0x12f686,_0x5bab6d=Buffer[_0x5bc0f0(0xec)](_0x47d5b9,'utf8'),_0x4bbfda=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x3595bd=_0x47d5b9,_0x148773=0x0;const _0x3e985f=[];if(!_0x4bbfda)for(const _0x1bea30 of REDACTION_RULES){let _0x4715d5=0x0;_0x3595bd=_0x3595bd['replace'](_0x1bea30[_0x5bc0f0(0xf5)],(_0x4279bf,_0x5488d2)=>{const _0x2c353d=_0x5bc0f0;_0x4715d5+=0x1;const _0x4d532c=typeof _0x5488d2==='string'?_0x5488d2:'';return _0x4d532c+'['+_0x1bea30[_0x2c353d(0xff)]+']';}),_0x4715d5>0x0&&(_0x148773+=_0x4715d5,!_0x3e985f['includes'](_0x1bea30[_0x5bc0f0(0x104)])&&_0x3e985f[_0x5bc0f0(0xf0)](_0x1bea30[_0x5bc0f0(0x104)]));}let _0x4c0acd=![];if(Buffer[_0x5bc0f0(0xec)](_0x3595bd,'utf8')>ISSUE_DESCRIPTION_MAX_BYTES){_0x4c0acd=!![];const _0x200ebd=Buffer[_0x5bc0f0(0xec)](TRUNCATION_NOTICE,_0x5bc0f0(0x103)),_0x5c84f7=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x200ebd);_0x3595bd=sliceUtf8Bytes(_0x3595bd,_0x5c84f7)+TRUNCATION_NOTICE;}return{'description':_0x3595bd,'originalBytes':_0x5bab6d,'truncated':_0x4c0acd,'redactionCount':_0x148773,'redactionKinds':_0x3e985f};}function sliceUtf8Bytes(_0x8fa543,_0x383bc3){const _0x4915ca=a80_0x12f686;if(_0x383bc3<=0x0)return'';const _0x44f0d9=Buffer[_0x4915ca(0xfc)](_0x8fa543,_0x4915ca(0x103));if(_0x44f0d9[_0x4915ca(0xec)]<=_0x383bc3)return _0x8fa543;let _0x2c9c0b=_0x383bc3;while(_0x2c9c0b>0x0){const _0xa9dae9=_0x44f0d9[_0x2c9c0b];if(_0xa9dae9===undefined||(_0xa9dae9&0xc0)!==0x80)break;_0x2c9c0b-=0x1;}return _0x44f0d9[_0x4915ca(0xf2)](0x0,_0x2c9c0b)[_0x4915ca(0xeb)](_0x4915ca(0x103));}
@@ -1 +1 @@
1
- const a81_0x5acf5c=a81_0x27e8;function a81_0x27e8(_0x2c6d8d,_0x34df17){_0x2c6d8d=_0x2c6d8d-0x1b9;const _0x3784b2=a81_0x3784();let _0x27e833=_0x3784b2[_0x2c6d8d];return _0x27e833;}(function(_0x400cbe,_0x5ca2ee){const _0x26a3ac=a81_0x27e8,_0xb5255c=_0x400cbe();while(!![]){try{const _0x465944=-parseInt(_0x26a3ac(0x1cf))/0x1+-parseInt(_0x26a3ac(0x1d5))/0x2+parseInt(_0x26a3ac(0x1c6))/0x3+-parseInt(_0x26a3ac(0x1c1))/0x4+parseInt(_0x26a3ac(0x1d4))/0x5*(parseInt(_0x26a3ac(0x1d6))/0x6)+-parseInt(_0x26a3ac(0x1bb))/0x7*(parseInt(_0x26a3ac(0x1c8))/0x8)+parseInt(_0x26a3ac(0x1d3))/0x9*(parseInt(_0x26a3ac(0x1ce))/0xa);if(_0x465944===_0x5ca2ee)break;else _0xb5255c['push'](_0xb5255c['shift']());}catch(_0x58ca83){_0xb5255c['push'](_0xb5255c['shift']());}}}(a81_0x3784,0x76755));function a81_0x3784(){const _0x18d3b6=['keys','*\x20No\x20logs\x20found','1313568QdEOoM','command','error','warn','toLocaleString','1563969Gzgfek','Clear\x20command\x20history\x20logs','8ZBOIQw','en-US','length','logs','timestamp','write','10zhFjIz','383091AjljtA','View\x20command\x20history\x20logs','details','*\x20Logs\x20cleared','18645579sgAovz','789785BpzIVF','1859088woESvg','18PmbKaK','log','\x20\x20\x20Details:\x20','duration','\x20\x20\x20Time:\x20','\x20\x20\x20Duration:\x20','6584851ZLizRn','level','show','clear'];a81_0x3784=function(){return _0x18d3b6;};return a81_0x3784();}import{logger}from'../../utils/logger.js';function printLogs(_0x15e811){const _0x1e46c1=a81_0x27e8;if(_0x15e811[_0x1e46c1(0x1ca)]===0x0){console[_0x1e46c1(0x1d7)](_0x1e46c1(0x1c0));return;}console[_0x1e46c1(0x1d7)]('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0x15e811['forEach']((_0x5764b3,_0x195126)=>{const _0x1cf4f7=_0x1e46c1,_0x202abb=new Date(_0x5764b3[_0x1cf4f7(0x1cc)])[_0x1cf4f7(0x1c5)](_0x1cf4f7(0x1c9)),_0x23348a=_0x5764b3[_0x1cf4f7(0x1bc)]==='success'?'√':_0x5764b3['level']===_0x1cf4f7(0x1c3)?'×':_0x5764b3['level']===_0x1cf4f7(0x1c4)?'!':'i';console[_0x1cf4f7(0x1d7)](_0x195126+0x1+'.\x20'+_0x23348a+'\x20['+_0x5764b3[_0x1cf4f7(0x1c2)]+']\x20'+_0x5764b3['message']),console['log'](_0x1cf4f7(0x1b9)+_0x202abb),_0x5764b3[_0x1cf4f7(0x1d9)]&&console[_0x1cf4f7(0x1d7)](_0x1cf4f7(0x1ba)+_0x5764b3[_0x1cf4f7(0x1d9)]+'ms'),_0x5764b3[_0x1cf4f7(0x1d1)]&&Object[_0x1cf4f7(0x1bf)](_0x5764b3[_0x1cf4f7(0x1d1)])[_0x1cf4f7(0x1ca)]>0x0&&console[_0x1cf4f7(0x1d7)](_0x1cf4f7(0x1d8)+JSON['stringify'](_0x5764b3[_0x1cf4f7(0x1d1)],null,0x2)),console['log']('');});}export const logsDefinitions=[{'service':a81_0x5acf5c(0x1cb),'command':a81_0x5acf5c(0x1bd),'description':a81_0x5acf5c(0x1d0),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x3f0e5f){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':'logs','command':a81_0x5acf5c(0x1be),'description':a81_0x5acf5c(0x1c7),'risk':a81_0x5acf5c(0x1cd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4b9d46){const _0x67f422=a81_0x5acf5c;return logger['clearLogs'](),console['log'](_0x67f422(0x1d2)),{'ok':!![]};}}];
1
+ const a81_0x20259a=a81_0x5dd6;(function(_0x5f41a5,_0x355a30){const _0x34d342=a81_0x5dd6,_0x5dbea7=_0x5f41a5();while(!![]){try{const _0x574d97=parseInt(_0x34d342(0x159))/0x1+-parseInt(_0x34d342(0x156))/0x2+parseInt(_0x34d342(0x153))/0x3*(parseInt(_0x34d342(0x151))/0x4)+parseInt(_0x34d342(0x166))/0x5+parseInt(_0x34d342(0x168))/0x6+-parseInt(_0x34d342(0x164))/0x7+-parseInt(_0x34d342(0x14a))/0x8;if(_0x574d97===_0x355a30)break;else _0x5dbea7['push'](_0x5dbea7['shift']());}catch(_0x61f6bf){_0x5dbea7['push'](_0x5dbea7['shift']());}}}(a81_0x3181,0x36011));import{logger}from'../../utils/logger.js';function a81_0x5dd6(_0x432211,_0x36a23a){_0x432211=_0x432211-0x147;const _0x3181f7=a81_0x3181();let _0x5dd6ef=_0x3181f7[_0x432211];return _0x5dd6ef;}function a81_0x3181(){const _0xcf70db=['read','details','*\x20Lovrabet\x20CLI\x20logs:\x0a','4emUROh','length','335226ixkSdr','Clear\x20command\x20history\x20logs','en-US','193500xDsaIX','log','success','247720LUOiZz','error','logs','warn','keys','timestamp','\x20\x20\x20Time:\x20','duration','command','level','*\x20Logs\x20cleared','373828INjZoW','\x20\x20\x20Details:\x20','1918305amCOmL','toLocaleString','1767678iCuzkO','\x20\x20\x20Duration:\x20','*\x20No\x20logs\x20found','readLogs','5331048jiedWd','message','View\x20command\x20history\x20logs','show'];a81_0x3181=function(){return _0xcf70db;};return a81_0x3181();}function printLogs(_0x434cc5){const _0x1ac5b5=a81_0x5dd6;if(_0x434cc5[_0x1ac5b5(0x152)]===0x0){console[_0x1ac5b5(0x157)](_0x1ac5b5(0x148));return;}console[_0x1ac5b5(0x157)](_0x1ac5b5(0x150)),_0x434cc5['forEach']((_0x5b8721,_0x39c36a)=>{const _0x45998b=_0x1ac5b5,_0x54775e=new Date(_0x5b8721[_0x45998b(0x15e)])[_0x45998b(0x167)](_0x45998b(0x155)),_0x2774d3=_0x5b8721[_0x45998b(0x162)]===_0x45998b(0x158)?'√':_0x5b8721['level']===_0x45998b(0x15a)?'×':_0x5b8721[_0x45998b(0x162)]===_0x45998b(0x15c)?'!':'i';console[_0x45998b(0x157)](_0x39c36a+0x1+'.\x20'+_0x2774d3+'\x20['+_0x5b8721[_0x45998b(0x161)]+']\x20'+_0x5b8721[_0x45998b(0x14b)]),console[_0x45998b(0x157)](_0x45998b(0x15f)+_0x54775e),_0x5b8721[_0x45998b(0x160)]&&console['log'](_0x45998b(0x147)+_0x5b8721[_0x45998b(0x160)]+'ms'),_0x5b8721['details']&&Object[_0x45998b(0x15d)](_0x5b8721[_0x45998b(0x14f)])[_0x45998b(0x152)]>0x0&&console['log'](_0x45998b(0x165)+JSON['stringify'](_0x5b8721['details'],null,0x2)),console['log']('');});}export const logsDefinitions=[{'service':a81_0x20259a(0x15b),'command':a81_0x20259a(0x14d),'description':a81_0x20259a(0x14c),'risk':a81_0x20259a(0x14e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4e6818){const _0x368743=a81_0x20259a;return printLogs(logger[_0x368743(0x149)]()),{'ok':!![]};}},{'service':a81_0x20259a(0x15b),'command':'clear','description':a81_0x20259a(0x154),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x233751){const _0x39c919=a81_0x20259a;return logger['clearLogs'](),console[_0x39c919(0x157)](_0x39c919(0x163)),{'ok':!![]};}}];