@lovrabet/rabetbase-cli 2.3.3-beta.2 → 2.3.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/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/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/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
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a213_0x2133(_0x384331,_0x9f83e5){_0x384331=_0x384331-0x69;const _0x58c96a=a213_0x58c9();let _0x21334f=_0x58c96a[_0x384331];return _0x21334f;}const a213_0x1e0735=a213_0x2133;function a213_0x58c9(){const _0x37bfec=['14fhQtGc','Failed\x20to\x20clear\x20logs:','readFileSync','失败:\x20','20975661sNVMxN','filter','winstonLogger','warn','message','1954150lBUsIg','开始执行:\x20','4235514fIqtOn','red','stringify','1083348kbJQFV','完成:\x20','green','errors','readLogs','File','Failed\x20to\x20read\x20logs:','1NkLFBZ','logFilePath','trim','3969267XWJiyh','writeFileSync','setRawCommand','.lovrabet.log','format','existsSync','duration','utf8','currentRawCommand','printf','split','clearLogs','mkdirSync','parse','setLogPath','rawCommand','1771994lDyLyb','logTask','details','level','initWinstonLogger','unknown','success','1788768KwPSev','join','timestamp','error','info','yellow','now','addColors','getWinstonInstance'];a213_0x58c9=function(){return _0x37bfec;};return a213_0x58c9();}(function(_0x58986d,_0x542559){const _0x10f7c4=a213_0x2133,_0x154a94=_0x58986d();while(!![]){try{const _0x1d4c4e=parseInt(_0x10f7c4(0x70))/0x1*(parseInt(_0x10f7c4(0x83))/0x2)+-parseInt(_0x10f7c4(0x73))/0x3+-parseInt(_0x10f7c4(0x69))/0x4+parseInt(_0x10f7c4(0x9c))/0x5+parseInt(_0x10f7c4(0x9e))/0x6*(-parseInt(_0x10f7c4(0x93))/0x7)+parseInt(_0x10f7c4(0x8a))/0x8+parseInt(_0x10f7c4(0x97))/0x9;if(_0x1d4c4e===_0x542559)break;else _0x154a94['push'](_0x154a94['shift']());}catch(_0x23ad99){_0x154a94['push'](_0x154a94['shift']());}}}(a213_0x58c9,0xc97c8));import a213_0x174029 from'winston';import a213_0x1eea06 from'node:fs';import a213_0x18995b from'node:path';class Logger{[a213_0x1e0735(0x99)];['logFilePath'];[a213_0x1e0735(0x7b)]='';constructor(){const _0x5aba20=a213_0x1e0735;this[_0x5aba20(0x71)]='';}[a213_0x1e0735(0x75)](_0x3f0b59){const _0x3e13d2=a213_0x1e0735;this[_0x3e13d2(0x7b)]=_0x3f0b59;}[a213_0x1e0735(0x87)](){const _0x301ad8=a213_0x1e0735,_0x45f88d=a213_0x18995b['dirname'](this[_0x301ad8(0x71)]);!a213_0x1eea06[_0x301ad8(0x78)](_0x45f88d)&&a213_0x1eea06[_0x301ad8(0x7f)](_0x45f88d,{'recursive':!![]});const _0xec5cf0=a213_0x174029[_0x301ad8(0x77)]['combine'](a213_0x174029[_0x301ad8(0x77)]['timestamp'](),a213_0x174029[_0x301ad8(0x77)][_0x301ad8(0x6c)]({'stack':!![]}),a213_0x174029[_0x301ad8(0x77)][_0x301ad8(0x7c)](_0xc4e6e9=>{const _0x3e0aba=_0x301ad8,_0x52c445={'timestamp':_0xc4e6e9[_0x3e0aba(0x8c)]||new Date()['toISOString'](),'level':_0xc4e6e9[_0x3e0aba(0x86)]||_0x3e0aba(0x8e),'command':_0xc4e6e9['command']||_0x3e0aba(0x88),'rawCommand':_0xc4e6e9[_0x3e0aba(0x82)]||this[_0x3e0aba(0x7b)]||undefined,'message':_0xc4e6e9['message']||'','duration':_0xc4e6e9[_0x3e0aba(0x79)]||undefined,'details':_0xc4e6e9[_0x3e0aba(0x85)]||undefined};return JSON[_0x3e0aba(0xa0)](_0x52c445);}));this[_0x301ad8(0x99)]=a213_0x174029['createLogger']({'level':'info','format':_0xec5cf0,'transports':[new a213_0x174029['transports'][(_0x301ad8(0x6e))]({'filename':this[_0x301ad8(0x71)],'level':_0x301ad8(0x8e)})],'silent':![]}),a213_0x174029[_0x301ad8(0x91)]({'success':_0x301ad8(0x6b),'error':_0x301ad8(0x9f),'warn':_0x301ad8(0x8f),'info':'blue'});}[a213_0x1e0735(0x81)](_0x372bf9){const _0xb82091=a213_0x1e0735;this[_0xb82091(0x71)]=a213_0x18995b[_0xb82091(0x8b)](_0x372bf9,_0xb82091(0x76)),this['winstonLogger']&&this[_0xb82091(0x99)]['clear'](),this[_0xb82091(0x87)]();}[a213_0x1e0735(0x8e)](_0x3f0033,_0x361ac3,_0x19d13a){const _0x38a504=a213_0x1e0735;if(!this[_0x38a504(0x71)]||!this[_0x38a504(0x99)])return;this[_0x38a504(0x99)][_0x38a504(0x8e)](_0x361ac3,{'command':_0x3f0033,'details':_0x19d13a});}['success'](_0x2e5cfc,_0x19aa33,_0x131045,_0x2db02a){const _0x1e2ee1=a213_0x1e0735;if(!this[_0x1e2ee1(0x71)]||!this[_0x1e2ee1(0x99)])return;this[_0x1e2ee1(0x99)]['log'](_0x1e2ee1(0x8e),_0x19aa33,{'level':_0x1e2ee1(0x89),'command':_0x2e5cfc,'duration':_0x131045,'details':_0x2db02a});}['error'](_0x33df88,_0x479bdb,_0x35134c){const _0xb5617c=a213_0x1e0735;if(!this[_0xb5617c(0x71)]||!this['winstonLogger'])return;this[_0xb5617c(0x99)][_0xb5617c(0x8d)](_0x479bdb,{'command':_0x33df88,'details':_0x35134c});}[a213_0x1e0735(0x9a)](_0x3f9662,_0x2983a8,_0x3cf22d){const _0x38e4dd=a213_0x1e0735;if(!this[_0x38e4dd(0x71)]||!this[_0x38e4dd(0x99)])return;this[_0x38e4dd(0x99)][_0x38e4dd(0x9a)](_0x2983a8,{'command':_0x3f9662,'details':_0x3cf22d});}async[a213_0x1e0735(0x84)](_0x1f3474,_0x4093b4,_0x4e1378){const _0x3972a9=a213_0x1e0735,_0x5e3a2a=Date[_0x3972a9(0x90)]();this['info'](_0x1f3474,_0x3972a9(0x9d)+_0x4093b4);try{const _0x4631ae=await _0x4e1378(),_0x323d9f=Date['now']()-_0x5e3a2a;return this['success'](_0x1f3474,_0x3972a9(0x6a)+_0x4093b4,_0x323d9f),_0x4631ae;}catch(_0xf5eca7){const _0x55976d=Date[_0x3972a9(0x90)]()-_0x5e3a2a;this[_0x3972a9(0x8d)](_0x1f3474,_0x3972a9(0x96)+_0x4093b4,{'error':_0xf5eca7 instanceof Error?_0xf5eca7[_0x3972a9(0x9b)]:String(_0xf5eca7),'duration':_0x55976d});throw _0xf5eca7;}}[a213_0x1e0735(0x6d)](){const _0xd88328=a213_0x1e0735;try{if(!a213_0x1eea06[_0xd88328(0x78)](this[_0xd88328(0x71)]))return[];const _0x2001f6=a213_0x1eea06[_0xd88328(0x95)](this[_0xd88328(0x71)],_0xd88328(0x7a));return _0x2001f6[_0xd88328(0x7d)]('\x0a')[_0xd88328(0x98)](_0x50e772=>_0x50e772[_0xd88328(0x72)]())['map'](_0x481f45=>JSON[_0xd88328(0x80)](_0x481f45));}catch(_0x342672){return console['warn'](_0xd88328(0x6f),_0x342672),[];}}[a213_0x1e0735(0x7e)](){const _0x27573c=a213_0x1e0735;try{a213_0x1eea06[_0x27573c(0x78)](this[_0x27573c(0x71)])&&a213_0x1eea06[_0x27573c(0x74)](this[_0x27573c(0x71)],'',_0x27573c(0x7a));}catch(_0x56d784){console[_0x27573c(0x9a)](_0x27573c(0x94),_0x56d784);}}[a213_0x1e0735(0x92)](){const _0x42c27e=a213_0x1e0735;return this[_0x42c27e(0x99)];}}export const logger=new Logger();
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2c0348,_0x53786b){const _0x1f22ab=a214_0x4cb2,_0x2fd6e5=_0x2c0348();while(!![]){try{const _0x392b92=-parseInt(_0x1f22ab(0x75))/0x1+-parseInt(_0x1f22ab(0x72))/0x2*(-parseInt(_0x1f22ab(0x6b))/0x3)+-parseInt(_0x1f22ab(0x78))/0x4+-parseInt(_0x1f22ab(0x6c))/0x5+-parseInt(_0x1f22ab(0x77))/0x6*(-parseInt(_0x1f22ab(0x6f))/0x7)+-parseInt(_0x1f22ab(0x6e))/0x8*(parseInt(_0x1f22ab(0x73))/0x9)+parseInt(_0x1f22ab(0x76))/0xa;if(_0x392b92===_0x53786b)break;else _0x2fd6e5['push'](_0x2fd6e5['shift']());}catch(_0x337bfa){_0x2fd6e5['push'](_0x2fd6e5['shift']());}}}(a214_0x2887,0xd8930));function a214_0x2887(){const _0x350160=['1639520HjCDHT','34246530yZfNnC','42dxdDtb','109472VyxbVR','isArray','4101qCVjuu','5220890MqROrR','validation','3760QrbRgu','235067ZMBNXg','Invalid\x20JSON\x20for\x20--params:\x20','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','2164NnygAE','29502xDneQJ','object'];a214_0x2887=function(){return _0x350160;};return a214_0x2887();}import{CliErrors}from'../errors.js';function a214_0x4cb2(_0x328b0f,_0x27d055){_0x328b0f=_0x328b0f-0x6a;const _0x288752=a214_0x2887();let _0x4cb2f1=_0x288752[_0x328b0f];return _0x4cb2f1;}export function parseJsonParams(_0x92bf51){const _0x32609d=a214_0x4cb2;if(!_0x92bf51)return undefined;let _0x3e048d;try{_0x3e048d=JSON['parse'](_0x92bf51);}catch{throw CliErrors['validation'](_0x32609d(0x70)+_0x92bf51);}if(!_0x3e048d||typeof _0x3e048d!==_0x32609d(0x74)||Array[_0x32609d(0x6a)](_0x3e048d))throw CliErrors[_0x32609d(0x6d)]('--params\x20must\x20be\x20a\x20JSON\x20object',_0x32609d(0x71));return _0x3e048d;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a215_0x1385dd=a215_0x4843;(function(_0x51060f,_0x410482){const _0x5f2f9b=a215_0x4843,_0x53c55e=_0x51060f();while(!![]){try{const _0x3bbbe5=parseInt(_0x5f2f9b(0x1c3))/0x1*(-parseInt(_0x5f2f9b(0x1c5))/0x2)+parseInt(_0x5f2f9b(0x1cd))/0x3+parseInt(_0x5f2f9b(0x1cc))/0x4+-parseInt(_0x5f2f9b(0x1c6))/0x5*(-parseInt(_0x5f2f9b(0x1c4))/0x6)+parseInt(_0x5f2f9b(0x1c7))/0x7+-parseInt(_0x5f2f9b(0x1c9))/0x8+parseInt(_0x5f2f9b(0x1ca))/0x9*(-parseInt(_0x5f2f9b(0x1c8))/0xa);if(_0x3bbbe5===_0x410482)break;else _0x53c55e['push'](_0x53c55e['shift']());}catch(_0x1b3301){_0x53c55e['push'](_0x53c55e['shift']());}}}(a215_0x518a,0x6de31));function a215_0x4843(_0x3ea6a4,_0x4f8adf){_0x3ea6a4=_0x3ea6a4-0x1c2;const _0x518a57=a215_0x518a();let _0x48432f=_0x518a57[_0x3ea6a4];return _0x48432f;}export const isWindows=process[a215_0x1385dd(0x1c2)]==='win32';export function resolveNpmBin(_0x29e200){const _0x539e58=a215_0x1385dd;return isWindows?_0x29e200+_0x539e58(0x1cb):_0x29e200;}function a215_0x518a(){const _0x4ef9ce=['20326WEKmaQ','15816ydvEZk','66UEXZmi','760obBtkL','658861PzdMtq','2479390VpXMfh','6598888jzvRVh','9QsSiHg','.cmd','3489820RSDpyu','2479215TVawmO','platform'];a215_0x518a=function(){return _0x4ef9ce;};return a215_0x518a();}
|
package/lib/utils/rules-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x47c9d8,_0x103477){const _0x581973=a216_0x3d8e,_0x44fe5a=_0x47c9d8();while(!![]){try{const _0x1bc454=-parseInt(_0x581973(0x1eb))/0x1+-parseInt(_0x581973(0x1e6))/0x2+-parseInt(_0x581973(0x1ef))/0x3*(parseInt(_0x581973(0x1e7))/0x4)+-parseInt(_0x581973(0x1e4))/0x5+parseInt(_0x581973(0x1e5))/0x6+parseInt(_0x581973(0x1e9))/0x7*(parseInt(_0x581973(0x1ea))/0x8)+-parseInt(_0x581973(0x1f3))/0x9*(-parseInt(_0x581973(0x1f4))/0xa);if(_0x1bc454===_0x103477)break;else _0x44fe5a['push'](_0x44fe5a['shift']());}catch(_0x377b9f){_0x44fe5a['push'](_0x44fe5a['shift']());}}}(a216_0x1d0a,0xa9659));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';function a216_0x3d8e(_0x31e72d,_0x29c3a7){_0x31e72d=_0x31e72d-0x1e1;const _0x1d0a74=a216_0x1d0a();let _0x3d8e87=_0x1d0a74[_0x31e72d];return _0x3d8e87;}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 getRulesCdnUrl(){const _0x5891c9=a216_0x3d8e,_0x2fa936=getTemplateBaseUrl();return _0x2fa936+_0x5891c9(0x1ec);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x5e8265=a216_0x3d8e,_0x3807b0=getRulesCdnUrl(),_0x181a0d=await fetch(_0x3807b0,{'headers':{'Accept':_0x5e8265(0x1e3)}});if(!_0x181a0d['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x181a0d[_0x5e8265(0x1ee)]+'\x20'+_0x181a0d['statusText']);const _0x1154c9=await _0x181a0d['json']();if(!_0x1154c9[_0x5e8265(0x1f5)]||typeof _0x1154c9['content']!==_0x5e8265(0x1e8))throw new Error('CDN\x20返回数据格式错误');return _0x1154c9;}export async function getRulesContent(){const _0x5a9897=a216_0x3d8e;try{const _0x5b23c0=await fetchRulesFromCDN();return _0x5b23c0[_0x5a9897(0x1f5)];}catch{return readLocalTemplate();}}function a216_0x1d0a(){const _0x331139=['status','205431YdoErZ','agents.md','utf-8','lastUpdated','25605684rYhjyU','10aSzQmr','content','本地模板文件不存在:\x20','catch','application/json','745480zDYCJi','3162114IOPFuy','2360982DnnQhK','72jjKXtf','string','1385377HisTVe','40nBsXzL','1105628ymleKT','/rules/rules.json','.cursor/rules'];a216_0x1d0a=function(){return _0x331139;};return a216_0x1d0a();}export function readLocalTemplate(){const _0x2bdedd=a216_0x3d8e;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error(_0x2bdedd(0x1e1)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x2fcff5){const _0x503adb=a216_0x3d8e,_0x2914da=await fetchRulesFromCDN()[_0x503adb(0x1e2)](()=>null);let _0x364120;_0x2914da?(_0x364120=_0x2914da[_0x503adb(0x1f5)],_0x2914da[_0x503adb(0x1f2)]&&(_0x364120=appendUpdateTime(_0x364120,_0x2914da[_0x503adb(0x1f2)]))):_0x364120=readLocalTemplate();const _0x5563e6=dirname(_0x2fcff5);!existsSync(_0x5563e6)&&mkdirSync(_0x5563e6,{'recursive':!![]}),writeFileSync(_0x2fcff5,_0x364120,_0x503adb(0x1f1));}export async function copyRulesToCursor(_0x45943f){const _0x36f3f7=a216_0x3d8e,_0x300f35=join(_0x45943f,_0x36f3f7(0x1ed)),_0x2dfe61=join(_0x300f35,'lovrabet_rules.mdc');if(existsSync(_0x2dfe61))return![];return await writeRulesFile(_0x2dfe61),!![];}export async function copyRulesToAgentsMd(_0x258c0a){const _0x239e76=a216_0x3d8e,_0x54d77e=join(_0x258c0a,_0x239e76(0x1f0));if(existsSync(_0x54d77e))return![];return await writeRulesFile(_0x54d77e),!![];}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x31c389){return new Promise(_0x274ff6=>setTimeout(_0x274ff6,_0x31c389));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a218_0xbade3a=a218_0x4041;(function(_0x1fda1a,_0x12b947){const _0x14d13a=a218_0x4041,_0x1a21d5=_0x1fda1a();while(!![]){try{const _0x2c48d1=parseInt(_0x14d13a(0x1ce))/0x1+parseInt(_0x14d13a(0x1b8))/0x2+-parseInt(_0x14d13a(0x1cb))/0x3*(-parseInt(_0x14d13a(0x1ed))/0x4)+-parseInt(_0x14d13a(0x1e9))/0x5*(parseInt(_0x14d13a(0x1eb))/0x6)+-parseInt(_0x14d13a(0x1bd))/0x7*(parseInt(_0x14d13a(0x1c2))/0x8)+parseInt(_0x14d13a(0x1c9))/0x9*(-parseInt(_0x14d13a(0x1f4))/0xa)+-parseInt(_0x14d13a(0x1c6))/0xb*(-parseInt(_0x14d13a(0x1f1))/0xc);if(_0x2c48d1===_0x12b947)break;else _0x1a21d5['push'](_0x1a21d5['shift']());}catch(_0x273dc3){_0x1a21d5['push'](_0x1a21d5['shift']());}}}(a218_0x2e6d,0xd9b97));function a218_0x2e6d(){const _0x274634=['开始处理模板内容替换','862043NFhDPZ','message','endsWith','processDirectory','alias','104zqyoFM','join','模板内容替换完成','toDisplayTitle','260007jpUnAJ','getSeconds','.ts','43272NVQlHf','name','41565pvHtPZ','name:\x20\x22','promises','1497440tuCcqv','isDirectory','mkdir','pop','success','includes','getMinutes','processFile','\x20},','template','replaceContent','slice','isFile','default','map','toUpperCase','split','copyFile','processTemplate','pad','toComponentName','formatLocalTimestamp','.js','datasetCode','now','utf8','error','345ALxuOK','模板内容替换失败','34212AzkeCP','replace','228DIVxAf','readdir','push','alias:\x20\x22','492DAVTVc','.md','YourModel','3460bhsvPr','info','.css','writeFile','toLowerCase','LOVRABET','tableName:\x20\x22','getDate','extname','.json','readFile','charAt','.tsx','api','2586900ENKhnE','getMonth','padStart','.tpl'];a218_0x2e6d=function(){return _0x274634;};return a218_0x2e6d();}function a218_0x4041(_0x2b151d,_0x430f18){_0x2b151d=_0x2b151d-0x1b1;const _0x2e6d8b=a218_0x2e6d();let _0x404136=_0x2e6d8b[_0x2b151d];return _0x404136;}import a218_0x2eef10 from'node:fs';import a218_0x3309cc from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a218_0xbade3a(0x1e1)](_0x3ae761){const _0x1687c5=a218_0xbade3a;return String(_0x3ae761)[_0x1687c5(0x1ba)](0x2,'0');}static[a218_0xbade3a(0x1e3)](_0x4c4d55){const _0x39c6cf=a218_0xbade3a,_0x377be4=_0x4c4d55['getFullYear'](),_0x5425d1=this[_0x39c6cf(0x1e1)](_0x4c4d55[_0x39c6cf(0x1b9)]()+0x1),_0x1e1150=this['pad'](_0x4c4d55[_0x39c6cf(0x1b1)]()),_0xe330a=this[_0x39c6cf(0x1e1)](_0x4c4d55['getHours']()),_0x3d3290=this['pad'](_0x4c4d55[_0x39c6cf(0x1d4)]()),_0x6640ce=this[_0x39c6cf(0x1e1)](_0x4c4d55[_0x39c6cf(0x1c7)]());return{'createdAt':_0x377be4+'-'+_0x5425d1+'-'+_0x1e1150+'\x20'+_0xe330a+':'+_0x3d3290+':'+_0x6640ce,'createdDate':_0x377be4+'-'+_0x5425d1+'-'+_0x1e1150,'createdTime':_0xe330a+':'+_0x3d3290+':'+_0x6640ce};}static[a218_0xbade3a(0x1e2)](_0x4a036b){const _0x5f0364=a218_0xbade3a,_0xed6255=_0x4a036b[_0x5f0364(0x1de)]('/')[_0x5f0364(0x1d1)]()||_0x4a036b;return _0xed6255[_0x5f0364(0x1de)]('-')[_0x5f0364(0x1dc)](_0x4af7b1=>_0x4af7b1['charAt'](0x0)[_0x5f0364(0x1dd)]()+_0x4af7b1['slice'](0x1)[_0x5f0364(0x1f8)]())[_0x5f0364(0x1c3)]('');}static[a218_0xbade3a(0x1c5)](_0x150e97){const _0x1f587b=a218_0xbade3a,_0x5a5829=_0x150e97['split']('/')[_0x1f587b(0x1d1)]()||_0x150e97;return _0x5a5829['split']('-')[_0x1f587b(0x1dc)](_0x44fdc0=>_0x44fdc0[_0x1f587b(0x1b5)](0x0)[_0x1f587b(0x1dd)]()+_0x44fdc0[_0x1f587b(0x1d9)](0x1)[_0x1f587b(0x1f8)]())[_0x1f587b(0x1c3)]('\x20');}static[a218_0xbade3a(0x1d8)](_0x511490,_0x3065fc,_0x2b5dd3){const _0x2040e3=a218_0xbade3a,_0x18d84c=this['toComponentName'](_0x3065fc),_0x425591=this['toDisplayTitle'](_0x3065fc),{createdAt:_0x23dd0f,createdDate:_0x51c6bf,createdTime:_0x8732db}=this[_0x2040e3(0x1e3)](new Date());let _0x3d8a7b=_0x511490[_0x2040e3(0x1ec)](/\{CliVersion\}/g,CLI_VERSION)[_0x2040e3(0x1ec)](/\{ComponentName\}/g,_0x18d84c)[_0x2040e3(0x1ec)](/\{DisplayTitle\}/g,_0x425591)[_0x2040e3(0x1ec)](/\{PageName\}/g,_0x3065fc)[_0x2040e3(0x1ec)](/\{TemplateName\}/g,_0x2b5dd3)['replace'](/\{CreatedAt\}/g,_0x23dd0f)['replace'](/\{CreatedDate\}/g,_0x51c6bf)[_0x2040e3(0x1ec)](/\{CreatedTime\}/g,_0x8732db);return _0x3d8a7b;}static['replaceApiContent'](_0x50cfd7,_0x442221,_0x513ae9,_0x20a265,_0x904def,_0x3f12d5,_0x125143,_0x4f3b88){const _0x26d6e2=a218_0xbade3a,_0x1426d0=new Date(),_0xecc9e4=_0x1426d0['toISOString'](),_0x34f653=_0x513ae9[_0x26d6e2(0x1dc)](_0xb1800f=>{const _0x530c32=_0x26d6e2,_0xea4ffa=['datasetCode:\x20\x22'+_0xb1800f[_0x530c32(0x1e5)]+'\x22',_0x530c32(0x1fa)+_0xb1800f['tableName']+'\x22',_0x530c32(0x1cc)+_0xb1800f[_0x530c32(0x1ca)]+'\x22'];return _0xb1800f[_0x530c32(0x1c1)]&&_0xea4ffa[_0x530c32(0x1ef)](_0x530c32(0x1f0)+_0xb1800f['alias']+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0xea4ffa[_0x530c32(0x1c3)](',\x20')+_0x530c32(0x1d6);})['join'](''),_0x5a1966=_0x20a265||_0x513ae9[0x0]?.[_0x26d6e2(0x1c1)]||_0x26d6e2(0x1f3);let _0x312bc0=_0x50cfd7['replace'](/\{AppCode\}/g,_0x442221)[_0x26d6e2(0x1ec)](/\{ModelConfigs\}/g,_0x34f653)[_0x26d6e2(0x1ec)](/\{ExampleModelName\}/g,_0x5a1966)[_0x26d6e2(0x1ec)](/\{ApiFileName\}/g,_0x904def||_0x26d6e2(0x1b7))[_0x26d6e2(0x1ec)](/\{ConfigName\}/g,_0x3f12d5||_0x26d6e2(0x1db))[_0x26d6e2(0x1ec)](/\{ClientConfigParam\}/g,_0x125143||'')[_0x26d6e2(0x1ec)](/\{VarPrefix\}/g,_0x4f3b88||_0x26d6e2(0x1f9))[_0x26d6e2(0x1ec)](/\{CreatedAt\}/g,_0xecc9e4);return _0x312bc0;}static async[a218_0xbade3a(0x1e0)](_0x235831,_0x4ee97f,_0x36d5cb,_0x435c1f,_0x1742ac=!![]){const _0x2d30ad=a218_0xbade3a,_0x2be1d6=Date[_0x2d30ad(0x1e6)]();try{_0x1742ac&&logger[_0x2d30ad(0x1f5)](_0x2d30ad(0x1d7),_0x2d30ad(0x1bc),{'templatePath':_0x235831,'targetPath':_0x4ee97f,'pageName':_0x36d5cb,'templateName':_0x435c1f});await a218_0x2eef10[_0x2d30ad(0x1cd)][_0x2d30ad(0x1d0)](_0x4ee97f,{'recursive':!![]}),await this['processDirectory'](_0x235831,_0x4ee97f,_0x36d5cb,_0x435c1f);if(_0x1742ac){const _0x3ae45c=Date[_0x2d30ad(0x1e6)]()-_0x2be1d6;logger[_0x2d30ad(0x1d2)](_0x2d30ad(0x1d7),_0x2d30ad(0x1c4),_0x3ae45c,{'pageName':_0x36d5cb,'templateName':_0x435c1f});}}catch(_0x3ffa5e){if(_0x1742ac){const _0x4575df=Date[_0x2d30ad(0x1e6)]()-_0x2be1d6;logger[_0x2d30ad(0x1e8)](_0x2d30ad(0x1d7),_0x2d30ad(0x1ea),{'templatePath':_0x235831,'targetPath':_0x4ee97f,'pageName':_0x36d5cb,'templateName':_0x435c1f,'error':_0x3ffa5e instanceof Error?_0x3ffa5e[_0x2d30ad(0x1be)]:String(_0x3ffa5e),'duration':_0x4575df});}throw _0x3ffa5e;}}static async[a218_0xbade3a(0x1c0)](_0x424753,_0x53c3f8,_0x27ac67,_0x214460){const _0x1b0313=a218_0xbade3a,_0x2aba18=await a218_0x2eef10[_0x1b0313(0x1cd)][_0x1b0313(0x1ee)](_0x424753,{'withFileTypes':!![]});for(const _0x4cc532 of _0x2aba18){const _0x5dda43=a218_0x3309cc[_0x1b0313(0x1c3)](_0x424753,_0x4cc532[_0x1b0313(0x1ca)]);let _0x24b837=a218_0x3309cc[_0x1b0313(0x1c3)](_0x53c3f8,_0x4cc532['name']);_0x4cc532['name'][_0x1b0313(0x1bf)](_0x1b0313(0x1bb))&&(_0x24b837=a218_0x3309cc[_0x1b0313(0x1c3)](_0x53c3f8,_0x4cc532[_0x1b0313(0x1ca)]['replace'](/\.tpl$/,'')));if(_0x4cc532[_0x1b0313(0x1cf)]())await a218_0x2eef10[_0x1b0313(0x1cd)][_0x1b0313(0x1d0)](_0x24b837,{'recursive':!![]}),await this[_0x1b0313(0x1c0)](_0x5dda43,_0x24b837,_0x27ac67,_0x214460);else _0x4cc532[_0x1b0313(0x1da)]()&&await this['processFile'](_0x5dda43,_0x24b837,_0x27ac67,_0x214460);}}static async[a218_0xbade3a(0x1d5)](_0x3a93f0,_0x4e49f8,_0xe800c3,_0x53ad12){const _0x222aea=a218_0xbade3a,_0xa2718e=a218_0x3309cc[_0x222aea(0x1b2)](_0x3a93f0)[_0x222aea(0x1f8)]();_0x3a93f0[_0x222aea(0x1bf)](_0x222aea(0x1bb))&&(_0x4e49f8=_0x4e49f8[_0x222aea(0x1ec)](/\.tpl$/,''));const _0x11f18d=[_0x222aea(0x1b6),_0x222aea(0x1c8),'.jsx',_0x222aea(0x1e4),_0x222aea(0x1b3),_0x222aea(0x1f2),_0x222aea(0x1f6),'.scss','.tpl'];if(_0x11f18d[_0x222aea(0x1d3)](_0xa2718e)||_0x3a93f0[_0x222aea(0x1bf)](_0x222aea(0x1bb))){const _0x44d9e0=await a218_0x2eef10[_0x222aea(0x1cd)][_0x222aea(0x1b4)](_0x3a93f0,_0x222aea(0x1e7)),_0x503b59=this['replaceContent'](_0x44d9e0,_0xe800c3,_0x53ad12);await a218_0x2eef10[_0x222aea(0x1cd)][_0x222aea(0x1f7)](_0x4e49f8,_0x503b59,_0x222aea(0x1e7));}else await a218_0x2eef10[_0x222aea(0x1cd)][_0x222aea(0x1df)](_0x3a93f0,_0x4e49f8);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x151c63,_0x262323){const _0x2e8884=a219_0x481c,_0x1e4de7=_0x151c63();while(!![]){try{const _0x2855a6=parseInt(_0x2e8884(0x19f))/0x1+parseInt(_0x2e8884(0x187))/0x2*(parseInt(_0x2e8884(0x18d))/0x3)+parseInt(_0x2e8884(0x190))/0x4+-parseInt(_0x2e8884(0x194))/0x5+-parseInt(_0x2e8884(0x197))/0x6*(parseInt(_0x2e8884(0x183))/0x7)+parseInt(_0x2e8884(0x186))/0x8+-parseInt(_0x2e8884(0x199))/0x9;if(_0x2855a6===_0x262323)break;else _0x1e4de7['push'](_0x1e4de7['shift']());}catch(_0x2a9b1b){_0x1e4de7['push'](_0x1e4de7['shift']());}}}(a219_0x518b,0x2077c));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a219_0x1ddcec 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 _0x407eb3=a219_0x481c,_0x27432e=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x407eb3(0x184)]()[_0x407eb3(0x1a0)]();return _0x27432e==='1'||_0x27432e===_0x407eb3(0x198)||_0x27432e===_0x407eb3(0x19a);}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x493277=a219_0x481c;return join(cacheRoot(),_0x493277(0x18b),_0x493277(0x189));}async function readUpdateNoticeCache(){const _0x300bab=a219_0x481c;try{const _0x54968a=await readFile(getUpdateNoticeCachePath(),_0x300bab(0x192)),_0x53f2c3=JSON[_0x300bab(0x18c)](_0x54968a);if(!_0x53f2c3||typeof _0x53f2c3!=='object')return{};return _0x53f2c3;}catch{return{};}}async function writeUpdateNoticeCache(_0x5a8fe2){const _0x357e77=a219_0x481c;try{const _0x346d9c=getUpdateNoticeCachePath();await mkdir(dirname(_0x346d9c),{'recursive':!![]}),await writeFile(_0x346d9c,JSON[_0x357e77(0x193)](_0x5a8fe2,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x4a132c,_0x5c0d2a){const _0x3b7f5f=a219_0x481c;return typeof _0x4a132c[_0x3b7f5f(0x18e)]===_0x3b7f5f(0x195)&&_0x5c0d2a-_0x4a132c[_0x3b7f5f(0x18e)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x2eda7a,_0x485de7,_0x2702e1){const _0x545642=a219_0x481c;return _0x2eda7a[_0x545642(0x18a)]===_0x485de7&&typeof _0x2eda7a[_0x545642(0x18f)]==='number'&&_0x2702e1-_0x2eda7a[_0x545642(0x18f)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x55a348){const _0x5a2d78=a219_0x481c;return _0x5a2d78(0x188)+NPM_PACKAGE_NAME+_0x5a2d78(0x19c)+_0x55a348;}export async function resolveLatestUpdateNotice(){const _0x410ed7=a219_0x481c;if(isUpdateNoticeDisabled())return null;try{const _0x5d9797=Date[_0x410ed7(0x19b)](),_0x5d82fe=getCliVersion(),_0x1fd9b8=await readUpdateNoticeCache();let _0x4c6c7f=isFreshCheck(_0x1fd9b8,_0x5d9797)?_0x1fd9b8[_0x410ed7(0x182)]?.['trim']():undefined;if(!_0x4c6c7f&&!isFreshCheck(_0x1fd9b8,_0x5d9797)){const _0x48e0f1=await getCliVersionPolicy();_0x4c6c7f=_0x48e0f1?.[_0x410ed7(0x185)]?.[_0x410ed7(0x184)]()||undefined,await writeUpdateNoticeCache({..._0x1fd9b8,'checkedAt':_0x5d9797,'latest':_0x4c6c7f,'failed':!_0x4c6c7f});}if(!_0x4c6c7f||!a219_0x1ddcec[_0x410ed7(0x19d)](_0x5d82fe)||!a219_0x1ddcec[_0x410ed7(0x19d)](_0x4c6c7f))return null;if(a219_0x1ddcec[_0x410ed7(0x196)](_0x5d82fe,_0x4c6c7f))return null;if(isRecentlyNotified(_0x1fd9b8,_0x4c6c7f,_0x5d9797))return null;const _0x5cf1e9=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x1fd9b8,'checkedAt':isFreshCheck(_0x1fd9b8,_0x5d9797)?_0x1fd9b8[_0x410ed7(0x18e)]:_0x5d9797,'latest':_0x4c6c7f,'failed':![],'lastNotifiedVersion':_0x4c6c7f,'lastNotifiedAt':_0x5d9797}),{'command':_0x5cf1e9,'current':_0x5d82fe,'latest':_0x4c6c7f,'url':buildNpmVersionUrl(_0x4c6c7f),'message':CLI_BIN_NAME+'\x20'+_0x4c6c7f+_0x410ed7(0x191)+_0x5d82fe+_0x410ed7(0x19e)+_0x5cf1e9};}catch{return null;}}function a219_0x481c(_0x5d9341,_0x25dead){_0x5d9341=_0x5d9341-0x182;const _0x518b72=a219_0x518b();let _0x481cc5=_0x518b72[_0x5d9341];return _0x481cc5;}function a219_0x518b(){const _0x1946c7=['https://www.npmjs.com/package/','update-check.json','lastNotifiedVersion','rabetbase-cli','parse','13476XeDhzJ','checkedAt','lastNotifiedAt','432504ppSCdr','\x20available,\x20current\x20','utf8','stringify','1186075hrvhXe','number','gte','99054VLqkWY','true','176292Mulzto','yes','now','/v/','valid',',\x20run:\x20','178110VEMqWZ','toLowerCase','latest','28myMIDT','trim','stableVersion','530200bEhdAj','46mbgDdP'];a219_0x518b=function(){return _0x1946c7;};return a219_0x518b();}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x105039,_0x478df6){var _0x345b20=a220_0xeb4c,_0x5690ab=_0x105039();while(!![]){try{var _0xf48a58=parseInt(_0x345b20(0x194))/0x1+parseInt(_0x345b20(0x18b))/0x2*(-parseInt(_0x345b20(0x195))/0x3)+-parseInt(_0x345b20(0x18c))/0x4+parseInt(_0x345b20(0x193))/0x5+parseInt(_0x345b20(0x190))/0x6*(-parseInt(_0x345b20(0x18d))/0x7)+-parseInt(_0x345b20(0x192))/0x8*(parseInt(_0x345b20(0x18e))/0x9)+parseInt(_0x345b20(0x191))/0xa*(parseInt(_0x345b20(0x18f))/0xb);if(_0xf48a58===_0x478df6)break;else _0x5690ab['push'](_0x5690ab['shift']());}catch(_0x24ceb9){_0x5690ab['push'](_0x5690ab['shift']());}}}(a220_0x5dfe,0x56c5b));function a220_0xeb4c(_0x292eb1,_0x4788cb){_0x292eb1=_0x292eb1-0x18b;var _0x5dfea6=a220_0x5dfe();var _0xeb4c66=_0x5dfea6[_0x292eb1];return _0xeb4c66;}function a220_0x5dfe(){var _0x9a1d1a=['286435tbpPFb','275982JuHYaQ','48sHqabk','72802kDBNmi','1655872WjHsYO','278159qylIHl','45KHWEEJ','18796514wYAlLN','30CzcAem','10faSMXX','786488cHGJPD'];a220_0x5dfe=function(){return _0x9a1d1a;};return a220_0x5dfe();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a221_0x2b14(){var _0x14350d=['144SKbeCa','1210429sUZNAc','2241676MuIxwZ','1503JFcUZP','35YnlcZs','1010826nnnLwM','3UqBhVi','2002240MWXxXB','1201221vVLWfU','2WzkTtE','160338nxwjGC','29790xPsvnz'];a221_0x2b14=function(){return _0x14350d;};return a221_0x2b14();}function a221_0x349c(_0x2e03f4,_0x3b0487){_0x2e03f4=_0x2e03f4-0x1a9;var _0x2b14ad=a221_0x2b14();var _0x349cb0=_0x2b14ad[_0x2e03f4];return _0x349cb0;}(function(_0x49848f,_0x383746){var _0x3a1528=a221_0x349c,_0x23f22f=_0x49848f();while(!![]){try{var _0x19c3a1=parseInt(_0x3a1528(0x1b3))/0x1*(-parseInt(_0x3a1528(0x1b4))/0x2)+-parseInt(_0x3a1528(0x1b0))/0x3*(-parseInt(_0x3a1528(0x1ac))/0x4)+-parseInt(_0x3a1528(0x1ae))/0x5*(-parseInt(_0x3a1528(0x1af))/0x6)+-parseInt(_0x3a1528(0x1b2))/0x7+parseInt(_0x3a1528(0x1b1))/0x8+parseInt(_0x3a1528(0x1ad))/0x9*(parseInt(_0x3a1528(0x1a9))/0xa)+-parseInt(_0x3a1528(0x1ab))/0xb*(parseInt(_0x3a1528(0x1aa))/0xc);if(_0x19c3a1===_0x383746)break;else _0x23f22f['push'](_0x23f22f['shift']());}catch(_0x48cebc){_0x23f22f['push'](_0x23f22f['shift']());}}}(a221_0x2b14,0xcbe08));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x788c8a,_0x32e459){setActiveCookie(_0x788c8a);try{return await _0x32e459();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x56a926,_0x36791b){var _0x3bb872=a222_0x8af1,_0x22300c=_0x56a926();while(!![]){try{var _0x500699=-parseInt(_0x3bb872(0xf2))/0x1+-parseInt(_0x3bb872(0xf4))/0x2*(parseInt(_0x3bb872(0xef))/0x3)+parseInt(_0x3bb872(0xf8))/0x4*(-parseInt(_0x3bb872(0xf1))/0x5)+parseInt(_0x3bb872(0xf7))/0x6*(parseInt(_0x3bb872(0xfc))/0x7)+parseInt(_0x3bb872(0xf9))/0x8*(parseInt(_0x3bb872(0xf6))/0x9)+parseInt(_0x3bb872(0xfa))/0xa+parseInt(_0x3bb872(0xf5))/0xb*(parseInt(_0x3bb872(0xfb))/0xc);if(_0x500699===_0x36791b)break;else _0x22300c['push'](_0x22300c['shift']());}catch(_0x33ae8f){_0x22300c['push'](_0x22300c['shift']());}}}(a222_0x226d,0x59b85));function a222_0x8af1(_0x4d3920,_0x4d1996){_0x4d3920=_0x4d3920-0xef;var _0x226da5=a222_0x226d();var _0x8af12=_0x226da5[_0x4d3920];return _0x8af12;}function a222_0x226d(){var _0x8adcdc=['stderr','260UzsQqA','451791HbZsDl','write','597032xtgpZH','44gCqXhr','18PALpAj','42oknLNN','25164exLpFP','2692472ihLaYg','4975080kBhIeG','762252sZYtmD','318738dtcwek','6KxSChs'];a222_0x226d=function(){return _0x8adcdc;};return a222_0x226d();}export function writeCliSideChannelLine(_0x507ea3){var _0x2f61c4=a222_0x8af1;process[_0x2f61c4(0xf0)][_0x2f61c4(0xf3)](_0x507ea3+'\x0a');}
|