@lovrabet/rabetbase-cli 2.3.4 → 2.3.5

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 (239) 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/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.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-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/validate.js +1 -1
  50. package/lib/commands/config/get.js +1 -1
  51. package/lib/commands/config/index.js +1 -1
  52. package/lib/commands/config/list.js +1 -1
  53. package/lib/commands/config/set.js +1 -1
  54. package/lib/commands/config/shared.js +1 -1
  55. package/lib/commands/data/filter.js +1 -1
  56. package/lib/commands/data/getOne.js +1 -1
  57. package/lib/commands/data/index.js +1 -1
  58. package/lib/commands/data/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/capability.js +1 -1
  61. package/lib/commands/dataset/delete.js +1 -1
  62. package/lib/commands/dataset/detail.js +1 -1
  63. package/lib/commands/dataset/extend-update.js +1 -1
  64. package/lib/commands/dataset/field-update.js +1 -1
  65. package/lib/commands/dataset/generate.js +1 -1
  66. package/lib/commands/dataset/index.js +1 -1
  67. package/lib/commands/dataset/list.js +1 -1
  68. package/lib/commands/dataset/operations.js +1 -1
  69. package/lib/commands/dataset/relation-audit.js +1 -1
  70. package/lib/commands/dataset/relation-create.js +1 -1
  71. package/lib/commands/dataset/relation-delete.js +1 -1
  72. package/lib/commands/dataset/relation-shared.js +1 -1
  73. package/lib/commands/dataset/relation-update.js +1 -1
  74. package/lib/commands/dataset/relations.js +1 -1
  75. package/lib/commands/dataset/rename.js +1 -1
  76. package/lib/commands/dataset/restore.js +1 -1
  77. package/lib/commands/db/analyze-cancel.js +1 -1
  78. package/lib/commands/db/analyze-start.js +1 -1
  79. package/lib/commands/db/analyze-status.js +1 -1
  80. package/lib/commands/db/create.js +1 -1
  81. package/lib/commands/db/delete.js +1 -1
  82. package/lib/commands/db/detail.js +1 -1
  83. package/lib/commands/db/diff.js +1 -1
  84. package/lib/commands/db/index.js +1 -1
  85. package/lib/commands/db/list.js +1 -1
  86. package/lib/commands/db/shared.js +1 -1
  87. package/lib/commands/db/tables.js +1 -1
  88. package/lib/commands/db/test.js +1 -1
  89. package/lib/commands/db/update.js +1 -1
  90. package/lib/commands/doctor.js +1 -1
  91. package/lib/commands/init/index.js +1 -1
  92. package/lib/commands/issue/index.js +1 -1
  93. package/lib/commands/issue/nudge.js +1 -1
  94. package/lib/commands/issue/report.js +1 -1
  95. package/lib/commands/issue/shared.js +1 -1
  96. package/lib/commands/logs/index.js +1 -1
  97. package/lib/commands/menu/index.js +1 -1
  98. package/lib/commands/menu/list.js +1 -1
  99. package/lib/commands/menu/shared/compare-table.js +1 -1
  100. package/lib/commands/menu/shared/index.js +1 -1
  101. package/lib/commands/menu/shared/inquirer.js +1 -1
  102. package/lib/commands/menu/shared/local-pages.js +1 -1
  103. package/lib/commands/menu/shared/logic.js +1 -1
  104. package/lib/commands/menu/shared/service.js +1 -1
  105. package/lib/commands/menu/shared/sync-core.js +1 -1
  106. package/lib/commands/menu/shared/update-core.js +1 -1
  107. package/lib/commands/menu/shared/valid-url.js +1 -1
  108. package/lib/commands/menu/sync.js +1 -1
  109. package/lib/commands/menu/update.js +1 -1
  110. package/lib/commands/page/generate-start.js +1 -1
  111. package/lib/commands/page/generate-status.js +1 -1
  112. package/lib/commands/page/index.js +1 -1
  113. package/lib/commands/page/pull.js +1 -1
  114. package/lib/commands/page/push.js +1 -1
  115. package/lib/commands/page/relation-audit.js +1 -1
  116. package/lib/commands/page/shared.js +1 -1
  117. package/lib/commands/page/standard-page-status.js +1 -1
  118. package/lib/commands/page/sync.js +1 -1
  119. package/lib/commands/permit/index.js +1 -1
  120. package/lib/commands/permit/page-get.js +1 -1
  121. package/lib/commands/permit/page-set.js +1 -1
  122. package/lib/commands/permit/role-apis-set.js +1 -1
  123. package/lib/commands/permit/role-menus-set.js +1 -1
  124. package/lib/commands/permit/role-menus.js +1 -1
  125. package/lib/commands/permit/shared.js +1 -1
  126. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  127. package/lib/commands/project/create/format-elapsed.js +1 -1
  128. package/lib/commands/project/create/main.js +1 -1
  129. package/lib/commands/project/create/non-interactive.js +1 -1
  130. package/lib/commands/project/create/project-template-path.js +1 -1
  131. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  132. package/lib/commands/project/create/use-format-code.js +1 -1
  133. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  134. package/lib/commands/project/index.js +1 -1
  135. package/lib/commands/project/init.js +1 -1
  136. package/lib/commands/project/upgrade.js +1 -1
  137. package/lib/commands/registry.js +1 -1
  138. package/lib/commands/role/create.js +1 -1
  139. package/lib/commands/role/delete.js +1 -1
  140. package/lib/commands/role/detail.js +1 -1
  141. package/lib/commands/role/index.js +1 -1
  142. package/lib/commands/role/list.js +1 -1
  143. package/lib/commands/role/shared.js +1 -1
  144. package/lib/commands/role/update.js +1 -1
  145. package/lib/commands/role/user-add.js +1 -1
  146. package/lib/commands/role/user-remove.js +1 -1
  147. package/lib/commands/role/user-resolve.js +1 -1
  148. package/lib/commands/run/index.js +1 -1
  149. package/lib/commands/schema.js +1 -1
  150. package/lib/commands/sql/create.js +1 -1
  151. package/lib/commands/sql/delete.js +1 -1
  152. package/lib/commands/sql/detail.js +1 -1
  153. package/lib/commands/sql/exec.js +1 -1
  154. package/lib/commands/sql/index.js +1 -1
  155. package/lib/commands/sql/list.js +1 -1
  156. package/lib/commands/sql/pull.js +1 -1
  157. package/lib/commands/sql/push.js +1 -1
  158. package/lib/commands/sql/save.js +1 -1
  159. package/lib/commands/sql/shared.js +1 -1
  160. package/lib/commands/sql/status.js +1 -1
  161. package/lib/commands/sql/validate.js +1 -1
  162. package/lib/commands/workspace/add.js +1 -1
  163. package/lib/commands/workspace/index.js +1 -1
  164. package/lib/commands/workspace/remove.js +1 -1
  165. package/lib/config/schema.js +1 -1
  166. package/lib/constant/cdn.js +1 -1
  167. package/lib/constant/cli.js +1 -1
  168. package/lib/constant/defaults.js +1 -1
  169. package/lib/constant/domain.js +1 -1
  170. package/lib/constant/env.js +1 -1
  171. package/lib/constant/output.js +1 -1
  172. package/lib/constant/paths.js +1 -1
  173. package/lib/constant/risk.js +1 -1
  174. package/lib/context/app-resolver.js +1 -1
  175. package/lib/context/auth-resolver.js +1 -1
  176. package/lib/context/config-loader.js +1 -1
  177. package/lib/context.js +1 -1
  178. package/lib/core/alias-resolver.js +1 -1
  179. package/lib/core/api-client.js +1 -1
  180. package/lib/core/bff/config.js +1 -1
  181. package/lib/core/bff/file-system.js +1 -1
  182. package/lib/core/bff/hash.js +1 -1
  183. package/lib/core/bff/lock.js +1 -1
  184. package/lib/core/bff/utils.js +1 -1
  185. package/lib/core/db-resolver.js +1 -1
  186. package/lib/core/page/file-system.js +1 -1
  187. package/lib/core/page/hash.js +1 -1
  188. package/lib/core/page/lock.js +1 -1
  189. package/lib/core/sql-sync/config.js +1 -1
  190. package/lib/core/sql-sync/file-system.js +1 -1
  191. package/lib/core/sql-sync/hash.js +1 -1
  192. package/lib/core/sql-sync/lock.js +1 -1
  193. package/lib/core/sql-sync/utils.js +1 -1
  194. package/lib/core/sql-validator.js +1 -1
  195. package/lib/errors.js +1 -1
  196. package/lib/framework/build-all-flags.js +1 -1
  197. package/lib/framework/flags.js +1 -1
  198. package/lib/framework/help.js +1 -1
  199. package/lib/framework/index.js +1 -1
  200. package/lib/framework/output.js +1 -1
  201. package/lib/framework/response.js +1 -1
  202. package/lib/framework/runner-alias.js +1 -1
  203. package/lib/framework/runner.js +1 -1
  204. package/lib/framework/schema-export.js +1 -1
  205. package/lib/framework/types.js +1 -1
  206. package/lib/generated/build-info.js +1 -1
  207. package/lib/help.js +1 -1
  208. package/lib/skills/main.js +1 -1
  209. package/lib/skills/npx-skills-add.js +1 -1
  210. package/lib/telemetry/cli-command-trace.js +1 -1
  211. package/lib/telemetry/cli-help-trace.js +1 -1
  212. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  213. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  214. package/lib/telemetry/send-cli-trace-log.js +1 -1
  215. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  216. package/lib/utils/ai_config.js +1 -1
  217. package/lib/utils/apply-jq-filter.js +1 -1
  218. package/lib/utils/cdn-config.js +1 -1
  219. package/lib/utils/check-sdk-version.js +1 -1
  220. package/lib/utils/cli-version-check.js +1 -1
  221. package/lib/utils/cli-version-policy.js +1 -1
  222. package/lib/utils/config.js +1 -1
  223. package/lib/utils/copy-directory.js +1 -1
  224. package/lib/utils/entity-with-id.js +1 -1
  225. package/lib/utils/file-utils.js +1 -1
  226. package/lib/utils/guides-cdn.js +1 -1
  227. package/lib/utils/http-client.js +1 -1
  228. package/lib/utils/is-non-interactive.js +1 -1
  229. package/lib/utils/logger.js +1 -1
  230. package/lib/utils/params.js +1 -1
  231. package/lib/utils/platform.js +1 -1
  232. package/lib/utils/rules-cdn.js +1 -1
  233. package/lib/utils/sleep.js +1 -1
  234. package/lib/utils/template-replacer.js +1 -1
  235. package/lib/utils/update-notice.js +1 -1
  236. package/lib/utils/version.js +1 -1
  237. package/lib/utils/with-active-cookie.js +1 -1
  238. package/lib/utils/write-cli-side-channel.js +1 -1
  239. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x2e8905,_0x200d01){const _0x283279=a239_0xca9d,_0x397506=_0x2e8905();while(!![]){try{const _0x442191=-parseInt(_0x283279(0x130))/0x1*(parseInt(_0x283279(0x118))/0x2)+parseInt(_0x283279(0x139))/0x3*(parseInt(_0x283279(0x117))/0x4)+parseInt(_0x283279(0x11b))/0x5*(parseInt(_0x283279(0x11d))/0x6)+parseInt(_0x283279(0x136))/0x7+-parseInt(_0x283279(0x122))/0x8+-parseInt(_0x283279(0x12b))/0x9*(-parseInt(_0x283279(0x11c))/0xa)+-parseInt(_0x283279(0x12a))/0xb*(-parseInt(_0x283279(0x11a))/0xc);if(_0x442191===_0x200d01)break;else _0x397506['push'](_0x397506['shift']());}catch(_0x3e7f69){_0x397506['push'](_0x397506['shift']());}}}(a239_0x1a4e,0xd9594));import{mkdir,readFile,writeFile}from'node:fs/promises';function a239_0x1a4e(){const _0x13fa2a=['toLowerCase','7858081jGCTHe','update-check.json','parse','2199333BVLeOp','gte','4MIvXbV','3293078VjiBgE','object','111288cgrzBe','305UiOWTQ','11870UGgmEo','39318yfAcmX','utf8','trim','true','yes','13336704wxjFZq','https://www.npmjs.com/package/','/v/','rabetbase-cli','latest','now','number','valid','1441YrULYD','5562mVUGYf','stableVersion','stringify','.cache','\x20update','1hxhrxB','lastNotifiedVersion','checkedAt','lastNotifiedAt','\x20available,\x20current\x20'];a239_0x1a4e=function(){return _0x13fa2a;};return a239_0x1a4e();}import{homedir}from'node:os';function a239_0xca9d(_0x420214,_0x48ca9f){_0x420214=_0x420214-0x116;const _0x1a4e89=a239_0x1a4e();let _0xca9d21=_0x1a4e89[_0x420214];return _0xca9d21;}import{dirname,join}from'node:path';import a239_0x126806 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.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 _0x5bae9d=a239_0xca9d,_0x4fe93f=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()[_0x5bae9d(0x135)]();return _0x4fe93f==='1'||_0x4fe93f===_0x5bae9d(0x120)||_0x4fe93f===_0x5bae9d(0x121);}function cacheRoot(){const _0x5c0661=a239_0xca9d;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x5c0661(0x12e));}export function getUpdateNoticeCachePath(){const _0x170907=a239_0xca9d;return join(cacheRoot(),_0x170907(0x125),_0x170907(0x137));}async function readUpdateNoticeCache(){const _0x56a78=a239_0xca9d;try{const _0x5bab52=await readFile(getUpdateNoticeCachePath(),_0x56a78(0x11e)),_0x1779cd=JSON[_0x56a78(0x138)](_0x5bab52);if(!_0x1779cd||typeof _0x1779cd!==_0x56a78(0x119))return{};return _0x1779cd;}catch{return{};}}async function writeUpdateNoticeCache(_0x22a3e3){const _0x2f5187=a239_0xca9d;try{const _0x6847c2=getUpdateNoticeCachePath();await mkdir(dirname(_0x6847c2),{'recursive':!![]}),await writeFile(_0x6847c2,JSON[_0x2f5187(0x12d)](_0x22a3e3,null,0x2)+'\x0a',_0x2f5187(0x11e));}catch{}}function isFreshCheck(_0x49afea,_0x2ec20a){const _0x485417=a239_0xca9d;return typeof _0x49afea[_0x485417(0x132)]===_0x485417(0x128)&&_0x2ec20a-_0x49afea[_0x485417(0x132)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0xc0c604,_0x120a37,_0x50f1bf){const _0x256277=a239_0xca9d;return _0xc0c604[_0x256277(0x131)]===_0x120a37&&typeof _0xc0c604[_0x256277(0x133)]===_0x256277(0x128)&&_0x50f1bf-_0xc0c604['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x45b0fb){const _0x54c1dc=a239_0xca9d;return _0x54c1dc(0x123)+NPM_PACKAGE_NAME+_0x54c1dc(0x124)+_0x45b0fb;}export async function resolveLatestUpdateNotice(){const _0x4682bf=a239_0xca9d;if(isUpdateNoticeDisabled())return null;try{const _0x24b895=Date[_0x4682bf(0x127)](),_0x1490fc=getCliVersion(),_0x47e650=await readUpdateNoticeCache();let _0x342f60=isFreshCheck(_0x47e650,_0x24b895)?_0x47e650[_0x4682bf(0x126)]?.[_0x4682bf(0x11f)]():undefined;if(!_0x342f60&&!isFreshCheck(_0x47e650,_0x24b895)){const _0x2cba4b=await getCliVersionPolicy();_0x342f60=_0x2cba4b?.[_0x4682bf(0x12c)]?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x47e650,'checkedAt':_0x24b895,'latest':_0x342f60,'failed':!_0x342f60});}if(!_0x342f60||!a239_0x126806[_0x4682bf(0x129)](_0x1490fc)||!a239_0x126806[_0x4682bf(0x129)](_0x342f60))return null;if(a239_0x126806[_0x4682bf(0x116)](_0x1490fc,_0x342f60))return null;if(isRecentlyNotified(_0x47e650,_0x342f60,_0x24b895))return null;const _0x555162=CLI_BIN_NAME+_0x4682bf(0x12f);return await writeUpdateNoticeCache({..._0x47e650,'checkedAt':isFreshCheck(_0x47e650,_0x24b895)?_0x47e650['checkedAt']:_0x24b895,'latest':_0x342f60,'failed':![],'lastNotifiedVersion':_0x342f60,'lastNotifiedAt':_0x24b895}),{'command':_0x555162,'current':_0x1490fc,'latest':_0x342f60,'url':buildNpmVersionUrl(_0x342f60),'message':CLI_BIN_NAME+'\x20'+_0x342f60+_0x4682bf(0x134)+_0x1490fc+',\x20run:\x20'+_0x555162};}catch{return null;}}
1
+ (function(_0x2d65ee,_0x3eda2a){const _0x3b85e7=a239_0x1469,_0x590491=_0x2d65ee();while(!![]){try{const _0x403a9b=-parseInt(_0x3b85e7(0x185))/0x1*(-parseInt(_0x3b85e7(0x19e))/0x2)+parseInt(_0x3b85e7(0x1a0))/0x3*(-parseInt(_0x3b85e7(0x197))/0x4)+-parseInt(_0x3b85e7(0x18c))/0x5*(-parseInt(_0x3b85e7(0x1a1))/0x6)+parseInt(_0x3b85e7(0x189))/0x7*(parseInt(_0x3b85e7(0x186))/0x8)+parseInt(_0x3b85e7(0x196))/0x9*(-parseInt(_0x3b85e7(0x19c))/0xa)+-parseInt(_0x3b85e7(0x193))/0xb*(parseInt(_0x3b85e7(0x198))/0xc)+parseInt(_0x3b85e7(0x187))/0xd;if(_0x403a9b===_0x3eda2a)break;else _0x590491['push'](_0x590491['shift']());}catch(_0x4f001a){_0x590491['push'](_0x590491['shift']());}}}(a239_0x4eab,0xa0275));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a239_0x284ecc from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.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 a239_0x4eab(){const _0x23cb93=['1694367rCoefB','18cZrWMq','/v/','stableVersion','checkedAt','192559KNpFId','4449560lhHGHE','13559962DfSuIt','\x20available,\x20current\x20','7jUfaui','lastNotifiedAt','now','774275iscJfx','update-check.json','parse','valid','number','.cache','true','18315cLoqkJ','object','utf8','786645dDWCvr','4QzHpHo','6204nPBzrD','trim','latest',',\x20run:\x20','20WXhNSU','yes','2rWFByn','https://www.npmjs.com/package/'];a239_0x4eab=function(){return _0x23cb93;};return a239_0x4eab();}function isUpdateNoticeDisabled(){const _0x5c4c3c=a239_0x1469,_0x25ba79=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()['toLowerCase']();return _0x25ba79==='1'||_0x25ba79===_0x5c4c3c(0x192)||_0x25ba79===_0x5c4c3c(0x19d);}function cacheRoot(){const _0x334dc0=a239_0x1469;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x334dc0(0x191));}function a239_0x1469(_0x592a9a,_0x142146){_0x592a9a=_0x592a9a-0x182;const _0x4eab36=a239_0x4eab();let _0x1469f9=_0x4eab36[_0x592a9a];return _0x1469f9;}export function getUpdateNoticeCachePath(){const _0x1714a9=a239_0x1469;return join(cacheRoot(),'rabetbase-cli',_0x1714a9(0x18d));}async function readUpdateNoticeCache(){const _0x40e5d4=a239_0x1469;try{const _0x4ec28d=await readFile(getUpdateNoticeCachePath(),_0x40e5d4(0x195)),_0x324f34=JSON[_0x40e5d4(0x18e)](_0x4ec28d);if(!_0x324f34||typeof _0x324f34!==_0x40e5d4(0x194))return{};return _0x324f34;}catch{return{};}}async function writeUpdateNoticeCache(_0xbde9e0){const _0x216c25=a239_0x1469;try{const _0x2f4195=getUpdateNoticeCachePath();await mkdir(dirname(_0x2f4195),{'recursive':!![]}),await writeFile(_0x2f4195,JSON['stringify'](_0xbde9e0,null,0x2)+'\x0a',_0x216c25(0x195));}catch{}}function isFreshCheck(_0x3e94aa,_0x389da3){const _0x21943b=a239_0x1469;return typeof _0x3e94aa[_0x21943b(0x184)]===_0x21943b(0x190)&&_0x389da3-_0x3e94aa[_0x21943b(0x184)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0xb1cc81,_0x23e32b,_0xbe3361){const _0x2aafcc=a239_0x1469;return _0xb1cc81['lastNotifiedVersion']===_0x23e32b&&typeof _0xb1cc81['lastNotifiedAt']==='number'&&_0xbe3361-_0xb1cc81[_0x2aafcc(0x18a)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x1f058b){const _0x2e1374=a239_0x1469;return _0x2e1374(0x19f)+NPM_PACKAGE_NAME+_0x2e1374(0x182)+_0x1f058b;}export async function resolveLatestUpdateNotice(){const _0x491b4d=a239_0x1469;if(isUpdateNoticeDisabled())return null;try{const _0x21da05=Date[_0x491b4d(0x18b)](),_0x5c8421=getCliVersion(),_0x6c9627=await readUpdateNoticeCache();let _0x187b0a=isFreshCheck(_0x6c9627,_0x21da05)?_0x6c9627[_0x491b4d(0x19a)]?.[_0x491b4d(0x199)]():undefined;if(!_0x187b0a&&!isFreshCheck(_0x6c9627,_0x21da05)){const _0x3005d1=await getCliVersionPolicy();_0x187b0a=_0x3005d1?.[_0x491b4d(0x183)]?.[_0x491b4d(0x199)]()||undefined,await writeUpdateNoticeCache({..._0x6c9627,'checkedAt':_0x21da05,'latest':_0x187b0a,'failed':!_0x187b0a});}if(!_0x187b0a||!a239_0x284ecc['valid'](_0x5c8421)||!a239_0x284ecc[_0x491b4d(0x18f)](_0x187b0a))return null;if(a239_0x284ecc['gte'](_0x5c8421,_0x187b0a))return null;if(isRecentlyNotified(_0x6c9627,_0x187b0a,_0x21da05))return null;const _0x266be6=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x6c9627,'checkedAt':isFreshCheck(_0x6c9627,_0x21da05)?_0x6c9627[_0x491b4d(0x184)]:_0x21da05,'latest':_0x187b0a,'failed':![],'lastNotifiedVersion':_0x187b0a,'lastNotifiedAt':_0x21da05}),{'command':_0x266be6,'current':_0x5c8421,'latest':_0x187b0a,'url':buildNpmVersionUrl(_0x187b0a),'message':CLI_BIN_NAME+'\x20'+_0x187b0a+_0x491b4d(0x188)+_0x5c8421+_0x491b4d(0x19b)+_0x266be6};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x11d300,_0x29dea9){var _0x3da6b4=a240_0x1b6d,_0x182019=_0x11d300();while(!![]){try{var _0x55d350=-parseInt(_0x3da6b4(0x17b))/0x1+parseInt(_0x3da6b4(0x17f))/0x2+-parseInt(_0x3da6b4(0x180))/0x3*(-parseInt(_0x3da6b4(0x17d))/0x4)+parseInt(_0x3da6b4(0x179))/0x5+parseInt(_0x3da6b4(0x17e))/0x6+-parseInt(_0x3da6b4(0x17c))/0x7*(parseInt(_0x3da6b4(0x181))/0x8)+-parseInt(_0x3da6b4(0x17a))/0x9;if(_0x55d350===_0x29dea9)break;else _0x182019['push'](_0x182019['shift']());}catch(_0x7dcd19){_0x182019['push'](_0x182019['shift']());}}}(a240_0x2320,0x9a31b));import{VERSION}from'../generated/build-info.js';function a240_0x1b6d(_0x44009e,_0x14087a){_0x44009e=_0x44009e-0x179;var _0x2320de=a240_0x2320();var _0x1b6d4d=_0x2320de[_0x44009e];return _0x1b6d4d;}export function getCliVersion(){return VERSION;}function a240_0x2320(){var _0x5129b8=['1032cwlUss','4871658XAAkIv','1082110RFyFVA','12837fgBVvt','8uNGIqw','5837860AlsuZs','7059258MeszgV','1207940bFTdow','7004697chOvwH'];a240_0x2320=function(){return _0x5129b8;};return a240_0x2320();}
1
+ (function(_0x48547f,_0x384435){var _0xfc940c=a240_0x3693,_0x7e4248=_0x48547f();while(!![]){try{var _0x43ef23=parseInt(_0xfc940c(0xf8))/0x1+-parseInt(_0xfc940c(0xf9))/0x2+-parseInt(_0xfc940c(0xfa))/0x3*(-parseInt(_0xfc940c(0xfd))/0x4)+-parseInt(_0xfc940c(0xf7))/0x5+parseInt(_0xfc940c(0xfb))/0x6*(parseInt(_0xfc940c(0xfc))/0x7)+parseInt(_0xfc940c(0xf6))/0x8*(parseInt(_0xfc940c(0xf5))/0x9)+-parseInt(_0xfc940c(0xf4))/0xa;if(_0x43ef23===_0x384435)break;else _0x7e4248['push'](_0x7e4248['shift']());}catch(_0x1d6f2a){_0x7e4248['push'](_0x7e4248['shift']());}}}(a240_0x3e86,0xd37bc));function a240_0x3693(_0x4f9fd5,_0x22dd7a){_0x4f9fd5=_0x4f9fd5-0xf4;var _0x3e862d=a240_0x3e86();var _0x36935c=_0x3e862d[_0x4f9fd5];return _0x36935c;}import{VERSION}from'../generated/build-info.js';function a240_0x3e86(){var _0x292d75=['7yoIqIt','6884jPuIHV','22203440abqnTG','18hswLxv','2487304jviQxz','1924600PqqGeX','1313154iJkbIQ','2708004rChkwQ','2166YJZgju','9887760AsBWNv'];a240_0x3e86=function(){return _0x292d75;};return a240_0x3e86();}export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- (function(_0x3d21d9,_0x3f6917){var _0x4eb9af=a241_0x2dcb,_0x363320=_0x3d21d9();while(!![]){try{var _0x4eb7d1=-parseInt(_0x4eb9af(0x118))/0x1*(-parseInt(_0x4eb9af(0x113))/0x2)+-parseInt(_0x4eb9af(0x112))/0x3+-parseInt(_0x4eb9af(0x116))/0x4*(-parseInt(_0x4eb9af(0x10f))/0x5)+parseInt(_0x4eb9af(0x115))/0x6*(-parseInt(_0x4eb9af(0x111))/0x7)+parseInt(_0x4eb9af(0x114))/0x8+parseInt(_0x4eb9af(0x117))/0x9+-parseInt(_0x4eb9af(0x110))/0xa;if(_0x4eb7d1===_0x3f6917)break;else _0x363320['push'](_0x363320['shift']());}catch(_0x53aefb){_0x363320['push'](_0x363320['shift']());}}}(a241_0x105d,0x47239));function a241_0x2dcb(_0x467444,_0x2645c5){_0x467444=_0x467444-0x10f;var _0x105d1d=a241_0x105d();var _0x2dcb59=_0x105d1d[_0x467444];return _0x2dcb59;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x56079a,_0x17f334){setActiveCookie(_0x56079a);try{return await _0x17f334();}finally{clearActiveCookie();}}function a241_0x105d(){var _0x23e7c0=['1238cObiqH','3137504koLyZN','3206184LXsIfs','1252oIIzxn','5116293AZHWhQ','497eULPIZ','3715DbKkaN','3019570VxJuss','7oJlxEi','1119483POyYXS'];a241_0x105d=function(){return _0x23e7c0;};return a241_0x105d();}
1
+ function a241_0x2480(_0x50d718,_0x84b002){_0x50d718=_0x50d718-0x138;var _0x47066a=a241_0x4706();var _0x2480e2=_0x47066a[_0x50d718];return _0x2480e2;}function a241_0x4706(){var _0x1b4c0d=['566546eHnjPe','1192DedCJT','17335oDoyjg','32903091gZFQSt','1497209LjEFou','88vDjEia','590211LeZClx','1376540BLWhun','6xKbNHP','12JrmXrX','771WsqIZI','24VeVpLj','110FPGxLJ'];a241_0x4706=function(){return _0x1b4c0d;};return a241_0x4706();}(function(_0x2b7929,_0xb9b6bc){var _0x345e50=a241_0x2480,_0xaa0484=_0x2b7929();while(!![]){try{var _0x2c8a77=parseInt(_0x345e50(0x142))/0x1+-parseInt(_0x345e50(0x138))/0x2*(parseInt(_0x345e50(0x140))/0x3)+-parseInt(_0x345e50(0x139))/0x4*(parseInt(_0x345e50(0x13a))/0x5)+parseInt(_0x345e50(0x143))/0x6*(-parseInt(_0x345e50(0x13c))/0x7)+-parseInt(_0x345e50(0x13d))/0x8*(parseInt(_0x345e50(0x13e))/0x9)+-parseInt(_0x345e50(0x13f))/0xa*(-parseInt(_0x345e50(0x144))/0xb)+parseInt(_0x345e50(0x141))/0xc*(parseInt(_0x345e50(0x13b))/0xd);if(_0x2c8a77===_0xb9b6bc)break;else _0xaa0484['push'](_0xaa0484['shift']());}catch(_0x3e7e75){_0xaa0484['push'](_0xaa0484['shift']());}}}(a241_0x4706,0xb2a29));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x2c9533,_0x431de2){setActiveCookie(_0x2c9533);try{return await _0x431de2();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- function a242_0x16fc(_0x5d3139,_0x498ff2){_0x5d3139=_0x5d3139-0x155;var _0x44fd1a=a242_0x44fd();var _0x16fc08=_0x44fd1a[_0x5d3139];return _0x16fc08;}(function(_0x41c38a,_0x4b503a){var _0x121a7d=a242_0x16fc,_0xe3c270=_0x41c38a();while(!![]){try{var _0x4b1e0d=-parseInt(_0x121a7d(0x15e))/0x1*(parseInt(_0x121a7d(0x157))/0x2)+parseInt(_0x121a7d(0x155))/0x3+parseInt(_0x121a7d(0x15a))/0x4*(parseInt(_0x121a7d(0x15d))/0x5)+-parseInt(_0x121a7d(0x156))/0x6+parseInt(_0x121a7d(0x160))/0x7*(-parseInt(_0x121a7d(0x159))/0x8)+parseInt(_0x121a7d(0x158))/0x9*(parseInt(_0x121a7d(0x15f))/0xa)+parseInt(_0x121a7d(0x15b))/0xb;if(_0x4b1e0d===_0x4b503a)break;else _0xe3c270['push'](_0xe3c270['shift']());}catch(_0x47d571){_0xe3c270['push'](_0xe3c270['shift']());}}}(a242_0x44fd,0x50de2));function a242_0x44fd(){var _0x4ed868=['stderr','5MfOkoO','8886rHnmIB','2620630EgalCT','35Kcabfz','760659Umwimh','3777204qzwHEb','116XIOBIZ','9zdNgrQ','636904wpcIkc','869468ytCYhs','12553618OMBoZl'];a242_0x44fd=function(){return _0x4ed868;};return a242_0x44fd();}export function writeCliSideChannelLine(_0xe4c138){var _0x36e235=a242_0x16fc;process[_0x36e235(0x15c)]['write'](_0xe4c138+'\x0a');}
1
+ function a242_0x5b09(_0x4ebf29,_0x302654){_0x4ebf29=_0x4ebf29-0x178;var _0x4a1664=a242_0x4a16();var _0x5b09c3=_0x4a1664[_0x4ebf29];return _0x5b09c3;}(function(_0x560e26,_0x5ede9c){var _0x4f9d2b=a242_0x5b09,_0x2f51e8=_0x560e26();while(!![]){try{var _0x43a8ff=-parseInt(_0x4f9d2b(0x17e))/0x1*(parseInt(_0x4f9d2b(0x181))/0x2)+parseInt(_0x4f9d2b(0x178))/0x3*(-parseInt(_0x4f9d2b(0x17c))/0x4)+parseInt(_0x4f9d2b(0x179))/0x5+parseInt(_0x4f9d2b(0x17f))/0x6+parseInt(_0x4f9d2b(0x180))/0x7+-parseInt(_0x4f9d2b(0x17d))/0x8+parseInt(_0x4f9d2b(0x17a))/0x9;if(_0x43a8ff===_0x5ede9c)break;else _0x2f51e8['push'](_0x2f51e8['shift']());}catch(_0x3c9b4f){_0x2f51e8['push'](_0x2f51e8['shift']());}}}(a242_0x4a16,0x683eb));function a242_0x4a16(){var _0x958352=['write','36gUAglp','4753800RQymSu','14MPmcnK','1638954EWzpxI','2070264zBAzPF','57412vWPyda','52467HuOamj','3047110iMfefU','3619476vqnIlE'];a242_0x4a16=function(){return _0x958352;};return a242_0x4a16();}export function writeCliSideChannelLine(_0x3e3cd7){var _0x5ed4da=a242_0x5b09;process['stderr'][_0x5ed4da(0x17b)](_0x3e3cd7+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.3.4",
3
+ "version": "2.3.5",
4
4
  "description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, BFF, database connections, skills, and AI agent workflows.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "keywords": [