@lovrabet/rabetbase-cli 2.1.2-beta.1 → 2.1.2-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) 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/delete.js +1 -1
  28. package/lib/commands/bff/detail.js +1 -1
  29. package/lib/commands/bff/index.js +1 -1
  30. package/lib/commands/bff/list.js +1 -1
  31. package/lib/commands/bff/new.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/dataset/detail.js +1 -1
  48. package/lib/commands/dataset/index.js +1 -1
  49. package/lib/commands/dataset/links.js +1 -1
  50. package/lib/commands/dataset/list.js +1 -1
  51. package/lib/commands/dataset/operations.js +1 -1
  52. package/lib/commands/db/analyze-cancel.js +1 -1
  53. package/lib/commands/db/analyze-start.js +1 -1
  54. package/lib/commands/db/analyze-status.js +1 -1
  55. package/lib/commands/db/create.js +1 -1
  56. package/lib/commands/db/delete.js +1 -1
  57. package/lib/commands/db/detail.js +1 -1
  58. package/lib/commands/db/diff.js +1 -1
  59. package/lib/commands/db/index.js +1 -1
  60. package/lib/commands/db/list.js +1 -1
  61. package/lib/commands/db/shared.js +1 -1
  62. package/lib/commands/db/tables.js +1 -1
  63. package/lib/commands/db/test.js +1 -1
  64. package/lib/commands/db/update.js +1 -1
  65. package/lib/commands/doctor.js +1 -1
  66. package/lib/commands/init/index.js +1 -1
  67. package/lib/commands/logs/index.js +1 -1
  68. package/lib/commands/menu/index.js +1 -1
  69. package/lib/commands/menu/shared/compare-table.js +1 -1
  70. package/lib/commands/menu/shared/index.js +1 -1
  71. package/lib/commands/menu/shared/inquirer.js +1 -1
  72. package/lib/commands/menu/shared/local-pages.js +1 -1
  73. package/lib/commands/menu/shared/logic.js +1 -1
  74. package/lib/commands/menu/shared/service.js +1 -1
  75. package/lib/commands/menu/shared/sync-core.js +1 -1
  76. package/lib/commands/menu/shared/update-core.js +1 -1
  77. package/lib/commands/menu/shared/valid-url.js +1 -1
  78. package/lib/commands/menu/sync.js +1 -1
  79. package/lib/commands/menu/update.js +1 -1
  80. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  81. package/lib/commands/project/create/format-elapsed.js +1 -1
  82. package/lib/commands/project/create/main.js +1 -1
  83. package/lib/commands/project/create/non-interactive.js +1 -1
  84. package/lib/commands/project/create/project-template-path.js +1 -1
  85. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  86. package/lib/commands/project/create/use-format-code.js +1 -1
  87. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  88. package/lib/commands/project/index.js +1 -1
  89. package/lib/commands/project/init.js +1 -1
  90. package/lib/commands/project/upgrade.js +1 -1
  91. package/lib/commands/registry.js +1 -1
  92. package/lib/commands/run/index.js +1 -1
  93. package/lib/commands/schema.js +1 -1
  94. package/lib/commands/skill/index.js +1 -1
  95. package/lib/commands/sql/detail.js +1 -1
  96. package/lib/commands/sql/exec.js +1 -1
  97. package/lib/commands/sql/index.js +1 -1
  98. package/lib/commands/sql/list.js +1 -1
  99. package/lib/commands/sql/pull.js +1 -1
  100. package/lib/commands/sql/save.js +1 -1
  101. package/lib/commands/sql/shared.js +1 -1
  102. package/lib/commands/sql/validate.js +1 -1
  103. package/lib/config/schema.js +1 -1
  104. package/lib/constant/cli.js +1 -1
  105. package/lib/constant/defaults.js +1 -1
  106. package/lib/constant/domain.js +1 -1
  107. package/lib/constant/env.js +1 -1
  108. package/lib/constant/output.js +1 -1
  109. package/lib/constant/paths.js +1 -1
  110. package/lib/constant/risk.js +1 -1
  111. package/lib/context.js +1 -1
  112. package/lib/core/alias-resolver.js +1 -1
  113. package/lib/core/api-client.js +1 -1
  114. package/lib/core/bff/config.js +1 -1
  115. package/lib/core/bff/file-system.js +1 -1
  116. package/lib/core/bff/hash.js +1 -1
  117. package/lib/core/bff/lock.js +1 -1
  118. package/lib/core/bff/utils.js +1 -1
  119. package/lib/core/db-resolver.js +1 -1
  120. package/lib/core/sql-validator.js +1 -1
  121. package/lib/errors.js +1 -1
  122. package/lib/framework/build-all-flags.js +1 -1
  123. package/lib/framework/flags.js +1 -1
  124. package/lib/framework/help.js +1 -1
  125. package/lib/framework/index.js +1 -1
  126. package/lib/framework/output.js +1 -1
  127. package/lib/framework/response.js +1 -1
  128. package/lib/framework/runner-alias.js +1 -1
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/types.js +1 -1
  132. package/lib/generated/build-info.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/skills/main.js +1 -1
  135. package/lib/skills/npx-skills-add.js +1 -1
  136. package/lib/telemetry/cli-command-trace.js +1 -1
  137. package/lib/telemetry/cli-help-trace.js +1 -1
  138. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  139. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  140. package/lib/telemetry/send-cli-trace-log.js +1 -1
  141. package/lib/utils/ai_config.js +1 -1
  142. package/lib/utils/apply-jq-filter.js +1 -1
  143. package/lib/utils/cdn-config.js +1 -1
  144. package/lib/utils/check-sdk-version.js +1 -1
  145. package/lib/utils/cli-version-check.js +1 -1
  146. package/lib/utils/config.js +1 -1
  147. package/lib/utils/copy-directory.js +1 -1
  148. package/lib/utils/entity-with-id.js +1 -0
  149. package/lib/utils/file-utils.js +1 -1
  150. package/lib/utils/guides-cdn.js +1 -1
  151. package/lib/utils/http-client.js +1 -1
  152. package/lib/utils/is-non-interactive.js +1 -1
  153. package/lib/utils/logger.js +1 -1
  154. package/lib/utils/platform.js +1 -1
  155. package/lib/utils/rules-cdn.js +1 -1
  156. package/lib/utils/sleep.js +1 -1
  157. package/lib/utils/template-replacer.js +1 -1
  158. package/lib/utils/version.js +1 -1
  159. package/lib/utils/with-active-cookie.js +1 -1
  160. package/lib/utils/write-cli-side-channel.js +1 -1
  161. package/package.json +2 -2
@@ -1 +1 @@
1
- const a0_0x100a3d=a0_0x5cb4;(function(_0x20cb43,_0x36298c){const _0x22a0e7=a0_0x5cb4,_0x3b2495=_0x20cb43();while(!![]){try{const _0x1abe48=parseInt(_0x22a0e7(0x185))/0x1*(-parseInt(_0x22a0e7(0x17f))/0x2)+parseInt(_0x22a0e7(0x191))/0x3*(parseInt(_0x22a0e7(0x194))/0x4)+-parseInt(_0x22a0e7(0x183))/0x5*(-parseInt(_0x22a0e7(0x18b))/0x6)+parseInt(_0x22a0e7(0x192))/0x7+-parseInt(_0x22a0e7(0x178))/0x8*(-parseInt(_0x22a0e7(0x170))/0x9)+parseInt(_0x22a0e7(0x17d))/0xa+-parseInt(_0x22a0e7(0x172))/0xb*(parseInt(_0x22a0e7(0x177))/0xc);if(_0x1abe48===_0x36298c)break;else _0x3b2495['push'](_0x3b2495['shift']());}catch(_0x5ee0a3){_0x3b2495['push'](_0x3b2495['shift']());}}}(a0_0x1478,0x23006));import{mkdirSync,writeFileSync}from'node:fs';import a0_0x10caca from'node:path';import{getApiDomain}from'../constant/domain.js';function a0_0x1478(){const _0x50ec35=['.md\x20-\x20','150455PytXYm','生成文档失败:\x20','26lcgWjt','):\x20missing\x20data.markdown\x20field','.md','utf8','POST','Waiting\x203\x20seconds...\x0a','54TqEsMh','length','api-doc','\x20datasets\x20to\x20generate\x20docs\x20for\x0a','/api/node-toolbox/api-doc-generator','./docs','107391sMZxyM','263550qkppeq','Fetch\x20doc\x20(','24MABUfq','2133Kowhxz','push','82753TpVbYZ','error','生成文档成功:\x20','name','log','924oQxNgb','6360ZjWNUG','Invalid\x20response\x20format\x20(',']\x20Generating:\x20','success','datasetCode','1334570wfVInX','markdown','9422zIDftB','string','✗\x20Failed:\x20'];a0_0x1478=function(){return _0x50ec35;};return a0_0x1478();}import{logger}from'../utils/logger.js';import{platformFetch}from'../core/api-client.js';export async function fetchDatasetDoc(_0x33056b){const _0x1b91e5=a0_0x5cb4,{appCode:_0x3a6145,cookie:_0x5e8bfb,datasetCode:_0x43a76c,datasetId:_0x5a2bf9,extraParams:_0x4a9b7b}=_0x33056b,_0x25bb75=getApiDomain()+_0x1b91e5(0x18f),_0x478006=await platformFetch(_0x25bb75,{'method':_0x1b91e5(0x189),'body':{'appCode':_0x3a6145,'datasetCode':_0x43a76c,'datasetId':_0x5a2bf9,..._0x4a9b7b||{}},'cookie':_0x5e8bfb,'label':_0x1b91e5(0x193)+_0x43a76c+')'});if(!_0x478006||typeof _0x478006[_0x1b91e5(0x17e)]!==_0x1b91e5(0x180))throw new Error(_0x1b91e5(0x179)+_0x43a76c+_0x1b91e5(0x186));return _0x478006[_0x1b91e5(0x17e)];}function a0_0x5cb4(_0x272d34,_0x1fb564){_0x272d34=_0x272d34-0x170;const _0x1478c2=a0_0x1478();let _0x5cb49d=_0x1478c2[_0x272d34];return _0x5cb49d;}function delay(_0x135f3b){return new Promise(_0x473a80=>setTimeout(_0x473a80,_0x135f3b));}export async function generateDatasetDocs(_0x56eace,_0x3380f5,_0x46532b,_0x226781=a0_0x100a3d(0x190),_0x3593db,_0x2c2a8f){const _0x31981e=a0_0x100a3d;mkdirSync(_0x226781,{'recursive':!![]});const _0x52dbfd=[],_0x147e76=_0x56eace[_0x31981e(0x18c)];console[_0x31981e(0x176)]('\x0a'+_0x147e76+_0x31981e(0x18e));for(let _0x41ffe2=0x0;_0x41ffe2<_0x56eace[_0x31981e(0x18c)];_0x41ffe2++){const _0x8cf403=_0x56eace[_0x41ffe2],_0x39851d=_0x41ffe2+0x1,_0x5bf017=_0x8cf403['tableName'];try{console[_0x31981e(0x176)]('['+_0x39851d+'/'+_0x147e76+_0x31981e(0x17a)+_0x5bf017+'.md\x20('+_0x8cf403[_0x31981e(0x175)]+')');if(_0x3593db)_0x3593db(_0x39851d,_0x147e76,_0x5bf017);const _0x1a7b60=await fetchDatasetDoc({'appCode':_0x3380f5,'cookie':_0x46532b,'datasetCode':_0x8cf403[_0x31981e(0x17c)],'datasetId':_0x8cf403['id'],'enableAI':![],'extraParams':_0x2c2a8f}),_0x171662=a0_0x10caca['join'](_0x226781,_0x5bf017+_0x31981e(0x187));writeFileSync(_0x171662,_0x1a7b60,{'encoding':_0x31981e(0x188)}),console[_0x31981e(0x176)]('✓\x20Generated:\x20'+_0x5bf017+_0x31981e(0x187)),logger[_0x31981e(0x17b)](_0x31981e(0x18d),_0x31981e(0x174)+_0x5bf017,undefined,{'datasetCode':_0x8cf403[_0x31981e(0x17c)],'datasetName':_0x8cf403[_0x31981e(0x175)],'filePath':_0x171662,'progress':_0x39851d+'/'+_0x147e76}),_0x52dbfd[_0x31981e(0x171)]({'datasetCode':_0x8cf403[_0x31981e(0x17c)],'datasetName':_0x8cf403[_0x31981e(0x175)],'filePath':_0x171662,'success':!![]});if(_0x39851d<_0x147e76)await delay(0x1388);}catch(_0x442a44){const _0x1524e4=_0x442a44 instanceof Error?_0x442a44['message']:String(_0x442a44);console[_0x31981e(0x176)](_0x31981e(0x181)+_0x5bf017+_0x31981e(0x182)+_0x1524e4),logger[_0x31981e(0x173)](_0x31981e(0x18d),_0x31981e(0x184)+_0x8cf403[_0x31981e(0x17c)],{'datasetCode':_0x8cf403[_0x31981e(0x17c)],'datasetName':_0x8cf403['name'],'error':_0x1524e4,'progress':_0x39851d+'/'+_0x147e76}),_0x52dbfd[_0x31981e(0x171)]({'datasetCode':_0x8cf403[_0x31981e(0x17c)],'datasetName':_0x8cf403[_0x31981e(0x175)],'filePath':'','success':![],'error':_0x1524e4}),_0x39851d<_0x147e76&&(console[_0x31981e(0x176)](_0x31981e(0x18a)),await delay(0xbb8));}}return _0x52dbfd;}
1
+ (function(_0x113d85,_0x3c9481){const _0xca6217=a0_0x3fb3,_0x31c978=_0x113d85();while(!![]){try{const _0x8d18e0=-parseInt(_0xca6217(0x170))/0x1+-parseInt(_0xca6217(0x16c))/0x2*(-parseInt(_0xca6217(0x17a))/0x3)+parseInt(_0xca6217(0x185))/0x4+-parseInt(_0xca6217(0x172))/0x5+parseInt(_0xca6217(0x182))/0x6+parseInt(_0xca6217(0x16b))/0x7+parseInt(_0xca6217(0x180))/0x8*(-parseInt(_0xca6217(0x17e))/0x9);if(_0x8d18e0===_0x3c9481)break;else _0x31c978['push'](_0x31c978['shift']());}catch(_0x274366){_0x31c978['push'](_0x31c978['shift']());}}}(a0_0xd5a9,0x8eb5a));import{mkdirSync,writeFileSync}from'node:fs';import a0_0x414a7f from'node:path';function a0_0x3fb3(_0x1933c9,_0x4be602){_0x1933c9=_0x1933c9-0x169;const _0xd5a9d9=a0_0xd5a9();let _0x3fb3f7=_0xd5a9d9[_0x1933c9];return _0x3fb3f7;}import{getApiDomain}from'../constant/domain.js';function a0_0xd5a9(){const _0x53f312=['Waiting\x203\x20seconds...\x0a','3850140QlfBuI','length','生成文档失败:\x20','message','✓\x20Generated:\x20','生成文档成功:\x20','.md','POST','3500481fPvrnP','push','log','markdown','972ZqTEGd','\x20datasets\x20to\x20generate\x20docs\x20for\x0a','142544HyYlQx','):\x20missing\x20data.markdown\x20field','4891770rwGEQQ','api-doc','tableName','4594296MnWuYl','join','.md\x20(','.md\x20-\x20','datasetCode','Invalid\x20response\x20format\x20(','2026374epqZuL','2ajhJLe','name','✗\x20Failed:\x20','error','141268pIBeqC'];a0_0xd5a9=function(){return _0x53f312;};return a0_0xd5a9();}import{logger}from'../utils/logger.js';import{platformFetch}from'../core/api-client.js';export async function fetchDatasetDoc(_0x16ab49){const _0x164fb5=a0_0x3fb3,{appCode:_0x4401e1,cookie:_0x1f7f61,datasetCode:_0x3c7136,datasetId:_0x164474,extraParams:_0x4d1a66}=_0x16ab49,_0x55ec85=getApiDomain()+'/api/node-toolbox/api-doc-generator',_0x11a760=await platformFetch(_0x55ec85,{'method':_0x164fb5(0x179),'body':{'appCode':_0x4401e1,'datasetCode':_0x3c7136,'datasetId':_0x164474,..._0x4d1a66||{}},'cookie':_0x1f7f61,'label':'Fetch\x20doc\x20('+_0x3c7136+')'});if(!_0x11a760||typeof _0x11a760['markdown']!=='string')throw new Error(_0x164fb5(0x16a)+_0x3c7136+_0x164fb5(0x181));return _0x11a760[_0x164fb5(0x17d)];}function delay(_0x4a422b){return new Promise(_0x21d94c=>setTimeout(_0x21d94c,_0x4a422b));}export async function generateDatasetDocs(_0x63e362,_0x55a5bc,_0x32e931,_0x2adb59='./docs',_0x1f71eb,_0x23a2db){const _0x34a5de=a0_0x3fb3;mkdirSync(_0x2adb59,{'recursive':!![]});const _0x24b08c=[],_0x42010e=_0x63e362[_0x34a5de(0x173)];console[_0x34a5de(0x17c)]('\x0a'+_0x42010e+_0x34a5de(0x17f));for(let _0x3eb73d=0x0;_0x3eb73d<_0x63e362[_0x34a5de(0x173)];_0x3eb73d++){const _0x2bf3e0=_0x63e362[_0x3eb73d],_0x25d1bc=_0x3eb73d+0x1,_0x473451=_0x2bf3e0[_0x34a5de(0x184)];try{console[_0x34a5de(0x17c)]('['+_0x25d1bc+'/'+_0x42010e+']\x20Generating:\x20'+_0x473451+_0x34a5de(0x187)+_0x2bf3e0[_0x34a5de(0x16d)]+')');if(_0x1f71eb)_0x1f71eb(_0x25d1bc,_0x42010e,_0x473451);const _0x414419=await fetchDatasetDoc({'appCode':_0x55a5bc,'cookie':_0x32e931,'datasetCode':_0x2bf3e0[_0x34a5de(0x169)],'datasetId':_0x2bf3e0['id'],'enableAI':![],'extraParams':_0x23a2db}),_0x5c2b70=a0_0x414a7f[_0x34a5de(0x186)](_0x2adb59,_0x473451+_0x34a5de(0x178));writeFileSync(_0x5c2b70,_0x414419,{'encoding':'utf8'}),console[_0x34a5de(0x17c)](_0x34a5de(0x176)+_0x473451+_0x34a5de(0x178)),logger['success']('api-doc',_0x34a5de(0x177)+_0x473451,undefined,{'datasetCode':_0x2bf3e0[_0x34a5de(0x169)],'datasetName':_0x2bf3e0[_0x34a5de(0x16d)],'filePath':_0x5c2b70,'progress':_0x25d1bc+'/'+_0x42010e}),_0x24b08c[_0x34a5de(0x17b)]({'datasetCode':_0x2bf3e0['datasetCode'],'datasetName':_0x2bf3e0[_0x34a5de(0x16d)],'filePath':_0x5c2b70,'success':!![]});if(_0x25d1bc<_0x42010e)await delay(0x1388);}catch(_0x386f07){const _0x2c1ccb=_0x386f07 instanceof Error?_0x386f07[_0x34a5de(0x175)]:String(_0x386f07);console[_0x34a5de(0x17c)](_0x34a5de(0x16e)+_0x473451+_0x34a5de(0x188)+_0x2c1ccb),logger[_0x34a5de(0x16f)](_0x34a5de(0x183),_0x34a5de(0x174)+_0x2bf3e0[_0x34a5de(0x169)],{'datasetCode':_0x2bf3e0[_0x34a5de(0x169)],'datasetName':_0x2bf3e0[_0x34a5de(0x16d)],'error':_0x2c1ccb,'progress':_0x25d1bc+'/'+_0x42010e}),_0x24b08c[_0x34a5de(0x17b)]({'datasetCode':_0x2bf3e0[_0x34a5de(0x169)],'datasetName':_0x2bf3e0[_0x34a5de(0x16d)],'filePath':'','success':![],'error':_0x2c1ccb}),_0x25d1bc<_0x42010e&&(console[_0x34a5de(0x17c)](_0x34a5de(0x171)),await delay(0xbb8));}}return _0x24b08c;}
@@ -1 +1 @@
1
- function a1_0x28a5(_0x5688af,_0x13f340){_0x5688af=_0x5688af-0x141;const _0x450bc1=a1_0x450b();let _0x28a58b=_0x450bc1[_0x5688af];return _0x28a58b;}(function(_0x53c6a7,_0x39d3d0){const _0x4f4e39=a1_0x28a5,_0xfcd422=_0x53c6a7();while(!![]){try{const _0x4ec6f7=parseInt(_0x4f4e39(0x145))/0x1*(-parseInt(_0x4f4e39(0x142))/0x2)+-parseInt(_0x4f4e39(0x151))/0x3*(parseInt(_0x4f4e39(0x146))/0x4)+-parseInt(_0x4f4e39(0x148))/0x5+parseInt(_0x4f4e39(0x14b))/0x6+parseInt(_0x4f4e39(0x14c))/0x7*(parseInt(_0x4f4e39(0x14f))/0x8)+parseInt(_0x4f4e39(0x14e))/0x9+-parseInt(_0x4f4e39(0x153))/0xa;if(_0x4ec6f7===_0x39d3d0)break;else _0xfcd422['push'](_0xfcd422['shift']());}catch(_0x47e499){_0xfcd422['push'](_0xfcd422['shift']());}}}(a1_0x450b,0x6579a));import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';function a1_0x450b(){const _0x121f2c=['configArray','fetch-model-list','109247zbuZfW','2860aCPwnA','replace','449310OVotTL','&otype=array','map','939246ufHrRY','353087xTHZSX','正在从服务器拉取模型列表...\x20(环境:\x20','3279627AbRjJq','104bHHHtJ','info','1563RfSlrq','name','1894110OdqOUb','/api/node-toolbox/dataset/model-list?appcode=','2TxURpz'];a1_0x450b=function(){return _0x121f2c;};return a1_0x450b();}import{getEnv}from'../constant/env.js';import{platformFetch}from'../core/api-client.js';function cleanNewlines(_0x3edc4f){const _0x8a6b8=a1_0x28a5;return _0x3edc4f[_0x8a6b8(0x147)](/[\r\n]+/g,'\x20')['trim']();}function cleanDatasetName(_0x584b29){const _0x2bb838=a1_0x28a5;if(!_0x584b29[_0x2bb838(0x152)])return _0x584b29;return{..._0x584b29,'name':cleanNewlines(_0x584b29['name'])};}export async function fetchModelList(_0x2e49c9,_0x2657ee){const _0x299147=a1_0x28a5,_0x1d1802=getEnv(),_0x1b3616=getApiDomain()+_0x299147(0x141)+_0x2e49c9+_0x299147(0x149);logger[_0x299147(0x150)](_0x299147(0x144),_0x299147(0x14d)+_0x1d1802+')',{'apiUrl':_0x1b3616});const _0x1e6409=await platformFetch(_0x1b3616,{'cookie':_0x2657ee,'label':'Fetch\x20datasets'}),_0x31bd8a=(_0x1e6409[_0x299147(0x143)]??[])[_0x299147(0x14a)](cleanDatasetName);return{'configArray':_0x31bd8a,'count':_0x31bd8a['length']};}
1
+ (function(_0x4a42ee,_0x1a3afe){const _0x161c25=a1_0x5071,_0x2e0cb2=_0x4a42ee();while(!![]){try{const _0x20834d=parseInt(_0x161c25(0x134))/0x1*(-parseInt(_0x161c25(0x136))/0x2)+parseInt(_0x161c25(0x12d))/0x3+-parseInt(_0x161c25(0x12f))/0x4+-parseInt(_0x161c25(0x13a))/0x5+parseInt(_0x161c25(0x138))/0x6*(-parseInt(_0x161c25(0x137))/0x7)+-parseInt(_0x161c25(0x139))/0x8+parseInt(_0x161c25(0x13c))/0x9;if(_0x20834d===_0x1a3afe)break;else _0x2e0cb2['push'](_0x2e0cb2['shift']());}catch(_0x587ef0){_0x2e0cb2['push'](_0x2e0cb2['shift']());}}}(a1_0x2c01,0xcef67));import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';import{getEnv}from'../constant/env.js';function a1_0x2c01(){const _0x4d506d=['5567820yDJefh','正在从服务器拉取模型列表...\x20(环境:\x20','configArray','/api/node-toolbox/dataset/model-list?appcode=','&otype=array','810hAtkGL','map','934SsXHBS','129206ZJHuUQ','372iqrDTy','7736232PjCouH','4245975uexhrm','name','47157894ZsEuVA','1016394YeiQLh','trim'];a1_0x2c01=function(){return _0x4d506d;};return a1_0x2c01();}import{platformFetch}from'../core/api-client.js';function cleanNewlines(_0x2ccef0){const _0x3296ae=a1_0x5071;return _0x2ccef0['replace'](/[\r\n]+/g,'\x20')[_0x3296ae(0x12e)]();}function a1_0x5071(_0x499bf5,_0x2f1a54){_0x499bf5=_0x499bf5-0x12d;const _0x2c015f=a1_0x2c01();let _0x507166=_0x2c015f[_0x499bf5];return _0x507166;}function cleanDatasetName(_0xc08af9){const _0x8e7f49=a1_0x5071;if(!_0xc08af9['name'])return _0xc08af9;return{..._0xc08af9,'name':cleanNewlines(_0xc08af9[_0x8e7f49(0x13b)])};}export async function fetchModelList(_0x62426f,_0x5d4d2d){const _0x126d0a=a1_0x5071,_0x1db78e=getEnv(),_0x5238b5=getApiDomain()+_0x126d0a(0x132)+_0x62426f+_0x126d0a(0x133);logger['info']('fetch-model-list',_0x126d0a(0x130)+_0x1db78e+')',{'apiUrl':_0x5238b5});const _0x56dff3=await platformFetch(_0x5238b5,{'cookie':_0x5d4d2d,'label':'Fetch\x20datasets'}),_0x468291=(_0x56dff3[_0x126d0a(0x131)]??[])[_0x126d0a(0x135)](cleanDatasetName);return{'configArray':_0x468291,'count':_0x468291['length']};}
@@ -1 +1 @@
1
- (function(_0x3c9725,_0x151b7b){const _0x3d6b97=a2_0x1b31,_0x5820e4=_0x3c9725();while(!![]){try{const _0x40d381=-parseInt(_0x3d6b97(0x80))/0x1*(-parseInt(_0x3d6b97(0x8e))/0x2)+-parseInt(_0x3d6b97(0x95))/0x3*(parseInt(_0x3d6b97(0x91))/0x4)+-parseInt(_0x3d6b97(0x9c))/0x5*(parseInt(_0x3d6b97(0xa0))/0x6)+parseInt(_0x3d6b97(0x79))/0x7*(parseInt(_0x3d6b97(0x88))/0x8)+parseInt(_0x3d6b97(0x87))/0x9+-parseInt(_0x3d6b97(0x8f))/0xa*(parseInt(_0x3d6b97(0x81))/0xb)+parseInt(_0x3d6b97(0x8a))/0xc*(-parseInt(_0x3d6b97(0x7d))/0xd);if(_0x40d381===_0x151b7b)break;else _0x5820e4['push'](_0x5820e4['shift']());}catch(_0x399c4f){_0x5820e4['push'](_0x5820e4['shift']());}}}(a2_0x5ba2,0x9e089));import a2_0x1a7e13 from'prettier';import{mkdirSync,writeFileSync,readFileSync}from'node:fs';function a2_0x5ba2(){const _0xc6b642=['398770XIvFRZ','11IyAdZj','length','alias','templates/generate-api','LOVRABET','tableName','11189088BRbcAk','88AAILpj','{\x20apiConfigName:\x20\x22','12dJBKsS','.ts','format',',\x20env:\x20\x22','6LTbfDd','2010070oOdLaf','typescript','1888480wEhklT','api','-api','replaceApiContent','6opLSMC','test','api.ts.tpl','API\x20文件生成成功!','CONFIG_NAMES.DEFAULT','../..','resolve','20RIoYvU','push','datasetCode','utf8','891816UsgPui','611548DkbYiw','key','dirname','toUpperCase','13174850hICPjN','replace','join'];a2_0x5ba2=function(){return _0xc6b642;};return a2_0x5ba2();}import a2_0xd98bb5 from'node:path';function a2_0x1b31(_0x15f5ad,_0x5248f5){_0x15f5ad=_0x15f5ad-0x79;const _0x5ba2e0=a2_0x5ba2();let _0x1b3106=_0x5ba2e0[_0x15f5ad];return _0x1b3106;}import{fileURLToPath}from'node:url';import{TemplateReplacer}from'../utils/template-replacer.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{logger}from'../utils/logger.js';import{isProduction}from'../constant/env.js';export async function generateApiFile(_0x26f9a1,_0x1a5087,_0x50f95d,_0x31a5bb,_0x3a6bd6,_0x42d002,_0x450a67){const _0x7cbfb9=a2_0x1b31;if(!_0x50f95d)throw new Error('Please\x20configure\x20app\x20code\x20first\x20via\x20`'+CLI_BIN_NAME+'\x20config\x20set\x20app\x20<value>`');const _0x4b0355=_0x31a5bb&&!_0x450a67,_0x447b31=_0x450a67||_0x50f95d,_0x200644=_0x4b0355?_0x7cbfb9(0x99):'\x22'+_0x447b31+'\x22',_0x313bfe=!isProduction(_0x3a6bd6);let _0x206560;if(_0x4b0355)_0x313bfe?_0x206560='{\x20apiConfigName:\x20'+_0x200644+_0x7cbfb9(0x8d)+_0x3a6bd6+'\x22\x20}':_0x206560='';else{const _0x3f70c6=_0x313bfe?_0x7cbfb9(0x8d)+_0x3a6bd6+'\x22':'';_0x206560=_0x7cbfb9(0x89)+_0x447b31+'\x22'+_0x3f70c6+'\x20}';}const _0x1967f7=_0x1a5087?_0x1a5087+_0x7cbfb9(0x93):_0x7cbfb9(0x92),_0x5a403a=_0x1a5087?_0x1a5087+'-client':'client',_0x37564a=_0x1a5087&&!/^app-[a-f0-9]+$/i[_0x7cbfb9(0x96)](_0x1a5087)?_0x1a5087[_0x7cbfb9(0x7e)](/-/g,'_')[_0x7cbfb9(0x7c)]():_0x7cbfb9(0x85),_0x1a402e=[];_0x26f9a1['forEach'](_0x423444=>{const _0x3c1223=_0x7cbfb9;_0x1a402e[_0x3c1223(0x9d)]({'datasetCode':_0x423444[_0x3c1223(0x9e)],'tableName':_0x423444[_0x3c1223(0x86)],'name':_0x423444['name']||'','alias':_0x423444['alias']||_0x423444[_0x3c1223(0x7a)]});});const _0x232699=fileURLToPath(import.meta.url),_0x2f0d16=a2_0xd98bb5[_0x7cbfb9(0x9b)](a2_0xd98bb5[_0x7cbfb9(0x7b)](_0x232699),_0x7cbfb9(0x9a)),_0x48dc17=a2_0xd98bb5[_0x7cbfb9(0x7f)](_0x2f0d16,_0x7cbfb9(0x84)),_0x276d94=a2_0xd98bb5[_0x7cbfb9(0x7f)](_0x48dc17,_0x7cbfb9(0x97)),_0x5e3339=a2_0xd98bb5[_0x7cbfb9(0x7f)](_0x48dc17,'client.ts.tpl'),_0x4a0844=_0x42d002;mkdirSync(_0x4a0844,{'recursive':!![]});const _0x16d532=_0x1a402e[0x0]?.[_0x7cbfb9(0x83)],_0x106d91=readFileSync(_0x276d94,_0x7cbfb9(0x9f)),_0x343471=TemplateReplacer[_0x7cbfb9(0x94)](_0x106d91,_0x50f95d,_0x1a402e,_0x16d532,_0x1967f7,_0x200644,undefined,_0x37564a),_0x24cb1b=await a2_0x1a7e13['format'](_0x343471,{'parser':_0x7cbfb9(0x90)}),_0x26df15=a2_0xd98bb5[_0x7cbfb9(0x7f)](_0x4a0844,_0x1967f7+_0x7cbfb9(0x8b));writeFileSync(_0x26df15,_0x24cb1b,{'encoding':_0x7cbfb9(0x9f)});const _0x51d64f=readFileSync(_0x5e3339,'utf8'),_0x1985a9=TemplateReplacer[_0x7cbfb9(0x94)](_0x51d64f,_0x50f95d,_0x1a402e,_0x16d532,_0x1967f7,_0x200644,_0x206560,_0x37564a),_0x434875=await a2_0x1a7e13[_0x7cbfb9(0x8c)](_0x1985a9,{'parser':_0x7cbfb9(0x90)}),_0x370c66=a2_0xd98bb5[_0x7cbfb9(0x7f)](_0x4a0844,_0x5a403a+_0x7cbfb9(0x8b));writeFileSync(_0x370c66,_0x434875,{'encoding':_0x7cbfb9(0x9f)});const _0x333ca4=_0x1a402e[_0x7cbfb9(0x82)];return logger['success']('init-api',_0x7cbfb9(0x98),undefined,{'apiFile':_0x26df15,'clientFile':_0x370c66,'modelCount':_0x333ca4,'configName':_0x200644}),{'modelCount':_0x333ca4,'apiFilePath':_0x26df15,'clientFilePath':_0x370c66,'configName':_0x200644};}
1
+ function a2_0x1982(_0x49fdc1,_0x36ffd3){_0x49fdc1=_0x49fdc1-0x1e1;const _0x9bed03=a2_0x9bed();let _0x1982ff=_0x9bed03[_0x49fdc1];return _0x1982ff;}(function(_0x3f6019,_0x5b9bd6){const _0x4b4e18=a2_0x1982,_0x421827=_0x3f6019();while(!![]){try{const _0x41057c=parseInt(_0x4b4e18(0x1ff))/0x1+parseInt(_0x4b4e18(0x202))/0x2*(parseInt(_0x4b4e18(0x1f1))/0x3)+-parseInt(_0x4b4e18(0x1e8))/0x4+parseInt(_0x4b4e18(0x1e3))/0x5*(parseInt(_0x4b4e18(0x1f3))/0x6)+-parseInt(_0x4b4e18(0x1fe))/0x7*(-parseInt(_0x4b4e18(0x1f6))/0x8)+parseInt(_0x4b4e18(0x1ea))/0x9+-parseInt(_0x4b4e18(0x1eb))/0xa;if(_0x41057c===_0x5b9bd6)break;else _0x421827['push'](_0x421827['shift']());}catch(_0x57e625){_0x421827['push'](_0x421827['shift']());}}}(a2_0x9bed,0xe5ea1));import a2_0x355e0b from'prettier';function a2_0x9bed(){const _0x83ce68=['7345PvxBQb','client','templates/generate-api','{\x20apiConfigName:\x20','datasetCode','6524612spjskt','\x22\x20}','12520539HAZtfJ','11574960zytbRo','tableName','replace',',\x20env:\x20\x22','format','init-api','3gaHMqv','alias','2280DTWuob','Please\x20configure\x20app\x20code\x20first\x20via\x20`','key','739104ttaDMi','-client','API\x20文件生成成功!','api.ts.tpl','success','length','CONFIG_NAMES.DEFAULT','name','7wzIYNU','264323vxzchL','\x20config\x20set\x20app\x20<value>`','client.ts.tpl','2848552ktTSfd','replaceApiContent','utf8','{\x20apiConfigName:\x20\x22','join'];a2_0x9bed=function(){return _0x83ce68;};return a2_0x9bed();}import{mkdirSync,writeFileSync,readFileSync}from'node:fs';import a2_0x2e06b3 from'node:path';import{fileURLToPath}from'node:url';import{TemplateReplacer}from'../utils/template-replacer.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{logger}from'../utils/logger.js';import{isProduction}from'../constant/env.js';export async function generateApiFile(_0x56f506,_0x2058de,_0xb58588,_0x46d394,_0x54ed1b,_0x8bb651,_0x2034c9){const _0x2f83cf=a2_0x1982;if(!_0xb58588)throw new Error(_0x2f83cf(0x1f4)+CLI_BIN_NAME+_0x2f83cf(0x200));const _0x504ac4=_0x46d394&&!_0x2034c9,_0x1e6e58=_0x2034c9||_0xb58588,_0x2b2bda=_0x504ac4?_0x2f83cf(0x1fc):'\x22'+_0x1e6e58+'\x22',_0x1c4889=!isProduction(_0x54ed1b);let _0x4d7064;if(_0x504ac4)_0x1c4889?_0x4d7064=_0x2f83cf(0x1e6)+_0x2b2bda+_0x2f83cf(0x1ee)+_0x54ed1b+_0x2f83cf(0x1e9):_0x4d7064='';else{const _0x5346d8=_0x1c4889?_0x2f83cf(0x1ee)+_0x54ed1b+'\x22':'';_0x4d7064=_0x2f83cf(0x1e1)+_0x1e6e58+'\x22'+_0x5346d8+'\x20}';}const _0x532cf4=_0x2058de?_0x2058de+'-api':'api',_0x2400f2=_0x2058de?_0x2058de+_0x2f83cf(0x1f7):_0x2f83cf(0x1e4),_0x41ac57=_0x2058de&&!/^app-[a-f0-9]+$/i['test'](_0x2058de)?_0x2058de[_0x2f83cf(0x1ed)](/-/g,'_')['toUpperCase']():'LOVRABET',_0xc03a49=[];_0x56f506['forEach'](_0x48991f=>{const _0x5e3fe8=_0x2f83cf;_0xc03a49['push']({'datasetCode':_0x48991f[_0x5e3fe8(0x1e7)],'tableName':_0x48991f[_0x5e3fe8(0x1ec)],'name':_0x48991f[_0x5e3fe8(0x1fd)]||'','alias':_0x48991f['alias']||_0x48991f[_0x5e3fe8(0x1f5)]});});const _0x2808b2=fileURLToPath(import.meta.url),_0x30a650=a2_0x2e06b3['resolve'](a2_0x2e06b3['dirname'](_0x2808b2),'../..'),_0x3e5498=a2_0x2e06b3['join'](_0x30a650,_0x2f83cf(0x1e5)),_0x454910=a2_0x2e06b3[_0x2f83cf(0x1e2)](_0x3e5498,_0x2f83cf(0x1f9)),_0xc60af8=a2_0x2e06b3[_0x2f83cf(0x1e2)](_0x3e5498,_0x2f83cf(0x201)),_0xc3e83b=_0x8bb651;mkdirSync(_0xc3e83b,{'recursive':!![]});const _0x4aa4f9=_0xc03a49[0x0]?.[_0x2f83cf(0x1f2)],_0xe296ab=readFileSync(_0x454910,_0x2f83cf(0x204)),_0x36603b=TemplateReplacer[_0x2f83cf(0x203)](_0xe296ab,_0xb58588,_0xc03a49,_0x4aa4f9,_0x532cf4,_0x2b2bda,undefined,_0x41ac57),_0x22aa3b=await a2_0x355e0b['format'](_0x36603b,{'parser':'typescript'}),_0x4529a4=a2_0x2e06b3[_0x2f83cf(0x1e2)](_0xc3e83b,_0x532cf4+'.ts');writeFileSync(_0x4529a4,_0x22aa3b,{'encoding':_0x2f83cf(0x204)});const _0xc0478=readFileSync(_0xc60af8,'utf8'),_0x35f07b=TemplateReplacer[_0x2f83cf(0x203)](_0xc0478,_0xb58588,_0xc03a49,_0x4aa4f9,_0x532cf4,_0x2b2bda,_0x4d7064,_0x41ac57),_0x426712=await a2_0x355e0b[_0x2f83cf(0x1ef)](_0x35f07b,{'parser':'typescript'}),_0xa59774=a2_0x2e06b3[_0x2f83cf(0x1e2)](_0xc3e83b,_0x2400f2+'.ts');writeFileSync(_0xa59774,_0x426712,{'encoding':_0x2f83cf(0x204)});const _0x351ea7=_0xc03a49[_0x2f83cf(0x1fb)];return logger[_0x2f83cf(0x1fa)](_0x2f83cf(0x1f0),_0x2f83cf(0x1f8),undefined,{'apiFile':_0x4529a4,'clientFile':_0xa59774,'modelCount':_0x351ea7,'configName':_0x2b2bda}),{'modelCount':_0x351ea7,'apiFilePath':_0x4529a4,'clientFilePath':_0xa59774,'configName':_0x2b2bda};}
@@ -1 +1 @@
1
- function a3_0x1bcb(_0x813de0,_0x279cba){_0x813de0=_0x813de0-0x6d;const _0x1bee29=a3_0x1bee();let _0x1bcb31=_0x1bee29[_0x813de0];return _0x1bcb31;}(function(_0x370d15,_0x5964af){const _0x2deead=a3_0x1bcb,_0x2821d2=_0x370d15();while(!![]){try{const _0x2f217f=-parseInt(_0x2deead(0x79))/0x1+parseInt(_0x2deead(0x75))/0x2*(-parseInt(_0x2deead(0x7c))/0x3)+parseInt(_0x2deead(0x7b))/0x4*(parseInt(_0x2deead(0x7a))/0x5)+parseInt(_0x2deead(0x7e))/0x6*(parseInt(_0x2deead(0x6d))/0x7)+-parseInt(_0x2deead(0x77))/0x8*(parseInt(_0x2deead(0x74))/0x9)+-parseInt(_0x2deead(0x78))/0xa*(-parseInt(_0x2deead(0x73))/0xb)+parseInt(_0x2deead(0x6e))/0xc;if(_0x2f217f===_0x5964af)break;else _0x2821d2['push'](_0x2821d2['shift']());}catch(_0x3aa72e){_0x2821d2['push'](_0x2821d2['shift']());}}}(a3_0x1bee,0xe0046));import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';function a3_0x1bee(){const _0xffbcb=['14893090mGtUET','96810VcXHCR','482290ASHuJp','68YKsAHL','109605ZNQuNd','!\x20Login\x20failed.','6nndDEH','start','2141489qMwEzW','1399032MHlbZv','No\x20valid\x20session.\x20Login\x20now?','*\x20Login\x20successful!','stop','log','11mLoOkD','9kLVuot','50IhlMHr','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','12990792OnXgpi'];a3_0x1bee=function(){return _0xffbcb;};return a3_0x1bee();}import{confirm}from'@inquirer/prompts';import a3_0x41f0e6 from'ora';export async function runAuthServer(){const _0x3a000f=a3_0x1bcb,_0x372132=await getIsSessionValid();if(_0x372132){console[_0x3a000f(0x72)]('√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.');return;}const _0x59e395=await confirm({'message':_0x3a000f(0x6f),'default':!![]});if(!_0x59e395)return;const _0x1baa1a=a3_0x41f0e6(_0x3a000f(0x76))[_0x3a000f(0x7f)](),_0x40f76c=await authServer({'silent':!![]});_0x1baa1a[_0x3a000f(0x71)](),_0x40f76c?console[_0x3a000f(0x72)](_0x3a000f(0x70)):console['log'](_0x3a000f(0x7d));}
1
+ (function(_0x4341df,_0x17c881){const _0x3842cb=a3_0xc42a,_0xc6a5cd=_0x4341df();while(!![]){try{const _0x2d0bde=parseInt(_0x3842cb(0x1c5))/0x1*(parseInt(_0x3842cb(0x1bc))/0x2)+parseInt(_0x3842cb(0x1ba))/0x3+-parseInt(_0x3842cb(0x1bf))/0x4*(parseInt(_0x3842cb(0x1b7))/0x5)+parseInt(_0x3842cb(0x1c2))/0x6+parseInt(_0x3842cb(0x1bb))/0x7+parseInt(_0x3842cb(0x1c1))/0x8+-parseInt(_0x3842cb(0x1bd))/0x9*(parseInt(_0x3842cb(0x1be))/0xa);if(_0x2d0bde===_0x17c881)break;else _0xc6a5cd['push'](_0xc6a5cd['shift']());}catch(_0xdaa35f){_0xc6a5cd['push'](_0xc6a5cd['shift']());}}}(a3_0xab81,0x598fc));import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{confirm}from'@inquirer/prompts';import a3_0x2445e0 from'ora';function a3_0xc42a(_0x4ce31,_0x198bda){_0x4ce31=_0x4ce31-0x1b5;const _0xab81e5=a3_0xab81();let _0xc42a58=_0xab81e5[_0x4ce31];return _0xc42a58;}function a3_0xab81(){const _0x4005f7=['Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','185387acirDp','start','log','No\x20valid\x20session.\x20Login\x20now?','42985bBAbaa','stop','√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.','1488030rbmFYk','3334996OGlDZW','2llvqaE','12753hISVnA','5090TLeZJP','148SfzVGR','!\x20Login\x20failed.','1483416cdmmTQ','377604GQzMuI','*\x20Login\x20successful!'];a3_0xab81=function(){return _0x4005f7;};return a3_0xab81();}export async function runAuthServer(){const _0x5f4df8=a3_0xc42a,_0x1137d=await getIsSessionValid();if(_0x1137d){console[_0x5f4df8(0x1b5)](_0x5f4df8(0x1b9));return;}const _0x1cf14a=await confirm({'message':_0x5f4df8(0x1b6),'default':!![]});if(!_0x1cf14a)return;const _0x3d9fd9=a3_0x2445e0(_0x5f4df8(0x1c4))[_0x5f4df8(0x1c6)](),_0x1bd43c=await authServer({'silent':!![]});_0x3d9fd9[_0x5f4df8(0x1b8)](),_0x1bd43c?console[_0x5f4df8(0x1b5)](_0x5f4df8(0x1c3)):console[_0x5f4df8(0x1b5)](_0x5f4df8(0x1c0));}
@@ -1 +1 @@
1
- const a4_0x3d06dd=a4_0x4358;(function(_0x17d713,_0x376eff){const _0xc2abfd=a4_0x4358,_0x4d1165=_0x17d713();while(!![]){try{const _0x4ae604=-parseInt(_0xc2abfd(0x1ec))/0x1+parseInt(_0xc2abfd(0x1ea))/0x2+parseInt(_0xc2abfd(0x1ef))/0x3+parseInt(_0xc2abfd(0x1e9))/0x4+-parseInt(_0xc2abfd(0x1ee))/0x5+-parseInt(_0xc2abfd(0x1f8))/0x6+-parseInt(_0xc2abfd(0x1db))/0x7*(parseInt(_0xc2abfd(0x1e2))/0x8);if(_0x4ae604===_0x376eff)break;else _0x4d1165['push'](_0x4d1165['shift']());}catch(_0x58c8c4){_0x4d1165['push'](_0x4d1165['shift']());}}}(a4_0x3663,0x757e7));import{writeFileSync}from'node:fs';function a4_0x3663(){const _0x58d42d=['297896CziWxu','createServer','listen','text/html;\x20charset=utf-8','catch','silent','error','2934552zuDjfn','1364470RCZbgd','json','612491BdCuhH','/sign-in?redirect=','4088615XtTKWS','2383065hbqEOd','end','💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','🔐\x20Starting\x20login\x20service...','object','then','session','xdg-open\x20\x22','127.0.0.1','898866eYvVdf','https://dev.lovrabet.com:','cmd\x20/c\x20start\x20\x22\x22\x20\x22','address','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','darwin','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','log','28WHhHqp','writeHead','📍\x20Login\x20URL:','✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','https://g.yuntooai.com/cert/lovrabet-dev.json','user','utf-8'];a4_0x3663=function(){return _0x58d42d;};return a4_0x3663();}import a4_0x13c9be from'node:https';import{getUserDomain}from'../constant/domain.js';import{exec}from'node:child_process';import{getIsSessionValid}from'../auth/is-session-valid.js';function a4_0x4358(_0x29b7a2,_0x2a6269){_0x29b7a2=_0x29b7a2-0x1d5;const _0x36633c=a4_0x3663();let _0x4358a0=_0x36633c[_0x29b7a2];return _0x4358a0;}import{cookieFile}from'../auth/constant.js';import{buildLoginSuccessHtml}from'../auth/login-success-html.js';export async function authServer(_0xabe0a){const _0x1d0c3a=a4_0x4358,_0x475539=_0xabe0a?.[_0x1d0c3a(0x1e7)]||![];if(await getIsSessionValid())return!![];const _0x400c93=await(await fetch(_0x1d0c3a(0x1df)))[_0x1d0c3a(0x1eb)]();return new Promise(async(_0xa59863,_0x354e6e)=>{const _0x5bd859=_0x1d0c3a;let _0x21f332=0x0;const _0x1ba316=a4_0x13c9be[_0x5bd859(0x1e3)](_0x400c93,async(_0x2a5bf7,_0xa9ccf8)=>{const _0x438981=_0x5bd859,_0x5dd5d8=getUserDomain(),_0x10694e=_0x2a5bf7['headers']['cookie']||'',_0x3739ce=await fetch(_0x5dd5d8+'/api/auth/get-session',{'headers':{'cookie':_0x10694e}})[_0x438981(0x1f4)](_0xc1a46e=>_0xc1a46e[_0x438981(0x1eb)]()),_0x2679e1=_0x3739ce&&_0x3739ce[_0x438981(0x1f5)]&&_0x3739ce[_0x438981(0x1e0)];if(_0x2679e1){writeFileSync(cookieFile,_0x10694e,_0x438981(0x1e1)),_0xa59863(!![]);const _0x47e832=buildLoginSuccessHtml();_0xa9ccf8[_0x438981(0x1dc)](0xc8,{'Content-Type':_0x438981(0x1e5)}),_0xa9ccf8[_0x438981(0x1f0)](_0x47e832),_0x1ba316['close']();}else{const _0x4ad5ef=''+encodeURIComponent(_0x438981(0x1f9)+_0x21f332);_0xa9ccf8['writeHead'](0x12e,{'location':_0x5dd5d8+_0x438981(0x1ed)+_0x4ad5ef}),_0xa9ccf8[_0x438981(0x1f0)]();return;}});_0x1ba316[_0x5bd859(0x1e4)](0x0,_0x5bd859(0x1f7),()=>{const _0x3cdae0=_0x5bd859,_0x5a5670=_0x1ba316[_0x3cdae0(0x1d6)]();_0x21f332=typeof _0x5a5670===_0x3cdae0(0x1f3)&&_0x5a5670?_0x5a5670['port']:Number(_0x5a5670);const _0x947096=_0x3cdae0(0x1f9)+_0x21f332;!_0x475539&&(console[_0x3cdae0(0x1da)](_0x3cdae0(0x1f2)),console[_0x3cdae0(0x1da)](_0x3cdae0(0x1dd),_0x947096),console[_0x3cdae0(0x1da)]('🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...'),console[_0x3cdae0(0x1da)](''),console['log'](_0x3cdae0(0x1f1)),console[_0x3cdae0(0x1da)]('')),openInBrowser(_0x947096)['then'](_0x4f0b98=>{const _0x2a6546=_0x3cdae0;!_0x475539&&(_0x4f0b98?console[_0x2a6546(0x1da)](_0x2a6546(0x1de)):(console[_0x2a6546(0x1da)](_0x2a6546(0x1d9)),console[_0x2a6546(0x1da)]('🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:',_0x947096)),console[_0x2a6546(0x1da)](''));})[_0x3cdae0(0x1e6)](()=>{const _0xfc5a14=_0x3cdae0;!_0x475539&&(console['log'](_0xfc5a14(0x1d9)),console[_0xfc5a14(0x1da)](_0xfc5a14(0x1d7),_0x947096),console['log'](''));});}),_0x1ba316['on'](_0x5bd859(0x1e8),_0x3982f2=>{const _0x2c8484=_0x5bd859;!_0x475539&&console[_0x2c8484(0x1e8)]('Auth\x20server\x20error:',_0x3982f2),_0x354e6e(_0x3982f2);});});}function openInBrowser(_0x44700e){return new Promise(_0x244666=>{const _0x5dcda=a4_0x4358,_0x23728d=process['platform'];let _0x13234c;if(_0x23728d==='win32')_0x13234c=_0x5dcda(0x1d5)+_0x44700e+'\x22';else _0x23728d===_0x5dcda(0x1d8)?_0x13234c='open\x20\x22'+_0x44700e+'\x22':_0x13234c=_0x5dcda(0x1f6)+_0x44700e+'\x22';exec(_0x13234c,_0x54f7ec=>{_0x54f7ec?_0x244666(![]):_0x244666(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a4_0x3d06dd(0x1da)]('isAuth',isAuth);}
1
+ const a4_0x3e2ea1=a4_0x4e49;function a4_0x4e49(_0x1c4ac8,_0x299606){_0x1c4ac8=_0x1c4ac8-0x13d;const _0x185845=a4_0x1858();let _0x4e49c6=_0x185845[_0x1c4ac8];return _0x4e49c6;}(function(_0x240b9b,_0x28bdb8){const _0x12b4e3=a4_0x4e49,_0x168aae=_0x240b9b();while(!![]){try{const _0x2046b3=-parseInt(_0x12b4e3(0x13e))/0x1*(-parseInt(_0x12b4e3(0x151))/0x2)+-parseInt(_0x12b4e3(0x156))/0x3*(-parseInt(_0x12b4e3(0x159))/0x4)+-parseInt(_0x12b4e3(0x15a))/0x5*(-parseInt(_0x12b4e3(0x14c))/0x6)+parseInt(_0x12b4e3(0x140))/0x7+parseInt(_0x12b4e3(0x163))/0x8*(parseInt(_0x12b4e3(0x154))/0x9)+parseInt(_0x12b4e3(0x150))/0xa*(-parseInt(_0x12b4e3(0x14d))/0xb)+-parseInt(_0x12b4e3(0x14e))/0xc;if(_0x2046b3===_0x28bdb8)break;else _0x168aae['push'](_0x168aae['shift']());}catch(_0x2c18f7){_0x168aae['push'](_0x168aae['shift']());}}}(a4_0x1858,0x48336));import{writeFileSync}from'node:fs';function a4_0x1858(){const _0x5374cc=['16193868hamBQw','headers','10LyPujc','21206GoszkP','platform','darwin','90eqRttN','127.0.0.1','249xmudRj','createServer','silent','19540MbVehU','15hXXFea','catch','error','cookie','address','then','/api/auth/get-session','listen','json','4936VQTTJt','close','port','15PGAYNe','/sign-in?redirect=','4007290BAForc','xdg-open\x20\x22','open\x20\x22','text/html;\x20charset=utf-8','Auth\x20server\x20error:','session','log','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','https://dev.lovrabet.com:','https://g.yuntooai.com/cert/lovrabet-dev.json','writeHead','1006212wJJCCq','11253uNaWAg'];a4_0x1858=function(){return _0x5374cc;};return a4_0x1858();}import a4_0xe37208 from'node:https';import{getUserDomain}from'../constant/domain.js';import{exec}from'node:child_process';import{getIsSessionValid}from'../auth/is-session-valid.js';import{cookieFile}from'../auth/constant.js';import{buildLoginSuccessHtml}from'../auth/login-success-html.js';export async function authServer(_0x14d375){const _0x3ee0c3=a4_0x4e49,_0x5f56bd=_0x14d375?.[_0x3ee0c3(0x158)]||![];if(await getIsSessionValid())return!![];const _0x3ad18a=await(await fetch(_0x3ee0c3(0x14a)))[_0x3ee0c3(0x162)]();return new Promise(async(_0x18e5b6,_0x38a04a)=>{const _0x107cbe=_0x3ee0c3;let _0x2fefe2=0x0;const _0x4b8f6c=a4_0xe37208[_0x107cbe(0x157)](_0x3ad18a,async(_0x508db2,_0x3b7e1f)=>{const _0x28f0e5=_0x107cbe,_0x47d1f6=getUserDomain(),_0x594ebf=_0x508db2[_0x28f0e5(0x14f)][_0x28f0e5(0x15d)]||'',_0x163805=await fetch(_0x47d1f6+_0x28f0e5(0x160),{'headers':{'cookie':_0x594ebf}})['then'](_0x8c4fa1=>_0x8c4fa1['json']()),_0x295a35=_0x163805&&_0x163805[_0x28f0e5(0x145)]&&_0x163805['user'];if(_0x295a35){writeFileSync(cookieFile,_0x594ebf,'utf-8'),_0x18e5b6(!![]);const _0x133035=buildLoginSuccessHtml();_0x3b7e1f['writeHead'](0xc8,{'Content-Type':_0x28f0e5(0x143)}),_0x3b7e1f['end'](_0x133035),_0x4b8f6c[_0x28f0e5(0x164)]();}else{const _0xa28fbf=''+encodeURIComponent(_0x28f0e5(0x149)+_0x2fefe2);_0x3b7e1f[_0x28f0e5(0x14b)](0x12e,{'location':_0x47d1f6+_0x28f0e5(0x13f)+_0xa28fbf}),_0x3b7e1f['end']();return;}});_0x4b8f6c[_0x107cbe(0x161)](0x0,_0x107cbe(0x155),()=>{const _0x433e07=_0x107cbe,_0x50a6eb=_0x4b8f6c[_0x433e07(0x15e)]();_0x2fefe2=typeof _0x50a6eb==='object'&&_0x50a6eb?_0x50a6eb[_0x433e07(0x13d)]:Number(_0x50a6eb);const _0xf1abc2=_0x433e07(0x149)+_0x2fefe2;!_0x5f56bd&&(console[_0x433e07(0x146)]('🔐\x20Starting\x20login\x20service...'),console[_0x433e07(0x146)]('📍\x20Login\x20URL:',_0xf1abc2),console[_0x433e07(0x146)]('🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...'),console['log'](''),console[_0x433e07(0x146)]('💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.'),console['log']('')),openInBrowser(_0xf1abc2)[_0x433e07(0x15f)](_0x5927ca=>{const _0x8a9bc=_0x433e07;!_0x5f56bd&&(_0x5927ca?console[_0x8a9bc(0x146)]('✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.'):(console[_0x8a9bc(0x146)](_0x8a9bc(0x147)),console[_0x8a9bc(0x146)](_0x8a9bc(0x148),_0xf1abc2)),console['log'](''));})[_0x433e07(0x15b)](()=>{const _0x2553c9=_0x433e07;!_0x5f56bd&&(console[_0x2553c9(0x146)]('⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically'),console[_0x2553c9(0x146)](_0x2553c9(0x148),_0xf1abc2),console[_0x2553c9(0x146)](''));});}),_0x4b8f6c['on'](_0x107cbe(0x15c),_0x592e32=>{const _0x5be53e=_0x107cbe;!_0x5f56bd&&console['error'](_0x5be53e(0x144),_0x592e32),_0x38a04a(_0x592e32);});});}function openInBrowser(_0x59370a){return new Promise(_0xd12118=>{const _0x1e895f=a4_0x4e49,_0x5a91e4=process[_0x1e895f(0x152)];let _0x16aabe;if(_0x5a91e4==='win32')_0x16aabe='cmd\x20/c\x20start\x20\x22\x22\x20\x22'+_0x59370a+'\x22';else _0x5a91e4===_0x1e895f(0x153)?_0x16aabe=_0x1e895f(0x142)+_0x59370a+'\x22':_0x16aabe=_0x1e895f(0x141)+_0x59370a+'\x22';exec(_0x16aabe,_0x1c424e=>{_0x1c424e?_0xd12118(![]):_0xd12118(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a4_0x3e2ea1(0x146)]('isAuth',isAuth);}
@@ -1 +1 @@
1
- const a5_0x3637c8=a5_0x4dad;(function(_0x3b2dcd,_0x1bd266){const _0x4a3f15=a5_0x4dad,_0x200dda=_0x3b2dcd();while(!![]){try{const _0xa1c1b6=parseInt(_0x4a3f15(0x18f))/0x1*(parseInt(_0x4a3f15(0x184))/0x2)+parseInt(_0x4a3f15(0x187))/0x3+parseInt(_0x4a3f15(0x18e))/0x4+-parseInt(_0x4a3f15(0x188))/0x5*(parseInt(_0x4a3f15(0x18c))/0x6)+-parseInt(_0x4a3f15(0x185))/0x7*(-parseInt(_0x4a3f15(0x18b))/0x8)+-parseInt(_0x4a3f15(0x18a))/0x9+parseInt(_0x4a3f15(0x186))/0xa*(-parseInt(_0x4a3f15(0x18d))/0xb);if(_0xa1c1b6===_0x1bd266)break;else _0x200dda['push'](_0x200dda['shift']());}catch(_0x16e7b2){_0x200dda['push'](_0x200dda['shift']());}}}(a5_0x5001,0x1f870));import{mkdirSync}from'node:fs';import{homedir}from'node:os';function a5_0x4dad(_0x5176be,_0x301297){_0x5176be=_0x5176be-0x184;const _0x50017d=a5_0x5001();let _0x4dad87=_0x50017d[_0x5176be];return _0x4dad87;}import{join}from'node:path';export const configDir=join(homedir(),a5_0x3637c8(0x189));export const cookieFile=join(configDir,a5_0x3637c8(0x190));function a5_0x5001(){const _0x1445c7=['492576nQizOP','29864dhVeUV','cookie','8xSkrsE','470358OvIbEn','90LxVyXv','549627pElubi','872110NyrtdN','.lovrabet','2185659VZgZsl','24hTHISF','6cnKyfX','98978zMBdQJ'];a5_0x5001=function(){return _0x1445c7;};return a5_0x5001();}mkdirSync(configDir,{'recursive':!![]});
1
+ const a5_0x301ea7=a5_0x25b3;(function(_0x1929eb,_0x1aa1b9){const _0x17ddcd=a5_0x25b3,_0x22df17=_0x1929eb();while(!![]){try{const _0x3b4f4a=parseInt(_0x17ddcd(0x195))/0x1*(parseInt(_0x17ddcd(0x19e))/0x2)+-parseInt(_0x17ddcd(0x19d))/0x3*(parseInt(_0x17ddcd(0x19b))/0x4)+-parseInt(_0x17ddcd(0x196))/0x5+-parseInt(_0x17ddcd(0x19a))/0x6*(-parseInt(_0x17ddcd(0x194))/0x7)+parseInt(_0x17ddcd(0x197))/0x8+-parseInt(_0x17ddcd(0x199))/0x9+-parseInt(_0x17ddcd(0x19c))/0xa*(-parseInt(_0x17ddcd(0x198))/0xb);if(_0x3b4f4a===_0x1aa1b9)break;else _0x22df17['push'](_0x22df17['shift']());}catch(_0x271495){_0x22df17['push'](_0x22df17['shift']());}}}(a5_0x5d74,0x8647f));import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const configDir=join(homedir(),a5_0x301ea7(0x19f));function a5_0x25b3(_0x45ee4b,_0x53d465){_0x45ee4b=_0x45ee4b-0x193;const _0x5d74ca=a5_0x5d74();let _0x25b3f3=_0x5d74ca[_0x45ee4b];return _0x25b3f3;}function a5_0x5d74(){const _0x272ad1=['.lovrabet','cookie','147ytekfb','2TJqgEY','4882275QDMTZt','2484088GPwtFM','1194281fnFmFI','234099PbWbJx','193290OCHAzC','64WcOiAa','30ORBXvd','145317OFfZgr','1014766btafLG'];a5_0x5d74=function(){return _0x272ad1;};return a5_0x5d74();}export const cookieFile=join(configDir,a5_0x301ea7(0x193));mkdirSync(configDir,{'recursive':!![]});
@@ -1 +1 @@
1
- (function(_0x23f485,_0xa34938){var _0x5a7326=a6_0x1441,_0x102625=_0x23f485();while(!![]){try{var _0x3ade28=-parseInt(_0x5a7326(0xee))/0x1+parseInt(_0x5a7326(0xec))/0x2*(parseInt(_0x5a7326(0xe9))/0x3)+-parseInt(_0x5a7326(0xea))/0x4*(parseInt(_0x5a7326(0xeb))/0x5)+-parseInt(_0x5a7326(0xf1))/0x6*(parseInt(_0x5a7326(0xf2))/0x7)+-parseInt(_0x5a7326(0xf0))/0x8+parseInt(_0x5a7326(0xed))/0x9+parseInt(_0x5a7326(0xe8))/0xa;if(_0x3ade28===_0xa34938)break;else _0x102625['push'](_0x102625['shift']());}catch(_0x1deda7){_0x102625['push'](_0x102625['shift']());}}}(a6_0x4a93,0xaf99a));import{readFileSync}from'node:fs';function a6_0x1441(_0x257a89,_0x44cf0b){_0x257a89=_0x257a89-0xe8;var _0x4a9357=a6_0x4a93();var _0x1441a8=_0x4a9357[_0x257a89];return _0x1441a8;}function a6_0x4a93(){var _0x46e25f=['6Sqgudk','183508wdfacb','20AYmeqB','148262OfWAAo','12925836yUTIpP','1357387IoNrCq','utf-8','8329360ByzxFQ','6fBGiHn','9879317rPvVCA','31281880tZrUWb'];a6_0x4a93=function(){return _0x46e25f;};return a6_0x4a93();}import{cookieFile}from'../auth/constant.js';export function getCookie(){var _0xc31f3d=a6_0x1441;try{return readFileSync(cookieFile,_0xc31f3d(0xef));}catch{}return'';}
1
+ (function(_0x46d232,_0x26679e){var _0x1546b8=a6_0x1159,_0x52f3ad=_0x46d232();while(!![]){try{var _0x361597=parseInt(_0x1546b8(0x1ad))/0x1*(-parseInt(_0x1546b8(0x1b2))/0x2)+parseInt(_0x1546b8(0x1ae))/0x3*(parseInt(_0x1546b8(0x1b1))/0x4)+-parseInt(_0x1546b8(0x1b4))/0x5+-parseInt(_0x1546b8(0x1b3))/0x6+parseInt(_0x1546b8(0x1b0))/0x7+-parseInt(_0x1546b8(0x1b5))/0x8+parseInt(_0x1546b8(0x1af))/0x9;if(_0x361597===_0x26679e)break;else _0x52f3ad['push'](_0x52f3ad['shift']());}catch(_0x1ccec5){_0x52f3ad['push'](_0x52f3ad['shift']());}}}(a6_0x5c90,0x5d6c5));function a6_0x1159(_0x18e392,_0x3edb3a){_0x18e392=_0x18e392-0x1ad;var _0x5c90d9=a6_0x5c90();var _0x1159f6=_0x5c90d9[_0x18e392];return _0x1159f6;}function a6_0x5c90(){var _0x106d9e=['26229IQDvWQ','16200675XreIHe','5108775CTHWWj','16AypvDa','2ghDeZh','4031400jsckjD','962490XmNHky','4924736HTGcNJ','702221aOzuTW'];a6_0x5c90=function(){return _0x106d9e;};return a6_0x5c90();}import{readFileSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function getCookie(){try{return readFileSync(cookieFile,'utf-8');}catch{}return'';}
@@ -1 +1 @@
1
- (function(_0x4b81bd,_0x4a6be){const _0x595cec=a7_0x1549,_0x98f1bb=_0x4b81bd();while(!![]){try{const _0x3f8c78=-parseInt(_0x595cec(0x139))/0x1+-parseInt(_0x595cec(0x137))/0x2+-parseInt(_0x595cec(0x136))/0x3*(-parseInt(_0x595cec(0x13b))/0x4)+-parseInt(_0x595cec(0x13c))/0x5*(parseInt(_0x595cec(0x134))/0x6)+-parseInt(_0x595cec(0x140))/0x7*(parseInt(_0x595cec(0x13a))/0x8)+-parseInt(_0x595cec(0x135))/0x9+parseInt(_0x595cec(0x138))/0xa;if(_0x3f8c78===_0x4a6be)break;else _0x98f1bb['push'](_0x98f1bb['shift']());}catch(_0x3e6e8a){_0x98f1bb['push'](_0x98f1bb['shift']());}}}(a7_0x527a,0x2f595));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';function a7_0x1549(_0x151764,_0x4a00f5){_0x151764=_0x151764-0x134;const _0x527a1e=a7_0x527a();let _0x154953=_0x527a1e[_0x151764];return _0x154953;}export async function getSessionUserInfo(){const _0x4481cb=a7_0x1549;try{if(!existsSync(cookieFile))return null;const _0xe20e75=readFileSync(cookieFile,'utf-8'),_0x48bdc4=await fetch(getUserDomain()+_0x4481cb(0x13e),{'headers':{'cookie':_0xe20e75}});if(!_0x48bdc4['ok'])return null;const _0x5c6855=await _0x48bdc4[_0x4481cb(0x13f)]();if(!_0x5c6855[_0x4481cb(0x13d)]||!_0x5c6855['user'])return null;return _0x5c6855;}catch{return null;}}function a7_0x527a(){const _0x326b73=['712858VUFEnk','10809280VmofXF','117099XOHBTO','24FhaOuB','8UWJMvW','14615hzyrOe','session','/api/auth/get-session','json','495271VeiyDD','444Qwlefi','2163528bBgWHa','383241iwxbMe'];a7_0x527a=function(){return _0x326b73;};return a7_0x527a();}
1
+ (function(_0x1a1801,_0x3e3560){const _0x5392a2=a7_0x1108,_0x2d91f9=_0x1a1801();while(!![]){try{const _0x63d530=-parseInt(_0x5392a2(0x1a2))/0x1+parseInt(_0x5392a2(0x19f))/0x2+parseInt(_0x5392a2(0x19e))/0x3*(parseInt(_0x5392a2(0x1a8))/0x4)+-parseInt(_0x5392a2(0x1a1))/0x5*(parseInt(_0x5392a2(0x1a3))/0x6)+-parseInt(_0x5392a2(0x1a5))/0x7*(parseInt(_0x5392a2(0x1a6))/0x8)+-parseInt(_0x5392a2(0x1a4))/0x9*(-parseInt(_0x5392a2(0x1ab))/0xa)+-parseInt(_0x5392a2(0x1aa))/0xb*(-parseInt(_0x5392a2(0x1a9))/0xc);if(_0x63d530===_0x3e3560)break;else _0x2d91f9['push'](_0x2d91f9['shift']());}catch(_0x3d163b){_0x2d91f9['push'](_0x2d91f9['shift']());}}}(a7_0x2ca8,0x466bd));function a7_0x1108(_0x34f2c9,_0x22b77d){_0x34f2c9=_0x34f2c9-0x19d;const _0x2ca825=a7_0x2ca8();let _0x1108e2=_0x2ca825[_0x34f2c9];return _0x1108e2;}import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';function a7_0x2ca8(){const _0x3e6d9c=['12KkGMjh','220680lGSStZ','143ioePXh','109580JbwukG','user','177021QLthpI','826676qYpJWS','session','305bAAdwj','167505NRgGna','23934tDLpcd','108gTupRc','130823LQGsji','112FsRKJe','/api/auth/get-session'];a7_0x2ca8=function(){return _0x3e6d9c;};return a7_0x2ca8();}export async function getSessionUserInfo(){const _0x495134=a7_0x1108;try{if(!existsSync(cookieFile))return null;const _0x525db6=readFileSync(cookieFile,'utf-8'),_0x13e76d=await fetch(getUserDomain()+_0x495134(0x1a7),{'headers':{'cookie':_0x525db6}});if(!_0x13e76d['ok'])return null;const _0x546ba1=await _0x13e76d['json']();if(!_0x546ba1[_0x495134(0x1a0)]||!_0x546ba1[_0x495134(0x19d)])return null;return _0x546ba1;}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x502ca1,_0x2d897a){const _0x2f3349=a8_0x2eae,_0xb3d32d=_0x502ca1();while(!![]){try{const _0x5f5e02=parseInt(_0x2f3349(0x102))/0x1*(parseInt(_0x2f3349(0xfd))/0x2)+parseInt(_0x2f3349(0x106))/0x3*(parseInt(_0x2f3349(0x10b))/0x4)+parseInt(_0x2f3349(0xfe))/0x5*(parseInt(_0x2f3349(0x10a))/0x6)+parseInt(_0x2f3349(0x103))/0x7+parseInt(_0x2f3349(0xfb))/0x8*(-parseInt(_0x2f3349(0x100))/0x9)+parseInt(_0x2f3349(0xfc))/0xa+parseInt(_0x2f3349(0x109))/0xb*(-parseInt(_0x2f3349(0xfa))/0xc);if(_0x5f5e02===_0x2d897a)break;else _0xb3d32d['push'](_0xb3d32d['shift']());}catch(_0x5569b6){_0xb3d32d['push'](_0xb3d32d['shift']());}}}(a8_0x2f46,0xcbd10));function a8_0x2eae(_0x1d692b,_0x4b1107){_0x1d692b=_0x1d692b-0xfa;const _0x2f46ee=a8_0x2f46();let _0x2eaebd=_0x2f46ee[_0x1d692b];return _0x2eaebd;}import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';export async function getIsSessionValid(){const _0x4202e8=a8_0x2eae;try{if(!existsSync(cookieFile))return![];const _0x34ac48=readFileSync(cookieFile,_0x4202e8(0x107)),_0x4ef360=await fetch(getUserDomain()+_0x4202e8(0x101),{'headers':{'cookie':_0x34ac48}})[_0x4202e8(0x104)](_0x2df95f=>_0x2df95f[_0x4202e8(0xff)]());return _0x4ef360&&_0x4ef360[_0x4202e8(0x105)]&&_0x4ef360[_0x4202e8(0x108)];}catch{}return![];}function a8_0x2f46(){const _0x4e963e=['2AWyJcr','5pqZBlS','json','459XwfkhX','/api/auth/get-session','63029feGGnS','3786958EmbpRp','then','session','291eMGZfP','utf-8','user','55vLaJDW','7081026BEmSFS','2748mIjVeE','3058872VAUPNL','26088riEZkf','4248400XcFNqa'];a8_0x2f46=function(){return _0x4e963e;};return a8_0x2f46();}
1
+ (function(_0x338a91,_0x54ad03){const _0x2b4a6b=a8_0x21fc,_0x1b3d94=_0x338a91();while(!![]){try{const _0x230f61=parseInt(_0x2b4a6b(0x10a))/0x1*(parseInt(_0x2b4a6b(0x10f))/0x2)+parseInt(_0x2b4a6b(0x103))/0x3*(parseInt(_0x2b4a6b(0x10c))/0x4)+-parseInt(_0x2b4a6b(0x113))/0x5*(parseInt(_0x2b4a6b(0x110))/0x6)+-parseInt(_0x2b4a6b(0x10d))/0x7*(parseInt(_0x2b4a6b(0x104))/0x8)+parseInt(_0x2b4a6b(0x10e))/0x9*(-parseInt(_0x2b4a6b(0x112))/0xa)+-parseInt(_0x2b4a6b(0x109))/0xb+-parseInt(_0x2b4a6b(0x115))/0xc*(-parseInt(_0x2b4a6b(0x105))/0xd);if(_0x230f61===_0x54ad03)break;else _0x1b3d94['push'](_0x1b3d94['shift']());}catch(_0x29a927){_0x1b3d94['push'](_0x1b3d94['shift']());}}}(a8_0x2b83,0x2237b));function a8_0x2b83(){const _0x3deb92=['69dyTGlT','18856bBditp','5506059sKVfYe','then','session','/api/auth/get-session','3047715braJtM','1rPMCkt','json','34460RslQRe','497tOKaus','1611WYzmMX','441356KNhCXp','6UUkkHE','utf-8','5740VmqjRp','775265HAvpvX','user','12EtQiPS'];a8_0x2b83=function(){return _0x3deb92;};return a8_0x2b83();}import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';function a8_0x21fc(_0x495dba,_0x5b7354){_0x495dba=_0x495dba-0x103;const _0x2b833e=a8_0x2b83();let _0x21fcde=_0x2b833e[_0x495dba];return _0x21fcde;}export async function getIsSessionValid(){const _0x57cba6=a8_0x21fc;try{if(!existsSync(cookieFile))return![];const _0x295c44=readFileSync(cookieFile,_0x57cba6(0x111)),_0xc9e612=await fetch(getUserDomain()+_0x57cba6(0x108),{'headers':{'cookie':_0x295c44}})[_0x57cba6(0x106)](_0x3e8da6=>_0x3e8da6[_0x57cba6(0x10b)]());return _0xc9e612&&_0xc9e612[_0x57cba6(0x107)]&&_0xc9e612[_0x57cba6(0x114)];}catch{}return![];}
@@ -1 +1 @@
1
- (function(_0x589ffe,_0x1c820f){const _0x4c0ac4=a9_0x4fee,_0x42937d=_0x589ffe();while(!![]){try{const _0x30a43d=parseInt(_0x4c0ac4(0x13d))/0x1+-parseInt(_0x4c0ac4(0x13a))/0x2*(parseInt(_0x4c0ac4(0x137))/0x3)+parseInt(_0x4c0ac4(0x139))/0x4*(parseInt(_0x4c0ac4(0x13c))/0x5)+parseInt(_0x4c0ac4(0x13f))/0x6+-parseInt(_0x4c0ac4(0x138))/0x7+-parseInt(_0x4c0ac4(0x136))/0x8+-parseInt(_0x4c0ac4(0x13e))/0x9;if(_0x30a43d===_0x1c820f)break;else _0x42937d['push'](_0x42937d['shift']());}catch(_0x509b34){_0x42937d['push'](_0x42937d['shift']());}}}(a9_0x182c,0xe4991));function a9_0x4fee(_0x288f32,_0xfccae4){_0x288f32=_0x288f32-0x136;const _0x182c23=a9_0x182c();let _0x4fee04=_0x182c23[_0x288f32];return _0x4fee04;}export function buildLoginSuccessHtml(){const _0x37cf79=a9_0x4fee,_0x109ae6=_0x37cf79(0x141);return _0x37cf79(0x140)+_0x109ae6+_0x37cf79(0x13b);}function a9_0x182c(){const _0x589472=['7407792tVTZmw','4793586SXBzuo','<!doctype\x20html>\x0a<html\x20lang=\x22en\x22>\x0a<head>\x0a\x20\x20<meta\x20charset=\x22utf-8\x22>\x0a\x20\x20<meta\x20name=\x22viewport\x22\x20content=\x22width=device-width,\x20initial-scale=1\x22>\x0a\x20\x20<title>Login\x20successful\x20·\x20Rabetbase\x20CLI</title>\x0a\x20\x20<style>\x0a\x20\x20\x20\x20:root\x20{\x0a\x20\x20\x20\x20\x20\x20--bg0:\x20#0f1419;\x0a\x20\x20\x20\x20\x20\x20--bg1:\x20#1a2332;\x0a\x20\x20\x20\x20\x20\x20--card:\x20#ffffff;\x0a\x20\x20\x20\x20\x20\x20--text:\x20#1c2128;\x0a\x20\x20\x20\x20\x20\x20--muted:\x20#5c6570;\x0a\x20\x20\x20\x20\x20\x20--accent:\x20#2563eb;\x0a\x20\x20\x20\x20\x20\x20--accent-soft:\x20#eff6ff;\x0a\x20\x20\x20\x20\x20\x20--success:\x20#059669;\x0a\x20\x20\x20\x20\x20\x20--radius:\x2016px;\x0a\x20\x20\x20\x20\x20\x20--shadow:\x200\x2025px\x2050px\x20-12px\x20rgba(15,\x2020,\x2025,\x200.35);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20*\x20{\x20box-sizing:\x20border-box;\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20min-height:\x20100vh;\x0a\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20\x20\x20padding:\x2024px;\x0a\x20\x20\x20\x20\x20\x20font-family:\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20Roboto,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Helvetica\x20Neue\x22,\x20Arial,\x20\x22Noto\x20Sans\x22,\x20\x22PingFang\x20SC\x22,\x20\x22Microsoft\x20YaHei\x22,\x20sans-serif;\x0a\x20\x20\x20\x20\x20\x20background:\x20linear-gradient(160deg,\x20var(--bg0)\x200%,\x20var(--bg1)\x2045%,\x20#243047\x20100%);\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--text);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.card\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20\x20\x20max-width:\x20420px;\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--card);\x0a\x20\x20\x20\x20\x20\x20border-radius:\x20var(--radius);\x0a\x20\x20\x20\x20\x20\x20box-shadow:\x20var(--shadow);\x0a\x20\x20\x20\x20\x20\x20padding:\x2040px\x2036px\x2032px;\x0a\x20\x20\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.icon\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x2064px;\x0a\x20\x20\x20\x20\x20\x20height:\x2064px;\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x20auto\x2020px;\x0a\x20\x20\x20\x20\x20\x20border-radius:\x2050%;\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--accent-soft);\x0a\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.icon\x20svg\x20{\x20width:\x2036px;\x20height:\x2036px;\x20}\x0a\x20\x20\x20\x20h1\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x200\x2012px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x201.375rem;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20600;\x0a\x20\x20\x20\x20\x20\x20letter-spacing:\x20-0.02em;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20p.lead\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x200\x208px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.9375rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--muted);\x0a\x20\x20\x20\x20\x20\x20line-height:\x201.55;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.countdown\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20gap:\x206px;\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2016px;\x0a\x20\x20\x20\x20\x20\x20padding:\x208px\x2014px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.875rem;\x0a\x20\x20\x20\x20\x20\x20font-variant-numeric:\x20tabular-nums;\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--accent);\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--accent-soft);\x0a\x20\x20\x20\x20\x20\x20border-radius:\x20999px;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20#manualMsg\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20none;\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2020px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.8125rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20#b91c1c;\x0a\x20\x20\x20\x20\x20\x20line-height:\x201.45;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.cli-hint\x20{\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2028px;\x0a\x20\x20\x20\x20\x20\x20padding-top:\x2024px;\x0a\x20\x20\x20\x20\x20\x20border-top:\x201px\x20solid\x20#e8ecf0;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.75rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20#8b949e;\x0a\x20\x20\x20\x20}\x0a\x20\x20</style>\x0a</head>\x0a<body>\x0a\x20\x20<div\x20class=\x22card\x22\x20role=\x22status\x22\x20aria-live=\x22polite\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22icon\x22\x20aria-hidden=\x22true\x22>\x0a\x20\x20\x20\x20\x20\x20<svg\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<circle\x20cx=\x2212\x22\x20cy=\x2212\x22\x20r=\x2210\x22\x20stroke=\x22#059669\x22\x20stroke-width=\x222\x22\x20fill=\x22none\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<path\x20d=\x22M8\x2012.5l2.5\x202.5L16\x209\x22\x20stroke=\x22#059669\x22\x20stroke-width=\x222\x22\x20stroke-linecap=\x22round\x22\x20stroke-linejoin=\x22round\x22/>\x0a\x20\x20\x20\x20\x20\x20</svg>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<h1>Login\x20successful</h1>\x0a\x20\x20\x20\x20<p\x20class=\x22lead\x22>You\x20can\x20return\x20to\x20the\x20terminal\x20to\x20continue.\x20This\x20window\x20will\x20try\x20to\x20close\x20automatically.</p>\x0a\x20\x20\x20\x20<div\x20class=\x22countdown\x22>\x0a\x20\x20\x20\x20\x20\x20Closing\x20in\x20<span\x20id=\x22t\x22>5</span>s\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<div\x20id=\x22manualMsg\x22>','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.','1443680dkBzoZ','3408471SoIWIa','5801194HXcWtI','36nCxMuv','2cAdsQz','</div>\x0a\x20\x20\x20\x20<p\x20class=\x22cli-hint\x22>Rabetbase\x20CLI\x20·\x20session\x20saved\x20locally</p>\x0a\x20\x20</div>\x0a\x20\x20<script>\x0a\x20\x20(function(){\x0a\x20\x20\x20\x20var\x20t\x20=\x205;\x0a\x20\x20\x20\x20var\x20el\x20=\x20document.getElementById(\x27t\x27);\x0a\x20\x20\x20\x20var\x20manual\x20=\x20document.getElementById(\x27manualMsg\x27);\x0a\x20\x20\x20\x20var\x20id\x20=\x20setInterval(function(){\x0a\x20\x20\x20\x20\x20\x20t--;\x0a\x20\x20\x20\x20\x20\x20if\x20(t\x20<=\x200)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20clearInterval(id);\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20\x270\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x20window.close();\x20}\x20catch(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20setTimeout(function(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!window.closed)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20manual.style.display\x20=\x20\x27block\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x20300);\x0a\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20String(t);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x201000);\x0a\x20\x20})();\x0a\x20\x20</script>\x0a</body>\x0a</html>','976855MMBSrt','1347514HIGQMi'];a9_0x182c=function(){return _0x589472;};return a9_0x182c();}
1
+ (function(_0xa65dd2,_0x4fad8d){const _0x4caf6a=a9_0x2f69,_0x6b9e4e=_0xa65dd2();while(!![]){try{const _0xf5022f=parseInt(_0x4caf6a(0xbf))/0x1+parseInt(_0x4caf6a(0xc1))/0x2+-parseInt(_0x4caf6a(0xbe))/0x3*(parseInt(_0x4caf6a(0xc5))/0x4)+-parseInt(_0x4caf6a(0xc6))/0x5+-parseInt(_0x4caf6a(0xc4))/0x6+-parseInt(_0x4caf6a(0xc2))/0x7+-parseInt(_0x4caf6a(0xbd))/0x8*(-parseInt(_0x4caf6a(0xc0))/0x9);if(_0xf5022f===_0x4fad8d)break;else _0x6b9e4e['push'](_0x6b9e4e['shift']());}catch(_0x4215f4){_0x6b9e4e['push'](_0x6b9e4e['shift']());}}}(a9_0x2496,0x5057a));function a9_0x2496(){const _0x6822b7=['14064vAaGAV','13848TLuZDR','481958HkSpTS','1467KbgapQ','829644bUfIjJ','1585367WNTONN','<!doctype\x20html>\x0a<html\x20lang=\x22en\x22>\x0a<head>\x0a\x20\x20<meta\x20charset=\x22utf-8\x22>\x0a\x20\x20<meta\x20name=\x22viewport\x22\x20content=\x22width=device-width,\x20initial-scale=1\x22>\x0a\x20\x20<title>Login\x20successful\x20·\x20Rabetbase\x20CLI</title>\x0a\x20\x20<style>\x0a\x20\x20\x20\x20:root\x20{\x0a\x20\x20\x20\x20\x20\x20--bg0:\x20#0f1419;\x0a\x20\x20\x20\x20\x20\x20--bg1:\x20#1a2332;\x0a\x20\x20\x20\x20\x20\x20--card:\x20#ffffff;\x0a\x20\x20\x20\x20\x20\x20--text:\x20#1c2128;\x0a\x20\x20\x20\x20\x20\x20--muted:\x20#5c6570;\x0a\x20\x20\x20\x20\x20\x20--accent:\x20#2563eb;\x0a\x20\x20\x20\x20\x20\x20--accent-soft:\x20#eff6ff;\x0a\x20\x20\x20\x20\x20\x20--success:\x20#059669;\x0a\x20\x20\x20\x20\x20\x20--radius:\x2016px;\x0a\x20\x20\x20\x20\x20\x20--shadow:\x200\x2025px\x2050px\x20-12px\x20rgba(15,\x2020,\x2025,\x200.35);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20*\x20{\x20box-sizing:\x20border-box;\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20min-height:\x20100vh;\x0a\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20\x20\x20padding:\x2024px;\x0a\x20\x20\x20\x20\x20\x20font-family:\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20Roboto,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Helvetica\x20Neue\x22,\x20Arial,\x20\x22Noto\x20Sans\x22,\x20\x22PingFang\x20SC\x22,\x20\x22Microsoft\x20YaHei\x22,\x20sans-serif;\x0a\x20\x20\x20\x20\x20\x20background:\x20linear-gradient(160deg,\x20var(--bg0)\x200%,\x20var(--bg1)\x2045%,\x20#243047\x20100%);\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--text);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.card\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20\x20\x20max-width:\x20420px;\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--card);\x0a\x20\x20\x20\x20\x20\x20border-radius:\x20var(--radius);\x0a\x20\x20\x20\x20\x20\x20box-shadow:\x20var(--shadow);\x0a\x20\x20\x20\x20\x20\x20padding:\x2040px\x2036px\x2032px;\x0a\x20\x20\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.icon\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x2064px;\x0a\x20\x20\x20\x20\x20\x20height:\x2064px;\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x20auto\x2020px;\x0a\x20\x20\x20\x20\x20\x20border-radius:\x2050%;\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--accent-soft);\x0a\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.icon\x20svg\x20{\x20width:\x2036px;\x20height:\x2036px;\x20}\x0a\x20\x20\x20\x20h1\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x200\x2012px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x201.375rem;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20600;\x0a\x20\x20\x20\x20\x20\x20letter-spacing:\x20-0.02em;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20p.lead\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x200\x208px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.9375rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--muted);\x0a\x20\x20\x20\x20\x20\x20line-height:\x201.55;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.countdown\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20gap:\x206px;\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2016px;\x0a\x20\x20\x20\x20\x20\x20padding:\x208px\x2014px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.875rem;\x0a\x20\x20\x20\x20\x20\x20font-variant-numeric:\x20tabular-nums;\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--accent);\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--accent-soft);\x0a\x20\x20\x20\x20\x20\x20border-radius:\x20999px;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20#manualMsg\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20none;\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2020px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.8125rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20#b91c1c;\x0a\x20\x20\x20\x20\x20\x20line-height:\x201.45;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.cli-hint\x20{\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2028px;\x0a\x20\x20\x20\x20\x20\x20padding-top:\x2024px;\x0a\x20\x20\x20\x20\x20\x20border-top:\x201px\x20solid\x20#e8ecf0;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.75rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20#8b949e;\x0a\x20\x20\x20\x20}\x0a\x20\x20</style>\x0a</head>\x0a<body>\x0a\x20\x20<div\x20class=\x22card\x22\x20role=\x22status\x22\x20aria-live=\x22polite\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22icon\x22\x20aria-hidden=\x22true\x22>\x0a\x20\x20\x20\x20\x20\x20<svg\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<circle\x20cx=\x2212\x22\x20cy=\x2212\x22\x20r=\x2210\x22\x20stroke=\x22#059669\x22\x20stroke-width=\x222\x22\x20fill=\x22none\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<path\x20d=\x22M8\x2012.5l2.5\x202.5L16\x209\x22\x20stroke=\x22#059669\x22\x20stroke-width=\x222\x22\x20stroke-linecap=\x22round\x22\x20stroke-linejoin=\x22round\x22/>\x0a\x20\x20\x20\x20\x20\x20</svg>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<h1>Login\x20successful</h1>\x0a\x20\x20\x20\x20<p\x20class=\x22lead\x22>You\x20can\x20return\x20to\x20the\x20terminal\x20to\x20continue.\x20This\x20window\x20will\x20try\x20to\x20close\x20automatically.</p>\x0a\x20\x20\x20\x20<div\x20class=\x22countdown\x22>\x0a\x20\x20\x20\x20\x20\x20Closing\x20in\x20<span\x20id=\x22t\x22>5</span>s\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<div\x20id=\x22manualMsg\x22>','480624dOZbJs','308miviFZ','961175QpTmYa'];a9_0x2496=function(){return _0x6822b7;};return a9_0x2496();}function a9_0x2f69(_0x6bb5cb,_0x5f988){_0x6bb5cb=_0x6bb5cb-0xbd;const _0x2496a9=a9_0x2496();let _0x2f69c6=_0x2496a9[_0x6bb5cb];return _0x2f69c6;}export function buildLoginSuccessHtml(){const _0x13489c=a9_0x2f69,_0x5341db='Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.';return _0x13489c(0xc3)+_0x5341db+'</div>\x0a\x20\x20\x20\x20<p\x20class=\x22cli-hint\x22>Rabetbase\x20CLI\x20·\x20session\x20saved\x20locally</p>\x0a\x20\x20</div>\x0a\x20\x20<script>\x0a\x20\x20(function(){\x0a\x20\x20\x20\x20var\x20t\x20=\x205;\x0a\x20\x20\x20\x20var\x20el\x20=\x20document.getElementById(\x27t\x27);\x0a\x20\x20\x20\x20var\x20manual\x20=\x20document.getElementById(\x27manualMsg\x27);\x0a\x20\x20\x20\x20var\x20id\x20=\x20setInterval(function(){\x0a\x20\x20\x20\x20\x20\x20t--;\x0a\x20\x20\x20\x20\x20\x20if\x20(t\x20<=\x200)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20clearInterval(id);\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20\x270\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x20window.close();\x20}\x20catch(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20setTimeout(function(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!window.closed)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20manual.style.display\x20=\x20\x27block\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x20300);\x0a\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20String(t);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x201000);\x0a\x20\x20})();\x0a\x20\x20</script>\x0a</body>\x0a</html>';}
@@ -1 +1 @@
1
- function a10_0x1b02(_0x7f54dd,_0xd8b04f){_0x7f54dd=_0x7f54dd-0x110;var _0x3daf6d=a10_0x3daf();var _0x1b029c=_0x3daf6d[_0x7f54dd];return _0x1b029c;}(function(_0x105689,_0x256e8b){var _0x3c626d=a10_0x1b02,_0x1b2fba=_0x105689();while(!![]){try{var _0x4e61b0=-parseInt(_0x3c626d(0x110))/0x1*(-parseInt(_0x3c626d(0x112))/0x2)+-parseInt(_0x3c626d(0x118))/0x3+parseInt(_0x3c626d(0x11c))/0x4+-parseInt(_0x3c626d(0x113))/0x5*(-parseInt(_0x3c626d(0x117))/0x6)+parseInt(_0x3c626d(0x114))/0x7+parseInt(_0x3c626d(0x11b))/0x8*(-parseInt(_0x3c626d(0x115))/0x9)+parseInt(_0x3c626d(0x119))/0xa;if(_0x4e61b0===_0x256e8b)break;else _0x1b2fba['push'](_0x1b2fba['shift']());}catch(_0xd6bfdd){_0x1b2fba['push'](_0x1b2fba['shift']());}}}(a10_0x3daf,0xad6e6));function a10_0x3daf(){var _0xc7cb50=['9DxtzRK','✓\x20Logged\x20out','6PBrlNQ','559020IsBHMb','534090ekxSLO','log','8415752qteOOk','4121816xsWyZb','1193VhOnck','!\x20Not\x20logged\x20in','242JVxFTy','1205535offEVe','3355520hWsdRF'];a10_0x3daf=function(){return _0xc7cb50;};return a10_0x3daf();}import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function logout(){var _0x210ec7=a10_0x1b02;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x210ec7(0x11a)](_0x210ec7(0x116))):console[_0x210ec7(0x11a)](_0x210ec7(0x111));}
1
+ (function(_0x3d9ee6,_0x2aec6f){var _0x499ba9=a10_0x536c,_0x8a34ba=_0x3d9ee6();while(!![]){try{var _0x159921=-parseInt(_0x499ba9(0x157))/0x1*(-parseInt(_0x499ba9(0x158))/0x2)+-parseInt(_0x499ba9(0x162))/0x3+-parseInt(_0x499ba9(0x161))/0x4+-parseInt(_0x499ba9(0x15b))/0x5*(-parseInt(_0x499ba9(0x160))/0x6)+parseInt(_0x499ba9(0x15c))/0x7*(parseInt(_0x499ba9(0x15d))/0x8)+parseInt(_0x499ba9(0x15a))/0x9+-parseInt(_0x499ba9(0x159))/0xa;if(_0x159921===_0x2aec6f)break;else _0x8a34ba['push'](_0x8a34ba['shift']());}catch(_0x5bc4de){_0x8a34ba['push'](_0x8a34ba['shift']());}}}(a10_0x269d,0x5db5a));function a10_0x269d(){var _0xc1687e=['10042460HPzhun','5122422kzozIM','2100275FUsxvi','5097197dZDiJI','8uqwyNE','log','✓\x20Logged\x20out','6RQrUlY','1652616vFULrN','152790lOZDFO','1465ZjYyqY','184PmMqtb'];a10_0x269d=function(){return _0xc1687e;};return a10_0x269d();}function a10_0x536c(_0x38f281,_0x2a4bfe){_0x38f281=_0x38f281-0x157;var _0x269d9a=a10_0x269d();var _0x536c68=_0x269d9a[_0x38f281];return _0x536c68;}import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function logout(){var _0x4eedb9=a10_0x536c;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x4eedb9(0x15e)](_0x4eedb9(0x15f))):console[_0x4eedb9(0x15e)]('!\x20Not\x20logged\x20in');}
package/lib/cli-flags.js CHANGED
@@ -1 +1 @@
1
- function a11_0x51f6(_0x24ce83,_0x171fd2){_0x24ce83=_0x24ce83-0x141;const _0x39b347=a11_0x39b3();let _0x51f662=_0x39b347[_0x24ce83];return _0x51f662;}const a11_0x2cb6b4=a11_0x51f6;function a11_0x39b3(){const _0x1f4887=['4905016amIEgB','boolean','8314782TRYQQY','6fKXIkA','951630bifkTB','2392340NOnWJt','987899NLZPVn','7794126dHacOo','2411816TXPuQF'];a11_0x39b3=function(){return _0x1f4887;};return a11_0x39b3();}(function(_0x271ca7,_0x36f7de){const _0x3604b1=a11_0x51f6,_0x3eceb3=_0x271ca7();while(!![]){try{const _0x133af1=parseInt(_0x3604b1(0x149))/0x1+-parseInt(_0x3604b1(0x142))/0x2+-parseInt(_0x3604b1(0x146))/0x3*(-parseInt(_0x3604b1(0x148))/0x4)+parseInt(_0x3604b1(0x147))/0x5+parseInt(_0x3604b1(0x141))/0x6+-parseInt(_0x3604b1(0x145))/0x7+-parseInt(_0x3604b1(0x143))/0x8;if(_0x133af1===_0x36f7de)break;else _0x3eceb3['push'](_0x3eceb3['shift']());}catch(_0x344a0a){_0x3eceb3['push'](_0x3eceb3['shift']());}}}(a11_0x39b3,0xa2bbb));export const dynamicCliFlags={'enableBffSave':{'type':a11_0x2cb6b4(0x144)}};
1
+ const a11_0x4168a7=a11_0x577e;function a11_0x1458(){const _0x48ac1b=['987747iOWBeF','boolean','1456532oLAMqw','16MDHrID','3016628BQgjqv','10579914lbNPco','3805570JwPaKj','6CIUWVf','3311979KXYgmn','180608RlwKUy'];a11_0x1458=function(){return _0x48ac1b;};return a11_0x1458();}(function(_0x5214e8,_0x57b253){const _0x5be805=a11_0x577e,_0xda69ba=_0x5214e8();while(!![]){try{const _0x53006f=-parseInt(_0x5be805(0xe0))/0x1+parseInt(_0x5be805(0xdf))/0x2+-parseInt(_0x5be805(0xde))/0x3+-parseInt(_0x5be805(0xe4))/0x4+parseInt(_0x5be805(0xe6))/0x5*(parseInt(_0x5be805(0xdd))/0x6)+parseInt(_0x5be805(0xe2))/0x7+-parseInt(_0x5be805(0xe3))/0x8*(-parseInt(_0x5be805(0xe5))/0x9);if(_0x53006f===_0x57b253)break;else _0xda69ba['push'](_0xda69ba['shift']());}catch(_0x1ed918){_0xda69ba['push'](_0xda69ba['shift']());}}}(a11_0x1458,0x89dd1));function a11_0x577e(_0x3329a7,_0x3bf788){_0x3329a7=_0x3329a7-0xdd;const _0x145852=a11_0x1458();let _0x577ec8=_0x145852[_0x3329a7];return _0x577ec8;}export const dynamicCliFlags={'enableBffSave':{'type':a11_0x4168a7(0xe1)}};
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a12_0x1c4215=a12_0x29f3;(function(_0x34ef1c,_0x517eb0){const _0x5befb6=a12_0x29f3,_0x4c9a2d=_0x34ef1c();while(!![]){try{const _0xd8e8b5=-parseInt(_0x5befb6(0xd1))/0x1*(parseInt(_0x5befb6(0xea))/0x2)+-parseInt(_0x5befb6(0xbd))/0x3*(-parseInt(_0x5befb6(0xc6))/0x4)+parseInt(_0x5befb6(0xe4))/0x5+-parseInt(_0x5befb6(0xc4))/0x6*(parseInt(_0x5befb6(0xd2))/0x7)+-parseInt(_0x5befb6(0xeb))/0x8+parseInt(_0x5befb6(0xca))/0x9*(parseInt(_0x5befb6(0xd3))/0xa)+parseInt(_0x5befb6(0xe1))/0xb*(parseInt(_0x5befb6(0xef))/0xc);if(_0xd8e8b5===_0x517eb0)break;else _0x4c9a2d['push'](_0x4c9a2d['shift']());}catch(_0x33cc73){_0x4c9a2d['push'](_0x4c9a2d['shift']());}}}(a12_0x4f86,0x24ae9));import a12_0x5a7a0a from'meow';import{showHelp}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{isKnownService,getServiceEntry,findDefinition,deprecatedAliases}from'./commands/registry.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{CLI_BIN_NAME,buildMeowFlags}from'./constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'./generated/build-info.js';import{reportCliHelpTrace}from'./telemetry/cli-help-trace.js';function a12_0x4f86(){const _0x42b033=['log','service','./context.js','exitCode','`\x20in\x20v2.0.\x0a','env','stderr','raw','flags','2805zwKEBs','Hint:\x20','./cli-flags.js','947500AKOPFB','write','apiDomain','runtimeDomain','\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a','unknown_service','25362Pawszt','1430784oQoNxX','ExitPromptError','defaultCommand','unknown','4500SMtGWD','cancelled','3QobuTl','\x0aCancelled.\x0a','help','slice','./constant/env.js','code','⚠\x20`','54mBIOuh','error','718664dqIqCR','command','wildcardDef','userDomain','949356AuhFxu','message','Unexpected\x20error:','now','unknownCommand','Error:\x20','hint','21eisvTE','62503hOmBSL','20qBEyve','string','input','`\x20has\x20been\x20moved\x20to\x20`','dynamicCliFlags'];a12_0x4f86=function(){return _0x42b033;};return a12_0x4f86();}import{reportCommandTrace}from'./telemetry/cli-command-trace.js';import{registerOtelShutdownOnExit,exitWithOtelShutdown}from'./telemetry/register-otel-exit-shutdown.js';let dynamicCliFlags=null;try{dynamicCliFlags=(await import(a12_0x1c4215(0xe3)))[a12_0x1c4215(0xd7)];}catch{}const helpText=generateFullHelp(),cliVersion=GIT_COMMIT!==a12_0x1c4215(0xee)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[a12_0x1c4215(0xc0)](0x0,0xa)+')':VERSION,cli=a12_0x5a7a0a(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{...buildMeowFlags(),...dynamicCliFlags||{}}});function a12_0x29f3(_0x3e2546,_0xc8ef9a){_0x3e2546=_0x3e2546-0xbc;const _0x4f86e7=a12_0x4f86();let _0x29f38a=_0x4f86e7[_0x3e2546];return _0x29f38a;}registerOtelShutdownOnExit(),await run();async function run(){const _0x45e6aa=a12_0x1c4215;let _0x475e98=cli[_0x45e6aa(0xd5)][0x0],_0x205aae=cli[_0x45e6aa(0xd5)][0x1];const _0x477bbb=cli[_0x45e6aa(0xe0)];if(!_0x475e98){await reportCliHelpTrace('global'),showHelp();return;}const _0xb14ed5=deprecatedAliases[_0x475e98];if(_0xb14ed5&&!isKnownService(_0x475e98)){const _0x4e0607=_0x205aae?CLI_BIN_NAME+'\x20'+_0x475e98+'\x20'+_0x205aae:CLI_BIN_NAME+'\x20'+_0x475e98,_0x320cc2=CLI_BIN_NAME+'\x20'+_0xb14ed5[_0x45e6aa(0xd9)]+'\x20'+_0xb14ed5[_0x45e6aa(0xc7)];console['error'](_0x45e6aa(0xc3)+_0x4e0607+_0x45e6aa(0xd6)+_0x320cc2+_0x45e6aa(0xdc)+_0x45e6aa(0xe8)),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0x475e98)){await reportCliHelpTrace(_0x45e6aa(0xe9),{'service':_0x475e98}),showHelp();return;}const _0x9f8674=getServiceEntry(_0x475e98);if(_0x477bbb[_0x45e6aa(0xdd)]&&typeof _0x477bbb['env']===_0x45e6aa(0xd4)){const {initEnv:_0x52495e}=await import(_0x45e6aa(0xc1));_0x52495e(_0x477bbb[_0x45e6aa(0xdd)]);}const {buildConfigFromFlags:_0x2c7a6c}=await import(_0x45e6aa(0xda)),_0x126082=_0x2c7a6c(_0x477bbb);if(!_0x477bbb[_0x45e6aa(0xdd)]&&_0x126082[_0x45e6aa(0xdd)]){const {initEnv:_0x12da37}=await import(_0x45e6aa(0xc1));_0x12da37(_0x126082[_0x45e6aa(0xdd)]);}if(_0x126082[_0x45e6aa(0xdf)]?.[_0x45e6aa(0xe6)]||_0x126082['raw']?.[_0x45e6aa(0xc9)]||_0x126082[_0x45e6aa(0xdf)]?.[_0x45e6aa(0xe7)]){const {initDomains:_0x1daaee}=await import('./constant/domain.js');_0x1daaee({'apiDomain':_0x126082['raw'][_0x45e6aa(0xe6)]||undefined,'userDomain':_0x126082[_0x45e6aa(0xdf)][_0x45e6aa(0xc9)]||undefined,'runtimeDomain':_0x126082[_0x45e6aa(0xdf)][_0x45e6aa(0xe7)]||undefined});}if(!_0x205aae){if(_0x477bbb[_0x45e6aa(0xbf)]){printServiceHelp(_0x475e98);return;}if(_0x9f8674[_0x45e6aa(0xed)])_0x205aae=_0x9f8674['defaultCommand'];else{if(_0x9f8674['wildcardDef']){await dispatchDeclarative(_0x9f8674[_0x45e6aa(0xc8)],_0x475e98,'',[],_0x477bbb,_0x126082);return;}else{printServiceHelp(_0x475e98);return;}}}if(_0x477bbb[_0x45e6aa(0xbf)]&&!findDefinition(_0x475e98,_0x205aae)){printServiceHelp(_0x475e98);return;}{let _0x593793=findDefinition(_0x475e98,_0x205aae),_0x3869eb=cli[_0x45e6aa(0xd5)][_0x45e6aa(0xc0)](0x2);if(!_0x593793){if(_0x9f8674[_0x45e6aa(0xc8)]){if(_0x477bbb['help']){console[_0x45e6aa(0xd8)](generateCommandHelp(_0x9f8674[_0x45e6aa(0xc8)]));return;}_0x593793=_0x9f8674[_0x45e6aa(0xc8)],_0x3869eb=[_0x205aae,...cli[_0x45e6aa(0xd5)][_0x45e6aa(0xc0)](0x2)];}else{printServiceHelp(_0x475e98),await handleErrorAsync(CliErrors[_0x45e6aa(0xce)](_0x475e98+'\x20'+_0x205aae));return;}}if(_0x477bbb['help']){console['log'](generateCommandHelp(_0x593793));return;}await dispatchDeclarative(_0x593793,_0x475e98,_0x205aae,_0x3869eb,_0x477bbb,_0x126082);}}async function dispatchDeclarative(_0x56b03c,_0x1b68f2,_0x4093ed,_0x51e78b,_0x20516b,_0x43bb17){const _0x10efd2=a12_0x1c4215,_0x5ec3b8=Date[_0x10efd2(0xcd)]();let _0x4b67de;try{await runCommand(_0x56b03c,createPipelineEnv(_0x43bb17,_0x20516b,_0x51e78b));}catch(_0x22373f){_0x4b67de=_0x22373f;}await reportCommandTrace({'service':_0x1b68f2,'command':_0x4093ed,'flags':_0x20516b,'durationMs':Date[_0x10efd2(0xcd)]()-_0x5ec3b8,'error':_0x4b67de});if(_0x4b67de)await handleErrorAsync(_0x4b67de);}function printServiceHelp(_0xa3265){const _0x22b8f8=a12_0x1c4215;console[_0x22b8f8(0xd8)](generateServiceHelp(_0xa3265));}async function handleErrorAsync(_0x5d25f2){const _0x54ca7e=a12_0x1c4215;if(_0x5d25f2 instanceof Error&&_0x5d25f2['name']===_0x54ca7e(0xec))return process[_0x54ca7e(0xde)][_0x54ca7e(0xe5)](_0x54ca7e(0xbe)),await exitWithOtelShutdown(0x0);if(_0x5d25f2 instanceof CliError){if(_0x5d25f2[_0x54ca7e(0xc2)]===_0x54ca7e(0xbc))return process[_0x54ca7e(0xde)][_0x54ca7e(0xe5)]('\x0a'+_0x5d25f2[_0x54ca7e(0xcb)]+'\x0a'),await exitWithOtelShutdown(0x0);console['error'](_0x54ca7e(0xcf)+_0x5d25f2['message']);if(_0x5d25f2[_0x54ca7e(0xd0)])console['error'](_0x54ca7e(0xe2)+_0x5d25f2[_0x54ca7e(0xd0)]);return await exitWithOtelShutdown(_0x5d25f2[_0x54ca7e(0xdb)]);}return console[_0x54ca7e(0xc5)](_0x54ca7e(0xcc),_0x5d25f2),await exitWithOtelShutdown(0x1);}
2
+ const a12_0x3d93c2=a12_0x15b9;(function(_0x2c53fc,_0x2df8e4){const _0x31e3ad=a12_0x15b9,_0x291853=_0x2c53fc();while(!![]){try{const _0x35f5bd=parseInt(_0x31e3ad(0x184))/0x1+-parseInt(_0x31e3ad(0x19b))/0x2*(-parseInt(_0x31e3ad(0x1a2))/0x3)+-parseInt(_0x31e3ad(0x19c))/0x4*(parseInt(_0x31e3ad(0x1ab))/0x5)+-parseInt(_0x31e3ad(0x1ac))/0x6*(parseInt(_0x31e3ad(0x17a))/0x7)+parseInt(_0x31e3ad(0x19a))/0x8*(parseInt(_0x31e3ad(0x18c))/0x9)+-parseInt(_0x31e3ad(0x18d))/0xa*(-parseInt(_0x31e3ad(0x17d))/0xb)+parseInt(_0x31e3ad(0x1a5))/0xc;if(_0x35f5bd===_0x2df8e4)break;else _0x291853['push'](_0x291853['shift']());}catch(_0xf7ef30){_0x291853['push'](_0x291853['shift']());}}}(a12_0x9677,0xa9dff));function a12_0x9677(){const _0x2e6edd=['flags','9254SkCiAN','runtimeDomain','\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a','33wrABDf','slice','Hint:\x20','string','dynamicCliFlags','global','input','206582IIFfdI','wildcardDef','unknown','name','help','log','unknownCommand','unknown_service','312867bhGNoV','3460130kZToMS','userDomain','raw','./context.js','hint','cancelled','write','service','code','⚠\x20`','message','\x0aCancelled.\x0a','Error:\x20','8xTIbot','3978wmmyCj','5242636Bjuewt','exitCode','Unexpected\x20error:','./constant/env.js','`\x20in\x20v2.0.\x0a','./constant/domain.js','822JcffDm','stderr','./cli-flags.js','15828192ijJvSx','defaultCommand','env','command','`\x20has\x20been\x20moved\x20to\x20`','error','5ereaCX','5160ggBJgW','now','ExitPromptError'];a12_0x9677=function(){return _0x2e6edd;};return a12_0x9677();}import a12_0x450247 from'meow';import{showHelp}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{isKnownService,getServiceEntry,findDefinition,deprecatedAliases}from'./commands/registry.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';function a12_0x15b9(_0x4dc9ac,_0x250069){_0x4dc9ac=_0x4dc9ac-0x178;const _0x967757=a12_0x9677();let _0x15b92b=_0x967757[_0x4dc9ac];return _0x15b92b;}import{CLI_BIN_NAME,buildMeowFlags}from'./constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'./generated/build-info.js';import{reportCliHelpTrace}from'./telemetry/cli-help-trace.js';import{reportCommandTrace}from'./telemetry/cli-command-trace.js';import{registerOtelShutdownOnExit,exitWithOtelShutdown}from'./telemetry/register-otel-exit-shutdown.js';let dynamicCliFlags=null;try{dynamicCliFlags=(await import(a12_0x3d93c2(0x1a4)))[a12_0x3d93c2(0x181)];}catch{}const helpText=generateFullHelp(),cliVersion=GIT_COMMIT!==a12_0x3d93c2(0x186)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[a12_0x3d93c2(0x17e)](0x0,0xa)+')':VERSION,cli=a12_0x450247(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{...buildMeowFlags(),...dynamicCliFlags||{}}});registerOtelShutdownOnExit(),await run();async function run(){const _0x1b3146=a12_0x3d93c2;let _0xae9628=cli['input'][0x0],_0x4e3fc1=cli[_0x1b3146(0x183)][0x1];const _0x42f77b=cli[_0x1b3146(0x179)];if(!_0xae9628){await reportCliHelpTrace(_0x1b3146(0x182)),showHelp();return;}const _0x1b4693=deprecatedAliases[_0xae9628];if(_0x1b4693&&!isKnownService(_0xae9628)){const _0x35dfd8=_0x4e3fc1?CLI_BIN_NAME+'\x20'+_0xae9628+'\x20'+_0x4e3fc1:CLI_BIN_NAME+'\x20'+_0xae9628,_0x19a55d=CLI_BIN_NAME+'\x20'+_0x1b4693[_0x1b3146(0x194)]+'\x20'+_0x1b4693[_0x1b3146(0x1a8)];console[_0x1b3146(0x1aa)](_0x1b3146(0x196)+_0x35dfd8+_0x1b3146(0x1a9)+_0x19a55d+_0x1b3146(0x1a0)+_0x1b3146(0x17c)),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0xae9628)){await reportCliHelpTrace(_0x1b3146(0x18b),{'service':_0xae9628}),showHelp();return;}const _0x2c315b=getServiceEntry(_0xae9628);if(_0x42f77b[_0x1b3146(0x1a7)]&&typeof _0x42f77b['env']===_0x1b3146(0x180)){const {initEnv:_0x276080}=await import(_0x1b3146(0x19f));_0x276080(_0x42f77b['env']);}const {buildConfigFromFlags:_0x361311}=await import(_0x1b3146(0x190)),_0x4dc1d7=_0x361311(_0x42f77b);if(!_0x42f77b[_0x1b3146(0x1a7)]&&_0x4dc1d7[_0x1b3146(0x1a7)]){const {initEnv:_0x587420}=await import(_0x1b3146(0x19f));_0x587420(_0x4dc1d7[_0x1b3146(0x1a7)]);}if(_0x4dc1d7[_0x1b3146(0x18f)]?.['apiDomain']||_0x4dc1d7[_0x1b3146(0x18f)]?.[_0x1b3146(0x18e)]||_0x4dc1d7[_0x1b3146(0x18f)]?.[_0x1b3146(0x17b)]){const {initDomains:_0x304610}=await import(_0x1b3146(0x1a1));_0x304610({'apiDomain':_0x4dc1d7['raw']['apiDomain']||undefined,'userDomain':_0x4dc1d7[_0x1b3146(0x18f)][_0x1b3146(0x18e)]||undefined,'runtimeDomain':_0x4dc1d7[_0x1b3146(0x18f)][_0x1b3146(0x17b)]||undefined});}if(!_0x4e3fc1){if(_0x42f77b[_0x1b3146(0x188)]){printServiceHelp(_0xae9628);return;}if(_0x2c315b['defaultCommand'])_0x4e3fc1=_0x2c315b[_0x1b3146(0x1a6)];else{if(_0x2c315b[_0x1b3146(0x185)]){await dispatchDeclarative(_0x2c315b['wildcardDef'],_0xae9628,'',[],_0x42f77b,_0x4dc1d7);return;}else{printServiceHelp(_0xae9628);return;}}}if(_0x42f77b[_0x1b3146(0x188)]&&!findDefinition(_0xae9628,_0x4e3fc1)){printServiceHelp(_0xae9628);return;}{let _0x390c36=findDefinition(_0xae9628,_0x4e3fc1),_0x52b507=cli['input'][_0x1b3146(0x17e)](0x2);if(!_0x390c36){if(_0x2c315b[_0x1b3146(0x185)]){if(_0x42f77b[_0x1b3146(0x188)]){console[_0x1b3146(0x189)](generateCommandHelp(_0x2c315b[_0x1b3146(0x185)]));return;}_0x390c36=_0x2c315b[_0x1b3146(0x185)],_0x52b507=[_0x4e3fc1,...cli[_0x1b3146(0x183)]['slice'](0x2)];}else{printServiceHelp(_0xae9628),await handleErrorAsync(CliErrors[_0x1b3146(0x18a)](_0xae9628+'\x20'+_0x4e3fc1));return;}}if(_0x42f77b[_0x1b3146(0x188)]){console[_0x1b3146(0x189)](generateCommandHelp(_0x390c36));return;}await dispatchDeclarative(_0x390c36,_0xae9628,_0x4e3fc1,_0x52b507,_0x42f77b,_0x4dc1d7);}}async function dispatchDeclarative(_0x5f32ad,_0x5aba72,_0x26e1ea,_0x2553d5,_0x313a03,_0x1083b2){const _0x55e098=a12_0x3d93c2,_0x34dae1=Date[_0x55e098(0x1ad)]();let _0x56e0b9;try{await runCommand(_0x5f32ad,createPipelineEnv(_0x1083b2,_0x313a03,_0x2553d5));}catch(_0x39e06e){_0x56e0b9=_0x39e06e;}await reportCommandTrace({'service':_0x5aba72,'command':_0x26e1ea,'flags':_0x313a03,'durationMs':Date[_0x55e098(0x1ad)]()-_0x34dae1,'error':_0x56e0b9});if(_0x56e0b9)await handleErrorAsync(_0x56e0b9);}function printServiceHelp(_0x1b6293){const _0x19f1d7=a12_0x3d93c2;console[_0x19f1d7(0x189)](generateServiceHelp(_0x1b6293));}async function handleErrorAsync(_0x2907a0){const _0x1329fb=a12_0x3d93c2;if(_0x2907a0 instanceof Error&&_0x2907a0[_0x1329fb(0x187)]===_0x1329fb(0x178))return process[_0x1329fb(0x1a3)][_0x1329fb(0x193)](_0x1329fb(0x198)),await exitWithOtelShutdown(0x0);if(_0x2907a0 instanceof CliError){if(_0x2907a0[_0x1329fb(0x195)]===_0x1329fb(0x192))return process[_0x1329fb(0x1a3)][_0x1329fb(0x193)]('\x0a'+_0x2907a0['message']+'\x0a'),await exitWithOtelShutdown(0x0);console[_0x1329fb(0x1aa)](_0x1329fb(0x199)+_0x2907a0[_0x1329fb(0x197)]);if(_0x2907a0[_0x1329fb(0x191)])console['error'](_0x1329fb(0x17f)+_0x2907a0[_0x1329fb(0x191)]);return await exitWithOtelShutdown(_0x2907a0[_0x1329fb(0x19d)]);}return console[_0x1329fb(0x1aa)](_0x1329fb(0x19e),_0x2907a0),await exitWithOtelShutdown(0x1);}
@@ -1 +1 @@
1
- const a13_0x13b7fd=a13_0x5799;function a13_0x7916(){const _0x3756d1=['datasetcode','Output\x20directory\x20(default:\x20./docs)','9395740hVtPgh','\x20of\x20','--datasetcode\x20cannot\x20be\x20empty.','...','stdout','24qPZzde','3657729PQVhNT','filter','\x20succeeded,\x20','Invalid\x20--params:\x20','success','succeed','params','188079MIbVes','\x20failed','855ENjLwn','Doc\x20generation:\x20','Doc\x20generation\x20complete:\x20','Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27','\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20','\x20doc(s)\x20failed','Failed\x20to\x20fetch\x20datasets','\x20doc(s)\x20in\x20','join','\x20dataset(s)','Fetching\x20dataset\x20list\x20for\x20','length','2PnpCnp','datasetCode','2414727eGoUfj','!\x20No\x20datasets\x20found.','640409kFJJFJ','appCode','\x1b[90m*\x20Filtered\x20','\x1b[90m*\x20Generating\x20docs\x20for:\x20','\x20dataset(s)\x1b[0m','cookie','\x20\x20•\x20','66475wtDMDu','padStart','str','output','string','start','Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)','148NUVOqe','must\x20be\x20a\x20JSON\x20object','write','664gekVyH','some','object','map','Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for','Fetched\x20','\x1b[0m','):\x20','fail','validation'];a13_0x7916=function(){return _0x3756d1;};return a13_0x7916();}(function(_0x576e66,_0x414d9f){const _0x5670b2=a13_0x5799,_0x43da4f=_0x576e66();while(!![]){try{const _0x21367e=parseInt(_0x5670b2(0x1c0))/0x1+-parseInt(_0x5670b2(0x1ce))/0x2*(parseInt(_0x5670b2(0x1b9))/0x3)+parseInt(_0x5670b2(0x1a4))/0x4*(-parseInt(_0x5670b2(0x19d))/0x5)+parseInt(_0x5670b2(0x1b8))/0x6*(parseInt(_0x5670b2(0x194))/0x7)+parseInt(_0x5670b2(0x1a7))/0x8*(-parseInt(_0x5670b2(0x1c2))/0x9)+parseInt(_0x5670b2(0x1b3))/0xa+-parseInt(_0x5670b2(0x196))/0xb;if(_0x21367e===_0x414d9f)break;else _0x43da4f['push'](_0x43da4f['shift']());}catch(_0x46eb3d){_0x43da4f['push'](_0x43da4f['shift']());}}}(a13_0x7916,0xb247b));import a13_0x434b24 from'ora';import{fetchModelList}from'../../api/fetch-model-list.js';import{generateDatasetDocs}from'../../api/api-doc.js';import{CliErrors}from'../../errors.js';function a13_0x5799(_0x3f0aef,_0x37e2e1){_0x3f0aef=_0x3f0aef-0x193;const _0x7916d3=a13_0x7916();let _0x5799b7=_0x7916d3[_0x3f0aef];return _0x5799b7;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export const apiGenerate={'service':'api','command':'generate','description':'Generate\x20markdown\x20documentation\x20for\x20all\x20datasets','risk':a13_0x13b7fd(0x1a6),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a13_0x13b7fd(0x1a0),'type':a13_0x13b7fd(0x1a1),'description':a13_0x13b7fd(0x1b2)},{'name':a13_0x13b7fd(0x1b1),'type':a13_0x13b7fd(0x1a1),'description':a13_0x13b7fd(0x1ab)},{'name':a13_0x13b7fd(0x1bf),'type':'string','description':a13_0x13b7fd(0x1a3)}],async 'execute'(_0x25d2f8){const _0x4c83fa=a13_0x13b7fd,_0x486d1b=_0x25d2f8[_0x4c83fa(0x19f)](_0x4c83fa(0x1a0))||'./docs',_0x195c50=_0x25d2f8[_0x4c83fa(0x19f)](_0x4c83fa(0x1b1)),_0x131341=_0x25d2f8[_0x4c83fa(0x19f)](_0x4c83fa(0x1bf));let _0x3785f3;if(_0x131341)try{_0x3785f3=JSON['parse'](_0x131341);if(typeof _0x3785f3!==_0x4c83fa(0x1a9)||_0x3785f3===null||Array['isArray'](_0x3785f3))throw new Error(_0x4c83fa(0x1a5));}catch(_0x1f4f79){throw CliErrors[_0x4c83fa(0x1b0)](_0x4c83fa(0x1bc)+(_0x1f4f79 instanceof Error?_0x1f4f79['message']:String(_0x1f4f79)),_0x4c83fa(0x1c5));}let _0x2d3988;if(_0x195c50){const _0xcbcdfb=_0x195c50['split'](',')[_0x4c83fa(0x1aa)](_0x1d2149=>_0x1d2149['trim']())[_0x4c83fa(0x1ba)](_0x475d53=>_0x475d53[_0x4c83fa(0x1cd)]>0x0);if(_0xcbcdfb[_0x4c83fa(0x1cd)]===0x0)throw CliErrors[_0x4c83fa(0x1b0)](_0x4c83fa(0x1b5));_0x2d3988=new Set(_0xcbcdfb),writeCliSideChannelLine(_0x4c83fa(0x199)+_0xcbcdfb[_0x4c83fa(0x1ca)](',\x20')+'\x1b[0m');}const _0x1245d9=a13_0x434b24(_0x4c83fa(0x1cc)+_0x25d2f8[_0x4c83fa(0x197)]+_0x4c83fa(0x1b6))[_0x4c83fa(0x1a2)]();let _0x406893;try{({configArray:_0x406893}=await fetchModelList(_0x25d2f8[_0x4c83fa(0x197)],_0x25d2f8[_0x4c83fa(0x19b)]),_0x1245d9[_0x4c83fa(0x1be)](_0x4c83fa(0x1ac)+_0x406893[_0x4c83fa(0x1cd)]+_0x4c83fa(0x1cb)));}catch(_0xf98bd7){_0x1245d9[_0x4c83fa(0x1af)](_0x4c83fa(0x1c8));throw _0xf98bd7;}if(_0x406893['length']===0x0)return writeCliSideChannelLine(_0x4c83fa(0x195)),{'ok':!![]};let _0x4e1a74=_0x406893;if(_0x2d3988){_0x4e1a74=_0x406893[_0x4c83fa(0x1ba)](_0x4b4f94=>_0x2d3988['has'](_0x4b4f94['datasetCode']));const _0xb5f7ef=[..._0x2d3988]['filter'](_0x36e7ac=>!_0x406893[_0x4c83fa(0x1a8)](_0x58f59d=>_0x58f59d['datasetCode']===_0x36e7ac));_0xb5f7ef['length']>0x0&&writeCliSideChannelLine(_0x4c83fa(0x1c6)+_0xb5f7ef[_0x4c83fa(0x1ca)](',\x20')+_0x4c83fa(0x1ad));if(_0x4e1a74['length']===0x0)throw CliErrors[_0x4c83fa(0x1b0)]('None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20'+[..._0x2d3988][_0x4c83fa(0x1ca)](',\x20'));writeCliSideChannelLine(_0x4c83fa(0x198)+_0x4e1a74[_0x4c83fa(0x1cd)]+_0x4c83fa(0x1b4)+_0x406893['length']+_0x4c83fa(0x19a));}let _0x383766=0x0;const _0x240027=await generateDatasetDocs(_0x4e1a74,_0x25d2f8['appCode'],_0x25d2f8[_0x4c83fa(0x19b)],_0x486d1b,(_0x4daa4c,_0x185db0,_0x8c8c7f)=>{const _0xeb9545=_0x4c83fa;_0x383766=_0x4daa4c,process[_0xeb9545(0x1b7)][_0xeb9545(0x1a6)]('\x0d\x20\x20['+String(_0x4daa4c)[_0xeb9545(0x19e)](String(_0x185db0)[_0xeb9545(0x1cd)])+'/'+_0x185db0+']\x20'+_0x8c8c7f+'.md');},_0x3785f3);if(_0x383766>0x0)process['stdout'][_0x4c83fa(0x1a6)]('\x0a');const _0x1ec164=_0x240027[_0x4c83fa(0x1ba)](_0x361528=>_0x361528['success'])[_0x4c83fa(0x1cd)],_0x177e99=_0x240027[_0x4c83fa(0x1ba)](_0x5da2ff=>!_0x5da2ff[_0x4c83fa(0x1bd)])[_0x4c83fa(0x1cd)];writeCliSideChannelLine(''),writeCliSideChannelLine('✓\x20Generated\x20'+_0x1ec164+_0x4c83fa(0x1c9)+_0x486d1b);if(_0x177e99>0x0){writeCliSideChannelLine('!\x20'+_0x177e99+_0x4c83fa(0x1c7));for(const _0x969b99 of _0x240027['filter'](_0xa43eb=>!_0xa43eb['success'])){writeCliSideChannelLine(_0x4c83fa(0x19c)+_0x969b99['datasetName']+'\x20('+_0x969b99[_0x4c83fa(0x193)]+_0x4c83fa(0x1ae)+_0x969b99['error']);}}return{'ok':_0x177e99===0x0,'message':_0x177e99>0x0?_0x4c83fa(0x1c3)+_0x1ec164+_0x4c83fa(0x1bb)+_0x177e99+_0x4c83fa(0x1c1):_0x4c83fa(0x1c4)+_0x1ec164+'\x20file(s)'};}};
1
+ const a13_0x38d310=a13_0x3d1a;(function(_0x5784e4,_0x5c60e3){const _0x1e511a=a13_0x3d1a,_0x176767=_0x5784e4();while(!![]){try{const _0x478070=parseInt(_0x1e511a(0x163))/0x1+-parseInt(_0x1e511a(0x136))/0x2+parseInt(_0x1e511a(0x13c))/0x3+parseInt(_0x1e511a(0x134))/0x4+-parseInt(_0x1e511a(0x13f))/0x5+parseInt(_0x1e511a(0x161))/0x6*(parseInt(_0x1e511a(0x162))/0x7)+-parseInt(_0x1e511a(0x144))/0x8*(parseInt(_0x1e511a(0x14e))/0x9);if(_0x478070===_0x5c60e3)break;else _0x176767['push'](_0x176767['shift']());}catch(_0x5811f1){_0x176767['push'](_0x176767['shift']());}}}(a13_0x4dfa,0x4a472));import a13_0x2f316b from'ora';import{fetchModelList}from'../../api/fetch-model-list.js';import{generateDatasetDocs}from'../../api/api-doc.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a13_0x3d1a(_0xe38b,_0x3e27b0){_0xe38b=_0xe38b-0x133;const _0x4dfaa1=a13_0x4dfa();let _0x3d1a18=_0x4dfaa1[_0xe38b];return _0x3d1a18;}import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function a13_0x4dfa(){const _0x46f0e6=['string','filter','\x20doc(s)\x20failed','succeed','\x20of\x20','Doc\x20generation\x20complete:\x20','appCode','None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20','\x20succeeded,\x20','108EEpvTV','Generate\x20markdown\x20documentation\x20for\x20all\x20datasets','parse','validation','datasetcode','success','some','map','message','...','\x20failed','object','Fetched\x20','split','must\x20be\x20a\x20JSON\x20object','isArray','Output\x20directory\x20(default:\x20./docs)','datasetName','output','90930gVCugj','91AwcsSh','319956pJKcFt','\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20','error','✓\x20Generated\x20','\x1b[0m','\x20file(s)','params','\x20dataset(s)\x1b[0m','Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for','start','\x20dataset(s)','\x1b[90m*\x20Filtered\x20','datasetCode','2241468TfGYLN','stdout','564712dIglPE','join','write','Fetching\x20dataset\x20list\x20for\x20','Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27','):\x20','946554nSxQIo','api','fail','2627590itUGjB','length','cookie','Failed\x20to\x20fetch\x20datasets','str','187160FEkeZq'];a13_0x4dfa=function(){return _0x46f0e6;};return a13_0x4dfa();}export const apiGenerate={'service':a13_0x38d310(0x13d),'command':'generate','description':a13_0x38d310(0x14f),'risk':a13_0x38d310(0x138),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a13_0x38d310(0x160),'type':a13_0x38d310(0x145),'description':a13_0x38d310(0x15e)},{'name':a13_0x38d310(0x152),'type':a13_0x38d310(0x145),'description':a13_0x38d310(0x16b)},{'name':a13_0x38d310(0x169),'type':a13_0x38d310(0x145),'description':'Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)'}],async 'execute'(_0x2754a0){const _0x43bef8=a13_0x38d310,_0x166f4a=_0x2754a0[_0x43bef8(0x143)](_0x43bef8(0x160))||'./docs',_0x204f33=_0x2754a0[_0x43bef8(0x143)](_0x43bef8(0x152)),_0xe1c485=_0x2754a0['str'](_0x43bef8(0x169));let _0x52dc7d;if(_0xe1c485)try{_0x52dc7d=JSON[_0x43bef8(0x150)](_0xe1c485);if(typeof _0x52dc7d!==_0x43bef8(0x159)||_0x52dc7d===null||Array[_0x43bef8(0x15d)](_0x52dc7d))throw new Error(_0x43bef8(0x15c));}catch(_0x39ed5f){throw CliErrors[_0x43bef8(0x151)]('Invalid\x20--params:\x20'+(_0x39ed5f instanceof Error?_0x39ed5f[_0x43bef8(0x156)]:String(_0x39ed5f)),_0x43bef8(0x13a));}let _0x37ced2;if(_0x204f33){const _0x9793e7=_0x204f33[_0x43bef8(0x15b)](',')[_0x43bef8(0x155)](_0x4ddf78=>_0x4ddf78['trim']())[_0x43bef8(0x146)](_0x44bde2=>_0x44bde2[_0x43bef8(0x140)]>0x0);if(_0x9793e7[_0x43bef8(0x140)]===0x0)throw CliErrors[_0x43bef8(0x151)]('--datasetcode\x20cannot\x20be\x20empty.');_0x37ced2=new Set(_0x9793e7),writeCliSideChannelLine('\x1b[90m*\x20Generating\x20docs\x20for:\x20'+_0x9793e7[_0x43bef8(0x137)](',\x20')+_0x43bef8(0x167));}const _0x1fba36=a13_0x2f316b(_0x43bef8(0x139)+_0x2754a0[_0x43bef8(0x14b)]+_0x43bef8(0x157))[_0x43bef8(0x16c)]();let _0x1fe62d;try{({configArray:_0x1fe62d}=await fetchModelList(_0x2754a0[_0x43bef8(0x14b)],_0x2754a0[_0x43bef8(0x141)]),_0x1fba36[_0x43bef8(0x148)](_0x43bef8(0x15a)+_0x1fe62d['length']+_0x43bef8(0x16d)));}catch(_0x2dc260){_0x1fba36[_0x43bef8(0x13e)](_0x43bef8(0x142));throw _0x2dc260;}if(_0x1fe62d[_0x43bef8(0x140)]===0x0)return writeCliSideChannelLine('!\x20No\x20datasets\x20found.'),{'ok':!![]};let _0x504652=_0x1fe62d;if(_0x37ced2){_0x504652=_0x1fe62d[_0x43bef8(0x146)](_0x1e1640=>_0x37ced2['has'](_0x1e1640[_0x43bef8(0x133)]));const _0x443bbc=[..._0x37ced2]['filter'](_0x1b91ad=>!_0x1fe62d[_0x43bef8(0x154)](_0xdc6931=>_0xdc6931[_0x43bef8(0x133)]===_0x1b91ad));_0x443bbc[_0x43bef8(0x140)]>0x0&&writeCliSideChannelLine(_0x43bef8(0x164)+_0x443bbc['join'](',\x20')+'\x1b[0m');if(_0x504652[_0x43bef8(0x140)]===0x0)throw CliErrors[_0x43bef8(0x151)](_0x43bef8(0x14c)+[..._0x37ced2][_0x43bef8(0x137)](',\x20'));writeCliSideChannelLine(_0x43bef8(0x16e)+_0x504652[_0x43bef8(0x140)]+_0x43bef8(0x149)+_0x1fe62d[_0x43bef8(0x140)]+_0x43bef8(0x16a));}let _0x3d931e=0x0;const _0x5d406b=await generateDatasetDocs(_0x504652,_0x2754a0['appCode'],_0x2754a0[_0x43bef8(0x141)],_0x166f4a,(_0x2683dc,_0x4f4ce2,_0x4733b9)=>{const _0x2be6d1=_0x43bef8;_0x3d931e=_0x2683dc,process['stdout'][_0x2be6d1(0x138)]('\x0d\x20\x20['+String(_0x2683dc)['padStart'](String(_0x4f4ce2)[_0x2be6d1(0x140)])+'/'+_0x4f4ce2+']\x20'+_0x4733b9+'.md');},_0x52dc7d);if(_0x3d931e>0x0)process[_0x43bef8(0x135)][_0x43bef8(0x138)]('\x0a');const _0x5f37bb=_0x5d406b[_0x43bef8(0x146)](_0x3dcb4e=>_0x3dcb4e[_0x43bef8(0x153)])[_0x43bef8(0x140)],_0x2b4d88=_0x5d406b[_0x43bef8(0x146)](_0x1ad203=>!_0x1ad203[_0x43bef8(0x153)])[_0x43bef8(0x140)];writeCliSideChannelLine(''),writeCliSideChannelLine(_0x43bef8(0x166)+_0x5f37bb+'\x20doc(s)\x20in\x20'+_0x166f4a);if(_0x2b4d88>0x0){writeCliSideChannelLine('!\x20'+_0x2b4d88+_0x43bef8(0x147));for(const _0xd3b953 of _0x5d406b['filter'](_0xe33716=>!_0xe33716[_0x43bef8(0x153)])){writeCliSideChannelLine('\x20\x20•\x20'+_0xd3b953[_0x43bef8(0x15f)]+'\x20('+_0xd3b953[_0x43bef8(0x133)]+_0x43bef8(0x13b)+_0xd3b953[_0x43bef8(0x165)]);}}return{'ok':_0x2b4d88===0x0,'message':_0x2b4d88>0x0?'Doc\x20generation:\x20'+_0x5f37bb+_0x43bef8(0x14d)+_0x2b4d88+_0x43bef8(0x158):_0x43bef8(0x14a)+_0x5f37bb+_0x43bef8(0x168)};}};
@@ -1 +1 @@
1
- (function(_0x4d05d9,_0x34874d){const _0x2e1590=a14_0x4a17,_0x630a94=_0x4d05d9();while(!![]){try{const _0x46d480=parseInt(_0x2e1590(0x146))/0x1*(-parseInt(_0x2e1590(0x150))/0x2)+-parseInt(_0x2e1590(0x14d))/0x3+parseInt(_0x2e1590(0x14b))/0x4*(-parseInt(_0x2e1590(0x149))/0x5)+parseInt(_0x2e1590(0x147))/0x6+parseInt(_0x2e1590(0x14a))/0x7*(parseInt(_0x2e1590(0x148))/0x8)+-parseInt(_0x2e1590(0x14c))/0x9*(-parseInt(_0x2e1590(0x14f))/0xa)+parseInt(_0x2e1590(0x14e))/0xb;if(_0x46d480===_0x34874d)break;else _0x630a94['push'](_0x630a94['shift']());}catch(_0x240eec){_0x630a94['push'](_0x630a94['shift']());}}}(a14_0x13ca,0xa5abe));function a14_0x4a17(_0x5dee1f,_0x48f987){_0x5dee1f=_0x5dee1f-0x146;const _0x13ca8d=a14_0x13ca();let _0x4a1797=_0x13ca8d[_0x5dee1f];return _0x4a1797;}import{apiList}from'../../commands/api/list.js';function a14_0x13ca(){const _0x42c4a9=['23446588SXslFD','4215920OtaHhs','226332JdSsPk','6IWONVS','6884214fatGoa','93040pUNjxv','5tkBKqz','21EyrNhW','4838680hNFEzN','9LReqpE','3504309AcDzJt'];a14_0x13ca=function(){return _0x42c4a9;};return a14_0x13ca();}import{apiPull}from'../../commands/api/pull.js';import{apiGenerate}from'../../commands/api/generate.js';export const apiDefinitions=[apiList,apiPull,apiGenerate];
1
+ (function(_0x541e3b,_0x152788){const _0x282895=a14_0x25ce,_0x3af193=_0x541e3b();while(!![]){try{const _0x8d0bea=parseInt(_0x282895(0x13c))/0x1*(parseInt(_0x282895(0x140))/0x2)+-parseInt(_0x282895(0x13b))/0x3*(parseInt(_0x282895(0x13e))/0x4)+parseInt(_0x282895(0x13f))/0x5+-parseInt(_0x282895(0x13d))/0x6+-parseInt(_0x282895(0x13a))/0x7*(parseInt(_0x282895(0x138))/0x8)+parseInt(_0x282895(0x139))/0x9*(-parseInt(_0x282895(0x137))/0xa)+-parseInt(_0x282895(0x136))/0xb*(-parseInt(_0x282895(0x141))/0xc);if(_0x8d0bea===_0x152788)break;else _0x3af193['push'](_0x3af193['shift']());}catch(_0x18f1a){_0x3af193['push'](_0x3af193['shift']());}}}(a14_0x4727,0x4641c));function a14_0x4727(){const _0x3ea233=['389692RjjUvX','1169340pOLAqz','6WnjqtR','12447768kebgKj','11BHoCMq','66010CCMDDk','116456KLBNXk','207ElQkZP','119VzYDxF','12mjXVIa','2251cfRqgc','1207074PdcnMe'];a14_0x4727=function(){return _0x3ea233;};return a14_0x4727();}function a14_0x25ce(_0x5ae59d,_0x10afd0){_0x5ae59d=_0x5ae59d-0x136;const _0x47276d=a14_0x4727();let _0x25ce71=_0x47276d[_0x5ae59d];return _0x25ce71;}import{apiList}from'../../commands/api/list.js';import{apiPull}from'../../commands/api/pull.js';import{apiGenerate}from'../../commands/api/generate.js';export const apiDefinitions=[apiList,apiPull,apiGenerate];
@@ -1 +1 @@
1
- function a15_0xb839(_0x39f074,_0x2961c8){_0x39f074=_0x39f074-0x120;const _0x251acc=a15_0x251a();let _0xb83928=_0x251acc[_0x39f074];return _0xb83928;}const a15_0x294eb3=a15_0xb839;(function(_0x213b00,_0x5ecb71){const _0x4edc10=a15_0xb839,_0x1a7a4f=_0x213b00();while(!![]){try{const _0x2df001=parseInt(_0x4edc10(0x12c))/0x1*(parseInt(_0x4edc10(0x12d))/0x2)+parseInt(_0x4edc10(0x129))/0x3+-parseInt(_0x4edc10(0x136))/0x4*(-parseInt(_0x4edc10(0x133))/0x5)+parseInt(_0x4edc10(0x131))/0x6*(parseInt(_0x4edc10(0x121))/0x7)+-parseInt(_0x4edc10(0x134))/0x8+parseInt(_0x4edc10(0x135))/0x9*(-parseInt(_0x4edc10(0x128))/0xa)+-parseInt(_0x4edc10(0x120))/0xb;if(_0x2df001===_0x5ecb71)break;else _0x1a7a4f['push'](_0x1a7a4f['shift']());}catch(_0x464f91){_0x1a7a4f['push'](_0x1a7a4f['shift']());}}}(a15_0x251a,0x362e5));function a15_0x251a(){const _0x183890=['env','global','map','appcode','cookie','isDefault','10iUvxId','858066idKMNa','production','rawFlags','2543ULnyUT','214SEcpEg','boolean','push','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','243156bbxHOF','appCode','180KTfWNd','791776CoWfqb','29826kMimkH','4688vnblJw','name','7049218SfyeOp','63SpdjyC'];a15_0x251a=function(){return _0x183890;};return a15_0x251a();}import{initEnv}from'../../constant/env.js';import{fetchModelList}from'../../api/fetch-model-list.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{resolveTargetApps}from'../../commands/api/shared.js';export const apiList={'service':'api','command':'list','description':'List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','risk':'read','requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a15_0x294eb3(0x123),'type':a15_0x294eb3(0x12e),'description':a15_0x294eb3(0x130),'default':![]}],async 'execute'(_0x494aea){const _0x44165e=a15_0x294eb3,_0x3f2c0b=_0x494aea[_0x44165e(0x12b)][_0x44165e(0x125)]?String(_0x494aea[_0x44165e(0x12b)]['appcode']):undefined,_0x4a04c3=resolveTargetApps(_0x494aea,_0x3f2c0b);if(_0x4a04c3){const _0x7a4b99=[];for(const _0xed3b6f of _0x4a04c3){const _0x5af49e=_0xed3b6f[_0x44165e(0x126)]||_0x494aea[_0x44165e(0x126)],_0x44c6c5=_0xed3b6f[_0x44165e(0x122)]||_0x44165e(0x12a);initEnv(_0x44c6c5);const {configArray:_0x21881d}=await fetchModelList(_0xed3b6f[_0x44165e(0x125)],_0x5af49e);_0x7a4b99[_0x44165e(0x12f)](..._0x21881d[_0x44165e(0x124)](_0x4d0dcf=>({..._0x4d0dcf,'_appName':_0xed3b6f[_0x44165e(0x137)],'_appCode':_0xed3b6f['appcode'],'_env':_0x44c6c5,'_isDefault':_0xed3b6f[_0x44165e(0x127)]})));}return{'ok':!![],'data':_0x7a4b99};}const {configArray:_0x24c86f}=await fetchModelList(_0x494aea[_0x44165e(0x132)],_0x494aea[_0x44165e(0x126)]);return{'ok':!![],'data':_0x24c86f};}};
1
+ const a15_0x7d0cf7=a15_0x2e09;(function(_0x54dabb,_0x5a108c){const _0x27f1ff=a15_0x2e09,_0x2dcda3=_0x54dabb();while(!![]){try{const _0x5698d5=-parseInt(_0x27f1ff(0x100))/0x1*(parseInt(_0x27f1ff(0xfd))/0x2)+-parseInt(_0x27f1ff(0xf0))/0x3+parseInt(_0x27f1ff(0x102))/0x4*(-parseInt(_0x27f1ff(0xf2))/0x5)+parseInt(_0x27f1ff(0xef))/0x6+parseInt(_0x27f1ff(0xff))/0x7+parseInt(_0x27f1ff(0xf9))/0x8*(-parseInt(_0x27f1ff(0xf6))/0x9)+parseInt(_0x27f1ff(0xf1))/0xa;if(_0x5698d5===_0x5a108c)break;else _0x2dcda3['push'](_0x2dcda3['shift']());}catch(_0x4db47b){_0x2dcda3['push'](_0x2dcda3['shift']());}}}(a15_0x30a5,0x5d2ee));function a15_0x2e09(_0x3eb954,_0x2cf647){_0x3eb954=_0x3eb954-0xee;const _0x30a5f3=a15_0x30a5();let _0x2e0900=_0x30a5f3[_0x3eb954];return _0x2e0900;}import{initEnv}from'../../constant/env.js';import{fetchModelList}from'../../api/fetch-model-list.js';function a15_0x30a5(){const _0x320177=['production','9MXOtse','map','read','3996008jALgqO','list','appcode','global','404GEYAUZ','push','1199317YrCbAE','27DMaODo','cookie','2214364vupmVT','rawFlags','3466314lQdhqK','2216283GKMlGT','14299350skqofQ','5XsFvJj','api','boolean'];a15_0x30a5=function(){return _0x320177;};return a15_0x30a5();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{resolveTargetApps}from'../../commands/api/shared.js';export const apiList={'service':a15_0x7d0cf7(0xf3),'command':a15_0x7d0cf7(0xfa),'description':'List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','risk':a15_0x7d0cf7(0xf8),'requiresAppCode':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a15_0x7d0cf7(0xfc),'type':a15_0x7d0cf7(0xf4),'description':'Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','default':![]}],async 'execute'(_0x2c894d){const _0x1da2a2=a15_0x7d0cf7,_0x30ee92=_0x2c894d[_0x1da2a2(0xee)]['appcode']?String(_0x2c894d[_0x1da2a2(0xee)][_0x1da2a2(0xfb)]):undefined,_0x5ed2a5=resolveTargetApps(_0x2c894d,_0x30ee92);if(_0x5ed2a5){const _0x1ea7de=[];for(const _0x35f2a0 of _0x5ed2a5){const _0x38a2cb=_0x35f2a0[_0x1da2a2(0x101)]||_0x2c894d[_0x1da2a2(0x101)],_0x13ed09=_0x35f2a0['env']||_0x1da2a2(0xf5);initEnv(_0x13ed09);const {configArray:_0xafe81f}=await fetchModelList(_0x35f2a0[_0x1da2a2(0xfb)],_0x38a2cb);_0x1ea7de[_0x1da2a2(0xfe)](..._0xafe81f[_0x1da2a2(0xf7)](_0x3591a5=>({..._0x3591a5,'_appName':_0x35f2a0['name'],'_appCode':_0x35f2a0[_0x1da2a2(0xfb)],'_env':_0x13ed09,'_isDefault':_0x35f2a0['isDefault']})));}return{'ok':!![],'data':_0x1ea7de};}const {configArray:_0x11b637}=await fetchModelList(_0x2c894d['appCode'],_0x2c894d[_0x1da2a2(0x101)]);return{'ok':!![],'data':_0x11b637};}};
@@ -1 +1 @@
1
- const a16_0x40ea49=a16_0x2ed1;(function(_0x7bab2f,_0x2fc88b){const _0x5460cd=a16_0x2ed1,_0x581da4=_0x7bab2f();while(!![]){try{const _0x1a0e7d=parseInt(_0x5460cd(0x144))/0x1+parseInt(_0x5460cd(0x123))/0x2*(parseInt(_0x5460cd(0x143))/0x3)+-parseInt(_0x5460cd(0x146))/0x4+parseInt(_0x5460cd(0x11e))/0x5*(parseInt(_0x5460cd(0x133))/0x6)+parseInt(_0x5460cd(0x12d))/0x7+parseInt(_0x5460cd(0x12f))/0x8+parseInt(_0x5460cd(0x13d))/0x9*(-parseInt(_0x5460cd(0x14d))/0xa);if(_0x1a0e7d===_0x2fc88b)break;else _0x581da4['push'](_0x581da4['shift']());}catch(_0x189b96){_0x581da4['push'](_0x581da4['shift']());}}}(a16_0x39cd,0xde273));import a16_0x42ad9b from'ora';import a16_0x173854 from'node:path';import{initEnv,getEnv}from'../../constant/env.js';import{fetchModelList}from'../../api/fetch-model-list.js';import{generateApiFile}from'../../api/generate-api-file.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{DEFAULT_API_DIR}from'../../constant/paths.js';import{resolveTargetApps}from'../../commands/api/shared.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function a16_0x2ed1(_0x5d70af,_0x2d72b3){_0x5d70af=_0x5d70af-0x116;const _0x39cd92=a16_0x39cd();let _0x2ed160=_0x39cd92[_0x5d70af];return _0x2ed160;}function a16_0x39cd(){const _0x538178=['\x20succeeded,\x20','modelCount','108730fwKeVl','\x20dataset(s),\x20generated\x20','Output\x20directory\x20(default:\x20','write','-api','env','production','rawFlags','\x20failed','15430yKgwJD','cookie','client','-client','appcode','196370zZBhBH','\x20\x20•\x20','name','global','Done:\x20','fail','Pulling\x20','Pulled\x20','message','appCode','8480360NNvFsu','Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20(','11023248lxzKHs','slice','length','apiFilePath','516yEiBbB','.ts','...','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','pull','Pulling\x20API\x20config\x20for\x20','isDefault','output','clientFilePath','Failed:\x20','2304feEyKd','start','string','succeed','\x20dataset(s)\x20→\x20','\x20app(s)\x20failed','18WcKiYJ','1160535DEyKJY',')...','3644000oljwfn','apiDir','join','includes','\x20model(s)'];a16_0x39cd=function(){return _0x538178;};return a16_0x39cd();}export const apiPull={'service':'api','command':a16_0x40ea49(0x137),'description':a16_0x40ea49(0x12e)+DEFAULT_API_DIR+'/)','risk':a16_0x40ea49(0x118),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a16_0x40ea49(0x13a),'type':a16_0x40ea49(0x13f),'description':a16_0x40ea49(0x117)+DEFAULT_API_DIR+'/)'},{'name':a16_0x40ea49(0x126),'type':'boolean','description':a16_0x40ea49(0x136),'default':![]}],async 'execute'(_0x4530e1){const _0x6b8b77=a16_0x40ea49,_0x206810=_0x4530e1[_0x6b8b77(0x11c)]['appcode']?String(_0x4530e1[_0x6b8b77(0x11c)][_0x6b8b77(0x122)]):undefined,_0x4cd895=_0x4530e1['str'](_0x6b8b77(0x13a))||undefined,_0x57c2eb=resolveTargetApps(_0x4530e1,_0x206810);if(_0x57c2eb){let _0x2e948b=0x0,_0x50fe8c=0x0;for(const _0x32fb7b of _0x57c2eb){const _0x49d7b1=_0x32fb7b[_0x6b8b77(0x11f)]||_0x4530e1[_0x6b8b77(0x11f)],_0x47f84c=_0x32fb7b[_0x6b8b77(0x11a)]||_0x6b8b77(0x11b);initEnv(_0x47f84c);const _0x41626d=_0x32fb7b[_0x6b8b77(0x147)]||_0x4cd895||_0x4530e1['apiDir']||DEFAULT_API_DIR,_0x18796d=_0x32fb7b['isDefault']?'':_0x32fb7b[_0x6b8b77(0x125)]||_0x32fb7b[_0x6b8b77(0x122)],_0x481175=a16_0x42ad9b(_0x6b8b77(0x129)+_0x32fb7b[_0x6b8b77(0x125)]+'\x20('+_0x32fb7b[_0x6b8b77(0x122)]+_0x6b8b77(0x145))[_0x6b8b77(0x13e)]();try{const {configArray:_0x360b82}=await fetchModelList(_0x32fb7b['appcode'],_0x49d7b1),_0x5d1eab=await generateApiFile(_0x360b82,_0x18796d,_0x32fb7b[_0x6b8b77(0x122)],_0x32fb7b[_0x6b8b77(0x139)],_0x47f84c,_0x41626d,_0x32fb7b['name']);_0x481175[_0x6b8b77(0x140)](_0x32fb7b[_0x6b8b77(0x125)]+':\x20'+_0x360b82[_0x6b8b77(0x131)]+_0x6b8b77(0x141)+_0x5d1eab[_0x6b8b77(0x14c)]+_0x6b8b77(0x14a)),writeCliSideChannelLine(_0x6b8b77(0x124)+_0x5d1eab[_0x6b8b77(0x132)]),writeCliSideChannelLine(_0x6b8b77(0x124)+_0x5d1eab[_0x6b8b77(0x13b)]),_0x2e948b++;}catch(_0x17657d){_0x481175[_0x6b8b77(0x128)](_0x32fb7b[_0x6b8b77(0x125)]+':\x20'+(_0x17657d instanceof Error?_0x17657d[_0x6b8b77(0x12b)]:String(_0x17657d))),_0x50fe8c++;}}writeCliSideChannelLine('');if(_0x50fe8c>0x0)writeCliSideChannelLine('!\x20'+_0x50fe8c+_0x6b8b77(0x142));return{'ok':_0x50fe8c===0x0,'message':_0x6b8b77(0x127)+_0x2e948b+_0x6b8b77(0x14b)+_0x50fe8c+_0x6b8b77(0x11d)};}const _0x5304d8=_0x206810&&_0x206810[_0x6b8b77(0x149)]('-')?_0x206810['split']('-')[_0x6b8b77(0x130)](0x1)[_0x6b8b77(0x148)]('-'):'',_0x1802e6=_0x4cd895||_0x4530e1[_0x6b8b77(0x147)]||DEFAULT_API_DIR,_0x2d720b=!_0x206810,_0x14c047=a16_0x42ad9b(_0x6b8b77(0x138)+_0x4530e1[_0x6b8b77(0x12c)]+_0x6b8b77(0x135))['start']();try{const {configArray:_0x42f2ff}=await fetchModelList(_0x4530e1['appCode'],_0x4530e1['cookie']),_0x255bfa=await generateApiFile(_0x42f2ff,_0x5304d8,_0x4530e1[_0x6b8b77(0x12c)],_0x2d720b,getEnv(),_0x1802e6);_0x14c047[_0x6b8b77(0x140)](_0x6b8b77(0x12a)+_0x42f2ff[_0x6b8b77(0x131)]+_0x6b8b77(0x116)+_0x255bfa[_0x6b8b77(0x14c)]+_0x6b8b77(0x14a));const _0xcf26e8=_0x5304d8?_0x5304d8+_0x6b8b77(0x119):'api',_0x4afb0d=_0x5304d8?_0x5304d8+_0x6b8b77(0x121):_0x6b8b77(0x120);return writeCliSideChannelLine(_0x6b8b77(0x124)+a16_0x173854['join'](_0x1802e6,_0xcf26e8+_0x6b8b77(0x134))),writeCliSideChannelLine(_0x6b8b77(0x124)+a16_0x173854[_0x6b8b77(0x148)](_0x1802e6,_0x4afb0d+'.ts')),{'ok':!![],'data':{'datasetCount':_0x42f2ff['length'],'modelCount':_0x255bfa[_0x6b8b77(0x14c)]}};}catch(_0x36c362){_0x14c047[_0x6b8b77(0x128)](_0x6b8b77(0x13c)+(_0x36c362 instanceof Error?_0x36c362['message']:String(_0x36c362)));throw _0x36c362;}}};
1
+ const a16_0x3bc333=a16_0xbe5c;(function(_0x17b9a3,_0x84dee){const _0x26c92b=a16_0xbe5c,_0x4e145d=_0x17b9a3();while(!![]){try{const _0x1b9fbb=-parseInt(_0x26c92b(0x17d))/0x1*(parseInt(_0x26c92b(0x190))/0x2)+parseInt(_0x26c92b(0x182))/0x3+-parseInt(_0x26c92b(0x189))/0x4+parseInt(_0x26c92b(0x1a5))/0x5*(parseInt(_0x26c92b(0x193))/0x6)+-parseInt(_0x26c92b(0x18f))/0x7+parseInt(_0x26c92b(0x18d))/0x8*(-parseInt(_0x26c92b(0x19e))/0x9)+parseInt(_0x26c92b(0x178))/0xa;if(_0x1b9fbb===_0x84dee)break;else _0x4e145d['push'](_0x4e145d['shift']());}catch(_0x528906){_0x4e145d['push'](_0x4e145d['shift']());}}}(a16_0x229d,0xa5ebf));import a16_0x3b1487 from'ora';import a16_0x11ba13 from'node:path';import{initEnv,getEnv}from'../../constant/env.js';import{fetchModelList}from'../../api/fetch-model-list.js';import{generateApiFile}from'../../api/generate-api-file.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{DEFAULT_API_DIR}from'../../constant/paths.js';import{resolveTargetApps}from'../../commands/api/shared.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function a16_0xbe5c(_0x3f8b2f,_0x4a04ed){_0x3f8b2f=_0x3f8b2f-0x178;const _0x229d19=a16_0x229d();let _0xbe5c64=_0x229d19[_0x3f8b2f];return _0xbe5c64;}export const apiPull={'service':a16_0x3bc333(0x17e),'command':a16_0x3bc333(0x195),'description':a16_0x3bc333(0x17c)+DEFAULT_API_DIR+'/)','risk':a16_0x3bc333(0x17b),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a16_0x3bc333(0x199),'type':a16_0x3bc333(0x192),'description':a16_0x3bc333(0x1a4)+DEFAULT_API_DIR+'/)'},{'name':a16_0x3bc333(0x1a2),'type':'boolean','description':'Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','default':![]}],async 'execute'(_0x192ba3){const _0x2c3467=a16_0x3bc333,_0x98945c=_0x192ba3[_0x2c3467(0x17a)][_0x2c3467(0x188)]?String(_0x192ba3[_0x2c3467(0x17a)]['appcode']):undefined,_0x476b7f=_0x192ba3[_0x2c3467(0x19f)](_0x2c3467(0x199))||undefined,_0x48babf=resolveTargetApps(_0x192ba3,_0x98945c);if(_0x48babf){let _0x54ace5=0x0,_0x1227a4=0x0;for(const _0x11e485 of _0x48babf){const _0x4ec210=_0x11e485[_0x2c3467(0x191)]||_0x192ba3[_0x2c3467(0x191)],_0x2467d1=_0x11e485[_0x2c3467(0x179)]||_0x2c3467(0x198);initEnv(_0x2467d1);const _0xdf8603=_0x11e485[_0x2c3467(0x196)]||_0x476b7f||_0x192ba3[_0x2c3467(0x196)]||DEFAULT_API_DIR,_0x43c6ba=_0x11e485['isDefault']?'':_0x11e485['name']||_0x11e485[_0x2c3467(0x188)],_0x5f2bd1=a16_0x3b1487(_0x2c3467(0x181)+_0x11e485[_0x2c3467(0x1a7)]+'\x20('+_0x11e485[_0x2c3467(0x188)]+')...')[_0x2c3467(0x186)]();try{const {configArray:_0x30b107}=await fetchModelList(_0x11e485['appcode'],_0x4ec210),_0x376521=await generateApiFile(_0x30b107,_0x43c6ba,_0x11e485[_0x2c3467(0x188)],_0x11e485['isDefault'],_0x2467d1,_0xdf8603,_0x11e485[_0x2c3467(0x1a7)]);_0x5f2bd1[_0x2c3467(0x1a8)](_0x11e485[_0x2c3467(0x1a7)]+':\x20'+_0x30b107['length']+'\x20dataset(s)\x20→\x20'+_0x376521[_0x2c3467(0x185)]+_0x2c3467(0x19b)),writeCliSideChannelLine(_0x2c3467(0x19d)+_0x376521['apiFilePath']),writeCliSideChannelLine(_0x2c3467(0x19d)+_0x376521['clientFilePath']),_0x54ace5++;}catch(_0x2c2e70){_0x5f2bd1[_0x2c3467(0x183)](_0x11e485[_0x2c3467(0x1a7)]+':\x20'+(_0x2c2e70 instanceof Error?_0x2c2e70['message']:String(_0x2c2e70))),_0x1227a4++;}}writeCliSideChannelLine('');if(_0x1227a4>0x0)writeCliSideChannelLine('!\x20'+_0x1227a4+_0x2c3467(0x18a));return{'ok':_0x1227a4===0x0,'message':_0x2c3467(0x1a1)+_0x54ace5+_0x2c3467(0x1a0)+_0x1227a4+'\x20failed'};}const _0x5cbc42=_0x98945c&&_0x98945c[_0x2c3467(0x19a)]('-')?_0x98945c[_0x2c3467(0x194)]('-')[_0x2c3467(0x187)](0x1)[_0x2c3467(0x1a3)]('-'):'',_0x8a7511=_0x476b7f||_0x192ba3['apiDir']||DEFAULT_API_DIR,_0x915f62=!_0x98945c,_0x5c1e79=a16_0x3b1487('Pulling\x20API\x20config\x20for\x20'+_0x192ba3[_0x2c3467(0x18e)]+_0x2c3467(0x18b))[_0x2c3467(0x186)]();try{const {configArray:_0x39fdc6}=await fetchModelList(_0x192ba3[_0x2c3467(0x18e)],_0x192ba3[_0x2c3467(0x191)]),_0x303d5b=await generateApiFile(_0x39fdc6,_0x5cbc42,_0x192ba3[_0x2c3467(0x18e)],_0x915f62,getEnv(),_0x8a7511);_0x5c1e79[_0x2c3467(0x1a8)](_0x2c3467(0x197)+_0x39fdc6['length']+'\x20dataset(s),\x20generated\x20'+_0x303d5b['modelCount']+_0x2c3467(0x19b));const _0x161a88=_0x5cbc42?_0x5cbc42+_0x2c3467(0x184):'api',_0x43465b=_0x5cbc42?_0x5cbc42+_0x2c3467(0x17f):_0x2c3467(0x180);return writeCliSideChannelLine('\x20\x20•\x20'+a16_0x11ba13[_0x2c3467(0x1a3)](_0x8a7511,_0x161a88+_0x2c3467(0x1a6))),writeCliSideChannelLine(_0x2c3467(0x19d)+a16_0x11ba13[_0x2c3467(0x1a3)](_0x8a7511,_0x43465b+_0x2c3467(0x1a6))),{'ok':!![],'data':{'datasetCount':_0x39fdc6[_0x2c3467(0x19c)],'modelCount':_0x303d5b[_0x2c3467(0x185)]}};}catch(_0x444b2f){_0x5c1e79['fail'](_0x2c3467(0x18c)+(_0x444b2f instanceof Error?_0x444b2f['message']:String(_0x444b2f)));throw _0x444b2f;}}};function a16_0x229d(){const _0x292f45=['...','Failed:\x20','8eNdlZB','appCode','3630662TDvlqv','1772TUbjez','cookie','string','20646YNncjn','split','pull','apiDir','Pulled\x20','production','output','includes','\x20model(s)','length','\x20\x20•\x20','130023hkmYSi','str','\x20succeeded,\x20','Done:\x20','global','join','Output\x20directory\x20(default:\x20','1195xDbcCv','.ts','name','succeed','9174140ZYGWQQ','env','rawFlags','write','Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20(','222lsvYKk','api','-client','client','Pulling\x20','1447689BcwDqL','fail','-api','modelCount','start','slice','appcode','3251824tLdhWu','\x20app(s)\x20failed'];a16_0x229d=function(){return _0x292f45;};return a16_0x229d();}
@@ -1 +1 @@
1
- function a17_0x15a5(){const _0x2be545=['3405104XLUVCO','global','validation','name','length','selectedAppName','833623QNkXtz','57586ggrBpv','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20','join','2253753GLHBCL','12RtlbmL','42YcMiYp','map','8UjTHYG','bool','App\x20\x22','1040870VtRSqj','45DfgWra','39HiaWyX','852695QywZDB','6051925zTZhLl'];a17_0x15a5=function(){return _0x2be545;};return a17_0x15a5();}(function(_0x427aa0,_0x2578f5){const _0x2fd546=a17_0x2832,_0x19ad5b=_0x427aa0();while(!![]){try{const _0x514fb2=-parseInt(_0x2fd546(0x11b))/0x1*(parseInt(_0x2fd546(0x10f))/0x2)+parseInt(_0x2fd546(0x112))/0x3+-parseInt(_0x2fd546(0x116))/0x4*(parseInt(_0x2fd546(0x11c))/0x5)+-parseInt(_0x2fd546(0x114))/0x6*(-parseInt(_0x2fd546(0x10e))/0x7)+-parseInt(_0x2fd546(0x11e))/0x8+-parseInt(_0x2fd546(0x11a))/0x9*(-parseInt(_0x2fd546(0x119))/0xa)+-parseInt(_0x2fd546(0x11d))/0xb*(-parseInt(_0x2fd546(0x113))/0xc);if(_0x514fb2===_0x2578f5)break;else _0x19ad5b['push'](_0x19ad5b['shift']());}catch(_0xedbf69){_0x19ad5b['push'](_0x19ad5b['shift']());}}}(a17_0x15a5,0xbaf91));function a17_0x2832(_0x5eae3b,_0x33e696){_0x5eae3b=_0x5eae3b-0x109;const _0x15a59e=a17_0x15a5();let _0x2832f5=_0x15a59e[_0x5eae3b];return _0x2832f5;}import{getMultiAppConfigs}from'../../utils/config.js';import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0x5ea41a,_0x2b2bd6){const _0x4899d0=a17_0x2832;if(_0x2b2bd6)return null;const _0x51ed8c=_0x5ea41a[_0x4899d0(0x117)](_0x4899d0(0x109))?'merged':'project';let _0x164728=getMultiAppConfigs(_0x51ed8c);if(!_0x164728||_0x164728[_0x4899d0(0x10c)]===0x0)return null;if(_0x5ea41a['selectedAppName']){const _0x570c33=_0x164728['filter'](_0x207c7b=>_0x207c7b[_0x4899d0(0x10b)]===_0x5ea41a[_0x4899d0(0x10d)]);if(_0x570c33['length']===0x0){const _0x2d8c9c=_0x164728[_0x4899d0(0x115)](_0xc3ed56=>_0xc3ed56['name'])[_0x4899d0(0x111)](',\x20');throw CliErrors[_0x4899d0(0x10a)](_0x4899d0(0x118)+_0x5ea41a['selectedAppName']+_0x4899d0(0x110)+_0x2d8c9c);}_0x164728=_0x570c33;}return _0x164728;}
1
+ (function(_0x1914c1,_0x17d158){const _0x1f72b1=a17_0x714d,_0x4128df=_0x1914c1();while(!![]){try{const _0x32eece=-parseInt(_0x1f72b1(0x191))/0x1*(-parseInt(_0x1f72b1(0x19a))/0x2)+-parseInt(_0x1f72b1(0x19e))/0x3+-parseInt(_0x1f72b1(0x192))/0x4+parseInt(_0x1f72b1(0x18f))/0x5+-parseInt(_0x1f72b1(0x19b))/0x6+parseInt(_0x1f72b1(0x195))/0x7+-parseInt(_0x1f72b1(0x18d))/0x8*(-parseInt(_0x1f72b1(0x193))/0x9);if(_0x32eece===_0x17d158)break;else _0x4128df['push'](_0x4128df['shift']());}catch(_0x4da8b3){_0x4128df['push'](_0x4128df['shift']());}}}(a17_0x2e7a,0x6127b));import{getMultiAppConfigs}from'../../utils/config.js';import{CliErrors}from'../../errors.js';function a17_0x714d(_0x17bfa6,_0x68dd){_0x17bfa6=_0x17bfa6-0x18c;const _0x2e7a0a=a17_0x2e7a();let _0x714dbe=_0x2e7a0a[_0x17bfa6];return _0x714dbe;}export function resolveTargetApps(_0x1eb841,_0x53a70e){const _0x1bdc36=a17_0x714d;if(_0x53a70e)return null;const _0x3ba9db=_0x1eb841[_0x1bdc36(0x18c)](_0x1bdc36(0x199))?_0x1bdc36(0x196):_0x1bdc36(0x198);let _0x372c81=getMultiAppConfigs(_0x3ba9db);if(!_0x372c81||_0x372c81['length']===0x0)return null;if(_0x1eb841['selectedAppName']){const _0x165760=_0x372c81['filter'](_0x24e5cc=>_0x24e5cc[_0x1bdc36(0x18e)]===_0x1eb841[_0x1bdc36(0x19d)]);if(_0x165760['length']===0x0){const _0x190977=_0x372c81['map'](_0x2829a5=>_0x2829a5[_0x1bdc36(0x18e)])[_0x1bdc36(0x194)](',\x20');throw CliErrors[_0x1bdc36(0x190)](_0x1bdc36(0x19c)+_0x1eb841[_0x1bdc36(0x19d)]+_0x1bdc36(0x197)+_0x190977);}_0x372c81=_0x165760;}return _0x372c81;}function a17_0x2e7a(){const _0x29f697=['validation','1fcKAgO','2600864KHPMPF','19413bBUPyd','join','2919567eNFtAt','merged','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20','project','global','809638dHtwDh','4323876VLabHu','App\x20\x22','selectedAppName','36342QuopFb','bool','1392kGVPuR','name','2918525SUdyFD'];a17_0x2e7a=function(){return _0x29f697;};return a17_0x2e7a();}
@@ -1 +1 @@
1
- const a18_0x5b246=a18_0x3a22;function a18_0x29f5(){const _0x16d600=['Usage:\x20','1304udBvKW','defaultApp','2651980qxAPvf','validation','bool','9655218KVudzA','1338NktMvZ','Missing\x20app\x20name.','\x20Set\x20as\x20default\x20app.','5727860sRKhJx','12wcFNuw','appcode','trim','\x20app\x20\x22','boolean','global','string','name','\x20app\x20add\x20<name>\x20--appcode\x20<code>','\x22\x20(appcode:\x20','apps','App\x20profile\x20name','1332770bLjWPz','11ekKisM','App\x20code','2MYfTEX','3179652iFgGgv','Updated','14704TRKdOL','65499aiaTfC','args','add','Use\x20global\x20config\x20scope','str'];a18_0x29f5=function(){return _0x16d600;};return a18_0x29f5();}(function(_0x46dd62,_0x56cc4a){const _0x4c095a=a18_0x3a22,_0x2ba3df=_0x46dd62();while(!![]){try{const _0x31baf9=parseInt(_0x4c095a(0x1df))/0x1*(parseInt(_0x4c095a(0x1bf))/0x2)+parseInt(_0x4c095a(0x1cf))/0x3*(-parseInt(_0x4c095a(0x1c2))/0x4)+-parseInt(_0x4c095a(0x1cb))/0x5*(-parseInt(_0x4c095a(0x1d3))/0x6)+parseInt(_0x4c095a(0x1c3))/0x7*(parseInt(_0x4c095a(0x1c9))/0x8)+-parseInt(_0x4c095a(0x1ce))/0x9+parseInt(_0x4c095a(0x1d2))/0xa*(-parseInt(_0x4c095a(0x1e0))/0xb)+parseInt(_0x4c095a(0x1c0))/0xc;if(_0x31baf9===_0x56cc4a)break;else _0x2ba3df['push'](_0x2ba3df['shift']());}catch(_0x32396f){_0x2ba3df['push'](_0x2ba3df['shift']());}}}(a18_0x29f5,0xdb650));import{CliErrors}from'../../errors.js';function a18_0x3a22(_0x10694f,_0x56c573){_0x10694f=_0x10694f-0x1bf;const _0x29f59a=a18_0x29f5();let _0x3a22c8=_0x29f59a[_0x10694f];return _0x3a22c8;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs}from'../../config/schema.js';import{readConfig,writeConfig,scopeLabel}from'../../commands/app/shared.js';async function validateArgs(_0x25a8f8){const _0x49122a=a18_0x3a22,_0x316e35=_0x25a8f8[_0x49122a(0x1c4)][0x0]?.[_0x49122a(0x1d5)]();if(!_0x316e35)throw CliErrors['validation'](_0x49122a(0x1d0),'Usage:\x20'+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20<code>');}async function execute(_0x27c8b6){const _0x1e920c=a18_0x3a22,_0x1316b4=_0x27c8b6[_0x1e920c(0x1c4)][0x0]?.[_0x1e920c(0x1d5)]();if(!_0x1316b4)throw CliErrors[_0x1e920c(0x1cc)](_0x1e920c(0x1d0),_0x1e920c(0x1c8)+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20<code>');const _0x1f5cf7=_0x27c8b6[_0x1e920c(0x1c7)](_0x1e920c(0x1d4));if(!_0x1f5cf7)throw CliErrors['flagMissing'](_0x1e920c(0x1d4),_0x1e920c(0x1c8)+CLI_BIN_NAME+_0x1e920c(0x1db));const _0x386fa3={'global':_0x27c8b6[_0x1e920c(0x1cd)](_0x1e920c(0x1d8))},_0x13ae54=readConfig(_0x386fa3);if(!_0x13ae54[_0x1e920c(0x1dd)])_0x13ae54[_0x1e920c(0x1dd)]={};const _0x35d8fb={'appcode':_0x1f5cf7,...collectAppProfileOverrides(_0x43c2fb=>_0x27c8b6['str'](_0x43c2fb))},_0x44c7f0=_0x13ae54['apps'],_0xf709f6=!!_0x44c7f0[_0x1316b4];_0x44c7f0[_0x1316b4]=_0x35d8fb;if(!_0x13ae54[_0x1e920c(0x1ca)])_0x13ae54[_0x1e920c(0x1ca)]=_0x1316b4;writeConfig(_0x13ae54,_0x386fa3);const _0x4a43d3=!_0xf709f6&&_0x13ae54[_0x1e920c(0x1ca)]===_0x1316b4?_0x1e920c(0x1d1):'',_0xaa64eb=(_0xf709f6?_0x1e920c(0x1c1):'Added')+_0x1e920c(0x1d6)+_0x1316b4+_0x1e920c(0x1dc)+_0x1f5cf7+')'+scopeLabel(_0x386fa3)+'.'+_0x4a43d3;return{'ok':!![],'message':_0xaa64eb};}export const appAddDefinition={'service':'app','command':a18_0x5b246(0x1c5),'description':'Add\x20or\x20update\x20an\x20app\x20in\x20config','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a18_0x5b246(0x1da),'description':a18_0x5b246(0x1de),'required':!![]}],'flags':[{'name':a18_0x5b246(0x1d4),'type':a18_0x5b246(0x1d9),'description':a18_0x5b246(0x1e1),'required':!![]},{'name':a18_0x5b246(0x1d8),'type':a18_0x5b246(0x1d7),'description':a18_0x5b246(0x1c6),'default':![]},...getAppProfileFlagDefs()],'validate':validateArgs,'execute':execute};
1
+ const a18_0x624ba9=a18_0xabfd;function a18_0xabfd(_0x59f028,_0x154022){_0x59f028=_0x59f028-0xc9;const _0x400bef=a18_0x400b();let _0xabfd41=_0x400bef[_0x59f028];return _0xabfd41;}(function(_0x138e2b,_0x117813){const _0x2bb415=a18_0xabfd,_0x2b7e8c=_0x138e2b();while(!![]){try{const _0x10c706=-parseInt(_0x2bb415(0xe5))/0x1+-parseInt(_0x2bb415(0xdf))/0x2*(parseInt(_0x2bb415(0xe2))/0x3)+-parseInt(_0x2bb415(0xd7))/0x4+parseInt(_0x2bb415(0xcc))/0x5+-parseInt(_0x2bb415(0xcb))/0x6*(-parseInt(_0x2bb415(0xcf))/0x7)+parseInt(_0x2bb415(0xe6))/0x8*(-parseInt(_0x2bb415(0xe1))/0x9)+parseInt(_0x2bb415(0xd6))/0xa;if(_0x10c706===_0x117813)break;else _0x2b7e8c['push'](_0x2b7e8c['shift']());}catch(_0x3e54d6){_0x2b7e8c['push'](_0x2b7e8c['shift']());}}}(a18_0x400b,0x72c28));function a18_0x400b(){const _0x1bf916=['18oiKmyg','trim','add','540767vIpxJV','2336itchYs','app','string','Use\x20global\x20config\x20scope','13374ZHKvMa','1019805BRQZwt','str','\x20app\x20\x22','2947oCuloo','\x20app\x20add\x20<name>\x20--appcode\x20<code>','Add\x20or\x20update\x20an\x20app\x20in\x20config','appcode','global','write','name','13027420xdYwCn','944316ZAWfsY','apps','defaultApp','Updated','validation','Missing\x20app\x20name.','args','bool','135046vSCmVG','Usage:\x20','24444ZWtEWe'];a18_0x400b=function(){return _0x1bf916;};return a18_0x400b();}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs}from'../../config/schema.js';import{readConfig,writeConfig,scopeLabel}from'../../commands/app/shared.js';async function validateArgs(_0xf056ee){const _0x145f4a=a18_0xabfd,_0x1c6288=_0xf056ee[_0x145f4a(0xdd)][0x0]?.[_0x145f4a(0xe3)]();if(!_0x1c6288)throw CliErrors[_0x145f4a(0xdb)](_0x145f4a(0xdc),_0x145f4a(0xe0)+CLI_BIN_NAME+_0x145f4a(0xd0));}async function execute(_0x4dfbf1){const _0xa5aeb2=a18_0xabfd,_0x4c0653=_0x4dfbf1[_0xa5aeb2(0xdd)][0x0]?.[_0xa5aeb2(0xe3)]();if(!_0x4c0653)throw CliErrors[_0xa5aeb2(0xdb)]('Missing\x20app\x20name.',_0xa5aeb2(0xe0)+CLI_BIN_NAME+_0xa5aeb2(0xd0));const _0x408804=_0x4dfbf1['str'](_0xa5aeb2(0xd2));if(!_0x408804)throw CliErrors['flagMissing'](_0xa5aeb2(0xd2),_0xa5aeb2(0xe0)+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20<code>');const _0x9b1ab6={'global':_0x4dfbf1[_0xa5aeb2(0xde)](_0xa5aeb2(0xd3))},_0x5ee113=readConfig(_0x9b1ab6);if(!_0x5ee113[_0xa5aeb2(0xd8)])_0x5ee113[_0xa5aeb2(0xd8)]={};const _0x1f293a={'appcode':_0x408804,...collectAppProfileOverrides(_0x3dfa96=>_0x4dfbf1[_0xa5aeb2(0xcd)](_0x3dfa96))},_0x556c8f=_0x5ee113[_0xa5aeb2(0xd8)],_0x1cd420=!!_0x556c8f[_0x4c0653];_0x556c8f[_0x4c0653]=_0x1f293a;if(!_0x5ee113[_0xa5aeb2(0xd9)])_0x5ee113[_0xa5aeb2(0xd9)]=_0x4c0653;writeConfig(_0x5ee113,_0x9b1ab6);const _0x27c8bb=!_0x1cd420&&_0x5ee113[_0xa5aeb2(0xd9)]===_0x4c0653?'\x20Set\x20as\x20default\x20app.':'',_0x33986e=(_0x1cd420?_0xa5aeb2(0xda):'Added')+_0xa5aeb2(0xce)+_0x4c0653+'\x22\x20(appcode:\x20'+_0x408804+')'+scopeLabel(_0x9b1ab6)+'.'+_0x27c8bb;return{'ok':!![],'message':_0x33986e};}export const appAddDefinition={'service':a18_0x624ba9(0xe7),'command':a18_0x624ba9(0xe4),'description':a18_0x624ba9(0xd1),'risk':a18_0x624ba9(0xd4),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a18_0x624ba9(0xd5),'description':'App\x20profile\x20name','required':!![]}],'flags':[{'name':a18_0x624ba9(0xd2),'type':a18_0x624ba9(0xc9),'description':'App\x20code','required':!![]},{'name':a18_0x624ba9(0xd3),'type':'boolean','description':a18_0x624ba9(0xca),'default':![]},...getAppProfileFlagDefs()],'validate':validateArgs,'execute':execute};