@lovrabet/rabetbase-cli 2.1.14-beta.0 → 2.1.14-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/README.md +18 -0
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/add.js +1 -1
  21. package/lib/commands/app/discover.js +1 -1
  22. package/lib/commands/app/index.js +1 -1
  23. package/lib/commands/app/list.js +1 -1
  24. package/lib/commands/app/remove.js +1 -1
  25. package/lib/commands/app/shared.js +1 -1
  26. package/lib/commands/app/use.js +1 -1
  27. package/lib/commands/auth/index.js +1 -1
  28. package/lib/commands/bff/create.js +1 -1
  29. package/lib/commands/bff/delete.js +1 -1
  30. package/lib/commands/bff/detail.js +1 -1
  31. package/lib/commands/bff/index.js +1 -1
  32. package/lib/commands/bff/list.js +1 -1
  33. package/lib/commands/bff/pull.js +1 -1
  34. package/lib/commands/bff/push.js +1 -1
  35. package/lib/commands/bff/status.js +1 -1
  36. package/lib/commands/cli-update.js +1 -1
  37. package/lib/commands/codegen/index.js +1 -1
  38. package/lib/commands/codegen/sdk.js +1 -1
  39. package/lib/commands/codegen/sql.js +1 -1
  40. package/lib/commands/common/app-selector.js +1 -1
  41. package/lib/commands/common/flags.js +1 -1
  42. package/lib/commands/common/validate.js +1 -1
  43. package/lib/commands/config/get.js +1 -1
  44. package/lib/commands/config/index.js +1 -1
  45. package/lib/commands/config/list.js +1 -1
  46. package/lib/commands/config/set.js +1 -1
  47. package/lib/commands/config/shared.js +1 -1
  48. package/lib/commands/data/filter.js +1 -1
  49. package/lib/commands/data/getOne.js +1 -1
  50. package/lib/commands/data/index.js +1 -1
  51. package/lib/commands/data/shared.js +1 -1
  52. package/lib/commands/dataset/capability.js +1 -1
  53. package/lib/commands/dataset/delete.js +1 -1
  54. package/lib/commands/dataset/detail.js +1 -1
  55. package/lib/commands/dataset/extend-update.js +1 -0
  56. package/lib/commands/dataset/field-update.js +1 -1
  57. package/lib/commands/dataset/index.js +1 -1
  58. package/lib/commands/dataset/link-create.js +1 -1
  59. package/lib/commands/dataset/link-delete.js +1 -1
  60. package/lib/commands/dataset/link-shared.js +1 -1
  61. package/lib/commands/dataset/link-update.js +1 -1
  62. package/lib/commands/dataset/links.js +1 -1
  63. package/lib/commands/dataset/list.js +1 -1
  64. package/lib/commands/dataset/operations.js +1 -1
  65. package/lib/commands/dataset/rename.js +1 -1
  66. package/lib/commands/db/analyze-cancel.js +1 -1
  67. package/lib/commands/db/analyze-start.js +1 -1
  68. package/lib/commands/db/analyze-status.js +1 -1
  69. package/lib/commands/db/create.js +1 -1
  70. package/lib/commands/db/delete.js +1 -1
  71. package/lib/commands/db/detail.js +1 -1
  72. package/lib/commands/db/diff.js +1 -1
  73. package/lib/commands/db/index.js +1 -1
  74. package/lib/commands/db/list.js +1 -1
  75. package/lib/commands/db/shared.js +1 -1
  76. package/lib/commands/db/tables.js +1 -1
  77. package/lib/commands/db/test.js +1 -1
  78. package/lib/commands/db/update.js +1 -1
  79. package/lib/commands/doctor.js +1 -1
  80. package/lib/commands/init/index.js +1 -1
  81. package/lib/commands/issue/index.js +1 -1
  82. package/lib/commands/issue/nudge.js +1 -1
  83. package/lib/commands/issue/report.js +1 -1
  84. package/lib/commands/issue/shared.js +1 -1
  85. package/lib/commands/logs/index.js +1 -1
  86. package/lib/commands/menu/index.js +1 -1
  87. package/lib/commands/menu/shared/compare-table.js +1 -1
  88. package/lib/commands/menu/shared/index.js +1 -1
  89. package/lib/commands/menu/shared/inquirer.js +1 -1
  90. package/lib/commands/menu/shared/local-pages.js +1 -1
  91. package/lib/commands/menu/shared/logic.js +1 -1
  92. package/lib/commands/menu/shared/service.js +1 -1
  93. package/lib/commands/menu/shared/sync-core.js +1 -1
  94. package/lib/commands/menu/shared/update-core.js +1 -1
  95. package/lib/commands/menu/shared/valid-url.js +1 -1
  96. package/lib/commands/menu/sync.js +1 -1
  97. package/lib/commands/menu/update.js +1 -1
  98. package/lib/commands/page/generate-start.js +1 -1
  99. package/lib/commands/page/generate-status.js +1 -1
  100. package/lib/commands/page/index.js +1 -1
  101. package/lib/commands/page/pull.js +1 -1
  102. package/lib/commands/page/push.js +1 -1
  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/version.js +1 -1
  201. package/lib/utils/with-active-cookie.js +1 -1
  202. package/lib/utils/write-cli-side-channel.js +1 -1
  203. package/package.json +3 -3
@@ -1 +1 @@
1
- const a62_0x3651f=a62_0x5840;(function(_0x20c348,_0x52ad64){const _0x53adf2=a62_0x5840,_0x48743b=_0x20c348();while(!![]){try{const _0x109a44=-parseInt(_0x53adf2(0x1f4))/0x1*(-parseInt(_0x53adf2(0x207))/0x2)+-parseInt(_0x53adf2(0x206))/0x3+parseInt(_0x53adf2(0x1e4))/0x4*(parseInt(_0x53adf2(0x209))/0x5)+parseInt(_0x53adf2(0x1e2))/0x6*(parseInt(_0x53adf2(0x20d))/0x7)+parseInt(_0x53adf2(0x1fc))/0x8+parseInt(_0x53adf2(0x20b))/0x9+parseInt(_0x53adf2(0x1fe))/0xa*(-parseInt(_0x53adf2(0x1e8))/0xb);if(_0x109a44===_0x52ad64)break;else _0x48743b['push'](_0x48743b['shift']());}catch(_0x157864){_0x48743b['push'](_0x48743b['shift']());}}}(a62_0x5ef1,0x39221));function a62_0x5ef1(){const _0x293e9b=['data','/smartapi/dataset/update-driven-data','94605fgaFwC','21422KQsbHc','dataset','849705IDomra','validation','757170HeKFzC','datasetName','1799idjTfe','6738nZmUXS','Expected\x20current\x20dataset\x20display\x20name;\x20mismatch\x20aborts\x20without\x20writing','8QgEVht','--expect-name\x20is\x20required','Dataset\x20detail\x20does\x20not\x20contain\x20dataset\x20id','expectName','2596QsmObq','trim','message','datasetId','expect-name','str','\x20would\x20be\x20renamed\x20to\x20','string','--code\x20is\x20required','No\x20changes\x20for\x20dataset\x20','write','datasetCode','8fCGHkn','name','isArray','--name\x20is\x20required','code','modelId','modelCode','POST','1938120ypTAce','stringify','32840KjGyCl','Rename\x20dataset\x20display\x20name\x20safely','New\x20dataset\x20display\x20name','Renamed\x20dataset\x20','Dry-run:\x20dataset\x20','Expectation\x20mismatch\x20at\x20dataset.name'];a62_0x5ef1=function(){return _0x293e9b;};return a62_0x5ef1();}import{getDatasetDetail,updateDrivenData}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';export async function buildDatasetRenameResult({input:_0x503651,dryRun:_0x432675}){const _0x10de5d=a62_0x5840;validateInput(_0x503651);const _0x49f053=await getDatasetDetail(_0x503651[_0x10de5d(0x1f8)]),_0x12d315=resolveCurrentName(_0x49f053);if(_0x12d315!==_0x503651[_0x10de5d(0x1e7)])throw CliErrors[_0x10de5d(0x20a)](_0x10de5d(0x203),'Expected\x20'+JSON[_0x10de5d(0x1fd)](_0x503651[_0x10de5d(0x1e7)])+',\x20actual\x20'+JSON[_0x10de5d(0x1fd)](_0x12d315));const _0x55eb6a=buildRenameRequest(_0x49f053,_0x503651),_0x41f600=_0x12d315!==_0x503651[_0x10de5d(0x1f5)];let _0x181687;return _0x41f600&&!_0x432675&&(_0x181687=await updateDrivenData(_0x55eb6a)),{'ok':!![],'data':{'protocol':'dataset-rename.v1','dataset':{'id':_0x55eb6a[_0x10de5d(0x1f9)],'code':_0x55eb6a[_0x10de5d(0x1fa)]},'dryRun':_0x432675,'changed':_0x41f600,'before':{'name':_0x12d315},'after':{'name':_0x503651['name']},'request':_0x55eb6a,'submitted':_0x41f600&&!_0x432675,..._0x181687!==undefined?{'version':_0x181687}:{}},'message':_0x41f600?_0x432675?_0x10de5d(0x202)+_0x55eb6a[_0x10de5d(0x1fa)]+_0x10de5d(0x1ee)+_0x503651[_0x10de5d(0x1f5)]:_0x10de5d(0x201)+_0x55eb6a[_0x10de5d(0x1fa)]+'\x20to\x20'+_0x503651['name']:_0x10de5d(0x1f1)+_0x55eb6a[_0x10de5d(0x1fa)]};}export const datasetRename={'service':a62_0x3651f(0x208),'command':'rename','description':a62_0x3651f(0x1ff),'risk':a62_0x3651f(0x1f2),'flags':[CODE_FLAG,{'name':a62_0x3651f(0x1f5),'type':'string','required':!![],'description':a62_0x3651f(0x200)},{'name':a62_0x3651f(0x1ec),'type':a62_0x3651f(0x1ef),'required':!![],'description':a62_0x3651f(0x1e3)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4aa094){validateInput(readDatasetRenameInput(_0x4aa094));},async 'dryRun'(_0x51c57a){const _0x288ab5=a62_0x3651f,_0x32ce51=await buildDatasetRenameResult({'input':readDatasetRenameInput(_0x51c57a),'dryRun':!![]});return{'method':_0x288ab5(0x1fb),'url':_0x288ab5(0x205),'body':_0x32ce51[_0x288ab5(0x204)]['request'],'description':_0x32ce51[_0x288ab5(0x1ea)]};},async 'execute'(_0x438448){return buildDatasetRenameResult({'input':readDatasetRenameInput(_0x438448),'dryRun':![]});}};function readDatasetRenameInput(_0x599277){const _0xae33f9=a62_0x3651f;return{'code':trim(_0x599277[_0xae33f9(0x1ed)](_0xae33f9(0x1f8))),'name':trim(_0x599277[_0xae33f9(0x1ed)](_0xae33f9(0x1f5))),'expectName':trim(_0x599277[_0xae33f9(0x1ed)](_0xae33f9(0x1ec)))};}function a62_0x5840(_0x1d5e4e,_0x13d149){_0x1d5e4e=_0x1d5e4e-0x1e2;const _0x5ef1c7=a62_0x5ef1();let _0x5840ca=_0x5ef1c7[_0x1d5e4e];return _0x5840ca;}function validateInput(_0x218fa5){const _0x50f58d=a62_0x3651f;if(!_0x218fa5[_0x50f58d(0x1f8)])throw CliErrors[_0x50f58d(0x20a)](_0x50f58d(0x1f0));if(!_0x218fa5[_0x50f58d(0x1f5)])throw CliErrors['validation'](_0x50f58d(0x1f7));if(!_0x218fa5[_0x50f58d(0x1e7)])throw CliErrors[_0x50f58d(0x20a)](_0x50f58d(0x1e5));}function resolveCurrentName(_0x25d559){const _0x56d5e2=a62_0x3651f;return String(_0x25d559[_0x56d5e2(0x208)]?.[_0x56d5e2(0x20c)]??_0x25d559[_0x56d5e2(0x1f5)]??'')['trim']();}function buildRenameRequest(_0x13a2cd,_0x3c1bb0){const _0x237851=a62_0x3651f,_0x20f1ff=isPlainObject(_0x13a2cd[_0x237851(0x208)])?_0x13a2cd[_0x237851(0x208)]:{},_0x2cb652=_0x13a2cd[_0x237851(0x1f9)]??_0x13a2cd['id']??_0x20f1ff[_0x237851(0x1eb)];if(_0x2cb652===undefined||_0x2cb652===null||_0x2cb652==='')throw CliErrors[_0x237851(0x20a)](_0x237851(0x1e6));const _0x223fd5=String(_0x13a2cd['modelCode']??_0x13a2cd[_0x237851(0x1f8)]??_0x20f1ff[_0x237851(0x1f3)]??_0x3c1bb0[_0x237851(0x1f8)])[_0x237851(0x1e9)]();if(!_0x223fd5)throw CliErrors[_0x237851(0x20a)]('Dataset\x20detail\x20does\x20not\x20contain\x20dataset\x20code');return{'modelId':_0x2cb652,'modelCode':_0x223fd5,'name':_0x3c1bb0['name'],'dataset':{'datasetId':_0x2cb652,'datasetCode':_0x223fd5,'datasetName':_0x3c1bb0[_0x237851(0x1f5)]}};}function isPlainObject(_0x4a511f){const _0x3fe274=a62_0x3651f;return Boolean(_0x4a511f)&&typeof _0x4a511f==='object'&&!Array[_0x3fe274(0x1f6)](_0x4a511f);}function trim(_0x52bd69){const _0x525bdd=a62_0x3651f;return String(_0x52bd69||'')[_0x525bdd(0x1e9)]();}
1
+ const a63_0x5e2620=a63_0x2261;(function(_0x336b30,_0x47432f){const _0x1472a5=a63_0x2261,_0x53cea1=_0x336b30();while(!![]){try{const _0x44ad5b=parseInt(_0x1472a5(0x20a))/0x1*(parseInt(_0x1472a5(0x1ec))/0x2)+parseInt(_0x1472a5(0x208))/0x3+-parseInt(_0x1472a5(0x1f3))/0x4+-parseInt(_0x1472a5(0x20c))/0x5+-parseInt(_0x1472a5(0x1ea))/0x6+parseInt(_0x1472a5(0x20b))/0x7*(parseInt(_0x1472a5(0x213))/0x8)+parseInt(_0x1472a5(0x200))/0x9*(parseInt(_0x1472a5(0x1f2))/0xa);if(_0x44ad5b===_0x47432f)break;else _0x53cea1['push'](_0x53cea1['shift']());}catch(_0x30daa6){_0x53cea1['push'](_0x53cea1['shift']());}}}(a63_0x1dad,0xe80d1));import{getDatasetDetail,updateDrivenData}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a63_0x1dad(){const _0x5cd7ba=['object','No\x20changes\x20for\x20dataset\x20','data','--code\x20is\x20required','rename','message','Rename\x20dataset\x20display\x20name\x20safely','4382487XWtTBQ','str','Expected\x20current\x20dataset\x20display\x20name;\x20mismatch\x20aborts\x20without\x20writing','string','isArray','Renamed\x20dataset\x20','expect-name','\x20to\x20','2273415ixrInv','request','143147tADYZb','5353306oSqexQ','1499335Pneejm','code','name','datasetName','/smartapi/dataset/update-driven-data','dataset','Dataset\x20detail\x20does\x20not\x20contain\x20dataset\x20id','8SbUoxb','Expected\x20','modelId','\x20would\x20be\x20renamed\x20to\x20','9746490eAwGZa','--name\x20is\x20required','6ejEMJm','--expect-name\x20is\x20required','trim','modelCode','stringify','datasetCode','50TRFZlH','6047824PycMag','New\x20dataset\x20display\x20name','validation','Dry-run:\x20dataset\x20','dataset-rename.v1',',\x20actual\x20'];a63_0x1dad=function(){return _0x5cd7ba;};return a63_0x1dad();}import{CliErrors}from'../../errors.js';export async function buildDatasetRenameResult({input:_0x2f092c,dryRun:_0x25f710}){const _0x2cdda2=a63_0x2261;validateInput(_0x2f092c);const _0x48c64c=await getDatasetDetail(_0x2f092c[_0x2cdda2(0x20d)]),_0x5dddb3=resolveCurrentName(_0x48c64c);if(_0x5dddb3!==_0x2f092c['expectName'])throw CliErrors[_0x2cdda2(0x1f5)]('Expectation\x20mismatch\x20at\x20dataset.name',_0x2cdda2(0x214)+JSON[_0x2cdda2(0x1f0)](_0x2f092c['expectName'])+_0x2cdda2(0x1f8)+JSON['stringify'](_0x5dddb3));const _0x3772ba=buildRenameRequest(_0x48c64c,_0x2f092c),_0xe19578=_0x5dddb3!==_0x2f092c[_0x2cdda2(0x20e)];let _0x242bd4;return _0xe19578&&!_0x25f710&&(_0x242bd4=await updateDrivenData(_0x3772ba)),{'ok':!![],'data':{'protocol':_0x2cdda2(0x1f7),'dataset':{'id':_0x3772ba[_0x2cdda2(0x1e8)],'code':_0x3772ba['modelCode']},'dryRun':_0x25f710,'changed':_0xe19578,'before':{'name':_0x5dddb3},'after':{'name':_0x2f092c[_0x2cdda2(0x20e)]},'request':_0x3772ba,'submitted':_0xe19578&&!_0x25f710,..._0x242bd4!==undefined?{'version':_0x242bd4}:{}},'message':_0xe19578?_0x25f710?_0x2cdda2(0x1f6)+_0x3772ba['modelCode']+_0x2cdda2(0x1e9)+_0x2f092c[_0x2cdda2(0x20e)]:_0x2cdda2(0x205)+_0x3772ba[_0x2cdda2(0x1ef)]+_0x2cdda2(0x207)+_0x2f092c[_0x2cdda2(0x20e)]:_0x2cdda2(0x1fa)+_0x3772ba['modelCode']};}export const datasetRename={'service':a63_0x5e2620(0x211),'command':a63_0x5e2620(0x1fd),'description':a63_0x5e2620(0x1ff),'risk':'write','flags':[CODE_FLAG,{'name':a63_0x5e2620(0x20e),'type':a63_0x5e2620(0x203),'required':!![],'description':a63_0x5e2620(0x1f4)},{'name':a63_0x5e2620(0x206),'type':a63_0x5e2620(0x203),'required':!![],'description':a63_0x5e2620(0x202)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x583cf5){validateInput(readDatasetRenameInput(_0x583cf5));},async 'dryRun'(_0x326f23){const _0x323a05=a63_0x5e2620,_0x597163=await buildDatasetRenameResult({'input':readDatasetRenameInput(_0x326f23),'dryRun':!![]});return{'method':'POST','url':_0x323a05(0x210),'body':_0x597163[_0x323a05(0x1fb)][_0x323a05(0x209)],'description':_0x597163[_0x323a05(0x1fe)]};},async 'execute'(_0x566449){return buildDatasetRenameResult({'input':readDatasetRenameInput(_0x566449),'dryRun':![]});}};function readDatasetRenameInput(_0x1089ab){const _0x564846=a63_0x5e2620;return{'code':trim(_0x1089ab[_0x564846(0x201)](_0x564846(0x20d))),'name':trim(_0x1089ab[_0x564846(0x201)]('name')),'expectName':trim(_0x1089ab[_0x564846(0x201)](_0x564846(0x206)))};}function validateInput(_0x33eae3){const _0x2af994=a63_0x5e2620;if(!_0x33eae3[_0x2af994(0x20d)])throw CliErrors[_0x2af994(0x1f5)](_0x2af994(0x1fc));if(!_0x33eae3[_0x2af994(0x20e)])throw CliErrors[_0x2af994(0x1f5)](_0x2af994(0x1eb));if(!_0x33eae3['expectName'])throw CliErrors['validation'](_0x2af994(0x1ed));}function resolveCurrentName(_0x5f29fb){const _0x1ce170=a63_0x5e2620;return String(_0x5f29fb['dataset']?.[_0x1ce170(0x20f)]??_0x5f29fb['name']??'')[_0x1ce170(0x1ee)]();}function buildRenameRequest(_0x51840d,_0x115796){const _0x306034=a63_0x5e2620,_0x59958f=isPlainObject(_0x51840d[_0x306034(0x211)])?_0x51840d[_0x306034(0x211)]:{},_0x51b6de=_0x51840d['modelId']??_0x51840d['id']??_0x59958f['datasetId'];if(_0x51b6de===undefined||_0x51b6de===null||_0x51b6de==='')throw CliErrors['validation'](_0x306034(0x212));const _0x9acd6d=String(_0x51840d[_0x306034(0x1ef)]??_0x51840d[_0x306034(0x20d)]??_0x59958f[_0x306034(0x1f1)]??_0x115796[_0x306034(0x20d)])['trim']();if(!_0x9acd6d)throw CliErrors[_0x306034(0x1f5)]('Dataset\x20detail\x20does\x20not\x20contain\x20dataset\x20code');return{'modelId':_0x51b6de,'modelCode':_0x9acd6d,'name':_0x115796[_0x306034(0x20e)],'dataset':{'datasetId':_0x51b6de,'datasetCode':_0x9acd6d,'datasetName':_0x115796[_0x306034(0x20e)]}};}function isPlainObject(_0x20d3b4){const _0x294e96=a63_0x5e2620;return Boolean(_0x20d3b4)&&typeof _0x20d3b4===_0x294e96(0x1f9)&&!Array[_0x294e96(0x204)](_0x20d3b4);}function a63_0x2261(_0x5b5a28,_0x3d839f){_0x5b5a28=_0x5b5a28-0x1e8;const _0x1dadaa=a63_0x1dad();let _0x226143=_0x1dadaa[_0x5b5a28];return _0x226143;}function trim(_0x4ea585){const _0x7d7ca1=a63_0x5e2620;return String(_0x4ea585||'')[_0x7d7ca1(0x1ee)]();}
@@ -1 +1 @@
1
- const a63_0x36c0e8=a63_0x302f;(function(_0x2562f1,_0x3a6ad1){const _0x3a75aa=a63_0x302f,_0x4edc25=_0x2562f1();while(!![]){try{const _0x1bceeb=parseInt(_0x3a75aa(0xb2))/0x1+parseInt(_0x3a75aa(0xbd))/0x2+-parseInt(_0x3a75aa(0xbb))/0x3*(-parseInt(_0x3a75aa(0xb0))/0x4)+parseInt(_0x3a75aa(0xaf))/0x5*(parseInt(_0x3a75aa(0xc1))/0x6)+parseInt(_0x3a75aa(0xbe))/0x7+-parseInt(_0x3a75aa(0xb9))/0x8+-parseInt(_0x3a75aa(0xba))/0x9;if(_0x1bceeb===_0x3a6ad1)break;else _0x4edc25['push'](_0x4edc25['shift']());}catch(_0x4d542d){_0x4edc25['push'](_0x4edc25['shift']());}}}(a63_0x5db9,0x54ec7));function a63_0x5db9(){const _0x12bda1=['9862632lfuveg','117KLjjAA','Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)','549190TFrIKH','2789731vHRSnp','Cancel\x20requested\x20for\x20plan\x20','str','12toKNaE','1221485sPTawN','31288nlfqVF','plan','391411qjfQkv','latestAnalysisTraceId','analyze-cancel','write','Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.','validation','3315968kplamg'];a63_0x5db9=function(){return _0x12bda1;};return a63_0x5db9();}function a63_0x302f(_0x46961b,_0x254e27){_0x46961b=_0x46961b-0xaf;const _0x5db9db=a63_0x5db9();let _0x302fbc=_0x5db9db[_0x46961b];return _0x302fbc;}import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeCancel={'service':'db','command':a63_0x36c0e8(0xb4),'description':a63_0x36c0e8(0xb6),'risk':a63_0x36c0e8(0xb5),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a63_0x36c0e8(0xb1),'type':'string','description':a63_0x36c0e8(0xbc)}],async 'execute'(_0x39720f){const _0x34097e=a63_0x36c0e8,_0x4bd68a=_0x39720f['num']('id');let _0x1bfeb8=_0x39720f[_0x34097e(0xc0)]('plan')||undefined;if(!_0x1bfeb8){const _0x5a002e=await getDbLinkInfo(_0x4bd68a);_0x1bfeb8=_0x5a002e[_0x34097e(0xb3)]??undefined;if(!_0x1bfeb8)throw CliErrors[_0x34097e(0xb8)]('No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.',_0x34097e(0xb7));}return await cancelDbAnalysis(_0x1bfeb8),{'ok':!![],'data':{'dbLinkId':_0x4bd68a,'planId':_0x1bfeb8},'message':_0x34097e(0xbf)+_0x1bfeb8};}};
1
+ function a64_0x32d0(){const _0xf901fa=['2181459PVgSOt','3255448imaOjS','plan','5325612pDaJha','36KbAPhx','analyze-cancel','620045hMWTsE','string','Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.','1444560LnlYwX','str','num','latestAnalysisTraceId','671534LkFYIH','4OlyVjY','Cancel\x20requested\x20for\x20plan\x20','No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.','843207drZgRy','Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)'];a64_0x32d0=function(){return _0xf901fa;};return a64_0x32d0();}function a64_0x1d71(_0x40f484,_0x4e4ad2){_0x40f484=_0x40f484-0xb6;const _0x32d0d2=a64_0x32d0();let _0x1d719d=_0x32d0d2[_0x40f484];return _0x1d719d;}const a64_0x1b0db9=a64_0x1d71;(function(_0x276e8b,_0x1f4341){const _0x1b406c=a64_0x1d71,_0x1d7f5e=_0x276e8b();while(!![]){try{const _0x1bfe1c=parseInt(_0x1b406c(0xbb))/0x1+parseInt(_0x1b406c(0xbc))/0x2*(-parseInt(_0x1b406c(0xbf))/0x3)+parseInt(_0x1b406c(0xc2))/0x4+-parseInt(_0x1b406c(0xc7))/0x5+parseInt(_0x1b406c(0xc4))/0x6+-parseInt(_0x1b406c(0xc1))/0x7+parseInt(_0x1b406c(0xb7))/0x8*(-parseInt(_0x1b406c(0xc5))/0x9);if(_0x1bfe1c===_0x1f4341)break;else _0x1d7f5e['push'](_0x1d7f5e['shift']());}catch(_0x36128d){_0x1d7f5e['push'](_0x1d7f5e['shift']());}}}(a64_0x32d0,0x9f686));import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeCancel={'service':'db','command':a64_0x1b0db9(0xc6),'description':'Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','risk':'write','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':'plan','type':a64_0x1b0db9(0xc8),'description':a64_0x1b0db9(0xc0)}],async 'execute'(_0x46f533){const _0x2a60de=a64_0x1b0db9,_0x1851a1=_0x46f533[_0x2a60de(0xb9)]('id');let _0x55ef79=_0x46f533[_0x2a60de(0xb8)](_0x2a60de(0xc3))||undefined;if(!_0x55ef79){const _0x1c5d65=await getDbLinkInfo(_0x1851a1);_0x55ef79=_0x1c5d65[_0x2a60de(0xba)]??undefined;if(!_0x55ef79)throw CliErrors['validation'](_0x2a60de(0xbe),_0x2a60de(0xb6));}return await cancelDbAnalysis(_0x55ef79),{'ok':!![],'data':{'dbLinkId':_0x1851a1,'planId':_0x55ef79},'message':_0x2a60de(0xbd)+_0x55ef79};}};
@@ -1 +1 @@
1
- const a64_0x4c7851=a64_0x30fc;function a64_0x30fc(_0x2d6c31,_0x224f4c){_0x2d6c31=_0x2d6c31-0xba;const _0xbcc682=a64_0xbcc6();let _0x30fcfe=_0xbcc682[_0x2d6c31];return _0x30fcfe;}(function(_0x2c834b,_0x4c38f8){const _0x42c76e=a64_0x30fc,_0x4d7d41=_0x2c834b();while(!![]){try{const _0x2e28e2=-parseInt(_0x42c76e(0xcc))/0x1*(-parseInt(_0x42c76e(0xc0))/0x2)+-parseInt(_0x42c76e(0xc5))/0x3*(-parseInt(_0x42c76e(0xcd))/0x4)+-parseInt(_0x42c76e(0xce))/0x5+parseInt(_0x42c76e(0xc3))/0x6+-parseInt(_0x42c76e(0xcb))/0x7*(parseInt(_0x42c76e(0xbc))/0x8)+parseInt(_0x42c76e(0xca))/0x9+-parseInt(_0x42c76e(0xc8))/0xa*(parseInt(_0x42c76e(0xbd))/0xb);if(_0x2e28e2===_0x4c38f8)break;else _0x4d7d41['push'](_0x4d7d41['shift']());}catch(_0x227967){_0x4d7d41['push'](_0x4d7d41['shift']());}}}(a64_0xbcc6,0x1f034));import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';function a64_0xbcc6(){const _0x5f0817=['filter','30GpqngS','Started\x20analysis\x20for\x20db\x20link\x20','560601Pfxpog','35PqJAiv','2VBHvTK','196172KDBZiw','119805zCgChm','string','str','trim','76224ZTYMmd','164362UxSLYr','num','Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)','27966vhfATk','tables','write','36426egTlzE','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','9MeGbzo','map'];a64_0xbcc6=function(){return _0x5f0817;};return a64_0xbcc6();}export const dbAnalyzeStart={'service':'db','command':'analyze-start','description':a64_0x4c7851(0xc4),'risk':a64_0x4c7851(0xc2),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a64_0x4c7851(0xc1),'type':a64_0x4c7851(0xcf),'description':a64_0x4c7851(0xbf)}],async 'execute'(_0x1ae0df){const _0x8989ea=a64_0x4c7851,_0x43f1a8=_0x1ae0df[_0x8989ea(0xbe)]('id'),_0x2ec96a=_0x1ae0df[_0x8989ea(0xba)](_0x8989ea(0xc1)),_0x3bb383=_0x2ec96a?_0x2ec96a['split'](',')[_0x8989ea(0xc6)](_0x1f0a03=>_0x1f0a03[_0x8989ea(0xbb)]())[_0x8989ea(0xc7)](Boolean):undefined,_0x240361=await startDbAnalysis(_0x43f1a8,_0x3bb383),_0x16bc71=buildDbPageLinks(_0x1ae0df['appCode'],_0x43f1a8);return{'ok':!![],'data':{'dbLinkId':_0x43f1a8,'planId':_0x240361,'tableNames':_0x3bb383??[],..._0x16bc71?{'links':_0x16bc71}:{}},'message':_0x8989ea(0xc9)+_0x43f1a8};}};
1
+ function a65_0x33cc(_0x3a9d8e,_0x2be146){_0x3a9d8e=_0x3a9d8e-0x1cb;const _0x4d69ae=a65_0x4d69();let _0x33cc69=_0x4d69ae[_0x3a9d8e];return _0x33cc69;}const a65_0x485e5f=a65_0x33cc;(function(_0x2845cc,_0x1fe0d4){const _0x4f0664=a65_0x33cc,_0x1bee5a=_0x2845cc();while(!![]){try{const _0x25510a=-parseInt(_0x4f0664(0x1d6))/0x1+parseInt(_0x4f0664(0x1d0))/0x2+parseInt(_0x4f0664(0x1cd))/0x3+-parseInt(_0x4f0664(0x1d9))/0x4+-parseInt(_0x4f0664(0x1d4))/0x5*(-parseInt(_0x4f0664(0x1d5))/0x6)+-parseInt(_0x4f0664(0x1da))/0x7+parseInt(_0x4f0664(0x1ce))/0x8;if(_0x25510a===_0x1fe0d4)break;else _0x1bee5a['push'](_0x1bee5a['shift']());}catch(_0x140cef){_0x1bee5a['push'](_0x1bee5a['shift']());}}}(a65_0x4d69,0x215a1));import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';function a65_0x4d69(){const _0x218840=['num','appCode','Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)','685KQWHQR','2448SHvLtB','244594KskLBb','tables','str','741308hsOmQM','1518545xkpjPl','filter','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','599526dRfbxI','2191840Odryhr','Started\x20analysis\x20for\x20db\x20link\x20','507494IdaQqP'];a65_0x4d69=function(){return _0x218840;};return a65_0x4d69();}export const dbAnalyzeStart={'service':'db','command':'analyze-start','description':a65_0x485e5f(0x1cc),'risk':'write','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a65_0x485e5f(0x1d7),'type':'string','description':a65_0x485e5f(0x1d3)}],async 'execute'(_0x2ecd07){const _0x1c9b72=a65_0x485e5f,_0x32f1a1=_0x2ecd07[_0x1c9b72(0x1d1)]('id'),_0x5b53da=_0x2ecd07[_0x1c9b72(0x1d8)](_0x1c9b72(0x1d7)),_0x4e13e7=_0x5b53da?_0x5b53da['split'](',')['map'](_0x18c16d=>_0x18c16d['trim']())[_0x1c9b72(0x1cb)](Boolean):undefined,_0x29e33e=await startDbAnalysis(_0x32f1a1,_0x4e13e7),_0x1261c5=buildDbPageLinks(_0x2ecd07[_0x1c9b72(0x1d2)],_0x32f1a1);return{'ok':!![],'data':{'dbLinkId':_0x32f1a1,'planId':_0x29e33e,'tableNames':_0x4e13e7??[],..._0x1261c5?{'links':_0x1261c5}:{}},'message':_0x1c9b72(0x1cf)+_0x32f1a1};}};
@@ -1 +1 @@
1
- function a65_0x2707(_0x86868e,_0x2d263e){_0x86868e=_0x86868e-0x17b;const _0x128112=a65_0x1281();let _0x2707a1=_0x128112[_0x86868e];return _0x2707a1;}const a65_0x3a6b18=a65_0x2707;function a65_0x1281(){const _0xf7f47e=['appCode','string','623vpUQSu','363890ANafXG','542822UQsBhV','28GwIveR','Analysis\x20status\x20for\x20','47175UwIBFO','num','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','plan','10997865FdaUAR','2022576RmCDqe','str','analyze-status','962fESctU','423576GKYvkg','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','read'];a65_0x1281=function(){return _0xf7f47e;};return a65_0x1281();}(function(_0x1d1b72,_0x3f272f){const _0x78202f=a65_0x2707,_0x390213=_0x1d1b72();while(!![]){try{const _0xaa7b00=-parseInt(_0x78202f(0x17f))/0x1*(parseInt(_0x78202f(0x18c))/0x2)+parseInt(_0x78202f(0x184))/0x3+-parseInt(_0x78202f(0x182))/0x4*(parseInt(_0x78202f(0x180))/0x5)+parseInt(_0x78202f(0x18d))/0x6+parseInt(_0x78202f(0x181))/0x7+-parseInt(_0x78202f(0x189))/0x8+parseInt(_0x78202f(0x188))/0x9;if(_0xaa7b00===_0x3f272f)break;else _0x390213['push'](_0x390213['shift']());}catch(_0x246527){_0x390213['push'](_0x390213['shift']());}}}(a65_0x1281,0x4f151));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':a65_0x3a6b18(0x18b),'description':a65_0x3a6b18(0x186),'risk':a65_0x3a6b18(0x17c),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a65_0x3a6b18(0x187),'type':a65_0x3a6b18(0x17e),'required':!![],'description':a65_0x3a6b18(0x17b)}],async 'execute'(_0x534c27){const _0x31da7f=a65_0x3a6b18,_0x190054=_0x534c27[_0x31da7f(0x185)]('id'),_0x351e87=_0x534c27[_0x31da7f(0x18a)](_0x31da7f(0x187)),_0x3b55bc=await getDbAnalysisStatus(_0x351e87),_0xf7142b=buildDbPageLinks(_0x534c27[_0x31da7f(0x17d)],_0x190054);return{'ok':!![],'data':{'dbLinkId':_0x190054,'planId':_0x351e87,'status':_0x3b55bc,..._0xf7142b?{'links':_0xf7142b}:{}},'message':_0x31da7f(0x183)+_0x351e87};}};
1
+ const a66_0x33d51e=a66_0x3cb8;(function(_0x46637e,_0x314941){const _0x2f8579=a66_0x3cb8,_0x504a6c=_0x46637e();while(!![]){try{const _0x5d49f6=parseInt(_0x2f8579(0x132))/0x1*(-parseInt(_0x2f8579(0x133))/0x2)+-parseInt(_0x2f8579(0x129))/0x3+parseInt(_0x2f8579(0x136))/0x4*(-parseInt(_0x2f8579(0x12f))/0x5)+parseInt(_0x2f8579(0x137))/0x6*(parseInt(_0x2f8579(0x126))/0x7)+-parseInt(_0x2f8579(0x128))/0x8*(parseInt(_0x2f8579(0x127))/0x9)+-parseInt(_0x2f8579(0x131))/0xa+parseInt(_0x2f8579(0x12d))/0xb;if(_0x5d49f6===_0x314941)break;else _0x504a6c['push'](_0x504a6c['shift']());}catch(_0x4808da){_0x504a6c['push'](_0x504a6c['shift']());}}}(a66_0x5615,0xa5404));import{getDbAnalysisStatus}from'../../core/api-client.js';function a66_0x5615(){const _0x348387=['Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','41410578WxCiRo','analyze-status','417165xYOwpn','num','5335680lQQHob','1DOmbXb','1713518vyWueH','string','Analysis\x20status\x20for\x20','52MmSxPa','47274dFKSag','140TIxTgU','100899JKPRCE','24VrqpUf','2210163FgFqbP','str'];a66_0x5615=function(){return _0x348387;};return a66_0x5615();}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';function a66_0x3cb8(_0x2769a6,_0x2b2686){_0x2769a6=_0x2769a6-0x126;const _0x5615d2=a66_0x5615();let _0x3cb882=_0x5615d2[_0x2769a6];return _0x3cb882;}export const dbAnalyzeStatus={'service':'db','command':a66_0x33d51e(0x12e),'description':a66_0x33d51e(0x12b),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':'plan','type':a66_0x33d51e(0x134),'required':!![],'description':a66_0x33d51e(0x12c)}],async 'execute'(_0x9d56d2){const _0x4ed24a=a66_0x33d51e,_0xb2cbe7=_0x9d56d2[_0x4ed24a(0x130)]('id'),_0x239e32=_0x9d56d2[_0x4ed24a(0x12a)]('plan'),_0x23ea38=await getDbAnalysisStatus(_0x239e32),_0x1f5068=buildDbPageLinks(_0x9d56d2['appCode'],_0xb2cbe7);return{'ok':!![],'data':{'dbLinkId':_0xb2cbe7,'planId':_0x239e32,'status':_0x23ea38,..._0x1f5068?{'links':_0x1f5068}:{}},'message':_0x4ed24a(0x135)+_0x239e32};}};
@@ -1 +1 @@
1
- const a66_0x3d8756=a66_0x337e;(function(_0x1efec2,_0x5cdff1){const _0x43d9bb=a66_0x337e,_0x445279=_0x1efec2();while(!![]){try{const _0x2411d7=-parseInt(_0x43d9bb(0x83))/0x1*(parseInt(_0x43d9bb(0x6c))/0x2)+parseInt(_0x43d9bb(0x71))/0x3*(parseInt(_0x43d9bb(0x6a))/0x4)+parseInt(_0x43d9bb(0x93))/0x5+parseInt(_0x43d9bb(0x73))/0x6+-parseInt(_0x43d9bb(0x6d))/0x7+parseInt(_0x43d9bb(0x80))/0x8+parseInt(_0x43d9bb(0x7a))/0x9*(-parseInt(_0x43d9bb(0x67))/0xa);if(_0x2411d7===_0x5cdff1)break;else _0x445279['push'](_0x445279['shift']());}catch(_0x2d6147){_0x445279['push'](_0x445279['shift']());}}}(a66_0x4785,0x8f1e2));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a66_0x4785(){const _0x30c92e=['message','3924370gWuFuz','dbname','\x20and\x20started\x20analysis','trim','11693010CpUOYa','dbtype','Created\x20db\x20link\x20','8ghxssD','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','2ppztcY','734706fdgArr','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','string','Host\x20and\x20port:\x20host:port','1331391vgWpQr','dbversion','6442014CssAUw','join','/smartapi/dblink/create','str','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','create','18ANewlq','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','After\x20create,\x20start\x20schema\x20analysis','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','dbdesc','password','3535168XVUvMx','databasePage','bool','158263LwjnSR','autostart','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','write','dburl','appCode','boolean','8.0','Database\x20username','[redacted]','Extra\x20JDBC-style\x20connection\x20parameters\x20string','No\x20follow-up\x20analysis','dbparam','username'];a66_0x4785=function(){return _0x30c92e;};return a66_0x4785();}import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';function a66_0x337e(_0x2ba6d1,_0x5a500c){_0x2ba6d1=_0x2ba6d1-0x66;const _0x4785f3=a66_0x4785();let _0x337ed4=_0x4785f3[_0x2ba6d1];return _0x337ed4;}import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':a66_0x3d8756(0x79),'description':a66_0x3d8756(0x86),'risk':a66_0x3d8756(0x87),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a66_0x3d8756(0x94),'type':a66_0x3d8756(0x6f),'required':!![],'description':a66_0x3d8756(0x85)},DB_TYPE_FLAG,{'name':a66_0x3d8756(0x72),'type':'string','description':a66_0x3d8756(0x7d),'default':a66_0x3d8756(0x8b)},{'name':a66_0x3d8756(0x88),'type':a66_0x3d8756(0x6f),'required':!![],'description':a66_0x3d8756(0x70)},{'name':a66_0x3d8756(0x91),'type':a66_0x3d8756(0x6f),'required':!![],'description':a66_0x3d8756(0x8c)},{'name':a66_0x3d8756(0x7f),'type':'string','required':!![],'description':'Database\x20password'},{'name':a66_0x3d8756(0x90),'type':a66_0x3d8756(0x6f),'description':a66_0x3d8756(0x8e)},{'name':'dbdesc','type':a66_0x3d8756(0x6f),'description':'Human-readable\x20description'},{'name':a66_0x3d8756(0x84),'type':a66_0x3d8756(0x8a),'description':a66_0x3d8756(0x7c),'default':![]}],async 'validate'(_0xec1911){const _0x1bedd7=a66_0x3d8756,_0x3de583=_0xec1911[_0x1bedd7(0x76)](_0x1bedd7(0x88))[_0x1bedd7(0x66)]();if(!validateDbUrl(_0x3de583))throw CliErrors['validation'](_0x1bedd7(0x7b)+_0x3de583+'\x22',_0x1bedd7(0x6e));},async 'dryRun'(_0xb7e9ed){const _0x4d59f6=a66_0x3d8756,_0x1c0257={'appCode':_0xb7e9ed['appCode'],'dbName':_0xb7e9ed[_0x4d59f6(0x76)]('dbname'),'dbType':_0xb7e9ed[_0x4d59f6(0x76)]('dbtype'),'dbVersion':_0xb7e9ed[_0x4d59f6(0x76)](_0x4d59f6(0x72))||'8.0','dbUrl':_0xb7e9ed['str']('dburl')[_0x4d59f6(0x66)](),'username':_0xb7e9ed[_0x4d59f6(0x76)]('username'),'password':_0x4d59f6(0x8d),..._0xb7e9ed[_0x4d59f6(0x76)](_0x4d59f6(0x90))?{'dbParam':_0xb7e9ed[_0x4d59f6(0x76)]('dbparam')}:{},..._0xb7e9ed[_0x4d59f6(0x76)](_0x4d59f6(0x7e))?{'dbDesc':_0xb7e9ed[_0x4d59f6(0x76)]('dbdesc')}:{}};return{'method':'POST','url':_0x4d59f6(0x75),'body':_0x1c0257,'description':['Create\x20dblink',_0xb7e9ed[_0x4d59f6(0x82)]('autostart')?_0x4d59f6(0x6b):_0x4d59f6(0x8f)][_0x4d59f6(0x74)]('\x0a')};},async 'execute'(_0x419206){const _0x23e368=a66_0x3d8756,_0x2a5caf={'appCode':_0x419206['appCode'],'dbName':_0x419206[_0x23e368(0x76)](_0x23e368(0x94)),'dbType':_0x419206[_0x23e368(0x76)](_0x23e368(0x68)),'dbVersion':_0x419206['str']('dbversion')||_0x23e368(0x8b),'dbUrl':_0x419206[_0x23e368(0x76)](_0x23e368(0x88))[_0x23e368(0x66)](),'username':_0x419206[_0x23e368(0x76)](_0x23e368(0x91)),'password':_0x419206[_0x23e368(0x76)]('password'),..._0x419206[_0x23e368(0x76)](_0x23e368(0x90))?{'dbParam':_0x419206[_0x23e368(0x76)](_0x23e368(0x90))}:{},..._0x419206[_0x23e368(0x76)]('dbdesc')?{'dbDesc':_0x419206[_0x23e368(0x76)](_0x23e368(0x7e))}:{}},{id:_0x9a33b6,entity:_0x46694b}=normalizeEntityWithIdResponse(await createDbLink(_0x2a5caf));if(!_0x9a33b6)return{'ok':![],'message':_0x23e368(0x77),'data':sanitizeDbLinkForOutput(_0x46694b)};let _0x32d5d5,_0x1b3030;if(_0x419206['bool'](_0x23e368(0x84)))try{_0x32d5d5=await startDbAnalysis(_0x9a33b6);}catch(_0x2db78d){_0x1b3030=_0x2db78d instanceof Error?_0x2db78d[_0x23e368(0x92)]:String(_0x2db78d);}const _0x3a73a2=buildDbPageLinks(_0x419206[_0x23e368(0x89)],_0x9a33b6),_0x21aca8={'connection':sanitizeDbLinkForOutput(_0x46694b),..._0x3a73a2?{'links':{'databasePage':_0x3a73a2[_0x23e368(0x81)]}}:{},..._0x32d5d5?{'analysisPlanId':_0x32d5d5}:{},..._0x1b3030?{'analysisStartWarning':_0x1b3030}:{}};let _0x3120db;return _0x419206[_0x23e368(0x82)](_0x23e368(0x84))?_0x1b3030?_0x3120db=_0x23e368(0x69)+_0x9a33b6+_0x23e368(0x78):_0x3120db=_0x23e368(0x69)+_0x9a33b6+_0x23e368(0x95):_0x3120db=_0x23e368(0x69)+_0x9a33b6,{'ok':!![],'data':_0x21aca8,'message':_0x3120db};}};
1
+ const a67_0x825e3e=a67_0x2f85;(function(_0x48155b,_0x39fb01){const _0xf542ae=a67_0x2f85,_0x26d553=_0x48155b();while(!![]){try{const _0x3535b4=-parseInt(_0xf542ae(0x135))/0x1*(parseInt(_0xf542ae(0x12a))/0x2)+parseInt(_0xf542ae(0x14e))/0x3+parseInt(_0xf542ae(0x137))/0x4+-parseInt(_0xf542ae(0x128))/0x5+-parseInt(_0xf542ae(0x141))/0x6*(parseInt(_0xf542ae(0x133))/0x7)+parseInt(_0xf542ae(0x127))/0x8+-parseInt(_0xf542ae(0x143))/0x9*(parseInt(_0xf542ae(0x12e))/0xa);if(_0x3535b4===_0x39fb01)break;else _0x26d553['push'](_0x26d553['shift']());}catch(_0x5348ac){_0x26d553['push'](_0x26d553['shift']());}}}(a67_0x5b22,0xdc839));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';function a67_0x2f85(_0x12c761,_0x391244){_0x12c761=_0x12c761-0x127;const _0x5b2271=a67_0x5b22();let _0x2f85e5=_0x5b2271[_0x12c761];return _0x2f85e5;}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a67_0x5b22(){const _0x17fd88=['dbparam','username','Human-readable\x20description','7bVxqjn','bool','59tRhIeM','Database\x20password','3539808ZUbnDi','8.0','dbversion','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','string','dbname','No\x20follow-up\x20analysis','Database\x20username','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','join','5642514DYUyUD','databasePage','108XojRfz','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','Create\x20dblink','/smartapi/dblink/create','Host\x20and\x20port:\x20host:port','Created\x20db\x20link\x20','appCode','[redacted]','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','validation','After\x20create,\x20start\x20schema\x20analysis','4331190KWZhGI','boolean','Extra\x20JDBC-style\x20connection\x20parameters\x20string','dbdesc','password','str','POST','trim',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','message','14307960vMtmrN','1582800QTfznR','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','11974NfDEny','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','dburl','autostart','1336450fQfqbF','dbtype'];a67_0x5b22=function(){return _0x17fd88;};return a67_0x5b22();}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':'create','description':a67_0x825e3e(0x13a),'risk':'write','flags':[APPCODE_FLAG_OPTIONAL,{'name':a67_0x825e3e(0x13c),'type':a67_0x825e3e(0x13b),'required':!![],'description':a67_0x825e3e(0x129)},DB_TYPE_FLAG,{'name':a67_0x825e3e(0x139),'type':a67_0x825e3e(0x13b),'description':a67_0x825e3e(0x13f),'default':a67_0x825e3e(0x138)},{'name':a67_0x825e3e(0x12c),'type':a67_0x825e3e(0x13b),'required':!![],'description':a67_0x825e3e(0x147)},{'name':a67_0x825e3e(0x131),'type':'string','required':!![],'description':a67_0x825e3e(0x13e)},{'name':'password','type':a67_0x825e3e(0x13b),'required':!![],'description':a67_0x825e3e(0x136)},{'name':a67_0x825e3e(0x130),'type':a67_0x825e3e(0x13b),'description':a67_0x825e3e(0x150)},{'name':a67_0x825e3e(0x151),'type':a67_0x825e3e(0x13b),'description':a67_0x825e3e(0x132)},{'name':a67_0x825e3e(0x12d),'type':a67_0x825e3e(0x14f),'description':a67_0x825e3e(0x14d),'default':![]}],async 'validate'(_0x173daf){const _0xd9d46c=a67_0x825e3e,_0x3489d2=_0x173daf[_0xd9d46c(0x153)](_0xd9d46c(0x12c))[_0xd9d46c(0x155)]();if(!validateDbUrl(_0x3489d2))throw CliErrors[_0xd9d46c(0x14c)]('Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22'+_0x3489d2+'\x22',_0xd9d46c(0x144));},async 'dryRun'(_0x2be887){const _0x1ed641=a67_0x825e3e,_0x5398a3={'appCode':_0x2be887[_0x1ed641(0x149)],'dbName':_0x2be887[_0x1ed641(0x153)](_0x1ed641(0x13c)),'dbType':_0x2be887[_0x1ed641(0x153)](_0x1ed641(0x12f)),'dbVersion':_0x2be887['str'](_0x1ed641(0x139))||_0x1ed641(0x138),'dbUrl':_0x2be887[_0x1ed641(0x153)](_0x1ed641(0x12c))[_0x1ed641(0x155)](),'username':_0x2be887[_0x1ed641(0x153)]('username'),'password':_0x1ed641(0x14a),..._0x2be887[_0x1ed641(0x153)](_0x1ed641(0x130))?{'dbParam':_0x2be887['str'](_0x1ed641(0x130))}:{},..._0x2be887[_0x1ed641(0x153)](_0x1ed641(0x151))?{'dbDesc':_0x2be887[_0x1ed641(0x153)](_0x1ed641(0x151))}:{}};return{'method':_0x1ed641(0x154),'url':_0x1ed641(0x146),'body':_0x5398a3,'description':[_0x1ed641(0x145),_0x2be887[_0x1ed641(0x134)](_0x1ed641(0x12d))?_0x1ed641(0x14b):_0x1ed641(0x13d)][_0x1ed641(0x140)]('\x0a')};},async 'execute'(_0x5de547){const _0x14dad6=a67_0x825e3e,_0x43b1b7={'appCode':_0x5de547[_0x14dad6(0x149)],'dbName':_0x5de547['str'](_0x14dad6(0x13c)),'dbType':_0x5de547[_0x14dad6(0x153)](_0x14dad6(0x12f)),'dbVersion':_0x5de547['str'](_0x14dad6(0x139))||_0x14dad6(0x138),'dbUrl':_0x5de547[_0x14dad6(0x153)](_0x14dad6(0x12c))[_0x14dad6(0x155)](),'username':_0x5de547[_0x14dad6(0x153)](_0x14dad6(0x131)),'password':_0x5de547[_0x14dad6(0x153)](_0x14dad6(0x152)),..._0x5de547[_0x14dad6(0x153)]('dbparam')?{'dbParam':_0x5de547[_0x14dad6(0x153)](_0x14dad6(0x130))}:{},..._0x5de547[_0x14dad6(0x153)](_0x14dad6(0x151))?{'dbDesc':_0x5de547[_0x14dad6(0x153)](_0x14dad6(0x151))}:{}},{id:_0x20dbfd,entity:_0x347bf7}=normalizeEntityWithIdResponse(await createDbLink(_0x43b1b7));if(!_0x20dbfd)return{'ok':![],'message':_0x14dad6(0x12b),'data':sanitizeDbLinkForOutput(_0x347bf7)};let _0x615473,_0x2d51a4;if(_0x5de547[_0x14dad6(0x134)](_0x14dad6(0x12d)))try{_0x615473=await startDbAnalysis(_0x20dbfd);}catch(_0x30a096){_0x2d51a4=_0x30a096 instanceof Error?_0x30a096[_0x14dad6(0x157)]:String(_0x30a096);}const _0x3e06cc=buildDbPageLinks(_0x5de547[_0x14dad6(0x149)],_0x20dbfd),_0x5793ad={'connection':sanitizeDbLinkForOutput(_0x347bf7),..._0x3e06cc?{'links':{'databasePage':_0x3e06cc[_0x14dad6(0x142)]}}:{},..._0x615473?{'analysisPlanId':_0x615473}:{},..._0x2d51a4?{'analysisStartWarning':_0x2d51a4}:{}};let _0x40851b;return _0x5de547[_0x14dad6(0x134)](_0x14dad6(0x12d))?_0x2d51a4?_0x40851b=_0x14dad6(0x148)+_0x20dbfd+_0x14dad6(0x156):_0x40851b=_0x14dad6(0x148)+_0x20dbfd+'\x20and\x20started\x20analysis':_0x40851b=_0x14dad6(0x148)+_0x20dbfd,{'ok':!![],'data':_0x5793ad,'message':_0x40851b};}};
@@ -1 +1 @@
1
- const a67_0x3210fd=a67_0x5a6a;function a67_0x5a6a(_0x410c5f,_0x961f31){_0x410c5f=_0x410c5f-0x15f;const _0x35ac0d=a67_0x35ac();let _0x5a6a4b=_0x35ac0d[_0x410c5f];return _0x5a6a4b;}(function(_0x1f526c,_0x5e64e6){const _0x3b2c78=a67_0x5a6a,_0x4c1355=_0x1f526c();while(!![]){try{const _0x411f53=-parseInt(_0x3b2c78(0x15f))/0x1+-parseInt(_0x3b2c78(0x163))/0x2+-parseInt(_0x3b2c78(0x168))/0x3*(parseInt(_0x3b2c78(0x16b))/0x4)+-parseInt(_0x3b2c78(0x160))/0x5+-parseInt(_0x3b2c78(0x16c))/0x6*(parseInt(_0x3b2c78(0x165))/0x7)+-parseInt(_0x3b2c78(0x161))/0x8*(-parseInt(_0x3b2c78(0x167))/0x9)+parseInt(_0x3b2c78(0x16a))/0xa;if(_0x411f53===_0x5e64e6)break;else _0x4c1355['push'](_0x4c1355['shift']());}catch(_0x21adaf){_0x4c1355['push'](_0x4c1355['shift']());}}}(a67_0x35ac,0x52bbe));import{deleteDbLink}from'../../core/api-client.js';function a67_0x35ac(){const _0x1320c3=['9PtNyMD','num','12979050bbRegh','781988GylZks','534XvVdhh','242599MlvPRP','1055915KEjjNc','2286112kbLHxC','Deleted\x20db\x20link\x20','159450QjQXWA','delete','32291kJQZgp','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','18KvzXYO'];a67_0x35ac=function(){return _0x1320c3;};return a67_0x35ac();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDelete={'service':'db','command':a67_0x3210fd(0x164),'description':a67_0x3210fd(0x166),'risk':'high-risk-write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x30f159){const _0x517896=a67_0x3210fd,_0x5edfa3=_0x30f159[_0x517896(0x169)]('id');return await deleteDbLink(_0x5edfa3),{'ok':!![],'data':{'id':_0x5edfa3,'deleted':!![]},'message':_0x517896(0x162)+_0x5edfa3};}};
1
+ const a68_0x513a50=a68_0x5e00;function a68_0x5e00(_0x3df872,_0x368eef){_0x3df872=_0x3df872-0x1ae;const _0x2b1758=a68_0x2b17();let _0x5e00d1=_0x2b1758[_0x3df872];return _0x5e00d1;}(function(_0x46089f,_0x1c7c55){const _0x573233=a68_0x5e00,_0x4ea265=_0x46089f();while(!![]){try{const _0x64e6c8=-parseInt(_0x573233(0x1ae))/0x1+parseInt(_0x573233(0x1b3))/0x2+parseInt(_0x573233(0x1b2))/0x3+-parseInt(_0x573233(0x1b6))/0x4*(parseInt(_0x573233(0x1b0))/0x5)+-parseInt(_0x573233(0x1b7))/0x6+parseInt(_0x573233(0x1b1))/0x7*(parseInt(_0x573233(0x1af))/0x8)+-parseInt(_0x573233(0x1b8))/0x9;if(_0x64e6c8===_0x1c7c55)break;else _0x4ea265['push'](_0x4ea265['shift']());}catch(_0x216c4d){_0x4ea265['push'](_0x4ea265['shift']());}}}(a68_0x2b17,0x747de));import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a68_0x2b17(){const _0x145e2b=['1443837KyJaxt','828784FscrMt','Deleted\x20db\x20link\x20','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','57548zUxACd','572334CCbwzH','1289601tOjkZM','159611ZYEYay','248icfMSS','85XhUyRb','50659oHEPNc'];a68_0x2b17=function(){return _0x145e2b;};return a68_0x2b17();}export const dbDelete={'service':'db','command':'delete','description':a68_0x513a50(0x1b5),'risk':'high-risk-write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x27c221){const _0x19be15=a68_0x513a50,_0x5e0139=_0x27c221['num']('id');return await deleteDbLink(_0x5e0139),{'ok':!![],'data':{'id':_0x5e0139,'deleted':!![]},'message':_0x19be15(0x1b4)+_0x5e0139};}};
@@ -1 +1 @@
1
- function a68_0x131d(){const _0x2bd644=['209528QOJqYT','dbName','detail','read','8RTZTlr','db\x20link\x20','20orTElc','7EJNYXI','7578pSMPDE','4598680uXiRmZ','num','6852146bXvFXS','49573018cTgimV','5fndVtn','3673509ErNSaF','1807860RiCcrw'];a68_0x131d=function(){return _0x2bd644;};return a68_0x131d();}const a68_0x4d8a56=a68_0x2abc;function a68_0x2abc(_0x1f6e34,_0x29fb63){_0x1f6e34=_0x1f6e34-0xdb;const _0x131d20=a68_0x131d();let _0x2abce3=_0x131d20[_0x1f6e34];return _0x2abce3;}(function(_0x61cad8,_0x2b8758){const _0x20bd4d=a68_0x2abc,_0x7ff178=_0x61cad8();while(!![]){try{const _0x26217d=parseInt(_0x20bd4d(0xe7))/0x1*(-parseInt(_0x20bd4d(0xe0))/0x2)+-parseInt(_0x20bd4d(0xde))/0x3+-parseInt(_0x20bd4d(0xe9))/0x4*(parseInt(_0x20bd4d(0xdd))/0x5)+parseInt(_0x20bd4d(0xdf))/0x6+parseInt(_0x20bd4d(0xdb))/0x7*(-parseInt(_0x20bd4d(0xe4))/0x8)+-parseInt(_0x20bd4d(0xe8))/0x9*(-parseInt(_0x20bd4d(0xe6))/0xa)+parseInt(_0x20bd4d(0xdc))/0xb;if(_0x26217d===_0x2b8758)break;else _0x7ff178['push'](_0x7ff178['shift']());}catch(_0x4d9dae){_0x7ff178['push'](_0x7ff178['shift']());}}}(a68_0x131d,0xb0921));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':a68_0x4d8a56(0xe2),'description':'Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','risk':a68_0x4d8a56(0xe3),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x6bd005){const _0x1c6d6a=a68_0x4d8a56,_0x5f21e7=_0x6bd005[_0x1c6d6a(0xea)]('id'),_0x4d5597=await getDbLinkInfo(_0x5f21e7);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x4d5597),'message':_0x1c6d6a(0xe5)+_0x5f21e7+':\x20'+_0x4d5597[_0x1c6d6a(0xe1)]};}};
1
+ const a69_0x2f9088=a69_0x3d11;(function(_0x1dce8a,_0x185916){const _0x3c053d=a69_0x3d11,_0x44775b=_0x1dce8a();while(!![]){try{const _0x557bee=-parseInt(_0x3c053d(0x1cf))/0x1*(parseInt(_0x3c053d(0x1cb))/0x2)+parseInt(_0x3c053d(0x1c8))/0x3+-parseInt(_0x3c053d(0x1cd))/0x4*(-parseInt(_0x3c053d(0x1d5))/0x5)+-parseInt(_0x3c053d(0x1d1))/0x6*(-parseInt(_0x3c053d(0x1d2))/0x7)+parseInt(_0x3c053d(0x1d3))/0x8*(-parseInt(_0x3c053d(0x1c4))/0x9)+-parseInt(_0x3c053d(0x1cc))/0xa*(-parseInt(_0x3c053d(0x1c3))/0xb)+parseInt(_0x3c053d(0x1c6))/0xc*(-parseInt(_0x3c053d(0x1c5))/0xd);if(_0x557bee===_0x185916)break;else _0x44775b['push'](_0x44775b['shift']());}catch(_0x3a85dc){_0x44775b['push'](_0x44775b['shift']());}}}(a69_0x19aa,0x91bce));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a69_0x19aa(){const _0x293477=['2633676TtNZWe','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','num','100634rHcoXQ','30tnggbJ','3872528xtVkFw','read','10KtXzcx','detail','6qKUgAO','6744010pEKpgd','24wGruHv','db\x20link\x20','5sdCyVD','1372041ZzgAXk','1015083EffzWO','26XhDznW','10471044RYWSxX','dbName'];a69_0x19aa=function(){return _0x293477;};return a69_0x19aa();}import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a69_0x3d11(_0x4dbb02,_0x2f1c63){_0x4dbb02=_0x4dbb02-0x1c3;const _0x19aa6c=a69_0x19aa();let _0x3d11aa=_0x19aa6c[_0x4dbb02];return _0x3d11aa;}export const dbDetail={'service':'db','command':a69_0x2f9088(0x1d0),'description':a69_0x2f9088(0x1c9),'risk':a69_0x2f9088(0x1ce),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x433cb4){const _0x4f9e62=a69_0x2f9088,_0x147c21=_0x433cb4[_0x4f9e62(0x1ca)]('id'),_0x3f5131=await getDbLinkInfo(_0x147c21);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x3f5131),'message':_0x4f9e62(0x1d4)+_0x147c21+':\x20'+_0x3f5131[_0x4f9e62(0x1c7)]};}};
@@ -1 +1 @@
1
- const a69_0x3ebcc4=a69_0x24b9;(function(_0x5dc2b2,_0x2bfa4){const _0x181373=a69_0x24b9,_0x1b3381=_0x5dc2b2();while(!![]){try{const _0x3b62e9=parseInt(_0x181373(0x109))/0x1*(parseInt(_0x181373(0xfa))/0x2)+-parseInt(_0x181373(0xfd))/0x3+parseInt(_0x181373(0x10d))/0x4+-parseInt(_0x181373(0x103))/0x5+parseInt(_0x181373(0x108))/0x6*(-parseInt(_0x181373(0x102))/0x7)+-parseInt(_0x181373(0x106))/0x8+parseInt(_0x181373(0x105))/0x9*(parseInt(_0x181373(0x10a))/0xa);if(_0x3b62e9===_0x2bfa4)break;else _0x1b3381['push'](_0x1b3381['shift']());}catch(_0x5a7385){_0x1b3381['push'](_0x1b3381['shift']());}}}(a69_0x9424,0xb0092));function a69_0x24b9(_0x230eed,_0x32106a){_0x230eed=_0x230eed-0xf9;const _0x94240d=a69_0x9424();let _0x24b963=_0x94240d[_0x230eed];return _0x24b963;}function a69_0x9424(){const _0x2836b1=['1055139AqOJZf','page','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','Page\x20size','string','7462OBTgFT','3478900jKuiDD','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','21213mxWUCb','11448056dlTSKW','number','1494mRUgdd','75041LsSXZb','9890BMhDXH','read','str','2434464quMHos','table','diff','pagesize','length','num','14EuXKXS','Page\x20index\x20(1-based)','\x20row(s),\x20total\x20'];a69_0x9424=function(){return _0x2836b1;};return a69_0x9424();}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':a69_0x3ebcc4(0x10f),'description':a69_0x3ebcc4(0xff),'risk':a69_0x3ebcc4(0x10b),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':a69_0x3ebcc4(0x101),'description':a69_0x3ebcc4(0x104)},{'name':a69_0x3ebcc4(0xfe),'type':a69_0x3ebcc4(0x107),'description':a69_0x3ebcc4(0xfb),'default':0x1},{'name':a69_0x3ebcc4(0x110),'type':a69_0x3ebcc4(0x107),'description':a69_0x3ebcc4(0x100),'default':0x14}],async 'execute'(_0x33b807){const _0x107b19=a69_0x3ebcc4,_0x34ad14=_0x33b807['num']('id'),_0x4b5713=_0x33b807[_0x107b19(0xf9)](_0x107b19(0xfe),0x1)||0x1,_0x3bafa6=_0x33b807['num'](_0x107b19(0x110),0x14)||0x14,_0x20f522=_0x33b807[_0x107b19(0x10c)](_0x107b19(0x10e))||undefined,{totalCount:_0x7bf877,tableList:_0x1bc6b2}=await getDbTableDiff(_0x33b807['appCode'],_0x34ad14,{'pageIndex':_0x4b5713,'pageSize':_0x3bafa6,'tableName':_0x20f522});return{'ok':!![],'data':{'dbLinkId':_0x34ad14,'page':_0x4b5713,'pageSize':_0x3bafa6,'totalCount':_0x7bf877,'tableList':_0x1bc6b2},'message':_0x1bc6b2[_0x107b19(0x111)]+_0x107b19(0xfc)+_0x7bf877+'\x20(db\x20link\x20'+_0x34ad14+')'};}};
1
+ function a70_0x426a(_0x4a0df4,_0x71416d){_0x4a0df4=_0x4a0df4-0xc4;const _0x2240d7=a70_0x2240();let _0x426a93=_0x2240d7[_0x4a0df4];return _0x426a93;}const a70_0x1b0fe5=a70_0x426a;function a70_0x2240(){const _0x268058=['30ZCtlyF','read','length','3727715iVzgdA','Page\x20index\x20(1-based)','12TkvXkK','10mLfZpt','table','100764OCQIpU','20abfKhP','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','524916UcktGb','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','appCode','\x20(db\x20link\x20','2407405EZDmoq','\x20row(s),\x20total\x20','num','135iotKaf','234128RCQRNj','pagesize','9775777QhBCZn','number','page','1249366dGHFUE','4XGTssb','diff'];a70_0x2240=function(){return _0x268058;};return a70_0x2240();}(function(_0x1b5fc3,_0x536d64){const _0x533d81=a70_0x426a,_0x5628fa=_0x1b5fc3();while(!![]){try{const _0x425370=parseInt(_0x533d81(0xd9))/0x1+parseInt(_0x533d81(0xca))/0x2*(parseInt(_0x533d81(0xc9))/0x3)+parseInt(_0x533d81(0xda))/0x4*(-parseInt(_0x533d81(0xc4))/0x5)+parseInt(_0x533d81(0xdc))/0x6*(parseInt(_0x533d81(0xcc))/0x7)+parseInt(_0x533d81(0xd4))/0x8*(parseInt(_0x533d81(0xd3))/0x9)+parseInt(_0x533d81(0xc7))/0xa*(-parseInt(_0x533d81(0xd6))/0xb)+-parseInt(_0x533d81(0xc6))/0xc*(-parseInt(_0x533d81(0xd0))/0xd);if(_0x425370===_0x536d64)break;else _0x5628fa['push'](_0x5628fa['shift']());}catch(_0x3286cd){_0x5628fa['push'](_0x5628fa['shift']());}}}(a70_0x2240,0xe7f5f));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDiff={'service':'db','command':a70_0x1b0fe5(0xdb),'description':a70_0x1b0fe5(0xcd),'risk':a70_0x1b0fe5(0xdd),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':'string','description':a70_0x1b0fe5(0xcb)},{'name':'page','type':a70_0x1b0fe5(0xd7),'description':a70_0x1b0fe5(0xc5),'default':0x1},{'name':a70_0x1b0fe5(0xd5),'type':a70_0x1b0fe5(0xd7),'description':'Page\x20size','default':0x14}],async 'execute'(_0x2bc342){const _0x27c282=a70_0x1b0fe5,_0x4c4090=_0x2bc342['num']('id'),_0x13982d=_0x2bc342[_0x27c282(0xd2)](_0x27c282(0xd8),0x1)||0x1,_0xc32e1b=_0x2bc342[_0x27c282(0xd2)](_0x27c282(0xd5),0x14)||0x14,_0x57f75a=_0x2bc342['str'](_0x27c282(0xc8))||undefined,{totalCount:_0x5346c7,tableList:_0x1d1083}=await getDbTableDiff(_0x2bc342[_0x27c282(0xce)],_0x4c4090,{'pageIndex':_0x13982d,'pageSize':_0xc32e1b,'tableName':_0x57f75a});return{'ok':!![],'data':{'dbLinkId':_0x4c4090,'page':_0x13982d,'pageSize':_0xc32e1b,'totalCount':_0x5346c7,'tableList':_0x1d1083},'message':_0x1d1083[_0x27c282(0xde)]+_0x27c282(0xd1)+_0x5346c7+_0x27c282(0xcf)+_0x4c4090+')'};}};
@@ -1 +1 @@
1
- (function(_0x7eb61b,_0x2ac120){const _0x3aab83=a70_0x1aa9,_0xe3ef6c=_0x7eb61b();while(!![]){try{const _0x1b6f92=-parseInt(_0x3aab83(0xec))/0x1+parseInt(_0x3aab83(0xe9))/0x2*(parseInt(_0x3aab83(0xeb))/0x3)+parseInt(_0x3aab83(0xf1))/0x4+parseInt(_0x3aab83(0xf2))/0x5*(-parseInt(_0x3aab83(0xed))/0x6)+parseInt(_0x3aab83(0xf0))/0x7*(-parseInt(_0x3aab83(0xef))/0x8)+parseInt(_0x3aab83(0xe7))/0x9*(parseInt(_0x3aab83(0xee))/0xa)+parseInt(_0x3aab83(0xe8))/0xb*(-parseInt(_0x3aab83(0xea))/0xc);if(_0x1b6f92===_0x2ac120)break;else _0xe3ef6c['push'](_0xe3ef6c['shift']());}catch(_0x1c1d95){_0xe3ef6c['push'](_0xe3ef6c['shift']());}}}(a70_0x5669,0x8f9c3));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 a70_0x1aa9(_0x500521,_0x3af983){_0x500521=_0x500521-0xe7;const _0x566924=a70_0x5669();let _0x1aa977=_0x566924[_0x500521];return _0x1aa977;}function a70_0x5669(){const _0x20a942=['186594NooVVH','230XFIIJS','1936104lWGxFE','7wQBftU','2580812JQFudW','10OEfmoT','252999tJnOuE','11JnxtJk','2EORkYq','7908948aDBoYi','920577coVYav','47098BKVGfj'];a70_0x5669=function(){return _0x20a942;};return a70_0x5669();}import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
1
+ (function(_0x240904,_0x521a7b){const _0x180957=a71_0x16c7,_0x43fa1a=_0x240904();while(!![]){try{const _0x244df0=parseInt(_0x180957(0x154))/0x1*(parseInt(_0x180957(0x156))/0x2)+-parseInt(_0x180957(0x150))/0x3*(-parseInt(_0x180957(0x155))/0x4)+-parseInt(_0x180957(0x151))/0x5+-parseInt(_0x180957(0x157))/0x6+-parseInt(_0x180957(0x153))/0x7+parseInt(_0x180957(0x14f))/0x8+parseInt(_0x180957(0x152))/0x9;if(_0x244df0===_0x521a7b)break;else _0x43fa1a['push'](_0x43fa1a['shift']());}catch(_0x51ccaf){_0x43fa1a['push'](_0x43fa1a['shift']());}}}(a71_0x2f43,0x247f4));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';function a71_0x16c7(_0xa53864,_0x6bde6e){_0xa53864=_0xa53864-0x14f;const _0x2f4347=a71_0x2f43();let _0x16c718=_0x2f4347[_0xa53864];return _0x16c718;}import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';function a71_0x2f43(){const _0x298f79=['2764CKjRjb','1780590nvwMNf','2217576zwDWGu','218958uoeaHs','364420AygHYx','1164420hgFBQB','311248UkwylJ','8sdJUuB','8ETzFuD'];a71_0x2f43=function(){return _0x298f79;};return a71_0x2f43();}import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
@@ -1 +1 @@
1
- function a71_0x1912(){const _0x42ff5d=['297248KQnkEb','11066XfpaOR','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','page','Page\x20size','570744fcAHdv','num','pagesize','2933532dpLeoo','230IkgekQ','appCode','8LZJURf','number','66012vnhAAG','13569904LLdwVl','\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\x20index\x20(1-based)','4175715esQAEZ','9942cFjcTY','length','8hOpQaj','Found\x20','3983IswcaN'];a71_0x1912=function(){return _0x42ff5d;};return a71_0x1912();}const a71_0x35db56=a71_0x1a01;(function(_0x276538,_0x33a11a){const _0x4e8ad9=a71_0x1a01,_0x424f54=_0x276538();while(!![]){try{const _0x579223=parseInt(_0x4e8ad9(0xed))/0x1*(-parseInt(_0x4e8ad9(0xfa))/0x2)+-parseInt(_0x4e8ad9(0xea))/0x3+parseInt(_0x4e8ad9(0xf7))/0x4*(parseInt(_0x4e8ad9(0xf4))/0x5)+parseInt(_0x4e8ad9(0xf5))/0x6*(-parseInt(_0x4e8ad9(0xf9))/0x7)+-parseInt(_0x4e8ad9(0xf0))/0x8+parseInt(_0x4e8ad9(0xff))/0x9*(-parseInt(_0x4e8ad9(0xeb))/0xa)+parseInt(_0x4e8ad9(0xfb))/0xb*(parseInt(_0x4e8ad9(0xef))/0xc);if(_0x579223===_0x33a11a)break;else _0x424f54['push'](_0x424f54['shift']());}catch(_0x1acf31){_0x424f54['push'](_0x424f54['shift']());}}}(a71_0x1912,0xe5729));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';function a71_0x1a01(_0x14821f,_0x55da86){_0x14821f=_0x14821f-0xea;const _0x1912ee=a71_0x1912();let _0x1a016a=_0x1912ee[_0x14821f];return _0x1a016a;}export const dbList={'service':'db','command':'list','description':a71_0x35db56(0xf2),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':a71_0x35db56(0xee),'description':a71_0x35db56(0xf3),'default':0x1},{'name':a71_0x35db56(0x101),'type':a71_0x35db56(0xee),'description':a71_0x35db56(0xfe),'default':0x64}],async 'execute'(_0x5df9a5){const _0x5d357d=a71_0x35db56,_0x5128a8=_0x5df9a5[_0x5d357d(0x100)](_0x5d357d(0xfd),0x1)||0x1,_0x41b427=_0x5df9a5[_0x5d357d(0x100)](_0x5d357d(0x101),0x64)||0x64,{items:_0x11eb19,paging:_0x5b3ca7}=await listDbLinks(_0x5df9a5[_0x5d357d(0xec)],{'currentPage':_0x5128a8,'pageSize':_0x41b427}),_0x1c3c21=sanitizeDbLinkList(_0x11eb19),_0x41ede4=_0x5b3ca7?_0x5b3ca7:{'currentPage':_0x5128a8,'pageSize':_0x41b427,'rowsOnPage':_0x1c3c21[_0x5d357d(0xf6)],'totalCount':null,'note':_0x5d357d(0xfc)};return{'ok':!![],'data':{'connections':_0x1c3c21,'paging':_0x41ede4},'message':_0x5d357d(0xf8)+_0x1c3c21[_0x5d357d(0xf6)]+_0x5d357d(0xf1)};}};
1
+ function a72_0x1ba8(_0x587dfe,_0x4f3360){_0x587dfe=_0x587dfe-0xdb;const _0x5a2b44=a72_0x5a2b();let _0x1ba83b=_0x5a2b44[_0x587dfe];return _0x1ba83b;}const a72_0x4796dd=a72_0x1ba8;(function(_0x46641f,_0x13a071){const _0xfac8b5=a72_0x1ba8,_0x187382=_0x46641f();while(!![]){try{const _0x4129db=parseInt(_0xfac8b5(0xe5))/0x1+parseInt(_0xfac8b5(0xe1))/0x2*(parseInt(_0xfac8b5(0xec))/0x3)+-parseInt(_0xfac8b5(0xdc))/0x4*(-parseInt(_0xfac8b5(0xe2))/0x5)+parseInt(_0xfac8b5(0xe4))/0x6+-parseInt(_0xfac8b5(0xe3))/0x7*(parseInt(_0xfac8b5(0xf1))/0x8)+-parseInt(_0xfac8b5(0xdd))/0x9+-parseInt(_0xfac8b5(0xe7))/0xa*(parseInt(_0xfac8b5(0xdb))/0xb);if(_0x4129db===_0x13a071)break;else _0x187382['push'](_0x187382['shift']());}catch(_0x4d345a){_0x187382['push'](_0x187382['shift']());}}}(a72_0x5a2b,0x45aea));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a72_0x4796dd(0xef),'description':a72_0x4796dd(0xe8),'risk':a72_0x4796dd(0xf0),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':a72_0x4796dd(0xee),'description':a72_0x4796dd(0xeb),'default':0x1},{'name':a72_0x4796dd(0xe0),'type':a72_0x4796dd(0xee),'description':a72_0x4796dd(0xde),'default':0x64}],async 'execute'(_0xa0a3a5){const _0x286dd9=a72_0x4796dd,_0x1b8cea=_0xa0a3a5[_0x286dd9(0xe6)]('page',0x1)||0x1,_0x2cd4f4=_0xa0a3a5['num']('pagesize',0x64)||0x64,{items:_0xccee0e,paging:_0x25c3dd}=await listDbLinks(_0xa0a3a5[_0x286dd9(0xe9)],{'currentPage':_0x1b8cea,'pageSize':_0x2cd4f4}),_0x538c49=sanitizeDbLinkList(_0xccee0e),_0x592244=_0x25c3dd?_0x25c3dd:{'currentPage':_0x1b8cea,'pageSize':_0x2cd4f4,'rowsOnPage':_0x538c49[_0x286dd9(0xea)],'totalCount':null,'note':_0x286dd9(0xdf)};return{'ok':!![],'data':{'connections':_0x538c49,'paging':_0x592244},'message':_0x286dd9(0xed)+_0x538c49['length']+'\x20database\x20connection(s)'};}};function a72_0x5a2b(){const _0x276045=['read','3606712wvilqH','1353891zOAnWD','8vmXSCl','1550817wiUdDb','Page\x20size','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','pagesize','2850jzuops','1382515Nidmyw','7qMWFBw','3189936gDBBDs','167138DGmmTL','num','50tYXIxv','List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','appCode','length','Page\x20index\x20(1-based)','573RYclhV','Found\x20','number','list'];a72_0x5a2b=function(){return _0x276045;};return a72_0x5a2b();}
@@ -1 +1 @@
1
- function a72_0x2d8f(){const _0xade94f=['4272pGphsd','dbpassword','accesskey','trim','credential','/data/er?dbId=','1872575BAmEbv','9884EWrmcB','9994938GOqCja','/data/database','11aNqyvy','247273ANboEz','8ZvuHLr','secret','2312769ZdPSzb','keys','https://app.lovrabet.com/app/','isFinite','[redacted]','13181170uSBedi','connectionstring','2jQVZxJ','test','9256572TYDBNC','map','number','toLowerCase','jdbcurl','includes'];a72_0x2d8f=function(){return _0xade94f;};return a72_0x2d8f();}(function(_0x21b10b,_0x36fb29){const _0x418e05=a72_0x5731,_0xe4898f=_0x21b10b();while(!![]){try{const _0x267508=parseInt(_0x418e05(0xb0))/0x1+parseInt(_0x418e05(0xba))/0x2*(parseInt(_0x418e05(0xb3))/0x3)+-parseInt(_0x418e05(0xb1))/0x4*(parseInt(_0x418e05(0xab))/0x5)+parseInt(_0x418e05(0xad))/0x6+-parseInt(_0x418e05(0xac))/0x7*(parseInt(_0x418e05(0xa5))/0x8)+parseInt(_0x418e05(0x9f))/0x9+parseInt(_0x418e05(0xb8))/0xa*(-parseInt(_0x418e05(0xaf))/0xb);if(_0x267508===_0x36fb29)break;else _0xe4898f['push'](_0xe4898f['shift']());}catch(_0x3cd182){_0xe4898f['push'](_0xe4898f['shift']());}}}(a72_0x2d8f,0xd99ec));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0x201b9c){const _0x419b2a=a72_0x5731,_0x3b2e4c=_0x201b9c[_0x419b2a(0xa2)]();if(_0x3b2e4c==='password'||_0x3b2e4c==='passwd'||_0x3b2e4c===_0x419b2a(0xa6))return!![];if(_0x3b2e4c[_0x419b2a(0xa4)](_0x419b2a(0xb2))||_0x3b2e4c[_0x419b2a(0xa4)]('token')||_0x3b2e4c[_0x419b2a(0xa4)](_0x419b2a(0xa9)))return!![];if(_0x3b2e4c[_0x419b2a(0xa4)]('privatekey')||_0x3b2e4c[_0x419b2a(0xa4)](_0x419b2a(0xa7)))return!![];if(_0x3b2e4c==='authorization'||_0x3b2e4c===_0x419b2a(0xb9)||_0x3b2e4c===_0x419b2a(0xa3))return!![];return![];}function a72_0x5731(_0x43541d,_0x115103){_0x43541d=_0x43541d-0x9e;const _0x2d8f34=a72_0x2d8f();let _0x57315a=_0x2d8f34[_0x43541d];return _0x57315a;}export function sanitizeDbLinkForOutput(_0x2e5b38){const _0x2e38c9=a72_0x5731,_0x93afa1={..._0x2e5b38};for(const _0x349415 of Object[_0x2e38c9(0xb4)](_0x93afa1)){if(!shouldRedactKey(_0x349415))continue;const _0x7ceb44=_0x93afa1[_0x349415];_0x7ceb44!=null&&String(_0x7ceb44)['length']>0x0&&(_0x93afa1[_0x349415]=_0x2e38c9(0xb7));}return _0x93afa1;}export function sanitizeDbLinkList(_0x1d2725){const _0x1a2ecb=a72_0x5731;return _0x1d2725[_0x1a2ecb(0xa0)](_0x10c341=>sanitizeDbLinkForOutput(_0x10c341));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x3761a0){const _0x123cd5=a72_0x5731,_0x5780fd=_0x3761a0[_0x123cd5(0xa8)]();if(!_0x5780fd)return![];return DB_URL_PATTERN[_0x123cd5(0x9e)](_0x5780fd);}export function buildDbPageLinks(_0x217e4f,_0x2401b4){const _0x2ea293=a72_0x5731,_0x1635ba=_0x217e4f?.[_0x2ea293(0xa8)]();if(!_0x1635ba)return undefined;const _0x3517bb=typeof _0x2401b4===_0x2ea293(0xa1)?String(_0x2401b4):String(_0x2401b4??'')[_0x2ea293(0xa8)]();if(!_0x3517bb)return undefined;const _0x2969de=Number(_0x3517bb);if(!Number[_0x2ea293(0xb6)](_0x2969de)||_0x2969de<=0x0)return undefined;const _0x40fa43=isDaily(normalizeEnv(getEnv()))?'https://daily.lovrabet.com/web-app/app/'+encodeURIComponent(_0x1635ba):_0x2ea293(0xb5)+encodeURIComponent(_0x1635ba),_0x28b895=encodeURIComponent(String(_0x2969de));return{'databasePage':_0x40fa43+_0x2ea293(0xae),'erPage':_0x40fa43+_0x2ea293(0xaa)+_0x28b895};}
1
+ (function(_0x2e080d,_0x2b96f3){const _0x12ecd0=a73_0x40aa,_0x20d12e=_0x2e080d();while(!![]){try{const _0x574e1a=-parseInt(_0x12ecd0(0x138))/0x1*(parseInt(_0x12ecd0(0x133))/0x2)+-parseInt(_0x12ecd0(0x12a))/0x3+parseInt(_0x12ecd0(0x143))/0x4*(-parseInt(_0x12ecd0(0x12d))/0x5)+parseInt(_0x12ecd0(0x12e))/0x6+parseInt(_0x12ecd0(0x13f))/0x7+-parseInt(_0x12ecd0(0x13c))/0x8*(-parseInt(_0x12ecd0(0x12c))/0x9)+-parseInt(_0x12ecd0(0x12f))/0xa*(-parseInt(_0x12ecd0(0x135))/0xb);if(_0x574e1a===_0x2b96f3)break;else _0x20d12e['push'](_0x20d12e['shift']());}catch(_0x45451d){_0x20d12e['push'](_0x20d12e['shift']());}}}(a73_0xdb27,0x7fae5));function a73_0x40aa(_0x4612b2,_0x1ecf74){_0x4612b2=_0x4612b2-0x12a;const _0xdb2781=a73_0xdb27();let _0x40aa4a=_0xdb2781[_0x4612b2];return _0x40aa4a;}import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0x3e43db){const _0x2a59c8=a73_0x40aa,_0x1c7029=_0x3e43db['toLowerCase']();if(_0x1c7029===_0x2a59c8(0x131)||_0x1c7029===_0x2a59c8(0x139)||_0x1c7029==='dbpassword')return!![];if(_0x1c7029[_0x2a59c8(0x13e)]('secret')||_0x1c7029[_0x2a59c8(0x13e)]('token')||_0x1c7029[_0x2a59c8(0x13e)](_0x2a59c8(0x140)))return!![];if(_0x1c7029[_0x2a59c8(0x13e)](_0x2a59c8(0x136))||_0x1c7029[_0x2a59c8(0x13e)](_0x2a59c8(0x132)))return!![];if(_0x1c7029==='authorization'||_0x1c7029===_0x2a59c8(0x130)||_0x1c7029===_0x2a59c8(0x12b))return!![];return![];}function a73_0xdb27(){const _0x539c0a=['map','length','48RcqiTW','test','includes','6414296tbRcgs','credential','/data/er?dbId=','https://app.lovrabet.com/app/','1260880JpEeWs','1703286oTYBef','jdbcurl','800289RTwEqK','5mSxceH','3410190FgviYR','530mruKOK','connectionstring','password','accesskey','592646XZCbDz','number','57431vDyVab','privatekey','trim','3NGxqPW','passwd'];a73_0xdb27=function(){return _0x539c0a;};return a73_0xdb27();}export function sanitizeDbLinkForOutput(_0x1b6011){const _0x34f766=a73_0x40aa,_0xcfe60a={..._0x1b6011};for(const _0x162134 of Object['keys'](_0xcfe60a)){if(!shouldRedactKey(_0x162134))continue;const _0x3e9255=_0xcfe60a[_0x162134];_0x3e9255!=null&&String(_0x3e9255)[_0x34f766(0x13b)]>0x0&&(_0xcfe60a[_0x162134]='[redacted]');}return _0xcfe60a;}export function sanitizeDbLinkList(_0x2e2e1b){const _0x391a31=a73_0x40aa;return _0x2e2e1b[_0x391a31(0x13a)](_0x95aeb5=>sanitizeDbLinkForOutput(_0x95aeb5));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x202aa4){const _0x1b3fa0=a73_0x40aa,_0x1ecb4e=_0x202aa4[_0x1b3fa0(0x137)]();if(!_0x1ecb4e)return![];return DB_URL_PATTERN[_0x1b3fa0(0x13d)](_0x1ecb4e);}export function buildDbPageLinks(_0x11ab36,_0x293aa2){const _0x187cc6=a73_0x40aa,_0x3c44eb=_0x11ab36?.[_0x187cc6(0x137)]();if(!_0x3c44eb)return undefined;const _0x7de1d8=typeof _0x293aa2===_0x187cc6(0x134)?String(_0x293aa2):String(_0x293aa2??'')['trim']();if(!_0x7de1d8)return undefined;const _0x5071d1=Number(_0x7de1d8);if(!Number['isFinite'](_0x5071d1)||_0x5071d1<=0x0)return undefined;const _0x3b9449=isDaily(normalizeEnv(getEnv()))?'https://daily.lovrabet.com/web-app/app/'+encodeURIComponent(_0x3c44eb):_0x187cc6(0x142)+encodeURIComponent(_0x3c44eb),_0x4032a8=encodeURIComponent(String(_0x5071d1));return{'databasePage':_0x3b9449+'/data/database','erPage':_0x3b9449+_0x187cc6(0x141)+_0x4032a8};}
@@ -1 +1 @@
1
- const a73_0x3f6704=a73_0x498b;function a73_0x4efc(){const _0x10d922=['\x20table(s)\x20on\x20db\x20link\x20','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','1597026solnkm','511875VlMmaB','208145eAKiJc','1009284wcCsxF','10ucaXwN','40776TgPbcg','read','1750680PcKLpr','776964ZdvTWS','135XDZaLZ','appCode','length'];a73_0x4efc=function(){return _0x10d922;};return a73_0x4efc();}function a73_0x498b(_0x40727b,_0xda4e99){_0x40727b=_0x40727b-0xd0;const _0x4efc50=a73_0x4efc();let _0x498bc3=_0x4efc50[_0x40727b];return _0x498bc3;}(function(_0x2a526e,_0x163167){const _0x236787=a73_0x498b,_0x4e86f0=_0x2a526e();while(!![]){try{const _0x324510=parseInt(_0x236787(0xd2))/0x1+parseInt(_0x236787(0xd8))/0x2+-parseInt(_0x236787(0xd3))/0x3+-parseInt(_0x236787(0xd7))/0x4+-parseInt(_0x236787(0xd4))/0x5*(-parseInt(_0x236787(0xd0))/0x6)+parseInt(_0x236787(0xd1))/0x7+-parseInt(_0x236787(0xd5))/0x8*(parseInt(_0x236787(0xd9))/0x9);if(_0x324510===_0x163167)break;else _0x4e86f0['push'](_0x4e86f0['shift']());}catch(_0x7f5859){_0x4e86f0['push'](_0x4e86f0['shift']());}}}(a73_0x4efc,0x55d35));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':a73_0x3f6704(0xdd),'risk':a73_0x3f6704(0xd6),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x13e4a0){const _0x4a9d40=a73_0x3f6704,_0x2bcdf6=_0x13e4a0['num']('id'),_0x4f8b5c=await getDbAllTableList(_0x13e4a0[_0x4a9d40(0xda)],_0x2bcdf6);return{'ok':!![],'data':{'dbLinkId':_0x2bcdf6,'total':_0x4f8b5c[_0x4a9d40(0xdb)],'tables':_0x4f8b5c},'message':_0x4f8b5c[_0x4a9d40(0xdb)]+_0x4a9d40(0xdc)+_0x2bcdf6};}};
1
+ function a74_0x1db8(){const _0x5b6da8=['appCode','num','241570vsBMGw','length','32zSSIOR','155862GQmQio','\x20table(s)\x20on\x20db\x20link\x20','tables','2275656WwBFWA','674436mPmjZa','1183oQvIIA','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','923256nsYVVu','13356APEKWQ','1148016ORWwpN'];a74_0x1db8=function(){return _0x5b6da8;};return a74_0x1db8();}const a74_0x2e8478=a74_0x403f;(function(_0x4ea598,_0x29ddb9){const _0x4c8507=a74_0x403f,_0x4f3b87=_0x4ea598();while(!![]){try{const _0x1e6c2b=-parseInt(_0x4c8507(0xe1))/0x1+parseInt(_0x4c8507(0xd6))/0x2+parseInt(_0x4c8507(0xdb))/0x3+parseInt(_0x4c8507(0xd5))/0x4+-parseInt(_0x4c8507(0xde))/0x5+-parseInt(_0x4c8507(0xda))/0x6*(parseInt(_0x4c8507(0xd7))/0x7)+-parseInt(_0x4c8507(0xe0))/0x8*(parseInt(_0x4c8507(0xd9))/0x9);if(_0x1e6c2b===_0x29ddb9)break;else _0x4f3b87['push'](_0x4f3b87['shift']());}catch(_0x48c6d2){_0x4f3b87['push'](_0x4f3b87['shift']());}}}(a74_0x1db8,0x48c72));import{getDbAllTableList}from'../../core/api-client.js';function a74_0x403f(_0x44a597,_0x34ee82){_0x44a597=_0x44a597-0xd4;const _0x1db8a5=a74_0x1db8();let _0x403f7c=_0x1db8a5[_0x44a597];return _0x403f7c;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a74_0x2e8478(0xd4),'description':a74_0x2e8478(0xd8),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5f284e){const _0x30466b=a74_0x2e8478,_0x23628c=_0x5f284e[_0x30466b(0xdd)]('id'),_0x51a390=await getDbAllTableList(_0x5f284e[_0x30466b(0xdc)],_0x23628c);return{'ok':!![],'data':{'dbLinkId':_0x23628c,'total':_0x51a390[_0x30466b(0xdf)],'tables':_0x51a390},'message':_0x51a390['length']+_0x30466b(0xe2)+_0x23628c};}};
@@ -1 +1 @@
1
- const a74_0x13fff1=a74_0x3fb4;function a74_0x481a(){const _0x371955=['code','success','Connection\x20check\x20finished\x20for\x20db\x20link\x20','441739SbmVUS','length','read','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','3383832Pmrpzq','6747129kCcOxJ','2706642azBXpv','\x20(see\x20data.result)','keys','748086QMcUPB','object','155yWMGGG','message','633072yCkTRn','66764QtUmqB','Connection\x20OK\x20for\x20db\x20link\x20','7jnuNxD','slice'];a74_0x481a=function(){return _0x371955;};return a74_0x481a();}function a74_0x3fb4(_0x321e2a,_0x50aa1e){_0x321e2a=_0x321e2a-0x18f;const _0x481a65=a74_0x481a();let _0x3fb480=_0x481a65[_0x321e2a];return _0x3fb480;}(function(_0x1f7179,_0x5c1d35){const _0x10b36a=a74_0x3fb4,_0x425000=_0x1f7179();while(!![]){try{const _0x105f2a=parseInt(_0x10b36a(0x1a2))/0x1+-parseInt(_0x10b36a(0x19a))/0x2+-parseInt(_0x10b36a(0x196))/0x3+-parseInt(_0x10b36a(0x19b))/0x4*(-parseInt(_0x10b36a(0x198))/0x5)+-parseInt(_0x10b36a(0x193))/0x6+parseInt(_0x10b36a(0x19d))/0x7*(-parseInt(_0x10b36a(0x191))/0x8)+parseInt(_0x10b36a(0x192))/0x9;if(_0x105f2a===_0x5c1d35)break;else _0x425000['push'](_0x425000['shift']());}catch(_0x27f097){_0x425000['push'](_0x425000['shift']());}}}(a74_0x481a,0x41a39));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x2f7adb){const _0x3072f2=a74_0x3fb4;if(_0x2f7adb===!![]||_0x2f7adb===![])return{'success':_0x2f7adb};if(_0x2f7adb===null||_0x2f7adb===undefined)return{'type':typeof _0x2f7adb};if(typeof _0x2f7adb!==_0x3072f2(0x197))return{'type':typeof _0x2f7adb};const _0x39ceac=_0x2f7adb,_0x204f46=[_0x3072f2(0x1a0),_0x3072f2(0x199),_0x3072f2(0x19f),'error','msg','data'],_0x20c31d={};for(const _0x351b7f of _0x204f46){if(_0x351b7f in _0x39ceac)_0x20c31d[_0x351b7f]=_0x39ceac[_0x351b7f];}return Object[_0x3072f2(0x195)](_0x20c31d)[_0x3072f2(0x1a3)]===0x0&&(_0x20c31d['keys']=Object[_0x3072f2(0x195)](_0x39ceac)[_0x3072f2(0x19e)](0x0,0x14)),_0x20c31d;}export const dbTest={'service':'db','command':'test','description':a74_0x13fff1(0x190),'risk':a74_0x13fff1(0x18f),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x21ba37){const _0x16890c=a74_0x13fff1,_0x104057=_0x21ba37['num']('id'),_0xabff2b=await testDbLinkConnect(_0x104057),_0x31233b=_0xabff2b===!![]||typeof _0xabff2b===_0x16890c(0x197)&&_0xabff2b!==null&&_0xabff2b[_0x16890c(0x1a0)]===!![],_0x2c7f41=summarizeTestConnectResult(_0xabff2b);return{'ok':!![],'data':{'id':_0x104057,'connected':Boolean(_0x31233b),'result':_0x2c7f41},'message':_0x31233b?_0x16890c(0x19c)+_0x104057:_0x16890c(0x1a1)+_0x104057+_0x16890c(0x194)};}};
1
+ const a75_0x5df7d8=a75_0xd4d5;function a75_0x2f32(){const _0x3b6a39=['object','message','code','690904HmYQaF','4581pOnfdr','Connection\x20OK\x20for\x20db\x20link\x20','read','492ZkiVph','msg','data','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','length','error','Connection\x20check\x20finished\x20for\x20db\x20link\x20','39705JlMsfP','\x20(see\x20data.result)','slice','keys','2qzKiqx','51161IcOWfW','success','5563012AyhzWq','7736XXCIlP','test','690TkEVEV','2244777PozqzI','659922kmKLvT'];a75_0x2f32=function(){return _0x3b6a39;};return a75_0x2f32();}(function(_0x57a877,_0x5208c9){const _0x31e526=a75_0xd4d5,_0x478384=_0x57a877();while(!![]){try{const _0x4f56ff=-parseInt(_0x31e526(0xe4))/0x1*(-parseInt(_0x31e526(0xf7))/0x2)+-parseInt(_0x31e526(0xe3))/0x3+-parseInt(_0x31e526(0xe8))/0x4+-parseInt(_0x31e526(0xf3))/0x5*(-parseInt(_0x31e526(0xec))/0x6)+-parseInt(_0x31e526(0xfa))/0x7+parseInt(_0x31e526(0xe0))/0x8*(parseInt(_0x31e526(0xe9))/0x9)+-parseInt(_0x31e526(0xe2))/0xa*(-parseInt(_0x31e526(0xf8))/0xb);if(_0x4f56ff===_0x5208c9)break;else _0x478384['push'](_0x478384['shift']());}catch(_0x1a9794){_0x478384['push'](_0x478384['shift']());}}}(a75_0x2f32,0x63bb9));import{testDbLinkConnect}from'../../core/api-client.js';function a75_0xd4d5(_0x1eeb71,_0x360114){_0x1eeb71=_0x1eeb71-0xe0;const _0x2f32fe=a75_0x2f32();let _0xd4d58=_0x2f32fe[_0x1eeb71];return _0xd4d58;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x3c1aa9){const _0x501ddb=a75_0xd4d5;if(_0x3c1aa9===!![]||_0x3c1aa9===![])return{'success':_0x3c1aa9};if(_0x3c1aa9===null||_0x3c1aa9===undefined)return{'type':typeof _0x3c1aa9};if(typeof _0x3c1aa9!==_0x501ddb(0xe5))return{'type':typeof _0x3c1aa9};const _0x1f790e=_0x3c1aa9,_0x1fa015=[_0x501ddb(0xf9),_0x501ddb(0xe6),_0x501ddb(0xe7),_0x501ddb(0xf1),_0x501ddb(0xed),_0x501ddb(0xee)],_0x33365d={};for(const _0x415758 of _0x1fa015){if(_0x415758 in _0x1f790e)_0x33365d[_0x415758]=_0x1f790e[_0x415758];}return Object[_0x501ddb(0xf6)](_0x33365d)[_0x501ddb(0xf0)]===0x0&&(_0x33365d[_0x501ddb(0xf6)]=Object[_0x501ddb(0xf6)](_0x1f790e)[_0x501ddb(0xf5)](0x0,0x14)),_0x33365d;}export const dbTest={'service':'db','command':a75_0x5df7d8(0xe1),'description':a75_0x5df7d8(0xef),'risk':a75_0x5df7d8(0xeb),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x50b980){const _0x5f2377=a75_0x5df7d8,_0x467753=_0x50b980['num']('id'),_0x449a06=await testDbLinkConnect(_0x467753),_0x36c52e=_0x449a06===!![]||typeof _0x449a06===_0x5f2377(0xe5)&&_0x449a06!==null&&_0x449a06[_0x5f2377(0xf9)]===!![],_0xcada13=summarizeTestConnectResult(_0x449a06);return{'ok':!![],'data':{'id':_0x467753,'connected':Boolean(_0x36c52e),'result':_0xcada13},'message':_0x36c52e?_0x5f2377(0xea)+_0x467753:_0x5f2377(0xf2)+_0x467753+_0x5f2377(0xf4)};}};
@@ -1 +1 @@
1
- function a75_0x28a6(_0xcc0823,_0x4e7114){_0xcc0823=_0xcc0823-0x84;const _0x9245f9=a75_0x9245();let _0x28a6d9=_0x9245f9[_0xcc0823];return _0x28a6d9;}const a75_0x69d9fd=a75_0x28a6;(function(_0x410b0b,_0x1dda77){const _0x205ee6=a75_0x28a6,_0x3ab335=_0x410b0b();while(!![]){try{const _0x420f53=parseInt(_0x205ee6(0xa2))/0x1+parseInt(_0x205ee6(0x8f))/0x2*(parseInt(_0x205ee6(0xa7))/0x3)+parseInt(_0x205ee6(0x97))/0x4+-parseInt(_0x205ee6(0x92))/0x5+-parseInt(_0x205ee6(0xa4))/0x6*(parseInt(_0x205ee6(0x8a))/0x7)+parseInt(_0x205ee6(0x94))/0x8*(parseInt(_0x205ee6(0x8b))/0x9)+parseInt(_0x205ee6(0x95))/0xa*(-parseInt(_0x205ee6(0x99))/0xb);if(_0x420f53===_0x1dda77)break;else _0x3ab335['push'](_0x3ab335['shift']());}catch(_0x40596e){_0x3ab335['push'](_0x3ab335['shift']());}}}(a75_0x9245,0xcbc86));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';function a75_0x9245(){const _0x51846d=['New\x20description','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','New\x20database\x20name','1447946XySJfr','string','2154KiCdNE','write','dbparam','537FsCTKm','dbName','dbdesc','str','/smartapi/dblink/update','dbname','New\x20username','16121FLTefa','7726986NBwzfY','New\x20host:port','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','dbParam','3466ngWQle','POST','New\x20connection\x20parameter\x20string','4336070frKRmj','dbDesc','8UMpRDa','220krqqaT','username','2958824EcoqMF','Updated\x20db\x20link\x20','413864wJssfT','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','dburl','trim','dbUrl','password'];a75_0x9245=function(){return _0x51846d;};return a75_0x9245();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':'update','description':a75_0x69d9fd(0x8d),'risk':a75_0x69d9fd(0xa5),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a75_0x69d9fd(0x88),'type':'string','description':a75_0x69d9fd(0xa1)},{'name':a75_0x69d9fd(0x9b),'type':a75_0x69d9fd(0xa3),'description':a75_0x69d9fd(0x8c)},{'name':'username','type':a75_0x69d9fd(0xa3),'description':a75_0x69d9fd(0x89)},{'name':a75_0x69d9fd(0x9e),'type':'string','description':a75_0x69d9fd(0xa0)},{'name':a75_0x69d9fd(0xa6),'type':a75_0x69d9fd(0xa3),'description':a75_0x69d9fd(0x91)},{'name':a75_0x69d9fd(0x85),'type':a75_0x69d9fd(0xa3),'description':a75_0x69d9fd(0x9f)}],async 'validate'(_0x262991){const _0x1000c8=a75_0x69d9fd,_0x1de917=_0x262991['str'](_0x1000c8(0x9b));if(_0x1de917&&!validateDbUrl(_0x1de917[_0x1000c8(0x9c)]()))throw CliErrors['validation'](_0x1000c8(0x9a)+_0x1de917+'\x22');},async 'dryRun'(_0x2b0ed0){const _0x3ad70b=a75_0x69d9fd,_0x51d3d3=_0x2b0ed0['num']('id'),_0x223ea2=await getDbLinkInfo(_0x51d3d3),_0x1bed7a={..._0x223ea2},_0x287694=_0x2b0ed0[_0x3ad70b(0x86)](_0x3ad70b(0x88));if(_0x287694)_0x1bed7a[_0x3ad70b(0x84)]=_0x287694;const _0x401d35=_0x2b0ed0[_0x3ad70b(0x86)]('dburl');if(_0x401d35)_0x1bed7a[_0x3ad70b(0x9d)]=_0x401d35[_0x3ad70b(0x9c)]();const _0x3283f7=_0x2b0ed0['str'](_0x3ad70b(0x96));if(_0x3283f7)_0x1bed7a['username']=_0x3283f7;const _0x18be31=_0x2b0ed0[_0x3ad70b(0x86)]('password');if(_0x18be31)_0x1bed7a[_0x3ad70b(0x9e)]=_0x18be31;const _0x1fbbbb=_0x2b0ed0['str'](_0x3ad70b(0xa6));if(_0x1fbbbb)_0x1bed7a['dbParam']=_0x1fbbbb;const _0x56b54d=_0x2b0ed0[_0x3ad70b(0x86)]('dbdesc');if(_0x56b54d)_0x1bed7a[_0x3ad70b(0x93)]=_0x56b54d;const _0x20946f=sanitizeDbLinkForOutput(_0x1bed7a);return{'method':_0x3ad70b(0x90),'url':_0x3ad70b(0x87),'body':_0x20946f,'description':'Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview'};},async 'execute'(_0x39e08){const _0x404894=a75_0x69d9fd,_0x5c43f5=_0x39e08['num']('id'),_0x5c2460=await getDbLinkInfo(_0x5c43f5),_0x647745={..._0x5c2460},_0x2ba2d6=_0x39e08['str'](_0x404894(0x88));if(_0x2ba2d6)_0x647745[_0x404894(0x84)]=_0x2ba2d6;const _0x1bd4dd=_0x39e08['str'](_0x404894(0x9b));if(_0x1bd4dd)_0x647745[_0x404894(0x9d)]=_0x1bd4dd[_0x404894(0x9c)]();const _0x1c2bc5=_0x39e08['str']('username');if(_0x1c2bc5)_0x647745[_0x404894(0x96)]=_0x1c2bc5;const _0x3ba317=_0x39e08[_0x404894(0x86)](_0x404894(0x9e));if(_0x3ba317)_0x647745[_0x404894(0x9e)]=_0x3ba317;const _0x405020=_0x39e08['str']('dbparam');if(_0x405020)_0x647745[_0x404894(0x8e)]=_0x405020;const _0x4333d4=_0x39e08[_0x404894(0x86)](_0x404894(0x85));if(_0x4333d4)_0x647745[_0x404894(0x93)]=_0x4333d4;const {id:_0x50f2bd,entity:_0x41b757}=normalizeEntityWithIdResponse(await updateDbLink(_0x647745));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x41b757),'message':_0x404894(0x98)+(_0x50f2bd??_0x5c43f5)};}};
1
+ function a76_0x4bec(){const _0x20026e=['username','dbUrl','153210MaPbGa','dbDesc','dbdesc','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','trim','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','46398DbhWnA','dbParam','12utOGkg','dbname','dbName','4126166xlrszr','3FEDeVO','num','25988XHQisJ','Updated\x20db\x20link\x20','str','password','update','427OJkhCa','702mSfGaH','279xmnHQS','New\x20database\x20name','7923410lQEPtH','string','New\x20connection\x20parameter\x20string','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','New\x20username','POST','dbparam','15164730BotlhQ','New\x20host:port','343912dEkSnI','dburl'];a76_0x4bec=function(){return _0x20026e;};return a76_0x4bec();}const a76_0x1f0063=a76_0x5483;(function(_0x110497,_0x3a099b){const _0x13b5af=a76_0x5483,_0xee2cdb=_0x110497();while(!![]){try{const _0x40e98f=parseInt(_0x13b5af(0xf8))/0x1*(parseInt(_0x13b5af(0x110))/0x2)+parseInt(_0x13b5af(0x100))/0x3*(-parseInt(_0x13b5af(0xfa))/0x4)+-parseInt(_0x13b5af(0x103))/0x5+-parseInt(_0x13b5af(0xf2))/0x6*(-parseInt(_0x13b5af(0xff))/0x7)+-parseInt(_0x13b5af(0x10c))/0x8*(-parseInt(_0x13b5af(0x101))/0x9)+parseInt(_0x13b5af(0x10a))/0xa+parseInt(_0x13b5af(0xf7))/0xb*(parseInt(_0x13b5af(0xf4))/0xc);if(_0x40e98f===_0x3a099b)break;else _0xee2cdb['push'](_0xee2cdb['shift']());}catch(_0x44d052){_0xee2cdb['push'](_0xee2cdb['shift']());}}}(a76_0x4bec,0xc8632));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a76_0x5483(_0x47630d,_0x1d5747){_0x47630d=_0x47630d-0xf0;const _0x4beca5=a76_0x4bec();let _0x54833c=_0x4beca5[_0x47630d];return _0x54833c;}export const dbUpdate={'service':'db','command':a76_0x1f0063(0xfe),'description':a76_0x1f0063(0x113),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a76_0x1f0063(0x104),'description':a76_0x1f0063(0x102)},{'name':a76_0x1f0063(0x10d),'type':a76_0x1f0063(0x104),'description':a76_0x1f0063(0x10b)},{'name':a76_0x1f0063(0x10e),'type':a76_0x1f0063(0x104),'description':a76_0x1f0063(0x107)},{'name':'password','type':a76_0x1f0063(0x104),'description':'New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API'},{'name':'dbparam','type':a76_0x1f0063(0x104),'description':a76_0x1f0063(0x105)},{'name':a76_0x1f0063(0x112),'type':a76_0x1f0063(0x104),'description':'New\x20description'}],async 'validate'(_0x2d7798){const _0x5d56a1=a76_0x1f0063,_0x2eb411=_0x2d7798[_0x5d56a1(0xfc)]('dburl');if(_0x2eb411&&!validateDbUrl(_0x2eb411['trim']()))throw CliErrors['validation'](_0x5d56a1(0x106)+_0x2eb411+'\x22');},async 'dryRun'(_0xc555d0){const _0x45d809=a76_0x1f0063,_0x333ab3=_0xc555d0['num']('id'),_0x2924cf=await getDbLinkInfo(_0x333ab3),_0x1ace87={..._0x2924cf},_0x350ad3=_0xc555d0['str'](_0x45d809(0xf5));if(_0x350ad3)_0x1ace87[_0x45d809(0xf6)]=_0x350ad3;const _0x1c89b4=_0xc555d0[_0x45d809(0xfc)](_0x45d809(0x10d));if(_0x1c89b4)_0x1ace87[_0x45d809(0x10f)]=_0x1c89b4[_0x45d809(0xf0)]();const _0x4bd261=_0xc555d0['str'](_0x45d809(0x10e));if(_0x4bd261)_0x1ace87['username']=_0x4bd261;const _0x753ee1=_0xc555d0[_0x45d809(0xfc)](_0x45d809(0xfd));if(_0x753ee1)_0x1ace87['password']=_0x753ee1;const _0x23350f=_0xc555d0[_0x45d809(0xfc)](_0x45d809(0x109));if(_0x23350f)_0x1ace87[_0x45d809(0xf3)]=_0x23350f;const _0x2fdc1e=_0xc555d0[_0x45d809(0xfc)]('dbdesc');if(_0x2fdc1e)_0x1ace87[_0x45d809(0x111)]=_0x2fdc1e;const _0x5ab5b1=sanitizeDbLinkForOutput(_0x1ace87);return{'method':_0x45d809(0x108),'url':'/smartapi/dblink/update','body':_0x5ab5b1,'description':_0x45d809(0xf1)};},async 'execute'(_0xd7faef){const _0x30df2a=a76_0x1f0063,_0x18a9b6=_0xd7faef[_0x30df2a(0xf9)]('id'),_0x5f5317=await getDbLinkInfo(_0x18a9b6),_0x5b33e0={..._0x5f5317},_0x42fe18=_0xd7faef[_0x30df2a(0xfc)](_0x30df2a(0xf5));if(_0x42fe18)_0x5b33e0[_0x30df2a(0xf6)]=_0x42fe18;const _0x315b32=_0xd7faef[_0x30df2a(0xfc)]('dburl');if(_0x315b32)_0x5b33e0['dbUrl']=_0x315b32[_0x30df2a(0xf0)]();const _0xa9558f=_0xd7faef[_0x30df2a(0xfc)]('username');if(_0xa9558f)_0x5b33e0[_0x30df2a(0x10e)]=_0xa9558f;const _0x5f1c43=_0xd7faef[_0x30df2a(0xfc)]('password');if(_0x5f1c43)_0x5b33e0[_0x30df2a(0xfd)]=_0x5f1c43;const _0x5f0be3=_0xd7faef['str'](_0x30df2a(0x109));if(_0x5f0be3)_0x5b33e0[_0x30df2a(0xf3)]=_0x5f0be3;const _0x20ed66=_0xd7faef['str'](_0x30df2a(0x112));if(_0x20ed66)_0x5b33e0['dbDesc']=_0x20ed66;const {id:_0xa28fd1,entity:_0x5f1d40}=normalizeEntityWithIdResponse(await updateDbLink(_0x5b33e0));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x5f1d40),'message':_0x30df2a(0xfb)+(_0xa28fd1??_0x18a9b6)};}};
@@ -1 +1 @@
1
- const a76_0x1b24d8=a76_0xfce9;(function(_0x1852ff,_0x50d6ec){const _0x31d1a2=a76_0xfce9,_0x41b40e=_0x1852ff();while(!![]){try{const _0x4ce18e=parseInt(_0x31d1a2(0x178))/0x1*(-parseInt(_0x31d1a2(0x153))/0x2)+-parseInt(_0x31d1a2(0x139))/0x3*(parseInt(_0x31d1a2(0x144))/0x4)+parseInt(_0x31d1a2(0x165))/0x5+-parseInt(_0x31d1a2(0x149))/0x6*(-parseInt(_0x31d1a2(0x16c))/0x7)+parseInt(_0x31d1a2(0x12e))/0x8*(-parseInt(_0x31d1a2(0x15d))/0x9)+-parseInt(_0x31d1a2(0x12c))/0xa*(-parseInt(_0x31d1a2(0x142))/0xb)+parseInt(_0x31d1a2(0x14a))/0xc*(parseInt(_0x31d1a2(0x17e))/0xd);if(_0x4ce18e===_0x50d6ec)break;else _0x41b40e['push'](_0x41b40e['shift']());}catch(_0x3d715d){_0x41b40e['push'](_0x41b40e['shift']());}}}(a76_0x38ed,0xd07ae));import a76_0x521d06 from'chalk';function a76_0xfce9(_0x22ede1,_0x192772){_0x22ede1=_0x22ede1-0x12b;const _0x38ed6a=a76_0x38ed();let _0xfce911=_0x38ed6a[_0x22ede1];return _0xfce911;}import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';function a76_0x38ed(){const _0x44f977=['(missing)','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','3058330DPcMoi','\x20\x20API\x20Endpoints','accessKey','log','\x20←\x20current','\x20\x20Config\x20Files','gray','11117505jdbLvY','currentApp','version','\x20\x20─','doctor','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','message','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20(default)','(set,\x20length=','1120342txFEfp','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','red','length','\x20\x20Apps','riskLevel','78WJtRts','(set\x20via\x20file,\x20length=','(no\x20file)','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','env','✗\x20Not\x20logged\x20in','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','green','221550uzNjgq','(not\x20found)','872fuyxEz','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','pageSize','explicitAppName','cookie','appcode','arch','\x20\x20Auth','read','⚠\x20Empty\x20(treated\x20as\x20{})','45FzKyah','status','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor','apps','unknown','check','(none)','Global','473QFkZJa','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','124196XgUMQZ','(default:\x20','(default)','slice','✗\x20Invalid\x20JSON','6hePFPV','103764WwWUsV','apiDir','✓\x20Valid','repeat','padEnd','source','\x20\x20Config\x20JSON','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','platform','2LUmUHh','raw','appCode','\x20\x20Merged\x20Config','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','empty','Project','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','63117RPdzqC','value','\x20\x20explicitAppName:\x20','✗\x20Expired','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing'];a76_0x38ed=function(){return _0x44f977;};return a76_0x38ed();}async function execute(_0x321afd){const _0x25ab92=a76_0xfce9,_0x33cddf=GIT_COMMIT!==_0x25ab92(0x13e)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x25ab92(0x147)](0x0,0xa)+')':VERSION,_0x5c597b=buildConfigFromFlags({}),_0x1915cd=getCookie();console[_0x25ab92(0x168)](),console[_0x25ab92(0x168)](a76_0x521d06['bold'](CLI_BIN_NAME+_0x25ab92(0x13c))),console[_0x25ab92(0x168)](a76_0x521d06[_0x25ab92(0x16b)]('─'[_0x25ab92(0x14d)](0x32))),console[_0x25ab92(0x168)](_0x25ab92(0x174)+_0x33cddf),console['log'](_0x25ab92(0x161)+process[_0x25ab92(0x16e)]),console['log']('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x25ab92(0x152)]+'\x20'+process[_0x25ab92(0x135)]),console[_0x25ab92(0x168)](),console[_0x25ab92(0x168)](a76_0x521d06[_0x25ab92(0x182)](_0x25ab92(0x16a))),console[_0x25ab92(0x168)](a76_0x521d06['gray'](_0x25ab92(0x16f)[_0x25ab92(0x14d)](0x1e)));const _0x28ac4a=getGlobalConfigPath(),_0x163043=getProjectConfigPath();console[_0x25ab92(0x168)](_0x25ab92(0x158)+(_0x28ac4a||a76_0x521d06[_0x25ab92(0x16b)](_0x25ab92(0x12d)))),console[_0x25ab92(0x168)](_0x25ab92(0x181)+(_0x163043||a76_0x521d06['gray'](_0x25ab92(0x12d)))),console[_0x25ab92(0x168)](),console[_0x25ab92(0x168)](a76_0x521d06[_0x25ab92(0x182)](_0x25ab92(0x150))),console[_0x25ab92(0x168)](a76_0x521d06[_0x25ab92(0x16b)](_0x25ab92(0x16f)[_0x25ab92(0x14d)](0x1e)));const _0x38bea8=(_0x1c493b,_0x13f1ba)=>{const _0x34e55f=_0x25ab92;if(!_0x13f1ba){console[_0x34e55f(0x168)]('\x20\x20'+_0x1c493b[_0x34e55f(0x14e)](0x11)+'\x20'+a76_0x521d06['gray'](_0x34e55f(0x180)));return;}const _0x4623be=inspectCliConfigJsonFile(_0x13f1ba);if(_0x4623be[_0x34e55f(0x13a)]==='ok')console['log']('\x20\x20'+_0x1c493b[_0x34e55f(0x14e)](0x11)+'\x20'+a76_0x521d06['green']('✓\x20Valid\x20JSON'));else{if(_0x4623be[_0x34e55f(0x13a)]===_0x34e55f(0x159))console['log']('\x20\x20'+_0x1c493b['padEnd'](0x11)+'\x20'+a76_0x521d06['yellow'](_0x34e55f(0x138)));else _0x4623be['status']===_0x34e55f(0x162)?console[_0x34e55f(0x168)]('\x20\x20'+_0x1c493b[_0x34e55f(0x14e)](0x11)+'\x20'+a76_0x521d06['gray'](_0x34e55f(0x163))):(console[_0x34e55f(0x168)]('\x20\x20'+_0x1c493b[_0x34e55f(0x14e)](0x11)+'\x20'+a76_0x521d06[_0x34e55f(0x17a)](_0x34e55f(0x148))),console[_0x34e55f(0x168)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a76_0x521d06['red'](_0x4623be[_0x34e55f(0x172)])));}};_0x38bea8(_0x25ab92(0x141),_0x28ac4a),_0x38bea8(_0x25ab92(0x15a),_0x163043),console['log'](),console['log'](a76_0x521d06[_0x25ab92(0x182)](_0x25ab92(0x156))),console[_0x25ab92(0x168)](a76_0x521d06[_0x25ab92(0x16b)](_0x25ab92(0x16f)[_0x25ab92(0x14d)](0x1e))),console[_0x25ab92(0x168)](_0x25ab92(0x164)+(_0x5c597b[_0x25ab92(0x155)]||a76_0x521d06[_0x25ab92(0x17a)]('(not\x20set)'))),console[_0x25ab92(0x168)](_0x25ab92(0x13b)+_0x5c597b['env']),console[_0x25ab92(0x168)](_0x25ab92(0x15b)+_0x5c597b['locale']),console[_0x25ab92(0x168)](_0x25ab92(0x12f)+_0x5c597b['apiDir']),console['log']('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x5c597b['defaultApp']||a76_0x521d06['gray'](_0x25ab92(0x140)))),console[_0x25ab92(0x168)](_0x25ab92(0x151)+(_0x5c597b['currentApp']||a76_0x521d06[_0x25ab92(0x16b)]('(none)'))),console[_0x25ab92(0x168)](_0x25ab92(0x15f)+(_0x5c597b[_0x25ab92(0x132)]||a76_0x521d06['gray'](_0x25ab92(0x140)))),console['log']('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5c597b['format']||a76_0x521d06[_0x25ab92(0x16b)](_0x25ab92(0x145)+DEFAULT_CONFIG_VALUES['format']+')'))),console['log'](_0x25ab92(0x185)+(_0x5c597b[_0x25ab92(0x131)]??a76_0x521d06[_0x25ab92(0x16b)](_0x25ab92(0x146)))),console[_0x25ab92(0x168)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x5c597b[_0x25ab92(0x17d)]),console['log'](_0x25ab92(0x130)+_0x5c597b['verbose']),console['log'](_0x25ab92(0x15c)+(_0x5c597b['cookie']?a76_0x521d06['green']('(set,\x20length='+_0x5c597b['cookie'][_0x25ab92(0x17b)]+')'):_0x1915cd?a76_0x521d06[_0x25ab92(0x12b)](_0x25ab92(0x17f)+_0x1915cd[_0x25ab92(0x17b)]+')'):a76_0x521d06[_0x25ab92(0x16b)]('(none)')));const _0x17382c=Object['keys'](_0x5c597b[_0x25ab92(0x13d)]);if(_0x17382c[_0x25ab92(0x17b)]>0x0){console[_0x25ab92(0x168)](),console[_0x25ab92(0x168)](a76_0x521d06[_0x25ab92(0x182)](_0x25ab92(0x17c))),console[_0x25ab92(0x168)](a76_0x521d06[_0x25ab92(0x16b)]('\x20\x20─'[_0x25ab92(0x14d)](0x1e)));for(const _0x310996 of _0x17382c){const _0x4101e0=_0x5c597b[_0x25ab92(0x13d)][_0x310996],_0x2fc671=_0x310996===_0x5c597b['defaultApp'],_0x2c1efe=_0x310996===_0x5c597b[_0x25ab92(0x16d)],_0x20ac71=_0x2c1efe?a76_0x521d06[_0x25ab92(0x12b)](_0x25ab92(0x169)):'',_0x2202e7=_0x2fc671?_0x25ab92(0x176):'';console[_0x25ab92(0x168)]('\x20\x20'+_0x310996+_0x2202e7+_0x20ac71),console[_0x25ab92(0x168)](_0x25ab92(0x171)+_0x4101e0[_0x25ab92(0x134)]);const _0x199f42=buildAppDoctorFields(_0x4101e0,{'env':_0x5c597b[_0x25ab92(0x183)],'apiDir':_0x5c597b[_0x25ab92(0x154)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x25ab92(0x14b)],'cookie':_0x5c597b[_0x25ab92(0x133)]||_0x1915cd||undefined,'accessKey':_0x5c597b[_0x25ab92(0x167)]});console[_0x25ab92(0x168)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x199f42[_0x25ab92(0x183)][_0x25ab92(0x15e)]+'\x20\x20'+a76_0x521d06[_0x25ab92(0x16b)]('('+_0x199f42[_0x25ab92(0x183)][_0x25ab92(0x14f)]+')')),console[_0x25ab92(0x168)](_0x25ab92(0x173)+_0x199f42[_0x25ab92(0x14b)][_0x25ab92(0x15e)]+'\x20\x20'+a76_0x521d06['gray']('('+_0x199f42['apiDir'][_0x25ab92(0x14f)]+')'));const _0x5b63c8=_0x199f42['cookie'][_0x25ab92(0x15e)]?a76_0x521d06[_0x25ab92(0x12b)](_0x25ab92(0x177)+_0x199f42[_0x25ab92(0x133)][_0x25ab92(0x15e)][_0x25ab92(0x17b)]+')'):a76_0x521d06[_0x25ab92(0x16b)]('(none)');console[_0x25ab92(0x168)](_0x25ab92(0x175)+_0x5b63c8+'\x20\x20'+a76_0x521d06[_0x25ab92(0x16b)]('('+_0x199f42[_0x25ab92(0x133)]['source']+')'));const _0x5776e6=_0x199f42[_0x25ab92(0x167)][_0x25ab92(0x15e)]?a76_0x521d06[_0x25ab92(0x12b)]('(set,\x20length='+_0x199f42['accessKey'][_0x25ab92(0x15e)]['length']+')'):a76_0x521d06[_0x25ab92(0x16b)](_0x25ab92(0x140));console[_0x25ab92(0x168)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x5776e6+'\x20\x20'+a76_0x521d06[_0x25ab92(0x16b)]('('+_0x199f42['accessKey'][_0x25ab92(0x14f)]+')'));}}console['log'](),console[_0x25ab92(0x168)](a76_0x521d06[_0x25ab92(0x182)](_0x25ab92(0x166))),console[_0x25ab92(0x168)](a76_0x521d06[_0x25ab92(0x16b)](_0x25ab92(0x16f)[_0x25ab92(0x14d)](0x1e))),console['log']('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x25ab92(0x168)](_0x25ab92(0x179)+getUserDomain()),console['log'](_0x25ab92(0x157)+getRuntimeDomain()),console[_0x25ab92(0x168)](),console[_0x25ab92(0x168)](a76_0x521d06[_0x25ab92(0x182)](_0x25ab92(0x136))),console[_0x25ab92(0x168)](a76_0x521d06[_0x25ab92(0x16b)](_0x25ab92(0x16f)[_0x25ab92(0x14d)](0x1e)));if(_0x1915cd){const _0x4ba9de=await getIsSessionValid();console[_0x25ab92(0x168)](_0x25ab92(0x143)+(_0x4ba9de?a76_0x521d06[_0x25ab92(0x12b)](_0x25ab92(0x14c)):a76_0x521d06[_0x25ab92(0x17a)](_0x25ab92(0x160))));}else console[_0x25ab92(0x168)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a76_0x521d06[_0x25ab92(0x17a)](_0x25ab92(0x184)));return console[_0x25ab92(0x168)](),{'ok':!![]};}export const doctorDefinition={'service':a76_0x1b24d8(0x170),'command':a76_0x1b24d8(0x13f),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a76_0x1b24d8(0x137),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ function a77_0x3ca4(_0x4150b9,_0x3cc34a){_0x4150b9=_0x4150b9-0x9e;const _0x507c06=a77_0x507c();let _0x3ca48f=_0x507c06[_0x4150b9];return _0x3ca48f;}const a77_0x25c92b=a77_0x3ca4;(function(_0x2380f3,_0x1d7927){const _0x3d68ec=a77_0x3ca4,_0x2b20f5=_0x2380f3();while(!![]){try{const _0x22e12f=parseInt(_0x3d68ec(0xde))/0x1*(parseInt(_0x3d68ec(0xeb))/0x2)+-parseInt(_0x3d68ec(0xe7))/0x3+parseInt(_0x3d68ec(0xc8))/0x4+-parseInt(_0x3d68ec(0xd0))/0x5+-parseInt(_0x3d68ec(0xa7))/0x6*(-parseInt(_0x3d68ec(0xaf))/0x7)+-parseInt(_0x3d68ec(0xd4))/0x8*(parseInt(_0x3d68ec(0xbf))/0x9)+parseInt(_0x3d68ec(0xa5))/0xa*(parseInt(_0x3d68ec(0xb5))/0xb);if(_0x22e12f===_0x1d7927)break;else _0x2b20f5['push'](_0x2b20f5['shift']());}catch(_0x1107fc){_0x2b20f5['push'](_0x2b20f5['shift']());}}}(a77_0x507c,0xa5cbf));import a77_0x3bdce8 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a77_0x507c(){const _0x49e52c=['accessKey','missing','(not\x20found)','\x20\x20explicitAppName:\x20','defaultApp','4878600OKXxob','gray','\x20\x20runtimeDomain:\x20\x20\x20','slice','16YcFTsz','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','source','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','bold','Global','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','✓\x20Valid','(not\x20set)','2USLqTU','status','(none)','✗\x20Not\x20logged\x20in','\x20\x20API\x20Endpoints','✓\x20Valid\x20JSON','format','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','empty','1782324unOtdV','platform','cookie','apiDir','748158UivQsZ','(no\x20file)','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','read','raw','apps','\x20\x20Apps','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(default)','23140uYtTIC','(missing)','3834UFdVFw','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Project','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','padEnd','✗\x20Invalid\x20JSON','\x20\x20\x20\x20accessKey:\x20\x20','21KlApaP','\x20\x20─','(set,\x20length=','\x20←\x20current','green','riskLevel','6182PAFNWM','appCode','\x20doctor','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','unknown','(set\x20via\x20file,\x20length=','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','log','2232900QovxEh','\x20\x20Auth','currentApp','length','red','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','yellow','2778352zsQHpX','repeat','env'];a77_0x507c=function(){return _0x49e52c;};return a77_0x507c();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0xf20d01){const _0x52b59d=a77_0x3ca4,_0x3c3fa2=GIT_COMMIT!==_0x52b59d(0xbb)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x52b59d(0xd3)](0x0,0xa)+')':VERSION,_0x3714d1=buildConfigFromFlags({}),_0xb7a616=getCookie();console[_0x52b59d(0xbe)](),console['log'](a77_0x3bdce8[_0x52b59d(0xd9)](CLI_BIN_NAME+_0x52b59d(0xb7))),console[_0x52b59d(0xbe)](a77_0x3bdce8['gray']('─'['repeat'](0x32))),console[_0x52b59d(0xbe)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x3c3fa2),console[_0x52b59d(0xbe)](_0x52b59d(0xd7)+process['version']),console[_0x52b59d(0xbe)](_0x52b59d(0xd5)+process[_0x52b59d(0xe8)]+'\x20'+process['arch']),console[_0x52b59d(0xbe)](),console[_0x52b59d(0xbe)](a77_0x3bdce8[_0x52b59d(0xd9)]('\x20\x20Config\x20Files')),console['log'](a77_0x3bdce8[_0x52b59d(0xd1)](_0x52b59d(0xb0)[_0x52b59d(0xc9)](0x1e)));const _0x24c66c=getGlobalConfigPath(),_0x3c0113=getProjectConfigPath();console['log'](_0x52b59d(0xc4)+(_0x24c66c||a77_0x3bdce8['gray'](_0x52b59d(0xcd)))),console[_0x52b59d(0xbe)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3c0113||a77_0x3bdce8['gray'](_0x52b59d(0xcd)))),console[_0x52b59d(0xbe)](),console[_0x52b59d(0xbe)](a77_0x3bdce8[_0x52b59d(0xd9)]('\x20\x20Config\x20JSON')),console['log'](a77_0x3bdce8[_0x52b59d(0xd1)]('\x20\x20─'['repeat'](0x1e)));const _0x43ed26=(_0xdc0255,_0x33f91e)=>{const _0x43c8e9=_0x52b59d;if(!_0x33f91e){console[_0x43c8e9(0xbe)]('\x20\x20'+_0xdc0255[_0x43c8e9(0xac)](0x11)+'\x20'+a77_0x3bdce8[_0x43c8e9(0xd1)](_0x43c8e9(0xec)));return;}const _0x10b331=inspectCliConfigJsonFile(_0x33f91e);if(_0x10b331[_0x43c8e9(0xdf)]==='ok')console[_0x43c8e9(0xbe)]('\x20\x20'+_0xdc0255[_0x43c8e9(0xac)](0x11)+'\x20'+a77_0x3bdce8[_0x43c8e9(0xb3)](_0x43c8e9(0xe3)));else{if(_0x10b331[_0x43c8e9(0xdf)]===_0x43c8e9(0xe6))console[_0x43c8e9(0xbe)]('\x20\x20'+_0xdc0255['padEnd'](0x11)+'\x20'+a77_0x3bdce8[_0x43c8e9(0xc7)](_0x43c8e9(0xab)));else _0x10b331['status']===_0x43c8e9(0xcc)?console['log']('\x20\x20'+_0xdc0255['padEnd'](0x11)+'\x20'+a77_0x3bdce8['gray'](_0x43c8e9(0xa6))):(console['log']('\x20\x20'+_0xdc0255['padEnd'](0x11)+'\x20'+a77_0x3bdce8['red'](_0x43c8e9(0xad))),console[_0x43c8e9(0xbe)]('\x20\x20'+''[_0x43c8e9(0xac)](0x11)+'\x20'+a77_0x3bdce8[_0x43c8e9(0xc3)](_0x10b331['message'])));}};_0x43ed26(_0x52b59d(0xda),_0x24c66c),_0x43ed26(_0x52b59d(0xa9),_0x3c0113),console[_0x52b59d(0xbe)](),console[_0x52b59d(0xbe)](a77_0x3bdce8['bold']('\x20\x20Merged\x20Config')),console['log'](a77_0x3bdce8[_0x52b59d(0xd1)](_0x52b59d(0xb0)[_0x52b59d(0xc9)](0x1e))),console[_0x52b59d(0xbe)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3714d1[_0x52b59d(0xb6)]||a77_0x3bdce8[_0x52b59d(0xc3)](_0x52b59d(0xdd)))),console[_0x52b59d(0xbe)](_0x52b59d(0xc6)+_0x3714d1[_0x52b59d(0xca)]),console[_0x52b59d(0xbe)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3714d1['locale']),console[_0x52b59d(0xbe)](_0x52b59d(0xb9)+_0x3714d1[_0x52b59d(0xea)]),console[_0x52b59d(0xbe)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x3714d1[_0x52b59d(0xcf)]||a77_0x3bdce8['gray'](_0x52b59d(0xe0)))),console[_0x52b59d(0xbe)](_0x52b59d(0xdb)+(_0x3714d1[_0x52b59d(0xc1)]||a77_0x3bdce8['gray'](_0x52b59d(0xe0)))),console['log'](_0x52b59d(0xce)+(_0x3714d1['explicitAppName']||a77_0x3bdce8[_0x52b59d(0xd1)](_0x52b59d(0xe0)))),console[_0x52b59d(0xbe)](_0x52b59d(0xa3)+(_0x3714d1[_0x52b59d(0xe4)]||a77_0x3bdce8['gray'](_0x52b59d(0xba)+DEFAULT_CONFIG_VALUES[_0x52b59d(0xe4)]+')'))),console[_0x52b59d(0xbe)](_0x52b59d(0xaa)+(_0x3714d1['pageSize']??a77_0x3bdce8[_0x52b59d(0xd1)]('(default)'))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x3714d1[_0x52b59d(0xb4)]),console[_0x52b59d(0xbe)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3714d1['verbose']),console[_0x52b59d(0xbe)](_0x52b59d(0xa8)+(_0x3714d1[_0x52b59d(0xe9)]?a77_0x3bdce8[_0x52b59d(0xb3)](_0x52b59d(0xb1)+_0x3714d1[_0x52b59d(0xe9)][_0x52b59d(0xc2)]+')'):_0xb7a616?a77_0x3bdce8[_0x52b59d(0xb3)](_0x52b59d(0xbc)+_0xb7a616[_0x52b59d(0xc2)]+')'):a77_0x3bdce8[_0x52b59d(0xd1)]('(none)')));const _0xee1080=Object['keys'](_0x3714d1[_0x52b59d(0xa1)]);if(_0xee1080[_0x52b59d(0xc2)]>0x0){console['log'](),console[_0x52b59d(0xbe)](a77_0x3bdce8[_0x52b59d(0xd9)](_0x52b59d(0xa2))),console[_0x52b59d(0xbe)](a77_0x3bdce8[_0x52b59d(0xd1)](_0x52b59d(0xb0)[_0x52b59d(0xc9)](0x1e)));for(const _0x47a9e8 of _0xee1080){const _0x442ff6=_0x3714d1[_0x52b59d(0xa1)][_0x47a9e8],_0x2c795e=_0x47a9e8===_0x3714d1['defaultApp'],_0x843d9e=_0x47a9e8===_0x3714d1[_0x52b59d(0xc1)],_0x2400fc=_0x843d9e?a77_0x3bdce8[_0x52b59d(0xb3)](_0x52b59d(0xb2)):'',_0x19abfb=_0x2c795e?_0x52b59d(0xa4):'';console[_0x52b59d(0xbe)]('\x20\x20'+_0x47a9e8+_0x19abfb+_0x2400fc),console[_0x52b59d(0xbe)](_0x52b59d(0xbd)+_0x442ff6['appcode']);const _0x456942=buildAppDoctorFields(_0x442ff6,{'env':_0x3714d1['env'],'apiDir':_0x3714d1[_0x52b59d(0xa0)][_0x52b59d(0xea)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x3714d1[_0x52b59d(0xe9)]||_0xb7a616||undefined,'accessKey':_0x3714d1[_0x52b59d(0xcb)]});console[_0x52b59d(0xbe)](_0x52b59d(0x9e)+_0x456942[_0x52b59d(0xca)][_0x52b59d(0xc5)]+'\x20\x20'+a77_0x3bdce8[_0x52b59d(0xd1)]('('+_0x456942[_0x52b59d(0xca)][_0x52b59d(0xd6)]+')')),console[_0x52b59d(0xbe)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x456942[_0x52b59d(0xea)][_0x52b59d(0xc5)]+'\x20\x20'+a77_0x3bdce8[_0x52b59d(0xd1)]('('+_0x456942[_0x52b59d(0xea)]['source']+')'));const _0x3e7b81=_0x456942[_0x52b59d(0xe9)][_0x52b59d(0xc5)]?a77_0x3bdce8[_0x52b59d(0xb3)](_0x52b59d(0xb1)+_0x456942[_0x52b59d(0xe9)][_0x52b59d(0xc5)][_0x52b59d(0xc2)]+')'):a77_0x3bdce8[_0x52b59d(0xd1)]('(none)');console[_0x52b59d(0xbe)](_0x52b59d(0xb8)+_0x3e7b81+'\x20\x20'+a77_0x3bdce8['gray']('('+_0x456942['cookie'][_0x52b59d(0xd6)]+')'));const _0x1ce916=_0x456942[_0x52b59d(0xcb)][_0x52b59d(0xc5)]?a77_0x3bdce8[_0x52b59d(0xb3)](_0x52b59d(0xb1)+_0x456942['accessKey']['value'][_0x52b59d(0xc2)]+')'):a77_0x3bdce8[_0x52b59d(0xd1)]('(none)');console[_0x52b59d(0xbe)](_0x52b59d(0xae)+_0x1ce916+'\x20\x20'+a77_0x3bdce8['gray']('('+_0x456942[_0x52b59d(0xcb)][_0x52b59d(0xd6)]+')'));}}console['log'](),console[_0x52b59d(0xbe)](a77_0x3bdce8['bold'](_0x52b59d(0xe2))),console['log'](a77_0x3bdce8[_0x52b59d(0xd1)](_0x52b59d(0xb0)[_0x52b59d(0xc9)](0x1e))),console[_0x52b59d(0xbe)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x52b59d(0xbe)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x52b59d(0xbe)](_0x52b59d(0xd2)+getRuntimeDomain()),console[_0x52b59d(0xbe)](),console['log'](a77_0x3bdce8['bold'](_0x52b59d(0xc0))),console['log'](a77_0x3bdce8[_0x52b59d(0xd1)](_0x52b59d(0xb0)[_0x52b59d(0xc9)](0x1e)));if(_0xb7a616){const _0x3aa4e2=await getIsSessionValid();console[_0x52b59d(0xbe)](_0x52b59d(0xe5)+(_0x3aa4e2?a77_0x3bdce8[_0x52b59d(0xb3)](_0x52b59d(0xdc)):a77_0x3bdce8[_0x52b59d(0xc3)]('✗\x20Expired')));}else console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a77_0x3bdce8['red'](_0x52b59d(0xe1)));return console[_0x52b59d(0xbe)](),{'ok':!![]};}export const doctorDefinition={'service':a77_0x25c92b(0xd8),'command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a77_0x25c92b(0x9f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a77_0x4f1804=a77_0x57ca;(function(_0x5d338c,_0x37f184){const _0x4d6a3b=a77_0x57ca,_0xc5026d=_0x5d338c();while(!![]){try{const _0x115cf7=-parseInt(_0x4d6a3b(0x1d5))/0x1*(-parseInt(_0x4d6a3b(0x1e7))/0x2)+-parseInt(_0x4d6a3b(0x1d7))/0x3+parseInt(_0x4d6a3b(0x1dd))/0x4+-parseInt(_0x4d6a3b(0x1cc))/0x5+-parseInt(_0x4d6a3b(0x1de))/0x6*(-parseInt(_0x4d6a3b(0x1d4))/0x7)+-parseInt(_0x4d6a3b(0x1f2))/0x8*(parseInt(_0x4d6a3b(0x1d9))/0x9)+parseInt(_0x4d6a3b(0x1d2))/0xa*(-parseInt(_0x4d6a3b(0x1e6))/0xb);if(_0x115cf7===_0x37f184)break;else _0xc5026d['push'](_0xc5026d['shift']());}catch(_0x69d812){_0xc5026d['push'](_0xc5026d['shift']());}}}(a77_0x14eb,0xb7c3a));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';function a77_0x57ca(_0x45e8dd,_0x4f8b50){_0x45e8dd=_0x45e8dd-0x1ca;const _0x14ebdd=a77_0x14eb();let _0x57cac8=_0x14ebdd[_0x45e8dd];return _0x57cac8;}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 a77_0x14eb(){const _0xa8de99=['appcode','str','map','\x0a✓\x20Successfully\x20initialized\x20','Auto-confirm\x20prompts','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','\x20\x20Default:\x20','5269vDLrVt','1358558vVZdqq','valid','flagMissing','global','\x20\x20Config:\x20','bool','validation','App\x20code\x20to\x20initialize\x20with','\x20\x20Env:\x20','defaultApp','\x20\x20Apps:\x20','8GYhyqr','message','appCode','toLocaleString','custom','production','project','some','init','env','728155giyCMc','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','string','yes','write','../../commands/project/init.js','15740YxGrlw','Usage:\x20','3122042vIcLjK','2pTxAkG','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','3203100HUXNhS','boolean','10379862EIiyhU','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','nonInteractive','log','4706868fRtXwL','18kNSvWv'];a77_0x14eb=function(){return _0xa8de99;};return a77_0x14eb();}import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0xa63e62){return{'appCode':_0xa63e62,'appName':_0xa63e62};}function writeInitConfig(_0x4916be,_0x2a88d5,_0x5caf54){const _0x3aba1e=a77_0x57ca,_0x50faa7=resolveWriteConfigPath(_0x4916be),_0x40ba3b=buildCanonicalProjectConfig({},{'appCodes':_0x2a88d5[_0x3aba1e(0x1e1)](_0x40cb5d=>_0x40cb5d[_0x3aba1e(0x1f4)]),'env':_0x5caf54,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x3aba1e(0x1f5)]()}});writeConfigFile(_0x50faa7,_0x40ba3b);const _0x3fc88f=_0x4916be===_0x3aba1e(0x1ea)?_0x3aba1e(0x1ea):'project';console[_0x3aba1e(0x1dc)](_0x3aba1e(0x1e2)+_0x3fc88f+'\x20config'),console[_0x3aba1e(0x1dc)](_0x3aba1e(0x1f1)+_0x2a88d5['map'](_0x57d9c7=>_0x57d9c7[_0x3aba1e(0x1f4)])['join'](',\x20')),console[_0x3aba1e(0x1dc)](_0x3aba1e(0x1e5)+_0x40ba3b[_0x3aba1e(0x1f0)]),console['log'](_0x3aba1e(0x1ef)+_0x40ba3b[_0x3aba1e(0x1cb)]),console['log'](_0x3aba1e(0x1eb)+_0x50faa7);}async function runSmartInit(_0x3dbaa9){const _0x39b983=a77_0x57ca,_0x157c8d=process['cwd'](),_0x17cfaf=_0x3dbaa9[_0x39b983(0x1ec)](_0x39b983(0x1ea))?'global':_0x39b983(0x1f8),_0xc12bcd=_0x3dbaa9[_0x39b983(0x1e0)](_0x39b983(0x1cb))||_0x39b983(0x1f7),_0x32a492=_0x3dbaa9['str'](_0x39b983(0x1df))||undefined,_0x3743f5=_0x3dbaa9[_0x39b983(0x1ec)](_0x39b983(0x1f8));if(_0x3743f5){const {initConfig:_0x5af3cc}=await import(_0x39b983(0x1d1));return _0x5af3cc({'appcode':_0x32a492,'env':_0xc12bcd,'autoYes':_0x3dbaa9['bool'](_0x39b983(0x1cf))});}if(_0x17cfaf===_0x39b983(0x1f8)){const _0x3a24fa=existsSync(resolve(_0x157c8d,NEW_CONFIG_NAME)),_0x49aa58=LEGACY_CONFIG_NAMES[_0x39b983(0x1f9)](_0x14794b=>existsSync(resolve(_0x157c8d,_0x14794b)));if(_0x49aa58&&!_0x3a24fa)return console[_0x39b983(0x1dc)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x3dbaa9['nonInteractive'],{'yes':_0x3dbaa9[_0x39b983(0x1ec)](_0x39b983(0x1cf))});if(_0x3a24fa)throw CliErrors[_0x39b983(0x1ed)](_0x39b983(0x1e4),'Use\x20`'+CLI_BIN_NAME+_0x39b983(0x1d6));}if(_0x32a492){const _0x22d3ac=validateAppcode(_0x32a492);if(!_0x22d3ac[_0x39b983(0x1e8)])throw CliErrors['validation'](_0x22d3ac[_0x39b983(0x1f3)]);writeInitConfig(_0x17cfaf,[syntheticApp(_0x32a492)],_0xc12bcd);return;}if(_0x3dbaa9[_0x39b983(0x1db)])throw CliErrors[_0x39b983(0x1e9)](_0x39b983(0x1df),_0x39b983(0x1d3)+CLI_BIN_NAME+_0x39b983(0x1da));const _0x28c083=getCookie(),_0x2d9f1b=await selectMultipleApps(_0x28c083),_0x2834c5=_0x2d9f1b===_0x39b983(0x1f6)?[syntheticApp(await promptCustomAppcode())]:_0x2d9f1b;writeInitConfig(_0x17cfaf,_0x2834c5,_0xc12bcd);}const initFlags=[{'name':a77_0x4f1804(0x1ea),'type':'boolean','description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a77_0x4f1804(0x1cb),'type':a77_0x4f1804(0x1ce),'description':'Target\x20environment','default':a77_0x4f1804(0x1f7),'enum':[...RABETBASE_ENV_VALUES]},{'name':a77_0x4f1804(0x1df),'type':a77_0x4f1804(0x1ce),'description':a77_0x4f1804(0x1ee)},{'name':'project','type':a77_0x4f1804(0x1d8),'description':a77_0x4f1804(0x1cd),'default':![]},{'name':a77_0x4f1804(0x1cf),'type':a77_0x4f1804(0x1d8),'description':a77_0x4f1804(0x1e3),'default':![]}];export const initDefinitions=[{'service':a77_0x4f1804(0x1ca),'command':'run','description':'Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','risk':a77_0x4f1804(0x1d0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x520aac){return await runSmartInit(_0x520aac),{'ok':!![]};}}];
1
+ function a78_0xcff3(_0x1b7542,_0x24a1b2){_0x1b7542=_0x1b7542-0x1df;const _0x3eaf94=a78_0x3eaf();let _0xcff302=_0x3eaf94[_0x1b7542];return _0xcff302;}const a78_0x275204=a78_0xcff3;(function(_0x5103a7,_0x32843b){const _0x1b84ee=a78_0xcff3,_0x555f17=_0x5103a7();while(!![]){try{const _0x3d156a=-parseInt(_0x1b84ee(0x1f0))/0x1+parseInt(_0x1b84ee(0x203))/0x2*(-parseInt(_0x1b84ee(0x201))/0x3)+parseInt(_0x1b84ee(0x1e2))/0x4+-parseInt(_0x1b84ee(0x1f6))/0x5+-parseInt(_0x1b84ee(0x209))/0x6+-parseInt(_0x1b84ee(0x1fb))/0x7+parseInt(_0x1b84ee(0x204))/0x8;if(_0x3d156a===_0x32843b)break;else _0x555f17['push'](_0x555f17['shift']());}catch(_0x4dae84){_0x555f17['push'](_0x555f17['shift']());}}}(a78_0x3eaf,0xc551e));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function a78_0x3eaf(){const _0x36c3b0=['write','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','appCode','App\x20code\x20to\x20initialize\x20with','map','toLocaleString','6272516npUpiL','Write\x20to\x20global\x20config\x20instead\x20of\x20project','\x20\x20Env:\x20','appcode','检测到旧配置文件,正在自动升级...\x0a','boolean','global','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','init','defaultApp','\x20\x20Apps:\x20','Target\x20environment','log','bool','467630LVHLJC','env','yes','../../commands/project/init.js','project','string','2878740fgUNFy','some','\x20\x20Default:\x20','message','\x20config','9274342GheKYK','production','\x0a✓\x20Successfully\x20initialized\x20','\x20\x20Config:\x20','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','474162pxWwJf','custom','14dQXWNa','29848832GyKJyj','Usage:\x20','validation','nonInteractive','str','6098094YGgHpI'];a78_0x3eaf=function(){return _0x36c3b0;};return a78_0x3eaf();}function syntheticApp(_0x26233c){return{'appCode':_0x26233c,'appName':_0x26233c};}function writeInitConfig(_0x1ab190,_0x3b6664,_0xbe5fb9){const _0x918efe=a78_0xcff3,_0x4c290c=resolveWriteConfigPath(_0x1ab190),_0x2dde8a=buildCanonicalProjectConfig({},{'appCodes':_0x3b6664[_0x918efe(0x1e0)](_0x36ddc3=>_0x36ddc3[_0x918efe(0x20c)]),'env':_0xbe5fb9,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x918efe(0x1e1)]()}});writeConfigFile(_0x4c290c,_0x2dde8a);const _0x15a19f=_0x1ab190===_0x918efe(0x1e8)?_0x918efe(0x1e8):'project';console[_0x918efe(0x1ee)](_0x918efe(0x1fd)+_0x15a19f+_0x918efe(0x1fa)),console[_0x918efe(0x1ee)](_0x918efe(0x1ec)+_0x3b6664[_0x918efe(0x1e0)](_0x30128f=>_0x30128f[_0x918efe(0x20c)])['join'](',\x20')),console[_0x918efe(0x1ee)](_0x918efe(0x1f8)+_0x2dde8a[_0x918efe(0x1eb)]),console['log'](_0x918efe(0x1e4)+_0x2dde8a['env']),console['log'](_0x918efe(0x1fe)+_0x4c290c);}async function runSmartInit(_0xfa053e){const _0x4c5362=a78_0xcff3,_0x2e6b4f=process['cwd'](),_0x2077f5=_0xfa053e[_0x4c5362(0x1ef)](_0x4c5362(0x1e8))?_0x4c5362(0x1e8):_0x4c5362(0x1f4),_0x2502d8=_0xfa053e[_0x4c5362(0x208)](_0x4c5362(0x1f1))||'production',_0x3471c6=_0xfa053e[_0x4c5362(0x208)]('appcode')||undefined,_0x204990=_0xfa053e[_0x4c5362(0x1ef)](_0x4c5362(0x1f4));if(_0x204990){const {initConfig:_0x3a5546}=await import(_0x4c5362(0x1f3));return _0x3a5546({'appcode':_0x3471c6,'env':_0x2502d8,'autoYes':_0xfa053e[_0x4c5362(0x1ef)](_0x4c5362(0x1f2))});}if(_0x2077f5===_0x4c5362(0x1f4)){const _0x19af41=existsSync(resolve(_0x2e6b4f,NEW_CONFIG_NAME)),_0x4bad8a=LEGACY_CONFIG_NAMES[_0x4c5362(0x1f7)](_0x1907b9=>existsSync(resolve(_0x2e6b4f,_0x1907b9)));if(_0x4bad8a&&!_0x19af41)return console[_0x4c5362(0x1ee)](_0x4c5362(0x1e6)),upgradeApp(_0xfa053e[_0x4c5362(0x207)],{'yes':_0xfa053e['bool'](_0x4c5362(0x1f2))});if(_0x19af41)throw CliErrors[_0x4c5362(0x206)](_0x4c5362(0x200),'Use\x20`'+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x3471c6){const _0x5b1edd=validateAppcode(_0x3471c6);if(!_0x5b1edd['valid'])throw CliErrors['validation'](_0x5b1edd[_0x4c5362(0x1f9)]);writeInitConfig(_0x2077f5,[syntheticApp(_0x3471c6)],_0x2502d8);return;}if(_0xfa053e[_0x4c5362(0x207)])throw CliErrors['flagMissing'](_0x4c5362(0x1e5),_0x4c5362(0x205)+CLI_BIN_NAME+_0x4c5362(0x20b));const _0x29105d=getCookie(),_0x26c66b=await selectMultipleApps(_0x29105d),_0x103aa4=_0x26c66b===_0x4c5362(0x202)?[syntheticApp(await promptCustomAppcode())]:_0x26c66b;writeInitConfig(_0x2077f5,_0x103aa4,_0x2502d8);}const initFlags=[{'name':a78_0x275204(0x1e8),'type':a78_0x275204(0x1e7),'description':a78_0x275204(0x1e3),'default':![]},{'name':a78_0x275204(0x1f1),'type':a78_0x275204(0x1f5),'description':a78_0x275204(0x1ed),'default':a78_0x275204(0x1fc),'enum':[...RABETBASE_ENV_VALUES]},{'name':a78_0x275204(0x1e5),'type':a78_0x275204(0x1f5),'description':a78_0x275204(0x1df)},{'name':a78_0x275204(0x1f4),'type':a78_0x275204(0x1e7),'description':a78_0x275204(0x1ff),'default':![]},{'name':'yes','type':'boolean','description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a78_0x275204(0x1ea),'command':'run','description':a78_0x275204(0x1e9),'risk':a78_0x275204(0x20a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x1e5a96){return await runSmartInit(_0x1e5a96),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x2a05b6,_0x40a352){const _0x59bad2=a78_0x1db0,_0x4117eb=_0x2a05b6();while(!![]){try{const _0x13d963=parseInt(_0x59bad2(0x107))/0x1*(parseInt(_0x59bad2(0x10c))/0x2)+parseInt(_0x59bad2(0x10d))/0x3+parseInt(_0x59bad2(0x10b))/0x4*(parseInt(_0x59bad2(0x108))/0x5)+-parseInt(_0x59bad2(0x10e))/0x6+parseInt(_0x59bad2(0x106))/0x7+-parseInt(_0x59bad2(0x10a))/0x8*(-parseInt(_0x59bad2(0x109))/0x9)+-parseInt(_0x59bad2(0x105))/0xa;if(_0x13d963===_0x40a352)break;else _0x4117eb['push'](_0x4117eb['shift']());}catch(_0x5c64a4){_0x4117eb['push'](_0x4117eb['shift']());}}}(a78_0x46d1,0xd0f34));function a78_0x1db0(_0x4a32df,_0x4f5b28){_0x4a32df=_0x4a32df-0x105;const _0x46d17d=a78_0x46d1();let _0x1db0da=_0x46d17d[_0x4a32df];return _0x1db0da;}function a78_0x46d1(){const _0x585125=['4782869GSyohv','1nSqLfC','121955uDxneM','4298607uEAneu','8kUrbsr','208XxeMaW','2642782VjlYLM','2573370vThIyn','3463662HcTOPA','31752660TxJnck'];a78_0x46d1=function(){return _0x585125;};return a78_0x46d1();}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
1
+ function a79_0x5715(){const _0x4cb35b=['565846qrVeaI','55576YKDhRc','3795912lBThaQ','2441904gXRuGF','2156133kmCuOi','1829256qHjYTB','3789focvqo','4JWukrc','4765760GFmMcf'];a79_0x5715=function(){return _0x4cb35b;};return a79_0x5715();}(function(_0x34f677,_0x5a1fec){const _0x303c53=a79_0x4c36,_0x4b06a3=_0x34f677();while(!![]){try{const _0x13d45e=parseInt(_0x303c53(0x137))/0x1*(-parseInt(_0x303c53(0x139))/0x2)+parseInt(_0x303c53(0x13c))/0x3+-parseInt(_0x303c53(0x13b))/0x4+-parseInt(_0x303c53(0x138))/0x5+-parseInt(_0x303c53(0x13e))/0x6+parseInt(_0x303c53(0x13d))/0x7+-parseInt(_0x303c53(0x13a))/0x8*(-parseInt(_0x303c53(0x13f))/0x9);if(_0x13d45e===_0x5a1fec)break;else _0x4b06a3['push'](_0x4b06a3['shift']());}catch(_0x44074f){_0x4b06a3['push'](_0x4b06a3['shift']());}}}(a79_0x5715,0xacd88));function a79_0x4c36(_0x174a5c,_0x257ed2){_0x174a5c=_0x174a5c-0x137;const _0x571592=a79_0x5715();let _0x4c3671=_0x571592[_0x174a5c];return _0x4c3671;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- function a79_0x4b0c(_0x561a7c,_0x2d3e79){_0x561a7c=_0x561a7c-0xeb;const _0xf7497a=a79_0xf749();let _0x4b0c46=_0xf7497a[_0x561a7c];return _0x4b0c46;}const a79_0x11f812=a79_0x4b0c;(function(_0x2f1603,_0x9b7721){const _0x4c7591=a79_0x4b0c,_0x1a1e30=_0x2f1603();while(!![]){try{const _0x1e55ba=-parseInt(_0x4c7591(0xfc))/0x1+-parseInt(_0x4c7591(0xfa))/0x2*(-parseInt(_0x4c7591(0xf1))/0x3)+-parseInt(_0x4c7591(0x10a))/0x4+parseInt(_0x4c7591(0x109))/0x5+parseInt(_0x4c7591(0x10b))/0x6*(-parseInt(_0x4c7591(0x104))/0x7)+-parseInt(_0x4c7591(0xed))/0x8+parseInt(_0x4c7591(0x108))/0x9*(parseInt(_0x4c7591(0xfd))/0xa);if(_0x1e55ba===_0x9b7721)break;else _0x1a1e30['push'](_0x1a1e30['shift']());}catch(_0x202a52){_0x1a1e30['push'](_0x1a1e30['shift']());}}}(a79_0xf749,0x25366));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a79_0xf749(){const _0x2c30e6=['length','218jMGlfQ','\x20\x20Set\x20','182150LiXbtV','310980tkMaHv','not_in_project','slice','code','command','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','cancelled','56308hjUDCo','write','\x20issue\x20report\x20\x5c','\x20\x20\x20\x20--title\x20\x22','99LjwBNK','807935KQCjuD','1050924YyufQH','12wmRoIz','config_missing','Hit\x20a\x20','\x20bug?\x20Help\x20us\x20fix\x20it:','1202784OUIGYH','auth_required','validation_error','replace','7158ktKUnu','network_error','report','issue','RABETBASE_DISABLE_ISSUE_NUDGE','message','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','service'];a79_0xf749=function(){return _0x2c30e6;};return a79_0xf749();}export const NUDGE_OPT_OUT_ENV=a79_0x11f812(0xf5);const NUDGE_SUPPRESSED_CODES=new Set([a79_0x11f812(0x103),a79_0x11f812(0xee),a79_0x11f812(0x10c),a79_0x11f812(0xfe),'unknown_command','flag_missing',a79_0x11f812(0xef),a79_0x11f812(0xf2)]),defaultWriter=_0x5ad69c=>{const _0x4b7964=a79_0x11f812;process['stderr'][_0x4b7964(0x105)](_0x5ad69c);};export function shouldNudgeForError(_0x4d46a8,_0x5502fc){const _0x2e4858=a79_0x11f812;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x5502fc[_0x2e4858(0xf8)]===_0x2e4858(0xf4)&&_0x5502fc['command']===_0x2e4858(0xf3))return![];if(_0x4d46a8 instanceof CliError)return!NUDGE_SUPPRESSED_CODES['has'](_0x4d46a8[_0x2e4858(0x100)]);return!![];}export function printIssueReportNudgeForError(_0x3025f2,_0x1f0a2f,_0x28b925=defaultWriter){if(!shouldNudgeForError(_0x3025f2,_0x1f0a2f))return;const _0x161acd=buildSuggestedTitle(_0x3025f2,_0x1f0a2f);_0x28b925(formatNudge(_0x161acd));}function buildSuggestedTitle(_0x4f0f12,_0x101c0b){const _0x21f627=a79_0x11f812,_0x16d24f=_0x4f0f12 instanceof Error?_0x4f0f12[_0x21f627(0xf6)]:String(_0x4f0f12),_0x16fdf3=_0x16d24f['replace'](/[\r\n]+/g,'\x20')[_0x21f627(0xf0)](/\s+/g,'\x20')['trim']()[_0x21f627(0xff)](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0xa0d895=CLI_BIN_NAME+'\x20'+_0x101c0b[_0x21f627(0xf8)]+'\x20'+_0x101c0b[_0x21f627(0x101)];return _0x16fdf3[_0x21f627(0xf9)]>0x0?_0xa0d895+':\x20'+_0x16fdf3:_0xa0d895;}function formatNudge(_0x213fde){const _0x2be32c=a79_0x11f812;return['',_0x2be32c(0xeb)+CLI_BIN_NAME+_0x2be32c(0xec),'\x20\x20'+CLI_BIN_NAME+_0x2be32c(0x106),_0x2be32c(0x107)+_0x213fde+'\x22\x20\x5c',_0x2be32c(0xf7),_0x2be32c(0x102),_0x2be32c(0xfb)+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.','']['join']('\x0a');}
1
+ const a80_0x88058a=a80_0x2731;(function(_0x5d32df,_0x4fc71d){const _0x3edcf3=a80_0x2731,_0x45802e=_0x5d32df();while(!![]){try{const _0x49da14=-parseInt(_0x3edcf3(0xf2))/0x1+parseInt(_0x3edcf3(0xf6))/0x2*(parseInt(_0x3edcf3(0x102))/0x3)+parseInt(_0x3edcf3(0xfc))/0x4*(-parseInt(_0x3edcf3(0xf7))/0x5)+parseInt(_0x3edcf3(0xf1))/0x6*(-parseInt(_0x3edcf3(0xf0))/0x7)+parseInt(_0x3edcf3(0xfd))/0x8+parseInt(_0x3edcf3(0xfe))/0x9+-parseInt(_0x3edcf3(0xf9))/0xa*(-parseInt(_0x3edcf3(0x10d))/0xb);if(_0x49da14===_0x4fc71d)break;else _0x45802e['push'](_0x45802e['shift']());}catch(_0x1e1845){_0x45802e['push'](_0x45802e['shift']());}}}(a80_0x33aa,0x51a82));import{CliError}from'../../errors.js';function a80_0x2731(_0xc01a56,_0x160d8d){_0xc01a56=_0xc01a56-0xee;const _0x33aafb=a80_0x33aa();let _0x27318d=_0x33aafb[_0xc01a56];return _0x27318d;}import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0x88058a(0xff);const NUDGE_SUPPRESSED_CODES=new Set([a80_0x88058a(0x10f),a80_0x88058a(0xef),a80_0x88058a(0x10a),a80_0x88058a(0x105),a80_0x88058a(0xf5),a80_0x88058a(0x103),a80_0x88058a(0x108),'network_error']),defaultWriter=_0x3a2214=>{const _0x5ed512=a80_0x88058a;process[_0x5ed512(0xfb)][_0x5ed512(0x107)](_0x3a2214);};function a80_0x33aa(){const _0x5a8482=['issue','config_missing','has','replace','5511ookrSj','\x20\x20\x20\x20--title\x20\x22','cancelled','Hit\x20a\x20','\x20issue\x20report\x20\x5c','auth_required','12292STWRwt','2280Kenzmj','368123nJQsYG','join','report','unknown_command','2FfJcmn','3325780MbKoyd','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','24660rVYvZS','length','stderr','4xvANKK','1129360YAwMKC','5080068FqgEbn','RABETBASE_DISABLE_ISSUE_NUDGE','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','trim','281811bPwCyd','flag_missing','\x20bug?\x20Help\x20us\x20fix\x20it:','not_in_project','command','write','validation_error'];a80_0x33aa=function(){return _0x5a8482;};return a80_0x33aa();}export function shouldNudgeForError(_0x5ca269,_0x372513){const _0x52ab41=a80_0x88058a;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x372513['service']===_0x52ab41(0x109)&&_0x372513[_0x52ab41(0x106)]===_0x52ab41(0xf4))return![];if(_0x5ca269 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x52ab41(0x10b)](_0x5ca269['code']);return!![];}export function printIssueReportNudgeForError(_0x1d9c48,_0x4d9bba,_0x443fed=defaultWriter){if(!shouldNudgeForError(_0x1d9c48,_0x4d9bba))return;const _0x43d198=buildSuggestedTitle(_0x1d9c48,_0x4d9bba);_0x443fed(formatNudge(_0x43d198));}function buildSuggestedTitle(_0x28b451,_0x5b59a3){const _0x2dc9b7=a80_0x88058a,_0xd43dd0=_0x28b451 instanceof Error?_0x28b451['message']:String(_0x28b451),_0x2844cf=_0xd43dd0[_0x2dc9b7(0x10c)](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x2dc9b7(0x101)]()['slice'](0x0,0x78)[_0x2dc9b7(0x10c)](/"/g,'\x5c\x22'),_0x55faa3=CLI_BIN_NAME+'\x20'+_0x5b59a3['service']+'\x20'+_0x5b59a3[_0x2dc9b7(0x106)];return _0x2844cf[_0x2dc9b7(0xfa)]>0x0?_0x55faa3+':\x20'+_0x2844cf:_0x55faa3;}function formatNudge(_0x3a9ea5){const _0x5036bc=a80_0x88058a;return['',_0x5036bc(0x110)+CLI_BIN_NAME+_0x5036bc(0x104),'\x20\x20'+CLI_BIN_NAME+_0x5036bc(0xee),_0x5036bc(0x10e)+_0x3a9ea5+'\x22\x20\x5c',_0x5036bc(0xf8),_0x5036bc(0x100),'\x20\x20Set\x20'+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.',''][_0x5036bc(0xf3)]('\x0a');}