@lovrabet/rabetbase-cli 2.1.9 → 2.1.10-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 -0
  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_0x3de2ee=a66_0x4546;function a66_0x4546(_0x274f92,_0x1a59b7){_0x274f92=_0x274f92-0x132;const _0x557593=a66_0x5575();let _0x454631=_0x557593[_0x274f92];return _0x454631;}(function(_0x137506,_0x3050da){const _0x507b22=a66_0x4546,_0x5421e9=_0x137506();while(!![]){try{const _0x4d7193=-parseInt(_0x507b22(0x14c))/0x1+parseInt(_0x507b22(0x135))/0x2*(parseInt(_0x507b22(0x13a))/0x3)+-parseInt(_0x507b22(0x146))/0x4*(parseInt(_0x507b22(0x132))/0x5)+-parseInt(_0x507b22(0x141))/0x6*(-parseInt(_0x507b22(0x144))/0x7)+parseInt(_0x507b22(0x133))/0x8*(parseInt(_0x507b22(0x14a))/0x9)+parseInt(_0x507b22(0x137))/0xa*(parseInt(_0x507b22(0x139))/0xb)+parseInt(_0x507b22(0x13d))/0xc*(-parseInt(_0x507b22(0x13f))/0xd);if(_0x4d7193===_0x3050da)break;else _0x5421e9['push'](_0x5421e9['shift']());}catch(_0x5a8169){_0x5421e9['push'](_0x5421e9['shift']());}}}(a66_0x5575,0x69057));function a66_0x5575(){const _0x4c9052=['\x20row(s),\x20total\x20','4361DetdwR','page','2231644iMUMJy','pagesize','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','\x20(db\x20link\x20','18ntFQys','read','475163QbNGJG','Page\x20size','5NSPYmW','3106504LnPzDa','Page\x20index\x20(1-based)','10942XiwqLH','string','10OyJImJ','diff','2633851ymCRGU','21UwaKrp','num','length','84pBNeWy','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','452036yDwOBZ','number','6282ZcBoGg','table'];a66_0x5575=function(){return _0x4c9052;};return a66_0x5575();}import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDiff={'service':'db','command':a66_0x3de2ee(0x138),'description':a66_0x3de2ee(0x148),'risk':a66_0x3de2ee(0x14b),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a66_0x3de2ee(0x142),'type':a66_0x3de2ee(0x136),'description':a66_0x3de2ee(0x13e)},{'name':a66_0x3de2ee(0x145),'type':a66_0x3de2ee(0x140),'description':a66_0x3de2ee(0x134),'default':0x1},{'name':a66_0x3de2ee(0x147),'type':a66_0x3de2ee(0x140),'description':a66_0x3de2ee(0x14d),'default':0x14}],async 'execute'(_0x54b968){const _0x494030=a66_0x3de2ee,_0x428008=_0x54b968[_0x494030(0x13b)]('id'),_0x3b7feb=_0x54b968['num'](_0x494030(0x145),0x1)||0x1,_0x100fea=_0x54b968[_0x494030(0x13b)](_0x494030(0x147),0x14)||0x14,_0x38991f=_0x54b968['str'](_0x494030(0x142))||undefined,{totalCount:_0x4c0a88,tableList:_0x4caa6c}=await getDbTableDiff(_0x54b968['appCode'],_0x428008,{'pageIndex':_0x3b7feb,'pageSize':_0x100fea,'tableName':_0x38991f});return{'ok':!![],'data':{'dbLinkId':_0x428008,'page':_0x3b7feb,'pageSize':_0x100fea,'totalCount':_0x4c0a88,'tableList':_0x4caa6c},'message':_0x4caa6c[_0x494030(0x13c)]+_0x494030(0x143)+_0x4c0a88+_0x494030(0x149)+_0x428008+')'};}};
1
+ function a67_0x30ee(){const _0x1f066c=['4120wozpIG','str','9991450KpVsdo','42500wIYHNE','number','91700wizJCd','string','num','table','24nGpYIt','\x20row(s),\x20total\x20','23BxAgfO','appCode','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','\x20(db\x20link\x20','11eJfGhi','8619030QQCCQK','1259424xQTwnm','page','16875LGwSAb','Page\x20size','4971455jyWOnG','pagesize'];a67_0x30ee=function(){return _0x1f066c;};return a67_0x30ee();}const a67_0x138462=a67_0x1ef6;(function(_0x2ced0c,_0x18571d){const _0x20dc11=a67_0x1ef6,_0x130488=_0x2ced0c();while(!![]){try{const _0x5cbe78=-parseInt(_0x20dc11(0x180))/0x1*(-parseInt(_0x20dc11(0x191))/0x2)+-parseInt(_0x20dc11(0x17e))/0x3*(-parseInt(_0x20dc11(0x18f))/0x4)+-parseInt(_0x20dc11(0x18a))/0x5+-parseInt(_0x20dc11(0x186))/0x6+-parseInt(_0x20dc11(0x185))/0x7+parseInt(_0x20dc11(0x18c))/0x8*(parseInt(_0x20dc11(0x188))/0x9)+parseInt(_0x20dc11(0x18e))/0xa*(parseInt(_0x20dc11(0x184))/0xb);if(_0x5cbe78===_0x18571d)break;else _0x130488['push'](_0x130488['shift']());}catch(_0xa36bf6){_0x130488['push'](_0x130488['shift']());}}}(a67_0x30ee,0xa34a3));function a67_0x1ef6(_0x4e5bcb,_0x2c9a46){_0x4e5bcb=_0x4e5bcb-0x17b;const _0x30ee46=a67_0x30ee();let _0x1ef6a6=_0x30ee46[_0x4e5bcb];return _0x1ef6a6;}import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDiff={'service':'db','command':'diff','description':a67_0x138462(0x182),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':a67_0x138462(0x17b),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':a67_0x138462(0x187),'type':a67_0x138462(0x190),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':'pagesize','type':a67_0x138462(0x190),'description':a67_0x138462(0x189),'default':0x14}],async 'execute'(_0x3a983d){const _0x599f81=a67_0x138462,_0x1151c1=_0x3a983d[_0x599f81(0x17c)]('id'),_0x3310d2=_0x3a983d['num'](_0x599f81(0x187),0x1)||0x1,_0x55bcb3=_0x3a983d[_0x599f81(0x17c)](_0x599f81(0x18b),0x14)||0x14,_0x466f74=_0x3a983d[_0x599f81(0x18d)](_0x599f81(0x17d))||undefined,{totalCount:_0x4e831e,tableList:_0x3cb0a5}=await getDbTableDiff(_0x3a983d[_0x599f81(0x181)],_0x1151c1,{'pageIndex':_0x3310d2,'pageSize':_0x55bcb3,'tableName':_0x466f74});return{'ok':!![],'data':{'dbLinkId':_0x1151c1,'page':_0x3310d2,'pageSize':_0x55bcb3,'totalCount':_0x4e831e,'tableList':_0x3cb0a5},'message':_0x3cb0a5['length']+_0x599f81(0x17f)+_0x4e831e+_0x599f81(0x183)+_0x1151c1+')'};}};
@@ -1 +1 @@
1
- (function(_0x43a71c,_0x21cadd){const _0x1bfb40=a67_0x3399,_0x506f08=_0x43a71c();while(!![]){try{const _0x58d281=-parseInt(_0x1bfb40(0xe1))/0x1*(-parseInt(_0x1bfb40(0xe2))/0x2)+parseInt(_0x1bfb40(0xe0))/0x3+parseInt(_0x1bfb40(0xe3))/0x4*(-parseInt(_0x1bfb40(0xdf))/0x5)+parseInt(_0x1bfb40(0xe6))/0x6*(-parseInt(_0x1bfb40(0xe4))/0x7)+parseInt(_0x1bfb40(0xdd))/0x8+-parseInt(_0x1bfb40(0xe5))/0x9+parseInt(_0x1bfb40(0xde))/0xa;if(_0x58d281===_0x21cadd)break;else _0x506f08['push'](_0x506f08['shift']());}catch(_0xb7e82){_0x506f08['push'](_0x506f08['shift']());}}}(a67_0x564e,0x2dea9));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';function a67_0x564e(){const _0x4afc2d=['2251467tYQcFy','30JkcFyg','2495496hMuLBk','1226110PYQtkT','1176445DKFoMm','419574DkOSkw','293TmBmes','2446WNkhPq','4qgIlhM','362908YdJyYP'];a67_0x564e=function(){return _0x4afc2d;};return a67_0x564e();}import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';function a67_0x3399(_0x269564,_0x50e970){_0x269564=_0x269564-0xdd;const _0x564e6e=a67_0x564e();let _0x3399c1=_0x564e6e[_0x269564];return _0x3399c1;}import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
1
+ (function(_0x2dfa48,_0x128a79){const _0x16629e=a68_0xaf49,_0x3f340a=_0x2dfa48();while(!![]){try{const _0x2f6f6a=-parseInt(_0x16629e(0x122))/0x1+parseInt(_0x16629e(0x126))/0x2*(parseInt(_0x16629e(0x11f))/0x3)+parseInt(_0x16629e(0x125))/0x4*(parseInt(_0x16629e(0x127))/0x5)+parseInt(_0x16629e(0x128))/0x6*(-parseInt(_0x16629e(0x120))/0x7)+parseInt(_0x16629e(0x121))/0x8+-parseInt(_0x16629e(0x123))/0x9+parseInt(_0x16629e(0x124))/0xa;if(_0x2f6f6a===_0x128a79)break;else _0x3f340a['push'](_0x3f340a['shift']());}catch(_0x1882bc){_0x3f340a['push'](_0x3f340a['shift']());}}}(a68_0xda63,0xb8b28));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';function a68_0xda63(){const _0x5856f0=['4zXlHQk','2436VGhPjp','1613510hKQXrB','6NUiSQz','3558uSpxaS','4125807kIrQrJ','31968VGwuqa','1255345tVyUqZ','5778999MXbdjE','14721310dLUENY'];a68_0xda63=function(){return _0x5856f0;};return a68_0xda63();}import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';function a68_0xaf49(_0x1744ea,_0x34fef3){_0x1744ea=_0x1744ea-0x11f;const _0xda63c4=a68_0xda63();let _0xaf49b2=_0xda63c4[_0x1744ea];return _0xaf49b2;}import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
@@ -1 +1 @@
1
- const a68_0x58ac3b=a68_0x4e2d;(function(_0x3863dc,_0x3ce59d){const _0x520640=a68_0x4e2d,_0x69770e=_0x3863dc();while(!![]){try{const _0x5b6b96=parseInt(_0x520640(0x1b2))/0x1*(parseInt(_0x520640(0x1b7))/0x2)+parseInt(_0x520640(0x1b1))/0x3*(-parseInt(_0x520640(0x1be))/0x4)+-parseInt(_0x520640(0x1b0))/0x5*(-parseInt(_0x520640(0x1c0))/0x6)+parseInt(_0x520640(0x1b6))/0x7*(-parseInt(_0x520640(0x1b9))/0x8)+-parseInt(_0x520640(0x1c3))/0x9*(-parseInt(_0x520640(0x1b8))/0xa)+-parseInt(_0x520640(0x1bf))/0xb+parseInt(_0x520640(0x1c2))/0xc*(parseInt(_0x520640(0x1bb))/0xd);if(_0x5b6b96===_0x3ce59d)break;else _0x69770e['push'](_0x69770e['shift']());}catch(_0x2eb77a){_0x69770e['push'](_0x69770e['shift']());}}}(a68_0x41bb,0xe9243));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';function a68_0x4e2d(_0x3e3a92,_0x2db6c7){_0x3e3a92=_0x3e3a92-0x1ad;const _0x41bbc0=a68_0x41bb();let _0x4e2d01=_0x41bbc0[_0x3e3a92];return _0x4e2d01;}export const dbList={'service':'db','command':a68_0x58ac3b(0x1bc),'description':'List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a68_0x58ac3b(0x1b4),'type':a68_0x58ac3b(0x1bd),'description':a68_0x58ac3b(0x1c1),'default':0x1},{'name':a68_0x58ac3b(0x1ad),'type':a68_0x58ac3b(0x1bd),'description':a68_0x58ac3b(0x1ba),'default':0x64}],async 'execute'(_0x3c6a21){const _0x3ac213=a68_0x58ac3b,_0x41352=_0x3c6a21['num']('page',0x1)||0x1,_0x5d02a6=_0x3c6a21[_0x3ac213(0x1ae)](_0x3ac213(0x1ad),0x64)||0x64,{items:_0x54bf29,paging:_0x4ef163}=await listDbLinks(_0x3c6a21[_0x3ac213(0x1b5)],{'currentPage':_0x41352,'pageSize':_0x5d02a6}),_0x3a72dc=sanitizeDbLinkList(_0x54bf29),_0x4e6ab9=_0x4ef163?_0x4ef163:{'currentPage':_0x41352,'pageSize':_0x5d02a6,'rowsOnPage':_0x3a72dc[_0x3ac213(0x1c4)],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x3a72dc,'paging':_0x4e6ab9},'message':_0x3ac213(0x1af)+_0x3a72dc[_0x3ac213(0x1c4)]+_0x3ac213(0x1b3)};}};function a68_0x41bb(){const _0x3644d6=['Page\x20size','32625749hwFZPP','list','number','5956280FPanpm','20582243IHENIB','5332392MffbWQ','Page\x20index\x20(1-based)','12HzFIZE','9uusfWS','length','pagesize','num','Found\x20','10KoXyZc','3vcwPIK','2633ivRLnC','\x20database\x20connection(s)','page','appCode','7946183dVAoRI','706KxDGwv','2337130DRthrG','8otjqRs'];a68_0x41bb=function(){return _0x3644d6;};return a68_0x41bb();}
1
+ const a69_0x549409=a69_0x4a86;(function(_0x35f9ac,_0x103979){const _0x4329e5=a69_0x4a86,_0x58b00e=_0x35f9ac();while(!![]){try{const _0x443401=-parseInt(_0x4329e5(0x70))/0x1+-parseInt(_0x4329e5(0x78))/0x2+-parseInt(_0x4329e5(0x71))/0x3+-parseInt(_0x4329e5(0x68))/0x4*(-parseInt(_0x4329e5(0x6c))/0x5)+parseInt(_0x4329e5(0x76))/0x6*(parseInt(_0x4329e5(0x6f))/0x7)+-parseInt(_0x4329e5(0x72))/0x8+parseInt(_0x4329e5(0x73))/0x9;if(_0x443401===_0x103979)break;else _0x58b00e['push'](_0x58b00e['shift']());}catch(_0xb69c4c){_0x58b00e['push'](_0x58b00e['shift']());}}}(a69_0x1bf3,0x7fe7f));function a69_0x4a86(_0x1c0038,_0x3b63e3){_0x1c0038=_0x1c0038-0x68;const _0x1bf33e=a69_0x1bf3();let _0x4a868e=_0x1bf33e[_0x1c0038];return _0x4a868e;}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_0x1bf3(){const _0x1891b0=['length','read','2359128aYsyXU','pagesize','page','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','5FrnzBb','num','\x20database\x20connection(s)','7aySXWV','710843dsQitc','52494UUPLdX','8229336zsIzep','19039122BpHmOh','Page\x20index\x20(1-based)','number','381144KfpWmn','appCode','975706UKQkLr'];a69_0x1bf3=function(){return _0x1891b0;};return a69_0x1bf3();}export const dbList={'service':'db','command':'list','description':'List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','risk':a69_0x549409(0x7a),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':a69_0x549409(0x75),'description':a69_0x549409(0x74),'default':0x1},{'name':a69_0x549409(0x69),'type':a69_0x549409(0x75),'description':'Page\x20size','default':0x64}],async 'execute'(_0x20efa6){const _0x52db76=a69_0x549409,_0x4998c1=_0x20efa6[_0x52db76(0x6d)](_0x52db76(0x6a),0x1)||0x1,_0x36e146=_0x20efa6['num'](_0x52db76(0x69),0x64)||0x64,{items:_0x2d7287,paging:_0x34022c}=await listDbLinks(_0x20efa6[_0x52db76(0x77)],{'currentPage':_0x4998c1,'pageSize':_0x36e146}),_0x32f7a4=sanitizeDbLinkList(_0x2d7287),_0x1cee85=_0x34022c?_0x34022c:{'currentPage':_0x4998c1,'pageSize':_0x36e146,'rowsOnPage':_0x32f7a4[_0x52db76(0x79)],'totalCount':null,'note':_0x52db76(0x6b)};return{'ok':!![],'data':{'connections':_0x32f7a4,'paging':_0x1cee85},'message':'Found\x20'+_0x32f7a4[_0x52db76(0x79)]+_0x52db76(0x6e)};}};
@@ -1 +1 @@
1
- (function(_0x4301aa,_0x517781){const _0x436d0b=a69_0x43ca,_0x34d7a2=_0x4301aa();while(!![]){try{const _0x244be0=-parseInt(_0x436d0b(0x6b))/0x1+parseInt(_0x436d0b(0x69))/0x2*(-parseInt(_0x436d0b(0x73))/0x3)+-parseInt(_0x436d0b(0x74))/0x4*(parseInt(_0x436d0b(0x6e))/0x5)+-parseInt(_0x436d0b(0x7a))/0x6*(parseInt(_0x436d0b(0x7f))/0x7)+-parseInt(_0x436d0b(0x80))/0x8*(parseInt(_0x436d0b(0x82))/0x9)+-parseInt(_0x436d0b(0x76))/0xa*(parseInt(_0x436d0b(0x78))/0xb)+-parseInt(_0x436d0b(0x7e))/0xc*(-parseInt(_0x436d0b(0x84))/0xd);if(_0x244be0===_0x517781)break;else _0x34d7a2['push'](_0x34d7a2['shift']());}catch(_0xe496d3){_0x34d7a2['push'](_0x34d7a2['shift']());}}}(a69_0x2fc0,0x974ab));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function a69_0x43ca(_0x1fa44e,_0x472f45){_0x1fa44e=_0x1fa44e-0x67;const _0x2fc09f=a69_0x2fc0();let _0x43ca47=_0x2fc09f[_0x1fa44e];return _0x43ca47;}function shouldRedactKey(_0x6f55f5){const _0x23d57e=a69_0x43ca,_0x2fb83d=_0x6f55f5[_0x23d57e(0x6d)]();if(_0x2fb83d==='password'||_0x2fb83d==='passwd'||_0x2fb83d==='dbpassword')return!![];if(_0x2fb83d['includes']('secret')||_0x2fb83d[_0x23d57e(0x81)](_0x23d57e(0x79))||_0x2fb83d[_0x23d57e(0x81)](_0x23d57e(0x6c)))return!![];if(_0x2fb83d['includes'](_0x23d57e(0x7d))||_0x2fb83d['includes']('accesskey'))return!![];if(_0x2fb83d===_0x23d57e(0x83)||_0x2fb83d===_0x23d57e(0x72)||_0x2fb83d===_0x23d57e(0x67))return!![];return![];}export function sanitizeDbLinkForOutput(_0x3ac4f2){const _0x1a4940=a69_0x43ca,_0x1ad575={..._0x3ac4f2};for(const _0x3a199b of Object['keys'](_0x1ad575)){if(!shouldRedactKey(_0x3a199b))continue;const _0x89c7f7=_0x1ad575[_0x3a199b];_0x89c7f7!=null&&String(_0x89c7f7)['length']>0x0&&(_0x1ad575[_0x3a199b]=_0x1a4940(0x6f));}return _0x1ad575;}export function sanitizeDbLinkList(_0x563c1a){return _0x563c1a['map'](_0x46f67d=>sanitizeDbLinkForOutput(_0x46f67d));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x36adf5){const _0x1813e9=a69_0x43ca,_0x2e9724=_0x36adf5[_0x1813e9(0x68)]();if(!_0x2e9724)return![];return DB_URL_PATTERN[_0x1813e9(0x71)](_0x2e9724);}export function buildDbPageLinks(_0x72c45c,_0x168664){const _0x19c20f=a69_0x43ca,_0x8749b6=_0x72c45c?.[_0x19c20f(0x68)]();if(!_0x8749b6)return undefined;const _0x3dcf59=typeof _0x168664===_0x19c20f(0x75)?String(_0x168664):String(_0x168664??'')['trim']();if(!_0x3dcf59)return undefined;const _0xa4e68f=Number(_0x3dcf59);if(!Number[_0x19c20f(0x7c)](_0xa4e68f)||_0xa4e68f<=0x0)return undefined;const _0x47a5e8=isDaily(normalizeEnv(getEnv()))?_0x19c20f(0x77)+encodeURIComponent(_0x8749b6):_0x19c20f(0x70)+encodeURIComponent(_0x8749b6),_0x339f33=encodeURIComponent(String(_0xa4e68f));return{'databasePage':_0x47a5e8+_0x19c20f(0x6a),'erPage':_0x47a5e8+_0x19c20f(0x7b)+_0x339f33};}function a69_0x2fc0(){const _0x3e70d4=['trim','4894WwmqsG','/data/database','513634DEHPQa','credential','toLowerCase','1270KNwUym','[redacted]','https://app.lovrabet.com/app/','test','connectionstring','39YxnsJR','18472RgalJs','number','2147170REqwJO','https://daily.lovrabet.com/web-app/app/','11UWFTBF','token','18vZGppT','/data/er?dbId=','isFinite','privatekey','2796TSglOt','2058833WdeOAz','1112lLZqDx','includes','38979EArlMj','authorization','225251rpmxSi','jdbcurl'];a69_0x2fc0=function(){return _0x3e70d4;};return a69_0x2fc0();}
1
+ function a70_0x1542(){const _0x220b50=['4864880FdtzHU','2sPOobn','/data/database','32514QCLMVF','test','authorization','736018onbNBq','1646710TnGUrz','/data/er?dbId=','322mzzTVc','30XllYNP','isFinite','4ZVeqkA','trim','[redacted]','length','number','secret','337914BXomFz','8085165qtJUeC','dbpassword','https://app.lovrabet.com/app/','credential','privatekey','keys','token','map','1523943ajWVsW','passwd','includes','jdbcurl','connectionstring'];a70_0x1542=function(){return _0x220b50;};return a70_0x1542();}function a70_0x1b3d(_0x3b9128,_0x5c34d5){_0x3b9128=_0x3b9128-0x1ea;const _0x154266=a70_0x1542();let _0x1b3d6c=_0x154266[_0x3b9128];return _0x1b3d6c;}(function(_0x5754bf,_0x37b86f){const _0x3c02e9=a70_0x1b3d,_0x36feb0=_0x5754bf();while(!![]){try{const _0x5b45cd=-parseInt(_0x3c02e9(0x209))/0x1*(-parseInt(_0x3c02e9(0x204))/0x2)+parseInt(_0x3c02e9(0x1fe))/0x3*(-parseInt(_0x3c02e9(0x1ef))/0x4)+-parseInt(_0x3c02e9(0x1ea))/0x5+parseInt(_0x3c02e9(0x206))/0x6*(parseInt(_0x3c02e9(0x1ec))/0x7)+-parseInt(_0x3c02e9(0x203))/0x8+parseInt(_0x3c02e9(0x1f5))/0x9*(parseInt(_0x3c02e9(0x1ed))/0xa)+parseInt(_0x3c02e9(0x1f6))/0xb;if(_0x5b45cd===_0x37b86f)break;else _0x36feb0['push'](_0x36feb0['shift']());}catch(_0x38dc9a){_0x36feb0['push'](_0x36feb0['shift']());}}}(a70_0x1542,0x5e9b8));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0xe6048a){const _0x16c5eb=a70_0x1b3d,_0x391a64=_0xe6048a['toLowerCase']();if(_0x391a64==='password'||_0x391a64===_0x16c5eb(0x1ff)||_0x391a64===_0x16c5eb(0x1f7))return!![];if(_0x391a64[_0x16c5eb(0x200)](_0x16c5eb(0x1f4))||_0x391a64['includes'](_0x16c5eb(0x1fc))||_0x391a64[_0x16c5eb(0x200)](_0x16c5eb(0x1f9)))return!![];if(_0x391a64[_0x16c5eb(0x200)](_0x16c5eb(0x1fa))||_0x391a64[_0x16c5eb(0x200)]('accesskey'))return!![];if(_0x391a64===_0x16c5eb(0x208)||_0x391a64===_0x16c5eb(0x202)||_0x391a64===_0x16c5eb(0x201))return!![];return![];}export function sanitizeDbLinkForOutput(_0x88d777){const _0xb1b9d1=a70_0x1b3d,_0x32f3e5={..._0x88d777};for(const _0x2febfe of Object[_0xb1b9d1(0x1fb)](_0x32f3e5)){if(!shouldRedactKey(_0x2febfe))continue;const _0x1f6b96=_0x32f3e5[_0x2febfe];_0x1f6b96!=null&&String(_0x1f6b96)[_0xb1b9d1(0x1f2)]>0x0&&(_0x32f3e5[_0x2febfe]=_0xb1b9d1(0x1f1));}return _0x32f3e5;}export function sanitizeDbLinkList(_0xb7bd8c){const _0x2b6dbe=a70_0x1b3d;return _0xb7bd8c[_0x2b6dbe(0x1fd)](_0x375b67=>sanitizeDbLinkForOutput(_0x375b67));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x2cf667){const _0x2d8a8b=a70_0x1b3d,_0x22bf31=_0x2cf667[_0x2d8a8b(0x1f0)]();if(!_0x22bf31)return![];return DB_URL_PATTERN[_0x2d8a8b(0x207)](_0x22bf31);}export function buildDbPageLinks(_0xaccb1e,_0xe4d7f2){const _0x365afc=a70_0x1b3d,_0x49680c=_0xaccb1e?.['trim']();if(!_0x49680c)return undefined;const _0x4b57e6=typeof _0xe4d7f2===_0x365afc(0x1f3)?String(_0xe4d7f2):String(_0xe4d7f2??'')['trim']();if(!_0x4b57e6)return undefined;const _0x2a2bb1=Number(_0x4b57e6);if(!Number[_0x365afc(0x1ee)](_0x2a2bb1)||_0x2a2bb1<=0x0)return undefined;const _0x1ca7ec=isDaily(normalizeEnv(getEnv()))?'https://daily.lovrabet.com/web-app/app/'+encodeURIComponent(_0x49680c):_0x365afc(0x1f8)+encodeURIComponent(_0x49680c),_0x555170=encodeURIComponent(String(_0x2a2bb1));return{'databasePage':_0x1ca7ec+_0x365afc(0x205),'erPage':_0x1ca7ec+_0x365afc(0x1eb)+_0x555170};}
@@ -1 +1 @@
1
- const a70_0x4c2113=a70_0x5cb8;(function(_0x457868,_0x19c6f0){const _0x5f23a9=a70_0x5cb8,_0x268ce9=_0x457868();while(!![]){try{const _0x559300=parseInt(_0x5f23a9(0xca))/0x1*(-parseInt(_0x5f23a9(0xcf))/0x2)+parseInt(_0x5f23a9(0xd1))/0x3+-parseInt(_0x5f23a9(0xd2))/0x4*(parseInt(_0x5f23a9(0xcd))/0x5)+parseInt(_0x5f23a9(0xd3))/0x6+-parseInt(_0x5f23a9(0xcb))/0x7+-parseInt(_0x5f23a9(0xd6))/0x8*(parseInt(_0x5f23a9(0xce))/0x9)+parseInt(_0x5f23a9(0xd0))/0xa;if(_0x559300===_0x19c6f0)break;else _0x268ce9['push'](_0x268ce9['shift']());}catch(_0x21824e){_0x268ce9['push'](_0x268ce9['shift']());}}}(a70_0x36a0,0x3a684));import{getDbAllTableList}from'../../core/api-client.js';function a70_0x36a0(){const _0x5d0c33=['List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','227135zetSsh','998523CAFcNn','2ryPCZw','9367000mlBswS','23127JXoRri','20pObPeu','2060028aUuPWN','num','read','8vMzaAW','tables','415641cgVuNt','2063516KVCPFy'];a70_0x36a0=function(){return _0x5d0c33;};return a70_0x36a0();}function a70_0x5cb8(_0x186910,_0x481f43){_0x186910=_0x186910-0xca;const _0x36a0f9=a70_0x36a0();let _0x5cb8d1=_0x36a0f9[_0x186910];return _0x5cb8d1;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a70_0x4c2113(0xd7),'description':a70_0x4c2113(0xcc),'risk':a70_0x4c2113(0xd5),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1e31f7){const _0x395064=a70_0x4c2113,_0x4fa1ac=_0x1e31f7[_0x395064(0xd4)]('id'),_0x4ea21d=await getDbAllTableList(_0x1e31f7['appCode'],_0x4fa1ac);return{'ok':!![],'data':{'dbLinkId':_0x4fa1ac,'total':_0x4ea21d['length'],'tables':_0x4ea21d},'message':_0x4ea21d['length']+'\x20table(s)\x20on\x20db\x20link\x20'+_0x4fa1ac};}};
1
+ const a71_0xf264c0=a71_0x3489;(function(_0x208f58,_0x5c0bc5){const _0x3d1922=a71_0x3489,_0x3928ac=_0x208f58();while(!![]){try{const _0x38a3df=parseInt(_0x3d1922(0x175))/0x1*(-parseInt(_0x3d1922(0x17d))/0x2)+-parseInt(_0x3d1922(0x174))/0x3+-parseInt(_0x3d1922(0x170))/0x4*(-parseInt(_0x3d1922(0x17c))/0x5)+-parseInt(_0x3d1922(0x17b))/0x6*(-parseInt(_0x3d1922(0x17f))/0x7)+-parseInt(_0x3d1922(0x176))/0x8+parseInt(_0x3d1922(0x17a))/0x9*(parseInt(_0x3d1922(0x173))/0xa)+-parseInt(_0x3d1922(0x177))/0xb*(parseInt(_0x3d1922(0x180))/0xc);if(_0x38a3df===_0x5c0bc5)break;else _0x3928ac['push'](_0x3928ac['shift']());}catch(_0x7c3962){_0x3928ac['push'](_0x3928ac['shift']());}}}(a71_0x38ca,0x5d1e7));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a71_0x3489(_0x11e242,_0x49aadc){_0x11e242=_0x11e242-0x170;const _0x38ca70=a71_0x38ca();let _0x348945=_0x38ca70[_0x11e242];return _0x348945;}function a71_0x38ca(){const _0x4ad88c=['8508YzNCWc','\x20table(s)\x20on\x20db\x20link\x20','478580ocBYWF','length','num','10BAukGN','1234215XpkXMP','121HzOQxQ','1955480qMqQoI','3091qToKRA','read','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','4199193mwNnlT','1485054HthTNt','30eeOtsA','7322IFTHhK','appCode','14gjredr'];a71_0x38ca=function(){return _0x4ad88c;};return a71_0x38ca();}export const dbTables={'service':'db','command':'tables','description':a71_0xf264c0(0x179),'risk':a71_0xf264c0(0x178),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2c98a5){const _0x586e18=a71_0xf264c0,_0x20b2fc=_0x2c98a5[_0x586e18(0x172)]('id'),_0x1f1580=await getDbAllTableList(_0x2c98a5[_0x586e18(0x17e)],_0x20b2fc);return{'ok':!![],'data':{'dbLinkId':_0x20b2fc,'total':_0x1f1580[_0x586e18(0x171)],'tables':_0x1f1580},'message':_0x1f1580[_0x586e18(0x171)]+_0x586e18(0x181)+_0x20b2fc};}};
@@ -1 +1 @@
1
- const a71_0x476d49=a71_0x40fb;(function(_0x3006a5,_0x45717d){const _0x27b63c=a71_0x40fb,_0x1dd5a3=_0x3006a5();while(!![]){try{const _0x29562a=parseInt(_0x27b63c(0xf9))/0x1*(parseInt(_0x27b63c(0xf0))/0x2)+parseInt(_0x27b63c(0xec))/0x3*(-parseInt(_0x27b63c(0xeb))/0x4)+-parseInt(_0x27b63c(0xfe))/0x5*(-parseInt(_0x27b63c(0xf3))/0x6)+-parseInt(_0x27b63c(0xf6))/0x7+-parseInt(_0x27b63c(0xf7))/0x8*(parseInt(_0x27b63c(0xf2))/0x9)+parseInt(_0x27b63c(0xed))/0xa+-parseInt(_0x27b63c(0xef))/0xb*(parseInt(_0x27b63c(0xfb))/0xc);if(_0x29562a===_0x45717d)break;else _0x1dd5a3['push'](_0x1dd5a3['shift']());}catch(_0x17ee91){_0x1dd5a3['push'](_0x1dd5a3['shift']());}}}(a71_0x552b,0x29e9c));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x5b2222){const _0x4bf6e5=a71_0x40fb;if(_0x5b2222===!![]||_0x5b2222===![])return{'success':_0x5b2222};if(_0x5b2222===null||_0x5b2222===undefined)return{'type':typeof _0x5b2222};if(typeof _0x5b2222!==_0x4bf6e5(0xf4))return{'type':typeof _0x5b2222};const _0x46f0d6=_0x5b2222,_0x16c44e=[_0x4bf6e5(0xfd),_0x4bf6e5(0xe8),_0x4bf6e5(0xea),'error',_0x4bf6e5(0xf5),_0x4bf6e5(0xfa)],_0x5574a4={};for(const _0x53e57d of _0x16c44e){if(_0x53e57d in _0x46f0d6)_0x5574a4[_0x53e57d]=_0x46f0d6[_0x53e57d];}return Object['keys'](_0x5574a4)['length']===0x0&&(_0x5574a4[_0x4bf6e5(0xf8)]=Object[_0x4bf6e5(0xf8)](_0x46f0d6)[_0x4bf6e5(0xe9)](0x0,0x14)),_0x5574a4;}function a71_0x40fb(_0x15e330,_0x3febde){_0x15e330=_0x15e330-0xe8;const _0x552bb9=a71_0x552b();let _0x40fbc3=_0x552bb9[_0x15e330];return _0x40fbc3;}export const dbTest={'service':'db','command':a71_0x476d49(0xf1),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2c5010){const _0x431a5b=a71_0x476d49,_0x4a5015=_0x2c5010['num']('id'),_0x4b6667=await testDbLinkConnect(_0x4a5015),_0x3aad9f=_0x4b6667===!![]||typeof _0x4b6667===_0x431a5b(0xf4)&&_0x4b6667!==null&&_0x4b6667[_0x431a5b(0xfd)]===!![],_0x5911d0=summarizeTestConnectResult(_0x4b6667);return{'ok':!![],'data':{'id':_0x4a5015,'connected':Boolean(_0x3aad9f),'result':_0x5911d0},'message':_0x3aad9f?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x4a5015:_0x431a5b(0xee)+_0x4a5015+_0x431a5b(0xfc)};}};function a71_0x552b(){const _0x510dc1=['9KBQCqh','114QqSgBT','object','msg','1920625tNvnmE','1152104tzZLuW','keys','1fqISpS','data','336uCLXhd','\x20(see\x20data.result)','success','28870PGxNNF','message','slice','code','7624XaoWkL','84VNtEFn','3182570neNgzm','Connection\x20check\x20finished\x20for\x20db\x20link\x20','14751ksNIow','506034ClShpa','test'];a71_0x552b=function(){return _0x510dc1;};return a71_0x552b();}
1
+ function a72_0x3324(){const _0x58e8d9=['49376qXDoin','22616srrqmo','3996gmKvqS','725526vQdfNb','data','keys','num','\x20(see\x20data.result)','Connection\x20OK\x20for\x20db\x20link\x20','3049776GvGqdb','length','10boDxDy','330508MZAzee','msg','code','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','98TBCmnW','5zFpSGA','success','94682mZmEdv','1647072jXvVCO','1XrAHdb','Connection\x20check\x20finished\x20for\x20db\x20link\x20','message','object','test','read'];a72_0x3324=function(){return _0x58e8d9;};return a72_0x3324();}const a72_0x14021f=a72_0x5354;(function(_0x5dc1b1,_0x40477f){const _0x503301=a72_0x5354,_0x23cfc5=_0x5dc1b1();while(!![]){try{const _0xe9364b=-parseInt(_0x503301(0xd5))/0x1*(parseInt(_0x503301(0xd3))/0x2)+parseInt(_0x503301(0xde))/0x3+-parseInt(_0x503301(0xe7))/0x4*(-parseInt(_0x503301(0xd1))/0x5)+-parseInt(_0x503301(0xd4))/0x6+parseInt(_0x503301(0xd0))/0x7*(-parseInt(_0x503301(0xdb))/0x8)+parseInt(_0x503301(0xe4))/0x9*(-parseInt(_0x503301(0xe6))/0xa)+parseInt(_0x503301(0xdc))/0xb*(parseInt(_0x503301(0xdd))/0xc);if(_0xe9364b===_0x40477f)break;else _0x23cfc5['push'](_0x23cfc5['shift']());}catch(_0x166837){_0x23cfc5['push'](_0x23cfc5['shift']());}}}(a72_0x3324,0x3ff68));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a72_0x5354(_0x29eb58,_0x3f082c){_0x29eb58=_0x29eb58-0xcd;const _0x332494=a72_0x3324();let _0x535413=_0x332494[_0x29eb58];return _0x535413;}function summarizeTestConnectResult(_0x1c9ace){const _0x38b2c7=a72_0x5354;if(_0x1c9ace===!![]||_0x1c9ace===![])return{'success':_0x1c9ace};if(_0x1c9ace===null||_0x1c9ace===undefined)return{'type':typeof _0x1c9ace};if(typeof _0x1c9ace!==_0x38b2c7(0xd8))return{'type':typeof _0x1c9ace};const _0x1de262=_0x1c9ace,_0xf11d2a=[_0x38b2c7(0xd2),_0x38b2c7(0xd7),_0x38b2c7(0xce),'error',_0x38b2c7(0xcd),_0x38b2c7(0xdf)],_0x5ac452={};for(const _0x36e803 of _0xf11d2a){if(_0x36e803 in _0x1de262)_0x5ac452[_0x36e803]=_0x1de262[_0x36e803];}return Object[_0x38b2c7(0xe0)](_0x5ac452)[_0x38b2c7(0xe5)]===0x0&&(_0x5ac452[_0x38b2c7(0xe0)]=Object[_0x38b2c7(0xe0)](_0x1de262)['slice'](0x0,0x14)),_0x5ac452;}export const dbTest={'service':'db','command':a72_0x14021f(0xd9),'description':a72_0x14021f(0xcf),'risk':a72_0x14021f(0xda),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3b6d52){const _0x396183=a72_0x14021f,_0xfc321=_0x3b6d52[_0x396183(0xe1)]('id'),_0x3c22b9=await testDbLinkConnect(_0xfc321),_0xdc9d6a=_0x3c22b9===!![]||typeof _0x3c22b9===_0x396183(0xd8)&&_0x3c22b9!==null&&_0x3c22b9['success']===!![],_0x530a6b=summarizeTestConnectResult(_0x3c22b9);return{'ok':!![],'data':{'id':_0xfc321,'connected':Boolean(_0xdc9d6a),'result':_0x530a6b},'message':_0xdc9d6a?_0x396183(0xe3)+_0xfc321:_0x396183(0xd6)+_0xfc321+_0x396183(0xe2)};}};
@@ -1 +1 @@
1
- function a72_0x582e(){const _0xa1be01=['Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','12kNXlhe','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','dburl','9280oHxgVt','username','25358281UGPUxW','dbdesc','dbParam','dbDesc','2KWwIYs','dbName','177177UsiSzJ','10mhWfFo','trim','password','132NraxpR','dbUrl','update','207JvXbmx','182712ygfYCk','validation','New\x20connection\x20parameter\x20string','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','num','896codRlV','POST','dbparam','dbname','645641IJHahm','string','New\x20username','str','New\x20description','write','1923246miheXI','New\x20host:port','8062890hKXqTa'];a72_0x582e=function(){return _0xa1be01;};return a72_0x582e();}function a72_0x3ed2(_0x202668,_0x50fc64){_0x202668=_0x202668-0xc1;const _0x582ed2=a72_0x582e();let _0x3ed218=_0x582ed2[_0x202668];return _0x3ed218;}const a72_0x1c9ca2=a72_0x3ed2;(function(_0xfeae86,_0x186893){const _0x5c96e9=a72_0x3ed2,_0x5a7c7c=_0xfeae86();while(!![]){try{const _0x1660d9=-parseInt(_0x5c96e9(0xc5))/0x1*(-parseInt(_0x5c96e9(0xd9))/0x2)+parseInt(_0x5c96e9(0xcb))/0x3+-parseInt(_0x5c96e9(0xc1))/0x4*(-parseInt(_0x5c96e9(0xd3))/0x5)+-parseInt(_0x5c96e9(0xdf))/0x6*(parseInt(_0x5c96e9(0xdb))/0x7)+-parseInt(_0x5c96e9(0xe3))/0x8*(-parseInt(_0x5c96e9(0xe2))/0x9)+parseInt(_0x5c96e9(0xdc))/0xa*(parseInt(_0x5c96e9(0xcd))/0xb)+-parseInt(_0x5c96e9(0xd0))/0xc*(parseInt(_0x5c96e9(0xd5))/0xd);if(_0x1660d9===_0x186893)break;else _0x5a7c7c['push'](_0x5a7c7c['shift']());}catch(_0x1df1cc){_0x5a7c7c['push'](_0x5a7c7c['shift']());}}}(a72_0x582e,0x6ea9b));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':a72_0x1c9ca2(0xe1),'description':a72_0x1c9ca2(0xcf),'risk':a72_0x1c9ca2(0xca),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a72_0x1c9ca2(0xc6),'description':'New\x20database\x20name'},{'name':'dburl','type':'string','description':a72_0x1c9ca2(0xcc)},{'name':a72_0x1c9ca2(0xd4),'type':a72_0x1c9ca2(0xc6),'description':a72_0x1c9ca2(0xc7)},{'name':a72_0x1c9ca2(0xde),'type':a72_0x1c9ca2(0xc6),'description':a72_0x1c9ca2(0xd1)},{'name':a72_0x1c9ca2(0xc3),'type':a72_0x1c9ca2(0xc6),'description':a72_0x1c9ca2(0xe5)},{'name':a72_0x1c9ca2(0xd6),'type':'string','description':a72_0x1c9ca2(0xc9)}],async 'validate'(_0x2935a6){const _0x3d44a2=a72_0x1c9ca2,_0x2f7f4d=_0x2935a6[_0x3d44a2(0xc8)](_0x3d44a2(0xd2));if(_0x2f7f4d&&!validateDbUrl(_0x2f7f4d[_0x3d44a2(0xdd)]()))throw CliErrors[_0x3d44a2(0xe4)](_0x3d44a2(0xe6)+_0x2f7f4d+'\x22');},async 'dryRun'(_0x5ea22d){const _0x352022=a72_0x1c9ca2,_0x48158e=_0x5ea22d[_0x352022(0xe7)]('id'),_0x3e9d04=await getDbLinkInfo(_0x48158e),_0x2f044e={..._0x3e9d04},_0x52c6dd=_0x5ea22d['str']('dbname');if(_0x52c6dd)_0x2f044e['dbName']=_0x52c6dd;const _0x1496c5=_0x5ea22d[_0x352022(0xc8)](_0x352022(0xd2));if(_0x1496c5)_0x2f044e[_0x352022(0xe0)]=_0x1496c5[_0x352022(0xdd)]();const _0x537ac7=_0x5ea22d[_0x352022(0xc8)](_0x352022(0xd4));if(_0x537ac7)_0x2f044e['username']=_0x537ac7;const _0x285e61=_0x5ea22d[_0x352022(0xc8)](_0x352022(0xde));if(_0x285e61)_0x2f044e['password']=_0x285e61;const _0x1e42bf=_0x5ea22d[_0x352022(0xc8)](_0x352022(0xc3));if(_0x1e42bf)_0x2f044e[_0x352022(0xd7)]=_0x1e42bf;const _0x4971a5=_0x5ea22d[_0x352022(0xc8)]('dbdesc');if(_0x4971a5)_0x2f044e[_0x352022(0xd8)]=_0x4971a5;const _0x2b46e2=sanitizeDbLinkForOutput(_0x2f044e);return{'method':_0x352022(0xc2),'url':'/smartapi/dblink/update','body':_0x2b46e2,'description':_0x352022(0xce)};},async 'execute'(_0x2ea281){const _0x2d4476=a72_0x1c9ca2,_0x3acbae=_0x2ea281['num']('id'),_0x258ea8=await getDbLinkInfo(_0x3acbae),_0xd80fc8={..._0x258ea8},_0x28de0a=_0x2ea281['str'](_0x2d4476(0xc4));if(_0x28de0a)_0xd80fc8[_0x2d4476(0xda)]=_0x28de0a;const _0x53b147=_0x2ea281[_0x2d4476(0xc8)](_0x2d4476(0xd2));if(_0x53b147)_0xd80fc8[_0x2d4476(0xe0)]=_0x53b147[_0x2d4476(0xdd)]();const _0x245383=_0x2ea281['str'](_0x2d4476(0xd4));if(_0x245383)_0xd80fc8[_0x2d4476(0xd4)]=_0x245383;const _0x1592b1=_0x2ea281[_0x2d4476(0xc8)](_0x2d4476(0xde));if(_0x1592b1)_0xd80fc8['password']=_0x1592b1;const _0x1dec38=_0x2ea281[_0x2d4476(0xc8)](_0x2d4476(0xc3));if(_0x1dec38)_0xd80fc8[_0x2d4476(0xd7)]=_0x1dec38;const _0x40a402=_0x2ea281['str'](_0x2d4476(0xd6));if(_0x40a402)_0xd80fc8[_0x2d4476(0xd8)]=_0x40a402;const {id:_0x44e4d0,entity:_0x54a87d}=normalizeEntityWithIdResponse(await updateDbLink(_0xd80fc8));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x54a87d),'message':'Updated\x20db\x20link\x20'+(_0x44e4d0??_0x3acbae)};}};
1
+ const a73_0x5d53a2=a73_0x84ab;function a73_0x84ab(_0x2ac2cb,_0x1babc9){_0x2ac2cb=_0x2ac2cb-0x1ee;const _0x37dc64=a73_0x37dc();let _0x84abc2=_0x37dc64[_0x2ac2cb];return _0x84abc2;}(function(_0x5a8842,_0x3f1df4){const _0xa81c05=a73_0x84ab,_0x5383be=_0x5a8842();while(!![]){try{const _0x258a5f=parseInt(_0xa81c05(0x1ee))/0x1*(parseInt(_0xa81c05(0x204))/0x2)+-parseInt(_0xa81c05(0x1fb))/0x3*(-parseInt(_0xa81c05(0x202))/0x4)+-parseInt(_0xa81c05(0x203))/0x5+-parseInt(_0xa81c05(0x20b))/0x6*(parseInt(_0xa81c05(0x206))/0x7)+-parseInt(_0xa81c05(0x1fa))/0x8+-parseInt(_0xa81c05(0x1f3))/0x9+parseInt(_0xa81c05(0x1fe))/0xa;if(_0x258a5f===_0x3f1df4)break;else _0x5383be['push'](_0x5383be['shift']());}catch(_0x3570de){_0x5383be['push'](_0x5383be['shift']());}}}(a73_0x37dc,0xcd16a));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':a73_0x5d53a2(0x1f4),'description':'Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','risk':a73_0x5d53a2(0x1f5),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a73_0x5d53a2(0x1fd),'type':a73_0x5d53a2(0x1f0),'description':a73_0x5d53a2(0x208)},{'name':a73_0x5d53a2(0x20a),'type':a73_0x5d53a2(0x1f0),'description':a73_0x5d53a2(0x209)},{'name':'username','type':a73_0x5d53a2(0x1f0),'description':a73_0x5d53a2(0x1f9)},{'name':'password','type':a73_0x5d53a2(0x1f0),'description':a73_0x5d53a2(0x1f2)},{'name':a73_0x5d53a2(0x205),'type':a73_0x5d53a2(0x1f0),'description':'New\x20connection\x20parameter\x20string'},{'name':a73_0x5d53a2(0x1ef),'type':a73_0x5d53a2(0x1f0),'description':a73_0x5d53a2(0x20c)}],async 'validate'(_0x147409){const _0xc7bf4=_0x147409['str']('dburl');if(_0xc7bf4&&!validateDbUrl(_0xc7bf4['trim']()))throw CliErrors['validation']('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0xc7bf4+'\x22');},async 'dryRun'(_0x173729){const _0x3e8325=a73_0x5d53a2,_0x46b6a7=_0x173729['num']('id'),_0x200598=await getDbLinkInfo(_0x46b6a7),_0x2aa834={..._0x200598},_0x15e6e7=_0x173729[_0x3e8325(0x200)](_0x3e8325(0x1fd));if(_0x15e6e7)_0x2aa834[_0x3e8325(0x1ff)]=_0x15e6e7;const _0x3095f0=_0x173729['str'](_0x3e8325(0x20a));if(_0x3095f0)_0x2aa834[_0x3e8325(0x1fc)]=_0x3095f0[_0x3e8325(0x1f6)]();const _0x138446=_0x173729['str']('username');if(_0x138446)_0x2aa834[_0x3e8325(0x201)]=_0x138446;const _0x40e977=_0x173729[_0x3e8325(0x200)](_0x3e8325(0x207));if(_0x40e977)_0x2aa834[_0x3e8325(0x207)]=_0x40e977;const _0x2b9ee8=_0x173729[_0x3e8325(0x200)](_0x3e8325(0x205));if(_0x2b9ee8)_0x2aa834[_0x3e8325(0x1f1)]=_0x2b9ee8;const _0x17f17f=_0x173729[_0x3e8325(0x200)]('dbdesc');if(_0x17f17f)_0x2aa834['dbDesc']=_0x17f17f;const _0x231e55=sanitizeDbLinkForOutput(_0x2aa834);return{'method':'POST','url':'/smartapi/dblink/update','body':_0x231e55,'description':_0x3e8325(0x1f7)};},async 'execute'(_0x13d0d9){const _0x594be3=a73_0x5d53a2,_0x32c7df=_0x13d0d9['num']('id'),_0x489bcf=await getDbLinkInfo(_0x32c7df),_0x23e71={..._0x489bcf},_0x32a262=_0x13d0d9['str']('dbname');if(_0x32a262)_0x23e71[_0x594be3(0x1ff)]=_0x32a262;const _0x335f08=_0x13d0d9[_0x594be3(0x200)](_0x594be3(0x20a));if(_0x335f08)_0x23e71[_0x594be3(0x1fc)]=_0x335f08['trim']();const _0x30f28d=_0x13d0d9['str'](_0x594be3(0x201));if(_0x30f28d)_0x23e71['username']=_0x30f28d;const _0x16854a=_0x13d0d9[_0x594be3(0x200)](_0x594be3(0x207));if(_0x16854a)_0x23e71[_0x594be3(0x207)]=_0x16854a;const _0x21a5bd=_0x13d0d9[_0x594be3(0x200)](_0x594be3(0x205));if(_0x21a5bd)_0x23e71[_0x594be3(0x1f1)]=_0x21a5bd;const _0x4f6d4e=_0x13d0d9[_0x594be3(0x200)](_0x594be3(0x1ef));if(_0x4f6d4e)_0x23e71['dbDesc']=_0x4f6d4e;const {id:_0x52594b,entity:_0x344cd5}=normalizeEntityWithIdResponse(await updateDbLink(_0x23e71));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x344cd5),'message':_0x594be3(0x1f8)+(_0x52594b??_0x32c7df)};}};function a73_0x37dc(){const _0x493f97=['password','New\x20database\x20name','New\x20host:port','dburl','1572HuIwpv','New\x20description','79Jthnvx','dbdesc','string','dbParam','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','9691911kcSvbv','update','write','trim','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','Updated\x20db\x20link\x20','New\x20username','4990056aHIVPT','4979139sdNrXt','dbUrl','dbname','15846910cuEiRe','dbName','str','username','4sAhugu','5633820ceNKjD','40412SWlRVl','dbparam','31346nfnkre'];a73_0x37dc=function(){return _0x493f97;};return a73_0x37dc();}
@@ -1 +1 @@
1
- (function(_0x34275d,_0x49f4d3){const _0x5c0f3e=a73_0x3032,_0x5371ae=_0x34275d();while(!![]){try{const _0x4208a5=parseInt(_0x5c0f3e(0x1a5))/0x1*(parseInt(_0x5c0f3e(0x1bd))/0x2)+parseInt(_0x5c0f3e(0x1e5))/0x3+parseInt(_0x5c0f3e(0x1c7))/0x4*(parseInt(_0x5c0f3e(0x1eb))/0x5)+parseInt(_0x5c0f3e(0x1db))/0x6+-parseInt(_0x5c0f3e(0x1a3))/0x7*(-parseInt(_0x5c0f3e(0x1d8))/0x8)+-parseInt(_0x5c0f3e(0x1e8))/0x9*(parseInt(_0x5c0f3e(0x1e2))/0xa)+-parseInt(_0x5c0f3e(0x19a))/0xb;if(_0x4208a5===_0x49f4d3)break;else _0x5371ae['push'](_0x5371ae['shift']());}catch(_0x39123b){_0x5371ae['push'](_0x5371ae['shift']());}}}(a73_0x1cc1,0x5cae7));import a73_0x4de10b 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';function a73_0x3032(_0x32ec6a,_0x276d41){_0x32ec6a=_0x32ec6a-0x19a;const _0x1cc118=a73_0x1cc1();let _0x303227=_0x1cc118[_0x32ec6a];return _0x303227;}import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';function a73_0x1cc1(){const _0x4b1078=['(not\x20found)','(none)','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','4231310lXKSKT','\x20(default)','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','325971FcMZzd','appCode','pageSize','9JrxyUb','✗\x20Not\x20logged\x20in','apiDir','258005JHxeOR','green','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','12679458rJWmRl','missing','red','\x20\x20API\x20Endpoints','\x20\x20\x20\x20accessKey:\x20\x20','Project','\x20\x20Apps','accessKey','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','987PpjXvb','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','14euCYun','source','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','(no\x20file)','platform','value','apps','currentApp','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','empty','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','(missing)','log','cookie','\x20\x20─','format','keys','\x20\x20Auth','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','\x20\x20Config\x20Files','101466iTxSIy','✓\x20Valid','raw','✗\x20Invalid\x20JSON','repeat','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','slice','yellow','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','56uyPyBz','defaultApp','bold','Global','message','env','verbose','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','status','locale','length','(set,\x20length=','2864drSRnS','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','2181726OkQfOP','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray'];a73_0x1cc1=function(){return _0x4b1078;};return a73_0x1cc1();}import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x3b65c5){const _0xd38bcd=a73_0x3032,_0x2b652c=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0xd38bcd(0x1c3)](0x0,0xa)+')':VERSION,_0x5d4589=buildConfigFromFlags({}),_0x39bc47=getCookie();console['log'](),console[_0xd38bcd(0x1b2)](a73_0x4de10b[_0xd38bcd(0x1c9)](CLI_BIN_NAME+'\x20doctor')),console['log'](a73_0x4de10b[_0xd38bcd(0x1de)]('─'[_0xd38bcd(0x1c1)](0x32))),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1e1)+_0x2b652c),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1a2)+process['version']),console['log']('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0xd38bcd(0x1a9)]+'\x20'+process[_0xd38bcd(0x1da)]),console['log'](),console[_0xd38bcd(0x1b2)](a73_0x4de10b['bold'](_0xd38bcd(0x1bc))),console[_0xd38bcd(0x1b2)](a73_0x4de10b['gray'](_0xd38bcd(0x1b4)[_0xd38bcd(0x1c1)](0x1e)));const _0x1e7c68=getGlobalConfigPath(),_0x3813b=getProjectConfigPath();console['log'](_0xd38bcd(0x1dd)+(_0x1e7c68||a73_0x4de10b[_0xd38bcd(0x1de)](_0xd38bcd(0x1df)))),console['log'](_0xd38bcd(0x1e4)+(_0x3813b||a73_0x4de10b[_0xd38bcd(0x1de)](_0xd38bcd(0x1df)))),console[_0xd38bcd(0x1b2)](),console[_0xd38bcd(0x1b2)](a73_0x4de10b['bold']('\x20\x20Config\x20JSON')),console[_0xd38bcd(0x1b2)](a73_0x4de10b[_0xd38bcd(0x1de)](_0xd38bcd(0x1b4)[_0xd38bcd(0x1c1)](0x1e)));const _0x5c2262=(_0x4889f5,_0x118089)=>{const _0x2e7e52=_0xd38bcd;if(!_0x118089){console[_0x2e7e52(0x1b2)]('\x20\x20'+_0x4889f5[_0x2e7e52(0x1d3)](0x11)+'\x20'+a73_0x4de10b['gray'](_0x2e7e52(0x1a8)));return;}const _0x385b02=inspectCliConfigJsonFile(_0x118089);if(_0x385b02['status']==='ok')console[_0x2e7e52(0x1b2)]('\x20\x20'+_0x4889f5[_0x2e7e52(0x1d3)](0x11)+'\x20'+a73_0x4de10b[_0x2e7e52(0x1ec)](_0x2e7e52(0x1bb)));else{if(_0x385b02[_0x2e7e52(0x1d4)]===_0x2e7e52(0x1af))console[_0x2e7e52(0x1b2)]('\x20\x20'+_0x4889f5[_0x2e7e52(0x1d3)](0x11)+'\x20'+a73_0x4de10b[_0x2e7e52(0x1c4)](_0x2e7e52(0x1b9)));else _0x385b02['status']===_0x2e7e52(0x19b)?console[_0x2e7e52(0x1b2)]('\x20\x20'+_0x4889f5['padEnd'](0x11)+'\x20'+a73_0x4de10b[_0x2e7e52(0x1de)](_0x2e7e52(0x1b1))):(console[_0x2e7e52(0x1b2)]('\x20\x20'+_0x4889f5[_0x2e7e52(0x1d3)](0x11)+'\x20'+a73_0x4de10b['red'](_0x2e7e52(0x1c0))),console[_0x2e7e52(0x1b2)]('\x20\x20'+''[_0x2e7e52(0x1d3)](0x11)+'\x20'+a73_0x4de10b[_0x2e7e52(0x19c)](_0x385b02[_0x2e7e52(0x1cb)])));}};_0x5c2262(_0xd38bcd(0x1ca),_0x1e7c68),_0x5c2262(_0xd38bcd(0x19f),_0x3813b),console['log'](),console[_0xd38bcd(0x1b2)](a73_0x4de10b[_0xd38bcd(0x1c9)](_0xd38bcd(0x1ae))),console[_0xd38bcd(0x1b2)](a73_0x4de10b['gray'](_0xd38bcd(0x1b4)[_0xd38bcd(0x1c1)](0x1e))),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1d9)+(_0x5d4589[_0xd38bcd(0x1e6)]||a73_0x4de10b['red']('(not\x20set)'))),console['log']('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5d4589[_0xd38bcd(0x1cc)]),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1cf)+_0x5d4589[_0xd38bcd(0x1d5)]),console['log'](_0xd38bcd(0x1ed)+_0x5d4589[_0xd38bcd(0x1ea)]),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1ba)+(_0x5d4589[_0xd38bcd(0x1c8)]||a73_0x4de10b[_0xd38bcd(0x1de)]('(none)'))),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1a4)+(_0x5d4589[_0xd38bcd(0x1ac)]||a73_0x4de10b[_0xd38bcd(0x1de)]('(none)'))),console[_0xd38bcd(0x1b2)]('\x20\x20explicitAppName:\x20'+(_0x5d4589['explicitAppName']||a73_0x4de10b['gray'](_0xd38bcd(0x1e0)))),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1dc)+(_0x5d4589[_0xd38bcd(0x1b5)]||a73_0x4de10b[_0xd38bcd(0x1de)]('(default:\x20'+DEFAULT_CONFIG_VALUES['format']+')'))),console['log'](_0xd38bcd(0x1c2)+(_0x5d4589[_0xd38bcd(0x1e7)]??a73_0x4de10b['gray']('(default)'))),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1ce)+_0x5d4589[_0xd38bcd(0x1c6)]),console[_0xd38bcd(0x1b2)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5d4589[_0xd38bcd(0x1cd)]),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1c5)+(_0x5d4589[_0xd38bcd(0x1b3)]?a73_0x4de10b[_0xd38bcd(0x1ec)]('(set,\x20length='+_0x5d4589[_0xd38bcd(0x1b3)][_0xd38bcd(0x1d6)]+')'):_0x39bc47?a73_0x4de10b[_0xd38bcd(0x1ec)]('(set\x20via\x20file,\x20length='+_0x39bc47[_0xd38bcd(0x1d6)]+')'):a73_0x4de10b[_0xd38bcd(0x1de)](_0xd38bcd(0x1e0))));const _0x2f065b=Object[_0xd38bcd(0x1b6)](_0x5d4589['apps']);if(_0x2f065b[_0xd38bcd(0x1d6)]>0x0){console[_0xd38bcd(0x1b2)](),console['log'](a73_0x4de10b[_0xd38bcd(0x1c9)](_0xd38bcd(0x1a0))),console[_0xd38bcd(0x1b2)](a73_0x4de10b[_0xd38bcd(0x1de)]('\x20\x20─'[_0xd38bcd(0x1c1)](0x1e)));for(const _0x8e4b62 of _0x2f065b){const _0x1a912b=_0x5d4589[_0xd38bcd(0x1ab)][_0x8e4b62],_0x35efae=_0x8e4b62===_0x5d4589[_0xd38bcd(0x1c8)],_0x2aee84=_0x8e4b62===_0x5d4589[_0xd38bcd(0x1ac)],_0x5ea6ce=_0x2aee84?a73_0x4de10b[_0xd38bcd(0x1ec)]('\x20←\x20current'):'',_0x269ed1=_0x35efae?_0xd38bcd(0x1e3):'';console[_0xd38bcd(0x1b2)]('\x20\x20'+_0x8e4b62+_0x269ed1+_0x5ea6ce),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1b0)+_0x1a912b['appcode']);const _0x11be0b=buildAppDoctorFields(_0x1a912b,{'env':_0x5d4589[_0xd38bcd(0x1cc)],'apiDir':_0x5d4589[_0xd38bcd(0x1bf)]['apiDir']||DEFAULT_CONFIG_VALUES[_0xd38bcd(0x1ea)],'cookie':_0x5d4589[_0xd38bcd(0x1b3)]||_0x39bc47||undefined,'accessKey':_0x5d4589[_0xd38bcd(0x1a1)]});console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1d2)+_0x11be0b[_0xd38bcd(0x1cc)]['value']+'\x20\x20'+a73_0x4de10b[_0xd38bcd(0x1de)]('('+_0x11be0b[_0xd38bcd(0x1cc)][_0xd38bcd(0x1a6)]+')')),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1ad)+_0x11be0b[_0xd38bcd(0x1ea)][_0xd38bcd(0x1aa)]+'\x20\x20'+a73_0x4de10b['gray']('('+_0x11be0b[_0xd38bcd(0x1ea)][_0xd38bcd(0x1a6)]+')'));const _0x4a5938=_0x11be0b[_0xd38bcd(0x1b3)][_0xd38bcd(0x1aa)]?a73_0x4de10b[_0xd38bcd(0x1ec)](_0xd38bcd(0x1d7)+_0x11be0b[_0xd38bcd(0x1b3)][_0xd38bcd(0x1aa)][_0xd38bcd(0x1d6)]+')'):a73_0x4de10b['gray']('(none)');console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1a7)+_0x4a5938+'\x20\x20'+a73_0x4de10b[_0xd38bcd(0x1de)]('('+_0x11be0b[_0xd38bcd(0x1b3)][_0xd38bcd(0x1a6)]+')'));const _0x5a3932=_0x11be0b['accessKey']['value']?a73_0x4de10b[_0xd38bcd(0x1ec)](_0xd38bcd(0x1d7)+_0x11be0b[_0xd38bcd(0x1a1)][_0xd38bcd(0x1aa)][_0xd38bcd(0x1d6)]+')'):a73_0x4de10b[_0xd38bcd(0x1de)](_0xd38bcd(0x1e0));console[_0xd38bcd(0x1b2)](_0xd38bcd(0x19e)+_0x5a3932+'\x20\x20'+a73_0x4de10b[_0xd38bcd(0x1de)]('('+_0x11be0b[_0xd38bcd(0x1a1)]['source']+')'));}}console['log'](),console[_0xd38bcd(0x1b2)](a73_0x4de10b['bold'](_0xd38bcd(0x19d))),console[_0xd38bcd(0x1b2)](a73_0x4de10b['gray'](_0xd38bcd(0x1b4)[_0xd38bcd(0x1c1)](0x1e))),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1d0)+getApiDomain()),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1b8)+getUserDomain()),console[_0xd38bcd(0x1b2)](_0xd38bcd(0x1d1)+getRuntimeDomain()),console[_0xd38bcd(0x1b2)](),console[_0xd38bcd(0x1b2)](a73_0x4de10b[_0xd38bcd(0x1c9)](_0xd38bcd(0x1b7))),console[_0xd38bcd(0x1b2)](a73_0x4de10b[_0xd38bcd(0x1de)](_0xd38bcd(0x1b4)[_0xd38bcd(0x1c1)](0x1e)));if(_0x39bc47){const _0x589cd6=await getIsSessionValid();console[_0xd38bcd(0x1b2)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x589cd6?a73_0x4de10b[_0xd38bcd(0x1ec)](_0xd38bcd(0x1be)):a73_0x4de10b[_0xd38bcd(0x19c)]('✗\x20Expired')));}else console[_0xd38bcd(0x1b2)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a73_0x4de10b['red'](_0xd38bcd(0x1e9)));return console[_0xd38bcd(0x1b2)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a74_0x38b901=a74_0x2969;(function(_0x130aba,_0x307546){const _0x281eef=a74_0x2969,_0xbe6ad5=_0x130aba();while(!![]){try{const _0x23696c=-parseInt(_0x281eef(0x14b))/0x1+-parseInt(_0x281eef(0x160))/0x2+-parseInt(_0x281eef(0x14d))/0x3*(-parseInt(_0x281eef(0x12b))/0x4)+parseInt(_0x281eef(0x124))/0x5+parseInt(_0x281eef(0x146))/0x6*(parseInt(_0x281eef(0x15c))/0x7)+-parseInt(_0x281eef(0x130))/0x8+-parseInt(_0x281eef(0x121))/0x9*(-parseInt(_0x281eef(0x128))/0xa);if(_0x23696c===_0x307546)break;else _0xbe6ad5['push'](_0xbe6ad5['shift']());}catch(_0xf8aa77){_0xbe6ad5['push'](_0xbe6ad5['shift']());}}}(a74_0x59b9,0xc2d40));import a74_0x4be59e from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a74_0x59b9(){const _0x1450d8=['gray','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','format','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','status','accessKey','cookie','env','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','version','Project','2817702bLddBE','✗\x20Invalid\x20JSON','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','6418675VGMpoC','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20set)','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','80nTvQJM','locale','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','125772koiAQY','arch','unknown','\x20(default)','empty','11724160ZSuTEh','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','read','apiDir','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','(missing)','padEnd','slice','check','currentApp','apps','(not\x20found)','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','platform','defaultApp','raw','source','length','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1698hQBaTR','doctor','(default)','(none)','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','1264078aOibaq','(default:\x20','63pANWJs','green','verbose','Global','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','✗\x20Expired','repeat','value','appcode','keys','explicitAppName','missing','\x20\x20─','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2513mxjdUR','red','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20←\x20current','2045290fYuHfw','yellow','\x20doctor','bold'];a74_0x59b9=function(){return _0x1450d8;};return a74_0x59b9();}import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';function a74_0x2969(_0x5350bc,_0x213e7a){_0x5350bc=_0x5350bc-0x113;const _0x59b9a0=a74_0x59b9();let _0x296988=_0x59b9a0[_0x5350bc];return _0x296988;}async function execute(_0x67cecf){const _0x1eff80=a74_0x2969,_0x4d11fd=GIT_COMMIT!==_0x1eff80(0x12d)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x1eff80(0x139)](0x0,0xa)+')':VERSION,_0x25dc73=buildConfigFromFlags({}),_0x15968f=getCookie();console[_0x1eff80(0x117)](),console['log'](a74_0x4be59e[_0x1eff80(0x114)](CLI_BIN_NAME+_0x1eff80(0x113))),console['log'](a74_0x4be59e[_0x1eff80(0x115)]('─'['repeat'](0x32))),console['log']('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x4d11fd),console[_0x1eff80(0x117)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x1eff80(0x11f)]),console[_0x1eff80(0x117)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x1eff80(0x140)]+'\x20'+process[_0x1eff80(0x12c)]),console[_0x1eff80(0x117)](),console[_0x1eff80(0x117)](a74_0x4be59e['bold']('\x20\x20Config\x20Files')),console[_0x1eff80(0x117)](a74_0x4be59e['gray']('\x20\x20─'[_0x1eff80(0x154)](0x1e)));const _0x2c5866=getGlobalConfigPath(),_0x46e6df=getProjectConfigPath();console[_0x1eff80(0x117)](_0x1eff80(0x125)+(_0x2c5866||a74_0x4be59e['gray']('(not\x20found)'))),console[_0x1eff80(0x117)](_0x1eff80(0x131)+(_0x46e6df||a74_0x4be59e[_0x1eff80(0x115)](_0x1eff80(0x13d)))),console['log'](),console[_0x1eff80(0x117)](a74_0x4be59e[_0x1eff80(0x114)]('\x20\x20Config\x20JSON')),console[_0x1eff80(0x117)](a74_0x4be59e[_0x1eff80(0x115)](_0x1eff80(0x15a)[_0x1eff80(0x154)](0x1e)));const _0x73cd19=(_0x144df6,_0x1830fc)=>{const _0x11eb73=_0x1eff80;if(!_0x1830fc){console[_0x11eb73(0x117)]('\x20\x20'+_0x144df6[_0x11eb73(0x138)](0x11)+'\x20'+a74_0x4be59e['gray']('(no\x20file)'));return;}const _0x4b48d0=inspectCliConfigJsonFile(_0x1830fc);if(_0x4b48d0[_0x11eb73(0x11a)]==='ok')console['log']('\x20\x20'+_0x144df6[_0x11eb73(0x138)](0x11)+'\x20'+a74_0x4be59e[_0x11eb73(0x14e)]('✓\x20Valid\x20JSON'));else{if(_0x4b48d0[_0x11eb73(0x11a)]===_0x11eb73(0x12f))console['log']('\x20\x20'+_0x144df6[_0x11eb73(0x138)](0x11)+'\x20'+a74_0x4be59e[_0x11eb73(0x161)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x4b48d0[_0x11eb73(0x11a)]===_0x11eb73(0x159)?console[_0x11eb73(0x117)]('\x20\x20'+_0x144df6[_0x11eb73(0x138)](0x11)+'\x20'+a74_0x4be59e[_0x11eb73(0x115)](_0x11eb73(0x137))):(console[_0x11eb73(0x117)]('\x20\x20'+_0x144df6[_0x11eb73(0x138)](0x11)+'\x20'+a74_0x4be59e[_0x11eb73(0x15d)](_0x11eb73(0x122))),console[_0x11eb73(0x117)]('\x20\x20'+''[_0x11eb73(0x138)](0x11)+'\x20'+a74_0x4be59e['red'](_0x4b48d0['message'])));}};_0x73cd19(_0x1eff80(0x150),_0x2c5866),_0x73cd19(_0x1eff80(0x120),_0x46e6df),console[_0x1eff80(0x117)](),console[_0x1eff80(0x117)](a74_0x4be59e[_0x1eff80(0x114)]('\x20\x20Merged\x20Config')),console[_0x1eff80(0x117)](a74_0x4be59e['gray'](_0x1eff80(0x15a)[_0x1eff80(0x154)](0x1e))),console[_0x1eff80(0x117)](_0x1eff80(0x14a)+(_0x25dc73['appCode']||a74_0x4be59e[_0x1eff80(0x15d)](_0x1eff80(0x126)))),console[_0x1eff80(0x117)](_0x1eff80(0x15b)+_0x25dc73[_0x1eff80(0x11d)]),console[_0x1eff80(0x117)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x25dc73[_0x1eff80(0x129)]),console[_0x1eff80(0x117)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x25dc73[_0x1eff80(0x134)]),console[_0x1eff80(0x117)](_0x1eff80(0x12a)+(_0x25dc73['defaultApp']||a74_0x4be59e[_0x1eff80(0x115)](_0x1eff80(0x149)))),console[_0x1eff80(0x117)](_0x1eff80(0x123)+(_0x25dc73[_0x1eff80(0x13b)]||a74_0x4be59e[_0x1eff80(0x115)](_0x1eff80(0x149)))),console[_0x1eff80(0x117)]('\x20\x20explicitAppName:\x20'+(_0x25dc73[_0x1eff80(0x158)]||a74_0x4be59e[_0x1eff80(0x115)]('(none)'))),console['log'](_0x1eff80(0x145)+(_0x25dc73[_0x1eff80(0x118)]||a74_0x4be59e['gray'](_0x1eff80(0x14c)+DEFAULT_CONFIG_VALUES[_0x1eff80(0x118)]+')'))),console[_0x1eff80(0x117)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x25dc73['pageSize']??a74_0x4be59e['gray'](_0x1eff80(0x148)))),console[_0x1eff80(0x117)](_0x1eff80(0x136)+_0x25dc73['riskLevel']),console[_0x1eff80(0x117)](_0x1eff80(0x151)+_0x25dc73[_0x1eff80(0x14f)]),console[_0x1eff80(0x117)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x25dc73['cookie']?a74_0x4be59e[_0x1eff80(0x14e)](_0x1eff80(0x152)+_0x25dc73[_0x1eff80(0x11c)][_0x1eff80(0x144)]+')'):_0x15968f?a74_0x4be59e[_0x1eff80(0x14e)]('(set\x20via\x20file,\x20length='+_0x15968f[_0x1eff80(0x144)]+')'):a74_0x4be59e[_0x1eff80(0x115)]('(none)')));const _0x39d149=Object[_0x1eff80(0x157)](_0x25dc73[_0x1eff80(0x13c)]);if(_0x39d149[_0x1eff80(0x144)]>0x0){console['log'](),console['log'](a74_0x4be59e[_0x1eff80(0x114)]('\x20\x20Apps')),console[_0x1eff80(0x117)](a74_0x4be59e[_0x1eff80(0x115)](_0x1eff80(0x15a)[_0x1eff80(0x154)](0x1e)));for(const _0x4a9650 of _0x39d149){const _0x19367d=_0x25dc73[_0x1eff80(0x13c)][_0x4a9650],_0x270b97=_0x4a9650===_0x25dc73[_0x1eff80(0x141)],_0x47b79f=_0x4a9650===_0x25dc73['currentApp'],_0x226bd5=_0x47b79f?a74_0x4be59e[_0x1eff80(0x14e)](_0x1eff80(0x15f)):'',_0x1bfaa6=_0x270b97?_0x1eff80(0x12e):'';console[_0x1eff80(0x117)]('\x20\x20'+_0x4a9650+_0x1bfaa6+_0x226bd5),console[_0x1eff80(0x117)](_0x1eff80(0x127)+_0x19367d[_0x1eff80(0x156)]);const _0x2cbfee=buildAppDoctorFields(_0x19367d,{'env':_0x25dc73[_0x1eff80(0x11d)],'apiDir':_0x25dc73[_0x1eff80(0x142)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x1eff80(0x134)],'cookie':_0x25dc73[_0x1eff80(0x11c)]||_0x15968f||undefined,'accessKey':_0x25dc73[_0x1eff80(0x11b)]});console[_0x1eff80(0x117)](_0x1eff80(0x13f)+_0x2cbfee['env']['value']+'\x20\x20'+a74_0x4be59e['gray']('('+_0x2cbfee[_0x1eff80(0x11d)][_0x1eff80(0x143)]+')')),console[_0x1eff80(0x117)](_0x1eff80(0x11e)+_0x2cbfee[_0x1eff80(0x134)][_0x1eff80(0x155)]+'\x20\x20'+a74_0x4be59e[_0x1eff80(0x115)]('('+_0x2cbfee[_0x1eff80(0x134)][_0x1eff80(0x143)]+')'));const _0x614689=_0x2cbfee[_0x1eff80(0x11c)][_0x1eff80(0x155)]?a74_0x4be59e[_0x1eff80(0x14e)](_0x1eff80(0x152)+_0x2cbfee['cookie']['value']['length']+')'):a74_0x4be59e[_0x1eff80(0x115)](_0x1eff80(0x149));console['log'](_0x1eff80(0x15e)+_0x614689+'\x20\x20'+a74_0x4be59e['gray']('('+_0x2cbfee['cookie'][_0x1eff80(0x143)]+')'));const _0x16f5ce=_0x2cbfee['accessKey'][_0x1eff80(0x155)]?a74_0x4be59e['green'](_0x1eff80(0x152)+_0x2cbfee[_0x1eff80(0x11b)][_0x1eff80(0x155)][_0x1eff80(0x144)]+')'):a74_0x4be59e[_0x1eff80(0x115)](_0x1eff80(0x149));console['log']('\x20\x20\x20\x20accessKey:\x20\x20'+_0x16f5ce+'\x20\x20'+a74_0x4be59e[_0x1eff80(0x115)]('('+_0x2cbfee['accessKey'][_0x1eff80(0x143)]+')'));}}console['log'](),console[_0x1eff80(0x117)](a74_0x4be59e['bold']('\x20\x20API\x20Endpoints')),console[_0x1eff80(0x117)](a74_0x4be59e['gray'](_0x1eff80(0x15a)[_0x1eff80(0x154)](0x1e))),console['log'](_0x1eff80(0x135)+getApiDomain()),console[_0x1eff80(0x117)](_0x1eff80(0x13e)+getUserDomain()),console[_0x1eff80(0x117)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console['log'](),console[_0x1eff80(0x117)](a74_0x4be59e['bold']('\x20\x20Auth')),console[_0x1eff80(0x117)](a74_0x4be59e[_0x1eff80(0x115)]('\x20\x20─'[_0x1eff80(0x154)](0x1e)));if(_0x15968f){const _0x595cae=await getIsSessionValid();console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x595cae?a74_0x4be59e[_0x1eff80(0x14e)]('✓\x20Valid'):a74_0x4be59e[_0x1eff80(0x15d)](_0x1eff80(0x153))));}else console[_0x1eff80(0x117)](_0x1eff80(0x116)+a74_0x4be59e['red'](_0x1eff80(0x132)));return console[_0x1eff80(0x117)](),{'ok':!![]};}export const doctorDefinition={'service':a74_0x38b901(0x147),'command':a74_0x38b901(0x13a),'description':a74_0x38b901(0x119),'risk':a74_0x38b901(0x133),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a74_0xedeeb=a74_0x58db;(function(_0x317f49,_0x3d4ae3){const _0x3dee8c=a74_0x58db,_0x17659d=_0x317f49();while(!![]){try{const _0x566360=-parseInt(_0x3dee8c(0xf8))/0x1*(-parseInt(_0x3dee8c(0xe9))/0x2)+parseInt(_0x3dee8c(0xf5))/0x3+parseInt(_0x3dee8c(0x103))/0x4+-parseInt(_0x3dee8c(0xe5))/0x5+parseInt(_0x3dee8c(0xf7))/0x6*(parseInt(_0x3dee8c(0xe8))/0x7)+-parseInt(_0x3dee8c(0xed))/0x8+-parseInt(_0x3dee8c(0xea))/0x9;if(_0x566360===_0x3d4ae3)break;else _0x17659d['push'](_0x17659d['shift']());}catch(_0x316ecc){_0x17659d['push'](_0x17659d['shift']());}}}(a74_0x2d4d,0xe6afd));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';function a74_0x58db(_0x54e571,_0x4c5465){_0x54e571=_0x54e571-0xe0;const _0x2d4d2d=a74_0x2d4d();let _0x58dbba=_0x2d4d2d[_0x54e571];return _0x58dbba;}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(_0x3c4a39){return{'appCode':_0x3c4a39,'appName':_0x3c4a39};}function writeInitConfig(_0x312d28,_0x85ed7a,_0xb71394){const _0x29ca2f=a74_0x58db,_0x39b1db=resolveWriteConfigPath(_0x312d28),_0x45740f=buildCanonicalProjectConfig({},{'appCodes':_0x85ed7a[_0x29ca2f(0x108)](_0x54238d=>_0x54238d['appCode']),'env':_0xb71394,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x29ca2f(0x10c)]()}});writeConfigFile(_0x39b1db,_0x45740f);const _0x92a8a9=_0x312d28===_0x29ca2f(0x109)?_0x29ca2f(0x109):_0x29ca2f(0xf3);console[_0x29ca2f(0x102)](_0x29ca2f(0x101)+_0x92a8a9+_0x29ca2f(0x10a)),console['log'](_0x29ca2f(0x107)+_0x85ed7a['map'](_0x503186=>_0x503186[_0x29ca2f(0x10b)])[_0x29ca2f(0xf1)](',\x20')),console[_0x29ca2f(0x102)](_0x29ca2f(0xf2)+_0x45740f[_0x29ca2f(0xf4)]),console[_0x29ca2f(0x102)](_0x29ca2f(0xeb)+_0x45740f[_0x29ca2f(0xe2)]),console[_0x29ca2f(0x102)]('\x20\x20Config:\x20'+_0x39b1db);}function a74_0x2d4d(){const _0x35254a=['2062tpPlRz','message','run','boolean','yes','write','production','some','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','\x0a✓\x20Successfully\x20initialized\x20','log','7506484krNTuX','cwd','appcode','str','\x20\x20Apps:\x20','map','global','\x20config','appCode','toLocaleString','nonInteractive','validation','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','Write\x20to\x20global\x20config\x20instead\x20of\x20project','env','bool','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','4651470MUABSd','../../commands/project/init.js','Use\x20`','555443dAeyup','950lFlwfi','8342982qtJZkJ','\x20\x20Env:\x20','Target\x20environment','14364984XuuveY','App\x20code\x20to\x20initialize\x20with','custom','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','join','\x20\x20Default:\x20','project','defaultApp','2606694ZxVowG','检测到旧配置文件,正在自动升级...\x0a','66Ryvhsx'];a74_0x2d4d=function(){return _0x35254a;};return a74_0x2d4d();}async function runSmartInit(_0x21325d){const _0x34181e=a74_0x58db,_0x328af4=process[_0x34181e(0x104)](),_0xc7149=_0x21325d[_0x34181e(0xe3)]('global')?_0x34181e(0x109):'project',_0x2fbb02=_0x21325d['str'](_0x34181e(0xe2))||_0x34181e(0xfe),_0xeb3e26=_0x21325d[_0x34181e(0x106)](_0x34181e(0x105))||undefined,_0x12dcf7=_0x21325d['bool'](_0x34181e(0xf3));if(_0x12dcf7){const {initConfig:_0x4895f3}=await import(_0x34181e(0xe6));return _0x4895f3({'appcode':_0xeb3e26,'env':_0x2fbb02,'autoYes':_0x21325d['bool'](_0x34181e(0xfc))});}if(_0xc7149==='project'){const _0x3cae41=existsSync(resolve(_0x328af4,NEW_CONFIG_NAME)),_0x3acfbd=LEGACY_CONFIG_NAMES[_0x34181e(0xff)](_0x294fb4=>existsSync(resolve(_0x328af4,_0x294fb4)));if(_0x3acfbd&&!_0x3cae41)return console[_0x34181e(0x102)](_0x34181e(0xf6)),upgradeApp(_0x21325d[_0x34181e(0x10d)],{'yes':_0x21325d['bool'](_0x34181e(0xfc))});if(_0x3cae41)throw CliErrors[_0x34181e(0x10e)](_0x34181e(0xf0),_0x34181e(0xe7)+CLI_BIN_NAME+_0x34181e(0xe4));}if(_0xeb3e26){const _0x3472a3=validateAppcode(_0xeb3e26);if(!_0x3472a3['valid'])throw CliErrors['validation'](_0x3472a3[_0x34181e(0xf9)]);writeInitConfig(_0xc7149,[syntheticApp(_0xeb3e26)],_0x2fbb02);return;}if(_0x21325d[_0x34181e(0x10d)])throw CliErrors['flagMissing']('appcode','Usage:\x20'+CLI_BIN_NAME+_0x34181e(0xe0));const _0x12c2c7=getCookie(),_0x50b2e=await selectMultipleApps(_0x12c2c7),_0x4eb4b6=_0x50b2e===_0x34181e(0xef)?[syntheticApp(await promptCustomAppcode())]:_0x50b2e;writeInitConfig(_0xc7149,_0x4eb4b6,_0x2fbb02);}const initFlags=[{'name':a74_0xedeeb(0x109),'type':'boolean','description':a74_0xedeeb(0xe1),'default':![]},{'name':a74_0xedeeb(0xe2),'type':'string','description':a74_0xedeeb(0xec),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':a74_0xedeeb(0x105),'type':'string','description':a74_0xedeeb(0xee)},{'name':'project','type':a74_0xedeeb(0xfb),'description':a74_0xedeeb(0x10f),'default':![]},{'name':a74_0xedeeb(0xfc),'type':'boolean','description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':'init','command':a74_0xedeeb(0xfa),'description':a74_0xedeeb(0x100),'risk':a74_0xedeeb(0xfd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x127090){return await runSmartInit(_0x127090),{'ok':!![]};}}];
1
+ const a75_0xb085e7=a75_0x50fc;(function(_0x138924,_0x4f4b9b){const _0x4c72cc=a75_0x50fc,_0x965c72=_0x138924();while(!![]){try{const _0x328aab=-parseInt(_0x4c72cc(0x1ce))/0x1+-parseInt(_0x4c72cc(0x1e6))/0x2+parseInt(_0x4c72cc(0x1cd))/0x3+parseInt(_0x4c72cc(0x1bb))/0x4*(-parseInt(_0x4c72cc(0x1d5))/0x5)+-parseInt(_0x4c72cc(0x1d9))/0x6+-parseInt(_0x4c72cc(0x1ca))/0x7+-parseInt(_0x4c72cc(0x1d8))/0x8*(-parseInt(_0x4c72cc(0x1c1))/0x9);if(_0x328aab===_0x4f4b9b)break;else _0x965c72['push'](_0x965c72['shift']());}catch(_0x2f7ef4){_0x965c72['push'](_0x965c72['shift']());}}}(a75_0x9521,0x3d1b0));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';function a75_0x9521(){const _0x1da055=['map','project','custom','../../commands/project/init.js','Use\x20`','1469230aoYUvO','appcode','validation','114063UHSClX','97362tOBwuh','valid','\x20\x20Config:\x20','log','flagMissing','Usage:\x20','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','5bwzCuM','\x20\x20Default:\x20','appCode','8420072bhsuEp','1239294vJuYvE','string','join','yes','production','env','Target\x20environment','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','global','\x0a✓\x20Successfully\x20initialized\x20','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','nonInteractive','init','179206CrlPtb','write','947352VSafuf','\x20config','str','App\x20code\x20to\x20initialize\x20with','bool','run','9llQKBq','boolean','\x20\x20Env:\x20','Write\x20to\x20global\x20config\x20instead\x20of\x20project'];a75_0x9521=function(){return _0x1da055;};return a75_0x9521();}function a75_0x50fc(_0x28628e,_0x184685){_0x28628e=_0x28628e-0x1bb;const _0x952118=a75_0x9521();let _0x50fc30=_0x952118[_0x28628e];return _0x50fc30;}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(_0x16de94){return{'appCode':_0x16de94,'appName':_0x16de94};}function writeInitConfig(_0xe57d82,_0x4430bb,_0x174e89){const _0x25d8ee=a75_0x50fc,_0x3e0279=resolveWriteConfigPath(_0xe57d82),_0x5bb484=buildCanonicalProjectConfig({},{'appCodes':_0x4430bb[_0x25d8ee(0x1c5)](_0x3dfac7=>_0x3dfac7[_0x25d8ee(0x1d7)]),'env':_0x174e89,'metadata':{'version':getCliVersion(),'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0x3e0279,_0x5bb484);const _0x550193=_0xe57d82===_0x25d8ee(0x1e1)?_0x25d8ee(0x1e1):_0x25d8ee(0x1c6);console[_0x25d8ee(0x1d1)](_0x25d8ee(0x1e2)+_0x550193+_0x25d8ee(0x1bc)),console['log']('\x20\x20Apps:\x20'+_0x4430bb[_0x25d8ee(0x1c5)](_0x2ae675=>_0x2ae675[_0x25d8ee(0x1d7)])[_0x25d8ee(0x1db)](',\x20')),console[_0x25d8ee(0x1d1)](_0x25d8ee(0x1d6)+_0x5bb484['defaultApp']),console[_0x25d8ee(0x1d1)](_0x25d8ee(0x1c3)+_0x5bb484[_0x25d8ee(0x1de)]),console[_0x25d8ee(0x1d1)](_0x25d8ee(0x1d0)+_0x3e0279);}async function runSmartInit(_0x569eed){const _0x46b9e3=a75_0x50fc,_0x333d2a=process['cwd'](),_0x4db04f=_0x569eed[_0x46b9e3(0x1bf)](_0x46b9e3(0x1e1))?_0x46b9e3(0x1e1):_0x46b9e3(0x1c6),_0x1e2d60=_0x569eed[_0x46b9e3(0x1bd)](_0x46b9e3(0x1de))||_0x46b9e3(0x1dd),_0x3467ec=_0x569eed[_0x46b9e3(0x1bd)](_0x46b9e3(0x1cb))||undefined,_0x215aa7=_0x569eed['bool']('project');if(_0x215aa7){const {initConfig:_0x25bf3c}=await import(_0x46b9e3(0x1c8));return _0x25bf3c({'appcode':_0x3467ec,'env':_0x1e2d60,'autoYes':_0x569eed[_0x46b9e3(0x1bf)](_0x46b9e3(0x1dc))});}if(_0x4db04f===_0x46b9e3(0x1c6)){const _0x5da5fc=existsSync(resolve(_0x333d2a,NEW_CONFIG_NAME)),_0x28de1f=LEGACY_CONFIG_NAMES['some'](_0x3ed806=>existsSync(resolve(_0x333d2a,_0x3ed806)));if(_0x28de1f&&!_0x5da5fc)return console[_0x46b9e3(0x1d1)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x569eed[_0x46b9e3(0x1e4)],{'yes':_0x569eed[_0x46b9e3(0x1bf)]('yes')});if(_0x5da5fc)throw CliErrors[_0x46b9e3(0x1cc)](_0x46b9e3(0x1e3),_0x46b9e3(0x1c9)+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x3467ec){const _0x2a88e3=validateAppcode(_0x3467ec);if(!_0x2a88e3[_0x46b9e3(0x1cf)])throw CliErrors[_0x46b9e3(0x1cc)](_0x2a88e3['message']);writeInitConfig(_0x4db04f,[syntheticApp(_0x3467ec)],_0x1e2d60);return;}if(_0x569eed[_0x46b9e3(0x1e4)])throw CliErrors[_0x46b9e3(0x1d2)](_0x46b9e3(0x1cb),_0x46b9e3(0x1d3)+CLI_BIN_NAME+_0x46b9e3(0x1d4));const _0x5aa17d=getCookie(),_0x1fd7d6=await selectMultipleApps(_0x5aa17d),_0x1196ca=_0x1fd7d6===_0x46b9e3(0x1c7)?[syntheticApp(await promptCustomAppcode())]:_0x1fd7d6;writeInitConfig(_0x4db04f,_0x1196ca,_0x1e2d60);}const initFlags=[{'name':a75_0xb085e7(0x1e1),'type':a75_0xb085e7(0x1c2),'description':a75_0xb085e7(0x1c4),'default':![]},{'name':a75_0xb085e7(0x1de),'type':a75_0xb085e7(0x1da),'description':a75_0xb085e7(0x1df),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':'string','description':a75_0xb085e7(0x1be)},{'name':'project','type':a75_0xb085e7(0x1c2),'description':a75_0xb085e7(0x1e0),'default':![]},{'name':a75_0xb085e7(0x1dc),'type':a75_0xb085e7(0x1c2),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a75_0xb085e7(0x1e5),'command':a75_0xb085e7(0x1c0),'description':'Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','risk':a75_0xb085e7(0x1e7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x41791f){return await runSmartInit(_0x41791f),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x538f63,_0x3fc84a){const _0x26eab1=a75_0x1339,_0x398721=_0x538f63();while(!![]){try{const _0x1f062e=-parseInt(_0x26eab1(0x178))/0x1*(parseInt(_0x26eab1(0x173))/0x2)+-parseInt(_0x26eab1(0x172))/0x3+parseInt(_0x26eab1(0x175))/0x4+parseInt(_0x26eab1(0x177))/0x5*(parseInt(_0x26eab1(0x179))/0x6)+-parseInt(_0x26eab1(0x17a))/0x7*(parseInt(_0x26eab1(0x17b))/0x8)+parseInt(_0x26eab1(0x174))/0x9*(parseInt(_0x26eab1(0x171))/0xa)+parseInt(_0x26eab1(0x176))/0xb;if(_0x1f062e===_0x3fc84a)break;else _0x398721['push'](_0x398721['shift']());}catch(_0xbbff92){_0x398721['push'](_0x398721['shift']());}}}(a75_0x4fea,0xe83b5));function a75_0x4fea(){const _0x3dee9f=['7415682dYsXir','42LtrnZp','609032RGRlZY','2330eCqyyw','3949959lSBucF','2pfKBmo','42111rpNHgl','6788256CSIOqt','2231284TnGRcQ','5NjaVVK','1501414lLvYSY'];a75_0x4fea=function(){return _0x3dee9f;};return a75_0x4fea();}import{issueReport}from'../../commands/issue/report.js';function a75_0x1339(_0x3ea4ff,_0x4845ea){_0x3ea4ff=_0x3ea4ff-0x171;const _0x4fea04=a75_0x4fea();let _0x133978=_0x4fea04[_0x3ea4ff];return _0x133978;}export const issueDefinitions=[issueReport];
1
+ function a76_0x4e09(){const _0x27c12b=['251395bRscjl','3164196aTfWSK','2ujFZFg','5455308MJIkEW','498049iDifEy','5249448oNtGOC','222rYgzzA','522488KSMnkC','1283688AdDFZb'];a76_0x4e09=function(){return _0x27c12b;};return a76_0x4e09();}(function(_0x4527ea,_0x489c1c){const _0x3634dd=a76_0x1fde,_0x368618=_0x4527ea();while(!![]){try{const _0x27f351=-parseInt(_0x3634dd(0xf7))/0x1*(-parseInt(_0x3634dd(0xf5))/0x2)+-parseInt(_0x3634dd(0xf6))/0x3+parseInt(_0x3634dd(0xf4))/0x4+parseInt(_0x3634dd(0xf3))/0x5*(parseInt(_0x3634dd(0xf9))/0x6)+parseInt(_0x3634dd(0xf2))/0x7+parseInt(_0x3634dd(0xfa))/0x8+-parseInt(_0x3634dd(0xf8))/0x9;if(_0x27f351===_0x489c1c)break;else _0x368618['push'](_0x368618['shift']());}catch(_0x61f4b2){_0x368618['push'](_0x368618['shift']());}}}(a76_0x4e09,0xf3438));function a76_0x1fde(_0x43ed44,_0x20bc0f){_0x43ed44=_0x43ed44-0xf2;const _0x4e09f1=a76_0x4e09();let _0x1fdee4=_0x4e09f1[_0x43ed44];return _0x1fdee4;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a76_0x114c0f=a76_0x191f;(function(_0x17c4fb,_0x35bf6d){const _0x1afa33=a76_0x191f,_0xc3a50=_0x17c4fb();while(!![]){try{const _0x80b9ee=parseInt(_0x1afa33(0x133))/0x1+-parseInt(_0x1afa33(0x13e))/0x2+-parseInt(_0x1afa33(0x12f))/0x3*(-parseInt(_0x1afa33(0x13d))/0x4)+parseInt(_0x1afa33(0x13c))/0x5+-parseInt(_0x1afa33(0x12a))/0x6+-parseInt(_0x1afa33(0x141))/0x7*(-parseInt(_0x1afa33(0x127))/0x8)+-parseInt(_0x1afa33(0x148))/0x9*(-parseInt(_0x1afa33(0x131))/0xa);if(_0x80b9ee===_0x35bf6d)break;else _0xc3a50['push'](_0xc3a50['shift']());}catch(_0x3a848e){_0xc3a50['push'](_0xc3a50['shift']());}}}(a76_0x26ea,0xc3d8d));function a76_0x26ea(){const _0x558703=['write','filter','descriptionSource:\x20','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','utf8','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','411930JbqqnS','1684kjustR','880208soNVDO','One-line\x20issue\x20summary','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','2224327IHeSFz','Failed\x20to\x20report\x20platform\x20issue:\x20','Issue\x20description\x20cannot\x20be\x20empty.','descriptionSource','inline','POST','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','18YSPHzO','Issue\x20description\x20file\x20is\x20empty:\x20','cwd','report','trim','description-file','title','message','descriptionFilePath','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','join','flagMissing','issue.description','8tPzLCm','Platform\x20issue\x20reported','descriptionFile:\x20','7562448daIUpS','validation','issue.title','string','length','2841wkergN','str','5637850cdKsON','file','576297gOAWmc','File\x20not\x20found:\x20','description'];a76_0x26ea=function(){return _0x558703;};return a76_0x26ea();}import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';function a76_0x191f(_0x3a009a,_0x275dba){_0x3a009a=_0x3a009a-0x122;const _0x26ea36=a76_0x26ea();let _0x191fc8=_0x26ea36[_0x3a009a];return _0x191fc8;}import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a76_0x114c0f(0x14d);export const issueReport={'service':'issue','command':a76_0x114c0f(0x14b),'description':a76_0x114c0f(0x139),'risk':a76_0x114c0f(0x136),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a76_0x114c0f(0x14e),'type':a76_0x114c0f(0x12d),'required':!![],'description':a76_0x114c0f(0x13f)},{'name':'description','type':'string','description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a76_0x114c0f(0x12d),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x28286a){const _0x12087a=a76_0x114c0f,_0x5234d9=_0x28286a['str']('title')['trim'](),_0xf112ad=_0x28286a[_0x12087a(0x130)](_0x12087a(0x135))['trim'](),_0x5a3b87=_0x28286a[_0x12087a(0x130)](DESCRIPTION_FILE_FLAG)[_0x12087a(0x14c)]();if(!_0x5234d9)throw CliErrors[_0x12087a(0x125)](_0x12087a(0x14e),_0x12087a(0x123));const _0x39c10e=_0xf112ad[_0x12087a(0x12e)]>0x0,_0x25b693=_0x5a3b87[_0x12087a(0x12e)]>0x0;if(_0x39c10e===_0x25b693)throw CliErrors['validation']('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0x12087a(0x13b));if(_0x25b693){const _0x1a0a59=resolve(process[_0x12087a(0x14a)](),_0x5a3b87);if(!existsSync(_0x1a0a59))throw CliErrors[_0x12087a(0x12b)](_0x12087a(0x134)+_0x1a0a59);}},async 'dryRun'(_0x562acd){const _0x2ee734=a76_0x114c0f,_0x4bb46f=await prepareIssueReport(_0x562acd);return{'method':_0x2ee734(0x146),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4bb46f[_0x2ee734(0x14e)],'issue.description':_0x4bb46f[_0x2ee734(0x135)]}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter',_0x2ee734(0x138)+_0x4bb46f['descriptionSource'],_0x4bb46f[_0x2ee734(0x122)]?_0x2ee734(0x129)+_0x4bb46f[_0x2ee734(0x122)]:null][_0x2ee734(0x137)](Boolean)[_0x2ee734(0x124)]('\x0a')};},async 'execute'(_0x23d73b){const _0xcdf951=a76_0x114c0f,_0x55bdc1=await prepareIssueReport(_0x23d73b);try{await sendPlatformIssueCollectLog({'title':_0x55bdc1['title'],'description':_0x55bdc1[_0xcdf951(0x135)]});}catch(_0x239256){throw CliErrors['apiError'](_0xcdf951(0x142)+(_0x239256 instanceof Error?_0x239256[_0xcdf951(0x14f)]:String(_0x239256)),_0xcdf951(0x140));}return{'ok':!![],'message':_0xcdf951(0x128),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0xcdf951(0x12c),_0xcdf951(0x126)],'issue':{'title':_0x55bdc1[_0xcdf951(0x14e)],'descriptionLength':_0x55bdc1[_0xcdf951(0x135)][_0xcdf951(0x12e)],'descriptionSource':_0x55bdc1[_0xcdf951(0x144)],..._0x55bdc1[_0xcdf951(0x122)]?{'descriptionFile':_0x55bdc1[_0xcdf951(0x122)]}:{}}}};}};async function prepareIssueReport(_0x58fd42){const _0x4f122a=a76_0x114c0f,_0x74f66c=_0x58fd42['str'](_0x4f122a(0x14e))[_0x4f122a(0x14c)](),_0x35f5a6=_0x58fd42[_0x4f122a(0x130)](_0x4f122a(0x135)),_0x5eb528=_0x58fd42[_0x4f122a(0x130)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x5eb528){const _0x5475a6=_0x35f5a6;if(!_0x5475a6[_0x4f122a(0x14c)]())throw CliErrors[_0x4f122a(0x12b)](_0x4f122a(0x143),_0x4f122a(0x147));return{'title':_0x74f66c,'description':_0x5475a6,'descriptionSource':_0x4f122a(0x145)};}const _0x68f549=resolve(process['cwd'](),_0x5eb528),_0x503453=await readFile(_0x68f549,_0x4f122a(0x13a));if(!_0x503453[_0x4f122a(0x14c)]())throw CliErrors[_0x4f122a(0x12b)](_0x4f122a(0x149)+_0x68f549,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');return{'title':_0x74f66c,'description':_0x503453,'descriptionSource':_0x4f122a(0x132),'descriptionFilePath':_0x68f549};}
1
+ const a77_0x3b839a=a77_0x20a4;function a77_0x20a4(_0x1e1338,_0x2133f2){_0x1e1338=_0x1e1338-0x11d;const _0x5c687e=a77_0x5c68();let _0x20a45f=_0x5c687e[_0x1e1338];return _0x20a45f;}(function(_0x2f011d,_0x25ed52){const _0x1c728d=a77_0x20a4,_0x3fe89b=_0x2f011d();while(!![]){try{const _0x2563a7=parseInt(_0x1c728d(0x12a))/0x1*(-parseInt(_0x1c728d(0x144))/0x2)+-parseInt(_0x1c728d(0x141))/0x3+parseInt(_0x1c728d(0x11e))/0x4*(parseInt(_0x1c728d(0x13d))/0x5)+-parseInt(_0x1c728d(0x12d))/0x6+parseInt(_0x1c728d(0x125))/0x7*(parseInt(_0x1c728d(0x145))/0x8)+parseInt(_0x1c728d(0x13a))/0x9*(parseInt(_0x1c728d(0x138))/0xa)+parseInt(_0x1c728d(0x134))/0xb*(-parseInt(_0x1c728d(0x12e))/0xc);if(_0x2563a7===_0x25ed52)break;else _0x3fe89b['push'](_0x3fe89b['shift']());}catch(_0x117f64){_0x3fe89b['push'](_0x3fe89b['shift']());}}}(a77_0x5c68,0xb35e5));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';function a77_0x5c68(){const _0x3aed69=['108EOkkMS','POST','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','descriptionSource:\x20','Issue\x20description\x20file\x20is\x20empty:\x20','1677049CrogkA','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','issue','str','40990bITcaB','description','3123NhKzyp','compress','filter','9675ySjXrZ','Failed\x20to\x20report\x20platform\x20issue:\x20','otel://','utf8','1608339DbLwyU','Issue\x20description\x20cannot\x20be\x20empty.','string','200jfCJSX','546608ElfzGT','descriptionFilePath','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','trim','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','cwd','length','flagMissing','1324NUhoxj','description-file','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','file','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','validation','Platform\x20issue\x20reported','119PBAwKw','apiError','write','inline','report','2603yyyjMw','message','title','1926858OLWhUm'];a77_0x5c68=function(){return _0x3aed69;};return a77_0x5c68();}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_0x3b839a(0x11f);export const issueReport={'service':a77_0x3b839a(0x136),'command':a77_0x3b839a(0x129),'description':a77_0x3b839a(0x131),'risk':a77_0x3b839a(0x127),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a77_0x3b839a(0x13b),'flags':[{'name':'title','type':a77_0x3b839a(0x143),'required':!![],'description':'One-line\x20issue\x20summary'},{'name':a77_0x3b839a(0x139),'type':'string','description':a77_0x3b839a(0x120)},{'name':DESCRIPTION_FILE_FLAG,'type':a77_0x3b839a(0x143),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x3b0b30){const _0x4a08d4=a77_0x3b839a,_0x2821d1=_0x3b0b30[_0x4a08d4(0x137)](_0x4a08d4(0x12c))['trim'](),_0x1a1c1a=_0x3b0b30['str']('description')[_0x4a08d4(0x148)](),_0x248897=_0x3b0b30[_0x4a08d4(0x137)](DESCRIPTION_FILE_FLAG)[_0x4a08d4(0x148)]();if(!_0x2821d1)throw CliErrors[_0x4a08d4(0x11d)]('title','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x1dcdbe=_0x1a1c1a[_0x4a08d4(0x14b)]>0x0,_0x2142cb=_0x248897['length']>0x0;if(_0x1dcdbe===_0x2142cb)throw CliErrors[_0x4a08d4(0x123)](_0x4a08d4(0x130),_0x4a08d4(0x149));if(_0x2142cb){const _0x2e0da2=resolve(process[_0x4a08d4(0x14a)](),_0x248897);if(!existsSync(_0x2e0da2))throw CliErrors[_0x4a08d4(0x123)]('File\x20not\x20found:\x20'+_0x2e0da2);}},async 'dryRun'(_0x55cd10){const _0x599c65=a77_0x3b839a,_0x47d341=await prepareIssueReport(_0x55cd10);return{'method':_0x599c65(0x12f),'url':_0x599c65(0x13f)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x47d341[_0x599c65(0x12c)],'issue.description':_0x47d341[_0x599c65(0x139)]}},'description':[_0x599c65(0x147),_0x599c65(0x132)+_0x47d341['descriptionSource'],_0x47d341[_0x599c65(0x146)]?'descriptionFile:\x20'+_0x47d341[_0x599c65(0x146)]:null][_0x599c65(0x13c)](Boolean)['join']('\x0a')};},async 'execute'(_0x4f70fa){const _0x201b98=a77_0x3b839a,_0xc191e6=await prepareIssueReport(_0x4f70fa);try{await sendPlatformIssueCollectLog({'title':_0xc191e6[_0x201b98(0x12c)],'description':_0xc191e6[_0x201b98(0x139)]});}catch(_0x4cf21b){throw CliErrors[_0x201b98(0x126)](_0x201b98(0x13e)+(_0x4cf21b instanceof Error?_0x4cf21b[_0x201b98(0x12b)]:String(_0x4cf21b)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':_0x201b98(0x124),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title','issue.description'],'issue':{'title':_0xc191e6['title'],'descriptionLength':_0xc191e6[_0x201b98(0x139)][_0x201b98(0x14b)],'descriptionSource':_0xc191e6['descriptionSource'],..._0xc191e6['descriptionFilePath']?{'descriptionFile':_0xc191e6['descriptionFilePath']}:{}}}};}};async function prepareIssueReport(_0x158cfd){const _0x15f176=a77_0x3b839a,_0x81c040=_0x158cfd['str']('title')['trim'](),_0x3f4248=_0x158cfd['str']('description'),_0x40cffe=_0x158cfd[_0x15f176(0x137)](DESCRIPTION_FILE_FLAG)[_0x15f176(0x148)]();if(!_0x40cffe){const _0xc418c1=_0x3f4248;if(!_0xc418c1[_0x15f176(0x148)]())throw CliErrors[_0x15f176(0x123)](_0x15f176(0x142),_0x15f176(0x135));return{'title':_0x81c040,'description':_0xc418c1,'descriptionSource':_0x15f176(0x128)};}const _0x4cbe28=resolve(process[_0x15f176(0x14a)](),_0x40cffe),_0x43c426=await readFile(_0x4cbe28,_0x15f176(0x140));if(!_0x43c426[_0x15f176(0x148)]())throw CliErrors[_0x15f176(0x123)](_0x15f176(0x133)+_0x4cbe28,_0x15f176(0x122));return{'title':_0x81c040,'description':_0x43c426,'descriptionSource':_0x15f176(0x121),'descriptionFilePath':_0x4cbe28};}
@@ -1 +1 @@
1
- function a77_0x76e5(_0x42c6f5,_0x554b7e){_0x42c6f5=_0x42c6f5-0x103;const _0x4c4c57=a77_0x4c4c();let _0x76e550=_0x4c4c57[_0x42c6f5];return _0x76e550;}function a77_0x4c4c(){const _0x562244=['196329yxeNzB','en-US','stringify','command','1247982YOCrmY','*\x20Logs\x20cleared','*\x20Lovrabet\x20CLI\x20logs:\x0a','436571rkgPtq','\x20\x20\x20Time:\x20','read','*\x20No\x20logs\x20found','level','warn','View\x20command\x20history\x20logs','logs','keys','20MVmzYl','log','timestamp','clearLogs','duration','details','447092GqifoW','90rAZuFe','3588080ZWtSYR','forEach','write','\x20\x20\x20Duration:\x20','2KNDwRw','toLocaleString','4483128FuEwvN','success','error','18CtgLFm','26179890ApXpXc','show'];a77_0x4c4c=function(){return _0x562244;};return a77_0x4c4c();}const a77_0x27e125=a77_0x76e5;(function(_0x227ef9,_0x519cf6){const _0x50a5d2=a77_0x76e5,_0xadb05a=_0x227ef9();while(!![]){try{const _0x362e6d=-parseInt(_0x50a5d2(0x111))/0x1*(parseInt(_0x50a5d2(0x126))/0x2)+-parseInt(_0x50a5d2(0x10e))/0x3+-parseInt(_0x50a5d2(0x120))/0x4*(parseInt(_0x50a5d2(0x11a))/0x5)+-parseInt(_0x50a5d2(0x121))/0x6*(parseInt(_0x50a5d2(0x10a))/0x7)+parseInt(_0x50a5d2(0x104))/0x8+parseInt(_0x50a5d2(0x107))/0x9*(-parseInt(_0x50a5d2(0x122))/0xa)+parseInt(_0x50a5d2(0x108))/0xb;if(_0x362e6d===_0x519cf6)break;else _0xadb05a['push'](_0xadb05a['shift']());}catch(_0x27e0f1){_0xadb05a['push'](_0xadb05a['shift']());}}}(a77_0x4c4c,0x7aa83));import{logger}from'../../utils/logger.js';function printLogs(_0x571ba1){const _0x5e0ce8=a77_0x76e5;if(_0x571ba1['length']===0x0){console[_0x5e0ce8(0x11b)](_0x5e0ce8(0x114));return;}console[_0x5e0ce8(0x11b)](_0x5e0ce8(0x110)),_0x571ba1[_0x5e0ce8(0x123)]((_0x59fe5c,_0x3402db)=>{const _0x2b2ac9=_0x5e0ce8,_0x4cda52=new Date(_0x59fe5c[_0x2b2ac9(0x11c)])[_0x2b2ac9(0x103)](_0x2b2ac9(0x10b)),_0x3509bd=_0x59fe5c[_0x2b2ac9(0x115)]===_0x2b2ac9(0x105)?'√':_0x59fe5c[_0x2b2ac9(0x115)]===_0x2b2ac9(0x106)?'×':_0x59fe5c[_0x2b2ac9(0x115)]===_0x2b2ac9(0x116)?'!':'i';console['log'](_0x3402db+0x1+'.\x20'+_0x3509bd+'\x20['+_0x59fe5c[_0x2b2ac9(0x10d)]+']\x20'+_0x59fe5c['message']),console[_0x2b2ac9(0x11b)](_0x2b2ac9(0x112)+_0x4cda52),_0x59fe5c['duration']&&console['log'](_0x2b2ac9(0x125)+_0x59fe5c[_0x2b2ac9(0x11e)]+'ms'),_0x59fe5c[_0x2b2ac9(0x11f)]&&Object[_0x2b2ac9(0x119)](_0x59fe5c['details'])['length']>0x0&&console['log']('\x20\x20\x20Details:\x20'+JSON[_0x2b2ac9(0x10c)](_0x59fe5c[_0x2b2ac9(0x11f)],null,0x2)),console['log']('');});}export const logsDefinitions=[{'service':a77_0x27e125(0x118),'command':a77_0x27e125(0x109),'description':a77_0x27e125(0x117),'risk':a77_0x27e125(0x113),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x285709){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':'logs','command':'clear','description':'Clear\x20command\x20history\x20logs','risk':a77_0x27e125(0x124),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1afa58){const _0x570de7=a77_0x27e125;return logger[_0x570de7(0x11d)](),console['log'](_0x570de7(0x10f)),{'ok':!![]};}}];
1
+ const a78_0x7f1d08=a78_0x5286;function a78_0x4a9a(){const _0x488a24=['3072000pQALrS','1443510COIdsK','timestamp','View\x20command\x20history\x20logs','read','length','log','376372FBytrX','warn','level','toLocaleString','2bmVhvu','2102120CdMoMk','logs','128bkWCCC','Clear\x20command\x20history\x20logs','12739464eMAVcC','success','en-US','*\x20Logs\x20cleared','clearLogs','10297yIDgwk','stringify','\x20\x20\x20Time:\x20','keys','*\x20Lovrabet\x20CLI\x20logs:\x0a','1587045RyNrgz','details','*\x20No\x20logs\x20found'];a78_0x4a9a=function(){return _0x488a24;};return a78_0x4a9a();}function a78_0x5286(_0x512fd7,_0x23f57b){_0x512fd7=_0x512fd7-0x143;const _0x4a9a9c=a78_0x4a9a();let _0x52868e=_0x4a9a9c[_0x512fd7];return _0x52868e;}(function(_0x53b989,_0x760a93){const _0x810005=a78_0x5286,_0x510dad=_0x53b989();while(!![]){try{const _0xeb9d1e=-parseInt(_0x810005(0x158))/0x1*(-parseInt(_0x810005(0x154))/0x2)+-parseInt(_0x810005(0x14a))/0x3+-parseInt(_0x810005(0x159))/0x4+-parseInt(_0x810005(0x14d))/0x5+parseInt(_0x810005(0x14e))/0x6+parseInt(_0x810005(0x145))/0x7*(-parseInt(_0x810005(0x15b))/0x8)+parseInt(_0x810005(0x15d))/0x9;if(_0xeb9d1e===_0x760a93)break;else _0x510dad['push'](_0x510dad['shift']());}catch(_0x39dfdb){_0x510dad['push'](_0x510dad['shift']());}}}(a78_0x4a9a,0x53004));import{logger}from'../../utils/logger.js';function printLogs(_0x5ae7a4){const _0x3b5a1f=a78_0x5286;if(_0x5ae7a4['length']===0x0){console[_0x3b5a1f(0x153)](_0x3b5a1f(0x14c));return;}console['log'](_0x3b5a1f(0x149)),_0x5ae7a4['forEach']((_0x5eee3c,_0x481b5f)=>{const _0x283ede=_0x3b5a1f,_0x597b61=new Date(_0x5eee3c[_0x283ede(0x14f)])[_0x283ede(0x157)](_0x283ede(0x15f)),_0x1e5f91=_0x5eee3c[_0x283ede(0x156)]===_0x283ede(0x15e)?'√':_0x5eee3c[_0x283ede(0x156)]==='error'?'×':_0x5eee3c['level']===_0x283ede(0x155)?'!':'i';console[_0x283ede(0x153)](_0x481b5f+0x1+'.\x20'+_0x1e5f91+'\x20['+_0x5eee3c['command']+']\x20'+_0x5eee3c['message']),console[_0x283ede(0x153)](_0x283ede(0x147)+_0x597b61),_0x5eee3c['duration']&&console[_0x283ede(0x153)]('\x20\x20\x20Duration:\x20'+_0x5eee3c['duration']+'ms'),_0x5eee3c[_0x283ede(0x14b)]&&Object[_0x283ede(0x148)](_0x5eee3c[_0x283ede(0x14b)])[_0x283ede(0x152)]>0x0&&console['log']('\x20\x20\x20Details:\x20'+JSON[_0x283ede(0x146)](_0x5eee3c[_0x283ede(0x14b)],null,0x2)),console['log']('');});}export const logsDefinitions=[{'service':a78_0x7f1d08(0x15a),'command':'show','description':a78_0x7f1d08(0x150),'risk':a78_0x7f1d08(0x151),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x3c22fd){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':a78_0x7f1d08(0x15a),'command':'clear','description':a78_0x7f1d08(0x15c),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xf95260){const _0x3d7227=a78_0x7f1d08;return logger[_0x3d7227(0x144)](),console[_0x3d7227(0x153)](_0x3d7227(0x143)),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x2c8eac,_0x1418a1){const _0x1c89a5=a78_0x333d,_0x573316=_0x2c8eac();while(!![]){try{const _0x9ceb30=-parseInt(_0x1c89a5(0xe9))/0x1*(-parseInt(_0x1c89a5(0xe0))/0x2)+-parseInt(_0x1c89a5(0xe3))/0x3*(-parseInt(_0x1c89a5(0xe1))/0x4)+parseInt(_0x1c89a5(0xe8))/0x5*(parseInt(_0x1c89a5(0xe5))/0x6)+parseInt(_0x1c89a5(0xe6))/0x7*(parseInt(_0x1c89a5(0xec))/0x8)+parseInt(_0x1c89a5(0xea))/0x9*(-parseInt(_0x1c89a5(0xe4))/0xa)+-parseInt(_0x1c89a5(0xe7))/0xb*(parseInt(_0x1c89a5(0xe2))/0xc)+parseInt(_0x1c89a5(0xeb))/0xd;if(_0x9ceb30===_0x1418a1)break;else _0x573316['push'](_0x573316['shift']());}catch(_0x4f80e6){_0x573316['push'](_0x573316['shift']());}}}(a78_0x349e,0x3e111));function a78_0x333d(_0x32063e,_0x2477dd){_0x32063e=_0x32063e-0xe0;const _0x349e68=a78_0x349e();let _0x333de0=_0x349e68[_0x32063e];return _0x333de0;}function a78_0x349e(){const _0x2b413a=['13049zpmlAI','6354EdeAws','2811744cmUlMg','349656cOhEwR','4hDshUR','328JSkhLk','216cSZkEA','15459JATgPM','4670OhDmFW','1134582GYUonL','14haHWfA','218482erVgsq','5lNxBnl'];a78_0x349e=function(){return _0x2b413a;};return a78_0x349e();}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];
1
+ function a79_0x4d6f(){const _0x49c17e=['393136wjppiw','4hvxkod','1694391kZrgdI','17996724fziraE','98BOERmb','1931604RKyVhh','644322gXDlKm','3612505zmaPYr','448539FpLraY'];a79_0x4d6f=function(){return _0x49c17e;};return a79_0x4d6f();}(function(_0x256daa,_0x2b1e8e){const _0x916a4d=a79_0x3381,_0x5e60e5=_0x256daa();while(!![]){try{const _0x1248fa=parseInt(_0x916a4d(0x14a))/0x1+parseInt(_0x916a4d(0x148))/0x2+-parseInt(_0x916a4d(0x14d))/0x3*(parseInt(_0x916a4d(0x14c))/0x4)+-parseInt(_0x916a4d(0x149))/0x5+-parseInt(_0x916a4d(0x147))/0x6+parseInt(_0x916a4d(0x14f))/0x7*(-parseInt(_0x916a4d(0x14b))/0x8)+parseInt(_0x916a4d(0x14e))/0x9;if(_0x1248fa===_0x2b1e8e)break;else _0x5e60e5['push'](_0x5e60e5['shift']());}catch(_0x26c03c){_0x5e60e5['push'](_0x5e60e5['shift']());}}}(a79_0x4d6f,0x7381c));function a79_0x3381(_0x320b13,_0x2f135b){_0x320b13=_0x320b13-0x147;const _0x4d6f81=a79_0x4d6f();let _0x3381e9=_0x4d6f81[_0x320b13];return _0x3381e9;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];
@@ -1 +1 @@
1
- function a79_0x648a(_0x4fd1b8,_0x4e3d96){_0x4fd1b8=_0x4fd1b8-0x1cf;const _0x2b4d1f=a79_0x2b4d();let _0x648a56=_0x2b4d1f[_0x4fd1b8];return _0x648a56;}(function(_0x261d9f,_0x3f151a){const _0xa57847=a79_0x648a,_0x2f76af=_0x261d9f();while(!![]){try{const _0x2cde78=-parseInt(_0xa57847(0x1e4))/0x1*(parseInt(_0xa57847(0x1e3))/0x2)+-parseInt(_0xa57847(0x1d8))/0x3+parseInt(_0xa57847(0x1dc))/0x4*(parseInt(_0xa57847(0x1e2))/0x5)+parseInt(_0xa57847(0x1ee))/0x6*(-parseInt(_0xa57847(0x1d9))/0x7)+-parseInt(_0xa57847(0x1df))/0x8+-parseInt(_0xa57847(0x1e1))/0x9+parseInt(_0xa57847(0x1cf))/0xa*(parseInt(_0xa57847(0x1d0))/0xb);if(_0x2cde78===_0x3f151a)break;else _0x2f76af['push'](_0x2f76af['shift']());}catch(_0xb9c4bd){_0x2f76af['push'](_0x2f76af['shift']());}}}(a79_0x2b4d,0xdf1ab));function strWidth(_0x391a57){const _0xfa1086=a79_0x648a;let _0x329146=0x0;for(const _0xb611ca of _0x391a57){_0x329146+=/[\u4e00-\u9fa5]/[_0xfa1086(0x1ea)](_0xb611ca)?0x2:0x1;}return _0x329146;}function a79_0x2b4d(){const _0x4ef6d3=['\x20\x20\x20\x20CSS:\x20','Local','1847992ZdbVMo','Platform','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','4843520lAjeyi','repeat','11088117UoyRSI','5Qizjni','4xBOKfM','736732YUceXt','path','Menu\x20Name','label','length','showOnline','test','map','local','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','6GpYMRc','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','284360QsqryU','2574nOcAbO','online','(unchanged)','\x20\x20No\x20pages\x20to\x20sync.','max','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','join','push','5133783FFWDgK','8260063HpodsS'];a79_0x2b4d=function(){return _0x4ef6d3;};return a79_0x2b4d();}function padRight(_0x2e1078,_0xdaa96a){const _0x41bec4=a79_0x648a,_0x44f601=strWidth(_0x2e1078);return _0x2e1078+'\x20'[_0x41bec4(0x1e0)](Math['max'](0x0,_0xdaa96a-_0x44f601));}export function renderCompareTable(_0xe3527b,_0x3abe4c={}){const _0x5da151=a79_0x648a;if(_0xe3527b[_0x5da151(0x1e8)]===0x0)return'';const _0x42089c=_0x3abe4c[_0x5da151(0x1e9)]??!![],_0x28d13c=Math[_0x5da151(0x1d4)](0x1e,..._0xe3527b[_0x5da151(0x1eb)](_0x2c6d3d=>strWidth(_0x2c6d3d['label']))),_0x4870d4=0x4,_0xf649e0=[],_0x2e6c39='\x20\x20'+padRight(_0x5da151(0x1e6),_0x28d13c),_0x1f9f35=padRight(_0x5da151(0x1db),_0x4870d4),_0x43f6d2=_0x42089c?'\x20\x20'+padRight(_0x5da151(0x1dd),_0x4870d4):'';_0xf649e0[_0x5da151(0x1d7)](_0x2e6c39+'\x20\x20'+_0x1f9f35+(_0x42089c?_0x43f6d2:'')),_0xf649e0[_0x5da151(0x1d7)]('\x20\x20'+'─'['repeat'](_0x28d13c)+'\x20\x20'+'─'[_0x5da151(0x1e0)](_0x4870d4)+(_0x42089c?'\x20\x20'+'─'[_0x5da151(0x1e0)](_0x4870d4):''));for(const _0x36772b of _0xe3527b){const _0x23177d=padRight(_0x36772b[_0x5da151(0x1e7)],_0x28d13c),_0x1baf12=_0x36772b[_0x5da151(0x1ec)]?'✓':'✗',_0xf98a2=padRight(_0x1baf12,_0x4870d4);let _0x4c29f0='\x20\x20'+_0x23177d+'\x20\x20'+_0xf98a2;if(_0x42089c){const _0x3afe62=_0x36772b[_0x5da151(0x1d1)]?'✓':'✗';_0x4c29f0+='\x20\x20'+padRight(_0x3afe62,_0x4870d4);}_0xf649e0[_0x5da151(0x1d7)](_0x4c29f0);}return _0xf649e0['join']('\x0a');}export function renderSyncSummary(_0x3dbe35,_0x4186d9){const _0x335d84=a79_0x648a;if(_0x3dbe35[_0x335d84(0x1e8)]===0x0)return _0x4186d9?_0x335d84(0x1ef):_0x335d84(0x1d3);const _0x703b56=['\x20\x20'+_0x3dbe35[_0x335d84(0x1e8)]+_0x335d84(0x1d5)];for(const _0x4101c2 of _0x3dbe35){_0x703b56[_0x335d84(0x1d7)]('\x20\x20\x20\x20•\x20'+_0x4101c2['label']+'\x20('+_0x4101c2[_0x335d84(0x1e5)]+')');}return _0x703b56[_0x335d84(0x1d6)]('\x0a');}export function renderUpdateSummary(_0x133aac,_0x5d964f){const _0x2386d0=a79_0x648a;if(_0x133aac[_0x2386d0(0x1e8)]===0x0)return _0x2386d0(0x1de);const _0x348592=['\x20\x20'+_0x133aac[_0x2386d0(0x1e8)]+_0x2386d0(0x1ed),'\x20\x20\x20\x20JS:\x20\x20'+(_0x5d964f[0x0]??_0x2386d0(0x1d2)),_0x2386d0(0x1da)+(_0x5d964f[0x1]??_0x2386d0(0x1d2)),'','\x20\x20Affected\x20menus:\x20'+_0x133aac[_0x2386d0(0x1d6)](',\x20')];return _0x348592[_0x2386d0(0x1d6)]('\x0a');}
1
+ (function(_0x1bdd75,_0x4081e6){const _0x1171ac=a80_0x5a8d,_0x1dad47=_0x1bdd75();while(!![]){try{const _0x25ff6f=parseInt(_0x1171ac(0x1e0))/0x1+-parseInt(_0x1171ac(0x1e2))/0x2*(-parseInt(_0x1171ac(0x1da))/0x3)+-parseInt(_0x1171ac(0x1ea))/0x4*(-parseInt(_0x1171ac(0x1cf))/0x5)+-parseInt(_0x1171ac(0x1e4))/0x6*(parseInt(_0x1171ac(0x1e5))/0x7)+-parseInt(_0x1171ac(0x1e8))/0x8+parseInt(_0x1171ac(0x1e3))/0x9*(parseInt(_0x1171ac(0x1ce))/0xa)+-parseInt(_0x1171ac(0x1e1))/0xb;if(_0x25ff6f===_0x4081e6)break;else _0x1dad47['push'](_0x1dad47['shift']());}catch(_0x340734){_0x1dad47['push'](_0x1dad47['shift']());}}}(a80_0x196d,0x1f30e));function strWidth(_0x42dcd1){const _0x345461=a80_0x5a8d;let _0x1a5f66=0x0;for(const _0x2ff2a4 of _0x42dcd1){_0x1a5f66+=/[\u4e00-\u9fa5]/[_0x345461(0x1e9)](_0x2ff2a4)?0x2:0x1;}return _0x1a5f66;}function padRight(_0x3b7381,_0x170b15){const _0x15b84b=a80_0x5a8d,_0x1bb6b7=strWidth(_0x3b7381);return _0x3b7381+'\x20'[_0x15b84b(0x1d2)](Math[_0x15b84b(0x1d7)](0x0,_0x170b15-_0x1bb6b7));}function a80_0x5a8d(_0x53e3eb,_0x4ab309){_0x53e3eb=_0x53e3eb-0x1cc;const _0x196d9a=a80_0x196d();let _0x5a8d5f=_0x196d9a[_0x53e3eb];return _0x5a8d5f;}export function renderCompareTable(_0x5226a1,_0x56eee0={}){const _0x275955=a80_0x5a8d;if(_0x5226a1['length']===0x0)return'';const _0x1380d0=_0x56eee0['showOnline']??!![],_0x69cb5=Math['max'](0x1e,..._0x5226a1[_0x275955(0x1dc)](_0x2aece9=>strWidth(_0x2aece9[_0x275955(0x1df)]))),_0x27644b=0x4,_0x33818b=[],_0x215a25='\x20\x20'+padRight(_0x275955(0x1d8),_0x69cb5),_0xa54ca1=padRight(_0x275955(0x1d1),_0x27644b),_0x5d45ea=_0x1380d0?'\x20\x20'+padRight(_0x275955(0x1d3),_0x27644b):'';_0x33818b[_0x275955(0x1d4)](_0x215a25+'\x20\x20'+_0xa54ca1+(_0x1380d0?_0x5d45ea:'')),_0x33818b[_0x275955(0x1d4)]('\x20\x20'+'─'[_0x275955(0x1d2)](_0x69cb5)+'\x20\x20'+'─'[_0x275955(0x1d2)](_0x27644b)+(_0x1380d0?'\x20\x20'+'─'[_0x275955(0x1d2)](_0x27644b):''));for(const _0x4e86a0 of _0x5226a1){const _0x491ed2=padRight(_0x4e86a0['label'],_0x69cb5),_0x48ba02=_0x4e86a0[_0x275955(0x1cd)]?'✓':'✗',_0x2b8ca7=padRight(_0x48ba02,_0x27644b);let _0x44efba='\x20\x20'+_0x491ed2+'\x20\x20'+_0x2b8ca7;if(_0x1380d0){const _0x227d24=_0x4e86a0['online']?'✓':'✗';_0x44efba+='\x20\x20'+padRight(_0x227d24,_0x27644b);}_0x33818b[_0x275955(0x1d4)](_0x44efba);}return _0x33818b[_0x275955(0x1d6)]('\x0a');}export function renderSyncSummary(_0xcab8e6,_0x289658){const _0x5ddda0=a80_0x5a8d;if(_0xcab8e6[_0x5ddda0(0x1e6)]===0x0)return _0x289658?_0x5ddda0(0x1e7):_0x5ddda0(0x1cc);const _0x4c34b9=['\x20\x20'+_0xcab8e6['length']+_0x5ddda0(0x1d9)];for(const _0x4e2c2a of _0xcab8e6){_0x4c34b9['push'](_0x5ddda0(0x1d5)+_0x4e2c2a[_0x5ddda0(0x1df)]+'\x20('+_0x4e2c2a[_0x5ddda0(0x1de)]+')');}return _0x4c34b9[_0x5ddda0(0x1d6)]('\x0a');}export function renderUpdateSummary(_0xe30790,_0x1853b0){const _0x5c51cf=a80_0x5a8d;if(_0xe30790[_0x5c51cf(0x1e6)]===0x0)return'\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.';const _0x43c777=['\x20\x20'+_0xe30790['length']+_0x5c51cf(0x1d0),'\x20\x20\x20\x20JS:\x20\x20'+(_0x1853b0[0x0]??'(unchanged)'),_0x5c51cf(0x1db)+(_0x1853b0[0x1]??'(unchanged)'),'',_0x5c51cf(0x1dd)+_0xe30790[_0x5c51cf(0x1d6)](',\x20')];return _0x43c777[_0x5c51cf(0x1d6)]('\x0a');}function a80_0x196d(){const _0x1d8792=['50iVAXnD','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','Local','repeat','Platform','push','\x20\x20\x20\x20•\x20','join','max','Menu\x20Name','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','12KbzNky','\x20\x20\x20\x20CSS:\x20','map','\x20\x20Affected\x20menus:\x20','path','label','113658PcJjcO','1745513oNwKii','126634glPsfn','40437oeBhhn','78cwOuYv','110068fePwok','length','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','395464xAKxEg','test','51372FsJzHF','\x20\x20No\x20pages\x20to\x20sync.','local','100jKQLjJ'];a80_0x196d=function(){return _0x1d8792;};return a80_0x196d();}
@@ -1 +1 @@
1
- (function(_0x1feb02,_0x28dbe3){var _0x57f502=a80_0x1895,_0x107d5c=_0x1feb02();while(!![]){try{var _0x5d5bad=-parseInt(_0x57f502(0x1c9))/0x1+-parseInt(_0x57f502(0x1c6))/0x2*(-parseInt(_0x57f502(0x1c3))/0x3)+-parseInt(_0x57f502(0x1cc))/0x4*(-parseInt(_0x57f502(0x1c8))/0x5)+parseInt(_0x57f502(0x1c4))/0x6*(parseInt(_0x57f502(0x1cb))/0x7)+parseInt(_0x57f502(0x1c5))/0x8*(-parseInt(_0x57f502(0x1c7))/0x9)+-parseInt(_0x57f502(0x1cd))/0xa+parseInt(_0x57f502(0x1ca))/0xb*(parseInt(_0x57f502(0x1c2))/0xc);if(_0x5d5bad===_0x28dbe3)break;else _0x107d5c['push'](_0x107d5c['shift']());}catch(_0x28e74f){_0x107d5c['push'](_0x107d5c['shift']());}}}(a80_0x48d0,0x553f5));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 a80_0x48d0(){var _0x26096e=['8968iUlbRm','5803590AqvJJz','456mZCyZQ','19353JqRoUT','6RewYYu','48eFFTPM','214lOAakr','627048Avwttf','235XKiqnj','371785mWtpOq','196702dvMsIJ','1709414OGAyGG'];a80_0x48d0=function(){return _0x26096e;};return a80_0x48d0();}export*from'../../../commands/menu/shared/service.js';function a80_0x1895(_0x20a03c,_0x26e147){_0x20a03c=_0x20a03c-0x1c2;var _0x48d057=a80_0x48d0();var _0x189594=_0x48d057[_0x20a03c];return _0x189594;}export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
1
+ function a81_0x5b81(_0x2d74b0,_0x4f5033){_0x2d74b0=_0x2d74b0-0x6f;var _0x46d731=a81_0x46d7();var _0x5b819e=_0x46d731[_0x2d74b0];return _0x5b819e;}(function(_0x6acf33,_0x3021fb){var _0x17495a=a81_0x5b81,_0x5e7705=_0x6acf33();while(!![]){try{var _0x6a493e=parseInt(_0x17495a(0x74))/0x1+parseInt(_0x17495a(0x7a))/0x2*(parseInt(_0x17495a(0x6f))/0x3)+-parseInt(_0x17495a(0x70))/0x4*(parseInt(_0x17495a(0x75))/0x5)+-parseInt(_0x17495a(0x79))/0x6*(-parseInt(_0x17495a(0x71))/0x7)+parseInt(_0x17495a(0x78))/0x8*(parseInt(_0x17495a(0x77))/0x9)+-parseInt(_0x17495a(0x73))/0xa*(parseInt(_0x17495a(0x72))/0xb)+-parseInt(_0x17495a(0x76))/0xc;if(_0x6a493e===_0x3021fb)break;else _0x5e7705['push'](_0x5e7705['shift']());}catch(_0x536cc9){_0x5e7705['push'](_0x5e7705['shift']());}}}(a81_0x46d7,0x7c520));export*from'../../../commands/menu/shared/types.js';function a81_0x46d7(){var _0x48e4d7=['33028LNyQom','177LhYGLO','4fFuBeE','7jNmfgB','6599527uEhtAw','10JROyuF','653025lIXQFl','3181625iDubiw','13222272KlVtoi','9BEYEZj','7923352YtHLGv','1377504LQPXgt'];a81_0x46d7=function(){return _0x48e4d7;};return a81_0x46d7();}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';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
@@ -1 +1 @@
1
- (function(_0xcccb96,_0x70a6d6){const _0x5f43c1=a81_0x20e0,_0x25f9cc=_0xcccb96();while(!![]){try{const _0x2b73ac=-parseInt(_0x5f43c1(0x15e))/0x1+parseInt(_0x5f43c1(0x14f))/0x2+-parseInt(_0x5f43c1(0x138))/0x3*(-parseInt(_0x5f43c1(0x15f))/0x4)+-parseInt(_0x5f43c1(0x15b))/0x5+parseInt(_0x5f43c1(0x149))/0x6*(parseInt(_0x5f43c1(0x150))/0x7)+-parseInt(_0x5f43c1(0x14e))/0x8+-parseInt(_0x5f43c1(0x13a))/0x9;if(_0x2b73ac===_0x70a6d6)break;else _0x25f9cc['push'](_0x25f9cc['shift']());}catch(_0x32301b){_0x25f9cc['push'](_0x25f9cc['shift']());}}}(a81_0x521d,0x7afbb));import a81_0x4f3355 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a81_0x3a2df9 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0xf4682e){const _0x2b2622=a81_0x20e0;return _0xf4682e[_0x2b2622(0x140)](_0x5b8127=>{const _0x1d7e95=_0x2b2622;if(_0x5b8127?.['name']===_0x1d7e95(0x13f))throw CliErrors[_0x1d7e95(0x159)]('Cancelled.');throw _0x5b8127;});}export function startSpinner(_0x3d24e3){const _0x18721b=a81_0x20e0;return a81_0x3a2df9({'text':_0x3d24e3,'color':_0x18721b(0x152)})[_0x18721b(0x157)]();}export function stopSpinner(_0x19110d,_0x4f3b5a,_0x5cbb01){const _0x8fd88f=a81_0x20e0;_0x5cbb01?_0x19110d[_0x8fd88f(0x133)](_0x4f3b5a):_0x19110d[_0x8fd88f(0x13d)](_0x4f3b5a);}export async function askConfirm(_0x38cd2b){return onCancel(confirm({'message':_0x38cd2b,'theme':{'prefix':''}}));}function a81_0x521d(){const _0x50a8ab=['includes','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','\x20\x20CSS\x20URL:','CSS\x20URL\x20checked','start','No\x20local\x20pages\x20found.','cancelled','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','2377225CsBijZ','Cancelled.','isTTY','249264jdYZbq','8ZmUJqQ','\x20\x20JS\x20URL:','succeed','[already\x20on\x20platform]','has','\x20\x20Checking\x20JS\x20URL\x20reachability...','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','446103pqACbr','gray','938871IvZGRt','map','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','fail','[new]','ExitPromptError','catch','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','green','test','CSS\x20URL\x20check\x20failed','label','\x20\x20Checking\x20CSS\x20URL\x20reachability...','trim','red','24qbouhM','No\x20menus\x20selected.','stdin','filter','error','1161832NfCHtk','1108396icYQXV','1096193LVZAkX','path','cyan'];a81_0x521d=function(){return _0x50a8ab;};return a81_0x521d();}export async function askJsUrl(_0x53eca6){const _0x2ce8d9=a81_0x20e0;while(!![]){const _0x333496=await onCancel(input({'message':_0x2ce8d9(0x132),'default':_0x53eca6,'theme':{'prefix':''}}));if(_0x333496['trim']()==='')throw CliErrors[_0x2ce8d9(0x159)](_0x2ce8d9(0x15c));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x2ce8d9(0x143)](_0x333496['trim']())){console[_0x2ce8d9(0x14d)](a81_0x4f3355[_0x2ce8d9(0x148)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0x4e55a8=startSpinner(_0x2ce8d9(0x136));try{const _0x272a0d=await isUrlReachable(_0x333496['trim']());stopSpinner(_0x4e55a8,'JS\x20URL\x20checked',_0x272a0d);if(!_0x272a0d){console[_0x2ce8d9(0x14d)](a81_0x4f3355[_0x2ce8d9(0x148)](_0x2ce8d9(0x154)));continue;}return _0x333496[_0x2ce8d9(0x147)]();}catch(_0x5c1751){stopSpinner(_0x4e55a8,'JS\x20URL\x20check\x20failed',![]);throw _0x5c1751;}}}function a81_0x20e0(_0x5c3e89,_0x2051e3){_0x5c3e89=_0x5c3e89-0x132;const _0x521dd8=a81_0x521d();let _0x20e09c=_0x521dd8[_0x5c3e89];return _0x20e09c;}export async function askCssUrl(_0x2fdbf9){const _0x36c870=a81_0x20e0;while(!![]){const _0x3ce3ec=await onCancel(input({'message':_0x36c870(0x155),'default':_0x2fdbf9,'theme':{'prefix':''}}));if(_0x3ce3ec[_0x36c870(0x147)]()==='')throw CliErrors['cancelled'](_0x36c870(0x15c));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x36c870(0x143)](_0x3ce3ec[_0x36c870(0x147)]())){console[_0x36c870(0x14d)](a81_0x4f3355[_0x36c870(0x148)](_0x36c870(0x15a)));continue;}const _0x215798=startSpinner(_0x36c870(0x146));try{const _0x3d4953=await isUrlReachable(_0x3ce3ec[_0x36c870(0x147)]());stopSpinner(_0x215798,_0x36c870(0x156),_0x3d4953);if(!_0x3d4953){console[_0x36c870(0x14d)](a81_0x4f3355['red'](_0x36c870(0x13c)));continue;}return _0x3ce3ec['trim']();}catch(_0x1a9a37){stopSpinner(_0x215798,_0x36c870(0x144),![]);throw _0x1a9a37;}}}export async function selectPages(_0x3b6b84,_0x18a92d,_0x595247){const _0x114ee6=a81_0x20e0,_0x9a729b=_0x3b6b84[_0x114ee6(0x13b)](_0x5b9531=>({'name':_0x5b9531[_0x114ee6(0x145)]+'\x20\x20'+(_0x18a92d['has'](_0x5b9531[_0x114ee6(0x151)])?a81_0x4f3355[_0x114ee6(0x139)](_0x114ee6(0x134)):a81_0x4f3355[_0x114ee6(0x142)](_0x114ee6(0x13e))),'value':_0x5b9531[_0x114ee6(0x145)],'checked':_0x595247?_0x595247['includes'](_0x5b9531[_0x114ee6(0x145)]):!_0x18a92d[_0x114ee6(0x135)](_0x5b9531['path'])}));if(_0x9a729b['length']===0x0)throw new Error(_0x114ee6(0x158));const _0x447366=await onCancel(checkbox({'message':'\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','choices':_0x9a729b,'loop':![],'theme':{'prefix':''}}));if(_0x447366['length']===0x0)throw new Error(_0x114ee6(0x14a));return _0x3b6b84[_0x114ee6(0x14c)](_0x25105d=>_0x447366[_0x114ee6(0x153)](_0x25105d[_0x114ee6(0x145)]));}export function isInteractive(){const _0xe0d398=a81_0x20e0;return process[_0xe0d398(0x14b)][_0xe0d398(0x15d)]===!![];}export function requireInteractive(){const _0x202273=a81_0x20e0;if(!isInteractive())throw new Error(_0x202273(0x137)+_0x202273(0x141));}
1
+ (function(_0x16b2c1,_0x3c9d7b){const _0xd0019=a82_0x44ac,_0x121993=_0x16b2c1();while(!![]){try{const _0xfabd86=parseInt(_0xd0019(0x118))/0x1*(-parseInt(_0xd0019(0x135))/0x2)+-parseInt(_0xd0019(0x124))/0x3*(-parseInt(_0xd0019(0x13c))/0x4)+-parseInt(_0xd0019(0x125))/0x5*(-parseInt(_0xd0019(0x123))/0x6)+-parseInt(_0xd0019(0x127))/0x7+parseInt(_0xd0019(0x142))/0x8*(parseInt(_0xd0019(0x12b))/0x9)+-parseInt(_0xd0019(0x11f))/0xa*(parseInt(_0xd0019(0x11b))/0xb)+-parseInt(_0xd0019(0x119))/0xc*(-parseInt(_0xd0019(0x139))/0xd);if(_0xfabd86===_0x3c9d7b)break;else _0x121993['push'](_0x121993['shift']());}catch(_0x5926f2){_0x121993['push'](_0x121993['shift']());}}}(a82_0x32a3,0x44fb1));import a82_0x1a1c17 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a82_0x5991bd from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x4c2278){const _0x15898f=a82_0x44ac;return _0x4c2278[_0x15898f(0x137)](_0x4f8ada=>{const _0x2652ee=_0x15898f;if(_0x4f8ada?.[_0x2652ee(0x11c)]===_0x2652ee(0x115))throw CliErrors[_0x2652ee(0x129)](_0x2652ee(0x13a));throw _0x4f8ada;});}export function startSpinner(_0x5bd5e6){const _0x3f9ecf=a82_0x44ac;return a82_0x5991bd({'text':_0x5bd5e6,'color':_0x3f9ecf(0x132)})['start']();}function a82_0x32a3(){const _0x53af09=['name','filter','\x20\x20JS\x20URL:','20aqcjRd','label','green','includes','6HHwORQ','6FiTfMY','2008685AzluPl','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','938826kFVfIK','length','cancelled','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','1995390HXfErg','gray','trim','JS\x20URL\x20check\x20failed','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','test','path','cyan','[already\x20on\x20platform]','fail','6rbNHfA','JS\x20URL\x20checked','catch','CSS\x20URL\x20check\x20failed','1898GVIyHH','Cancelled.','CSS\x20URL\x20checked','242316ePJkka','\x20\x20CSS\x20URL:','isTTY','has','error','No\x20menus\x20selected.','8MCglBW','ExitPromptError','red','No\x20local\x20pages\x20found.','137266QkgfmD','39444RKGdOI','[new]','2178253vFvkGw'];a82_0x32a3=function(){return _0x53af09;};return a82_0x32a3();}export function stopSpinner(_0x463199,_0x5d2634,_0x443998){const _0x1ee9bd=a82_0x44ac;_0x443998?_0x463199['succeed'](_0x5d2634):_0x463199[_0x1ee9bd(0x134)](_0x5d2634);}function a82_0x44ac(_0x3448bf,_0x356070){_0x3448bf=_0x3448bf-0x115;const _0x32a334=a82_0x32a3();let _0x44ac36=_0x32a334[_0x3448bf];return _0x44ac36;}export async function askConfirm(_0x129fff){return onCancel(confirm({'message':_0x129fff,'theme':{'prefix':''}}));}export async function askJsUrl(_0x579120){const _0x30c4d4=a82_0x44ac;while(!![]){const _0x4793ae=await onCancel(input({'message':_0x30c4d4(0x11e),'default':_0x579120,'theme':{'prefix':''}}));if(_0x4793ae[_0x30c4d4(0x12d)]()==='')throw CliErrors[_0x30c4d4(0x129)](_0x30c4d4(0x13a));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x30c4d4(0x130)](_0x4793ae['trim']())){console['error'](a82_0x1a1c17[_0x30c4d4(0x116)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0x547cc2=startSpinner('\x20\x20Checking\x20JS\x20URL\x20reachability...');try{const _0x4c4168=await isUrlReachable(_0x4793ae[_0x30c4d4(0x12d)]());stopSpinner(_0x547cc2,_0x30c4d4(0x136),_0x4c4168);if(!_0x4c4168){console[_0x30c4d4(0x140)](a82_0x1a1c17[_0x30c4d4(0x116)](_0x30c4d4(0x12a)));continue;}return _0x4793ae[_0x30c4d4(0x12d)]();}catch(_0x48faeb){stopSpinner(_0x547cc2,_0x30c4d4(0x12e),![]);throw _0x48faeb;}}}export async function askCssUrl(_0x4971b6){const _0x21aa83=a82_0x44ac;while(!![]){const _0x3d5c7f=await onCancel(input({'message':_0x21aa83(0x13d),'default':_0x4971b6,'theme':{'prefix':''}}));if(_0x3d5c7f[_0x21aa83(0x12d)]()==='')throw CliErrors[_0x21aa83(0x129)](_0x21aa83(0x13a));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x21aa83(0x130)](_0x3d5c7f[_0x21aa83(0x12d)]())){console[_0x21aa83(0x140)](a82_0x1a1c17[_0x21aa83(0x116)]('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0xb69f1f=startSpinner('\x20\x20Checking\x20CSS\x20URL\x20reachability...');try{const _0x1df463=await isUrlReachable(_0x3d5c7f[_0x21aa83(0x12d)]());stopSpinner(_0xb69f1f,_0x21aa83(0x13b),_0x1df463);if(!_0x1df463){console[_0x21aa83(0x140)](a82_0x1a1c17[_0x21aa83(0x116)](_0x21aa83(0x126)));continue;}return _0x3d5c7f[_0x21aa83(0x12d)]();}catch(_0x3a9bd9){stopSpinner(_0xb69f1f,_0x21aa83(0x138),![]);throw _0x3a9bd9;}}}export async function selectPages(_0x3016b4,_0x450fdd,_0x1dfb6a){const _0x5cc96c=a82_0x44ac,_0x413ad5=_0x3016b4['map'](_0x5c5e88=>({'name':_0x5c5e88[_0x5cc96c(0x120)]+'\x20\x20'+(_0x450fdd[_0x5cc96c(0x13f)](_0x5c5e88[_0x5cc96c(0x131)])?a82_0x1a1c17[_0x5cc96c(0x12c)](_0x5cc96c(0x133)):a82_0x1a1c17[_0x5cc96c(0x121)](_0x5cc96c(0x11a))),'value':_0x5c5e88['label'],'checked':_0x1dfb6a?_0x1dfb6a[_0x5cc96c(0x122)](_0x5c5e88[_0x5cc96c(0x120)]):!_0x450fdd[_0x5cc96c(0x13f)](_0x5c5e88[_0x5cc96c(0x131)])}));if(_0x413ad5[_0x5cc96c(0x128)]===0x0)throw new Error(_0x5cc96c(0x117));const _0x11924c=await onCancel(checkbox({'message':'\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','choices':_0x413ad5,'loop':![],'theme':{'prefix':''}}));if(_0x11924c[_0x5cc96c(0x128)]===0x0)throw new Error(_0x5cc96c(0x141));return _0x3016b4[_0x5cc96c(0x11d)](_0x45527c=>_0x11924c[_0x5cc96c(0x122)](_0x45527c[_0x5cc96c(0x120)]));}export function isInteractive(){const _0x13edf6=a82_0x44ac;return process['stdin'][_0x13edf6(0x13e)]===!![];}export function requireInteractive(){const _0x25f6bf=a82_0x44ac;if(!isInteractive())throw new Error(_0x25f6bf(0x12f)+'Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.');}
@@ -1 +1 @@
1
- const a82_0x476366=a82_0x42b8;function a82_0x8dad(){const _0x46f277=['2444109zWBANr','.tsx','split','slice','356876TUtWRx','437607iGVcst','cwd','index.tsx','2638344pZGjcF','5gCjTlz','2870128CWawjJ','push','join','endsWith','src/pages','match','filter','440uSYCXe','path','utf-8','isDirectory','1708668eCQPNz','replaceAll','9779YrxExq','concat','2958YSVBlK'];a82_0x8dad=function(){return _0x46f277;};return a82_0x8dad();}(function(_0x12c839,_0x3c29ec){const _0x57950a=a82_0x42b8,_0x893228=_0x12c839();while(!![]){try{const _0x5ce250=parseInt(_0x57950a(0x115))/0x1+-parseInt(_0x57950a(0x10c))/0x2+-parseInt(_0x57950a(0x111))/0x3+parseInt(_0x57950a(0x101))/0x4*(parseInt(_0x57950a(0x100))/0x5)+-parseInt(_0x57950a(0x110))/0x6*(parseInt(_0x57950a(0x10e))/0x7)+-parseInt(_0x57950a(0xff))/0x8+parseInt(_0x57950a(0xfc))/0x9*(parseInt(_0x57950a(0x108))/0xa);if(_0x5ce250===_0x3c29ec)break;else _0x893228['push'](_0x893228['shift']());}catch(_0x59c0e3){_0x893228['push'](_0x893228['shift']());}}}(a82_0x8dad,0x807bd));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a82_0x476366(0xfd)](),a82_0x476366(0x105));function a82_0x42b8(_0x5bd5af,_0x126029){_0x5bd5af=_0x5bd5af-0xfc;const _0x8dadf9=a82_0x8dad();let _0x42b883=_0x8dadf9[_0x5bd5af];return _0x42b883;}export function extractTitleFromComment(_0x125372){const _0x554af7=a82_0x476366;try{const _0x134cc5=readFileSync(_0x125372,_0x554af7(0x10a)),_0xfb1ef5=_0x134cc5['match'](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0xfb1ef5&&_0xfb1ef5[0x1]){const _0x179303=_0xfb1ef5[0x1],_0x2c5fa1=_0x179303[_0x554af7(0x106)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x2c5fa1&&_0x2c5fa1[0x1])return _0x2c5fa1[0x1]['trim']();}let _0x3a6057=null;const _0x46c82d=_0x134cc5['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x46c82d&&_0x46c82d[0x1]&&(_0x3a6057=_0x46c82d[0x1]);if(!_0x3a6057){const _0x46c94a=_0x134cc5[_0x554af7(0x106)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x46c94a&&_0x46c94a[0x1]&&(_0x3a6057=_0x46c94a[0x1]);}if(_0x3a6057){const _0x3e2f73=new RegExp('\x5cb'+_0x3a6057+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x5ea18c=_0x134cc5[_0x554af7(0x106)](_0x3e2f73);if(_0x5ea18c&&_0x5ea18c[0x1])return _0x5ea18c[0x1];return _0x3a6057;}return null;}catch(_0x1a1696){return null;}}export function getLocalPages(_0x167c1f=pagesDir,_0x2c1397=pagesDir){const _0x21060c=a82_0x476366;let _0x5d1e2c=[];const _0x207c3d=readdirSync(_0x167c1f);return _0x207c3d['forEach'](_0x323651=>{const _0x1a07e6=a82_0x42b8,_0x1b0aed=join(_0x167c1f,_0x323651),_0x1faa31=statSync(_0x1b0aed);if(_0x1faa31&&_0x1faa31[_0x1a07e6(0x10b)]())_0x5d1e2c=_0x5d1e2c[_0x1a07e6(0x10f)](getLocalPages(_0x1b0aed,_0x2c1397));else{if(_0x323651[_0x1a07e6(0x104)](_0x1a07e6(0x112))){let _0xdb35d6=relative(_0x2c1397,_0x1b0aed);_0xdb35d6['endsWith'](_0x1a07e6(0xfe))?_0xdb35d6=_0xdb35d6['replace'](/index\.tsx$/,''):_0xdb35d6=_0xdb35d6['replace'](/\.tsx$/,'');_0xdb35d6['endsWith'](sep)&&(_0xdb35d6=_0xdb35d6[_0x1a07e6(0x114)](0x0,-0x1));const _0x6f70f2=_0xdb35d6[_0x1a07e6(0x113)](sep)[_0x1a07e6(0x103)]('/'),_0x3d252f=extractTitleFromComment(_0x1b0aed),_0x3b0572=_0x3d252f||_0x6f70f2;_0x5d1e2c[_0x1a07e6(0x102)]({'path':_0x6f70f2[_0x1a07e6(0x10d)]('$',':'),'label':_0x3b0572});}}}),_0x5d1e2c[_0x21060c(0x107)](_0x554887=>_0x554887[_0x21060c(0x109)]!=='');}
1
+ const a83_0x35f52e=a83_0x7a3b;(function(_0x3090ec,_0x5cef1a){const _0x1b6ec7=a83_0x7a3b,_0x494aa7=_0x3090ec();while(!![]){try{const _0x4f829d=-parseInt(_0x1b6ec7(0x1be))/0x1*(-parseInt(_0x1b6ec7(0x1bb))/0x2)+parseInt(_0x1b6ec7(0x1c9))/0x3*(-parseInt(_0x1b6ec7(0x1b9))/0x4)+parseInt(_0x1b6ec7(0x1af))/0x5*(parseInt(_0x1b6ec7(0x1c0))/0x6)+-parseInt(_0x1b6ec7(0x1bc))/0x7*(-parseInt(_0x1b6ec7(0x1c3))/0x8)+-parseInt(_0x1b6ec7(0x1ba))/0x9+parseInt(_0x1b6ec7(0x1bd))/0xa*(parseInt(_0x1b6ec7(0x1b3))/0xb)+-parseInt(_0x1b6ec7(0x1c1))/0xc*(parseInt(_0x1b6ec7(0x1b2))/0xd);if(_0x4f829d===_0x5cef1a)break;else _0x494aa7['push'](_0x494aa7['shift']());}catch(_0x4b385a){_0x494aa7['push'](_0x494aa7['shift']());}}}(a83_0x2cb7,0xe60f8));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';function a83_0x7a3b(_0x582a47,_0x36ecb7){_0x582a47=_0x582a47-0x1af;const _0x2cb77b=a83_0x2cb7();let _0x7a3bc6=_0x2cb77b[_0x582a47];return _0x7a3bc6;}const pagesDir=resolve(process[a83_0x35f52e(0x1ca)](),a83_0x35f52e(0x1b5));function a83_0x2cb7(){const _0x3b8a54=['32252MLbBdA','isDirectory','src/pages','forEach','utf-8','index.tsx','1666812qAfIrb','13158090SWuZxl','176444opUmOY','2092027WgnDlf','2220KqBDOM','4IinnLt','join','4523526VWUOWU','90732zuBvNT','path','40sHrJqM','push','replaceAll','split','match','endsWith','3aRBDfu','cwd','.tsx','concat','slice','5upSAvp','trim','replace','741jyaOPA'];a83_0x2cb7=function(){return _0x3b8a54;};return a83_0x2cb7();}export function extractTitleFromComment(_0x5e4c9f){const _0x24e873=a83_0x35f52e;try{const _0x3ad7db=readFileSync(_0x5e4c9f,_0x24e873(0x1b7)),_0x440c01=_0x3ad7db[_0x24e873(0x1c7)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x440c01&&_0x440c01[0x1]){const _0x16e630=_0x440c01[0x1],_0x5d4946=_0x16e630[_0x24e873(0x1c7)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x5d4946&&_0x5d4946[0x1])return _0x5d4946[0x1][_0x24e873(0x1b0)]();}let _0x15e5f1=null;const _0x2fc266=_0x3ad7db[_0x24e873(0x1c7)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x2fc266&&_0x2fc266[0x1]&&(_0x15e5f1=_0x2fc266[0x1]);if(!_0x15e5f1){const _0x47dc13=_0x3ad7db[_0x24e873(0x1c7)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x47dc13&&_0x47dc13[0x1]&&(_0x15e5f1=_0x47dc13[0x1]);}if(_0x15e5f1){const _0xaf73e8=new RegExp('\x5cb'+_0x15e5f1+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x1b53ea=_0x3ad7db[_0x24e873(0x1c7)](_0xaf73e8);if(_0x1b53ea&&_0x1b53ea[0x1])return _0x1b53ea[0x1];return _0x15e5f1;}return null;}catch(_0xfc1c1a){return null;}}export function getLocalPages(_0x102b34=pagesDir,_0x31b716=pagesDir){const _0x25de3f=a83_0x35f52e;let _0x3ed112=[];const _0xe8cee4=readdirSync(_0x102b34);return _0xe8cee4[_0x25de3f(0x1b6)](_0x1557fd=>{const _0x2f49c7=_0x25de3f,_0x271124=join(_0x102b34,_0x1557fd),_0x44e6a7=statSync(_0x271124);if(_0x44e6a7&&_0x44e6a7[_0x2f49c7(0x1b4)]())_0x3ed112=_0x3ed112[_0x2f49c7(0x1cc)](getLocalPages(_0x271124,_0x31b716));else{if(_0x1557fd[_0x2f49c7(0x1c8)](_0x2f49c7(0x1cb))){let _0x167528=relative(_0x31b716,_0x271124);_0x167528[_0x2f49c7(0x1c8)](_0x2f49c7(0x1b8))?_0x167528=_0x167528['replace'](/index\.tsx$/,''):_0x167528=_0x167528[_0x2f49c7(0x1b1)](/\.tsx$/,'');_0x167528[_0x2f49c7(0x1c8)](sep)&&(_0x167528=_0x167528[_0x2f49c7(0x1cd)](0x0,-0x1));const _0x20b429=_0x167528[_0x2f49c7(0x1c6)](sep)[_0x2f49c7(0x1bf)]('/'),_0x40b08b=extractTitleFromComment(_0x271124),_0x5310ca=_0x40b08b||_0x20b429;_0x3ed112[_0x2f49c7(0x1c4)]({'path':_0x20b429[_0x2f49c7(0x1c5)]('$',':'),'label':_0x5310ca});}}}),_0x3ed112['filter'](_0x5f2835=>_0x5f2835[_0x25de3f(0x1c2)]!=='');}