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

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
+ function a66_0x551f(_0x2cd0c8,_0x10b1d3){_0x2cd0c8=_0x2cd0c8-0xb7;const _0x9acd0=a66_0x9acd();let _0x551f6a=_0x9acd0[_0x2cd0c8];return _0x551f6a;}const a66_0x287485=a66_0x551f;function a66_0x9acd(){const _0xa565ae=['21gaSCOg','plan','46542nLfDil','4567101SoGQrk','570ISkZML','str','Analysis\x20status\x20for\x20','994632mouqNk','12OXwwNY','read','125310JCrKbk','appCode','7975584yUYHRq','string','414579OauqFq','2946530xNsepF','32wFqxvu','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','analyze-status'];a66_0x9acd=function(){return _0xa565ae;};return a66_0x9acd();}(function(_0x59da45,_0x3668c9){const _0x795342=a66_0x551f,_0x138456=_0x59da45();while(!![]){try{const _0x280a34=parseInt(_0x795342(0xc8))/0x1*(parseInt(_0x795342(0xb7))/0x2)+-parseInt(_0x795342(0xbb))/0x3*(parseInt(_0x795342(0xbd))/0x4)+-parseInt(_0x795342(0xc4))/0x5*(parseInt(_0x795342(0xc2))/0x6)+-parseInt(_0x795342(0xc0))/0x7*(-parseInt(_0x795342(0xc7))/0x8)+parseInt(_0x795342(0xb9))/0x9+parseInt(_0x795342(0xbc))/0xa+parseInt(_0x795342(0xc3))/0xb;if(_0x280a34===_0x3668c9)break;else _0x138456['push'](_0x138456['shift']());}catch(_0x3aa06b){_0x138456['push'](_0x138456['shift']());}}}(a66_0x9acd,0xb2791));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_0x287485(0xbf),'description':'Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','risk':a66_0x287485(0xc9),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a66_0x287485(0xc1),'type':a66_0x287485(0xba),'required':!![],'description':a66_0x287485(0xbe)}],async 'execute'(_0x44b73d){const _0x268758=a66_0x287485,_0x5c5acf=_0x44b73d['num']('id'),_0x3a087c=_0x44b73d[_0x268758(0xc5)]('plan'),_0x1dc625=await getDbAnalysisStatus(_0x3a087c),_0x26138f=buildDbPageLinks(_0x44b73d[_0x268758(0xb8)],_0x5c5acf);return{'ok':!![],'data':{'dbLinkId':_0x5c5acf,'planId':_0x3a087c,'status':_0x1dc625,..._0x26138f?{'links':_0x26138f}:{}},'message':_0x268758(0xc6)+_0x3a087c};}};
@@ -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_0x4e15e6=a67_0x3e4a;(function(_0x4c0c56,_0x70fa03){const _0x7292f4=a67_0x3e4a,_0x45c875=_0x4c0c56();while(!![]){try{const _0x1eee0c=parseInt(_0x7292f4(0x173))/0x1*(parseInt(_0x7292f4(0x161))/0x2)+-parseInt(_0x7292f4(0x15e))/0x3*(parseInt(_0x7292f4(0x170))/0x4)+-parseInt(_0x7292f4(0x186))/0x5+parseInt(_0x7292f4(0x15c))/0x6*(parseInt(_0x7292f4(0x16a))/0x7)+parseInt(_0x7292f4(0x169))/0x8+-parseInt(_0x7292f4(0x158))/0x9+-parseInt(_0x7292f4(0x15b))/0xa*(-parseInt(_0x7292f4(0x17a))/0xb);if(_0x1eee0c===_0x70fa03)break;else _0x45c875['push'](_0x45c875['shift']());}catch(_0x337db4){_0x45c875['push'](_0x45c875['shift']());}}}(a67_0x334b,0xf0bf4));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a67_0x3e4a(_0x25fde8,_0x57a549){_0x25fde8=_0x25fde8-0x158;const _0x334b93=a67_0x334b();let _0x3e4a39=_0x334b93[_0x25fde8];return _0x3e4a39;}function a67_0x334b(){const _0x401274=['Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','\x20and\x20started\x20analysis','autostart','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','dbparam','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','8.0','boolean','7956955NLITvY','13410738OXZciX','bool','create','11825320zEfHME','5405106ijiIHy','Host\x20and\x20port:\x20host:port','103230hmfHav','message','password','11566AUDJXz','dbtype','databasePage','Database\x20username','/smartapi/dblink/create','dbdesc','Created\x20db\x20link\x20','trim','11029992mhQLkp','7mxYxYG','dbversion','username',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','str','Database\x20password','136VlBuOv','appCode','[redacted]','307gidCAt','Create\x20dblink','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','string','After\x20create,\x20start\x20schema\x20analysis','dbname','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','11ZcqxIm','dburl','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','POST'];a67_0x334b=function(){return _0x401274;};return a67_0x334b();}import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':a67_0x4e15e6(0x15a),'description':'Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','risk':'write','flags':[APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a67_0x4e15e6(0x176),'required':!![],'description':a67_0x4e15e6(0x181)},DB_TYPE_FLAG,{'name':a67_0x4e15e6(0x16b),'type':'string','description':a67_0x4e15e6(0x179),'default':'8.0'},{'name':a67_0x4e15e6(0x17b),'type':a67_0x4e15e6(0x176),'required':!![],'description':a67_0x4e15e6(0x15d)},{'name':'username','type':a67_0x4e15e6(0x176),'required':!![],'description':a67_0x4e15e6(0x164)},{'name':a67_0x4e15e6(0x160),'type':'string','required':!![],'description':a67_0x4e15e6(0x16f)},{'name':'dbparam','type':'string','description':'Extra\x20JDBC-style\x20connection\x20parameters\x20string'},{'name':a67_0x4e15e6(0x166),'type':a67_0x4e15e6(0x176),'description':'Human-readable\x20description'},{'name':a67_0x4e15e6(0x180),'type':a67_0x4e15e6(0x185),'description':a67_0x4e15e6(0x177),'default':![]}],async 'validate'(_0x4601c4){const _0x152fd0=a67_0x4e15e6,_0x348ff0=_0x4601c4[_0x152fd0(0x16e)](_0x152fd0(0x17b))[_0x152fd0(0x168)]();if(!validateDbUrl(_0x348ff0))throw CliErrors['validation'](_0x152fd0(0x17c)+_0x348ff0+'\x22',_0x152fd0(0x17e));},async 'dryRun'(_0x6bd6ab){const _0xd4a319=a67_0x4e15e6,_0x4a9542={'appCode':_0x6bd6ab[_0xd4a319(0x171)],'dbName':_0x6bd6ab[_0xd4a319(0x16e)]('dbname'),'dbType':_0x6bd6ab[_0xd4a319(0x16e)](_0xd4a319(0x162)),'dbVersion':_0x6bd6ab[_0xd4a319(0x16e)](_0xd4a319(0x16b))||_0xd4a319(0x184),'dbUrl':_0x6bd6ab[_0xd4a319(0x16e)]('dburl')[_0xd4a319(0x168)](),'username':_0x6bd6ab[_0xd4a319(0x16e)](_0xd4a319(0x16c)),'password':_0xd4a319(0x172),..._0x6bd6ab[_0xd4a319(0x16e)]('dbparam')?{'dbParam':_0x6bd6ab[_0xd4a319(0x16e)](_0xd4a319(0x182))}:{},..._0x6bd6ab[_0xd4a319(0x16e)](_0xd4a319(0x166))?{'dbDesc':_0x6bd6ab[_0xd4a319(0x16e)](_0xd4a319(0x166))}:{}};return{'method':_0xd4a319(0x17d),'url':_0xd4a319(0x165),'body':_0x4a9542,'description':[_0xd4a319(0x174),_0x6bd6ab[_0xd4a319(0x159)](_0xd4a319(0x180))?_0xd4a319(0x175):'No\x20follow-up\x20analysis']['join']('\x0a')};},async 'execute'(_0x46363f){const _0x3b1ad0=a67_0x4e15e6,_0x51bfaa={'appCode':_0x46363f['appCode'],'dbName':_0x46363f[_0x3b1ad0(0x16e)](_0x3b1ad0(0x178)),'dbType':_0x46363f[_0x3b1ad0(0x16e)]('dbtype'),'dbVersion':_0x46363f[_0x3b1ad0(0x16e)](_0x3b1ad0(0x16b))||_0x3b1ad0(0x184),'dbUrl':_0x46363f['str'](_0x3b1ad0(0x17b))[_0x3b1ad0(0x168)](),'username':_0x46363f[_0x3b1ad0(0x16e)](_0x3b1ad0(0x16c)),'password':_0x46363f['str']('password'),..._0x46363f['str'](_0x3b1ad0(0x182))?{'dbParam':_0x46363f[_0x3b1ad0(0x16e)]('dbparam')}:{},..._0x46363f[_0x3b1ad0(0x16e)]('dbdesc')?{'dbDesc':_0x46363f[_0x3b1ad0(0x16e)](_0x3b1ad0(0x166))}:{}},{id:_0x5ae41e,entity:_0x52f1b7}=normalizeEntityWithIdResponse(await createDbLink(_0x51bfaa));if(!_0x5ae41e)return{'ok':![],'message':_0x3b1ad0(0x183),'data':sanitizeDbLinkForOutput(_0x52f1b7)};let _0x399671,_0x3aaaa4;if(_0x46363f[_0x3b1ad0(0x159)](_0x3b1ad0(0x180)))try{_0x399671=await startDbAnalysis(_0x5ae41e);}catch(_0x220bd7){_0x3aaaa4=_0x220bd7 instanceof Error?_0x220bd7[_0x3b1ad0(0x15f)]:String(_0x220bd7);}const _0x1bc7ba=buildDbPageLinks(_0x46363f['appCode'],_0x5ae41e),_0x1a1bc9={'connection':sanitizeDbLinkForOutput(_0x52f1b7),..._0x1bc7ba?{'links':{'databasePage':_0x1bc7ba[_0x3b1ad0(0x163)]}}:{},..._0x399671?{'analysisPlanId':_0x399671}:{},..._0x3aaaa4?{'analysisStartWarning':_0x3aaaa4}:{}};let _0x5e48d9;return _0x46363f[_0x3b1ad0(0x159)](_0x3b1ad0(0x180))?_0x3aaaa4?_0x5e48d9=_0x3b1ad0(0x167)+_0x5ae41e+_0x3b1ad0(0x16d):_0x5e48d9='Created\x20db\x20link\x20'+_0x5ae41e+_0x3b1ad0(0x17f):_0x5e48d9=_0x3b1ad0(0x167)+_0x5ae41e,{'ok':!![],'data':_0x1a1bc9,'message':_0x5e48d9};}};
@@ -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_0x30b659=a68_0x19e8;function a68_0x19e8(_0x47b706,_0x587140){_0x47b706=_0x47b706-0x180;const _0x1ef205=a68_0x1ef2();let _0x19e84b=_0x1ef205[_0x47b706];return _0x19e84b;}(function(_0x5d6dcf,_0x836259){const _0x4d6534=a68_0x19e8,_0x38ac4e=_0x5d6dcf();while(!![]){try{const _0x4d1bf6=-parseInt(_0x4d6534(0x188))/0x1+-parseInt(_0x4d6534(0x180))/0x2+parseInt(_0x4d6534(0x184))/0x3*(-parseInt(_0x4d6534(0x183))/0x4)+parseInt(_0x4d6534(0x18e))/0x5*(parseInt(_0x4d6534(0x181))/0x6)+parseInt(_0x4d6534(0x186))/0x7*(-parseInt(_0x4d6534(0x18f))/0x8)+-parseInt(_0x4d6534(0x18d))/0x9*(-parseInt(_0x4d6534(0x189))/0xa)+-parseInt(_0x4d6534(0x18c))/0xb*(-parseInt(_0x4d6534(0x18b))/0xc);if(_0x4d1bf6===_0x836259)break;else _0x38ac4e['push'](_0x38ac4e['shift']());}catch(_0x473f63){_0x38ac4e['push'](_0x38ac4e['shift']());}}}(a68_0x1ef2,0x407ec));import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a68_0x1ef2(){const _0x2d7a4c=['high-risk-write','4MlWkLc','1383123TjlIeJ','num','7WeMsMd','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','458093KwplPa','40vMwPHL','delete','1203348LCOaNB','88pxTYTf','1182366ECOIgH','5svnzUa','755864XTdmtF','657208dbkwbH','1671990UlKEAN'];a68_0x1ef2=function(){return _0x2d7a4c;};return a68_0x1ef2();}export const dbDelete={'service':'db','command':a68_0x30b659(0x18a),'description':a68_0x30b659(0x187),'risk':a68_0x30b659(0x182),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5d3966){const _0x3e8a68=a68_0x30b659,_0x6a84b4=_0x5d3966[_0x3e8a68(0x185)]('id');return await deleteDbLink(_0x6a84b4),{'ok':!![],'data':{'id':_0x6a84b4,'deleted':!![]},'message':'Deleted\x20db\x20link\x20'+_0x6a84b4};}};
@@ -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_0x43a90b=a69_0x3a01;function a69_0x3a01(_0x199880,_0xec271e){_0x199880=_0x199880-0x1d8;const _0x469c00=a69_0x469c();let _0x3a01b9=_0x469c00[_0x199880];return _0x3a01b9;}(function(_0x55c884,_0x5a2209){const _0x35af2a=a69_0x3a01,_0x4dbc4e=_0x55c884();while(!![]){try{const _0x109777=-parseInt(_0x35af2a(0x1dd))/0x1+parseInt(_0x35af2a(0x1d8))/0x2+parseInt(_0x35af2a(0x1e7))/0x3+parseInt(_0x35af2a(0x1df))/0x4*(-parseInt(_0x35af2a(0x1db))/0x5)+-parseInt(_0x35af2a(0x1de))/0x6*(-parseInt(_0x35af2a(0x1e4))/0x7)+-parseInt(_0x35af2a(0x1dc))/0x8*(-parseInt(_0x35af2a(0x1da))/0x9)+-parseInt(_0x35af2a(0x1e1))/0xa*(parseInt(_0x35af2a(0x1e5))/0xb);if(_0x109777===_0x5a2209)break;else _0x4dbc4e['push'](_0x4dbc4e['shift']());}catch(_0x2a3d60){_0x4dbc4e['push'](_0x4dbc4e['shift']());}}}(a69_0x469c,0x57f7d));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';function a69_0x469c(){const _0x4e2500=['Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','171HdOoLd','40360EXUsoW','110384LvCFPv','72388Mqvgpg','72tINObE','192eFrISr','num','929470KtVQzn','db\x20link\x20','read','236348BfGGnL','77hEiCdG','detail','1614591oUgYTS','530526aOAURA'];a69_0x469c=function(){return _0x4e2500;};return a69_0x469c();}export const dbDetail={'service':'db','command':a69_0x43a90b(0x1e6),'description':a69_0x43a90b(0x1d9),'risk':a69_0x43a90b(0x1e3),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4f11f0){const _0x5b990b=a69_0x43a90b,_0x3dbdfe=_0x4f11f0[_0x5b990b(0x1e0)]('id'),_0x2e58d8=await getDbLinkInfo(_0x3dbdfe);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x2e58d8),'message':_0x5b990b(0x1e2)+_0x3dbdfe+':\x20'+_0x2e58d8['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
+ const a70_0x31ebc2=a70_0xe092;function a70_0xe092(_0x3a2e9c,_0x177b43){_0x3a2e9c=_0x3a2e9c-0x16e;const _0x23a385=a70_0x23a3();let _0xe0923e=_0x23a385[_0x3a2e9c];return _0xe0923e;}(function(_0x43289b,_0x573cc7){const _0x3b4195=a70_0xe092,_0x28dfd0=_0x43289b();while(!![]){try{const _0x4c8d78=parseInt(_0x3b4195(0x17b))/0x1+parseInt(_0x3b4195(0x181))/0x2+-parseInt(_0x3b4195(0x17f))/0x3+parseInt(_0x3b4195(0x17a))/0x4*(parseInt(_0x3b4195(0x183))/0x5)+parseInt(_0x3b4195(0x182))/0x6*(parseInt(_0x3b4195(0x172))/0x7)+parseInt(_0x3b4195(0x173))/0x8+-parseInt(_0x3b4195(0x16f))/0x9*(parseInt(_0x3b4195(0x184))/0xa);if(_0x4c8d78===_0x573cc7)break;else _0x28dfd0['push'](_0x28dfd0['shift']());}catch(_0x151a1f){_0x28dfd0['push'](_0x28dfd0['shift']());}}}(a70_0x23a3,0xc2037));function a70_0x23a3(){const _0x244465=['\x20row(s),\x20total\x20','26755452kekJgH','number','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','70AOvyZx','7427440GfGBnu','length','string','Page\x20index\x20(1-based)','page','num','Page\x20size','19816ovWuEJ','1023211UndwWO','table','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','read','4725690PetyWV','pagesize','1853280nIsphb','679098vxCkBz','1345JHDYba','10dJyKPZ','appCode','str'];a70_0x23a3=function(){return _0x244465;};return a70_0x23a3();}import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDiff={'service':'db','command':'diff','description':a70_0x31ebc2(0x171),'risk':a70_0x31ebc2(0x17e),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a70_0x31ebc2(0x17c),'type':a70_0x31ebc2(0x175),'description':a70_0x31ebc2(0x17d)},{'name':a70_0x31ebc2(0x177),'type':a70_0x31ebc2(0x170),'description':a70_0x31ebc2(0x176),'default':0x1},{'name':a70_0x31ebc2(0x180),'type':a70_0x31ebc2(0x170),'description':a70_0x31ebc2(0x179),'default':0x14}],async 'execute'(_0x1794a8){const _0x1fe41b=a70_0x31ebc2,_0x39bfbf=_0x1794a8[_0x1fe41b(0x178)]('id'),_0xef8272=_0x1794a8['num'](_0x1fe41b(0x177),0x1)||0x1,_0x4b8773=_0x1794a8['num']('pagesize',0x14)||0x14,_0x4d64c0=_0x1794a8[_0x1fe41b(0x186)]('table')||undefined,{totalCount:_0x3c1176,tableList:_0x442f06}=await getDbTableDiff(_0x1794a8[_0x1fe41b(0x185)],_0x39bfbf,{'pageIndex':_0xef8272,'pageSize':_0x4b8773,'tableName':_0x4d64c0});return{'ok':!![],'data':{'dbLinkId':_0x39bfbf,'page':_0xef8272,'pageSize':_0x4b8773,'totalCount':_0x3c1176,'tableList':_0x442f06},'message':_0x442f06[_0x1fe41b(0x174)]+_0x1fe41b(0x16e)+_0x3c1176+'\x20(db\x20link\x20'+_0x39bfbf+')'};}};
@@ -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(_0x320e17,_0x372d8c){const _0x6da64e=a71_0x17e5,_0x55edd2=_0x320e17();while(!![]){try{const _0x17c1c9=parseInt(_0x6da64e(0x109))/0x1+-parseInt(_0x6da64e(0x10b))/0x2*(-parseInt(_0x6da64e(0x10a))/0x3)+-parseInt(_0x6da64e(0x10d))/0x4+-parseInt(_0x6da64e(0x107))/0x5*(parseInt(_0x6da64e(0x10f))/0x6)+parseInt(_0x6da64e(0x10c))/0x7*(-parseInt(_0x6da64e(0x110))/0x8)+-parseInt(_0x6da64e(0x10e))/0x9+parseInt(_0x6da64e(0x108))/0xa*(parseInt(_0x6da64e(0x111))/0xb);if(_0x17c1c9===_0x372d8c)break;else _0x55edd2['push'](_0x55edd2['shift']());}catch(_0x2de073){_0x55edd2['push'](_0x55edd2['shift']());}}}(a71_0x68da,0xe6cfa));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';function a71_0x17e5(_0x3c05ee,_0x247281){_0x3c05ee=_0x3c05ee-0x107;const _0x68da0e=a71_0x68da();let _0x17e5bc=_0x68da0e[_0x3c05ee];return _0x17e5bc;}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_0x68da(){const _0x18bd2d=['5004807dNaCkk','2ibymfZ','21pqlogY','6425340NRKpTS','15072669kRrZye','477774KWBYFb','4246888OFBBpc','186296zNaaFb','65ewXoHG','2330BVdLBY','1239881yKAFAx'];a71_0x68da=function(){return _0x18bd2d;};return a71_0x68da();}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_0x5512(_0x596b21,_0x2d43c7){_0x596b21=_0x596b21-0xf1;const _0x15490d=a72_0x1549();let _0x551269=_0x15490d[_0x596b21];return _0x551269;}const a72_0x1b64c0=a72_0x5512;(function(_0x1121c7,_0x3cdfd9){const _0x3abedc=a72_0x5512,_0x2fecb2=_0x1121c7();while(!![]){try{const _0x13af7c=-parseInt(_0x3abedc(0x103))/0x1+-parseInt(_0x3abedc(0xff))/0x2*(parseInt(_0x3abedc(0x104))/0x3)+parseInt(_0x3abedc(0xf7))/0x4+parseInt(_0x3abedc(0xfc))/0x5*(parseInt(_0x3abedc(0x101))/0x6)+parseInt(_0x3abedc(0xf4))/0x7*(parseInt(_0x3abedc(0xf3))/0x8)+-parseInt(_0x3abedc(0xfd))/0x9+parseInt(_0x3abedc(0x105))/0xa*(-parseInt(_0x3abedc(0xfa))/0xb);if(_0x13af7c===_0x3cdfd9)break;else _0x2fecb2['push'](_0x2fecb2['shift']());}catch(_0x91b77b){_0x2fecb2['push'](_0x2fecb2['shift']());}}}(a72_0x1549,0x49f20));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a72_0x1b64c0(0xf1),'description':a72_0x1b64c0(0x108),'risk':a72_0x1b64c0(0x106),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':'number','description':a72_0x1b64c0(0xf9),'default':0x1},{'name':a72_0x1b64c0(0xf6),'type':a72_0x1b64c0(0xfb),'description':a72_0x1b64c0(0xf8),'default':0x64}],async 'execute'(_0x48b1c2){const _0x5b8a91=a72_0x1b64c0,_0x2c1234=_0x48b1c2[_0x5b8a91(0x100)](_0x5b8a91(0x107),0x1)||0x1,_0x5384cb=_0x48b1c2[_0x5b8a91(0x100)](_0x5b8a91(0xf6),0x64)||0x64,{items:_0x29bcc5,paging:_0x8b8c8a}=await listDbLinks(_0x48b1c2[_0x5b8a91(0xf5)],{'currentPage':_0x2c1234,'pageSize':_0x5384cb}),_0x1385c9=sanitizeDbLinkList(_0x29bcc5),_0x2d32f7=_0x8b8c8a?_0x8b8c8a:{'currentPage':_0x2c1234,'pageSize':_0x5384cb,'rowsOnPage':_0x1385c9['length'],'totalCount':null,'note':_0x5b8a91(0xf2)};return{'ok':!![],'data':{'connections':_0x1385c9,'paging':_0x2d32f7},'message':'Found\x20'+_0x1385c9[_0x5b8a91(0x102)]+_0x5b8a91(0xfe)};}};function a72_0x1549(){const _0x161fa7=['2960455MAoytK','1200303QXSuxl','\x20database\x20connection(s)','2HDRlkb','num','6hYUcjw','length','388011XDXjtD','402447hhRwzz','130McHcnB','read','page','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','list','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','8WGSOro','1157611icvdiB','appCode','pagesize','1428864SYZVjr','Page\x20size','Page\x20index\x20(1-based)','132231xiFWLr','number'];a72_0x1549=function(){return _0x161fa7;};return a72_0x1549();}
@@ -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(_0x472bb5,_0x3b02c8){const _0x4ebe34=a73_0x190e,_0x32af3e=_0x472bb5();while(!![]){try{const _0x46454a=-parseInt(_0x4ebe34(0x1ef))/0x1+-parseInt(_0x4ebe34(0x204))/0x2*(-parseInt(_0x4ebe34(0x1f3))/0x3)+-parseInt(_0x4ebe34(0x1ed))/0x4+-parseInt(_0x4ebe34(0x1eb))/0x5+-parseInt(_0x4ebe34(0x201))/0x6+parseInt(_0x4ebe34(0x202))/0x7*(parseInt(_0x4ebe34(0x1ec))/0x8)+parseInt(_0x4ebe34(0x1f4))/0x9;if(_0x46454a===_0x3b02c8)break;else _0x32af3e['push'](_0x32af3e['shift']());}catch(_0x3ab1c3){_0x32af3e['push'](_0x32af3e['shift']());}}}(a73_0xf9e0,0xe5293));function a73_0x190e(_0x543524,_0x1665fe){_0x543524=_0x543524-0x1e8;const _0xf9e0c5=a73_0xf9e0();let _0x190e45=_0xf9e0c5[_0x543524];return _0x190e45;}import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0x4b1305){const _0x37f1aa=a73_0x190e,_0x3fde3e=_0x4b1305[_0x37f1aa(0x1f9)]();if(_0x3fde3e==='password'||_0x3fde3e===_0x37f1aa(0x1fa)||_0x3fde3e===_0x37f1aa(0x1e9))return!![];if(_0x3fde3e[_0x37f1aa(0x1f0)](_0x37f1aa(0x203))||_0x3fde3e['includes']('token')||_0x3fde3e[_0x37f1aa(0x1f0)]('credential'))return!![];if(_0x3fde3e[_0x37f1aa(0x1f0)](_0x37f1aa(0x1fc))||_0x3fde3e['includes'](_0x37f1aa(0x1ea)))return!![];if(_0x3fde3e===_0x37f1aa(0x1f1)||_0x3fde3e==='connectionstring'||_0x3fde3e===_0x37f1aa(0x1fb))return!![];return![];}export function sanitizeDbLinkForOutput(_0x110780){const _0x16c800=a73_0x190e,_0x43117f={..._0x110780};for(const _0x142a7c of Object[_0x16c800(0x1f6)](_0x43117f)){if(!shouldRedactKey(_0x142a7c))continue;const _0x35e0ec=_0x43117f[_0x142a7c];_0x35e0ec!=null&&String(_0x35e0ec)[_0x16c800(0x200)]>0x0&&(_0x43117f[_0x142a7c]=_0x16c800(0x1f2));}return _0x43117f;}export function sanitizeDbLinkList(_0x5662e8){const _0x452dde=a73_0x190e;return _0x5662e8[_0x452dde(0x1f7)](_0x38023a=>sanitizeDbLinkForOutput(_0x38023a));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x548e94){const _0x1609c4=a73_0x190e,_0x2e8e0a=_0x548e94[_0x1609c4(0x1fd)]();if(!_0x2e8e0a)return![];return DB_URL_PATTERN[_0x1609c4(0x1fe)](_0x2e8e0a);}function a73_0xf9e0(){const _0x123f7e=['/data/er?dbId=','https://app.lovrabet.com/app/','dbpassword','accesskey','6834420qJrdIh','237624dLqqKb','3381924qbBnek','/data/database','1390497rshKNg','includes','authorization','[redacted]','282VsryXG','40625730KLuGgM','number','keys','map','https://daily.lovrabet.com/web-app/app/','toLowerCase','passwd','jdbcurl','privatekey','trim','test','isFinite','length','10327896KjiPYH','133PNUUiG','secret','25202lNBBpy'];a73_0xf9e0=function(){return _0x123f7e;};return a73_0xf9e0();}export function buildDbPageLinks(_0xc08ddd,_0x423fd8){const _0x18b7cd=a73_0x190e,_0x1d2c81=_0xc08ddd?.[_0x18b7cd(0x1fd)]();if(!_0x1d2c81)return undefined;const _0x4b7429=typeof _0x423fd8===_0x18b7cd(0x1f5)?String(_0x423fd8):String(_0x423fd8??'')['trim']();if(!_0x4b7429)return undefined;const _0x11efdb=Number(_0x4b7429);if(!Number[_0x18b7cd(0x1ff)](_0x11efdb)||_0x11efdb<=0x0)return undefined;const _0x3b553f=isDaily(normalizeEnv(getEnv()))?_0x18b7cd(0x1f8)+encodeURIComponent(_0x1d2c81):_0x18b7cd(0x1e8)+encodeURIComponent(_0x1d2c81),_0x4d7a7b=encodeURIComponent(String(_0x11efdb));return{'databasePage':_0x3b553f+_0x18b7cd(0x1ee),'erPage':_0x3b553f+_0x18b7cd(0x205)+_0x4d7a7b};}
@@ -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_0x85936b=a74_0x17c7;function a74_0x440e(){const _0x55097d=['814938gsaaRa','70dYmoma','7496577PlijeE','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','27176UmbhFR','num','133VRIIJS','5gOjgJm','7195536kozBPo','length','28047tVxNIb','104xcqpMJ','370kzOmAi','1278893ntwDeL','1352TNauMy','tables'];a74_0x440e=function(){return _0x55097d;};return a74_0x440e();}(function(_0x17934f,_0x4209c7){const _0x24ce24=a74_0x17c7,_0x1285cf=_0x17934f();while(!![]){try{const _0x12fb3a=-parseInt(_0x24ce24(0x1a9))/0x1*(-parseInt(_0x24ce24(0x1ab))/0x2)+-parseInt(_0x24ce24(0x1a7))/0x3*(parseInt(_0x24ce24(0x1a8))/0x4)+parseInt(_0x24ce24(0x1a4))/0x5*(-parseInt(_0x24ce24(0x1ad))/0x6)+parseInt(_0x24ce24(0x1a3))/0x7*(parseInt(_0x24ce24(0x1a1))/0x8)+-parseInt(_0x24ce24(0x19f))/0x9+parseInt(_0x24ce24(0x1ae))/0xa*(parseInt(_0x24ce24(0x1aa))/0xb)+parseInt(_0x24ce24(0x1a5))/0xc;if(_0x12fb3a===_0x4209c7)break;else _0x1285cf['push'](_0x1285cf['shift']());}catch(_0x6e89d9){_0x1285cf['push'](_0x1285cf['shift']());}}}(a74_0x440e,0x7e0ba));import{getDbAllTableList}from'../../core/api-client.js';function a74_0x17c7(_0xbcb26d,_0x3198fc){_0xbcb26d=_0xbcb26d-0x19f;const _0x440e5d=a74_0x440e();let _0x17c754=_0x440e5d[_0xbcb26d];return _0x17c754;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a74_0x85936b(0x1ac),'description':a74_0x85936b(0x1a0),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0xd4d80d){const _0x44ff7f=a74_0x85936b,_0x598b5f=_0xd4d80d[_0x44ff7f(0x1a2)]('id'),_0x4c4ef8=await getDbAllTableList(_0xd4d80d['appCode'],_0x598b5f);return{'ok':!![],'data':{'dbLinkId':_0x598b5f,'total':_0x4c4ef8[_0x44ff7f(0x1a6)],'tables':_0x4c4ef8},'message':_0x4c4ef8[_0x44ff7f(0x1a6)]+'\x20table(s)\x20on\x20db\x20link\x20'+_0x598b5f};}};
@@ -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
+ function a75_0x4f31(_0x4b1911,_0x1eb808){_0x4b1911=_0x4b1911-0x68;const _0x3b70a3=a75_0x3b70();let _0x4f3118=_0x3b70a3[_0x4b1911];return _0x4f3118;}const a75_0x3c4259=a75_0x4f31;(function(_0x2c18fc,_0x554a8c){const _0x5c7d02=a75_0x4f31,_0x448b58=_0x2c18fc();while(!![]){try{const _0x37f544=-parseInt(_0x5c7d02(0x7b))/0x1*(-parseInt(_0x5c7d02(0x68))/0x2)+parseInt(_0x5c7d02(0x74))/0x3*(parseInt(_0x5c7d02(0x6e))/0x4)+parseInt(_0x5c7d02(0x7c))/0x5*(parseInt(_0x5c7d02(0x69))/0x6)+parseInt(_0x5c7d02(0x75))/0x7*(parseInt(_0x5c7d02(0x6c))/0x8)+parseInt(_0x5c7d02(0x6b))/0x9+parseInt(_0x5c7d02(0x71))/0xa+-parseInt(_0x5c7d02(0x70))/0xb*(parseInt(_0x5c7d02(0x72))/0xc);if(_0x37f544===_0x554a8c)break;else _0x448b58['push'](_0x448b58['shift']());}catch(_0x213de0){_0x448b58['push'](_0x448b58['shift']());}}}(a75_0x3b70,0xe4a61));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x52bb35){const _0x586ca9=a75_0x4f31;if(_0x52bb35===!![]||_0x52bb35===![])return{'success':_0x52bb35};if(_0x52bb35===null||_0x52bb35===undefined)return{'type':typeof _0x52bb35};if(typeof _0x52bb35!=='object')return{'type':typeof _0x52bb35};const _0x2cf8b6=_0x52bb35,_0x144981=[_0x586ca9(0x6a),'message',_0x586ca9(0x73),_0x586ca9(0x6d),_0x586ca9(0x77),_0x586ca9(0x79)],_0x5577cd={};for(const _0x119669 of _0x144981){if(_0x119669 in _0x2cf8b6)_0x5577cd[_0x119669]=_0x2cf8b6[_0x119669];}return Object[_0x586ca9(0x6f)](_0x5577cd)['length']===0x0&&(_0x5577cd['keys']=Object['keys'](_0x2cf8b6)[_0x586ca9(0x78)](0x0,0x14)),_0x5577cd;}function a75_0x3b70(){const _0xae96d4=['11MIMLhm','12625970jaTwTN','59128308cRFcos','code','381bsnbBY','26600CuPQlB','\x20(see\x20data.result)','msg','slice','data','test','69425HYMMNI','10FtSAQd','34wlETCM','1937010UtZDSN','success','5981094XIBTql','728kPDVkb','error','55592XdOfXT','keys'];a75_0x3b70=function(){return _0xae96d4;};return a75_0x3b70();}export const dbTest={'service':'db','command':a75_0x3c4259(0x7a),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3b4f3a){const _0x3e90c8=a75_0x3c4259,_0x498eac=_0x3b4f3a['num']('id'),_0x5f07d3=await testDbLinkConnect(_0x498eac),_0x4a6690=_0x5f07d3===!![]||typeof _0x5f07d3==='object'&&_0x5f07d3!==null&&_0x5f07d3['success']===!![],_0x26c1b8=summarizeTestConnectResult(_0x5f07d3);return{'ok':!![],'data':{'id':_0x498eac,'connected':Boolean(_0x4a6690),'result':_0x26c1b8},'message':_0x4a6690?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x498eac:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x498eac+_0x3e90c8(0x76)};}};
@@ -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
+ function a76_0x55ad(){const _0x7d9f65=['Updated\x20db\x20link\x20','New\x20database\x20name','write','dbname','108858AxHQHA','New\x20connection\x20parameter\x20string','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','username','dbparam','/smartapi/dblink/update','dbUrl','num','update','31364qNpPVF','2061944aUDYKg','150wkGsOJ','New\x20description','dburl','password','string','1042350xdkRMO','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','dbdesc','167436DSGLJM','trim','dbDesc','27LqCaii','New\x20host:port','str','77JRnxVC','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','dbName','339855RBKvwt','POST','New\x20username','1931210XhxKsb'];a76_0x55ad=function(){return _0x7d9f65;};return a76_0x55ad();}const a76_0x23a1d1=a76_0x4dd9;(function(_0xc6ef72,_0x4cede1){const _0x48d143=a76_0x4dd9,_0x245531=_0xc6ef72();while(!![]){try{const _0x371e97=-parseInt(_0x48d143(0x20b))/0x1+-parseInt(_0x48d143(0x202))/0x2+parseInt(_0x48d143(0x1ff))/0x3+parseInt(_0x48d143(0x1f8))/0x4*(-parseInt(_0x48d143(0x1fa))/0x5)+-parseInt(_0x48d143(0x213))/0x6*(-parseInt(_0x48d143(0x208))/0x7)+-parseInt(_0x48d143(0x1f9))/0x8+-parseInt(_0x48d143(0x205))/0x9*(-parseInt(_0x48d143(0x20e))/0xa);if(_0x371e97===_0x4cede1)break;else _0x245531['push'](_0x245531['shift']());}catch(_0x14acd0){_0x245531['push'](_0x245531['shift']());}}}(a76_0x55ad,0x333b0));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a76_0x4dd9(_0x39f476,_0x13b546){_0x39f476=_0x39f476-0x1f1;const _0x55ad58=a76_0x55ad();let _0x4dd91b=_0x55ad58[_0x39f476];return _0x4dd91b;}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_0x23a1d1(0x1f7),'description':a76_0x23a1d1(0x209),'risk':a76_0x23a1d1(0x211),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a76_0x23a1d1(0x212),'type':a76_0x23a1d1(0x1fe),'description':a76_0x23a1d1(0x210)},{'name':a76_0x23a1d1(0x1fc),'type':a76_0x23a1d1(0x1fe),'description':a76_0x23a1d1(0x206)},{'name':a76_0x23a1d1(0x1f2),'type':'string','description':a76_0x23a1d1(0x20d)},{'name':'password','type':'string','description':a76_0x23a1d1(0x200)},{'name':a76_0x23a1d1(0x1f3),'type':'string','description':a76_0x23a1d1(0x214)},{'name':'dbdesc','type':a76_0x23a1d1(0x1fe),'description':a76_0x23a1d1(0x1fb)}],async 'validate'(_0x2905e9){const _0xd6aab=a76_0x23a1d1,_0x25e5eb=_0x2905e9[_0xd6aab(0x207)](_0xd6aab(0x1fc));if(_0x25e5eb&&!validateDbUrl(_0x25e5eb['trim']()))throw CliErrors['validation']('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x25e5eb+'\x22');},async 'dryRun'(_0x594e7d){const _0x457582=a76_0x23a1d1,_0x268075=_0x594e7d['num']('id'),_0x248d4a=await getDbLinkInfo(_0x268075),_0x491c26={..._0x248d4a},_0x241813=_0x594e7d[_0x457582(0x207)](_0x457582(0x212));if(_0x241813)_0x491c26['dbName']=_0x241813;const _0x31e4d0=_0x594e7d[_0x457582(0x207)](_0x457582(0x1fc));if(_0x31e4d0)_0x491c26[_0x457582(0x1f5)]=_0x31e4d0[_0x457582(0x203)]();const _0x2c7c8f=_0x594e7d[_0x457582(0x207)]('username');if(_0x2c7c8f)_0x491c26['username']=_0x2c7c8f;const _0x229c75=_0x594e7d[_0x457582(0x207)]('password');if(_0x229c75)_0x491c26[_0x457582(0x1fd)]=_0x229c75;const _0x139b24=_0x594e7d['str']('dbparam');if(_0x139b24)_0x491c26['dbParam']=_0x139b24;const _0x456628=_0x594e7d[_0x457582(0x207)]('dbdesc');if(_0x456628)_0x491c26[_0x457582(0x204)]=_0x456628;const _0x21d72c=sanitizeDbLinkForOutput(_0x491c26);return{'method':_0x457582(0x20c),'url':_0x457582(0x1f4),'body':_0x21d72c,'description':_0x457582(0x1f1)};},async 'execute'(_0x51b556){const _0x43dee7=a76_0x23a1d1,_0x5d32c2=_0x51b556[_0x43dee7(0x1f6)]('id'),_0x518bf8=await getDbLinkInfo(_0x5d32c2),_0x167edd={..._0x518bf8},_0x51dcac=_0x51b556[_0x43dee7(0x207)](_0x43dee7(0x212));if(_0x51dcac)_0x167edd[_0x43dee7(0x20a)]=_0x51dcac;const _0x495ac6=_0x51b556[_0x43dee7(0x207)](_0x43dee7(0x1fc));if(_0x495ac6)_0x167edd['dbUrl']=_0x495ac6[_0x43dee7(0x203)]();const _0x209cbd=_0x51b556[_0x43dee7(0x207)](_0x43dee7(0x1f2));if(_0x209cbd)_0x167edd['username']=_0x209cbd;const _0x98fb6f=_0x51b556[_0x43dee7(0x207)]('password');if(_0x98fb6f)_0x167edd[_0x43dee7(0x1fd)]=_0x98fb6f;const _0x566905=_0x51b556[_0x43dee7(0x207)](_0x43dee7(0x1f3));if(_0x566905)_0x167edd['dbParam']=_0x566905;const _0x5291dc=_0x51b556['str'](_0x43dee7(0x201));if(_0x5291dc)_0x167edd[_0x43dee7(0x204)]=_0x5291dc;const {id:_0x4c1ea7,entity:_0x480c68}=normalizeEntityWithIdResponse(await updateDbLink(_0x167edd));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x480c68),'message':_0x43dee7(0x20f)+(_0x4c1ea7??_0x5d32c2)};}};
@@ -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
+ function a77_0x59b1(_0x46b1d8,_0x28038b){_0x46b1d8=_0x46b1d8-0x125;const _0x57c953=a77_0x57c9();let _0x59b13a=_0x57c953[_0x46b1d8];return _0x59b13a;}const a77_0x20438f=a77_0x59b1;(function(_0x49d41b,_0x144b7d){const _0x1f286f=a77_0x59b1,_0x432a7e=_0x49d41b();while(!![]){try{const _0x2a2bb0=-parseInt(_0x1f286f(0x16e))/0x1+-parseInt(_0x1f286f(0x12b))/0x2*(parseInt(_0x1f286f(0x166))/0x3)+-parseInt(_0x1f286f(0x175))/0x4+parseInt(_0x1f286f(0x131))/0x5+parseInt(_0x1f286f(0x138))/0x6*(parseInt(_0x1f286f(0x140))/0x7)+-parseInt(_0x1f286f(0x156))/0x8*(-parseInt(_0x1f286f(0x152))/0x9)+parseInt(_0x1f286f(0x14d))/0xa;if(_0x2a2bb0===_0x144b7d)break;else _0x432a7e['push'](_0x432a7e['shift']());}catch(_0x3dea4f){_0x432a7e['push'](_0x432a7e['shift']());}}}(a77_0x57c9,0x32503));import a77_0x1823b2 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x1befd0){const _0x37d28e=a77_0x59b1,_0x4de722=GIT_COMMIT!==_0x37d28e(0x13d)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x37d28e(0x13e)](0x0,0xa)+')':VERSION,_0x43870c=buildConfigFromFlags({}),_0x5be00f=getCookie();console[_0x37d28e(0x15a)](),console['log'](a77_0x1823b2[_0x37d28e(0x15d)](CLI_BIN_NAME+_0x37d28e(0x139))),console[_0x37d28e(0x15a)](a77_0x1823b2[_0x37d28e(0x160)]('─'[_0x37d28e(0x13a)](0x32))),console[_0x37d28e(0x15a)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x4de722),console[_0x37d28e(0x15a)](_0x37d28e(0x174)+process[_0x37d28e(0x16f)]),console[_0x37d28e(0x15a)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x37d28e(0x161)]+'\x20'+process[_0x37d28e(0x145)]),console[_0x37d28e(0x15a)](),console[_0x37d28e(0x15a)](a77_0x1823b2[_0x37d28e(0x15d)](_0x37d28e(0x12e))),console[_0x37d28e(0x15a)](a77_0x1823b2[_0x37d28e(0x160)](_0x37d28e(0x167)['repeat'](0x1e)));const _0x4155da=getGlobalConfigPath(),_0x49248d=getProjectConfigPath();console[_0x37d28e(0x15a)](_0x37d28e(0x165)+(_0x4155da||a77_0x1823b2['gray'](_0x37d28e(0x132)))),console[_0x37d28e(0x15a)](_0x37d28e(0x158)+(_0x49248d||a77_0x1823b2['gray']('(not\x20found)'))),console['log'](),console['log'](a77_0x1823b2[_0x37d28e(0x15d)](_0x37d28e(0x128))),console[_0x37d28e(0x15a)](a77_0x1823b2[_0x37d28e(0x160)](_0x37d28e(0x167)[_0x37d28e(0x13a)](0x1e)));const _0x42871b=(_0x31297b,_0x181bb3)=>{const _0x5a22ed=_0x37d28e;if(!_0x181bb3){console[_0x5a22ed(0x15a)]('\x20\x20'+_0x31297b[_0x5a22ed(0x16d)](0x11)+'\x20'+a77_0x1823b2['gray'](_0x5a22ed(0x153)));return;}const _0x5d9f56=inspectCliConfigJsonFile(_0x181bb3);if(_0x5d9f56['status']==='ok')console[_0x5a22ed(0x15a)]('\x20\x20'+_0x31297b[_0x5a22ed(0x16d)](0x11)+'\x20'+a77_0x1823b2['green']('✓\x20Valid\x20JSON'));else{if(_0x5d9f56['status']===_0x5a22ed(0x133))console[_0x5a22ed(0x15a)]('\x20\x20'+_0x31297b['padEnd'](0x11)+'\x20'+a77_0x1823b2[_0x5a22ed(0x13c)](_0x5a22ed(0x154)));else _0x5d9f56[_0x5a22ed(0x149)]===_0x5a22ed(0x172)?console['log']('\x20\x20'+_0x31297b[_0x5a22ed(0x16d)](0x11)+'\x20'+a77_0x1823b2['gray'](_0x5a22ed(0x173))):(console[_0x5a22ed(0x15a)]('\x20\x20'+_0x31297b[_0x5a22ed(0x16d)](0x11)+'\x20'+a77_0x1823b2[_0x5a22ed(0x12a)](_0x5a22ed(0x127))),console[_0x5a22ed(0x15a)]('\x20\x20'+''[_0x5a22ed(0x16d)](0x11)+'\x20'+a77_0x1823b2[_0x5a22ed(0x12a)](_0x5d9f56['message'])));}};_0x42871b(_0x37d28e(0x170),_0x4155da),_0x42871b(_0x37d28e(0x125),_0x49248d),console[_0x37d28e(0x15a)](),console[_0x37d28e(0x15a)](a77_0x1823b2['bold'](_0x37d28e(0x13b))),console['log'](a77_0x1823b2[_0x37d28e(0x160)]('\x20\x20─'['repeat'](0x1e))),console[_0x37d28e(0x15a)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x43870c[_0x37d28e(0x144)]||a77_0x1823b2[_0x37d28e(0x12a)](_0x37d28e(0x12d)))),console['log'](_0x37d28e(0x126)+_0x43870c[_0x37d28e(0x148)]),console['log'](_0x37d28e(0x15b)+_0x43870c[_0x37d28e(0x141)]),console[_0x37d28e(0x15a)](_0x37d28e(0x14b)+_0x43870c[_0x37d28e(0x14c)]),console[_0x37d28e(0x15a)](_0x37d28e(0x129)+(_0x43870c['defaultApp']||a77_0x1823b2[_0x37d28e(0x160)]('(none)'))),console['log'](_0x37d28e(0x137)+(_0x43870c['currentApp']||a77_0x1823b2[_0x37d28e(0x160)](_0x37d28e(0x164)))),console[_0x37d28e(0x15a)]('\x20\x20explicitAppName:\x20'+(_0x43870c[_0x37d28e(0x151)]||a77_0x1823b2[_0x37d28e(0x160)](_0x37d28e(0x164)))),console[_0x37d28e(0x15a)](_0x37d28e(0x143)+(_0x43870c[_0x37d28e(0x155)]||a77_0x1823b2[_0x37d28e(0x160)](_0x37d28e(0x130)+DEFAULT_CONFIG_VALUES[_0x37d28e(0x155)]+')'))),console[_0x37d28e(0x15a)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x43870c['pageSize']??a77_0x1823b2[_0x37d28e(0x160)](_0x37d28e(0x162)))),console['log'](_0x37d28e(0x157)+_0x43870c['riskLevel']),console[_0x37d28e(0x15a)](_0x37d28e(0x163)+_0x43870c[_0x37d28e(0x168)]),console[_0x37d28e(0x15a)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x43870c['cookie']?a77_0x1823b2[_0x37d28e(0x16b)](_0x37d28e(0x12f)+_0x43870c[_0x37d28e(0x176)][_0x37d28e(0x14a)]+')'):_0x5be00f?a77_0x1823b2[_0x37d28e(0x16b)](_0x37d28e(0x12c)+_0x5be00f[_0x37d28e(0x14a)]+')'):a77_0x1823b2[_0x37d28e(0x160)](_0x37d28e(0x164))));const _0x5e3215=Object[_0x37d28e(0x16a)](_0x43870c[_0x37d28e(0x13f)]);if(_0x5e3215['length']>0x0){console[_0x37d28e(0x15a)](),console[_0x37d28e(0x15a)](a77_0x1823b2['bold']('\x20\x20Apps')),console[_0x37d28e(0x15a)](a77_0x1823b2['gray'](_0x37d28e(0x167)[_0x37d28e(0x13a)](0x1e)));for(const _0x11756a of _0x5e3215){const _0x465c1c=_0x43870c['apps'][_0x11756a],_0x2926a7=_0x11756a===_0x43870c['defaultApp'],_0xd56489=_0x11756a===_0x43870c[_0x37d28e(0x14e)],_0x5ba8f7=_0xd56489?a77_0x1823b2[_0x37d28e(0x16b)]('\x20←\x20current'):'',_0x218314=_0x2926a7?'\x20(default)':'';console[_0x37d28e(0x15a)]('\x20\x20'+_0x11756a+_0x218314+_0x5ba8f7),console[_0x37d28e(0x15a)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x465c1c[_0x37d28e(0x135)]);const _0x48044b=buildAppDoctorFields(_0x465c1c,{'env':_0x43870c['env'],'apiDir':_0x43870c[_0x37d28e(0x15f)][_0x37d28e(0x14c)]||DEFAULT_CONFIG_VALUES[_0x37d28e(0x14c)],'cookie':_0x43870c['cookie']||_0x5be00f||undefined,'accessKey':_0x43870c[_0x37d28e(0x16c)]});console['log'](_0x37d28e(0x147)+_0x48044b[_0x37d28e(0x148)][_0x37d28e(0x142)]+'\x20\x20'+a77_0x1823b2['gray']('('+_0x48044b[_0x37d28e(0x148)]['source']+')')),console[_0x37d28e(0x15a)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x48044b['apiDir'][_0x37d28e(0x142)]+'\x20\x20'+a77_0x1823b2['gray']('('+_0x48044b[_0x37d28e(0x14c)][_0x37d28e(0x15c)]+')'));const _0x69d03b=_0x48044b['cookie'][_0x37d28e(0x142)]?a77_0x1823b2[_0x37d28e(0x16b)](_0x37d28e(0x12f)+_0x48044b[_0x37d28e(0x176)][_0x37d28e(0x142)][_0x37d28e(0x14a)]+')'):a77_0x1823b2[_0x37d28e(0x160)](_0x37d28e(0x164));console[_0x37d28e(0x15a)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x69d03b+'\x20\x20'+a77_0x1823b2[_0x37d28e(0x160)]('('+_0x48044b[_0x37d28e(0x176)][_0x37d28e(0x15c)]+')'));const _0x374677=_0x48044b[_0x37d28e(0x16c)][_0x37d28e(0x142)]?a77_0x1823b2['green']('(set,\x20length='+_0x48044b[_0x37d28e(0x16c)]['value']['length']+')'):a77_0x1823b2[_0x37d28e(0x160)](_0x37d28e(0x164));console[_0x37d28e(0x15a)](_0x37d28e(0x15e)+_0x374677+'\x20\x20'+a77_0x1823b2[_0x37d28e(0x160)]('('+_0x48044b[_0x37d28e(0x16c)][_0x37d28e(0x15c)]+')'));}}console[_0x37d28e(0x15a)](),console['log'](a77_0x1823b2[_0x37d28e(0x15d)]('\x20\x20API\x20Endpoints')),console[_0x37d28e(0x15a)](a77_0x1823b2[_0x37d28e(0x160)]('\x20\x20─'[_0x37d28e(0x13a)](0x1e))),console['log'](_0x37d28e(0x14f)+getApiDomain()),console[_0x37d28e(0x15a)](_0x37d28e(0x171)+getUserDomain()),console['log']('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console['log'](),console[_0x37d28e(0x15a)](a77_0x1823b2[_0x37d28e(0x15d)](_0x37d28e(0x136))),console['log'](a77_0x1823b2[_0x37d28e(0x160)]('\x20\x20─'[_0x37d28e(0x13a)](0x1e)));if(_0x5be00f){const _0x3fb4c7=await getIsSessionValid();console[_0x37d28e(0x15a)](_0x37d28e(0x150)+(_0x3fb4c7?a77_0x1823b2[_0x37d28e(0x16b)](_0x37d28e(0x134)):a77_0x1823b2['red'](_0x37d28e(0x146))));}else console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a77_0x1823b2[_0x37d28e(0x12a)]('✗\x20Not\x20logged\x20in'));return console[_0x37d28e(0x15a)](),{'ok':!![]};}export const doctorDefinition={'service':a77_0x20438f(0x169),'command':'check','description':a77_0x20438f(0x159),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};function a77_0x57c9(){const _0x17f406=['\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','red','32cptyOp','(set\x20via\x20file,\x20length=','(not\x20set)','\x20\x20Config\x20Files','(set,\x20length=','(default:\x20','1117490XDCydm','(not\x20found)','empty','✓\x20Valid','appcode','\x20\x20Auth','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','845454Cozjbp','\x20doctor','repeat','\x20\x20Merged\x20Config','yellow','unknown','slice','apps','7RHujRZ','locale','value','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','appCode','arch','✗\x20Expired','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','env','status','length','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','1662730KZMweC','currentApp','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','4707DTfGrT','(no\x20file)','⚠\x20Empty\x20(treated\x20as\x20{})','format','4024ReGOXa','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','log','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','source','bold','\x20\x20\x20\x20accessKey:\x20\x20','raw','gray','platform','(default)','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','22098HCRYNP','\x20\x20─','verbose','doctor','keys','green','accessKey','padEnd','368543sPWlFz','version','Global','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','missing','(missing)','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','405068IThDAs','cookie','Project','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','\x20\x20Config\x20JSON'];a77_0x57c9=function(){return _0x17f406;};return a77_0x57c9();}
@@ -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
+ function a78_0x1bdd(_0x57ffff,_0x38bdf1){_0x57ffff=_0x57ffff-0x11e;const _0x1d648e=a78_0x1d64();let _0x1bdd76=_0x1d648e[_0x57ffff];return _0x1bdd76;}const a78_0x537d03=a78_0x1bdd;(function(_0x474d83,_0x1a8cf9){const _0x4b25f2=a78_0x1bdd,_0x17cc8c=_0x474d83();while(!![]){try{const _0x230a50=parseInt(_0x4b25f2(0x12b))/0x1+parseInt(_0x4b25f2(0x144))/0x2*(-parseInt(_0x4b25f2(0x145))/0x3)+parseInt(_0x4b25f2(0x120))/0x4+-parseInt(_0x4b25f2(0x11f))/0x5+-parseInt(_0x4b25f2(0x12c))/0x6+-parseInt(_0x4b25f2(0x135))/0x7*(-parseInt(_0x4b25f2(0x13a))/0x8)+-parseInt(_0x4b25f2(0x140))/0x9;if(_0x230a50===_0x1a8cf9)break;else _0x17cc8c['push'](_0x17cc8c['shift']());}catch(_0x5d5442){_0x17cc8c['push'](_0x17cc8c['shift']());}}}(a78_0x1d64,0x484e3));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';function a78_0x1d64(){const _0x359ca0=['374625vUwRCY','1251414FxcVTN','Use\x20`','appcode','../../commands/project/init.js','log','\x20\x20Default:\x20','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','production','Write\x20to\x20global\x20config\x20instead\x20of\x20project','1844367HaVjJK','boolean','global','检测到旧配置文件,正在自动升级...\x0a','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','8qSwfvh','bool','appCode','map','nonInteractive','flagMissing','1496844qsESVl','\x0a✓\x20Successfully\x20initialized\x20','Auto-confirm\x20prompts','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','119182EbYNTI','6RdwfLl','Usage:\x20','Target\x20environment','custom','\x20\x20Apps:\x20','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','project','validation','App\x20code\x20to\x20initialize\x20with','join','run','637785ecubrR','1118724ZHlREJ','yes','defaultApp','string','message','env','init','str','\x20config','cwd','some'];a78_0x1d64=function(){return _0x359ca0;};return a78_0x1d64();}import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x1d14be){return{'appCode':_0x1d14be,'appName':_0x1d14be};}function writeInitConfig(_0x2f31fd,_0x467cfe,_0x44d46f){const _0x48355f=a78_0x1bdd,_0x25875d=resolveWriteConfigPath(_0x2f31fd),_0x5d68de=buildCanonicalProjectConfig({},{'appCodes':_0x467cfe['map'](_0x5a4853=>_0x5a4853[_0x48355f(0x13c)]),'env':_0x44d46f,'metadata':{'version':getCliVersion(),'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0x25875d,_0x5d68de);const _0x46751a=_0x2f31fd===_0x48355f(0x137)?'global':'project';console[_0x48355f(0x130)](_0x48355f(0x141)+_0x46751a+_0x48355f(0x128)),console[_0x48355f(0x130)](_0x48355f(0x149)+_0x467cfe[_0x48355f(0x13d)](_0x1f7b23=>_0x1f7b23[_0x48355f(0x13c)])[_0x48355f(0x14e)](',\x20')),console[_0x48355f(0x130)](_0x48355f(0x131)+_0x5d68de[_0x48355f(0x122)]),console[_0x48355f(0x130)]('\x20\x20Env:\x20'+_0x5d68de['env']),console[_0x48355f(0x130)]('\x20\x20Config:\x20'+_0x25875d);}async function runSmartInit(_0x17d5f9){const _0x11c2e4=a78_0x1bdd,_0x54028c=process[_0x11c2e4(0x129)](),_0x29d5bc=_0x17d5f9['bool'](_0x11c2e4(0x137))?_0x11c2e4(0x137):'project',_0x1e94e0=_0x17d5f9[_0x11c2e4(0x127)](_0x11c2e4(0x125))||_0x11c2e4(0x133),_0x53fad9=_0x17d5f9[_0x11c2e4(0x127)](_0x11c2e4(0x12e))||undefined,_0xa0483=_0x17d5f9[_0x11c2e4(0x13b)](_0x11c2e4(0x14b));if(_0xa0483){const {initConfig:_0x589330}=await import(_0x11c2e4(0x12f));return _0x589330({'appcode':_0x53fad9,'env':_0x1e94e0,'autoYes':_0x17d5f9[_0x11c2e4(0x13b)](_0x11c2e4(0x121))});}if(_0x29d5bc===_0x11c2e4(0x14b)){const _0x4b7bb9=existsSync(resolve(_0x54028c,NEW_CONFIG_NAME)),_0x91914b=LEGACY_CONFIG_NAMES[_0x11c2e4(0x12a)](_0x5c6c18=>existsSync(resolve(_0x54028c,_0x5c6c18)));if(_0x91914b&&!_0x4b7bb9)return console[_0x11c2e4(0x130)](_0x11c2e4(0x138)),upgradeApp(_0x17d5f9[_0x11c2e4(0x13e)],{'yes':_0x17d5f9[_0x11c2e4(0x13b)]('yes')});if(_0x4b7bb9)throw CliErrors[_0x11c2e4(0x14c)](_0x11c2e4(0x132),_0x11c2e4(0x12d)+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x53fad9){const _0x5c8d39=validateAppcode(_0x53fad9);if(!_0x5c8d39['valid'])throw CliErrors[_0x11c2e4(0x14c)](_0x5c8d39[_0x11c2e4(0x124)]);writeInitConfig(_0x29d5bc,[syntheticApp(_0x53fad9)],_0x1e94e0);return;}if(_0x17d5f9[_0x11c2e4(0x13e)])throw CliErrors[_0x11c2e4(0x13f)](_0x11c2e4(0x12e),_0x11c2e4(0x146)+CLI_BIN_NAME+_0x11c2e4(0x143));const _0x3aa334=getCookie(),_0xc0812d=await selectMultipleApps(_0x3aa334),_0x275b5c=_0xc0812d===_0x11c2e4(0x148)?[syntheticApp(await promptCustomAppcode())]:_0xc0812d;writeInitConfig(_0x29d5bc,_0x275b5c,_0x1e94e0);}const initFlags=[{'name':a78_0x537d03(0x137),'type':a78_0x537d03(0x136),'description':a78_0x537d03(0x134),'default':![]},{'name':a78_0x537d03(0x125),'type':'string','description':a78_0x537d03(0x147),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':a78_0x537d03(0x12e),'type':a78_0x537d03(0x123),'description':a78_0x537d03(0x14d)},{'name':'project','type':a78_0x537d03(0x136),'description':a78_0x537d03(0x14a),'default':![]},{'name':'yes','type':a78_0x537d03(0x136),'description':a78_0x537d03(0x142),'default':![]}];export const initDefinitions=[{'service':a78_0x537d03(0x126),'command':a78_0x537d03(0x11e),'description':a78_0x537d03(0x139),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x4bd3ce){return await runSmartInit(_0x4bd3ce),{'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(_0x44b3a9,_0xebb6d0){const _0x49b69d=a79_0x1a16,_0xa9967d=_0x44b3a9();while(!![]){try{const _0x7335d9=-parseInt(_0x49b69d(0x14e))/0x1+-parseInt(_0x49b69d(0x151))/0x2*(-parseInt(_0x49b69d(0x158))/0x3)+parseInt(_0x49b69d(0x153))/0x4+-parseInt(_0x49b69d(0x150))/0x5+parseInt(_0x49b69d(0x154))/0x6*(parseInt(_0x49b69d(0x155))/0x7)+parseInt(_0x49b69d(0x156))/0x8*(parseInt(_0x49b69d(0x14f))/0x9)+-parseInt(_0x49b69d(0x152))/0xa*(parseInt(_0x49b69d(0x157))/0xb);if(_0x7335d9===_0xebb6d0)break;else _0xa9967d['push'](_0xa9967d['shift']());}catch(_0x42df35){_0xa9967d['push'](_0xa9967d['shift']());}}}(a79_0x5e76,0xd2e70));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];function a79_0x1a16(_0x56c387,_0x24f276){_0x56c387=_0x56c387-0x14e;const _0x5e76a7=a79_0x5e76();let _0x1a1660=_0x5e76a7[_0x56c387];return _0x1a1660;}function a79_0x5e76(){const _0x38bc29=['51592wocifh','22PBgcmS','66HMsbza','1203856MrCHrV','1737OQhaDE','3819795SnZdyj','63162eFegEi','4335050PocMIR','1407004eldzYM','8444946ZbNNXc','7nAQfey'];a79_0x5e76=function(){return _0x38bc29;};return a79_0x5e76();}
@@ -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_0x21d6dd=a80_0x5dee;(function(_0x12b94d,_0x281e0c){const _0x5e49c2=a80_0x5dee,_0x518d51=_0x12b94d();while(!![]){try{const _0x3da4f5=parseInt(_0x5e49c2(0xbc))/0x1*(parseInt(_0x5e49c2(0xa9))/0x2)+-parseInt(_0x5e49c2(0xba))/0x3*(-parseInt(_0x5e49c2(0xb6))/0x4)+parseInt(_0x5e49c2(0xac))/0x5+-parseInt(_0x5e49c2(0xbf))/0x6*(-parseInt(_0x5e49c2(0xb3))/0x7)+-parseInt(_0x5e49c2(0xc5))/0x8+-parseInt(_0x5e49c2(0xb9))/0x9+-parseInt(_0x5e49c2(0xb8))/0xa*(parseInt(_0x5e49c2(0xc2))/0xb);if(_0x3da4f5===_0x281e0c)break;else _0x518d51['push'](_0x518d51['shift']());}catch(_0x4c2b9b){_0x518d51['push'](_0x518d51['shift']());}}}(a80_0x4997,0x6ff8f));import{CliError}from'../../errors.js';function a80_0x4997(){const _0x12989e=['268401gBqQbB','network_error','flag_missing','15660maOjzU','replace','60OZvmXC','7220403ORWBoY','111NvISuk','length','7FwpBIx','RABETBASE_DISABLE_ISSUE_NUDGE','not_in_project','18JvmYiJ','service','has','1155671yRoLfl','\x20\x20Set\x20','trim','846840BokeGG','\x20issue\x20report\x20\x5c','join','report','config_missing','stderr','auth_required','command','write','validation_error','245604ibrMsA','\x20bug?\x20Help\x20us\x20fix\x20it:','message','4388145bYEAfZ','\x20\x20\x20\x20--title\x20\x22','code','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','cancelled','=1\x20to\x20silence\x20this\x20hint.','Hit\x20a\x20'];a80_0x4997=function(){return _0x12989e;};return a80_0x4997();}import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0x21d6dd(0xbd);const NUDGE_SUPPRESSED_CODES=new Set([a80_0x21d6dd(0xb0),a80_0x21d6dd(0xcb),a80_0x21d6dd(0xc9),a80_0x21d6dd(0xbe),'unknown_command',a80_0x21d6dd(0xb5),a80_0x21d6dd(0xa8),a80_0x21d6dd(0xb4)]),defaultWriter=_0x542347=>{const _0x554d48=a80_0x21d6dd;process[_0x554d48(0xca)][_0x554d48(0xa7)](_0x542347);};export function shouldNudgeForError(_0x297910,_0x595fc3){const _0x5f1253=a80_0x21d6dd;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x595fc3[_0x5f1253(0xc0)]==='issue'&&_0x595fc3['command']===_0x5f1253(0xc8))return![];if(_0x297910 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x5f1253(0xc1)](_0x297910[_0x5f1253(0xae)]);return!![];}function a80_0x5dee(_0x12f819,_0x5ba27c){_0x12f819=_0x12f819-0xa7;const _0x49976e=a80_0x4997();let _0x5deecb=_0x49976e[_0x12f819];return _0x5deecb;}export function printIssueReportNudgeForError(_0x4602d7,_0x3505c0,_0x43e3b3=defaultWriter){if(!shouldNudgeForError(_0x4602d7,_0x3505c0))return;const _0x2827ff=buildSuggestedTitle(_0x4602d7,_0x3505c0);_0x43e3b3(formatNudge(_0x2827ff));}function buildSuggestedTitle(_0xd5642f,_0x44ec9c){const _0x1bdfe6=a80_0x21d6dd,_0xbc0d01=_0xd5642f instanceof Error?_0xd5642f[_0x1bdfe6(0xab)]:String(_0xd5642f),_0x3c05f6=_0xbc0d01[_0x1bdfe6(0xb7)](/[\r\n]+/g,'\x20')[_0x1bdfe6(0xb7)](/\s+/g,'\x20')[_0x1bdfe6(0xc4)]()['slice'](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x276629=CLI_BIN_NAME+'\x20'+_0x44ec9c[_0x1bdfe6(0xc0)]+'\x20'+_0x44ec9c[_0x1bdfe6(0xcc)];return _0x3c05f6[_0x1bdfe6(0xbb)]>0x0?_0x276629+':\x20'+_0x3c05f6:_0x276629;}function formatNudge(_0x3337d5){const _0x4dae53=a80_0x21d6dd;return['',_0x4dae53(0xb2)+CLI_BIN_NAME+_0x4dae53(0xaa),'\x20\x20'+CLI_BIN_NAME+_0x4dae53(0xc6),_0x4dae53(0xad)+_0x3337d5+'\x22\x20\x5c','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22',_0x4dae53(0xaf),_0x4dae53(0xc3)+NUDGE_OPT_OUT_ENV+_0x4dae53(0xb1),''][_0x4dae53(0xc7)]('\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_0x168399=a81_0x448e;(function(_0x1dfc79,_0x2e2681){const _0x325bf8=a81_0x448e,_0x47c61f=_0x1dfc79();while(!![]){try{const _0x14a1eb=parseInt(_0x325bf8(0x1fc))/0x1*(parseInt(_0x325bf8(0x20e))/0x2)+parseInt(_0x325bf8(0x20a))/0x3+-parseInt(_0x325bf8(0x21c))/0x4*(-parseInt(_0x325bf8(0x1fd))/0x5)+-parseInt(_0x325bf8(0x21d))/0x6+-parseInt(_0x325bf8(0x207))/0x7+parseInt(_0x325bf8(0x1ff))/0x8*(-parseInt(_0x325bf8(0x20b))/0x9)+parseInt(_0x325bf8(0x22c))/0xa;if(_0x14a1eb===_0x2e2681)break;else _0x47c61f['push'](_0x47c61f['shift']());}catch(_0xae88){_0x47c61f['push'](_0x47c61f['shift']());}}}(a81_0x3cc2,0x598b8));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';function a81_0x448e(_0xb8c4d9,_0x278845){_0xb8c4d9=_0xb8c4d9-0x1f3;const _0x3cc231=a81_0x3cc2();let _0x448e02=_0x3cc231[_0xb8c4d9];return _0x448e02;}import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG='description-file';export const issueReport={'service':a81_0x168399(0x22a),'command':a81_0x168399(0x215),'description':'Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','risk':a81_0x168399(0x20f),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a81_0x168399(0x208),'type':a81_0x168399(0x224),'required':!![],'description':'One-line\x20issue\x20summary'},{'name':a81_0x168399(0x223),'type':a81_0x168399(0x224),'description':a81_0x168399(0x203)},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x168399(0x224),'description':a81_0x168399(0x212)}],async 'validate'(_0x2781fc){const _0x136467=a81_0x168399,_0x2de33e=_0x2781fc[_0x136467(0x220)](_0x136467(0x208))[_0x136467(0x225)](),_0x2635fd=_0x2781fc[_0x136467(0x220)](_0x136467(0x223))[_0x136467(0x225)](),_0x48ddc9=_0x2781fc[_0x136467(0x220)](DESCRIPTION_FILE_FLAG)[_0x136467(0x225)]();if(!_0x2de33e)throw CliErrors['flagMissing'](_0x136467(0x208),_0x136467(0x206));const _0x15c9c=_0x2635fd['length']>0x0,_0x9a6857=_0x48ddc9[_0x136467(0x22b)]>0x0;if(_0x15c9c===_0x9a6857)throw CliErrors[_0x136467(0x1f8)](_0x136467(0x211),_0x136467(0x21f));if(_0x9a6857){const _0x5a5f0=resolve(process[_0x136467(0x201)](),_0x48ddc9);if(!existsSync(_0x5a5f0))throw CliErrors['validation'](_0x136467(0x222)+_0x5a5f0);}},async 'dryRun'(_0x3f5958){const _0x15ce2d=a81_0x168399,_0x5121ca=await prepareIssueReport(_0x3f5958);return{'method':_0x15ce2d(0x228),'url':_0x15ce2d(0x216)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x5121ca[_0x15ce2d(0x208)],'issue.description':_0x5121ca[_0x15ce2d(0x223)],'issue.description_original_bytes':_0x5121ca[_0x15ce2d(0x200)][_0x15ce2d(0x1f6)],'issue.description_truncated':_0x5121ca[_0x15ce2d(0x200)][_0x15ce2d(0x227)],'issue.description_redactions':_0x5121ca[_0x15ce2d(0x200)][_0x15ce2d(0x202)],'issue.description_redaction_kinds':_0x5121ca[_0x15ce2d(0x200)][_0x15ce2d(0x21a)][_0x15ce2d(0x1f3)](',')}},'description':[_0x15ce2d(0x21b),'descriptionSource:\x20'+_0x5121ca['descriptionSource'],_0x5121ca['descriptionFilePath']?_0x15ce2d(0x205)+_0x5121ca[_0x15ce2d(0x1f4)]:null,_0x5121ca['sanitize'][_0x15ce2d(0x227)]?'truncated:\x20original\x20'+_0x5121ca[_0x15ce2d(0x200)]['originalBytes']+_0x15ce2d(0x1f7):null,_0x5121ca[_0x15ce2d(0x200)][_0x15ce2d(0x202)]>0x0?_0x15ce2d(0x20d)+_0x5121ca[_0x15ce2d(0x200)]['redactionCount']+'\x20('+_0x5121ca[_0x15ce2d(0x200)][_0x15ce2d(0x21a)][_0x15ce2d(0x1f3)](',\x20')+')':null]['filter'](Boolean)['join']('\x0a')};},async 'execute'(_0x2b1e6b){const _0x18e170=a81_0x168399,_0x41202f=await prepareIssueReport(_0x2b1e6b);try{await sendPlatformIssueCollectLog({'title':_0x41202f['title'],'description':_0x41202f[_0x18e170(0x223)],'sanitize':{'originalBytes':_0x41202f[_0x18e170(0x200)][_0x18e170(0x1f6)],'truncated':_0x41202f[_0x18e170(0x200)][_0x18e170(0x227)],'redactionCount':_0x41202f['sanitize'][_0x18e170(0x202)],'redactionKinds':_0x41202f['sanitize'][_0x18e170(0x21a)]}});}catch(_0x1ab920){throw CliErrors['apiError'](_0x18e170(0x20c)+(_0x1ab920 instanceof Error?_0x1ab920[_0x18e170(0x1fb)]:String(_0x1ab920)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x41202f[_0x18e170(0x200)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x18e170(0x1fa),_0x18e170(0x221),_0x18e170(0x226),_0x18e170(0x219),_0x18e170(0x204),_0x18e170(0x229)],'issue':{'title':_0x41202f[_0x18e170(0x208)],'descriptionLength':_0x41202f[_0x18e170(0x223)][_0x18e170(0x22b)],'descriptionSource':_0x41202f['descriptionSource'],..._0x41202f['descriptionFilePath']?{'descriptionFile':_0x41202f['descriptionFilePath']}:{},'sanitize':{'originalBytes':_0x41202f[_0x18e170(0x200)][_0x18e170(0x1f6)],'truncated':_0x41202f[_0x18e170(0x200)]['truncated'],'redactions':_0x41202f[_0x18e170(0x200)][_0x18e170(0x202)],'redactionKinds':_0x41202f[_0x18e170(0x200)]['redactionKinds']}}}};}};function buildResultMessage(_0x1a7294){const _0x2d2cd9=a81_0x168399,_0x17a184=[];return _0x1a7294['truncated']&&_0x17a184['push'](_0x2d2cd9(0x217)+_0x1a7294['originalBytes']+_0x2d2cd9(0x1f7)),_0x1a7294[_0x2d2cd9(0x202)]>0x0&&_0x17a184['push']('redacted\x20'+_0x1a7294['redactionCount']+_0x2d2cd9(0x1f5)+_0x1a7294[_0x2d2cd9(0x21a)][_0x2d2cd9(0x1f3)](',\x20')),_0x17a184[_0x2d2cd9(0x22b)]===0x0?_0x2d2cd9(0x213):_0x2d2cd9(0x1f9)+_0x17a184[_0x2d2cd9(0x1f3)](';\x20')+')';}async function prepareIssueReport(_0xfb3e5e){const _0xc9c71=a81_0x168399,_0x386510=_0xfb3e5e['str']('title')[_0xc9c71(0x225)](),_0x2189e3=_0xfb3e5e['str'](_0xc9c71(0x223)),_0x50f223=_0xfb3e5e['str'](DESCRIPTION_FILE_FLAG)[_0xc9c71(0x225)]();if(!_0x50f223){const _0x4afe95=_0x2189e3;if(!_0x4afe95[_0xc9c71(0x225)]())throw CliErrors[_0xc9c71(0x1f8)](_0xc9c71(0x218),'Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');const _0x1414af=sanitizeIssueDescription(_0x4afe95);return{'title':_0x386510,'description':_0x1414af['description'],'descriptionSource':_0xc9c71(0x214),'sanitize':_0x1414af};}const _0x4d2218=resolve(process[_0xc9c71(0x201)](),_0x50f223),_0x2917cc=await readFile(_0x4d2218,_0xc9c71(0x1fe));if(!_0x2917cc['trim']())throw CliErrors[_0xc9c71(0x1f8)](_0xc9c71(0x209)+_0x4d2218,_0xc9c71(0x21e));const _0x2f65e6=sanitizeIssueDescription(_0x2917cc);return{'title':_0x386510,'description':_0x2f65e6[_0xc9c71(0x223)],'descriptionSource':_0xc9c71(0x210),'descriptionFilePath':_0x4d2218,'sanitize':_0x2f65e6};}function a81_0x3cc2(){const _0x2df1b0=['otel://','truncated\x20from\x20','Issue\x20description\x20cannot\x20be\x20empty.','issue.description_truncated','redactionKinds','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','54368ueWShN','455160vGPRFv','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','str','issue.description','File\x20not\x20found:\x20','description','string','trim','issue.description_original_bytes','truncated','POST','issue.description_redaction_kinds','issue','length','3048360DXTIKz','join','descriptionFilePath','\x20secret(s):\x20','originalBytes','\x20bytes','validation','Platform\x20issue\x20reported\x20(','issue.title','message','1196txwPpD','135wvcqPx','utf8','16YJiVzt','sanitize','cwd','redactionCount','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','issue.description_redactions','descriptionFile:\x20','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','3390415gfdZmX','title','Issue\x20description\x20file\x20is\x20empty:\x20','318021gScxKC','114579boSJTI','Failed\x20to\x20report\x20platform\x20issue:\x20','redactions:\x20','292yQLOKi','write','file','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','Platform\x20issue\x20reported','inline','report'];a81_0x3cc2=function(){return _0x2df1b0;};return a81_0x3cc2();}
@@ -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
+ function a82_0x37d3(_0x5cd8ee,_0x1d9aef){_0x5cd8ee=_0x5cd8ee-0x104;const _0x4097c3=a82_0x4097();let _0x37d31e=_0x4097c3[_0x5cd8ee];return _0x37d31e;}const a82_0x3a62eb=a82_0x37d3;(function(_0x5ed682,_0x1a3094){const _0x4b458f=a82_0x37d3,_0x5677b6=_0x5ed682();while(!![]){try{const _0xc33182=parseInt(_0x4b458f(0x116))/0x1+-parseInt(_0x4b458f(0x11c))/0x2*(parseInt(_0x4b458f(0x11e))/0x3)+parseInt(_0x4b458f(0x104))/0x4*(-parseInt(_0x4b458f(0x117))/0x5)+parseInt(_0x4b458f(0x113))/0x6*(-parseInt(_0x4b458f(0x105))/0x7)+parseInt(_0x4b458f(0x108))/0x8*(-parseInt(_0x4b458f(0x11d))/0x9)+-parseInt(_0x4b458f(0x106))/0xa+parseInt(_0x4b458f(0x10d))/0xb*(parseInt(_0x4b458f(0x122))/0xc);if(_0xc33182===_0x1a3094)break;else _0x5677b6['push'](_0x5677b6['shift']());}catch(_0x5bda19){_0x5677b6['push'](_0x5677b6['shift']());}}}(a82_0x4097,0xbd758));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a82_0x3a62eb(0x118),REDACTION_RULES=[{'kind':a82_0x3a62eb(0x120),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a82_0x3a62eb(0x10b)},{'kind':a82_0x3a62eb(0x111),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a82_0x3a62eb(0x112)},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a82_0x3a62eb(0x11b)},{'kind':'access-key','pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':'REDACTED:access-key'},{'kind':a82_0x3a62eb(0x10a),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':a82_0x3a62eb(0x11a),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a82_0x3a62eb(0x107)}];export function sanitizeIssueDescription(_0x13ca8e){const _0x35ce72=a82_0x3a62eb,_0x27f3ec=Buffer[_0x35ce72(0x10f)](_0x13ca8e,_0x35ce72(0x119)),_0x287d33=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0xf739a7=_0x13ca8e,_0x2229b7=0x0;const _0x41512a=[];if(!_0x287d33)for(const _0x3d61d9 of REDACTION_RULES){let _0x14fee8=0x0;_0xf739a7=_0xf739a7[_0x35ce72(0x109)](_0x3d61d9[_0x35ce72(0x10c)],(_0xa81fbd,_0x24ec08)=>{const _0x361408=_0x35ce72;_0x14fee8+=0x1;const _0x1c3d74=typeof _0x24ec08===_0x361408(0x115)?_0x24ec08:'';return _0x1c3d74+'['+_0x3d61d9[_0x361408(0x110)]+']';}),_0x14fee8>0x0&&(_0x2229b7+=_0x14fee8,!_0x41512a['includes'](_0x3d61d9[_0x35ce72(0x121)])&&_0x41512a[_0x35ce72(0x10e)](_0x3d61d9[_0x35ce72(0x121)]));}let _0x1bfc24=![];if(Buffer[_0x35ce72(0x10f)](_0xf739a7,_0x35ce72(0x119))>ISSUE_DESCRIPTION_MAX_BYTES){_0x1bfc24=!![];const _0x374b3c=Buffer['byteLength'](TRUNCATION_NOTICE,_0x35ce72(0x119)),_0x139f9a=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x374b3c);_0xf739a7=sliceUtf8Bytes(_0xf739a7,_0x139f9a)+TRUNCATION_NOTICE;}return{'description':_0xf739a7,'originalBytes':_0x27f3ec,'truncated':_0x1bfc24,'redactionCount':_0x2229b7,'redactionKinds':_0x41512a};}function sliceUtf8Bytes(_0x4adad1,_0x561e49){const _0x98ff14=a82_0x3a62eb;if(_0x561e49<=0x0)return'';const _0x4ec7a8=Buffer[_0x98ff14(0x11f)](_0x4adad1,_0x98ff14(0x119));if(_0x4ec7a8['byteLength']<=_0x561e49)return _0x4adad1;let _0x33117d=_0x561e49;while(_0x33117d>0x0){const _0x9ce9c1=_0x4ec7a8[_0x33117d];if(_0x9ce9c1===undefined||(_0x9ce9c1&0xc0)!==0x80)break;_0x33117d-=0x1;}return _0x4ec7a8['subarray'](0x0,_0x33117d)[_0x98ff14(0x114)](_0x98ff14(0x119));}function a82_0x4097(){const _0x39b2d6=['authorization','REDACTED:authorization','6uWsqsJ','toString','string','1273888wGFlwN','5PwpGcI','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','utf8','bearer-jwt','REDACTED:private-key','962vwzpLv','9QUQZet','7119SdUWAm','from','cookie','kind','19968372IZJcYz','4904364cpvPrN','8043042yyaoJI','12245130SVOJYk','REDACTED:bearer-jwt','5991472pMOZYB','replace','password','REDACTED:cookie','pattern','33eROrhF','push','byteLength','label'];a82_0x4097=function(){return _0x39b2d6;};return a82_0x4097();}