@lovrabet/lovrabet-cli 2.1.9-beta.1 → 2.1.9-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/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/common/local-file.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/file/index.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/ocr/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-execute.js +1 -1
- package/lib/commands/skill/push-flow-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
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x5c4c08=a14_0x2d82;function a14_0x29ce(){const _0x15aa98=['22536WXltgl','read','verbose','scriptType','updatedTime','4761wPRQso','60IWhfHd','description','25977FOCEgZ','bool','224AoRgHA','690723BjhYtQ','Script\x20ID','functionName','39706ObCOEz','6261684PxoxaN','Get\x20BFF\x20script\x20details\x20by\x20ID','3976cYXrpq','61616dPUrLO','num','18XJGwZi','40GskjRd','(none)','detail'];a14_0x29ce=function(){return _0x15aa98;};return a14_0x29ce();}(function(_0x484993,_0x3660b4){const _0x242d5e=a14_0x2d82,_0x5d5f14=_0x484993();while(!![]){try{const _0xc414ed=-parseInt(_0x242d5e(0x16e))/0x1+parseInt(_0x242d5e(0x174))/0x2*(parseInt(_0x242d5e(0x17a))/0x3)+-parseInt(_0x242d5e(0x178))/0x4*(-parseInt(_0x242d5e(0x16c))/0x5)+parseInt(_0x242d5e(0x17e))/0x6*(-parseInt(_0x242d5e(0x170))/0x7)+parseInt(_0x242d5e(0x177))/0x8*(-parseInt(_0x242d5e(0x16b))/0x9)+parseInt(_0x242d5e(0x17b))/0xa*(-parseInt(_0x242d5e(0x171))/0xb)+parseInt(_0x242d5e(0x175))/0xc;if(_0xc414ed===_0x3660b4)break;else _0x5d5f14['push'](_0x5d5f14['shift']());}catch(_0x93f889){_0x5d5f14['push'](_0x5d5f14['shift']());}}}(a14_0x29ce,0x2868f));import{getBffScriptInfo}from'../../core/api-client.js';function a14_0x2d82(_0x308be6,_0xa21ae7){_0x308be6=_0x308be6-0x16a;const _0x29ce0f=a14_0x29ce();let _0x2d82f7=_0x29ce0f[_0x308be6];return _0x2d82f7;}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':'bff','command':a14_0x5c4c08(0x17d),'description':a14_0x5c4c08(0x176),'risk':a14_0x5c4c08(0x17f),'flags':[{...ID_FLAG,'description':a14_0x5c4c08(0x172)},VERBOSE_FLAG],async 'execute'(_0x4404af){const _0xe8b3e9=a14_0x5c4c08,_0x47cb57=await getBffScriptInfo(_0x4404af[_0xe8b3e9(0x179)]('id')),_0x29983d=_0x4404af[_0xe8b3e9(0x16f)](_0xe8b3e9(0x180));if(_0x29983d)return{'ok':!![],'data':_0x47cb57};return{'ok':!![],'data':{'id':_0x47cb57['id'],'appCode':_0x47cb57['appCode'],'functionName':_0x47cb57[_0xe8b3e9(0x173)]??'','scriptType':_0x47cb57[_0xe8b3e9(0x181)],'description':_0x47cb57[_0xe8b3e9(0x16d)]||_0xe8b3e9(0x17c),'createdTime':_0x47cb57['createdTime']??'','updatedTime':_0x47cb57[_0xe8b3e9(0x16a)]??''}};}};
|
package/lib/commands/bff/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15_0x54a3ad=a15_0x514f;(function(_0x26ee8f,_0x1ef2d4){const _0x5c95d7=a15_0x514f,_0xf19e42=_0x26ee8f();while(!![]){try{const _0x2b0db4=-parseInt(_0x5c95d7(0x1c2))/0x1*(parseInt(_0x5c95d7(0x1c3))/0x2)+-parseInt(_0x5c95d7(0x1cc))/0x3*(-parseInt(_0x5c95d7(0x1cb))/0x4)+parseInt(_0x5c95d7(0x1ca))/0x5+parseInt(_0x5c95d7(0x1c5))/0x6+parseInt(_0x5c95d7(0x1bf))/0x7*(parseInt(_0x5c95d7(0x1c4))/0x8)+parseInt(_0x5c95d7(0x1c9))/0x9+parseInt(_0x5c95d7(0x1c0))/0xa*(-parseInt(_0x5c95d7(0x1cf))/0xb);if(_0x2b0db4===_0x1ef2d4)break;else _0xf19e42['push'](_0xf19e42['shift']());}catch(_0x848b9a){_0xf19e42['push'](_0xf19e42['shift']());}}}(a15_0x24c0,0xcfdb8));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a15_0x514f(_0xc0ba83,_0x27c135){_0xc0ba83=_0xc0ba83-0x1bf;const _0x24c00d=a15_0x24c0();let _0x514f4a=_0x24c00d[_0xc0ba83];return _0x514f4a;}function a15_0x24c0(){const _0x42b199=['2651xMMVRW','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','78211KhwyoZ','99830yXYEOT','bff','857112VvwuMW','2UxtIbi','1096mczOeG','910998NnrRvH','BFF\x20function\x20name\x20to\x20execute','exec','BFF\x20executed\x20in\x20','9227844zhIuwY','2155565RHyhll','12668FYVZUd','924RMlhBZ','name','now'];a15_0x24c0=function(){return _0x42b199;};return a15_0x24c0();}export const bffExec={'service':a15_0x54a3ad(0x1c1),'command':a15_0x54a3ad(0x1c7),'description':a15_0x54a3ad(0x1d0),'risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':a15_0x54a3ad(0x1c6)},PARAMS_FLAG],async 'execute'(_0x34924d){const _0x5bab1c=a15_0x54a3ad,_0x4330d2=parseJsonParams(_0x34924d['str']('params')),_0x2babb6=Date[_0x5bab1c(0x1ce)](),_0x20ad6d=await executeSdkBff(_0x34924d['str'](_0x5bab1c(0x1cd)),_0x4330d2),_0x1fdbb8=Date[_0x5bab1c(0x1ce)]()-_0x2babb6;return{'ok':!![],'data':{'result':_0x20ad6d,'elapsed':_0x1fdbb8},'message':_0x5bab1c(0x1c8)+_0x1fdbb8+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2d5bd1,_0x6d8171){const _0x259e97=a16_0x3036,_0x4a5fed=_0x2d5bd1();while(!![]){try{const _0x3278ae=-parseInt(_0x259e97(0x1c2))/0x1*(parseInt(_0x259e97(0x1bc))/0x2)+parseInt(_0x259e97(0x1bd))/0x3*(-parseInt(_0x259e97(0x1b8))/0x4)+parseInt(_0x259e97(0x1ba))/0x5*(parseInt(_0x259e97(0x1b9))/0x6)+-parseInt(_0x259e97(0x1be))/0x7*(-parseInt(_0x259e97(0x1bb))/0x8)+parseInt(_0x259e97(0x1bf))/0x9+-parseInt(_0x259e97(0x1c0))/0xa+parseInt(_0x259e97(0x1c1))/0xb;if(_0x3278ae===_0x6d8171)break;else _0x4a5fed['push'](_0x4a5fed['shift']());}catch(_0x4a78b2){_0x4a5fed['push'](_0x4a5fed['shift']());}}}(a16_0x518e,0xc8687));function a16_0x3036(_0xfbcbd5,_0x24fe35){_0xfbcbd5=_0xfbcbd5-0x1b8;const _0x518ef0=a16_0x518e();let _0x30369a=_0x518ef0[_0xfbcbd5];return _0x30369a;}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';function a16_0x518e(){const _0x4a0915=['45837prSfFV','3393440pyhHTI','32951699LrzdCx','2OoMMcV','836nDwRpI','2766veZfeR','9755iprhOo','3752zVMLDK','1501540przsQI','18516CCicfZ','770nvQdgc'];a16_0x518e=function(){return _0x4a0915;};return a16_0x518e();}export const bffDefinitions=[bffDetail,bffExec];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a17_0x2577(_0x55fb27,_0x333d76){_0x55fb27=_0x55fb27-0x83;const _0x5b8630=a17_0x5b86();let _0x2577af=_0x5b8630[_0x55fb27];return _0x2577af;}const a17_0xd65fe9=a17_0x2577;(function(_0x109ae4,_0x5b1842){const _0x2da953=a17_0x2577,_0xe4422a=_0x109ae4();while(!![]){try{const _0x181028=parseInt(_0x2da953(0x87))/0x1+-parseInt(_0x2da953(0x9a))/0x2+parseInt(_0x2da953(0x9b))/0x3+parseInt(_0x2da953(0x85))/0x4+-parseInt(_0x2da953(0x84))/0x5*(parseInt(_0x2da953(0x9c))/0x6)+-parseInt(_0x2da953(0xa0))/0x7+-parseInt(_0x2da953(0x86))/0x8*(-parseInt(_0x2da953(0x89))/0x9);if(_0x181028===_0x5b1842)break;else _0xe4422a['push'](_0xe4422a['shift']());}catch(_0x33cb7f){_0xe4422a['push'](_0xe4422a['shift']());}}}(a17_0x5b86,0x4ade2));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a17_0xd65fe9(0x90),'command':'install','description':a17_0xd65fe9(0x83),'risk':a17_0xd65fe9(0x9e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2bf5d7){const _0x5720b1=a17_0xd65fe9;logger[_0x5720b1(0x98)](process[_0x5720b1(0x93)]()),logger['info']('cli-skill-install',_0x5720b1(0x8e));const {LOVRABET_SKILL_SOURCE:_0x3ce9e6,LOVRABET_SKIP_NPX_SKILLS_ENV:_0xdd6fee,runNpxSkillsAddGlobal:_0x377ae3}=await import('../../skills/npx-skills-add.js'),_0x4efbb6=_0x2bf5d7[_0x5720b1(0x9f)]?_0x5720b1(0x96):_0x5720b1(0x92);console[_0x5720b1(0x88)](_0x5720b1(0x8c)+_0x3ce9e6+_0x5720b1(0x91));const _0x54ef0b=_0x377ae3(process[_0x5720b1(0x93)](),_0x3ce9e6,{'stdio':_0x4efbb6});if(_0x54ef0b[_0x5720b1(0x8d)])console[_0x5720b1(0x88)](_0x5720b1(0x97)+_0xdd6fee+_0x5720b1(0x8f));else{if(_0x54ef0b['ok'])console[_0x5720b1(0x88)](_0x5720b1(0x99));else throw CliErrors[_0x5720b1(0x9d)](_0x5720b1(0x94)+(_0x54ef0b[_0x5720b1(0x95)]||_0x5720b1(0x8b)),_0x5720b1(0x8a)+_0x3ce9e6+'\x20-g\x20-y');}return{'ok':!![]};}}];function a17_0x5b86(){const _0x14be0c=['759122fOHcnI','1179756ACRBMU','18xbotYP','apiError','write','nonInteractive','4186420YlHUpt','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','40045yVcvvo','1838724SVztex','27536JpNMoX','317693pWjTYv','log','360rwehmy','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','unknown','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','skipped','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','cli-skill','\x20-g\x20-y)...','inherit','cwd','npx\x20skills\x20add\x20failed:\x20','error','pipe','Skipped\x20npx\x20(','setLogPath','CLI\x20Built-in\x20Skill\x20installed'];a17_0x5b86=function(){return _0x14be0c;};return a17_0x5b86();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2a69e8,_0x49dc61){const _0x335c52=a18_0x4263,_0x3a3aa4=_0x2a69e8();while(!![]){try{const _0x4a5db6=-parseInt(_0x335c52(0x1f9))/0x1*(parseInt(_0x335c52(0x1ee))/0x2)+-parseInt(_0x335c52(0x1f4))/0x3*(-parseInt(_0x335c52(0x1f6))/0x4)+parseInt(_0x335c52(0x1fb))/0x5*(-parseInt(_0x335c52(0x1fa))/0x6)+-parseInt(_0x335c52(0x201))/0x7*(-parseInt(_0x335c52(0x1ef))/0x8)+parseInt(_0x335c52(0x1f7))/0x9*(-parseInt(_0x335c52(0x1eb))/0xa)+-parseInt(_0x335c52(0x1fe))/0xb*(parseInt(_0x335c52(0x205))/0xc)+parseInt(_0x335c52(0x1f3))/0xd*(parseInt(_0x335c52(0x200))/0xe);if(_0x4a5db6===_0x49dc61)break;else _0x3a3aa4['push'](_0x3a3aa4['shift']());}catch(_0x292cf2){_0x3a3aa4['push'](_0x3a3aa4['shift']());}}}(a18_0xd6a7,0xc35a4));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';function a18_0x4263(_0x1ffe90,_0x47f9ed){_0x1ffe90=_0x1ffe90-0x1ea;const _0xd6a78b=a18_0xd6a7();let _0x4263ea=_0xd6a78b[_0x1ffe90];return _0x4263ea;}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(_0x486c4a){const _0x3a004b=a18_0x4263,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x322606}=_0x486c4a;if(explicitGlobal&&explicitProject)throw CliErrors[_0x3a004b(0x1ec)]('Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.',_0x3a004b(0x202));if(explicitGlobal)return _0x3a004b(0x1f5);if(explicitProject)return'project';switch(_0x322606){case _0x3a004b(0x1f8):return'global';case _0x3a004b(0x1f2):return _0x486c4a[_0x3a004b(0x206)]??isInProject()?_0x3a004b(0x1fc):_0x3a004b(0x1f5);case _0x3a004b(0x1ea):if(!(_0x486c4a[_0x3a004b(0x206)]??isInProject()))throw CliErrors[_0x3a004b(0x1ec)](_0x3a004b(0x1f0)+PRODUCT_CONFIG[_0x3a004b(0x1ff)]+_0x3a004b(0x204),_0x3a004b(0x1f1)+PRODUCT_CONFIG[_0x3a004b(0x1ff)]+_0x3a004b(0x203)+CLI_BIN_NAME+_0x3a004b(0x1fd));return'project';}}function a18_0xd6a7(){const _0x46df49=['Add\x20--global\x20to\x20write\x20to\x20~/','project-default','4683562vAlsfu','15mpjgzq','global','156508TOFynf','4792896bwwAdQ','global-default','389929inXQOq','6791178pOKnEH','5ayWnVT','project','\x20init`\x20first.','14509inxnLb','newConfigFileName','154GqjMad','14hzHYHa','Use\x20only\x20one\x20config\x20scope\x20flag.',',\x20or\x20run\x20`','\x20found).','13092aHWDmH','inProject','project-or-global-explicit','20NpgFAr','validation','\x20(global)','2zATqPi','2669696uUOrwD','Not\x20inside\x20a\x20project\x20(no\x20'];a18_0xd6a7=function(){return _0x46df49;};return a18_0xd6a7();}export function toScopeFlags(_0x155da9){const _0x3360c5=a18_0x4263;return{'global':_0x155da9===_0x3360c5(0x1f5)};}export function formatScopeLabel(_0x1771ca){const _0x2b7ff2=a18_0x4263;return _0x1771ca==='global'?_0x2b7ff2(0x1ed):'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a19_0x5e57(_0x561977,_0x400431){_0x561977=_0x561977-0xc3;const _0x1731eb=a19_0x1731();let _0x5e571b=_0x1731eb[_0x561977];return _0x5e571b;}(function(_0x35a165,_0x48934f){const _0x5cd578=a19_0x5e57,_0xfb7f92=_0x35a165();while(!![]){try{const _0x295445=-parseInt(_0x5cd578(0xd0))/0x1*(-parseInt(_0x5cd578(0xdf))/0x2)+-parseInt(_0x5cd578(0xdd))/0x3+parseInt(_0x5cd578(0xdb))/0x4+-parseInt(_0x5cd578(0xd8))/0x5*(parseInt(_0x5cd578(0xc3))/0x6)+parseInt(_0x5cd578(0xd7))/0x7*(-parseInt(_0x5cd578(0xc9))/0x8)+-parseInt(_0x5cd578(0xd5))/0x9*(-parseInt(_0x5cd578(0xdc))/0xa)+parseInt(_0x5cd578(0xde))/0xb;if(_0x295445===_0x48934f)break;else _0xfb7f92['push'](_0xfb7f92['shift']());}catch(_0x470526){_0xfb7f92['push'](_0xfb7f92['shift']());}}}(a19_0x1731,0xf01be));import{CliErrors}from'../../errors.js';function isSet(_0x4ddea3,_0x434085){const _0x3fb8c6=_0x4ddea3['flag'](_0x434085);return _0x3fb8c6!==undefined&&_0x3fb8c6!==''&&_0x3fb8c6!==![]&&_0x3fb8c6!==0x0;}function fmtNames(_0x554c61){const _0xca1622=a19_0x5e57;return _0x554c61[_0xca1622(0xd2)](_0x2368bb=>'--'+_0x2368bb)[_0xca1622(0xc6)](',\x20');}export function requireOneOf(_0x302abf,_0x1d5e82,_0xd8e47c){const _0x4548e0=a19_0x5e57,_0x175505=_0x1d5e82[_0x4548e0(0xcc)](_0x7a9077=>isSet(_0x302abf,_0x7a9077));if(_0x175505['length']!==0x1)throw CliErrors[_0x4548e0(0xda)](_0x175505[_0x4548e0(0xca)]===0x0?_0x4548e0(0xd9)+fmtNames(_0x1d5e82)+_0x4548e0(0xc7)+_0xd8e47c+'`.':_0x4548e0(0xd4)+fmtNames(_0x1d5e82)+_0x4548e0(0xd6)+fmtNames(_0x175505)+'.',_0x175505['length']===0x0?_0x4548e0(0xcf)+fmtNames(_0x1d5e82):_0x4548e0(0xc5));}export function requireAnyOf(_0x433fd6,_0x44a359,_0x3795a5){const _0x392332=a19_0x5e57;if(!_0x44a359[_0x392332(0xc8)](_0x20cb6c=>isSet(_0x433fd6,_0x20cb6c)))throw CliErrors[_0x392332(0xda)]('At\x20least\x20one\x20of\x20'+fmtNames(_0x44a359)+_0x392332(0xc7)+_0x3795a5+'`.',_0x392332(0xcf)+fmtNames(_0x44a359));}export function mutuallyExclusive(_0x3e2ef2,_0xb3021b,_0x3bbf6f){const _0x3757a2=a19_0x5e57,_0x56fc47=_0xb3021b[_0x3757a2(0xcc)](_0x1c6e7f=>isSet(_0x3e2ef2,_0x1c6e7f));if(_0x56fc47[_0x3757a2(0xca)]>0x1)throw CliErrors['validation']('Flags\x20'+fmtNames(_0x56fc47)+_0x3757a2(0xce)+_0x3bbf6f+'`.',_0x3757a2(0xd3)+fmtNames(_0xb3021b));}export function validatePattern(_0x4e4bfb,_0x4d9aa1,_0x1e6ca2,_0x27f8af){const _0x5aee17=a19_0x5e57,_0x168ee0=_0x4e4bfb[_0x5aee17(0xcb)](_0x4d9aa1);if(_0x168ee0&&!_0x1e6ca2[_0x5aee17(0xd1)](_0x168ee0))throw CliErrors[_0x5aee17(0xda)](_0x5aee17(0xc4)+_0x4d9aa1+':\x20expected\x20'+_0x27f8af+_0x5aee17(0xcd)+_0x168ee0+'\x22.');}function a19_0x1731(){const _0x1cc687=[',\x20got\x20\x22','\x20are\x20mutually\x20exclusive\x20for\x20`','Provide\x20one\x20of:\x20','1EbPAxp','test','map','Use\x20only\x20one\x20of:\x20','Only\x20one\x20of\x20','6361569xIGcVU','\x20is\x20allowed,\x20found:\x20','11140829aWDfIg','10RyVfPL','Exactly\x20one\x20of\x20','validation','1293488RnlCXp','10lRPYsB','1093086diykEN','11558206Ogkyon','3221696ynwTmF','2257236wbphmA','Invalid\x20--','Remove\x20all\x20but\x20one.','join','\x20is\x20required\x20for\x20`','some','8RdFKUW','length','str','filter'];a19_0x1731=function(){return _0x1cc687;};return a19_0x1731();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a20_0x2f222b=a20_0x46ee;function a20_0x5a8e(){const _0x197baa=['string','8BeewBL','1417017NacTQY','7131828sVFGfq','3392988scmCDN','boolean','name','96GktCjw','12lLPTUR','17129816BRawfv','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','Dataset\x20code\x20(32-char\x20hex\x20UUID)','verbose','470QPFkEe','params','Resource\x20name\x20for\x20lookup','2945614sCluri','11464zTPGEX','Return\x20full\x20raw\x20response\x20object','5HTmdzs','204354CQRtry','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)'];a20_0x5a8e=function(){return _0x197baa;};return a20_0x5a8e();}(function(_0x135e75,_0x57dc9a){const _0x33738d=a20_0x46ee,_0x5827d4=_0x135e75();while(!![]){try{const _0x283a1f=-parseInt(_0x33738d(0x83))/0x1*(parseInt(_0x33738d(0x8d))/0x2)+-parseInt(_0x33738d(0x7e))/0x3+parseInt(_0x33738d(0x80))/0x4+parseInt(_0x33738d(0x79))/0x5*(parseInt(_0x33738d(0x7f))/0x6)+parseInt(_0x33738d(0x8c))/0x7*(parseInt(_0x33738d(0x7d))/0x8)+-parseInt(_0x33738d(0x7a))/0x9*(-parseInt(_0x33738d(0x89))/0xa)+-parseInt(_0x33738d(0x85))/0xb*(parseInt(_0x33738d(0x84))/0xc);if(_0x283a1f===_0x57dc9a)break;else _0x5827d4['push'](_0x5827d4['shift']());}catch(_0x37814b){_0x5827d4['push'](_0x5827d4['shift']());}}}(a20_0x5a8e,0xe6b6a));export const CODE_FLAG={'name':'code','type':a20_0x2f222b(0x7c),'required':!![],'description':a20_0x2f222b(0x87),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};export const SQLCODE_FLAG={'name':'sqlcode','type':'string','required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0x2f222b(0x86)}};export const VERBOSE_FLAG={'name':a20_0x2f222b(0x88),'type':a20_0x2f222b(0x81),'description':a20_0x2f222b(0x8e)};function a20_0x46ee(_0x2ac482,_0x296917){_0x2ac482=_0x2ac482-0x79;const _0x5a8e98=a20_0x5a8e();let _0x46ee2e=_0x5a8e98[_0x2ac482];return _0x46ee2e;}export const PARAMS_FLAG={'name':a20_0x2f222b(0x8a),'type':a20_0x2f222b(0x7c),'description':a20_0x2f222b(0x7b)};export const NAME_FLAG={'name':a20_0x2f222b(0x82),'type':a20_0x2f222b(0x7c),'description':a20_0x2f222b(0x8b)};export const ID_FLAG={'name':'id','type':'number','required':!![],'description':'Resource\x20ID'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a21_0x1176(){const _0x5e79f7=['\x20path\x20is\x20required.','trim','toFixed','42FtCxte','isFile','2033094uyprSN','\x20MB','validation','21ClRuMW','2411yMGiJI','File\x20is\x20not\x20a\x20regular\x20file:\x20','ceil','89230SmLYFT','4035911CytURF','5iqQsYG','size','153gmEqlh','3900880nMjoLy','2085132FOZReG','3833444LmaOqN'];a21_0x1176=function(){return _0x5e79f7;};return a21_0x1176();}(function(_0x47e013,_0x31a9c3){const _0x1edd0b=a21_0x5a1f,_0x492493=_0x47e013();while(!![]){try{const _0x5c25d2=-parseInt(_0x1edd0b(0x107))/0x1*(parseInt(_0x1edd0b(0x101))/0x2)+-parseInt(_0x1edd0b(0x110))/0x3+parseInt(_0x1edd0b(0x111))/0x4*(parseInt(_0x1edd0b(0x10c))/0x5)+parseInt(_0x1edd0b(0x103))/0x6*(parseInt(_0x1edd0b(0x106))/0x7)+-parseInt(_0x1edd0b(0x10f))/0x8+parseInt(_0x1edd0b(0x10e))/0x9*(parseInt(_0x1edd0b(0x10a))/0xa)+-parseInt(_0x1edd0b(0x10b))/0xb;if(_0x5c25d2===_0x31a9c3)break;else _0x492493['push'](_0x492493['shift']());}catch(_0x23c5e7){_0x492493['push'](_0x492493['shift']());}}}(a21_0x1176,0x8084d));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;function a21_0x5a1f(_0x1452e2,_0x93430){_0x1452e2=_0x1452e2-0x101;const _0x1176f9=a21_0x1176();let _0x5a1f4b=_0x1176f9[_0x1452e2];return _0x5a1f4b;}export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x3e26d6){const _0x391e47=a21_0x5a1f;if(_0x3e26d6>=BYTES_PER_MB){const _0x1b7c4b=Math[_0x391e47(0x109)](_0x3e26d6/BYTES_PER_MB*0x64)/0x64;return _0x1b7c4b[_0x391e47(0x114)](0x2)+_0x391e47(0x104);}return _0x3e26d6+'\x20B';}export function requireRuntimeUploadFile(_0x58cb7e,_0x262128){const _0x3d47e8=a21_0x5a1f,_0x41c7d3=_0x58cb7e[_0x3d47e8(0x113)]();if(!_0x41c7d3)throw CliErrors['validation'](_0x262128+_0x3d47e8(0x112));if(!existsSync(_0x41c7d3))throw CliErrors[_0x3d47e8(0x105)]('File\x20not\x20found:\x20'+_0x41c7d3);const _0xd28843=statSync(_0x41c7d3);if(!_0xd28843[_0x3d47e8(0x102)]())throw CliErrors[_0x3d47e8(0x105)](_0x3d47e8(0x108)+_0x41c7d3);if(_0xd28843[_0x3d47e8(0x10d)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors['validation']('File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20'+_0x41c7d3+'\x20('+formatBytes(_0xd28843[_0x3d47e8(0x10d)])+')');return{'path':_0x41c7d3,'size':_0xd28843['size']};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a22_0x4563bb=a22_0x51ab;(function(_0x585910,_0x9186e1){const _0x3190e0=a22_0x51ab,_0x5c7c38=_0x585910();while(!![]){try{const _0xca0d9a=-parseInt(_0x3190e0(0xa8))/0x1+parseInt(_0x3190e0(0xa2))/0x2+parseInt(_0x3190e0(0xcc))/0x3*(parseInt(_0x3190e0(0xa0))/0x4)+parseInt(_0x3190e0(0xc9))/0x5*(-parseInt(_0x3190e0(0x8f))/0x6)+-parseInt(_0x3190e0(0x9b))/0x7+-parseInt(_0x3190e0(0xa9))/0x8+parseInt(_0x3190e0(0xa6))/0x9*(parseInt(_0x3190e0(0xca))/0xa);if(_0xca0d9a===_0x9186e1)break;else _0x5c7c38['push'](_0x5c7c38['shift']());}catch(_0x3c7cf8){_0x5c7c38['push'](_0x5c7c38['shift']());}}}(a22_0x225d,0x60e52));import{CliErrors}from'../../errors.js';function a22_0x225d(){const _0x441cc3=['pageSize','stringify','args','\x20config\x20get\x20<key>','get','Config\x20files:\x0a','List\x20current\x20config','Set\x20a\x20config\x20value','trim','read','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','appcode','delete','\x22\x20is\x20not\x20settable.','includes','join','riskLevel','Get\x20a\x20config\x20value','pretty','\x20\x20global:\x20\x20','Delete\x20a\x20config\x20value','Key\x20not\x20found:\x20','list','\x20(global)','raw','139010MWoala','307460stFXfL','`\x20=\x20\x22','93OmHsfe','alias','key','24zCMNqg','Value\x20to\x20assign','\x22.\x20Allowed:\x20','Write\x20to\x20global\x20config','bool','\x22\x20not\x20found\x20at\x20top\x20level.','length','\x20\x20project:\x20','split','config','object','isArray','2652048qDqUUO','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','log','../../context.js','validation','96988aoNMKa','format','931636dEXgaE','Usage:\x20','field','set','171QndCgA','Missing\x20key\x20or\x20value.','546548VkYBnE','2945176kOWCoB','global','apps','project-or-global-explicit','Missing\x20key\x20argument.','Set\x20`','(none)'];a22_0x225d=function(){return _0x441cc3;};return a22_0x225d();}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':a22_0x4563bb(0xaa),'type':'boolean','description':a22_0x4563bb(0x92),'default':![]};function parseAliasAppcodeSetKey(_0x5a94ed){const _0x4877a4=a22_0x4563bb,_0x1c1be3=_0x5a94ed[_0x4877a4(0x97)]('.');if(_0x1c1be3['length']!==0x3||_0x1c1be3[0x0]!==_0x4877a4(0xab)||_0x1c1be3[0x2]!==_0x4877a4(0xbb))return undefined;const _0x5875e4=_0x1c1be3[0x1]?.[_0x4877a4(0xb8)]();return _0x5875e4?_0x5875e4:undefined;}function a22_0x51ab(_0x24b570,_0x4b4bf6){_0x24b570=_0x24b570-0x8f;const _0x225d4f=a22_0x225d();let _0x51ab5a=_0x225d4f[_0x24b570];return _0x51ab5a;}function parseAliasDeleteKey(_0x8811f){const _0x5282a7=a22_0x4563bb,_0x4303a6=_0x8811f[_0x5282a7(0x97)]('.');if(_0x4303a6['length']===0x2&&_0x4303a6[0x0]===_0x5282a7(0xab)){const _0x23dfae=_0x4303a6[0x1]?.[_0x5282a7(0xb8)]();return _0x23dfae?{'alias':_0x23dfae}:undefined;}if(_0x4303a6[_0x5282a7(0x95)]===0x3&&_0x4303a6[0x0]==='apps'&&_0x4303a6[0x2]===_0x5282a7(0xbb)){const _0x45be67=_0x4303a6[0x1]?.[_0x5282a7(0xb8)]();return _0x45be67?{'alias':_0x45be67,'field':_0x5282a7(0xbb)}:undefined;}return undefined;}function setLocalAppAlias(_0x330095,_0x593ed7,_0x46a708){const _0x59362f=a22_0x4563bb,_0x2b5634=_0x330095[_0x59362f(0xab)]&&typeof _0x330095[_0x59362f(0xab)]==='object'&&!Array[_0x59362f(0x9a)](_0x330095[_0x59362f(0xab)])?_0x330095[_0x59362f(0xab)]:{},_0x73cf3=_0x2b5634[_0x593ed7]&&typeof _0x2b5634[_0x593ed7]===_0x59362f(0x99)&&!Array[_0x59362f(0x9a)](_0x2b5634[_0x593ed7])?_0x2b5634[_0x593ed7]:{};_0x73cf3['appcode']=_0x46a708,_0x2b5634[_0x593ed7]=_0x73cf3,_0x330095[_0x59362f(0xab)]=_0x2b5634;}function deleteLocalAppAlias(_0x4e343f,_0xe44f6f){const _0x28cf4f=a22_0x4563bb;if(!_0x4e343f[_0x28cf4f(0xab)]||typeof _0x4e343f['apps']!==_0x28cf4f(0x99)||Array['isArray'](_0x4e343f[_0x28cf4f(0xab)]))return![];const _0x529990=_0x4e343f[_0x28cf4f(0xab)],_0x1e9c43=_0x529990[_0xe44f6f[_0x28cf4f(0xcd)]];if(!_0x1e9c43||typeof _0x1e9c43!==_0x28cf4f(0x99)||Array[_0x28cf4f(0x9a)](_0x1e9c43))return![];if(!_0xe44f6f['field'])return delete _0x529990[_0xe44f6f[_0x28cf4f(0xcd)]],!![];if(!(_0xe44f6f[_0x28cf4f(0xa4)]in _0x1e9c43))return![];return delete _0x1e9c43[_0xe44f6f['field']],Object['keys'](_0x1e9c43)[_0x28cf4f(0x95)]===0x0&&delete _0x529990[_0xe44f6f[_0x28cf4f(0xcd)]],!![];}const listDef={'service':'config','command':a22_0x4563bb(0xc6),'description':a22_0x4563bb(0xb6),'risk':a22_0x4563bb(0xb9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x597633){const _0x211d27=a22_0x4563bb,{buildConfigFromFlags:_0x1e9855}=await import(_0x211d27(0x9e)),_0x34e1c0=_0x1e9855({}),_0x1949c5=getProjectConfigPath(),_0x172377=resolveWriteConfigPath(_0x211d27(0xaa));if(_0x597633[_0x211d27(0xa1)]===_0x211d27(0xc2))return{'ok':!![],'message':_0x211d27(0x9c)+(JSON[_0x211d27(0xb1)](_0x34e1c0[_0x211d27(0xc8)],null,0x2)+'\x0a\x0a')+_0x211d27(0xb5)+(_0x211d27(0x96)+(_0x1949c5??_0x211d27(0xaf))+'\x0a')+(_0x211d27(0xc3)+_0x172377)};return{'ok':!![],'data':{'effective':_0x34e1c0[_0x211d27(0xc8)],'configFiles':{'project':_0x1949c5??null,'global':_0x172377}}};}},getDef={'service':a22_0x4563bb(0x98),'command':a22_0x4563bb(0xb4),'description':a22_0x4563bb(0xc1),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x4563bb(0xce),'description':'Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','required':!![]}],'flags':[],async 'execute'(_0x26afc4){const _0x4c2ed6=a22_0x4563bb,_0x320e8d=_0x26afc4[_0x4c2ed6(0xb2)][0x0];if(!_0x320e8d)throw CliErrors['validation'](_0x4c2ed6(0xad),'Usage:\x20'+CLI_BIN_NAME+_0x4c2ed6(0xb3));const {buildConfigFromFlags:_0x3586a5}=await import(_0x4c2ed6(0x9e)),{raw:_0x17e6e0}=_0x3586a5({});if(_0x320e8d[_0x4c2ed6(0xbe)]('.')){const _0x39de1f=_0x320e8d['split']('.');let _0x5bc7b6=_0x17e6e0;for(const _0x241301 of _0x39de1f){if(_0x5bc7b6==null||typeof _0x5bc7b6!==_0x4c2ed6(0x99))throw CliErrors['validation'](_0x4c2ed6(0xc5)+_0x320e8d);_0x5bc7b6=_0x5bc7b6[_0x241301];}if(_0x5bc7b6===undefined)throw CliErrors[_0x4c2ed6(0x9f)]('Key\x20not\x20found:\x20'+_0x320e8d);return console[_0x4c2ed6(0x9d)](typeof _0x5bc7b6===_0x4c2ed6(0x99)?JSON[_0x4c2ed6(0xb1)](_0x5bc7b6,null,0x2):String(_0x5bc7b6)),{'ok':!![]};}const _0x1e0b71=_0x17e6e0[_0x320e8d];if(_0x1e0b71===undefined)throw CliErrors[_0x4c2ed6(0x9f)](_0x4c2ed6(0xc5)+_0x320e8d);return console[_0x4c2ed6(0x9d)](typeof _0x1e0b71===_0x4c2ed6(0x99)?JSON[_0x4c2ed6(0xb1)](_0x1e0b71,null,0x2):String(_0x1e0b71)),{'ok':!![]};}},setDef={'service':'config','command':a22_0x4563bb(0xa5),'description':a22_0x4563bb(0xb7),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x4563bb(0xce),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':a22_0x4563bb(0x90),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x250986){const _0x588266=a22_0x4563bb,_0x168f57=_0x250986[_0x588266(0xb2)][0x0],_0x31de00=_0x250986[_0x588266(0xb2)][0x1];if(!_0x168f57||_0x31de00===undefined)throw CliErrors[_0x588266(0x9f)](_0x588266(0xa7),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x168f57]&&!ENUM_KEYS[_0x168f57]['includes'](_0x31de00))throw CliErrors[_0x588266(0x9f)]('Invalid\x20value\x20for\x20\x22'+_0x168f57+_0x588266(0x91)+ENUM_KEYS[_0x168f57][_0x588266(0xbf)](',\x20'));if(_0x168f57===_0x588266(0xc0))throw CliErrors[_0x588266(0x9f)](_0x588266(0xba));if(_0x168f57===_0x588266(0xb0)){const _0x1bbcea=Number(_0x31de00);if(isNaN(_0x1bbcea)||_0x1bbcea<=0x0)throw CliErrors[_0x588266(0x9f)]('pageSize\x20must\x20be\x20a\x20positive\x20number');}const _0x333424=resolveWriteScope({'explicitGlobal':_0x250986[_0x588266(0x93)]('global'),'policy':_0x588266(0xac)}),_0x7f6f3f=toScopeFlags(_0x333424),_0x2c2d30=readScopedConfig(_0x7f6f3f),_0x19c6c1=parseAliasAppcodeSetKey(_0x168f57);if(!_0x19c6c1&&!isTopLevelConfigKey(_0x168f57))throw CliErrors[_0x588266(0x9f)]('Top-level\x20key\x20\x22'+_0x168f57+_0x588266(0xbd),'Settable\x20keys:\x20'+getTopLevelConfigKeySummary()+';\x20apps.<alias>.appcode');return _0x19c6c1?setLocalAppAlias(_0x2c2d30,_0x19c6c1,_0x31de00):_0x2c2d30[_0x168f57]=_0x168f57===_0x588266(0xb0)?Number(_0x31de00):_0x31de00,console[_0x588266(0x9d)](_0x588266(0xae)+_0x168f57+_0x588266(0xcb)+_0x31de00+'\x22'+(_0x333424===_0x588266(0xaa)?_0x588266(0xc7):'')),writeScopedConfig(_0x2c2d30,_0x7f6f3f),{'ok':!![]};}},deleteDef={'service':a22_0x4563bb(0x98),'command':a22_0x4563bb(0xbc),'description':a22_0x4563bb(0xc4),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x4563bb(0xce),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x316f1e){const _0xe551d8=a22_0x4563bb,_0x238628=_0x316f1e[_0xe551d8(0xb2)][0x0];if(!_0x238628)throw CliErrors[_0xe551d8(0x9f)](_0xe551d8(0xad),_0xe551d8(0xa3)+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x269d7a=resolveWriteScope({'explicitGlobal':_0x316f1e[_0xe551d8(0x93)](_0xe551d8(0xaa)),'policy':'project-or-global-explicit'}),_0x39b6b0=toScopeFlags(_0x269d7a),_0x44bbdc=readScopedConfig(_0x39b6b0),_0x3ce465=parseAliasDeleteKey(_0x238628);if(_0x3ce465){if(!deleteLocalAppAlias(_0x44bbdc,_0x3ce465))throw CliErrors[_0xe551d8(0x9f)](_0xe551d8(0xc5)+_0x238628);return console[_0xe551d8(0x9d)]('Deleted\x20`'+_0x238628+'`'+(_0x269d7a===_0xe551d8(0xaa)?_0xe551d8(0xc7):'')),writeScopedConfig(_0x44bbdc,_0x39b6b0),{'ok':!![]};}if(_0x44bbdc[_0x238628]===undefined)throw CliErrors[_0xe551d8(0x9f)]('Key\x20\x22'+_0x238628+_0xe551d8(0x94));return delete _0x44bbdc[_0x238628],console['log']('Deleted\x20`'+_0x238628+'`'+(_0x269d7a===_0xe551d8(0xaa)?_0xe551d8(0xc7):'')),writeScopedConfig(_0x44bbdc,_0x39b6b0),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
1
|
+
const a22_0x3d2dd9=a22_0x25b5;(function(_0x26492c,_0x58e21a){const _0x5d2a70=a22_0x25b5,_0xaa648f=_0x26492c();while(!![]){try{const _0x53e370=parseInt(_0x5d2a70(0x1be))/0x1*(parseInt(_0x5d2a70(0x1a7))/0x2)+parseInt(_0x5d2a70(0x1ba))/0x3+-parseInt(_0x5d2a70(0x1b2))/0x4*(-parseInt(_0x5d2a70(0x199))/0x5)+-parseInt(_0x5d2a70(0x1c2))/0x6+-parseInt(_0x5d2a70(0x18f))/0x7*(-parseInt(_0x5d2a70(0x1d0))/0x8)+parseInt(_0x5d2a70(0x1d2))/0x9+-parseInt(_0x5d2a70(0x194))/0xa;if(_0x53e370===_0x58e21a)break;else _0xaa648f['push'](_0xaa648f['shift']());}catch(_0x51aaea){_0xaa648f['push'](_0xaa648f['shift']());}}}(a22_0x4de8,0xf2143));function a22_0x25b5(_0x112810,_0xf38630){_0x112810=_0x112810-0x18c;const _0x4de834=a22_0x4de8();let _0x25b515=_0x4de834[_0x112810];return _0x25b515;}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':a22_0x3d2dd9(0x1ca),'type':a22_0x3d2dd9(0x18e),'description':a22_0x3d2dd9(0x1b7),'default':![]};function parseAliasAppcodeSetKey(_0x1db43d){const _0x115054=a22_0x3d2dd9,_0x525807=_0x1db43d[_0x115054(0x1d1)]('.');if(_0x525807[_0x115054(0x1b9)]!==0x3||_0x525807[0x0]!==_0x115054(0x1c9)||_0x525807[0x2]!==_0x115054(0x191))return undefined;const _0x1e581a=_0x525807[0x1]?.[_0x115054(0x1c6)]();return _0x1e581a?_0x1e581a:undefined;}function parseAliasDeleteKey(_0x285cf7){const _0x272751=a22_0x3d2dd9,_0x196288=_0x285cf7['split']('.');if(_0x196288[_0x272751(0x1b9)]===0x2&&_0x196288[0x0]===_0x272751(0x1c9)){const _0x3712e7=_0x196288[0x1]?.[_0x272751(0x1c6)]();return _0x3712e7?{'alias':_0x3712e7}:undefined;}if(_0x196288[_0x272751(0x1b9)]===0x3&&_0x196288[0x0]===_0x272751(0x1c9)&&_0x196288[0x2]==='appcode'){const _0x4a0990=_0x196288[0x1]?.[_0x272751(0x1c6)]();return _0x4a0990?{'alias':_0x4a0990,'field':_0x272751(0x191)}:undefined;}return undefined;}function setLocalAppAlias(_0x48d09a,_0x53d4b2,_0x2cd6a6){const _0x4125c4=a22_0x3d2dd9,_0x316010=_0x48d09a[_0x4125c4(0x1c9)]&&typeof _0x48d09a[_0x4125c4(0x1c9)]==='object'&&!Array[_0x4125c4(0x1a3)](_0x48d09a[_0x4125c4(0x1c9)])?_0x48d09a[_0x4125c4(0x1c9)]:{},_0x291b7d=_0x316010[_0x53d4b2]&&typeof _0x316010[_0x53d4b2]==='object'&&!Array['isArray'](_0x316010[_0x53d4b2])?_0x316010[_0x53d4b2]:{};_0x291b7d['appcode']=_0x2cd6a6,_0x316010[_0x53d4b2]=_0x291b7d,_0x48d09a[_0x4125c4(0x1c9)]=_0x316010;}function deleteLocalAppAlias(_0x58cd28,_0x499e65){const _0x233349=a22_0x3d2dd9;if(!_0x58cd28[_0x233349(0x1c9)]||typeof _0x58cd28[_0x233349(0x1c9)]!==_0x233349(0x1ad)||Array[_0x233349(0x1a3)](_0x58cd28[_0x233349(0x1c9)]))return![];const _0x5723d4=_0x58cd28[_0x233349(0x1c9)],_0x2d0693=_0x5723d4[_0x499e65[_0x233349(0x1a2)]];if(!_0x2d0693||typeof _0x2d0693!==_0x233349(0x1ad)||Array['isArray'](_0x2d0693))return![];if(!_0x499e65[_0x233349(0x1ac)])return delete _0x5723d4[_0x499e65[_0x233349(0x1a2)]],!![];if(!(_0x499e65[_0x233349(0x1ac)]in _0x2d0693))return![];return delete _0x2d0693[_0x499e65[_0x233349(0x1ac)]],Object[_0x233349(0x1b5)](_0x2d0693)[_0x233349(0x1b9)]===0x0&&delete _0x5723d4[_0x499e65['alias']],!![];}const listDef={'service':a22_0x3d2dd9(0x1bb),'command':a22_0x3d2dd9(0x192),'description':a22_0x3d2dd9(0x1a5),'risk':a22_0x3d2dd9(0x1cf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x3b62d2){const _0x5d9633=a22_0x3d2dd9,{buildConfigFromFlags:_0x3ac9fc}=await import('../../context.js'),_0x53c5d6=_0x3ac9fc({}),_0x2b5b63=getProjectConfigPath(),_0x244094=resolveWriteConfigPath(_0x5d9633(0x1ca));if(_0x3b62d2['format']===_0x5d9633(0x19a))return{'ok':!![],'message':_0x5d9633(0x1b0)+(JSON['stringify'](_0x53c5d6[_0x5d9633(0x1bf)],null,0x2)+'\x0a\x0a')+_0x5d9633(0x1bd)+(_0x5d9633(0x19f)+(_0x2b5b63??_0x5d9633(0x19c))+'\x0a')+(_0x5d9633(0x1a8)+_0x244094)};return{'ok':!![],'data':{'effective':_0x53c5d6[_0x5d9633(0x1bf)],'configFiles':{'project':_0x2b5b63??null,'global':_0x244094}}};}},getDef={'service':a22_0x3d2dd9(0x1bb),'command':'get','description':a22_0x3d2dd9(0x193),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':'Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','required':!![]}],'flags':[],async 'execute'(_0x416c1b){const _0x3d76c4=a22_0x3d2dd9,_0x4b15aa=_0x416c1b[_0x3d76c4(0x196)][0x0];if(!_0x4b15aa)throw CliErrors[_0x3d76c4(0x190)](_0x3d76c4(0x195),_0x3d76c4(0x1b3)+CLI_BIN_NAME+'\x20config\x20get\x20<key>');const {buildConfigFromFlags:_0x1da213}=await import(_0x3d76c4(0x1b8)),{raw:_0x30248b}=_0x1da213({});if(_0x4b15aa[_0x3d76c4(0x1b4)]('.')){const _0x3e658f=_0x4b15aa[_0x3d76c4(0x1d1)]('.');let _0x1af02c=_0x30248b;for(const _0x2bd123 of _0x3e658f){if(_0x1af02c==null||typeof _0x1af02c!==_0x3d76c4(0x1ad))throw CliErrors['validation'](_0x3d76c4(0x1ce)+_0x4b15aa);_0x1af02c=_0x1af02c[_0x2bd123];}if(_0x1af02c===undefined)throw CliErrors[_0x3d76c4(0x190)]('Key\x20not\x20found:\x20'+_0x4b15aa);return console[_0x3d76c4(0x18c)](typeof _0x1af02c===_0x3d76c4(0x1ad)?JSON[_0x3d76c4(0x1a1)](_0x1af02c,null,0x2):String(_0x1af02c)),{'ok':!![]};}const _0x14350d=_0x30248b[_0x4b15aa];if(_0x14350d===undefined)throw CliErrors['validation'](_0x3d76c4(0x1ce)+_0x4b15aa);return console[_0x3d76c4(0x18c)](typeof _0x14350d===_0x3d76c4(0x1ad)?JSON[_0x3d76c4(0x1a1)](_0x14350d,null,0x2):String(_0x14350d)),{'ok':!![]};}},setDef={'service':a22_0x3d2dd9(0x1bb),'command':a22_0x3d2dd9(0x1cc),'description':a22_0x3d2dd9(0x19d),'risk':a22_0x3d2dd9(0x1c7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x3d2dd9(0x1aa),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x3d2dd9(0x1c0),'description':a22_0x3d2dd9(0x1c5),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x48a13a){const _0x335830=a22_0x3d2dd9,_0x3e19d2=_0x48a13a['args'][0x0],_0x46bcf7=_0x48a13a[_0x335830(0x196)][0x1];if(!_0x3e19d2||_0x46bcf7===undefined)throw CliErrors[_0x335830(0x190)](_0x335830(0x1c8),_0x335830(0x1b3)+CLI_BIN_NAME+_0x335830(0x18d));if(ENUM_KEYS[_0x3e19d2]&&!ENUM_KEYS[_0x3e19d2][_0x335830(0x1b4)](_0x46bcf7))throw CliErrors[_0x335830(0x190)](_0x335830(0x1a4)+_0x3e19d2+_0x335830(0x1a0)+ENUM_KEYS[_0x3e19d2][_0x335830(0x1a9)](',\x20'));if(_0x3e19d2===_0x335830(0x1ae))throw CliErrors[_0x335830(0x190)](_0x335830(0x1c1));if(_0x3e19d2==='pageSize'){const _0xfc5f33=Number(_0x46bcf7);if(isNaN(_0xfc5f33)||_0xfc5f33<=0x0)throw CliErrors[_0x335830(0x190)](_0x335830(0x1c3));}const _0x394d04=resolveWriteScope({'explicitGlobal':_0x48a13a[_0x335830(0x1a6)](_0x335830(0x1ca)),'policy':_0x335830(0x197)}),_0x2444f5=toScopeFlags(_0x394d04),_0x3ff3ed=readScopedConfig(_0x2444f5),_0x4cf655=parseAliasAppcodeSetKey(_0x3e19d2);if(!_0x4cf655&&!isTopLevelConfigKey(_0x3e19d2))throw CliErrors[_0x335830(0x190)]('Top-level\x20key\x20\x22'+_0x3e19d2+_0x335830(0x198),_0x335830(0x1b1)+getTopLevelConfigKeySummary()+_0x335830(0x1cd));return _0x4cf655?setLocalAppAlias(_0x3ff3ed,_0x4cf655,_0x46bcf7):_0x3ff3ed[_0x3e19d2]=_0x3e19d2===_0x335830(0x19e)?Number(_0x46bcf7):_0x46bcf7,console[_0x335830(0x18c)](_0x335830(0x1bc)+_0x3e19d2+'`\x20=\x20\x22'+_0x46bcf7+'\x22'+(_0x394d04==='global'?_0x335830(0x1af):'')),writeScopedConfig(_0x3ff3ed,_0x2444f5),{'ok':!![]};}},deleteDef={'service':a22_0x3d2dd9(0x1bb),'command':a22_0x3d2dd9(0x1cb),'description':a22_0x3d2dd9(0x19b),'risk':a22_0x3d2dd9(0x1c7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x38459d){const _0x54cce6=a22_0x3d2dd9,_0x3865ee=_0x38459d[_0x54cce6(0x196)][0x0];if(!_0x3865ee)throw CliErrors['validation'](_0x54cce6(0x195),'Usage:\x20'+CLI_BIN_NAME+_0x54cce6(0x1b6));const _0x3f18ea=resolveWriteScope({'explicitGlobal':_0x38459d[_0x54cce6(0x1a6)](_0x54cce6(0x1ca)),'policy':_0x54cce6(0x197)}),_0x2a85e8=toScopeFlags(_0x3f18ea),_0x36dad9=readScopedConfig(_0x2a85e8),_0x466b24=parseAliasDeleteKey(_0x3865ee);if(_0x466b24){if(!deleteLocalAppAlias(_0x36dad9,_0x466b24))throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x3865ee);return console[_0x54cce6(0x18c)]('Deleted\x20`'+_0x3865ee+'`'+(_0x3f18ea===_0x54cce6(0x1ca)?_0x54cce6(0x1af):'')),writeScopedConfig(_0x36dad9,_0x2a85e8),{'ok':!![]};}if(_0x36dad9[_0x3865ee]===undefined)throw CliErrors[_0x54cce6(0x190)](_0x54cce6(0x1ab)+_0x3865ee+_0x54cce6(0x1c4));return delete _0x36dad9[_0x3865ee],console[_0x54cce6(0x18c)]('Deleted\x20`'+_0x3865ee+'`'+(_0x3f18ea===_0x54cce6(0x1ca)?_0x54cce6(0x1af):'')),writeScopedConfig(_0x36dad9,_0x2a85e8),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];function a22_0x4de8(){const _0x151e92=['join','key','Key\x20\x22','field','object','riskLevel','\x20(global)','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','Settable\x20keys:\x20','4IuVSxN','Usage:\x20','includes','keys','\x20config\x20delete\x20<key>\x20[--global]','Write\x20to\x20global\x20config','../../context.js','length','2775315WDvsQY','config','Set\x20`','Config\x20files:\x0a','27005QLUXLr','raw','value','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','9958302UFOhfp','pageSize\x20must\x20be\x20a\x20positive\x20number','\x22\x20not\x20found\x20at\x20top\x20level.','Value\x20to\x20assign','trim','write','Missing\x20key\x20or\x20value.','apps','global','delete','set',';\x20apps.<alias>.appcode','Key\x20not\x20found:\x20','read','9496oZoonr','split','16197237aIMaFo','log','\x20config\x20set\x20<key>\x20<value>\x20[--global]','boolean','315DcmNad','validation','appcode','list','Get\x20a\x20config\x20value','30613520iJoGEi','Missing\x20key\x20argument.','args','project-or-global-explicit','\x22\x20is\x20not\x20settable.','8055830HPzhQU','pretty','Delete\x20a\x20config\x20value','(none)','Set\x20a\x20config\x20value','pageSize','\x20\x20project:\x20','\x22.\x20Allowed:\x20','stringify','alias','isArray','Invalid\x20value\x20for\x20\x22','List\x20current\x20config','bool','98HXRjHp','\x20\x20global:\x20\x20'];a22_0x4de8=function(){return _0x151e92;};return a22_0x4de8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a23_0x4e96(_0x19e891,_0x1b750d){_0x19e891=_0x19e891-0x16e;var _0x46d000=a23_0x46d0();var _0x4e96df=_0x46d000[_0x19e891];return _0x4e96df;}(function(_0x4427a1,_0x2a6268){var _0x309d0b=a23_0x4e96,_0x42d9f3=_0x4427a1();while(!![]){try{var _0x3a69cd=-parseInt(_0x309d0b(0x16e))/0x1*(parseInt(_0x309d0b(0x172))/0x2)+parseInt(_0x309d0b(0x170))/0x3+-parseInt(_0x309d0b(0x174))/0x4*(parseInt(_0x309d0b(0x176))/0x5)+-parseInt(_0x309d0b(0x175))/0x6*(parseInt(_0x309d0b(0x177))/0x7)+parseInt(_0x309d0b(0x16f))/0x8*(-parseInt(_0x309d0b(0x179))/0x9)+parseInt(_0x309d0b(0x171))/0xa*(parseInt(_0x309d0b(0x178))/0xb)+parseInt(_0x309d0b(0x173))/0xc;if(_0x3a69cd===_0x2a6268)break;else _0x42d9f3['push'](_0x42d9f3['shift']());}catch(_0x4da3aa){_0x42d9f3['push'](_0x42d9f3['shift']());}}}(a23_0x46d0,0x21ed3));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';function a23_0x46d0(){var _0x37c786=['16379YyEWEc','4419MnsvjZ','1nVCTfZ','1904TAtylf','546330SJSUQq','1180fuDIXK','66818igUGqx','3663900jBCFMc','6260ibNfxZ','168828pPKctu','835DTGSgl','28SiBQUr'];a23_0x46d0=function(){return _0x37c786;};return a23_0x46d0();}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';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a24_0x21b592=a24_0x11a1;(function(_0x11f044,_0x2f50f2){const _0x5f36fe=a24_0x11a1,_0x26ccee=_0x11f044();while(!![]){try{const _0x4ac224=parseInt(_0x5f36fe(0xfb))/0x1*(parseInt(_0x5f36fe(0x102))/0x2)+parseInt(_0x5f36fe(0x132))/0x3*(-parseInt(_0x5f36fe(0x147))/0x4)+parseInt(_0x5f36fe(0xf9))/0x5+-parseInt(_0x5f36fe(0x124))/0x6+parseInt(_0x5f36fe(0x105))/0x7+parseInt(_0x5f36fe(0x14a))/0x8*(-parseInt(_0x5f36fe(0xf8))/0x9)+-parseInt(_0x5f36fe(0x13d))/0xa;if(_0x4ac224===_0x2f50f2)break;else _0x26ccee['push'](_0x26ccee['shift']());}catch(_0x1975c6){_0x26ccee['push'](_0x26ccee['shift']());}}}(a24_0x129f,0x71a99));function a24_0x129f(){const _0x2f096b=['\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]','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','str','721264FiCMra','\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}}','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','1416uoNTaR','description','map','now','POST','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','write','\x20on\x20dataset\x20','32058qSChuJ','3372825WEpVmz','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','109379pczlcY','\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','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','high-risk-write','data','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\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}}]}','14CFaTBP','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','join','4401376yFdyYI','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','\x20\x20EXAMPLES','\x20\x20AGGREGATE\x20TYPES','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','paramsRequired','delete','\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}}','\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\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}','\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}}','\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}}','paramsHint','\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}}','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','aggregate','\x20\x20PAGINATION','operation','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','\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]','batchCreate','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','getOne','\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}}]}','Preview:\x20data\x20','update','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','risk','\x20\x20WHERE\x20OPERATORS','params','\x20\x20PARAMS\x20STRUCTURE','1984230BbqtAX','\x20completed\x20in\x20','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\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}}','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\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}','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\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}','filter','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','length','code','6MJBdIW','\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}}','body','\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\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$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]}}','batch','/api/{appCode}/','build','\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','read','2816140CPwhJf','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','create','\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}','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','command','Update\x20an\x20existing\x20record'];a24_0x129f=function(){return _0x2f096b;};return a24_0x129f();}import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';function a24_0x11a1(_0x5a0536,_0x452236){_0x5a0536=_0x5a0536-0xf3;const _0x129f41=a24_0x129f();let _0x11a1bf=_0x129f41[_0x5a0536];return _0x11a1bf;}import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':'filter','operation':a24_0x21b592(0x12e),'risk':a24_0x21b592(0x13c),'paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a24_0x21b592(0xf4)+a24_0x21b592(0x149),'helpExtra':[a24_0x21b592(0x121),a24_0x21b592(0x133),a24_0x21b592(0x112),a24_0x21b592(0x10f),a24_0x21b592(0x135),a24_0x21b592(0x136),a24_0x21b592(0x129),a24_0x21b592(0x137),a24_0x21b592(0x110),a24_0x21b592(0x10c),a24_0x21b592(0x148),'',a24_0x21b592(0x14f),a24_0x21b592(0x101),a24_0x21b592(0x11c),'','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)',a24_0x21b592(0x12a),a24_0x21b592(0x144),'\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}]',a24_0x21b592(0x103),a24_0x21b592(0x12f),'',a24_0x21b592(0x115),a24_0x21b592(0xf5),a24_0x21b592(0x128),a24_0x21b592(0x11f)][a24_0x21b592(0x104)]('\x0a')},{'command':a24_0x21b592(0x11b),'operation':'getOne','risk':'read','paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a24_0x21b592(0x141)},{'command':a24_0x21b592(0x13f),'operation':a24_0x21b592(0x13f),'risk':a24_0x21b592(0xf6),'paramsRequired':!![],'description':a24_0x21b592(0x109),'paramsHint':a24_0x21b592(0xfd)},{'command':a24_0x21b592(0x119),'operation':a24_0x21b592(0x119),'risk':a24_0x21b592(0xf6),'paramsRequired':!![],'description':a24_0x21b592(0x12c),'paramsHint':a24_0x21b592(0x100)},{'command':a24_0x21b592(0x11e),'operation':'update','risk':a24_0x21b592(0xf6),'paramsRequired':!![],'description':a24_0x21b592(0x143),'paramsHint':a24_0x21b592(0x127)+a24_0x21b592(0x106)},{'command':a24_0x21b592(0x10b),'operation':a24_0x21b592(0x10b),'risk':a24_0x21b592(0xfe),'paramsRequired':!![],'description':a24_0x21b592(0x11a),'paramsHint':a24_0x21b592(0x141)},{'command':a24_0x21b592(0x114),'operation':'aggregate','risk':'read','paramsRequired':![],'description':a24_0x21b592(0x113),'paramsHint':'JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20'+'Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra':[a24_0x21b592(0x108),a24_0x21b592(0x10e),a24_0x21b592(0x12b),'\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\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}',a24_0x21b592(0x12d),'\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}',a24_0x21b592(0x140),'',a24_0x21b592(0x123),a24_0x21b592(0x118),a24_0x21b592(0x126),a24_0x21b592(0xf3),a24_0x21b592(0xfa),a24_0x21b592(0x10d),a24_0x21b592(0x117),'',a24_0x21b592(0x107),a24_0x21b592(0x145),a24_0x21b592(0x13b),'','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter',a24_0x21b592(0xfc),'',a24_0x21b592(0x13e)][a24_0x21b592(0x104)]('\x0a')}];function makeDataCommand(_0x280f33){const _0x55d2a7=a24_0x21b592,_0x1a8fbe='data\x20'+_0x280f33[_0x55d2a7(0x142)],_0x265e9e={'service':_0x55d2a7(0xff),'command':_0x280f33[_0x55d2a7(0x142)],'description':_0x280f33[_0x55d2a7(0x14b)],'risk':_0x280f33['risk'],'helpExtra':_0x280f33['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x280f33[_0x55d2a7(0x111)]}],'validate':async _0x4d75b8=>{const _0xe78064=_0x55d2a7;_0x280f33[_0xe78064(0x10a)]&&requireAnyOf(_0x4d75b8,[_0xe78064(0x122)],_0x1a8fbe),_0x280f33[_0xe78064(0x116)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x4d75b8['str'](_0xe78064(0x122)))),_0x280f33[_0xe78064(0x116)]==='update'&&parseUpdateIdsFromParams(parseJsonParams(_0x4d75b8[_0xe78064(0x146)](_0xe78064(0x122)))??{});},async 'execute'(_0x382a14){const _0x3a6e26=_0x55d2a7,_0x110584=_0x382a14['str'](_0x3a6e26(0x131)),_0x101cc6=_0x280f33[_0x3a6e26(0x116)]===_0x3a6e26(0x119)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x382a14[_0x3a6e26(0x146)](_0x3a6e26(0x122)))):parseJsonParams(_0x382a14[_0x3a6e26(0x146)](_0x3a6e26(0x122)))??{},_0x41f061=_0x280f33['operation']===_0x3a6e26(0x11e)?parseUpdateIdsFromParams(_0x101cc6):undefined,_0xddc462=_0x41f061?normalizeUpdateParamsForRuntime(_0x101cc6,_0x41f061):_0x101cc6,_0x49028e=Date[_0x3a6e26(0x14d)](),_0x246d1f=await executeData(_0x110584,_0x280f33[_0x3a6e26(0x116)],_0xddc462),_0x37ec19=Date[_0x3a6e26(0x14d)]()-_0x49028e,_0xd4ecaf=_0x41f061&&_0x41f061['length']>0x1?buildBatchUpdateResult(_0x41f061,_0x246d1f):_0x246d1f;return{'ok':!![],'data':{'result':_0xd4ecaf,'elapsed':_0x37ec19},'message':'data\x20'+_0x280f33[_0x3a6e26(0x142)]+_0x3a6e26(0x125)+_0x37ec19+'ms'};}};return _0x280f33[_0x55d2a7(0x120)]!=='read'&&(_0x265e9e['dryRun']=async _0xf550ea=>{const _0x11c768=_0x55d2a7,_0x4cbfbf=_0xf550ea[_0x11c768(0x146)](_0x11c768(0x131)),_0x3086fa=_0x280f33['operation']==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0xf550ea[_0x11c768(0x146)](_0x11c768(0x122)))):parseJsonParams(_0xf550ea[_0x11c768(0x146)](_0x11c768(0x122)))??{};let _0x2bc408=_0x3086fa;if(_0x280f33['operation']==='update'){const _0x252212=parseUpdateIdsFromParams(_0x3086fa);_0x2bc408=normalizeUpdateParamsForRuntime(_0x3086fa,_0x252212);}return dryRun(_0x11c768(0x14e),_0x11c768(0x139)+_0x4cbfbf+'/'+_0x280f33[_0x11c768(0x116)])[_0x11c768(0x134)](_0x2bc408)[_0x11c768(0x14b)](_0x11c768(0x11d)+_0x280f33[_0x11c768(0x142)]+_0x11c768(0xf7)+_0x4cbfbf)[_0x11c768(0x13a)]();}),_0x265e9e;}export const dataDefinitions=specs[a24_0x21b592(0x14c)](makeDataCommand);function buildBatchUpdateResult(_0x5bd7bf,_0x3a4895){const _0x59bc36=a24_0x21b592;return{'operation':_0x59bc36(0x11e),'mode':_0x59bc36(0x138),'ids':_0x5bd7bf,'total':_0x5bd7bf[_0x59bc36(0x130)],'result':_0x3a4895};}
|
|
1
|
+
const a24_0x3477e2=a24_0x2b94;(function(_0x35997a,_0x3b06cb){const _0x528320=a24_0x2b94,_0x4d4296=_0x35997a();while(!![]){try{const _0x4462ac=-parseInt(_0x528320(0x1ef))/0x1+parseInt(_0x528320(0x20c))/0x2+parseInt(_0x528320(0x1ea))/0x3+-parseInt(_0x528320(0x1fa))/0x4+parseInt(_0x528320(0x1f8))/0x5*(-parseInt(_0x528320(0x212))/0x6)+parseInt(_0x528320(0x21f))/0x7+-parseInt(_0x528320(0x1e4))/0x8*(-parseInt(_0x528320(0x1e0))/0x9);if(_0x4462ac===_0x3b06cb)break;else _0x4d4296['push'](_0x4d4296['shift']());}catch(_0x510bba){_0x4d4296['push'](_0x4d4296['shift']());}}}(a24_0x50c4,0x43062));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';function a24_0x2b94(_0x359586,_0xc96156){_0x359586=_0x359586-0x1df;const _0x50c416=a24_0x50c4();let _0x2b940b=_0x50c416[_0x359586];return _0x2b940b;}function a24_0x50c4(){const _0x34c0d2=['update','filter','\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\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','aggregate','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','Filter\x20dataset\x20records\x20with\x20query\x20conditions','write','\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\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}}]','536606TtBdTV','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','command','risk','join','description','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','data\x20','\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$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\x20PAGINATION','\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}','Get\x20a\x20single\x20record\x20by\x20ID','\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}','helpExtra','\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}','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','str','\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}','94617rIRlHE','dryRun','delete','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','408gbLVbW','length','\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}}','operation','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\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}}','25884eBDqxx','\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}}','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\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}}','create','166351UeiNvU','read','\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\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20PARAMS\x20STRUCTURE','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20LOGICAL\x20COMBINATORS','10IyEdFZ','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','746828VNfKgn','\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','\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}}','\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','code','\x20\x20AGGREGATE\x20TYPES','build','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\x20\x20WHERE\x20OPERATORS','batchCreate','\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\x20EXAMPLES','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\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\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','body','\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}','now','410818TQTKJj','\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\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','params','getOne','Preview:\x20data\x20','597810LAPynN','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'];a24_0x50c4=function(){return _0x34c0d2;};return a24_0x50c4();}const specs=[{'command':'filter','operation':a24_0x3477e2(0x216),'risk':a24_0x3477e2(0x1f0),'paramsRequired':![],'description':a24_0x3477e2(0x21b),'paramsHint':a24_0x3477e2(0x1ec)+a24_0x3477e2(0x22f),'helpExtra':[a24_0x3477e2(0x202),'\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}}',a24_0x3477e2(0x1ed),a24_0x3477e2(0x1e9),'\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}}',a24_0x3477e2(0x1e6),a24_0x3477e2(0x1fc),a24_0x3477e2(0x228),a24_0x3477e2(0x1f2),'\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}}',a24_0x3477e2(0x1eb),'',a24_0x3477e2(0x1f7),a24_0x3477e2(0x1f1),a24_0x3477e2(0x204),'',a24_0x3477e2(0x1f3),a24_0x3477e2(0x227),'\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]',a24_0x3477e2(0x21d),a24_0x3477e2(0x225),a24_0x3477e2(0x220),'',a24_0x3477e2(0x229),'\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.',a24_0x3477e2(0x1f6),'\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)'][a24_0x3477e2(0x223)]('\x0a')},{'command':'getOne','operation':a24_0x3477e2(0x210),'risk':'read','paramsRequired':!![],'description':a24_0x3477e2(0x22b),'paramsHint':a24_0x3477e2(0x1f5)},{'command':a24_0x3477e2(0x1ee),'operation':'create','risk':a24_0x3477e2(0x21c),'paramsRequired':!![],'description':a24_0x3477e2(0x201),'paramsHint':a24_0x3477e2(0x206)},{'command':'batchCreate','operation':a24_0x3477e2(0x203),'risk':a24_0x3477e2(0x21c),'paramsRequired':!![],'description':a24_0x3477e2(0x21a),'paramsHint':a24_0x3477e2(0x213)},{'command':a24_0x3477e2(0x215),'operation':a24_0x3477e2(0x215),'risk':a24_0x3477e2(0x21c),'paramsRequired':!![],'description':'Update\x20an\x20existing\x20record','paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20'+'Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27'},{'command':a24_0x3477e2(0x1e2),'operation':a24_0x3477e2(0x1e2),'risk':'high-risk-write','paramsRequired':!![],'description':a24_0x3477e2(0x1e3),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a24_0x3477e2(0x219),'operation':a24_0x3477e2(0x219),'risk':'read','paramsRequired':![],'description':'Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','paramsHint':'JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20'+a24_0x3477e2(0x1e8),'helpExtra':[a24_0x3477e2(0x1ff),a24_0x3477e2(0x20a),a24_0x3477e2(0x1df),a24_0x3477e2(0x207),a24_0x3477e2(0x22e),a24_0x3477e2(0x22a),a24_0x3477e2(0x217),a24_0x3477e2(0x22c),'',a24_0x3477e2(0x1f4),a24_0x3477e2(0x208),a24_0x3477e2(0x1f9),a24_0x3477e2(0x20d),a24_0x3477e2(0x218),a24_0x3477e2(0x21e),a24_0x3477e2(0x20e),'',a24_0x3477e2(0x205),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a24_0x3477e2(0x1fd),'','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter',a24_0x3477e2(0x1fb),'',a24_0x3477e2(0x214)]['join']('\x0a')}];function makeDataCommand(_0xe27be8){const _0x14b797=a24_0x3477e2,_0x78b990='data\x20'+_0xe27be8[_0x14b797(0x221)],_0x1afd7f={'service':'data','command':_0xe27be8[_0x14b797(0x221)],'description':_0xe27be8[_0x14b797(0x224)],'risk':_0xe27be8[_0x14b797(0x222)],'helpExtra':_0xe27be8[_0x14b797(0x22d)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0xe27be8['paramsHint']}],'validate':async _0x27e9ee=>{const _0x50957a=_0x14b797;_0xe27be8['paramsRequired']&&requireAnyOf(_0x27e9ee,[_0x50957a(0x20f)],_0x78b990),_0xe27be8[_0x50957a(0x1e7)]===_0x50957a(0x203)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x27e9ee[_0x50957a(0x230)](_0x50957a(0x20f)))),_0xe27be8['operation']===_0x50957a(0x215)&&parseUpdateIdsFromParams(parseJsonParams(_0x27e9ee[_0x50957a(0x230)](_0x50957a(0x20f)))??{});},async 'execute'(_0x7f8a34){const _0xdb0d26=_0x14b797,_0x38da96=_0x7f8a34['str'](_0xdb0d26(0x1fe)),_0x399223=_0xe27be8[_0xdb0d26(0x1e7)]===_0xdb0d26(0x203)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x7f8a34[_0xdb0d26(0x230)](_0xdb0d26(0x20f)))):parseJsonParams(_0x7f8a34[_0xdb0d26(0x230)](_0xdb0d26(0x20f)))??{},_0x2037f7=_0xe27be8[_0xdb0d26(0x1e7)]==='update'?parseUpdateIdsFromParams(_0x399223):undefined,_0x446c74=_0x2037f7?normalizeUpdateParamsForRuntime(_0x399223,_0x2037f7):_0x399223,_0x34742c=Date[_0xdb0d26(0x20b)](),_0x4059f2=await executeData(_0x38da96,_0xe27be8['operation'],_0x446c74),_0x34d9fc=Date[_0xdb0d26(0x20b)]()-_0x34742c,_0x48acac=_0x2037f7&&_0x2037f7['length']>0x1?buildBatchUpdateResult(_0x2037f7,_0x4059f2):_0x4059f2;return{'ok':!![],'data':{'result':_0x48acac,'elapsed':_0x34d9fc},'message':_0xdb0d26(0x226)+_0xe27be8[_0xdb0d26(0x221)]+'\x20completed\x20in\x20'+_0x34d9fc+'ms'};}};return _0xe27be8[_0x14b797(0x222)]!==_0x14b797(0x1f0)&&(_0x1afd7f[_0x14b797(0x1e1)]=async _0x590dcd=>{const _0x543630=_0x14b797,_0x541f70=_0x590dcd[_0x543630(0x230)](_0x543630(0x1fe)),_0x72a99a=_0xe27be8[_0x543630(0x1e7)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x590dcd['str']('params'))):parseJsonParams(_0x590dcd[_0x543630(0x230)](_0x543630(0x20f)))??{};let _0x418b61=_0x72a99a;if(_0xe27be8[_0x543630(0x1e7)]===_0x543630(0x215)){const _0x422d82=parseUpdateIdsFromParams(_0x72a99a);_0x418b61=normalizeUpdateParamsForRuntime(_0x72a99a,_0x422d82);}return dryRun('POST','/api/{appCode}/'+_0x541f70+'/'+_0xe27be8[_0x543630(0x1e7)])[_0x543630(0x209)](_0x418b61)[_0x543630(0x224)](_0x543630(0x211)+_0xe27be8[_0x543630(0x221)]+'\x20on\x20dataset\x20'+_0x541f70)[_0x543630(0x200)]();}),_0x1afd7f;}export const dataDefinitions=specs['map'](makeDataCommand);function buildBatchUpdateResult(_0xf30a3d,_0x16001f){const _0x4a0607=a24_0x3477e2;return{'operation':_0x4a0607(0x215),'mode':'batch','ids':_0xf30a3d,'total':_0xf30a3d[_0x4a0607(0x1e5)],'result':_0x16001f};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a25_0x3be1(){const _0x196368=['pkField','options','11JZHybP','path','requestBody','doVersion','beforeScriptId','dbType','indexes','detail','afterScriptId','displayName','str','tableName','363kZuwmH','relations','method','entries','dataType','datasetKey','validateRules','isArray','dbName','parse','object','trim','772770WjMKhz','117280GTHQvr','appCode','modifierIdField','string','modifierNameField','updateTimeField','318210GmqZHy','required','map','host','description','dbtableConfig','extend','modelCode','read','split','source','properties','tableComment','responseBody','name','allFieldNames','124AXPCMY','allFields','modelId','dblinkInfoDTO','type','columnCodeListWithDeleted','3pWKAGa','length','requestFields','formatRules','find','responseFields','3759885DcbdSH','relatedPageInfoList','21LqkUgY','filter','323376fOOpaL','doType','dbId','labelField','sourceType','dataset','code','10922510IbQFoj','operations','fields','logicField','deleted'];a25_0x3be1=function(){return _0x196368;};return a25_0x3be1();}const a25_0x54f4b0=a25_0x3283;(function(_0x104c36,_0x5e8a5a){const _0x169ba9=a25_0x3283,_0x519347=_0x104c36();while(!![]){try{const _0x396a00=parseInt(_0x169ba9(0x183))/0x1+parseInt(_0x169ba9(0x18f))/0x2*(parseInt(_0x169ba9(0x1ac))/0x3)+parseInt(_0x169ba9(0x1a6))/0x4*(parseInt(_0x169ba9(0x190))/0x5)+parseInt(_0x169ba9(0x196))/0x6+-parseInt(_0x169ba9(0x167))/0x7*(parseInt(_0x169ba9(0x169))/0x8)+parseInt(_0x169ba9(0x165))/0x9+parseInt(_0x169ba9(0x170))/0xa*(-parseInt(_0x169ba9(0x177))/0xb);if(_0x396a00===_0x5e8a5a)break;else _0x519347['push'](_0x519347['shift']());}catch(_0x1fc8f1){_0x519347['push'](_0x519347['shift']());}}}(a25_0x3be1,0x5a9df));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x5e50a1){const _0x2eb798=a25_0x3283;if(_0x5e50a1['deleted'])return null;const _0x509dc1=Boolean(_0x5e50a1['displayName']!==undefined||_0x5e50a1[_0x2eb798(0x16a)]!==undefined);let _0x30560={};if(!_0x509dc1&&typeof _0x5e50a1[_0x2eb798(0x19c)]==='string')try{_0x30560=JSON[_0x2eb798(0x18c)](_0x5e50a1['extend']);}catch{}const _0x5a6623=_0x509dc1?_0x5e50a1[_0x2eb798(0x1a4)]:_0x5e50a1['code'],_0x172115=_0x509dc1?_0x5e50a1[_0x2eb798(0x180)]:_0x5e50a1['name'],_0x109979=_0x509dc1?_0x5e50a1[_0x2eb798(0x16a)]:_0x5e50a1[_0x2eb798(0x1aa)]||_0x5e50a1[_0x2eb798(0x187)],_0x5e83e9=_0x509dc1?_0x5e50a1[_0x2eb798(0x175)]===!![]:_0x30560[_0x2eb798(0x175)]===!![],_0x2cde0c=_0x509dc1?_0x5e50a1[_0x2eb798(0x197)]===!![]:_0x30560[_0x2eb798(0x197)]===!![],_0x1b235c=_0x509dc1?_0x5e50a1['options']??null:_0x30560[_0x2eb798(0x176)]??null,_0x26622c={'name':_0x5a6623,'displayName':_0x172115||_0x5a6623,'type':_0x109979,'dbType':_0x5e50a1[_0x2eb798(0x17c)],'pk':_0x5e83e9,'required':_0x2cde0c,'description':_0x5e50a1['description']||undefined};return Array[_0x2eb798(0x18a)](_0x1b235c)&&_0x1b235c[_0x2eb798(0x160)]>0x0&&(_0x26622c[_0x2eb798(0x176)]=_0x1b235c),_0x26622c;}function parseJsonMaybe(_0x1351d6){const _0x5e9aef=a25_0x3283;if(typeof _0x1351d6!==_0x5e9aef(0x193))return _0x1351d6;try{return JSON[_0x5e9aef(0x18c)](_0x1351d6);}catch{return _0x1351d6;}}function normalizeOperationEntry(_0x16a3f8,_0x282ed9){const _0x2a24d3=a25_0x3283;if(!_0x282ed9||typeof _0x282ed9!==_0x2a24d3(0x18d))return null;if(!_0x282ed9[_0x2a24d3(0x185)]||!_0x282ed9[_0x2a24d3(0x178)])return null;const _0x51952d={'name':_0x16a3f8,'method':_0x282ed9['method'],'path':_0x282ed9[_0x2a24d3(0x178)]};if(_0x282ed9['host'])_0x51952d['host']=_0x282ed9[_0x2a24d3(0x199)];if(_0x282ed9['requestBody']!=null)_0x51952d[_0x2a24d3(0x179)]=parseJsonMaybe(_0x282ed9['requestBody']);if(_0x282ed9[_0x2a24d3(0x1a3)]!=null)_0x51952d[_0x2a24d3(0x1a3)]=parseJsonMaybe(_0x282ed9[_0x2a24d3(0x1a3)]);if(_0x282ed9[_0x2a24d3(0x17b)]!=null)_0x51952d[_0x2a24d3(0x17b)]=_0x282ed9[_0x2a24d3(0x17b)];if(_0x282ed9['afterScriptId']!=null)_0x51952d[_0x2a24d3(0x17f)]=_0x282ed9['afterScriptId'];if(Array['isArray'](_0x282ed9[_0x2a24d3(0x161)]))_0x51952d[_0x2a24d3(0x161)]=_0x282ed9[_0x2a24d3(0x161)];if(Array[_0x2a24d3(0x18a)](_0x282ed9[_0x2a24d3(0x164)]))_0x51952d[_0x2a24d3(0x164)]=_0x282ed9[_0x2a24d3(0x164)];return _0x51952d;}function summarizeDbtable(_0x14573f){const _0x47a58b=a25_0x3283,_0x3234ec={},_0x125667=[_0x47a58b(0x16b),'dbName',_0x47a58b(0x182),'datasetKey',_0x47a58b(0x175),_0x47a58b(0x1a7),_0x47a58b(0x173),'createTimeField',_0x47a58b(0x195),'creatorIdField','creatorNameField',_0x47a58b(0x192),_0x47a58b(0x194),_0x47a58b(0x16c),_0x47a58b(0x1a9)];for(const _0x50b855 of _0x125667){if(_0x14573f[_0x50b855]!==undefined)_0x3234ec[_0x50b855]=_0x14573f[_0x50b855];}return typeof _0x3234ec[_0x47a58b(0x1a7)]===_0x47a58b(0x193)&&_0x3234ec['allFields'][_0x47a58b(0x160)]>0x0&&(_0x3234ec[_0x47a58b(0x1a5)]=_0x3234ec[_0x47a58b(0x1a7)][_0x47a58b(0x19f)](',')[_0x47a58b(0x198)](_0x417eb5=>_0x417eb5[_0x47a58b(0x18e)]())['filter'](Boolean)),_0x3234ec;}function normalizeRelatedPages(_0x1f1abb){const _0x4c50fa=a25_0x3283;if(!Array['isArray'](_0x1f1abb))return[];return _0x1f1abb[_0x4c50fa(0x168)](_0x177065=>_0x177065&&typeof _0x177065===_0x4c50fa(0x18d))[_0x4c50fa(0x198)](_0x3ed628=>({'id':_0x3ed628['id'],'type':_0x3ed628[_0x4c50fa(0x1aa)],'code':_0x3ed628[_0x4c50fa(0x16f)],'title':_0x3ed628['title'],'deleted':_0x3ed628[_0x4c50fa(0x174)]===!![]}));}function normalizeFallbackFieldName(_0x50298a,_0x229635){const _0x390b4d=a25_0x3283,_0x4e5186=_0x50298a[_0x390b4d(0x18e)]();if(!_0x4e5186)return null;return{'name':_0x4e5186,'displayName':_0x4e5186,'type':undefined,'dbType':undefined,'pk':_0x4e5186===_0x229635,'required':![],'description':undefined};}function a25_0x3283(_0x91824,_0x435ea2){_0x91824=_0x91824-0x160;const _0x3be10d=a25_0x3be1();let _0x32835d=_0x3be10d[_0x91824];return _0x32835d;}async function loadListFieldFallback(_0x437497,_0x457a82){const _0x43b569=a25_0x3283;if(!_0x437497||!_0x457a82)return[];try{const _0x5c4e66=await listDatasets(_0x437497,{'code':_0x457a82}),_0x4d550c=_0x5c4e66[_0x43b569(0x163)](_0x1db8c8=>_0x1db8c8['code']===_0x457a82)??_0x5c4e66[0x0],_0x2f730a=_0x4d550c?.['dbtableConfig']??{},_0x1864d7=typeof _0x2f730a['allFields']===_0x43b569(0x193)?_0x2f730a[_0x43b569(0x1a7)][_0x43b569(0x19f)](','):[];return _0x1864d7[_0x43b569(0x198)](_0x19b151=>normalizeFallbackFieldName(_0x19b151,_0x2f730a[_0x43b569(0x175)]))[_0x43b569(0x168)](_0x1c2544=>_0x1c2544!==null);}catch{return[];}}export const datasetDetail={'service':a25_0x54f4b0(0x16e),'command':a25_0x54f4b0(0x17e),'description':'Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','risk':a25_0x54f4b0(0x19e),'flags':[CODE_FLAG],async 'execute'(_0x59b2eb){const _0x3447fe=a25_0x54f4b0,_0x476f27=await getDatasetDetail(_0x59b2eb[_0x3447fe(0x181)](_0x3447fe(0x16f))),_0x4a27ea=Array[_0x3447fe(0x18a)](_0x476f27[_0x3447fe(0x172)])?_0x476f27[_0x3447fe(0x172)]:Array[_0x3447fe(0x18a)](_0x476f27[_0x3447fe(0x1a1)])?_0x476f27[_0x3447fe(0x1a1)]:[];let _0x321b73=_0x4a27ea[_0x3447fe(0x198)](_0x873642=>normalizeField(_0x873642))[_0x3447fe(0x168)](_0x3fba41=>_0x3fba41!==null);_0x321b73[_0x3447fe(0x160)]===0x0&&(_0x321b73=await loadListFieldFallback(_0x59b2eb[_0x3447fe(0x191)],_0x59b2eb['str'](_0x3447fe(0x16f))));const _0xec269a=_0x476f27[_0x3447fe(0x171)]??{},_0x1ed200=[];for(const [_0x4d29ab,_0x15d81f]of Object[_0x3447fe(0x186)](_0xec269a)){const _0x1769bd=normalizeOperationEntry(_0x4d29ab,_0x15d81f);if(_0x1769bd)_0x1ed200['push'](_0x1769bd);}const _0x393ba9=_0x476f27[_0x3447fe(0x19b)]??{},_0x12ccf9=_0x476f27[_0x3447fe(0x16e)]??{},_0x6b1f5f=_0x393ba9[_0x3447fe(0x16b)]!=null?{'id':_0x393ba9['dbId'],'name':_0x393ba9[_0x3447fe(0x18b)]??null}:undefined;let _0x582b1e;return typeof _0x476f27[_0x3447fe(0x19c)]===_0x3447fe(0x193)&&(_0x582b1e=parseJsonMaybe(_0x476f27[_0x3447fe(0x19c)])),{'ok':!![],'data':{'id':_0x476f27[_0x3447fe(0x1a8)]??_0x476f27['id'],'name':_0x476f27[_0x3447fe(0x1a4)],'code':_0x476f27[_0x3447fe(0x19d)]||_0x476f27[_0x3447fe(0x16f)],'doVersion':_0x476f27[_0x3447fe(0x17a)],'description':_0x476f27[_0x3447fe(0x19a)]||_0x12ccf9[_0x3447fe(0x1a2)]||undefined,'source':_0x476f27[_0x3447fe(0x1a0)]||_0x12ccf9[_0x3447fe(0x16d)],'table':_0x393ba9[_0x3447fe(0x182)]||_0x12ccf9['tableName'],'datasetKey':_0x393ba9[_0x3447fe(0x188)],'pk':_0x393ba9[_0x3447fe(0x175)],'db':_0x6b1f5f,'dbtable':summarizeDbtable(_0x393ba9),'fields':_0x321b73,'operations':_0x1ed200,'indexes':Array['isArray'](_0x12ccf9[_0x3447fe(0x17d)])?_0x12ccf9[_0x3447fe(0x17d)]:[],'relations':_0x476f27[_0x3447fe(0x184)]??null,'relatedPages':normalizeRelatedPages(_0x476f27[_0x3447fe(0x166)]),...Array[_0x3447fe(0x18a)](_0x476f27[_0x3447fe(0x1ab)])?{'columnCodeListWithDeleted':_0x476f27['columnCodeListWithDeleted']}:{},'formatRules':Array[_0x3447fe(0x18a)](_0x476f27[_0x3447fe(0x162)])?_0x476f27[_0x3447fe(0x162)]:[],'validateRules':Array[_0x3447fe(0x18a)](_0x476f27[_0x3447fe(0x189)])?_0x476f27[_0x3447fe(0x189)]:[],..._0x582b1e!==undefined?{'extend':_0x582b1e}:{},'stats':{'fieldCount':_0x321b73[_0x3447fe(0x160)],'operationCount':_0x1ed200[_0x3447fe(0x160)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5d9c22,_0x60bbec){const _0x530ca5=a26_0x58d6,_0x1a3556=_0x5d9c22();while(!![]){try{const _0x4dca5e=-parseInt(_0x530ca5(0x1a3))/0x1*(-parseInt(_0x530ca5(0x1ad))/0x2)+-parseInt(_0x530ca5(0x1a4))/0x3*(-parseInt(_0x530ca5(0x1a6))/0x4)+parseInt(_0x530ca5(0x1a8))/0x5*(parseInt(_0x530ca5(0x1aa))/0x6)+parseInt(_0x530ca5(0x1ac))/0x7*(parseInt(_0x530ca5(0x1a7))/0x8)+parseInt(_0x530ca5(0x1a5))/0x9+-parseInt(_0x530ca5(0x1ab))/0xa+-parseInt(_0x530ca5(0x1a9))/0xb;if(_0x4dca5e===_0x60bbec)break;else _0x1a3556['push'](_0x1a3556['shift']());}catch(_0x3375a7){_0x1a3556['push'](_0x1a3556['shift']());}}}(a26_0x2cfe,0x59ba9));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a26_0x2cfe(){const _0x51d6f6=['569560EOdZoM','952tdEpPH','342655BKmFod','10343575NCFiYs','18xNXVmY','2618660AfJJhg','3542WRbLJs','1415564UDQSRb','1qUYacn','9IPNHOU','1520649FHXuYP'];a26_0x2cfe=function(){return _0x51d6f6;};return a26_0x2cfe();}function a26_0x58d6(_0x32adff,_0x1a8904){_0x32adff=_0x32adff-0x1a3;const _0x2cfe68=a26_0x2cfe();let _0x58d698=_0x2cfe68[_0x32adff];return _0x58d698;}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a27_0x149958=a27_0x4c38;(function(_0x59e9ed,_0x54acdd){const _0x229790=a27_0x4c38,_0x55b6b5=_0x59e9ed();while(!![]){try{const _0x43441b=parseInt(_0x229790(0x179))/0x1+parseInt(_0x229790(0x17b))/0x2*(-parseInt(_0x229790(0x176))/0x3)+-parseInt(_0x229790(0x17a))/0x4+-parseInt(_0x229790(0x16e))/0x5*(parseInt(_0x229790(0x163))/0x6)+-parseInt(_0x229790(0x17f))/0x7+parseInt(_0x229790(0x16f))/0x8*(-parseInt(_0x229790(0x16c))/0x9)+parseInt(_0x229790(0x169))/0xa*(parseInt(_0x229790(0x173))/0xb);if(_0x43441b===_0x54acdd)break;else _0x55b6b5['push'](_0x55b6b5['shift']());}catch(_0x4b86d6){_0x55b6b5['push'](_0x55b6b5['shift']());}}}(a27_0x46c3,0x54cfc));import{listDatasets}from'../../core/api-client.js';function a27_0x46c3(){const _0x42eb32=['Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','source','allFields','2743692AHGPoJ','dbtableConfig','50574QvZPTH','split','read','dataset','code','map','20886730QrLBTh','appCode','tableName','126hYAMza','length','215PnHBSy','170224tGdFgg','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','str','list','11vhKBQM','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','string','6zmAAkH','datasetKey','name','175771YBtLNE','1706460cLNcbG','438146UbsPhO'];a27_0x46c3=function(){return _0x42eb32;};return a27_0x46c3();}function a27_0x4c38(_0x3117f4,_0x47920c){_0x3117f4=_0x3117f4-0x163;const _0x46c366=a27_0x46c3();let _0x4c387f=_0x46c366[_0x3117f4];return _0x4c387f;}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a27_0x149958(0x166),'command':a27_0x149958(0x172),'description':a27_0x149958(0x170),'risk':a27_0x149958(0x165),'flags':[{'name':a27_0x149958(0x178),'type':a27_0x149958(0x175),'description':a27_0x149958(0x17c)},{...CODE_FLAG,'required':![],'description':a27_0x149958(0x174)}],async 'execute'(_0x49f805){const _0x84e817=a27_0x149958,_0x43186b=_0x49f805[_0x84e817(0x171)](_0x84e817(0x178)),_0x36050d=_0x49f805['str'](_0x84e817(0x167)),_0x1aadce=await listDatasets(_0x49f805[_0x84e817(0x16a)],{..._0x43186b&&{'name':_0x43186b},..._0x36050d&&{'code':_0x36050d}});return{'ok':!![],'data':{'total':_0x1aadce[_0x84e817(0x16d)],'datasets':_0x1aadce[_0x84e817(0x168)](_0x17e0c5=>{const _0x1b6c1a=_0x84e817,_0x54dcb7=_0x17e0c5[_0x1b6c1a(0x180)]??{};return{'id':_0x17e0c5['id'],'code':_0x17e0c5[_0x1b6c1a(0x167)],'name':_0x17e0c5[_0x1b6c1a(0x178)],'source':_0x17e0c5[_0x1b6c1a(0x17d)],'description':_0x17e0c5['description'],'table':_0x54dcb7[_0x1b6c1a(0x16b)],'datasetKey':_0x54dcb7[_0x1b6c1a(0x177)],'pk':_0x54dcb7['pkField'],'fields':_0x54dcb7[_0x1b6c1a(0x17e)]?_0x54dcb7[_0x1b6c1a(0x17e)][_0x1b6c1a(0x164)](',')[_0x1b6c1a(0x168)](_0x522124=>_0x522124['trim']()):[]};})}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a28_0xf06e(){const _0x387296=['2799zwgXSe','501tRAZul','2182268eqDSRi','appCode','string','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','431004sdnlSB','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','136njAkXv','6715290ddbhpu','3132954yjPTfh','2626AsXVLu','dataset','read','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','1318884xFVtKK','5WUfVbM'];a28_0xf06e=function(){return _0x387296;};return a28_0xf06e();}const a28_0x1c47b4=a28_0x26d4;(function(_0xa9cec,_0x2fc787){const _0x42f56e=a28_0x26d4,_0x242dc8=_0xa9cec();while(!![]){try{const _0x48afd6=parseInt(_0x42f56e(0x18c))/0x1+parseInt(_0x42f56e(0x191))/0x2*(parseInt(_0x42f56e(0x187))/0x3)+parseInt(_0x42f56e(0x188))/0x4*(-parseInt(_0x42f56e(0x185))/0x5)+-parseInt(_0x42f56e(0x190))/0x6+parseInt(_0x42f56e(0x184))/0x7+-parseInt(_0x42f56e(0x18e))/0x8*(parseInt(_0x42f56e(0x186))/0x9)+parseInt(_0x42f56e(0x18f))/0xa;if(_0x48afd6===_0x2fc787)break;else _0x242dc8['push'](_0x242dc8['shift']());}catch(_0x14e13d){_0x242dc8['push'](_0x242dc8['shift']());}}}(a28_0xf06e,0x6abd3));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a28_0x26d4(_0x31ebe7,_0xe00017){_0x31ebe7=_0x31ebe7-0x183;const _0xf06eb3=a28_0xf06e();let _0x26d4b5=_0xf06eb3[_0x31ebe7];return _0x26d4b5;}const DEFAULT_MARKDOWN=a28_0x1c47b4(0x18d);export function formatDatasetSdkMarkdown(_0x58ad4a){const _0x5346c8=a28_0x1c47b4,_0x31aca1=typeof _0x58ad4a===_0x5346c8(0x18a)?_0x58ad4a['trim']():'';return _0x31aca1||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a28_0x1c47b4(0x192),'command':'sdk-doc','description':a28_0x1c47b4(0x18b),'risk':a28_0x1c47b4(0x193),'flags':[{...CODE_FLAG,'description':a28_0x1c47b4(0x183)}],async 'execute'(_0x3b733f){const _0x262314=a28_0x1c47b4,_0x3b68ec=_0x3b733f['str']('code'),_0xa0bcfd=await getDatasetSdkUsageDoc(_0x3b68ec,_0x3b733f[_0x262314(0x189)]);return{'ok':!![],'data':{'code':_0x3b68ec,'appCode':_0x3b733f[_0x262314(0x189)],'markdown':formatDatasetSdkMarkdown(_0xa0bcfd)}};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0x1757f6=a29_0x1e70;(function(_0x317034,_0x388c60){const _0x17cb8e=a29_0x1e70,_0x57d307=_0x317034();while(!![]){try{const _0x2ad8ba=parseInt(_0x17cb8e(0x1ab))/0x1+-parseInt(_0x17cb8e(0x174))/0x2+-parseInt(_0x17cb8e(0x1b9))/0x3+-parseInt(_0x17cb8e(0x17a))/0x4+-parseInt(_0x17cb8e(0x16e))/0x5*(-parseInt(_0x17cb8e(0x1bb))/0x6)+-parseInt(_0x17cb8e(0x184))/0x7*(-parseInt(_0x17cb8e(0x1b2))/0x8)+-parseInt(_0x17cb8e(0x1a3))/0x9;if(_0x2ad8ba===_0x388c60)break;else _0x57d307['push'](_0x57d307['shift']());}catch(_0x5a1f45){_0x57d307['push'](_0x57d307['shift']());}}}(a29_0x447a,0x24125));import a29_0x23d053 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a29_0x1e70(_0x289527,_0x4c31df){_0x289527=_0x289527-0x16b;const _0x447a3e=a29_0x447a();let _0x1e7011=_0x447a3e[_0x289527];return _0x1e7011;}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(_0x34873d){const _0x5c1d5a=a29_0x1e70,_0x19ae60=getCliVersion(),_0x86e55d=buildConfigFromFlags({});await initGlobalEnvironment(_0x86e55d),console[_0x5c1d5a(0x180)](),console[_0x5c1d5a(0x180)](a29_0x23d053[_0x5c1d5a(0x18d)](CLI_BIN_NAME+_0x5c1d5a(0x178))),console[_0x5c1d5a(0x180)](a29_0x23d053[_0x5c1d5a(0x1b4)]('─'['repeat'](0x32))),console[_0x5c1d5a(0x180)](_0x5c1d5a(0x19b)+_0x19ae60),console['log'](_0x5c1d5a(0x1ac)+process['version']),console[_0x5c1d5a(0x180)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x5c1d5a(0x189)]+'\x20'+process[_0x5c1d5a(0x18c)]),console[_0x5c1d5a(0x180)](),console[_0x5c1d5a(0x180)](a29_0x23d053[_0x5c1d5a(0x18d)](_0x5c1d5a(0x1aa))),console['log'](a29_0x23d053[_0x5c1d5a(0x1b4)]('\x20\x20─'[_0x5c1d5a(0x17c)](0x1e)));const _0x8683a5=getGlobalConfigPath(),_0x37c60b=getProjectConfigPath();console['log'](_0x5c1d5a(0x173)+(_0x8683a5||a29_0x23d053[_0x5c1d5a(0x1b4)](_0x5c1d5a(0x1a6)))),console[_0x5c1d5a(0x180)](_0x5c1d5a(0x17e)+(_0x37c60b||a29_0x23d053['gray'](_0x5c1d5a(0x1a6)))),console[_0x5c1d5a(0x180)](),console[_0x5c1d5a(0x180)](a29_0x23d053[_0x5c1d5a(0x18d)](_0x5c1d5a(0x1bd))),console[_0x5c1d5a(0x180)](a29_0x23d053['gray'](_0x5c1d5a(0x1b1)['repeat'](0x1e)));const _0x1efc54=(_0x5c1b5c,_0x3d2d56)=>{const _0x78727c=_0x5c1d5a;if(!_0x3d2d56){console[_0x78727c(0x180)]('\x20\x20'+_0x5c1b5c[_0x78727c(0x171)](0x11)+'\x20'+a29_0x23d053[_0x78727c(0x1b4)](_0x78727c(0x188)));return;}const _0x18d9cf=inspectCliConfigJsonFile(_0x3d2d56);if(_0x18d9cf[_0x78727c(0x1ba)]==='ok')console['log']('\x20\x20'+_0x5c1b5c[_0x78727c(0x171)](0x11)+'\x20'+a29_0x23d053[_0x78727c(0x19e)](_0x78727c(0x181)));else{if(_0x18d9cf[_0x78727c(0x1ba)]===_0x78727c(0x19d))console[_0x78727c(0x180)]('\x20\x20'+_0x5c1b5c[_0x78727c(0x171)](0x11)+'\x20'+a29_0x23d053[_0x78727c(0x18e)](_0x78727c(0x176)));else _0x18d9cf[_0x78727c(0x1ba)]===_0x78727c(0x1a2)?console['log']('\x20\x20'+_0x5c1b5c[_0x78727c(0x171)](0x11)+'\x20'+a29_0x23d053[_0x78727c(0x1b4)]('(missing)')):(console[_0x78727c(0x180)]('\x20\x20'+_0x5c1b5c[_0x78727c(0x171)](0x11)+'\x20'+a29_0x23d053[_0x78727c(0x198)](_0x78727c(0x192))),console[_0x78727c(0x180)]('\x20\x20'+''[_0x78727c(0x171)](0x11)+'\x20'+a29_0x23d053[_0x78727c(0x198)](_0x18d9cf[_0x78727c(0x1be)])));}};_0x1efc54(_0x5c1d5a(0x1b3),_0x8683a5),_0x1efc54(_0x5c1d5a(0x179),_0x37c60b),console[_0x5c1d5a(0x180)](),console[_0x5c1d5a(0x180)](a29_0x23d053[_0x5c1d5a(0x18d)](_0x5c1d5a(0x1b0))),console['log'](a29_0x23d053[_0x5c1d5a(0x1b4)](_0x5c1d5a(0x1b1)[_0x5c1d5a(0x17c)](0x1e))),console['log'](_0x5c1d5a(0x16c)+(_0x86e55d[_0x5c1d5a(0x1bc)]||a29_0x23d053[_0x5c1d5a(0x198)]('(not\x20set)'))),console['log'](_0x5c1d5a(0x18b)+_0x86e55d['env']);const _0x2ae2b2=isLegacyCompatConfigKey(_0x5c1d5a(0x172))?a29_0x23d053[_0x5c1d5a(0x1b4)](_0x86e55d[_0x5c1d5a(0x172)]+_0x5c1d5a(0x1a0)):_0x86e55d[_0x5c1d5a(0x172)];console[_0x5c1d5a(0x180)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2ae2b2),console[_0x5c1d5a(0x180)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x86e55d[_0x5c1d5a(0x175)]||a29_0x23d053['gray'](_0x5c1d5a(0x187)))),console[_0x5c1d5a(0x180)](_0x5c1d5a(0x1b6)+(_0x86e55d[_0x5c1d5a(0x18a)]||a29_0x23d053['gray'](_0x5c1d5a(0x187)))),console['log'](_0x5c1d5a(0x1a8)+(_0x86e55d[_0x5c1d5a(0x183)]||a29_0x23d053[_0x5c1d5a(0x1b4)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x5c1d5a(0x183)]+')'))),console[_0x5c1d5a(0x180)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x86e55d[_0x5c1d5a(0x1b5)]??a29_0x23d053['gray'](_0x5c1d5a(0x170)))),console[_0x5c1d5a(0x180)](_0x5c1d5a(0x1af)+_0x86e55d[_0x5c1d5a(0x1ae)]),console['log'](_0x5c1d5a(0x186)+_0x86e55d['verbose']),console[_0x5c1d5a(0x180)](_0x5c1d5a(0x19f)+AUTH_MODE[_0x5c1d5a(0x1ad)]),console[_0x5c1d5a(0x180)](_0x5c1d5a(0x185)+(_0x86e55d['accessKey']?a29_0x23d053[_0x5c1d5a(0x19e)](_0x5c1d5a(0x194)+_0x86e55d['accessKey'][_0x5c1d5a(0x17b)]+')'):a29_0x23d053['gray']('(none)'))),console[_0x5c1d5a(0x180)](),console[_0x5c1d5a(0x180)](a29_0x23d053[_0x5c1d5a(0x18d)](_0x5c1d5a(0x1a4))),console[_0x5c1d5a(0x180)](a29_0x23d053[_0x5c1d5a(0x1b4)](_0x5c1d5a(0x1b1)['repeat'](0x1e))),console[_0x5c1d5a(0x180)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x5c1d5a(0x180)](_0x5c1d5a(0x177)+getUserDomain()),console[_0x5c1d5a(0x180)](_0x5c1d5a(0x19a)+getRuntimeDomain()),console[_0x5c1d5a(0x180)](),console[_0x5c1d5a(0x180)](a29_0x23d053['bold'](_0x5c1d5a(0x197))),console[_0x5c1d5a(0x180)](a29_0x23d053[_0x5c1d5a(0x1b4)]('\x20\x20─'[_0x5c1d5a(0x17c)](0x1e)));const _0x372724=inspectServiceRegistry();console[_0x5c1d5a(0x180)](_0x5c1d5a(0x196)+_0x372724[_0x5c1d5a(0x190)]),console[_0x5c1d5a(0x180)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x372724)),console[_0x5c1d5a(0x180)](_0x5c1d5a(0x1a1)+_0x372724[_0x5c1d5a(0x1b8)]),console[_0x5c1d5a(0x180)](_0x5c1d5a(0x1a5)+_0x372724[_0x5c1d5a(0x191)]);for(const _0xb0c5f7 of _0x372724[_0x5c1d5a(0x1b7)]){console['log']('\x20\x20'+(_0xb0c5f7[_0x5c1d5a(0x195)]+':')[_0x5c1d5a(0x171)](0x11)+'\x20'+(_0xb0c5f7['name']||a29_0x23d053['gray'](_0x5c1d5a(0x199)))+'\x20('+_0xb0c5f7[_0x5c1d5a(0x191)]+'\x20commands)'),console[_0x5c1d5a(0x180)]('\x20\x20'+''[_0x5c1d5a(0x171)](0x11)+_0x5c1d5a(0x16b)+_0xb0c5f7['source'][_0x5c1d5a(0x17f)]);}return console[_0x5c1d5a(0x180)](),console[_0x5c1d5a(0x180)](a29_0x23d053[_0x5c1d5a(0x18d)](_0x5c1d5a(0x182))),console[_0x5c1d5a(0x180)](a29_0x23d053[_0x5c1d5a(0x1b4)](_0x5c1d5a(0x1b1)[_0x5c1d5a(0x17c)](0x1e))),console[_0x5c1d5a(0x180)](_0x5c1d5a(0x19c)+a29_0x23d053[_0x5c1d5a(0x19e)](AUTH_MODE[_0x5c1d5a(0x1ad)]+_0x5c1d5a(0x1bf))),console[_0x5c1d5a(0x180)](_0x5c1d5a(0x16d)+a29_0x23d053[_0x5c1d5a(0x1b4)](_0x5c1d5a(0x18f))),console[_0x5c1d5a(0x180)](),{'ok':!![]};}function a29_0x447a(){const _0x36cdc9=['currentApp','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','bold','yellow','(removed\x20—\x20cookie\x20auth\x20disabled)','registryPath','commandCount','✗\x20Invalid\x20JSON','Diagnose\x20CLI\x20configuration\x20and\x20environment','(set,\x20length=','serviceCode','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Service\x20Tree','red','(unnamed)','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','empty','green','\x20\x20auth\x20(effective):\x20','\x20(legacy/compat\x20only)','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','missing','235629BLwPZJ','\x20\x20API\x20Endpoints','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','doctor','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Loaded','\x20\x20Config\x20Files','91090kMAxuG','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','ClientAk','riskLevel','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','\x20\x20─','1140368snvJTi','Global','gray','pageSize','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','services','serviceCount','139122XHfyUM','status','18SmzVhW','appCode','\x20\x20Config\x20JSON','message','\x20(accessKey)','\x20Imported\x20from:\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Session\x20check:\x20\x20\x20','93425ROZwvB','read','(default)','padEnd','locale','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','43438cNMpWm','defaultApp','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20doctor','Project','190672PaqQOf','length','repeat','check','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','path','log','✓\x20Valid\x20JSON','\x20\x20Auth','format','7ZJqThX','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','(no\x20file)','platform'];a29_0x447a=function(){return _0x36cdc9;};return a29_0x447a();}function formatServiceRegistryStatus(_0x557be4){const _0x1c4ba7=a29_0x1e70;if(_0x557be4[_0x1c4ba7(0x1ba)]==='ok')return a29_0x23d053[_0x1c4ba7(0x19e)](_0x1c4ba7(0x1a9));if(_0x557be4['status']===_0x1c4ba7(0x1a2))return a29_0x23d053[_0x1c4ba7(0x1b4)](_0x1c4ba7(0x1a6));if(_0x557be4[_0x1c4ba7(0x1ba)]===_0x1c4ba7(0x19d))return a29_0x23d053['yellow']('⚠\x20Empty');return a29_0x23d053[_0x1c4ba7(0x198)]('✗\x20Invalid'+(_0x557be4[_0x1c4ba7(0x1be)]?':\x20'+_0x557be4[_0x1c4ba7(0x1be)]:''));}export const doctorDefinition={'service':a29_0x1757f6(0x1a7),'command':a29_0x1757f6(0x17d),'description':a29_0x1757f6(0x193),'risk':a29_0x1757f6(0x16f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|