@lovrabet/rabetbase-cli 2.1.11 → 2.1.12-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/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/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 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a181_0x40d0(_0x40527c,_0x5b23c4){_0x40527c=_0x40527c-0xba;const _0xe7e2ae=a181_0xe7e2();let _0x40d023=_0xe7e2ae[_0x40527c];return _0x40d023;}(function(_0x4a8a03,_0x1a9a98){const _0x2d6382=a181_0x40d0,_0x8519d2=_0x4a8a03();while(!![]){try{const _0x2345bb=parseInt(_0x2d6382(0xc3))/0x1+parseInt(_0x2d6382(0xc2))/0x2+parseInt(_0x2d6382(0xbb))/0x3*(parseInt(_0x2d6382(0xba))/0x4)+-parseInt(_0x2d6382(0xc0))/0x5*(parseInt(_0x2d6382(0xbe))/0x6)+-parseInt(_0x2d6382(0xbd))/0x7*(-parseInt(_0x2d6382(0xc1))/0x8)+-parseInt(_0x2d6382(0xc4))/0x9+-parseInt(_0x2d6382(0xbc))/0xa*(parseInt(_0x2d6382(0xbf))/0xb);if(_0x2345bb===_0x1a9a98)break;else _0x8519d2['push'](_0x8519d2['shift']());}catch(_0x106a10){_0x8519d2['push'](_0x8519d2['shift']());}}}(a181_0xe7e2,0xe45a9));function a181_0xe7e2(){const _0x4941fc=['330185UeAxzb','3602655MzMUxm','5434892oHzuLa','3gfcVCB','143890LtrTrp','219345lPsDMq','106932WpFVsT','2343wnFUIV','130nPoxcc','336UvdgOq','3717766DbEHOx'];a181_0xe7e2=function(){return _0x4941fc;};return a181_0xe7e2();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
package/lib/utils/cdn-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2d2836,_0x2f4847){const _0x5de749=a182_0xe120,_0x237828=_0x2d2836();while(!![]){try{const _0x56d7b9=parseInt(_0x5de749(0xbc))/0x1*(parseInt(_0x5de749(0xbd))/0x2)+parseInt(_0x5de749(0xc3))/0x3*(-parseInt(_0x5de749(0xba))/0x4)+parseInt(_0x5de749(0xc1))/0x5+-parseInt(_0x5de749(0xbb))/0x6*(parseInt(_0x5de749(0xb4))/0x7)+parseInt(_0x5de749(0xb9))/0x8+parseInt(_0x5de749(0xc4))/0x9+parseInt(_0x5de749(0xb3))/0xa*(parseInt(_0x5de749(0xb6))/0xb);if(_0x56d7b9===_0x2f4847)break;else _0x237828['push'](_0x237828['shift']());}catch(_0x2e164b){_0x237828['push'](_0x237828['shift']());}}}(a182_0x5997,0x541c4));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x29fc10=a182_0xe120,_0x1bb8e6=getTemplateBaseUrl(),_0x4b68f9=[_0x1bb8e6+_0x29fc10(0xc2),_0x1bb8e6+_0x29fc10(0xb7)];for(const _0x449b88 of _0x4b68f9){try{const _0x1631e3=await fetch(_0x449b88,{'headers':{'Accept':_0x29fc10(0xb5)}});if(!_0x1631e3['ok'])continue;const _0x4d5271=await _0x1631e3[_0x29fc10(0xb8)]();if(!_0x4d5271[_0x29fc10(0xbe)]?.['stableVersion']||!_0x4d5271[_0x29fc10(0xc0)]?.[_0x29fc10(0xbf)]?.['stableVersion'])continue;return _0x4d5271;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a182_0x5997(){const _0x276a35=['json','1480800qfIEmB','132UxLtcj','18oprWQy','1Bungkf','508938xblvIp','cli','node','sdk','961655umzJKd','/config.json','34773HtAtRX','293094HfSLjp','5249610zZGXUM','1078952VoNtHu','application/json','11iPvejj','/config/index.json'];a182_0x5997=function(){return _0x276a35;};return a182_0x5997();}let hasCachedConfig=![];function a182_0xe120(_0x8e3f19,_0x152b46){_0x8e3f19=_0x8e3f19-0xb3;const _0x599783=a182_0x5997();let _0xe12097=_0x599783[_0x8e3f19];return _0xe12097;}export async function getCdnConfig(){const _0x31410b=Date['now']();if(hasCachedConfig){const _0x243203=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x31410b-cacheTime<_0x243203)return cachedConfig;}const _0x157f93=await fetchCdnConfig();return cachedConfig=_0x157f93,cacheTime=_0x31410b,hasCachedConfig=!![],_0x157f93;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4b8dc2,_0x4dd29f){const _0x57e1b8=a183_0x6dfa,_0x348c54=_0x4b8dc2();while(!![]){try{const _0x3f6eee=-parseInt(_0x57e1b8(0xf9))/0x1*(parseInt(_0x57e1b8(0x101))/0x2)+parseInt(_0x57e1b8(0xfb))/0x3*(parseInt(_0x57e1b8(0xf8))/0x4)+-parseInt(_0x57e1b8(0x105))/0x5+-parseInt(_0x57e1b8(0x100))/0x6+parseInt(_0x57e1b8(0xf5))/0x7+parseInt(_0x57e1b8(0xee))/0x8*(parseInt(_0x57e1b8(0x102))/0x9)+parseInt(_0x57e1b8(0xec))/0xa;if(_0x3f6eee===_0x4dd29f)break;else _0x348c54['push'](_0x348c54['shift']());}catch(_0x450aca){_0x348c54['push'](_0x348c54['shift']());}}}(a183_0x3d9e,0x63683));import a183_0x51ace4 from'node:fs';import a183_0x15925e from'node:path';import a183_0x4c94b6 from'semver';function a183_0x6dfa(_0x262caa,_0x469743){_0x262caa=_0x262caa-0xe1;const _0x3d9eea=a183_0x3d9e();let _0x6dfa91=_0x3d9eea[_0x262caa];return _0x6dfa91;}import{getCdnConfig}from'../utils/cdn-config.js';function a183_0x3d9e(){const _0xb44e42=['utf8','node_modules','\x20\x20\x20Stable\x20version:\x20','sdk','readFileSync','9414810RqAnYh','\x20\x20\x20Current\x20version:\x20','343016nFWWXd','npm\x20install\x20','log','package.json','coerce','↪\x20SDK\x20update\x20available','\x20\x20\x20Upgrade\x20command:\x20','4710531cQIdvG','existsSync','node','952440XchyrW','2UxaNSL','all','3dcrngq','needsUpgrade','\x1b[0m','test','dependencies','3915810LXuLnx','315320MhPOem','9nBQbEI','minVersion','parse','2601375lnFYrM','utf-8','join','stableVersion','@lovrabet/sdk','\x1b[1m','devDependencies','packageName'];a183_0x3d9e=function(){return _0xb44e42;};return a183_0x3d9e();}const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x9275d0){const _0x48f374=a183_0x6dfa,_0x1f4e29=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x1f4e29['some'](_0x54e46c=>_0x54e46c[_0x48f374(0xfe)](_0x9275d0));}function getInstalledVersion(_0x5072de,_0xc170bc){const _0x3551a2=a183_0x6dfa;try{const _0x18bb56=a183_0x15925e[_0x3551a2(0xe1)](_0x5072de,_0x3551a2(0xe8),_0xc170bc,_0x3551a2(0xf1));if(a183_0x51ace4[_0x3551a2(0xf6)](_0x18bb56)){const _0x257b5c=JSON['parse'](a183_0x51ace4[_0x3551a2(0xeb)](_0x18bb56,_0x3551a2(0x106)));return _0x257b5c['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x2495bd=a183_0x6dfa;try{const _0x285a7f=await getCdnConfig();return _0x285a7f?.[_0x2495bd(0xea)]?.['node']?.[_0x2495bd(0xe2)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x4eda22=a183_0x6dfa;try{const _0x1428eb=await getCdnConfig();return _0x1428eb?.[_0x4eda22(0xea)]?.[_0x4eda22(0xf7)]?.[_0x4eda22(0xe6)]||_0x4eda22(0xe3);}catch{return _0x4eda22(0xe3);}}export async function checkSdkVersion(_0x20228e){const _0x24e837=a183_0x6dfa,_0x4088dd=a183_0x15925e[_0x24e837(0xe1)](_0x20228e,_0x24e837(0xf1)),[_0x2f2cc7,_0x62cf0f]=await Promise[_0x24e837(0xfa)]([getSdkStableVersion(),getSdkPackageName()]),_0x2dea35=_0x2f2cc7||FALLBACK_MIN_SDK_VERSION;if(!a183_0x51ace4[_0x24e837(0xf6)](_0x4088dd))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2dea35,'packageName':_0x62cf0f,'stableVersion':_0x2f2cc7};try{const _0x5102dd=JSON[_0x24e837(0x104)](a183_0x51ace4[_0x24e837(0xeb)](_0x4088dd,'utf8')),_0x572c0c=_0x5102dd['dependencies']||{},_0x1109ed=_0x5102dd[_0x24e837(0xe5)]||{},_0x321bed=_0x572c0c[_0x62cf0f]||_0x1109ed[_0x62cf0f];if(!_0x321bed)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2dea35,'packageName':_0x62cf0f,'stableVersion':_0x2f2cc7};let _0x4e577b=getInstalledVersion(_0x20228e,_0x62cf0f);!_0x4e577b&&(_0x4e577b=_0x321bed);if(isNonNumericVersion(_0x321bed))return{'installed':!![],'version':_0x4e577b,'needsUpgrade':![],'minVersion':_0x2dea35,'packageName':_0x62cf0f,'stableVersion':_0x2f2cc7};const _0xce9a45=a183_0x4c94b6[_0x24e837(0xf2)](_0x4e577b),_0xafc6f2=a183_0x4c94b6[_0x24e837(0xf2)](_0x2dea35),_0xc13aaf=_0xce9a45&&_0xafc6f2?a183_0x4c94b6['lt'](_0xce9a45,_0xafc6f2):![];return{'installed':!![],'version':_0x4e577b,'needsUpgrade':_0xc13aaf,'minVersion':_0x2dea35,'packageName':_0x62cf0f,'stableVersion':_0x2f2cc7};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2dea35,'packageName':_0x62cf0f,'stableVersion':_0x2f2cc7};}}export function checkSdkVersionSync(_0xf25152){const _0x5f2e52=a183_0x6dfa,_0x2b0399=a183_0x15925e[_0x5f2e52(0xe1)](_0xf25152,_0x5f2e52(0xf1)),_0x36a72b=_0x5f2e52(0xe3);if(!a183_0x51ace4[_0x5f2e52(0xf6)](_0x2b0399))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x36a72b,'stableVersion':null};try{const _0x15fe12=JSON['parse'](a183_0x51ace4['readFileSync'](_0x2b0399,_0x5f2e52(0xe7))),_0x85b87d=_0x15fe12[_0x5f2e52(0xff)]||{},_0x3792d6=_0x15fe12[_0x5f2e52(0xe5)]||{},_0x53bcfd=_0x85b87d[_0x36a72b]||_0x3792d6[_0x36a72b];if(!_0x53bcfd)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x36a72b,'stableVersion':null};let _0x55c371=getInstalledVersion(_0xf25152,_0x36a72b);!_0x55c371&&(_0x55c371=_0x53bcfd);if(isNonNumericVersion(_0x53bcfd))return{'installed':!![],'version':_0x55c371,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x36a72b,'stableVersion':null};const _0x2b95fd=a183_0x4c94b6[_0x5f2e52(0xf2)](_0x55c371),_0x349e14=_0x2b95fd?a183_0x4c94b6['lt'](_0x2b95fd,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x55c371,'needsUpgrade':_0x349e14,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x36a72b,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x36a72b,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x1f2ada){const _0x280bd8=a183_0x6dfa;if(!_0x1f2ada[_0x280bd8(0xfc)])return;const _0x4d63b5='\x1b[33m',_0xc12b07=_0x280bd8(0xfd),_0x108b12=_0x280bd8(0xe4),_0xb763=_0x1f2ada[_0x280bd8(0xe6)]||_0x280bd8(0xe3),_0x3fced5=_0x1f2ada[_0x280bd8(0xe2)]||_0x1f2ada[_0x280bd8(0x103)],_0x465266=_0x280bd8(0xef)+_0xb763+'@'+(_0x3fced5||'latest');console[_0x280bd8(0xf0)](),console[_0x280bd8(0xf0)](''+_0x4d63b5+_0x108b12+_0x280bd8(0xf3)+_0xc12b07),console[_0x280bd8(0xf0)](_0x4d63b5+_0x280bd8(0xed)+_0xb763+'@'+_0x1f2ada['version']+_0xc12b07),console[_0x280bd8(0xf0)](_0x4d63b5+_0x280bd8(0xe9)+_0x3fced5+_0xc12b07),console[_0x280bd8(0xf0)](_0x4d63b5+_0x280bd8(0xf4)+_0x465266+_0xc12b07),console['log']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x35f60a,_0x28d76a){const _0x1ad370=a184_0x3796,_0x14c56b=_0x35f60a();while(!![]){try{const _0x3995dd=-parseInt(_0x1ad370(0x116))/0x1*(-parseInt(_0x1ad370(0xf0))/0x2)+-parseInt(_0x1ad370(0xfd))/0x3*(parseInt(_0x1ad370(0x104))/0x4)+-parseInt(_0x1ad370(0x10d))/0x5+-parseInt(_0x1ad370(0xf9))/0x6+parseInt(_0x1ad370(0xf8))/0x7*(-parseInt(_0x1ad370(0x103))/0x8)+-parseInt(_0x1ad370(0x10b))/0x9+-parseInt(_0x1ad370(0x10a))/0xa*(-parseInt(_0x1ad370(0x110))/0xb);if(_0x3995dd===_0x28d76a)break;else _0x14c56b['push'](_0x14c56b['shift']());}catch(_0x314b07){_0x14c56b['push'](_0x14c56b['shift']());}}}(a184_0xeb8b,0xe6d03));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a184_0x578fb2 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a184_0xeb8b(){const _0x496ae6=['3765035CtDwcm','package.json','\x20\x20\x20','1199amvcKc','↪\x20Critical\x20CLI\x20upgrade\x20required','\x1b[31m','minimumVersionMessage','\x20\x20\x20Recommended\x20stable:\x20','join','898961rXMDbs','1.0.0','coerce','belowMinimum','2eHVYZu','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','parse','utf-8','\x1b[0m','../..','Current\x20version:\x20','Upgrade\x20command:\x20','7hrLauO','6174792GoyScR','minimumVersion','latest','\x20\x20\x20Upgrade\x20command:\x20','318nFzAMZ','\x20\x20\x20Minimum\x20required:\x20','↪\x20New\x20version\x20available','npm\x20install\x20-g\x20','currentVersion','\x1b[33m','1112560gpHevC','23768ZQcvhj','validation','log','filter','upgradeMessage','needsUpgrade','358970VIrbLC','11837358oUNnnq','stableVersion'];a184_0xeb8b=function(){return _0x496ae6;};return a184_0xeb8b();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x58c21a){const _0x280609=a184_0x3796,_0x314de4=_0x58c21a[_0x280609(0x10c)]||_0x280609(0xfb);return _0x280609(0x100)+NPM_PACKAGE_NAME+'@'+_0x314de4;}function getCurrentCliVersion(){const _0x52f2e4=a184_0x3796;try{const _0x2b3fa7=fileURLToPath(import.meta.url),_0x4811b5=resolve(dirname(_0x2b3fa7),_0x52f2e4(0xf5)),_0x26f497=resolve(_0x4811b5,_0x52f2e4(0x10e)),_0x2eb5e4=JSON[_0x52f2e4(0xf2)](readFileSync(_0x26f497,_0x52f2e4(0xf3)));return _0x2eb5e4['version']||'1.0.0';}catch{return _0x52f2e4(0xed);}}export async function checkCliVersion(){const _0xfeaff8=a184_0x3796,_0x4b55f7=getCurrentCliVersion(),_0x175dfc=await getCliVersionPolicy(),_0x2d56bd=_0x175dfc?.['stableVersion']||null,_0x34cef4=_0x175dfc?.[_0xfeaff8(0xfa)]||null;let _0x13fb4e=![],_0x51ba8d=![];const _0x47a202=a184_0x578fb2[_0xfeaff8(0xee)](_0x4b55f7);if(_0x47a202&&_0x2d56bd)try{const _0x546796=a184_0x578fb2['coerce'](_0x2d56bd);if(_0x546796)_0x13fb4e=a184_0x578fb2['lt'](_0x47a202,_0x546796);}catch{}if(_0x47a202&&_0x34cef4)try{const _0x4f2b32=a184_0x578fb2[_0xfeaff8(0xee)](_0x34cef4);if(_0x4f2b32)_0x51ba8d=a184_0x578fb2['lt'](_0x47a202,_0x4f2b32);}catch{}return _0x51ba8d&&(_0x13fb4e=!![]),{'currentVersion':_0x4b55f7,'stableVersion':_0x2d56bd,'minimumVersion':_0x34cef4,'needsUpgrade':_0x13fb4e,'belowMinimum':_0x51ba8d,'isPreRelease':![],'upgradeMessage':_0x175dfc?.[_0xfeaff8(0x108)],'minimumVersionMessage':_0x175dfc?.[_0xfeaff8(0x113)]};}function a184_0x3796(_0x38a888,_0x15cc2a){_0x38a888=_0x38a888-0xed;const _0xeb8bf6=a184_0xeb8b();let _0x3796f7=_0xeb8bf6[_0x38a888];return _0x3796f7;}export function printCliUpgradeWarning(_0xc98fdf){const _0x1da224=a184_0x3796;if(!_0xc98fdf[_0x1da224(0x109)]&&!_0xc98fdf['belowMinimum'])return;const _0x36690e=_0x1da224(0x112),_0x5328d5=_0x1da224(0x102),_0x5d9d5b=_0x1da224(0xf4),_0x20a298='\x1b[1m',_0x3db4b4=getCliUpgradeCommand(_0xc98fdf);console[_0x1da224(0x106)](),_0xc98fdf['belowMinimum']?(console['log'](''+_0x36690e+_0x20a298+_0x1da224(0x111)+_0x5d9d5b),console['log'](_0x36690e+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0xc98fdf[_0x1da224(0x101)]+_0x5d9d5b),_0xc98fdf[_0x1da224(0xfa)]&&console[_0x1da224(0x106)](_0x36690e+_0x1da224(0xfe)+_0xc98fdf[_0x1da224(0xfa)]+_0x5d9d5b),_0xc98fdf['stableVersion']&&_0xc98fdf['stableVersion']!==_0xc98fdf['minimumVersion']&&console['log'](_0x36690e+_0x1da224(0x114)+_0xc98fdf[_0x1da224(0x10c)]+_0x5d9d5b),_0xc98fdf[_0x1da224(0x113)]&&console['log'](_0x36690e+_0x1da224(0x10f)+_0xc98fdf[_0x1da224(0x113)]+_0x5d9d5b),console['log'](_0x36690e+_0x1da224(0xfc)+_0x3db4b4+_0x5d9d5b)):(console[_0x1da224(0x106)](''+_0x5328d5+_0x20a298+_0x1da224(0xff)+_0x5d9d5b),console[_0x1da224(0x106)](_0x5328d5+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0xc98fdf['currentVersion']+_0x5d9d5b),console[_0x1da224(0x106)](_0x5328d5+'\x20\x20\x20Stable\x20version:\x20'+_0xc98fdf[_0x1da224(0x10c)]+_0x5d9d5b),_0xc98fdf['upgradeMessage']&&console[_0x1da224(0x106)](_0x5328d5+_0x1da224(0x10f)+_0xc98fdf[_0x1da224(0x108)]+_0x5d9d5b),console['log'](_0x5328d5+'\x20\x20\x20Upgrade\x20command:\x20'+_0x3db4b4+_0x5d9d5b)),console[_0x1da224(0x106)]();}export function assertCliVersionSupported(_0xf1375a){const _0xd71466=a184_0x3796;if(!_0xf1375a[_0xd71466(0xef)])return;const _0x579e04=[_0xf1375a['minimumVersionMessage'],_0xd71466(0xf6)+_0xf1375a['currentVersion'],_0xf1375a[_0xd71466(0xfa)]?'Minimum\x20required:\x20'+_0xf1375a[_0xd71466(0xfa)]:null,_0xd71466(0xf7)+getCliUpgradeCommand(_0xf1375a)][_0xd71466(0x107)](Boolean)[_0xd71466(0x115)]('\x0a');throw CliErrors[_0xd71466(0x105)](_0xd71466(0xf1),_0x579e04);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2d2d82,_0x3b202c){const _0x5b0719=a185_0x481b,_0x575fd9=_0x2d2d82();while(!![]){try{const _0x3df8c9=-parseInt(_0x5b0719(0x9b))/0x1*(parseInt(_0x5b0719(0x8d))/0x2)+-parseInt(_0x5b0719(0x8e))/0x3+-parseInt(_0x5b0719(0x99))/0x4*(parseInt(_0x5b0719(0x8b))/0x5)+-parseInt(_0x5b0719(0x9c))/0x6+parseInt(_0x5b0719(0x97))/0x7+-parseInt(_0x5b0719(0x8c))/0x8+parseInt(_0x5b0719(0x94))/0x9*(parseInt(_0x5b0719(0x92))/0xa);if(_0x3df8c9===_0x3b202c)break;else _0x575fd9['push'](_0x575fd9['shift']());}catch(_0x48f581){_0x575fd9['push'](_0x575fd9['shift']());}}}(a185_0x33c3,0xdc6bf));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';function a185_0x481b(_0x426f23,_0x19f1c4){_0x426f23=_0x426f23-0x8a;const _0x33c3b7=a185_0x33c3();let _0x481bed=_0x33c3b7[_0x426f23];return _0x481bed;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x20ab6b){const _0x5d7a2d=a185_0x481b;return typeof _0x20ab6b===_0x5d7a2d(0x96)&&_0x20ab6b[_0x5d7a2d(0x8a)]()[_0x5d7a2d(0x8f)]>0x0?_0x20ab6b['trim']():null;}function normalizeCliVersionPolicy(_0x4d8016){const _0x20e05e=a185_0x481b;if(!_0x4d8016||typeof _0x4d8016!==_0x20e05e(0x91))return null;const _0xc9e471=_0x4d8016,_0x31e86b=_0xc9e471[_0x20e05e(0x95)]&&typeof _0xc9e471[_0x20e05e(0x95)]==='object'?_0xc9e471[_0x20e05e(0x95)]:_0xc9e471,_0x111df6=pickString(_0x31e86b[_0x20e05e(0x9f)])||pickString(_0x31e86b['latestVersion'])||pickString(_0x31e86b['recommendedVersion']),_0x3427e8=pickString(_0x31e86b['minimumVersion'])||pickString(_0x31e86b['minVersion']);if(!_0x111df6&&!_0x3427e8)return null;return{'stableVersion':_0x111df6,'minimumVersion':_0x3427e8,'upgradeMessage':pickString(_0x31e86b[_0x20e05e(0x93)])||undefined,'minimumVersionMessage':pickString(_0x31e86b[_0x20e05e(0x9e)])||undefined};}export async function fetchCliVersionPolicy(){const _0x37df3c=a185_0x481b,_0x542c53=new AbortController(),_0x4e02b4=setTimeout(()=>_0x542c53[_0x37df3c(0x9d)](),FETCH_TIMEOUT_MS);try{const _0x2e6688=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x37df3c(0x90)},'signal':_0x542c53['signal']});if(!_0x2e6688['ok'])return null;const _0xce72e1=await _0x2e6688[_0x37df3c(0x98)]();return normalizeCliVersionPolicy(_0xce72e1);}catch{return null;}finally{clearTimeout(_0x4e02b4);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a185_0x33c3(){const _0xc15693=['1245570sbgFWD','4303712CAfXib','788794uUAimj','3763857VcwuOz','length','application/json','object','1923040XWUgXQ','upgradeMessage','144iAparj','cli','string','11420374nbYhVR','json','20OhjmlD','now','1drFAeN','2237694NQGlig','abort','minimumVersionMessage','stableVersion','trim'];a185_0x33c3=function(){return _0xc15693;};return a185_0x33c3();}export async function getCliVersionPolicy(){const _0x3a168f=a185_0x481b,_0x73bdb4=Date[_0x3a168f(0x9a)]();if(hasCachedPolicy){const _0x792c81=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x73bdb4-cacheTime<_0x792c81)return cachedPolicy;}const _0x28d039=await fetchCliVersionPolicy();return cachedPolicy=_0x28d039,cacheTime=_0x73bdb4,hasCachedPolicy=!![],_0x28d039;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
|
package/lib/utils/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a186_0x23da9d=a186_0xdb76;(function(_0x1aacc5,_0x2bcca6){const _0x252a97=a186_0xdb76,_0x178b5e=_0x1aacc5();while(!![]){try{const _0xa4759d=-parseInt(_0x252a97(0x1e0))/0x1+parseInt(_0x252a97(0x1e1))/0x2+-parseInt(_0x252a97(0x1dc))/0x3+-parseInt(_0x252a97(0x1e3))/0x4+-parseInt(_0x252a97(0x1e2))/0x5*(-parseInt(_0x252a97(0x1de))/0x6)+-parseInt(_0x252a97(0x1d9))/0x7+-parseInt(_0x252a97(0x1df))/0x8*(-parseInt(_0x252a97(0x1db))/0x9);if(_0xa4759d===_0x2bcca6)break;else _0x178b5e['push'](_0x178b5e['shift']());}catch(_0xd0e81){_0x178b5e['push'](_0x178b5e['shift']());}}}(a186_0x1405,0x240f2));import{initEnv}from'../constant/env.js';function a186_0x1405(){const _0x423df2=['203307yrZAeQ','string','48RngaSh','147912WnFIib','143854zxLYcf','504638ibdhWw','16640ERbFtB','1009884ufUkVB','project','646786BMpDkE','env','207hqNGjZ'];a186_0x1405=function(){return _0x423df2;};return a186_0x1405();}import{readRawConfig,getConfigAppCode as a186_0xe73b1d,getMultiAppConfigs as a186_0xee840f,getTemplateBaseUrl as a186_0x559583}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x1792b9){const _0x5ca06b=a186_0xdb76,_0x400c93=readRawConfig(_0x1792b9);return _0x400c93[_0x5ca06b(0x1da)]&&typeof _0x400c93[_0x5ca06b(0x1da)]===_0x5ca06b(0x1dd)&&initEnv(_0x400c93[_0x5ca06b(0x1da)]),_0x400c93;}export function getConfigAppCode(){return a186_0xe73b1d();}function a186_0xdb76(_0x35e86a,_0x1656f3){_0x35e86a=_0x35e86a-0x1d9;const _0x140587=a186_0x1405();let _0xdb76b7=_0x140587[_0x35e86a];return _0xdb76b7;}export function getMultiAppConfigs(_0x3ef628=a186_0x23da9d(0x1e4)){return a186_0xee840f(_0x3ef628);}export function getTemplateBaseUrl(){return a186_0x559583();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x395457,_0x14343a){const _0x2be7b9=a187_0x33b7,_0x5d615f=_0x395457();while(!![]){try{const _0x3fded5=parseInt(_0x2be7b9(0x15c))/0x1+-parseInt(_0x2be7b9(0x158))/0x2+-parseInt(_0x2be7b9(0x153))/0x3*(-parseInt(_0x2be7b9(0x15a))/0x4)+-parseInt(_0x2be7b9(0x15b))/0x5+-parseInt(_0x2be7b9(0x152))/0x6+-parseInt(_0x2be7b9(0x159))/0x7*(-parseInt(_0x2be7b9(0x155))/0x8)+parseInt(_0x2be7b9(0x157))/0x9;if(_0x3fded5===_0x14343a)break;else _0x5d615f['push'](_0x5d615f['shift']());}catch(_0x4a717d){_0x5d615f['push'](_0x5d615f['shift']());}}}(a187_0x981f,0x2d6d2));function a187_0x33b7(_0x3c15c0,_0x53cf96){_0x3c15c0=_0x3c15c0-0x150;const _0x981f52=a187_0x981f();let _0x33b734=_0x981f52[_0x3c15c0];return _0x33b734;}import a187_0x2a1fb2 from'node:path';import a187_0x3278aa from'node:fs';export async function copyDirectory(_0x5aafc9,_0x2ef563){const _0x28f2e3=a187_0x33b7;try{const _0xe69dc4=a187_0x3278aa['readdirSync'](_0x5aafc9,{'withFileTypes':!![]});a187_0x3278aa['mkdirSync'](_0x2ef563,{'recursive':!![]});for(const _0x5df7f1 of _0xe69dc4){const _0x26b082=a187_0x2a1fb2[_0x28f2e3(0x154)](_0x5aafc9,_0x5df7f1[_0x28f2e3(0x156)]),_0x46b26d=a187_0x2a1fb2[_0x28f2e3(0x154)](_0x2ef563,_0x5df7f1[_0x28f2e3(0x156)]);_0x5df7f1['isDirectory']()?await copyDirectory(_0x26b082,_0x46b26d):a187_0x3278aa['copyFileSync'](_0x26b082,_0x46b26d);}}catch(_0x4500c8){console[_0x28f2e3(0x151)](_0x28f2e3(0x150),_0x4500c8);}}function a187_0x981f(){const _0x1ffb28=['join','8VrkfaR','name','4273596PRlgXh','510088FonAjf','922901wEJGsX','59512awJqeq','1542075zFVUlK','242590rSHVzC','复制目录时出错:','error','1312656cTGLLq','24avLgLi'];a187_0x981f=function(){return _0x1ffb28;};return a187_0x981f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a188_0x157c(_0x385e9d,_0x19fc3f){_0x385e9d=_0x385e9d-0x1ad;const _0x5d4412=a188_0x5d44();let _0x157cb3=_0x5d4412[_0x385e9d];return _0x157cb3;}(function(_0x2d5198,_0x17e3e3){const _0x4a78c3=a188_0x157c,_0x516578=_0x2d5198();while(!![]){try{const _0xa125f0=parseInt(_0x4a78c3(0x1b7))/0x1*(parseInt(_0x4a78c3(0x1b3))/0x2)+-parseInt(_0x4a78c3(0x1ad))/0x3+-parseInt(_0x4a78c3(0x1b1))/0x4+parseInt(_0x4a78c3(0x1b9))/0x5+-parseInt(_0x4a78c3(0x1b5))/0x6+-parseInt(_0x4a78c3(0x1b8))/0x7*(parseInt(_0x4a78c3(0x1b0))/0x8)+parseInt(_0x4a78c3(0x1ae))/0x9;if(_0xa125f0===_0x17e3e3)break;else _0x516578['push'](_0x516578['shift']());}catch(_0x12f2b3){_0x516578['push'](_0x516578['shift']());}}}(a188_0x5d44,0x88290));function toFiniteNumber(_0x4fa955){const _0x256371=a188_0x157c;if(typeof _0x4fa955==='number'&&Number[_0x256371(0x1b4)](_0x4fa955))return _0x4fa955;if(typeof _0x4fa955===_0x256371(0x1b2)){const _0x30d880=_0x4fa955[_0x256371(0x1b6)]();if(!_0x30d880)return undefined;const _0xe2f33f=Number(_0x30d880);if(Number[_0x256371(0x1b4)](_0xe2f33f))return _0xe2f33f;}return undefined;}export function normalizeEntityWithIdResponse(_0xc8655c){const _0x1b796b=a188_0x157c,_0x2108c8=toFiniteNumber(_0xc8655c);if(_0x2108c8!==undefined)return{'id':_0x2108c8,'entity':{'id':_0x2108c8}};if(!_0xc8655c||typeof _0xc8655c!==_0x1b796b(0x1af))return{'id':undefined,'entity':{}};const _0x3a9a79={..._0xc8655c},_0x47f478=toFiniteNumber(_0x3a9a79['id']);return _0x47f478!==undefined&&(_0x3a9a79['id']=_0x47f478),{'id':_0x47f478,'entity':_0x3a9a79};}function a188_0x5d44(){const _0x54223e=['trim','9439UXggPj','49ckOWAC','5078740khfptl','2919048OCgYoG','10242009zZzdgV','object','422696IJfmOv','9716YTGTRH','string','142SzMDYQ','isFinite','5525412NUHrOu'];a188_0x5d44=function(){return _0x54223e;};return a188_0x5d44();}
|
package/lib/utils/file-utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x488f04,_0x50a235){const _0x3a1127=a189_0x2d63,_0x3f8f0d=_0x488f04();while(!![]){try{const _0x45ff68=parseInt(_0x3a1127(0x1d3))/0x1*(parseInt(_0x3a1127(0x1d6))/0x2)+parseInt(_0x3a1127(0x1cc))/0x3+-parseInt(_0x3a1127(0x1d0))/0x4*(-parseInt(_0x3a1127(0x1d4))/0x5)+parseInt(_0x3a1127(0x1ce))/0x6+-parseInt(_0x3a1127(0x1d1))/0x7+parseInt(_0x3a1127(0x1cf))/0x8+-parseInt(_0x3a1127(0x1cd))/0x9*(parseInt(_0x3a1127(0x1d2))/0xa);if(_0x45ff68===_0x50a235)break;else _0x3f8f0d['push'](_0x3f8f0d['shift']());}catch(_0x986d62){_0x3f8f0d['push'](_0x3f8f0d['shift']());}}}(a189_0x163e,0x2afd7));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a189_0x2d63(_0x475b41,_0x159a4c){_0x475b41=_0x475b41-0x1cc;const _0x163ee0=a189_0x163e();let _0x2d6315=_0x163ee0[_0x475b41];return _0x2d6315;}export async function copyDir(_0x8f51c7,_0x185383){const _0x456c1=a189_0x2d63,_0x17129d=statSync(_0x8f51c7);if(_0x17129d[_0x456c1(0x1d5)]()){!existsSync(_0x185383)&&mkdirSync(_0x185383,{'recursive':!![]});const _0x5d969e=readdirSync(_0x8f51c7);for(const _0x1b199c of _0x5d969e){await copyDir(join(_0x8f51c7,_0x1b199c),join(_0x185383,_0x1b199c));}}else copyFileSync(_0x8f51c7,_0x185383);}function a189_0x163e(){const _0x1bf172=['163178EUmFRM','799884XCJzfi','6246027aGuCCQ','603018ebANGH','1973720dRkqdm','460fHZdjg','874440KzEQLk','10ZVRAJA','1VbtwmD','13025GAxwQv','isDirectory'];a189_0x163e=function(){return _0x1bf172;};return a189_0x163e();}export function ensureDir(_0x548e19){!existsSync(_0x548e19)&&mkdirSync(_0x548e19,{'recursive':!![]});}export function pathExists(_0x4faa2c){return existsSync(_0x4faa2c);}
|
package/lib/utils/guides-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a190_0x272b7d=a190_0x3812;(function(_0x1a685d,_0x45eabd){const _0x1e715e=a190_0x3812,_0x1e2169=_0x1a685d();while(!![]){try{const _0x9f6462=parseInt(_0x1e715e(0x1c1))/0x1*(-parseInt(_0x1e715e(0x1d0))/0x2)+parseInt(_0x1e715e(0x1e3))/0x3*(-parseInt(_0x1e715e(0x1de))/0x4)+parseInt(_0x1e715e(0x1c6))/0x5*(-parseInt(_0x1e715e(0x1d9))/0x6)+-parseInt(_0x1e715e(0x1cf))/0x7*(-parseInt(_0x1e715e(0x1d5))/0x8)+-parseInt(_0x1e715e(0x1cc))/0x9+-parseInt(_0x1e715e(0x1c9))/0xa*(parseInt(_0x1e715e(0x1c8))/0xb)+parseInt(_0x1e715e(0x1e1))/0xc;if(_0x9f6462===_0x45eabd)break;else _0x1e2169['push'](_0x1e2169['shift']());}catch(_0x1cb46c){_0x1e2169['push'](_0x1e2169['shift']());}}}(a190_0x279a,0x4f667));function a190_0x279a(){const _0x334ee5=['cache','88645XFrJQJ','entries','extendContent','.lovrabet/skill/guides','skillTemplate','2455825IZJmer','CDN\x20返回数据格式错误','11SjFkfn','993200hPnQHE','utf-8','CDN\x20请求失败:\x20','342450zSQrrR','length','trimEnd','4235ygozuM','6AFWvgJ','.lovrabet','lastUpdated','\x0a\x0a>更新时间:','replace','2448NazkHt','push','guides','map','6drXOSP','title','application/json','join','statusText','28sQshvE','object','CDN\x20数据中缺少\x20skillTemplate','15432876MKkfSc','content','107790NACOWh','status','keys'];a190_0x279a=function(){return _0x334ee5;};return a190_0x279a();}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 _0x5383fb=getTemplateBaseUrl();return _0x5383fb+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a190_0x272b7d(0x1d1),a190_0x272b7d(0x1c0));export async function fetchGuidesFromCDN(){const _0x16374a=a190_0x272b7d,_0x46cb32=getGuidesCdnUrl(),_0xf17df0=await fetch(_0x46cb32,{'headers':{'Accept':_0x16374a(0x1db)}});if(!_0xf17df0['ok'])throw new Error(_0x16374a(0x1cb)+_0xf17df0[_0x16374a(0x1e4)]+'\x20'+_0xf17df0[_0x16374a(0x1dd)]);const _0x538280=await _0xf17df0['json']();if(!_0x538280[_0x16374a(0x1d7)]||typeof _0x538280['guides']!==_0x16374a(0x1df))throw new Error(_0x16374a(0x1c7));return _0x538280;}export function writeGuidesToProject(_0x3db86f,_0x15169a,_0x144b2e=a190_0x272b7d(0x1c4),_0x56f41d){const _0x1afdac=a190_0x272b7d,_0x79df55=join(_0x15169a,_0x144b2e);mkdirSync(_0x79df55,{'recursive':!![]});for(const [_0x1597fd,_0x17f149]of Object['entries'](_0x3db86f[_0x1afdac(0x1d7)])){let _0x334baa=_0x17f149[_0x1afdac(0x1e2)];_0x17f149['lastUpdated']&&(_0x334baa=appendUpdateTime(_0x334baa,_0x17f149[_0x1afdac(0x1d2)])),writeFileSync(join(_0x79df55,_0x1597fd+'.md'),_0x334baa,'utf-8');}}export function appendUpdateTime(_0x3db27f,_0x315233){const _0x2c96e3=a190_0x272b7d;return _0x3db27f=_0x3db27f[_0x2c96e3(0x1d4)](/\n*>更新时间:.*$/m,''),_0x3db27f[_0x2c96e3(0x1ce)]()+(_0x2c96e3(0x1d3)+_0x315233);}export function getSkillTemplate(_0x53b8b5){const _0x299263=a190_0x272b7d;return _0x53b8b5['skillTemplate']?.[_0x299263(0x1e2)]||'';}export function appendExtendContents(_0x29433c,_0x6c6963,_0x35aff6){const _0x38ffba=a190_0x272b7d,_0x42dec5=[];for(const [,_0x3a2f2f]of Object['entries'](_0x6c6963['guides'])){_0x3a2f2f['extendContent']&&_0x42dec5[_0x38ffba(0x1d6)](_0x3a2f2f[_0x38ffba(0x1c3)][_0x38ffba(0x1ce)]());}if(_0x42dec5[_0x38ffba(0x1cd)]===0x0)return _0x29433c;return _0x29433c[_0x38ffba(0x1ce)]()+'\x0a\x0a'+_0x42dec5[_0x38ffba(0x1dc)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x358791,_0x59c86e,_0x11bc7b){const _0x5a5cc4=a190_0x272b7d,_0x3bb364=getSkillTemplate(_0x358791);if(!_0x3bb364)throw new Error(_0x5a5cc4(0x1e0));const _0x295ee2=dirname(_0x59c86e);mkdirSync(_0x295ee2,{'recursive':!![]});let _0x3d6f73=_0x3bb364[_0x5a5cc4(0x1d4)](/\{\{IDE_NAME\}\}/g,_0x11bc7b);_0x3d6f73=appendExtendContents(_0x3d6f73,_0x358791),_0x358791[_0x5a5cc4(0x1c5)][_0x5a5cc4(0x1d2)]&&(_0x3d6f73=appendUpdateTime(_0x3d6f73,_0x358791['skillTemplate'][_0x5a5cc4(0x1d2)])),writeFileSync(_0x59c86e,_0x3d6f73,_0x5a5cc4(0x1ca));}function a190_0x3812(_0x1e57d5,_0x254686){_0x1e57d5=_0x1e57d5-0x1c0;const _0x279ab1=a190_0x279a();let _0x3812ec=_0x279ab1[_0x1e57d5];return _0x3812ec;}export async function installGuides(_0x124f12){const _0x3c2987=a190_0x272b7d,_0x3f9b7c=await fetchGuidesFromCDN();return writeGuidesToProject(_0x3f9b7c,_0x124f12),Object[_0x3c2987(0x1e5)](_0x3f9b7c[_0x3c2987(0x1d7)])[_0x3c2987(0x1cd)];}export function getGuidesSummary(_0x14062a){const _0x3eebd8=a190_0x272b7d;return Object[_0x3eebd8(0x1c2)](_0x14062a[_0x3eebd8(0x1d7)])[_0x3eebd8(0x1d8)](([_0x311818,_0x47cfbc])=>({'key':_0x311818,'title':_0x47cfbc[_0x3eebd8(0x1da)],'path':_0x47cfbc['path']}));}
|
package/lib/utils/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a191_0x5629(_0x185b02,_0x2e8107){_0x185b02=_0x185b02-0xca;const _0x3e561d=a191_0x3e56();let _0x56292b=_0x3e561d[_0x185b02];return _0x56292b;}(function(_0x25f74c,_0x4f7a8b){const _0x3fc9a8=a191_0x5629,_0x367172=_0x25f74c();while(!![]){try{const _0x253415=parseInt(_0x3fc9a8(0xdc))/0x1+parseInt(_0x3fc9a8(0xde))/0x2+-parseInt(_0x3fc9a8(0xda))/0x3+-parseInt(_0x3fc9a8(0xd1))/0x4*(parseInt(_0x3fc9a8(0xd0))/0x5)+-parseInt(_0x3fc9a8(0xdb))/0x6+-parseInt(_0x3fc9a8(0xcb))/0x7+-parseInt(_0x3fc9a8(0xce))/0x8*(-parseInt(_0x3fc9a8(0xd9))/0x9);if(_0x253415===_0x4f7a8b)break;else _0x367172['push'](_0x367172['shift']());}catch(_0x1d97a0){_0x367172['push'](_0x367172['shift']());}}}(a191_0x3e56,0x3168c));export async function httpRequest(_0x4e3a2b,_0x282ee2={}){const _0x502d15=a191_0x5629,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x282ee2;let _0x14625f=null;for(let _0x5cd5ed=0x0;_0x5cd5ed<=retries;_0x5cd5ed++){try{const _0x3582cb=new AbortController(),_0x1c77e5=setTimeout(()=>_0x3582cb[_0x502d15(0xe2)](),timeout),_0x2b8802=await fetch(_0x4e3a2b,{'headers':headers,'signal':_0x3582cb['signal']});clearTimeout(_0x1c77e5);let _0x329f8e;const _0x2ee680=_0x2b8802[_0x502d15(0xcd)]['get'](_0x502d15(0xe4));return _0x2ee680?.[_0x502d15(0xd3)]('application/json')?_0x329f8e=await _0x2b8802[_0x502d15(0xe5)]():_0x329f8e=await _0x2b8802[_0x502d15(0xe3)](),{'ok':_0x2b8802['ok'],'status':_0x2b8802[_0x502d15(0xca)],'statusText':_0x2b8802[_0x502d15(0xe1)],'data':_0x329f8e,'headers':_0x2b8802['headers'],'url':_0x2b8802[_0x502d15(0xd8)],'text':()=>_0x2b8802[_0x502d15(0xe3)]()};}catch(_0x4de3de){_0x14625f=_0x4de3de instanceof Error?_0x4de3de:new Error(String(_0x4de3de));if(_0x5cd5ed===retries)break;if(shouldRetry(_0x4de3de)){console['log']('*\x20请求失败,'+retryDelay+_0x502d15(0xe0)+(_0x5cd5ed+0x1)+_0x502d15(0xd7)),await sleep(retryDelay);continue;}else break;}}throw _0x14625f||new Error(_0x502d15(0xd6));}function shouldRetry(_0x48a30c){const _0x30c249=a191_0x5629;if(_0x48a30c instanceof Error){if(_0x48a30c[_0x30c249(0xcf)]===_0x30c249(0xdd))return![];if(_0x48a30c[_0x30c249(0xcf)]===_0x30c249(0xcc)&&_0x48a30c[_0x30c249(0xdf)]['includes'](_0x30c249(0xd5)))return!![];if(_0x48a30c['message'][_0x30c249(0xd3)](_0x30c249(0xd2)))return!![];if(_0x48a30c[_0x30c249(0xdf)][_0x30c249(0xd3)](_0x30c249(0xd4)))return![];}return![];}function a191_0x3e56(){const _0x139cde=['abort','text','content-type','json','status','1455916UmpbRC','TypeError','headers','496UYzskv','name','55rWBXTL','89124JlDvaC','ECONNRESET','includes','ENOTFOUND','fetch','Request\x20failed','\x20次重试...','url','81522jqSyZy','716916YNEffp','882276eMDkkK','189038tBBxki','AbortError','581686UnIlWJ','message','ms\x20后进行第\x20','statusText'];a191_0x3e56=function(){return _0x139cde;};return a191_0x3e56();}function sleep(_0x4b43e8){return new Promise(_0x53bd29=>setTimeout(_0x53bd29,_0x4b43e8));}export function validateUrl(_0x1b9bc3){try{return new URL(_0x1b9bc3),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x10f1f7,_0x203a3f){const _0x60886f=a192_0x3a48,_0x477f71=_0x10f1f7();while(!![]){try{const _0x38b4eb=parseInt(_0x60886f(0xe8))/0x1+parseInt(_0x60886f(0xec))/0x2*(parseInt(_0x60886f(0xe4))/0x3)+-parseInt(_0x60886f(0xe1))/0x4*(-parseInt(_0x60886f(0xe2))/0x5)+parseInt(_0x60886f(0xe9))/0x6+parseInt(_0x60886f(0xeb))/0x7+parseInt(_0x60886f(0xdd))/0x8+-parseInt(_0x60886f(0xe3))/0x9*(parseInt(_0x60886f(0xea))/0xa);if(_0x38b4eb===_0x203a3f)break;else _0x477f71['push'](_0x477f71['shift']());}catch(_0x5e6644){_0x477f71['push'](_0x477f71['shift']());}}}(a192_0x1aa1,0x19c77));function a192_0x3a48(_0x255be1,_0x31abf8){_0x255be1=_0x255be1-0xdd;const _0x1aa11d=a192_0x1aa1();let _0x3a48e0=_0x1aa11d[_0x255be1];return _0x3a48e0;}function env(_0x528cef){return process.env[`RABETBASE_${_0x528cef}`]||process.env[`LOVRABET_${_0x528cef}`]||undefined;}export function isNonInteractive(_0x5d221d){const _0xd3d537=a192_0x3a48;return!!(_0x5d221d[_0xd3d537(0xe7)]||_0x5d221d['ci']||env('CI')===_0xd3d537(0xde)||process.env.CI===_0xd3d537(0xde)||!process[_0xd3d537(0xe0)][_0xd3d537(0xe5)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5cf57c=a192_0x3a48;if(!process[_0x5cf57c(0xed)]['isTTY'])return![];try{const _0x1ef9b6=process[_0x5cf57c(0xed)][_0x5cf57c(0xdf)];return process[_0x5cf57c(0xed)]['setRawMode'](!![]),process[_0x5cf57c(0xed)][_0x5cf57c(0xe6)](_0x1ef9b6??![]),!![];}catch{return![];}}function a192_0x1aa1(){const _0xe234c4=['194719qPRhHI','482730UUMxSi','390apTHIf','276822QShBUe','4GZlrKV','stdin','780232nENfKk','true','isRaw','stdout','404szGFCt','4685lCBddo','93627hsPqmj','6633PXMgFp','isTTY','setRawMode','nonInteractive'];a192_0x1aa1=function(){return _0xe234c4;};return a192_0x1aa1();}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a193_0x1d298a=a193_0x4496;(function(_0x53a622,_0x3b4f6f){const _0x1cf126=a193_0x4496,_0x12f5c6=_0x53a622();while(!![]){try{const _0x351c4e=-parseInt(_0x1cf126(0x1aa))/0x1+parseInt(_0x1cf126(0x1a2))/0x2+-parseInt(_0x1cf126(0x1b9))/0x3+parseInt(_0x1cf126(0x18f))/0x4*(-parseInt(_0x1cf126(0x1a4))/0x5)+parseInt(_0x1cf126(0x1b1))/0x6*(-parseInt(_0x1cf126(0x1b7))/0x7)+-parseInt(_0x1cf126(0x1a1))/0x8+parseInt(_0x1cf126(0x1bd))/0x9*(parseInt(_0x1cf126(0x19b))/0xa);if(_0x351c4e===_0x3b4f6f)break;else _0x12f5c6['push'](_0x12f5c6['shift']());}catch(_0x1a78fe){_0x12f5c6['push'](_0x12f5c6['shift']());}}}(a193_0x2df1,0xd32c2));function a193_0x2df1(){const _0x5d0cd0=['initWinstonLogger','logTask','setLogPath','combine','yellow','1055142bkUhpJ','失败:\x20','setRawCommand','message','clearLogs','details','7IgNQIu','rawCommand','2372853cBgmGS','split','dirname','warn','9xhtDVg','logFilePath','开始执行:\x20','join','readFileSync','createLogger','success','error','8jSIEeb','transports','currentRawCommand','toISOString','writeFileSync','existsSync','parse','errors','now','red','duration','stringify','22871070yThGHs','filter','format','green','完成:\x20','getWinstonInstance','393000ngeJyQ','1453534frsGdH','readLogs','156325qcxRWI','winstonLogger','info','Failed\x20to\x20read\x20logs:','level','command','1070449GkhRZE','log'];a193_0x2df1=function(){return _0x5d0cd0;};return a193_0x2df1();}import a193_0x5a1edd from'winston';import a193_0x52c8b2 from'node:fs';import a193_0x4e921a from'node:path';class Logger{['winstonLogger'];[a193_0x1d298a(0x188)];['currentRawCommand']='';constructor(){this['logFilePath']='';}[a193_0x1d298a(0x1b3)](_0x520395){const _0xda4fc5=a193_0x1d298a;this[_0xda4fc5(0x191)]=_0x520395;}[a193_0x1d298a(0x1ac)](){const _0x5396e0=a193_0x1d298a,_0x10c3c2=a193_0x4e921a[_0x5396e0(0x1bb)](this[_0x5396e0(0x188)]);!a193_0x52c8b2[_0x5396e0(0x194)](_0x10c3c2)&&a193_0x52c8b2['mkdirSync'](_0x10c3c2,{'recursive':!![]});const _0x163c64=a193_0x5a1edd['format'][_0x5396e0(0x1af)](a193_0x5a1edd['format']['timestamp'](),a193_0x5a1edd[_0x5396e0(0x19d)][_0x5396e0(0x196)]({'stack':!![]}),a193_0x5a1edd[_0x5396e0(0x19d)]['printf'](_0x42394f=>{const _0x4121b7=_0x5396e0,_0x38b07e={'timestamp':_0x42394f['timestamp']||new Date()[_0x4121b7(0x192)](),'level':_0x42394f[_0x4121b7(0x1a8)]||_0x4121b7(0x1a6),'command':_0x42394f[_0x4121b7(0x1a9)]||'unknown','rawCommand':_0x42394f[_0x4121b7(0x1b8)]||this['currentRawCommand']||undefined,'message':_0x42394f[_0x4121b7(0x1b4)]||'','duration':_0x42394f[_0x4121b7(0x199)]||undefined,'details':_0x42394f[_0x4121b7(0x1b6)]||undefined};return JSON[_0x4121b7(0x19a)](_0x38b07e);}));this[_0x5396e0(0x1a5)]=a193_0x5a1edd[_0x5396e0(0x18c)]({'level':_0x5396e0(0x1a6),'format':_0x163c64,'transports':[new a193_0x5a1edd[(_0x5396e0(0x190))]['File']({'filename':this[_0x5396e0(0x188)],'level':_0x5396e0(0x1a6)})],'silent':![]}),a193_0x5a1edd['addColors']({'success':_0x5396e0(0x19e),'error':_0x5396e0(0x198),'warn':_0x5396e0(0x1b0),'info':'blue'});}[a193_0x1d298a(0x1ae)](_0x3b41cb){const _0x5a7e59=a193_0x1d298a;this[_0x5a7e59(0x188)]=a193_0x4e921a[_0x5a7e59(0x18a)](_0x3b41cb,'.lovrabet.log'),this[_0x5a7e59(0x1a5)]&&this['winstonLogger']['clear'](),this[_0x5a7e59(0x1ac)]();}[a193_0x1d298a(0x1a6)](_0x4f7a3b,_0x450f2e,_0x392d72){const _0x322cb3=a193_0x1d298a;if(!this[_0x322cb3(0x188)]||!this[_0x322cb3(0x1a5)])return;this[_0x322cb3(0x1a5)][_0x322cb3(0x1a6)](_0x450f2e,{'command':_0x4f7a3b,'details':_0x392d72});}[a193_0x1d298a(0x18d)](_0x26589a,_0x44d5a5,_0x1b3c9b,_0x6de610){const _0x283779=a193_0x1d298a;if(!this[_0x283779(0x188)]||!this[_0x283779(0x1a5)])return;this[_0x283779(0x1a5)][_0x283779(0x1ab)]('info',_0x44d5a5,{'level':_0x283779(0x18d),'command':_0x26589a,'duration':_0x1b3c9b,'details':_0x6de610});}[a193_0x1d298a(0x18e)](_0xc9e323,_0x5b8bdf,_0x366956){const _0x4fc58d=a193_0x1d298a;if(!this['logFilePath']||!this[_0x4fc58d(0x1a5)])return;this[_0x4fc58d(0x1a5)][_0x4fc58d(0x18e)](_0x5b8bdf,{'command':_0xc9e323,'details':_0x366956});}[a193_0x1d298a(0x1bc)](_0x19f7f3,_0x4df32c,_0x54d19d){const _0x38014d=a193_0x1d298a;if(!this['logFilePath']||!this[_0x38014d(0x1a5)])return;this[_0x38014d(0x1a5)][_0x38014d(0x1bc)](_0x4df32c,{'command':_0x19f7f3,'details':_0x54d19d});}async[a193_0x1d298a(0x1ad)](_0x4d338c,_0x9c7041,_0x3b8895){const _0x4db801=a193_0x1d298a,_0x37fad9=Date[_0x4db801(0x197)]();this['info'](_0x4d338c,_0x4db801(0x189)+_0x9c7041);try{const _0xa5c241=await _0x3b8895(),_0x356d97=Date['now']()-_0x37fad9;return this[_0x4db801(0x18d)](_0x4d338c,_0x4db801(0x19f)+_0x9c7041,_0x356d97),_0xa5c241;}catch(_0x157e1e){const _0x1a4691=Date[_0x4db801(0x197)]()-_0x37fad9;this['error'](_0x4d338c,_0x4db801(0x1b2)+_0x9c7041,{'error':_0x157e1e instanceof Error?_0x157e1e[_0x4db801(0x1b4)]:String(_0x157e1e),'duration':_0x1a4691});throw _0x157e1e;}}[a193_0x1d298a(0x1a3)](){const _0x4c91a3=a193_0x1d298a;try{if(!a193_0x52c8b2[_0x4c91a3(0x194)](this['logFilePath']))return[];const _0x5f0521=a193_0x52c8b2[_0x4c91a3(0x18b)](this[_0x4c91a3(0x188)],'utf8');return _0x5f0521[_0x4c91a3(0x1ba)]('\x0a')[_0x4c91a3(0x19c)](_0x3948f7=>_0x3948f7['trim']())['map'](_0x1a47a4=>JSON[_0x4c91a3(0x195)](_0x1a47a4));}catch(_0x6c057d){return console[_0x4c91a3(0x1bc)](_0x4c91a3(0x1a7),_0x6c057d),[];}}[a193_0x1d298a(0x1b5)](){const _0x389a75=a193_0x1d298a;try{a193_0x52c8b2[_0x389a75(0x194)](this[_0x389a75(0x188)])&&a193_0x52c8b2[_0x389a75(0x193)](this[_0x389a75(0x188)],'','utf8');}catch(_0xa21dfd){console['warn']('Failed\x20to\x20clear\x20logs:',_0xa21dfd);}}[a193_0x1d298a(0x1a0)](){return this['winstonLogger'];}}function a193_0x4496(_0xd9f8d9,_0x16b094){_0xd9f8d9=_0xd9f8d9-0x188;const _0x2df112=a193_0x2df1();let _0x449661=_0x2df112[_0xd9f8d9];return _0x449661;}export const logger=new Logger();
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x347055,_0x4274e3){const _0x48b12c=a194_0x5e88,_0x4ddcd8=_0x347055();while(!![]){try{const _0x2e462c=-parseInt(_0x48b12c(0x123))/0x1+-parseInt(_0x48b12c(0x12d))/0x2+-parseInt(_0x48b12c(0x120))/0x3+-parseInt(_0x48b12c(0x128))/0x4*(parseInt(_0x48b12c(0x11f))/0x5)+-parseInt(_0x48b12c(0x12a))/0x6*(-parseInt(_0x48b12c(0x126))/0x7)+-parseInt(_0x48b12c(0x127))/0x8*(-parseInt(_0x48b12c(0x124))/0x9)+parseInt(_0x48b12c(0x11e))/0xa;if(_0x2e462c===_0x4274e3)break;else _0x4ddcd8['push'](_0x4ddcd8['shift']());}catch(_0x49310e){_0x4ddcd8['push'](_0x4ddcd8['shift']());}}}(a194_0x19fc,0x679f9));function a194_0x5e88(_0x235204,_0x1c7e8e){_0x235204=_0x235204-0x11e;const _0x19fc2f=a194_0x19fc();let _0x5e88fc=_0x19fc2f[_0x235204];return _0x5e88fc;}function a194_0x19fc(){const _0x1c1331=['Invalid\x20JSON\x20for\x20--params:\x20','112XYIUYX','257864EdSLEi','37784MATEqd','validation','306444XORqOS','parse','--params\x20must\x20be\x20a\x20JSON\x20object','200244SWszAU','12120110yJSdOP','410oSYXzr','1384902BDNogF','object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','816387UpsJvR','153GPzjIh'];a194_0x19fc=function(){return _0x1c1331;};return a194_0x19fc();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x1ce066){const _0x2853c2=a194_0x5e88;if(!_0x1ce066)return undefined;let _0x47bdd8;try{_0x47bdd8=JSON[_0x2853c2(0x12b)](_0x1ce066);}catch{throw CliErrors[_0x2853c2(0x129)](_0x2853c2(0x125)+_0x1ce066);}if(!_0x47bdd8||typeof _0x47bdd8!==_0x2853c2(0x121)||Array['isArray'](_0x47bdd8))throw CliErrors['validation'](_0x2853c2(0x12c),_0x2853c2(0x122));return _0x47bdd8;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a195_0x1b39(_0x1b9cae,_0x24025b){_0x1b9cae=_0x1b9cae-0x191;const _0x509431=a195_0x5094();let _0x1b39ff=_0x509431[_0x1b9cae];return _0x1b39ff;}const a195_0x159831=a195_0x1b39;(function(_0xa6201c,_0x26130c){const _0x376226=a195_0x1b39,_0x3067bb=_0xa6201c();while(!![]){try{const _0x5a416c=-parseInt(_0x376226(0x19a))/0x1+parseInt(_0x376226(0x192))/0x2*(-parseInt(_0x376226(0x19c))/0x3)+-parseInt(_0x376226(0x196))/0x4+-parseInt(_0x376226(0x19d))/0x5*(parseInt(_0x376226(0x199))/0x6)+parseInt(_0x376226(0x19b))/0x7*(parseInt(_0x376226(0x191))/0x8)+parseInt(_0x376226(0x195))/0x9*(parseInt(_0x376226(0x194))/0xa)+parseInt(_0x376226(0x19e))/0xb;if(_0x5a416c===_0x26130c)break;else _0x3067bb['push'](_0x3067bb['shift']());}catch(_0x168031){_0x3067bb['push'](_0x3067bb['shift']());}}}(a195_0x5094,0x6d7f8));export const isWindows=process[a195_0x159831(0x193)]===a195_0x159831(0x197);function a195_0x5094(){const _0x33b4b3=['664VbUayp','784978nffobK','platform','1287190sZYpyy','18gtcWNj','1851476VtSdiB','win32','.cmd','963258kTafuA','483897HvxIkg','20888dxZyOi','3pNvWNI','10rmLjhG','17641085ayifNt'];a195_0x5094=function(){return _0x33b4b3;};return a195_0x5094();}export function resolveNpmBin(_0x10a483){const _0x363dc4=a195_0x159831;return isWindows?_0x10a483+_0x363dc4(0x198):_0x10a483;}
|
package/lib/utils/rules-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a196_0x26cd52=a196_0x8244;(function(_0x5f3f89,_0x2bbe25){const _0x5401a8=a196_0x8244,_0x422546=_0x5f3f89();while(!![]){try{const _0x23a127=parseInt(_0x5401a8(0x194))/0x1+-parseInt(_0x5401a8(0x196))/0x2*(parseInt(_0x5401a8(0x188))/0x3)+parseInt(_0x5401a8(0x190))/0x4+-parseInt(_0x5401a8(0x18f))/0x5+parseInt(_0x5401a8(0x18e))/0x6+-parseInt(_0x5401a8(0x18c))/0x7+-parseInt(_0x5401a8(0x189))/0x8;if(_0x23a127===_0x2bbe25)break;else _0x422546['push'](_0x422546['shift']());}catch(_0xa52933){_0x422546['push'](_0x422546['shift']());}}}(a196_0x5b6a,0xa016a));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 _0x58a990=a196_0x8244,_0x5611df=getTemplateBaseUrl();return _0x5611df+_0x58a990(0x193);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a196_0x26cd52(0x192));export async function fetchRulesFromCDN(){const _0x3b404b=a196_0x26cd52,_0x6f7482=getRulesCdnUrl(),_0x39f596=await fetch(_0x6f7482,{'headers':{'Accept':_0x3b404b(0x195)}});if(!_0x39f596['ok'])throw new Error(_0x3b404b(0x186)+_0x39f596[_0x3b404b(0x199)]+'\x20'+_0x39f596[_0x3b404b(0x187)]);const _0x56a128=await _0x39f596[_0x3b404b(0x185)]();if(!_0x56a128[_0x3b404b(0x197)]||typeof _0x56a128[_0x3b404b(0x197)]!==_0x3b404b(0x18b))throw new Error(_0x3b404b(0x191));return _0x56a128;}function a196_0x8244(_0x1bdc64,_0x3e5cdb){_0x1bdc64=_0x1bdc64-0x184;const _0x5b6a16=a196_0x5b6a();let _0x82447d=_0x5b6a16[_0x1bdc64];return _0x82447d;}export async function getRulesContent(){const _0x4257cc=a196_0x26cd52;try{const _0x4e63ee=await fetchRulesFromCDN();return _0x4e63ee[_0x4257cc(0x197)];}catch{return readLocalTemplate();}}function a196_0x5b6a(){const _0x297a1c=['json','CDN\x20请求失败:\x20','statusText','3tLSyQP','5485264cEihcy','catch','string','1881103vbwknJ','utf-8','1050786wVwzcX','760270OLeXPQ','3412068gUSCqo','CDN\x20返回数据格式错误','../../templates/rules/lovrabet_rules.mdc.tpl','/rules/rules.json','1117845DmuiVG','application/json','767660GmJwFE','content','lastUpdated','status','本地模板文件不存在:\x20'];a196_0x5b6a=function(){return _0x297a1c;};return a196_0x5b6a();}export function readLocalTemplate(){const _0x12568f=a196_0x26cd52;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x12568f(0x18d));throw new Error(_0x12568f(0x184)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x5ba11b){const _0x37619a=a196_0x26cd52,_0x73e0fa=await fetchRulesFromCDN()[_0x37619a(0x18a)](()=>null);let _0x2d9b23;_0x73e0fa?(_0x2d9b23=_0x73e0fa[_0x37619a(0x197)],_0x73e0fa[_0x37619a(0x198)]&&(_0x2d9b23=appendUpdateTime(_0x2d9b23,_0x73e0fa[_0x37619a(0x198)]))):_0x2d9b23=readLocalTemplate();const _0x1aeb18=dirname(_0x5ba11b);!existsSync(_0x1aeb18)&&mkdirSync(_0x1aeb18,{'recursive':!![]}),writeFileSync(_0x5ba11b,_0x2d9b23,_0x37619a(0x18d));}export async function copyRulesToCursor(_0x5e0658){const _0x4bea98=join(_0x5e0658,'.cursor/rules'),_0x446878=join(_0x4bea98,'lovrabet_rules.mdc');if(existsSync(_0x446878))return![];return await writeRulesFile(_0x446878),!![];}export async function copyRulesToAgentsMd(_0x2ffe15){const _0x10a30d=join(_0x2ffe15,'agents.md');if(existsSync(_0x10a30d))return![];return await writeRulesFile(_0x10a30d),!![];}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x486cf8){return new Promise(_0x284f2c=>setTimeout(_0x284f2c,_0x486cf8));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a198_0x2b52(_0x58c593,_0x260319){_0x58c593=_0x58c593-0xde;const _0x14d1b3=a198_0x14d1();let _0x2b5238=_0x14d1b3[_0x58c593];return _0x2b5238;}const a198_0xe9338d=a198_0x2b52;(function(_0x12db9e,_0x55535a){const _0x5ad3a7=a198_0x2b52,_0x4b926d=_0x12db9e();while(!![]){try{const _0x2ac578=parseInt(_0x5ad3a7(0x106))/0x1+parseInt(_0x5ad3a7(0xf2))/0x2+parseInt(_0x5ad3a7(0xf0))/0x3*(-parseInt(_0x5ad3a7(0xe3))/0x4)+parseInt(_0x5ad3a7(0xfb))/0x5*(parseInt(_0x5ad3a7(0xf6))/0x6)+parseInt(_0x5ad3a7(0xf7))/0x7*(-parseInt(_0x5ad3a7(0xfc))/0x8)+parseInt(_0x5ad3a7(0xf5))/0x9+parseInt(_0x5ad3a7(0x100))/0xa;if(_0x2ac578===_0x55535a)break;else _0x4b926d['push'](_0x4b926d['shift']());}catch(_0x58fb86){_0x4b926d['push'](_0x4b926d['shift']());}}}(a198_0x14d1,0x442fc));import a198_0x308a91 from'node:fs';import a198_0x1d0cf8 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a198_0xe9338d(0x111)](_0x4cbc2e){const _0x52a4d2=a198_0xe9338d;return String(_0x4cbc2e)[_0x52a4d2(0xf3)](0x2,'0');}static[a198_0xe9338d(0x11d)](_0x5e6aa7){const _0x4f934d=a198_0xe9338d,_0xa4aa7b=_0x5e6aa7['getFullYear'](),_0x221096=this[_0x4f934d(0x111)](_0x5e6aa7['getMonth']()+0x1),_0x258830=this[_0x4f934d(0x111)](_0x5e6aa7[_0x4f934d(0x114)]()),_0x1ee6fc=this['pad'](_0x5e6aa7[_0x4f934d(0x116)]()),_0x20c3af=this[_0x4f934d(0x111)](_0x5e6aa7[_0x4f934d(0xe2)]()),_0x3062a9=this[_0x4f934d(0x111)](_0x5e6aa7[_0x4f934d(0xff)]());return{'createdAt':_0xa4aa7b+'-'+_0x221096+'-'+_0x258830+'\x20'+_0x1ee6fc+':'+_0x20c3af+':'+_0x3062a9,'createdDate':_0xa4aa7b+'-'+_0x221096+'-'+_0x258830,'createdTime':_0x1ee6fc+':'+_0x20c3af+':'+_0x3062a9};}static['toComponentName'](_0x473324){const _0xe00b16=a198_0xe9338d,_0x3566c4=_0x473324['split']('/')['pop']()||_0x473324;return _0x3566c4['split']('-')[_0xe00b16(0x124)](_0x5601d2=>_0x5601d2['charAt'](0x0)[_0xe00b16(0x11a)]()+_0x5601d2['slice'](0x1)[_0xe00b16(0xf4)]())[_0xe00b16(0xe4)]('');}static[a198_0xe9338d(0x10c)](_0x32d329){const _0x53cb25=a198_0xe9338d,_0x563ab2=_0x32d329['split']('/')[_0x53cb25(0x109)]()||_0x32d329;return _0x563ab2[_0x53cb25(0xfa)]('-')[_0x53cb25(0x124)](_0x3a805b=>_0x3a805b[_0x53cb25(0x11e)](0x0)[_0x53cb25(0x11a)]()+_0x3a805b[_0x53cb25(0xef)](0x1)[_0x53cb25(0xf4)]())[_0x53cb25(0xe4)]('\x20');}static[a198_0xe9338d(0x110)](_0xb7cb81,_0x35b3c3,_0x3eee2b){const _0x466ec6=a198_0xe9338d,_0x261a1f=this['toComponentName'](_0x35b3c3),_0xd1432f=this['toDisplayTitle'](_0x35b3c3),{createdAt:_0x4c7f85,createdDate:_0x5ebf90,createdTime:_0x13cf1c}=this[_0x466ec6(0x11d)](new Date());let _0x45be97=_0xb7cb81[_0x466ec6(0x121)](/\{CliVersion\}/g,CLI_VERSION)[_0x466ec6(0x121)](/\{ComponentName\}/g,_0x261a1f)[_0x466ec6(0x121)](/\{DisplayTitle\}/g,_0xd1432f)[_0x466ec6(0x121)](/\{PageName\}/g,_0x35b3c3)[_0x466ec6(0x121)](/\{TemplateName\}/g,_0x3eee2b)[_0x466ec6(0x121)](/\{CreatedAt\}/g,_0x4c7f85)[_0x466ec6(0x121)](/\{CreatedDate\}/g,_0x5ebf90)[_0x466ec6(0x121)](/\{CreatedTime\}/g,_0x13cf1c);return _0x45be97;}static[a198_0xe9338d(0xe7)](_0xdca722,_0x38fe82,_0x162454,_0x8c95a7,_0x15b3b8,_0x5643b8,_0x25e023,_0x417521){const _0x41ae31=a198_0xe9338d,_0xed41ac=new Date(),_0x3cf6d6=_0xed41ac[_0x41ae31(0xe9)](),_0x217068=_0x162454['map'](_0x46c116=>{const _0x51176c=_0x41ae31,_0xb965a5=['datasetCode:\x20\x22'+_0x46c116['datasetCode']+'\x22',_0x51176c(0xf1)+_0x46c116[_0x51176c(0x117)]+'\x22',_0x51176c(0x10d)+_0x46c116[_0x51176c(0x120)]+'\x22'];return _0x46c116['alias']&&_0xb965a5[_0x51176c(0x113)](_0x51176c(0xf9)+_0x46c116[_0x51176c(0xfd)]+'\x22'),_0x51176c(0x105)+_0xb965a5[_0x51176c(0xe4)](',\x20')+_0x51176c(0xed);})[_0x41ae31(0xe4)](''),_0x17bbe9=_0x8c95a7||_0x162454[0x0]?.['alias']||_0x41ae31(0x104);let _0x4458f6=_0xdca722[_0x41ae31(0x121)](/\{AppCode\}/g,_0x38fe82)['replace'](/\{ModelConfigs\}/g,_0x217068)[_0x41ae31(0x121)](/\{ExampleModelName\}/g,_0x17bbe9)[_0x41ae31(0x121)](/\{ApiFileName\}/g,_0x15b3b8||_0x41ae31(0x107))[_0x41ae31(0x121)](/\{ConfigName\}/g,_0x5643b8||_0x41ae31(0x103))['replace'](/\{ClientConfigParam\}/g,_0x25e023||'')[_0x41ae31(0x121)](/\{VarPrefix\}/g,_0x417521||_0x41ae31(0xf8))[_0x41ae31(0x121)](/\{CreatedAt\}/g,_0x3cf6d6);return _0x4458f6;}static async['processTemplate'](_0x286930,_0x5c7bd1,_0x5c1e00,_0xd58a73,_0x19e7b3=!![]){const _0x23da7f=a198_0xe9338d,_0x4182f2=Date[_0x23da7f(0x10a)]();try{_0x19e7b3&&logger[_0x23da7f(0x11c)](_0x23da7f(0x112),_0x23da7f(0xdf),{'templatePath':_0x286930,'targetPath':_0x5c7bd1,'pageName':_0x5c1e00,'templateName':_0xd58a73});await a198_0x308a91[_0x23da7f(0xe0)][_0x23da7f(0x10e)](_0x5c7bd1,{'recursive':!![]}),await this[_0x23da7f(0x122)](_0x286930,_0x5c7bd1,_0x5c1e00,_0xd58a73);if(_0x19e7b3){const _0x20d252=Date[_0x23da7f(0x10a)]()-_0x4182f2;logger[_0x23da7f(0x115)](_0x23da7f(0x112),'模板内容替换完成',_0x20d252,{'pageName':_0x5c1e00,'templateName':_0xd58a73});}}catch(_0x35cdb1){if(_0x19e7b3){const _0x382c60=Date['now']()-_0x4182f2;logger['error'](_0x23da7f(0x112),_0x23da7f(0x11b),{'templatePath':_0x286930,'targetPath':_0x5c7bd1,'pageName':_0x5c1e00,'templateName':_0xd58a73,'error':_0x35cdb1 instanceof Error?_0x35cdb1['message']:String(_0x35cdb1),'duration':_0x382c60});}throw _0x35cdb1;}}static async['processDirectory'](_0x39c231,_0x66e576,_0x47246f,_0x1e7d83){const _0x1c21b9=a198_0xe9338d,_0x5ef85b=await a198_0x308a91[_0x1c21b9(0xe0)][_0x1c21b9(0xec)](_0x39c231,{'withFileTypes':!![]});for(const _0x8fd8bf of _0x5ef85b){const _0x254729=a198_0x1d0cf8[_0x1c21b9(0xe4)](_0x39c231,_0x8fd8bf['name']);let _0xe1a48a=a198_0x1d0cf8[_0x1c21b9(0xe4)](_0x66e576,_0x8fd8bf[_0x1c21b9(0x120)]);_0x8fd8bf[_0x1c21b9(0x120)][_0x1c21b9(0x118)](_0x1c21b9(0xee))&&(_0xe1a48a=a198_0x1d0cf8[_0x1c21b9(0xe4)](_0x66e576,_0x8fd8bf[_0x1c21b9(0x120)][_0x1c21b9(0x121)](/\.tpl$/,'')));if(_0x8fd8bf[_0x1c21b9(0xe8)]())await a198_0x308a91['promises'][_0x1c21b9(0x10e)](_0xe1a48a,{'recursive':!![]}),await this[_0x1c21b9(0x122)](_0x254729,_0xe1a48a,_0x47246f,_0x1e7d83);else _0x8fd8bf[_0x1c21b9(0x119)]()&&await this['processFile'](_0x254729,_0xe1a48a,_0x47246f,_0x1e7d83);}}static async[a198_0xe9338d(0xea)](_0x42b8ee,_0x1ccf64,_0x36c76b,_0x5de40c){const _0x152a73=a198_0xe9338d,_0x42ee5f=a198_0x1d0cf8[_0x152a73(0xeb)](_0x42b8ee)[_0x152a73(0xf4)]();_0x42b8ee['endsWith'](_0x152a73(0xee))&&(_0x1ccf64=_0x1ccf64['replace'](/\.tpl$/,''));const _0x35abde=[_0x152a73(0x11f),_0x152a73(0xde),_0x152a73(0x123),_0x152a73(0x10f),_0x152a73(0x102),_0x152a73(0xe6),_0x152a73(0xfe),'.scss',_0x152a73(0xee)];if(_0x35abde[_0x152a73(0x10b)](_0x42ee5f)||_0x42b8ee[_0x152a73(0x118)]('.tpl')){const _0x54a9fb=await a198_0x308a91['promises'][_0x152a73(0xe5)](_0x42b8ee,_0x152a73(0x108)),_0x992761=this[_0x152a73(0x110)](_0x54a9fb,_0x36c76b,_0x5de40c);await a198_0x308a91[_0x152a73(0xe0)][_0x152a73(0xe1)](_0x1ccf64,_0x992761,_0x152a73(0x108));}else await a198_0x308a91[_0x152a73(0xe0)][_0x152a73(0x101)](_0x42b8ee,_0x1ccf64);}}function a198_0x14d1(){const _0x3ade67=['promises','writeFile','getMinutes','1122452vkIafq','join','readFile','.md','replaceApiContent','isDirectory','toISOString','processFile','extname','readdir','\x20},','.tpl','slice','3oHgLMZ','tableName:\x20\x22','594074wzhQos','padStart','toLowerCase','2893572JBMQyy','6wHjpHR','32473jpwBVc','LOVRABET','alias:\x20\x22','split','587365AhNPXJ','776BQHnST','alias','.css','getSeconds','641050FYOPVu','copyFile','.json','default','YourModel','\x0a\x20\x20\x20\x20{\x20','209765PzakdU','api','utf8','pop','now','includes','toDisplayTitle','name:\x20\x22','mkdir','.js','replaceContent','pad','template','push','getDate','success','getHours','tableName','endsWith','isFile','toUpperCase','模板内容替换失败','info','formatLocalTimestamp','charAt','.tsx','name','replace','processDirectory','.jsx','map','.ts','开始处理模板内容替换'];a198_0x14d1=function(){return _0x3ade67;};return a198_0x14d1();}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x40f4e6,_0x376347){var _0x160d3d=a199_0xada6,_0x2a7461=_0x40f4e6();while(!![]){try{var _0x2770b0=parseInt(_0x160d3d(0xbf))/0x1*(parseInt(_0x160d3d(0xc4))/0x2)+-parseInt(_0x160d3d(0xc2))/0x3+-parseInt(_0x160d3d(0xbe))/0x4*(-parseInt(_0x160d3d(0xc7))/0x5)+-parseInt(_0x160d3d(0xc0))/0x6*(parseInt(_0x160d3d(0xc3))/0x7)+-parseInt(_0x160d3d(0xbd))/0x8+-parseInt(_0x160d3d(0xc1))/0x9*(parseInt(_0x160d3d(0xc6))/0xa)+parseInt(_0x160d3d(0xc5))/0xb;if(_0x2770b0===_0x376347)break;else _0x2a7461['push'](_0x2a7461['shift']());}catch(_0x25352e){_0x2a7461['push'](_0x2a7461['shift']());}}}(a199_0x274c,0xef642));function a199_0x274c(){var _0x3840a6=['3tDxjdu','3282hyFKcB','15370785nunlYr','2042034WlcKEf','20237qtYEts','131566XpTvuQ','72196047SeeNCH','10rysVHP','220RzvHNV','15373248WGMSpQ','10136SKtjrW'];a199_0x274c=function(){return _0x3840a6;};return a199_0x274c();}function a199_0xada6(_0x2f80f2,_0x2d1e30){_0x2f80f2=_0x2f80f2-0xbd;var _0x274ceb=a199_0x274c();var _0xada647=_0x274ceb[_0x2f80f2];return _0xada647;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x41805e,_0x5090c0){var _0x52c656=a200_0x925e,_0x5d6c6a=_0x41805e();while(!![]){try{var _0x2531ae=parseInt(_0x52c656(0xa4))/0x1*(parseInt(_0x52c656(0xa0))/0x2)+-parseInt(_0x52c656(0xa1))/0x3+parseInt(_0x52c656(0xa2))/0x4+-parseInt(_0x52c656(0x9f))/0x5*(parseInt(_0x52c656(0xa3))/0x6)+-parseInt(_0x52c656(0xa5))/0x7+parseInt(_0x52c656(0xa6))/0x8+parseInt(_0x52c656(0x9e))/0x9;if(_0x2531ae===_0x5090c0)break;else _0x5d6c6a['push'](_0x5d6c6a['shift']());}catch(_0x27e2ee){_0x5d6c6a['push'](_0x5d6c6a['shift']());}}}(a200_0x890e,0x358c4));function a200_0x925e(_0x533a66,_0x38bd65){_0x533a66=_0x533a66-0x9e;var _0x890ead=a200_0x890e();var _0x925ec0=_0x890ead[_0x533a66];return _0x925ec0;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a200_0x890e(){var _0x2e2198=['1130406LpObMm','14uucMph','1079596GVTOeV','467760fHqXUw','988137DzCpYY','5HeANBR','36020zTcpcH','221670KJMASc','861792PiLLPg'];a200_0x890e=function(){return _0x2e2198;};return a200_0x890e();}export async function withActiveCookie(_0x5e515a,_0x59cacb){setActiveCookie(_0x5e515a);try{return await _0x59cacb();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a201_0x46c3(_0x554330,_0x546896){_0x554330=_0x554330-0x1c9;var _0x41187e=a201_0x4118();var _0x46c374=_0x41187e[_0x554330];return _0x46c374;}(function(_0x4a1bfc,_0x2bc2c4){var _0x28e4aa=a201_0x46c3,_0x220bcd=_0x4a1bfc();while(!![]){try{var _0x15d024=parseInt(_0x28e4aa(0x1cd))/0x1*(parseInt(_0x28e4aa(0x1ce))/0x2)+-parseInt(_0x28e4aa(0x1d1))/0x3+-parseInt(_0x28e4aa(0x1d2))/0x4+parseInt(_0x28e4aa(0x1d3))/0x5*(-parseInt(_0x28e4aa(0x1c9))/0x6)+parseInt(_0x28e4aa(0x1ca))/0x7+parseInt(_0x28e4aa(0x1cb))/0x8*(-parseInt(_0x28e4aa(0x1cf))/0x9)+parseInt(_0x28e4aa(0x1d0))/0xa;if(_0x15d024===_0x2bc2c4)break;else _0x220bcd['push'](_0x220bcd['shift']());}catch(_0x527db6){_0x220bcd['push'](_0x220bcd['shift']());}}}(a201_0x4118,0x9f928));export function writeCliSideChannelLine(_0x3f671d){var _0x36f61b=a201_0x46c3;process['stderr'][_0x36f61b(0x1cc)](_0x3f671d+'\x0a');}function a201_0x4118(){var _0x221caf=['1736796QbJutw','2604264SbbYRb','10CqkbwM','3244644EWqEAi','2597784jWvMYL','8UWBqQG','write','4677AUOKin','148PQNtPw','1200294oCaupQ','23813100cerxji'];a201_0x4118=function(){return _0x221caf;};return a201_0x4118();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.12-beta.1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@inquirer/prompts": "^8.3.2",
|
|
58
58
|
"@lovrabet/cli-framework": "1.0.3",
|
|
59
|
-
"@lovrabet/otel-logger": "1.0.1-beta.
|
|
59
|
+
"@lovrabet/otel-logger": "1.0.1-beta.5",
|
|
60
60
|
"@opentelemetry/api": "^1.9.1",
|
|
61
61
|
"chalk": "^5.6.2",
|
|
62
62
|
"execa": "^9.6.0",
|