@lovrabet/rabetbase-cli 2.1.14-beta.3 → 2.2.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -0
  60. package/lib/commands/dataset/relation-delete.js +1 -0
  61. package/lib/commands/dataset/relation-shared.js +1 -0
  62. package/lib/commands/dataset/relation-update.js +1 -0
  63. package/lib/commands/dataset/relations.js +1 -0
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/shared/compare-table.js +1 -1
  87. package/lib/commands/menu/shared/index.js +1 -1
  88. package/lib/commands/menu/shared/inquirer.js +1 -1
  89. package/lib/commands/menu/shared/local-pages.js +1 -1
  90. package/lib/commands/menu/shared/logic.js +1 -1
  91. package/lib/commands/menu/shared/service.js +1 -1
  92. package/lib/commands/menu/shared/sync-core.js +1 -1
  93. package/lib/commands/menu/shared/update-core.js +1 -1
  94. package/lib/commands/menu/shared/valid-url.js +1 -1
  95. package/lib/commands/menu/sync.js +1 -1
  96. package/lib/commands/menu/update.js +1 -1
  97. package/lib/commands/page/generate-start.js +1 -1
  98. package/lib/commands/page/generate-status.js +1 -1
  99. package/lib/commands/page/index.js +1 -1
  100. package/lib/commands/page/pull.js +1 -1
  101. package/lib/commands/page/push.js +1 -1
  102. package/lib/commands/page/relation-audit.js +1 -0
  103. package/lib/commands/page/shared.js +1 -1
  104. package/lib/commands/page/standard-page-status.js +1 -1
  105. package/lib/commands/page/sync.js +1 -1
  106. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  107. package/lib/commands/project/create/format-elapsed.js +1 -1
  108. package/lib/commands/project/create/main.js +1 -1
  109. package/lib/commands/project/create/non-interactive.js +1 -1
  110. package/lib/commands/project/create/project-template-path.js +1 -1
  111. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  112. package/lib/commands/project/create/use-format-code.js +1 -1
  113. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  114. package/lib/commands/project/index.js +1 -1
  115. package/lib/commands/project/init.js +1 -1
  116. package/lib/commands/project/upgrade.js +1 -1
  117. package/lib/commands/registry.js +1 -1
  118. package/lib/commands/run/index.js +1 -1
  119. package/lib/commands/schema.js +1 -1
  120. package/lib/commands/skill/index.js +1 -1
  121. package/lib/commands/sql/create.js +1 -1
  122. package/lib/commands/sql/delete.js +1 -1
  123. package/lib/commands/sql/detail.js +1 -1
  124. package/lib/commands/sql/exec.js +1 -1
  125. package/lib/commands/sql/index.js +1 -1
  126. package/lib/commands/sql/list.js +1 -1
  127. package/lib/commands/sql/pull.js +1 -1
  128. package/lib/commands/sql/push.js +1 -1
  129. package/lib/commands/sql/save.js +1 -1
  130. package/lib/commands/sql/shared.js +1 -1
  131. package/lib/commands/sql/status.js +1 -1
  132. package/lib/commands/sql/validate.js +1 -1
  133. package/lib/config/schema.js +1 -1
  134. package/lib/constant/cdn.js +1 -1
  135. package/lib/constant/cli.js +1 -1
  136. package/lib/constant/defaults.js +1 -1
  137. package/lib/constant/domain.js +1 -1
  138. package/lib/constant/env.js +1 -1
  139. package/lib/constant/output.js +1 -1
  140. package/lib/constant/paths.js +1 -1
  141. package/lib/constant/risk.js +1 -1
  142. package/lib/context.js +1 -1
  143. package/lib/core/alias-resolver.js +1 -1
  144. package/lib/core/api-client.js +1 -1
  145. package/lib/core/bff/config.js +1 -1
  146. package/lib/core/bff/file-system.js +1 -1
  147. package/lib/core/bff/hash.js +1 -1
  148. package/lib/core/bff/lock.js +1 -1
  149. package/lib/core/bff/utils.js +1 -1
  150. package/lib/core/db-resolver.js +1 -1
  151. package/lib/core/page/file-system.js +1 -1
  152. package/lib/core/page/hash.js +1 -1
  153. package/lib/core/page/lock.js +1 -1
  154. package/lib/core/sql-sync/config.js +1 -1
  155. package/lib/core/sql-sync/file-system.js +1 -1
  156. package/lib/core/sql-sync/hash.js +1 -1
  157. package/lib/core/sql-sync/lock.js +1 -1
  158. package/lib/core/sql-sync/utils.js +1 -1
  159. package/lib/core/sql-validator.js +1 -1
  160. package/lib/errors.js +1 -1
  161. package/lib/framework/build-all-flags.js +1 -1
  162. package/lib/framework/flags.js +1 -1
  163. package/lib/framework/help.js +1 -1
  164. package/lib/framework/index.js +1 -1
  165. package/lib/framework/output.js +1 -1
  166. package/lib/framework/response.js +1 -1
  167. package/lib/framework/runner-alias.js +1 -1
  168. package/lib/framework/runner.js +1 -1
  169. package/lib/framework/schema-export.js +1 -1
  170. package/lib/framework/types.js +1 -1
  171. package/lib/generated/build-info.js +1 -1
  172. package/lib/help.js +1 -1
  173. package/lib/skills/main.js +1 -1
  174. package/lib/skills/npx-skills-add.js +1 -1
  175. package/lib/telemetry/cli-command-trace.js +1 -1
  176. package/lib/telemetry/cli-help-trace.js +1 -1
  177. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  178. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  179. package/lib/telemetry/send-cli-trace-log.js +1 -1
  180. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  181. package/lib/utils/ai_config.js +1 -1
  182. package/lib/utils/apply-jq-filter.js +1 -1
  183. package/lib/utils/cdn-config.js +1 -1
  184. package/lib/utils/check-sdk-version.js +1 -1
  185. package/lib/utils/cli-version-check.js +1 -1
  186. package/lib/utils/cli-version-policy.js +1 -1
  187. package/lib/utils/config.js +1 -1
  188. package/lib/utils/copy-directory.js +1 -1
  189. package/lib/utils/entity-with-id.js +1 -1
  190. package/lib/utils/file-utils.js +1 -1
  191. package/lib/utils/guides-cdn.js +1 -1
  192. package/lib/utils/http-client.js +1 -1
  193. package/lib/utils/is-non-interactive.js +1 -1
  194. package/lib/utils/logger.js +1 -1
  195. package/lib/utils/params.js +1 -1
  196. package/lib/utils/platform.js +1 -1
  197. package/lib/utils/rules-cdn.js +1 -1
  198. package/lib/utils/sleep.js +1 -1
  199. package/lib/utils/template-replacer.js +1 -1
  200. package/lib/utils/update-notice.js +1 -0
  201. package/lib/utils/version.js +1 -1
  202. package/lib/utils/with-active-cookie.js +1 -1
  203. package/lib/utils/write-cli-side-channel.js +1 -1
  204. package/package.json +1 -1
  205. package/lib/commands/dataset/link-create.js +0 -1
  206. package/lib/commands/dataset/link-delete.js +0 -1
  207. package/lib/commands/dataset/link-shared.js +0 -1
  208. package/lib/commands/dataset/link-update.js +0 -1
  209. package/lib/commands/dataset/links.js +0 -1
@@ -1 +1 @@
1
- const a66_0x2810f3=a66_0x1df6;(function(_0x42d268,_0x4693e0){const _0x369ea5=a66_0x1df6,_0x256e9a=_0x42d268();while(!![]){try{const _0xe5e925=-parseInt(_0x369ea5(0xd2))/0x1+parseInt(_0x369ea5(0xd6))/0x2+parseInt(_0x369ea5(0xda))/0x3*(-parseInt(_0x369ea5(0xce))/0x4)+parseInt(_0x369ea5(0xd1))/0x5*(parseInt(_0x369ea5(0xd4))/0x6)+parseInt(_0x369ea5(0xca))/0x7*(parseInt(_0x369ea5(0xd3))/0x8)+-parseInt(_0x369ea5(0xd8))/0x9*(parseInt(_0x369ea5(0xcd))/0xa)+parseInt(_0x369ea5(0xcb))/0xb;if(_0xe5e925===_0x4693e0)break;else _0x256e9a['push'](_0x256e9a['shift']());}catch(_0x535c4d){_0x256e9a['push'](_0x256e9a['shift']());}}}(a66_0x173f,0xcee09));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':a66_0x2810f3(0xd5),'description':'Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','risk':a66_0x2810f3(0xd7),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a66_0x2810f3(0xcc),'type':'string','required':!![],'description':'Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)'}],async 'execute'(_0x35c53b){const _0x4ef9de=a66_0x2810f3,_0x5dba5a=_0x35c53b[_0x4ef9de(0xd9)]('id'),_0x487f39=_0x35c53b['str']('plan'),_0x21aa9f=await getDbAnalysisStatus(_0x487f39),_0x1750aa=buildDbPageLinks(_0x35c53b[_0x4ef9de(0xd0)],_0x5dba5a);return{'ok':!![],'data':{'dbLinkId':_0x5dba5a,'planId':_0x487f39,'status':_0x21aa9f,..._0x1750aa?{'links':_0x1750aa}:{}},'message':_0x4ef9de(0xcf)+_0x487f39};}};function a66_0x1df6(_0x35b2a2,_0x8f04d3){_0x35b2a2=_0x35b2a2-0xca;const _0x173f5b=a66_0x173f();let _0x1df689=_0x173f5b[_0x35b2a2];return _0x1df689;}function a66_0x173f(){const _0x17ddce=['4351134xoktpi','analyze-status','800684xDwHrM','read','45aXRQBh','num','3TJOgoN','90433VGidwS','108735VmRYTM','plan','55170eqzPzL','2358044IyWYWk','Analysis\x20status\x20for\x20','appCode','10XKCXpo','1442579DQFhav','648ovYiUS'];a66_0x173f=function(){return _0x17ddce;};return a66_0x173f();}
1
+ const a66_0x2db0c1=a66_0x1076;(function(_0x43c41b,_0x5f3246){const _0x32b18e=a66_0x1076,_0x5e58b9=_0x43c41b();while(!![]){try{const _0x2b6161=-parseInt(_0x32b18e(0x151))/0x1+parseInt(_0x32b18e(0x14b))/0x2+-parseInt(_0x32b18e(0x152))/0x3*(parseInt(_0x32b18e(0x150))/0x4)+parseInt(_0x32b18e(0x153))/0x5+parseInt(_0x32b18e(0x158))/0x6+-parseInt(_0x32b18e(0x154))/0x7+parseInt(_0x32b18e(0x156))/0x8;if(_0x2b6161===_0x5f3246)break;else _0x5e58b9['push'](_0x5e58b9['shift']());}catch(_0x11970c){_0x5e58b9['push'](_0x5e58b9['shift']());}}}(a66_0x4460,0xe1b8d));import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';function a66_0x4460(){const _0x18c478=['read','1049890PIabWf','str','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','plan','appCode','28HsgyvM','1701490awQiao','9141vctAso','1549230LlZtlG','4328128FrQmrQ','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','13911968UneDRE','string','4151358nKTXNE','analyze-status'];a66_0x4460=function(){return _0x18c478;};return a66_0x4460();}function a66_0x1076(_0x5c2998,_0x201b43){_0x5c2998=_0x5c2998-0x149;const _0x4460a5=a66_0x4460();let _0x107673=_0x4460a5[_0x5c2998];return _0x107673;}export const dbAnalyzeStatus={'service':'db','command':a66_0x2db0c1(0x149),'description':a66_0x2db0c1(0x14d),'risk':a66_0x2db0c1(0x14a),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a66_0x2db0c1(0x14e),'type':a66_0x2db0c1(0x157),'required':!![],'description':a66_0x2db0c1(0x155)}],async 'execute'(_0x56ceaf){const _0x4cb790=a66_0x2db0c1,_0x397bab=_0x56ceaf['num']('id'),_0x3526bd=_0x56ceaf[_0x4cb790(0x14c)](_0x4cb790(0x14e)),_0x5e4ff=await getDbAnalysisStatus(_0x3526bd),_0x247df8=buildDbPageLinks(_0x56ceaf[_0x4cb790(0x14f)],_0x397bab);return{'ok':!![],'data':{'dbLinkId':_0x397bab,'planId':_0x3526bd,'status':_0x5e4ff,..._0x247df8?{'links':_0x247df8}:{}},'message':'Analysis\x20status\x20for\x20'+_0x3526bd};}};
@@ -1 +1 @@
1
- const a67_0x5be20d=a67_0x1335;(function(_0x46c567,_0x3ae264){const _0x444b7e=a67_0x1335,_0x35dd10=_0x46c567();while(!![]){try{const _0x138bf3=parseInt(_0x444b7e(0x1a0))/0x1+-parseInt(_0x444b7e(0x1ac))/0x2*(parseInt(_0x444b7e(0x190))/0x3)+parseInt(_0x444b7e(0x1b7))/0x4*(-parseInt(_0x444b7e(0x1b1))/0x5)+parseInt(_0x444b7e(0x1b5))/0x6*(-parseInt(_0x444b7e(0x1b6))/0x7)+-parseInt(_0x444b7e(0x1a2))/0x8*(-parseInt(_0x444b7e(0x1a3))/0x9)+parseInt(_0x444b7e(0x198))/0xa+parseInt(_0x444b7e(0x19a))/0xb*(parseInt(_0x444b7e(0x18b))/0xc);if(_0x138bf3===_0x3ae264)break;else _0x35dd10['push'](_0x35dd10['shift']());}catch(_0x3df205){_0x35dd10['push'](_0x35dd10['shift']());}}}(a67_0x5c09,0xde368));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';function a67_0x1335(_0x380a4f,_0x3d4552){_0x380a4f=_0x380a4f-0x18a;const _0x5c0935=a67_0x5c09();let _0x13357d=_0x5c0935[_0x380a4f];return _0x13357d;}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':a67_0x5be20d(0x196),'description':a67_0x5be20d(0x18f),'risk':'write','flags':[APPCODE_FLAG_OPTIONAL,{'name':a67_0x5be20d(0x1b0),'type':'string','required':!![],'description':a67_0x5be20d(0x1af)},DB_TYPE_FLAG,{'name':a67_0x5be20d(0x1a1),'type':a67_0x5be20d(0x1b2),'description':a67_0x5be20d(0x194),'default':a67_0x5be20d(0x195)},{'name':a67_0x5be20d(0x18e),'type':a67_0x5be20d(0x1b2),'required':!![],'description':a67_0x5be20d(0x1aa)},{'name':a67_0x5be20d(0x192),'type':'string','required':!![],'description':a67_0x5be20d(0x1b3)},{'name':a67_0x5be20d(0x193),'type':a67_0x5be20d(0x1b2),'required':!![],'description':'Database\x20password'},{'name':a67_0x5be20d(0x199),'type':'string','description':'Extra\x20JDBC-style\x20connection\x20parameters\x20string'},{'name':'dbdesc','type':a67_0x5be20d(0x1b2),'description':a67_0x5be20d(0x19b)},{'name':a67_0x5be20d(0x18d),'type':a67_0x5be20d(0x1a4),'description':a67_0x5be20d(0x1a8),'default':![]}],async 'validate'(_0x325445){const _0x3b182e=a67_0x5be20d,_0x5a54ad=_0x325445[_0x3b182e(0x1ae)]('dburl')[_0x3b182e(0x19e)]();if(!validateDbUrl(_0x5a54ad))throw CliErrors['validation']('Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22'+_0x5a54ad+'\x22',_0x3b182e(0x1ad));},async 'dryRun'(_0x469a49){const _0x338ed6=a67_0x5be20d,_0x2a6e87={'appCode':_0x469a49['appCode'],'dbName':_0x469a49[_0x338ed6(0x1ae)]('dbname'),'dbType':_0x469a49[_0x338ed6(0x1ae)](_0x338ed6(0x19d)),'dbVersion':_0x469a49[_0x338ed6(0x1ae)](_0x338ed6(0x1a1))||'8.0','dbUrl':_0x469a49[_0x338ed6(0x1ae)]('dburl')[_0x338ed6(0x19e)](),'username':_0x469a49[_0x338ed6(0x1ae)]('username'),'password':_0x338ed6(0x197),..._0x469a49[_0x338ed6(0x1ae)](_0x338ed6(0x199))?{'dbParam':_0x469a49['str'](_0x338ed6(0x199))}:{},..._0x469a49[_0x338ed6(0x1ae)](_0x338ed6(0x18a))?{'dbDesc':_0x469a49[_0x338ed6(0x1ae)](_0x338ed6(0x18a))}:{}};return{'method':_0x338ed6(0x1a9),'url':_0x338ed6(0x18c),'body':_0x2a6e87,'description':['Create\x20dblink',_0x469a49[_0x338ed6(0x191)](_0x338ed6(0x18d))?'Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id':_0x338ed6(0x1ab)][_0x338ed6(0x1b4)]('\x0a')};},async 'execute'(_0x120381){const _0x3f424a=a67_0x5be20d,_0x427c25={'appCode':_0x120381[_0x3f424a(0x1a7)],'dbName':_0x120381[_0x3f424a(0x1ae)](_0x3f424a(0x1b0)),'dbType':_0x120381[_0x3f424a(0x1ae)](_0x3f424a(0x19d)),'dbVersion':_0x120381['str'](_0x3f424a(0x1a1))||'8.0','dbUrl':_0x120381[_0x3f424a(0x1ae)]('dburl')[_0x3f424a(0x19e)](),'username':_0x120381[_0x3f424a(0x1ae)](_0x3f424a(0x192)),'password':_0x120381[_0x3f424a(0x1ae)](_0x3f424a(0x193)),..._0x120381[_0x3f424a(0x1ae)](_0x3f424a(0x199))?{'dbParam':_0x120381[_0x3f424a(0x1ae)]('dbparam')}:{},..._0x120381[_0x3f424a(0x1ae)]('dbdesc')?{'dbDesc':_0x120381[_0x3f424a(0x1ae)]('dbdesc')}:{}},{id:_0x2ba6ca,entity:_0x4a0651}=normalizeEntityWithIdResponse(await createDbLink(_0x427c25));if(!_0x2ba6ca)return{'ok':![],'message':_0x3f424a(0x19c),'data':sanitizeDbLinkForOutput(_0x4a0651)};let _0x37273b,_0x3fb6d0;if(_0x120381[_0x3f424a(0x191)](_0x3f424a(0x18d)))try{_0x37273b=await startDbAnalysis(_0x2ba6ca);}catch(_0x4650f9){_0x3fb6d0=_0x4650f9 instanceof Error?_0x4650f9[_0x3f424a(0x1a5)]:String(_0x4650f9);}const _0x30ede3=buildDbPageLinks(_0x120381[_0x3f424a(0x1a7)],_0x2ba6ca),_0x28c6aa={'connection':sanitizeDbLinkForOutput(_0x4a0651),..._0x30ede3?{'links':{'databasePage':_0x30ede3[_0x3f424a(0x19f)]}}:{},..._0x37273b?{'analysisPlanId':_0x37273b}:{},..._0x3fb6d0?{'analysisStartWarning':_0x3fb6d0}:{}};let _0x38a116;return _0x120381[_0x3f424a(0x191)]('autostart')?_0x3fb6d0?_0x38a116=_0x3f424a(0x1a6)+_0x2ba6ca+';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning':_0x38a116='Created\x20db\x20link\x20'+_0x2ba6ca+'\x20and\x20started\x20analysis':_0x38a116='Created\x20db\x20link\x20'+_0x2ba6ca,{'ok':!![],'data':_0x28c6aa,'message':_0x38a116};}};function a67_0x5c09(){const _0x50433e=['3444070wCvtkJ','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','str','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','dbname','445lvviJI','string','Database\x20username','join','425250KnwKbU','133hHrzpX','20396UWvrDX','dbdesc','22683972GRLGMv','/smartapi/dblink/create','autostart','dburl','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','3WZmvxY','bool','username','password','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','8.0','create','[redacted]','5294900tJiPSM','dbparam','11AHZrfG','Human-readable\x20description','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','dbtype','trim','databasePage','1500390DZydik','dbversion','2049776RHZZii','18RAJUOr','boolean','message','Created\x20db\x20link\x20','appCode','After\x20create,\x20start\x20schema\x20analysis','POST','Host\x20and\x20port:\x20host:port','No\x20follow-up\x20analysis'];a67_0x5c09=function(){return _0x50433e;};return a67_0x5c09();}
1
+ const a67_0x111db1=a67_0x37f2;function a67_0x37f2(_0x58c036,_0x3d7377){_0x58c036=_0x58c036-0x82;const _0x179f75=a67_0x179f();let _0x37f282=_0x179f75[_0x58c036];return _0x37f282;}(function(_0x31f8f6,_0x576e2a){const _0x34313b=a67_0x37f2,_0x1b84c7=_0x31f8f6();while(!![]){try{const _0x223615=parseInt(_0x34313b(0xaf))/0x1*(parseInt(_0x34313b(0xb0))/0x2)+parseInt(_0x34313b(0x8d))/0x3+-parseInt(_0x34313b(0xab))/0x4*(parseInt(_0x34313b(0xa7))/0x5)+-parseInt(_0x34313b(0xa3))/0x6+-parseInt(_0x34313b(0x94))/0x7*(parseInt(_0x34313b(0x8c))/0x8)+-parseInt(_0x34313b(0x99))/0x9*(parseInt(_0x34313b(0x96))/0xa)+parseInt(_0x34313b(0xa5))/0xb*(parseInt(_0x34313b(0x8e))/0xc);if(_0x223615===_0x576e2a)break;else _0x1b84c7['push'](_0x1b84c7['shift']());}catch(_0x2d36c5){_0x1b84c7['push'](_0x1b84c7['shift']());}}}(a67_0x179f,0x592c5));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a67_0x179f(){const _0x3a2389=['string','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','2213064lgQSGV','dbversion','11pDiWyG','dbparam','20zvEEMH','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','dbdesc','Database\x20password','231556xRxnmV','write','databasePage','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','159257ziulsM','2WhorEd','appCode','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','dbtype','dburl','join','POST','boolean','Host\x20and\x20port:\x20host:port','/smartapi/dblink/create','message','dbname','8mUpfbL','442761QUUboH','24594708WfauDM','\x20and\x20started\x20analysis','autostart','trim','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','bool','4668293kCfMqe','str','7238510hdmdah','username','Create\x20dblink','9TmkfMa','Created\x20db\x20link\x20','Database\x20username','Extra\x20JDBC-style\x20connection\x20parameters\x20string','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','Human-readable\x20description','8.0','password'];a67_0x179f=function(){return _0x3a2389;};return a67_0x179f();}import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':'create','description':a67_0x111db1(0x92),'risk':a67_0x111db1(0xac),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a67_0x111db1(0x8b),'type':'string','required':!![],'description':a67_0x111db1(0xae)},DB_TYPE_FLAG,{'name':a67_0x111db1(0xa4),'type':a67_0x111db1(0xa1),'description':'Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','default':a67_0x111db1(0x9f)},{'name':a67_0x111db1(0x84),'type':a67_0x111db1(0xa1),'required':!![],'description':a67_0x111db1(0x88)},{'name':a67_0x111db1(0x97),'type':'string','required':!![],'description':a67_0x111db1(0x9b)},{'name':a67_0x111db1(0xa0),'type':'string','required':!![],'description':a67_0x111db1(0xaa)},{'name':a67_0x111db1(0xa6),'type':a67_0x111db1(0xa1),'description':a67_0x111db1(0x9c)},{'name':a67_0x111db1(0xa9),'type':'string','description':a67_0x111db1(0x9e)},{'name':a67_0x111db1(0x90),'type':a67_0x111db1(0x87),'description':'After\x20create,\x20start\x20schema\x20analysis','default':![]}],async 'validate'(_0x4a9387){const _0x5b1aa4=a67_0x111db1,_0x3ca131=_0x4a9387[_0x5b1aa4(0x95)](_0x5b1aa4(0x84))[_0x5b1aa4(0x91)]();if(!validateDbUrl(_0x3ca131))throw CliErrors['validation'](_0x5b1aa4(0x9d)+_0x3ca131+'\x22',_0x5b1aa4(0xa2));},async 'dryRun'(_0x1b42a8){const _0x5624c4=a67_0x111db1,_0x2951cd={'appCode':_0x1b42a8['appCode'],'dbName':_0x1b42a8[_0x5624c4(0x95)](_0x5624c4(0x8b)),'dbType':_0x1b42a8['str']('dbtype'),'dbVersion':_0x1b42a8[_0x5624c4(0x95)](_0x5624c4(0xa4))||_0x5624c4(0x9f),'dbUrl':_0x1b42a8['str'](_0x5624c4(0x84))[_0x5624c4(0x91)](),'username':_0x1b42a8[_0x5624c4(0x95)](_0x5624c4(0x97)),'password':'[redacted]',..._0x1b42a8[_0x5624c4(0x95)]('dbparam')?{'dbParam':_0x1b42a8[_0x5624c4(0x95)]('dbparam')}:{},..._0x1b42a8[_0x5624c4(0x95)](_0x5624c4(0xa9))?{'dbDesc':_0x1b42a8['str'](_0x5624c4(0xa9))}:{}};return{'method':_0x5624c4(0x86),'url':_0x5624c4(0x89),'body':_0x2951cd,'description':[_0x5624c4(0x98),_0x1b42a8[_0x5624c4(0x93)](_0x5624c4(0x90))?_0x5624c4(0x82):'No\x20follow-up\x20analysis'][_0x5624c4(0x85)]('\x0a')};},async 'execute'(_0x34b4a3){const _0x10291e=a67_0x111db1,_0x2b9704={'appCode':_0x34b4a3[_0x10291e(0xb1)],'dbName':_0x34b4a3[_0x10291e(0x95)](_0x10291e(0x8b)),'dbType':_0x34b4a3[_0x10291e(0x95)](_0x10291e(0x83)),'dbVersion':_0x34b4a3[_0x10291e(0x95)](_0x10291e(0xa4))||_0x10291e(0x9f),'dbUrl':_0x34b4a3[_0x10291e(0x95)]('dburl')[_0x10291e(0x91)](),'username':_0x34b4a3[_0x10291e(0x95)](_0x10291e(0x97)),'password':_0x34b4a3[_0x10291e(0x95)](_0x10291e(0xa0)),..._0x34b4a3[_0x10291e(0x95)](_0x10291e(0xa6))?{'dbParam':_0x34b4a3[_0x10291e(0x95)]('dbparam')}:{},..._0x34b4a3[_0x10291e(0x95)](_0x10291e(0xa9))?{'dbDesc':_0x34b4a3[_0x10291e(0x95)](_0x10291e(0xa9))}:{}},{id:_0x46ef2b,entity:_0x4c32c1}=normalizeEntityWithIdResponse(await createDbLink(_0x2b9704));if(!_0x46ef2b)return{'ok':![],'message':_0x10291e(0xa8),'data':sanitizeDbLinkForOutput(_0x4c32c1)};let _0x564141,_0x41b55e;if(_0x34b4a3[_0x10291e(0x93)](_0x10291e(0x90)))try{_0x564141=await startDbAnalysis(_0x46ef2b);}catch(_0x2d7ea7){_0x41b55e=_0x2d7ea7 instanceof Error?_0x2d7ea7[_0x10291e(0x8a)]:String(_0x2d7ea7);}const _0x55d728=buildDbPageLinks(_0x34b4a3[_0x10291e(0xb1)],_0x46ef2b),_0x4d9956={'connection':sanitizeDbLinkForOutput(_0x4c32c1),..._0x55d728?{'links':{'databasePage':_0x55d728[_0x10291e(0xad)]}}:{},..._0x564141?{'analysisPlanId':_0x564141}:{},..._0x41b55e?{'analysisStartWarning':_0x41b55e}:{}};let _0x5bb3d8;return _0x34b4a3[_0x10291e(0x93)](_0x10291e(0x90))?_0x41b55e?_0x5bb3d8=_0x10291e(0x9a)+_0x46ef2b+';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning':_0x5bb3d8='Created\x20db\x20link\x20'+_0x46ef2b+_0x10291e(0x8f):_0x5bb3d8=_0x10291e(0x9a)+_0x46ef2b,{'ok':!![],'data':_0x4d9956,'message':_0x5bb3d8};}};
@@ -1 +1 @@
1
- const a68_0x4b08c2=a68_0xff27;(function(_0x1fe94e,_0x4fb078){const _0x428542=a68_0xff27,_0x58b9dd=_0x1fe94e();while(!![]){try{const _0x3d99cd=-parseInt(_0x428542(0x78))/0x1+-parseInt(_0x428542(0x71))/0x2+-parseInt(_0x428542(0x6e))/0x3*(parseInt(_0x428542(0x76))/0x4)+parseInt(_0x428542(0x6f))/0x5*(parseInt(_0x428542(0x6c))/0x6)+-parseInt(_0x428542(0x75))/0x7+parseInt(_0x428542(0x77))/0x8*(parseInt(_0x428542(0x72))/0x9)+parseInt(_0x428542(0x73))/0xa;if(_0x3d99cd===_0x4fb078)break;else _0x58b9dd['push'](_0x58b9dd['shift']());}catch(_0x231c16){_0x58b9dd['push'](_0x58b9dd['shift']());}}}(a68_0x269d,0x6cdd5));import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a68_0xff27(_0x2a0f0,_0x39cca6){_0x2a0f0=_0x2a0f0-0x6c;const _0x269dc0=a68_0x269d();let _0xff270=_0x269dc0[_0x2a0f0];return _0xff270;}function a68_0x269d(){const _0x3ebe38=['694192dxMsrn','786105mEVljA','18554240QBwWdx','Deleted\x20db\x20link\x20','5161555UehAPv','1996fHttRc','16VhMIyM','254894JSRhNh','high-risk-write','509934zedUCa','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','1983UIyPbM','5aXgQHf','num'];a68_0x269d=function(){return _0x3ebe38;};return a68_0x269d();}export const dbDelete={'service':'db','command':'delete','description':a68_0x4b08c2(0x6d),'risk':a68_0x4b08c2(0x79),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3bf39f){const _0x43b800=a68_0x4b08c2,_0x108944=_0x3bf39f[_0x43b800(0x70)]('id');return await deleteDbLink(_0x108944),{'ok':!![],'data':{'id':_0x108944,'deleted':!![]},'message':_0x43b800(0x74)+_0x108944};}};
1
+ const a68_0x349432=a68_0x5097;function a68_0x3d0e(){const _0x126341=['233260KlXUKV','6171529Xnsokz','333xFBpQw','284SPhDEd','1524568xJrArH','272915ogYzmG','num','3789yYPpFA','6hlWogA','3749728kplqKR','620950IqNESE','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','high-risk-write'];a68_0x3d0e=function(){return _0x126341;};return a68_0x3d0e();}(function(_0x5f3ead,_0x1a5b65){const _0x69f0f6=a68_0x5097,_0x417168=_0x5f3ead();while(!![]){try{const _0x2d9e43=-parseInt(_0x69f0f6(0x9f))/0x1+-parseInt(_0x69f0f6(0xa5))/0x2*(-parseInt(_0x69f0f6(0xa9))/0x3)+parseInt(_0x69f0f6(0xa6))/0x4+-parseInt(_0x69f0f6(0xa7))/0x5*(-parseInt(_0x69f0f6(0x9d))/0x6)+-parseInt(_0x69f0f6(0xa3))/0x7+parseInt(_0x69f0f6(0x9e))/0x8+-parseInt(_0x69f0f6(0xa4))/0x9*(-parseInt(_0x69f0f6(0xa2))/0xa);if(_0x2d9e43===_0x1a5b65)break;else _0x417168['push'](_0x417168['shift']());}catch(_0x32cd48){_0x417168['push'](_0x417168['shift']());}}}(a68_0x3d0e,0x6c75c));import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a68_0x5097(_0x2ab8a3,_0x106ac3){_0x2ab8a3=_0x2ab8a3-0x9d;const _0x3d0e6d=a68_0x3d0e();let _0x509773=_0x3d0e6d[_0x2ab8a3];return _0x509773;}export const dbDelete={'service':'db','command':'delete','description':a68_0x349432(0xa0),'risk':a68_0x349432(0xa1),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3f09b6){const _0x14a3be=a68_0x349432,_0x5de4c3=_0x3f09b6[_0x14a3be(0xa8)]('id');return await deleteDbLink(_0x5de4c3),{'ok':!![],'data':{'id':_0x5de4c3,'deleted':!![]},'message':'Deleted\x20db\x20link\x20'+_0x5de4c3};}};
@@ -1 +1 @@
1
- const a69_0x55f1f9=a69_0x9ccf;function a69_0x5ff3(){const _0x6b8b3=['49821600xQxMLP','dbName','2922sHeVka','248861KUNHuB','19964oiFbVa','12daOMBx','num','detail','55eSkWVn','2239930ABbyWn','4633707omumvy','440tGHFuN','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','read','23948kBnlEj','1225LEAqRd','213966fqOTJY'];a69_0x5ff3=function(){return _0x6b8b3;};return a69_0x5ff3();}function a69_0x9ccf(_0x308a02,_0x5d7ae9){_0x308a02=_0x308a02-0x1b4;const _0x5ff3c3=a69_0x5ff3();let _0x9ccfa3=_0x5ff3c3[_0x308a02];return _0x9ccfa3;}(function(_0x35a210,_0x1ff5d5){const _0x560d88=a69_0x9ccf,_0xf879c0=_0x35a210();while(!![]){try{const _0x440ced=parseInt(_0x560d88(0x1bb))/0x1*(-parseInt(_0x560d88(0x1bd))/0x2)+-parseInt(_0x560d88(0x1c2))/0x3+parseInt(_0x560d88(0x1b5))/0x4*(-parseInt(_0x560d88(0x1b6))/0x5)+parseInt(_0x560d88(0x1ba))/0x6*(parseInt(_0x560d88(0x1bc))/0x7)+parseInt(_0x560d88(0x1c3))/0x8*(-parseInt(_0x560d88(0x1b7))/0x9)+parseInt(_0x560d88(0x1c1))/0xa*(parseInt(_0x560d88(0x1c0))/0xb)+parseInt(_0x560d88(0x1b8))/0xc;if(_0x440ced===_0x1ff5d5)break;else _0xf879c0['push'](_0xf879c0['shift']());}catch(_0x3b3aca){_0xf879c0['push'](_0xf879c0['shift']());}}}(a69_0x5ff3,0xcf2b9));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_0x55f1f9(0x1bf),'description':a69_0x55f1f9(0x1c4),'risk':a69_0x55f1f9(0x1b4),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x50721d){const _0x145120=a69_0x55f1f9,_0x807db5=_0x50721d[_0x145120(0x1be)]('id'),_0x49be36=await getDbLinkInfo(_0x807db5);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x49be36),'message':'db\x20link\x20'+_0x807db5+':\x20'+_0x49be36[_0x145120(0x1b9)]};}};
1
+ const a69_0x559040=a69_0x46dc;function a69_0x2ac6(){const _0x15941=['17035fcqPFS','db\x20link\x20','detail','3762110CYpwcz','1539891QYSpKS','1pNQbUH','220694VzBJRj','2368023TuJKIE','7539BuxdKe','136MZUPtd','num','228AvCBxm','2067704GHDTrD'];a69_0x2ac6=function(){return _0x15941;};return a69_0x2ac6();}function a69_0x46dc(_0x34095d,_0x305521){_0x34095d=_0x34095d-0x89;const _0x2ac604=a69_0x2ac6();let _0x46dca0=_0x2ac604[_0x34095d];return _0x46dca0;}(function(_0x49fae9,_0x5805ab){const _0x4b6ee0=a69_0x46dc,_0x2fe46d=_0x49fae9();while(!![]){try{const _0x3de1d6=parseInt(_0x4b6ee0(0x8e))/0x1*(-parseInt(_0x4b6ee0(0x8f))/0x2)+parseInt(_0x4b6ee0(0x91))/0x3*(-parseInt(_0x4b6ee0(0x92))/0x4)+parseInt(_0x4b6ee0(0x89))/0x5*(parseInt(_0x4b6ee0(0x94))/0x6)+parseInt(_0x4b6ee0(0x90))/0x7+-parseInt(_0x4b6ee0(0x95))/0x8+-parseInt(_0x4b6ee0(0x8d))/0x9+parseInt(_0x4b6ee0(0x8c))/0xa;if(_0x3de1d6===_0x5805ab)break;else _0x2fe46d['push'](_0x2fe46d['shift']());}catch(_0x4d7f1a){_0x2fe46d['push'](_0x2fe46d['shift']());}}}(a69_0x2ac6,0x355f7));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_0x559040(0x8b),'description':'Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x139998){const _0x413561=a69_0x559040,_0x478324=_0x139998[_0x413561(0x93)]('id'),_0x3b7560=await getDbLinkInfo(_0x478324);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x3b7560),'message':_0x413561(0x8a)+_0x478324+':\x20'+_0x3b7560['dbName']};}};
@@ -1 +1 @@
1
- const a70_0xaa9c65=a70_0x4fbf;function a70_0x13ef(){const _0x427e40=['4048990WWoAIv','pagesize','number','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','4DBImmx','\x20row(s),\x20total\x20','table','11830FUbFHr','48406ksirBX','appCode','27dLTJQz','4157016MpwySH','read','\x20(db\x20link\x20','3844704KWyEPg','25QpSKGv','str','num','26702412PzQgnT','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','diff','string','page','4336075qRcHQh','1158eNktNe'];a70_0x13ef=function(){return _0x427e40;};return a70_0x13ef();}(function(_0x18a64f,_0x3fbb95){const _0x1bbe02=a70_0x4fbf,_0xfb210=_0x18a64f();while(!![]){try{const _0x1a24cc=parseInt(_0x1bbe02(0x78))/0x1*(parseInt(_0x1bbe02(0x8a))/0x2)+parseInt(_0x1bbe02(0x77))/0x3+parseInt(_0x1bbe02(0x86))/0x4*(-parseInt(_0x1bbe02(0x80))/0x5)+parseInt(_0x1bbe02(0x81))/0x6*(parseInt(_0x1bbe02(0x89))/0x7)+parseInt(_0x1bbe02(0x74))/0x8+parseInt(_0x1bbe02(0x8c))/0x9*(parseInt(_0x1bbe02(0x82))/0xa)+-parseInt(_0x1bbe02(0x7b))/0xb;if(_0x1a24cc===_0x3fbb95)break;else _0xfb210['push'](_0xfb210['shift']());}catch(_0x50861b){_0xfb210['push'](_0xfb210['shift']());}}}(a70_0x13ef,0x9f48e));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a70_0x4fbf(_0x148e71,_0x5eae7b){_0x148e71=_0x148e71-0x74;const _0x13ef04=a70_0x13ef();let _0x4fbfc5=_0x13ef04[_0x148e71];return _0x4fbfc5;}export const dbDiff={'service':'db','command':a70_0xaa9c65(0x7d),'description':a70_0xaa9c65(0x85),'risk':a70_0xaa9c65(0x75),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a70_0xaa9c65(0x88),'type':a70_0xaa9c65(0x7e),'description':a70_0xaa9c65(0x7c)},{'name':a70_0xaa9c65(0x7f),'type':'number','description':'Page\x20index\x20(1-based)','default':0x1},{'name':a70_0xaa9c65(0x83),'type':a70_0xaa9c65(0x84),'description':'Page\x20size','default':0x14}],async 'execute'(_0x1c9d09){const _0xc60ce6=a70_0xaa9c65,_0x246033=_0x1c9d09['num']('id'),_0x50da71=_0x1c9d09[_0xc60ce6(0x7a)](_0xc60ce6(0x7f),0x1)||0x1,_0x49d2fa=_0x1c9d09[_0xc60ce6(0x7a)](_0xc60ce6(0x83),0x14)||0x14,_0x2aa6dc=_0x1c9d09[_0xc60ce6(0x79)]('table')||undefined,{totalCount:_0x4dc424,tableList:_0x24a99f}=await getDbTableDiff(_0x1c9d09[_0xc60ce6(0x8b)],_0x246033,{'pageIndex':_0x50da71,'pageSize':_0x49d2fa,'tableName':_0x2aa6dc});return{'ok':!![],'data':{'dbLinkId':_0x246033,'page':_0x50da71,'pageSize':_0x49d2fa,'totalCount':_0x4dc424,'tableList':_0x24a99f},'message':_0x24a99f['length']+_0xc60ce6(0x87)+_0x4dc424+_0xc60ce6(0x76)+_0x246033+')'};}};
1
+ function a70_0x3e12(){const _0x3bb607=['2319438Sgtztb','6JKSYgD','\x20row(s),\x20total\x20','page','\x20(db\x20link\x20','3247872DfnYJu','66040gfGfyA','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','appCode','Page\x20size','diff','number','pagesize','string','5574295bRcWWg','1069664Bbojzl','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','3053133zDMrrB','1067TKyBeN','2066512NFSLve','num','2LzGArD','read','table','8opiUnZ'];a70_0x3e12=function(){return _0x3bb607;};return a70_0x3e12();}const a70_0x45ddfa=a70_0x3176;(function(_0x3e78cb,_0x177d56){const _0x597d5b=a70_0x3176,_0x1671e1=_0x3e78cb();while(!![]){try{const _0x52a274=-parseInt(_0x597d5b(0x163))/0x1*(parseInt(_0x597d5b(0x169))/0x2)+parseInt(_0x597d5b(0x154))/0x3+-parseInt(_0x597d5b(0x159))/0x4+parseInt(_0x597d5b(0x162))/0x5*(parseInt(_0x597d5b(0x155))/0x6)+parseInt(_0x597d5b(0x167))/0x7+parseInt(_0x597d5b(0x153))/0x8*(-parseInt(_0x597d5b(0x165))/0x9)+-parseInt(_0x597d5b(0x15a))/0xa*(-parseInt(_0x597d5b(0x166))/0xb);if(_0x52a274===_0x177d56)break;else _0x1671e1['push'](_0x1671e1['shift']());}catch(_0x5b9cfc){_0x1671e1['push'](_0x1671e1['shift']());}}}(a70_0x3e12,0x9333c));function a70_0x3176(_0x57f039,_0x1d7e2f){_0x57f039=_0x57f039-0x151;const _0x3e1299=a70_0x3e12();let _0x31767b=_0x3e1299[_0x57f039];return _0x31767b;}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_0x45ddfa(0x15e),'description':a70_0x45ddfa(0x15b),'risk':a70_0x45ddfa(0x151),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a70_0x45ddfa(0x152),'type':a70_0x45ddfa(0x161),'description':a70_0x45ddfa(0x164)},{'name':a70_0x45ddfa(0x157),'type':'number','description':'Page\x20index\x20(1-based)','default':0x1},{'name':a70_0x45ddfa(0x160),'type':a70_0x45ddfa(0x15f),'description':a70_0x45ddfa(0x15d),'default':0x14}],async 'execute'(_0x1e8a47){const _0x35a890=a70_0x45ddfa,_0x40036e=_0x1e8a47['num']('id'),_0x1034c1=_0x1e8a47[_0x35a890(0x168)](_0x35a890(0x157),0x1)||0x1,_0x3ff6b2=_0x1e8a47[_0x35a890(0x168)](_0x35a890(0x160),0x14)||0x14,_0x452787=_0x1e8a47['str'](_0x35a890(0x152))||undefined,{totalCount:_0x274cd6,tableList:_0x9956f2}=await getDbTableDiff(_0x1e8a47[_0x35a890(0x15c)],_0x40036e,{'pageIndex':_0x1034c1,'pageSize':_0x3ff6b2,'tableName':_0x452787});return{'ok':!![],'data':{'dbLinkId':_0x40036e,'page':_0x1034c1,'pageSize':_0x3ff6b2,'totalCount':_0x274cd6,'tableList':_0x9956f2},'message':_0x9956f2['length']+_0x35a890(0x156)+_0x274cd6+_0x35a890(0x158)+_0x40036e+')'};}};
@@ -1 +1 @@
1
- function a71_0x54f1(_0x47a8f8,_0x11f3cd){_0x47a8f8=_0x47a8f8-0x1a6;const _0x6e0ed6=a71_0x6e0e();let _0x54f144=_0x6e0ed6[_0x47a8f8];return _0x54f144;}(function(_0x58d6f4,_0x1cc80f){const _0x10e5f9=a71_0x54f1,_0x28aeaa=_0x58d6f4();while(!![]){try{const _0xa0a156=-parseInt(_0x10e5f9(0x1ae))/0x1+-parseInt(_0x10e5f9(0x1a8))/0x2*(-parseInt(_0x10e5f9(0x1a9))/0x3)+-parseInt(_0x10e5f9(0x1a6))/0x4*(parseInt(_0x10e5f9(0x1ad))/0x5)+parseInt(_0x10e5f9(0x1ab))/0x6*(parseInt(_0x10e5f9(0x1af))/0x7)+-parseInt(_0x10e5f9(0x1a7))/0x8+-parseInt(_0x10e5f9(0x1aa))/0x9+parseInt(_0x10e5f9(0x1ac))/0xa;if(_0xa0a156===_0x1cc80f)break;else _0x28aeaa['push'](_0x28aeaa['shift']());}catch(_0x43b2c8){_0x28aeaa['push'](_0x28aeaa['shift']());}}}(a71_0x6e0e,0x7a5c0));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 a71_0x6e0e(){const _0x332880=['756994UgGNrj','18949DZHpKx','385876WdESUU','6212352NTyRcm','2212YMFIKf','267GuhZgH','2514573PDfUVk','6yJqZVK','27917920bUOeXO','30gLmGxd'];a71_0x6e0e=function(){return _0x332880;};return a71_0x6e0e();}import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
1
+ (function(_0x16d2af,_0x3ce777){const _0x1ee31f=a71_0x408c,_0x2a10d4=_0x16d2af();while(!![]){try{const _0x45e12e=-parseInt(_0x1ee31f(0x1ab))/0x1*(parseInt(_0x1ee31f(0x1ae))/0x2)+-parseInt(_0x1ee31f(0x1aa))/0x3+parseInt(_0x1ee31f(0x1af))/0x4+-parseInt(_0x1ee31f(0x1ad))/0x5*(parseInt(_0x1ee31f(0x1ac))/0x6)+parseInt(_0x1ee31f(0x1a6))/0x7+parseInt(_0x1ee31f(0x1a9))/0x8+parseInt(_0x1ee31f(0x1a7))/0x9*(parseInt(_0x1ee31f(0x1a8))/0xa);if(_0x45e12e===_0x3ce777)break;else _0x2a10d4['push'](_0x2a10d4['shift']());}catch(_0x103908){_0x2a10d4['push'](_0x2a10d4['shift']());}}}(a71_0x5bde,0x32a6e));function a71_0x408c(_0x364d70,_0xcfbc2a){_0x364d70=_0x364d70-0x1a6;const _0x5bdeb3=a71_0x5bde();let _0x408c96=_0x5bdeb3[_0x364d70];return _0x408c96;}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';function a71_0x5bde(){const _0x4f12f8=['20jSKWfz','1779200ELeTzI','270906wiiEyW','35163ebWOzB','22416fKrspp','60hHuPfB','6lDWUDU','626608XkUpeM','239715JJNpKY','156582ySRAAv'];a71_0x5bde=function(){return _0x4f12f8;};return a71_0x5bde();}import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
@@ -1 +1 @@
1
- const a72_0x3ce7fa=a72_0x36da;(function(_0x412d9b,_0x524260){const _0x6e6aaa=a72_0x36da,_0x596a55=_0x412d9b();while(!![]){try{const _0x4ff06d=-parseInt(_0x6e6aaa(0x120))/0x1+parseInt(_0x6e6aaa(0x10f))/0x2+-parseInt(_0x6e6aaa(0x11e))/0x3*(parseInt(_0x6e6aaa(0x10e))/0x4)+parseInt(_0x6e6aaa(0x112))/0x5+-parseInt(_0x6e6aaa(0x11f))/0x6*(parseInt(_0x6e6aaa(0x11c))/0x7)+parseInt(_0x6e6aaa(0x114))/0x8*(-parseInt(_0x6e6aaa(0x119))/0x9)+parseInt(_0x6e6aaa(0x115))/0xa;if(_0x4ff06d===_0x524260)break;else _0x596a55['push'](_0x596a55['shift']());}catch(_0x55c64b){_0x596a55['push'](_0x596a55['shift']());}}}(a72_0xde26,0xcf3fe));function a72_0x36da(_0x1fb945,_0x51f772){_0x1fb945=_0x1fb945-0x10d;const _0xde2638=a72_0xde26();let _0x36dabb=_0xde2638[_0x1fb945];return _0x36dabb;}import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';function a72_0xde26(){const _0x4bf521=['6608sbbpoM','35460620wzTRrw','read','length','list','16371nUipkl','Page\x20index\x20(1-based)','appCode','4655tIJRUi','Found\x20','9BdSpde','12414YGIgZB','849201PRYSla','\x20database\x20connection(s)','List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','page','995252jlagSJ','914778KLryNL','pagesize','num','6597310TaHBWb','number'];a72_0xde26=function(){return _0x4bf521;};return a72_0xde26();}export const dbList={'service':'db','command':a72_0x3ce7fa(0x118),'description':a72_0x3ce7fa(0x122),'risk':a72_0x3ce7fa(0x116),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a72_0x3ce7fa(0x10d),'type':'number','description':a72_0x3ce7fa(0x11a),'default':0x1},{'name':a72_0x3ce7fa(0x110),'type':a72_0x3ce7fa(0x113),'description':'Page\x20size','default':0x64}],async 'execute'(_0x3a5ffd){const _0xd7d7ff=a72_0x3ce7fa,_0x1dcdf8=_0x3a5ffd[_0xd7d7ff(0x111)](_0xd7d7ff(0x10d),0x1)||0x1,_0x34e27d=_0x3a5ffd[_0xd7d7ff(0x111)](_0xd7d7ff(0x110),0x64)||0x64,{items:_0x1f139b,paging:_0x3ef87c}=await listDbLinks(_0x3a5ffd[_0xd7d7ff(0x11b)],{'currentPage':_0x1dcdf8,'pageSize':_0x34e27d}),_0x1292c9=sanitizeDbLinkList(_0x1f139b),_0x4ccd2c=_0x3ef87c?_0x3ef87c:{'currentPage':_0x1dcdf8,'pageSize':_0x34e27d,'rowsOnPage':_0x1292c9[_0xd7d7ff(0x117)],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x1292c9,'paging':_0x4ccd2c},'message':_0xd7d7ff(0x11d)+_0x1292c9[_0xd7d7ff(0x117)]+_0xd7d7ff(0x121)};}};
1
+ function a72_0xbe04(){const _0x2f29a7=['107556lnIVRL','page','\x20database\x20connection(s)','145YekGyd','pagesize','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','42NlFhfN','length','read','4386sReCbI','5867796alhIzr','60UcoZad','91592lklRGV','Page\x20index\x20(1-based)','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','145448UCeyii','6814485FPhTfl','10zExGSD','1467500isSrFf','num','number'];a72_0xbe04=function(){return _0x2f29a7;};return a72_0xbe04();}const a72_0x194def=a72_0x395d;function a72_0x395d(_0xec7e21,_0x587afb){_0xec7e21=_0xec7e21-0x109;const _0xbe046c=a72_0xbe04();let _0x395d1e=_0xbe046c[_0xec7e21];return _0x395d1e;}(function(_0x3ef690,_0xf9c75d){const _0x58cea1=a72_0x395d,_0x50dfad=_0x3ef690();while(!![]){try{const _0x131ab4=-parseInt(_0x58cea1(0x116))/0x1+-parseInt(_0x58cea1(0x10a))/0x2+-parseInt(_0x58cea1(0x118))/0x3*(-parseInt(_0x58cea1(0x119))/0x4)+-parseInt(_0x58cea1(0x110))/0x5*(parseInt(_0x58cea1(0x10d))/0x6)+parseInt(_0x58cea1(0x113))/0x7*(-parseInt(_0x58cea1(0x11d))/0x8)+parseInt(_0x58cea1(0x11e))/0x9+-parseInt(_0x58cea1(0x109))/0xa*(-parseInt(_0x58cea1(0x117))/0xb);if(_0x131ab4===_0xf9c75d)break;else _0x50dfad['push'](_0x50dfad['shift']());}catch(_0x4fdd70){_0x50dfad['push'](_0x50dfad['shift']());}}}(a72_0xbe04,0x5d22d));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':'list','description':a72_0x194def(0x11c),'risk':a72_0x194def(0x115),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':a72_0x194def(0x10c),'description':a72_0x194def(0x11a),'default':0x1},{'name':a72_0x194def(0x111),'type':a72_0x194def(0x10c),'description':'Page\x20size','default':0x64}],async 'execute'(_0x2bed9d){const _0x5cb9fd=a72_0x194def,_0x233170=_0x2bed9d[_0x5cb9fd(0x10b)](_0x5cb9fd(0x10e),0x1)||0x1,_0xe22977=_0x2bed9d[_0x5cb9fd(0x10b)](_0x5cb9fd(0x111),0x64)||0x64,{items:_0x20aff0,paging:_0x1de647}=await listDbLinks(_0x2bed9d[_0x5cb9fd(0x11b)],{'currentPage':_0x233170,'pageSize':_0xe22977}),_0x1953db=sanitizeDbLinkList(_0x20aff0),_0x196cba=_0x1de647?_0x1de647:{'currentPage':_0x233170,'pageSize':_0xe22977,'rowsOnPage':_0x1953db[_0x5cb9fd(0x114)],'totalCount':null,'note':_0x5cb9fd(0x112)};return{'ok':!![],'data':{'connections':_0x1953db,'paging':_0x196cba},'message':'Found\x20'+_0x1953db[_0x5cb9fd(0x114)]+_0x5cb9fd(0x10f)};}};
@@ -1 +1 @@
1
- (function(_0x1c4819,_0x394b9b){const _0x14f700=a73_0x512b,_0x2dfec3=_0x1c4819();while(!![]){try{const _0x426345=parseInt(_0x14f700(0x9d))/0x1+-parseInt(_0x14f700(0xb2))/0x2*(-parseInt(_0x14f700(0x95))/0x3)+parseInt(_0x14f700(0xa8))/0x4+parseInt(_0x14f700(0x9a))/0x5*(-parseInt(_0x14f700(0x9c))/0x6)+parseInt(_0x14f700(0xa7))/0x7*(parseInt(_0x14f700(0xac))/0x8)+parseInt(_0x14f700(0x98))/0x9+-parseInt(_0x14f700(0xa1))/0xa*(parseInt(_0x14f700(0xad))/0xb);if(_0x426345===_0x394b9b)break;else _0x2dfec3['push'](_0x2dfec3['shift']());}catch(_0x4ee55e){_0x2dfec3['push'](_0x2dfec3['shift']());}}}(a73_0x1b57,0xbbab1));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0x53acd8){const _0x3b5365=a73_0x512b,_0x3b2014=_0x53acd8[_0x3b5365(0xa2)]();if(_0x3b2014===_0x3b5365(0xaa)||_0x3b2014===_0x3b5365(0xab)||_0x3b2014===_0x3b5365(0x9e))return!![];if(_0x3b2014[_0x3b5365(0xae)]('secret')||_0x3b2014[_0x3b5365(0xae)](_0x3b5365(0x9f))||_0x3b2014[_0x3b5365(0xae)](_0x3b5365(0x94)))return!![];if(_0x3b2014[_0x3b5365(0xae)](_0x3b5365(0xa5))||_0x3b2014[_0x3b5365(0xae)](_0x3b5365(0xa6)))return!![];if(_0x3b2014===_0x3b5365(0xa0)||_0x3b2014===_0x3b5365(0x93)||_0x3b2014===_0x3b5365(0xa9))return!![];return![];}export function sanitizeDbLinkForOutput(_0x2ac42d){const _0x5dfaa8=a73_0x512b,_0x2fa597={..._0x2ac42d};for(const _0x3e7529 of Object[_0x5dfaa8(0xb0)](_0x2fa597)){if(!shouldRedactKey(_0x3e7529))continue;const _0x4c3ed5=_0x2fa597[_0x3e7529];_0x4c3ed5!=null&&String(_0x4c3ed5)[_0x5dfaa8(0xb1)]>0x0&&(_0x2fa597[_0x3e7529]=_0x5dfaa8(0x99));}return _0x2fa597;}export function sanitizeDbLinkList(_0x476d66){return _0x476d66['map'](_0x4322b2=>sanitizeDbLinkForOutput(_0x4322b2));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;function a73_0x1b57(){const _0x2c3105=['2068ujhALd','connectionstring','credential','2097kltYGK','test','trim','9647388TSgAhN','[redacted]','58895qQFgkn','https://daily.lovrabet.com/web-app/app/','330XwAtaI','1495962NzhewN','dbpassword','token','authorization','50xlmchT','toLowerCase','/data/database','https://app.lovrabet.com/app/','privatekey','accesskey','8155749ZPQDTx','501228AdHZmS','jdbcurl','password','passwd','8dKtpOw','6961988QEVkwc','includes','isFinite','keys','length'];a73_0x1b57=function(){return _0x2c3105;};return a73_0x1b57();}export function validateDbUrl(_0x40aa44){const _0x4b2e72=a73_0x512b,_0x3d968a=_0x40aa44[_0x4b2e72(0x97)]();if(!_0x3d968a)return![];return DB_URL_PATTERN[_0x4b2e72(0x96)](_0x3d968a);}function a73_0x512b(_0x471c5b,_0x2e72f2){_0x471c5b=_0x471c5b-0x93;const _0x1b57f0=a73_0x1b57();let _0x512b84=_0x1b57f0[_0x471c5b];return _0x512b84;}export function buildDbPageLinks(_0x28e058,_0x49042b){const _0x14b967=a73_0x512b,_0x345bac=_0x28e058?.['trim']();if(!_0x345bac)return undefined;const _0xb93e79=typeof _0x49042b==='number'?String(_0x49042b):String(_0x49042b??'')['trim']();if(!_0xb93e79)return undefined;const _0x2adaab=Number(_0xb93e79);if(!Number[_0x14b967(0xaf)](_0x2adaab)||_0x2adaab<=0x0)return undefined;const _0x34f019=isDaily(normalizeEnv(getEnv()))?_0x14b967(0x9b)+encodeURIComponent(_0x345bac):_0x14b967(0xa4)+encodeURIComponent(_0x345bac),_0x2acb92=encodeURIComponent(String(_0x2adaab));return{'databasePage':_0x34f019+_0x14b967(0xa3),'erPage':_0x34f019+'/data/er?dbId='+_0x2acb92};}
1
+ function a73_0x4cda(_0x5f141f,_0x5cce6d){_0x5f141f=_0x5f141f-0x1ec;const _0x253eae=a73_0x253e();let _0x4cdaa8=_0x253eae[_0x5f141f];return _0x4cdaa8;}(function(_0x482289,_0x274064){const _0x4f5a72=a73_0x4cda,_0x304f4b=_0x482289();while(!![]){try{const _0x487071=parseInt(_0x4f5a72(0x1ef))/0x1+-parseInt(_0x4f5a72(0x200))/0x2*(-parseInt(_0x4f5a72(0x203))/0x3)+parseInt(_0x4f5a72(0x1fb))/0x4+parseInt(_0x4f5a72(0x1ee))/0x5+-parseInt(_0x4f5a72(0x1f2))/0x6*(parseInt(_0x4f5a72(0x1f4))/0x7)+parseInt(_0x4f5a72(0x1fe))/0x8+-parseInt(_0x4f5a72(0x1fc))/0x9*(parseInt(_0x4f5a72(0x1fa))/0xa);if(_0x487071===_0x274064)break;else _0x304f4b['push'](_0x304f4b['shift']());}catch(_0x26c3be){_0x304f4b['push'](_0x304f4b['shift']());}}}(a73_0x253e,0xde813));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0x5b4ff5){const _0x2683fd=a73_0x4cda,_0x3d4c70=_0x5b4ff5[_0x2683fd(0x1f5)]();if(_0x3d4c70===_0x2683fd(0x205)||_0x3d4c70==='passwd'||_0x3d4c70===_0x2683fd(0x1ec))return!![];if(_0x3d4c70['includes']('secret')||_0x3d4c70[_0x2683fd(0x1f7)]('token')||_0x3d4c70[_0x2683fd(0x1f7)](_0x2683fd(0x204)))return!![];if(_0x3d4c70['includes']('privatekey')||_0x3d4c70['includes'](_0x2683fd(0x1f3)))return!![];if(_0x3d4c70===_0x2683fd(0x1f8)||_0x3d4c70===_0x2683fd(0x202)||_0x3d4c70===_0x2683fd(0x1ed))return!![];return![];}export function sanitizeDbLinkForOutput(_0x44eab5){const _0x10db6c=a73_0x4cda,_0x166562={..._0x44eab5};for(const _0x4e86ec of Object[_0x10db6c(0x1f1)](_0x166562)){if(!shouldRedactKey(_0x4e86ec))continue;const _0x532373=_0x166562[_0x4e86ec];_0x532373!=null&&String(_0x532373)['length']>0x0&&(_0x166562[_0x4e86ec]=_0x10db6c(0x1f0));}return _0x166562;}export function sanitizeDbLinkList(_0x30c1f9){const _0x128cfb=a73_0x4cda;return _0x30c1f9[_0x128cfb(0x206)](_0x40ff20=>sanitizeDbLinkForOutput(_0x40ff20));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x479c85){const _0xcbe2=a73_0x4cda,_0x48beb1=_0x479c85[_0xcbe2(0x1f6)]();if(!_0x48beb1)return![];return DB_URL_PATTERN[_0xcbe2(0x207)](_0x48beb1);}export function buildDbPageLinks(_0x164da3,_0x236fd5){const _0x2b3c8f=a73_0x4cda,_0x2165f4=_0x164da3?.[_0x2b3c8f(0x1f6)]();if(!_0x2165f4)return undefined;const _0x20ca29=typeof _0x236fd5==='number'?String(_0x236fd5):String(_0x236fd5??'')[_0x2b3c8f(0x1f6)]();if(!_0x20ca29)return undefined;const _0x4da1c0=Number(_0x20ca29);if(!Number['isFinite'](_0x4da1c0)||_0x4da1c0<=0x0)return undefined;const _0x498fbe=isDaily(normalizeEnv(getEnv()))?_0x2b3c8f(0x1fd)+encodeURIComponent(_0x2165f4):_0x2b3c8f(0x201)+encodeURIComponent(_0x2165f4),_0x288cb4=encodeURIComponent(String(_0x4da1c0));return{'databasePage':_0x498fbe+_0x2b3c8f(0x1f9),'erPage':_0x498fbe+_0x2b3c8f(0x1ff)+_0x288cb4};}function a73_0x253e(){const _0xe392b9=['keys','10141170dKnUWS','accesskey','7CbbbMP','toLowerCase','trim','includes','authorization','/data/database','2627830xsgtYP','1135912ecZurP','63pZCyCA','https://daily.lovrabet.com/web-app/app/','10426856ThGEfz','/data/er?dbId=','1138234zEbCWu','https://app.lovrabet.com/app/','connectionstring','3pxXKsU','credential','password','map','test','dbpassword','jdbcurl','4871695jrerVA','1310264QxlSyK','[redacted]'];a73_0x253e=function(){return _0xe392b9;};return a73_0x253e();}
@@ -1 +1 @@
1
- function a74_0xbb22(_0x176b18,_0x44f05b){_0x176b18=_0x176b18-0xf4;const _0x5d5d69=a74_0x5d5d();let _0xbb2287=_0x5d5d69[_0x176b18];return _0xbb2287;}function a74_0x5d5d(){const _0x52d9c8=['1224738ocqVHw','2110878AUEApP','num','4wtuQac','24MGsOZo','78211fcWwnu','506zMvCBk','read','3670698WysgQQ','110yuUpjo','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','appCode','\x20table(s)\x20on\x20db\x20link\x20','15093928FDqAkt','563196BKwvVq','6000565wfXdMD','14uLWiKL'];a74_0x5d5d=function(){return _0x52d9c8;};return a74_0x5d5d();}const a74_0xb97cee=a74_0xbb22;(function(_0x352684,_0x85eb2f){const _0x532d7f=a74_0xbb22,_0x1ce4ad=_0x352684();while(!![]){try{const _0x35ade2=-parseInt(_0x532d7f(0xff))/0x1*(-parseInt(_0x532d7f(0xfe))/0x2)+parseInt(_0x532d7f(0xfb))/0x3+-parseInt(_0x532d7f(0xfd))/0x4*(parseInt(_0x532d7f(0xf8))/0x5)+-parseInt(_0x532d7f(0x102))/0x6*(parseInt(_0x532d7f(0xf9))/0x7)+-parseInt(_0x532d7f(0xf6))/0x8+parseInt(_0x532d7f(0xfa))/0x9*(parseInt(_0x532d7f(0x103))/0xa)+parseInt(_0x532d7f(0x100))/0xb*(parseInt(_0x532d7f(0xf7))/0xc);if(_0x35ade2===_0x85eb2f)break;else _0x1ce4ad['push'](_0x1ce4ad['shift']());}catch(_0x4d7ea3){_0x1ce4ad['push'](_0x1ce4ad['shift']());}}}(a74_0x5d5d,0xf11a6));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':'tables','description':a74_0xb97cee(0x104),'risk':a74_0xb97cee(0x101),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5ef7de){const _0x3f494e=a74_0xb97cee,_0x5c86ea=_0x5ef7de[_0x3f494e(0xfc)]('id'),_0x4b842a=await getDbAllTableList(_0x5ef7de[_0x3f494e(0xf4)],_0x5c86ea);return{'ok':!![],'data':{'dbLinkId':_0x5c86ea,'total':_0x4b842a['length'],'tables':_0x4b842a},'message':_0x4b842a['length']+_0x3f494e(0xf5)+_0x5c86ea};}};
1
+ const a74_0x29bc9a=a74_0x5339;function a74_0x8ea0(){const _0x5a82b7=['578938IXHnzV','478350YYdDKA','2qrgBgV','8VykZVF','appCode','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','446103cqUAiG','21773510cHVPTg','length','3VCBltU','11018655eIPbZC','2548348jGNJBw','165lHDFrE','242628HrtAvz'];a74_0x8ea0=function(){return _0x5a82b7;};return a74_0x8ea0();}(function(_0x23f8ca,_0x41a687){const _0x1c9b13=a74_0x5339,_0x68fb8a=_0x23f8ca();while(!![]){try{const _0x483d13=parseInt(_0x1c9b13(0xd9))/0x1*(-parseInt(_0x1c9b13(0xdb))/0x2)+parseInt(_0x1c9b13(0xe2))/0x3*(parseInt(_0x1c9b13(0xd6))/0x4)+parseInt(_0x1c9b13(0xd7))/0x5*(parseInt(_0x1c9b13(0xd8))/0x6)+parseInt(_0x1c9b13(0xdf))/0x7+-parseInt(_0x1c9b13(0xdc))/0x8*(-parseInt(_0x1c9b13(0xd5))/0x9)+parseInt(_0x1c9b13(0xda))/0xa+-parseInt(_0x1c9b13(0xe0))/0xb;if(_0x483d13===_0x41a687)break;else _0x68fb8a['push'](_0x68fb8a['shift']());}catch(_0x3b8d16){_0x68fb8a['push'](_0x68fb8a['shift']());}}}(a74_0x8ea0,0xb6dfc));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a74_0x5339(_0x4b4ca0,_0x1ca84f){_0x4b4ca0=_0x4b4ca0-0xd5;const _0x8ea07b=a74_0x8ea0();let _0x53396d=_0x8ea07b[_0x4b4ca0];return _0x53396d;}export const dbTables={'service':'db','command':'tables','description':a74_0x29bc9a(0xde),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1a2adb){const _0x12ae8e=a74_0x29bc9a,_0x5ac516=_0x1a2adb['num']('id'),_0x5d160d=await getDbAllTableList(_0x1a2adb[_0x12ae8e(0xdd)],_0x5ac516);return{'ok':!![],'data':{'dbLinkId':_0x5ac516,'total':_0x5d160d['length'],'tables':_0x5d160d},'message':_0x5d160d[_0x12ae8e(0xe1)]+'\x20table(s)\x20on\x20db\x20link\x20'+_0x5ac516};}};
@@ -1 +1 @@
1
- const a75_0x2d33b9=a75_0x5980;(function(_0x1c03c4,_0x263e61){const _0x4f8d15=a75_0x5980,_0x263e7b=_0x1c03c4();while(!![]){try{const _0xa93c69=parseInt(_0x4f8d15(0x11e))/0x1*(parseInt(_0x4f8d15(0x10a))/0x2)+-parseInt(_0x4f8d15(0x108))/0x3+-parseInt(_0x4f8d15(0x118))/0x4+parseInt(_0x4f8d15(0x114))/0x5*(parseInt(_0x4f8d15(0x10f))/0x6)+-parseInt(_0x4f8d15(0x10b))/0x7+-parseInt(_0x4f8d15(0x10d))/0x8+parseInt(_0x4f8d15(0x116))/0x9;if(_0xa93c69===_0x263e61)break;else _0x263e7b['push'](_0x263e7b['shift']());}catch(_0x2c3738){_0x263e7b['push'](_0x263e7b['shift']());}}}(a75_0x17dc,0xd65bd));import{testDbLinkConnect}from'../../core/api-client.js';function a75_0x5980(_0x1a2334,_0x399a80){_0x1a2334=_0x1a2334-0x107;const _0x17dc7d=a75_0x17dc();let _0x5980a1=_0x17dc7d[_0x1a2334];return _0x5980a1;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a75_0x17dc(){const _0x522345=['test','5qRlGBs','\x20(see\x20data.result)','25760781iLzmXd','num','4808620VHuSCg','msg','slice','Connection\x20OK\x20for\x20db\x20link\x20','Connection\x20check\x20finished\x20for\x20db\x20link\x20','keys','29YyLVaQ','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','error','4544052gQLSnR','read','93746pcwDXq','8753241KKabec','success','3059552fhJEkm','message','6036798jafOBT','object','code','length'];a75_0x17dc=function(){return _0x522345;};return a75_0x17dc();}function summarizeTestConnectResult(_0x1f0482){const _0xc8dd3b=a75_0x5980;if(_0x1f0482===!![]||_0x1f0482===![])return{'success':_0x1f0482};if(_0x1f0482===null||_0x1f0482===undefined)return{'type':typeof _0x1f0482};if(typeof _0x1f0482!=='object')return{'type':typeof _0x1f0482};const _0x3e98cf=_0x1f0482,_0x32542c=[_0xc8dd3b(0x10c),_0xc8dd3b(0x10e),_0xc8dd3b(0x111),_0xc8dd3b(0x107),_0xc8dd3b(0x119),'data'],_0x25ae83={};for(const _0x2b660f of _0x32542c){if(_0x2b660f in _0x3e98cf)_0x25ae83[_0x2b660f]=_0x3e98cf[_0x2b660f];}return Object[_0xc8dd3b(0x11d)](_0x25ae83)[_0xc8dd3b(0x112)]===0x0&&(_0x25ae83[_0xc8dd3b(0x11d)]=Object[_0xc8dd3b(0x11d)](_0x3e98cf)[_0xc8dd3b(0x11a)](0x0,0x14)),_0x25ae83;}export const dbTest={'service':'db','command':a75_0x2d33b9(0x113),'description':a75_0x2d33b9(0x11f),'risk':a75_0x2d33b9(0x109),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2fd3b0){const _0x4027dd=a75_0x2d33b9,_0x4d0220=_0x2fd3b0[_0x4027dd(0x117)]('id'),_0x2215b9=await testDbLinkConnect(_0x4d0220),_0x20c222=_0x2215b9===!![]||typeof _0x2215b9===_0x4027dd(0x110)&&_0x2215b9!==null&&_0x2215b9[_0x4027dd(0x10c)]===!![],_0x44c2e6=summarizeTestConnectResult(_0x2215b9);return{'ok':!![],'data':{'id':_0x4d0220,'connected':Boolean(_0x20c222),'result':_0x44c2e6},'message':_0x20c222?_0x4027dd(0x11b)+_0x4d0220:_0x4027dd(0x11c)+_0x4d0220+_0x4027dd(0x115)};}};
1
+ const a75_0x4a714f=a75_0x20c7;function a75_0x4f46(){const _0x33afdf=['Connection\x20OK\x20for\x20db\x20link\x20','keys','5117480LSUvhS','msg','5670909leEpFd','slice','1SSmrcy','object','length','21XvJXzY','data','test','2610879hyHSAE','success','241858QzYvua','message','3184556TqIoCP','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','code','492005tlhVUQ','8BGqYzw','68592isHQut'];a75_0x4f46=function(){return _0x33afdf;};return a75_0x4f46();}(function(_0x25fd13,_0x28bec5){const _0x5175da=a75_0x20c7,_0xde1987=_0x25fd13();while(!![]){try{const _0x378ba2=parseInt(_0x5175da(0x1d3))/0x1*(parseInt(_0x5175da(0x1db))/0x2)+parseInt(_0x5175da(0x1d9))/0x3+-parseInt(_0x5175da(0x1dd))/0x4+parseInt(_0x5175da(0x1e0))/0x5+parseInt(_0x5175da(0x1e2))/0x6*(parseInt(_0x5175da(0x1d6))/0x7)+parseInt(_0x5175da(0x1e1))/0x8*(parseInt(_0x5175da(0x1d1))/0x9)+-parseInt(_0x5175da(0x1cf))/0xa;if(_0x378ba2===_0x28bec5)break;else _0xde1987['push'](_0xde1987['shift']());}catch(_0x34048b){_0xde1987['push'](_0xde1987['shift']());}}}(a75_0x4f46,0x6ceb5));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a75_0x20c7(_0x139f98,_0x427aab){_0x139f98=_0x139f98-0x1ce;const _0x4f4692=a75_0x4f46();let _0x20c7cc=_0x4f4692[_0x139f98];return _0x20c7cc;}function summarizeTestConnectResult(_0x28ae6f){const _0x34f6f1=a75_0x20c7;if(_0x28ae6f===!![]||_0x28ae6f===![])return{'success':_0x28ae6f};if(_0x28ae6f===null||_0x28ae6f===undefined)return{'type':typeof _0x28ae6f};if(typeof _0x28ae6f!==_0x34f6f1(0x1d4))return{'type':typeof _0x28ae6f};const _0x4273f1=_0x28ae6f,_0x58865c=[_0x34f6f1(0x1da),_0x34f6f1(0x1dc),_0x34f6f1(0x1df),'error',_0x34f6f1(0x1d0),_0x34f6f1(0x1d7)],_0x427e93={};for(const _0x3e8463 of _0x58865c){if(_0x3e8463 in _0x4273f1)_0x427e93[_0x3e8463]=_0x4273f1[_0x3e8463];}return Object['keys'](_0x427e93)[_0x34f6f1(0x1d5)]===0x0&&(_0x427e93[_0x34f6f1(0x1ce)]=Object[_0x34f6f1(0x1ce)](_0x4273f1)[_0x34f6f1(0x1d2)](0x0,0x14)),_0x427e93;}export const dbTest={'service':'db','command':a75_0x4a714f(0x1d8),'description':a75_0x4a714f(0x1de),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5b7dd8){const _0x40a3a4=a75_0x4a714f,_0x266307=_0x5b7dd8['num']('id'),_0x3653c5=await testDbLinkConnect(_0x266307),_0x5a4a24=_0x3653c5===!![]||typeof _0x3653c5===_0x40a3a4(0x1d4)&&_0x3653c5!==null&&_0x3653c5[_0x40a3a4(0x1da)]===!![],_0x1fb3a5=summarizeTestConnectResult(_0x3653c5);return{'ok':!![],'data':{'id':_0x266307,'connected':Boolean(_0x5a4a24),'result':_0x1fb3a5},'message':_0x5a4a24?_0x40a3a4(0x1e3)+_0x266307:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x266307+'\x20(see\x20data.result)'};}};
@@ -1 +1 @@
1
- const a76_0x1d6cc7=a76_0x3f64;(function(_0x26fc1a,_0x1304c4){const _0xbeef83=a76_0x3f64,_0x265d50=_0x26fc1a();while(!![]){try{const _0x3debf9=-parseInt(_0xbeef83(0x169))/0x1+parseInt(_0xbeef83(0x17d))/0x2+-parseInt(_0xbeef83(0x167))/0x3*(-parseInt(_0xbeef83(0x17c))/0x4)+parseInt(_0xbeef83(0x17e))/0x5+parseInt(_0xbeef83(0x16c))/0x6*(parseInt(_0xbeef83(0x171))/0x7)+-parseInt(_0xbeef83(0x183))/0x8*(-parseInt(_0xbeef83(0x17f))/0x9)+-parseInt(_0xbeef83(0x188))/0xa*(parseInt(_0xbeef83(0x177))/0xb);if(_0x3debf9===_0x1304c4)break;else _0x265d50['push'](_0x265d50['shift']());}catch(_0x28be9d){_0x265d50['push'](_0x265d50['shift']());}}}(a76_0x406f,0x646ca));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a76_0x3f64(_0x43e6f2,_0x28f752){_0x43e6f2=_0x43e6f2-0x167;const _0x406fc5=a76_0x406f();let _0x3f6476=_0x406fc5[_0x43e6f2];return _0x3f6476;}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_0x1d6cc7(0x189),'description':'Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','risk':a76_0x1d6cc7(0x187),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a76_0x1d6cc7(0x16a),'type':a76_0x1d6cc7(0x174),'description':a76_0x1d6cc7(0x16b)},{'name':a76_0x1d6cc7(0x180),'type':'string','description':a76_0x1d6cc7(0x16d)},{'name':a76_0x1d6cc7(0x179),'type':a76_0x1d6cc7(0x174),'description':'New\x20username'},{'name':a76_0x1d6cc7(0x185),'type':a76_0x1d6cc7(0x174),'description':a76_0x1d6cc7(0x184)},{'name':a76_0x1d6cc7(0x16e),'type':a76_0x1d6cc7(0x174),'description':a76_0x1d6cc7(0x170)},{'name':a76_0x1d6cc7(0x176),'type':'string','description':a76_0x1d6cc7(0x186)}],async 'validate'(_0x581141){const _0x13dd36=a76_0x1d6cc7,_0x3e99ce=_0x581141[_0x13dd36(0x18a)]('dburl');if(_0x3e99ce&&!validateDbUrl(_0x3e99ce[_0x13dd36(0x17a)]()))throw CliErrors['validation'](_0x13dd36(0x173)+_0x3e99ce+'\x22');},async 'dryRun'(_0x53d76c){const _0x32feb1=a76_0x1d6cc7,_0x1bf627=_0x53d76c[_0x32feb1(0x172)]('id'),_0x5df41d=await getDbLinkInfo(_0x1bf627),_0x4509ff={..._0x5df41d},_0x320811=_0x53d76c[_0x32feb1(0x18a)](_0x32feb1(0x16a));if(_0x320811)_0x4509ff[_0x32feb1(0x181)]=_0x320811;const _0x14196c=_0x53d76c['str'](_0x32feb1(0x180));if(_0x14196c)_0x4509ff[_0x32feb1(0x17b)]=_0x14196c['trim']();const _0x223cb0=_0x53d76c[_0x32feb1(0x18a)](_0x32feb1(0x179));if(_0x223cb0)_0x4509ff['username']=_0x223cb0;const _0x4d7ed6=_0x53d76c[_0x32feb1(0x18a)]('password');if(_0x4d7ed6)_0x4509ff[_0x32feb1(0x185)]=_0x4d7ed6;const _0x16fd36=_0x53d76c[_0x32feb1(0x18a)](_0x32feb1(0x16e));if(_0x16fd36)_0x4509ff['dbParam']=_0x16fd36;const _0x19ece6=_0x53d76c['str'](_0x32feb1(0x176));if(_0x19ece6)_0x4509ff[_0x32feb1(0x175)]=_0x19ece6;const _0x435bdd=sanitizeDbLinkForOutput(_0x4509ff);return{'method':_0x32feb1(0x178),'url':'/smartapi/dblink/update','body':_0x435bdd,'description':_0x32feb1(0x182)};},async 'execute'(_0x42bb7a){const _0x32b604=a76_0x1d6cc7,_0x183812=_0x42bb7a[_0x32b604(0x172)]('id'),_0x5c341a=await getDbLinkInfo(_0x183812),_0x519e23={..._0x5c341a},_0x4b4c79=_0x42bb7a['str']('dbname');if(_0x4b4c79)_0x519e23[_0x32b604(0x181)]=_0x4b4c79;const _0x3e9d7b=_0x42bb7a['str'](_0x32b604(0x180));if(_0x3e9d7b)_0x519e23[_0x32b604(0x17b)]=_0x3e9d7b[_0x32b604(0x17a)]();const _0x2f7633=_0x42bb7a[_0x32b604(0x18a)](_0x32b604(0x179));if(_0x2f7633)_0x519e23[_0x32b604(0x179)]=_0x2f7633;const _0x41205f=_0x42bb7a[_0x32b604(0x18a)]('password');if(_0x41205f)_0x519e23['password']=_0x41205f;const _0x2eda13=_0x42bb7a[_0x32b604(0x18a)](_0x32b604(0x16e));if(_0x2eda13)_0x519e23[_0x32b604(0x168)]=_0x2eda13;const _0x35001f=_0x42bb7a[_0x32b604(0x18a)](_0x32b604(0x176));if(_0x35001f)_0x519e23[_0x32b604(0x175)]=_0x35001f;const {id:_0xe0dd4f,entity:_0x51f784}=normalizeEntityWithIdResponse(await updateDbLink(_0x519e23));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x51f784),'message':_0x32b604(0x16f)+(_0xe0dd4f??_0x183812)};}};function a76_0x406f(){const _0x4731cf=['Updated\x20db\x20link\x20','New\x20connection\x20parameter\x20string','52451KrKOux','num','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','string','dbDesc','dbdesc','44PSxFWy','POST','username','trim','dbUrl','44diTzQU','1188702mPbTzU','83545oSTmiL','480348GMKzcy','dburl','dbName','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','104pLcDNq','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','password','New\x20description','write','4719080xJNhDH','update','str','190173JmXOEt','dbParam','347625NlYDpc','dbname','New\x20database\x20name','516mqhZGU','New\x20host:port','dbparam'];a76_0x406f=function(){return _0x4731cf;};return a76_0x406f();}
1
+ const a76_0x1ea1a5=a76_0x3a0f;(function(_0xa0a025,_0x44113f){const _0x329a8f=a76_0x3a0f,_0xc0fa57=_0xa0a025();while(!![]){try{const _0xd5fd9a=-parseInt(_0x329a8f(0xa0))/0x1+-parseInt(_0x329a8f(0xab))/0x2+parseInt(_0x329a8f(0xa3))/0x3*(-parseInt(_0x329a8f(0xb6))/0x4)+-parseInt(_0x329a8f(0xbd))/0x5*(-parseInt(_0x329a8f(0xa8))/0x6)+-parseInt(_0x329a8f(0xa7))/0x7+parseInt(_0x329a8f(0xb0))/0x8*(-parseInt(_0x329a8f(0xa4))/0x9)+parseInt(_0x329a8f(0xbe))/0xa;if(_0xd5fd9a===_0x44113f)break;else _0xc0fa57['push'](_0xc0fa57['shift']());}catch(_0x223646){_0xc0fa57['push'](_0xc0fa57['shift']());}}}(a76_0x1368,0xb6bda));function a76_0x3a0f(_0x298fe6,_0x7e85bf){_0x298fe6=_0x298fe6-0x9f;const _0x1368fe=a76_0x1368();let _0x3a0f22=_0x1368fe[_0x298fe6];return _0x3a0f22;}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';function a76_0x1368(){const _0x4e0644=['45OlNuha','password','string','3838975YldwgC','4858926xnkmYZ','/smartapi/dblink/update','dbname','979332kevPLx','New\x20database\x20name','POST','New\x20username','Updated\x20db\x20link\x20','2344040AjzaXy','trim','dbParam','dbUrl','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','dbparam','44AYDNSq','str','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','validation','dbdesc','dburl','dbDesc','5WxlpeE','33562200Kxhqov','update','472153mKujIQ','dbName','username','120618dUMFOn'];a76_0x1368=function(){return _0x4e0644;};return a76_0x1368();}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':a76_0x1ea1a5(0x9f),'description':'Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a76_0x1ea1a5(0xaa),'type':a76_0x1ea1a5(0xa6),'description':a76_0x1ea1a5(0xac)},{'name':a76_0x1ea1a5(0xbb),'type':a76_0x1ea1a5(0xa6),'description':'New\x20host:port'},{'name':a76_0x1ea1a5(0xa2),'type':a76_0x1ea1a5(0xa6),'description':a76_0x1ea1a5(0xae)},{'name':a76_0x1ea1a5(0xa5),'type':a76_0x1ea1a5(0xa6),'description':a76_0x1ea1a5(0xb8)},{'name':a76_0x1ea1a5(0xb5),'type':'string','description':'New\x20connection\x20parameter\x20string'},{'name':a76_0x1ea1a5(0xba),'type':a76_0x1ea1a5(0xa6),'description':'New\x20description'}],async 'validate'(_0x372fd2){const _0x427005=a76_0x1ea1a5,_0x2afce0=_0x372fd2[_0x427005(0xb7)](_0x427005(0xbb));if(_0x2afce0&&!validateDbUrl(_0x2afce0[_0x427005(0xb1)]()))throw CliErrors[_0x427005(0xb9)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x2afce0+'\x22');},async 'dryRun'(_0x50806b){const _0xb364b6=a76_0x1ea1a5,_0x3c1752=_0x50806b['num']('id'),_0xe1c2f6=await getDbLinkInfo(_0x3c1752),_0x534bdb={..._0xe1c2f6},_0x183bd6=_0x50806b[_0xb364b6(0xb7)](_0xb364b6(0xaa));if(_0x183bd6)_0x534bdb[_0xb364b6(0xa1)]=_0x183bd6;const _0x118fa1=_0x50806b[_0xb364b6(0xb7)](_0xb364b6(0xbb));if(_0x118fa1)_0x534bdb['dbUrl']=_0x118fa1['trim']();const _0x46ba87=_0x50806b['str'](_0xb364b6(0xa2));if(_0x46ba87)_0x534bdb[_0xb364b6(0xa2)]=_0x46ba87;const _0x2c06c1=_0x50806b[_0xb364b6(0xb7)]('password');if(_0x2c06c1)_0x534bdb['password']=_0x2c06c1;const _0x11af93=_0x50806b[_0xb364b6(0xb7)](_0xb364b6(0xb5));if(_0x11af93)_0x534bdb['dbParam']=_0x11af93;const _0x4bf66e=_0x50806b[_0xb364b6(0xb7)](_0xb364b6(0xba));if(_0x4bf66e)_0x534bdb[_0xb364b6(0xbc)]=_0x4bf66e;const _0x2cd3c9=sanitizeDbLinkForOutput(_0x534bdb);return{'method':_0xb364b6(0xad),'url':_0xb364b6(0xa9),'body':_0x2cd3c9,'description':_0xb364b6(0xb4)};},async 'execute'(_0x5c1cbf){const _0x53d1a5=a76_0x1ea1a5,_0x3ebbc=_0x5c1cbf['num']('id'),_0x150eb3=await getDbLinkInfo(_0x3ebbc),_0x3bfa94={..._0x150eb3},_0x2f4815=_0x5c1cbf[_0x53d1a5(0xb7)](_0x53d1a5(0xaa));if(_0x2f4815)_0x3bfa94[_0x53d1a5(0xa1)]=_0x2f4815;const _0x335b1a=_0x5c1cbf[_0x53d1a5(0xb7)](_0x53d1a5(0xbb));if(_0x335b1a)_0x3bfa94[_0x53d1a5(0xb3)]=_0x335b1a[_0x53d1a5(0xb1)]();const _0x2d4bcd=_0x5c1cbf[_0x53d1a5(0xb7)](_0x53d1a5(0xa2));if(_0x2d4bcd)_0x3bfa94[_0x53d1a5(0xa2)]=_0x2d4bcd;const _0x39e4e7=_0x5c1cbf['str'](_0x53d1a5(0xa5));if(_0x39e4e7)_0x3bfa94[_0x53d1a5(0xa5)]=_0x39e4e7;const _0x485329=_0x5c1cbf[_0x53d1a5(0xb7)](_0x53d1a5(0xb5));if(_0x485329)_0x3bfa94[_0x53d1a5(0xb2)]=_0x485329;const _0x14f534=_0x5c1cbf[_0x53d1a5(0xb7)](_0x53d1a5(0xba));if(_0x14f534)_0x3bfa94[_0x53d1a5(0xbc)]=_0x14f534;const {id:_0x4f7087,entity:_0x2975c7}=normalizeEntityWithIdResponse(await updateDbLink(_0x3bfa94));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x2975c7),'message':_0x53d1a5(0xaf)+(_0x4f7087??_0x3ebbc)};}};
@@ -1 +1 @@
1
- const a77_0x3d3ef3=a77_0x34c9;(function(_0x315df7,_0x30bb55){const _0x1769c4=a77_0x34c9,_0x2d62c7=_0x315df7();while(!![]){try{const _0xa51765=parseInt(_0x1769c4(0x189))/0x1*(-parseInt(_0x1769c4(0x1c5))/0x2)+parseInt(_0x1769c4(0x1c4))/0x3+parseInt(_0x1769c4(0x1c6))/0x4+-parseInt(_0x1769c4(0x1b7))/0x5*(parseInt(_0x1769c4(0x1ae))/0x6)+parseInt(_0x1769c4(0x1a8))/0x7+-parseInt(_0x1769c4(0x1b1))/0x8+parseInt(_0x1769c4(0x1a4))/0x9;if(_0xa51765===_0x30bb55)break;else _0x2d62c7['push'](_0x2d62c7['shift']());}catch(_0x85e812){_0x2d62c7['push'](_0x2d62c7['shift']());}}}(a77_0x37ea,0xc5cf5));import a77_0x3a2946 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a77_0x37ea(){const _0x178067=['✓\x20Valid\x20JSON','✓\x20Valid','doctor','gray','(not\x20found)','cookie','log','\x20\x20Merged\x20Config','empty','(default)','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','pageSize','slice','(no\x20file)','✗\x20Not\x20logged\x20in','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','\x20(default)','riskLevel','557WFkgQs','explicitAppName','verbose','Global','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','repeat','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','green','locale','\x20\x20─','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','format','(default:\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','apiDir','keys','✗\x20Expired','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','length','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20←\x20current','status','\x20\x20Apps','7516017CPEUGA','\x20doctor','appCode','currentApp','9703393nyYMtD','⚠\x20Empty\x20(treated\x20as\x20{})','missing','Project','\x20\x20explicitAppName:\x20','platform','513246XThAvA','padEnd','version','7344432QRkZuH','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apps','15eBWGTk','appcode','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','(not\x20set)','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','source','bold','red','value','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1757817WCOtRH','5498HTUmjm','2835392LmfCFT','raw','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','check'];a77_0x37ea=function(){return _0x178067;};return a77_0x37ea();}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';function a77_0x34c9(_0x3ba47a,_0x13fe39){_0x3ba47a=_0x3ba47a-0x175;const _0x37ea04=a77_0x37ea();let _0x34c920=_0x37ea04[_0x3ba47a];return _0x34c920;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x342a57){const _0x10f7a5=a77_0x34c9,_0x66d2c0=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x10f7a5(0x182)](0x0,0xa)+')':VERSION,_0x3533b=buildConfigFromFlags({}),_0x40a3ea=getCookie();console[_0x10f7a5(0x17a)](),console[_0x10f7a5(0x17a)](a77_0x3a2946[_0x10f7a5(0x1bf)](CLI_BIN_NAME+_0x10f7a5(0x1a5))),console['log'](a77_0x3a2946['gray']('─'[_0x10f7a5(0x18e)](0x32))),console[_0x10f7a5(0x17a)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x66d2c0),console[_0x10f7a5(0x17a)](_0x10f7a5(0x197)+process[_0x10f7a5(0x1b0)]),console[_0x10f7a5(0x17a)](_0x10f7a5(0x193)+process[_0x10f7a5(0x1ad)]+'\x20'+process['arch']),console[_0x10f7a5(0x17a)](),console['log'](a77_0x3a2946[_0x10f7a5(0x1bf)]('\x20\x20Config\x20Files')),console[_0x10f7a5(0x17a)](a77_0x3a2946[_0x10f7a5(0x177)](_0x10f7a5(0x192)['repeat'](0x1e)));const _0x1ab39e=getGlobalConfigPath(),_0x1b47df=getProjectConfigPath();console[_0x10f7a5(0x17a)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1ab39e||a77_0x3a2946['gray'](_0x10f7a5(0x178)))),console[_0x10f7a5(0x17a)](_0x10f7a5(0x1b3)+(_0x1b47df||a77_0x3a2946['gray'](_0x10f7a5(0x178)))),console[_0x10f7a5(0x17a)](),console[_0x10f7a5(0x17a)](a77_0x3a2946[_0x10f7a5(0x1bf)]('\x20\x20Config\x20JSON')),console[_0x10f7a5(0x17a)](a77_0x3a2946[_0x10f7a5(0x177)](_0x10f7a5(0x192)[_0x10f7a5(0x18e)](0x1e)));const _0x1e0f64=(_0x13f37b,_0x23afb8)=>{const _0x2eece1=_0x10f7a5;if(!_0x23afb8){console[_0x2eece1(0x17a)]('\x20\x20'+_0x13f37b[_0x2eece1(0x1af)](0x11)+'\x20'+a77_0x3a2946[_0x2eece1(0x177)](_0x2eece1(0x183)));return;}const _0x43885d=inspectCliConfigJsonFile(_0x23afb8);if(_0x43885d[_0x2eece1(0x1a2)]==='ok')console[_0x2eece1(0x17a)]('\x20\x20'+_0x13f37b['padEnd'](0x11)+'\x20'+a77_0x3a2946[_0x2eece1(0x190)](_0x2eece1(0x1ca)));else{if(_0x43885d[_0x2eece1(0x1a2)]===_0x2eece1(0x17c))console[_0x2eece1(0x17a)]('\x20\x20'+_0x13f37b[_0x2eece1(0x1af)](0x11)+'\x20'+a77_0x3a2946['yellow'](_0x2eece1(0x1a9)));else _0x43885d[_0x2eece1(0x1a2)]===_0x2eece1(0x1aa)?console[_0x2eece1(0x17a)]('\x20\x20'+_0x13f37b['padEnd'](0x11)+'\x20'+a77_0x3a2946[_0x2eece1(0x177)]('(missing)')):(console['log']('\x20\x20'+_0x13f37b['padEnd'](0x11)+'\x20'+a77_0x3a2946[_0x2eece1(0x1c0)]('✗\x20Invalid\x20JSON')),console[_0x2eece1(0x17a)]('\x20\x20'+''[_0x2eece1(0x1af)](0x11)+'\x20'+a77_0x3a2946['red'](_0x43885d['message'])));}};_0x1e0f64(_0x10f7a5(0x18c),_0x1ab39e),_0x1e0f64(_0x10f7a5(0x1ab),_0x1b47df),console['log'](),console['log'](a77_0x3a2946[_0x10f7a5(0x1bf)](_0x10f7a5(0x17b))),console[_0x10f7a5(0x17a)](a77_0x3a2946[_0x10f7a5(0x177)]('\x20\x20─'[_0x10f7a5(0x18e)](0x1e))),console[_0x10f7a5(0x17a)](_0x10f7a5(0x19d)+(_0x3533b[_0x10f7a5(0x1a6)]||a77_0x3a2946[_0x10f7a5(0x1c0)](_0x10f7a5(0x1bc)))),console[_0x10f7a5(0x17a)](_0x10f7a5(0x1c3)+_0x3533b[_0x10f7a5(0x1ba)]),console['log'](_0x10f7a5(0x185)+_0x3533b[_0x10f7a5(0x191)]),console[_0x10f7a5(0x17a)](_0x10f7a5(0x17f)+_0x3533b[_0x10f7a5(0x19a)]),console['log'](_0x10f7a5(0x1c8)+(_0x3533b['defaultApp']||a77_0x3a2946[_0x10f7a5(0x177)](_0x10f7a5(0x180)))),console[_0x10f7a5(0x17a)](_0x10f7a5(0x1bd)+(_0x3533b[_0x10f7a5(0x1a7)]||a77_0x3a2946['gray'](_0x10f7a5(0x180)))),console[_0x10f7a5(0x17a)](_0x10f7a5(0x1ac)+(_0x3533b[_0x10f7a5(0x18a)]||a77_0x3a2946[_0x10f7a5(0x177)](_0x10f7a5(0x180)))),console['log'](_0x10f7a5(0x17e)+(_0x3533b[_0x10f7a5(0x195)]||a77_0x3a2946['gray'](_0x10f7a5(0x196)+DEFAULT_CONFIG_VALUES[_0x10f7a5(0x195)]+')'))),console['log']('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3533b[_0x10f7a5(0x181)]??a77_0x3a2946['gray'](_0x10f7a5(0x17d)))),console[_0x10f7a5(0x17a)](_0x10f7a5(0x18f)+_0x3533b[_0x10f7a5(0x188)]),console[_0x10f7a5(0x17a)](_0x10f7a5(0x1b9)+_0x3533b[_0x10f7a5(0x18b)]),console[_0x10f7a5(0x17a)](_0x10f7a5(0x1b2)+(_0x3533b[_0x10f7a5(0x179)]?a77_0x3a2946[_0x10f7a5(0x190)](_0x10f7a5(0x198)+_0x3533b['cookie'][_0x10f7a5(0x19f)]+')'):_0x40a3ea?a77_0x3a2946['green']('(set\x20via\x20file,\x20length='+_0x40a3ea[_0x10f7a5(0x19f)]+')'):a77_0x3a2946[_0x10f7a5(0x177)](_0x10f7a5(0x180))));const _0x647b25=Object[_0x10f7a5(0x19b)](_0x3533b[_0x10f7a5(0x1b6)]);if(_0x647b25['length']>0x0){console[_0x10f7a5(0x17a)](),console[_0x10f7a5(0x17a)](a77_0x3a2946[_0x10f7a5(0x1bf)](_0x10f7a5(0x1a3))),console[_0x10f7a5(0x17a)](a77_0x3a2946['gray']('\x20\x20─'[_0x10f7a5(0x18e)](0x1e)));for(const _0x1b5455 of _0x647b25){const _0x413998=_0x3533b['apps'][_0x1b5455],_0x3b131c=_0x1b5455===_0x3533b[_0x10f7a5(0x19e)],_0x25d280=_0x1b5455===_0x3533b['currentApp'],_0x146332=_0x25d280?a77_0x3a2946[_0x10f7a5(0x190)](_0x10f7a5(0x1a1)):'',_0x51d436=_0x3b131c?_0x10f7a5(0x187):'';console[_0x10f7a5(0x17a)]('\x20\x20'+_0x1b5455+_0x51d436+_0x146332),console[_0x10f7a5(0x17a)](_0x10f7a5(0x1c2)+_0x413998[_0x10f7a5(0x1b8)]);const _0x5ae878=buildAppDoctorFields(_0x413998,{'env':_0x3533b[_0x10f7a5(0x1ba)],'apiDir':_0x3533b[_0x10f7a5(0x1c7)][_0x10f7a5(0x19a)]||DEFAULT_CONFIG_VALUES[_0x10f7a5(0x19a)],'cookie':_0x3533b['cookie']||_0x40a3ea||undefined,'accessKey':_0x3533b[_0x10f7a5(0x1b4)]});console[_0x10f7a5(0x17a)](_0x10f7a5(0x194)+_0x5ae878[_0x10f7a5(0x1ba)][_0x10f7a5(0x1c1)]+'\x20\x20'+a77_0x3a2946['gray']('('+_0x5ae878[_0x10f7a5(0x1ba)][_0x10f7a5(0x1be)]+')')),console['log'](_0x10f7a5(0x1bb)+_0x5ae878[_0x10f7a5(0x19a)]['value']+'\x20\x20'+a77_0x3a2946[_0x10f7a5(0x177)]('('+_0x5ae878['apiDir']['source']+')'));const _0x2cbb21=_0x5ae878['cookie']['value']?a77_0x3a2946['green']('(set,\x20length='+_0x5ae878[_0x10f7a5(0x179)]['value'][_0x10f7a5(0x19f)]+')'):a77_0x3a2946[_0x10f7a5(0x177)](_0x10f7a5(0x180));console[_0x10f7a5(0x17a)](_0x10f7a5(0x1a0)+_0x2cbb21+'\x20\x20'+a77_0x3a2946[_0x10f7a5(0x177)]('('+_0x5ae878[_0x10f7a5(0x179)][_0x10f7a5(0x1be)]+')'));const _0x3c1224=_0x5ae878['accessKey']['value']?a77_0x3a2946[_0x10f7a5(0x190)]('(set,\x20length='+_0x5ae878['accessKey'][_0x10f7a5(0x1c1)][_0x10f7a5(0x19f)]+')'):a77_0x3a2946[_0x10f7a5(0x177)](_0x10f7a5(0x180));console[_0x10f7a5(0x17a)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x3c1224+'\x20\x20'+a77_0x3a2946[_0x10f7a5(0x177)]('('+_0x5ae878[_0x10f7a5(0x1b4)][_0x10f7a5(0x1be)]+')'));}}console['log'](),console[_0x10f7a5(0x17a)](a77_0x3a2946[_0x10f7a5(0x1bf)]('\x20\x20API\x20Endpoints')),console['log'](a77_0x3a2946[_0x10f7a5(0x177)](_0x10f7a5(0x192)[_0x10f7a5(0x18e)](0x1e))),console[_0x10f7a5(0x17a)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x10f7a5(0x17a)](_0x10f7a5(0x18d)+getUserDomain()),console['log'](_0x10f7a5(0x186)+getRuntimeDomain()),console[_0x10f7a5(0x17a)](),console[_0x10f7a5(0x17a)](a77_0x3a2946[_0x10f7a5(0x1bf)]('\x20\x20Auth')),console[_0x10f7a5(0x17a)](a77_0x3a2946['gray']('\x20\x20─'[_0x10f7a5(0x18e)](0x1e)));if(_0x40a3ea){const _0x5ba6a4=await getIsSessionValid();console[_0x10f7a5(0x17a)](_0x10f7a5(0x1b5)+(_0x5ba6a4?a77_0x3a2946[_0x10f7a5(0x190)](_0x10f7a5(0x175)):a77_0x3a2946[_0x10f7a5(0x1c0)](_0x10f7a5(0x19c))));}else console[_0x10f7a5(0x17a)](_0x10f7a5(0x1b5)+a77_0x3a2946[_0x10f7a5(0x1c0)](_0x10f7a5(0x184)));return console[_0x10f7a5(0x17a)](),{'ok':!![]};}export const doctorDefinition={'service':a77_0x3d3ef3(0x176),'command':a77_0x3d3ef3(0x1c9),'description':a77_0x3d3ef3(0x199),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a77_0x116d3e=a77_0x3d70;(function(_0x35e834,_0x1908a7){const _0x2527f1=a77_0x3d70,_0x1aa59e=_0x35e834();while(!![]){try{const _0x276d29=-parseInt(_0x2527f1(0x12c))/0x1+parseInt(_0x2527f1(0x12e))/0x2*(parseInt(_0x2527f1(0xe1))/0x3)+parseInt(_0x2527f1(0x12a))/0x4+-parseInt(_0x2527f1(0x115))/0x5+-parseInt(_0x2527f1(0xdf))/0x6*(-parseInt(_0x2527f1(0xf2))/0x7)+-parseInt(_0x2527f1(0xfa))/0x8*(-parseInt(_0x2527f1(0x104))/0x9)+parseInt(_0x2527f1(0x130))/0xa*(-parseInt(_0x2527f1(0xff))/0xb);if(_0x276d29===_0x1908a7)break;else _0x1aa59e['push'](_0x1aa59e['shift']());}catch(_0x27a172){_0x1aa59e['push'](_0x1aa59e['shift']());}}}(a77_0x4042,0x5b4d2));import a77_0x4fa35d from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a77_0x4042(){const _0x216ece=['empty','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing','currentApp','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','2370880TBtbyi','riskLevel','259070iqkjGJ','\x20\x20Config\x20Files','4178yqbrne','green','948620OEACqA','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apps','appCode','\x20←\x20current','6WEYWIc','\x20\x20runtimeDomain:\x20\x20\x20','270TaiThA','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','verbose','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','✗\x20Invalid\x20JSON','\x20\x20Auth','\x20\x20Apps','\x20\x20Merged\x20Config','source','pageSize','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','slice','repeat','log','(not\x20found)','3125087ofeBjH','platform','unknown','(set,\x20length=','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','✓\x20Valid','locale','4486136GHTJgb','cookie','status','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','77XWPyZa','check','\x20\x20─','keys','read','9nxXfzx','length','bold','(none)','yellow','accessKey','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','(set\x20via\x20file,\x20length=','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','format','Global','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','gray','2454320IragOc','Project','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','(no\x20file)','env','red','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','value','padEnd','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20set)','apiDir','message'];a77_0x4042=function(){return _0x216ece;};return a77_0x4042();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a77_0x3d70(_0x558acb,_0x4bd1e7){_0x558acb=_0x558acb-0xdf;const _0x4042f8=a77_0x4042();let _0x3d707d=_0x4042f8[_0x558acb];return _0x3d707d;}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(_0x2c4dbe){const _0x4b3530=a77_0x3d70,_0x30c1e3=GIT_COMMIT!==_0x4b3530(0xf4)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x4b3530(0xee)](0x0,0xa)+')':VERSION,_0x51bd32=buildConfigFromFlags({}),_0x5951a6=getCookie();console[_0x4b3530(0xf0)](),console[_0x4b3530(0xf0)](a77_0x4fa35d[_0x4b3530(0x106)](CLI_BIN_NAME+'\x20doctor')),console[_0x4b3530(0xf0)](a77_0x4fa35d[_0x4b3530(0x114)]('─'[_0x4b3530(0xef)](0x32))),console[_0x4b3530(0xf0)](_0x4b3530(0xfe)+_0x30c1e3),console[_0x4b3530(0xf0)](_0x4b3530(0xfd)+process['version']),console[_0x4b3530(0xf0)](_0x4b3530(0xf6)+process[_0x4b3530(0xf3)]+'\x20'+process['arch']),console['log'](),console['log'](a77_0x4fa35d[_0x4b3530(0x106)](_0x4b3530(0x12d))),console[_0x4b3530(0xf0)](a77_0x4fa35d[_0x4b3530(0x114)](_0x4b3530(0x101)['repeat'](0x1e)));const _0xfc143c=getGlobalConfigPath(),_0x5495a2=getProjectConfigPath();console[_0x4b3530(0xf0)](_0x4b3530(0x11e)+(_0xfc143c||a77_0x4fa35d[_0x4b3530(0x114)](_0x4b3530(0xf1)))),console[_0x4b3530(0xf0)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5495a2||a77_0x4fa35d[_0x4b3530(0x114)](_0x4b3530(0xf1)))),console[_0x4b3530(0xf0)](),console[_0x4b3530(0xf0)](a77_0x4fa35d[_0x4b3530(0x106)](_0x4b3530(0xf7))),console['log'](a77_0x4fa35d['gray'](_0x4b3530(0x101)[_0x4b3530(0xef)](0x1e)));const _0x20beba=(_0x82a9f6,_0xf23190)=>{const _0x548938=_0x4b3530;if(!_0xf23190){console[_0x548938(0xf0)]('\x20\x20'+_0x82a9f6[_0x548938(0x11d)](0x11)+'\x20'+a77_0x4fa35d[_0x548938(0x114)](_0x548938(0x118)));return;}const _0x28830f=inspectCliConfigJsonFile(_0xf23190);if(_0x28830f[_0x548938(0xfc)]==='ok')console[_0x548938(0xf0)]('\x20\x20'+_0x82a9f6[_0x548938(0x11d)](0x11)+'\x20'+a77_0x4fa35d[_0x548938(0x12f)]('✓\x20Valid\x20JSON'));else{if(_0x28830f[_0x548938(0xfc)]===_0x548938(0x122))console[_0x548938(0xf0)]('\x20\x20'+_0x82a9f6['padEnd'](0x11)+'\x20'+a77_0x4fa35d[_0x548938(0x108)](_0x548938(0x10b)));else _0x28830f[_0x548938(0xfc)]===_0x548938(0x127)?console['log']('\x20\x20'+_0x82a9f6[_0x548938(0x11d)](0x11)+'\x20'+a77_0x4fa35d[_0x548938(0x114)]('(missing)')):(console[_0x548938(0xf0)]('\x20\x20'+_0x82a9f6[_0x548938(0x11d)](0x11)+'\x20'+a77_0x4fa35d['red'](_0x548938(0xe6))),console[_0x548938(0xf0)]('\x20\x20'+''[_0x548938(0x11d)](0x11)+'\x20'+a77_0x4fa35d[_0x548938(0x11a)](_0x28830f[_0x548938(0x121)])));}};_0x20beba(_0x4b3530(0x112),_0xfc143c),_0x20beba(_0x4b3530(0x116),_0x5495a2),console['log'](),console[_0x4b3530(0xf0)](a77_0x4fa35d[_0x4b3530(0x106)](_0x4b3530(0xe9))),console[_0x4b3530(0xf0)](a77_0x4fa35d[_0x4b3530(0x114)]('\x20\x20─'[_0x4b3530(0xef)](0x1e))),console['log'](_0x4b3530(0x131)+(_0x51bd32[_0x4b3530(0x135)]||a77_0x4fa35d[_0x4b3530(0x11a)](_0x4b3530(0x11f)))),console['log'](_0x4b3530(0x126)+_0x51bd32[_0x4b3530(0x119)]),console[_0x4b3530(0xf0)](_0x4b3530(0xec)+_0x51bd32[_0x4b3530(0xf9)]),console['log'](_0x4b3530(0x133)+_0x51bd32[_0x4b3530(0x120)]),console['log'](_0x4b3530(0x117)+(_0x51bd32['defaultApp']||a77_0x4fa35d[_0x4b3530(0x114)]('(none)'))),console['log'](_0x4b3530(0x129)+(_0x51bd32[_0x4b3530(0x128)]||a77_0x4fa35d[_0x4b3530(0x114)](_0x4b3530(0x107)))),console['log']('\x20\x20explicitAppName:\x20'+(_0x51bd32['explicitAppName']||a77_0x4fa35d[_0x4b3530(0x114)]('(none)'))),console[_0x4b3530(0xf0)](_0x4b3530(0x10c)+(_0x51bd32[_0x4b3530(0x111)]||a77_0x4fa35d[_0x4b3530(0x114)](_0x4b3530(0xe5)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x4b3530(0xf0)](_0x4b3530(0x110)+(_0x51bd32[_0x4b3530(0xeb)]??a77_0x4fa35d['gray'](_0x4b3530(0x132)))),console['log'](_0x4b3530(0x125)+_0x51bd32[_0x4b3530(0x12b)]),console[_0x4b3530(0xf0)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x51bd32[_0x4b3530(0xe3)]),console[_0x4b3530(0xf0)](_0x4b3530(0xe4)+(_0x51bd32[_0x4b3530(0xfb)]?a77_0x4fa35d[_0x4b3530(0x12f)](_0x4b3530(0xf5)+_0x51bd32['cookie'][_0x4b3530(0x105)]+')'):_0x5951a6?a77_0x4fa35d[_0x4b3530(0x12f)](_0x4b3530(0x10e)+_0x5951a6[_0x4b3530(0x105)]+')'):a77_0x4fa35d[_0x4b3530(0x114)](_0x4b3530(0x107))));const _0x4f639f=Object[_0x4b3530(0x102)](_0x51bd32[_0x4b3530(0x134)]);if(_0x4f639f[_0x4b3530(0x105)]>0x0){console[_0x4b3530(0xf0)](),console[_0x4b3530(0xf0)](a77_0x4fa35d['bold'](_0x4b3530(0xe8))),console[_0x4b3530(0xf0)](a77_0x4fa35d[_0x4b3530(0x114)]('\x20\x20─'['repeat'](0x1e)));for(const _0x152ae8 of _0x4f639f){const _0x2aec7d=_0x51bd32[_0x4b3530(0x134)][_0x152ae8],_0x43da91=_0x152ae8===_0x51bd32[_0x4b3530(0x124)],_0xc64d1=_0x152ae8===_0x51bd32[_0x4b3530(0x128)],_0x38a54e=_0xc64d1?a77_0x4fa35d['green'](_0x4b3530(0x136)):'',_0x1bec73=_0x43da91?'\x20(default)':'';console[_0x4b3530(0xf0)]('\x20\x20'+_0x152ae8+_0x1bec73+_0x38a54e),console['log']('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x2aec7d['appcode']);const _0x26b455=buildAppDoctorFields(_0x2aec7d,{'env':_0x51bd32['env'],'apiDir':_0x51bd32['raw']['apiDir']||DEFAULT_CONFIG_VALUES[_0x4b3530(0x120)],'cookie':_0x51bd32['cookie']||_0x5951a6||undefined,'accessKey':_0x51bd32['accessKey']});console[_0x4b3530(0xf0)](_0x4b3530(0x10f)+_0x26b455[_0x4b3530(0x119)][_0x4b3530(0x11c)]+'\x20\x20'+a77_0x4fa35d[_0x4b3530(0x114)]('('+_0x26b455[_0x4b3530(0x119)][_0x4b3530(0xea)]+')')),console[_0x4b3530(0xf0)](_0x4b3530(0x11b)+_0x26b455[_0x4b3530(0x120)]['value']+'\x20\x20'+a77_0x4fa35d[_0x4b3530(0x114)]('('+_0x26b455[_0x4b3530(0x120)][_0x4b3530(0xea)]+')'));const _0x381ae4=_0x26b455[_0x4b3530(0xfb)][_0x4b3530(0x11c)]?a77_0x4fa35d[_0x4b3530(0x12f)](_0x4b3530(0xf5)+_0x26b455[_0x4b3530(0xfb)]['value'][_0x4b3530(0x105)]+')'):a77_0x4fa35d[_0x4b3530(0x114)]('(none)');console[_0x4b3530(0xf0)](_0x4b3530(0x10a)+_0x381ae4+'\x20\x20'+a77_0x4fa35d[_0x4b3530(0x114)]('('+_0x26b455['cookie'][_0x4b3530(0xea)]+')'));const _0x1b867d=_0x26b455[_0x4b3530(0x109)][_0x4b3530(0x11c)]?a77_0x4fa35d[_0x4b3530(0x12f)]('(set,\x20length='+_0x26b455[_0x4b3530(0x109)][_0x4b3530(0x11c)][_0x4b3530(0x105)]+')'):a77_0x4fa35d[_0x4b3530(0x114)](_0x4b3530(0x107));console[_0x4b3530(0xf0)](_0x4b3530(0xed)+_0x1b867d+'\x20\x20'+a77_0x4fa35d['gray']('('+_0x26b455[_0x4b3530(0x109)]['source']+')'));}}console[_0x4b3530(0xf0)](),console[_0x4b3530(0xf0)](a77_0x4fa35d[_0x4b3530(0x106)](_0x4b3530(0x10d))),console[_0x4b3530(0xf0)](a77_0x4fa35d[_0x4b3530(0x114)]('\x20\x20─'['repeat'](0x1e))),console[_0x4b3530(0xf0)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x4b3530(0xf0)](_0x4b3530(0xe2)+getUserDomain()),console[_0x4b3530(0xf0)](_0x4b3530(0xe0)+getRuntimeDomain()),console[_0x4b3530(0xf0)](),console[_0x4b3530(0xf0)](a77_0x4fa35d[_0x4b3530(0x106)](_0x4b3530(0xe7))),console[_0x4b3530(0xf0)](a77_0x4fa35d['gray']('\x20\x20─'[_0x4b3530(0xef)](0x1e)));if(_0x5951a6){const _0x2808b2=await getIsSessionValid();console[_0x4b3530(0xf0)](_0x4b3530(0x123)+(_0x2808b2?a77_0x4fa35d[_0x4b3530(0x12f)](_0x4b3530(0xf8)):a77_0x4fa35d[_0x4b3530(0x11a)]('✗\x20Expired')));}else console['log'](_0x4b3530(0x123)+a77_0x4fa35d[_0x4b3530(0x11a)]('✗\x20Not\x20logged\x20in'));return console[_0x4b3530(0xf0)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a77_0x116d3e(0x100),'description':a77_0x116d3e(0x113),'risk':a77_0x116d3e(0x103),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a78_0x444720=a78_0x4b19;(function(_0x16a47f,_0x1a0566){const _0x1fa3a0=a78_0x4b19,_0x4dd7a8=_0x16a47f();while(!![]){try{const _0x3a238e=parseInt(_0x1fa3a0(0x111))/0x1*(-parseInt(_0x1fa3a0(0x126))/0x2)+parseInt(_0x1fa3a0(0x107))/0x3+parseInt(_0x1fa3a0(0xfc))/0x4+-parseInt(_0x1fa3a0(0x11a))/0x5+-parseInt(_0x1fa3a0(0xff))/0x6+parseInt(_0x1fa3a0(0x10f))/0x7*(parseInt(_0x1fa3a0(0x122))/0x8)+-parseInt(_0x1fa3a0(0x11e))/0x9;if(_0x3a238e===_0x1a0566)break;else _0x4dd7a8['push'](_0x4dd7a8['shift']());}catch(_0x5f530b){_0x4dd7a8['push'](_0x4dd7a8['shift']());}}}(a78_0x3530,0xbbbe7));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';function a78_0x3530(){const _0x2db866=['Auto-confirm\x20prompts','cwd','2VjxBwB','\x20\x20Apps:\x20','valid','defaultApp','5393804rQOGeF','boolean','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','2617542MAZnga','Target\x20environment','custom','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','\x20\x20Config:\x20','write','project','join','3822648NCDakw','Use\x20`','message','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','App\x20code\x20to\x20initialize\x20with','production','bool','validation','658616ucfTLz','log','628849rKVYly','some','nonInteractive','env','appcode','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','appCode','../../commands/project/init.js','str','2377930qykdbQ','map','string','run','8744328lgepqi','global','\x0a✓\x20Successfully\x20initialized\x20','Write\x20to\x20global\x20config\x20instead\x20of\x20project','56FyJnZY','yes'];a78_0x3530=function(){return _0x2db866;};return a78_0x3530();}import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x16c775){return{'appCode':_0x16c775,'appName':_0x16c775};}function a78_0x4b19(_0x4a18d2,_0x375a74){_0x4a18d2=_0x4a18d2-0xfa;const _0x35303a=a78_0x3530();let _0x4b196e=_0x35303a[_0x4a18d2];return _0x4b196e;}function writeInitConfig(_0x145426,_0x3b04c9,_0x3f4d76){const _0x574080=a78_0x4b19,_0x15d04c=resolveWriteConfigPath(_0x145426),_0x1f8d9f=buildCanonicalProjectConfig({},{'appCodes':_0x3b04c9[_0x574080(0x11b)](_0x44e041=>_0x44e041[_0x574080(0x117)]),'env':_0x3f4d76,'metadata':{'version':getCliVersion(),'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0x15d04c,_0x1f8d9f);const _0x290756=_0x145426===_0x574080(0x11f)?'global':_0x574080(0x105);console[_0x574080(0x110)](_0x574080(0x120)+_0x290756+'\x20config'),console['log'](_0x574080(0x127)+_0x3b04c9[_0x574080(0x11b)](_0x58bb1b=>_0x58bb1b['appCode'])[_0x574080(0x106)](',\x20')),console['log']('\x20\x20Default:\x20'+_0x1f8d9f[_0x574080(0xfb)]),console[_0x574080(0x110)]('\x20\x20Env:\x20'+_0x1f8d9f['env']),console['log'](_0x574080(0x103)+_0x15d04c);}async function runSmartInit(_0x123e72){const _0x338a40=a78_0x4b19,_0x2d4d7c=process[_0x338a40(0x125)](),_0x274336=_0x123e72[_0x338a40(0x10d)]('global')?_0x338a40(0x11f):_0x338a40(0x105),_0x108c61=_0x123e72[_0x338a40(0x119)](_0x338a40(0x114))||'production',_0x27c4e5=_0x123e72['str'](_0x338a40(0x115))||undefined,_0x3fdbb2=_0x123e72[_0x338a40(0x10d)](_0x338a40(0x105));if(_0x3fdbb2){const {initConfig:_0x3d1040}=await import(_0x338a40(0x118));return _0x3d1040({'appcode':_0x27c4e5,'env':_0x108c61,'autoYes':_0x123e72['bool'](_0x338a40(0x123))});}if(_0x274336===_0x338a40(0x105)){const _0x2236ef=existsSync(resolve(_0x2d4d7c,NEW_CONFIG_NAME)),_0x502738=LEGACY_CONFIG_NAMES[_0x338a40(0x112)](_0x3125f9=>existsSync(resolve(_0x2d4d7c,_0x3125f9)));if(_0x502738&&!_0x2236ef)return console['log']('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x123e72[_0x338a40(0x113)],{'yes':_0x123e72['bool'](_0x338a40(0x123))});if(_0x2236ef)throw CliErrors[_0x338a40(0x10e)](_0x338a40(0x102),_0x338a40(0x108)+CLI_BIN_NAME+_0x338a40(0x10a));}if(_0x27c4e5){const _0x3db840=validateAppcode(_0x27c4e5);if(!_0x3db840[_0x338a40(0xfa)])throw CliErrors[_0x338a40(0x10e)](_0x3db840[_0x338a40(0x109)]);writeInitConfig(_0x274336,[syntheticApp(_0x27c4e5)],_0x108c61);return;}if(_0x123e72[_0x338a40(0x113)])throw CliErrors['flagMissing'](_0x338a40(0x115),'Usage:\x20'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x4b9161=getCookie(),_0x5e0bda=await selectMultipleApps(_0x4b9161),_0x176577=_0x5e0bda===_0x338a40(0x101)?[syntheticApp(await promptCustomAppcode())]:_0x5e0bda;writeInitConfig(_0x274336,_0x176577,_0x108c61);}const initFlags=[{'name':a78_0x444720(0x11f),'type':a78_0x444720(0xfd),'description':a78_0x444720(0x121),'default':![]},{'name':a78_0x444720(0x114),'type':a78_0x444720(0x11c),'description':a78_0x444720(0x100),'default':a78_0x444720(0x10c),'enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':a78_0x444720(0x11c),'description':a78_0x444720(0x10b)},{'name':a78_0x444720(0x105),'type':a78_0x444720(0xfd),'description':a78_0x444720(0xfe),'default':![]},{'name':a78_0x444720(0x123),'type':a78_0x444720(0xfd),'description':a78_0x444720(0x124),'default':![]}];export const initDefinitions=[{'service':'init','command':a78_0x444720(0x11d),'description':a78_0x444720(0x116),'risk':a78_0x444720(0x104),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x34a1f5){return await runSmartInit(_0x34a1f5),{'ok':!![]};}}];
1
+ const a78_0x3631fb=a78_0x5e21;(function(_0x8cc760,_0x455a43){const _0xbd9052=a78_0x5e21,_0x506674=_0x8cc760();while(!![]){try{const _0x47dbe3=parseInt(_0xbd9052(0x18f))/0x1+parseInt(_0xbd9052(0x17f))/0x2+parseInt(_0xbd9052(0x17a))/0x3*(parseInt(_0xbd9052(0x191))/0x4)+-parseInt(_0xbd9052(0x180))/0x5*(-parseInt(_0xbd9052(0x181))/0x6)+-parseInt(_0xbd9052(0x169))/0x7+parseInt(_0xbd9052(0x184))/0x8*(parseInt(_0xbd9052(0x16a))/0x9)+-parseInt(_0xbd9052(0x177))/0xa;if(_0x47dbe3===_0x455a43)break;else _0x506674['push'](_0x506674['shift']());}catch(_0x31d181){_0x506674['push'](_0x506674['shift']());}}}(a78_0xbea7,0x6dfb3));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';function a78_0x5e21(_0x4be903,_0x274622){_0x4be903=_0x4be903-0x162;const _0xbea7a4=a78_0xbea7();let _0x5e2168=_0xbea7a4[_0x4be903];return _0x5e2168;}import{CLI_BIN_NAME}from'../../constant/cli.js';function a78_0xbea7(){const _0x330b4d=['custom','valid','cwd','init','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','bool','boolean','31040qyzTuq','join','848YEAVwR','production','flagMissing','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','\x20\x20Default:\x20','Use\x20`','../../commands/project/init.js','validation','5661887KMWhfW','10134whKHzl','run','appcode','global','检测到旧配置文件,正在自动升级...\x0a','\x20\x20Apps:\x20','Auto-confirm\x20prompts','Target\x20environment','Usage:\x20','str','map','toLocaleString','appCode','9856100imMcna','message','project','10938PRnpUv','string','App\x20code\x20to\x20initialize\x20with','log','nonInteractive','1011484gMKDCA','5nhXJrn','3591156MWFaOW','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','write','2392HtvUgE','defaultApp','\x20config','env'];a78_0xbea7=function(){return _0x330b4d;};return a78_0xbea7();}import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x1bcdef){return{'appCode':_0x1bcdef,'appName':_0x1bcdef};}function writeInitConfig(_0x1e23b5,_0x36343a,_0x1cda4a){const _0x48868a=a78_0x5e21,_0x4b386a=resolveWriteConfigPath(_0x1e23b5),_0x18ea0c=buildCanonicalProjectConfig({},{'appCodes':_0x36343a['map'](_0x173317=>_0x173317[_0x48868a(0x176)]),'env':_0x1cda4a,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x48868a(0x175)]()}});writeConfigFile(_0x4b386a,_0x18ea0c);const _0x56405f=_0x1e23b5===_0x48868a(0x16d)?_0x48868a(0x16d):_0x48868a(0x179);console[_0x48868a(0x17d)]('\x0a✓\x20Successfully\x20initialized\x20'+_0x56405f+_0x48868a(0x186)),console[_0x48868a(0x17d)](_0x48868a(0x16f)+_0x36343a[_0x48868a(0x174)](_0x58be2d=>_0x58be2d[_0x48868a(0x176)])[_0x48868a(0x190)](',\x20')),console['log'](_0x48868a(0x165)+_0x18ea0c[_0x48868a(0x185)]),console[_0x48868a(0x17d)]('\x20\x20Env:\x20'+_0x18ea0c[_0x48868a(0x187)]),console[_0x48868a(0x17d)]('\x20\x20Config:\x20'+_0x4b386a);}async function runSmartInit(_0x49b8d0){const _0x12537d=a78_0x5e21,_0x4a1479=process[_0x12537d(0x18a)](),_0x4b31fa=_0x49b8d0[_0x12537d(0x18d)](_0x12537d(0x16d))?_0x12537d(0x16d):_0x12537d(0x179),_0x3e9ed4=_0x49b8d0['str'](_0x12537d(0x187))||_0x12537d(0x162),_0x432723=_0x49b8d0[_0x12537d(0x173)]('appcode')||undefined,_0x4a1923=_0x49b8d0['bool'](_0x12537d(0x179));if(_0x4a1923){const {initConfig:_0x13f794}=await import(_0x12537d(0x167));return _0x13f794({'appcode':_0x432723,'env':_0x3e9ed4,'autoYes':_0x49b8d0[_0x12537d(0x18d)]('yes')});}if(_0x4b31fa===_0x12537d(0x179)){const _0x507831=existsSync(resolve(_0x4a1479,NEW_CONFIG_NAME)),_0x28f0cf=LEGACY_CONFIG_NAMES['some'](_0x1486c4=>existsSync(resolve(_0x4a1479,_0x1486c4)));if(_0x28f0cf&&!_0x507831)return console[_0x12537d(0x17d)](_0x12537d(0x16e)),upgradeApp(_0x49b8d0[_0x12537d(0x17e)],{'yes':_0x49b8d0[_0x12537d(0x18d)]('yes')});if(_0x507831)throw CliErrors[_0x12537d(0x168)](_0x12537d(0x164),_0x12537d(0x166)+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x432723){const _0x243783=validateAppcode(_0x432723);if(!_0x243783[_0x12537d(0x189)])throw CliErrors[_0x12537d(0x168)](_0x243783[_0x12537d(0x178)]);writeInitConfig(_0x4b31fa,[syntheticApp(_0x432723)],_0x3e9ed4);return;}if(_0x49b8d0[_0x12537d(0x17e)])throw CliErrors[_0x12537d(0x163)](_0x12537d(0x16c),_0x12537d(0x172)+CLI_BIN_NAME+_0x12537d(0x18c));const _0x793ba5=getCookie(),_0xf03b38=await selectMultipleApps(_0x793ba5),_0x157cec=_0xf03b38===_0x12537d(0x188)?[syntheticApp(await promptCustomAppcode())]:_0xf03b38;writeInitConfig(_0x4b31fa,_0x157cec,_0x3e9ed4);}const initFlags=[{'name':a78_0x3631fb(0x16d),'type':a78_0x3631fb(0x18e),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a78_0x3631fb(0x187),'type':a78_0x3631fb(0x17b),'description':a78_0x3631fb(0x171),'default':a78_0x3631fb(0x162),'enum':[...RABETBASE_ENV_VALUES]},{'name':a78_0x3631fb(0x16c),'type':a78_0x3631fb(0x17b),'description':a78_0x3631fb(0x17c)},{'name':a78_0x3631fb(0x179),'type':a78_0x3631fb(0x18e),'description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':'yes','type':a78_0x3631fb(0x18e),'description':a78_0x3631fb(0x170),'default':![]}];export const initDefinitions=[{'service':a78_0x3631fb(0x18b),'command':a78_0x3631fb(0x16b),'description':a78_0x3631fb(0x182),'risk':a78_0x3631fb(0x183),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x341444){return await runSmartInit(_0x341444),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x4d6608,_0x441b2f){const _0x47c5cd=a79_0x11d5,_0x56b873=_0x4d6608();while(!![]){try{const _0x5466ea=-parseInt(_0x47c5cd(0x76))/0x1+-parseInt(_0x47c5cd(0x73))/0x2*(-parseInt(_0x47c5cd(0x7b))/0x3)+parseInt(_0x47c5cd(0x77))/0x4+parseInt(_0x47c5cd(0x71))/0x5*(parseInt(_0x47c5cd(0x78))/0x6)+-parseInt(_0x47c5cd(0x74))/0x7*(parseInt(_0x47c5cd(0x79))/0x8)+-parseInt(_0x47c5cd(0x72))/0x9+parseInt(_0x47c5cd(0x7a))/0xa*(parseInt(_0x47c5cd(0x75))/0xb);if(_0x5466ea===_0x441b2f)break;else _0x56b873['push'](_0x56b873['shift']());}catch(_0xd9c699){_0x56b873['push'](_0x56b873['shift']());}}}(a79_0x3cf2,0x68849));function a79_0x11d5(_0x40cac4,_0x3ff9e6){_0x40cac4=_0x40cac4-0x71;const _0x3cf2aa=a79_0x3cf2();let _0x11d50c=_0x3cf2aa[_0x40cac4];return _0x11d50c;}function a79_0x3cf2(){const _0x302819=['1517710SYREAX','24AoGNLS','40765uwPltU','2069307TVIOtJ','29374pecRHF','7WSvQCt','11caThIq','558411HsuExf','1315056SjzOSr','534bUPQhB','857672yCYhIF'];a79_0x3cf2=function(){return _0x302819;};return a79_0x3cf2();}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
1
+ (function(_0x2cc8bb,_0x47ea0c){const _0x4b497b=a79_0x48c2,_0x195c50=_0x2cc8bb();while(!![]){try{const _0x1852ff=-parseInt(_0x4b497b(0x98))/0x1*(-parseInt(_0x4b497b(0x96))/0x2)+-parseInt(_0x4b497b(0x97))/0x3+-parseInt(_0x4b497b(0x94))/0x4*(-parseInt(_0x4b497b(0x9a))/0x5)+parseInt(_0x4b497b(0x9d))/0x6+-parseInt(_0x4b497b(0x95))/0x7*(parseInt(_0x4b497b(0x9c))/0x8)+parseInt(_0x4b497b(0x9b))/0x9*(-parseInt(_0x4b497b(0x93))/0xa)+-parseInt(_0x4b497b(0x9e))/0xb*(-parseInt(_0x4b497b(0x99))/0xc);if(_0x1852ff===_0x47ea0c)break;else _0x195c50['push'](_0x195c50['shift']());}catch(_0x13e366){_0x195c50['push'](_0x195c50['shift']());}}}(a79_0x4a92,0x2cbff));import{issueReport}from'../../commands/issue/report.js';function a79_0x48c2(_0x529255,_0x51d371){_0x529255=_0x529255-0x93;const _0x4a921b=a79_0x4a92();let _0x48c29d=_0x4a921b[_0x529255];return _0x48c29d;}export const issueDefinitions=[issueReport];function a79_0x4a92(){const _0x12c4b8=['1051857iUPZpZ','2529400wTSycE','542868WXtWfH','11QCwezF','30xJKTHM','148LqiPaA','7kUeyFX','298tFEQdV','327561HQpSVZ','2079QnGJbq','2885928QZecHj','43045DkrNvs'];a79_0x4a92=function(){return _0x12c4b8;};return a79_0x4a92();}
@@ -1 +1 @@
1
- const a80_0x5f5923=a80_0x4345;(function(_0x3d315b,_0x5cff47){const _0x13c761=a80_0x4345,_0x5d77e7=_0x3d315b();while(!![]){try{const _0x1934f9=-parseInt(_0x13c761(0x89))/0x1*(-parseInt(_0x13c761(0x9f))/0x2)+-parseInt(_0x13c761(0x8e))/0x3+parseInt(_0x13c761(0xa1))/0x4*(-parseInt(_0x13c761(0x8d))/0x5)+-parseInt(_0x13c761(0xa5))/0x6+-parseInt(_0x13c761(0x90))/0x7+parseInt(_0x13c761(0x99))/0x8+parseInt(_0x13c761(0x8f))/0x9;if(_0x1934f9===_0x5cff47)break;else _0x5d77e7['push'](_0x5d77e7['shift']());}catch(_0x580fe1){_0x5d77e7['push'](_0x5d77e7['shift']());}}}(a80_0x3218,0x3f73d));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0x5f5923(0x93);const NUDGE_SUPPRESSED_CODES=new Set([a80_0x5f5923(0x94),a80_0x5f5923(0x97),'config_missing',a80_0x5f5923(0x9d),a80_0x5f5923(0x87),a80_0x5f5923(0xa0),'validation_error',a80_0x5f5923(0x98)]),defaultWriter=_0x415a41=>{const _0xf81b80=a80_0x5f5923;process['stderr'][_0xf81b80(0xa4)](_0x415a41);};function a80_0x4345(_0x3c75f2,_0x25f815){_0x3c75f2=_0x3c75f2-0x87;const _0x321891=a80_0x3218();let _0x4345b1=_0x321891[_0x3c75f2];return _0x4345b1;}export function shouldNudgeForError(_0x5ab63f,_0x5cce6b){const _0x442f35=a80_0x5f5923;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x5cce6b[_0x442f35(0x88)]===_0x442f35(0x9a)&&_0x5cce6b[_0x442f35(0xa6)]===_0x442f35(0xa3))return![];if(_0x5ab63f instanceof CliError)return!NUDGE_SUPPRESSED_CODES['has'](_0x5ab63f[_0x442f35(0x95)]);return!![];}export function printIssueReportNudgeForError(_0x32016a,_0x2e59dd,_0x35bac7=defaultWriter){if(!shouldNudgeForError(_0x32016a,_0x2e59dd))return;const _0x2a030d=buildSuggestedTitle(_0x32016a,_0x2e59dd);_0x35bac7(formatNudge(_0x2a030d));}function buildSuggestedTitle(_0x3e813f,_0x59d5c6){const _0x365e9e=a80_0x5f5923,_0xad3e35=_0x3e813f instanceof Error?_0x3e813f[_0x365e9e(0xa7)]:String(_0x3e813f),_0x4c23b0=_0xad3e35[_0x365e9e(0x8b)](/[\r\n]+/g,'\x20')[_0x365e9e(0x8b)](/\s+/g,'\x20')[_0x365e9e(0x96)]()['slice'](0x0,0x78)[_0x365e9e(0x8b)](/"/g,'\x5c\x22'),_0xb9333b=CLI_BIN_NAME+'\x20'+_0x59d5c6[_0x365e9e(0x88)]+'\x20'+_0x59d5c6[_0x365e9e(0xa6)];return _0x4c23b0[_0x365e9e(0x8c)]>0x0?_0xb9333b+':\x20'+_0x4c23b0:_0xb9333b;}function a80_0x3218(){const _0x2bc647=['\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','2LEcQNt','flag_missing','1252948JAqrpU','join','report','write','2220870ROTEwT','command','message','unknown_command','service','150316mBcnAk','=1\x20to\x20silence\x20this\x20hint.','replace','length','5WuxINW','717306YDtjtg','12123549AgpdXi','2714698zknAfZ','Hit\x20a\x20','\x22\x20\x5c','RABETBASE_DISABLE_ISSUE_NUDGE','cancelled','code','trim','auth_required','network_error','582576PdnGUE','issue','\x20\x20\x20\x20--title\x20\x22','\x20issue\x20report\x20\x5c','not_in_project'];a80_0x3218=function(){return _0x2bc647;};return a80_0x3218();}function formatNudge(_0x2c4f05){const _0x387373=a80_0x5f5923;return['',_0x387373(0x91)+CLI_BIN_NAME+'\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20'+CLI_BIN_NAME+_0x387373(0x9c),_0x387373(0x9b)+_0x2c4f05+_0x387373(0x92),_0x387373(0x9e),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','\x20\x20Set\x20'+NUDGE_OPT_OUT_ENV+_0x387373(0x8a),''][_0x387373(0xa2)]('\x0a');}
1
+ const a80_0x53b0b9=a80_0x2508;(function(_0x4dccd3,_0x998d5f){const _0x40d8ae=a80_0x2508,_0x122397=_0x4dccd3();while(!![]){try{const _0x47256f=-parseInt(_0x40d8ae(0x1a4))/0x1+-parseInt(_0x40d8ae(0x1ae))/0x2+-parseInt(_0x40d8ae(0x193))/0x3+parseInt(_0x40d8ae(0x19e))/0x4+-parseInt(_0x40d8ae(0x199))/0x5+-parseInt(_0x40d8ae(0x1a5))/0x6+parseInt(_0x40d8ae(0x1a7))/0x7*(parseInt(_0x40d8ae(0x1aa))/0x8);if(_0x47256f===_0x998d5f)break;else _0x122397['push'](_0x122397['shift']());}catch(_0x101309){_0x122397['push'](_0x122397['shift']());}}}(a80_0x4db6,0xdde5f));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0x53b0b9(0x1ac);const NUDGE_SUPPRESSED_CODES=new Set(['cancelled',a80_0x53b0b9(0x197),'config_missing',a80_0x53b0b9(0x1a3),a80_0x53b0b9(0x196),a80_0x53b0b9(0x194),a80_0x53b0b9(0x19d),'network_error']),defaultWriter=_0x44a4f9=>{process['stderr']['write'](_0x44a4f9);};export function shouldNudgeForError(_0x59497c,_0x23b2c3){const _0x3c8bc2=a80_0x53b0b9;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x23b2c3[_0x3c8bc2(0x195)]===_0x3c8bc2(0x19f)&&_0x23b2c3[_0x3c8bc2(0x1b0)]===_0x3c8bc2(0x1a6))return![];if(_0x59497c instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x3c8bc2(0x1a9)](_0x59497c[_0x3c8bc2(0x1a1)]);return!![];}function a80_0x2508(_0x18d743,_0x4c7641){_0x18d743=_0x18d743-0x192;const _0x4db6bf=a80_0x4db6();let _0x25084a=_0x4db6bf[_0x18d743];return _0x25084a;}export function printIssueReportNudgeForError(_0x27f4a9,_0x3d37a4,_0x3d19b4=defaultWriter){if(!shouldNudgeForError(_0x27f4a9,_0x3d37a4))return;const _0x4c95dd=buildSuggestedTitle(_0x27f4a9,_0x3d37a4);_0x3d19b4(formatNudge(_0x4c95dd));}function buildSuggestedTitle(_0x50b865,_0x5e343b){const _0x1bb50f=a80_0x53b0b9,_0x285f29=_0x50b865 instanceof Error?_0x50b865[_0x1bb50f(0x1a0)]:String(_0x50b865),_0x7d43c9=_0x285f29[_0x1bb50f(0x1b1)](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x1bb50f(0x1ad)]()['slice'](0x0,0x78)[_0x1bb50f(0x1b1)](/"/g,'\x5c\x22'),_0x440a03=CLI_BIN_NAME+'\x20'+_0x5e343b[_0x1bb50f(0x195)]+'\x20'+_0x5e343b[_0x1bb50f(0x1b0)];return _0x7d43c9[_0x1bb50f(0x1af)]>0x0?_0x440a03+':\x20'+_0x7d43c9:_0x440a03;}function a80_0x4db6(){const _0x42c8ae=['3471636rccsyY','issue','message','code','join','not_in_project','477677xOPuLA','10714674ccicks','report','7lGMsxe','\x20\x20\x20\x20--title\x20\x22','has','34705984fBhozF','\x22\x20\x5c','RABETBASE_DISABLE_ISSUE_NUDGE','trim','807454jsoYnw','length','command','replace','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','\x20bug?\x20Help\x20us\x20fix\x20it:','2442924GEGcaL','flag_missing','service','unknown_command','auth_required','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','4078855VBFTfL','\x20\x20Set\x20','\x20issue\x20report\x20\x5c','=1\x20to\x20silence\x20this\x20hint.','validation_error'];a80_0x4db6=function(){return _0x42c8ae;};return a80_0x4db6();}function formatNudge(_0x25e1da){const _0x446c1f=a80_0x53b0b9;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x446c1f(0x192),'\x20\x20'+CLI_BIN_NAME+_0x446c1f(0x19b),_0x446c1f(0x1a8)+_0x25e1da+_0x446c1f(0x1ab),_0x446c1f(0x198),_0x446c1f(0x1b2),_0x446c1f(0x19a)+NUDGE_OPT_OUT_ENV+_0x446c1f(0x19c),''][_0x446c1f(0x1a2)]('\x0a');}
@@ -1 +1 @@
1
- const a81_0x77366e=a81_0xea96;(function(_0x13da42,_0xf2773c){const _0x122a87=a81_0xea96,_0x133584=_0x13da42();while(!![]){try{const _0x10b009=-parseInt(_0x122a87(0x119))/0x1*(-parseInt(_0x122a87(0x125))/0x2)+-parseInt(_0x122a87(0x11e))/0x3+parseInt(_0x122a87(0x107))/0x4+-parseInt(_0x122a87(0xfc))/0x5*(parseInt(_0x122a87(0x10e))/0x6)+-parseInt(_0x122a87(0xee))/0x7+parseInt(_0x122a87(0xfb))/0x8*(-parseInt(_0x122a87(0x123))/0x9)+parseInt(_0x122a87(0x126))/0xa;if(_0x10b009===_0xf2773c)break;else _0x133584['push'](_0x133584['shift']());}catch(_0x542ceb){_0x133584['push'](_0x133584['shift']());}}}(a81_0x35ad,0xde2c8));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';function a81_0xea96(_0x11588d,_0x1c208b){_0x11588d=_0x11588d-0xeb;const _0x35adf2=a81_0x35ad();let _0xea9620=_0x35adf2[_0x11588d];return _0xea9620;}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_0x77366e(0x104);export const issueReport={'service':a81_0x77366e(0x121),'command':a81_0x77366e(0xf0),'description':a81_0x77366e(0x100),'risk':a81_0x77366e(0xeb),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a81_0x77366e(0x12b),'flags':[{'name':'title','type':a81_0x77366e(0xfe),'required':!![],'description':a81_0x77366e(0x108)},{'name':a81_0x77366e(0xfa),'type':a81_0x77366e(0xfe),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x77366e(0xfe),'description':a81_0x77366e(0xf4)}],async 'validate'(_0x5e1eb2){const _0x4ace72=a81_0x77366e,_0x1ecff4=_0x5e1eb2[_0x4ace72(0x118)](_0x4ace72(0x109))[_0x4ace72(0x10f)](),_0x107969=_0x5e1eb2[_0x4ace72(0x118)](_0x4ace72(0xfa))[_0x4ace72(0x10f)](),_0x10ba68=_0x5e1eb2[_0x4ace72(0x118)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x1ecff4)throw CliErrors[_0x4ace72(0x115)](_0x4ace72(0x109),_0x4ace72(0x117));const _0x25f4c1=_0x107969[_0x4ace72(0x101)]>0x0,_0x1d3d30=_0x10ba68[_0x4ace72(0x101)]>0x0;if(_0x25f4c1===_0x1d3d30)throw CliErrors[_0x4ace72(0x103)](_0x4ace72(0x112),_0x4ace72(0x114));if(_0x1d3d30){const _0x376594=resolve(process['cwd'](),_0x10ba68);if(!existsSync(_0x376594))throw CliErrors[_0x4ace72(0x103)](_0x4ace72(0xf5)+_0x376594);}},async 'dryRun'(_0x19ddbb){const _0x12e745=a81_0x77366e,_0x2ba66c=await prepareIssueReport(_0x19ddbb);return{'method':_0x12e745(0xf1),'url':_0x12e745(0x127)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2ba66c[_0x12e745(0x109)],'issue.description':_0x2ba66c[_0x12e745(0xfa)],'issue.description_original_bytes':_0x2ba66c[_0x12e745(0xf2)]['originalBytes'],'issue.description_truncated':_0x2ba66c[_0x12e745(0xf2)][_0x12e745(0x10c)],'issue.description_redactions':_0x2ba66c[_0x12e745(0xf2)][_0x12e745(0x102)],'issue.description_redaction_kinds':_0x2ba66c[_0x12e745(0xf2)]['redactionKinds'][_0x12e745(0xec)](',')}},'description':[_0x12e745(0x10a),'descriptionSource:\x20'+_0x2ba66c[_0x12e745(0xed)],_0x2ba66c[_0x12e745(0x129)]?_0x12e745(0xfd)+_0x2ba66c['descriptionFilePath']:null,_0x2ba66c[_0x12e745(0xf2)][_0x12e745(0x10c)]?_0x12e745(0x122)+_0x2ba66c[_0x12e745(0xf2)][_0x12e745(0x11f)]+_0x12e745(0xef):null,_0x2ba66c['sanitize'][_0x12e745(0x102)]>0x0?'redactions:\x20'+_0x2ba66c['sanitize'][_0x12e745(0x102)]+'\x20('+_0x2ba66c[_0x12e745(0xf2)][_0x12e745(0x113)][_0x12e745(0xec)](',\x20')+')':null][_0x12e745(0x10b)](Boolean)[_0x12e745(0xec)]('\x0a')};},async 'execute'(_0x344ce2){const _0x148331=a81_0x77366e,_0x55eb9d=await prepareIssueReport(_0x344ce2);try{await sendPlatformIssueCollectLog({'title':_0x55eb9d['title'],'description':_0x55eb9d['description'],'sanitize':{'originalBytes':_0x55eb9d[_0x148331(0xf2)]['originalBytes'],'truncated':_0x55eb9d['sanitize']['truncated'],'redactionCount':_0x55eb9d[_0x148331(0xf2)]['redactionCount'],'redactionKinds':_0x55eb9d[_0x148331(0xf2)][_0x148331(0x113)]}});}catch(_0x511c63){throw CliErrors[_0x148331(0x105)](_0x148331(0x12a)+(_0x511c63 instanceof Error?_0x511c63[_0x148331(0x11b)]:String(_0x511c63)),_0x148331(0x128));}return{'ok':!![],'message':buildResultMessage(_0x55eb9d[_0x148331(0xf2)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x148331(0xf6),'issue.description',_0x148331(0xff),_0x148331(0x106),_0x148331(0xf3),_0x148331(0x124)],'issue':{'title':_0x55eb9d[_0x148331(0x109)],'descriptionLength':_0x55eb9d[_0x148331(0xfa)][_0x148331(0x101)],'descriptionSource':_0x55eb9d['descriptionSource'],..._0x55eb9d[_0x148331(0x129)]?{'descriptionFile':_0x55eb9d[_0x148331(0x129)]}:{},'sanitize':{'originalBytes':_0x55eb9d[_0x148331(0xf2)]['originalBytes'],'truncated':_0x55eb9d[_0x148331(0xf2)][_0x148331(0x10c)],'redactions':_0x55eb9d[_0x148331(0xf2)][_0x148331(0x102)],'redactionKinds':_0x55eb9d[_0x148331(0xf2)][_0x148331(0x113)]}}}};}};function a81_0x35ad(){const _0x67721a=['One-line\x20issue\x20summary','title','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','filter','truncated','inline','6QXSBjm','trim','Issue\x20description\x20cannot\x20be\x20empty.','Issue\x20description\x20file\x20is\x20empty:\x20','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','redactionKinds','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','flagMissing','Platform\x20issue\x20reported','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','str','15017kSWncr','truncated\x20from\x20','message','redacted\x20','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','2890029tORlvg','originalBytes','\x20secret(s):\x20','issue','truncated:\x20original\x20','99SyqavY','issue.description_redaction_kinds','68QQIMnn','27564960GbLAYZ','otel://','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','descriptionFilePath','Failed\x20to\x20report\x20platform\x20issue:\x20','compress','write','join','descriptionSource','1229522xoBSCA','\x20bytes','report','POST','sanitize','issue.description_redactions','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','File\x20not\x20found:\x20','issue.title','file','push','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','description','1062600oXQnHg','6413125InEgFj','descriptionFile:\x20','string','issue.description_original_bytes','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','length','redactionCount','validation','description-file','apiError','issue.description_truncated','6102556enXGle'];a81_0x35ad=function(){return _0x67721a;};return a81_0x35ad();}function buildResultMessage(_0x2e9957){const _0xbbc095=a81_0x77366e,_0x5bc9ba=[];return _0x2e9957[_0xbbc095(0x10c)]&&_0x5bc9ba[_0xbbc095(0xf8)](_0xbbc095(0x11a)+_0x2e9957[_0xbbc095(0x11f)]+_0xbbc095(0xef)),_0x2e9957[_0xbbc095(0x102)]>0x0&&_0x5bc9ba[_0xbbc095(0xf8)](_0xbbc095(0x11c)+_0x2e9957[_0xbbc095(0x102)]+_0xbbc095(0x120)+_0x2e9957[_0xbbc095(0x113)]['join'](',\x20')),_0x5bc9ba['length']===0x0?_0xbbc095(0x116):'Platform\x20issue\x20reported\x20('+_0x5bc9ba[_0xbbc095(0xec)](';\x20')+')';}async function prepareIssueReport(_0x31697b){const _0x566946=a81_0x77366e,_0x4cf473=_0x31697b[_0x566946(0x118)](_0x566946(0x109))[_0x566946(0x10f)](),_0x5a4034=_0x31697b[_0x566946(0x118)]('description'),_0x38d817=_0x31697b[_0x566946(0x118)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x38d817){const _0x5a3f47=_0x5a4034;if(!_0x5a3f47[_0x566946(0x10f)]())throw CliErrors[_0x566946(0x103)](_0x566946(0x110),_0x566946(0x11d));const _0x5acc4=sanitizeIssueDescription(_0x5a3f47);return{'title':_0x4cf473,'description':_0x5acc4[_0x566946(0xfa)],'descriptionSource':_0x566946(0x10d),'sanitize':_0x5acc4};}const _0x204f4d=resolve(process['cwd'](),_0x38d817),_0x4e225b=await readFile(_0x204f4d,'utf8');if(!_0x4e225b[_0x566946(0x10f)]())throw CliErrors[_0x566946(0x103)](_0x566946(0x111)+_0x204f4d,_0x566946(0xf9));const _0x14d822=sanitizeIssueDescription(_0x4e225b);return{'title':_0x4cf473,'description':_0x14d822[_0x566946(0xfa)],'descriptionSource':_0x566946(0xf7),'descriptionFilePath':_0x204f4d,'sanitize':_0x14d822};}
1
+ const a81_0x5ffbb6=a81_0x2d51;(function(_0x513014,_0x1e573e){const _0x538a37=a81_0x2d51,_0x17810d=_0x513014();while(!![]){try{const _0x4c83cd=parseInt(_0x538a37(0x10d))/0x1+parseInt(_0x538a37(0x111))/0x2*(-parseInt(_0x538a37(0x12d))/0x3)+-parseInt(_0x538a37(0x136))/0x4+-parseInt(_0x538a37(0x10f))/0x5*(-parseInt(_0x538a37(0x123))/0x6)+parseInt(_0x538a37(0x12b))/0x7+parseInt(_0x538a37(0x12e))/0x8*(-parseInt(_0x538a37(0x10b))/0x9)+-parseInt(_0x538a37(0x133))/0xa;if(_0x4c83cd===_0x1e573e)break;else _0x17810d['push'](_0x17810d['shift']());}catch(_0x168df4){_0x17810d['push'](_0x17810d['shift']());}}}(a81_0x4087,0x57274));function a81_0x4087(){const _0x5ff376=['14931LlrJLv','compress','467528HNEtYj','truncated','5XZKRrd','Platform\x20issue\x20reported\x20(','4CEXwcL','originalBytes','Failed\x20to\x20report\x20platform\x20issue:\x20','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','POST','issue.description_original_bytes','issue.description_redactions','cwd','Issue\x20description\x20file\x20is\x20empty:\x20','message','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','string','trim','issue.title','str','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','validation','truncated:\x20original\x20','3891894ChclUk','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','utf8','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','length','issue.description_redaction_kinds','\x20bytes','4476094gDGtwS','redactions:\x20','84057JCjdRG','1824ddfyAN','issue','issue.description','issue.description_truncated','apiError','2615110zmgEmr','title','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','2811352JHyXFQ','description','redacted\x20','join','redactionCount','sanitize','push','descriptionFilePath','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','descriptionSource:\x20','One-line\x20issue\x20summary','description-file','Platform\x20issue\x20reported','\x20secret(s):\x20','descriptionFile:\x20','redactionKinds','filter'];a81_0x4087=function(){return _0x5ff376;};return a81_0x4087();}import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';function a81_0x2d51(_0x1c099f,_0x1e66e3){_0x1c099f=_0x1c099f-0x10b;const _0x408743=a81_0x4087();let _0x2d5170=_0x408743[_0x1c099f];return _0x2d5170;}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_0x5ffbb6(0x142);export const issueReport={'service':a81_0x5ffbb6(0x12f),'command':'report','description':a81_0x5ffbb6(0x13f),'risk':'write','requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a81_0x5ffbb6(0x10c),'flags':[{'name':a81_0x5ffbb6(0x134),'type':a81_0x5ffbb6(0x11c),'required':!![],'description':a81_0x5ffbb6(0x141)},{'name':'description','type':a81_0x5ffbb6(0x11c),'description':a81_0x5ffbb6(0x124)},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x5ffbb6(0x11c),'description':a81_0x5ffbb6(0x120)}],async 'validate'(_0x1446cf){const _0x37eed7=a81_0x5ffbb6,_0xcc2da8=_0x1446cf['str'](_0x37eed7(0x134))[_0x37eed7(0x11d)](),_0x51a7df=_0x1446cf['str'](_0x37eed7(0x137))[_0x37eed7(0x11d)](),_0x2c19a7=_0x1446cf[_0x37eed7(0x11f)](DESCRIPTION_FILE_FLAG)[_0x37eed7(0x11d)]();if(!_0xcc2da8)throw CliErrors['flagMissing'](_0x37eed7(0x134),'Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x35148c=_0x51a7df[_0x37eed7(0x128)]>0x0,_0x41f5a2=_0x2c19a7[_0x37eed7(0x128)]>0x0;if(_0x35148c===_0x41f5a2)throw CliErrors['validation'](_0x37eed7(0x127),_0x37eed7(0x126));if(_0x41f5a2){const _0x1639d9=resolve(process[_0x37eed7(0x118)](),_0x2c19a7);if(!existsSync(_0x1639d9))throw CliErrors[_0x37eed7(0x121)]('File\x20not\x20found:\x20'+_0x1639d9);}},async 'dryRun'(_0x1eb2e6){const _0xab9554=a81_0x5ffbb6,_0x5d2d0e=await prepareIssueReport(_0x1eb2e6);return{'method':_0xab9554(0x115),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x5d2d0e[_0xab9554(0x134)],'issue.description':_0x5d2d0e[_0xab9554(0x137)],'issue.description_original_bytes':_0x5d2d0e[_0xab9554(0x13b)][_0xab9554(0x112)],'issue.description_truncated':_0x5d2d0e[_0xab9554(0x13b)]['truncated'],'issue.description_redactions':_0x5d2d0e[_0xab9554(0x13b)][_0xab9554(0x13a)],'issue.description_redaction_kinds':_0x5d2d0e[_0xab9554(0x13b)][_0xab9554(0x146)][_0xab9554(0x139)](',')}},'description':[_0xab9554(0x11b),_0xab9554(0x140)+_0x5d2d0e['descriptionSource'],_0x5d2d0e[_0xab9554(0x13d)]?_0xab9554(0x145)+_0x5d2d0e[_0xab9554(0x13d)]:null,_0x5d2d0e[_0xab9554(0x13b)][_0xab9554(0x10e)]?_0xab9554(0x122)+_0x5d2d0e[_0xab9554(0x13b)][_0xab9554(0x112)]+'\x20bytes':null,_0x5d2d0e[_0xab9554(0x13b)][_0xab9554(0x13a)]>0x0?_0xab9554(0x12c)+_0x5d2d0e[_0xab9554(0x13b)][_0xab9554(0x13a)]+'\x20('+_0x5d2d0e[_0xab9554(0x13b)][_0xab9554(0x146)][_0xab9554(0x139)](',\x20')+')':null][_0xab9554(0x147)](Boolean)[_0xab9554(0x139)]('\x0a')};},async 'execute'(_0x467b12){const _0x3efb0b=a81_0x5ffbb6,_0x2923fe=await prepareIssueReport(_0x467b12);try{await sendPlatformIssueCollectLog({'title':_0x2923fe['title'],'description':_0x2923fe[_0x3efb0b(0x137)],'sanitize':{'originalBytes':_0x2923fe[_0x3efb0b(0x13b)][_0x3efb0b(0x112)],'truncated':_0x2923fe[_0x3efb0b(0x13b)]['truncated'],'redactionCount':_0x2923fe[_0x3efb0b(0x13b)][_0x3efb0b(0x13a)],'redactionKinds':_0x2923fe[_0x3efb0b(0x13b)][_0x3efb0b(0x146)]}});}catch(_0x494ead){throw CliErrors[_0x3efb0b(0x132)](_0x3efb0b(0x113)+(_0x494ead instanceof Error?_0x494ead[_0x3efb0b(0x11a)]:String(_0x494ead)),_0x3efb0b(0x114));}return{'ok':!![],'message':buildResultMessage(_0x2923fe['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x3efb0b(0x11e),_0x3efb0b(0x130),_0x3efb0b(0x116),_0x3efb0b(0x131),_0x3efb0b(0x117),_0x3efb0b(0x129)],'issue':{'title':_0x2923fe[_0x3efb0b(0x134)],'descriptionLength':_0x2923fe[_0x3efb0b(0x137)]['length'],'descriptionSource':_0x2923fe['descriptionSource'],..._0x2923fe['descriptionFilePath']?{'descriptionFile':_0x2923fe[_0x3efb0b(0x13d)]}:{},'sanitize':{'originalBytes':_0x2923fe['sanitize'][_0x3efb0b(0x112)],'truncated':_0x2923fe[_0x3efb0b(0x13b)][_0x3efb0b(0x10e)],'redactions':_0x2923fe[_0x3efb0b(0x13b)][_0x3efb0b(0x13a)],'redactionKinds':_0x2923fe[_0x3efb0b(0x13b)]['redactionKinds']}}}};}};function buildResultMessage(_0x37074c){const _0x433b1f=a81_0x5ffbb6,_0x382c64=[];return _0x37074c['truncated']&&_0x382c64[_0x433b1f(0x13c)]('truncated\x20from\x20'+_0x37074c[_0x433b1f(0x112)]+_0x433b1f(0x12a)),_0x37074c[_0x433b1f(0x13a)]>0x0&&_0x382c64[_0x433b1f(0x13c)](_0x433b1f(0x138)+_0x37074c[_0x433b1f(0x13a)]+_0x433b1f(0x144)+_0x37074c[_0x433b1f(0x146)][_0x433b1f(0x139)](',\x20')),_0x382c64[_0x433b1f(0x128)]===0x0?_0x433b1f(0x143):_0x433b1f(0x110)+_0x382c64[_0x433b1f(0x139)](';\x20')+')';}async function prepareIssueReport(_0x579937){const _0x2d1a93=a81_0x5ffbb6,_0x287e71=_0x579937[_0x2d1a93(0x11f)](_0x2d1a93(0x134))[_0x2d1a93(0x11d)](),_0x4b1f0f=_0x579937[_0x2d1a93(0x11f)](_0x2d1a93(0x137)),_0x352183=_0x579937[_0x2d1a93(0x11f)](DESCRIPTION_FILE_FLAG)[_0x2d1a93(0x11d)]();if(!_0x352183){const _0x1c02d6=_0x4b1f0f;if(!_0x1c02d6[_0x2d1a93(0x11d)]())throw CliErrors['validation']('Issue\x20description\x20cannot\x20be\x20empty.',_0x2d1a93(0x13e));const _0x236a26=sanitizeIssueDescription(_0x1c02d6);return{'title':_0x287e71,'description':_0x236a26[_0x2d1a93(0x137)],'descriptionSource':'inline','sanitize':_0x236a26};}const _0x60d57=resolve(process[_0x2d1a93(0x118)](),_0x352183),_0x1e7bcb=await readFile(_0x60d57,_0x2d1a93(0x125));if(!_0x1e7bcb[_0x2d1a93(0x11d)]())throw CliErrors['validation'](_0x2d1a93(0x119)+_0x60d57,_0x2d1a93(0x135));const _0x1bf43b=sanitizeIssueDescription(_0x1e7bcb);return{'title':_0x287e71,'description':_0x1bf43b[_0x2d1a93(0x137)],'descriptionSource':'file','descriptionFilePath':_0x60d57,'sanitize':_0x1bf43b};}
@@ -1 +1 @@
1
- const a82_0x3bc10c=a82_0x3624;function a82_0x3624(_0x234e10,_0x2c700c){_0x234e10=_0x234e10-0xf2;const _0x26093b=a82_0x2609();let _0x362497=_0x26093b[_0x234e10];return _0x362497;}(function(_0x2e4c64,_0x310c01){const _0xed06fb=a82_0x3624,_0x13ca94=_0x2e4c64();while(!![]){try{const _0x2f6f81=parseInt(_0xed06fb(0xf8))/0x1+-parseInt(_0xed06fb(0x105))/0x2+-parseInt(_0xed06fb(0xfd))/0x3+parseInt(_0xed06fb(0xf9))/0x4*(-parseInt(_0xed06fb(0x108))/0x5)+parseInt(_0xed06fb(0x106))/0x6*(-parseInt(_0xed06fb(0xf5))/0x7)+-parseInt(_0xed06fb(0xf2))/0x8*(parseInt(_0xed06fb(0x101))/0x9)+parseInt(_0xed06fb(0xf7))/0xa;if(_0x2f6f81===_0x310c01)break;else _0x13ca94['push'](_0x13ca94['shift']());}catch(_0x489cc2){_0x13ca94['push'](_0x13ca94['shift']());}}}(a82_0x2609,0x75884));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a82_0x3bc10c(0x109),REDACTION_RULES=[{'kind':a82_0x3bc10c(0x10a),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a82_0x3bc10c(0x10e)},{'kind':a82_0x3bc10c(0xfe),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a82_0x3bc10c(0x10f)},{'kind':a82_0x3bc10c(0x103),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a82_0x3bc10c(0xf3),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a82_0x3bc10c(0xf6)},{'kind':a82_0x3bc10c(0x10c),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a82_0x3bc10c(0x100)},{'kind':a82_0x3bc10c(0x107),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a82_0x3bc10c(0xfa)}];export function sanitizeIssueDescription(_0x392de8){const _0x59be2b=a82_0x3bc10c,_0x233881=Buffer[_0x59be2b(0xf4)](_0x392de8,_0x59be2b(0x10b)),_0x5a47d5=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x3a2136=_0x392de8,_0x5e40d2=0x0;const _0x4f84bd=[];if(!_0x5a47d5)for(const _0x274332 of REDACTION_RULES){let _0x4bf710=0x0;_0x3a2136=_0x3a2136[_0x59be2b(0xfc)](_0x274332['pattern'],(_0x5c3ccd,_0x472b28)=>{const _0x221adf=_0x59be2b;_0x4bf710+=0x1;const _0x215740=typeof _0x472b28===_0x221adf(0x102)?_0x472b28:'';return _0x215740+'['+_0x274332[_0x221adf(0x110)]+']';}),_0x4bf710>0x0&&(_0x5e40d2+=_0x4bf710,!_0x4f84bd['includes'](_0x274332[_0x59be2b(0xff)])&&_0x4f84bd[_0x59be2b(0x10d)](_0x274332[_0x59be2b(0xff)]));}let _0xd2899=![];if(Buffer[_0x59be2b(0xf4)](_0x3a2136,_0x59be2b(0x10b))>ISSUE_DESCRIPTION_MAX_BYTES){_0xd2899=!![];const _0x26b586=Buffer[_0x59be2b(0xf4)](TRUNCATION_NOTICE,_0x59be2b(0x10b)),_0x36c4af=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x26b586);_0x3a2136=sliceUtf8Bytes(_0x3a2136,_0x36c4af)+TRUNCATION_NOTICE;}return{'description':_0x3a2136,'originalBytes':_0x233881,'truncated':_0xd2899,'redactionCount':_0x5e40d2,'redactionKinds':_0x4f84bd};}function sliceUtf8Bytes(_0xcee65e,_0x3dd2ab){const _0x2a14fd=a82_0x3bc10c;if(_0x3dd2ab<=0x0)return'';const _0x29b9db=Buffer['from'](_0xcee65e,_0x2a14fd(0x10b));if(_0x29b9db[_0x2a14fd(0xf4)]<=_0x3dd2ab)return _0xcee65e;let _0x227759=_0x3dd2ab;while(_0x227759>0x0){const _0x265a9f=_0x29b9db[_0x227759];if(_0x265a9f===undefined||(_0x265a9f&0xc0)!==0x80)break;_0x227759-=0x1;}return _0x29b9db[_0x2a14fd(0x104)](0x0,_0x227759)[_0x2a14fd(0xfb)](_0x2a14fd(0x10b));}function a82_0x2609(){const _0x3fb3e0=['635cOTcJi','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','cookie','utf8','password','push','REDACTED:cookie','REDACTED:authorization','label','67616wEYSPg','access-key','byteLength','7YfhkRa','REDACTED:access-key','25039810ADxCNI','146935QkWzix','14692LlnqOK','REDACTED:bearer-jwt','toString','replace','222507xcaOtc','authorization','kind','REDACTED:password','315AURWwD','string','private-key','subarray','1748596lgmkAx','2752476bhgKeq','bearer-jwt'];a82_0x2609=function(){return _0x3fb3e0;};return a82_0x2609();}
1
+ const a82_0x2974ab=a82_0x1814;(function(_0x1476af,_0x2ff48c){const _0x4fe891=a82_0x1814,_0x1adb31=_0x1476af();while(!![]){try{const _0x1afc6e=parseInt(_0x4fe891(0xe1))/0x1*(parseInt(_0x4fe891(0xe3))/0x2)+parseInt(_0x4fe891(0xe2))/0x3+-parseInt(_0x4fe891(0xde))/0x4+-parseInt(_0x4fe891(0xeb))/0x5*(-parseInt(_0x4fe891(0xd6))/0x6)+-parseInt(_0x4fe891(0xec))/0x7+parseInt(_0x4fe891(0xda))/0x8*(-parseInt(_0x4fe891(0xe6))/0x9)+-parseInt(_0x4fe891(0xe7))/0xa;if(_0x1afc6e===_0x2ff48c)break;else _0x1adb31['push'](_0x1adb31['shift']());}catch(_0x149864){_0x1adb31['push'](_0x1adb31['shift']());}}}(a82_0x25f9,0x28b0e));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a82_0x2974ab(0xd7),REDACTION_RULES=[{'kind':a82_0x2974ab(0xd4),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a82_0x2974ab(0xea)},{'kind':a82_0x2974ab(0xd9),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a82_0x2974ab(0xdc)},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a82_0x2974ab(0xe0),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':'REDACTED:access-key'},{'kind':a82_0x2974ab(0xdd),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a82_0x2974ab(0xe4)},{'kind':a82_0x2974ab(0xd8),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a82_0x2974ab(0xe5)}];function a82_0x1814(_0x413b97,_0x22b020){_0x413b97=_0x413b97-0xd4;const _0x25f9c2=a82_0x25f9();let _0x18143f=_0x25f9c2[_0x413b97];return _0x18143f;}export function sanitizeIssueDescription(_0x9be77e){const _0x37eeaf=a82_0x2974ab,_0x416903=Buffer[_0x37eeaf(0xef)](_0x9be77e,'utf8'),_0xae7878=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x585efa=_0x9be77e,_0x5743df=0x0;const _0x108702=[];if(!_0xae7878)for(const _0x32897b of REDACTION_RULES){let _0x354539=0x0;_0x585efa=_0x585efa['replace'](_0x32897b[_0x37eeaf(0xe8)],(_0x3d5f3e,_0x7bd479)=>{const _0x4e7f4a=_0x37eeaf;_0x354539+=0x1;const _0x2776a3=typeof _0x7bd479==='string'?_0x7bd479:'';return _0x2776a3+'['+_0x32897b[_0x4e7f4a(0xee)]+']';}),_0x354539>0x0&&(_0x5743df+=_0x354539,!_0x108702['includes'](_0x32897b['kind'])&&_0x108702[_0x37eeaf(0xdf)](_0x32897b[_0x37eeaf(0xe9)]));}let _0x1452db=![];if(Buffer[_0x37eeaf(0xef)](_0x585efa,_0x37eeaf(0xdb))>ISSUE_DESCRIPTION_MAX_BYTES){_0x1452db=!![];const _0x3dcd31=Buffer[_0x37eeaf(0xef)](TRUNCATION_NOTICE,'utf8'),_0x49dbfb=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x3dcd31);_0x585efa=sliceUtf8Bytes(_0x585efa,_0x49dbfb)+TRUNCATION_NOTICE;}return{'description':_0x585efa,'originalBytes':_0x416903,'truncated':_0x1452db,'redactionCount':_0x5743df,'redactionKinds':_0x108702};}function sliceUtf8Bytes(_0xfa25a2,_0x13adf5){const _0x4085c9=a82_0x2974ab;if(_0x13adf5<=0x0)return'';const _0x26143c=Buffer[_0x4085c9(0xed)](_0xfa25a2,_0x4085c9(0xdb));if(_0x26143c['byteLength']<=_0x13adf5)return _0xfa25a2;let _0x534e8a=_0x13adf5;while(_0x534e8a>0x0){const _0x3d7602=_0x26143c[_0x534e8a];if(_0x3d7602===undefined||(_0x3d7602&0xc0)!==0x80)break;_0x534e8a-=0x1;}return _0x26143c['subarray'](0x0,_0x534e8a)[_0x4085c9(0xd5)]('utf8');}function a82_0x25f9(){const _0x1e1e82=['toString','3306xeXriF','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','bearer-jwt','authorization','232FwShEG','utf8','REDACTED:authorization','password','426248LHcpmM','push','access-key','152857BEWXKa','296661MmPBjk','4WZMwWI','REDACTED:password','REDACTED:bearer-jwt','73674YUqZcj','1238810Xaxaci','pattern','kind','REDACTED:cookie','2125hBJiya','29883ukNGdO','from','label','byteLength','cookie'];a82_0x25f9=function(){return _0x1e1e82;};return a82_0x25f9();}