@lovrabet/rabetbase-cli 2.1.6 → 2.1.7-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/discover.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/delete.js +1 -0
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/link-create.js +1 -0
- package/lib/commands/dataset/link-delete.js +1 -0
- package/lib/commands/dataset/link-shared.js +1 -0
- package/lib/commands/dataset/link-update.js +1 -0
- package/lib/commands/dataset/links.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -0
- package/lib/commands/issue/report.js +1 -0
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -0
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +2 -1
- package/templates/projects/sub-app-react-demo/README.md +1 -1
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4cd472,_0x150b58){const _0x35ad3f=a192_0x34fb,_0x36e6f=_0x4cd472();while(!![]){try{const _0x5701b4=-parseInt(_0x35ad3f(0x81))/0x1*(parseInt(_0x35ad3f(0x85))/0x2)+parseInt(_0x35ad3f(0x7e))/0x3*(parseInt(_0x35ad3f(0x84))/0x4)+parseInt(_0x35ad3f(0x80))/0x5*(parseInt(_0x35ad3f(0x8b))/0x6)+-parseInt(_0x35ad3f(0x7f))/0x7+-parseInt(_0x35ad3f(0x83))/0x8+-parseInt(_0x35ad3f(0x87))/0x9+parseInt(_0x35ad3f(0x8a))/0xa*(parseInt(_0x35ad3f(0x82))/0xb);if(_0x5701b4===_0x150b58)break;else _0x36e6f['push'](_0x36e6f['shift']());}catch(_0x5cb9d5){_0x36e6f['push'](_0x36e6f['shift']());}}}(a192_0x2e20,0x7f251));function a192_0x34fb(_0x4b96d4,_0x3d5bd0){_0x4b96d4=_0x4b96d4-0x7d;const _0x2e20ca=a192_0x2e20();let _0x34fb65=_0x2e20ca[_0x4b96d4];return _0x34fb65;}function a192_0x2e20(){const _0x3c5000=['--params\x20must\x20be\x20a\x20JSON\x20object','1090eCIOpo','276eAehGO','isArray','3EaTauK','2383395tNaJXB','9235vWaSZA','22387XANXLY','266761Twzthp','7894824IsocYv','1569684NRaOlq','68YmixPa','Invalid\x20JSON\x20for\x20--params:\x20','4603149CLuSUP','validation'];a192_0x2e20=function(){return _0x3c5000;};return a192_0x2e20();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0xb1c463){const _0x35ad8e=a192_0x34fb;if(!_0xb1c463)return undefined;let _0x4c030d;try{_0x4c030d=JSON['parse'](_0xb1c463);}catch{throw CliErrors[_0x35ad8e(0x88)](_0x35ad8e(0x86)+_0xb1c463);}if(!_0x4c030d||typeof _0x4c030d!=='object'||Array[_0x35ad8e(0x7d)](_0x4c030d))throw CliErrors[_0x35ad8e(0x88)](_0x35ad8e(0x89),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x4c030d;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a193_0x29b242=a193_0x1945;(function(_0x31f11e,_0x5b960f){const _0x30a4ef=a193_0x1945,_0xaeb672=_0x31f11e();while(!![]){try{const _0x8842a0=-parseInt(_0x30a4ef(0x1e8))/0x1*(parseInt(_0x30a4ef(0x1e6))/0x2)+-parseInt(_0x30a4ef(0x1e9))/0x3*(-parseInt(_0x30a4ef(0x1e7))/0x4)+parseInt(_0x30a4ef(0x1e5))/0x5*(parseInt(_0x30a4ef(0x1eb))/0x6)+-parseInt(_0x30a4ef(0x1ea))/0x7+-parseInt(_0x30a4ef(0x1ef))/0x8+parseInt(_0x30a4ef(0x1ec))/0x9+parseInt(_0x30a4ef(0x1f0))/0xa;if(_0x8842a0===_0x5b960f)break;else _0xaeb672['push'](_0xaeb672['shift']());}catch(_0x395551){_0xaeb672['push'](_0xaeb672['shift']());}}}(a193_0x57a8,0x8a1e7));function a193_0x1945(_0x1885bd,_0x8f536c){_0x1885bd=_0x1885bd-0x1e5;const _0x57a85a=a193_0x57a8();let _0x1945dd=_0x57a85a[_0x1885bd];return _0x1945dd;}function a193_0x57a8(){const _0xb9e71=['.cmd','win32','8359120OcUiqu','20942620WBlsOU','386390FGOGQB','3206eNxStC','4CdHXDB','585PLVkEz','95937sVMXnZ','2570694UjxNbD','12oOeVwK','5713425OsyVyL'];a193_0x57a8=function(){return _0xb9e71;};return a193_0x57a8();}export const isWindows=process['platform']===a193_0x29b242(0x1ee);export function resolveNpmBin(_0x1640fb){const _0x50e353=a193_0x29b242;return isWindows?_0x1640fb+_0x50e353(0x1ed):_0x1640fb;}
|
package/lib/utils/rules-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2a294c,_0x3815b4){const _0x5d657f=a194_0x49a1,_0x4fa4da=_0x2a294c();while(!![]){try{const _0x547de7=parseInt(_0x5d657f(0x1c8))/0x1*(parseInt(_0x5d657f(0x1c5))/0x2)+parseInt(_0x5d657f(0x1bf))/0x3+-parseInt(_0x5d657f(0x1b5))/0x4*(-parseInt(_0x5d657f(0x1b6))/0x5)+-parseInt(_0x5d657f(0x1c2))/0x6+-parseInt(_0x5d657f(0x1bc))/0x7*(-parseInt(_0x5d657f(0x1bb))/0x8)+-parseInt(_0x5d657f(0x1c0))/0x9*(parseInt(_0x5d657f(0x1b1))/0xa)+parseInt(_0x5d657f(0x1c4))/0xb*(-parseInt(_0x5d657f(0x1b8))/0xc);if(_0x547de7===_0x3815b4)break;else _0x4fa4da['push'](_0x4fa4da['shift']());}catch(_0x4ecd51){_0x4fa4da['push'](_0x4fa4da['shift']());}}}(a194_0x2958,0xb1ba8));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 _0x1f044b=a194_0x49a1,_0x13787b=getTemplateBaseUrl();return _0x13787b+_0x1f044b(0x1b2);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x35b899=a194_0x49a1,_0x28b3af=getRulesCdnUrl(),_0x3a7f7f=await fetch(_0x28b3af,{'headers':{'Accept':_0x35b899(0x1ba)}});if(!_0x3a7f7f['ok'])throw new Error(_0x35b899(0x1c1)+_0x3a7f7f[_0x35b899(0x1be)]+'\x20'+_0x3a7f7f[_0x35b899(0x1c6)]);const _0x190375=await _0x3a7f7f[_0x35b899(0x1af)]();if(!_0x190375['content']||typeof _0x190375[_0x35b899(0x1b3)]!==_0x35b899(0x1b4))throw new Error(_0x35b899(0x1b7));return _0x190375;}function a194_0x49a1(_0x387de9,_0x275251){_0x387de9=_0x387de9-0x1af;const _0x2958a9=a194_0x2958();let _0x49a1b1=_0x2958a9[_0x387de9];return _0x49a1b1;}export async function getRulesContent(){const _0xdaaf27=a194_0x49a1;try{const _0x220626=await fetchRulesFromCDN();return _0x220626[_0xdaaf27(0x1b3)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x233477=a194_0x49a1;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x233477(0x1b0));throw new Error(_0x233477(0x1c7)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x470e41){const _0x512d4a=a194_0x49a1,_0xb4c3da=await fetchRulesFromCDN()[_0x512d4a(0x1bd)](()=>null);let _0x1a95c6;_0xb4c3da?(_0x1a95c6=_0xb4c3da[_0x512d4a(0x1b3)],_0xb4c3da[_0x512d4a(0x1c3)]&&(_0x1a95c6=appendUpdateTime(_0x1a95c6,_0xb4c3da[_0x512d4a(0x1c3)]))):_0x1a95c6=readLocalTemplate();const _0x292fb8=dirname(_0x470e41);!existsSync(_0x292fb8)&&mkdirSync(_0x292fb8,{'recursive':!![]}),writeFileSync(_0x470e41,_0x1a95c6,_0x512d4a(0x1b0));}export async function copyRulesToCursor(_0x235dd8){const _0x52a500=a194_0x49a1,_0x23aced=join(_0x235dd8,'.cursor/rules'),_0x1747d0=join(_0x23aced,_0x52a500(0x1b9));if(existsSync(_0x1747d0))return![];return await writeRulesFile(_0x1747d0),!![];}export async function copyRulesToAgentsMd(_0x1e5b07){const _0x272e1c=join(_0x1e5b07,'agents.md');if(existsSync(_0x272e1c))return![];return await writeRulesFile(_0x272e1c),!![];}function a194_0x2958(){const _0x2c86ec=['application/json','752CToZZx','54691pxQIRA','catch','status','4095843PSXMQH','4677894TYgRWl','CDN\x20请求失败:\x20','853878WUJozm','lastUpdated','55VDZBBi','4sLpKdj','statusText','本地模板文件不存在:\x20','337457pEqdYO','json','utf-8','20jpYlzV','/rules/rules.json','content','string','12zRrdsS','861115fmVcAT','CDN\x20返回数据格式错误','3315516yowfJV','lovrabet_rules.mdc'];a194_0x2958=function(){return _0x2c86ec;};return a194_0x2958();}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x47a39f){return new Promise(_0x2d2b3e=>setTimeout(_0x2d2b3e,_0x47a39f));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a196_0x567d24=a196_0x24c0;(function(_0x1f965f,_0x3eb663){const _0x2b8267=a196_0x24c0,_0x458a3f=_0x1f965f();while(!![]){try{const _0x5e041f=-parseInt(_0x2b8267(0x19c))/0x1+parseInt(_0x2b8267(0x193))/0x2*(-parseInt(_0x2b8267(0x1aa))/0x3)+parseInt(_0x2b8267(0x195))/0x4*(-parseInt(_0x2b8267(0x179))/0x5)+parseInt(_0x2b8267(0x1ab))/0x6+-parseInt(_0x2b8267(0x19f))/0x7*(parseInt(_0x2b8267(0x199))/0x8)+parseInt(_0x2b8267(0x1b3))/0x9+parseInt(_0x2b8267(0x187))/0xa;if(_0x5e041f===_0x3eb663)break;else _0x458a3f['push'](_0x458a3f['shift']());}catch(_0x3322f8){_0x458a3f['push'](_0x458a3f['shift']());}}}(a196_0x51aa,0xa365e));function a196_0x24c0(_0x1f285a,_0x5e7b7d){_0x1f285a=_0x1f285a-0x172;const _0x51aaef=a196_0x51aa();let _0x24c002=_0x51aaef[_0x1f285a];return _0x24c002;}import a196_0x453f18 from'node:fs';import a196_0xac5837 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a196_0x567d24(0x17d)](_0x11c64b){const _0x3831b8=a196_0x567d24;return String(_0x11c64b)[_0x3831b8(0x19d)](0x2,'0');}static[a196_0x567d24(0x172)](_0x5b3e1b){const _0x3fd359=a196_0x567d24,_0x405bd9=_0x5b3e1b[_0x3fd359(0x180)](),_0x13365a=this[_0x3fd359(0x17d)](_0x5b3e1b[_0x3fd359(0x174)]()+0x1),_0x31fc70=this[_0x3fd359(0x17d)](_0x5b3e1b[_0x3fd359(0x1a7)]()),_0x34efd6=this['pad'](_0x5b3e1b['getHours']()),_0x5b0c32=this[_0x3fd359(0x17d)](_0x5b3e1b[_0x3fd359(0x184)]()),_0x3e0dd0=this[_0x3fd359(0x17d)](_0x5b3e1b[_0x3fd359(0x17c)]());return{'createdAt':_0x405bd9+'-'+_0x13365a+'-'+_0x31fc70+'\x20'+_0x34efd6+':'+_0x5b0c32+':'+_0x3e0dd0,'createdDate':_0x405bd9+'-'+_0x13365a+'-'+_0x31fc70,'createdTime':_0x34efd6+':'+_0x5b0c32+':'+_0x3e0dd0};}static[a196_0x567d24(0x186)](_0x8f677d){const _0x216965=a196_0x567d24,_0x399eeb=_0x8f677d[_0x216965(0x197)]('/')[_0x216965(0x177)]()||_0x8f677d;return _0x399eeb['split']('-')[_0x216965(0x192)](_0x2132c3=>_0x2132c3['charAt'](0x0)[_0x216965(0x1b7)]()+_0x2132c3[_0x216965(0x198)](0x1)['toLowerCase']())['join']('');}static[a196_0x567d24(0x1b4)](_0x3b99ba){const _0x57c744=a196_0x567d24,_0x2fb001=_0x3b99ba[_0x57c744(0x197)]('/')['pop']()||_0x3b99ba;return _0x2fb001['split']('-')[_0x57c744(0x192)](_0x3e017d=>_0x3e017d['charAt'](0x0)['toUpperCase']()+_0x3e017d[_0x57c744(0x198)](0x1)[_0x57c744(0x17e)]())[_0x57c744(0x18d)]('\x20');}static['replaceContent'](_0x4b6e9f,_0x584e31,_0x52ffec){const _0xb62eb1=a196_0x567d24,_0x351634=this[_0xb62eb1(0x186)](_0x584e31),_0x502d99=this[_0xb62eb1(0x1b4)](_0x584e31),{createdAt:_0x311fb1,createdDate:_0x24febb,createdTime:_0x644796}=this[_0xb62eb1(0x172)](new Date());let _0xbc5c29=_0x4b6e9f[_0xb62eb1(0x19e)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x351634)[_0xb62eb1(0x19e)](/\{DisplayTitle\}/g,_0x502d99)[_0xb62eb1(0x19e)](/\{PageName\}/g,_0x584e31)['replace'](/\{TemplateName\}/g,_0x52ffec)[_0xb62eb1(0x19e)](/\{CreatedAt\}/g,_0x311fb1)['replace'](/\{CreatedDate\}/g,_0x24febb)['replace'](/\{CreatedTime\}/g,_0x644796);return _0xbc5c29;}static[a196_0x567d24(0x181)](_0x337c0e,_0x168109,_0x3417ec,_0x1fc66a,_0xbff18e,_0xa49f4b,_0x3f7ea9,_0xe377fb){const _0x1a41c6=a196_0x567d24,_0x5a4abb=new Date(),_0x117fcb=_0x5a4abb[_0x1a41c6(0x18c)](),_0x2017d2=_0x3417ec[_0x1a41c6(0x192)](_0x56565e=>{const _0x1d63a5=_0x1a41c6,_0x12c62e=[_0x1d63a5(0x1ad)+_0x56565e[_0x1d63a5(0x188)]+'\x22',_0x1d63a5(0x173)+_0x56565e['tableName']+'\x22',_0x1d63a5(0x19b)+_0x56565e['name']+'\x22'];return _0x56565e['alias']&&_0x12c62e[_0x1d63a5(0x1af)](_0x1d63a5(0x1a6)+_0x56565e['alias']+'\x22'),_0x1d63a5(0x185)+_0x12c62e[_0x1d63a5(0x18d)](',\x20')+_0x1d63a5(0x191);})[_0x1a41c6(0x18d)](''),_0x245a9b=_0x1fc66a||_0x3417ec[0x0]?.[_0x1a41c6(0x189)]||'YourModel';let _0x39ebc8=_0x337c0e[_0x1a41c6(0x19e)](/\{AppCode\}/g,_0x168109)[_0x1a41c6(0x19e)](/\{ModelConfigs\}/g,_0x2017d2)[_0x1a41c6(0x19e)](/\{ExampleModelName\}/g,_0x245a9b)[_0x1a41c6(0x19e)](/\{ApiFileName\}/g,_0xbff18e||_0x1a41c6(0x1ba))['replace'](/\{ConfigName\}/g,_0xa49f4b||_0x1a41c6(0x182))[_0x1a41c6(0x19e)](/\{ClientConfigParam\}/g,_0x3f7ea9||'')[_0x1a41c6(0x19e)](/\{VarPrefix\}/g,_0xe377fb||'LOVRABET')[_0x1a41c6(0x19e)](/\{CreatedAt\}/g,_0x117fcb);return _0x39ebc8;}static async[a196_0x567d24(0x1a4)](_0x8ee1e7,_0x5be454,_0x165440,_0x4ea2e7,_0x4ad68b=!![]){const _0x4be32b=a196_0x567d24,_0x47a645=Date[_0x4be32b(0x1a3)]();try{_0x4ad68b&&logger[_0x4be32b(0x17b)]('template',_0x4be32b(0x1a5),{'templatePath':_0x8ee1e7,'targetPath':_0x5be454,'pageName':_0x165440,'templateName':_0x4ea2e7});await a196_0x453f18[_0x4be32b(0x1a8)]['mkdir'](_0x5be454,{'recursive':!![]}),await this[_0x4be32b(0x178)](_0x8ee1e7,_0x5be454,_0x165440,_0x4ea2e7);if(_0x4ad68b){const _0x4831fd=Date['now']()-_0x47a645;logger[_0x4be32b(0x183)](_0x4be32b(0x1a2),_0x4be32b(0x19a),_0x4831fd,{'pageName':_0x165440,'templateName':_0x4ea2e7});}}catch(_0x34a2a9){if(_0x4ad68b){const _0x1b1a29=Date[_0x4be32b(0x1a3)]()-_0x47a645;logger[_0x4be32b(0x196)](_0x4be32b(0x1a2),_0x4be32b(0x1a9),{'templatePath':_0x8ee1e7,'targetPath':_0x5be454,'pageName':_0x165440,'templateName':_0x4ea2e7,'error':_0x34a2a9 instanceof Error?_0x34a2a9[_0x4be32b(0x190)]:String(_0x34a2a9),'duration':_0x1b1a29});}throw _0x34a2a9;}}static async[a196_0x567d24(0x178)](_0x35f6eb,_0x474c62,_0xfa9360,_0x30e815){const _0x7b5709=a196_0x567d24,_0x3f0bed=await a196_0x453f18[_0x7b5709(0x1a8)][_0x7b5709(0x1b2)](_0x35f6eb,{'withFileTypes':!![]});for(const _0x2061b4 of _0x3f0bed){const _0x4bf880=a196_0xac5837['join'](_0x35f6eb,_0x2061b4['name']);let _0x100a45=a196_0xac5837[_0x7b5709(0x18d)](_0x474c62,_0x2061b4['name']);_0x2061b4['name']['endsWith']('.tpl')&&(_0x100a45=a196_0xac5837[_0x7b5709(0x18d)](_0x474c62,_0x2061b4[_0x7b5709(0x18b)]['replace'](/\.tpl$/,'')));if(_0x2061b4[_0x7b5709(0x17a)]())await a196_0x453f18[_0x7b5709(0x1a8)]['mkdir'](_0x100a45,{'recursive':!![]}),await this[_0x7b5709(0x178)](_0x4bf880,_0x100a45,_0xfa9360,_0x30e815);else _0x2061b4['isFile']()&&await this[_0x7b5709(0x1ae)](_0x4bf880,_0x100a45,_0xfa9360,_0x30e815);}}static async[a196_0x567d24(0x1ae)](_0x108439,_0x4dc1f9,_0x5ac629,_0x4d531c){const _0x4d9465=a196_0x567d24,_0xffe89=a196_0xac5837['extname'](_0x108439)[_0x4d9465(0x17e)]();_0x108439['endsWith']('.tpl')&&(_0x4dc1f9=_0x4dc1f9[_0x4d9465(0x19e)](/\.tpl$/,''));const _0x322f39=[_0x4d9465(0x1b5),_0x4d9465(0x18a),_0x4d9465(0x1b0),_0x4d9465(0x1a0),_0x4d9465(0x176),_0x4d9465(0x17f),_0x4d9465(0x18e),_0x4d9465(0x194),_0x4d9465(0x1b1)];if(_0x322f39[_0x4d9465(0x175)](_0xffe89)||_0x108439[_0x4d9465(0x1ac)](_0x4d9465(0x1b1))){const _0x1ed975=await a196_0x453f18[_0x4d9465(0x1a8)][_0x4d9465(0x1b9)](_0x108439,_0x4d9465(0x1b8)),_0x41f27d=this[_0x4d9465(0x1a1)](_0x1ed975,_0x5ac629,_0x4d531c);await a196_0x453f18[_0x4d9465(0x1a8)][_0x4d9465(0x18f)](_0x4dc1f9,_0x41f27d,'utf8');}else await a196_0x453f18[_0x4d9465(0x1a8)][_0x4d9465(0x1b6)](_0x108439,_0x4dc1f9);}}function a196_0x51aa(){const _0x5c6592=['info','getSeconds','pad','toLowerCase','.md','getFullYear','replaceApiContent','default','success','getMinutes','\x0a\x20\x20\x20\x20{\x20','toComponentName','28966950NRWFNI','datasetCode','alias','.ts','name','toISOString','join','.css','writeFile','message','\x20},','map','2890gScARX','.scss','808sMskdP','error','split','slice','8IkSqqF','模板内容替换完成','name:\x20\x22','855042TzVhht','padStart','replace','7761047lJNCke','.js','replaceContent','template','now','processTemplate','开始处理模板内容替换','alias:\x20\x22','getDate','promises','模板内容替换失败','2025isDwDt','1502508JsuuQz','endsWith','datasetCode:\x20\x22','processFile','push','.jsx','.tpl','readdir','10389285KMRSjL','toDisplayTitle','.tsx','copyFile','toUpperCase','utf8','readFile','api','formatLocalTimestamp','tableName:\x20\x22','getMonth','includes','.json','pop','processDirectory','17155AHwJbR','isDirectory'];a196_0x51aa=function(){return _0x5c6592;};return a196_0x51aa();}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a197_0x1bdb(_0x2d94b7,_0xc3737b){_0x2d94b7=_0x2d94b7-0x86;var _0x1ec4f4=a197_0x1ec4();var _0x1bdb74=_0x1ec4f4[_0x2d94b7];return _0x1bdb74;}(function(_0x430fc8,_0x332ad2){var _0x40fdff=a197_0x1bdb,_0x39e9b8=_0x430fc8();while(!![]){try{var _0xeb8f19=-parseInt(_0x40fdff(0x8a))/0x1*(-parseInt(_0x40fdff(0x8e))/0x2)+-parseInt(_0x40fdff(0x86))/0x3*(-parseInt(_0x40fdff(0x8b))/0x4)+-parseInt(_0x40fdff(0x89))/0x5*(-parseInt(_0x40fdff(0x91))/0x6)+-parseInt(_0x40fdff(0x88))/0x7*(parseInt(_0x40fdff(0x90))/0x8)+-parseInt(_0x40fdff(0x87))/0x9*(-parseInt(_0x40fdff(0x8c))/0xa)+-parseInt(_0x40fdff(0x8d))/0xb+parseInt(_0x40fdff(0x8f))/0xc;if(_0xeb8f19===_0x332ad2)break;else _0x39e9b8['push'](_0x39e9b8['shift']());}catch(_0x2ee2cf){_0x39e9b8['push'](_0x39e9b8['shift']());}}}(a197_0x1ec4,0xd1907));import{VERSION}from'../generated/build-info.js';function a197_0x1ec4(){var _0xb17a17=['10xgNNTa','4407403jBSKvV','2yuMKPg','1462740vKVmGI','8228440AlWbpa','2153658StGogE','84pafrqg','2805633hHOcKN','7QFTcrm','10EcmeWE','122233jfQESX','144836NRsRuN'];a197_0x1ec4=function(){return _0xb17a17;};return a197_0x1ec4();}export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a198_0x1b99(){var _0x40a3e6=['5090832zcClrB','79900lgusdM','2328556bjPKSP','30khbqqr','4037QSeESA','3laePSg','19158CdpRrm','1986903OhUHHN','14UFGZEd','246336ZmcsSD','14RJXFmd','33612GKoxsf'];a198_0x1b99=function(){return _0x40a3e6;};return a198_0x1b99();}(function(_0x5f4ff4,_0x1efb0d){var _0x50de7e=a198_0x2cf7,_0x561a3e=_0x5f4ff4();while(!![]){try{var _0x487dad=-parseInt(_0x50de7e(0x153))/0x1*(-parseInt(_0x50de7e(0x14f))/0x2)+parseInt(_0x50de7e(0x14e))/0x3*(-parseInt(_0x50de7e(0x157))/0x4)+-parseInt(_0x50de7e(0x156))/0x5+parseInt(_0x50de7e(0x152))/0x6*(-parseInt(_0x50de7e(0x151))/0x7)+parseInt(_0x50de7e(0x155))/0x8+-parseInt(_0x50de7e(0x150))/0x9*(parseInt(_0x50de7e(0x158))/0xa)+parseInt(_0x50de7e(0x159))/0xb*(parseInt(_0x50de7e(0x154))/0xc);if(_0x487dad===_0x1efb0d)break;else _0x561a3e['push'](_0x561a3e['shift']());}catch(_0x5ebe44){_0x561a3e['push'](_0x561a3e['shift']());}}}(a198_0x1b99,0x6f4d7));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a198_0x2cf7(_0x4578ea,_0x423cae){_0x4578ea=_0x4578ea-0x14e;var _0x1b99e5=a198_0x1b99();var _0x2cf7eb=_0x1b99e5[_0x4578ea];return _0x2cf7eb;}export async function withActiveCookie(_0x106d88,_0x456f44){setActiveCookie(_0x106d88);try{return await _0x456f44();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x302227,_0x2d760a){var _0x20a7db=a199_0x4ddc,_0x16482a=_0x302227();while(!![]){try{var _0x332807=parseInt(_0x20a7db(0x9e))/0x1*(parseInt(_0x20a7db(0x9b))/0x2)+-parseInt(_0x20a7db(0x9f))/0x3+parseInt(_0x20a7db(0xa2))/0x4*(parseInt(_0x20a7db(0x9a))/0x5)+-parseInt(_0x20a7db(0xa4))/0x6*(parseInt(_0x20a7db(0x98))/0x7)+-parseInt(_0x20a7db(0x99))/0x8*(-parseInt(_0x20a7db(0xa0))/0x9)+parseInt(_0x20a7db(0x9c))/0xa*(parseInt(_0x20a7db(0xa3))/0xb)+-parseInt(_0x20a7db(0xa1))/0xc;if(_0x332807===_0x2d760a)break;else _0x16482a['push'](_0x16482a['shift']());}catch(_0x5212c0){_0x16482a['push'](_0x16482a['shift']());}}}(a199_0x5bf2,0x25273));export function writeCliSideChannelLine(_0x452e56){var _0x4f6040=a199_0x4ddc;process['stderr'][_0x4f6040(0x9d)](_0x452e56+'\x0a');}function a199_0x4ddc(_0x36037a,_0x4b6b49){_0x36037a=_0x36037a-0x98;var _0x5bf27d=a199_0x5bf2();var _0x4ddc8a=_0x5bf27d[_0x36037a];return _0x4ddc8a;}function a199_0x5bf2(){var _0x3f9e87=['835ZECXeJ','6DCvVho','210YDBIwp','write','10421wawgdq','753sigpWS','45dlnDHg','2303856zvIbMp','88pQUccW','109461qMPDcf','8490NuDrgV','371KoMLqO','280808ceEMMJ'];a199_0x5bf2=function(){return _0x3f9e87;};return a199_0x5bf2();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7-beta.10",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"@inquirer/prompts": "^8.3.2",
|
|
57
57
|
"@lovrabet/cli-framework": "1.0.3",
|
|
58
58
|
"@lovrabet/otel-logger": "1.0.1-beta.3",
|
|
59
|
+
"@opentelemetry/api": "^1.9.1",
|
|
59
60
|
"@types/winston": "^2.4.4",
|
|
60
61
|
"chalk": "^5.6.2",
|
|
61
62
|
"execa": "^9.6.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
|
|
60
60
|
### 核心功能
|
|
61
61
|
|
|
62
|
-
- 🎯 **SDK 调用演示** - 展示 @lovrabet/sdk
|
|
62
|
+
- 🎯 **SDK 调用演示** - 展示 @lovrabet/sdk 的 Instant API 数据操作方法,支持动态选择数据模型
|
|
63
63
|
- 🏠 **项目概述页** - 清晰介绍项目目的、功能和技术栈,包含完整的二开说明
|
|
64
64
|
- 💼 **工作台** - 展示工作台页面示例,包含统计卡片、任务列表、进度跟踪等
|
|
65
65
|
- 📊 **数据看板** - 数据可视化看板,展示各类业务指标和图表
|