@lovrabet/rabetbase-cli 2.1.13 → 2.1.14-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/discover.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -0
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/link-create.js +1 -1
- package/lib/commands/dataset/link-delete.js +1 -1
- package/lib/commands/dataset/link-shared.js +1 -1
- package/lib/commands/dataset/link-update.js +1 -1
- package/lib/commands/dataset/links.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -0
- 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/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/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/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/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5a34da,_0x53ca20){const _0x102c3b=a195_0xc360,_0x37bffb=_0x5a34da();while(!![]){try{const _0x2be553=parseInt(_0x102c3b(0x180))/0x1*(-parseInt(_0x102c3b(0x16a))/0x2)+parseInt(_0x102c3b(0x167))/0x3*(-parseInt(_0x102c3b(0x168))/0x4)+-parseInt(_0x102c3b(0x169))/0x5+-parseInt(_0x102c3b(0x183))/0x6*(parseInt(_0x102c3b(0x16d))/0x7)+parseInt(_0x102c3b(0x176))/0x8+parseInt(_0x102c3b(0x166))/0x9*(-parseInt(_0x102c3b(0x17f))/0xa)+-parseInt(_0x102c3b(0x16c))/0xb*(-parseInt(_0x102c3b(0x17b))/0xc);if(_0x2be553===_0x53ca20)break;else _0x37bffb['push'](_0x37bffb['shift']());}catch(_0x3745c6){_0x37bffb['push'](_0x37bffb['shift']());}}}(a195_0x2707,0xc1399));export async function httpRequest(_0x4e7975,_0x44649f={}){const _0xc354e2=a195_0xc360,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x44649f;let _0x1965c4=null;for(let _0x29f8da=0x0;_0x29f8da<=retries;_0x29f8da++){try{const _0x130f16=new AbortController(),_0x5491b1=setTimeout(()=>_0x130f16[_0xc354e2(0x17e)](),timeout),_0x4ce462=await fetch(_0x4e7975,{'headers':headers,'signal':_0x130f16[_0xc354e2(0x178)]});clearTimeout(_0x5491b1);let _0x561b69;const _0x4f2798=_0x4ce462[_0xc354e2(0x174)][_0xc354e2(0x17c)](_0xc354e2(0x171));return _0x4f2798?.[_0xc354e2(0x16f)](_0xc354e2(0x175))?_0x561b69=await _0x4ce462[_0xc354e2(0x181)]():_0x561b69=await _0x4ce462['text'](),{'ok':_0x4ce462['ok'],'status':_0x4ce462['status'],'statusText':_0x4ce462[_0xc354e2(0x16b)],'data':_0x561b69,'headers':_0x4ce462['headers'],'url':_0x4ce462[_0xc354e2(0x184)],'text':()=>_0x4ce462[_0xc354e2(0x173)]()};}catch(_0x12b527){_0x1965c4=_0x12b527 instanceof Error?_0x12b527:new Error(String(_0x12b527));if(_0x29f8da===retries)break;if(shouldRetry(_0x12b527)){console[_0xc354e2(0x17d)]('*\x20请求失败,'+retryDelay+_0xc354e2(0x16e)+(_0x29f8da+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x1965c4||new Error(_0xc354e2(0x177));}function shouldRetry(_0x372fef){const _0x3622a2=a195_0xc360;if(_0x372fef instanceof Error){if(_0x372fef['name']===_0x3622a2(0x182))return![];if(_0x372fef['name']===_0x3622a2(0x17a)&&_0x372fef[_0x3622a2(0x172)][_0x3622a2(0x16f)](_0x3622a2(0x185)))return!![];if(_0x372fef[_0x3622a2(0x172)][_0x3622a2(0x16f)](_0x3622a2(0x170)))return!![];if(_0x372fef[_0x3622a2(0x172)]['includes'](_0x3622a2(0x179)))return![];}return![];}function a195_0x2707(){const _0x232d58=['signal','ENOTFOUND','TypeError','3572556wGDYfB','get','log','abort','40lNrfCh','1426253vefsyP','json','AbortError','165888MiaXdU','url','fetch','2077569lIFHjB','24CsrhSw','565464rWXqNC','5936405TvcsYk','2IVbZAa','statusText','209BmnXXn','84OtZcsy','ms\x20后进行第\x20','includes','ECONNRESET','content-type','message','text','headers','application/json','1076032GKdNxg','Request\x20failed'];a195_0x2707=function(){return _0x232d58;};return a195_0x2707();}function a195_0xc360(_0x5cc1a9,_0x5affa2){_0x5cc1a9=_0x5cc1a9-0x166;const _0x27076a=a195_0x2707();let _0xc3603f=_0x27076a[_0x5cc1a9];return _0xc3603f;}function sleep(_0x4e7b4e){return new Promise(_0x3eae21=>setTimeout(_0x3eae21,_0x4e7b4e));}export function validateUrl(_0xb55309){try{return new URL(_0xb55309),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a196_0x7886(){const _0x3fed80=['true','38048970FgiAmz','91RBtigL','591256rfoQyn','995HZEtFM','1443959lKGrfL','4777860FRMqBa','setRawMode','2456004CkTYUa','7651575tefaUe','3uMdOli','isRaw','nonInteractive','isTTY','stdin','28332ahKYDc'];a196_0x7886=function(){return _0x3fed80;};return a196_0x7886();}(function(_0x5d268b,_0x653fc3){const _0x24b8f6=a196_0x12fb,_0x37153a=_0x5d268b();while(!![]){try{const _0x161d2=-parseInt(_0x24b8f6(0xfa))/0x1+parseInt(_0x24b8f6(0xfd))/0x2*(-parseInt(_0x24b8f6(0xff))/0x3)+-parseInt(_0x24b8f6(0xfb))/0x4+parseInt(_0x24b8f6(0xf9))/0x5*(parseInt(_0x24b8f6(0x104))/0x6)+-parseInt(_0x24b8f6(0xf7))/0x7*(parseInt(_0x24b8f6(0xf8))/0x8)+parseInt(_0x24b8f6(0xfe))/0x9+parseInt(_0x24b8f6(0xf6))/0xa;if(_0x161d2===_0x653fc3)break;else _0x37153a['push'](_0x37153a['shift']());}catch(_0x2a7426){_0x37153a['push'](_0x37153a['shift']());}}}(a196_0x7886,0xbb62d));function env(_0x57a9aa){return process.env[`RABETBASE_${_0x57a9aa}`]||process.env[`LOVRABET_${_0x57a9aa}`]||undefined;}function a196_0x12fb(_0x2f9322,_0x416c95){_0x2f9322=_0x2f9322-0xf5;const _0x7886c5=a196_0x7886();let _0x12fb84=_0x7886c5[_0x2f9322];return _0x12fb84;}export function isNonInteractive(_0x472c21){const _0x58f7a5=a196_0x12fb;return!!(_0x472c21[_0x58f7a5(0x101)]||_0x472c21['ci']||env('CI')===_0x58f7a5(0xf5)||process.env.CI===_0x58f7a5(0xf5)||!process['stdout'][_0x58f7a5(0x102)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x8cc33c=a196_0x12fb;if(!process[_0x8cc33c(0x103)][_0x8cc33c(0x102)])return![];try{const _0x196fbd=process[_0x8cc33c(0x103)][_0x8cc33c(0x100)];return process[_0x8cc33c(0x103)][_0x8cc33c(0xfc)](!![]),process[_0x8cc33c(0x103)][_0x8cc33c(0xfc)](_0x196fbd??![]),!![];}catch{return![];}}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a197_0x3e3a68=a197_0x40fd;(function(_0x552f3e,_0x554bc4){const _0xcc40dd=a197_0x40fd,_0x185265=_0x552f3e();while(!![]){try{const _0x42379e=parseInt(_0xcc40dd(0x159))/0x1+-parseInt(_0xcc40dd(0x15d))/0x2*(parseInt(_0xcc40dd(0x153))/0x3)+-parseInt(_0xcc40dd(0x142))/0x4+-parseInt(_0xcc40dd(0x160))/0x5*(-parseInt(_0xcc40dd(0x171))/0x6)+-parseInt(_0xcc40dd(0x168))/0x7+parseInt(_0xcc40dd(0x13d))/0x8+parseInt(_0xcc40dd(0x14a))/0x9;if(_0x42379e===_0x554bc4)break;else _0x185265['push'](_0x185265['shift']());}catch(_0x307669){_0x185265['push'](_0x185265['shift']());}}}(a197_0x9bf1,0x5eeec));import a197_0x57ef2e from'winston';import a197_0x2f03c1 from'node:fs';import a197_0x213642 from'node:path';function a197_0x40fd(_0x582424,_0x3feea0){_0x582424=_0x582424-0x13c;const _0x9bf16b=a197_0x9bf1();let _0x40fdbe=_0x9bf16b[_0x582424];return _0x40fdbe;}class Logger{[a197_0x3e3a68(0x149)];[a197_0x3e3a68(0x145)];['currentRawCommand']='';constructor(){this['logFilePath']='';}[a197_0x3e3a68(0x144)](_0x205d95){const _0x26f224=a197_0x3e3a68;this[_0x26f224(0x15e)]=_0x205d95;}[a197_0x3e3a68(0x151)](){const _0x279fcf=a197_0x3e3a68,_0xb9f29d=a197_0x213642[_0x279fcf(0x15c)](this[_0x279fcf(0x145)]);!a197_0x2f03c1[_0x279fcf(0x163)](_0xb9f29d)&&a197_0x2f03c1[_0x279fcf(0x161)](_0xb9f29d,{'recursive':!![]});const _0x3fcd6c=a197_0x57ef2e[_0x279fcf(0x141)]['combine'](a197_0x57ef2e[_0x279fcf(0x141)]['timestamp'](),a197_0x57ef2e[_0x279fcf(0x141)][_0x279fcf(0x170)]({'stack':!![]}),a197_0x57ef2e[_0x279fcf(0x141)][_0x279fcf(0x157)](_0x28fd2f=>{const _0x499fd9=_0x279fcf,_0x4fbf73={'timestamp':_0x28fd2f[_0x499fd9(0x15b)]||new Date()[_0x499fd9(0x16f)](),'level':_0x28fd2f['level']||_0x499fd9(0x167),'command':_0x28fd2f[_0x499fd9(0x16c)]||'unknown','rawCommand':_0x28fd2f[_0x499fd9(0x154)]||this[_0x499fd9(0x15e)]||undefined,'message':_0x28fd2f[_0x499fd9(0x152)]||'','duration':_0x28fd2f[_0x499fd9(0x14b)]||undefined,'details':_0x28fd2f[_0x499fd9(0x14c)]||undefined};return JSON['stringify'](_0x4fbf73);}));this[_0x279fcf(0x149)]=a197_0x57ef2e['createLogger']({'level':'info','format':_0x3fcd6c,'transports':[new a197_0x57ef2e[(_0x279fcf(0x147))][(_0x279fcf(0x165))]({'filename':this[_0x279fcf(0x145)],'level':_0x279fcf(0x167)})],'silent':![]}),a197_0x57ef2e[_0x279fcf(0x162)]({'success':'green','error':_0x279fcf(0x16d),'warn':_0x279fcf(0x16e),'info':_0x279fcf(0x16b)});}[a197_0x3e3a68(0x15f)](_0x5cdff2){const _0x5742ad=a197_0x3e3a68;this['logFilePath']=a197_0x213642[_0x5742ad(0x148)](_0x5cdff2,_0x5742ad(0x146)),this[_0x5742ad(0x149)]&&this[_0x5742ad(0x149)][_0x5742ad(0x156)](),this['initWinstonLogger']();}[a197_0x3e3a68(0x167)](_0x3a58da,_0x2b5409,_0x523e01){const _0x46c355=a197_0x3e3a68;if(!this[_0x46c355(0x145)]||!this[_0x46c355(0x149)])return;this[_0x46c355(0x149)]['info'](_0x2b5409,{'command':_0x3a58da,'details':_0x523e01});}['success'](_0x20abdf,_0x35ba7c,_0x2a5d58,_0x344809){const _0x3420b3=a197_0x3e3a68;if(!this[_0x3420b3(0x145)]||!this['winstonLogger'])return;this['winstonLogger']['log'](_0x3420b3(0x167),_0x35ba7c,{'level':'success','command':_0x20abdf,'duration':_0x2a5d58,'details':_0x344809});}[a197_0x3e3a68(0x14e)](_0x5c3bf4,_0x250bbe,_0x2f4574){const _0x1ad6ae=a197_0x3e3a68;if(!this[_0x1ad6ae(0x145)]||!this[_0x1ad6ae(0x149)])return;this[_0x1ad6ae(0x149)]['error'](_0x250bbe,{'command':_0x5c3bf4,'details':_0x2f4574});}[a197_0x3e3a68(0x172)](_0x82f44b,_0x45bb33,_0x525c7d){const _0x300fb9=a197_0x3e3a68;if(!this[_0x300fb9(0x145)]||!this['winstonLogger'])return;this[_0x300fb9(0x149)]['warn'](_0x45bb33,{'command':_0x82f44b,'details':_0x525c7d});}async[a197_0x3e3a68(0x150)](_0x2020c7,_0x4ffc4e,_0x949fea){const _0x6d9588=a197_0x3e3a68,_0x22ad16=Date['now']();this['info'](_0x2020c7,'开始执行:\x20'+_0x4ffc4e);try{const _0x496a63=await _0x949fea(),_0x2aee6d=Date[_0x6d9588(0x169)]()-_0x22ad16;return this[_0x6d9588(0x155)](_0x2020c7,_0x6d9588(0x15a)+_0x4ffc4e,_0x2aee6d),_0x496a63;}catch(_0x4a9783){const _0x5182a7=Date[_0x6d9588(0x169)]()-_0x22ad16;this[_0x6d9588(0x14e)](_0x2020c7,'失败:\x20'+_0x4ffc4e,{'error':_0x4a9783 instanceof Error?_0x4a9783[_0x6d9588(0x152)]:String(_0x4a9783),'duration':_0x5182a7});throw _0x4a9783;}}[a197_0x3e3a68(0x13f)](){const _0x322f63=a197_0x3e3a68;try{if(!a197_0x2f03c1[_0x322f63(0x163)](this['logFilePath']))return[];const _0x4a36b2=a197_0x2f03c1['readFileSync'](this[_0x322f63(0x145)],_0x322f63(0x143));return _0x4a36b2[_0x322f63(0x14d)]('\x0a')[_0x322f63(0x158)](_0x29fdc8=>_0x29fdc8[_0x322f63(0x173)]())[_0x322f63(0x164)](_0x590fd6=>JSON[_0x322f63(0x16a)](_0x590fd6));}catch(_0x44b7d9){return console[_0x322f63(0x172)](_0x322f63(0x140),_0x44b7d9),[];}}[a197_0x3e3a68(0x14f)](){const _0x163b4f=a197_0x3e3a68;try{a197_0x2f03c1[_0x163b4f(0x163)](this[_0x163b4f(0x145)])&&a197_0x2f03c1[_0x163b4f(0x166)](this[_0x163b4f(0x145)],'',_0x163b4f(0x143));}catch(_0xb98209){console[_0x163b4f(0x172)](_0x163b4f(0x13c),_0xb98209);}}[a197_0x3e3a68(0x13e)](){const _0x24a037=a197_0x3e3a68;return this[_0x24a037(0x149)];}}function a197_0x9bf1(){const _0x59fad2=['details','split','error','clearLogs','logTask','initWinstonLogger','message','37731oUHEbD','rawCommand','success','clear','printf','filter','641105FtWqjO','完成:\x20','timestamp','dirname','94kGHQww','currentRawCommand','setLogPath','1535SnGXPR','mkdirSync','addColors','existsSync','map','File','writeFileSync','info','3333904azPtFX','now','parse','blue','command','red','yellow','toISOString','errors','330dzzVBx','warn','trim','Failed\x20to\x20clear\x20logs:','5875168cTZlBq','getWinstonInstance','readLogs','Failed\x20to\x20read\x20logs:','format','2045880MAfPLs','utf8','setRawCommand','logFilePath','.lovrabet.log','transports','join','winstonLogger','5177871PMbmgk','duration'];a197_0x9bf1=function(){return _0x59fad2;};return a197_0x9bf1();}export const logger=new Logger();
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x533ce8,_0x802d83){const _0x2bfd0e=a198_0x41f0,_0x5f940e=_0x533ce8();while(!![]){try{const _0x88487d=-parseInt(_0x2bfd0e(0x125))/0x1+-parseInt(_0x2bfd0e(0x123))/0x2*(parseInt(_0x2bfd0e(0x124))/0x3)+-parseInt(_0x2bfd0e(0x127))/0x4*(parseInt(_0x2bfd0e(0x11e))/0x5)+-parseInt(_0x2bfd0e(0x126))/0x6+-parseInt(_0x2bfd0e(0x11d))/0x7*(parseInt(_0x2bfd0e(0x11c))/0x8)+parseInt(_0x2bfd0e(0x128))/0x9*(-parseInt(_0x2bfd0e(0x11f))/0xa)+parseInt(_0x2bfd0e(0x122))/0xb;if(_0x88487d===_0x802d83)break;else _0x5f940e['push'](_0x5f940e['shift']());}catch(_0xaa0b72){_0x5f940e['push'](_0x5f940e['shift']());}}}(a198_0x482c,0xb17bd));function a198_0x41f0(_0x53c856,_0x41654b){_0x53c856=_0x53c856-0x11b;const _0x482c3b=a198_0x482c();let _0x41f02a=_0x482c3b[_0x53c856];return _0x41f02a;}import{CliErrors}from'../errors.js';function a198_0x482c(){const _0x271bc6=['Invalid\x20JSON\x20for\x20--params:\x20','object','1937744TgiARA','7GHlDZd','12865pvRsLv','2752690xPWNgE','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','validation','44059851lrUwlI','181282iqSWIl','24ocOslI','821534RMaKVI','2253126KzcJaZ','1304PkjqaT','9UrJaJq'];a198_0x482c=function(){return _0x271bc6;};return a198_0x482c();}export function parseJsonParams(_0x2e429e){const _0x3ad2aa=a198_0x41f0;if(!_0x2e429e)return undefined;let _0x5829cc;try{_0x5829cc=JSON['parse'](_0x2e429e);}catch{throw CliErrors[_0x3ad2aa(0x121)](_0x3ad2aa(0x129)+_0x2e429e);}if(!_0x5829cc||typeof _0x5829cc!==_0x3ad2aa(0x11b)||Array['isArray'](_0x5829cc))throw CliErrors[_0x3ad2aa(0x121)]('--params\x20must\x20be\x20a\x20JSON\x20object',_0x3ad2aa(0x120));return _0x5829cc;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a199_0x543b29=a199_0x1527;function a199_0x1527(_0x5bbfdb,_0x33986c){_0x5bbfdb=_0x5bbfdb-0x11d;const _0x300dab=a199_0x300d();let _0x152717=_0x300dab[_0x5bbfdb];return _0x152717;}(function(_0x21365b,_0x3826d3){const _0x39e655=a199_0x1527,_0x1b93cf=_0x21365b();while(!![]){try{const _0x1f7363=-parseInt(_0x39e655(0x122))/0x1+-parseInt(_0x39e655(0x126))/0x2*(parseInt(_0x39e655(0x120))/0x3)+parseInt(_0x39e655(0x124))/0x4*(parseInt(_0x39e655(0x125))/0x5)+-parseInt(_0x39e655(0x11e))/0x6*(parseInt(_0x39e655(0x128))/0x7)+-parseInt(_0x39e655(0x121))/0x8+-parseInt(_0x39e655(0x123))/0x9+parseInt(_0x39e655(0x127))/0xa;if(_0x1f7363===_0x3826d3)break;else _0x1b93cf['push'](_0x1b93cf['shift']());}catch(_0x110500){_0x1b93cf['push'](_0x1b93cf['shift']());}}}(a199_0x300d,0x6b721));export const isWindows=process[a199_0x543b29(0x11d)]==='win32';function a199_0x300d(){const _0x2f65ac=['3kUpEnV','2055808XmjSOI','245693tmriVw','1658412EajaVh','219908ckQZIC','15jdIXTU','839698lcEsrx','17973860DtNrVG','42wVngBG','platform','415434vWHyqz','.cmd'];a199_0x300d=function(){return _0x2f65ac;};return a199_0x300d();}export function resolveNpmBin(_0x24f0c7){const _0x3c6d43=a199_0x543b29;return isWindows?_0x24f0c7+_0x3c6d43(0x11f):_0x24f0c7;}
|
package/lib/utils/rules-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a200_0x8a6009=a200_0x1910;function a200_0x1910(_0x51c545,_0x152985){_0x51c545=_0x51c545-0xd5;const _0x3a030b=a200_0x3a03();let _0x191006=_0x3a030b[_0x51c545];return _0x191006;}(function(_0x28c3b2,_0x260bdc){const _0x5e0c51=a200_0x1910,_0x3419b8=_0x28c3b2();while(!![]){try{const _0xcc0bf9=parseInt(_0x5e0c51(0xda))/0x1+-parseInt(_0x5e0c51(0xd7))/0x2+-parseInt(_0x5e0c51(0xd8))/0x3*(-parseInt(_0x5e0c51(0xde))/0x4)+-parseInt(_0x5e0c51(0xe6))/0x5+-parseInt(_0x5e0c51(0xd5))/0x6*(-parseInt(_0x5e0c51(0xeb))/0x7)+-parseInt(_0x5e0c51(0xe7))/0x8*(-parseInt(_0x5e0c51(0xdf))/0x9)+-parseInt(_0x5e0c51(0xe5))/0xa*(parseInt(_0x5e0c51(0xe3))/0xb);if(_0xcc0bf9===_0x260bdc)break;else _0x3419b8['push'](_0x3419b8['shift']());}catch(_0x5e2243){_0x3419b8['push'](_0x3419b8['shift']());}}}(a200_0x3a03,0x24e77));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 _0x2c905=a200_0x1910,_0x557ca8=getTemplateBaseUrl();return _0x557ca8+_0x2c905(0xe4);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a200_0x8a6009(0xe0));function a200_0x3a03(){const _0x2f1e08=['.cursor/rules','本地模板文件不存在:\x20','content','188QlbJgk','1449QsREBl','../../templates/rules/lovrabet_rules.mdc.tpl','lovrabet_rules.mdc','statusText','11GWrnGE','/rules/rules.json','1336330VoqcVh','513620DtMUns','11096TuqGEr','application/json','lastUpdated','utf-8','7idhmOg','status','678972JGuYZt','CDN\x20返回数据格式错误','199646kGvCdU','4467FvhXHY','json','80887OLVjQq'];a200_0x3a03=function(){return _0x2f1e08;};return a200_0x3a03();}export async function fetchRulesFromCDN(){const _0x1a25cd=a200_0x8a6009,_0x13a478=getRulesCdnUrl(),_0x19028d=await fetch(_0x13a478,{'headers':{'Accept':_0x1a25cd(0xe8)}});if(!_0x19028d['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x19028d[_0x1a25cd(0xec)]+'\x20'+_0x19028d[_0x1a25cd(0xe2)]);const _0x127667=await _0x19028d[_0x1a25cd(0xd9)]();if(!_0x127667[_0x1a25cd(0xdd)]||typeof _0x127667[_0x1a25cd(0xdd)]!=='string')throw new Error(_0x1a25cd(0xd6));return _0x127667;}export async function getRulesContent(){const _0x2882bf=a200_0x8a6009;try{const _0x1b910b=await fetchRulesFromCDN();return _0x1b910b[_0x2882bf(0xdd)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x447c31=a200_0x8a6009;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x447c31(0xea));throw new Error(_0x447c31(0xdc)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x4a54cd){const _0x3a48e6=a200_0x8a6009,_0x5a625e=await fetchRulesFromCDN()['catch'](()=>null);let _0x435de3;_0x5a625e?(_0x435de3=_0x5a625e[_0x3a48e6(0xdd)],_0x5a625e['lastUpdated']&&(_0x435de3=appendUpdateTime(_0x435de3,_0x5a625e[_0x3a48e6(0xe9)]))):_0x435de3=readLocalTemplate();const _0x317b89=dirname(_0x4a54cd);!existsSync(_0x317b89)&&mkdirSync(_0x317b89,{'recursive':!![]}),writeFileSync(_0x4a54cd,_0x435de3,_0x3a48e6(0xea));}export async function copyRulesToCursor(_0x26b1d6){const _0x58d581=a200_0x8a6009,_0x59197d=join(_0x26b1d6,_0x58d581(0xdb)),_0x212c58=join(_0x59197d,_0x58d581(0xe1));if(existsSync(_0x212c58))return![];return await writeRulesFile(_0x212c58),!![];}export async function copyRulesToAgentsMd(_0x1d3844){const _0x4fb797=join(_0x1d3844,'agents.md');if(existsSync(_0x4fb797))return![];return await writeRulesFile(_0x4fb797),!![];}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x4d79af){return new Promise(_0x5ed690=>setTimeout(_0x5ed690,_0x4d79af));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a202_0x53793f=a202_0x5450;(function(_0x5305d5,_0x3b3dee){const _0x140b53=a202_0x5450,_0x1f680c=_0x5305d5();while(!![]){try{const _0x593fa1=-parseInt(_0x140b53(0x187))/0x1*(parseInt(_0x140b53(0x19b))/0x2)+parseInt(_0x140b53(0x173))/0x3*(parseInt(_0x140b53(0x188))/0x4)+-parseInt(_0x140b53(0x17a))/0x5*(-parseInt(_0x140b53(0x19f))/0x6)+parseInt(_0x140b53(0x1ae))/0x7*(parseInt(_0x140b53(0x184))/0x8)+-parseInt(_0x140b53(0x18d))/0x9+-parseInt(_0x140b53(0x1a6))/0xa*(-parseInt(_0x140b53(0x16e))/0xb)+parseInt(_0x140b53(0x18c))/0xc;if(_0x593fa1===_0x3b3dee)break;else _0x1f680c['push'](_0x1f680c['shift']());}catch(_0x2828ba){_0x1f680c['push'](_0x1f680c['shift']());}}}(a202_0x3646,0x92426));import a202_0x5d0765 from'node:fs';import a202_0x19de5b from'node:path';import{logger}from'../utils/logger.js';function a202_0x5450(_0x337ec5,_0x1e4ac8){_0x337ec5=_0x337ec5-0x16c;const _0x3646e9=a202_0x3646();let _0x54506f=_0x3646e9[_0x337ec5];return _0x54506f;}import{getCliVersion}from'../utils/version.js';function a202_0x3646(){const _0xc6cfdc=['.js','split','getMonth','error','7NtRYBl','template','endsWith','198iFcRKw','charAt','.json','getSeconds','replaceApiContent','16491WczfLB','isDirectory','alias','模板内容替换失败','name:\x20\x22','processFile','mkdir','5zDhAqc','now','replaceContent','success','toISOString','tableName','message','.jsx','map','YourModel','5256680bERiTq','includes','datasetCode','1145831iaKBij','252jkpQMh','processDirectory','replace','\x0a\x20\x20\x20\x20{\x20','5090076ryJphV','8502165QiwwpJ','utf8','LOVRABET','extname','default','name','.css','模板内容替换完成','toLowerCase','promises','formatLocalTimestamp','getHours','processTemplate','getMinutes','2SBDyIM','toUpperCase','\x20},','isFile','3747006HYcUGO','readdir','slice','开始处理模板内容替换','.ts','pad','padStart','354180oyOoDE','.tpl','join','.md'];a202_0x3646=function(){return _0xc6cfdc;};return a202_0x3646();}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a202_0x53793f(0x1a4)](_0x29bf73){const _0x4b69b1=a202_0x53793f;return String(_0x29bf73)[_0x4b69b1(0x1a5)](0x2,'0');}static[a202_0x53793f(0x197)](_0x189636){const _0x5138eb=a202_0x53793f,_0x2d2adb=_0x189636['getFullYear'](),_0xed6343=this['pad'](_0x189636[_0x5138eb(0x1ac)]()+0x1),_0x124bc9=this[_0x5138eb(0x1a4)](_0x189636['getDate']()),_0x4a151d=this[_0x5138eb(0x1a4)](_0x189636[_0x5138eb(0x198)]()),_0x2ab500=this[_0x5138eb(0x1a4)](_0x189636[_0x5138eb(0x19a)]()),_0x353005=this[_0x5138eb(0x1a4)](_0x189636[_0x5138eb(0x171)]());return{'createdAt':_0x2d2adb+'-'+_0xed6343+'-'+_0x124bc9+'\x20'+_0x4a151d+':'+_0x2ab500+':'+_0x353005,'createdDate':_0x2d2adb+'-'+_0xed6343+'-'+_0x124bc9,'createdTime':_0x4a151d+':'+_0x2ab500+':'+_0x353005};}static['toComponentName'](_0x3b3fa2){const _0x4cf508=a202_0x53793f,_0x146508=_0x3b3fa2[_0x4cf508(0x1ab)]('/')['pop']()||_0x3b3fa2;return _0x146508[_0x4cf508(0x1ab)]('-')['map'](_0x4d46cf=>_0x4d46cf[_0x4cf508(0x16f)](0x0)[_0x4cf508(0x19c)]()+_0x4d46cf[_0x4cf508(0x1a1)](0x1)[_0x4cf508(0x195)]())[_0x4cf508(0x1a8)]('');}static['toDisplayTitle'](_0x44a786){const _0x306c77=a202_0x53793f,_0x3b6eba=_0x44a786['split']('/')['pop']()||_0x44a786;return _0x3b6eba['split']('-')[_0x306c77(0x182)](_0x11f93f=>_0x11f93f[_0x306c77(0x16f)](0x0)['toUpperCase']()+_0x11f93f['slice'](0x1)[_0x306c77(0x195)]())[_0x306c77(0x1a8)]('\x20');}static[a202_0x53793f(0x17c)](_0x2716d9,_0x396b2f,_0x36d098){const _0x1e3c17=a202_0x53793f,_0x483468=this['toComponentName'](_0x396b2f),_0x1de413=this['toDisplayTitle'](_0x396b2f),{createdAt:_0x9dfa0f,createdDate:_0x342d83,createdTime:_0x24af4e}=this[_0x1e3c17(0x197)](new Date());let _0x51d9ea=_0x2716d9['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x1e3c17(0x18a)](/\{ComponentName\}/g,_0x483468)['replace'](/\{DisplayTitle\}/g,_0x1de413)['replace'](/\{PageName\}/g,_0x396b2f)['replace'](/\{TemplateName\}/g,_0x36d098)['replace'](/\{CreatedAt\}/g,_0x9dfa0f)[_0x1e3c17(0x18a)](/\{CreatedDate\}/g,_0x342d83)[_0x1e3c17(0x18a)](/\{CreatedTime\}/g,_0x24af4e);return _0x51d9ea;}static[a202_0x53793f(0x172)](_0xea363b,_0x5e5f33,_0x8024e7,_0x18139f,_0x34b13a,_0x16e13e,_0x481204,_0x4dde3f){const _0x3ab092=a202_0x53793f,_0x1a82db=new Date(),_0x3f5b13=_0x1a82db[_0x3ab092(0x17e)](),_0x16e9ec=_0x8024e7['map'](_0x15e0f0=>{const _0x50db12=_0x3ab092,_0x5ab3db=['datasetCode:\x20\x22'+_0x15e0f0[_0x50db12(0x186)]+'\x22','tableName:\x20\x22'+_0x15e0f0[_0x50db12(0x17f)]+'\x22',_0x50db12(0x177)+_0x15e0f0[_0x50db12(0x192)]+'\x22'];return _0x15e0f0[_0x50db12(0x175)]&&_0x5ab3db['push']('alias:\x20\x22'+_0x15e0f0['alias']+'\x22'),_0x50db12(0x18b)+_0x5ab3db[_0x50db12(0x1a8)](',\x20')+_0x50db12(0x19d);})['join'](''),_0x280507=_0x18139f||_0x8024e7[0x0]?.['alias']||_0x3ab092(0x183);let _0x274f40=_0xea363b[_0x3ab092(0x18a)](/\{AppCode\}/g,_0x5e5f33)[_0x3ab092(0x18a)](/\{ModelConfigs\}/g,_0x16e9ec)[_0x3ab092(0x18a)](/\{ExampleModelName\}/g,_0x280507)[_0x3ab092(0x18a)](/\{ApiFileName\}/g,_0x34b13a||'api')[_0x3ab092(0x18a)](/\{ConfigName\}/g,_0x16e13e||_0x3ab092(0x191))[_0x3ab092(0x18a)](/\{ClientConfigParam\}/g,_0x481204||'')[_0x3ab092(0x18a)](/\{VarPrefix\}/g,_0x4dde3f||_0x3ab092(0x18f))[_0x3ab092(0x18a)](/\{CreatedAt\}/g,_0x3f5b13);return _0x274f40;}static async[a202_0x53793f(0x199)](_0x275a69,_0x3757d2,_0x10f362,_0x489399,_0xc2bb=!![]){const _0x12d381=a202_0x53793f,_0x3f4bdb=Date[_0x12d381(0x17b)]();try{_0xc2bb&&logger['info']('template',_0x12d381(0x1a2),{'templatePath':_0x275a69,'targetPath':_0x3757d2,'pageName':_0x10f362,'templateName':_0x489399});await a202_0x5d0765['promises'][_0x12d381(0x179)](_0x3757d2,{'recursive':!![]}),await this[_0x12d381(0x189)](_0x275a69,_0x3757d2,_0x10f362,_0x489399);if(_0xc2bb){const _0x1336cb=Date[_0x12d381(0x17b)]()-_0x3f4bdb;logger[_0x12d381(0x17d)](_0x12d381(0x16c),_0x12d381(0x194),_0x1336cb,{'pageName':_0x10f362,'templateName':_0x489399});}}catch(_0x55a81a){if(_0xc2bb){const _0x2d3143=Date[_0x12d381(0x17b)]()-_0x3f4bdb;logger[_0x12d381(0x1ad)](_0x12d381(0x16c),_0x12d381(0x176),{'templatePath':_0x275a69,'targetPath':_0x3757d2,'pageName':_0x10f362,'templateName':_0x489399,'error':_0x55a81a instanceof Error?_0x55a81a[_0x12d381(0x180)]:String(_0x55a81a),'duration':_0x2d3143});}throw _0x55a81a;}}static async[a202_0x53793f(0x189)](_0x618eb0,_0x151fec,_0x2ec4f2,_0x564cb3){const _0x2ef329=a202_0x53793f,_0x3f6971=await a202_0x5d0765['promises'][_0x2ef329(0x1a0)](_0x618eb0,{'withFileTypes':!![]});for(const _0x40e46e of _0x3f6971){const _0xf2e346=a202_0x19de5b[_0x2ef329(0x1a8)](_0x618eb0,_0x40e46e['name']);let _0xc400fa=a202_0x19de5b[_0x2ef329(0x1a8)](_0x151fec,_0x40e46e[_0x2ef329(0x192)]);_0x40e46e[_0x2ef329(0x192)][_0x2ef329(0x16d)](_0x2ef329(0x1a7))&&(_0xc400fa=a202_0x19de5b[_0x2ef329(0x1a8)](_0x151fec,_0x40e46e[_0x2ef329(0x192)][_0x2ef329(0x18a)](/\.tpl$/,'')));if(_0x40e46e[_0x2ef329(0x174)]())await a202_0x5d0765[_0x2ef329(0x196)]['mkdir'](_0xc400fa,{'recursive':!![]}),await this[_0x2ef329(0x189)](_0xf2e346,_0xc400fa,_0x2ec4f2,_0x564cb3);else _0x40e46e[_0x2ef329(0x19e)]()&&await this[_0x2ef329(0x178)](_0xf2e346,_0xc400fa,_0x2ec4f2,_0x564cb3);}}static async['processFile'](_0x316316,_0x1dddc2,_0x340fdd,_0x522c19){const _0x2406bc=a202_0x53793f,_0x19971a=a202_0x19de5b[_0x2406bc(0x190)](_0x316316)[_0x2406bc(0x195)]();_0x316316[_0x2406bc(0x16d)](_0x2406bc(0x1a7))&&(_0x1dddc2=_0x1dddc2[_0x2406bc(0x18a)](/\.tpl$/,''));const _0xffbd9c=['.tsx',_0x2406bc(0x1a3),_0x2406bc(0x181),_0x2406bc(0x1aa),_0x2406bc(0x170),_0x2406bc(0x1a9),_0x2406bc(0x193),'.scss',_0x2406bc(0x1a7)];if(_0xffbd9c[_0x2406bc(0x185)](_0x19971a)||_0x316316['endsWith'](_0x2406bc(0x1a7))){const _0x98af59=await a202_0x5d0765[_0x2406bc(0x196)]['readFile'](_0x316316,_0x2406bc(0x18e)),_0x2fb365=this['replaceContent'](_0x98af59,_0x340fdd,_0x522c19);await a202_0x5d0765[_0x2406bc(0x196)]['writeFile'](_0x1dddc2,_0x2fb365,_0x2406bc(0x18e));}else await a202_0x5d0765[_0x2406bc(0x196)]['copyFile'](_0x316316,_0x1dddc2);}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xe22c24,_0xabb11f){var _0x2f9bae=a203_0x53ed,_0xa31c5e=_0xe22c24();while(!![]){try{var _0x22df4f=parseInt(_0x2f9bae(0x160))/0x1+-parseInt(_0x2f9bae(0x166))/0x2+parseInt(_0x2f9bae(0x167))/0x3+parseInt(_0x2f9bae(0x162))/0x4*(parseInt(_0x2f9bae(0x161))/0x5)+-parseInt(_0x2f9bae(0x165))/0x6+-parseInt(_0x2f9bae(0x164))/0x7+parseInt(_0x2f9bae(0x163))/0x8;if(_0x22df4f===_0xabb11f)break;else _0xa31c5e['push'](_0xa31c5e['shift']());}catch(_0x54e585){_0xa31c5e['push'](_0xa31c5e['shift']());}}}(a203_0x2684,0x6ca19));function a203_0x53ed(_0x201586,_0x15a7c2){_0x201586=_0x201586-0x160;var _0x26840d=a203_0x2684();var _0x53ed1f=_0x26840d[_0x201586];return _0x53ed1f;}function a203_0x2684(){var _0x29f2bd=['1181788XObvSv','1742061PEjVUw','221894NmFGcB','76555PonUjq','72NgqQPj','7267624Xyuwow','671279PRcQKk','5129328PcraBo'];a203_0x2684=function(){return _0x29f2bd;};return a203_0x2684();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a204_0x57de(){var _0x29076d=['45jAVgHK','107592YxSjHC','277413tDDinE','1526517LBCSLb','345034guwPUN','10NtmZeJ','1117952tBjdrp','40mbFcld','2OmQTLe','43449umHVOZ','1294620rRBxDe'];a204_0x57de=function(){return _0x29076d;};return a204_0x57de();}(function(_0x2becb6,_0x58927d){var _0x84f985=a204_0x610c,_0x1e9faa=_0x2becb6();while(!![]){try{var _0xe28396=-parseInt(_0x84f985(0x111))/0x1*(-parseInt(_0x84f985(0x10a))/0x2)+parseInt(_0x84f985(0x10f))/0x3+-parseInt(_0x84f985(0x10c))/0x4+parseInt(_0x84f985(0x10d))/0x5*(parseInt(_0x84f985(0x10e))/0x6)+-parseInt(_0x84f985(0x10b))/0x7*(parseInt(_0x84f985(0x109))/0x8)+parseInt(_0x84f985(0x110))/0x9*(-parseInt(_0x84f985(0x112))/0xa)+parseInt(_0x84f985(0x108))/0xb;if(_0xe28396===_0x58927d)break;else _0x1e9faa['push'](_0x1e9faa['shift']());}catch(_0x3b0ec9){_0x1e9faa['push'](_0x1e9faa['shift']());}}}(a204_0x57de,0x2b05e));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a204_0x610c(_0x36343d,_0x26ecce){_0x36343d=_0x36343d-0x108;var _0x57de75=a204_0x57de();var _0x610cfd=_0x57de75[_0x36343d];return _0x610cfd;}export async function withActiveCookie(_0x5bf03e,_0x383a63){setActiveCookie(_0x5bf03e);try{return await _0x383a63();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a205_0x2095(_0x5052f3,_0x183dbf){_0x5052f3=_0x5052f3-0x151;var _0x4a9fe2=a205_0x4a9f();var _0x209576=_0x4a9fe2[_0x5052f3];return _0x209576;}(function(_0x437a89,_0x5a6c7a){var _0x25599d=a205_0x2095,_0x5ba09c=_0x437a89();while(!![]){try{var _0xf88811=-parseInt(_0x25599d(0x155))/0x1+parseInt(_0x25599d(0x154))/0x2*(-parseInt(_0x25599d(0x15a))/0x3)+parseInt(_0x25599d(0x159))/0x4+parseInt(_0x25599d(0x156))/0x5*(parseInt(_0x25599d(0x153))/0x6)+-parseInt(_0x25599d(0x158))/0x7*(-parseInt(_0x25599d(0x151))/0x8)+-parseInt(_0x25599d(0x157))/0x9+-parseInt(_0x25599d(0x152))/0xa;if(_0xf88811===_0x5a6c7a)break;else _0x5ba09c['push'](_0x5ba09c['shift']());}catch(_0x1edd4e){_0x5ba09c['push'](_0x5ba09c['shift']());}}}(a205_0x4a9f,0x81602));export function writeCliSideChannelLine(_0x1fe256){process['stderr']['write'](_0x1fe256+'\x0a');}function a205_0x4a9f(){var _0x4512f8=['239701rWEdZz','2950304ncpEEh','69RbwqXS','40mHzQmO','1277220SikxqH','148794cUzhIA','10466ymiiBJ','153118pivknk','185rZmtrU','8057097myOmvQ'];a205_0x4a9f=function(){return _0x4512f8;};return a205_0x4a9f();}
|