@lovrabet/rabetbase-cli 2.1.10-beta.2 → 2.1.10-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/discover.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.js +1 -1
- package/lib/commands/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 -0
- 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 +1 -1
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a180_0x484e6b=a180_0x3f51;(function(_0x57eb1a,_0x522c19){const _0x148b0b=a180_0x3f51,_0x34891d=_0x57eb1a();while(!![]){try{const _0x55a0ab=parseInt(_0x148b0b(0x147))/0x1+-parseInt(_0x148b0b(0x15f))/0x2*(-parseInt(_0x148b0b(0x140))/0x3)+parseInt(_0x148b0b(0x163))/0x4*(parseInt(_0x148b0b(0x13b))/0x5)+parseInt(_0x148b0b(0x157))/0x6+parseInt(_0x148b0b(0x148))/0x7+parseInt(_0x148b0b(0x156))/0x8*(-parseInt(_0x148b0b(0x14a))/0x9)+-parseInt(_0x148b0b(0x150))/0xa*(parseInt(_0x148b0b(0x130))/0xb);if(_0x55a0ab===_0x522c19)break;else _0x34891d['push'](_0x34891d['shift']());}catch(_0xb4ccbe){_0x34891d['push'](_0x34891d['shift']());}}}(a180_0x25ff,0xa5c8d));export const CORE_IDE_CONFIGS={'cursor':{'name':a180_0x484e6b(0x141),'description':a180_0x484e6b(0x144),'folders':['.cursorrules',a180_0x484e6b(0x134)],'files':[{'type':a180_0x484e6b(0x145),'path':'.cursor/skills/rabetbase.md','template':a180_0x484e6b(0x15b)}]},'windsurf':{'name':a180_0x484e6b(0x160),'description':'Windsurf\x20IDE','folders':[a180_0x484e6b(0x135)],'files':[{'type':'file','path':a180_0x484e6b(0x152),'template':a180_0x484e6b(0x15b)}]},'claude':{'name':a180_0x484e6b(0x15e),'description':'Claude\x20Code','folders':[a180_0x484e6b(0x132)],'files':[{'type':a180_0x484e6b(0x145),'path':a180_0x484e6b(0x161),'template':'SKILL.md.tpl'}]},'cline':{'name':a180_0x484e6b(0x142),'description':a180_0x484e6b(0x143),'folders':[a180_0x484e6b(0x13a)],'files':[{'type':a180_0x484e6b(0x145),'path':a180_0x484e6b(0x151),'template':a180_0x484e6b(0x15b)}]},'codex':{'name':a180_0x484e6b(0x139),'description':'Codex\x20IDE','folders':['.codex'],'files':[{'type':'file','path':a180_0x484e6b(0x159),'template':a180_0x484e6b(0x15b)}]},'opencode':{'name':a180_0x484e6b(0x12e),'description':'OpenCode\x20IDE','folders':['.opencode'],'files':[{'type':a180_0x484e6b(0x145),'path':'.opencode/skills/lovrabet/SKILL.md','template':a180_0x484e6b(0x15b)}]},'qoder':{'name':a180_0x484e6b(0x149),'description':a180_0x484e6b(0x14f),'folders':[a180_0x484e6b(0x14b)],'files':[{'type':a180_0x484e6b(0x145),'path':a180_0x484e6b(0x155),'template':'SKILL.md.tpl'},{'type':a180_0x484e6b(0x145),'path':'.qoder/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'codebuddy':{'name':a180_0x484e6b(0x131),'description':'CodeBuddy\x20IDE','folders':[a180_0x484e6b(0x13d)],'files':[{'type':a180_0x484e6b(0x145),'path':a180_0x484e6b(0x15a),'template':a180_0x484e6b(0x15b)}]},'trae':{'name':'Trae','description':a180_0x484e6b(0x14d),'folders':['.trae'],'files':[{'type':a180_0x484e6b(0x145),'path':a180_0x484e6b(0x14c),'template':'SKILL.md.tpl'}]}};function a180_0x3f51(_0x325a4b,_0x5262ca){_0x325a4b=_0x325a4b-0x12e;const _0x25ff78=a180_0x25ff();let _0x3f5157=_0x25ff78[_0x325a4b];return _0x3f5157;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a180_0x484e6b(0x154),'description':a180_0x484e6b(0x14e),'folders':[a180_0x484e6b(0x13e)],'files':[{'type':a180_0x484e6b(0x145),'path':a180_0x484e6b(0x162),'template':a180_0x484e6b(0x15b)}]},'antigravity':{'name':'Antigravity','description':a180_0x484e6b(0x153),'folders':[a180_0x484e6b(0x13e)],'files':[{'type':'file','path':a180_0x484e6b(0x162),'template':a180_0x484e6b(0x15b)}]}};export const CORE_IDE_LIST=[a180_0x484e6b(0x146),a180_0x484e6b(0x133),a180_0x484e6b(0x138),'codex',a180_0x484e6b(0x13f),a180_0x484e6b(0x136),a180_0x484e6b(0x137),'trae',a180_0x484e6b(0x15c)];export const IDE_LIST=[a180_0x484e6b(0x12f),a180_0x484e6b(0x146),a180_0x484e6b(0x133),a180_0x484e6b(0x138),a180_0x484e6b(0x15d),'cursor',a180_0x484e6b(0x136),a180_0x484e6b(0x137),a180_0x484e6b(0x158),a180_0x484e6b(0x15c),a180_0x484e6b(0x13c)];function a180_0x25ff(){const _0x38e0da=['Qoder','9Eenctl','.qoder','.trae/skills/lovrabet/SKILL.md','Trae\x20IDE','通用模板\x20-\x20兜底方案','Qoder\x20IDE','359750ZjBDDc','.cline/skills/lovrabet/SKILL.md','.windsurf/workflows/rabetbase.md','Antigravity\x20IDE','其他\x20(通用模板)','.qoder/rules/rabetbase.md','10064152lAQYIq','2650590kHQgvJ','trae','.codex/skills/lovrabet/SKILL.md','.codebuddy/skills/lovrabet/SKILL.md','SKILL.md.tpl','windsurf','codex','Claude\x20Code','735308kaPceH','Windsurf','.claude/skills/lovrabet/SKILL.md','.agent/skills/lovrabet/SKILL.md','2176388AogxEY','OpenCode','antigravity','473QwchoC','CodeBuddy','.claude','cline','.cursor','.windsurf','opencode','qoder','codebuddy','Codex','.cline','10godDhu','agent','.codebuddy','.agent','cursor','9PbKJUH','Cursor','Cline','Cline\x20IDE','Cursor\x20IDE','file','claude','100694uDueZJ','5252674YVriFN'];a180_0x25ff=function(){return _0x38e0da;};return a180_0x25ff();}export const ALL_CORE_IDES=['cursor',a180_0x484e6b(0x15c),'claude',a180_0x484e6b(0x133),'codex',a180_0x484e6b(0x136),'qoder','codebuddy',a180_0x484e6b(0x158)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x495364,_0x35aaff){const _0x52b29d=a181_0x1c85,_0x12dd34=_0x495364();while(!![]){try{const _0x3c8675=parseInt(_0x52b29d(0x1ae))/0x1+parseInt(_0x52b29d(0x1ad))/0x2+-parseInt(_0x52b29d(0x1ac))/0x3*(parseInt(_0x52b29d(0x1b0))/0x4)+-parseInt(_0x52b29d(0x1ab))/0x5+parseInt(_0x52b29d(0x1b1))/0x6+parseInt(_0x52b29d(0x1af))/0x7+-parseInt(_0x52b29d(0x1b2))/0x8*(-parseInt(_0x52b29d(0x1b3))/0x9);if(_0x3c8675===_0x35aaff)break;else _0x12dd34['push'](_0x12dd34['shift']());}catch(_0x4f6032){_0x12dd34['push'](_0x12dd34['shift']());}}}(a181_0x5c7a,0x9d7cf));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a181_0x5c7a(){const _0x319281=['63nBzgcD','1569660EyLRyI','357472OFYHOE','2135868AzKnFt','239384fZKFYg','147054xpaBse','54904reoijI','1476mzIBBp','3478150RpgVnf'];a181_0x5c7a=function(){return _0x319281;};return a181_0x5c7a();}import{CliErrors}from'../errors.js';function a181_0x1c85(_0x2ca200,_0x2f237b){_0x2ca200=_0x2ca200-0x1ab;const _0x5c7a6d=a181_0x5c7a();let _0x1c852c=_0x5c7a6d[_0x2ca200];return _0x1c852c;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
package/lib/utils/cdn-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1052ff,_0x837d15){const _0x31db2b=a182_0x5722,_0x4be0df=_0x1052ff();while(!![]){try{const _0x53a5ec=parseInt(_0x31db2b(0x11f))/0x1+-parseInt(_0x31db2b(0x115))/0x2+-parseInt(_0x31db2b(0x116))/0x3*(-parseInt(_0x31db2b(0x11c))/0x4)+parseInt(_0x31db2b(0x124))/0x5*(-parseInt(_0x31db2b(0x121))/0x6)+parseInt(_0x31db2b(0x120))/0x7*(-parseInt(_0x31db2b(0x119))/0x8)+-parseInt(_0x31db2b(0x114))/0x9*(-parseInt(_0x31db2b(0x117))/0xa)+parseInt(_0x31db2b(0x11b))/0xb;if(_0x53a5ec===_0x837d15)break;else _0x4be0df['push'](_0x4be0df['shift']());}catch(_0x45d0e2){_0x4be0df['push'](_0x4be0df['shift']());}}}(a182_0x4ad7,0x222c5));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x369627=a182_0x5722,_0x590f10=getTemplateBaseUrl(),_0x16bea8=[_0x590f10+_0x369627(0x118),_0x590f10+_0x369627(0x123)];for(const _0x45d73d of _0x16bea8){try{const _0x536634=await fetch(_0x45d73d,{'headers':{'Accept':_0x369627(0x113)}});if(!_0x536634['ok'])continue;const _0x5fa4d8=await _0x536634[_0x369627(0x11d)]();if(!_0x5fa4d8[_0x369627(0x11e)]?.[_0x369627(0x11a)]||!_0x5fa4d8['sdk']?.['node']?.[_0x369627(0x11a)])continue;return _0x5fa4d8;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a182_0x4ad7(){const _0x51ae3f=['255409eVPGvW','174712hkhrvS','json','cli','143219KjPhPz','32865HUiJVh','60CWimUa','now','/config/index.json','13190WacGsU','application/json','27FdvBKI','215466KZbgAa','6Npcoaz','302390bvgRNd','/config.json','120ffBAQQ','stableVersion'];a182_0x4ad7=function(){return _0x51ae3f;};return a182_0x4ad7();}function a182_0x5722(_0x39ac57,_0x52d204){_0x39ac57=_0x39ac57-0x113;const _0x4ad794=a182_0x4ad7();let _0x5722cc=_0x4ad794[_0x39ac57];return _0x5722cc;}let hasCachedConfig=![];export async function getCdnConfig(){const _0xbc04ca=a182_0x5722,_0x2f4186=Date[_0xbc04ca(0x122)]();if(hasCachedConfig){const _0x5396fb=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2f4186-cacheTime<_0x5396fb)return cachedConfig;}const _0x20c841=await fetchCdnConfig();return cachedConfig=_0x20c841,cacheTime=_0x2f4186,hasCachedConfig=!![],_0x20c841;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a183_0x502fcb=a183_0xea0a;(function(_0x3598d5,_0x12b57f){const _0x5366fd=a183_0xea0a,_0x1ec6df=_0x3598d5();while(!![]){try{const _0x423b65=-parseInt(_0x5366fd(0x190))/0x1+parseInt(_0x5366fd(0x189))/0x2+-parseInt(_0x5366fd(0x179))/0x3*(-parseInt(_0x5366fd(0x19e))/0x4)+-parseInt(_0x5366fd(0x182))/0x5*(parseInt(_0x5366fd(0x188))/0x6)+parseInt(_0x5366fd(0x17c))/0x7+parseInt(_0x5366fd(0x196))/0x8*(parseInt(_0x5366fd(0x187))/0x9)+parseInt(_0x5366fd(0x199))/0xa*(-parseInt(_0x5366fd(0x18e))/0xb);if(_0x423b65===_0x12b57f)break;else _0x1ec6df['push'](_0x1ec6df['shift']());}catch(_0x39be12){_0x1ec6df['push'](_0x1ec6df['shift']());}}}(a183_0x2a0b,0xafc94));import a183_0x21dfbb from'node:fs';import a183_0x218d86 from'node:path';import a183_0x2ec347 from'semver';function a183_0x2a0b(){const _0x41ef0e=['\x1b[0m','all','utf8','log','11wKDnRm','\x20\x20\x20Upgrade\x20command:\x20','259233vPymWH','existsSync','node','package.json','test','packageName','892504mbZYnY','\x1b[33m','minVersion','26458730DbDOSI','version','1.2.0','coerce','some','4qyjhOH','sdk','npm\x20install\x20','dependencies','2670897fzNYoE','stableVersion','join','5910464FQFHzP','parse','\x1b[1m','@lovrabet/sdk','readFileSync','needsUpgrade','53715xesVEd','↪\x20SDK\x20update\x20available','devDependencies','latest','utf-8','81SchXGI','54zvUWEA','1966190YKtaTg'];a183_0x2a0b=function(){return _0x41ef0e;};return a183_0x2a0b();}import{getCdnConfig}from'../utils/cdn-config.js';function a183_0xea0a(_0x4f1e59,_0x4c8630){_0x4f1e59=_0x4f1e59-0x179;const _0x2a0bf5=a183_0x2a0b();let _0xea0aa3=_0x2a0bf5[_0x4f1e59];return _0xea0aa3;}const FALLBACK_MIN_SDK_VERSION=a183_0x502fcb(0x19b);function isNonNumericVersion(_0xaf6dd2){const _0x3e0f3d=a183_0x502fcb,_0x68c403=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x68c403[_0x3e0f3d(0x19d)](_0x177cad=>_0x177cad[_0x3e0f3d(0x194)](_0xaf6dd2));}function getInstalledVersion(_0x5d816c,_0x502baa){const _0x31593a=a183_0x502fcb;try{const _0xb37e03=a183_0x218d86[_0x31593a(0x17b)](_0x5d816c,'node_modules',_0x502baa,'package.json');if(a183_0x21dfbb[_0x31593a(0x191)](_0xb37e03)){const _0x259b66=JSON[_0x31593a(0x17d)](a183_0x21dfbb['readFileSync'](_0xb37e03,_0x31593a(0x186)));return _0x259b66[_0x31593a(0x19a)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x15f2bd=a183_0x502fcb;try{const _0x157faf=await getCdnConfig();return _0x157faf?.[_0x15f2bd(0x19f)]?.[_0x15f2bd(0x192)]?.[_0x15f2bd(0x17a)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x1118d7=a183_0x502fcb;try{const _0x5d54aa=await getCdnConfig();return _0x5d54aa?.[_0x1118d7(0x19f)]?.[_0x1118d7(0x192)]?.[_0x1118d7(0x195)]||'@lovrabet/sdk';}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x479103){const _0x17c73f=a183_0x502fcb,_0x54d54d=a183_0x218d86['join'](_0x479103,_0x17c73f(0x193)),[_0x3025b2,_0x5c769b]=await Promise[_0x17c73f(0x18b)]([getSdkStableVersion(),getSdkPackageName()]),_0x40b10d=_0x3025b2||FALLBACK_MIN_SDK_VERSION;if(!a183_0x21dfbb[_0x17c73f(0x191)](_0x54d54d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x40b10d,'packageName':_0x5c769b,'stableVersion':_0x3025b2};try{const _0x71ea49=JSON[_0x17c73f(0x17d)](a183_0x21dfbb[_0x17c73f(0x180)](_0x54d54d,'utf8')),_0x3a974e=_0x71ea49['dependencies']||{},_0x4050e0=_0x71ea49[_0x17c73f(0x184)]||{},_0x23f82f=_0x3a974e[_0x5c769b]||_0x4050e0[_0x5c769b];if(!_0x23f82f)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x40b10d,'packageName':_0x5c769b,'stableVersion':_0x3025b2};let _0x344e50=getInstalledVersion(_0x479103,_0x5c769b);!_0x344e50&&(_0x344e50=_0x23f82f);if(isNonNumericVersion(_0x23f82f))return{'installed':!![],'version':_0x344e50,'needsUpgrade':![],'minVersion':_0x40b10d,'packageName':_0x5c769b,'stableVersion':_0x3025b2};const _0x12134b=a183_0x2ec347[_0x17c73f(0x19c)](_0x344e50),_0x4c8953=a183_0x2ec347[_0x17c73f(0x19c)](_0x40b10d),_0x307442=_0x12134b&&_0x4c8953?a183_0x2ec347['lt'](_0x12134b,_0x4c8953):![];return{'installed':!![],'version':_0x344e50,'needsUpgrade':_0x307442,'minVersion':_0x40b10d,'packageName':_0x5c769b,'stableVersion':_0x3025b2};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x40b10d,'packageName':_0x5c769b,'stableVersion':_0x3025b2};}}export function checkSdkVersionSync(_0x1c0910){const _0x330f0a=a183_0x502fcb,_0x34d7d7=a183_0x218d86[_0x330f0a(0x17b)](_0x1c0910,_0x330f0a(0x193)),_0x3ba036=_0x330f0a(0x17f);if(!a183_0x21dfbb[_0x330f0a(0x191)](_0x34d7d7))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3ba036,'stableVersion':null};try{const _0x4b3d66=JSON[_0x330f0a(0x17d)](a183_0x21dfbb['readFileSync'](_0x34d7d7,_0x330f0a(0x18c))),_0x170218=_0x4b3d66[_0x330f0a(0x1a1)]||{},_0x5f0bc6=_0x4b3d66[_0x330f0a(0x184)]||{},_0x317e42=_0x170218[_0x3ba036]||_0x5f0bc6[_0x3ba036];if(!_0x317e42)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3ba036,'stableVersion':null};let _0xdf58cc=getInstalledVersion(_0x1c0910,_0x3ba036);!_0xdf58cc&&(_0xdf58cc=_0x317e42);if(isNonNumericVersion(_0x317e42))return{'installed':!![],'version':_0xdf58cc,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3ba036,'stableVersion':null};const _0x20ee98=a183_0x2ec347[_0x330f0a(0x19c)](_0xdf58cc),_0x48f441=_0x20ee98?a183_0x2ec347['lt'](_0x20ee98,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0xdf58cc,'needsUpgrade':_0x48f441,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3ba036,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3ba036,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x36e04f){const _0x284752=a183_0x502fcb;if(!_0x36e04f[_0x284752(0x181)])return;const _0x1201fd=_0x284752(0x197),_0x244644=_0x284752(0x18a),_0x3c20a5=_0x284752(0x17e),_0x1e1ad1=_0x36e04f[_0x284752(0x195)]||_0x284752(0x17f),_0x5aaf12=_0x36e04f[_0x284752(0x17a)]||_0x36e04f[_0x284752(0x198)],_0x5126d8=_0x284752(0x1a0)+_0x1e1ad1+'@'+(_0x5aaf12||_0x284752(0x185));console[_0x284752(0x18d)](),console['log'](''+_0x1201fd+_0x3c20a5+_0x284752(0x183)+_0x244644),console['log'](_0x1201fd+'\x20\x20\x20Current\x20version:\x20'+_0x1e1ad1+'@'+_0x36e04f[_0x284752(0x19a)]+_0x244644),console['log'](_0x1201fd+'\x20\x20\x20Stable\x20version:\x20'+_0x5aaf12+_0x244644),console[_0x284752(0x18d)](_0x1201fd+_0x284752(0x18f)+_0x5126d8+_0x244644),console[_0x284752(0x18d)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x56b116,_0x1b6038){const _0x50d6d1=a184_0x43df,_0x4b41db=_0x56b116();while(!![]){try{const _0x367f4f=-parseInt(_0x50d6d1(0x14f))/0x1+-parseInt(_0x50d6d1(0x156))/0x2+-parseInt(_0x50d6d1(0x15f))/0x3*(-parseInt(_0x50d6d1(0x16e))/0x4)+-parseInt(_0x50d6d1(0x15a))/0x5*(parseInt(_0x50d6d1(0x16a))/0x6)+parseInt(_0x50d6d1(0x155))/0x7*(parseInt(_0x50d6d1(0x152))/0x8)+parseInt(_0x50d6d1(0x15e))/0x9*(parseInt(_0x50d6d1(0x15d))/0xa)+parseInt(_0x50d6d1(0x168))/0xb;if(_0x367f4f===_0x1b6038)break;else _0x4b41db['push'](_0x4b41db['shift']());}catch(_0x2db6bf){_0x4b41db['push'](_0x4b41db['shift']());}}}(a184_0x30b3,0x5c404));function a184_0x43df(_0x4a472f,_0xe780a7){_0x4a472f=_0x4a472f-0x145;const _0x30b317=a184_0x30b3();let _0x43df45=_0x30b317[_0x4a472f];return _0x43df45;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a184_0x5ab21f from'semver';function a184_0x30b3(){const _0x194d6f=['180145CMoeUS','1508794xwGxQv','currentVersion','npm\x20install\x20-g\x20','version','65OnLWap','Minimum\x20required:\x20','\x20\x20\x20','60ePQcSr','927837HoqhIl','2556fhsXxP','\x20\x20\x20Current\x20CLI\x20version:\x20','\x20\x20\x20Recommended\x20stable:\x20','parse','upgradeMessage','1.0.0','validation','minimumVersion','\x1b[0m','4045239oMkztQ','coerce','275070nWUlJe','join','Current\x20version:\x20','latest','848kfynVJ','\x20\x20\x20Minimum\x20required:\x20','belowMinimum','log','package.json','needsUpgrade','../..','minimumVersionMessage','Upgrade\x20command:\x20','↪\x20New\x20version\x20available','\x20\x20\x20Upgrade\x20command:\x20','185004VSYrBH','stableVersion','\x1b[1m','232BLjLBQ','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','↪\x20Critical\x20CLI\x20upgrade\x20required'];a184_0x30b3=function(){return _0x194d6f;};return a184_0x30b3();}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x394afe){const _0x271d79=a184_0x43df,_0x2ad4b6=_0x394afe[_0x271d79(0x150)]||_0x271d79(0x16d);return _0x271d79(0x158)+NPM_PACKAGE_NAME+'@'+_0x2ad4b6;}function getCurrentCliVersion(){const _0xdf2399=a184_0x43df;try{const _0x2954a3=fileURLToPath(import.meta.url),_0x57aca4=resolve(dirname(_0x2954a3),_0xdf2399(0x14a)),_0x49a355=resolve(_0x57aca4,_0xdf2399(0x148)),_0x1eb769=JSON[_0xdf2399(0x162)](readFileSync(_0x49a355,'utf-8'));return _0x1eb769[_0xdf2399(0x159)]||_0xdf2399(0x164);}catch{return _0xdf2399(0x164);}}export async function checkCliVersion(){const _0x60a570=a184_0x43df,_0x593541=getCurrentCliVersion(),_0x345c3b=await getCliVersionPolicy(),_0x3ff36b=_0x345c3b?.['stableVersion']||null,_0x3da9a4=_0x345c3b?.['minimumVersion']||null;let _0x152f5a=![],_0x986caa=![];const _0x4feccd=a184_0x5ab21f[_0x60a570(0x169)](_0x593541);if(_0x4feccd&&_0x3ff36b)try{const _0x258174=a184_0x5ab21f['coerce'](_0x3ff36b);if(_0x258174)_0x152f5a=a184_0x5ab21f['lt'](_0x4feccd,_0x258174);}catch{}if(_0x4feccd&&_0x3da9a4)try{const _0x53263d=a184_0x5ab21f[_0x60a570(0x169)](_0x3da9a4);if(_0x53263d)_0x986caa=a184_0x5ab21f['lt'](_0x4feccd,_0x53263d);}catch{}return _0x986caa&&(_0x152f5a=!![]),{'currentVersion':_0x593541,'stableVersion':_0x3ff36b,'minimumVersion':_0x3da9a4,'needsUpgrade':_0x152f5a,'belowMinimum':_0x986caa,'isPreRelease':![],'upgradeMessage':_0x345c3b?.['upgradeMessage'],'minimumVersionMessage':_0x345c3b?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0xdd4c3b){const _0x2af51=a184_0x43df;if(!_0xdd4c3b[_0x2af51(0x149)]&&!_0xdd4c3b[_0x2af51(0x146)])return;const _0x1d5e7f='\x1b[31m',_0x17bb9a='\x1b[33m',_0x3cbd59=_0x2af51(0x167),_0xdc6bac=_0x2af51(0x151),_0x4e2001=getCliUpgradeCommand(_0xdd4c3b);console[_0x2af51(0x147)](),_0xdd4c3b[_0x2af51(0x146)]?(console['log'](''+_0x1d5e7f+_0xdc6bac+_0x2af51(0x154)+_0x3cbd59),console[_0x2af51(0x147)](_0x1d5e7f+_0x2af51(0x160)+_0xdd4c3b[_0x2af51(0x157)]+_0x3cbd59),_0xdd4c3b[_0x2af51(0x166)]&&console[_0x2af51(0x147)](_0x1d5e7f+_0x2af51(0x145)+_0xdd4c3b['minimumVersion']+_0x3cbd59),_0xdd4c3b['stableVersion']&&_0xdd4c3b[_0x2af51(0x150)]!==_0xdd4c3b[_0x2af51(0x166)]&&console[_0x2af51(0x147)](_0x1d5e7f+_0x2af51(0x161)+_0xdd4c3b['stableVersion']+_0x3cbd59),_0xdd4c3b[_0x2af51(0x14b)]&&console[_0x2af51(0x147)](_0x1d5e7f+_0x2af51(0x15c)+_0xdd4c3b[_0x2af51(0x14b)]+_0x3cbd59),console[_0x2af51(0x147)](_0x1d5e7f+_0x2af51(0x14e)+_0x4e2001+_0x3cbd59)):(console[_0x2af51(0x147)](''+_0x17bb9a+_0xdc6bac+_0x2af51(0x14d)+_0x3cbd59),console[_0x2af51(0x147)](_0x17bb9a+_0x2af51(0x160)+_0xdd4c3b['currentVersion']+_0x3cbd59),console['log'](_0x17bb9a+'\x20\x20\x20Stable\x20version:\x20'+_0xdd4c3b['stableVersion']+_0x3cbd59),_0xdd4c3b['upgradeMessage']&&console[_0x2af51(0x147)](_0x17bb9a+'\x20\x20\x20'+_0xdd4c3b[_0x2af51(0x163)]+_0x3cbd59),console[_0x2af51(0x147)](_0x17bb9a+_0x2af51(0x14e)+_0x4e2001+_0x3cbd59)),console['log']();}export function assertCliVersionSupported(_0x36e855){const _0x1d456f=a184_0x43df;if(!_0x36e855[_0x1d456f(0x146)])return;const _0x253573=[_0x36e855[_0x1d456f(0x14b)],_0x1d456f(0x16c)+_0x36e855[_0x1d456f(0x157)],_0x36e855['minimumVersion']?_0x1d456f(0x15b)+_0x36e855[_0x1d456f(0x166)]:null,_0x1d456f(0x14c)+getCliUpgradeCommand(_0x36e855)]['filter'](Boolean)[_0x1d456f(0x16b)]('\x0a');throw CliErrors[_0x1d456f(0x165)](_0x1d456f(0x153),_0x253573);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a185_0x5f31(){const _0x40e797=['226074sejpuF','minVersion','452350jKufjp','stableVersion','cli','recommendedVersion','upgradeMessage','minimumVersionMessage','833277wRKRnF','application/json','object','56fkBVpF','minimumVersion','403550fRvqsb','signal','217453UsAuLR','1345188MnFvoF','string','trim','1541580rwLaEC'];a185_0x5f31=function(){return _0x40e797;};return a185_0x5f31();}(function(_0xdd9066,_0x28f52b){const _0x47cb69=a185_0x33df,_0x1911f3=_0xdd9066();while(!![]){try{const _0x5ed446=-parseInt(_0x47cb69(0x1e1))/0x1+parseInt(_0x47cb69(0x1e6))/0x2+-parseInt(_0x47cb69(0x1da))/0x3+parseInt(_0x47cb69(0x1e2))/0x4+parseInt(_0x47cb69(0x1e8))/0x5+-parseInt(_0x47cb69(0x1e5))/0x6+-parseInt(_0x47cb69(0x1df))/0x7*(-parseInt(_0x47cb69(0x1dd))/0x8);if(_0x5ed446===_0x28f52b)break;else _0x1911f3['push'](_0x1911f3['shift']());}catch(_0x4a1204){_0x1911f3['push'](_0x1911f3['shift']());}}}(a185_0x5f31,0x2eaec));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 a185_0x33df(_0x57d1e9,_0x4320fb){_0x57d1e9=_0x57d1e9-0x1d6;const _0x5f317e=a185_0x5f31();let _0x33dfc5=_0x5f317e[_0x57d1e9];return _0x33dfc5;}function pickString(_0x2d8470){const _0x1277d6=a185_0x33df;return typeof _0x2d8470===_0x1277d6(0x1e3)&&_0x2d8470['trim']()['length']>0x0?_0x2d8470[_0x1277d6(0x1e4)]():null;}function normalizeCliVersionPolicy(_0x54c205){const _0x380dd7=a185_0x33df;if(!_0x54c205||typeof _0x54c205!==_0x380dd7(0x1dc))return null;const _0x4a3e88=_0x54c205,_0x525cf2=_0x4a3e88[_0x380dd7(0x1d6)]&&typeof _0x4a3e88[_0x380dd7(0x1d6)]===_0x380dd7(0x1dc)?_0x4a3e88[_0x380dd7(0x1d6)]:_0x4a3e88,_0x2657c1=pickString(_0x525cf2[_0x380dd7(0x1e9)])||pickString(_0x525cf2['latestVersion'])||pickString(_0x525cf2[_0x380dd7(0x1d7)]),_0x482502=pickString(_0x525cf2[_0x380dd7(0x1de)])||pickString(_0x525cf2[_0x380dd7(0x1e7)]);if(!_0x2657c1&&!_0x482502)return null;return{'stableVersion':_0x2657c1,'minimumVersion':_0x482502,'upgradeMessage':pickString(_0x525cf2[_0x380dd7(0x1d8)])||undefined,'minimumVersionMessage':pickString(_0x525cf2[_0x380dd7(0x1d9)])||undefined};}export async function fetchCliVersionPolicy(){const _0x15ea4f=a185_0x33df,_0x38e878=new AbortController(),_0x222c09=setTimeout(()=>_0x38e878['abort'](),FETCH_TIMEOUT_MS);try{const _0x134492=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x15ea4f(0x1db)},'signal':_0x38e878[_0x15ea4f(0x1e0)]});if(!_0x134492['ok'])return null;const _0x5bd2db=await _0x134492['json']();return normalizeCliVersionPolicy(_0x5bd2db);}catch{return null;}finally{clearTimeout(_0x222c09);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x2a4649=Date['now']();if(hasCachedPolicy){const _0x28a15e=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2a4649-cacheTime<_0x28a15e)return cachedPolicy;}const _0x534545=await fetchCliVersionPolicy();return cachedPolicy=_0x534545,cacheTime=_0x2a4649,hasCachedPolicy=!![],_0x534545;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
|
package/lib/utils/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a186_0x3fdba7=a186_0x523d;(function(_0x2c2465,_0x3ff9c2){const _0x3085d9=a186_0x523d,_0x670052=_0x2c2465();while(!![]){try{const _0x20c184=parseInt(_0x3085d9(0x12b))/0x1+-parseInt(_0x3085d9(0x127))/0x2*(parseInt(_0x3085d9(0x125))/0x3)+parseInt(_0x3085d9(0x129))/0x4+parseInt(_0x3085d9(0x12a))/0x5*(parseInt(_0x3085d9(0x126))/0x6)+parseInt(_0x3085d9(0x128))/0x7+parseInt(_0x3085d9(0x12d))/0x8+-parseInt(_0x3085d9(0x123))/0x9;if(_0x20c184===_0x3ff9c2)break;else _0x670052['push'](_0x670052['shift']());}catch(_0x2e790c){_0x670052['push'](_0x670052['shift']());}}}(a186_0x3f88,0xa2877));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a186_0x5197b7,getMultiAppConfigs as a186_0x4f868f,getTemplateBaseUrl as a186_0x5221b2}from'../context.js';function a186_0x523d(_0x5d5ce0,_0x1da521){_0x5d5ce0=_0x5d5ce0-0x122;const _0x3f88ff=a186_0x3f88();let _0x523d34=_0x3f88ff[_0x5d5ce0];return _0x523d34;}function a186_0x3f88(){const _0x44a3ed=['4699009yNzRzc','4579876YmuIZy','587990OCRybA','615281NkMQxH','env','5320328OlKvXz','project','27735165wziyjA','string','363mtIiPY','66PIcxVb','10624PITdPX'];a186_0x3f88=function(){return _0x44a3ed;};return a186_0x3f88();}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x446fc2){const _0x597185=a186_0x523d,_0x341e72=readRawConfig(_0x446fc2);return _0x341e72[_0x597185(0x12c)]&&typeof _0x341e72[_0x597185(0x12c)]===_0x597185(0x124)&&initEnv(_0x341e72[_0x597185(0x12c)]),_0x341e72;}export function getConfigAppCode(){return a186_0x5197b7();}export function getMultiAppConfigs(_0x59138a=a186_0x3fdba7(0x122)){return a186_0x4f868f(_0x59138a);}export function getTemplateBaseUrl(){return a186_0x5221b2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x280e2e,_0x39623f){const _0x24420e=a187_0x2846,_0x5eaf34=_0x280e2e();while(!![]){try{const _0x5525b3=-parseInt(_0x24420e(0x1d4))/0x1+-parseInt(_0x24420e(0x1d0))/0x2*(-parseInt(_0x24420e(0x1d7))/0x3)+parseInt(_0x24420e(0x1ce))/0x4*(-parseInt(_0x24420e(0x1d3))/0x5)+-parseInt(_0x24420e(0x1d5))/0x6+parseInt(_0x24420e(0x1db))/0x7+-parseInt(_0x24420e(0x1da))/0x8+-parseInt(_0x24420e(0x1d2))/0x9*(-parseInt(_0x24420e(0x1cf))/0xa);if(_0x5525b3===_0x39623f)break;else _0x5eaf34['push'](_0x5eaf34['shift']());}catch(_0x22638b){_0x5eaf34['push'](_0x5eaf34['shift']());}}}(a187_0x1d53,0x333f1));function a187_0x2846(_0x2dcd0e,_0x59c0c6){_0x2dcd0e=_0x2dcd0e-0x1ce;const _0x1d53be=a187_0x1d53();let _0x284625=_0x1d53be[_0x2dcd0e];return _0x284625;}import a187_0x29c833 from'node:path';import a187_0xe468b2 from'node:fs';function a187_0x1d53(){const _0x145333=['error','52pZDOaS','70ASFPqJ','4NUfaBr','name','690993cWQkYu','29315cTaRnI','49744eZJjxr','2069544exOAUJ','copyFileSync','68163cSMUkt','join','isDirectory','920472TVPdVo','1490790lTWlyg','复制目录时出错:'];a187_0x1d53=function(){return _0x145333;};return a187_0x1d53();}export async function copyDirectory(_0x3c4860,_0x23cf6b){const _0xe38d96=a187_0x2846;try{const _0x1651e8=a187_0xe468b2['readdirSync'](_0x3c4860,{'withFileTypes':!![]});a187_0xe468b2['mkdirSync'](_0x23cf6b,{'recursive':!![]});for(const _0x138c9e of _0x1651e8){const _0x877537=a187_0x29c833[_0xe38d96(0x1d8)](_0x3c4860,_0x138c9e['name']),_0x3eb577=a187_0x29c833['join'](_0x23cf6b,_0x138c9e[_0xe38d96(0x1d1)]);_0x138c9e[_0xe38d96(0x1d9)]()?await copyDirectory(_0x877537,_0x3eb577):a187_0xe468b2[_0xe38d96(0x1d6)](_0x877537,_0x3eb577);}}catch(_0x30603e){console[_0xe38d96(0x1dd)](_0xe38d96(0x1dc),_0x30603e);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4e3d0c,_0x3a8bb1){const _0x482d05=a188_0x4779,_0x4313ab=_0x4e3d0c();while(!![]){try{const _0x427106=-parseInt(_0x482d05(0xf5))/0x1+-parseInt(_0x482d05(0xeb))/0x2+parseInt(_0x482d05(0xec))/0x3*(-parseInt(_0x482d05(0xed))/0x4)+parseInt(_0x482d05(0xf2))/0x5+parseInt(_0x482d05(0xef))/0x6+-parseInt(_0x482d05(0xf4))/0x7*(parseInt(_0x482d05(0xf0))/0x8)+parseInt(_0x482d05(0xf1))/0x9;if(_0x427106===_0x3a8bb1)break;else _0x4313ab['push'](_0x4313ab['shift']());}catch(_0x32e6ef){_0x4313ab['push'](_0x4313ab['shift']());}}}(a188_0xdce9,0x64ff9));function a188_0xdce9(){const _0x57f070=['trim','626647PIDPrZ','354482OAddyk','number','601632zVxeIG','215799houQZT','4gURjXr','string','1519602WaHfUI','56wfuren','9037755JRjrup','2550525vAKjwa'];a188_0xdce9=function(){return _0x57f070;};return a188_0xdce9();}function toFiniteNumber(_0x3975da){const _0x3febeb=a188_0x4779;if(typeof _0x3975da===_0x3febeb(0xf6)&&Number['isFinite'](_0x3975da))return _0x3975da;if(typeof _0x3975da===_0x3febeb(0xee)){const _0x32cd89=_0x3975da[_0x3febeb(0xf3)]();if(!_0x32cd89)return undefined;const _0x3d0cfd=Number(_0x32cd89);if(Number['isFinite'](_0x3d0cfd))return _0x3d0cfd;}return undefined;}function a188_0x4779(_0x2a0184,_0x3f49ba){_0x2a0184=_0x2a0184-0xeb;const _0xdce974=a188_0xdce9();let _0x4779d4=_0xdce974[_0x2a0184];return _0x4779d4;}export function normalizeEntityWithIdResponse(_0x21f14f){const _0x3fd41c=toFiniteNumber(_0x21f14f);if(_0x3fd41c!==undefined)return{'id':_0x3fd41c,'entity':{'id':_0x3fd41c}};if(!_0x21f14f||typeof _0x21f14f!=='object')return{'id':undefined,'entity':{}};const _0x2cfab4={..._0x21f14f},_0x560d3c=toFiniteNumber(_0x2cfab4['id']);return _0x560d3c!==undefined&&(_0x2cfab4['id']=_0x560d3c),{'id':_0x560d3c,'entity':_0x2cfab4};}
|
package/lib/utils/file-utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x179dd4,_0x2c916a){const _0x3fe7bb=a189_0x58d4,_0x117ffa=_0x179dd4();while(!![]){try{const _0x55cf39=-parseInt(_0x3fe7bb(0xf5))/0x1+-parseInt(_0x3fe7bb(0xf8))/0x2+parseInt(_0x3fe7bb(0xfb))/0x3*(parseInt(_0x3fe7bb(0xff))/0x4)+parseInt(_0x3fe7bb(0xfa))/0x5+-parseInt(_0x3fe7bb(0xfd))/0x6*(parseInt(_0x3fe7bb(0xf9))/0x7)+-parseInt(_0x3fe7bb(0xfe))/0x8*(parseInt(_0x3fe7bb(0xfc))/0x9)+parseInt(_0x3fe7bb(0xf6))/0xa;if(_0x55cf39===_0x2c916a)break;else _0x117ffa['push'](_0x117ffa['shift']());}catch(_0x452882){_0x117ffa['push'](_0x117ffa['shift']());}}}(a189_0x42f0,0x98b27));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x15dabb,_0xd5eb4){const _0x108da4=a189_0x58d4,_0x4d8a34=statSync(_0x15dabb);if(_0x4d8a34[_0x108da4(0xf7)]()){!existsSync(_0xd5eb4)&&mkdirSync(_0xd5eb4,{'recursive':!![]});const _0x212016=readdirSync(_0x15dabb);for(const _0x431424 of _0x212016){await copyDir(join(_0x15dabb,_0x431424),join(_0xd5eb4,_0x431424));}}else copyFileSync(_0x15dabb,_0xd5eb4);}export function ensureDir(_0x3297bd){!existsSync(_0x3297bd)&&mkdirSync(_0x3297bd,{'recursive':!![]});}function a189_0x58d4(_0x6555ec,_0x3b99c8){_0x6555ec=_0x6555ec-0xf5;const _0x42f0e2=a189_0x42f0();let _0x58d44b=_0x42f0e2[_0x6555ec];return _0x58d44b;}export function pathExists(_0x2fe473){return existsSync(_0x2fe473);}function a189_0x42f0(){const _0x500c1a=['3WsZgut','234VmwZAr','102VGsmJy','282168tiHOBP','441832WVNFGM','1082182Ccgnfs','20324890cIdCwv','isDirectory','1265026HgngDE','22015ITGanj','5838530sOtfvk'];a189_0x42f0=function(){return _0x500c1a;};return a189_0x42f0();}
|
package/lib/utils/guides-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a190_0x55205f=a190_0x1434;(function(_0x1a0c78,_0x342ae3){const _0x184a96=a190_0x1434,_0x278445=_0x1a0c78();while(!![]){try{const _0x4e3646=-parseInt(_0x184a96(0xca))/0x1*(parseInt(_0x184a96(0xbb))/0x2)+-parseInt(_0x184a96(0xb2))/0x3+-parseInt(_0x184a96(0xb4))/0x4+-parseInt(_0x184a96(0xb1))/0x5+parseInt(_0x184a96(0xbe))/0x6+parseInt(_0x184a96(0xd5))/0x7*(parseInt(_0x184a96(0xce))/0x8)+parseInt(_0x184a96(0xcf))/0x9*(parseInt(_0x184a96(0xb7))/0xa);if(_0x4e3646===_0x342ae3)break;else _0x278445['push'](_0x278445['shift']());}catch(_0x3430f9){_0x278445['push'](_0x278445['shift']());}}}(a190_0x1714,0xc8f54));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 _0x35db99=getTemplateBaseUrl();return _0x35db99+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a190_0x55205f(0xb6),a190_0x55205f(0xd3));export async function fetchGuidesFromCDN(){const _0xcb56f8=a190_0x55205f,_0x2b64d6=getGuidesCdnUrl(),_0x461436=await fetch(_0x2b64d6,{'headers':{'Accept':_0xcb56f8(0xc1)}});if(!_0x461436['ok'])throw new Error(_0xcb56f8(0xb5)+_0x461436[_0xcb56f8(0xb3)]+'\x20'+_0x461436['statusText']);const _0x32c2b0=await _0x461436[_0xcb56f8(0xb8)]();if(!_0x32c2b0[_0xcb56f8(0xc4)]||typeof _0x32c2b0['guides']!==_0xcb56f8(0xc8))throw new Error(_0xcb56f8(0xb9));return _0x32c2b0;}export function writeGuidesToProject(_0x559709,_0x29cec2,_0x19fe10=a190_0x55205f(0xd4),_0x53a2b6){const _0x26c6a0=a190_0x55205f,_0x153320=join(_0x29cec2,_0x19fe10);mkdirSync(_0x153320,{'recursive':!![]});for(const [_0x1e61dd,_0x2015e2]of Object['entries'](_0x559709['guides'])){let _0x1a5035=_0x2015e2[_0x26c6a0(0xc0)];_0x2015e2[_0x26c6a0(0xbd)]&&(_0x1a5035=appendUpdateTime(_0x1a5035,_0x2015e2[_0x26c6a0(0xbd)])),writeFileSync(join(_0x153320,_0x1e61dd+'.md'),_0x1a5035,_0x26c6a0(0xc3));}}export function appendUpdateTime(_0x39dc12,_0xabd1e1){const _0x36585b=a190_0x55205f;return _0x39dc12=_0x39dc12[_0x36585b(0xd1)](/\n*>更新时间:.*$/m,''),_0x39dc12[_0x36585b(0xcc)]()+(_0x36585b(0xba)+_0xabd1e1);}export function getSkillTemplate(_0x4f8168){const _0x45af49=a190_0x55205f;return _0x4f8168[_0x45af49(0xc7)]?.[_0x45af49(0xc0)]||'';}export function appendExtendContents(_0x292b64,_0x12e3bb,_0x105bb9){const _0x3f5a16=a190_0x55205f,_0x470768=[];for(const [,_0x50a2bf]of Object[_0x3f5a16(0xc5)](_0x12e3bb[_0x3f5a16(0xc4)])){_0x50a2bf['extendContent']&&_0x470768[_0x3f5a16(0xd2)](_0x50a2bf[_0x3f5a16(0xc2)][_0x3f5a16(0xcc)]());}if(_0x470768[_0x3f5a16(0xcb)]===0x0)return _0x292b64;return _0x292b64[_0x3f5a16(0xcc)]()+'\x0a\x0a'+_0x470768[_0x3f5a16(0xbc)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x4c1ad4,_0x348e70,_0x58c90f){const _0x4454e4=a190_0x55205f,_0x242ebb=getSkillTemplate(_0x4c1ad4);if(!_0x242ebb)throw new Error(_0x4454e4(0xd0));const _0x3c3598=dirname(_0x348e70);mkdirSync(_0x3c3598,{'recursive':!![]});let _0x34ad9e=_0x242ebb[_0x4454e4(0xd1)](/\{\{IDE_NAME\}\}/g,_0x58c90f);_0x34ad9e=appendExtendContents(_0x34ad9e,_0x4c1ad4),_0x4c1ad4['skillTemplate'][_0x4454e4(0xbd)]&&(_0x34ad9e=appendUpdateTime(_0x34ad9e,_0x4c1ad4[_0x4454e4(0xc7)][_0x4454e4(0xbd)])),writeFileSync(_0x348e70,_0x34ad9e,_0x4454e4(0xc3));}export async function installGuides(_0x166ad8){const _0x5679e2=a190_0x55205f,_0x16d456=await fetchGuidesFromCDN();return writeGuidesToProject(_0x16d456,_0x166ad8),Object[_0x5679e2(0xcd)](_0x16d456[_0x5679e2(0xc4)])[_0x5679e2(0xcb)];}function a190_0x1434(_0xaceb01,_0x4f6733){_0xaceb01=_0xaceb01-0xb1;const _0x171432=a190_0x1714();let _0x143428=_0x171432[_0xaceb01];return _0x143428;}export function getGuidesSummary(_0xad07bf){const _0x243f9c=a190_0x55205f;return Object[_0x243f9c(0xc5)](_0xad07bf[_0x243f9c(0xc4)])[_0x243f9c(0xc6)](([_0x868869,_0x592d84])=>({'key':_0x868869,'title':_0x592d84[_0x243f9c(0xbf)],'path':_0x592d84[_0x243f9c(0xc9)]}));}function a190_0x1714(){const _0x12f447=['CDN\x20数据中缺少\x20skillTemplate','replace','push','cache','.lovrabet/skill/guides','42PWJmRg','4582600HxedRU','3694872ziWaMh','status','2327956hdrrWW','CDN\x20请求失败:\x20','.lovrabet','40570zITDOX','json','CDN\x20返回数据格式错误','\x0a\x0a>更新时间:','2362aQvfiV','join','lastUpdated','1284750xwuhOC','title','content','application/json','extendContent','utf-8','guides','entries','map','skillTemplate','object','path','859oLWrrK','length','trimEnd','keys','600BsjjWp','9657CGrhrk'];a190_0x1714=function(){return _0x12f447;};return a190_0x1714();}
|
package/lib/utils/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3da0eb,_0x230d90){const _0x372ba3=a191_0x375f,_0x38de01=_0x3da0eb();while(!![]){try{const _0x105356=-parseInt(_0x372ba3(0x16a))/0x1*(parseInt(_0x372ba3(0x159))/0x2)+parseInt(_0x372ba3(0x15a))/0x3+parseInt(_0x372ba3(0x163))/0x4*(parseInt(_0x372ba3(0x153))/0x5)+parseInt(_0x372ba3(0x165))/0x6+-parseInt(_0x372ba3(0x15b))/0x7+parseInt(_0x372ba3(0x158))/0x8+-parseInt(_0x372ba3(0x161))/0x9*(parseInt(_0x372ba3(0x16c))/0xa);if(_0x105356===_0x230d90)break;else _0x38de01['push'](_0x38de01['shift']());}catch(_0x38bd7f){_0x38de01['push'](_0x38de01['shift']());}}}(a191_0x16a2,0xedb1e));function a191_0x375f(_0x11b57a,_0x1ced22){_0x11b57a=_0x11b57a-0x152;const _0x16a235=a191_0x16a2();let _0x375f9a=_0x16a235[_0x11b57a];return _0x375f9a;}function a191_0x16a2(){const _0x6fd17f=['6750954PDNMGq','ENOTFOUND','name','json','message','52801XBuJYa','*\x20请求失败,','5650jXukqM','AbortError','5pZesMT','status','\x20次重试...','includes','url','9696408spNEQv','4wPBWHg','3720468gGtpvp','5001402EkXWTw','headers','ms\x20后进行第\x20','signal','ECONNRESET','Request\x20failed','31950REWCFS','fetch','888280doiliw','text'];a191_0x16a2=function(){return _0x6fd17f;};return a191_0x16a2();}export async function httpRequest(_0x57aa59,_0x4827a4={}){const _0x5cdacb=a191_0x375f,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x4827a4;let _0x1fb25c=null;for(let _0x4f0bfe=0x0;_0x4f0bfe<=retries;_0x4f0bfe++){try{const _0xcf1844=new AbortController(),_0x37a032=setTimeout(()=>_0xcf1844['abort'](),timeout),_0x27fe5f=await fetch(_0x57aa59,{'headers':headers,'signal':_0xcf1844[_0x5cdacb(0x15e)]});clearTimeout(_0x37a032);let _0x487de9;const _0x2ad585=_0x27fe5f[_0x5cdacb(0x15c)]['get']('content-type');return _0x2ad585?.[_0x5cdacb(0x156)]('application/json')?_0x487de9=await _0x27fe5f[_0x5cdacb(0x168)]():_0x487de9=await _0x27fe5f['text'](),{'ok':_0x27fe5f['ok'],'status':_0x27fe5f[_0x5cdacb(0x154)],'statusText':_0x27fe5f['statusText'],'data':_0x487de9,'headers':_0x27fe5f[_0x5cdacb(0x15c)],'url':_0x27fe5f[_0x5cdacb(0x157)],'text':()=>_0x27fe5f[_0x5cdacb(0x164)]()};}catch(_0x4e648b){_0x1fb25c=_0x4e648b instanceof Error?_0x4e648b:new Error(String(_0x4e648b));if(_0x4f0bfe===retries)break;if(shouldRetry(_0x4e648b)){console['log'](_0x5cdacb(0x16b)+retryDelay+_0x5cdacb(0x15d)+(_0x4f0bfe+0x1)+_0x5cdacb(0x155)),await sleep(retryDelay);continue;}else break;}}throw _0x1fb25c||new Error(_0x5cdacb(0x160));}function shouldRetry(_0x2c5e1c){const _0x183363=a191_0x375f;if(_0x2c5e1c instanceof Error){if(_0x2c5e1c[_0x183363(0x167)]===_0x183363(0x152))return![];if(_0x2c5e1c[_0x183363(0x167)]==='TypeError'&&_0x2c5e1c[_0x183363(0x169)][_0x183363(0x156)](_0x183363(0x162)))return!![];if(_0x2c5e1c[_0x183363(0x169)][_0x183363(0x156)](_0x183363(0x15f)))return!![];if(_0x2c5e1c[_0x183363(0x169)][_0x183363(0x156)](_0x183363(0x166)))return![];}return![];}function sleep(_0x299864){return new Promise(_0x459abe=>setTimeout(_0x459abe,_0x299864));}export function validateUrl(_0x1f41f7){try{return new URL(_0x1f41f7),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x16bc4d,_0x4d6dc3){const _0x201afc=a192_0x553d,_0x317039=_0x16bc4d();while(!![]){try{const _0x39c184=parseInt(_0x201afc(0xa6))/0x1+-parseInt(_0x201afc(0xac))/0x2*(-parseInt(_0x201afc(0xa8))/0x3)+-parseInt(_0x201afc(0xaa))/0x4*(parseInt(_0x201afc(0xa9))/0x5)+parseInt(_0x201afc(0xa2))/0x6+parseInt(_0x201afc(0xa5))/0x7*(parseInt(_0x201afc(0xad))/0x8)+parseInt(_0x201afc(0xab))/0x9+parseInt(_0x201afc(0xa7))/0xa*(-parseInt(_0x201afc(0xa1))/0xb);if(_0x39c184===_0x4d6dc3)break;else _0x317039['push'](_0x317039['shift']());}catch(_0x4b9cdc){_0x317039['push'](_0x317039['shift']());}}}(a192_0x170d,0xb4941));function env(_0x193bb2){return process.env[`RABETBASE_${_0x193bb2}`]||process.env[`LOVRABET_${_0x193bb2}`]||undefined;}function a192_0x553d(_0x221f0c,_0x32e8a8){_0x221f0c=_0x221f0c-0x9f;const _0x170dd6=a192_0x170d();let _0x553df5=_0x170dd6[_0x221f0c];return _0x553df5;}export function isNonInteractive(_0x3dafc2){const _0x56f694=a192_0x553d;return!!(_0x3dafc2['nonInteractive']||_0x3dafc2['ci']||env('CI')===_0x56f694(0xa3)||process.env.CI===_0x56f694(0xa3)||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0xccf761=a192_0x553d;if(!process['stdin']['isTTY'])return![];try{const _0x5abaf8=process['stdin'][_0xccf761(0xa0)];return process[_0xccf761(0x9f)][_0xccf761(0xa4)](!![]),process[_0xccf761(0x9f)]['setRawMode'](_0x5abaf8??![]),!![];}catch{return![];}}function a192_0x170d(){const _0x2a545a=['88LVkLCN','stdin','isRaw','1538471OaWTqi','8449170vKRlBZ','true','setRawMode','904463BAkevH','1017556YlSzWA','310nmiIrE','208545hfHcBl','10fxWVpu','1481628eYIXtf','8337411fJBYyB','30nOSbzE'];a192_0x170d=function(){return _0x2a545a;};return a192_0x170d();}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a193_0x3225f0=a193_0x1702;function a193_0x1702(_0x3fbd2f,_0x2ff12f){_0x3fbd2f=_0x3fbd2f-0x17d;const _0x205a4c=a193_0x205a();let _0x1702ef=_0x205a4c[_0x3fbd2f];return _0x1702ef;}(function(_0x27904c,_0x234ba8){const _0x5a3238=a193_0x1702,_0x3659b2=_0x27904c();while(!![]){try{const _0xd32608=-parseInt(_0x5a3238(0x17d))/0x1*(-parseInt(_0x5a3238(0x19a))/0x2)+parseInt(_0x5a3238(0x19c))/0x3+-parseInt(_0x5a3238(0x18f))/0x4+parseInt(_0x5a3238(0x17f))/0x5*(parseInt(_0x5a3238(0x19f))/0x6)+-parseInt(_0x5a3238(0x195))/0x7+parseInt(_0x5a3238(0x199))/0x8+-parseInt(_0x5a3238(0x17e))/0x9;if(_0xd32608===_0x234ba8)break;else _0x3659b2['push'](_0x3659b2['shift']());}catch(_0x2414d5){_0x3659b2['push'](_0x3659b2['shift']());}}}(a193_0x205a,0xc22e6));function a193_0x205a(){const _0x30e8af=['error','warn','getWinstonInstance','combine','message','red','printf','5922012mPiGNV','now','stringify','完成:\x20','logFilePath','unknown','137109XSWQOk','format','parse','setRawCommand','10530264MCNZKT','1401046TJRBQe','timestamp','800073pRQnaM','duration','开始执行:\x20','6858uqrqyP','dirname','filter','currentRawCommand','addColors','writeFileSync','map','details','setLogPath','utf8','Failed\x20to\x20read\x20logs:','.lovrabet.log','rawCommand','errors','readLogs','command','green','readFileSync','Failed\x20to\x20clear\x20logs:','success','existsSync','1FsuePC','6969825ApOrVq','3440AnztLX','split','join','winstonLogger','blue','info','logTask','level','transports'];a193_0x205a=function(){return _0x30e8af;};return a193_0x205a();}import a193_0x2d34bd from'winston';import a193_0x38c7bf from'node:fs';import a193_0x540dea from'node:path';class Logger{['winstonLogger'];[a193_0x3225f0(0x193)];[a193_0x3225f0(0x1a2)]='';constructor(){const _0x1ad739=a193_0x3225f0;this[_0x1ad739(0x193)]='';}[a193_0x3225f0(0x198)](_0x30646b){const _0x404034=a193_0x3225f0;this[_0x404034(0x1a2)]=_0x30646b;}['initWinstonLogger'](){const _0x2a5ae0=a193_0x3225f0,_0x1298c1=a193_0x540dea[_0x2a5ae0(0x1a0)](this['logFilePath']);!a193_0x38c7bf[_0x2a5ae0(0x1b3)](_0x1298c1)&&a193_0x38c7bf['mkdirSync'](_0x1298c1,{'recursive':!![]});const _0x24209e=a193_0x2d34bd['format'][_0x2a5ae0(0x18b)](a193_0x2d34bd[_0x2a5ae0(0x196)][_0x2a5ae0(0x19b)](),a193_0x2d34bd['format'][_0x2a5ae0(0x1ac)]({'stack':!![]}),a193_0x2d34bd[_0x2a5ae0(0x196)][_0x2a5ae0(0x18e)](_0x453d28=>{const _0x56be76=_0x2a5ae0,_0x1b7ad3={'timestamp':_0x453d28[_0x56be76(0x19b)]||new Date()['toISOString'](),'level':_0x453d28[_0x56be76(0x186)]||'info','command':_0x453d28[_0x56be76(0x1ae)]||_0x56be76(0x194),'rawCommand':_0x453d28[_0x56be76(0x1ab)]||this[_0x56be76(0x1a2)]||undefined,'message':_0x453d28[_0x56be76(0x18c)]||'','duration':_0x453d28[_0x56be76(0x19d)]||undefined,'details':_0x453d28[_0x56be76(0x1a6)]||undefined};return JSON[_0x56be76(0x191)](_0x1b7ad3);}));this[_0x2a5ae0(0x182)]=a193_0x2d34bd['createLogger']({'level':_0x2a5ae0(0x184),'format':_0x24209e,'transports':[new a193_0x2d34bd[(_0x2a5ae0(0x187))]['File']({'filename':this['logFilePath'],'level':_0x2a5ae0(0x184)})],'silent':![]}),a193_0x2d34bd[_0x2a5ae0(0x1a3)]({'success':_0x2a5ae0(0x1af),'error':_0x2a5ae0(0x18d),'warn':'yellow','info':_0x2a5ae0(0x183)});}[a193_0x3225f0(0x1a7)](_0x33bd56){const _0xb9407c=a193_0x3225f0;this['logFilePath']=a193_0x540dea[_0xb9407c(0x181)](_0x33bd56,_0xb9407c(0x1aa)),this[_0xb9407c(0x182)]&&this[_0xb9407c(0x182)]['clear'](),this['initWinstonLogger']();}[a193_0x3225f0(0x184)](_0x5b35d9,_0x3c071d,_0x5161dc){const _0x2c74b9=a193_0x3225f0;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x2c74b9(0x182)][_0x2c74b9(0x184)](_0x3c071d,{'command':_0x5b35d9,'details':_0x5161dc});}[a193_0x3225f0(0x1b2)](_0x420907,_0x4e3a83,_0x112168,_0x19b14f){const _0x583331=a193_0x3225f0;if(!this[_0x583331(0x193)]||!this[_0x583331(0x182)])return;this[_0x583331(0x182)]['log'](_0x583331(0x184),_0x4e3a83,{'level':_0x583331(0x1b2),'command':_0x420907,'duration':_0x112168,'details':_0x19b14f});}['error'](_0x139a5a,_0x569d94,_0x48cc15){const _0x300b1d=a193_0x3225f0;if(!this[_0x300b1d(0x193)]||!this[_0x300b1d(0x182)])return;this[_0x300b1d(0x182)][_0x300b1d(0x188)](_0x569d94,{'command':_0x139a5a,'details':_0x48cc15});}['warn'](_0x4a2865,_0x1a5d70,_0x579f44){const _0x300f64=a193_0x3225f0;if(!this[_0x300f64(0x193)]||!this['winstonLogger'])return;this['winstonLogger'][_0x300f64(0x189)](_0x1a5d70,{'command':_0x4a2865,'details':_0x579f44});}async[a193_0x3225f0(0x185)](_0x1a566e,_0x46a6a4,_0x4c9d74){const _0x2f76b2=a193_0x3225f0,_0x1c5222=Date[_0x2f76b2(0x190)]();this['info'](_0x1a566e,_0x2f76b2(0x19e)+_0x46a6a4);try{const _0x21a121=await _0x4c9d74(),_0x38728a=Date[_0x2f76b2(0x190)]()-_0x1c5222;return this[_0x2f76b2(0x1b2)](_0x1a566e,_0x2f76b2(0x192)+_0x46a6a4,_0x38728a),_0x21a121;}catch(_0x2e2c9b){const _0x26c3d0=Date[_0x2f76b2(0x190)]()-_0x1c5222;this[_0x2f76b2(0x188)](_0x1a566e,'失败:\x20'+_0x46a6a4,{'error':_0x2e2c9b instanceof Error?_0x2e2c9b['message']:String(_0x2e2c9b),'duration':_0x26c3d0});throw _0x2e2c9b;}}[a193_0x3225f0(0x1ad)](){const _0x57f4f4=a193_0x3225f0;try{if(!a193_0x38c7bf[_0x57f4f4(0x1b3)](this[_0x57f4f4(0x193)]))return[];const _0x4ed29a=a193_0x38c7bf[_0x57f4f4(0x1b0)](this['logFilePath'],_0x57f4f4(0x1a8));return _0x4ed29a[_0x57f4f4(0x180)]('\x0a')[_0x57f4f4(0x1a1)](_0x33a8a7=>_0x33a8a7['trim']())[_0x57f4f4(0x1a5)](_0x2e4621=>JSON[_0x57f4f4(0x197)](_0x2e4621));}catch(_0x390447){return console[_0x57f4f4(0x189)](_0x57f4f4(0x1a9),_0x390447),[];}}['clearLogs'](){const _0x2b7369=a193_0x3225f0;try{a193_0x38c7bf[_0x2b7369(0x1b3)](this[_0x2b7369(0x193)])&&a193_0x38c7bf[_0x2b7369(0x1a4)](this[_0x2b7369(0x193)],'','utf8');}catch(_0x62d681){console[_0x2b7369(0x189)](_0x2b7369(0x1b1),_0x62d681);}}[a193_0x3225f0(0x18a)](){return this['winstonLogger'];}}export const logger=new Logger();
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5cd0fe,_0x264a12){const _0x402fa8=a194_0x4292,_0x17baa5=_0x5cd0fe();while(!![]){try{const _0x376702=-parseInt(_0x402fa8(0xa6))/0x1+-parseInt(_0x402fa8(0xa4))/0x2*(-parseInt(_0x402fa8(0xa0))/0x3)+-parseInt(_0x402fa8(0x9c))/0x4+parseInt(_0x402fa8(0xa7))/0x5*(-parseInt(_0x402fa8(0x9a))/0x6)+parseInt(_0x402fa8(0x97))/0x7*(-parseInt(_0x402fa8(0x98))/0x8)+-parseInt(_0x402fa8(0xa8))/0x9*(-parseInt(_0x402fa8(0xa2))/0xa)+parseInt(_0x402fa8(0x9d))/0xb*(parseInt(_0x402fa8(0xa1))/0xc);if(_0x376702===_0x264a12)break;else _0x17baa5['push'](_0x17baa5['shift']());}catch(_0x36f1dd){_0x17baa5['push'](_0x17baa5['shift']());}}}(a194_0x3af8,0x640d4));import{CliErrors}from'../errors.js';function a194_0x4292(_0x21685f,_0x56047b){_0x21685f=_0x21685f-0x97;const _0x3af8ff=a194_0x3af8();let _0x429221=_0x3af8ff[_0x21685f];return _0x429221;}function a194_0x3af8(){const _0x536db3=['parse','2526988nilJYw','242TVHZMJ','object','validation','44058HZFvSx','876408XsCqsc','14520FfOCUM','isArray','82JkJdbH','--params\x20must\x20be\x20a\x20JSON\x20object','796068uzKzBA','5775urmVVW','3204GfIskW','37002VLErRm','832BgGxIG','Invalid\x20JSON\x20for\x20--params:\x20','1758WKNzWb'];a194_0x3af8=function(){return _0x536db3;};return a194_0x3af8();}export function parseJsonParams(_0x3983c8){const _0x56eb73=a194_0x4292;if(!_0x3983c8)return undefined;let _0x230ad5;try{_0x230ad5=JSON[_0x56eb73(0x9b)](_0x3983c8);}catch{throw CliErrors[_0x56eb73(0x9f)](_0x56eb73(0x99)+_0x3983c8);}if(!_0x230ad5||typeof _0x230ad5!==_0x56eb73(0x9e)||Array[_0x56eb73(0xa3)](_0x230ad5))throw CliErrors[_0x56eb73(0x9f)](_0x56eb73(0xa5),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x230ad5;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a195_0x199d95=a195_0x326a;function a195_0x326a(_0x132554,_0x330d7e){_0x132554=_0x132554-0xe6;const _0x2d3931=a195_0x2d39();let _0x326acb=_0x2d3931[_0x132554];return _0x326acb;}(function(_0x2728e5,_0x587836){const _0x57bf34=a195_0x326a,_0x1d8053=_0x2728e5();while(!![]){try{const _0x4a4bec=-parseInt(_0x57bf34(0xed))/0x1*(-parseInt(_0x57bf34(0xf2))/0x2)+-parseInt(_0x57bf34(0xf0))/0x3+parseInt(_0x57bf34(0xe7))/0x4*(parseInt(_0x57bf34(0xe8))/0x5)+-parseInt(_0x57bf34(0xef))/0x6*(-parseInt(_0x57bf34(0xe9))/0x7)+parseInt(_0x57bf34(0xeb))/0x8+-parseInt(_0x57bf34(0xec))/0x9*(parseInt(_0x57bf34(0xea))/0xa)+-parseInt(_0x57bf34(0xee))/0xb*(parseInt(_0x57bf34(0xf3))/0xc);if(_0x4a4bec===_0x587836)break;else _0x1d8053['push'](_0x1d8053['shift']());}catch(_0x56ec3b){_0x1d8053['push'](_0x1d8053['shift']());}}}(a195_0x2d39,0xc6e3e));export const isWindows=process['platform']===a195_0x199d95(0xf1);export function resolveNpmBin(_0x43ee4c){const _0x14a161=a195_0x199d95;return isWindows?_0x43ee4c+_0x14a161(0xe6):_0x43ee4c;}function a195_0x2d39(){const _0x694c95=['1433726JIMIGl','33rHsTmj','18pvJqDI','1898292JsAvev','win32','2tXadAA','4945836VGVUll','.cmd','64iBAlUn','171615KwxHai','810649CMVcXo','3251530GcLPhU','5429720zNdszt','9OSOCtk'];a195_0x2d39=function(){return _0x694c95;};return a195_0x2d39();}
|
package/lib/utils/rules-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a196_0x2a825a=a196_0x1112;(function(_0xb958a4,_0x13f956){const _0x58dea0=a196_0x1112,_0x7eee3=_0xb958a4();while(!![]){try{const _0x34ba13=-parseInt(_0x58dea0(0x141))/0x1+parseInt(_0x58dea0(0x12d))/0x2+parseInt(_0x58dea0(0x13a))/0x3*(parseInt(_0x58dea0(0x12f))/0x4)+parseInt(_0x58dea0(0x12e))/0x5+-parseInt(_0x58dea0(0x131))/0x6*(parseInt(_0x58dea0(0x142))/0x7)+parseInt(_0x58dea0(0x139))/0x8*(parseInt(_0x58dea0(0x12c))/0x9)+-parseInt(_0x58dea0(0x143))/0xa;if(_0x34ba13===_0x13f956)break;else _0x7eee3['push'](_0x7eee3['shift']());}catch(_0x579eea){_0x7eee3['push'](_0x7eee3['shift']());}}}(a196_0x5cbf,0x1a488));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 a196_0x1112(_0x1ea3be,_0x473136){_0x1ea3be=_0x1ea3be-0x12b;const _0x5cbf59=a196_0x5cbf();let _0x1112f5=_0x5cbf59[_0x1ea3be];return _0x1112f5;}function getRulesCdnUrl(){const _0x2fb4af=getTemplateBaseUrl();return _0x2fb4af+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a196_0x2a825a(0x13d));export async function fetchRulesFromCDN(){const _0x18e2e2=a196_0x2a825a,_0x4b636d=getRulesCdnUrl(),_0x1ef5ec=await fetch(_0x4b636d,{'headers':{'Accept':_0x18e2e2(0x133)}});if(!_0x1ef5ec['ok'])throw new Error(_0x18e2e2(0x140)+_0x1ef5ec[_0x18e2e2(0x137)]+'\x20'+_0x1ef5ec[_0x18e2e2(0x130)]);const _0x15903c=await _0x1ef5ec[_0x18e2e2(0x138)]();if(!_0x15903c[_0x18e2e2(0x136)]||typeof _0x15903c['content']!==_0x18e2e2(0x13c))throw new Error(_0x18e2e2(0x132));return _0x15903c;}export async function getRulesContent(){const _0xf4e06a=a196_0x2a825a;try{const _0x411dc7=await fetchRulesFromCDN();return _0x411dc7[_0xf4e06a(0x136)];}catch{return readLocalTemplate();}}function a196_0x5cbf(){const _0x544b16=['string','../../templates/rules/lovrabet_rules.mdc.tpl','.cursor/rules','lastUpdated','CDN\x20请求失败:\x20','127229CumsSh','5383cpivnu','307120Jogpvt','catch','1887750vkSENg','132420bfoplN','382090pjMaRz','8pwOHfx','statusText','678jKbaRN','CDN\x20返回数据格式错误','application/json','lovrabet_rules.mdc','agents.md','content','status','json','8QeEosL','174WJVKIj','utf-8'];a196_0x5cbf=function(){return _0x544b16;};return a196_0x5cbf();}export function readLocalTemplate(){const _0x43fff2=a196_0x2a825a;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x43fff2(0x13b));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0xf8333a){const _0x4f3b2a=a196_0x2a825a,_0x182935=await fetchRulesFromCDN()[_0x4f3b2a(0x12b)](()=>null);let _0x40c928;_0x182935?(_0x40c928=_0x182935[_0x4f3b2a(0x136)],_0x182935[_0x4f3b2a(0x13f)]&&(_0x40c928=appendUpdateTime(_0x40c928,_0x182935[_0x4f3b2a(0x13f)]))):_0x40c928=readLocalTemplate();const _0x3dccfc=dirname(_0xf8333a);!existsSync(_0x3dccfc)&&mkdirSync(_0x3dccfc,{'recursive':!![]}),writeFileSync(_0xf8333a,_0x40c928,'utf-8');}export async function copyRulesToCursor(_0x912043){const _0x416f7a=a196_0x2a825a,_0x1be2f4=join(_0x912043,_0x416f7a(0x13e)),_0x3ba61f=join(_0x1be2f4,_0x416f7a(0x134));if(existsSync(_0x3ba61f))return![];return await writeRulesFile(_0x3ba61f),!![];}export async function copyRulesToAgentsMd(_0x56080c){const _0x20036f=a196_0x2a825a,_0x9f6991=join(_0x56080c,_0x20036f(0x135));if(existsSync(_0x9f6991))return![];return await writeRulesFile(_0x9f6991),!![];}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0xda2801){return new Promise(_0x12fda5=>setTimeout(_0x12fda5,_0xda2801));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a198_0x1d9a37=a198_0x27d2;(function(_0x4a9db4,_0x295d48){const _0x3dd14c=a198_0x27d2,_0x2e936e=_0x4a9db4();while(!![]){try{const _0x274890=parseInt(_0x3dd14c(0x1fc))/0x1+parseInt(_0x3dd14c(0x20f))/0x2+-parseInt(_0x3dd14c(0x219))/0x3*(-parseInt(_0x3dd14c(0x1f6))/0x4)+parseInt(_0x3dd14c(0x22e))/0x5*(parseInt(_0x3dd14c(0x203))/0x6)+-parseInt(_0x3dd14c(0x231))/0x7*(parseInt(_0x3dd14c(0x1f7))/0x8)+parseInt(_0x3dd14c(0x227))/0x9+-parseInt(_0x3dd14c(0x1f9))/0xa;if(_0x274890===_0x295d48)break;else _0x2e936e['push'](_0x2e936e['shift']());}catch(_0x314770){_0x2e936e['push'](_0x2e936e['shift']());}}}(a198_0x5f59,0xe4fa3));import a198_0x34f31 from'node:fs';import a198_0x5b883b from'node:path';function a198_0x27d2(_0x3168d7,_0x45bfa5){_0x3168d7=_0x3168d7-0x1ee;const _0x5f5997=a198_0x5f59();let _0x27d2ed=_0x5f5997[_0x3168d7];return _0x27d2ed;}import{logger}from'../utils/logger.js';function a198_0x5f59(){const _0x32f50f=['join','map','YourModel','getHours','split','tableName','\x0a\x20\x20\x20\x20{\x20','readdir','processDirectory','59264EzkENj','248zFqvpk','error','51799870GZYlfA','processFile','processTemplate','1420844eGfbxc','name','getMonth','\x20},','charAt','.tsx','.jsx','180DsGQQZ','replaceContent','mkdir','pop','模板内容替换完成','toDisplayTitle','template','promises','writeFile','模板内容替换失败','datasetCode','getSeconds','3018880aOaZcI','isFile','message','name:\x20\x22','success','default','toISOString','slice','.tpl','getDate','252DldqBX','alias','readFile','utf8','push','toLowerCase','toUpperCase','alias:\x20\x22','replace','.ts','copyFile','.md','padStart','includes','7226433aXoKjO','formatLocalTimestamp','now','info','pad','.json','tableName:\x20\x22','271120AEmFmp','endsWith','.css','109879QdaWsj','getMinutes','.js','isDirectory'];a198_0x5f59=function(){return _0x32f50f;};return a198_0x5f59();}import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x5afc3e){const _0x434af1=a198_0x27d2;return String(_0x5afc3e)[_0x434af1(0x225)](0x2,'0');}static['formatLocalTimestamp'](_0x273f81){const _0xc64a94=a198_0x27d2,_0x35671d=_0x273f81['getFullYear'](),_0x4a5533=this['pad'](_0x273f81[_0xc64a94(0x1fe)]()+0x1),_0x46fd82=this[_0xc64a94(0x22b)](_0x273f81[_0xc64a94(0x218)]()),_0xed8c06=this['pad'](_0x273f81[_0xc64a94(0x1f0)]()),_0x161874=this[_0xc64a94(0x22b)](_0x273f81[_0xc64a94(0x232)]()),_0x38f13b=this['pad'](_0x273f81[_0xc64a94(0x20e)]());return{'createdAt':_0x35671d+'-'+_0x4a5533+'-'+_0x46fd82+'\x20'+_0xed8c06+':'+_0x161874+':'+_0x38f13b,'createdDate':_0x35671d+'-'+_0x4a5533+'-'+_0x46fd82,'createdTime':_0xed8c06+':'+_0x161874+':'+_0x38f13b};}static['toComponentName'](_0x1f942d){const _0x1e139e=a198_0x27d2,_0x27148a=_0x1f942d[_0x1e139e(0x1f1)]('/')[_0x1e139e(0x206)]()||_0x1f942d;return _0x27148a[_0x1e139e(0x1f1)]('-')[_0x1e139e(0x1ee)](_0x44e0fd=>_0x44e0fd[_0x1e139e(0x200)](0x0)['toUpperCase']()+_0x44e0fd[_0x1e139e(0x216)](0x1)[_0x1e139e(0x21e)]())[_0x1e139e(0x235)]('');}static['toDisplayTitle'](_0x13c620){const _0x5c3cbd=a198_0x27d2,_0x4a7c7e=_0x13c620[_0x5c3cbd(0x1f1)]('/')['pop']()||_0x13c620;return _0x4a7c7e['split']('-')[_0x5c3cbd(0x1ee)](_0x4a1885=>_0x4a1885[_0x5c3cbd(0x200)](0x0)[_0x5c3cbd(0x21f)]()+_0x4a1885[_0x5c3cbd(0x216)](0x1)[_0x5c3cbd(0x21e)]())['join']('\x20');}static[a198_0x1d9a37(0x204)](_0x111d10,_0x42219f,_0x2330b4){const _0x2f6621=a198_0x1d9a37,_0x157fa6=this['toComponentName'](_0x42219f),_0x563136=this[_0x2f6621(0x208)](_0x42219f),{createdAt:_0x3df711,createdDate:_0x5f300b,createdTime:_0x3bc544}=this[_0x2f6621(0x228)](new Date());let _0x1f7940=_0x111d10[_0x2f6621(0x221)](/\{CliVersion\}/g,CLI_VERSION)[_0x2f6621(0x221)](/\{ComponentName\}/g,_0x157fa6)[_0x2f6621(0x221)](/\{DisplayTitle\}/g,_0x563136)[_0x2f6621(0x221)](/\{PageName\}/g,_0x42219f)[_0x2f6621(0x221)](/\{TemplateName\}/g,_0x2330b4)[_0x2f6621(0x221)](/\{CreatedAt\}/g,_0x3df711)[_0x2f6621(0x221)](/\{CreatedDate\}/g,_0x5f300b)[_0x2f6621(0x221)](/\{CreatedTime\}/g,_0x3bc544);return _0x1f7940;}static['replaceApiContent'](_0x5b37c7,_0x3e290a,_0x5221ee,_0x518886,_0x586a80,_0x37de38,_0x35e46b,_0x4a9089){const _0x2e79d5=a198_0x1d9a37,_0x220cad=new Date(),_0x5c2401=_0x220cad[_0x2e79d5(0x215)](),_0x21b38a=_0x5221ee['map'](_0x2e1e67=>{const _0x476b53=_0x2e79d5,_0x3de7ee=['datasetCode:\x20\x22'+_0x2e1e67[_0x476b53(0x20d)]+'\x22',_0x476b53(0x22d)+_0x2e1e67[_0x476b53(0x1f2)]+'\x22',_0x476b53(0x212)+_0x2e1e67[_0x476b53(0x1fd)]+'\x22'];return _0x2e1e67[_0x476b53(0x21a)]&&_0x3de7ee[_0x476b53(0x21d)](_0x476b53(0x220)+_0x2e1e67['alias']+'\x22'),_0x476b53(0x1f3)+_0x3de7ee['join'](',\x20')+_0x476b53(0x1ff);})[_0x2e79d5(0x235)](''),_0x45635c=_0x518886||_0x5221ee[0x0]?.[_0x2e79d5(0x21a)]||_0x2e79d5(0x1ef);let _0x598c0b=_0x5b37c7[_0x2e79d5(0x221)](/\{AppCode\}/g,_0x3e290a)[_0x2e79d5(0x221)](/\{ModelConfigs\}/g,_0x21b38a)[_0x2e79d5(0x221)](/\{ExampleModelName\}/g,_0x45635c)['replace'](/\{ApiFileName\}/g,_0x586a80||'api')[_0x2e79d5(0x221)](/\{ConfigName\}/g,_0x37de38||_0x2e79d5(0x214))['replace'](/\{ClientConfigParam\}/g,_0x35e46b||'')[_0x2e79d5(0x221)](/\{VarPrefix\}/g,_0x4a9089||'LOVRABET')[_0x2e79d5(0x221)](/\{CreatedAt\}/g,_0x5c2401);return _0x598c0b;}static async[a198_0x1d9a37(0x1fb)](_0x1965e7,_0x115e24,_0x4a1c23,_0x1b6c87,_0x5f2c4b=!![]){const _0x3684cd=a198_0x1d9a37,_0x31fb8d=Date[_0x3684cd(0x229)]();try{_0x5f2c4b&&logger[_0x3684cd(0x22a)](_0x3684cd(0x209),'开始处理模板内容替换',{'templatePath':_0x1965e7,'targetPath':_0x115e24,'pageName':_0x4a1c23,'templateName':_0x1b6c87});await a198_0x34f31['promises'][_0x3684cd(0x205)](_0x115e24,{'recursive':!![]}),await this['processDirectory'](_0x1965e7,_0x115e24,_0x4a1c23,_0x1b6c87);if(_0x5f2c4b){const _0x15ed98=Date[_0x3684cd(0x229)]()-_0x31fb8d;logger[_0x3684cd(0x213)](_0x3684cd(0x209),_0x3684cd(0x207),_0x15ed98,{'pageName':_0x4a1c23,'templateName':_0x1b6c87});}}catch(_0x57363b){if(_0x5f2c4b){const _0x3d4fe8=Date[_0x3684cd(0x229)]()-_0x31fb8d;logger[_0x3684cd(0x1f8)](_0x3684cd(0x209),_0x3684cd(0x20c),{'templatePath':_0x1965e7,'targetPath':_0x115e24,'pageName':_0x4a1c23,'templateName':_0x1b6c87,'error':_0x57363b instanceof Error?_0x57363b[_0x3684cd(0x211)]:String(_0x57363b),'duration':_0x3d4fe8});}throw _0x57363b;}}static async[a198_0x1d9a37(0x1f5)](_0x507fc0,_0x4fef8a,_0x4d325d,_0x23f0cf){const _0x3b0aec=a198_0x1d9a37,_0x58e2a0=await a198_0x34f31[_0x3b0aec(0x20a)][_0x3b0aec(0x1f4)](_0x507fc0,{'withFileTypes':!![]});for(const _0x20c531 of _0x58e2a0){const _0x5b0bc8=a198_0x5b883b[_0x3b0aec(0x235)](_0x507fc0,_0x20c531[_0x3b0aec(0x1fd)]);let _0x5c0524=a198_0x5b883b['join'](_0x4fef8a,_0x20c531[_0x3b0aec(0x1fd)]);_0x20c531[_0x3b0aec(0x1fd)][_0x3b0aec(0x22f)](_0x3b0aec(0x217))&&(_0x5c0524=a198_0x5b883b['join'](_0x4fef8a,_0x20c531['name'][_0x3b0aec(0x221)](/\.tpl$/,'')));if(_0x20c531[_0x3b0aec(0x234)]())await a198_0x34f31[_0x3b0aec(0x20a)][_0x3b0aec(0x205)](_0x5c0524,{'recursive':!![]}),await this[_0x3b0aec(0x1f5)](_0x5b0bc8,_0x5c0524,_0x4d325d,_0x23f0cf);else _0x20c531[_0x3b0aec(0x210)]()&&await this[_0x3b0aec(0x1fa)](_0x5b0bc8,_0x5c0524,_0x4d325d,_0x23f0cf);}}static async[a198_0x1d9a37(0x1fa)](_0x6352bd,_0x2b8d8b,_0x2548eb,_0x50c96e){const _0x3b9eb4=a198_0x1d9a37,_0x508c5=a198_0x5b883b['extname'](_0x6352bd)['toLowerCase']();_0x6352bd[_0x3b9eb4(0x22f)]('.tpl')&&(_0x2b8d8b=_0x2b8d8b[_0x3b9eb4(0x221)](/\.tpl$/,''));const _0x178453=[_0x3b9eb4(0x201),_0x3b9eb4(0x222),_0x3b9eb4(0x202),_0x3b9eb4(0x233),_0x3b9eb4(0x22c),_0x3b9eb4(0x224),_0x3b9eb4(0x230),'.scss',_0x3b9eb4(0x217)];if(_0x178453[_0x3b9eb4(0x226)](_0x508c5)||_0x6352bd[_0x3b9eb4(0x22f)](_0x3b9eb4(0x217))){const _0x3d34e7=await a198_0x34f31[_0x3b9eb4(0x20a)][_0x3b9eb4(0x21b)](_0x6352bd,_0x3b9eb4(0x21c)),_0x798660=this[_0x3b9eb4(0x204)](_0x3d34e7,_0x2548eb,_0x50c96e);await a198_0x34f31[_0x3b9eb4(0x20a)][_0x3b9eb4(0x20b)](_0x2b8d8b,_0x798660,_0x3b9eb4(0x21c));}else await a198_0x34f31[_0x3b9eb4(0x20a)][_0x3b9eb4(0x223)](_0x6352bd,_0x2b8d8b);}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x46c39d,_0x5b6c11){var _0x38d9ba=a199_0x2add,_0xf45080=_0x46c39d();while(!![]){try{var _0x1764a9=-parseInt(_0x38d9ba(0x1bc))/0x1*(-parseInt(_0x38d9ba(0x1b7))/0x2)+-parseInt(_0x38d9ba(0x1b8))/0x3+parseInt(_0x38d9ba(0x1b4))/0x4*(parseInt(_0x38d9ba(0x1be))/0x5)+parseInt(_0x38d9ba(0x1bd))/0x6+parseInt(_0x38d9ba(0x1b5))/0x7*(parseInt(_0x38d9ba(0x1ba))/0x8)+parseInt(_0x38d9ba(0x1b9))/0x9*(-parseInt(_0x38d9ba(0x1b6))/0xa)+parseInt(_0x38d9ba(0x1bf))/0xb*(parseInt(_0x38d9ba(0x1bb))/0xc);if(_0x1764a9===_0x5b6c11)break;else _0xf45080['push'](_0xf45080['shift']());}catch(_0x1bea76){_0xf45080['push'](_0xf45080['shift']());}}}(a199_0x255f,0x7c7a4));function a199_0x2add(_0x27ddf5,_0x5c0e62){_0x27ddf5=_0x27ddf5-0x1b4;var _0x255f47=a199_0x255f();var _0x2addab=_0x255f47[_0x27ddf5];return _0x2addab;}function a199_0x255f(){var _0x4ddb19=['20885YNGlTZ','42592XzbUCZ','416FljwTC','6671YQtvsC','70eiqsww','6bWAmzc','1937424MZmBiR','964503Vekjfh','3352LRkOBc','2496dbdwTX','26101pWvwtA','1130658bVgatt'];a199_0x255f=function(){return _0x4ddb19;};return a199_0x255f();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
|