@lovrabet/rabetbase-cli 2.3.1 → 2.3.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.
- 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/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.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-skill/index.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/business-group-update.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-audit.js +1 -0
- 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/dataset/restore.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/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/commands/workspace/index.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/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.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(_0x3c4c09,_0x57b434){const _0x38cd7f=a218_0x35b7,_0x3b9de4=_0x3c4c09();while(!![]){try{const _0x29f231=-parseInt(_0x38cd7f(0x1c8))/0x1*(-parseInt(_0x38cd7f(0x1c6))/0x2)+parseInt(_0x38cd7f(0x1d0))/0x3+-parseInt(_0x38cd7f(0x1d2))/0x4+-parseInt(_0x38cd7f(0x1da))/0x5*(parseInt(_0x38cd7f(0x1d3))/0x6)+parseInt(_0x38cd7f(0x1dd))/0x7+parseInt(_0x38cd7f(0x1d6))/0x8+parseInt(_0x38cd7f(0x1cd))/0x9;if(_0x29f231===_0x57b434)break;else _0x3b9de4['push'](_0x3b9de4['shift']());}catch(_0x336071){_0x3b9de4['push'](_0x3b9de4['shift']());}}}(a218_0x6260,0x64185));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a218_0x12990a 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 _0x5b27ef=a218_0x35b7,_0x8c559a=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()['toLowerCase']();return _0x8c559a==='1'||_0x8c559a===_0x5b27ef(0x1d7)||_0x8c559a===_0x5b27ef(0x1d1);}function cacheRoot(){const _0x28d2d3=a218_0x35b7;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x28d2d3(0x1d9));}export function getUpdateNoticeCachePath(){const _0x1a2eb0=a218_0x35b7;return join(cacheRoot(),'rabetbase-cli',_0x1a2eb0(0x1c5));}async function readUpdateNoticeCache(){const _0x1bfa78=a218_0x35b7;try{const _0x46540c=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x64bf4a=JSON['parse'](_0x46540c);if(!_0x64bf4a||typeof _0x64bf4a!==_0x1bfa78(0x1d5))return{};return _0x64bf4a;}catch{return{};}}async function writeUpdateNoticeCache(_0x1d352c){try{const _0x30f193=getUpdateNoticeCachePath();await mkdir(dirname(_0x30f193),{'recursive':!![]}),await writeFile(_0x30f193,JSON['stringify'](_0x1d352c,null,0x2)+'\x0a','utf8');}catch{}}function a218_0x35b7(_0x32bc82,_0x56c2e){_0x32bc82=_0x32bc82-0x1c5;const _0x62600f=a218_0x6260();let _0x35b7e8=_0x62600f[_0x32bc82];return _0x35b7e8;}function isFreshCheck(_0x5ccd6b,_0x4a0031){const _0xcbe18b=a218_0x35b7;return typeof _0x5ccd6b[_0xcbe18b(0x1ce)]==='number'&&_0x4a0031-_0x5ccd6b[_0xcbe18b(0x1ce)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x95addd,_0x33840f,_0x13e178){const _0xcc0b87=a218_0x35b7;return _0x95addd[_0xcc0b87(0x1cc)]===_0x33840f&&typeof _0x95addd['lastNotifiedAt']==='number'&&_0x13e178-_0x95addd[_0xcc0b87(0x1d8)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x237076){const _0x153f63=a218_0x35b7;return _0x153f63(0x1d4)+NPM_PACKAGE_NAME+'/v/'+_0x237076;}function a218_0x6260(){const _0x26397c=['lastNotifiedAt','.cache','880TTUxdW','latest','gte','1751848pOUqbV','trim','update-check.json','2GdvblK','valid','479002XaUKyx','\x20update',',\x20run:\x20','\x20available,\x20current\x20','lastNotifiedVersion','1859373fomMYA','checkedAt','now','1520850TcXJXq','yes','3022400sDHxxv','16044VlrbbZ','https://www.npmjs.com/package/','object','1547200bhtIlm','true'];a218_0x6260=function(){return _0x26397c;};return a218_0x6260();}export async function resolveLatestUpdateNotice(){const _0xb443ba=a218_0x35b7;if(isUpdateNoticeDisabled())return null;try{const _0x4e3400=Date[_0xb443ba(0x1cf)](),_0x1f4cfd=getCliVersion(),_0x52f7d2=await readUpdateNoticeCache();let _0x3887a4=isFreshCheck(_0x52f7d2,_0x4e3400)?_0x52f7d2[_0xb443ba(0x1db)]?.[_0xb443ba(0x1de)]():undefined;if(!_0x3887a4&&!isFreshCheck(_0x52f7d2,_0x4e3400)){const _0x25086d=await getCliVersionPolicy();_0x3887a4=_0x25086d?.['stableVersion']?.[_0xb443ba(0x1de)]()||undefined,await writeUpdateNoticeCache({..._0x52f7d2,'checkedAt':_0x4e3400,'latest':_0x3887a4,'failed':!_0x3887a4});}if(!_0x3887a4||!a218_0x12990a[_0xb443ba(0x1c7)](_0x1f4cfd)||!a218_0x12990a[_0xb443ba(0x1c7)](_0x3887a4))return null;if(a218_0x12990a[_0xb443ba(0x1dc)](_0x1f4cfd,_0x3887a4))return null;if(isRecentlyNotified(_0x52f7d2,_0x3887a4,_0x4e3400))return null;const _0x54a476=CLI_BIN_NAME+_0xb443ba(0x1c9);return await writeUpdateNoticeCache({..._0x52f7d2,'checkedAt':isFreshCheck(_0x52f7d2,_0x4e3400)?_0x52f7d2[_0xb443ba(0x1ce)]:_0x4e3400,'latest':_0x3887a4,'failed':![],'lastNotifiedVersion':_0x3887a4,'lastNotifiedAt':_0x4e3400}),{'command':_0x54a476,'current':_0x1f4cfd,'latest':_0x3887a4,'url':buildNpmVersionUrl(_0x3887a4),'message':CLI_BIN_NAME+'\x20'+_0x3887a4+_0xb443ba(0x1cb)+_0x1f4cfd+_0xb443ba(0x1ca)+_0x54a476};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a219_0x3929(_0xe64b00,_0x2308cb){_0xe64b00=_0xe64b00-0x113;var _0x121eb9=a219_0x121e();var _0x392913=_0x121eb9[_0xe64b00];return _0x392913;}(function(_0x423b8e,_0x4c721c){var _0x3f0133=a219_0x3929,_0xfeb03f=_0x423b8e();while(!![]){try{var _0x211f6a=-parseInt(_0x3f0133(0x117))/0x1+parseInt(_0x3f0133(0x116))/0x2+parseInt(_0x3f0133(0x11a))/0x3*(-parseInt(_0x3f0133(0x113))/0x4)+-parseInt(_0x3f0133(0x119))/0x5+parseInt(_0x3f0133(0x118))/0x6+-parseInt(_0x3f0133(0x114))/0x7+parseInt(_0x3f0133(0x115))/0x8;if(_0x211f6a===_0x4c721c)break;else _0xfeb03f['push'](_0xfeb03f['shift']());}catch(_0x3873ff){_0xfeb03f['push'](_0xfeb03f['shift']());}}}(a219_0x121e,0x48c29));function a219_0x121e(){var _0x2ffaf9=['468955sWoeED','6nqmYFF','288292IEHFSs','618702mPfVHn','1558704CHLeHp','682626xjSLkx','265285NCwOkN','2120892CKAWmB'];a219_0x121e=function(){return _0x2ffaf9;};return a219_0x121e();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2c36ee,_0x5618bc){var _0x4a2deb=a220_0x87d2,_0x20e13e=_0x2c36ee();while(!![]){try{var _0x3001f7=-parseInt(_0x4a2deb(0x100))/0x1*(parseInt(_0x4a2deb(0xff))/0x2)+parseInt(_0x4a2deb(0x103))/0x3+-parseInt(_0x4a2deb(0x106))/0x4+-parseInt(_0x4a2deb(0x101))/0x5*(parseInt(_0x4a2deb(0x105))/0x6)+parseInt(_0x4a2deb(0x104))/0x7*(-parseInt(_0x4a2deb(0x102))/0x8)+parseInt(_0x4a2deb(0xfe))/0x9+parseInt(_0x4a2deb(0x107))/0xa;if(_0x3001f7===_0x5618bc)break;else _0x20e13e['push'](_0x20e13e['shift']());}catch(_0x2b8a75){_0x20e13e['push'](_0x20e13e['shift']());}}}(a220_0x4bdd,0xbcf88));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a220_0x4bdd(){var _0x29544a=['20413950uZFKHz','10249686YTVHPL','535754fGkmiI','5ySOCgI','5tLYLWV','32sSdGqu','3140889QcagPP','539735wQTZvq','5297970HLOcye','3689552gZbqPg'];a220_0x4bdd=function(){return _0x29544a;};return a220_0x4bdd();}function a220_0x87d2(_0x2e0dc2,_0x41e3f3){_0x2e0dc2=_0x2e0dc2-0xfe;var _0x4bdddc=a220_0x4bdd();var _0x87d21b=_0x4bdddc[_0x2e0dc2];return _0x87d21b;}export async function withActiveCookie(_0x3e1c1a,_0x2eaae0){setActiveCookie(_0x3e1c1a);try{return await _0x2eaae0();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x291fda,_0x83d8){var _0x4d02b7=a221_0xc8d8,_0x332a9d=_0x291fda();while(!![]){try{var _0x5c0ad7=parseInt(_0x4d02b7(0x160))/0x1*(parseInt(_0x4d02b7(0x162))/0x2)+parseInt(_0x4d02b7(0x161))/0x3*(parseInt(_0x4d02b7(0x15e))/0x4)+-parseInt(_0x4d02b7(0x15b))/0x5*(-parseInt(_0x4d02b7(0x15d))/0x6)+-parseInt(_0x4d02b7(0x15f))/0x7+-parseInt(_0x4d02b7(0x158))/0x8+-parseInt(_0x4d02b7(0x15c))/0x9*(parseInt(_0x4d02b7(0x156))/0xa)+-parseInt(_0x4d02b7(0x159))/0xb*(parseInt(_0x4d02b7(0x157))/0xc);if(_0x5c0ad7===_0x83d8)break;else _0x332a9d['push'](_0x332a9d['shift']());}catch(_0x1d8437){_0x332a9d['push'](_0x332a9d['shift']());}}}(a221_0x1fda,0x75775));function a221_0x1fda(){var _0xda78fc=['6raoKYL','112CzHsRg','3694768nEOzlK','1ZtYhWs','75540WEUbCh','1903638yyCmWm','write','5734730OXepIX','12FZJRsR','8056MdUSOD','4182497rnDYJO','stderr','1534065TFJIIf','9jtpohd'];a221_0x1fda=function(){return _0xda78fc;};return a221_0x1fda();}function a221_0xc8d8(_0x3d15f7,_0x37321b){_0x3d15f7=_0x3d15f7-0x155;var _0x1fda08=a221_0x1fda();var _0xc8d8fb=_0x1fda08[_0x3d15f7];return _0xc8d8fb;}export function writeCliSideChannelLine(_0x19127f){var _0xffe912=a221_0xc8d8;process[_0xffe912(0x15a)][_0xffe912(0x155)](_0x19127f+'\x0a');}
|