@lovrabet/rabetbase-cli 2.3.10 → 2.3.11
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/async-task.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 -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/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.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 -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/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -0
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.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/mutations.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/notification/config-list.js +1 -1
- package/lib/commands/notification/index.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/task/index.js +1 -1
- package/lib/commands/task/status.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-index-auditor.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/error-output.js +1 -1
- package/lib/framework/explicit-yes.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 a249_0x4f95(_0xad5278,_0x63db7){_0xad5278=_0xad5278-0x105;const _0x13482b=a249_0x1348();let _0x4f959a=_0x13482b[_0xad5278];return _0x4f959a;}(function(_0x377831,_0x6f7ac7){const _0x4d83bc=a249_0x4f95,_0x342510=_0x377831();while(!![]){try{const _0x3a2214=parseInt(_0x4d83bc(0x10e))/0x1+parseInt(_0x4d83bc(0x10a))/0x2+-parseInt(_0x4d83bc(0x105))/0x3+parseInt(_0x4d83bc(0x107))/0x4+-parseInt(_0x4d83bc(0x10f))/0x5+-parseInt(_0x4d83bc(0x106))/0x6*(-parseInt(_0x4d83bc(0x108))/0x7)+parseInt(_0x4d83bc(0x10b))/0x8;if(_0x3a2214===_0x6f7ac7)break;else _0x342510['push'](_0x342510['shift']());}catch(_0x30236c){_0x342510['push'](_0x342510['shift']());}}}(a249_0x1348,0x7e1bf));function toFiniteNumber(_0x55a7d5){const _0x4f564e=a249_0x4f95;if(typeof _0x55a7d5==='number'&&Number[_0x4f564e(0x110)](_0x55a7d5))return _0x55a7d5;if(typeof _0x55a7d5===_0x4f564e(0x10d)){const _0xd9dc37=_0x55a7d5[_0x4f564e(0x10c)]();if(!_0xd9dc37)return undefined;const _0x240850=Number(_0xd9dc37);if(Number[_0x4f564e(0x110)](_0x240850))return _0x240850;}return undefined;}function a249_0x1348(){const _0x425437=['1486230PrCarg','6dAshSk','625360auDLPd','4455164gvWRsC','object','201364tXEana','3063568VmLgno','trim','string','379612zRZrGm','3220395lTEJdK','isFinite'];a249_0x1348=function(){return _0x425437;};return a249_0x1348();}export function normalizeEntityWithIdResponse(_0x384595){const _0x1e4193=a249_0x4f95,_0x325539=toFiniteNumber(_0x384595);if(_0x325539!==undefined)return{'id':_0x325539,'entity':{'id':_0x325539}};if(!_0x384595||typeof _0x384595!==_0x1e4193(0x109))return{'id':undefined,'entity':{}};const _0x3ed833={..._0x384595},_0x2875d4=toFiniteNumber(_0x3ed833['id']);return _0x2875d4!==undefined&&(_0x3ed833['id']=_0x2875d4),{'id':_0x2875d4,'entity':_0x3ed833};}
|
package/lib/utils/file-utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2fc02a,_0x55ad7e){const _0xd8dad=a250_0x38c0,_0x3e4201=_0x2fc02a();while(!![]){try{const _0x2d9fb7=parseInt(_0xd8dad(0x140))/0x1*(parseInt(_0xd8dad(0x13f))/0x2)+-parseInt(_0xd8dad(0x13a))/0x3+parseInt(_0xd8dad(0x141))/0x4+parseInt(_0xd8dad(0x13b))/0x5*(-parseInt(_0xd8dad(0x13e))/0x6)+parseInt(_0xd8dad(0x139))/0x7+parseInt(_0xd8dad(0x142))/0x8*(parseInt(_0xd8dad(0x13d))/0x9)+parseInt(_0xd8dad(0x13c))/0xa;if(_0x2d9fb7===_0x55ad7e)break;else _0x3e4201['push'](_0x3e4201['shift']());}catch(_0x4ee589){_0x3e4201['push'](_0x3e4201['shift']());}}}(a250_0x4b2e,0x9203a));function a250_0x38c0(_0x564e84,_0x2535db){_0x564e84=_0x564e84-0x139;const _0x4b2e00=a250_0x4b2e();let _0x38c0b1=_0x4b2e00[_0x564e84];return _0x38c0b1;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x30e5f3,_0x10e560){const _0x1b81cf=statSync(_0x30e5f3);if(_0x1b81cf['isDirectory']()){!existsSync(_0x10e560)&&mkdirSync(_0x10e560,{'recursive':!![]});const _0x54ebab=readdirSync(_0x30e5f3);for(const _0x3ce8a6 of _0x54ebab){await copyDir(join(_0x30e5f3,_0x3ce8a6),join(_0x10e560,_0x3ce8a6));}}else copyFileSync(_0x30e5f3,_0x10e560);}export function ensureDir(_0x43cc6e){!existsSync(_0x43cc6e)&&mkdirSync(_0x43cc6e,{'recursive':!![]});}function a250_0x4b2e(){const _0x22a05a=['726432dtCSLo','2145036AZUFKC','320285oMMGTl','5569120NDZcRQ','9ytUFwr','36vdJUxg','534372MMDrvo','2FtLlGg','855164deqyMq','2308616mKjBWx'];a250_0x4b2e=function(){return _0x22a05a;};return a250_0x4b2e();}export function pathExists(_0xc441aa){return existsSync(_0xc441aa);}
|
package/lib/utils/guides-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a251_0x402c09=a251_0x4115;function a251_0x4115(_0x40c6d8,_0x3102df){_0x40c6d8=_0x40c6d8-0x181;const _0x1eea93=a251_0x1eea();let _0x411557=_0x1eea93[_0x40c6d8];return _0x411557;}(function(_0x265ec5,_0x4365b4){const _0x4ba339=a251_0x4115,_0x7582a0=_0x265ec5();while(!![]){try{const _0x506592=-parseInt(_0x4ba339(0x19b))/0x1*(parseInt(_0x4ba339(0x1a5))/0x2)+parseInt(_0x4ba339(0x192))/0x3+-parseInt(_0x4ba339(0x193))/0x4+parseInt(_0x4ba339(0x1a0))/0x5*(-parseInt(_0x4ba339(0x195))/0x6)+-parseInt(_0x4ba339(0x18b))/0x7*(-parseInt(_0x4ba339(0x196))/0x8)+parseInt(_0x4ba339(0x1a4))/0x9+-parseInt(_0x4ba339(0x186))/0xa*(-parseInt(_0x4ba339(0x18d))/0xb);if(_0x506592===_0x4365b4)break;else _0x7582a0['push'](_0x7582a0['shift']());}catch(_0x3a7abd){_0x7582a0['push'](_0x7582a0['shift']());}}}(a251_0x1eea,0x8b50c));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a251_0x1eea(){const _0x4d3c1f=['skillTemplate','push','title','31qYTBcF','trimEnd','path','.lovrabet/skill/guides','.lovrabet','1017745OuoTEs','statusText','\x0a\x0a>更新时间:','map','7255053REAxdn','30486PCoYYk','utf-8','content','cache','CDN\x20数据中缺少\x20skillTemplate','join','984820sXVDUj','extendContent','object','CDN\x20返回数据格式错误','replace','1039556DzIeVw','json','11vOMzsv','entries','guides','length','lastUpdated','167040VRwCBX','1824404uQqcVE','application/json','6JiWyvL','40jGlSKh','keys'];a251_0x1eea=function(){return _0x4d3c1f;};return a251_0x1eea();}import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x38bca1=getTemplateBaseUrl();return _0x38bca1+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a251_0x402c09(0x19f),a251_0x402c09(0x183));export async function fetchGuidesFromCDN(){const _0x15baa5=a251_0x402c09,_0x429cdb=getGuidesCdnUrl(),_0x28b32f=await fetch(_0x429cdb,{'headers':{'Accept':_0x15baa5(0x194)}});if(!_0x28b32f['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x28b32f['status']+'\x20'+_0x28b32f[_0x15baa5(0x1a1)]);const _0x444b69=await _0x28b32f[_0x15baa5(0x18c)]();if(!_0x444b69[_0x15baa5(0x18f)]||typeof _0x444b69[_0x15baa5(0x18f)]!==_0x15baa5(0x188))throw new Error(_0x15baa5(0x189));return _0x444b69;}export function writeGuidesToProject(_0x4c90a6,_0x42cd2c,_0x5f343e=a251_0x402c09(0x19e),_0x37e464){const _0x300bd7=a251_0x402c09,_0x4e0e1d=join(_0x42cd2c,_0x5f343e);mkdirSync(_0x4e0e1d,{'recursive':!![]});for(const [_0x51406c,_0x1b3856]of Object['entries'](_0x4c90a6[_0x300bd7(0x18f)])){let _0x198b9a=_0x1b3856['content'];_0x1b3856['lastUpdated']&&(_0x198b9a=appendUpdateTime(_0x198b9a,_0x1b3856[_0x300bd7(0x191)])),writeFileSync(join(_0x4e0e1d,_0x51406c+'.md'),_0x198b9a,_0x300bd7(0x181));}}export function appendUpdateTime(_0x30dd6f,_0xe8e25b){const _0x6b3cea=a251_0x402c09;return _0x30dd6f=_0x30dd6f[_0x6b3cea(0x18a)](/\n*>更新时间:.*$/m,''),_0x30dd6f[_0x6b3cea(0x19c)]()+(_0x6b3cea(0x1a2)+_0xe8e25b);}export function getSkillTemplate(_0x56319c){const _0x422a84=a251_0x402c09;return _0x56319c['skillTemplate']?.[_0x422a84(0x182)]||'';}export function appendExtendContents(_0x1a0d93,_0x55c850,_0x3adde6){const _0x147a16=a251_0x402c09,_0x4cc7cb=[];for(const [,_0x4817af]of Object['entries'](_0x55c850['guides'])){_0x4817af[_0x147a16(0x187)]&&_0x4cc7cb[_0x147a16(0x199)](_0x4817af['extendContent']['trimEnd']());}if(_0x4cc7cb[_0x147a16(0x190)]===0x0)return _0x1a0d93;return _0x1a0d93[_0x147a16(0x19c)]()+'\x0a\x0a'+_0x4cc7cb[_0x147a16(0x185)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x27f9b3,_0x49ef31,_0x5c7533){const _0x2ae94d=a251_0x402c09,_0x2ca25c=getSkillTemplate(_0x27f9b3);if(!_0x2ca25c)throw new Error(_0x2ae94d(0x184));const _0x584e51=dirname(_0x49ef31);mkdirSync(_0x584e51,{'recursive':!![]});let _0x168c66=_0x2ca25c[_0x2ae94d(0x18a)](/\{\{IDE_NAME\}\}/g,_0x5c7533);_0x168c66=appendExtendContents(_0x168c66,_0x27f9b3),_0x27f9b3[_0x2ae94d(0x198)][_0x2ae94d(0x191)]&&(_0x168c66=appendUpdateTime(_0x168c66,_0x27f9b3['skillTemplate'][_0x2ae94d(0x191)])),writeFileSync(_0x49ef31,_0x168c66,_0x2ae94d(0x181));}export async function installGuides(_0x512900){const _0x5eb8ae=a251_0x402c09,_0x1b248d=await fetchGuidesFromCDN();return writeGuidesToProject(_0x1b248d,_0x512900),Object[_0x5eb8ae(0x197)](_0x1b248d['guides'])[_0x5eb8ae(0x190)];}export function getGuidesSummary(_0x5151d0){const _0x2aa1ca=a251_0x402c09;return Object[_0x2aa1ca(0x18e)](_0x5151d0[_0x2aa1ca(0x18f)])[_0x2aa1ca(0x1a3)](([_0x59faf0,_0x2ecf72])=>({'key':_0x59faf0,'title':_0x2ecf72[_0x2aa1ca(0x19a)],'path':_0x2ecf72[_0x2aa1ca(0x19d)]}));}
|
package/lib/utils/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a252_0x26f8(){const _0x317c16=['11cocNmq','headers','text','18VyRMDv','fetch','539373ohbkNf','41166mbhnPj','signal','12SFnPAR','url','ms\x20后进行第\x20','log','20iMWhMf','242NOhTxf','abort','40125DcrScr','ECONNRESET','Request\x20failed','status','2409323ziGWxe','statusText','includes','json','12056180LTYxBP','AbortError','TypeError','16ONhduk','8728291aPASbM','get','2422aFACAp','name','\x20次重试...','message','content-type'];a252_0x26f8=function(){return _0x317c16;};return a252_0x26f8();}(function(_0x3780d9,_0x265fba){const _0x320baf=a252_0x566c,_0x42e998=_0x3780d9();while(!![]){try{const _0x40b2e7=-parseInt(_0x320baf(0x14b))/0x1*(parseInt(_0x320baf(0x15d))/0x2)+parseInt(_0x320baf(0x155))/0x3+parseInt(_0x320baf(0x15c))/0x4*(-parseInt(_0x320baf(0x15f))/0x5)+-parseInt(_0x320baf(0x153))/0x6*(parseInt(_0x320baf(0x163))/0x7)+-parseInt(_0x320baf(0x148))/0x8*(parseInt(_0x320baf(0x156))/0x9)+-parseInt(_0x320baf(0x145))/0xa*(-parseInt(_0x320baf(0x150))/0xb)+parseInt(_0x320baf(0x158))/0xc*(parseInt(_0x320baf(0x149))/0xd);if(_0x40b2e7===_0x265fba)break;else _0x42e998['push'](_0x42e998['shift']());}catch(_0x1741b4){_0x42e998['push'](_0x42e998['shift']());}}}(a252_0x26f8,0xa67ba));export async function httpRequest(_0x2ff3ea,_0x1c4a52={}){const _0x5acd4b=a252_0x566c,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x1c4a52;let _0x177607=null;for(let _0x1e1015=0x0;_0x1e1015<=retries;_0x1e1015++){try{const _0x2ac204=new AbortController(),_0x2fcb61=setTimeout(()=>_0x2ac204[_0x5acd4b(0x15e)](),timeout),_0x5d176d=await fetch(_0x2ff3ea,{'headers':headers,'signal':_0x2ac204[_0x5acd4b(0x157)]});clearTimeout(_0x2fcb61);let _0x2442e8;const _0x5e438d=_0x5d176d[_0x5acd4b(0x151)][_0x5acd4b(0x14a)](_0x5acd4b(0x14f));return _0x5e438d?.[_0x5acd4b(0x165)]('application/json')?_0x2442e8=await _0x5d176d[_0x5acd4b(0x166)]():_0x2442e8=await _0x5d176d[_0x5acd4b(0x152)](),{'ok':_0x5d176d['ok'],'status':_0x5d176d[_0x5acd4b(0x162)],'statusText':_0x5d176d[_0x5acd4b(0x164)],'data':_0x2442e8,'headers':_0x5d176d[_0x5acd4b(0x151)],'url':_0x5d176d[_0x5acd4b(0x159)],'text':()=>_0x5d176d[_0x5acd4b(0x152)]()};}catch(_0x45ff2a){_0x177607=_0x45ff2a instanceof Error?_0x45ff2a:new Error(String(_0x45ff2a));if(_0x1e1015===retries)break;if(shouldRetry(_0x45ff2a)){console[_0x5acd4b(0x15b)]('*\x20请求失败,'+retryDelay+_0x5acd4b(0x15a)+(_0x1e1015+0x1)+_0x5acd4b(0x14d)),await sleep(retryDelay);continue;}else break;}}throw _0x177607||new Error(_0x5acd4b(0x161));}function shouldRetry(_0x1b58ae){const _0x104411=a252_0x566c;if(_0x1b58ae instanceof Error){if(_0x1b58ae[_0x104411(0x14c)]===_0x104411(0x146))return![];if(_0x1b58ae[_0x104411(0x14c)]===_0x104411(0x147)&&_0x1b58ae[_0x104411(0x14e)]['includes'](_0x104411(0x154)))return!![];if(_0x1b58ae[_0x104411(0x14e)][_0x104411(0x165)](_0x104411(0x160)))return!![];if(_0x1b58ae['message']['includes']('ENOTFOUND'))return![];}return![];}function a252_0x566c(_0x1e4d58,_0x3313cf){_0x1e4d58=_0x1e4d58-0x145;const _0x26f8d5=a252_0x26f8();let _0x566c7b=_0x26f8d5[_0x1e4d58];return _0x566c7b;}function sleep(_0x2dc813){return new Promise(_0x913dd4=>setTimeout(_0x913dd4,_0x2dc813));}export function validateUrl(_0x16614f){try{return new URL(_0x16614f),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4f207c,_0xd43563){const _0x2e861a=a253_0x40ac,_0x10385b=_0x4f207c();while(!![]){try{const _0x360a06=-parseInt(_0x2e861a(0x1f4))/0x1+-parseInt(_0x2e861a(0x1f5))/0x2+parseInt(_0x2e861a(0x1fe))/0x3*(parseInt(_0x2e861a(0x1fb))/0x4)+parseInt(_0x2e861a(0x1f3))/0x5+-parseInt(_0x2e861a(0x1f7))/0x6*(parseInt(_0x2e861a(0x1f2))/0x7)+-parseInt(_0x2e861a(0x1f8))/0x8+-parseInt(_0x2e861a(0x1fd))/0x9*(-parseInt(_0x2e861a(0x1f6))/0xa);if(_0x360a06===_0xd43563)break;else _0x10385b['push'](_0x10385b['shift']());}catch(_0x3c49fd){_0x10385b['push'](_0x10385b['shift']());}}}(a253_0x1a77,0x25457));function env(_0x563a8b){return process.env[`RABETBASE_${_0x563a8b}`]||process.env[`LOVRABET_${_0x563a8b}`]||undefined;}export function isNonInteractive(_0x384625){const _0x157392=a253_0x40ac;return!!(_0x384625['nonInteractive']||_0x384625['ci']||env('CI')===_0x157392(0x1f9)||process.env.CI===_0x157392(0x1f9)||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0xe41d27=a253_0x40ac;if(!process[_0xe41d27(0x1ff)]['isTTY'])return![];try{const _0x342be9=process[_0xe41d27(0x1ff)][_0xe41d27(0x1fc)];return process[_0xe41d27(0x1ff)][_0xe41d27(0x1fa)](!![]),process[_0xe41d27(0x1ff)][_0xe41d27(0x1fa)](_0x342be9??![]),!![];}catch{return![];}}function a253_0x40ac(_0xe5e4fe,_0x3352b1){_0xe5e4fe=_0xe5e4fe-0x1f2;const _0x1a77a9=a253_0x1a77();let _0x40acae=_0x1a77a9[_0xe5e4fe];return _0x40acae;}function a253_0x1a77(){const _0x447a1d=['158709lynmlK','stdin','29722VCjnfa','63950ntczWR','244656hHrpNB','162828OaXOGB','3715470oClAiH','174tBDDaR','375880jzzccN','true','setRawMode','20ayJokn','isRaw','9pJcSSl'];a253_0x1a77=function(){return _0x447a1d;};return a253_0x1a77();}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a254_0x5f4897=a254_0x5491;function a254_0x5491(_0x513826,_0x2b3266){_0x513826=_0x513826-0x167;const _0xdedb02=a254_0xdedb();let _0x5491a7=_0xdedb02[_0x513826];return _0x5491a7;}(function(_0x4bf495,_0x2a579d){const _0xa100ab=a254_0x5491,_0x36a943=_0x4bf495();while(!![]){try{const _0xb08598=parseInt(_0xa100ab(0x171))/0x1*(parseInt(_0xa100ab(0x199))/0x2)+parseInt(_0xa100ab(0x18b))/0x3+-parseInt(_0xa100ab(0x17c))/0x4+-parseInt(_0xa100ab(0x16a))/0x5+-parseInt(_0xa100ab(0x19a))/0x6+parseInt(_0xa100ab(0x169))/0x7+parseInt(_0xa100ab(0x195))/0x8*(parseInt(_0xa100ab(0x181))/0x9);if(_0xb08598===_0x2a579d)break;else _0x36a943['push'](_0x36a943['shift']());}catch(_0xd59122){_0x36a943['push'](_0x36a943['shift']());}}}(a254_0xdedb,0x6103a));import a254_0x49ca1d from'winston';import a254_0x3d4190 from'node:fs';import a254_0x5ebe82 from'node:path';class Logger{['winstonLogger'];[a254_0x5f4897(0x191)];[a254_0x5f4897(0x184)]='';constructor(){const _0x3385ff=a254_0x5f4897;this[_0x3385ff(0x191)]='';}[a254_0x5f4897(0x180)](_0x267ff3){const _0x5ada8a=a254_0x5f4897;this[_0x5ada8a(0x184)]=_0x267ff3;}['initWinstonLogger'](){const _0x297281=a254_0x5f4897,_0x1d175e=a254_0x5ebe82[_0x297281(0x167)](this[_0x297281(0x191)]);!a254_0x3d4190[_0x297281(0x177)](_0x1d175e)&&a254_0x3d4190[_0x297281(0x18f)](_0x1d175e,{'recursive':!![]});const _0x173140=a254_0x49ca1d[_0x297281(0x17a)][_0x297281(0x19b)](a254_0x49ca1d['format'][_0x297281(0x17f)](),a254_0x49ca1d[_0x297281(0x17a)]['errors']({'stack':!![]}),a254_0x49ca1d[_0x297281(0x17a)]['printf'](_0x1156cb=>{const _0x1673ea=_0x297281,_0x180c13={'timestamp':_0x1156cb[_0x1673ea(0x17f)]||new Date()[_0x1673ea(0x16c)](),'level':_0x1156cb[_0x1673ea(0x174)]||_0x1673ea(0x182),'command':_0x1156cb[_0x1673ea(0x179)]||_0x1673ea(0x176),'rawCommand':_0x1156cb['rawCommand']||this['currentRawCommand']||undefined,'message':_0x1156cb[_0x1673ea(0x16e)]||'','duration':_0x1156cb[_0x1673ea(0x170)]||undefined,'details':_0x1156cb[_0x1673ea(0x18c)]||undefined};return JSON[_0x1673ea(0x188)](_0x180c13);}));this[_0x297281(0x185)]=a254_0x49ca1d['createLogger']({'level':'info','format':_0x173140,'transports':[new a254_0x49ca1d['transports']['File']({'filename':this[_0x297281(0x191)],'level':_0x297281(0x182)})],'silent':![]}),a254_0x49ca1d[_0x297281(0x175)]({'success':_0x297281(0x16d),'error':_0x297281(0x186),'warn':_0x297281(0x198),'info':_0x297281(0x17e)});}[a254_0x5f4897(0x17b)](_0x152e0c){const _0x3055e2=a254_0x5f4897;this[_0x3055e2(0x191)]=a254_0x5ebe82[_0x3055e2(0x17d)](_0x152e0c,'.lovrabet.log'),this[_0x3055e2(0x185)]&&this[_0x3055e2(0x185)][_0x3055e2(0x18a)](),this['initWinstonLogger']();}[a254_0x5f4897(0x182)](_0x34c8e6,_0x3b6f79,_0x4920b6){const _0x1036f5=a254_0x5f4897;if(!this['logFilePath']||!this[_0x1036f5(0x185)])return;this['winstonLogger']['info'](_0x3b6f79,{'command':_0x34c8e6,'details':_0x4920b6});}['success'](_0x3ccaee,_0x4d7145,_0x42ece7,_0x23b791){const _0x1fa437=a254_0x5f4897;if(!this['logFilePath']||!this[_0x1fa437(0x185)])return;this[_0x1fa437(0x185)][_0x1fa437(0x192)]('info',_0x4d7145,{'level':_0x1fa437(0x183),'command':_0x3ccaee,'duration':_0x42ece7,'details':_0x23b791});}[a254_0x5f4897(0x16f)](_0x1c437a,_0x1ebef6,_0x2fe3bd){const _0x42296a=a254_0x5f4897;if(!this[_0x42296a(0x191)]||!this[_0x42296a(0x185)])return;this[_0x42296a(0x185)][_0x42296a(0x16f)](_0x1ebef6,{'command':_0x1c437a,'details':_0x2fe3bd});}[a254_0x5f4897(0x193)](_0x516125,_0x535c32,_0x2223d9){const _0x2c167c=a254_0x5f4897;if(!this[_0x2c167c(0x191)]||!this[_0x2c167c(0x185)])return;this[_0x2c167c(0x185)]['warn'](_0x535c32,{'command':_0x516125,'details':_0x2223d9});}async[a254_0x5f4897(0x173)](_0x2f0ff9,_0x48ed94,_0x445e3a){const _0x50c529=a254_0x5f4897,_0x8e6330=Date[_0x50c529(0x196)]();this['info'](_0x2f0ff9,_0x50c529(0x178)+_0x48ed94);try{const _0x4cd27f=await _0x445e3a(),_0x1c7e16=Date[_0x50c529(0x196)]()-_0x8e6330;return this[_0x50c529(0x183)](_0x2f0ff9,'完成:\x20'+_0x48ed94,_0x1c7e16),_0x4cd27f;}catch(_0x186bb1){const _0x36335f=Date[_0x50c529(0x196)]()-_0x8e6330;this[_0x50c529(0x16f)](_0x2f0ff9,_0x50c529(0x189)+_0x48ed94,{'error':_0x186bb1 instanceof Error?_0x186bb1[_0x50c529(0x16e)]:String(_0x186bb1),'duration':_0x36335f});throw _0x186bb1;}}[a254_0x5f4897(0x168)](){const _0x36e091=a254_0x5f4897;try{if(!a254_0x3d4190[_0x36e091(0x177)](this[_0x36e091(0x191)]))return[];const _0xc178e7=a254_0x3d4190[_0x36e091(0x19d)](this['logFilePath'],_0x36e091(0x190));return _0xc178e7[_0x36e091(0x19c)]('\x0a')[_0x36e091(0x172)](_0x15f0ad=>_0x15f0ad[_0x36e091(0x197)]())[_0x36e091(0x16b)](_0x1a8284=>JSON[_0x36e091(0x187)](_0x1a8284));}catch(_0x1132fc){return console[_0x36e091(0x193)](_0x36e091(0x194),_0x1132fc),[];}}['clearLogs'](){const _0x153c79=a254_0x5f4897;try{a254_0x3d4190['existsSync'](this[_0x153c79(0x191)])&&a254_0x3d4190[_0x153c79(0x18e)](this['logFilePath'],'','utf8');}catch(_0x20fad0){console['warn'](_0x153c79(0x18d),_0x20fad0);}}['getWinstonInstance'](){const _0x40134f=a254_0x5f4897;return this[_0x40134f(0x185)];}}function a254_0xdedb(){const _0x43475b=['readLogs','5354643zdQQWV','2195760FFubzf','map','toISOString','green','message','error','duration','514YALBPC','filter','logTask','level','addColors','unknown','existsSync','开始执行:\x20','command','format','setLogPath','2275384waocVG','join','blue','timestamp','setRawCommand','2130723rwNEYX','info','success','currentRawCommand','winstonLogger','red','parse','stringify','失败:\x20','clear','1759095fiZmQq','details','Failed\x20to\x20clear\x20logs:','writeFileSync','mkdirSync','utf8','logFilePath','log','warn','Failed\x20to\x20read\x20logs:','8OBbxlN','now','trim','yellow','152VOUwjq','1330542nlvhBc','combine','split','readFileSync','dirname'];a254_0xdedb=function(){return _0x43475b;};return a254_0xdedb();}export const logger=new Logger();
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a255_0xa3de(){const _0x5919ce=['--params\x20must\x20be\x20a\x20JSON\x20object','isArray','parse','validation','861644pcIolx','2684319yKFyCY','50832BwmTmO','599456mlodwM','721ryAcDO','2226396tgvSmi','Invalid\x20JSON\x20for\x20--params:\x20','191155kOsfMz','5006720ZdpZEE'];a255_0xa3de=function(){return _0x5919ce;};return a255_0xa3de();}(function(_0xf80fc3,_0x17095b){const _0x1c1758=a255_0x2c2b,_0x2fa643=_0xf80fc3();while(!![]){try{const _0x5fa316=-parseInt(_0x1c1758(0x13d))/0x1+-parseInt(_0x1c1758(0x140))/0x2+parseInt(_0x1c1758(0x13e))/0x3+parseInt(_0x1c1758(0x145))/0x4+-parseInt(_0x1c1758(0x144))/0x5+parseInt(_0x1c1758(0x142))/0x6+parseInt(_0x1c1758(0x141))/0x7*(-parseInt(_0x1c1758(0x13f))/0x8);if(_0x5fa316===_0x17095b)break;else _0x2fa643['push'](_0x2fa643['shift']());}catch(_0x3a691a){_0x2fa643['push'](_0x2fa643['shift']());}}}(a255_0xa3de,0xa1f9e));import{CliErrors}from'../errors.js';function a255_0x2c2b(_0x239cc1,_0x181e84){_0x239cc1=_0x239cc1-0x13b;const _0xa3de23=a255_0xa3de();let _0x2c2b94=_0xa3de23[_0x239cc1];return _0x2c2b94;}export function parseJsonParams(_0x2bc356){const _0x55faa2=a255_0x2c2b;if(!_0x2bc356)return undefined;let _0x54e4ec;try{_0x54e4ec=JSON[_0x55faa2(0x13b)](_0x2bc356);}catch{throw CliErrors[_0x55faa2(0x13c)](_0x55faa2(0x143)+_0x2bc356);}if(!_0x54e4ec||typeof _0x54e4ec!=='object'||Array[_0x55faa2(0x147)](_0x54e4ec))throw CliErrors[_0x55faa2(0x13c)](_0x55faa2(0x146),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x54e4ec;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a256_0x257955=a256_0xed5a;(function(_0x568f71,_0x57a0a2){const _0x2dfd3d=a256_0xed5a,_0x62cb9f=_0x568f71();while(!![]){try{const _0x3559c9=-parseInt(_0x2dfd3d(0x1fa))/0x1+parseInt(_0x2dfd3d(0x1f3))/0x2+-parseInt(_0x2dfd3d(0x1fc))/0x3*(parseInt(_0x2dfd3d(0x1f7))/0x4)+-parseInt(_0x2dfd3d(0x1fb))/0x5+-parseInt(_0x2dfd3d(0x1f4))/0x6+-parseInt(_0x2dfd3d(0x1f8))/0x7+parseInt(_0x2dfd3d(0x1f5))/0x8;if(_0x3559c9===_0x57a0a2)break;else _0x62cb9f['push'](_0x62cb9f['shift']());}catch(_0x1630be){_0x62cb9f['push'](_0x62cb9f['shift']());}}}(a256_0xd8f3,0xa93d0));function a256_0xd8f3(){const _0x560e71=['34992808EjlgHR','win32','4NNYmbk','9623019RFldnZ','platform','1210553YoOEiM','4299850qqwbrp','3996219hyPgzL','2267204cORKlJ','223140UdeOSm'];a256_0xd8f3=function(){return _0x560e71;};return a256_0xd8f3();}function a256_0xed5a(_0x4da6ce,_0x4a85d0){_0x4da6ce=_0x4da6ce-0x1f3;const _0xd8f3e0=a256_0xd8f3();let _0xed5a79=_0xd8f3e0[_0x4da6ce];return _0xed5a79;}export const isWindows=process[a256_0x257955(0x1f9)]===a256_0x257955(0x1f6);export function resolveNpmBin(_0x56d957){return isWindows?_0x56d957+'.cmd':_0x56d957;}
|
package/lib/utils/rules-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a257_0x4f215f=a257_0xccd4;(function(_0x885681,_0x4ffe75){const _0x56d13f=a257_0xccd4,_0x571449=_0x885681();while(!![]){try{const _0x5d3c89=-parseInt(_0x56d13f(0xfa))/0x1+-parseInt(_0x56d13f(0xf8))/0x2+parseInt(_0x56d13f(0xe6))/0x3+parseInt(_0x56d13f(0xf9))/0x4+parseInt(_0x56d13f(0xf5))/0x5+-parseInt(_0x56d13f(0xee))/0x6+-parseInt(_0x56d13f(0xe7))/0x7*(-parseInt(_0x56d13f(0xf7))/0x8);if(_0x5d3c89===_0x4ffe75)break;else _0x571449['push'](_0x571449['shift']());}catch(_0x3e8cba){_0x571449['push'](_0x571449['shift']());}}}(a257_0x2e87,0xabd9a));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 _0xe86ea5=a257_0xccd4,_0x5362bf=getTemplateBaseUrl();return _0x5362bf+_0xe86ea5(0xea);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a257_0x4f215f(0xef));export async function fetchRulesFromCDN(){const _0x170ed0=a257_0x4f215f,_0x5f61ad=getRulesCdnUrl(),_0x525860=await fetch(_0x5f61ad,{'headers':{'Accept':_0x170ed0(0xf0)}});if(!_0x525860['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x525860[_0x170ed0(0xf4)]+'\x20'+_0x525860[_0x170ed0(0xf6)]);const _0x306206=await _0x525860[_0x170ed0(0xec)]();if(!_0x306206['content']||typeof _0x306206[_0x170ed0(0xe8)]!==_0x170ed0(0xed))throw new Error(_0x170ed0(0xf2));return _0x306206;}function a257_0x2e87(){const _0x1bbc31=['本地模板文件不存在:\x20','status','1943120hecRDH','statusText','24LRhPHQ','1078352VRFIXe','2268896AvyAJd','1126950FfEahm','utf-8','1963488PCeIHm','3734738yFpbwu','content','lastUpdated','/rules/rules.json','catch','json','string','5045532kVruil','../../templates/rules/lovrabet_rules.mdc.tpl','application/json','.cursor/rules','CDN\x20返回数据格式错误'];a257_0x2e87=function(){return _0x1bbc31;};return a257_0x2e87();}export async function getRulesContent(){const _0x242654=a257_0x4f215f;try{const _0x134934=await fetchRulesFromCDN();return _0x134934[_0x242654(0xe8)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x47eb3e=a257_0x4f215f;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x47eb3e(0xfb));throw new Error(_0x47eb3e(0xf3)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x1feeac){const _0x10ae82=a257_0x4f215f,_0x4fb3fb=await fetchRulesFromCDN()[_0x10ae82(0xeb)](()=>null);let _0x355fbd;_0x4fb3fb?(_0x355fbd=_0x4fb3fb[_0x10ae82(0xe8)],_0x4fb3fb[_0x10ae82(0xe9)]&&(_0x355fbd=appendUpdateTime(_0x355fbd,_0x4fb3fb[_0x10ae82(0xe9)]))):_0x355fbd=readLocalTemplate();const _0x59a156=dirname(_0x1feeac);!existsSync(_0x59a156)&&mkdirSync(_0x59a156,{'recursive':!![]}),writeFileSync(_0x1feeac,_0x355fbd,_0x10ae82(0xfb));}export async function copyRulesToCursor(_0x2742c1){const _0x1f18a6=a257_0x4f215f,_0x38cdc8=join(_0x2742c1,_0x1f18a6(0xf1)),_0x49c7d1=join(_0x38cdc8,'lovrabet_rules.mdc');if(existsSync(_0x49c7d1))return![];return await writeRulesFile(_0x49c7d1),!![];}function a257_0xccd4(_0x4afb0e,_0x4f0675){_0x4afb0e=_0x4afb0e-0xe6;const _0x2e8737=a257_0x2e87();let _0xccd425=_0x2e8737[_0x4afb0e];return _0xccd425;}export async function copyRulesToAgentsMd(_0xf3b0bd){const _0x5eb129=join(_0xf3b0bd,'agents.md');if(existsSync(_0x5eb129))return![];return await writeRulesFile(_0x5eb129),!![];}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x46fbf5){return new Promise(_0x53489b=>setTimeout(_0x53489b,_0x46fbf5));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a259_0x20666a=a259_0xc766;function a259_0x2ef4(){const _0x3e7628=['template','7KEkaVs','datasetCode','info','getFullYear','now','slice','4764HFIXHD','399098NbBMuh','getHours','toLowerCase','toUpperCase','396HgzWkH','name','1170SLaMPi','promises','join','success','getMinutes','readFile','endsWith','4090176aPiRET','processDirectory','padStart','toISOString','replace','pop','processFile','.md','formatLocalTimestamp','\x0a\x20\x20\x20\x20{\x20','模板内容替换完成','alias','split','isFile','extname','charAt','43720aepzCW','api','copyFile','10hhoiyr','toDisplayTitle','.scss','error','.js','map','.css','.tpl','replaceApiContent','getSeconds','readdir','datasetCode:\x20\x22','63966brjYQA','toComponentName','pad','replaceContent','LOVRABET','924024LtdZsg','utf8','push','message','1ywOhvP','.tsx','\x20},','1510200qebaIM','mkdir','.json'];a259_0x2ef4=function(){return _0x3e7628;};return a259_0x2ef4();}(function(_0x15f585,_0x26ba3c){const _0x28c7e0=a259_0xc766,_0x2ec6b6=_0x15f585();while(!![]){try{const _0x1aec0c=parseInt(_0x28c7e0(0x20f))/0x1*(parseInt(_0x28c7e0(0x1da))/0x2)+-parseInt(_0x28c7e0(0x1e0))/0x3*(-parseInt(_0x28c7e0(0x1d9))/0x4)+-parseInt(_0x28c7e0(0x1fa))/0x5*(-parseInt(_0x28c7e0(0x206))/0x6)+parseInt(_0x28c7e0(0x1d3))/0x7*(-parseInt(_0x28c7e0(0x20b))/0x8)+parseInt(_0x28c7e0(0x212))/0x9+-parseInt(_0x28c7e0(0x1f7))/0xa*(parseInt(_0x28c7e0(0x1de))/0xb)+-parseInt(_0x28c7e0(0x1e7))/0xc;if(_0x1aec0c===_0x26ba3c)break;else _0x2ec6b6['push'](_0x2ec6b6['shift']());}catch(_0x4d3feb){_0x2ec6b6['push'](_0x2ec6b6['shift']());}}}(a259_0x2ef4,0x3a73a));import a259_0x25a3e7 from'node:fs';import a259_0x2377ba from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a259_0xc766(_0x41db1a,_0x36f42b){_0x41db1a=_0x41db1a-0x1d1;const _0x2ef42d=a259_0x2ef4();let _0xc76662=_0x2ef42d[_0x41db1a];return _0xc76662;}export class TemplateReplacer{static[a259_0x20666a(0x208)](_0x4cd8aa){const _0xdae947=a259_0x20666a;return String(_0x4cd8aa)[_0xdae947(0x1e9)](0x2,'0');}static[a259_0x20666a(0x1ef)](_0x7c1a7){const _0x49d178=a259_0x20666a,_0x52936e=_0x7c1a7[_0x49d178(0x1d6)](),_0x75821c=this[_0x49d178(0x208)](_0x7c1a7['getMonth']()+0x1),_0x283376=this['pad'](_0x7c1a7['getDate']()),_0x35ddd0=this[_0x49d178(0x208)](_0x7c1a7[_0x49d178(0x1db)]()),_0x31e7f4=this[_0x49d178(0x208)](_0x7c1a7[_0x49d178(0x1e4)]()),_0x2d9311=this[_0x49d178(0x208)](_0x7c1a7[_0x49d178(0x203)]());return{'createdAt':_0x52936e+'-'+_0x75821c+'-'+_0x283376+'\x20'+_0x35ddd0+':'+_0x31e7f4+':'+_0x2d9311,'createdDate':_0x52936e+'-'+_0x75821c+'-'+_0x283376,'createdTime':_0x35ddd0+':'+_0x31e7f4+':'+_0x2d9311};}static[a259_0x20666a(0x207)](_0x11c5e4){const _0x274407=a259_0x20666a,_0x121bd7=_0x11c5e4[_0x274407(0x1f3)]('/')['pop']()||_0x11c5e4;return _0x121bd7[_0x274407(0x1f3)]('-')[_0x274407(0x1ff)](_0x56c937=>_0x56c937[_0x274407(0x1f6)](0x0)[_0x274407(0x1dd)]()+_0x56c937['slice'](0x1)[_0x274407(0x1dc)]())[_0x274407(0x1e2)]('');}static[a259_0x20666a(0x1fb)](_0x71c98f){const _0x30b85d=a259_0x20666a,_0x1fba88=_0x71c98f['split']('/')[_0x30b85d(0x1ec)]()||_0x71c98f;return _0x1fba88[_0x30b85d(0x1f3)]('-')['map'](_0x34c2f7=>_0x34c2f7[_0x30b85d(0x1f6)](0x0)[_0x30b85d(0x1dd)]()+_0x34c2f7[_0x30b85d(0x1d8)](0x1)['toLowerCase']())['join']('\x20');}static['replaceContent'](_0x182c29,_0x46542c,_0x2629fb){const _0x27562a=a259_0x20666a,_0x3dbf58=this['toComponentName'](_0x46542c),_0x31233c=this[_0x27562a(0x1fb)](_0x46542c),{createdAt:_0x1a0343,createdDate:_0x518e63,createdTime:_0x3901b7}=this[_0x27562a(0x1ef)](new Date());let _0x2ab0c5=_0x182c29['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x27562a(0x1eb)](/\{ComponentName\}/g,_0x3dbf58)[_0x27562a(0x1eb)](/\{DisplayTitle\}/g,_0x31233c)[_0x27562a(0x1eb)](/\{PageName\}/g,_0x46542c)[_0x27562a(0x1eb)](/\{TemplateName\}/g,_0x2629fb)[_0x27562a(0x1eb)](/\{CreatedAt\}/g,_0x1a0343)[_0x27562a(0x1eb)](/\{CreatedDate\}/g,_0x518e63)[_0x27562a(0x1eb)](/\{CreatedTime\}/g,_0x3901b7);return _0x2ab0c5;}static[a259_0x20666a(0x202)](_0xec894a,_0x502c1e,_0x31fcce,_0x58e4fa,_0x1fdfa0,_0x13977b,_0x3da45b,_0x4f1bc5){const _0x4efaee=a259_0x20666a,_0x5cf430=new Date(),_0x54f907=_0x5cf430[_0x4efaee(0x1ea)](),_0x402ac9=_0x31fcce[_0x4efaee(0x1ff)](_0x141fae=>{const _0x26d0e3=_0x4efaee,_0x8549a=[_0x26d0e3(0x205)+_0x141fae[_0x26d0e3(0x1d4)]+'\x22','tableName:\x20\x22'+_0x141fae['tableName']+'\x22','name:\x20\x22'+_0x141fae['name']+'\x22'];return _0x141fae[_0x26d0e3(0x1f2)]&&_0x8549a[_0x26d0e3(0x20d)]('alias:\x20\x22'+_0x141fae[_0x26d0e3(0x1f2)]+'\x22'),_0x26d0e3(0x1f0)+_0x8549a['join'](',\x20')+_0x26d0e3(0x211);})[_0x4efaee(0x1e2)](''),_0x488802=_0x58e4fa||_0x31fcce[0x0]?.[_0x4efaee(0x1f2)]||'YourModel';let _0x4cab2a=_0xec894a[_0x4efaee(0x1eb)](/\{AppCode\}/g,_0x502c1e)[_0x4efaee(0x1eb)](/\{ModelConfigs\}/g,_0x402ac9)[_0x4efaee(0x1eb)](/\{ExampleModelName\}/g,_0x488802)[_0x4efaee(0x1eb)](/\{ApiFileName\}/g,_0x1fdfa0||_0x4efaee(0x1f8))[_0x4efaee(0x1eb)](/\{ConfigName\}/g,_0x13977b||'default')[_0x4efaee(0x1eb)](/\{ClientConfigParam\}/g,_0x3da45b||'')[_0x4efaee(0x1eb)](/\{VarPrefix\}/g,_0x4f1bc5||_0x4efaee(0x20a))[_0x4efaee(0x1eb)](/\{CreatedAt\}/g,_0x54f907);return _0x4cab2a;}static async['processTemplate'](_0x37e510,_0x462c20,_0x4e4bf6,_0x9e9725,_0x3da824=!![]){const _0x2ef96a=a259_0x20666a,_0x293f9f=Date[_0x2ef96a(0x1d7)]();try{_0x3da824&&logger[_0x2ef96a(0x1d5)]('template','开始处理模板内容替换',{'templatePath':_0x37e510,'targetPath':_0x462c20,'pageName':_0x4e4bf6,'templateName':_0x9e9725});await a259_0x25a3e7[_0x2ef96a(0x1e1)][_0x2ef96a(0x213)](_0x462c20,{'recursive':!![]}),await this[_0x2ef96a(0x1e8)](_0x37e510,_0x462c20,_0x4e4bf6,_0x9e9725);if(_0x3da824){const _0x99025b=Date['now']()-_0x293f9f;logger[_0x2ef96a(0x1e3)]('template',_0x2ef96a(0x1f1),_0x99025b,{'pageName':_0x4e4bf6,'templateName':_0x9e9725});}}catch(_0x16cb1f){if(_0x3da824){const _0x2696c4=Date[_0x2ef96a(0x1d7)]()-_0x293f9f;logger[_0x2ef96a(0x1fd)](_0x2ef96a(0x1d2),'模板内容替换失败',{'templatePath':_0x37e510,'targetPath':_0x462c20,'pageName':_0x4e4bf6,'templateName':_0x9e9725,'error':_0x16cb1f instanceof Error?_0x16cb1f[_0x2ef96a(0x20e)]:String(_0x16cb1f),'duration':_0x2696c4});}throw _0x16cb1f;}}static async[a259_0x20666a(0x1e8)](_0x488bc1,_0x33cb81,_0x480522,_0x5e6fe5){const _0x5b750d=a259_0x20666a,_0x31956c=await a259_0x25a3e7['promises'][_0x5b750d(0x204)](_0x488bc1,{'withFileTypes':!![]});for(const _0xd80d09 of _0x31956c){const _0x2a6b04=a259_0x2377ba[_0x5b750d(0x1e2)](_0x488bc1,_0xd80d09[_0x5b750d(0x1df)]);let _0x48e446=a259_0x2377ba[_0x5b750d(0x1e2)](_0x33cb81,_0xd80d09[_0x5b750d(0x1df)]);_0xd80d09['name'][_0x5b750d(0x1e6)]('.tpl')&&(_0x48e446=a259_0x2377ba[_0x5b750d(0x1e2)](_0x33cb81,_0xd80d09['name']['replace'](/\.tpl$/,'')));if(_0xd80d09['isDirectory']())await a259_0x25a3e7[_0x5b750d(0x1e1)][_0x5b750d(0x213)](_0x48e446,{'recursive':!![]}),await this['processDirectory'](_0x2a6b04,_0x48e446,_0x480522,_0x5e6fe5);else _0xd80d09[_0x5b750d(0x1f4)]()&&await this[_0x5b750d(0x1ed)](_0x2a6b04,_0x48e446,_0x480522,_0x5e6fe5);}}static async[a259_0x20666a(0x1ed)](_0x5048fa,_0x38b64e,_0x4cfc59,_0x21556b){const _0x102388=a259_0x20666a,_0x21e56a=a259_0x2377ba[_0x102388(0x1f5)](_0x5048fa)[_0x102388(0x1dc)]();_0x5048fa[_0x102388(0x1e6)](_0x102388(0x201))&&(_0x38b64e=_0x38b64e['replace'](/\.tpl$/,''));const _0x489e14=[_0x102388(0x210),'.ts','.jsx',_0x102388(0x1fe),_0x102388(0x1d1),_0x102388(0x1ee),_0x102388(0x200),_0x102388(0x1fc),_0x102388(0x201)];if(_0x489e14['includes'](_0x21e56a)||_0x5048fa[_0x102388(0x1e6)](_0x102388(0x201))){const _0x1b489b=await a259_0x25a3e7['promises'][_0x102388(0x1e5)](_0x5048fa,'utf8'),_0x73b5b0=this[_0x102388(0x209)](_0x1b489b,_0x4cfc59,_0x21556b);await a259_0x25a3e7['promises']['writeFile'](_0x38b64e,_0x73b5b0,_0x102388(0x20c));}else await a259_0x25a3e7[_0x102388(0x1e1)][_0x102388(0x1f9)](_0x5048fa,_0x38b64e);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x347fdb,_0x4ecbe8){const _0x4bb6de=a260_0x339e,_0x13bd81=_0x347fdb();while(!![]){try{const _0xcd84db=parseInt(_0x4bb6de(0x11a))/0x1+parseInt(_0x4bb6de(0x12d))/0x2+-parseInt(_0x4bb6de(0x11c))/0x3*(parseInt(_0x4bb6de(0x130))/0x4)+-parseInt(_0x4bb6de(0x134))/0x5*(parseInt(_0x4bb6de(0x12c))/0x6)+-parseInt(_0x4bb6de(0x124))/0x7+parseInt(_0x4bb6de(0x11e))/0x8*(parseInt(_0x4bb6de(0x131))/0x9)+parseInt(_0x4bb6de(0x11b))/0xa;if(_0xcd84db===_0x4ecbe8)break;else _0x13bd81['push'](_0x13bd81['shift']());}catch(_0x25eb75){_0x13bd81['push'](_0x13bd81['shift']());}}}(a260_0x23f4,0x829c9));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a260_0x514197 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 _0xf1d126=a260_0x339e,_0x5b937=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()['toLowerCase']();return _0x5b937==='1'||_0x5b937===_0xf1d126(0x138)||_0x5b937==='yes';}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x19d134=a260_0x339e;return join(cacheRoot(),_0x19d134(0x126),_0x19d134(0x12f));}function a260_0x23f4(){const _0x33cee0=['rabetbase-cli','lastNotifiedVersion','\x20update','\x20available,\x20current\x20','valid','lastNotifiedAt','250320AhYqdk','500084HRIjQV','trim','update-check.json','16yNvBGX','4407201EowksG','/v/','parse','80HRfroy',',\x20run:\x20','number','stableVersion','true','307754gMwEEt','428480fKVfog','184884RoYiIU','now','16RwkRzQ','latest','https://www.npmjs.com/package/','object','checkedAt','stringify','917035ivMbGf','gte'];a260_0x23f4=function(){return _0x33cee0;};return a260_0x23f4();}async function readUpdateNoticeCache(){const _0xf5548e=a260_0x339e;try{const _0x5157e6=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x146896=JSON[_0xf5548e(0x133)](_0x5157e6);if(!_0x146896||typeof _0x146896!==_0xf5548e(0x121))return{};return _0x146896;}catch{return{};}}async function writeUpdateNoticeCache(_0x47d04b){const _0x4f5f56=a260_0x339e;try{const _0x6b1ccc=getUpdateNoticeCachePath();await mkdir(dirname(_0x6b1ccc),{'recursive':!![]}),await writeFile(_0x6b1ccc,JSON[_0x4f5f56(0x123)](_0x47d04b,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x1e1c32,_0xd9b609){const _0x3e46c4=a260_0x339e;return typeof _0x1e1c32[_0x3e46c4(0x122)]===_0x3e46c4(0x136)&&_0xd9b609-_0x1e1c32[_0x3e46c4(0x122)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x1e864a,_0x5457c6,_0x47c6ad){const _0x4300b6=a260_0x339e;return _0x1e864a[_0x4300b6(0x127)]===_0x5457c6&&typeof _0x1e864a[_0x4300b6(0x12b)]===_0x4300b6(0x136)&&_0x47c6ad-_0x1e864a['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x273115){const _0x1aaa77=a260_0x339e;return _0x1aaa77(0x120)+NPM_PACKAGE_NAME+_0x1aaa77(0x132)+_0x273115;}function a260_0x339e(_0x5d5aa8,_0x3ad174){_0x5d5aa8=_0x5d5aa8-0x11a;const _0x23f461=a260_0x23f4();let _0x339ee8=_0x23f461[_0x5d5aa8];return _0x339ee8;}export async function resolveLatestUpdateNotice(){const _0x47acab=a260_0x339e;if(isUpdateNoticeDisabled())return null;try{const _0x13acef=Date[_0x47acab(0x11d)](),_0x2a7629=getCliVersion(),_0x54c533=await readUpdateNoticeCache();let _0x1f2083=isFreshCheck(_0x54c533,_0x13acef)?_0x54c533[_0x47acab(0x11f)]?.[_0x47acab(0x12e)]():undefined;if(!_0x1f2083&&!isFreshCheck(_0x54c533,_0x13acef)){const _0x1920c9=await getCliVersionPolicy();_0x1f2083=_0x1920c9?.[_0x47acab(0x137)]?.[_0x47acab(0x12e)]()||undefined,await writeUpdateNoticeCache({..._0x54c533,'checkedAt':_0x13acef,'latest':_0x1f2083,'failed':!_0x1f2083});}if(!_0x1f2083||!a260_0x514197['valid'](_0x2a7629)||!a260_0x514197[_0x47acab(0x12a)](_0x1f2083))return null;if(a260_0x514197[_0x47acab(0x125)](_0x2a7629,_0x1f2083))return null;if(isRecentlyNotified(_0x54c533,_0x1f2083,_0x13acef))return null;const _0x4ae360=CLI_BIN_NAME+_0x47acab(0x128);return await writeUpdateNoticeCache({..._0x54c533,'checkedAt':isFreshCheck(_0x54c533,_0x13acef)?_0x54c533[_0x47acab(0x122)]:_0x13acef,'latest':_0x1f2083,'failed':![],'lastNotifiedVersion':_0x1f2083,'lastNotifiedAt':_0x13acef}),{'command':_0x4ae360,'current':_0x2a7629,'latest':_0x1f2083,'url':buildNpmVersionUrl(_0x1f2083),'message':CLI_BIN_NAME+'\x20'+_0x1f2083+_0x47acab(0x129)+_0x2a7629+_0x47acab(0x135)+_0x4ae360};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a261_0x2bd0(){var _0x181a27=['5178654wrnnxq','3481737DBAxnE','1819944MMzFbx','37352882RttIhi','1720572FAncqR','2573705rXTbsA','7524488qUQtJV'];a261_0x2bd0=function(){return _0x181a27;};return a261_0x2bd0();}(function(_0x16ebff,_0x234d22){var _0x2015b9=a261_0x1cf8,_0x4c9150=_0x16ebff();while(!![]){try{var _0x5d1a85=-parseInt(_0x2015b9(0x7e))/0x1+-parseInt(_0x2015b9(0x80))/0x2+-parseInt(_0x2015b9(0x7d))/0x3+-parseInt(_0x2015b9(0x7b))/0x4+parseInt(_0x2015b9(0x7a))/0x5+parseInt(_0x2015b9(0x7c))/0x6+parseInt(_0x2015b9(0x7f))/0x7;if(_0x5d1a85===_0x234d22)break;else _0x4c9150['push'](_0x4c9150['shift']());}catch(_0x25b23e){_0x4c9150['push'](_0x4c9150['shift']());}}}(a261_0x2bd0,0xf232d));function a261_0x1cf8(_0x56209a,_0x618bd5){_0x56209a=_0x56209a-0x7a;var _0x2bd026=a261_0x2bd0();var _0x1cf8f0=_0x2bd026[_0x56209a];return _0x1cf8f0;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3431d3,_0x31ce41){var _0x59c391=a262_0x5c33,_0x40f57f=_0x3431d3();while(!![]){try{var _0x4922fb=-parseInt(_0x59c391(0x1b5))/0x1+parseInt(_0x59c391(0x1b3))/0x2*(-parseInt(_0x59c391(0x1b9))/0x3)+-parseInt(_0x59c391(0x1b7))/0x4+parseInt(_0x59c391(0x1b4))/0x5*(-parseInt(_0x59c391(0x1b8))/0x6)+-parseInt(_0x59c391(0x1bb))/0x7*(-parseInt(_0x59c391(0x1bd))/0x8)+-parseInt(_0x59c391(0x1bc))/0x9*(parseInt(_0x59c391(0x1b6))/0xa)+parseInt(_0x59c391(0x1ba))/0xb;if(_0x4922fb===_0x31ce41)break;else _0x40f57f['push'](_0x40f57f['shift']());}catch(_0x3312ff){_0x40f57f['push'](_0x40f57f['shift']());}}}(a262_0x1dde,0x485ed));function a262_0x5c33(_0x197f8d,_0x500083){_0x197f8d=_0x197f8d-0x1b3;var _0x1dde55=a262_0x1dde();var _0x5c33cf=_0x1dde55[_0x197f8d];return _0x5c33cf;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a262_0x1dde(){var _0x4b1a24=['2168OAyfjW','22PDXfFI','2645UdqEvT','48327MZPPLT','935510CcyNua','1912772LjhsOd','5370TzHFuU','145497brXLaM','18705137jhUktv','8176FYccKu','18oFOUgB'];a262_0x1dde=function(){return _0x4b1a24;};return a262_0x1dde();}export async function withActiveCookie(_0x4c39df,_0x4863e){setActiveCookie(_0x4c39df);try{return await _0x4863e();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4f45c6,_0x2a2905){var _0x4b356e=a263_0x4ff6,_0x10b38c=_0x4f45c6();while(!![]){try{var _0x3ebdc1=parseInt(_0x4b356e(0x1df))/0x1+parseInt(_0x4b356e(0x1d7))/0x2+-parseInt(_0x4b356e(0x1e0))/0x3*(parseInt(_0x4b356e(0x1dd))/0x4)+parseInt(_0x4b356e(0x1e1))/0x5*(parseInt(_0x4b356e(0x1de))/0x6)+parseInt(_0x4b356e(0x1da))/0x7+-parseInt(_0x4b356e(0x1dc))/0x8+parseInt(_0x4b356e(0x1d9))/0x9;if(_0x3ebdc1===_0x2a2905)break;else _0x10b38c['push'](_0x10b38c['shift']());}catch(_0x2fa49e){_0x10b38c['push'](_0x10b38c['shift']());}}}(a263_0x5d45,0x7b15d));function a263_0x5d45(){var _0x55efbf=['3191818vOlIui','write','4140112YzwTff','30292PKlWRe','216ZwFgeA','50119Gmilom','255UXaRHo','72035FZOayU','914888EpZtpi','stderr','1648683cpGsQq'];a263_0x5d45=function(){return _0x55efbf;};return a263_0x5d45();}function a263_0x4ff6(_0x1001ca,_0x579f7e){_0x1001ca=_0x1001ca-0x1d7;var _0x5d4599=a263_0x5d45();var _0x4ff6bd=_0x5d4599[_0x1001ca];return _0x4ff6bd;}export function writeCliSideChannelLine(_0x9944d0){var _0x206eaf=a263_0x4ff6;process[_0x206eaf(0x1d8)][_0x206eaf(0x1db)](_0x9944d0+'\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.11",
|
|
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": [
|