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

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 (218) 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/app-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.js +1 -0
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/flags.js +1 -1
  48. package/lib/commands/common/validate.js +1 -1
  49. package/lib/commands/config/get.js +1 -1
  50. package/lib/commands/config/index.js +1 -1
  51. package/lib/commands/config/list.js +1 -1
  52. package/lib/commands/config/set.js +1 -1
  53. package/lib/commands/config/shared.js +1 -1
  54. package/lib/commands/data/filter.js +1 -1
  55. package/lib/commands/data/getOne.js +1 -1
  56. package/lib/commands/data/index.js +1 -1
  57. package/lib/commands/data/shared.js +1 -1
  58. package/lib/commands/dataset/business-group-update.js +1 -1
  59. package/lib/commands/dataset/capability.js +1 -1
  60. package/lib/commands/dataset/delete.js +1 -1
  61. package/lib/commands/dataset/detail.js +1 -1
  62. package/lib/commands/dataset/extend-update.js +1 -1
  63. package/lib/commands/dataset/field-update.js +1 -1
  64. package/lib/commands/dataset/index.js +1 -1
  65. package/lib/commands/dataset/list.js +1 -1
  66. package/lib/commands/dataset/operations.js +1 -1
  67. package/lib/commands/dataset/relation-create.js +1 -1
  68. package/lib/commands/dataset/relation-delete.js +1 -1
  69. package/lib/commands/dataset/relation-shared.js +1 -1
  70. package/lib/commands/dataset/relation-update.js +1 -1
  71. package/lib/commands/dataset/relations.js +1 -1
  72. package/lib/commands/dataset/rename.js +1 -1
  73. package/lib/commands/dataset/restore.js +1 -1
  74. package/lib/commands/db/analyze-cancel.js +1 -1
  75. package/lib/commands/db/analyze-start.js +1 -1
  76. package/lib/commands/db/analyze-status.js +1 -1
  77. package/lib/commands/db/create.js +1 -1
  78. package/lib/commands/db/delete.js +1 -1
  79. package/lib/commands/db/detail.js +1 -1
  80. package/lib/commands/db/diff.js +1 -1
  81. package/lib/commands/db/index.js +1 -1
  82. package/lib/commands/db/list.js +1 -1
  83. package/lib/commands/db/shared.js +1 -1
  84. package/lib/commands/db/tables.js +1 -1
  85. package/lib/commands/db/test.js +1 -1
  86. package/lib/commands/db/update.js +1 -1
  87. package/lib/commands/doctor.js +1 -1
  88. package/lib/commands/init/index.js +1 -1
  89. package/lib/commands/issue/index.js +1 -1
  90. package/lib/commands/issue/nudge.js +1 -1
  91. package/lib/commands/issue/report.js +1 -1
  92. package/lib/commands/issue/shared.js +1 -1
  93. package/lib/commands/logs/index.js +1 -1
  94. package/lib/commands/menu/index.js +1 -1
  95. package/lib/commands/menu/list.js +1 -1
  96. package/lib/commands/menu/shared/compare-table.js +1 -1
  97. package/lib/commands/menu/shared/index.js +1 -1
  98. package/lib/commands/menu/shared/inquirer.js +1 -1
  99. package/lib/commands/menu/shared/local-pages.js +1 -1
  100. package/lib/commands/menu/shared/logic.js +1 -1
  101. package/lib/commands/menu/shared/service.js +1 -1
  102. package/lib/commands/menu/shared/sync-core.js +1 -1
  103. package/lib/commands/menu/shared/update-core.js +1 -1
  104. package/lib/commands/menu/shared/valid-url.js +1 -1
  105. package/lib/commands/menu/sync.js +1 -1
  106. package/lib/commands/menu/update.js +1 -1
  107. package/lib/commands/page/generate-start.js +1 -1
  108. package/lib/commands/page/generate-status.js +1 -1
  109. package/lib/commands/page/index.js +1 -1
  110. package/lib/commands/page/pull.js +1 -1
  111. package/lib/commands/page/push.js +1 -1
  112. package/lib/commands/page/relation-audit.js +1 -1
  113. package/lib/commands/page/shared.js +1 -1
  114. package/lib/commands/page/standard-page-status.js +1 -1
  115. package/lib/commands/page/sync.js +1 -1
  116. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  117. package/lib/commands/project/create/format-elapsed.js +1 -1
  118. package/lib/commands/project/create/main.js +1 -1
  119. package/lib/commands/project/create/non-interactive.js +1 -1
  120. package/lib/commands/project/create/project-template-path.js +1 -1
  121. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  122. package/lib/commands/project/create/use-format-code.js +1 -1
  123. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  124. package/lib/commands/project/index.js +1 -1
  125. package/lib/commands/project/init.js +1 -1
  126. package/lib/commands/project/upgrade.js +1 -1
  127. package/lib/commands/registry.js +1 -1
  128. package/lib/commands/run/index.js +1 -1
  129. package/lib/commands/schema.js +1 -1
  130. package/lib/commands/sql/create.js +1 -1
  131. package/lib/commands/sql/delete.js +1 -1
  132. package/lib/commands/sql/detail.js +1 -1
  133. package/lib/commands/sql/exec.js +1 -1
  134. package/lib/commands/sql/index.js +1 -1
  135. package/lib/commands/sql/list.js +1 -1
  136. package/lib/commands/sql/pull.js +1 -1
  137. package/lib/commands/sql/push.js +1 -1
  138. package/lib/commands/sql/save.js +1 -1
  139. package/lib/commands/sql/shared.js +1 -1
  140. package/lib/commands/sql/status.js +1 -1
  141. package/lib/commands/sql/validate.js +1 -1
  142. package/lib/commands/workspace/index.js +1 -1
  143. package/lib/config/schema.js +1 -1
  144. package/lib/constant/cdn.js +1 -1
  145. package/lib/constant/cli.js +1 -1
  146. package/lib/constant/defaults.js +1 -1
  147. package/lib/constant/domain.js +1 -1
  148. package/lib/constant/env.js +1 -1
  149. package/lib/constant/output.js +1 -1
  150. package/lib/constant/paths.js +1 -1
  151. package/lib/constant/risk.js +1 -1
  152. package/lib/context/app-resolver.js +1 -1
  153. package/lib/context/auth-resolver.js +1 -1
  154. package/lib/context/config-loader.js +1 -1
  155. package/lib/context.js +1 -1
  156. package/lib/core/alias-resolver.js +1 -1
  157. package/lib/core/api-client.js +1 -1
  158. package/lib/core/bff/config.js +1 -1
  159. package/lib/core/bff/file-system.js +1 -1
  160. package/lib/core/bff/hash.js +1 -1
  161. package/lib/core/bff/lock.js +1 -1
  162. package/lib/core/bff/utils.js +1 -1
  163. package/lib/core/db-resolver.js +1 -1
  164. package/lib/core/page/file-system.js +1 -1
  165. package/lib/core/page/hash.js +1 -1
  166. package/lib/core/page/lock.js +1 -1
  167. package/lib/core/sql-sync/config.js +1 -1
  168. package/lib/core/sql-sync/file-system.js +1 -1
  169. package/lib/core/sql-sync/hash.js +1 -1
  170. package/lib/core/sql-sync/lock.js +1 -1
  171. package/lib/core/sql-sync/utils.js +1 -1
  172. package/lib/core/sql-validator.js +1 -1
  173. package/lib/errors.js +1 -1
  174. package/lib/framework/build-all-flags.js +1 -1
  175. package/lib/framework/flags.js +1 -1
  176. package/lib/framework/help.js +1 -1
  177. package/lib/framework/index.js +1 -1
  178. package/lib/framework/output.js +1 -1
  179. package/lib/framework/response.js +1 -1
  180. package/lib/framework/runner-alias.js +1 -1
  181. package/lib/framework/runner.js +1 -1
  182. package/lib/framework/schema-export.js +1 -1
  183. package/lib/framework/types.js +1 -1
  184. package/lib/generated/build-info.js +1 -1
  185. package/lib/help.js +1 -1
  186. package/lib/skills/main.js +1 -1
  187. package/lib/skills/npx-skills-add.js +1 -1
  188. package/lib/telemetry/cli-command-trace.js +1 -1
  189. package/lib/telemetry/cli-help-trace.js +1 -1
  190. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  191. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  192. package/lib/telemetry/send-cli-trace-log.js +1 -1
  193. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  194. package/lib/utils/ai_config.js +1 -1
  195. package/lib/utils/apply-jq-filter.js +1 -1
  196. package/lib/utils/cdn-config.js +1 -1
  197. package/lib/utils/check-sdk-version.js +1 -1
  198. package/lib/utils/cli-version-check.js +1 -1
  199. package/lib/utils/cli-version-policy.js +1 -1
  200. package/lib/utils/config.js +1 -1
  201. package/lib/utils/copy-directory.js +1 -1
  202. package/lib/utils/entity-with-id.js +1 -1
  203. package/lib/utils/file-utils.js +1 -1
  204. package/lib/utils/guides-cdn.js +1 -1
  205. package/lib/utils/http-client.js +1 -1
  206. package/lib/utils/is-non-interactive.js +1 -1
  207. package/lib/utils/logger.js +1 -1
  208. package/lib/utils/params.js +1 -1
  209. package/lib/utils/platform.js +1 -1
  210. package/lib/utils/rules-cdn.js +1 -1
  211. package/lib/utils/sleep.js +1 -1
  212. package/lib/utils/template-replacer.js +1 -1
  213. package/lib/utils/update-notice.js +1 -1
  214. package/lib/utils/version.js +1 -1
  215. package/lib/utils/with-active-cookie.js +1 -1
  216. package/lib/utils/write-cli-side-channel.js +1 -1
  217. package/package.json +1 -1
  218. package/lib/commands/skill/index.js +0 -1
@@ -1 +1 @@
1
- function a75_0x103f(_0x2ce739,_0xd1bc8a){_0x2ce739=_0x2ce739-0x11c;const _0x416f0a=a75_0x416f();let _0x103ffd=_0x416f0a[_0x2ce739];return _0x103ffd;}const a75_0x2f5ae2=a75_0x103f;(function(_0x4865ea,_0xa30936){const _0x57ba78=a75_0x103f,_0x246d1d=_0x4865ea();while(!![]){try{const _0x49751f=parseInt(_0x57ba78(0x138))/0x1*(-parseInt(_0x57ba78(0x13d))/0x2)+-parseInt(_0x57ba78(0x129))/0x3*(-parseInt(_0x57ba78(0x122))/0x4)+-parseInt(_0x57ba78(0x127))/0x5+parseInt(_0x57ba78(0x145))/0x6*(-parseInt(_0x57ba78(0x136))/0x7)+parseInt(_0x57ba78(0x125))/0x8+parseInt(_0x57ba78(0x12e))/0x9*(parseInt(_0x57ba78(0x146))/0xa)+parseInt(_0x57ba78(0x13a))/0xb*(parseInt(_0x57ba78(0x130))/0xc);if(_0x49751f===_0xa30936)break;else _0x246d1d['push'](_0x246d1d['shift']());}catch(_0x22f6c0){_0x246d1d['push'](_0x246d1d['shift']());}}}(a75_0x416f,0xeab42));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';function a75_0x416f(){const _0x424ad5=[';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','trim','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','8NGytmo','\x20and\x20started\x20analysis','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','7166328TWbygJ','dbname','8845960LBjCUW','Create\x20dblink','589287FfePRQ','dbparam','create','bool','Created\x20db\x20link\x20','35487sddPWn','str','431592RrUIBs','No\x20follow-up\x20analysis','message','POST','password','dbdesc','18011fYLvpY','Host\x20and\x20port:\x20host:port','124204EPVfRy','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','616kDLZcN','join','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','10KNBJJv','8.0','boolean','autostart','appCode','/smartapi/dblink/create','dbtype','[redacted]','1578NrZPFf','1840KDtiwY','dburl','validation','string','dbversion','username'];a75_0x416f=function(){return _0x424ad5;};return a75_0x416f();}import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':a75_0x2f5ae2(0x12b),'description':a75_0x2f5ae2(0x121),'risk':'write','flags':[APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a75_0x2f5ae2(0x149),'required':!![],'description':a75_0x2f5ae2(0x139)},DB_TYPE_FLAG,{'name':a75_0x2f5ae2(0x11c),'type':'string','description':'Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','default':a75_0x2f5ae2(0x13e)},{'name':'dburl','type':a75_0x2f5ae2(0x149),'required':!![],'description':a75_0x2f5ae2(0x137)},{'name':a75_0x2f5ae2(0x11d),'type':a75_0x2f5ae2(0x149),'required':!![],'description':'Database\x20username'},{'name':a75_0x2f5ae2(0x134),'type':a75_0x2f5ae2(0x149),'required':!![],'description':'Database\x20password'},{'name':a75_0x2f5ae2(0x12a),'type':'string','description':'Extra\x20JDBC-style\x20connection\x20parameters\x20string'},{'name':a75_0x2f5ae2(0x135),'type':'string','description':'Human-readable\x20description'},{'name':a75_0x2f5ae2(0x140),'type':a75_0x2f5ae2(0x13f),'description':'After\x20create,\x20start\x20schema\x20analysis','default':![]}],async 'validate'(_0x282306){const _0x14f70e=a75_0x2f5ae2,_0x22ed2b=_0x282306['str'](_0x14f70e(0x147))[_0x14f70e(0x11f)]();if(!validateDbUrl(_0x22ed2b))throw CliErrors[_0x14f70e(0x148)](_0x14f70e(0x13c)+_0x22ed2b+'\x22',_0x14f70e(0x120));},async 'dryRun'(_0x31c72b){const _0x430ab2=a75_0x2f5ae2,_0x19906c={'appCode':_0x31c72b[_0x430ab2(0x141)],'dbName':_0x31c72b[_0x430ab2(0x12f)]('dbname'),'dbType':_0x31c72b['str'](_0x430ab2(0x143)),'dbVersion':_0x31c72b['str']('dbversion')||_0x430ab2(0x13e),'dbUrl':_0x31c72b[_0x430ab2(0x12f)]('dburl')[_0x430ab2(0x11f)](),'username':_0x31c72b[_0x430ab2(0x12f)](_0x430ab2(0x11d)),'password':_0x430ab2(0x144),..._0x31c72b[_0x430ab2(0x12f)]('dbparam')?{'dbParam':_0x31c72b[_0x430ab2(0x12f)](_0x430ab2(0x12a))}:{},..._0x31c72b['str'](_0x430ab2(0x135))?{'dbDesc':_0x31c72b['str'](_0x430ab2(0x135))}:{}};return{'method':_0x430ab2(0x133),'url':_0x430ab2(0x142),'body':_0x19906c,'description':[_0x430ab2(0x128),_0x31c72b[_0x430ab2(0x12c)](_0x430ab2(0x140))?_0x430ab2(0x124):_0x430ab2(0x131)][_0x430ab2(0x13b)]('\x0a')};},async 'execute'(_0x2f5683){const _0x2e3d35=a75_0x2f5ae2,_0x4cca72={'appCode':_0x2f5683[_0x2e3d35(0x141)],'dbName':_0x2f5683['str'](_0x2e3d35(0x126)),'dbType':_0x2f5683[_0x2e3d35(0x12f)]('dbtype'),'dbVersion':_0x2f5683[_0x2e3d35(0x12f)](_0x2e3d35(0x11c))||_0x2e3d35(0x13e),'dbUrl':_0x2f5683[_0x2e3d35(0x12f)](_0x2e3d35(0x147))[_0x2e3d35(0x11f)](),'username':_0x2f5683[_0x2e3d35(0x12f)](_0x2e3d35(0x11d)),'password':_0x2f5683[_0x2e3d35(0x12f)](_0x2e3d35(0x134)),..._0x2f5683[_0x2e3d35(0x12f)](_0x2e3d35(0x12a))?{'dbParam':_0x2f5683[_0x2e3d35(0x12f)](_0x2e3d35(0x12a))}:{},..._0x2f5683[_0x2e3d35(0x12f)](_0x2e3d35(0x135))?{'dbDesc':_0x2f5683[_0x2e3d35(0x12f)](_0x2e3d35(0x135))}:{}},{id:_0x51b79d,entity:_0x4ea5e6}=normalizeEntityWithIdResponse(await createDbLink(_0x4cca72));if(!_0x51b79d)return{'ok':![],'message':'Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','data':sanitizeDbLinkForOutput(_0x4ea5e6)};let _0x1b912e,_0x1de58d;if(_0x2f5683['bool'](_0x2e3d35(0x140)))try{_0x1b912e=await startDbAnalysis(_0x51b79d);}catch(_0x11c800){_0x1de58d=_0x11c800 instanceof Error?_0x11c800[_0x2e3d35(0x132)]:String(_0x11c800);}const _0x1bfda4=buildDbPageLinks(_0x2f5683[_0x2e3d35(0x141)],_0x51b79d),_0x21eda6={'connection':sanitizeDbLinkForOutput(_0x4ea5e6),..._0x1bfda4?{'links':{'databasePage':_0x1bfda4['databasePage']}}:{},..._0x1b912e?{'analysisPlanId':_0x1b912e}:{},..._0x1de58d?{'analysisStartWarning':_0x1de58d}:{}};let _0x522c38;return _0x2f5683[_0x2e3d35(0x12c)](_0x2e3d35(0x140))?_0x1de58d?_0x522c38=_0x2e3d35(0x12d)+_0x51b79d+_0x2e3d35(0x11e):_0x522c38=_0x2e3d35(0x12d)+_0x51b79d+_0x2e3d35(0x123):_0x522c38=_0x2e3d35(0x12d)+_0x51b79d,{'ok':!![],'data':_0x21eda6,'message':_0x522c38};}};
1
+ const a76_0x1541b7=a76_0x4d89;function a76_0x4d89(_0x217665,_0x28b208){_0x217665=_0x217665-0x161;const _0x2ca63e=a76_0x2ca6();let _0x4d8991=_0x2ca63e[_0x217665];return _0x4d8991;}(function(_0x4f6e7c,_0x5d16c6){const _0x3c25f3=a76_0x4d89,_0x247d68=_0x4f6e7c();while(!![]){try{const _0xc27a05=-parseInt(_0x3c25f3(0x178))/0x1*(-parseInt(_0x3c25f3(0x16d))/0x2)+-parseInt(_0x3c25f3(0x17c))/0x3*(-parseInt(_0x3c25f3(0x187))/0x4)+-parseInt(_0x3c25f3(0x169))/0x5+-parseInt(_0x3c25f3(0x177))/0x6*(-parseInt(_0x3c25f3(0x16c))/0x7)+-parseInt(_0x3c25f3(0x18a))/0x8*(-parseInt(_0x3c25f3(0x16a))/0x9)+-parseInt(_0x3c25f3(0x183))/0xa*(parseInt(_0x3c25f3(0x18e))/0xb)+parseInt(_0x3c25f3(0x182))/0xc;if(_0xc27a05===_0x5d16c6)break;else _0x247d68['push'](_0x247d68['shift']());}catch(_0x51059f){_0x247d68['push'](_0x247d68['shift']());}}}(a76_0x2ca6,0x276ba));function a76_0x2ca6(){const _0x7b676e=['36gmdGDA','dburl','7tIGFHD','1286kNPgTd','bool','trim','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','Host\x20and\x20port:\x20host:port','/smartapi/dblink/create','[redacted]','Human-readable\x20description','dbparam','create','1638162KLYQNk','23NYZVOb','No\x20follow-up\x20analysis','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','dbname','366207WmoQPh','appCode','password','\x20and\x20started\x20analysis','boolean','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','2054532ZKnaHV','34040knaHtD','Created\x20db\x20link\x20','Extra\x20JDBC-style\x20connection\x20parameters\x20string','write','4lxWNbe','username','str','25304iPttmc',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','string','After\x20create,\x20start\x20schema\x20analysis','495laulVR','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','8.0','message','databasePage','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','Create\x20dblink','dbtype','dbversion','dbdesc','1395510dwlqiA'];a76_0x2ca6=function(){return _0x7b676e;};return a76_0x2ca6();}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';export const dbCreate={'service':'db','command':a76_0x1541b7(0x176),'description':a76_0x1541b7(0x181),'risk':a76_0x1541b7(0x186),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a76_0x1541b7(0x18c),'required':!![],'description':a76_0x1541b7(0x18f)},DB_TYPE_FLAG,{'name':'dbversion','type':a76_0x1541b7(0x18c),'description':a76_0x1541b7(0x164),'default':a76_0x1541b7(0x161)},{'name':a76_0x1541b7(0x16b),'type':a76_0x1541b7(0x18c),'required':!![],'description':a76_0x1541b7(0x171)},{'name':a76_0x1541b7(0x188),'type':a76_0x1541b7(0x18c),'required':!![],'description':'Database\x20username'},{'name':'password','type':a76_0x1541b7(0x18c),'required':!![],'description':'Database\x20password'},{'name':a76_0x1541b7(0x175),'type':a76_0x1541b7(0x18c),'description':a76_0x1541b7(0x185)},{'name':a76_0x1541b7(0x168),'type':'string','description':a76_0x1541b7(0x174)},{'name':'autostart','type':a76_0x1541b7(0x180),'description':a76_0x1541b7(0x18d),'default':![]}],async 'validate'(_0x177fd6){const _0x2649fa=a76_0x1541b7,_0x3f30ae=_0x177fd6[_0x2649fa(0x189)](_0x2649fa(0x16b))['trim']();if(!validateDbUrl(_0x3f30ae))throw CliErrors['validation'](_0x2649fa(0x170)+_0x3f30ae+'\x22','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.');},async 'dryRun'(_0x51e794){const _0x294a84=a76_0x1541b7,_0x329e15={'appCode':_0x51e794[_0x294a84(0x17d)],'dbName':_0x51e794[_0x294a84(0x189)]('dbname'),'dbType':_0x51e794['str']('dbtype'),'dbVersion':_0x51e794[_0x294a84(0x189)](_0x294a84(0x167))||_0x294a84(0x161),'dbUrl':_0x51e794[_0x294a84(0x189)](_0x294a84(0x16b))[_0x294a84(0x16f)](),'username':_0x51e794[_0x294a84(0x189)](_0x294a84(0x188)),'password':_0x294a84(0x173),..._0x51e794[_0x294a84(0x189)](_0x294a84(0x175))?{'dbParam':_0x51e794[_0x294a84(0x189)](_0x294a84(0x175))}:{},..._0x51e794[_0x294a84(0x189)](_0x294a84(0x168))?{'dbDesc':_0x51e794[_0x294a84(0x189)]('dbdesc')}:{}};return{'method':'POST','url':_0x294a84(0x172),'body':_0x329e15,'description':[_0x294a84(0x165),_0x51e794[_0x294a84(0x16e)]('autostart')?_0x294a84(0x17a):_0x294a84(0x179)]['join']('\x0a')};},async 'execute'(_0x43b512){const _0x24a6dc=a76_0x1541b7,_0x5ec4bd={'appCode':_0x43b512[_0x24a6dc(0x17d)],'dbName':_0x43b512[_0x24a6dc(0x189)](_0x24a6dc(0x17b)),'dbType':_0x43b512[_0x24a6dc(0x189)](_0x24a6dc(0x166)),'dbVersion':_0x43b512[_0x24a6dc(0x189)]('dbversion')||_0x24a6dc(0x161),'dbUrl':_0x43b512[_0x24a6dc(0x189)](_0x24a6dc(0x16b))['trim'](),'username':_0x43b512[_0x24a6dc(0x189)](_0x24a6dc(0x188)),'password':_0x43b512['str'](_0x24a6dc(0x17e)),..._0x43b512['str']('dbparam')?{'dbParam':_0x43b512[_0x24a6dc(0x189)](_0x24a6dc(0x175))}:{},..._0x43b512[_0x24a6dc(0x189)](_0x24a6dc(0x168))?{'dbDesc':_0x43b512[_0x24a6dc(0x189)](_0x24a6dc(0x168))}:{}},{id:_0x236146,entity:_0x4df38c}=normalizeEntityWithIdResponse(await createDbLink(_0x5ec4bd));if(!_0x236146)return{'ok':![],'message':'Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','data':sanitizeDbLinkForOutput(_0x4df38c)};let _0x58fa93,_0x4e74ff;if(_0x43b512[_0x24a6dc(0x16e)]('autostart'))try{_0x58fa93=await startDbAnalysis(_0x236146);}catch(_0x50e535){_0x4e74ff=_0x50e535 instanceof Error?_0x50e535[_0x24a6dc(0x162)]:String(_0x50e535);}const _0x1061be=buildDbPageLinks(_0x43b512['appCode'],_0x236146),_0x21c836={'connection':sanitizeDbLinkForOutput(_0x4df38c),..._0x1061be?{'links':{'databasePage':_0x1061be[_0x24a6dc(0x163)]}}:{},..._0x58fa93?{'analysisPlanId':_0x58fa93}:{},..._0x4e74ff?{'analysisStartWarning':_0x4e74ff}:{}};let _0x40257f;return _0x43b512[_0x24a6dc(0x16e)]('autostart')?_0x4e74ff?_0x40257f='Created\x20db\x20link\x20'+_0x236146+_0x24a6dc(0x18b):_0x40257f=_0x24a6dc(0x184)+_0x236146+_0x24a6dc(0x17f):_0x40257f='Created\x20db\x20link\x20'+_0x236146,{'ok':!![],'data':_0x21c836,'message':_0x40257f};}};
@@ -1 +1 @@
1
- const a76_0x3116ab=a76_0x57af;(function(_0x4087e7,_0x240cce){const _0x3dab72=a76_0x57af,_0x5ad704=_0x4087e7();while(!![]){try{const _0x243fcd=parseInt(_0x3dab72(0x1ce))/0x1+parseInt(_0x3dab72(0x1cb))/0x2+-parseInt(_0x3dab72(0x1ca))/0x3+parseInt(_0x3dab72(0x1d0))/0x4+parseInt(_0x3dab72(0x1cf))/0x5*(parseInt(_0x3dab72(0x1cd))/0x6)+-parseInt(_0x3dab72(0x1d1))/0x7+-parseInt(_0x3dab72(0x1cc))/0x8;if(_0x243fcd===_0x240cce)break;else _0x5ad704['push'](_0x5ad704['shift']());}catch(_0x1f15af){_0x5ad704['push'](_0x5ad704['shift']());}}}(a76_0x240b,0xd6837));import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a76_0x57af(_0x4e4ff6,_0x15290a){_0x4e4ff6=_0x4e4ff6-0x1c7;const _0x240b03=a76_0x240b();let _0x57afca=_0x240b03[_0x4e4ff6];return _0x57afca;}function a76_0x240b(){const _0x390722=['4543821DDYyCP','2269772EDFjoU','5904ZBRlTd','6cHsSaQ','720846COFsdO','882380mWWEDx','3058872JzwWjC','2820538ZSFnhw','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','high-risk-write','Deleted\x20db\x20link\x20'];a76_0x240b=function(){return _0x390722;};return a76_0x240b();}export const dbDelete={'service':'db','command':'delete','description':a76_0x3116ab(0x1c7),'risk':a76_0x3116ab(0x1c8),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x22c7f5){const _0x436f40=a76_0x3116ab,_0x43eb76=_0x22c7f5['num']('id');return await deleteDbLink(_0x43eb76),{'ok':!![],'data':{'id':_0x43eb76,'deleted':!![]},'message':_0x436f40(0x1c9)+_0x43eb76};}};
1
+ function a77_0x5f01(_0x1657fb,_0x19d8e8){_0x1657fb=_0x1657fb-0xb8;const _0x285076=a77_0x2850();let _0x5f0111=_0x285076[_0x1657fb];return _0x5f0111;}function a77_0x2850(){const _0x3336c5=['Deleted\x20db\x20link\x20','3440460WSFrNk','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','1874415ZXUdca','8abqWxo','1078986YzusnG','1829786ZUHCvi','9SHEOwN','6169720XSUlTp','122blsgnV','num','2250138aZZpFy','8zsuXxG','delete','5284pVzYzE'];a77_0x2850=function(){return _0x3336c5;};return a77_0x2850();}const a77_0x2f5d92=a77_0x5f01;(function(_0x107fd6,_0x543f00){const _0x5bcbbf=a77_0x5f01,_0x461476=_0x107fd6();while(!![]){try{const _0x499f86=parseInt(_0x5bcbbf(0xba))/0x1*(-parseInt(_0x5bcbbf(0xbf))/0x2)+-parseInt(_0x5bcbbf(0xc5))/0x3*(parseInt(_0x5bcbbf(0xbd))/0x4)+parseInt(_0x5bcbbf(0xc3))/0x5+parseInt(_0x5bcbbf(0xc1))/0x6+parseInt(_0x5bcbbf(0xc6))/0x7*(-parseInt(_0x5bcbbf(0xc4))/0x8)+-parseInt(_0x5bcbbf(0xb8))/0x9*(-parseInt(_0x5bcbbf(0xb9))/0xa)+parseInt(_0x5bcbbf(0xbc))/0xb;if(_0x499f86===_0x543f00)break;else _0x461476['push'](_0x461476['shift']());}catch(_0x2bd040){_0x461476['push'](_0x461476['shift']());}}}(a77_0x2850,0x71f59));import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDelete={'service':'db','command':a77_0x2f5d92(0xbe),'description':a77_0x2f5d92(0xc2),'risk':'high-risk-write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x268b04){const _0x27ca8c=a77_0x2f5d92,_0x1cfecd=_0x268b04[_0x27ca8c(0xbb)]('id');return await deleteDbLink(_0x1cfecd),{'ok':!![],'data':{'id':_0x1cfecd,'deleted':!![]},'message':_0x27ca8c(0xc0)+_0x1cfecd};}};
@@ -1 +1 @@
1
- function a77_0x5777(_0x4d41d9,_0x2f7fe9){_0x4d41d9=_0x4d41d9-0x14b;const _0x595aac=a77_0x595a();let _0x577768=_0x595aac[_0x4d41d9];return _0x577768;}const a77_0x12e54d=a77_0x5777;(function(_0x1b1abb,_0x15ccba){const _0x321bba=a77_0x5777,_0x44cc33=_0x1b1abb();while(!![]){try{const _0x334f45=-parseInt(_0x321bba(0x14e))/0x1+parseInt(_0x321bba(0x151))/0x2*(parseInt(_0x321bba(0x154))/0x3)+-parseInt(_0x321bba(0x150))/0x4+parseInt(_0x321bba(0x153))/0x5+-parseInt(_0x321bba(0x14c))/0x6*(-parseInt(_0x321bba(0x158))/0x7)+-parseInt(_0x321bba(0x152))/0x8*(-parseInt(_0x321bba(0x156))/0x9)+-parseInt(_0x321bba(0x14f))/0xa;if(_0x334f45===_0x15ccba)break;else _0x44cc33['push'](_0x44cc33['shift']());}catch(_0x10e0bc){_0x44cc33['push'](_0x44cc33['shift']());}}}(a77_0x595a,0x31050));function a77_0x595a(){const _0xdabea7=['378128iGDvYR','1057220MZRKTp','6kEcEAf','num','27yVZAAY','dbName','7TNxtof','detail','read','db\x20link\x20','1780836qQAsuj','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','95616bEXUUB','4024340QpFBjJ','970032QgiWFJ','291294jQojsu'];a77_0x595a=function(){return _0xdabea7;};return a77_0x595a();}import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a77_0x12e54d(0x159),'description':a77_0x12e54d(0x14d),'risk':a77_0x12e54d(0x15a),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1aff57){const _0x3145ce=a77_0x12e54d,_0x13327d=_0x1aff57[_0x3145ce(0x155)]('id'),_0x4ba577=await getDbLinkInfo(_0x13327d);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x4ba577),'message':_0x3145ce(0x14b)+_0x13327d+':\x20'+_0x4ba577[_0x3145ce(0x157)]};}};
1
+ const a78_0x432014=a78_0x42f0;(function(_0x5e5479,_0x46dabf){const _0x1942af=a78_0x42f0,_0x38a922=_0x5e5479();while(!![]){try{const _0x293fbd=-parseInt(_0x1942af(0x7d))/0x1+parseInt(_0x1942af(0x83))/0x2*(parseInt(_0x1942af(0x7f))/0x3)+parseInt(_0x1942af(0x89))/0x4*(parseInt(_0x1942af(0x85))/0x5)+-parseInt(_0x1942af(0x8a))/0x6+-parseInt(_0x1942af(0x88))/0x7*(-parseInt(_0x1942af(0x7e))/0x8)+parseInt(_0x1942af(0x7c))/0x9+-parseInt(_0x1942af(0x86))/0xa;if(_0x293fbd===_0x46dabf)break;else _0x38a922['push'](_0x38a922['shift']());}catch(_0x2bfae2){_0x38a922['push'](_0x38a922['shift']());}}}(a78_0x43d5,0x3370f));import{getDbLinkInfo}from'../../core/api-client.js';function a78_0x42f0(_0x4b21e1,_0x4ffb26){_0x4b21e1=_0x4b21e1-0x7c;const _0x43d5e3=a78_0x43d5();let _0x42f0ee=_0x43d5e3[_0x4b21e1];return _0x42f0ee;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a78_0x43d5(){const _0x227220=['1522539CvGrlK','109374dTlKtr','827824jHqgOG','48261PrlpKG','db\x20link\x20','read','detail','18bQUTzg','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','30jZpIiK','1749160keJIOm','dbName','14FfGqbz','144436tCHavA','1455426UOpyWc'];a78_0x43d5=function(){return _0x227220;};return a78_0x43d5();}export const dbDetail={'service':'db','command':a78_0x432014(0x82),'description':a78_0x432014(0x84),'risk':a78_0x432014(0x81),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3310eb){const _0xe646c4=a78_0x432014,_0x26c5df=_0x3310eb['num']('id'),_0x4f907a=await getDbLinkInfo(_0x26c5df);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x4f907a),'message':_0xe646c4(0x80)+_0x26c5df+':\x20'+_0x4f907a[_0xe646c4(0x87)]};}};
@@ -1 +1 @@
1
- const a78_0x508812=a78_0x2696;(function(_0xe12fee,_0x24e902){const _0xdb4044=a78_0x2696,_0x205501=_0xe12fee();while(!![]){try{const _0x57e434=parseInt(_0xdb4044(0x199))/0x1*(-parseInt(_0xdb4044(0x197))/0x2)+-parseInt(_0xdb4044(0x196))/0x3+-parseInt(_0xdb4044(0x1a4))/0x4*(parseInt(_0xdb4044(0x195))/0x5)+-parseInt(_0xdb4044(0x19f))/0x6*(parseInt(_0xdb4044(0x19a))/0x7)+-parseInt(_0xdb4044(0x1a7))/0x8+-parseInt(_0xdb4044(0x19b))/0x9+parseInt(_0xdb4044(0x1a1))/0xa;if(_0x57e434===_0x24e902)break;else _0x205501['push'](_0x205501['shift']());}catch(_0x33fc77){_0x205501['push'](_0x205501['shift']());}}}(a78_0x5c51,0x8d30a));import{getDbTableDiff}from'../../core/api-client.js';function a78_0x2696(_0x272b80,_0x255bb4){_0x272b80=_0x272b80-0x192;const _0x5c510c=a78_0x5c51();let _0x269644=_0x5c510c[_0x272b80];return _0x269644;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDiff={'service':'db','command':a78_0x508812(0x198),'description':'Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a78_0x508812(0x1a2),'type':a78_0x508812(0x19e),'description':a78_0x508812(0x193)},{'name':a78_0x508812(0x1a3),'type':a78_0x508812(0x1a6),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':a78_0x508812(0x192),'type':a78_0x508812(0x1a6),'description':a78_0x508812(0x19d),'default':0x14}],async 'execute'(_0x4222b8){const _0x2db0eb=a78_0x508812,_0x4f60a2=_0x4222b8[_0x2db0eb(0x19c)]('id'),_0x21b4c6=_0x4222b8[_0x2db0eb(0x19c)](_0x2db0eb(0x1a3),0x1)||0x1,_0x2060f7=_0x4222b8[_0x2db0eb(0x19c)](_0x2db0eb(0x192),0x14)||0x14,_0x579a6a=_0x4222b8[_0x2db0eb(0x1a0)](_0x2db0eb(0x1a2))||undefined,{totalCount:_0x555764,tableList:_0x5d2021}=await getDbTableDiff(_0x4222b8['appCode'],_0x4f60a2,{'pageIndex':_0x21b4c6,'pageSize':_0x2060f7,'tableName':_0x579a6a});return{'ok':!![],'data':{'dbLinkId':_0x4f60a2,'page':_0x21b4c6,'pageSize':_0x2060f7,'totalCount':_0x555764,'tableList':_0x5d2021},'message':_0x5d2021[_0x2db0eb(0x194)]+_0x2db0eb(0x1a5)+_0x555764+'\x20(db\x20link\x20'+_0x4f60a2+')'};}};function a78_0x5c51(){const _0x3dfe13=['diff','3fYNtNT','7NThNBn','8450838CtlqfJ','num','Page\x20size','string','1840464drmsLl','str','38285480DvtMyW','table','page','13636sOmXhe','\x20row(s),\x20total\x20','number','4341936HsPIiQ','pagesize','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','length','170dRypXC','2239272XWTSVy','399624EzTCTt'];a78_0x5c51=function(){return _0x3dfe13;};return a78_0x5c51();}
1
+ function a79_0x54e9(){const _0x5d92d0=['page','\x20row(s),\x20total\x20','diff','5952672VpEwHW','table','2829048fihEGC','number','1218050BbssNU','248KsTGhh','97946ijSkhP','10YcYIqq','Page\x20index\x20(1-based)','1220wzlPEA','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','appCode','Page\x20size','str','383604wejKFP','28ObyTet','string','num','read','141281hPYnuq','pagesize','68544wBStLX'];a79_0x54e9=function(){return _0x5d92d0;};return a79_0x54e9();}const a79_0x96308a=a79_0x24f6;(function(_0x59a0d2,_0x3c2893){const _0x4b7aa6=a79_0x24f6,_0x1134b3=_0x59a0d2();while(!![]){try{const _0x5192c4=parseInt(_0x4b7aa6(0x16c))/0x1+-parseInt(_0x4b7aa6(0x16a))/0x2+-parseInt(_0x4b7aa6(0x15b))/0x3*(-parseInt(_0x4b7aa6(0x15c))/0x4)+parseInt(_0x4b7aa6(0x16d))/0x5*(parseInt(_0x4b7aa6(0x168))/0x6)+-parseInt(_0x4b7aa6(0x160))/0x7*(-parseInt(_0x4b7aa6(0x16b))/0x8)+parseInt(_0x4b7aa6(0x162))/0x9*(-parseInt(_0x4b7aa6(0x16f))/0xa)+-parseInt(_0x4b7aa6(0x166))/0xb;if(_0x5192c4===_0x3c2893)break;else _0x1134b3['push'](_0x1134b3['shift']());}catch(_0x35c639){_0x1134b3['push'](_0x1134b3['shift']());}}}(a79_0x54e9,0x75c4e));import{getDbTableDiff}from'../../core/api-client.js';function a79_0x24f6(_0x5924cd,_0x879129){_0x5924cd=_0x5924cd-0x159;const _0x54e990=a79_0x54e9();let _0x24f607=_0x54e990[_0x5924cd];return _0x24f607;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDiff={'service':'db','command':a79_0x96308a(0x165),'description':a79_0x96308a(0x171),'risk':a79_0x96308a(0x15f),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a79_0x96308a(0x167),'type':a79_0x96308a(0x15d),'description':a79_0x96308a(0x170)},{'name':a79_0x96308a(0x163),'type':a79_0x96308a(0x169),'description':a79_0x96308a(0x16e),'default':0x1},{'name':a79_0x96308a(0x161),'type':a79_0x96308a(0x169),'description':a79_0x96308a(0x159),'default':0x14}],async 'execute'(_0x5ce36e){const _0x560643=a79_0x96308a,_0x1a6287=_0x5ce36e[_0x560643(0x15e)]('id'),_0x3d09a5=_0x5ce36e[_0x560643(0x15e)](_0x560643(0x163),0x1)||0x1,_0x307880=_0x5ce36e['num'](_0x560643(0x161),0x14)||0x14,_0x5d4a90=_0x5ce36e[_0x560643(0x15a)](_0x560643(0x167))||undefined,{totalCount:_0x574dff,tableList:_0xd0d0c7}=await getDbTableDiff(_0x5ce36e[_0x560643(0x172)],_0x1a6287,{'pageIndex':_0x3d09a5,'pageSize':_0x307880,'tableName':_0x5d4a90});return{'ok':!![],'data':{'dbLinkId':_0x1a6287,'page':_0x3d09a5,'pageSize':_0x307880,'totalCount':_0x574dff,'tableList':_0xd0d0c7},'message':_0xd0d0c7['length']+_0x560643(0x164)+_0x574dff+'\x20(db\x20link\x20'+_0x1a6287+')'};}};
@@ -1 +1 @@
1
- (function(_0x5cd7e3,_0x4d4c48){const _0x8b66e3=a79_0x319c,_0x3cbea3=_0x5cd7e3();while(!![]){try{const _0xb60dc7=parseInt(_0x8b66e3(0x181))/0x1+-parseInt(_0x8b66e3(0x185))/0x2*(parseInt(_0x8b66e3(0x188))/0x3)+-parseInt(_0x8b66e3(0x182))/0x4*(parseInt(_0x8b66e3(0x180))/0x5)+-parseInt(_0x8b66e3(0x189))/0x6*(-parseInt(_0x8b66e3(0x184))/0x7)+parseInt(_0x8b66e3(0x17f))/0x8+parseInt(_0x8b66e3(0x186))/0x9+-parseInt(_0x8b66e3(0x183))/0xa*(parseInt(_0x8b66e3(0x187))/0xb);if(_0xb60dc7===_0x4d4c48)break;else _0x3cbea3['push'](_0x3cbea3['shift']());}catch(_0x1e2960){_0x3cbea3['push'](_0x3cbea3['shift']());}}}(a79_0x350e,0x97c5b));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';function a79_0x319c(_0x3bde57,_0x7e7a94){_0x3bde57=_0x3bde57-0x17f;const _0x350ede=a79_0x350e();let _0x319cb4=_0x350ede[_0x3bde57];return _0x319cb4;}import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';function a79_0x350e(){const _0x20c3dd=['11pdfjGj','3eYTpwU','222qYufLX','8985128Hvsfra','45xtMjml','158663BVNixH','548572nuczCd','5396530PuSqqO','115843nVPvVe','70814MWsPzS','4832001NFVZgF'];a79_0x350e=function(){return _0x20c3dd;};return a79_0x350e();}import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
1
+ function a80_0x221a(_0x2fcf8b,_0x286ecf){_0x2fcf8b=_0x2fcf8b-0xd0;const _0x44690c=a80_0x4469();let _0x221a5b=_0x44690c[_0x2fcf8b];return _0x221a5b;}(function(_0x5d346f,_0x447382){const _0x4771bc=a80_0x221a,_0x319fca=_0x5d346f();while(!![]){try{const _0xc170ba=parseInt(_0x4771bc(0xd8))/0x1+parseInt(_0x4771bc(0xd5))/0x2*(parseInt(_0x4771bc(0xd9))/0x3)+-parseInt(_0x4771bc(0xd4))/0x4*(-parseInt(_0x4771bc(0xd1))/0x5)+-parseInt(_0x4771bc(0xda))/0x6+parseInt(_0x4771bc(0xd6))/0x7*(parseInt(_0x4771bc(0xd2))/0x8)+-parseInt(_0x4771bc(0xd0))/0x9*(parseInt(_0x4771bc(0xd3))/0xa)+-parseInt(_0x4771bc(0xd7))/0xb;if(_0xc170ba===_0x447382)break;else _0x319fca['push'](_0x319fca['shift']());}catch(_0x2c9c93){_0x319fca['push'](_0x319fca['shift']());}}}(a80_0x4469,0x3ae92));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';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];function a80_0x4469(){const _0xd1023a=['20tXfwuR','16436KXtGpC','17304ReywYM','6105MayZpr','5596lrVUIL','45Cqnawu','621582HIlpOE','909ySEbVb','62590FUJPIm','584rmsTKI','2620vcCBgu'];a80_0x4469=function(){return _0xd1023a;};return a80_0x4469();}
@@ -1 +1 @@
1
- const a80_0x1162b2=a80_0x3e9e;function a80_0x3e9e(_0x12d11c,_0x15b1ed){_0x12d11c=_0x12d11c-0x18a;const _0x1c850b=a80_0x1c85();let _0x3e9e87=_0x1c850b[_0x12d11c];return _0x3e9e87;}(function(_0x524466,_0x5c32e7){const _0x2559a4=a80_0x3e9e,_0x4dc059=_0x524466();while(!![]){try{const _0x1c380f=-parseInt(_0x2559a4(0x19f))/0x1+parseInt(_0x2559a4(0x19e))/0x2*(-parseInt(_0x2559a4(0x19d))/0x3)+parseInt(_0x2559a4(0x199))/0x4+parseInt(_0x2559a4(0x18a))/0x5*(-parseInt(_0x2559a4(0x18f))/0x6)+-parseInt(_0x2559a4(0x195))/0x7+parseInt(_0x2559a4(0x18b))/0x8+parseInt(_0x2559a4(0x19b))/0x9;if(_0x1c380f===_0x5c32e7)break;else _0x4dc059['push'](_0x4dc059['shift']());}catch(_0xf316b6){_0x4dc059['push'](_0x4dc059['shift']());}}}(a80_0x1c85,0xe1048));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a80_0x1c85(){const _0x3d7897=['length','37708479dViPLk','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','72FUPYsX','138962LbBbUA','1653258mkxBPY','95lnsqpA','13242944EUzJxF','page','number','Page\x20index\x20(1-based)','366018AlYiZC','pagesize','List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','read','\x20database\x20connection(s)','Found\x20','10873016xDqyOb','list','appCode','Page\x20size','4438480Ejpmdu'];a80_0x1c85=function(){return _0x3d7897;};return a80_0x1c85();}import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a80_0x1162b2(0x196),'description':a80_0x1162b2(0x191),'risk':a80_0x1162b2(0x192),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a80_0x1162b2(0x18c),'type':a80_0x1162b2(0x18d),'description':a80_0x1162b2(0x18e),'default':0x1},{'name':a80_0x1162b2(0x190),'type':a80_0x1162b2(0x18d),'description':a80_0x1162b2(0x198),'default':0x64}],async 'execute'(_0x20d2d9){const _0x1ccb68=a80_0x1162b2,_0xfd764d=_0x20d2d9['num']('page',0x1)||0x1,_0x394441=_0x20d2d9['num'](_0x1ccb68(0x190),0x64)||0x64,{items:_0x5a807d,paging:_0x59c13a}=await listDbLinks(_0x20d2d9[_0x1ccb68(0x197)],{'currentPage':_0xfd764d,'pageSize':_0x394441}),_0x5c4b17=sanitizeDbLinkList(_0x5a807d),_0x749fcb=_0x59c13a?_0x59c13a:{'currentPage':_0xfd764d,'pageSize':_0x394441,'rowsOnPage':_0x5c4b17[_0x1ccb68(0x19a)],'totalCount':null,'note':_0x1ccb68(0x19c)};return{'ok':!![],'data':{'connections':_0x5c4b17,'paging':_0x749fcb},'message':_0x1ccb68(0x194)+_0x5c4b17[_0x1ccb68(0x19a)]+_0x1ccb68(0x193)};}};
1
+ function a81_0x2d14(_0x5061b9,_0x4a82e6){_0x5061b9=_0x5061b9-0xd8;const _0x472d66=a81_0x472d();let _0x2d1497=_0x472d66[_0x5061b9];return _0x2d1497;}const a81_0x51e5bc=a81_0x2d14;(function(_0x4c351e,_0x1407a9){const _0x47c75e=a81_0x2d14,_0x7104d2=_0x4c351e();while(!![]){try{const _0x173456=parseInt(_0x47c75e(0xe1))/0x1+-parseInt(_0x47c75e(0xd9))/0x2*(-parseInt(_0x47c75e(0xe3))/0x3)+parseInt(_0x47c75e(0xe8))/0x4*(-parseInt(_0x47c75e(0xd8))/0x5)+-parseInt(_0x47c75e(0xdc))/0x6*(-parseInt(_0x47c75e(0xe6))/0x7)+parseInt(_0x47c75e(0xda))/0x8+-parseInt(_0x47c75e(0xde))/0x9*(-parseInt(_0x47c75e(0xeb))/0xa)+-parseInt(_0x47c75e(0xe2))/0xb*(parseInt(_0x47c75e(0xe9))/0xc);if(_0x173456===_0x1407a9)break;else _0x7104d2['push'](_0x7104d2['shift']());}catch(_0x4bdb7c){_0x7104d2['push'](_0x7104d2['shift']());}}}(a81_0x472d,0x33bae));import{listDbLinks}from'../../core/api-client.js';function a81_0x472d(){const _0x3cfed6=['1440PHzuRf','list','2896030KGuCNd','Page\x20index\x20(1-based)','pagesize','page','Page\x20size','31530emlDKz','24JRZxAb','1707416gHKrFE','read','645630CXVDgF','\x20database\x20connection(s)','9brPPWx','num','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','296165LhBpKE','57123NrUXxz','62463IGqMAp','appCode','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','7wztMWV','length','204WOlSjR'];a81_0x472d=function(){return _0x3cfed6;};return a81_0x472d();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a81_0x51e5bc(0xea),'description':a81_0x51e5bc(0xe0),'risk':a81_0x51e5bc(0xdb),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a81_0x51e5bc(0xee),'type':'number','description':a81_0x51e5bc(0xec),'default':0x1},{'name':a81_0x51e5bc(0xed),'type':'number','description':a81_0x51e5bc(0xef),'default':0x64}],async 'execute'(_0x1bc3de){const _0x24e70e=a81_0x51e5bc,_0x4c255f=_0x1bc3de[_0x24e70e(0xdf)](_0x24e70e(0xee),0x1)||0x1,_0x3b1520=_0x1bc3de['num'](_0x24e70e(0xed),0x64)||0x64,{items:_0x24e9f1,paging:_0x214a08}=await listDbLinks(_0x1bc3de[_0x24e70e(0xe4)],{'currentPage':_0x4c255f,'pageSize':_0x3b1520}),_0x2209f9=sanitizeDbLinkList(_0x24e9f1),_0x213491=_0x214a08?_0x214a08:{'currentPage':_0x4c255f,'pageSize':_0x3b1520,'rowsOnPage':_0x2209f9[_0x24e70e(0xe7)],'totalCount':null,'note':_0x24e70e(0xe5)};return{'ok':!![],'data':{'connections':_0x2209f9,'paging':_0x213491},'message':'Found\x20'+_0x2209f9[_0x24e70e(0xe7)]+_0x24e70e(0xdd)};}};
@@ -1 +1 @@
1
- (function(_0xf1f930,_0x3fdb9b){const _0x230d1e=a81_0x5e00,_0x3efdb1=_0xf1f930();while(!![]){try{const _0x4066ae=-parseInt(_0x230d1e(0xe6))/0x1+parseInt(_0x230d1e(0xf6))/0x2*(parseInt(_0x230d1e(0xf5))/0x3)+-parseInt(_0x230d1e(0xf3))/0x4+parseInt(_0x230d1e(0xf7))/0x5+-parseInt(_0x230d1e(0xfd))/0x6+-parseInt(_0x230d1e(0xf8))/0x7+parseInt(_0x230d1e(0xeb))/0x8*(parseInt(_0x230d1e(0xf2))/0x9);if(_0x4066ae===_0x3fdb9b)break;else _0x3efdb1['push'](_0x3efdb1['shift']());}catch(_0x2d44c3){_0x3efdb1['push'](_0x3efdb1['shift']());}}}(a81_0x7f42,0xd7fbc));import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0x307cc4){const _0x4b5bd8=a81_0x5e00,_0x221a28=_0x307cc4['toLowerCase']();if(_0x221a28===_0x4b5bd8(0xf0)||_0x221a28===_0x4b5bd8(0xed)||_0x221a28===_0x4b5bd8(0xe5))return!![];if(_0x221a28[_0x4b5bd8(0xfb)](_0x4b5bd8(0xe7))||_0x221a28[_0x4b5bd8(0xfb)](_0x4b5bd8(0xe9))||_0x221a28[_0x4b5bd8(0xfb)](_0x4b5bd8(0xec)))return!![];if(_0x221a28[_0x4b5bd8(0xfb)](_0x4b5bd8(0xfe))||_0x221a28[_0x4b5bd8(0xfb)](_0x4b5bd8(0xff)))return!![];if(_0x221a28===_0x4b5bd8(0xf1)||_0x221a28===_0x4b5bd8(0xf4)||_0x221a28==='jdbcurl')return!![];return![];}function a81_0x7f42(){const _0x1cbd81=['[redacted]','password','authorization','27gplNur','3583408fGDrYa','connectionstring','12417xTuwkn','74PWsBjD','6895115aGnZaW','3574039gfdFis','test','isFinite','includes','map','9131514zrsxHd','privatekey','accesskey','dbpassword','1627415WaChVj','secret','keys','token','trim','10422040gwQqlI','credential','passwd','length'];a81_0x7f42=function(){return _0x1cbd81;};return a81_0x7f42();}export function sanitizeDbLinkForOutput(_0x4854d9){const _0x3a638a=a81_0x5e00,_0x329bd7={..._0x4854d9};for(const _0x7fd82a of Object[_0x3a638a(0xe8)](_0x329bd7)){if(!shouldRedactKey(_0x7fd82a))continue;const _0x5a38b5=_0x329bd7[_0x7fd82a];_0x5a38b5!=null&&String(_0x5a38b5)[_0x3a638a(0xee)]>0x0&&(_0x329bd7[_0x7fd82a]=_0x3a638a(0xef));}return _0x329bd7;}export function sanitizeDbLinkList(_0x2db0dd){const _0x2ae248=a81_0x5e00;return _0x2db0dd[_0x2ae248(0xfc)](_0xd0ae76=>sanitizeDbLinkForOutput(_0xd0ae76));}function a81_0x5e00(_0x2481fe,_0x41e941){_0x2481fe=_0x2481fe-0xe5;const _0x7f4256=a81_0x7f42();let _0x5e0013=_0x7f4256[_0x2481fe];return _0x5e0013;}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x5760b7){const _0x2a3d3c=a81_0x5e00,_0x54065b=_0x5760b7[_0x2a3d3c(0xea)]();if(!_0x54065b)return![];return DB_URL_PATTERN[_0x2a3d3c(0xf9)](_0x54065b);}export function buildDbPageLinks(_0x32a67e,_0x2c4f52){const _0x4e92dc=a81_0x5e00,_0x7b587b=_0x32a67e?.[_0x4e92dc(0xea)]();if(!_0x7b587b)return undefined;const _0xd3f2e4=typeof _0x2c4f52==='number'?String(_0x2c4f52):String(_0x2c4f52??'')[_0x4e92dc(0xea)]();if(!_0xd3f2e4)return undefined;const _0x16237d=Number(_0xd3f2e4);if(!Number[_0x4e92dc(0xfa)](_0x16237d)||_0x16237d<=0x0)return undefined;const _0x5172f8=getAppBaseUrl(_0x7b587b),_0xb5c035=encodeURIComponent(String(_0x16237d));return{'databasePage':_0x5172f8+'/data/database','erPage':_0x5172f8+'/data/er?dbId='+_0xb5c035};}
1
+ (function(_0x33a965,_0xa0d921){const _0x2a47d3=a82_0x40d0,_0x4f68fb=_0x33a965();while(!![]){try{const _0x450049=-parseInt(_0x2a47d3(0x75))/0x1+parseInt(_0x2a47d3(0x68))/0x2*(-parseInt(_0x2a47d3(0x76))/0x3)+parseInt(_0x2a47d3(0x67))/0x4+-parseInt(_0x2a47d3(0x77))/0x5+-parseInt(_0x2a47d3(0x6c))/0x6+-parseInt(_0x2a47d3(0x79))/0x7*(parseInt(_0x2a47d3(0x7b))/0x8)+parseInt(_0x2a47d3(0x69))/0x9;if(_0x450049===_0xa0d921)break;else _0x4f68fb['push'](_0x4f68fb['shift']());}catch(_0xf4898f){_0x4f68fb['push'](_0x4f68fb['shift']());}}}(a82_0x18e1,0xe6d82));import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0x3e5f48){const _0x6ce94c=a82_0x40d0,_0x1e3902=_0x3e5f48[_0x6ce94c(0x6b)]();if(_0x1e3902==='password'||_0x1e3902==='passwd'||_0x1e3902===_0x6ce94c(0x72))return!![];if(_0x1e3902[_0x6ce94c(0x6a)](_0x6ce94c(0x70))||_0x1e3902[_0x6ce94c(0x6a)](_0x6ce94c(0x6e))||_0x1e3902[_0x6ce94c(0x6a)](_0x6ce94c(0x74)))return!![];if(_0x1e3902[_0x6ce94c(0x6a)]('privatekey')||_0x1e3902['includes']('accesskey'))return!![];if(_0x1e3902==='authorization'||_0x1e3902==='connectionstring'||_0x1e3902===_0x6ce94c(0x7d))return!![];return![];}export function sanitizeDbLinkForOutput(_0x1191d7){const _0x191df0=a82_0x40d0,_0x10ceb9={..._0x1191d7};for(const _0x4c7b2d of Object[_0x191df0(0x6f)](_0x10ceb9)){if(!shouldRedactKey(_0x4c7b2d))continue;const _0x38a5d3=_0x10ceb9[_0x4c7b2d];_0x38a5d3!=null&&String(_0x38a5d3)[_0x191df0(0x7a)]>0x0&&(_0x10ceb9[_0x4c7b2d]='[redacted]');}return _0x10ceb9;}function a82_0x40d0(_0x36e7ac,_0x31c77b){_0x36e7ac=_0x36e7ac-0x67;const _0x18e123=a82_0x18e1();let _0x40d09e=_0x18e123[_0x36e7ac];return _0x40d09e;}export function sanitizeDbLinkList(_0x490b9d){const _0x2d7813=a82_0x40d0;return _0x490b9d[_0x2d7813(0x78)](_0x35d6d3=>sanitizeDbLinkForOutput(_0x35d6d3));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;function a82_0x18e1(){const _0x2915b9=['17558wajutP','32735448xOZHfE','includes','toLowerCase','3923508lsVFwo','trim','token','keys','secret','isFinite','dbpassword','test','credential','1245886NnSIcr','6GoukbF','8423445IgXPvL','map','25396CHXKJq','length','784RCPxaQ','/data/database','jdbcurl','5063444TVbimL'];a82_0x18e1=function(){return _0x2915b9;};return a82_0x18e1();}export function validateDbUrl(_0x21612c){const _0x2914c4=a82_0x40d0,_0x5d7aee=_0x21612c[_0x2914c4(0x6d)]();if(!_0x5d7aee)return![];return DB_URL_PATTERN[_0x2914c4(0x73)](_0x5d7aee);}export function buildDbPageLinks(_0x4587bf,_0x37e11f){const _0x22e771=a82_0x40d0,_0x1c02b8=_0x4587bf?.[_0x22e771(0x6d)]();if(!_0x1c02b8)return undefined;const _0x2ce123=typeof _0x37e11f==='number'?String(_0x37e11f):String(_0x37e11f??'')[_0x22e771(0x6d)]();if(!_0x2ce123)return undefined;const _0x23c7e6=Number(_0x2ce123);if(!Number[_0x22e771(0x71)](_0x23c7e6)||_0x23c7e6<=0x0)return undefined;const _0x51b11a=getAppBaseUrl(_0x1c02b8),_0x284893=encodeURIComponent(String(_0x23c7e6));return{'databasePage':_0x51b11a+_0x22e771(0x7c),'erPage':_0x51b11a+'/data/er?dbId='+_0x284893};}
@@ -1 +1 @@
1
- function a82_0x2490(){const _0x5350bf=['362795qZthgK','1591612DJHjtO','read','1397thkJls','tables','351240sLurAd','1822614wsiJSa','44610oiLSEx','2NrUaxg','215VUnzxi','82590OHlfcD','5276124TgQGBW','length','7FNpVYp','num'];a82_0x2490=function(){return _0x5350bf;};return a82_0x2490();}const a82_0x3adb4b=a82_0x15e1;(function(_0x56a142,_0xafe5e){const _0x7ef4b4=a82_0x15e1,_0x4a40f0=_0x56a142();while(!![]){try{const _0x4d7b3=-parseInt(_0x7ef4b4(0x189))/0x1*(parseInt(_0x7ef4b4(0x191))/0x2)+parseInt(_0x7ef4b4(0x18f))/0x3+-parseInt(_0x7ef4b4(0x18a))/0x4+-parseInt(_0x7ef4b4(0x192))/0x5*(-parseInt(_0x7ef4b4(0x193))/0x6)+-parseInt(_0x7ef4b4(0x187))/0x7*(parseInt(_0x7ef4b4(0x18e))/0x8)+-parseInt(_0x7ef4b4(0x194))/0x9+parseInt(_0x7ef4b4(0x190))/0xa*(parseInt(_0x7ef4b4(0x18c))/0xb);if(_0x4d7b3===_0xafe5e)break;else _0x4a40f0['push'](_0x4a40f0['shift']());}catch(_0xba714b){_0x4a40f0['push'](_0x4a40f0['shift']());}}}(a82_0x2490,0x5b965));function a82_0x15e1(_0x26412b,_0x3c6787){_0x26412b=_0x26412b-0x187;const _0x24906f=a82_0x2490();let _0x15e17e=_0x24906f[_0x26412b];return _0x15e17e;}import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a82_0x3adb4b(0x18d),'description':'List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','risk':a82_0x3adb4b(0x18b),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0xd92a36){const _0x39a231=a82_0x3adb4b,_0x3fbe4f=_0xd92a36[_0x39a231(0x188)]('id'),_0x6e2d69=await getDbAllTableList(_0xd92a36['appCode'],_0x3fbe4f);return{'ok':!![],'data':{'dbLinkId':_0x3fbe4f,'total':_0x6e2d69['length'],'tables':_0x6e2d69},'message':_0x6e2d69[_0x39a231(0x195)]+'\x20table(s)\x20on\x20db\x20link\x20'+_0x3fbe4f};}};
1
+ function a83_0x359d(){const _0x1252cf=['1021726OLamFu','2346156vVCVcu','7LPLdJb','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','read','length','2986672GHVumN','21241674MHlwLN','2137685qCmlBG','7752rVbcEX','\x20table(s)\x20on\x20db\x20link\x20','num','537mWIGEj','690469tqvrPJ'];a83_0x359d=function(){return _0x1252cf;};return a83_0x359d();}const a83_0x13fef9=a83_0x1ce8;(function(_0x37fb2e,_0x589a12){const _0x5c9fb5=a83_0x1ce8,_0x180876=_0x37fb2e();while(!![]){try{const _0x4dab83=-parseInt(_0x5c9fb5(0x11a))/0x1+-parseInt(_0x5c9fb5(0x11b))/0x2+-parseInt(_0x5c9fb5(0x119))/0x3*(parseInt(_0x5c9fb5(0x116))/0x4)+-parseInt(_0x5c9fb5(0x115))/0x5+-parseInt(_0x5c9fb5(0x11c))/0x6*(parseInt(_0x5c9fb5(0x11d))/0x7)+parseInt(_0x5c9fb5(0x121))/0x8+parseInt(_0x5c9fb5(0x122))/0x9;if(_0x4dab83===_0x589a12)break;else _0x180876['push'](_0x180876['shift']());}catch(_0x5ad4d7){_0x180876['push'](_0x180876['shift']());}}}(a83_0x359d,0x59883));import{getDbAllTableList}from'../../core/api-client.js';function a83_0x1ce8(_0x28c410,_0x43ac61){_0x28c410=_0x28c410-0x115;const _0x359dfd=a83_0x359d();let _0x1ce817=_0x359dfd[_0x28c410];return _0x1ce817;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':'tables','description':a83_0x13fef9(0x11e),'risk':a83_0x13fef9(0x11f),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x22edb0){const _0xf3d089=a83_0x13fef9,_0x4a50ff=_0x22edb0[_0xf3d089(0x118)]('id'),_0x594ecf=await getDbAllTableList(_0x22edb0['appCode'],_0x4a50ff);return{'ok':!![],'data':{'dbLinkId':_0x4a50ff,'total':_0x594ecf[_0xf3d089(0x120)],'tables':_0x594ecf},'message':_0x594ecf[_0xf3d089(0x120)]+_0xf3d089(0x117)+_0x4a50ff};}};
@@ -1 +1 @@
1
- const a83_0x2219e8=a83_0x29ec;(function(_0x37e4b8,_0x4a5c65){const _0x3d3680=a83_0x29ec,_0x2bb936=_0x37e4b8();while(!![]){try{const _0x1724a6=parseInt(_0x3d3680(0xc7))/0x1*(parseInt(_0x3d3680(0xc6))/0x2)+parseInt(_0x3d3680(0xbc))/0x3+parseInt(_0x3d3680(0xc3))/0x4*(-parseInt(_0x3d3680(0xb1))/0x5)+-parseInt(_0x3d3680(0xb7))/0x6*(-parseInt(_0x3d3680(0xc4))/0x7)+-parseInt(_0x3d3680(0xb3))/0x8*(-parseInt(_0x3d3680(0xad))/0x9)+-parseInt(_0x3d3680(0xb5))/0xa*(-parseInt(_0x3d3680(0xc5))/0xb)+-parseInt(_0x3d3680(0xbd))/0xc;if(_0x1724a6===_0x4a5c65)break;else _0x2bb936['push'](_0x2bb936['shift']());}catch(_0x5994e4){_0x2bb936['push'](_0x2bb936['shift']());}}}(a83_0xa3cf,0x84946));import{testDbLinkConnect}from'../../core/api-client.js';function a83_0x29ec(_0x1882a1,_0x5eaaa8){_0x1882a1=_0x1882a1-0xad;const _0xa3cf2b=a83_0xa3cf();let _0x29ec02=_0xa3cf2b[_0x1882a1];return _0x29ec02;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a83_0xa3cf(){const _0x6869d2=['Connection\x20check\x20finished\x20for\x20db\x20link\x20','keys','\x20(see\x20data.result)','1880CmJHMd','error','520768UQKNOp','data','557490BlbqwZ','success','6PCyhDL','Connection\x20OK\x20for\x20db\x20link\x20','object','message','code','3091578QsmTvi','24951696BlRwkt','read','num','length','slice','test','4076MTGVTv','712635midhhA','66euEwwE','286RchauV','6663VgqaVp','81WZnoMm'];a83_0xa3cf=function(){return _0x6869d2;};return a83_0xa3cf();}function summarizeTestConnectResult(_0x22131f){const _0x42271b=a83_0x29ec;if(_0x22131f===!![]||_0x22131f===![])return{'success':_0x22131f};if(_0x22131f===null||_0x22131f===undefined)return{'type':typeof _0x22131f};if(typeof _0x22131f!==_0x42271b(0xb9))return{'type':typeof _0x22131f};const _0x38cc59=_0x22131f,_0x4454e1=[_0x42271b(0xb6),_0x42271b(0xba),_0x42271b(0xbb),_0x42271b(0xb2),'msg',_0x42271b(0xb4)],_0x269ec7={};for(const _0x523823 of _0x4454e1){if(_0x523823 in _0x38cc59)_0x269ec7[_0x523823]=_0x38cc59[_0x523823];}return Object[_0x42271b(0xaf)](_0x269ec7)[_0x42271b(0xc0)]===0x0&&(_0x269ec7[_0x42271b(0xaf)]=Object[_0x42271b(0xaf)](_0x38cc59)[_0x42271b(0xc1)](0x0,0x14)),_0x269ec7;}export const dbTest={'service':'db','command':a83_0x2219e8(0xc2),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':a83_0x2219e8(0xbe),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4ed86f){const _0x5d9745=a83_0x2219e8,_0x4f1f82=_0x4ed86f[_0x5d9745(0xbf)]('id'),_0x27cb81=await testDbLinkConnect(_0x4f1f82),_0x47c466=_0x27cb81===!![]||typeof _0x27cb81===_0x5d9745(0xb9)&&_0x27cb81!==null&&_0x27cb81[_0x5d9745(0xb6)]===!![],_0x2af193=summarizeTestConnectResult(_0x27cb81);return{'ok':!![],'data':{'id':_0x4f1f82,'connected':Boolean(_0x47c466),'result':_0x2af193},'message':_0x47c466?_0x5d9745(0xb8)+_0x4f1f82:_0x5d9745(0xae)+_0x4f1f82+_0x5d9745(0xb0)};}};
1
+ const a84_0x473f9c=a84_0x3ac2;(function(_0x3bd6ac,_0x3b9487){const _0x52812a=a84_0x3ac2,_0x5b67ef=_0x3bd6ac();while(!![]){try{const _0x285014=-parseInt(_0x52812a(0x7f))/0x1+-parseInt(_0x52812a(0x8b))/0x2+parseInt(_0x52812a(0x81))/0x3*(-parseInt(_0x52812a(0x88))/0x4)+-parseInt(_0x52812a(0x7e))/0x5+parseInt(_0x52812a(0x8c))/0x6+-parseInt(_0x52812a(0x84))/0x7+parseInt(_0x52812a(0x83))/0x8*(parseInt(_0x52812a(0x76))/0x9);if(_0x285014===_0x3b9487)break;else _0x5b67ef['push'](_0x5b67ef['shift']());}catch(_0x39e7ca){_0x5b67ef['push'](_0x5b67ef['shift']());}}}(a84_0x48b5,0xa560c));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a84_0x3ac2(_0x416c82,_0x2d4557){_0x416c82=_0x416c82-0x76;const _0x48b5ef=a84_0x48b5();let _0x3ac235=_0x48b5ef[_0x416c82];return _0x3ac235;}function summarizeTestConnectResult(_0x251e85){const _0x339630=a84_0x3ac2;if(_0x251e85===!![]||_0x251e85===![])return{'success':_0x251e85};if(_0x251e85===null||_0x251e85===undefined)return{'type':typeof _0x251e85};if(typeof _0x251e85!==_0x339630(0x8a))return{'type':typeof _0x251e85};const _0x1bc340=_0x251e85,_0x2ceb13=[_0x339630(0x8e),_0x339630(0x7b),_0x339630(0x7d),_0x339630(0x77),_0x339630(0x7a),_0x339630(0x80)],_0x4ac943={};for(const _0x19d651 of _0x2ceb13){if(_0x19d651 in _0x1bc340)_0x4ac943[_0x19d651]=_0x1bc340[_0x19d651];}return Object[_0x339630(0x78)](_0x4ac943)[_0x339630(0x86)]===0x0&&(_0x4ac943[_0x339630(0x78)]=Object[_0x339630(0x78)](_0x1bc340)[_0x339630(0x8d)](0x0,0x14)),_0x4ac943;}function a84_0x48b5(){const _0x56b23e=['msg','message','num','code','1727175zlwyXo','1220407jUFnHZ','data','378tPCZfJ','Connection\x20OK\x20for\x20db\x20link\x20','2024864mzGQEe','7194537SKCzcz','test','length','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','15040TxlYZG','Connection\x20check\x20finished\x20for\x20db\x20link\x20','object','1322066cmBYdC','6692460tjSYaP','slice','success','117mBgjNY','error','keys','\x20(see\x20data.result)'];a84_0x48b5=function(){return _0x56b23e;};return a84_0x48b5();}export const dbTest={'service':'db','command':a84_0x473f9c(0x85),'description':a84_0x473f9c(0x87),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x10f259){const _0x23fb11=a84_0x473f9c,_0x4c9c91=_0x10f259[_0x23fb11(0x7c)]('id'),_0x3a267c=await testDbLinkConnect(_0x4c9c91),_0x41b839=_0x3a267c===!![]||typeof _0x3a267c===_0x23fb11(0x8a)&&_0x3a267c!==null&&_0x3a267c[_0x23fb11(0x8e)]===!![],_0x598f7b=summarizeTestConnectResult(_0x3a267c);return{'ok':!![],'data':{'id':_0x4c9c91,'connected':Boolean(_0x41b839),'result':_0x598f7b},'message':_0x41b839?_0x23fb11(0x82)+_0x4c9c91:_0x23fb11(0x89)+_0x4c9c91+_0x23fb11(0x79)};}};
@@ -1 +1 @@
1
- const a84_0xa2a833=a84_0x476d;(function(_0x5095a3,_0x10baf9){const _0x3be5ea=a84_0x476d,_0x5cdd75=_0x5095a3();while(!![]){try{const _0x5cf54f=-parseInt(_0x3be5ea(0xfb))/0x1+parseInt(_0x3be5ea(0x106))/0x2+-parseInt(_0x3be5ea(0x10b))/0x3+-parseInt(_0x3be5ea(0x109))/0x4*(parseInt(_0x3be5ea(0xea))/0x5)+parseInt(_0x3be5ea(0xeb))/0x6+parseInt(_0x3be5ea(0xf6))/0x7+parseInt(_0x3be5ea(0x101))/0x8;if(_0x5cf54f===_0x10baf9)break;else _0x5cdd75['push'](_0x5cdd75['shift']());}catch(_0x1d9d0d){_0x5cdd75['push'](_0x5cdd75['shift']());}}}(a84_0x1004,0x3cd31));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a84_0x476d(_0x3313fc,_0x355855){_0x3313fc=_0x3313fc-0xea;const _0x10045c=a84_0x1004();let _0x476dc4=_0x10045c[_0x3313fc];return _0x476dc4;}import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a84_0x1004(){const _0xfab50d=['username','New\x20connection\x20parameter\x20string','validation','New\x20username','password','str','dbparam','dbDesc','3077389GIMZzI','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','Updated\x20db\x20link\x20','New\x20host:port','171364BnXMrN','write','dbname','POST','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','trim','1693600lXAIdt','dbdesc','New\x20description','dburl','num','442290fPaLXF','string','New\x20database\x20name','1252PmIMcq','dbUrl','212685srtPRm','dbParam','7915iUXXXa','686418InVnrC','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','dbName'];a84_0x1004=function(){return _0xfab50d;};return a84_0x1004();}export const dbUpdate={'service':'db','command':'update','description':a84_0xa2a833(0xec),'risk':a84_0xa2a833(0xfc),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a84_0xa2a833(0xfd),'type':'string','description':a84_0xa2a833(0x108)},{'name':'dburl','type':'string','description':a84_0xa2a833(0xfa)},{'name':a84_0xa2a833(0xee),'type':a84_0xa2a833(0x107),'description':a84_0xa2a833(0xf1)},{'name':a84_0xa2a833(0xf2),'type':a84_0xa2a833(0x107),'description':a84_0xa2a833(0xff)},{'name':a84_0xa2a833(0xf4),'type':a84_0xa2a833(0x107),'description':a84_0xa2a833(0xef)},{'name':a84_0xa2a833(0x102),'type':'string','description':a84_0xa2a833(0x103)}],async 'validate'(_0x57c75f){const _0x479c2b=a84_0xa2a833,_0x2aee7d=_0x57c75f[_0x479c2b(0xf3)]('dburl');if(_0x2aee7d&&!validateDbUrl(_0x2aee7d[_0x479c2b(0x100)]()))throw CliErrors[_0x479c2b(0xf0)](_0x479c2b(0xf8)+_0x2aee7d+'\x22');},async 'dryRun'(_0x5ee65f){const _0x371fc7=a84_0xa2a833,_0x439954=_0x5ee65f[_0x371fc7(0x105)]('id'),_0x2d7d1c=await getDbLinkInfo(_0x439954),_0x55cdcc={..._0x2d7d1c},_0x1170a0=_0x5ee65f['str'](_0x371fc7(0xfd));if(_0x1170a0)_0x55cdcc[_0x371fc7(0xed)]=_0x1170a0;const _0xc6af6e=_0x5ee65f[_0x371fc7(0xf3)](_0x371fc7(0x104));if(_0xc6af6e)_0x55cdcc[_0x371fc7(0x10a)]=_0xc6af6e['trim']();const _0x3b77a8=_0x5ee65f[_0x371fc7(0xf3)](_0x371fc7(0xee));if(_0x3b77a8)_0x55cdcc[_0x371fc7(0xee)]=_0x3b77a8;const _0x34bfb6=_0x5ee65f['str']('password');if(_0x34bfb6)_0x55cdcc[_0x371fc7(0xf2)]=_0x34bfb6;const _0x2ad1a6=_0x5ee65f[_0x371fc7(0xf3)](_0x371fc7(0xf4));if(_0x2ad1a6)_0x55cdcc[_0x371fc7(0x10c)]=_0x2ad1a6;const _0x1a1180=_0x5ee65f[_0x371fc7(0xf3)](_0x371fc7(0x102));if(_0x1a1180)_0x55cdcc[_0x371fc7(0xf5)]=_0x1a1180;const _0x1f59e6=sanitizeDbLinkForOutput(_0x55cdcc);return{'method':_0x371fc7(0xfe),'url':'/smartapi/dblink/update','body':_0x1f59e6,'description':_0x371fc7(0xf7)};},async 'execute'(_0x540896){const _0x2698a0=a84_0xa2a833,_0x57c640=_0x540896[_0x2698a0(0x105)]('id'),_0x380579=await getDbLinkInfo(_0x57c640),_0x18bdc7={..._0x380579},_0x474860=_0x540896['str']('dbname');if(_0x474860)_0x18bdc7['dbName']=_0x474860;const _0x307cc7=_0x540896[_0x2698a0(0xf3)](_0x2698a0(0x104));if(_0x307cc7)_0x18bdc7[_0x2698a0(0x10a)]=_0x307cc7[_0x2698a0(0x100)]();const _0xe5449f=_0x540896[_0x2698a0(0xf3)](_0x2698a0(0xee));if(_0xe5449f)_0x18bdc7[_0x2698a0(0xee)]=_0xe5449f;const _0x344354=_0x540896[_0x2698a0(0xf3)]('password');if(_0x344354)_0x18bdc7[_0x2698a0(0xf2)]=_0x344354;const _0x592e86=_0x540896[_0x2698a0(0xf3)](_0x2698a0(0xf4));if(_0x592e86)_0x18bdc7[_0x2698a0(0x10c)]=_0x592e86;const _0x5eb60f=_0x540896[_0x2698a0(0xf3)](_0x2698a0(0x102));if(_0x5eb60f)_0x18bdc7[_0x2698a0(0xf5)]=_0x5eb60f;const {id:_0x4396bf,entity:_0x451525}=normalizeEntityWithIdResponse(await updateDbLink(_0x18bdc7));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x451525),'message':_0x2698a0(0xf9)+(_0x4396bf??_0x57c640)};}};
1
+ const a85_0x4c0527=a85_0x1e60;(function(_0x2fe850,_0x19655e){const _0x8e6651=a85_0x1e60,_0x123dcf=_0x2fe850();while(!![]){try{const _0x7dac6b=parseInt(_0x8e6651(0x188))/0x1*(-parseInt(_0x8e6651(0x18d))/0x2)+-parseInt(_0x8e6651(0x19f))/0x3+parseInt(_0x8e6651(0x19b))/0x4*(parseInt(_0x8e6651(0x198))/0x5)+-parseInt(_0x8e6651(0x182))/0x6+-parseInt(_0x8e6651(0x187))/0x7+-parseInt(_0x8e6651(0x180))/0x8+parseInt(_0x8e6651(0x193))/0x9;if(_0x7dac6b===_0x19655e)break;else _0x123dcf['push'](_0x123dcf['shift']());}catch(_0x39e6fa){_0x123dcf['push'](_0x123dcf['shift']());}}}(a85_0x4b46,0x8e935));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a85_0x4b46(){const _0x525bb0=['trim','num','Updated\x20db\x20link\x20','742015ABkFBl','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','validation','20dpIwTT','update','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','username','2385309GfvurZ','dbName','dbdesc','dbParam','8187784dHlymu','write','5363226IywNzw','New\x20username','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','password','New\x20database\x20name','1443736iWKfiw','2NFLHxE','dbparam','/smartapi/dblink/update','dburl','dbUrl','303624xwrqQB','POST','New\x20description','str','dbDesc','New\x20connection\x20parameter\x20string','27578637csZNJK','string'];a85_0x4b46=function(){return _0x525bb0;};return a85_0x4b46();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a85_0x1e60(_0x3b7c13,_0x51fc52){_0x3b7c13=_0x3b7c13-0x17e;const _0x4b4609=a85_0x4b46();let _0x1e603a=_0x4b4609[_0x3b7c13];return _0x1e603a;}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':a85_0x4c0527(0x19c),'description':a85_0x4c0527(0x19d),'risk':a85_0x4c0527(0x181),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a85_0x4c0527(0x194),'description':a85_0x4c0527(0x186)},{'name':'dburl','type':a85_0x4c0527(0x194),'description':'New\x20host:port'},{'name':a85_0x4c0527(0x19e),'type':a85_0x4c0527(0x194),'description':a85_0x4c0527(0x183)},{'name':a85_0x4c0527(0x185),'type':a85_0x4c0527(0x194),'description':'New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API'},{'name':'dbparam','type':a85_0x4c0527(0x194),'description':a85_0x4c0527(0x192)},{'name':'dbdesc','type':'string','description':a85_0x4c0527(0x18f)}],async 'validate'(_0x80e2c9){const _0x16afc6=a85_0x4c0527,_0x433794=_0x80e2c9[_0x16afc6(0x190)](_0x16afc6(0x18b));if(_0x433794&&!validateDbUrl(_0x433794[_0x16afc6(0x195)]()))throw CliErrors[_0x16afc6(0x19a)](_0x16afc6(0x199)+_0x433794+'\x22');},async 'dryRun'(_0x57c9ec){const _0x3220f1=a85_0x4c0527,_0x4696ee=_0x57c9ec['num']('id'),_0x3b6565=await getDbLinkInfo(_0x4696ee),_0x373829={..._0x3b6565},_0x14f3b6=_0x57c9ec[_0x3220f1(0x190)]('dbname');if(_0x14f3b6)_0x373829[_0x3220f1(0x1a0)]=_0x14f3b6;const _0x589bde=_0x57c9ec[_0x3220f1(0x190)]('dburl');if(_0x589bde)_0x373829[_0x3220f1(0x18c)]=_0x589bde[_0x3220f1(0x195)]();const _0x313241=_0x57c9ec['str'](_0x3220f1(0x19e));if(_0x313241)_0x373829['username']=_0x313241;const _0x17f92b=_0x57c9ec['str']('password');if(_0x17f92b)_0x373829[_0x3220f1(0x185)]=_0x17f92b;const _0x577251=_0x57c9ec['str']('dbparam');if(_0x577251)_0x373829[_0x3220f1(0x17f)]=_0x577251;const _0xa70b26=_0x57c9ec[_0x3220f1(0x190)](_0x3220f1(0x17e));if(_0xa70b26)_0x373829[_0x3220f1(0x191)]=_0xa70b26;const _0x35ea81=sanitizeDbLinkForOutput(_0x373829);return{'method':_0x3220f1(0x18e),'url':_0x3220f1(0x18a),'body':_0x35ea81,'description':_0x3220f1(0x184)};},async 'execute'(_0x22657b){const _0xfb5a81=a85_0x4c0527,_0x331412=_0x22657b[_0xfb5a81(0x196)]('id'),_0x589c3a=await getDbLinkInfo(_0x331412),_0x21b1a0={..._0x589c3a},_0x84b681=_0x22657b[_0xfb5a81(0x190)]('dbname');if(_0x84b681)_0x21b1a0[_0xfb5a81(0x1a0)]=_0x84b681;const _0x3c3f17=_0x22657b['str']('dburl');if(_0x3c3f17)_0x21b1a0[_0xfb5a81(0x18c)]=_0x3c3f17[_0xfb5a81(0x195)]();const _0x4728e0=_0x22657b['str'](_0xfb5a81(0x19e));if(_0x4728e0)_0x21b1a0['username']=_0x4728e0;const _0x454fbf=_0x22657b[_0xfb5a81(0x190)](_0xfb5a81(0x185));if(_0x454fbf)_0x21b1a0[_0xfb5a81(0x185)]=_0x454fbf;const _0x33846b=_0x22657b[_0xfb5a81(0x190)](_0xfb5a81(0x189));if(_0x33846b)_0x21b1a0[_0xfb5a81(0x17f)]=_0x33846b;const _0x2ffb85=_0x22657b[_0xfb5a81(0x190)](_0xfb5a81(0x17e));if(_0x2ffb85)_0x21b1a0['dbDesc']=_0x2ffb85;const {id:_0xfc9a46,entity:_0x4d3889}=normalizeEntityWithIdResponse(await updateDbLink(_0x21b1a0));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x4d3889),'message':_0xfb5a81(0x197)+(_0xfc9a46??_0x331412)};}};
@@ -1 +1 @@
1
- const a85_0x162547=a85_0x5495;(function(_0x5c8c0a,_0x4fa459){const _0x242e9a=a85_0x5495,_0x328877=_0x5c8c0a();while(!![]){try{const _0x125597=-parseInt(_0x242e9a(0xca))/0x1+-parseInt(_0x242e9a(0x9f))/0x2*(-parseInt(_0x242e9a(0xd6))/0x3)+parseInt(_0x242e9a(0xba))/0x4+-parseInt(_0x242e9a(0xb8))/0x5+-parseInt(_0x242e9a(0xd0))/0x6*(parseInt(_0x242e9a(0xc7))/0x7)+-parseInt(_0x242e9a(0xd7))/0x8+parseInt(_0x242e9a(0xd3))/0x9;if(_0x125597===_0x4fa459)break;else _0x328877['push'](_0x328877['shift']());}catch(_0xd5d84){_0x328877['push'](_0x328877['shift']());}}}(a85_0x4fdc,0xe69e4));import a85_0x518a82 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';function a85_0x5495(_0x25f839,_0x3d674d){_0x25f839=_0x25f839-0x91;const _0x4fdc18=a85_0x4fdc();let _0x5495b9=_0x4fdc18[_0x25f839];return _0x5495b9;}import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';function a85_0x4fdc(){const _0x36400d=['\x20\x20API\x20Endpoints','currentApp','(none)','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','raw','accessKey','\x20\x20Config\x20Files','keys','empty','\x20\x20Config\x20JSON','\x20\x20Merged\x20Config','defaultApp','✗\x20Not\x20logged\x20in','38MXgITy','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','(set\x20via\x20file,\x20length=','(default:\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','unknown','pageSize','riskLevel','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','env','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','slice','\x20\x20─','doctor','repeat','locale','format','check','length','\x20\x20explicitAppName:\x20','✓\x20Valid\x20JSON','apps','padEnd','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','8015065pRWxdl','⚠\x20Empty\x20(treated\x20as\x20{})','4007328lhNLeR','(missing)','(default)','green','(no\x20file)','(not\x20found)','read','status','yellow','gray','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2493813YgIqDE','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','567974TTbzDq','source','\x20(default)','log','apiDir','bold','6ZFWUly','red','✓\x20Valid','20735694lckrlR','cookie','(set,\x20length=','279897RHvhQP','12852968XNgQxC','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','appcode','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','value','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','Project','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','arch'];a85_0x4fdc=function(){return _0x36400d;};return a85_0x4fdc();}async function execute(_0x51f560){const _0x2edf3a=a85_0x5495,_0x5a8f50=GIT_COMMIT!==_0x2edf3a(0xa5)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x2edf3a(0xab)](0x0,0xa)+')':VERSION,_0x285bee=buildConfigFromFlags({}),_0x3da772=getCookie();console[_0x2edf3a(0xcd)](),console[_0x2edf3a(0xcd)](a85_0x518a82['bold'](CLI_BIN_NAME+'\x20doctor')),console['log'](a85_0x518a82[_0x2edf3a(0xc3)]('─'['repeat'](0x32))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xa1)+_0x5a8f50),console[_0x2edf3a(0xcd)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console[_0x2edf3a(0xcd)](_0x2edf3a(0xd8)+process['platform']+'\x20'+process[_0x2edf3a(0x91)]),console['log'](),console[_0x2edf3a(0xcd)](a85_0x518a82[_0x2edf3a(0xcf)](_0x2edf3a(0x98))),console[_0x2edf3a(0xcd)](a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0xac)['repeat'](0x1e)));const _0xd5080d=getGlobalConfigPath(),_0x118270=getProjectConfigPath();console[_0x2edf3a(0xcd)](_0x2edf3a(0xb7)+(_0xd5080d||a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0xbf)))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xc4)+(_0x118270||a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0xbf)))),console['log'](),console['log'](a85_0x518a82[_0x2edf3a(0xcf)](_0x2edf3a(0x9b))),console[_0x2edf3a(0xcd)](a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0xac)[_0x2edf3a(0xae)](0x1e)));const _0xcb1c5a=(_0x2aa84a,_0x3329b1)=>{const _0x122e78=_0x2edf3a;if(!_0x3329b1){console[_0x122e78(0xcd)]('\x20\x20'+_0x2aa84a[_0x122e78(0xb6)](0x11)+'\x20'+a85_0x518a82[_0x122e78(0xc3)](_0x122e78(0xbe)));return;}const _0x20655b=inspectCliConfigJsonFile(_0x3329b1);if(_0x20655b[_0x122e78(0xc1)]==='ok')console[_0x122e78(0xcd)]('\x20\x20'+_0x2aa84a[_0x122e78(0xb6)](0x11)+'\x20'+a85_0x518a82[_0x122e78(0xbd)](_0x122e78(0xb4)));else{if(_0x20655b['status']===_0x122e78(0x9a))console[_0x122e78(0xcd)]('\x20\x20'+_0x2aa84a[_0x122e78(0xb6)](0x11)+'\x20'+a85_0x518a82[_0x122e78(0xc2)](_0x122e78(0xb9)));else _0x20655b[_0x122e78(0xc1)]==='missing'?console[_0x122e78(0xcd)]('\x20\x20'+_0x2aa84a[_0x122e78(0xb6)](0x11)+'\x20'+a85_0x518a82[_0x122e78(0xc3)](_0x122e78(0xbb))):(console['log']('\x20\x20'+_0x2aa84a[_0x122e78(0xb6)](0x11)+'\x20'+a85_0x518a82['red']('✗\x20Invalid\x20JSON')),console[_0x122e78(0xcd)]('\x20\x20'+''[_0x122e78(0xb6)](0x11)+'\x20'+a85_0x518a82[_0x122e78(0xd1)](_0x20655b['message'])));}};_0xcb1c5a('Global',_0xd5080d),_0xcb1c5a(_0x2edf3a(0xdf),_0x118270),console['log'](),console['log'](a85_0x518a82[_0x2edf3a(0xcf)](_0x2edf3a(0x9c))),console['log'](a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0xac)[_0x2edf3a(0xae)](0x1e))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xa4)+(_0x285bee['appCode']||a85_0x518a82[_0x2edf3a(0xd1)]('(not\x20set)'))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xc8)+_0x285bee[_0x2edf3a(0xa9)]),console['log']('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x285bee[_0x2edf3a(0xaf)]),console[_0x2edf3a(0xcd)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x285bee[_0x2edf3a(0xce)]),console[_0x2edf3a(0xcd)](_0x2edf3a(0xe0)+(_0x285bee[_0x2edf3a(0x9d)]||a85_0x518a82['gray'](_0x2edf3a(0x94)))),console[_0x2edf3a(0xcd)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x285bee[_0x2edf3a(0x93)]||a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0x94)))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xb3)+(_0x285bee['explicitAppName']||a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0x94)))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xc6)+(_0x285bee['format']||a85_0x518a82['gray'](_0x2edf3a(0xa3)+DEFAULT_CONFIG_VALUES[_0x2edf3a(0xb0)]+')'))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xa0)+(_0x285bee[_0x2edf3a(0xa6)]??a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0xbc)))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xc5)+_0x285bee[_0x2edf3a(0xa7)]),console[_0x2edf3a(0xcd)](_0x2edf3a(0xaa)+_0x285bee['verbose']),console[_0x2edf3a(0xcd)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x285bee['cookie']?a85_0x518a82[_0x2edf3a(0xbd)](_0x2edf3a(0xd5)+_0x285bee['cookie'][_0x2edf3a(0xb2)]+')'):_0x3da772?a85_0x518a82[_0x2edf3a(0xbd)](_0x2edf3a(0xa2)+_0x3da772[_0x2edf3a(0xb2)]+')'):a85_0x518a82[_0x2edf3a(0xc3)]('(none)')));const _0x1cb1ca=Object[_0x2edf3a(0x99)](_0x285bee[_0x2edf3a(0xb5)]);if(_0x1cb1ca['length']>0x0){console[_0x2edf3a(0xcd)](),console[_0x2edf3a(0xcd)](a85_0x518a82[_0x2edf3a(0xcf)]('\x20\x20Apps')),console[_0x2edf3a(0xcd)](a85_0x518a82['gray'](_0x2edf3a(0xac)[_0x2edf3a(0xae)](0x1e)));for(const _0x3e4f06 of _0x1cb1ca){const _0x5761cc=_0x285bee[_0x2edf3a(0xb5)][_0x3e4f06],_0x2e01c8=_0x3e4f06===_0x285bee[_0x2edf3a(0x9d)],_0xd805eb=_0x3e4f06===_0x285bee[_0x2edf3a(0x93)],_0x22b213=_0xd805eb?a85_0x518a82[_0x2edf3a(0xbd)](_0x2edf3a(0xd9)):'',_0x16ce30=_0x2e01c8?_0x2edf3a(0xcc):'';console[_0x2edf3a(0xcd)]('\x20\x20'+_0x3e4f06+_0x16ce30+_0x22b213),console[_0x2edf3a(0xcd)](_0x2edf3a(0xa8)+_0x5761cc[_0x2edf3a(0xdb)]);const _0x11c96d=buildAppDoctorFields(_0x5761cc,{'env':_0x285bee[_0x2edf3a(0xa9)],'apiDir':_0x285bee[_0x2edf3a(0x96)][_0x2edf3a(0xce)]||DEFAULT_CONFIG_VALUES[_0x2edf3a(0xce)],'cookie':_0x285bee[_0x2edf3a(0xd4)]||_0x3da772||undefined,'accessKey':_0x285bee[_0x2edf3a(0x97)]});console['log']('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x11c96d[_0x2edf3a(0xa9)][_0x2edf3a(0xdd)]+'\x20\x20'+a85_0x518a82['gray']('('+_0x11c96d['env'][_0x2edf3a(0xcb)]+')')),console[_0x2edf3a(0xcd)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x11c96d['apiDir'][_0x2edf3a(0xdd)]+'\x20\x20'+a85_0x518a82['gray']('('+_0x11c96d[_0x2edf3a(0xce)]['source']+')'));const _0x43c6e8=_0x11c96d[_0x2edf3a(0xd4)]['value']?a85_0x518a82['green'](_0x2edf3a(0xd5)+_0x11c96d['cookie'][_0x2edf3a(0xdd)][_0x2edf3a(0xb2)]+')'):a85_0x518a82['gray'](_0x2edf3a(0x94));console[_0x2edf3a(0xcd)](_0x2edf3a(0xda)+_0x43c6e8+'\x20\x20'+a85_0x518a82['gray']('('+_0x11c96d[_0x2edf3a(0xd4)][_0x2edf3a(0xcb)]+')'));const _0x10d53f=_0x11c96d[_0x2edf3a(0x97)]['value']?a85_0x518a82[_0x2edf3a(0xbd)](_0x2edf3a(0xd5)+_0x11c96d['accessKey']['value'][_0x2edf3a(0xb2)]+')'):a85_0x518a82['gray'](_0x2edf3a(0x94));console[_0x2edf3a(0xcd)](_0x2edf3a(0xe1)+_0x10d53f+'\x20\x20'+a85_0x518a82[_0x2edf3a(0xc3)]('('+_0x11c96d[_0x2edf3a(0x97)][_0x2edf3a(0xcb)]+')'));}}console[_0x2edf3a(0xcd)](),console[_0x2edf3a(0xcd)](a85_0x518a82[_0x2edf3a(0xcf)](_0x2edf3a(0x92))),console[_0x2edf3a(0xcd)](a85_0x518a82[_0x2edf3a(0xc3)]('\x20\x20─'[_0x2edf3a(0xae)](0x1e))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xde)+getApiDomain()),console['log'](_0x2edf3a(0x95)+getUserDomain()),console[_0x2edf3a(0xcd)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x2edf3a(0xcd)](),console[_0x2edf3a(0xcd)](a85_0x518a82[_0x2edf3a(0xcf)]('\x20\x20Auth')),console['log'](a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0xac)[_0x2edf3a(0xae)](0x1e)));if(_0x3da772){const _0x4c2828=await getIsSessionValid();console[_0x2edf3a(0xcd)](_0x2edf3a(0xc9)+(_0x4c2828?a85_0x518a82[_0x2edf3a(0xbd)](_0x2edf3a(0xd2)):a85_0x518a82[_0x2edf3a(0xd1)]('✗\x20Expired')));}else console[_0x2edf3a(0xcd)](_0x2edf3a(0xc9)+a85_0x518a82[_0x2edf3a(0xd1)](_0x2edf3a(0x9e)));return console[_0x2edf3a(0xcd)](),{'ok':!![]};}export const doctorDefinition={'service':a85_0x162547(0xad),'command':a85_0x162547(0xb1),'description':a85_0x162547(0xdc),'risk':a85_0x162547(0xc0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ function a86_0x1560(){const _0x8d2c2d=['\x20\x20─','apiDir','unknown','28017PxnJEs','cookie','slice','(not\x20set)','✗\x20Not\x20logged\x20in','apps','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','verbose','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','env','\x20\x20Merged\x20Config','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','15qKDYSF','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','197718mxkGKd','empty','Global','8925552aGojJm','value','110800BDgeXB','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','(no\x20file)','\x20\x20explicitAppName:\x20','source','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','appCode','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Apps','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','missing','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','620991EvIYqV','✓\x20Valid','arch','\x20\x20Config\x20JSON','2345012urOOZV','\x20(default)','keys','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','padEnd','\x20\x20API\x20Endpoints','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','appcode','check','(not\x20found)','(missing)','(default)','(none)','(default:\x20','log','11077829tEwMNR','red','doctor','defaultApp','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','bold','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','riskLevel','\x20\x20\x20\x20accessKey:\x20\x20','14680HtMgWL','\x20\x20Auth','170Wkkthy','accessKey','✗\x20Expired','locale','currentApp','gray','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Config\x20Files','format','green','pageSize'];a86_0x1560=function(){return _0x8d2c2d;};return a86_0x1560();}const a86_0x1641db=a86_0x143d;(function(_0x3721ff,_0x2d3fd5){const _0x3f1e01=a86_0x143d,_0x4752c3=_0x3721ff();while(!![]){try{const _0x3bc29e=parseInt(_0x3f1e01(0xcd))/0x1+parseInt(_0x3f1e01(0xd1))/0x2+parseInt(_0x3f1e01(0xb8))/0x3*(-parseInt(_0x3f1e01(0xbf))/0x4)+-parseInt(_0x3f1e01(0x9c))/0x5*(-parseInt(_0x3f1e01(0xba))/0x6)+parseInt(_0x3f1e01(0xe3))/0x7+parseInt(_0x3f1e01(0xbd))/0x8+-parseInt(_0x3f1e01(0xaa))/0x9*(parseInt(_0x3f1e01(0x9a))/0xa);if(_0x3bc29e===_0x2d3fd5)break;else _0x4752c3['push'](_0x4752c3['shift']());}catch(_0x5a4db4){_0x4752c3['push'](_0x4752c3['shift']());}}}(a86_0x1560,0xdca4c));import a86_0x3e0687 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';function a86_0x143d(_0x469ad7,_0x9dab2c){_0x469ad7=_0x469ad7-0x9a;const _0x15601d=a86_0x1560();let _0x143dcc=_0x15601d[_0x469ad7];return _0x143dcc;}async function execute(_0x5d1bb0){const _0x523d28=a86_0x143d,_0x2f07ab=GIT_COMMIT!==_0x523d28(0xa9)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x523d28(0xac)](0x0,0xa)+')':VERSION,_0x3538cc=buildConfigFromFlags({}),_0x591c65=getCookie();console['log'](),console[_0x523d28(0xe2)](a86_0x3e0687[_0x523d28(0xe9)](CLI_BIN_NAME+'\x20doctor')),console[_0x523d28(0xe2)](a86_0x3e0687['gray']('─'[_0x523d28(0xc6)](0x32))),console[_0x523d28(0xe2)](_0x523d28(0xd6)+_0x2f07ab),console[_0x523d28(0xe2)](_0x523d28(0xc8)+process['version']),console[_0x523d28(0xe2)](_0x523d28(0xd4)+process['platform']+'\x20'+process[_0x523d28(0xcf)]),console[_0x523d28(0xe2)](),console[_0x523d28(0xe2)](a86_0x3e0687[_0x523d28(0xe9)](_0x523d28(0xa3))),console[_0x523d28(0xe2)](a86_0x3e0687['gray'](_0x523d28(0xa7)[_0x523d28(0xc6)](0x1e)));const _0x109092=getGlobalConfigPath(),_0x32afa9=getProjectConfigPath();console['log'](_0x523d28(0xc5)+(_0x109092||a86_0x3e0687[_0x523d28(0xa1)](_0x523d28(0xdd)))),console[_0x523d28(0xe2)](_0x523d28(0xea)+(_0x32afa9||a86_0x3e0687[_0x523d28(0xa1)](_0x523d28(0xdd)))),console['log'](),console[_0x523d28(0xe2)](a86_0x3e0687[_0x523d28(0xe9)](_0x523d28(0xd0))),console['log'](a86_0x3e0687['gray'](_0x523d28(0xa7)[_0x523d28(0xc6)](0x1e)));const _0x3bee39=(_0x16bc40,_0x2e9778)=>{const _0x477b60=_0x523d28;if(!_0x2e9778){console[_0x477b60(0xe2)]('\x20\x20'+_0x16bc40[_0x477b60(0xd8)](0x11)+'\x20'+a86_0x3e0687['gray'](_0x477b60(0xc2)));return;}const _0x14d39a=inspectCliConfigJsonFile(_0x2e9778);if(_0x14d39a['status']==='ok')console[_0x477b60(0xe2)]('\x20\x20'+_0x16bc40[_0x477b60(0xd8)](0x11)+'\x20'+a86_0x3e0687[_0x477b60(0xa5)](_0x477b60(0xeb)));else{if(_0x14d39a[_0x477b60(0xc1)]===_0x477b60(0xbb))console[_0x477b60(0xe2)]('\x20\x20'+_0x16bc40['padEnd'](0x11)+'\x20'+a86_0x3e0687['yellow'](_0x477b60(0xb0)));else _0x14d39a[_0x477b60(0xc1)]===_0x477b60(0xcb)?console['log']('\x20\x20'+_0x16bc40[_0x477b60(0xd8)](0x11)+'\x20'+a86_0x3e0687[_0x477b60(0xa1)](_0x477b60(0xde))):(console[_0x477b60(0xe2)]('\x20\x20'+_0x16bc40[_0x477b60(0xd8)](0x11)+'\x20'+a86_0x3e0687[_0x477b60(0xe4)]('✗\x20Invalid\x20JSON')),console[_0x477b60(0xe2)]('\x20\x20'+''[_0x477b60(0xd8)](0x11)+'\x20'+a86_0x3e0687[_0x477b60(0xe4)](_0x14d39a['message'])));}};_0x3bee39(_0x523d28(0xbc),_0x109092),_0x3bee39('Project',_0x32afa9),console['log'](),console[_0x523d28(0xe2)](a86_0x3e0687[_0x523d28(0xe9)](_0x523d28(0xb5))),console[_0x523d28(0xe2)](a86_0x3e0687[_0x523d28(0xa1)](_0x523d28(0xa7)[_0x523d28(0xc6)](0x1e))),console[_0x523d28(0xe2)](_0x523d28(0xcc)+(_0x3538cc[_0x523d28(0xc7)]||a86_0x3e0687['red'](_0x523d28(0xad)))),console['log'](_0x523d28(0xc0)+_0x3538cc['env']),console['log']('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3538cc[_0x523d28(0x9f)]),console[_0x523d28(0xe2)](_0x523d28(0xd5)+_0x3538cc[_0x523d28(0xa8)]),console[_0x523d28(0xe2)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x3538cc['defaultApp']||a86_0x3e0687[_0x523d28(0xa1)]('(none)'))),console[_0x523d28(0xe2)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x3538cc[_0x523d28(0xa0)]||a86_0x3e0687[_0x523d28(0xa1)](_0x523d28(0xe0)))),console['log'](_0x523d28(0xc3)+(_0x3538cc['explicitAppName']||a86_0x3e0687[_0x523d28(0xa1)]('(none)'))),console['log'](_0x523d28(0xda)+(_0x3538cc['format']||a86_0x3e0687[_0x523d28(0xa1)](_0x523d28(0xe1)+DEFAULT_CONFIG_VALUES[_0x523d28(0xa4)]+')'))),console[_0x523d28(0xe2)](_0x523d28(0xb1)+(_0x3538cc[_0x523d28(0xa6)]??a86_0x3e0687[_0x523d28(0xa1)](_0x523d28(0xdf)))),console[_0x523d28(0xe2)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x3538cc[_0x523d28(0xec)]),console[_0x523d28(0xe2)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3538cc[_0x523d28(0xb2)]),console[_0x523d28(0xe2)](_0x523d28(0xe7)+(_0x3538cc[_0x523d28(0xab)]?a86_0x3e0687['green']('(set,\x20length='+_0x3538cc['cookie']['length']+')'):_0x591c65?a86_0x3e0687['green']('(set\x20via\x20file,\x20length='+_0x591c65['length']+')'):a86_0x3e0687[_0x523d28(0xa1)]('(none)')));const _0x5b51f3=Object[_0x523d28(0xd3)](_0x3538cc[_0x523d28(0xaf)]);if(_0x5b51f3[_0x523d28(0xe8)]>0x0){console[_0x523d28(0xe2)](),console[_0x523d28(0xe2)](a86_0x3e0687[_0x523d28(0xe9)](_0x523d28(0xc9))),console[_0x523d28(0xe2)](a86_0x3e0687['gray']('\x20\x20─'[_0x523d28(0xc6)](0x1e)));for(const _0xb4095 of _0x5b51f3){const _0x5c511c=_0x3538cc[_0x523d28(0xaf)][_0xb4095],_0x59f4c3=_0xb4095===_0x3538cc[_0x523d28(0xe6)],_0x1b5d1b=_0xb4095===_0x3538cc['currentApp'],_0x26c023=_0x1b5d1b?a86_0x3e0687['green']('\x20←\x20current'):'',_0x319d47=_0x59f4c3?_0x523d28(0xd2):'';console[_0x523d28(0xe2)]('\x20\x20'+_0xb4095+_0x319d47+_0x26c023),console[_0x523d28(0xe2)](_0x523d28(0xd7)+_0x5c511c[_0x523d28(0xdb)]);const _0x1c6606=buildAppDoctorFields(_0x5c511c,{'env':_0x3538cc[_0x523d28(0xb4)],'apiDir':_0x3538cc['raw'][_0x523d28(0xa8)]||DEFAULT_CONFIG_VALUES[_0x523d28(0xa8)],'cookie':_0x3538cc[_0x523d28(0xab)]||_0x591c65||undefined,'accessKey':_0x3538cc['accessKey']});console[_0x523d28(0xe2)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1c6606[_0x523d28(0xb4)][_0x523d28(0xbe)]+'\x20\x20'+a86_0x3e0687[_0x523d28(0xa1)]('('+_0x1c6606[_0x523d28(0xb4)]['source']+')')),console[_0x523d28(0xe2)](_0x523d28(0xca)+_0x1c6606['apiDir']['value']+'\x20\x20'+a86_0x3e0687[_0x523d28(0xa1)]('('+_0x1c6606[_0x523d28(0xa8)][_0x523d28(0xc4)]+')'));const _0x502902=_0x1c6606['cookie'][_0x523d28(0xbe)]?a86_0x3e0687[_0x523d28(0xa5)](_0x523d28(0xb7)+_0x1c6606[_0x523d28(0xab)][_0x523d28(0xbe)]['length']+')'):a86_0x3e0687['gray'](_0x523d28(0xe0));console[_0x523d28(0xe2)](_0x523d28(0xb9)+_0x502902+'\x20\x20'+a86_0x3e0687[_0x523d28(0xa1)]('('+_0x1c6606[_0x523d28(0xab)][_0x523d28(0xc4)]+')'));const _0x883920=_0x1c6606['accessKey'][_0x523d28(0xbe)]?a86_0x3e0687[_0x523d28(0xa5)]('(set,\x20length='+_0x1c6606[_0x523d28(0x9d)]['value'][_0x523d28(0xe8)]+')'):a86_0x3e0687[_0x523d28(0xa1)]('(none)');console[_0x523d28(0xe2)](_0x523d28(0xed)+_0x883920+'\x20\x20'+a86_0x3e0687[_0x523d28(0xa1)]('('+_0x1c6606['accessKey'][_0x523d28(0xc4)]+')'));}}console[_0x523d28(0xe2)](),console[_0x523d28(0xe2)](a86_0x3e0687[_0x523d28(0xe9)](_0x523d28(0xd9))),console['log'](a86_0x3e0687[_0x523d28(0xa1)](_0x523d28(0xa7)['repeat'](0x1e))),console[_0x523d28(0xe2)](_0x523d28(0xb3)+getApiDomain()),console[_0x523d28(0xe2)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console['log'](_0x523d28(0xa2)+getRuntimeDomain()),console['log'](),console[_0x523d28(0xe2)](a86_0x3e0687[_0x523d28(0xe9)](_0x523d28(0x9b))),console['log'](a86_0x3e0687[_0x523d28(0xa1)](_0x523d28(0xa7)['repeat'](0x1e)));if(_0x591c65){const _0xa960f4=await getIsSessionValid();console[_0x523d28(0xe2)](_0x523d28(0xb6)+(_0xa960f4?a86_0x3e0687[_0x523d28(0xa5)](_0x523d28(0xce)):a86_0x3e0687[_0x523d28(0xe4)](_0x523d28(0x9e))));}else console[_0x523d28(0xe2)](_0x523d28(0xb6)+a86_0x3e0687[_0x523d28(0xe4)](_0x523d28(0xae)));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a86_0x1641db(0xe5),'command':a86_0x1641db(0xdc),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a86_0x3b25eb=a86_0x736d;(function(_0xd2a3c5,_0x1ea670){const _0x13d263=a86_0x736d,_0x22f7dc=_0xd2a3c5();while(!![]){try{const _0x39eec9=-parseInt(_0x13d263(0xba))/0x1*(parseInt(_0x13d263(0x9c))/0x2)+-parseInt(_0x13d263(0xaa))/0x3*(parseInt(_0x13d263(0xa6))/0x4)+parseInt(_0x13d263(0x99))/0x5*(-parseInt(_0x13d263(0x90))/0x6)+-parseInt(_0x13d263(0xb9))/0x7*(-parseInt(_0x13d263(0x8d))/0x8)+parseInt(_0x13d263(0xa0))/0x9+-parseInt(_0x13d263(0x8c))/0xa+parseInt(_0x13d263(0x9a))/0xb;if(_0x39eec9===_0x1ea670)break;else _0x22f7dc['push'](_0x22f7dc['shift']());}catch(_0x27095b){_0x22f7dc['push'](_0x22f7dc['shift']());}}}(a86_0x15d7,0x89ad2));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';function a86_0x736d(_0x2fa5b1,_0x18e0fa){_0x2fa5b1=_0x2fa5b1-0x87;const _0x15d7c5=a86_0x15d7();let _0x736dd0=_0x15d7c5[_0x2fa5b1];return _0x736dd0;}function a86_0x15d7(){const _0x1e6e88=['6364510ayvUqJ','5392JNzWPd','log','map','507966MaWQhR','global','env','project','run','validation','boolean','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','\x0a✓\x20Successfully\x20initialized\x20','65DBhClv','30517927ttGPnw','yes','713562DYWilN','appcode','custom','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','6991263WxXyaW','join','Usage:\x20','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','cwd','valid','36092dUeMVT','App\x20code\x20to\x20initialize\x20with','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','production','177cuJIye','string','defaultApp','flagMissing','appCode','init','../../commands/project/init.js','Use\x20`','nonInteractive','\x20\x20Default:\x20','write','\x20config','Auto-confirm\x20prompts','\x20\x20Apps:\x20','bool','3661HtPNGf','3qrNUhW','Target\x20environment','toLocaleString','\x20\x20Env:\x20','str','message','some'];a86_0x15d7=function(){return _0x1e6e88;};return a86_0x15d7();}import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x45de12){return{'appCode':_0x45de12,'appName':_0x45de12};}function writeInitConfig(_0x3a4a99,_0x676d22,_0x142cf6){const _0xc04d25=a86_0x736d,_0x39ec15=resolveWriteConfigPath(_0x3a4a99),_0xbc7f4c=buildCanonicalProjectConfig({},{'appCodes':_0x676d22[_0xc04d25(0x8f)](_0x4dd78f=>_0x4dd78f[_0xc04d25(0xae)]),'env':_0x142cf6,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0xc04d25(0x87)]()}});writeConfigFile(_0x39ec15,_0xbc7f4c);const _0x2817f3=_0x3a4a99===_0xc04d25(0x91)?_0xc04d25(0x91):_0xc04d25(0x93);console[_0xc04d25(0x8e)](_0xc04d25(0x98)+_0x2817f3+_0xc04d25(0xb5)),console[_0xc04d25(0x8e)](_0xc04d25(0xb7)+_0x676d22[_0xc04d25(0x8f)](_0x494566=>_0x494566[_0xc04d25(0xae)])[_0xc04d25(0xa1)](',\x20')),console[_0xc04d25(0x8e)](_0xc04d25(0xb3)+_0xbc7f4c[_0xc04d25(0xac)]),console[_0xc04d25(0x8e)](_0xc04d25(0x88)+_0xbc7f4c[_0xc04d25(0x92)]),console[_0xc04d25(0x8e)]('\x20\x20Config:\x20'+_0x39ec15);}async function runSmartInit(_0x1da5c0){const _0x4f58ff=a86_0x736d,_0x434cf0=process[_0x4f58ff(0xa4)](),_0x1d4c46=_0x1da5c0[_0x4f58ff(0xb8)]('global')?_0x4f58ff(0x91):_0x4f58ff(0x93),_0x1a109f=_0x1da5c0['str'](_0x4f58ff(0x92))||_0x4f58ff(0xa9),_0x2f5ec0=_0x1da5c0[_0x4f58ff(0x89)](_0x4f58ff(0x9d))||undefined,_0x1cdd1e=_0x1da5c0['bool'](_0x4f58ff(0x93));if(_0x1cdd1e){const {initConfig:_0x332463}=await import(_0x4f58ff(0xb0));return _0x332463({'appcode':_0x2f5ec0,'env':_0x1a109f,'autoYes':_0x1da5c0[_0x4f58ff(0xb8)](_0x4f58ff(0x9b))});}if(_0x1d4c46===_0x4f58ff(0x93)){const _0x42d0ee=existsSync(resolve(_0x434cf0,NEW_CONFIG_NAME)),_0x5ceb56=LEGACY_CONFIG_NAMES[_0x4f58ff(0x8b)](_0x57f705=>existsSync(resolve(_0x434cf0,_0x57f705)));if(_0x5ceb56&&!_0x42d0ee)return console[_0x4f58ff(0x8e)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x1da5c0[_0x4f58ff(0xb2)],{'yes':_0x1da5c0[_0x4f58ff(0xb8)](_0x4f58ff(0x9b))});if(_0x42d0ee)throw CliErrors['validation'](_0x4f58ff(0xa3),_0x4f58ff(0xb1)+CLI_BIN_NAME+_0x4f58ff(0x97));}if(_0x2f5ec0){const _0x442f11=validateAppcode(_0x2f5ec0);if(!_0x442f11[_0x4f58ff(0xa5)])throw CliErrors[_0x4f58ff(0x95)](_0x442f11[_0x4f58ff(0x8a)]);writeInitConfig(_0x1d4c46,[syntheticApp(_0x2f5ec0)],_0x1a109f);return;}if(_0x1da5c0[_0x4f58ff(0xb2)])throw CliErrors[_0x4f58ff(0xad)](_0x4f58ff(0x9d),_0x4f58ff(0xa2)+CLI_BIN_NAME+_0x4f58ff(0xa8));const _0x292a35=getCookie(),_0x1df63d=await selectMultipleApps(_0x292a35),_0xe2ed51=_0x1df63d===_0x4f58ff(0x9e)?[syntheticApp(await promptCustomAppcode())]:_0x1df63d;writeInitConfig(_0x1d4c46,_0xe2ed51,_0x1a109f);}const initFlags=[{'name':'global','type':a86_0x3b25eb(0x96),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a86_0x3b25eb(0x92),'type':a86_0x3b25eb(0xab),'description':a86_0x3b25eb(0xbb),'default':a86_0x3b25eb(0xa9),'enum':[...RABETBASE_ENV_VALUES]},{'name':a86_0x3b25eb(0x9d),'type':a86_0x3b25eb(0xab),'description':a86_0x3b25eb(0xa7)},{'name':a86_0x3b25eb(0x93),'type':a86_0x3b25eb(0x96),'description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':a86_0x3b25eb(0x9b),'type':a86_0x3b25eb(0x96),'description':a86_0x3b25eb(0xb6),'default':![]}];export const initDefinitions=[{'service':a86_0x3b25eb(0xaf),'command':a86_0x3b25eb(0x94),'description':a86_0x3b25eb(0x9f),'risk':a86_0x3b25eb(0xb4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x59bbab){return await runSmartInit(_0x59bbab),{'ok':!![]};}}];
1
+ const a87_0x4221a6=a87_0x2999;(function(_0x1524a9,_0x53aa6b){const _0x2c08ee=a87_0x2999,_0x1970a7=_0x1524a9();while(!![]){try{const _0x685641=parseInt(_0x2c08ee(0xf7))/0x1*(-parseInt(_0x2c08ee(0xe7))/0x2)+-parseInt(_0x2c08ee(0xe8))/0x3+parseInt(_0x2c08ee(0xe2))/0x4+parseInt(_0x2c08ee(0xde))/0x5*(parseInt(_0x2c08ee(0xfc))/0x6)+parseInt(_0x2c08ee(0xf4))/0x7*(-parseInt(_0x2c08ee(0xf1))/0x8)+parseInt(_0x2c08ee(0xe5))/0x9+parseInt(_0x2c08ee(0xf9))/0xa;if(_0x685641===_0x53aa6b)break;else _0x1970a7['push'](_0x1970a7['shift']());}catch(_0x4a7d16){_0x1970a7['push'](_0x1970a7['shift']());}}}(a87_0x44d8,0xc2f85));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';function a87_0x2999(_0x5367c1,_0x43ef56){_0x5367c1=_0x5367c1-0xdc;const _0x44d8b2=a87_0x44d8();let _0x299990=_0x44d8b2[_0x5367c1];return _0x299990;}import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function a87_0x44d8(){const _0x534ca7=['boolean','\x20\x20Env:\x20','defaultApp','App\x20code\x20to\x20initialize\x20with','env','appcode','string','12141784LHQEUk','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','7VaMsKP','message','yes','571244cUufcR','production','2484340QWIukL','some','Usage:\x20','307842OxEtTk','flagMissing','cwd','toLocaleString','custom','Target\x20environment','write','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','\x20\x20Config:\x20','run','log','\x0a✓\x20Successfully\x20initialized\x20','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','nonInteractive','\x20config','appCode','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','\x20\x20Default:\x20','join','map','145MFJSzA','validation','Use\x20`','bool','6108784YUUOIv','global','str','6143994gPpqKK','Write\x20to\x20global\x20config\x20instead\x20of\x20project','2ulQVqO','3175905ImmacU','project'];a87_0x44d8=function(){return _0x534ca7;};return a87_0x44d8();}function syntheticApp(_0x29c8ca){return{'appCode':_0x29c8ca,'appName':_0x29c8ca};}function writeInitConfig(_0x27d7ce,_0x327e64,_0x7809fb){const _0x404a9e=a87_0x2999,_0x162548=resolveWriteConfigPath(_0x27d7ce),_0x1e9341=buildCanonicalProjectConfig({},{'appCodes':_0x327e64[_0x404a9e(0xdd)](_0x2ee20f=>_0x2ee20f[_0x404a9e(0x10b)]),'env':_0x7809fb,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x404a9e(0xff)]()}});writeConfigFile(_0x162548,_0x1e9341);const _0x3015ea=_0x27d7ce===_0x404a9e(0xe3)?'global':'project';console[_0x404a9e(0x106)](_0x404a9e(0x107)+_0x3015ea+_0x404a9e(0x10a)),console['log']('\x20\x20Apps:\x20'+_0x327e64[_0x404a9e(0xdd)](_0xda924c=>_0xda924c[_0x404a9e(0x10b)])[_0x404a9e(0xdc)](',\x20')),console[_0x404a9e(0x106)](_0x404a9e(0x10d)+_0x1e9341[_0x404a9e(0xec)]),console['log'](_0x404a9e(0xeb)+_0x1e9341[_0x404a9e(0xee)]),console[_0x404a9e(0x106)](_0x404a9e(0x104)+_0x162548);}async function runSmartInit(_0x1b7123){const _0x35a788=a87_0x2999,_0x237eec=process[_0x35a788(0xfe)](),_0x5ae90a=_0x1b7123['bool']('global')?_0x35a788(0xe3):_0x35a788(0xe9),_0x1e0480=_0x1b7123[_0x35a788(0xe4)](_0x35a788(0xee))||_0x35a788(0xf8),_0x30a798=_0x1b7123[_0x35a788(0xe4)](_0x35a788(0xef))||undefined,_0x547528=_0x1b7123[_0x35a788(0xe1)](_0x35a788(0xe9));if(_0x547528){const {initConfig:_0x5c79f6}=await import('../../commands/project/init.js');return _0x5c79f6({'appcode':_0x30a798,'env':_0x1e0480,'autoYes':_0x1b7123['bool']('yes')});}if(_0x5ae90a==='project'){const _0x5d2ca4=existsSync(resolve(_0x237eec,NEW_CONFIG_NAME)),_0x4ca30d=LEGACY_CONFIG_NAMES[_0x35a788(0xfa)](_0x5a0889=>existsSync(resolve(_0x237eec,_0x5a0889)));if(_0x4ca30d&&!_0x5d2ca4)return console['log']('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x1b7123['nonInteractive'],{'yes':_0x1b7123['bool'](_0x35a788(0xf6))});if(_0x5d2ca4)throw CliErrors[_0x35a788(0xdf)](_0x35a788(0xf2),_0x35a788(0xe0)+CLI_BIN_NAME+_0x35a788(0x108));}if(_0x30a798){const _0x1999c2=validateAppcode(_0x30a798);if(!_0x1999c2['valid'])throw CliErrors[_0x35a788(0xdf)](_0x1999c2[_0x35a788(0xf5)]);writeInitConfig(_0x5ae90a,[syntheticApp(_0x30a798)],_0x1e0480);return;}if(_0x1b7123[_0x35a788(0x109)])throw CliErrors[_0x35a788(0xfd)]('appcode',_0x35a788(0xfb)+CLI_BIN_NAME+_0x35a788(0x103));const _0x1e1696=getCookie(),_0x2b433b=await selectMultipleApps(_0x1e1696),_0x51124d=_0x2b433b===_0x35a788(0x100)?[syntheticApp(await promptCustomAppcode())]:_0x2b433b;writeInitConfig(_0x5ae90a,_0x51124d,_0x1e0480);}const initFlags=[{'name':a87_0x4221a6(0xe3),'type':a87_0x4221a6(0xea),'description':a87_0x4221a6(0xe6),'default':![]},{'name':a87_0x4221a6(0xee),'type':a87_0x4221a6(0xf0),'description':a87_0x4221a6(0x101),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':a87_0x4221a6(0xf0),'description':a87_0x4221a6(0xed)},{'name':a87_0x4221a6(0xe9),'type':a87_0x4221a6(0xea),'description':a87_0x4221a6(0xf3),'default':![]},{'name':a87_0x4221a6(0xf6),'type':a87_0x4221a6(0xea),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':'init','command':a87_0x4221a6(0x105),'description':a87_0x4221a6(0x10c),'risk':a87_0x4221a6(0x102),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x1d43b2){return await runSmartInit(_0x1d43b2),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x483cca,_0x255f84){const _0x501a64=a87_0x3727,_0x518df5=_0x483cca();while(!![]){try{const _0x37bec6=parseInt(_0x501a64(0x189))/0x1+parseInt(_0x501a64(0x18b))/0x2*(parseInt(_0x501a64(0x181))/0x3)+parseInt(_0x501a64(0x183))/0x4*(-parseInt(_0x501a64(0x184))/0x5)+-parseInt(_0x501a64(0x186))/0x6*(parseInt(_0x501a64(0x18a))/0x7)+-parseInt(_0x501a64(0x188))/0x8*(parseInt(_0x501a64(0x187))/0x9)+parseInt(_0x501a64(0x180))/0xa*(parseInt(_0x501a64(0x182))/0xb)+-parseInt(_0x501a64(0x18c))/0xc*(parseInt(_0x501a64(0x185))/0xd);if(_0x37bec6===_0x255f84)break;else _0x518df5['push'](_0x518df5['shift']());}catch(_0x3845b0){_0x518df5['push'](_0x518df5['shift']());}}}(a87_0x14ed,0x5432d));import{issueReport}from'../../commands/issue/report.js';function a87_0x3727(_0x52fe5d,_0x14662e){_0x52fe5d=_0x52fe5d-0x180;const _0x14ed08=a87_0x14ed();let _0x372770=_0x14ed08[_0x52fe5d];return _0x372770;}function a87_0x14ed(){const _0x3d3b72=['56116yYAHxY','95Stpbku','104kXwuDI','2946gceWeZ','118431JfvFYd','40NRkJVz','669144bBFLAo','8722DIlQdU','60WxZshH','292116ieQjDB','130GhioxY','51297ZBdDuJ','255233KfNKiX'];a87_0x14ed=function(){return _0x3d3b72;};return a87_0x14ed();}export const issueDefinitions=[issueReport];
1
+ function a88_0x408e(){const _0x24b82e=['12SWQfAq','553533rzRsAz','6tDAMJT','13827011tRNcgI','18EHhDBy','81099ZfqThH','14jDaLlT','2713272AqXFEH','122658XARtwO','677415AnXQeL','1400020PKUNdt'];a88_0x408e=function(){return _0x24b82e;};return a88_0x408e();}(function(_0x2b0235,_0x5b57e9){const _0x184d83=a88_0x1822,_0x18418d=_0x2b0235();while(!![]){try{const _0x2c7b5c=parseInt(_0x184d83(0xf8))/0x1*(parseInt(_0x184d83(0xf5))/0x2)+-parseInt(_0x184d83(0xff))/0x3+parseInt(_0x184d83(0xfe))/0x4*(-parseInt(_0x184d83(0xfc))/0x5)+-parseInt(_0x184d83(0xfb))/0x6*(parseInt(_0x184d83(0xf9))/0x7)+-parseInt(_0x184d83(0xfa))/0x8+parseInt(_0x184d83(0xf7))/0x9*(-parseInt(_0x184d83(0xfd))/0xa)+parseInt(_0x184d83(0xf6))/0xb;if(_0x2c7b5c===_0x5b57e9)break;else _0x18418d['push'](_0x18418d['shift']());}catch(_0x180a59){_0x18418d['push'](_0x18418d['shift']());}}}(a88_0x408e,0x3cdc9));import{issueReport}from'../../commands/issue/report.js';function a88_0x1822(_0x446384,_0x3921b5){_0x446384=_0x446384-0xf5;const _0x408e04=a88_0x408e();let _0x182227=_0x408e04[_0x446384];return _0x182227;}export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a88_0x2dfee7=a88_0x2c67;(function(_0x5258ef,_0x5a101a){const _0x34569c=a88_0x2c67,_0x52a72b=_0x5258ef();while(!![]){try{const _0xa76f22=parseInt(_0x34569c(0x12c))/0x1+-parseInt(_0x34569c(0x13c))/0x2*(-parseInt(_0x34569c(0x13e))/0x3)+parseInt(_0x34569c(0x125))/0x4*(parseInt(_0x34569c(0x12f))/0x5)+-parseInt(_0x34569c(0x13a))/0x6+parseInt(_0x34569c(0x126))/0x7+-parseInt(_0x34569c(0x13f))/0x8+-parseInt(_0x34569c(0x12e))/0x9;if(_0xa76f22===_0x5a101a)break;else _0x52a72b['push'](_0x52a72b['shift']());}catch(_0x281734){_0x52a72b['push'](_0x52a72b['shift']());}}}(a88_0x431d,0x5b0ac));function a88_0x2c67(_0x3f7846,_0x3d6f09){_0x3f7846=_0x3f7846-0x124;const _0x431dcf=a88_0x431d();let _0x2c67cf=_0x431dcf[_0x3f7846];return _0x2c67cf;}import{CliError}from'../../errors.js';function a88_0x431d(){const _0x7ae431=['\x20\x20\x20\x20--title\x20\x22','auth_required','not_in_project','unknown_command','RABETBASE_DISABLE_ISSUE_NUDGE','slice','\x20\x20Set\x20','network_error','\x22\x20\x5c','4061376waaifY','command','19608hoNGpy','config_missing','87NWrRVY','1498200ikDolu','stderr','has','code','\x20bug?\x20Help\x20us\x20fix\x20it:','8OyiNpk','3746463rMaTPD','cancelled','replace','service','trim','validation_error','402927dOMUtB','Hit\x20a\x20','5348943CEyChI','1522385EXLMcV','=1\x20to\x20silence\x20this\x20hint.'];a88_0x431d=function(){return _0x7ae431;};return a88_0x431d();}import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a88_0x2dfee7(0x135);const NUDGE_SUPPRESSED_CODES=new Set([a88_0x2dfee7(0x127),a88_0x2dfee7(0x132),a88_0x2dfee7(0x13d),a88_0x2dfee7(0x133),a88_0x2dfee7(0x134),'flag_missing',a88_0x2dfee7(0x12b),a88_0x2dfee7(0x138)]),defaultWriter=_0x360917=>{const _0x345bf2=a88_0x2dfee7;process[_0x345bf2(0x140)]['write'](_0x360917);};export function shouldNudgeForError(_0x4e9053,_0x34709b){const _0x50ddf0=a88_0x2dfee7;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x34709b[_0x50ddf0(0x129)]==='issue'&&_0x34709b[_0x50ddf0(0x13b)]==='report')return![];if(_0x4e9053 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x50ddf0(0x141)](_0x4e9053[_0x50ddf0(0x142)]);return!![];}export function printIssueReportNudgeForError(_0x49d2dd,_0x2d7d5a,_0x44709c=defaultWriter){if(!shouldNudgeForError(_0x49d2dd,_0x2d7d5a))return;const _0x317a5a=buildSuggestedTitle(_0x49d2dd,_0x2d7d5a);_0x44709c(formatNudge(_0x317a5a));}function buildSuggestedTitle(_0x50043e,_0x50b65d){const _0x54329a=a88_0x2dfee7,_0x49782f=_0x50043e instanceof Error?_0x50043e['message']:String(_0x50043e),_0x515db1=_0x49782f[_0x54329a(0x128)](/[\r\n]+/g,'\x20')[_0x54329a(0x128)](/\s+/g,'\x20')[_0x54329a(0x12a)]()[_0x54329a(0x136)](0x0,0x78)[_0x54329a(0x128)](/"/g,'\x5c\x22'),_0x2db7f8=CLI_BIN_NAME+'\x20'+_0x50b65d[_0x54329a(0x129)]+'\x20'+_0x50b65d[_0x54329a(0x13b)];return _0x515db1['length']>0x0?_0x2db7f8+':\x20'+_0x515db1:_0x2db7f8;}function formatNudge(_0xd232a0){const _0xca8791=a88_0x2dfee7;return['',_0xca8791(0x12d)+CLI_BIN_NAME+_0xca8791(0x124),'\x20\x20'+CLI_BIN_NAME+'\x20issue\x20report\x20\x5c',_0xca8791(0x131)+_0xd232a0+_0xca8791(0x139),'\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)',_0xca8791(0x137)+NUDGE_OPT_OUT_ENV+_0xca8791(0x130),'']['join']('\x0a');}
1
+ const a89_0x5e8be0=a89_0x4ef3;(function(_0x2bf7f8,_0x16921d){const _0x532c46=a89_0x4ef3,_0x282f1f=_0x2bf7f8();while(!![]){try{const _0x33c082=-parseInt(_0x532c46(0x10b))/0x1*(-parseInt(_0x532c46(0x10c))/0x2)+-parseInt(_0x532c46(0x101))/0x3*(-parseInt(_0x532c46(0x119))/0x4)+-parseInt(_0x532c46(0x10a))/0x5*(parseInt(_0x532c46(0x124))/0x6)+parseInt(_0x532c46(0x104))/0x7+-parseInt(_0x532c46(0x108))/0x8+-parseInt(_0x532c46(0x114))/0x9+-parseInt(_0x532c46(0x100))/0xa*(parseInt(_0x532c46(0x112))/0xb);if(_0x33c082===_0x16921d)break;else _0x282f1f['push'](_0x282f1f['shift']());}catch(_0x3b6124){_0x282f1f['push'](_0x282f1f['shift']());}}}(a89_0x3daf,0x3c907));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a89_0x5e8be0(0x107);function a89_0x4ef3(_0x1ef898,_0x50333a){_0x1ef898=_0x1ef898-0x100;const _0x3dafc0=a89_0x3daf();let _0x4ef338=_0x3dafc0[_0x1ef898];return _0x4ef338;}const NUDGE_SUPPRESSED_CODES=new Set([a89_0x5e8be0(0x103),a89_0x5e8be0(0x11d),'config_missing',a89_0x5e8be0(0x11b),a89_0x5e8be0(0x113),a89_0x5e8be0(0x11e),'validation_error',a89_0x5e8be0(0x117)]),defaultWriter=_0x1d6abb=>{const _0x4730da=a89_0x5e8be0;process[_0x4730da(0x109)]['write'](_0x1d6abb);};export function shouldNudgeForError(_0x2f7b60,_0x28fe0d){const _0x264d53=a89_0x5e8be0;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x28fe0d['service']==='issue'&&_0x28fe0d[_0x264d53(0x122)]===_0x264d53(0x10e))return![];if(_0x2f7b60 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x264d53(0x102)](_0x2f7b60[_0x264d53(0x10f)]);return!![];}export function printIssueReportNudgeForError(_0x130fb2,_0x20e383,_0xe2f95f=defaultWriter){if(!shouldNudgeForError(_0x130fb2,_0x20e383))return;const _0x237802=buildSuggestedTitle(_0x130fb2,_0x20e383);_0xe2f95f(formatNudge(_0x237802));}function buildSuggestedTitle(_0x209093,_0x28bfa9){const _0x484d84=a89_0x5e8be0,_0x11dcf0=_0x209093 instanceof Error?_0x209093[_0x484d84(0x105)]:String(_0x209093),_0x41d044=_0x11dcf0[_0x484d84(0x11f)](/[\r\n]+/g,'\x20')[_0x484d84(0x11f)](/\s+/g,'\x20')[_0x484d84(0x11c)]()[_0x484d84(0x118)](0x0,0x78)[_0x484d84(0x11f)](/"/g,'\x5c\x22'),_0x5aff96=CLI_BIN_NAME+'\x20'+_0x28bfa9[_0x484d84(0x120)]+'\x20'+_0x28bfa9['command'];return _0x41d044[_0x484d84(0x121)]>0x0?_0x5aff96+':\x20'+_0x41d044:_0x5aff96;}function a89_0x3daf(){const _0x5d11a3=['13384KAqtxZ','54oSyDLw','\x20\x20\x20\x20--title\x20\x22','report','code','\x20\x20Set\x20','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','6017zhCMnb','unknown_command','347373ydDxNC','Hit\x20a\x20','\x20issue\x20report\x20\x5c','network_error','slice','74772HgBJGp','=1\x20to\x20silence\x20this\x20hint.','not_in_project','trim','auth_required','flag_missing','replace','service','length','command','\x20bug?\x20Help\x20us\x20fix\x20it:','42NPWIky','950RYlaVN','9WpwrBm','has','cancelled','1837584wfenCL','message','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','RABETBASE_DISABLE_ISSUE_NUDGE','2523016mPxzmr','stderr','18535lyUxEZ'];a89_0x3daf=function(){return _0x5d11a3;};return a89_0x3daf();}function formatNudge(_0x3f817e){const _0x2113c4=a89_0x5e8be0;return['',_0x2113c4(0x115)+CLI_BIN_NAME+_0x2113c4(0x123),'\x20\x20'+CLI_BIN_NAME+_0x2113c4(0x116),_0x2113c4(0x10d)+_0x3f817e+'\x22\x20\x5c',_0x2113c4(0x106),_0x2113c4(0x111),_0x2113c4(0x110)+NUDGE_OPT_OUT_ENV+_0x2113c4(0x11a),'']['join']('\x0a');}
@@ -1 +1 @@
1
- function a89_0x106b(_0x717d27,_0x160236){_0x717d27=_0x717d27-0xb1;const _0x387586=a89_0x3875();let _0x106b9f=_0x387586[_0x717d27];return _0x106b9f;}const a89_0x3af9e7=a89_0x106b;(function(_0x371a5c,_0x53920f){const _0x4f3191=a89_0x106b,_0x40368a=_0x371a5c();while(!![]){try{const _0x151cbf=parseInt(_0x4f3191(0xe5))/0x1*(parseInt(_0x4f3191(0xb3))/0x2)+-parseInt(_0x4f3191(0xca))/0x3*(parseInt(_0x4f3191(0xe4))/0x4)+parseInt(_0x4f3191(0xc3))/0x5*(-parseInt(_0x4f3191(0xbc))/0x6)+parseInt(_0x4f3191(0xd8))/0x7+parseInt(_0x4f3191(0xea))/0x8*(-parseInt(_0x4f3191(0xc6))/0x9)+-parseInt(_0x4f3191(0xef))/0xa+parseInt(_0x4f3191(0xd7))/0xb*(parseInt(_0x4f3191(0xe6))/0xc);if(_0x151cbf===_0x53920f)break;else _0x40368a['push'](_0x40368a['shift']());}catch(_0x13b9cb){_0x40368a['push'](_0x40368a['shift']());}}}(a89_0x3875,0xd7a89));function a89_0x3875(){const _0x8a8415=['cwd','descriptionSource','str','sanitize','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','Issue\x20description\x20file\x20is\x20empty:\x20','Issue\x20description\x20cannot\x20be\x20empty.','\x20bytes','4exfsVC','257shAkge','36yZoeYh','originalBytes','apiError','description','8881688RVbjBA','message','filter','title','Platform\x20issue\x20reported','625830GHGMrz','redactionCount','truncated','13318jApMpg','redactionKinds','issue.title','\x20secret(s):\x20','push','file','join','compress','descriptionFilePath','6eLGUJK','report','issue.description','issue.description_truncated','length','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','6732055vujZCd','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','issue','9MFIZtB','otel://','write','validation','1294287cmATcu','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','trim','utf8','descriptionFile:\x20','issue.description_redaction_kinds','redactions:\x20','inline','string','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','descriptionSource:\x20','description-file','truncated:\x20original\x20','5697439sXKGQs','3981327CSPNIH','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','Failed\x20to\x20report\x20platform\x20issue:\x20'];a89_0x3875=function(){return _0x8a8415;};return a89_0x3875();}import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a89_0x3af9e7(0xd5);export const issueReport={'service':a89_0x3af9e7(0xc5),'command':a89_0x3af9e7(0xbd),'description':a89_0x3af9e7(0xd9),'risk':a89_0x3af9e7(0xc8),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a89_0x3af9e7(0xba),'flags':[{'name':a89_0x3af9e7(0xed),'type':a89_0x3af9e7(0xd2),'required':!![],'description':'One-line\x20issue\x20summary'},{'name':a89_0x3af9e7(0xe9),'type':a89_0x3af9e7(0xd2),'description':a89_0x3af9e7(0xc4)},{'name':DESCRIPTION_FILE_FLAG,'type':a89_0x3af9e7(0xd2),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x3b2bfb){const _0x34701f=a89_0x3af9e7,_0x12c1dc=_0x3b2bfb[_0x34701f(0xde)](_0x34701f(0xed))[_0x34701f(0xcc)](),_0x2ee296=_0x3b2bfb[_0x34701f(0xde)](_0x34701f(0xe9))[_0x34701f(0xcc)](),_0x2499b6=_0x3b2bfb[_0x34701f(0xde)](DESCRIPTION_FILE_FLAG)[_0x34701f(0xcc)]();if(!_0x12c1dc)throw CliErrors['flagMissing'](_0x34701f(0xed),_0x34701f(0xda));const _0x44cbc3=_0x2ee296['length']>0x0,_0x3a7bf9=_0x2499b6[_0x34701f(0xc0)]>0x0;if(_0x44cbc3===_0x3a7bf9)throw CliErrors[_0x34701f(0xc9)](_0x34701f(0xd3),_0x34701f(0xcb));if(_0x3a7bf9){const _0x55dd29=resolve(process[_0x34701f(0xdc)](),_0x2499b6);if(!existsSync(_0x55dd29))throw CliErrors[_0x34701f(0xc9)]('File\x20not\x20found:\x20'+_0x55dd29);}},async 'dryRun'(_0x232363){const _0x5490ea=a89_0x3af9e7,_0x293ec8=await prepareIssueReport(_0x232363);return{'method':'POST','url':_0x5490ea(0xc7)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x293ec8[_0x5490ea(0xed)],'issue.description':_0x293ec8[_0x5490ea(0xe9)],'issue.description_original_bytes':_0x293ec8[_0x5490ea(0xdf)][_0x5490ea(0xe7)],'issue.description_truncated':_0x293ec8[_0x5490ea(0xdf)][_0x5490ea(0xb2)],'issue.description_redactions':_0x293ec8[_0x5490ea(0xdf)][_0x5490ea(0xb1)],'issue.description_redaction_kinds':_0x293ec8[_0x5490ea(0xdf)][_0x5490ea(0xb4)][_0x5490ea(0xb9)](',')}},'description':[_0x5490ea(0xc1),_0x5490ea(0xd4)+_0x293ec8[_0x5490ea(0xdd)],_0x293ec8[_0x5490ea(0xbb)]?_0x5490ea(0xce)+_0x293ec8['descriptionFilePath']:null,_0x293ec8[_0x5490ea(0xdf)][_0x5490ea(0xb2)]?_0x5490ea(0xd6)+_0x293ec8['sanitize']['originalBytes']+_0x5490ea(0xe3):null,_0x293ec8[_0x5490ea(0xdf)][_0x5490ea(0xb1)]>0x0?_0x5490ea(0xd0)+_0x293ec8[_0x5490ea(0xdf)]['redactionCount']+'\x20('+_0x293ec8[_0x5490ea(0xdf)]['redactionKinds'][_0x5490ea(0xb9)](',\x20')+')':null][_0x5490ea(0xec)](Boolean)[_0x5490ea(0xb9)]('\x0a')};},async 'execute'(_0x4e02f5){const _0x1ddd60=a89_0x3af9e7,_0x2bb5ff=await prepareIssueReport(_0x4e02f5);try{await sendPlatformIssueCollectLog({'title':_0x2bb5ff[_0x1ddd60(0xed)],'description':_0x2bb5ff[_0x1ddd60(0xe9)],'sanitize':{'originalBytes':_0x2bb5ff['sanitize']['originalBytes'],'truncated':_0x2bb5ff[_0x1ddd60(0xdf)]['truncated'],'redactionCount':_0x2bb5ff[_0x1ddd60(0xdf)]['redactionCount'],'redactionKinds':_0x2bb5ff[_0x1ddd60(0xdf)][_0x1ddd60(0xb4)]}});}catch(_0xe9872a){throw CliErrors[_0x1ddd60(0xe8)](_0x1ddd60(0xdb)+(_0xe9872a instanceof Error?_0xe9872a[_0x1ddd60(0xeb)]:String(_0xe9872a)),_0x1ddd60(0xc2));}return{'ok':!![],'message':buildResultMessage(_0x2bb5ff[_0x1ddd60(0xdf)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x1ddd60(0xb5),_0x1ddd60(0xbe),'issue.description_original_bytes',_0x1ddd60(0xbf),'issue.description_redactions',_0x1ddd60(0xcf)],'issue':{'title':_0x2bb5ff['title'],'descriptionLength':_0x2bb5ff[_0x1ddd60(0xe9)]['length'],'descriptionSource':_0x2bb5ff['descriptionSource'],..._0x2bb5ff[_0x1ddd60(0xbb)]?{'descriptionFile':_0x2bb5ff[_0x1ddd60(0xbb)]}:{},'sanitize':{'originalBytes':_0x2bb5ff[_0x1ddd60(0xdf)]['originalBytes'],'truncated':_0x2bb5ff[_0x1ddd60(0xdf)][_0x1ddd60(0xb2)],'redactions':_0x2bb5ff['sanitize'][_0x1ddd60(0xb1)],'redactionKinds':_0x2bb5ff[_0x1ddd60(0xdf)]['redactionKinds']}}}};}};function buildResultMessage(_0x442d94){const _0x166a41=a89_0x3af9e7,_0x12ea58=[];return _0x442d94[_0x166a41(0xb2)]&&_0x12ea58[_0x166a41(0xb7)]('truncated\x20from\x20'+_0x442d94[_0x166a41(0xe7)]+_0x166a41(0xe3)),_0x442d94['redactionCount']>0x0&&_0x12ea58[_0x166a41(0xb7)]('redacted\x20'+_0x442d94[_0x166a41(0xb1)]+_0x166a41(0xb6)+_0x442d94[_0x166a41(0xb4)][_0x166a41(0xb9)](',\x20')),_0x12ea58[_0x166a41(0xc0)]===0x0?_0x166a41(0xee):'Platform\x20issue\x20reported\x20('+_0x12ea58['join'](';\x20')+')';}async function prepareIssueReport(_0x378f96){const _0x199be8=a89_0x3af9e7,_0x486167=_0x378f96[_0x199be8(0xde)](_0x199be8(0xed))[_0x199be8(0xcc)](),_0x2eb9ca=_0x378f96[_0x199be8(0xde)]('description'),_0x5cab52=_0x378f96[_0x199be8(0xde)](DESCRIPTION_FILE_FLAG)[_0x199be8(0xcc)]();if(!_0x5cab52){const _0x4501dc=_0x2eb9ca;if(!_0x4501dc[_0x199be8(0xcc)]())throw CliErrors[_0x199be8(0xc9)](_0x199be8(0xe2),_0x199be8(0xe0));const _0x95cbda=sanitizeIssueDescription(_0x4501dc);return{'title':_0x486167,'description':_0x95cbda[_0x199be8(0xe9)],'descriptionSource':_0x199be8(0xd1),'sanitize':_0x95cbda};}const _0x29863f=resolve(process[_0x199be8(0xdc)](),_0x5cab52),_0xcf20e5=await readFile(_0x29863f,_0x199be8(0xcd));if(!_0xcf20e5['trim']())throw CliErrors[_0x199be8(0xc9)](_0x199be8(0xe1)+_0x29863f,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x2f45c3=sanitizeIssueDescription(_0xcf20e5);return{'title':_0x486167,'description':_0x2f45c3[_0x199be8(0xe9)],'descriptionSource':_0x199be8(0xb8),'descriptionFilePath':_0x29863f,'sanitize':_0x2f45c3};}
1
+ const a90_0x2d223d=a90_0x5eb1;(function(_0x2f056f,_0x47bfeb){const _0x58d963=a90_0x5eb1,_0x2bb19b=_0x2f056f();while(!![]){try{const _0x10c2ae=-parseInt(_0x58d963(0x140))/0x1*(-parseInt(_0x58d963(0x152))/0x2)+parseInt(_0x58d963(0x122))/0x3+parseInt(_0x58d963(0x132))/0x4*(parseInt(_0x58d963(0x120))/0x5)+-parseInt(_0x58d963(0x14c))/0x6*(parseInt(_0x58d963(0x159))/0x7)+parseInt(_0x58d963(0x12f))/0x8*(parseInt(_0x58d963(0x135))/0x9)+-parseInt(_0x58d963(0x13a))/0xa+-parseInt(_0x58d963(0x14d))/0xb*(parseInt(_0x58d963(0x125))/0xc);if(_0x10c2ae===_0x47bfeb)break;else _0x2bb19b['push'](_0x2bb19b['shift']());}catch(_0x2b4f4b){_0x2bb19b['push'](_0x2bb19b['shift']());}}}(a90_0xb79d,0x6d84d));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';function a90_0xb79d(){const _0x2cfb88=['9iJEzaD','redactions:\x20','sanitize','\x20bytes','originalBytes','2346720IaiuWK','POST','descriptionFilePath','File\x20not\x20found:\x20','file','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','158xZoCLN','descriptionSource:\x20','truncated:\x20original\x20','redacted\x20','utf8','issue.description_redactions','descriptionSource','truncated','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','otel://','trim','compress','6TSdWvm','22HliJWV','validation','string','redactionKinds','issue.description_redaction_kinds','6270cVgaYx','One-line\x20issue\x20summary','cwd','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','inline','Platform\x20issue\x20reported\x20(','2770243nIrZak','filter','issue.description_truncated','length','626925mdTNrO','apiError','2512599zhFjjU','join','message','3249996qXbhkp','description','Failed\x20to\x20report\x20platform\x20issue:\x20','title','flagMissing','Issue\x20description\x20file\x20is\x20empty:\x20','str','issue','push','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','296344iSfOQS','redactionCount','write','8yOUjJP','issue.description','\x20secret(s):\x20'];a90_0xb79d=function(){return _0x2cfb88;};return a90_0xb79d();}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='description-file';export const issueReport={'service':a90_0x2d223d(0x12c),'command':'report','description':a90_0x2d223d(0x148),'risk':a90_0x2d223d(0x131),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a90_0x2d223d(0x14b),'flags':[{'name':'title','type':a90_0x2d223d(0x14f),'required':!![],'description':a90_0x2d223d(0x153)},{'name':a90_0x2d223d(0x126),'type':'string','description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a90_0x2d223d(0x14f),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x1d7cfe){const _0x4bd544=a90_0x2d223d,_0x2eb64a=_0x1d7cfe[_0x4bd544(0x12b)]('title')[_0x4bd544(0x14a)](),_0x5a1b47=_0x1d7cfe['str'](_0x4bd544(0x126))['trim'](),_0x28ed1b=_0x1d7cfe['str'](DESCRIPTION_FILE_FLAG)[_0x4bd544(0x14a)]();if(!_0x2eb64a)throw CliErrors[_0x4bd544(0x129)](_0x4bd544(0x128),_0x4bd544(0x156));const _0x1e0236=_0x5a1b47[_0x4bd544(0x11f)]>0x0,_0x4bb742=_0x28ed1b['length']>0x0;if(_0x1e0236===_0x4bb742)throw CliErrors[_0x4bd544(0x14e)](_0x4bd544(0x12e),'Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x4bb742){const _0x2c6540=resolve(process[_0x4bd544(0x154)](),_0x28ed1b);if(!existsSync(_0x2c6540))throw CliErrors[_0x4bd544(0x14e)](_0x4bd544(0x13d)+_0x2c6540);}},async 'dryRun'(_0x50350e){const _0x112831=a90_0x2d223d,_0x4b8f63=await prepareIssueReport(_0x50350e);return{'method':_0x112831(0x13b),'url':_0x112831(0x149)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4b8f63[_0x112831(0x128)],'issue.description':_0x4b8f63['description'],'issue.description_original_bytes':_0x4b8f63[_0x112831(0x137)][_0x112831(0x139)],'issue.description_truncated':_0x4b8f63[_0x112831(0x137)][_0x112831(0x147)],'issue.description_redactions':_0x4b8f63[_0x112831(0x137)][_0x112831(0x130)],'issue.description_redaction_kinds':_0x4b8f63[_0x112831(0x137)][_0x112831(0x150)]['join'](',')}},'description':[_0x112831(0x155),_0x112831(0x141)+_0x4b8f63[_0x112831(0x146)],_0x4b8f63[_0x112831(0x13c)]?'descriptionFile:\x20'+_0x4b8f63[_0x112831(0x13c)]:null,_0x4b8f63['sanitize'][_0x112831(0x147)]?_0x112831(0x142)+_0x4b8f63[_0x112831(0x137)][_0x112831(0x139)]+_0x112831(0x138):null,_0x4b8f63['sanitize'][_0x112831(0x130)]>0x0?_0x112831(0x136)+_0x4b8f63[_0x112831(0x137)]['redactionCount']+'\x20('+_0x4b8f63[_0x112831(0x137)][_0x112831(0x150)][_0x112831(0x123)](',\x20')+')':null][_0x112831(0x11d)](Boolean)[_0x112831(0x123)]('\x0a')};},async 'execute'(_0x3473f8){const _0x53fc3f=a90_0x2d223d,_0x23ed12=await prepareIssueReport(_0x3473f8);try{await sendPlatformIssueCollectLog({'title':_0x23ed12[_0x53fc3f(0x128)],'description':_0x23ed12[_0x53fc3f(0x126)],'sanitize':{'originalBytes':_0x23ed12['sanitize'][_0x53fc3f(0x139)],'truncated':_0x23ed12[_0x53fc3f(0x137)]['truncated'],'redactionCount':_0x23ed12[_0x53fc3f(0x137)][_0x53fc3f(0x130)],'redactionKinds':_0x23ed12['sanitize'][_0x53fc3f(0x150)]}});}catch(_0x2c1c1d){throw CliErrors[_0x53fc3f(0x121)](_0x53fc3f(0x127)+(_0x2c1c1d instanceof Error?_0x2c1c1d[_0x53fc3f(0x124)]:String(_0x2c1c1d)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x23ed12[_0x53fc3f(0x137)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title',_0x53fc3f(0x133),'issue.description_original_bytes',_0x53fc3f(0x11e),_0x53fc3f(0x145),_0x53fc3f(0x151)],'issue':{'title':_0x23ed12[_0x53fc3f(0x128)],'descriptionLength':_0x23ed12[_0x53fc3f(0x126)][_0x53fc3f(0x11f)],'descriptionSource':_0x23ed12[_0x53fc3f(0x146)],..._0x23ed12[_0x53fc3f(0x13c)]?{'descriptionFile':_0x23ed12[_0x53fc3f(0x13c)]}:{},'sanitize':{'originalBytes':_0x23ed12['sanitize'][_0x53fc3f(0x139)],'truncated':_0x23ed12[_0x53fc3f(0x137)][_0x53fc3f(0x147)],'redactions':_0x23ed12[_0x53fc3f(0x137)][_0x53fc3f(0x130)],'redactionKinds':_0x23ed12[_0x53fc3f(0x137)]['redactionKinds']}}}};}};function buildResultMessage(_0xd1ca83){const _0x17e129=a90_0x2d223d,_0x5428a1=[];return _0xd1ca83[_0x17e129(0x147)]&&_0x5428a1[_0x17e129(0x12d)]('truncated\x20from\x20'+_0xd1ca83[_0x17e129(0x139)]+'\x20bytes'),_0xd1ca83[_0x17e129(0x130)]>0x0&&_0x5428a1[_0x17e129(0x12d)](_0x17e129(0x143)+_0xd1ca83[_0x17e129(0x130)]+_0x17e129(0x134)+_0xd1ca83['redactionKinds'][_0x17e129(0x123)](',\x20')),_0x5428a1[_0x17e129(0x11f)]===0x0?'Platform\x20issue\x20reported':_0x17e129(0x158)+_0x5428a1['join'](';\x20')+')';}function a90_0x5eb1(_0x12c8cd,_0x316d2b){_0x12c8cd=_0x12c8cd-0x11d;const _0xb79dae=a90_0xb79d();let _0x5eb19f=_0xb79dae[_0x12c8cd];return _0x5eb19f;}async function prepareIssueReport(_0x13f629){const _0x80c10c=a90_0x2d223d,_0x56ef16=_0x13f629[_0x80c10c(0x12b)](_0x80c10c(0x128))[_0x80c10c(0x14a)](),_0x32e552=_0x13f629[_0x80c10c(0x12b)]('description'),_0x225d30=_0x13f629[_0x80c10c(0x12b)](DESCRIPTION_FILE_FLAG)[_0x80c10c(0x14a)]();if(!_0x225d30){const _0x17cdf0=_0x32e552;if(!_0x17cdf0['trim']())throw CliErrors['validation']('Issue\x20description\x20cannot\x20be\x20empty.',_0x80c10c(0x13f));const _0x263384=sanitizeIssueDescription(_0x17cdf0);return{'title':_0x56ef16,'description':_0x263384['description'],'descriptionSource':_0x80c10c(0x157),'sanitize':_0x263384};}const _0x2553d2=resolve(process[_0x80c10c(0x154)](),_0x225d30),_0x18856d=await readFile(_0x2553d2,_0x80c10c(0x144));if(!_0x18856d['trim']())throw CliErrors[_0x80c10c(0x14e)](_0x80c10c(0x12a)+_0x2553d2,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x17c3d1=sanitizeIssueDescription(_0x18856d);return{'title':_0x56ef16,'description':_0x17c3d1[_0x80c10c(0x126)],'descriptionSource':_0x80c10c(0x13e),'descriptionFilePath':_0x2553d2,'sanitize':_0x17c3d1};}
@@ -1 +1 @@
1
- const a90_0x4cd0b3=a90_0x383e;(function(_0x587548,_0x4c6e71){const _0xc89def=a90_0x383e,_0x35217d=_0x587548();while(!![]){try{const _0x425d43=parseInt(_0xc89def(0x12b))/0x1+-parseInt(_0xc89def(0x115))/0x2+-parseInt(_0xc89def(0x12c))/0x3*(parseInt(_0xc89def(0x121))/0x4)+parseInt(_0xc89def(0x123))/0x5*(-parseInt(_0xc89def(0x129))/0x6)+-parseInt(_0xc89def(0x12a))/0x7+-parseInt(_0xc89def(0x127))/0x8+parseInt(_0xc89def(0x124))/0x9;if(_0x425d43===_0x4c6e71)break;else _0x35217d['push'](_0x35217d['shift']());}catch(_0xb1218f){_0x35217d['push'](_0x35217d['shift']());}}}(a90_0x1fb7,0x90b0d));function a90_0x1fb7(){const _0x6152b3=['REDACTED:bearer-jwt','pattern','utf8','cookie','3479116swUGAK','REDACTED:access-key','19615QEFvZK','32244147HEteZh','REDACTED:private-key','REDACTED:cookie','5143312xOvhbj','label','336hBafVr','7433405YLtIxo','855064EjKCwQ','3nDvqVp','private-key','toString','includes','byteLength','2101596OHhEVc','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','bearer-jwt','push','string','subarray','max','REDACTED:password'];a90_0x1fb7=function(){return _0x6152b3;};return a90_0x1fb7();}export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a90_0x4cd0b3(0x116),REDACTION_RULES=[{'kind':a90_0x4cd0b3(0x120),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a90_0x4cd0b3(0x126)},{'kind':'authorization','pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':a90_0x4cd0b3(0x111),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a90_0x4cd0b3(0x125)},{'kind':'access-key','pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a90_0x4cd0b3(0x122)},{'kind':'password','pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a90_0x4cd0b3(0x11c)},{'kind':a90_0x4cd0b3(0x117),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a90_0x4cd0b3(0x11d)}];export function sanitizeIssueDescription(_0x1824ca){const _0x3b443f=a90_0x4cd0b3,_0x4ca0db=Buffer['byteLength'](_0x1824ca,_0x3b443f(0x11f)),_0x4f3b64=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x1a515b=_0x1824ca,_0x194065=0x0;const _0xef4c03=[];if(!_0x4f3b64)for(const _0x15b6e6 of REDACTION_RULES){let _0x302cae=0x0;_0x1a515b=_0x1a515b['replace'](_0x15b6e6[_0x3b443f(0x11e)],(_0x135370,_0x340ba0)=>{const _0x10081c=_0x3b443f;_0x302cae+=0x1;const _0x5f2b58=typeof _0x340ba0===_0x10081c(0x119)?_0x340ba0:'';return _0x5f2b58+'['+_0x15b6e6[_0x10081c(0x128)]+']';}),_0x302cae>0x0&&(_0x194065+=_0x302cae,!_0xef4c03[_0x3b443f(0x113)](_0x15b6e6['kind'])&&_0xef4c03[_0x3b443f(0x118)](_0x15b6e6['kind']));}let _0x35cb0f=![];if(Buffer['byteLength'](_0x1a515b,'utf8')>ISSUE_DESCRIPTION_MAX_BYTES){_0x35cb0f=!![];const _0x3bfab8=Buffer[_0x3b443f(0x114)](TRUNCATION_NOTICE,_0x3b443f(0x11f)),_0x1515ac=Math[_0x3b443f(0x11b)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x3bfab8);_0x1a515b=sliceUtf8Bytes(_0x1a515b,_0x1515ac)+TRUNCATION_NOTICE;}return{'description':_0x1a515b,'originalBytes':_0x4ca0db,'truncated':_0x35cb0f,'redactionCount':_0x194065,'redactionKinds':_0xef4c03};}function a90_0x383e(_0x24ffba,_0x46057e){_0x24ffba=_0x24ffba-0x111;const _0x1fb7d7=a90_0x1fb7();let _0x383e5f=_0x1fb7d7[_0x24ffba];return _0x383e5f;}function sliceUtf8Bytes(_0x56b0a1,_0x445af2){const _0x73e87d=a90_0x4cd0b3;if(_0x445af2<=0x0)return'';const _0x484036=Buffer['from'](_0x56b0a1,_0x73e87d(0x11f));if(_0x484036[_0x73e87d(0x114)]<=_0x445af2)return _0x56b0a1;let _0xede223=_0x445af2;while(_0xede223>0x0){const _0x5013bc=_0x484036[_0xede223];if(_0x5013bc===undefined||(_0x5013bc&0xc0)!==0x80)break;_0xede223-=0x1;}return _0x484036[_0x73e87d(0x11a)](0x0,_0xede223)[_0x73e87d(0x112)](_0x73e87d(0x11f));}
1
+ function a91_0x8f74(){const _0xc6ee35=['REDACTED:password','private-key','423645fgQmVO','3782569SwNKzq','1876624jkNbcD','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','replace','string','183606sXnXIy','includes','push','cookie','subarray','bearer-jwt','authorization','REDACTED:access-key','47073bdJhba','utf8','byteLength','REDACTED:cookie','from','access-key','2NDrtzN','36JNIrOQ','96367GlYQBc','kind','40696DroRkI','password','max'];a91_0x8f74=function(){return _0xc6ee35;};return a91_0x8f74();}function a91_0x4ac0(_0x874a29,_0x5b35b3){_0x874a29=_0x874a29-0xa7;const _0x8f7464=a91_0x8f74();let _0x4ac0f6=_0x8f7464[_0x874a29];return _0x4ac0f6;}const a91_0x2143bb=a91_0x4ac0;(function(_0x534820,_0x34f5c9){const _0x7d6637=a91_0x4ac0,_0xb79ea3=_0x534820();while(!![]){try{const _0x52f984=-parseInt(_0x7d6637(0xc0))/0x1+parseInt(_0x7d6637(0xbe))/0x2*(parseInt(_0x7d6637(0xb8))/0x3)+parseInt(_0x7d6637(0xc2))/0x4+parseInt(_0x7d6637(0xaa))/0x5+-parseInt(_0x7d6637(0xb0))/0x6+-parseInt(_0x7d6637(0xab))/0x7+parseInt(_0x7d6637(0xac))/0x8*(parseInt(_0x7d6637(0xbf))/0x9);if(_0x52f984===_0x34f5c9)break;else _0xb79ea3['push'](_0xb79ea3['shift']());}catch(_0x573480){_0xb79ea3['push'](_0xb79ea3['shift']());}}}(a91_0x8f74,0x5d283));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a91_0x2143bb(0xad),REDACTION_RULES=[{'kind':a91_0x2143bb(0xb3),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a91_0x2143bb(0xbb)},{'kind':a91_0x2143bb(0xb6),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':a91_0x2143bb(0xa9),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a91_0x2143bb(0xbd),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a91_0x2143bb(0xb7)},{'kind':a91_0x2143bb(0xc3),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a91_0x2143bb(0xa8)},{'kind':a91_0x2143bb(0xb5),'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(_0xa2912d){const _0x2ceda4=a91_0x2143bb,_0x6e67bc=Buffer[_0x2ceda4(0xba)](_0xa2912d,_0x2ceda4(0xb9)),_0x14a9a3=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x46d7e0=_0xa2912d,_0x16fd83=0x0;const _0x461ffb=[];if(!_0x14a9a3)for(const _0xfe88d4 of REDACTION_RULES){let _0x398520=0x0;_0x46d7e0=_0x46d7e0[_0x2ceda4(0xae)](_0xfe88d4['pattern'],(_0x40013d,_0x362da7)=>{const _0x3cd813=_0x2ceda4;_0x398520+=0x1;const _0x542562=typeof _0x362da7===_0x3cd813(0xaf)?_0x362da7:'';return _0x542562+'['+_0xfe88d4['label']+']';}),_0x398520>0x0&&(_0x16fd83+=_0x398520,!_0x461ffb[_0x2ceda4(0xb1)](_0xfe88d4[_0x2ceda4(0xc1)])&&_0x461ffb[_0x2ceda4(0xb2)](_0xfe88d4[_0x2ceda4(0xc1)]));}let _0x5a4151=![];if(Buffer[_0x2ceda4(0xba)](_0x46d7e0,_0x2ceda4(0xb9))>ISSUE_DESCRIPTION_MAX_BYTES){_0x5a4151=!![];const _0x5c5fe4=Buffer['byteLength'](TRUNCATION_NOTICE,_0x2ceda4(0xb9)),_0x1d0af0=Math[_0x2ceda4(0xa7)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x5c5fe4);_0x46d7e0=sliceUtf8Bytes(_0x46d7e0,_0x1d0af0)+TRUNCATION_NOTICE;}return{'description':_0x46d7e0,'originalBytes':_0x6e67bc,'truncated':_0x5a4151,'redactionCount':_0x16fd83,'redactionKinds':_0x461ffb};}function sliceUtf8Bytes(_0x59e674,_0x6a10f){const _0x272175=a91_0x2143bb;if(_0x6a10f<=0x0)return'';const _0x286469=Buffer[_0x272175(0xbc)](_0x59e674,_0x272175(0xb9));if(_0x286469[_0x272175(0xba)]<=_0x6a10f)return _0x59e674;let _0x1b4566=_0x6a10f;while(_0x1b4566>0x0){const _0xfd08db=_0x286469[_0x1b4566];if(_0xfd08db===undefined||(_0xfd08db&0xc0)!==0x80)break;_0x1b4566-=0x1;}return _0x286469[_0x272175(0xb4)](0x0,_0x1b4566)['toString'](_0x272175(0xb9));}
@@ -1 +1 @@
1
- function a91_0x31a5(){const _0x3acb18=['message','toLocaleString','log','logs','650294ScsUSv','293204ZjCqSu','8ufKcHY','command','length','\x20\x20\x20Time:\x20','*\x20No\x20logs\x20found','show','clearLogs','forEach','warn','en-US','read','200073PZdeHt','Clear\x20command\x20history\x20logs','7975570jDQVYb','keys','3072083MtGbah','3hHyeOm','462lVddOZ','28570CbLlJG','3985695lkCBaF','\x20\x20\x20Details:\x20','level','duration','*\x20Lovrabet\x20CLI\x20logs:\x0a','success','View\x20command\x20history\x20logs','details'];a91_0x31a5=function(){return _0x3acb18;};return a91_0x31a5();}const a91_0x53f415=a91_0x3a78;function a91_0x3a78(_0x3a01d7,_0x36b660){_0x3a01d7=_0x3a01d7-0x182;const _0x31a577=a91_0x31a5();let _0x3a787e=_0x31a577[_0x3a01d7];return _0x3a787e;}(function(_0x5eeaf8,_0xb266e5){const _0x40e75c=a91_0x3a78,_0x5c7a13=_0x5eeaf8();while(!![]){try{const _0x2c278d=parseInt(_0x40e75c(0x19a))/0x1+parseInt(_0x40e75c(0x18d))/0x2*(parseInt(_0x40e75c(0x19f))/0x3)+parseInt(_0x40e75c(0x18e))/0x4+parseInt(_0x40e75c(0x1a1))/0x5*(-parseInt(_0x40e75c(0x1a0))/0x6)+parseInt(_0x40e75c(0x19e))/0x7*(parseInt(_0x40e75c(0x18f))/0x8)+parseInt(_0x40e75c(0x1a2))/0x9+-parseInt(_0x40e75c(0x19c))/0xa;if(_0x2c278d===_0xb266e5)break;else _0x5c7a13['push'](_0x5c7a13['shift']());}catch(_0x281b72){_0x5c7a13['push'](_0x5c7a13['shift']());}}}(a91_0x31a5,0x3b416));import{logger}from'../../utils/logger.js';function printLogs(_0x2258d4){const _0x4dc094=a91_0x3a78;if(_0x2258d4[_0x4dc094(0x191)]===0x0){console[_0x4dc094(0x18b)](_0x4dc094(0x193));return;}console[_0x4dc094(0x18b)](_0x4dc094(0x185)),_0x2258d4[_0x4dc094(0x196)]((_0x26c26a,_0x504ce3)=>{const _0x5c3db8=_0x4dc094,_0x817da3=new Date(_0x26c26a['timestamp'])[_0x5c3db8(0x18a)](_0x5c3db8(0x198)),_0x20948f=_0x26c26a['level']===_0x5c3db8(0x186)?'√':_0x26c26a[_0x5c3db8(0x183)]==='error'?'×':_0x26c26a[_0x5c3db8(0x183)]===_0x5c3db8(0x197)?'!':'i';console['log'](_0x504ce3+0x1+'.\x20'+_0x20948f+'\x20['+_0x26c26a[_0x5c3db8(0x190)]+']\x20'+_0x26c26a[_0x5c3db8(0x189)]),console[_0x5c3db8(0x18b)](_0x5c3db8(0x192)+_0x817da3),_0x26c26a['duration']&&console[_0x5c3db8(0x18b)]('\x20\x20\x20Duration:\x20'+_0x26c26a[_0x5c3db8(0x184)]+'ms'),_0x26c26a[_0x5c3db8(0x188)]&&Object[_0x5c3db8(0x19d)](_0x26c26a[_0x5c3db8(0x188)])[_0x5c3db8(0x191)]>0x0&&console['log'](_0x5c3db8(0x182)+JSON['stringify'](_0x26c26a[_0x5c3db8(0x188)],null,0x2)),console[_0x5c3db8(0x18b)]('');});}export const logsDefinitions=[{'service':a91_0x53f415(0x18c),'command':a91_0x53f415(0x194),'description':a91_0x53f415(0x187),'risk':a91_0x53f415(0x199),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x405059){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':a91_0x53f415(0x18c),'command':'clear','description':a91_0x53f415(0x19b),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x502312){const _0x249fb4=a91_0x53f415;return logger[_0x249fb4(0x195)](),console[_0x249fb4(0x18b)]('*\x20Logs\x20cleared'),{'ok':!![]};}}];
1
+ const a92_0x58f811=a92_0x5435;(function(_0x5520b5,_0xf2f098){const _0x48f8b1=a92_0x5435,_0x332d36=_0x5520b5();while(!![]){try{const _0x49479e=-parseInt(_0x48f8b1(0x186))/0x1*(-parseInt(_0x48f8b1(0x192))/0x2)+-parseInt(_0x48f8b1(0x183))/0x3+-parseInt(_0x48f8b1(0x1a3))/0x4+parseInt(_0x48f8b1(0x193))/0x5*(-parseInt(_0x48f8b1(0x199))/0x6)+parseInt(_0x48f8b1(0x181))/0x7*(parseInt(_0x48f8b1(0x197))/0x8)+-parseInt(_0x48f8b1(0x187))/0x9*(-parseInt(_0x48f8b1(0x19a))/0xa)+parseInt(_0x48f8b1(0x18c))/0xb;if(_0x49479e===_0xf2f098)break;else _0x332d36['push'](_0x332d36['shift']());}catch(_0x30743b){_0x332d36['push'](_0x332d36['shift']());}}}(a92_0x4e4a,0xafc5e));function a92_0x4e4a(){const _0x258104=['duration','toLocaleString','details','61215LJqoth','*\x20Logs\x20cleared','1957842MtCFZs','error','success','136499JzJqRL','9mCtcXG','logs','warn','View\x20command\x20history\x20logs','\x20\x20\x20Time:\x20','1587377vwIUjZ','readLogs','clear','keys','write','Clear\x20command\x20history\x20logs','14dSomhu','30fPHQTO','en-US','log','level','1088bBwUty','show','1220172yGlJil','12428840hviNVO','length','clearLogs','\x20\x20\x20Duration:\x20','message','*\x20Lovrabet\x20CLI\x20logs:\x0a','stringify','\x20\x20\x20Details:\x20','command','3757008caNqUx'];a92_0x4e4a=function(){return _0x258104;};return a92_0x4e4a();}function a92_0x5435(_0x447768,_0x39108e){_0x447768=_0x447768-0x17e;const _0x4e4ac6=a92_0x4e4a();let _0x54351c=_0x4e4ac6[_0x447768];return _0x54351c;}import{logger}from'../../utils/logger.js';function printLogs(_0x5c058b){const _0x1558bb=a92_0x5435;if(_0x5c058b[_0x1558bb(0x19b)]===0x0){console['log']('*\x20No\x20logs\x20found');return;}console[_0x1558bb(0x195)](_0x1558bb(0x19f)),_0x5c058b['forEach']((_0x372fca,_0x150607)=>{const _0x2177e0=_0x1558bb,_0x530a07=new Date(_0x372fca['timestamp'])[_0x2177e0(0x17f)](_0x2177e0(0x194)),_0x5c8fa9=_0x372fca['level']===_0x2177e0(0x185)?'√':_0x372fca[_0x2177e0(0x196)]===_0x2177e0(0x184)?'×':_0x372fca[_0x2177e0(0x196)]===_0x2177e0(0x189)?'!':'i';console[_0x2177e0(0x195)](_0x150607+0x1+'.\x20'+_0x5c8fa9+'\x20['+_0x372fca[_0x2177e0(0x1a2)]+']\x20'+_0x372fca[_0x2177e0(0x19e)]),console['log'](_0x2177e0(0x18b)+_0x530a07),_0x372fca['duration']&&console[_0x2177e0(0x195)](_0x2177e0(0x19d)+_0x372fca[_0x2177e0(0x17e)]+'ms'),_0x372fca[_0x2177e0(0x180)]&&Object[_0x2177e0(0x18f)](_0x372fca[_0x2177e0(0x180)])[_0x2177e0(0x19b)]>0x0&&console[_0x2177e0(0x195)](_0x2177e0(0x1a1)+JSON[_0x2177e0(0x1a0)](_0x372fca['details'],null,0x2)),console['log']('');});}export const logsDefinitions=[{'service':a92_0x58f811(0x188),'command':a92_0x58f811(0x198),'description':a92_0x58f811(0x18a),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x3fcdd8){const _0x53ea1c=a92_0x58f811;return printLogs(logger[_0x53ea1c(0x18d)]()),{'ok':!![]};}},{'service':a92_0x58f811(0x188),'command':a92_0x58f811(0x18e),'description':a92_0x58f811(0x191),'risk':a92_0x58f811(0x190),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1fabd4){const _0x5021cb=a92_0x58f811;return logger[_0x5021cb(0x19c)](),console['log'](_0x5021cb(0x182)),{'ok':!![]};}}];