@lovrabet/rabetbase-cli 2.2.3-beta.2 → 2.2.3
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.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/discover.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a205_0x1bd0(){const _0x3594d1=['1167240nEROzz','true','8FgWeJc','11976755ASqASH','2356215Orfujy','checkedAt','number','update-check.json','trim','8024016LUwZIx','valid','1265400tytmJv','3696150PoUlTx','toLowerCase',',\x20run:\x20','44554rAdmlU','lastNotifiedAt','https://www.npmjs.com/package/','lastNotifiedVersion','now','utf8','\x20available,\x20current\x20','stringify','latest','object','stableVersion'];a205_0x1bd0=function(){return _0x3594d1;};return a205_0x1bd0();}function a205_0x12d3(_0x5b81aa,_0x1d93b3){_0x5b81aa=_0x5b81aa-0xc0;const _0x1bd0bf=a205_0x1bd0();let _0x12d368=_0x1bd0bf[_0x5b81aa];return _0x12d368;}(function(_0x2d2350,_0x11b437){const _0x4efee3=a205_0x12d3,_0x2a706a=_0x2d2350();while(!![]){try{const _0x2af800=parseInt(_0x4efee3(0xcd))/0x1*(parseInt(_0x4efee3(0xc0))/0x2)+parseInt(_0x4efee3(0xc2))/0x3+-parseInt(_0x4efee3(0xd8))/0x4+parseInt(_0x4efee3(0xca))/0x5+parseInt(_0x4efee3(0xc7))/0x6+-parseInt(_0x4efee3(0xc1))/0x7+-parseInt(_0x4efee3(0xc9))/0x8;if(_0x2af800===_0x11b437)break;else _0x2a706a['push'](_0x2a706a['shift']());}catch(_0x80b908){_0x2a706a['push'](_0x2a706a['shift']());}}}(a205_0x1bd0,0xd6a85));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a205_0x3b3960 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 _0x1615d4=a205_0x12d3,_0x287888=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x1615d4(0xc6)]()[_0x1615d4(0xcb)]();return _0x287888==='1'||_0x287888===_0x1615d4(0xd9)||_0x287888==='yes';}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x51c0c0=a205_0x12d3;return join(cacheRoot(),'rabetbase-cli',_0x51c0c0(0xc5));}async function readUpdateNoticeCache(){const _0x49ac95=a205_0x12d3;try{const _0x8dbd7b=await readFile(getUpdateNoticeCachePath(),_0x49ac95(0xd2)),_0x5c13a3=JSON['parse'](_0x8dbd7b);if(!_0x5c13a3||typeof _0x5c13a3!==_0x49ac95(0xd6))return{};return _0x5c13a3;}catch{return{};}}async function writeUpdateNoticeCache(_0x149a47){const _0x244037=a205_0x12d3;try{const _0x31387b=getUpdateNoticeCachePath();await mkdir(dirname(_0x31387b),{'recursive':!![]}),await writeFile(_0x31387b,JSON[_0x244037(0xd4)](_0x149a47,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x5f026d,_0x2ba574){const _0x3bfc42=a205_0x12d3;return typeof _0x5f026d['checkedAt']===_0x3bfc42(0xc4)&&_0x2ba574-_0x5f026d['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x1285de,_0x58e72d,_0x35b629){const _0x4223e6=a205_0x12d3;return _0x1285de[_0x4223e6(0xd0)]===_0x58e72d&&typeof _0x1285de[_0x4223e6(0xce)]===_0x4223e6(0xc4)&&_0x35b629-_0x1285de['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x482744){const _0x489bea=a205_0x12d3;return _0x489bea(0xcf)+NPM_PACKAGE_NAME+'/v/'+_0x482744;}export async function resolveLatestUpdateNotice(){const _0x404bc4=a205_0x12d3;if(isUpdateNoticeDisabled())return null;try{const _0x3eca22=Date[_0x404bc4(0xd1)](),_0x366e30=getCliVersion(),_0x197394=await readUpdateNoticeCache();let _0x2d9f9a=isFreshCheck(_0x197394,_0x3eca22)?_0x197394[_0x404bc4(0xd5)]?.[_0x404bc4(0xc6)]():undefined;if(!_0x2d9f9a&&!isFreshCheck(_0x197394,_0x3eca22)){const _0x16904=await getCliVersionPolicy();_0x2d9f9a=_0x16904?.[_0x404bc4(0xd7)]?.[_0x404bc4(0xc6)]()||undefined,await writeUpdateNoticeCache({..._0x197394,'checkedAt':_0x3eca22,'latest':_0x2d9f9a,'failed':!_0x2d9f9a});}if(!_0x2d9f9a||!a205_0x3b3960[_0x404bc4(0xc8)](_0x366e30)||!a205_0x3b3960[_0x404bc4(0xc8)](_0x2d9f9a))return null;if(a205_0x3b3960['gte'](_0x366e30,_0x2d9f9a))return null;if(isRecentlyNotified(_0x197394,_0x2d9f9a,_0x3eca22))return null;const _0x4876e4=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x197394,'checkedAt':isFreshCheck(_0x197394,_0x3eca22)?_0x197394[_0x404bc4(0xc3)]:_0x3eca22,'latest':_0x2d9f9a,'failed':![],'lastNotifiedVersion':_0x2d9f9a,'lastNotifiedAt':_0x3eca22}),{'command':_0x4876e4,'current':_0x366e30,'latest':_0x2d9f9a,'url':buildNpmVersionUrl(_0x2d9f9a),'message':CLI_BIN_NAME+'\x20'+_0x2d9f9a+_0x404bc4(0xd3)+_0x366e30+_0x404bc4(0xcc)+_0x4876e4};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a206_0x4152(_0x137557,_0x4bd755){_0x137557=_0x137557-0x124;var _0x243f30=a206_0x243f();var _0x415237=_0x243f30[_0x137557];return _0x415237;}(function(_0x1d974d,_0x4c3db2){var _0x40c24e=a206_0x4152,_0x497733=_0x1d974d();while(!![]){try{var _0x2532df=-parseInt(_0x40c24e(0x12e))/0x1+-parseInt(_0x40c24e(0x125))/0x2+-parseInt(_0x40c24e(0x128))/0x3+-parseInt(_0x40c24e(0x129))/0x4*(-parseInt(_0x40c24e(0x127))/0x5)+-parseInt(_0x40c24e(0x126))/0x6*(-parseInt(_0x40c24e(0x12b))/0x7)+-parseInt(_0x40c24e(0x124))/0x8*(parseInt(_0x40c24e(0x12c))/0x9)+parseInt(_0x40c24e(0x12a))/0xa*(parseInt(_0x40c24e(0x12d))/0xb);if(_0x2532df===_0x4c3db2)break;else _0x497733['push'](_0x497733['shift']());}catch(_0x318b04){_0x497733['push'](_0x497733['shift']());}}}(a206_0x243f,0x64b26));function a206_0x243f(){var _0x200517=['92PIHSqD','16158820yEhaql','25298BBzswO','6961401aSECps','11IhRdBp','79611eijpim','8lWqEYU','502030anDrOL','12ChnJrF','125165JBWtma','2046900yUJKcJ'];a206_0x243f=function(){return _0x200517;};return a206_0x243f();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1a9db1,_0x362531){var _0x3a58f0=a207_0x1531,_0x46955c=_0x1a9db1();while(!![]){try{var _0x1d8b42=-parseInt(_0x3a58f0(0x11e))/0x1*(-parseInt(_0x3a58f0(0x11b))/0x2)+parseInt(_0x3a58f0(0x121))/0x3+-parseInt(_0x3a58f0(0x11f))/0x4*(-parseInt(_0x3a58f0(0x11d))/0x5)+-parseInt(_0x3a58f0(0x123))/0x6*(parseInt(_0x3a58f0(0x119))/0x7)+-parseInt(_0x3a58f0(0x120))/0x8*(parseInt(_0x3a58f0(0x11a))/0x9)+parseInt(_0x3a58f0(0x122))/0xa+parseInt(_0x3a58f0(0x11c))/0xb;if(_0x1d8b42===_0x362531)break;else _0x46955c['push'](_0x46955c['shift']());}catch(_0x3d4ac6){_0x46955c['push'](_0x46955c['shift']());}}}(a207_0x475b,0x9fe4e));function a207_0x475b(){var _0x4c801d=['6432030RpSbDS','23514vvMjuP','1890SYMoUF','135AJANFn','2VzyMDe','9655492iPkjlQ','5OowZJs','280675uBvDrC','1702028AnLHvU','459304mMddaf','1041282aARlIP'];a207_0x475b=function(){return _0x4c801d;};return a207_0x475b();}function a207_0x1531(_0x5870e3,_0x3843cb){_0x5870e3=_0x5870e3-0x119;var _0x475b01=a207_0x475b();var _0x1531eb=_0x475b01[_0x5870e3];return _0x1531eb;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x53be4a,_0x46d25f){setActiveCookie(_0x53be4a);try{return await _0x46d25f();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x444572,_0x259f2d){var _0x529f44=a208_0x2e33,_0x397eb4=_0x444572();while(!![]){try{var _0x47a4ef=parseInt(_0x529f44(0x143))/0x1*(parseInt(_0x529f44(0x14a))/0x2)+parseInt(_0x529f44(0x14b))/0x3*(parseInt(_0x529f44(0x148))/0x4)+-parseInt(_0x529f44(0x150))/0x5*(-parseInt(_0x529f44(0x14e))/0x6)+-parseInt(_0x529f44(0x144))/0x7*(parseInt(_0x529f44(0x149))/0x8)+parseInt(_0x529f44(0x146))/0x9*(parseInt(_0x529f44(0x145))/0xa)+-parseInt(_0x529f44(0x14f))/0xb+-parseInt(_0x529f44(0x14c))/0xc*(-parseInt(_0x529f44(0x142))/0xd);if(_0x47a4ef===_0x259f2d)break;else _0x397eb4['push'](_0x397eb4['shift']());}catch(_0x554c3e){_0x397eb4['push'](_0x397eb4['shift']());}}}(a208_0x13f1,0x76c10));export function writeCliSideChannelLine(_0x549caf){var _0x200b5d=a208_0x2e33;process[_0x200b5d(0x147)][_0x200b5d(0x14d)](_0x549caf+'\x0a');}function a208_0x2e33(_0x2f4265,_0x33891c){_0x2f4265=_0x2f4265-0x142;var _0x13f1eb=a208_0x13f1();var _0x2e330d=_0x13f1eb[_0x2f4265];return _0x2e330d;}function a208_0x13f1(){var _0x576b7c=['write','22146hdtkoV','10641928DINKVd','165qVqohB','13QPipue','2080ZPIwiL','14ELDaZU','4170UQuCbo','19161clolkr','stderr','103516ZhFFdt','157520PEzjJP','220WzlBXk','15tTicDi','1505436VdTVtk'];a208_0x13f1=function(){return _0x576b7c;};return a208_0x13f1();}
|