@lovrabet/lovrabet-cli 2.1.7-beta.5 → 2.1.7
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/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.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/shared.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.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/update.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.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/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.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/preparse.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.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/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/utils/apply-jq-filter.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/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
package/lib/commands/bff/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15_0x2c97b8=a15_0x3f75;(function(_0x5420ec,_0x397592){const _0x48fdcf=a15_0x3f75,_0x24ff6a=_0x5420ec();while(!![]){try{const _0x1e2586=parseInt(_0x48fdcf(0x1c9))/0x1*(parseInt(_0x48fdcf(0x1c3))/0x2)+-parseInt(_0x48fdcf(0x1c5))/0x3*(parseInt(_0x48fdcf(0x1bf))/0x4)+parseInt(_0x48fdcf(0x1c6))/0x5*(parseInt(_0x48fdcf(0x1bd))/0x6)+parseInt(_0x48fdcf(0x1c0))/0x7+parseInt(_0x48fdcf(0x1c8))/0x8+parseInt(_0x48fdcf(0x1ca))/0x9+-parseInt(_0x48fdcf(0x1cc))/0xa;if(_0x1e2586===_0x397592)break;else _0x24ff6a['push'](_0x24ff6a['shift']());}catch(_0x27d7f){_0x24ff6a['push'](_0x24ff6a['shift']());}}}(a15_0x4a5e,0xb6366));import{executeSdkBff}from'../../core/sdk-client.js';function a15_0x3f75(_0x4e0c69,_0x59fd1b){_0x4e0c69=_0x4e0c69-0x1bc;const _0x4a5ecd=a15_0x4a5e();let _0x3f7566=_0x4a5ecd[_0x4e0c69];return _0x3f7566;}import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a15_0x4a5e(){const _0x9bb767=['17755430FZINGo','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','7593282DmXnsn','name','1033336gPCULa','6216721hxKZxw','str','exec','1014966WHCqeq','bff','12Bbhqpw','5ntwqXk','now','5986664rCFrdw','1Vlwwjd','1311795tmQQvE','BFF\x20function\x20name\x20to\x20execute'];a15_0x4a5e=function(){return _0x9bb767;};return a15_0x4a5e();}export const bffExec={'service':a15_0x2c97b8(0x1c4),'command':a15_0x2c97b8(0x1c2),'description':a15_0x2c97b8(0x1bc),'risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':a15_0x2c97b8(0x1cb)},PARAMS_FLAG],async 'execute'(_0x4ef239){const _0x55ac0f=a15_0x2c97b8,_0x499305=parseJsonParams(_0x4ef239[_0x55ac0f(0x1c1)]('params')),_0x38c7f9=Date[_0x55ac0f(0x1c7)](),_0x1d80e4=await executeSdkBff(_0x4ef239[_0x55ac0f(0x1c1)](_0x55ac0f(0x1be)),_0x499305),_0x53d3b6=Date['now']()-_0x38c7f9;return{'ok':!![],'data':{'result':_0x1d80e4,'elapsed':_0x53d3b6},'message':'BFF\x20executed\x20in\x20'+_0x53d3b6+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a16_0x2d38(_0x2253b8,_0x110008){_0x2253b8=_0x2253b8-0x1ea;const _0x3f4ab3=a16_0x3f4a();let _0x2d38ca=_0x3f4ab3[_0x2253b8];return _0x2d38ca;}(function(_0x3bbfc8,_0x4696ff){const _0x420034=a16_0x2d38,_0x40b747=_0x3bbfc8();while(!![]){try{const _0x1cb486=parseInt(_0x420034(0x1f2))/0x1*(-parseInt(_0x420034(0x1ef))/0x2)+parseInt(_0x420034(0x1f0))/0x3*(-parseInt(_0x420034(0x1ee))/0x4)+-parseInt(_0x420034(0x1ea))/0x5*(-parseInt(_0x420034(0x1f3))/0x6)+parseInt(_0x420034(0x1eb))/0x7+-parseInt(_0x420034(0x1f1))/0x8*(-parseInt(_0x420034(0x1ed))/0x9)+-parseInt(_0x420034(0x1ec))/0xa+parseInt(_0x420034(0x1f4))/0xb*(parseInt(_0x420034(0x1f5))/0xc);if(_0x1cb486===_0x4696ff)break;else _0x40b747['push'](_0x40b747['shift']());}catch(_0x3fbe7c){_0x40b747['push'](_0x40b747['shift']());}}}(a16_0x3f4a,0x25d8b));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';function a16_0x3f4a(){const _0x11e67d=['668696WenxEE','6PbWJDg','366bZPwDo','1045693wQFyzk','24DzTVlS','16890OldYAx','672798rUebGW','1617270TLvzDt','9qWTFUx','4hSzPKE','42418AubjVJ','395655EAHqfQ'];a16_0x3f4a=function(){return _0x11e67d;};return a16_0x3f4a();}export const bffDefinitions=[bffDetail,bffExec];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a17_0x2040(_0x3f4862,_0x13b575){_0x3f4862=_0x3f4862-0xfe;const _0x37fa0d=a17_0x37fa();let _0x20401c=_0x37fa0d[_0x3f4862];return _0x20401c;}const a17_0x23595a=a17_0x2040;(function(_0x27bc08,_0x4763ed){const _0x237bd6=a17_0x2040,_0x43e177=_0x27bc08();while(!![]){try{const _0x27e759=-parseInt(_0x237bd6(0x10c))/0x1*(parseInt(_0x237bd6(0x112))/0x2)+-parseInt(_0x237bd6(0xfe))/0x3+-parseInt(_0x237bd6(0x118))/0x4+-parseInt(_0x237bd6(0x114))/0x5+-parseInt(_0x237bd6(0x103))/0x6+parseInt(_0x237bd6(0x109))/0x7+-parseInt(_0x237bd6(0x104))/0x8*(-parseInt(_0x237bd6(0x108))/0x9);if(_0x27e759===_0x4763ed)break;else _0x43e177['push'](_0x43e177['shift']());}catch(_0x969325){_0x43e177['push'](_0x43e177['shift']());}}}(a17_0x37fa,0xceea5));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';function a17_0x37fa(){const _0x34cdd0=['inherit','npx\x20skills\x20add\x20failed:\x20','527276uNKASW','2676051ojmLjT','nonInteractive','../../skills/npx-skills-add.js','error','cwd','9994728rdjRWm','1168fKNhPh','cli-skill-install','setLogPath','\x20-g\x20-y)...','280737XUOmuF','4689867XPuKTE','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','log','1hTCUwm','Skipped\x20npx\x20(','pipe','skipped','unknown','CLI\x20Built-in\x20Skill\x20installed','1050680LMxfhU','cli-skill','5808350IEExyp','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20'];a17_0x37fa=function(){return _0x34cdd0;};return a17_0x37fa();}export const cliSkillDefinitions=[{'service':a17_0x23595a(0x113),'command':'install','description':a17_0x23595a(0x10a),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xaf60d8){const _0xa8253d=a17_0x23595a;logger[_0xa8253d(0x106)](process[_0xa8253d(0x102)]()),logger['info'](_0xa8253d(0x105),'Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.');const {LOVRABET_SKILL_SOURCE:_0x2b044c,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x32fcf2,runNpxSkillsAddGlobal:_0xd03f5b}=await import(_0xa8253d(0x100)),_0x2240d8=_0xaf60d8[_0xa8253d(0xff)]?_0xa8253d(0x10e):_0xa8253d(0x116);console[_0xa8253d(0x10b)]('Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20'+_0x2b044c+_0xa8253d(0x107));const _0x2e40d4=_0xd03f5b(process[_0xa8253d(0x102)](),_0x2b044c,{'stdio':_0x2240d8});if(_0x2e40d4[_0xa8253d(0x10f)])console[_0xa8253d(0x10b)](_0xa8253d(0x10d)+_0x32fcf2+'=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.');else{if(_0x2e40d4['ok'])console['log'](_0xa8253d(0x111));else throw CliErrors['apiError'](_0xa8253d(0x117)+(_0x2e40d4[_0xa8253d(0x101)]||_0xa8253d(0x110)),_0xa8253d(0x115)+_0x2b044c+'\x20-g\x20-y');}return{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a18_0x309c(){const _0x42aafc=['newConfigFileName','Not\x20inside\x20a\x20project\x20(no\x20','6VKYXEI','13GytoPW','inProject','16IjMeOh','Use\x20only\x20one\x20config\x20scope\x20flag.','6322xYcnzk','project',',\x20or\x20run\x20`','1391440fGVtZe','195708sBhXrX','3518870ZVEFzJ','5095608Zrtybb','validation','5020188EkiuMI','\x20found).','581904XGBWfp','290iBCdFh','36KqeqLL','11RFVmTP','Add\x20--global\x20to\x20write\x20to\x20~/','\x20(global)','\x20init`\x20first.','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','global'];a18_0x309c=function(){return _0x42aafc;};return a18_0x309c();}(function(_0x1a6e11,_0x58c2f7){const _0x5b2f40=a18_0x2b53,_0x567f8a=_0x1a6e11();while(!![]){try{const _0x556ffd=-parseInt(_0x5b2f40(0x172))/0x1*(parseInt(_0x5b2f40(0x17d))/0x2)+parseInt(_0x5b2f40(0x176))/0x3*(parseInt(_0x5b2f40(0x17e))/0x4)+-parseInt(_0x5b2f40(0x175))/0x5*(parseInt(_0x5b2f40(0x16d))/0x6)+parseInt(_0x5b2f40(0x178))/0x7*(parseInt(_0x5b2f40(0x170))/0x8)+parseInt(_0x5b2f40(0x17c))/0x9+-parseInt(_0x5b2f40(0x177))/0xa*(-parseInt(_0x5b2f40(0x17f))/0xb)+-parseInt(_0x5b2f40(0x17a))/0xc*(parseInt(_0x5b2f40(0x16e))/0xd);if(_0x556ffd===_0x58c2f7)break;else _0x567f8a['push'](_0x567f8a['shift']());}catch(_0xad1403){_0x567f8a['push'](_0x567f8a['shift']());}}}(a18_0x309c,0xce994));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x42c811){const _0x33a583=a18_0x2b53,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x3e3f62}=_0x42c811;if(explicitGlobal&&explicitProject)throw CliErrors[_0x33a583(0x179)](_0x33a583(0x183),_0x33a583(0x171));if(explicitGlobal)return _0x33a583(0x16a);if(explicitProject)return _0x33a583(0x173);switch(_0x3e3f62){case'global-default':return _0x33a583(0x16a);case'project-default':return _0x42c811[_0x33a583(0x16f)]??isInProject()?_0x33a583(0x173):'global';case'project-or-global-explicit':if(!(_0x42c811[_0x33a583(0x16f)]??isInProject()))throw CliErrors[_0x33a583(0x179)](_0x33a583(0x16c)+PRODUCT_CONFIG[_0x33a583(0x16b)]+_0x33a583(0x17b),_0x33a583(0x180)+PRODUCT_CONFIG[_0x33a583(0x16b)]+_0x33a583(0x174)+CLI_BIN_NAME+_0x33a583(0x182));return _0x33a583(0x173);}}export function toScopeFlags(_0x4e7bd6){const _0x2a993c=a18_0x2b53;return{'global':_0x4e7bd6===_0x2a993c(0x16a)};}function a18_0x2b53(_0x563fc3,_0x395fa0){_0x563fc3=_0x563fc3-0x16a;const _0x309c73=a18_0x309c();let _0x2b53ed=_0x309c73[_0x563fc3];return _0x2b53ed;}export function formatScopeLabel(_0x1cd832){const _0x71868d=a18_0x2b53;return _0x1cd832===_0x71868d(0x16a)?_0x71868d(0x181):'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4d5077,_0x56a6c4){const _0x16bc29=a19_0x45b2,_0x378de1=_0x4d5077();while(!![]){try{const _0x4ae45e=parseInt(_0x16bc29(0xe3))/0x1+-parseInt(_0x16bc29(0xd3))/0x2+parseInt(_0x16bc29(0xd8))/0x3+-parseInt(_0x16bc29(0xe0))/0x4*(parseInt(_0x16bc29(0xde))/0x5)+parseInt(_0x16bc29(0xe1))/0x6+parseInt(_0x16bc29(0xd9))/0x7+-parseInt(_0x16bc29(0xcf))/0x8*(parseInt(_0x16bc29(0xd0))/0x9);if(_0x4ae45e===_0x56a6c4)break;else _0x378de1['push'](_0x378de1['shift']());}catch(_0x158a8d){_0x378de1['push'](_0x378de1['shift']());}}}(a19_0x1b8b,0x7bf1f));function a19_0x45b2(_0x5b9f62,_0x236efb){_0x5b9f62=_0x5b9f62-0xcb;const _0x1b8bd0=a19_0x1b8b();let _0x45b2b9=_0x1b8bd0[_0x5b9f62];return _0x45b2b9;}import{CliErrors}from'../../errors.js';function isSet(_0x218a17,_0x4804c3){const _0x3bd631=a19_0x45b2,_0x39b2b2=_0x218a17[_0x3bd631(0xcc)](_0x4804c3);return _0x39b2b2!==undefined&&_0x39b2b2!==''&&_0x39b2b2!==![]&&_0x39b2b2!==0x0;}function fmtNames(_0x2db682){const _0x3da568=a19_0x45b2;return _0x2db682[_0x3da568(0xdf)](_0x187697=>'--'+_0x187697)[_0x3da568(0xd2)](',\x20');}export function requireOneOf(_0x5ad245,_0x5cce69,_0x4e58e7){const _0x25d5f5=a19_0x45b2,_0x2e8223=_0x5cce69[_0x25d5f5(0xdd)](_0x538287=>isSet(_0x5ad245,_0x538287));if(_0x2e8223[_0x25d5f5(0xe5)]!==0x1)throw CliErrors[_0x25d5f5(0xd1)](_0x2e8223['length']===0x0?_0x25d5f5(0xe6)+fmtNames(_0x5cce69)+'\x20is\x20required\x20for\x20`'+_0x4e58e7+'`.':'Only\x20one\x20of\x20'+fmtNames(_0x5cce69)+_0x25d5f5(0xd7)+fmtNames(_0x2e8223)+'.',_0x2e8223[_0x25d5f5(0xe5)]===0x0?_0x25d5f5(0xe2)+fmtNames(_0x5cce69):_0x25d5f5(0xd5));}export function requireAnyOf(_0x3e19d4,_0x5861be,_0x1a24b5){const _0x18d098=a19_0x45b2;if(!_0x5861be[_0x18d098(0xdb)](_0x21aa79=>isSet(_0x3e19d4,_0x21aa79)))throw CliErrors[_0x18d098(0xd1)](_0x18d098(0xd4)+fmtNames(_0x5861be)+'\x20is\x20required\x20for\x20`'+_0x1a24b5+'`.',_0x18d098(0xe2)+fmtNames(_0x5861be));}function a19_0x1b8b(){const _0x131cd7=['test','\x20are\x20mutually\x20exclusive\x20for\x20`','8YQdJGg','13171023anxwZr','validation','join','785788KJOQGr','At\x20least\x20one\x20of\x20','Remove\x20all\x20but\x20one.','Invalid\x20--','\x20is\x20allowed,\x20found:\x20','1825530lMShOn','5784268TsdTXy','Use\x20only\x20one\x20of:\x20','some',',\x20got\x20\x22','filter','15XYyykJ','map','596936unjOPF','4392348GBokEb','Provide\x20one\x20of:\x20','644830lxboNx','Flags\x20','length','Exactly\x20one\x20of\x20',':\x20expected\x20','str','flag'];a19_0x1b8b=function(){return _0x131cd7;};return a19_0x1b8b();}export function mutuallyExclusive(_0xd6d0a7,_0xf57ab7,_0x32d092){const _0x44b490=a19_0x45b2,_0x51304e=_0xf57ab7[_0x44b490(0xdd)](_0x3a5260=>isSet(_0xd6d0a7,_0x3a5260));if(_0x51304e[_0x44b490(0xe5)]>0x1)throw CliErrors[_0x44b490(0xd1)](_0x44b490(0xe4)+fmtNames(_0x51304e)+_0x44b490(0xce)+_0x32d092+'`.',_0x44b490(0xda)+fmtNames(_0xf57ab7));}export function validatePattern(_0x89fe4d,_0x5f5d71,_0xb26702,_0x3de983){const _0x52f1ac=a19_0x45b2,_0xdb60f=_0x89fe4d[_0x52f1ac(0xcb)](_0x5f5d71);if(_0xdb60f&&!_0xb26702[_0x52f1ac(0xcd)](_0xdb60f))throw CliErrors[_0x52f1ac(0xd1)](_0x52f1ac(0xd6)+_0x5f5d71+_0x52f1ac(0xe7)+_0x3de983+_0x52f1ac(0xdc)+_0xdb60f+'\x22.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x5cf351=a20_0x1df9;(function(_0x27df33,_0x272edb){const _0x547b47=a20_0x1df9,_0x162375=_0x27df33();while(!![]){try{const _0x239707=parseInt(_0x547b47(0x115))/0x1+parseInt(_0x547b47(0x109))/0x2+parseInt(_0x547b47(0x10e))/0x3+parseInt(_0x547b47(0x110))/0x4*(parseInt(_0x547b47(0x118))/0x5)+-parseInt(_0x547b47(0x11a))/0x6+parseInt(_0x547b47(0x116))/0x7*(-parseInt(_0x547b47(0x10d))/0x8)+-parseInt(_0x547b47(0x113))/0x9;if(_0x239707===_0x272edb)break;else _0x162375['push'](_0x162375['shift']());}catch(_0x5abab9){_0x162375['push'](_0x162375['shift']());}}}(a20_0x5d7d,0xec77e));export const CODE_FLAG={'name':'code','type':a20_0x5cf351(0x114),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};export const SQLCODE_FLAG={'name':a20_0x5cf351(0x10c),'type':a20_0x5cf351(0x114),'required':!![],'description':a20_0x5cf351(0x112),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const VERBOSE_FLAG={'name':'verbose','type':a20_0x5cf351(0x10b),'description':a20_0x5cf351(0x117)};export const PARAMS_FLAG={'name':'params','type':a20_0x5cf351(0x114),'description':a20_0x5cf351(0x10f)};export const NAME_FLAG={'name':'name','type':a20_0x5cf351(0x114),'description':a20_0x5cf351(0x119)};function a20_0x1df9(_0x159f70,_0xff4943){_0x159f70=_0x159f70-0x109;const _0x5d7db6=a20_0x5d7d();let _0x1df9aa=_0x5d7db6[_0x159f70];return _0x1df9aa;}function a20_0x5d7d(){const _0x1678f8=['5wBDVaT','Resource\x20name\x20for\x20lookup','4023618ZSbiov','2041812tJcIFd','number','boolean','sqlcode','1150456TUZbOG','1729368YPZTQT','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','1420072JIJsGA','Resource\x20ID','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','5066847SiiqbE','string','1400236GsZWoC','56IuRAhA','Return\x20full\x20raw\x20response\x20object'];a20_0x5d7d=function(){return _0x1678f8;};return a20_0x5d7d();}export const ID_FLAG={'name':'id','type':a20_0x5cf351(0x10a),'required':!![],'description':a20_0x5cf351(0x111)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a21_0xd9f1(_0x1fa3c9,_0x42e7b1){_0x1fa3c9=_0x1fa3c9-0x17c;const _0xdab23c=a21_0xdab2();let _0xd9f140=_0xdab23c[_0x1fa3c9];return _0xd9f140;}const a21_0x4f18d4=a21_0xd9f1;(function(_0x217f85,_0x50302f){const _0x385fa0=a21_0xd9f1,_0xafe900=_0x217f85();while(!![]){try{const _0x25348e=parseInt(_0x385fa0(0x1b8))/0x1*(-parseInt(_0x385fa0(0x1a0))/0x2)+-parseInt(_0x385fa0(0x1b4))/0x3*(parseInt(_0x385fa0(0x1c1))/0x4)+parseInt(_0x385fa0(0x1a6))/0x5*(-parseInt(_0x385fa0(0x196))/0x6)+-parseInt(_0x385fa0(0x18e))/0x7*(-parseInt(_0x385fa0(0x190))/0x8)+-parseInt(_0x385fa0(0x192))/0x9+parseInt(_0x385fa0(0x1a1))/0xa*(-parseInt(_0x385fa0(0x1ae))/0xb)+parseInt(_0x385fa0(0x1c0))/0xc;if(_0x25348e===_0x50302f)break;else _0xafe900['push'](_0xafe900['shift']());}catch(_0x47dfed){_0xafe900['push'](_0xafe900['shift']());}}}(a21_0xdab2,0xa9346));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a21_0x4f18d4(0x19e),'type':a21_0x4f18d4(0x197),'description':a21_0x4f18d4(0x1b5),'default':![]};function a21_0xdab2(){const _0x1222e6=['Delete\x20a\x20config\x20value','\x22\x20not\x20found\x20at\x20top\x20level.','alias','apps','5Asansp','Deleted\x20`','project-or-global-explicit','Key\x20\x22','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','\x20config\x20delete\x20<key>\x20[--global]','key','\x20\x20project:\x20','11PRSXjR','Get\x20a\x20config\x20value','Usage:\x20','Key\x20not\x20found:\x20','isArray','Settable\x20keys:\x20','5469kpOSJo','Write\x20to\x20global\x20config','raw','config','27PgQfUj','Set\x20`','object','Top-level\x20key\x20\x22',';\x20apps.<alias>.appcode','\x20config\x20get\x20<key>','\x20(global)','field','34656000kenpHQ','2616xTDTjS','Missing\x20key\x20or\x20value.','delete','list','write','(none)','read','bool','pretty','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','includes','riskLevel','pageSize','args','\x20\x20global:\x20\x20','appcode','Invalid\x20value\x20for\x20\x22','value','List\x20current\x20config','7352198pEDxnR','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','8zuODmt','\x22.\x20Allowed:\x20','9215199wfnBEJ','set','length','validation','2201610pkqUue','boolean','trim','pageSize\x20must\x20be\x20a\x20positive\x20number','../../context.js','log','split','keys','global','stringify','48558dGkgAs','66310GJZnDi'];a21_0xdab2=function(){return _0x1222e6;};return a21_0xdab2();}function parseAliasAppcodeSetKey(_0x4e275f){const _0x1ad4fb=a21_0x4f18d4,_0x3654a4=_0x4e275f['split']('.');if(_0x3654a4[_0x1ad4fb(0x194)]!==0x3||_0x3654a4[0x0]!=='apps'||_0x3654a4[0x2]!==_0x1ad4fb(0x18a))return undefined;const _0x333f82=_0x3654a4[0x1]?.['trim']();return _0x333f82?_0x333f82:undefined;}function parseAliasDeleteKey(_0x4046c5){const _0x58477a=a21_0x4f18d4,_0x1507bd=_0x4046c5[_0x58477a(0x19c)]('.');if(_0x1507bd['length']===0x2&&_0x1507bd[0x0]===_0x58477a(0x1a5)){const _0x4c8a25=_0x1507bd[0x1]?.[_0x58477a(0x198)]();return _0x4c8a25?{'alias':_0x4c8a25}:undefined;}if(_0x1507bd[_0x58477a(0x194)]===0x3&&_0x1507bd[0x0]===_0x58477a(0x1a5)&&_0x1507bd[0x2]===_0x58477a(0x18a)){const _0x390565=_0x1507bd[0x1]?.[_0x58477a(0x198)]();return _0x390565?{'alias':_0x390565,'field':_0x58477a(0x18a)}:undefined;}return undefined;}function setLocalAppAlias(_0x38a945,_0x579a9a,_0x21a613){const _0x11cc15=a21_0x4f18d4,_0x4aa9d1=_0x38a945[_0x11cc15(0x1a5)]&&typeof _0x38a945[_0x11cc15(0x1a5)]===_0x11cc15(0x1ba)&&!Array['isArray'](_0x38a945[_0x11cc15(0x1a5)])?_0x38a945[_0x11cc15(0x1a5)]:{},_0x3a2a1d=_0x4aa9d1[_0x579a9a]&&typeof _0x4aa9d1[_0x579a9a]==='object'&&!Array[_0x11cc15(0x1b2)](_0x4aa9d1[_0x579a9a])?_0x4aa9d1[_0x579a9a]:{};_0x3a2a1d[_0x11cc15(0x18a)]=_0x21a613,_0x4aa9d1[_0x579a9a]=_0x3a2a1d,_0x38a945[_0x11cc15(0x1a5)]=_0x4aa9d1;}function deleteLocalAppAlias(_0x4c8fc2,_0x350787){const _0x4743e4=a21_0x4f18d4;if(!_0x4c8fc2[_0x4743e4(0x1a5)]||typeof _0x4c8fc2[_0x4743e4(0x1a5)]!=='object'||Array[_0x4743e4(0x1b2)](_0x4c8fc2[_0x4743e4(0x1a5)]))return![];const _0x2b80ba=_0x4c8fc2[_0x4743e4(0x1a5)],_0xbeba9e=_0x2b80ba[_0x350787[_0x4743e4(0x1a4)]];if(!_0xbeba9e||typeof _0xbeba9e!==_0x4743e4(0x1ba)||Array['isArray'](_0xbeba9e))return![];if(!_0x350787['field'])return delete _0x2b80ba[_0x350787[_0x4743e4(0x1a4)]],!![];if(!(_0x350787[_0x4743e4(0x1bf)]in _0xbeba9e))return![];return delete _0xbeba9e[_0x350787[_0x4743e4(0x1bf)]],Object[_0x4743e4(0x19d)](_0xbeba9e)[_0x4743e4(0x194)]===0x0&&delete _0x2b80ba[_0x350787[_0x4743e4(0x1a4)]],!![];}const listDef={'service':a21_0x4f18d4(0x1b7),'command':a21_0x4f18d4(0x17e),'description':a21_0x4f18d4(0x18d),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x5eedae){const _0xf71174=a21_0x4f18d4,{buildConfigFromFlags:_0x16d827}=await import(_0xf71174(0x19a)),_0x4f77bb=_0x16d827({}),_0xfa9b61=getProjectConfigPath(),_0x54b4d6=resolveWriteConfigPath('global');if(_0x5eedae['format']===_0xf71174(0x183))return{'ok':!![],'message':_0xf71174(0x1aa)+(JSON[_0xf71174(0x19f)](_0x4f77bb[_0xf71174(0x1b6)],null,0x2)+'\x0a\x0a')+'Config\x20files:\x0a'+(_0xf71174(0x1ad)+(_0xfa9b61??_0xf71174(0x180))+'\x0a')+(_0xf71174(0x189)+_0x54b4d6)};return{'ok':!![],'data':{'effective':_0x4f77bb[_0xf71174(0x1b6)],'configFiles':{'project':_0xfa9b61??null,'global':_0x54b4d6}}};}},getDef={'service':'config','command':'get','description':a21_0x4f18d4(0x1af),'risk':a21_0x4f18d4(0x181),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a21_0x4f18d4(0x1ac),'description':a21_0x4f18d4(0x18f),'required':!![]}],'flags':[],async 'execute'(_0x2e355d){const _0x9d2e03=a21_0x4f18d4,_0x2674e6=_0x2e355d[_0x9d2e03(0x188)][0x0];if(!_0x2674e6)throw CliErrors[_0x9d2e03(0x195)]('Missing\x20key\x20argument.',_0x9d2e03(0x1b0)+CLI_BIN_NAME+_0x9d2e03(0x1bd));const {buildConfigFromFlags:_0x1e521a}=await import('../../context.js'),{raw:_0xe49bf8}=_0x1e521a({});if(_0x2674e6[_0x9d2e03(0x185)]('.')){const _0x35ec32=_0x2674e6[_0x9d2e03(0x19c)]('.');let _0xecde87=_0xe49bf8;for(const _0x1a3ff9 of _0x35ec32){if(_0xecde87==null||typeof _0xecde87!==_0x9d2e03(0x1ba))throw CliErrors[_0x9d2e03(0x195)]('Key\x20not\x20found:\x20'+_0x2674e6);_0xecde87=_0xecde87[_0x1a3ff9];}if(_0xecde87===undefined)throw CliErrors[_0x9d2e03(0x195)](_0x9d2e03(0x1b1)+_0x2674e6);return console['log'](typeof _0xecde87===_0x9d2e03(0x1ba)?JSON[_0x9d2e03(0x19f)](_0xecde87,null,0x2):String(_0xecde87)),{'ok':!![]};}const _0x74f4cf=_0xe49bf8[_0x2674e6];if(_0x74f4cf===undefined)throw CliErrors[_0x9d2e03(0x195)](_0x9d2e03(0x1b1)+_0x2674e6);return console[_0x9d2e03(0x19b)](typeof _0x74f4cf===_0x9d2e03(0x1ba)?JSON[_0x9d2e03(0x19f)](_0x74f4cf,null,0x2):String(_0x74f4cf)),{'ok':!![]};}},setDef={'service':a21_0x4f18d4(0x1b7),'command':a21_0x4f18d4(0x193),'description':'Set\x20a\x20config\x20value','risk':a21_0x4f18d4(0x17f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a21_0x4f18d4(0x18c),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x41a30f){const _0x3a20d9=a21_0x4f18d4,_0x131d81=_0x41a30f[_0x3a20d9(0x188)][0x0],_0x570274=_0x41a30f[_0x3a20d9(0x188)][0x1];if(!_0x131d81||_0x570274===undefined)throw CliErrors[_0x3a20d9(0x195)](_0x3a20d9(0x17c),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x131d81]&&!ENUM_KEYS[_0x131d81][_0x3a20d9(0x185)](_0x570274))throw CliErrors[_0x3a20d9(0x195)](_0x3a20d9(0x18b)+_0x131d81+_0x3a20d9(0x191)+ENUM_KEYS[_0x131d81]['join'](',\x20'));if(_0x131d81===_0x3a20d9(0x186))throw CliErrors[_0x3a20d9(0x195)](_0x3a20d9(0x184));if(_0x131d81===_0x3a20d9(0x187)){const _0xdb9153=Number(_0x570274);if(isNaN(_0xdb9153)||_0xdb9153<=0x0)throw CliErrors[_0x3a20d9(0x195)](_0x3a20d9(0x199));}const _0x525c7d=resolveWriteScope({'explicitGlobal':_0x41a30f[_0x3a20d9(0x182)](_0x3a20d9(0x19e)),'policy':_0x3a20d9(0x1a8)}),_0x19c9ae=toScopeFlags(_0x525c7d),_0x325463=readScopedConfig(_0x19c9ae),_0x274f26=parseAliasAppcodeSetKey(_0x131d81);if(!_0x274f26&&!isTopLevelConfigKey(_0x131d81))throw CliErrors[_0x3a20d9(0x195)](_0x3a20d9(0x1bb)+_0x131d81+'\x22\x20is\x20not\x20settable.',_0x3a20d9(0x1b3)+getTopLevelConfigKeySummary()+_0x3a20d9(0x1bc));return _0x274f26?setLocalAppAlias(_0x325463,_0x274f26,_0x570274):_0x325463[_0x131d81]=_0x131d81===_0x3a20d9(0x187)?Number(_0x570274):_0x570274,console['log'](_0x3a20d9(0x1b9)+_0x131d81+'`\x20=\x20\x22'+_0x570274+'\x22'+(_0x525c7d===_0x3a20d9(0x19e)?_0x3a20d9(0x1be):'')),writeScopedConfig(_0x325463,_0x19c9ae),{'ok':!![]};}},deleteDef={'service':a21_0x4f18d4(0x1b7),'command':a21_0x4f18d4(0x17d),'description':a21_0x4f18d4(0x1a2),'risk':a21_0x4f18d4(0x17f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a21_0x4f18d4(0x1ac),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x4c0071){const _0x1acc3f=a21_0x4f18d4,_0x44fbc7=_0x4c0071[_0x1acc3f(0x188)][0x0];if(!_0x44fbc7)throw CliErrors[_0x1acc3f(0x195)]('Missing\x20key\x20argument.',_0x1acc3f(0x1b0)+CLI_BIN_NAME+_0x1acc3f(0x1ab));const _0x5744c2=resolveWriteScope({'explicitGlobal':_0x4c0071[_0x1acc3f(0x182)](_0x1acc3f(0x19e)),'policy':'project-or-global-explicit'}),_0x456bc0=toScopeFlags(_0x5744c2),_0x225365=readScopedConfig(_0x456bc0),_0x679311=parseAliasDeleteKey(_0x44fbc7);if(_0x679311){if(!deleteLocalAppAlias(_0x225365,_0x679311))throw CliErrors[_0x1acc3f(0x195)](_0x1acc3f(0x1b1)+_0x44fbc7);return console[_0x1acc3f(0x19b)](_0x1acc3f(0x1a7)+_0x44fbc7+'`'+(_0x5744c2===_0x1acc3f(0x19e)?_0x1acc3f(0x1be):'')),writeScopedConfig(_0x225365,_0x456bc0),{'ok':!![]};}if(_0x225365[_0x44fbc7]===undefined)throw CliErrors[_0x1acc3f(0x195)](_0x1acc3f(0x1a9)+_0x44fbc7+_0x1acc3f(0x1a3));return delete _0x225365[_0x44fbc7],console[_0x1acc3f(0x19b)]('Deleted\x20`'+_0x44fbc7+'`'+(_0x5744c2===_0x1acc3f(0x19e)?_0x1acc3f(0x1be):'')),writeScopedConfig(_0x225365,_0x456bc0),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
1
|
+
const a21_0x5e2f06=a21_0x3fd3;(function(_0x4c23f6,_0xa5660e){const _0x5474fb=a21_0x3fd3,_0x2da99a=_0x4c23f6();while(!![]){try{const _0x289069=-parseInt(_0x5474fb(0x166))/0x1+parseInt(_0x5474fb(0x142))/0x2*(-parseInt(_0x5474fb(0x150))/0x3)+parseInt(_0x5474fb(0x16a))/0x4+-parseInt(_0x5474fb(0x13e))/0x5+-parseInt(_0x5474fb(0x161))/0x6*(-parseInt(_0x5474fb(0x12f))/0x7)+-parseInt(_0x5474fb(0x168))/0x8+-parseInt(_0x5474fb(0x130))/0x9*(-parseInt(_0x5474fb(0x154))/0xa);if(_0x289069===_0xa5660e)break;else _0x2da99a['push'](_0x2da99a['shift']());}catch(_0xb9631){_0x2da99a['push'](_0x2da99a['shift']());}}}(a21_0x530c,0x3fd29));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':'global','type':a21_0x5e2f06(0x14e),'description':a21_0x5e2f06(0x160),'default':![]};function parseAliasAppcodeSetKey(_0x133423){const _0x38a4e0=a21_0x5e2f06,_0xdcbe26=_0x133423[_0x38a4e0(0x14c)]('.');if(_0xdcbe26[_0x38a4e0(0x138)]!==0x3||_0xdcbe26[0x0]!==_0x38a4e0(0x169)||_0xdcbe26[0x2]!=='appcode')return undefined;const _0x56ec33=_0xdcbe26[0x1]?.[_0x38a4e0(0x141)]();return _0x56ec33?_0x56ec33:undefined;}function parseAliasDeleteKey(_0xea9565){const _0x4f098e=a21_0x5e2f06,_0x232411=_0xea9565[_0x4f098e(0x14c)]('.');if(_0x232411[_0x4f098e(0x138)]===0x2&&_0x232411[0x0]===_0x4f098e(0x169)){const _0x5a411b=_0x232411[0x1]?.[_0x4f098e(0x141)]();return _0x5a411b?{'alias':_0x5a411b}:undefined;}if(_0x232411[_0x4f098e(0x138)]===0x3&&_0x232411[0x0]===_0x4f098e(0x169)&&_0x232411[0x2]===_0x4f098e(0x143)){const _0x4835eb=_0x232411[0x1]?.[_0x4f098e(0x141)]();return _0x4835eb?{'alias':_0x4835eb,'field':_0x4f098e(0x143)}:undefined;}return undefined;}function setLocalAppAlias(_0x56516b,_0x2bae5f,_0x43679e){const _0x13842d=a21_0x5e2f06,_0x5dad09=_0x56516b[_0x13842d(0x169)]&&typeof _0x56516b['apps']===_0x13842d(0x163)&&!Array[_0x13842d(0x16b)](_0x56516b[_0x13842d(0x169)])?_0x56516b[_0x13842d(0x169)]:{},_0x4839a4=_0x5dad09[_0x2bae5f]&&typeof _0x5dad09[_0x2bae5f]===_0x13842d(0x163)&&!Array[_0x13842d(0x16b)](_0x5dad09[_0x2bae5f])?_0x5dad09[_0x2bae5f]:{};_0x4839a4[_0x13842d(0x143)]=_0x43679e,_0x5dad09[_0x2bae5f]=_0x4839a4,_0x56516b['apps']=_0x5dad09;}function deleteLocalAppAlias(_0x2921f1,_0x5c3149){const _0x2c7188=a21_0x5e2f06;if(!_0x2921f1[_0x2c7188(0x169)]||typeof _0x2921f1['apps']!=='object'||Array['isArray'](_0x2921f1[_0x2c7188(0x169)]))return![];const _0x9fbf47=_0x2921f1[_0x2c7188(0x169)],_0x2fb211=_0x9fbf47[_0x5c3149[_0x2c7188(0x15a)]];if(!_0x2fb211||typeof _0x2fb211!==_0x2c7188(0x163)||Array[_0x2c7188(0x16b)](_0x2fb211))return![];if(!_0x5c3149[_0x2c7188(0x14a)])return delete _0x9fbf47[_0x5c3149[_0x2c7188(0x15a)]],!![];if(!(_0x5c3149[_0x2c7188(0x14a)]in _0x2fb211))return![];return delete _0x2fb211[_0x5c3149[_0x2c7188(0x14a)]],Object[_0x2c7188(0x137)](_0x2fb211)['length']===0x0&&delete _0x9fbf47[_0x5c3149[_0x2c7188(0x15a)]],!![];}function a21_0x3fd3(_0x2339fd,_0x2b1786){_0x2339fd=_0x2339fd-0x12b;const _0x530c27=a21_0x530c();let _0x3fd3c8=_0x530c27[_0x2339fd];return _0x3fd3c8;}const listDef={'service':a21_0x5e2f06(0x16c),'command':'list','description':a21_0x5e2f06(0x15d),'risk':a21_0x5e2f06(0x144),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x35a6f6){const _0x25f530=a21_0x5e2f06,{buildConfigFromFlags:_0x29da3e}=await import(_0x25f530(0x15e)),_0x458df5=_0x29da3e({}),_0x37b4f8=getProjectConfigPath(),_0x537bc7=resolveWriteConfigPath(_0x25f530(0x156));if(_0x35a6f6[_0x25f530(0x155)]===_0x25f530(0x139))return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON[_0x25f530(0x14b)](_0x458df5[_0x25f530(0x158)],null,0x2)+'\x0a\x0a')+'Config\x20files:\x0a'+('\x20\x20project:\x20'+(_0x37b4f8??'(none)')+'\x0a')+(_0x25f530(0x13a)+_0x537bc7)};return{'ok':!![],'data':{'effective':_0x458df5[_0x25f530(0x158)],'configFiles':{'project':_0x37b4f8??null,'global':_0x537bc7}}};}},getDef={'service':a21_0x5e2f06(0x16c),'command':a21_0x5e2f06(0x14d),'description':a21_0x5e2f06(0x13b),'risk':a21_0x5e2f06(0x144),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a21_0x5e2f06(0x15c),'description':a21_0x5e2f06(0x132),'required':!![]}],'flags':[],async 'execute'(_0x4778d7){const _0x1045bf=a21_0x5e2f06,_0x47f020=_0x4778d7[_0x1045bf(0x157)][0x0];if(!_0x47f020)throw CliErrors['validation'](_0x1045bf(0x140),'Usage:\x20'+CLI_BIN_NAME+_0x1045bf(0x13f));const {buildConfigFromFlags:_0x447bbd}=await import(_0x1045bf(0x15e)),{raw:_0x210f78}=_0x447bbd({});if(_0x47f020['includes']('.')){const _0x56dade=_0x47f020[_0x1045bf(0x14c)]('.');let _0x5eba0e=_0x210f78;for(const _0x5ae24c of _0x56dade){if(_0x5eba0e==null||typeof _0x5eba0e!==_0x1045bf(0x163))throw CliErrors[_0x1045bf(0x145)]('Key\x20not\x20found:\x20'+_0x47f020);_0x5eba0e=_0x5eba0e[_0x5ae24c];}if(_0x5eba0e===undefined)throw CliErrors[_0x1045bf(0x145)]('Key\x20not\x20found:\x20'+_0x47f020);return console[_0x1045bf(0x165)](typeof _0x5eba0e===_0x1045bf(0x163)?JSON[_0x1045bf(0x14b)](_0x5eba0e,null,0x2):String(_0x5eba0e)),{'ok':!![]};}const _0x5cb16f=_0x210f78[_0x47f020];if(_0x5cb16f===undefined)throw CliErrors[_0x1045bf(0x145)](_0x1045bf(0x134)+_0x47f020);return console[_0x1045bf(0x165)](typeof _0x5cb16f===_0x1045bf(0x163)?JSON[_0x1045bf(0x14b)](_0x5cb16f,null,0x2):String(_0x5cb16f)),{'ok':!![]};}},setDef={'service':a21_0x5e2f06(0x16c),'command':a21_0x5e2f06(0x146),'description':a21_0x5e2f06(0x159),'risk':a21_0x5e2f06(0x151),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a21_0x5e2f06(0x12b),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x61029e){const _0x60ab58=a21_0x5e2f06,_0x23841a=_0x61029e[_0x60ab58(0x157)][0x0],_0x4c509a=_0x61029e[_0x60ab58(0x157)][0x1];if(!_0x23841a||_0x4c509a===undefined)throw CliErrors['validation'](_0x60ab58(0x133),_0x60ab58(0x147)+CLI_BIN_NAME+_0x60ab58(0x148));if(ENUM_KEYS[_0x23841a]&&!ENUM_KEYS[_0x23841a][_0x60ab58(0x15f)](_0x4c509a))throw CliErrors[_0x60ab58(0x145)](_0x60ab58(0x164)+_0x23841a+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x23841a]['join'](',\x20'));if(_0x23841a===_0x60ab58(0x149))throw CliErrors[_0x60ab58(0x145)](_0x60ab58(0x12d));if(_0x23841a===_0x60ab58(0x162)){const _0xb7e5=Number(_0x4c509a);if(isNaN(_0xb7e5)||_0xb7e5<=0x0)throw CliErrors[_0x60ab58(0x145)]('pageSize\x20must\x20be\x20a\x20positive\x20number');}const _0x2f0a93=resolveWriteScope({'explicitGlobal':_0x61029e[_0x60ab58(0x15b)](_0x60ab58(0x156)),'policy':_0x60ab58(0x136)}),_0x1e8946=toScopeFlags(_0x2f0a93),_0x205def=readScopedConfig(_0x1e8946),_0x14b3bd=parseAliasAppcodeSetKey(_0x23841a);if(!_0x14b3bd&&!isTopLevelConfigKey(_0x23841a))throw CliErrors[_0x60ab58(0x145)](_0x60ab58(0x13d)+_0x23841a+'\x22\x20is\x20not\x20settable.',_0x60ab58(0x152)+getTopLevelConfigKeySummary()+_0x60ab58(0x153));return _0x14b3bd?setLocalAppAlias(_0x205def,_0x14b3bd,_0x4c509a):_0x205def[_0x23841a]=_0x23841a==='pageSize'?Number(_0x4c509a):_0x4c509a,console['log'](_0x60ab58(0x131)+_0x23841a+'`\x20=\x20\x22'+_0x4c509a+'\x22'+(_0x2f0a93===_0x60ab58(0x156)?_0x60ab58(0x14f):'')),writeScopedConfig(_0x205def,_0x1e8946),{'ok':!![]};}},deleteDef={'service':a21_0x5e2f06(0x16c),'command':a21_0x5e2f06(0x135),'description':a21_0x5e2f06(0x12e),'risk':a21_0x5e2f06(0x151),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x9127a){const _0x2e2271=a21_0x5e2f06,_0x59672a=_0x9127a['args'][0x0];if(!_0x59672a)throw CliErrors[_0x2e2271(0x145)](_0x2e2271(0x140),_0x2e2271(0x147)+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x5e2f7a=resolveWriteScope({'explicitGlobal':_0x9127a[_0x2e2271(0x15b)]('global'),'policy':_0x2e2271(0x136)}),_0x4c5449=toScopeFlags(_0x5e2f7a),_0x25db9c=readScopedConfig(_0x4c5449),_0x434863=parseAliasDeleteKey(_0x59672a);if(_0x434863){if(!deleteLocalAppAlias(_0x25db9c,_0x434863))throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x59672a);return console['log'](_0x2e2271(0x13c)+_0x59672a+'`'+(_0x5e2f7a===_0x2e2271(0x156)?'\x20(global)':'')),writeScopedConfig(_0x25db9c,_0x4c5449),{'ok':!![]};}if(_0x25db9c[_0x59672a]===undefined)throw CliErrors[_0x2e2271(0x145)](_0x2e2271(0x12c)+_0x59672a+_0x2e2271(0x167));return delete _0x25db9c[_0x59672a],console[_0x2e2271(0x165)]('Deleted\x20`'+_0x59672a+'`'+(_0x5e2f7a===_0x2e2271(0x156)?'\x20(global)':'')),writeScopedConfig(_0x25db9c,_0x4c5449),{'ok':!![]};}};function a21_0x530c(){const _0x406a8f=['get','boolean','\x20(global)','14583SmEinZ','write','Settable\x20keys:\x20',';\x20apps.<alias>.appcode','10cbfrFF','format','global','args','raw','Set\x20a\x20config\x20value','alias','bool','key','List\x20current\x20config','../../context.js','includes','Write\x20to\x20global\x20config','24270MuLoMA','pageSize','object','Invalid\x20value\x20for\x20\x22','log','480821THTKcw','\x22\x20not\x20found\x20at\x20top\x20level.','144624WNDnHZ','apps','1355948RyhUwP','isArray','config','value','Key\x20\x22','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Delete\x20a\x20config\x20value','287tjaIsh','4982409OZYege','Set\x20`','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','Missing\x20key\x20or\x20value.','Key\x20not\x20found:\x20','delete','project-or-global-explicit','keys','length','pretty','\x20\x20global:\x20\x20','Get\x20a\x20config\x20value','Deleted\x20`','Top-level\x20key\x20\x22','396860nSUoBd','\x20config\x20get\x20<key>','Missing\x20key\x20argument.','trim','90sDoSQF','appcode','read','validation','set','Usage:\x20','\x20config\x20set\x20<key>\x20<value>\x20[--global]','riskLevel','field','stringify','split'];a21_0x530c=function(){return _0x406a8f;};return a21_0x530c();}export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5b5fd4,_0x454c2f){var _0x1b902f=a22_0x1717,_0x369524=_0x5b5fd4();while(!![]){try{var _0x4c8e6c=-parseInt(_0x1b902f(0x9f))/0x1+-parseInt(_0x1b902f(0x95))/0x2+-parseInt(_0x1b902f(0x98))/0x3*(parseInt(_0x1b902f(0x99))/0x4)+parseInt(_0x1b902f(0x97))/0x5*(parseInt(_0x1b902f(0x96))/0x6)+-parseInt(_0x1b902f(0x9e))/0x7*(-parseInt(_0x1b902f(0x9b))/0x8)+-parseInt(_0x1b902f(0x9a))/0x9*(parseInt(_0x1b902f(0x9d))/0xa)+parseInt(_0x1b902f(0x9c))/0xb;if(_0x4c8e6c===_0x454c2f)break;else _0x369524['push'](_0x369524['shift']());}catch(_0xa63af){_0x369524['push'](_0x369524['shift']());}}}(a22_0x2613,0x7118b));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};function a22_0x1717(_0x2b6d7c,_0x34233c){_0x2b6d7c=_0x2b6d7c-0x95;var _0x26132d=a22_0x2613();var _0x17173f=_0x26132d[_0x2b6d7c];return _0x17173f;}export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';function a22_0x2613(){var _0x1589a4=['777178NSzjEB','30ZnUBth','692105JUIeLB','1806666qmZixr','4KZiMsx','4905828xZYCjm','264kdofIM','14900853galswm','10nOJpYn','102403PultXX','530339zlepDf'];a22_0x2613=function(){return _0x1589a4;};return a22_0x2613();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a23_0x49df89=a23_0x5345;(function(_0x89e7b8,_0xfe8599){const _0x658cc9=a23_0x5345,_0x4037ed=_0x89e7b8();while(!![]){try{const _0x769d3b=parseInt(_0x658cc9(0xbe))/0x1+parseInt(_0x658cc9(0xb2))/0x2+-parseInt(_0x658cc9(0x98))/0x3+-parseInt(_0x658cc9(0xa0))/0x4+parseInt(_0x658cc9(0x88))/0x5+-parseInt(_0x658cc9(0xbb))/0x6*(-parseInt(_0x658cc9(0xc0))/0x7)+-parseInt(_0x658cc9(0x80))/0x8*(parseInt(_0x658cc9(0xac))/0x9);if(_0x769d3b===_0xfe8599)break;else _0x4037ed['push'](_0x4037ed['shift']());}catch(_0x5c2231){_0x4037ed['push'](_0x4037ed['shift']());}}}(a23_0x1333,0x95fa5));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a23_0x5345(_0x12f74f,_0x205d93){_0x12f74f=_0x12f74f-0x71;const _0x1333d2=a23_0x1333();let _0x5345aa=_0x1333d2[_0x12f74f];return _0x5345aa;}import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';function a23_0x1333(){const _0x1eca2e=['\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','command','1433020nEuQdr','join','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','params','str','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]','\x20\x20LOGICAL\x20COMBINATORS','\x20completed\x20in\x20','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','aggregate','522PJkrqL','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','map','read','data\x20','high-risk-write','2247842TElyxk','\x20\x20EXAMPLES','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','risk','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','/api/{appCode}/','4105194GboEsy','now','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','438768mMGMCW','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','7qRadfD','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','description','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','\x20\x20AGGREGATE\x20TYPES','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','write','batchCreate','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','helpExtra','\x20\x20PARAMS\x20STRUCTURE','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','paramsRequired','141976HxEuYG','build','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','getOne','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','\x20\x20WHERE\x20OPERATORS','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','1908465oZvaOU','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20on\x20dataset\x20','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','filter','operation','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20PAGINATION','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','code','paramsHint','update','delete','POST','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','1880073aYLmUD','data','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','Get\x20a\x20single\x20record\x20by\x20ID'];a23_0x1333=function(){return _0x1eca2e;};return a23_0x1333();}const specs=[{'command':a23_0x49df89(0x8d),'operation':'filter','risk':'read','paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a23_0x49df89(0x89)+'Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':[a23_0x49df89(0x86),a23_0x49df89(0x85),a23_0x49df89(0x91),a23_0x49df89(0xc2),a23_0x49df89(0xb8),'\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}',a23_0x49df89(0x9e),'\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}',a23_0x49df89(0x7e),'\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','',a23_0x49df89(0xa8),'\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}',a23_0x49df89(0xbf),'',a23_0x49df89(0x74),a23_0x49df89(0xb7),a23_0x49df89(0xaa),a23_0x49df89(0x8b),a23_0x49df89(0xb9),a23_0x49df89(0x9a),'',a23_0x49df89(0x90),a23_0x49df89(0xa6),a23_0x49df89(0xb5),a23_0x49df89(0x75)][a23_0x49df89(0xa1)]('\x0a')},{'command':a23_0x49df89(0x84),'operation':'getOne','risk':'read','paramsRequired':!![],'description':a23_0x49df89(0x9c),'paramsHint':a23_0x49df89(0x7d)},{'command':'create','operation':'create','risk':'write','paramsRequired':!![],'description':a23_0x49df89(0x71),'paramsHint':'JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27'},{'command':a23_0x49df89(0x79),'operation':'batchCreate','risk':a23_0x49df89(0x78),'paramsRequired':!![],'description':a23_0x49df89(0xc1),'paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':a23_0x49df89(0x94),'operation':a23_0x49df89(0x94),'risk':a23_0x49df89(0x78),'paramsRequired':!![],'description':'Update\x20an\x20existing\x20record','paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27'},{'command':a23_0x49df89(0x95),'operation':a23_0x49df89(0x95),'risk':a23_0x49df89(0xb1),'paramsRequired':!![],'description':a23_0x49df89(0x97),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a23_0x49df89(0xab),'operation':a23_0x49df89(0xab),'risk':a23_0x49df89(0xaf),'paramsRequired':![],'description':a23_0x49df89(0x87),'paramsHint':a23_0x49df89(0x72)+a23_0x49df89(0xbd),'helpExtra':[a23_0x49df89(0x76),a23_0x49df89(0x8c),a23_0x49df89(0x7a),a23_0x49df89(0xad),'\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}',a23_0x49df89(0x82),a23_0x49df89(0xa2),'\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','',a23_0x49df89(0x7c),a23_0x49df89(0x8f),a23_0x49df89(0x9d),a23_0x49df89(0xb4),'\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a23_0x49df89(0xa7),a23_0x49df89(0x83),'',a23_0x49df89(0xb3),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a23_0x49df89(0x77),'',a23_0x49df89(0x9b),'\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','',a23_0x49df89(0xa3)][a23_0x49df89(0xa1)]('\x0a')}];function makeDataCommand(_0x1ecb0c){const _0x6dbe7=a23_0x49df89,_0x20441c=_0x6dbe7(0xb0)+_0x1ecb0c[_0x6dbe7(0x9f)],_0x26ebdf={'service':_0x6dbe7(0x99),'command':_0x1ecb0c['command'],'description':_0x1ecb0c[_0x6dbe7(0x73)],'risk':_0x1ecb0c[_0x6dbe7(0xb6)],'helpExtra':_0x1ecb0c[_0x6dbe7(0x7b)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x1ecb0c[_0x6dbe7(0x93)]}],'validate':async _0x5af84a=>{const _0x123c17=_0x6dbe7;_0x1ecb0c[_0x123c17(0x7f)]&&requireAnyOf(_0x5af84a,[_0x123c17(0xa4)],_0x20441c),_0x1ecb0c['operation']===_0x123c17(0x79)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5af84a[_0x123c17(0xa5)]('params')));},async 'execute'(_0x40dbf3){const _0x2ba41e=_0x6dbe7,_0x4b67cf=_0x40dbf3[_0x2ba41e(0xa5)](_0x2ba41e(0x92)),_0x5527a5=_0x1ecb0c[_0x2ba41e(0x8e)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x40dbf3[_0x2ba41e(0xa5)](_0x2ba41e(0xa4)))):parseJsonParams(_0x40dbf3['str'](_0x2ba41e(0xa4)))??{},_0x50ef01=Date[_0x2ba41e(0xbc)](),_0x419d4e=await executeData(_0x4b67cf,_0x1ecb0c[_0x2ba41e(0x8e)],_0x5527a5),_0x41c9bc=Date[_0x2ba41e(0xbc)]()-_0x50ef01;return{'ok':!![],'data':{'result':_0x419d4e,'elapsed':_0x41c9bc},'message':_0x2ba41e(0xb0)+_0x1ecb0c[_0x2ba41e(0x9f)]+_0x2ba41e(0xa9)+_0x41c9bc+'ms'};}};return _0x1ecb0c['risk']!==_0x6dbe7(0xaf)&&(_0x26ebdf['dryRun']=async _0x25d2aa=>{const _0xe92f94=_0x6dbe7,_0x2bbd8d=_0x25d2aa[_0xe92f94(0xa5)]('code'),_0x5376ca=_0x1ecb0c['operation']===_0xe92f94(0x79)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x25d2aa['str'](_0xe92f94(0xa4)))):parseJsonParams(_0x25d2aa[_0xe92f94(0xa5)](_0xe92f94(0xa4)))??{};return dryRun(_0xe92f94(0x96),_0xe92f94(0xba)+_0x2bbd8d+'/'+_0x1ecb0c[_0xe92f94(0x8e)])['body'](_0x5376ca)[_0xe92f94(0x73)]('Preview:\x20data\x20'+_0x1ecb0c['command']+_0xe92f94(0x8a)+_0x2bbd8d)[_0xe92f94(0x81)]();}),_0x26ebdf;}export const dataDefinitions=specs[a23_0x49df89(0xae)](makeDataCommand);
|
|
1
|
+
const a23_0x17f698=a23_0x4284;(function(_0x4fffc9,_0x5089aa){const _0x74310e=a23_0x4284,_0x599721=_0x4fffc9();while(!![]){try{const _0x5500f4=-parseInt(_0x74310e(0xc3))/0x1*(parseInt(_0x74310e(0xfb))/0x2)+-parseInt(_0x74310e(0xdd))/0x3*(parseInt(_0x74310e(0xd3))/0x4)+parseInt(_0x74310e(0xae))/0x5+-parseInt(_0x74310e(0xed))/0x6+parseInt(_0x74310e(0xca))/0x7+parseInt(_0x74310e(0xe9))/0x8+-parseInt(_0x74310e(0xc0))/0x9*(-parseInt(_0x74310e(0xd6))/0xa);if(_0x5500f4===_0x5089aa)break;else _0x599721['push'](_0x599721['shift']());}catch(_0x457efb){_0x599721['push'](_0x599721['shift']());}}}(a23_0x4654,0x4270c));function a23_0x4654(){const _0xfe0e69=['\x20\x20PARAMS\x20STRUCTURE','data','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','risk','/api/{appCode}/','98036bsirBg','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','paramsHint','10ckvDUl','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','Preview:\x20data\x20','21yAPzxP','\x20on\x20dataset\x20','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','update','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','data\x20','build','Update\x20an\x20existing\x20record','batchCreate','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','2742472UkZWdb','code','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','1649028nJldFr','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','POST','read','now','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','map','filter','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','helpExtra','\x20completed\x20in\x20','operation','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','\x20\x20PAGINATION','2AyTXEj','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','str','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\x20\x20AGGREGATE\x20TYPES','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','1086020pTFCdI','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','body','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','params','aggregate','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','create','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','Get\x20a\x20single\x20record\x20by\x20ID','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','write','description','command','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','4080438bPfuJR','join','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]','426638AQayAH','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20EXAMPLES','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','922488KnUCqq','dryRun','delete','getOne'];a23_0x4654=function(){return _0xfe0e69;};return a23_0x4654();}import{executeData}from'../../core/sdk-client.js';function a23_0x4284(_0x7dc9bb,_0xdaece4){_0x7dc9bb=_0x7dc9bb-0xa3;const _0x465456=a23_0x4654();let _0x4284ce=_0x465456[_0x7dc9bb];return _0x4284ce;}import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':'filter','operation':a23_0x17f698(0xf4),'risk':a23_0x17f698(0xf0),'paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a23_0x17f698(0xb8)+a23_0x17f698(0xc4),'helpExtra':['\x20\x20WHERE\x20OPERATORS','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}',a23_0x17f698(0xc8),a23_0x17f698(0xf5),'\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}',a23_0x17f698(0xa8),'\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}',a23_0x17f698(0xd9),a23_0x17f698(0xda),a23_0x17f698(0xc5),a23_0x17f698(0xba),'',a23_0x17f698(0xd7),a23_0x17f698(0xb5),a23_0x17f698(0xeb),'',a23_0x17f698(0xc9),a23_0x17f698(0xa7),a23_0x17f698(0xec),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]',a23_0x17f698(0xd4),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a23_0x17f698(0xfa),a23_0x17f698(0xdf),a23_0x17f698(0xd8),a23_0x17f698(0xa5)][a23_0x17f698(0xc1)]('\x0a')},{'command':a23_0x17f698(0xcd),'operation':a23_0x17f698(0xcd),'risk':'read','paramsRequired':!![],'description':a23_0x17f698(0xb9),'paramsHint':a23_0x17f698(0xc6)},{'command':'create','operation':a23_0x17f698(0xb7),'risk':a23_0x17f698(0xbb),'paramsRequired':!![],'description':'Create\x20a\x20new\x20record\x20in\x20a\x20dataset','paramsHint':a23_0x17f698(0xf2)},{'command':'batchCreate','operation':'batchCreate','risk':'write','paramsRequired':!![],'description':a23_0x17f698(0xab),'paramsHint':a23_0x17f698(0xa4)},{'command':'update','operation':a23_0x17f698(0xe1),'risk':a23_0x17f698(0xbb),'paramsRequired':!![],'description':a23_0x17f698(0xe6),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27'},{'command':'delete','operation':a23_0x17f698(0xcc),'risk':'high-risk-write','paramsRequired':!![],'description':a23_0x17f698(0xa6),'paramsHint':a23_0x17f698(0xc6)},{'command':a23_0x17f698(0xb3),'operation':a23_0x17f698(0xb3),'risk':'read','paramsRequired':![],'description':a23_0x17f698(0xdb),'paramsHint':a23_0x17f698(0xe8)+a23_0x17f698(0xa3),'helpExtra':[a23_0x17f698(0xac),a23_0x17f698(0xe0),a23_0x17f698(0xe3),a23_0x17f698(0xb4),a23_0x17f698(0xe2),a23_0x17f698(0xaf),a23_0x17f698(0xbe),a23_0x17f698(0xf9),'',a23_0x17f698(0xce),a23_0x17f698(0xad),a23_0x17f698(0xa9),a23_0x17f698(0xb6),a23_0x17f698(0xee),a23_0x17f698(0xc2),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','',a23_0x17f698(0xc7),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a23_0x17f698(0xbf),'','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter',a23_0x17f698(0xd0),'',a23_0x17f698(0xb1)]['join']('\x0a')}];function makeDataCommand(_0x27e97e){const _0x5aff44=a23_0x17f698,_0xb974c6=_0x5aff44(0xe4)+_0x27e97e[_0x5aff44(0xbd)],_0x506a86={'service':_0x5aff44(0xcf),'command':_0x27e97e[_0x5aff44(0xbd)],'description':_0x27e97e[_0x5aff44(0xbc)],'risk':_0x27e97e[_0x5aff44(0xd1)],'helpExtra':_0x27e97e[_0x5aff44(0xf6)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x27e97e[_0x5aff44(0xd5)]}],'validate':async _0x582706=>{const _0xa8df77=_0x5aff44;_0x27e97e['paramsRequired']&&requireAnyOf(_0x582706,[_0xa8df77(0xb2)],_0xb974c6),_0x27e97e[_0xa8df77(0xf8)]===_0xa8df77(0xe7)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x582706['str'](_0xa8df77(0xb2))));},async 'execute'(_0x809e7c){const _0x5a1c87=_0x5aff44,_0x1ead9b=_0x809e7c[_0x5a1c87(0xaa)](_0x5a1c87(0xea)),_0x336523=_0x27e97e[_0x5a1c87(0xf8)]===_0x5a1c87(0xe7)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x809e7c[_0x5a1c87(0xaa)](_0x5a1c87(0xb2)))):parseJsonParams(_0x809e7c[_0x5a1c87(0xaa)](_0x5a1c87(0xb2)))??{},_0x1b0e6c=Date[_0x5a1c87(0xf1)](),_0x4b4a72=await executeData(_0x1ead9b,_0x27e97e[_0x5a1c87(0xf8)],_0x336523),_0x1af27f=Date[_0x5a1c87(0xf1)]()-_0x1b0e6c;return{'ok':!![],'data':{'result':_0x4b4a72,'elapsed':_0x1af27f},'message':_0x5a1c87(0xe4)+_0x27e97e[_0x5a1c87(0xbd)]+_0x5a1c87(0xf7)+_0x1af27f+'ms'};}};return _0x27e97e[_0x5aff44(0xd1)]!==_0x5aff44(0xf0)&&(_0x506a86[_0x5aff44(0xcb)]=async _0x437ace=>{const _0x33a8ac=_0x5aff44,_0x2f1901=_0x437ace['str'](_0x33a8ac(0xea)),_0x174c26=_0x27e97e['operation']==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x437ace['str'](_0x33a8ac(0xb2)))):parseJsonParams(_0x437ace['str']('params'))??{};return dryRun(_0x33a8ac(0xef),_0x33a8ac(0xd2)+_0x2f1901+'/'+_0x27e97e['operation'])[_0x33a8ac(0xb0)](_0x174c26)['description'](_0x33a8ac(0xdc)+_0x27e97e[_0x33a8ac(0xbd)]+_0x33a8ac(0xde)+_0x2f1901)[_0x33a8ac(0xe5)]();}),_0x506a86;}export const dataDefinitions=specs[a23_0x17f698(0xf3)](makeDataCommand);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a24_0x501b47=a24_0x4bbf;(function(_0x36b7d6,_0x4aafcd){const _0x380748=a24_0x4bbf,_0x1c835d=_0x36b7d6();while(!![]){try{const _0x39364e=parseInt(_0x380748(0x1b6))/0x1+-parseInt(_0x380748(0x194))/0x2+parseInt(_0x380748(0x1c1))/0x3+parseInt(_0x380748(0x1cd))/0x4+parseInt(_0x380748(0x1d0))/0x5*(-parseInt(_0x380748(0x1ce))/0x6)+parseInt(_0x380748(0x1c8))/0x7*(parseInt(_0x380748(0x1b9))/0x8)+parseInt(_0x380748(0x1d4))/0x9*(-parseInt(_0x380748(0x19e))/0xa);if(_0x39364e===_0x4aafcd)break;else _0x1c835d['push'](_0x1c835d['shift']());}catch(_0x39ba65){_0x1c835d['push'](_0x1c835d['shift']());}}}(a24_0x5355,0x3b850));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x29d6a2){const _0x4beb6a=a24_0x4bbf;if(_0x29d6a2['deleted'])return null;const _0x44261b=Boolean(_0x29d6a2[_0x4beb6a(0x1bd)]!==undefined||_0x29d6a2[_0x4beb6a(0x1a6)]!==undefined);let _0x3fada0={};if(!_0x44261b&&typeof _0x29d6a2[_0x4beb6a(0x1d8)]==='string')try{_0x3fada0=JSON['parse'](_0x29d6a2[_0x4beb6a(0x1d8)]);}catch{}const _0x1a5055=_0x44261b?_0x29d6a2[_0x4beb6a(0x1d2)]:_0x29d6a2['code'],_0x520644=_0x44261b?_0x29d6a2[_0x4beb6a(0x1bd)]:_0x29d6a2[_0x4beb6a(0x1d2)],_0x18d58f=_0x44261b?_0x29d6a2['doType']:_0x29d6a2['type']||_0x29d6a2[_0x4beb6a(0x193)],_0x42358c=_0x44261b?_0x29d6a2[_0x4beb6a(0x19f)]===!![]:_0x3fada0[_0x4beb6a(0x19f)]===!![],_0x51ae63=_0x44261b?_0x29d6a2[_0x4beb6a(0x1cf)]===!![]:_0x3fada0['required']===!![],_0x17f067=_0x44261b?_0x29d6a2[_0x4beb6a(0x1cc)]??null:_0x3fada0[_0x4beb6a(0x1cc)]??null,_0x55b21b={'name':_0x1a5055,'displayName':_0x520644||_0x1a5055,'type':_0x18d58f,'dbType':_0x29d6a2[_0x4beb6a(0x19c)],'pk':_0x42358c,'required':_0x51ae63,'description':_0x29d6a2[_0x4beb6a(0x1c0)]||undefined};return Array[_0x4beb6a(0x1d7)](_0x17f067)&&_0x17f067[_0x4beb6a(0x1be)]>0x0&&(_0x55b21b['options']=_0x17f067),_0x55b21b;}function a24_0x4bbf(_0x1212d6,_0x3e47f8){_0x1212d6=_0x1212d6-0x193;const _0x5355cb=a24_0x5355();let _0x4bbf8f=_0x5355cb[_0x1212d6];return _0x4bbf8f;}function a24_0x5355(){const _0x4ddb21=['Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','creatorIdField','8TtIQTK','responseBody','fields','labelField','displayName','length','dataset','description','674475bUjSEM','modifierNameField','operations','formatRules','properties','modelId','host','3299191VwEzvF','afterScriptId','method','dblinkInfoDTO','options','1881520TpODCR','32706ANhYqc','required','205iHjQIo','validateRules','name','path','9wGgQUF','requestBody','allFields','isArray','extend','dataType','180200uuQoTC','requestFields','code','entries','logicField','find','dbId','dbName','dbType','tableComment','8380170hmGekj','pkField','string','columnCodeListWithDeleted','doVersion','beforeScriptId','tableName','filter','doType','split','createTimeField','dbtableConfig','datasetKey','trim','modelCode','indexes','deleted','creatorNameField','object','relations','parse','responseFields','modifierIdField','map','228882jaQpwi'];a24_0x5355=function(){return _0x4ddb21;};return a24_0x5355();}function parseJsonMaybe(_0x5b5cde){const _0x456ded=a24_0x4bbf;if(typeof _0x5b5cde!==_0x456ded(0x1a0))return _0x5b5cde;try{return JSON[_0x456ded(0x1b2)](_0x5b5cde);}catch{return _0x5b5cde;}}function normalizeOperationEntry(_0x1ec098,_0x447d19){const _0x4df2d4=a24_0x4bbf;if(!_0x447d19||typeof _0x447d19!==_0x4df2d4(0x1b0))return null;if(!_0x447d19[_0x4df2d4(0x1ca)]||!_0x447d19[_0x4df2d4(0x1d3)])return null;const _0x43d20b={'name':_0x1ec098,'method':_0x447d19[_0x4df2d4(0x1ca)],'path':_0x447d19['path']};if(_0x447d19[_0x4df2d4(0x1c7)])_0x43d20b[_0x4df2d4(0x1c7)]=_0x447d19[_0x4df2d4(0x1c7)];if(_0x447d19[_0x4df2d4(0x1d5)]!=null)_0x43d20b['requestBody']=parseJsonMaybe(_0x447d19[_0x4df2d4(0x1d5)]);if(_0x447d19[_0x4df2d4(0x1ba)]!=null)_0x43d20b[_0x4df2d4(0x1ba)]=parseJsonMaybe(_0x447d19['responseBody']);if(_0x447d19[_0x4df2d4(0x1a3)]!=null)_0x43d20b[_0x4df2d4(0x1a3)]=_0x447d19[_0x4df2d4(0x1a3)];if(_0x447d19['afterScriptId']!=null)_0x43d20b['afterScriptId']=_0x447d19[_0x4df2d4(0x1c9)];if(Array['isArray'](_0x447d19[_0x4df2d4(0x195)]))_0x43d20b['requestFields']=_0x447d19[_0x4df2d4(0x195)];if(Array[_0x4df2d4(0x1d7)](_0x447d19[_0x4df2d4(0x1b3)]))_0x43d20b[_0x4df2d4(0x1b3)]=_0x447d19['responseFields'];return _0x43d20b;}function summarizeDbtable(_0x5bb235){const _0x369f74=a24_0x4bbf,_0xe82940={},_0x42b71f=[_0x369f74(0x19a),_0x369f74(0x19b),_0x369f74(0x1a4),'datasetKey','pkField',_0x369f74(0x1d6),_0x369f74(0x198),_0x369f74(0x1a8),'updateTimeField',_0x369f74(0x1b8),_0x369f74(0x1af),_0x369f74(0x1b4),_0x369f74(0x1c2),_0x369f74(0x1bc),_0x369f74(0x1cb)];for(const _0x17f9ff of _0x42b71f){if(_0x5bb235[_0x17f9ff]!==undefined)_0xe82940[_0x17f9ff]=_0x5bb235[_0x17f9ff];}return typeof _0xe82940['allFields']===_0x369f74(0x1a0)&&_0xe82940[_0x369f74(0x1d6)][_0x369f74(0x1be)]>0x0&&(_0xe82940['allFieldNames']=_0xe82940[_0x369f74(0x1d6)][_0x369f74(0x1a7)](',')['map'](_0x3307ee=>_0x3307ee[_0x369f74(0x1ab)]())[_0x369f74(0x1a5)](Boolean)),_0xe82940;}function normalizeRelatedPages(_0xa02ccb){const _0x3cb3b4=a24_0x4bbf;if(!Array[_0x3cb3b4(0x1d7)](_0xa02ccb))return[];return _0xa02ccb[_0x3cb3b4(0x1a5)](_0x50f6e4=>_0x50f6e4&&typeof _0x50f6e4===_0x3cb3b4(0x1b0))[_0x3cb3b4(0x1b5)](_0x2d7b44=>({'id':_0x2d7b44['id'],'type':_0x2d7b44['type'],'code':_0x2d7b44[_0x3cb3b4(0x196)],'title':_0x2d7b44['title'],'deleted':_0x2d7b44[_0x3cb3b4(0x1ae)]===!![]}));}function normalizeFallbackFieldName(_0x28d158,_0x5355b3){const _0x2284a8=a24_0x4bbf,_0x406cf1=_0x28d158[_0x2284a8(0x1ab)]();if(!_0x406cf1)return null;return{'name':_0x406cf1,'displayName':_0x406cf1,'type':undefined,'dbType':undefined,'pk':_0x406cf1===_0x5355b3,'required':![],'description':undefined};}async function loadListFieldFallback(_0x1d00e1,_0x4080cd){const _0x193ec5=a24_0x4bbf;if(!_0x1d00e1||!_0x4080cd)return[];try{const _0x3818af=await listDatasets(_0x1d00e1,{'code':_0x4080cd}),_0x17f6d6=_0x3818af[_0x193ec5(0x199)](_0x1c0dde=>_0x1c0dde[_0x193ec5(0x196)]===_0x4080cd)??_0x3818af[0x0],_0x3dac79=_0x17f6d6?.[_0x193ec5(0x1a9)]??{},_0x1dc1a5=typeof _0x3dac79[_0x193ec5(0x1d6)]===_0x193ec5(0x1a0)?_0x3dac79[_0x193ec5(0x1d6)][_0x193ec5(0x1a7)](','):[];return _0x1dc1a5['map'](_0x193d1e=>normalizeFallbackFieldName(_0x193d1e,_0x3dac79[_0x193ec5(0x19f)]))[_0x193ec5(0x1a5)](_0x43821e=>_0x43821e!==null);}catch{return[];}}export const datasetDetail={'service':a24_0x501b47(0x1bf),'command':'detail','description':a24_0x501b47(0x1b7),'risk':'read','flags':[CODE_FLAG],async 'execute'(_0x2449b4){const _0x5a533a=a24_0x501b47,_0x50f1bf=await getDatasetDetail(_0x2449b4['str']('code')),_0x6a8017=Array[_0x5a533a(0x1d7)](_0x50f1bf[_0x5a533a(0x1bb)])?_0x50f1bf[_0x5a533a(0x1bb)]:Array[_0x5a533a(0x1d7)](_0x50f1bf[_0x5a533a(0x1c5)])?_0x50f1bf[_0x5a533a(0x1c5)]:[];let _0x25b1ba=_0x6a8017[_0x5a533a(0x1b5)](_0x2cf3a5=>normalizeField(_0x2cf3a5))[_0x5a533a(0x1a5)](_0x154af1=>_0x154af1!==null);_0x25b1ba[_0x5a533a(0x1be)]===0x0&&(_0x25b1ba=await loadListFieldFallback(_0x2449b4['appCode'],_0x2449b4['str'](_0x5a533a(0x196))));const _0x1784bc=_0x50f1bf[_0x5a533a(0x1c3)]??{},_0x51c814=[];for(const [_0x388b82,_0x5b374f]of Object[_0x5a533a(0x197)](_0x1784bc)){const _0xd1642e=normalizeOperationEntry(_0x388b82,_0x5b374f);if(_0xd1642e)_0x51c814['push'](_0xd1642e);}const _0x217a81=_0x50f1bf['dbtableConfig']??{},_0x5a8cfc=_0x50f1bf[_0x5a533a(0x1bf)]??{},_0x121aab=_0x217a81[_0x5a533a(0x19a)]!=null?{'id':_0x217a81[_0x5a533a(0x19a)],'name':_0x217a81[_0x5a533a(0x19b)]??null}:undefined;let _0xe32578;return typeof _0x50f1bf[_0x5a533a(0x1d8)]===_0x5a533a(0x1a0)&&(_0xe32578=parseJsonMaybe(_0x50f1bf[_0x5a533a(0x1d8)])),{'ok':!![],'data':{'id':_0x50f1bf[_0x5a533a(0x1c6)]??_0x50f1bf['id'],'name':_0x50f1bf[_0x5a533a(0x1d2)],'code':_0x50f1bf[_0x5a533a(0x1ac)]||_0x50f1bf[_0x5a533a(0x196)],'doVersion':_0x50f1bf[_0x5a533a(0x1a2)],'description':_0x50f1bf[_0x5a533a(0x1c0)]||_0x5a8cfc[_0x5a533a(0x19d)]||undefined,'source':_0x50f1bf['source']||_0x5a8cfc['sourceType'],'table':_0x217a81[_0x5a533a(0x1a4)]||_0x5a8cfc[_0x5a533a(0x1a4)],'datasetKey':_0x217a81[_0x5a533a(0x1aa)],'pk':_0x217a81[_0x5a533a(0x19f)],'db':_0x121aab,'dbtable':summarizeDbtable(_0x217a81),'fields':_0x25b1ba,'operations':_0x51c814,'indexes':Array[_0x5a533a(0x1d7)](_0x5a8cfc[_0x5a533a(0x1ad)])?_0x5a8cfc[_0x5a533a(0x1ad)]:[],'relations':_0x50f1bf[_0x5a533a(0x1b1)]??null,'relatedPages':normalizeRelatedPages(_0x50f1bf['relatedPageInfoList']),...Array['isArray'](_0x50f1bf[_0x5a533a(0x1a1)])?{'columnCodeListWithDeleted':_0x50f1bf[_0x5a533a(0x1a1)]}:{},'formatRules':Array['isArray'](_0x50f1bf['formatRules'])?_0x50f1bf[_0x5a533a(0x1c4)]:[],'validateRules':Array[_0x5a533a(0x1d7)](_0x50f1bf[_0x5a533a(0x1d1)])?_0x50f1bf[_0x5a533a(0x1d1)]:[],..._0xe32578!==undefined?{'extend':_0xe32578}:{},'stats':{'fieldCount':_0x25b1ba[_0x5a533a(0x1be)],'operationCount':_0x51c814[_0x5a533a(0x1be)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xd06b2a,_0x3091a8){const _0x557c3e=a25_0xe092,_0x4b4343=_0xd06b2a();while(!![]){try{const _0x389b0e=parseInt(_0x557c3e(0x158))/0x1*(parseInt(_0x557c3e(0x155))/0x2)+-parseInt(_0x557c3e(0x154))/0x3*(-parseInt(_0x557c3e(0x152))/0x4)+-parseInt(_0x557c3e(0x159))/0x5*(parseInt(_0x557c3e(0x153))/0x6)+parseInt(_0x557c3e(0x156))/0x7*(parseInt(_0x557c3e(0x15a))/0x8)+-parseInt(_0x557c3e(0x150))/0x9+parseInt(_0x557c3e(0x14f))/0xa+-parseInt(_0x557c3e(0x157))/0xb*(parseInt(_0x557c3e(0x151))/0xc);if(_0x389b0e===_0x3091a8)break;else _0x4b4343['push'](_0x4b4343['shift']());}catch(_0x174c3b){_0x4b4343['push'](_0x4b4343['shift']());}}}(a25_0x5b93,0x1a096));function a25_0xe092(_0x29313e,_0x5dbfa9){_0x29313e=_0x29313e-0x14f;const _0x5b9315=a25_0x5b93();let _0xe09272=_0x5b9315[_0x29313e];return _0xe09272;}import{datasetList}from'../../commands/dataset/list.js';function a25_0x5b93(){const _0x175663=['266394uqFZmz','6usVseV','83629qzerey','136301xjabfB','27101IaxHHB','85fKJJhu','96ibmNtA','374910ABjKyX','1687077rNnyDK','48najnlU','4LhrDnU','2574XTYpAv'];a25_0x5b93=function(){return _0x175663;};return a25_0x5b93();}import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a26_0x132f(_0x10e7a2,_0x536148){_0x10e7a2=_0x10e7a2-0x156;const _0x1979b3=a26_0x1979();let _0x132f75=_0x1979b3[_0x10e7a2];return _0x132f75;}const a26_0x985206=a26_0x132f;(function(_0x314635,_0x1403aa){const _0x241665=a26_0x132f,_0x545c6a=_0x314635();while(!![]){try{const _0x254ce6=parseInt(_0x241665(0x15d))/0x1+parseInt(_0x241665(0x16d))/0x2*(-parseInt(_0x241665(0x16e))/0x3)+parseInt(_0x241665(0x15a))/0x4*(-parseInt(_0x241665(0x164))/0x5)+-parseInt(_0x241665(0x156))/0x6*(parseInt(_0x241665(0x15c))/0x7)+-parseInt(_0x241665(0x161))/0x8*(-parseInt(_0x241665(0x16b))/0x9)+-parseInt(_0x241665(0x166))/0xa+parseInt(_0x241665(0x15b))/0xb*(parseInt(_0x241665(0x15f))/0xc);if(_0x254ce6===_0x1403aa)break;else _0x545c6a['push'](_0x545c6a['shift']());}catch(_0x436f33){_0x545c6a['push'](_0x545c6a['shift']());}}}(a26_0x1979,0x19c9e));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':'dataset','command':a26_0x985206(0x16c),'description':'List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','risk':'read','flags':[{'name':a26_0x985206(0x162),'type':'string','description':a26_0x985206(0x15e)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x429817){const _0x13c55e=a26_0x985206,_0x5412fa=_0x429817[_0x13c55e(0x168)]('name'),_0x41b579=_0x429817[_0x13c55e(0x168)](_0x13c55e(0x163)),_0x1d5104=await listDatasets(_0x429817[_0x13c55e(0x158)],{..._0x5412fa&&{'name':_0x5412fa},..._0x41b579&&{'code':_0x41b579}});return{'ok':!![],'data':{'total':_0x1d5104[_0x13c55e(0x16a)],'datasets':_0x1d5104['map'](_0x69dac3=>{const _0x20ed54=_0x13c55e,_0x59ceb4=_0x69dac3[_0x20ed54(0x157)]??{};return{'id':_0x69dac3['id'],'code':_0x69dac3['code'],'name':_0x69dac3[_0x20ed54(0x162)],'source':_0x69dac3[_0x20ed54(0x169)],'description':_0x69dac3['description'],'table':_0x59ceb4['tableName'],'datasetKey':_0x59ceb4[_0x20ed54(0x167)],'pk':_0x59ceb4['pkField'],'fields':_0x59ceb4[_0x20ed54(0x165)]?_0x59ceb4[_0x20ed54(0x165)][_0x20ed54(0x16f)](',')[_0x20ed54(0x160)](_0x4fbddf=>_0x4fbddf[_0x20ed54(0x159)]()):[]};})}};}};function a26_0x1979(){const _0xa35ff=['8IPlAjU','1880615HrKYdn','14kaAykB','129449ArmySP','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','24mFGowk','map','132568tLAiBW','name','code','501335svJnmn','allFields','681620nVZBPI','datasetKey','str','source','length','45sjHXBy','list','6stSOgi','175692yelCAv','split','12648nAhLBt','dbtableConfig','appCode','trim'];a26_0x1979=function(){return _0xa35ff;};return a26_0x1979();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a27_0x47a5(_0x34b472,_0x43c73d){_0x34b472=_0x34b472-0x13e;const _0xb4b5f6=a27_0xb4b5();let _0x47a525=_0xb4b5f6[_0x34b472];return _0x47a525;}const a27_0x27c5c8=a27_0x47a5;function a27_0xb4b5(){const _0x324c08=['sdk-doc','string','7437752YLHWbC','792219KMmwvL','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','450010hvKJsT','code','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','str','read','1382066HcorkK','395YcXVeW','765624VpXcFD','6558dRGEzI','5474MyLaYl','trim','dataset'];a27_0xb4b5=function(){return _0x324c08;};return a27_0xb4b5();}(function(_0x2fe265,_0x24d8ae){const _0x1728ca=a27_0x47a5,_0x336c72=_0x2fe265();while(!![]){try{const _0x5f0667=-parseInt(_0x1728ca(0x14e))/0x1+-parseInt(_0x1728ca(0x145))/0x2+-parseInt(_0x1728ca(0x143))/0x3+-parseInt(_0x1728ca(0x14c))/0x4+parseInt(_0x1728ca(0x14b))/0x5*(parseInt(_0x1728ca(0x14d))/0x6)+-parseInt(_0x1728ca(0x14a))/0x7+parseInt(_0x1728ca(0x142))/0x8;if(_0x5f0667===_0x24d8ae)break;else _0x336c72['push'](_0x336c72['shift']());}catch(_0x30653d){_0x336c72['push'](_0x336c72['shift']());}}}(a27_0xb4b5,0x2063e));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a27_0x27c5c8(0x144);export function formatDatasetSdkMarkdown(_0x44dce3){const _0x4d3acd=a27_0x27c5c8,_0x59c8b6=typeof _0x44dce3===_0x4d3acd(0x141)?_0x44dce3[_0x4d3acd(0x13e)]():'';return _0x59c8b6||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a27_0x27c5c8(0x13f),'command':a27_0x27c5c8(0x140),'description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':a27_0x27c5c8(0x149),'flags':[{...CODE_FLAG,'description':a27_0x27c5c8(0x147)}],async 'execute'(_0x4b8a6d){const _0x4b6390=a27_0x27c5c8,_0x576de3=_0x4b8a6d[_0x4b6390(0x148)](_0x4b6390(0x146)),_0x492078=await getDatasetSdkUsageDoc(_0x576de3,_0x4b8a6d['appCode']);return{'ok':!![],'data':{'code':_0x576de3,'appCode':_0x4b8a6d['appCode'],'markdown':formatDatasetSdkMarkdown(_0x492078)}};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a28_0x14e9d8=a28_0x17f0;(function(_0x5ebe02,_0x24d8d8){const _0x18a6cf=a28_0x17f0,_0x3f46d6=_0x5ebe02();while(!![]){try{const _0x1cfca9=-parseInt(_0x18a6cf(0x12d))/0x1+parseInt(_0x18a6cf(0x11e))/0x2*(-parseInt(_0x18a6cf(0xf6))/0x3)+-parseInt(_0x18a6cf(0x11f))/0x4+parseInt(_0x18a6cf(0x10c))/0x5+parseInt(_0x18a6cf(0x131))/0x6+parseInt(_0x18a6cf(0x130))/0x7+-parseInt(_0x18a6cf(0x12b))/0x8*(-parseInt(_0x18a6cf(0x106))/0x9);if(_0x1cfca9===_0x24d8d8)break;else _0x3f46d6['push'](_0x3f46d6['shift']());}catch(_0x342a38){_0x3f46d6['push'](_0x3f46d6['shift']());}}}(a28_0x43dd,0xf1f6a));import a28_0x1589e9 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{isLegacyCompatConfigKey}from'../config/schema.js';import{inspectServiceRegistry}from'../commands/service/registry.js';async function execute(_0xd59f72){const _0xf24f=a28_0x17f0,_0x5e8cf2=getCliVersion(),_0xfc1a41=buildConfigFromFlags({});await initGlobalEnvironment(_0xfc1a41),console['log'](),console[_0xf24f(0xe3)](a28_0x1589e9[_0xf24f(0xee)](CLI_BIN_NAME+'\x20doctor')),console[_0xf24f(0xe3)](a28_0x1589e9[_0xf24f(0xff)]('─'['repeat'](0x32))),console[_0xf24f(0xe3)](_0xf24f(0x127)+_0x5e8cf2),console['log'](_0xf24f(0xe9)+process[_0xf24f(0x120)]),console[_0xf24f(0xe3)](_0xf24f(0xef)+process['platform']+'\x20'+process[_0xf24f(0x107)]),console[_0xf24f(0xe3)](),console['log'](a28_0x1589e9[_0xf24f(0xee)](_0xf24f(0x11b))),console['log'](a28_0x1589e9[_0xf24f(0xff)](_0xf24f(0x138)[_0xf24f(0x103)](0x1e)));const _0x462bff=getGlobalConfigPath(),_0x150e93=getProjectConfigPath();console['log'](_0xf24f(0x115)+(_0x462bff||a28_0x1589e9['gray'](_0xf24f(0x11c)))),console[_0xf24f(0xe3)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x150e93||a28_0x1589e9['gray'](_0xf24f(0x11c)))),console[_0xf24f(0xe3)](),console[_0xf24f(0xe3)](a28_0x1589e9[_0xf24f(0xee)](_0xf24f(0x11a))),console[_0xf24f(0xe3)](a28_0x1589e9[_0xf24f(0xff)](_0xf24f(0x138)[_0xf24f(0x103)](0x1e)));const _0x2604d3=(_0x433c21,_0x5a212f)=>{const _0x5e42cf=_0xf24f;if(!_0x5a212f){console[_0x5e42cf(0xe3)]('\x20\x20'+_0x433c21['padEnd'](0x11)+'\x20'+a28_0x1589e9['gray'](_0x5e42cf(0xfc)));return;}const _0x418409=inspectCliConfigJsonFile(_0x5a212f);if(_0x418409['status']==='ok')console[_0x5e42cf(0xe3)]('\x20\x20'+_0x433c21[_0x5e42cf(0x12e)](0x11)+'\x20'+a28_0x1589e9[_0x5e42cf(0x133)](_0x5e42cf(0xf2)));else{if(_0x418409[_0x5e42cf(0x135)]===_0x5e42cf(0xea))console[_0x5e42cf(0xe3)]('\x20\x20'+_0x433c21[_0x5e42cf(0x12e)](0x11)+'\x20'+a28_0x1589e9[_0x5e42cf(0x101)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x418409[_0x5e42cf(0x135)]===_0x5e42cf(0x136)?console[_0x5e42cf(0xe3)]('\x20\x20'+_0x433c21[_0x5e42cf(0x12e)](0x11)+'\x20'+a28_0x1589e9[_0x5e42cf(0xff)](_0x5e42cf(0x126))):(console['log']('\x20\x20'+_0x433c21['padEnd'](0x11)+'\x20'+a28_0x1589e9['red'](_0x5e42cf(0xf5))),console[_0x5e42cf(0xe3)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a28_0x1589e9[_0x5e42cf(0x128)](_0x418409[_0x5e42cf(0xfd)])));}};_0x2604d3(_0xf24f(0x105),_0x462bff),_0x2604d3(_0xf24f(0x10e),_0x150e93),console[_0xf24f(0xe3)](),console[_0xf24f(0xe3)](a28_0x1589e9['bold']('\x20\x20Merged\x20Config')),console[_0xf24f(0xe3)](a28_0x1589e9['gray']('\x20\x20─'[_0xf24f(0x103)](0x1e))),console[_0xf24f(0xe3)](_0xf24f(0x102)+(_0xfc1a41['appCode']||a28_0x1589e9[_0xf24f(0x128)](_0xf24f(0x10a)))),console[_0xf24f(0xe3)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xfc1a41[_0xf24f(0xed)]);const _0x311688=isLegacyCompatConfigKey(_0xf24f(0xec))?a28_0x1589e9[_0xf24f(0xff)](_0xfc1a41[_0xf24f(0xec)]+_0xf24f(0x104)):_0xfc1a41[_0xf24f(0xec)];console[_0xf24f(0xe3)](_0xf24f(0x134)+_0x311688),console[_0xf24f(0xe3)](_0xf24f(0xfe)+(_0xfc1a41[_0xf24f(0xf9)]||a28_0x1589e9[_0xf24f(0xff)](_0xf24f(0xe8)))),console['log'](_0xf24f(0xf0)+(_0xfc1a41[_0xf24f(0x123)]||a28_0x1589e9['gray']('(none)'))),console[_0xf24f(0xe3)](_0xf24f(0xe4)+(_0xfc1a41[_0xf24f(0xf4)]||a28_0x1589e9[_0xf24f(0xff)](_0xf24f(0x117)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0xf24f(0xe3)](_0xf24f(0xeb)+(_0xfc1a41[_0xf24f(0x100)]??a28_0x1589e9[_0xf24f(0xff)](_0xf24f(0xe5)))),console[_0xf24f(0xe3)](_0xf24f(0xe6)+_0xfc1a41[_0xf24f(0x119)]),console[_0xf24f(0xe3)](_0xf24f(0x124)+_0xfc1a41[_0xf24f(0x111)]),console['log']('\x20\x20auth\x20(effective):\x20'+AUTH_MODE[_0xf24f(0x12a)]),console[_0xf24f(0xe3)]('\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20'+(_0xfc1a41[_0xf24f(0xf8)]?a28_0x1589e9[_0xf24f(0x133)](_0xf24f(0x114)+_0xfc1a41['accessKey']['length']+')'):a28_0x1589e9[_0xf24f(0xff)](_0xf24f(0xe8)))),console[_0xf24f(0xe3)](),console[_0xf24f(0xe3)](a28_0x1589e9[_0xf24f(0xee)]('\x20\x20API\x20Endpoints')),console[_0xf24f(0xe3)](a28_0x1589e9[_0xf24f(0xff)]('\x20\x20─'[_0xf24f(0x103)](0x1e))),console['log'](_0xf24f(0xf3)+getApiDomain()),console[_0xf24f(0xe3)](_0xf24f(0x116)+getUserDomain()),console['log'](_0xf24f(0x10f)+getRuntimeDomain()),console[_0xf24f(0xe3)](),console[_0xf24f(0xe3)](a28_0x1589e9[_0xf24f(0xee)](_0xf24f(0x118))),console[_0xf24f(0xe3)](a28_0x1589e9[_0xf24f(0xff)]('\x20\x20─'[_0xf24f(0x103)](0x1e)));const _0x3604d2=inspectServiceRegistry();console[_0xf24f(0xe3)](_0xf24f(0x121)+_0x3604d2['registryPath']),console[_0xf24f(0xe3)](_0xf24f(0x12f)+formatServiceRegistryStatus(_0x3604d2)),console['log'](_0xf24f(0xe2)+_0x3604d2[_0xf24f(0x11d)]),console[_0xf24f(0xe3)]('\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3604d2[_0xf24f(0xfa)]);for(const _0x48f3a8 of _0x3604d2[_0xf24f(0x12c)]){console['log']('\x20\x20'+(_0x48f3a8[_0xf24f(0x112)]+':')[_0xf24f(0x12e)](0x11)+'\x20'+(_0x48f3a8[_0xf24f(0x10b)]||a28_0x1589e9[_0xf24f(0xff)](_0xf24f(0xfb)))+'\x20('+_0x48f3a8[_0xf24f(0xfa)]+_0xf24f(0x110)),console[_0xf24f(0xe3)]('\x20\x20'+''[_0xf24f(0x12e)](0x11)+_0xf24f(0x113)+_0x48f3a8[_0xf24f(0x109)][_0xf24f(0xe7)]);}return console[_0xf24f(0xe3)](),console[_0xf24f(0xe3)](a28_0x1589e9[_0xf24f(0xee)]('\x20\x20Auth')),console[_0xf24f(0xe3)](a28_0x1589e9['gray'](_0xf24f(0x138)[_0xf24f(0x103)](0x1e))),console['log'](_0xf24f(0xf7)+a28_0x1589e9[_0xf24f(0x133)](AUTH_MODE['ClientAk']+'\x20(accessKey)')),console['log'](_0xf24f(0x122)+a28_0x1589e9[_0xf24f(0xff)]('(removed\x20—\x20cookie\x20auth\x20disabled)')),console['log'](),{'ok':!![]};}function a28_0x43dd(){const _0x22b70a=['verbose','serviceCode','\x20Imported\x20from:\x20','(set,\x20length=','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(default:\x20','\x20\x20Service\x20Tree','riskLevel','\x20\x20Config\x20JSON','\x20\x20Config\x20Files','(not\x20found)','serviceCount','2WSKVZG','3930644YhixKD','version','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Session\x20check:\x20\x20\x20','currentApp','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty','(missing)','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','red','✓\x20Loaded','ClientAk','72208Yavkry','services','620847CAZdzp','padEnd','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','4067784LswzHI','7218216zArPbn','Diagnose\x20CLI\x20configuration\x20and\x20environment','green','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','missing','read','\x20\x20─','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','log','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','path','(none)','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','empty','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','locale','env','bold','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','doctor','✓\x20Valid\x20JSON','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','format','✗\x20Invalid\x20JSON','4480887SaxCVq','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','defaultApp','commandCount','(unnamed)','(no\x20file)','message','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','gray','pageSize','yellow','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','\x20(legacy/compat\x20only)','Global','549ebduPS','arch','✗\x20Invalid','source','(not\x20set)','name','8767425eDdikq','check','Project','\x20\x20runtimeDomain:\x20\x20\x20','\x20commands)'];a28_0x43dd=function(){return _0x22b70a;};return a28_0x43dd();}function formatServiceRegistryStatus(_0x409723){const _0x424e63=a28_0x17f0;if(_0x409723[_0x424e63(0x135)]==='ok')return a28_0x1589e9[_0x424e63(0x133)](_0x424e63(0x129));if(_0x409723[_0x424e63(0x135)]===_0x424e63(0x136))return a28_0x1589e9[_0x424e63(0xff)]('(not\x20found)');if(_0x409723['status']===_0x424e63(0xea))return a28_0x1589e9[_0x424e63(0x101)](_0x424e63(0x125));return a28_0x1589e9['red'](_0x424e63(0x108)+(_0x409723[_0x424e63(0xfd)]?':\x20'+_0x409723[_0x424e63(0xfd)]:''));}function a28_0x17f0(_0x48b401,_0x22c5ce){_0x48b401=_0x48b401-0xe2;const _0x43ddc0=a28_0x43dd();let _0x17f021=_0x43ddc0[_0x48b401];return _0x17f021;}export const doctorDefinition={'service':a28_0x14e9d8(0xf1),'command':a28_0x14e9d8(0x10d),'description':a28_0x14e9d8(0x132),'risk':a28_0x14e9d8(0x137),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
package/lib/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a29_0x3bbb2b=a29_0x1be5;(function(_0x50629c,_0x4e6587){const _0x308943=a29_0x1be5,_0x50592c=_0x50629c();while(!![]){try{const _0xb4f69a=parseInt(_0x308943(0xd0))/0x1*(parseInt(_0x308943(0xda))/0x2)+parseInt(_0x308943(0x100))/0x3*(parseInt(_0x308943(0xca))/0x4)+parseInt(_0x308943(0xdc))/0x5+parseInt(_0x308943(0xd9))/0x6+-parseInt(_0x308943(0xfe))/0x7+parseInt(_0x308943(0xd5))/0x8+-parseInt(_0x308943(0xe6))/0x9*(parseInt(_0x308943(0xe8))/0xa);if(_0xb4f69a===_0x4e6587)break;else _0x50592c['push'](_0x50592c['shift']());}catch(_0x3047f5){_0x50592c['push'](_0x50592c['shift']());}}}(a29_0x3703,0x7b7b5));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{createInterface}from'node:readline';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';function a29_0x3703(){const _0x493dc3=['removeListener','AbortPrompt','Initialized\x20','riskLevel','3176888eKzYMu','entries','apps','stdout','2757624LHhOyQ','2BtaMqG','log','3107525QYbGsL','Override\x20imported\x20default\x20appcode','\x20\x20env:\x20\x20\x20\x20\x20','trim','Write\x20to\x20global\x20(~/','project','utf8','Aborted.','toLowerCase','app','87903SpBhnq','\x20already\x20exists.\x20Overwrite?','2390tNKzum','object','string','question','defaultApp','\x20\x20appcode:\x20','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','Invalid\x20env\x20\x22','cwd','Imported\x20from\x20','newConfigFileName','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','stdin','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','close','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','App\x20code','[y/N]','Failed\x20to\x20parse\x20source\x20file:\x20','User\x20aborted\x20prompt','join','Usage:\x20','3711953LrvfSI','file','9rWzsqi','\x0aInitialized\x20',')\x20instead\x20of\x20project','appcode','\x20\x20config:\x20\x20','validation','\x20init\x20—\x20Create\x20','Skip\x20confirmation\x20when\x20overwriting','yes','env','boolean','1213096vdvTeg','SIGINT','flagMissing','):\x20','App\x20code\x20for\x20the\x20project','global','982331HYhRyl'];a29_0x3703=function(){return _0x493dc3;};return a29_0x3703();}import{resolveWriteConfigPath,readConfigFile,writeConfigFile,isNonInteractiveMode}from'../context.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const initCreateFlagDefs=[{'name':'appcode','type':a29_0x3bbb2b(0xea),'description':a29_0x3bbb2b(0xce)},{'name':a29_0x3bbb2b(0xc8),'type':a29_0x3bbb2b(0xea),'description':'Target\x20environment\x20(default\x20'+DEFAULT_CONFIG_VALUES[a29_0x3bbb2b(0xc8)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':a29_0x3bbb2b(0xcf),'type':a29_0x3bbb2b(0xc9),'description':a29_0x3bbb2b(0xe0)+PRODUCT_CONFIG[a29_0x3bbb2b(0xf2)]+a29_0x3bbb2b(0xc1),'default':![]},{'name':'yes','type':a29_0x3bbb2b(0xc9),'description':a29_0x3bbb2b(0xc6),'default':![]}];export const initImportFlagDefs=[{'name':a29_0x3bbb2b(0xff),'type':'string','description':'Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','required':!![]},{'name':a29_0x3bbb2b(0xc2),'type':a29_0x3bbb2b(0xea),'description':a29_0x3bbb2b(0xdd)},{'name':a29_0x3bbb2b(0xc8),'type':a29_0x3bbb2b(0xea),'description':'Override\x20imported\x20default\x20env','enum':[...RUNTIME_ENV_VALUES]},{'name':a29_0x3bbb2b(0xcf),'type':a29_0x3bbb2b(0xc9),'description':a29_0x3bbb2b(0xe0)+PRODUCT_CONFIG[a29_0x3bbb2b(0xf2)]+')\x20instead\x20of\x20project','default':![]},{'name':a29_0x3bbb2b(0xc7),'type':a29_0x3bbb2b(0xc9),'description':a29_0x3bbb2b(0xc6),'default':![]}];export async function runInit(_0x231f7d){const _0x3ce7e3=a29_0x3bbb2b,_0x49920c=isNonInteractiveMode(_0x231f7d),_0x123f3f=_0x231f7d[_0x3ce7e3(0xcf)]?_0x3ce7e3(0xcf):'project',_0x2c7075=resolveWriteConfigPath(_0x123f3f);try{_0x49920c?await runNonInteractive(_0x231f7d,_0x2c7075):await runInteractive(_0x231f7d,_0x2c7075);}catch(_0x50d3d6){if(_0x50d3d6 instanceof AbortPrompt)throw CliErrors['cancelled']();throw _0x50d3d6;}}export async function runInitImport(_0x4d1327){const _0x1f40b1=a29_0x3bbb2b,_0x152135=_0x4d1327[_0x1f40b1(0xcf)]?_0x1f40b1(0xcf):_0x1f40b1(0xe1),_0x23ea69=resolveWriteConfigPath(_0x152135);await runFromImport(_0x4d1327,_0x23ea69);}const RUNTIME_IRRELEVANT_KEYS=new Set(['apiDir']);async function runFromImport(_0x228360,_0x38f575){const _0x2e0452=a29_0x3bbb2b,_0x1785cd=resolveFilePath(_0x228360['file']);if(!existsSync(_0x1785cd))throw CliErrors['validation']('Source\x20file\x20not\x20found:\x20'+_0x1785cd);const _0x1c8176=readSourceFile(_0x1785cd),_0x39e238=convertToRuntimeConfig(_0x1c8176);_0x228360[_0x2e0452(0xc2)]&&(_0x39e238[_0x2e0452(0xc2)]=String(_0x228360[_0x2e0452(0xc2)]));_0x228360[_0x2e0452(0xc8)]&&(_0x39e238[_0x2e0452(0xc8)]=resolveInitEnv(_0x228360));if(!_0x39e238[_0x2e0452(0xc2)])throw CliErrors[_0x2e0452(0xc4)](_0x2e0452(0xf5),_0x2e0452(0xee));await writeInitConfig(_0x38f575,_0x39e238,_0x228360),console[_0x2e0452(0xdb)](_0x2e0452(0xf1)+_0x1785cd),console[_0x2e0452(0xdb)](_0x2e0452(0xc3)+_0x38f575),console['log'](_0x2e0452(0xed)+_0x39e238['appcode']);if(_0x39e238[_0x2e0452(0xec)])console[_0x2e0452(0xdb)]('\x20\x20default:\x20'+_0x39e238['defaultApp']);}function convertToRuntimeConfig(_0x3d9cc8){const _0x213ebd=a29_0x3bbb2b;if(_0x3d9cc8[_0x213ebd(0xd7)]&&typeof _0x3d9cc8['apps']===_0x213ebd(0xe9))throw CliErrors[_0x213ebd(0xc4)](_0x213ebd(0xf3),_0x213ebd(0xf7));const _0x345531={};for(const _0x124040 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x3d9cc8[_0x124040]!==undefined&&(_0x345531[_0x124040]=_0x3d9cc8[_0x124040]);}return!_0x345531[_0x213ebd(0xd4)]&&(_0x345531[_0x213ebd(0xd4)]=DEFAULT_CONFIG_VALUES[_0x213ebd(0xd4)]),_0x345531;}async function runNonInteractive(_0x4ab873,_0x590b09){const _0x59069a=a29_0x3bbb2b,_0x50fa9b=_0x4ab873[_0x59069a(0xc2)];if(!_0x50fa9b)throw CliErrors[_0x59069a(0xcc)](_0x59069a(0xc2),_0x59069a(0xfd)+CLI_BIN_NAME+'\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]');const _0x37d669=resolveInitEnv(_0x4ab873);await writeInitConfig(_0x590b09,{'appcode':_0x50fa9b,'env':_0x37d669},_0x4ab873),console[_0x59069a(0xdb)](_0x59069a(0xd3)+_0x590b09),console[_0x59069a(0xdb)](_0x59069a(0xed)+_0x50fa9b),console[_0x59069a(0xdb)](_0x59069a(0xde)+_0x37d669);}async function runInteractive(_0x2159e7,_0x4b6041){const _0x26d2fe=a29_0x3bbb2b,_0x1b0ea1=loadExisting(_0x4b6041),_0x128734=typeof _0x1b0ea1?.[_0x26d2fe(0xc2)]===_0x26d2fe(0xea)?_0x1b0ea1[_0x26d2fe(0xc2)]:'',_0x54a728=resolveInitEnv(_0x2159e7);console['log'](CLI_BIN_NAME+_0x26d2fe(0xc5)+PRODUCT_CONFIG['newConfigFileName']+'\x0a');if(existsSync(_0x4b6041)&&!_0x2159e7[_0x26d2fe(0xc7)]){const _0x36b05d=await promptYesNo('File\x20'+_0x4b6041+_0x26d2fe(0xe7),![]);if(!_0x36b05d){console[_0x26d2fe(0xdb)](_0x26d2fe(0xe3));return;}}const _0x1b72f8=typeof _0x2159e7[_0x26d2fe(0xc2)]===_0x26d2fe(0xea)?_0x2159e7[_0x26d2fe(0xc2)][_0x26d2fe(0xdf)]():'';let _0x1b0b3f=_0x1b72f8;!_0x1b0b3f&&(_0x1b0b3f=await promptInput(_0x26d2fe(0xf8),_0x128734));if(!_0x1b0b3f['trim']())throw CliErrors['validation']('App\x20code\x20cannot\x20be\x20empty.');await writeInitConfig(_0x4b6041,{'appcode':_0x1b0b3f[_0x26d2fe(0xdf)](),'env':_0x54a728},_0x2159e7),console[_0x26d2fe(0xdb)](_0x26d2fe(0xc0)+_0x4b6041),console[_0x26d2fe(0xdb)]('\x20\x20appcode:\x20'+_0x1b0b3f[_0x26d2fe(0xdf)]()),console[_0x26d2fe(0xdb)](_0x26d2fe(0xde)+_0x54a728);}async function writeInitConfig(_0x25ca5c,_0x2e0c65,_0x8bd759){const _0xfc5041=a29_0x3bbb2b;let _0x1fd70c={};existsSync(_0x25ca5c)&&!_0x8bd759['yes']&&(_0x1fd70c=readConfigFile(_0x25ca5c));for(const [_0x1bcfcf,_0x2d7494]of Object[_0xfc5041(0xd6)](_0x2e0c65)){_0x2d7494!==undefined&&(_0x1fd70c[_0x1bcfcf]=_0x2d7494);}if(_0x1fd70c[_0xfc5041(0xe5)])delete _0x1fd70c[_0xfc5041(0xe5)];writeConfigFile(_0x25ca5c,_0x1fd70c);}class AbortPrompt extends Error{constructor(){const _0x5e948f=a29_0x3bbb2b;super(_0x5e948f(0xfb)),this['name']=_0x5e948f(0xd2);}}function createSafeRl(){const _0x537538=a29_0x3bbb2b,_0x1980c4=createInterface({'input':process[_0x537538(0xf4)],'output':process[_0x537538(0xd8)]});let _0x1d87f6;const _0x61df22=new Promise((_0x383d13,_0x42c426)=>{const _0x122876=_0x537538;_0x1d87f6=()=>{const _0x3392c6=a29_0x1be5;_0x1d87f6&&(_0x1980c4[_0x3392c6(0xd1)](_0x3392c6(0xcb),_0x1d87f6),_0x1d87f6=undefined);try{_0x1980c4[_0x3392c6(0xf6)]();}catch{}_0x42c426(new AbortPrompt());},_0x1980c4['once'](_0x122876(0xcb),_0x1d87f6);}),_0x1ae7de=()=>{const _0xb79fc0=_0x537538;_0x1d87f6&&(_0x1980c4['removeListener'](_0xb79fc0(0xcb),_0x1d87f6),_0x1d87f6=undefined);try{_0x1980c4[_0xb79fc0(0xf6)]();}catch{}};return{'rl':_0x1980c4,'abortPromise':_0x61df22,'disposeSuccess':_0x1ae7de};}function a29_0x1be5(_0x15b73b,_0x519d96){_0x15b73b=_0x15b73b-0xc0;const _0x370347=a29_0x3703();let _0x1be530=_0x370347[_0x15b73b];return _0x1be530;}async function promptInput(_0x4c67ba,_0x24be66){const {rl:_0x44435d,abortPromise:_0x39f3c1,disposeSuccess:_0x55ad21}=createSafeRl(),_0x3bd1bf=new Promise(_0x5415b4=>{const _0x6a65dd=a29_0x1be5,_0x4552c7=_0x24be66?'\x20\x20'+_0x4c67ba+'\x20('+_0x24be66+_0x6a65dd(0xcd):'\x20\x20'+_0x4c67ba+':\x20';_0x44435d[_0x6a65dd(0xeb)](_0x4552c7,_0x5a71a7=>{const _0x362bee=_0x6a65dd;_0x55ad21(),_0x5415b4(_0x5a71a7[_0x362bee(0xdf)]()||_0x24be66);});});return Promise['race']([_0x3bd1bf,_0x39f3c1]);}async function promptYesNo(_0x58c972,_0x159af2){const {rl:_0x4778de,abortPromise:_0xd16067,disposeSuccess:_0x345580}=createSafeRl(),_0x5b9503=new Promise(_0x195551=>{const _0x2eca36=a29_0x1be5,_0x470de3=_0x159af2?'[Y/n]':_0x2eca36(0xf9);_0x4778de[_0x2eca36(0xeb)]('\x20\x20'+_0x58c972+'\x20'+_0x470de3+':\x20',_0x2d2835=>{const _0x207fe4=_0x2eca36;_0x345580();const _0x3662b3=_0x2d2835[_0x207fe4(0xdf)]()[_0x207fe4(0xe4)]();if(_0x3662b3==='y'||_0x3662b3===_0x207fe4(0xc7))_0x195551(!![]);else{if(_0x3662b3==='n'||_0x3662b3==='no')_0x195551(![]);else _0x195551(_0x159af2);}});});return Promise['race']([_0x5b9503,_0xd16067]);}function loadExisting(_0xe600f0){if(!existsSync(_0xe600f0))return null;return readConfigFile(_0xe600f0);}function resolveFilePath(_0x5572d4){const _0x83a8ad=a29_0x3bbb2b;return isAbsolute(_0x5572d4)?_0x5572d4:resolve(process[_0x83a8ad(0xf0)](),_0x5572d4);}function readSourceFile(_0x1bb673){const _0x16b4e7=a29_0x3bbb2b;try{const _0x3a2e0d=readFileSync(_0x1bb673,{'encoding':_0x16b4e7(0xe2)});return JSON['parse'](_0x3a2e0d);}catch(_0xc40aec){throw CliErrors['validation'](_0x16b4e7(0xfa)+_0xc40aec['message']);}}function resolveInitEnv(_0x56a4fb){const _0x3db49a=a29_0x3bbb2b,_0x462c16=_0x56a4fb[_0x3db49a(0xc8)];if(_0x462c16===undefined||_0x462c16==='')return DEFAULT_CONFIG_VALUES['env'];if(!RUNTIME_ENV_VALUES['includes'](_0x462c16))throw CliErrors['validation'](_0x3db49a(0xef)+_0x462c16+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x3db49a(0xfc)](',\x20'));return _0x462c16;}
|
|
1
|
+
const a29_0x586342=a29_0x3373;(function(_0x52dbec,_0x5bdf7d){const _0x1c9203=a29_0x3373,_0xc784f1=_0x52dbec();while(!![]){try{const _0x1085f6=-parseInt(_0x1c9203(0xc2))/0x1*(-parseInt(_0x1c9203(0xbd))/0x2)+parseInt(_0x1c9203(0xac))/0x3+parseInt(_0x1c9203(0xe3))/0x4+-parseInt(_0x1c9203(0xc8))/0x5*(-parseInt(_0x1c9203(0xb2))/0x6)+parseInt(_0x1c9203(0xd5))/0x7*(parseInt(_0x1c9203(0xd9))/0x8)+parseInt(_0x1c9203(0xc5))/0x9+-parseInt(_0x1c9203(0xf2))/0xa*(parseInt(_0x1c9203(0xc9))/0xb);if(_0x1085f6===_0x5bdf7d)break;else _0xc784f1['push'](_0xc784f1['shift']());}catch(_0x4b1655){_0xc784f1['push'](_0xc784f1['shift']());}}}(a29_0x33de,0x9c289));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{createInterface}from'node:readline';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile,isNonInteractiveMode}from'../context.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const initCreateFlagDefs=[{'name':'appcode','type':'string','description':a29_0x586342(0xc3)},{'name':'env','type':a29_0x586342(0xce),'description':a29_0x586342(0xba)+DEFAULT_CONFIG_VALUES[a29_0x586342(0xc1)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':'global','type':a29_0x586342(0xc7),'description':a29_0x586342(0xe1)+PRODUCT_CONFIG[a29_0x586342(0xb3)]+')\x20instead\x20of\x20project','default':![]},{'name':a29_0x586342(0xed),'type':a29_0x586342(0xc7),'description':'Skip\x20confirmation\x20when\x20overwriting','default':![]}];export const initImportFlagDefs=[{'name':a29_0x586342(0xb0),'type':'string','description':a29_0x586342(0xee),'required':!![]},{'name':a29_0x586342(0xd4),'type':a29_0x586342(0xce),'description':a29_0x586342(0xcb)},{'name':a29_0x586342(0xc1),'type':a29_0x586342(0xce),'description':a29_0x586342(0xb1),'enum':[...RUNTIME_ENV_VALUES]},{'name':a29_0x586342(0xbf),'type':'boolean','description':a29_0x586342(0xe1)+PRODUCT_CONFIG[a29_0x586342(0xb3)]+a29_0x586342(0xcc),'default':![]},{'name':a29_0x586342(0xed),'type':a29_0x586342(0xc7),'description':a29_0x586342(0xa8),'default':![]}];export async function runInit(_0x16671a){const _0x4481bd=a29_0x586342,_0x254ffa=isNonInteractiveMode(_0x16671a),_0x4dbac6=_0x16671a[_0x4481bd(0xbf)]?_0x4481bd(0xbf):_0x4481bd(0xda),_0x572049=resolveWriteConfigPath(_0x4dbac6);try{_0x254ffa?await runNonInteractive(_0x16671a,_0x572049):await runInteractive(_0x16671a,_0x572049);}catch(_0x1a150f){if(_0x1a150f instanceof AbortPrompt)throw CliErrors['cancelled']();throw _0x1a150f;}}function a29_0x3373(_0x4c5da0,_0x16c0fa){_0x4c5da0=_0x4c5da0-0xa6;const _0x33de90=a29_0x33de();let _0x33731a=_0x33de90[_0x4c5da0];return _0x33731a;}export async function runInitImport(_0x2396ac){const _0x448bd6=a29_0x586342,_0x45a1f6=_0x2396ac[_0x448bd6(0xbf)]?'global':_0x448bd6(0xda),_0x5e2902=resolveWriteConfigPath(_0x45a1f6);await runFromImport(_0x2396ac,_0x5e2902);}const RUNTIME_IRRELEVANT_KEYS=new Set([a29_0x586342(0xe5)]);async function runFromImport(_0x1caa86,_0x388b5f){const _0x371158=a29_0x586342,_0x430077=resolveFilePath(_0x1caa86[_0x371158(0xb0)]);if(!existsSync(_0x430077))throw CliErrors['validation'](_0x371158(0xb6)+_0x430077);const _0x3bfd44=readSourceFile(_0x430077),_0x359339=convertToRuntimeConfig(_0x3bfd44);_0x1caa86['appcode']&&(_0x359339[_0x371158(0xd4)]=String(_0x1caa86[_0x371158(0xd4)]));_0x1caa86[_0x371158(0xc1)]&&(_0x359339['env']=resolveInitEnv(_0x1caa86));if(!_0x359339[_0x371158(0xd4)])throw CliErrors[_0x371158(0xd3)](_0x371158(0xd7),_0x371158(0xad));await writeInitConfig(_0x388b5f,_0x359339,_0x1caa86),console[_0x371158(0xdb)](_0x371158(0xea)+_0x430077),console[_0x371158(0xdb)](_0x371158(0xe8)+_0x388b5f),console[_0x371158(0xdb)](_0x371158(0xa7)+_0x359339[_0x371158(0xd4)]);if(_0x359339['defaultApp'])console[_0x371158(0xdb)](_0x371158(0xe4)+_0x359339[_0x371158(0xb9)]);}function convertToRuntimeConfig(_0x4afe84){const _0x5eb5af=a29_0x586342;if(_0x4afe84[_0x5eb5af(0xb4)]&&typeof _0x4afe84['apps']===_0x5eb5af(0xd8))throw CliErrors[_0x5eb5af(0xd3)](_0x5eb5af(0xb5),_0x5eb5af(0xd2));const _0x55aab5={};for(const _0x13c2b3 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x4afe84[_0x13c2b3]!==undefined&&(_0x55aab5[_0x13c2b3]=_0x4afe84[_0x13c2b3]);}return!_0x55aab5[_0x5eb5af(0xb8)]&&(_0x55aab5[_0x5eb5af(0xb8)]=DEFAULT_CONFIG_VALUES['riskLevel']),_0x55aab5;}async function runNonInteractive(_0x1d8223,_0x37ce0f){const _0x15ddd4=a29_0x586342,_0x1abb39=_0x1d8223[_0x15ddd4(0xd4)];if(!_0x1abb39)throw CliErrors[_0x15ddd4(0xa9)](_0x15ddd4(0xd4),_0x15ddd4(0xc6)+CLI_BIN_NAME+_0x15ddd4(0xe2));const _0x59c787=resolveInitEnv(_0x1d8223);await writeInitConfig(_0x37ce0f,{'appcode':_0x1abb39,'env':_0x59c787},_0x1d8223),console[_0x15ddd4(0xdb)](_0x15ddd4(0xaf)+_0x37ce0f),console[_0x15ddd4(0xdb)](_0x15ddd4(0xa7)+_0x1abb39),console[_0x15ddd4(0xdb)](_0x15ddd4(0xa6)+_0x59c787);}async function runInteractive(_0x52f255,_0x29a63d){const _0x18d2aa=a29_0x586342,_0x48875f=loadExisting(_0x29a63d),_0x1f60e9=typeof _0x48875f?.[_0x18d2aa(0xd4)]==='string'?_0x48875f[_0x18d2aa(0xd4)]:'',_0x147900=resolveInitEnv(_0x52f255);console['log'](CLI_BIN_NAME+_0x18d2aa(0xd6)+PRODUCT_CONFIG[_0x18d2aa(0xb3)]+'\x0a');if(existsSync(_0x29a63d)&&!_0x52f255[_0x18d2aa(0xed)]){const _0xcc97b=await promptYesNo(_0x18d2aa(0xc4)+_0x29a63d+_0x18d2aa(0xc0),![]);if(!_0xcc97b){console[_0x18d2aa(0xdb)](_0x18d2aa(0xf1));return;}}const _0x338df8=typeof _0x52f255['appcode']===_0x18d2aa(0xce)?_0x52f255[_0x18d2aa(0xd4)]['trim']():'';let _0x2d4a1d=_0x338df8;!_0x2d4a1d&&(_0x2d4a1d=await promptInput(_0x18d2aa(0xd0),_0x1f60e9));if(!_0x2d4a1d[_0x18d2aa(0xef)]())throw CliErrors[_0x18d2aa(0xd3)](_0x18d2aa(0xcf));await writeInitConfig(_0x29a63d,{'appcode':_0x2d4a1d[_0x18d2aa(0xef)](),'env':_0x147900},_0x52f255),console[_0x18d2aa(0xdb)](_0x18d2aa(0xcd)+_0x29a63d),console['log'](_0x18d2aa(0xa7)+_0x2d4a1d[_0x18d2aa(0xef)]()),console['log'](_0x18d2aa(0xa6)+_0x147900);}async function writeInitConfig(_0xac8735,_0x4f821c,_0x144752){const _0x3c3df4=a29_0x586342;let _0x337695={};existsSync(_0xac8735)&&!_0x144752[_0x3c3df4(0xed)]&&(_0x337695=readConfigFile(_0xac8735));for(const [_0x141c9d,_0x364909]of Object[_0x3c3df4(0xca)](_0x4f821c)){_0x364909!==undefined&&(_0x337695[_0x141c9d]=_0x364909);}if(_0x337695['app'])delete _0x337695[_0x3c3df4(0xae)];writeConfigFile(_0xac8735,_0x337695);}class AbortPrompt extends Error{constructor(){const _0x4f5c69=a29_0x586342;super(_0x4f5c69(0xdd)),this['name']=_0x4f5c69(0xaa);}}function createSafeRl(){const _0x648358=a29_0x586342,_0x32eaab=createInterface({'input':process['stdin'],'output':process[_0x648358(0xbb)]});let _0x2d7d31;const _0x22cc85=new Promise((_0x55b5ea,_0x1da19a)=>{const _0x5f285d=_0x648358;_0x2d7d31=()=>{const _0x5562ae=a29_0x3373;_0x2d7d31&&(_0x32eaab['removeListener']('SIGINT',_0x2d7d31),_0x2d7d31=undefined);try{_0x32eaab[_0x5562ae(0xe6)]();}catch{}_0x1da19a(new AbortPrompt());},_0x32eaab['once'](_0x5f285d(0xe0),_0x2d7d31);}),_0xf20d17=()=>{const _0x379927=_0x648358;_0x2d7d31&&(_0x32eaab[_0x379927(0xeb)]('SIGINT',_0x2d7d31),_0x2d7d31=undefined);try{_0x32eaab['close']();}catch{}};return{'rl':_0x32eaab,'abortPromise':_0x22cc85,'disposeSuccess':_0xf20d17};}async function promptInput(_0x4c8c34,_0x98e86a){const _0x509bc5=a29_0x586342,{rl:_0x2ed0b0,abortPromise:_0x2cdc67,disposeSuccess:_0xab582}=createSafeRl(),_0xc4aa64=new Promise(_0x36bfba=>{const _0x884b09=a29_0x3373,_0x51bad6=_0x98e86a?'\x20\x20'+_0x4c8c34+'\x20('+_0x98e86a+_0x884b09(0xb7):'\x20\x20'+_0x4c8c34+':\x20';_0x2ed0b0[_0x884b09(0xf0)](_0x51bad6,_0x2b43dd=>{_0xab582(),_0x36bfba(_0x2b43dd['trim']()||_0x98e86a);});});return Promise[_0x509bc5(0xd1)]([_0xc4aa64,_0x2cdc67]);}async function promptYesNo(_0x4f5320,_0x3547c8){const {rl:_0x379068,abortPromise:_0x503993,disposeSuccess:_0x4952f4}=createSafeRl(),_0x1480b9=new Promise(_0x21f0a6=>{const _0x1bbe64=a29_0x3373,_0x14c931=_0x3547c8?_0x1bbe64(0xbe):_0x1bbe64(0xe7);_0x379068[_0x1bbe64(0xf0)]('\x20\x20'+_0x4f5320+'\x20'+_0x14c931+':\x20',_0xeb39b2=>{const _0x44a057=_0x1bbe64;_0x4952f4();const _0x4016d9=_0xeb39b2[_0x44a057(0xef)]()['toLowerCase']();if(_0x4016d9==='y'||_0x4016d9===_0x44a057(0xed))_0x21f0a6(!![]);else{if(_0x4016d9==='n'||_0x4016d9==='no')_0x21f0a6(![]);else _0x21f0a6(_0x3547c8);}});});return Promise['race']([_0x1480b9,_0x503993]);}function loadExisting(_0x21accd){if(!existsSync(_0x21accd))return null;return readConfigFile(_0x21accd);}function resolveFilePath(_0xbb3c19){const _0x2fdecc=a29_0x586342;return isAbsolute(_0xbb3c19)?_0xbb3c19:resolve(process[_0x2fdecc(0xe9)](),_0xbb3c19);}function readSourceFile(_0x3e8a84){const _0x2e5b68=a29_0x586342;try{const _0x5ac282=readFileSync(_0x3e8a84,{'encoding':_0x2e5b68(0xec)});return JSON[_0x2e5b68(0xde)](_0x5ac282);}catch(_0x431560){throw CliErrors[_0x2e5b68(0xd3)]('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x431560[_0x2e5b68(0xbc)]);}}function a29_0x33de(){const _0x464676=['\x22.\x20Allowed:\x20','User\x20aborted\x20prompt','parse','includes','SIGINT','Write\x20to\x20global\x20(~/','\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]','3142784UbjYni','\x20\x20default:\x20','apiDir','close','[y/N]','\x20\x20config:\x20\x20','cwd','Imported\x20from\x20','removeListener','utf8','yes','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','trim','question','Aborted.','42583570KVoEAI','\x20\x20env:\x20\x20\x20\x20\x20','\x20\x20appcode:\x20','Skip\x20confirmation\x20when\x20overwriting','flagMissing','AbortPrompt','join','2160564kATidK','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','app','Initialized\x20','file','Override\x20imported\x20default\x20env','30WRUsfS','newConfigFileName','apps','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','Source\x20file\x20not\x20found:\x20','):\x20','riskLevel','defaultApp','Target\x20environment\x20(default\x20','stdout','message','2tDXdcN','[Y/n]','global','\x20already\x20exists.\x20Overwrite?','env','871153GGpoHS','App\x20code\x20for\x20the\x20project','File\x20','5626521CeBgHy','Usage:\x20','boolean','793005BFeauD','11PYGqtn','entries','Override\x20imported\x20default\x20appcode',')\x20instead\x20of\x20project','\x0aInitialized\x20','string','App\x20code\x20cannot\x20be\x20empty.','App\x20code','race','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','validation','appcode','7719397UCtikH','\x20init\x20—\x20Create\x20','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','object','8FPpUsS','project','log'];a29_0x33de=function(){return _0x464676;};return a29_0x33de();}function resolveInitEnv(_0x2a1341){const _0x5ddab3=a29_0x586342,_0xb8749c=_0x2a1341[_0x5ddab3(0xc1)];if(_0xb8749c===undefined||_0xb8749c==='')return DEFAULT_CONFIG_VALUES[_0x5ddab3(0xc1)];if(!RUNTIME_ENV_VALUES[_0x5ddab3(0xdf)](_0xb8749c))throw CliErrors[_0x5ddab3(0xd3)]('Invalid\x20env\x20\x22'+_0xb8749c+_0x5ddab3(0xdc)+RUNTIME_ENV_VALUES[_0x5ddab3(0xab)](',\x20'));return _0xb8749c;}
|