@lovrabet/rabetbase-cli 2.3.3 → 2.3.4-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/README.md +99 -560
- 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-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-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/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/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/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +19 -3
- package/lib/commands/app/use.js +0 -1
package/lib/utils/rules-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a215_0xcc685b=a215_0x471e;(function(_0x5415cd,_0x15f6a7){const _0x5bf40f=a215_0x471e,_0x1ae91c=_0x5415cd();while(!![]){try{const _0x472748=-parseInt(_0x5bf40f(0x152))/0x1*(parseInt(_0x5bf40f(0x144))/0x2)+-parseInt(_0x5bf40f(0x14e))/0x3+-parseInt(_0x5bf40f(0x15b))/0x4+parseInt(_0x5bf40f(0x158))/0x5*(-parseInt(_0x5bf40f(0x150))/0x6)+-parseInt(_0x5bf40f(0x148))/0x7+parseInt(_0x5bf40f(0x157))/0x8+parseInt(_0x5bf40f(0x145))/0x9*(parseInt(_0x5bf40f(0x14d))/0xa);if(_0x472748===_0x15f6a7)break;else _0x1ae91c['push'](_0x1ae91c['shift']());}catch(_0x32599a){_0x1ae91c['push'](_0x1ae91c['shift']());}}}(a215_0x6c53,0x80b1a));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';function a215_0x471e(_0x5c3161,_0x160419){_0x5c3161=_0x5c3161-0x143;const _0x6c53df=a215_0x6c53();let _0x471e72=_0x6c53df[_0x5c3161];return _0x471e72;}function a215_0x6c53(){const _0x3a269d=['2606160QpbAUU','5bijfGQ','statusText','application/json','810920OSPAga','json','714946KTJgeK','5040BWhmwt','本地模板文件不存在:\x20','content','6376433QKUUZY','lastUpdated','.cursor/rules','CDN\x20返回数据格式错误','utf-8','42830Ydqjiz','2051487TDdRrQ','status','253014CrwAXV','lovrabet_rules.mdc','1loosiZ','../../templates/rules/lovrabet_rules.mdc.tpl','CDN\x20请求失败:\x20','agents.md','string'];a215_0x6c53=function(){return _0x3a269d;};return a215_0x6c53();}import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x5d6499=getTemplateBaseUrl();return _0x5d6499+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a215_0xcc685b(0x153));export async function fetchRulesFromCDN(){const _0x391bc7=a215_0xcc685b,_0x34e7f4=getRulesCdnUrl(),_0x2a4977=await fetch(_0x34e7f4,{'headers':{'Accept':_0x391bc7(0x15a)}});if(!_0x2a4977['ok'])throw new Error(_0x391bc7(0x154)+_0x2a4977[_0x391bc7(0x14f)]+'\x20'+_0x2a4977[_0x391bc7(0x159)]);const _0x34799b=await _0x2a4977[_0x391bc7(0x143)]();if(!_0x34799b[_0x391bc7(0x147)]||typeof _0x34799b[_0x391bc7(0x147)]!==_0x391bc7(0x156))throw new Error(_0x391bc7(0x14b));return _0x34799b;}export async function getRulesContent(){const _0x441fd4=a215_0xcc685b;try{const _0x37f65d=await fetchRulesFromCDN();return _0x37f65d[_0x441fd4(0x147)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x5922f5=a215_0xcc685b;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x5922f5(0x14c));throw new Error(_0x5922f5(0x146)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0xf6a5bb){const _0x54fb21=a215_0xcc685b,_0xf0844a=await fetchRulesFromCDN()['catch'](()=>null);let _0x2c30a1;_0xf0844a?(_0x2c30a1=_0xf0844a[_0x54fb21(0x147)],_0xf0844a[_0x54fb21(0x149)]&&(_0x2c30a1=appendUpdateTime(_0x2c30a1,_0xf0844a[_0x54fb21(0x149)]))):_0x2c30a1=readLocalTemplate();const _0x370fdd=dirname(_0xf6a5bb);!existsSync(_0x370fdd)&&mkdirSync(_0x370fdd,{'recursive':!![]}),writeFileSync(_0xf6a5bb,_0x2c30a1,_0x54fb21(0x14c));}export async function copyRulesToCursor(_0x55c48e){const _0x5ae9e4=a215_0xcc685b,_0x5a7c9f=join(_0x55c48e,_0x5ae9e4(0x14a)),_0x11a6e4=join(_0x5a7c9f,_0x5ae9e4(0x151));if(existsSync(_0x11a6e4))return![];return await writeRulesFile(_0x11a6e4),!![];}export async function copyRulesToAgentsMd(_0x16e634){const _0x3bd71d=a215_0xcc685b,_0x3b6954=join(_0x16e634,_0x3bd71d(0x155));if(existsSync(_0x3b6954))return![];return await writeRulesFile(_0x3b6954),!![];}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x5fb901){return new Promise(_0x5d6a29=>setTimeout(_0x5d6a29,_0x5fb901));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a217_0x5794cf=a217_0x2128;(function(_0x24ea0f,_0x59ab0d){const _0x118efb=a217_0x2128,_0x1e40e8=_0x24ea0f();while(!![]){try{const _0x4b4e1c=parseInt(_0x118efb(0x171))/0x1+parseInt(_0x118efb(0x164))/0x2+-parseInt(_0x118efb(0x165))/0x3+-parseInt(_0x118efb(0x152))/0x4*(-parseInt(_0x118efb(0x14a))/0x5)+-parseInt(_0x118efb(0x168))/0x6*(-parseInt(_0x118efb(0x15e))/0x7)+parseInt(_0x118efb(0x182))/0x8*(-parseInt(_0x118efb(0x14e))/0x9)+-parseInt(_0x118efb(0x166))/0xa*(parseInt(_0x118efb(0x177))/0xb);if(_0x4b4e1c===_0x59ab0d)break;else _0x1e40e8['push'](_0x1e40e8['shift']());}catch(_0x291f64){_0x1e40e8['push'](_0x1e40e8['shift']());}}}(a217_0x1dca,0xa9f09));function a217_0x1dca(){const _0x18b68f=['processDirectory','split','copyFile','error','processFile','getSeconds','LOVRABET','alias','default','21ZVivGN','YourModel','push','.js','getMinutes','name','244002IjSwqB','1495977cPyDUk','9241340yYwSWn','toLowerCase','2393040CzpcmX','getHours','.css','pad','replaceContent','success','template','toUpperCase','join','359506NOVSSB','getDate','datasetCode:\x20\x22','readdir','readFile','toDisplayTitle','11RWZLGf','.md','utf8','includes','.tpl','toISOString','endsWith','name:\x20\x22','isFile','\x20},','charAt','77144UOgnwq','now','formatLocalTimestamp','map','.jsx','isDirectory','replaceApiContent','toComponentName','getFullYear','replace','promises','\x0a\x20\x20\x20\x20{\x20','5XvGdDh','.scss','模板内容替换失败','datasetCode','648eMKyvb','.ts','writeFile','.json','4540540hwKMlE','getMonth','mkdir'];a217_0x1dca=function(){return _0x18b68f;};return a217_0x1dca();}function a217_0x2128(_0x54ff47,_0x274c3f){_0x54ff47=_0x54ff47-0x142;const _0x1dcaa9=a217_0x1dca();let _0x2128ae=_0x1dcaa9[_0x54ff47];return _0x2128ae;}import a217_0x1bc5c9 from'node:fs';import a217_0x42e3a4 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x3c73e0){return String(_0x3c73e0)['padStart'](0x2,'0');}static['formatLocalTimestamp'](_0x14cfe1){const _0x5abdc3=a217_0x2128,_0x43df74=_0x14cfe1[_0x5abdc3(0x146)](),_0x5bb180=this[_0x5abdc3(0x16b)](_0x14cfe1[_0x5abdc3(0x153)]()+0x1),_0x10f250=this[_0x5abdc3(0x16b)](_0x14cfe1[_0x5abdc3(0x172)]()),_0x357712=this[_0x5abdc3(0x16b)](_0x14cfe1[_0x5abdc3(0x169)]()),_0x1e24a2=this[_0x5abdc3(0x16b)](_0x14cfe1[_0x5abdc3(0x162)]()),_0x450554=this[_0x5abdc3(0x16b)](_0x14cfe1[_0x5abdc3(0x15a)]());return{'createdAt':_0x43df74+'-'+_0x5bb180+'-'+_0x10f250+'\x20'+_0x357712+':'+_0x1e24a2+':'+_0x450554,'createdDate':_0x43df74+'-'+_0x5bb180+'-'+_0x10f250,'createdTime':_0x357712+':'+_0x1e24a2+':'+_0x450554};}static[a217_0x5794cf(0x145)](_0x22af10){const _0x5c06d6=a217_0x5794cf,_0x2a1d90=_0x22af10[_0x5c06d6(0x156)]('/')['pop']()||_0x22af10;return _0x2a1d90[_0x5c06d6(0x156)]('-')[_0x5c06d6(0x185)](_0x4364b5=>_0x4364b5[_0x5c06d6(0x181)](0x0)['toUpperCase']()+_0x4364b5['slice'](0x1)[_0x5c06d6(0x167)]())[_0x5c06d6(0x170)]('');}static[a217_0x5794cf(0x176)](_0x419b74){const _0x2b59f7=a217_0x5794cf,_0x7178ee=_0x419b74[_0x2b59f7(0x156)]('/')['pop']()||_0x419b74;return _0x7178ee[_0x2b59f7(0x156)]('-')[_0x2b59f7(0x185)](_0x5e2827=>_0x5e2827['charAt'](0x0)[_0x2b59f7(0x16f)]()+_0x5e2827['slice'](0x1)[_0x2b59f7(0x167)]())['join']('\x20');}static[a217_0x5794cf(0x16c)](_0x5d0f07,_0x180e99,_0x5b0db4){const _0x48f5eb=a217_0x5794cf,_0x14b9df=this[_0x48f5eb(0x145)](_0x180e99),_0x8d2b4d=this[_0x48f5eb(0x176)](_0x180e99),{createdAt:_0x1fda0c,createdDate:_0x423614,createdTime:_0x4de95d}=this[_0x48f5eb(0x184)](new Date());let _0x52bfee=_0x5d0f07[_0x48f5eb(0x147)](/\{CliVersion\}/g,CLI_VERSION)[_0x48f5eb(0x147)](/\{ComponentName\}/g,_0x14b9df)['replace'](/\{DisplayTitle\}/g,_0x8d2b4d)[_0x48f5eb(0x147)](/\{PageName\}/g,_0x180e99)[_0x48f5eb(0x147)](/\{TemplateName\}/g,_0x5b0db4)['replace'](/\{CreatedAt\}/g,_0x1fda0c)[_0x48f5eb(0x147)](/\{CreatedDate\}/g,_0x423614)[_0x48f5eb(0x147)](/\{CreatedTime\}/g,_0x4de95d);return _0x52bfee;}static[a217_0x5794cf(0x144)](_0x4c2a69,_0x11eb21,_0x721431,_0x3e2b4a,_0x596b8e,_0x188204,_0x50d12b,_0x531b05){const _0x428147=a217_0x5794cf,_0x37ef76=new Date(),_0x3e095b=_0x37ef76[_0x428147(0x17c)](),_0x1310b6=_0x721431[_0x428147(0x185)](_0x116f48=>{const _0x5de68a=_0x428147,_0x6e883=[_0x5de68a(0x173)+_0x116f48[_0x5de68a(0x14d)]+'\x22','tableName:\x20\x22'+_0x116f48['tableName']+'\x22',_0x5de68a(0x17e)+_0x116f48[_0x5de68a(0x163)]+'\x22'];return _0x116f48['alias']&&_0x6e883[_0x5de68a(0x160)]('alias:\x20\x22'+_0x116f48[_0x5de68a(0x15c)]+'\x22'),_0x5de68a(0x149)+_0x6e883[_0x5de68a(0x170)](',\x20')+_0x5de68a(0x180);})['join'](''),_0x94741e=_0x3e2b4a||_0x721431[0x0]?.[_0x428147(0x15c)]||_0x428147(0x15f);let _0x31defe=_0x4c2a69[_0x428147(0x147)](/\{AppCode\}/g,_0x11eb21)['replace'](/\{ModelConfigs\}/g,_0x1310b6)[_0x428147(0x147)](/\{ExampleModelName\}/g,_0x94741e)[_0x428147(0x147)](/\{ApiFileName\}/g,_0x596b8e||'api')['replace'](/\{ConfigName\}/g,_0x188204||_0x428147(0x15d))[_0x428147(0x147)](/\{ClientConfigParam\}/g,_0x50d12b||'')[_0x428147(0x147)](/\{VarPrefix\}/g,_0x531b05||_0x428147(0x15b))[_0x428147(0x147)](/\{CreatedAt\}/g,_0x3e095b);return _0x31defe;}static async['processTemplate'](_0x16ab70,_0x56b90d,_0x2ff159,_0x6fd99d,_0x16f594=!![]){const _0x5d551d=a217_0x5794cf,_0x449fc1=Date[_0x5d551d(0x183)]();try{_0x16f594&&logger['info'](_0x5d551d(0x16e),'开始处理模板内容替换',{'templatePath':_0x16ab70,'targetPath':_0x56b90d,'pageName':_0x2ff159,'templateName':_0x6fd99d});await a217_0x1bc5c9['promises'][_0x5d551d(0x154)](_0x56b90d,{'recursive':!![]}),await this[_0x5d551d(0x155)](_0x16ab70,_0x56b90d,_0x2ff159,_0x6fd99d);if(_0x16f594){const _0x9abf3b=Date[_0x5d551d(0x183)]()-_0x449fc1;logger[_0x5d551d(0x16d)](_0x5d551d(0x16e),'模板内容替换完成',_0x9abf3b,{'pageName':_0x2ff159,'templateName':_0x6fd99d});}}catch(_0x34f32d){if(_0x16f594){const _0x135ae8=Date[_0x5d551d(0x183)]()-_0x449fc1;logger[_0x5d551d(0x158)](_0x5d551d(0x16e),_0x5d551d(0x14c),{'templatePath':_0x16ab70,'targetPath':_0x56b90d,'pageName':_0x2ff159,'templateName':_0x6fd99d,'error':_0x34f32d instanceof Error?_0x34f32d['message']:String(_0x34f32d),'duration':_0x135ae8});}throw _0x34f32d;}}static async[a217_0x5794cf(0x155)](_0x232a2c,_0x4a4598,_0x34844c,_0x8b1a9d){const _0x35e3f5=a217_0x5794cf,_0x4b5fc2=await a217_0x1bc5c9[_0x35e3f5(0x148)][_0x35e3f5(0x174)](_0x232a2c,{'withFileTypes':!![]});for(const _0x1e9b04 of _0x4b5fc2){const _0x3f36f3=a217_0x42e3a4[_0x35e3f5(0x170)](_0x232a2c,_0x1e9b04[_0x35e3f5(0x163)]);let _0x235bea=a217_0x42e3a4[_0x35e3f5(0x170)](_0x4a4598,_0x1e9b04['name']);_0x1e9b04[_0x35e3f5(0x163)][_0x35e3f5(0x17d)](_0x35e3f5(0x17b))&&(_0x235bea=a217_0x42e3a4[_0x35e3f5(0x170)](_0x4a4598,_0x1e9b04[_0x35e3f5(0x163)][_0x35e3f5(0x147)](/\.tpl$/,'')));if(_0x1e9b04[_0x35e3f5(0x143)]())await a217_0x1bc5c9[_0x35e3f5(0x148)][_0x35e3f5(0x154)](_0x235bea,{'recursive':!![]}),await this['processDirectory'](_0x3f36f3,_0x235bea,_0x34844c,_0x8b1a9d);else _0x1e9b04[_0x35e3f5(0x17f)]()&&await this[_0x35e3f5(0x159)](_0x3f36f3,_0x235bea,_0x34844c,_0x8b1a9d);}}static async['processFile'](_0x53c817,_0x1c06c1,_0x126605,_0x30d840){const _0x356155=a217_0x5794cf,_0x52110b=a217_0x42e3a4['extname'](_0x53c817)[_0x356155(0x167)]();_0x53c817[_0x356155(0x17d)](_0x356155(0x17b))&&(_0x1c06c1=_0x1c06c1[_0x356155(0x147)](/\.tpl$/,''));const _0x1d7a79=['.tsx',_0x356155(0x14f),_0x356155(0x142),_0x356155(0x161),_0x356155(0x151),_0x356155(0x178),_0x356155(0x16a),_0x356155(0x14b),'.tpl'];if(_0x1d7a79[_0x356155(0x17a)](_0x52110b)||_0x53c817[_0x356155(0x17d)](_0x356155(0x17b))){const _0x4879a9=await a217_0x1bc5c9[_0x356155(0x148)][_0x356155(0x175)](_0x53c817,_0x356155(0x179)),_0x5715e4=this[_0x356155(0x16c)](_0x4879a9,_0x126605,_0x30d840);await a217_0x1bc5c9['promises'][_0x356155(0x150)](_0x1c06c1,_0x5715e4,_0x356155(0x179));}else await a217_0x1bc5c9[_0x356155(0x148)][_0x356155(0x157)](_0x53c817,_0x1c06c1);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x440729,_0x1d9aa6){const _0x553108=a218_0x5382,_0x26a299=_0x440729();while(!![]){try{const _0x5c8247=parseInt(_0x553108(0x190))/0x1*(parseInt(_0x553108(0x196))/0x2)+parseInt(_0x553108(0x191))/0x3+-parseInt(_0x553108(0x197))/0x4*(-parseInt(_0x553108(0x184))/0x5)+-parseInt(_0x553108(0x199))/0x6*(-parseInt(_0x553108(0x189))/0x7)+-parseInt(_0x553108(0x193))/0x8+parseInt(_0x553108(0x187))/0x9+-parseInt(_0x553108(0x18a))/0xa;if(_0x5c8247===_0x1d9aa6)break;else _0x26a299['push'](_0x26a299['shift']());}catch(_0x523fbf){_0x26a299['push'](_0x26a299['shift']());}}}(a218_0x2ddc,0xa7716));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';function a218_0x5382(_0x3a61d2,_0x62c804){_0x3a61d2=_0x3a61d2-0x183;const _0x2ddcd0=a218_0x2ddc();let _0x53820e=_0x2ddcd0[_0x3a61d2];return _0x53820e;}import{dirname,join}from'node:path';import a218_0x4d26a8 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 _0x58f5cd=a218_0x5382,_0x4e9c35=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x58f5cd(0x185)]()[_0x58f5cd(0x188)]();return _0x4e9c35==='1'||_0x4e9c35===_0x58f5cd(0x195)||_0x4e9c35==='yes';}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x3bab26=a218_0x5382;return join(cacheRoot(),_0x3bab26(0x19c),_0x3bab26(0x194));}async function readUpdateNoticeCache(){const _0x287607=a218_0x5382;try{const _0x41a486=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x1f28ba=JSON[_0x287607(0x18d)](_0x41a486);if(!_0x1f28ba||typeof _0x1f28ba!=='object')return{};return _0x1f28ba;}catch{return{};}}async function writeUpdateNoticeCache(_0x6b4876){const _0x4bf89a=a218_0x5382;try{const _0x159192=getUpdateNoticeCachePath();await mkdir(dirname(_0x159192),{'recursive':!![]}),await writeFile(_0x159192,JSON[_0x4bf89a(0x183)](_0x6b4876,null,0x2)+'\x0a',_0x4bf89a(0x19e));}catch{}}function a218_0x2ddc(){const _0x5ed4b3=['true','4NhrJuB','1779964OooLMs','checkedAt','15174ohQfGO',',\x20run:\x20','stableVersion','rabetbase-cli','valid','utf8','stringify','15LHXzsD','trim','/v/','9032175TmtVou','toLowerCase','3143hZteue','47558770egzMxI','lastNotifiedAt','\x20update','parse','gte','number','391928jLATbu','4074399MpgQYB','lastNotifiedVersion','1394680xSvvxY','update-check.json'];a218_0x2ddc=function(){return _0x5ed4b3;};return a218_0x2ddc();}function isFreshCheck(_0x2401bb,_0x249800){const _0x4c0d80=a218_0x5382;return typeof _0x2401bb['checkedAt']===_0x4c0d80(0x18f)&&_0x249800-_0x2401bb[_0x4c0d80(0x198)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x175220,_0x1723a6,_0x27b231){const _0xcfbe7f=a218_0x5382;return _0x175220[_0xcfbe7f(0x192)]===_0x1723a6&&typeof _0x175220[_0xcfbe7f(0x18b)]===_0xcfbe7f(0x18f)&&_0x27b231-_0x175220[_0xcfbe7f(0x18b)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x5f4cbb){const _0xd54d03=a218_0x5382;return'https://www.npmjs.com/package/'+NPM_PACKAGE_NAME+_0xd54d03(0x186)+_0x5f4cbb;}export async function resolveLatestUpdateNotice(){const _0x396b96=a218_0x5382;if(isUpdateNoticeDisabled())return null;try{const _0x51604d=Date['now'](),_0xa4116e=getCliVersion(),_0x2ad1d8=await readUpdateNoticeCache();let _0x31d99b=isFreshCheck(_0x2ad1d8,_0x51604d)?_0x2ad1d8['latest']?.[_0x396b96(0x185)]():undefined;if(!_0x31d99b&&!isFreshCheck(_0x2ad1d8,_0x51604d)){const _0x2bfd1a=await getCliVersionPolicy();_0x31d99b=_0x2bfd1a?.[_0x396b96(0x19b)]?.[_0x396b96(0x185)]()||undefined,await writeUpdateNoticeCache({..._0x2ad1d8,'checkedAt':_0x51604d,'latest':_0x31d99b,'failed':!_0x31d99b});}if(!_0x31d99b||!a218_0x4d26a8[_0x396b96(0x19d)](_0xa4116e)||!a218_0x4d26a8[_0x396b96(0x19d)](_0x31d99b))return null;if(a218_0x4d26a8[_0x396b96(0x18e)](_0xa4116e,_0x31d99b))return null;if(isRecentlyNotified(_0x2ad1d8,_0x31d99b,_0x51604d))return null;const _0x252266=CLI_BIN_NAME+_0x396b96(0x18c);return await writeUpdateNoticeCache({..._0x2ad1d8,'checkedAt':isFreshCheck(_0x2ad1d8,_0x51604d)?_0x2ad1d8[_0x396b96(0x198)]:_0x51604d,'latest':_0x31d99b,'failed':![],'lastNotifiedVersion':_0x31d99b,'lastNotifiedAt':_0x51604d}),{'command':_0x252266,'current':_0xa4116e,'latest':_0x31d99b,'url':buildNpmVersionUrl(_0x31d99b),'message':CLI_BIN_NAME+'\x20'+_0x31d99b+'\x20available,\x20current\x20'+_0xa4116e+_0x396b96(0x19a)+_0x252266};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a219_0x2137(){var _0x4750da=['2AJCIIg','35CaVsDr','1103550nZPTZR','8518780nksUOH','291236vIwOaE','9dhpCWQ','2473341kslMUE','5292888ltqcdW','4209140pAlhPN','1835700fPcXEk'];a219_0x2137=function(){return _0x4750da;};return a219_0x2137();}(function(_0x46fa58,_0xf4d8c1){var _0x413dec=a219_0x19e9,_0x12925b=_0x46fa58();while(!![]){try{var _0x54dbae=-parseInt(_0x413dec(0x1a0))/0x1+-parseInt(_0x413dec(0x19c))/0x2*(parseInt(_0x413dec(0x1a2))/0x3)+-parseInt(_0x413dec(0x1a4))/0x4+parseInt(_0x413dec(0x19f))/0x5+parseInt(_0x413dec(0x19e))/0x6*(parseInt(_0x413dec(0x19d))/0x7)+parseInt(_0x413dec(0x1a3))/0x8*(parseInt(_0x413dec(0x1a1))/0x9)+-parseInt(_0x413dec(0x19b))/0xa;if(_0x54dbae===_0xf4d8c1)break;else _0x12925b['push'](_0x12925b['shift']());}catch(_0x58b633){_0x12925b['push'](_0x12925b['shift']());}}}(a219_0x2137,0xe3e4e));function a219_0x19e9(_0x434f35,_0x35b30e){_0x434f35=_0x434f35-0x19b;var _0x2137c1=a219_0x2137();var _0x19e9b2=_0x2137c1[_0x434f35];return _0x19e9b2;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xd6b780,_0x4dfed7){var _0x2092ae=a220_0x5efd,_0x1657eb=_0xd6b780();while(!![]){try{var _0x44508b=-parseInt(_0x2092ae(0x6f))/0x1+parseInt(_0x2092ae(0x78))/0x2+-parseInt(_0x2092ae(0x76))/0x3+parseInt(_0x2092ae(0x70))/0x4*(parseInt(_0x2092ae(0x72))/0x5)+parseInt(_0x2092ae(0x73))/0x6*(parseInt(_0x2092ae(0x74))/0x7)+parseInt(_0x2092ae(0x77))/0x8*(parseInt(_0x2092ae(0x75))/0x9)+-parseInt(_0x2092ae(0x79))/0xa*(-parseInt(_0x2092ae(0x71))/0xb);if(_0x44508b===_0x4dfed7)break;else _0x1657eb['push'](_0x1657eb['shift']());}catch(_0x2fcfe6){_0x1657eb['push'](_0x1657eb['shift']());}}}(a220_0x2b5f,0xa8a71));function a220_0x5efd(_0x413b06,_0x1f0144){_0x413b06=_0x413b06-0x6f;var _0x2b5fd7=a220_0x2b5f();var _0x5efdec=_0x2b5fd7[_0x413b06];return _0x5efdec;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a220_0x2b5f(){var _0x135a05=['690075TnXcFe','678UJmBHc','7784AnimeB','171lkQUYr','3572133wZdxQI','472Zrknwl','2119928svMTMd','10EVPaLI','976982HSVIKW','28rQnEYy','7762128GXYQTA'];a220_0x2b5f=function(){return _0x135a05;};return a220_0x2b5f();}export async function withActiveCookie(_0x5cd230,_0x50da63){setActiveCookie(_0x5cd230);try{return await _0x50da63();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a221_0x4a58(_0x5a02aa,_0xa4c4fe){_0x5a02aa=_0x5a02aa-0x1f0;var _0x286ab0=a221_0x286a();var _0x4a5823=_0x286ab0[_0x5a02aa];return _0x4a5823;}function a221_0x286a(){var _0x5594ca=['550646HLxbBj','6444120cRXCKs','22435rxEWgH','13848bWjESL','1407805Czummc','132170HJIvSG','4lMEANj','1928JrfxMb','13453ELTFvX','288ERYuOP','1cqoZmA','2809506ydgvrG'];a221_0x286a=function(){return _0x5594ca;};return a221_0x286a();}(function(_0x1b9b6d,_0xeeb90b){var _0xdf892e=a221_0x4a58,_0x1d6873=_0x1b9b6d();while(!![]){try{var _0x2caf8e=parseInt(_0xdf892e(0x1f0))/0x1*(parseInt(_0xdf892e(0x1f2))/0x2)+parseInt(_0xdf892e(0x1f1))/0x3*(-parseInt(_0xdf892e(0x1f8))/0x4)+-parseInt(_0xdf892e(0x1f6))/0x5+-parseInt(_0xdf892e(0x1f3))/0x6+parseInt(_0xdf892e(0x1f4))/0x7*(parseInt(_0xdf892e(0x1f9))/0x8)+parseInt(_0xdf892e(0x1fb))/0x9*(parseInt(_0xdf892e(0x1f7))/0xa)+parseInt(_0xdf892e(0x1fa))/0xb*(parseInt(_0xdf892e(0x1f5))/0xc);if(_0x2caf8e===_0xeeb90b)break;else _0x1d6873['push'](_0x1d6873['shift']());}catch(_0x572b38){_0x1d6873['push'](_0x1d6873['shift']());}}}(a221_0x286a,0x9006b));export function writeCliSideChannelLine(_0x24a80f){process['stderr']['write'](_0x24a80f+'\x0a');}
|
package/package.json
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.4-beta.2",
|
|
4
|
+
"description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, BFF, database connections, skills, and AI agent workflows.",
|
|
4
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"lovrabet",
|
|
8
|
+
"rabetbase",
|
|
9
|
+
"cli",
|
|
10
|
+
"developer-tools",
|
|
11
|
+
"ai-agent",
|
|
12
|
+
"agent-tools",
|
|
13
|
+
"dataset",
|
|
14
|
+
"bff",
|
|
15
|
+
"sql",
|
|
16
|
+
"low-code"
|
|
17
|
+
],
|
|
18
|
+
"homepage": "https://open.lovrabet.com/",
|
|
5
19
|
"repository": {
|
|
6
20
|
"type": "git",
|
|
7
21
|
"url": "git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git"
|
|
@@ -33,7 +47,7 @@
|
|
|
33
47
|
"test:ui": "vitest --ui",
|
|
34
48
|
"test:watch": "vitest --watch",
|
|
35
49
|
"test:unit": "vitest run test/unit",
|
|
36
|
-
"test:app": "vitest run test/unit/commands/app-shared.test.ts test/unit/commands/app-add.test.ts test/unit/commands/app-remove.test.ts test/unit/commands/app-
|
|
50
|
+
"test:app": "vitest run test/unit/commands/app-shared.test.ts test/unit/commands/app-add.test.ts test/unit/commands/app-remove.test.ts test/unit/commands/app-list.test.ts test/unit/commands/app-discover.test.ts",
|
|
37
51
|
"test:integration": "vitest run test/integration",
|
|
38
52
|
"test:e2e": "vitest run test/e2e",
|
|
39
53
|
"test:e2e:daily": "RABETBASE_E2E_DAILY=1 vitest run test/e2e/daily-app-smoke.test.ts",
|
|
@@ -52,7 +66,9 @@
|
|
|
52
66
|
"files": [
|
|
53
67
|
"lib",
|
|
54
68
|
"templates",
|
|
55
|
-
"sidecar"
|
|
69
|
+
"sidecar",
|
|
70
|
+
"README.md",
|
|
71
|
+
"LICENSE"
|
|
56
72
|
],
|
|
57
73
|
"dependencies": {
|
|
58
74
|
"@inquirer/prompts": "^8.3.2",
|
package/lib/commands/app/use.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a24_0x40477f=a24_0x1efd;(function(_0x23bad0,_0x5d6c04){const _0x1fb709=a24_0x1efd,_0x41fba4=_0x23bad0();while(!![]){try{const _0x4c04a1=parseInt(_0x1fb709(0x77))/0x1*(-parseInt(_0x1fb709(0x92))/0x2)+parseInt(_0x1fb709(0x95))/0x3+-parseInt(_0x1fb709(0x89))/0x4+-parseInt(_0x1fb709(0x74))/0x5+-parseInt(_0x1fb709(0x7c))/0x6+parseInt(_0x1fb709(0x76))/0x7+parseInt(_0x1fb709(0x8b))/0x8;if(_0x4c04a1===_0x5d6c04)break;else _0x41fba4['push'](_0x41fba4['shift']());}catch(_0x169e49){_0x41fba4['push'](_0x41fba4['shift']());}}}(a24_0x3ced,0xc9bc9));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a24_0x3ced(){const _0x2eb649=['global','215505UoLszV','appcode','5429193TLrWhz','1Vfjlrc','write','apps','\x20--appcode\x20<code>`\x20first.','length','5939016ermzZx','globalConfig','App\x20profile\x20name\x20to\x20activate','\x0aNote:\x20\x22','Use\x20`','\x22\x20was\x20defined\x20in\x20global\x20config;\x20profile\x20copied\x20into\x20project\x20so\x20the\x20project\x20config\x20self-resolves\x20under\x20the\x20default\x20project-first\x20inherit\x20policy.','\x22\x20(appcode:\x20','use','call','join','\x20app\x20use\x20<name>\x20[--global]','object','Missing\x20app\x20name.','3431040wXyUsR','\x20app\x20add\x20','4480936bigCFx','hasOwnProperty','projectPath','App\x20\x22','validation','Available:\x20','trim','189358VVjfLk','args','Usage:\x20','4427919jMKPHz','prototype'];a24_0x3ced=function(){return _0x2eb649;};return a24_0x3ced();}function a24_0x1efd(_0x3db23b,_0x501a98){_0x3db23b=_0x3db23b-0x73;const _0x3cedd7=a24_0x3ced();let _0x1efda9=_0x3cedd7[_0x3db23b];return _0x1efda9;}import{readRawConfigWithLayers,isInProject}from'../../context.js';import{readConfig,writeConfig,scopeLabel}from'../../commands/app/shared.js';async function validateArgs(_0x2dcdb9){const _0x505db6=a24_0x1efd,_0x2ac29f=_0x2dcdb9['args'][0x0]?.['trim']();if(!_0x2ac29f)throw CliErrors['validation'](_0x505db6(0x88),_0x505db6(0x94)+CLI_BIN_NAME+_0x505db6(0x86));}async function execute(_0x3b52ec){const _0x59625e=a24_0x1efd,_0x1a2094=_0x3b52ec[_0x59625e(0x93)][0x0]?.[_0x59625e(0x91)]();if(!_0x1a2094)throw CliErrors[_0x59625e(0x8f)](_0x59625e(0x88),_0x59625e(0x94)+CLI_BIN_NAME+_0x59625e(0x86));const _0x56333f=_0x3b52ec['bool'](_0x59625e(0x73)),{config:_0x438366,layers:_0x484c3d}=readRawConfigWithLayers(),_0x4316a1=_0x438366[_0x59625e(0x79)]??{},_0x5942bf=_0x484c3d['globalConfig']['apps']&&typeof _0x484c3d[_0x59625e(0x7d)][_0x59625e(0x79)]===_0x59625e(0x87)?_0x484c3d['globalConfig'][_0x59625e(0x79)]:{},_0x121cf9={..._0x5942bf,..._0x4316a1};if(!_0x121cf9[_0x1a2094]){const _0x34f8a4=Object['keys'](_0x121cf9),_0x36006f=_0x34f8a4[_0x59625e(0x7b)]===0x0?_0x59625e(0x80)+CLI_BIN_NAME+_0x59625e(0x8a)+_0x1a2094+_0x59625e(0x7a):_0x59625e(0x90)+_0x34f8a4[_0x59625e(0x85)](',\x20');throw CliErrors['validation'](_0x59625e(0x8e)+_0x1a2094+'\x22\x20not\x20found.',_0x36006f);}let _0x5703b5,_0x376160='';if(_0x56333f)_0x5703b5={'global':!![]};else{const _0x4947e0=isInProject()&&!!_0x484c3d[_0x59625e(0x8d)];_0x5703b5={'global':!_0x4947e0};}const _0x506e95=readConfig(_0x5703b5);_0x506e95['defaultApp']=_0x1a2094;if(!_0x5703b5[_0x59625e(0x73)]){const _0x2afbae=_0x506e95[_0x59625e(0x79)]&&typeof _0x506e95[_0x59625e(0x79)]===_0x59625e(0x87)?_0x506e95[_0x59625e(0x79)]:{};!Object[_0x59625e(0x96)][_0x59625e(0x8c)][_0x59625e(0x84)](_0x2afbae,_0x1a2094)&&(_0x506e95[_0x59625e(0x79)]={..._0x2afbae,[_0x1a2094]:_0x121cf9[_0x1a2094]},_0x376160=_0x59625e(0x7f)+_0x1a2094+_0x59625e(0x81));}return writeConfig(_0x506e95,_0x5703b5),{'ok':!![],'message':'Default\x20app\x20set\x20to\x20\x22'+_0x1a2094+_0x59625e(0x82)+_0x121cf9[_0x1a2094][_0x59625e(0x75)]+')'+scopeLabel(_0x5703b5)+_0x376160};}export const appUseDefinition={'service':'app','command':a24_0x40477f(0x83),'description':'Deprecated:\x20use\x20workspace\x20use','risk':a24_0x40477f(0x78),'requiresAuth':![],'requiresAppCode':![],'deprecated':{'replacement':'rabetbase\x20workspace\x20use\x20--app\x20<name>'},'args':[{'name':'name','description':a24_0x40477f(0x7e),'required':!![]}],'flags':[{'name':a24_0x40477f(0x73),'type':'boolean','description':'Use\x20global\x20config\x20scope','default':![]}],'validate':validateArgs,'execute':execute};
|