@lovrabet/rabetbase-cli 2.1.14-beta.2 → 2.2.0-beta.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 (209) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -0
  60. package/lib/commands/dataset/relation-delete.js +1 -0
  61. package/lib/commands/dataset/relation-shared.js +1 -0
  62. package/lib/commands/dataset/relation-update.js +1 -0
  63. package/lib/commands/dataset/relations.js +1 -0
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/shared/compare-table.js +1 -1
  87. package/lib/commands/menu/shared/index.js +1 -1
  88. package/lib/commands/menu/shared/inquirer.js +1 -1
  89. package/lib/commands/menu/shared/local-pages.js +1 -1
  90. package/lib/commands/menu/shared/logic.js +1 -1
  91. package/lib/commands/menu/shared/service.js +1 -1
  92. package/lib/commands/menu/shared/sync-core.js +1 -1
  93. package/lib/commands/menu/shared/update-core.js +1 -1
  94. package/lib/commands/menu/shared/valid-url.js +1 -1
  95. package/lib/commands/menu/sync.js +1 -1
  96. package/lib/commands/menu/update.js +1 -1
  97. package/lib/commands/page/generate-start.js +1 -1
  98. package/lib/commands/page/generate-status.js +1 -1
  99. package/lib/commands/page/index.js +1 -1
  100. package/lib/commands/page/pull.js +1 -1
  101. package/lib/commands/page/push.js +1 -1
  102. package/lib/commands/page/relation-audit.js +1 -0
  103. package/lib/commands/page/shared.js +1 -1
  104. package/lib/commands/page/standard-page-status.js +1 -1
  105. package/lib/commands/page/sync.js +1 -1
  106. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  107. package/lib/commands/project/create/format-elapsed.js +1 -1
  108. package/lib/commands/project/create/main.js +1 -1
  109. package/lib/commands/project/create/non-interactive.js +1 -1
  110. package/lib/commands/project/create/project-template-path.js +1 -1
  111. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  112. package/lib/commands/project/create/use-format-code.js +1 -1
  113. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  114. package/lib/commands/project/index.js +1 -1
  115. package/lib/commands/project/init.js +1 -1
  116. package/lib/commands/project/upgrade.js +1 -1
  117. package/lib/commands/registry.js +1 -1
  118. package/lib/commands/run/index.js +1 -1
  119. package/lib/commands/schema.js +1 -1
  120. package/lib/commands/skill/index.js +1 -1
  121. package/lib/commands/sql/create.js +1 -1
  122. package/lib/commands/sql/delete.js +1 -1
  123. package/lib/commands/sql/detail.js +1 -1
  124. package/lib/commands/sql/exec.js +1 -1
  125. package/lib/commands/sql/index.js +1 -1
  126. package/lib/commands/sql/list.js +1 -1
  127. package/lib/commands/sql/pull.js +1 -1
  128. package/lib/commands/sql/push.js +1 -1
  129. package/lib/commands/sql/save.js +1 -1
  130. package/lib/commands/sql/shared.js +1 -1
  131. package/lib/commands/sql/status.js +1 -1
  132. package/lib/commands/sql/validate.js +1 -1
  133. package/lib/config/schema.js +1 -1
  134. package/lib/constant/cdn.js +1 -1
  135. package/lib/constant/cli.js +1 -1
  136. package/lib/constant/defaults.js +1 -1
  137. package/lib/constant/domain.js +1 -1
  138. package/lib/constant/env.js +1 -1
  139. package/lib/constant/output.js +1 -1
  140. package/lib/constant/paths.js +1 -1
  141. package/lib/constant/risk.js +1 -1
  142. package/lib/context.js +1 -1
  143. package/lib/core/alias-resolver.js +1 -1
  144. package/lib/core/api-client.js +1 -1
  145. package/lib/core/bff/config.js +1 -1
  146. package/lib/core/bff/file-system.js +1 -1
  147. package/lib/core/bff/hash.js +1 -1
  148. package/lib/core/bff/lock.js +1 -1
  149. package/lib/core/bff/utils.js +1 -1
  150. package/lib/core/db-resolver.js +1 -1
  151. package/lib/core/page/file-system.js +1 -1
  152. package/lib/core/page/hash.js +1 -1
  153. package/lib/core/page/lock.js +1 -1
  154. package/lib/core/sql-sync/config.js +1 -1
  155. package/lib/core/sql-sync/file-system.js +1 -1
  156. package/lib/core/sql-sync/hash.js +1 -1
  157. package/lib/core/sql-sync/lock.js +1 -1
  158. package/lib/core/sql-sync/utils.js +1 -1
  159. package/lib/core/sql-validator.js +1 -1
  160. package/lib/errors.js +1 -1
  161. package/lib/framework/build-all-flags.js +1 -1
  162. package/lib/framework/flags.js +1 -1
  163. package/lib/framework/help.js +1 -1
  164. package/lib/framework/index.js +1 -1
  165. package/lib/framework/output.js +1 -1
  166. package/lib/framework/response.js +1 -1
  167. package/lib/framework/runner-alias.js +1 -1
  168. package/lib/framework/runner.js +1 -1
  169. package/lib/framework/schema-export.js +1 -1
  170. package/lib/framework/types.js +1 -1
  171. package/lib/generated/build-info.js +1 -1
  172. package/lib/help.js +1 -1
  173. package/lib/skills/main.js +1 -1
  174. package/lib/skills/npx-skills-add.js +1 -1
  175. package/lib/telemetry/cli-command-trace.js +1 -1
  176. package/lib/telemetry/cli-help-trace.js +1 -1
  177. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  178. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  179. package/lib/telemetry/send-cli-trace-log.js +1 -1
  180. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  181. package/lib/utils/ai_config.js +1 -1
  182. package/lib/utils/apply-jq-filter.js +1 -1
  183. package/lib/utils/cdn-config.js +1 -1
  184. package/lib/utils/check-sdk-version.js +1 -1
  185. package/lib/utils/cli-version-check.js +1 -1
  186. package/lib/utils/cli-version-policy.js +1 -1
  187. package/lib/utils/config.js +1 -1
  188. package/lib/utils/copy-directory.js +1 -1
  189. package/lib/utils/entity-with-id.js +1 -1
  190. package/lib/utils/file-utils.js +1 -1
  191. package/lib/utils/guides-cdn.js +1 -1
  192. package/lib/utils/http-client.js +1 -1
  193. package/lib/utils/is-non-interactive.js +1 -1
  194. package/lib/utils/logger.js +1 -1
  195. package/lib/utils/params.js +1 -1
  196. package/lib/utils/platform.js +1 -1
  197. package/lib/utils/rules-cdn.js +1 -1
  198. package/lib/utils/sleep.js +1 -1
  199. package/lib/utils/template-replacer.js +1 -1
  200. package/lib/utils/update-notice.js +1 -0
  201. package/lib/utils/version.js +1 -1
  202. package/lib/utils/with-active-cookie.js +1 -1
  203. package/lib/utils/write-cli-side-channel.js +1 -1
  204. package/package.json +1 -1
  205. package/lib/commands/dataset/link-create.js +0 -1
  206. package/lib/commands/dataset/link-delete.js +0 -1
  207. package/lib/commands/dataset/link-shared.js +0 -1
  208. package/lib/commands/dataset/link-update.js +0 -1
  209. package/lib/commands/dataset/links.js +0 -1
@@ -1 +1 @@
1
- const a66_0x33d51e=a66_0x3cb8;(function(_0x46637e,_0x314941){const _0x2f8579=a66_0x3cb8,_0x504a6c=_0x46637e();while(!![]){try{const _0x5d49f6=parseInt(_0x2f8579(0x132))/0x1*(-parseInt(_0x2f8579(0x133))/0x2)+-parseInt(_0x2f8579(0x129))/0x3+parseInt(_0x2f8579(0x136))/0x4*(-parseInt(_0x2f8579(0x12f))/0x5)+parseInt(_0x2f8579(0x137))/0x6*(parseInt(_0x2f8579(0x126))/0x7)+-parseInt(_0x2f8579(0x128))/0x8*(parseInt(_0x2f8579(0x127))/0x9)+-parseInt(_0x2f8579(0x131))/0xa+parseInt(_0x2f8579(0x12d))/0xb;if(_0x5d49f6===_0x314941)break;else _0x504a6c['push'](_0x504a6c['shift']());}catch(_0x4808da){_0x504a6c['push'](_0x504a6c['shift']());}}}(a66_0x5615,0xa5404));import{getDbAnalysisStatus}from'../../core/api-client.js';function a66_0x5615(){const _0x348387=['Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','41410578WxCiRo','analyze-status','417165xYOwpn','num','5335680lQQHob','1DOmbXb','1713518vyWueH','string','Analysis\x20status\x20for\x20','52MmSxPa','47274dFKSag','140TIxTgU','100899JKPRCE','24VrqpUf','2210163FgFqbP','str'];a66_0x5615=function(){return _0x348387;};return a66_0x5615();}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';function a66_0x3cb8(_0x2769a6,_0x2b2686){_0x2769a6=_0x2769a6-0x126;const _0x5615d2=a66_0x5615();let _0x3cb882=_0x5615d2[_0x2769a6];return _0x3cb882;}export const dbAnalyzeStatus={'service':'db','command':a66_0x33d51e(0x12e),'description':a66_0x33d51e(0x12b),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':'plan','type':a66_0x33d51e(0x134),'required':!![],'description':a66_0x33d51e(0x12c)}],async 'execute'(_0x9d56d2){const _0x4ed24a=a66_0x33d51e,_0xb2cbe7=_0x9d56d2[_0x4ed24a(0x130)]('id'),_0x239e32=_0x9d56d2[_0x4ed24a(0x12a)]('plan'),_0x23ea38=await getDbAnalysisStatus(_0x239e32),_0x1f5068=buildDbPageLinks(_0x9d56d2['appCode'],_0xb2cbe7);return{'ok':!![],'data':{'dbLinkId':_0xb2cbe7,'planId':_0x239e32,'status':_0x23ea38,..._0x1f5068?{'links':_0x1f5068}:{}},'message':_0x4ed24a(0x135)+_0x239e32};}};
1
+ const a66_0x353146=a66_0x18d5;(function(_0x27c459,_0x1e4fa3){const _0x2f60d7=a66_0x18d5,_0x140457=_0x27c459();while(!![]){try{const _0x58e6a4=parseInt(_0x2f60d7(0xce))/0x1*(parseInt(_0x2f60d7(0xc7))/0x2)+parseInt(_0x2f60d7(0xc5))/0x3*(parseInt(_0x2f60d7(0xc4))/0x4)+parseInt(_0x2f60d7(0xc3))/0x5+parseInt(_0x2f60d7(0xc6))/0x6+parseInt(_0x2f60d7(0xc8))/0x7+-parseInt(_0x2f60d7(0xd1))/0x8*(-parseInt(_0x2f60d7(0xc2))/0x9)+-parseInt(_0x2f60d7(0xc9))/0xa;if(_0x58e6a4===_0x1e4fa3)break;else _0x140457['push'](_0x140457['shift']());}catch(_0x42feb7){_0x140457['push'](_0x140457['shift']());}}}(a66_0x3421,0xdfe28));function a66_0x3421(){const _0x5e2c8e=['analyze-status','376408rYcKko','54FLKalJ','2465650BdudoD','5755148vWoIYD','3GfOiFa','10072146JuHCRI','621816xRCwRI','11546171GOKEAS','49362430ewKMUo','string','appCode','str','read','1VXPCXB','plan'];a66_0x3421=function(){return _0x5e2c8e;};return a66_0x3421();}import{getDbAnalysisStatus}from'../../core/api-client.js';function a66_0x18d5(_0x3fd71d,_0x5304a2){_0x3fd71d=_0x3fd71d-0xc2;const _0x3421c4=a66_0x3421();let _0x18d537=_0x3421c4[_0x3fd71d];return _0x18d537;}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';export const dbAnalyzeStatus={'service':'db','command':a66_0x353146(0xd0),'description':'Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','risk':a66_0x353146(0xcd),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a66_0x353146(0xcf),'type':a66_0x353146(0xca),'required':!![],'description':'Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)'}],async 'execute'(_0x96367){const _0x440805=a66_0x353146,_0x15dcab=_0x96367['num']('id'),_0xb2bb7e=_0x96367[_0x440805(0xcc)](_0x440805(0xcf)),_0x1a3b91=await getDbAnalysisStatus(_0xb2bb7e),_0x1d4a47=buildDbPageLinks(_0x96367[_0x440805(0xcb)],_0x15dcab);return{'ok':!![],'data':{'dbLinkId':_0x15dcab,'planId':_0xb2bb7e,'status':_0x1a3b91,..._0x1d4a47?{'links':_0x1d4a47}:{}},'message':'Analysis\x20status\x20for\x20'+_0xb2bb7e};}};
@@ -1 +1 @@
1
- const a67_0x825e3e=a67_0x2f85;(function(_0x48155b,_0x39fb01){const _0xf542ae=a67_0x2f85,_0x26d553=_0x48155b();while(!![]){try{const _0x3535b4=-parseInt(_0xf542ae(0x135))/0x1*(parseInt(_0xf542ae(0x12a))/0x2)+parseInt(_0xf542ae(0x14e))/0x3+parseInt(_0xf542ae(0x137))/0x4+-parseInt(_0xf542ae(0x128))/0x5+-parseInt(_0xf542ae(0x141))/0x6*(parseInt(_0xf542ae(0x133))/0x7)+parseInt(_0xf542ae(0x127))/0x8+-parseInt(_0xf542ae(0x143))/0x9*(parseInt(_0xf542ae(0x12e))/0xa);if(_0x3535b4===_0x39fb01)break;else _0x26d553['push'](_0x26d553['shift']());}catch(_0x5348ac){_0x26d553['push'](_0x26d553['shift']());}}}(a67_0x5b22,0xdc839));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';function a67_0x2f85(_0x12c761,_0x391244){_0x12c761=_0x12c761-0x127;const _0x5b2271=a67_0x5b22();let _0x2f85e5=_0x5b2271[_0x12c761];return _0x2f85e5;}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a67_0x5b22(){const _0x17fd88=['dbparam','username','Human-readable\x20description','7bVxqjn','bool','59tRhIeM','Database\x20password','3539808ZUbnDi','8.0','dbversion','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','string','dbname','No\x20follow-up\x20analysis','Database\x20username','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','join','5642514DYUyUD','databasePage','108XojRfz','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','Create\x20dblink','/smartapi/dblink/create','Host\x20and\x20port:\x20host:port','Created\x20db\x20link\x20','appCode','[redacted]','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','validation','After\x20create,\x20start\x20schema\x20analysis','4331190KWZhGI','boolean','Extra\x20JDBC-style\x20connection\x20parameters\x20string','dbdesc','password','str','POST','trim',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','message','14307960vMtmrN','1582800QTfznR','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','11974NfDEny','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','dburl','autostart','1336450fQfqbF','dbtype'];a67_0x5b22=function(){return _0x17fd88;};return a67_0x5b22();}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':'create','description':a67_0x825e3e(0x13a),'risk':'write','flags':[APPCODE_FLAG_OPTIONAL,{'name':a67_0x825e3e(0x13c),'type':a67_0x825e3e(0x13b),'required':!![],'description':a67_0x825e3e(0x129)},DB_TYPE_FLAG,{'name':a67_0x825e3e(0x139),'type':a67_0x825e3e(0x13b),'description':a67_0x825e3e(0x13f),'default':a67_0x825e3e(0x138)},{'name':a67_0x825e3e(0x12c),'type':a67_0x825e3e(0x13b),'required':!![],'description':a67_0x825e3e(0x147)},{'name':a67_0x825e3e(0x131),'type':'string','required':!![],'description':a67_0x825e3e(0x13e)},{'name':'password','type':a67_0x825e3e(0x13b),'required':!![],'description':a67_0x825e3e(0x136)},{'name':a67_0x825e3e(0x130),'type':a67_0x825e3e(0x13b),'description':a67_0x825e3e(0x150)},{'name':a67_0x825e3e(0x151),'type':a67_0x825e3e(0x13b),'description':a67_0x825e3e(0x132)},{'name':a67_0x825e3e(0x12d),'type':a67_0x825e3e(0x14f),'description':a67_0x825e3e(0x14d),'default':![]}],async 'validate'(_0x173daf){const _0xd9d46c=a67_0x825e3e,_0x3489d2=_0x173daf[_0xd9d46c(0x153)](_0xd9d46c(0x12c))[_0xd9d46c(0x155)]();if(!validateDbUrl(_0x3489d2))throw CliErrors[_0xd9d46c(0x14c)]('Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22'+_0x3489d2+'\x22',_0xd9d46c(0x144));},async 'dryRun'(_0x2be887){const _0x1ed641=a67_0x825e3e,_0x5398a3={'appCode':_0x2be887[_0x1ed641(0x149)],'dbName':_0x2be887[_0x1ed641(0x153)](_0x1ed641(0x13c)),'dbType':_0x2be887[_0x1ed641(0x153)](_0x1ed641(0x12f)),'dbVersion':_0x2be887['str'](_0x1ed641(0x139))||_0x1ed641(0x138),'dbUrl':_0x2be887[_0x1ed641(0x153)](_0x1ed641(0x12c))[_0x1ed641(0x155)](),'username':_0x2be887[_0x1ed641(0x153)]('username'),'password':_0x1ed641(0x14a),..._0x2be887[_0x1ed641(0x153)](_0x1ed641(0x130))?{'dbParam':_0x2be887['str'](_0x1ed641(0x130))}:{},..._0x2be887[_0x1ed641(0x153)](_0x1ed641(0x151))?{'dbDesc':_0x2be887[_0x1ed641(0x153)](_0x1ed641(0x151))}:{}};return{'method':_0x1ed641(0x154),'url':_0x1ed641(0x146),'body':_0x5398a3,'description':[_0x1ed641(0x145),_0x2be887[_0x1ed641(0x134)](_0x1ed641(0x12d))?_0x1ed641(0x14b):_0x1ed641(0x13d)][_0x1ed641(0x140)]('\x0a')};},async 'execute'(_0x5de547){const _0x14dad6=a67_0x825e3e,_0x43b1b7={'appCode':_0x5de547[_0x14dad6(0x149)],'dbName':_0x5de547['str'](_0x14dad6(0x13c)),'dbType':_0x5de547[_0x14dad6(0x153)](_0x14dad6(0x12f)),'dbVersion':_0x5de547['str'](_0x14dad6(0x139))||_0x14dad6(0x138),'dbUrl':_0x5de547[_0x14dad6(0x153)](_0x14dad6(0x12c))[_0x14dad6(0x155)](),'username':_0x5de547[_0x14dad6(0x153)](_0x14dad6(0x131)),'password':_0x5de547[_0x14dad6(0x153)](_0x14dad6(0x152)),..._0x5de547[_0x14dad6(0x153)]('dbparam')?{'dbParam':_0x5de547[_0x14dad6(0x153)](_0x14dad6(0x130))}:{},..._0x5de547[_0x14dad6(0x153)](_0x14dad6(0x151))?{'dbDesc':_0x5de547[_0x14dad6(0x153)](_0x14dad6(0x151))}:{}},{id:_0x20dbfd,entity:_0x347bf7}=normalizeEntityWithIdResponse(await createDbLink(_0x43b1b7));if(!_0x20dbfd)return{'ok':![],'message':_0x14dad6(0x12b),'data':sanitizeDbLinkForOutput(_0x347bf7)};let _0x615473,_0x2d51a4;if(_0x5de547[_0x14dad6(0x134)](_0x14dad6(0x12d)))try{_0x615473=await startDbAnalysis(_0x20dbfd);}catch(_0x30a096){_0x2d51a4=_0x30a096 instanceof Error?_0x30a096[_0x14dad6(0x157)]:String(_0x30a096);}const _0x3e06cc=buildDbPageLinks(_0x5de547[_0x14dad6(0x149)],_0x20dbfd),_0x5793ad={'connection':sanitizeDbLinkForOutput(_0x347bf7),..._0x3e06cc?{'links':{'databasePage':_0x3e06cc[_0x14dad6(0x142)]}}:{},..._0x615473?{'analysisPlanId':_0x615473}:{},..._0x2d51a4?{'analysisStartWarning':_0x2d51a4}:{}};let _0x40851b;return _0x5de547[_0x14dad6(0x134)](_0x14dad6(0x12d))?_0x2d51a4?_0x40851b=_0x14dad6(0x148)+_0x20dbfd+_0x14dad6(0x156):_0x40851b=_0x14dad6(0x148)+_0x20dbfd+'\x20and\x20started\x20analysis':_0x40851b=_0x14dad6(0x148)+_0x20dbfd,{'ok':!![],'data':_0x5793ad,'message':_0x40851b};}};
1
+ const a67_0x202f91=a67_0x34b0;(function(_0x3801b5,_0x1b9950){const _0x498ee9=a67_0x34b0,_0x1415db=_0x3801b5();while(!![]){try{const _0x5ee838=parseInt(_0x498ee9(0x1cb))/0x1*(parseInt(_0x498ee9(0x1e9))/0x2)+-parseInt(_0x498ee9(0x1e6))/0x3*(parseInt(_0x498ee9(0x1e0))/0x4)+-parseInt(_0x498ee9(0x1c2))/0x5*(-parseInt(_0x498ee9(0x1ce))/0x6)+-parseInt(_0x498ee9(0x1d2))/0x7+parseInt(_0x498ee9(0x1e3))/0x8*(parseInt(_0x498ee9(0x1e7))/0x9)+parseInt(_0x498ee9(0x1e5))/0xa*(parseInt(_0x498ee9(0x1d0))/0xb)+parseInt(_0x498ee9(0x1c3))/0xc*(-parseInt(_0x498ee9(0x1d6))/0xd);if(_0x5ee838===_0x1b9950)break;else _0x1415db['push'](_0x1415db['shift']());}catch(_0x478d88){_0x1415db['push'](_0x1415db['shift']());}}}(a67_0x4557,0xa4047));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 a67_0x34b0(_0x5b2ef7,_0xe3b61d){_0x5b2ef7=_0x5b2ef7-0x1bb;const _0x45576f=a67_0x4557();let _0x34b0e9=_0x45576f[_0x5b2ef7];return _0x34b0e9;}import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a67_0x4557(){const _0x27de7c=['1077439LIXxRE','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','1352820vsJIcv','After\x20create,\x20start\x20schema\x20analysis','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','Extra\x20JDBC-style\x20connection\x20parameters\x20string','1782183MAVUlc','dbversion','username','bool','dbparam',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','write','dbdesc','\x20and\x20started\x20analysis','password','3135716EbRMVV','dburl','[redacted]','16VfJuiY','8.0','50gVTPeK','3PNnCGT','4635567PyrjJk','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','299230bGwSDy','Database\x20username','Human-readable\x20description','dbname','message','trim','Created\x20db\x20link\x20','string','POST','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','5CzbpgD','192tTlJeT','boolean','join','autostart','No\x20follow-up\x20analysis','str','appCode','Host\x20and\x20port:\x20host:port','7XhyfFZ','dbtype','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','7651704XXCutM','databasePage'];a67_0x4557=function(){return _0x27de7c;};return a67_0x4557();}export const dbCreate={'service':'db','command':'create','description':a67_0x202f91(0x1cd),'risk':a67_0x202f91(0x1dc),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a67_0x202f91(0x1ec),'type':a67_0x202f91(0x1bd),'required':!![],'description':a67_0x202f91(0x1c1)},DB_TYPE_FLAG,{'name':a67_0x202f91(0x1d7),'type':'string','description':a67_0x202f91(0x1d4),'default':'8.0'},{'name':a67_0x202f91(0x1e1),'type':a67_0x202f91(0x1bd),'required':!![],'description':a67_0x202f91(0x1ca)},{'name':a67_0x202f91(0x1d8),'type':a67_0x202f91(0x1bd),'required':!![],'description':a67_0x202f91(0x1ea)},{'name':a67_0x202f91(0x1df),'type':a67_0x202f91(0x1bd),'required':!![],'description':'Database\x20password'},{'name':a67_0x202f91(0x1da),'type':a67_0x202f91(0x1bd),'description':a67_0x202f91(0x1d5)},{'name':'dbdesc','type':a67_0x202f91(0x1bd),'description':a67_0x202f91(0x1eb)},{'name':a67_0x202f91(0x1c6),'type':a67_0x202f91(0x1c4),'description':a67_0x202f91(0x1d3),'default':![]}],async 'validate'(_0x1981f0){const _0x51a07c=a67_0x202f91,_0x1b5ac5=_0x1981f0['str']('dburl')[_0x51a07c(0x1bb)]();if(!validateDbUrl(_0x1b5ac5))throw CliErrors['validation'](_0x51a07c(0x1d1)+_0x1b5ac5+'\x22',_0x51a07c(0x1bf));},async 'dryRun'(_0x144166){const _0x1ee400=a67_0x202f91,_0x4e0015={'appCode':_0x144166[_0x1ee400(0x1c9)],'dbName':_0x144166[_0x1ee400(0x1c8)](_0x1ee400(0x1ec)),'dbType':_0x144166['str'](_0x1ee400(0x1cc)),'dbVersion':_0x144166['str'](_0x1ee400(0x1d7))||_0x1ee400(0x1e4),'dbUrl':_0x144166[_0x1ee400(0x1c8)]('dburl')['trim'](),'username':_0x144166[_0x1ee400(0x1c8)](_0x1ee400(0x1d8)),'password':_0x1ee400(0x1e2),..._0x144166[_0x1ee400(0x1c8)](_0x1ee400(0x1da))?{'dbParam':_0x144166[_0x1ee400(0x1c8)](_0x1ee400(0x1da))}:{},..._0x144166[_0x1ee400(0x1c8)]('dbdesc')?{'dbDesc':_0x144166['str'](_0x1ee400(0x1dd))}:{}};return{'method':_0x1ee400(0x1be),'url':'/smartapi/dblink/create','body':_0x4e0015,'description':['Create\x20dblink',_0x144166[_0x1ee400(0x1d9)](_0x1ee400(0x1c6))?_0x1ee400(0x1e8):_0x1ee400(0x1c7)][_0x1ee400(0x1c5)]('\x0a')};},async 'execute'(_0x6f8d36){const _0x16c557=a67_0x202f91,_0x4af1bb={'appCode':_0x6f8d36[_0x16c557(0x1c9)],'dbName':_0x6f8d36[_0x16c557(0x1c8)](_0x16c557(0x1ec)),'dbType':_0x6f8d36[_0x16c557(0x1c8)](_0x16c557(0x1cc)),'dbVersion':_0x6f8d36[_0x16c557(0x1c8)]('dbversion')||'8.0','dbUrl':_0x6f8d36[_0x16c557(0x1c8)]('dburl')[_0x16c557(0x1bb)](),'username':_0x6f8d36[_0x16c557(0x1c8)](_0x16c557(0x1d8)),'password':_0x6f8d36[_0x16c557(0x1c8)](_0x16c557(0x1df)),..._0x6f8d36[_0x16c557(0x1c8)](_0x16c557(0x1da))?{'dbParam':_0x6f8d36[_0x16c557(0x1c8)](_0x16c557(0x1da))}:{},..._0x6f8d36['str'](_0x16c557(0x1dd))?{'dbDesc':_0x6f8d36[_0x16c557(0x1c8)](_0x16c557(0x1dd))}:{}},{id:_0x98607,entity:_0x16fd72}=normalizeEntityWithIdResponse(await createDbLink(_0x4af1bb));if(!_0x98607)return{'ok':![],'message':_0x16c557(0x1c0),'data':sanitizeDbLinkForOutput(_0x16fd72)};let _0xa31071,_0x5024e8;if(_0x6f8d36[_0x16c557(0x1d9)]('autostart'))try{_0xa31071=await startDbAnalysis(_0x98607);}catch(_0x2a0e84){_0x5024e8=_0x2a0e84 instanceof Error?_0x2a0e84[_0x16c557(0x1ed)]:String(_0x2a0e84);}const _0xa5353f=buildDbPageLinks(_0x6f8d36[_0x16c557(0x1c9)],_0x98607),_0x55231c={'connection':sanitizeDbLinkForOutput(_0x16fd72),..._0xa5353f?{'links':{'databasePage':_0xa5353f[_0x16c557(0x1cf)]}}:{},..._0xa31071?{'analysisPlanId':_0xa31071}:{},..._0x5024e8?{'analysisStartWarning':_0x5024e8}:{}};let _0x3494e5;return _0x6f8d36['bool']('autostart')?_0x5024e8?_0x3494e5=_0x16c557(0x1bc)+_0x98607+_0x16c557(0x1db):_0x3494e5=_0x16c557(0x1bc)+_0x98607+_0x16c557(0x1de):_0x3494e5=_0x16c557(0x1bc)+_0x98607,{'ok':!![],'data':_0x55231c,'message':_0x3494e5};}};
@@ -1 +1 @@
1
- const a68_0x513a50=a68_0x5e00;function a68_0x5e00(_0x3df872,_0x368eef){_0x3df872=_0x3df872-0x1ae;const _0x2b1758=a68_0x2b17();let _0x5e00d1=_0x2b1758[_0x3df872];return _0x5e00d1;}(function(_0x46089f,_0x1c7c55){const _0x573233=a68_0x5e00,_0x4ea265=_0x46089f();while(!![]){try{const _0x64e6c8=-parseInt(_0x573233(0x1ae))/0x1+parseInt(_0x573233(0x1b3))/0x2+parseInt(_0x573233(0x1b2))/0x3+-parseInt(_0x573233(0x1b6))/0x4*(parseInt(_0x573233(0x1b0))/0x5)+-parseInt(_0x573233(0x1b7))/0x6+parseInt(_0x573233(0x1b1))/0x7*(parseInt(_0x573233(0x1af))/0x8)+-parseInt(_0x573233(0x1b8))/0x9;if(_0x64e6c8===_0x1c7c55)break;else _0x4ea265['push'](_0x4ea265['shift']());}catch(_0x216c4d){_0x4ea265['push'](_0x4ea265['shift']());}}}(a68_0x2b17,0x747de));import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a68_0x2b17(){const _0x145e2b=['1443837KyJaxt','828784FscrMt','Deleted\x20db\x20link\x20','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','57548zUxACd','572334CCbwzH','1289601tOjkZM','159611ZYEYay','248icfMSS','85XhUyRb','50659oHEPNc'];a68_0x2b17=function(){return _0x145e2b;};return a68_0x2b17();}export const dbDelete={'service':'db','command':'delete','description':a68_0x513a50(0x1b5),'risk':'high-risk-write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x27c221){const _0x19be15=a68_0x513a50,_0x5e0139=_0x27c221['num']('id');return await deleteDbLink(_0x5e0139),{'ok':!![],'data':{'id':_0x5e0139,'deleted':!![]},'message':_0x19be15(0x1b4)+_0x5e0139};}};
1
+ const a68_0x156141=a68_0x5ae7;function a68_0x5ae7(_0x1d975a,_0x3258b2){_0x1d975a=_0x1d975a-0x74;const _0x458407=a68_0x4584();let _0x5ae7bf=_0x458407[_0x1d975a];return _0x5ae7bf;}(function(_0x22bccf,_0x4896a2){const _0x2d8d6a=a68_0x5ae7,_0x408f29=_0x22bccf();while(!![]){try{const _0x20557f=parseInt(_0x2d8d6a(0x77))/0x1+parseInt(_0x2d8d6a(0x7e))/0x2+parseInt(_0x2d8d6a(0x7f))/0x3*(parseInt(_0x2d8d6a(0x7d))/0x4)+-parseInt(_0x2d8d6a(0x7b))/0x5+parseInt(_0x2d8d6a(0x78))/0x6+parseInt(_0x2d8d6a(0x7a))/0x7+-parseInt(_0x2d8d6a(0x7c))/0x8;if(_0x20557f===_0x4896a2)break;else _0x408f29['push'](_0x408f29['shift']());}catch(_0x1a3173){_0x408f29['push'](_0x408f29['shift']());}}}(a68_0x4584,0x528eb));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':'delete','description':a68_0x156141(0x79),'risk':a68_0x156141(0x76),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5e2597){const _0x5e3f44=a68_0x156141,_0x5becd6=_0x5e2597[_0x5e3f44(0x74)]('id');return await deleteDbLink(_0x5becd6),{'ok':!![],'data':{'id':_0x5becd6,'deleted':!![]},'message':_0x5e3f44(0x75)+_0x5becd6};}};function a68_0x4584(){const _0x366085=['68828cmPyxC','1337874RemuXi','9Cdilpm','num','Deleted\x20db\x20link\x20','high-risk-write','122997OckmwX','1969572bKEBxc','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','886186NtbonJ','2123555crxsEA','4284392EPCmdV'];a68_0x4584=function(){return _0x366085;};return a68_0x4584();}
@@ -1 +1 @@
1
- const a69_0x2f9088=a69_0x3d11;(function(_0x1dce8a,_0x185916){const _0x3c053d=a69_0x3d11,_0x44775b=_0x1dce8a();while(!![]){try{const _0x557bee=-parseInt(_0x3c053d(0x1cf))/0x1*(parseInt(_0x3c053d(0x1cb))/0x2)+parseInt(_0x3c053d(0x1c8))/0x3+-parseInt(_0x3c053d(0x1cd))/0x4*(-parseInt(_0x3c053d(0x1d5))/0x5)+-parseInt(_0x3c053d(0x1d1))/0x6*(-parseInt(_0x3c053d(0x1d2))/0x7)+parseInt(_0x3c053d(0x1d3))/0x8*(-parseInt(_0x3c053d(0x1c4))/0x9)+-parseInt(_0x3c053d(0x1cc))/0xa*(-parseInt(_0x3c053d(0x1c3))/0xb)+parseInt(_0x3c053d(0x1c6))/0xc*(-parseInt(_0x3c053d(0x1c5))/0xd);if(_0x557bee===_0x185916)break;else _0x44775b['push'](_0x44775b['shift']());}catch(_0x3a85dc){_0x44775b['push'](_0x44775b['shift']());}}}(a69_0x19aa,0x91bce));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a69_0x19aa(){const _0x293477=['2633676TtNZWe','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','num','100634rHcoXQ','30tnggbJ','3872528xtVkFw','read','10KtXzcx','detail','6qKUgAO','6744010pEKpgd','24wGruHv','db\x20link\x20','5sdCyVD','1372041ZzgAXk','1015083EffzWO','26XhDznW','10471044RYWSxX','dbName'];a69_0x19aa=function(){return _0x293477;};return a69_0x19aa();}import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a69_0x3d11(_0x4dbb02,_0x2f1c63){_0x4dbb02=_0x4dbb02-0x1c3;const _0x19aa6c=a69_0x19aa();let _0x3d11aa=_0x19aa6c[_0x4dbb02];return _0x3d11aa;}export const dbDetail={'service':'db','command':a69_0x2f9088(0x1d0),'description':a69_0x2f9088(0x1c9),'risk':a69_0x2f9088(0x1ce),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x433cb4){const _0x4f9e62=a69_0x2f9088,_0x147c21=_0x433cb4[_0x4f9e62(0x1ca)]('id'),_0x3f5131=await getDbLinkInfo(_0x147c21);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x3f5131),'message':_0x4f9e62(0x1d4)+_0x147c21+':\x20'+_0x3f5131[_0x4f9e62(0x1c7)]};}};
1
+ const a69_0x306786=a69_0x4c2d;(function(_0x11711c,_0xa32ee4){const _0x24d922=a69_0x4c2d,_0x5a58fa=_0x11711c();while(!![]){try{const _0x4078a9=-parseInt(_0x24d922(0x176))/0x1+-parseInt(_0x24d922(0x179))/0x2+parseInt(_0x24d922(0x17b))/0x3*(-parseInt(_0x24d922(0x174))/0x4)+-parseInt(_0x24d922(0x17c))/0x5+parseInt(_0x24d922(0x175))/0x6+-parseInt(_0x24d922(0x17e))/0x7+parseInt(_0x24d922(0x177))/0x8;if(_0x4078a9===_0xa32ee4)break;else _0x5a58fa['push'](_0x5a58fa['shift']());}catch(_0x11bb21){_0x5a58fa['push'](_0x5a58fa['shift']());}}}(a69_0x199c,0x86934));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a69_0x199c(){const _0x188335=['408vOpIFz','3014664lQHijQ','425523ePpPCz','22933232wNVnLo','read','911214TjYuAs','db\x20link\x20','17517imeKqu','4011065AvKiBB','detail','3772699yGvPul','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','num','dbName'];a69_0x199c=function(){return _0x188335;};return a69_0x199c();}import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a69_0x4c2d(_0x454d13,_0x197402){_0x454d13=_0x454d13-0x174;const _0x199c08=a69_0x199c();let _0x4c2ded=_0x199c08[_0x454d13];return _0x4c2ded;}export const dbDetail={'service':'db','command':a69_0x306786(0x17d),'description':a69_0x306786(0x17f),'risk':a69_0x306786(0x178),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x44aa05){const _0x57e8aa=a69_0x306786,_0x55522e=_0x44aa05[_0x57e8aa(0x180)]('id'),_0x1dfcc2=await getDbLinkInfo(_0x55522e);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x1dfcc2),'message':_0x57e8aa(0x17a)+_0x55522e+':\x20'+_0x1dfcc2[_0x57e8aa(0x181)]};}};
@@ -1 +1 @@
1
- function a70_0x426a(_0x4a0df4,_0x71416d){_0x4a0df4=_0x4a0df4-0xc4;const _0x2240d7=a70_0x2240();let _0x426a93=_0x2240d7[_0x4a0df4];return _0x426a93;}const a70_0x1b0fe5=a70_0x426a;function a70_0x2240(){const _0x268058=['30ZCtlyF','read','length','3727715iVzgdA','Page\x20index\x20(1-based)','12TkvXkK','10mLfZpt','table','100764OCQIpU','20abfKhP','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','524916UcktGb','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','appCode','\x20(db\x20link\x20','2407405EZDmoq','\x20row(s),\x20total\x20','num','135iotKaf','234128RCQRNj','pagesize','9775777QhBCZn','number','page','1249366dGHFUE','4XGTssb','diff'];a70_0x2240=function(){return _0x268058;};return a70_0x2240();}(function(_0x1b5fc3,_0x536d64){const _0x533d81=a70_0x426a,_0x5628fa=_0x1b5fc3();while(!![]){try{const _0x425370=parseInt(_0x533d81(0xd9))/0x1+parseInt(_0x533d81(0xca))/0x2*(parseInt(_0x533d81(0xc9))/0x3)+parseInt(_0x533d81(0xda))/0x4*(-parseInt(_0x533d81(0xc4))/0x5)+parseInt(_0x533d81(0xdc))/0x6*(parseInt(_0x533d81(0xcc))/0x7)+parseInt(_0x533d81(0xd4))/0x8*(parseInt(_0x533d81(0xd3))/0x9)+parseInt(_0x533d81(0xc7))/0xa*(-parseInt(_0x533d81(0xd6))/0xb)+-parseInt(_0x533d81(0xc6))/0xc*(-parseInt(_0x533d81(0xd0))/0xd);if(_0x425370===_0x536d64)break;else _0x5628fa['push'](_0x5628fa['shift']());}catch(_0x3286cd){_0x5628fa['push'](_0x5628fa['shift']());}}}(a70_0x2240,0xe7f5f));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDiff={'service':'db','command':a70_0x1b0fe5(0xdb),'description':a70_0x1b0fe5(0xcd),'risk':a70_0x1b0fe5(0xdd),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':'string','description':a70_0x1b0fe5(0xcb)},{'name':'page','type':a70_0x1b0fe5(0xd7),'description':a70_0x1b0fe5(0xc5),'default':0x1},{'name':a70_0x1b0fe5(0xd5),'type':a70_0x1b0fe5(0xd7),'description':'Page\x20size','default':0x14}],async 'execute'(_0x2bc342){const _0x27c282=a70_0x1b0fe5,_0x4c4090=_0x2bc342['num']('id'),_0x13982d=_0x2bc342[_0x27c282(0xd2)](_0x27c282(0xd8),0x1)||0x1,_0xc32e1b=_0x2bc342[_0x27c282(0xd2)](_0x27c282(0xd5),0x14)||0x14,_0x57f75a=_0x2bc342['str'](_0x27c282(0xc8))||undefined,{totalCount:_0x5346c7,tableList:_0x1d1083}=await getDbTableDiff(_0x2bc342[_0x27c282(0xce)],_0x4c4090,{'pageIndex':_0x13982d,'pageSize':_0xc32e1b,'tableName':_0x57f75a});return{'ok':!![],'data':{'dbLinkId':_0x4c4090,'page':_0x13982d,'pageSize':_0xc32e1b,'totalCount':_0x5346c7,'tableList':_0x1d1083},'message':_0x1d1083[_0x27c282(0xde)]+_0x27c282(0xd1)+_0x5346c7+_0x27c282(0xcf)+_0x4c4090+')'};}};
1
+ const a70_0x3ca587=a70_0x1f09;function a70_0xebfb(){const _0x534efc=['30VEGkQD','448943SAxzbX','6721XUbaTn','6wbIZkj','91nexVqG','18484HbkmdG','num','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','Page\x20index\x20(1-based)','78PmfTVv','read','length','Page\x20size','474229YDFWHo','\x20row(s),\x20total\x20','number','94ovajEd','2084765rxeKHR','pagesize','650184UQArhG','str','page','3965616PAeZkM','8JQcinj'];a70_0xebfb=function(){return _0x534efc;};return a70_0xebfb();}function a70_0x1f09(_0xcfec1,_0x4305e8){_0xcfec1=_0xcfec1-0xe7;const _0xebfbcd=a70_0xebfb();let _0x1f0951=_0xebfbcd[_0xcfec1];return _0x1f0951;}(function(_0x5e88ea,_0x401b4c){const _0x499b26=a70_0x1f09,_0x250f86=_0x5e88ea();while(!![]){try{const _0x3526f3=parseInt(_0x499b26(0xee))/0x1*(-parseInt(_0x499b26(0xfc))/0x2)+-parseInt(_0x499b26(0xf5))/0x3*(-parseInt(_0x499b26(0xf1))/0x4)+-parseInt(_0x499b26(0xfd))/0x5*(parseInt(_0x499b26(0xef))/0x6)+parseInt(_0x499b26(0xf9))/0x7*(-parseInt(_0x499b26(0xeb))/0x8)+parseInt(_0x499b26(0xea))/0x9+-parseInt(_0x499b26(0xec))/0xa*(-parseInt(_0x499b26(0xed))/0xb)+parseInt(_0x499b26(0xe7))/0xc*(parseInt(_0x499b26(0xf0))/0xd);if(_0x3526f3===_0x401b4c)break;else _0x250f86['push'](_0x250f86['shift']());}catch(_0x4bbd92){_0x250f86['push'](_0x250f86['shift']());}}}(a70_0xebfb,0x3ff08));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDiff={'service':'db','command':'diff','description':a70_0x3ca587(0xf3),'risk':a70_0x3ca587(0xf6),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':'string','description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':a70_0x3ca587(0xe9),'type':a70_0x3ca587(0xfb),'description':a70_0x3ca587(0xf4),'default':0x1},{'name':'pagesize','type':'number','description':a70_0x3ca587(0xf8),'default':0x14}],async 'execute'(_0x23a5c6){const _0x4284c5=a70_0x3ca587,_0x3c7f28=_0x23a5c6['num']('id'),_0x37bbef=_0x23a5c6[_0x4284c5(0xf2)]('page',0x1)||0x1,_0x4fffb7=_0x23a5c6['num'](_0x4284c5(0xfe),0x14)||0x14,_0x25ffe5=_0x23a5c6[_0x4284c5(0xe8)]('table')||undefined,{totalCount:_0x33aef3,tableList:_0x1d2e47}=await getDbTableDiff(_0x23a5c6['appCode'],_0x3c7f28,{'pageIndex':_0x37bbef,'pageSize':_0x4fffb7,'tableName':_0x25ffe5});return{'ok':!![],'data':{'dbLinkId':_0x3c7f28,'page':_0x37bbef,'pageSize':_0x4fffb7,'totalCount':_0x33aef3,'tableList':_0x1d2e47},'message':_0x1d2e47[_0x4284c5(0xf7)]+_0x4284c5(0xfa)+_0x33aef3+'\x20(db\x20link\x20'+_0x3c7f28+')'};}};
@@ -1 +1 @@
1
- (function(_0x240904,_0x521a7b){const _0x180957=a71_0x16c7,_0x43fa1a=_0x240904();while(!![]){try{const _0x244df0=parseInt(_0x180957(0x154))/0x1*(parseInt(_0x180957(0x156))/0x2)+-parseInt(_0x180957(0x150))/0x3*(-parseInt(_0x180957(0x155))/0x4)+-parseInt(_0x180957(0x151))/0x5+-parseInt(_0x180957(0x157))/0x6+-parseInt(_0x180957(0x153))/0x7+parseInt(_0x180957(0x14f))/0x8+parseInt(_0x180957(0x152))/0x9;if(_0x244df0===_0x521a7b)break;else _0x43fa1a['push'](_0x43fa1a['shift']());}catch(_0x51ccaf){_0x43fa1a['push'](_0x43fa1a['shift']());}}}(a71_0x2f43,0x247f4));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';function a71_0x16c7(_0xa53864,_0x6bde6e){_0xa53864=_0xa53864-0x14f;const _0x2f4347=a71_0x2f43();let _0x16c718=_0x2f4347[_0xa53864];return _0x16c718;}import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';function a71_0x2f43(){const _0x298f79=['2764CKjRjb','1780590nvwMNf','2217576zwDWGu','218958uoeaHs','364420AygHYx','1164420hgFBQB','311248UkwylJ','8sdJUuB','8ETzFuD'];a71_0x2f43=function(){return _0x298f79;};return a71_0x2f43();}import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
1
+ (function(_0x3a749b,_0x29622e){const _0x2cb771=a71_0x15e0,_0x584dbb=_0x3a749b();while(!![]){try{const _0x4568cb=-parseInt(_0x2cb771(0x13c))/0x1+-parseInt(_0x2cb771(0x13e))/0x2*(-parseInt(_0x2cb771(0x141))/0x3)+-parseInt(_0x2cb771(0x140))/0x4+-parseInt(_0x2cb771(0x13f))/0x5+parseInt(_0x2cb771(0x142))/0x6+parseInt(_0x2cb771(0x144))/0x7*(parseInt(_0x2cb771(0x13d))/0x8)+parseInt(_0x2cb771(0x13b))/0x9*(parseInt(_0x2cb771(0x143))/0xa);if(_0x4568cb===_0x29622e)break;else _0x584dbb['push'](_0x584dbb['shift']());}catch(_0x456f17){_0x584dbb['push'](_0x584dbb['shift']());}}}(a71_0x6baa,0x582d8));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';function a71_0x6baa(){const _0x46c402=['715500vPgtiE','16yPnPhs','30HOJqYu','966520cOMiTQ','1058680swDNdI','136212stMMUb','3905424iWWZct','1817020Ckmxec','73444YNeqln','9TTokqD'];a71_0x6baa=function(){return _0x46c402;};return a71_0x6baa();}import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';function a71_0x15e0(_0x160436,_0x59c6cb){_0x160436=_0x160436-0x13b;const _0x6baab7=a71_0x6baa();let _0x15e01d=_0x6baab7[_0x160436];return _0x15e01d;}import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
@@ -1 +1 @@
1
- function a72_0x1ba8(_0x587dfe,_0x4f3360){_0x587dfe=_0x587dfe-0xdb;const _0x5a2b44=a72_0x5a2b();let _0x1ba83b=_0x5a2b44[_0x587dfe];return _0x1ba83b;}const a72_0x4796dd=a72_0x1ba8;(function(_0x46641f,_0x13a071){const _0xfac8b5=a72_0x1ba8,_0x187382=_0x46641f();while(!![]){try{const _0x4129db=parseInt(_0xfac8b5(0xe5))/0x1+parseInt(_0xfac8b5(0xe1))/0x2*(parseInt(_0xfac8b5(0xec))/0x3)+-parseInt(_0xfac8b5(0xdc))/0x4*(-parseInt(_0xfac8b5(0xe2))/0x5)+parseInt(_0xfac8b5(0xe4))/0x6+-parseInt(_0xfac8b5(0xe3))/0x7*(parseInt(_0xfac8b5(0xf1))/0x8)+-parseInt(_0xfac8b5(0xdd))/0x9+-parseInt(_0xfac8b5(0xe7))/0xa*(parseInt(_0xfac8b5(0xdb))/0xb);if(_0x4129db===_0x13a071)break;else _0x187382['push'](_0x187382['shift']());}catch(_0x4d345a){_0x187382['push'](_0x187382['shift']());}}}(a72_0x5a2b,0x45aea));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a72_0x4796dd(0xef),'description':a72_0x4796dd(0xe8),'risk':a72_0x4796dd(0xf0),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':a72_0x4796dd(0xee),'description':a72_0x4796dd(0xeb),'default':0x1},{'name':a72_0x4796dd(0xe0),'type':a72_0x4796dd(0xee),'description':a72_0x4796dd(0xde),'default':0x64}],async 'execute'(_0xa0a3a5){const _0x286dd9=a72_0x4796dd,_0x1b8cea=_0xa0a3a5[_0x286dd9(0xe6)]('page',0x1)||0x1,_0x2cd4f4=_0xa0a3a5['num']('pagesize',0x64)||0x64,{items:_0xccee0e,paging:_0x25c3dd}=await listDbLinks(_0xa0a3a5[_0x286dd9(0xe9)],{'currentPage':_0x1b8cea,'pageSize':_0x2cd4f4}),_0x538c49=sanitizeDbLinkList(_0xccee0e),_0x592244=_0x25c3dd?_0x25c3dd:{'currentPage':_0x1b8cea,'pageSize':_0x2cd4f4,'rowsOnPage':_0x538c49[_0x286dd9(0xea)],'totalCount':null,'note':_0x286dd9(0xdf)};return{'ok':!![],'data':{'connections':_0x538c49,'paging':_0x592244},'message':_0x286dd9(0xed)+_0x538c49['length']+'\x20database\x20connection(s)'};}};function a72_0x5a2b(){const _0x276045=['read','3606712wvilqH','1353891zOAnWD','8vmXSCl','1550817wiUdDb','Page\x20size','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','pagesize','2850jzuops','1382515Nidmyw','7qMWFBw','3189936gDBBDs','167138DGmmTL','num','50tYXIxv','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','appCode','length','Page\x20index\x20(1-based)','573RYclhV','Found\x20','number','list'];a72_0x5a2b=function(){return _0x276045;};return a72_0x5a2b();}
1
+ const a72_0x17eebb=a72_0x319c;(function(_0x2d6d83,_0x1dc6e4){const _0x49e726=a72_0x319c,_0x5600c0=_0x2d6d83();while(!![]){try{const _0x5233a8=-parseInt(_0x49e726(0x1b2))/0x1*(parseInt(_0x49e726(0x1ac))/0x2)+-parseInt(_0x49e726(0x1a8))/0x3*(parseInt(_0x49e726(0x1a7))/0x4)+parseInt(_0x49e726(0x1b5))/0x5+-parseInt(_0x49e726(0x1b4))/0x6*(parseInt(_0x49e726(0x1b3))/0x7)+parseInt(_0x49e726(0x1b9))/0x8+parseInt(_0x49e726(0x1a9))/0x9*(parseInt(_0x49e726(0x1ba))/0xa)+parseInt(_0x49e726(0x1bb))/0xb*(parseInt(_0x49e726(0x1aa))/0xc);if(_0x5233a8===_0x1dc6e4)break;else _0x5600c0['push'](_0x5600c0['shift']());}catch(_0x6c37c4){_0x5600c0['push'](_0x5600c0['shift']());}}}(a72_0x5a73,0x9098f));import{listDbLinks}from'../../core/api-client.js';function a72_0x5a73(){const _0x3975fe=['11RMGNUy','Page\x20size','number','length','16PQRxRd','111789VwhqQU','1948635KQOOMr','11735952CSkxFw','read','23614WyRhed','num','Page\x20index\x20(1-based)','\x20database\x20connection(s)','pagesize','list','99vaTvLs','623nLmdxg','24714mYmGoK','3589630wsLxAU','page','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','Found\x20','2914960KIyxXi','10AHuOWX'];a72_0x5a73=function(){return _0x3975fe;};return a72_0x5a73();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';function a72_0x319c(_0x2aa2d5,_0x47cb5a){_0x2aa2d5=_0x2aa2d5-0x1a7;const _0x5a73ef=a72_0x5a73();let _0x319c48=_0x5a73ef[_0x2aa2d5];return _0x319c48;}export const dbList={'service':'db','command':a72_0x17eebb(0x1b1),'description':'List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','risk':a72_0x17eebb(0x1ab),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a72_0x17eebb(0x1b6),'type':a72_0x17eebb(0x1bd),'description':a72_0x17eebb(0x1ae),'default':0x1},{'name':'pagesize','type':a72_0x17eebb(0x1bd),'description':a72_0x17eebb(0x1bc),'default':0x64}],async 'execute'(_0x15609d){const _0x4a8773=a72_0x17eebb,_0x371f5f=_0x15609d[_0x4a8773(0x1ad)](_0x4a8773(0x1b6),0x1)||0x1,_0x376b9d=_0x15609d[_0x4a8773(0x1ad)](_0x4a8773(0x1b0),0x64)||0x64,{items:_0x1a8cad,paging:_0x12041}=await listDbLinks(_0x15609d['appCode'],{'currentPage':_0x371f5f,'pageSize':_0x376b9d}),_0x51e512=sanitizeDbLinkList(_0x1a8cad),_0x1597ae=_0x12041?_0x12041:{'currentPage':_0x371f5f,'pageSize':_0x376b9d,'rowsOnPage':_0x51e512['length'],'totalCount':null,'note':_0x4a8773(0x1b7)};return{'ok':!![],'data':{'connections':_0x51e512,'paging':_0x1597ae},'message':_0x4a8773(0x1b8)+_0x51e512[_0x4a8773(0x1be)]+_0x4a8773(0x1af)};}};
@@ -1 +1 @@
1
- (function(_0x2e080d,_0x2b96f3){const _0x12ecd0=a73_0x40aa,_0x20d12e=_0x2e080d();while(!![]){try{const _0x574e1a=-parseInt(_0x12ecd0(0x138))/0x1*(parseInt(_0x12ecd0(0x133))/0x2)+-parseInt(_0x12ecd0(0x12a))/0x3+parseInt(_0x12ecd0(0x143))/0x4*(-parseInt(_0x12ecd0(0x12d))/0x5)+parseInt(_0x12ecd0(0x12e))/0x6+parseInt(_0x12ecd0(0x13f))/0x7+-parseInt(_0x12ecd0(0x13c))/0x8*(-parseInt(_0x12ecd0(0x12c))/0x9)+-parseInt(_0x12ecd0(0x12f))/0xa*(-parseInt(_0x12ecd0(0x135))/0xb);if(_0x574e1a===_0x2b96f3)break;else _0x20d12e['push'](_0x20d12e['shift']());}catch(_0x45451d){_0x20d12e['push'](_0x20d12e['shift']());}}}(a73_0xdb27,0x7fae5));function a73_0x40aa(_0x4612b2,_0x1ecf74){_0x4612b2=_0x4612b2-0x12a;const _0xdb2781=a73_0xdb27();let _0x40aa4a=_0xdb2781[_0x4612b2];return _0x40aa4a;}import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0x3e43db){const _0x2a59c8=a73_0x40aa,_0x1c7029=_0x3e43db['toLowerCase']();if(_0x1c7029===_0x2a59c8(0x131)||_0x1c7029===_0x2a59c8(0x139)||_0x1c7029==='dbpassword')return!![];if(_0x1c7029[_0x2a59c8(0x13e)]('secret')||_0x1c7029[_0x2a59c8(0x13e)]('token')||_0x1c7029[_0x2a59c8(0x13e)](_0x2a59c8(0x140)))return!![];if(_0x1c7029[_0x2a59c8(0x13e)](_0x2a59c8(0x136))||_0x1c7029[_0x2a59c8(0x13e)](_0x2a59c8(0x132)))return!![];if(_0x1c7029==='authorization'||_0x1c7029===_0x2a59c8(0x130)||_0x1c7029===_0x2a59c8(0x12b))return!![];return![];}function a73_0xdb27(){const _0x539c0a=['map','length','48RcqiTW','test','includes','6414296tbRcgs','credential','/data/er?dbId=','https://app.lovrabet.com/app/','1260880JpEeWs','1703286oTYBef','jdbcurl','800289RTwEqK','5mSxceH','3410190FgviYR','530mruKOK','connectionstring','password','accesskey','592646XZCbDz','number','57431vDyVab','privatekey','trim','3NGxqPW','passwd'];a73_0xdb27=function(){return _0x539c0a;};return a73_0xdb27();}export function sanitizeDbLinkForOutput(_0x1b6011){const _0x34f766=a73_0x40aa,_0xcfe60a={..._0x1b6011};for(const _0x162134 of Object['keys'](_0xcfe60a)){if(!shouldRedactKey(_0x162134))continue;const _0x3e9255=_0xcfe60a[_0x162134];_0x3e9255!=null&&String(_0x3e9255)[_0x34f766(0x13b)]>0x0&&(_0xcfe60a[_0x162134]='[redacted]');}return _0xcfe60a;}export function sanitizeDbLinkList(_0x2e2e1b){const _0x391a31=a73_0x40aa;return _0x2e2e1b[_0x391a31(0x13a)](_0x95aeb5=>sanitizeDbLinkForOutput(_0x95aeb5));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x202aa4){const _0x1b3fa0=a73_0x40aa,_0x1ecb4e=_0x202aa4[_0x1b3fa0(0x137)]();if(!_0x1ecb4e)return![];return DB_URL_PATTERN[_0x1b3fa0(0x13d)](_0x1ecb4e);}export function buildDbPageLinks(_0x11ab36,_0x293aa2){const _0x187cc6=a73_0x40aa,_0x3c44eb=_0x11ab36?.[_0x187cc6(0x137)]();if(!_0x3c44eb)return undefined;const _0x7de1d8=typeof _0x293aa2===_0x187cc6(0x134)?String(_0x293aa2):String(_0x293aa2??'')['trim']();if(!_0x7de1d8)return undefined;const _0x5071d1=Number(_0x7de1d8);if(!Number['isFinite'](_0x5071d1)||_0x5071d1<=0x0)return undefined;const _0x3b9449=isDaily(normalizeEnv(getEnv()))?'https://daily.lovrabet.com/web-app/app/'+encodeURIComponent(_0x3c44eb):_0x187cc6(0x142)+encodeURIComponent(_0x3c44eb),_0x4032a8=encodeURIComponent(String(_0x5071d1));return{'databasePage':_0x3b9449+'/data/database','erPage':_0x3b9449+_0x187cc6(0x141)+_0x4032a8};}
1
+ (function(_0x919e42,_0x5e5c6b){const _0x59ec2d=a73_0x2ad3,_0x3ad84a=_0x919e42();while(!![]){try{const _0x1d1aef=-parseInt(_0x59ec2d(0x158))/0x1+parseInt(_0x59ec2d(0x149))/0x2+parseInt(_0x59ec2d(0x14a))/0x3+parseInt(_0x59ec2d(0x14d))/0x4+-parseInt(_0x59ec2d(0x15c))/0x5+-parseInt(_0x59ec2d(0x156))/0x6+parseInt(_0x59ec2d(0x160))/0x7;if(_0x1d1aef===_0x5e5c6b)break;else _0x3ad84a['push'](_0x3ad84a['shift']());}catch(_0x3016c6){_0x3ad84a['push'](_0x3ad84a['shift']());}}}(a73_0x4ae0,0xcc014));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0x4053d9){const _0x220fe0=a73_0x2ad3,_0xc90202=_0x4053d9[_0x220fe0(0x151)]();if(_0xc90202==='password'||_0xc90202===_0x220fe0(0x159)||_0xc90202==='dbpassword')return!![];if(_0xc90202[_0x220fe0(0x15b)]('secret')||_0xc90202[_0x220fe0(0x15b)](_0x220fe0(0x153))||_0xc90202[_0x220fe0(0x15b)](_0x220fe0(0x154)))return!![];if(_0xc90202['includes'](_0x220fe0(0x14c))||_0xc90202[_0x220fe0(0x15b)](_0x220fe0(0x15d)))return!![];if(_0xc90202===_0x220fe0(0x14e)||_0xc90202===_0x220fe0(0x155)||_0xc90202===_0x220fe0(0x150))return!![];return![];}function a73_0x2ad3(_0x553d18,_0x4aa1df){_0x553d18=_0x553d18-0x149;const _0x4ae07c=a73_0x4ae0();let _0x2ad37f=_0x4ae07c[_0x553d18];return _0x2ad37f;}export function sanitizeDbLinkForOutput(_0x44a3a2){const _0x16efae=a73_0x2ad3,_0x25320e={..._0x44a3a2};for(const _0x1015f1 of Object[_0x16efae(0x157)](_0x25320e)){if(!shouldRedactKey(_0x1015f1))continue;const _0x40a11e=_0x25320e[_0x1015f1];_0x40a11e!=null&&String(_0x40a11e)[_0x16efae(0x14f)]>0x0&&(_0x25320e[_0x1015f1]='[redacted]');}return _0x25320e;}export function sanitizeDbLinkList(_0x2e27ef){return _0x2e27ef['map'](_0x50ff1a=>sanitizeDbLinkForOutput(_0x50ff1a));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;function a73_0x4ae0(){const _0xcbc890=['3548705QnOGym','accesskey','number','test','4403728MwbbOT','706146FzWOeW','4474071YWmGgJ','/data/er?dbId=','privatekey','3557064MzHUEJ','authorization','length','jdbcurl','toLowerCase','trim','token','credential','connectionstring','3044364bSLPIx','keys','1310061KhYTpZ','passwd','/data/database','includes'];a73_0x4ae0=function(){return _0xcbc890;};return a73_0x4ae0();}export function validateDbUrl(_0x554964){const _0x126f7f=a73_0x2ad3,_0x4f3c66=_0x554964[_0x126f7f(0x152)]();if(!_0x4f3c66)return![];return DB_URL_PATTERN[_0x126f7f(0x15f)](_0x4f3c66);}export function buildDbPageLinks(_0xf739e5,_0x17a397){const _0x3c27fa=a73_0x2ad3,_0x7a2501=_0xf739e5?.['trim']();if(!_0x7a2501)return undefined;const _0xe84f0f=typeof _0x17a397===_0x3c27fa(0x15e)?String(_0x17a397):String(_0x17a397??'')['trim']();if(!_0xe84f0f)return undefined;const _0x461f8e=Number(_0xe84f0f);if(!Number['isFinite'](_0x461f8e)||_0x461f8e<=0x0)return undefined;const _0x4dd487=isDaily(normalizeEnv(getEnv()))?'https://daily.lovrabet.com/web-app/app/'+encodeURIComponent(_0x7a2501):'https://app.lovrabet.com/app/'+encodeURIComponent(_0x7a2501),_0x56d580=encodeURIComponent(String(_0x461f8e));return{'databasePage':_0x4dd487+_0x3c27fa(0x15a),'erPage':_0x4dd487+_0x3c27fa(0x14b)+_0x56d580};}
@@ -1 +1 @@
1
- function a74_0x1db8(){const _0x5b6da8=['appCode','num','241570vsBMGw','length','32zSSIOR','155862GQmQio','\x20table(s)\x20on\x20db\x20link\x20','tables','2275656WwBFWA','674436mPmjZa','1183oQvIIA','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','923256nsYVVu','13356APEKWQ','1148016ORWwpN'];a74_0x1db8=function(){return _0x5b6da8;};return a74_0x1db8();}const a74_0x2e8478=a74_0x403f;(function(_0x4ea598,_0x29ddb9){const _0x4c8507=a74_0x403f,_0x4f3b87=_0x4ea598();while(!![]){try{const _0x1e6c2b=-parseInt(_0x4c8507(0xe1))/0x1+parseInt(_0x4c8507(0xd6))/0x2+parseInt(_0x4c8507(0xdb))/0x3+parseInt(_0x4c8507(0xd5))/0x4+-parseInt(_0x4c8507(0xde))/0x5+-parseInt(_0x4c8507(0xda))/0x6*(parseInt(_0x4c8507(0xd7))/0x7)+-parseInt(_0x4c8507(0xe0))/0x8*(parseInt(_0x4c8507(0xd9))/0x9);if(_0x1e6c2b===_0x29ddb9)break;else _0x4f3b87['push'](_0x4f3b87['shift']());}catch(_0x48c6d2){_0x4f3b87['push'](_0x4f3b87['shift']());}}}(a74_0x1db8,0x48c72));import{getDbAllTableList}from'../../core/api-client.js';function a74_0x403f(_0x44a597,_0x34ee82){_0x44a597=_0x44a597-0xd4;const _0x1db8a5=a74_0x1db8();let _0x403f7c=_0x1db8a5[_0x44a597];return _0x403f7c;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a74_0x2e8478(0xd4),'description':a74_0x2e8478(0xd8),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5f284e){const _0x30466b=a74_0x2e8478,_0x23628c=_0x5f284e[_0x30466b(0xdd)]('id'),_0x51a390=await getDbAllTableList(_0x5f284e[_0x30466b(0xdc)],_0x23628c);return{'ok':!![],'data':{'dbLinkId':_0x23628c,'total':_0x51a390[_0x30466b(0xdf)],'tables':_0x51a390},'message':_0x51a390['length']+_0x30466b(0xe2)+_0x23628c};}};
1
+ function a74_0x58b3(_0x3cf915,_0x1897c7){_0x3cf915=_0x3cf915-0xf3;const _0x44d702=a74_0x44d7();let _0x58b3cc=_0x44d702[_0x3cf915];return _0x58b3cc;}const a74_0x46b1ae=a74_0x58b3;(function(_0x4972a1,_0x248767){const _0x3322fb=a74_0x58b3,_0xf2695f=_0x4972a1();while(!![]){try{const _0x419cda=-parseInt(_0x3322fb(0xfe))/0x1+parseInt(_0x3322fb(0xf8))/0x2*(parseInt(_0x3322fb(0xfc))/0x3)+-parseInt(_0x3322fb(0xf3))/0x4+parseInt(_0x3322fb(0xf7))/0x5+parseInt(_0x3322fb(0xfa))/0x6*(-parseInt(_0x3322fb(0xff))/0x7)+parseInt(_0x3322fb(0xf9))/0x8+parseInt(_0x3322fb(0xf5))/0x9;if(_0x419cda===_0x248767)break;else _0xf2695f['push'](_0xf2695f['shift']());}catch(_0x288605){_0xf2695f['push'](_0xf2695f['shift']());}}}(a74_0x44d7,0x53a42));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a74_0x44d7(){const _0x3acffb=['6kwboPm','tables','686301WyHKZy','length','346543DpqkYV','2576910QwZWwD','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','238420IzsjuB','\x20table(s)\x20on\x20db\x20link\x20','1821708WIPmFa','num','757500ffjQDM','2ZHzlUK','4273544BFJmQr'];a74_0x44d7=function(){return _0x3acffb;};return a74_0x44d7();}export const dbTables={'service':'db','command':a74_0x46b1ae(0xfb),'description':a74_0x46b1ae(0x100),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0xa27f59){const _0x5de219=a74_0x46b1ae,_0x5dcf14=_0xa27f59[_0x5de219(0xf6)]('id'),_0x314ed7=await getDbAllTableList(_0xa27f59['appCode'],_0x5dcf14);return{'ok':!![],'data':{'dbLinkId':_0x5dcf14,'total':_0x314ed7[_0x5de219(0xfd)],'tables':_0x314ed7},'message':_0x314ed7[_0x5de219(0xfd)]+_0x5de219(0xf4)+_0x5dcf14};}};
@@ -1 +1 @@
1
- const a75_0x5df7d8=a75_0xd4d5;function a75_0x2f32(){const _0x3b6a39=['object','message','code','690904HmYQaF','4581pOnfdr','Connection\x20OK\x20for\x20db\x20link\x20','read','492ZkiVph','msg','data','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','length','error','Connection\x20check\x20finished\x20for\x20db\x20link\x20','39705JlMsfP','\x20(see\x20data.result)','slice','keys','2qzKiqx','51161IcOWfW','success','5563012AyhzWq','7736XXCIlP','test','690TkEVEV','2244777PozqzI','659922kmKLvT'];a75_0x2f32=function(){return _0x3b6a39;};return a75_0x2f32();}(function(_0x57a877,_0x5208c9){const _0x31e526=a75_0xd4d5,_0x478384=_0x57a877();while(!![]){try{const _0x4f56ff=-parseInt(_0x31e526(0xe4))/0x1*(-parseInt(_0x31e526(0xf7))/0x2)+-parseInt(_0x31e526(0xe3))/0x3+-parseInt(_0x31e526(0xe8))/0x4+-parseInt(_0x31e526(0xf3))/0x5*(-parseInt(_0x31e526(0xec))/0x6)+-parseInt(_0x31e526(0xfa))/0x7+parseInt(_0x31e526(0xe0))/0x8*(parseInt(_0x31e526(0xe9))/0x9)+-parseInt(_0x31e526(0xe2))/0xa*(-parseInt(_0x31e526(0xf8))/0xb);if(_0x4f56ff===_0x5208c9)break;else _0x478384['push'](_0x478384['shift']());}catch(_0x1a9794){_0x478384['push'](_0x478384['shift']());}}}(a75_0x2f32,0x63bb9));import{testDbLinkConnect}from'../../core/api-client.js';function a75_0xd4d5(_0x1eeb71,_0x360114){_0x1eeb71=_0x1eeb71-0xe0;const _0x2f32fe=a75_0x2f32();let _0xd4d58=_0x2f32fe[_0x1eeb71];return _0xd4d58;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x3c1aa9){const _0x501ddb=a75_0xd4d5;if(_0x3c1aa9===!![]||_0x3c1aa9===![])return{'success':_0x3c1aa9};if(_0x3c1aa9===null||_0x3c1aa9===undefined)return{'type':typeof _0x3c1aa9};if(typeof _0x3c1aa9!==_0x501ddb(0xe5))return{'type':typeof _0x3c1aa9};const _0x1f790e=_0x3c1aa9,_0x1fa015=[_0x501ddb(0xf9),_0x501ddb(0xe6),_0x501ddb(0xe7),_0x501ddb(0xf1),_0x501ddb(0xed),_0x501ddb(0xee)],_0x33365d={};for(const _0x415758 of _0x1fa015){if(_0x415758 in _0x1f790e)_0x33365d[_0x415758]=_0x1f790e[_0x415758];}return Object[_0x501ddb(0xf6)](_0x33365d)[_0x501ddb(0xf0)]===0x0&&(_0x33365d[_0x501ddb(0xf6)]=Object[_0x501ddb(0xf6)](_0x1f790e)[_0x501ddb(0xf5)](0x0,0x14)),_0x33365d;}export const dbTest={'service':'db','command':a75_0x5df7d8(0xe1),'description':a75_0x5df7d8(0xef),'risk':a75_0x5df7d8(0xeb),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x50b980){const _0x5f2377=a75_0x5df7d8,_0x467753=_0x50b980['num']('id'),_0x449a06=await testDbLinkConnect(_0x467753),_0x36c52e=_0x449a06===!![]||typeof _0x449a06===_0x5f2377(0xe5)&&_0x449a06!==null&&_0x449a06[_0x5f2377(0xf9)]===!![],_0xcada13=summarizeTestConnectResult(_0x449a06);return{'ok':!![],'data':{'id':_0x467753,'connected':Boolean(_0x36c52e),'result':_0xcada13},'message':_0x36c52e?_0x5f2377(0xea)+_0x467753:_0x5f2377(0xf2)+_0x467753+_0x5f2377(0xf4)};}};
1
+ const a75_0x1bd7a0=a75_0x38f9;(function(_0x137294,_0x401711){const _0x45ee4b=a75_0x38f9,_0x228f99=_0x137294();while(!![]){try{const _0x1a120d=parseInt(_0x45ee4b(0xfa))/0x1+-parseInt(_0x45ee4b(0xeb))/0x2*(parseInt(_0x45ee4b(0xf7))/0x3)+parseInt(_0x45ee4b(0xf4))/0x4*(-parseInt(_0x45ee4b(0xec))/0x5)+parseInt(_0x45ee4b(0xe7))/0x6*(parseInt(_0x45ee4b(0xf1))/0x7)+-parseInt(_0x45ee4b(0xf5))/0x8*(-parseInt(_0x45ee4b(0xe5))/0x9)+-parseInt(_0x45ee4b(0xfb))/0xa*(-parseInt(_0x45ee4b(0xf2))/0xb)+parseInt(_0x45ee4b(0xe6))/0xc*(parseInt(_0x45ee4b(0xf3))/0xd);if(_0x1a120d===_0x401711)break;else _0x228f99['push'](_0x228f99['shift']());}catch(_0x480618){_0x228f99['push'](_0x228f99['shift']());}}}(a75_0x9817,0x57297));function a75_0x38f9(_0x106a9a,_0x20be53){_0x106a9a=_0x106a9a-0xe2;const _0x9817d=a75_0x9817();let _0x38f99a=_0x9817d[_0x106a9a];return _0x38f99a;}import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a75_0x9817(){const _0x5af14c=['1119CbOqJk','success','length','124045pvBlCt','11010WVsHur','Connection\x20check\x20finished\x20for\x20db\x20link\x20','num','keys','15786bUIgEs','12XmSHIV','894AWsZry','code','\x20(see\x20data.result)','Connection\x20OK\x20for\x20db\x20link\x20','1810JUZhnQ','755WsfyRv','object','error','test','message','14189kosNkI','627yXxFFy','1842503datcPq','5320MHQcPt','1208sgMwwI','data'];a75_0x9817=function(){return _0x5af14c;};return a75_0x9817();}function summarizeTestConnectResult(_0xdb37de){const _0x210973=a75_0x38f9;if(_0xdb37de===!![]||_0xdb37de===![])return{'success':_0xdb37de};if(_0xdb37de===null||_0xdb37de===undefined)return{'type':typeof _0xdb37de};if(typeof _0xdb37de!==_0x210973(0xed))return{'type':typeof _0xdb37de};const _0x4d815d=_0xdb37de,_0x4b7c7c=[_0x210973(0xf8),_0x210973(0xf0),_0x210973(0xe8),_0x210973(0xee),'msg',_0x210973(0xf6)],_0xde3db3={};for(const _0x4783d8 of _0x4b7c7c){if(_0x4783d8 in _0x4d815d)_0xde3db3[_0x4783d8]=_0x4d815d[_0x4783d8];}return Object[_0x210973(0xe4)](_0xde3db3)[_0x210973(0xf9)]===0x0&&(_0xde3db3[_0x210973(0xe4)]=Object[_0x210973(0xe4)](_0x4d815d)['slice'](0x0,0x14)),_0xde3db3;}export const dbTest={'service':'db','command':a75_0x1bd7a0(0xef),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x298dc3){const _0x11eff1=a75_0x1bd7a0,_0x870ab6=_0x298dc3[_0x11eff1(0xe3)]('id'),_0x3c12e8=await testDbLinkConnect(_0x870ab6),_0x1d5228=_0x3c12e8===!![]||typeof _0x3c12e8===_0x11eff1(0xed)&&_0x3c12e8!==null&&_0x3c12e8[_0x11eff1(0xf8)]===!![],_0x1e8edb=summarizeTestConnectResult(_0x3c12e8);return{'ok':!![],'data':{'id':_0x870ab6,'connected':Boolean(_0x1d5228),'result':_0x1e8edb},'message':_0x1d5228?_0x11eff1(0xea)+_0x870ab6:_0x11eff1(0xe2)+_0x870ab6+_0x11eff1(0xe9)};}};
@@ -1 +1 @@
1
- function a76_0x4bec(){const _0x20026e=['username','dbUrl','153210MaPbGa','dbDesc','dbdesc','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','trim','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','46398DbhWnA','dbParam','12utOGkg','dbname','dbName','4126166xlrszr','3FEDeVO','num','25988XHQisJ','Updated\x20db\x20link\x20','str','password','update','427OJkhCa','702mSfGaH','279xmnHQS','New\x20database\x20name','7923410lQEPtH','string','New\x20connection\x20parameter\x20string','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','New\x20username','POST','dbparam','15164730BotlhQ','New\x20host:port','343912dEkSnI','dburl'];a76_0x4bec=function(){return _0x20026e;};return a76_0x4bec();}const a76_0x1f0063=a76_0x5483;(function(_0x110497,_0x3a099b){const _0x13b5af=a76_0x5483,_0xee2cdb=_0x110497();while(!![]){try{const _0x40e98f=parseInt(_0x13b5af(0xf8))/0x1*(parseInt(_0x13b5af(0x110))/0x2)+parseInt(_0x13b5af(0x100))/0x3*(-parseInt(_0x13b5af(0xfa))/0x4)+-parseInt(_0x13b5af(0x103))/0x5+-parseInt(_0x13b5af(0xf2))/0x6*(-parseInt(_0x13b5af(0xff))/0x7)+-parseInt(_0x13b5af(0x10c))/0x8*(-parseInt(_0x13b5af(0x101))/0x9)+parseInt(_0x13b5af(0x10a))/0xa+parseInt(_0x13b5af(0xf7))/0xb*(parseInt(_0x13b5af(0xf4))/0xc);if(_0x40e98f===_0x3a099b)break;else _0xee2cdb['push'](_0xee2cdb['shift']());}catch(_0x44d052){_0xee2cdb['push'](_0xee2cdb['shift']());}}}(a76_0x4bec,0xc8632));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a76_0x5483(_0x47630d,_0x1d5747){_0x47630d=_0x47630d-0xf0;const _0x4beca5=a76_0x4bec();let _0x54833c=_0x4beca5[_0x47630d];return _0x54833c;}export const dbUpdate={'service':'db','command':a76_0x1f0063(0xfe),'description':a76_0x1f0063(0x113),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a76_0x1f0063(0x104),'description':a76_0x1f0063(0x102)},{'name':a76_0x1f0063(0x10d),'type':a76_0x1f0063(0x104),'description':a76_0x1f0063(0x10b)},{'name':a76_0x1f0063(0x10e),'type':a76_0x1f0063(0x104),'description':a76_0x1f0063(0x107)},{'name':'password','type':a76_0x1f0063(0x104),'description':'New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API'},{'name':'dbparam','type':a76_0x1f0063(0x104),'description':a76_0x1f0063(0x105)},{'name':a76_0x1f0063(0x112),'type':a76_0x1f0063(0x104),'description':'New\x20description'}],async 'validate'(_0x2d7798){const _0x5d56a1=a76_0x1f0063,_0x2eb411=_0x2d7798[_0x5d56a1(0xfc)]('dburl');if(_0x2eb411&&!validateDbUrl(_0x2eb411['trim']()))throw CliErrors['validation'](_0x5d56a1(0x106)+_0x2eb411+'\x22');},async 'dryRun'(_0xc555d0){const _0x45d809=a76_0x1f0063,_0x333ab3=_0xc555d0['num']('id'),_0x2924cf=await getDbLinkInfo(_0x333ab3),_0x1ace87={..._0x2924cf},_0x350ad3=_0xc555d0['str'](_0x45d809(0xf5));if(_0x350ad3)_0x1ace87[_0x45d809(0xf6)]=_0x350ad3;const _0x1c89b4=_0xc555d0[_0x45d809(0xfc)](_0x45d809(0x10d));if(_0x1c89b4)_0x1ace87[_0x45d809(0x10f)]=_0x1c89b4[_0x45d809(0xf0)]();const _0x4bd261=_0xc555d0['str'](_0x45d809(0x10e));if(_0x4bd261)_0x1ace87['username']=_0x4bd261;const _0x753ee1=_0xc555d0[_0x45d809(0xfc)](_0x45d809(0xfd));if(_0x753ee1)_0x1ace87['password']=_0x753ee1;const _0x23350f=_0xc555d0[_0x45d809(0xfc)](_0x45d809(0x109));if(_0x23350f)_0x1ace87[_0x45d809(0xf3)]=_0x23350f;const _0x2fdc1e=_0xc555d0[_0x45d809(0xfc)]('dbdesc');if(_0x2fdc1e)_0x1ace87[_0x45d809(0x111)]=_0x2fdc1e;const _0x5ab5b1=sanitizeDbLinkForOutput(_0x1ace87);return{'method':_0x45d809(0x108),'url':'/smartapi/dblink/update','body':_0x5ab5b1,'description':_0x45d809(0xf1)};},async 'execute'(_0xd7faef){const _0x30df2a=a76_0x1f0063,_0x18a9b6=_0xd7faef[_0x30df2a(0xf9)]('id'),_0x5f5317=await getDbLinkInfo(_0x18a9b6),_0x5b33e0={..._0x5f5317},_0x42fe18=_0xd7faef[_0x30df2a(0xfc)](_0x30df2a(0xf5));if(_0x42fe18)_0x5b33e0[_0x30df2a(0xf6)]=_0x42fe18;const _0x315b32=_0xd7faef[_0x30df2a(0xfc)]('dburl');if(_0x315b32)_0x5b33e0['dbUrl']=_0x315b32[_0x30df2a(0xf0)]();const _0xa9558f=_0xd7faef[_0x30df2a(0xfc)]('username');if(_0xa9558f)_0x5b33e0[_0x30df2a(0x10e)]=_0xa9558f;const _0x5f1c43=_0xd7faef[_0x30df2a(0xfc)]('password');if(_0x5f1c43)_0x5b33e0[_0x30df2a(0xfd)]=_0x5f1c43;const _0x5f0be3=_0xd7faef['str'](_0x30df2a(0x109));if(_0x5f0be3)_0x5b33e0[_0x30df2a(0xf3)]=_0x5f0be3;const _0x20ed66=_0xd7faef['str'](_0x30df2a(0x112));if(_0x20ed66)_0x5b33e0['dbDesc']=_0x20ed66;const {id:_0xa28fd1,entity:_0x5f1d40}=normalizeEntityWithIdResponse(await updateDbLink(_0x5b33e0));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x5f1d40),'message':_0x30df2a(0xfb)+(_0xa28fd1??_0x18a9b6)};}};
1
+ const a76_0x3d987d=a76_0x1e10;(function(_0x4318b6,_0x1b84e3){const _0x331aaf=a76_0x1e10,_0x21c000=_0x4318b6();while(!![]){try{const _0x31f2fe=-parseInt(_0x331aaf(0x12a))/0x1+-parseInt(_0x331aaf(0x117))/0x2+parseInt(_0x331aaf(0x11c))/0x3*(-parseInt(_0x331aaf(0x126))/0x4)+parseInt(_0x331aaf(0x10c))/0x5+-parseInt(_0x331aaf(0x11a))/0x6*(-parseInt(_0x331aaf(0x124))/0x7)+parseInt(_0x331aaf(0x12b))/0x8+parseInt(_0x331aaf(0x113))/0x9*(-parseInt(_0x331aaf(0x127))/0xa);if(_0x31f2fe===_0x1b84e3)break;else _0x21c000['push'](_0x21c000['shift']());}catch(_0x26fd0a){_0x21c000['push'](_0x21c000['shift']());}}}(a76_0x1fe4,0x8dfda));function a76_0x1fe4(){const _0x330a05=['Updated\x20db\x20link\x20','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','467030ynahrB','New\x20username','New\x20host:port','18vFiqfO','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','1261455Rgbolt','str','string','dbname','dbdesc','dbParam','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','772107nowAtw','trim','4ExfbJe','50XDqDKu','New\x20database\x20name','num','163919kAmMtd','8790048PqneDq','dburl','dbUrl','2276795qVucRm','password','username','New\x20description','dbparam','dbName','/smartapi/dblink/update','873909nqCHxh','dbDesc'];a76_0x1fe4=function(){return _0x330a05;};return a76_0x1fe4();}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 a76_0x1e10(_0x22a419,_0x59142a){_0x22a419=_0x22a419-0x10b;const _0x1fe4f8=a76_0x1fe4();let _0x1e10d8=_0x1fe4f8[_0x22a419];return _0x1e10d8;}import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':'update','description':a76_0x3d987d(0x116),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a76_0x3d987d(0x11f),'type':a76_0x3d987d(0x11e),'description':a76_0x3d987d(0x128)},{'name':a76_0x3d987d(0x12c),'type':a76_0x3d987d(0x11e),'description':a76_0x3d987d(0x119)},{'name':a76_0x3d987d(0x10e),'type':a76_0x3d987d(0x11e),'description':a76_0x3d987d(0x118)},{'name':a76_0x3d987d(0x10d),'type':a76_0x3d987d(0x11e),'description':a76_0x3d987d(0x123)},{'name':a76_0x3d987d(0x110),'type':a76_0x3d987d(0x11e),'description':'New\x20connection\x20parameter\x20string'},{'name':'dbdesc','type':a76_0x3d987d(0x11e),'description':a76_0x3d987d(0x10f)}],async 'validate'(_0x17a44a){const _0x3fbd0e=a76_0x3d987d,_0x49fea2=_0x17a44a[_0x3fbd0e(0x11d)](_0x3fbd0e(0x12c));if(_0x49fea2&&!validateDbUrl(_0x49fea2['trim']()))throw CliErrors['validation'](_0x3fbd0e(0x11b)+_0x49fea2+'\x22');},async 'dryRun'(_0x10ff23){const _0x11e32b=a76_0x3d987d,_0x3bc561=_0x10ff23[_0x11e32b(0x129)]('id'),_0x1bf10a=await getDbLinkInfo(_0x3bc561),_0x21b88b={..._0x1bf10a},_0x414da0=_0x10ff23[_0x11e32b(0x11d)](_0x11e32b(0x11f));if(_0x414da0)_0x21b88b['dbName']=_0x414da0;const _0x32a6e9=_0x10ff23[_0x11e32b(0x11d)](_0x11e32b(0x12c));if(_0x32a6e9)_0x21b88b[_0x11e32b(0x10b)]=_0x32a6e9['trim']();const _0x25d9e4=_0x10ff23['str'](_0x11e32b(0x10e));if(_0x25d9e4)_0x21b88b['username']=_0x25d9e4;const _0x3e03d7=_0x10ff23[_0x11e32b(0x11d)](_0x11e32b(0x10d));if(_0x3e03d7)_0x21b88b[_0x11e32b(0x10d)]=_0x3e03d7;const _0x5c8b8a=_0x10ff23[_0x11e32b(0x11d)]('dbparam');if(_0x5c8b8a)_0x21b88b[_0x11e32b(0x121)]=_0x5c8b8a;const _0x1e5c46=_0x10ff23[_0x11e32b(0x11d)]('dbdesc');if(_0x1e5c46)_0x21b88b['dbDesc']=_0x1e5c46;const _0x394b1c=sanitizeDbLinkForOutput(_0x21b88b);return{'method':'POST','url':_0x11e32b(0x112),'body':_0x394b1c,'description':_0x11e32b(0x122)};},async 'execute'(_0x505934){const _0x9a5ad1=a76_0x3d987d,_0x35c87d=_0x505934[_0x9a5ad1(0x129)]('id'),_0xa080fd=await getDbLinkInfo(_0x35c87d),_0x240f9b={..._0xa080fd},_0x492993=_0x505934['str'](_0x9a5ad1(0x11f));if(_0x492993)_0x240f9b[_0x9a5ad1(0x111)]=_0x492993;const _0x48a689=_0x505934[_0x9a5ad1(0x11d)](_0x9a5ad1(0x12c));if(_0x48a689)_0x240f9b['dbUrl']=_0x48a689[_0x9a5ad1(0x125)]();const _0x594820=_0x505934[_0x9a5ad1(0x11d)](_0x9a5ad1(0x10e));if(_0x594820)_0x240f9b['username']=_0x594820;const _0x10ead2=_0x505934[_0x9a5ad1(0x11d)]('password');if(_0x10ead2)_0x240f9b[_0x9a5ad1(0x10d)]=_0x10ead2;const _0x3b03fa=_0x505934[_0x9a5ad1(0x11d)](_0x9a5ad1(0x110));if(_0x3b03fa)_0x240f9b[_0x9a5ad1(0x121)]=_0x3b03fa;const _0x4375c5=_0x505934[_0x9a5ad1(0x11d)](_0x9a5ad1(0x120));if(_0x4375c5)_0x240f9b[_0x9a5ad1(0x114)]=_0x4375c5;const {id:_0x11278a,entity:_0x45df76}=normalizeEntityWithIdResponse(await updateDbLink(_0x240f9b));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x45df76),'message':_0x9a5ad1(0x115)+(_0x11278a??_0x35c87d)};}};
@@ -1 +1 @@
1
- function a77_0x3ca4(_0x4150b9,_0x3cc34a){_0x4150b9=_0x4150b9-0x9e;const _0x507c06=a77_0x507c();let _0x3ca48f=_0x507c06[_0x4150b9];return _0x3ca48f;}const a77_0x25c92b=a77_0x3ca4;(function(_0x2380f3,_0x1d7927){const _0x3d68ec=a77_0x3ca4,_0x2b20f5=_0x2380f3();while(!![]){try{const _0x22e12f=parseInt(_0x3d68ec(0xde))/0x1*(parseInt(_0x3d68ec(0xeb))/0x2)+-parseInt(_0x3d68ec(0xe7))/0x3+parseInt(_0x3d68ec(0xc8))/0x4+-parseInt(_0x3d68ec(0xd0))/0x5+-parseInt(_0x3d68ec(0xa7))/0x6*(-parseInt(_0x3d68ec(0xaf))/0x7)+-parseInt(_0x3d68ec(0xd4))/0x8*(parseInt(_0x3d68ec(0xbf))/0x9)+parseInt(_0x3d68ec(0xa5))/0xa*(parseInt(_0x3d68ec(0xb5))/0xb);if(_0x22e12f===_0x1d7927)break;else _0x2b20f5['push'](_0x2b20f5['shift']());}catch(_0x1107fc){_0x2b20f5['push'](_0x2b20f5['shift']());}}}(a77_0x507c,0xa5cbf));import a77_0x3bdce8 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a77_0x507c(){const _0x49e52c=['accessKey','missing','(not\x20found)','\x20\x20explicitAppName:\x20','defaultApp','4878600OKXxob','gray','\x20\x20runtimeDomain:\x20\x20\x20','slice','16YcFTsz','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','source','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','bold','Global','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','✓\x20Valid','(not\x20set)','2USLqTU','status','(none)','✗\x20Not\x20logged\x20in','\x20\x20API\x20Endpoints','✓\x20Valid\x20JSON','format','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','empty','1782324unOtdV','platform','cookie','apiDir','748158UivQsZ','(no\x20file)','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','read','raw','apps','\x20\x20Apps','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(default)','23140uYtTIC','(missing)','3834UFdVFw','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Project','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','padEnd','✗\x20Invalid\x20JSON','\x20\x20\x20\x20accessKey:\x20\x20','21KlApaP','\x20\x20─','(set,\x20length=','\x20←\x20current','green','riskLevel','6182PAFNWM','appCode','\x20doctor','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','unknown','(set\x20via\x20file,\x20length=','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','log','2232900QovxEh','\x20\x20Auth','currentApp','length','red','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','yellow','2778352zsQHpX','repeat','env'];a77_0x507c=function(){return _0x49e52c;};return a77_0x507c();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0xf20d01){const _0x52b59d=a77_0x3ca4,_0x3c3fa2=GIT_COMMIT!==_0x52b59d(0xbb)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x52b59d(0xd3)](0x0,0xa)+')':VERSION,_0x3714d1=buildConfigFromFlags({}),_0xb7a616=getCookie();console[_0x52b59d(0xbe)](),console['log'](a77_0x3bdce8[_0x52b59d(0xd9)](CLI_BIN_NAME+_0x52b59d(0xb7))),console[_0x52b59d(0xbe)](a77_0x3bdce8['gray']('─'['repeat'](0x32))),console[_0x52b59d(0xbe)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x3c3fa2),console[_0x52b59d(0xbe)](_0x52b59d(0xd7)+process['version']),console[_0x52b59d(0xbe)](_0x52b59d(0xd5)+process[_0x52b59d(0xe8)]+'\x20'+process['arch']),console[_0x52b59d(0xbe)](),console[_0x52b59d(0xbe)](a77_0x3bdce8[_0x52b59d(0xd9)]('\x20\x20Config\x20Files')),console['log'](a77_0x3bdce8[_0x52b59d(0xd1)](_0x52b59d(0xb0)[_0x52b59d(0xc9)](0x1e)));const _0x24c66c=getGlobalConfigPath(),_0x3c0113=getProjectConfigPath();console['log'](_0x52b59d(0xc4)+(_0x24c66c||a77_0x3bdce8['gray'](_0x52b59d(0xcd)))),console[_0x52b59d(0xbe)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3c0113||a77_0x3bdce8['gray'](_0x52b59d(0xcd)))),console[_0x52b59d(0xbe)](),console[_0x52b59d(0xbe)](a77_0x3bdce8[_0x52b59d(0xd9)]('\x20\x20Config\x20JSON')),console['log'](a77_0x3bdce8[_0x52b59d(0xd1)]('\x20\x20─'['repeat'](0x1e)));const _0x43ed26=(_0xdc0255,_0x33f91e)=>{const _0x43c8e9=_0x52b59d;if(!_0x33f91e){console[_0x43c8e9(0xbe)]('\x20\x20'+_0xdc0255[_0x43c8e9(0xac)](0x11)+'\x20'+a77_0x3bdce8[_0x43c8e9(0xd1)](_0x43c8e9(0xec)));return;}const _0x10b331=inspectCliConfigJsonFile(_0x33f91e);if(_0x10b331[_0x43c8e9(0xdf)]==='ok')console[_0x43c8e9(0xbe)]('\x20\x20'+_0xdc0255[_0x43c8e9(0xac)](0x11)+'\x20'+a77_0x3bdce8[_0x43c8e9(0xb3)](_0x43c8e9(0xe3)));else{if(_0x10b331[_0x43c8e9(0xdf)]===_0x43c8e9(0xe6))console[_0x43c8e9(0xbe)]('\x20\x20'+_0xdc0255['padEnd'](0x11)+'\x20'+a77_0x3bdce8[_0x43c8e9(0xc7)](_0x43c8e9(0xab)));else _0x10b331['status']===_0x43c8e9(0xcc)?console['log']('\x20\x20'+_0xdc0255['padEnd'](0x11)+'\x20'+a77_0x3bdce8['gray'](_0x43c8e9(0xa6))):(console['log']('\x20\x20'+_0xdc0255['padEnd'](0x11)+'\x20'+a77_0x3bdce8['red'](_0x43c8e9(0xad))),console[_0x43c8e9(0xbe)]('\x20\x20'+''[_0x43c8e9(0xac)](0x11)+'\x20'+a77_0x3bdce8[_0x43c8e9(0xc3)](_0x10b331['message'])));}};_0x43ed26(_0x52b59d(0xda),_0x24c66c),_0x43ed26(_0x52b59d(0xa9),_0x3c0113),console[_0x52b59d(0xbe)](),console[_0x52b59d(0xbe)](a77_0x3bdce8['bold']('\x20\x20Merged\x20Config')),console['log'](a77_0x3bdce8[_0x52b59d(0xd1)](_0x52b59d(0xb0)[_0x52b59d(0xc9)](0x1e))),console[_0x52b59d(0xbe)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3714d1[_0x52b59d(0xb6)]||a77_0x3bdce8[_0x52b59d(0xc3)](_0x52b59d(0xdd)))),console[_0x52b59d(0xbe)](_0x52b59d(0xc6)+_0x3714d1[_0x52b59d(0xca)]),console[_0x52b59d(0xbe)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3714d1['locale']),console[_0x52b59d(0xbe)](_0x52b59d(0xb9)+_0x3714d1[_0x52b59d(0xea)]),console[_0x52b59d(0xbe)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x3714d1[_0x52b59d(0xcf)]||a77_0x3bdce8['gray'](_0x52b59d(0xe0)))),console[_0x52b59d(0xbe)](_0x52b59d(0xdb)+(_0x3714d1[_0x52b59d(0xc1)]||a77_0x3bdce8['gray'](_0x52b59d(0xe0)))),console['log'](_0x52b59d(0xce)+(_0x3714d1['explicitAppName']||a77_0x3bdce8[_0x52b59d(0xd1)](_0x52b59d(0xe0)))),console[_0x52b59d(0xbe)](_0x52b59d(0xa3)+(_0x3714d1[_0x52b59d(0xe4)]||a77_0x3bdce8['gray'](_0x52b59d(0xba)+DEFAULT_CONFIG_VALUES[_0x52b59d(0xe4)]+')'))),console[_0x52b59d(0xbe)](_0x52b59d(0xaa)+(_0x3714d1['pageSize']??a77_0x3bdce8[_0x52b59d(0xd1)]('(default)'))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x3714d1[_0x52b59d(0xb4)]),console[_0x52b59d(0xbe)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3714d1['verbose']),console[_0x52b59d(0xbe)](_0x52b59d(0xa8)+(_0x3714d1[_0x52b59d(0xe9)]?a77_0x3bdce8[_0x52b59d(0xb3)](_0x52b59d(0xb1)+_0x3714d1[_0x52b59d(0xe9)][_0x52b59d(0xc2)]+')'):_0xb7a616?a77_0x3bdce8[_0x52b59d(0xb3)](_0x52b59d(0xbc)+_0xb7a616[_0x52b59d(0xc2)]+')'):a77_0x3bdce8[_0x52b59d(0xd1)]('(none)')));const _0xee1080=Object['keys'](_0x3714d1[_0x52b59d(0xa1)]);if(_0xee1080[_0x52b59d(0xc2)]>0x0){console['log'](),console[_0x52b59d(0xbe)](a77_0x3bdce8[_0x52b59d(0xd9)](_0x52b59d(0xa2))),console[_0x52b59d(0xbe)](a77_0x3bdce8[_0x52b59d(0xd1)](_0x52b59d(0xb0)[_0x52b59d(0xc9)](0x1e)));for(const _0x47a9e8 of _0xee1080){const _0x442ff6=_0x3714d1[_0x52b59d(0xa1)][_0x47a9e8],_0x2c795e=_0x47a9e8===_0x3714d1['defaultApp'],_0x843d9e=_0x47a9e8===_0x3714d1[_0x52b59d(0xc1)],_0x2400fc=_0x843d9e?a77_0x3bdce8[_0x52b59d(0xb3)](_0x52b59d(0xb2)):'',_0x19abfb=_0x2c795e?_0x52b59d(0xa4):'';console[_0x52b59d(0xbe)]('\x20\x20'+_0x47a9e8+_0x19abfb+_0x2400fc),console[_0x52b59d(0xbe)](_0x52b59d(0xbd)+_0x442ff6['appcode']);const _0x456942=buildAppDoctorFields(_0x442ff6,{'env':_0x3714d1['env'],'apiDir':_0x3714d1[_0x52b59d(0xa0)][_0x52b59d(0xea)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x3714d1[_0x52b59d(0xe9)]||_0xb7a616||undefined,'accessKey':_0x3714d1[_0x52b59d(0xcb)]});console[_0x52b59d(0xbe)](_0x52b59d(0x9e)+_0x456942[_0x52b59d(0xca)][_0x52b59d(0xc5)]+'\x20\x20'+a77_0x3bdce8[_0x52b59d(0xd1)]('('+_0x456942[_0x52b59d(0xca)][_0x52b59d(0xd6)]+')')),console[_0x52b59d(0xbe)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x456942[_0x52b59d(0xea)][_0x52b59d(0xc5)]+'\x20\x20'+a77_0x3bdce8[_0x52b59d(0xd1)]('('+_0x456942[_0x52b59d(0xea)]['source']+')'));const _0x3e7b81=_0x456942[_0x52b59d(0xe9)][_0x52b59d(0xc5)]?a77_0x3bdce8[_0x52b59d(0xb3)](_0x52b59d(0xb1)+_0x456942[_0x52b59d(0xe9)][_0x52b59d(0xc5)][_0x52b59d(0xc2)]+')'):a77_0x3bdce8[_0x52b59d(0xd1)]('(none)');console[_0x52b59d(0xbe)](_0x52b59d(0xb8)+_0x3e7b81+'\x20\x20'+a77_0x3bdce8['gray']('('+_0x456942['cookie'][_0x52b59d(0xd6)]+')'));const _0x1ce916=_0x456942[_0x52b59d(0xcb)][_0x52b59d(0xc5)]?a77_0x3bdce8[_0x52b59d(0xb3)](_0x52b59d(0xb1)+_0x456942['accessKey']['value'][_0x52b59d(0xc2)]+')'):a77_0x3bdce8[_0x52b59d(0xd1)]('(none)');console[_0x52b59d(0xbe)](_0x52b59d(0xae)+_0x1ce916+'\x20\x20'+a77_0x3bdce8['gray']('('+_0x456942[_0x52b59d(0xcb)][_0x52b59d(0xd6)]+')'));}}console['log'](),console[_0x52b59d(0xbe)](a77_0x3bdce8['bold'](_0x52b59d(0xe2))),console['log'](a77_0x3bdce8[_0x52b59d(0xd1)](_0x52b59d(0xb0)[_0x52b59d(0xc9)](0x1e))),console[_0x52b59d(0xbe)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x52b59d(0xbe)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x52b59d(0xbe)](_0x52b59d(0xd2)+getRuntimeDomain()),console[_0x52b59d(0xbe)](),console['log'](a77_0x3bdce8['bold'](_0x52b59d(0xc0))),console['log'](a77_0x3bdce8[_0x52b59d(0xd1)](_0x52b59d(0xb0)[_0x52b59d(0xc9)](0x1e)));if(_0xb7a616){const _0x3aa4e2=await getIsSessionValid();console[_0x52b59d(0xbe)](_0x52b59d(0xe5)+(_0x3aa4e2?a77_0x3bdce8[_0x52b59d(0xb3)](_0x52b59d(0xdc)):a77_0x3bdce8[_0x52b59d(0xc3)]('✗\x20Expired')));}else console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a77_0x3bdce8['red'](_0x52b59d(0xe1)));return console[_0x52b59d(0xbe)](),{'ok':!![]};}export const doctorDefinition={'service':a77_0x25c92b(0xd8),'command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a77_0x25c92b(0x9f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ function a77_0x1825(){const _0x4494b3=['locale','\x20\x20Apps','11sGIqPE','\x20\x20Config\x20JSON','padEnd','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','green','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','source','yellow','accessKey','gray','platform','✗\x20Invalid\x20JSON','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20explicitAppName:\x20','env','Project','read','appcode','check','bold','9414dHFJFq','slice','apiDir','8730WujxAo','✓\x20Valid','currentApp','length','repeat','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','183mnsUGx','13757670dBvjRK','\x20\x20─','version','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','(none)','(set\x20via\x20file,\x20length=','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20Auth','value','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','(no\x20file)','(default:\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','defaultApp','message','\x20(default)','(not\x20set)','\x20\x20runtimeDomain:\x20\x20\x20','✓\x20Valid\x20JSON','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','keys','status','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','435KlJtfQ','3473997RJnFJh','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','Global','pageSize','apps','✗\x20Expired','\x20\x20Config\x20Files','appCode','log','924693ricaDR','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','5275488WGqWWW','(set,\x20length=','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','red','cookie','3552UZNAQk','explicitAppName','44646CYZjCh','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','arch','raw'];a77_0x1825=function(){return _0x4494b3;};return a77_0x1825();}const a77_0x17c06a=a77_0x4f06;(function(_0x4136b5,_0x2a65f8){const _0xc53c1a=a77_0x4f06,_0x2e37c9=_0x4136b5();while(!![]){try{const _0x4290b9=-parseInt(_0xc53c1a(0x1e0))/0x1*(-parseInt(_0xc53c1a(0x1d7))/0x2)+parseInt(_0xc53c1a(0x1a8))/0x3+parseInt(_0xc53c1a(0x1b4))/0x4+-parseInt(_0xc53c1a(0x1a7))/0x5*(parseInt(_0xc53c1a(0x1bc))/0x6)+-parseInt(_0xc53c1a(0x1b1))/0x7+-parseInt(_0xc53c1a(0x1ba))/0x8*(parseInt(_0xc53c1a(0x1da))/0x9)+parseInt(_0xc53c1a(0x1e1))/0xa*(-parseInt(_0xc53c1a(0x1c3))/0xb);if(_0x4290b9===_0x2a65f8)break;else _0x2e37c9['push'](_0x2e37c9['shift']());}catch(_0x1ee611){_0x2e37c9['push'](_0x2e37c9['shift']());}}}(a77_0x1825,0xb7ad3));import a77_0x1363b2 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a77_0x4f06(_0x4bf596,_0x5d8c4d){_0x4bf596=_0x4bf596-0x197;const _0x1825bb=a77_0x1825();let _0x4f06d9=_0x1825bb[_0x4bf596];return _0x4f06d9;}import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x1ed3d0){const _0x271507=a77_0x4f06,_0x52ab2c=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x271507(0x1d8)](0x0,0xa)+')':VERSION,_0xc6d31=buildConfigFromFlags({}),_0x4f7a6d=getCookie();console[_0x271507(0x1b0)](),console[_0x271507(0x1b0)](a77_0x1363b2[_0x271507(0x1d6)](CLI_BIN_NAME+'\x20doctor')),console['log'](a77_0x1363b2[_0x271507(0x1cc)]('─'[_0x271507(0x1de)](0x32))),console[_0x271507(0x1b0)](_0x271507(0x1ee)+_0x52ab2c),console[_0x271507(0x1b0)](_0x271507(0x1a1)+process[_0x271507(0x1e3)]),console['log'](_0x271507(0x1c6)+process[_0x271507(0x1cd)]+'\x20'+process[_0x271507(0x1bf)]),console['log'](),console['log'](a77_0x1363b2[_0x271507(0x1d6)](_0x271507(0x1ae))),console[_0x271507(0x1b0)](a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e2)[_0x271507(0x1de)](0x1e)));const _0x499279=getGlobalConfigPath(),_0x32891f=getProjectConfigPath();console[_0x271507(0x1b0)](_0x271507(0x1e8)+(_0x499279||a77_0x1363b2[_0x271507(0x1cc)]('(not\x20found)'))),console[_0x271507(0x1b0)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x32891f||a77_0x1363b2[_0x271507(0x1cc)]('(not\x20found)'))),console['log'](),console[_0x271507(0x1b0)](a77_0x1363b2['bold'](_0x271507(0x1c4))),console[_0x271507(0x1b0)](a77_0x1363b2['gray'](_0x271507(0x1e2)['repeat'](0x1e)));const _0xadf284=(_0x61cbeb,_0x2753fc)=>{const _0x5ce7d0=_0x271507;if(!_0x2753fc){console[_0x5ce7d0(0x1b0)]('\x20\x20'+_0x61cbeb[_0x5ce7d0(0x1c5)](0x11)+'\x20'+a77_0x1363b2['gray'](_0x5ce7d0(0x197)));return;}const _0x152e17=inspectCliConfigJsonFile(_0x2753fc);if(_0x152e17[_0x5ce7d0(0x1a3)]==='ok')console[_0x5ce7d0(0x1b0)]('\x20\x20'+_0x61cbeb[_0x5ce7d0(0x1c5)](0x11)+'\x20'+a77_0x1363b2[_0x5ce7d0(0x1c7)](_0x5ce7d0(0x1a0)));else{if(_0x152e17[_0x5ce7d0(0x1a3)]==='empty')console[_0x5ce7d0(0x1b0)]('\x20\x20'+_0x61cbeb[_0x5ce7d0(0x1c5)](0x11)+'\x20'+a77_0x1363b2[_0x5ce7d0(0x1ca)](_0x5ce7d0(0x1cf)));else _0x152e17[_0x5ce7d0(0x1a3)]==='missing'?console[_0x5ce7d0(0x1b0)]('\x20\x20'+_0x61cbeb['padEnd'](0x11)+'\x20'+a77_0x1363b2[_0x5ce7d0(0x1cc)]('(missing)')):(console[_0x5ce7d0(0x1b0)]('\x20\x20'+_0x61cbeb[_0x5ce7d0(0x1c5)](0x11)+'\x20'+a77_0x1363b2[_0x5ce7d0(0x1b8)](_0x5ce7d0(0x1ce))),console[_0x5ce7d0(0x1b0)]('\x20\x20'+''[_0x5ce7d0(0x1c5)](0x11)+'\x20'+a77_0x1363b2[_0x5ce7d0(0x1b8)](_0x152e17[_0x5ce7d0(0x19c)])));}};_0xadf284(_0x271507(0x1aa),_0x499279),_0xadf284(_0x271507(0x1d2),_0x32891f),console[_0x271507(0x1b0)](),console[_0x271507(0x1b0)](a77_0x1363b2[_0x271507(0x1d6)]('\x20\x20Merged\x20Config')),console['log'](a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e2)['repeat'](0x1e))),console[_0x271507(0x1b0)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xc6d31[_0x271507(0x1af)]||a77_0x1363b2[_0x271507(0x1b8)](_0x271507(0x19e)))),console[_0x271507(0x1b0)](_0x271507(0x1c8)+_0xc6d31[_0x271507(0x1d1)]),console[_0x271507(0x1b0)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xc6d31[_0x271507(0x1c1)]),console['log'](_0x271507(0x1b6)+_0xc6d31[_0x271507(0x1d9)]),console[_0x271507(0x1b0)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0xc6d31['defaultApp']||a77_0x1363b2[_0x271507(0x1cc)]('(none)'))),console[_0x271507(0x1b0)](_0x271507(0x1df)+(_0xc6d31[_0x271507(0x1dc)]||a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e6)))),console['log'](_0x271507(0x1d0)+(_0xc6d31[_0x271507(0x1bb)]||a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e6)))),console['log'](_0x271507(0x1a5)+(_0xc6d31['format']||a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x198)+DEFAULT_CONFIG_VALUES[_0x271507(0x1be)]+')'))),console[_0x271507(0x1b0)](_0x271507(0x1ed)+(_0xc6d31[_0x271507(0x1ab)]??a77_0x1363b2[_0x271507(0x1cc)]('(default)'))),console[_0x271507(0x1b0)](_0x271507(0x1a4)+_0xc6d31['riskLevel']),console[_0x271507(0x1b0)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xc6d31[_0x271507(0x1b7)]),console[_0x271507(0x1b0)](_0x271507(0x199)+(_0xc6d31[_0x271507(0x1b9)]?a77_0x1363b2[_0x271507(0x1c7)](_0x271507(0x1b5)+_0xc6d31[_0x271507(0x1b9)][_0x271507(0x1dd)]+')'):_0x4f7a6d?a77_0x1363b2[_0x271507(0x1c7)](_0x271507(0x1e7)+_0x4f7a6d[_0x271507(0x1dd)]+')'):a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e6))));const _0x44dbef=Object[_0x271507(0x1a2)](_0xc6d31['apps']);if(_0x44dbef[_0x271507(0x1dd)]>0x0){console[_0x271507(0x1b0)](),console[_0x271507(0x1b0)](a77_0x1363b2['bold'](_0x271507(0x1c2))),console[_0x271507(0x1b0)](a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e2)[_0x271507(0x1de)](0x1e)));for(const _0x11d381 of _0x44dbef){const _0x38163a=_0xc6d31[_0x271507(0x1ac)][_0x11d381],_0x4ec195=_0x11d381===_0xc6d31[_0x271507(0x19b)],_0x31eb85=_0x11d381===_0xc6d31[_0x271507(0x1dc)],_0x80635a=_0x31eb85?a77_0x1363b2[_0x271507(0x1c7)](_0x271507(0x1e5)):'',_0x4441c5=_0x4ec195?_0x271507(0x19d):'';console[_0x271507(0x1b0)]('\x20\x20'+_0x11d381+_0x4441c5+_0x80635a),console['log']('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x38163a[_0x271507(0x1d4)]);const _0x3f17cd=buildAppDoctorFields(_0x38163a,{'env':_0xc6d31[_0x271507(0x1d1)],'apiDir':_0xc6d31[_0x271507(0x1c0)]['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0xc6d31[_0x271507(0x1b9)]||_0x4f7a6d||undefined,'accessKey':_0xc6d31[_0x271507(0x1cb)]});console[_0x271507(0x1b0)](_0x271507(0x1e4)+_0x3f17cd[_0x271507(0x1d1)][_0x271507(0x1ec)]+'\x20\x20'+a77_0x1363b2['gray']('('+_0x3f17cd[_0x271507(0x1d1)][_0x271507(0x1c9)]+')')),console[_0x271507(0x1b0)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x3f17cd[_0x271507(0x1d9)]['value']+'\x20\x20'+a77_0x1363b2['gray']('('+_0x3f17cd[_0x271507(0x1d9)][_0x271507(0x1c9)]+')'));const _0x5a110b=_0x3f17cd[_0x271507(0x1b9)][_0x271507(0x1ec)]?a77_0x1363b2[_0x271507(0x1c7)](_0x271507(0x1b5)+_0x3f17cd[_0x271507(0x1b9)][_0x271507(0x1ec)][_0x271507(0x1dd)]+')'):a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e6));console[_0x271507(0x1b0)](_0x271507(0x1a9)+_0x5a110b+'\x20\x20'+a77_0x1363b2[_0x271507(0x1cc)]('('+_0x3f17cd[_0x271507(0x1b9)]['source']+')'));const _0x5180a5=_0x3f17cd[_0x271507(0x1cb)][_0x271507(0x1ec)]?a77_0x1363b2[_0x271507(0x1c7)](_0x271507(0x1b5)+_0x3f17cd['accessKey'][_0x271507(0x1ec)][_0x271507(0x1dd)]+')'):a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e6));console['log'](_0x271507(0x1b2)+_0x5180a5+'\x20\x20'+a77_0x1363b2[_0x271507(0x1cc)]('('+_0x3f17cd[_0x271507(0x1cb)][_0x271507(0x1c9)]+')'));}}console[_0x271507(0x1b0)](),console[_0x271507(0x1b0)](a77_0x1363b2['bold'](_0x271507(0x1a6))),console[_0x271507(0x1b0)](a77_0x1363b2['gray'](_0x271507(0x1e2)[_0x271507(0x1de)](0x1e))),console[_0x271507(0x1b0)](_0x271507(0x19a)+getApiDomain()),console[_0x271507(0x1b0)](_0x271507(0x1b3)+getUserDomain()),console[_0x271507(0x1b0)](_0x271507(0x19f)+getRuntimeDomain()),console['log'](),console[_0x271507(0x1b0)](a77_0x1363b2[_0x271507(0x1d6)](_0x271507(0x1eb))),console[_0x271507(0x1b0)](a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e2)[_0x271507(0x1de)](0x1e)));if(_0x4f7a6d){const _0xca5223=await getIsSessionValid();console[_0x271507(0x1b0)](_0x271507(0x1bd)+(_0xca5223?a77_0x1363b2['green'](_0x271507(0x1db)):a77_0x1363b2[_0x271507(0x1b8)](_0x271507(0x1ad))));}else console[_0x271507(0x1b0)](_0x271507(0x1bd)+a77_0x1363b2[_0x271507(0x1b8)]('✗\x20Not\x20logged\x20in'));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a77_0x17c06a(0x1e9),'command':a77_0x17c06a(0x1d5),'description':a77_0x17c06a(0x1ea),'risk':a77_0x17c06a(0x1d3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- function a78_0xcff3(_0x1b7542,_0x24a1b2){_0x1b7542=_0x1b7542-0x1df;const _0x3eaf94=a78_0x3eaf();let _0xcff302=_0x3eaf94[_0x1b7542];return _0xcff302;}const a78_0x275204=a78_0xcff3;(function(_0x5103a7,_0x32843b){const _0x1b84ee=a78_0xcff3,_0x555f17=_0x5103a7();while(!![]){try{const _0x3d156a=-parseInt(_0x1b84ee(0x1f0))/0x1+parseInt(_0x1b84ee(0x203))/0x2*(-parseInt(_0x1b84ee(0x201))/0x3)+parseInt(_0x1b84ee(0x1e2))/0x4+-parseInt(_0x1b84ee(0x1f6))/0x5+-parseInt(_0x1b84ee(0x209))/0x6+-parseInt(_0x1b84ee(0x1fb))/0x7+parseInt(_0x1b84ee(0x204))/0x8;if(_0x3d156a===_0x32843b)break;else _0x555f17['push'](_0x555f17['shift']());}catch(_0x4dae84){_0x555f17['push'](_0x555f17['shift']());}}}(a78_0x3eaf,0xc551e));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function a78_0x3eaf(){const _0x36c3b0=['write','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','appCode','App\x20code\x20to\x20initialize\x20with','map','toLocaleString','6272516npUpiL','Write\x20to\x20global\x20config\x20instead\x20of\x20project','\x20\x20Env:\x20','appcode','检测到旧配置文件,正在自动升级...\x0a','boolean','global','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','init','defaultApp','\x20\x20Apps:\x20','Target\x20environment','log','bool','467630LVHLJC','env','yes','../../commands/project/init.js','project','string','2878740fgUNFy','some','\x20\x20Default:\x20','message','\x20config','9274342GheKYK','production','\x0a✓\x20Successfully\x20initialized\x20','\x20\x20Config:\x20','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','474162pxWwJf','custom','14dQXWNa','29848832GyKJyj','Usage:\x20','validation','nonInteractive','str','6098094YGgHpI'];a78_0x3eaf=function(){return _0x36c3b0;};return a78_0x3eaf();}function syntheticApp(_0x26233c){return{'appCode':_0x26233c,'appName':_0x26233c};}function writeInitConfig(_0x1ab190,_0x3b6664,_0xbe5fb9){const _0x918efe=a78_0xcff3,_0x4c290c=resolveWriteConfigPath(_0x1ab190),_0x2dde8a=buildCanonicalProjectConfig({},{'appCodes':_0x3b6664[_0x918efe(0x1e0)](_0x36ddc3=>_0x36ddc3[_0x918efe(0x20c)]),'env':_0xbe5fb9,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x918efe(0x1e1)]()}});writeConfigFile(_0x4c290c,_0x2dde8a);const _0x15a19f=_0x1ab190===_0x918efe(0x1e8)?_0x918efe(0x1e8):'project';console[_0x918efe(0x1ee)](_0x918efe(0x1fd)+_0x15a19f+_0x918efe(0x1fa)),console[_0x918efe(0x1ee)](_0x918efe(0x1ec)+_0x3b6664[_0x918efe(0x1e0)](_0x30128f=>_0x30128f[_0x918efe(0x20c)])['join'](',\x20')),console[_0x918efe(0x1ee)](_0x918efe(0x1f8)+_0x2dde8a[_0x918efe(0x1eb)]),console['log'](_0x918efe(0x1e4)+_0x2dde8a['env']),console['log'](_0x918efe(0x1fe)+_0x4c290c);}async function runSmartInit(_0xfa053e){const _0x4c5362=a78_0xcff3,_0x2e6b4f=process['cwd'](),_0x2077f5=_0xfa053e[_0x4c5362(0x1ef)](_0x4c5362(0x1e8))?_0x4c5362(0x1e8):_0x4c5362(0x1f4),_0x2502d8=_0xfa053e[_0x4c5362(0x208)](_0x4c5362(0x1f1))||'production',_0x3471c6=_0xfa053e[_0x4c5362(0x208)]('appcode')||undefined,_0x204990=_0xfa053e[_0x4c5362(0x1ef)](_0x4c5362(0x1f4));if(_0x204990){const {initConfig:_0x3a5546}=await import(_0x4c5362(0x1f3));return _0x3a5546({'appcode':_0x3471c6,'env':_0x2502d8,'autoYes':_0xfa053e[_0x4c5362(0x1ef)](_0x4c5362(0x1f2))});}if(_0x2077f5===_0x4c5362(0x1f4)){const _0x19af41=existsSync(resolve(_0x2e6b4f,NEW_CONFIG_NAME)),_0x4bad8a=LEGACY_CONFIG_NAMES[_0x4c5362(0x1f7)](_0x1907b9=>existsSync(resolve(_0x2e6b4f,_0x1907b9)));if(_0x4bad8a&&!_0x19af41)return console[_0x4c5362(0x1ee)](_0x4c5362(0x1e6)),upgradeApp(_0xfa053e[_0x4c5362(0x207)],{'yes':_0xfa053e['bool'](_0x4c5362(0x1f2))});if(_0x19af41)throw CliErrors[_0x4c5362(0x206)](_0x4c5362(0x200),'Use\x20`'+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x3471c6){const _0x5b1edd=validateAppcode(_0x3471c6);if(!_0x5b1edd['valid'])throw CliErrors['validation'](_0x5b1edd[_0x4c5362(0x1f9)]);writeInitConfig(_0x2077f5,[syntheticApp(_0x3471c6)],_0x2502d8);return;}if(_0xfa053e[_0x4c5362(0x207)])throw CliErrors['flagMissing'](_0x4c5362(0x1e5),_0x4c5362(0x205)+CLI_BIN_NAME+_0x4c5362(0x20b));const _0x29105d=getCookie(),_0x26c66b=await selectMultipleApps(_0x29105d),_0x103aa4=_0x26c66b===_0x4c5362(0x202)?[syntheticApp(await promptCustomAppcode())]:_0x26c66b;writeInitConfig(_0x2077f5,_0x103aa4,_0x2502d8);}const initFlags=[{'name':a78_0x275204(0x1e8),'type':a78_0x275204(0x1e7),'description':a78_0x275204(0x1e3),'default':![]},{'name':a78_0x275204(0x1f1),'type':a78_0x275204(0x1f5),'description':a78_0x275204(0x1ed),'default':a78_0x275204(0x1fc),'enum':[...RABETBASE_ENV_VALUES]},{'name':a78_0x275204(0x1e5),'type':a78_0x275204(0x1f5),'description':a78_0x275204(0x1df)},{'name':a78_0x275204(0x1f4),'type':a78_0x275204(0x1e7),'description':a78_0x275204(0x1ff),'default':![]},{'name':'yes','type':'boolean','description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a78_0x275204(0x1ea),'command':'run','description':a78_0x275204(0x1e9),'risk':a78_0x275204(0x20a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x1e5a96){return await runSmartInit(_0x1e5a96),{'ok':!![]};}}];
1
+ const a78_0x4a275e=a78_0x3aca;(function(_0x3f4c92,_0x195773){const _0x2e37f3=a78_0x3aca,_0x6015c=_0x3f4c92();while(!![]){try{const _0x1bfa17=parseInt(_0x2e37f3(0x9a))/0x1*(parseInt(_0x2e37f3(0x8c))/0x2)+parseInt(_0x2e37f3(0x90))/0x3+parseInt(_0x2e37f3(0x80))/0x4+parseInt(_0x2e37f3(0xa1))/0x5+-parseInt(_0x2e37f3(0x8e))/0x6*(parseInt(_0x2e37f3(0x8b))/0x7)+-parseInt(_0x2e37f3(0x75))/0x8*(-parseInt(_0x2e37f3(0x85))/0x9)+-parseInt(_0x2e37f3(0x87))/0xa;if(_0x1bfa17===_0x195773)break;else _0x6015c['push'](_0x6015c['shift']());}catch(_0x356c22){_0x6015c['push'](_0x6015c['shift']());}}}(a78_0x2caf,0x6d33c));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';function a78_0x3aca(_0xa8f2a8,_0x16d99d){_0xa8f2a8=_0xa8f2a8-0x75;const _0x2cafc1=a78_0x2caf();let _0x3aca07=_0x2cafc1[_0xa8f2a8];return _0x3aca07;}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';function a78_0x2caf(){const _0x342aeb=['yes','flagMissing','Use\x20`','2341100pqiSyH','appcode','project','init','\x20config','27zzjnVG','Target\x20environment','9465320iOulBS','join','global','\x20\x20Default:\x20','247121XzzbXi','8qTrAfx','custom','144GEsUiv','string','215001NmBBaX','boolean','nonInteractive','write','\x0a✓\x20Successfully\x20initialized\x20','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','\x20\x20Env:\x20','map','validation','message','190695KlCBOQ','production','\x20\x20Apps:\x20','valid','log','env','bool','440765SlxpJR','cwd','1955256zhUbJv','str','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','../../commands/project/init.js','appCode','toLocaleString','run'];a78_0x2caf=function(){return _0x342aeb;};return a78_0x2caf();}import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x583961){return{'appCode':_0x583961,'appName':_0x583961};}function writeInitConfig(_0x477a3a,_0x2e99f2,_0x324e0e){const _0x12dc7a=a78_0x3aca,_0x3408d3=resolveWriteConfigPath(_0x477a3a),_0x1f3740=buildCanonicalProjectConfig({},{'appCodes':_0x2e99f2[_0x12dc7a(0x97)](_0x3bd4dd=>_0x3bd4dd[_0x12dc7a(0x7a)]),'env':_0x324e0e,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x12dc7a(0x7b)]()}});writeConfigFile(_0x3408d3,_0x1f3740);const _0x1f26ef=_0x477a3a==='global'?_0x12dc7a(0x89):_0x12dc7a(0x82);console[_0x12dc7a(0x9e)](_0x12dc7a(0x94)+_0x1f26ef+_0x12dc7a(0x84)),console[_0x12dc7a(0x9e)](_0x12dc7a(0x9c)+_0x2e99f2[_0x12dc7a(0x97)](_0x34607e=>_0x34607e[_0x12dc7a(0x7a)])[_0x12dc7a(0x88)](',\x20')),console['log'](_0x12dc7a(0x8a)+_0x1f3740['defaultApp']),console[_0x12dc7a(0x9e)](_0x12dc7a(0x96)+_0x1f3740['env']),console[_0x12dc7a(0x9e)]('\x20\x20Config:\x20'+_0x3408d3);}async function runSmartInit(_0x425334){const _0x131f22=a78_0x3aca,_0x5f48e9=process[_0x131f22(0xa2)](),_0x3a3098=_0x425334[_0x131f22(0xa0)]('global')?_0x131f22(0x89):_0x131f22(0x82),_0x4fbb55=_0x425334[_0x131f22(0x76)](_0x131f22(0x9f))||_0x131f22(0x9b),_0x46eaeb=_0x425334[_0x131f22(0x76)](_0x131f22(0x81))||undefined,_0xf948d6=_0x425334[_0x131f22(0xa0)]('project');if(_0xf948d6){const {initConfig:_0x25224a}=await import(_0x131f22(0x79));return _0x25224a({'appcode':_0x46eaeb,'env':_0x4fbb55,'autoYes':_0x425334['bool'](_0x131f22(0x7d))});}if(_0x3a3098===_0x131f22(0x82)){const _0x4af7cf=existsSync(resolve(_0x5f48e9,NEW_CONFIG_NAME)),_0x5d861c=LEGACY_CONFIG_NAMES['some'](_0x415074=>existsSync(resolve(_0x5f48e9,_0x415074)));if(_0x5d861c&&!_0x4af7cf)return console[_0x131f22(0x9e)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x425334['nonInteractive'],{'yes':_0x425334[_0x131f22(0xa0)](_0x131f22(0x7d))});if(_0x4af7cf)throw CliErrors[_0x131f22(0x98)](_0x131f22(0x95),_0x131f22(0x7f)+CLI_BIN_NAME+_0x131f22(0x78));}if(_0x46eaeb){const _0x455c8b=validateAppcode(_0x46eaeb);if(!_0x455c8b[_0x131f22(0x9d)])throw CliErrors[_0x131f22(0x98)](_0x455c8b[_0x131f22(0x99)]);writeInitConfig(_0x3a3098,[syntheticApp(_0x46eaeb)],_0x4fbb55);return;}if(_0x425334[_0x131f22(0x92)])throw CliErrors[_0x131f22(0x7e)](_0x131f22(0x81),'Usage:\x20'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x36b3d2=getCookie(),_0x456754=await selectMultipleApps(_0x36b3d2),_0x45a243=_0x456754===_0x131f22(0x8d)?[syntheticApp(await promptCustomAppcode())]:_0x456754;writeInitConfig(_0x3a3098,_0x45a243,_0x4fbb55);}const initFlags=[{'name':a78_0x4a275e(0x89),'type':a78_0x4a275e(0x91),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a78_0x4a275e(0x9f),'type':a78_0x4a275e(0x8f),'description':a78_0x4a275e(0x86),'default':a78_0x4a275e(0x9b),'enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':a78_0x4a275e(0x8f),'description':'App\x20code\x20to\x20initialize\x20with'},{'name':a78_0x4a275e(0x82),'type':a78_0x4a275e(0x91),'description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':a78_0x4a275e(0x7d),'type':a78_0x4a275e(0x91),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a78_0x4a275e(0x83),'command':a78_0x4a275e(0x7c),'description':a78_0x4a275e(0x77),'risk':a78_0x4a275e(0x93),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x5f04e1){return await runSmartInit(_0x5f04e1),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a79_0x5715(){const _0x4cb35b=['565846qrVeaI','55576YKDhRc','3795912lBThaQ','2441904gXRuGF','2156133kmCuOi','1829256qHjYTB','3789focvqo','4JWukrc','4765760GFmMcf'];a79_0x5715=function(){return _0x4cb35b;};return a79_0x5715();}(function(_0x34f677,_0x5a1fec){const _0x303c53=a79_0x4c36,_0x4b06a3=_0x34f677();while(!![]){try{const _0x13d45e=parseInt(_0x303c53(0x137))/0x1*(-parseInt(_0x303c53(0x139))/0x2)+parseInt(_0x303c53(0x13c))/0x3+-parseInt(_0x303c53(0x13b))/0x4+-parseInt(_0x303c53(0x138))/0x5+-parseInt(_0x303c53(0x13e))/0x6+parseInt(_0x303c53(0x13d))/0x7+-parseInt(_0x303c53(0x13a))/0x8*(-parseInt(_0x303c53(0x13f))/0x9);if(_0x13d45e===_0x5a1fec)break;else _0x4b06a3['push'](_0x4b06a3['shift']());}catch(_0x44074f){_0x4b06a3['push'](_0x4b06a3['shift']());}}}(a79_0x5715,0xacd88));function a79_0x4c36(_0x174a5c,_0x257ed2){_0x174a5c=_0x174a5c-0x137;const _0x571592=a79_0x5715();let _0x4c3671=_0x571592[_0x174a5c];return _0x4c3671;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
1
+ function a79_0xa27a(_0x5c05df,_0x24940f){_0x5c05df=_0x5c05df-0x82;const _0x4fb3ee=a79_0x4fb3();let _0xa27a1d=_0x4fb3ee[_0x5c05df];return _0xa27a1d;}function a79_0x4fb3(){const _0x400da2=['35ZfRnCx','4VDcBOt','5804400DxNYHg','6337243MDHLDk','3tdhOcu','8131992dUEkfO','758273nkLSUx','1659930eZxngf','80RIpJLq','223596qWDnyC','6552172KpQNgF'];a79_0x4fb3=function(){return _0x400da2;};return a79_0x4fb3();}(function(_0x7db918,_0x566b9d){const _0x3f4b53=a79_0xa27a,_0x59bfb1=_0x7db918();while(!![]){try{const _0x3d39c5=parseInt(_0x3f4b53(0x85))/0x1*(-parseInt(_0x3f4b53(0x8b))/0x2)+parseInt(_0x3f4b53(0x83))/0x3*(parseInt(_0x3f4b53(0x89))/0x4)+parseInt(_0x3f4b53(0x8c))/0x5+-parseInt(_0x3f4b53(0x86))/0x6*(-parseInt(_0x3f4b53(0x8a))/0x7)+-parseInt(_0x3f4b53(0x84))/0x8+parseInt(_0x3f4b53(0x88))/0x9*(-parseInt(_0x3f4b53(0x87))/0xa)+-parseInt(_0x3f4b53(0x82))/0xb;if(_0x3d39c5===_0x566b9d)break;else _0x59bfb1['push'](_0x59bfb1['shift']());}catch(_0x1a34ab){_0x59bfb1['push'](_0x59bfb1['shift']());}}}(a79_0x4fb3,0xd5730));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a80_0x88058a=a80_0x2731;(function(_0x5d32df,_0x4fc71d){const _0x3edcf3=a80_0x2731,_0x45802e=_0x5d32df();while(!![]){try{const _0x49da14=-parseInt(_0x3edcf3(0xf2))/0x1+parseInt(_0x3edcf3(0xf6))/0x2*(parseInt(_0x3edcf3(0x102))/0x3)+parseInt(_0x3edcf3(0xfc))/0x4*(-parseInt(_0x3edcf3(0xf7))/0x5)+parseInt(_0x3edcf3(0xf1))/0x6*(-parseInt(_0x3edcf3(0xf0))/0x7)+parseInt(_0x3edcf3(0xfd))/0x8+parseInt(_0x3edcf3(0xfe))/0x9+-parseInt(_0x3edcf3(0xf9))/0xa*(-parseInt(_0x3edcf3(0x10d))/0xb);if(_0x49da14===_0x4fc71d)break;else _0x45802e['push'](_0x45802e['shift']());}catch(_0x1e1845){_0x45802e['push'](_0x45802e['shift']());}}}(a80_0x33aa,0x51a82));import{CliError}from'../../errors.js';function a80_0x2731(_0xc01a56,_0x160d8d){_0xc01a56=_0xc01a56-0xee;const _0x33aafb=a80_0x33aa();let _0x27318d=_0x33aafb[_0xc01a56];return _0x27318d;}import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0x88058a(0xff);const NUDGE_SUPPRESSED_CODES=new Set([a80_0x88058a(0x10f),a80_0x88058a(0xef),a80_0x88058a(0x10a),a80_0x88058a(0x105),a80_0x88058a(0xf5),a80_0x88058a(0x103),a80_0x88058a(0x108),'network_error']),defaultWriter=_0x3a2214=>{const _0x5ed512=a80_0x88058a;process[_0x5ed512(0xfb)][_0x5ed512(0x107)](_0x3a2214);};function a80_0x33aa(){const _0x5a8482=['issue','config_missing','has','replace','5511ookrSj','\x20\x20\x20\x20--title\x20\x22','cancelled','Hit\x20a\x20','\x20issue\x20report\x20\x5c','auth_required','12292STWRwt','2280Kenzmj','368123nJQsYG','join','report','unknown_command','2FfJcmn','3325780MbKoyd','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','24660rVYvZS','length','stderr','4xvANKK','1129360YAwMKC','5080068FqgEbn','RABETBASE_DISABLE_ISSUE_NUDGE','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','trim','281811bPwCyd','flag_missing','\x20bug?\x20Help\x20us\x20fix\x20it:','not_in_project','command','write','validation_error'];a80_0x33aa=function(){return _0x5a8482;};return a80_0x33aa();}export function shouldNudgeForError(_0x5ca269,_0x372513){const _0x52ab41=a80_0x88058a;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x372513['service']===_0x52ab41(0x109)&&_0x372513[_0x52ab41(0x106)]===_0x52ab41(0xf4))return![];if(_0x5ca269 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x52ab41(0x10b)](_0x5ca269['code']);return!![];}export function printIssueReportNudgeForError(_0x1d9c48,_0x4d9bba,_0x443fed=defaultWriter){if(!shouldNudgeForError(_0x1d9c48,_0x4d9bba))return;const _0x43d198=buildSuggestedTitle(_0x1d9c48,_0x4d9bba);_0x443fed(formatNudge(_0x43d198));}function buildSuggestedTitle(_0x28b451,_0x5b59a3){const _0x2dc9b7=a80_0x88058a,_0xd43dd0=_0x28b451 instanceof Error?_0x28b451['message']:String(_0x28b451),_0x2844cf=_0xd43dd0[_0x2dc9b7(0x10c)](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x2dc9b7(0x101)]()['slice'](0x0,0x78)[_0x2dc9b7(0x10c)](/"/g,'\x5c\x22'),_0x55faa3=CLI_BIN_NAME+'\x20'+_0x5b59a3['service']+'\x20'+_0x5b59a3[_0x2dc9b7(0x106)];return _0x2844cf[_0x2dc9b7(0xfa)]>0x0?_0x55faa3+':\x20'+_0x2844cf:_0x55faa3;}function formatNudge(_0x3a9ea5){const _0x5036bc=a80_0x88058a;return['',_0x5036bc(0x110)+CLI_BIN_NAME+_0x5036bc(0x104),'\x20\x20'+CLI_BIN_NAME+_0x5036bc(0xee),_0x5036bc(0x10e)+_0x3a9ea5+'\x22\x20\x5c',_0x5036bc(0xf8),_0x5036bc(0x100),'\x20\x20Set\x20'+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.',''][_0x5036bc(0xf3)]('\x0a');}
1
+ const a80_0x16c040=a80_0x3321;(function(_0x3ca66f,_0x34b583){const _0x53d3d0=a80_0x3321,_0x22acf2=_0x3ca66f();while(!![]){try{const _0x32815e=parseInt(_0x53d3d0(0x9d))/0x1+-parseInt(_0x53d3d0(0x7a))/0x2+parseInt(_0x53d3d0(0x8d))/0x3+parseInt(_0x53d3d0(0x7d))/0x4+-parseInt(_0x53d3d0(0x7f))/0x5*(parseInt(_0x53d3d0(0x8b))/0x6)+parseInt(_0x53d3d0(0x81))/0x7+parseInt(_0x53d3d0(0x82))/0x8*(parseInt(_0x53d3d0(0x7e))/0x9);if(_0x32815e===_0x34b583)break;else _0x22acf2['push'](_0x22acf2['shift']());}catch(_0x2b1adb){_0x22acf2['push'](_0x22acf2['shift']());}}}(a80_0x3426,0x29246));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0x16c040(0x84);const NUDGE_SUPPRESSED_CODES=new Set([a80_0x16c040(0x97),a80_0x16c040(0x92),a80_0x16c040(0x94),a80_0x16c040(0x90),a80_0x16c040(0x9a),a80_0x16c040(0x8f),a80_0x16c040(0x80),a80_0x16c040(0x99)]),defaultWriter=_0x499585=>{const _0x1de824=a80_0x16c040;process[_0x1de824(0x89)][_0x1de824(0x98)](_0x499585);};export function shouldNudgeForError(_0x353547,_0x1a00d5){const _0x550d88=a80_0x16c040;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x1a00d5['service']==='issue'&&_0x1a00d5[_0x550d88(0x88)]===_0x550d88(0x8e))return![];if(_0x353547 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x550d88(0x83)](_0x353547[_0x550d88(0x93)]);return!![];}function a80_0x3426(){const _0x825707=['\x20issue\x20report\x20\x5c','command','stderr','slice','94152znbYaj','=1\x20to\x20silence\x20this\x20hint.','423543OKBXuX','report','flag_missing','not_in_project','message','auth_required','code','config_missing','\x20\x20Set\x20','service','cancelled','write','network_error','unknown_command','\x20bug?\x20Help\x20us\x20fix\x20it:','length','68818xuugyr','Hit\x20a\x20','564796kGGNDj','replace','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','1330668nDLxtb','18pEYXnq','50UFVNKj','validation_error','303828JClzzA','87064BOqqEV','has','RABETBASE_DISABLE_ISSUE_NUDGE','trim','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22'];a80_0x3426=function(){return _0x825707;};return a80_0x3426();}export function printIssueReportNudgeForError(_0x189148,_0x361cef,_0x2dace3=defaultWriter){if(!shouldNudgeForError(_0x189148,_0x361cef))return;const _0x515023=buildSuggestedTitle(_0x189148,_0x361cef);_0x2dace3(formatNudge(_0x515023));}function buildSuggestedTitle(_0xdb4c0c,_0x50e3c9){const _0x3e13be=a80_0x16c040,_0x5b3ae0=_0xdb4c0c instanceof Error?_0xdb4c0c[_0x3e13be(0x91)]:String(_0xdb4c0c),_0x4f00e1=_0x5b3ae0['replace'](/[\r\n]+/g,'\x20')[_0x3e13be(0x7b)](/\s+/g,'\x20')[_0x3e13be(0x85)]()[_0x3e13be(0x8a)](0x0,0x78)[_0x3e13be(0x7b)](/"/g,'\x5c\x22'),_0xcdce34=CLI_BIN_NAME+'\x20'+_0x50e3c9[_0x3e13be(0x96)]+'\x20'+_0x50e3c9[_0x3e13be(0x88)];return _0x4f00e1[_0x3e13be(0x9c)]>0x0?_0xcdce34+':\x20'+_0x4f00e1:_0xcdce34;}function a80_0x3321(_0x3bb6ac,_0x3e627a){_0x3bb6ac=_0x3bb6ac-0x7a;const _0x3426c3=a80_0x3426();let _0x332104=_0x3426c3[_0x3bb6ac];return _0x332104;}function formatNudge(_0x570deb){const _0x1a85c4=a80_0x16c040;return['',_0x1a85c4(0x9e)+CLI_BIN_NAME+_0x1a85c4(0x9b),'\x20\x20'+CLI_BIN_NAME+_0x1a85c4(0x87),'\x20\x20\x20\x20--title\x20\x22'+_0x570deb+'\x22\x20\x5c',_0x1a85c4(0x86),_0x1a85c4(0x7c),_0x1a85c4(0x95)+NUDGE_OPT_OUT_ENV+_0x1a85c4(0x8c),'']['join']('\x0a');}
@@ -1 +1 @@
1
- function a81_0x2b35(_0xdb92f6,_0x22a406){_0xdb92f6=_0xdb92f6-0x112;const _0x2771a8=a81_0x2771();let _0x2b3517=_0x2771a8[_0xdb92f6];return _0x2b3517;}const a81_0x409bb8=a81_0x2b35;(function(_0x2dc2f1,_0x32f2df){const _0x34dfb0=a81_0x2b35,_0x1508c4=_0x2dc2f1();while(!![]){try{const _0x502fb1=-parseInt(_0x34dfb0(0x114))/0x1+parseInt(_0x34dfb0(0x13b))/0x2*(-parseInt(_0x34dfb0(0x12a))/0x3)+parseInt(_0x34dfb0(0x121))/0x4+parseInt(_0x34dfb0(0x11d))/0x5+-parseInt(_0x34dfb0(0x12f))/0x6*(parseInt(_0x34dfb0(0x131))/0x7)+-parseInt(_0x34dfb0(0x132))/0x8*(-parseInt(_0x34dfb0(0x112))/0x9)+parseInt(_0x34dfb0(0x13a))/0xa*(parseInt(_0x34dfb0(0x14d))/0xb);if(_0x502fb1===_0x32f2df)break;else _0x1508c4['push'](_0x1508c4['shift']());}catch(_0x4ec417){_0x1508c4['push'](_0x1508c4['shift']());}}}(a81_0x2771,0x25c7f));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';function a81_0x2771(){const _0x48f5dc=['truncated:\x20original\x20','issue.description_redaction_kinds','1508810tfLfSx','4iqarDQ','\x20bytes','sanitize','flagMissing','title','descriptionSource','string','POST','descriptionFile:\x20','descriptionFilePath','Failed\x20to\x20report\x20platform\x20issue:\x20','compress','cwd','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','redactions:\x20','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','file','issue.description_redactions','11SchUbb','inline','truncated\x20from\x20','18yVXkCg','redactionCount','112221WPCwzm','message','filter','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','trim','description-file','One-line\x20issue\x20summary','join','description','709215QMtQYI','Issue\x20description\x20cannot\x20be\x20empty.','issue.description_original_bytes','File\x20not\x20found:\x20','643208KJajny','otel://','str','Platform\x20issue\x20reported','apiError','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','length','issue.title','truncated','150903cAywMN','redactionKinds','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','write','Issue\x20description\x20file\x20is\x20empty:\x20','5574YzQMZe','originalBytes','840FDGCmo','102112nQkmTB','validation','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','issue.description','issue','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.'];a81_0x2771=function(){return _0x48f5dc;};return a81_0x2771();}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=a81_0x409bb8(0x119);export const issueReport={'service':a81_0x409bb8(0x136),'command':'report','description':a81_0x409bb8(0x126),'risk':a81_0x409bb8(0x12d),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a81_0x409bb8(0x146),'flags':[{'name':a81_0x409bb8(0x13f),'type':a81_0x409bb8(0x141),'required':!![],'description':a81_0x409bb8(0x11a)},{'name':a81_0x409bb8(0x11c),'type':a81_0x409bb8(0x141),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x409bb8(0x141),'description':a81_0x409bb8(0x12c)}],async 'validate'(_0x1c8561){const _0xe101d5=a81_0x409bb8,_0x2be4a8=_0x1c8561[_0xe101d5(0x123)](_0xe101d5(0x13f))[_0xe101d5(0x118)](),_0x1f8e9a=_0x1c8561[_0xe101d5(0x123)]('description')[_0xe101d5(0x118)](),_0xf44c89=_0x1c8561[_0xe101d5(0x123)](DESCRIPTION_FILE_FLAG)[_0xe101d5(0x118)]();if(!_0x2be4a8)throw CliErrors[_0xe101d5(0x13e)]('title',_0xe101d5(0x148));const _0x447895=_0x1f8e9a[_0xe101d5(0x127)]>0x0,_0x1647c8=_0xf44c89[_0xe101d5(0x127)]>0x0;if(_0x447895===_0x1647c8)throw CliErrors[_0xe101d5(0x133)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0xe101d5(0x134));if(_0x1647c8){const _0x1aea9e=resolve(process[_0xe101d5(0x147)](),_0xf44c89);if(!existsSync(_0x1aea9e))throw CliErrors['validation'](_0xe101d5(0x120)+_0x1aea9e);}},async 'dryRun'(_0x37e35c){const _0x30a2a9=a81_0x409bb8,_0x29c6e=await prepareIssueReport(_0x37e35c);return{'method':_0x30a2a9(0x142),'url':_0x30a2a9(0x122)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x29c6e[_0x30a2a9(0x13f)],'issue.description':_0x29c6e[_0x30a2a9(0x11c)],'issue.description_original_bytes':_0x29c6e[_0x30a2a9(0x13d)][_0x30a2a9(0x130)],'issue.description_truncated':_0x29c6e[_0x30a2a9(0x13d)][_0x30a2a9(0x129)],'issue.description_redactions':_0x29c6e[_0x30a2a9(0x13d)]['redactionCount'],'issue.description_redaction_kinds':_0x29c6e['sanitize']['redactionKinds'][_0x30a2a9(0x11b)](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','descriptionSource:\x20'+_0x29c6e[_0x30a2a9(0x140)],_0x29c6e[_0x30a2a9(0x144)]?_0x30a2a9(0x143)+_0x29c6e[_0x30a2a9(0x144)]:null,_0x29c6e['sanitize'][_0x30a2a9(0x129)]?_0x30a2a9(0x138)+_0x29c6e[_0x30a2a9(0x13d)][_0x30a2a9(0x130)]+_0x30a2a9(0x13c):null,_0x29c6e[_0x30a2a9(0x13d)]['redactionCount']>0x0?_0x30a2a9(0x149)+_0x29c6e['sanitize'][_0x30a2a9(0x113)]+'\x20('+_0x29c6e[_0x30a2a9(0x13d)]['redactionKinds'][_0x30a2a9(0x11b)](',\x20')+')':null][_0x30a2a9(0x116)](Boolean)['join']('\x0a')};},async 'execute'(_0x3c9743){const _0x541973=a81_0x409bb8,_0x750782=await prepareIssueReport(_0x3c9743);try{await sendPlatformIssueCollectLog({'title':_0x750782[_0x541973(0x13f)],'description':_0x750782[_0x541973(0x11c)],'sanitize':{'originalBytes':_0x750782[_0x541973(0x13d)][_0x541973(0x130)],'truncated':_0x750782[_0x541973(0x13d)]['truncated'],'redactionCount':_0x750782[_0x541973(0x13d)][_0x541973(0x113)],'redactionKinds':_0x750782[_0x541973(0x13d)]['redactionKinds']}});}catch(_0x1f2728){throw CliErrors[_0x541973(0x125)](_0x541973(0x145)+(_0x1f2728 instanceof Error?_0x1f2728[_0x541973(0x115)]:String(_0x1f2728)),_0x541973(0x137));}return{'ok':!![],'message':buildResultMessage(_0x750782[_0x541973(0x13d)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x541973(0x128),_0x541973(0x135),_0x541973(0x11f),'issue.description_truncated',_0x541973(0x14c),_0x541973(0x139)],'issue':{'title':_0x750782[_0x541973(0x13f)],'descriptionLength':_0x750782[_0x541973(0x11c)][_0x541973(0x127)],'descriptionSource':_0x750782['descriptionSource'],..._0x750782[_0x541973(0x144)]?{'descriptionFile':_0x750782[_0x541973(0x144)]}:{},'sanitize':{'originalBytes':_0x750782['sanitize'][_0x541973(0x130)],'truncated':_0x750782['sanitize']['truncated'],'redactions':_0x750782[_0x541973(0x13d)][_0x541973(0x113)],'redactionKinds':_0x750782[_0x541973(0x13d)][_0x541973(0x12b)]}}}};}};function buildResultMessage(_0x105f5e){const _0x1cac53=a81_0x409bb8,_0x2e271a=[];return _0x105f5e['truncated']&&_0x2e271a['push'](_0x1cac53(0x14f)+_0x105f5e['originalBytes']+_0x1cac53(0x13c)),_0x105f5e['redactionCount']>0x0&&_0x2e271a['push']('redacted\x20'+_0x105f5e['redactionCount']+'\x20secret(s):\x20'+_0x105f5e['redactionKinds'][_0x1cac53(0x11b)](',\x20')),_0x2e271a[_0x1cac53(0x127)]===0x0?_0x1cac53(0x124):'Platform\x20issue\x20reported\x20('+_0x2e271a[_0x1cac53(0x11b)](';\x20')+')';}async function prepareIssueReport(_0x3d9fd2){const _0xa75145=a81_0x409bb8,_0xae05f0=_0x3d9fd2[_0xa75145(0x123)](_0xa75145(0x13f))[_0xa75145(0x118)](),_0x2651b3=_0x3d9fd2[_0xa75145(0x123)](_0xa75145(0x11c)),_0x23e77e=_0x3d9fd2[_0xa75145(0x123)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x23e77e){const _0x137448=_0x2651b3;if(!_0x137448[_0xa75145(0x118)]())throw CliErrors[_0xa75145(0x133)](_0xa75145(0x11e),_0xa75145(0x117));const _0x31d713=sanitizeIssueDescription(_0x137448);return{'title':_0xae05f0,'description':_0x31d713['description'],'descriptionSource':_0xa75145(0x14e),'sanitize':_0x31d713};}const _0x31a38d=resolve(process[_0xa75145(0x147)](),_0x23e77e),_0x4e7ddc=await readFile(_0x31a38d,'utf8');if(!_0x4e7ddc['trim']())throw CliErrors['validation'](_0xa75145(0x12e)+_0x31a38d,_0xa75145(0x14a));const _0x5e1363=sanitizeIssueDescription(_0x4e7ddc);return{'title':_0xae05f0,'description':_0x5e1363['description'],'descriptionSource':_0xa75145(0x14b),'descriptionFilePath':_0x31a38d,'sanitize':_0x5e1363};}
1
+ const a81_0x3c874e=a81_0x3169;(function(_0x428e34,_0x23a01c){const _0x1279eb=a81_0x3169,_0x481e56=_0x428e34();while(!![]){try{const _0x3b6490=-parseInt(_0x1279eb(0x141))/0x1*(-parseInt(_0x1279eb(0x129))/0x2)+-parseInt(_0x1279eb(0x127))/0x3+-parseInt(_0x1279eb(0x123))/0x4*(-parseInt(_0x1279eb(0x142))/0x5)+-parseInt(_0x1279eb(0x132))/0x6*(parseInt(_0x1279eb(0x115))/0x7)+-parseInt(_0x1279eb(0x11b))/0x8+parseInt(_0x1279eb(0x13d))/0x9*(parseInt(_0x1279eb(0x12b))/0xa)+-parseInt(_0x1279eb(0x148))/0xb*(-parseInt(_0x1279eb(0x10b))/0xc);if(_0x3b6490===_0x23a01c)break;else _0x481e56['push'](_0x481e56['shift']());}catch(_0x1d8f58){_0x481e56['push'](_0x481e56['shift']());}}}(a81_0x3559,0x34e40));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=a81_0x3c874e(0x10d);export const issueReport={'service':a81_0x3c874e(0x12a),'command':a81_0x3c874e(0x144),'description':a81_0x3c874e(0x125),'risk':a81_0x3c874e(0x10f),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a81_0x3c874e(0x13e),'flags':[{'name':'title','type':a81_0x3c874e(0x13f),'required':!![],'description':'One-line\x20issue\x20summary'},{'name':'description','type':a81_0x3c874e(0x13f),'description':a81_0x3c874e(0x133)},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x3c874e(0x13f),'description':a81_0x3c874e(0x11a)}],async 'validate'(_0x6280ec){const _0x16cd58=a81_0x3c874e,_0x5c4b27=_0x6280ec[_0x16cd58(0x131)](_0x16cd58(0x11f))['trim'](),_0xaeadd8=_0x6280ec[_0x16cd58(0x131)](_0x16cd58(0x12f))[_0x16cd58(0x137)](),_0x33afc0=_0x6280ec[_0x16cd58(0x131)](DESCRIPTION_FILE_FLAG)[_0x16cd58(0x137)]();if(!_0x5c4b27)throw CliErrors[_0x16cd58(0x13a)](_0x16cd58(0x11f),_0x16cd58(0x119));const _0x49c760=_0xaeadd8[_0x16cd58(0x113)]>0x0,_0x5bf5b0=_0x33afc0[_0x16cd58(0x113)]>0x0;if(_0x49c760===_0x5bf5b0)throw CliErrors[_0x16cd58(0x10c)](_0x16cd58(0x11d),_0x16cd58(0x136));if(_0x5bf5b0){const _0x5ed866=resolve(process[_0x16cd58(0x10e)](),_0x33afc0);if(!existsSync(_0x5ed866))throw CliErrors[_0x16cd58(0x10c)](_0x16cd58(0x143)+_0x5ed866);}},async 'dryRun'(_0x5c667e){const _0x3ae10f=a81_0x3c874e,_0x402e68=await prepareIssueReport(_0x5c667e);return{'method':_0x3ae10f(0x149),'url':_0x3ae10f(0x121)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x402e68[_0x3ae10f(0x11f)],'issue.description':_0x402e68[_0x3ae10f(0x12f)],'issue.description_original_bytes':_0x402e68[_0x3ae10f(0x146)][_0x3ae10f(0x117)],'issue.description_truncated':_0x402e68[_0x3ae10f(0x146)][_0x3ae10f(0x126)],'issue.description_redactions':_0x402e68[_0x3ae10f(0x146)]['redactionCount'],'issue.description_redaction_kinds':_0x402e68[_0x3ae10f(0x146)][_0x3ae10f(0x138)][_0x3ae10f(0x110)](',')}},'description':[_0x3ae10f(0x109),'descriptionSource:\x20'+_0x402e68[_0x3ae10f(0x139)],_0x402e68['descriptionFilePath']?'descriptionFile:\x20'+_0x402e68[_0x3ae10f(0x10a)]:null,_0x402e68[_0x3ae10f(0x146)][_0x3ae10f(0x126)]?'truncated:\x20original\x20'+_0x402e68['sanitize'][_0x3ae10f(0x117)]+'\x20bytes':null,_0x402e68['sanitize']['redactionCount']>0x0?_0x3ae10f(0x114)+_0x402e68[_0x3ae10f(0x146)]['redactionCount']+'\x20('+_0x402e68[_0x3ae10f(0x146)][_0x3ae10f(0x138)]['join'](',\x20')+')':null][_0x3ae10f(0x145)](Boolean)['join']('\x0a')};},async 'execute'(_0x40e1f5){const _0x2222a3=a81_0x3c874e,_0x1f12a5=await prepareIssueReport(_0x40e1f5);try{await sendPlatformIssueCollectLog({'title':_0x1f12a5['title'],'description':_0x1f12a5['description'],'sanitize':{'originalBytes':_0x1f12a5[_0x2222a3(0x146)][_0x2222a3(0x117)],'truncated':_0x1f12a5[_0x2222a3(0x146)]['truncated'],'redactionCount':_0x1f12a5[_0x2222a3(0x146)][_0x2222a3(0x112)],'redactionKinds':_0x1f12a5['sanitize'][_0x2222a3(0x138)]}});}catch(_0x2c95aa){throw CliErrors[_0x2222a3(0x135)](_0x2222a3(0x12e)+(_0x2c95aa instanceof Error?_0x2c95aa[_0x2222a3(0x128)]:String(_0x2c95aa)),_0x2222a3(0x122));}return{'ok':!![],'message':buildResultMessage(_0x1f12a5['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x2222a3(0x140),_0x2222a3(0x12c),_0x2222a3(0x11e),_0x2222a3(0x13b),_0x2222a3(0x118),_0x2222a3(0x134)],'issue':{'title':_0x1f12a5[_0x2222a3(0x11f)],'descriptionLength':_0x1f12a5['description'][_0x2222a3(0x113)],'descriptionSource':_0x1f12a5[_0x2222a3(0x139)],..._0x1f12a5[_0x2222a3(0x10a)]?{'descriptionFile':_0x1f12a5[_0x2222a3(0x10a)]}:{},'sanitize':{'originalBytes':_0x1f12a5['sanitize'][_0x2222a3(0x117)],'truncated':_0x1f12a5['sanitize'][_0x2222a3(0x126)],'redactions':_0x1f12a5[_0x2222a3(0x146)][_0x2222a3(0x112)],'redactionKinds':_0x1f12a5[_0x2222a3(0x146)][_0x2222a3(0x138)]}}}};}};function a81_0x3169(_0x397b30,_0x157cff){_0x397b30=_0x397b30-0x109;const _0x355923=a81_0x3559();let _0x3169e8=_0x355923[_0x397b30];return _0x3169e8;}function a81_0x3559(){const _0x4888c8=['title','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','otel://','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','92qpowxf','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','truncated','409701jpLPxk','message','58184sLPCUP','issue','10jXtfuf','issue.description','push','Failed\x20to\x20report\x20platform\x20issue:\x20','description','Platform\x20issue\x20reported','str','272166ROpZkM','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','issue.description_redaction_kinds','apiError','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','trim','redactionKinds','descriptionSource','flagMissing','issue.description_truncated','Platform\x20issue\x20reported\x20(','3688929KWFobZ','compress','string','issue.title','1bDCMit','30630IphQPL','File\x20not\x20found:\x20','report','filter','sanitize','Issue\x20description\x20cannot\x20be\x20empty.','649583etpcBa','POST','truncated\x20from\x20','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','descriptionFilePath','84LPFuHL','validation','description-file','cwd','write','join','Issue\x20description\x20file\x20is\x20empty:\x20','redactionCount','length','redactions:\x20','42bEMjnc','utf8','originalBytes','issue.description_redactions','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','2942952qYNPDe','\x20secret(s):\x20','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','issue.description_original_bytes'];a81_0x3559=function(){return _0x4888c8;};return a81_0x3559();}function buildResultMessage(_0x29d662){const _0x49f46e=a81_0x3c874e,_0xf6b808=[];return _0x29d662[_0x49f46e(0x126)]&&_0xf6b808[_0x49f46e(0x12d)](_0x49f46e(0x14a)+_0x29d662[_0x49f46e(0x117)]+'\x20bytes'),_0x29d662[_0x49f46e(0x112)]>0x0&&_0xf6b808[_0x49f46e(0x12d)]('redacted\x20'+_0x29d662[_0x49f46e(0x112)]+_0x49f46e(0x11c)+_0x29d662[_0x49f46e(0x138)][_0x49f46e(0x110)](',\x20')),_0xf6b808[_0x49f46e(0x113)]===0x0?_0x49f46e(0x130):_0x49f46e(0x13c)+_0xf6b808[_0x49f46e(0x110)](';\x20')+')';}async function prepareIssueReport(_0x579206){const _0x551d9e=a81_0x3c874e,_0xd0c66c=_0x579206['str'](_0x551d9e(0x11f))[_0x551d9e(0x137)](),_0x3103f2=_0x579206[_0x551d9e(0x131)](_0x551d9e(0x12f)),_0x316aa5=_0x579206['str'](DESCRIPTION_FILE_FLAG)[_0x551d9e(0x137)]();if(!_0x316aa5){const _0x5ce225=_0x3103f2;if(!_0x5ce225[_0x551d9e(0x137)]())throw CliErrors['validation'](_0x551d9e(0x147),_0x551d9e(0x124));const _0x56330f=sanitizeIssueDescription(_0x5ce225);return{'title':_0xd0c66c,'description':_0x56330f[_0x551d9e(0x12f)],'descriptionSource':'inline','sanitize':_0x56330f};}const _0xc311a9=resolve(process[_0x551d9e(0x10e)](),_0x316aa5),_0x28c467=await readFile(_0xc311a9,_0x551d9e(0x116));if(!_0x28c467[_0x551d9e(0x137)]())throw CliErrors[_0x551d9e(0x10c)](_0x551d9e(0x111)+_0xc311a9,_0x551d9e(0x120));const _0x44df6f=sanitizeIssueDescription(_0x28c467);return{'title':_0xd0c66c,'description':_0x44df6f[_0x551d9e(0x12f)],'descriptionSource':'file','descriptionFilePath':_0xc311a9,'sanitize':_0x44df6f};}
@@ -1 +1 @@
1
- const a82_0x622d08=a82_0x51fe;(function(_0x22f33d,_0x5fb186){const _0x416bce=a82_0x51fe,_0x555c2f=_0x22f33d();while(!![]){try{const _0x198f94=-parseInt(_0x416bce(0xba))/0x1*(-parseInt(_0x416bce(0xc5))/0x2)+-parseInt(_0x416bce(0xc2))/0x3*(-parseInt(_0x416bce(0xb7))/0x4)+parseInt(_0x416bce(0xa7))/0x5+parseInt(_0x416bce(0xa8))/0x6*(-parseInt(_0x416bce(0xb1))/0x7)+parseInt(_0x416bce(0xb4))/0x8+-parseInt(_0x416bce(0xc1))/0x9*(parseInt(_0x416bce(0xab))/0xa)+parseInt(_0x416bce(0xac))/0xb*(parseInt(_0x416bce(0xbc))/0xc);if(_0x198f94===_0x5fb186)break;else _0x555c2f['push'](_0x555c2f['shift']());}catch(_0x550aa3){_0x555c2f['push'](_0x555c2f['shift']());}}}(a82_0x51dd,0x79363));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;function a82_0x51dd(){const _0x722794=['417719wsJGiy','private-key','95448DHROvy','string','replace','subarray','bearer-jwt','4600116KwdCrL','2403VCTOee','utf8','cookie','4eCzhNO','976005ppivKs','77160emYdQT','kind','from','10CrKCTC','209SiCswU','pattern','REDACTED:password','REDACTED:bearer-jwt','access-key','518LZLSrE','byteLength','REDACTED:access-key','1048600oQflTM','max','includes','3228jQfyJy','label','REDACTED:private-key'];a82_0x51dd=function(){return _0x722794;};return a82_0x51dd();}function a82_0x51fe(_0x4bb31e,_0x316ae7){_0x4bb31e=_0x4bb31e-0xa7;const _0x51dd42=a82_0x51dd();let _0x51fee6=_0x51dd42[_0x4bb31e];return _0x51fee6;}const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':a82_0x622d08(0xc4),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':'authorization','pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':a82_0x622d08(0xbb),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a82_0x622d08(0xb9)},{'kind':a82_0x622d08(0xb0),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a82_0x622d08(0xb3)},{'kind':'password','pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a82_0x622d08(0xae)},{'kind':a82_0x622d08(0xc0),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a82_0x622d08(0xaf)}];export function sanitizeIssueDescription(_0x2746bd){const _0x2f1604=a82_0x622d08,_0x3fd128=Buffer['byteLength'](_0x2746bd,'utf8'),_0x2269c3=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x3d48b4=_0x2746bd,_0x28e431=0x0;const _0x4fdcd8=[];if(!_0x2269c3)for(const _0xdcc17 of REDACTION_RULES){let _0x498813=0x0;_0x3d48b4=_0x3d48b4[_0x2f1604(0xbe)](_0xdcc17[_0x2f1604(0xad)],(_0x5623e9,_0x27d365)=>{const _0x38b905=_0x2f1604;_0x498813+=0x1;const _0x576d7d=typeof _0x27d365===_0x38b905(0xbd)?_0x27d365:'';return _0x576d7d+'['+_0xdcc17[_0x38b905(0xb8)]+']';}),_0x498813>0x0&&(_0x28e431+=_0x498813,!_0x4fdcd8[_0x2f1604(0xb6)](_0xdcc17['kind'])&&_0x4fdcd8['push'](_0xdcc17[_0x2f1604(0xa9)]));}let _0x4344cc=![];if(Buffer[_0x2f1604(0xb2)](_0x3d48b4,'utf8')>ISSUE_DESCRIPTION_MAX_BYTES){_0x4344cc=!![];const _0x273749=Buffer[_0x2f1604(0xb2)](TRUNCATION_NOTICE,'utf8'),_0x4dbdfa=Math[_0x2f1604(0xb5)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x273749);_0x3d48b4=sliceUtf8Bytes(_0x3d48b4,_0x4dbdfa)+TRUNCATION_NOTICE;}return{'description':_0x3d48b4,'originalBytes':_0x3fd128,'truncated':_0x4344cc,'redactionCount':_0x28e431,'redactionKinds':_0x4fdcd8};}function sliceUtf8Bytes(_0x54fadb,_0x504a45){const _0x2a9982=a82_0x622d08;if(_0x504a45<=0x0)return'';const _0x58fbcb=Buffer[_0x2a9982(0xaa)](_0x54fadb,'utf8');if(_0x58fbcb[_0x2a9982(0xb2)]<=_0x504a45)return _0x54fadb;let _0x4d55f8=_0x504a45;while(_0x4d55f8>0x0){const _0x484a14=_0x58fbcb[_0x4d55f8];if(_0x484a14===undefined||(_0x484a14&0xc0)!==0x80)break;_0x4d55f8-=0x1;}return _0x58fbcb[_0x2a9982(0xbf)](0x0,_0x4d55f8)['toString'](_0x2a9982(0xc3));}
1
+ const a82_0x22b080=a82_0x21f5;function a82_0x21f5(_0x3cf535,_0x294bf6){_0x3cf535=_0x3cf535-0x1bd;const _0x1716bf=a82_0x1716();let _0x21f5ad=_0x1716bf[_0x3cf535];return _0x21f5ad;}(function(_0x53a3c9,_0x5f1282){const _0x5c5463=a82_0x21f5,_0xd5b76d=_0x53a3c9();while(!![]){try{const _0x5b9cc5=-parseInt(_0x5c5463(0x1bd))/0x1+parseInt(_0x5c5463(0x1c8))/0x2*(-parseInt(_0x5c5463(0x1ca))/0x3)+-parseInt(_0x5c5463(0x1d3))/0x4*(parseInt(_0x5c5463(0x1cc))/0x5)+parseInt(_0x5c5463(0x1c4))/0x6*(-parseInt(_0x5c5463(0x1bf))/0x7)+parseInt(_0x5c5463(0x1d8))/0x8+-parseInt(_0x5c5463(0x1d6))/0x9*(-parseInt(_0x5c5463(0x1c7))/0xa)+-parseInt(_0x5c5463(0x1c5))/0xb*(-parseInt(_0x5c5463(0x1cf))/0xc);if(_0x5b9cc5===_0x5f1282)break;else _0xd5b76d['push'](_0xd5b76d['shift']());}catch(_0x398875){_0xd5b76d['push'](_0xd5b76d['shift']());}}}(a82_0x1716,0x5b1ff));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a82_0x22b080(0x1c2),REDACTION_RULES=[{'kind':a82_0x22b080(0x1ce),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a82_0x22b080(0x1c1)},{'kind':a82_0x22b080(0x1d7),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a82_0x22b080(0x1c0),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a82_0x22b080(0x1d0)},{'kind':a82_0x22b080(0x1c9),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a82_0x22b080(0x1c6)},{'kind':'bearer-jwt','pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a82_0x22b080(0x1cd)}];export function sanitizeIssueDescription(_0x22a398){const _0xcb85f6=a82_0x22b080,_0xdcacbb=Buffer[_0xcb85f6(0x1c3)](_0x22a398,_0xcb85f6(0x1d5)),_0x180742=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0xb9be1=_0x22a398,_0x5cc2fb=0x0;const _0x5ddb7e=[];if(!_0x180742)for(const _0x1cc702 of REDACTION_RULES){let _0x320495=0x0;_0xb9be1=_0xb9be1[_0xcb85f6(0x1d4)](_0x1cc702[_0xcb85f6(0x1cb)],(_0x3f0b0d,_0x171cc8)=>{_0x320495+=0x1;const _0x32e9f5=typeof _0x171cc8==='string'?_0x171cc8:'';return _0x32e9f5+'['+_0x1cc702['label']+']';}),_0x320495>0x0&&(_0x5cc2fb+=_0x320495,!_0x5ddb7e[_0xcb85f6(0x1d1)](_0x1cc702['kind'])&&_0x5ddb7e['push'](_0x1cc702[_0xcb85f6(0x1be)]));}let _0x3f28ea=![];if(Buffer['byteLength'](_0xb9be1,_0xcb85f6(0x1d5))>ISSUE_DESCRIPTION_MAX_BYTES){_0x3f28ea=!![];const _0x32dfb3=Buffer[_0xcb85f6(0x1c3)](TRUNCATION_NOTICE,'utf8'),_0x38ed08=Math[_0xcb85f6(0x1d2)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x32dfb3);_0xb9be1=sliceUtf8Bytes(_0xb9be1,_0x38ed08)+TRUNCATION_NOTICE;}return{'description':_0xb9be1,'originalBytes':_0xdcacbb,'truncated':_0x3f28ea,'redactionCount':_0x5cc2fb,'redactionKinds':_0x5ddb7e};}function sliceUtf8Bytes(_0x1eef5e,_0x1b4e75){const _0x48add4=a82_0x22b080;if(_0x1b4e75<=0x0)return'';const _0x2800de=Buffer['from'](_0x1eef5e,_0x48add4(0x1d5));if(_0x2800de[_0x48add4(0x1c3)]<=_0x1b4e75)return _0x1eef5e;let _0x1e5417=_0x1b4e75;while(_0x1e5417>0x0){const _0x11a9d5=_0x2800de[_0x1e5417];if(_0x11a9d5===undefined||(_0x11a9d5&0xc0)!==0x80)break;_0x1e5417-=0x1;}return _0x2800de['subarray'](0x0,_0x1e5417)['toString'](_0x48add4(0x1d5));}function a82_0x1716(){const _0x1240a1=['REDACTED:password','10aiVsMb','4gLnSwU','password','659289WVrcZI','pattern','140835gEkJSl','REDACTED:bearer-jwt','cookie','24eJcAsL','REDACTED:access-key','includes','max','100NgJMBE','replace','utf8','5899401UKsKKE','authorization','5899600vvWJqw','292736dNrymx','kind','8785uLtNpj','access-key','REDACTED:cookie','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','byteLength','3378TtdUpG','6178205YDLkMz'];a82_0x1716=function(){return _0x1240a1;};return a82_0x1716();}