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

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 (204) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -1
  60. package/lib/commands/dataset/relation-delete.js +1 -1
  61. package/lib/commands/dataset/relation-shared.js +1 -1
  62. package/lib/commands/dataset/relation-update.js +1 -1
  63. package/lib/commands/dataset/relations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/shared/compare-table.js +1 -1
  87. package/lib/commands/menu/shared/index.js +1 -1
  88. package/lib/commands/menu/shared/inquirer.js +1 -1
  89. package/lib/commands/menu/shared/local-pages.js +1 -1
  90. package/lib/commands/menu/shared/logic.js +1 -1
  91. package/lib/commands/menu/shared/service.js +1 -1
  92. package/lib/commands/menu/shared/sync-core.js +1 -1
  93. package/lib/commands/menu/shared/update-core.js +1 -1
  94. package/lib/commands/menu/shared/valid-url.js +1 -1
  95. package/lib/commands/menu/sync.js +1 -1
  96. package/lib/commands/menu/update.js +1 -1
  97. package/lib/commands/page/generate-start.js +1 -1
  98. package/lib/commands/page/generate-status.js +1 -1
  99. package/lib/commands/page/index.js +1 -1
  100. package/lib/commands/page/pull.js +1 -1
  101. package/lib/commands/page/push.js +1 -1
  102. package/lib/commands/page/relation-audit.js +1 -1
  103. package/lib/commands/page/shared.js +1 -1
  104. package/lib/commands/page/standard-page-status.js +1 -1
  105. package/lib/commands/page/sync.js +1 -1
  106. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  107. package/lib/commands/project/create/format-elapsed.js +1 -1
  108. package/lib/commands/project/create/main.js +1 -1
  109. package/lib/commands/project/create/non-interactive.js +1 -1
  110. package/lib/commands/project/create/project-template-path.js +1 -1
  111. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  112. package/lib/commands/project/create/use-format-code.js +1 -1
  113. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  114. package/lib/commands/project/index.js +1 -1
  115. package/lib/commands/project/init.js +1 -1
  116. package/lib/commands/project/upgrade.js +1 -1
  117. package/lib/commands/registry.js +1 -1
  118. package/lib/commands/run/index.js +1 -1
  119. package/lib/commands/schema.js +1 -1
  120. package/lib/commands/skill/index.js +1 -1
  121. package/lib/commands/sql/create.js +1 -1
  122. package/lib/commands/sql/delete.js +1 -1
  123. package/lib/commands/sql/detail.js +1 -1
  124. package/lib/commands/sql/exec.js +1 -1
  125. package/lib/commands/sql/index.js +1 -1
  126. package/lib/commands/sql/list.js +1 -1
  127. package/lib/commands/sql/pull.js +1 -1
  128. package/lib/commands/sql/push.js +1 -1
  129. package/lib/commands/sql/save.js +1 -1
  130. package/lib/commands/sql/shared.js +1 -1
  131. package/lib/commands/sql/status.js +1 -1
  132. package/lib/commands/sql/validate.js +1 -1
  133. package/lib/config/schema.js +1 -1
  134. package/lib/constant/cdn.js +1 -1
  135. package/lib/constant/cli.js +1 -1
  136. package/lib/constant/defaults.js +1 -1
  137. package/lib/constant/domain.js +1 -1
  138. package/lib/constant/env.js +1 -1
  139. package/lib/constant/output.js +1 -1
  140. package/lib/constant/paths.js +1 -1
  141. package/lib/constant/risk.js +1 -1
  142. package/lib/context.js +1 -1
  143. package/lib/core/alias-resolver.js +1 -1
  144. package/lib/core/api-client.js +1 -1
  145. package/lib/core/bff/config.js +1 -1
  146. package/lib/core/bff/file-system.js +1 -1
  147. package/lib/core/bff/hash.js +1 -1
  148. package/lib/core/bff/lock.js +1 -1
  149. package/lib/core/bff/utils.js +1 -1
  150. package/lib/core/db-resolver.js +1 -1
  151. package/lib/core/page/file-system.js +1 -1
  152. package/lib/core/page/hash.js +1 -1
  153. package/lib/core/page/lock.js +1 -1
  154. package/lib/core/sql-sync/config.js +1 -1
  155. package/lib/core/sql-sync/file-system.js +1 -1
  156. package/lib/core/sql-sync/hash.js +1 -1
  157. package/lib/core/sql-sync/lock.js +1 -1
  158. package/lib/core/sql-sync/utils.js +1 -1
  159. package/lib/core/sql-validator.js +1 -1
  160. package/lib/errors.js +1 -1
  161. package/lib/framework/build-all-flags.js +1 -1
  162. package/lib/framework/flags.js +1 -1
  163. package/lib/framework/help.js +1 -1
  164. package/lib/framework/index.js +1 -1
  165. package/lib/framework/output.js +1 -1
  166. package/lib/framework/response.js +1 -1
  167. package/lib/framework/runner-alias.js +1 -1
  168. package/lib/framework/runner.js +1 -1
  169. package/lib/framework/schema-export.js +1 -1
  170. package/lib/framework/types.js +1 -1
  171. package/lib/generated/build-info.js +1 -1
  172. package/lib/help.js +1 -1
  173. package/lib/skills/main.js +1 -1
  174. package/lib/skills/npx-skills-add.js +1 -1
  175. package/lib/telemetry/cli-command-trace.js +1 -1
  176. package/lib/telemetry/cli-help-trace.js +1 -1
  177. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  178. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  179. package/lib/telemetry/send-cli-trace-log.js +1 -1
  180. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  181. package/lib/utils/ai_config.js +1 -1
  182. package/lib/utils/apply-jq-filter.js +1 -1
  183. package/lib/utils/cdn-config.js +1 -1
  184. package/lib/utils/check-sdk-version.js +1 -1
  185. package/lib/utils/cli-version-check.js +1 -1
  186. package/lib/utils/cli-version-policy.js +1 -1
  187. package/lib/utils/config.js +1 -1
  188. package/lib/utils/copy-directory.js +1 -1
  189. package/lib/utils/entity-with-id.js +1 -1
  190. package/lib/utils/file-utils.js +1 -1
  191. package/lib/utils/guides-cdn.js +1 -1
  192. package/lib/utils/http-client.js +1 -1
  193. package/lib/utils/is-non-interactive.js +1 -1
  194. package/lib/utils/logger.js +1 -1
  195. package/lib/utils/params.js +1 -1
  196. package/lib/utils/platform.js +1 -1
  197. package/lib/utils/rules-cdn.js +1 -1
  198. package/lib/utils/sleep.js +1 -1
  199. package/lib/utils/template-replacer.js +1 -1
  200. package/lib/utils/update-notice.js +1 -1
  201. package/lib/utils/version.js +1 -1
  202. package/lib/utils/with-active-cookie.js +1 -1
  203. package/lib/utils/write-cli-side-channel.js +1 -1
  204. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x28ed27,_0x5c3ad9){const _0x142715=a204_0x249c,_0x19d1af=_0x28ed27();while(!![]){try{const _0x418db4=-parseInt(_0x142715(0x8d))/0x1*(-parseInt(_0x142715(0x8f))/0x2)+parseInt(_0x142715(0x78))/0x3+parseInt(_0x142715(0x83))/0x4+-parseInt(_0x142715(0x74))/0x5+parseInt(_0x142715(0x90))/0x6+parseInt(_0x142715(0x7e))/0x7+-parseInt(_0x142715(0x72))/0x8;if(_0x418db4===_0x5c3ad9)break;else _0x19d1af['push'](_0x19d1af['shift']());}catch(_0x3ff7e8){_0x19d1af['push'](_0x19d1af['shift']());}}}(a204_0x3bde,0x50306));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a204_0x1302fb from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x286233=a204_0x249c,_0x46b5e7=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x286233(0x84)]()[_0x286233(0x91)]();return _0x46b5e7==='1'||_0x46b5e7===_0x286233(0x8c)||_0x46b5e7===_0x286233(0x7b);}function cacheRoot(){const _0x2547e3=a204_0x249c;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x2547e3(0x7c));}export function getUpdateNoticeCachePath(){const _0x3984aa=a204_0x249c;return join(cacheRoot(),_0x3984aa(0x93),'update-check.json');}async function readUpdateNoticeCache(){const _0x46c943=a204_0x249c;try{const _0x4ee029=await readFile(getUpdateNoticeCachePath(),_0x46c943(0x92)),_0x551fb6=JSON[_0x46c943(0x79)](_0x4ee029);if(!_0x551fb6||typeof _0x551fb6!==_0x46c943(0x75))return{};return _0x551fb6;}catch{return{};}}async function writeUpdateNoticeCache(_0x4c092f){const _0x3adbdf=a204_0x249c;try{const _0x2de028=getUpdateNoticeCachePath();await mkdir(dirname(_0x2de028),{'recursive':!![]}),await writeFile(_0x2de028,JSON[_0x3adbdf(0x73)](_0x4c092f,null,0x2)+'\x0a',_0x3adbdf(0x92));}catch{}}function isFreshCheck(_0x31bb73,_0x45bf0f){const _0x47dca7=a204_0x249c;return typeof _0x31bb73['checkedAt']===_0x47dca7(0x7a)&&_0x45bf0f-_0x31bb73[_0x47dca7(0x76)]<UPDATE_CHECK_TTL_MS;}function a204_0x3bde(){const _0x4f75a8=['423994ZLggkL','\x20available,\x20current\x20','2vLyADU','401850gnEJAu','toLowerCase','utf8','rabetbase-cli','5946464LJenvv','stringify','1692215UmUeji','object','checkedAt','valid','1675923gwsnlw','parse','number','yes','.cache','/v/','1051099rNqtBz','latest','https://www.npmjs.com/package/','lastNotifiedAt','now','841752zzoNVV','trim','lastNotifiedVersion','string','entries','/dist-tags','gte','filter','timeout','true'];a204_0x3bde=function(){return _0x4f75a8;};return a204_0x3bde();}function a204_0x249c(_0x3ed125,_0x3323a7){_0x3ed125=_0x3ed125-0x72;const _0x3bdefe=a204_0x3bde();let _0x249c55=_0x3bdefe[_0x3ed125];return _0x249c55;}function isRecentlyNotified(_0x5b1048,_0x26207b,_0x5986d7){const _0x9f98d4=a204_0x249c;return _0x5b1048[_0x9f98d4(0x85)]===_0x26207b&&typeof _0x5b1048[_0x9f98d4(0x81)]===_0x9f98d4(0x7a)&&_0x5986d7-_0x5b1048[_0x9f98d4(0x81)]<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x1555d5=0x5dc){const _0x120018=a204_0x249c;try{const _0x338f0c=await fetch('https://registry.npmjs.org/-/package/'+encodeURIComponent(NPM_PACKAGE_NAME)+_0x120018(0x88),{'signal':AbortSignal[_0x120018(0x8b)](_0x1555d5)});if(!_0x338f0c['ok'])return null;const _0x2f6a9f=await _0x338f0c['json']();if(!_0x2f6a9f||typeof _0x2f6a9f!==_0x120018(0x75))return null;return Object['fromEntries'](Object[_0x120018(0x87)](_0x2f6a9f)[_0x120018(0x8a)](([,_0x3cc674])=>typeof _0x3cc674===_0x120018(0x86)&&_0x3cc674[_0x120018(0x84)]()['length']>0x0)['map'](([_0xe5b4fe,_0x3b870a])=>[_0xe5b4fe,String(_0x3b870a)[_0x120018(0x84)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x242639){const _0xddd33b=a204_0x249c;return _0xddd33b(0x80)+NPM_PACKAGE_NAME+_0xddd33b(0x7d)+_0x242639;}export async function resolveLatestUpdateNotice(){const _0x424e4a=a204_0x249c;if(isUpdateNoticeDisabled())return null;try{const _0x52f388=Date[_0x424e4a(0x82)](),_0xe3366c=getCliVersion(),_0x2334b3=await readUpdateNoticeCache();let _0xff4478=isFreshCheck(_0x2334b3,_0x52f388)?_0x2334b3[_0x424e4a(0x7f)]?.[_0x424e4a(0x84)]():undefined;if(!_0xff4478&&!isFreshCheck(_0x2334b3,_0x52f388)){const _0x98b56d=await fetchNpmDistTags();_0xff4478=_0x98b56d?.[_0x424e4a(0x7f)]?.['trim'](),await writeUpdateNoticeCache({..._0x2334b3,'checkedAt':_0x52f388,'latest':_0xff4478,'failed':!_0xff4478});}if(!_0xff4478||!a204_0x1302fb[_0x424e4a(0x77)](_0xe3366c)||!a204_0x1302fb[_0x424e4a(0x77)](_0xff4478))return null;if(a204_0x1302fb[_0x424e4a(0x89)](_0xe3366c,_0xff4478))return null;if(isRecentlyNotified(_0x2334b3,_0xff4478,_0x52f388))return null;const _0x45eb61=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x2334b3,'checkedAt':isFreshCheck(_0x2334b3,_0x52f388)?_0x2334b3['checkedAt']:_0x52f388,'latest':_0xff4478,'failed':![],'lastNotifiedVersion':_0xff4478,'lastNotifiedAt':_0x52f388}),{'command':_0x45eb61,'current':_0xe3366c,'latest':_0xff4478,'url':buildNpmVersionUrl(_0xff4478),'message':CLI_BIN_NAME+'\x20'+_0xff4478+_0x424e4a(0x8e)+_0xe3366c+',\x20run:\x20'+_0x45eb61};}catch{return null;}}
1
+ (function(_0x4337b9,_0x442d87){const _0x5cd03a=a204_0x4b4b,_0x19a011=_0x4337b9();while(!![]){try{const _0x321f45=-parseInt(_0x5cd03a(0x113))/0x1*(parseInt(_0x5cd03a(0x109))/0x2)+parseInt(_0x5cd03a(0x127))/0x3*(parseInt(_0x5cd03a(0x111))/0x4)+parseInt(_0x5cd03a(0x10a))/0x5*(-parseInt(_0x5cd03a(0x106))/0x6)+-parseInt(_0x5cd03a(0x120))/0x7+parseInt(_0x5cd03a(0x129))/0x8*(parseInt(_0x5cd03a(0x11c))/0x9)+-parseInt(_0x5cd03a(0x122))/0xa+-parseInt(_0x5cd03a(0x123))/0xb*(-parseInt(_0x5cd03a(0x112))/0xc);if(_0x321f45===_0x442d87)break;else _0x19a011['push'](_0x19a011['shift']());}catch(_0x35ce33){_0x19a011['push'](_0x19a011['shift']());}}}(a204_0x3c64,0xb2ce5));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a204_0x5bb0a8 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x41885b=a204_0x4b4b,_0x4e3716=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x41885b(0x107)]()[_0x41885b(0x11b)]();return _0x4e3716==='1'||_0x4e3716==='true'||_0x4e3716===_0x41885b(0x10c);}function cacheRoot(){const _0x3396ce=a204_0x4b4b;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x3396ce(0x11f));}function a204_0x3c64(){const _0x307258=['1788QQrdZz','24myHcGG','329555pjTKar','https://www.npmjs.com/package/','length','object','string','update-check.json','gte','utf8','toLowerCase','9MtYYAZ','fromEntries','parse','.cache','7731402KcFAQz','valid','8764480gnkUyY','16324682ZjTKHr','checkedAt','number','json','7710fjHuNF','/dist-tags','184312iVxeug','now','2460aIvQdf','trim','entries','4rKXlox','9360vKRRYl','latest','yes','timeout','stringify','/v/','lastNotifiedVersion'];a204_0x3c64=function(){return _0x307258;};return a204_0x3c64();}export function getUpdateNoticeCachePath(){const _0x35c977=a204_0x4b4b;return join(cacheRoot(),'rabetbase-cli',_0x35c977(0x118));}function a204_0x4b4b(_0x53fe33,_0x5cc658){_0x53fe33=_0x53fe33-0x105;const _0x3c64bb=a204_0x3c64();let _0x4b4b9c=_0x3c64bb[_0x53fe33];return _0x4b4b9c;}async function readUpdateNoticeCache(){const _0x5789e7=a204_0x4b4b;try{const _0x38e121=await readFile(getUpdateNoticeCachePath(),_0x5789e7(0x11a)),_0x548f94=JSON[_0x5789e7(0x11e)](_0x38e121);if(!_0x548f94||typeof _0x548f94!==_0x5789e7(0x116))return{};return _0x548f94;}catch{return{};}}async function writeUpdateNoticeCache(_0x30c05d){const _0x554c12=a204_0x4b4b;try{const _0x183af1=getUpdateNoticeCachePath();await mkdir(dirname(_0x183af1),{'recursive':!![]}),await writeFile(_0x183af1,JSON[_0x554c12(0x10e)](_0x30c05d,null,0x2)+'\x0a',_0x554c12(0x11a));}catch{}}function isFreshCheck(_0x3fc927,_0x48c328){const _0x288ea8=a204_0x4b4b;return typeof _0x3fc927[_0x288ea8(0x124)]===_0x288ea8(0x125)&&_0x48c328-_0x3fc927[_0x288ea8(0x124)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x2b3160,_0x2d0085,_0x4d09c9){const _0x64f7bb=a204_0x4b4b;return _0x2b3160[_0x64f7bb(0x110)]===_0x2d0085&&typeof _0x2b3160['lastNotifiedAt']===_0x64f7bb(0x125)&&_0x4d09c9-_0x2b3160['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}async function fetchNpmDistTags(_0x30dadb=0x5dc){const _0x827e0c=a204_0x4b4b;try{const _0x1b9e35=await fetch('https://registry.npmjs.org/-/package/'+encodeURIComponent(NPM_PACKAGE_NAME)+_0x827e0c(0x128),{'signal':AbortSignal[_0x827e0c(0x10d)](_0x30dadb)});if(!_0x1b9e35['ok'])return null;const _0x5a0d30=await _0x1b9e35[_0x827e0c(0x126)]();if(!_0x5a0d30||typeof _0x5a0d30!==_0x827e0c(0x116))return null;return Object[_0x827e0c(0x11d)](Object[_0x827e0c(0x108)](_0x5a0d30)['filter'](([,_0x167b78])=>typeof _0x167b78===_0x827e0c(0x117)&&_0x167b78[_0x827e0c(0x107)]()[_0x827e0c(0x115)]>0x0)['map'](([_0x9c60ef,_0xa5741f])=>[_0x9c60ef,String(_0xa5741f)[_0x827e0c(0x107)]()]));}catch{return null;}}export function buildNpmVersionUrl(_0x177072){const _0xde2895=a204_0x4b4b;return _0xde2895(0x114)+NPM_PACKAGE_NAME+_0xde2895(0x10f)+_0x177072;}export async function resolveLatestUpdateNotice(){const _0x5bd91b=a204_0x4b4b;if(isUpdateNoticeDisabled())return null;try{const _0x515bb4=Date[_0x5bd91b(0x105)](),_0x57aef4=getCliVersion(),_0x5f5a5f=await readUpdateNoticeCache();let _0x53097b=isFreshCheck(_0x5f5a5f,_0x515bb4)?_0x5f5a5f[_0x5bd91b(0x10b)]?.[_0x5bd91b(0x107)]():undefined;if(!_0x53097b&&!isFreshCheck(_0x5f5a5f,_0x515bb4)){const _0x52b1b1=await fetchNpmDistTags();_0x53097b=_0x52b1b1?.[_0x5bd91b(0x10b)]?.[_0x5bd91b(0x107)](),await writeUpdateNoticeCache({..._0x5f5a5f,'checkedAt':_0x515bb4,'latest':_0x53097b,'failed':!_0x53097b});}if(!_0x53097b||!a204_0x5bb0a8[_0x5bd91b(0x121)](_0x57aef4)||!a204_0x5bb0a8['valid'](_0x53097b))return null;if(a204_0x5bb0a8[_0x5bd91b(0x119)](_0x57aef4,_0x53097b))return null;if(isRecentlyNotified(_0x5f5a5f,_0x53097b,_0x515bb4))return null;const _0x442e7c=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x5f5a5f,'checkedAt':isFreshCheck(_0x5f5a5f,_0x515bb4)?_0x5f5a5f[_0x5bd91b(0x124)]:_0x515bb4,'latest':_0x53097b,'failed':![],'lastNotifiedVersion':_0x53097b,'lastNotifiedAt':_0x515bb4}),{'command':_0x442e7c,'current':_0x57aef4,'latest':_0x53097b,'url':buildNpmVersionUrl(_0x53097b),'message':CLI_BIN_NAME+'\x20'+_0x53097b+'\x20available,\x20current\x20'+_0x57aef4+',\x20run:\x20'+_0x442e7c};}catch{return null;}}
@@ -1 +1 @@
1
- function a205_0x5c65(_0x5c4430,_0x865733){_0x5c4430=_0x5c4430-0x154;var _0x5c29c6=a205_0x5c29();var _0x5c6591=_0x5c29c6[_0x5c4430];return _0x5c6591;}(function(_0x1e2d4e,_0x37cae0){var _0x5141b0=a205_0x5c65,_0x474507=_0x1e2d4e();while(!![]){try{var _0xf81c62=-parseInt(_0x5141b0(0x159))/0x1*(-parseInt(_0x5141b0(0x155))/0x2)+parseInt(_0x5141b0(0x157))/0x3*(-parseInt(_0x5141b0(0x156))/0x4)+parseInt(_0x5141b0(0x15c))/0x5+-parseInt(_0x5141b0(0x158))/0x6*(-parseInt(_0x5141b0(0x15a))/0x7)+parseInt(_0x5141b0(0x15e))/0x8+parseInt(_0x5141b0(0x15d))/0x9*(parseInt(_0x5141b0(0x15b))/0xa)+-parseInt(_0x5141b0(0x154))/0xb;if(_0xf81c62===_0x37cae0)break;else _0x474507['push'](_0x474507['shift']());}catch(_0x46be8e){_0x474507['push'](_0x474507['shift']());}}}(a205_0x5c29,0x603c7));function a205_0x5c29(){var _0x3cf947=['6ZjFQHb','600853SbcJwr','2476649YAKGuH','30vlQBBq','1635765PyjtiC','337833bNAYvF','2670368NKAJlq','7229453hanYgp','2NuKXzy','8VotYRk','1015221nyLqFT'];a205_0x5c29=function(){return _0x3cf947;};return a205_0x5c29();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
1
+ function a205_0x41bd(_0x56771d,_0x5c9f5e){_0x56771d=_0x56771d-0x66;var _0xe7ed97=a205_0xe7ed();var _0x41bd15=_0xe7ed97[_0x56771d];return _0x41bd15;}(function(_0x4dbc45,_0x3ae44a){var _0x58ce7c=a205_0x41bd,_0x184950=_0x4dbc45();while(!![]){try{var _0x11c509=-parseInt(_0x58ce7c(0x68))/0x1+parseInt(_0x58ce7c(0x66))/0x2+-parseInt(_0x58ce7c(0x6c))/0x3*(parseInt(_0x58ce7c(0x6e))/0x4)+-parseInt(_0x58ce7c(0x67))/0x5+-parseInt(_0x58ce7c(0x6b))/0x6*(-parseInt(_0x58ce7c(0x6f))/0x7)+parseInt(_0x58ce7c(0x6d))/0x8*(parseInt(_0x58ce7c(0x6a))/0x9)+parseInt(_0x58ce7c(0x69))/0xa;if(_0x11c509===_0x3ae44a)break;else _0x184950['push'](_0x184950['shift']());}catch(_0x51a4c3){_0x184950['push'](_0x184950['shift']());}}}(a205_0xe7ed,0x2f4bd));import{VERSION}from'../generated/build-info.js';function a205_0xe7ed(){var _0x129a0f=['981441nuhTuq','16nIqRvo','4KIDkSa','855043RyMrpS','735166gkzPKg','1058980kFiCvq','27030HgibgH','279110jVdfnl','539577rhSzxG','12GmTCsL'];a205_0xe7ed=function(){return _0x129a0f;};return a205_0xe7ed();}export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- function a206_0x12b8(_0x1d14f5,_0x29a5a5){_0x1d14f5=_0x1d14f5-0x191;var _0x102982=a206_0x1029();var _0x12b89d=_0x102982[_0x1d14f5];return _0x12b89d;}(function(_0x2de166,_0xc60f18){var _0x3ea138=a206_0x12b8,_0x4d3576=_0x2de166();while(!![]){try{var _0x200cb2=-parseInt(_0x3ea138(0x194))/0x1+-parseInt(_0x3ea138(0x196))/0x2+parseInt(_0x3ea138(0x198))/0x3*(parseInt(_0x3ea138(0x199))/0x4)+parseInt(_0x3ea138(0x193))/0x5*(-parseInt(_0x3ea138(0x195))/0x6)+-parseInt(_0x3ea138(0x197))/0x7+-parseInt(_0x3ea138(0x19b))/0x8*(-parseInt(_0x3ea138(0x192))/0x9)+-parseInt(_0x3ea138(0x19a))/0xa*(-parseInt(_0x3ea138(0x191))/0xb);if(_0x200cb2===_0xc60f18)break;else _0x4d3576['push'](_0x4d3576['shift']());}catch(_0x4660cc){_0x4d3576['push'](_0x4d3576['shift']());}}}(a206_0x1029,0x5f60b));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x4f0d1c,_0x481ecd){setActiveCookie(_0x4f0d1c);try{return await _0x481ecd();}finally{clearActiveCookie();}}function a206_0x1029(){var _0x390dc3=['488187sBeDuw','153uDdeAy','50092uzvsRn','305690TURKoZ','8ehoufQ','11ThWMQv','6265647boSsPp','1282555KhKvMW','173388gPYNSh','6XBGfry','950236FWoOXI'];a206_0x1029=function(){return _0x390dc3;};return a206_0x1029();}
1
+ (function(_0x39ebc1,_0x2f3efa){var _0x5bb56b=a206_0x59bf,_0x2bec2e=_0x39ebc1();while(!![]){try{var _0x3d8ed7=parseInt(_0x5bb56b(0x109))/0x1+parseInt(_0x5bb56b(0x111))/0x2+-parseInt(_0x5bb56b(0x10e))/0x3+parseInt(_0x5bb56b(0x10b))/0x4+parseInt(_0x5bb56b(0x10a))/0x5*(-parseInt(_0x5bb56b(0x108))/0x6)+-parseInt(_0x5bb56b(0x10c))/0x7*(-parseInt(_0x5bb56b(0x10d))/0x8)+parseInt(_0x5bb56b(0x10f))/0x9*(-parseInt(_0x5bb56b(0x110))/0xa);if(_0x3d8ed7===_0x2f3efa)break;else _0x2bec2e['push'](_0x2bec2e['shift']());}catch(_0x4ec284){_0x2bec2e['push'](_0x2bec2e['shift']());}}}(a206_0x407d,0x193ab));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x43f86b,_0x1397b3){setActiveCookie(_0x43f86b);try{return await _0x1397b3();}finally{clearActiveCookie();}}function a206_0x59bf(_0x340bb8,_0x269eec){_0x340bb8=_0x340bb8-0x108;var _0x407dda=a206_0x407d();var _0x59bfe8=_0x407dda[_0x340bb8];return _0x59bfe8;}function a206_0x407d(){var _0x548dc4=['118015JhfMAp','805040VCDUEY','28CKMLRJ','187472IUpsLC','348183MKrRYL','585kfvHQT','33070SIZsPY','119550lRabYt','6SYBLzy','103187JkThQM'];a206_0x407d=function(){return _0x548dc4;};return a206_0x407d();}
@@ -1 +1 @@
1
- function a207_0x6403(_0x2a45c1,_0x2a498c){_0x2a45c1=_0x2a45c1-0x137;var _0x9288ee=a207_0x9288();var _0x640340=_0x9288ee[_0x2a45c1];return _0x640340;}(function(_0x4cb542,_0x325de5){var _0x250645=a207_0x6403,_0x4ddc43=_0x4cb542();while(!![]){try{var _0x2b4f89=parseInt(_0x250645(0x139))/0x1+-parseInt(_0x250645(0x13a))/0x2*(parseInt(_0x250645(0x13b))/0x3)+parseInt(_0x250645(0x13e))/0x4+parseInt(_0x250645(0x13d))/0x5*(parseInt(_0x250645(0x13c))/0x6)+-parseInt(_0x250645(0x140))/0x7+parseInt(_0x250645(0x142))/0x8*(parseInt(_0x250645(0x141))/0x9)+-parseInt(_0x250645(0x13f))/0xa;if(_0x2b4f89===_0x325de5)break;else _0x4ddc43['push'](_0x4ddc43['shift']());}catch(_0x39ee8c){_0x4ddc43['push'](_0x4ddc43['shift']());}}}(a207_0x9288,0xc9b11));function a207_0x9288(){var _0x3897b0=['5170704pAdTpo','write','stderr','326748hPlQfk','718rxDZPg','4467ZnlXBC','76746AQnhMC','395RPwAwY','4063160ySdAwE','16326080dFuftN','4566905mNTucO','18GYMqZD'];a207_0x9288=function(){return _0x3897b0;};return a207_0x9288();}export function writeCliSideChannelLine(_0x107156){var _0x635dce=a207_0x6403;process[_0x635dce(0x138)][_0x635dce(0x137)](_0x107156+'\x0a');}
1
+ (function(_0x53d10e,_0xa2230){var _0x4e5253=a207_0x11d0,_0x435b4d=_0x53d10e();while(!![]){try{var _0x4c7489=-parseInt(_0x4e5253(0x1d3))/0x1+-parseInt(_0x4e5253(0x1d2))/0x2*(-parseInt(_0x4e5253(0x1d5))/0x3)+parseInt(_0x4e5253(0x1cf))/0x4+parseInt(_0x4e5253(0x1d7))/0x5*(-parseInt(_0x4e5253(0x1d4))/0x6)+parseInt(_0x4e5253(0x1da))/0x7*(-parseInt(_0x4e5253(0x1d1))/0x8)+-parseInt(_0x4e5253(0x1d6))/0x9+parseInt(_0x4e5253(0x1d8))/0xa;if(_0x4c7489===_0xa2230)break;else _0x435b4d['push'](_0x435b4d['shift']());}catch(_0x50c5a3){_0x435b4d['push'](_0x435b4d['shift']());}}}(a207_0x52bb,0x315f0));function a207_0x11d0(_0x2428e1,_0x2f7bf0){_0x2428e1=_0x2428e1-0x1cf;var _0x52bb3f=a207_0x52bb();var _0x11d09e=_0x52bb3f[_0x2428e1];return _0x11d09e;}export function writeCliSideChannelLine(_0x27471b){var _0x57fe67=a207_0x11d0;process[_0x57fe67(0x1d9)][_0x57fe67(0x1d0)](_0x27471b+'\x0a');}function a207_0x52bb(){var _0x3aed2b=['write','88koVZsl','2bVToJe','58225woMMpc','576510kzPpBk','285720AeWBUD','1491696LEuRDB','10NJbSvA','6845870GRBIOJ','stderr','233527byXGDt','822028gFnFNK'];a207_0x52bb=function(){return _0x3aed2b;};return a207_0x52bb();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.2.0-beta.1",
3
+ "version": "2.2.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "repository": {
6
6
  "type": "git",