@lovrabet/rabetbase-cli 2.0.4-beta.3 → 2.0.4-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/doc.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/app/add.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remote.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.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/new.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/build.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/create.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.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/doctor.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/logout.js +1 -1
- package/lib/commands/logs.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/preview.js +1 -1
- package/lib/commands/project-upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run.js +1 -1
- package/lib/commands/skill.js +1 -1
- package/lib/commands/smart-init.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/save.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/start.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.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/sql-validator.js +1 -1
- package/lib/create-app/enhanced-guided-create.js +1 -1
- package/lib/create-app/format-elapsed.js +1 -1
- package/lib/create-app/main.js +1 -1
- package/lib/create-app/non-interactive.js +1 -1
- package/lib/create-app/use-copy-project-template.js +1 -1
- package/lib/create-app/use-format-code.js +1 -1
- package/lib/create-app/use-install-dependencies.js +1 -1
- package/lib/errors.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.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/init/main.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.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/utils/ai_config.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/config.js +1 -1
- package/lib/utils/copy-directory.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/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/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x34242d,_0x23f542){var _0x14291f=a115_0x3ee3,_0x415348=_0x34242d();while(!![]){try{var _0x4cb5da=-parseInt(_0x14291f(0x143))/0x1+parseInt(_0x14291f(0x141))/0x2*(parseInt(_0x14291f(0x13e))/0x3)+parseInt(_0x14291f(0x142))/0x4+-parseInt(_0x14291f(0x13d))/0x5+-parseInt(_0x14291f(0x145))/0x6+-parseInt(_0x14291f(0x144))/0x7+parseInt(_0x14291f(0x140))/0x8;if(_0x4cb5da===_0x23f542)break;else _0x415348['push'](_0x415348['shift']());}catch(_0x4e2285){_0x415348['push'](_0x415348['shift']());}}}(a115_0xdc4d,0x4e352));function a115_0xdc4d(){var _0x1a0cfe=['service','cli.help','Failed\x20to\x20report\x20CLI\x20help\x20trace:','2801500VIfSqR','6lhjeAV','error','9846512ttUcIj','251878xOqCpW','726444ZhTTns','436469uoEInj','2092300wgVJUN','289776iweehA'];a115_0xdc4d=function(){return _0x1a0cfe;};return a115_0xdc4d();}function a115_0x3ee3(_0xac4a2a,_0x3ed7f1){_0xac4a2a=_0xac4a2a-0x13b;var _0xdc4d6f=a115_0xdc4d();var _0x3ee33c=_0xdc4d6f[_0xac4a2a];return _0x3ee33c;}import{sendCliTraceLog}from'./send-cli-trace-log.js';export async function reportCliHelpTrace(_0x15a934,_0x2d56db){var _0x53b267=a115_0x3ee3;try{await sendCliTraceLog({'spanName':_0x53b267(0x13b),'logData':{'rabetbase.help.kind':_0x15a934,..._0x2d56db?.[_0x53b267(0x146)]&&{'rabetbase.help.service':_0x2d56db[_0x53b267(0x146)]}}});}catch(_0x5b89ad){console[_0x53b267(0x13f)](_0x53b267(0x13c),_0x5b89ad);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x5f4342=a116_0x3f71;function a116_0x3f71(_0xd0cab5,_0x2afa89){_0xd0cab5=_0xd0cab5-0x152;const _0x42d0eb=a116_0x42d0();let _0x3f7140=_0x42d0eb[_0xd0cab5];return _0x3f7140;}function a116_0x42d0(){const _0x404b1e=['user','4XGWnhl','nickname','22NKCAPM','production','5bjqedF','104069yOMUfY','318672FnWFRB','version','username','625040yaZACf','3962970APXnWG','daily','unknown','../../package.json','1149828TlcdOx','156664eQErjX','33039RvBCvF','userInfo','376VSOYnG'];a116_0x42d0=function(){return _0x404b1e;};return a116_0x42d0();}(function(_0x55b40,_0x111b5c){const _0x45d735=a116_0x3f71,_0x424091=_0x55b40();while(!![]){try{const _0x21c55e=-parseInt(_0x45d735(0x154))/0x1*(-parseInt(_0x45d735(0x163))/0x2)+parseInt(_0x45d735(0x15a))/0x3+parseInt(_0x45d735(0x15d))/0x4+-parseInt(_0x45d735(0x158))/0x5*(-parseInt(_0x45d735(0x162))/0x6)+parseInt(_0x45d735(0x159))/0x7+-parseInt(_0x45d735(0x152))/0x8*(-parseInt(_0x45d735(0x164))/0x9)+parseInt(_0x45d735(0x15e))/0xa*(-parseInt(_0x45d735(0x156))/0xb);if(_0x21c55e===_0x111b5c)break;else _0x424091['push'](_0x424091['shift']());}catch(_0x374bcd){_0x424091['push'](_0x424091['shift']());}}}(a116_0x42d0,0x279d4));import{createRequire}from'node:module';import a116_0x55cc94 from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';const require=createRequire(import.meta.url),pkg=require(a116_0x5f4342(0x161));let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x2f6730=a116_0x5f4342,_0x5afaa7=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x1a7fab=_0x5afaa7?.[_0x2f6730(0x153)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':pkg['name'],'serviceVersion':GIT_COMMIT!==_0x2f6730(0x160)?VERSION+'+'+GIT_COMMIT:pkg[_0x2f6730(0x15b)],'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x2f6730(0x15f):_0x2f6730(0x157)),'username':_0x1a7fab?.[_0x2f6730(0x15c)]??a116_0x55cc94[_0x2f6730(0x165)]()['username']??'rabetbase-cli',..._0x1a7fab&&{'nickname':_0x1a7fab[_0x2f6730(0x155)]}}),cliOtelTraceInitialized=!![];}return _0x5afaa7;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2b15ce,_0x4ddc52){const _0x1523f8=a117_0x4f96,_0xb7e5f1=_0x2b15ce();while(!![]){try{const _0x300cd9=parseInt(_0x1523f8(0xea))/0x1*(parseInt(_0x1523f8(0xe5))/0x2)+parseInt(_0x1523f8(0xde))/0x3*(-parseInt(_0x1523f8(0xe8))/0x4)+parseInt(_0x1523f8(0xec))/0x5*(parseInt(_0x1523f8(0xe4))/0x6)+-parseInt(_0x1523f8(0xe3))/0x7*(parseInt(_0x1523f8(0xe6))/0x8)+-parseInt(_0x1523f8(0xee))/0x9*(-parseInt(_0x1523f8(0xed))/0xa)+parseInt(_0x1523f8(0xe1))/0xb*(-parseInt(_0x1523f8(0xe0))/0xc)+-parseInt(_0x1523f8(0xdd))/0xd;if(_0x300cd9===_0x4ddc52)break;else _0xb7e5f1['push'](_0xb7e5f1['shift']());}catch(_0x47d020){_0xb7e5f1['push'](_0xb7e5f1['shift']());}}}(a117_0x5cfe,0x5c548));function a117_0x5cfe(){const _0x50b1d7=['994197CqHFrj','SIGINT','81180LWrYwL','869xZbhYq','then','35MAPveI','54wlkaQL','8cWUTqO','155592qCdcfF','once','4TXCNqV','beforeExit','164920swYZJZ','SIGTERM','253455DjScYM','10rKZkdH','4547943glnBOc','exit','3639519fOAegO'];a117_0x5cfe=function(){return _0x50b1d7;};return a117_0x5cfe();}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a117_0x4f96(_0x5383c8,_0xd2273d){_0x5383c8=_0x5383c8-0xdd;const _0x5cfe0e=a117_0x5cfe();let _0x4f9623=_0x5cfe0e[_0x5383c8];return _0x4f9623;}export function registerOtelShutdownOnExit(){const _0x40c41b=a117_0x4f96;process[_0x40c41b(0xe7)](_0x40c41b(0xe9),()=>{void flushOtelNodeIfUsed();});const _0x11ad13=()=>{const _0xa26282=_0x40c41b;void flushOtelNodeIfUsed()[_0xa26282(0xe2)](()=>process[_0xa26282(0xef)](0x0));};process[_0x40c41b(0xe7)](_0x40c41b(0xdf),_0x11ad13),process[_0x40c41b(0xe7)](_0x40c41b(0xeb),_0x11ad13);}export async function exitWithOtelShutdown(_0x3f3dc2){const _0x1aefcd=a117_0x4f96;await flushOtelNodeIfUsed(),process[_0x1aefcd(0xef)](_0x3f3dc2);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a118_0x38654b=a118_0x4c83;function a118_0x5b9f(){const _0x58ed23=['2152362hTZicB','manual','traceName','../../package.json','logData','traceparent','1614995iDhGBa','837698yUXtMd','1467244ZAJvpB','version','4641048syufpW','618375NZYohu','11630899KTtFVO','rabetbase-cli','4BMiiOE'];a118_0x5b9f=function(){return _0x58ed23;};return a118_0x5b9f();}(function(_0x15cff1,_0x3a3fe){const _0x206563=a118_0x4c83,_0x1961b7=_0x15cff1();while(!![]){try{const _0x491f4a=parseInt(_0x206563(0x160))/0x1+-parseInt(_0x206563(0x15f))/0x2+parseInt(_0x206563(0x163))/0x3+parseInt(_0x206563(0x166))/0x4*(parseInt(_0x206563(0x15e))/0x5)+parseInt(_0x206563(0x167))/0x6+-parseInt(_0x206563(0x164))/0x7+parseInt(_0x206563(0x162))/0x8;if(_0x491f4a===_0x3a3fe)break;else _0x1961b7['push'](_0x1961b7['shift']());}catch(_0x572c69){_0x1961b7['push'](_0x1961b7['shift']());}}}(a118_0x5b9f,0xd0b24));import{createRequire}from'node:module';function a118_0x4c83(_0x111af5,_0x4e5093){_0x111af5=_0x111af5-0x15a;const _0x5b9fae=a118_0x5b9f();let _0x4c83b3=_0x5b9fae[_0x111af5];return _0x4c83b3;}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'./ensure-cli-otel-config.js';const require=createRequire(import.meta.url),pkg=require(a118_0x38654b(0x15b)),DEFAULT_TRACE_NAME=a118_0x38654b(0x165);export async function sendCliTraceLog(_0x573980){const _0x54aefc=a118_0x38654b;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x573980[_0x54aefc(0x15a)]??DEFAULT_TRACE_NAME,'version':_0x573980[_0x54aefc(0x161)]??pkg[_0x54aefc(0x161)],'spanName':_0x573980['spanName'],'eventType':_0x54aefc(0x168),'logData':_0x573980[_0x54aefc(0x15c)],..._0x573980[_0x54aefc(0x15d)]&&{'traceparent':_0x573980[_0x54aefc(0x15d)]}});}
|
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a120_0x3fdef6=a120_0x5a19;(function(_0x5ad85d,_0x4eb6c8){const _0x30585c=a120_0x5a19,_0x311490=_0x5ad85d();while(!![]){try{const _0x390676=-parseInt(_0x30585c(0xb4))/0x1+parseInt(_0x30585c(0x92))/0x2+-parseInt(_0x30585c(0xa8))/0x3+parseInt(_0x30585c(0xad))/0x4+parseInt(_0x30585c(0x8f))/0x5*(-parseInt(_0x30585c(0xa4))/0x6)+parseInt(_0x30585c(0xb3))/0x7+parseInt(_0x30585c(0xb6))/0x8*(parseInt(_0x30585c(0xb7))/0x9);if(_0x390676===_0x4eb6c8)break;else _0x311490['push'](_0x311490['shift']());}catch(_0x1451cf){_0x311490['push'](_0x311490['shift']());}}}(a120_0x5ce2,0x825b0));export const CORE_IDE_CONFIGS={'cursor':{'name':a120_0x3fdef6(0xc0),'description':'Cursor\x20IDE','folders':[a120_0x3fdef6(0x90),a120_0x3fdef6(0xbd)],'files':[{'type':a120_0x3fdef6(0xae),'path':'.cursor/skills/rabetbase.md','template':a120_0x3fdef6(0xb5)}]},'windsurf':{'name':'Windsurf','description':'Windsurf\x20IDE','folders':[a120_0x3fdef6(0x9b)],'files':[{'type':a120_0x3fdef6(0xae),'path':a120_0x3fdef6(0xbf),'template':a120_0x3fdef6(0xb5)}]},'claude':{'name':a120_0x3fdef6(0x99),'description':'Claude\x20Code','folders':['.claude'],'files':[{'type':a120_0x3fdef6(0xae),'path':'.claude/skills/lovrabet/SKILL.md','template':a120_0x3fdef6(0xb5)}]},'cline':{'name':a120_0x3fdef6(0x9f),'description':a120_0x3fdef6(0x9d),'folders':[a120_0x3fdef6(0xbb)],'files':[{'type':'file','path':'.cline/skills/lovrabet/SKILL.md','template':a120_0x3fdef6(0xb5)}]},'codex':{'name':a120_0x3fdef6(0x96),'description':a120_0x3fdef6(0xa5),'folders':[a120_0x3fdef6(0xb2)],'files':[{'type':a120_0x3fdef6(0xae),'path':a120_0x3fdef6(0xbe),'template':'SKILL.md.tpl'}]},'opencode':{'name':a120_0x3fdef6(0x8c),'description':'OpenCode\x20IDE','folders':['.opencode'],'files':[{'type':a120_0x3fdef6(0xae),'path':a120_0x3fdef6(0xb8),'template':a120_0x3fdef6(0xb5)}]},'qoder':{'name':'Qoder','description':a120_0x3fdef6(0x9c),'folders':[a120_0x3fdef6(0x97)],'files':[{'type':a120_0x3fdef6(0xae),'path':a120_0x3fdef6(0xb0),'template':a120_0x3fdef6(0xb5)},{'type':'file','path':a120_0x3fdef6(0xa9),'template':'SKILL.md.tpl'}]},'codebuddy':{'name':a120_0x3fdef6(0xaa),'description':a120_0x3fdef6(0xa0),'folders':[a120_0x3fdef6(0x98)],'files':[{'type':a120_0x3fdef6(0xae),'path':a120_0x3fdef6(0x9a),'template':a120_0x3fdef6(0xb5)}]},'trae':{'name':a120_0x3fdef6(0xac),'description':a120_0x3fdef6(0xa6),'folders':[a120_0x3fdef6(0xbc)],'files':[{'type':a120_0x3fdef6(0xae),'path':'.trae/skills/lovrabet/SKILL.md','template':a120_0x3fdef6(0xb5)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a120_0x3fdef6(0xa3),'description':a120_0x3fdef6(0xa7),'folders':[a120_0x3fdef6(0x94)],'files':[{'type':a120_0x3fdef6(0xae),'path':'.agent/skills/lovrabet/SKILL.md','template':a120_0x3fdef6(0xb5)}]},'antigravity':{'name':a120_0x3fdef6(0xa1),'description':'Antigravity\x20IDE','folders':[a120_0x3fdef6(0x94)],'files':[{'type':a120_0x3fdef6(0xae),'path':a120_0x3fdef6(0xaf),'template':'SKILL.md.tpl'}]}};function a120_0x5a19(_0x29a7c2,_0x567975){_0x29a7c2=_0x29a7c2-0x8c;const _0x5ce2aa=a120_0x5ce2();let _0x5a19ed=_0x5ce2aa[_0x29a7c2];return _0x5a19ed;}function a120_0x5ce2(){const _0xb1a3e4=['OpenCode','opencode','cline','20bTwlaY','.cursorrules','codex','392890pwKtBv','codebuddy','.agent','trae','Codex','.qoder','.codebuddy','Claude\x20Code','.codebuddy/skills/lovrabet/SKILL.md','.windsurf','Qoder\x20IDE','Cline\x20IDE','agent','Cline','CodeBuddy\x20IDE','Antigravity','windsurf','其他\x20(通用模板)','865932yWnSad','Codex\x20IDE','Trae\x20IDE','通用模板\x20-\x20兜底方案','1613607KEXMEV','.qoder/skills/lovrabet/SKILL.md','CodeBuddy','qoder','Trae','454644bqnJen','file','.agent/skills/lovrabet/SKILL.md','.qoder/rules/rabetbase.md','antigravity','.codex','5646144TOnzEj','526601bksPtg','SKILL.md.tpl','8UroMCH','9530964TUrMkz','.opencode/skills/lovrabet/SKILL.md','cursor','claude','.cline','.trae','.cursor','.codex/skills/lovrabet/SKILL.md','.windsurf/workflows/rabetbase.md','Cursor'];a120_0x5ce2=function(){return _0xb1a3e4;};return a120_0x5ce2();}export const CORE_IDE_LIST=['claude',a120_0x3fdef6(0x8e),a120_0x3fdef6(0x93),a120_0x3fdef6(0x91),a120_0x3fdef6(0xb9),a120_0x3fdef6(0x8d),a120_0x3fdef6(0xab),'trae','windsurf'];export const IDE_LIST=[a120_0x3fdef6(0xb1),a120_0x3fdef6(0xba),a120_0x3fdef6(0x8e),a120_0x3fdef6(0x93),a120_0x3fdef6(0x91),'cursor',a120_0x3fdef6(0x8d),a120_0x3fdef6(0xab),a120_0x3fdef6(0x95),'windsurf',a120_0x3fdef6(0x9e)];export const ALL_CORE_IDES=[a120_0x3fdef6(0xb9),a120_0x3fdef6(0xa2),a120_0x3fdef6(0xba),a120_0x3fdef6(0x8e),a120_0x3fdef6(0x91),a120_0x3fdef6(0x8d),a120_0x3fdef6(0xab),'codebuddy',a120_0x3fdef6(0x95)];
|
package/lib/utils/cdn-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a121_0x215e(_0x1a6691,_0xbb5b56){_0x1a6691=_0x1a6691-0x8d;const _0x1c7cb8=a121_0x1c7c();let _0x215e61=_0x1c7cb8[_0x1a6691];return _0x215e61;}(function(_0x221b11,_0x53d611){const _0x44e3cb=a121_0x215e,_0xb14575=_0x221b11();while(!![]){try{const _0x7be38a=-parseInt(_0x44e3cb(0x93))/0x1+parseInt(_0x44e3cb(0x99))/0x2+parseInt(_0x44e3cb(0x8d))/0x3*(-parseInt(_0x44e3cb(0x9b))/0x4)+-parseInt(_0x44e3cb(0x90))/0x5+-parseInt(_0x44e3cb(0x8f))/0x6*(parseInt(_0x44e3cb(0x91))/0x7)+-parseInt(_0x44e3cb(0x94))/0x8+parseInt(_0x44e3cb(0x96))/0x9;if(_0x7be38a===_0x53d611)break;else _0xb14575['push'](_0xb14575['shift']());}catch(_0x4fa0cf){_0xb14575['push'](_0xb14575['shift']());}}}(a121_0x1c7c,0x9b9d6));import{getTemplateBaseUrl}from'./config.js';export async function fetchCdnConfig(){const _0x3e0dd4=a121_0x215e;try{const _0x26244=getTemplateBaseUrl(),_0x3f7ce1=_0x26244+'/config.json',_0x23d092=await fetch(_0x3f7ce1,{'headers':{'Accept':_0x3e0dd4(0x9a)}});if(!_0x23d092['ok'])return null;const _0x5adf35=await _0x23d092[_0x3e0dd4(0x8e)]();if(!_0x5adf35['cli']?.[_0x3e0dd4(0x95)]||!_0x5adf35[_0x3e0dd4(0x97)]?.[_0x3e0dd4(0x98)]?.[_0x3e0dd4(0x95)])return null;return _0x5adf35;}catch{return null;}}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0x2e8e8a=a121_0x215e,_0x1c01bb=Date[_0x2e8e8a(0x92)]();if(cachedConfig&&_0x1c01bb-cacheTime<CACHE_TTL)return cachedConfig;const _0x3e1216=await fetchCdnConfig();return _0x3e1216&&(cachedConfig=_0x3e1216,cacheTime=_0x1c01bb),_0x3e1216;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}function a121_0x1c7c(){const _0x34140c=['node','2503234USpWML','application/json','4Oylmxu','284439dvwWfh','json','130794blDRbb','3134235QFGOim','14VvuflP','now','656226ekfdfp','738152HjzkRL','stableVersion','8095806rYXQAr','sdk'];a121_0x1c7c=function(){return _0x34140c;};return a121_0x1c7c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a122_0x420b(){const _0x52c227=['version','933072DPDcjK','stableVersion','@lovrabet/sdk','some','876564SoFyHN','package.json','132cumndJ','packageName','1.2.0','↪\x20SDK\x20update\x20available','\x20\x20\x20Stable\x20version:\x20','143EqfKDB','30CthWdQ','149759DiaeZu','\x1b[33m','\x20\x20\x20Upgrade\x20command:\x20','1004964sZHOMh','sdk','log','existsSync','join','utf8','4dwzNXj','npm\x20install\x20','\x20\x20\x20Current\x20version:\x20','node_modules','parse','test','130446OCATHY','14OHFErJ','devDependencies','coerce','\x1b[0m','49205EnyVuH','dependencies','node','readFileSync','\x1b[1m','743544SGFoNp','needsUpgrade'];a122_0x420b=function(){return _0x52c227;};return a122_0x420b();}const a122_0x4e8d5a=a122_0x5d47;(function(_0xeb56bd,_0x4b56c9){const _0x144143=a122_0x5d47,_0x194006=_0xeb56bd();while(!![]){try{const _0x530ef2=parseInt(_0x144143(0xe2))/0x1*(-parseInt(_0x144143(0xeb))/0x2)+-parseInt(_0x144143(0xf1))/0x3+-parseInt(_0x144143(0xe5))/0x4+-parseInt(_0x144143(0xf6))/0x5*(parseInt(_0x144143(0xdb))/0x6)+-parseInt(_0x144143(0xf2))/0x7*(parseInt(_0x144143(0xd5))/0x8)+parseInt(_0x144143(0xd2))/0x9*(parseInt(_0x144143(0xe1))/0xa)+-parseInt(_0x144143(0xe0))/0xb*(-parseInt(_0x144143(0xd9))/0xc);if(_0x530ef2===_0x4b56c9)break;else _0x194006['push'](_0x194006['shift']());}catch(_0x3c86b2){_0x194006['push'](_0x194006['shift']());}}}(a122_0x420b,0x25768));import a122_0x12da22 from'node:fs';import a122_0x3f2a4a from'node:path';import a122_0x41757b from'semver';import{getCdnConfig}from'./cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a122_0x4e8d5a(0xdd);function isNonNumericVersion(_0x15f71d){const _0x4666d6=a122_0x4e8d5a,_0x428a90=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x428a90[_0x4666d6(0xd8)](_0x50164b=>_0x50164b[_0x4666d6(0xf0)](_0x15f71d));}function getInstalledVersion(_0x200cb0,_0x33549c){const _0x1cd27d=a122_0x4e8d5a;try{const _0x53ac8a=a122_0x3f2a4a['join'](_0x200cb0,_0x1cd27d(0xee),_0x33549c,_0x1cd27d(0xda));if(a122_0x12da22['existsSync'](_0x53ac8a)){const _0x5f48a9=JSON[_0x1cd27d(0xef)](a122_0x12da22['readFileSync'](_0x53ac8a,'utf-8'));return _0x5f48a9[_0x1cd27d(0xd4)]||null;}}catch{}return null;}function a122_0x5d47(_0x27f73f,_0x5ad1d3){_0x27f73f=_0x27f73f-0xce;const _0x420b91=a122_0x420b();let _0x5d47ba=_0x420b91[_0x27f73f];return _0x5d47ba;}async function getSdkStableVersion(){const _0x22b1b0=a122_0x4e8d5a;try{const _0x2d4037=await getCdnConfig();return _0x2d4037?.['sdk']?.['node']?.[_0x22b1b0(0xd6)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x30a5b4=a122_0x4e8d5a;try{const _0x4ae4dc=await getCdnConfig();return _0x4ae4dc?.[_0x30a5b4(0xe6)]?.[_0x30a5b4(0xcf)]?.[_0x30a5b4(0xdc)]||_0x30a5b4(0xd7);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x42447d){const _0x4dc313=a122_0x4e8d5a,_0x27ae51=a122_0x3f2a4a[_0x4dc313(0xe9)](_0x42447d,_0x4dc313(0xda)),[_0x45c786,_0x160451]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0xc63c09=_0x45c786||FALLBACK_MIN_SDK_VERSION;if(!a122_0x12da22['existsSync'](_0x27ae51))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xc63c09,'packageName':_0x160451,'stableVersion':_0x45c786};try{const _0x286366=JSON[_0x4dc313(0xef)](a122_0x12da22[_0x4dc313(0xd0)](_0x27ae51,_0x4dc313(0xea))),_0xabf62f=_0x286366[_0x4dc313(0xce)]||{},_0x174025=_0x286366['devDependencies']||{},_0x1fb2b3=_0xabf62f[_0x160451]||_0x174025[_0x160451];if(!_0x1fb2b3)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xc63c09,'packageName':_0x160451,'stableVersion':_0x45c786};let _0x2bbf8e=getInstalledVersion(_0x42447d,_0x160451);!_0x2bbf8e&&(_0x2bbf8e=_0x1fb2b3);if(isNonNumericVersion(_0x1fb2b3))return{'installed':!![],'version':_0x2bbf8e,'needsUpgrade':![],'minVersion':_0xc63c09,'packageName':_0x160451,'stableVersion':_0x45c786};const _0x9e4d04=a122_0x41757b[_0x4dc313(0xf4)](_0x2bbf8e),_0x4887a9=a122_0x41757b[_0x4dc313(0xf4)](_0xc63c09),_0x18d484=_0x9e4d04&&_0x4887a9?a122_0x41757b['lt'](_0x9e4d04,_0x4887a9):![];return{'installed':!![],'version':_0x2bbf8e,'needsUpgrade':_0x18d484,'minVersion':_0xc63c09,'packageName':_0x160451,'stableVersion':_0x45c786};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xc63c09,'packageName':_0x160451,'stableVersion':_0x45c786};}}export function checkSdkVersionSync(_0x2388d2){const _0x174d92=a122_0x4e8d5a,_0x1d276b=a122_0x3f2a4a[_0x174d92(0xe9)](_0x2388d2,_0x174d92(0xda)),_0x33371f='@lovrabet/sdk';if(!a122_0x12da22[_0x174d92(0xe8)](_0x1d276b))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x33371f,'stableVersion':null};try{const _0xf1d9cd=JSON['parse'](a122_0x12da22[_0x174d92(0xd0)](_0x1d276b,'utf8')),_0x466262=_0xf1d9cd[_0x174d92(0xce)]||{},_0x24dc2f=_0xf1d9cd[_0x174d92(0xf3)]||{},_0x390c3e=_0x466262[_0x33371f]||_0x24dc2f[_0x33371f];if(!_0x390c3e)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x33371f,'stableVersion':null};let _0x408d5d=getInstalledVersion(_0x2388d2,_0x33371f);!_0x408d5d&&(_0x408d5d=_0x390c3e);if(isNonNumericVersion(_0x390c3e))return{'installed':!![],'version':_0x408d5d,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x33371f,'stableVersion':null};const _0x5bf577=a122_0x41757b[_0x174d92(0xf4)](_0x408d5d),_0xb33029=_0x5bf577?a122_0x41757b['lt'](_0x5bf577,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x408d5d,'needsUpgrade':_0xb33029,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x33371f,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x33371f,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x36f6ce){const _0x566fc0=a122_0x4e8d5a;if(!_0x36f6ce[_0x566fc0(0xd3)])return;const _0x252b3d=_0x566fc0(0xe3),_0x4d816d=_0x566fc0(0xf5),_0x3949cc=_0x566fc0(0xd1),_0x3642b5=_0x36f6ce[_0x566fc0(0xdc)]||_0x566fc0(0xd7),_0x328739=_0x36f6ce[_0x566fc0(0xd6)]||_0x36f6ce['minVersion'],_0x1f503e=_0x566fc0(0xec)+_0x3642b5+'@'+(_0x328739||'latest');console[_0x566fc0(0xe7)](),console[_0x566fc0(0xe7)](''+_0x252b3d+_0x3949cc+_0x566fc0(0xde)+_0x4d816d),console['log'](_0x252b3d+_0x566fc0(0xed)+_0x3642b5+'@'+_0x36f6ce[_0x566fc0(0xd4)]+_0x4d816d),console['log'](_0x252b3d+_0x566fc0(0xdf)+_0x328739+_0x4d816d),console[_0x566fc0(0xe7)](_0x252b3d+_0x566fc0(0xe4)+_0x1f503e+_0x4d816d),console['log']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4ffafa,_0x6368e2){const _0x2660cf=a123_0x1174,_0x5be714=_0x4ffafa();while(!![]){try{const _0x5af96a=parseInt(_0x2660cf(0xd3))/0x1+parseInt(_0x2660cf(0xd8))/0x2+parseInt(_0x2660cf(0xe7))/0x3+parseInt(_0x2660cf(0xe1))/0x4+-parseInt(_0x2660cf(0xdd))/0x5*(-parseInt(_0x2660cf(0xe5))/0x6)+parseInt(_0x2660cf(0xe2))/0x7*(-parseInt(_0x2660cf(0xd6))/0x8)+parseInt(_0x2660cf(0xde))/0x9*(-parseInt(_0x2660cf(0xe3))/0xa);if(_0x5af96a===_0x6368e2)break;else _0x5be714['push'](_0x5be714['shift']());}catch(_0x20bca6){_0x5be714['push'](_0x5be714['shift']());}}}(a123_0x5e46,0xc6424));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a123_0x219d73 from'semver';import{getCdnConfig}from'./cdn-config.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function getCurrentCliVersion(){const _0x305d33=a123_0x1174;try{const _0xdc9e3d=fileURLToPath(import.meta.url),_0x57fac1=resolve(dirname(_0xdc9e3d),_0x305d33(0xdf)),_0x2b28ca=resolve(_0x57fac1,'package.json'),_0x20ecfd=JSON[_0x305d33(0xe4)](readFileSync(_0x2b28ca,_0x305d33(0xd0)));return _0x20ecfd[_0x305d33(0xd9)]||_0x305d33(0xdc);}catch{return _0x305d33(0xdc);}}function isNonNumericVersion(_0x4ac1e4){const _0x89477c=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x89477c['some'](_0x1c83b1=>_0x1c83b1['test'](_0x4ac1e4));}function a123_0x1174(_0x4f7a4e,_0x47c881){_0x4f7a4e=_0x4f7a4e-0xcf;const _0x5e4676=a123_0x5e46();let _0x1174e0=_0x5e4676[_0x4f7a4e];return _0x1174e0;}function a123_0x5e46(){const _0x2bba64=['currentVersion','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Stable\x20version:\x20','utf-8','log','\x1b[33m','1431361sEmLBf','\x20\x20\x20Current\x20CLI\x20version:\x20','npm\x20install\x20-g\x20','557144mjAgLg','needsUpgrade','2962550SKVcYP','version','cli','coerce','1.0.0','5nDugei','9oFMSNv','../..','@latest','1905500JDxmxa','140DrHePe','24925010XjmAUN','parse','6359682ZmngIN','stableVersion','745413oQJelr'];a123_0x5e46=function(){return _0x2bba64;};return a123_0x5e46();}export async function checkCliVersion(){const _0x1e6bc1=a123_0x1174,_0x37b652=getCurrentCliVersion(),_0x3a8045=await getCdnConfig(),_0x5c8f0d=_0x3a8045?.[_0x1e6bc1(0xda)]?.[_0x1e6bc1(0xe6)]||null;let _0x4486cd=![];if(_0x5c8f0d)try{const _0x244461=a123_0x219d73['coerce'](_0x37b652),_0x5bd1b5=a123_0x219d73[_0x1e6bc1(0xdb)](_0x5c8f0d);_0x244461&&_0x5bd1b5&&(_0x4486cd=a123_0x219d73['lt'](_0x244461,_0x5bd1b5));}catch{_0x4486cd=![];}return{'currentVersion':_0x37b652,'stableVersion':_0x5c8f0d,'needsUpgrade':_0x4486cd,'isPreRelease':![]};}export function printCliUpgradeWarning(_0x434573){const _0x37efb3=a123_0x1174;if(!_0x434573[_0x37efb3(0xd7)])return;const _0x23ef97=_0x37efb3(0xd2),_0x57201d='\x1b[0m',_0x177bcc='\x1b[1m',_0x5f18e0=_0x37efb3(0xd5)+NPM_PACKAGE_NAME+_0x37efb3(0xe0);console[_0x37efb3(0xd1)](),console['log'](''+_0x23ef97+_0x177bcc+'↪\x20New\x20version\x20available'+_0x57201d),console[_0x37efb3(0xd1)](_0x23ef97+_0x37efb3(0xd4)+_0x434573[_0x37efb3(0xe8)]+_0x57201d),console[_0x37efb3(0xd1)](_0x23ef97+_0x37efb3(0xcf)+_0x434573[_0x37efb3(0xe6)]+_0x57201d),console[_0x37efb3(0xd1)](_0x23ef97+_0x37efb3(0xe9)+_0x5f18e0+_0x57201d),console[_0x37efb3(0xd1)]();}
|
package/lib/utils/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x482889,_0x3ea0ab){const _0x5e89fc=a124_0x4bf5,_0xbd1a70=_0x482889();while(!![]){try{const _0x4ef5dc=-parseInt(_0x5e89fc(0x187))/0x1+-parseInt(_0x5e89fc(0x188))/0x2+parseInt(_0x5e89fc(0x18e))/0x3*(parseInt(_0x5e89fc(0x191))/0x4)+parseInt(_0x5e89fc(0x199))/0x5+-parseInt(_0x5e89fc(0x194))/0x6*(-parseInt(_0x5e89fc(0x189))/0x7)+parseInt(_0x5e89fc(0x196))/0x8+-parseInt(_0x5e89fc(0x197))/0x9;if(_0x4ef5dc===_0x3ea0ab)break;else _0xbd1a70['push'](_0xbd1a70['shift']());}catch(_0x3c3918){_0xbd1a70['push'](_0xbd1a70['shift']());}}}(a124_0x39ef,0xc5d5b));import{initEnv}from'../constant/env.js';import{readRawConfig}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a124_0x4bf5(_0x3fde01,_0x210407){_0x3fde01=_0x3fde01-0x181;const _0x39efa3=a124_0x39ef();let _0x4bf538=_0x39efa3[_0x3fde01];return _0x4bf538;}function a124_0x39ef(){const _0x536309=['keys','app','filter','apiDir','628156PjKKdN','937834oYXpXQ','21WMCVKq','entries','map','env','cookie','345702IlbfAG','apps','object','24bikUxl','appcode','template_base_url','220530spVcag','replace','10976016rkgTkF','15960285xrnLvj','defaultApp','7535490fopAII','length','string','https://g.lovrabet.com/dist/lovrabet-skill','trim'];a124_0x39ef=function(){return _0x536309;};return a124_0x39ef();}export function readConfig(_0x1a7fb1){const _0x3699c2=a124_0x4bf5,_0x594cd3=readRawConfig(_0x1a7fb1);return _0x594cd3[_0x3699c2(0x18c)]&&typeof _0x594cd3[_0x3699c2(0x18c)]===_0x3699c2(0x19b)&&initEnv(_0x594cd3[_0x3699c2(0x18c)]),_0x594cd3;}export function getConfigAppCode(){const _0x30fe60=a124_0x4bf5,_0xa4f129=readRawConfig();if(_0xa4f129[_0x30fe60(0x18f)]&&typeof _0xa4f129[_0x30fe60(0x18f)]===_0x30fe60(0x190)){const _0x3648cd=_0xa4f129['defaultApp'];if(_0x3648cd&&_0xa4f129[_0x30fe60(0x18f)][_0x3648cd]?.[_0x30fe60(0x192)])return String(_0xa4f129[_0x30fe60(0x18f)][_0x3648cd][_0x30fe60(0x192)])[_0x30fe60(0x182)]();const _0x1ed327=Object['values'](_0xa4f129[_0x30fe60(0x18f)])[0x0];if(_0x1ed327?.[_0x30fe60(0x192)])return String(_0x1ed327[_0x30fe60(0x192)])[_0x30fe60(0x182)]();}const _0x3969ee=_0xa4f129[_0x30fe60(0x192)]||_0xa4f129[_0x30fe60(0x184)];if(typeof _0x3969ee!=='string'||_0x3969ee[_0x30fe60(0x182)]()==='')return undefined;return _0x3969ee[_0x30fe60(0x182)]();}export function getMultiAppConfigs(){const _0x4b8f75=a124_0x4bf5,_0x27040f=readRawConfig(),_0x238ea7=_0x27040f['apps'];if(!_0x238ea7||typeof _0x238ea7!==_0x4b8f75(0x190)||Object[_0x4b8f75(0x183)](_0x238ea7)[_0x4b8f75(0x19a)]===0x0)return null;const _0x1870c5=_0x27040f[_0x4b8f75(0x198)];return Object[_0x4b8f75(0x18a)](_0x238ea7)[_0x4b8f75(0x18b)](([_0x19b3e9,_0x4d76b0])=>({'name':_0x19b3e9,'appcode':_0x4d76b0?.[_0x4b8f75(0x192)]||'','isDefault':_0x19b3e9===_0x1870c5,'env':_0x4d76b0?.[_0x4b8f75(0x18c)],'apiDir':_0x4d76b0?.[_0x4b8f75(0x186)],'cookie':_0x4d76b0?.[_0x4b8f75(0x18d)]||undefined}))[_0x4b8f75(0x185)](_0xfe4b73=>_0xfe4b73[_0x4b8f75(0x192)]);}export function getTemplateBaseUrl(){const _0xc8521f=a124_0x4bf5,_0x37ce6e=readRawConfig();if(_0x37ce6e['template_base_url']&&typeof _0x37ce6e[_0xc8521f(0x193)]===_0xc8521f(0x19b))return _0x37ce6e['template_base_url'][_0xc8521f(0x195)](/\/$/,'');return _0xc8521f(0x181);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4f6fff,_0x422f1e){const _0x5c8026=a125_0x118f,_0x220c6c=_0x4f6fff();while(!![]){try{const _0x4cb78d=-parseInt(_0x5c8026(0x166))/0x1*(-parseInt(_0x5c8026(0x16e))/0x2)+-parseInt(_0x5c8026(0x174))/0x3*(parseInt(_0x5c8026(0x165))/0x4)+-parseInt(_0x5c8026(0x173))/0x5+parseInt(_0x5c8026(0x16d))/0x6+parseInt(_0x5c8026(0x168))/0x7+-parseInt(_0x5c8026(0x16b))/0x8*(-parseInt(_0x5c8026(0x167))/0x9)+parseInt(_0x5c8026(0x171))/0xa*(parseInt(_0x5c8026(0x172))/0xb);if(_0x4cb78d===_0x422f1e)break;else _0x220c6c['push'](_0x220c6c['shift']());}catch(_0x34f22d){_0x220c6c['push'](_0x220c6c['shift']());}}}(a125_0x56ad,0xe9a45));import a125_0x14f01f from'node:path';function a125_0x118f(_0x4949c1,_0x255797){_0x4949c1=_0x4949c1-0x165;const _0x56ad88=a125_0x56ad();let _0x118f09=_0x56ad88[_0x4949c1];return _0x118f09;}import a125_0x42ffdc from'node:fs';export async function copyDirectory(_0x2439db,_0x5ea3fd){const _0x43b17b=a125_0x118f;try{const _0x2f1ac1=a125_0x42ffdc[_0x43b17b(0x16c)](_0x2439db,{'withFileTypes':!![]});a125_0x42ffdc[_0x43b17b(0x16f)](_0x5ea3fd,{'recursive':!![]});for(const _0x497202 of _0x2f1ac1){const _0xf1afd7=a125_0x14f01f[_0x43b17b(0x16a)](_0x2439db,_0x497202[_0x43b17b(0x176)]),_0x18ae0f=a125_0x14f01f[_0x43b17b(0x16a)](_0x5ea3fd,_0x497202[_0x43b17b(0x176)]);_0x497202[_0x43b17b(0x169)]()?await copyDirectory(_0xf1afd7,_0x18ae0f):a125_0x42ffdc['copyFileSync'](_0xf1afd7,_0x18ae0f);}}catch(_0x179700){console[_0x43b17b(0x175)](_0x43b17b(0x170),_0x179700);}}function a125_0x56ad(){const _0x1fdf8e=['180484wxQJly','39wxRJJH','9116532BsdaZN','4263231QAYXuU','isDirectory','join','8aEChKw','readdirSync','1798302mwOFxV','10448TjsnUd','mkdirSync','复制目录时出错:','3530CESmga','61589UZNTAq','6249010FumSxQ','126dcSxdn','error','name'];a125_0x56ad=function(){return _0x1fdf8e;};return a125_0x56ad();}
|
package/lib/utils/file-utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1a78b5,_0x55c498){const _0x2e76ab=a126_0x3a1b,_0xab7291=_0x1a78b5();while(!![]){try{const _0x40ef28=-parseInt(_0x2e76ab(0x13a))/0x1+parseInt(_0x2e76ab(0x135))/0x2+-parseInt(_0x2e76ab(0x137))/0x3+parseInt(_0x2e76ab(0x13c))/0x4*(-parseInt(_0x2e76ab(0x134))/0x5)+-parseInt(_0x2e76ab(0x138))/0x6+-parseInt(_0x2e76ab(0x139))/0x7+-parseInt(_0x2e76ab(0x133))/0x8*(-parseInt(_0x2e76ab(0x136))/0x9);if(_0x40ef28===_0x55c498)break;else _0xab7291['push'](_0xab7291['shift']());}catch(_0x371fcd){_0xab7291['push'](_0xab7291['shift']());}}}(a126_0x2e62,0xbc20f));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a126_0x2e62(){const _0x10c8c7=['4157667FybNLn','4378725psouRf','5636820YXifWp','174944hTbkkZ','506031SwYAqh','isDirectory','4CXfHMG','80FHqWOr','7499285MOTEBh','1161740LEPeKG'];a126_0x2e62=function(){return _0x10c8c7;};return a126_0x2e62();}import{join}from'node:path';function a126_0x3a1b(_0x2ad8d0,_0x2bdd5c){_0x2ad8d0=_0x2ad8d0-0x133;const _0x2e6222=a126_0x2e62();let _0x3a1b8f=_0x2e6222[_0x2ad8d0];return _0x3a1b8f;}export async function copyDir(_0xd79dc8,_0x4bf4d0){const _0x2600c4=a126_0x3a1b,_0x162134=statSync(_0xd79dc8);if(_0x162134[_0x2600c4(0x13b)]()){!existsSync(_0x4bf4d0)&&mkdirSync(_0x4bf4d0,{'recursive':!![]});const _0x23bf62=readdirSync(_0xd79dc8);for(const _0x23c04c of _0x23bf62){await copyDir(join(_0xd79dc8,_0x23c04c),join(_0x4bf4d0,_0x23c04c));}}else copyFileSync(_0xd79dc8,_0x4bf4d0);}export function ensureDir(_0x38a1c8){!existsSync(_0x38a1c8)&&mkdirSync(_0x38a1c8,{'recursive':!![]});}export function pathExists(_0x392094){return existsSync(_0x392094);}
|
package/lib/utils/guides-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a127_0x2a0978=a127_0x2156;(function(_0x4d4cb7,_0x1d6d65){const _0x3a074b=a127_0x2156,_0xce9b82=_0x4d4cb7();while(!![]){try{const _0xca731c=-parseInt(_0x3a074b(0xcd))/0x1+-parseInt(_0x3a074b(0xc4))/0x2+-parseInt(_0x3a074b(0xc5))/0x3*(-parseInt(_0x3a074b(0xc1))/0x4)+-parseInt(_0x3a074b(0xc2))/0x5*(-parseInt(_0x3a074b(0xd7))/0x6)+-parseInt(_0x3a074b(0xbf))/0x7*(-parseInt(_0x3a074b(0xcc))/0x8)+-parseInt(_0x3a074b(0xd5))/0x9+parseInt(_0x3a074b(0xbc))/0xa;if(_0xca731c===_0x1d6d65)break;else _0xce9b82['push'](_0xce9b82['shift']());}catch(_0x9709d){_0xce9b82['push'](_0xce9b82['shift']());}}}(a127_0x3efc,0x22559));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'./config.js';function getGuidesCdnUrl(){const _0x4887b5=a127_0x2156,_0x60de2f=getTemplateBaseUrl();return _0x60de2f+_0x4887b5(0xd3);}const CACHE_DIR=join(homedir(),a127_0x2a0978(0xca),a127_0x2a0978(0xcf));export async function fetchGuidesFromCDN(){const _0x5a88ee=a127_0x2a0978,_0x5c2e0b=getGuidesCdnUrl(),_0x395d14=await fetch(_0x5c2e0b,{'headers':{'Accept':_0x5a88ee(0xb8)}});if(!_0x395d14['ok'])throw new Error(_0x5a88ee(0xc8)+_0x395d14[_0x5a88ee(0xc9)]+'\x20'+_0x395d14[_0x5a88ee(0xce)]);const _0x933843=await _0x395d14['json']();if(!_0x933843[_0x5a88ee(0xbe)]||typeof _0x933843['guides']!==_0x5a88ee(0xc0))throw new Error(_0x5a88ee(0xd1));return _0x933843;}export function writeGuidesToProject(_0x542524,_0x1f091f,_0x57b5e5=a127_0x2a0978(0xba),_0x40d505){const _0x3dc5ce=a127_0x2a0978,_0x22f4ea=join(_0x1f091f,_0x57b5e5);mkdirSync(_0x22f4ea,{'recursive':!![]});for(const [_0x1d24c4,_0x35b020]of Object['entries'](_0x542524['guides'])){let _0x25ed31=_0x35b020[_0x3dc5ce(0xbd)];_0x35b020[_0x3dc5ce(0xd9)]&&(_0x25ed31=appendUpdateTime(_0x25ed31,_0x35b020[_0x3dc5ce(0xd9)])),writeFileSync(join(_0x22f4ea,_0x1d24c4+'.md'),_0x25ed31,'utf-8');}}export function appendUpdateTime(_0x1522ec,_0x4101c3){const _0x54826c=a127_0x2a0978;return _0x1522ec=_0x1522ec[_0x54826c(0xbb)](/\n*>更新时间:.*$/m,''),_0x1522ec['trimEnd']()+(_0x54826c(0xd2)+_0x4101c3);}export function getSkillTemplate(_0x59bb80){const _0x246b1d=a127_0x2a0978;return _0x59bb80[_0x246b1d(0xc6)]?.['content']||'';}export function appendExtendContents(_0x207c44,_0x430147,_0x15a2f0){const _0xf2d92f=a127_0x2a0978,_0x595882=[];for(const [,_0x171b1d]of Object[_0xf2d92f(0xb9)](_0x430147[_0xf2d92f(0xbe)])){_0x171b1d[_0xf2d92f(0xd8)]&&_0x595882[_0xf2d92f(0xc3)](_0x171b1d[_0xf2d92f(0xd8)][_0xf2d92f(0xd0)]());}if(_0x595882['length']===0x0)return _0x207c44;return _0x207c44[_0xf2d92f(0xd0)]()+'\x0a\x0a'+_0x595882['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x3c0df6,_0x224346,_0x26e816){const _0x4a02fe=a127_0x2a0978,_0x791677=getSkillTemplate(_0x3c0df6);if(!_0x791677)throw new Error(_0x4a02fe(0xd4));const _0x2257a6=dirname(_0x224346);mkdirSync(_0x2257a6,{'recursive':!![]});let _0x557fd3=_0x791677[_0x4a02fe(0xbb)](/\{\{IDE_NAME\}\}/g,_0x26e816);_0x557fd3=appendExtendContents(_0x557fd3,_0x3c0df6),_0x3c0df6[_0x4a02fe(0xc6)][_0x4a02fe(0xd9)]&&(_0x557fd3=appendUpdateTime(_0x557fd3,_0x3c0df6['skillTemplate']['lastUpdated'])),writeFileSync(_0x224346,_0x557fd3,_0x4a02fe(0xda));}export async function installGuides(_0xcbf2b4){const _0x158bbd=a127_0x2a0978,_0x4aef86=await fetchGuidesFromCDN();return writeGuidesToProject(_0x4aef86,_0xcbf2b4),Object[_0x158bbd(0xcb)](_0x4aef86[_0x158bbd(0xbe)])['length'];}function a127_0x3efc(){const _0x2f002a=['entries','.lovrabet/skill/guides','replace','335230zZiXIB','content','guides','49ZZwSDw','object','1015756WmvUIi','185oFZHAU','push','379556FCaBpr','3gmxTay','skillTemplate','title','CDN\x20请求失败:\x20','status','.lovrabet','keys','92048YXTYQE','207381KoOYjr','statusText','cache','trimEnd','CDN\x20返回数据格式错误','\x0a\x0a>更新时间:','/skills/guides.json','CDN\x20数据中缺少\x20skillTemplate','339372lCMAEX','map','33648dBNTgb','extendContent','lastUpdated','utf-8','application/json'];a127_0x3efc=function(){return _0x2f002a;};return a127_0x3efc();}function a127_0x2156(_0x5acbfa,_0xfd767a){_0x5acbfa=_0x5acbfa-0xb8;const _0x3efcb4=a127_0x3efc();let _0x215616=_0x3efcb4[_0x5acbfa];return _0x215616;}export function getGuidesSummary(_0x10af5f){const _0x59d198=a127_0x2a0978;return Object['entries'](_0x10af5f[_0x59d198(0xbe)])[_0x59d198(0xd6)](([_0x4c5111,_0x45e4c9])=>({'key':_0x4c5111,'title':_0x45e4c9[_0x59d198(0xc7)],'path':_0x45e4c9['path']}));}
|
package/lib/utils/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x488396,_0x1c5b1e){const _0x480e7f=a128_0x41c1,_0x5aaaf4=_0x488396();while(!![]){try{const _0x1878cb=parseInt(_0x480e7f(0x166))/0x1+-parseInt(_0x480e7f(0x15d))/0x2+-parseInt(_0x480e7f(0x162))/0x3*(parseInt(_0x480e7f(0x16d))/0x4)+-parseInt(_0x480e7f(0x174))/0x5*(parseInt(_0x480e7f(0x16f))/0x6)+parseInt(_0x480e7f(0x165))/0x7*(parseInt(_0x480e7f(0x168))/0x8)+parseInt(_0x480e7f(0x173))/0x9*(parseInt(_0x480e7f(0x167))/0xa)+-parseInt(_0x480e7f(0x160))/0xb;if(_0x1878cb===_0x1c5b1e)break;else _0x5aaaf4['push'](_0x5aaaf4['shift']());}catch(_0x1e6ec2){_0x5aaaf4['push'](_0x5aaaf4['shift']());}}}(a128_0x5905,0xacf1d));export async function httpRequest(_0x2ef1fd,_0x439f76={}){const _0x48f072=a128_0x41c1,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x439f76;let _0x15eee4=null;for(let _0x1c9acb=0x0;_0x1c9acb<=retries;_0x1c9acb++){try{const _0x173529=new AbortController(),_0x2b6a66=setTimeout(()=>_0x173529['abort'](),timeout),_0x5bd04a=await fetch(_0x2ef1fd,{'headers':headers,'signal':_0x173529['signal']});clearTimeout(_0x2b6a66);let _0x5cbfa7;const _0x1a64ec=_0x5bd04a[_0x48f072(0x15f)]['get'](_0x48f072(0x16c));return _0x1a64ec?.[_0x48f072(0x16a)]('application/json')?_0x5cbfa7=await _0x5bd04a['json']():_0x5cbfa7=await _0x5bd04a[_0x48f072(0x163)](),{'ok':_0x5bd04a['ok'],'status':_0x5bd04a[_0x48f072(0x175)],'statusText':_0x5bd04a['statusText'],'data':_0x5cbfa7,'headers':_0x5bd04a[_0x48f072(0x15f)],'url':_0x5bd04a[_0x48f072(0x15c)],'text':()=>_0x5bd04a[_0x48f072(0x163)]()};}catch(_0x41b0b2){_0x15eee4=_0x41b0b2 instanceof Error?_0x41b0b2:new Error(String(_0x41b0b2));if(_0x1c9acb===retries)break;if(shouldRetry(_0x41b0b2)){console[_0x48f072(0x170)](_0x48f072(0x16e)+retryDelay+'ms\x20后进行第\x20'+(_0x1c9acb+0x1)+_0x48f072(0x171)),await sleep(retryDelay);continue;}else break;}}throw _0x15eee4||new Error(_0x48f072(0x169));}function a128_0x41c1(_0x1e9612,_0x588e7e){_0x1e9612=_0x1e9612-0x15b;const _0x5905fd=a128_0x5905();let _0x41c136=_0x5905fd[_0x1e9612];return _0x41c136;}function a128_0x5905(){const _0x2d9eda=['36zrfmHy','3155YBnONE','status','ECONNRESET','fetch','url','1744284cxnnmO','name','headers','148324uGvfew','AbortError','111654uRiQiY','text','ENOTFOUND','7VIXDVU','1242287yEKELy','1173890oXvITj','8672520XOVdjV','Request\x20failed','includes','message','content-type','56HDHhYi','*\x20请求失败,','6474dElFoS','log','\x20次重试...','TypeError'];a128_0x5905=function(){return _0x2d9eda;};return a128_0x5905();}function shouldRetry(_0x18f18d){const _0x13719c=a128_0x41c1;if(_0x18f18d instanceof Error){if(_0x18f18d[_0x13719c(0x15e)]===_0x13719c(0x161))return![];if(_0x18f18d[_0x13719c(0x15e)]===_0x13719c(0x172)&&_0x18f18d[_0x13719c(0x16b)][_0x13719c(0x16a)](_0x13719c(0x15b)))return!![];if(_0x18f18d[_0x13719c(0x16b)]['includes'](_0x13719c(0x176)))return!![];if(_0x18f18d[_0x13719c(0x16b)][_0x13719c(0x16a)](_0x13719c(0x164)))return![];}return![];}function sleep(_0x15dd6c){return new Promise(_0x564ad0=>setTimeout(_0x564ad0,_0x15dd6c));}export function validateUrl(_0x1cfe40){try{return new URL(_0x1cfe40),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a129_0x5765(_0x161349,_0x1112a3){_0x161349=_0x161349-0xbe;const _0x526c95=a129_0x526c();let _0x57658d=_0x526c95[_0x161349];return _0x57658d;}function a129_0x526c(){const _0x4fece8=['1617tEiEsi','840942PQAZxR','isRaw','true','798blEClq','277956zKEfNZ','7KjAHQu','setRawMode','39945diJpXY','427bbfPMh','68410SipNWR','1494392IapGSf','2423907Ddzyzh','140UpebJP','isTTY'];a129_0x526c=function(){return _0x4fece8;};return a129_0x526c();}(function(_0xba6df3,_0x166c74){const _0x2d6b3b=a129_0x5765,_0x3b2253=_0xba6df3();while(!![]){try{const _0x25f56b=parseInt(_0x2d6b3b(0xbf))/0x1*(-parseInt(_0x2d6b3b(0xc9))/0x2)+-parseInt(_0x2d6b3b(0xc6))/0x3+-parseInt(_0x2d6b3b(0xc3))/0x4*(parseInt(_0x2d6b3b(0xbe))/0x5)+-parseInt(_0x2d6b3b(0xca))/0x6+-parseInt(_0x2d6b3b(0xcb))/0x7*(-parseInt(_0x2d6b3b(0xc1))/0x8)+-parseInt(_0x2d6b3b(0xc2))/0x9+parseInt(_0x2d6b3b(0xc0))/0xa*(parseInt(_0x2d6b3b(0xc5))/0xb);if(_0x25f56b===_0x166c74)break;else _0x3b2253['push'](_0x3b2253['shift']());}catch(_0x5c7302){_0x3b2253['push'](_0x3b2253['shift']());}}}(a129_0x526c,0x23c2b));function env(_0x597e69){return process.env[`RABETBASE_${_0x597e69}`]||process.env[`LOVRABET_${_0x597e69}`]||undefined;}export function isNonInteractive(_0x194114){const _0x1040ca=a129_0x5765;return!!(_0x194114['nonInteractive']||_0x194114['ci']||env('CI')===_0x1040ca(0xc8)||process.env.CI===_0x1040ca(0xc8)||!process['stdout'][_0x1040ca(0xc4)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x52143c=a129_0x5765;if(!process['stdin'][_0x52143c(0xc4)])return![];try{const _0xbbb867=process['stdin'][_0x52143c(0xc7)];return process['stdin'][_0x52143c(0xcc)](!![]),process['stdin'][_0x52143c(0xcc)](_0xbbb867??![]),!![];}catch{return![];}}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a130_0x185aaf=a130_0x3271;(function(_0x27bbdd,_0x5ed1dc){const _0x4f259e=a130_0x3271,_0x3c75f3=_0x27bbdd();while(!![]){try{const _0x3fe432=-parseInt(_0x4f259e(0x13d))/0x1*(-parseInt(_0x4f259e(0x11c))/0x2)+-parseInt(_0x4f259e(0x144))/0x3*(parseInt(_0x4f259e(0x11b))/0x4)+-parseInt(_0x4f259e(0x146))/0x5+parseInt(_0x4f259e(0x14b))/0x6+-parseInt(_0x4f259e(0x126))/0x7*(parseInt(_0x4f259e(0x147))/0x8)+parseInt(_0x4f259e(0x14e))/0x9+parseInt(_0x4f259e(0x132))/0xa*(parseInt(_0x4f259e(0x115))/0xb);if(_0x3fe432===_0x5ed1dc)break;else _0x3c75f3['push'](_0x3c75f3['shift']());}catch(_0x4b4707){_0x3c75f3['push'](_0x3c75f3['shift']());}}}(a130_0x2fed,0x9f0e2));import a130_0x2f26d3 from'winston';import a130_0x3d107d from'node:fs';import a130_0x34c494 from'node:path';function a130_0x2fed(){const _0x3d0ab0=['1777530RlVLeF','toISOString','mkdirSync','9330840etCexp','combine','parse','timestamp','1287VMZqMA','format','createLogger','logFilePath','rawCommand','readLogs','42064JBqHCP','461444xqYFxC','logTask','command','filter','unknown','currentRawCommand','stringify','setLogPath','trim','utf8','2079auHUyR','开始执行:\x20','yellow','success','level','readFileSync','red','warn','File','split','info','error','132190XzxeJF','message','.lovrabet.log','join','printf','getWinstonInstance','existsSync','winstonLogger','initWinstonLogger','blue','失败:\x20','3rGDYnh','green','log','Failed\x20to\x20read\x20logs:','now','setRawCommand','addColors','354nIHaOv','clearLogs','2957575KAAQOF','29304jHqcLl','Failed\x20to\x20clear\x20logs:','writeFileSync','duration'];a130_0x2fed=function(){return _0x3d0ab0;};return a130_0x2fed();}function a130_0x3271(_0x4191b0,_0x37b9dc){_0x4191b0=_0x4191b0-0x112;const _0x2fedca=a130_0x2fed();let _0x327192=_0x2fedca[_0x4191b0];return _0x327192;}class Logger{[a130_0x185aaf(0x139)];[a130_0x185aaf(0x118)];[a130_0x185aaf(0x121)]='';constructor(){this['logFilePath']='';}[a130_0x185aaf(0x142)](_0x1b21ca){const _0x15e3a0=a130_0x185aaf;this[_0x15e3a0(0x121)]=_0x1b21ca;}['initWinstonLogger'](){const _0x356fbf=a130_0x185aaf,_0x198f63=a130_0x34c494['dirname'](this['logFilePath']);!a130_0x3d107d[_0x356fbf(0x138)](_0x198f63)&&a130_0x3d107d[_0x356fbf(0x14d)](_0x198f63,{'recursive':!![]});const _0x2f3632=a130_0x2f26d3[_0x356fbf(0x116)][_0x356fbf(0x112)](a130_0x2f26d3[_0x356fbf(0x116)][_0x356fbf(0x114)](),a130_0x2f26d3['format']['errors']({'stack':!![]}),a130_0x2f26d3[_0x356fbf(0x116)][_0x356fbf(0x136)](_0xbc10fd=>{const _0x569430=_0x356fbf,_0x3b0586={'timestamp':_0xbc10fd['timestamp']||new Date()[_0x569430(0x14c)](),'level':_0xbc10fd[_0x569430(0x12a)]||_0x569430(0x130),'command':_0xbc10fd[_0x569430(0x11e)]||_0x569430(0x120),'rawCommand':_0xbc10fd[_0x569430(0x119)]||this['currentRawCommand']||undefined,'message':_0xbc10fd[_0x569430(0x133)]||'','duration':_0xbc10fd[_0x569430(0x14a)]||undefined,'details':_0xbc10fd['details']||undefined};return JSON[_0x569430(0x122)](_0x3b0586);}));this['winstonLogger']=a130_0x2f26d3[_0x356fbf(0x117)]({'level':_0x356fbf(0x130),'format':_0x2f3632,'transports':[new a130_0x2f26d3['transports'][(_0x356fbf(0x12e))]({'filename':this[_0x356fbf(0x118)],'level':_0x356fbf(0x130)})],'silent':![]}),a130_0x2f26d3[_0x356fbf(0x143)]({'success':_0x356fbf(0x13e),'error':_0x356fbf(0x12c),'warn':_0x356fbf(0x128),'info':_0x356fbf(0x13b)});}[a130_0x185aaf(0x123)](_0x3cc8fc){const _0x4fdaca=a130_0x185aaf;this[_0x4fdaca(0x118)]=a130_0x34c494[_0x4fdaca(0x135)](_0x3cc8fc,_0x4fdaca(0x134)),this[_0x4fdaca(0x139)]&&this[_0x4fdaca(0x139)]['clear'](),this[_0x4fdaca(0x13a)]();}[a130_0x185aaf(0x130)](_0x4a7644,_0x4b7bd2,_0x5848c4){const _0x4f54ac=a130_0x185aaf;if(!this[_0x4f54ac(0x118)]||!this['winstonLogger'])return;this['winstonLogger']['info'](_0x4b7bd2,{'command':_0x4a7644,'details':_0x5848c4});}['success'](_0x254ce4,_0x3ac428,_0x571033,_0x2d61bc){const _0x5776ea=a130_0x185aaf;if(!this[_0x5776ea(0x118)]||!this['winstonLogger'])return;this[_0x5776ea(0x139)][_0x5776ea(0x13f)]('info',_0x3ac428,{'level':_0x5776ea(0x129),'command':_0x254ce4,'duration':_0x571033,'details':_0x2d61bc});}[a130_0x185aaf(0x131)](_0x5d6130,_0x507a86,_0x4912a6){const _0x292248=a130_0x185aaf;if(!this[_0x292248(0x118)]||!this[_0x292248(0x139)])return;this[_0x292248(0x139)][_0x292248(0x131)](_0x507a86,{'command':_0x5d6130,'details':_0x4912a6});}[a130_0x185aaf(0x12d)](_0xb1f7f8,_0x434b88,_0x315afd){const _0x9318ab=a130_0x185aaf;if(!this[_0x9318ab(0x118)]||!this[_0x9318ab(0x139)])return;this['winstonLogger']['warn'](_0x434b88,{'command':_0xb1f7f8,'details':_0x315afd});}async[a130_0x185aaf(0x11d)](_0x1afcab,_0x35ecbb,_0x23f7a4){const _0x12048b=a130_0x185aaf,_0x3d630b=Date[_0x12048b(0x141)]();this[_0x12048b(0x130)](_0x1afcab,_0x12048b(0x127)+_0x35ecbb);try{const _0x21bdc2=await _0x23f7a4(),_0x3dc683=Date[_0x12048b(0x141)]()-_0x3d630b;return this[_0x12048b(0x129)](_0x1afcab,'完成:\x20'+_0x35ecbb,_0x3dc683),_0x21bdc2;}catch(_0x50444d){const _0x42a8c3=Date[_0x12048b(0x141)]()-_0x3d630b;this['error'](_0x1afcab,_0x12048b(0x13c)+_0x35ecbb,{'error':_0x50444d instanceof Error?_0x50444d[_0x12048b(0x133)]:String(_0x50444d),'duration':_0x42a8c3});throw _0x50444d;}}[a130_0x185aaf(0x11a)](){const _0x5ce8d2=a130_0x185aaf;try{if(!a130_0x3d107d[_0x5ce8d2(0x138)](this[_0x5ce8d2(0x118)]))return[];const _0x4dfa18=a130_0x3d107d[_0x5ce8d2(0x12b)](this[_0x5ce8d2(0x118)],_0x5ce8d2(0x125));return _0x4dfa18[_0x5ce8d2(0x12f)]('\x0a')[_0x5ce8d2(0x11f)](_0x34f9b3=>_0x34f9b3[_0x5ce8d2(0x124)]())['map'](_0x175613=>JSON[_0x5ce8d2(0x113)](_0x175613));}catch(_0x5399e6){return console[_0x5ce8d2(0x12d)](_0x5ce8d2(0x140),_0x5399e6),[];}}[a130_0x185aaf(0x145)](){const _0x49aa9a=a130_0x185aaf;try{a130_0x3d107d[_0x49aa9a(0x138)](this[_0x49aa9a(0x118)])&&a130_0x3d107d[_0x49aa9a(0x149)](this[_0x49aa9a(0x118)],'',_0x49aa9a(0x125));}catch(_0x359c3f){console[_0x49aa9a(0x12d)](_0x49aa9a(0x148),_0x359c3f);}}[a130_0x185aaf(0x137)](){const _0x477e34=a130_0x185aaf;return this[_0x477e34(0x139)];}}export const logger=new Logger();
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a131_0x2bd3ad=a131_0x848c;function a131_0xc637(){const _0x104cb1=['250048YIqiFp','win32','298596ZCzfWN','2326313mzFAED','457428rTTXXk','4nlTlLo','.cmd','20IhOYSh','76863qXmEca','7qeylxp','1513265rhjgUo','3177HZKcDv','5392QYeGFV'];a131_0xc637=function(){return _0x104cb1;};return a131_0xc637();}(function(_0x4380a3,_0xbac2dc){const _0x1b21e5=a131_0x848c,_0x2caf3a=_0x4380a3();while(!![]){try{const _0x48c7f3=parseInt(_0x1b21e5(0xda))/0x1+-parseInt(_0x1b21e5(0xd2))/0x2*(parseInt(_0x1b21e5(0xd5))/0x3)+parseInt(_0x1b21e5(0xcf))/0x4+-parseInt(_0x1b21e5(0xd7))/0x5+parseInt(_0x1b21e5(0xd1))/0x6*(parseInt(_0x1b21e5(0xd6))/0x7)+parseInt(_0x1b21e5(0xd9))/0x8*(-parseInt(_0x1b21e5(0xd8))/0x9)+-parseInt(_0x1b21e5(0xd4))/0xa*(-parseInt(_0x1b21e5(0xd0))/0xb);if(_0x48c7f3===_0xbac2dc)break;else _0x2caf3a['push'](_0x2caf3a['shift']());}catch(_0x57b183){_0x2caf3a['push'](_0x2caf3a['shift']());}}}(a131_0xc637,0x38a94));function a131_0x848c(_0x20f895,_0x172c9b){_0x20f895=_0x20f895-0xcf;const _0xc637b=a131_0xc637();let _0x848cd1=_0xc637b[_0x20f895];return _0x848cd1;}export const isWindows=process['platform']===a131_0x2bd3ad(0xdb);export function resolveNpmBin(_0x32d106){const _0x4d434c=a131_0x2bd3ad;return isWindows?_0x32d106+_0x4d434c(0xd3):_0x32d106;}
|
package/lib/utils/rules-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a132_0x111262=a132_0xdf92;(function(_0x325808,_0x1523cb){const _0x152ea9=a132_0xdf92,_0x28831b=_0x325808();while(!![]){try{const _0x483070=parseInt(_0x152ea9(0x1b4))/0x1+-parseInt(_0x152ea9(0x1a0))/0x2*(parseInt(_0x152ea9(0x1ae))/0x3)+parseInt(_0x152ea9(0x19c))/0x4*(-parseInt(_0x152ea9(0x1a9))/0x5)+-parseInt(_0x152ea9(0x1b5))/0x6*(parseInt(_0x152ea9(0x1a5))/0x7)+parseInt(_0x152ea9(0x1aa))/0x8*(parseInt(_0x152ea9(0x1a4))/0x9)+-parseInt(_0x152ea9(0x1a3))/0xa+parseInt(_0x152ea9(0x1a8))/0xb*(parseInt(_0x152ea9(0x1b2))/0xc);if(_0x483070===_0x1523cb)break;else _0x28831b['push'](_0x28831b['shift']());}catch(_0x25eec7){_0x28831b['push'](_0x28831b['shift']());}}}(a132_0x5620,0x58b7e));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'./config.js';import{appendUpdateTime}from'./guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x4ec89e=a132_0xdf92,_0x5d4254=getTemplateBaseUrl();return _0x5d4254+_0x4ec89e(0x1ab);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a132_0x111262(0x1b1));export async function fetchRulesFromCDN(){const _0x301b5e=a132_0x111262,_0x15a461=getRulesCdnUrl(),_0x424ea4=await fetch(_0x15a461,{'headers':{'Accept':_0x301b5e(0x1b0)}});if(!_0x424ea4['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x424ea4[_0x301b5e(0x19b)]+'\x20'+_0x424ea4[_0x301b5e(0x1af)]);const _0x3331fa=await _0x424ea4[_0x301b5e(0x19d)]();if(!_0x3331fa[_0x301b5e(0x19f)]||typeof _0x3331fa[_0x301b5e(0x19f)]!==_0x301b5e(0x19e))throw new Error(_0x301b5e(0x1ad));return _0x3331fa;}export async function getRulesContent(){try{const _0x10d5b7=await fetchRulesFromCDN();return _0x10d5b7['content'];}catch{return readLocalTemplate();}}function a132_0xdf92(_0x1859da,_0x5b1c9b){_0x1859da=_0x1859da-0x19b;const _0x56202f=a132_0x5620();let _0xdf923f=_0x56202f[_0x1859da];return _0xdf923f;}export function readLocalTemplate(){const _0x45dde7=a132_0x111262;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error(_0x45dde7(0x1b3)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x1e4e07){const _0x4f2f90=a132_0x111262,_0x406ef5=await fetchRulesFromCDN()[_0x4f2f90(0x1a7)](()=>null);let _0x4dd249;_0x406ef5?(_0x4dd249=_0x406ef5['content'],_0x406ef5[_0x4f2f90(0x1a2)]&&(_0x4dd249=appendUpdateTime(_0x4dd249,_0x406ef5['lastUpdated']))):_0x4dd249=readLocalTemplate();const _0x5075ba=dirname(_0x1e4e07);!existsSync(_0x5075ba)&&mkdirSync(_0x5075ba,{'recursive':!![]}),writeFileSync(_0x1e4e07,_0x4dd249,_0x4f2f90(0x1ac));}export async function copyRulesToCursor(_0x3c0c95){const _0x1cbf44=a132_0x111262,_0x5a7d27=join(_0x3c0c95,_0x1cbf44(0x1a6)),_0x2b0f07=join(_0x5a7d27,'lovrabet_rules.mdc');if(existsSync(_0x2b0f07))return![];return await writeRulesFile(_0x2b0f07),!![];}function a132_0x5620(){const _0x21e898=['104316CcKQyL','status','636gagDtf','json','string','content','408948ZtOhpI','agents.md','lastUpdated','453990STEfXc','126135NmDInF','28hztmZO','.cursor/rules','catch','11fupxwB','4685TSfwLN','200ELDAJz','/rules/rules.json','utf-8','CDN\x20返回数据格式错误','9sJbNAc','statusText','application/json','../../templates/rules/lovrabet_rules.mdc.tpl','7089828dqTFXW','本地模板文件不存在:\x20','299544aiSJGi'];a132_0x5620=function(){return _0x21e898;};return a132_0x5620();}export async function copyRulesToAgentsMd(_0x4472d8){const _0x553102=a132_0x111262,_0x188957=join(_0x4472d8,_0x553102(0x1a1));if(existsSync(_0x188957))return![];return await writeRulesFile(_0x188957),!![];}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x5963fb){return new Promise(_0x3048a7=>setTimeout(_0x3048a7,_0x5963fb));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a134_0x592bfe=a134_0xd079;(function(_0x186fd2,_0x5b7b6c){const _0x43f5bc=a134_0xd079,_0x18f147=_0x186fd2();while(!![]){try{const _0x40427b=-parseInt(_0x43f5bc(0xfe))/0x1+parseInt(_0x43f5bc(0xfc))/0x2*(parseInt(_0x43f5bc(0x113))/0x3)+parseInt(_0x43f5bc(0xec))/0x4*(-parseInt(_0x43f5bc(0x126))/0x5)+parseInt(_0x43f5bc(0x107))/0x6+parseInt(_0x43f5bc(0x12b))/0x7*(parseInt(_0x43f5bc(0xf1))/0x8)+parseInt(_0x43f5bc(0x117))/0x9*(parseInt(_0x43f5bc(0xf0))/0xa)+parseInt(_0x43f5bc(0x11d))/0xb*(-parseInt(_0x43f5bc(0x114))/0xc);if(_0x40427b===_0x5b7b6c)break;else _0x18f147['push'](_0x18f147['shift']());}catch(_0x31fbb5){_0x18f147['push'](_0x18f147['shift']());}}}(a134_0x4b9e,0xb84d4));import a134_0x206aa2 from'node:fs';import a134_0x1f22c6 from'node:path';function a134_0xd079(_0x2787f9,_0x48ebdf){_0x2787f9=_0x2787f9-0xea;const _0x4b9e51=a134_0x4b9e();let _0xd07938=_0x4b9e51[_0x2787f9];return _0xd07938;}import{createRequire}from'node:module';import{logger}from'./logger.js';const require=createRequire(import.meta.url),CLI_VERSION=require(a134_0x592bfe(0xef))['version'];export class TemplateReplacer{static['toComponentName'](_0x1762a){const _0x2b8920=a134_0x592bfe,_0x248dbc=_0x1762a[_0x2b8920(0x10f)]('/')[_0x2b8920(0x122)]()||_0x1762a;return _0x248dbc[_0x2b8920(0x10f)]('-')[_0x2b8920(0x11f)](_0xe499f7=>_0xe499f7[_0x2b8920(0x128)](0x0)[_0x2b8920(0x104)]()+_0xe499f7['slice'](0x1)[_0x2b8920(0x125)]())['join']('');}static[a134_0x592bfe(0x124)](_0x523cba){const _0x312aad=a134_0x592bfe,_0x215d5c=_0x523cba['split']('/')[_0x312aad(0x122)]()||_0x523cba;return _0x215d5c[_0x312aad(0x10f)]('-')['map'](_0xd99c2f=>_0xd99c2f[_0x312aad(0x128)](0x0)['toUpperCase']()+_0xd99c2f['slice'](0x1)[_0x312aad(0x125)]())[_0x312aad(0x12c)]('\x20');}static[a134_0x592bfe(0x108)](_0x46d4e1,_0x2d4e75,_0xde26ae){const _0x1e3b40=a134_0x592bfe,_0x4435b5=this[_0x1e3b40(0x120)](_0x2d4e75),_0x2d6c20=this[_0x1e3b40(0x124)](_0x2d4e75),_0x489078=new Date(),_0x1bdff8=_0x489078[_0x1e3b40(0xf6)](undefined,{'year':'numeric','month':_0x1e3b40(0x111),'day':'2-digit','hour':_0x1e3b40(0x111),'minute':_0x1e3b40(0x111),'second':_0x1e3b40(0x111),'hour12':![]})[_0x1e3b40(0x12a)](/\//g,'-'),_0x1db81c=_0x489078[_0x1e3b40(0x11e)](undefined,{'year':'numeric','month':_0x1e3b40(0x111),'day':_0x1e3b40(0x111)})[_0x1e3b40(0x12a)](/\//g,'-'),_0x1fcd3e=_0x489078[_0x1e3b40(0xf4)](undefined,{'hour12':![]});let _0x329c58=_0x46d4e1[_0x1e3b40(0x12a)](/\{CliVersion\}/g,CLI_VERSION)[_0x1e3b40(0x12a)](/\{ComponentName\}/g,_0x4435b5)[_0x1e3b40(0x12a)](/\{DisplayTitle\}/g,_0x2d6c20)[_0x1e3b40(0x12a)](/\{PageName\}/g,_0x2d4e75)[_0x1e3b40(0x12a)](/\{TemplateName\}/g,_0xde26ae)['replace'](/\{CreatedAt\}/g,_0x1bdff8)[_0x1e3b40(0x12a)](/\{CreatedDate\}/g,_0x1db81c)[_0x1e3b40(0x12a)](/\{CreatedTime\}/g,_0x1fcd3e);return _0x329c58;}static['replaceApiContent'](_0x1bb996,_0xca89ac,_0x3be40c,_0x28373d,_0x449201,_0x2a40b7,_0x1db956,_0x4f0d34){const _0x169e28=a134_0x592bfe,_0x46dda1=new Date(),_0xcc099a=_0x46dda1[_0x169e28(0xee)](),_0x2dc6c5=_0x3be40c[_0x169e28(0x11f)](_0x4e767c=>{const _0x42b03f=_0x169e28,_0xa8e497=[_0x42b03f(0x10d)+_0x4e767c[_0x42b03f(0xeb)]+'\x22','tableName:\x20\x22'+_0x4e767c[_0x42b03f(0xfb)]+'\x22','name:\x20\x22'+_0x4e767c[_0x42b03f(0x115)]+'\x22'];return _0x4e767c[_0x42b03f(0x12d)]&&_0xa8e497[_0x42b03f(0xea)](_0x42b03f(0x105)+_0x4e767c['alias']+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0xa8e497['join'](',\x20')+_0x42b03f(0x102);})['join'](''),_0x103144=_0x28373d||_0x3be40c[0x0]?.[_0x169e28(0x12d)]||'YourModel';let _0x5319de=_0x1bb996[_0x169e28(0x12a)](/\{AppCode\}/g,_0xca89ac)[_0x169e28(0x12a)](/\{ModelConfigs\}/g,_0x2dc6c5)[_0x169e28(0x12a)](/\{ExampleModelName\}/g,_0x103144)[_0x169e28(0x12a)](/\{ApiFileName\}/g,_0x449201||'api')[_0x169e28(0x12a)](/\{ConfigName\}/g,_0x2a40b7||'default')[_0x169e28(0x12a)](/\{ClientConfigParam\}/g,_0x1db956||'')[_0x169e28(0x12a)](/\{VarPrefix\}/g,_0x4f0d34||_0x169e28(0x11a))[_0x169e28(0x12a)](/\{CreatedAt\}/g,_0xcc099a);return _0x5319de;}static async[a134_0x592bfe(0x10a)](_0x493166,_0x360d81,_0x2da9ea,_0x4e0b42,_0x35c5a0=!![]){const _0x38f530=a134_0x592bfe,_0x42c36c=Date[_0x38f530(0xfd)]();try{_0x35c5a0&&logger[_0x38f530(0xed)]('template',_0x38f530(0x123),{'templatePath':_0x493166,'targetPath':_0x360d81,'pageName':_0x2da9ea,'templateName':_0x4e0b42});await a134_0x206aa2[_0x38f530(0xf8)][_0x38f530(0xf5)](_0x360d81,{'recursive':!![]}),await this[_0x38f530(0x116)](_0x493166,_0x360d81,_0x2da9ea,_0x4e0b42);if(_0x35c5a0){const _0xb6456f=Date['now']()-_0x42c36c;logger[_0x38f530(0xfa)](_0x38f530(0x106),_0x38f530(0xf9),_0xb6456f,{'pageName':_0x2da9ea,'templateName':_0x4e0b42});}}catch(_0x405ad2){if(_0x35c5a0){const _0x2db2d3=Date[_0x38f530(0xfd)]()-_0x42c36c;logger[_0x38f530(0xff)](_0x38f530(0x106),_0x38f530(0xf7),{'templatePath':_0x493166,'targetPath':_0x360d81,'pageName':_0x2da9ea,'templateName':_0x4e0b42,'error':_0x405ad2 instanceof Error?_0x405ad2[_0x38f530(0x10e)]:String(_0x405ad2),'duration':_0x2db2d3});}throw _0x405ad2;}}static async[a134_0x592bfe(0x116)](_0xf72ffb,_0x14e56c,_0x2f9176,_0x22459c){const _0x20500b=a134_0x592bfe,_0x5754cb=await a134_0x206aa2[_0x20500b(0xf8)]['readdir'](_0xf72ffb,{'withFileTypes':!![]});for(const _0x22f669 of _0x5754cb){const _0x4d46c4=a134_0x1f22c6[_0x20500b(0x12c)](_0xf72ffb,_0x22f669[_0x20500b(0x115)]);let _0x2b78bf=a134_0x1f22c6['join'](_0x14e56c,_0x22f669[_0x20500b(0x115)]);_0x22f669['name'][_0x20500b(0x103)]('.tpl')&&(_0x2b78bf=a134_0x1f22c6[_0x20500b(0x12c)](_0x14e56c,_0x22f669[_0x20500b(0x115)][_0x20500b(0x12a)](/\.tpl$/,'')));if(_0x22f669['isDirectory']())await a134_0x206aa2[_0x20500b(0xf8)]['mkdir'](_0x2b78bf,{'recursive':!![]}),await this[_0x20500b(0x116)](_0x4d46c4,_0x2b78bf,_0x2f9176,_0x22459c);else _0x22f669[_0x20500b(0x11c)]()&&await this[_0x20500b(0x100)](_0x4d46c4,_0x2b78bf,_0x2f9176,_0x22459c);}}static async[a134_0x592bfe(0x100)](_0x2e3fdf,_0x428120,_0xfaceb2,_0x53816a){const _0x4c6651=a134_0x592bfe,_0x1f144e=a134_0x1f22c6[_0x4c6651(0x118)](_0x2e3fdf)[_0x4c6651(0x125)]();_0x2e3fdf[_0x4c6651(0x103)](_0x4c6651(0x112))&&(_0x428120=_0x428120[_0x4c6651(0x12a)](/\.tpl$/,''));const _0x24e443=[_0x4c6651(0x10b),_0x4c6651(0xf3),_0x4c6651(0x127),_0x4c6651(0x11b),_0x4c6651(0x101),_0x4c6651(0x109),'.css',_0x4c6651(0x119),_0x4c6651(0x112)];if(_0x24e443[_0x4c6651(0x129)](_0x1f144e)||_0x2e3fdf['endsWith'](_0x4c6651(0x112))){const _0x5a6f0b=await a134_0x206aa2['promises'][_0x4c6651(0x110)](_0x2e3fdf,_0x4c6651(0x121)),_0x16775c=this[_0x4c6651(0x108)](_0x5a6f0b,_0xfaceb2,_0x53816a);await a134_0x206aa2['promises'][_0x4c6651(0xf2)](_0x428120,_0x16775c,'utf8');}else await a134_0x206aa2[_0x4c6651(0xf8)][_0x4c6651(0x10c)](_0x2e3fdf,_0x428120);}}function a134_0x4b9e(){const _0x542f6b=['replace','4525829bRrqIm','join','alias','push','datasetCode','5155548qPLNXr','info','toISOString','../../package.json','70uZVako','8GJpoBX','writeFile','.ts','toLocaleTimeString','mkdir','toLocaleString','模板内容替换失败','promises','模板内容替换完成','success','tableName','969562JugAIu','now','173181xCDYmK','error','processFile','.json','\x20},','endsWith','toUpperCase','alias:\x20\x22','template','7812354kJcRvb','replaceContent','.md','processTemplate','.tsx','copyFile','datasetCode:\x20\x22','message','split','readFile','2-digit','.tpl','6NoArgJ','6610056xHEJsu','name','processDirectory','1223118rCZwaJ','extname','.scss','LOVRABET','.js','isFile','33mZzICo','toLocaleDateString','map','toComponentName','utf8','pop','开始处理模板内容替换','toDisplayTitle','toLowerCase','5xRsXmz','.jsx','charAt','includes'];a134_0x4b9e=function(){return _0x542f6b;};return a134_0x4b9e();}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x9e3c61,_0x74770){const _0x4710ec=a135_0x165a,_0x2fdbeb=_0x9e3c61();while(!![]){try{const _0x174abc=parseInt(_0x4710ec(0x175))/0x1*(-parseInt(_0x4710ec(0x17d))/0x2)+parseInt(_0x4710ec(0x183))/0x3*(parseInt(_0x4710ec(0x179))/0x4)+-parseInt(_0x4710ec(0x17c))/0x5+parseInt(_0x4710ec(0x184))/0x6*(parseInt(_0x4710ec(0x17f))/0x7)+parseInt(_0x4710ec(0x17b))/0x8+parseInt(_0x4710ec(0x182))/0x9*(-parseInt(_0x4710ec(0x178))/0xa)+parseInt(_0x4710ec(0x180))/0xb;if(_0x174abc===_0x74770)break;else _0x2fdbeb['push'](_0x2fdbeb['shift']());}catch(_0xc0b0df){_0x2fdbeb['push'](_0x2fdbeb['shift']());}}}(a135_0x11b9,0x3914d));function a135_0x165a(_0x2aa061,_0x189d14){_0x2aa061=_0x2aa061-0x175;const _0x11b920=a135_0x11b9();let _0x165aee=_0x11b920[_0x2aa061];return _0x165aee;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';let _cached='';export function getCliVersion(){const _0x4e455a=a135_0x165a;if(_cached)return _cached;try{const _0x57beba=fileURLToPath(import.meta.url),_0xda9f8e=resolve(dirname(_0x57beba),_0x4e455a(0x177)),_0x491bda=JSON[_0x4e455a(0x181)](readFileSync(resolve(_0xda9f8e,_0x4e455a(0x17a)),_0x4e455a(0x176)));_cached=_0x491bda['version']||_0x4e455a(0x17e);}catch{_cached='0.0.0';}return _cached;}function a135_0x11b9(){const _0x1affb6=['539376EFNkeL','948440hBWkOp','8776sfmwwi','0.0.0','193949DxawHt','8775767blLwoc','parse','5013gXXvun','659361zBgYff','6uvcGLa','87zImxCg','utf8','../..','5520AXYqHm','4MxsEYM','package.json'];a135_0x11b9=function(){return _0x1affb6;};return a135_0x11b9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x13e2c9,_0x3f80ee){var _0x5089e9=a136_0x2d90,_0x11aa6b=_0x13e2c9();while(!![]){try{var _0x2a7b7f=parseInt(_0x5089e9(0x6c))/0x1+parseInt(_0x5089e9(0x71))/0x2+parseInt(_0x5089e9(0x6f))/0x3*(parseInt(_0x5089e9(0x6e))/0x4)+parseInt(_0x5089e9(0x6d))/0x5*(parseInt(_0x5089e9(0x74))/0x6)+-parseInt(_0x5089e9(0x73))/0x7+parseInt(_0x5089e9(0x75))/0x8+-parseInt(_0x5089e9(0x70))/0x9*(parseInt(_0x5089e9(0x72))/0xa);if(_0x2a7b7f===_0x3f80ee)break;else _0x11aa6b['push'](_0x11aa6b['shift']());}catch(_0x3e26e5){_0x11aa6b['push'](_0x11aa6b['shift']());}}}(a136_0x3c2b,0x5c873));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a136_0x2d90(_0x93bced,_0x3e068c){_0x93bced=_0x93bced-0x6c;var _0x3c2b26=a136_0x3c2b();var _0x2d904a=_0x3c2b26[_0x93bced];return _0x2d904a;}export async function withActiveCookie(_0x2cf66e,_0x3d6ed5){setActiveCookie(_0x2cf66e);try{return await _0x3d6ed5();}finally{clearActiveCookie();}}function a136_0x3c2b(){var _0x2ac391=['108095mPfAYN','1916vBYOLm','4227rDKalT','72eiuHzI','311836EWycZf','1445440FQVxvO','513870ElQpje','18FxlpDp','4844392zYLoVY','107522pZjDWA'];a136_0x3c2b=function(){return _0x2ac391;};return a136_0x3c2b();}
|