@lovrabet/rabetbase-cli 2.1.10-beta.0 → 2.1.10-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 (197) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/delete.js +1 -1
  52. package/lib/commands/dataset/detail.js +1 -1
  53. package/lib/commands/dataset/field-update.js +1 -1
  54. package/lib/commands/dataset/index.js +1 -1
  55. package/lib/commands/dataset/link-create.js +1 -1
  56. package/lib/commands/dataset/link-delete.js +1 -1
  57. package/lib/commands/dataset/link-shared.js +1 -1
  58. package/lib/commands/dataset/link-update.js +1 -1
  59. package/lib/commands/dataset/links.js +1 -1
  60. package/lib/commands/dataset/list.js +1 -1
  61. package/lib/commands/dataset/operations.js +1 -1
  62. package/lib/commands/db/analyze-cancel.js +1 -1
  63. package/lib/commands/db/analyze-start.js +1 -1
  64. package/lib/commands/db/analyze-status.js +1 -1
  65. package/lib/commands/db/create.js +1 -1
  66. package/lib/commands/db/delete.js +1 -1
  67. package/lib/commands/db/detail.js +1 -1
  68. package/lib/commands/db/diff.js +1 -1
  69. package/lib/commands/db/index.js +1 -1
  70. package/lib/commands/db/list.js +1 -1
  71. package/lib/commands/db/shared.js +1 -1
  72. package/lib/commands/db/tables.js +1 -1
  73. package/lib/commands/db/test.js +1 -1
  74. package/lib/commands/db/update.js +1 -1
  75. package/lib/commands/doctor.js +1 -1
  76. package/lib/commands/init/index.js +1 -1
  77. package/lib/commands/issue/index.js +1 -1
  78. package/lib/commands/issue/report.js +1 -1
  79. package/lib/commands/logs/index.js +1 -1
  80. package/lib/commands/menu/index.js +1 -1
  81. package/lib/commands/menu/shared/compare-table.js +1 -1
  82. package/lib/commands/menu/shared/index.js +1 -1
  83. package/lib/commands/menu/shared/inquirer.js +1 -1
  84. package/lib/commands/menu/shared/local-pages.js +1 -1
  85. package/lib/commands/menu/shared/logic.js +1 -1
  86. package/lib/commands/menu/shared/service.js +1 -1
  87. package/lib/commands/menu/shared/sync-core.js +1 -1
  88. package/lib/commands/menu/shared/update-core.js +1 -1
  89. package/lib/commands/menu/shared/valid-url.js +1 -1
  90. package/lib/commands/menu/sync.js +1 -1
  91. package/lib/commands/menu/update.js +1 -1
  92. package/lib/commands/page/generate-start.js +1 -1
  93. package/lib/commands/page/generate-status.js +1 -1
  94. package/lib/commands/page/index.js +1 -1
  95. package/lib/commands/page/pull.js +1 -1
  96. package/lib/commands/page/push.js +1 -1
  97. package/lib/commands/page/shared.js +1 -1
  98. package/lib/commands/page/standard-page-status.js +1 -1
  99. package/lib/commands/page/sync.js +1 -1
  100. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  101. package/lib/commands/project/create/format-elapsed.js +1 -1
  102. package/lib/commands/project/create/main.js +1 -1
  103. package/lib/commands/project/create/non-interactive.js +1 -1
  104. package/lib/commands/project/create/project-template-path.js +1 -1
  105. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  106. package/lib/commands/project/create/use-format-code.js +1 -1
  107. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  108. package/lib/commands/project/index.js +1 -1
  109. package/lib/commands/project/init.js +1 -1
  110. package/lib/commands/project/upgrade.js +1 -1
  111. package/lib/commands/registry.js +1 -1
  112. package/lib/commands/run/index.js +1 -1
  113. package/lib/commands/schema.js +1 -1
  114. package/lib/commands/skill/index.js +1 -1
  115. package/lib/commands/sql/create.js +1 -1
  116. package/lib/commands/sql/delete.js +1 -1
  117. package/lib/commands/sql/detail.js +1 -1
  118. package/lib/commands/sql/exec.js +1 -1
  119. package/lib/commands/sql/index.js +1 -1
  120. package/lib/commands/sql/list.js +1 -1
  121. package/lib/commands/sql/pull.js +1 -1
  122. package/lib/commands/sql/push.js +1 -1
  123. package/lib/commands/sql/save.js +1 -1
  124. package/lib/commands/sql/shared.js +1 -1
  125. package/lib/commands/sql/status.js +1 -1
  126. package/lib/commands/sql/validate.js +1 -1
  127. package/lib/config/schema.js +1 -1
  128. package/lib/constant/cdn.js +1 -1
  129. package/lib/constant/cli.js +1 -1
  130. package/lib/constant/defaults.js +1 -1
  131. package/lib/constant/domain.js +1 -1
  132. package/lib/constant/env.js +1 -1
  133. package/lib/constant/output.js +1 -1
  134. package/lib/constant/paths.js +1 -1
  135. package/lib/constant/risk.js +1 -1
  136. package/lib/context.js +1 -1
  137. package/lib/core/alias-resolver.js +1 -1
  138. package/lib/core/api-client.js +1 -1
  139. package/lib/core/bff/config.js +1 -1
  140. package/lib/core/bff/file-system.js +1 -1
  141. package/lib/core/bff/hash.js +1 -1
  142. package/lib/core/bff/lock.js +1 -1
  143. package/lib/core/bff/utils.js +1 -1
  144. package/lib/core/db-resolver.js +1 -1
  145. package/lib/core/page/file-system.js +1 -1
  146. package/lib/core/page/hash.js +1 -1
  147. package/lib/core/page/lock.js +1 -1
  148. package/lib/core/sql-sync/config.js +1 -1
  149. package/lib/core/sql-sync/file-system.js +1 -1
  150. package/lib/core/sql-sync/hash.js +1 -1
  151. package/lib/core/sql-sync/lock.js +1 -1
  152. package/lib/core/sql-sync/utils.js +1 -1
  153. package/lib/core/sql-validator.js +1 -1
  154. package/lib/errors.js +1 -1
  155. package/lib/framework/build-all-flags.js +1 -1
  156. package/lib/framework/flags.js +1 -1
  157. package/lib/framework/help.js +1 -1
  158. package/lib/framework/index.js +1 -1
  159. package/lib/framework/output.js +1 -1
  160. package/lib/framework/response.js +1 -1
  161. package/lib/framework/runner-alias.js +1 -1
  162. package/lib/framework/runner.js +1 -1
  163. package/lib/framework/schema-export.js +1 -1
  164. package/lib/framework/types.js +1 -1
  165. package/lib/generated/build-info.js +1 -1
  166. package/lib/help.js +1 -1
  167. package/lib/skills/main.js +1 -1
  168. package/lib/skills/npx-skills-add.js +1 -1
  169. package/lib/telemetry/cli-command-trace.js +1 -1
  170. package/lib/telemetry/cli-help-trace.js +1 -1
  171. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  172. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  173. package/lib/telemetry/send-cli-trace-log.js +1 -1
  174. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  175. package/lib/utils/ai_config.js +1 -1
  176. package/lib/utils/apply-jq-filter.js +1 -1
  177. package/lib/utils/cdn-config.js +1 -1
  178. package/lib/utils/check-sdk-version.js +1 -1
  179. package/lib/utils/cli-version-check.js +1 -1
  180. package/lib/utils/cli-version-policy.js +1 -1
  181. package/lib/utils/config.js +1 -1
  182. package/lib/utils/copy-directory.js +1 -1
  183. package/lib/utils/entity-with-id.js +1 -1
  184. package/lib/utils/file-utils.js +1 -1
  185. package/lib/utils/guides-cdn.js +1 -1
  186. package/lib/utils/http-client.js +1 -1
  187. package/lib/utils/is-non-interactive.js +1 -1
  188. package/lib/utils/logger.js +1 -1
  189. package/lib/utils/params.js +1 -1
  190. package/lib/utils/platform.js +1 -1
  191. package/lib/utils/rules-cdn.js +1 -1
  192. package/lib/utils/sleep.js +1 -1
  193. package/lib/utils/template-replacer.js +1 -1
  194. package/lib/utils/version.js +1 -1
  195. package/lib/utils/with-active-cookie.js +1 -1
  196. package/lib/utils/write-cli-side-channel.js +1 -1
  197. package/package.json +2 -1
@@ -1 +1 @@
1
- const a66_0x279be5=a66_0x1d8a;(function(_0x2483f5,_0xddb63){const _0x502785=a66_0x1d8a,_0x1b709f=_0x2483f5();while(!![]){try{const _0x3b6f34=parseInt(_0x502785(0x109))/0x1*(-parseInt(_0x502785(0x112))/0x2)+parseInt(_0x502785(0x115))/0x3*(-parseInt(_0x502785(0x10f))/0x4)+-parseInt(_0x502785(0x10d))/0x5*(-parseInt(_0x502785(0x10c))/0x6)+parseInt(_0x502785(0x10e))/0x7+-parseInt(_0x502785(0x114))/0x8+parseInt(_0x502785(0x113))/0x9+parseInt(_0x502785(0x111))/0xa;if(_0x3b6f34===_0xddb63)break;else _0x1b709f['push'](_0x1b709f['shift']());}catch(_0x2b8316){_0x1b709f['push'](_0x1b709f['shift']());}}}(a66_0x195c,0xe8aa0));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a66_0x1d8a(_0x4a2df6,_0x51ad27){_0x4a2df6=_0x4a2df6-0x108;const _0x195cfc=a66_0x195c();let _0x1d8a0b=_0x195cfc[_0x4a2df6];return _0x1d8a0b;}function a66_0x195c(){const _0x5696dd=['num','detail','30DnxVNI','1236835Cuyvof','3183544APnECr','20WOrEQU','db\x20link\x20','17094170JaHvqe','46418gcAJGp','8814321tAfFgQ','11067968EffLRi','738966wALVhs','read','35EriOXR'];a66_0x195c=function(){return _0x5696dd;};return a66_0x195c();}export const dbDetail={'service':'db','command':a66_0x279be5(0x10b),'description':'Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','risk':a66_0x279be5(0x108),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x8db088){const _0x2e462c=a66_0x279be5,_0x14e83a=_0x8db088[_0x2e462c(0x10a)]('id'),_0x157792=await getDbLinkInfo(_0x14e83a);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x157792),'message':_0x2e462c(0x110)+_0x14e83a+':\x20'+_0x157792['dbName']};}};
1
+ const a66_0x4a41fd=a66_0x1a8e;(function(_0x1e3fea,_0x36758b){const _0x3526de=a66_0x1a8e,_0x39a040=_0x1e3fea();while(!![]){try{const _0x1944c2=-parseInt(_0x3526de(0x199))/0x1+parseInt(_0x3526de(0x198))/0x2*(-parseInt(_0x3526de(0x19d))/0x3)+-parseInt(_0x3526de(0x196))/0x4*(parseInt(_0x3526de(0x1a1))/0x5)+-parseInt(_0x3526de(0x19b))/0x6+-parseInt(_0x3526de(0x19c))/0x7*(-parseInt(_0x3526de(0x19a))/0x8)+-parseInt(_0x3526de(0x19e))/0x9+parseInt(_0x3526de(0x19f))/0xa;if(_0x1944c2===_0x36758b)break;else _0x39a040['push'](_0x39a040['shift']());}catch(_0x21648a){_0x39a040['push'](_0x39a040['shift']());}}}(a66_0x417a,0xa1c5b));import{getDbLinkInfo}from'../../core/api-client.js';function a66_0x417a(){const _0x59a218=['1056727ytISjL','690aKWyeE','119493RvrEuY','23096980FpTVmY','num','10RHOLNv','read','693404cLdoCV','db\x20link\x20','7876gacokh','661404tskJhj','64aTXjbH','5565864AwpoQj'];a66_0x417a=function(){return _0x59a218;};return a66_0x417a();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a66_0x1a8e(_0x26d9d5,_0x3ac377){_0x26d9d5=_0x26d9d5-0x196;const _0x417a9d=a66_0x417a();let _0x1a8e78=_0x417a9d[_0x26d9d5];return _0x1a8e78;}export const dbDetail={'service':'db','command':'detail','description':'Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','risk':a66_0x4a41fd(0x1a2),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0xb77350){const _0x5c1732=a66_0x4a41fd,_0x55cfaf=_0xb77350[_0x5c1732(0x1a0)]('id'),_0x4d5c14=await getDbLinkInfo(_0x55cfaf);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x4d5c14),'message':_0x5c1732(0x197)+_0x55cfaf+':\x20'+_0x4d5c14['dbName']};}};
@@ -1 +1 @@
1
- const a67_0x97a2be=a67_0x33d7;(function(_0x2137a9,_0x49c26a){const _0x3eb000=a67_0x33d7,_0x2daaca=_0x2137a9();while(!![]){try{const _0x5b51b2=-parseInt(_0x3eb000(0x1ad))/0x1*(-parseInt(_0x3eb000(0x1ac))/0x2)+-parseInt(_0x3eb000(0x1a9))/0x3*(-parseInt(_0x3eb000(0x1b2))/0x4)+parseInt(_0x3eb000(0x1ae))/0x5*(parseInt(_0x3eb000(0x1a6))/0x6)+parseInt(_0x3eb000(0x1b0))/0x7*(-parseInt(_0x3eb000(0x1a8))/0x8)+-parseInt(_0x3eb000(0x1b9))/0x9+parseInt(_0x3eb000(0x1ab))/0xa*(-parseInt(_0x3eb000(0x1a4))/0xb)+-parseInt(_0x3eb000(0x1a5))/0xc;if(_0x5b51b2===_0x49c26a)break;else _0x2daaca['push'](_0x2daaca['shift']());}catch(_0x11c37d){_0x2daaca['push'](_0x2daaca['shift']());}}}(a67_0xbd69,0x4f46e));import{getDbTableDiff}from'../../core/api-client.js';function a67_0xbd69(){const _0x5b82d1=['Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','4EOLXdl','\x20(db\x20link\x20','num','table','diff','pagesize','\x20row(s),\x20total\x20','511578rluBRQ','number','string','Page\x20index\x20(1-based)','page','length','31141FMpiTK','2736768vpbTUY','6IgYOKD','Page\x20size','2272jwlgNC','121194JieWyd','appCode','470CQHBGD','32eSupLE','34933ArrOik','1720715XJsNhg','str','4949kRNDrQ'];a67_0xbd69=function(){return _0x5b82d1;};return a67_0xbd69();}function a67_0x33d7(_0x6003b3,_0x117e4f){_0x6003b3=_0x6003b3-0x1a2;const _0xbd69b2=a67_0xbd69();let _0x33d7bb=_0xbd69b2[_0x6003b3];return _0x33d7bb;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDiff={'service':'db','command':a67_0x97a2be(0x1b6),'description':a67_0x97a2be(0x1b1),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a67_0x97a2be(0x1b5),'type':a67_0x97a2be(0x1bb),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':'page','type':a67_0x97a2be(0x1ba),'description':a67_0x97a2be(0x1bc),'default':0x1},{'name':a67_0x97a2be(0x1b7),'type':a67_0x97a2be(0x1ba),'description':a67_0x97a2be(0x1a7),'default':0x14}],async 'execute'(_0x42e97e){const _0x5c7443=a67_0x97a2be,_0x2b3a05=_0x42e97e['num']('id'),_0x493cf2=_0x42e97e[_0x5c7443(0x1b4)](_0x5c7443(0x1a2),0x1)||0x1,_0x439b44=_0x42e97e[_0x5c7443(0x1b4)]('pagesize',0x14)||0x14,_0x44f12e=_0x42e97e[_0x5c7443(0x1af)]('table')||undefined,{totalCount:_0x3ec5c7,tableList:_0x5c2d82}=await getDbTableDiff(_0x42e97e[_0x5c7443(0x1aa)],_0x2b3a05,{'pageIndex':_0x493cf2,'pageSize':_0x439b44,'tableName':_0x44f12e});return{'ok':!![],'data':{'dbLinkId':_0x2b3a05,'page':_0x493cf2,'pageSize':_0x439b44,'totalCount':_0x3ec5c7,'tableList':_0x5c2d82},'message':_0x5c2d82[_0x5c7443(0x1a3)]+_0x5c7443(0x1b8)+_0x3ec5c7+_0x5c7443(0x1b3)+_0x2b3a05+')'};}};
1
+ const a67_0x4ac734=a67_0x2e34;(function(_0x1b1249,_0x487457){const _0x2bfa1d=a67_0x2e34,_0x13c042=_0x1b1249();while(!![]){try{const _0x5467fa=parseInt(_0x2bfa1d(0x1c5))/0x1+parseInt(_0x2bfa1d(0x1c4))/0x2*(-parseInt(_0x2bfa1d(0x1d0))/0x3)+parseInt(_0x2bfa1d(0x1bd))/0x4*(parseInt(_0x2bfa1d(0x1cd))/0x5)+-parseInt(_0x2bfa1d(0x1c7))/0x6*(parseInt(_0x2bfa1d(0x1c0))/0x7)+-parseInt(_0x2bfa1d(0x1ce))/0x8*(-parseInt(_0x2bfa1d(0x1cf))/0x9)+parseInt(_0x2bfa1d(0x1c1))/0xa+-parseInt(_0x2bfa1d(0x1d4))/0xb;if(_0x5467fa===_0x487457)break;else _0x13c042['push'](_0x13c042['shift']());}catch(_0x529b55){_0x13c042['push'](_0x13c042['shift']());}}}(a67_0x3edd,0xe59ea));import{getDbTableDiff}from'../../core/api-client.js';function a67_0x3edd(){const _0x1e607f=['num','78992diRpHN','table','Page\x20size','14PjiUvx','3089360BkchxV','page','read','2356712aZEkwN','231011xXLCAQ','number','1222788mQgcSY','pagesize','str','\x20(db\x20link\x20','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','Page\x20index\x20(1-based)','415ddHnuY','6983528CwEcOB','9OjHAUY','3YrKMAM','length','\x20row(s),\x20total\x20','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','5780478DaVdgg'];a67_0x3edd=function(){return _0x1e607f;};return a67_0x3edd();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a67_0x2e34(_0x10c06b,_0x5a5bca){_0x10c06b=_0x10c06b-0x1bc;const _0x3edd8b=a67_0x3edd();let _0x2e34ef=_0x3edd8b[_0x10c06b];return _0x2e34ef;}export const dbDiff={'service':'db','command':'diff','description':a67_0x4ac734(0x1d3),'risk':a67_0x4ac734(0x1c3),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':'string','description':a67_0x4ac734(0x1cb)},{'name':a67_0x4ac734(0x1c2),'type':a67_0x4ac734(0x1c6),'description':a67_0x4ac734(0x1cc),'default':0x1},{'name':a67_0x4ac734(0x1c8),'type':a67_0x4ac734(0x1c6),'description':a67_0x4ac734(0x1bf),'default':0x14}],async 'execute'(_0x16cc61){const _0x21df3f=a67_0x4ac734,_0x30a653=_0x16cc61[_0x21df3f(0x1bc)]('id'),_0x36999c=_0x16cc61[_0x21df3f(0x1bc)]('page',0x1)||0x1,_0x3bbc52=_0x16cc61['num']('pagesize',0x14)||0x14,_0x562b78=_0x16cc61[_0x21df3f(0x1c9)](_0x21df3f(0x1be))||undefined,{totalCount:_0x2e8ab5,tableList:_0x32fa81}=await getDbTableDiff(_0x16cc61['appCode'],_0x30a653,{'pageIndex':_0x36999c,'pageSize':_0x3bbc52,'tableName':_0x562b78});return{'ok':!![],'data':{'dbLinkId':_0x30a653,'page':_0x36999c,'pageSize':_0x3bbc52,'totalCount':_0x2e8ab5,'tableList':_0x32fa81},'message':_0x32fa81[_0x21df3f(0x1d1)]+_0x21df3f(0x1d2)+_0x2e8ab5+_0x21df3f(0x1ca)+_0x30a653+')'};}};
@@ -1 +1 @@
1
- (function(_0x3a32c3,_0x4055cb){const _0x31e88d=a68_0x4ccd,_0x305da5=_0x3a32c3();while(!![]){try{const _0x197b1d=parseInt(_0x31e88d(0x19c))/0x1+-parseInt(_0x31e88d(0x19e))/0x2+-parseInt(_0x31e88d(0x1a0))/0x3+-parseInt(_0x31e88d(0x1a2))/0x4*(parseInt(_0x31e88d(0x1a1))/0x5)+-parseInt(_0x31e88d(0x19d))/0x6+parseInt(_0x31e88d(0x19f))/0x7*(parseInt(_0x31e88d(0x19a))/0x8)+-parseInt(_0x31e88d(0x1a3))/0x9*(-parseInt(_0x31e88d(0x19b))/0xa);if(_0x197b1d===_0x4055cb)break;else _0x305da5['push'](_0x305da5['shift']());}catch(_0x231fee){_0x305da5['push'](_0x305da5['shift']());}}}(a68_0x1311,0x5007e));function a68_0x4ccd(_0x419c88,_0x4f77ea){_0x419c88=_0x419c88-0x19a;const _0x131103=a68_0x1311();let _0x4ccd8e=_0x131103[_0x419c88];return _0x4ccd8e;}import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';function a68_0x1311(){const _0x2b5f88=['1879224rQGdoe','865954mpMAJX','7zVQtpj','314733udBLVh','32785kKzoRI','156iFAInl','1631484iSYDyr','1261520YGVimZ','60hBtTUZ','189275GYyrYP'];a68_0x1311=function(){return _0x2b5f88;};return a68_0x1311();}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
+ (function(_0x578d88,_0x57b83a){const _0x3d01ba=a68_0x7e70,_0x8f94d=_0x578d88();while(!![]){try{const _0x2c0d75=-parseInt(_0x3d01ba(0xb4))/0x1+-parseInt(_0x3d01ba(0xbb))/0x2+parseInt(_0x3d01ba(0xb6))/0x3*(-parseInt(_0x3d01ba(0xb5))/0x4)+parseInt(_0x3d01ba(0xb8))/0x5+parseInt(_0x3d01ba(0xb9))/0x6+parseInt(_0x3d01ba(0xba))/0x7*(-parseInt(_0x3d01ba(0xb7))/0x8)+parseInt(_0x3d01ba(0xbc))/0x9;if(_0x2c0d75===_0x57b83a)break;else _0x8f94d['push'](_0x8f94d['shift']());}catch(_0x31ce99){_0x8f94d['push'](_0x8f94d['shift']());}}}(a68_0x1c24,0x69098));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 a68_0x1c24(){const _0x1d12f7=['121008cFyQPp','1600184yMVLyu','3604400wSHYRq','3351174zoHwOG','21kPxwlZ','1491996FhTPhD','8730306qXpUpC','352136HVDExp','12gCJqcO'];a68_0x1c24=function(){return _0x1d12f7;};return a68_0x1c24();}import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';function a68_0x7e70(_0x39484e,_0x5eac56){_0x39484e=_0x39484e-0xb4;const _0x1c2474=a68_0x1c24();let _0x7e7046=_0x1c2474[_0x39484e];return _0x7e7046;}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 a69_0x3069(_0x1b83bd,_0x16e6b8){_0x1b83bd=_0x1b83bd-0xe3;const _0x1009bc=a69_0x1009();let _0x30697e=_0x1009bc[_0x1b83bd];return _0x30697e;}const a69_0x2b0b93=a69_0x3069;function a69_0x1009(){const _0x276018=['3806873rGLEmK','Page\x20index\x20(1-based)','Found\x20','num','6434112aroqTz','891680mfnOxz','length','number','1583818MLoyQe','1687179lXHiLZ','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','101010WjIECX','498SygHmn','1709sbmpRe','read','pagesize','360AZWAxz','Page\x20size','appCode','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'];a69_0x1009=function(){return _0x276018;};return a69_0x1009();}(function(_0x4e7f69,_0x8d839c){const _0x25b314=a69_0x3069,_0x515a42=_0x4e7f69();while(!![]){try{const _0x2c7190=-parseInt(_0x25b314(0xf4))/0x1+parseInt(_0x25b314(0xef))/0x2+-parseInt(_0x25b314(0xf0))/0x3+-parseInt(_0x25b314(0xeb))/0x4+-parseInt(_0x25b314(0xf2))/0x5*(parseInt(_0x25b314(0xf3))/0x6)+-parseInt(_0x25b314(0xe7))/0x7+-parseInt(_0x25b314(0xec))/0x8*(-parseInt(_0x25b314(0xe3))/0x9);if(_0x2c7190===_0x8d839c)break;else _0x515a42['push'](_0x515a42['shift']());}catch(_0x14fb07){_0x515a42['push'](_0x515a42['shift']());}}}(a69_0x1009,0xd13f2));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':'list','description':a69_0x2b0b93(0xf1),'risk':a69_0x2b0b93(0xf5),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':a69_0x2b0b93(0xee),'description':a69_0x2b0b93(0xe8),'default':0x1},{'name':a69_0x2b0b93(0xf6),'type':a69_0x2b0b93(0xee),'description':a69_0x2b0b93(0xe4),'default':0x64}],async 'execute'(_0x1bf94a){const _0x52a18f=a69_0x2b0b93,_0x58a63b=_0x1bf94a[_0x52a18f(0xea)]('page',0x1)||0x1,_0x4c0a33=_0x1bf94a['num'](_0x52a18f(0xf6),0x64)||0x64,{items:_0x516685,paging:_0x4d7ce3}=await listDbLinks(_0x1bf94a[_0x52a18f(0xe5)],{'currentPage':_0x58a63b,'pageSize':_0x4c0a33}),_0x14a537=sanitizeDbLinkList(_0x516685),_0x34e957=_0x4d7ce3?_0x4d7ce3:{'currentPage':_0x58a63b,'pageSize':_0x4c0a33,'rowsOnPage':_0x14a537['length'],'totalCount':null,'note':_0x52a18f(0xe6)};return{'ok':!![],'data':{'connections':_0x14a537,'paging':_0x34e957},'message':_0x52a18f(0xe9)+_0x14a537[_0x52a18f(0xed)]+'\x20database\x20connection(s)'};}};
1
+ function a69_0x515b(){const _0x325597=['Page\x20index\x20(1-based)','16PZaLxw','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','901649hmVArm','\x20database\x20connection(s)','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','35QqVWqJ','4304DCpSoo','pagesize','695616OdbXYs','Found\x20','1020fVJEHm','num','read','10wKwqJO','number','624519AGuDJj','76362YTgoaR','16234493WveRld','16652853hJwqEM','list'];a69_0x515b=function(){return _0x325597;};return a69_0x515b();}const a69_0x5dc5f8=a69_0x5205;(function(_0x45f1cf,_0x20ddd4){const _0x50ad10=a69_0x5205,_0x2dec91=_0x45f1cf();while(!![]){try{const _0x92d362=parseInt(_0x50ad10(0x1f6))/0x1+parseInt(_0x50ad10(0x1f7))/0x2+-parseInt(_0x50ad10(0x1f1))/0x3*(parseInt(_0x50ad10(0x1ed))/0x4)+parseInt(_0x50ad10(0x1ec))/0x5*(parseInt(_0x50ad10(0x1ef))/0x6)+-parseInt(_0x50ad10(0x1e9))/0x7*(-parseInt(_0x50ad10(0x1e6))/0x8)+-parseInt(_0x50ad10(0x1e3))/0x9*(parseInt(_0x50ad10(0x1f4))/0xa)+parseInt(_0x50ad10(0x1f8))/0xb;if(_0x92d362===_0x20ddd4)break;else _0x2dec91['push'](_0x2dec91['shift']());}catch(_0x27bff3){_0x2dec91['push'](_0x2dec91['shift']());}}}(a69_0x515b,0xf2154));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';function a69_0x5205(_0x583d28,_0x35657b){_0x583d28=_0x583d28-0x1e3;const _0x515b95=a69_0x515b();let _0x520516=_0x515b95[_0x583d28];return _0x520516;}export const dbList={'service':'db','command':a69_0x5dc5f8(0x1e4),'description':a69_0x5dc5f8(0x1e7),'risk':a69_0x5dc5f8(0x1f3),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a69_0x5dc5f8(0x1e8),'type':a69_0x5dc5f8(0x1f5),'description':a69_0x5dc5f8(0x1e5),'default':0x1},{'name':'pagesize','type':a69_0x5dc5f8(0x1f5),'description':'Page\x20size','default':0x64}],async 'execute'(_0x4c995d){const _0x34f96f=a69_0x5dc5f8,_0x356799=_0x4c995d[_0x34f96f(0x1f2)](_0x34f96f(0x1e8),0x1)||0x1,_0xd7bd41=_0x4c995d[_0x34f96f(0x1f2)](_0x34f96f(0x1ee),0x64)||0x64,{items:_0x2f9909,paging:_0x4927b3}=await listDbLinks(_0x4c995d['appCode'],{'currentPage':_0x356799,'pageSize':_0xd7bd41}),_0x50e2ee=sanitizeDbLinkList(_0x2f9909),_0x44e718=_0x4927b3?_0x4927b3:{'currentPage':_0x356799,'pageSize':_0xd7bd41,'rowsOnPage':_0x50e2ee['length'],'totalCount':null,'note':_0x34f96f(0x1eb)};return{'ok':!![],'data':{'connections':_0x50e2ee,'paging':_0x44e718},'message':_0x34f96f(0x1f0)+_0x50e2ee['length']+_0x34f96f(0x1ea)};}};
@@ -1 +1 @@
1
- function a70_0x3828(_0x292e4c,_0x2a64e6){_0x292e4c=_0x292e4c-0x165;const _0xfc7d29=a70_0xfc7d();let _0x382823=_0xfc7d29[_0x292e4c];return _0x382823;}(function(_0x19b0bf,_0x7dd53a){const _0x3851ce=a70_0x3828,_0x44c768=_0x19b0bf();while(!![]){try{const _0x5de324=parseInt(_0x3851ce(0x174))/0x1+-parseInt(_0x3851ce(0x176))/0x2+parseInt(_0x3851ce(0x17d))/0x3*(-parseInt(_0x3851ce(0x173))/0x4)+parseInt(_0x3851ce(0x17a))/0x5+-parseInt(_0x3851ce(0x16e))/0x6+parseInt(_0x3851ce(0x178))/0x7+parseInt(_0x3851ce(0x167))/0x8;if(_0x5de324===_0x7dd53a)break;else _0x44c768['push'](_0x44c768['shift']());}catch(_0x116a60){_0x44c768['push'](_0x44c768['shift']());}}}(a70_0xfc7d,0x1e879));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0x2cd487){const _0x1bd922=a70_0x3828,_0x3c2a0c=_0x2cd487[_0x1bd922(0x17b)]();if(_0x3c2a0c===_0x1bd922(0x177)||_0x3c2a0c===_0x1bd922(0x166)||_0x3c2a0c===_0x1bd922(0x16f))return!![];if(_0x3c2a0c[_0x1bd922(0x165)](_0x1bd922(0x179))||_0x3c2a0c[_0x1bd922(0x165)](_0x1bd922(0x172))||_0x3c2a0c[_0x1bd922(0x165)]('credential'))return!![];if(_0x3c2a0c[_0x1bd922(0x165)](_0x1bd922(0x16a))||_0x3c2a0c[_0x1bd922(0x165)](_0x1bd922(0x171)))return!![];if(_0x3c2a0c==='authorization'||_0x3c2a0c==='connectionstring'||_0x3c2a0c===_0x1bd922(0x175))return!![];return![];}export function sanitizeDbLinkForOutput(_0x20bbf0){const _0x536ad6=a70_0x3828,_0x2ec1d1={..._0x20bbf0};for(const _0x20e06d of Object[_0x536ad6(0x168)](_0x2ec1d1)){if(!shouldRedactKey(_0x20e06d))continue;const _0x29231d=_0x2ec1d1[_0x20e06d];_0x29231d!=null&&String(_0x29231d)['length']>0x0&&(_0x2ec1d1[_0x20e06d]='[redacted]');}return _0x2ec1d1;}export function sanitizeDbLinkList(_0x315bd6){const _0x3b4d30=a70_0x3828;return _0x315bd6[_0x3b4d30(0x16c)](_0x429440=>sanitizeDbLinkForOutput(_0x429440));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x5e9565){const _0x39be13=a70_0x3828,_0x475792=_0x5e9565['trim']();if(!_0x475792)return![];return DB_URL_PATTERN[_0x39be13(0x17c)](_0x475792);}function a70_0xfc7d(){const _0x5b59ea=['1648689mohjff','secret','141220JYxrHO','toLowerCase','test','272571OeKFvF','includes','passwd','1669640rOtABc','keys','isFinite','privatekey','https://daily.lovrabet.com/web-app/app/','map','trim','788448QHbkDA','dbpassword','number','accesskey','token','8XrBgvl','188314pCvEeU','jdbcurl','445238tgFtNe','password'];a70_0xfc7d=function(){return _0x5b59ea;};return a70_0xfc7d();}export function buildDbPageLinks(_0x361340,_0x3fdb67){const _0x17fac6=a70_0x3828,_0x31c1e1=_0x361340?.[_0x17fac6(0x16d)]();if(!_0x31c1e1)return undefined;const _0x29b02e=typeof _0x3fdb67===_0x17fac6(0x170)?String(_0x3fdb67):String(_0x3fdb67??'')[_0x17fac6(0x16d)]();if(!_0x29b02e)return undefined;const _0x56fdb5=Number(_0x29b02e);if(!Number[_0x17fac6(0x169)](_0x56fdb5)||_0x56fdb5<=0x0)return undefined;const _0x57822f=isDaily(normalizeEnv(getEnv()))?_0x17fac6(0x16b)+encodeURIComponent(_0x31c1e1):'https://app.lovrabet.com/app/'+encodeURIComponent(_0x31c1e1),_0x3c8335=encodeURIComponent(String(_0x56fdb5));return{'databasePage':_0x57822f+'/data/database','erPage':_0x57822f+'/data/er?dbId='+_0x3c8335};}
1
+ (function(_0x1948f2,_0x7038b7){const _0x298a80=a70_0x57d7,_0x510ffb=_0x1948f2();while(!![]){try{const _0x159c72=-parseInt(_0x298a80(0xea))/0x1*(-parseInt(_0x298a80(0xf3))/0x2)+parseInt(_0x298a80(0x100))/0x3*(-parseInt(_0x298a80(0xfb))/0x4)+parseInt(_0x298a80(0xf4))/0x5*(-parseInt(_0x298a80(0xe8))/0x6)+-parseInt(_0x298a80(0xec))/0x7*(parseInt(_0x298a80(0xfc))/0x8)+parseInt(_0x298a80(0xf2))/0x9*(-parseInt(_0x298a80(0xe4))/0xa)+-parseInt(_0x298a80(0x102))/0xb*(parseInt(_0x298a80(0xe5))/0xc)+parseInt(_0x298a80(0xfe))/0xd;if(_0x159c72===_0x7038b7)break;else _0x510ffb['push'](_0x510ffb['shift']());}catch(_0x1bcdb0){_0x510ffb['push'](_0x510ffb['shift']());}}}(a70_0x4012,0x3528d));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0x2ae100){const _0x2842db=a70_0x57d7,_0x3ddce6=_0x2ae100['toLowerCase']();if(_0x3ddce6===_0x2842db(0x105)||_0x3ddce6===_0x2842db(0xf9)||_0x3ddce6===_0x2842db(0x104))return!![];if(_0x3ddce6[_0x2842db(0xed)](_0x2842db(0xf5))||_0x3ddce6[_0x2842db(0xed)](_0x2842db(0xfd))||_0x3ddce6['includes'](_0x2842db(0xe6)))return!![];if(_0x3ddce6[_0x2842db(0xed)](_0x2842db(0xee))||_0x3ddce6['includes'](_0x2842db(0xef)))return!![];if(_0x3ddce6===_0x2842db(0xf7)||_0x3ddce6===_0x2842db(0xe7)||_0x3ddce6===_0x2842db(0xe3))return!![];return![];}function a70_0x57d7(_0x5ae4bf,_0x78fec8){_0x5ae4bf=_0x5ae4bf-0xe3;const _0x4012aa=a70_0x4012();let _0x57d7f5=_0x4012aa[_0x5ae4bf];return _0x57d7f5;}export function sanitizeDbLinkForOutput(_0x2e39e3){const _0x3baa84=a70_0x57d7,_0x35006f={..._0x2e39e3};for(const _0x15a3fb of Object[_0x3baa84(0xf8)](_0x35006f)){if(!shouldRedactKey(_0x15a3fb))continue;const _0x1be45=_0x35006f[_0x15a3fb];_0x1be45!=null&&String(_0x1be45)[_0x3baa84(0xfa)]>0x0&&(_0x35006f[_0x15a3fb]='[redacted]');}return _0x35006f;}export function sanitizeDbLinkList(_0x251ce8){const _0x198774=a70_0x57d7;return _0x251ce8[_0x198774(0xeb)](_0x1441ba=>sanitizeDbLinkForOutput(_0x1441ba));}function a70_0x4012(){const _0x3899ab=['keys','passwd','length','568ELnMCY','56leWmDr','token','14285817UcrlAY','number','6687RNPvpY','isFinite','180213NdjvPc','https://daily.lovrabet.com/web-app/app/','dbpassword','password','https://app.lovrabet.com/app/','jdbcurl','10hNRLDA','180eVqyhx','credential','connectionstring','336348HCtOgC','/data/er?dbId=','5078wVEzAg','map','190715mPKZkF','includes','privatekey','accesskey','/data/database','trim','598086pSOAca','64ylTPCK','20bPbQGZ','secret','test','authorization'];a70_0x4012=function(){return _0x3899ab;};return a70_0x4012();}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x2156de){const _0x29d12a=a70_0x57d7,_0x1a59c2=_0x2156de['trim']();if(!_0x1a59c2)return![];return DB_URL_PATTERN[_0x29d12a(0xf6)](_0x1a59c2);}export function buildDbPageLinks(_0x387fd3,_0x38013e){const _0x2f6938=a70_0x57d7,_0xb4c977=_0x387fd3?.[_0x2f6938(0xf1)]();if(!_0xb4c977)return undefined;const _0x3cbdbb=typeof _0x38013e===_0x2f6938(0xff)?String(_0x38013e):String(_0x38013e??'')[_0x2f6938(0xf1)]();if(!_0x3cbdbb)return undefined;const _0x32e0fb=Number(_0x3cbdbb);if(!Number[_0x2f6938(0x101)](_0x32e0fb)||_0x32e0fb<=0x0)return undefined;const _0x403ec0=isDaily(normalizeEnv(getEnv()))?_0x2f6938(0x103)+encodeURIComponent(_0xb4c977):_0x2f6938(0x106)+encodeURIComponent(_0xb4c977),_0x25ea99=encodeURIComponent(String(_0x32e0fb));return{'databasePage':_0x403ec0+_0x2f6938(0xf0),'erPage':_0x403ec0+_0x2f6938(0xe9)+_0x25ea99};}
@@ -1 +1 @@
1
- function a71_0x5eb3(_0x48803f,_0xb9fd51){_0x48803f=_0x48803f-0x1bc;const _0x1eb22a=a71_0x1eb2();let _0x5eb3b0=_0x1eb22a[_0x48803f];return _0x5eb3b0;}const a71_0x5c2f7c=a71_0x5eb3;(function(_0x95853b,_0x3d0ead){const _0x2a3ea6=a71_0x5eb3,_0x44f30d=_0x95853b();while(!![]){try{const _0x402386=-parseInt(_0x2a3ea6(0x1c0))/0x1*(-parseInt(_0x2a3ea6(0x1c5))/0x2)+parseInt(_0x2a3ea6(0x1c6))/0x3+parseInt(_0x2a3ea6(0x1bc))/0x4*(-parseInt(_0x2a3ea6(0x1bd))/0x5)+-parseInt(_0x2a3ea6(0x1ca))/0x6+-parseInt(_0x2a3ea6(0x1bf))/0x7+-parseInt(_0x2a3ea6(0x1c8))/0x8+-parseInt(_0x2a3ea6(0x1c7))/0x9*(-parseInt(_0x2a3ea6(0x1c1))/0xa);if(_0x402386===_0x3d0ead)break;else _0x44f30d['push'](_0x44f30d['shift']());}catch(_0x1416da){_0x44f30d['push'](_0x44f30d['shift']());}}}(a71_0x1eb2,0x62671));function a71_0x1eb2(){const _0x2a664f=['4VrKlmq','1603150eLEcAP','appCode','4773216KXgQFB','25NhgnzU','530SlkFBH','read','tables','num','46918iEdxmi','1726092kdsyJd','81594Fwnpyj','1445200EFqEIR','length','336672evitwZ'];a71_0x1eb2=function(){return _0x2a664f;};return a71_0x1eb2();}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':a71_0x5c2f7c(0x1c3),'description':'List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','risk':a71_0x5c2f7c(0x1c2),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1c225d){const _0x14c783=a71_0x5c2f7c,_0x1d7ed6=_0x1c225d[_0x14c783(0x1c4)]('id'),_0x12e842=await getDbAllTableList(_0x1c225d[_0x14c783(0x1be)],_0x1d7ed6);return{'ok':!![],'data':{'dbLinkId':_0x1d7ed6,'total':_0x12e842['length'],'tables':_0x12e842},'message':_0x12e842[_0x14c783(0x1c9)]+'\x20table(s)\x20on\x20db\x20link\x20'+_0x1d7ed6};}};
1
+ const a71_0x1af125=a71_0x4363;function a71_0x4363(_0x43f13b,_0x187ca1){_0x43f13b=_0x43f13b-0x1c6;const _0x13b86e=a71_0x13b8();let _0x436318=_0x13b86e[_0x43f13b];return _0x436318;}(function(_0x356663,_0x5e557b){const _0x11f2b1=a71_0x4363,_0x3b2d4f=_0x356663();while(!![]){try{const _0x36641a=-parseInt(_0x11f2b1(0x1d2))/0x1*(parseInt(_0x11f2b1(0x1d0))/0x2)+-parseInt(_0x11f2b1(0x1cd))/0x3*(parseInt(_0x11f2b1(0x1d5))/0x4)+parseInt(_0x11f2b1(0x1d3))/0x5+-parseInt(_0x11f2b1(0x1c8))/0x6+-parseInt(_0x11f2b1(0x1c7))/0x7+parseInt(_0x11f2b1(0x1d4))/0x8*(-parseInt(_0x11f2b1(0x1ca))/0x9)+parseInt(_0x11f2b1(0x1d1))/0xa*(parseInt(_0x11f2b1(0x1ce))/0xb);if(_0x36641a===_0x5e557b)break;else _0x3b2d4f['push'](_0x3b2d4f['shift']());}catch(_0x123389){_0x3b2d4f['push'](_0x3b2d4f['shift']());}}}(a71_0x13b8,0x2619b));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a71_0x13b8(){const _0x2c286e=['214962efevmZ','read','26469KMoMwt','\x20table(s)\x20on\x20db\x20link\x20','length','551622xGcYvB','11yQxtgK','appCode','16OaqjJb','7975170gcwVQM','26020EXhbes','1412005EyqbfX','736sndqCh','4SeLtAl','num','1577982ObvEFm'];a71_0x13b8=function(){return _0x2c286e;};return a71_0x13b8();}export const dbTables={'service':'db','command':'tables','description':'List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','risk':a71_0x1af125(0x1c9),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2f0d15){const _0x175953=a71_0x1af125,_0x10e525=_0x2f0d15[_0x175953(0x1c6)]('id'),_0x3847b9=await getDbAllTableList(_0x2f0d15[_0x175953(0x1cf)],_0x10e525);return{'ok':!![],'data':{'dbLinkId':_0x10e525,'total':_0x3847b9[_0x175953(0x1cc)],'tables':_0x3847b9},'message':_0x3847b9[_0x175953(0x1cc)]+_0x175953(0x1cb)+_0x10e525};}};
@@ -1 +1 @@
1
- const a72_0x3d9b86=a72_0x1a91;(function(_0x205258,_0x1772f7){const _0x36b564=a72_0x1a91,_0x2e1ce3=_0x205258();while(!![]){try{const _0x49683a=-parseInt(_0x36b564(0x134))/0x1+-parseInt(_0x36b564(0x136))/0x2*(parseInt(_0x36b564(0x13e))/0x3)+-parseInt(_0x36b564(0x13d))/0x4*(parseInt(_0x36b564(0x13c))/0x5)+parseInt(_0x36b564(0x139))/0x6*(parseInt(_0x36b564(0x137))/0x7)+-parseInt(_0x36b564(0x130))/0x8+parseInt(_0x36b564(0x141))/0x9+parseInt(_0x36b564(0x12f))/0xa;if(_0x49683a===_0x1772f7)break;else _0x2e1ce3['push'](_0x2e1ce3['shift']());}catch(_0x1debd2){_0x2e1ce3['push'](_0x2e1ce3['shift']());}}}(a72_0x4397,0x80490));function a72_0x4397(){const _0x1bc930=['msg','18cqJoRj','error','code','5GJAwYi','3637768RWnxVa','436623cQSMNV','test','slice','588789bKqlPX','\x20(see\x20data.result)','keys','26530820FXJtBC','5975880qZCHlG','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','message','success','453838xGSISN','data','6iBbkjP','825629FqmEIx'];a72_0x4397=function(){return _0x1bc930;};return a72_0x4397();}import{testDbLinkConnect}from'../../core/api-client.js';function a72_0x1a91(_0x53cd86,_0x484345){_0x53cd86=_0x53cd86-0x12e;const _0x4397ad=a72_0x4397();let _0x1a9166=_0x4397ad[_0x53cd86];return _0x1a9166;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x2d796c){const _0x45be63=a72_0x1a91;if(_0x2d796c===!![]||_0x2d796c===![])return{'success':_0x2d796c};if(_0x2d796c===null||_0x2d796c===undefined)return{'type':typeof _0x2d796c};if(typeof _0x2d796c!=='object')return{'type':typeof _0x2d796c};const _0x83f873=_0x2d796c,_0xe9ff90=['success',_0x45be63(0x132),_0x45be63(0x13b),_0x45be63(0x13a),_0x45be63(0x138),_0x45be63(0x135)],_0x4ddbd1={};for(const _0x1cddfd of _0xe9ff90){if(_0x1cddfd in _0x83f873)_0x4ddbd1[_0x1cddfd]=_0x83f873[_0x1cddfd];}return Object[_0x45be63(0x12e)](_0x4ddbd1)['length']===0x0&&(_0x4ddbd1[_0x45be63(0x12e)]=Object[_0x45be63(0x12e)](_0x83f873)[_0x45be63(0x140)](0x0,0x14)),_0x4ddbd1;}export const dbTest={'service':'db','command':a72_0x3d9b86(0x13f),'description':a72_0x3d9b86(0x131),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4dcff8){const _0x394bb9=a72_0x3d9b86,_0x3a683a=_0x4dcff8['num']('id'),_0x1b546c=await testDbLinkConnect(_0x3a683a),_0x2f4f47=_0x1b546c===!![]||typeof _0x1b546c==='object'&&_0x1b546c!==null&&_0x1b546c[_0x394bb9(0x133)]===!![],_0x4c774d=summarizeTestConnectResult(_0x1b546c);return{'ok':!![],'data':{'id':_0x3a683a,'connected':Boolean(_0x2f4f47),'result':_0x4c774d},'message':_0x2f4f47?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x3a683a:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x3a683a+_0x394bb9(0x142)};}};
1
+ const a72_0x5c0ca7=a72_0x4a1b;(function(_0x5ca80d,_0x56e156){const _0x4fde59=a72_0x4a1b,_0x417183=_0x5ca80d();while(!![]){try{const _0x360deb=-parseInt(_0x4fde59(0x8c))/0x1+parseInt(_0x4fde59(0x81))/0x2*(parseInt(_0x4fde59(0x89))/0x3)+parseInt(_0x4fde59(0x8a))/0x4+parseInt(_0x4fde59(0x85))/0x5*(-parseInt(_0x4fde59(0x95))/0x6)+-parseInt(_0x4fde59(0x86))/0x7+parseInt(_0x4fde59(0x88))/0x8+parseInt(_0x4fde59(0x94))/0x9*(-parseInt(_0x4fde59(0x84))/0xa);if(_0x360deb===_0x56e156)break;else _0x417183['push'](_0x417183['shift']());}catch(_0x590509){_0x417183['push'](_0x417183['shift']());}}}(a72_0x2f28,0x52b1c));function a72_0x4a1b(_0x591f73,_0x33284c){_0x591f73=_0x591f73-0x80;const _0x2f2808=a72_0x2f28();let _0x4a1b18=_0x2f2808[_0x591f73];return _0x4a1b18;}import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x2fb59d){const _0x2f20c2=a72_0x4a1b;if(_0x2fb59d===!![]||_0x2fb59d===![])return{'success':_0x2fb59d};if(_0x2fb59d===null||_0x2fb59d===undefined)return{'type':typeof _0x2fb59d};if(typeof _0x2fb59d!==_0x2f20c2(0x93))return{'type':typeof _0x2fb59d};const _0x3bd6db=_0x2fb59d,_0x1de091=[_0x2f20c2(0x82),_0x2f20c2(0x83),_0x2f20c2(0x91),_0x2f20c2(0x8b),_0x2f20c2(0x90),'data'],_0x5ca1c5={};for(const _0x546f81 of _0x1de091){if(_0x546f81 in _0x3bd6db)_0x5ca1c5[_0x546f81]=_0x3bd6db[_0x546f81];}return Object[_0x2f20c2(0x92)](_0x5ca1c5)[_0x2f20c2(0x80)]===0x0&&(_0x5ca1c5[_0x2f20c2(0x92)]=Object['keys'](_0x3bd6db)[_0x2f20c2(0x8f)](0x0,0x14)),_0x5ca1c5;}function a72_0x2f28(){const _0x18cd2a=['2017338hxDeff','2145064BpegIQ','error','346734hbweDQ','read','\x20(see\x20data.result)','slice','msg','code','keys','object','3837906JvNnFS','196812fmoNll','length','2ZzXVDM','success','message','20UmjEhl','5dSRhaJ','1234856vcrpDP','Connection\x20check\x20finished\x20for\x20db\x20link\x20','4310528WXBOla'];a72_0x2f28=function(){return _0x18cd2a;};return a72_0x2f28();}export const dbTest={'service':'db','command':'test','description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':a72_0x5c0ca7(0x8d),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3bb8f6){const _0x1b16e7=a72_0x5c0ca7,_0x321fdf=_0x3bb8f6['num']('id'),_0x52b0e1=await testDbLinkConnect(_0x321fdf),_0x56f072=_0x52b0e1===!![]||typeof _0x52b0e1===_0x1b16e7(0x93)&&_0x52b0e1!==null&&_0x52b0e1[_0x1b16e7(0x82)]===!![],_0x64f6d6=summarizeTestConnectResult(_0x52b0e1);return{'ok':!![],'data':{'id':_0x321fdf,'connected':Boolean(_0x56f072),'result':_0x64f6d6},'message':_0x56f072?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x321fdf:_0x1b16e7(0x87)+_0x321fdf+_0x1b16e7(0x8e)};}};
@@ -1 +1 @@
1
- function a73_0x13e4(_0x31582b,_0x127be2){_0x31582b=_0x31582b-0xd4;const _0x47a2b1=a73_0x47a2();let _0x13e4a5=_0x47a2b1[_0x31582b];return _0x13e4a5;}const a73_0x3c6041=a73_0x13e4;(function(_0x3cc574,_0x1c5880){const _0x1fd053=a73_0x13e4,_0x2d6412=_0x3cc574();while(!![]){try{const _0x2a0cd8=-parseInt(_0x1fd053(0xd6))/0x1*(-parseInt(_0x1fd053(0xf6))/0x2)+parseInt(_0x1fd053(0xdc))/0x3+parseInt(_0x1fd053(0xf3))/0x4+parseInt(_0x1fd053(0xe7))/0x5*(parseInt(_0x1fd053(0xe2))/0x6)+-parseInt(_0x1fd053(0xef))/0x7*(-parseInt(_0x1fd053(0xd9))/0x8)+-parseInt(_0x1fd053(0xd8))/0x9*(-parseInt(_0x1fd053(0xd7))/0xa)+-parseInt(_0x1fd053(0xde))/0xb;if(_0x2a0cd8===_0x1c5880)break;else _0x2d6412['push'](_0x2d6412['shift']());}catch(_0x581a60){_0x2d6412['push'](_0x2d6412['shift']());}}}(a73_0x47a2,0x1c588));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a73_0x47a2(){const _0x522d3b=['dbUrl','string','7WHYYsC','dbname','num','dbdesc','719776BTjAAg','New\x20database\x20name','Updated\x20db\x20link\x20','194uiSVhj','dbParam','New\x20host:port','926HDgRNk','710AnLCNX','24147FcZrXj','376408KtXmXc','dbName','str','665796APfALo','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','7428806KcZTjR','dburl','write','dbDesc','6YepQza','dbparam','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','password','username','311040LYBzTq','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','update','POST','New\x20description','trim'];a73_0x47a2=function(){return _0x522d3b;};return a73_0x47a2();}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':a73_0x3c6041(0xe9),'description':a73_0x3c6041(0xdd),'risk':a73_0x3c6041(0xe0),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a73_0x3c6041(0xf0),'type':a73_0x3c6041(0xee),'description':a73_0x3c6041(0xf4)},{'name':a73_0x3c6041(0xdf),'type':a73_0x3c6041(0xee),'description':a73_0x3c6041(0xd5)},{'name':a73_0x3c6041(0xe6),'type':'string','description':'New\x20username'},{'name':a73_0x3c6041(0xe5),'type':'string','description':a73_0x3c6041(0xe4)},{'name':a73_0x3c6041(0xe3),'type':a73_0x3c6041(0xee),'description':'New\x20connection\x20parameter\x20string'},{'name':'dbdesc','type':a73_0x3c6041(0xee),'description':a73_0x3c6041(0xeb)}],async 'validate'(_0x2644bb){const _0x50ff3e=a73_0x3c6041,_0x2d9872=_0x2644bb[_0x50ff3e(0xdb)]('dburl');if(_0x2d9872&&!validateDbUrl(_0x2d9872[_0x50ff3e(0xec)]()))throw CliErrors['validation']('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x2d9872+'\x22');},async 'dryRun'(_0x201811){const _0x2ea61e=a73_0x3c6041,_0x1e26df=_0x201811[_0x2ea61e(0xf1)]('id'),_0x819343=await getDbLinkInfo(_0x1e26df),_0x4dce55={..._0x819343},_0x5820ea=_0x201811['str'](_0x2ea61e(0xf0));if(_0x5820ea)_0x4dce55[_0x2ea61e(0xda)]=_0x5820ea;const _0x142d92=_0x201811[_0x2ea61e(0xdb)]('dburl');if(_0x142d92)_0x4dce55[_0x2ea61e(0xed)]=_0x142d92[_0x2ea61e(0xec)]();const _0x5c4baf=_0x201811[_0x2ea61e(0xdb)](_0x2ea61e(0xe6));if(_0x5c4baf)_0x4dce55[_0x2ea61e(0xe6)]=_0x5c4baf;const _0x652a40=_0x201811['str'](_0x2ea61e(0xe5));if(_0x652a40)_0x4dce55['password']=_0x652a40;const _0x567e01=_0x201811[_0x2ea61e(0xdb)]('dbparam');if(_0x567e01)_0x4dce55[_0x2ea61e(0xd4)]=_0x567e01;const _0x4f3723=_0x201811[_0x2ea61e(0xdb)](_0x2ea61e(0xf2));if(_0x4f3723)_0x4dce55[_0x2ea61e(0xe1)]=_0x4f3723;const _0x5b1b1d=sanitizeDbLinkForOutput(_0x4dce55);return{'method':_0x2ea61e(0xea),'url':'/smartapi/dblink/update','body':_0x5b1b1d,'description':_0x2ea61e(0xe8)};},async 'execute'(_0x54350f){const _0x38864d=a73_0x3c6041,_0x1c6f47=_0x54350f[_0x38864d(0xf1)]('id'),_0x40b017=await getDbLinkInfo(_0x1c6f47),_0x583fe4={..._0x40b017},_0x544340=_0x54350f['str'](_0x38864d(0xf0));if(_0x544340)_0x583fe4[_0x38864d(0xda)]=_0x544340;const _0x3b1c6b=_0x54350f[_0x38864d(0xdb)](_0x38864d(0xdf));if(_0x3b1c6b)_0x583fe4[_0x38864d(0xed)]=_0x3b1c6b[_0x38864d(0xec)]();const _0x654a09=_0x54350f[_0x38864d(0xdb)](_0x38864d(0xe6));if(_0x654a09)_0x583fe4[_0x38864d(0xe6)]=_0x654a09;const _0x518a6f=_0x54350f['str'](_0x38864d(0xe5));if(_0x518a6f)_0x583fe4[_0x38864d(0xe5)]=_0x518a6f;const _0xec9fd5=_0x54350f[_0x38864d(0xdb)]('dbparam');if(_0xec9fd5)_0x583fe4[_0x38864d(0xd4)]=_0xec9fd5;const _0x4fd6ef=_0x54350f[_0x38864d(0xdb)](_0x38864d(0xf2));if(_0x4fd6ef)_0x583fe4[_0x38864d(0xe1)]=_0x4fd6ef;const {id:_0x4ba894,entity:_0x6f468}=normalizeEntityWithIdResponse(await updateDbLink(_0x583fe4));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x6f468),'message':_0x38864d(0xf5)+(_0x4ba894??_0x1c6f47)};}};
1
+ const a73_0x343e0b=a73_0xa677;(function(_0x2f9930,_0x4d2dab){const _0x145129=a73_0xa677,_0x5c526c=_0x2f9930();while(!![]){try{const _0x2e7ad5=-parseInt(_0x145129(0x19f))/0x1+parseInt(_0x145129(0x1a8))/0x2*(parseInt(_0x145129(0x18f))/0x3)+parseInt(_0x145129(0x1aa))/0x4+parseInt(_0x145129(0x19c))/0x5*(-parseInt(_0x145129(0x1a7))/0x6)+-parseInt(_0x145129(0x192))/0x7*(parseInt(_0x145129(0x197))/0x8)+-parseInt(_0x145129(0x1a2))/0x9*(-parseInt(_0x145129(0x193))/0xa)+parseInt(_0x145129(0x1a9))/0xb*(parseInt(_0x145129(0x1a0))/0xc);if(_0x2e7ad5===_0x4d2dab)break;else _0x5c526c['push'](_0x5c526c['shift']());}catch(_0x3f175b){_0x5c526c['push'](_0x5c526c['shift']());}}}(a73_0x281e,0x6079c));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a73_0x281e(){const _0x397e9e=['3657032lJaRuo','dbname','trim','dbDesc','num','8995SxrBCO','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','dbName','127249CFvKcp','24pcdxCv','update','126sCrCBx','POST','dbParam','New\x20connection\x20parameter\x20string','dbUrl','1830FkeBrp','5974CaPsjk','1398606NIFuhf','1172020ROvPry','dbdesc','New\x20description','New\x20username','/smartapi/dblink/update','dburl','228tmecHg','dbparam','password','7ZKsYfB','538520dhuvsA','username','string','str'];a73_0x281e=function(){return _0x397e9e;};return a73_0x281e();}function a73_0xa677(_0x217fda,_0x329b03){_0x217fda=_0x217fda-0x18a;const _0x281ef2=a73_0x281e();let _0xa677ca=_0x281ef2[_0x217fda];return _0xa677ca;}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':a73_0x343e0b(0x1a1),'description':'Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a73_0x343e0b(0x195),'description':'New\x20database\x20name'},{'name':'dburl','type':a73_0x343e0b(0x195),'description':'New\x20host:port'},{'name':a73_0x343e0b(0x194),'type':a73_0x343e0b(0x195),'description':a73_0x343e0b(0x18c)},{'name':a73_0x343e0b(0x191),'type':a73_0x343e0b(0x195),'description':a73_0x343e0b(0x19d)},{'name':'dbparam','type':a73_0x343e0b(0x195),'description':a73_0x343e0b(0x1a5)},{'name':a73_0x343e0b(0x18a),'type':'string','description':a73_0x343e0b(0x18b)}],async 'validate'(_0xfa0b4){const _0x4a9c2a=a73_0x343e0b,_0xc94826=_0xfa0b4[_0x4a9c2a(0x196)](_0x4a9c2a(0x18e));if(_0xc94826&&!validateDbUrl(_0xc94826[_0x4a9c2a(0x199)]()))throw CliErrors['validation']('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0xc94826+'\x22');},async 'dryRun'(_0x196ead){const _0xde536b=a73_0x343e0b,_0xd0d2ce=_0x196ead[_0xde536b(0x19b)]('id'),_0x3a0e0d=await getDbLinkInfo(_0xd0d2ce),_0x540f60={..._0x3a0e0d},_0x3eb751=_0x196ead[_0xde536b(0x196)](_0xde536b(0x198));if(_0x3eb751)_0x540f60[_0xde536b(0x19e)]=_0x3eb751;const _0x1bcc2a=_0x196ead['str'](_0xde536b(0x18e));if(_0x1bcc2a)_0x540f60['dbUrl']=_0x1bcc2a[_0xde536b(0x199)]();const _0x3a3252=_0x196ead[_0xde536b(0x196)](_0xde536b(0x194));if(_0x3a3252)_0x540f60[_0xde536b(0x194)]=_0x3a3252;const _0x2dfca4=_0x196ead['str'](_0xde536b(0x191));if(_0x2dfca4)_0x540f60[_0xde536b(0x191)]=_0x2dfca4;const _0x2526b4=_0x196ead['str'](_0xde536b(0x190));if(_0x2526b4)_0x540f60['dbParam']=_0x2526b4;const _0x550b3d=_0x196ead['str'](_0xde536b(0x18a));if(_0x550b3d)_0x540f60[_0xde536b(0x19a)]=_0x550b3d;const _0x45ed16=sanitizeDbLinkForOutput(_0x540f60);return{'method':_0xde536b(0x1a3),'url':_0xde536b(0x18d),'body':_0x45ed16,'description':'Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview'};},async 'execute'(_0x2a5979){const _0x3832f6=a73_0x343e0b,_0xece57c=_0x2a5979[_0x3832f6(0x19b)]('id'),_0x57f163=await getDbLinkInfo(_0xece57c),_0x47c648={..._0x57f163},_0x2834f5=_0x2a5979[_0x3832f6(0x196)](_0x3832f6(0x198));if(_0x2834f5)_0x47c648[_0x3832f6(0x19e)]=_0x2834f5;const _0x3e0156=_0x2a5979[_0x3832f6(0x196)]('dburl');if(_0x3e0156)_0x47c648[_0x3832f6(0x1a6)]=_0x3e0156[_0x3832f6(0x199)]();const _0x50364b=_0x2a5979['str']('username');if(_0x50364b)_0x47c648[_0x3832f6(0x194)]=_0x50364b;const _0x2c17ed=_0x2a5979['str']('password');if(_0x2c17ed)_0x47c648['password']=_0x2c17ed;const _0x4d4b90=_0x2a5979[_0x3832f6(0x196)](_0x3832f6(0x190));if(_0x4d4b90)_0x47c648[_0x3832f6(0x1a4)]=_0x4d4b90;const _0x330ca7=_0x2a5979['str'](_0x3832f6(0x18a));if(_0x330ca7)_0x47c648[_0x3832f6(0x19a)]=_0x330ca7;const {id:_0x41f7b1,entity:_0x311983}=normalizeEntityWithIdResponse(await updateDbLink(_0x47c648));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x311983),'message':'Updated\x20db\x20link\x20'+(_0x41f7b1??_0xece57c)};}};
@@ -1 +1 @@
1
- const a74_0x39d661=a74_0x188a;function a74_0xb4ac(){const _0x4e2ed4=['\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','appCode','source','pageSize','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','✓\x20Valid','\x20\x20Config\x20JSON','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','green','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','852606ZmfLnq','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','1604584YoyzTG','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','slice','(not\x20set)','repeat','(not\x20found)','cookie','format','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','6574woWcaj','\x20\x20\x20\x20accessKey:\x20\x20','(none)','platform','verbose','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor','✗\x20Invalid\x20JSON','doctor','16QNUuep','length','env','✓\x20Valid\x20JSON','unknown','value','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1701300PpiPUc','log','\x20(default)','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','(default)','\x20\x20API\x20Endpoints','(set,\x20length=','read','appcode','⚠\x20Empty\x20(treated\x20as\x20{})','empty','18RaLKFi','\x20\x20Merged\x20Config','\x20\x20Apps','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','gray','riskLevel','\x20←\x20current','explicitAppName','1660lOJxPN','(set\x20via\x20file,\x20length=','\x20\x20─','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','currentApp','red','status','Project','yellow','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','missing','message','apiDir','Global','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','accessKey','keys','defaultApp','bold','\x20\x20Config\x20Files','7691230lAiqEy','3251724xhPvsn','(no\x20file)','check','4386eswBoV'];a74_0xb4ac=function(){return _0x4e2ed4;};return a74_0xb4ac();}(function(_0x14518b,_0x3612ed){const _0x5d2ce3=a74_0x188a,_0x1c1858=_0x14518b();while(!![]){try{const _0x52f77b=parseInt(_0x5d2ce3(0xc3))/0x1*(parseInt(_0x5d2ce3(0xba))/0x2)+-parseInt(_0x5d2ce3(0xad))/0x3+-parseInt(_0x5d2ce3(0xca))/0x4+parseInt(_0x5d2ce3(0xdd))/0x5*(parseInt(_0x5d2ce3(0xa0))/0x6)+-parseInt(_0x5d2ce3(0x9d))/0x7+parseInt(_0x5d2ce3(0xb0))/0x8*(parseInt(_0x5d2ce3(0xd5))/0x9)+parseInt(_0x5d2ce3(0x9c))/0xa;if(_0x52f77b===_0x3612ed)break;else _0x1c1858['push'](_0x1c1858['shift']());}catch(_0x14eba2){_0x1c1858['push'](_0x1c1858['shift']());}}}(a74_0xb4ac,0x472a6));import a74_0x200d79 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x56e7e5){const _0x4553fc=a74_0x188a,_0x3eebf3=GIT_COMMIT!==_0x4553fc(0xc7)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x4553fc(0xb3)](0x0,0xa)+')':VERSION,_0x2c8abf=buildConfigFromFlags({}),_0x3be4a6=getCookie();console[_0x4553fc(0xcb)](),console['log'](a74_0x200d79[_0x4553fc(0x9a)](CLI_BIN_NAME+_0x4553fc(0xc0))),console['log'](a74_0x200d79[_0x4553fc(0xd9)]('─'[_0x4553fc(0xb5)](0x32))),console['log']('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x3eebf3),console[_0x4553fc(0xcb)](_0x4553fc(0x95)+process['version']),console[_0x4553fc(0xcb)](_0x4553fc(0xaf)+process[_0x4553fc(0xbd)]+'\x20'+process['arch']),console[_0x4553fc(0xcb)](),console[_0x4553fc(0xcb)](a74_0x200d79[_0x4553fc(0x9a)](_0x4553fc(0x9b))),console[_0x4553fc(0xcb)](a74_0x200d79[_0x4553fc(0xd9)]('\x20\x20─'['repeat'](0x1e)));const _0x1d933c=getGlobalConfigPath(),_0x459c08=getProjectConfigPath();console[_0x4553fc(0xcb)](_0x4553fc(0xb1)+(_0x1d933c||a74_0x200d79[_0x4553fc(0xd9)](_0x4553fc(0xb6)))),console[_0x4553fc(0xcb)](_0x4553fc(0xbf)+(_0x459c08||a74_0x200d79[_0x4553fc(0xd9)](_0x4553fc(0xb6)))),console[_0x4553fc(0xcb)](),console['log'](a74_0x200d79['bold'](_0x4553fc(0xa9))),console[_0x4553fc(0xcb)](a74_0x200d79['gray'](_0x4553fc(0xdf)[_0x4553fc(0xb5)](0x1e)));const _0x2bc803=(_0x10f305,_0x5df776)=>{const _0x14781d=_0x4553fc;if(!_0x5df776){console[_0x14781d(0xcb)]('\x20\x20'+_0x10f305[_0x14781d(0xa2)](0x11)+'\x20'+a74_0x200d79[_0x14781d(0xd9)](_0x14781d(0x9e)));return;}const _0x504195=inspectCliConfigJsonFile(_0x5df776);if(_0x504195[_0x14781d(0xe3)]==='ok')console[_0x14781d(0xcb)]('\x20\x20'+_0x10f305['padEnd'](0x11)+'\x20'+a74_0x200d79[_0x14781d(0xab)](_0x14781d(0xc6)));else{if(_0x504195['status']===_0x14781d(0xd4))console[_0x14781d(0xcb)]('\x20\x20'+_0x10f305[_0x14781d(0xa2)](0x11)+'\x20'+a74_0x200d79[_0x14781d(0xe5)](_0x14781d(0xd3)));else _0x504195[_0x14781d(0xe3)]===_0x14781d(0xe8)?console[_0x14781d(0xcb)]('\x20\x20'+_0x10f305['padEnd'](0x11)+'\x20'+a74_0x200d79[_0x14781d(0xd9)]('(missing)')):(console[_0x14781d(0xcb)]('\x20\x20'+_0x10f305[_0x14781d(0xa2)](0x11)+'\x20'+a74_0x200d79[_0x14781d(0xe2)](_0x14781d(0xc1))),console['log']('\x20\x20'+''[_0x14781d(0xa2)](0x11)+'\x20'+a74_0x200d79['red'](_0x504195[_0x14781d(0xe9)])));}};_0x2bc803(_0x4553fc(0x94),_0x1d933c),_0x2bc803(_0x4553fc(0xe4),_0x459c08),console[_0x4553fc(0xcb)](),console[_0x4553fc(0xcb)](a74_0x200d79['bold'](_0x4553fc(0xd6))),console[_0x4553fc(0xcb)](a74_0x200d79[_0x4553fc(0xd9)](_0x4553fc(0xdf)[_0x4553fc(0xb5)](0x1e))),console[_0x4553fc(0xcb)](_0x4553fc(0xb9)+(_0x2c8abf[_0x4553fc(0xa3)]||a74_0x200d79['red'](_0x4553fc(0xb4)))),console[_0x4553fc(0xcb)](_0x4553fc(0xc9)+_0x2c8abf[_0x4553fc(0xc5)]),console['log'](_0x4553fc(0xa6)+_0x2c8abf['locale']),console['log'](_0x4553fc(0xa1)+_0x2c8abf[_0x4553fc(0xea)]),console[_0x4553fc(0xcb)](_0x4553fc(0xae)+(_0x2c8abf[_0x4553fc(0x99)]||a74_0x200d79[_0x4553fc(0xd9)](_0x4553fc(0xbc)))),console[_0x4553fc(0xcb)](_0x4553fc(0xe0)+(_0x2c8abf[_0x4553fc(0xe1)]||a74_0x200d79[_0x4553fc(0xd9)]('(none)'))),console['log']('\x20\x20explicitAppName:\x20'+(_0x2c8abf[_0x4553fc(0xdc)]||a74_0x200d79[_0x4553fc(0xd9)]('(none)'))),console[_0x4553fc(0xcb)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2c8abf[_0x4553fc(0xb8)]||a74_0x200d79[_0x4553fc(0xd9)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x4553fc(0xb8)]+')'))),console['log'](_0x4553fc(0xd8)+(_0x2c8abf[_0x4553fc(0xa5)]??a74_0x200d79[_0x4553fc(0xd9)](_0x4553fc(0xce)))),console[_0x4553fc(0xcb)](_0x4553fc(0xac)+_0x2c8abf[_0x4553fc(0xda)]),console[_0x4553fc(0xcb)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2c8abf[_0x4553fc(0xbe)]),console[_0x4553fc(0xcb)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2c8abf[_0x4553fc(0xb7)]?a74_0x200d79[_0x4553fc(0xab)](_0x4553fc(0xd0)+_0x2c8abf[_0x4553fc(0xb7)][_0x4553fc(0xc4)]+')'):_0x3be4a6?a74_0x200d79[_0x4553fc(0xab)](_0x4553fc(0xde)+_0x3be4a6['length']+')'):a74_0x200d79['gray']('(none)')));const _0xac3bf4=Object[_0x4553fc(0x98)](_0x2c8abf['apps']);if(_0xac3bf4['length']>0x0){console[_0x4553fc(0xcb)](),console[_0x4553fc(0xcb)](a74_0x200d79['bold'](_0x4553fc(0xd7))),console[_0x4553fc(0xcb)](a74_0x200d79['gray']('\x20\x20─'['repeat'](0x1e)));for(const _0x413826 of _0xac3bf4){const _0x2ba7a0=_0x2c8abf['apps'][_0x413826],_0x47c7cb=_0x413826===_0x2c8abf[_0x4553fc(0x99)],_0x377ac6=_0x413826===_0x2c8abf[_0x4553fc(0xe1)],_0x27a9aa=_0x377ac6?a74_0x200d79[_0x4553fc(0xab)](_0x4553fc(0xdb)):'',_0x4bbdff=_0x47c7cb?_0x4553fc(0xcc):'';console['log']('\x20\x20'+_0x413826+_0x4bbdff+_0x27a9aa),console[_0x4553fc(0xcb)](_0x4553fc(0xe7)+_0x2ba7a0[_0x4553fc(0xd2)]);const _0x84b768=buildAppDoctorFields(_0x2ba7a0,{'env':_0x2c8abf[_0x4553fc(0xc5)],'apiDir':_0x2c8abf['raw']['apiDir']||DEFAULT_CONFIG_VALUES[_0x4553fc(0xea)],'cookie':_0x2c8abf[_0x4553fc(0xb7)]||_0x3be4a6||undefined,'accessKey':_0x2c8abf['accessKey']});console[_0x4553fc(0xcb)](_0x4553fc(0xaa)+_0x84b768[_0x4553fc(0xc5)][_0x4553fc(0xc8)]+'\x20\x20'+a74_0x200d79[_0x4553fc(0xd9)]('('+_0x84b768[_0x4553fc(0xc5)][_0x4553fc(0xa4)]+')')),console[_0x4553fc(0xcb)](_0x4553fc(0xa7)+_0x84b768[_0x4553fc(0xea)][_0x4553fc(0xc8)]+'\x20\x20'+a74_0x200d79[_0x4553fc(0xd9)]('('+_0x84b768[_0x4553fc(0xea)][_0x4553fc(0xa4)]+')'));const _0x35be81=_0x84b768[_0x4553fc(0xb7)][_0x4553fc(0xc8)]?a74_0x200d79[_0x4553fc(0xab)](_0x4553fc(0xd0)+_0x84b768[_0x4553fc(0xb7)][_0x4553fc(0xc8)][_0x4553fc(0xc4)]+')'):a74_0x200d79[_0x4553fc(0xd9)](_0x4553fc(0xbc));console[_0x4553fc(0xcb)](_0x4553fc(0xe6)+_0x35be81+'\x20\x20'+a74_0x200d79[_0x4553fc(0xd9)]('('+_0x84b768[_0x4553fc(0xb7)][_0x4553fc(0xa4)]+')'));const _0x3748e2=_0x84b768[_0x4553fc(0x97)][_0x4553fc(0xc8)]?a74_0x200d79[_0x4553fc(0xab)](_0x4553fc(0xd0)+_0x84b768[_0x4553fc(0x97)][_0x4553fc(0xc8)][_0x4553fc(0xc4)]+')'):a74_0x200d79[_0x4553fc(0xd9)](_0x4553fc(0xbc));console['log'](_0x4553fc(0xbb)+_0x3748e2+'\x20\x20'+a74_0x200d79['gray']('('+_0x84b768['accessKey'][_0x4553fc(0xa4)]+')'));}}console[_0x4553fc(0xcb)](),console['log'](a74_0x200d79[_0x4553fc(0x9a)](_0x4553fc(0xcf))),console[_0x4553fc(0xcb)](a74_0x200d79['gray']('\x20\x20─'[_0x4553fc(0xb5)](0x1e))),console[_0x4553fc(0xcb)](_0x4553fc(0x96)+getApiDomain()),console[_0x4553fc(0xcb)](_0x4553fc(0xb2)+getUserDomain()),console[_0x4553fc(0xcb)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x4553fc(0xcb)](),console[_0x4553fc(0xcb)](a74_0x200d79['bold']('\x20\x20Auth')),console['log'](a74_0x200d79['gray'](_0x4553fc(0xdf)[_0x4553fc(0xb5)](0x1e)));if(_0x3be4a6){const _0x1631ef=await getIsSessionValid();console[_0x4553fc(0xcb)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1631ef?a74_0x200d79[_0x4553fc(0xab)](_0x4553fc(0xa8)):a74_0x200d79['red']('✗\x20Expired')));}else console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a74_0x200d79[_0x4553fc(0xe2)]('✗\x20Not\x20logged\x20in'));return console[_0x4553fc(0xcb)](),{'ok':!![]};}function a74_0x188a(_0x5dd38c,_0x3386d7){_0x5dd38c=_0x5dd38c-0x94;const _0xb4aca1=a74_0xb4ac();let _0x188a6d=_0xb4aca1[_0x5dd38c];return _0x188a6d;}export const doctorDefinition={'service':a74_0x39d661(0xc2),'command':a74_0x39d661(0x9f),'description':a74_0x39d661(0xcd),'risk':a74_0x39d661(0xd1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ function a74_0x57dd(_0xfe7595,_0x1313e7){_0xfe7595=_0xfe7595-0x177;const _0x4d0298=a74_0x4d02();let _0x57dd11=_0x4d0298[_0xfe7595];return _0x57dd11;}const a74_0x476d2b=a74_0x57dd;(function(_0x145158,_0x27c1c9){const _0x4c0d31=a74_0x57dd,_0xb54e81=_0x145158();while(!![]){try{const _0x253354=parseInt(_0x4c0d31(0x1bb))/0x1+-parseInt(_0x4c0d31(0x179))/0x2+-parseInt(_0x4c0d31(0x1a6))/0x3+-parseInt(_0x4c0d31(0x196))/0x4+parseInt(_0x4c0d31(0x1c1))/0x5*(parseInt(_0x4c0d31(0x1af))/0x6)+parseInt(_0x4c0d31(0x1b9))/0x7+parseInt(_0x4c0d31(0x19e))/0x8;if(_0x253354===_0x27c1c9)break;else _0xb54e81['push'](_0xb54e81['shift']());}catch(_0x4ed6e7){_0xb54e81['push'](_0xb54e81['shift']());}}}(a74_0x4d02,0x9895a));import a74_0x3d9271 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x3fa3eb){const _0x5bfec5=a74_0x57dd,_0x248693=GIT_COMMIT!==_0x5bfec5(0x193)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x50cebe=buildConfigFromFlags({}),_0x4dfb48=getCookie();console[_0x5bfec5(0x1a9)](),console[_0x5bfec5(0x1a9)](a74_0x3d9271[_0x5bfec5(0x17f)](CLI_BIN_NAME+_0x5bfec5(0x1a7))),console[_0x5bfec5(0x1a9)](a74_0x3d9271['gray']('─'[_0x5bfec5(0x19d)](0x32))),console['log'](_0x5bfec5(0x1a4)+_0x248693),console['log'](_0x5bfec5(0x1c7)+process[_0x5bfec5(0x17c)]),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x1be)+process['platform']+'\x20'+process[_0x5bfec5(0x19a)]),console['log'](),console[_0x5bfec5(0x1a9)](a74_0x3d9271[_0x5bfec5(0x17f)](_0x5bfec5(0x19f))),console['log'](a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x1c6)[_0x5bfec5(0x19d)](0x1e)));const _0x26fa51=getGlobalConfigPath(),_0x5028da=getProjectConfigPath();console[_0x5bfec5(0x1a9)](_0x5bfec5(0x17b)+(_0x26fa51||a74_0x3d9271['gray'](_0x5bfec5(0x1bc)))),console[_0x5bfec5(0x1a9)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5028da||a74_0x3d9271[_0x5bfec5(0x1b5)]('(not\x20found)'))),console[_0x5bfec5(0x1a9)](),console[_0x5bfec5(0x1a9)](a74_0x3d9271[_0x5bfec5(0x17f)](_0x5bfec5(0x198))),console[_0x5bfec5(0x1a9)](a74_0x3d9271[_0x5bfec5(0x1b5)]('\x20\x20─'['repeat'](0x1e)));const _0x387e42=(_0x4002b9,_0x4125f1)=>{const _0x317238=_0x5bfec5;if(!_0x4125f1){console['log']('\x20\x20'+_0x4002b9[_0x317238(0x194)](0x11)+'\x20'+a74_0x3d9271[_0x317238(0x1b5)]('(no\x20file)'));return;}const _0x50a2c0=inspectCliConfigJsonFile(_0x4125f1);if(_0x50a2c0[_0x317238(0x1b8)]==='ok')console[_0x317238(0x1a9)]('\x20\x20'+_0x4002b9['padEnd'](0x11)+'\x20'+a74_0x3d9271['green'](_0x317238(0x187)));else{if(_0x50a2c0['status']==='empty')console[_0x317238(0x1a9)]('\x20\x20'+_0x4002b9[_0x317238(0x194)](0x11)+'\x20'+a74_0x3d9271[_0x317238(0x1c0)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x50a2c0[_0x317238(0x1b8)]===_0x317238(0x1c2)?console[_0x317238(0x1a9)]('\x20\x20'+_0x4002b9[_0x317238(0x194)](0x11)+'\x20'+a74_0x3d9271[_0x317238(0x1b5)](_0x317238(0x1c3))):(console[_0x317238(0x1a9)]('\x20\x20'+_0x4002b9[_0x317238(0x194)](0x11)+'\x20'+a74_0x3d9271['red'](_0x317238(0x1a2))),console[_0x317238(0x1a9)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a74_0x3d9271['red'](_0x50a2c0['message'])));}};_0x387e42(_0x5bfec5(0x1a8),_0x26fa51),_0x387e42(_0x5bfec5(0x199),_0x5028da),console[_0x5bfec5(0x1a9)](),console[_0x5bfec5(0x1a9)](a74_0x3d9271['bold'](_0x5bfec5(0x184))),console[_0x5bfec5(0x1a9)](a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x1c6)[_0x5bfec5(0x19d)](0x1e))),console['log'](_0x5bfec5(0x1bd)+(_0x50cebe[_0x5bfec5(0x1a5)]||a74_0x3d9271[_0x5bfec5(0x1b2)](_0x5bfec5(0x18e)))),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x1b1)+_0x50cebe[_0x5bfec5(0x1c5)]),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x19b)+_0x50cebe['locale']),console['log'](_0x5bfec5(0x1b7)+_0x50cebe[_0x5bfec5(0x1aa)]),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x18f)+(_0x50cebe[_0x5bfec5(0x188)]||a74_0x3d9271['gray']('(none)'))),console[_0x5bfec5(0x1a9)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x50cebe['currentApp']||a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x18c)))),console[_0x5bfec5(0x1a9)]('\x20\x20explicitAppName:\x20'+(_0x50cebe[_0x5bfec5(0x1a1)]||a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x18c)))),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x17a)+(_0x50cebe[_0x5bfec5(0x177)]||a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x17d)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x5bfec5(0x1a9)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x50cebe['pageSize']??a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x191)))),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x1c8)+_0x50cebe[_0x5bfec5(0x1ba)]),console['log']('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x50cebe[_0x5bfec5(0x183)]),console['log'](_0x5bfec5(0x17e)+(_0x50cebe[_0x5bfec5(0x18a)]?a74_0x3d9271[_0x5bfec5(0x1b3)](_0x5bfec5(0x1ac)+_0x50cebe[_0x5bfec5(0x18a)][_0x5bfec5(0x182)]+')'):_0x4dfb48?a74_0x3d9271[_0x5bfec5(0x1b3)](_0x5bfec5(0x18b)+_0x4dfb48[_0x5bfec5(0x182)]+')'):a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x18c))));const _0x97f110=Object[_0x5bfec5(0x1a0)](_0x50cebe[_0x5bfec5(0x1b6)]);if(_0x97f110['length']>0x0){console[_0x5bfec5(0x1a9)](),console[_0x5bfec5(0x1a9)](a74_0x3d9271['bold'](_0x5bfec5(0x18d))),console['log'](a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x1c6)[_0x5bfec5(0x19d)](0x1e)));for(const _0x3b24b3 of _0x97f110){const _0x2e3b2e=_0x50cebe['apps'][_0x3b24b3],_0x433b93=_0x3b24b3===_0x50cebe['defaultApp'],_0x3fdc48=_0x3b24b3===_0x50cebe[_0x5bfec5(0x189)],_0xbabe=_0x3fdc48?a74_0x3d9271[_0x5bfec5(0x1b3)](_0x5bfec5(0x195)):'',_0x2319d3=_0x433b93?_0x5bfec5(0x1ab):'';console[_0x5bfec5(0x1a9)]('\x20\x20'+_0x3b24b3+_0x2319d3+_0xbabe),console[_0x5bfec5(0x1a9)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x2e3b2e['appcode']);const _0xb0bbf1=buildAppDoctorFields(_0x2e3b2e,{'env':_0x50cebe[_0x5bfec5(0x1c5)],'apiDir':_0x50cebe[_0x5bfec5(0x1b0)]['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x50cebe['cookie']||_0x4dfb48||undefined,'accessKey':_0x50cebe[_0x5bfec5(0x186)]});console[_0x5bfec5(0x1a9)](_0x5bfec5(0x1ae)+_0xb0bbf1[_0x5bfec5(0x1c5)][_0x5bfec5(0x19c)]+'\x20\x20'+a74_0x3d9271[_0x5bfec5(0x1b5)]('('+_0xb0bbf1['env'][_0x5bfec5(0x178)]+')')),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x192)+_0xb0bbf1[_0x5bfec5(0x1aa)][_0x5bfec5(0x19c)]+'\x20\x20'+a74_0x3d9271['gray']('('+_0xb0bbf1[_0x5bfec5(0x1aa)][_0x5bfec5(0x178)]+')'));const _0x55eef4=_0xb0bbf1[_0x5bfec5(0x18a)][_0x5bfec5(0x19c)]?a74_0x3d9271['green']('(set,\x20length='+_0xb0bbf1[_0x5bfec5(0x18a)][_0x5bfec5(0x19c)][_0x5bfec5(0x182)]+')'):a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x18c));console[_0x5bfec5(0x1a9)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x55eef4+'\x20\x20'+a74_0x3d9271[_0x5bfec5(0x1b5)]('('+_0xb0bbf1[_0x5bfec5(0x18a)]['source']+')'));const _0x1d3414=_0xb0bbf1[_0x5bfec5(0x186)]['value']?a74_0x3d9271['green'](_0x5bfec5(0x1ac)+_0xb0bbf1[_0x5bfec5(0x186)][_0x5bfec5(0x19c)][_0x5bfec5(0x182)]+')'):a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x18c));console[_0x5bfec5(0x1a9)](_0x5bfec5(0x1ca)+_0x1d3414+'\x20\x20'+a74_0x3d9271['gray']('('+_0xb0bbf1[_0x5bfec5(0x186)][_0x5bfec5(0x178)]+')'));}}console[_0x5bfec5(0x1a9)](),console[_0x5bfec5(0x1a9)](a74_0x3d9271['bold'](_0x5bfec5(0x1b4))),console[_0x5bfec5(0x1a9)](a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x1c6)['repeat'](0x1e))),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x185)+getApiDomain()),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x197)+getUserDomain()),console['log'](_0x5bfec5(0x180)+getRuntimeDomain()),console[_0x5bfec5(0x1a9)](),console[_0x5bfec5(0x1a9)](a74_0x3d9271[_0x5bfec5(0x17f)](_0x5bfec5(0x190))),console[_0x5bfec5(0x1a9)](a74_0x3d9271[_0x5bfec5(0x1b5)]('\x20\x20─'['repeat'](0x1e)));if(_0x4dfb48){const _0x1759b3=await getIsSessionValid();console[_0x5bfec5(0x1a9)](_0x5bfec5(0x1ad)+(_0x1759b3?a74_0x3d9271[_0x5bfec5(0x1b3)]('✓\x20Valid'):a74_0x3d9271['red'](_0x5bfec5(0x181))));}else console['log'](_0x5bfec5(0x1ad)+a74_0x3d9271[_0x5bfec5(0x1b2)](_0x5bfec5(0x1c9)));return console[_0x5bfec5(0x1a9)](),{'ok':!![]};}function a74_0x4d02(){const _0x47abcd=['padEnd','\x20←\x20current','1096696BVKRlB','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','Project','arch','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','repeat','3147808RYsQnC','\x20\x20Config\x20Files','keys','explicitAppName','✗\x20Invalid\x20JSON','check','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','appCode','1141872OANEit','\x20doctor','Global','log','apiDir','\x20(default)','(set,\x20length=','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','234nABoRT','raw','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','green','\x20\x20API\x20Endpoints','gray','apps','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','4876956VMNdGh','riskLevel','289355hiVMXO','(not\x20found)','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','read','yellow','665teemov','missing','(missing)','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','env','\x20\x20─','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','\x20\x20\x20\x20accessKey:\x20\x20','format','source','209884uasetF','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','version','(default:\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','\x20\x20runtimeDomain:\x20\x20\x20','✗\x20Expired','length','verbose','\x20\x20Merged\x20Config','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','accessKey','✓\x20Valid\x20JSON','defaultApp','currentApp','cookie','(set\x20via\x20file,\x20length=','(none)','\x20\x20Apps','(not\x20set)','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Auth','(default)','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','unknown'];a74_0x4d02=function(){return _0x47abcd;};return a74_0x4d02();}export const doctorDefinition={'service':'doctor','command':a74_0x476d2b(0x1a3),'description':a74_0x476d2b(0x1c4),'risk':a74_0x476d2b(0x1bf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a75_0x327edc=a75_0xf89e;(function(_0x1bf73e,_0x10656d){const _0x275cba=a75_0xf89e,_0x1bb291=_0x1bf73e();while(!![]){try{const _0x1cead1=parseInt(_0x275cba(0x1dc))/0x1*(parseInt(_0x275cba(0x1ef))/0x2)+-parseInt(_0x275cba(0x1d4))/0x3+-parseInt(_0x275cba(0x1f9))/0x4+-parseInt(_0x275cba(0x1dd))/0x5+-parseInt(_0x275cba(0x1fb))/0x6+parseInt(_0x275cba(0x1d6))/0x7*(-parseInt(_0x275cba(0x1eb))/0x8)+parseInt(_0x275cba(0x1f8))/0x9*(parseInt(_0x275cba(0x1ed))/0xa);if(_0x1cead1===_0x10656d)break;else _0x1bb291['push'](_0x1bb291['shift']());}catch(_0x24645e){_0x1bb291['push'](_0x1bb291['shift']());}}}(a75_0x5f36,0x4f16f));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';function a75_0x5f36(){const _0x5665b3=['boolean','149174ruLyDL','log','appCode','yes','write','run','valid','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','20139183AKPJca','2258904zPcdbt','bool','814590YHIpLD','\x0a✓\x20Successfully\x20initialized\x20','production','1497144HCNPEK','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','261177oHtUPg','env','map','defaultApp','appcode','global','1HvSstp','3011145bZmHFk','Target\x20environment','\x20\x20Config:\x20','\x20\x20Apps:\x20','nonInteractive','custom','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','join','App\x20code\x20to\x20initialize\x20with','string','检测到旧配置文件,正在自动升级...\x0a','init','project','str','40LhmaFH','\x20\x20Default:\x20','10zittzI'];a75_0x5f36=function(){return _0x5665b3;};return a75_0x5f36();}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 a75_0xf89e(_0x2a053a,_0x46c7a9){_0x2a053a=_0x2a053a-0x1d2;const _0x5f3664=a75_0x5f36();let _0xf89eb1=_0x5f3664[_0x2a053a];return _0xf89eb1;}function syntheticApp(_0x3255f8){return{'appCode':_0x3255f8,'appName':_0x3255f8};}function writeInitConfig(_0x4f2ff2,_0x4451df,_0x32b755){const _0x13ffd2=a75_0xf89e,_0x42d4b7=resolveWriteConfigPath(_0x4f2ff2),_0x2bfdc3=buildCanonicalProjectConfig({},{'appCodes':_0x4451df[_0x13ffd2(0x1d8)](_0x5e515e=>_0x5e515e[_0x13ffd2(0x1f1)]),'env':_0x32b755,'metadata':{'version':getCliVersion(),'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0x42d4b7,_0x2bfdc3);const _0xf42dfe=_0x4f2ff2===_0x13ffd2(0x1db)?_0x13ffd2(0x1db):_0x13ffd2(0x1e9);console['log'](_0x13ffd2(0x1d2)+_0xf42dfe+'\x20config'),console[_0x13ffd2(0x1f0)](_0x13ffd2(0x1e0)+_0x4451df[_0x13ffd2(0x1d8)](_0x450126=>_0x450126[_0x13ffd2(0x1f1)])[_0x13ffd2(0x1e4)](',\x20')),console[_0x13ffd2(0x1f0)](_0x13ffd2(0x1ec)+_0x2bfdc3[_0x13ffd2(0x1d9)]),console[_0x13ffd2(0x1f0)]('\x20\x20Env:\x20'+_0x2bfdc3[_0x13ffd2(0x1d7)]),console[_0x13ffd2(0x1f0)](_0x13ffd2(0x1df)+_0x42d4b7);}async function runSmartInit(_0x3931e4){const _0x2b12ef=a75_0xf89e,_0x21be50=process['cwd'](),_0x5534eb=_0x3931e4[_0x2b12ef(0x1fa)](_0x2b12ef(0x1db))?'global':'project',_0x9d1956=_0x3931e4[_0x2b12ef(0x1ea)](_0x2b12ef(0x1d7))||_0x2b12ef(0x1d3),_0x551d09=_0x3931e4[_0x2b12ef(0x1ea)](_0x2b12ef(0x1da))||undefined,_0x488c98=_0x3931e4[_0x2b12ef(0x1fa)](_0x2b12ef(0x1e9));if(_0x488c98){const {initConfig:_0x352ce1}=await import('../../commands/project/init.js');return _0x352ce1({'appcode':_0x551d09,'env':_0x9d1956,'autoYes':_0x3931e4[_0x2b12ef(0x1fa)](_0x2b12ef(0x1f2))});}if(_0x5534eb===_0x2b12ef(0x1e9)){const _0x302270=existsSync(resolve(_0x21be50,NEW_CONFIG_NAME)),_0x299fff=LEGACY_CONFIG_NAMES['some'](_0xe83621=>existsSync(resolve(_0x21be50,_0xe83621)));if(_0x299fff&&!_0x302270)return console['log'](_0x2b12ef(0x1e7)),upgradeApp(_0x3931e4['nonInteractive'],{'yes':_0x3931e4[_0x2b12ef(0x1fa)](_0x2b12ef(0x1f2))});if(_0x302270)throw CliErrors['validation'](_0x2b12ef(0x1f6),'Use\x20`'+CLI_BIN_NAME+_0x2b12ef(0x1f7));}if(_0x551d09){const _0xd6f61=validateAppcode(_0x551d09);if(!_0xd6f61[_0x2b12ef(0x1f5)])throw CliErrors['validation'](_0xd6f61['message']);writeInitConfig(_0x5534eb,[syntheticApp(_0x551d09)],_0x9d1956);return;}if(_0x3931e4[_0x2b12ef(0x1e1)])throw CliErrors['flagMissing']('appcode','Usage:\x20'+CLI_BIN_NAME+_0x2b12ef(0x1e3));const _0x6a354d=getCookie(),_0x8da4ce=await selectMultipleApps(_0x6a354d),_0x36d56b=_0x8da4ce===_0x2b12ef(0x1e2)?[syntheticApp(await promptCustomAppcode())]:_0x8da4ce;writeInitConfig(_0x5534eb,_0x36d56b,_0x9d1956);}const initFlags=[{'name':a75_0x327edc(0x1db),'type':a75_0x327edc(0x1ee),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a75_0x327edc(0x1d7),'type':'string','description':a75_0x327edc(0x1de),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':a75_0x327edc(0x1da),'type':a75_0x327edc(0x1e6),'description':a75_0x327edc(0x1e5)},{'name':a75_0x327edc(0x1e9),'type':a75_0x327edc(0x1ee),'description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':a75_0x327edc(0x1f2),'type':'boolean','description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a75_0x327edc(0x1e8),'command':a75_0x327edc(0x1f4),'description':a75_0x327edc(0x1d5),'risk':a75_0x327edc(0x1f3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x345c9b){return await runSmartInit(_0x345c9b),{'ok':!![]};}}];
1
+ const a75_0x8f8d77=a75_0x34fb;(function(_0x1fbcbc,_0x4bb815){const _0x37a553=a75_0x34fb,_0x363b3d=_0x1fbcbc();while(!![]){try{const _0x49c4d0=-parseInt(_0x37a553(0x118))/0x1+parseInt(_0x37a553(0x114))/0x2*(-parseInt(_0x37a553(0x103))/0x3)+parseInt(_0x37a553(0x129))/0x4*(parseInt(_0x37a553(0x110))/0x5)+parseInt(_0x37a553(0x119))/0x6+-parseInt(_0x37a553(0x10b))/0x7*(-parseInt(_0x37a553(0x109))/0x8)+parseInt(_0x37a553(0x100))/0x9*(parseInt(_0x37a553(0x122))/0xa)+-parseInt(_0x37a553(0x127))/0xb;if(_0x49c4d0===_0x4bb815)break;else _0x363b3d['push'](_0x363b3d['shift']());}catch(_0x1b697c){_0x363b3d['push'](_0x363b3d['shift']());}}}(a75_0x9aaa,0x1929b));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';function a75_0x9aaa(){const _0x613195=['4pJcJqk','boolean','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','76099tGcNwq','1125450PiTglK','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','toLocaleString','Auto-confirm\x20prompts','valid','project','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','appCode','run','670EILKuv','yes','Write\x20to\x20global\x20config\x20instead\x20of\x20project','some','App\x20code\x20to\x20initialize\x20with','3311957ICOLYU','Target\x20environment','368fWpnoW','global','\x0a✓\x20Successfully\x20initialized\x20','\x20config','log','write','defaultApp','17469HCNVRo','str','production','65733qlkbhb','map','\x20\x20Default:\x20','flagMissing','validation','env','5752YKWpjW','检测到旧配置文件,正在自动升级...\x0a','1589kGPedA','Usage:\x20','../../commands/project/init.js','\x20\x20Apps:\x20','cwd','2350dTWDfY','custom','bool','appcode'];a75_0x9aaa=function(){return _0x613195;};return a75_0x9aaa();}import{RABETBASE_ENV_VALUES}from'../../constant/env.js';function a75_0x34fb(_0x34499,_0x46f9b3){_0x34499=_0x34499-0xff;const _0x9aaa6=a75_0x9aaa();let _0x34fb68=_0x9aaa6[_0x34499];return _0x34fb68;}import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x15caf0){return{'appCode':_0x15caf0,'appName':_0x15caf0};}function writeInitConfig(_0xb5543c,_0x5066eb,_0x28762c){const _0x3fb235=a75_0x34fb,_0x3a96e9=resolveWriteConfigPath(_0xb5543c),_0x2ea8f6=buildCanonicalProjectConfig({},{'appCodes':_0x5066eb['map'](_0x4b183a=>_0x4b183a[_0x3fb235(0x120)]),'env':_0x28762c,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x3fb235(0x11b)]()}});writeConfigFile(_0x3a96e9,_0x2ea8f6);const _0x55b54e=_0xb5543c===_0x3fb235(0x12a)?_0x3fb235(0x12a):_0x3fb235(0x11e);console[_0x3fb235(0x12d)](_0x3fb235(0x12b)+_0x55b54e+_0x3fb235(0x12c)),console[_0x3fb235(0x12d)](_0x3fb235(0x10e)+_0x5066eb[_0x3fb235(0x104)](_0x33a46f=>_0x33a46f[_0x3fb235(0x120)])['join'](',\x20')),console[_0x3fb235(0x12d)](_0x3fb235(0x105)+_0x2ea8f6[_0x3fb235(0xff)]),console[_0x3fb235(0x12d)]('\x20\x20Env:\x20'+_0x2ea8f6[_0x3fb235(0x108)]),console['log']('\x20\x20Config:\x20'+_0x3a96e9);}async function runSmartInit(_0x2cec28){const _0x461eda=a75_0x34fb,_0x406256=process[_0x461eda(0x10f)](),_0x4b8641=_0x2cec28[_0x461eda(0x112)](_0x461eda(0x12a))?_0x461eda(0x12a):_0x461eda(0x11e),_0x5caeee=_0x2cec28[_0x461eda(0x101)](_0x461eda(0x108))||_0x461eda(0x102),_0x26db73=_0x2cec28['str']('appcode')||undefined,_0x21f4c8=_0x2cec28['bool'](_0x461eda(0x11e));if(_0x21f4c8){const {initConfig:_0x4f9cdc}=await import(_0x461eda(0x10d));return _0x4f9cdc({'appcode':_0x26db73,'env':_0x5caeee,'autoYes':_0x2cec28['bool'](_0x461eda(0x123))});}if(_0x4b8641===_0x461eda(0x11e)){const _0x2aa8b5=existsSync(resolve(_0x406256,NEW_CONFIG_NAME)),_0x185737=LEGACY_CONFIG_NAMES[_0x461eda(0x125)](_0x3c6d3e=>existsSync(resolve(_0x406256,_0x3c6d3e)));if(_0x185737&&!_0x2aa8b5)return console[_0x461eda(0x12d)](_0x461eda(0x10a)),upgradeApp(_0x2cec28['nonInteractive'],{'yes':_0x2cec28[_0x461eda(0x112)]('yes')});if(_0x2aa8b5)throw CliErrors[_0x461eda(0x107)](_0x461eda(0x11f),'Use\x20`'+CLI_BIN_NAME+_0x461eda(0x117));}if(_0x26db73){const _0x4de05a=validateAppcode(_0x26db73);if(!_0x4de05a[_0x461eda(0x11d)])throw CliErrors[_0x461eda(0x107)](_0x4de05a['message']);writeInitConfig(_0x4b8641,[syntheticApp(_0x26db73)],_0x5caeee);return;}if(_0x2cec28['nonInteractive'])throw CliErrors[_0x461eda(0x106)](_0x461eda(0x113),_0x461eda(0x10c)+CLI_BIN_NAME+_0x461eda(0x11a));const _0x33d8f4=getCookie(),_0x3fa959=await selectMultipleApps(_0x33d8f4),_0x530ad5=_0x3fa959===_0x461eda(0x111)?[syntheticApp(await promptCustomAppcode())]:_0x3fa959;writeInitConfig(_0x4b8641,_0x530ad5,_0x5caeee);}const initFlags=[{'name':'global','type':a75_0x8f8d77(0x115),'description':a75_0x8f8d77(0x124),'default':![]},{'name':a75_0x8f8d77(0x108),'type':'string','description':a75_0x8f8d77(0x128),'default':a75_0x8f8d77(0x102),'enum':[...RABETBASE_ENV_VALUES]},{'name':a75_0x8f8d77(0x113),'type':'string','description':a75_0x8f8d77(0x126)},{'name':a75_0x8f8d77(0x11e),'type':a75_0x8f8d77(0x115),'description':a75_0x8f8d77(0x116),'default':![]},{'name':'yes','type':a75_0x8f8d77(0x115),'description':a75_0x8f8d77(0x11c),'default':![]}];export const initDefinitions=[{'service':'init','command':a75_0x8f8d77(0x121),'description':'Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','risk':a75_0x8f8d77(0x12e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x3a3a0c){return await runSmartInit(_0x3a3a0c),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a76_0x5d2d(){const _0x13e97b=['1055380hIFFCM','353239MwImcU','952505SDpLaA','90wTTHPK','937824KawjXP','367012UfFbgg','1350vfURsA','570552bdlCjB','5838DdXgsW'];a76_0x5d2d=function(){return _0x13e97b;};return a76_0x5d2d();}function a76_0xbb1c(_0x51401d,_0x4980ef){_0x51401d=_0x51401d-0x11d;const _0x5d2de3=a76_0x5d2d();let _0xbb1c4b=_0x5d2de3[_0x51401d];return _0xbb1c4b;}(function(_0x5a350e,_0x739eaa){const _0x1fedc0=a76_0xbb1c,_0x3f7384=_0x5a350e();while(!![]){try{const _0x2a2f2b=-parseInt(_0x1fedc0(0x125))/0x1+-parseInt(_0x1fedc0(0x120))/0x2+-parseInt(_0x1fedc0(0x122))/0x3+-parseInt(_0x1fedc0(0x124))/0x4+-parseInt(_0x1fedc0(0x11d))/0x5+-parseInt(_0x1fedc0(0x121))/0x6*(-parseInt(_0x1fedc0(0x123))/0x7)+-parseInt(_0x1fedc0(0x11f))/0x8*(-parseInt(_0x1fedc0(0x11e))/0x9);if(_0x2a2f2b===_0x739eaa)break;else _0x3f7384['push'](_0x3f7384['shift']());}catch(_0x425bff){_0x3f7384['push'](_0x3f7384['shift']());}}}(a76_0x5d2d,0x2b9df));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
1
+ (function(_0x3f5395,_0x5434d2){const _0x1b05bb=a76_0x298b,_0x59562e=_0x3f5395();while(!![]){try{const _0xc933f5=-parseInt(_0x1b05bb(0xc4))/0x1*(parseInt(_0x1b05bb(0xc2))/0x2)+parseInt(_0x1b05bb(0xc3))/0x3*(-parseInt(_0x1b05bb(0xbf))/0x4)+parseInt(_0x1b05bb(0xbe))/0x5+parseInt(_0x1b05bb(0xca))/0x6*(parseInt(_0x1b05bb(0xc6))/0x7)+-parseInt(_0x1b05bb(0xc1))/0x8*(-parseInt(_0x1b05bb(0xc7))/0x9)+-parseInt(_0x1b05bb(0xc9))/0xa*(parseInt(_0x1b05bb(0xc8))/0xb)+-parseInt(_0x1b05bb(0xc5))/0xc*(-parseInt(_0x1b05bb(0xc0))/0xd);if(_0xc933f5===_0x5434d2)break;else _0x59562e['push'](_0x59562e['shift']());}catch(_0x5c8b9d){_0x59562e['push'](_0x59562e['shift']());}}}(a76_0x447e,0x4b3c7));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];function a76_0x298b(_0x5b54f6,_0x1c3e3e){_0x5b54f6=_0x5b54f6-0xbe;const _0x447ec8=a76_0x447e();let _0x298b79=_0x447ec8[_0x5b54f6];return _0x298b79;}function a76_0x447e(){const _0x347e41=['36NTnFAj','10153EShAVT','59496Cthzxq','2cuESyC','184881fzJvVM','392239BNqyfs','6204dDzKhP','245434KfFCZm','549EhqnDh','253qjXcRH','101330hqgzEb','96lzXTZe','348410npfEBe'];a76_0x447e=function(){return _0x347e41;};return a76_0x447e();}
@@ -1 +1 @@
1
- function a77_0x51ed(){const _0xb8a3f=['utf8','9259446UWQBNH','otel://','13011jtLcTV','str','filter','description-file','inline','2EmhsaE','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','file','title','message','3936210KyKWPC','520bfRLOC','3107480JIrygx','report','Issue\x20description\x20file\x20is\x20empty:\x20','cwd','Platform\x20issue\x20reported','204337KfRyKI','apiError','88FtaRYT','descriptionSource','File\x20not\x20found:\x20','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','713311VEJkLT','issue.title','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','Failed\x20to\x20report\x20platform\x20issue:\x20','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','POST','description','One-line\x20issue\x20summary','280uLFARx','compress','1592406mMdCcd','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Issue\x20description\x20cannot\x20be\x20empty.','flagMissing','write','length','descriptionFile:\x20','validation','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','string','descriptionFilePath','join','trim'];a77_0x51ed=function(){return _0xb8a3f;};return a77_0x51ed();}const a77_0x528748=a77_0x3616;(function(_0x4afae2,_0x3f1bad){const _0x2e4bab=a77_0x3616,_0x2a2f99=_0x4afae2();while(!![]){try{const _0x45e775=-parseInt(_0x2e4bab(0x1ae))/0x1*(-parseInt(_0x2e4bab(0x19c))/0x2)+parseInt(_0x2e4bab(0x197))/0x3*(-parseInt(_0x2e4bab(0x1a2))/0x4)+parseInt(_0x2e4bab(0x1a1))/0x5+parseInt(_0x2e4bab(0x195))/0x6+parseInt(_0x2e4bab(0x1a8))/0x7*(parseInt(_0x2e4bab(0x1b6))/0x8)+-parseInt(_0x2e4bab(0x1b8))/0x9+parseInt(_0x2e4bab(0x1a3))/0xa*(-parseInt(_0x2e4bab(0x1aa))/0xb);if(_0x45e775===_0x3f1bad)break;else _0x2a2f99['push'](_0x2a2f99['shift']());}catch(_0x55dea3){_0x2a2f99['push'](_0x2a2f99['shift']());}}}(a77_0x51ed,0xccc5f));function a77_0x3616(_0x303348,_0x1fbaa9){_0x303348=_0x303348-0x18e;const _0x51ed74=a77_0x51ed();let _0x361674=_0x51ed74[_0x303348];return _0x361674;}import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a77_0x528748(0x19a);export const issueReport={'service':'issue','command':a77_0x528748(0x1a4),'description':a77_0x528748(0x1b9),'risk':a77_0x528748(0x1bc),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a77_0x528748(0x1b7),'flags':[{'name':a77_0x528748(0x19f),'type':a77_0x528748(0x190),'required':!![],'description':a77_0x528748(0x1b5)},{'name':a77_0x528748(0x1b4),'type':a77_0x528748(0x190),'description':a77_0x528748(0x18f)},{'name':DESCRIPTION_FILE_FLAG,'type':a77_0x528748(0x190),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x381c19){const _0x4515ca=a77_0x528748,_0x2b615d=_0x381c19[_0x4515ca(0x198)]('title')[_0x4515ca(0x193)](),_0x5422c6=_0x381c19[_0x4515ca(0x198)]('description')[_0x4515ca(0x193)](),_0x109749=_0x381c19[_0x4515ca(0x198)](DESCRIPTION_FILE_FLAG)[_0x4515ca(0x193)]();if(!_0x2b615d)throw CliErrors[_0x4515ca(0x1bb)](_0x4515ca(0x19f),'Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x3270ee=_0x5422c6[_0x4515ca(0x1bd)]>0x0,_0xa78857=_0x109749[_0x4515ca(0x1bd)]>0x0;if(_0x3270ee===_0xa78857)throw CliErrors[_0x4515ca(0x18e)](_0x4515ca(0x19d),'Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0xa78857){const _0x1145fd=resolve(process[_0x4515ca(0x1a6)](),_0x109749);if(!existsSync(_0x1145fd))throw CliErrors[_0x4515ca(0x18e)](_0x4515ca(0x1ac)+_0x1145fd);}},async 'dryRun'(_0x193772){const _0x36ce7c=a77_0x528748,_0x4d02d9=await prepareIssueReport(_0x193772);return{'method':_0x36ce7c(0x1b3),'url':_0x36ce7c(0x196)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4d02d9['title'],'issue.description':_0x4d02d9['description']}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','descriptionSource:\x20'+_0x4d02d9[_0x36ce7c(0x1ab)],_0x4d02d9['descriptionFilePath']?_0x36ce7c(0x1be)+_0x4d02d9[_0x36ce7c(0x191)]:null][_0x36ce7c(0x199)](Boolean)[_0x36ce7c(0x192)]('\x0a')};},async 'execute'(_0x2accb4){const _0x5d1673=a77_0x528748,_0xc0ee2a=await prepareIssueReport(_0x2accb4);try{await sendPlatformIssueCollectLog({'title':_0xc0ee2a[_0x5d1673(0x19f)],'description':_0xc0ee2a[_0x5d1673(0x1b4)]});}catch(_0x577b0f){throw CliErrors[_0x5d1673(0x1a9)](_0x5d1673(0x1b1)+(_0x577b0f instanceof Error?_0x577b0f[_0x5d1673(0x1a0)]:String(_0x577b0f)),_0x5d1673(0x1ad));}return{'ok':!![],'message':_0x5d1673(0x1a7),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x5d1673(0x1af),'issue.description'],'issue':{'title':_0xc0ee2a[_0x5d1673(0x19f)],'descriptionLength':_0xc0ee2a[_0x5d1673(0x1b4)][_0x5d1673(0x1bd)],'descriptionSource':_0xc0ee2a[_0x5d1673(0x1ab)],..._0xc0ee2a['descriptionFilePath']?{'descriptionFile':_0xc0ee2a[_0x5d1673(0x191)]}:{}}}};}};async function prepareIssueReport(_0x18ceba){const _0x51404e=a77_0x528748,_0x456729=_0x18ceba[_0x51404e(0x198)](_0x51404e(0x19f))['trim'](),_0x2af09b=_0x18ceba['str'](_0x51404e(0x1b4)),_0x46889e=_0x18ceba[_0x51404e(0x198)](DESCRIPTION_FILE_FLAG)[_0x51404e(0x193)]();if(!_0x46889e){const _0xc47dbe=_0x2af09b;if(!_0xc47dbe[_0x51404e(0x193)]())throw CliErrors['validation'](_0x51404e(0x1ba),_0x51404e(0x1b0));return{'title':_0x456729,'description':_0xc47dbe,'descriptionSource':_0x51404e(0x19b)};}const _0x3712f1=resolve(process[_0x51404e(0x1a6)](),_0x46889e),_0xdd1016=await readFile(_0x3712f1,_0x51404e(0x194));if(!_0xdd1016[_0x51404e(0x193)]())throw CliErrors['validation'](_0x51404e(0x1a5)+_0x3712f1,_0x51404e(0x1b2));return{'title':_0x456729,'description':_0xdd1016,'descriptionSource':_0x51404e(0x19e),'descriptionFilePath':_0x3712f1};}
1
+ const a77_0xb3aa3f=a77_0x3d54;(function(_0x389df9,_0x4ff98b){const _0xbed0a3=a77_0x3d54,_0x92a49c=_0x389df9();while(!![]){try{const _0x33df37=-parseInt(_0xbed0a3(0x14c))/0x1*(-parseInt(_0xbed0a3(0x14d))/0x2)+-parseInt(_0xbed0a3(0x159))/0x3+parseInt(_0xbed0a3(0x16e))/0x4*(parseInt(_0xbed0a3(0x152))/0x5)+parseInt(_0xbed0a3(0x151))/0x6+parseInt(_0xbed0a3(0x16d))/0x7+parseInt(_0xbed0a3(0x167))/0x8+-parseInt(_0xbed0a3(0x14e))/0x9;if(_0x33df37===_0x4ff98b)break;else _0x92a49c['push'](_0x92a49c['shift']());}catch(_0x4417cb){_0x92a49c['push'](_0x92a49c['shift']());}}}(a77_0x2cc2,0x619b6));import{existsSync}from'node:fs';function a77_0x3d54(_0xfdc9b2,_0x5f4117){_0xfdc9b2=_0xfdc9b2-0x14a;const _0x2cc284=a77_0x2cc2();let _0x3d54f2=_0x2cc284[_0xfdc9b2];return _0x3d54f2;}import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';function a77_0x2cc2(){const _0x3fbad3=['otel://','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','join','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','issue.description','Issue\x20description\x20cannot\x20be\x20empty.','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','str','issue.title','title','description','Failed\x20to\x20report\x20platform\x20issue:\x20','711840fhKHgQ','report','length','File\x20not\x20found:\x20','issue','validation','3957485CEWJcF','4xsXKFE','string','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','descriptionSource','description-file','trim','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','descriptionSource:\x20','1hbvUBe','1298926jvIIte','15149385IDptVU','utf8','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','4464258GilHEU','2946785CgEZbO','cwd','descriptionFilePath','POST','Platform\x20issue\x20reported','file','flagMissing','1662405VACVPs'];a77_0x2cc2=function(){return _0x3fbad3;};return a77_0x2cc2();}import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a77_0xb3aa3f(0x172);export const issueReport={'service':a77_0xb3aa3f(0x16b),'command':a77_0xb3aa3f(0x168),'description':a77_0xb3aa3f(0x15d),'risk':'write','requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a77_0xb3aa3f(0x164),'type':a77_0xb3aa3f(0x16f),'required':!![],'description':'One-line\x20issue\x20summary'},{'name':a77_0xb3aa3f(0x165),'type':a77_0xb3aa3f(0x16f),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a77_0xb3aa3f(0x16f),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x876efd){const _0x4e63bf=a77_0xb3aa3f,_0x31c5dd=_0x876efd[_0x4e63bf(0x162)](_0x4e63bf(0x164))[_0x4e63bf(0x173)](),_0x5a9528=_0x876efd[_0x4e63bf(0x162)](_0x4e63bf(0x165))['trim'](),_0x26532f=_0x876efd['str'](DESCRIPTION_FILE_FLAG)[_0x4e63bf(0x173)]();if(!_0x31c5dd)throw CliErrors[_0x4e63bf(0x158)]('title',_0x4e63bf(0x161));const _0x35a968=_0x5a9528[_0x4e63bf(0x169)]>0x0,_0x55304c=_0x26532f[_0x4e63bf(0x169)]>0x0;if(_0x35a968===_0x55304c)throw CliErrors[_0x4e63bf(0x16c)](_0x4e63bf(0x170),_0x4e63bf(0x160));if(_0x55304c){const _0xf69469=resolve(process[_0x4e63bf(0x153)](),_0x26532f);if(!existsSync(_0xf69469))throw CliErrors['validation'](_0x4e63bf(0x16a)+_0xf69469);}},async 'dryRun'(_0x5bbdea){const _0x6f5cc1=a77_0xb3aa3f,_0x330dc4=await prepareIssueReport(_0x5bbdea);return{'method':_0x6f5cc1(0x155),'url':_0x6f5cc1(0x15a)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x330dc4[_0x6f5cc1(0x164)],'issue.description':_0x330dc4[_0x6f5cc1(0x165)]}},'description':[_0x6f5cc1(0x14a),_0x6f5cc1(0x14b)+_0x330dc4[_0x6f5cc1(0x171)],_0x330dc4[_0x6f5cc1(0x154)]?'descriptionFile:\x20'+_0x330dc4[_0x6f5cc1(0x154)]:null]['filter'](Boolean)[_0x6f5cc1(0x15c)]('\x0a')};},async 'execute'(_0x1f3156){const _0x359a08=a77_0xb3aa3f,_0x4f3d3c=await prepareIssueReport(_0x1f3156);try{await sendPlatformIssueCollectLog({'title':_0x4f3d3c['title'],'description':_0x4f3d3c['description']});}catch(_0x56149c){throw CliErrors['apiError'](_0x359a08(0x166)+(_0x56149c instanceof Error?_0x56149c['message']:String(_0x56149c)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':_0x359a08(0x156),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x359a08(0x163),_0x359a08(0x15e)],'issue':{'title':_0x4f3d3c[_0x359a08(0x164)],'descriptionLength':_0x4f3d3c[_0x359a08(0x165)]['length'],'descriptionSource':_0x4f3d3c['descriptionSource'],..._0x4f3d3c['descriptionFilePath']?{'descriptionFile':_0x4f3d3c[_0x359a08(0x154)]}:{}}}};}};async function prepareIssueReport(_0x530965){const _0x35a83c=a77_0xb3aa3f,_0x5daa14=_0x530965[_0x35a83c(0x162)](_0x35a83c(0x164))[_0x35a83c(0x173)](),_0x1ea4ce=_0x530965[_0x35a83c(0x162)]('description'),_0x21fe42=_0x530965[_0x35a83c(0x162)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x21fe42){const _0xa2bb71=_0x1ea4ce;if(!_0xa2bb71[_0x35a83c(0x173)]())throw CliErrors[_0x35a83c(0x16c)](_0x35a83c(0x15f),_0x35a83c(0x150));return{'title':_0x5daa14,'description':_0xa2bb71,'descriptionSource':'inline'};}const _0x449429=resolve(process['cwd'](),_0x21fe42),_0xcb8a9e=await readFile(_0x449429,_0x35a83c(0x14f));if(!_0xcb8a9e['trim']())throw CliErrors[_0x35a83c(0x16c)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x449429,_0x35a83c(0x15b));return{'title':_0x5daa14,'description':_0xcb8a9e,'descriptionSource':_0x35a83c(0x157),'descriptionFilePath':_0x449429};}
@@ -1 +1 @@
1
- const a78_0x46e160=a78_0x40e6;(function(_0x4de53c,_0x367b42){const _0x5d5f94=a78_0x40e6,_0x550348=_0x4de53c();while(!![]){try{const _0x281535=-parseInt(_0x5d5f94(0x9f))/0x1+parseInt(_0x5d5f94(0xb1))/0x2*(-parseInt(_0x5d5f94(0xb8))/0x3)+-parseInt(_0x5d5f94(0x9e))/0x4*(-parseInt(_0x5d5f94(0xb4))/0x5)+parseInt(_0x5d5f94(0xab))/0x6+-parseInt(_0x5d5f94(0xa6))/0x7+-parseInt(_0x5d5f94(0xb6))/0x8+parseInt(_0x5d5f94(0xa0))/0x9;if(_0x281535===_0x367b42)break;else _0x550348['push'](_0x550348['shift']());}catch(_0x17d05e){_0x550348['push'](_0x550348['shift']());}}}(a78_0x14e2,0x4e0b2));function a78_0x40e6(_0xeea17c,_0x268e78){_0xeea17c=_0xeea17c-0x9a;const _0x14e27a=a78_0x14e2();let _0x40e6a0=_0x14e27a[_0xeea17c];return _0x40e6a0;}import{logger}from'../../utils/logger.js';function printLogs(_0x5e97c3){const _0x491a87=a78_0x40e6;if(_0x5e97c3[_0x491a87(0xad)]===0x0){console[_0x491a87(0xa5)](_0x491a87(0xae));return;}console[_0x491a87(0xa5)](_0x491a87(0xaa)),_0x5e97c3[_0x491a87(0xb5)]((_0x27866b,_0x16e1a9)=>{const _0x527961=_0x491a87,_0x38bb6d=new Date(_0x27866b[_0x527961(0xa2)])[_0x527961(0xa7)](_0x527961(0xb3)),_0x2ceb70=_0x27866b[_0x527961(0xa8)]==='success'?'√':_0x27866b[_0x527961(0xa8)]==='error'?'×':_0x27866b[_0x527961(0xa8)]==='warn'?'!':'i';console['log'](_0x16e1a9+0x1+'.\x20'+_0x2ceb70+'\x20['+_0x27866b[_0x527961(0xb7)]+']\x20'+_0x27866b['message']),console['log'](_0x527961(0x9b)+_0x38bb6d),_0x27866b[_0x527961(0x9d)]&&console[_0x527961(0xa5)]('\x20\x20\x20Duration:\x20'+_0x27866b[_0x527961(0x9d)]+'ms'),_0x27866b[_0x527961(0xb0)]&&Object['keys'](_0x27866b['details'])[_0x527961(0xad)]>0x0&&console['log'](_0x527961(0xac)+JSON[_0x527961(0xa1)](_0x27866b[_0x527961(0xb0)],null,0x2)),console[_0x527961(0xa5)]('');});}export const logsDefinitions=[{'service':a78_0x46e160(0x9a),'command':a78_0x46e160(0xaf),'description':a78_0x46e160(0x9c),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1eb39b){const _0x3020cc=a78_0x46e160;return printLogs(logger[_0x3020cc(0xb2)]()),{'ok':!![]};}},{'service':a78_0x46e160(0x9a),'command':'clear','description':a78_0x46e160(0xa9),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x756fb1){const _0x3ee4f5=a78_0x46e160;return logger[_0x3ee4f5(0xa3)](),console[_0x3ee4f5(0xa5)](_0x3ee4f5(0xa4)),{'ok':!![]};}}];function a78_0x14e2(){const _0x332ab9=['en-US','985PdtHzy','forEach','5003768yftKTA','command','102fejvyq','logs','\x20\x20\x20Time:\x20','View\x20command\x20history\x20logs','duration','292KgylCZ','231256sEOaTU','13302243lxbHWL','stringify','timestamp','clearLogs','*\x20Logs\x20cleared','log','3610173ZmkvGI','toLocaleString','level','Clear\x20command\x20history\x20logs','*\x20Lovrabet\x20CLI\x20logs:\x0a','1801572lcDaon','\x20\x20\x20Details:\x20','length','*\x20No\x20logs\x20found','show','details','5914JAmHtS','readLogs'];a78_0x14e2=function(){return _0x332ab9;};return a78_0x14e2();}
1
+ const a78_0x36b84a=a78_0x572f;(function(_0xfbbf35,_0x377bd1){const _0x12f4eb=a78_0x572f,_0x1a260d=_0xfbbf35();while(!![]){try{const _0x108fb5=parseInt(_0x12f4eb(0x142))/0x1*(-parseInt(_0x12f4eb(0x12b))/0x2)+-parseInt(_0x12f4eb(0x132))/0x3+parseInt(_0x12f4eb(0x143))/0x4+parseInt(_0x12f4eb(0x126))/0x5*(parseInt(_0x12f4eb(0x134))/0x6)+parseInt(_0x12f4eb(0x13f))/0x7+-parseInt(_0x12f4eb(0x127))/0x8+parseInt(_0x12f4eb(0x140))/0x9;if(_0x108fb5===_0x377bd1)break;else _0x1a260d['push'](_0x1a260d['shift']());}catch(_0x2fb0a1){_0x1a260d['push'](_0x1a260d['shift']());}}}(a78_0x2733,0x2af08));function a78_0x572f(_0x126411,_0x5dd5b7){_0x126411=_0x126411-0x125;const _0x2733ab=a78_0x2733();let _0x572f1a=_0x2733ab[_0x126411];return _0x572f1a;}import{logger}from'../../utils/logger.js';function printLogs(_0x3287a2){const _0x8319ed=a78_0x572f;if(_0x3287a2[_0x8319ed(0x12a)]===0x0){console[_0x8319ed(0x131)](_0x8319ed(0x135));return;}console[_0x8319ed(0x131)](_0x8319ed(0x136)),_0x3287a2[_0x8319ed(0x133)]((_0x28a4ba,_0x2d0593)=>{const _0x256358=_0x8319ed,_0x3fe8b9=new Date(_0x28a4ba['timestamp'])[_0x256358(0x125)](_0x256358(0x12c)),_0x4dc905=_0x28a4ba['level']===_0x256358(0x12e)?'√':_0x28a4ba[_0x256358(0x141)]===_0x256358(0x137)?'×':_0x28a4ba[_0x256358(0x141)]===_0x256358(0x13c)?'!':'i';console[_0x256358(0x131)](_0x2d0593+0x1+'.\x20'+_0x4dc905+'\x20['+_0x28a4ba[_0x256358(0x139)]+']\x20'+_0x28a4ba[_0x256358(0x13a)]),console[_0x256358(0x131)]('\x20\x20\x20Time:\x20'+_0x3fe8b9),_0x28a4ba[_0x256358(0x13b)]&&console['log'](_0x256358(0x129)+_0x28a4ba['duration']+'ms'),_0x28a4ba[_0x256358(0x138)]&&Object[_0x256358(0x13d)](_0x28a4ba['details'])[_0x256358(0x12a)]>0x0&&console[_0x256358(0x131)]('\x20\x20\x20Details:\x20'+JSON[_0x256358(0x13e)](_0x28a4ba['details'],null,0x2)),console[_0x256358(0x131)]('');});}function a78_0x2733(){const _0x58546d=['level','149977xjcQHw','1217188bjefhm','toLocaleString','5hTKcqK','2090912CfCUHz','readLogs','\x20\x20\x20Duration:\x20','length','4rTYxOR','en-US','View\x20command\x20history\x20logs','success','logs','clear','log','559602ELKoeF','forEach','733818cyKmlG','*\x20No\x20logs\x20found','*\x20Lovrabet\x20CLI\x20logs:\x0a','error','details','command','message','duration','warn','keys','stringify','677761mxFSGp','3602781ZJZXus'];a78_0x2733=function(){return _0x58546d;};return a78_0x2733();}export const logsDefinitions=[{'service':a78_0x36b84a(0x12f),'command':'show','description':a78_0x36b84a(0x12d),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x55f696){const _0x2479b0=a78_0x36b84a;return printLogs(logger[_0x2479b0(0x128)]()),{'ok':!![]};}},{'service':a78_0x36b84a(0x12f),'command':a78_0x36b84a(0x130),'description':'Clear\x20command\x20history\x20logs','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x5be600){const _0x59766f=a78_0x36b84a;return logger['clearLogs'](),console[_0x59766f(0x131)]('*\x20Logs\x20cleared'),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x348f31,_0x213352){const _0x50c543=a79_0x2785,_0x250994=_0x348f31();while(!![]){try{const _0x2696ba=parseInt(_0x50c543(0x144))/0x1*(parseInt(_0x50c543(0x140))/0x2)+parseInt(_0x50c543(0x146))/0x3*(-parseInt(_0x50c543(0x13e))/0x4)+-parseInt(_0x50c543(0x148))/0x5+parseInt(_0x50c543(0x145))/0x6+parseInt(_0x50c543(0x142))/0x7*(-parseInt(_0x50c543(0x141))/0x8)+-parseInt(_0x50c543(0x13f))/0x9*(parseInt(_0x50c543(0x143))/0xa)+parseInt(_0x50c543(0x147))/0xb;if(_0x2696ba===_0x213352)break;else _0x250994['push'](_0x250994['shift']());}catch(_0x42888a){_0x250994['push'](_0x250994['shift']());}}}(a79_0x4b22,0xdd5d2));function a79_0x4b22(){const _0x533092=['11347pFQWQt','610730WOSEAr','1606dpJFMR','9130464vLeWCI','30gKyZFB','19736728GnxOFy','7994080IRGeso','200308wJYRCA','45MiaGJz','578KFDndE','2312SSFHpT'];a79_0x4b22=function(){return _0x533092;};return a79_0x4b22();}function a79_0x2785(_0x25ddee,_0x428a27){_0x25ddee=_0x25ddee-0x13e;const _0x4b2298=a79_0x4b22();let _0x27853f=_0x4b2298[_0x25ddee];return _0x27853f;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];
1
+ (function(_0x435fe2,_0x1a376d){const _0x51e32c=a79_0x3e1e,_0x92146d=_0x435fe2();while(!![]){try{const _0x595ad7=parseInt(_0x51e32c(0x99))/0x1*(parseInt(_0x51e32c(0x9e))/0x2)+parseInt(_0x51e32c(0xa0))/0x3+-parseInt(_0x51e32c(0x9f))/0x4+parseInt(_0x51e32c(0xa1))/0x5+parseInt(_0x51e32c(0x9b))/0x6+parseInt(_0x51e32c(0x9c))/0x7*(-parseInt(_0x51e32c(0x9a))/0x8)+-parseInt(_0x51e32c(0x9d))/0x9;if(_0x595ad7===_0x1a376d)break;else _0x92146d['push'](_0x92146d['shift']());}catch(_0x517b4f){_0x92146d['push'](_0x92146d['shift']());}}}(a79_0x2930,0xd39d3));import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';function a79_0x3e1e(_0x560bd2,_0x48c314){_0x560bd2=_0x560bd2-0x99;const _0x2930e0=a79_0x2930();let _0x3e1e9b=_0x2930e0[_0x560bd2];return _0x3e1e9b;}function a79_0x2930(){const _0x5361e8=['4264360KGbtTt','4691436hxcWhn','5003690mYIEeH','192529iiyuwH','6456696IxJAgA','432240gauRpH','7zqBgSq','802539TvhcmI','2iJQAyd'];a79_0x2930=function(){return _0x5361e8;};return a79_0x2930();}export const menuDefinitions=[menuSync,menuUpdate];
@@ -1 +1 @@
1
- (function(_0x46e829,_0x189ef0){const _0x4e5afd=a80_0x4b87,_0x2da76b=_0x46e829();while(!![]){try{const _0x53b9a8=-parseInt(_0x4e5afd(0x1c0))/0x1*(-parseInt(_0x4e5afd(0x1c9))/0x2)+-parseInt(_0x4e5afd(0x1b4))/0x3*(parseInt(_0x4e5afd(0x1ba))/0x4)+parseInt(_0x4e5afd(0x1c7))/0x5+-parseInt(_0x4e5afd(0x1b8))/0x6*(-parseInt(_0x4e5afd(0x1c3))/0x7)+parseInt(_0x4e5afd(0x1bc))/0x8*(-parseInt(_0x4e5afd(0x1cd))/0x9)+-parseInt(_0x4e5afd(0x1b2))/0xa+parseInt(_0x4e5afd(0x1bb))/0xb*(parseInt(_0x4e5afd(0x1c1))/0xc);if(_0x53b9a8===_0x189ef0)break;else _0x2da76b['push'](_0x2da76b['shift']());}catch(_0x2bd571){_0x2da76b['push'](_0x2da76b['shift']());}}}(a80_0x14ad,0x2638d));function strWidth(_0x5b540d){let _0x464954=0x0;for(const _0xd553cb of _0x5b540d){_0x464954+=/[\u4e00-\u9fa5]/['test'](_0xd553cb)?0x2:0x1;}return _0x464954;}function padRight(_0x408c17,_0x5847c7){const _0x39d840=strWidth(_0x408c17);return _0x408c17+'\x20'['repeat'](Math['max'](0x0,_0x5847c7-_0x39d840));}function a80_0x14ad(){const _0x3c9246=['\x20\x20\x20\x20•\x20','join','1388178zyuVks','Local','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','940440PQrKmO','label','18057ExKZaW','(unchanged)','\x20\x20\x20\x20JS:\x20\x20','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','18IOgxGt','max','4bMwNEy','6974UDbUtH','16mulxbI','Platform','push','length','14887EGGMoE','5964hlgtXi','Menu\x20Name','364847PDbbFp','\x20\x20\x20\x20CSS:\x20','map','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','96040rlulUG','repeat','10PumjEd','local'];a80_0x14ad=function(){return _0x3c9246;};return a80_0x14ad();}export function renderCompareTable(_0x4ab871,_0x329f23={}){const _0x2e19d1=a80_0x4b87;if(_0x4ab871[_0x2e19d1(0x1bf)]===0x0)return'';const _0x29d6fc=_0x329f23['showOnline']??!![],_0x31bb42=Math[_0x2e19d1(0x1b9)](0x1e,..._0x4ab871[_0x2e19d1(0x1c5)](_0x125702=>strWidth(_0x125702[_0x2e19d1(0x1b3)]))),_0x1728d7=0x4,_0x56d4a4=[],_0x691460='\x20\x20'+padRight(_0x2e19d1(0x1c2),_0x31bb42),_0x582c43=padRight(_0x2e19d1(0x1ce),_0x1728d7),_0x20e7c0=_0x29d6fc?'\x20\x20'+padRight(_0x2e19d1(0x1bd),_0x1728d7):'';_0x56d4a4['push'](_0x691460+'\x20\x20'+_0x582c43+(_0x29d6fc?_0x20e7c0:'')),_0x56d4a4[_0x2e19d1(0x1be)]('\x20\x20'+'─'[_0x2e19d1(0x1c8)](_0x31bb42)+'\x20\x20'+'─'[_0x2e19d1(0x1c8)](_0x1728d7)+(_0x29d6fc?'\x20\x20'+'─'[_0x2e19d1(0x1c8)](_0x1728d7):''));for(const _0x169730 of _0x4ab871){const _0x3ffec8=padRight(_0x169730[_0x2e19d1(0x1b3)],_0x31bb42),_0x59bd2f=_0x169730[_0x2e19d1(0x1ca)]?'✓':'✗',_0x23d48f=padRight(_0x59bd2f,_0x1728d7);let _0x40f08b='\x20\x20'+_0x3ffec8+'\x20\x20'+_0x23d48f;if(_0x29d6fc){const _0x44aa54=_0x169730['online']?'✓':'✗';_0x40f08b+='\x20\x20'+padRight(_0x44aa54,_0x1728d7);}_0x56d4a4[_0x2e19d1(0x1be)](_0x40f08b);}return _0x56d4a4['join']('\x0a');}function a80_0x4b87(_0x4bf116,_0xade653){_0x4bf116=_0x4bf116-0x1b1;const _0x14adea=a80_0x14ad();let _0x4b8790=_0x14adea[_0x4bf116];return _0x4b8790;}export function renderSyncSummary(_0x3241fa,_0x485b0e){const _0x107866=a80_0x4b87;if(_0x3241fa['length']===0x0)return _0x485b0e?_0x107866(0x1b1):'\x20\x20No\x20pages\x20to\x20sync.';const _0x5bf4c8=['\x20\x20'+_0x3241fa['length']+_0x107866(0x1b7)];for(const _0x3685b8 of _0x3241fa){_0x5bf4c8[_0x107866(0x1be)](_0x107866(0x1cb)+_0x3685b8[_0x107866(0x1b3)]+'\x20('+_0x3685b8['path']+')');}return _0x5bf4c8[_0x107866(0x1cc)]('\x0a');}export function renderUpdateSummary(_0x20ca55,_0xb16a71){const _0x2aa04d=a80_0x4b87;if(_0x20ca55[_0x2aa04d(0x1bf)]===0x0)return'\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.';const _0x133f3d=['\x20\x20'+_0x20ca55['length']+_0x2aa04d(0x1c6),_0x2aa04d(0x1b6)+(_0xb16a71[0x0]??_0x2aa04d(0x1b5)),_0x2aa04d(0x1c4)+(_0xb16a71[0x1]??_0x2aa04d(0x1b5)),'','\x20\x20Affected\x20menus:\x20'+_0x20ca55[_0x2aa04d(0x1cc)](',\x20')];return _0x133f3d[_0x2aa04d(0x1cc)]('\x0a');}
1
+ function a80_0xc90c(){const _0x35b4e0=['5pkFRxZ','path','push','\x20\x20Affected\x20menus:\x20','map','online','join','max','1000200PqgmNL','1429626iPLWCU','Menu\x20Name','\x20\x20\x20\x20•\x20','Local','514332lePrmW','local','1475456mgAIDd','1202878KdfwQx','test','3lAXDJa','1685362hNZjEf','(unchanged)','15002037nJutHW','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','Platform','length','\x20\x20\x20\x20CSS:\x20','repeat','\x20\x20No\x20pages\x20to\x20sync.','showOnline','label'];a80_0xc90c=function(){return _0x35b4e0;};return a80_0xc90c();}(function(_0x5d62a9,_0x500000){const _0xcf8907=a80_0xc674,_0x2fda31=_0x5d62a9();while(!![]){try{const _0x2b1aa4=parseInt(_0xcf8907(0x158))/0x1+parseInt(_0xcf8907(0x15b))/0x2*(parseInt(_0xcf8907(0x15d))/0x3)+parseInt(_0xcf8907(0x15a))/0x4+-parseInt(_0xcf8907(0x14b))/0x5*(-parseInt(_0xcf8907(0x154))/0x6)+parseInt(_0xcf8907(0x15e))/0x7+parseInt(_0xcf8907(0x153))/0x8+-parseInt(_0xcf8907(0x160))/0x9;if(_0x2b1aa4===_0x500000)break;else _0x2fda31['push'](_0x2fda31['shift']());}catch(_0x17529c){_0x2fda31['push'](_0x2fda31['shift']());}}}(a80_0xc90c,0x66fac));function strWidth(_0x282f19){const _0x260ced=a80_0xc674;let _0x5ba318=0x0;for(const _0x4d8386 of _0x282f19){_0x5ba318+=/[\u4e00-\u9fa5]/[_0x260ced(0x15c)](_0x4d8386)?0x2:0x1;}return _0x5ba318;}function a80_0xc674(_0x567f0e,_0x2dd065){_0x567f0e=_0x567f0e-0x14b;const _0xc90c58=a80_0xc90c();let _0xc6744b=_0xc90c58[_0x567f0e];return _0xc6744b;}function padRight(_0x44b627,_0x321c2f){const _0x224a1c=a80_0xc674,_0x206ba5=strWidth(_0x44b627);return _0x44b627+'\x20'[_0x224a1c(0x166)](Math[_0x224a1c(0x152)](0x0,_0x321c2f-_0x206ba5));}export function renderCompareTable(_0x2b4989,_0x43412c={}){const _0xa708b8=a80_0xc674;if(_0x2b4989['length']===0x0)return'';const _0xd30dc=_0x43412c[_0xa708b8(0x168)]??!![],_0x1f8bbd=Math['max'](0x1e,..._0x2b4989[_0xa708b8(0x14f)](_0x7cf0b3=>strWidth(_0x7cf0b3[_0xa708b8(0x169)]))),_0x40d6aa=0x4,_0x596849=[],_0x31d8ae='\x20\x20'+padRight(_0xa708b8(0x155),_0x1f8bbd),_0x25dd0e=padRight(_0xa708b8(0x157),_0x40d6aa),_0x4a613f=_0xd30dc?'\x20\x20'+padRight(_0xa708b8(0x163),_0x40d6aa):'';_0x596849['push'](_0x31d8ae+'\x20\x20'+_0x25dd0e+(_0xd30dc?_0x4a613f:'')),_0x596849[_0xa708b8(0x14d)]('\x20\x20'+'─'[_0xa708b8(0x166)](_0x1f8bbd)+'\x20\x20'+'─'['repeat'](_0x40d6aa)+(_0xd30dc?'\x20\x20'+'─'[_0xa708b8(0x166)](_0x40d6aa):''));for(const _0x34759b of _0x2b4989){const _0x11c676=padRight(_0x34759b[_0xa708b8(0x169)],_0x1f8bbd),_0xeeb36a=_0x34759b[_0xa708b8(0x159)]?'✓':'✗',_0x479fbc=padRight(_0xeeb36a,_0x40d6aa);let _0x21754a='\x20\x20'+_0x11c676+'\x20\x20'+_0x479fbc;if(_0xd30dc){const _0x9be039=_0x34759b[_0xa708b8(0x150)]?'✓':'✗';_0x21754a+='\x20\x20'+padRight(_0x9be039,_0x40d6aa);}_0x596849[_0xa708b8(0x14d)](_0x21754a);}return _0x596849[_0xa708b8(0x151)]('\x0a');}export function renderSyncSummary(_0x2a3b5c,_0x59a2b8){const _0x420420=a80_0xc674;if(_0x2a3b5c[_0x420420(0x164)]===0x0)return _0x59a2b8?_0x420420(0x162):_0x420420(0x167);const _0x2cd986=['\x20\x20'+_0x2a3b5c[_0x420420(0x164)]+_0x420420(0x161)];for(const _0x5949f1 of _0x2a3b5c){_0x2cd986[_0x420420(0x14d)](_0x420420(0x156)+_0x5949f1[_0x420420(0x169)]+'\x20('+_0x5949f1[_0x420420(0x14c)]+')');}return _0x2cd986['join']('\x0a');}export function renderUpdateSummary(_0x166ade,_0x409f15){const _0x1b4ce8=a80_0xc674;if(_0x166ade[_0x1b4ce8(0x164)]===0x0)return'\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.';const _0x5b2454=['\x20\x20'+_0x166ade[_0x1b4ce8(0x164)]+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','\x20\x20\x20\x20JS:\x20\x20'+(_0x409f15[0x0]??_0x1b4ce8(0x15f)),_0x1b4ce8(0x165)+(_0x409f15[0x1]??_0x1b4ce8(0x15f)),'',_0x1b4ce8(0x14e)+_0x166ade['join'](',\x20')];return _0x5b2454[_0x1b4ce8(0x151)]('\x0a');}
@@ -1 +1 @@
1
- function a81_0x26aa(_0x20e194,_0x3cf3f8){_0x20e194=_0x20e194-0x86;var _0x111807=a81_0x1118();var _0x26aa54=_0x111807[_0x20e194];return _0x26aa54;}(function(_0x3be86b,_0x5186d0){var _0x46f5ef=a81_0x26aa,_0x4bb62e=_0x3be86b();while(!![]){try{var _0x13af4d=parseInt(_0x46f5ef(0x8f))/0x1*(-parseInt(_0x46f5ef(0x8b))/0x2)+parseInt(_0x46f5ef(0x87))/0x3*(-parseInt(_0x46f5ef(0x86))/0x4)+-parseInt(_0x46f5ef(0x8c))/0x5*(parseInt(_0x46f5ef(0x8e))/0x6)+-parseInt(_0x46f5ef(0x91))/0x7*(parseInt(_0x46f5ef(0x8d))/0x8)+parseInt(_0x46f5ef(0x89))/0x9*(parseInt(_0x46f5ef(0x90))/0xa)+-parseInt(_0x46f5ef(0x88))/0xb+parseInt(_0x46f5ef(0x8a))/0xc;if(_0x13af4d===_0x5186d0)break;else _0x4bb62e['push'](_0x4bb62e['shift']());}catch(_0x2036a9){_0x4bb62e['push'](_0x4bb62e['shift']());}}}(a81_0x1118,0xa5238));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';function a81_0x1118(){var _0x19da77=['12651518FxGoxS','9wEvncV','42039588JCpiWk','2AQiECg','10UnAOpX','2717824xcLrUj','2064810nfrSEP','606579yTbwMT','130430poVAaQ','7bKrhAl','220876KPKBVc','3ijHKis'];a81_0x1118=function(){return _0x19da77;};return a81_0x1118();}export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
1
+ (function(_0x29d5c3,_0xbc4a42){var _0x262d73=a81_0x2b81,_0x27aadb=_0x29d5c3();while(!![]){try{var _0x18f620=parseInt(_0x262d73(0x8a))/0x1*(-parseInt(_0x262d73(0x90))/0x2)+-parseInt(_0x262d73(0x8d))/0x3+-parseInt(_0x262d73(0x8c))/0x4*(-parseInt(_0x262d73(0x89))/0x5)+-parseInt(_0x262d73(0x8b))/0x6+-parseInt(_0x262d73(0x92))/0x7+-parseInt(_0x262d73(0x8f))/0x8*(-parseInt(_0x262d73(0x91))/0x9)+parseInt(_0x262d73(0x8e))/0xa;if(_0x18f620===_0xbc4a42)break;else _0x27aadb['push'](_0x27aadb['shift']());}catch(_0x18fb42){_0x27aadb['push'](_0x27aadb['shift']());}}}(a81_0x3269,0xe3fd5));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';function a81_0x2b81(_0x35f988,_0xd833c4){_0x35f988=_0x35f988-0x89;var _0x32698d=a81_0x3269();var _0x2b8108=_0x32698d[_0x35f988];return _0x2b8108;}export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';function a81_0x3269(){var _0x217728=['4tvzRoI','4863564YXuWrv','61670520RYMGuC','80VPFfkE','52014LGfhVD','504783qMaWks','9111081vFzXML','2166085ZlYPAY','64ZVkKqU','9840450MaGrOH'];a81_0x3269=function(){return _0x217728;};return a81_0x3269();}
@@ -1 +1 @@
1
- (function(_0x322ee2,_0x5d8271){const _0x58a0b2=a82_0x1d2e,_0x376ba6=_0x322ee2();while(!![]){try{const _0x207ee3=-parseInt(_0x58a0b2(0x1a9))/0x1+-parseInt(_0x58a0b2(0x1ac))/0x2*(-parseInt(_0x58a0b2(0x1a3))/0x3)+parseInt(_0x58a0b2(0x1b2))/0x4+parseInt(_0x58a0b2(0x1c5))/0x5*(-parseInt(_0x58a0b2(0x1a4))/0x6)+-parseInt(_0x58a0b2(0x19c))/0x7+-parseInt(_0x58a0b2(0x1bb))/0x8+parseInt(_0x58a0b2(0x1c0))/0x9;if(_0x207ee3===_0x5d8271)break;else _0x376ba6['push'](_0x376ba6['shift']());}catch(_0x571546){_0x376ba6['push'](_0x376ba6['shift']());}}}(a82_0x4bc4,0x4fbd5));import a82_0x23c8e4 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a82_0x3693e9 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function a82_0x1d2e(_0x4cd643,_0x324881){_0x4cd643=_0x4cd643-0x19b;const _0x4bc425=a82_0x4bc4();let _0x1d2e28=_0x4bc425[_0x4cd643];return _0x1d2e28;}function onCancel(_0x7e9287){return _0x7e9287['catch'](_0x268128=>{const _0x53de1b=a82_0x1d2e;if(_0x268128?.[_0x53de1b(0x1ba)]==='ExitPromptError')throw CliErrors[_0x53de1b(0x1b6)]('Cancelled.');throw _0x268128;});}export function startSpinner(_0x5f1451){const _0x52b287=a82_0x1d2e;return a82_0x3693e9({'text':_0x5f1451,'color':_0x52b287(0x1b3)})[_0x52b287(0x1bc)]();}function a82_0x4bc4(){const _0x45cbff=['trim','5AdXOcX','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','4164776GPvqGa','path','JS\x20URL\x20check\x20failed','includes','has','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','filter','36705GapSXM','629910eaeQkY','test','\x20\x20JS\x20URL:','map','error','483260qqbqUl','green','No\x20menus\x20selected.','28DgDDPI','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','length','\x20\x20Checking\x20CSS\x20URL\x20reachability...','red','succeed','663040yDheAG','cyan','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','No\x20local\x20pages\x20found.','cancelled','fail','JS\x20URL\x20checked','CSS\x20URL\x20check\x20failed','name','1732816meUpSL','start','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','\x20\x20Checking\x20JS\x20URL\x20reachability...','label','12504402usFvxC','isTTY','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','Cancelled.'];a82_0x4bc4=function(){return _0x45cbff;};return a82_0x4bc4();}export function stopSpinner(_0x19af71,_0x3c1127,_0x1e5df9){const _0x4e04e2=a82_0x1d2e;_0x1e5df9?_0x19af71[_0x4e04e2(0x1b1)](_0x3c1127):_0x19af71[_0x4e04e2(0x1b7)](_0x3c1127);}export async function askConfirm(_0x5b6bde){return onCancel(confirm({'message':_0x5b6bde,'theme':{'prefix':''}}));}export async function askJsUrl(_0x4c94a2){const _0x33aae8=a82_0x1d2e;while(!![]){const _0x505a10=await onCancel(input({'message':_0x33aae8(0x1a6),'default':_0x4c94a2,'theme':{'prefix':''}}));if(_0x505a10[_0x33aae8(0x1c4)]()==='')throw CliErrors[_0x33aae8(0x1b6)](_0x33aae8(0x1c3));if(!/^https:\/\/.+\.js(\?.*)?$/['test'](_0x505a10[_0x33aae8(0x1c4)]())){console[_0x33aae8(0x1a8)](a82_0x23c8e4['red'](_0x33aae8(0x1bd)));continue;}const _0xaa5dbb=startSpinner(_0x33aae8(0x1be));try{const _0x493afe=await isUrlReachable(_0x505a10[_0x33aae8(0x1c4)]());stopSpinner(_0xaa5dbb,_0x33aae8(0x1b8),_0x493afe);if(!_0x493afe){console[_0x33aae8(0x1a8)](a82_0x23c8e4[_0x33aae8(0x1b0)](_0x33aae8(0x1ad)));continue;}return _0x505a10['trim']();}catch(_0x2873f6){stopSpinner(_0xaa5dbb,_0x33aae8(0x19e),![]);throw _0x2873f6;}}}export async function askCssUrl(_0x55d9ff){const _0x306231=a82_0x1d2e;while(!![]){const _0x80bcd2=await onCancel(input({'message':'\x20\x20CSS\x20URL:','default':_0x55d9ff,'theme':{'prefix':''}}));if(_0x80bcd2[_0x306231(0x1c4)]()==='')throw CliErrors[_0x306231(0x1b6)]('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/[_0x306231(0x1a5)](_0x80bcd2['trim']())){console[_0x306231(0x1a8)](a82_0x23c8e4[_0x306231(0x1b0)](_0x306231(0x1b4)));continue;}const _0x1b30a4=startSpinner(_0x306231(0x1af));try{const _0x3df717=await isUrlReachable(_0x80bcd2[_0x306231(0x1c4)]());stopSpinner(_0x1b30a4,'CSS\x20URL\x20checked',_0x3df717);if(!_0x3df717){console[_0x306231(0x1a8)](a82_0x23c8e4[_0x306231(0x1b0)](_0x306231(0x19b)));continue;}return _0x80bcd2[_0x306231(0x1c4)]();}catch(_0x400b5b){stopSpinner(_0x1b30a4,_0x306231(0x1b9),![]);throw _0x400b5b;}}}export async function selectPages(_0x391111,_0x15a6b4,_0x56c391){const _0xedca17=a82_0x1d2e,_0x55ceaa=_0x391111[_0xedca17(0x1a7)](_0x9aa401=>({'name':_0x9aa401['label']+'\x20\x20'+(_0x15a6b4[_0xedca17(0x1a0)](_0x9aa401[_0xedca17(0x19d)])?a82_0x23c8e4['gray']('[already\x20on\x20platform]'):a82_0x23c8e4[_0xedca17(0x1aa)]('[new]')),'value':_0x9aa401[_0xedca17(0x1bf)],'checked':_0x56c391?_0x56c391[_0xedca17(0x19f)](_0x9aa401[_0xedca17(0x1bf)]):!_0x15a6b4[_0xedca17(0x1a0)](_0x9aa401['path'])}));if(_0x55ceaa[_0xedca17(0x1ae)]===0x0)throw new Error(_0xedca17(0x1b5));const _0x25b543=await onCancel(checkbox({'message':'\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','choices':_0x55ceaa,'loop':![],'theme':{'prefix':''}}));if(_0x25b543[_0xedca17(0x1ae)]===0x0)throw new Error(_0xedca17(0x1ab));return _0x391111[_0xedca17(0x1a2)](_0x1a246e=>_0x25b543[_0xedca17(0x19f)](_0x1a246e['label']));}export function isInteractive(){const _0x2f3109=a82_0x1d2e;return process['stdin'][_0x2f3109(0x1c1)]===!![];}export function requireInteractive(){const _0x3b824c=a82_0x1d2e;if(!isInteractive())throw new Error(_0x3b824c(0x1a1)+_0x3b824c(0x1c2));}
1
+ (function(_0x3a5400,_0x32ac41){const _0x4fda8e=a82_0x48ac,_0x3cfa07=_0x3a5400();while(!![]){try{const _0x650e3b=parseInt(_0x4fda8e(0x124))/0x1+-parseInt(_0x4fda8e(0x10f))/0x2*(-parseInt(_0x4fda8e(0x108))/0x3)+parseInt(_0x4fda8e(0x11e))/0x4+parseInt(_0x4fda8e(0x10e))/0x5+parseInt(_0x4fda8e(0x119))/0x6+parseInt(_0x4fda8e(0x102))/0x7+-parseInt(_0x4fda8e(0x127))/0x8;if(_0x650e3b===_0x32ac41)break;else _0x3cfa07['push'](_0x3cfa07['shift']());}catch(_0x3d3082){_0x3cfa07['push'](_0x3cfa07['shift']());}}}(a82_0x2896,0x9affb));import a82_0x4ab476 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a82_0xc1ca from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x7a310e){return _0x7a310e['catch'](_0x469114=>{const _0x26a355=a82_0x48ac;if(_0x469114?.['name']===_0x26a355(0x10c))throw CliErrors['cancelled'](_0x26a355(0x116));throw _0x469114;});}export function startSpinner(_0x4152ff){const _0x1c6caa=a82_0x48ac;return a82_0xc1ca({'text':_0x4152ff,'color':'cyan'})[_0x1c6caa(0x117)]();}export function stopSpinner(_0x1b8ac4,_0x50973c,_0x476933){const _0x1990b7=a82_0x48ac;_0x476933?_0x1b8ac4[_0x1990b7(0x125)](_0x50973c):_0x1b8ac4[_0x1990b7(0x122)](_0x50973c);}export async function askConfirm(_0x40d8dc){return onCancel(confirm({'message':_0x40d8dc,'theme':{'prefix':''}}));}export async function askJsUrl(_0x13402a){const _0x314a20=a82_0x48ac;while(!![]){const _0x4d8606=await onCancel(input({'message':_0x314a20(0x114),'default':_0x13402a,'theme':{'prefix':''}}));if(_0x4d8606[_0x314a20(0x111)]()==='')throw CliErrors[_0x314a20(0x106)](_0x314a20(0x116));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x314a20(0x110)](_0x4d8606['trim']())){console[_0x314a20(0x107)](a82_0x4ab476[_0x314a20(0x10a)](_0x314a20(0x113)));continue;}const _0xec9b17=startSpinner(_0x314a20(0x11d));try{const _0x144a91=await isUrlReachable(_0x4d8606[_0x314a20(0x111)]());stopSpinner(_0xec9b17,_0x314a20(0x10b),_0x144a91);if(!_0x144a91){console['error'](a82_0x4ab476['red'](_0x314a20(0x100)));continue;}return _0x4d8606['trim']();}catch(_0x2fb543){stopSpinner(_0xec9b17,'JS\x20URL\x20check\x20failed',![]);throw _0x2fb543;}}}export async function askCssUrl(_0x14b9b3){const _0x16c0a4=a82_0x48ac;while(!![]){const _0x326fa9=await onCancel(input({'message':_0x16c0a4(0x11c),'default':_0x14b9b3,'theme':{'prefix':''}}));if(_0x326fa9[_0x16c0a4(0x111)]()==='')throw CliErrors[_0x16c0a4(0x106)](_0x16c0a4(0x116));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x16c0a4(0x110)](_0x326fa9[_0x16c0a4(0x111)]())){console[_0x16c0a4(0x107)](a82_0x4ab476[_0x16c0a4(0x10a)](_0x16c0a4(0x118)));continue;}const _0x519a39=startSpinner('\x20\x20Checking\x20CSS\x20URL\x20reachability...');try{const _0x432933=await isUrlReachable(_0x326fa9[_0x16c0a4(0x111)]());stopSpinner(_0x519a39,_0x16c0a4(0x126),_0x432933);if(!_0x432933){console[_0x16c0a4(0x107)](a82_0x4ab476[_0x16c0a4(0x10a)](_0x16c0a4(0x123)));continue;}return _0x326fa9[_0x16c0a4(0x111)]();}catch(_0x4569d5){stopSpinner(_0x519a39,_0x16c0a4(0x10d),![]);throw _0x4569d5;}}}function a82_0x2896(){const _0x44ef19=['Cancelled.','start','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','7181418gFYrSc','[already\x20on\x20platform]','includes','\x20\x20CSS\x20URL:','\x20\x20Checking\x20JS\x20URL\x20reachability...','4644928yJyExT','No\x20local\x20pages\x20found.','length','[new]','fail','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','921862MGUJgY','succeed','CSS\x20URL\x20checked','40101208zqOZWM','path','filter','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','6070218zmYwPx','gray','has','map','cancelled','error','15wQqgxN','isTTY','red','JS\x20URL\x20checked','ExitPromptError','CSS\x20URL\x20check\x20failed','3851200PfHUrj','292046duVOpm','test','trim','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','\x20\x20JS\x20URL:','label'];a82_0x2896=function(){return _0x44ef19;};return a82_0x2896();}export async function selectPages(_0x33c3cb,_0x166f38,_0x46ca8a){const _0x151dfa=a82_0x48ac,_0x18cc90=_0x33c3cb[_0x151dfa(0x105)](_0x4d10f2=>({'name':_0x4d10f2[_0x151dfa(0x115)]+'\x20\x20'+(_0x166f38[_0x151dfa(0x104)](_0x4d10f2['path'])?a82_0x4ab476[_0x151dfa(0x103)](_0x151dfa(0x11a)):a82_0x4ab476['green'](_0x151dfa(0x121))),'value':_0x4d10f2['label'],'checked':_0x46ca8a?_0x46ca8a['includes'](_0x4d10f2[_0x151dfa(0x115)]):!_0x166f38[_0x151dfa(0x104)](_0x4d10f2[_0x151dfa(0x128)])}));if(_0x18cc90['length']===0x0)throw new Error(_0x151dfa(0x11f));const _0x1223fc=await onCancel(checkbox({'message':_0x151dfa(0x101),'choices':_0x18cc90,'loop':![],'theme':{'prefix':''}}));if(_0x1223fc[_0x151dfa(0x120)]===0x0)throw new Error('No\x20menus\x20selected.');return _0x33c3cb[_0x151dfa(0xff)](_0x4f9b9d=>_0x1223fc[_0x151dfa(0x11b)](_0x4f9b9d[_0x151dfa(0x115)]));}export function isInteractive(){const _0x28b8a1=a82_0x48ac;return process['stdin'][_0x28b8a1(0x109)]===!![];}function a82_0x48ac(_0x3f4ea5,_0x2874b3){_0x3f4ea5=_0x3f4ea5-0xff;const _0x289690=a82_0x2896();let _0x48ac83=_0x289690[_0x3f4ea5];return _0x48ac83;}export function requireInteractive(){const _0x166e4f=a82_0x48ac;if(!isInteractive())throw new Error(_0x166e4f(0x112)+'Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.');}
@@ -1 +1 @@
1
- function a83_0x5ed3(){const _0x509604=['2701032oSvRfS','1051368UuBxkw','path','split','2032266wmDZRV','filter','push','match','trim','replaceAll','1195500FrDRjL','concat','18IjpUoy','utf-8','1321871kpQLmw','isDirectory','replace','4968555AVvwuY','endsWith','14415976ydclBD','.tsx','src/pages','slice','forEach','7OkrPnX'];a83_0x5ed3=function(){return _0x509604;};return a83_0x5ed3();}const a83_0x206af8=a83_0x39e6;(function(_0x482934,_0x54d7d0){const _0x2e8371=a83_0x39e6,_0x5385da=_0x482934();while(!![]){try{const _0x5be053=parseInt(_0x2e8371(0xd7))/0x1+parseInt(_0x2e8371(0xe3))/0x2+parseInt(_0x2e8371(0xe6))/0x3+parseInt(_0x2e8371(0xe2))/0x4+parseInt(_0x2e8371(0xda))/0x5+parseInt(_0x2e8371(0xd3))/0x6*(parseInt(_0x2e8371(0xe1))/0x7)+-parseInt(_0x2e8371(0xdc))/0x8*(parseInt(_0x2e8371(0xd5))/0x9);if(_0x5be053===_0x54d7d0)break;else _0x5385da['push'](_0x5385da['shift']());}catch(_0x4805b2){_0x5385da['push'](_0x5385da['shift']());}}}(a83_0x5ed3,0xc0ad2));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process['cwd'](),a83_0x206af8(0xde));export function extractTitleFromComment(_0x559a5e){const _0x5b7585=a83_0x206af8;try{const _0x3ce66c=readFileSync(_0x559a5e,_0x5b7585(0xd6)),_0x1c888f=_0x3ce66c[_0x5b7585(0xe9)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x1c888f&&_0x1c888f[0x1]){const _0x532fc8=_0x1c888f[0x1],_0x194e91=_0x532fc8[_0x5b7585(0xe9)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x194e91&&_0x194e91[0x1])return _0x194e91[0x1][_0x5b7585(0xd1)]();}let _0x50650e=null;const _0x280aad=_0x3ce66c['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x280aad&&_0x280aad[0x1]&&(_0x50650e=_0x280aad[0x1]);if(!_0x50650e){const _0x478fb6=_0x3ce66c[_0x5b7585(0xe9)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x478fb6&&_0x478fb6[0x1]&&(_0x50650e=_0x478fb6[0x1]);}if(_0x50650e){const _0x3738f2=new RegExp('\x5cb'+_0x50650e+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0xd3c84b=_0x3ce66c[_0x5b7585(0xe9)](_0x3738f2);if(_0xd3c84b&&_0xd3c84b[0x1])return _0xd3c84b[0x1];return _0x50650e;}return null;}catch(_0x17f4c3){return null;}}function a83_0x39e6(_0x224fd4,_0x1b4283){_0x224fd4=_0x224fd4-0xd1;const _0x5ed347=a83_0x5ed3();let _0x39e65d=_0x5ed347[_0x224fd4];return _0x39e65d;}export function getLocalPages(_0x53e89c=pagesDir,_0x13afc2=pagesDir){const _0x5e9012=a83_0x206af8;let _0x1dfc44=[];const _0x3e0e6f=readdirSync(_0x53e89c);return _0x3e0e6f[_0x5e9012(0xe0)](_0x1a2852=>{const _0x373cf0=_0x5e9012,_0x5d46c1=join(_0x53e89c,_0x1a2852),_0x543ecd=statSync(_0x5d46c1);if(_0x543ecd&&_0x543ecd[_0x373cf0(0xd8)]())_0x1dfc44=_0x1dfc44[_0x373cf0(0xd4)](getLocalPages(_0x5d46c1,_0x13afc2));else{if(_0x1a2852['endsWith'](_0x373cf0(0xdd))){let _0x397487=relative(_0x13afc2,_0x5d46c1);_0x397487[_0x373cf0(0xdb)]('index.tsx')?_0x397487=_0x397487['replace'](/index\.tsx$/,''):_0x397487=_0x397487[_0x373cf0(0xd9)](/\.tsx$/,'');_0x397487[_0x373cf0(0xdb)](sep)&&(_0x397487=_0x397487[_0x373cf0(0xdf)](0x0,-0x1));const _0x1bf335=_0x397487[_0x373cf0(0xe5)](sep)['join']('/'),_0x56c477=extractTitleFromComment(_0x5d46c1),_0x3ed4eb=_0x56c477||_0x1bf335;_0x1dfc44[_0x373cf0(0xe8)]({'path':_0x1bf335[_0x373cf0(0xd2)]('$',':'),'label':_0x3ed4eb});}}}),_0x1dfc44[_0x5e9012(0xe7)](_0x673ddd=>_0x673ddd[_0x5e9012(0xe4)]!=='');}
1
+ function a83_0x11f5(){const _0x4c1cfb=['8dKGmxV','join','1XiiiOd','split','trim','330SruBHC','replaceAll','path','isDirectory','match','filter','1781400GsLaGE','3662076WjPVvb','1467822ckYlrn','replace','concat','3342160AxnvIV','6OaqGvx','2715608fjvSRR','557767RBQGkc','endsWith','138987ruQjAz','utf-8'];a83_0x11f5=function(){return _0x4c1cfb;};return a83_0x11f5();}(function(_0x59b420,_0x12de9d){const _0x940ef2=a83_0x1053,_0x3995d1=_0x59b420();while(!![]){try{const _0x3d4fc1=parseInt(_0x940ef2(0x128))/0x1*(-parseInt(_0x940ef2(0x133))/0x2)+parseInt(_0x940ef2(0x131))/0x3+parseInt(_0x940ef2(0x138))/0x4+-parseInt(_0x940ef2(0x136))/0x5*(-parseInt(_0x940ef2(0x137))/0x6)+-parseInt(_0x940ef2(0x139))/0x7*(-parseInt(_0x940ef2(0x126))/0x8)+parseInt(_0x940ef2(0x13b))/0x9*(-parseInt(_0x940ef2(0x12b))/0xa)+-parseInt(_0x940ef2(0x132))/0xb;if(_0x3d4fc1===_0x12de9d)break;else _0x3995d1['push'](_0x3995d1['shift']());}catch(_0xee4632){_0x3995d1['push'](_0x3995d1['shift']());}}}(a83_0x11f5,0x6c7d1));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';function a83_0x1053(_0x5484d9,_0x8deb91){_0x5484d9=_0x5484d9-0x126;const _0x11f57f=a83_0x11f5();let _0x105354=_0x11f57f[_0x5484d9];return _0x105354;}const pagesDir=resolve(process['cwd'](),'src/pages');export function extractTitleFromComment(_0x1086cc){const _0x56d4ae=a83_0x1053;try{const _0x3c3750=readFileSync(_0x1086cc,_0x56d4ae(0x13c)),_0x7087a6=_0x3c3750[_0x56d4ae(0x12f)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x7087a6&&_0x7087a6[0x1]){const _0xec6d4e=_0x7087a6[0x1],_0x4e329f=_0xec6d4e['match'](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x4e329f&&_0x4e329f[0x1])return _0x4e329f[0x1][_0x56d4ae(0x12a)]();}let _0x4f2f8a=null;const _0x4c682c=_0x3c3750[_0x56d4ae(0x12f)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x4c682c&&_0x4c682c[0x1]&&(_0x4f2f8a=_0x4c682c[0x1]);if(!_0x4f2f8a){const _0x42d0d5=_0x3c3750[_0x56d4ae(0x12f)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x42d0d5&&_0x42d0d5[0x1]&&(_0x4f2f8a=_0x42d0d5[0x1]);}if(_0x4f2f8a){const _0x41898f=new RegExp('\x5cb'+_0x4f2f8a+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x2523e9=_0x3c3750[_0x56d4ae(0x12f)](_0x41898f);if(_0x2523e9&&_0x2523e9[0x1])return _0x2523e9[0x1];return _0x4f2f8a;}return null;}catch(_0x174da7){return null;}}export function getLocalPages(_0x6d2b3b=pagesDir,_0x2fe311=pagesDir){const _0x4edbac=a83_0x1053;let _0xe72380=[];const _0x448604=readdirSync(_0x6d2b3b);return _0x448604['forEach'](_0x2ca09b=>{const _0x5f01a3=a83_0x1053,_0x197f27=join(_0x6d2b3b,_0x2ca09b),_0x57a150=statSync(_0x197f27);if(_0x57a150&&_0x57a150[_0x5f01a3(0x12e)]())_0xe72380=_0xe72380[_0x5f01a3(0x135)](getLocalPages(_0x197f27,_0x2fe311));else{if(_0x2ca09b['endsWith']('.tsx')){let _0x433f4f=relative(_0x2fe311,_0x197f27);_0x433f4f[_0x5f01a3(0x13a)]('index.tsx')?_0x433f4f=_0x433f4f[_0x5f01a3(0x134)](/index\.tsx$/,''):_0x433f4f=_0x433f4f['replace'](/\.tsx$/,'');_0x433f4f[_0x5f01a3(0x13a)](sep)&&(_0x433f4f=_0x433f4f['slice'](0x0,-0x1));const _0x528e5e=_0x433f4f[_0x5f01a3(0x129)](sep)[_0x5f01a3(0x127)]('/'),_0x5adb2a=extractTitleFromComment(_0x197f27),_0x1e771f=_0x5adb2a||_0x528e5e;_0xe72380['push']({'path':_0x528e5e[_0x5f01a3(0x12c)]('$',':'),'label':_0x1e771f});}}}),_0xe72380[_0x4edbac(0x130)](_0x1e3b78=>_0x1e3b78[_0x4edbac(0x12d)]!=='');}