@lovrabet/rabetbase-cli 2.3.4-beta.4 → 2.3.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/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/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.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-skill/index.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-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/dry-run.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/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.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/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.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/relation-audit.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/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.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/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.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/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.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/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.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/update-notice.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
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a228_0x5236(_0x2f4a97,_0x23ccb1){_0x2f4a97=_0x2f4a97-0x105;const _0x14c9d1=a228_0x14c9();let _0x52361d=_0x14c9d1[_0x2f4a97];return _0x52361d;}(function(_0x2eacfe,_0x3d4433){const _0xcb075a=a228_0x5236,_0x198ab0=_0x2eacfe();while(!![]){try{const _0x1dd6f6=parseInt(_0xcb075a(0x109))/0x1+parseInt(_0xcb075a(0x10b))/0x2*(parseInt(_0xcb075a(0x111))/0x3)+-parseInt(_0xcb075a(0x10a))/0x4*(-parseInt(_0xcb075a(0x110))/0x5)+parseInt(_0xcb075a(0x10d))/0x6*(-parseInt(_0xcb075a(0x10f))/0x7)+parseInt(_0xcb075a(0x106))/0x8+parseInt(_0xcb075a(0x112))/0x9+-parseInt(_0xcb075a(0x108))/0xa*(parseInt(_0xcb075a(0x113))/0xb);if(_0x1dd6f6===_0x3d4433)break;else _0x198ab0['push'](_0x198ab0['shift']());}catch(_0x440e3c){_0x198ab0['push'](_0x198ab0['shift']());}}}(a228_0x14c9,0xb889f));function a228_0x14c9(){const _0x494282=['726mIXPPe','string','76426xTGodK','50JHhMcU','1735359wIhhiT','2282013AJIYjq','710303WeLuDL','isFinite','12000168xsKFhT','trim','240BFcQJl','631200qCUgFT','265388FNOCdQ','2RWlXIl','number'];a228_0x14c9=function(){return _0x494282;};return a228_0x14c9();}function toFiniteNumber(_0x2d48e5){const _0x8226b=a228_0x5236;if(typeof _0x2d48e5===_0x8226b(0x10c)&&Number[_0x8226b(0x105)](_0x2d48e5))return _0x2d48e5;if(typeof _0x2d48e5===_0x8226b(0x10e)){const _0x303b1d=_0x2d48e5[_0x8226b(0x107)]();if(!_0x303b1d)return undefined;const _0xcd70f6=Number(_0x303b1d);if(Number[_0x8226b(0x105)](_0xcd70f6))return _0xcd70f6;}return undefined;}export function normalizeEntityWithIdResponse(_0x2c6f3c){const _0x2e6d6e=toFiniteNumber(_0x2c6f3c);if(_0x2e6d6e!==undefined)return{'id':_0x2e6d6e,'entity':{'id':_0x2e6d6e}};if(!_0x2c6f3c||typeof _0x2c6f3c!=='object')return{'id':undefined,'entity':{}};const _0x275b3f={..._0x2c6f3c},_0x4a3444=toFiniteNumber(_0x275b3f['id']);return _0x4a3444!==undefined&&(_0x275b3f['id']=_0x4a3444),{'id':_0x4a3444,'entity':_0x275b3f};}
|
package/lib/utils/file-utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a229_0x42f7(_0x558ff6,_0x163705){_0x558ff6=_0x558ff6-0x114;const _0xa2b975=a229_0xa2b9();let _0x42f7ec=_0xa2b975[_0x558ff6];return _0x42f7ec;}function a229_0xa2b9(){const _0x45fdb9=['2344446rYdYOS','1555430cMwvBO','44901yeDBiG','4634544KvCxbo','13gQOIKR','218494dKLVqm','1febmRP','1267305NwtLkv','11UPvNfd','4lQqFuE','21175kTofmR','480noyfzb','isDirectory','6adciQZ'];a229_0xa2b9=function(){return _0x45fdb9;};return a229_0xa2b9();}(function(_0x3f6257,_0x353f86){const _0x3d4ca7=a229_0x42f7,_0x59966d=_0x3f6257();while(!![]){try{const _0xbe0b1b=-parseInt(_0x3d4ca7(0x117))/0x1*(-parseInt(_0x3d4ca7(0x116))/0x2)+-parseInt(_0x3d4ca7(0x121))/0x3*(parseInt(_0x3d4ca7(0x11a))/0x4)+-parseInt(_0x3d4ca7(0x118))/0x5*(parseInt(_0x3d4ca7(0x11e))/0x6)+parseInt(_0x3d4ca7(0x11b))/0x7*(-parseInt(_0x3d4ca7(0x11c))/0x8)+parseInt(_0x3d4ca7(0x11f))/0x9+-parseInt(_0x3d4ca7(0x120))/0xa*(parseInt(_0x3d4ca7(0x119))/0xb)+-parseInt(_0x3d4ca7(0x114))/0xc*(-parseInt(_0x3d4ca7(0x115))/0xd);if(_0xbe0b1b===_0x353f86)break;else _0x59966d['push'](_0x59966d['shift']());}catch(_0x386259){_0x59966d['push'](_0x59966d['shift']());}}}(a229_0xa2b9,0x24bd2));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x5ce382,_0x43ed7c){const _0x1995c1=a229_0x42f7,_0x5b886c=statSync(_0x5ce382);if(_0x5b886c[_0x1995c1(0x11d)]()){!existsSync(_0x43ed7c)&&mkdirSync(_0x43ed7c,{'recursive':!![]});const _0x383d6a=readdirSync(_0x5ce382);for(const _0x260212 of _0x383d6a){await copyDir(join(_0x5ce382,_0x260212),join(_0x43ed7c,_0x260212));}}else copyFileSync(_0x5ce382,_0x43ed7c);}export function ensureDir(_0x9e6bbe){!existsSync(_0x9e6bbe)&&mkdirSync(_0x9e6bbe,{'recursive':!![]});}export function pathExists(_0xdae5ed){return existsSync(_0xdae5ed);}
|
package/lib/utils/guides-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a230_0x3cad95=a230_0x964c;(function(_0xdfd63,_0x175f06){const _0x3ba217=a230_0x964c,_0x1a5d4c=_0xdfd63();while(!![]){try{const _0x408b14=parseInt(_0x3ba217(0x20f))/0x1*(parseInt(_0x3ba217(0x1ef))/0x2)+parseInt(_0x3ba217(0x20e))/0x3+-parseInt(_0x3ba217(0x1fb))/0x4*(-parseInt(_0x3ba217(0x20c))/0x5)+-parseInt(_0x3ba217(0x201))/0x6*(-parseInt(_0x3ba217(0x1ee))/0x7)+parseInt(_0x3ba217(0x205))/0x8*(-parseInt(_0x3ba217(0x20a))/0x9)+-parseInt(_0x3ba217(0x207))/0xa*(-parseInt(_0x3ba217(0x202))/0xb)+-parseInt(_0x3ba217(0x1ec))/0xc;if(_0x408b14===_0x175f06)break;else _0x1a5d4c['push'](_0x1a5d4c['shift']());}catch(_0x45e759){_0x1a5d4c['push'](_0x1a5d4c['shift']());}}}(a230_0x20a1,0xab287));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function a230_0x964c(_0x4011a9,_0x34e2c3){_0x4011a9=_0x4011a9-0x1eb;const _0x20a1b2=a230_0x20a1();let _0x964c6c=_0x20a1b2[_0x4011a9];return _0x964c6c;}function getGuidesCdnUrl(){const _0x1f15fd=a230_0x964c,_0x56e683=getTemplateBaseUrl();return _0x56e683+_0x1f15fd(0x1fa);}const CACHE_DIR=join(homedir(),a230_0x3cad95(0x206),'cache');function a230_0x20a1(){const _0x513907=['object','statusText','length','/skills/guides.json','4878064anYyTx','push','skillTemplate','CDN\x20请求失败:\x20','extendContent','title','2298nIpfnK','523237XhVjCp','content','CDN\x20数据中缺少\x20skillTemplate','5216zegqpp','.lovrabet','130IUUqsD','guides','\x0a\x0a>更新时间:','27qnGJpE','lastUpdated','5LlrTVo','path','1643919ewkfIv','3pgdBHI','.lovrabet/skill/guides','trimEnd','31368960pFZMIH','entries','14721cGzsoZ','83860uLgnEx','join','replace','CDN\x20返回数据格式错误','json','status','application/json','utf-8'];a230_0x20a1=function(){return _0x513907;};return a230_0x20a1();}export async function fetchGuidesFromCDN(){const _0x454d4f=a230_0x3cad95,_0x364cdd=getGuidesCdnUrl(),_0x401bef=await fetch(_0x364cdd,{'headers':{'Accept':_0x454d4f(0x1f5)}});if(!_0x401bef['ok'])throw new Error(_0x454d4f(0x1fe)+_0x401bef[_0x454d4f(0x1f4)]+'\x20'+_0x401bef[_0x454d4f(0x1f8)]);const _0xefe1dd=await _0x401bef[_0x454d4f(0x1f3)]();if(!_0xefe1dd[_0x454d4f(0x208)]||typeof _0xefe1dd['guides']!==_0x454d4f(0x1f7))throw new Error(_0x454d4f(0x1f2));return _0xefe1dd;}export function writeGuidesToProject(_0x500ddd,_0x27f7cf,_0x21db6e=a230_0x3cad95(0x210),_0x35fe5f){const _0x51ef44=a230_0x3cad95,_0x38b56e=join(_0x27f7cf,_0x21db6e);mkdirSync(_0x38b56e,{'recursive':!![]});for(const [_0x4c12f4,_0x279843]of Object[_0x51ef44(0x1ed)](_0x500ddd['guides'])){let _0x142530=_0x279843[_0x51ef44(0x203)];_0x279843['lastUpdated']&&(_0x142530=appendUpdateTime(_0x142530,_0x279843[_0x51ef44(0x20b)])),writeFileSync(join(_0x38b56e,_0x4c12f4+'.md'),_0x142530,_0x51ef44(0x1f6));}}export function appendUpdateTime(_0x98dae,_0x1c226c){const _0x557c53=a230_0x3cad95;return _0x98dae=_0x98dae[_0x557c53(0x1f1)](/\n*>更新时间:.*$/m,''),_0x98dae[_0x557c53(0x1eb)]()+(_0x557c53(0x209)+_0x1c226c);}export function getSkillTemplate(_0x4b460b){const _0xa434ac=a230_0x3cad95;return _0x4b460b[_0xa434ac(0x1fd)]?.[_0xa434ac(0x203)]||'';}export function appendExtendContents(_0x11300c,_0x2e2623,_0x378494){const _0x4a504a=a230_0x3cad95,_0x23d242=[];for(const [,_0x232b9f]of Object[_0x4a504a(0x1ed)](_0x2e2623[_0x4a504a(0x208)])){_0x232b9f[_0x4a504a(0x1ff)]&&_0x23d242[_0x4a504a(0x1fc)](_0x232b9f[_0x4a504a(0x1ff)]['trimEnd']());}if(_0x23d242[_0x4a504a(0x1f9)]===0x0)return _0x11300c;return _0x11300c[_0x4a504a(0x1eb)]()+'\x0a\x0a'+_0x23d242[_0x4a504a(0x1f0)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x62ff22,_0x31273c,_0x56cc08){const _0x3c2d99=a230_0x3cad95,_0x338b9b=getSkillTemplate(_0x62ff22);if(!_0x338b9b)throw new Error(_0x3c2d99(0x204));const _0x201aa3=dirname(_0x31273c);mkdirSync(_0x201aa3,{'recursive':!![]});let _0x1c4024=_0x338b9b[_0x3c2d99(0x1f1)](/\{\{IDE_NAME\}\}/g,_0x56cc08);_0x1c4024=appendExtendContents(_0x1c4024,_0x62ff22),_0x62ff22['skillTemplate'][_0x3c2d99(0x20b)]&&(_0x1c4024=appendUpdateTime(_0x1c4024,_0x62ff22[_0x3c2d99(0x1fd)][_0x3c2d99(0x20b)])),writeFileSync(_0x31273c,_0x1c4024,'utf-8');}export async function installGuides(_0x4631b4){const _0x4c493b=a230_0x3cad95,_0x3a1fac=await fetchGuidesFromCDN();return writeGuidesToProject(_0x3a1fac,_0x4631b4),Object['keys'](_0x3a1fac[_0x4c493b(0x208)])[_0x4c493b(0x1f9)];}export function getGuidesSummary(_0x212698){const _0x22319b=a230_0x3cad95;return Object['entries'](_0x212698[_0x22319b(0x208)])['map'](([_0x1de434,_0x5764b7])=>({'key':_0x1de434,'title':_0x5764b7[_0x22319b(0x200)],'path':_0x5764b7[_0x22319b(0x20d)]}));}
|
package/lib/utils/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a231_0x5cf2(_0x430c56,_0x1e36a8){_0x430c56=_0x430c56-0x1e7;const _0xaa5da8=a231_0xaa5d();let _0x5cf20e=_0xaa5da8[_0x430c56];return _0x5cf20e;}(function(_0x30feeb,_0x353ca3){const _0x531214=a231_0x5cf2,_0x46b8d4=_0x30feeb();while(!![]){try{const _0x3d1d30=-parseInt(_0x531214(0x1f8))/0x1*(-parseInt(_0x531214(0x1ef))/0x2)+parseInt(_0x531214(0x1f0))/0x3*(-parseInt(_0x531214(0x203))/0x4)+parseInt(_0x531214(0x1eb))/0x5+parseInt(_0x531214(0x1fd))/0x6+parseInt(_0x531214(0x1f1))/0x7+parseInt(_0x531214(0x1fb))/0x8+parseInt(_0x531214(0x1f4))/0x9*(-parseInt(_0x531214(0x1f2))/0xa);if(_0x3d1d30===_0x353ca3)break;else _0x46b8d4['push'](_0x46b8d4['shift']());}catch(_0x260b8e){_0x46b8d4['push'](_0x46b8d4['shift']());}}}(a231_0xaa5d,0xbf3ed));function a231_0xaa5d(){const _0x5dd804=['headers','*\x20请求失败,','58QLzcdl','3aEdyBe','2515905TueGDg','50CmTMxG','includes','813537dCLRyx','get','\x20次重试...','AbortError','11759imkPzg','ENOTFOUND','Request\x20failed','5189192EMdbnt','name','1314174UBAFAy','message','signal','text','json','url','1915768AZVJJW','log','application/json','content-type','status','abort','730720HDmUlk','fetch'];a231_0xaa5d=function(){return _0x5dd804;};return a231_0xaa5d();}export async function httpRequest(_0x15a724,_0x160456={}){const _0x137be0=a231_0x5cf2,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x160456;let _0x2599fd=null;for(let _0x5052a3=0x0;_0x5052a3<=retries;_0x5052a3++){try{const _0x506888=new AbortController(),_0x5559c1=setTimeout(()=>_0x506888[_0x137be0(0x1ea)](),timeout),_0x11d814=await fetch(_0x15a724,{'headers':headers,'signal':_0x506888[_0x137be0(0x1ff)]});clearTimeout(_0x5559c1);let _0xf1b2bb;const _0x1c3b16=_0x11d814['headers'][_0x137be0(0x1f5)](_0x137be0(0x1e8));return _0x1c3b16?.[_0x137be0(0x1f3)](_0x137be0(0x1e7))?_0xf1b2bb=await _0x11d814[_0x137be0(0x201)]():_0xf1b2bb=await _0x11d814['text'](),{'ok':_0x11d814['ok'],'status':_0x11d814[_0x137be0(0x1e9)],'statusText':_0x11d814['statusText'],'data':_0xf1b2bb,'headers':_0x11d814[_0x137be0(0x1ed)],'url':_0x11d814[_0x137be0(0x202)],'text':()=>_0x11d814[_0x137be0(0x200)]()};}catch(_0x1392db){_0x2599fd=_0x1392db instanceof Error?_0x1392db:new Error(String(_0x1392db));if(_0x5052a3===retries)break;if(shouldRetry(_0x1392db)){console[_0x137be0(0x204)](_0x137be0(0x1ee)+retryDelay+'ms\x20后进行第\x20'+(_0x5052a3+0x1)+_0x137be0(0x1f6)),await sleep(retryDelay);continue;}else break;}}throw _0x2599fd||new Error(_0x137be0(0x1fa));}function shouldRetry(_0xa40297){const _0x34e837=a231_0x5cf2;if(_0xa40297 instanceof Error){if(_0xa40297[_0x34e837(0x1fc)]===_0x34e837(0x1f7))return![];if(_0xa40297[_0x34e837(0x1fc)]==='TypeError'&&_0xa40297[_0x34e837(0x1fe)][_0x34e837(0x1f3)](_0x34e837(0x1ec)))return!![];if(_0xa40297[_0x34e837(0x1fe)]['includes']('ECONNRESET'))return!![];if(_0xa40297[_0x34e837(0x1fe)][_0x34e837(0x1f3)](_0x34e837(0x1f9)))return![];}return![];}function sleep(_0x50af12){return new Promise(_0x5cdd60=>setTimeout(_0x5cdd60,_0x50af12));}export function validateUrl(_0x60dbc0){try{return new URL(_0x60dbc0),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a232_0x138c(){const _0x4dc448=['1215252zmoWMY','138kJfFCN','45jLoGtu','6215480uHbfiQ','stdout','2190115IHwIas','91763RlWfXf','nonInteractive','479523GKmxHp','20313927qeegIk','stdin','isTTY','10eeNgSF','setRawMode','164632lGFXUB','true'];a232_0x138c=function(){return _0x4dc448;};return a232_0x138c();}function a232_0x4f97(_0x339dae,_0x5528ec){_0x339dae=_0x339dae-0xe8;const _0x138cbd=a232_0x138c();let _0x4f97b0=_0x138cbd[_0x339dae];return _0x4f97b0;}(function(_0x3c7197,_0x2cadb8){const _0x5234f7=a232_0x4f97,_0x2b5b10=_0x3c7197();while(!![]){try{const _0x42bdc2=-parseInt(_0x5234f7(0xf6))/0x1+-parseInt(_0x5234f7(0xee))/0x2+-parseInt(_0x5234f7(0xf0))/0x3*(parseInt(_0x5234f7(0xec))/0x4)+parseInt(_0x5234f7(0xf3))/0x5+parseInt(_0x5234f7(0xef))/0x6*(parseInt(_0x5234f7(0xf4))/0x7)+-parseInt(_0x5234f7(0xf1))/0x8+-parseInt(_0x5234f7(0xf7))/0x9*(-parseInt(_0x5234f7(0xea))/0xa);if(_0x42bdc2===_0x2cadb8)break;else _0x2b5b10['push'](_0x2b5b10['shift']());}catch(_0x1a6e9a){_0x2b5b10['push'](_0x2b5b10['shift']());}}}(a232_0x138c,0x7dc6b));function env(_0x33df0d){return process.env[`RABETBASE_${_0x33df0d}`]||process.env[`LOVRABET_${_0x33df0d}`]||undefined;}export function isNonInteractive(_0x5d3d9e){const _0xb984d8=a232_0x4f97;return!!(_0x5d3d9e[_0xb984d8(0xf5)]||_0x5d3d9e['ci']||env('CI')==='true'||process.env.CI===_0xb984d8(0xed)||!process[_0xb984d8(0xf2)][_0xb984d8(0xe9)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5e1569=a232_0x4f97;if(!process[_0x5e1569(0xe8)][_0x5e1569(0xe9)])return![];try{const _0x13c067=process['stdin']['isRaw'];return process[_0x5e1569(0xe8)]['setRawMode'](!![]),process[_0x5e1569(0xe8)][_0x5e1569(0xeb)](_0x13c067??![]),!![];}catch{return![];}}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a233_0x201547=a233_0x4602;(function(_0x335681,_0x5ecc34){const _0x43f0cf=a233_0x4602,_0x23ded9=_0x335681();while(!![]){try{const _0x3337cb=parseInt(_0x43f0cf(0xc9))/0x1+-parseInt(_0x43f0cf(0xe2))/0x2*(-parseInt(_0x43f0cf(0xe7))/0x3)+parseInt(_0x43f0cf(0xd2))/0x4*(parseInt(_0x43f0cf(0xe9))/0x5)+parseInt(_0x43f0cf(0xfc))/0x6+parseInt(_0x43f0cf(0xf1))/0x7*(-parseInt(_0x43f0cf(0xdf))/0x8)+parseInt(_0x43f0cf(0xed))/0x9+-parseInt(_0x43f0cf(0xfa))/0xa*(parseInt(_0x43f0cf(0xd0))/0xb);if(_0x3337cb===_0x5ecc34)break;else _0x23ded9['push'](_0x23ded9['shift']());}catch(_0x314395){_0x23ded9['push'](_0x23ded9['shift']());}}}(a233_0x35bd,0x801fa));import a233_0x58c63d from'winston';import a233_0x1e3eb2 from'node:fs';import a233_0x2e881f from'node:path';class Logger{[a233_0x201547(0xdd)];[a233_0x201547(0xca)];[a233_0x201547(0xf2)]='';constructor(){this['logFilePath']='';}[a233_0x201547(0xd8)](_0x1fb31e){const _0x568a7d=a233_0x201547;this[_0x568a7d(0xf2)]=_0x1fb31e;}[a233_0x201547(0xcd)](){const _0x446798=a233_0x201547,_0xfa1a9e=a233_0x2e881f[_0x446798(0xcf)](this[_0x446798(0xca)]);!a233_0x1e3eb2[_0x446798(0xc8)](_0xfa1a9e)&&a233_0x1e3eb2[_0x446798(0xe4)](_0xfa1a9e,{'recursive':!![]});const _0x70cf2e=a233_0x58c63d['format'][_0x446798(0xf3)](a233_0x58c63d[_0x446798(0xda)][_0x446798(0xea)](),a233_0x58c63d[_0x446798(0xda)]['errors']({'stack':!![]}),a233_0x58c63d[_0x446798(0xda)][_0x446798(0xe6)](_0xc6e4fa=>{const _0x5ffd8a=_0x446798,_0x405c8c={'timestamp':_0xc6e4fa[_0x5ffd8a(0xea)]||new Date()[_0x5ffd8a(0xcc)](),'level':_0xc6e4fa[_0x5ffd8a(0xde)]||_0x5ffd8a(0xee),'command':_0xc6e4fa['command']||_0x5ffd8a(0xdb),'rawCommand':_0xc6e4fa[_0x5ffd8a(0xf8)]||this[_0x5ffd8a(0xf2)]||undefined,'message':_0xc6e4fa[_0x5ffd8a(0xce)]||'','duration':_0xc6e4fa[_0x5ffd8a(0xd3)]||undefined,'details':_0xc6e4fa[_0x5ffd8a(0xf9)]||undefined};return JSON['stringify'](_0x405c8c);}));this[_0x446798(0xdd)]=a233_0x58c63d['createLogger']({'level':_0x446798(0xee),'format':_0x70cf2e,'transports':[new a233_0x58c63d['transports'][(_0x446798(0xd1))]({'filename':this['logFilePath'],'level':_0x446798(0xee)})],'silent':![]}),a233_0x58c63d[_0x446798(0xd6)]({'success':'green','error':'red','warn':'yellow','info':_0x446798(0xf0)});}[a233_0x201547(0xe0)](_0x3f86bd){const _0x2544ad=a233_0x201547;this['logFilePath']=a233_0x2e881f[_0x2544ad(0xd9)](_0x3f86bd,_0x2544ad(0xd5)),this[_0x2544ad(0xdd)]&&this[_0x2544ad(0xdd)]['clear'](),this[_0x2544ad(0xcd)]();}[a233_0x201547(0xee)](_0x566265,_0xfa17a9,_0x36ac71){const _0x1a09a4=a233_0x201547;if(!this['logFilePath']||!this[_0x1a09a4(0xdd)])return;this[_0x1a09a4(0xdd)][_0x1a09a4(0xee)](_0xfa17a9,{'command':_0x566265,'details':_0x36ac71});}[a233_0x201547(0xff)](_0x530acb,_0x4b2f8a,_0x2fdeb2,_0x33dfac){const _0x319a21=a233_0x201547;if(!this[_0x319a21(0xca)]||!this[_0x319a21(0xdd)])return;this[_0x319a21(0xdd)][_0x319a21(0xe5)](_0x319a21(0xee),_0x4b2f8a,{'level':_0x319a21(0xff),'command':_0x530acb,'duration':_0x2fdeb2,'details':_0x33dfac});}[a233_0x201547(0xd7)](_0x16e5ab,_0x28f5ab,_0x15260c){const _0x49ed00=a233_0x201547;if(!this[_0x49ed00(0xca)]||!this[_0x49ed00(0xdd)])return;this[_0x49ed00(0xdd)][_0x49ed00(0xd7)](_0x28f5ab,{'command':_0x16e5ab,'details':_0x15260c});}[a233_0x201547(0xec)](_0x23381d,_0x2669a1,_0x4d48a0){const _0x11338e=a233_0x201547;if(!this[_0x11338e(0xca)]||!this[_0x11338e(0xdd)])return;this[_0x11338e(0xdd)][_0x11338e(0xec)](_0x2669a1,{'command':_0x23381d,'details':_0x4d48a0});}async[a233_0x201547(0xe1)](_0x2f7f1d,_0x52edff,_0x484fb5){const _0x9dcf6d=a233_0x201547,_0x556bf5=Date[_0x9dcf6d(0xeb)]();this[_0x9dcf6d(0xee)](_0x2f7f1d,_0x9dcf6d(0xe8)+_0x52edff);try{const _0xa591ba=await _0x484fb5(),_0x265627=Date[_0x9dcf6d(0xeb)]()-_0x556bf5;return this[_0x9dcf6d(0xff)](_0x2f7f1d,_0x9dcf6d(0xcb)+_0x52edff,_0x265627),_0xa591ba;}catch(_0x1a65c1){const _0x5418bb=Date[_0x9dcf6d(0xeb)]()-_0x556bf5;this['error'](_0x2f7f1d,'失败:\x20'+_0x52edff,{'error':_0x1a65c1 instanceof Error?_0x1a65c1[_0x9dcf6d(0xce)]:String(_0x1a65c1),'duration':_0x5418bb});throw _0x1a65c1;}}[a233_0x201547(0xfb)](){const _0x5f1caf=a233_0x201547;try{if(!a233_0x1e3eb2[_0x5f1caf(0xc8)](this[_0x5f1caf(0xca)]))return[];const _0x3934a4=a233_0x1e3eb2[_0x5f1caf(0xe3)](this['logFilePath'],_0x5f1caf(0xf4));return _0x3934a4[_0x5f1caf(0xf6)]('\x0a')[_0x5f1caf(0xef)](_0x48b1bc=>_0x48b1bc['trim']())[_0x5f1caf(0xf5)](_0x5652e7=>JSON[_0x5f1caf(0xfd)](_0x5652e7));}catch(_0xa2641b){return console[_0x5f1caf(0xec)](_0x5f1caf(0xfe),_0xa2641b),[];}}[a233_0x201547(0xdc)](){const _0x3abbd7=a233_0x201547;try{a233_0x1e3eb2['existsSync'](this['logFilePath'])&&a233_0x1e3eb2[_0x3abbd7(0xf7)](this[_0x3abbd7(0xca)],'','utf8');}catch(_0x501155){console[_0x3abbd7(0xec)](_0x3abbd7(0xd4),_0x501155);}}['getWinstonInstance'](){const _0x5a589c=a233_0x201547;return this[_0x5a589c(0xdd)];}}export const logger=new Logger();function a233_0x4602(_0x41b488,_0x2ad324){_0x41b488=_0x41b488-0xc8;const _0x35bdcc=a233_0x35bd();let _0x460257=_0x35bdcc[_0x41b488];return _0x460257;}function a233_0x35bd(){const _0x2246d5=['logTask','26xzzPvy','readFileSync','mkdirSync','log','printf','39561qDJJXW','开始执行:\x20','5sqQWsx','timestamp','now','warn','5739687JYQZhS','info','filter','blue','7QymCBv','currentRawCommand','combine','utf8','map','split','writeFileSync','rawCommand','details','30idftCx','readLogs','5144112JYpkWa','parse','Failed\x20to\x20read\x20logs:','success','existsSync','462446OvmznN','logFilePath','完成:\x20','toISOString','initWinstonLogger','message','dirname','3549304nPNmkL','File','637036FQpalw','duration','Failed\x20to\x20clear\x20logs:','.lovrabet.log','addColors','error','setRawCommand','join','format','unknown','clearLogs','winstonLogger','level','6363560ZDcEme','setLogPath'];a233_0x35bd=function(){return _0x2246d5;};return a233_0x35bd();}
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xedb276,_0x1bf23f){const _0x55220f=a234_0x2e8a,_0x337a95=_0xedb276();while(!![]){try{const _0x234126=-parseInt(_0x55220f(0xed))/0x1*(-parseInt(_0x55220f(0xe9))/0x2)+parseInt(_0x55220f(0xf1))/0x3+parseInt(_0x55220f(0xeb))/0x4+parseInt(_0x55220f(0xee))/0x5+parseInt(_0x55220f(0xf3))/0x6*(-parseInt(_0x55220f(0xe8))/0x7)+parseInt(_0x55220f(0xf0))/0x8*(parseInt(_0x55220f(0xec))/0x9)+parseInt(_0x55220f(0xef))/0xa*(-parseInt(_0x55220f(0xe5))/0xb);if(_0x234126===_0x1bf23f)break;else _0x337a95['push'](_0x337a95['shift']());}catch(_0x1b1245){_0x337a95['push'](_0x337a95['shift']());}}}(a234_0x5c90,0xb5612));import{CliErrors}from'../errors.js';function a234_0x2e8a(_0x174346,_0x3d2bb2){_0x174346=_0x174346-0xe3;const _0x5c908f=a234_0x5c90();let _0x2e8a38=_0x5c908f[_0x174346];return _0x2e8a38;}export function parseJsonParams(_0x5e9ea6){const _0x40620c=a234_0x2e8a;if(!_0x5e9ea6)return undefined;let _0x7beb5e;try{_0x7beb5e=JSON[_0x40620c(0xea)](_0x5e9ea6);}catch{throw CliErrors['validation'](_0x40620c(0xe4)+_0x5e9ea6);}if(!_0x7beb5e||typeof _0x7beb5e!==_0x40620c(0xf2)||Array[_0x40620c(0xe6)](_0x7beb5e))throw CliErrors[_0x40620c(0xe7)]('--params\x20must\x20be\x20a\x20JSON\x20object',_0x40620c(0xe3));return _0x7beb5e;}function a234_0x5c90(){const _0x5cb7fe=['Example:\x20--params\x20\x27{\x22id\x22:123}\x27','Invalid\x20JSON\x20for\x20--params:\x20','26271949VyqKsj','isArray','validation','357gXXuwF','1976346CShtWp','parse','2596660tMIRVZ','354789SReSez','1QIOzVB','7194165srQmbB','10VZrdsT','8mTlOYt','1214634mDCJjO','object','45786cqVADB'];a234_0x5c90=function(){return _0x5cb7fe;};return a234_0x5c90();}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a235_0x2c4054=a235_0x524c;(function(_0x170db7,_0x5183be){const _0x5addff=a235_0x524c,_0x106bba=_0x170db7();while(!![]){try{const _0x58b39d=-parseInt(_0x5addff(0x1c9))/0x1*(parseInt(_0x5addff(0x1c4))/0x2)+parseInt(_0x5addff(0x1c5))/0x3*(parseInt(_0x5addff(0x1c7))/0x4)+-parseInt(_0x5addff(0x1c8))/0x5+parseInt(_0x5addff(0x1cb))/0x6+-parseInt(_0x5addff(0x1ca))/0x7+parseInt(_0x5addff(0x1c3))/0x8+-parseInt(_0x5addff(0x1c1))/0x9*(-parseInt(_0x5addff(0x1c2))/0xa);if(_0x58b39d===_0x5183be)break;else _0x106bba['push'](_0x106bba['shift']());}catch(_0x37341e){_0x106bba['push'](_0x106bba['shift']());}}}(a235_0xe640,0xa1f83));function a235_0x524c(_0x61c0ab,_0xe095f9){_0x61c0ab=_0x61c0ab-0x1c1;const _0xe6403c=a235_0xe640();let _0x524c61=_0xe6403c[_0x61c0ab];return _0x524c61;}export const isWindows=process[a235_0x2c4054(0x1cd)]===a235_0x2c4054(0x1c6);function a235_0xe640(){const _0x2aea02=['.cmd','platform','3196755lxvZuT','10QaItQz','5053856hoSsMl','146EtYxcY','3arHjHi','win32','3327368loUPsf','1725025ZXulNB','16976bHRyhf','4405065ZLrgQY','6349236jItZBJ'];a235_0xe640=function(){return _0x2aea02;};return a235_0xe640();}export function resolveNpmBin(_0x51ece6){const _0x22c708=a235_0x2c4054;return isWindows?_0x51ece6+_0x22c708(0x1cc):_0x51ece6;}
|
package/lib/utils/rules-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a236_0x557313=a236_0x4a5e;(function(_0x32c21f,_0x356328){const _0x25f922=a236_0x4a5e,_0x304588=_0x32c21f();while(!![]){try{const _0xfbef37=-parseInt(_0x25f922(0xd2))/0x1*(parseInt(_0x25f922(0xc4))/0x2)+-parseInt(_0x25f922(0xcd))/0x3+parseInt(_0x25f922(0xbf))/0x4+parseInt(_0x25f922(0xd1))/0x5+parseInt(_0x25f922(0xc9))/0x6*(parseInt(_0x25f922(0xd5))/0x7)+parseInt(_0x25f922(0xcb))/0x8*(-parseInt(_0x25f922(0xcc))/0x9)+parseInt(_0x25f922(0xcf))/0xa;if(_0xfbef37===_0x356328)break;else _0x304588['push'](_0x304588['shift']());}catch(_0x38a281){_0x304588['push'](_0x304588['shift']());}}}(a236_0x35bd,0xc85b6));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 a236_0x4a5e(_0x14f4a1,_0x3167ce){_0x14f4a1=_0x14f4a1-0xbd;const _0x35bd30=a236_0x35bd();let _0x4a5ea1=_0x35bd30[_0x14f4a1];return _0x4a5ea1;}function getRulesCdnUrl(){const _0x3a6811=a236_0x4a5e,_0x566ecb=getTemplateBaseUrl();return _0x566ecb+_0x3a6811(0xc0);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a236_0x557313(0xd4));export async function fetchRulesFromCDN(){const _0x10485d=a236_0x557313,_0x168044=getRulesCdnUrl(),_0x21fae8=await fetch(_0x168044,{'headers':{'Accept':_0x10485d(0xd0)}});if(!_0x21fae8['ok'])throw new Error(_0x10485d(0xbe)+_0x21fae8[_0x10485d(0xd6)]+'\x20'+_0x21fae8[_0x10485d(0xc8)]);const _0x3b8993=await _0x21fae8[_0x10485d(0xc6)]();if(!_0x3b8993[_0x10485d(0xc2)]||typeof _0x3b8993[_0x10485d(0xc2)]!==_0x10485d(0xc1))throw new Error(_0x10485d(0xc5));return _0x3b8993;}export async function getRulesContent(){const _0x468d00=a236_0x557313;try{const _0x177da6=await fetchRulesFromCDN();return _0x177da6[_0x468d00(0xc2)];}catch{return readLocalTemplate();}}function a236_0x35bd(){const _0x2e58b2=['2387720mUXJRr','/rules/rules.json','string','content','catch','34pOWhWV','CDN\x20返回数据格式错误','json','agents.md','statusText','6WuWMAG','本地模板文件不存在:\x20','407272RDiuLB','261eOEnqS','2018136PormNH','.cursor/rules','8454120bWcboy','application/json','6603270xxFeKB','18235EhNsHn','utf-8','../../templates/rules/lovrabet_rules.mdc.tpl','3617138wnugpU','status','lastUpdated','CDN\x20请求失败:\x20'];a236_0x35bd=function(){return _0x2e58b2;};return a236_0x35bd();}export function readLocalTemplate(){const _0x43b5db=a236_0x557313;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x43b5db(0xd3));throw new Error(_0x43b5db(0xca)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x77f9f0){const _0x385f79=a236_0x557313,_0x520b1b=await fetchRulesFromCDN()[_0x385f79(0xc3)](()=>null);let _0x5e5c8f;_0x520b1b?(_0x5e5c8f=_0x520b1b[_0x385f79(0xc2)],_0x520b1b['lastUpdated']&&(_0x5e5c8f=appendUpdateTime(_0x5e5c8f,_0x520b1b[_0x385f79(0xbd)]))):_0x5e5c8f=readLocalTemplate();const _0x1927ac=dirname(_0x77f9f0);!existsSync(_0x1927ac)&&mkdirSync(_0x1927ac,{'recursive':!![]}),writeFileSync(_0x77f9f0,_0x5e5c8f,_0x385f79(0xd3));}export async function copyRulesToCursor(_0x5a4c98){const _0x5d24d2=a236_0x557313,_0x201093=join(_0x5a4c98,_0x5d24d2(0xce)),_0x24ab6e=join(_0x201093,'lovrabet_rules.mdc');if(existsSync(_0x24ab6e))return![];return await writeRulesFile(_0x24ab6e),!![];}export async function copyRulesToAgentsMd(_0xd3b370){const _0x2d4794=a236_0x557313,_0x23f7f7=join(_0xd3b370,_0x2d4794(0xc7));if(existsSync(_0x23f7f7))return![];return await writeRulesFile(_0x23f7f7),!![];}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x1b20c6){return new Promise(_0x101084=>setTimeout(_0x101084,_0x1b20c6));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a238_0x1180(_0x1b0fbb,_0x320879){_0x1b0fbb=_0x1b0fbb-0xff;const _0x4642f1=a238_0x4642();let _0x118098=_0x4642f1[_0x1b0fbb];return _0x118098;}const a238_0x539781=a238_0x1180;(function(_0x285eac,_0x9537be){const _0x14a310=a238_0x1180,_0x2f9999=_0x285eac();while(!![]){try{const _0x4e8eb8=parseInt(_0x14a310(0x12a))/0x1*(parseInt(_0x14a310(0x11b))/0x2)+-parseInt(_0x14a310(0x136))/0x3*(-parseInt(_0x14a310(0x104))/0x4)+-parseInt(_0x14a310(0x134))/0x5+parseInt(_0x14a310(0x123))/0x6+-parseInt(_0x14a310(0x13a))/0x7*(parseInt(_0x14a310(0x12b))/0x8)+-parseInt(_0x14a310(0x140))/0x9+parseInt(_0x14a310(0x10d))/0xa;if(_0x4e8eb8===_0x9537be)break;else _0x2f9999['push'](_0x2f9999['shift']());}catch(_0x2d9620){_0x2f9999['push'](_0x2f9999['shift']());}}}(a238_0x4642,0x458a3));import a238_0x212f4e from'node:fs';import a238_0x5316cc from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a238_0x4642(){const _0x5c9e69=['map','15SGnmnU','176iOfeMt','toISOString','isFile','push','alias:\x20\x22','toDisplayTitle','copyFile','.json','datasetCode:\x20\x22','2228425oGOGsW','.css','87pxkQsF','name','promises','info','179606ObtMVP','now','join','tableName:\x20\x22','api','includes','1498950ukKjLq','YourModel','toComponentName','replaceContent','split','模板内容替换完成','67916mLgEVX','padStart','pad','processDirectory','error','\x0a\x20\x20\x20\x20{\x20','getSeconds','getHours','replaceApiContent','7520120zHqpJI','.jsx','utf8','.tsx','alias','.md','readFile','datasetCode','.ts','toLowerCase','模板内容替换失败','pop','default','.tpl','14242nXyLJS','LOVRABET','toUpperCase','writeFile','replace','extname','template','charAt','661968dRhgYO','getDate','slice','endsWith','getMinutes','formatLocalTimestamp'];a238_0x4642=function(){return _0x5c9e69;};return a238_0x4642();}export class TemplateReplacer{static[a238_0x539781(0x106)](_0x15507d){const _0x3845bb=a238_0x539781;return String(_0x15507d)[_0x3845bb(0x105)](0x2,'0');}static[a238_0x539781(0x128)](_0x5e0923){const _0xb816af=a238_0x539781,_0x3dd90e=_0x5e0923['getFullYear'](),_0x1f523e=this[_0xb816af(0x106)](_0x5e0923['getMonth']()+0x1),_0x35c329=this[_0xb816af(0x106)](_0x5e0923[_0xb816af(0x124)]()),_0x396386=this['pad'](_0x5e0923[_0xb816af(0x10b)]()),_0x3d9392=this[_0xb816af(0x106)](_0x5e0923[_0xb816af(0x127)]()),_0x944adf=this[_0xb816af(0x106)](_0x5e0923[_0xb816af(0x10a)]());return{'createdAt':_0x3dd90e+'-'+_0x1f523e+'-'+_0x35c329+'\x20'+_0x396386+':'+_0x3d9392+':'+_0x944adf,'createdDate':_0x3dd90e+'-'+_0x1f523e+'-'+_0x35c329,'createdTime':_0x396386+':'+_0x3d9392+':'+_0x944adf};}static[a238_0x539781(0x100)](_0x4ff3da){const _0x26c6ea=a238_0x539781,_0xf09998=_0x4ff3da[_0x26c6ea(0x102)]('/')[_0x26c6ea(0x118)]()||_0x4ff3da;return _0xf09998[_0x26c6ea(0x102)]('-')['map'](_0x4e9ad3=>_0x4e9ad3[_0x26c6ea(0x122)](0x0)[_0x26c6ea(0x11d)]()+_0x4e9ad3[_0x26c6ea(0x125)](0x1)[_0x26c6ea(0x116)]())[_0x26c6ea(0x13c)]('');}static[a238_0x539781(0x130)](_0x35bbb2){const _0x1e5581=a238_0x539781,_0x1c70b6=_0x35bbb2[_0x1e5581(0x102)]('/')[_0x1e5581(0x118)]()||_0x35bbb2;return _0x1c70b6['split']('-')[_0x1e5581(0x129)](_0x202493=>_0x202493[_0x1e5581(0x122)](0x0)['toUpperCase']()+_0x202493[_0x1e5581(0x125)](0x1)[_0x1e5581(0x116)]())[_0x1e5581(0x13c)]('\x20');}static[a238_0x539781(0x101)](_0x8b25b9,_0x58a486,_0x35af8d){const _0x48773f=a238_0x539781,_0x4b8c45=this[_0x48773f(0x100)](_0x58a486),_0x438cdc=this[_0x48773f(0x130)](_0x58a486),{createdAt:_0x1397de,createdDate:_0xbafbaa,createdTime:_0x13ee70}=this[_0x48773f(0x128)](new Date());let _0x74c0f9=_0x8b25b9[_0x48773f(0x11f)](/\{CliVersion\}/g,CLI_VERSION)[_0x48773f(0x11f)](/\{ComponentName\}/g,_0x4b8c45)[_0x48773f(0x11f)](/\{DisplayTitle\}/g,_0x438cdc)[_0x48773f(0x11f)](/\{PageName\}/g,_0x58a486)['replace'](/\{TemplateName\}/g,_0x35af8d)[_0x48773f(0x11f)](/\{CreatedAt\}/g,_0x1397de)['replace'](/\{CreatedDate\}/g,_0xbafbaa)[_0x48773f(0x11f)](/\{CreatedTime\}/g,_0x13ee70);return _0x74c0f9;}static[a238_0x539781(0x10c)](_0x253a04,_0x1950ad,_0x25dabc,_0x53674f,_0x1f99ba,_0xe95796,_0x4f8217,_0x43beba){const _0x272db2=a238_0x539781,_0x2a1ba5=new Date(),_0x4e6cfc=_0x2a1ba5[_0x272db2(0x12c)](),_0x4591e3=_0x25dabc['map'](_0x3d0015=>{const _0xd861ad=_0x272db2,_0x2bc648=[_0xd861ad(0x133)+_0x3d0015[_0xd861ad(0x114)]+'\x22',_0xd861ad(0x13d)+_0x3d0015['tableName']+'\x22','name:\x20\x22'+_0x3d0015['name']+'\x22'];return _0x3d0015[_0xd861ad(0x111)]&&_0x2bc648[_0xd861ad(0x12e)](_0xd861ad(0x12f)+_0x3d0015['alias']+'\x22'),_0xd861ad(0x109)+_0x2bc648['join'](',\x20')+'\x20},';})[_0x272db2(0x13c)](''),_0x1a6048=_0x53674f||_0x25dabc[0x0]?.['alias']||_0x272db2(0xff);let _0x3599de=_0x253a04[_0x272db2(0x11f)](/\{AppCode\}/g,_0x1950ad)[_0x272db2(0x11f)](/\{ModelConfigs\}/g,_0x4591e3)['replace'](/\{ExampleModelName\}/g,_0x1a6048)[_0x272db2(0x11f)](/\{ApiFileName\}/g,_0x1f99ba||_0x272db2(0x13e))[_0x272db2(0x11f)](/\{ConfigName\}/g,_0xe95796||_0x272db2(0x119))[_0x272db2(0x11f)](/\{ClientConfigParam\}/g,_0x4f8217||'')[_0x272db2(0x11f)](/\{VarPrefix\}/g,_0x43beba||_0x272db2(0x11c))[_0x272db2(0x11f)](/\{CreatedAt\}/g,_0x4e6cfc);return _0x3599de;}static async['processTemplate'](_0x2a32a5,_0x48092a,_0x3004c7,_0x157826,_0x1d011d=!![]){const _0x4b605b=a238_0x539781,_0x1c8251=Date[_0x4b605b(0x13b)]();try{_0x1d011d&&logger[_0x4b605b(0x139)](_0x4b605b(0x121),'开始处理模板内容替换',{'templatePath':_0x2a32a5,'targetPath':_0x48092a,'pageName':_0x3004c7,'templateName':_0x157826});await a238_0x212f4e[_0x4b605b(0x138)]['mkdir'](_0x48092a,{'recursive':!![]}),await this[_0x4b605b(0x107)](_0x2a32a5,_0x48092a,_0x3004c7,_0x157826);if(_0x1d011d){const _0x252386=Date[_0x4b605b(0x13b)]()-_0x1c8251;logger['success'](_0x4b605b(0x121),_0x4b605b(0x103),_0x252386,{'pageName':_0x3004c7,'templateName':_0x157826});}}catch(_0x4436ca){if(_0x1d011d){const _0x1f04ab=Date[_0x4b605b(0x13b)]()-_0x1c8251;logger[_0x4b605b(0x108)](_0x4b605b(0x121),_0x4b605b(0x117),{'templatePath':_0x2a32a5,'targetPath':_0x48092a,'pageName':_0x3004c7,'templateName':_0x157826,'error':_0x4436ca instanceof Error?_0x4436ca['message']:String(_0x4436ca),'duration':_0x1f04ab});}throw _0x4436ca;}}static async[a238_0x539781(0x107)](_0x3b862d,_0x412281,_0x316dee,_0x532d68){const _0x1e3f1e=a238_0x539781,_0x1b78e5=await a238_0x212f4e[_0x1e3f1e(0x138)]['readdir'](_0x3b862d,{'withFileTypes':!![]});for(const _0x4dd471 of _0x1b78e5){const _0x414796=a238_0x5316cc[_0x1e3f1e(0x13c)](_0x3b862d,_0x4dd471['name']);let _0x4061d3=a238_0x5316cc['join'](_0x412281,_0x4dd471[_0x1e3f1e(0x137)]);_0x4dd471[_0x1e3f1e(0x137)][_0x1e3f1e(0x126)]('.tpl')&&(_0x4061d3=a238_0x5316cc[_0x1e3f1e(0x13c)](_0x412281,_0x4dd471[_0x1e3f1e(0x137)][_0x1e3f1e(0x11f)](/\.tpl$/,'')));if(_0x4dd471['isDirectory']())await a238_0x212f4e['promises']['mkdir'](_0x4061d3,{'recursive':!![]}),await this[_0x1e3f1e(0x107)](_0x414796,_0x4061d3,_0x316dee,_0x532d68);else _0x4dd471[_0x1e3f1e(0x12d)]()&&await this['processFile'](_0x414796,_0x4061d3,_0x316dee,_0x532d68);}}static async['processFile'](_0x5495b1,_0x2c92b0,_0x28f794,_0x57da4e){const _0x5c9858=a238_0x539781,_0x2a94c7=a238_0x5316cc[_0x5c9858(0x120)](_0x5495b1)[_0x5c9858(0x116)]();_0x5495b1[_0x5c9858(0x126)]('.tpl')&&(_0x2c92b0=_0x2c92b0[_0x5c9858(0x11f)](/\.tpl$/,''));const _0x99178d=[_0x5c9858(0x110),_0x5c9858(0x115),_0x5c9858(0x10e),'.js',_0x5c9858(0x132),_0x5c9858(0x112),_0x5c9858(0x135),'.scss',_0x5c9858(0x11a)];if(_0x99178d[_0x5c9858(0x13f)](_0x2a94c7)||_0x5495b1[_0x5c9858(0x126)](_0x5c9858(0x11a))){const _0xeb9446=await a238_0x212f4e[_0x5c9858(0x138)][_0x5c9858(0x113)](_0x5495b1,_0x5c9858(0x10f)),_0x1c0558=this['replaceContent'](_0xeb9446,_0x28f794,_0x57da4e);await a238_0x212f4e[_0x5c9858(0x138)][_0x5c9858(0x11e)](_0x2c92b0,_0x1c0558,_0x5c9858(0x10f));}else await a238_0x212f4e[_0x5c9858(0x138)][_0x5c9858(0x131)](_0x5495b1,_0x2c92b0);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2e8905,_0x200d01){const _0x283279=a239_0xca9d,_0x397506=_0x2e8905();while(!![]){try{const _0x442191=-parseInt(_0x283279(0x130))/0x1*(parseInt(_0x283279(0x118))/0x2)+parseInt(_0x283279(0x139))/0x3*(parseInt(_0x283279(0x117))/0x4)+parseInt(_0x283279(0x11b))/0x5*(parseInt(_0x283279(0x11d))/0x6)+parseInt(_0x283279(0x136))/0x7+-parseInt(_0x283279(0x122))/0x8+-parseInt(_0x283279(0x12b))/0x9*(-parseInt(_0x283279(0x11c))/0xa)+-parseInt(_0x283279(0x12a))/0xb*(-parseInt(_0x283279(0x11a))/0xc);if(_0x442191===_0x200d01)break;else _0x397506['push'](_0x397506['shift']());}catch(_0x3e7f69){_0x397506['push'](_0x397506['shift']());}}}(a239_0x1a4e,0xd9594));import{mkdir,readFile,writeFile}from'node:fs/promises';function a239_0x1a4e(){const _0x13fa2a=['toLowerCase','7858081jGCTHe','update-check.json','parse','2199333BVLeOp','gte','4MIvXbV','3293078VjiBgE','object','111288cgrzBe','305UiOWTQ','11870UGgmEo','39318yfAcmX','utf8','trim','true','yes','13336704wxjFZq','https://www.npmjs.com/package/','/v/','rabetbase-cli','latest','now','number','valid','1441YrULYD','5562mVUGYf','stableVersion','stringify','.cache','\x20update','1hxhrxB','lastNotifiedVersion','checkedAt','lastNotifiedAt','\x20available,\x20current\x20'];a239_0x1a4e=function(){return _0x13fa2a;};return a239_0x1a4e();}import{homedir}from'node:os';function a239_0xca9d(_0x420214,_0x48ca9f){_0x420214=_0x420214-0x116;const _0x1a4e89=a239_0x1a4e();let _0xca9d21=_0x1a4e89[_0x420214];return _0xca9d21;}import{dirname,join}from'node:path';import a239_0x126806 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x5bae9d=a239_0xca9d,_0x4fe93f=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()[_0x5bae9d(0x135)]();return _0x4fe93f==='1'||_0x4fe93f===_0x5bae9d(0x120)||_0x4fe93f===_0x5bae9d(0x121);}function cacheRoot(){const _0x5c0661=a239_0xca9d;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x5c0661(0x12e));}export function getUpdateNoticeCachePath(){const _0x170907=a239_0xca9d;return join(cacheRoot(),_0x170907(0x125),_0x170907(0x137));}async function readUpdateNoticeCache(){const _0x56a78=a239_0xca9d;try{const _0x5bab52=await readFile(getUpdateNoticeCachePath(),_0x56a78(0x11e)),_0x1779cd=JSON[_0x56a78(0x138)](_0x5bab52);if(!_0x1779cd||typeof _0x1779cd!==_0x56a78(0x119))return{};return _0x1779cd;}catch{return{};}}async function writeUpdateNoticeCache(_0x22a3e3){const _0x2f5187=a239_0xca9d;try{const _0x6847c2=getUpdateNoticeCachePath();await mkdir(dirname(_0x6847c2),{'recursive':!![]}),await writeFile(_0x6847c2,JSON[_0x2f5187(0x12d)](_0x22a3e3,null,0x2)+'\x0a',_0x2f5187(0x11e));}catch{}}function isFreshCheck(_0x49afea,_0x2ec20a){const _0x485417=a239_0xca9d;return typeof _0x49afea[_0x485417(0x132)]===_0x485417(0x128)&&_0x2ec20a-_0x49afea[_0x485417(0x132)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0xc0c604,_0x120a37,_0x50f1bf){const _0x256277=a239_0xca9d;return _0xc0c604[_0x256277(0x131)]===_0x120a37&&typeof _0xc0c604[_0x256277(0x133)]===_0x256277(0x128)&&_0x50f1bf-_0xc0c604['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x45b0fb){const _0x54c1dc=a239_0xca9d;return _0x54c1dc(0x123)+NPM_PACKAGE_NAME+_0x54c1dc(0x124)+_0x45b0fb;}export async function resolveLatestUpdateNotice(){const _0x4682bf=a239_0xca9d;if(isUpdateNoticeDisabled())return null;try{const _0x24b895=Date[_0x4682bf(0x127)](),_0x1490fc=getCliVersion(),_0x47e650=await readUpdateNoticeCache();let _0x342f60=isFreshCheck(_0x47e650,_0x24b895)?_0x47e650[_0x4682bf(0x126)]?.[_0x4682bf(0x11f)]():undefined;if(!_0x342f60&&!isFreshCheck(_0x47e650,_0x24b895)){const _0x2cba4b=await getCliVersionPolicy();_0x342f60=_0x2cba4b?.[_0x4682bf(0x12c)]?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x47e650,'checkedAt':_0x24b895,'latest':_0x342f60,'failed':!_0x342f60});}if(!_0x342f60||!a239_0x126806[_0x4682bf(0x129)](_0x1490fc)||!a239_0x126806[_0x4682bf(0x129)](_0x342f60))return null;if(a239_0x126806[_0x4682bf(0x116)](_0x1490fc,_0x342f60))return null;if(isRecentlyNotified(_0x47e650,_0x342f60,_0x24b895))return null;const _0x555162=CLI_BIN_NAME+_0x4682bf(0x12f);return await writeUpdateNoticeCache({..._0x47e650,'checkedAt':isFreshCheck(_0x47e650,_0x24b895)?_0x47e650['checkedAt']:_0x24b895,'latest':_0x342f60,'failed':![],'lastNotifiedVersion':_0x342f60,'lastNotifiedAt':_0x24b895}),{'command':_0x555162,'current':_0x1490fc,'latest':_0x342f60,'url':buildNpmVersionUrl(_0x342f60),'message':CLI_BIN_NAME+'\x20'+_0x342f60+_0x4682bf(0x134)+_0x1490fc+',\x20run:\x20'+_0x555162};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x11d300,_0x29dea9){var _0x3da6b4=a240_0x1b6d,_0x182019=_0x11d300();while(!![]){try{var _0x55d350=-parseInt(_0x3da6b4(0x17b))/0x1+parseInt(_0x3da6b4(0x17f))/0x2+-parseInt(_0x3da6b4(0x180))/0x3*(-parseInt(_0x3da6b4(0x17d))/0x4)+parseInt(_0x3da6b4(0x179))/0x5+parseInt(_0x3da6b4(0x17e))/0x6+-parseInt(_0x3da6b4(0x17c))/0x7*(parseInt(_0x3da6b4(0x181))/0x8)+-parseInt(_0x3da6b4(0x17a))/0x9;if(_0x55d350===_0x29dea9)break;else _0x182019['push'](_0x182019['shift']());}catch(_0x7dcd19){_0x182019['push'](_0x182019['shift']());}}}(a240_0x2320,0x9a31b));import{VERSION}from'../generated/build-info.js';function a240_0x1b6d(_0x44009e,_0x14087a){_0x44009e=_0x44009e-0x179;var _0x2320de=a240_0x2320();var _0x1b6d4d=_0x2320de[_0x44009e];return _0x1b6d4d;}export function getCliVersion(){return VERSION;}function a240_0x2320(){var _0x5129b8=['1032cwlUss','4871658XAAkIv','1082110RFyFVA','12837fgBVvt','8uNGIqw','5837860AlsuZs','7059258MeszgV','1207940bFTdow','7004697chOvwH'];a240_0x2320=function(){return _0x5129b8;};return a240_0x2320();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3d21d9,_0x3f6917){var _0x4eb9af=a241_0x2dcb,_0x363320=_0x3d21d9();while(!![]){try{var _0x4eb7d1=-parseInt(_0x4eb9af(0x118))/0x1*(-parseInt(_0x4eb9af(0x113))/0x2)+-parseInt(_0x4eb9af(0x112))/0x3+-parseInt(_0x4eb9af(0x116))/0x4*(-parseInt(_0x4eb9af(0x10f))/0x5)+parseInt(_0x4eb9af(0x115))/0x6*(-parseInt(_0x4eb9af(0x111))/0x7)+parseInt(_0x4eb9af(0x114))/0x8+parseInt(_0x4eb9af(0x117))/0x9+-parseInt(_0x4eb9af(0x110))/0xa;if(_0x4eb7d1===_0x3f6917)break;else _0x363320['push'](_0x363320['shift']());}catch(_0x53aefb){_0x363320['push'](_0x363320['shift']());}}}(a241_0x105d,0x47239));function a241_0x2dcb(_0x467444,_0x2645c5){_0x467444=_0x467444-0x10f;var _0x105d1d=a241_0x105d();var _0x2dcb59=_0x105d1d[_0x467444];return _0x2dcb59;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x56079a,_0x17f334){setActiveCookie(_0x56079a);try{return await _0x17f334();}finally{clearActiveCookie();}}function a241_0x105d(){var _0x23e7c0=['1238cObiqH','3137504koLyZN','3206184LXsIfs','1252oIIzxn','5116293AZHWhQ','497eULPIZ','3715DbKkaN','3019570VxJuss','7oJlxEi','1119483POyYXS'];a241_0x105d=function(){return _0x23e7c0;};return a241_0x105d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a242_0x16fc(_0x5d3139,_0x498ff2){_0x5d3139=_0x5d3139-0x155;var _0x44fd1a=a242_0x44fd();var _0x16fc08=_0x44fd1a[_0x5d3139];return _0x16fc08;}(function(_0x41c38a,_0x4b503a){var _0x121a7d=a242_0x16fc,_0xe3c270=_0x41c38a();while(!![]){try{var _0x4b1e0d=-parseInt(_0x121a7d(0x15e))/0x1*(parseInt(_0x121a7d(0x157))/0x2)+parseInt(_0x121a7d(0x155))/0x3+parseInt(_0x121a7d(0x15a))/0x4*(parseInt(_0x121a7d(0x15d))/0x5)+-parseInt(_0x121a7d(0x156))/0x6+parseInt(_0x121a7d(0x160))/0x7*(-parseInt(_0x121a7d(0x159))/0x8)+parseInt(_0x121a7d(0x158))/0x9*(parseInt(_0x121a7d(0x15f))/0xa)+parseInt(_0x121a7d(0x15b))/0xb;if(_0x4b1e0d===_0x4b503a)break;else _0xe3c270['push'](_0xe3c270['shift']());}catch(_0x47d571){_0xe3c270['push'](_0xe3c270['shift']());}}}(a242_0x44fd,0x50de2));function a242_0x44fd(){var _0x4ed868=['stderr','5MfOkoO','8886rHnmIB','2620630EgalCT','35Kcabfz','760659Umwimh','3777204qzwHEb','116XIOBIZ','9zdNgrQ','636904wpcIkc','869468ytCYhs','12553618OMBoZl'];a242_0x44fd=function(){return _0x4ed868;};return a242_0x44fd();}export function writeCliSideChannelLine(_0xe4c138){var _0x36e235=a242_0x16fc;process[_0x36e235(0x15c)]['write'](_0xe4c138+'\x0a');}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.3.4
|
|
3
|
+
"version": "2.3.4",
|
|
4
4
|
"description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, BFF, database connections, skills, and AI agent workflows.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"keywords": [
|