@lovrabet/rabetbase-cli 2.3.6 → 2.3.7-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/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/local-file.js +1 -0
- 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/file/index.js +1 -0
- 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 a230_0x5419(_0x923a55,_0x51e30e){_0x923a55=_0x923a55-0xc9;const _0x359fd9=a230_0x359f();let _0x5419c2=_0x359fd9[_0x923a55];return _0x5419c2;}(function(_0x574956,_0x50e877){const _0x2f192b=a230_0x5419,_0x23c2bb=_0x574956();while(!![]){try{const _0x1fc5c3=parseInt(_0x2f192b(0xd2))/0x1+parseInt(_0x2f192b(0xd4))/0x2+parseInt(_0x2f192b(0xc9))/0x3*(parseInt(_0x2f192b(0xd7))/0x4)+parseInt(_0x2f192b(0xce))/0x5*(-parseInt(_0x2f192b(0xcf))/0x6)+parseInt(_0x2f192b(0xd5))/0x7+parseInt(_0x2f192b(0xcc))/0x8*(parseInt(_0x2f192b(0xd6))/0x9)+-parseInt(_0x2f192b(0xd1))/0xa;if(_0x1fc5c3===_0x50e877)break;else _0x23c2bb['push'](_0x23c2bb['shift']());}catch(_0x2e3bdd){_0x23c2bb['push'](_0x23c2bb['shift']());}}}(a230_0x359f,0xd03ed));function a230_0x359f(){const _0x264602=['string','43410770XsSeaT','1400966UOwMAO','number','1625258VdyVmJ','8969443fGTnZW','6696qNjNEz','565064RTvlWr','18QDnXds','isFinite','object','16352NvWjUD','trim','5mGmwqw','4015356fJLLIw'];a230_0x359f=function(){return _0x264602;};return a230_0x359f();}function toFiniteNumber(_0x1b7fdf){const _0x2b3a5b=a230_0x5419;if(typeof _0x1b7fdf===_0x2b3a5b(0xd3)&&Number['isFinite'](_0x1b7fdf))return _0x1b7fdf;if(typeof _0x1b7fdf===_0x2b3a5b(0xd0)){const _0x44a5b0=_0x1b7fdf[_0x2b3a5b(0xcd)]();if(!_0x44a5b0)return undefined;const _0x2e5528=Number(_0x44a5b0);if(Number[_0x2b3a5b(0xca)](_0x2e5528))return _0x2e5528;}return undefined;}export function normalizeEntityWithIdResponse(_0x3f27f2){const _0x19c5c7=a230_0x5419,_0x54e6cf=toFiniteNumber(_0x3f27f2);if(_0x54e6cf!==undefined)return{'id':_0x54e6cf,'entity':{'id':_0x54e6cf}};if(!_0x3f27f2||typeof _0x3f27f2!==_0x19c5c7(0xcb))return{'id':undefined,'entity':{}};const _0x35a005={..._0x3f27f2},_0x4307a1=toFiniteNumber(_0x35a005['id']);return _0x4307a1!==undefined&&(_0x35a005['id']=_0x4307a1),{'id':_0x4307a1,'entity':_0x35a005};}
|
package/lib/utils/file-utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x46ff4a,_0x43db5b){const _0x3f910c=a231_0x2185,_0x3edf97=_0x46ff4a();while(!![]){try{const _0x541c98=parseInt(_0x3f910c(0xf5))/0x1+-parseInt(_0x3f910c(0xee))/0x2+-parseInt(_0x3f910c(0xef))/0x3+parseInt(_0x3f910c(0xed))/0x4*(parseInt(_0x3f910c(0xf4))/0x5)+-parseInt(_0x3f910c(0xec))/0x6*(parseInt(_0x3f910c(0xeb))/0x7)+parseInt(_0x3f910c(0xf0))/0x8*(-parseInt(_0x3f910c(0xea))/0x9)+parseInt(_0x3f910c(0xf1))/0xa*(parseInt(_0x3f910c(0xf2))/0xb);if(_0x541c98===_0x43db5b)break;else _0x3edf97['push'](_0x3edf97['shift']());}catch(_0x5108c0){_0x3edf97['push'](_0x3edf97['shift']());}}}(a231_0x57e2,0xb166e));function a231_0x57e2(){const _0x2ba1e9=['846354chvRqw','2689263CzcgZh','8TibuTm','24460yoaIPp','5401UKMJyU','isDirectory','4530065PvGqHv','441478XLGBUV','2171619msTnFj','107450PdQsrf','102ekAarj','4RrApcu'];a231_0x57e2=function(){return _0x2ba1e9;};return a231_0x57e2();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a231_0x2185(_0x213edb,_0x1db135){_0x213edb=_0x213edb-0xea;const _0x57e2cd=a231_0x57e2();let _0x218599=_0x57e2cd[_0x213edb];return _0x218599;}export async function copyDir(_0x1a0422,_0x584949){const _0x66fe31=a231_0x2185,_0x16fa77=statSync(_0x1a0422);if(_0x16fa77[_0x66fe31(0xf3)]()){!existsSync(_0x584949)&&mkdirSync(_0x584949,{'recursive':!![]});const _0x25c021=readdirSync(_0x1a0422);for(const _0x2b1b42 of _0x25c021){await copyDir(join(_0x1a0422,_0x2b1b42),join(_0x584949,_0x2b1b42));}}else copyFileSync(_0x1a0422,_0x584949);}export function ensureDir(_0x404e17){!existsSync(_0x404e17)&&mkdirSync(_0x404e17,{'recursive':!![]});}export function pathExists(_0x3c46ef){return existsSync(_0x3c46ef);}
|
package/lib/utils/guides-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a232_0x44a9(){const _0x1c4686=['title','.lovrabet/skill/guides','guides','trimEnd','content','.lovrabet','entries','1124bZaoVK','66OYKANJ','lastUpdated','replace','83142nYeUpk','\x0a\x0a>更新时间:','5561896YDkdGc','status','utf-8','statusText','10wIJrit','object','skillTemplate','/skills/guides.json','CDN\x20返回数据格式错误','CDN\x20请求失败:\x20','2vWSSJc','CDN\x20数据中缺少\x20skillTemplate','cache','17945WkUrXL','push','extendContent','189369HWLytW','5713477ipdfsm','keys','.md','length','join','path','3050883FaSRJv','json','map','366107hnutCU'];a232_0x44a9=function(){return _0x1c4686;};return a232_0x44a9();}const a232_0xf4fca1=a232_0x11e7;(function(_0x376c35,_0x1ba200){const _0x4fc1c9=a232_0x11e7,_0x5994b3=_0x376c35();while(!![]){try{const _0x2de395=-parseInt(_0x4fc1c9(0x1d3))/0x1*(parseInt(_0x4fc1c9(0x1df))/0x2)+-parseInt(_0x4fc1c9(0x1ec))/0x3+parseInt(_0x4fc1c9(0x1cf))/0x4*(parseInt(_0x4fc1c9(0x1e2))/0x5)+parseInt(_0x4fc1c9(0x1d0))/0x6*(-parseInt(_0x4fc1c9(0x1ef))/0x7)+parseInt(_0x4fc1c9(0x1d5))/0x8+-parseInt(_0x4fc1c9(0x1e5))/0x9*(parseInt(_0x4fc1c9(0x1d9))/0xa)+parseInt(_0x4fc1c9(0x1e6))/0xb;if(_0x2de395===_0x1ba200)break;else _0x5994b3['push'](_0x5994b3['shift']());}catch(_0x23ff0a){_0x5994b3['push'](_0x5994b3['shift']());}}}(a232_0x44a9,0x8096a));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x58e19f=a232_0x11e7,_0x4ed24e=getTemplateBaseUrl();return _0x4ed24e+_0x58e19f(0x1dc);}const CACHE_DIR=join(homedir(),a232_0xf4fca1(0x1cd),a232_0xf4fca1(0x1e1));function a232_0x11e7(_0xbbb345,_0x1a33e0){_0xbbb345=_0xbbb345-0x1cd;const _0x44a988=a232_0x44a9();let _0x11e7b6=_0x44a988[_0xbbb345];return _0x11e7b6;}export async function fetchGuidesFromCDN(){const _0x2ea095=a232_0xf4fca1,_0x3520d3=getGuidesCdnUrl(),_0x20001c=await fetch(_0x3520d3,{'headers':{'Accept':'application/json'}});if(!_0x20001c['ok'])throw new Error(_0x2ea095(0x1de)+_0x20001c[_0x2ea095(0x1d6)]+'\x20'+_0x20001c[_0x2ea095(0x1d8)]);const _0x2fe1e2=await _0x20001c[_0x2ea095(0x1ed)]();if(!_0x2fe1e2[_0x2ea095(0x1f2)]||typeof _0x2fe1e2[_0x2ea095(0x1f2)]!==_0x2ea095(0x1da))throw new Error(_0x2ea095(0x1dd));return _0x2fe1e2;}export function writeGuidesToProject(_0x1696dc,_0xb0708f,_0x439f7a=a232_0xf4fca1(0x1f1),_0xc2d702){const _0xe5c24a=a232_0xf4fca1,_0x198326=join(_0xb0708f,_0x439f7a);mkdirSync(_0x198326,{'recursive':!![]});for(const [_0x41a1dd,_0x4e94ea]of Object[_0xe5c24a(0x1ce)](_0x1696dc[_0xe5c24a(0x1f2)])){let _0x2e4782=_0x4e94ea[_0xe5c24a(0x1f4)];_0x4e94ea[_0xe5c24a(0x1d1)]&&(_0x2e4782=appendUpdateTime(_0x2e4782,_0x4e94ea[_0xe5c24a(0x1d1)])),writeFileSync(join(_0x198326,_0x41a1dd+_0xe5c24a(0x1e8)),_0x2e4782,_0xe5c24a(0x1d7));}}export function appendUpdateTime(_0x49b3a5,_0x94f7fa){const _0x5cd850=a232_0xf4fca1;return _0x49b3a5=_0x49b3a5[_0x5cd850(0x1d2)](/\n*>更新时间:.*$/m,''),_0x49b3a5[_0x5cd850(0x1f3)]()+(_0x5cd850(0x1d4)+_0x94f7fa);}export function getSkillTemplate(_0x366258){const _0x58d8b3=a232_0xf4fca1;return _0x366258[_0x58d8b3(0x1db)]?.[_0x58d8b3(0x1f4)]||'';}export function appendExtendContents(_0x5c1e33,_0x2ccc7c,_0x4c2059){const _0x2ebfad=a232_0xf4fca1,_0xaece44=[];for(const [,_0x4d01d2]of Object['entries'](_0x2ccc7c[_0x2ebfad(0x1f2)])){_0x4d01d2[_0x2ebfad(0x1e4)]&&_0xaece44[_0x2ebfad(0x1e3)](_0x4d01d2[_0x2ebfad(0x1e4)]['trimEnd']());}if(_0xaece44[_0x2ebfad(0x1e9)]===0x0)return _0x5c1e33;return _0x5c1e33[_0x2ebfad(0x1f3)]()+'\x0a\x0a'+_0xaece44[_0x2ebfad(0x1ea)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x2ed277,_0x1e04a4,_0x33eb0d){const _0xbe859a=a232_0xf4fca1,_0x1544ca=getSkillTemplate(_0x2ed277);if(!_0x1544ca)throw new Error(_0xbe859a(0x1e0));const _0x3009a1=dirname(_0x1e04a4);mkdirSync(_0x3009a1,{'recursive':!![]});let _0x212e0d=_0x1544ca[_0xbe859a(0x1d2)](/\{\{IDE_NAME\}\}/g,_0x33eb0d);_0x212e0d=appendExtendContents(_0x212e0d,_0x2ed277),_0x2ed277[_0xbe859a(0x1db)][_0xbe859a(0x1d1)]&&(_0x212e0d=appendUpdateTime(_0x212e0d,_0x2ed277[_0xbe859a(0x1db)]['lastUpdated'])),writeFileSync(_0x1e04a4,_0x212e0d,_0xbe859a(0x1d7));}export async function installGuides(_0x42f08b){const _0x31ce77=a232_0xf4fca1,_0x34b335=await fetchGuidesFromCDN();return writeGuidesToProject(_0x34b335,_0x42f08b),Object[_0x31ce77(0x1e7)](_0x34b335[_0x31ce77(0x1f2)])[_0x31ce77(0x1e9)];}export function getGuidesSummary(_0x5046f7){const _0x538a8c=a232_0xf4fca1;return Object[_0x538a8c(0x1ce)](_0x5046f7[_0x538a8c(0x1f2)])[_0x538a8c(0x1ee)](([_0x176736,_0x2ae1c8])=>({'key':_0x176736,'title':_0x2ae1c8[_0x538a8c(0x1f0)],'path':_0x2ae1c8[_0x538a8c(0x1eb)]}));}
|
package/lib/utils/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x142fc9,_0x1fb5eb){const _0x964ed4=a233_0x6a51,_0x41fc16=_0x142fc9();while(!![]){try{const _0x50f519=parseInt(_0x964ed4(0x13a))/0x1+parseInt(_0x964ed4(0x14b))/0x2*(-parseInt(_0x964ed4(0x146))/0x3)+-parseInt(_0x964ed4(0x13c))/0x4+-parseInt(_0x964ed4(0x145))/0x5*(parseInt(_0x964ed4(0x148))/0x6)+parseInt(_0x964ed4(0x13f))/0x7+-parseInt(_0x964ed4(0x155))/0x8*(-parseInt(_0x964ed4(0x14d))/0x9)+parseInt(_0x964ed4(0x144))/0xa;if(_0x50f519===_0x1fb5eb)break;else _0x41fc16['push'](_0x41fc16['shift']());}catch(_0x349e57){_0x41fc16['push'](_0x41fc16['shift']());}}}(a233_0x32d7,0x43790));export async function httpRequest(_0x557a07,_0x298b4c={}){const _0x1b6fd2=a233_0x6a51,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x298b4c;let _0x50eb3b=null;for(let _0x358af8=0x0;_0x358af8<=retries;_0x358af8++){try{const _0x33bbb6=new AbortController(),_0x5f0629=setTimeout(()=>_0x33bbb6[_0x1b6fd2(0x13e)](),timeout),_0x2517ce=await fetch(_0x557a07,{'headers':headers,'signal':_0x33bbb6[_0x1b6fd2(0x14c)]});clearTimeout(_0x5f0629);let _0x39ab10;const _0x4dde62=_0x2517ce[_0x1b6fd2(0x13b)][_0x1b6fd2(0x141)]('content-type');return _0x4dde62?.[_0x1b6fd2(0x14f)](_0x1b6fd2(0x153))?_0x39ab10=await _0x2517ce[_0x1b6fd2(0x140)]():_0x39ab10=await _0x2517ce['text'](),{'ok':_0x2517ce['ok'],'status':_0x2517ce['status'],'statusText':_0x2517ce[_0x1b6fd2(0x149)],'data':_0x39ab10,'headers':_0x2517ce[_0x1b6fd2(0x13b)],'url':_0x2517ce[_0x1b6fd2(0x151)],'text':()=>_0x2517ce[_0x1b6fd2(0x138)]()};}catch(_0x47018c){_0x50eb3b=_0x47018c instanceof Error?_0x47018c:new Error(String(_0x47018c));if(_0x358af8===retries)break;if(shouldRetry(_0x47018c)){console[_0x1b6fd2(0x147)](_0x1b6fd2(0x139)+retryDelay+_0x1b6fd2(0x150)+(_0x358af8+0x1)+_0x1b6fd2(0x14e)),await sleep(retryDelay);continue;}else break;}}throw _0x50eb3b||new Error(_0x1b6fd2(0x143));}function a233_0x32d7(){const _0x21b732=['222UmQRtj','statusText','AbortError','2JbYHGs','signal','225Jqilyo','\x20次重试...','includes','ms\x20后进行第\x20','url','message','application/json','TypeError','19280kJyPTf','fetch','text','*\x20请求失败,','4294PXNqac','headers','546096aSXknO','name','abort','3095757rtUJLP','json','get','ENOTFOUND','Request\x20failed','5641990MzURcA','45070wvUCCS','973752EgOEZV','log'];a233_0x32d7=function(){return _0x21b732;};return a233_0x32d7();}function a233_0x6a51(_0x49c00b,_0x4a2bf9){_0x49c00b=_0x49c00b-0x138;const _0x32d7c9=a233_0x32d7();let _0x6a5121=_0x32d7c9[_0x49c00b];return _0x6a5121;}function shouldRetry(_0x427f6b){const _0x312125=a233_0x6a51;if(_0x427f6b instanceof Error){if(_0x427f6b[_0x312125(0x13d)]===_0x312125(0x14a))return![];if(_0x427f6b['name']===_0x312125(0x154)&&_0x427f6b[_0x312125(0x152)][_0x312125(0x14f)](_0x312125(0x156)))return!![];if(_0x427f6b[_0x312125(0x152)][_0x312125(0x14f)]('ECONNRESET'))return!![];if(_0x427f6b[_0x312125(0x152)]['includes'](_0x312125(0x142)))return![];}return![];}function sleep(_0x50dee8){return new Promise(_0x15bbfc=>setTimeout(_0x15bbfc,_0x50dee8));}export function validateUrl(_0x1b1eeb){try{return new URL(_0x1b1eeb),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5a5d2f,_0x4bd0c0){const _0x14b146=a234_0x25ed,_0x3b9907=_0x5a5d2f();while(!![]){try{const _0x251a13=parseInt(_0x14b146(0x15e))/0x1*(parseInt(_0x14b146(0x165))/0x2)+parseInt(_0x14b146(0x166))/0x3*(parseInt(_0x14b146(0x164))/0x4)+-parseInt(_0x14b146(0x168))/0x5*(parseInt(_0x14b146(0x15a))/0x6)+parseInt(_0x14b146(0x162))/0x7*(parseInt(_0x14b146(0x15d))/0x8)+parseInt(_0x14b146(0x161))/0x9+parseInt(_0x14b146(0x15c))/0xa*(-parseInt(_0x14b146(0x15f))/0xb)+parseInt(_0x14b146(0x158))/0xc*(-parseInt(_0x14b146(0x156))/0xd);if(_0x251a13===_0x4bd0c0)break;else _0x3b9907['push'](_0x3b9907['shift']());}catch(_0x35ac63){_0x3b9907['push'](_0x3b9907['shift']());}}}(a234_0x2786,0x5e59d));function env(_0x4bb256){return process.env[`RABETBASE_${_0x4bb256}`]||process.env[`LOVRABET_${_0x4bb256}`]||undefined;}export function isNonInteractive(_0x47ad3c){const _0xa1c368=a234_0x25ed;return!!(_0x47ad3c[_0xa1c368(0x155)]||_0x47ad3c['ci']||env('CI')==='true'||process.env.CI===_0xa1c368(0x15b)||!process[_0xa1c368(0x159)][_0xa1c368(0x160)]||!isStdinRawModeSupported());}function a234_0x25ed(_0x4ca2fd,_0x4be350){_0x4ca2fd=_0x4ca2fd-0x155;const _0x2786f1=a234_0x2786();let _0x25ed23=_0x2786f1[_0x4ca2fd];return _0x25ed23;}function isStdinRawModeSupported(){const _0x48429c=a234_0x25ed;if(!process['stdin']['isTTY'])return![];try{const _0x286b1c=process[_0x48429c(0x163)][_0x48429c(0x157)];return process[_0x48429c(0x163)][_0x48429c(0x167)](!![]),process[_0x48429c(0x163)][_0x48429c(0x167)](_0x286b1c??![]),!![];}catch{return![];}}function a234_0x2786(){const _0x2833ac=['5927751IbdSec','21FXgtjR','stdin','1408LuEIoM','14lhjJpK','5304zfxlli','setRawMode','3769905izcSFj','nonInteractive','44057jwhTSK','isRaw','1740wXWaoQ','stdout','6DDJLbl','true','120ESVTPI','851248mUwUib','49966fMTeRQ','291599zuRPnT','isTTY'];a234_0x2786=function(){return _0x2833ac;};return a234_0x2786();}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a235_0x12a8(_0x378965,_0x59fde9){_0x378965=_0x378965-0x71;const _0x46282b=a235_0x4628();let _0x12a88f=_0x46282b[_0x378965];return _0x12a88f;}const a235_0x2ce089=a235_0x12a8;function a235_0x4628(){const _0x1d58d4=['map','getWinstonInstance','initWinstonLogger','setLogPath','1238844lvuSkJ','531530cdDnYo','red','green','yellow','info','logTask','878IAExTR','43QXbXCM','clear','560077YLIzCj','duration','format','开始执行:\x20','parse','setRawCommand','printf','split','warn','message','createLogger','mkdirSync','28840iEGcto','logFilePath','writeFileSync','timestamp','Failed\x20to\x20clear\x20logs:','trim','addColors','unknown','失败:\x20','success','errors','utf8','winstonLogger','error','109605JmNzCS','stringify','readFileSync','existsSync','combine','52pZSiYC','log','join','currentRawCommand','readLogs','level','File','423XKBZBc','2069346lnArhI','Failed\x20to\x20read\x20logs:','now'];a235_0x4628=function(){return _0x1d58d4;};return a235_0x4628();}(function(_0x13a5c5,_0x552885){const _0x4a343f=a235_0x12a8,_0x332636=_0x13a5c5();while(!![]){try{const _0x184015=-parseInt(_0x4a343f(0x95))/0x1*(-parseInt(_0x4a343f(0x94))/0x2)+parseInt(_0x4a343f(0x8d))/0x3+-parseInt(_0x4a343f(0x7e))/0x4*(-parseInt(_0x4a343f(0x79))/0x5)+-parseInt(_0x4a343f(0x86))/0x6+parseInt(_0x4a343f(0x97))/0x7+parseInt(_0x4a343f(0xa3))/0x8*(-parseInt(_0x4a343f(0x85))/0x9)+-parseInt(_0x4a343f(0x8e))/0xa;if(_0x184015===_0x552885)break;else _0x332636['push'](_0x332636['shift']());}catch(_0x857cc9){_0x332636['push'](_0x332636['shift']());}}}(a235_0x4628,0x37fd2));import a235_0x1c978d from'winston';import a235_0x551d10 from'node:fs';import a235_0x177131 from'node:path';class Logger{['winstonLogger'];[a235_0x2ce089(0xa4)];[a235_0x2ce089(0x81)]='';constructor(){const _0xd4fe86=a235_0x2ce089;this[_0xd4fe86(0xa4)]='';}[a235_0x2ce089(0x9c)](_0x3f5333){const _0x2317e4=a235_0x2ce089;this[_0x2317e4(0x81)]=_0x3f5333;}[a235_0x2ce089(0x8b)](){const _0x2473c5=a235_0x2ce089,_0x4fdc9a=a235_0x177131['dirname'](this['logFilePath']);!a235_0x551d10[_0x2473c5(0x7c)](_0x4fdc9a)&&a235_0x551d10[_0x2473c5(0xa2)](_0x4fdc9a,{'recursive':!![]});const _0x47c075=a235_0x1c978d[_0x2473c5(0x99)][_0x2473c5(0x7d)](a235_0x1c978d['format'][_0x2473c5(0xa6)](),a235_0x1c978d[_0x2473c5(0x99)][_0x2473c5(0x75)]({'stack':!![]}),a235_0x1c978d[_0x2473c5(0x99)][_0x2473c5(0x9d)](_0x41e78=>{const _0x488323=_0x2473c5,_0x1fc6b8={'timestamp':_0x41e78[_0x488323(0xa6)]||new Date()['toISOString'](),'level':_0x41e78[_0x488323(0x83)]||'info','command':_0x41e78['command']||_0x488323(0x72),'rawCommand':_0x41e78['rawCommand']||this[_0x488323(0x81)]||undefined,'message':_0x41e78[_0x488323(0xa0)]||'','duration':_0x41e78[_0x488323(0x98)]||undefined,'details':_0x41e78['details']||undefined};return JSON[_0x488323(0x7a)](_0x1fc6b8);}));this[_0x2473c5(0x77)]=a235_0x1c978d[_0x2473c5(0xa1)]({'level':_0x2473c5(0x92),'format':_0x47c075,'transports':[new a235_0x1c978d['transports'][(_0x2473c5(0x84))]({'filename':this['logFilePath'],'level':_0x2473c5(0x92)})],'silent':![]}),a235_0x1c978d[_0x2473c5(0x71)]({'success':_0x2473c5(0x90),'error':_0x2473c5(0x8f),'warn':_0x2473c5(0x91),'info':'blue'});}[a235_0x2ce089(0x8c)](_0x5ca00c){const _0x37f2b5=a235_0x2ce089;this[_0x37f2b5(0xa4)]=a235_0x177131[_0x37f2b5(0x80)](_0x5ca00c,'.lovrabet.log'),this[_0x37f2b5(0x77)]&&this[_0x37f2b5(0x77)][_0x37f2b5(0x96)](),this[_0x37f2b5(0x8b)]();}[a235_0x2ce089(0x92)](_0x171d1e,_0x51f262,_0x186c7f){const _0xd4ab2b=a235_0x2ce089;if(!this['logFilePath']||!this[_0xd4ab2b(0x77)])return;this[_0xd4ab2b(0x77)]['info'](_0x51f262,{'command':_0x171d1e,'details':_0x186c7f});}[a235_0x2ce089(0x74)](_0x4912c5,_0x67db61,_0x531d1d,_0x3c9c84){const _0x5f1f56=a235_0x2ce089;if(!this[_0x5f1f56(0xa4)]||!this[_0x5f1f56(0x77)])return;this['winstonLogger'][_0x5f1f56(0x7f)](_0x5f1f56(0x92),_0x67db61,{'level':_0x5f1f56(0x74),'command':_0x4912c5,'duration':_0x531d1d,'details':_0x3c9c84});}[a235_0x2ce089(0x78)](_0x367508,_0x2a64ff,_0x1b4a49){const _0x15b71f=a235_0x2ce089;if(!this[_0x15b71f(0xa4)]||!this['winstonLogger'])return;this[_0x15b71f(0x77)][_0x15b71f(0x78)](_0x2a64ff,{'command':_0x367508,'details':_0x1b4a49});}['warn'](_0x3b3d43,_0x37de11,_0x2cccfe){const _0x41fc29=a235_0x2ce089;if(!this['logFilePath']||!this[_0x41fc29(0x77)])return;this['winstonLogger']['warn'](_0x37de11,{'command':_0x3b3d43,'details':_0x2cccfe});}async[a235_0x2ce089(0x93)](_0x3d81af,_0x5c7d1e,_0x35006a){const _0x797cef=a235_0x2ce089,_0x5684ae=Date[_0x797cef(0x88)]();this[_0x797cef(0x92)](_0x3d81af,_0x797cef(0x9a)+_0x5c7d1e);try{const _0x4f372f=await _0x35006a(),_0x590357=Date[_0x797cef(0x88)]()-_0x5684ae;return this[_0x797cef(0x74)](_0x3d81af,'完成:\x20'+_0x5c7d1e,_0x590357),_0x4f372f;}catch(_0x529bb6){const _0x2ec461=Date[_0x797cef(0x88)]()-_0x5684ae;this[_0x797cef(0x78)](_0x3d81af,_0x797cef(0x73)+_0x5c7d1e,{'error':_0x529bb6 instanceof Error?_0x529bb6[_0x797cef(0xa0)]:String(_0x529bb6),'duration':_0x2ec461});throw _0x529bb6;}}[a235_0x2ce089(0x82)](){const _0xca8850=a235_0x2ce089;try{if(!a235_0x551d10[_0xca8850(0x7c)](this[_0xca8850(0xa4)]))return[];const _0x540a89=a235_0x551d10[_0xca8850(0x7b)](this[_0xca8850(0xa4)],_0xca8850(0x76));return _0x540a89[_0xca8850(0x9e)]('\x0a')['filter'](_0x4e09d7=>_0x4e09d7[_0xca8850(0xa8)]())[_0xca8850(0x89)](_0x472280=>JSON[_0xca8850(0x9b)](_0x472280));}catch(_0x251c4f){return console[_0xca8850(0x9f)](_0xca8850(0x87),_0x251c4f),[];}}['clearLogs'](){const _0x3210f3=a235_0x2ce089;try{a235_0x551d10[_0x3210f3(0x7c)](this['logFilePath'])&&a235_0x551d10[_0x3210f3(0xa5)](this[_0x3210f3(0xa4)],'','utf8');}catch(_0xc05358){console[_0x3210f3(0x9f)](_0x3210f3(0xa7),_0xc05358);}}[a235_0x2ce089(0x8a)](){return this['winstonLogger'];}}export const logger=new Logger();
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a236_0x5f10(){const _0x571977=['917464YeYqgp','1oemPrd','Invalid\x20JSON\x20for\x20--params:\x20','153244ohsXOX','8281PrhkGf','2064GRzbUw','10ATFVmv','--params\x20must\x20be\x20a\x20JSON\x20object','559386EhPrdd','166476QLyykL','15goSJYD','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','3313563mOXYnC','493264fXQVPV'];a236_0x5f10=function(){return _0x571977;};return a236_0x5f10();}(function(_0x57369b,_0x337ecc){const _0xcbcd99=a236_0x445d,_0x52e4c2=_0x57369b();while(!![]){try{const _0x23e8d3=-parseInt(_0xcbcd99(0xba))/0x1*(parseInt(_0xcbcd99(0xb8))/0x2)+-parseInt(_0xcbcd99(0xc2))/0x3+parseInt(_0xcbcd99(0xbc))/0x4*(-parseInt(_0xcbcd99(0xc3))/0x5)+-parseInt(_0xcbcd99(0xbe))/0x6*(-parseInt(_0xcbcd99(0xbd))/0x7)+-parseInt(_0xcbcd99(0xb9))/0x8+parseInt(_0xcbcd99(0xc1))/0x9+-parseInt(_0xcbcd99(0xbf))/0xa*(-parseInt(_0xcbcd99(0xb7))/0xb);if(_0x23e8d3===_0x337ecc)break;else _0x52e4c2['push'](_0x52e4c2['shift']());}catch(_0xb8f7bd){_0x52e4c2['push'](_0x52e4c2['shift']());}}}(a236_0x5f10,0x3a407));import{CliErrors}from'../errors.js';function a236_0x445d(_0x25bee4,_0x4642fc){_0x25bee4=_0x25bee4-0xb7;const _0x5f1099=a236_0x5f10();let _0x445d2f=_0x5f1099[_0x25bee4];return _0x445d2f;}export function parseJsonParams(_0x41f09f){const _0x2d601b=a236_0x445d;if(!_0x41f09f)return undefined;let _0x167ce4;try{_0x167ce4=JSON['parse'](_0x41f09f);}catch{throw CliErrors['validation'](_0x2d601b(0xbb)+_0x41f09f);}if(!_0x167ce4||typeof _0x167ce4!=='object'||Array['isArray'](_0x167ce4))throw CliErrors['validation'](_0x2d601b(0xc0),_0x2d601b(0xc4));return _0x167ce4;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a237_0x507c43=a237_0x31ad;(function(_0x203137,_0x24dff7){const _0x50b9fa=a237_0x31ad,_0x46c072=_0x203137();while(!![]){try{const _0x262dcf=parseInt(_0x50b9fa(0x143))/0x1*(parseInt(_0x50b9fa(0x14b))/0x2)+parseInt(_0x50b9fa(0x14e))/0x3*(parseInt(_0x50b9fa(0x142))/0x4)+parseInt(_0x50b9fa(0x144))/0x5*(-parseInt(_0x50b9fa(0x14d))/0x6)+parseInt(_0x50b9fa(0x145))/0x7+-parseInt(_0x50b9fa(0x14a))/0x8*(-parseInt(_0x50b9fa(0x146))/0x9)+-parseInt(_0x50b9fa(0x148))/0xa*(parseInt(_0x50b9fa(0x14c))/0xb)+-parseInt(_0x50b9fa(0x147))/0xc;if(_0x262dcf===_0x24dff7)break;else _0x46c072['push'](_0x46c072['shift']());}catch(_0x5664ad){_0x46c072['push'](_0x46c072['shift']());}}}(a237_0x4de4,0x9fb51));function a237_0x31ad(_0x3aaa8d,_0x5b9962){_0x3aaa8d=_0x3aaa8d-0x141;const _0x4de4d9=a237_0x4de4();let _0x31ad0e=_0x4de4d9[_0x3aaa8d];return _0x31ad0e;}export const isWindows=process[a237_0x507c43(0x149)]===a237_0x507c43(0x141);export function resolveNpmBin(_0x2dbf06){return isWindows?_0x2dbf06+'.cmd':_0x2dbf06;}function a237_0x4de4(){const _0x5c2105=['4GpgNjI','36749RDrsYc','19230nbyhSl','5021471FzmVur','9ehfVRD','16809996yIrcVk','475500KuwNMl','platform','6930512vAhKXY','26kWnVlp','110AKIqaM','396VxWabX','2168778nqVixr','win32'];a237_0x4de4=function(){return _0x5c2105;};return a237_0x4de4();}
|
package/lib/utils/rules-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a238_0x5befcc=a238_0x3861;(function(_0x30297f,_0x57810c){const _0x1f1161=a238_0x3861,_0x3ec097=_0x30297f();while(!![]){try{const _0x5d81d7=parseInt(_0x1f1161(0x1bd))/0x1*(-parseInt(_0x1f1161(0x1cd))/0x2)+parseInt(_0x1f1161(0x1d3))/0x3+parseInt(_0x1f1161(0x1cb))/0x4*(-parseInt(_0x1f1161(0x1d2))/0x5)+-parseInt(_0x1f1161(0x1d5))/0x6+-parseInt(_0x1f1161(0x1c3))/0x7*(parseInt(_0x1f1161(0x1c6))/0x8)+parseInt(_0x1f1161(0x1c7))/0x9*(parseInt(_0x1f1161(0x1ce))/0xa)+parseInt(_0x1f1161(0x1c2))/0xb*(parseInt(_0x1f1161(0x1be))/0xc);if(_0x5d81d7===_0x57810c)break;else _0x3ec097['push'](_0x3ec097['shift']());}catch(_0x4dfd8c){_0x3ec097['push'](_0x3ec097['shift']());}}}(a238_0x17fc,0x50e0c));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x1d4f5e=getTemplateBaseUrl();return _0x1d4f5e+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a238_0x5befcc(0x1d4));export async function fetchRulesFromCDN(){const _0x428a33=a238_0x5befcc,_0x9e79e9=getRulesCdnUrl(),_0x28df03=await fetch(_0x9e79e9,{'headers':{'Accept':'application/json'}});if(!_0x28df03['ok'])throw new Error(_0x428a33(0x1ca)+_0x28df03[_0x428a33(0x1bf)]+'\x20'+_0x28df03['statusText']);const _0x5c70c9=await _0x28df03[_0x428a33(0x1c8)]();if(!_0x5c70c9['content']||typeof _0x5c70c9[_0x428a33(0x1bc)]!==_0x428a33(0x1d1))throw new Error(_0x428a33(0x1c0));return _0x5c70c9;}function a238_0x3861(_0xbdcb7c,_0x47c063){_0xbdcb7c=_0xbdcb7c-0x1bc;const _0x17fc7e=a238_0x17fc();let _0x3861f0=_0x17fc7e[_0xbdcb7c];return _0x3861f0;}function a238_0x17fc(){const _0xdeea45=['961314BXkzjd','content','1sUQCDC','13240116KEGTbS','status','CDN\x20返回数据格式错误','本地模板文件不存在:\x20','11JPLiBJ','427iOyVQS','agents.md','lastUpdated','61464grsmBo','11349Dhyycq','json','catch','CDN\x20请求失败:\x20','1312xNJkNK','.cursor/rules','467692SShATo','4780NerfQo','lovrabet_rules.mdc','utf-8','string','8730RhhvyI','181773PBvXhW','../../templates/rules/lovrabet_rules.mdc.tpl'];a238_0x17fc=function(){return _0xdeea45;};return a238_0x17fc();}export async function getRulesContent(){const _0x35ef6c=a238_0x5befcc;try{const _0x572e57=await fetchRulesFromCDN();return _0x572e57[_0x35ef6c(0x1bc)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x2e3699=a238_0x5befcc;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x2e3699(0x1d0));throw new Error(_0x2e3699(0x1c1)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x28f26a){const _0x35f2ef=a238_0x5befcc,_0x439c5c=await fetchRulesFromCDN()[_0x35f2ef(0x1c9)](()=>null);let _0x335e2f;_0x439c5c?(_0x335e2f=_0x439c5c[_0x35f2ef(0x1bc)],_0x439c5c[_0x35f2ef(0x1c5)]&&(_0x335e2f=appendUpdateTime(_0x335e2f,_0x439c5c[_0x35f2ef(0x1c5)]))):_0x335e2f=readLocalTemplate();const _0x35205f=dirname(_0x28f26a);!existsSync(_0x35205f)&&mkdirSync(_0x35205f,{'recursive':!![]}),writeFileSync(_0x28f26a,_0x335e2f,_0x35f2ef(0x1d0));}export async function copyRulesToCursor(_0x1f2e5e){const _0x1c3fa6=a238_0x5befcc,_0x3fa695=join(_0x1f2e5e,_0x1c3fa6(0x1cc)),_0x487364=join(_0x3fa695,_0x1c3fa6(0x1cf));if(existsSync(_0x487364))return![];return await writeRulesFile(_0x487364),!![];}export async function copyRulesToAgentsMd(_0x2fe66b){const _0x53f5fb=a238_0x5befcc,_0x29e2b0=join(_0x2fe66b,_0x53f5fb(0x1c4));if(existsSync(_0x29e2b0))return![];return await writeRulesFile(_0x29e2b0),!![];}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x17ff34){return new Promise(_0xa41a11=>setTimeout(_0xa41a11,_0x17ff34));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a240_0x3caaf3=a240_0x18d8;(function(_0x1f0966,_0x469917){const _0x4b30e3=a240_0x18d8,_0x5aaa5b=_0x1f0966();while(!![]){try{const _0x14edde=parseInt(_0x4b30e3(0x1c2))/0x1+-parseInt(_0x4b30e3(0x204))/0x2*(-parseInt(_0x4b30e3(0x1db))/0x3)+-parseInt(_0x4b30e3(0x1d1))/0x4*(parseInt(_0x4b30e3(0x1c4))/0x5)+-parseInt(_0x4b30e3(0x203))/0x6*(-parseInt(_0x4b30e3(0x1d5))/0x7)+-parseInt(_0x4b30e3(0x1f6))/0x8+parseInt(_0x4b30e3(0x1ea))/0x9*(parseInt(_0x4b30e3(0x1e2))/0xa)+parseInt(_0x4b30e3(0x1e8))/0xb*(-parseInt(_0x4b30e3(0x1cd))/0xc);if(_0x14edde===_0x469917)break;else _0x5aaa5b['push'](_0x5aaa5b['shift']());}catch(_0x2a249e){_0x5aaa5b['push'](_0x5aaa5b['shift']());}}}(a240_0x24e7,0x3e651));function a240_0x24e7(){const _0x2e04ff=['开始处理模板内容替换','toDisplayTitle','success','info','replaceContent','name:\x20\x22','.js','809200APaIOI','tableName:\x20\x22','datasetCode:\x20\x22','mkdir','toComponentName','.scss','LOVRABET','readdir','getMinutes','replace','\x0a\x20\x20\x20\x20{\x20','.jsx','模板内容替换完成','6ERFvze','2442eoDhOm','isFile','join','promises','processFile','.ts','262598mBmOJV','.md','1725275GYsINF','replaceApiContent','toLowerCase','alias','.tsx','getDate','writeFile','template','split','12lxangb','charAt','now','datasetCode','4AwCCYm','getHours','\x20},','YourModel','2203439JkNwWu','pad','模板内容替换失败','endsWith','padStart','includes','291ZCBBga','alias:\x20\x22','name','.json','pop','push','.tpl','7870GAMGKk','readFile','toUpperCase','processDirectory','isDirectory','getSeconds','3492445yQXGIZ','map','3699IirOmJ','message','getFullYear','slice','toISOString'];a240_0x24e7=function(){return _0x2e04ff;};return a240_0x24e7();}import a240_0x1ceaf0 from'node:fs';function a240_0x18d8(_0x4f45ea,_0x266f2c){_0x4f45ea=_0x4f45ea-0x1c1;const _0x24e7a2=a240_0x24e7();let _0x18d82b=_0x24e7a2[_0x4f45ea];return _0x18d82b;}import a240_0x5f3431 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x3487c0){const _0x4f1fe3=a240_0x18d8;return String(_0x3487c0)[_0x4f1fe3(0x1d9)](0x2,'0');}static['formatLocalTimestamp'](_0x547533){const _0x4b046e=a240_0x18d8,_0x5cfffa=_0x547533[_0x4b046e(0x1ec)](),_0x166119=this[_0x4b046e(0x1d6)](_0x547533['getMonth']()+0x1),_0x2645b9=this[_0x4b046e(0x1d6)](_0x547533[_0x4b046e(0x1c9)]()),_0x535ac5=this[_0x4b046e(0x1d6)](_0x547533[_0x4b046e(0x1d2)]()),_0x2e3326=this[_0x4b046e(0x1d6)](_0x547533[_0x4b046e(0x1fe)]()),_0x263a6f=this[_0x4b046e(0x1d6)](_0x547533[_0x4b046e(0x1e7)]());return{'createdAt':_0x5cfffa+'-'+_0x166119+'-'+_0x2645b9+'\x20'+_0x535ac5+':'+_0x2e3326+':'+_0x263a6f,'createdDate':_0x5cfffa+'-'+_0x166119+'-'+_0x2645b9,'createdTime':_0x535ac5+':'+_0x2e3326+':'+_0x263a6f};}static[a240_0x3caaf3(0x1fa)](_0x28203d){const _0x240fad=a240_0x3caaf3,_0x56447c=_0x28203d[_0x240fad(0x1cc)]('/')[_0x240fad(0x1df)]()||_0x28203d;return _0x56447c[_0x240fad(0x1cc)]('-')[_0x240fad(0x1e9)](_0x11d0f5=>_0x11d0f5[_0x240fad(0x1ce)](0x0)['toUpperCase']()+_0x11d0f5[_0x240fad(0x1ed)](0x1)['toLowerCase']())[_0x240fad(0x206)]('');}static[a240_0x3caaf3(0x1f0)](_0x585cbd){const _0x5a7c34=a240_0x3caaf3,_0x53573e=_0x585cbd['split']('/')[_0x5a7c34(0x1df)]()||_0x585cbd;return _0x53573e[_0x5a7c34(0x1cc)]('-')[_0x5a7c34(0x1e9)](_0x2c84af=>_0x2c84af[_0x5a7c34(0x1ce)](0x0)[_0x5a7c34(0x1e4)]()+_0x2c84af[_0x5a7c34(0x1ed)](0x1)[_0x5a7c34(0x1c6)]())[_0x5a7c34(0x206)]('\x20');}static[a240_0x3caaf3(0x1f3)](_0x52890c,_0x7e92ee,_0x43300e){const _0x3e0399=a240_0x3caaf3,_0xed19b6=this[_0x3e0399(0x1fa)](_0x7e92ee),_0x3b9437=this['toDisplayTitle'](_0x7e92ee),{createdAt:_0x5105be,createdDate:_0x5155fd,createdTime:_0x3f1d21}=this['formatLocalTimestamp'](new Date());let _0x1d07d5=_0x52890c[_0x3e0399(0x1ff)](/\{CliVersion\}/g,CLI_VERSION)[_0x3e0399(0x1ff)](/\{ComponentName\}/g,_0xed19b6)[_0x3e0399(0x1ff)](/\{DisplayTitle\}/g,_0x3b9437)[_0x3e0399(0x1ff)](/\{PageName\}/g,_0x7e92ee)[_0x3e0399(0x1ff)](/\{TemplateName\}/g,_0x43300e)[_0x3e0399(0x1ff)](/\{CreatedAt\}/g,_0x5105be)[_0x3e0399(0x1ff)](/\{CreatedDate\}/g,_0x5155fd)[_0x3e0399(0x1ff)](/\{CreatedTime\}/g,_0x3f1d21);return _0x1d07d5;}static[a240_0x3caaf3(0x1c5)](_0x429dc5,_0x2ba628,_0x4af5a5,_0x234291,_0x4ee3bb,_0x2dc0ff,_0x13c883,_0x5357ce){const _0x3478e8=a240_0x3caaf3,_0xc5750f=new Date(),_0x56eb80=_0xc5750f[_0x3478e8(0x1ee)](),_0x44f190=_0x4af5a5[_0x3478e8(0x1e9)](_0x440714=>{const _0x11fe18=_0x3478e8,_0xe82ff8=[_0x11fe18(0x1f8)+_0x440714[_0x11fe18(0x1d0)]+'\x22',_0x11fe18(0x1f7)+_0x440714['tableName']+'\x22',_0x11fe18(0x1f4)+_0x440714[_0x11fe18(0x1dd)]+'\x22'];return _0x440714[_0x11fe18(0x1c7)]&&_0xe82ff8[_0x11fe18(0x1e0)](_0x11fe18(0x1dc)+_0x440714[_0x11fe18(0x1c7)]+'\x22'),_0x11fe18(0x200)+_0xe82ff8[_0x11fe18(0x206)](',\x20')+_0x11fe18(0x1d3);})[_0x3478e8(0x206)](''),_0x2d3126=_0x234291||_0x4af5a5[0x0]?.['alias']||_0x3478e8(0x1d4);let _0x56e2c6=_0x429dc5[_0x3478e8(0x1ff)](/\{AppCode\}/g,_0x2ba628)[_0x3478e8(0x1ff)](/\{ModelConfigs\}/g,_0x44f190)[_0x3478e8(0x1ff)](/\{ExampleModelName\}/g,_0x2d3126)[_0x3478e8(0x1ff)](/\{ApiFileName\}/g,_0x4ee3bb||'api')[_0x3478e8(0x1ff)](/\{ConfigName\}/g,_0x2dc0ff||'default')[_0x3478e8(0x1ff)](/\{ClientConfigParam\}/g,_0x13c883||'')[_0x3478e8(0x1ff)](/\{VarPrefix\}/g,_0x5357ce||_0x3478e8(0x1fc))[_0x3478e8(0x1ff)](/\{CreatedAt\}/g,_0x56eb80);return _0x56e2c6;}static async['processTemplate'](_0x45a5d3,_0x56d3af,_0x17a096,_0x284cf3,_0x47a917=!![]){const _0x1c8de1=a240_0x3caaf3,_0x3ef42f=Date['now']();try{_0x47a917&&logger[_0x1c8de1(0x1f2)](_0x1c8de1(0x1cb),_0x1c8de1(0x1ef),{'templatePath':_0x45a5d3,'targetPath':_0x56d3af,'pageName':_0x17a096,'templateName':_0x284cf3});await a240_0x1ceaf0[_0x1c8de1(0x207)]['mkdir'](_0x56d3af,{'recursive':!![]}),await this[_0x1c8de1(0x1e5)](_0x45a5d3,_0x56d3af,_0x17a096,_0x284cf3);if(_0x47a917){const _0xb07c2f=Date[_0x1c8de1(0x1cf)]()-_0x3ef42f;logger[_0x1c8de1(0x1f1)]('template',_0x1c8de1(0x202),_0xb07c2f,{'pageName':_0x17a096,'templateName':_0x284cf3});}}catch(_0x4599fb){if(_0x47a917){const _0x2e2124=Date[_0x1c8de1(0x1cf)]()-_0x3ef42f;logger['error'](_0x1c8de1(0x1cb),_0x1c8de1(0x1d7),{'templatePath':_0x45a5d3,'targetPath':_0x56d3af,'pageName':_0x17a096,'templateName':_0x284cf3,'error':_0x4599fb instanceof Error?_0x4599fb[_0x1c8de1(0x1eb)]:String(_0x4599fb),'duration':_0x2e2124});}throw _0x4599fb;}}static async['processDirectory'](_0x3a2c12,_0x361008,_0x131eef,_0x4506d2){const _0x4e3bfe=a240_0x3caaf3,_0x6daf17=await a240_0x1ceaf0[_0x4e3bfe(0x207)][_0x4e3bfe(0x1fd)](_0x3a2c12,{'withFileTypes':!![]});for(const _0x4c010 of _0x6daf17){const _0x26c560=a240_0x5f3431[_0x4e3bfe(0x206)](_0x3a2c12,_0x4c010[_0x4e3bfe(0x1dd)]);let _0x436658=a240_0x5f3431['join'](_0x361008,_0x4c010[_0x4e3bfe(0x1dd)]);_0x4c010['name']['endsWith'](_0x4e3bfe(0x1e1))&&(_0x436658=a240_0x5f3431['join'](_0x361008,_0x4c010['name'][_0x4e3bfe(0x1ff)](/\.tpl$/,'')));if(_0x4c010[_0x4e3bfe(0x1e6)]())await a240_0x1ceaf0[_0x4e3bfe(0x207)][_0x4e3bfe(0x1f9)](_0x436658,{'recursive':!![]}),await this[_0x4e3bfe(0x1e5)](_0x26c560,_0x436658,_0x131eef,_0x4506d2);else _0x4c010[_0x4e3bfe(0x205)]()&&await this[_0x4e3bfe(0x208)](_0x26c560,_0x436658,_0x131eef,_0x4506d2);}}static async['processFile'](_0x301e7a,_0x550af4,_0xc4250a,_0x2df0fa){const _0x4af73f=a240_0x3caaf3,_0x4d13fb=a240_0x5f3431['extname'](_0x301e7a)[_0x4af73f(0x1c6)]();_0x301e7a[_0x4af73f(0x1d8)](_0x4af73f(0x1e1))&&(_0x550af4=_0x550af4[_0x4af73f(0x1ff)](/\.tpl$/,''));const _0xf5d914=[_0x4af73f(0x1c8),_0x4af73f(0x1c1),_0x4af73f(0x201),_0x4af73f(0x1f5),_0x4af73f(0x1de),_0x4af73f(0x1c3),'.css',_0x4af73f(0x1fb),_0x4af73f(0x1e1)];if(_0xf5d914[_0x4af73f(0x1da)](_0x4d13fb)||_0x301e7a[_0x4af73f(0x1d8)](_0x4af73f(0x1e1))){const _0x485925=await a240_0x1ceaf0[_0x4af73f(0x207)][_0x4af73f(0x1e3)](_0x301e7a,'utf8'),_0x2e19ec=this[_0x4af73f(0x1f3)](_0x485925,_0xc4250a,_0x2df0fa);await a240_0x1ceaf0[_0x4af73f(0x207)][_0x4af73f(0x1ca)](_0x550af4,_0x2e19ec,'utf8');}else await a240_0x1ceaf0['promises']['copyFile'](_0x301e7a,_0x550af4);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a241_0x376a(){const _0x29165c=['now','3suRkcN','331895sOdzuQ','number','trim','parse','stableVersion','2307192TANfKL','\x20update','https://www.npmjs.com/package/','true','latest','checkedAt','update-check.json','toLowerCase',',\x20run:\x20','2zsxoDu','utf8','rabetbase-cli','17854790bAaXnI','9050598itQkXM','gte','lastNotifiedAt','valid','3096476AShPpK','2014050mfiOac','570510QNzhme','object','7WoMZzx','.cache'];a241_0x376a=function(){return _0x29165c;};return a241_0x376a();}(function(_0x2af5d2,_0x4a2024){const _0x39d839=a241_0x72e3,_0x57449e=_0x2af5d2();while(!![]){try{const _0x455ace=-parseInt(_0x39d839(0x6a))/0x1*(-parseInt(_0x39d839(0x7e))/0x2)+parseInt(_0x39d839(0x6f))/0x3*(-parseInt(_0x39d839(0x68))/0x4)+parseInt(_0x39d839(0x70))/0x5+-parseInt(_0x39d839(0x69))/0x6+-parseInt(_0x39d839(0x6c))/0x7*(-parseInt(_0x39d839(0x75))/0x8)+-parseInt(_0x39d839(0x82))/0x9+parseInt(_0x39d839(0x81))/0xa;if(_0x455ace===_0x4a2024)break;else _0x57449e['push'](_0x57449e['shift']());}catch(_0xd38e75){_0x57449e['push'](_0x57449e['shift']());}}}(a241_0x376a,0x91597));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a241_0x5b2d72 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';function a241_0x72e3(_0x241ff4,_0x31deae){_0x241ff4=_0x241ff4-0x65;const _0x376ab3=a241_0x376a();let _0x72e372=_0x376ab3[_0x241ff4];return _0x72e372;}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 _0x4d6736=a241_0x72e3,_0x52a604=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x4d6736(0x72)]()[_0x4d6736(0x7c)]();return _0x52a604==='1'||_0x52a604===_0x4d6736(0x78)||_0x52a604==='yes';}function cacheRoot(){const _0x1f80d0=a241_0x72e3;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x1f80d0(0x6d));}export function getUpdateNoticeCachePath(){const _0x3e7134=a241_0x72e3;return join(cacheRoot(),_0x3e7134(0x80),_0x3e7134(0x7b));}async function readUpdateNoticeCache(){const _0x54fbe8=a241_0x72e3;try{const _0x18c4b4=await readFile(getUpdateNoticeCachePath(),_0x54fbe8(0x7f)),_0x55d562=JSON[_0x54fbe8(0x73)](_0x18c4b4);if(!_0x55d562||typeof _0x55d562!==_0x54fbe8(0x6b))return{};return _0x55d562;}catch{return{};}}async function writeUpdateNoticeCache(_0x2ad8b8){const _0x5075f8=a241_0x72e3;try{const _0x14b893=getUpdateNoticeCachePath();await mkdir(dirname(_0x14b893),{'recursive':!![]}),await writeFile(_0x14b893,JSON['stringify'](_0x2ad8b8,null,0x2)+'\x0a',_0x5075f8(0x7f));}catch{}}function isFreshCheck(_0x4a1708,_0x481214){const _0x16253d=a241_0x72e3;return typeof _0x4a1708[_0x16253d(0x7a)]===_0x16253d(0x71)&&_0x481214-_0x4a1708[_0x16253d(0x7a)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x26dc45,_0x338922,_0x154b63){const _0x34e13f=a241_0x72e3;return _0x26dc45['lastNotifiedVersion']===_0x338922&&typeof _0x26dc45[_0x34e13f(0x66)]===_0x34e13f(0x71)&&_0x154b63-_0x26dc45['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x13fb7c){const _0x1c05c2=a241_0x72e3;return _0x1c05c2(0x77)+NPM_PACKAGE_NAME+'/v/'+_0x13fb7c;}export async function resolveLatestUpdateNotice(){const _0x47f997=a241_0x72e3;if(isUpdateNoticeDisabled())return null;try{const _0x597f2c=Date[_0x47f997(0x6e)](),_0x4ded3e=getCliVersion(),_0x58b1a9=await readUpdateNoticeCache();let _0x52f48e=isFreshCheck(_0x58b1a9,_0x597f2c)?_0x58b1a9[_0x47f997(0x79)]?.[_0x47f997(0x72)]():undefined;if(!_0x52f48e&&!isFreshCheck(_0x58b1a9,_0x597f2c)){const _0x1d777c=await getCliVersionPolicy();_0x52f48e=_0x1d777c?.[_0x47f997(0x74)]?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x58b1a9,'checkedAt':_0x597f2c,'latest':_0x52f48e,'failed':!_0x52f48e});}if(!_0x52f48e||!a241_0x5b2d72['valid'](_0x4ded3e)||!a241_0x5b2d72[_0x47f997(0x67)](_0x52f48e))return null;if(a241_0x5b2d72[_0x47f997(0x65)](_0x4ded3e,_0x52f48e))return null;if(isRecentlyNotified(_0x58b1a9,_0x52f48e,_0x597f2c))return null;const _0x104115=CLI_BIN_NAME+_0x47f997(0x76);return await writeUpdateNoticeCache({..._0x58b1a9,'checkedAt':isFreshCheck(_0x58b1a9,_0x597f2c)?_0x58b1a9[_0x47f997(0x7a)]:_0x597f2c,'latest':_0x52f48e,'failed':![],'lastNotifiedVersion':_0x52f48e,'lastNotifiedAt':_0x597f2c}),{'command':_0x104115,'current':_0x4ded3e,'latest':_0x52f48e,'url':buildNpmVersionUrl(_0x52f48e),'message':CLI_BIN_NAME+'\x20'+_0x52f48e+'\x20available,\x20current\x20'+_0x4ded3e+_0x47f997(0x7d)+_0x104115};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5f0375,_0x3235f3){var _0x537dde=a242_0x4fbf,_0x2cecfa=_0x5f0375();while(!![]){try{var _0x429fdd=-parseInt(_0x537dde(0x17d))/0x1*(parseInt(_0x537dde(0x179))/0x2)+-parseInt(_0x537dde(0x176))/0x3+parseInt(_0x537dde(0x177))/0x4+parseInt(_0x537dde(0x178))/0x5+-parseInt(_0x537dde(0x175))/0x6+-parseInt(_0x537dde(0x17c))/0x7*(-parseInt(_0x537dde(0x17e))/0x8)+-parseInt(_0x537dde(0x17b))/0x9*(-parseInt(_0x537dde(0x17a))/0xa);if(_0x429fdd===_0x3235f3)break;else _0x2cecfa['push'](_0x2cecfa['shift']());}catch(_0x4573ba){_0x2cecfa['push'](_0x2cecfa['shift']());}}}(a242_0x2040,0x36360));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a242_0x4fbf(_0x533e68,_0x2e7f11){_0x533e68=_0x533e68-0x175;var _0x2040d9=a242_0x2040();var _0x4fbffa=_0x2040d9[_0x533e68];return _0x4fbffa;}function a242_0x2040(){var _0x28a402=['833HzhzMu','8SOXeAA','17144DDFWBX','1051704ABeEqB','389838oKSUQv','1315572nSPiBO','331085RvzdhS','36724AhyjXU','1730hjXphG','1251HRSGRv'];a242_0x2040=function(){return _0x28a402;};return a242_0x2040();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a243_0x4cb4(_0x9c8cf4,_0x5ae6f5){_0x9c8cf4=_0x9c8cf4-0xb9;var _0xe2535a=a243_0xe253();var _0x4cb41d=_0xe2535a[_0x9c8cf4];return _0x4cb41d;}(function(_0x49c9b2,_0x20edce){var _0x223ee4=a243_0x4cb4,_0x1d24f4=_0x49c9b2();while(!![]){try{var _0x26e827=parseInt(_0x223ee4(0xc0))/0x1*(parseInt(_0x223ee4(0xbd))/0x2)+parseInt(_0x223ee4(0xbf))/0x3+-parseInt(_0x223ee4(0xb9))/0x4+parseInt(_0x223ee4(0xba))/0x5+-parseInt(_0x223ee4(0xbc))/0x6+-parseInt(_0x223ee4(0xbe))/0x7+-parseInt(_0x223ee4(0xbb))/0x8;if(_0x26e827===_0x20edce)break;else _0x1d24f4['push'](_0x1d24f4['shift']());}catch(_0x1ea8a2){_0x1d24f4['push'](_0x1d24f4['shift']());}}}(a243_0xe253,0x835ce));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x5ac930,_0x430f32){setActiveCookie(_0x5ac930);try{return await _0x430f32();}finally{clearActiveCookie();}}function a243_0xe253(){var _0x49bc91=['1594327vgdyIy','1283982JPxJOW','1lAEoQH','1817736kixOPq','5210440xVOejJ','934960pBqHUr','6246078sEYXvs','1816116owcvAl'];a243_0xe253=function(){return _0x49bc91;};return a243_0xe253();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x331354,_0x5e65b3){var _0x4ccf3e=a244_0x53b8,_0x2318d5=_0x331354();while(!![]){try{var _0x24bc87=parseInt(_0x4ccf3e(0xc2))/0x1*(parseInt(_0x4ccf3e(0xbe))/0x2)+parseInt(_0x4ccf3e(0xc0))/0x3*(-parseInt(_0x4ccf3e(0xc7))/0x4)+parseInt(_0x4ccf3e(0xbd))/0x5*(parseInt(_0x4ccf3e(0xbc))/0x6)+-parseInt(_0x4ccf3e(0xc6))/0x7+parseInt(_0x4ccf3e(0xc1))/0x8*(-parseInt(_0x4ccf3e(0xc4))/0x9)+parseInt(_0x4ccf3e(0xc3))/0xa+-parseInt(_0x4ccf3e(0xbf))/0xb*(-parseInt(_0x4ccf3e(0xbb))/0xc);if(_0x24bc87===_0x5e65b3)break;else _0x2318d5['push'](_0x2318d5['shift']());}catch(_0x39cda6){_0x2318d5['push'](_0x2318d5['shift']());}}}(a244_0x3502,0x52b38));function a244_0x3502(){var _0x49c1cc=['195424QVAzBE','write','767916qtQrpW','1434BYVotJ','235jupYhH','2EwragR','143lMFdWk','18VmoAXN','80GYVMIY','220437GjVTCz','6569450YPYEOA','430713dlnxuH','stderr','4270518qCVQJq'];a244_0x3502=function(){return _0x49c1cc;};return a244_0x3502();}function a244_0x53b8(_0x1286b1,_0x25540b){_0x1286b1=_0x1286b1-0xba;var _0x3502cb=a244_0x3502();var _0x53b8c7=_0x3502cb[_0x1286b1];return _0x53b8c7;}export function writeCliSideChannelLine(_0x2ff775){var _0x1f0f74=a244_0x53b8;process[_0x1f0f74(0xc5)][_0x1f0f74(0xba)](_0x2ff775+'\x0a');}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.7-beta.1",
|
|
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": [
|