@lovrabet/rabetbase-cli 2.3.9-beta.2 → 2.3.9-beta.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/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.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-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -0
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.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/generate.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 -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/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.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/file/index.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/delete.js +1 -0
- package/lib/commands/menu/group-create.js +1 -0
- package/lib/commands/menu/group-update.js +1 -0
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -0
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -0
- package/lib/commands/menu/shared/facts.js +1 -0
- 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/mutations.js +1 -0
- 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/notification/config-list.js +1 -1
- package/lib/commands/notification/index.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/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.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/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.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/task/index.js +1 -0
- package/lib/commands/task/status.js +1 -0
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.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-index-auditor.js +1 -0
- 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/error-output.js +1 -0
- package/lib/framework/explicit-yes.js +1 -0
- 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
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a252_0x1dfb(_0x504b2e,_0x2a4cf1){_0x504b2e=_0x504b2e-0x69;const _0x2b1942=a252_0x2b19();let _0x1dfb3f=_0x2b1942[_0x504b2e];return _0x1dfb3f;}const a252_0x33f65c=a252_0x1dfb;(function(_0x443440,_0x34dfc7){const _0x352b33=a252_0x1dfb,_0x362baf=_0x443440();while(!![]){try{const _0x4b5635=-parseInt(_0x352b33(0x80))/0x1*(-parseInt(_0x352b33(0x8f))/0x2)+-parseInt(_0x352b33(0x7d))/0x3+parseInt(_0x352b33(0x92))/0x4+parseInt(_0x352b33(0x6c))/0x5*(-parseInt(_0x352b33(0x7e))/0x6)+-parseInt(_0x352b33(0x6e))/0x7+-parseInt(_0x352b33(0x6d))/0x8+parseInt(_0x352b33(0x78))/0x9*(parseInt(_0x352b33(0x89))/0xa);if(_0x4b5635===_0x34dfc7)break;else _0x362baf['push'](_0x362baf['shift']());}catch(_0x8a21fc){_0x362baf['push'](_0x362baf['shift']());}}}(a252_0x2b19,0x8da74));function a252_0x2b19(){const _0xde3686=['utf8','createLogger','readFileSync','getWinstonInstance','filter','开始执行:\x20','join','parse','info','printf','unknown','initWinstonLogger','logTask','134165qOXkrx','7766696ykvCfe','3261566GQEifz','timestamp','失败:\x20','green','.lovrabet.log','success','blue','now','addColors','transports','45396MqjxtE','trim','format','logFilePath','clearLogs','2975676nWLyyz','24LYmicK','error','1vCbsty','errors','currentRawCommand','existsSync','message','command','Failed\x20to\x20read\x20logs:','warn','split','3480LIzezS','winstonLogger','mkdirSync','clear','readLogs','yellow','1875486JaRjnh','writeFileSync','rawCommand','1692624lzNAkc'];a252_0x2b19=function(){return _0xde3686;};return a252_0x2b19();}import a252_0x3be20d from'winston';import a252_0x4c060d from'node:fs';import a252_0x31c859 from'node:path';class Logger{[a252_0x33f65c(0x8a)];[a252_0x33f65c(0x7b)];[a252_0x33f65c(0x82)]='';constructor(){const _0x23de17=a252_0x33f65c;this[_0x23de17(0x7b)]='';}['setRawCommand'](_0x111995){const _0x5d882a=a252_0x33f65c;this[_0x5d882a(0x82)]=_0x111995;}['initWinstonLogger'](){const _0x57c3a5=a252_0x33f65c,_0x436624=a252_0x31c859['dirname'](this[_0x57c3a5(0x7b)]);!a252_0x4c060d[_0x57c3a5(0x83)](_0x436624)&&a252_0x4c060d[_0x57c3a5(0x8b)](_0x436624,{'recursive':!![]});const _0x3cfa27=a252_0x3be20d[_0x57c3a5(0x7a)]['combine'](a252_0x3be20d[_0x57c3a5(0x7a)][_0x57c3a5(0x6f)](),a252_0x3be20d['format'][_0x57c3a5(0x81)]({'stack':!![]}),a252_0x3be20d[_0x57c3a5(0x7a)][_0x57c3a5(0x9c)](_0x48d211=>{const _0x1f064b=_0x57c3a5,_0x42d21a={'timestamp':_0x48d211['timestamp']||new Date()['toISOString'](),'level':_0x48d211['level']||_0x1f064b(0x9b),'command':_0x48d211[_0x1f064b(0x85)]||_0x1f064b(0x69),'rawCommand':_0x48d211[_0x1f064b(0x91)]||this[_0x1f064b(0x82)]||undefined,'message':_0x48d211['message']||'','duration':_0x48d211['duration']||undefined,'details':_0x48d211['details']||undefined};return JSON['stringify'](_0x42d21a);}));this[_0x57c3a5(0x8a)]=a252_0x3be20d[_0x57c3a5(0x94)]({'level':_0x57c3a5(0x9b),'format':_0x3cfa27,'transports':[new a252_0x3be20d[(_0x57c3a5(0x77))]['File']({'filename':this[_0x57c3a5(0x7b)],'level':_0x57c3a5(0x9b)})],'silent':![]}),a252_0x3be20d[_0x57c3a5(0x76)]({'success':_0x57c3a5(0x71),'error':'red','warn':_0x57c3a5(0x8e),'info':_0x57c3a5(0x74)});}['setLogPath'](_0x950e5e){const _0x14f073=a252_0x33f65c;this[_0x14f073(0x7b)]=a252_0x31c859[_0x14f073(0x99)](_0x950e5e,_0x14f073(0x72)),this[_0x14f073(0x8a)]&&this[_0x14f073(0x8a)][_0x14f073(0x8c)](),this[_0x14f073(0x6a)]();}[a252_0x33f65c(0x9b)](_0x190cb0,_0x1e6460,_0x168804){const _0x18fc1a=a252_0x33f65c;if(!this[_0x18fc1a(0x7b)]||!this[_0x18fc1a(0x8a)])return;this[_0x18fc1a(0x8a)][_0x18fc1a(0x9b)](_0x1e6460,{'command':_0x190cb0,'details':_0x168804});}['success'](_0x46e140,_0x3c5576,_0x3569b3,_0x47ea81){const _0x236e1f=a252_0x33f65c;if(!this[_0x236e1f(0x7b)]||!this[_0x236e1f(0x8a)])return;this[_0x236e1f(0x8a)]['log'](_0x236e1f(0x9b),_0x3c5576,{'level':_0x236e1f(0x73),'command':_0x46e140,'duration':_0x3569b3,'details':_0x47ea81});}[a252_0x33f65c(0x7f)](_0x556447,_0xe1bd60,_0x2ef699){const _0x323fc1=a252_0x33f65c;if(!this[_0x323fc1(0x7b)]||!this['winstonLogger'])return;this['winstonLogger']['error'](_0xe1bd60,{'command':_0x556447,'details':_0x2ef699});}[a252_0x33f65c(0x87)](_0xdcfd88,_0x1167de,_0x32ccf5){const _0x2306a8=a252_0x33f65c;if(!this[_0x2306a8(0x7b)]||!this[_0x2306a8(0x8a)])return;this[_0x2306a8(0x8a)][_0x2306a8(0x87)](_0x1167de,{'command':_0xdcfd88,'details':_0x32ccf5});}async[a252_0x33f65c(0x6b)](_0x224e95,_0x23cd9c,_0x495541){const _0x406eb9=a252_0x33f65c,_0x350d73=Date[_0x406eb9(0x75)]();this[_0x406eb9(0x9b)](_0x224e95,_0x406eb9(0x98)+_0x23cd9c);try{const _0x50fedb=await _0x495541(),_0x52c5a3=Date[_0x406eb9(0x75)]()-_0x350d73;return this[_0x406eb9(0x73)](_0x224e95,'完成:\x20'+_0x23cd9c,_0x52c5a3),_0x50fedb;}catch(_0x576c5f){const _0x4fa587=Date[_0x406eb9(0x75)]()-_0x350d73;this[_0x406eb9(0x7f)](_0x224e95,_0x406eb9(0x70)+_0x23cd9c,{'error':_0x576c5f instanceof Error?_0x576c5f[_0x406eb9(0x84)]:String(_0x576c5f),'duration':_0x4fa587});throw _0x576c5f;}}[a252_0x33f65c(0x8d)](){const _0x487d28=a252_0x33f65c;try{if(!a252_0x4c060d[_0x487d28(0x83)](this['logFilePath']))return[];const _0xa73064=a252_0x4c060d[_0x487d28(0x95)](this['logFilePath'],_0x487d28(0x93));return _0xa73064[_0x487d28(0x88)]('\x0a')[_0x487d28(0x97)](_0x2b80c9=>_0x2b80c9[_0x487d28(0x79)]())['map'](_0x2c1a46=>JSON[_0x487d28(0x9a)](_0x2c1a46));}catch(_0x218c8f){return console['warn'](_0x487d28(0x86),_0x218c8f),[];}}[a252_0x33f65c(0x7c)](){const _0x2deed6=a252_0x33f65c;try{a252_0x4c060d['existsSync'](this[_0x2deed6(0x7b)])&&a252_0x4c060d[_0x2deed6(0x90)](this['logFilePath'],'',_0x2deed6(0x93));}catch(_0x15daa9){console[_0x2deed6(0x87)]('Failed\x20to\x20clear\x20logs:',_0x15daa9);}}[a252_0x33f65c(0x96)](){const _0x4f5d20=a252_0x33f65c;return this[_0x4f5d20(0x8a)];}}export const logger=new Logger();
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a253_0x57d6(_0x2d907b,_0x3c3ebe){_0x2d907b=_0x2d907b-0x184;const _0x26f81d=a253_0x26f8();let _0x57d68e=_0x26f81d[_0x2d907b];return _0x57d68e;}function a253_0x26f8(){const _0x2b3981=['2812455AwhjNT','167741zYKMkC','15148980keMXXA','1212308EiLCXN','2904756xPcBcZ','Invalid\x20JSON\x20for\x20--params:\x20','isArray','parse','1DeHhtf','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','2350017dVTmSE','object','3395620ijjbpA','validation','64bykjnC'];a253_0x26f8=function(){return _0x2b3981;};return a253_0x26f8();}(function(_0xbe764b,_0x9f8b22){const _0x5b6b75=a253_0x57d6,_0x4692e6=_0xbe764b();while(!![]){try{const _0x1fadee=parseInt(_0x5b6b75(0x18e))/0x1*(parseInt(_0x5b6b75(0x189))/0x2)+parseInt(_0x5b6b75(0x190))/0x3+parseInt(_0x5b6b75(0x192))/0x4+parseInt(_0x5b6b75(0x186))/0x5+-parseInt(_0x5b6b75(0x18a))/0x6+-parseInt(_0x5b6b75(0x187))/0x7*(parseInt(_0x5b6b75(0x185))/0x8)+-parseInt(_0x5b6b75(0x188))/0x9;if(_0x1fadee===_0x9f8b22)break;else _0x4692e6['push'](_0x4692e6['shift']());}catch(_0x5e5022){_0x4692e6['push'](_0x4692e6['shift']());}}}(a253_0x26f8,0x6bdef));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x4831e1){const _0x42d8bf=a253_0x57d6;if(!_0x4831e1)return undefined;let _0x16d6ad;try{_0x16d6ad=JSON[_0x42d8bf(0x18d)](_0x4831e1);}catch{throw CliErrors['validation'](_0x42d8bf(0x18b)+_0x4831e1);}if(!_0x16d6ad||typeof _0x16d6ad!==_0x42d8bf(0x191)||Array[_0x42d8bf(0x18c)](_0x16d6ad))throw CliErrors[_0x42d8bf(0x184)]('--params\x20must\x20be\x20a\x20JSON\x20object',_0x42d8bf(0x18f));return _0x16d6ad;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a254_0x35e640=a254_0x16e1;(function(_0x45b71c,_0x21e52d){const _0x5e2756=a254_0x16e1,_0x18e4ee=_0x45b71c();while(!![]){try{const _0x319d21=-parseInt(_0x5e2756(0x183))/0x1*(parseInt(_0x5e2756(0x181))/0x2)+-parseInt(_0x5e2756(0x18a))/0x3*(-parseInt(_0x5e2756(0x185))/0x4)+-parseInt(_0x5e2756(0x180))/0x5+parseInt(_0x5e2756(0x184))/0x6*(-parseInt(_0x5e2756(0x186))/0x7)+parseInt(_0x5e2756(0x187))/0x8+parseInt(_0x5e2756(0x18b))/0x9+-parseInt(_0x5e2756(0x188))/0xa*(-parseInt(_0x5e2756(0x189))/0xb);if(_0x319d21===_0x21e52d)break;else _0x18e4ee['push'](_0x18e4ee['shift']());}catch(_0x381968){_0x18e4ee['push'](_0x18e4ee['shift']());}}}(a254_0x29a8,0x980e4));function a254_0x29a8(){const _0x3eb3f9=['100esyMfB','21CKWYxd','4936368EQXLId','475390CAUjQO','209WWkmqJ','137160UhlZPX','4802157CwEECH','.cmd','2067445QVOeCx','86OhmEjX','platform','22676vkvowa','2370966nvcWFa'];a254_0x29a8=function(){return _0x3eb3f9;};return a254_0x29a8();}function a254_0x16e1(_0x57b778,_0x22aec8){_0x57b778=_0x57b778-0x180;const _0x29a8c6=a254_0x29a8();let _0x16e17f=_0x29a8c6[_0x57b778];return _0x16e17f;}export const isWindows=process[a254_0x35e640(0x182)]==='win32';export function resolveNpmBin(_0x5137c8){const _0x419206=a254_0x35e640;return isWindows?_0x5137c8+_0x419206(0x18c):_0x5137c8;}
|
package/lib/utils/rules-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a255_0x1332ef=a255_0x3bc6;(function(_0x1deb0d,_0x509b20){const _0x3dadd4=a255_0x3bc6,_0x107832=_0x1deb0d();while(!![]){try{const _0x52dbfa=parseInt(_0x3dadd4(0x129))/0x1+-parseInt(_0x3dadd4(0x125))/0x2*(parseInt(_0x3dadd4(0x124))/0x3)+-parseInt(_0x3dadd4(0x134))/0x4*(-parseInt(_0x3dadd4(0x12c))/0x5)+-parseInt(_0x3dadd4(0x128))/0x6*(parseInt(_0x3dadd4(0x120))/0x7)+-parseInt(_0x3dadd4(0x123))/0x8*(-parseInt(_0x3dadd4(0x122))/0x9)+parseInt(_0x3dadd4(0x133))/0xa*(-parseInt(_0x3dadd4(0x11d))/0xb)+-parseInt(_0x3dadd4(0x127))/0xc*(-parseInt(_0x3dadd4(0x135))/0xd);if(_0x52dbfa===_0x509b20)break;else _0x107832['push'](_0x107832['shift']());}catch(_0x5ebc2f){_0x107832['push'](_0x107832['shift']());}}}(a255_0x3678,0x20b60));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';function a255_0x3678(){const _0x57d1ea=['../../templates/rules/lovrabet_rules.mdc.tpl','lastUpdated','101542bMJGSo','application/json','117brosZM','163864YvxSGf','6yvmsYz','114616nGwRpf','utf-8','664296VCaOBx','48COTcla','250413xFUNym','status','string','50BnHelw','.cursor/rules','本地模板文件不存在:\x20','lovrabet_rules.mdc','CDN\x20请求失败:\x20','content','json','20HUIAEz','8392KilxwG','13NzXINY','1256101ultfMn'];a255_0x3678=function(){return _0x57d1ea;};return a255_0x3678();}import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a255_0x3bc6(_0x125be8,_0x2814e6){_0x125be8=_0x125be8-0x11d;const _0x367896=a255_0x3678();let _0x3bc6ae=_0x367896[_0x125be8];return _0x3bc6ae;}function getRulesCdnUrl(){const _0x1f40f5=getTemplateBaseUrl();return _0x1f40f5+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a255_0x1332ef(0x11e));export async function fetchRulesFromCDN(){const _0x5a6a4f=a255_0x1332ef,_0x14cbc0=getRulesCdnUrl(),_0x7dfb12=await fetch(_0x14cbc0,{'headers':{'Accept':_0x5a6a4f(0x121)}});if(!_0x7dfb12['ok'])throw new Error(_0x5a6a4f(0x130)+_0x7dfb12[_0x5a6a4f(0x12a)]+'\x20'+_0x7dfb12['statusText']);const _0x12a0b6=await _0x7dfb12[_0x5a6a4f(0x132)]();if(!_0x12a0b6['content']||typeof _0x12a0b6[_0x5a6a4f(0x131)]!==_0x5a6a4f(0x12b))throw new Error('CDN\x20返回数据格式错误');return _0x12a0b6;}export async function getRulesContent(){const _0x5a12e2=a255_0x1332ef;try{const _0x2ce04b=await fetchRulesFromCDN();return _0x2ce04b[_0x5a12e2(0x131)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x96d654=a255_0x1332ef;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x96d654(0x126));throw new Error(_0x96d654(0x12e)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x4e8983){const _0x3ac64d=a255_0x1332ef,_0x559abb=await fetchRulesFromCDN()['catch'](()=>null);let _0x8e7b6b;_0x559abb?(_0x8e7b6b=_0x559abb[_0x3ac64d(0x131)],_0x559abb[_0x3ac64d(0x11f)]&&(_0x8e7b6b=appendUpdateTime(_0x8e7b6b,_0x559abb[_0x3ac64d(0x11f)]))):_0x8e7b6b=readLocalTemplate();const _0x58e830=dirname(_0x4e8983);!existsSync(_0x58e830)&&mkdirSync(_0x58e830,{'recursive':!![]}),writeFileSync(_0x4e8983,_0x8e7b6b,_0x3ac64d(0x126));}export async function copyRulesToCursor(_0x16483c){const _0x54c799=a255_0x1332ef,_0x5d91a8=join(_0x16483c,_0x54c799(0x12d)),_0x3e59c8=join(_0x5d91a8,_0x54c799(0x12f));if(existsSync(_0x3e59c8))return![];return await writeRulesFile(_0x3e59c8),!![];}export async function copyRulesToAgentsMd(_0x45defd){const _0x495a21=join(_0x45defd,'agents.md');if(existsSync(_0x495a21))return![];return await writeRulesFile(_0x495a21),!![];}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0xe1fe75){return new Promise(_0x21199a=>setTimeout(_0x21199a,_0xe1fe75));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a257_0x413f(){const _0x3bbaac=['tableName','default','708558uHounA','promises','2709130fZAhnW','utf8','replaceApiContent','alias:\x20\x22','YourModel','alias','replace','isFile','join','20IxQFDz','info','processFile','endsWith','split','toDisplayTitle','toLowerCase','1933841Mcayam','18783264DipSIV','.tsx','includes','name:\x20\x22','.ts','20104nOCWpr','processDirectory','getSeconds','template','extname','charAt','error','copyFile','getHours','name','datasetCode:\x20\x22','processTemplate','模板内容替换失败','1156832hixEaK','getMinutes','replaceContent','mkdir','toComponentName','toISOString','2780040jHtbAz','\x0a\x20\x20\x20\x20{\x20','18KBnRBU','开始处理模板内容替换','isDirectory','3zSKIip','toUpperCase','formatLocalTimestamp','readFile','map','getMonth','1503sFSCrz','55YfkeNp','success','pad','pop','padStart','writeFile','readdir','.jsx','now','.tpl','api','.json'];a257_0x413f=function(){return _0x3bbaac;};return a257_0x413f();}const a257_0xe739ba=a257_0x3a3e;(function(_0x472e28,_0x1d8216){const _0x256168=a257_0x3a3e,_0x195d93=_0x472e28();while(!![]){try{const _0x5da624=parseInt(_0x256168(0x73))/0x1*(-parseInt(_0x256168(0x88))/0x2)+parseInt(_0x256168(0xb3))/0x3+parseInt(_0x256168(0xad))/0x4*(parseInt(_0x256168(0x93))/0x5)+-parseInt(_0x256168(0x70))/0x6*(parseInt(_0x256168(0x9a))/0x7)+parseInt(_0x256168(0xa0))/0x8*(parseInt(_0x256168(0x79))/0x9)+-parseInt(_0x256168(0x8a))/0xa*(parseInt(_0x256168(0x7a))/0xb)+parseInt(_0x256168(0x9b))/0xc;if(_0x5da624===_0x1d8216)break;else _0x195d93['push'](_0x195d93['shift']());}catch(_0x9b0cbe){_0x195d93['push'](_0x195d93['shift']());}}}(a257_0x413f,0xc8bf8));import a257_0x3f3429 from'node:fs';import a257_0x8c6227 from'node:path';function a257_0x3a3e(_0x218561,_0x4cfb32){_0x218561=_0x218561-0x6f;const _0x413f11=a257_0x413f();let _0x3a3ecd=_0x413f11[_0x218561];return _0x3a3ecd;}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a257_0xe739ba(0x7c)](_0x10d87d){const _0x5e41db=a257_0xe739ba;return String(_0x10d87d)[_0x5e41db(0x7e)](0x2,'0');}static[a257_0xe739ba(0x75)](_0x1e0e86){const _0x55b309=a257_0xe739ba,_0x43a795=_0x1e0e86['getFullYear'](),_0x24ef4b=this[_0x55b309(0x7c)](_0x1e0e86[_0x55b309(0x78)]()+0x1),_0xb99d90=this[_0x55b309(0x7c)](_0x1e0e86['getDate']()),_0x362f39=this[_0x55b309(0x7c)](_0x1e0e86[_0x55b309(0xa8)]()),_0x386b21=this['pad'](_0x1e0e86[_0x55b309(0xae)]()),_0x379251=this[_0x55b309(0x7c)](_0x1e0e86[_0x55b309(0xa2)]());return{'createdAt':_0x43a795+'-'+_0x24ef4b+'-'+_0xb99d90+'\x20'+_0x362f39+':'+_0x386b21+':'+_0x379251,'createdDate':_0x43a795+'-'+_0x24ef4b+'-'+_0xb99d90,'createdTime':_0x362f39+':'+_0x386b21+':'+_0x379251};}static[a257_0xe739ba(0xb1)](_0x2928a8){const _0x1903d4=a257_0xe739ba,_0x2e09b9=_0x2928a8[_0x1903d4(0x97)]('/')[_0x1903d4(0x7d)]()||_0x2928a8;return _0x2e09b9[_0x1903d4(0x97)]('-')[_0x1903d4(0x77)](_0x33d7be=>_0x33d7be[_0x1903d4(0xa5)](0x0)[_0x1903d4(0x74)]()+_0x33d7be['slice'](0x1)[_0x1903d4(0x99)]())[_0x1903d4(0x92)]('');}static[a257_0xe739ba(0x98)](_0x732d90){const _0x5d294d=a257_0xe739ba,_0x3abb29=_0x732d90['split']('/')[_0x5d294d(0x7d)]()||_0x732d90;return _0x3abb29['split']('-')['map'](_0x1d7adb=>_0x1d7adb[_0x5d294d(0xa5)](0x0)['toUpperCase']()+_0x1d7adb['slice'](0x1)[_0x5d294d(0x99)]())[_0x5d294d(0x92)]('\x20');}static[a257_0xe739ba(0xaf)](_0x56251a,_0x34b00a,_0x148335){const _0xc0b3a6=a257_0xe739ba,_0x279155=this[_0xc0b3a6(0xb1)](_0x34b00a),_0x1c9244=this['toDisplayTitle'](_0x34b00a),{createdAt:_0x5bd050,createdDate:_0x3ea608,createdTime:_0x2f92d2}=this[_0xc0b3a6(0x75)](new Date());let _0x4566c4=_0x56251a[_0xc0b3a6(0x90)](/\{CliVersion\}/g,CLI_VERSION)[_0xc0b3a6(0x90)](/\{ComponentName\}/g,_0x279155)[_0xc0b3a6(0x90)](/\{DisplayTitle\}/g,_0x1c9244)['replace'](/\{PageName\}/g,_0x34b00a)['replace'](/\{TemplateName\}/g,_0x148335)[_0xc0b3a6(0x90)](/\{CreatedAt\}/g,_0x5bd050)['replace'](/\{CreatedDate\}/g,_0x3ea608)[_0xc0b3a6(0x90)](/\{CreatedTime\}/g,_0x2f92d2);return _0x4566c4;}static[a257_0xe739ba(0x8c)](_0x46db2c,_0x3fa15a,_0x4eb01c,_0x39590c,_0x5ad573,_0xca4501,_0x43595e,_0x358b4e){const _0x28ecd7=a257_0xe739ba,_0x564d13=new Date(),_0x5df8b1=_0x564d13[_0x28ecd7(0xb2)](),_0x597642=_0x4eb01c['map'](_0x415ce5=>{const _0x4e8c13=_0x28ecd7,_0x54cb36=[_0x4e8c13(0xaa)+_0x415ce5['datasetCode']+'\x22','tableName:\x20\x22'+_0x415ce5[_0x4e8c13(0x86)]+'\x22',_0x4e8c13(0x9e)+_0x415ce5[_0x4e8c13(0xa9)]+'\x22'];return _0x415ce5['alias']&&_0x54cb36['push'](_0x4e8c13(0x8d)+_0x415ce5[_0x4e8c13(0x8f)]+'\x22'),_0x4e8c13(0x6f)+_0x54cb36[_0x4e8c13(0x92)](',\x20')+'\x20},';})['join'](''),_0x4f5ed7=_0x39590c||_0x4eb01c[0x0]?.[_0x28ecd7(0x8f)]||_0x28ecd7(0x8e);let _0x190738=_0x46db2c[_0x28ecd7(0x90)](/\{AppCode\}/g,_0x3fa15a)[_0x28ecd7(0x90)](/\{ModelConfigs\}/g,_0x597642)[_0x28ecd7(0x90)](/\{ExampleModelName\}/g,_0x4f5ed7)[_0x28ecd7(0x90)](/\{ApiFileName\}/g,_0x5ad573||_0x28ecd7(0x84))[_0x28ecd7(0x90)](/\{ConfigName\}/g,_0xca4501||_0x28ecd7(0x87))['replace'](/\{ClientConfigParam\}/g,_0x43595e||'')[_0x28ecd7(0x90)](/\{VarPrefix\}/g,_0x358b4e||'LOVRABET')[_0x28ecd7(0x90)](/\{CreatedAt\}/g,_0x5df8b1);return _0x190738;}static async[a257_0xe739ba(0xab)](_0x3226b3,_0x586b20,_0x1ab298,_0x154b6c,_0x40b42f=!![]){const _0x109a2e=a257_0xe739ba,_0x23941f=Date['now']();try{_0x40b42f&&logger[_0x109a2e(0x94)](_0x109a2e(0xa3),_0x109a2e(0x71),{'templatePath':_0x3226b3,'targetPath':_0x586b20,'pageName':_0x1ab298,'templateName':_0x154b6c});await a257_0x3f3429[_0x109a2e(0x89)][_0x109a2e(0xb0)](_0x586b20,{'recursive':!![]}),await this[_0x109a2e(0xa1)](_0x3226b3,_0x586b20,_0x1ab298,_0x154b6c);if(_0x40b42f){const _0x52ffd7=Date[_0x109a2e(0x82)]()-_0x23941f;logger[_0x109a2e(0x7b)](_0x109a2e(0xa3),'模板内容替换完成',_0x52ffd7,{'pageName':_0x1ab298,'templateName':_0x154b6c});}}catch(_0x278b41){if(_0x40b42f){const _0x4e164e=Date[_0x109a2e(0x82)]()-_0x23941f;logger[_0x109a2e(0xa6)](_0x109a2e(0xa3),_0x109a2e(0xac),{'templatePath':_0x3226b3,'targetPath':_0x586b20,'pageName':_0x1ab298,'templateName':_0x154b6c,'error':_0x278b41 instanceof Error?_0x278b41['message']:String(_0x278b41),'duration':_0x4e164e});}throw _0x278b41;}}static async[a257_0xe739ba(0xa1)](_0x83dfd7,_0x24c6d2,_0x3c6113,_0x49c565){const _0x46b7fe=a257_0xe739ba,_0x150af6=await a257_0x3f3429[_0x46b7fe(0x89)][_0x46b7fe(0x80)](_0x83dfd7,{'withFileTypes':!![]});for(const _0x2fe44c of _0x150af6){const _0x21632e=a257_0x8c6227[_0x46b7fe(0x92)](_0x83dfd7,_0x2fe44c[_0x46b7fe(0xa9)]);let _0x5ee3f4=a257_0x8c6227[_0x46b7fe(0x92)](_0x24c6d2,_0x2fe44c[_0x46b7fe(0xa9)]);_0x2fe44c[_0x46b7fe(0xa9)][_0x46b7fe(0x96)](_0x46b7fe(0x83))&&(_0x5ee3f4=a257_0x8c6227[_0x46b7fe(0x92)](_0x24c6d2,_0x2fe44c['name']['replace'](/\.tpl$/,'')));if(_0x2fe44c[_0x46b7fe(0x72)]())await a257_0x3f3429[_0x46b7fe(0x89)]['mkdir'](_0x5ee3f4,{'recursive':!![]}),await this[_0x46b7fe(0xa1)](_0x21632e,_0x5ee3f4,_0x3c6113,_0x49c565);else _0x2fe44c[_0x46b7fe(0x91)]()&&await this[_0x46b7fe(0x95)](_0x21632e,_0x5ee3f4,_0x3c6113,_0x49c565);}}static async['processFile'](_0x9b7809,_0x533d90,_0x4e22f9,_0x1de632){const _0x4a6b33=a257_0xe739ba,_0x170a40=a257_0x8c6227[_0x4a6b33(0xa4)](_0x9b7809)['toLowerCase']();_0x9b7809['endsWith'](_0x4a6b33(0x83))&&(_0x533d90=_0x533d90[_0x4a6b33(0x90)](/\.tpl$/,''));const _0x42548b=[_0x4a6b33(0x9c),_0x4a6b33(0x9f),_0x4a6b33(0x81),'.js',_0x4a6b33(0x85),'.md','.css','.scss',_0x4a6b33(0x83)];if(_0x42548b[_0x4a6b33(0x9d)](_0x170a40)||_0x9b7809[_0x4a6b33(0x96)]('.tpl')){const _0x4c98d7=await a257_0x3f3429[_0x4a6b33(0x89)][_0x4a6b33(0x76)](_0x9b7809,_0x4a6b33(0x8b)),_0x3ab385=this[_0x4a6b33(0xaf)](_0x4c98d7,_0x4e22f9,_0x1de632);await a257_0x3f3429[_0x4a6b33(0x89)][_0x4a6b33(0x7f)](_0x533d90,_0x3ab385,'utf8');}else await a257_0x3f3429[_0x4a6b33(0x89)][_0x4a6b33(0xa7)](_0x9b7809,_0x533d90);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5efbd2,_0x32d7ba){const _0x1f1eeb=a258_0x1be3,_0xbc331e=_0x5efbd2();while(!![]){try{const _0x23816=-parseInt(_0x1f1eeb(0x107))/0x1+-parseInt(_0x1f1eeb(0x114))/0x2+parseInt(_0x1f1eeb(0x118))/0x3*(parseInt(_0x1f1eeb(0x116))/0x4)+parseInt(_0x1f1eeb(0x113))/0x5+parseInt(_0x1f1eeb(0x11b))/0x6+parseInt(_0x1f1eeb(0x10a))/0x7+parseInt(_0x1f1eeb(0x109))/0x8;if(_0x23816===_0x32d7ba)break;else _0xbc331e['push'](_0xbc331e['shift']());}catch(_0x4cd2d1){_0xbc331e['push'](_0xbc331e['shift']());}}}(a258_0x4363,0x7c09b));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a258_0x393a13 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 _0x4a28f0=a258_0x1be3,_0x224448=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x4a28f0(0x104)]()['toLowerCase']();return _0x224448==='1'||_0x224448===_0x4a28f0(0x117)||_0x224448===_0x4a28f0(0x108);}function cacheRoot(){const _0x202d62=a258_0x1be3;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x202d62(0x10f));}export function getUpdateNoticeCachePath(){const _0x4f07d3=a258_0x1be3;return join(cacheRoot(),_0x4f07d3(0x105),_0x4f07d3(0x111));}async function readUpdateNoticeCache(){const _0x3d4669=a258_0x1be3;try{const _0x3538c9=await readFile(getUpdateNoticeCachePath(),_0x3d4669(0x11e)),_0x34bb08=JSON[_0x3d4669(0x110)](_0x3538c9);if(!_0x34bb08||typeof _0x34bb08!==_0x3d4669(0x112))return{};return _0x34bb08;}catch{return{};}}async function writeUpdateNoticeCache(_0x22720c){const _0x5012ad=a258_0x1be3;try{const _0x1a3361=getUpdateNoticeCachePath();await mkdir(dirname(_0x1a3361),{'recursive':!![]}),await writeFile(_0x1a3361,JSON[_0x5012ad(0x11a)](_0x22720c,null,0x2)+'\x0a','utf8');}catch{}}function a258_0x1be3(_0x41d622,_0x1faab1){_0x41d622=_0x41d622-0x104;const _0x436310=a258_0x4363();let _0x1be366=_0x436310[_0x41d622];return _0x1be366;}function isFreshCheck(_0x129fe3,_0x4510c0){const _0x37db04=a258_0x1be3;return typeof _0x129fe3[_0x37db04(0x106)]===_0x37db04(0x10c)&&_0x4510c0-_0x129fe3[_0x37db04(0x106)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x47df42,_0x35bfcf,_0x2cbbee){const _0x355851=a258_0x1be3;return _0x47df42['lastNotifiedVersion']===_0x35bfcf&&typeof _0x47df42[_0x355851(0x10d)]===_0x355851(0x10c)&&_0x2cbbee-_0x47df42[_0x355851(0x10d)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x4117bc){const _0x47e2ca=a258_0x1be3;return _0x47e2ca(0x119)+NPM_PACKAGE_NAME+_0x47e2ca(0x115)+_0x4117bc;}export async function resolveLatestUpdateNotice(){const _0x1a6afa=a258_0x1be3;if(isUpdateNoticeDisabled())return null;try{const _0xde6a0c=Date['now'](),_0x4c0509=getCliVersion(),_0x41caa5=await readUpdateNoticeCache();let _0x40eb3e=isFreshCheck(_0x41caa5,_0xde6a0c)?_0x41caa5['latest']?.[_0x1a6afa(0x104)]():undefined;if(!_0x40eb3e&&!isFreshCheck(_0x41caa5,_0xde6a0c)){const _0x4d6c3f=await getCliVersionPolicy();_0x40eb3e=_0x4d6c3f?.[_0x1a6afa(0x10e)]?.[_0x1a6afa(0x104)]()||undefined,await writeUpdateNoticeCache({..._0x41caa5,'checkedAt':_0xde6a0c,'latest':_0x40eb3e,'failed':!_0x40eb3e});}if(!_0x40eb3e||!a258_0x393a13[_0x1a6afa(0x11d)](_0x4c0509)||!a258_0x393a13[_0x1a6afa(0x11d)](_0x40eb3e))return null;if(a258_0x393a13[_0x1a6afa(0x10b)](_0x4c0509,_0x40eb3e))return null;if(isRecentlyNotified(_0x41caa5,_0x40eb3e,_0xde6a0c))return null;const _0x17052d=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x41caa5,'checkedAt':isFreshCheck(_0x41caa5,_0xde6a0c)?_0x41caa5[_0x1a6afa(0x106)]:_0xde6a0c,'latest':_0x40eb3e,'failed':![],'lastNotifiedVersion':_0x40eb3e,'lastNotifiedAt':_0xde6a0c}),{'command':_0x17052d,'current':_0x4c0509,'latest':_0x40eb3e,'url':buildNpmVersionUrl(_0x40eb3e),'message':CLI_BIN_NAME+'\x20'+_0x40eb3e+'\x20available,\x20current\x20'+_0x4c0509+_0x1a6afa(0x11c)+_0x17052d};}catch{return null;}}function a258_0x4363(){const _0x3d60b5=['stringify','1453842lMRieY',',\x20run:\x20','valid','utf8','trim','rabetbase-cli','checkedAt','955893wGtrez','yes','10389848CdePPF','2328382ykaLHD','gte','number','lastNotifiedAt','stableVersion','.cache','parse','update-check.json','object','2135195GPUoWP','2000328ZbZdyb','/v/','12GpDRvO','true','163413dXNaFk','https://www.npmjs.com/package/'];a258_0x4363=function(){return _0x3d60b5;};return a258_0x4363();}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xa2ce77,_0x15c5ae){var _0x962da4=a259_0x249b,_0x5c6ddd=_0xa2ce77();while(!![]){try{var _0x23df37=parseInt(_0x962da4(0x166))/0x1+-parseInt(_0x962da4(0x167))/0x2*(parseInt(_0x962da4(0x163))/0x3)+-parseInt(_0x962da4(0x162))/0x4+parseInt(_0x962da4(0x16a))/0x5+-parseInt(_0x962da4(0x169))/0x6*(parseInt(_0x962da4(0x161))/0x7)+parseInt(_0x962da4(0x165))/0x8+-parseInt(_0x962da4(0x168))/0x9*(parseInt(_0x962da4(0x164))/0xa);if(_0x23df37===_0x15c5ae)break;else _0x5c6ddd['push'](_0x5c6ddd['shift']());}catch(_0x29727){_0x5c6ddd['push'](_0x5c6ddd['shift']());}}}(a259_0x3430,0x4cc7a));function a259_0x249b(_0x3252b4,_0x59d3fc){_0x3252b4=_0x3252b4-0x161;var _0x3430b9=a259_0x3430();var _0x249bca=_0x3430b9[_0x3252b4];return _0x249bca;}import{VERSION}from'../generated/build-info.js';function a259_0x3430(){var _0x4a5960=['1048536NHVDxx','16716XhEybd','247970fvbTGA','3052664hbBlTe','519275lqMEfJ','40wnKmfX','18cFrMyS','210NxBvYm','1801475hyqVgc','104699mskvoM'];a259_0x3430=function(){return _0x4a5960;};return a259_0x3430();}export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x52f8d3,_0x177691){var _0x2c5d19=a260_0x3b09,_0x4fff64=_0x52f8d3();while(!![]){try{var _0x2a265b=parseInt(_0x2c5d19(0x126))/0x1*(parseInt(_0x2c5d19(0x12a))/0x2)+parseInt(_0x2c5d19(0x12b))/0x3+parseInt(_0x2c5d19(0x128))/0x4+parseInt(_0x2c5d19(0x127))/0x5*(-parseInt(_0x2c5d19(0x129))/0x6)+parseInt(_0x2c5d19(0x125))/0x7+-parseInt(_0x2c5d19(0x12d))/0x8+-parseInt(_0x2c5d19(0x12e))/0x9*(parseInt(_0x2c5d19(0x12c))/0xa);if(_0x2a265b===_0x177691)break;else _0x4fff64['push'](_0x4fff64['shift']());}catch(_0x4bf6ce){_0x4fff64['push'](_0x4fff64['shift']());}}}(a260_0x3e0b,0x51497));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a260_0x3b09(_0x1edde6,_0x188622){_0x1edde6=_0x1edde6-0x125;var _0x3e0b67=a260_0x3e0b();var _0x3b0908=_0x3e0b67[_0x1edde6];return _0x3b0908;}export async function withActiveCookie(_0x381b89,_0xe8d7be){setActiveCookie(_0x381b89);try{return await _0xe8d7be();}finally{clearActiveCookie();}}function a260_0x3e0b(){var _0x559c43=['70jaBAHV','2860056DOxqfg','283032MhgXIA','1812174hNstQa','10AUsIoT','5bOfLuV','701692AFValM','1621398RceWMT','28406YqNXuZ','1813476CJTOgA'];a260_0x3e0b=function(){return _0x559c43;};return a260_0x3e0b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5768af,_0x48f41c){var _0x25503f=a261_0x4a70,_0x213cb7=_0x5768af();while(!![]){try{var _0x46d7c3=parseInt(_0x25503f(0x15e))/0x1*(-parseInt(_0x25503f(0x15a))/0x2)+parseInt(_0x25503f(0x15d))/0x3*(-parseInt(_0x25503f(0x15f))/0x4)+parseInt(_0x25503f(0x15b))/0x5*(-parseInt(_0x25503f(0x162))/0x6)+parseInt(_0x25503f(0x15c))/0x7+parseInt(_0x25503f(0x160))/0x8*(-parseInt(_0x25503f(0x161))/0x9)+-parseInt(_0x25503f(0x159))/0xa+-parseInt(_0x25503f(0x163))/0xb*(-parseInt(_0x25503f(0x158))/0xc);if(_0x46d7c3===_0x48f41c)break;else _0x213cb7['push'](_0x213cb7['shift']());}catch(_0x2b4e3d){_0x213cb7['push'](_0x213cb7['shift']());}}}(a261_0x171c,0x267cd));export function writeCliSideChannelLine(_0x13651b){process['stderr']['write'](_0x13651b+'\x0a');}function a261_0x4a70(_0x3730df,_0x21ac3a){_0x3730df=_0x3730df-0x158;var _0x171c80=a261_0x171c();var _0x4a70c0=_0x171c80[_0x3730df];return _0x4a70c0;}function a261_0x171c(){var _0x50b8f4=['268EnbqsL','51425cVnMLD','1200633wnlpyU','6675vSKBQA','295DfbBGY','428TZuKIO','2792SMtlGG','4509zcAbID','174wnNjkp','10110441rQqXTh','12DvcmAD','1822860hlcGPX'];a261_0x171c=function(){return _0x50b8f4;};return a261_0x171c();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.3.9-beta.
|
|
3
|
+
"version": "2.3.9-beta.3",
|
|
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": [
|