@lovrabet/rabetbase-cli 2.1.6 → 2.1.7-beta.2
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/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x46a497,_0x1f2cd9){const _0x14c5d6=a192_0x2b79,_0x33fc11=_0x46a497();while(!![]){try{const _0xf90f89=parseInt(_0x14c5d6(0x157))/0x1*(-parseInt(_0x14c5d6(0x156))/0x2)+parseInt(_0x14c5d6(0x159))/0x3+parseInt(_0x14c5d6(0x154))/0x4+-parseInt(_0x14c5d6(0x15b))/0x5+-parseInt(_0x14c5d6(0x15f))/0x6+-parseInt(_0x14c5d6(0x15d))/0x7*(parseInt(_0x14c5d6(0x15e))/0x8)+parseInt(_0x14c5d6(0x160))/0x9;if(_0xf90f89===_0x1f2cd9)break;else _0x33fc11['push'](_0x33fc11['shift']());}catch(_0x22860c){_0x33fc11['push'](_0x33fc11['shift']());}}}(a192_0x4a53,0x87584));function a192_0x2b79(_0x4747b3,_0x370caf){_0x4747b3=_0x4747b3-0x154;const _0x4a53ff=a192_0x4a53();let _0x2b796c=_0x4a53ff[_0x4747b3];return _0x2b796c;}function a192_0x4a53(){const _0x32654e=['object','5078utKmfY','8fJXGZD','Invalid\x20JSON\x20for\x20--params:\x20','828630dronNe','validation','5084125TMEMUA','isArray','7763hMRUhh','2056XvaQyz','4377210YTHHMQ','12848454OdGCwq','3608964mJngBB'];a192_0x4a53=function(){return _0x32654e;};return a192_0x4a53();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x1d6f55){const _0x961b26=a192_0x2b79;if(!_0x1d6f55)return undefined;let _0x464dc4;try{_0x464dc4=JSON['parse'](_0x1d6f55);}catch{throw CliErrors[_0x961b26(0x15a)](_0x961b26(0x158)+_0x1d6f55);}if(!_0x464dc4||typeof _0x464dc4!==_0x961b26(0x155)||Array[_0x961b26(0x15c)](_0x464dc4))throw CliErrors[_0x961b26(0x15a)]('--params\x20must\x20be\x20a\x20JSON\x20object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x464dc4;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a193_0x3741bf=a193_0x3f07;(function(_0x14a5b6,_0x204abd){const _0xba6e34=a193_0x3f07,_0x2ceeca=_0x14a5b6();while(!![]){try{const _0x5af51a=-parseInt(_0xba6e34(0x7c))/0x1+-parseInt(_0xba6e34(0x79))/0x2+parseInt(_0xba6e34(0x77))/0x3+parseInt(_0xba6e34(0x7b))/0x4+-parseInt(_0xba6e34(0x74))/0x5+parseInt(_0xba6e34(0x76))/0x6*(-parseInt(_0xba6e34(0x78))/0x7)+parseInt(_0xba6e34(0x75))/0x8*(parseInt(_0xba6e34(0x7a))/0x9);if(_0x5af51a===_0x204abd)break;else _0x2ceeca['push'](_0x2ceeca['shift']());}catch(_0x3b961b){_0x2ceeca['push'](_0x2ceeca['shift']());}}}(a193_0xed68,0x98c1d));function a193_0x3f07(_0x3d4408,_0x5c3c0b){_0x3d4408=_0x3d4408-0x74;const _0xed6876=a193_0xed68();let _0x3f0753=_0xed6876[_0x3d4408];return _0x3f0753;}export const isWindows=process[a193_0x3741bf(0x7d)]==='win32';export function resolveNpmBin(_0x4d6e1d){return isWindows?_0x4d6e1d+'.cmd':_0x4d6e1d;}function a193_0xed68(){const _0x5bbf2c=['9QkyaEn','120480ANxvcE','547256jueVTm','platform','1733905NJZLDZ','23689128kCtEVF','12aCNqSH','30894PAyFYK','3522491UpSbst','950806VqOugC'];a193_0xed68=function(){return _0x5bbf2c;};return a193_0xed68();}
|
package/lib/utils/rules-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a194_0x48fd38=a194_0x4dbf;(function(_0x574cb3,_0x23cc96){const _0xf3ca50=a194_0x4dbf,_0x2f400a=_0x574cb3();while(!![]){try{const _0x3372aa=-parseInt(_0xf3ca50(0x128))/0x1*(-parseInt(_0xf3ca50(0x120))/0x2)+parseInt(_0xf3ca50(0x12a))/0x3+-parseInt(_0xf3ca50(0x127))/0x4*(-parseInt(_0xf3ca50(0x11c))/0x5)+-parseInt(_0xf3ca50(0x12d))/0x6+parseInt(_0xf3ca50(0x121))/0x7+-parseInt(_0xf3ca50(0x130))/0x8*(-parseInt(_0xf3ca50(0x122))/0x9)+-parseInt(_0xf3ca50(0x11e))/0xa*(parseInt(_0xf3ca50(0x12b))/0xb);if(_0x3372aa===_0x23cc96)break;else _0x2f400a['push'](_0x2f400a['shift']());}catch(_0x3d613a){_0x2f400a['push'](_0x2f400a['shift']());}}}(a194_0x26c5,0xb97d7));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 _0x505264=a194_0x4dbf,_0x5222c6=getTemplateBaseUrl();return _0x5222c6+_0x505264(0x11a);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a194_0x48fd38(0x119));export async function fetchRulesFromCDN(){const _0x3840d8=a194_0x48fd38,_0x548126=getRulesCdnUrl(),_0x25bc50=await fetch(_0x548126,{'headers':{'Accept':'application/json'}});if(!_0x25bc50['ok'])throw new Error(_0x3840d8(0x11b)+_0x25bc50[_0x3840d8(0x129)]+'\x20'+_0x25bc50['statusText']);const _0x2efba3=await _0x25bc50[_0x3840d8(0x12c)]();if(!_0x2efba3['content']||typeof _0x2efba3[_0x3840d8(0x12e)]!==_0x3840d8(0x125))throw new Error(_0x3840d8(0x124));return _0x2efba3;}function a194_0x26c5(){const _0x3628a1=['2459974JQzyYg','json','7358028bCkfDa','content','agents.md','173176ObHJHi','utf-8','../../templates/rules/lovrabet_rules.mdc.tpl','/rules/rules.json','CDN\x20请求失败:\x20','8090DSPalx','本地模板文件不存在:\x20','70SSDzSe','lastUpdated','466mazsxV','7427098xiReKm','450tPTQEw','lovrabet_rules.mdc','CDN\x20返回数据格式错误','string','.cursor/rules','4vvVBet','3181OtHmvC','status','1996164aCjGRG'];a194_0x26c5=function(){return _0x3628a1;};return a194_0x26c5();}export async function getRulesContent(){try{const _0x4f67ef=await fetchRulesFromCDN();return _0x4f67ef['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x13a492=a194_0x48fd38;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x13a492(0x131));throw new Error(_0x13a492(0x11d)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x353a61){const _0x22253c=a194_0x48fd38,_0x316701=await fetchRulesFromCDN()['catch'](()=>null);let _0x238a26;_0x316701?(_0x238a26=_0x316701[_0x22253c(0x12e)],_0x316701[_0x22253c(0x11f)]&&(_0x238a26=appendUpdateTime(_0x238a26,_0x316701[_0x22253c(0x11f)]))):_0x238a26=readLocalTemplate();const _0x1ba3c6=dirname(_0x353a61);!existsSync(_0x1ba3c6)&&mkdirSync(_0x1ba3c6,{'recursive':!![]}),writeFileSync(_0x353a61,_0x238a26,_0x22253c(0x131));}export async function copyRulesToCursor(_0x49e75e){const _0x9d0f27=a194_0x48fd38,_0x4071bf=join(_0x49e75e,_0x9d0f27(0x126)),_0x184580=join(_0x4071bf,_0x9d0f27(0x123));if(existsSync(_0x184580))return![];return await writeRulesFile(_0x184580),!![];}function a194_0x4dbf(_0x393827,_0x3f251e){_0x393827=_0x393827-0x119;const _0x26c540=a194_0x26c5();let _0x4dbf02=_0x26c540[_0x393827];return _0x4dbf02;}export async function copyRulesToAgentsMd(_0x27ed79){const _0xccab7f=a194_0x48fd38,_0x3cda23=join(_0x27ed79,_0xccab7f(0x12f));if(existsSync(_0x3cda23))return![];return await writeRulesFile(_0x3cda23),!![];}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x1d0344){return new Promise(_0x4403cc=>setTimeout(_0x4403cc,_0x1d0344));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a196_0x47aa15=a196_0x17cc;(function(_0xca20e9,_0x1df34c){const _0xe741e7=a196_0x17cc,_0x2b6167=_0xca20e9();while(!![]){try{const _0x3d36c4=-parseInt(_0xe741e7(0x122))/0x1*(parseInt(_0xe741e7(0x12f))/0x2)+parseInt(_0xe741e7(0x13e))/0x3*(-parseInt(_0xe741e7(0x128))/0x4)+parseInt(_0xe741e7(0x140))/0x5*(-parseInt(_0xe741e7(0x10f))/0x6)+-parseInt(_0xe741e7(0x127))/0x7+-parseInt(_0xe741e7(0x12c))/0x8+-parseInt(_0xe741e7(0xfe))/0x9+parseInt(_0xe741e7(0x137))/0xa*(parseInt(_0xe741e7(0x11f))/0xb);if(_0x3d36c4===_0x1df34c)break;else _0x2b6167['push'](_0x2b6167['shift']());}catch(_0x324212){_0x2b6167['push'](_0x2b6167['shift']());}}}(a196_0x5c51,0x33916));import a196_0x1dd365 from'node:fs';import a196_0x2c3dfe from'node:path';function a196_0x5c51(){const _0x40fba4=['push','13278jQHWls','tableName:\x20\x22','readdir','split','extname','toISOString','message','name:\x20\x22','isFile','replaceContent','toUpperCase','includes','mkdir','info','api','getHours','11LsAwVn','map','replace','23tapQgj','formatLocalTimestamp','promises','slice','开始处理模板内容替换','1130570ZvObDk','129880hNTGSm','pad','toLowerCase','charAt','1032072LuxcLp','datasetCode:\x20\x22','template','5594HvaoqL','getMonth','processTemplate','pop','getMinutes','YourModel','processFile','success','8202710fckvqn','.scss','getFullYear','getDate','processDirectory','.ts','alias','3olutyb','\x20},','215xxKlDQ','tableName','name','1139130fpUDwk','utf8','writeFile','endsWith','join','toComponentName','now','模板内容替换完成','readFile','padStart','.tsx','datasetCode','.css','toDisplayTitle','.jsx','.tpl'];a196_0x5c51=function(){return _0x40fba4;};return a196_0x5c51();}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a196_0x17cc(_0x455f07,_0x15e3a3){_0x455f07=_0x455f07-0xfc;const _0x5c51a2=a196_0x5c51();let _0x17cc66=_0x5c51a2[_0x455f07];return _0x17cc66;}export class TemplateReplacer{static['pad'](_0x4f50fb){const _0x4c7618=a196_0x17cc;return String(_0x4f50fb)[_0x4c7618(0x107)](0x2,'0');}static[a196_0x47aa15(0x123)](_0x1a0539){const _0x558530=a196_0x47aa15,_0x520a40=_0x1a0539[_0x558530(0x139)](),_0x24f411=this[_0x558530(0x129)](_0x1a0539[_0x558530(0x130)]()+0x1),_0x2ead62=this[_0x558530(0x129)](_0x1a0539[_0x558530(0x13a)]()),_0x231ce8=this[_0x558530(0x129)](_0x1a0539[_0x558530(0x11e)]()),_0x2febaf=this[_0x558530(0x129)](_0x1a0539[_0x558530(0x133)]()),_0x5e8b06=this[_0x558530(0x129)](_0x1a0539['getSeconds']());return{'createdAt':_0x520a40+'-'+_0x24f411+'-'+_0x2ead62+'\x20'+_0x231ce8+':'+_0x2febaf+':'+_0x5e8b06,'createdDate':_0x520a40+'-'+_0x24f411+'-'+_0x2ead62,'createdTime':_0x231ce8+':'+_0x2febaf+':'+_0x5e8b06};}static[a196_0x47aa15(0x103)](_0x34f159){const _0x2f595a=a196_0x47aa15,_0xcfae40=_0x34f159[_0x2f595a(0x112)]('/')[_0x2f595a(0x132)]()||_0x34f159;return _0xcfae40[_0x2f595a(0x112)]('-')[_0x2f595a(0x120)](_0x46ff7b=>_0x46ff7b[_0x2f595a(0x12b)](0x0)[_0x2f595a(0x119)]()+_0x46ff7b[_0x2f595a(0x125)](0x1)[_0x2f595a(0x12a)]())[_0x2f595a(0x102)]('');}static[a196_0x47aa15(0x10b)](_0x156271){const _0x35d13f=a196_0x47aa15,_0x10ea8c=_0x156271[_0x35d13f(0x112)]('/')['pop']()||_0x156271;return _0x10ea8c[_0x35d13f(0x112)]('-')[_0x35d13f(0x120)](_0x52b1c0=>_0x52b1c0['charAt'](0x0)[_0x35d13f(0x119)]()+_0x52b1c0[_0x35d13f(0x125)](0x1)[_0x35d13f(0x12a)]())[_0x35d13f(0x102)]('\x20');}static[a196_0x47aa15(0x118)](_0xe11ebf,_0x2d8abe,_0xe9d7e9){const _0x53fd8c=a196_0x47aa15,_0x4f2e1a=this[_0x53fd8c(0x103)](_0x2d8abe),_0x224670=this[_0x53fd8c(0x10b)](_0x2d8abe),{createdAt:_0x55520d,createdDate:_0x403b9e,createdTime:_0x208ad8}=this['formatLocalTimestamp'](new Date());let _0x518ac2=_0xe11ebf[_0x53fd8c(0x121)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x4f2e1a)[_0x53fd8c(0x121)](/\{DisplayTitle\}/g,_0x224670)[_0x53fd8c(0x121)](/\{PageName\}/g,_0x2d8abe)[_0x53fd8c(0x121)](/\{TemplateName\}/g,_0xe9d7e9)[_0x53fd8c(0x121)](/\{CreatedAt\}/g,_0x55520d)[_0x53fd8c(0x121)](/\{CreatedDate\}/g,_0x403b9e)['replace'](/\{CreatedTime\}/g,_0x208ad8);return _0x518ac2;}static['replaceApiContent'](_0x29fb95,_0x446044,_0x3461de,_0x3b9ed3,_0x508c4a,_0x40448a,_0x292e2e,_0x4f1905){const _0x428a65=a196_0x47aa15,_0x1e4488=new Date(),_0x562b93=_0x1e4488[_0x428a65(0x114)](),_0x1aeb50=_0x3461de[_0x428a65(0x120)](_0x1b1371=>{const _0x346bda=_0x428a65,_0x25667f=[_0x346bda(0x12d)+_0x1b1371[_0x346bda(0x109)]+'\x22',_0x346bda(0x110)+_0x1b1371[_0x346bda(0xfc)]+'\x22',_0x346bda(0x116)+_0x1b1371[_0x346bda(0xfd)]+'\x22'];return _0x1b1371['alias']&&_0x25667f[_0x346bda(0x10e)]('alias:\x20\x22'+_0x1b1371['alias']+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x25667f[_0x346bda(0x102)](',\x20')+_0x346bda(0x13f);})[_0x428a65(0x102)](''),_0x23c505=_0x3b9ed3||_0x3461de[0x0]?.[_0x428a65(0x13d)]||_0x428a65(0x134);let _0x571df6=_0x29fb95['replace'](/\{AppCode\}/g,_0x446044)['replace'](/\{ModelConfigs\}/g,_0x1aeb50)['replace'](/\{ExampleModelName\}/g,_0x23c505)[_0x428a65(0x121)](/\{ApiFileName\}/g,_0x508c4a||_0x428a65(0x11d))[_0x428a65(0x121)](/\{ConfigName\}/g,_0x40448a||'default')[_0x428a65(0x121)](/\{ClientConfigParam\}/g,_0x292e2e||'')[_0x428a65(0x121)](/\{VarPrefix\}/g,_0x4f1905||'LOVRABET')[_0x428a65(0x121)](/\{CreatedAt\}/g,_0x562b93);return _0x571df6;}static async[a196_0x47aa15(0x131)](_0x3793e3,_0xee27de,_0x1da113,_0x33eb54,_0x4a7b40=!![]){const _0x39dba3=a196_0x47aa15,_0x43cd16=Date[_0x39dba3(0x104)]();try{_0x4a7b40&&logger[_0x39dba3(0x11c)](_0x39dba3(0x12e),_0x39dba3(0x126),{'templatePath':_0x3793e3,'targetPath':_0xee27de,'pageName':_0x1da113,'templateName':_0x33eb54});await a196_0x1dd365[_0x39dba3(0x124)][_0x39dba3(0x11b)](_0xee27de,{'recursive':!![]}),await this['processDirectory'](_0x3793e3,_0xee27de,_0x1da113,_0x33eb54);if(_0x4a7b40){const _0x5611fd=Date[_0x39dba3(0x104)]()-_0x43cd16;logger[_0x39dba3(0x136)](_0x39dba3(0x12e),_0x39dba3(0x105),_0x5611fd,{'pageName':_0x1da113,'templateName':_0x33eb54});}}catch(_0x5985f9){if(_0x4a7b40){const _0x5671b2=Date['now']()-_0x43cd16;logger['error'](_0x39dba3(0x12e),'模板内容替换失败',{'templatePath':_0x3793e3,'targetPath':_0xee27de,'pageName':_0x1da113,'templateName':_0x33eb54,'error':_0x5985f9 instanceof Error?_0x5985f9[_0x39dba3(0x115)]:String(_0x5985f9),'duration':_0x5671b2});}throw _0x5985f9;}}static async['processDirectory'](_0x489ec7,_0x21697e,_0x4c3ffa,_0x516887){const _0x1dd3f0=a196_0x47aa15,_0x4d3380=await a196_0x1dd365[_0x1dd3f0(0x124)][_0x1dd3f0(0x111)](_0x489ec7,{'withFileTypes':!![]});for(const _0x364ddc of _0x4d3380){const _0x928d2e=a196_0x2c3dfe['join'](_0x489ec7,_0x364ddc[_0x1dd3f0(0xfd)]);let _0xd5c51c=a196_0x2c3dfe['join'](_0x21697e,_0x364ddc[_0x1dd3f0(0xfd)]);_0x364ddc[_0x1dd3f0(0xfd)][_0x1dd3f0(0x101)](_0x1dd3f0(0x10d))&&(_0xd5c51c=a196_0x2c3dfe[_0x1dd3f0(0x102)](_0x21697e,_0x364ddc[_0x1dd3f0(0xfd)][_0x1dd3f0(0x121)](/\.tpl$/,'')));if(_0x364ddc['isDirectory']())await a196_0x1dd365['promises'][_0x1dd3f0(0x11b)](_0xd5c51c,{'recursive':!![]}),await this[_0x1dd3f0(0x13b)](_0x928d2e,_0xd5c51c,_0x4c3ffa,_0x516887);else _0x364ddc[_0x1dd3f0(0x117)]()&&await this[_0x1dd3f0(0x135)](_0x928d2e,_0xd5c51c,_0x4c3ffa,_0x516887);}}static async[a196_0x47aa15(0x135)](_0x5d0caf,_0x617776,_0x35e718,_0x1f5292){const _0x1018eb=a196_0x47aa15,_0x3a0b70=a196_0x2c3dfe[_0x1018eb(0x113)](_0x5d0caf)['toLowerCase']();_0x5d0caf[_0x1018eb(0x101)](_0x1018eb(0x10d))&&(_0x617776=_0x617776[_0x1018eb(0x121)](/\.tpl$/,''));const _0x467569=[_0x1018eb(0x108),_0x1018eb(0x13c),_0x1018eb(0x10c),'.js','.json','.md',_0x1018eb(0x10a),_0x1018eb(0x138),_0x1018eb(0x10d)];if(_0x467569[_0x1018eb(0x11a)](_0x3a0b70)||_0x5d0caf[_0x1018eb(0x101)](_0x1018eb(0x10d))){const _0x5b805d=await a196_0x1dd365[_0x1018eb(0x124)][_0x1018eb(0x106)](_0x5d0caf,_0x1018eb(0xff)),_0x3cdd0e=this[_0x1018eb(0x118)](_0x5b805d,_0x35e718,_0x1f5292);await a196_0x1dd365[_0x1018eb(0x124)][_0x1018eb(0x100)](_0x617776,_0x3cdd0e,_0x1018eb(0xff));}else await a196_0x1dd365[_0x1018eb(0x124)]['copyFile'](_0x5d0caf,_0x617776);}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3e58e7,_0x300075){var _0x4fa07c=a197_0x2519,_0x164716=_0x3e58e7();while(!![]){try{var _0x33c517=parseInt(_0x4fa07c(0xca))/0x1*(-parseInt(_0x4fa07c(0xc7))/0x2)+parseInt(_0x4fa07c(0xc6))/0x3+-parseInt(_0x4fa07c(0xc8))/0x4*(-parseInt(_0x4fa07c(0xcb))/0x5)+-parseInt(_0x4fa07c(0xc5))/0x6*(-parseInt(_0x4fa07c(0xc4))/0x7)+-parseInt(_0x4fa07c(0xc9))/0x8+parseInt(_0x4fa07c(0xcc))/0x9+-parseInt(_0x4fa07c(0xcd))/0xa;if(_0x33c517===_0x300075)break;else _0x164716['push'](_0x164716['shift']());}catch(_0x305cfd){_0x164716['push'](_0x164716['shift']());}}}(a197_0x2738,0x56492));import{VERSION}from'../generated/build-info.js';function a197_0x2519(_0x2c73c9,_0x4d5505){_0x2c73c9=_0x2c73c9-0xc4;var _0x273875=a197_0x2738();var _0x251963=_0x273875[_0x2c73c9];return _0x251963;}function a197_0x2738(){var _0xe4a32a=['118749ljXKHy','2598730ouQJRu','1066248yoioRP','8333150ZsYWVp','7VeIBSy','2534508GxoBRI','1672359yVaDSz','6JedQle','4OsWMEh','600808DuvvcI'];a197_0x2738=function(){return _0xe4a32a;};return a197_0x2738();}export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1e6635,_0x434725){var _0xa231f3=a198_0x2a28,_0x56f3e6=_0x1e6635();while(!![]){try{var _0x28583a=-parseInt(_0xa231f3(0xb0))/0x1+-parseInt(_0xa231f3(0xb2))/0x2+parseInt(_0xa231f3(0xb3))/0x3+-parseInt(_0xa231f3(0xb1))/0x4+-parseInt(_0xa231f3(0xb4))/0x5+parseInt(_0xa231f3(0xae))/0x6+parseInt(_0xa231f3(0xaf))/0x7;if(_0x28583a===_0x434725)break;else _0x56f3e6['push'](_0x56f3e6['shift']());}catch(_0x26ecf8){_0x56f3e6['push'](_0x56f3e6['shift']());}}}(a198_0x4362,0xc0f94));function a198_0x2a28(_0x39b7c8,_0x69e3f3){_0x39b7c8=_0x39b7c8-0xae;var _0x436255=a198_0x4362();var _0x2a2840=_0x436255[_0x39b7c8];return _0x2a2840;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x4eaa3c,_0x2d62c5){setActiveCookie(_0x4eaa3c);try{return await _0x2d62c5();}finally{clearActiveCookie();}}function a198_0x4362(){var _0x4fcf67=['1126611IHLvRY','1329545heiNyt','3782628OtakWD','18724629jYzimQ','819064pxCFaq','2263320NQeEwu','2479398ASbbze'];a198_0x4362=function(){return _0x4fcf67;};return a198_0x4362();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2179e1,_0x11a14f){var _0x39d357=a199_0x29dc,_0x438b1d=_0x2179e1();while(!![]){try{var _0x163171=-parseInt(_0x39d357(0x185))/0x1*(-parseInt(_0x39d357(0x189))/0x2)+-parseInt(_0x39d357(0x187))/0x3+parseInt(_0x39d357(0x184))/0x4+-parseInt(_0x39d357(0x182))/0x5+-parseInt(_0x39d357(0x188))/0x6*(parseInt(_0x39d357(0x186))/0x7)+parseInt(_0x39d357(0x18b))/0x8*(-parseInt(_0x39d357(0x181))/0x9)+parseInt(_0x39d357(0x183))/0xa;if(_0x163171===_0x11a14f)break;else _0x438b1d['push'](_0x438b1d['shift']());}catch(_0x381e53){_0x438b1d['push'](_0x438b1d['shift']());}}}(a199_0x2632,0x74bc0));function a199_0x2632(){var _0x5d108e=['stderr','1184bnSwbB','54666tbzVcc','1737930MQZDlA','19711020phVBAT','1947200HdhhTG','452Yyymzn','133zQiBZC','2774889ZWgRUQ','16242hRBxoR','1076CCfYJw'];a199_0x2632=function(){return _0x5d108e;};return a199_0x2632();}function a199_0x29dc(_0x17836c,_0x263b82){_0x17836c=_0x17836c-0x181;var _0x263281=a199_0x2632();var _0x29dc66=_0x263281[_0x17836c];return _0x29dc66;}export function writeCliSideChannelLine(_0x38059b){var _0x3fbc32=a199_0x29dc;process[_0x3fbc32(0x18a)]['write'](_0x38059b+'\x0a');}
|
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.2",
|
|
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",
|