@lovrabet/rabetbase-cli 2.1.9 → 2.1.10-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/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -0
- 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/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/report.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 +2 -1
package/lib/utils/cdn-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5d6d28,_0x558307){const _0x4499d0=a181_0x43a2,_0xbcf01f=_0x5d6d28();while(!![]){try{const _0x5b03c0=parseInt(_0x4499d0(0x15a))/0x1+-parseInt(_0x4499d0(0x157))/0x2+-parseInt(_0x4499d0(0x159))/0x3+-parseInt(_0x4499d0(0x151))/0x4+-parseInt(_0x4499d0(0x153))/0x5*(-parseInt(_0x4499d0(0x150))/0x6)+-parseInt(_0x4499d0(0x156))/0x7+parseInt(_0x4499d0(0x158))/0x8*(parseInt(_0x4499d0(0x14b))/0x9);if(_0x5b03c0===_0x558307)break;else _0xbcf01f['push'](_0xbcf01f['shift']());}catch(_0x35b2b0){_0xbcf01f['push'](_0xbcf01f['shift']());}}}(a181_0x3238,0x67cd9));function a181_0x43a2(_0x25c343,_0x3d40da){_0x25c343=_0x25c343-0x14b;const _0x32381e=a181_0x3238();let _0x43a223=_0x32381e[_0x25c343];return _0x43a223;}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x269b9a=a181_0x43a2,_0x217d15=getTemplateBaseUrl(),_0x358927=[_0x217d15+_0x269b9a(0x152),_0x217d15+_0x269b9a(0x14f)];for(const _0x53602f of _0x358927){try{const _0x49e3e0=await fetch(_0x53602f,{'headers':{'Accept':_0x269b9a(0x14d)}});if(!_0x49e3e0['ok'])continue;const _0x37643f=await _0x49e3e0[_0x269b9a(0x14e)]();if(!_0x37643f[_0x269b9a(0x155)]?.[_0x269b9a(0x154)]||!_0x37643f[_0x269b9a(0x15c)]?.[_0x269b9a(0x14c)]?.[_0x269b9a(0x154)])continue;return _0x37643f;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a181_0x3238(){const _0x24d2d5=['stableVersion','cli','4028787ZPdxoV','1042628QzHcdF','1296968vxJwRN','1122720oHlFfq','136071VMEsYN','now','sdk','54sHSYhq','node','application/json','json','/config/index.json','90TlXIut','63040TspdLt','/config.json','267745TrCgIY'];a181_0x3238=function(){return _0x24d2d5;};return a181_0x3238();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x5c1521=a181_0x43a2,_0x3c8b4c=Date[_0x5c1521(0x15b)]();if(hasCachedConfig){const _0x4a7280=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x3c8b4c-cacheTime<_0x4a7280)return cachedConfig;}const _0x48cb1e=await fetchCdnConfig();return cachedConfig=_0x48cb1e,cacheTime=_0x3c8b4c,hasCachedConfig=!![],_0x48cb1e;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a182_0x147e27=a182_0x22ad;(function(_0x358d23,_0x4848f4){const _0x3336ca=a182_0x22ad,_0x424879=_0x358d23();while(!![]){try{const _0x2ea889=parseInt(_0x3336ca(0x206))/0x1*(-parseInt(_0x3336ca(0x1f6))/0x2)+parseInt(_0x3336ca(0x1fa))/0x3+-parseInt(_0x3336ca(0x21b))/0x4*(-parseInt(_0x3336ca(0x21a))/0x5)+-parseInt(_0x3336ca(0x1fe))/0x6*(parseInt(_0x3336ca(0x201))/0x7)+parseInt(_0x3336ca(0x202))/0x8*(parseInt(_0x3336ca(0x211))/0x9)+parseInt(_0x3336ca(0x209))/0xa+-parseInt(_0x3336ca(0x216))/0xb*(parseInt(_0x3336ca(0x1fc))/0xc);if(_0x2ea889===_0x4848f4)break;else _0x424879['push'](_0x424879['shift']());}catch(_0x188155){_0x424879['push'](_0x424879['shift']());}}}(a182_0x348b,0x9e404));function a182_0x22ad(_0x525227,_0x226351){_0x525227=_0x525227-0x1f4;const _0x348bb1=a182_0x348b();let _0x22ad1c=_0x348bb1[_0x525227];return _0x22ad1c;}import a182_0x2c3933 from'node:fs';import a182_0x53de3a from'node:path';import a182_0x4f4e04 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a182_0x147e27(0x217);function isNonNumericVersion(_0x310c35){const _0x26c2bc=a182_0x147e27,_0x40530f=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x40530f['some'](_0x23556c=>_0x23556c[_0x26c2bc(0x203)](_0x310c35));}function getInstalledVersion(_0x3282be,_0x46dc22){const _0xc6453b=a182_0x147e27;try{const _0x3c3b7d=a182_0x53de3a[_0xc6453b(0x207)](_0x3282be,'node_modules',_0x46dc22,_0xc6453b(0x1f5));if(a182_0x2c3933[_0xc6453b(0x208)](_0x3c3b7d)){const _0x2734f4=JSON['parse'](a182_0x2c3933[_0xc6453b(0x1f4)](_0x3c3b7d,_0xc6453b(0x1ff)));return _0x2734f4[_0xc6453b(0x213)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x142fe8=a182_0x147e27;try{const _0x4f045e=await getCdnConfig();return _0x4f045e?.[_0x142fe8(0x1f8)]?.[_0x142fe8(0x1f9)]?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x50e2fe=a182_0x147e27;try{const _0x58058a=await getCdnConfig();return _0x58058a?.['sdk']?.[_0x50e2fe(0x1f9)]?.[_0x50e2fe(0x210)]||'@lovrabet/sdk';}catch{return _0x50e2fe(0x1f7);}}export async function checkSdkVersion(_0x3b9231){const _0x5436ab=a182_0x147e27,_0x49fd9d=a182_0x53de3a['join'](_0x3b9231,'package.json'),[_0x47bda9,_0x4e91f6]=await Promise[_0x5436ab(0x200)]([getSdkStableVersion(),getSdkPackageName()]),_0xd76655=_0x47bda9||FALLBACK_MIN_SDK_VERSION;if(!a182_0x2c3933[_0x5436ab(0x208)](_0x49fd9d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xd76655,'packageName':_0x4e91f6,'stableVersion':_0x47bda9};try{const _0xabe3dc=JSON[_0x5436ab(0x20d)](a182_0x2c3933[_0x5436ab(0x1f4)](_0x49fd9d,_0x5436ab(0x1fb))),_0x42d583=_0xabe3dc[_0x5436ab(0x212)]||{},_0x21c4eb=_0xabe3dc['devDependencies']||{},_0x4252ca=_0x42d583[_0x4e91f6]||_0x21c4eb[_0x4e91f6];if(!_0x4252ca)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xd76655,'packageName':_0x4e91f6,'stableVersion':_0x47bda9};let _0x321aaa=getInstalledVersion(_0x3b9231,_0x4e91f6);!_0x321aaa&&(_0x321aaa=_0x4252ca);if(isNonNumericVersion(_0x4252ca))return{'installed':!![],'version':_0x321aaa,'needsUpgrade':![],'minVersion':_0xd76655,'packageName':_0x4e91f6,'stableVersion':_0x47bda9};const _0xbe0473=a182_0x4f4e04['coerce'](_0x321aaa),_0x19cac2=a182_0x4f4e04[_0x5436ab(0x215)](_0xd76655),_0x4bb318=_0xbe0473&&_0x19cac2?a182_0x4f4e04['lt'](_0xbe0473,_0x19cac2):![];return{'installed':!![],'version':_0x321aaa,'needsUpgrade':_0x4bb318,'minVersion':_0xd76655,'packageName':_0x4e91f6,'stableVersion':_0x47bda9};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xd76655,'packageName':_0x4e91f6,'stableVersion':_0x47bda9};}}function a182_0x348b(){const _0x123003=['readFileSync','package.json','555412BFPDvA','@lovrabet/sdk','sdk','node','3147681OKsUGO','utf8','442164wcNoel','\x1b[33m','4973334IBpsQG','utf-8','all','7MbOziN','72008xBaPZe','test','minVersion','latest','2ScgKaj','join','existsSync','5944190YRuChz','\x20\x20\x20Stable\x20version:\x20','stableVersion','\x1b[0m','parse','\x20\x20\x20Upgrade\x20command:\x20','↪\x20SDK\x20update\x20available','packageName','243mvYPLi','dependencies','version','log','coerce','44aOhLcc','1.2.0','devDependencies','needsUpgrade','10yWSnKc','586424DXhzdc'];a182_0x348b=function(){return _0x123003;};return a182_0x348b();}export function checkSdkVersionSync(_0x185a69){const _0x1a2cce=a182_0x147e27,_0x442c3f=a182_0x53de3a[_0x1a2cce(0x207)](_0x185a69,'package.json'),_0x1a229c=_0x1a2cce(0x1f7);if(!a182_0x2c3933['existsSync'](_0x442c3f))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1a229c,'stableVersion':null};try{const _0x5d5f88=JSON['parse'](a182_0x2c3933[_0x1a2cce(0x1f4)](_0x442c3f,_0x1a2cce(0x1fb))),_0x1cfb0a=_0x5d5f88[_0x1a2cce(0x212)]||{},_0x5853ab=_0x5d5f88[_0x1a2cce(0x218)]||{},_0x47c735=_0x1cfb0a[_0x1a229c]||_0x5853ab[_0x1a229c];if(!_0x47c735)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1a229c,'stableVersion':null};let _0x46d77d=getInstalledVersion(_0x185a69,_0x1a229c);!_0x46d77d&&(_0x46d77d=_0x47c735);if(isNonNumericVersion(_0x47c735))return{'installed':!![],'version':_0x46d77d,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1a229c,'stableVersion':null};const _0x1fdde0=a182_0x4f4e04['coerce'](_0x46d77d),_0x1f4a32=_0x1fdde0?a182_0x4f4e04['lt'](_0x1fdde0,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x46d77d,'needsUpgrade':_0x1f4a32,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1a229c,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1a229c,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x4342cf){const _0x157a17=a182_0x147e27;if(!_0x4342cf[_0x157a17(0x219)])return;const _0x648f88=_0x157a17(0x1fd),_0x4a8f6a=_0x157a17(0x20c),_0x1d7c05='\x1b[1m',_0x49768b=_0x4342cf[_0x157a17(0x210)]||_0x157a17(0x1f7),_0xe8f950=_0x4342cf[_0x157a17(0x20b)]||_0x4342cf[_0x157a17(0x204)],_0x1ccf96='npm\x20install\x20'+_0x49768b+'@'+(_0xe8f950||_0x157a17(0x205));console[_0x157a17(0x214)](),console[_0x157a17(0x214)](''+_0x648f88+_0x1d7c05+_0x157a17(0x20f)+_0x4a8f6a),console['log'](_0x648f88+'\x20\x20\x20Current\x20version:\x20'+_0x49768b+'@'+_0x4342cf[_0x157a17(0x213)]+_0x4a8f6a),console[_0x157a17(0x214)](_0x648f88+_0x157a17(0x20a)+_0xe8f950+_0x4a8f6a),console[_0x157a17(0x214)](_0x648f88+_0x157a17(0x20e)+_0x1ccf96+_0x4a8f6a),console[_0x157a17(0x214)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x14e667,_0x31a55b){const _0x1057a7=a183_0x46cd,_0x3838bd=_0x14e667();while(!![]){try{const _0x30793f=-parseInt(_0x1057a7(0x1c0))/0x1+-parseInt(_0x1057a7(0x1bc))/0x2*(parseInt(_0x1057a7(0x1b8))/0x3)+-parseInt(_0x1057a7(0x1cd))/0x4*(-parseInt(_0x1057a7(0x1b9))/0x5)+parseInt(_0x1057a7(0x1ae))/0x6+parseInt(_0x1057a7(0x1cf))/0x7+-parseInt(_0x1057a7(0x1b1))/0x8+-parseInt(_0x1057a7(0x1d7))/0x9*(-parseInt(_0x1057a7(0x1cc))/0xa);if(_0x30793f===_0x31a55b)break;else _0x3838bd['push'](_0x3838bd['shift']());}catch(_0x4fdfb0){_0x3838bd['push'](_0x3838bd['shift']());}}}(a183_0x20ae,0x3daa8));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a183_0x3f4c3c from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x3957e5){const _0x192989=a183_0x46cd,_0x1f9248=_0x3957e5[_0x192989(0x1b2)]||'latest';return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x1f9248;}function a183_0x20ae(){const _0x4f69dc=['minimumVersion','↪\x20Critical\x20CLI\x20upgrade\x20required','\x1b[33m','coerce','utf-8','\x1b[31m','validation','825057Vsavqb','1489338JFPaUL','join','\x20\x20\x20Recommended\x20stable:\x20','3734464SkBdcc','stableVersion','needsUpgrade','\x20\x20\x20','Minimum\x20required:\x20','upgradeMessage','\x20\x20\x20Stable\x20version:\x20','3IPJbsj','1140LSrFwY','belowMinimum','\x1b[0m','277382ztenKw','log','filter','minimumVersionMessage','291748XvJxaB','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','package.json','currentVersion','Current\x20version:\x20','\x1b[1m','↪\x20New\x20version\x20available','parse','1.0.0','\x20\x20\x20Minimum\x20required:\x20','50CWBnmg','7568ZCPdjT','version','83069ibjJBJ'];a183_0x20ae=function(){return _0x4f69dc;};return a183_0x20ae();}function getCurrentCliVersion(){const _0x450e7a=a183_0x46cd;try{const _0xa049e5=fileURLToPath(import.meta.url),_0x5a42f4=resolve(dirname(_0xa049e5),'../..'),_0x11f0a1=resolve(_0x5a42f4,_0x450e7a(0x1c4)),_0x416930=JSON[_0x450e7a(0x1c9)](readFileSync(_0x11f0a1,_0x450e7a(0x1d4)));return _0x416930[_0x450e7a(0x1ce)]||_0x450e7a(0x1ca);}catch{return _0x450e7a(0x1ca);}}function a183_0x46cd(_0x5a9dcb,_0x2726aa){_0x5a9dcb=_0x5a9dcb-0x1ae;const _0x20ae43=a183_0x20ae();let _0x46cda4=_0x20ae43[_0x5a9dcb];return _0x46cda4;}export async function checkCliVersion(){const _0x30d5f2=a183_0x46cd,_0x496f4d=getCurrentCliVersion(),_0xbd619=await getCliVersionPolicy(),_0x1baa31=_0xbd619?.[_0x30d5f2(0x1b2)]||null,_0x5d30cc=_0xbd619?.[_0x30d5f2(0x1d0)]||null;let _0x5917a4=![],_0x4a472f=![];const _0x243390=a183_0x3f4c3c[_0x30d5f2(0x1d3)](_0x496f4d);if(_0x243390&&_0x1baa31)try{const _0x2cf0ab=a183_0x3f4c3c[_0x30d5f2(0x1d3)](_0x1baa31);if(_0x2cf0ab)_0x5917a4=a183_0x3f4c3c['lt'](_0x243390,_0x2cf0ab);}catch{}if(_0x243390&&_0x5d30cc)try{const _0x4ece44=a183_0x3f4c3c[_0x30d5f2(0x1d3)](_0x5d30cc);if(_0x4ece44)_0x4a472f=a183_0x3f4c3c['lt'](_0x243390,_0x4ece44);}catch{}return _0x4a472f&&(_0x5917a4=!![]),{'currentVersion':_0x496f4d,'stableVersion':_0x1baa31,'minimumVersion':_0x5d30cc,'needsUpgrade':_0x5917a4,'belowMinimum':_0x4a472f,'isPreRelease':![],'upgradeMessage':_0xbd619?.['upgradeMessage'],'minimumVersionMessage':_0xbd619?.[_0x30d5f2(0x1bf)]};}export function printCliUpgradeWarning(_0x2ba85b){const _0x703849=a183_0x46cd;if(!_0x2ba85b[_0x703849(0x1b3)]&&!_0x2ba85b[_0x703849(0x1ba)])return;const _0x200945=_0x703849(0x1d5),_0x11562c=_0x703849(0x1d2),_0x3392e9=_0x703849(0x1bb),_0x2af508=_0x703849(0x1c7),_0x56caba=getCliUpgradeCommand(_0x2ba85b);console['log'](),_0x2ba85b[_0x703849(0x1ba)]?(console[_0x703849(0x1bd)](''+_0x200945+_0x2af508+_0x703849(0x1d1)+_0x3392e9),console[_0x703849(0x1bd)](_0x200945+_0x703849(0x1c3)+_0x2ba85b[_0x703849(0x1c5)]+_0x3392e9),_0x2ba85b[_0x703849(0x1d0)]&&console[_0x703849(0x1bd)](_0x200945+_0x703849(0x1cb)+_0x2ba85b[_0x703849(0x1d0)]+_0x3392e9),_0x2ba85b[_0x703849(0x1b2)]&&_0x2ba85b[_0x703849(0x1b2)]!==_0x2ba85b[_0x703849(0x1d0)]&&console['log'](_0x200945+_0x703849(0x1b0)+_0x2ba85b[_0x703849(0x1b2)]+_0x3392e9),_0x2ba85b[_0x703849(0x1bf)]&&console[_0x703849(0x1bd)](_0x200945+_0x703849(0x1b4)+_0x2ba85b[_0x703849(0x1bf)]+_0x3392e9),console[_0x703849(0x1bd)](_0x200945+_0x703849(0x1c2)+_0x56caba+_0x3392e9)):(console[_0x703849(0x1bd)](''+_0x11562c+_0x2af508+_0x703849(0x1c8)+_0x3392e9),console[_0x703849(0x1bd)](_0x11562c+_0x703849(0x1c3)+_0x2ba85b[_0x703849(0x1c5)]+_0x3392e9),console[_0x703849(0x1bd)](_0x11562c+_0x703849(0x1b7)+_0x2ba85b['stableVersion']+_0x3392e9),_0x2ba85b[_0x703849(0x1b6)]&&console[_0x703849(0x1bd)](_0x11562c+'\x20\x20\x20'+_0x2ba85b[_0x703849(0x1b6)]+_0x3392e9),console[_0x703849(0x1bd)](_0x11562c+'\x20\x20\x20Upgrade\x20command:\x20'+_0x56caba+_0x3392e9)),console[_0x703849(0x1bd)]();}export function assertCliVersionSupported(_0x321bfb){const _0x1ca628=a183_0x46cd;if(!_0x321bfb[_0x1ca628(0x1ba)])return;const _0x2f02e6=[_0x321bfb['minimumVersionMessage'],_0x1ca628(0x1c6)+_0x321bfb[_0x1ca628(0x1c5)],_0x321bfb[_0x1ca628(0x1d0)]?_0x1ca628(0x1b5)+_0x321bfb[_0x1ca628(0x1d0)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x321bfb)][_0x1ca628(0x1be)](Boolean)[_0x1ca628(0x1af)]('\x0a');throw CliErrors[_0x1ca628(0x1d6)](_0x1ca628(0x1c1),_0x2f02e6);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a184_0x376a(_0x110060,_0x578f5c){_0x110060=_0x110060-0x11e;const _0x259b4b=a184_0x259b();let _0x376a21=_0x259b4b[_0x110060];return _0x376a21;}(function(_0x55f2a1,_0x1f9c17){const _0x5a4c62=a184_0x376a,_0x47bd05=_0x55f2a1();while(!![]){try{const _0x45aa19=parseInt(_0x5a4c62(0x120))/0x1+-parseInt(_0x5a4c62(0x12b))/0x2*(-parseInt(_0x5a4c62(0x135))/0x3)+-parseInt(_0x5a4c62(0x12e))/0x4+parseInt(_0x5a4c62(0x122))/0x5*(-parseInt(_0x5a4c62(0x12c))/0x6)+parseInt(_0x5a4c62(0x121))/0x7+parseInt(_0x5a4c62(0x123))/0x8+parseInt(_0x5a4c62(0x12a))/0x9*(-parseInt(_0x5a4c62(0x134))/0xa);if(_0x45aa19===_0x1f9c17)break;else _0x47bd05['push'](_0x47bd05['shift']());}catch(_0x263901){_0x47bd05['push'](_0x47bd05['shift']());}}}(a184_0x259b,0x2eb3c));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0xc7bac4){const _0x52ed35=a184_0x376a;return typeof _0xc7bac4===_0x52ed35(0x125)&&_0xc7bac4[_0x52ed35(0x129)]()[_0x52ed35(0x12d)]>0x0?_0xc7bac4[_0x52ed35(0x129)]():null;}function normalizeCliVersionPolicy(_0x172e75){const _0xefabb5=a184_0x376a;if(!_0x172e75||typeof _0x172e75!=='object')return null;const _0x4411b5=_0x172e75,_0x28f49c=_0x4411b5[_0xefabb5(0x130)]&&typeof _0x4411b5['cli']===_0xefabb5(0x11e)?_0x4411b5[_0xefabb5(0x130)]:_0x4411b5,_0x279edc=pickString(_0x28f49c[_0xefabb5(0x132)])||pickString(_0x28f49c[_0xefabb5(0x11f)])||pickString(_0x28f49c[_0xefabb5(0x128)]),_0x5b735a=pickString(_0x28f49c[_0xefabb5(0x126)])||pickString(_0x28f49c[_0xefabb5(0x124)]);if(!_0x279edc&&!_0x5b735a)return null;return{'stableVersion':_0x279edc,'minimumVersion':_0x5b735a,'upgradeMessage':pickString(_0x28f49c['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x28f49c[_0xefabb5(0x133)])||undefined};}export async function fetchCliVersionPolicy(){const _0x4df95e=a184_0x376a,_0x5ba002=new AbortController(),_0x277926=setTimeout(()=>_0x5ba002[_0x4df95e(0x136)](),FETCH_TIMEOUT_MS);try{const _0x4d8a0f=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x5ba002[_0x4df95e(0x127)]});if(!_0x4d8a0f['ok'])return null;const _0x274a25=await _0x4d8a0f[_0x4df95e(0x12f)]();return normalizeCliVersionPolicy(_0x274a25);}catch{return null;}finally{clearTimeout(_0x277926);}}function a184_0x259b(){const _0x1c0567=['312826qXRQVL','192zwIMSp','length','598776qDJdJN','json','cli','now','stableVersion','minimumVersionMessage','2330uhQNbG','3fzeMyM','abort','object','latestVersion','180007jALzRu','720013zFBSSO','3310BhqZNY','2602256exiiGL','minVersion','string','minimumVersion','signal','recommendedVersion','trim','15543diIgbz'];a184_0x259b=function(){return _0x1c0567;};return a184_0x259b();}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x4b1f0c=a184_0x376a,_0x415c85=Date[_0x4b1f0c(0x131)]();if(hasCachedPolicy){const _0x772578=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x415c85-cacheTime<_0x772578)return cachedPolicy;}const _0x378c56=await fetchCliVersionPolicy();return cachedPolicy=_0x378c56,cacheTime=_0x415c85,hasCachedPolicy=!![],_0x378c56;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
|
package/lib/utils/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a185_0x280b34=a185_0x428e;function a185_0xdae4(){const _0x2fea1f=['4102190cqrsWp','project','428100xCUfbl','22944haHqRo','238278CduvvU','6280490OjwuVT','string','3529988idDdbP','7yhkaqF','1026goMXXt','481413gKVJcF','2iZdMQz','env','4AGvnBc'];a185_0xdae4=function(){return _0x2fea1f;};return a185_0xdae4();}(function(_0x283621,_0x15a243){const _0x33a157=a185_0x428e,_0x47a548=_0x283621();while(!![]){try{const _0x5c9bf3=parseInt(_0x33a157(0x166))/0x1+parseInt(_0x33a157(0x16d))/0x2*(parseInt(_0x33a157(0x16c))/0x3)+parseInt(_0x33a157(0x16f))/0x4*(parseInt(_0x33a157(0x170))/0x5)+-parseInt(_0x33a157(0x164))/0x6*(parseInt(_0x33a157(0x16a))/0x7)+parseInt(_0x33a157(0x165))/0x8*(parseInt(_0x33a157(0x16b))/0x9)+-parseInt(_0x33a157(0x167))/0xa+-parseInt(_0x33a157(0x169))/0xb;if(_0x5c9bf3===_0x15a243)break;else _0x47a548['push'](_0x47a548['shift']());}catch(_0x931862){_0x47a548['push'](_0x47a548['shift']());}}}(a185_0xdae4,0x80608));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a185_0x1a8393,getMultiAppConfigs as a185_0xe429ba,getTemplateBaseUrl as a185_0x371bab}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a185_0x428e(_0x4624fa,_0x3b4cb1){_0x4624fa=_0x4624fa-0x163;const _0xdae41f=a185_0xdae4();let _0x428e1=_0xdae41f[_0x4624fa];return _0x428e1;}export{isInProject}from'../context.js';export function readConfig(_0x36d6f5){const _0x19c2be=a185_0x428e,_0x3725ea=readRawConfig(_0x36d6f5);return _0x3725ea['env']&&typeof _0x3725ea[_0x19c2be(0x16e)]===_0x19c2be(0x168)&&initEnv(_0x3725ea[_0x19c2be(0x16e)]),_0x3725ea;}export function getConfigAppCode(){return a185_0x1a8393();}export function getMultiAppConfigs(_0x288d21=a185_0x280b34(0x163)){return a185_0xe429ba(_0x288d21);}export function getTemplateBaseUrl(){return a185_0x371bab();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xa44d9a,_0x156d94){const _0x93855b=a186_0x127d,_0x3570ce=_0xa44d9a();while(!![]){try{const _0x116f49=parseInt(_0x93855b(0xbe))/0x1*(parseInt(_0x93855b(0xc1))/0x2)+parseInt(_0x93855b(0xb8))/0x3+parseInt(_0x93855b(0xb7))/0x4+parseInt(_0x93855b(0xbf))/0x5*(-parseInt(_0x93855b(0xb6))/0x6)+parseInt(_0x93855b(0xb9))/0x7*(-parseInt(_0x93855b(0xbb))/0x8)+-parseInt(_0x93855b(0xbd))/0x9*(parseInt(_0x93855b(0xc0))/0xa)+-parseInt(_0x93855b(0xc3))/0xb;if(_0x116f49===_0x156d94)break;else _0x3570ce['push'](_0x3570ce['shift']());}catch(_0x37b2e3){_0x3570ce['push'](_0x3570ce['shift']());}}}(a186_0x4c97,0xc60b6));function a186_0x127d(_0x2d1b4f,_0x531559){_0x2d1b4f=_0x2d1b4f-0xb6;const _0x4c97f9=a186_0x4c97();let _0x127df6=_0x4c97f9[_0x2d1b4f];return _0x127df6;}function a186_0x4c97(){const _0x3c62ff=['366709knLQCG','copyFileSync','16cYCDBl','readdirSync','328131xBRtPK','1jscLcH','25XOOQii','10thkWat','809098rWrDES','mkdirSync','7794435knkAXk','error','isDirectory','join','name','104124iytYPu','4346944ZPudIQ','769479xoftkh'];a186_0x4c97=function(){return _0x3c62ff;};return a186_0x4c97();}import a186_0x144d83 from'node:path';import a186_0xeba1b0 from'node:fs';export async function copyDirectory(_0x344e0b,_0x490687){const _0x13e009=a186_0x127d;try{const _0x9d18bf=a186_0xeba1b0[_0x13e009(0xbc)](_0x344e0b,{'withFileTypes':!![]});a186_0xeba1b0[_0x13e009(0xc2)](_0x490687,{'recursive':!![]});for(const _0x4347c9 of _0x9d18bf){const _0x181c6a=a186_0x144d83[_0x13e009(0xc6)](_0x344e0b,_0x4347c9[_0x13e009(0xc7)]),_0x4775b4=a186_0x144d83['join'](_0x490687,_0x4347c9[_0x13e009(0xc7)]);_0x4347c9[_0x13e009(0xc5)]()?await copyDirectory(_0x181c6a,_0x4775b4):a186_0xeba1b0[_0x13e009(0xba)](_0x181c6a,_0x4775b4);}}catch(_0x4c0ffe){console[_0x13e009(0xc4)]('复制目录时出错:',_0x4c0ffe);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5c269b,_0x38a0bd){const _0x44d0f0=a187_0x390d,_0x5a7f35=_0x5c269b();while(!![]){try{const _0x551658=-parseInt(_0x44d0f0(0x7f))/0x1*(-parseInt(_0x44d0f0(0x78))/0x2)+parseInt(_0x44d0f0(0x85))/0x3*(-parseInt(_0x44d0f0(0x84))/0x4)+parseInt(_0x44d0f0(0x7e))/0x5*(parseInt(_0x44d0f0(0x76))/0x6)+parseInt(_0x44d0f0(0x80))/0x7*(parseInt(_0x44d0f0(0x74))/0x8)+parseInt(_0x44d0f0(0x77))/0x9*(parseInt(_0x44d0f0(0x7b))/0xa)+-parseInt(_0x44d0f0(0x79))/0xb+parseInt(_0x44d0f0(0x75))/0xc*(-parseInt(_0x44d0f0(0x7d))/0xd);if(_0x551658===_0x38a0bd)break;else _0x5a7f35['push'](_0x5a7f35['shift']());}catch(_0x529447){_0x5a7f35['push'](_0x5a7f35['shift']());}}}(a187_0x20a3,0x24a14));function toFiniteNumber(_0xbcf22e){const _0xa6292c=a187_0x390d;if(typeof _0xbcf22e===_0xa6292c(0x83)&&Number[_0xa6292c(0x7c)](_0xbcf22e))return _0xbcf22e;if(typeof _0xbcf22e===_0xa6292c(0x81)){const _0x1c3465=_0xbcf22e[_0xa6292c(0x7a)]();if(!_0x1c3465)return undefined;const _0x5ed6c5=Number(_0x1c3465);if(Number['isFinite'](_0x5ed6c5))return _0x5ed6c5;}return undefined;}function a187_0x20a3(){const _0x572491=['isFinite','124241fWNHfs','9595XtWiLc','122611vdkLfd','221326CqqHFH','string','object','number','36iPOaAx','49872tnyWCG','16CPLnlL','108yqlwmx','330AIBuOt','56106QEkpdl','2HtSmzH','1500235Qvlpqq','trim','370pQvaWR'];a187_0x20a3=function(){return _0x572491;};return a187_0x20a3();}function a187_0x390d(_0x5cf96d,_0x39abb2){_0x5cf96d=_0x5cf96d-0x74;const _0x20a3f3=a187_0x20a3();let _0x390d06=_0x20a3f3[_0x5cf96d];return _0x390d06;}export function normalizeEntityWithIdResponse(_0x4be5da){const _0x52e9db=a187_0x390d,_0x2724c5=toFiniteNumber(_0x4be5da);if(_0x2724c5!==undefined)return{'id':_0x2724c5,'entity':{'id':_0x2724c5}};if(!_0x4be5da||typeof _0x4be5da!==_0x52e9db(0x82))return{'id':undefined,'entity':{}};const _0x38f6dd={..._0x4be5da},_0x4a1ce7=toFiniteNumber(_0x38f6dd['id']);return _0x4a1ce7!==undefined&&(_0x38f6dd['id']=_0x4a1ce7),{'id':_0x4a1ce7,'entity':_0x38f6dd};}
|
package/lib/utils/file-utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x32e5f9,_0x4df74a){const _0x49a398=a188_0x17ad,_0x28eb1e=_0x32e5f9();while(!![]){try{const _0x59da52=parseInt(_0x49a398(0xfc))/0x1+-parseInt(_0x49a398(0xfa))/0x2+parseInt(_0x49a398(0xf8))/0x3+-parseInt(_0x49a398(0xfb))/0x4*(-parseInt(_0x49a398(0xf6))/0x5)+parseInt(_0x49a398(0xf7))/0x6*(parseInt(_0x49a398(0xfe))/0x7)+parseInt(_0x49a398(0xf9))/0x8+-parseInt(_0x49a398(0xfd))/0x9;if(_0x59da52===_0x4df74a)break;else _0x28eb1e['push'](_0x28eb1e['shift']());}catch(_0x2f5d0c){_0x28eb1e['push'](_0x28eb1e['shift']());}}}(a188_0x21c1,0x1fab1));function a188_0x21c1(){const _0x946075=['1864992FXuEIP','151438rALKqh','2096avaEOr','204496CvBLIS','6914637iyrBHF','35YTAQvo','2420RnOrXf','268086WCoMtx','177252DIhlxO'];a188_0x21c1=function(){return _0x946075;};return a188_0x21c1();}function a188_0x17ad(_0x471d58,_0x246d7b){_0x471d58=_0x471d58-0xf6;const _0x21c1f7=a188_0x21c1();let _0x17adb7=_0x21c1f7[_0x471d58];return _0x17adb7;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x1c7fd0,_0x1e5021){const _0x5d3fbb=statSync(_0x1c7fd0);if(_0x5d3fbb['isDirectory']()){!existsSync(_0x1e5021)&&mkdirSync(_0x1e5021,{'recursive':!![]});const _0x211477=readdirSync(_0x1c7fd0);for(const _0x582ce3 of _0x211477){await copyDir(join(_0x1c7fd0,_0x582ce3),join(_0x1e5021,_0x582ce3));}}else copyFileSync(_0x1c7fd0,_0x1e5021);}export function ensureDir(_0x5ae69b){!existsSync(_0x5ae69b)&&mkdirSync(_0x5ae69b,{'recursive':!![]});}export function pathExists(_0x571d12){return existsSync(_0x571d12);}
|
package/lib/utils/guides-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a189_0x59ad(_0x7f64f2,_0x2b040d){_0x7f64f2=_0x7f64f2-0x191;const _0x1c00bb=a189_0x1c00();let _0x59ad93=_0x1c00bb[_0x7f64f2];return _0x59ad93;}const a189_0x1a1488=a189_0x59ad;(function(_0x2c9da8,_0x3da6c6){const _0x162dd4=a189_0x59ad,_0x2e5b94=_0x2c9da8();while(!![]){try{const _0x9e8e1c=parseInt(_0x162dd4(0x1b4))/0x1+parseInt(_0x162dd4(0x1ad))/0x2*(-parseInt(_0x162dd4(0x196))/0x3)+parseInt(_0x162dd4(0x1b1))/0x4*(-parseInt(_0x162dd4(0x1a3))/0x5)+parseInt(_0x162dd4(0x1a1))/0x6+parseInt(_0x162dd4(0x1b3))/0x7*(parseInt(_0x162dd4(0x192))/0x8)+-parseInt(_0x162dd4(0x1a7))/0x9*(-parseInt(_0x162dd4(0x1b0))/0xa)+parseInt(_0x162dd4(0x1a6))/0xb*(-parseInt(_0x162dd4(0x197))/0xc);if(_0x9e8e1c===_0x3da6c6)break;else _0x2e5b94['push'](_0x2e5b94['shift']());}catch(_0xb3a43f){_0x2e5b94['push'](_0x2e5b94['shift']());}}}(a189_0x1c00,0x26aba));function a189_0x1c00(){const _0x2e9db6=['177492jqOmww','197898jqFkzI','object','88QArlMr','statusText','.md','.lovrabet/skill/guides','909XDErrs','62988CYwVHi','CDN\x20数据中缺少\x20skillTemplate','map','skillTemplate','push','/skills/guides.json','guides','status','utf-8','length','1612902DrzcwQ','entries','355PEQZrG','lastUpdated','.lovrabet','781cBRzGR','18063WlXwsh','join','replace','CDN\x20返回数据格式错误','extendContent','title','1110CZZzGd','cache','content','1180ijjXvO','15956DbsblO','trimEnd'];a189_0x1c00=function(){return _0x2e9db6;};return a189_0x1c00();}import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x1309e8=a189_0x59ad,_0x5643fe=getTemplateBaseUrl();return _0x5643fe+_0x1309e8(0x19c);}const CACHE_DIR=join(homedir(),a189_0x1a1488(0x1a5),a189_0x1a1488(0x1ae));export async function fetchGuidesFromCDN(){const _0x579d21=a189_0x1a1488,_0x2f5d7c=getGuidesCdnUrl(),_0x44adcc=await fetch(_0x2f5d7c,{'headers':{'Accept':'application/json'}});if(!_0x44adcc['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x44adcc[_0x579d21(0x19e)]+'\x20'+_0x44adcc[_0x579d21(0x193)]);const _0x5f59e5=await _0x44adcc['json']();if(!_0x5f59e5['guides']||typeof _0x5f59e5[_0x579d21(0x19d)]!==_0x579d21(0x191))throw new Error(_0x579d21(0x1aa));return _0x5f59e5;}export function writeGuidesToProject(_0x66bb40,_0x2e2bb0,_0x6ff999=a189_0x1a1488(0x195),_0x358796){const _0x3e7888=a189_0x1a1488,_0x162c69=join(_0x2e2bb0,_0x6ff999);mkdirSync(_0x162c69,{'recursive':!![]});for(const [_0xbda595,_0x48667e]of Object[_0x3e7888(0x1a2)](_0x66bb40['guides'])){let _0x2be36e=_0x48667e[_0x3e7888(0x1af)];_0x48667e['lastUpdated']&&(_0x2be36e=appendUpdateTime(_0x2be36e,_0x48667e[_0x3e7888(0x1a4)])),writeFileSync(join(_0x162c69,_0xbda595+_0x3e7888(0x194)),_0x2be36e,_0x3e7888(0x19f));}}export function appendUpdateTime(_0x2000b5,_0x1484b6){const _0x18cde4=a189_0x1a1488;return _0x2000b5=_0x2000b5[_0x18cde4(0x1a9)](/\n*>更新时间:.*$/m,''),_0x2000b5[_0x18cde4(0x1b2)]()+('\x0a\x0a>更新时间:'+_0x1484b6);}export function getSkillTemplate(_0x507add){const _0x20963f=a189_0x1a1488;return _0x507add[_0x20963f(0x19a)]?.[_0x20963f(0x1af)]||'';}export function appendExtendContents(_0x156ceb,_0x59b28c,_0x557c39){const _0x1d1e71=a189_0x1a1488,_0x176d06=[];for(const [,_0x425da2]of Object[_0x1d1e71(0x1a2)](_0x59b28c[_0x1d1e71(0x19d)])){_0x425da2[_0x1d1e71(0x1ab)]&&_0x176d06[_0x1d1e71(0x19b)](_0x425da2['extendContent']['trimEnd']());}if(_0x176d06['length']===0x0)return _0x156ceb;return _0x156ceb[_0x1d1e71(0x1b2)]()+'\x0a\x0a'+_0x176d06[_0x1d1e71(0x1a8)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x1a03da,_0x5e8026,_0x5426ae){const _0x3e3dd2=a189_0x1a1488,_0x525d17=getSkillTemplate(_0x1a03da);if(!_0x525d17)throw new Error(_0x3e3dd2(0x198));const _0x33a4f0=dirname(_0x5e8026);mkdirSync(_0x33a4f0,{'recursive':!![]});let _0x3d2ce4=_0x525d17[_0x3e3dd2(0x1a9)](/\{\{IDE_NAME\}\}/g,_0x5426ae);_0x3d2ce4=appendExtendContents(_0x3d2ce4,_0x1a03da),_0x1a03da[_0x3e3dd2(0x19a)][_0x3e3dd2(0x1a4)]&&(_0x3d2ce4=appendUpdateTime(_0x3d2ce4,_0x1a03da[_0x3e3dd2(0x19a)]['lastUpdated'])),writeFileSync(_0x5e8026,_0x3d2ce4,_0x3e3dd2(0x19f));}export async function installGuides(_0x4abf60){const _0x91ff49=a189_0x1a1488,_0x40f40e=await fetchGuidesFromCDN();return writeGuidesToProject(_0x40f40e,_0x4abf60),Object['keys'](_0x40f40e[_0x91ff49(0x19d)])[_0x91ff49(0x1a0)];}export function getGuidesSummary(_0x3ec987){const _0x4b93cb=a189_0x1a1488;return Object[_0x4b93cb(0x1a2)](_0x3ec987['guides'])[_0x4b93cb(0x199)](([_0xdba8e1,_0x7b3a08])=>({'key':_0xdba8e1,'title':_0x7b3a08[_0x4b93cb(0x1ac)],'path':_0x7b3a08['path']}));}
|
package/lib/utils/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x49a4e9,_0x59acba){const _0x428499=a190_0x4a22,_0x4c341b=_0x49a4e9();while(!![]){try{const _0x21ec8c=parseInt(_0x428499(0x97))/0x1*(parseInt(_0x428499(0xa2))/0x2)+-parseInt(_0x428499(0x9a))/0x3*(parseInt(_0x428499(0x9f))/0x4)+-parseInt(_0x428499(0xa9))/0x5*(-parseInt(_0x428499(0xa3))/0x6)+-parseInt(_0x428499(0xab))/0x7*(parseInt(_0x428499(0xac))/0x8)+parseInt(_0x428499(0x9d))/0x9+parseInt(_0x428499(0xb5))/0xa*(-parseInt(_0x428499(0xa0))/0xb)+-parseInt(_0x428499(0xb1))/0xc*(-parseInt(_0x428499(0x95))/0xd);if(_0x21ec8c===_0x59acba)break;else _0x4c341b['push'](_0x4c341b['shift']());}catch(_0x42f1a0){_0x4c341b['push'](_0x4c341b['shift']());}}}(a190_0x129a,0x7f385));function a190_0x129a(){const _0x442a05=['statusText','abort','ECONNRESET','156FFqsfH','fetch','log','url','950850RQCjIy','1137383ZQJLmP','get','1bsffru','content-type','*\x20请求失败,','898761KUuadh','headers','text','7330680XmNGrO','AbortError','12HKzpEH','99JHFPLQ','TypeError','894938TgShZO','4792926oeMJRU','name','ms\x20后进行第\x20','message','ENOTFOUND','includes','5ltzkvG','\x20次重试...','88466ckSjYz','584IVzgIG','Request\x20failed'];a190_0x129a=function(){return _0x442a05;};return a190_0x129a();}function a190_0x4a22(_0x1980f2,_0x31cfce){_0x1980f2=_0x1980f2-0x95;const _0x129a29=a190_0x129a();let _0x4a220c=_0x129a29[_0x1980f2];return _0x4a220c;}export async function httpRequest(_0x1ee9cd,_0x1ea524={}){const _0x10c90b=a190_0x4a22,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x1ea524;let _0x3ed114=null;for(let _0x314c9a=0x0;_0x314c9a<=retries;_0x314c9a++){try{const _0x88df66=new AbortController(),_0x1ae620=setTimeout(()=>_0x88df66[_0x10c90b(0xaf)](),timeout),_0x5f1477=await fetch(_0x1ee9cd,{'headers':headers,'signal':_0x88df66['signal']});clearTimeout(_0x1ae620);let _0x2d1bd3;const _0x89574b=_0x5f1477[_0x10c90b(0x9b)][_0x10c90b(0x96)](_0x10c90b(0x98));return _0x89574b?.[_0x10c90b(0xa8)]('application/json')?_0x2d1bd3=await _0x5f1477['json']():_0x2d1bd3=await _0x5f1477[_0x10c90b(0x9c)](),{'ok':_0x5f1477['ok'],'status':_0x5f1477['status'],'statusText':_0x5f1477[_0x10c90b(0xae)],'data':_0x2d1bd3,'headers':_0x5f1477[_0x10c90b(0x9b)],'url':_0x5f1477[_0x10c90b(0xb4)],'text':()=>_0x5f1477['text']()};}catch(_0x352286){_0x3ed114=_0x352286 instanceof Error?_0x352286:new Error(String(_0x352286));if(_0x314c9a===retries)break;if(shouldRetry(_0x352286)){console[_0x10c90b(0xb3)](_0x10c90b(0x99)+retryDelay+_0x10c90b(0xa5)+(_0x314c9a+0x1)+_0x10c90b(0xaa)),await sleep(retryDelay);continue;}else break;}}throw _0x3ed114||new Error(_0x10c90b(0xad));}function shouldRetry(_0x2ac381){const _0xa7d86a=a190_0x4a22;if(_0x2ac381 instanceof Error){if(_0x2ac381[_0xa7d86a(0xa4)]===_0xa7d86a(0x9e))return![];if(_0x2ac381[_0xa7d86a(0xa4)]===_0xa7d86a(0xa1)&&_0x2ac381[_0xa7d86a(0xa6)][_0xa7d86a(0xa8)](_0xa7d86a(0xb2)))return!![];if(_0x2ac381[_0xa7d86a(0xa6)]['includes'](_0xa7d86a(0xb0)))return!![];if(_0x2ac381[_0xa7d86a(0xa6)]['includes'](_0xa7d86a(0xa7)))return![];}return![];}function sleep(_0x4e5c79){return new Promise(_0x474e40=>setTimeout(_0x474e40,_0x4e5c79));}export function validateUrl(_0x4c8fdd){try{return new URL(_0x4c8fdd),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5d1c82,_0x543692){const _0x120475=a191_0x4e8e,_0x2809dd=_0x5d1c82();while(!![]){try{const _0x4f59ae=parseInt(_0x120475(0x11d))/0x1+-parseInt(_0x120475(0x119))/0x2*(parseInt(_0x120475(0x124))/0x3)+-parseInt(_0x120475(0x11f))/0x4+-parseInt(_0x120475(0x123))/0x5+-parseInt(_0x120475(0x11c))/0x6*(parseInt(_0x120475(0x120))/0x7)+-parseInt(_0x120475(0x117))/0x8+parseInt(_0x120475(0x11b))/0x9;if(_0x4f59ae===_0x543692)break;else _0x2809dd['push'](_0x2809dd['shift']());}catch(_0x3516bb){_0x2809dd['push'](_0x2809dd['shift']());}}}(a191_0xdb9f,0xc7da7));function a191_0xdb9f(){const _0x1661c7=['1984ERPMUc','isRaw','41450661wQocPx','1349904Oazzqn','172569MhMrBb','stdin','6239604XuNXlC','28xswRMr','true','isTTY','4673880CWHpek','453NJGdPT','setRawMode','3321552qNXDZd','nonInteractive'];a191_0xdb9f=function(){return _0x1661c7;};return a191_0xdb9f();}function env(_0x2188f9){return process.env[`RABETBASE_${_0x2188f9}`]||process.env[`LOVRABET_${_0x2188f9}`]||undefined;}export function isNonInteractive(_0x4cd933){const _0x4c2633=a191_0x4e8e;return!!(_0x4cd933[_0x4c2633(0x118)]||_0x4cd933['ci']||env('CI')===_0x4c2633(0x121)||process.env.CI==='true'||!process['stdout'][_0x4c2633(0x122)]||!isStdinRawModeSupported());}function a191_0x4e8e(_0x4a932a,_0x803525){_0x4a932a=_0x4a932a-0x116;const _0xdb9f0f=a191_0xdb9f();let _0x4e8eea=_0xdb9f0f[_0x4a932a];return _0x4e8eea;}function isStdinRawModeSupported(){const _0x1218ff=a191_0x4e8e;if(!process[_0x1218ff(0x11e)][_0x1218ff(0x122)])return![];try{const _0x8fbc3=process['stdin'][_0x1218ff(0x11a)];return process[_0x1218ff(0x11e)]['setRawMode'](!![]),process[_0x1218ff(0x11e)][_0x1218ff(0x116)](_0x8fbc3??![]),!![];}catch{return![];}}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a192_0x3aa673=a192_0x493f;(function(_0x3620ef,_0x4d4a0b){const _0x4f0313=a192_0x493f,_0x40c69d=_0x3620ef();while(!![]){try{const _0x52edc0=-parseInt(_0x4f0313(0x117))/0x1+parseInt(_0x4f0313(0x111))/0x2*(parseInt(_0x4f0313(0x122))/0x3)+parseInt(_0x4f0313(0x128))/0x4+parseInt(_0x4f0313(0xfe))/0x5*(-parseInt(_0x4f0313(0x118))/0x6)+parseInt(_0x4f0313(0xfd))/0x7+-parseInt(_0x4f0313(0x114))/0x8*(parseInt(_0x4f0313(0x109))/0x9)+-parseInt(_0x4f0313(0x125))/0xa*(-parseInt(_0x4f0313(0x131))/0xb);if(_0x52edc0===_0x4d4a0b)break;else _0x40c69d['push'](_0x40c69d['shift']());}catch(_0x22d070){_0x40c69d['push'](_0x40c69d['shift']());}}}(a192_0xc26b,0x27d5e));import a192_0x5a0345 from'winston';function a192_0x493f(_0x20b452,_0x57b12f){_0x20b452=_0x20b452-0xfc;const _0xc26b13=a192_0xc26b();let _0x493f3a=_0xc26b13[_0x20b452];return _0x493f3a;}import a192_0x4d5562 from'node:fs';import a192_0xbe8eeb from'node:path';class Logger{[a192_0x3aa673(0xff)];['logFilePath'];['currentRawCommand']='';constructor(){this['logFilePath']='';}['setRawCommand'](_0x354e4b){const _0x12a833=a192_0x3aa673;this[_0x12a833(0x11c)]=_0x354e4b;}[a192_0x3aa673(0x100)](){const _0x1904a9=a192_0x3aa673,_0x1079c0=a192_0xbe8eeb[_0x1904a9(0x11f)](this[_0x1904a9(0x115)]);!a192_0x4d5562['existsSync'](_0x1079c0)&&a192_0x4d5562[_0x1904a9(0xfc)](_0x1079c0,{'recursive':!![]});const _0x33e542=a192_0x5a0345[_0x1904a9(0x107)]['combine'](a192_0x5a0345['format'][_0x1904a9(0x105)](),a192_0x5a0345[_0x1904a9(0x107)]['errors']({'stack':!![]}),a192_0x5a0345['format'][_0x1904a9(0x124)](_0x4435b3=>{const _0x24d5ea=_0x1904a9,_0x5a45fe={'timestamp':_0x4435b3['timestamp']||new Date()[_0x24d5ea(0x101)](),'level':_0x4435b3[_0x24d5ea(0x110)]||_0x24d5ea(0x130),'command':_0x4435b3[_0x24d5ea(0x120)]||'unknown','rawCommand':_0x4435b3[_0x24d5ea(0x108)]||this[_0x24d5ea(0x11c)]||undefined,'message':_0x4435b3[_0x24d5ea(0x10d)]||'','duration':_0x4435b3[_0x24d5ea(0x12d)]||undefined,'details':_0x4435b3[_0x24d5ea(0x12f)]||undefined};return JSON[_0x24d5ea(0x119)](_0x5a45fe);}));this[_0x1904a9(0xff)]=a192_0x5a0345[_0x1904a9(0x11b)]({'level':_0x1904a9(0x130),'format':_0x33e542,'transports':[new a192_0x5a0345['transports'][(_0x1904a9(0x129))]({'filename':this[_0x1904a9(0x115)],'level':_0x1904a9(0x130)})],'silent':![]}),a192_0x5a0345[_0x1904a9(0x132)]({'success':_0x1904a9(0x12e),'error':'red','warn':'yellow','info':_0x1904a9(0x133)});}[a192_0x3aa673(0x12a)](_0x57e265){const _0x545189=a192_0x3aa673;this[_0x545189(0x115)]=a192_0xbe8eeb[_0x545189(0x11d)](_0x57e265,_0x545189(0x127)),this[_0x545189(0xff)]&&this[_0x545189(0xff)]['clear'](),this['initWinstonLogger']();}[a192_0x3aa673(0x130)](_0x4ab5d0,_0x6e50cd,_0x1152d4){const _0x746e20=a192_0x3aa673;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x746e20(0xff)][_0x746e20(0x130)](_0x6e50cd,{'command':_0x4ab5d0,'details':_0x1152d4});}[a192_0x3aa673(0x10e)](_0x92110b,_0x180875,_0x36d18d,_0x1f46f7){const _0x526e79=a192_0x3aa673;if(!this[_0x526e79(0x115)]||!this[_0x526e79(0xff)])return;this[_0x526e79(0xff)]['log'](_0x526e79(0x130),_0x180875,{'level':_0x526e79(0x10e),'command':_0x92110b,'duration':_0x36d18d,'details':_0x1f46f7});}[a192_0x3aa673(0x10b)](_0x72e5,_0x372af3,_0x7cb308){const _0x277ddf=a192_0x3aa673;if(!this[_0x277ddf(0x115)]||!this[_0x277ddf(0xff)])return;this[_0x277ddf(0xff)]['error'](_0x372af3,{'command':_0x72e5,'details':_0x7cb308});}[a192_0x3aa673(0x123)](_0x24f4d7,_0x1a7570,_0x13b377){const _0x677829=a192_0x3aa673;if(!this[_0x677829(0x115)]||!this[_0x677829(0xff)])return;this[_0x677829(0xff)]['warn'](_0x1a7570,{'command':_0x24f4d7,'details':_0x13b377});}async[a192_0x3aa673(0x104)](_0x120167,_0x24283a,_0x94a9f0){const _0x913471=a192_0x3aa673,_0x2c3e32=Date[_0x913471(0x126)]();this['info'](_0x120167,'开始执行:\x20'+_0x24283a);try{const _0x5c9767=await _0x94a9f0(),_0x1a2128=Date[_0x913471(0x126)]()-_0x2c3e32;return this['success'](_0x120167,_0x913471(0x10c)+_0x24283a,_0x1a2128),_0x5c9767;}catch(_0xfb3564){const _0xc8b411=Date[_0x913471(0x126)]()-_0x2c3e32;this['error'](_0x120167,_0x913471(0x10f)+_0x24283a,{'error':_0xfb3564 instanceof Error?_0xfb3564['message']:String(_0xfb3564),'duration':_0xc8b411});throw _0xfb3564;}}['readLogs'](){const _0xad54ed=a192_0x3aa673;try{if(!a192_0x4d5562[_0xad54ed(0x106)](this['logFilePath']))return[];const _0x5c42fa=a192_0x4d5562[_0xad54ed(0x121)](this[_0xad54ed(0x115)],_0xad54ed(0x113));return _0x5c42fa['split']('\x0a')[_0xad54ed(0x112)](_0x5c741e=>_0x5c741e[_0xad54ed(0x12c)]())[_0xad54ed(0x102)](_0x28e923=>JSON[_0xad54ed(0x11a)](_0x28e923));}catch(_0x1569ab){return console[_0xad54ed(0x123)](_0xad54ed(0x103),_0x1569ab),[];}}[a192_0x3aa673(0x11e)](){const _0x18a12e=a192_0x3aa673;try{a192_0x4d5562[_0x18a12e(0x106)](this[_0x18a12e(0x115)])&&a192_0x4d5562[_0x18a12e(0x12b)](this[_0x18a12e(0x115)],'','utf8');}catch(_0x37bc8b){console['warn'](_0x18a12e(0x116),_0x37bc8b);}}[a192_0x3aa673(0x10a)](){const _0x37bc1b=a192_0x3aa673;return this[_0x37bc1b(0xff)];}}function a192_0xc26b(){const _0x1c0921=['330vPTdei','winstonLogger','initWinstonLogger','toISOString','map','Failed\x20to\x20read\x20logs:','logTask','timestamp','existsSync','format','rawCommand','70731ciPWRF','getWinstonInstance','error','完成:\x20','message','success','失败:\x20','level','6bTTSgG','filter','utf8','8FrcCxB','logFilePath','Failed\x20to\x20clear\x20logs:','206291hVVNeE','22140EmOQjX','stringify','parse','createLogger','currentRawCommand','join','clearLogs','dirname','command','readFileSync','58716HyiNCT','warn','printf','37790LQbRkm','now','.lovrabet.log','267116YhJjnr','File','setLogPath','writeFileSync','trim','duration','green','details','info','1133ffJGMV','addColors','blue','mkdirSync','742868yweOzD'];a192_0xc26b=function(){return _0x1c0921;};return a192_0xc26b();}export const logger=new Logger();
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a193_0x3a09(){const _0x21126e=['560310QpYcZp','821495FFAGcu','1382484dLbrug','5USmYmF','validation','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','--params\x20must\x20be\x20a\x20JSON\x20object','18dmgUam','1889019lhBDVd','1683908HUFtlt','isArray','679cAmFhx','6334010KoqYAX','11512PXUcYa'];a193_0x3a09=function(){return _0x21126e;};return a193_0x3a09();}function a193_0x197b(_0x19b380,_0x1d2bdb){_0x19b380=_0x19b380-0x197;const _0x3a0994=a193_0x3a09();let _0x197bf2=_0x3a0994[_0x19b380];return _0x197bf2;}(function(_0x4bb84b,_0xe287fd){const _0x2ccdb7=a193_0x197b,_0x2afb54=_0x4bb84b();while(!![]){try{const _0x1cc499=-parseInt(_0x2ccdb7(0x19e))/0x1+parseInt(_0x2ccdb7(0x19d))/0x2+parseInt(_0x2ccdb7(0x197))/0x3+parseInt(_0x2ccdb7(0x198))/0x4*(-parseInt(_0x2ccdb7(0x1a0))/0x5)+-parseInt(_0x2ccdb7(0x19f))/0x6+parseInt(_0x2ccdb7(0x19a))/0x7*(-parseInt(_0x2ccdb7(0x19c))/0x8)+parseInt(_0x2ccdb7(0x1a4))/0x9*(parseInt(_0x2ccdb7(0x19b))/0xa);if(_0x1cc499===_0xe287fd)break;else _0x2afb54['push'](_0x2afb54['shift']());}catch(_0x30bb66){_0x2afb54['push'](_0x2afb54['shift']());}}}(a193_0x3a09,0x89bc1));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x4e94ed){const _0x436c43=a193_0x197b;if(!_0x4e94ed)return undefined;let _0x5a7561;try{_0x5a7561=JSON['parse'](_0x4e94ed);}catch{throw CliErrors[_0x436c43(0x1a1)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x4e94ed);}if(!_0x5a7561||typeof _0x5a7561!=='object'||Array[_0x436c43(0x199)](_0x5a7561))throw CliErrors['validation'](_0x436c43(0x1a3),_0x436c43(0x1a2));return _0x5a7561;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a194_0x3fc36b=a194_0x4c7c;function a194_0x1c95(){const _0x54b8a6=['.cmd','5482764cLbaJv','2884620LLcTtd','win32','2hwYega','463959GdjWxA','305834KNudqS','8562176xKNJTQ','6XpkYCK','112396EdKtBG','22YvprTY','7072933xXezVM','platform','130sCeKYY','50BlKlIK'];a194_0x1c95=function(){return _0x54b8a6;};return a194_0x1c95();}function a194_0x4c7c(_0x44db5f,_0x591655){_0x44db5f=_0x44db5f-0x1c6;const _0x1c9520=a194_0x1c95();let _0x4c7c70=_0x1c9520[_0x44db5f];return _0x4c7c70;}(function(_0x4dcf09,_0xdfe910){const _0x228542=a194_0x4c7c,_0x8647cb=_0x4dcf09();while(!![]){try{const _0x15b1a4=parseInt(_0x228542(0x1cf))/0x1+-parseInt(_0x228542(0x1cd))/0x2*(parseInt(_0x228542(0x1cb))/0x3)+parseInt(_0x228542(0x1d2))/0x4*(-parseInt(_0x228542(0x1c8))/0x5)+-parseInt(_0x228542(0x1d1))/0x6*(parseInt(_0x228542(0x1d4))/0x7)+parseInt(_0x228542(0x1d0))/0x8+-parseInt(_0x228542(0x1ce))/0x9*(-parseInt(_0x228542(0x1c7))/0xa)+-parseInt(_0x228542(0x1d3))/0xb*(-parseInt(_0x228542(0x1ca))/0xc);if(_0x15b1a4===_0xdfe910)break;else _0x8647cb['push'](_0x8647cb['shift']());}catch(_0x80d44e){_0x8647cb['push'](_0x8647cb['shift']());}}}(a194_0x1c95,0xaca2a));export const isWindows=process[a194_0x3fc36b(0x1c6)]===a194_0x3fc36b(0x1cc);export function resolveNpmBin(_0x1d6f09){const _0x16d96d=a194_0x3fc36b;return isWindows?_0x1d6f09+_0x16d96d(0x1c9):_0x1d6f09;}
|
package/lib/utils/rules-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x95457d,_0x2aace3){const _0x9a30ee=a195_0x4705,_0x1a8dbe=_0x95457d();while(!![]){try{const _0x39605c=parseInt(_0x9a30ee(0x8e))/0x1*(parseInt(_0x9a30ee(0x91))/0x2)+-parseInt(_0x9a30ee(0x8a))/0x3*(-parseInt(_0x9a30ee(0x8d))/0x4)+parseInt(_0x9a30ee(0x98))/0x5+-parseInt(_0x9a30ee(0x99))/0x6*(-parseInt(_0x9a30ee(0x92))/0x7)+parseInt(_0x9a30ee(0x97))/0x8+-parseInt(_0x9a30ee(0x90))/0x9*(-parseInt(_0x9a30ee(0x9a))/0xa)+-parseInt(_0x9a30ee(0x88))/0xb*(parseInt(_0x9a30ee(0x93))/0xc);if(_0x39605c===_0x2aace3)break;else _0x1a8dbe['push'](_0x1a8dbe['shift']());}catch(_0x2c6a78){_0x1a8dbe['push'](_0x1a8dbe['shift']());}}}(a195_0x4229,0xb3548));function a195_0x4229(){const _0x2b269c=['6226847XTIbOL','CDN\x20请求失败:\x20','13317wjhDmq','/rules/rules.json','content','692lRRpCU','45719SOehKb','lastUpdated','3087ZfvHLU','34wAUozh','21dQKMLI','60vSuhhx','utf-8','statusText','application/json','4971680RuMDXk','3762075ckOcVV','1219722NZGDYS','1050uhFZeZ','status','.cursor/rules','catch','本地模板文件不存在:\x20','json','agents.md','string'];a195_0x4229=function(){return _0x2b269c;};return a195_0x4229();}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 _0x4cba15=a195_0x4705,_0x73fa85=getTemplateBaseUrl();return _0x73fa85+_0x4cba15(0x8b);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x2bbdae=a195_0x4705,_0x365f12=getRulesCdnUrl(),_0x1737cb=await fetch(_0x365f12,{'headers':{'Accept':_0x2bbdae(0x96)}});if(!_0x1737cb['ok'])throw new Error(_0x2bbdae(0x89)+_0x1737cb[_0x2bbdae(0x9b)]+'\x20'+_0x1737cb[_0x2bbdae(0x95)]);const _0x171a66=await _0x1737cb[_0x2bbdae(0x85)]();if(!_0x171a66[_0x2bbdae(0x8c)]||typeof _0x171a66[_0x2bbdae(0x8c)]!==_0x2bbdae(0x87))throw new Error('CDN\x20返回数据格式错误');return _0x171a66;}export async function getRulesContent(){try{const _0x604ce0=await fetchRulesFromCDN();return _0x604ce0['content'];}catch{return readLocalTemplate();}}function a195_0x4705(_0x57f06c,_0x2f727d){_0x57f06c=_0x57f06c-0x84;const _0x4229e8=a195_0x4229();let _0x470543=_0x4229e8[_0x57f06c];return _0x470543;}export function readLocalTemplate(){const _0x2f0f1f=a195_0x4705;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error(_0x2f0f1f(0x84)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x79f000){const _0x240e36=a195_0x4705,_0x2a5d4f=await fetchRulesFromCDN()[_0x240e36(0x9d)](()=>null);let _0x26c2f1;_0x2a5d4f?(_0x26c2f1=_0x2a5d4f[_0x240e36(0x8c)],_0x2a5d4f[_0x240e36(0x8f)]&&(_0x26c2f1=appendUpdateTime(_0x26c2f1,_0x2a5d4f[_0x240e36(0x8f)]))):_0x26c2f1=readLocalTemplate();const _0x291d3b=dirname(_0x79f000);!existsSync(_0x291d3b)&&mkdirSync(_0x291d3b,{'recursive':!![]}),writeFileSync(_0x79f000,_0x26c2f1,_0x240e36(0x94));}export async function copyRulesToCursor(_0xcf48c){const _0x1be397=a195_0x4705,_0x4a7fb3=join(_0xcf48c,_0x1be397(0x9c)),_0x4e061b=join(_0x4a7fb3,'lovrabet_rules.mdc');if(existsSync(_0x4e061b))return![];return await writeRulesFile(_0x4e061b),!![];}export async function copyRulesToAgentsMd(_0x39703b){const _0x24bfd8=a195_0x4705,_0x3d9ba1=join(_0x39703b,_0x24bfd8(0x86));if(existsSync(_0x3d9ba1))return![];return await writeRulesFile(_0x3d9ba1),!![];}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x518ed6){return new Promise(_0x2df24e=>setTimeout(_0x2df24e,_0x518ed6));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a197_0x3db2c2=a197_0x9ba9;(function(_0x196304,_0x4d55bc){const _0x3ee5ff=a197_0x9ba9,_0x275510=_0x196304();while(!![]){try{const _0x1d3656=parseInt(_0x3ee5ff(0x1a3))/0x1+-parseInt(_0x3ee5ff(0x184))/0x2+-parseInt(_0x3ee5ff(0x1a1))/0x3+-parseInt(_0x3ee5ff(0x18b))/0x4+-parseInt(_0x3ee5ff(0x19d))/0x5*(-parseInt(_0x3ee5ff(0x1ae))/0x6)+-parseInt(_0x3ee5ff(0x194))/0x7+parseInt(_0x3ee5ff(0x1b2))/0x8;if(_0x1d3656===_0x4d55bc)break;else _0x275510['push'](_0x275510['shift']());}catch(_0x3f4bbd){_0x275510['push'](_0x275510['shift']());}}}(a197_0xfd58,0x45295));import a197_0xe99d8 from'node:fs';function a197_0x9ba9(_0x52ef66,_0x527d78){_0x52ef66=_0x52ef66-0x176;const _0xfd58da=a197_0xfd58();let _0x9ba9fb=_0xfd58da[_0x52ef66];return _0x9ba9fb;}import a197_0x5d883c from'node:path';import{logger}from'../utils/logger.js';function a197_0xfd58(){const _0x3ebb4e=['readdir','.md','模板内容替换完成','datasetCode','getFullYear','YourModel','3120831ThghTC','padStart','开始处理模板内容替换','模板内容替换失败','tableName','promises','includes','split','LOVRABET','22775VITxOL','pad','toDisplayTitle','readFile','636783tFYYJw','push','425073NzLzTU','.tpl','isDirectory','name:\x20\x22','toComponentName','.css','replace','.scss','.tsx','tableName:\x20\x22','writeFile','108IQZzRl','default','.json','toLowerCase','6701416TtjTkw','map','mkdir','processTemplate','datasetCode:\x20\x22','now','processDirectory','toISOString','error','processFile','endsWith','getMonth','\x0a\x20\x20\x20\x20{\x20','getMinutes','utf8','replaceApiContent','copyFile','api','formatLocalTimestamp','alias','charAt','isFile','toUpperCase','217696PmGzNt','name','pop','template','join','getDate','replaceContent','1178052dHdRal','.js','slice'];a197_0xfd58=function(){return _0x3ebb4e;};return a197_0xfd58();}import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x411494){const _0x31db7a=a197_0x9ba9;return String(_0x411494)[_0x31db7a(0x195)](0x2,'0');}static[a197_0x3db2c2(0x17f)](_0x3136d1){const _0x1ed454=a197_0x3db2c2,_0x2a9ca4=_0x3136d1[_0x1ed454(0x192)](),_0x1b5635=this[_0x1ed454(0x19e)](_0x3136d1[_0x1ed454(0x178)]()+0x1),_0x4f94b6=this['pad'](_0x3136d1[_0x1ed454(0x189)]()),_0x2b8423=this[_0x1ed454(0x19e)](_0x3136d1['getHours']()),_0x533bbd=this[_0x1ed454(0x19e)](_0x3136d1[_0x1ed454(0x17a)]()),_0x18f93d=this['pad'](_0x3136d1['getSeconds']());return{'createdAt':_0x2a9ca4+'-'+_0x1b5635+'-'+_0x4f94b6+'\x20'+_0x2b8423+':'+_0x533bbd+':'+_0x18f93d,'createdDate':_0x2a9ca4+'-'+_0x1b5635+'-'+_0x4f94b6,'createdTime':_0x2b8423+':'+_0x533bbd+':'+_0x18f93d};}static[a197_0x3db2c2(0x1a7)](_0x152095){const _0x1e9042=a197_0x3db2c2,_0x477ad6=_0x152095[_0x1e9042(0x19b)]('/')['pop']()||_0x152095;return _0x477ad6[_0x1e9042(0x19b)]('-')[_0x1e9042(0x1b3)](_0xd6d707=>_0xd6d707[_0x1e9042(0x181)](0x0)[_0x1e9042(0x183)]()+_0xd6d707[_0x1e9042(0x18d)](0x1)[_0x1e9042(0x1b1)]())[_0x1e9042(0x188)]('');}static[a197_0x3db2c2(0x19f)](_0x2438bb){const _0x43ca5f=a197_0x3db2c2,_0x429650=_0x2438bb[_0x43ca5f(0x19b)]('/')[_0x43ca5f(0x186)]()||_0x2438bb;return _0x429650[_0x43ca5f(0x19b)]('-')[_0x43ca5f(0x1b3)](_0xe1e108=>_0xe1e108[_0x43ca5f(0x181)](0x0)[_0x43ca5f(0x183)]()+_0xe1e108['slice'](0x1)[_0x43ca5f(0x1b1)]())[_0x43ca5f(0x188)]('\x20');}static[a197_0x3db2c2(0x18a)](_0x2bad6d,_0x38b2ed,_0x3aa488){const _0x408106=a197_0x3db2c2,_0x24bb3b=this[_0x408106(0x1a7)](_0x38b2ed),_0x2fb244=this[_0x408106(0x19f)](_0x38b2ed),{createdAt:_0x4b6559,createdDate:_0x28735e,createdTime:_0x1d4e3c}=this[_0x408106(0x17f)](new Date());let _0x195658=_0x2bad6d['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x408106(0x1a9)](/\{ComponentName\}/g,_0x24bb3b)['replace'](/\{DisplayTitle\}/g,_0x2fb244)[_0x408106(0x1a9)](/\{PageName\}/g,_0x38b2ed)[_0x408106(0x1a9)](/\{TemplateName\}/g,_0x3aa488)['replace'](/\{CreatedAt\}/g,_0x4b6559)[_0x408106(0x1a9)](/\{CreatedDate\}/g,_0x28735e)[_0x408106(0x1a9)](/\{CreatedTime\}/g,_0x1d4e3c);return _0x195658;}static[a197_0x3db2c2(0x17c)](_0x28ea8f,_0x36ddf0,_0x283b01,_0x3fb901,_0x139de4,_0x5b4c2b,_0x9eff8a,_0x1a19ee){const _0x2a03f0=a197_0x3db2c2,_0x3e5ae4=new Date(),_0x19ecf=_0x3e5ae4[_0x2a03f0(0x1b9)](),_0x11d5bb=_0x283b01[_0x2a03f0(0x1b3)](_0x4273e7=>{const _0x37478a=_0x2a03f0,_0x234d46=[_0x37478a(0x1b6)+_0x4273e7[_0x37478a(0x191)]+'\x22',_0x37478a(0x1ac)+_0x4273e7[_0x37478a(0x198)]+'\x22',_0x37478a(0x1a6)+_0x4273e7['name']+'\x22'];return _0x4273e7['alias']&&_0x234d46[_0x37478a(0x1a2)]('alias:\x20\x22'+_0x4273e7[_0x37478a(0x180)]+'\x22'),_0x37478a(0x179)+_0x234d46[_0x37478a(0x188)](',\x20')+'\x20},';})[_0x2a03f0(0x188)](''),_0xbe4360=_0x3fb901||_0x283b01[0x0]?.[_0x2a03f0(0x180)]||_0x2a03f0(0x193);let _0x2d120e=_0x28ea8f[_0x2a03f0(0x1a9)](/\{AppCode\}/g,_0x36ddf0)[_0x2a03f0(0x1a9)](/\{ModelConfigs\}/g,_0x11d5bb)[_0x2a03f0(0x1a9)](/\{ExampleModelName\}/g,_0xbe4360)[_0x2a03f0(0x1a9)](/\{ApiFileName\}/g,_0x139de4||_0x2a03f0(0x17e))[_0x2a03f0(0x1a9)](/\{ConfigName\}/g,_0x5b4c2b||_0x2a03f0(0x1af))[_0x2a03f0(0x1a9)](/\{ClientConfigParam\}/g,_0x9eff8a||'')['replace'](/\{VarPrefix\}/g,_0x1a19ee||_0x2a03f0(0x19c))['replace'](/\{CreatedAt\}/g,_0x19ecf);return _0x2d120e;}static async[a197_0x3db2c2(0x1b5)](_0x11258d,_0x2700dc,_0x52c541,_0x2a4aa8,_0x1c4feb=!![]){const _0x22f0ab=a197_0x3db2c2,_0x301c79=Date[_0x22f0ab(0x1b7)]();try{_0x1c4feb&&logger['info'](_0x22f0ab(0x187),_0x22f0ab(0x196),{'templatePath':_0x11258d,'targetPath':_0x2700dc,'pageName':_0x52c541,'templateName':_0x2a4aa8});await a197_0xe99d8[_0x22f0ab(0x199)][_0x22f0ab(0x1b4)](_0x2700dc,{'recursive':!![]}),await this[_0x22f0ab(0x1b8)](_0x11258d,_0x2700dc,_0x52c541,_0x2a4aa8);if(_0x1c4feb){const _0x4224a5=Date[_0x22f0ab(0x1b7)]()-_0x301c79;logger['success'](_0x22f0ab(0x187),_0x22f0ab(0x190),_0x4224a5,{'pageName':_0x52c541,'templateName':_0x2a4aa8});}}catch(_0x947d7a){if(_0x1c4feb){const _0x900b69=Date[_0x22f0ab(0x1b7)]()-_0x301c79;logger[_0x22f0ab(0x1ba)](_0x22f0ab(0x187),_0x22f0ab(0x197),{'templatePath':_0x11258d,'targetPath':_0x2700dc,'pageName':_0x52c541,'templateName':_0x2a4aa8,'error':_0x947d7a instanceof Error?_0x947d7a['message']:String(_0x947d7a),'duration':_0x900b69});}throw _0x947d7a;}}static async[a197_0x3db2c2(0x1b8)](_0x5c98dc,_0x5200cc,_0x1cf449,_0x314bd3){const _0x19c5b3=a197_0x3db2c2,_0x1378ab=await a197_0xe99d8[_0x19c5b3(0x199)][_0x19c5b3(0x18e)](_0x5c98dc,{'withFileTypes':!![]});for(const _0x2e551f of _0x1378ab){const _0x2bda3d=a197_0x5d883c[_0x19c5b3(0x188)](_0x5c98dc,_0x2e551f[_0x19c5b3(0x185)]);let _0x501b35=a197_0x5d883c[_0x19c5b3(0x188)](_0x5200cc,_0x2e551f[_0x19c5b3(0x185)]);_0x2e551f[_0x19c5b3(0x185)]['endsWith'](_0x19c5b3(0x1a4))&&(_0x501b35=a197_0x5d883c[_0x19c5b3(0x188)](_0x5200cc,_0x2e551f['name']['replace'](/\.tpl$/,'')));if(_0x2e551f[_0x19c5b3(0x1a5)]())await a197_0xe99d8[_0x19c5b3(0x199)][_0x19c5b3(0x1b4)](_0x501b35,{'recursive':!![]}),await this[_0x19c5b3(0x1b8)](_0x2bda3d,_0x501b35,_0x1cf449,_0x314bd3);else _0x2e551f[_0x19c5b3(0x182)]()&&await this[_0x19c5b3(0x176)](_0x2bda3d,_0x501b35,_0x1cf449,_0x314bd3);}}static async['processFile'](_0x3eef0b,_0x5312,_0xc0e4c9,_0x3de985){const _0x37734f=a197_0x3db2c2,_0x11feee=a197_0x5d883c['extname'](_0x3eef0b)['toLowerCase']();_0x3eef0b[_0x37734f(0x177)](_0x37734f(0x1a4))&&(_0x5312=_0x5312[_0x37734f(0x1a9)](/\.tpl$/,''));const _0x5d57d8=[_0x37734f(0x1ab),'.ts','.jsx',_0x37734f(0x18c),_0x37734f(0x1b0),_0x37734f(0x18f),_0x37734f(0x1a8),_0x37734f(0x1aa),_0x37734f(0x1a4)];if(_0x5d57d8[_0x37734f(0x19a)](_0x11feee)||_0x3eef0b['endsWith'](_0x37734f(0x1a4))){const _0x31ea04=await a197_0xe99d8[_0x37734f(0x199)][_0x37734f(0x1a0)](_0x3eef0b,_0x37734f(0x17b)),_0x101803=this['replaceContent'](_0x31ea04,_0xc0e4c9,_0x3de985);await a197_0xe99d8['promises'][_0x37734f(0x1ad)](_0x5312,_0x101803,_0x37734f(0x17b));}else await a197_0xe99d8['promises'][_0x37734f(0x17d)](_0x3eef0b,_0x5312);}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a198_0x4f5b(){var _0x2e85c=['1774692mYSpYI','8977880AfYtxK','2797101YJrOAl','18CqlBer','827908DKuzyH','4yQQQjq','10XSjxrV','1051795GaBPEy','717297swmuLn','3904356ITvsci'];a198_0x4f5b=function(){return _0x2e85c;};return a198_0x4f5b();}function a198_0x42f2(_0x2749cc,_0xe3413f){_0x2749cc=_0x2749cc-0xb6;var _0x4f5b50=a198_0x4f5b();var _0x42f211=_0x4f5b50[_0x2749cc];return _0x42f211;}(function(_0x4fa076,_0x5e9435){var _0x4ad842=a198_0x42f2,_0x2a8298=_0x4fa076();while(!![]){try{var _0x413680=-parseInt(_0x4ad842(0xbc))/0x1+parseInt(_0x4ad842(0xb8))/0x2+parseInt(_0x4ad842(0xb7))/0x3*(parseInt(_0x4ad842(0xbd))/0x4)+parseInt(_0x4ad842(0xbf))/0x5*(parseInt(_0x4ad842(0xbb))/0x6)+parseInt(_0x4ad842(0xb6))/0x7+-parseInt(_0x4ad842(0xb9))/0x8+parseInt(_0x4ad842(0xba))/0x9*(-parseInt(_0x4ad842(0xbe))/0xa);if(_0x413680===_0x5e9435)break;else _0x2a8298['push'](_0x2a8298['shift']());}catch(_0x5e1960){_0x2a8298['push'](_0x2a8298['shift']());}}}(a198_0x4f5b,0xa17a6));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a199_0x24ec(){var _0x40947a=['397971knDJJY','461260OIfrZw','5379248cfsiiI','4927160FCHqsp','41748HmMBIK','35aulbDw','530495ruoKVj','33ABAOOL','730qfjWBk','4922166JtCjTp'];a199_0x24ec=function(){return _0x40947a;};return a199_0x24ec();}function a199_0x684b(_0x3c414d,_0x587664){_0x3c414d=_0x3c414d-0xfc;var _0x24ec7d=a199_0x24ec();var _0x684be1=_0x24ec7d[_0x3c414d];return _0x684be1;}(function(_0x1efd71,_0x26f9c4){var _0x2307f3=a199_0x684b,_0x279c1e=_0x1efd71();while(!![]){try{var _0x3907bd=-parseInt(_0x2307f3(0x102))/0x1*(parseInt(_0x2307f3(0x101))/0x2)+-parseInt(_0x2307f3(0x104))/0x3*(parseInt(_0x2307f3(0xfe))/0x4)+parseInt(_0x2307f3(0x103))/0x5+-parseInt(_0x2307f3(0xfc))/0x6+parseInt(_0x2307f3(0xff))/0x7+-parseInt(_0x2307f3(0x100))/0x8+-parseInt(_0x2307f3(0xfd))/0x9*(-parseInt(_0x2307f3(0x105))/0xa);if(_0x3907bd===_0x26f9c4)break;else _0x279c1e['push'](_0x279c1e['shift']());}catch(_0x516686){_0x279c1e['push'](_0x279c1e['shift']());}}}(a199_0x24ec,0xa2e67));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x2214e3,_0x4de138){setActiveCookie(_0x2214e3);try{return await _0x4de138();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a200_0x327a(_0x551aa8,_0x2dd0b9){_0x551aa8=_0x551aa8-0x1c8;var _0xa486db=a200_0xa486();var _0x327a2c=_0xa486db[_0x551aa8];return _0x327a2c;}function a200_0xa486(){var _0x86014=['822108jJjhuJ','write','1602672jbobfA','461106KKRNyY','275190AaoBWK','stderr','620uWStCZ','2SIdQEF','2741949vWYkgE','13165TeZgxw','600573JiyfwP'];a200_0xa486=function(){return _0x86014;};return a200_0xa486();}(function(_0x4bc6b6,_0x2d98ab){var _0x4a94d6=a200_0x327a,_0x468844=_0x4bc6b6();while(!![]){try{var _0x1e4d7c=parseInt(_0x4a94d6(0x1cc))/0x1*(parseInt(_0x4a94d6(0x1c9))/0x2)+parseInt(_0x4a94d6(0x1d1))/0x3+-parseInt(_0x4a94d6(0x1c8))/0x4*(-parseInt(_0x4a94d6(0x1cb))/0x5)+-parseInt(_0x4a94d6(0x1cd))/0x6+-parseInt(_0x4a94d6(0x1ca))/0x7+-parseInt(_0x4a94d6(0x1cf))/0x8+-parseInt(_0x4a94d6(0x1d0))/0x9;if(_0x1e4d7c===_0x2d98ab)break;else _0x468844['push'](_0x468844['shift']());}catch(_0x4144b0){_0x468844['push'](_0x468844['shift']());}}}(a200_0xa486,0x4e27d));export function writeCliSideChannelLine(_0x597213){var _0xf8ae73=a200_0x327a;process[_0xf8ae73(0x1d2)][_0xf8ae73(0x1ce)](_0x597213+'\x0a');}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.10-beta.1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"sync-template": "node scripts/sync-template.js",
|
|
25
25
|
"sync:cdn": "node scripts/sync-cdn-assets.js",
|
|
26
26
|
"verify:bundled-jq": "node scripts/verify-bundled-jq.mjs",
|
|
27
|
+
"regression:beta-smoke": "node scripts/regression-beta-smoke.mjs",
|
|
27
28
|
"beta-release": "sh scripts/update-beta-version.sh && bun run build && git push && git push origin --tag && bun publish --tag beta",
|
|
28
29
|
"release": "sh scripts/update-latest-version.sh && bun run build && git push && git push origin --tag && bun publish",
|
|
29
30
|
"test": "vitest run",
|