@lovrabet/rabetbase-cli 2.3.3-beta.2 → 2.3.3-beta.4
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
|
-
const
|
|
1
|
+
const a213_0x7ff533=a213_0x3971;(function(_0x31dc5e,_0x365eef){const _0x25640d=a213_0x3971,_0x4902ef=_0x31dc5e();while(!![]){try{const _0x519840=-parseInt(_0x25640d(0x182))/0x1*(-parseInt(_0x25640d(0x190))/0x2)+parseInt(_0x25640d(0x198))/0x3*(-parseInt(_0x25640d(0x1a1))/0x4)+parseInt(_0x25640d(0x189))/0x5+parseInt(_0x25640d(0x199))/0x6*(-parseInt(_0x25640d(0x194))/0x7)+parseInt(_0x25640d(0x19c))/0x8+parseInt(_0x25640d(0x197))/0x9*(-parseInt(_0x25640d(0x1a9))/0xa)+-parseInt(_0x25640d(0x1a8))/0xb;if(_0x519840===_0x365eef)break;else _0x4902ef['push'](_0x4902ef['shift']());}catch(_0x5c85ca){_0x4902ef['push'](_0x4902ef['shift']());}}}(a213_0x128e,0x3f2d4));function a213_0x3971(_0x555a4e,_0x57e23a){_0x555a4e=_0x555a4e-0x17b;const _0x128e22=a213_0x128e();let _0x3971b9=_0x128e22[_0x555a4e];return _0x3971b9;}function a213_0x128e(){const _0x51450b=['trim','printf','完成:\x20','map','log','errors','join','toISOString','File','addColors','duration','Failed\x20to\x20read\x20logs:','success','9251wwFShx','stringify','winstonLogger','level','existsSync','details','clear','2157895XyGHNi','logFilePath','readLogs','currentRawCommand','timestamp','.lovrabet.log','mkdirSync','6gcPfqY','command','split','unknown','7NbvMLg','Failed\x20to\x20clear\x20logs:','info','665262SssPIL','50478pPSbLb','200142QyeXkm','message','format','2348072jekNPM','dirname','transports','开始执行:\x20','utf8','8hrbRLM','失败:\x20','parse','getWinstonInstance','writeFileSync','yellow','error','3884562hAtPaz','10SjGyfO','filter','logTask','warn','now'];a213_0x128e=function(){return _0x51450b;};return a213_0x128e();}import a213_0x17b355 from'winston';import a213_0x36840b from'node:fs';import a213_0x15e462 from'node:path';class Logger{[a213_0x7ff533(0x184)];[a213_0x7ff533(0x18a)];[a213_0x7ff533(0x18c)]='';constructor(){const _0x7965e8=a213_0x7ff533;this[_0x7965e8(0x18a)]='';}['setRawCommand'](_0x184ce1){const _0x261418=a213_0x7ff533;this[_0x261418(0x18c)]=_0x184ce1;}['initWinstonLogger'](){const _0x263a97=a213_0x7ff533,_0x2a975d=a213_0x15e462[_0x263a97(0x19d)](this[_0x263a97(0x18a)]);!a213_0x36840b[_0x263a97(0x186)](_0x2a975d)&&a213_0x36840b[_0x263a97(0x18f)](_0x2a975d,{'recursive':!![]});const _0x5aa816=a213_0x17b355['format']['combine'](a213_0x17b355[_0x263a97(0x19b)][_0x263a97(0x18d)](),a213_0x17b355['format'][_0x263a97(0x1b3)]({'stack':!![]}),a213_0x17b355['format'][_0x263a97(0x1af)](_0x1b95b8=>{const _0x5537b4=_0x263a97,_0x584744={'timestamp':_0x1b95b8[_0x5537b4(0x18d)]||new Date()[_0x5537b4(0x17c)](),'level':_0x1b95b8[_0x5537b4(0x185)]||_0x5537b4(0x196),'command':_0x1b95b8[_0x5537b4(0x191)]||_0x5537b4(0x193),'rawCommand':_0x1b95b8['rawCommand']||this[_0x5537b4(0x18c)]||undefined,'message':_0x1b95b8[_0x5537b4(0x19a)]||'','duration':_0x1b95b8[_0x5537b4(0x17f)]||undefined,'details':_0x1b95b8[_0x5537b4(0x187)]||undefined};return JSON[_0x5537b4(0x183)](_0x584744);}));this[_0x263a97(0x184)]=a213_0x17b355['createLogger']({'level':_0x263a97(0x196),'format':_0x5aa816,'transports':[new a213_0x17b355[(_0x263a97(0x19e))][(_0x263a97(0x17d))]({'filename':this[_0x263a97(0x18a)],'level':_0x263a97(0x196)})],'silent':![]}),a213_0x17b355[_0x263a97(0x17e)]({'success':'green','error':'red','warn':_0x263a97(0x1a6),'info':'blue'});}['setLogPath'](_0x44d421){const _0x38c0bd=a213_0x7ff533;this[_0x38c0bd(0x18a)]=a213_0x15e462[_0x38c0bd(0x17b)](_0x44d421,_0x38c0bd(0x18e)),this[_0x38c0bd(0x184)]&&this[_0x38c0bd(0x184)][_0x38c0bd(0x188)](),this['initWinstonLogger']();}[a213_0x7ff533(0x196)](_0x8621dc,_0x4dadab,_0x2a6eb6){const _0x2f039f=a213_0x7ff533;if(!this['logFilePath']||!this[_0x2f039f(0x184)])return;this['winstonLogger'][_0x2f039f(0x196)](_0x4dadab,{'command':_0x8621dc,'details':_0x2a6eb6});}[a213_0x7ff533(0x181)](_0x34c318,_0x4835d2,_0x199055,_0x170f58){const _0x540128=a213_0x7ff533;if(!this[_0x540128(0x18a)]||!this[_0x540128(0x184)])return;this[_0x540128(0x184)][_0x540128(0x1b2)](_0x540128(0x196),_0x4835d2,{'level':'success','command':_0x34c318,'duration':_0x199055,'details':_0x170f58});}['error'](_0x218aba,_0x505628,_0x53e9eb){const _0x2cd0fb=a213_0x7ff533;if(!this[_0x2cd0fb(0x18a)]||!this[_0x2cd0fb(0x184)])return;this[_0x2cd0fb(0x184)]['error'](_0x505628,{'command':_0x218aba,'details':_0x53e9eb});}[a213_0x7ff533(0x1ac)](_0x2c82ce,_0x25a095,_0x4dab04){const _0x1aeb47=a213_0x7ff533;if(!this['logFilePath']||!this[_0x1aeb47(0x184)])return;this[_0x1aeb47(0x184)]['warn'](_0x25a095,{'command':_0x2c82ce,'details':_0x4dab04});}async[a213_0x7ff533(0x1ab)](_0x3fce4e,_0x514836,_0xc3f04f){const _0x4ddc8c=a213_0x7ff533,_0xab2378=Date[_0x4ddc8c(0x1ad)]();this[_0x4ddc8c(0x196)](_0x3fce4e,_0x4ddc8c(0x19f)+_0x514836);try{const _0x8ff391=await _0xc3f04f(),_0x22eeee=Date['now']()-_0xab2378;return this[_0x4ddc8c(0x181)](_0x3fce4e,_0x4ddc8c(0x1b0)+_0x514836,_0x22eeee),_0x8ff391;}catch(_0xd6178){const _0x1496e8=Date[_0x4ddc8c(0x1ad)]()-_0xab2378;this[_0x4ddc8c(0x1a7)](_0x3fce4e,_0x4ddc8c(0x1a2)+_0x514836,{'error':_0xd6178 instanceof Error?_0xd6178[_0x4ddc8c(0x19a)]:String(_0xd6178),'duration':_0x1496e8});throw _0xd6178;}}[a213_0x7ff533(0x18b)](){const _0x374074=a213_0x7ff533;try{if(!a213_0x36840b[_0x374074(0x186)](this[_0x374074(0x18a)]))return[];const _0x357c6b=a213_0x36840b['readFileSync'](this[_0x374074(0x18a)],_0x374074(0x1a0));return _0x357c6b[_0x374074(0x192)]('\x0a')[_0x374074(0x1aa)](_0x5b85cd=>_0x5b85cd[_0x374074(0x1ae)]())[_0x374074(0x1b1)](_0x308422=>JSON[_0x374074(0x1a3)](_0x308422));}catch(_0x5def90){return console[_0x374074(0x1ac)](_0x374074(0x180),_0x5def90),[];}}['clearLogs'](){const _0x1d4b94=a213_0x7ff533;try{a213_0x36840b['existsSync'](this[_0x1d4b94(0x18a)])&&a213_0x36840b[_0x1d4b94(0x1a5)](this['logFilePath'],'',_0x1d4b94(0x1a0));}catch(_0x1b4e39){console[_0x1d4b94(0x1ac)](_0x1d4b94(0x195),_0x1b4e39);}}[a213_0x7ff533(0x1a4)](){return this['winstonLogger'];}}export const logger=new Logger();
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a214_0x472d(){const _0x18a2ba=['30zWkLcM','isArray','2870890mUyEOm','8aQEvoQ','898662poPXnl','6450150QfSfwA','1065923rPQMXd','object','447rFjjFu','19595EONMya','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','583227UcHvBV','12976vzagxV','920sEhFkC','validation','parse'];a214_0x472d=function(){return _0x18a2ba;};return a214_0x472d();}(function(_0x2012db,_0x5920b6){const _0x4d5767=a214_0x3b28,_0x5a6ced=_0x2012db();while(!![]){try{const _0x1b55c4=-parseInt(_0x4d5767(0xa4))/0x1+-parseInt(_0x4d5767(0x9a))/0x2*(-parseInt(_0x4d5767(0x96))/0x3)+parseInt(_0x4d5767(0x9b))/0x4*(-parseInt(_0x4d5767(0x97))/0x5)+-parseInt(_0x4d5767(0xa2))/0x6+parseInt(_0x4d5767(0xa3))/0x7+parseInt(_0x4d5767(0xa1))/0x8*(parseInt(_0x4d5767(0x99))/0x9)+-parseInt(_0x4d5767(0x9e))/0xa*(-parseInt(_0x4d5767(0xa0))/0xb);if(_0x1b55c4===_0x5920b6)break;else _0x5a6ced['push'](_0x5a6ced['shift']());}catch(_0x56b33e){_0x5a6ced['push'](_0x5a6ced['shift']());}}}(a214_0x472d,0x97171));import{CliErrors}from'../errors.js';function a214_0x3b28(_0x249922,_0x544000){_0x249922=_0x249922-0x95;const _0x472dcc=a214_0x472d();let _0x3b281a=_0x472dcc[_0x249922];return _0x3b281a;}export function parseJsonParams(_0x5c43b9){const _0x3509f4=a214_0x3b28;if(!_0x5c43b9)return undefined;let _0x5efcaf;try{_0x5efcaf=JSON[_0x3509f4(0x9d)](_0x5c43b9);}catch{throw CliErrors[_0x3509f4(0x9c)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x5c43b9);}if(!_0x5efcaf||typeof _0x5efcaf!==_0x3509f4(0x95)||Array[_0x3509f4(0x9f)](_0x5efcaf))throw CliErrors[_0x3509f4(0x9c)]('--params\x20must\x20be\x20a\x20JSON\x20object',_0x3509f4(0x98));return _0x5efcaf;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a215_0x1d8c(_0x599179,_0x29c622){_0x599179=_0x599179-0x12e;const _0x4ebe84=a215_0x4ebe();let _0x1d8c3f=_0x4ebe84[_0x599179];return _0x1d8c3f;}(function(_0x559f2a,_0x27d4cb){const _0x3c1b6b=a215_0x1d8c,_0x5d6278=_0x559f2a();while(!![]){try{const _0x1fbb6c=-parseInt(_0x3c1b6b(0x12e))/0x1+parseInt(_0x3c1b6b(0x12f))/0x2+-parseInt(_0x3c1b6b(0x136))/0x3+parseInt(_0x3c1b6b(0x137))/0x4+parseInt(_0x3c1b6b(0x133))/0x5*(-parseInt(_0x3c1b6b(0x131))/0x6)+parseInt(_0x3c1b6b(0x135))/0x7*(parseInt(_0x3c1b6b(0x132))/0x8)+parseInt(_0x3c1b6b(0x134))/0x9;if(_0x1fbb6c===_0x27d4cb)break;else _0x5d6278['push'](_0x5d6278['shift']());}catch(_0xdd79d0){_0x5d6278['push'](_0x5d6278['shift']());}}}(a215_0x4ebe,0x86e62));export const isWindows=process['platform']==='win32';function a215_0x4ebe(){const _0x11d055=['.cmd','6UwASrz','221048jMmKxl','57585aBqJYd','15294078IHDQiw','7PCPwIH','1699749BDTTWK','160896mrVcVm','897379xLtmBa','521656VkZFXx'];a215_0x4ebe=function(){return _0x11d055;};return a215_0x4ebe();}export function resolveNpmBin(_0x43f742){const _0x516843=a215_0x1d8c;return isWindows?_0x43f742+_0x516843(0x130):_0x43f742;}
|
package/lib/utils/rules-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a216_0x4d344b=a216_0x516b;function a216_0x42c8(){const _0x9113e0=['.cursor/rules','7122630sXJOhe','9950OsalDg','utf-8','agents.md','本地模板文件不存在:\x20','string','lastUpdated','status','2272089dctiqS','4VmPNHl','45wfHSTx','../../templates/rules/lovrabet_rules.mdc.tpl','1229627nfXsKz','815322uhaRoB','60326NKSReR','statusText','catch','1350IRxObW','CDN\x20请求失败:\x20','content','194776UqAuvm','/rules/rules.json'];a216_0x42c8=function(){return _0x9113e0;};return a216_0x42c8();}(function(_0x2efe5a,_0x2d52e2){const _0x5b3fd2=a216_0x516b,_0x1241ae=_0x2efe5a();while(!![]){try{const _0x5df878=-parseInt(_0x5b3fd2(0xcd))/0x1+-parseInt(_0x5b3fd2(0xce))/0x2+-parseInt(_0x5b3fd2(0xc8))/0x3*(-parseInt(_0x5b3fd2(0xc9))/0x4)+parseInt(_0x5b3fd2(0xc1))/0x5*(-parseInt(_0x5b3fd2(0xba))/0x6)+parseInt(_0x5b3fd2(0xcc))/0x7+parseInt(_0x5b3fd2(0xbd))/0x8*(parseInt(_0x5b3fd2(0xca))/0x9)+parseInt(_0x5b3fd2(0xc0))/0xa;if(_0x5df878===_0x2d52e2)break;else _0x1241ae['push'](_0x1241ae['shift']());}catch(_0x189103){_0x1241ae['push'](_0x1241ae['shift']());}}}(a216_0x42c8,0x73abb));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';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 _0x40c6ca=a216_0x516b,_0xc4de2d=getTemplateBaseUrl();return _0xc4de2d+_0x40c6ca(0xbe);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a216_0x4d344b(0xcb));function a216_0x516b(_0x5c7e44,_0x4da36f){_0x5c7e44=_0x5c7e44-0xb8;const _0x42c8d4=a216_0x42c8();let _0x516b81=_0x42c8d4[_0x5c7e44];return _0x516b81;}export async function fetchRulesFromCDN(){const _0x1ef7e4=a216_0x4d344b,_0x32aa32=getRulesCdnUrl(),_0x212ea6=await fetch(_0x32aa32,{'headers':{'Accept':'application/json'}});if(!_0x212ea6['ok'])throw new Error(_0x1ef7e4(0xbb)+_0x212ea6[_0x1ef7e4(0xc7)]+'\x20'+_0x212ea6[_0x1ef7e4(0xb8)]);const _0x3f34be=await _0x212ea6['json']();if(!_0x3f34be[_0x1ef7e4(0xbc)]||typeof _0x3f34be[_0x1ef7e4(0xbc)]!==_0x1ef7e4(0xc5))throw new Error('CDN\x20返回数据格式错误');return _0x3f34be;}export async function getRulesContent(){try{const _0x4503ad=await fetchRulesFromCDN();return _0x4503ad['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x4bf5d7=a216_0x4d344b;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x4bf5d7(0xc2));throw new Error(_0x4bf5d7(0xc4)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x15092a){const _0x554fc6=a216_0x4d344b,_0x391fb3=await fetchRulesFromCDN()[_0x554fc6(0xb9)](()=>null);let _0x4ab63a;_0x391fb3?(_0x4ab63a=_0x391fb3[_0x554fc6(0xbc)],_0x391fb3[_0x554fc6(0xc6)]&&(_0x4ab63a=appendUpdateTime(_0x4ab63a,_0x391fb3[_0x554fc6(0xc6)]))):_0x4ab63a=readLocalTemplate();const _0x501112=dirname(_0x15092a);!existsSync(_0x501112)&&mkdirSync(_0x501112,{'recursive':!![]}),writeFileSync(_0x15092a,_0x4ab63a,_0x554fc6(0xc2));}export async function copyRulesToCursor(_0x21cb00){const _0x503cb5=a216_0x4d344b,_0x34e7cc=join(_0x21cb00,_0x503cb5(0xbf)),_0x4f771a=join(_0x34e7cc,'lovrabet_rules.mdc');if(existsSync(_0x4f771a))return![];return await writeRulesFile(_0x4f771a),!![];}export async function copyRulesToAgentsMd(_0x5d922c){const _0x476d12=a216_0x4d344b,_0x3e4805=join(_0x5d922c,_0x476d12(0xc3));if(existsSync(_0x3e4805))return![];return await writeRulesFile(_0x3e4805),!![];}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x2c0511){return new Promise(_0x576202=>setTimeout(_0x576202,_0x2c0511));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a218_0x160c74=a218_0x171a;(function(_0x5f383e,_0x21ac7c){const _0x4d56dc=a218_0x171a,_0x4b169f=_0x5f383e();while(!![]){try{const _0x5997c9=-parseInt(_0x4d56dc(0x7c))/0x1*(-parseInt(_0x4d56dc(0xbc))/0x2)+parseInt(_0x4d56dc(0x87))/0x3*(-parseInt(_0x4d56dc(0x81))/0x4)+-parseInt(_0x4d56dc(0xb2))/0x5+parseInt(_0x4d56dc(0x88))/0x6*(-parseInt(_0x4d56dc(0x8d))/0x7)+-parseInt(_0x4d56dc(0xaa))/0x8+-parseInt(_0x4d56dc(0x7d))/0x9+parseInt(_0x4d56dc(0x89))/0xa;if(_0x5997c9===_0x21ac7c)break;else _0x4b169f['push'](_0x4b169f['shift']());}catch(_0x428082){_0x4b169f['push'](_0x4b169f['shift']());}}}(a218_0x2d56,0x35490));function a218_0x2d56(){const _0xafa44d=['utf8','endsWith','toUpperCase','template','charAt','199504cArvLc','error','alias','getFullYear','模板内容替换失败','map','replaceApiContent','.js','880755sfyNJX','getMonth','split','replaceContent','.jsx','toISOString','LOVRABET','join','pop','.tsx','62zhgsmj','api','readdir','.json','getDate','mkdir','name','6346zyZyFr','1773315cEEueS','datasetCode','toComponentName','toLowerCase','351692elZXVw','alias:\x20\x22','replace','.css','copyFile','getHours','6RAJUjS','366114HflhYP','7785570bpCFri','pad','开始处理模板内容替换','message','21IYuxQX','writeFile','processDirectory','.md','readFile','push','YourModel','getSeconds','success','name:\x20\x22','info','.ts','tableName:\x20\x22','now','slice','toDisplayTitle','default','promises','datasetCode:\x20\x22','.tpl','extname','\x0a\x20\x20\x20\x20{\x20','formatLocalTimestamp','.scss'];a218_0x2d56=function(){return _0xafa44d;};return a218_0x2d56();}import a218_0x2c4b72 from'node:fs';import a218_0x2a711e from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a218_0x171a(_0x36681a,_0x27e6b3){_0x36681a=_0x36681a-0x76;const _0x2d568e=a218_0x2d56();let _0x171ab5=_0x2d568e[_0x36681a];return _0x171ab5;}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a218_0x160c74(0x8a)](_0x49a429){return String(_0x49a429)['padStart'](0x2,'0');}static[a218_0x160c74(0xa3)](_0x139484){const _0x57496c=a218_0x160c74,_0x1f2986=_0x139484[_0x57496c(0xad)](),_0x2ebaf7=this[_0x57496c(0x8a)](_0x139484[_0x57496c(0xb3)]()+0x1),_0x33f5d1=this[_0x57496c(0x8a)](_0x139484[_0x57496c(0x79)]()),_0x2d66e3=this['pad'](_0x139484[_0x57496c(0x86)]()),_0x36c858=this['pad'](_0x139484['getMinutes']()),_0x31f356=this['pad'](_0x139484[_0x57496c(0x94)]());return{'createdAt':_0x1f2986+'-'+_0x2ebaf7+'-'+_0x33f5d1+'\x20'+_0x2d66e3+':'+_0x36c858+':'+_0x31f356,'createdDate':_0x1f2986+'-'+_0x2ebaf7+'-'+_0x33f5d1,'createdTime':_0x2d66e3+':'+_0x36c858+':'+_0x31f356};}static[a218_0x160c74(0x7f)](_0x5ecae6){const _0x39d3e8=a218_0x160c74,_0x31153f=_0x5ecae6[_0x39d3e8(0xb4)]('/')[_0x39d3e8(0xba)]()||_0x5ecae6;return _0x31153f[_0x39d3e8(0xb4)]('-')[_0x39d3e8(0xaf)](_0x5f547d=>_0x5f547d['charAt'](0x0)[_0x39d3e8(0xa7)]()+_0x5f547d[_0x39d3e8(0x9b)](0x1)[_0x39d3e8(0x80)]())[_0x39d3e8(0xb9)]('');}static['toDisplayTitle'](_0x53f872){const _0x119bac=a218_0x160c74,_0x317d71=_0x53f872[_0x119bac(0xb4)]('/')[_0x119bac(0xba)]()||_0x53f872;return _0x317d71['split']('-')['map'](_0x3f8976=>_0x3f8976[_0x119bac(0xa9)](0x0)['toUpperCase']()+_0x3f8976[_0x119bac(0x9b)](0x1)['toLowerCase']())[_0x119bac(0xb9)]('\x20');}static[a218_0x160c74(0xb5)](_0x40dc47,_0xf3cacf,_0x5404b6){const _0x30cdde=a218_0x160c74,_0x1bb897=this[_0x30cdde(0x7f)](_0xf3cacf),_0x34fb51=this[_0x30cdde(0x9c)](_0xf3cacf),{createdAt:_0x2be472,createdDate:_0x408d59,createdTime:_0x43d097}=this['formatLocalTimestamp'](new Date());let _0x1a1662=_0x40dc47[_0x30cdde(0x83)](/\{CliVersion\}/g,CLI_VERSION)[_0x30cdde(0x83)](/\{ComponentName\}/g,_0x1bb897)[_0x30cdde(0x83)](/\{DisplayTitle\}/g,_0x34fb51)[_0x30cdde(0x83)](/\{PageName\}/g,_0xf3cacf)[_0x30cdde(0x83)](/\{TemplateName\}/g,_0x5404b6)['replace'](/\{CreatedAt\}/g,_0x2be472)[_0x30cdde(0x83)](/\{CreatedDate\}/g,_0x408d59)['replace'](/\{CreatedTime\}/g,_0x43d097);return _0x1a1662;}static[a218_0x160c74(0xb0)](_0x353f8d,_0x17cbfc,_0x5c92d4,_0x2df6ae,_0x408156,_0x58e0a0,_0x16931e,_0x3cb87e){const _0x1a20e9=a218_0x160c74,_0x66cdf0=new Date(),_0x303c48=_0x66cdf0[_0x1a20e9(0xb7)](),_0x1f0841=_0x5c92d4['map'](_0x549384=>{const _0xb3f8ee=_0x1a20e9,_0x30e760=[_0xb3f8ee(0x9f)+_0x549384[_0xb3f8ee(0x7e)]+'\x22',_0xb3f8ee(0x99)+_0x549384['tableName']+'\x22',_0xb3f8ee(0x96)+_0x549384[_0xb3f8ee(0x7b)]+'\x22'];return _0x549384['alias']&&_0x30e760[_0xb3f8ee(0x92)](_0xb3f8ee(0x82)+_0x549384[_0xb3f8ee(0xac)]+'\x22'),_0xb3f8ee(0xa2)+_0x30e760[_0xb3f8ee(0xb9)](',\x20')+'\x20},';})[_0x1a20e9(0xb9)](''),_0x28932a=_0x2df6ae||_0x5c92d4[0x0]?.[_0x1a20e9(0xac)]||_0x1a20e9(0x93);let _0x15ee9d=_0x353f8d['replace'](/\{AppCode\}/g,_0x17cbfc)[_0x1a20e9(0x83)](/\{ModelConfigs\}/g,_0x1f0841)[_0x1a20e9(0x83)](/\{ExampleModelName\}/g,_0x28932a)['replace'](/\{ApiFileName\}/g,_0x408156||_0x1a20e9(0x76))[_0x1a20e9(0x83)](/\{ConfigName\}/g,_0x58e0a0||_0x1a20e9(0x9d))[_0x1a20e9(0x83)](/\{ClientConfigParam\}/g,_0x16931e||'')[_0x1a20e9(0x83)](/\{VarPrefix\}/g,_0x3cb87e||_0x1a20e9(0xb8))[_0x1a20e9(0x83)](/\{CreatedAt\}/g,_0x303c48);return _0x15ee9d;}static async['processTemplate'](_0x27b746,_0x49ad07,_0x476155,_0x937ac8,_0x2ec040=!![]){const _0x3f655b=a218_0x160c74,_0x2eef69=Date[_0x3f655b(0x9a)]();try{_0x2ec040&&logger[_0x3f655b(0x97)](_0x3f655b(0xa8),_0x3f655b(0x8b),{'templatePath':_0x27b746,'targetPath':_0x49ad07,'pageName':_0x476155,'templateName':_0x937ac8});await a218_0x2c4b72[_0x3f655b(0x9e)][_0x3f655b(0x7a)](_0x49ad07,{'recursive':!![]}),await this[_0x3f655b(0x8f)](_0x27b746,_0x49ad07,_0x476155,_0x937ac8);if(_0x2ec040){const _0x54c6fd=Date[_0x3f655b(0x9a)]()-_0x2eef69;logger[_0x3f655b(0x95)](_0x3f655b(0xa8),'模板内容替换完成',_0x54c6fd,{'pageName':_0x476155,'templateName':_0x937ac8});}}catch(_0x45d896){if(_0x2ec040){const _0x186c4a=Date[_0x3f655b(0x9a)]()-_0x2eef69;logger[_0x3f655b(0xab)](_0x3f655b(0xa8),_0x3f655b(0xae),{'templatePath':_0x27b746,'targetPath':_0x49ad07,'pageName':_0x476155,'templateName':_0x937ac8,'error':_0x45d896 instanceof Error?_0x45d896[_0x3f655b(0x8c)]:String(_0x45d896),'duration':_0x186c4a});}throw _0x45d896;}}static async[a218_0x160c74(0x8f)](_0x7620cf,_0x2638d6,_0x1aecde,_0x40067d){const _0x4e7395=a218_0x160c74,_0x1d2111=await a218_0x2c4b72[_0x4e7395(0x9e)][_0x4e7395(0x77)](_0x7620cf,{'withFileTypes':!![]});for(const _0x1b5389 of _0x1d2111){const _0x5e254c=a218_0x2a711e[_0x4e7395(0xb9)](_0x7620cf,_0x1b5389['name']);let _0xbdc048=a218_0x2a711e[_0x4e7395(0xb9)](_0x2638d6,_0x1b5389['name']);_0x1b5389[_0x4e7395(0x7b)][_0x4e7395(0xa6)]('.tpl')&&(_0xbdc048=a218_0x2a711e[_0x4e7395(0xb9)](_0x2638d6,_0x1b5389['name']['replace'](/\.tpl$/,'')));if(_0x1b5389['isDirectory']())await a218_0x2c4b72[_0x4e7395(0x9e)]['mkdir'](_0xbdc048,{'recursive':!![]}),await this['processDirectory'](_0x5e254c,_0xbdc048,_0x1aecde,_0x40067d);else _0x1b5389['isFile']()&&await this['processFile'](_0x5e254c,_0xbdc048,_0x1aecde,_0x40067d);}}static async['processFile'](_0x4e147b,_0x254eca,_0x192749,_0x53460b){const _0x1ffd86=a218_0x160c74,_0x89b0f0=a218_0x2a711e[_0x1ffd86(0xa1)](_0x4e147b)[_0x1ffd86(0x80)]();_0x4e147b['endsWith'](_0x1ffd86(0xa0))&&(_0x254eca=_0x254eca['replace'](/\.tpl$/,''));const _0x385d35=[_0x1ffd86(0xbb),_0x1ffd86(0x98),_0x1ffd86(0xb6),_0x1ffd86(0xb1),_0x1ffd86(0x78),_0x1ffd86(0x90),_0x1ffd86(0x84),_0x1ffd86(0xa4),_0x1ffd86(0xa0)];if(_0x385d35['includes'](_0x89b0f0)||_0x4e147b[_0x1ffd86(0xa6)](_0x1ffd86(0xa0))){const _0x295774=await a218_0x2c4b72[_0x1ffd86(0x9e)][_0x1ffd86(0x91)](_0x4e147b,_0x1ffd86(0xa5)),_0x469aba=this['replaceContent'](_0x295774,_0x192749,_0x53460b);await a218_0x2c4b72['promises'][_0x1ffd86(0x8e)](_0x254eca,_0x469aba,_0x1ffd86(0xa5));}else await a218_0x2c4b72[_0x1ffd86(0x9e)][_0x1ffd86(0x85)](_0x4e147b,_0x254eca);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x443390,_0x497ed8){const _0x6c8171=a219_0xd0c7,_0xda8933=_0x443390();while(!![]){try{const _0x594c2f=parseInt(_0x6c8171(0xe7))/0x1*(-parseInt(_0x6c8171(0xce))/0x2)+parseInt(_0x6c8171(0xd2))/0x3+-parseInt(_0x6c8171(0xd1))/0x4*(parseInt(_0x6c8171(0xe3))/0x5)+-parseInt(_0x6c8171(0xdf))/0x6+-parseInt(_0x6c8171(0xdd))/0x7+parseInt(_0x6c8171(0xda))/0x8+-parseInt(_0x6c8171(0xdc))/0x9*(-parseInt(_0x6c8171(0xe2))/0xa);if(_0x594c2f===_0x497ed8)break;else _0xda8933['push'](_0xda8933['shift']());}catch(_0x268a74){_0xda8933['push'](_0xda8933['shift']());}}}(a219_0x4e57,0x411ce));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a219_0x350038 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 _0x10e050=a219_0xd0c7,_0x1785cd=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x10e050(0xe1)]()['toLowerCase']();return _0x1785cd==='1'||_0x1785cd==='true'||_0x1785cd===_0x10e050(0xd4);}function cacheRoot(){const _0x13916f=a219_0xd0c7;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x13916f(0xe8));}export function getUpdateNoticeCachePath(){const _0x19c7c8=a219_0xd0c7;return join(cacheRoot(),_0x19c7c8(0xd8),_0x19c7c8(0xcd));}async function readUpdateNoticeCache(){const _0x360415=a219_0xd0c7;try{const _0x2da5de=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x3932d0=JSON[_0x360415(0xe5)](_0x2da5de);if(!_0x3932d0||typeof _0x3932d0!==_0x360415(0xcf))return{};return _0x3932d0;}catch{return{};}}async function writeUpdateNoticeCache(_0x3927b9){const _0x2c5f94=a219_0xd0c7;try{const _0x34cba7=getUpdateNoticeCachePath();await mkdir(dirname(_0x34cba7),{'recursive':!![]}),await writeFile(_0x34cba7,JSON[_0x2c5f94(0xdb)](_0x3927b9,null,0x2)+'\x0a',_0x2c5f94(0xe6));}catch{}}function a219_0x4e57(){const _0x4c9108=['checkedAt','update-check.json','134Ymefiq','object','\x20update','4TjTbBo','1316649QZSuIL','gte','yes','lastNotifiedAt',',\x20run:\x20','https://www.npmjs.com/package/','rabetbase-cli','number','2333568QESiQP','stringify','20547zzqZzw','1930565AAcrhH','lastNotifiedVersion','673938DvcuWU','stableVersion','trim','1070RjfGlt','569070hzTblk','valid','parse','utf8','3078UJzwbO','.cache','\x20available,\x20current\x20'];a219_0x4e57=function(){return _0x4c9108;};return a219_0x4e57();}function a219_0xd0c7(_0x20303a,_0x4e650f){_0x20303a=_0x20303a-0xcd;const _0x4e578f=a219_0x4e57();let _0xd0c776=_0x4e578f[_0x20303a];return _0xd0c776;}function isFreshCheck(_0xce81df,_0x324f7f){const _0x26f859=a219_0xd0c7;return typeof _0xce81df[_0x26f859(0xea)]===_0x26f859(0xd9)&&_0x324f7f-_0xce81df['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x3e6572,_0x1f0337,_0x13faea){const _0x9811fc=a219_0xd0c7;return _0x3e6572[_0x9811fc(0xde)]===_0x1f0337&&typeof _0x3e6572[_0x9811fc(0xd5)]===_0x9811fc(0xd9)&&_0x13faea-_0x3e6572[_0x9811fc(0xd5)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x39c275){const _0x117b85=a219_0xd0c7;return _0x117b85(0xd7)+NPM_PACKAGE_NAME+'/v/'+_0x39c275;}export async function resolveLatestUpdateNotice(){const _0x4def38=a219_0xd0c7;if(isUpdateNoticeDisabled())return null;try{const _0x5a0e72=Date['now'](),_0x3f3a6b=getCliVersion(),_0x2b2a52=await readUpdateNoticeCache();let _0x39e52e=isFreshCheck(_0x2b2a52,_0x5a0e72)?_0x2b2a52['latest']?.[_0x4def38(0xe1)]():undefined;if(!_0x39e52e&&!isFreshCheck(_0x2b2a52,_0x5a0e72)){const _0x114e2c=await getCliVersionPolicy();_0x39e52e=_0x114e2c?.[_0x4def38(0xe0)]?.[_0x4def38(0xe1)]()||undefined,await writeUpdateNoticeCache({..._0x2b2a52,'checkedAt':_0x5a0e72,'latest':_0x39e52e,'failed':!_0x39e52e});}if(!_0x39e52e||!a219_0x350038[_0x4def38(0xe4)](_0x3f3a6b)||!a219_0x350038[_0x4def38(0xe4)](_0x39e52e))return null;if(a219_0x350038[_0x4def38(0xd3)](_0x3f3a6b,_0x39e52e))return null;if(isRecentlyNotified(_0x2b2a52,_0x39e52e,_0x5a0e72))return null;const _0x5f21e1=CLI_BIN_NAME+_0x4def38(0xd0);return await writeUpdateNoticeCache({..._0x2b2a52,'checkedAt':isFreshCheck(_0x2b2a52,_0x5a0e72)?_0x2b2a52[_0x4def38(0xea)]:_0x5a0e72,'latest':_0x39e52e,'failed':![],'lastNotifiedVersion':_0x39e52e,'lastNotifiedAt':_0x5a0e72}),{'command':_0x5f21e1,'current':_0x3f3a6b,'latest':_0x39e52e,'url':buildNpmVersionUrl(_0x39e52e),'message':CLI_BIN_NAME+'\x20'+_0x39e52e+_0x4def38(0xe9)+_0x3f3a6b+_0x4def38(0xd6)+_0x5f21e1};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a220_0x4c4b(_0x490071,_0x1841c4){_0x490071=_0x490071-0x179;var _0x499da3=a220_0x499d();var _0x4c4bbf=_0x499da3[_0x490071];return _0x4c4bbf;}(function(_0x339500,_0x557aa9){var _0x4ee100=a220_0x4c4b,_0x1a35a5=_0x339500();while(!![]){try{var _0x3f47bf=parseInt(_0x4ee100(0x17b))/0x1+parseInt(_0x4ee100(0x17e))/0x2*(parseInt(_0x4ee100(0x180))/0x3)+-parseInt(_0x4ee100(0x17f))/0x4*(-parseInt(_0x4ee100(0x17c))/0x5)+-parseInt(_0x4ee100(0x17a))/0x6*(parseInt(_0x4ee100(0x182))/0x7)+-parseInt(_0x4ee100(0x181))/0x8+-parseInt(_0x4ee100(0x17d))/0x9+parseInt(_0x4ee100(0x179))/0xa;if(_0x3f47bf===_0x557aa9)break;else _0x1a35a5['push'](_0x1a35a5['shift']());}catch(_0x33c01f){_0x1a35a5['push'](_0x1a35a5['shift']());}}}(a220_0x499d,0xc0bf9));function a220_0x499d(){var _0x2ddefa=['26212410CQrHTJ','7319706stjPZP','441620aGDNND','20380qVrndS','13475331WiTwXb','28wZXnQo','1308PvnNNp','23631HZhvmK','7994272MSPuWy','7kgAyzC'];a220_0x499d=function(){return _0x2ddefa;};return a220_0x499d();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5054f0,_0x1d0272){var _0x429425=a221_0x5afb,_0x2abbfc=_0x5054f0();while(!![]){try{var _0x52b1f3=-parseInt(_0x429425(0x1d6))/0x1*(parseInt(_0x429425(0x1d4))/0x2)+-parseInt(_0x429425(0x1d8))/0x3+parseInt(_0x429425(0x1d1))/0x4*(parseInt(_0x429425(0x1d0))/0x5)+-parseInt(_0x429425(0x1cd))/0x6*(parseInt(_0x429425(0x1d2))/0x7)+-parseInt(_0x429425(0x1d3))/0x8+-parseInt(_0x429425(0x1d7))/0x9*(-parseInt(_0x429425(0x1ce))/0xa)+parseInt(_0x429425(0x1d5))/0xb*(parseInt(_0x429425(0x1cf))/0xc);if(_0x52b1f3===_0x1d0272)break;else _0x2abbfc['push'](_0x2abbfc['shift']());}catch(_0x22274c){_0x2abbfc['push'](_0x2abbfc['shift']());}}}(a221_0x53c4,0x9f92a));function a221_0x5afb(_0x200aa4,_0x4d502b){_0x200aa4=_0x200aa4-0x1cd;var _0x53c442=a221_0x53c4();var _0x5afb0a=_0x53c442[_0x200aa4];return _0x5afb0a;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x5dbdc9,_0x35326f){setActiveCookie(_0x5dbdc9);try{return await _0x35326f();}finally{clearActiveCookie();}}function a221_0x53c4(){var _0x59a9ce=['28giHgrd','3089219poymzF','4630728UYukcD','202578flEvct','165rJMXBH','1ezjDOj','9OKdkPo','2046954iTLCei','6LGEAXr','8252840ItAYTm','500964UKwttT','718490kKGcvA'];a221_0x53c4=function(){return _0x59a9ce;};return a221_0x53c4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4006b2,_0x2ec1ba){var _0x4a207a=a222_0x2270,_0x3b00fb=_0x4006b2();while(!![]){try{var _0x4083ea=parseInt(_0x4a207a(0x19f))/0x1*(parseInt(_0x4a207a(0x1a0))/0x2)+parseInt(_0x4a207a(0x19c))/0x3+parseInt(_0x4a207a(0x19a))/0x4*(parseInt(_0x4a207a(0x19d))/0x5)+-parseInt(_0x4a207a(0x19e))/0x6+parseInt(_0x4a207a(0x199))/0x7+parseInt(_0x4a207a(0x1a1))/0x8+parseInt(_0x4a207a(0x198))/0x9*(-parseInt(_0x4a207a(0x19b))/0xa);if(_0x4083ea===_0x2ec1ba)break;else _0x3b00fb['push'](_0x3b00fb['shift']());}catch(_0xbc5504){_0x3b00fb['push'](_0x3b00fb['shift']());}}}(a222_0x2f2a,0x38aef));function a222_0x2270(_0x225ced,_0x51ed92){_0x225ced=_0x225ced-0x198;var _0x2f2a37=a222_0x2f2a();var _0x22706c=_0x2f2a37[_0x225ced];return _0x22706c;}export function writeCliSideChannelLine(_0x4fe3df){var _0x5a0d74=a222_0x2270;process[_0x5a0d74(0x1a2)]['write'](_0x4fe3df+'\x0a');}function a222_0x2f2a(){var _0x3de1d8=['6775803ZBvPnP','1927912YNgRLw','570116FazhjH','10nbohRb','607074bThuOy','10FnaSAR','1758480vYbfmb','2993sfjmGI','224ssSyGr','1440592qYMZeI','stderr'];a222_0x2f2a=function(){return _0x3de1d8;};return a222_0x2f2a();}
|