@lovrabet/rabetbase-cli 2.3.3 → 2.3.4-beta.1
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-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 +2 -2
- package/lib/commands/app/use.js +0 -1
package/lib/utils/rules-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a215_0x4c9d1b=a215_0x3221;(function(_0x38e388,_0x523019){const _0x24e607=a215_0x3221,_0x374db4=_0x38e388();while(!![]){try{const _0x34f959=-parseInt(_0x24e607(0x6b))/0x1+parseInt(_0x24e607(0x6e))/0x2*(parseInt(_0x24e607(0x6f))/0x3)+-parseInt(_0x24e607(0x72))/0x4+-parseInt(_0x24e607(0x78))/0x5+parseInt(_0x24e607(0x71))/0x6*(-parseInt(_0x24e607(0x6c))/0x7)+parseInt(_0x24e607(0x7a))/0x8*(-parseInt(_0x24e607(0x79))/0x9)+parseInt(_0x24e607(0x7d))/0xa;if(_0x34f959===_0x523019)break;else _0x374db4['push'](_0x374db4['shift']());}catch(_0x51c051){_0x374db4['push'](_0x374db4['shift']());}}}(a215_0x1ce8,0xe03cc));function a215_0x1ce8(){const _0x464d24=['lovrabet_rules.mdc','utf-8','71078780FFGSYy','json','status','string','../../templates/rules/lovrabet_rules.mdc.tpl','statusText','/rules/rules.json','1093920fpyCOc','301iBjCPX','content','2DuDIHN','2514651shOMBB','本地模板文件不存在:\x20','196770GPumAu','6988712EAtnLC','CDN\x20返回数据格式错误','lastUpdated','catch','CDN\x20请求失败:\x20','agents.md','6225980TqGSIF','1755GVqrHh','62816qHQjmO'];a215_0x1ce8=function(){return _0x464d24;};return a215_0x1ce8();}import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';function a215_0x3221(_0x1ac20e,_0x5f2962){_0x1ac20e=_0x1ac20e-0x65;const _0x1ce848=a215_0x1ce8();let _0x32216e=_0x1ce848[_0x1ac20e];return _0x32216e;}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 _0x20071d=a215_0x3221,_0x305572=getTemplateBaseUrl();return _0x305572+_0x20071d(0x6a);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a215_0x4c9d1b(0x68));export async function fetchRulesFromCDN(){const _0x58ee81=a215_0x4c9d1b,_0x46cbbd=getRulesCdnUrl(),_0x38dea3=await fetch(_0x46cbbd,{'headers':{'Accept':'application/json'}});if(!_0x38dea3['ok'])throw new Error(_0x58ee81(0x76)+_0x38dea3[_0x58ee81(0x66)]+'\x20'+_0x38dea3[_0x58ee81(0x69)]);const _0x587fbe=await _0x38dea3[_0x58ee81(0x65)]();if(!_0x587fbe[_0x58ee81(0x6d)]||typeof _0x587fbe[_0x58ee81(0x6d)]!==_0x58ee81(0x67))throw new Error(_0x58ee81(0x73));return _0x587fbe;}export async function getRulesContent(){const _0x277e0d=a215_0x4c9d1b;try{const _0x3e19d8=await fetchRulesFromCDN();return _0x3e19d8[_0x277e0d(0x6d)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x3d9f79=a215_0x4c9d1b;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x3d9f79(0x7c));throw new Error(_0x3d9f79(0x70)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x31c672){const _0x249f1c=a215_0x4c9d1b,_0x5bcffb=await fetchRulesFromCDN()[_0x249f1c(0x75)](()=>null);let _0x5d9169;_0x5bcffb?(_0x5d9169=_0x5bcffb[_0x249f1c(0x6d)],_0x5bcffb[_0x249f1c(0x74)]&&(_0x5d9169=appendUpdateTime(_0x5d9169,_0x5bcffb[_0x249f1c(0x74)]))):_0x5d9169=readLocalTemplate();const _0x46c90b=dirname(_0x31c672);!existsSync(_0x46c90b)&&mkdirSync(_0x46c90b,{'recursive':!![]}),writeFileSync(_0x31c672,_0x5d9169,'utf-8');}export async function copyRulesToCursor(_0x446a58){const _0x326e71=a215_0x4c9d1b,_0x1e50f8=join(_0x446a58,'.cursor/rules'),_0x1cdfb9=join(_0x1e50f8,_0x326e71(0x7b));if(existsSync(_0x1cdfb9))return![];return await writeRulesFile(_0x1cdfb9),!![];}export async function copyRulesToAgentsMd(_0x805e04){const _0xfe4f2b=a215_0x4c9d1b,_0x375968=join(_0x805e04,_0xfe4f2b(0x77));if(existsSync(_0x375968))return![];return await writeRulesFile(_0x375968),!![];}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x1b1f55){return new Promise(_0x25959b=>setTimeout(_0x25959b,_0x1b1f55));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a217_0x39cb67=a217_0x44c6;(function(_0x391273,_0x5db8e5){const _0x2419ec=a217_0x44c6,_0x47c0b9=_0x391273();while(!![]){try{const _0x55f76b=-parseInt(_0x2419ec(0x1b7))/0x1*(-parseInt(_0x2419ec(0x1db))/0x2)+parseInt(_0x2419ec(0x1a3))/0x3*(-parseInt(_0x2419ec(0x1d5))/0x4)+parseInt(_0x2419ec(0x1a1))/0x5*(-parseInt(_0x2419ec(0x1b1))/0x6)+parseInt(_0x2419ec(0x1a9))/0x7+parseInt(_0x2419ec(0x1c8))/0x8+parseInt(_0x2419ec(0x1a8))/0x9*(parseInt(_0x2419ec(0x1bf))/0xa)+parseInt(_0x2419ec(0x1ac))/0xb*(-parseInt(_0x2419ec(0x1d6))/0xc);if(_0x55f76b===_0x5db8e5)break;else _0x47c0b9['push'](_0x47c0b9['shift']());}catch(_0x1fa0fb){_0x47c0b9['push'](_0x47c0b9['shift']());}}}(a217_0x3c9e,0xd1adc));import a217_0x18e6bb from'node:fs';import a217_0x2f273c from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a217_0x44c6(_0x81a848,_0x4c0f41){_0x81a848=_0x81a848-0x1a1;const _0x3c9edc=a217_0x3c9e();let _0x44c64c=_0x3c9edc[_0x81a848];return _0x44c64c;}function a217_0x3c9e(){const _0x56f4bd=['31305732XZODSX','getHours','.md','readdir','error','164ItFdez','replace','extname','padStart','api','getMonth','5wrXEsp','slice','1950QqDLwg','toUpperCase','isDirectory','processDirectory','alias','4755483nzcuys','9141363LfdLUs','endsWith','name:\x20\x22','11qYcwWh','.scss','mkdir','writeFile','now','5108310mlIwBO','utf8','.ts','charAt','模板内容替换失败','pop','16069stvQBl','split','copyFile','promises','LOVRABET','template','toDisplayTitle','toLowerCase','10ooUTxn','replaceContent','includes','join','\x0a\x20\x20\x20\x20{\x20','formatLocalTimestamp','map','getMinutes','info','10933088qWjfzY','default','toComponentName','模板内容替换完成','datasetCode:\x20\x22','.js','push','name','.tpl','getDate','datasetCode','pad','开始处理模板内容替换','1228kFargG'];a217_0x3c9e=function(){return _0x56f4bd;};return a217_0x3c9e();}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x565754){const _0x232f6d=a217_0x44c6;return String(_0x565754)[_0x232f6d(0x1de)](0x2,'0');}static[a217_0x39cb67(0x1c4)](_0x195e3d){const _0x17989e=a217_0x39cb67,_0x4cd8b3=_0x195e3d['getFullYear'](),_0x31ed5c=this['pad'](_0x195e3d[_0x17989e(0x1e0)]()+0x1),_0x43dde1=this[_0x17989e(0x1d3)](_0x195e3d[_0x17989e(0x1d1)]()),_0x205117=this['pad'](_0x195e3d[_0x17989e(0x1d7)]()),_0x41c7a3=this[_0x17989e(0x1d3)](_0x195e3d[_0x17989e(0x1c6)]()),_0x1efabc=this[_0x17989e(0x1d3)](_0x195e3d['getSeconds']());return{'createdAt':_0x4cd8b3+'-'+_0x31ed5c+'-'+_0x43dde1+'\x20'+_0x205117+':'+_0x41c7a3+':'+_0x1efabc,'createdDate':_0x4cd8b3+'-'+_0x31ed5c+'-'+_0x43dde1,'createdTime':_0x205117+':'+_0x41c7a3+':'+_0x1efabc};}static[a217_0x39cb67(0x1ca)](_0xa1be7e){const _0x3dcc6e=a217_0x39cb67,_0x444ad9=_0xa1be7e[_0x3dcc6e(0x1b8)]('/')[_0x3dcc6e(0x1b6)]()||_0xa1be7e;return _0x444ad9['split']('-')[_0x3dcc6e(0x1c5)](_0x4d23c5=>_0x4d23c5['charAt'](0x0)[_0x3dcc6e(0x1a4)]()+_0x4d23c5[_0x3dcc6e(0x1a2)](0x1)[_0x3dcc6e(0x1be)]())[_0x3dcc6e(0x1c2)]('');}static[a217_0x39cb67(0x1bd)](_0x12168b){const _0x20aa51=a217_0x39cb67,_0xbdb906=_0x12168b[_0x20aa51(0x1b8)]('/')['pop']()||_0x12168b;return _0xbdb906[_0x20aa51(0x1b8)]('-')['map'](_0x4cc076=>_0x4cc076[_0x20aa51(0x1b4)](0x0)[_0x20aa51(0x1a4)]()+_0x4cc076[_0x20aa51(0x1a2)](0x1)['toLowerCase']())[_0x20aa51(0x1c2)]('\x20');}static[a217_0x39cb67(0x1c0)](_0x440a22,_0x35059a,_0x3fd2e9){const _0x5e5fbf=a217_0x39cb67,_0x519344=this['toComponentName'](_0x35059a),_0x22ea10=this[_0x5e5fbf(0x1bd)](_0x35059a),{createdAt:_0xb7e893,createdDate:_0x142d86,createdTime:_0x3047c6}=this[_0x5e5fbf(0x1c4)](new Date());let _0x455fd9=_0x440a22[_0x5e5fbf(0x1dc)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x519344)[_0x5e5fbf(0x1dc)](/\{DisplayTitle\}/g,_0x22ea10)[_0x5e5fbf(0x1dc)](/\{PageName\}/g,_0x35059a)[_0x5e5fbf(0x1dc)](/\{TemplateName\}/g,_0x3fd2e9)[_0x5e5fbf(0x1dc)](/\{CreatedAt\}/g,_0xb7e893)[_0x5e5fbf(0x1dc)](/\{CreatedDate\}/g,_0x142d86)['replace'](/\{CreatedTime\}/g,_0x3047c6);return _0x455fd9;}static['replaceApiContent'](_0xf17c89,_0xc22bee,_0x6ed361,_0x321244,_0x5625ad,_0x24c1a7,_0x2946f5,_0x54e671){const _0x2fc6f4=a217_0x39cb67,_0x1ddb9a=new Date(),_0x2b148f=_0x1ddb9a['toISOString'](),_0x466041=_0x6ed361['map'](_0x7e55ef=>{const _0x4cb3f2=a217_0x44c6,_0x36a40d=[_0x4cb3f2(0x1cc)+_0x7e55ef[_0x4cb3f2(0x1d2)]+'\x22','tableName:\x20\x22'+_0x7e55ef['tableName']+'\x22',_0x4cb3f2(0x1ab)+_0x7e55ef[_0x4cb3f2(0x1cf)]+'\x22'];return _0x7e55ef['alias']&&_0x36a40d[_0x4cb3f2(0x1ce)]('alias:\x20\x22'+_0x7e55ef[_0x4cb3f2(0x1a7)]+'\x22'),_0x4cb3f2(0x1c3)+_0x36a40d[_0x4cb3f2(0x1c2)](',\x20')+'\x20},';})['join'](''),_0x2b0bde=_0x321244||_0x6ed361[0x0]?.[_0x2fc6f4(0x1a7)]||'YourModel';let _0x4d18fc=_0xf17c89[_0x2fc6f4(0x1dc)](/\{AppCode\}/g,_0xc22bee)[_0x2fc6f4(0x1dc)](/\{ModelConfigs\}/g,_0x466041)['replace'](/\{ExampleModelName\}/g,_0x2b0bde)['replace'](/\{ApiFileName\}/g,_0x5625ad||_0x2fc6f4(0x1df))[_0x2fc6f4(0x1dc)](/\{ConfigName\}/g,_0x24c1a7||_0x2fc6f4(0x1c9))[_0x2fc6f4(0x1dc)](/\{ClientConfigParam\}/g,_0x2946f5||'')[_0x2fc6f4(0x1dc)](/\{VarPrefix\}/g,_0x54e671||_0x2fc6f4(0x1bb))[_0x2fc6f4(0x1dc)](/\{CreatedAt\}/g,_0x2b148f);return _0x4d18fc;}static async['processTemplate'](_0x7abade,_0x44102d,_0x6d0baa,_0x2decb1,_0x2e57ff=!![]){const _0x548ff7=a217_0x39cb67,_0x20b589=Date[_0x548ff7(0x1b0)]();try{_0x2e57ff&&logger[_0x548ff7(0x1c7)](_0x548ff7(0x1bc),_0x548ff7(0x1d4),{'templatePath':_0x7abade,'targetPath':_0x44102d,'pageName':_0x6d0baa,'templateName':_0x2decb1});await a217_0x18e6bb[_0x548ff7(0x1ba)][_0x548ff7(0x1ae)](_0x44102d,{'recursive':!![]}),await this[_0x548ff7(0x1a6)](_0x7abade,_0x44102d,_0x6d0baa,_0x2decb1);if(_0x2e57ff){const _0x7c0e67=Date[_0x548ff7(0x1b0)]()-_0x20b589;logger['success'](_0x548ff7(0x1bc),_0x548ff7(0x1cb),_0x7c0e67,{'pageName':_0x6d0baa,'templateName':_0x2decb1});}}catch(_0x491691){if(_0x2e57ff){const _0x273e9d=Date[_0x548ff7(0x1b0)]()-_0x20b589;logger[_0x548ff7(0x1da)]('template',_0x548ff7(0x1b5),{'templatePath':_0x7abade,'targetPath':_0x44102d,'pageName':_0x6d0baa,'templateName':_0x2decb1,'error':_0x491691 instanceof Error?_0x491691['message']:String(_0x491691),'duration':_0x273e9d});}throw _0x491691;}}static async[a217_0x39cb67(0x1a6)](_0xcbadb1,_0xa751a6,_0x5bf0ba,_0x121b50){const _0x71e2d5=a217_0x39cb67,_0x52759b=await a217_0x18e6bb[_0x71e2d5(0x1ba)][_0x71e2d5(0x1d9)](_0xcbadb1,{'withFileTypes':!![]});for(const _0x1148f4 of _0x52759b){const _0x52e44c=a217_0x2f273c[_0x71e2d5(0x1c2)](_0xcbadb1,_0x1148f4['name']);let _0x44cbe4=a217_0x2f273c['join'](_0xa751a6,_0x1148f4[_0x71e2d5(0x1cf)]);_0x1148f4[_0x71e2d5(0x1cf)][_0x71e2d5(0x1aa)](_0x71e2d5(0x1d0))&&(_0x44cbe4=a217_0x2f273c[_0x71e2d5(0x1c2)](_0xa751a6,_0x1148f4['name'][_0x71e2d5(0x1dc)](/\.tpl$/,'')));if(_0x1148f4[_0x71e2d5(0x1a5)]())await a217_0x18e6bb[_0x71e2d5(0x1ba)][_0x71e2d5(0x1ae)](_0x44cbe4,{'recursive':!![]}),await this[_0x71e2d5(0x1a6)](_0x52e44c,_0x44cbe4,_0x5bf0ba,_0x121b50);else _0x1148f4['isFile']()&&await this['processFile'](_0x52e44c,_0x44cbe4,_0x5bf0ba,_0x121b50);}}static async['processFile'](_0x5048f9,_0x535f3d,_0x580a20,_0x4549e5){const _0x1b6464=a217_0x39cb67,_0x1a0121=a217_0x2f273c[_0x1b6464(0x1dd)](_0x5048f9)['toLowerCase']();_0x5048f9[_0x1b6464(0x1aa)]('.tpl')&&(_0x535f3d=_0x535f3d[_0x1b6464(0x1dc)](/\.tpl$/,''));const _0x4ee485=['.tsx',_0x1b6464(0x1b3),'.jsx',_0x1b6464(0x1cd),'.json',_0x1b6464(0x1d8),'.css',_0x1b6464(0x1ad),_0x1b6464(0x1d0)];if(_0x4ee485[_0x1b6464(0x1c1)](_0x1a0121)||_0x5048f9['endsWith'](_0x1b6464(0x1d0))){const _0x422b65=await a217_0x18e6bb['promises']['readFile'](_0x5048f9,_0x1b6464(0x1b2)),_0x4473c1=this[_0x1b6464(0x1c0)](_0x422b65,_0x580a20,_0x4549e5);await a217_0x18e6bb[_0x1b6464(0x1ba)][_0x1b6464(0x1af)](_0x535f3d,_0x4473c1,_0x1b6464(0x1b2));}else await a217_0x18e6bb[_0x1b6464(0x1ba)][_0x1b6464(0x1b9)](_0x5048f9,_0x535f3d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x9108ce,_0x30d63a){const _0x1c6b3c=a218_0x1eb3,_0x598487=_0x9108ce();while(!![]){try{const _0x579e5b=parseInt(_0x1c6b3c(0xa6))/0x1+parseInt(_0x1c6b3c(0xaa))/0x2*(parseInt(_0x1c6b3c(0xa8))/0x3)+-parseInt(_0x1c6b3c(0xbe))/0x4*(parseInt(_0x1c6b3c(0xa0))/0x5)+-parseInt(_0x1c6b3c(0xb2))/0x6+parseInt(_0x1c6b3c(0xac))/0x7*(-parseInt(_0x1c6b3c(0xb0))/0x8)+parseInt(_0x1c6b3c(0xbf))/0x9+-parseInt(_0x1c6b3c(0xbc))/0xa*(-parseInt(_0x1c6b3c(0xae))/0xb);if(_0x579e5b===_0x30d63a)break;else _0x598487['push'](_0x598487['shift']());}catch(_0x5a5f6c){_0x598487['push'](_0x598487['shift']());}}}(a218_0x4d83,0x2a26b));function a218_0x1eb3(_0x1139a9,_0x4749aa){_0x1139a9=_0x1139a9-0xa0;const _0x4d83b4=a218_0x4d83();let _0x1eb3d0=_0x4d83b4[_0x1139a9];return _0x1eb3d0;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a218_0x3507e6 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 _0x361626=a218_0x1eb3,_0x6e9d65=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x361626(0xa4)]()[_0x361626(0xb1)]();return _0x6e9d65==='1'||_0x6e9d65===_0x361626(0xbd)||_0x6e9d65===_0x361626(0xaf);}function a218_0x4d83(){const _0x283ea9=['2420594IDXFLV','yes','1380152hCrBIt','toLowerCase','656700udlLmB','https://www.npmjs.com/package/','utf8','number','now','lastNotifiedAt','lastNotifiedVersion','checkedAt','object','gte','20kYmQDi','true','7060ubczTr','1370403VSesvo','365ffVbar','valid','\x20update','latest','trim','parse','153190NWJmzT','update-check.json','453bcaKjJ',',\x20run:\x20','138CdVnfg','stringify','14FIZGKQ','\x20available,\x20current\x20'];a218_0x4d83=function(){return _0x283ea9;};return a218_0x4d83();}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x489f28=a218_0x1eb3;return join(cacheRoot(),'rabetbase-cli',_0x489f28(0xa7));}async function readUpdateNoticeCache(){const _0x3357c4=a218_0x1eb3;try{const _0x203daa=await readFile(getUpdateNoticeCachePath(),_0x3357c4(0xb4)),_0x4131e5=JSON[_0x3357c4(0xa5)](_0x203daa);if(!_0x4131e5||typeof _0x4131e5!==_0x3357c4(0xba))return{};return _0x4131e5;}catch{return{};}}async function writeUpdateNoticeCache(_0x3b73eb){const _0x925396=a218_0x1eb3;try{const _0x439e45=getUpdateNoticeCachePath();await mkdir(dirname(_0x439e45),{'recursive':!![]}),await writeFile(_0x439e45,JSON[_0x925396(0xab)](_0x3b73eb,null,0x2)+'\x0a',_0x925396(0xb4));}catch{}}function isFreshCheck(_0x3a6720,_0x3e9fa1){const _0x2c0ce3=a218_0x1eb3;return typeof _0x3a6720[_0x2c0ce3(0xb9)]===_0x2c0ce3(0xb5)&&_0x3e9fa1-_0x3a6720[_0x2c0ce3(0xb9)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x2907c6,_0x1bcc39,_0x1b9bde){const _0x4359cc=a218_0x1eb3;return _0x2907c6[_0x4359cc(0xb8)]===_0x1bcc39&&typeof _0x2907c6[_0x4359cc(0xb7)]==='number'&&_0x1b9bde-_0x2907c6[_0x4359cc(0xb7)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x3bb671){const _0x300e41=a218_0x1eb3;return _0x300e41(0xb3)+NPM_PACKAGE_NAME+'/v/'+_0x3bb671;}export async function resolveLatestUpdateNotice(){const _0x53d788=a218_0x1eb3;if(isUpdateNoticeDisabled())return null;try{const _0x8c1a8d=Date[_0x53d788(0xb6)](),_0x5cfa3a=getCliVersion(),_0x14a4b6=await readUpdateNoticeCache();let _0x4acb66=isFreshCheck(_0x14a4b6,_0x8c1a8d)?_0x14a4b6[_0x53d788(0xa3)]?.[_0x53d788(0xa4)]():undefined;if(!_0x4acb66&&!isFreshCheck(_0x14a4b6,_0x8c1a8d)){const _0x173b77=await getCliVersionPolicy();_0x4acb66=_0x173b77?.['stableVersion']?.[_0x53d788(0xa4)]()||undefined,await writeUpdateNoticeCache({..._0x14a4b6,'checkedAt':_0x8c1a8d,'latest':_0x4acb66,'failed':!_0x4acb66});}if(!_0x4acb66||!a218_0x3507e6['valid'](_0x5cfa3a)||!a218_0x3507e6[_0x53d788(0xa1)](_0x4acb66))return null;if(a218_0x3507e6[_0x53d788(0xbb)](_0x5cfa3a,_0x4acb66))return null;if(isRecentlyNotified(_0x14a4b6,_0x4acb66,_0x8c1a8d))return null;const _0x4b1297=CLI_BIN_NAME+_0x53d788(0xa2);return await writeUpdateNoticeCache({..._0x14a4b6,'checkedAt':isFreshCheck(_0x14a4b6,_0x8c1a8d)?_0x14a4b6[_0x53d788(0xb9)]:_0x8c1a8d,'latest':_0x4acb66,'failed':![],'lastNotifiedVersion':_0x4acb66,'lastNotifiedAt':_0x8c1a8d}),{'command':_0x4b1297,'current':_0x5cfa3a,'latest':_0x4acb66,'url':buildNpmVersionUrl(_0x4acb66),'message':CLI_BIN_NAME+'\x20'+_0x4acb66+_0x53d788(0xad)+_0x5cfa3a+_0x53d788(0xa9)+_0x4b1297};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a219_0x1cf6(_0x4ac229,_0x2ae777){_0x4ac229=_0x4ac229-0x1c6;var _0x454385=a219_0x4543();var _0x1cf6bf=_0x454385[_0x4ac229];return _0x1cf6bf;}(function(_0x2d6ec8,_0x32ae45){var _0x2ab961=a219_0x1cf6,_0x19d443=_0x2d6ec8();while(!![]){try{var _0x1b2788=parseInt(_0x2ab961(0x1c6))/0x1+parseInt(_0x2ab961(0x1c7))/0x2+parseInt(_0x2ab961(0x1cb))/0x3+parseInt(_0x2ab961(0x1c9))/0x4+parseInt(_0x2ab961(0x1cd))/0x5*(parseInt(_0x2ab961(0x1cc))/0x6)+-parseInt(_0x2ab961(0x1c8))/0x7+-parseInt(_0x2ab961(0x1ca))/0x8;if(_0x1b2788===_0x32ae45)break;else _0x19d443['push'](_0x19d443['shift']());}catch(_0x22c33a){_0x19d443['push'](_0x19d443['shift']());}}}(a219_0x4543,0x79864));function a219_0x4543(){var _0x242bae=['4633510gthLxQ','877410ECogYK','1117178tKnYXj','2455474CVwqJG','1522928LfaBxB','16680368roVZOp','570477OziNYp','6OAGRLb'];a219_0x4543=function(){return _0x242bae;};return a219_0x4543();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a220_0x5e45(){var _0x22d4fc=['4JNpehd','1394343ujhDfe','4bxLMWi','1205757gCatLF','5703882IrrSVU','5589600moqmCR','2590553wvPjGl','48wmYuvp','4560900GjRTXU','405094BnLpQs'];a220_0x5e45=function(){return _0x22d4fc;};return a220_0x5e45();}(function(_0x79ea85,_0x364eb7){var _0x53e8ef=a220_0x4512,_0x415306=_0x79ea85();while(!![]){try{var _0x4bfe48=-parseInt(_0x53e8ef(0x1d6))/0x1*(-parseInt(_0x53e8ef(0x1cf))/0x2)+-parseInt(_0x53e8ef(0x1ce))/0x3*(parseInt(_0x53e8ef(0x1cd))/0x4)+parseInt(_0x53e8ef(0x1d5))/0x5+parseInt(_0x53e8ef(0x1d1))/0x6+-parseInt(_0x53e8ef(0x1d3))/0x7+parseInt(_0x53e8ef(0x1d4))/0x8*(-parseInt(_0x53e8ef(0x1d0))/0x9)+-parseInt(_0x53e8ef(0x1d2))/0xa;if(_0x4bfe48===_0x364eb7)break;else _0x415306['push'](_0x415306['shift']());}catch(_0x547bab){_0x415306['push'](_0x415306['shift']());}}}(a220_0x5e45,0x740dd));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a220_0x4512(_0x2d232d,_0x4a9038){_0x2d232d=_0x2d232d-0x1cd;var _0x5e45c4=a220_0x5e45();var _0x451249=_0x5e45c4[_0x2d232d];return _0x451249;}export async function withActiveCookie(_0x194107,_0x4dd4df){setActiveCookie(_0x194107);try{return await _0x4dd4df();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2d3caf,_0x5ee7f3){var _0x5d3d39=a221_0x5cb1,_0x3c8200=_0x2d3caf();while(!![]){try{var _0x3870e9=-parseInt(_0x5d3d39(0x124))/0x1+-parseInt(_0x5d3d39(0x123))/0x2*(-parseInt(_0x5d3d39(0x126))/0x3)+-parseInt(_0x5d3d39(0x127))/0x4+-parseInt(_0x5d3d39(0x122))/0x5+parseInt(_0x5d3d39(0x129))/0x6*(-parseInt(_0x5d3d39(0x125))/0x7)+-parseInt(_0x5d3d39(0x121))/0x8*(parseInt(_0x5d3d39(0x12b))/0x9)+parseInt(_0x5d3d39(0x128))/0xa;if(_0x3870e9===_0x5ee7f3)break;else _0x3c8200['push'](_0x3c8200['shift']());}catch(_0x332c5c){_0x3c8200['push'](_0x3c8200['shift']());}}}(a221_0x2552,0x7893c));function a221_0x5cb1(_0x230994,_0x33e38f){_0x230994=_0x230994-0x121;var _0x255236=a221_0x2552();var _0x5cb1ab=_0x255236[_0x230994];return _0x5cb1ab;}function a221_0x2552(){var _0x4c9f5b=['973DMTIbq','51hgiSPr','574504xWpcjr','18564970AbdrCz','4776TgLzAM','write','1869111ckgbzK','8tfcmMp','2999770ECbQrX','32686ooSqpt','578541LPFGKQ'];a221_0x2552=function(){return _0x4c9f5b;};return a221_0x2552();}export function writeCliSideChannelLine(_0x1ff809){var _0x5301f7=a221_0x5cb1;process['stderr'][_0x5301f7(0x12a)](_0x1ff809+'\x0a');}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.4-beta.1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"test:ui": "vitest --ui",
|
|
34
34
|
"test:watch": "vitest --watch",
|
|
35
35
|
"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-
|
|
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-list.test.ts test/unit/commands/app-discover.test.ts",
|
|
37
37
|
"test:integration": "vitest run test/integration",
|
|
38
38
|
"test:e2e": "vitest run test/e2e",
|
|
39
39
|
"test:e2e:daily": "RABETBASE_E2E_DAILY=1 vitest run test/e2e/daily-app-smoke.test.ts",
|
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};
|