@lovrabet/rabetbase-cli 2.3.10-beta.1 → 2.3.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/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 -0
- 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/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
package/lib/utils/rules-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3a6fb3,_0x5a6757){const _0x520028=a256_0x401c,_0x59e4a6=_0x3a6fb3();while(!![]){try{const _0x9cb650=parseInt(_0x520028(0xd7))/0x1*(parseInt(_0x520028(0xc8))/0x2)+-parseInt(_0x520028(0xca))/0x3*(parseInt(_0x520028(0xc5))/0x4)+parseInt(_0x520028(0xc4))/0x5+-parseInt(_0x520028(0xcb))/0x6+parseInt(_0x520028(0xd8))/0x7+parseInt(_0x520028(0xcf))/0x8+-parseInt(_0x520028(0xd4))/0x9;if(_0x9cb650===_0x5a6757)break;else _0x59e4a6['push'](_0x59e4a6['shift']());}catch(_0x4eb30f){_0x59e4a6['push'](_0x59e4a6['shift']());}}}(a256_0x16c5,0x94106));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';function a256_0x401c(_0x1f4ec0,_0x30d2eb){_0x1f4ec0=_0x1f4ec0-0xc4;const _0x16c5ff=a256_0x16c5();let _0x401c23=_0x16c5ff[_0x1f4ec0];return _0x401c23;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a256_0x16c5(){const _0x31802d=['lovrabet_rules.mdc','9626130eSkXJQ','statusText','lastUpdated','4hEgJqP','7631820wuiINa','string','json','agents.md','4136625BVsMTL','4347028miaqkB','CDN\x20请求失败:\x20','本地模板文件不存在:\x20','269554gSTega','content','3HXbMTj','1691340iqnQCq','utf-8','catch','.cursor/rules','4703952DcCbBu','/rules/rules.json','CDN\x20返回数据格式错误','application/json'];a256_0x16c5=function(){return _0x31802d;};return a256_0x16c5();}function getRulesCdnUrl(){const _0x32b5e3=a256_0x401c,_0x379e9c=getTemplateBaseUrl();return _0x379e9c+_0x32b5e3(0xd0);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x302203=a256_0x401c,_0xb8f0e5=getRulesCdnUrl(),_0x5a76ca=await fetch(_0xb8f0e5,{'headers':{'Accept':_0x302203(0xd2)}});if(!_0x5a76ca['ok'])throw new Error(_0x302203(0xc6)+_0x5a76ca['status']+'\x20'+_0x5a76ca[_0x302203(0xd5)]);const _0xa14659=await _0x5a76ca[_0x302203(0xda)]();if(!_0xa14659['content']||typeof _0xa14659[_0x302203(0xc9)]!==_0x302203(0xd9))throw new Error(_0x302203(0xd1));return _0xa14659;}export async function getRulesContent(){const _0x347608=a256_0x401c;try{const _0x44cea2=await fetchRulesFromCDN();return _0x44cea2[_0x347608(0xc9)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x40c18=a256_0x401c;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x40c18(0xcc));throw new Error(_0x40c18(0xc7)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x3998bd){const _0x475b7e=a256_0x401c,_0x268671=await fetchRulesFromCDN()[_0x475b7e(0xcd)](()=>null);let _0x47ebe5;_0x268671?(_0x47ebe5=_0x268671[_0x475b7e(0xc9)],_0x268671[_0x475b7e(0xd6)]&&(_0x47ebe5=appendUpdateTime(_0x47ebe5,_0x268671[_0x475b7e(0xd6)]))):_0x47ebe5=readLocalTemplate();const _0x39da9d=dirname(_0x3998bd);!existsSync(_0x39da9d)&&mkdirSync(_0x39da9d,{'recursive':!![]}),writeFileSync(_0x3998bd,_0x47ebe5,'utf-8');}export async function copyRulesToCursor(_0x579fa4){const _0x4a4634=a256_0x401c,_0x210406=join(_0x579fa4,_0x4a4634(0xce)),_0x431847=join(_0x210406,_0x4a4634(0xd3));if(existsSync(_0x431847))return![];return await writeRulesFile(_0x431847),!![];}export async function copyRulesToAgentsMd(_0x3a6cdd){const _0x3f106e=a256_0x401c,_0x5d4ae2=join(_0x3a6cdd,_0x3f106e(0xdb));if(existsSync(_0x5d4ae2))return![];return await writeRulesFile(_0x5d4ae2),!![];}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x364d81){return new Promise(_0x1d2e5f=>setTimeout(_0x1d2e5f,_0x364d81));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a258_0x150312=a258_0x5193;(function(_0x263080,_0x55e335){const _0x2400d9=a258_0x5193,_0xacff53=_0x263080();while(!![]){try{const _0x58f737=-parseInt(_0x2400d9(0xd9))/0x1+-parseInt(_0x2400d9(0xd4))/0x2*(parseInt(_0x2400d9(0xd2))/0x3)+-parseInt(_0x2400d9(0xd1))/0x4+parseInt(_0x2400d9(0xef))/0x5*(-parseInt(_0x2400d9(0xfb))/0x6)+parseInt(_0x2400d9(0xf1))/0x7*(parseInt(_0x2400d9(0xde))/0x8)+parseInt(_0x2400d9(0xf3))/0x9*(-parseInt(_0x2400d9(0xf8))/0xa)+parseInt(_0x2400d9(0xe7))/0xb;if(_0x58f737===_0x55e335)break;else _0xacff53['push'](_0xacff53['shift']());}catch(_0x3cc62e){_0xacff53['push'](_0xacff53['shift']());}}}(a258_0xea6c,0x55dda));import a258_0x37856b from'node:fs';import a258_0x25bdbc from'node:path';function a258_0xea6c(){const _0x473b2f=['3pYJPmG','copyFile','275778QEZAkL','\x0a\x20\x20\x20\x20{\x20','includes','padStart','.ts','75784cUKuRl','LOVRABET','endsWith','processFile','processTemplate','34312BrubVa','replaceContent','toLowerCase','datasetCode:\x20\x22','writeFile','error','.jsx','.js','开始处理模板内容替换','6456571aOObpC','default','tableName:\x20\x22','tableName','alias','formatLocalTimestamp','getHours','模板内容替换完成','29985dbgCXw','pop','1113eWUenQ','getSeconds','585IrcJry','processDirectory','join','template','\x20},','56410mzECPi','pad','.scss','84HXppso','模板内容替换失败','.json','.tpl','slice','replace','success','getMinutes','.tsx','now','message','getFullYear','push','getDate','promises','name','map','charAt','split','readFile','1011640XuAUPV'];a258_0xea6c=function(){return _0x473b2f;};return a258_0xea6c();}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a258_0x5193(_0x168bb2,_0x2a33bf){_0x168bb2=_0x168bb2-0xc3;const _0xea6c6c=a258_0xea6c();let _0x51934d=_0xea6c6c[_0x168bb2];return _0x51934d;}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a258_0x150312(0xf9)](_0x126a59){const _0x5ae464=a258_0x150312;return String(_0x126a59)[_0x5ae464(0xd7)](0x2,'0');}static[a258_0x150312(0xec)](_0x132293){const _0x37fc27=a258_0x150312,_0x150510=_0x132293[_0x37fc27(0xc8)](),_0x3ba8c3=this[_0x37fc27(0xf9)](_0x132293['getMonth']()+0x1),_0x76537f=this[_0x37fc27(0xf9)](_0x132293[_0x37fc27(0xca)]()),_0x4c122a=this[_0x37fc27(0xf9)](_0x132293[_0x37fc27(0xed)]()),_0x325ff0=this[_0x37fc27(0xf9)](_0x132293[_0x37fc27(0xc4)]()),_0x207c5c=this['pad'](_0x132293[_0x37fc27(0xf2)]());return{'createdAt':_0x150510+'-'+_0x3ba8c3+'-'+_0x76537f+'\x20'+_0x4c122a+':'+_0x325ff0+':'+_0x207c5c,'createdDate':_0x150510+'-'+_0x3ba8c3+'-'+_0x76537f,'createdTime':_0x4c122a+':'+_0x325ff0+':'+_0x207c5c};}static['toComponentName'](_0x2548fa){const _0x29bc85=a258_0x150312,_0x5436ce=_0x2548fa[_0x29bc85(0xcf)]('/')[_0x29bc85(0xf0)]()||_0x2548fa;return _0x5436ce[_0x29bc85(0xcf)]('-')[_0x29bc85(0xcd)](_0x3fbcfc=>_0x3fbcfc[_0x29bc85(0xce)](0x0)['toUpperCase']()+_0x3fbcfc[_0x29bc85(0xff)](0x1)[_0x29bc85(0xe0)]())[_0x29bc85(0xf5)]('');}static['toDisplayTitle'](_0x2c153a){const _0x1bd40e=a258_0x150312,_0x2cd3ec=_0x2c153a[_0x1bd40e(0xcf)]('/')[_0x1bd40e(0xf0)]()||_0x2c153a;return _0x2cd3ec[_0x1bd40e(0xcf)]('-')['map'](_0x566f24=>_0x566f24[_0x1bd40e(0xce)](0x0)['toUpperCase']()+_0x566f24[_0x1bd40e(0xff)](0x1)['toLowerCase']())[_0x1bd40e(0xf5)]('\x20');}static['replaceContent'](_0x135c05,_0x3fdb8a,_0x26bac3){const _0x2d1f62=a258_0x150312,_0xc3608c=this['toComponentName'](_0x3fdb8a),_0xb20fa8=this['toDisplayTitle'](_0x3fdb8a),{createdAt:_0x2ae2fd,createdDate:_0x26517e,createdTime:_0x153d3d}=this[_0x2d1f62(0xec)](new Date());let _0x348de6=_0x135c05['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x2d1f62(0x100)](/\{ComponentName\}/g,_0xc3608c)[_0x2d1f62(0x100)](/\{DisplayTitle\}/g,_0xb20fa8)[_0x2d1f62(0x100)](/\{PageName\}/g,_0x3fdb8a)[_0x2d1f62(0x100)](/\{TemplateName\}/g,_0x26bac3)[_0x2d1f62(0x100)](/\{CreatedAt\}/g,_0x2ae2fd)[_0x2d1f62(0x100)](/\{CreatedDate\}/g,_0x26517e)[_0x2d1f62(0x100)](/\{CreatedTime\}/g,_0x153d3d);return _0x348de6;}static['replaceApiContent'](_0x8e5894,_0xb811a,_0x37459a,_0x1dc7fe,_0x31ee07,_0xd5f4a1,_0x3acfc0,_0x22f235){const _0x6a1bf2=a258_0x150312,_0xc78f8d=new Date(),_0x4ea695=_0xc78f8d['toISOString'](),_0x469a70=_0x37459a[_0x6a1bf2(0xcd)](_0x5d58f2=>{const _0x2b4f93=_0x6a1bf2,_0x2d659a=[_0x2b4f93(0xe1)+_0x5d58f2['datasetCode']+'\x22',_0x2b4f93(0xe9)+_0x5d58f2[_0x2b4f93(0xea)]+'\x22','name:\x20\x22'+_0x5d58f2['name']+'\x22'];return _0x5d58f2['alias']&&_0x2d659a[_0x2b4f93(0xc9)]('alias:\x20\x22'+_0x5d58f2['alias']+'\x22'),_0x2b4f93(0xd5)+_0x2d659a[_0x2b4f93(0xf5)](',\x20')+_0x2b4f93(0xf7);})[_0x6a1bf2(0xf5)](''),_0x455d5a=_0x1dc7fe||_0x37459a[0x0]?.[_0x6a1bf2(0xeb)]||'YourModel';let _0x50f313=_0x8e5894[_0x6a1bf2(0x100)](/\{AppCode\}/g,_0xb811a)[_0x6a1bf2(0x100)](/\{ModelConfigs\}/g,_0x469a70)[_0x6a1bf2(0x100)](/\{ExampleModelName\}/g,_0x455d5a)[_0x6a1bf2(0x100)](/\{ApiFileName\}/g,_0x31ee07||'api')['replace'](/\{ConfigName\}/g,_0xd5f4a1||_0x6a1bf2(0xe8))[_0x6a1bf2(0x100)](/\{ClientConfigParam\}/g,_0x3acfc0||'')['replace'](/\{VarPrefix\}/g,_0x22f235||_0x6a1bf2(0xda))[_0x6a1bf2(0x100)](/\{CreatedAt\}/g,_0x4ea695);return _0x50f313;}static async[a258_0x150312(0xdd)](_0xc8a5f,_0x33b1c4,_0x2d79bc,_0x585c70,_0x979f61=!![]){const _0x3ba163=a258_0x150312,_0x240a77=Date['now']();try{_0x979f61&&logger['info'](_0x3ba163(0xf6),_0x3ba163(0xe6),{'templatePath':_0xc8a5f,'targetPath':_0x33b1c4,'pageName':_0x2d79bc,'templateName':_0x585c70});await a258_0x37856b[_0x3ba163(0xcb)]['mkdir'](_0x33b1c4,{'recursive':!![]}),await this[_0x3ba163(0xf4)](_0xc8a5f,_0x33b1c4,_0x2d79bc,_0x585c70);if(_0x979f61){const _0x49cb6d=Date[_0x3ba163(0xc6)]()-_0x240a77;logger[_0x3ba163(0xc3)](_0x3ba163(0xf6),_0x3ba163(0xee),_0x49cb6d,{'pageName':_0x2d79bc,'templateName':_0x585c70});}}catch(_0x18ebda){if(_0x979f61){const _0x3a1ad3=Date[_0x3ba163(0xc6)]()-_0x240a77;logger[_0x3ba163(0xe3)](_0x3ba163(0xf6),_0x3ba163(0xfc),{'templatePath':_0xc8a5f,'targetPath':_0x33b1c4,'pageName':_0x2d79bc,'templateName':_0x585c70,'error':_0x18ebda instanceof Error?_0x18ebda[_0x3ba163(0xc7)]:String(_0x18ebda),'duration':_0x3a1ad3});}throw _0x18ebda;}}static async['processDirectory'](_0x4a4d2e,_0x15d974,_0x43b3ca,_0xce0992){const _0x2f614f=a258_0x150312,_0x49d6da=await a258_0x37856b[_0x2f614f(0xcb)]['readdir'](_0x4a4d2e,{'withFileTypes':!![]});for(const _0x1e5573 of _0x49d6da){const _0x3ad1fb=a258_0x25bdbc[_0x2f614f(0xf5)](_0x4a4d2e,_0x1e5573[_0x2f614f(0xcc)]);let _0x60a02c=a258_0x25bdbc[_0x2f614f(0xf5)](_0x15d974,_0x1e5573['name']);_0x1e5573[_0x2f614f(0xcc)][_0x2f614f(0xdb)](_0x2f614f(0xfe))&&(_0x60a02c=a258_0x25bdbc[_0x2f614f(0xf5)](_0x15d974,_0x1e5573[_0x2f614f(0xcc)][_0x2f614f(0x100)](/\.tpl$/,'')));if(_0x1e5573['isDirectory']())await a258_0x37856b[_0x2f614f(0xcb)]['mkdir'](_0x60a02c,{'recursive':!![]}),await this[_0x2f614f(0xf4)](_0x3ad1fb,_0x60a02c,_0x43b3ca,_0xce0992);else _0x1e5573['isFile']()&&await this['processFile'](_0x3ad1fb,_0x60a02c,_0x43b3ca,_0xce0992);}}static async[a258_0x150312(0xdc)](_0x57f4e2,_0x30ee03,_0x2e0acb,_0xc152c1){const _0x146744=a258_0x150312,_0x1c41af=a258_0x25bdbc['extname'](_0x57f4e2)['toLowerCase']();_0x57f4e2[_0x146744(0xdb)](_0x146744(0xfe))&&(_0x30ee03=_0x30ee03['replace'](/\.tpl$/,''));const _0x34dd64=[_0x146744(0xc5),_0x146744(0xd8),_0x146744(0xe4),_0x146744(0xe5),_0x146744(0xfd),'.md','.css',_0x146744(0xfa),_0x146744(0xfe)];if(_0x34dd64[_0x146744(0xd6)](_0x1c41af)||_0x57f4e2[_0x146744(0xdb)](_0x146744(0xfe))){const _0x495716=await a258_0x37856b['promises'][_0x146744(0xd0)](_0x57f4e2,'utf8'),_0x58a051=this[_0x146744(0xdf)](_0x495716,_0x2e0acb,_0xc152c1);await a258_0x37856b[_0x146744(0xcb)][_0x146744(0xe2)](_0x30ee03,_0x58a051,'utf8');}else await a258_0x37856b[_0x146744(0xcb)][_0x146744(0xd3)](_0x57f4e2,_0x30ee03);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a259_0x13ec(_0x53a133,_0x223f46){_0x53a133=_0x53a133-0x14a;const _0x3f3fdf=a259_0x3f3f();let _0x13ec20=_0x3f3fdf[_0x53a133];return _0x13ec20;}(function(_0x52fe4c,_0x319e49){const _0x3fe41f=a259_0x13ec,_0xf480aa=_0x52fe4c();while(!![]){try{const _0x84ac57=parseInt(_0x3fe41f(0x156))/0x1+-parseInt(_0x3fe41f(0x14a))/0x2*(parseInt(_0x3fe41f(0x162))/0x3)+parseInt(_0x3fe41f(0x163))/0x4+parseInt(_0x3fe41f(0x157))/0x5*(parseInt(_0x3fe41f(0x15d))/0x6)+parseInt(_0x3fe41f(0x159))/0x7*(parseInt(_0x3fe41f(0x15a))/0x8)+-parseInt(_0x3fe41f(0x161))/0x9+parseInt(_0x3fe41f(0x15f))/0xa*(parseInt(_0x3fe41f(0x160))/0xb);if(_0x84ac57===_0x319e49)break;else _0xf480aa['push'](_0xf480aa['shift']());}catch(_0x5d7adc){_0xf480aa['push'](_0xf480aa['shift']());}}}(a259_0x3f3f,0x35002));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a259_0xbe647 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 _0x3caf6f=a259_0x13ec,_0x14d9e1=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x3caf6f(0x164)]()['toLowerCase']();return _0x14d9e1==='1'||_0x14d9e1===_0x3caf6f(0x153)||_0x14d9e1===_0x3caf6f(0x14f);}function cacheRoot(){const _0x2bb295=a259_0x13ec;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x2bb295(0x167));}export function getUpdateNoticeCachePath(){const _0x3dd78a=a259_0x13ec;return join(cacheRoot(),_0x3dd78a(0x166),_0x3dd78a(0x14b));}function a259_0x3f3f(){const _0x19545f=['parse','rabetbase-cli','.cache','lastNotifiedAt','214zKhvND','update-check.json','stringify','now','checkedAt','yes','https://www.npmjs.com/package/','lastNotifiedVersion','stableVersion','true','latest','\x20available,\x20current\x20','176440tmZHCq','60460ZPDvON','valid','17486lGgIfO','816FcZnqd','utf8','number','192LgKThF','object','124130fFquAR','33pHZYWg','3525885RWjjrI','11451mQkoXD','647420mhciEs','trim'];a259_0x3f3f=function(){return _0x19545f;};return a259_0x3f3f();}async function readUpdateNoticeCache(){const _0x244714=a259_0x13ec;try{const _0x48190a=await readFile(getUpdateNoticeCachePath(),_0x244714(0x15b)),_0x2276e0=JSON[_0x244714(0x165)](_0x48190a);if(!_0x2276e0||typeof _0x2276e0!==_0x244714(0x15e))return{};return _0x2276e0;}catch{return{};}}async function writeUpdateNoticeCache(_0xb85cd6){const _0x4fd47a=a259_0x13ec;try{const _0x3ac1f3=getUpdateNoticeCachePath();await mkdir(dirname(_0x3ac1f3),{'recursive':!![]}),await writeFile(_0x3ac1f3,JSON[_0x4fd47a(0x14c)](_0xb85cd6,null,0x2)+'\x0a',_0x4fd47a(0x15b));}catch{}}function isFreshCheck(_0x4af8e9,_0x3a8a02){const _0x3d851e=a259_0x13ec;return typeof _0x4af8e9[_0x3d851e(0x14e)]===_0x3d851e(0x15c)&&_0x3a8a02-_0x4af8e9[_0x3d851e(0x14e)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x505b79,_0x4e6a07,_0x3d6972){const _0x5df372=a259_0x13ec;return _0x505b79[_0x5df372(0x151)]===_0x4e6a07&&typeof _0x505b79[_0x5df372(0x168)]==='number'&&_0x3d6972-_0x505b79[_0x5df372(0x168)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x1fc141){const _0x2e2636=a259_0x13ec;return _0x2e2636(0x150)+NPM_PACKAGE_NAME+'/v/'+_0x1fc141;}export async function resolveLatestUpdateNotice(){const _0x289470=a259_0x13ec;if(isUpdateNoticeDisabled())return null;try{const _0x13cfb0=Date[_0x289470(0x14d)](),_0x5ae61d=getCliVersion(),_0x23404c=await readUpdateNoticeCache();let _0x2b4e89=isFreshCheck(_0x23404c,_0x13cfb0)?_0x23404c[_0x289470(0x154)]?.[_0x289470(0x164)]():undefined;if(!_0x2b4e89&&!isFreshCheck(_0x23404c,_0x13cfb0)){const _0x152f6c=await getCliVersionPolicy();_0x2b4e89=_0x152f6c?.[_0x289470(0x152)]?.[_0x289470(0x164)]()||undefined,await writeUpdateNoticeCache({..._0x23404c,'checkedAt':_0x13cfb0,'latest':_0x2b4e89,'failed':!_0x2b4e89});}if(!_0x2b4e89||!a259_0xbe647['valid'](_0x5ae61d)||!a259_0xbe647[_0x289470(0x158)](_0x2b4e89))return null;if(a259_0xbe647['gte'](_0x5ae61d,_0x2b4e89))return null;if(isRecentlyNotified(_0x23404c,_0x2b4e89,_0x13cfb0))return null;const _0x35593d=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x23404c,'checkedAt':isFreshCheck(_0x23404c,_0x13cfb0)?_0x23404c[_0x289470(0x14e)]:_0x13cfb0,'latest':_0x2b4e89,'failed':![],'lastNotifiedVersion':_0x2b4e89,'lastNotifiedAt':_0x13cfb0}),{'command':_0x35593d,'current':_0x5ae61d,'latest':_0x2b4e89,'url':buildNpmVersionUrl(_0x2b4e89),'message':CLI_BIN_NAME+'\x20'+_0x2b4e89+_0x289470(0x155)+_0x5ae61d+',\x20run:\x20'+_0x35593d};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3ea380,_0x215fc4){var _0x5dda1a=a260_0x3afb,_0x3b7518=_0x3ea380();while(!![]){try{var _0x2d78ff=parseInt(_0x5dda1a(0x1b9))/0x1+-parseInt(_0x5dda1a(0x1b1))/0x2*(parseInt(_0x5dda1a(0x1b8))/0x3)+-parseInt(_0x5dda1a(0x1b6))/0x4*(parseInt(_0x5dda1a(0x1b5))/0x5)+parseInt(_0x5dda1a(0x1b4))/0x6*(-parseInt(_0x5dda1a(0x1b7))/0x7)+-parseInt(_0x5dda1a(0x1b0))/0x8+parseInt(_0x5dda1a(0x1b3))/0x9+parseInt(_0x5dda1a(0x1b2))/0xa;if(_0x2d78ff===_0x215fc4)break;else _0x3b7518['push'](_0x3b7518['shift']());}catch(_0x2ce868){_0x3b7518['push'](_0x3b7518['shift']());}}}(a260_0x1361,0xb6812));function a260_0x3afb(_0x434cc3,_0x5cf11e){_0x434cc3=_0x434cc3-0x1b0;var _0x136167=a260_0x1361();var _0x3afbfc=_0x136167[_0x434cc3];return _0x3afbfc;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a260_0x1361(){var _0x5e313f=['508704BOaPJb','2210872lnKylo','318958ADNdFZ','21386050jyVZKS','12749706TVEWXs','84174rjFPqV','199245JSQsyP','88KHKBmH','602dtlAui','18LhwChb'];a260_0x1361=function(){return _0x5e313f;};return a260_0x1361();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3f8be8,_0x4bcf39){var _0x59f11e=a261_0x3c67,_0x24d979=_0x3f8be8();while(!![]){try{var _0x431632=-parseInt(_0x59f11e(0x1c4))/0x1+parseInt(_0x59f11e(0x1cb))/0x2*(-parseInt(_0x59f11e(0x1c7))/0x3)+parseInt(_0x59f11e(0x1c5))/0x4*(-parseInt(_0x59f11e(0x1c8))/0x5)+-parseInt(_0x59f11e(0x1c3))/0x6+parseInt(_0x59f11e(0x1c9))/0x7+parseInt(_0x59f11e(0x1ca))/0x8+parseInt(_0x59f11e(0x1c6))/0x9;if(_0x431632===_0x4bcf39)break;else _0x24d979['push'](_0x24d979['shift']());}catch(_0x4baa25){_0x24d979['push'](_0x24d979['shift']());}}}(a261_0x1ca4,0x2e70a));function a261_0x3c67(_0x3623b9,_0x462645){_0x3623b9=_0x3623b9-0x1c3;var _0x1ca499=a261_0x1ca4();var _0x3c67cd=_0x1ca499[_0x3623b9];return _0x3c67cd;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a261_0x1ca4(){var _0x33cd98=['842808aMlqCt','110793vBqFzT','171016JrSWJM','4611564CjfGmP','921ivoavt','35HGhUYP','977606hYDoWe','1976920dHWtTL','1032iAZLiO'];a261_0x1ca4=function(){return _0x33cd98;};return a261_0x1ca4();}export async function withActiveCookie(_0x417973,_0x3a009a){setActiveCookie(_0x417973);try{return await _0x3a009a();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a262_0x30f0(_0x1f7ddb,_0xba1dd9){_0x1f7ddb=_0x1f7ddb-0xa2;var _0x459056=a262_0x4590();var _0x30f0e2=_0x459056[_0x1f7ddb];return _0x30f0e2;}(function(_0x4465c1,_0xe3a47f){var _0x293c8d=a262_0x30f0,_0x50e1b1=_0x4465c1();while(!![]){try{var _0x5963ec=parseInt(_0x293c8d(0xa4))/0x1+-parseInt(_0x293c8d(0xa9))/0x2*(parseInt(_0x293c8d(0xa2))/0x3)+-parseInt(_0x293c8d(0xa6))/0x4*(-parseInt(_0x293c8d(0xa3))/0x5)+parseInt(_0x293c8d(0xad))/0x6*(parseInt(_0x293c8d(0xae))/0x7)+parseInt(_0x293c8d(0xab))/0x8*(-parseInt(_0x293c8d(0xa7))/0x9)+-parseInt(_0x293c8d(0xac))/0xa+-parseInt(_0x293c8d(0xa5))/0xb;if(_0x5963ec===_0xe3a47f)break;else _0x50e1b1['push'](_0x50e1b1['shift']());}catch(_0x478897){_0x50e1b1['push'](_0x50e1b1['shift']());}}}(a262_0x4590,0x9968f));function a262_0x4590(){var _0xe1e18b=['1241111GOaezn','28138vZdDuD','4ncygmf','99XsHoSy','write','1599134NXdxfp','stderr','194648psdsoK','7249740eCOxzv','6VhcWAf','6594343eDBBLa','3bYBHJm','1199735mChnao'];a262_0x4590=function(){return _0xe1e18b;};return a262_0x4590();}export function writeCliSideChannelLine(_0x4f1157){var _0x2d06bc=a262_0x30f0;process[_0x2d06bc(0xaa)][_0x2d06bc(0xa8)](_0x4f1157+'\x0a');}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.3.10
|
|
3
|
+
"version": "2.3.10",
|
|
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": [
|