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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -0
  60. package/lib/commands/dataset/relation-delete.js +1 -0
  61. package/lib/commands/dataset/relation-shared.js +1 -0
  62. package/lib/commands/dataset/relation-update.js +1 -0
  63. package/lib/commands/dataset/relations.js +1 -0
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/shared/compare-table.js +1 -1
  87. package/lib/commands/menu/shared/index.js +1 -1
  88. package/lib/commands/menu/shared/inquirer.js +1 -1
  89. package/lib/commands/menu/shared/local-pages.js +1 -1
  90. package/lib/commands/menu/shared/logic.js +1 -1
  91. package/lib/commands/menu/shared/service.js +1 -1
  92. package/lib/commands/menu/shared/sync-core.js +1 -1
  93. package/lib/commands/menu/shared/update-core.js +1 -1
  94. package/lib/commands/menu/shared/valid-url.js +1 -1
  95. package/lib/commands/menu/sync.js +1 -1
  96. package/lib/commands/menu/update.js +1 -1
  97. package/lib/commands/page/generate-start.js +1 -1
  98. package/lib/commands/page/generate-status.js +1 -1
  99. package/lib/commands/page/index.js +1 -1
  100. package/lib/commands/page/pull.js +1 -1
  101. package/lib/commands/page/push.js +1 -1
  102. package/lib/commands/page/relation-audit.js +1 -0
  103. package/lib/commands/page/shared.js +1 -1
  104. package/lib/commands/page/standard-page-status.js +1 -1
  105. package/lib/commands/page/sync.js +1 -1
  106. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  107. package/lib/commands/project/create/format-elapsed.js +1 -1
  108. package/lib/commands/project/create/main.js +1 -1
  109. package/lib/commands/project/create/non-interactive.js +1 -1
  110. package/lib/commands/project/create/project-template-path.js +1 -1
  111. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  112. package/lib/commands/project/create/use-format-code.js +1 -1
  113. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  114. package/lib/commands/project/index.js +1 -1
  115. package/lib/commands/project/init.js +1 -1
  116. package/lib/commands/project/upgrade.js +1 -1
  117. package/lib/commands/registry.js +1 -1
  118. package/lib/commands/run/index.js +1 -1
  119. package/lib/commands/schema.js +1 -1
  120. package/lib/commands/skill/index.js +1 -1
  121. package/lib/commands/sql/create.js +1 -1
  122. package/lib/commands/sql/delete.js +1 -1
  123. package/lib/commands/sql/detail.js +1 -1
  124. package/lib/commands/sql/exec.js +1 -1
  125. package/lib/commands/sql/index.js +1 -1
  126. package/lib/commands/sql/list.js +1 -1
  127. package/lib/commands/sql/pull.js +1 -1
  128. package/lib/commands/sql/push.js +1 -1
  129. package/lib/commands/sql/save.js +1 -1
  130. package/lib/commands/sql/shared.js +1 -1
  131. package/lib/commands/sql/status.js +1 -1
  132. package/lib/commands/sql/validate.js +1 -1
  133. package/lib/config/schema.js +1 -1
  134. package/lib/constant/cdn.js +1 -1
  135. package/lib/constant/cli.js +1 -1
  136. package/lib/constant/defaults.js +1 -1
  137. package/lib/constant/domain.js +1 -1
  138. package/lib/constant/env.js +1 -1
  139. package/lib/constant/output.js +1 -1
  140. package/lib/constant/paths.js +1 -1
  141. package/lib/constant/risk.js +1 -1
  142. package/lib/context.js +1 -1
  143. package/lib/core/alias-resolver.js +1 -1
  144. package/lib/core/api-client.js +1 -1
  145. package/lib/core/bff/config.js +1 -1
  146. package/lib/core/bff/file-system.js +1 -1
  147. package/lib/core/bff/hash.js +1 -1
  148. package/lib/core/bff/lock.js +1 -1
  149. package/lib/core/bff/utils.js +1 -1
  150. package/lib/core/db-resolver.js +1 -1
  151. package/lib/core/page/file-system.js +1 -1
  152. package/lib/core/page/hash.js +1 -1
  153. package/lib/core/page/lock.js +1 -1
  154. package/lib/core/sql-sync/config.js +1 -1
  155. package/lib/core/sql-sync/file-system.js +1 -1
  156. package/lib/core/sql-sync/hash.js +1 -1
  157. package/lib/core/sql-sync/lock.js +1 -1
  158. package/lib/core/sql-sync/utils.js +1 -1
  159. package/lib/core/sql-validator.js +1 -1
  160. package/lib/errors.js +1 -1
  161. package/lib/framework/build-all-flags.js +1 -1
  162. package/lib/framework/flags.js +1 -1
  163. package/lib/framework/help.js +1 -1
  164. package/lib/framework/index.js +1 -1
  165. package/lib/framework/output.js +1 -1
  166. package/lib/framework/response.js +1 -1
  167. package/lib/framework/runner-alias.js +1 -1
  168. package/lib/framework/runner.js +1 -1
  169. package/lib/framework/schema-export.js +1 -1
  170. package/lib/framework/types.js +1 -1
  171. package/lib/generated/build-info.js +1 -1
  172. package/lib/help.js +1 -1
  173. package/lib/skills/main.js +1 -1
  174. package/lib/skills/npx-skills-add.js +1 -1
  175. package/lib/telemetry/cli-command-trace.js +1 -1
  176. package/lib/telemetry/cli-help-trace.js +1 -1
  177. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  178. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  179. package/lib/telemetry/send-cli-trace-log.js +1 -1
  180. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  181. package/lib/utils/ai_config.js +1 -1
  182. package/lib/utils/apply-jq-filter.js +1 -1
  183. package/lib/utils/cdn-config.js +1 -1
  184. package/lib/utils/check-sdk-version.js +1 -1
  185. package/lib/utils/cli-version-check.js +1 -1
  186. package/lib/utils/cli-version-policy.js +1 -1
  187. package/lib/utils/config.js +1 -1
  188. package/lib/utils/copy-directory.js +1 -1
  189. package/lib/utils/entity-with-id.js +1 -1
  190. package/lib/utils/file-utils.js +1 -1
  191. package/lib/utils/guides-cdn.js +1 -1
  192. package/lib/utils/http-client.js +1 -1
  193. package/lib/utils/is-non-interactive.js +1 -1
  194. package/lib/utils/logger.js +1 -1
  195. package/lib/utils/params.js +1 -1
  196. package/lib/utils/platform.js +1 -1
  197. package/lib/utils/rules-cdn.js +1 -1
  198. package/lib/utils/sleep.js +1 -1
  199. package/lib/utils/template-replacer.js +1 -1
  200. package/lib/utils/update-notice.js +1 -0
  201. package/lib/utils/version.js +1 -1
  202. package/lib/utils/with-active-cookie.js +1 -1
  203. package/lib/utils/write-cli-side-channel.js +1 -1
  204. package/package.json +1 -1
  205. package/lib/commands/dataset/link-create.js +0 -1
  206. package/lib/commands/dataset/link-delete.js +0 -1
  207. package/lib/commands/dataset/link-shared.js +0 -1
  208. package/lib/commands/dataset/link-update.js +0 -1
  209. package/lib/commands/dataset/links.js +0 -1
@@ -1 +1 @@
1
- const a66_0x2810f3=a66_0x1df6;(function(_0x42d268,_0x4693e0){const _0x369ea5=a66_0x1df6,_0x256e9a=_0x42d268();while(!![]){try{const _0xe5e925=-parseInt(_0x369ea5(0xd2))/0x1+parseInt(_0x369ea5(0xd6))/0x2+parseInt(_0x369ea5(0xda))/0x3*(-parseInt(_0x369ea5(0xce))/0x4)+parseInt(_0x369ea5(0xd1))/0x5*(parseInt(_0x369ea5(0xd4))/0x6)+parseInt(_0x369ea5(0xca))/0x7*(parseInt(_0x369ea5(0xd3))/0x8)+-parseInt(_0x369ea5(0xd8))/0x9*(parseInt(_0x369ea5(0xcd))/0xa)+parseInt(_0x369ea5(0xcb))/0xb;if(_0xe5e925===_0x4693e0)break;else _0x256e9a['push'](_0x256e9a['shift']());}catch(_0x535c4d){_0x256e9a['push'](_0x256e9a['shift']());}}}(a66_0x173f,0xcee09));import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';export const dbAnalyzeStatus={'service':'db','command':a66_0x2810f3(0xd5),'description':'Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','risk':a66_0x2810f3(0xd7),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a66_0x2810f3(0xcc),'type':'string','required':!![],'description':'Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)'}],async 'execute'(_0x35c53b){const _0x4ef9de=a66_0x2810f3,_0x5dba5a=_0x35c53b[_0x4ef9de(0xd9)]('id'),_0x487f39=_0x35c53b['str']('plan'),_0x21aa9f=await getDbAnalysisStatus(_0x487f39),_0x1750aa=buildDbPageLinks(_0x35c53b[_0x4ef9de(0xd0)],_0x5dba5a);return{'ok':!![],'data':{'dbLinkId':_0x5dba5a,'planId':_0x487f39,'status':_0x21aa9f,..._0x1750aa?{'links':_0x1750aa}:{}},'message':_0x4ef9de(0xcf)+_0x487f39};}};function a66_0x1df6(_0x35b2a2,_0x8f04d3){_0x35b2a2=_0x35b2a2-0xca;const _0x173f5b=a66_0x173f();let _0x1df689=_0x173f5b[_0x35b2a2];return _0x1df689;}function a66_0x173f(){const _0x17ddce=['4351134xoktpi','analyze-status','800684xDwHrM','read','45aXRQBh','num','3TJOgoN','90433VGidwS','108735VmRYTM','plan','55170eqzPzL','2358044IyWYWk','Analysis\x20status\x20for\x20','appCode','10XKCXpo','1442579DQFhav','648ovYiUS'];a66_0x173f=function(){return _0x17ddce;};return a66_0x173f();}
1
+ const a66_0x353146=a66_0x18d5;(function(_0x27c459,_0x1e4fa3){const _0x2f60d7=a66_0x18d5,_0x140457=_0x27c459();while(!![]){try{const _0x58e6a4=parseInt(_0x2f60d7(0xce))/0x1*(parseInt(_0x2f60d7(0xc7))/0x2)+parseInt(_0x2f60d7(0xc5))/0x3*(parseInt(_0x2f60d7(0xc4))/0x4)+parseInt(_0x2f60d7(0xc3))/0x5+parseInt(_0x2f60d7(0xc6))/0x6+parseInt(_0x2f60d7(0xc8))/0x7+-parseInt(_0x2f60d7(0xd1))/0x8*(-parseInt(_0x2f60d7(0xc2))/0x9)+-parseInt(_0x2f60d7(0xc9))/0xa;if(_0x58e6a4===_0x1e4fa3)break;else _0x140457['push'](_0x140457['shift']());}catch(_0x42feb7){_0x140457['push'](_0x140457['shift']());}}}(a66_0x3421,0xdfe28));function a66_0x3421(){const _0x5e2c8e=['analyze-status','376408rYcKko','54FLKalJ','2465650BdudoD','5755148vWoIYD','3GfOiFa','10072146JuHCRI','621816xRCwRI','11546171GOKEAS','49362430ewKMUo','string','appCode','str','read','1VXPCXB','plan'];a66_0x3421=function(){return _0x5e2c8e;};return a66_0x3421();}import{getDbAnalysisStatus}from'../../core/api-client.js';function a66_0x18d5(_0x3fd71d,_0x5304a2){_0x3fd71d=_0x3fd71d-0xc2;const _0x3421c4=a66_0x3421();let _0x18d537=_0x3421c4[_0x3fd71d];return _0x18d537;}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';export const dbAnalyzeStatus={'service':'db','command':a66_0x353146(0xd0),'description':'Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','risk':a66_0x353146(0xcd),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a66_0x353146(0xcf),'type':a66_0x353146(0xca),'required':!![],'description':'Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)'}],async 'execute'(_0x96367){const _0x440805=a66_0x353146,_0x15dcab=_0x96367['num']('id'),_0xb2bb7e=_0x96367[_0x440805(0xcc)](_0x440805(0xcf)),_0x1a3b91=await getDbAnalysisStatus(_0xb2bb7e),_0x1d4a47=buildDbPageLinks(_0x96367[_0x440805(0xcb)],_0x15dcab);return{'ok':!![],'data':{'dbLinkId':_0x15dcab,'planId':_0xb2bb7e,'status':_0x1a3b91,..._0x1d4a47?{'links':_0x1d4a47}:{}},'message':'Analysis\x20status\x20for\x20'+_0xb2bb7e};}};
@@ -1 +1 @@
1
- const a67_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_0x202f91=a67_0x34b0;(function(_0x3801b5,_0x1b9950){const _0x498ee9=a67_0x34b0,_0x1415db=_0x3801b5();while(!![]){try{const _0x5ee838=parseInt(_0x498ee9(0x1cb))/0x1*(parseInt(_0x498ee9(0x1e9))/0x2)+-parseInt(_0x498ee9(0x1e6))/0x3*(parseInt(_0x498ee9(0x1e0))/0x4)+-parseInt(_0x498ee9(0x1c2))/0x5*(-parseInt(_0x498ee9(0x1ce))/0x6)+-parseInt(_0x498ee9(0x1d2))/0x7+parseInt(_0x498ee9(0x1e3))/0x8*(parseInt(_0x498ee9(0x1e7))/0x9)+parseInt(_0x498ee9(0x1e5))/0xa*(parseInt(_0x498ee9(0x1d0))/0xb)+parseInt(_0x498ee9(0x1c3))/0xc*(-parseInt(_0x498ee9(0x1d6))/0xd);if(_0x5ee838===_0x1b9950)break;else _0x1415db['push'](_0x1415db['shift']());}catch(_0x478d88){_0x1415db['push'](_0x1415db['shift']());}}}(a67_0x4557,0xa4047));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';function a67_0x34b0(_0x5b2ef7,_0xe3b61d){_0x5b2ef7=_0x5b2ef7-0x1bb;const _0x45576f=a67_0x4557();let _0x34b0e9=_0x45576f[_0x5b2ef7];return _0x34b0e9;}import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a67_0x4557(){const _0x27de7c=['1077439LIXxRE','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','1352820vsJIcv','After\x20create,\x20start\x20schema\x20analysis','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','Extra\x20JDBC-style\x20connection\x20parameters\x20string','1782183MAVUlc','dbversion','username','bool','dbparam',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','write','dbdesc','\x20and\x20started\x20analysis','password','3135716EbRMVV','dburl','[redacted]','16VfJuiY','8.0','50gVTPeK','3PNnCGT','4635567PyrjJk','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','299230bGwSDy','Database\x20username','Human-readable\x20description','dbname','message','trim','Created\x20db\x20link\x20','string','POST','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','5CzbpgD','192tTlJeT','boolean','join','autostart','No\x20follow-up\x20analysis','str','appCode','Host\x20and\x20port:\x20host:port','7XhyfFZ','dbtype','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','7651704XXCutM','databasePage'];a67_0x4557=function(){return _0x27de7c;};return a67_0x4557();}export const dbCreate={'service':'db','command':'create','description':a67_0x202f91(0x1cd),'risk':a67_0x202f91(0x1dc),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a67_0x202f91(0x1ec),'type':a67_0x202f91(0x1bd),'required':!![],'description':a67_0x202f91(0x1c1)},DB_TYPE_FLAG,{'name':a67_0x202f91(0x1d7),'type':'string','description':a67_0x202f91(0x1d4),'default':'8.0'},{'name':a67_0x202f91(0x1e1),'type':a67_0x202f91(0x1bd),'required':!![],'description':a67_0x202f91(0x1ca)},{'name':a67_0x202f91(0x1d8),'type':a67_0x202f91(0x1bd),'required':!![],'description':a67_0x202f91(0x1ea)},{'name':a67_0x202f91(0x1df),'type':a67_0x202f91(0x1bd),'required':!![],'description':'Database\x20password'},{'name':a67_0x202f91(0x1da),'type':a67_0x202f91(0x1bd),'description':a67_0x202f91(0x1d5)},{'name':'dbdesc','type':a67_0x202f91(0x1bd),'description':a67_0x202f91(0x1eb)},{'name':a67_0x202f91(0x1c6),'type':a67_0x202f91(0x1c4),'description':a67_0x202f91(0x1d3),'default':![]}],async 'validate'(_0x1981f0){const _0x51a07c=a67_0x202f91,_0x1b5ac5=_0x1981f0['str']('dburl')[_0x51a07c(0x1bb)]();if(!validateDbUrl(_0x1b5ac5))throw CliErrors['validation'](_0x51a07c(0x1d1)+_0x1b5ac5+'\x22',_0x51a07c(0x1bf));},async 'dryRun'(_0x144166){const _0x1ee400=a67_0x202f91,_0x4e0015={'appCode':_0x144166[_0x1ee400(0x1c9)],'dbName':_0x144166[_0x1ee400(0x1c8)](_0x1ee400(0x1ec)),'dbType':_0x144166['str'](_0x1ee400(0x1cc)),'dbVersion':_0x144166['str'](_0x1ee400(0x1d7))||_0x1ee400(0x1e4),'dbUrl':_0x144166[_0x1ee400(0x1c8)]('dburl')['trim'](),'username':_0x144166[_0x1ee400(0x1c8)](_0x1ee400(0x1d8)),'password':_0x1ee400(0x1e2),..._0x144166[_0x1ee400(0x1c8)](_0x1ee400(0x1da))?{'dbParam':_0x144166[_0x1ee400(0x1c8)](_0x1ee400(0x1da))}:{},..._0x144166[_0x1ee400(0x1c8)]('dbdesc')?{'dbDesc':_0x144166['str'](_0x1ee400(0x1dd))}:{}};return{'method':_0x1ee400(0x1be),'url':'/smartapi/dblink/create','body':_0x4e0015,'description':['Create\x20dblink',_0x144166[_0x1ee400(0x1d9)](_0x1ee400(0x1c6))?_0x1ee400(0x1e8):_0x1ee400(0x1c7)][_0x1ee400(0x1c5)]('\x0a')};},async 'execute'(_0x6f8d36){const _0x16c557=a67_0x202f91,_0x4af1bb={'appCode':_0x6f8d36[_0x16c557(0x1c9)],'dbName':_0x6f8d36[_0x16c557(0x1c8)](_0x16c557(0x1ec)),'dbType':_0x6f8d36[_0x16c557(0x1c8)](_0x16c557(0x1cc)),'dbVersion':_0x6f8d36[_0x16c557(0x1c8)]('dbversion')||'8.0','dbUrl':_0x6f8d36[_0x16c557(0x1c8)]('dburl')[_0x16c557(0x1bb)](),'username':_0x6f8d36[_0x16c557(0x1c8)](_0x16c557(0x1d8)),'password':_0x6f8d36[_0x16c557(0x1c8)](_0x16c557(0x1df)),..._0x6f8d36[_0x16c557(0x1c8)](_0x16c557(0x1da))?{'dbParam':_0x6f8d36[_0x16c557(0x1c8)](_0x16c557(0x1da))}:{},..._0x6f8d36['str'](_0x16c557(0x1dd))?{'dbDesc':_0x6f8d36[_0x16c557(0x1c8)](_0x16c557(0x1dd))}:{}},{id:_0x98607,entity:_0x16fd72}=normalizeEntityWithIdResponse(await createDbLink(_0x4af1bb));if(!_0x98607)return{'ok':![],'message':_0x16c557(0x1c0),'data':sanitizeDbLinkForOutput(_0x16fd72)};let _0xa31071,_0x5024e8;if(_0x6f8d36[_0x16c557(0x1d9)]('autostart'))try{_0xa31071=await startDbAnalysis(_0x98607);}catch(_0x2a0e84){_0x5024e8=_0x2a0e84 instanceof Error?_0x2a0e84[_0x16c557(0x1ed)]:String(_0x2a0e84);}const _0xa5353f=buildDbPageLinks(_0x6f8d36[_0x16c557(0x1c9)],_0x98607),_0x55231c={'connection':sanitizeDbLinkForOutput(_0x16fd72),..._0xa5353f?{'links':{'databasePage':_0xa5353f[_0x16c557(0x1cf)]}}:{},..._0xa31071?{'analysisPlanId':_0xa31071}:{},..._0x5024e8?{'analysisStartWarning':_0x5024e8}:{}};let _0x3494e5;return _0x6f8d36['bool']('autostart')?_0x5024e8?_0x3494e5=_0x16c557(0x1bc)+_0x98607+_0x16c557(0x1db):_0x3494e5=_0x16c557(0x1bc)+_0x98607+_0x16c557(0x1de):_0x3494e5=_0x16c557(0x1bc)+_0x98607,{'ok':!![],'data':_0x55231c,'message':_0x3494e5};}};
@@ -1 +1 @@
1
- const a68_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_0x156141=a68_0x5ae7;function a68_0x5ae7(_0x1d975a,_0x3258b2){_0x1d975a=_0x1d975a-0x74;const _0x458407=a68_0x4584();let _0x5ae7bf=_0x458407[_0x1d975a];return _0x5ae7bf;}(function(_0x22bccf,_0x4896a2){const _0x2d8d6a=a68_0x5ae7,_0x408f29=_0x22bccf();while(!![]){try{const _0x20557f=parseInt(_0x2d8d6a(0x77))/0x1+parseInt(_0x2d8d6a(0x7e))/0x2+parseInt(_0x2d8d6a(0x7f))/0x3*(parseInt(_0x2d8d6a(0x7d))/0x4)+-parseInt(_0x2d8d6a(0x7b))/0x5+parseInt(_0x2d8d6a(0x78))/0x6+parseInt(_0x2d8d6a(0x7a))/0x7+-parseInt(_0x2d8d6a(0x7c))/0x8;if(_0x20557f===_0x4896a2)break;else _0x408f29['push'](_0x408f29['shift']());}catch(_0x1a3173){_0x408f29['push'](_0x408f29['shift']());}}}(a68_0x4584,0x528eb));import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDelete={'service':'db','command':'delete','description':a68_0x156141(0x79),'risk':a68_0x156141(0x76),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5e2597){const _0x5e3f44=a68_0x156141,_0x5becd6=_0x5e2597[_0x5e3f44(0x74)]('id');return await deleteDbLink(_0x5becd6),{'ok':!![],'data':{'id':_0x5becd6,'deleted':!![]},'message':_0x5e3f44(0x75)+_0x5becd6};}};function a68_0x4584(){const _0x366085=['68828cmPyxC','1337874RemuXi','9Cdilpm','num','Deleted\x20db\x20link\x20','high-risk-write','122997OckmwX','1969572bKEBxc','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','886186NtbonJ','2123555crxsEA','4284392EPCmdV'];a68_0x4584=function(){return _0x366085;};return a68_0x4584();}
@@ -1 +1 @@
1
- const a69_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_0x306786=a69_0x4c2d;(function(_0x11711c,_0xa32ee4){const _0x24d922=a69_0x4c2d,_0x5a58fa=_0x11711c();while(!![]){try{const _0x4078a9=-parseInt(_0x24d922(0x176))/0x1+-parseInt(_0x24d922(0x179))/0x2+parseInt(_0x24d922(0x17b))/0x3*(-parseInt(_0x24d922(0x174))/0x4)+-parseInt(_0x24d922(0x17c))/0x5+parseInt(_0x24d922(0x175))/0x6+-parseInt(_0x24d922(0x17e))/0x7+parseInt(_0x24d922(0x177))/0x8;if(_0x4078a9===_0xa32ee4)break;else _0x5a58fa['push'](_0x5a58fa['shift']());}catch(_0x11bb21){_0x5a58fa['push'](_0x5a58fa['shift']());}}}(a69_0x199c,0x86934));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a69_0x199c(){const _0x188335=['408vOpIFz','3014664lQHijQ','425523ePpPCz','22933232wNVnLo','read','911214TjYuAs','db\x20link\x20','17517imeKqu','4011065AvKiBB','detail','3772699yGvPul','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','num','dbName'];a69_0x199c=function(){return _0x188335;};return a69_0x199c();}import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a69_0x4c2d(_0x454d13,_0x197402){_0x454d13=_0x454d13-0x174;const _0x199c08=a69_0x199c();let _0x4c2ded=_0x199c08[_0x454d13];return _0x4c2ded;}export const dbDetail={'service':'db','command':a69_0x306786(0x17d),'description':a69_0x306786(0x17f),'risk':a69_0x306786(0x178),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x44aa05){const _0x57e8aa=a69_0x306786,_0x55522e=_0x44aa05[_0x57e8aa(0x180)]('id'),_0x1dfcc2=await getDbLinkInfo(_0x55522e);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x1dfcc2),'message':_0x57e8aa(0x17a)+_0x55522e+':\x20'+_0x1dfcc2[_0x57e8aa(0x181)]};}};
@@ -1 +1 @@
1
- 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_0x3ca587=a70_0x1f09;function a70_0xebfb(){const _0x534efc=['30VEGkQD','448943SAxzbX','6721XUbaTn','6wbIZkj','91nexVqG','18484HbkmdG','num','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','Page\x20index\x20(1-based)','78PmfTVv','read','length','Page\x20size','474229YDFWHo','\x20row(s),\x20total\x20','number','94ovajEd','2084765rxeKHR','pagesize','650184UQArhG','str','page','3965616PAeZkM','8JQcinj'];a70_0xebfb=function(){return _0x534efc;};return a70_0xebfb();}function a70_0x1f09(_0xcfec1,_0x4305e8){_0xcfec1=_0xcfec1-0xe7;const _0xebfbcd=a70_0xebfb();let _0x1f0951=_0xebfbcd[_0xcfec1];return _0x1f0951;}(function(_0x5e88ea,_0x401b4c){const _0x499b26=a70_0x1f09,_0x250f86=_0x5e88ea();while(!![]){try{const _0x3526f3=parseInt(_0x499b26(0xee))/0x1*(-parseInt(_0x499b26(0xfc))/0x2)+-parseInt(_0x499b26(0xf5))/0x3*(-parseInt(_0x499b26(0xf1))/0x4)+-parseInt(_0x499b26(0xfd))/0x5*(parseInt(_0x499b26(0xef))/0x6)+parseInt(_0x499b26(0xf9))/0x7*(-parseInt(_0x499b26(0xeb))/0x8)+parseInt(_0x499b26(0xea))/0x9+-parseInt(_0x499b26(0xec))/0xa*(-parseInt(_0x499b26(0xed))/0xb)+parseInt(_0x499b26(0xe7))/0xc*(parseInt(_0x499b26(0xf0))/0xd);if(_0x3526f3===_0x401b4c)break;else _0x250f86['push'](_0x250f86['shift']());}catch(_0x4bbd92){_0x250f86['push'](_0x250f86['shift']());}}}(a70_0xebfb,0x3ff08));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDiff={'service':'db','command':'diff','description':a70_0x3ca587(0xf3),'risk':a70_0x3ca587(0xf6),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':'string','description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':a70_0x3ca587(0xe9),'type':a70_0x3ca587(0xfb),'description':a70_0x3ca587(0xf4),'default':0x1},{'name':'pagesize','type':'number','description':a70_0x3ca587(0xf8),'default':0x14}],async 'execute'(_0x23a5c6){const _0x4284c5=a70_0x3ca587,_0x3c7f28=_0x23a5c6['num']('id'),_0x37bbef=_0x23a5c6[_0x4284c5(0xf2)]('page',0x1)||0x1,_0x4fffb7=_0x23a5c6['num'](_0x4284c5(0xfe),0x14)||0x14,_0x25ffe5=_0x23a5c6[_0x4284c5(0xe8)]('table')||undefined,{totalCount:_0x33aef3,tableList:_0x1d2e47}=await getDbTableDiff(_0x23a5c6['appCode'],_0x3c7f28,{'pageIndex':_0x37bbef,'pageSize':_0x4fffb7,'tableName':_0x25ffe5});return{'ok':!![],'data':{'dbLinkId':_0x3c7f28,'page':_0x37bbef,'pageSize':_0x4fffb7,'totalCount':_0x33aef3,'tableList':_0x1d2e47},'message':_0x1d2e47[_0x4284c5(0xf7)]+_0x4284c5(0xfa)+_0x33aef3+'\x20(db\x20link\x20'+_0x3c7f28+')'};}};
@@ -1 +1 @@
1
- function 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(_0x3a749b,_0x29622e){const _0x2cb771=a71_0x15e0,_0x584dbb=_0x3a749b();while(!![]){try{const _0x4568cb=-parseInt(_0x2cb771(0x13c))/0x1+-parseInt(_0x2cb771(0x13e))/0x2*(-parseInt(_0x2cb771(0x141))/0x3)+-parseInt(_0x2cb771(0x140))/0x4+-parseInt(_0x2cb771(0x13f))/0x5+parseInt(_0x2cb771(0x142))/0x6+parseInt(_0x2cb771(0x144))/0x7*(parseInt(_0x2cb771(0x13d))/0x8)+parseInt(_0x2cb771(0x13b))/0x9*(parseInt(_0x2cb771(0x143))/0xa);if(_0x4568cb===_0x29622e)break;else _0x584dbb['push'](_0x584dbb['shift']());}catch(_0x456f17){_0x584dbb['push'](_0x584dbb['shift']());}}}(a71_0x6baa,0x582d8));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';function a71_0x6baa(){const _0x46c402=['715500vPgtiE','16yPnPhs','30HOJqYu','966520cOMiTQ','1058680swDNdI','136212stMMUb','3905424iWWZct','1817020Ckmxec','73444YNeqln','9TTokqD'];a71_0x6baa=function(){return _0x46c402;};return a71_0x6baa();}import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';function a71_0x15e0(_0x160436,_0x59c6cb){_0x160436=_0x160436-0x13b;const _0x6baab7=a71_0x6baa();let _0x15e01d=_0x6baab7[_0x160436];return _0x15e01d;}import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
@@ -1 +1 @@
1
- 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
+ const a72_0x17eebb=a72_0x319c;(function(_0x2d6d83,_0x1dc6e4){const _0x49e726=a72_0x319c,_0x5600c0=_0x2d6d83();while(!![]){try{const _0x5233a8=-parseInt(_0x49e726(0x1b2))/0x1*(parseInt(_0x49e726(0x1ac))/0x2)+-parseInt(_0x49e726(0x1a8))/0x3*(parseInt(_0x49e726(0x1a7))/0x4)+parseInt(_0x49e726(0x1b5))/0x5+-parseInt(_0x49e726(0x1b4))/0x6*(parseInt(_0x49e726(0x1b3))/0x7)+parseInt(_0x49e726(0x1b9))/0x8+parseInt(_0x49e726(0x1a9))/0x9*(parseInt(_0x49e726(0x1ba))/0xa)+parseInt(_0x49e726(0x1bb))/0xb*(parseInt(_0x49e726(0x1aa))/0xc);if(_0x5233a8===_0x1dc6e4)break;else _0x5600c0['push'](_0x5600c0['shift']());}catch(_0x6c37c4){_0x5600c0['push'](_0x5600c0['shift']());}}}(a72_0x5a73,0x9098f));import{listDbLinks}from'../../core/api-client.js';function a72_0x5a73(){const _0x3975fe=['11RMGNUy','Page\x20size','number','length','16PQRxRd','111789VwhqQU','1948635KQOOMr','11735952CSkxFw','read','23614WyRhed','num','Page\x20index\x20(1-based)','\x20database\x20connection(s)','pagesize','list','99vaTvLs','623nLmdxg','24714mYmGoK','3589630wsLxAU','page','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','Found\x20','2914960KIyxXi','10AHuOWX'];a72_0x5a73=function(){return _0x3975fe;};return a72_0x5a73();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';function a72_0x319c(_0x2aa2d5,_0x47cb5a){_0x2aa2d5=_0x2aa2d5-0x1a7;const _0x5a73ef=a72_0x5a73();let _0x319c48=_0x5a73ef[_0x2aa2d5];return _0x319c48;}export const dbList={'service':'db','command':a72_0x17eebb(0x1b1),'description':'List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','risk':a72_0x17eebb(0x1ab),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a72_0x17eebb(0x1b6),'type':a72_0x17eebb(0x1bd),'description':a72_0x17eebb(0x1ae),'default':0x1},{'name':'pagesize','type':a72_0x17eebb(0x1bd),'description':a72_0x17eebb(0x1bc),'default':0x64}],async 'execute'(_0x15609d){const _0x4a8773=a72_0x17eebb,_0x371f5f=_0x15609d[_0x4a8773(0x1ad)](_0x4a8773(0x1b6),0x1)||0x1,_0x376b9d=_0x15609d[_0x4a8773(0x1ad)](_0x4a8773(0x1b0),0x64)||0x64,{items:_0x1a8cad,paging:_0x12041}=await listDbLinks(_0x15609d['appCode'],{'currentPage':_0x371f5f,'pageSize':_0x376b9d}),_0x51e512=sanitizeDbLinkList(_0x1a8cad),_0x1597ae=_0x12041?_0x12041:{'currentPage':_0x371f5f,'pageSize':_0x376b9d,'rowsOnPage':_0x51e512['length'],'totalCount':null,'note':_0x4a8773(0x1b7)};return{'ok':!![],'data':{'connections':_0x51e512,'paging':_0x1597ae},'message':_0x4a8773(0x1b8)+_0x51e512[_0x4a8773(0x1be)]+_0x4a8773(0x1af)};}};
@@ -1 +1 @@
1
- (function(_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(_0x919e42,_0x5e5c6b){const _0x59ec2d=a73_0x2ad3,_0x3ad84a=_0x919e42();while(!![]){try{const _0x1d1aef=-parseInt(_0x59ec2d(0x158))/0x1+parseInt(_0x59ec2d(0x149))/0x2+parseInt(_0x59ec2d(0x14a))/0x3+parseInt(_0x59ec2d(0x14d))/0x4+-parseInt(_0x59ec2d(0x15c))/0x5+-parseInt(_0x59ec2d(0x156))/0x6+parseInt(_0x59ec2d(0x160))/0x7;if(_0x1d1aef===_0x5e5c6b)break;else _0x3ad84a['push'](_0x3ad84a['shift']());}catch(_0x3016c6){_0x3ad84a['push'](_0x3ad84a['shift']());}}}(a73_0x4ae0,0xcc014));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0x4053d9){const _0x220fe0=a73_0x2ad3,_0xc90202=_0x4053d9[_0x220fe0(0x151)]();if(_0xc90202==='password'||_0xc90202===_0x220fe0(0x159)||_0xc90202==='dbpassword')return!![];if(_0xc90202[_0x220fe0(0x15b)]('secret')||_0xc90202[_0x220fe0(0x15b)](_0x220fe0(0x153))||_0xc90202[_0x220fe0(0x15b)](_0x220fe0(0x154)))return!![];if(_0xc90202['includes'](_0x220fe0(0x14c))||_0xc90202[_0x220fe0(0x15b)](_0x220fe0(0x15d)))return!![];if(_0xc90202===_0x220fe0(0x14e)||_0xc90202===_0x220fe0(0x155)||_0xc90202===_0x220fe0(0x150))return!![];return![];}function a73_0x2ad3(_0x553d18,_0x4aa1df){_0x553d18=_0x553d18-0x149;const _0x4ae07c=a73_0x4ae0();let _0x2ad37f=_0x4ae07c[_0x553d18];return _0x2ad37f;}export function sanitizeDbLinkForOutput(_0x44a3a2){const _0x16efae=a73_0x2ad3,_0x25320e={..._0x44a3a2};for(const _0x1015f1 of Object[_0x16efae(0x157)](_0x25320e)){if(!shouldRedactKey(_0x1015f1))continue;const _0x40a11e=_0x25320e[_0x1015f1];_0x40a11e!=null&&String(_0x40a11e)[_0x16efae(0x14f)]>0x0&&(_0x25320e[_0x1015f1]='[redacted]');}return _0x25320e;}export function sanitizeDbLinkList(_0x2e27ef){return _0x2e27ef['map'](_0x50ff1a=>sanitizeDbLinkForOutput(_0x50ff1a));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;function a73_0x4ae0(){const _0xcbc890=['3548705QnOGym','accesskey','number','test','4403728MwbbOT','706146FzWOeW','4474071YWmGgJ','/data/er?dbId=','privatekey','3557064MzHUEJ','authorization','length','jdbcurl','toLowerCase','trim','token','credential','connectionstring','3044364bSLPIx','keys','1310061KhYTpZ','passwd','/data/database','includes'];a73_0x4ae0=function(){return _0xcbc890;};return a73_0x4ae0();}export function validateDbUrl(_0x554964){const _0x126f7f=a73_0x2ad3,_0x4f3c66=_0x554964[_0x126f7f(0x152)]();if(!_0x4f3c66)return![];return DB_URL_PATTERN[_0x126f7f(0x15f)](_0x4f3c66);}export function buildDbPageLinks(_0xf739e5,_0x17a397){const _0x3c27fa=a73_0x2ad3,_0x7a2501=_0xf739e5?.['trim']();if(!_0x7a2501)return undefined;const _0xe84f0f=typeof _0x17a397===_0x3c27fa(0x15e)?String(_0x17a397):String(_0x17a397??'')['trim']();if(!_0xe84f0f)return undefined;const _0x461f8e=Number(_0xe84f0f);if(!Number['isFinite'](_0x461f8e)||_0x461f8e<=0x0)return undefined;const _0x4dd487=isDaily(normalizeEnv(getEnv()))?'https://daily.lovrabet.com/web-app/app/'+encodeURIComponent(_0x7a2501):'https://app.lovrabet.com/app/'+encodeURIComponent(_0x7a2501),_0x56d580=encodeURIComponent(String(_0x461f8e));return{'databasePage':_0x4dd487+_0x3c27fa(0x15a),'erPage':_0x4dd487+_0x3c27fa(0x14b)+_0x56d580};}
@@ -1 +1 @@
1
- function a74_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
+ function a74_0x58b3(_0x3cf915,_0x1897c7){_0x3cf915=_0x3cf915-0xf3;const _0x44d702=a74_0x44d7();let _0x58b3cc=_0x44d702[_0x3cf915];return _0x58b3cc;}const a74_0x46b1ae=a74_0x58b3;(function(_0x4972a1,_0x248767){const _0x3322fb=a74_0x58b3,_0xf2695f=_0x4972a1();while(!![]){try{const _0x419cda=-parseInt(_0x3322fb(0xfe))/0x1+parseInt(_0x3322fb(0xf8))/0x2*(parseInt(_0x3322fb(0xfc))/0x3)+-parseInt(_0x3322fb(0xf3))/0x4+parseInt(_0x3322fb(0xf7))/0x5+parseInt(_0x3322fb(0xfa))/0x6*(-parseInt(_0x3322fb(0xff))/0x7)+parseInt(_0x3322fb(0xf9))/0x8+parseInt(_0x3322fb(0xf5))/0x9;if(_0x419cda===_0x248767)break;else _0xf2695f['push'](_0xf2695f['shift']());}catch(_0x288605){_0xf2695f['push'](_0xf2695f['shift']());}}}(a74_0x44d7,0x53a42));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a74_0x44d7(){const _0x3acffb=['6kwboPm','tables','686301WyHKZy','length','346543DpqkYV','2576910QwZWwD','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','238420IzsjuB','\x20table(s)\x20on\x20db\x20link\x20','1821708WIPmFa','num','757500ffjQDM','2ZHzlUK','4273544BFJmQr'];a74_0x44d7=function(){return _0x3acffb;};return a74_0x44d7();}export const dbTables={'service':'db','command':a74_0x46b1ae(0xfb),'description':a74_0x46b1ae(0x100),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0xa27f59){const _0x5de219=a74_0x46b1ae,_0x5dcf14=_0xa27f59[_0x5de219(0xf6)]('id'),_0x314ed7=await getDbAllTableList(_0xa27f59['appCode'],_0x5dcf14);return{'ok':!![],'data':{'dbLinkId':_0x5dcf14,'total':_0x314ed7[_0x5de219(0xfd)],'tables':_0x314ed7},'message':_0x314ed7[_0x5de219(0xfd)]+_0x5de219(0xf4)+_0x5dcf14};}};
@@ -1 +1 @@
1
- const a75_0x2d33b9=a75_0x5980;(function(_0x1c03c4,_0x263e61){const _0x4f8d15=a75_0x5980,_0x263e7b=_0x1c03c4();while(!![]){try{const _0xa93c69=parseInt(_0x4f8d15(0x11e))/0x1*(parseInt(_0x4f8d15(0x10a))/0x2)+-parseInt(_0x4f8d15(0x108))/0x3+-parseInt(_0x4f8d15(0x118))/0x4+parseInt(_0x4f8d15(0x114))/0x5*(parseInt(_0x4f8d15(0x10f))/0x6)+-parseInt(_0x4f8d15(0x10b))/0x7+-parseInt(_0x4f8d15(0x10d))/0x8+parseInt(_0x4f8d15(0x116))/0x9;if(_0xa93c69===_0x263e61)break;else _0x263e7b['push'](_0x263e7b['shift']());}catch(_0x2c3738){_0x263e7b['push'](_0x263e7b['shift']());}}}(a75_0x17dc,0xd65bd));import{testDbLinkConnect}from'../../core/api-client.js';function a75_0x5980(_0x1a2334,_0x399a80){_0x1a2334=_0x1a2334-0x107;const _0x17dc7d=a75_0x17dc();let _0x5980a1=_0x17dc7d[_0x1a2334];return _0x5980a1;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a75_0x17dc(){const _0x522345=['test','5qRlGBs','\x20(see\x20data.result)','25760781iLzmXd','num','4808620VHuSCg','msg','slice','Connection\x20OK\x20for\x20db\x20link\x20','Connection\x20check\x20finished\x20for\x20db\x20link\x20','keys','29YyLVaQ','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','error','4544052gQLSnR','read','93746pcwDXq','8753241KKabec','success','3059552fhJEkm','message','6036798jafOBT','object','code','length'];a75_0x17dc=function(){return _0x522345;};return a75_0x17dc();}function summarizeTestConnectResult(_0x1f0482){const _0xc8dd3b=a75_0x5980;if(_0x1f0482===!![]||_0x1f0482===![])return{'success':_0x1f0482};if(_0x1f0482===null||_0x1f0482===undefined)return{'type':typeof _0x1f0482};if(typeof _0x1f0482!=='object')return{'type':typeof _0x1f0482};const _0x3e98cf=_0x1f0482,_0x32542c=[_0xc8dd3b(0x10c),_0xc8dd3b(0x10e),_0xc8dd3b(0x111),_0xc8dd3b(0x107),_0xc8dd3b(0x119),'data'],_0x25ae83={};for(const _0x2b660f of _0x32542c){if(_0x2b660f in _0x3e98cf)_0x25ae83[_0x2b660f]=_0x3e98cf[_0x2b660f];}return Object[_0xc8dd3b(0x11d)](_0x25ae83)[_0xc8dd3b(0x112)]===0x0&&(_0x25ae83[_0xc8dd3b(0x11d)]=Object[_0xc8dd3b(0x11d)](_0x3e98cf)[_0xc8dd3b(0x11a)](0x0,0x14)),_0x25ae83;}export const dbTest={'service':'db','command':a75_0x2d33b9(0x113),'description':a75_0x2d33b9(0x11f),'risk':a75_0x2d33b9(0x109),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2fd3b0){const _0x4027dd=a75_0x2d33b9,_0x4d0220=_0x2fd3b0[_0x4027dd(0x117)]('id'),_0x2215b9=await testDbLinkConnect(_0x4d0220),_0x20c222=_0x2215b9===!![]||typeof _0x2215b9===_0x4027dd(0x110)&&_0x2215b9!==null&&_0x2215b9[_0x4027dd(0x10c)]===!![],_0x44c2e6=summarizeTestConnectResult(_0x2215b9);return{'ok':!![],'data':{'id':_0x4d0220,'connected':Boolean(_0x20c222),'result':_0x44c2e6},'message':_0x20c222?_0x4027dd(0x11b)+_0x4d0220:_0x4027dd(0x11c)+_0x4d0220+_0x4027dd(0x115)};}};
1
+ const a75_0x1bd7a0=a75_0x38f9;(function(_0x137294,_0x401711){const _0x45ee4b=a75_0x38f9,_0x228f99=_0x137294();while(!![]){try{const _0x1a120d=parseInt(_0x45ee4b(0xfa))/0x1+-parseInt(_0x45ee4b(0xeb))/0x2*(parseInt(_0x45ee4b(0xf7))/0x3)+parseInt(_0x45ee4b(0xf4))/0x4*(-parseInt(_0x45ee4b(0xec))/0x5)+parseInt(_0x45ee4b(0xe7))/0x6*(parseInt(_0x45ee4b(0xf1))/0x7)+-parseInt(_0x45ee4b(0xf5))/0x8*(-parseInt(_0x45ee4b(0xe5))/0x9)+-parseInt(_0x45ee4b(0xfb))/0xa*(-parseInt(_0x45ee4b(0xf2))/0xb)+parseInt(_0x45ee4b(0xe6))/0xc*(parseInt(_0x45ee4b(0xf3))/0xd);if(_0x1a120d===_0x401711)break;else _0x228f99['push'](_0x228f99['shift']());}catch(_0x480618){_0x228f99['push'](_0x228f99['shift']());}}}(a75_0x9817,0x57297));function a75_0x38f9(_0x106a9a,_0x20be53){_0x106a9a=_0x106a9a-0xe2;const _0x9817d=a75_0x9817();let _0x38f99a=_0x9817d[_0x106a9a];return _0x38f99a;}import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a75_0x9817(){const _0x5af14c=['1119CbOqJk','success','length','124045pvBlCt','11010WVsHur','Connection\x20check\x20finished\x20for\x20db\x20link\x20','num','keys','15786bUIgEs','12XmSHIV','894AWsZry','code','\x20(see\x20data.result)','Connection\x20OK\x20for\x20db\x20link\x20','1810JUZhnQ','755WsfyRv','object','error','test','message','14189kosNkI','627yXxFFy','1842503datcPq','5320MHQcPt','1208sgMwwI','data'];a75_0x9817=function(){return _0x5af14c;};return a75_0x9817();}function summarizeTestConnectResult(_0xdb37de){const _0x210973=a75_0x38f9;if(_0xdb37de===!![]||_0xdb37de===![])return{'success':_0xdb37de};if(_0xdb37de===null||_0xdb37de===undefined)return{'type':typeof _0xdb37de};if(typeof _0xdb37de!==_0x210973(0xed))return{'type':typeof _0xdb37de};const _0x4d815d=_0xdb37de,_0x4b7c7c=[_0x210973(0xf8),_0x210973(0xf0),_0x210973(0xe8),_0x210973(0xee),'msg',_0x210973(0xf6)],_0xde3db3={};for(const _0x4783d8 of _0x4b7c7c){if(_0x4783d8 in _0x4d815d)_0xde3db3[_0x4783d8]=_0x4d815d[_0x4783d8];}return Object[_0x210973(0xe4)](_0xde3db3)[_0x210973(0xf9)]===0x0&&(_0xde3db3[_0x210973(0xe4)]=Object[_0x210973(0xe4)](_0x4d815d)['slice'](0x0,0x14)),_0xde3db3;}export const dbTest={'service':'db','command':a75_0x1bd7a0(0xef),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x298dc3){const _0x11eff1=a75_0x1bd7a0,_0x870ab6=_0x298dc3[_0x11eff1(0xe3)]('id'),_0x3c12e8=await testDbLinkConnect(_0x870ab6),_0x1d5228=_0x3c12e8===!![]||typeof _0x3c12e8===_0x11eff1(0xed)&&_0x3c12e8!==null&&_0x3c12e8[_0x11eff1(0xf8)]===!![],_0x1e8edb=summarizeTestConnectResult(_0x3c12e8);return{'ok':!![],'data':{'id':_0x870ab6,'connected':Boolean(_0x1d5228),'result':_0x1e8edb},'message':_0x1d5228?_0x11eff1(0xea)+_0x870ab6:_0x11eff1(0xe2)+_0x870ab6+_0x11eff1(0xe9)};}};
@@ -1 +1 @@
1
- const a76_0x1d6cc7=a76_0x3f64;(function(_0x26fc1a,_0x1304c4){const _0xbeef83=a76_0x3f64,_0x265d50=_0x26fc1a();while(!![]){try{const _0x3debf9=-parseInt(_0xbeef83(0x169))/0x1+parseInt(_0xbeef83(0x17d))/0x2+-parseInt(_0xbeef83(0x167))/0x3*(-parseInt(_0xbeef83(0x17c))/0x4)+parseInt(_0xbeef83(0x17e))/0x5+parseInt(_0xbeef83(0x16c))/0x6*(parseInt(_0xbeef83(0x171))/0x7)+-parseInt(_0xbeef83(0x183))/0x8*(-parseInt(_0xbeef83(0x17f))/0x9)+-parseInt(_0xbeef83(0x188))/0xa*(parseInt(_0xbeef83(0x177))/0xb);if(_0x3debf9===_0x1304c4)break;else _0x265d50['push'](_0x265d50['shift']());}catch(_0x28be9d){_0x265d50['push'](_0x265d50['shift']());}}}(a76_0x406f,0x646ca));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a76_0x3f64(_0x43e6f2,_0x28f752){_0x43e6f2=_0x43e6f2-0x167;const _0x406fc5=a76_0x406f();let _0x3f6476=_0x406fc5[_0x43e6f2];return _0x3f6476;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':a76_0x1d6cc7(0x189),'description':'Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','risk':a76_0x1d6cc7(0x187),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a76_0x1d6cc7(0x16a),'type':a76_0x1d6cc7(0x174),'description':a76_0x1d6cc7(0x16b)},{'name':a76_0x1d6cc7(0x180),'type':'string','description':a76_0x1d6cc7(0x16d)},{'name':a76_0x1d6cc7(0x179),'type':a76_0x1d6cc7(0x174),'description':'New\x20username'},{'name':a76_0x1d6cc7(0x185),'type':a76_0x1d6cc7(0x174),'description':a76_0x1d6cc7(0x184)},{'name':a76_0x1d6cc7(0x16e),'type':a76_0x1d6cc7(0x174),'description':a76_0x1d6cc7(0x170)},{'name':a76_0x1d6cc7(0x176),'type':'string','description':a76_0x1d6cc7(0x186)}],async 'validate'(_0x581141){const _0x13dd36=a76_0x1d6cc7,_0x3e99ce=_0x581141[_0x13dd36(0x18a)]('dburl');if(_0x3e99ce&&!validateDbUrl(_0x3e99ce[_0x13dd36(0x17a)]()))throw CliErrors['validation'](_0x13dd36(0x173)+_0x3e99ce+'\x22');},async 'dryRun'(_0x53d76c){const _0x32feb1=a76_0x1d6cc7,_0x1bf627=_0x53d76c[_0x32feb1(0x172)]('id'),_0x5df41d=await getDbLinkInfo(_0x1bf627),_0x4509ff={..._0x5df41d},_0x320811=_0x53d76c[_0x32feb1(0x18a)](_0x32feb1(0x16a));if(_0x320811)_0x4509ff[_0x32feb1(0x181)]=_0x320811;const _0x14196c=_0x53d76c['str'](_0x32feb1(0x180));if(_0x14196c)_0x4509ff[_0x32feb1(0x17b)]=_0x14196c['trim']();const _0x223cb0=_0x53d76c[_0x32feb1(0x18a)](_0x32feb1(0x179));if(_0x223cb0)_0x4509ff['username']=_0x223cb0;const _0x4d7ed6=_0x53d76c[_0x32feb1(0x18a)]('password');if(_0x4d7ed6)_0x4509ff[_0x32feb1(0x185)]=_0x4d7ed6;const _0x16fd36=_0x53d76c[_0x32feb1(0x18a)](_0x32feb1(0x16e));if(_0x16fd36)_0x4509ff['dbParam']=_0x16fd36;const _0x19ece6=_0x53d76c['str'](_0x32feb1(0x176));if(_0x19ece6)_0x4509ff[_0x32feb1(0x175)]=_0x19ece6;const _0x435bdd=sanitizeDbLinkForOutput(_0x4509ff);return{'method':_0x32feb1(0x178),'url':'/smartapi/dblink/update','body':_0x435bdd,'description':_0x32feb1(0x182)};},async 'execute'(_0x42bb7a){const _0x32b604=a76_0x1d6cc7,_0x183812=_0x42bb7a[_0x32b604(0x172)]('id'),_0x5c341a=await getDbLinkInfo(_0x183812),_0x519e23={..._0x5c341a},_0x4b4c79=_0x42bb7a['str']('dbname');if(_0x4b4c79)_0x519e23[_0x32b604(0x181)]=_0x4b4c79;const _0x3e9d7b=_0x42bb7a['str'](_0x32b604(0x180));if(_0x3e9d7b)_0x519e23[_0x32b604(0x17b)]=_0x3e9d7b[_0x32b604(0x17a)]();const _0x2f7633=_0x42bb7a[_0x32b604(0x18a)](_0x32b604(0x179));if(_0x2f7633)_0x519e23[_0x32b604(0x179)]=_0x2f7633;const _0x41205f=_0x42bb7a[_0x32b604(0x18a)]('password');if(_0x41205f)_0x519e23['password']=_0x41205f;const _0x2eda13=_0x42bb7a[_0x32b604(0x18a)](_0x32b604(0x16e));if(_0x2eda13)_0x519e23[_0x32b604(0x168)]=_0x2eda13;const _0x35001f=_0x42bb7a[_0x32b604(0x18a)](_0x32b604(0x176));if(_0x35001f)_0x519e23[_0x32b604(0x175)]=_0x35001f;const {id:_0xe0dd4f,entity:_0x51f784}=normalizeEntityWithIdResponse(await updateDbLink(_0x519e23));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x51f784),'message':_0x32b604(0x16f)+(_0xe0dd4f??_0x183812)};}};function a76_0x406f(){const _0x4731cf=['Updated\x20db\x20link\x20','New\x20connection\x20parameter\x20string','52451KrKOux','num','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','string','dbDesc','dbdesc','44PSxFWy','POST','username','trim','dbUrl','44diTzQU','1188702mPbTzU','83545oSTmiL','480348GMKzcy','dburl','dbName','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','104pLcDNq','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','password','New\x20description','write','4719080xJNhDH','update','str','190173JmXOEt','dbParam','347625NlYDpc','dbname','New\x20database\x20name','516mqhZGU','New\x20host:port','dbparam'];a76_0x406f=function(){return _0x4731cf;};return a76_0x406f();}
1
+ const a76_0x3d987d=a76_0x1e10;(function(_0x4318b6,_0x1b84e3){const _0x331aaf=a76_0x1e10,_0x21c000=_0x4318b6();while(!![]){try{const _0x31f2fe=-parseInt(_0x331aaf(0x12a))/0x1+-parseInt(_0x331aaf(0x117))/0x2+parseInt(_0x331aaf(0x11c))/0x3*(-parseInt(_0x331aaf(0x126))/0x4)+parseInt(_0x331aaf(0x10c))/0x5+-parseInt(_0x331aaf(0x11a))/0x6*(-parseInt(_0x331aaf(0x124))/0x7)+parseInt(_0x331aaf(0x12b))/0x8+parseInt(_0x331aaf(0x113))/0x9*(-parseInt(_0x331aaf(0x127))/0xa);if(_0x31f2fe===_0x1b84e3)break;else _0x21c000['push'](_0x21c000['shift']());}catch(_0x26fd0a){_0x21c000['push'](_0x21c000['shift']());}}}(a76_0x1fe4,0x8dfda));function a76_0x1fe4(){const _0x330a05=['Updated\x20db\x20link\x20','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','467030ynahrB','New\x20username','New\x20host:port','18vFiqfO','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','1261455Rgbolt','str','string','dbname','dbdesc','dbParam','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','772107nowAtw','trim','4ExfbJe','50XDqDKu','New\x20database\x20name','num','163919kAmMtd','8790048PqneDq','dburl','dbUrl','2276795qVucRm','password','username','New\x20description','dbparam','dbName','/smartapi/dblink/update','873909nqCHxh','dbDesc'];a76_0x1fe4=function(){return _0x330a05;};return a76_0x1fe4();}import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a76_0x1e10(_0x22a419,_0x59142a){_0x22a419=_0x22a419-0x10b;const _0x1fe4f8=a76_0x1fe4();let _0x1e10d8=_0x1fe4f8[_0x22a419];return _0x1e10d8;}import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':'update','description':a76_0x3d987d(0x116),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a76_0x3d987d(0x11f),'type':a76_0x3d987d(0x11e),'description':a76_0x3d987d(0x128)},{'name':a76_0x3d987d(0x12c),'type':a76_0x3d987d(0x11e),'description':a76_0x3d987d(0x119)},{'name':a76_0x3d987d(0x10e),'type':a76_0x3d987d(0x11e),'description':a76_0x3d987d(0x118)},{'name':a76_0x3d987d(0x10d),'type':a76_0x3d987d(0x11e),'description':a76_0x3d987d(0x123)},{'name':a76_0x3d987d(0x110),'type':a76_0x3d987d(0x11e),'description':'New\x20connection\x20parameter\x20string'},{'name':'dbdesc','type':a76_0x3d987d(0x11e),'description':a76_0x3d987d(0x10f)}],async 'validate'(_0x17a44a){const _0x3fbd0e=a76_0x3d987d,_0x49fea2=_0x17a44a[_0x3fbd0e(0x11d)](_0x3fbd0e(0x12c));if(_0x49fea2&&!validateDbUrl(_0x49fea2['trim']()))throw CliErrors['validation'](_0x3fbd0e(0x11b)+_0x49fea2+'\x22');},async 'dryRun'(_0x10ff23){const _0x11e32b=a76_0x3d987d,_0x3bc561=_0x10ff23[_0x11e32b(0x129)]('id'),_0x1bf10a=await getDbLinkInfo(_0x3bc561),_0x21b88b={..._0x1bf10a},_0x414da0=_0x10ff23[_0x11e32b(0x11d)](_0x11e32b(0x11f));if(_0x414da0)_0x21b88b['dbName']=_0x414da0;const _0x32a6e9=_0x10ff23[_0x11e32b(0x11d)](_0x11e32b(0x12c));if(_0x32a6e9)_0x21b88b[_0x11e32b(0x10b)]=_0x32a6e9['trim']();const _0x25d9e4=_0x10ff23['str'](_0x11e32b(0x10e));if(_0x25d9e4)_0x21b88b['username']=_0x25d9e4;const _0x3e03d7=_0x10ff23[_0x11e32b(0x11d)](_0x11e32b(0x10d));if(_0x3e03d7)_0x21b88b[_0x11e32b(0x10d)]=_0x3e03d7;const _0x5c8b8a=_0x10ff23[_0x11e32b(0x11d)]('dbparam');if(_0x5c8b8a)_0x21b88b[_0x11e32b(0x121)]=_0x5c8b8a;const _0x1e5c46=_0x10ff23[_0x11e32b(0x11d)]('dbdesc');if(_0x1e5c46)_0x21b88b['dbDesc']=_0x1e5c46;const _0x394b1c=sanitizeDbLinkForOutput(_0x21b88b);return{'method':'POST','url':_0x11e32b(0x112),'body':_0x394b1c,'description':_0x11e32b(0x122)};},async 'execute'(_0x505934){const _0x9a5ad1=a76_0x3d987d,_0x35c87d=_0x505934[_0x9a5ad1(0x129)]('id'),_0xa080fd=await getDbLinkInfo(_0x35c87d),_0x240f9b={..._0xa080fd},_0x492993=_0x505934['str'](_0x9a5ad1(0x11f));if(_0x492993)_0x240f9b[_0x9a5ad1(0x111)]=_0x492993;const _0x48a689=_0x505934[_0x9a5ad1(0x11d)](_0x9a5ad1(0x12c));if(_0x48a689)_0x240f9b['dbUrl']=_0x48a689[_0x9a5ad1(0x125)]();const _0x594820=_0x505934[_0x9a5ad1(0x11d)](_0x9a5ad1(0x10e));if(_0x594820)_0x240f9b['username']=_0x594820;const _0x10ead2=_0x505934[_0x9a5ad1(0x11d)]('password');if(_0x10ead2)_0x240f9b[_0x9a5ad1(0x10d)]=_0x10ead2;const _0x3b03fa=_0x505934[_0x9a5ad1(0x11d)](_0x9a5ad1(0x110));if(_0x3b03fa)_0x240f9b[_0x9a5ad1(0x121)]=_0x3b03fa;const _0x4375c5=_0x505934[_0x9a5ad1(0x11d)](_0x9a5ad1(0x120));if(_0x4375c5)_0x240f9b[_0x9a5ad1(0x114)]=_0x4375c5;const {id:_0x11278a,entity:_0x45df76}=normalizeEntityWithIdResponse(await updateDbLink(_0x240f9b));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x45df76),'message':_0x9a5ad1(0x115)+(_0x11278a??_0x35c87d)};}};
@@ -1 +1 @@
1
- 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_0x1825(){const _0x4494b3=['locale','\x20\x20Apps','11sGIqPE','\x20\x20Config\x20JSON','padEnd','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','green','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','source','yellow','accessKey','gray','platform','✗\x20Invalid\x20JSON','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20explicitAppName:\x20','env','Project','read','appcode','check','bold','9414dHFJFq','slice','apiDir','8730WujxAo','✓\x20Valid','currentApp','length','repeat','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','183mnsUGx','13757670dBvjRK','\x20\x20─','version','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','(none)','(set\x20via\x20file,\x20length=','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20Auth','value','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','(no\x20file)','(default:\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','defaultApp','message','\x20(default)','(not\x20set)','\x20\x20runtimeDomain:\x20\x20\x20','✓\x20Valid\x20JSON','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','keys','status','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','435KlJtfQ','3473997RJnFJh','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','Global','pageSize','apps','✗\x20Expired','\x20\x20Config\x20Files','appCode','log','924693ricaDR','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','5275488WGqWWW','(set,\x20length=','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','red','cookie','3552UZNAQk','explicitAppName','44646CYZjCh','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','arch','raw'];a77_0x1825=function(){return _0x4494b3;};return a77_0x1825();}const a77_0x17c06a=a77_0x4f06;(function(_0x4136b5,_0x2a65f8){const _0xc53c1a=a77_0x4f06,_0x2e37c9=_0x4136b5();while(!![]){try{const _0x4290b9=-parseInt(_0xc53c1a(0x1e0))/0x1*(-parseInt(_0xc53c1a(0x1d7))/0x2)+parseInt(_0xc53c1a(0x1a8))/0x3+parseInt(_0xc53c1a(0x1b4))/0x4+-parseInt(_0xc53c1a(0x1a7))/0x5*(parseInt(_0xc53c1a(0x1bc))/0x6)+-parseInt(_0xc53c1a(0x1b1))/0x7+-parseInt(_0xc53c1a(0x1ba))/0x8*(parseInt(_0xc53c1a(0x1da))/0x9)+parseInt(_0xc53c1a(0x1e1))/0xa*(-parseInt(_0xc53c1a(0x1c3))/0xb);if(_0x4290b9===_0x2a65f8)break;else _0x2e37c9['push'](_0x2e37c9['shift']());}catch(_0x1ee611){_0x2e37c9['push'](_0x2e37c9['shift']());}}}(a77_0x1825,0xb7ad3));import a77_0x1363b2 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a77_0x4f06(_0x4bf596,_0x5d8c4d){_0x4bf596=_0x4bf596-0x197;const _0x1825bb=a77_0x1825();let _0x4f06d9=_0x1825bb[_0x4bf596];return _0x4f06d9;}import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x1ed3d0){const _0x271507=a77_0x4f06,_0x52ab2c=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x271507(0x1d8)](0x0,0xa)+')':VERSION,_0xc6d31=buildConfigFromFlags({}),_0x4f7a6d=getCookie();console[_0x271507(0x1b0)](),console[_0x271507(0x1b0)](a77_0x1363b2[_0x271507(0x1d6)](CLI_BIN_NAME+'\x20doctor')),console['log'](a77_0x1363b2[_0x271507(0x1cc)]('─'[_0x271507(0x1de)](0x32))),console[_0x271507(0x1b0)](_0x271507(0x1ee)+_0x52ab2c),console[_0x271507(0x1b0)](_0x271507(0x1a1)+process[_0x271507(0x1e3)]),console['log'](_0x271507(0x1c6)+process[_0x271507(0x1cd)]+'\x20'+process[_0x271507(0x1bf)]),console['log'](),console['log'](a77_0x1363b2[_0x271507(0x1d6)](_0x271507(0x1ae))),console[_0x271507(0x1b0)](a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e2)[_0x271507(0x1de)](0x1e)));const _0x499279=getGlobalConfigPath(),_0x32891f=getProjectConfigPath();console[_0x271507(0x1b0)](_0x271507(0x1e8)+(_0x499279||a77_0x1363b2[_0x271507(0x1cc)]('(not\x20found)'))),console[_0x271507(0x1b0)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x32891f||a77_0x1363b2[_0x271507(0x1cc)]('(not\x20found)'))),console['log'](),console[_0x271507(0x1b0)](a77_0x1363b2['bold'](_0x271507(0x1c4))),console[_0x271507(0x1b0)](a77_0x1363b2['gray'](_0x271507(0x1e2)['repeat'](0x1e)));const _0xadf284=(_0x61cbeb,_0x2753fc)=>{const _0x5ce7d0=_0x271507;if(!_0x2753fc){console[_0x5ce7d0(0x1b0)]('\x20\x20'+_0x61cbeb[_0x5ce7d0(0x1c5)](0x11)+'\x20'+a77_0x1363b2['gray'](_0x5ce7d0(0x197)));return;}const _0x152e17=inspectCliConfigJsonFile(_0x2753fc);if(_0x152e17[_0x5ce7d0(0x1a3)]==='ok')console[_0x5ce7d0(0x1b0)]('\x20\x20'+_0x61cbeb[_0x5ce7d0(0x1c5)](0x11)+'\x20'+a77_0x1363b2[_0x5ce7d0(0x1c7)](_0x5ce7d0(0x1a0)));else{if(_0x152e17[_0x5ce7d0(0x1a3)]==='empty')console[_0x5ce7d0(0x1b0)]('\x20\x20'+_0x61cbeb[_0x5ce7d0(0x1c5)](0x11)+'\x20'+a77_0x1363b2[_0x5ce7d0(0x1ca)](_0x5ce7d0(0x1cf)));else _0x152e17[_0x5ce7d0(0x1a3)]==='missing'?console[_0x5ce7d0(0x1b0)]('\x20\x20'+_0x61cbeb['padEnd'](0x11)+'\x20'+a77_0x1363b2[_0x5ce7d0(0x1cc)]('(missing)')):(console[_0x5ce7d0(0x1b0)]('\x20\x20'+_0x61cbeb[_0x5ce7d0(0x1c5)](0x11)+'\x20'+a77_0x1363b2[_0x5ce7d0(0x1b8)](_0x5ce7d0(0x1ce))),console[_0x5ce7d0(0x1b0)]('\x20\x20'+''[_0x5ce7d0(0x1c5)](0x11)+'\x20'+a77_0x1363b2[_0x5ce7d0(0x1b8)](_0x152e17[_0x5ce7d0(0x19c)])));}};_0xadf284(_0x271507(0x1aa),_0x499279),_0xadf284(_0x271507(0x1d2),_0x32891f),console[_0x271507(0x1b0)](),console[_0x271507(0x1b0)](a77_0x1363b2[_0x271507(0x1d6)]('\x20\x20Merged\x20Config')),console['log'](a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e2)['repeat'](0x1e))),console[_0x271507(0x1b0)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xc6d31[_0x271507(0x1af)]||a77_0x1363b2[_0x271507(0x1b8)](_0x271507(0x19e)))),console[_0x271507(0x1b0)](_0x271507(0x1c8)+_0xc6d31[_0x271507(0x1d1)]),console[_0x271507(0x1b0)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xc6d31[_0x271507(0x1c1)]),console['log'](_0x271507(0x1b6)+_0xc6d31[_0x271507(0x1d9)]),console[_0x271507(0x1b0)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0xc6d31['defaultApp']||a77_0x1363b2[_0x271507(0x1cc)]('(none)'))),console[_0x271507(0x1b0)](_0x271507(0x1df)+(_0xc6d31[_0x271507(0x1dc)]||a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e6)))),console['log'](_0x271507(0x1d0)+(_0xc6d31[_0x271507(0x1bb)]||a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e6)))),console['log'](_0x271507(0x1a5)+(_0xc6d31['format']||a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x198)+DEFAULT_CONFIG_VALUES[_0x271507(0x1be)]+')'))),console[_0x271507(0x1b0)](_0x271507(0x1ed)+(_0xc6d31[_0x271507(0x1ab)]??a77_0x1363b2[_0x271507(0x1cc)]('(default)'))),console[_0x271507(0x1b0)](_0x271507(0x1a4)+_0xc6d31['riskLevel']),console[_0x271507(0x1b0)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xc6d31[_0x271507(0x1b7)]),console[_0x271507(0x1b0)](_0x271507(0x199)+(_0xc6d31[_0x271507(0x1b9)]?a77_0x1363b2[_0x271507(0x1c7)](_0x271507(0x1b5)+_0xc6d31[_0x271507(0x1b9)][_0x271507(0x1dd)]+')'):_0x4f7a6d?a77_0x1363b2[_0x271507(0x1c7)](_0x271507(0x1e7)+_0x4f7a6d[_0x271507(0x1dd)]+')'):a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e6))));const _0x44dbef=Object[_0x271507(0x1a2)](_0xc6d31['apps']);if(_0x44dbef[_0x271507(0x1dd)]>0x0){console[_0x271507(0x1b0)](),console[_0x271507(0x1b0)](a77_0x1363b2['bold'](_0x271507(0x1c2))),console[_0x271507(0x1b0)](a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e2)[_0x271507(0x1de)](0x1e)));for(const _0x11d381 of _0x44dbef){const _0x38163a=_0xc6d31[_0x271507(0x1ac)][_0x11d381],_0x4ec195=_0x11d381===_0xc6d31[_0x271507(0x19b)],_0x31eb85=_0x11d381===_0xc6d31[_0x271507(0x1dc)],_0x80635a=_0x31eb85?a77_0x1363b2[_0x271507(0x1c7)](_0x271507(0x1e5)):'',_0x4441c5=_0x4ec195?_0x271507(0x19d):'';console[_0x271507(0x1b0)]('\x20\x20'+_0x11d381+_0x4441c5+_0x80635a),console['log']('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x38163a[_0x271507(0x1d4)]);const _0x3f17cd=buildAppDoctorFields(_0x38163a,{'env':_0xc6d31[_0x271507(0x1d1)],'apiDir':_0xc6d31[_0x271507(0x1c0)]['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0xc6d31[_0x271507(0x1b9)]||_0x4f7a6d||undefined,'accessKey':_0xc6d31[_0x271507(0x1cb)]});console[_0x271507(0x1b0)](_0x271507(0x1e4)+_0x3f17cd[_0x271507(0x1d1)][_0x271507(0x1ec)]+'\x20\x20'+a77_0x1363b2['gray']('('+_0x3f17cd[_0x271507(0x1d1)][_0x271507(0x1c9)]+')')),console[_0x271507(0x1b0)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x3f17cd[_0x271507(0x1d9)]['value']+'\x20\x20'+a77_0x1363b2['gray']('('+_0x3f17cd[_0x271507(0x1d9)][_0x271507(0x1c9)]+')'));const _0x5a110b=_0x3f17cd[_0x271507(0x1b9)][_0x271507(0x1ec)]?a77_0x1363b2[_0x271507(0x1c7)](_0x271507(0x1b5)+_0x3f17cd[_0x271507(0x1b9)][_0x271507(0x1ec)][_0x271507(0x1dd)]+')'):a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e6));console[_0x271507(0x1b0)](_0x271507(0x1a9)+_0x5a110b+'\x20\x20'+a77_0x1363b2[_0x271507(0x1cc)]('('+_0x3f17cd[_0x271507(0x1b9)]['source']+')'));const _0x5180a5=_0x3f17cd[_0x271507(0x1cb)][_0x271507(0x1ec)]?a77_0x1363b2[_0x271507(0x1c7)](_0x271507(0x1b5)+_0x3f17cd['accessKey'][_0x271507(0x1ec)][_0x271507(0x1dd)]+')'):a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e6));console['log'](_0x271507(0x1b2)+_0x5180a5+'\x20\x20'+a77_0x1363b2[_0x271507(0x1cc)]('('+_0x3f17cd[_0x271507(0x1cb)][_0x271507(0x1c9)]+')'));}}console[_0x271507(0x1b0)](),console[_0x271507(0x1b0)](a77_0x1363b2['bold'](_0x271507(0x1a6))),console[_0x271507(0x1b0)](a77_0x1363b2['gray'](_0x271507(0x1e2)[_0x271507(0x1de)](0x1e))),console[_0x271507(0x1b0)](_0x271507(0x19a)+getApiDomain()),console[_0x271507(0x1b0)](_0x271507(0x1b3)+getUserDomain()),console[_0x271507(0x1b0)](_0x271507(0x19f)+getRuntimeDomain()),console['log'](),console[_0x271507(0x1b0)](a77_0x1363b2[_0x271507(0x1d6)](_0x271507(0x1eb))),console[_0x271507(0x1b0)](a77_0x1363b2[_0x271507(0x1cc)](_0x271507(0x1e2)[_0x271507(0x1de)](0x1e)));if(_0x4f7a6d){const _0xca5223=await getIsSessionValid();console[_0x271507(0x1b0)](_0x271507(0x1bd)+(_0xca5223?a77_0x1363b2['green'](_0x271507(0x1db)):a77_0x1363b2[_0x271507(0x1b8)](_0x271507(0x1ad))));}else console[_0x271507(0x1b0)](_0x271507(0x1bd)+a77_0x1363b2[_0x271507(0x1b8)]('✗\x20Not\x20logged\x20in'));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a77_0x17c06a(0x1e9),'command':a77_0x17c06a(0x1d5),'description':a77_0x17c06a(0x1ea),'risk':a77_0x17c06a(0x1d3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a78_0x444720=a78_0x4b19;(function(_0x16a47f,_0x1a0566){const _0x1fa3a0=a78_0x4b19,_0x4dd7a8=_0x16a47f();while(!![]){try{const _0x3a238e=parseInt(_0x1fa3a0(0x111))/0x1*(-parseInt(_0x1fa3a0(0x126))/0x2)+parseInt(_0x1fa3a0(0x107))/0x3+parseInt(_0x1fa3a0(0xfc))/0x4+-parseInt(_0x1fa3a0(0x11a))/0x5+-parseInt(_0x1fa3a0(0xff))/0x6+parseInt(_0x1fa3a0(0x10f))/0x7*(parseInt(_0x1fa3a0(0x122))/0x8)+-parseInt(_0x1fa3a0(0x11e))/0x9;if(_0x3a238e===_0x1a0566)break;else _0x4dd7a8['push'](_0x4dd7a8['shift']());}catch(_0x5f530b){_0x4dd7a8['push'](_0x4dd7a8['shift']());}}}(a78_0x3530,0xbbbe7));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';function a78_0x3530(){const _0x2db866=['Auto-confirm\x20prompts','cwd','2VjxBwB','\x20\x20Apps:\x20','valid','defaultApp','5393804rQOGeF','boolean','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','2617542MAZnga','Target\x20environment','custom','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','\x20\x20Config:\x20','write','project','join','3822648NCDakw','Use\x20`','message','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','App\x20code\x20to\x20initialize\x20with','production','bool','validation','658616ucfTLz','log','628849rKVYly','some','nonInteractive','env','appcode','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','appCode','../../commands/project/init.js','str','2377930qykdbQ','map','string','run','8744328lgepqi','global','\x0a✓\x20Successfully\x20initialized\x20','Write\x20to\x20global\x20config\x20instead\x20of\x20project','56FyJnZY','yes'];a78_0x3530=function(){return _0x2db866;};return a78_0x3530();}import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x16c775){return{'appCode':_0x16c775,'appName':_0x16c775};}function a78_0x4b19(_0x4a18d2,_0x375a74){_0x4a18d2=_0x4a18d2-0xfa;const _0x35303a=a78_0x3530();let _0x4b196e=_0x35303a[_0x4a18d2];return _0x4b196e;}function writeInitConfig(_0x145426,_0x3b04c9,_0x3f4d76){const _0x574080=a78_0x4b19,_0x15d04c=resolveWriteConfigPath(_0x145426),_0x1f8d9f=buildCanonicalProjectConfig({},{'appCodes':_0x3b04c9[_0x574080(0x11b)](_0x44e041=>_0x44e041[_0x574080(0x117)]),'env':_0x3f4d76,'metadata':{'version':getCliVersion(),'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0x15d04c,_0x1f8d9f);const _0x290756=_0x145426===_0x574080(0x11f)?'global':_0x574080(0x105);console[_0x574080(0x110)](_0x574080(0x120)+_0x290756+'\x20config'),console['log'](_0x574080(0x127)+_0x3b04c9[_0x574080(0x11b)](_0x58bb1b=>_0x58bb1b['appCode'])[_0x574080(0x106)](',\x20')),console['log']('\x20\x20Default:\x20'+_0x1f8d9f[_0x574080(0xfb)]),console[_0x574080(0x110)]('\x20\x20Env:\x20'+_0x1f8d9f['env']),console['log'](_0x574080(0x103)+_0x15d04c);}async function runSmartInit(_0x123e72){const _0x338a40=a78_0x4b19,_0x2d4d7c=process[_0x338a40(0x125)](),_0x274336=_0x123e72[_0x338a40(0x10d)]('global')?_0x338a40(0x11f):_0x338a40(0x105),_0x108c61=_0x123e72[_0x338a40(0x119)](_0x338a40(0x114))||'production',_0x27c4e5=_0x123e72['str'](_0x338a40(0x115))||undefined,_0x3fdbb2=_0x123e72[_0x338a40(0x10d)](_0x338a40(0x105));if(_0x3fdbb2){const {initConfig:_0x3d1040}=await import(_0x338a40(0x118));return _0x3d1040({'appcode':_0x27c4e5,'env':_0x108c61,'autoYes':_0x123e72['bool'](_0x338a40(0x123))});}if(_0x274336===_0x338a40(0x105)){const _0x2236ef=existsSync(resolve(_0x2d4d7c,NEW_CONFIG_NAME)),_0x502738=LEGACY_CONFIG_NAMES[_0x338a40(0x112)](_0x3125f9=>existsSync(resolve(_0x2d4d7c,_0x3125f9)));if(_0x502738&&!_0x2236ef)return console['log']('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x123e72[_0x338a40(0x113)],{'yes':_0x123e72['bool'](_0x338a40(0x123))});if(_0x2236ef)throw CliErrors[_0x338a40(0x10e)](_0x338a40(0x102),_0x338a40(0x108)+CLI_BIN_NAME+_0x338a40(0x10a));}if(_0x27c4e5){const _0x3db840=validateAppcode(_0x27c4e5);if(!_0x3db840[_0x338a40(0xfa)])throw CliErrors[_0x338a40(0x10e)](_0x3db840[_0x338a40(0x109)]);writeInitConfig(_0x274336,[syntheticApp(_0x27c4e5)],_0x108c61);return;}if(_0x123e72[_0x338a40(0x113)])throw CliErrors['flagMissing'](_0x338a40(0x115),'Usage:\x20'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x4b9161=getCookie(),_0x5e0bda=await selectMultipleApps(_0x4b9161),_0x176577=_0x5e0bda===_0x338a40(0x101)?[syntheticApp(await promptCustomAppcode())]:_0x5e0bda;writeInitConfig(_0x274336,_0x176577,_0x108c61);}const initFlags=[{'name':a78_0x444720(0x11f),'type':a78_0x444720(0xfd),'description':a78_0x444720(0x121),'default':![]},{'name':a78_0x444720(0x114),'type':a78_0x444720(0x11c),'description':a78_0x444720(0x100),'default':a78_0x444720(0x10c),'enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':a78_0x444720(0x11c),'description':a78_0x444720(0x10b)},{'name':a78_0x444720(0x105),'type':a78_0x444720(0xfd),'description':a78_0x444720(0xfe),'default':![]},{'name':a78_0x444720(0x123),'type':a78_0x444720(0xfd),'description':a78_0x444720(0x124),'default':![]}];export const initDefinitions=[{'service':'init','command':a78_0x444720(0x11d),'description':a78_0x444720(0x116),'risk':a78_0x444720(0x104),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x34a1f5){return await runSmartInit(_0x34a1f5),{'ok':!![]};}}];
1
+ const a78_0x4a275e=a78_0x3aca;(function(_0x3f4c92,_0x195773){const _0x2e37f3=a78_0x3aca,_0x6015c=_0x3f4c92();while(!![]){try{const _0x1bfa17=parseInt(_0x2e37f3(0x9a))/0x1*(parseInt(_0x2e37f3(0x8c))/0x2)+parseInt(_0x2e37f3(0x90))/0x3+parseInt(_0x2e37f3(0x80))/0x4+parseInt(_0x2e37f3(0xa1))/0x5+-parseInt(_0x2e37f3(0x8e))/0x6*(parseInt(_0x2e37f3(0x8b))/0x7)+-parseInt(_0x2e37f3(0x75))/0x8*(-parseInt(_0x2e37f3(0x85))/0x9)+-parseInt(_0x2e37f3(0x87))/0xa;if(_0x1bfa17===_0x195773)break;else _0x6015c['push'](_0x6015c['shift']());}catch(_0x356c22){_0x6015c['push'](_0x6015c['shift']());}}}(a78_0x2caf,0x6d33c));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';function a78_0x3aca(_0xa8f2a8,_0x16d99d){_0xa8f2a8=_0xa8f2a8-0x75;const _0x2cafc1=a78_0x2caf();let _0x3aca07=_0x2cafc1[_0xa8f2a8];return _0x3aca07;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';function a78_0x2caf(){const _0x342aeb=['yes','flagMissing','Use\x20`','2341100pqiSyH','appcode','project','init','\x20config','27zzjnVG','Target\x20environment','9465320iOulBS','join','global','\x20\x20Default:\x20','247121XzzbXi','8qTrAfx','custom','144GEsUiv','string','215001NmBBaX','boolean','nonInteractive','write','\x0a✓\x20Successfully\x20initialized\x20','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','\x20\x20Env:\x20','map','validation','message','190695KlCBOQ','production','\x20\x20Apps:\x20','valid','log','env','bool','440765SlxpJR','cwd','1955256zhUbJv','str','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','../../commands/project/init.js','appCode','toLocaleString','run'];a78_0x2caf=function(){return _0x342aeb;};return a78_0x2caf();}import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x583961){return{'appCode':_0x583961,'appName':_0x583961};}function writeInitConfig(_0x477a3a,_0x2e99f2,_0x324e0e){const _0x12dc7a=a78_0x3aca,_0x3408d3=resolveWriteConfigPath(_0x477a3a),_0x1f3740=buildCanonicalProjectConfig({},{'appCodes':_0x2e99f2[_0x12dc7a(0x97)](_0x3bd4dd=>_0x3bd4dd[_0x12dc7a(0x7a)]),'env':_0x324e0e,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x12dc7a(0x7b)]()}});writeConfigFile(_0x3408d3,_0x1f3740);const _0x1f26ef=_0x477a3a==='global'?_0x12dc7a(0x89):_0x12dc7a(0x82);console[_0x12dc7a(0x9e)](_0x12dc7a(0x94)+_0x1f26ef+_0x12dc7a(0x84)),console[_0x12dc7a(0x9e)](_0x12dc7a(0x9c)+_0x2e99f2[_0x12dc7a(0x97)](_0x34607e=>_0x34607e[_0x12dc7a(0x7a)])[_0x12dc7a(0x88)](',\x20')),console['log'](_0x12dc7a(0x8a)+_0x1f3740['defaultApp']),console[_0x12dc7a(0x9e)](_0x12dc7a(0x96)+_0x1f3740['env']),console[_0x12dc7a(0x9e)]('\x20\x20Config:\x20'+_0x3408d3);}async function runSmartInit(_0x425334){const _0x131f22=a78_0x3aca,_0x5f48e9=process[_0x131f22(0xa2)](),_0x3a3098=_0x425334[_0x131f22(0xa0)]('global')?_0x131f22(0x89):_0x131f22(0x82),_0x4fbb55=_0x425334[_0x131f22(0x76)](_0x131f22(0x9f))||_0x131f22(0x9b),_0x46eaeb=_0x425334[_0x131f22(0x76)](_0x131f22(0x81))||undefined,_0xf948d6=_0x425334[_0x131f22(0xa0)]('project');if(_0xf948d6){const {initConfig:_0x25224a}=await import(_0x131f22(0x79));return _0x25224a({'appcode':_0x46eaeb,'env':_0x4fbb55,'autoYes':_0x425334['bool'](_0x131f22(0x7d))});}if(_0x3a3098===_0x131f22(0x82)){const _0x4af7cf=existsSync(resolve(_0x5f48e9,NEW_CONFIG_NAME)),_0x5d861c=LEGACY_CONFIG_NAMES['some'](_0x415074=>existsSync(resolve(_0x5f48e9,_0x415074)));if(_0x5d861c&&!_0x4af7cf)return console[_0x131f22(0x9e)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x425334['nonInteractive'],{'yes':_0x425334[_0x131f22(0xa0)](_0x131f22(0x7d))});if(_0x4af7cf)throw CliErrors[_0x131f22(0x98)](_0x131f22(0x95),_0x131f22(0x7f)+CLI_BIN_NAME+_0x131f22(0x78));}if(_0x46eaeb){const _0x455c8b=validateAppcode(_0x46eaeb);if(!_0x455c8b[_0x131f22(0x9d)])throw CliErrors[_0x131f22(0x98)](_0x455c8b[_0x131f22(0x99)]);writeInitConfig(_0x3a3098,[syntheticApp(_0x46eaeb)],_0x4fbb55);return;}if(_0x425334[_0x131f22(0x92)])throw CliErrors[_0x131f22(0x7e)](_0x131f22(0x81),'Usage:\x20'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x36b3d2=getCookie(),_0x456754=await selectMultipleApps(_0x36b3d2),_0x45a243=_0x456754===_0x131f22(0x8d)?[syntheticApp(await promptCustomAppcode())]:_0x456754;writeInitConfig(_0x3a3098,_0x45a243,_0x4fbb55);}const initFlags=[{'name':a78_0x4a275e(0x89),'type':a78_0x4a275e(0x91),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a78_0x4a275e(0x9f),'type':a78_0x4a275e(0x8f),'description':a78_0x4a275e(0x86),'default':a78_0x4a275e(0x9b),'enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':a78_0x4a275e(0x8f),'description':'App\x20code\x20to\x20initialize\x20with'},{'name':a78_0x4a275e(0x82),'type':a78_0x4a275e(0x91),'description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':a78_0x4a275e(0x7d),'type':a78_0x4a275e(0x91),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a78_0x4a275e(0x83),'command':a78_0x4a275e(0x7c),'description':a78_0x4a275e(0x77),'risk':a78_0x4a275e(0x93),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x5f04e1){return await runSmartInit(_0x5f04e1),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_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 a79_0xa27a(_0x5c05df,_0x24940f){_0x5c05df=_0x5c05df-0x82;const _0x4fb3ee=a79_0x4fb3();let _0xa27a1d=_0x4fb3ee[_0x5c05df];return _0xa27a1d;}function a79_0x4fb3(){const _0x400da2=['35ZfRnCx','4VDcBOt','5804400DxNYHg','6337243MDHLDk','3tdhOcu','8131992dUEkfO','758273nkLSUx','1659930eZxngf','80RIpJLq','223596qWDnyC','6552172KpQNgF'];a79_0x4fb3=function(){return _0x400da2;};return a79_0x4fb3();}(function(_0x7db918,_0x566b9d){const _0x3f4b53=a79_0xa27a,_0x59bfb1=_0x7db918();while(!![]){try{const _0x3d39c5=parseInt(_0x3f4b53(0x85))/0x1*(-parseInt(_0x3f4b53(0x8b))/0x2)+parseInt(_0x3f4b53(0x83))/0x3*(parseInt(_0x3f4b53(0x89))/0x4)+parseInt(_0x3f4b53(0x8c))/0x5+-parseInt(_0x3f4b53(0x86))/0x6*(-parseInt(_0x3f4b53(0x8a))/0x7)+-parseInt(_0x3f4b53(0x84))/0x8+parseInt(_0x3f4b53(0x88))/0x9*(-parseInt(_0x3f4b53(0x87))/0xa)+-parseInt(_0x3f4b53(0x82))/0xb;if(_0x3d39c5===_0x566b9d)break;else _0x59bfb1['push'](_0x59bfb1['shift']());}catch(_0x1a34ab){_0x59bfb1['push'](_0x59bfb1['shift']());}}}(a79_0x4fb3,0xd5730));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a80_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_0x16c040=a80_0x3321;(function(_0x3ca66f,_0x34b583){const _0x53d3d0=a80_0x3321,_0x22acf2=_0x3ca66f();while(!![]){try{const _0x32815e=parseInt(_0x53d3d0(0x9d))/0x1+-parseInt(_0x53d3d0(0x7a))/0x2+parseInt(_0x53d3d0(0x8d))/0x3+parseInt(_0x53d3d0(0x7d))/0x4+-parseInt(_0x53d3d0(0x7f))/0x5*(parseInt(_0x53d3d0(0x8b))/0x6)+parseInt(_0x53d3d0(0x81))/0x7+parseInt(_0x53d3d0(0x82))/0x8*(parseInt(_0x53d3d0(0x7e))/0x9);if(_0x32815e===_0x34b583)break;else _0x22acf2['push'](_0x22acf2['shift']());}catch(_0x2b1adb){_0x22acf2['push'](_0x22acf2['shift']());}}}(a80_0x3426,0x29246));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0x16c040(0x84);const NUDGE_SUPPRESSED_CODES=new Set([a80_0x16c040(0x97),a80_0x16c040(0x92),a80_0x16c040(0x94),a80_0x16c040(0x90),a80_0x16c040(0x9a),a80_0x16c040(0x8f),a80_0x16c040(0x80),a80_0x16c040(0x99)]),defaultWriter=_0x499585=>{const _0x1de824=a80_0x16c040;process[_0x1de824(0x89)][_0x1de824(0x98)](_0x499585);};export function shouldNudgeForError(_0x353547,_0x1a00d5){const _0x550d88=a80_0x16c040;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x1a00d5['service']==='issue'&&_0x1a00d5[_0x550d88(0x88)]===_0x550d88(0x8e))return![];if(_0x353547 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x550d88(0x83)](_0x353547[_0x550d88(0x93)]);return!![];}function a80_0x3426(){const _0x825707=['\x20issue\x20report\x20\x5c','command','stderr','slice','94152znbYaj','=1\x20to\x20silence\x20this\x20hint.','423543OKBXuX','report','flag_missing','not_in_project','message','auth_required','code','config_missing','\x20\x20Set\x20','service','cancelled','write','network_error','unknown_command','\x20bug?\x20Help\x20us\x20fix\x20it:','length','68818xuugyr','Hit\x20a\x20','564796kGGNDj','replace','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','1330668nDLxtb','18pEYXnq','50UFVNKj','validation_error','303828JClzzA','87064BOqqEV','has','RABETBASE_DISABLE_ISSUE_NUDGE','trim','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22'];a80_0x3426=function(){return _0x825707;};return a80_0x3426();}export function printIssueReportNudgeForError(_0x189148,_0x361cef,_0x2dace3=defaultWriter){if(!shouldNudgeForError(_0x189148,_0x361cef))return;const _0x515023=buildSuggestedTitle(_0x189148,_0x361cef);_0x2dace3(formatNudge(_0x515023));}function buildSuggestedTitle(_0xdb4c0c,_0x50e3c9){const _0x3e13be=a80_0x16c040,_0x5b3ae0=_0xdb4c0c instanceof Error?_0xdb4c0c[_0x3e13be(0x91)]:String(_0xdb4c0c),_0x4f00e1=_0x5b3ae0['replace'](/[\r\n]+/g,'\x20')[_0x3e13be(0x7b)](/\s+/g,'\x20')[_0x3e13be(0x85)]()[_0x3e13be(0x8a)](0x0,0x78)[_0x3e13be(0x7b)](/"/g,'\x5c\x22'),_0xcdce34=CLI_BIN_NAME+'\x20'+_0x50e3c9[_0x3e13be(0x96)]+'\x20'+_0x50e3c9[_0x3e13be(0x88)];return _0x4f00e1[_0x3e13be(0x9c)]>0x0?_0xcdce34+':\x20'+_0x4f00e1:_0xcdce34;}function a80_0x3321(_0x3bb6ac,_0x3e627a){_0x3bb6ac=_0x3bb6ac-0x7a;const _0x3426c3=a80_0x3426();let _0x332104=_0x3426c3[_0x3bb6ac];return _0x332104;}function formatNudge(_0x570deb){const _0x1a85c4=a80_0x16c040;return['',_0x1a85c4(0x9e)+CLI_BIN_NAME+_0x1a85c4(0x9b),'\x20\x20'+CLI_BIN_NAME+_0x1a85c4(0x87),'\x20\x20\x20\x20--title\x20\x22'+_0x570deb+'\x22\x20\x5c',_0x1a85c4(0x86),_0x1a85c4(0x7c),_0x1a85c4(0x95)+NUDGE_OPT_OUT_ENV+_0x1a85c4(0x8c),'']['join']('\x0a');}
@@ -1 +1 @@
1
- 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_0x3c874e=a81_0x3169;(function(_0x428e34,_0x23a01c){const _0x1279eb=a81_0x3169,_0x481e56=_0x428e34();while(!![]){try{const _0x3b6490=-parseInt(_0x1279eb(0x141))/0x1*(-parseInt(_0x1279eb(0x129))/0x2)+-parseInt(_0x1279eb(0x127))/0x3+-parseInt(_0x1279eb(0x123))/0x4*(-parseInt(_0x1279eb(0x142))/0x5)+-parseInt(_0x1279eb(0x132))/0x6*(parseInt(_0x1279eb(0x115))/0x7)+-parseInt(_0x1279eb(0x11b))/0x8+parseInt(_0x1279eb(0x13d))/0x9*(parseInt(_0x1279eb(0x12b))/0xa)+-parseInt(_0x1279eb(0x148))/0xb*(-parseInt(_0x1279eb(0x10b))/0xc);if(_0x3b6490===_0x23a01c)break;else _0x481e56['push'](_0x481e56['shift']());}catch(_0x1d8f58){_0x481e56['push'](_0x481e56['shift']());}}}(a81_0x3559,0x34e40));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a81_0x3c874e(0x10d);export const issueReport={'service':a81_0x3c874e(0x12a),'command':a81_0x3c874e(0x144),'description':a81_0x3c874e(0x125),'risk':a81_0x3c874e(0x10f),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a81_0x3c874e(0x13e),'flags':[{'name':'title','type':a81_0x3c874e(0x13f),'required':!![],'description':'One-line\x20issue\x20summary'},{'name':'description','type':a81_0x3c874e(0x13f),'description':a81_0x3c874e(0x133)},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x3c874e(0x13f),'description':a81_0x3c874e(0x11a)}],async 'validate'(_0x6280ec){const _0x16cd58=a81_0x3c874e,_0x5c4b27=_0x6280ec[_0x16cd58(0x131)](_0x16cd58(0x11f))['trim'](),_0xaeadd8=_0x6280ec[_0x16cd58(0x131)](_0x16cd58(0x12f))[_0x16cd58(0x137)](),_0x33afc0=_0x6280ec[_0x16cd58(0x131)](DESCRIPTION_FILE_FLAG)[_0x16cd58(0x137)]();if(!_0x5c4b27)throw CliErrors[_0x16cd58(0x13a)](_0x16cd58(0x11f),_0x16cd58(0x119));const _0x49c760=_0xaeadd8[_0x16cd58(0x113)]>0x0,_0x5bf5b0=_0x33afc0[_0x16cd58(0x113)]>0x0;if(_0x49c760===_0x5bf5b0)throw CliErrors[_0x16cd58(0x10c)](_0x16cd58(0x11d),_0x16cd58(0x136));if(_0x5bf5b0){const _0x5ed866=resolve(process[_0x16cd58(0x10e)](),_0x33afc0);if(!existsSync(_0x5ed866))throw CliErrors[_0x16cd58(0x10c)](_0x16cd58(0x143)+_0x5ed866);}},async 'dryRun'(_0x5c667e){const _0x3ae10f=a81_0x3c874e,_0x402e68=await prepareIssueReport(_0x5c667e);return{'method':_0x3ae10f(0x149),'url':_0x3ae10f(0x121)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x402e68[_0x3ae10f(0x11f)],'issue.description':_0x402e68[_0x3ae10f(0x12f)],'issue.description_original_bytes':_0x402e68[_0x3ae10f(0x146)][_0x3ae10f(0x117)],'issue.description_truncated':_0x402e68[_0x3ae10f(0x146)][_0x3ae10f(0x126)],'issue.description_redactions':_0x402e68[_0x3ae10f(0x146)]['redactionCount'],'issue.description_redaction_kinds':_0x402e68[_0x3ae10f(0x146)][_0x3ae10f(0x138)][_0x3ae10f(0x110)](',')}},'description':[_0x3ae10f(0x109),'descriptionSource:\x20'+_0x402e68[_0x3ae10f(0x139)],_0x402e68['descriptionFilePath']?'descriptionFile:\x20'+_0x402e68[_0x3ae10f(0x10a)]:null,_0x402e68[_0x3ae10f(0x146)][_0x3ae10f(0x126)]?'truncated:\x20original\x20'+_0x402e68['sanitize'][_0x3ae10f(0x117)]+'\x20bytes':null,_0x402e68['sanitize']['redactionCount']>0x0?_0x3ae10f(0x114)+_0x402e68[_0x3ae10f(0x146)]['redactionCount']+'\x20('+_0x402e68[_0x3ae10f(0x146)][_0x3ae10f(0x138)]['join'](',\x20')+')':null][_0x3ae10f(0x145)](Boolean)['join']('\x0a')};},async 'execute'(_0x40e1f5){const _0x2222a3=a81_0x3c874e,_0x1f12a5=await prepareIssueReport(_0x40e1f5);try{await sendPlatformIssueCollectLog({'title':_0x1f12a5['title'],'description':_0x1f12a5['description'],'sanitize':{'originalBytes':_0x1f12a5[_0x2222a3(0x146)][_0x2222a3(0x117)],'truncated':_0x1f12a5[_0x2222a3(0x146)]['truncated'],'redactionCount':_0x1f12a5[_0x2222a3(0x146)][_0x2222a3(0x112)],'redactionKinds':_0x1f12a5['sanitize'][_0x2222a3(0x138)]}});}catch(_0x2c95aa){throw CliErrors[_0x2222a3(0x135)](_0x2222a3(0x12e)+(_0x2c95aa instanceof Error?_0x2c95aa[_0x2222a3(0x128)]:String(_0x2c95aa)),_0x2222a3(0x122));}return{'ok':!![],'message':buildResultMessage(_0x1f12a5['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x2222a3(0x140),_0x2222a3(0x12c),_0x2222a3(0x11e),_0x2222a3(0x13b),_0x2222a3(0x118),_0x2222a3(0x134)],'issue':{'title':_0x1f12a5[_0x2222a3(0x11f)],'descriptionLength':_0x1f12a5['description'][_0x2222a3(0x113)],'descriptionSource':_0x1f12a5[_0x2222a3(0x139)],..._0x1f12a5[_0x2222a3(0x10a)]?{'descriptionFile':_0x1f12a5[_0x2222a3(0x10a)]}:{},'sanitize':{'originalBytes':_0x1f12a5['sanitize'][_0x2222a3(0x117)],'truncated':_0x1f12a5['sanitize'][_0x2222a3(0x126)],'redactions':_0x1f12a5[_0x2222a3(0x146)][_0x2222a3(0x112)],'redactionKinds':_0x1f12a5[_0x2222a3(0x146)][_0x2222a3(0x138)]}}}};}};function a81_0x3169(_0x397b30,_0x157cff){_0x397b30=_0x397b30-0x109;const _0x355923=a81_0x3559();let _0x3169e8=_0x355923[_0x397b30];return _0x3169e8;}function a81_0x3559(){const _0x4888c8=['title','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','otel://','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','92qpowxf','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','truncated','409701jpLPxk','message','58184sLPCUP','issue','10jXtfuf','issue.description','push','Failed\x20to\x20report\x20platform\x20issue:\x20','description','Platform\x20issue\x20reported','str','272166ROpZkM','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','issue.description_redaction_kinds','apiError','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','trim','redactionKinds','descriptionSource','flagMissing','issue.description_truncated','Platform\x20issue\x20reported\x20(','3688929KWFobZ','compress','string','issue.title','1bDCMit','30630IphQPL','File\x20not\x20found:\x20','report','filter','sanitize','Issue\x20description\x20cannot\x20be\x20empty.','649583etpcBa','POST','truncated\x20from\x20','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','descriptionFilePath','84LPFuHL','validation','description-file','cwd','write','join','Issue\x20description\x20file\x20is\x20empty:\x20','redactionCount','length','redactions:\x20','42bEMjnc','utf8','originalBytes','issue.description_redactions','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','2942952qYNPDe','\x20secret(s):\x20','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','issue.description_original_bytes'];a81_0x3559=function(){return _0x4888c8;};return a81_0x3559();}function buildResultMessage(_0x29d662){const _0x49f46e=a81_0x3c874e,_0xf6b808=[];return _0x29d662[_0x49f46e(0x126)]&&_0xf6b808[_0x49f46e(0x12d)](_0x49f46e(0x14a)+_0x29d662[_0x49f46e(0x117)]+'\x20bytes'),_0x29d662[_0x49f46e(0x112)]>0x0&&_0xf6b808[_0x49f46e(0x12d)]('redacted\x20'+_0x29d662[_0x49f46e(0x112)]+_0x49f46e(0x11c)+_0x29d662[_0x49f46e(0x138)][_0x49f46e(0x110)](',\x20')),_0xf6b808[_0x49f46e(0x113)]===0x0?_0x49f46e(0x130):_0x49f46e(0x13c)+_0xf6b808[_0x49f46e(0x110)](';\x20')+')';}async function prepareIssueReport(_0x579206){const _0x551d9e=a81_0x3c874e,_0xd0c66c=_0x579206['str'](_0x551d9e(0x11f))[_0x551d9e(0x137)](),_0x3103f2=_0x579206[_0x551d9e(0x131)](_0x551d9e(0x12f)),_0x316aa5=_0x579206['str'](DESCRIPTION_FILE_FLAG)[_0x551d9e(0x137)]();if(!_0x316aa5){const _0x5ce225=_0x3103f2;if(!_0x5ce225[_0x551d9e(0x137)]())throw CliErrors['validation'](_0x551d9e(0x147),_0x551d9e(0x124));const _0x56330f=sanitizeIssueDescription(_0x5ce225);return{'title':_0xd0c66c,'description':_0x56330f[_0x551d9e(0x12f)],'descriptionSource':'inline','sanitize':_0x56330f};}const _0xc311a9=resolve(process[_0x551d9e(0x10e)](),_0x316aa5),_0x28c467=await readFile(_0xc311a9,_0x551d9e(0x116));if(!_0x28c467[_0x551d9e(0x137)]())throw CliErrors[_0x551d9e(0x10c)](_0x551d9e(0x111)+_0xc311a9,_0x551d9e(0x120));const _0x44df6f=sanitizeIssueDescription(_0x28c467);return{'title':_0xd0c66c,'description':_0x44df6f[_0x551d9e(0x12f)],'descriptionSource':'file','descriptionFilePath':_0xc311a9,'sanitize':_0x44df6f};}
@@ -1 +1 @@
1
- const a82_0x3bc10c=a82_0x3624;function a82_0x3624(_0x234e10,_0x2c700c){_0x234e10=_0x234e10-0xf2;const _0x26093b=a82_0x2609();let _0x362497=_0x26093b[_0x234e10];return _0x362497;}(function(_0x2e4c64,_0x310c01){const _0xed06fb=a82_0x3624,_0x13ca94=_0x2e4c64();while(!![]){try{const _0x2f6f81=parseInt(_0xed06fb(0xf8))/0x1+-parseInt(_0xed06fb(0x105))/0x2+-parseInt(_0xed06fb(0xfd))/0x3+parseInt(_0xed06fb(0xf9))/0x4*(-parseInt(_0xed06fb(0x108))/0x5)+parseInt(_0xed06fb(0x106))/0x6*(-parseInt(_0xed06fb(0xf5))/0x7)+-parseInt(_0xed06fb(0xf2))/0x8*(parseInt(_0xed06fb(0x101))/0x9)+parseInt(_0xed06fb(0xf7))/0xa;if(_0x2f6f81===_0x310c01)break;else _0x13ca94['push'](_0x13ca94['shift']());}catch(_0x489cc2){_0x13ca94['push'](_0x13ca94['shift']());}}}(a82_0x2609,0x75884));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a82_0x3bc10c(0x109),REDACTION_RULES=[{'kind':a82_0x3bc10c(0x10a),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a82_0x3bc10c(0x10e)},{'kind':a82_0x3bc10c(0xfe),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a82_0x3bc10c(0x10f)},{'kind':a82_0x3bc10c(0x103),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a82_0x3bc10c(0xf3),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a82_0x3bc10c(0xf6)},{'kind':a82_0x3bc10c(0x10c),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a82_0x3bc10c(0x100)},{'kind':a82_0x3bc10c(0x107),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a82_0x3bc10c(0xfa)}];export function sanitizeIssueDescription(_0x392de8){const _0x59be2b=a82_0x3bc10c,_0x233881=Buffer[_0x59be2b(0xf4)](_0x392de8,_0x59be2b(0x10b)),_0x5a47d5=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x3a2136=_0x392de8,_0x5e40d2=0x0;const _0x4f84bd=[];if(!_0x5a47d5)for(const _0x274332 of REDACTION_RULES){let _0x4bf710=0x0;_0x3a2136=_0x3a2136[_0x59be2b(0xfc)](_0x274332['pattern'],(_0x5c3ccd,_0x472b28)=>{const _0x221adf=_0x59be2b;_0x4bf710+=0x1;const _0x215740=typeof _0x472b28===_0x221adf(0x102)?_0x472b28:'';return _0x215740+'['+_0x274332[_0x221adf(0x110)]+']';}),_0x4bf710>0x0&&(_0x5e40d2+=_0x4bf710,!_0x4f84bd['includes'](_0x274332[_0x59be2b(0xff)])&&_0x4f84bd[_0x59be2b(0x10d)](_0x274332[_0x59be2b(0xff)]));}let _0xd2899=![];if(Buffer[_0x59be2b(0xf4)](_0x3a2136,_0x59be2b(0x10b))>ISSUE_DESCRIPTION_MAX_BYTES){_0xd2899=!![];const _0x26b586=Buffer[_0x59be2b(0xf4)](TRUNCATION_NOTICE,_0x59be2b(0x10b)),_0x36c4af=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x26b586);_0x3a2136=sliceUtf8Bytes(_0x3a2136,_0x36c4af)+TRUNCATION_NOTICE;}return{'description':_0x3a2136,'originalBytes':_0x233881,'truncated':_0xd2899,'redactionCount':_0x5e40d2,'redactionKinds':_0x4f84bd};}function sliceUtf8Bytes(_0xcee65e,_0x3dd2ab){const _0x2a14fd=a82_0x3bc10c;if(_0x3dd2ab<=0x0)return'';const _0x29b9db=Buffer['from'](_0xcee65e,_0x2a14fd(0x10b));if(_0x29b9db[_0x2a14fd(0xf4)]<=_0x3dd2ab)return _0xcee65e;let _0x227759=_0x3dd2ab;while(_0x227759>0x0){const _0x265a9f=_0x29b9db[_0x227759];if(_0x265a9f===undefined||(_0x265a9f&0xc0)!==0x80)break;_0x227759-=0x1;}return _0x29b9db[_0x2a14fd(0x104)](0x0,_0x227759)[_0x2a14fd(0xfb)](_0x2a14fd(0x10b));}function a82_0x2609(){const _0x3fb3e0=['635cOTcJi','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','cookie','utf8','password','push','REDACTED:cookie','REDACTED:authorization','label','67616wEYSPg','access-key','byteLength','7YfhkRa','REDACTED:access-key','25039810ADxCNI','146935QkWzix','14692LlnqOK','REDACTED:bearer-jwt','toString','replace','222507xcaOtc','authorization','kind','REDACTED:password','315AURWwD','string','private-key','subarray','1748596lgmkAx','2752476bhgKeq','bearer-jwt'];a82_0x2609=function(){return _0x3fb3e0;};return a82_0x2609();}
1
+ const a82_0x22b080=a82_0x21f5;function a82_0x21f5(_0x3cf535,_0x294bf6){_0x3cf535=_0x3cf535-0x1bd;const _0x1716bf=a82_0x1716();let _0x21f5ad=_0x1716bf[_0x3cf535];return _0x21f5ad;}(function(_0x53a3c9,_0x5f1282){const _0x5c5463=a82_0x21f5,_0xd5b76d=_0x53a3c9();while(!![]){try{const _0x5b9cc5=-parseInt(_0x5c5463(0x1bd))/0x1+parseInt(_0x5c5463(0x1c8))/0x2*(-parseInt(_0x5c5463(0x1ca))/0x3)+-parseInt(_0x5c5463(0x1d3))/0x4*(parseInt(_0x5c5463(0x1cc))/0x5)+parseInt(_0x5c5463(0x1c4))/0x6*(-parseInt(_0x5c5463(0x1bf))/0x7)+parseInt(_0x5c5463(0x1d8))/0x8+-parseInt(_0x5c5463(0x1d6))/0x9*(-parseInt(_0x5c5463(0x1c7))/0xa)+-parseInt(_0x5c5463(0x1c5))/0xb*(-parseInt(_0x5c5463(0x1cf))/0xc);if(_0x5b9cc5===_0x5f1282)break;else _0xd5b76d['push'](_0xd5b76d['shift']());}catch(_0x398875){_0xd5b76d['push'](_0xd5b76d['shift']());}}}(a82_0x1716,0x5b1ff));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a82_0x22b080(0x1c2),REDACTION_RULES=[{'kind':a82_0x22b080(0x1ce),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a82_0x22b080(0x1c1)},{'kind':a82_0x22b080(0x1d7),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a82_0x22b080(0x1c0),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a82_0x22b080(0x1d0)},{'kind':a82_0x22b080(0x1c9),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a82_0x22b080(0x1c6)},{'kind':'bearer-jwt','pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a82_0x22b080(0x1cd)}];export function sanitizeIssueDescription(_0x22a398){const _0xcb85f6=a82_0x22b080,_0xdcacbb=Buffer[_0xcb85f6(0x1c3)](_0x22a398,_0xcb85f6(0x1d5)),_0x180742=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0xb9be1=_0x22a398,_0x5cc2fb=0x0;const _0x5ddb7e=[];if(!_0x180742)for(const _0x1cc702 of REDACTION_RULES){let _0x320495=0x0;_0xb9be1=_0xb9be1[_0xcb85f6(0x1d4)](_0x1cc702[_0xcb85f6(0x1cb)],(_0x3f0b0d,_0x171cc8)=>{_0x320495+=0x1;const _0x32e9f5=typeof _0x171cc8==='string'?_0x171cc8:'';return _0x32e9f5+'['+_0x1cc702['label']+']';}),_0x320495>0x0&&(_0x5cc2fb+=_0x320495,!_0x5ddb7e[_0xcb85f6(0x1d1)](_0x1cc702['kind'])&&_0x5ddb7e['push'](_0x1cc702[_0xcb85f6(0x1be)]));}let _0x3f28ea=![];if(Buffer['byteLength'](_0xb9be1,_0xcb85f6(0x1d5))>ISSUE_DESCRIPTION_MAX_BYTES){_0x3f28ea=!![];const _0x32dfb3=Buffer[_0xcb85f6(0x1c3)](TRUNCATION_NOTICE,'utf8'),_0x38ed08=Math[_0xcb85f6(0x1d2)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x32dfb3);_0xb9be1=sliceUtf8Bytes(_0xb9be1,_0x38ed08)+TRUNCATION_NOTICE;}return{'description':_0xb9be1,'originalBytes':_0xdcacbb,'truncated':_0x3f28ea,'redactionCount':_0x5cc2fb,'redactionKinds':_0x5ddb7e};}function sliceUtf8Bytes(_0x1eef5e,_0x1b4e75){const _0x48add4=a82_0x22b080;if(_0x1b4e75<=0x0)return'';const _0x2800de=Buffer['from'](_0x1eef5e,_0x48add4(0x1d5));if(_0x2800de[_0x48add4(0x1c3)]<=_0x1b4e75)return _0x1eef5e;let _0x1e5417=_0x1b4e75;while(_0x1e5417>0x0){const _0x11a9d5=_0x2800de[_0x1e5417];if(_0x11a9d5===undefined||(_0x11a9d5&0xc0)!==0x80)break;_0x1e5417-=0x1;}return _0x2800de['subarray'](0x0,_0x1e5417)['toString'](_0x48add4(0x1d5));}function a82_0x1716(){const _0x1240a1=['REDACTED:password','10aiVsMb','4gLnSwU','password','659289WVrcZI','pattern','140835gEkJSl','REDACTED:bearer-jwt','cookie','24eJcAsL','REDACTED:access-key','includes','max','100NgJMBE','replace','utf8','5899401UKsKKE','authorization','5899600vvWJqw','292736dNrymx','kind','8785uLtNpj','access-key','REDACTED:cookie','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','byteLength','3378TtdUpG','6178205YDLkMz'];a82_0x1716=function(){return _0x1240a1;};return a82_0x1716();}