@lovrabet/rabetbase-cli 2.2.2-beta.1 → 2.2.3-beta.1
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 -0
- 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
|
-
const
|
|
1
|
+
const a204_0x1c5d48=a204_0xdc23;function a204_0xdc23(_0x595bbb,_0x37680f){_0x595bbb=_0x595bbb-0x12d;const _0xaa6bf3=a204_0xaa6b();let _0xdc23e7=_0xaa6bf3[_0x595bbb];return _0xdc23e7;}(function(_0xa23cf9,_0x215cec){const _0x21a82b=a204_0xdc23,_0x1de22c=_0xa23cf9();while(!![]){try{const _0x244866=-parseInt(_0x21a82b(0x141))/0x1+parseInt(_0x21a82b(0x164))/0x2*(-parseInt(_0x21a82b(0x133))/0x3)+parseInt(_0x21a82b(0x166))/0x4*(parseInt(_0x21a82b(0x146))/0x5)+-parseInt(_0x21a82b(0x139))/0x6+-parseInt(_0x21a82b(0x13d))/0x7+parseInt(_0x21a82b(0x149))/0x8*(parseInt(_0x21a82b(0x12f))/0x9)+parseInt(_0x21a82b(0x16d))/0xa;if(_0x244866===_0x215cec)break;else _0x1de22c['push'](_0x1de22c['shift']());}catch(_0x38fd12){_0x1de22c['push'](_0x1de22c['shift']());}}}(a204_0xaa6b,0xbd163));import a204_0x3b6daf from'node:fs';import a204_0x1bdcaa from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a204_0xaa6b(){const _0x2688ae=['9vSiPXA','now','copyFile','map','1643943RKKCGD','.tpl','开始处理模板内容替换','mkdir','pop','padStart','6328680RELgMm','模板内容替换完成','isFile','isDirectory','6644925ptRHWY','datasetCode:\x20\x22','endsWith','alias:\x20\x22','1391032qdggLK','LOVRABET','getDate','includes','processFile','7368835dgWyhv','message','replaceApiContent','12167432MsQPHR','toLowerCase','toISOString','replaceContent','extname','utf8','name:\x20\x22','slice','模板内容替换失败','promises','\x20},','charAt','datasetCode','.jsx','formatLocalTimestamp','tableName','getFullYear','writeFile','getMonth','replace','toUpperCase','toComponentName','processTemplate','push','split','.js','alias','4ObsnBn','getHours','4qRtGsr','processDirectory','api','.md','name','getSeconds','.ts','22708520EkVuuG','YourModel','.scss','default','pad','\x0a\x20\x20\x20\x20{\x20','readFile','toDisplayTitle','.tsx','tableName:\x20\x22','join','template'];a204_0xaa6b=function(){return _0x2688ae;};return a204_0xaa6b();}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a204_0x1c5d48(0x171)](_0x466670){const _0x1e2999=a204_0x1c5d48;return String(_0x466670)[_0x1e2999(0x138)](0x2,'0');}static[a204_0x1c5d48(0x157)](_0x474ccd){const _0x11b2de=a204_0x1c5d48,_0x3b0b77=_0x474ccd[_0x11b2de(0x159)](),_0x155099=this[_0x11b2de(0x171)](_0x474ccd[_0x11b2de(0x15b)]()+0x1),_0x11c5c6=this[_0x11b2de(0x171)](_0x474ccd[_0x11b2de(0x143)]()),_0x1aeded=this[_0x11b2de(0x171)](_0x474ccd[_0x11b2de(0x165)]()),_0x20117e=this[_0x11b2de(0x171)](_0x474ccd['getMinutes']()),_0x317270=this[_0x11b2de(0x171)](_0x474ccd[_0x11b2de(0x16b)]());return{'createdAt':_0x3b0b77+'-'+_0x155099+'-'+_0x11c5c6+'\x20'+_0x1aeded+':'+_0x20117e+':'+_0x317270,'createdDate':_0x3b0b77+'-'+_0x155099+'-'+_0x11c5c6,'createdTime':_0x1aeded+':'+_0x20117e+':'+_0x317270};}static[a204_0x1c5d48(0x15e)](_0x547859){const _0x270c72=a204_0x1c5d48,_0x24852d=_0x547859[_0x270c72(0x161)]('/')['pop']()||_0x547859;return _0x24852d['split']('-')[_0x270c72(0x132)](_0x5381f6=>_0x5381f6[_0x270c72(0x154)](0x0)['toUpperCase']()+_0x5381f6[_0x270c72(0x150)](0x1)[_0x270c72(0x14a)]())[_0x270c72(0x12d)]('');}static[a204_0x1c5d48(0x174)](_0x48ac10){const _0x5f3c21=a204_0x1c5d48,_0x2d7b77=_0x48ac10[_0x5f3c21(0x161)]('/')[_0x5f3c21(0x137)]()||_0x48ac10;return _0x2d7b77['split']('-')[_0x5f3c21(0x132)](_0xdbb528=>_0xdbb528[_0x5f3c21(0x154)](0x0)[_0x5f3c21(0x15d)]()+_0xdbb528[_0x5f3c21(0x150)](0x1)[_0x5f3c21(0x14a)]())['join']('\x20');}static[a204_0x1c5d48(0x14c)](_0xc97a57,_0x2e8a43,_0x50285c){const _0xf676d7=a204_0x1c5d48,_0x3afd3a=this[_0xf676d7(0x15e)](_0x2e8a43),_0x524b59=this[_0xf676d7(0x174)](_0x2e8a43),{createdAt:_0x35e991,createdDate:_0x5e3383,createdTime:_0x33b20d}=this[_0xf676d7(0x157)](new Date());let _0x32c6cc=_0xc97a57['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0xf676d7(0x15c)](/\{ComponentName\}/g,_0x3afd3a)['replace'](/\{DisplayTitle\}/g,_0x524b59)[_0xf676d7(0x15c)](/\{PageName\}/g,_0x2e8a43)[_0xf676d7(0x15c)](/\{TemplateName\}/g,_0x50285c)[_0xf676d7(0x15c)](/\{CreatedAt\}/g,_0x35e991)['replace'](/\{CreatedDate\}/g,_0x5e3383)[_0xf676d7(0x15c)](/\{CreatedTime\}/g,_0x33b20d);return _0x32c6cc;}static[a204_0x1c5d48(0x148)](_0x3100db,_0x2c59c7,_0x3c2316,_0x3527aa,_0x54d51b,_0x439bef,_0xb0a7e3,_0x33e983){const _0x507b59=a204_0x1c5d48,_0x206ac0=new Date(),_0x2f6a02=_0x206ac0[_0x507b59(0x14b)](),_0x20923a=_0x3c2316[_0x507b59(0x132)](_0x5686e0=>{const _0x5d4bdb=_0x507b59,_0x534d32=[_0x5d4bdb(0x13e)+_0x5686e0[_0x5d4bdb(0x155)]+'\x22',_0x5d4bdb(0x176)+_0x5686e0[_0x5d4bdb(0x158)]+'\x22',_0x5d4bdb(0x14f)+_0x5686e0[_0x5d4bdb(0x16a)]+'\x22'];return _0x5686e0[_0x5d4bdb(0x163)]&&_0x534d32[_0x5d4bdb(0x160)](_0x5d4bdb(0x140)+_0x5686e0[_0x5d4bdb(0x163)]+'\x22'),_0x5d4bdb(0x172)+_0x534d32[_0x5d4bdb(0x12d)](',\x20')+_0x5d4bdb(0x153);})[_0x507b59(0x12d)](''),_0x200537=_0x3527aa||_0x3c2316[0x0]?.[_0x507b59(0x163)]||_0x507b59(0x16e);let _0x257bf7=_0x3100db[_0x507b59(0x15c)](/\{AppCode\}/g,_0x2c59c7)[_0x507b59(0x15c)](/\{ModelConfigs\}/g,_0x20923a)[_0x507b59(0x15c)](/\{ExampleModelName\}/g,_0x200537)[_0x507b59(0x15c)](/\{ApiFileName\}/g,_0x54d51b||_0x507b59(0x168))[_0x507b59(0x15c)](/\{ConfigName\}/g,_0x439bef||_0x507b59(0x170))[_0x507b59(0x15c)](/\{ClientConfigParam\}/g,_0xb0a7e3||'')['replace'](/\{VarPrefix\}/g,_0x33e983||_0x507b59(0x142))[_0x507b59(0x15c)](/\{CreatedAt\}/g,_0x2f6a02);return _0x257bf7;}static async[a204_0x1c5d48(0x15f)](_0x3f917b,_0x1e188c,_0x194933,_0xbdbc5,_0x55c261=!![]){const _0x185c8e=a204_0x1c5d48,_0x2dab84=Date[_0x185c8e(0x130)]();try{_0x55c261&&logger['info'](_0x185c8e(0x12e),_0x185c8e(0x135),{'templatePath':_0x3f917b,'targetPath':_0x1e188c,'pageName':_0x194933,'templateName':_0xbdbc5});await a204_0x3b6daf[_0x185c8e(0x152)][_0x185c8e(0x136)](_0x1e188c,{'recursive':!![]}),await this[_0x185c8e(0x167)](_0x3f917b,_0x1e188c,_0x194933,_0xbdbc5);if(_0x55c261){const _0x5ea6c7=Date[_0x185c8e(0x130)]()-_0x2dab84;logger['success'](_0x185c8e(0x12e),_0x185c8e(0x13a),_0x5ea6c7,{'pageName':_0x194933,'templateName':_0xbdbc5});}}catch(_0x2c71b4){if(_0x55c261){const _0xe7bf9e=Date[_0x185c8e(0x130)]()-_0x2dab84;logger['error'](_0x185c8e(0x12e),_0x185c8e(0x151),{'templatePath':_0x3f917b,'targetPath':_0x1e188c,'pageName':_0x194933,'templateName':_0xbdbc5,'error':_0x2c71b4 instanceof Error?_0x2c71b4[_0x185c8e(0x147)]:String(_0x2c71b4),'duration':_0xe7bf9e});}throw _0x2c71b4;}}static async[a204_0x1c5d48(0x167)](_0x5c3a73,_0x1ecae6,_0x610181,_0x43d935){const _0x46db0d=a204_0x1c5d48,_0x3dcaa0=await a204_0x3b6daf[_0x46db0d(0x152)]['readdir'](_0x5c3a73,{'withFileTypes':!![]});for(const _0x23ff5f of _0x3dcaa0){const _0x48c947=a204_0x1bdcaa[_0x46db0d(0x12d)](_0x5c3a73,_0x23ff5f['name']);let _0xc39942=a204_0x1bdcaa[_0x46db0d(0x12d)](_0x1ecae6,_0x23ff5f['name']);_0x23ff5f[_0x46db0d(0x16a)][_0x46db0d(0x13f)]('.tpl')&&(_0xc39942=a204_0x1bdcaa[_0x46db0d(0x12d)](_0x1ecae6,_0x23ff5f[_0x46db0d(0x16a)][_0x46db0d(0x15c)](/\.tpl$/,'')));if(_0x23ff5f[_0x46db0d(0x13c)]())await a204_0x3b6daf['promises'][_0x46db0d(0x136)](_0xc39942,{'recursive':!![]}),await this[_0x46db0d(0x167)](_0x48c947,_0xc39942,_0x610181,_0x43d935);else _0x23ff5f[_0x46db0d(0x13b)]()&&await this['processFile'](_0x48c947,_0xc39942,_0x610181,_0x43d935);}}static async[a204_0x1c5d48(0x145)](_0x1ec0be,_0x2cb329,_0x44ab64,_0x59abde){const _0x5b71fe=a204_0x1c5d48,_0x37e649=a204_0x1bdcaa[_0x5b71fe(0x14d)](_0x1ec0be)[_0x5b71fe(0x14a)]();_0x1ec0be['endsWith'](_0x5b71fe(0x134))&&(_0x2cb329=_0x2cb329[_0x5b71fe(0x15c)](/\.tpl$/,''));const _0x2db565=[_0x5b71fe(0x175),_0x5b71fe(0x16c),_0x5b71fe(0x156),_0x5b71fe(0x162),'.json',_0x5b71fe(0x169),'.css',_0x5b71fe(0x16f),_0x5b71fe(0x134)];if(_0x2db565[_0x5b71fe(0x144)](_0x37e649)||_0x1ec0be[_0x5b71fe(0x13f)](_0x5b71fe(0x134))){const _0x3c184c=await a204_0x3b6daf[_0x5b71fe(0x152)][_0x5b71fe(0x173)](_0x1ec0be,_0x5b71fe(0x14e)),_0x3b7ecf=this[_0x5b71fe(0x14c)](_0x3c184c,_0x44ab64,_0x59abde);await a204_0x3b6daf[_0x5b71fe(0x152)][_0x5b71fe(0x15a)](_0x2cb329,_0x3b7ecf,_0x5b71fe(0x14e));}else await a204_0x3b6daf['promises'][_0x5b71fe(0x131)](_0x1ec0be,_0x2cb329);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x8e6b25,_0x21683d){const _0x591344=a205_0xc216,_0xd662e9=_0x8e6b25();while(!![]){try{const _0x3b3a1b=parseInt(_0x591344(0x93))/0x1+-parseInt(_0x591344(0x9b))/0x2+-parseInt(_0x591344(0x9a))/0x3*(-parseInt(_0x591344(0x8f))/0x4)+parseInt(_0x591344(0x8c))/0x5*(-parseInt(_0x591344(0x8d))/0x6)+-parseInt(_0x591344(0x90))/0x7*(parseInt(_0x591344(0x92))/0x8)+-parseInt(_0x591344(0x86))/0x9+parseInt(_0x591344(0x9f))/0xa;if(_0x3b3a1b===_0x21683d)break;else _0xd662e9['push'](_0xd662e9['shift']());}catch(_0x526511){_0xd662e9['push'](_0xd662e9['shift']());}}}(a205_0x2f41,0x89e5e));import{mkdir,readFile,writeFile}from'node:fs/promises';function a205_0xc216(_0x4c4a17,_0x38eba1){_0x4c4a17=_0x4c4a17-0x86;const _0x2f41e9=a205_0x2f41();let _0xc21684=_0x2f41e9[_0x4c4a17];return _0xc21684;}import{homedir}from'node:os';import{dirname,join}from'node:path';function a205_0x2f41(){const _0x30f36e=['4MrVSar','1754697squaBi','valid','16zudHkh','616002chzvOy','update-check.json','now','trim','stringify','latest','utf8','1650972MqLtkv','314542RqTnnQ','yes','gte','\x20update','9979530NbhHlW','7548471zZzTht','https://www.npmjs.com/package/','object','/v/','lastNotifiedAt','checkedAt','15hNguJz','204234SeHfLL','\x20available,\x20current\x20'];a205_0x2f41=function(){return _0x30f36e;};return a205_0x2f41();}import a205_0x5c64e4 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 _0xfaec89=a205_0xc216,_0x5be249=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()['toLowerCase']();return _0x5be249==='1'||_0x5be249==='true'||_0x5be249===_0xfaec89(0x9c);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x490670=a205_0xc216;return join(cacheRoot(),'rabetbase-cli',_0x490670(0x94));}async function readUpdateNoticeCache(){const _0x588dc1=a205_0xc216;try{const _0x1864ca=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x55b8e5=JSON['parse'](_0x1864ca);if(!_0x55b8e5||typeof _0x55b8e5!==_0x588dc1(0x88))return{};return _0x55b8e5;}catch{return{};}}async function writeUpdateNoticeCache(_0x130c0b){const _0x9befdf=a205_0xc216;try{const _0x33b84b=getUpdateNoticeCachePath();await mkdir(dirname(_0x33b84b),{'recursive':!![]}),await writeFile(_0x33b84b,JSON[_0x9befdf(0x97)](_0x130c0b,null,0x2)+'\x0a',_0x9befdf(0x99));}catch{}}function isFreshCheck(_0xb6a6bf,_0x3254e4){const _0x1854a7=a205_0xc216;return typeof _0xb6a6bf[_0x1854a7(0x8b)]==='number'&&_0x3254e4-_0xb6a6bf[_0x1854a7(0x8b)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x38a17a,_0x177090,_0x1010c){const _0x351f8e=a205_0xc216;return _0x38a17a['lastNotifiedVersion']===_0x177090&&typeof _0x38a17a[_0x351f8e(0x8a)]==='number'&&_0x1010c-_0x38a17a[_0x351f8e(0x8a)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x58cd69){const _0x33582b=a205_0xc216;return _0x33582b(0x87)+NPM_PACKAGE_NAME+_0x33582b(0x89)+_0x58cd69;}export async function resolveLatestUpdateNotice(){const _0x581d73=a205_0xc216;if(isUpdateNoticeDisabled())return null;try{const _0x3ec9a6=Date[_0x581d73(0x95)](),_0x8a619c=getCliVersion(),_0x1ba49b=await readUpdateNoticeCache();let _0x2bc7af=isFreshCheck(_0x1ba49b,_0x3ec9a6)?_0x1ba49b[_0x581d73(0x98)]?.[_0x581d73(0x96)]():undefined;if(!_0x2bc7af&&!isFreshCheck(_0x1ba49b,_0x3ec9a6)){const _0x4a1596=await getCliVersionPolicy();_0x2bc7af=_0x4a1596?.['stableVersion']?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x1ba49b,'checkedAt':_0x3ec9a6,'latest':_0x2bc7af,'failed':!_0x2bc7af});}if(!_0x2bc7af||!a205_0x5c64e4[_0x581d73(0x91)](_0x8a619c)||!a205_0x5c64e4['valid'](_0x2bc7af))return null;if(a205_0x5c64e4[_0x581d73(0x9d)](_0x8a619c,_0x2bc7af))return null;if(isRecentlyNotified(_0x1ba49b,_0x2bc7af,_0x3ec9a6))return null;const _0x48e1ff=CLI_BIN_NAME+_0x581d73(0x9e);return await writeUpdateNoticeCache({..._0x1ba49b,'checkedAt':isFreshCheck(_0x1ba49b,_0x3ec9a6)?_0x1ba49b[_0x581d73(0x8b)]:_0x3ec9a6,'latest':_0x2bc7af,'failed':![],'lastNotifiedVersion':_0x2bc7af,'lastNotifiedAt':_0x3ec9a6}),{'command':_0x48e1ff,'current':_0x8a619c,'latest':_0x2bc7af,'url':buildNpmVersionUrl(_0x2bc7af),'message':CLI_BIN_NAME+'\x20'+_0x2bc7af+_0x581d73(0x8e)+_0x8a619c+',\x20run:\x20'+_0x48e1ff};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a206_0x4675(_0x9064d6,_0x35ae88){_0x9064d6=_0x9064d6-0xbe;var _0x52456a=a206_0x5245();var _0x46752e=_0x52456a[_0x9064d6];return _0x46752e;}(function(_0x403955,_0x1fc4e1){var _0x32740c=a206_0x4675,_0x313e08=_0x403955();while(!![]){try{var _0x281138=-parseInt(_0x32740c(0xbe))/0x1+-parseInt(_0x32740c(0xc4))/0x2+-parseInt(_0x32740c(0xc7))/0x3*(parseInt(_0x32740c(0xc0))/0x4)+parseInt(_0x32740c(0xc5))/0x5*(-parseInt(_0x32740c(0xc3))/0x6)+-parseInt(_0x32740c(0xc2))/0x7*(parseInt(_0x32740c(0xc6))/0x8)+parseInt(_0x32740c(0xbf))/0x9+parseInt(_0x32740c(0xc1))/0xa;if(_0x281138===_0x1fc4e1)break;else _0x313e08['push'](_0x313e08['shift']());}catch(_0x19854){_0x313e08['push'](_0x313e08['shift']());}}}(a206_0x5245,0x68105));function a206_0x5245(){var _0x36ce52=['42ZDSntr','822625wOKWPZ','4407345YxMFWx','27652uEjtrg','28551970oLhAlQ','7HVnRVe','696786WRnIGP','1594128UNOfUr','35ZoLSxp','3114152iVQNUc'];a206_0x5245=function(){return _0x36ce52;};return a206_0x5245();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x23f1a8,_0x477737){var _0x150ff3=a207_0x10bf,_0x1affb1=_0x23f1a8();while(!![]){try{var _0x27b863=-parseInt(_0x150ff3(0x1b5))/0x1*(-parseInt(_0x150ff3(0x1b3))/0x2)+parseInt(_0x150ff3(0x1b1))/0x3+parseInt(_0x150ff3(0x1b0))/0x4*(parseInt(_0x150ff3(0x1b8))/0x5)+parseInt(_0x150ff3(0x1b7))/0x6*(-parseInt(_0x150ff3(0x1b9))/0x7)+-parseInt(_0x150ff3(0x1b2))/0x8+parseInt(_0x150ff3(0x1b4))/0x9+-parseInt(_0x150ff3(0x1b6))/0xa;if(_0x27b863===_0x477737)break;else _0x1affb1['push'](_0x1affb1['shift']());}catch(_0x58c12c){_0x1affb1['push'](_0x1affb1['shift']());}}}(a207_0x2e73,0x4750b));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a207_0x2e73(){var _0x17f286=['4898898DLfjjj','113323RcyPgM','2434230ayFUCK','48bUBYrX','25UQdwIj','502747MaUelt','433760lmnyzy','1073523diPhSN','3580704gexNTM','2drjRnG'];a207_0x2e73=function(){return _0x17f286;};return a207_0x2e73();}function a207_0x10bf(_0x25d5e9,_0x53cdd0){_0x25d5e9=_0x25d5e9-0x1b0;var _0x2e7334=a207_0x2e73();var _0x10bf82=_0x2e7334[_0x25d5e9];return _0x10bf82;}export async function withActiveCookie(_0x5118df,_0x38f656){setActiveCookie(_0x5118df);try{return await _0x38f656();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x423038,_0x45a515){var _0x29d5d2=a208_0x3ea6,_0x5ee995=_0x423038();while(!![]){try{var _0x264a15=parseInt(_0x29d5d2(0x114))/0x1+-parseInt(_0x29d5d2(0x117))/0x2*(parseInt(_0x29d5d2(0x115))/0x3)+parseInt(_0x29d5d2(0x116))/0x4*(-parseInt(_0x29d5d2(0x110))/0x5)+parseInt(_0x29d5d2(0x113))/0x6*(-parseInt(_0x29d5d2(0x118))/0x7)+-parseInt(_0x29d5d2(0x11a))/0x8*(parseInt(_0x29d5d2(0x112))/0x9)+-parseInt(_0x29d5d2(0x119))/0xa+parseInt(_0x29d5d2(0x111))/0xb;if(_0x264a15===_0x45a515)break;else _0x5ee995['push'](_0x5ee995['shift']());}catch(_0x2dd1eb){_0x5ee995['push'](_0x5ee995['shift']());}}}(a208_0x1896,0x6c4e6));function a208_0x3ea6(_0x26c2a8,_0x3aba5e){_0x26c2a8=_0x26c2a8-0x110;var _0x1896da=a208_0x1896();var _0x3ea6be=_0x1896da[_0x26c2a8];return _0x3ea6be;}export function writeCliSideChannelLine(_0x50d62f){var _0x2dea79=a208_0x3ea6;process[_0x2dea79(0x11b)]['write'](_0x50d62f+'\x0a');}function a208_0x1896(){var _0x2d7f05=['30231yaPBaG','1273424brWzSP','142mfnLow','14GfNHcg','3927830CHTNRy','10664XLOvfc','stderr','10SxJmbC','26782602pCQvgV','3051FhPtED','599550tNXdTx','405539wuAezA'];a208_0x1896=function(){return _0x2d7f05;};return a208_0x1896();}
|