@lovrabet/rabetbase-cli 2.1.13 → 2.1.14-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 (202) 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 -0
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/link-create.js +1 -1
  58. package/lib/commands/dataset/link-delete.js +1 -1
  59. package/lib/commands/dataset/link-shared.js +1 -1
  60. package/lib/commands/dataset/link-update.js +1 -1
  61. package/lib/commands/dataset/links.js +1 -1
  62. package/lib/commands/dataset/list.js +1 -1
  63. package/lib/commands/dataset/operations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -0
  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/shared.js +1 -1
  103. package/lib/commands/page/standard-page-status.js +1 -1
  104. package/lib/commands/page/sync.js +1 -1
  105. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  106. package/lib/commands/project/create/format-elapsed.js +1 -1
  107. package/lib/commands/project/create/main.js +1 -1
  108. package/lib/commands/project/create/non-interactive.js +1 -1
  109. package/lib/commands/project/create/project-template-path.js +1 -1
  110. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  111. package/lib/commands/project/create/use-format-code.js +1 -1
  112. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  113. package/lib/commands/project/index.js +1 -1
  114. package/lib/commands/project/init.js +1 -1
  115. package/lib/commands/project/upgrade.js +1 -1
  116. package/lib/commands/registry.js +1 -1
  117. package/lib/commands/run/index.js +1 -1
  118. package/lib/commands/schema.js +1 -1
  119. package/lib/commands/skill/index.js +1 -1
  120. package/lib/commands/sql/create.js +1 -1
  121. package/lib/commands/sql/delete.js +1 -1
  122. package/lib/commands/sql/detail.js +1 -1
  123. package/lib/commands/sql/exec.js +1 -1
  124. package/lib/commands/sql/index.js +1 -1
  125. package/lib/commands/sql/list.js +1 -1
  126. package/lib/commands/sql/pull.js +1 -1
  127. package/lib/commands/sql/push.js +1 -1
  128. package/lib/commands/sql/save.js +1 -1
  129. package/lib/commands/sql/shared.js +1 -1
  130. package/lib/commands/sql/status.js +1 -1
  131. package/lib/commands/sql/validate.js +1 -1
  132. package/lib/config/schema.js +1 -1
  133. package/lib/constant/cdn.js +1 -1
  134. package/lib/constant/cli.js +1 -1
  135. package/lib/constant/defaults.js +1 -1
  136. package/lib/constant/domain.js +1 -1
  137. package/lib/constant/env.js +1 -1
  138. package/lib/constant/output.js +1 -1
  139. package/lib/constant/paths.js +1 -1
  140. package/lib/constant/risk.js +1 -1
  141. package/lib/context.js +1 -1
  142. package/lib/core/alias-resolver.js +1 -1
  143. package/lib/core/api-client.js +1 -1
  144. package/lib/core/bff/config.js +1 -1
  145. package/lib/core/bff/file-system.js +1 -1
  146. package/lib/core/bff/hash.js +1 -1
  147. package/lib/core/bff/lock.js +1 -1
  148. package/lib/core/bff/utils.js +1 -1
  149. package/lib/core/db-resolver.js +1 -1
  150. package/lib/core/page/file-system.js +1 -1
  151. package/lib/core/page/hash.js +1 -1
  152. package/lib/core/page/lock.js +1 -1
  153. package/lib/core/sql-sync/config.js +1 -1
  154. package/lib/core/sql-sync/file-system.js +1 -1
  155. package/lib/core/sql-sync/hash.js +1 -1
  156. package/lib/core/sql-sync/lock.js +1 -1
  157. package/lib/core/sql-sync/utils.js +1 -1
  158. package/lib/core/sql-validator.js +1 -1
  159. package/lib/errors.js +1 -1
  160. package/lib/framework/build-all-flags.js +1 -1
  161. package/lib/framework/flags.js +1 -1
  162. package/lib/framework/help.js +1 -1
  163. package/lib/framework/index.js +1 -1
  164. package/lib/framework/output.js +1 -1
  165. package/lib/framework/response.js +1 -1
  166. package/lib/framework/runner-alias.js +1 -1
  167. package/lib/framework/runner.js +1 -1
  168. package/lib/framework/schema-export.js +1 -1
  169. package/lib/framework/types.js +1 -1
  170. package/lib/generated/build-info.js +1 -1
  171. package/lib/help.js +1 -1
  172. package/lib/skills/main.js +1 -1
  173. package/lib/skills/npx-skills-add.js +1 -1
  174. package/lib/telemetry/cli-command-trace.js +1 -1
  175. package/lib/telemetry/cli-help-trace.js +1 -1
  176. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  177. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  178. package/lib/telemetry/send-cli-trace-log.js +1 -1
  179. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  180. package/lib/utils/ai_config.js +1 -1
  181. package/lib/utils/apply-jq-filter.js +1 -1
  182. package/lib/utils/cdn-config.js +1 -1
  183. package/lib/utils/check-sdk-version.js +1 -1
  184. package/lib/utils/cli-version-check.js +1 -1
  185. package/lib/utils/cli-version-policy.js +1 -1
  186. package/lib/utils/config.js +1 -1
  187. package/lib/utils/copy-directory.js +1 -1
  188. package/lib/utils/entity-with-id.js +1 -1
  189. package/lib/utils/file-utils.js +1 -1
  190. package/lib/utils/guides-cdn.js +1 -1
  191. package/lib/utils/http-client.js +1 -1
  192. package/lib/utils/is-non-interactive.js +1 -1
  193. package/lib/utils/logger.js +1 -1
  194. package/lib/utils/params.js +1 -1
  195. package/lib/utils/platform.js +1 -1
  196. package/lib/utils/rules-cdn.js +1 -1
  197. package/lib/utils/sleep.js +1 -1
  198. package/lib/utils/template-replacer.js +1 -1
  199. package/lib/utils/version.js +1 -1
  200. package/lib/utils/with-active-cookie.js +1 -1
  201. package/lib/utils/write-cli-side-channel.js +1 -1
  202. package/package.json +1 -1
@@ -1 +1 @@
1
- const a62_0x39eb10=a62_0x3f91;(function(_0x20f1a1,_0x122905){const _0x15dfcb=a62_0x3f91,_0x12f732=_0x20f1a1();while(!![]){try{const _0x4c7325=parseInt(_0x15dfcb(0xf4))/0x1*(parseInt(_0x15dfcb(0xfc))/0x2)+parseInt(_0x15dfcb(0xfb))/0x3+parseInt(_0x15dfcb(0xf5))/0x4+-parseInt(_0x15dfcb(0xf8))/0x5*(-parseInt(_0x15dfcb(0xfa))/0x6)+parseInt(_0x15dfcb(0xf7))/0x7+parseInt(_0x15dfcb(0x101))/0x8*(parseInt(_0x15dfcb(0xef))/0x9)+-parseInt(_0x15dfcb(0xf3))/0xa;if(_0x4c7325===_0x122905)break;else _0x12f732['push'](_0x12f732['shift']());}catch(_0x406e7a){_0x12f732['push'](_0x12f732['shift']());}}}(a62_0x56e5,0xeac66));import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';function a62_0x56e5(){const _0x5d6661=['52620060NqQROU','21958nQloBJ','5203888vTpdvM','No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.','6941312TnOLJN','3921575pZAGKB','Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)','12VBjGkk','124590MTgCPx','164rEbbfI','analyze-cancel','string','write','num','160JPOQrq','validation','plan','234153rabnLr','Cancel\x20requested\x20for\x20plan\x20','latestAnalysisTraceId','Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.'];a62_0x56e5=function(){return _0x5d6661;};return a62_0x56e5();}import{CliErrors}from'../../errors.js';function a62_0x3f91(_0x4bce01,_0x2111dd){_0x4bce01=_0x4bce01-0xef;const _0x56e5f8=a62_0x56e5();let _0x3f9157=_0x56e5f8[_0x4bce01];return _0x3f9157;}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeCancel={'service':'db','command':a62_0x39eb10(0xfd),'description':'Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','risk':a62_0x39eb10(0xff),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a62_0x39eb10(0x103),'type':a62_0x39eb10(0xfe),'description':a62_0x39eb10(0xf9)}],async 'execute'(_0x395be0){const _0x33ef89=a62_0x39eb10,_0x23688d=_0x395be0[_0x33ef89(0x100)]('id');let _0x36fbd9=_0x395be0['str'](_0x33ef89(0x103))||undefined;if(!_0x36fbd9){const _0x2a999a=await getDbLinkInfo(_0x23688d);_0x36fbd9=_0x2a999a[_0x33ef89(0xf1)]??undefined;if(!_0x36fbd9)throw CliErrors[_0x33ef89(0x102)](_0x33ef89(0xf6),_0x33ef89(0xf2));}return await cancelDbAnalysis(_0x36fbd9),{'ok':!![],'data':{'dbLinkId':_0x23688d,'planId':_0x36fbd9},'message':_0x33ef89(0xf0)+_0x36fbd9};}};
1
+ const a64_0x4c985a=a64_0x1164;function a64_0x1164(_0x5a394f,_0x3f6da4){_0x5a394f=_0x5a394f-0x13f;const _0x556e73=a64_0x556e();let _0x11647c=_0x556e73[_0x5a394f];return _0x11647c;}(function(_0x7ef8fc,_0x46b42c){const _0x497187=a64_0x1164,_0xdda6a=_0x7ef8fc();while(!![]){try{const _0x1f7b72=parseInt(_0x497187(0x143))/0x1*(parseInt(_0x497187(0x147))/0x2)+parseInt(_0x497187(0x14d))/0x3+parseInt(_0x497187(0x142))/0x4+parseInt(_0x497187(0x14c))/0x5*(-parseInt(_0x497187(0x14b))/0x6)+-parseInt(_0x497187(0x148))/0x7*(-parseInt(_0x497187(0x14a))/0x8)+-parseInt(_0x497187(0x140))/0x9*(parseInt(_0x497187(0x141))/0xa)+-parseInt(_0x497187(0x149))/0xb;if(_0x1f7b72===_0x46b42c)break;else _0xdda6a['push'](_0xdda6a['shift']());}catch(_0x526686){_0xdda6a['push'](_0xdda6a['shift']());}}}(a64_0x556e,0x2478c));import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a64_0x556e(){const _0x14079e=['90010geCOgm','700616HoXknw','1weGjis','latestAnalysisTraceId','str','write','346046qVvVrF','4235itFIjY','2775058NAEcBb','2344QWiCRD','50532ChomLX','15DyPDzP','217527rcyJmP','Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)','Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.','Cancel\x20requested\x20for\x20plan\x20','plan','analyze-cancel','string','No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.','171cynzhX'];a64_0x556e=function(){return _0x14079e;};return a64_0x556e();}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeCancel={'service':'db','command':a64_0x4c985a(0x152),'description':'Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','risk':a64_0x4c985a(0x146),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a64_0x4c985a(0x151),'type':a64_0x4c985a(0x153),'description':a64_0x4c985a(0x14e)}],async 'execute'(_0x2693f5){const _0xbdaa77=a64_0x4c985a,_0x18ed59=_0x2693f5['num']('id');let _0x1ae030=_0x2693f5[_0xbdaa77(0x145)](_0xbdaa77(0x151))||undefined;if(!_0x1ae030){const _0x1003d=await getDbLinkInfo(_0x18ed59);_0x1ae030=_0x1003d[_0xbdaa77(0x144)]??undefined;if(!_0x1ae030)throw CliErrors['validation'](_0xbdaa77(0x13f),_0xbdaa77(0x14f));}return await cancelDbAnalysis(_0x1ae030),{'ok':!![],'data':{'dbLinkId':_0x18ed59,'planId':_0x1ae030},'message':_0xbdaa77(0x150)+_0x1ae030};}};
@@ -1 +1 @@
1
- const a63_0x5b752a=a63_0x30c0;function a63_0x30c0(_0x21b46b,_0x4dca22){_0x21b46b=_0x21b46b-0xcd;const _0x319985=a63_0x3199();let _0x30c06f=_0x319985[_0x21b46b];return _0x30c06f;}(function(_0x4cff8f,_0x39af06){const _0x58b2f8=a63_0x30c0,_0x9437e6=_0x4cff8f();while(!![]){try{const _0x21caab=-parseInt(_0x58b2f8(0xd0))/0x1*(parseInt(_0x58b2f8(0xd5))/0x2)+parseInt(_0x58b2f8(0xe1))/0x3*(-parseInt(_0x58b2f8(0xdc))/0x4)+parseInt(_0x58b2f8(0xd1))/0x5*(-parseInt(_0x58b2f8(0xd6))/0x6)+-parseInt(_0x58b2f8(0xcd))/0x7+parseInt(_0x58b2f8(0xde))/0x8+parseInt(_0x58b2f8(0xd3))/0x9*(parseInt(_0x58b2f8(0xd2))/0xa)+-parseInt(_0x58b2f8(0xcf))/0xb*(-parseInt(_0x58b2f8(0xd9))/0xc);if(_0x21caab===_0x39af06)break;else _0x9437e6['push'](_0x9437e6['shift']());}catch(_0xb9cfe0){_0x9437e6['push'](_0x9437e6['shift']());}}}(a63_0x3199,0xd8653));function a63_0x3199(){const _0x197d73=['num','3382848aUjlvf','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','3558120WkwFMa','Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)','tables','6wYEKsY','filter','8059135zSwfaV','str','22gVDLlH','630107PuslbT','772685iOVVxq','1682110OkdEjZ','63FlFRxz','string','2rjjqzB','42pIUDap','appCode','split','22912248ZxHaaR','map'];a63_0x3199=function(){return _0x197d73;};return a63_0x3199();}import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';export const dbAnalyzeStart={'service':'db','command':'analyze-start','description':a63_0x5b752a(0xdd),'risk':'write','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a63_0x5b752a(0xe0),'type':a63_0x5b752a(0xd4),'description':a63_0x5b752a(0xdf)}],async 'execute'(_0x264a67){const _0x471727=a63_0x5b752a,_0xf2e76f=_0x264a67[_0x471727(0xdb)]('id'),_0x58bf98=_0x264a67[_0x471727(0xce)](_0x471727(0xe0)),_0x310021=_0x58bf98?_0x58bf98[_0x471727(0xd8)](',')[_0x471727(0xda)](_0x3aa272=>_0x3aa272['trim']())[_0x471727(0xe2)](Boolean):undefined,_0x50edfb=await startDbAnalysis(_0xf2e76f,_0x310021),_0x48cc02=buildDbPageLinks(_0x264a67[_0x471727(0xd7)],_0xf2e76f);return{'ok':!![],'data':{'dbLinkId':_0xf2e76f,'planId':_0x50edfb,'tableNames':_0x310021??[],..._0x48cc02?{'links':_0x48cc02}:{}},'message':'Started\x20analysis\x20for\x20db\x20link\x20'+_0xf2e76f};}};
1
+ function a65_0x3666(){const _0x1dce27=['62687iLPWAk','675038oYltuy','10cgDwAk','write','40RklYlV','5512263UeTqby','Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)','819895uZTIFb','appCode','4ZAXDAq','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','104iUmdHp','trim','12OkBjSg','tables','split','11374821BYUKvX','9801286xDeTbe','num','filter','7424209JueQNl','map','60oDjWsj'];a65_0x3666=function(){return _0x1dce27;};return a65_0x3666();}const a65_0x536b42=a65_0x4daf;(function(_0x5b6040,_0x5f2666){const _0xc97534=a65_0x4daf,_0xd2aba2=_0x5b6040();while(!![]){try{const _0x3e0bdc=parseInt(_0xc97534(0x1d7))/0x1*(-parseInt(_0xc97534(0x1c4))/0x2)+parseInt(_0xc97534(0x1c5))/0x3*(-parseInt(_0xc97534(0x1c9))/0x4)+-parseInt(_0xc97534(0x1c7))/0x5*(-parseInt(_0xc97534(0x1cd))/0x6)+parseInt(_0xc97534(0x1d8))/0x7*(parseInt(_0xc97534(0x1cb))/0x8)+-parseInt(_0xc97534(0x1d0))/0x9*(parseInt(_0xc97534(0x1d9))/0xa)+parseInt(_0xc97534(0x1d1))/0xb+parseInt(_0xc97534(0x1d6))/0xc*(parseInt(_0xc97534(0x1d4))/0xd);if(_0x3e0bdc===_0x5f2666)break;else _0xd2aba2['push'](_0xd2aba2['shift']());}catch(_0x218283){_0xd2aba2['push'](_0xd2aba2['shift']());}}}(a65_0x3666,0xed905));import{startDbAnalysis}from'../../core/api-client.js';function a65_0x4daf(_0x41f890,_0x3e9e23){_0x41f890=_0x41f890-0x1c3;const _0x366657=a65_0x3666();let _0x4daf9f=_0x366657[_0x41f890];return _0x4daf9f;}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';export const dbAnalyzeStart={'service':'db','command':'analyze-start','description':a65_0x536b42(0x1ca),'risk':a65_0x536b42(0x1c3),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a65_0x536b42(0x1ce),'type':'string','description':a65_0x536b42(0x1c6)}],async 'execute'(_0x510ac3){const _0x1d5a3b=a65_0x536b42,_0x1ce424=_0x510ac3[_0x1d5a3b(0x1d2)]('id'),_0xfcd39d=_0x510ac3['str'](_0x1d5a3b(0x1ce)),_0x319e05=_0xfcd39d?_0xfcd39d[_0x1d5a3b(0x1cf)](',')[_0x1d5a3b(0x1d5)](_0x5698ca=>_0x5698ca[_0x1d5a3b(0x1cc)]())[_0x1d5a3b(0x1d3)](Boolean):undefined,_0x548171=await startDbAnalysis(_0x1ce424,_0x319e05),_0x1b7de7=buildDbPageLinks(_0x510ac3[_0x1d5a3b(0x1c8)],_0x1ce424);return{'ok':!![],'data':{'dbLinkId':_0x1ce424,'planId':_0x548171,'tableNames':_0x319e05??[],..._0x1b7de7?{'links':_0x1b7de7}:{}},'message':'Started\x20analysis\x20for\x20db\x20link\x20'+_0x1ce424};}};
@@ -1 +1 @@
1
- const a64_0x2acbad=a64_0x3bd0;(function(_0x200eb6,_0x3a91fa){const _0xe64052=a64_0x3bd0,_0x5a96b1=_0x200eb6();while(!![]){try{const _0x1121f2=parseInt(_0xe64052(0xed))/0x1*(parseInt(_0xe64052(0xdb))/0x2)+parseInt(_0xe64052(0xe6))/0x3+parseInt(_0xe64052(0xdd))/0x4+-parseInt(_0xe64052(0xe5))/0x5*(parseInt(_0xe64052(0xe2))/0x6)+-parseInt(_0xe64052(0xdc))/0x7+parseInt(_0xe64052(0xe1))/0x8*(-parseInt(_0xe64052(0xe8))/0x9)+parseInt(_0xe64052(0xe9))/0xa;if(_0x1121f2===_0x3a91fa)break;else _0x5a96b1['push'](_0x5a96b1['shift']());}catch(_0x2d8ecb){_0x5a96b1['push'](_0x5a96b1['shift']());}}}(a64_0x46a9,0xa19e3));import{getDbAnalysisStatus}from'../../core/api-client.js';function a64_0x46a9(){const _0x3be2ce=['1148382YEehGV','6284404sYRLYL','3786892NDyKWE','string','Analysis\x20status\x20for\x20','num','8mPoSVr','18aIMVoo','plan','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','1720810vwmUjN','1947696oAObpR','str','11094561PyYxrS','10806370ugMiyd','appCode','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','read','2qgZYWD','analyze-status'];a64_0x46a9=function(){return _0x3be2ce;};return a64_0x46a9();}function a64_0x3bd0(_0x5af8e0,_0x2ee5b6){_0x5af8e0=_0x5af8e0-0xda;const _0x46a9bb=a64_0x46a9();let _0x3bd0a4=_0x46a9bb[_0x5af8e0];return _0x3bd0a4;}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';export const dbAnalyzeStatus={'service':'db','command':a64_0x2acbad(0xda),'description':a64_0x2acbad(0xeb),'risk':a64_0x2acbad(0xec),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a64_0x2acbad(0xe3),'type':a64_0x2acbad(0xde),'required':!![],'description':a64_0x2acbad(0xe4)}],async 'execute'(_0x56a10b){const _0x1e5410=a64_0x2acbad,_0x1f0d60=_0x56a10b[_0x1e5410(0xe0)]('id'),_0x1d8450=_0x56a10b[_0x1e5410(0xe7)](_0x1e5410(0xe3)),_0x45ad05=await getDbAnalysisStatus(_0x1d8450),_0x581af5=buildDbPageLinks(_0x56a10b[_0x1e5410(0xea)],_0x1f0d60);return{'ok':!![],'data':{'dbLinkId':_0x1f0d60,'planId':_0x1d8450,'status':_0x45ad05,..._0x581af5?{'links':_0x581af5}:{}},'message':_0x1e5410(0xdf)+_0x1d8450};}};
1
+ const a66_0x3874f3=a66_0x25e9;(function(_0x2925a0,_0x500973){const _0x14d00e=a66_0x25e9,_0x4daa0c=_0x2925a0();while(!![]){try{const _0x546921=-parseInt(_0x14d00e(0x15e))/0x1+-parseInt(_0x14d00e(0x168))/0x2+parseInt(_0x14d00e(0x16b))/0x3+-parseInt(_0x14d00e(0x16a))/0x4+-parseInt(_0x14d00e(0x169))/0x5+-parseInt(_0x14d00e(0x167))/0x6*(parseInt(_0x14d00e(0x163))/0x7)+-parseInt(_0x14d00e(0x15f))/0x8*(-parseInt(_0x14d00e(0x16c))/0x9);if(_0x546921===_0x500973)break;else _0x4daa0c['push'](_0x4daa0c['shift']());}catch(_0x5194dc){_0x4daa0c['push'](_0x4daa0c['shift']());}}}(a66_0x4868,0xb4733));function a66_0x25e9(_0x35b4a1,_0x591338){_0x35b4a1=_0x35b4a1-0x15d;const _0x4868e0=a66_0x4868();let _0x25e9ad=_0x4868e0[_0x35b4a1];return _0x25e9ad;}import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';export const dbAnalyzeStatus={'service':'db','command':'analyze-status','description':a66_0x3874f3(0x15d),'risk':a66_0x3874f3(0x164),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a66_0x3874f3(0x161),'type':'string','required':!![],'description':a66_0x3874f3(0x160)}],async 'execute'(_0x2a8ac0){const _0x3bcdcb=a66_0x3874f3,_0x314656=_0x2a8ac0[_0x3bcdcb(0x166)]('id'),_0x178758=_0x2a8ac0[_0x3bcdcb(0x165)](_0x3bcdcb(0x161)),_0x4a4f60=await getDbAnalysisStatus(_0x178758),_0x3a52b1=buildDbPageLinks(_0x2a8ac0[_0x3bcdcb(0x16d)],_0x314656);return{'ok':!![],'data':{'dbLinkId':_0x314656,'planId':_0x178758,'status':_0x4a4f60,..._0x3a52b1?{'links':_0x3a52b1}:{}},'message':_0x3bcdcb(0x162)+_0x178758};}};function a66_0x4868(){const _0x41c795=['2561510agxtYU','5726324EdIYly','3816357UkTsZq','31621410LTEZAz','appCode','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','1113110rIONGd','8KrWnqh','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','plan','Analysis\x20status\x20for\x20','14mEUGmt','read','str','num','1249476DCztaE','1146002qjVGmD'];a66_0x4868=function(){return _0x41c795;};return a66_0x4868();}
@@ -1 +1 @@
1
- const a65_0x5c2b69=a65_0x3672;(function(_0x281a74,_0x1356de){const _0x4153c6=a65_0x3672,_0x4966c4=_0x281a74();while(!![]){try{const _0x37a9e3=-parseInt(_0x4153c6(0x20e))/0x1+parseInt(_0x4153c6(0x1fd))/0x2+parseInt(_0x4153c6(0x1f7))/0x3*(-parseInt(_0x4153c6(0x218))/0x4)+-parseInt(_0x4153c6(0x202))/0x5*(parseInt(_0x4153c6(0x21e))/0x6)+-parseInt(_0x4153c6(0x208))/0x7*(parseInt(_0x4153c6(0x1f4))/0x8)+-parseInt(_0x4153c6(0x1fa))/0x9*(-parseInt(_0x4153c6(0x213))/0xa)+parseInt(_0x4153c6(0x1f1))/0xb;if(_0x37a9e3===_0x1356de)break;else _0x4966c4['push'](_0x4966c4['shift']());}catch(_0x28323e){_0x4966c4['push'](_0x4966c4['shift']());}}}(a65_0x1150,0x9c6d9));function a65_0x3672(_0x535980,_0x2a73aa){_0x535980=_0x535980-0x1f0;const _0x11500e=a65_0x1150();let _0x3672aa=_0x11500e[_0x535980];return _0x3672aa;}import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a65_0x1150(){const _0x2e86ed=['create','Create\x20dblink','databasePage','864508mxnark','dbparam','Human-readable\x20description','POST','bool','2260060Xnihdt','str','autostart','appCode','8.0','2929544NoQkIe','\x20and\x20started\x20analysis','Created\x20db\x20link\x20','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','dbname','dbtype','5913576OOknWv','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','join','11740168efnmiF','dburl','password','1822880XIKeYd','dbversion','Database\x20username','3OfOwlJ','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','write','45LtjKlV','boolean','/smartapi/dblink/create','2507522nboAqs','trim','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','Database\x20password','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','5rFJtdm','validation','dbdesc','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','username','7UylnCH','Host\x20and\x20port:\x20host:port','string'];a65_0x1150=function(){return _0x2e86ed;};return a65_0x1150();}export const dbCreate={'service':'db','command':a65_0x5c2b69(0x20b),'description':a65_0x5c2b69(0x201),'risk':a65_0x5c2b69(0x1f9),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a65_0x5c2b69(0x20a),'required':!![],'description':a65_0x5c2b69(0x1ff)},DB_TYPE_FLAG,{'name':'dbversion','type':a65_0x5c2b69(0x20a),'description':'Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','default':'8.0'},{'name':'dburl','type':a65_0x5c2b69(0x20a),'required':!![],'description':a65_0x5c2b69(0x209)},{'name':'username','type':a65_0x5c2b69(0x20a),'required':!![],'description':a65_0x5c2b69(0x1f6)},{'name':a65_0x5c2b69(0x1f3),'type':a65_0x5c2b69(0x20a),'required':!![],'description':a65_0x5c2b69(0x200)},{'name':a65_0x5c2b69(0x20f),'type':a65_0x5c2b69(0x20a),'description':'Extra\x20JDBC-style\x20connection\x20parameters\x20string'},{'name':a65_0x5c2b69(0x204),'type':a65_0x5c2b69(0x20a),'description':a65_0x5c2b69(0x210)},{'name':a65_0x5c2b69(0x215),'type':a65_0x5c2b69(0x1fb),'description':'After\x20create,\x20start\x20schema\x20analysis','default':![]}],async 'validate'(_0x21aa1a){const _0x9eca27=a65_0x5c2b69,_0x324016=_0x21aa1a[_0x9eca27(0x214)](_0x9eca27(0x1f2))['trim']();if(!validateDbUrl(_0x324016))throw CliErrors[_0x9eca27(0x203)](_0x9eca27(0x205)+_0x324016+'\x22',_0x9eca27(0x21f));},async 'dryRun'(_0x29da8b){const _0x5f18c3=a65_0x5c2b69,_0x5bb942={'appCode':_0x29da8b[_0x5f18c3(0x216)],'dbName':_0x29da8b['str'](_0x5f18c3(0x21c)),'dbType':_0x29da8b[_0x5f18c3(0x214)]('dbtype'),'dbVersion':_0x29da8b['str'](_0x5f18c3(0x1f5))||_0x5f18c3(0x217),'dbUrl':_0x29da8b[_0x5f18c3(0x214)](_0x5f18c3(0x1f2))[_0x5f18c3(0x1fe)](),'username':_0x29da8b[_0x5f18c3(0x214)](_0x5f18c3(0x207)),'password':'[redacted]',..._0x29da8b['str'](_0x5f18c3(0x20f))?{'dbParam':_0x29da8b[_0x5f18c3(0x214)](_0x5f18c3(0x20f))}:{},..._0x29da8b['str'](_0x5f18c3(0x204))?{'dbDesc':_0x29da8b['str'](_0x5f18c3(0x204))}:{}};return{'method':_0x5f18c3(0x211),'url':_0x5f18c3(0x1fc),'body':_0x5bb942,'description':[_0x5f18c3(0x20c),_0x29da8b[_0x5f18c3(0x212)]('autostart')?_0x5f18c3(0x21b):'No\x20follow-up\x20analysis'][_0x5f18c3(0x1f0)]('\x0a')};},async 'execute'(_0x5be7ad){const _0x299c67=a65_0x5c2b69,_0x55074c={'appCode':_0x5be7ad[_0x299c67(0x216)],'dbName':_0x5be7ad['str'](_0x299c67(0x21c)),'dbType':_0x5be7ad['str'](_0x299c67(0x21d)),'dbVersion':_0x5be7ad[_0x299c67(0x214)](_0x299c67(0x1f5))||_0x299c67(0x217),'dbUrl':_0x5be7ad[_0x299c67(0x214)](_0x299c67(0x1f2))[_0x299c67(0x1fe)](),'username':_0x5be7ad['str'](_0x299c67(0x207)),'password':_0x5be7ad[_0x299c67(0x214)]('password'),..._0x5be7ad['str']('dbparam')?{'dbParam':_0x5be7ad[_0x299c67(0x214)](_0x299c67(0x20f))}:{},..._0x5be7ad['str'](_0x299c67(0x204))?{'dbDesc':_0x5be7ad['str'](_0x299c67(0x204))}:{}},{id:_0x3723ff,entity:_0x3d1f7d}=normalizeEntityWithIdResponse(await createDbLink(_0x55074c));if(!_0x3723ff)return{'ok':![],'message':_0x299c67(0x1f8),'data':sanitizeDbLinkForOutput(_0x3d1f7d)};let _0x4c1e3f,_0x5ac3ba;if(_0x5be7ad['bool'](_0x299c67(0x215)))try{_0x4c1e3f=await startDbAnalysis(_0x3723ff);}catch(_0x431dbe){_0x5ac3ba=_0x431dbe instanceof Error?_0x431dbe['message']:String(_0x431dbe);}const _0x5d8a88=buildDbPageLinks(_0x5be7ad[_0x299c67(0x216)],_0x3723ff),_0x288b7f={'connection':sanitizeDbLinkForOutput(_0x3d1f7d),..._0x5d8a88?{'links':{'databasePage':_0x5d8a88[_0x299c67(0x20d)]}}:{},..._0x4c1e3f?{'analysisPlanId':_0x4c1e3f}:{},..._0x5ac3ba?{'analysisStartWarning':_0x5ac3ba}:{}};let _0x330c2b;return _0x5be7ad[_0x299c67(0x212)](_0x299c67(0x215))?_0x5ac3ba?_0x330c2b=_0x299c67(0x21a)+_0x3723ff+_0x299c67(0x206):_0x330c2b=_0x299c67(0x21a)+_0x3723ff+_0x299c67(0x219):_0x330c2b='Created\x20db\x20link\x20'+_0x3723ff,{'ok':!![],'data':_0x288b7f,'message':_0x330c2b};}};
1
+ function a67_0x2bf9(_0x47047a,_0x750718){_0x47047a=_0x47047a-0x72;const _0x37ceb8=a67_0x37ce();let _0x2bf952=_0x37ceb8[_0x47047a];return _0x2bf952;}const a67_0x40f51e=a67_0x2bf9;(function(_0x2926fc,_0x5e35d7){const _0x402ddd=a67_0x2bf9,_0x30a115=_0x2926fc();while(!![]){try{const _0x21ed6a=-parseInt(_0x402ddd(0x8f))/0x1*(-parseInt(_0x402ddd(0x9e))/0x2)+-parseInt(_0x402ddd(0x8c))/0x3*(-parseInt(_0x402ddd(0x8e))/0x4)+-parseInt(_0x402ddd(0x8a))/0x5+-parseInt(_0x402ddd(0x7a))/0x6+-parseInt(_0x402ddd(0x97))/0x7*(-parseInt(_0x402ddd(0x87))/0x8)+-parseInt(_0x402ddd(0xa1))/0x9*(parseInt(_0x402ddd(0x8d))/0xa)+parseInt(_0x402ddd(0x9f))/0xb;if(_0x21ed6a===_0x5e35d7)break;else _0x30a115['push'](_0x30a115['shift']());}catch(_0x29faa1){_0x30a115['push'](_0x30a115['shift']());}}}(a67_0x37ce,0x307f9));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';function a67_0x37ce(){const _0x45b6ed=['288725tCvTGc','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','273864eJXRlD','200gHyeXG','12tKywpi','2qQHqnD','8.0','Create\x20dblink','dbname','Host\x20and\x20port:\x20host:port','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','join','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','7RKvjep','write','\x20and\x20started\x20analysis','trim','After\x20create,\x20start\x20schema\x20analysis','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','dbversion','276896kxEWcD','78375BZKDUx','Database\x20username','141318cdSTnH','autostart','username','/smartapi/dblink/create','dbdesc','bool','databasePage','validation','password','POST','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','1824420lWazHa','[redacted]','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','Created\x20db\x20link\x20','dburl','Extra\x20JDBC-style\x20connection\x20parameters\x20string','appCode','str','string','dbtype','create','dbparam','Human-readable\x20description','2532952xGNxVh','boolean','Database\x20password'];a67_0x37ce=function(){return _0x45b6ed;};return a67_0x37ce();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':a67_0x40f51e(0x84),'description':a67_0x40f51e(0x79),'risk':a67_0x40f51e(0x98),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a67_0x40f51e(0x92),'type':'string','required':!![],'description':'Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server'},DB_TYPE_FLAG,{'name':'dbversion','type':a67_0x40f51e(0x82),'description':a67_0x40f51e(0x94),'default':a67_0x40f51e(0x90)},{'name':'dburl','type':a67_0x40f51e(0x82),'required':!![],'description':a67_0x40f51e(0x93)},{'name':a67_0x40f51e(0xa3),'type':a67_0x40f51e(0x82),'required':!![],'description':a67_0x40f51e(0xa0)},{'name':a67_0x40f51e(0x77),'type':a67_0x40f51e(0x82),'required':!![],'description':a67_0x40f51e(0x89)},{'name':a67_0x40f51e(0x85),'type':a67_0x40f51e(0x82),'description':a67_0x40f51e(0x7f)},{'name':'dbdesc','type':'string','description':a67_0x40f51e(0x86)},{'name':a67_0x40f51e(0xa2),'type':a67_0x40f51e(0x88),'description':a67_0x40f51e(0x9b),'default':![]}],async 'validate'(_0x3d889f){const _0xd81ee7=a67_0x40f51e,_0x3a027c=_0x3d889f[_0xd81ee7(0x81)](_0xd81ee7(0x7e))[_0xd81ee7(0x9a)]();if(!validateDbUrl(_0x3a027c))throw CliErrors[_0xd81ee7(0x76)](_0xd81ee7(0x7c)+_0x3a027c+'\x22',_0xd81ee7(0x8b));},async 'dryRun'(_0x2721bb){const _0x41fb14=a67_0x40f51e,_0x1bb0e2={'appCode':_0x2721bb['appCode'],'dbName':_0x2721bb[_0x41fb14(0x81)]('dbname'),'dbType':_0x2721bb[_0x41fb14(0x81)](_0x41fb14(0x83)),'dbVersion':_0x2721bb['str'](_0x41fb14(0x9d))||_0x41fb14(0x90),'dbUrl':_0x2721bb[_0x41fb14(0x81)](_0x41fb14(0x7e))[_0x41fb14(0x9a)](),'username':_0x2721bb[_0x41fb14(0x81)]('username'),'password':_0x41fb14(0x7b),..._0x2721bb[_0x41fb14(0x81)](_0x41fb14(0x85))?{'dbParam':_0x2721bb[_0x41fb14(0x81)](_0x41fb14(0x85))}:{},..._0x2721bb[_0x41fb14(0x81)](_0x41fb14(0x73))?{'dbDesc':_0x2721bb[_0x41fb14(0x81)](_0x41fb14(0x73))}:{}};return{'method':_0x41fb14(0x78),'url':_0x41fb14(0x72),'body':_0x1bb0e2,'description':[_0x41fb14(0x91),_0x2721bb[_0x41fb14(0x74)](_0x41fb14(0xa2))?_0x41fb14(0x96):'No\x20follow-up\x20analysis'][_0x41fb14(0x95)]('\x0a')};},async 'execute'(_0x301577){const _0x5d16d5=a67_0x40f51e,_0x3e1dd1={'appCode':_0x301577[_0x5d16d5(0x80)],'dbName':_0x301577['str'](_0x5d16d5(0x92)),'dbType':_0x301577[_0x5d16d5(0x81)](_0x5d16d5(0x83)),'dbVersion':_0x301577[_0x5d16d5(0x81)](_0x5d16d5(0x9d))||_0x5d16d5(0x90),'dbUrl':_0x301577['str'](_0x5d16d5(0x7e))[_0x5d16d5(0x9a)](),'username':_0x301577[_0x5d16d5(0x81)](_0x5d16d5(0xa3)),'password':_0x301577[_0x5d16d5(0x81)]('password'),..._0x301577[_0x5d16d5(0x81)]('dbparam')?{'dbParam':_0x301577[_0x5d16d5(0x81)](_0x5d16d5(0x85))}:{},..._0x301577[_0x5d16d5(0x81)]('dbdesc')?{'dbDesc':_0x301577[_0x5d16d5(0x81)](_0x5d16d5(0x73))}:{}},{id:_0x59e471,entity:_0x53f29f}=normalizeEntityWithIdResponse(await createDbLink(_0x3e1dd1));if(!_0x59e471)return{'ok':![],'message':_0x5d16d5(0x9c),'data':sanitizeDbLinkForOutput(_0x53f29f)};let _0x13f622,_0x5a8097;if(_0x301577[_0x5d16d5(0x74)](_0x5d16d5(0xa2)))try{_0x13f622=await startDbAnalysis(_0x59e471);}catch(_0x4d1840){_0x5a8097=_0x4d1840 instanceof Error?_0x4d1840['message']:String(_0x4d1840);}const _0x359d59=buildDbPageLinks(_0x301577[_0x5d16d5(0x80)],_0x59e471),_0x4f0e86={'connection':sanitizeDbLinkForOutput(_0x53f29f),..._0x359d59?{'links':{'databasePage':_0x359d59[_0x5d16d5(0x75)]}}:{},..._0x13f622?{'analysisPlanId':_0x13f622}:{},..._0x5a8097?{'analysisStartWarning':_0x5a8097}:{}};let _0x1a951d;return _0x301577[_0x5d16d5(0x74)]('autostart')?_0x5a8097?_0x1a951d=_0x5d16d5(0x7d)+_0x59e471+';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning':_0x1a951d=_0x5d16d5(0x7d)+_0x59e471+_0x5d16d5(0x99):_0x1a951d=_0x5d16d5(0x7d)+_0x59e471,{'ok':!![],'data':_0x4f0e86,'message':_0x1a951d};}};
@@ -1 +1 @@
1
- function a66_0x4264(){const _0x47d08f=['7oZfDik','120lgOwxL','4379122jpCUcg','3594852WQebJa','9730576kousBv','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','5GdzAgB','61192qROhGK','36zOVLCF','2285318KpyANA','422298FZtePL','delete','Deleted\x20db\x20link\x20','17656509LnTCYB','170TJUhku','1QVoQgg'];a66_0x4264=function(){return _0x47d08f;};return a66_0x4264();}const a66_0x1038ba=a66_0x538a;(function(_0x385880,_0x2d02a6){const _0x1e2eef=a66_0x538a,_0x3adaf8=_0x385880();while(!![]){try{const _0x5b83ff=-parseInt(_0x1e2eef(0x82))/0x1*(-parseInt(_0x1e2eef(0x8c))/0x2)+parseInt(_0x1e2eef(0x84))/0x3*(parseInt(_0x1e2eef(0x8a))/0x4)+-parseInt(_0x1e2eef(0x89))/0x5*(parseInt(_0x1e2eef(0x86))/0x6)+-parseInt(_0x1e2eef(0x83))/0x7*(-parseInt(_0x1e2eef(0x87))/0x8)+parseInt(_0x1e2eef(0x8d))/0x9*(parseInt(_0x1e2eef(0x91))/0xa)+parseInt(_0x1e2eef(0x85))/0xb*(-parseInt(_0x1e2eef(0x8b))/0xc)+-parseInt(_0x1e2eef(0x90))/0xd;if(_0x5b83ff===_0x2d02a6)break;else _0x3adaf8['push'](_0x3adaf8['shift']());}catch(_0x36f52e){_0x3adaf8['push'](_0x3adaf8['shift']());}}}(a66_0x4264,0x969e6));import{deleteDbLink}from'../../core/api-client.js';function a66_0x538a(_0xf2b942,_0x5e791f){_0xf2b942=_0xf2b942-0x82;const _0x4264ce=a66_0x4264();let _0x538a91=_0x4264ce[_0xf2b942];return _0x538a91;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDelete={'service':'db','command':a66_0x1038ba(0x8e),'description':a66_0x1038ba(0x88),'risk':'high-risk-write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x323f15){const _0x582202=a66_0x1038ba,_0x2d7673=_0x323f15['num']('id');return await deleteDbLink(_0x2d7673),{'ok':!![],'data':{'id':_0x2d7673,'deleted':!![]},'message':_0x582202(0x8f)+_0x2d7673};}};
1
+ const a68_0x454811=a68_0x5303;(function(_0x5d3a02,_0xacef6a){const _0x3bbfe1=a68_0x5303,_0x5319c3=_0x5d3a02();while(!![]){try{const _0x3495dc=parseInt(_0x3bbfe1(0xfb))/0x1*(-parseInt(_0x3bbfe1(0x107))/0x2)+parseInt(_0x3bbfe1(0xff))/0x3+parseInt(_0x3bbfe1(0x105))/0x4+parseInt(_0x3bbfe1(0xf9))/0x5+parseInt(_0x3bbfe1(0x102))/0x6*(parseInt(_0x3bbfe1(0x106))/0x7)+parseInt(_0x3bbfe1(0x101))/0x8*(parseInt(_0x3bbfe1(0x103))/0x9)+-parseInt(_0x3bbfe1(0x100))/0xa*(parseInt(_0x3bbfe1(0xfc))/0xb);if(_0x3495dc===_0xacef6a)break;else _0x5319c3['push'](_0x5319c3['shift']());}catch(_0x5be9de){_0x5319c3['push'](_0x5319c3['shift']());}}}(a68_0x5e28,0x2b920));import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a68_0x5e28(){const _0x4f7ae4=['720120TxLOJc','42kSipBJ','5414CZzxGY','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','649130bIoYvD','delete','63tLgZVT','350702ydiDwu','num','Deleted\x20db\x20link\x20','216609zuokxD','170RgckLu','4960mVLFtu','331620vbfHdS','2574cmCTxg','high-risk-write'];a68_0x5e28=function(){return _0x4f7ae4;};return a68_0x5e28();}function a68_0x5303(_0x25f594,_0x5b6754){_0x25f594=_0x25f594-0xf8;const _0x5e286a=a68_0x5e28();let _0x53030b=_0x5e286a[_0x25f594];return _0x53030b;}export const dbDelete={'service':'db','command':a68_0x454811(0xfa),'description':a68_0x454811(0xf8),'risk':a68_0x454811(0x104),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x358eb4){const _0x534b20=a68_0x454811,_0x5a5ed5=_0x358eb4[_0x534b20(0xfd)]('id');return await deleteDbLink(_0x5a5ed5),{'ok':!![],'data':{'id':_0x5a5ed5,'deleted':!![]},'message':_0x534b20(0xfe)+_0x5a5ed5};}};
@@ -1 +1 @@
1
- function a67_0x11fa(_0xf6376b,_0x597845){_0xf6376b=_0xf6376b-0x71;const _0x2e54a5=a67_0x2e54();let _0x11fa9f=_0x2e54a5[_0xf6376b];return _0x11fa9f;}const a67_0x46cb1f=a67_0x11fa;(function(_0x61f643,_0x3c613b){const _0x22c19a=a67_0x11fa,_0x52925c=_0x61f643();while(!![]){try{const _0x305dd2=-parseInt(_0x22c19a(0x7a))/0x1*(-parseInt(_0x22c19a(0x78))/0x2)+-parseInt(_0x22c19a(0x71))/0x3+-parseInt(_0x22c19a(0x79))/0x4+-parseInt(_0x22c19a(0x72))/0x5+-parseInt(_0x22c19a(0x77))/0x6+-parseInt(_0x22c19a(0x7b))/0x7*(-parseInt(_0x22c19a(0x76))/0x8)+-parseInt(_0x22c19a(0x7c))/0x9*(-parseInt(_0x22c19a(0x74))/0xa);if(_0x305dd2===_0x3c613b)break;else _0x52925c['push'](_0x52925c['shift']());}catch(_0x13f1fe){_0x52925c['push'](_0x52925c['shift']());}}}(a67_0x2e54,0x752de));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a67_0x46cb1f(0x75),'description':a67_0x46cb1f(0x73),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x912310){const _0x568bc3=a67_0x46cb1f,_0x4cf50b=_0x912310['num']('id'),_0x2af652=await getDbLinkInfo(_0x4cf50b);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x2af652),'message':'db\x20link\x20'+_0x4cf50b+':\x20'+_0x2af652[_0x568bc3(0x7d)]};}};function a67_0x2e54(){const _0x4c3b20=['4116066stCYAd','57118gLLbPj','3535500xshEvx','33rvZgmG','154NaGsMf','1089QyIjtV','dbName','2839989oXgoHl','4708195JvzrzY','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','198010NjpEsJ','detail','218104HDQXCg'];a67_0x2e54=function(){return _0x4c3b20;};return a67_0x2e54();}
1
+ const a69_0x19698e=a69_0x1e73;function a69_0x1e73(_0x58e527,_0x6bc808){_0x58e527=_0x58e527-0xcb;const _0x88046=a69_0x8804();let _0x1e73fe=_0x88046[_0x58e527];return _0x1e73fe;}(function(_0x1e8d03,_0x2d8313){const _0xef14ff=a69_0x1e73,_0x1c0753=_0x1e8d03();while(!![]){try{const _0x3937c0=-parseInt(_0xef14ff(0xd5))/0x1*(parseInt(_0xef14ff(0xd6))/0x2)+parseInt(_0xef14ff(0xd1))/0x3*(parseInt(_0xef14ff(0xcc))/0x4)+parseInt(_0xef14ff(0xd3))/0x5*(parseInt(_0xef14ff(0xcb))/0x6)+-parseInt(_0xef14ff(0xd2))/0x7*(parseInt(_0xef14ff(0xdb))/0x8)+parseInt(_0xef14ff(0xd4))/0x9+-parseInt(_0xef14ff(0xd0))/0xa+parseInt(_0xef14ff(0xcf))/0xb*(parseInt(_0xef14ff(0xda))/0xc);if(_0x3937c0===_0x2d8313)break;else _0x1c0753['push'](_0x1c0753['shift']());}catch(_0x1f9e56){_0x1c0753['push'](_0x1c0753['shift']());}}}(a69_0x8804,0x4fad0));function a69_0x8804(){const _0x238f32=['123252rXhaXb','1329248cRspJn','dbName','306FDivtJ','16ASnYWS','db\x20link\x20','read','176wQwTwo','6125100MCFcvY','341127cnOibB','21dSIigy','62555QbnWVE','2784375Pyiana','37xyJKhB','6988VNsVJw','num','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','detail'];a69_0x8804=function(){return _0x238f32;};return a69_0x8804();}import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a69_0x19698e(0xd9),'description':a69_0x19698e(0xd8),'risk':a69_0x19698e(0xce),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x154d85){const _0x2b2a2e=a69_0x19698e,_0x2df065=_0x154d85[_0x2b2a2e(0xd7)]('id'),_0x3617e6=await getDbLinkInfo(_0x2df065);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x3617e6),'message':_0x2b2a2e(0xcd)+_0x2df065+':\x20'+_0x3617e6[_0x2b2a2e(0xdc)]};}};
@@ -1 +1 @@
1
- function a68_0x52e7(_0x57cbd5,_0x42d4e8){_0x57cbd5=_0x57cbd5-0x1ab;const _0x33a3a9=a68_0x33a3();let _0x52e764=_0x33a3a9[_0x57cbd5];return _0x52e764;}const a68_0x39e8c0=a68_0x52e7;(function(_0x4632d0,_0x5df57e){const _0x58330d=a68_0x52e7,_0x26403b=_0x4632d0();while(!![]){try{const _0x21b5ce=-parseInt(_0x58330d(0x1be))/0x1*(parseInt(_0x58330d(0x1bf))/0x2)+parseInt(_0x58330d(0x1b6))/0x3*(parseInt(_0x58330d(0x1bd))/0x4)+-parseInt(_0x58330d(0x1ba))/0x5*(parseInt(_0x58330d(0x1b3))/0x6)+parseInt(_0x58330d(0x1b4))/0x7+parseInt(_0x58330d(0x1bb))/0x8+-parseInt(_0x58330d(0x1af))/0x9*(-parseInt(_0x58330d(0x1ae))/0xa)+-parseInt(_0x58330d(0x1ab))/0xb;if(_0x21b5ce===_0x5df57e)break;else _0x26403b['push'](_0x26403b['shift']());}catch(_0x2a99f2){_0x26403b['push'](_0x26403b['shift']());}}}(a68_0x33a3,0x910a4));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a68_0x33a3(){const _0x5a05e6=['str','3GstemI','Page\x20index\x20(1-based)','appCode','\x20(db\x20link\x20','24440QuPhAf','4816832TkUChA','table','3379828YDDJDe','54098yMUbot','2xCvOVv','num','16652416MqkZBh','Page\x20size','string','117340BrERsV','207iCQcYd','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','page','636QjDkfS','6742561IyFfcB'];a68_0x33a3=function(){return _0x5a05e6;};return a68_0x33a3();}export const dbDiff={'service':'db','command':'diff','description':a68_0x39e8c0(0x1b0),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':a68_0x39e8c0(0x1ad),'description':a68_0x39e8c0(0x1b1)},{'name':a68_0x39e8c0(0x1b2),'type':'number','description':a68_0x39e8c0(0x1b7),'default':0x1},{'name':'pagesize','type':'number','description':a68_0x39e8c0(0x1ac),'default':0x14}],async 'execute'(_0x5df1d7){const _0x23880a=a68_0x39e8c0,_0x7cf44c=_0x5df1d7[_0x23880a(0x1c0)]('id'),_0x4959a1=_0x5df1d7[_0x23880a(0x1c0)](_0x23880a(0x1b2),0x1)||0x1,_0xd5e48d=_0x5df1d7[_0x23880a(0x1c0)]('pagesize',0x14)||0x14,_0x160cdf=_0x5df1d7[_0x23880a(0x1b5)](_0x23880a(0x1bc))||undefined,{totalCount:_0x2c3c31,tableList:_0x2861c4}=await getDbTableDiff(_0x5df1d7[_0x23880a(0x1b8)],_0x7cf44c,{'pageIndex':_0x4959a1,'pageSize':_0xd5e48d,'tableName':_0x160cdf});return{'ok':!![],'data':{'dbLinkId':_0x7cf44c,'page':_0x4959a1,'pageSize':_0xd5e48d,'totalCount':_0x2c3c31,'tableList':_0x2861c4},'message':_0x2861c4['length']+'\x20row(s),\x20total\x20'+_0x2c3c31+_0x23880a(0x1b9)+_0x7cf44c+')'};}};
1
+ function a70_0x4266(_0x47eeb1,_0x272367){_0x47eeb1=_0x47eeb1-0x183;const _0x5e0e72=a70_0x5e0e();let _0x426609=_0x5e0e72[_0x47eeb1];return _0x426609;}const a70_0xa8a5b9=a70_0x4266;(function(_0x4e9a0c,_0x4bb6a2){const _0x38bca0=a70_0x4266,_0x476142=_0x4e9a0c();while(!![]){try{const _0x4b04dd=parseInt(_0x38bca0(0x195))/0x1*(-parseInt(_0x38bca0(0x18b))/0x2)+parseInt(_0x38bca0(0x199))/0x3*(-parseInt(_0x38bca0(0x189))/0x4)+-parseInt(_0x38bca0(0x18a))/0x5*(parseInt(_0x38bca0(0x183))/0x6)+parseInt(_0x38bca0(0x186))/0x7*(parseInt(_0x38bca0(0x192))/0x8)+parseInt(_0x38bca0(0x184))/0x9+-parseInt(_0x38bca0(0x188))/0xa+-parseInt(_0x38bca0(0x185))/0xb*(-parseInt(_0x38bca0(0x198))/0xc);if(_0x4b04dd===_0x4bb6a2)break;else _0x476142['push'](_0x476142['shift']());}catch(_0x156f07){_0x476142['push'](_0x476142['shift']());}}}(a70_0x5e0e,0x30857));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_0xa8a5b9(0x194),'description':a70_0xa8a5b9(0x19b),'risk':a70_0xa8a5b9(0x196),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a70_0xa8a5b9(0x19d),'type':a70_0xa8a5b9(0x193),'description':a70_0xa8a5b9(0x191)},{'name':a70_0xa8a5b9(0x18d),'type':a70_0xa8a5b9(0x18c),'description':a70_0xa8a5b9(0x18e),'default':0x1},{'name':a70_0xa8a5b9(0x197),'type':a70_0xa8a5b9(0x18c),'description':a70_0xa8a5b9(0x19c),'default':0x14}],async 'execute'(_0x4f1c06){const _0x21b1b4=a70_0xa8a5b9,_0x5e003f=_0x4f1c06['num']('id'),_0x4e584e=_0x4f1c06[_0x21b1b4(0x190)]('page',0x1)||0x1,_0x5a34aa=_0x4f1c06[_0x21b1b4(0x190)]('pagesize',0x14)||0x14,_0x5f9727=_0x4f1c06['str']('table')||undefined,{totalCount:_0x41d12b,tableList:_0x210306}=await getDbTableDiff(_0x4f1c06[_0x21b1b4(0x19a)],_0x5e003f,{'pageIndex':_0x4e584e,'pageSize':_0x5a34aa,'tableName':_0x5f9727});return{'ok':!![],'data':{'dbLinkId':_0x5e003f,'page':_0x4e584e,'pageSize':_0x5a34aa,'totalCount':_0x41d12b,'tableList':_0x210306},'message':_0x210306['length']+_0x21b1b4(0x187)+_0x41d12b+_0x21b1b4(0x18f)+_0x5e003f+')'};}};function a70_0x5e0e(){const _0x1e8ea0=['table','378EtkSQp','3561957MemyPA','45199WUCMfi','49LkzdVc','\x20row(s),\x20total\x20','2895660OSvZoU','71924KTlQDt','25910zCHpcO','93858WOOfev','number','page','Page\x20index\x20(1-based)','\x20(db\x20link\x20','num','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','413576algnqK','string','diff','2TPDbMu','read','pagesize','756atkTQV','18paFVXC','appCode','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','Page\x20size'];a70_0x5e0e=function(){return _0x1e8ea0;};return a70_0x5e0e();}
@@ -1 +1 @@
1
- (function(_0x2a384a,_0x2e509e){const _0x41916a=a69_0x1135,_0x2c0d43=_0x2a384a();while(!![]){try{const _0x184dd1=-parseInt(_0x41916a(0xc0))/0x1*(-parseInt(_0x41916a(0xc9))/0x2)+parseInt(_0x41916a(0xc1))/0x3*(parseInt(_0x41916a(0xca))/0x4)+-parseInt(_0x41916a(0xc6))/0x5*(-parseInt(_0x41916a(0xc3))/0x6)+-parseInt(_0x41916a(0xc7))/0x7*(-parseInt(_0x41916a(0xc4))/0x8)+-parseInt(_0x41916a(0xbf))/0x9+parseInt(_0x41916a(0xc8))/0xa*(-parseInt(_0x41916a(0xc5))/0xb)+-parseInt(_0x41916a(0xc2))/0xc;if(_0x184dd1===_0x2e509e)break;else _0x2c0d43['push'](_0x2c0d43['shift']());}catch(_0x1937a9){_0x2c0d43['push'](_0x2c0d43['shift']());}}}(a69_0x59a9,0x9be9c));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';function a69_0x59a9(){const _0x1a9af9=['4310874utfqAp','8qCMhdG','3ilgDqX','8808012qNYECb','1074uqvnhj','659528VmXnjD','10420685RCurZj','32675FwSnNO','77uLFmkS','10igxWwi','47156pACCoJ','2134808duOxIk'];a69_0x59a9=function(){return _0x1a9af9;};return a69_0x59a9();}function a69_0x1135(_0x234ec1,_0x4d40c8){_0x234ec1=_0x234ec1-0xbf;const _0x59a9dd=a69_0x59a9();let _0x113506=_0x59a9dd[_0x234ec1];return _0x113506;}import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
1
+ (function(_0x248a6,_0x15728b){const _0x3561cd=a71_0x1995,_0x317ebb=_0x248a6();while(!![]){try{const _0x48d4ed=-parseInt(_0x3561cd(0x180))/0x1+parseInt(_0x3561cd(0x179))/0x2*(-parseInt(_0x3561cd(0x182))/0x3)+parseInt(_0x3561cd(0x17e))/0x4*(parseInt(_0x3561cd(0x17f))/0x5)+-parseInt(_0x3561cd(0x181))/0x6*(-parseInt(_0x3561cd(0x17b))/0x7)+-parseInt(_0x3561cd(0x17a))/0x8+parseInt(_0x3561cd(0x17d))/0x9+parseInt(_0x3561cd(0x17c))/0xa*(parseInt(_0x3561cd(0x178))/0xb);if(_0x48d4ed===_0x15728b)break;else _0x317ebb['push'](_0x317ebb['shift']());}catch(_0x4e2fd){_0x317ebb['push'](_0x317ebb['shift']());}}}(a71_0x4a58,0x48bb0));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];function a71_0x1995(_0x10dc09,_0x54f139){_0x10dc09=_0x10dc09-0x178;const _0x4a58f5=a71_0x4a58();let _0x1995b3=_0x4a58f5[_0x10dc09];return _0x1995b3;}function a71_0x4a58(){const _0x33383e=['88004FjZTTG','125UbcHxc','381931ZdVRoU','84126iDAmgh','396345XgNbWl','11bppFkT','4jGjbOE','2490120gzBmGC','147CntaAH','1709850AiWGCu','2158911SoIuff'];a71_0x4a58=function(){return _0x33383e;};return a71_0x4a58();}
@@ -1 +1 @@
1
- const a70_0x2a9929=a70_0x1756;(function(_0x57bdfd,_0x165339){const _0x4e58aa=a70_0x1756,_0x4c5f02=_0x57bdfd();while(!![]){try{const _0x371b0b=-parseInt(_0x4e58aa(0xfc))/0x1*(parseInt(_0x4e58aa(0xfa))/0x2)+parseInt(_0x4e58aa(0xf2))/0x3*(parseInt(_0x4e58aa(0xf1))/0x4)+-parseInt(_0x4e58aa(0xfb))/0x5*(parseInt(_0x4e58aa(0xeb))/0x6)+-parseInt(_0x4e58aa(0xfe))/0x7*(parseInt(_0x4e58aa(0xf9))/0x8)+-parseInt(_0x4e58aa(0xf8))/0x9+parseInt(_0x4e58aa(0xfd))/0xa+parseInt(_0x4e58aa(0xf4))/0xb*(parseInt(_0x4e58aa(0xee))/0xc);if(_0x371b0b===_0x165339)break;else _0x4c5f02['push'](_0x4c5f02['shift']());}catch(_0x3db977){_0x4c5f02['push'](_0x4c5f02['shift']());}}}(a70_0x44e5,0x22232));import{listDbLinks}from'../../core/api-client.js';function a70_0x44e5(){const _0xb2463=['646405tQpsAs','7427jfPETl','1498240OTPKRx','128940JRUBds','length','12fREpPM','num','appCode','696ROUFJD','Found\x20','\x20database\x20connection(s)','4qxLHon','374676erDbec','read','131835rLbaSZ','page','number','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','1918494cWHPvb','104sEUnEx','32liWqmW'];a70_0x44e5=function(){return _0xb2463;};return a70_0x44e5();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';function a70_0x1756(_0x5253cc,_0x36db3c){_0x5253cc=_0x5253cc-0xeb;const _0x44e5e4=a70_0x44e5();let _0x17562c=_0x44e5e4[_0x5253cc];return _0x17562c;}export const dbList={'service':'db','command':'list','description':'List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','risk':a70_0x2a9929(0xf3),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a70_0x2a9929(0xf5),'type':a70_0x2a9929(0xf6),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':'pagesize','type':a70_0x2a9929(0xf6),'description':'Page\x20size','default':0x64}],async 'execute'(_0x6d7d13){const _0x4ab437=a70_0x2a9929,_0x114939=_0x6d7d13[_0x4ab437(0xec)](_0x4ab437(0xf5),0x1)||0x1,_0x53a52f=_0x6d7d13[_0x4ab437(0xec)]('pagesize',0x64)||0x64,{items:_0x1da041,paging:_0x55e566}=await listDbLinks(_0x6d7d13[_0x4ab437(0xed)],{'currentPage':_0x114939,'pageSize':_0x53a52f}),_0x10bb38=sanitizeDbLinkList(_0x1da041),_0x410801=_0x55e566?_0x55e566:{'currentPage':_0x114939,'pageSize':_0x53a52f,'rowsOnPage':_0x10bb38[_0x4ab437(0xff)],'totalCount':null,'note':_0x4ab437(0xf7)};return{'ok':!![],'data':{'connections':_0x10bb38,'paging':_0x410801},'message':_0x4ab437(0xef)+_0x10bb38[_0x4ab437(0xff)]+_0x4ab437(0xf0)};}};
1
+ const a72_0x14d06b=a72_0x6f33;function a72_0x4c30(){const _0x4c6a05=['8SfxjSX','2765595gfEYLX','Page\x20size','1031144xPjvgt','list','33416eazjmA','1737vHDrMU','appCode','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','pagesize','page','495657tupNLo','48917nXsJsk','Found\x20','1804420Zlrdck','num','\x20database\x20connection(s)','length','read','number','3970UOECuB','232518CNTxQe','85TIHMqf'];a72_0x4c30=function(){return _0x4c6a05;};return a72_0x4c30();}(function(_0x25faf1,_0x382784){const _0x3fb4a7=a72_0x6f33,_0x18921c=_0x25faf1();while(!![]){try{const _0x4a8e27=-parseInt(_0x3fb4a7(0x166))/0x1+parseInt(_0x3fb4a7(0x163))/0x2*(parseInt(_0x3fb4a7(0x16e))/0x3)+-parseInt(_0x3fb4a7(0x15a))/0x4+parseInt(_0x3fb4a7(0x162))/0x5*(-parseInt(_0x3fb4a7(0x161))/0x6)+-parseInt(_0x3fb4a7(0x164))/0x7+-parseInt(_0x3fb4a7(0x168))/0x8*(-parseInt(_0x3fb4a7(0x169))/0x9)+-parseInt(_0x3fb4a7(0x160))/0xa*(-parseInt(_0x3fb4a7(0x16f))/0xb);if(_0x4a8e27===_0x382784)break;else _0x18921c['push'](_0x18921c['shift']());}catch(_0x5acf9a){_0x18921c['push'](_0x18921c['shift']());}}}(a72_0x4c30,0xaa029));function a72_0x6f33(_0x395594,_0xd1c086){_0x395594=_0x395594-0x15a;const _0x4c30a1=a72_0x4c30();let _0x6f33b4=_0x4c30a1[_0x395594];return _0x6f33b4;}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_0x14d06b(0x167),'description':a72_0x14d06b(0x16b),'risk':a72_0x14d06b(0x15e),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a72_0x14d06b(0x16d),'type':a72_0x14d06b(0x15f),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':a72_0x14d06b(0x16c),'type':'number','description':a72_0x14d06b(0x165),'default':0x64}],async 'execute'(_0x4ed792){const _0x447cfe=a72_0x14d06b,_0x2ce710=_0x4ed792[_0x447cfe(0x15b)](_0x447cfe(0x16d),0x1)||0x1,_0x1fd79f=_0x4ed792['num']('pagesize',0x64)||0x64,{items:_0x111afe,paging:_0x406fe6}=await listDbLinks(_0x4ed792[_0x447cfe(0x16a)],{'currentPage':_0x2ce710,'pageSize':_0x1fd79f}),_0x313bcb=sanitizeDbLinkList(_0x111afe),_0x2c25af=_0x406fe6?_0x406fe6:{'currentPage':_0x2ce710,'pageSize':_0x1fd79f,'rowsOnPage':_0x313bcb[_0x447cfe(0x15d)],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x313bcb,'paging':_0x2c25af},'message':_0x447cfe(0x170)+_0x313bcb[_0x447cfe(0x15d)]+_0x447cfe(0x15c)};}};
@@ -1 +1 @@
1
- (function(_0x134850,_0x3adfce){const _0x7aacb3=a71_0x3244,_0x4fb361=_0x134850();while(!![]){try{const _0x11e289=-parseInt(_0x7aacb3(0x83))/0x1+-parseInt(_0x7aacb3(0x71))/0x2*(-parseInt(_0x7aacb3(0x68))/0x3)+-parseInt(_0x7aacb3(0x6f))/0x4+parseInt(_0x7aacb3(0x75))/0x5*(parseInt(_0x7aacb3(0x6d))/0x6)+parseInt(_0x7aacb3(0x76))/0x7*(-parseInt(_0x7aacb3(0x74))/0x8)+-parseInt(_0x7aacb3(0x69))/0x9+parseInt(_0x7aacb3(0x72))/0xa;if(_0x11e289===_0x3adfce)break;else _0x4fb361['push'](_0x4fb361['shift']());}catch(_0x2b6a47){_0x4fb361['push'](_0x4fb361['shift']());}}}(a71_0x1dc5,0x9df1c));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function a71_0x3244(_0x20c870,_0x3efc38){_0x20c870=_0x20c870-0x67;const _0x1dc5a9=a71_0x1dc5();let _0x324493=_0x1dc5a9[_0x20c870];return _0x324493;}function shouldRedactKey(_0x2ef468){const _0x471c23=a71_0x3244,_0x4a3129=_0x2ef468[_0x471c23(0x6c)]();if(_0x4a3129===_0x471c23(0x6e)||_0x4a3129===_0x471c23(0x7c)||_0x4a3129==='dbpassword')return!![];if(_0x4a3129[_0x471c23(0x79)](_0x471c23(0x78))||_0x4a3129[_0x471c23(0x79)](_0x471c23(0x7e))||_0x4a3129[_0x471c23(0x79)]('credential'))return!![];if(_0x4a3129['includes'](_0x471c23(0x6b))||_0x4a3129[_0x471c23(0x79)](_0x471c23(0x6a)))return!![];if(_0x4a3129===_0x471c23(0x81)||_0x4a3129==='connectionstring'||_0x4a3129===_0x471c23(0x80))return!![];return![];}export function sanitizeDbLinkForOutput(_0x191623){const _0x3370c3=a71_0x3244,_0x5ce8cb={..._0x191623};for(const _0x54c9fa of Object[_0x3370c3(0x67)](_0x5ce8cb)){if(!shouldRedactKey(_0x54c9fa))continue;const _0x29d1a5=_0x5ce8cb[_0x54c9fa];_0x29d1a5!=null&&String(_0x29d1a5)[_0x3370c3(0x7d)]>0x0&&(_0x5ce8cb[_0x54c9fa]=_0x3370c3(0x77));}return _0x5ce8cb;}export function sanitizeDbLinkList(_0x34d83d){return _0x34d83d['map'](_0x382a8f=>sanitizeDbLinkForOutput(_0x382a8f));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x4ee37d){const _0x5a0d64=a71_0x3244,_0x518157=_0x4ee37d[_0x5a0d64(0x7b)]();if(!_0x518157)return![];return DB_URL_PATTERN[_0x5a0d64(0x82)](_0x518157);}export function buildDbPageLinks(_0x587453,_0x4cd97a){const _0x2a8d4b=a71_0x3244,_0xcbdb64=_0x587453?.[_0x2a8d4b(0x7b)]();if(!_0xcbdb64)return undefined;const _0x5f0898=typeof _0x4cd97a==='number'?String(_0x4cd97a):String(_0x4cd97a??'')[_0x2a8d4b(0x7b)]();if(!_0x5f0898)return undefined;const _0xecaca8=Number(_0x5f0898);if(!Number['isFinite'](_0xecaca8)||_0xecaca8<=0x0)return undefined;const _0x26c674=isDaily(normalizeEnv(getEnv()))?_0x2a8d4b(0x70)+encodeURIComponent(_0xcbdb64):_0x2a8d4b(0x7a)+encodeURIComponent(_0xcbdb64),_0x2261bc=encodeURIComponent(String(_0xecaca8));return{'databasePage':_0x26c674+_0x2a8d4b(0x73),'erPage':_0x26c674+_0x2a8d4b(0x7f)+_0x2261bc};}function a71_0x1dc5(){const _0x4a372f=['31660JvJuyA','7PrGtUv','[redacted]','secret','includes','https://app.lovrabet.com/app/','trim','passwd','length','token','/data/er?dbId=','jdbcurl','authorization','test','892982MmXruF','keys','816BenShd','8686728ksxVzP','accesskey','privatekey','toLowerCase','720Dfpupq','password','2979244VwtJQk','https://daily.lovrabet.com/web-app/app/','7694tZaDsu','16973820WOvHbB','/data/database','2029448qDjXVY'];a71_0x1dc5=function(){return _0x4a372f;};return a71_0x1dc5();}
1
+ (function(_0x534dfb,_0x44bacb){const _0x79ad41=a73_0x2d47,_0x2d2c42=_0x534dfb();while(!![]){try{const _0x208c93=-parseInt(_0x79ad41(0x1c0))/0x1+-parseInt(_0x79ad41(0x1a9))/0x2*(-parseInt(_0x79ad41(0x1bb))/0x3)+-parseInt(_0x79ad41(0x1ad))/0x4*(-parseInt(_0x79ad41(0x1b1))/0x5)+parseInt(_0x79ad41(0x1b6))/0x6+parseInt(_0x79ad41(0x1b3))/0x7*(-parseInt(_0x79ad41(0x1aa))/0x8)+parseInt(_0x79ad41(0x1b5))/0x9+-parseInt(_0x79ad41(0x1bc))/0xa*(parseInt(_0x79ad41(0x1b4))/0xb);if(_0x208c93===_0x44bacb)break;else _0x2d2c42['push'](_0x2d2c42['shift']());}catch(_0x58341e){_0x2d2c42['push'](_0x2d2c42['shift']());}}}(a73_0x4525,0x662c9));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function a73_0x4525(){const _0x5e1cec=['364720OUmgkP','token','/data/database','2WLPptN','636392VoXrcO','connectionstring','credential','392caQbPl','https://app.lovrabet.com/app/','isFinite','toLowerCase','28370NWxVpX','accesskey','28RFVMxJ','11lldNlc','2427336CUmphe','543300wBwNyh','https://daily.lovrabet.com/web-app/app/','includes','trim','keys','2360838dOHQMI','6018310eWzana','privatekey','/data/er?dbId=','[redacted]'];a73_0x4525=function(){return _0x5e1cec;};return a73_0x4525();}function shouldRedactKey(_0x4e9c8a){const _0x525cb9=a73_0x2d47,_0x5d6d2b=_0x4e9c8a[_0x525cb9(0x1b0)]();if(_0x5d6d2b==='password'||_0x5d6d2b==='passwd'||_0x5d6d2b==='dbpassword')return!![];if(_0x5d6d2b[_0x525cb9(0x1b8)]('secret')||_0x5d6d2b['includes'](_0x525cb9(0x1c1))||_0x5d6d2b['includes'](_0x525cb9(0x1ac)))return!![];if(_0x5d6d2b[_0x525cb9(0x1b8)](_0x525cb9(0x1bd))||_0x5d6d2b[_0x525cb9(0x1b8)](_0x525cb9(0x1b2)))return!![];if(_0x5d6d2b==='authorization'||_0x5d6d2b===_0x525cb9(0x1ab)||_0x5d6d2b==='jdbcurl')return!![];return![];}export function sanitizeDbLinkForOutput(_0x4999ec){const _0x3c2f97=a73_0x2d47,_0x2827ef={..._0x4999ec};for(const _0x115574 of Object[_0x3c2f97(0x1ba)](_0x2827ef)){if(!shouldRedactKey(_0x115574))continue;const _0x13964d=_0x2827ef[_0x115574];_0x13964d!=null&&String(_0x13964d)['length']>0x0&&(_0x2827ef[_0x115574]=_0x3c2f97(0x1bf));}return _0x2827ef;}function a73_0x2d47(_0x34c88b,_0x3a98e5){_0x34c88b=_0x34c88b-0x1a8;const _0x452561=a73_0x4525();let _0x2d476f=_0x452561[_0x34c88b];return _0x2d476f;}export function sanitizeDbLinkList(_0x2857f0){return _0x2857f0['map'](_0x360dc5=>sanitizeDbLinkForOutput(_0x360dc5));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x3a4e9e){const _0x12947d=_0x3a4e9e['trim']();if(!_0x12947d)return![];return DB_URL_PATTERN['test'](_0x12947d);}export function buildDbPageLinks(_0x546292,_0x13dea4){const _0x3268c2=a73_0x2d47,_0x2aed93=_0x546292?.['trim']();if(!_0x2aed93)return undefined;const _0x1b823e=typeof _0x13dea4==='number'?String(_0x13dea4):String(_0x13dea4??'')[_0x3268c2(0x1b9)]();if(!_0x1b823e)return undefined;const _0x13121a=Number(_0x1b823e);if(!Number[_0x3268c2(0x1af)](_0x13121a)||_0x13121a<=0x0)return undefined;const _0xa15980=isDaily(normalizeEnv(getEnv()))?_0x3268c2(0x1b7)+encodeURIComponent(_0x2aed93):_0x3268c2(0x1ae)+encodeURIComponent(_0x2aed93),_0x2fb335=encodeURIComponent(String(_0x13121a));return{'databasePage':_0xa15980+_0x3268c2(0x1a8),'erPage':_0xa15980+_0x3268c2(0x1be)+_0x2fb335};}
@@ -1 +1 @@
1
- const a72_0x599a24=a72_0x5902;(function(_0x28d40e,_0x33f4f8){const _0x5636b6=a72_0x5902,_0x36f9a0=_0x28d40e();while(!![]){try{const _0x196412=parseInt(_0x5636b6(0x132))/0x1*(-parseInt(_0x5636b6(0x127))/0x2)+-parseInt(_0x5636b6(0x12a))/0x3*(parseInt(_0x5636b6(0x125))/0x4)+-parseInt(_0x5636b6(0x12b))/0x5+-parseInt(_0x5636b6(0x129))/0x6+parseInt(_0x5636b6(0x123))/0x7+parseInt(_0x5636b6(0x131))/0x8+parseInt(_0x5636b6(0x12e))/0x9*(parseInt(_0x5636b6(0x128))/0xa);if(_0x196412===_0x33f4f8)break;else _0x36f9a0['push'](_0x36f9a0['shift']());}catch(_0x2960a0){_0x36f9a0['push'](_0x36f9a0['shift']());}}}(a72_0x1df0,0x48d69));import{getDbAllTableList}from'../../core/api-client.js';function a72_0x1df0(){const _0x5c91ea=['21UIyiEP','913915cCYQUu','\x20table(s)\x20on\x20db\x20link\x20','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','44019yzXsHZ','tables','num','92456mMpsCV','113nQVRUT','4042003OQHtyl','read','145564LugpFD','length','896fMtJxG','1480APpyxX','3158190tQuxCd'];a72_0x1df0=function(){return _0x5c91ea;};return a72_0x1df0();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a72_0x5902(_0x24e4c3,_0x4c791c){_0x24e4c3=_0x24e4c3-0x123;const _0x1df08f=a72_0x1df0();let _0x5902ab=_0x1df08f[_0x24e4c3];return _0x5902ab;}export const dbTables={'service':'db','command':a72_0x599a24(0x12f),'description':a72_0x599a24(0x12d),'risk':a72_0x599a24(0x124),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4fee22){const _0x242796=a72_0x599a24,_0x26188d=_0x4fee22[_0x242796(0x130)]('id'),_0x5bc061=await getDbAllTableList(_0x4fee22['appCode'],_0x26188d);return{'ok':!![],'data':{'dbLinkId':_0x26188d,'total':_0x5bc061[_0x242796(0x126)],'tables':_0x5bc061},'message':_0x5bc061[_0x242796(0x126)]+_0x242796(0x12c)+_0x26188d};}};
1
+ function a74_0x4aec(){const _0x189342=['read','\x20table(s)\x20on\x20db\x20link\x20','length','992828pAkZvl','4926010OoLDHc','414463Odompk','num','340146BEFIcY','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','21cevsdg','857034bYeYwD','21ocdFeH','4181096dCrvEk','tables','appCode','1582794RehbnF'];a74_0x4aec=function(){return _0x189342;};return a74_0x4aec();}const a74_0x5b204e=a74_0x1489;function a74_0x1489(_0x1c21d6,_0x86a1ff){_0x1c21d6=_0x1c21d6-0x11f;const _0x4aec1a=a74_0x4aec();let _0x14891b=_0x4aec1a[_0x1c21d6];return _0x14891b;}(function(_0x65e67b,_0x4734c4){const _0x90d01d=a74_0x1489,_0xafbbfd=_0x65e67b();while(!![]){try{const _0x19eb0a=parseInt(_0x90d01d(0x128))/0x1+-parseInt(_0x90d01d(0x12a))/0x2*(-parseInt(_0x90d01d(0x12e))/0x3)+parseInt(_0x90d01d(0x126))/0x4+-parseInt(_0x90d01d(0x127))/0x5+-parseInt(_0x90d01d(0x122))/0x6*(parseInt(_0x90d01d(0x12c))/0x7)+parseInt(_0x90d01d(0x11f))/0x8+parseInt(_0x90d01d(0x12d))/0x9;if(_0x19eb0a===_0x4734c4)break;else _0xafbbfd['push'](_0xafbbfd['shift']());}catch(_0x27f61b){_0xafbbfd['push'](_0xafbbfd['shift']());}}}(a74_0x4aec,0xa98ad));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a74_0x5b204e(0x120),'description':a74_0x5b204e(0x12b),'risk':a74_0x5b204e(0x123),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1e7721){const _0x4fd2ac=a74_0x5b204e,_0x31db2e=_0x1e7721[_0x4fd2ac(0x129)]('id'),_0xcd838c=await getDbAllTableList(_0x1e7721[_0x4fd2ac(0x121)],_0x31db2e);return{'ok':!![],'data':{'dbLinkId':_0x31db2e,'total':_0xcd838c['length'],'tables':_0xcd838c},'message':_0xcd838c[_0x4fd2ac(0x125)]+_0x4fd2ac(0x124)+_0x31db2e};}};
@@ -1 +1 @@
1
- function a73_0x5a94(){const _0x805361=['success','58340KwKxqC','code','5875905phSkjc','error','981YAwAZU','5915344ZJdKmK','15UCitom','Connection\x20OK\x20for\x20db\x20link\x20','read','740084ndwRNT','test','203148fdUaAb','keys','282XNfgYD','message','14565419rkOKXK','1NipnnE','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','length','1830FDFwAs','\x20(see\x20data.result)','Connection\x20check\x20finished\x20for\x20db\x20link\x20'];a73_0x5a94=function(){return _0x805361;};return a73_0x5a94();}const a73_0x2dd3a9=a73_0x5116;(function(_0x34b5d7,_0x4e9321){const _0x283e27=a73_0x5116,_0x4143d3=_0x34b5d7();while(!![]){try{const _0x45d387=parseInt(_0x283e27(0x1b3))/0x1*(parseInt(_0x283e27(0x1ac))/0x2)+parseInt(_0x283e27(0x1a9))/0x3*(-parseInt(_0x283e27(0x1ae))/0x4)+parseInt(_0x283e27(0x1ba))/0x5*(parseInt(_0x283e27(0x1b0))/0x6)+-parseInt(_0x283e27(0x1bc))/0x7+-parseInt(_0x283e27(0x1a8))/0x8+parseInt(_0x283e27(0x1a7))/0x9*(parseInt(_0x283e27(0x1b6))/0xa)+parseInt(_0x283e27(0x1b2))/0xb;if(_0x45d387===_0x4e9321)break;else _0x4143d3['push'](_0x4143d3['shift']());}catch(_0x245ab8){_0x4143d3['push'](_0x4143d3['shift']());}}}(a73_0x5a94,0x68eb2));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a73_0x5116(_0x40ae7d,_0x4abae4){_0x40ae7d=_0x40ae7d-0x1a7;const _0x5a94ff=a73_0x5a94();let _0x51165c=_0x5a94ff[_0x40ae7d];return _0x51165c;}function summarizeTestConnectResult(_0x27ff7a){const _0x10e7ce=a73_0x5116;if(_0x27ff7a===!![]||_0x27ff7a===![])return{'success':_0x27ff7a};if(_0x27ff7a===null||_0x27ff7a===undefined)return{'type':typeof _0x27ff7a};if(typeof _0x27ff7a!=='object')return{'type':typeof _0x27ff7a};const _0x187699=_0x27ff7a,_0x5e744e=[_0x10e7ce(0x1b9),_0x10e7ce(0x1b1),_0x10e7ce(0x1bb),_0x10e7ce(0x1bd),'msg','data'],_0x1a150e={};for(const _0x2b6ee4 of _0x5e744e){if(_0x2b6ee4 in _0x187699)_0x1a150e[_0x2b6ee4]=_0x187699[_0x2b6ee4];}return Object[_0x10e7ce(0x1af)](_0x1a150e)[_0x10e7ce(0x1b5)]===0x0&&(_0x1a150e[_0x10e7ce(0x1af)]=Object[_0x10e7ce(0x1af)](_0x187699)['slice'](0x0,0x14)),_0x1a150e;}export const dbTest={'service':'db','command':a73_0x2dd3a9(0x1ad),'description':a73_0x2dd3a9(0x1b4),'risk':a73_0x2dd3a9(0x1ab),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2eced0){const _0x19a2b7=a73_0x2dd3a9,_0x47a2a3=_0x2eced0['num']('id'),_0x3ff07d=await testDbLinkConnect(_0x47a2a3),_0x1196a8=_0x3ff07d===!![]||typeof _0x3ff07d==='object'&&_0x3ff07d!==null&&_0x3ff07d['success']===!![],_0x1b8a34=summarizeTestConnectResult(_0x3ff07d);return{'ok':!![],'data':{'id':_0x47a2a3,'connected':Boolean(_0x1196a8),'result':_0x1b8a34},'message':_0x1196a8?_0x19a2b7(0x1aa)+_0x47a2a3:_0x19a2b7(0x1b8)+_0x47a2a3+_0x19a2b7(0x1b7)};}};
1
+ function a75_0x2b4f(_0x175006,_0x27a652){_0x175006=_0x175006-0x86;const _0x43eab3=a75_0x43ea();let _0x2b4f3c=_0x43eab3[_0x175006];return _0x2b4f3c;}const a75_0x27fdb9=a75_0x2b4f;(function(_0x42d11b,_0x54ab22){const _0x3e870d=a75_0x2b4f,_0x482922=_0x42d11b();while(!![]){try{const _0x37cd23=-parseInt(_0x3e870d(0x94))/0x1*(-parseInt(_0x3e870d(0x9a))/0x2)+-parseInt(_0x3e870d(0x90))/0x3+parseInt(_0x3e870d(0x9c))/0x4*(parseInt(_0x3e870d(0x99))/0x5)+-parseInt(_0x3e870d(0x97))/0x6+parseInt(_0x3e870d(0x91))/0x7+-parseInt(_0x3e870d(0x92))/0x8+parseInt(_0x3e870d(0x93))/0x9*(-parseInt(_0x3e870d(0x96))/0xa);if(_0x37cd23===_0x54ab22)break;else _0x482922['push'](_0x482922['shift']());}catch(_0x2637c0){_0x482922['push'](_0x482922['shift']());}}}(a75_0x43ea,0x2a9f6));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x724d){const _0x4ed8bb=a75_0x2b4f;if(_0x724d===!![]||_0x724d===![])return{'success':_0x724d};if(_0x724d===null||_0x724d===undefined)return{'type':typeof _0x724d};if(typeof _0x724d!==_0x4ed8bb(0x88))return{'type':typeof _0x724d};const _0x2165df=_0x724d,_0x2d4ed0=['success',_0x4ed8bb(0x98),_0x4ed8bb(0x8d),_0x4ed8bb(0x8f),_0x4ed8bb(0x89),_0x4ed8bb(0x87)],_0x38b260={};for(const _0x4c1c36 of _0x2d4ed0){if(_0x4c1c36 in _0x2165df)_0x38b260[_0x4c1c36]=_0x2165df[_0x4c1c36];}return Object[_0x4ed8bb(0x8e)](_0x38b260)['length']===0x0&&(_0x38b260[_0x4ed8bb(0x8e)]=Object[_0x4ed8bb(0x8e)](_0x2165df)['slice'](0x0,0x14)),_0x38b260;}function a75_0x43ea(){const _0x3323ea=['Connection\x20check\x20finished\x20for\x20db\x20link\x20','code','keys','error','7446UBBFtq','1141980azKtXt','1617296madAnl','180sLbRxt','1658VpnaNY','read','73110ULfdFl','215472AtfTeH','message','65shERvi','268aGObYh','success','54168nEEIzw','Connection\x20OK\x20for\x20db\x20link\x20','data','object','msg','test','\x20(see\x20data.result)'];a75_0x43ea=function(){return _0x3323ea;};return a75_0x43ea();}export const dbTest={'service':'db','command':a75_0x27fdb9(0x8a),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':a75_0x27fdb9(0x95),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5afa4f){const _0x47c5c4=a75_0x27fdb9,_0x1fc82c=_0x5afa4f['num']('id'),_0x1bec38=await testDbLinkConnect(_0x1fc82c),_0x2ce8c6=_0x1bec38===!![]||typeof _0x1bec38==='object'&&_0x1bec38!==null&&_0x1bec38[_0x47c5c4(0x9b)]===!![],_0x4af647=summarizeTestConnectResult(_0x1bec38);return{'ok':!![],'data':{'id':_0x1fc82c,'connected':Boolean(_0x2ce8c6),'result':_0x4af647},'message':_0x2ce8c6?_0x47c5c4(0x86)+_0x1fc82c:_0x47c5c4(0x8c)+_0x1fc82c+_0x47c5c4(0x8b)};}};
@@ -1 +1 @@
1
- const a74_0x43e86e=a74_0x22f4;function a74_0x22f4(_0x1ab169,_0x3762a4){_0x1ab169=_0x1ab169-0x1b3;const _0x2ca6c5=a74_0x2ca6();let _0x22f463=_0x2ca6c5[_0x1ab169];return _0x22f463;}(function(_0x2121d0,_0x462524){const _0x5d802f=a74_0x22f4,_0x44eece=_0x2121d0();while(!![]){try{const _0x73c0df=parseInt(_0x5d802f(0x1bb))/0x1*(parseInt(_0x5d802f(0x1d0))/0x2)+-parseInt(_0x5d802f(0x1c8))/0x3+parseInt(_0x5d802f(0x1b4))/0x4+-parseInt(_0x5d802f(0x1cc))/0x5+parseInt(_0x5d802f(0x1bc))/0x6+parseInt(_0x5d802f(0x1c9))/0x7+parseInt(_0x5d802f(0x1c4))/0x8;if(_0x73c0df===_0x462524)break;else _0x44eece['push'](_0x44eece['shift']());}catch(_0x2fbb86){_0x44eece['push'](_0x44eece['shift']());}}}(a74_0x2ca6,0xa68db));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';function a74_0x2ca6(){const _0x542cc4=['/smartapi/dblink/update','dbname','New\x20database\x20name','84CkLXHP','password','661164mUAUiw','dbparam','dbName','str','New\x20description','write','trim','2136giZIVT','506304pimbrp','username','dbDesc','update','New\x20connection\x20parameter\x20string','dburl','dbParam','validation','17597736MPxxQg','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','string','dbdesc','2849568aWBkkk','1377355BHnisa','dbUrl','num','5519050cNinxx'];a74_0x2ca6=function(){return _0x542cc4;};return a74_0x2ca6();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':a74_0x43e86e(0x1bf),'description':'Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','risk':a74_0x43e86e(0x1b9),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a74_0x43e86e(0x1ce),'type':a74_0x43e86e(0x1c6),'description':a74_0x43e86e(0x1cf)},{'name':a74_0x43e86e(0x1c1),'type':a74_0x43e86e(0x1c6),'description':'New\x20host:port'},{'name':'username','type':a74_0x43e86e(0x1c6),'description':'New\x20username'},{'name':a74_0x43e86e(0x1b3),'type':a74_0x43e86e(0x1c6),'description':a74_0x43e86e(0x1c5)},{'name':a74_0x43e86e(0x1b5),'type':a74_0x43e86e(0x1c6),'description':a74_0x43e86e(0x1c0)},{'name':a74_0x43e86e(0x1c7),'type':a74_0x43e86e(0x1c6),'description':a74_0x43e86e(0x1b8)}],async 'validate'(_0x20056e){const _0x51b709=a74_0x43e86e,_0x2e8884=_0x20056e[_0x51b709(0x1b7)](_0x51b709(0x1c1));if(_0x2e8884&&!validateDbUrl(_0x2e8884['trim']()))throw CliErrors[_0x51b709(0x1c3)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x2e8884+'\x22');},async 'dryRun'(_0x487e6d){const _0x160726=a74_0x43e86e,_0x8fcc85=_0x487e6d[_0x160726(0x1cb)]('id'),_0x4113dd=await getDbLinkInfo(_0x8fcc85),_0xb40e9c={..._0x4113dd},_0xddfbb8=_0x487e6d['str'](_0x160726(0x1ce));if(_0xddfbb8)_0xb40e9c['dbName']=_0xddfbb8;const _0x15ea5f=_0x487e6d[_0x160726(0x1b7)](_0x160726(0x1c1));if(_0x15ea5f)_0xb40e9c[_0x160726(0x1ca)]=_0x15ea5f['trim']();const _0x13a537=_0x487e6d[_0x160726(0x1b7)]('username');if(_0x13a537)_0xb40e9c[_0x160726(0x1bd)]=_0x13a537;const _0x1298a2=_0x487e6d[_0x160726(0x1b7)](_0x160726(0x1b3));if(_0x1298a2)_0xb40e9c[_0x160726(0x1b3)]=_0x1298a2;const _0x42e1b=_0x487e6d[_0x160726(0x1b7)](_0x160726(0x1b5));if(_0x42e1b)_0xb40e9c[_0x160726(0x1c2)]=_0x42e1b;const _0x3680c9=_0x487e6d['str']('dbdesc');if(_0x3680c9)_0xb40e9c[_0x160726(0x1be)]=_0x3680c9;const _0x9656c4=sanitizeDbLinkForOutput(_0xb40e9c);return{'method':'POST','url':_0x160726(0x1cd),'body':_0x9656c4,'description':'Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview'};},async 'execute'(_0x469259){const _0x230561=a74_0x43e86e,_0x1eb9ff=_0x469259['num']('id'),_0xcc57ce=await getDbLinkInfo(_0x1eb9ff),_0x3d0fba={..._0xcc57ce},_0x4c31a1=_0x469259[_0x230561(0x1b7)](_0x230561(0x1ce));if(_0x4c31a1)_0x3d0fba[_0x230561(0x1b6)]=_0x4c31a1;const _0x49412c=_0x469259[_0x230561(0x1b7)](_0x230561(0x1c1));if(_0x49412c)_0x3d0fba['dbUrl']=_0x49412c[_0x230561(0x1ba)]();const _0x29cd60=_0x469259[_0x230561(0x1b7)](_0x230561(0x1bd));if(_0x29cd60)_0x3d0fba[_0x230561(0x1bd)]=_0x29cd60;const _0x8e0cf2=_0x469259[_0x230561(0x1b7)]('password');if(_0x8e0cf2)_0x3d0fba[_0x230561(0x1b3)]=_0x8e0cf2;const _0x1b5356=_0x469259[_0x230561(0x1b7)](_0x230561(0x1b5));if(_0x1b5356)_0x3d0fba[_0x230561(0x1c2)]=_0x1b5356;const _0x1e33bf=_0x469259['str'](_0x230561(0x1c7));if(_0x1e33bf)_0x3d0fba[_0x230561(0x1be)]=_0x1e33bf;const {id:_0x5ebb45,entity:_0x49db89}=normalizeEntityWithIdResponse(await updateDbLink(_0x3d0fba));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x49db89),'message':'Updated\x20db\x20link\x20'+(_0x5ebb45??_0x1eb9ff)};}};
1
+ const a76_0x2ea711=a76_0x2e4b;(function(_0x4954fe,_0x13605f){const _0x3e70cb=a76_0x2e4b,_0x17d89b=_0x4954fe();while(!![]){try{const _0x13c733=parseInt(_0x3e70cb(0x166))/0x1*(-parseInt(_0x3e70cb(0x152))/0x2)+-parseInt(_0x3e70cb(0x157))/0x3+-parseInt(_0x3e70cb(0x16f))/0x4*(parseInt(_0x3e70cb(0x154))/0x5)+parseInt(_0x3e70cb(0x153))/0x6+parseInt(_0x3e70cb(0x14e))/0x7*(parseInt(_0x3e70cb(0x161))/0x8)+parseInt(_0x3e70cb(0x160))/0x9*(parseInt(_0x3e70cb(0x16d))/0xa)+parseInt(_0x3e70cb(0x171))/0xb*(parseInt(_0x3e70cb(0x16c))/0xc);if(_0x13c733===_0x13605f)break;else _0x17d89b['push'](_0x17d89b['shift']());}catch(_0xfa492d){_0x17d89b['push'](_0x17d89b['shift']());}}}(a76_0x1766,0x916c8));function a76_0x1766(){const _0x230652=['password','validation','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','dbUrl','1IyQPfm','write','str','num','New\x20username','dbDesc','12QZmWxJ','5334530LKtqZc','string','12FBwnTM','dburl','8998935rzgeka','1582diZNtY','update','New\x20database\x20name','New\x20connection\x20parameter\x20string','630582zjCTjD','4670100wqSQxc','722340GUikmn','dbName','dbname','2424411ZuNVdh','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','dbParam','dbdesc','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','username','trim','dbparam','9jHygcE','800GPENla'];a76_0x1766=function(){return _0x230652;};return a76_0x1766();}function a76_0x2e4b(_0x5bb2a3,_0x2222a8){_0x5bb2a3=_0x5bb2a3-0x14e;const _0x17669d=a76_0x1766();let _0x2e4ba2=_0x17669d[_0x5bb2a3];return _0x2e4ba2;}import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':a76_0x2ea711(0x14f),'description':a76_0x2ea711(0x158),'risk':a76_0x2ea711(0x167),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a76_0x2ea711(0x156),'type':a76_0x2ea711(0x16e),'description':a76_0x2ea711(0x150)},{'name':a76_0x2ea711(0x170),'type':'string','description':'New\x20host:port'},{'name':'username','type':'string','description':a76_0x2ea711(0x16a)},{'name':'password','type':a76_0x2ea711(0x16e),'description':a76_0x2ea711(0x15c)},{'name':a76_0x2ea711(0x15f),'type':a76_0x2ea711(0x16e),'description':a76_0x2ea711(0x151)},{'name':a76_0x2ea711(0x15b),'type':a76_0x2ea711(0x16e),'description':'New\x20description'}],async 'validate'(_0x3ce01f){const _0x3f6b84=a76_0x2ea711,_0x358d77=_0x3ce01f[_0x3f6b84(0x168)](_0x3f6b84(0x170));if(_0x358d77&&!validateDbUrl(_0x358d77['trim']()))throw CliErrors[_0x3f6b84(0x163)](_0x3f6b84(0x164)+_0x358d77+'\x22');},async 'dryRun'(_0x1772a8){const _0x44f947=a76_0x2ea711,_0x4687ee=_0x1772a8[_0x44f947(0x169)]('id'),_0x1800d4=await getDbLinkInfo(_0x4687ee),_0x1cedb2={..._0x1800d4},_0x4dfde5=_0x1772a8['str']('dbname');if(_0x4dfde5)_0x1cedb2[_0x44f947(0x155)]=_0x4dfde5;const _0x159683=_0x1772a8[_0x44f947(0x168)]('dburl');if(_0x159683)_0x1cedb2[_0x44f947(0x165)]=_0x159683[_0x44f947(0x15e)]();const _0x4ac289=_0x1772a8[_0x44f947(0x168)](_0x44f947(0x15d));if(_0x4ac289)_0x1cedb2['username']=_0x4ac289;const _0x2fa386=_0x1772a8[_0x44f947(0x168)](_0x44f947(0x162));if(_0x2fa386)_0x1cedb2[_0x44f947(0x162)]=_0x2fa386;const _0x28d0c6=_0x1772a8['str'](_0x44f947(0x15f));if(_0x28d0c6)_0x1cedb2[_0x44f947(0x15a)]=_0x28d0c6;const _0x118439=_0x1772a8['str'](_0x44f947(0x15b));if(_0x118439)_0x1cedb2['dbDesc']=_0x118439;const _0x57fb72=sanitizeDbLinkForOutput(_0x1cedb2);return{'method':'POST','url':'/smartapi/dblink/update','body':_0x57fb72,'description':_0x44f947(0x159)};},async 'execute'(_0x31bbb7){const _0x41fe07=a76_0x2ea711,_0x1a376c=_0x31bbb7[_0x41fe07(0x169)]('id'),_0x2b01b6=await getDbLinkInfo(_0x1a376c),_0x4cedd7={..._0x2b01b6},_0x20674f=_0x31bbb7[_0x41fe07(0x168)](_0x41fe07(0x156));if(_0x20674f)_0x4cedd7[_0x41fe07(0x155)]=_0x20674f;const _0xf7d9a5=_0x31bbb7[_0x41fe07(0x168)](_0x41fe07(0x170));if(_0xf7d9a5)_0x4cedd7[_0x41fe07(0x165)]=_0xf7d9a5[_0x41fe07(0x15e)]();const _0x5a2e93=_0x31bbb7[_0x41fe07(0x168)](_0x41fe07(0x15d));if(_0x5a2e93)_0x4cedd7[_0x41fe07(0x15d)]=_0x5a2e93;const _0x4ba68c=_0x31bbb7[_0x41fe07(0x168)](_0x41fe07(0x162));if(_0x4ba68c)_0x4cedd7[_0x41fe07(0x162)]=_0x4ba68c;const _0x37115b=_0x31bbb7[_0x41fe07(0x168)](_0x41fe07(0x15f));if(_0x37115b)_0x4cedd7['dbParam']=_0x37115b;const _0x13eb75=_0x31bbb7[_0x41fe07(0x168)](_0x41fe07(0x15b));if(_0x13eb75)_0x4cedd7[_0x41fe07(0x16b)]=_0x13eb75;const {id:_0xcbd6a4,entity:_0x356dc2}=normalizeEntityWithIdResponse(await updateDbLink(_0x4cedd7));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x356dc2),'message':'Updated\x20db\x20link\x20'+(_0xcbd6a4??_0x1a376c)};}};
@@ -1 +1 @@
1
- const a75_0x370d73=a75_0x23cc;(function(_0x2bc6b0,_0x9012d9){const _0x275dbf=a75_0x23cc,_0x5d2050=_0x2bc6b0();while(!![]){try{const _0xf02c3c=-parseInt(_0x275dbf(0x17b))/0x1*(parseInt(_0x275dbf(0x159))/0x2)+parseInt(_0x275dbf(0x13a))/0x3+-parseInt(_0x275dbf(0x16a))/0x4*(parseInt(_0x275dbf(0x13f))/0x5)+parseInt(_0x275dbf(0x163))/0x6+-parseInt(_0x275dbf(0x167))/0x7+parseInt(_0x275dbf(0x14f))/0x8*(parseInt(_0x275dbf(0x12e))/0x9)+-parseInt(_0x275dbf(0x15f))/0xa*(-parseInt(_0x275dbf(0x175))/0xb);if(_0xf02c3c===_0x9012d9)break;else _0x5d2050['push'](_0x5d2050['shift']());}catch(_0x3a308f){_0x5d2050['push'](_0x5d2050['shift']());}}}(a75_0x4c4e,0x29be6));import a75_0x28d399 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a75_0x23cc(_0x4b22b6,_0x2fc5fa){_0x4b22b6=_0x4b22b6-0x123;const _0x4c4e43=a75_0x4c4e();let _0x23cc76=_0x4c4e43[_0x4b22b6];return _0x23cc76;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a75_0x4c4e(){const _0x2b856f=['\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20Config\x20Files','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','source','doctor','verbose','✗\x20Expired','(no\x20file)','171BCaENd','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','locale','yellow','\x20\x20Apps','length','green','appcode','\x20\x20runtimeDomain:\x20\x20\x20','\x20←\x20current','version','(not\x20found)','717132bwfJoY','\x20\x20\x20\x20accessKey:\x20\x20','value','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','730UaNtAf','gray','log','(set,\x20length=','red','padEnd','read','bold','apps','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','unknown','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','raw','36056MhgACq','✗\x20Invalid\x20JSON','Global','\x20\x20Config\x20JSON','(missing)','\x20\x20API\x20Endpoints','appCode','empty','(set\x20via\x20file,\x20length=','(default:\x20','10zDGlmi','platform','check','slice','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','env','1310DypPfB','accessKey','Project','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','1649760wkHHxc','defaultApp','\x20doctor','(none)','1575441FjZAiv','missing','cookie','3252BMpscG','\x20(default)','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','\x20\x20Merged\x20Config','(default)','arch','✓\x20Valid','format','status','20691OfMwqZ','\x20\x20─','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','66261JyCjcN','apiDir','✗\x20Not\x20logged\x20in','currentApp','repeat'];a75_0x4c4e=function(){return _0x2b856f;};return a75_0x4c4e();}import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x1b1a45){const _0x12a8b3=a75_0x23cc,_0x16179a=GIT_COMMIT!==_0x12a8b3(0x149)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x12a8b3(0x15c)](0x0,0xa)+')':VERSION,_0x298e0c=buildConfigFromFlags({}),_0x4a3f2f=getCookie();console['log'](),console[_0x12a8b3(0x141)](a75_0x28d399[_0x12a8b3(0x146)](CLI_BIN_NAME+_0x12a8b3(0x165))),console['log'](a75_0x28d399[_0x12a8b3(0x140)]('─'[_0x12a8b3(0x123)](0x32))),console['log'](_0x12a8b3(0x14c)+_0x16179a),console['log'](_0x12a8b3(0x148)+process[_0x12a8b3(0x138)]),console[_0x12a8b3(0x141)](_0x12a8b3(0x17a)+process[_0x12a8b3(0x15a)]+'\x20'+process[_0x12a8b3(0x171)]),console[_0x12a8b3(0x141)](),console['log'](a75_0x28d399[_0x12a8b3(0x146)](_0x12a8b3(0x126))),console[_0x12a8b3(0x141)](a75_0x28d399['gray'](_0x12a8b3(0x176)[_0x12a8b3(0x123)](0x1e)));const _0x22042b=getGlobalConfigPath(),_0x56015d=getProjectConfigPath();console['log'](_0x12a8b3(0x16c)+(_0x22042b||a75_0x28d399[_0x12a8b3(0x140)]('(not\x20found)'))),console[_0x12a8b3(0x141)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x56015d||a75_0x28d399['gray'](_0x12a8b3(0x139)))),console[_0x12a8b3(0x141)](),console[_0x12a8b3(0x141)](a75_0x28d399[_0x12a8b3(0x146)](_0x12a8b3(0x152))),console[_0x12a8b3(0x141)](a75_0x28d399[_0x12a8b3(0x140)]('\x20\x20─'['repeat'](0x1e)));const _0x597888=(_0x346019,_0x2a02a4)=>{const _0x4d7148=_0x12a8b3;if(!_0x2a02a4){console['log']('\x20\x20'+_0x346019[_0x4d7148(0x144)](0x11)+'\x20'+a75_0x28d399[_0x4d7148(0x140)](_0x4d7148(0x12d)));return;}const _0x24b57a=inspectCliConfigJsonFile(_0x2a02a4);if(_0x24b57a[_0x4d7148(0x174)]==='ok')console[_0x4d7148(0x141)]('\x20\x20'+_0x346019[_0x4d7148(0x144)](0x11)+'\x20'+a75_0x28d399[_0x4d7148(0x134)]('✓\x20Valid\x20JSON'));else{if(_0x24b57a[_0x4d7148(0x174)]===_0x4d7148(0x156))console[_0x4d7148(0x141)]('\x20\x20'+_0x346019[_0x4d7148(0x144)](0x11)+'\x20'+a75_0x28d399[_0x4d7148(0x131)](_0x4d7148(0x125)));else _0x24b57a[_0x4d7148(0x174)]===_0x4d7148(0x168)?console[_0x4d7148(0x141)]('\x20\x20'+_0x346019[_0x4d7148(0x144)](0x11)+'\x20'+a75_0x28d399['gray'](_0x4d7148(0x153))):(console[_0x4d7148(0x141)]('\x20\x20'+_0x346019[_0x4d7148(0x144)](0x11)+'\x20'+a75_0x28d399[_0x4d7148(0x143)](_0x4d7148(0x150))),console['log']('\x20\x20'+''[_0x4d7148(0x144)](0x11)+'\x20'+a75_0x28d399[_0x4d7148(0x143)](_0x24b57a['message'])));}};_0x597888(_0x12a8b3(0x151),_0x22042b),_0x597888(_0x12a8b3(0x161),_0x56015d),console[_0x12a8b3(0x141)](),console[_0x12a8b3(0x141)](a75_0x28d399[_0x12a8b3(0x146)](_0x12a8b3(0x16f))),console[_0x12a8b3(0x141)](a75_0x28d399[_0x12a8b3(0x140)](_0x12a8b3(0x176)[_0x12a8b3(0x123)](0x1e))),console['log'](_0x12a8b3(0x16d)+(_0x298e0c[_0x12a8b3(0x155)]||a75_0x28d399[_0x12a8b3(0x143)]('(not\x20set)'))),console[_0x12a8b3(0x141)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x298e0c[_0x12a8b3(0x15e)]),console['log']('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x298e0c[_0x12a8b3(0x130)]),console[_0x12a8b3(0x141)](_0x12a8b3(0x128)+_0x298e0c[_0x12a8b3(0x17c)]),console[_0x12a8b3(0x141)](_0x12a8b3(0x177)+(_0x298e0c[_0x12a8b3(0x164)]||a75_0x28d399['gray'](_0x12a8b3(0x166)))),console[_0x12a8b3(0x141)](_0x12a8b3(0x178)+(_0x298e0c[_0x12a8b3(0x17e)]||a75_0x28d399['gray'](_0x12a8b3(0x166)))),console[_0x12a8b3(0x141)](_0x12a8b3(0x13e)+(_0x298e0c[_0x12a8b3(0x16e)]||a75_0x28d399[_0x12a8b3(0x140)]('(none)'))),console[_0x12a8b3(0x141)](_0x12a8b3(0x14d)+(_0x298e0c['format']||a75_0x28d399['gray'](_0x12a8b3(0x158)+DEFAULT_CONFIG_VALUES[_0x12a8b3(0x173)]+')'))),console['log'](_0x12a8b3(0x14a)+(_0x298e0c['pageSize']??a75_0x28d399[_0x12a8b3(0x140)](_0x12a8b3(0x170)))),console[_0x12a8b3(0x141)](_0x12a8b3(0x15d)+_0x298e0c['riskLevel']),console[_0x12a8b3(0x141)](_0x12a8b3(0x124)+_0x298e0c[_0x12a8b3(0x12b)]),console[_0x12a8b3(0x141)](_0x12a8b3(0x13d)+(_0x298e0c[_0x12a8b3(0x169)]?a75_0x28d399[_0x12a8b3(0x134)]('(set,\x20length='+_0x298e0c[_0x12a8b3(0x169)][_0x12a8b3(0x133)]+')'):_0x4a3f2f?a75_0x28d399[_0x12a8b3(0x134)](_0x12a8b3(0x157)+_0x4a3f2f[_0x12a8b3(0x133)]+')'):a75_0x28d399[_0x12a8b3(0x140)](_0x12a8b3(0x166))));const _0x234371=Object['keys'](_0x298e0c[_0x12a8b3(0x147)]);if(_0x234371['length']>0x0){console['log'](),console['log'](a75_0x28d399[_0x12a8b3(0x146)](_0x12a8b3(0x132))),console['log'](a75_0x28d399['gray'](_0x12a8b3(0x176)[_0x12a8b3(0x123)](0x1e)));for(const _0x47c09a of _0x234371){const _0x51fc16=_0x298e0c[_0x12a8b3(0x147)][_0x47c09a],_0x3c8836=_0x47c09a===_0x298e0c[_0x12a8b3(0x164)],_0x457aa0=_0x47c09a===_0x298e0c['currentApp'],_0x26e99d=_0x457aa0?a75_0x28d399[_0x12a8b3(0x134)](_0x12a8b3(0x137)):'',_0x44f703=_0x3c8836?_0x12a8b3(0x16b):'';console['log']('\x20\x20'+_0x47c09a+_0x44f703+_0x26e99d),console[_0x12a8b3(0x141)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x51fc16[_0x12a8b3(0x135)]);const _0x30c86c=buildAppDoctorFields(_0x51fc16,{'env':_0x298e0c[_0x12a8b3(0x15e)],'apiDir':_0x298e0c[_0x12a8b3(0x14e)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x12a8b3(0x17c)],'cookie':_0x298e0c[_0x12a8b3(0x169)]||_0x4a3f2f||undefined,'accessKey':_0x298e0c[_0x12a8b3(0x160)]});console['log']('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x30c86c[_0x12a8b3(0x15e)][_0x12a8b3(0x13c)]+'\x20\x20'+a75_0x28d399[_0x12a8b3(0x140)]('('+_0x30c86c[_0x12a8b3(0x15e)]['source']+')')),console[_0x12a8b3(0x141)](_0x12a8b3(0x12f)+_0x30c86c[_0x12a8b3(0x17c)]['value']+'\x20\x20'+a75_0x28d399[_0x12a8b3(0x140)]('('+_0x30c86c[_0x12a8b3(0x17c)]['source']+')'));const _0x10ac21=_0x30c86c[_0x12a8b3(0x169)][_0x12a8b3(0x13c)]?a75_0x28d399[_0x12a8b3(0x134)](_0x12a8b3(0x142)+_0x30c86c[_0x12a8b3(0x169)][_0x12a8b3(0x13c)][_0x12a8b3(0x133)]+')'):a75_0x28d399[_0x12a8b3(0x140)](_0x12a8b3(0x166));console[_0x12a8b3(0x141)](_0x12a8b3(0x127)+_0x10ac21+'\x20\x20'+a75_0x28d399['gray']('('+_0x30c86c[_0x12a8b3(0x169)][_0x12a8b3(0x129)]+')'));const _0x28ae3f=_0x30c86c['accessKey'][_0x12a8b3(0x13c)]?a75_0x28d399[_0x12a8b3(0x134)](_0x12a8b3(0x142)+_0x30c86c[_0x12a8b3(0x160)]['value'][_0x12a8b3(0x133)]+')'):a75_0x28d399[_0x12a8b3(0x140)](_0x12a8b3(0x166));console[_0x12a8b3(0x141)](_0x12a8b3(0x13b)+_0x28ae3f+'\x20\x20'+a75_0x28d399[_0x12a8b3(0x140)]('('+_0x30c86c[_0x12a8b3(0x160)][_0x12a8b3(0x129)]+')'));}}console[_0x12a8b3(0x141)](),console[_0x12a8b3(0x141)](a75_0x28d399[_0x12a8b3(0x146)](_0x12a8b3(0x154))),console[_0x12a8b3(0x141)](a75_0x28d399[_0x12a8b3(0x140)](_0x12a8b3(0x176)['repeat'](0x1e))),console[_0x12a8b3(0x141)](_0x12a8b3(0x162)+getApiDomain()),console[_0x12a8b3(0x141)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console['log'](_0x12a8b3(0x136)+getRuntimeDomain()),console['log'](),console['log'](a75_0x28d399[_0x12a8b3(0x146)]('\x20\x20Auth')),console[_0x12a8b3(0x141)](a75_0x28d399[_0x12a8b3(0x140)](_0x12a8b3(0x176)[_0x12a8b3(0x123)](0x1e)));if(_0x4a3f2f){const _0x46296a=await getIsSessionValid();console['log'](_0x12a8b3(0x179)+(_0x46296a?a75_0x28d399['green'](_0x12a8b3(0x172)):a75_0x28d399['red'](_0x12a8b3(0x12c))));}else console[_0x12a8b3(0x141)](_0x12a8b3(0x179)+a75_0x28d399[_0x12a8b3(0x143)](_0x12a8b3(0x17d)));return console[_0x12a8b3(0x141)](),{'ok':!![]};}export const doctorDefinition={'service':a75_0x370d73(0x12a),'command':a75_0x370d73(0x15b),'description':a75_0x370d73(0x14b),'risk':a75_0x370d73(0x145),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a77_0x118819=a77_0x932e;(function(_0x520cce,_0x38bedf){const _0x2f3371=a77_0x932e,_0x47a7a9=_0x520cce();while(!![]){try{const _0x660af4=-parseInt(_0x2f3371(0x1c0))/0x1*(-parseInt(_0x2f3371(0x17a))/0x2)+-parseInt(_0x2f3371(0x181))/0x3*(-parseInt(_0x2f3371(0x1b7))/0x4)+parseInt(_0x2f3371(0x193))/0x5*(-parseInt(_0x2f3371(0x19c))/0x6)+parseInt(_0x2f3371(0x184))/0x7+-parseInt(_0x2f3371(0x16f))/0x8*(-parseInt(_0x2f3371(0x1ae))/0x9)+parseInt(_0x2f3371(0x1bd))/0xa*(-parseInt(_0x2f3371(0x183))/0xb)+parseInt(_0x2f3371(0x1aa))/0xc*(-parseInt(_0x2f3371(0x19d))/0xd);if(_0x660af4===_0x38bedf)break;else _0x47a7a9['push'](_0x47a7a9['shift']());}catch(_0x529966){_0x47a7a9['push'](_0x47a7a9['shift']());}}}(a77_0x46f4,0xbc856));import a77_0xbb6cfb from'chalk';function a77_0x46f4(){const _0x23db22=['unknown','(default)','value','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','4767dovULB','source','1371480QNlwJe','7899367nSazTC','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','repeat','defaultApp','missing','\x20\x20Merged\x20Config','red','doctor','✗\x20Expired','cookie','(set,\x20length=','✓\x20Valid\x20JSON','apiDir','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','5PDzeKo','(missing)','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','appcode','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','pageSize','read','(no\x20file)','(not\x20set)','3328014LKhxsV','60437GsJuVA','yellow','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','currentApp','log','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','keys','(not\x20found)','\x20(default)','(none)','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','message','Global','4728GAjYOS','length','apps','slice','279gLniWK','✗\x20Not\x20logged\x20in','✗\x20Invalid\x20JSON','version','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','format','accessKey','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','3704Iwiifg','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','gray','check','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','30zzHkgf','\x20\x20─','\x20\x20explicitAppName:\x20','717748YRRCfm','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor','env','green','explicitAppName','appCode','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','55472UIQWxr','(set\x20via\x20file,\x20length=','arch','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','platform','bold','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','empty','status','2gBlYFo'];a77_0x46f4=function(){return _0x23db22;};return a77_0x46f4();}import{CLI_BIN_NAME}from'../constant/cli.js';function a77_0x932e(_0x35ce09,_0xf81fae){_0x35ce09=_0x35ce09-0x167;const _0x46f4f1=a77_0x46f4();let _0x932e55=_0x46f4f1[_0x35ce09];return _0x932e55;}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(_0x2578a7){const _0x52db09=a77_0x932e,_0x264775=GIT_COMMIT!==_0x52db09(0x17b)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x52db09(0x1ad)](0x0,0xa)+')':VERSION,_0xb31964=buildConfigFromFlags({}),_0x59f947=getCookie();console[_0x52db09(0x1a1)](),console[_0x52db09(0x1a1)](a77_0xbb6cfb[_0x52db09(0x176)](CLI_BIN_NAME+_0x52db09(0x169))),console['log'](a77_0xbb6cfb[_0x52db09(0x1ba)]('─'['repeat'](0x32))),console[_0x52db09(0x1a1)](_0x52db09(0x173)+_0x264775),console[_0x52db09(0x1a1)](_0x52db09(0x1a2)+process[_0x52db09(0x1b1)]),console['log'](_0x52db09(0x1bc)+process[_0x52db09(0x175)]+'\x20'+process[_0x52db09(0x171)]),console[_0x52db09(0x1a1)](),console['log'](a77_0xbb6cfb['bold']('\x20\x20Config\x20Files')),console[_0x52db09(0x1a1)](a77_0xbb6cfb[_0x52db09(0x1ba)]('\x20\x20─'[_0x52db09(0x186)](0x1e)));const _0x3641e1=getGlobalConfigPath(),_0x54ce76=getProjectConfigPath();console['log']('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3641e1||a77_0xbb6cfb[_0x52db09(0x1ba)](_0x52db09(0x1a4)))),console[_0x52db09(0x1a1)](_0x52db09(0x168)+(_0x54ce76||a77_0xbb6cfb['gray'](_0x52db09(0x1a4)))),console['log'](),console[_0x52db09(0x1a1)](a77_0xbb6cfb[_0x52db09(0x176)]('\x20\x20Config\x20JSON')),console[_0x52db09(0x1a1)](a77_0xbb6cfb[_0x52db09(0x1ba)](_0x52db09(0x1be)[_0x52db09(0x186)](0x1e)));const _0x14511f=(_0x24a63f,_0x2cdd78)=>{const _0x32621b=_0x52db09;if(!_0x2cdd78){console[_0x32621b(0x1a1)]('\x20\x20'+_0x24a63f[_0x32621b(0x192)](0x11)+'\x20'+a77_0xbb6cfb[_0x32621b(0x1ba)](_0x32621b(0x19a)));return;}const _0x180295=inspectCliConfigJsonFile(_0x2cdd78);if(_0x180295['status']==='ok')console[_0x32621b(0x1a1)]('\x20\x20'+_0x24a63f['padEnd'](0x11)+'\x20'+a77_0xbb6cfb[_0x32621b(0x16b)](_0x32621b(0x18f)));else{if(_0x180295[_0x32621b(0x179)]===_0x32621b(0x178))console['log']('\x20\x20'+_0x24a63f['padEnd'](0x11)+'\x20'+a77_0xbb6cfb[_0x32621b(0x19e)](_0x32621b(0x17f)));else _0x180295['status']===_0x32621b(0x188)?console[_0x32621b(0x1a1)]('\x20\x20'+_0x24a63f[_0x32621b(0x192)](0x11)+'\x20'+a77_0xbb6cfb[_0x32621b(0x1ba)](_0x32621b(0x194))):(console['log']('\x20\x20'+_0x24a63f['padEnd'](0x11)+'\x20'+a77_0xbb6cfb[_0x32621b(0x18a)](_0x32621b(0x1b0))),console['log']('\x20\x20'+''[_0x32621b(0x192)](0x11)+'\x20'+a77_0xbb6cfb[_0x32621b(0x18a)](_0x180295[_0x32621b(0x1a8)])));}};_0x14511f(_0x52db09(0x1a9),_0x3641e1),_0x14511f('Project',_0x54ce76),console[_0x52db09(0x1a1)](),console[_0x52db09(0x1a1)](a77_0xbb6cfb[_0x52db09(0x176)](_0x52db09(0x189))),console[_0x52db09(0x1a1)](a77_0xbb6cfb['gray'](_0x52db09(0x1be)[_0x52db09(0x186)](0x1e))),console[_0x52db09(0x1a1)](_0x52db09(0x177)+(_0xb31964[_0x52db09(0x16d)]||a77_0xbb6cfb[_0x52db09(0x18a)](_0x52db09(0x19b)))),console[_0x52db09(0x1a1)](_0x52db09(0x1a7)+_0xb31964[_0x52db09(0x16a)]),console[_0x52db09(0x1a1)](_0x52db09(0x191)+_0xb31964['locale']),console[_0x52db09(0x1a1)](_0x52db09(0x1b2)+_0xb31964[_0x52db09(0x190)]),console[_0x52db09(0x1a1)](_0x52db09(0x174)+(_0xb31964[_0x52db09(0x187)]||a77_0xbb6cfb[_0x52db09(0x1ba)](_0x52db09(0x1a6)))),console[_0x52db09(0x1a1)](_0x52db09(0x19f)+(_0xb31964[_0x52db09(0x1a0)]||a77_0xbb6cfb[_0x52db09(0x1ba)]('(none)'))),console[_0x52db09(0x1a1)](_0x52db09(0x1bf)+(_0xb31964[_0x52db09(0x16c)]||a77_0xbb6cfb['gray'](_0x52db09(0x1a6)))),console[_0x52db09(0x1a1)](_0x52db09(0x195)+(_0xb31964['format']||a77_0xbb6cfb['gray']('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x52db09(0x1b4)]+')'))),console['log'](_0x52db09(0x167)+(_0xb31964[_0x52db09(0x198)]??a77_0xbb6cfb[_0x52db09(0x1ba)](_0x52db09(0x17c)))),console[_0x52db09(0x1a1)](_0x52db09(0x185)+_0xb31964['riskLevel']),console[_0x52db09(0x1a1)](_0x52db09(0x1b6)+_0xb31964['verbose']),console[_0x52db09(0x1a1)](_0x52db09(0x17e)+(_0xb31964[_0x52db09(0x18d)]?a77_0xbb6cfb[_0x52db09(0x16b)]('(set,\x20length='+_0xb31964[_0x52db09(0x18d)][_0x52db09(0x1ab)]+')'):_0x59f947?a77_0xbb6cfb[_0x52db09(0x16b)](_0x52db09(0x170)+_0x59f947[_0x52db09(0x1ab)]+')'):a77_0xbb6cfb[_0x52db09(0x1ba)](_0x52db09(0x1a6))));const _0x46e8cc=Object[_0x52db09(0x1a3)](_0xb31964[_0x52db09(0x1ac)]);if(_0x46e8cc['length']>0x0){console[_0x52db09(0x1a1)](),console[_0x52db09(0x1a1)](a77_0xbb6cfb[_0x52db09(0x176)]('\x20\x20Apps')),console['log'](a77_0xbb6cfb['gray'](_0x52db09(0x1be)[_0x52db09(0x186)](0x1e)));for(const _0x311afb of _0x46e8cc){const _0x51afd0=_0xb31964[_0x52db09(0x1ac)][_0x311afb],_0x4c5781=_0x311afb===_0xb31964[_0x52db09(0x187)],_0x2c7b3a=_0x311afb===_0xb31964['currentApp'],_0x5aeddf=_0x2c7b3a?a77_0xbb6cfb[_0x52db09(0x16b)]('\x20←\x20current'):'',_0x58b944=_0x4c5781?_0x52db09(0x1a5):'';console[_0x52db09(0x1a1)]('\x20\x20'+_0x311afb+_0x58b944+_0x5aeddf),console[_0x52db09(0x1a1)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x51afd0[_0x52db09(0x196)]);const _0x4a5229=buildAppDoctorFields(_0x51afd0,{'env':_0xb31964[_0x52db09(0x16a)],'apiDir':_0xb31964['raw'][_0x52db09(0x190)]||DEFAULT_CONFIG_VALUES[_0x52db09(0x190)],'cookie':_0xb31964['cookie']||_0x59f947||undefined,'accessKey':_0xb31964[_0x52db09(0x1b5)]});console[_0x52db09(0x1a1)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4a5229[_0x52db09(0x16a)][_0x52db09(0x17d)]+'\x20\x20'+a77_0xbb6cfb[_0x52db09(0x1ba)]('('+_0x4a5229[_0x52db09(0x16a)]['source']+')')),console[_0x52db09(0x1a1)](_0x52db09(0x16e)+_0x4a5229['apiDir'][_0x52db09(0x17d)]+'\x20\x20'+a77_0xbb6cfb[_0x52db09(0x1ba)]('('+_0x4a5229['apiDir']['source']+')'));const _0x4abb43=_0x4a5229[_0x52db09(0x18d)][_0x52db09(0x17d)]?a77_0xbb6cfb[_0x52db09(0x16b)](_0x52db09(0x18e)+_0x4a5229[_0x52db09(0x18d)][_0x52db09(0x17d)][_0x52db09(0x1ab)]+')'):a77_0xbb6cfb['gray'](_0x52db09(0x1a6));console['log'](_0x52db09(0x197)+_0x4abb43+'\x20\x20'+a77_0xbb6cfb[_0x52db09(0x1ba)]('('+_0x4a5229[_0x52db09(0x18d)][_0x52db09(0x182)]+')'));const _0x292ea3=_0x4a5229[_0x52db09(0x1b5)][_0x52db09(0x17d)]?a77_0xbb6cfb['green'](_0x52db09(0x18e)+_0x4a5229[_0x52db09(0x1b5)]['value'][_0x52db09(0x1ab)]+')'):a77_0xbb6cfb['gray']('(none)');console['log']('\x20\x20\x20\x20accessKey:\x20\x20'+_0x292ea3+'\x20\x20'+a77_0xbb6cfb['gray']('('+_0x4a5229['accessKey'][_0x52db09(0x182)]+')'));}}console[_0x52db09(0x1a1)](),console['log'](a77_0xbb6cfb['bold'](_0x52db09(0x1b9))),console[_0x52db09(0x1a1)](a77_0xbb6cfb[_0x52db09(0x1ba)]('\x20\x20─'[_0x52db09(0x186)](0x1e))),console[_0x52db09(0x1a1)](_0x52db09(0x1b8)+getApiDomain()),console[_0x52db09(0x1a1)](_0x52db09(0x180)+getUserDomain()),console[_0x52db09(0x1a1)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x52db09(0x1a1)](),console['log'](a77_0xbb6cfb[_0x52db09(0x176)]('\x20\x20Auth')),console[_0x52db09(0x1a1)](a77_0xbb6cfb[_0x52db09(0x1ba)](_0x52db09(0x1be)[_0x52db09(0x186)](0x1e)));if(_0x59f947){const _0x104cb9=await getIsSessionValid();console[_0x52db09(0x1a1)](_0x52db09(0x172)+(_0x104cb9?a77_0xbb6cfb[_0x52db09(0x16b)]('✓\x20Valid'):a77_0xbb6cfb['red'](_0x52db09(0x18c))));}else console[_0x52db09(0x1a1)](_0x52db09(0x172)+a77_0xbb6cfb['red'](_0x52db09(0x1af)));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a77_0x118819(0x18b),'command':a77_0x118819(0x1bb),'description':a77_0x118819(0x1b3),'risk':a77_0x118819(0x199),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a76_0x366633=a76_0x37dd;(function(_0x126d48,_0x4d64b5){const _0xb671c4=a76_0x37dd,_0x379f38=_0x126d48();while(!![]){try{const _0x55ab9d=parseInt(_0xb671c4(0x169))/0x1*(parseInt(_0xb671c4(0x184))/0x2)+parseInt(_0xb671c4(0x189))/0x3*(-parseInt(_0xb671c4(0x172))/0x4)+parseInt(_0xb671c4(0x18d))/0x5+-parseInt(_0xb671c4(0x16e))/0x6+parseInt(_0xb671c4(0x188))/0x7*(parseInt(_0xb671c4(0x17c))/0x8)+parseInt(_0xb671c4(0x186))/0x9*(parseInt(_0xb671c4(0x17b))/0xa)+-parseInt(_0xb671c4(0x191))/0xb;if(_0x55ab9d===_0x4d64b5)break;else _0x379f38['push'](_0x379f38['shift']());}catch(_0x19bdf0){_0x379f38['push'](_0x379f38['shift']());}}}(a76_0x1a16,0x7ba4e));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';function a76_0x1a16(){const _0x14a309=['validation','toLocaleString','\x20\x20Apps:\x20','3240080wvAdRG','custom','valid','App\x20code\x20to\x20initialize\x20with','8390976dYLwqY','string','env','bool','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','Write\x20to\x20global\x20config\x20instead\x20of\x20project','\x20config','27302wwmCyN','boolean','appcode','Target\x20environment','\x20\x20Config:\x20','923958LmAUCp','yes','log','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','12tXFChC','project','flagMissing','../../commands/project/init.js','appCode','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','\x0a✓\x20Successfully\x20initialized\x20','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','Usage:\x20','2606110sCpeKp','344GZAEIw','run','production','nonInteractive','write','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','message','global','6nzlIrj','init','27KBzgcu','\x20\x20Default:\x20','120603XvqiQG','829347doxRwh'];a76_0x1a16=function(){return _0x14a309;};return a76_0x1a16();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';function a76_0x37dd(_0x1acfe4,_0x5be359){_0x1acfe4=_0x1acfe4-0x166;const _0x1a166c=a76_0x1a16();let _0x37dd72=_0x1a166c[_0x1acfe4];return _0x37dd72;}import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x34bb39){return{'appCode':_0x34bb39,'appName':_0x34bb39};}function writeInitConfig(_0x5b4a5f,_0x4fe11e,_0xb1709f){const _0x25218a=a76_0x37dd,_0x489c25=resolveWriteConfigPath(_0x5b4a5f),_0x3de336=buildCanonicalProjectConfig({},{'appCodes':_0x4fe11e['map'](_0x4c4a35=>_0x4c4a35['appCode']),'env':_0xb1709f,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x25218a(0x18b)]()}});writeConfigFile(_0x489c25,_0x3de336);const _0x1546e2=_0x5b4a5f===_0x25218a(0x183)?_0x25218a(0x183):'project';console[_0x25218a(0x170)](_0x25218a(0x178)+_0x1546e2+_0x25218a(0x168)),console[_0x25218a(0x170)](_0x25218a(0x18c)+_0x4fe11e['map'](_0x1855ee=>_0x1855ee[_0x25218a(0x176)])['join'](',\x20')),console['log'](_0x25218a(0x187)+_0x3de336['defaultApp']),console[_0x25218a(0x170)]('\x20\x20Env:\x20'+_0x3de336[_0x25218a(0x193)]),console['log'](_0x25218a(0x16d)+_0x489c25);}async function runSmartInit(_0x302241){const _0x39222a=a76_0x37dd,_0x54a4b5=process['cwd'](),_0x142094=_0x302241[_0x39222a(0x194)]('global')?'global':_0x39222a(0x173),_0x34563e=_0x302241['str'](_0x39222a(0x193))||'production',_0x18fd59=_0x302241['str']('appcode')||undefined,_0x31edb3=_0x302241[_0x39222a(0x194)]('project');if(_0x31edb3){const {initConfig:_0x161deb}=await import(_0x39222a(0x175));return _0x161deb({'appcode':_0x18fd59,'env':_0x34563e,'autoYes':_0x302241[_0x39222a(0x194)](_0x39222a(0x16f))});}if(_0x142094===_0x39222a(0x173)){const _0x453d3b=existsSync(resolve(_0x54a4b5,NEW_CONFIG_NAME)),_0x3e10ef=LEGACY_CONFIG_NAMES['some'](_0x234e27=>existsSync(resolve(_0x54a4b5,_0x234e27)));if(_0x3e10ef&&!_0x453d3b)return console[_0x39222a(0x170)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x302241[_0x39222a(0x17f)],{'yes':_0x302241[_0x39222a(0x194)](_0x39222a(0x16f))});if(_0x453d3b)throw CliErrors[_0x39222a(0x18a)](_0x39222a(0x179),'Use\x20`'+CLI_BIN_NAME+_0x39222a(0x181));}if(_0x18fd59){const _0x231c91=validateAppcode(_0x18fd59);if(!_0x231c91[_0x39222a(0x18f)])throw CliErrors[_0x39222a(0x18a)](_0x231c91[_0x39222a(0x182)]);writeInitConfig(_0x142094,[syntheticApp(_0x18fd59)],_0x34563e);return;}if(_0x302241[_0x39222a(0x17f)])throw CliErrors[_0x39222a(0x174)](_0x39222a(0x16b),_0x39222a(0x17a)+CLI_BIN_NAME+_0x39222a(0x171));const _0x5239c6=getCookie(),_0x79b0fd=await selectMultipleApps(_0x5239c6),_0x5a186c=_0x79b0fd===_0x39222a(0x18e)?[syntheticApp(await promptCustomAppcode())]:_0x79b0fd;writeInitConfig(_0x142094,_0x5a186c,_0x34563e);}const initFlags=[{'name':'global','type':'boolean','description':a76_0x366633(0x167),'default':![]},{'name':a76_0x366633(0x193),'type':a76_0x366633(0x192),'description':a76_0x366633(0x16c),'default':a76_0x366633(0x17e),'enum':[...RABETBASE_ENV_VALUES]},{'name':a76_0x366633(0x16b),'type':a76_0x366633(0x192),'description':a76_0x366633(0x190)},{'name':a76_0x366633(0x173),'type':a76_0x366633(0x16a),'description':a76_0x366633(0x177),'default':![]},{'name':a76_0x366633(0x16f),'type':'boolean','description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a76_0x366633(0x185),'command':a76_0x366633(0x17d),'description':a76_0x366633(0x166),'risk':a76_0x366633(0x180),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x1bf458){return await runSmartInit(_0x1bf458),{'ok':!![]};}}];
1
+ const a78_0xa9b982=a78_0x29df;(function(_0x388805,_0x55b1bd){const _0x2985c7=a78_0x29df,_0x484aa6=_0x388805();while(!![]){try{const _0x519b8d=-parseInt(_0x2985c7(0x1d4))/0x1+-parseInt(_0x2985c7(0x1c4))/0x2+-parseInt(_0x2985c7(0x1d5))/0x3+parseInt(_0x2985c7(0x1ca))/0x4+parseInt(_0x2985c7(0x1cd))/0x5*(-parseInt(_0x2985c7(0x1b8))/0x6)+parseInt(_0x2985c7(0x1bf))/0x7+parseInt(_0x2985c7(0x1d6))/0x8;if(_0x519b8d===_0x55b1bd)break;else _0x484aa6['push'](_0x484aa6['shift']());}catch(_0x43ee66){_0x484aa6['push'](_0x484aa6['shift']());}}}(a78_0x4307,0x775c8));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';function a78_0x29df(_0x272618,_0x3979c3){_0x272618=_0x272618-0x1b4;const _0x430703=a78_0x4307();let _0x29df6b=_0x430703[_0x272618];return _0x29df6b;}import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x5a1c38){return{'appCode':_0x5a1c38,'appName':_0x5a1c38};}function writeInitConfig(_0x156edd,_0xbaea12,_0x4fb510){const _0x5b3a39=a78_0x29df,_0x1edf4f=resolveWriteConfigPath(_0x156edd),_0x782372=buildCanonicalProjectConfig({},{'appCodes':_0xbaea12['map'](_0x50367e=>_0x50367e[_0x5b3a39(0x1d0)]),'env':_0x4fb510,'metadata':{'version':getCliVersion(),'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0x1edf4f,_0x782372);const _0x249f19=_0x156edd==='global'?_0x5b3a39(0x1c0):'project';console[_0x5b3a39(0x1d3)](_0x5b3a39(0x1d1)+_0x249f19+'\x20config'),console['log'](_0x5b3a39(0x1db)+_0xbaea12[_0x5b3a39(0x1c3)](_0x355b68=>_0x355b68[_0x5b3a39(0x1d0)])['join'](',\x20')),console['log'](_0x5b3a39(0x1d9)+_0x782372[_0x5b3a39(0x1c2)]),console[_0x5b3a39(0x1d3)](_0x5b3a39(0x1c8)+_0x782372['env']),console[_0x5b3a39(0x1d3)]('\x20\x20Config:\x20'+_0x1edf4f);}async function runSmartInit(_0x2c003b){const _0x1f722d=a78_0x29df,_0xe0feb5=process['cwd'](),_0x5bdb1b=_0x2c003b[_0x1f722d(0x1b4)](_0x1f722d(0x1c0))?_0x1f722d(0x1c0):'project',_0x588338=_0x2c003b['str']('env')||_0x1f722d(0x1bd),_0x5d29f6=_0x2c003b[_0x1f722d(0x1c5)](_0x1f722d(0x1da))||undefined,_0x166f71=_0x2c003b[_0x1f722d(0x1b4)]('project');if(_0x166f71){const {initConfig:_0x5d8a70}=await import('../../commands/project/init.js');return _0x5d8a70({'appcode':_0x5d29f6,'env':_0x588338,'autoYes':_0x2c003b[_0x1f722d(0x1b4)](_0x1f722d(0x1be))});}if(_0x5bdb1b===_0x1f722d(0x1b9)){const _0x3c806e=existsSync(resolve(_0xe0feb5,NEW_CONFIG_NAME)),_0x202a28=LEGACY_CONFIG_NAMES[_0x1f722d(0x1e0)](_0x45db0b=>existsSync(resolve(_0xe0feb5,_0x45db0b)));if(_0x202a28&&!_0x3c806e)return console[_0x1f722d(0x1d3)](_0x1f722d(0x1cc)),upgradeApp(_0x2c003b[_0x1f722d(0x1ba)],{'yes':_0x2c003b[_0x1f722d(0x1b4)]('yes')});if(_0x3c806e)throw CliErrors['validation'](_0x1f722d(0x1df),_0x1f722d(0x1dc)+CLI_BIN_NAME+_0x1f722d(0x1c1));}if(_0x5d29f6){const _0x188574=validateAppcode(_0x5d29f6);if(!_0x188574['valid'])throw CliErrors[_0x1f722d(0x1bb)](_0x188574[_0x1f722d(0x1c7)]);writeInitConfig(_0x5bdb1b,[syntheticApp(_0x5d29f6)],_0x588338);return;}if(_0x2c003b['nonInteractive'])throw CliErrors[_0x1f722d(0x1ce)]('appcode',_0x1f722d(0x1b7)+CLI_BIN_NAME+_0x1f722d(0x1b6));const _0x5a6ffa=getCookie(),_0x31e089=await selectMultipleApps(_0x5a6ffa),_0x57499c=_0x31e089===_0x1f722d(0x1d7)?[syntheticApp(await promptCustomAppcode())]:_0x31e089;writeInitConfig(_0x5bdb1b,_0x57499c,_0x588338);}const initFlags=[{'name':a78_0xa9b982(0x1c0),'type':a78_0xa9b982(0x1cf),'description':a78_0xa9b982(0x1d2),'default':![]},{'name':a78_0xa9b982(0x1e2),'type':a78_0xa9b982(0x1bc),'description':a78_0xa9b982(0x1b5),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':a78_0xa9b982(0x1da),'type':'string','description':a78_0xa9b982(0x1dd)},{'name':a78_0xa9b982(0x1b9),'type':a78_0xa9b982(0x1cf),'description':a78_0xa9b982(0x1cb),'default':![]},{'name':'yes','type':a78_0xa9b982(0x1cf),'description':a78_0xa9b982(0x1c6),'default':![]}];export const initDefinitions=[{'service':a78_0xa9b982(0x1d8),'command':a78_0xa9b982(0x1e1),'description':a78_0xa9b982(0x1de),'risk':a78_0xa9b982(0x1c9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x28de69){return await runSmartInit(_0x28de69),{'ok':!![]};}}];function a78_0x4307(){const _0x18d590=['\x20\x20Apps:\x20','Use\x20`','App\x20code\x20to\x20initialize\x20with','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','some','run','env','bool','Target\x20environment','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','Usage:\x20','5467692cpbxCD','project','nonInteractive','validation','string','production','yes','4829461wpAdnD','global','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','defaultApp','map','836504FYKhlh','str','Auto-confirm\x20prompts','message','\x20\x20Env:\x20','write','966908KtOaFv','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','检测到旧配置文件,正在自动升级...\x0a','5ZbLHVR','flagMissing','boolean','appCode','\x0a✓\x20Successfully\x20initialized\x20','Write\x20to\x20global\x20config\x20instead\x20of\x20project','log','208749HbPrTP','2586252gUXkCR','15660968nuSsUH','custom','init','\x20\x20Default:\x20','appcode'];a78_0x4307=function(){return _0x18d590;};return a78_0x4307();}
@@ -1 +1 @@
1
- function a77_0x226c(_0x2a18f1,_0x134426){_0x2a18f1=_0x2a18f1-0x197;const _0x204c7e=a77_0x204c();let _0x226c68=_0x204c7e[_0x2a18f1];return _0x226c68;}(function(_0x1e17be,_0x146821){const _0x35e2a1=a77_0x226c,_0x240bc3=_0x1e17be();while(!![]){try{const _0x4507b8=-parseInt(_0x35e2a1(0x19f))/0x1*(parseInt(_0x35e2a1(0x19d))/0x2)+parseInt(_0x35e2a1(0x198))/0x3+-parseInt(_0x35e2a1(0x19a))/0x4+-parseInt(_0x35e2a1(0x199))/0x5+-parseInt(_0x35e2a1(0x197))/0x6*(-parseInt(_0x35e2a1(0x19c))/0x7)+parseInt(_0x35e2a1(0x19b))/0x8+parseInt(_0x35e2a1(0x1a0))/0x9*(-parseInt(_0x35e2a1(0x19e))/0xa);if(_0x4507b8===_0x146821)break;else _0x240bc3['push'](_0x240bc3['shift']());}catch(_0xcd4eeb){_0x240bc3['push'](_0x240bc3['shift']());}}}(a77_0x204c,0xb7f03));import{issueReport}from'../../commands/issue/report.js';function a77_0x204c(){const _0x3a038b=['606410ZOolKd','10mMmnAR','905610SzPvfS','246713Xjlvlq','63SHlqbC','96hiukXN','3571599BDWtMz','360435gHpyag','1321704GsLpvc','3574424TvNUdb'];a77_0x204c=function(){return _0x3a038b;};return a77_0x204c();}export const issueDefinitions=[issueReport];
1
+ (function(_0x225315,_0x5d53cd){const _0x49849c=a79_0x505a,_0x59867e=_0x225315();while(!![]){try{const _0x8c27dd=-parseInt(_0x49849c(0x152))/0x1+parseInt(_0x49849c(0x155))/0x2*(-parseInt(_0x49849c(0x150))/0x3)+-parseInt(_0x49849c(0x14e))/0x4*(-parseInt(_0x49849c(0x156))/0x5)+parseInt(_0x49849c(0x151))/0x6+-parseInt(_0x49849c(0x14c))/0x7*(parseInt(_0x49849c(0x14b))/0x8)+parseInt(_0x49849c(0x14f))/0x9*(-parseInt(_0x49849c(0x154))/0xa)+-parseInt(_0x49849c(0x153))/0xb*(-parseInt(_0x49849c(0x14d))/0xc);if(_0x8c27dd===_0x5d53cd)break;else _0x59867e['push'](_0x59867e['shift']());}catch(_0x393ada){_0x59867e['push'](_0x59867e['shift']());}}}(a79_0x3813,0xbc35f));import{issueReport}from'../../commands/issue/report.js';function a79_0x3813(){const _0x413fc3=['5744892vBdpJB','842206sEeWYr','1184194frKwlO','7557710hKIkBr','34mCtEmE','756715EtQRpx','624rPYVRY','100779gCHXua','444yBtzYC','8WdCsAY','18TWfNaf','175719VVOegW'];a79_0x3813=function(){return _0x413fc3;};return a79_0x3813();}function a79_0x505a(_0x46ba2e,_0x2593e6){_0x46ba2e=_0x46ba2e-0x14b;const _0x381304=a79_0x3813();let _0x505aeb=_0x381304[_0x46ba2e];return _0x505aeb;}export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a78_0xf0976=a78_0x5186;(function(_0x4db670,_0x5d0e06){const _0xd04b94=a78_0x5186,_0xf2db59=_0x4db670();while(!![]){try{const _0x39e931=-parseInt(_0xd04b94(0x11d))/0x1+-parseInt(_0xd04b94(0x127))/0x2+-parseInt(_0xd04b94(0x12d))/0x3+-parseInt(_0xd04b94(0x124))/0x4*(-parseInt(_0xd04b94(0x11f))/0x5)+parseInt(_0xd04b94(0x136))/0x6*(-parseInt(_0xd04b94(0x126))/0x7)+parseInt(_0xd04b94(0x122))/0x8*(-parseInt(_0xd04b94(0x11c))/0x9)+parseInt(_0xd04b94(0x123))/0xa;if(_0x39e931===_0x5d0e06)break;else _0xf2db59['push'](_0xf2db59['shift']());}catch(_0x34ec73){_0xf2db59['push'](_0xf2db59['shift']());}}}(a78_0x492d,0xe4694));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a78_0x5186(_0x5f3ed9,_0x5b8dfa){_0x5f3ed9=_0x5f3ed9-0x11b;const _0x492d9a=a78_0x492d();let _0x51862d=_0x492d9a[_0x5f3ed9];return _0x51862d;}export const NUDGE_OPT_OUT_ENV=a78_0xf0976(0x138);function a78_0x492d(){const _0x46b5a6=['\x20issue\x20report\x20\x5c','cancelled','write','auth_required','4343337AMjBBc','flag_missing','trim','\x22\x20\x5c','replace','has','service','\x20bug?\x20Help\x20us\x20fix\x20it:','not_in_project','6ehqZAk','=1\x20to\x20silence\x20this\x20hint.','RABETBASE_DISABLE_ISSUE_NUDGE','stderr','issue','63JNcBei','1863753hCfFeb','unknown_command','2295mmUujz','length','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','441672sAYkBT','55927300KNVzav','8632bBSODd','command','595259EiJYYT','3729296FiIYob','config_missing'];a78_0x492d=function(){return _0x46b5a6;};return a78_0x492d();}const NUDGE_SUPPRESSED_CODES=new Set([a78_0xf0976(0x12a),a78_0xf0976(0x12c),a78_0xf0976(0x128),a78_0xf0976(0x135),a78_0xf0976(0x11e),a78_0xf0976(0x12e),'validation_error','network_error']),defaultWriter=_0x91a13e=>{const _0x2687a8=a78_0xf0976;process[_0x2687a8(0x139)][_0x2687a8(0x12b)](_0x91a13e);};export function shouldNudgeForError(_0x509358,_0x14a4a9){const _0x593518=a78_0xf0976;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x14a4a9[_0x593518(0x133)]===_0x593518(0x11b)&&_0x14a4a9[_0x593518(0x125)]==='report')return![];if(_0x509358 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x593518(0x132)](_0x509358['code']);return!![];}export function printIssueReportNudgeForError(_0x226e60,_0x79535,_0xcf813b=defaultWriter){if(!shouldNudgeForError(_0x226e60,_0x79535))return;const _0x3b5b1d=buildSuggestedTitle(_0x226e60,_0x79535);_0xcf813b(formatNudge(_0x3b5b1d));}function buildSuggestedTitle(_0x2efc95,_0x23eeed){const _0xa495bc=a78_0xf0976,_0x15571c=_0x2efc95 instanceof Error?_0x2efc95['message']:String(_0x2efc95),_0x306092=_0x15571c['replace'](/[\r\n]+/g,'\x20')[_0xa495bc(0x131)](/\s+/g,'\x20')[_0xa495bc(0x12f)]()['slice'](0x0,0x78)[_0xa495bc(0x131)](/"/g,'\x5c\x22'),_0x3dfdd0=CLI_BIN_NAME+'\x20'+_0x23eeed[_0xa495bc(0x133)]+'\x20'+_0x23eeed[_0xa495bc(0x125)];return _0x306092[_0xa495bc(0x120)]>0x0?_0x3dfdd0+':\x20'+_0x306092:_0x3dfdd0;}function formatNudge(_0x1ebd39){const _0x557804=a78_0xf0976;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x557804(0x134),'\x20\x20'+CLI_BIN_NAME+_0x557804(0x129),'\x20\x20\x20\x20--title\x20\x22'+_0x1ebd39+_0x557804(0x130),_0x557804(0x121),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','\x20\x20Set\x20'+NUDGE_OPT_OUT_ENV+_0x557804(0x137),'']['join']('\x0a');}
1
+ const a80_0x82ec30=a80_0x6b04;function a80_0x6b04(_0x394840,_0x3126f1){_0x394840=_0x394840-0x141;const _0x2d8b14=a80_0x2d8b();let _0x6b04ca=_0x2d8b14[_0x394840];return _0x6b04ca;}(function(_0x264830,_0x300655){const _0x2473e8=a80_0x6b04,_0x49ffa9=_0x264830();while(!![]){try{const _0x57b488=-parseInt(_0x2473e8(0x159))/0x1+-parseInt(_0x2473e8(0x148))/0x2*(-parseInt(_0x2473e8(0x15d))/0x3)+-parseInt(_0x2473e8(0x14b))/0x4+-parseInt(_0x2473e8(0x145))/0x5+-parseInt(_0x2473e8(0x155))/0x6*(-parseInt(_0x2473e8(0x152))/0x7)+-parseInt(_0x2473e8(0x142))/0x8*(parseInt(_0x2473e8(0x146))/0x9)+-parseInt(_0x2473e8(0x153))/0xa*(-parseInt(_0x2473e8(0x147))/0xb);if(_0x57b488===_0x300655)break;else _0x49ffa9['push'](_0x49ffa9['shift']());}catch(_0x32438f){_0x49ffa9['push'](_0x49ffa9['shift']());}}}(a80_0x2d8b,0x91f0e));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV='RABETBASE_DISABLE_ISSUE_NUDGE';function a80_0x2d8b(){const _0x9bc605=['\x20\x20\x20\x20--title\x20\x22','auth_required','code','unknown_command','service','63nayPAA','10wQRXtb','not_in_project','789546wYgmvu','\x20\x20Set\x20','write','\x20bug?\x20Help\x20us\x20fix\x20it:','713489yAtcAy','flag_missing','trim','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','18pCylkj','slice','length','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','issue','\x20issue\x20report\x20\x5c','24PChlwi','join','validation_error','4727860TfbNKa','354492XzGVhg','13345970lVneYL','59116wCHDRe','replace','message','799752tEbbum','command'];a80_0x2d8b=function(){return _0x9bc605;};return a80_0x2d8b();}const NUDGE_SUPPRESSED_CODES=new Set(['cancelled',a80_0x82ec30(0x14e),'config_missing',a80_0x82ec30(0x154),a80_0x82ec30(0x150),a80_0x82ec30(0x15a),a80_0x82ec30(0x144),'network_error']),defaultWriter=_0x49b707=>{const _0xc62eb6=a80_0x82ec30;process['stderr'][_0xc62eb6(0x157)](_0x49b707);};export function shouldNudgeForError(_0x2bc44e,_0x3be0ec){const _0x65f72b=a80_0x82ec30;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x3be0ec['service']===_0x65f72b(0x161)&&_0x3be0ec[_0x65f72b(0x14c)]==='report')return![];if(_0x2bc44e instanceof CliError)return!NUDGE_SUPPRESSED_CODES['has'](_0x2bc44e[_0x65f72b(0x14f)]);return!![];}export function printIssueReportNudgeForError(_0x4432c3,_0x3e3b3f,_0x14c336=defaultWriter){if(!shouldNudgeForError(_0x4432c3,_0x3e3b3f))return;const _0x47aead=buildSuggestedTitle(_0x4432c3,_0x3e3b3f);_0x14c336(formatNudge(_0x47aead));}function buildSuggestedTitle(_0x22473f,_0x150522){const _0x56f610=a80_0x82ec30,_0x8b7c42=_0x22473f instanceof Error?_0x22473f[_0x56f610(0x14a)]:String(_0x22473f),_0x3bb065=_0x8b7c42['replace'](/[\r\n]+/g,'\x20')[_0x56f610(0x149)](/\s+/g,'\x20')[_0x56f610(0x15b)]()[_0x56f610(0x15e)](0x0,0x78)[_0x56f610(0x149)](/"/g,'\x5c\x22'),_0x10702e=CLI_BIN_NAME+'\x20'+_0x150522[_0x56f610(0x151)]+'\x20'+_0x150522[_0x56f610(0x14c)];return _0x3bb065[_0x56f610(0x15f)]>0x0?_0x10702e+':\x20'+_0x3bb065:_0x10702e;}function formatNudge(_0x3952df){const _0x1db5a2=a80_0x82ec30;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x1db5a2(0x158),'\x20\x20'+CLI_BIN_NAME+_0x1db5a2(0x141),_0x1db5a2(0x14d)+_0x3952df+'\x22\x20\x5c',_0x1db5a2(0x160),_0x1db5a2(0x15c),_0x1db5a2(0x156)+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.',''][_0x1db5a2(0x143)]('\x0a');}
@@ -1 +1 @@
1
- const a79_0x42aaee=a79_0x1af0;function a79_0x5ac6(){const _0x3569ed=['Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','\x20bytes','issue.description','compress','originalBytes','file','issue.description_redaction_kinds','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','truncated\x20from\x20','descriptionFile:\x20','inline','redactionCount','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','truncated:\x20original\x20','descriptionFilePath','write','1032390MyKArR','trim','issue','3245604DMdgHl','sanitize','description-file','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','1TYlvDr','1523697sQnafg','redactionKinds','issue.description_redactions','Platform\x20issue\x20reported','cwd','description','descriptionSource','redactions:\x20','report','POST','8cFIdXR','descriptionSource:\x20','File\x20not\x20found:\x20','3935FnJUXk','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','Issue\x20description\x20file\x20is\x20empty:\x20','issue.title','77762yJAJKS','utf8','length','Issue\x20description\x20cannot\x20be\x20empty.','otel://','1912jBFULX','validation','truncated','title','apiError','\x20secret(s):\x20','issue.description_truncated','21812439NcVBLC','str','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','string','join','6475347IwhhGs','7TtjNnt','flagMissing','push','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'];a79_0x5ac6=function(){return _0x3569ed;};return a79_0x5ac6();}(function(_0x83642,_0x3e95ee){const _0x2fe951=a79_0x1af0,_0x5774d0=_0x83642();while(!![]){try{const _0x4815b9=parseInt(_0x2fe951(0x162))/0x1*(-parseInt(_0x2fe951(0x174))/0x2)+-parseInt(_0x2fe951(0x163))/0x3+parseInt(_0x2fe951(0x179))/0x4*(parseInt(_0x2fe951(0x170))/0x5)+parseInt(_0x2fe951(0x15d))/0x6*(-parseInt(_0x2fe951(0x186))/0x7)+-parseInt(_0x2fe951(0x16d))/0x8*(parseInt(_0x2fe951(0x185))/0x9)+-parseInt(_0x2fe951(0x15a))/0xa+parseInt(_0x2fe951(0x180))/0xb;if(_0x4815b9===_0x3e95ee)break;else _0x5774d0['push'](_0x5774d0['shift']());}catch(_0x54dfab){_0x5774d0['push'](_0x5774d0['shift']());}}}(a79_0x5ac6,0x6d8bb));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';function a79_0x1af0(_0x31a27c,_0x4eb266){_0x31a27c=_0x31a27c-0x150;const _0x5ac646=a79_0x5ac6();let _0x1af0fd=_0x5ac646[_0x31a27c];return _0x1af0fd;}import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a79_0x42aaee(0x15f);export const issueReport={'service':a79_0x42aaee(0x15c),'command':a79_0x42aaee(0x16b),'description':a79_0x42aaee(0x160),'risk':a79_0x42aaee(0x159),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a79_0x42aaee(0x18d),'flags':[{'name':a79_0x42aaee(0x17c),'type':a79_0x42aaee(0x183),'required':!![],'description':'One-line\x20issue\x20summary'},{'name':a79_0x42aaee(0x168),'type':a79_0x42aaee(0x183),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a79_0x42aaee(0x183),'description':a79_0x42aaee(0x189)}],async 'validate'(_0x4e3be0){const _0x556c1d=a79_0x42aaee,_0x27838c=_0x4e3be0[_0x556c1d(0x181)](_0x556c1d(0x17c))[_0x556c1d(0x15b)](),_0x14cb59=_0x4e3be0[_0x556c1d(0x181)](_0x556c1d(0x168))[_0x556c1d(0x15b)](),_0x40e654=_0x4e3be0['str'](DESCRIPTION_FILE_FLAG)[_0x556c1d(0x15b)]();if(!_0x27838c)throw CliErrors[_0x556c1d(0x187)](_0x556c1d(0x17c),_0x556c1d(0x18a));const _0x1002c9=_0x14cb59['length']>0x0,_0x5245e0=_0x40e654['length']>0x0;if(_0x1002c9===_0x5245e0)throw CliErrors[_0x556c1d(0x17a)](_0x556c1d(0x182),_0x556c1d(0x151));if(_0x5245e0){const _0x226a6a=resolve(process[_0x556c1d(0x167)](),_0x40e654);if(!existsSync(_0x226a6a))throw CliErrors['validation'](_0x556c1d(0x16f)+_0x226a6a);}},async 'dryRun'(_0x32c7f7){const _0x3a3e4e=a79_0x42aaee,_0x1e32dc=await prepareIssueReport(_0x32c7f7);return{'method':_0x3a3e4e(0x16c),'url':_0x3a3e4e(0x178)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1e32dc[_0x3a3e4e(0x17c)],'issue.description':_0x1e32dc[_0x3a3e4e(0x168)],'issue.description_original_bytes':_0x1e32dc[_0x3a3e4e(0x15e)][_0x3a3e4e(0x18e)],'issue.description_truncated':_0x1e32dc[_0x3a3e4e(0x15e)][_0x3a3e4e(0x17b)],'issue.description_redactions':_0x1e32dc['sanitize'][_0x3a3e4e(0x155)],'issue.description_redaction_kinds':_0x1e32dc[_0x3a3e4e(0x15e)][_0x3a3e4e(0x164)][_0x3a3e4e(0x184)](',')}},'description':[_0x3a3e4e(0x171),_0x3a3e4e(0x16e)+_0x1e32dc[_0x3a3e4e(0x169)],_0x1e32dc['descriptionFilePath']?_0x3a3e4e(0x153)+_0x1e32dc[_0x3a3e4e(0x158)]:null,_0x1e32dc[_0x3a3e4e(0x15e)][_0x3a3e4e(0x17b)]?_0x3a3e4e(0x157)+_0x1e32dc[_0x3a3e4e(0x15e)][_0x3a3e4e(0x18e)]+_0x3a3e4e(0x18b):null,_0x1e32dc[_0x3a3e4e(0x15e)][_0x3a3e4e(0x155)]>0x0?_0x3a3e4e(0x16a)+_0x1e32dc[_0x3a3e4e(0x15e)][_0x3a3e4e(0x155)]+'\x20('+_0x1e32dc[_0x3a3e4e(0x15e)][_0x3a3e4e(0x164)]['join'](',\x20')+')':null]['filter'](Boolean)[_0x3a3e4e(0x184)]('\x0a')};},async 'execute'(_0x36201b){const _0x3aba47=a79_0x42aaee,_0x308664=await prepareIssueReport(_0x36201b);try{await sendPlatformIssueCollectLog({'title':_0x308664[_0x3aba47(0x17c)],'description':_0x308664['description'],'sanitize':{'originalBytes':_0x308664[_0x3aba47(0x15e)][_0x3aba47(0x18e)],'truncated':_0x308664[_0x3aba47(0x15e)][_0x3aba47(0x17b)],'redactionCount':_0x308664[_0x3aba47(0x15e)][_0x3aba47(0x155)],'redactionKinds':_0x308664[_0x3aba47(0x15e)][_0x3aba47(0x164)]}});}catch(_0x3fe5e0){throw CliErrors[_0x3aba47(0x17d)]('Failed\x20to\x20report\x20platform\x20issue:\x20'+(_0x3fe5e0 instanceof Error?_0x3fe5e0['message']:String(_0x3fe5e0)),_0x3aba47(0x156));}return{'ok':!![],'message':buildResultMessage(_0x308664[_0x3aba47(0x15e)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x3aba47(0x173),_0x3aba47(0x18c),'issue.description_original_bytes',_0x3aba47(0x17f),_0x3aba47(0x165),_0x3aba47(0x150)],'issue':{'title':_0x308664[_0x3aba47(0x17c)],'descriptionLength':_0x308664[_0x3aba47(0x168)]['length'],'descriptionSource':_0x308664[_0x3aba47(0x169)],..._0x308664[_0x3aba47(0x158)]?{'descriptionFile':_0x308664['descriptionFilePath']}:{},'sanitize':{'originalBytes':_0x308664['sanitize'][_0x3aba47(0x18e)],'truncated':_0x308664[_0x3aba47(0x15e)][_0x3aba47(0x17b)],'redactions':_0x308664['sanitize'][_0x3aba47(0x155)],'redactionKinds':_0x308664[_0x3aba47(0x15e)][_0x3aba47(0x164)]}}}};}};function buildResultMessage(_0x13392d){const _0x22c64b=a79_0x42aaee,_0x1d1e54=[];return _0x13392d[_0x22c64b(0x17b)]&&_0x1d1e54[_0x22c64b(0x188)](_0x22c64b(0x152)+_0x13392d[_0x22c64b(0x18e)]+_0x22c64b(0x18b)),_0x13392d[_0x22c64b(0x155)]>0x0&&_0x1d1e54['push']('redacted\x20'+_0x13392d[_0x22c64b(0x155)]+_0x22c64b(0x17e)+_0x13392d[_0x22c64b(0x164)][_0x22c64b(0x184)](',\x20')),_0x1d1e54[_0x22c64b(0x176)]===0x0?_0x22c64b(0x166):'Platform\x20issue\x20reported\x20('+_0x1d1e54[_0x22c64b(0x184)](';\x20')+')';}async function prepareIssueReport(_0x6357b0){const _0x19e861=a79_0x42aaee,_0x1cbeb4=_0x6357b0[_0x19e861(0x181)](_0x19e861(0x17c))[_0x19e861(0x15b)](),_0x40e46d=_0x6357b0[_0x19e861(0x181)](_0x19e861(0x168)),_0x46a720=_0x6357b0[_0x19e861(0x181)](DESCRIPTION_FILE_FLAG)[_0x19e861(0x15b)]();if(!_0x46a720){const _0x220304=_0x40e46d;if(!_0x220304['trim']())throw CliErrors[_0x19e861(0x17a)](_0x19e861(0x177),'Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');const _0x36d72d=sanitizeIssueDescription(_0x220304);return{'title':_0x1cbeb4,'description':_0x36d72d[_0x19e861(0x168)],'descriptionSource':_0x19e861(0x154),'sanitize':_0x36d72d};}const _0x546708=resolve(process[_0x19e861(0x167)](),_0x46a720),_0xc4d98b=await readFile(_0x546708,_0x19e861(0x175));if(!_0xc4d98b[_0x19e861(0x15b)]())throw CliErrors[_0x19e861(0x17a)](_0x19e861(0x172)+_0x546708,_0x19e861(0x161));const _0x912846=sanitizeIssueDescription(_0xc4d98b);return{'title':_0x1cbeb4,'description':_0x912846['description'],'descriptionSource':_0x19e861(0x18f),'descriptionFilePath':_0x546708,'sanitize':_0x912846};}
1
+ function a81_0x288f(_0x159adf,_0x650ff8){_0x159adf=_0x159adf-0xc5;const _0x51a397=a81_0x51a3();let _0x288f00=_0x51a397[_0x159adf];return _0x288f00;}const a81_0x4989ee=a81_0x288f;(function(_0x26a797,_0x4560f8){const _0x36aabd=a81_0x288f,_0xbc0104=_0x26a797();while(!![]){try{const _0x301276=parseInt(_0x36aabd(0xd8))/0x1*(parseInt(_0x36aabd(0xc9))/0x2)+parseInt(_0x36aabd(0xd9))/0x3+parseInt(_0x36aabd(0xe1))/0x4+parseInt(_0x36aabd(0xcb))/0x5+-parseInt(_0x36aabd(0xf2))/0x6+-parseInt(_0x36aabd(0xd7))/0x7*(-parseInt(_0x36aabd(0xc5))/0x8)+-parseInt(_0x36aabd(0xdf))/0x9;if(_0x301276===_0x4560f8)break;else _0xbc0104['push'](_0xbc0104['shift']());}catch(_0x4243df){_0xbc0104['push'](_0xbc0104['shift']());}}}(a81_0x51a3,0xb4b18));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_0x4989ee(0xdd);export const issueReport={'service':a81_0x4989ee(0xcd),'command':a81_0x4989ee(0x102),'description':a81_0x4989ee(0xd4),'risk':a81_0x4989ee(0xfd),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a81_0x4989ee(0xc8),'flags':[{'name':a81_0x4989ee(0xd3),'type':a81_0x4989ee(0x100),'required':!![],'description':a81_0x4989ee(0xda)},{'name':a81_0x4989ee(0xc6),'type':a81_0x4989ee(0x100),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x4989ee(0x100),'description':a81_0x4989ee(0xef)}],async 'validate'(_0x30ae26){const _0x5702b4=a81_0x4989ee,_0x547445=_0x30ae26['str'](_0x5702b4(0xd3))['trim'](),_0x4b6608=_0x30ae26[_0x5702b4(0xff)]('description')[_0x5702b4(0xe6)](),_0x44683f=_0x30ae26[_0x5702b4(0xff)](DESCRIPTION_FILE_FLAG)[_0x5702b4(0xe6)]();if(!_0x547445)throw CliErrors[_0x5702b4(0xee)](_0x5702b4(0xd3),_0x5702b4(0xd0));const _0x2861c6=_0x4b6608['length']>0x0,_0x57841d=_0x44683f[_0x5702b4(0xf3)]>0x0;if(_0x2861c6===_0x57841d)throw CliErrors['validation'](_0x5702b4(0xc7),_0x5702b4(0xde));if(_0x57841d){const _0x59b4cd=resolve(process[_0x5702b4(0xed)](),_0x44683f);if(!existsSync(_0x59b4cd))throw CliErrors[_0x5702b4(0xce)](_0x5702b4(0xec)+_0x59b4cd);}},async 'dryRun'(_0x50e8f1){const _0x3d0a24=a81_0x4989ee,_0x4a0cd0=await prepareIssueReport(_0x50e8f1);return{'method':_0x3d0a24(0xfa),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4a0cd0[_0x3d0a24(0xd3)],'issue.description':_0x4a0cd0[_0x3d0a24(0xc6)],'issue.description_original_bytes':_0x4a0cd0['sanitize'][_0x3d0a24(0xdc)],'issue.description_truncated':_0x4a0cd0[_0x3d0a24(0xe7)][_0x3d0a24(0xfe)],'issue.description_redactions':_0x4a0cd0[_0x3d0a24(0xe7)][_0x3d0a24(0xe5)],'issue.description_redaction_kinds':_0x4a0cd0['sanitize'][_0x3d0a24(0xea)][_0x3d0a24(0xe4)](',')}},'description':[_0x3d0a24(0xf1),_0x3d0a24(0xf5)+_0x4a0cd0[_0x3d0a24(0xdb)],_0x4a0cd0['descriptionFilePath']?_0x3d0a24(0xeb)+_0x4a0cd0[_0x3d0a24(0x101)]:null,_0x4a0cd0[_0x3d0a24(0xe7)][_0x3d0a24(0xfe)]?_0x3d0a24(0xf4)+_0x4a0cd0[_0x3d0a24(0xe7)][_0x3d0a24(0xdc)]+'\x20bytes':null,_0x4a0cd0['sanitize'][_0x3d0a24(0xe5)]>0x0?_0x3d0a24(0xd2)+_0x4a0cd0['sanitize'][_0x3d0a24(0xe5)]+'\x20('+_0x4a0cd0[_0x3d0a24(0xe7)][_0x3d0a24(0xea)][_0x3d0a24(0xe4)](',\x20')+')':null]['filter'](Boolean)[_0x3d0a24(0xe4)]('\x0a')};},async 'execute'(_0x477da4){const _0x3f5ab8=a81_0x4989ee,_0x29b4cb=await prepareIssueReport(_0x477da4);try{await sendPlatformIssueCollectLog({'title':_0x29b4cb[_0x3f5ab8(0xd3)],'description':_0x29b4cb[_0x3f5ab8(0xc6)],'sanitize':{'originalBytes':_0x29b4cb[_0x3f5ab8(0xe7)]['originalBytes'],'truncated':_0x29b4cb[_0x3f5ab8(0xe7)][_0x3f5ab8(0xfe)],'redactionCount':_0x29b4cb[_0x3f5ab8(0xe7)][_0x3f5ab8(0xe5)],'redactionKinds':_0x29b4cb[_0x3f5ab8(0xe7)]['redactionKinds']}});}catch(_0x3bc670){throw CliErrors[_0x3f5ab8(0xcc)](_0x3f5ab8(0xe0)+(_0x3bc670 instanceof Error?_0x3bc670[_0x3f5ab8(0xd1)]:String(_0x3bc670)),_0x3f5ab8(0xf9));}return{'ok':!![],'message':buildResultMessage(_0x29b4cb['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x3f5ab8(0xd6),_0x3f5ab8(0xf8),'issue.description_original_bytes',_0x3f5ab8(0xfc),_0x3f5ab8(0xd5),_0x3f5ab8(0xf7)],'issue':{'title':_0x29b4cb[_0x3f5ab8(0xd3)],'descriptionLength':_0x29b4cb['description'][_0x3f5ab8(0xf3)],'descriptionSource':_0x29b4cb[_0x3f5ab8(0xdb)],..._0x29b4cb[_0x3f5ab8(0x101)]?{'descriptionFile':_0x29b4cb[_0x3f5ab8(0x101)]}:{},'sanitize':{'originalBytes':_0x29b4cb[_0x3f5ab8(0xe7)][_0x3f5ab8(0xdc)],'truncated':_0x29b4cb[_0x3f5ab8(0xe7)][_0x3f5ab8(0xfe)],'redactions':_0x29b4cb[_0x3f5ab8(0xe7)][_0x3f5ab8(0xe5)],'redactionKinds':_0x29b4cb[_0x3f5ab8(0xe7)]['redactionKinds']}}}};}};function a81_0x51a3(){const _0x2711d4=['string','descriptionFilePath','report','8tDoKZU','description','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','compress','2UcWboF','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','1058385SDfwmS','apiError','issue','validation','Platform\x20issue\x20reported\x20(','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','message','redactions:\x20','title','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','issue.description_redactions','issue.title','3717287jNCBgr','768319UGwywu','1894464dvyEGl','One-line\x20issue\x20summary','descriptionSource','originalBytes','description-file','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','10398465imejkl','Failed\x20to\x20report\x20platform\x20issue:\x20','2469496hUuGdr','\x20secret(s):\x20','Issue\x20description\x20file\x20is\x20empty:\x20','join','redactionCount','trim','sanitize','redacted\x20','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','redactionKinds','descriptionFile:\x20','File\x20not\x20found:\x20','cwd','flagMissing','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','file','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','5186364yXnnCQ','length','truncated:\x20original\x20','descriptionSource:\x20','Issue\x20description\x20cannot\x20be\x20empty.','issue.description_redaction_kinds','issue.description','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','POST','push','issue.description_truncated','write','truncated','str'];a81_0x51a3=function(){return _0x2711d4;};return a81_0x51a3();}function buildResultMessage(_0xddb81c){const _0x1c0250=a81_0x4989ee,_0x1039a7=[];return _0xddb81c[_0x1c0250(0xfe)]&&_0x1039a7['push']('truncated\x20from\x20'+_0xddb81c[_0x1c0250(0xdc)]+'\x20bytes'),_0xddb81c[_0x1c0250(0xe5)]>0x0&&_0x1039a7[_0x1c0250(0xfb)](_0x1c0250(0xe8)+_0xddb81c[_0x1c0250(0xe5)]+_0x1c0250(0xe2)+_0xddb81c[_0x1c0250(0xea)][_0x1c0250(0xe4)](',\x20')),_0x1039a7['length']===0x0?'Platform\x20issue\x20reported':_0x1c0250(0xcf)+_0x1039a7['join'](';\x20')+')';}async function prepareIssueReport(_0x599fda){const _0x558748=a81_0x4989ee,_0x2f768c=_0x599fda['str']('title')[_0x558748(0xe6)](),_0xeaf0fd=_0x599fda[_0x558748(0xff)](_0x558748(0xc6)),_0xac4ec2=_0x599fda[_0x558748(0xff)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0xac4ec2){const _0x4aed6b=_0xeaf0fd;if(!_0x4aed6b[_0x558748(0xe6)]())throw CliErrors[_0x558748(0xce)](_0x558748(0xf6),_0x558748(0xe9));const _0x4fefe3=sanitizeIssueDescription(_0x4aed6b);return{'title':_0x2f768c,'description':_0x4fefe3[_0x558748(0xc6)],'descriptionSource':'inline','sanitize':_0x4fefe3};}const _0x149f0c=resolve(process[_0x558748(0xed)](),_0xac4ec2),_0x21b1eb=await readFile(_0x149f0c,'utf8');if(!_0x21b1eb['trim']())throw CliErrors['validation'](_0x558748(0xe3)+_0x149f0c,_0x558748(0xca));const _0x46baab=sanitizeIssueDescription(_0x21b1eb);return{'title':_0x2f768c,'description':_0x46baab[_0x558748(0xc6)],'descriptionSource':_0x558748(0xf0),'descriptionFilePath':_0x149f0c,'sanitize':_0x46baab};}