@lovrabet/lovrabet-cli 2.1.10 → 2.1.11-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/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
|
+
function a14_0x1148(_0x4520a4,_0x5f53e2){_0x4520a4=_0x4520a4-0x172;const _0x20770e=a14_0x2077();let _0x114826=_0x20770e[_0x4520a4];return _0x114826;}const a14_0x438c05=a14_0x1148;(function(_0x103671,_0x4c07a4){const _0x4d352e=a14_0x1148,_0x42b7a6=_0x103671();while(!![]){try{const _0x56bc70=-parseInt(_0x4d352e(0x184))/0x1+-parseInt(_0x4d352e(0x17b))/0x2+-parseInt(_0x4d352e(0x173))/0x3+parseInt(_0x4d352e(0x174))/0x4*(parseInt(_0x4d352e(0x178))/0x5)+-parseInt(_0x4d352e(0x17e))/0x6+parseInt(_0x4d352e(0x181))/0x7+parseInt(_0x4d352e(0x177))/0x8;if(_0x56bc70===_0x4c07a4)break;else _0x42b7a6['push'](_0x42b7a6['shift']());}catch(_0x3b9f17){_0x42b7a6['push'](_0x42b7a6['shift']());}}}(a14_0x2077,0x9cb30));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a14_0x438c05(0x172),'command':a14_0x438c05(0x179),'description':a14_0x438c05(0x182),'risk':a14_0x438c05(0x183),'flags':[{...ID_FLAG,'description':a14_0x438c05(0x185)},VERBOSE_FLAG],async 'execute'(_0x58472d){const _0x36ed95=a14_0x438c05,_0x75bd2b=await getBffScriptInfo(_0x58472d['num']('id')),_0xc78d3d=_0x58472d[_0x36ed95(0x17a)]('verbose');if(_0xc78d3d)return{'ok':!![],'data':_0x75bd2b};return{'ok':!![],'data':{'id':_0x75bd2b['id'],'appCode':_0x75bd2b[_0x36ed95(0x17f)],'functionName':_0x75bd2b['functionName']??'','scriptType':_0x75bd2b[_0x36ed95(0x17c)],'description':_0x75bd2b[_0x36ed95(0x17d)]||_0x36ed95(0x180),'createdTime':_0x75bd2b[_0x36ed95(0x175)]??'','updatedTime':_0x75bd2b[_0x36ed95(0x176)]??''}};}};function a14_0x2077(){const _0x5272ff=['updatedTime','14144840oVhYfh','485BonrGH','detail','bool','2109990FgJyqv','scriptType','description','979422wmxkcY','appCode','(none)','4925655KoPRor','Get\x20BFF\x20script\x20details\x20by\x20ID','read','584920lFnOQp','Script\x20ID','bff','3318291XAoDsy','44508dxydDI','createdTime'];a14_0x2077=function(){return _0x5272ff;};return a14_0x2077();}
|
package/lib/commands/bff/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a15_0x6b68(_0x3407c0,_0x33db74){_0x3407c0=_0x3407c0-0x9a;const _0x51c75e=a15_0x51c7();let _0x6b683a=_0x51c75e[_0x3407c0];return _0x6b683a;}const a15_0x55737a=a15_0x6b68;(function(_0x4595eb,_0x5a5a80){const _0x483a25=a15_0x6b68,_0x66ad1=_0x4595eb();while(!![]){try{const _0x5c01f7=parseInt(_0x483a25(0x9c))/0x1*(-parseInt(_0x483a25(0xa8))/0x2)+parseInt(_0x483a25(0xa0))/0x3+parseInt(_0x483a25(0xaa))/0x4+parseInt(_0x483a25(0x9f))/0x5+-parseInt(_0x483a25(0x9e))/0x6*(parseInt(_0x483a25(0xa9))/0x7)+parseInt(_0x483a25(0xa2))/0x8+-parseInt(_0x483a25(0x9d))/0x9*(parseInt(_0x483a25(0xa3))/0xa);if(_0x5c01f7===_0x5a5a80)break;else _0x66ad1['push'](_0x66ad1['shift']());}catch(_0x9ce7f7){_0x66ad1['push'](_0x66ad1['shift']());}}}(a15_0x51c7,0x92a2f));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a15_0x51c7(){const _0x40555b=['1KtpKew','108sllaRK','348KuVNQp','99825jYqcbI','1493754SsOQrS','BFF\x20function\x20name\x20to\x20execute','6476440qkRlmN','202110DwIloQ','str','params','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','read','1486374oYEUhP','84021FfITFK','3820312aHXPTd','BFF\x20executed\x20in\x20','now'];a15_0x51c7=function(){return _0x40555b;};return a15_0x51c7();}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':'bff','command':'exec','description':a15_0x55737a(0xa6),'risk':a15_0x55737a(0xa7),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x55737a(0xa1)},PARAMS_FLAG],async 'execute'(_0x265ee3){const _0x32cd6e=a15_0x55737a,_0x41e2d5=parseJsonParams(_0x265ee3[_0x32cd6e(0xa4)](_0x32cd6e(0xa5))),_0x31bdec=Date[_0x32cd6e(0x9b)](),_0x305b80=await executeSdkBff(_0x265ee3['str']('name'),_0x41e2d5),_0x181adb=Date[_0x32cd6e(0x9b)]()-_0x31bdec;return{'ok':!![],'data':{'result':_0x305b80,'elapsed':_0x181adb},'message':_0x32cd6e(0x9a)+_0x181adb+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a16_0x576c(_0x5cedda,_0x2d88d6){_0x5cedda=_0x5cedda-0x129;const _0x26812a=a16_0x2681();let _0x576c41=_0x26812a[_0x5cedda];return _0x576c41;}(function(_0xd42cc9,_0x1abc81){const _0xd80b39=a16_0x576c,_0xf230a3=_0xd42cc9();while(!![]){try{const _0x106052=-parseInt(_0xd80b39(0x12d))/0x1*(-parseInt(_0xd80b39(0x12f))/0x2)+-parseInt(_0xd80b39(0x12b))/0x3+-parseInt(_0xd80b39(0x12c))/0x4*(-parseInt(_0xd80b39(0x12a))/0x5)+-parseInt(_0xd80b39(0x12e))/0x6*(-parseInt(_0xd80b39(0x129))/0x7)+parseInt(_0xd80b39(0x131))/0x8+-parseInt(_0xd80b39(0x130))/0x9+parseInt(_0xd80b39(0x133))/0xa*(parseInt(_0xd80b39(0x132))/0xb);if(_0x106052===_0x1abc81)break;else _0xf230a3['push'](_0xf230a3['shift']());}catch(_0x24eca7){_0xf230a3['push'](_0xf230a3['shift']());}}}(a16_0x2681,0x9b310));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];function a16_0x2681(){const _0x268faf=['3700632Ussptd','14179AZoSpf','4360vzYHij','522613sTKlGJ','49825WpaTna','2789961brqbIa','92QttBwa','22VpEOeo','6sJThvn','95814CDOvuq','7350660eREKxO'];a16_0x2681=function(){return _0x268faf;};return a16_0x2681();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a17_0xada721=a17_0x43ee;function a17_0x43ee(_0xf840bb,_0x47635e){_0xf840bb=_0xf840bb-0x1a9;const _0x5a4e28=a17_0x5a4e();let _0x43eeb9=_0x5a4e28[_0xf840bb];return _0x43eeb9;}(function(_0x347265,_0x28f501){const _0x53c95f=a17_0x43ee,_0x1faebf=_0x347265();while(!![]){try{const _0x330bb0=-parseInt(_0x53c95f(0x1b3))/0x1*(-parseInt(_0x53c95f(0x1bc))/0x2)+-parseInt(_0x53c95f(0x1aa))/0x3+parseInt(_0x53c95f(0x1b0))/0x4+-parseInt(_0x53c95f(0x1b1))/0x5+parseInt(_0x53c95f(0x1ba))/0x6+-parseInt(_0x53c95f(0x1be))/0x7+-parseInt(_0x53c95f(0x1ae))/0x8*(-parseInt(_0x53c95f(0x1b5))/0x9);if(_0x330bb0===_0x28f501)break;else _0x1faebf['push'](_0x1faebf['shift']());}catch(_0x40a1fe){_0x1faebf['push'](_0x1faebf['shift']());}}}(a17_0x5a4e,0xbc9c7));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';function a17_0x5a4e(){const _0x5a5ee2=['250119ZyaCWh','cli-skill-install','CLI\x20Built-in\x20Skill\x20installed','\x20-g\x20-y','write','4726068CaKwhS','cli-skill','2158872NkNRHR','setLogPath','4580688xbWhhf','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','info','inherit','unknown','pipe','../../skills/npx-skills-add.js','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','log','\x20-g\x20-y)...','error','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','1780581bFiyiO','cwd','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','Skipped\x20npx\x20(','8WGjbME','apiError','3093208FZYZMH','3238725qlDTsF','skipped','1CvgLVI','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime'];a17_0x5a4e=function(){return _0x5a5ee2;};return a17_0x5a4e();}export const cliSkillDefinitions=[{'service':a17_0xada721(0x1bb),'command':'install','description':a17_0xada721(0x1b4),'risk':a17_0xada721(0x1b9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1a6693){const _0x133ab4=a17_0xada721;logger[_0x133ab4(0x1bd)](process[_0x133ab4(0x1ab)]()),logger[_0x133ab4(0x1c0)](_0x133ab4(0x1b6),_0x133ab4(0x1a9));const {LOVRABET_SKILL_SOURCE:_0x5f339e,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x1310d8,runNpxSkillsAddGlobal:_0x3b3166}=await import(_0x133ab4(0x1c4)),_0x36b3a6=_0x1a6693['nonInteractive']?_0x133ab4(0x1c3):_0x133ab4(0x1c1);console[_0x133ab4(0x1c6)](_0x133ab4(0x1bf)+_0x5f339e+_0x133ab4(0x1c7));const _0x1c1c9d=_0x3b3166(process['cwd'](),_0x5f339e,{'stdio':_0x36b3a6});if(_0x1c1c9d[_0x133ab4(0x1b2)])console[_0x133ab4(0x1c6)](_0x133ab4(0x1ad)+_0x1310d8+_0x133ab4(0x1c5));else{if(_0x1c1c9d['ok'])console['log'](_0x133ab4(0x1b7));else throw CliErrors[_0x133ab4(0x1af)]('npx\x20skills\x20add\x20failed:\x20'+(_0x1c1c9d[_0x133ab4(0x1c8)]||_0x133ab4(0x1c2)),_0x133ab4(0x1ac)+_0x5f339e+_0x133ab4(0x1b8));}return{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3c133b,_0x281029){const _0x35ea4d=a18_0x1c88,_0x4b1bae=_0x3c133b();while(!![]){try{const _0x41dd0e=-parseInt(_0x35ea4d(0x16f))/0x1+parseInt(_0x35ea4d(0x169))/0x2*(parseInt(_0x35ea4d(0x17a))/0x3)+-parseInt(_0x35ea4d(0x167))/0x4*(parseInt(_0x35ea4d(0x168))/0x5)+parseInt(_0x35ea4d(0x178))/0x6+-parseInt(_0x35ea4d(0x172))/0x7+-parseInt(_0x35ea4d(0x179))/0x8*(parseInt(_0x35ea4d(0x17d))/0x9)+parseInt(_0x35ea4d(0x16a))/0xa;if(_0x41dd0e===_0x281029)break;else _0x4b1bae['push'](_0x4b1bae['shift']());}catch(_0x997503){_0x4b1bae['push'](_0x4b1bae['shift']());}}}(a18_0x5409,0x7fdea));import{CLI_BIN_NAME}from'../../constant/cli.js';function a18_0x5409(){const _0x5e1c07=['global-default','project','486023mjsRLM','\x20init`\x20first.','newConfigFileName','5644632ZCKUUi',',\x20or\x20run\x20`','inProject','global','\x20found).','Add\x20--global\x20to\x20write\x20to\x20~/','2963868XakPDi','168XmPFPg','3RSYNvp','Use\x20only\x20one\x20config\x20scope\x20flag.','validation','114966XiFErO','58960OewKLq','290NZzEly','1461502xuHZnY','17145980pFKOSg','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','project-default'];a18_0x5409=function(){return _0x5e1c07;};return a18_0x5409();}import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x4679c5){const _0x1d4ad3=a18_0x1c88,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x59a9ba}=_0x4679c5;if(explicitGlobal&&explicitProject)throw CliErrors['validation'](_0x1d4ad3(0x16b),_0x1d4ad3(0x17b));if(explicitGlobal)return'global';if(explicitProject)return _0x1d4ad3(0x16e);switch(_0x59a9ba){case _0x1d4ad3(0x16d):return _0x1d4ad3(0x175);case _0x1d4ad3(0x16c):return _0x4679c5['inProject']??isInProject()?'project':_0x1d4ad3(0x175);case'project-or-global-explicit':if(!(_0x4679c5[_0x1d4ad3(0x174)]??isInProject()))throw CliErrors[_0x1d4ad3(0x17c)]('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG[_0x1d4ad3(0x171)]+_0x1d4ad3(0x176),_0x1d4ad3(0x177)+PRODUCT_CONFIG[_0x1d4ad3(0x171)]+_0x1d4ad3(0x173)+CLI_BIN_NAME+_0x1d4ad3(0x170));return _0x1d4ad3(0x16e);}}function a18_0x1c88(_0x59b8a6,_0x5c9731){_0x59b8a6=_0x59b8a6-0x167;const _0x540921=a18_0x5409();let _0x1c887d=_0x540921[_0x59b8a6];return _0x1c887d;}export function toScopeFlags(_0x478312){return{'global':_0x478312==='global'};}export function formatScopeLabel(_0x151c63){const _0x31555f=a18_0x1c88;return _0x151c63===_0x31555f(0x175)?'\x20(global)':'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x266c2a,_0x16b41e){const _0x4e7019=a19_0xd733,_0x5a8cf9=_0x266c2a();while(!![]){try{const _0x5e5d53=-parseInt(_0x4e7019(0xc6))/0x1*(parseInt(_0x4e7019(0xc1))/0x2)+parseInt(_0x4e7019(0xb2))/0x3+-parseInt(_0x4e7019(0xb1))/0x4+parseInt(_0x4e7019(0xb5))/0x5+parseInt(_0x4e7019(0xbb))/0x6+parseInt(_0x4e7019(0xc5))/0x7*(parseInt(_0x4e7019(0xc2))/0x8)+-parseInt(_0x4e7019(0xbe))/0x9;if(_0x5e5d53===_0x16b41e)break;else _0x5a8cf9['push'](_0x5a8cf9['shift']());}catch(_0x5bc2de){_0x5a8cf9['push'](_0x5a8cf9['shift']());}}}(a19_0x4714,0x54e90));import{CliErrors}from'../../errors.js';function a19_0xd733(_0x24c000,_0x1f6fcd){_0x24c000=_0x24c000-0xad;const _0x47140d=a19_0x4714();let _0xd7333=_0x47140d[_0x24c000];return _0xd7333;}function isSet(_0x44e5ef,_0x4437d4){const _0x406b5c=a19_0xd733,_0x3da895=_0x44e5ef[_0x406b5c(0xb3)](_0x4437d4);return _0x3da895!==undefined&&_0x3da895!==''&&_0x3da895!==![]&&_0x3da895!==0x0;}function fmtNames(_0x251014){const _0x26e6a7=a19_0xd733;return _0x251014[_0x26e6a7(0xb0)](_0x49141c=>'--'+_0x49141c)[_0x26e6a7(0xba)](',\x20');}export function requireOneOf(_0x3f44f4,_0x5619e1,_0x55be7c){const _0x1888c7=a19_0xd733,_0x14b79f=_0x5619e1[_0x1888c7(0xc4)](_0x1fd172=>isSet(_0x3f44f4,_0x1fd172));if(_0x14b79f[_0x1888c7(0xae)]!==0x1)throw CliErrors[_0x1888c7(0xb8)](_0x14b79f[_0x1888c7(0xae)]===0x0?_0x1888c7(0xbd)+fmtNames(_0x5619e1)+_0x1888c7(0xc3)+_0x55be7c+'`.':_0x1888c7(0xc0)+fmtNames(_0x5619e1)+_0x1888c7(0xad)+fmtNames(_0x14b79f)+'.',_0x14b79f[_0x1888c7(0xae)]===0x0?_0x1888c7(0xb7)+fmtNames(_0x5619e1):'Remove\x20all\x20but\x20one.');}export function requireAnyOf(_0x52a600,_0x3fd509,_0x2fd14f){const _0x22344b=a19_0xd733;if(!_0x3fd509[_0x22344b(0xbf)](_0xc9fa66=>isSet(_0x52a600,_0xc9fa66)))throw CliErrors[_0x22344b(0xb8)](_0x22344b(0xaf)+fmtNames(_0x3fd509)+_0x22344b(0xc3)+_0x2fd14f+'`.','Provide\x20one\x20of:\x20'+fmtNames(_0x3fd509));}export function mutuallyExclusive(_0x4fc5b6,_0x35a389,_0x396a98){const _0x277863=a19_0xd733,_0x2ca9a3=_0x35a389[_0x277863(0xc4)](_0x5503d2=>isSet(_0x4fc5b6,_0x5503d2));if(_0x2ca9a3[_0x277863(0xae)]>0x1)throw CliErrors[_0x277863(0xb8)](_0x277863(0xb4)+fmtNames(_0x2ca9a3)+'\x20are\x20mutually\x20exclusive\x20for\x20`'+_0x396a98+'`.',_0x277863(0xc7)+fmtNames(_0x35a389));}function a19_0x4714(){const _0x17a98a=['485324jidGhJ','1IADtAt','Use\x20only\x20one\x20of:\x20','\x20is\x20allowed,\x20found:\x20','length','At\x20least\x20one\x20of\x20','map','529088EWgtYZ','1510770TgYetZ','flag','Flags\x20','1189270MvVVmi','test','Provide\x20one\x20of:\x20','validation','str','join','1555236wVGyuf',',\x20got\x20\x22','Exactly\x20one\x20of\x20','7662627gpUSbV','some','Only\x20one\x20of\x20','309014nIjAwf','56hiFCWf','\x20is\x20required\x20for\x20`','filter'];a19_0x4714=function(){return _0x17a98a;};return a19_0x4714();}export function validatePattern(_0x40d019,_0x5a3496,_0x385165,_0x257c19){const _0x4ef6d8=a19_0xd733,_0xe59e37=_0x40d019[_0x4ef6d8(0xb9)](_0x5a3496);if(_0xe59e37&&!_0x385165[_0x4ef6d8(0xb6)](_0xe59e37))throw CliErrors[_0x4ef6d8(0xb8)]('Invalid\x20--'+_0x5a3496+':\x20expected\x20'+_0x257c19+_0x4ef6d8(0xbc)+_0xe59e37+'\x22.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a20_0x121ed7=a20_0x21fb;(function(_0x55e808,_0x6a35a3){const _0x5aa469=a20_0x21fb,_0x3f97c8=_0x55e808();while(!![]){try{const _0x4b996e=-parseInt(_0x5aa469(0x156))/0x1+parseInt(_0x5aa469(0x151))/0x2+-parseInt(_0x5aa469(0x158))/0x3*(parseInt(_0x5aa469(0x155))/0x4)+-parseInt(_0x5aa469(0x14b))/0x5+parseInt(_0x5aa469(0x146))/0x6+parseInt(_0x5aa469(0x148))/0x7*(parseInt(_0x5aa469(0x154))/0x8)+-parseInt(_0x5aa469(0x142))/0x9*(-parseInt(_0x5aa469(0x14f))/0xa);if(_0x4b996e===_0x6a35a3)break;else _0x3f97c8['push'](_0x3f97c8['shift']());}catch(_0x22976c){_0x3f97c8['push'](_0x3f97c8['shift']());}}}(a20_0x2722,0x6930c));export const CODE_FLAG={'name':a20_0x121ed7(0x145),'type':a20_0x121ed7(0x144),'required':!![],'description':a20_0x121ed7(0x143),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0x121ed7(0x157)}};export const SQLCODE_FLAG={'name':a20_0x121ed7(0x153),'type':a20_0x121ed7(0x144),'required':!![],'description':a20_0x121ed7(0x140),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0x121ed7(0x14a)}};export const VERBOSE_FLAG={'name':a20_0x121ed7(0x152),'type':a20_0x121ed7(0x149),'description':'Return\x20full\x20raw\x20response\x20object'};function a20_0x21fb(_0x77c9b2,_0x5d35a2){_0x77c9b2=_0x77c9b2-0x140;const _0x27223a=a20_0x2722();let _0x21fb8a=_0x27223a[_0x77c9b2];return _0x21fb8a;}export const PARAMS_FLAG={'name':a20_0x121ed7(0x147),'type':'string','description':a20_0x121ed7(0x150)};export const NAME_FLAG={'name':a20_0x121ed7(0x14d),'type':a20_0x121ed7(0x144),'description':a20_0x121ed7(0x14c)};export const ID_FLAG={'name':'id','type':a20_0x121ed7(0x14e),'required':!![],'description':a20_0x121ed7(0x141)};function a20_0x2722(){const _0x5641f5=['132655bLHFGB','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','59646ogOPTE','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','Resource\x20ID','9zrJenK','Dataset\x20code\x20(32-char\x20hex\x20UUID)','string','code','3787734iTAwkz','params','14NfEAMN','boolean','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','2024370wvFJTO','Resource\x20name\x20for\x20lookup','name','number','5273590sgyEFA','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','52210WNkXIY','verbose','sqlcode','9352dmiteB','44IAKpxO'];a20_0x2722=function(){return _0x5641f5;};return a20_0x2722();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x35a327,_0x2f297e){const _0x9fbf1f=a21_0x2933,_0x3b9249=_0x35a327();while(!![]){try{const _0x3d29db=parseInt(_0x9fbf1f(0xa6))/0x1*(-parseInt(_0x9fbf1f(0xa4))/0x2)+-parseInt(_0x9fbf1f(0x99))/0x3+-parseInt(_0x9fbf1f(0xa3))/0x4+-parseInt(_0x9fbf1f(0x97))/0x5*(-parseInt(_0x9fbf1f(0x9b))/0x6)+-parseInt(_0x9fbf1f(0x9f))/0x7*(-parseInt(_0x9fbf1f(0xa0))/0x8)+-parseInt(_0x9fbf1f(0x9d))/0x9*(parseInt(_0x9fbf1f(0xa7))/0xa)+parseInt(_0x9fbf1f(0x98))/0xb;if(_0x3d29db===_0x2f297e)break;else _0x3b9249['push'](_0x3b9249['shift']());}catch(_0x556e20){_0x3b9249['push'](_0x3b9249['shift']());}}}(a21_0x333f,0x41ffd));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0xacfb59){const _0x4c47a3=a21_0x2933;if(_0xacfb59>=BYTES_PER_MB){const _0x5324ad=Math[_0x4c47a3(0xa2)](_0xacfb59/BYTES_PER_MB*0x64)/0x64;return _0x5324ad[_0x4c47a3(0x96)](0x2)+'\x20MB';}return _0xacfb59+'\x20B';}function a21_0x2933(_0xe1606a,_0x3df0ae){_0xe1606a=_0xe1606a-0x95;const _0x333f2f=a21_0x333f();let _0x2933e9=_0x333f2f[_0xe1606a];return _0x2933e9;}function a21_0x333f(){const _0x2fc698=['4dDJkNw','trim','144089jeUMKn','4885710HSFpfF','File\x20not\x20found:\x20','toFixed','5jbQnQB','8442489JxoUQV','491199CwJhNM','validation','2362782ahcyGM','size','9djupsu','\x20path\x20is\x20required.','14SuAldT','771688KRoyal','isFile','ceil','573612XHhxyV'];a21_0x333f=function(){return _0x2fc698;};return a21_0x333f();}export function requireRuntimeUploadFile(_0x4d4dad,_0x8bd4e4){const _0x4c1d03=a21_0x2933,_0x58325b=_0x4d4dad[_0x4c1d03(0xa5)]();if(!_0x58325b)throw CliErrors['validation'](_0x8bd4e4+_0x4c1d03(0x9e));if(!existsSync(_0x58325b))throw CliErrors[_0x4c1d03(0x9a)](_0x4c1d03(0x95)+_0x58325b);const _0x12c17d=statSync(_0x58325b);if(!_0x12c17d[_0x4c1d03(0xa1)]())throw CliErrors[_0x4c1d03(0x9a)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x58325b);if(_0x12c17d['size']>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x4c1d03(0x9a)]('File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20'+_0x58325b+'\x20('+formatBytes(_0x12c17d[_0x4c1d03(0x9c)])+')');return{'path':_0x58325b,'size':_0x12c17d[_0x4c1d03(0x9c)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a22_0x3273df=a22_0x2487;function a22_0x2487(_0x34364d,_0x1fb5b7){_0x34364d=_0x34364d-0xe6;const _0x4bc651=a22_0x4bc6();let _0x248791=_0x4bc651[_0x34364d];return _0x248791;}(function(_0x1edced,_0x12b797){const _0x1d0dda=a22_0x2487,_0x3d1e89=_0x1edced();while(!![]){try{const _0xddd793=parseInt(_0x1d0dda(0x128))/0x1*(parseInt(_0x1d0dda(0xe9))/0x2)+parseInt(_0x1d0dda(0x129))/0x3*(parseInt(_0x1d0dda(0xfa))/0x4)+parseInt(_0x1d0dda(0x126))/0x5+-parseInt(_0x1d0dda(0x11d))/0x6+parseInt(_0x1d0dda(0xe8))/0x7*(parseInt(_0x1d0dda(0xec))/0x8)+-parseInt(_0x1d0dda(0x122))/0x9*(parseInt(_0x1d0dda(0x108))/0xa)+-parseInt(_0x1d0dda(0x10e))/0xb;if(_0xddd793===_0x12b797)break;else _0x3d1e89['push'](_0x3d1e89['shift']());}catch(_0x5e3b03){_0x3d1e89['push'](_0x3d1e89['shift']());}}}(a22_0x4bc6,0x25ba6));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_0x3273df(0xf7),'type':a22_0x3273df(0xf4),'description':'Write\x20to\x20global\x20config','default':![]};function a22_0x4bc6(){const _0x2581be=['Key\x20not\x20found:\x20','190cfcnyD','../../context.js','split','trim','write','key','988746nAAZVq','appcode','get','includes','join','log','read','config','pageSize\x20must\x20be\x20a\x20positive\x20number','\x20config\x20get\x20<key>','validation','project-or-global-explicit','object','alias','Set\x20`','1239510LSbCTr','keys','length','Config\x20files:\x0a','isArray','116829Ynqvrr','Set\x20a\x20config\x20value','List\x20current\x20config',';\x20apps.<alias>.appcode','1309250QkRLjp','list','351lBwyhT','3yxfmZC','\x20(global)','\x20\x20project:\x20','112EtDVYX','874zhfqtA','\x22\x20not\x20found\x20at\x20top\x20level.','\x20config\x20delete\x20<key>\x20[--global]','82304xKtQoA','set','field','raw','Settable\x20keys:\x20','pageSize','\x20config\x20set\x20<key>\x20<value>\x20[--global]','`\x20=\x20\x22','boolean','Deleted\x20`','format','global','args','Delete\x20a\x20config\x20value','471196hloXzq','stringify','Key\x20\x22','Missing\x20key\x20or\x20value.','delete','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Usage:\x20','bool','\x22.\x20Allowed:\x20','apps','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','Missing\x20key\x20argument.','(none)'];a22_0x4bc6=function(){return _0x2581be;};return a22_0x4bc6();}function parseAliasAppcodeSetKey(_0x1257cf){const _0x71ccfa=a22_0x3273df,_0x238f65=_0x1257cf[_0x71ccfa(0x10a)]('.');if(_0x238f65['length']!==0x3||_0x238f65[0x0]!==_0x71ccfa(0x103)||_0x238f65[0x2]!==_0x71ccfa(0x10f))return undefined;const _0x2f4e7c=_0x238f65[0x1]?.[_0x71ccfa(0x10b)]();return _0x2f4e7c?_0x2f4e7c:undefined;}function parseAliasDeleteKey(_0x505273){const _0x52d5e3=a22_0x3273df,_0x265a02=_0x505273[_0x52d5e3(0x10a)]('.');if(_0x265a02[_0x52d5e3(0x11f)]===0x2&&_0x265a02[0x0]===_0x52d5e3(0x103)){const _0x16969e=_0x265a02[0x1]?.[_0x52d5e3(0x10b)]();return _0x16969e?{'alias':_0x16969e}:undefined;}if(_0x265a02[_0x52d5e3(0x11f)]===0x3&&_0x265a02[0x0]===_0x52d5e3(0x103)&&_0x265a02[0x2]===_0x52d5e3(0x10f)){const _0xecf5f1=_0x265a02[0x1]?.[_0x52d5e3(0x10b)]();return _0xecf5f1?{'alias':_0xecf5f1,'field':_0x52d5e3(0x10f)}:undefined;}return undefined;}function setLocalAppAlias(_0xbcad6c,_0x278143,_0x2448a1){const _0x4f5883=a22_0x3273df,_0x4a4893=_0xbcad6c['apps']&&typeof _0xbcad6c['apps']==='object'&&!Array[_0x4f5883(0x121)](_0xbcad6c[_0x4f5883(0x103)])?_0xbcad6c[_0x4f5883(0x103)]:{},_0x43dcd9=_0x4a4893[_0x278143]&&typeof _0x4a4893[_0x278143]===_0x4f5883(0x11a)&&!Array[_0x4f5883(0x121)](_0x4a4893[_0x278143])?_0x4a4893[_0x278143]:{};_0x43dcd9[_0x4f5883(0x10f)]=_0x2448a1,_0x4a4893[_0x278143]=_0x43dcd9,_0xbcad6c[_0x4f5883(0x103)]=_0x4a4893;}function deleteLocalAppAlias(_0x248c06,_0x3e0376){const _0x453c02=a22_0x3273df;if(!_0x248c06[_0x453c02(0x103)]||typeof _0x248c06['apps']!=='object'||Array[_0x453c02(0x121)](_0x248c06[_0x453c02(0x103)]))return![];const _0x36ae43=_0x248c06[_0x453c02(0x103)],_0x226f21=_0x36ae43[_0x3e0376[_0x453c02(0x11b)]];if(!_0x226f21||typeof _0x226f21!==_0x453c02(0x11a)||Array[_0x453c02(0x121)](_0x226f21))return![];if(!_0x3e0376[_0x453c02(0xee)])return delete _0x36ae43[_0x3e0376['alias']],!![];if(!(_0x3e0376[_0x453c02(0xee)]in _0x226f21))return![];return delete _0x226f21[_0x3e0376[_0x453c02(0xee)]],Object[_0x453c02(0x11e)](_0x226f21)[_0x453c02(0x11f)]===0x0&&delete _0x36ae43[_0x3e0376['alias']],!![];}const listDef={'service':a22_0x3273df(0x115),'command':a22_0x3273df(0x127),'description':a22_0x3273df(0x124),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x5bf6f9){const _0x5ed87d=a22_0x3273df,{buildConfigFromFlags:_0xe9dda3}=await import(_0x5ed87d(0x109)),_0x1dcc93=_0xe9dda3({}),_0x1b1aa4=getProjectConfigPath(),_0x6862b3=resolveWriteConfigPath(_0x5ed87d(0xf7));if(_0x5bf6f9[_0x5ed87d(0xf6)]==='pretty')return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON[_0x5ed87d(0xfb)](_0x1dcc93[_0x5ed87d(0xef)],null,0x2)+'\x0a\x0a')+_0x5ed87d(0x120)+(_0x5ed87d(0xe7)+(_0x1b1aa4??_0x5ed87d(0x106))+'\x0a')+('\x20\x20global:\x20\x20'+_0x6862b3)};return{'ok':!![],'data':{'effective':_0x1dcc93[_0x5ed87d(0xef)],'configFiles':{'project':_0x1b1aa4??null,'global':_0x6862b3}}};}},getDef={'service':a22_0x3273df(0x115),'command':a22_0x3273df(0x110),'description':'Get\x20a\x20config\x20value','risk':a22_0x3273df(0x114),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x3273df(0x10d),'description':a22_0x3273df(0x104),'required':!![]}],'flags':[],async 'execute'(_0x1382a3){const _0x46fd04=a22_0x3273df,_0x2ffa2b=_0x1382a3['args'][0x0];if(!_0x2ffa2b)throw CliErrors[_0x46fd04(0x118)](_0x46fd04(0x105),'Usage:\x20'+CLI_BIN_NAME+_0x46fd04(0x117));const {buildConfigFromFlags:_0x30ea14}=await import(_0x46fd04(0x109)),{raw:_0x1d5e1e}=_0x30ea14({});if(_0x2ffa2b[_0x46fd04(0x111)]('.')){const _0x2afd0a=_0x2ffa2b['split']('.');let _0x47e6a9=_0x1d5e1e;for(const _0x2d87d2 of _0x2afd0a){if(_0x47e6a9==null||typeof _0x47e6a9!=='object')throw CliErrors['validation'](_0x46fd04(0x107)+_0x2ffa2b);_0x47e6a9=_0x47e6a9[_0x2d87d2];}if(_0x47e6a9===undefined)throw CliErrors[_0x46fd04(0x118)](_0x46fd04(0x107)+_0x2ffa2b);return console[_0x46fd04(0x113)](typeof _0x47e6a9===_0x46fd04(0x11a)?JSON[_0x46fd04(0xfb)](_0x47e6a9,null,0x2):String(_0x47e6a9)),{'ok':!![]};}const _0x572c0c=_0x1d5e1e[_0x2ffa2b];if(_0x572c0c===undefined)throw CliErrors[_0x46fd04(0x118)](_0x46fd04(0x107)+_0x2ffa2b);return console[_0x46fd04(0x113)](typeof _0x572c0c===_0x46fd04(0x11a)?JSON['stringify'](_0x572c0c,null,0x2):String(_0x572c0c)),{'ok':!![]};}},setDef={'service':a22_0x3273df(0x115),'command':a22_0x3273df(0xed),'description':a22_0x3273df(0x123),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x12253c){const _0xb70eeb=a22_0x3273df,_0x182bab=_0x12253c['args'][0x0],_0x2c40d6=_0x12253c[_0xb70eeb(0xf8)][0x1];if(!_0x182bab||_0x2c40d6===undefined)throw CliErrors['validation'](_0xb70eeb(0xfd),_0xb70eeb(0x100)+CLI_BIN_NAME+_0xb70eeb(0xf2));if(ENUM_KEYS[_0x182bab]&&!ENUM_KEYS[_0x182bab]['includes'](_0x2c40d6))throw CliErrors['validation']('Invalid\x20value\x20for\x20\x22'+_0x182bab+_0xb70eeb(0x102)+ENUM_KEYS[_0x182bab][_0xb70eeb(0x112)](',\x20'));if(_0x182bab==='riskLevel')throw CliErrors['validation'](_0xb70eeb(0xff));if(_0x182bab===_0xb70eeb(0xf1)){const _0xb4601a=Number(_0x2c40d6);if(isNaN(_0xb4601a)||_0xb4601a<=0x0)throw CliErrors[_0xb70eeb(0x118)](_0xb70eeb(0x116));}const _0x1bcde6=resolveWriteScope({'explicitGlobal':_0x12253c[_0xb70eeb(0x101)](_0xb70eeb(0xf7)),'policy':'project-or-global-explicit'}),_0x3f7ccc=toScopeFlags(_0x1bcde6),_0x3713a7=readScopedConfig(_0x3f7ccc),_0x1935d9=parseAliasAppcodeSetKey(_0x182bab);if(!_0x1935d9&&!isTopLevelConfigKey(_0x182bab))throw CliErrors[_0xb70eeb(0x118)]('Top-level\x20key\x20\x22'+_0x182bab+'\x22\x20is\x20not\x20settable.',_0xb70eeb(0xf0)+getTopLevelConfigKeySummary()+_0xb70eeb(0x125));return _0x1935d9?setLocalAppAlias(_0x3713a7,_0x1935d9,_0x2c40d6):_0x3713a7[_0x182bab]=_0x182bab==='pageSize'?Number(_0x2c40d6):_0x2c40d6,console['log'](_0xb70eeb(0x11c)+_0x182bab+_0xb70eeb(0xf3)+_0x2c40d6+'\x22'+(_0x1bcde6==='global'?'\x20(global)':'')),writeScopedConfig(_0x3713a7,_0x3f7ccc),{'ok':!![]};}},deleteDef={'service':a22_0x3273df(0x115),'command':a22_0x3273df(0xfe),'description':a22_0x3273df(0xf9),'risk':a22_0x3273df(0x10c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x3273df(0x10d),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x4c1368){const _0x368d23=a22_0x3273df,_0x5ee975=_0x4c1368[_0x368d23(0xf8)][0x0];if(!_0x5ee975)throw CliErrors[_0x368d23(0x118)](_0x368d23(0x105),'Usage:\x20'+CLI_BIN_NAME+_0x368d23(0xeb));const _0x303f2f=resolveWriteScope({'explicitGlobal':_0x4c1368[_0x368d23(0x101)]('global'),'policy':_0x368d23(0x119)}),_0x28694e=toScopeFlags(_0x303f2f),_0x395cc0=readScopedConfig(_0x28694e),_0x524377=parseAliasDeleteKey(_0x5ee975);if(_0x524377){if(!deleteLocalAppAlias(_0x395cc0,_0x524377))throw CliErrors[_0x368d23(0x118)](_0x368d23(0x107)+_0x5ee975);return console[_0x368d23(0x113)](_0x368d23(0xf5)+_0x5ee975+'`'+(_0x303f2f==='global'?_0x368d23(0xe6):'')),writeScopedConfig(_0x395cc0,_0x28694e),{'ok':!![]};}if(_0x395cc0[_0x5ee975]===undefined)throw CliErrors[_0x368d23(0x118)](_0x368d23(0xfc)+_0x5ee975+_0x368d23(0xea));return delete _0x395cc0[_0x5ee975],console[_0x368d23(0x113)](_0x368d23(0xf5)+_0x5ee975+'`'+(_0x303f2f===_0x368d23(0xf7)?_0x368d23(0xe6):'')),writeScopedConfig(_0x395cc0,_0x28694e),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
1
|
+
const a22_0x11f699=a22_0x153d;(function(_0x388be7,_0x24a622){const _0x585e9f=a22_0x153d,_0x4a03d6=_0x388be7();while(!![]){try{const _0x5551e5=parseInt(_0x585e9f(0x1cf))/0x1+-parseInt(_0x585e9f(0x1d2))/0x2*(parseInt(_0x585e9f(0x1d9))/0x3)+-parseInt(_0x585e9f(0x1d5))/0x4*(parseInt(_0x585e9f(0x1d6))/0x5)+parseInt(_0x585e9f(0x1c4))/0x6*(-parseInt(_0x585e9f(0x1f9))/0x7)+-parseInt(_0x585e9f(0x1f8))/0x8*(-parseInt(_0x585e9f(0x1fa))/0x9)+parseInt(_0x585e9f(0x1f5))/0xa*(-parseInt(_0x585e9f(0x1eb))/0xb)+parseInt(_0x585e9f(0x1b7))/0xc*(parseInt(_0x585e9f(0x1e5))/0xd);if(_0x5551e5===_0x24a622)break;else _0x4a03d6['push'](_0x4a03d6['shift']());}catch(_0xaea3ba){_0x4a03d6['push'](_0x4a03d6['shift']());}}}(a22_0x8541,0xe9686));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';function a22_0x8541(){const _0x5b765d=['99672rdUXWJ','7364mMxTuQ','207oDfWYF','global','Invalid\x20value\x20for\x20\x22','set','\x20config\x20set\x20<key>\x20<value>\x20[--global]','\x20(global)','564uITRUG','../../context.js','project-or-global-explicit','Missing\x20key\x20argument.','Delete\x20a\x20config\x20value','bool','\x22\x20not\x20found\x20at\x20top\x20level.','format','pageSize','Key\x20not\x20found:\x20','\x22.\x20Allowed:\x20','\x20\x20global:\x20\x20','Get\x20a\x20config\x20value','9114nhbYsx','\x22\x20is\x20not\x20settable.','apps','Usage:\x20','boolean','object','trim','includes','delete','(none)','Key\x20\x22','723124jltldd','Value\x20to\x20assign','appcode','4JFVasZ','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','\x20config\x20get\x20<key>','1143332WQOCCQ','30UHSuXv','alias','join','323925czEaeW','length','isArray','field','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','List\x20current\x20config','pretty','split','Missing\x20key\x20or\x20value.','read','stringify','Set\x20a\x20config\x20value','1329770ezQGHS','pageSize\x20must\x20be\x20a\x20positive\x20number','validation','args','raw','Top-level\x20key\x20\x22','11iZTefW','write','Config\x20files:\x0a','log','key','config','`\x20=\x20\x22','value','Deleted\x20`','riskLevel','13323370zcjoqg','\x20\x20project:\x20','Settable\x20keys:\x20'];a22_0x8541=function(){return _0x5b765d;};return a22_0x8541();}import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a22_0x11f699(0x1fb),'type':a22_0x11f699(0x1c8),'description':'Write\x20to\x20global\x20config','default':![]};function a22_0x153d(_0x520b96,_0x9b7f45){_0x520b96=_0x520b96-0x1b7;const _0x85411a=a22_0x8541();let _0x153da=_0x85411a[_0x520b96];return _0x153da;}function parseAliasAppcodeSetKey(_0x349b94){const _0x25d64e=a22_0x11f699,_0x199514=_0x349b94[_0x25d64e(0x1e0)]('.');if(_0x199514[_0x25d64e(0x1da)]!==0x3||_0x199514[0x0]!==_0x25d64e(0x1c6)||_0x199514[0x2]!=='appcode')return undefined;const _0x54c931=_0x199514[0x1]?.[_0x25d64e(0x1ca)]();return _0x54c931?_0x54c931:undefined;}function parseAliasDeleteKey(_0x12a3d9){const _0xc079df=a22_0x11f699,_0x305cc4=_0x12a3d9[_0xc079df(0x1e0)]('.');if(_0x305cc4[_0xc079df(0x1da)]===0x2&&_0x305cc4[0x0]===_0xc079df(0x1c6)){const _0x595ca1=_0x305cc4[0x1]?.[_0xc079df(0x1ca)]();return _0x595ca1?{'alias':_0x595ca1}:undefined;}if(_0x305cc4['length']===0x3&&_0x305cc4[0x0]===_0xc079df(0x1c6)&&_0x305cc4[0x2]===_0xc079df(0x1d1)){const _0x56219e=_0x305cc4[0x1]?.['trim']();return _0x56219e?{'alias':_0x56219e,'field':'appcode'}:undefined;}return undefined;}function setLocalAppAlias(_0x2cffca,_0x4ac2b0,_0xa1308a){const _0x3dcef1=a22_0x11f699,_0x1ba9ac=_0x2cffca[_0x3dcef1(0x1c6)]&&typeof _0x2cffca[_0x3dcef1(0x1c6)]===_0x3dcef1(0x1c9)&&!Array[_0x3dcef1(0x1db)](_0x2cffca[_0x3dcef1(0x1c6)])?_0x2cffca['apps']:{},_0x2d61f8=_0x1ba9ac[_0x4ac2b0]&&typeof _0x1ba9ac[_0x4ac2b0]===_0x3dcef1(0x1c9)&&!Array[_0x3dcef1(0x1db)](_0x1ba9ac[_0x4ac2b0])?_0x1ba9ac[_0x4ac2b0]:{};_0x2d61f8['appcode']=_0xa1308a,_0x1ba9ac[_0x4ac2b0]=_0x2d61f8,_0x2cffca[_0x3dcef1(0x1c6)]=_0x1ba9ac;}function deleteLocalAppAlias(_0x157efc,_0x53642c){const _0x104993=a22_0x11f699;if(!_0x157efc['apps']||typeof _0x157efc['apps']!==_0x104993(0x1c9)||Array['isArray'](_0x157efc[_0x104993(0x1c6)]))return![];const _0x53edee=_0x157efc[_0x104993(0x1c6)],_0x4d1ca4=_0x53edee[_0x53642c[_0x104993(0x1d7)]];if(!_0x4d1ca4||typeof _0x4d1ca4!==_0x104993(0x1c9)||Array[_0x104993(0x1db)](_0x4d1ca4))return![];if(!_0x53642c[_0x104993(0x1dc)])return delete _0x53edee[_0x53642c[_0x104993(0x1d7)]],!![];if(!(_0x53642c['field']in _0x4d1ca4))return![];return delete _0x4d1ca4[_0x53642c[_0x104993(0x1dc)]],Object['keys'](_0x4d1ca4)[_0x104993(0x1da)]===0x0&&delete _0x53edee[_0x53642c[_0x104993(0x1d7)]],!![];}const listDef={'service':'config','command':'list','description':a22_0x11f699(0x1de),'risk':a22_0x11f699(0x1e2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x57491c){const _0x5b74c5=a22_0x11f699,{buildConfigFromFlags:_0x59731f}=await import('../../context.js'),_0x30f871=_0x59731f({}),_0x4bf8ba=getProjectConfigPath(),_0x4dd3ba=resolveWriteConfigPath(_0x5b74c5(0x1fb));if(_0x57491c[_0x5b74c5(0x1be)]===_0x5b74c5(0x1df))return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON[_0x5b74c5(0x1e3)](_0x30f871[_0x5b74c5(0x1e9)],null,0x2)+'\x0a\x0a')+_0x5b74c5(0x1ed)+(_0x5b74c5(0x1f6)+(_0x4bf8ba??_0x5b74c5(0x1cd))+'\x0a')+(_0x5b74c5(0x1c2)+_0x4dd3ba)};return{'ok':!![],'data':{'effective':_0x30f871[_0x5b74c5(0x1e9)],'configFiles':{'project':_0x4bf8ba??null,'global':_0x4dd3ba}}};}},getDef={'service':a22_0x11f699(0x1f0),'command':'get','description':a22_0x11f699(0x1c3),'risk':a22_0x11f699(0x1e2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x11f699(0x1ef),'description':a22_0x11f699(0x1dd),'required':!![]}],'flags':[],async 'execute'(_0xc4ca03){const _0x42ca2c=a22_0x11f699,_0x203553=_0xc4ca03[_0x42ca2c(0x1e8)][0x0];if(!_0x203553)throw CliErrors[_0x42ca2c(0x1e7)](_0x42ca2c(0x1ba),'Usage:\x20'+CLI_BIN_NAME+_0x42ca2c(0x1d4));const {buildConfigFromFlags:_0x218710}=await import(_0x42ca2c(0x1b8)),{raw:_0x417e01}=_0x218710({});if(_0x203553[_0x42ca2c(0x1cb)]('.')){const _0x18ee06=_0x203553[_0x42ca2c(0x1e0)]('.');let _0x93989a=_0x417e01;for(const _0x1458e3 of _0x18ee06){if(_0x93989a==null||typeof _0x93989a!==_0x42ca2c(0x1c9))throw CliErrors[_0x42ca2c(0x1e7)](_0x42ca2c(0x1c0)+_0x203553);_0x93989a=_0x93989a[_0x1458e3];}if(_0x93989a===undefined)throw CliErrors[_0x42ca2c(0x1e7)](_0x42ca2c(0x1c0)+_0x203553);return console[_0x42ca2c(0x1ee)](typeof _0x93989a==='object'?JSON[_0x42ca2c(0x1e3)](_0x93989a,null,0x2):String(_0x93989a)),{'ok':!![]};}const _0x22f264=_0x417e01[_0x203553];if(_0x22f264===undefined)throw CliErrors[_0x42ca2c(0x1e7)](_0x42ca2c(0x1c0)+_0x203553);return console[_0x42ca2c(0x1ee)](typeof _0x22f264===_0x42ca2c(0x1c9)?JSON['stringify'](_0x22f264,null,0x2):String(_0x22f264)),{'ok':!![]};}},setDef={'service':a22_0x11f699(0x1f0),'command':a22_0x11f699(0x1fd),'description':a22_0x11f699(0x1e4),'risk':a22_0x11f699(0x1ec),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x11f699(0x1f2),'description':a22_0x11f699(0x1d0),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x937d8){const _0x39e656=a22_0x11f699,_0x2a810f=_0x937d8[_0x39e656(0x1e8)][0x0],_0x12b8e0=_0x937d8[_0x39e656(0x1e8)][0x1];if(!_0x2a810f||_0x12b8e0===undefined)throw CliErrors[_0x39e656(0x1e7)](_0x39e656(0x1e1),_0x39e656(0x1c7)+CLI_BIN_NAME+_0x39e656(0x1fe));if(ENUM_KEYS[_0x2a810f]&&!ENUM_KEYS[_0x2a810f]['includes'](_0x12b8e0))throw CliErrors['validation'](_0x39e656(0x1fc)+_0x2a810f+_0x39e656(0x1c1)+ENUM_KEYS[_0x2a810f][_0x39e656(0x1d8)](',\x20'));if(_0x2a810f===_0x39e656(0x1f4))throw CliErrors[_0x39e656(0x1e7)](_0x39e656(0x1d3));if(_0x2a810f===_0x39e656(0x1bf)){const _0x4570af=Number(_0x12b8e0);if(isNaN(_0x4570af)||_0x4570af<=0x0)throw CliErrors[_0x39e656(0x1e7)](_0x39e656(0x1e6));}const _0x55202f=resolveWriteScope({'explicitGlobal':_0x937d8[_0x39e656(0x1bc)](_0x39e656(0x1fb)),'policy':'project-or-global-explicit'}),_0x5c4d15=toScopeFlags(_0x55202f),_0x4e6ad2=readScopedConfig(_0x5c4d15),_0x4085f7=parseAliasAppcodeSetKey(_0x2a810f);if(!_0x4085f7&&!isTopLevelConfigKey(_0x2a810f))throw CliErrors['validation'](_0x39e656(0x1ea)+_0x2a810f+_0x39e656(0x1c5),_0x39e656(0x1f7)+getTopLevelConfigKeySummary()+';\x20apps.<alias>.appcode');return _0x4085f7?setLocalAppAlias(_0x4e6ad2,_0x4085f7,_0x12b8e0):_0x4e6ad2[_0x2a810f]=_0x2a810f===_0x39e656(0x1bf)?Number(_0x12b8e0):_0x12b8e0,console['log']('Set\x20`'+_0x2a810f+_0x39e656(0x1f1)+_0x12b8e0+'\x22'+(_0x55202f===_0x39e656(0x1fb)?_0x39e656(0x1ff):'')),writeScopedConfig(_0x4e6ad2,_0x5c4d15),{'ok':!![]};}},deleteDef={'service':a22_0x11f699(0x1f0),'command':a22_0x11f699(0x1cc),'description':a22_0x11f699(0x1bb),'risk':a22_0x11f699(0x1ec),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x11f699(0x1ef),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x2f866a){const _0x22cb81=a22_0x11f699,_0x156b6d=_0x2f866a[_0x22cb81(0x1e8)][0x0];if(!_0x156b6d)throw CliErrors[_0x22cb81(0x1e7)](_0x22cb81(0x1ba),_0x22cb81(0x1c7)+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x2f1181=resolveWriteScope({'explicitGlobal':_0x2f866a['bool'](_0x22cb81(0x1fb)),'policy':_0x22cb81(0x1b9)}),_0x3d16bf=toScopeFlags(_0x2f1181),_0x264a4e=readScopedConfig(_0x3d16bf),_0x41d660=parseAliasDeleteKey(_0x156b6d);if(_0x41d660){if(!deleteLocalAppAlias(_0x264a4e,_0x41d660))throw CliErrors[_0x22cb81(0x1e7)]('Key\x20not\x20found:\x20'+_0x156b6d);return console['log'](_0x22cb81(0x1f3)+_0x156b6d+'`'+(_0x2f1181===_0x22cb81(0x1fb)?_0x22cb81(0x1ff):'')),writeScopedConfig(_0x264a4e,_0x3d16bf),{'ok':!![]};}if(_0x264a4e[_0x156b6d]===undefined)throw CliErrors[_0x22cb81(0x1e7)](_0x22cb81(0x1ce)+_0x156b6d+_0x22cb81(0x1bd));return delete _0x264a4e[_0x156b6d],console['log'](_0x22cb81(0x1f3)+_0x156b6d+'`'+(_0x2f1181===_0x22cb81(0x1fb)?_0x22cb81(0x1ff):'')),writeScopedConfig(_0x264a4e,_0x3d16bf),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3f1c4d,_0x55c719){var _0x429cf3=a23_0x341a,_0x1a1ee5=_0x3f1c4d();while(!![]){try{var _0x2ae7e7=-parseInt(_0x429cf3(0x1e7))/0x1*(parseInt(_0x429cf3(0x1e5))/0x2)+-parseInt(_0x429cf3(0x1e6))/0x3+parseInt(_0x429cf3(0x1e0))/0x4+parseInt(_0x429cf3(0x1e8))/0x5+parseInt(_0x429cf3(0x1e1))/0x6+parseInt(_0x429cf3(0x1e3))/0x7+-parseInt(_0x429cf3(0x1e2))/0x8*(parseInt(_0x429cf3(0x1e4))/0x9);if(_0x2ae7e7===_0x55c719)break;else _0x1a1ee5['push'](_0x1a1ee5['shift']());}catch(_0x21d8d9){_0x1a1ee5['push'](_0x1a1ee5['shift']());}}}(a23_0x2b13,0xb139b));function a23_0x341a(_0x5ce92a,_0x7fe045){_0x5ce92a=_0x5ce92a-0x1e0;var _0x2b13f0=a23_0x2b13();var _0x341a97=_0x2b13f0[_0x5ce92a];return _0x341a97;}import{CLI_BIN_NAME}from'../../constant/cli.js';function a23_0x2b13(){var _0x2946a6=['38OjtaPY','4016544rghoik','6211MfbKxQ','5301040cAeJPe','3084772vsNxud','6542940vGGhaP','2590376ztWzEF','1625904tWTqHb','27cBBPoG'];a23_0x2b13=function(){return _0x2946a6;};return a23_0x2b13();}export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a24_0x5af855=a24_0x3631;function a24_0x3631(_0x5eddd0,_0x19ed4){_0x5eddd0=_0x5eddd0-0x151;const _0x3818eb=a24_0x3818();let _0x36310a=_0x3818eb[_0x5eddd0];return _0x36310a;}(function(_0x54b832,_0xbba4e5){const _0x5da77b=a24_0x3631,_0x5606e0=_0x54b832();while(!![]){try{const _0xb29791=parseInt(_0x5da77b(0x19d))/0x1+-parseInt(_0x5da77b(0x16f))/0x2+parseInt(_0x5da77b(0x18e))/0x3+parseInt(_0x5da77b(0x17f))/0x4*(parseInt(_0x5da77b(0x162))/0x5)+-parseInt(_0x5da77b(0x189))/0x6*(parseInt(_0x5da77b(0x15e))/0x7)+-parseInt(_0x5da77b(0x195))/0x8+parseInt(_0x5da77b(0x159))/0x9*(parseInt(_0x5da77b(0x16d))/0xa);if(_0xb29791===_0xbba4e5)break;else _0x5606e0['push'](_0x5606e0['shift']());}catch(_0x26bb33){_0x5606e0['push'](_0x5606e0['shift']());}}}(a24_0x3818,0x6c01b));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';function a24_0x3818(){const _0x3b00ee=['now','command','\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}}','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20PAGINATION','build','create','1570732lepDEu','\x20\x20AGGREGATE\x20TYPES','/api/{appCode}/','\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}','length','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','dryRun','paramsRequired','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','76350SlmtNh','getOne','paramsHint','\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}}','join','1276386nGwyAQ','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\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}','description','filter','body','6392944rXVgqZ','\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\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\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','read','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','116946qihufE','Get\x20a\x20single\x20record\x20by\x20ID','delete','map','data','code','\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}','str','\x20\x20EXAMPLES','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','params','\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}}','batch','data\x20','\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}}','POST','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','aggregate','\x20on\x20dataset\x20','\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\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','264276CVsQVp','\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}}','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20completed\x20in\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}}','14GRqwRc','\x20\x20PARAMS\x20STRUCTURE','batchCreate','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','10mIXSCA','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','operation','\x20\x20WHERE\x20OPERATORS','\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','update','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','write','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','90aPZTee','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','650174rjiUEU','\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\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','helpExtra','\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]}}','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\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}}','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20'];a24_0x3818=function(){return _0x3b00ee;};return a24_0x3818();}import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a24_0x5af855(0x193),'operation':a24_0x5af855(0x193),'risk':a24_0x5af855(0x199),'paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a24_0x5af855(0x188)+a24_0x5af855(0x161),'helpExtra':[a24_0x5af855(0x165),a24_0x5af855(0x18c),a24_0x5af855(0x15d),a24_0x5af855(0x152),a24_0x5af855(0x157),a24_0x5af855(0x15a),a24_0x5af855(0x176),a24_0x5af855(0x174),a24_0x5af855(0x170),a24_0x5af855(0x1a8),a24_0x5af855(0x17a),'','\x20\x20LOGICAL\x20COMBINATORS',a24_0x5af855(0x196),'\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}}]}','',a24_0x5af855(0x172),a24_0x5af855(0x198),a24_0x5af855(0x19b),'\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\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)',a24_0x5af855(0x169),'',a24_0x5af855(0x17c),'\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.',a24_0x5af855(0x171),'\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)'][a24_0x5af855(0x18d)]('\x0a')},{'command':'getOne','operation':a24_0x5af855(0x18a),'risk':'read','paramsRequired':!![],'description':a24_0x5af855(0x19e),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a24_0x5af855(0x17e),'operation':a24_0x5af855(0x17e),'risk':a24_0x5af855(0x16a),'paramsRequired':!![],'description':a24_0x5af855(0x184),'paramsHint':a24_0x5af855(0x18f)},{'command':a24_0x5af855(0x160),'operation':a24_0x5af855(0x160),'risk':'write','paramsRequired':!![],'description':a24_0x5af855(0x1a6),'paramsHint':a24_0x5af855(0x16c)},{'command':a24_0x5af855(0x167),'operation':a24_0x5af855(0x167),'risk':a24_0x5af855(0x16a),'paramsRequired':!![],'description':'Update\x20an\x20existing\x20record','paramsHint':a24_0x5af855(0x177)+a24_0x5af855(0x168)},{'command':a24_0x5af855(0x19f),'operation':'delete','risk':'high-risk-write','paramsRequired':!![],'description':a24_0x5af855(0x175),'paramsHint':a24_0x5af855(0x16b)},{'command':a24_0x5af855(0x155),'operation':a24_0x5af855(0x155),'risk':a24_0x5af855(0x199),'paramsRequired':![],'description':a24_0x5af855(0x187),'paramsHint':a24_0x5af855(0x163)+a24_0x5af855(0x15b),'helpExtra':[a24_0x5af855(0x180),a24_0x5af855(0x197),a24_0x5af855(0x191),a24_0x5af855(0x182),'\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\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}',a24_0x5af855(0x1a3),'\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}','',a24_0x5af855(0x15f),a24_0x5af855(0x190),a24_0x5af855(0x16e),a24_0x5af855(0x158),a24_0x5af855(0x19a),'\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}}]',a24_0x5af855(0x19c),'',a24_0x5af855(0x1a5),a24_0x5af855(0x17b),a24_0x5af855(0x166),'',a24_0x5af855(0x154),'\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#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'][a24_0x5af855(0x18d)]('\x0a')}];function makeDataCommand(_0x4611a7){const _0x1c1fc9=a24_0x5af855,_0x25b67c=_0x1c1fc9(0x151)+_0x4611a7[_0x1c1fc9(0x179)],_0x394b80={'service':_0x1c1fc9(0x1a1),'command':_0x4611a7['command'],'description':_0x4611a7[_0x1c1fc9(0x192)],'risk':_0x4611a7['risk'],'helpExtra':_0x4611a7[_0x1c1fc9(0x173)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x4611a7[_0x1c1fc9(0x18b)]}],'validate':async _0x71e3b6=>{const _0x121634=_0x1c1fc9;_0x4611a7[_0x121634(0x186)]&&requireAnyOf(_0x71e3b6,[_0x121634(0x1a7)],_0x25b67c),_0x4611a7['operation']==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x71e3b6[_0x121634(0x1a4)](_0x121634(0x1a7)))),_0x4611a7[_0x121634(0x164)]===_0x121634(0x167)&&parseUpdateIdsFromParams(parseJsonParams(_0x71e3b6[_0x121634(0x1a4)](_0x121634(0x1a7)))??{});},async 'execute'(_0x2c8d4f){const _0x189966=_0x1c1fc9,_0x233086=_0x2c8d4f[_0x189966(0x1a4)](_0x189966(0x1a2)),_0x1f34b0=_0x4611a7[_0x189966(0x164)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2c8d4f['str'](_0x189966(0x1a7)))):parseJsonParams(_0x2c8d4f[_0x189966(0x1a4)](_0x189966(0x1a7)))??{},_0x574ea4=_0x4611a7[_0x189966(0x164)]===_0x189966(0x167)?parseUpdateIdsFromParams(_0x1f34b0):undefined,_0x27a1b0=_0x574ea4?normalizeUpdateParamsForRuntime(_0x1f34b0,_0x574ea4):_0x1f34b0,_0x2e02d3=Date[_0x189966(0x178)](),_0xbf1417=await executeData(_0x233086,_0x4611a7[_0x189966(0x164)],_0x27a1b0),_0x4b5061=Date[_0x189966(0x178)]()-_0x2e02d3,_0x27f922=_0x574ea4&&_0x574ea4[_0x189966(0x183)]>0x1?buildBatchUpdateResult(_0x574ea4,_0xbf1417):_0xbf1417;return{'ok':!![],'data':{'result':_0x27f922,'elapsed':_0x4b5061},'message':'data\x20'+_0x4611a7[_0x189966(0x179)]+_0x189966(0x15c)+_0x4b5061+'ms'};}};return _0x4611a7['risk']!=='read'&&(_0x394b80[_0x1c1fc9(0x185)]=async _0x21740a=>{const _0x4338d8=_0x1c1fc9,_0x2c8423=_0x21740a['str'](_0x4338d8(0x1a2)),_0x1ff976=_0x4611a7[_0x4338d8(0x164)]===_0x4338d8(0x160)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x21740a[_0x4338d8(0x1a4)]('params'))):parseJsonParams(_0x21740a['str'](_0x4338d8(0x1a7)))??{};let _0x5d87d2=_0x1ff976;if(_0x4611a7[_0x4338d8(0x164)]===_0x4338d8(0x167)){const _0x5e295d=parseUpdateIdsFromParams(_0x1ff976);_0x5d87d2=normalizeUpdateParamsForRuntime(_0x1ff976,_0x5e295d);}return dryRun(_0x4338d8(0x153),_0x4338d8(0x181)+_0x2c8423+'/'+_0x4611a7[_0x4338d8(0x164)])[_0x4338d8(0x194)](_0x5d87d2)[_0x4338d8(0x192)]('Preview:\x20data\x20'+_0x4611a7[_0x4338d8(0x179)]+_0x4338d8(0x156)+_0x2c8423)[_0x4338d8(0x17d)]();}),_0x394b80;}export const dataDefinitions=specs[a24_0x5af855(0x1a0)](makeDataCommand);function buildBatchUpdateResult(_0x3650be,_0x1be90c){const _0xb6d737=a24_0x5af855;return{'operation':_0xb6d737(0x167),'mode':_0xb6d737(0x1a9),'ids':_0x3650be,'total':_0x3650be[_0xb6d737(0x183)],'result':_0x1be90c};}
|
|
1
|
+
const a24_0x31f612=a24_0x1901;(function(_0x17d935,_0x509142){const _0x23bce4=a24_0x1901,_0x417007=_0x17d935();while(!![]){try{const _0xce33ea=parseInt(_0x23bce4(0x1f8))/0x1*(parseInt(_0x23bce4(0x1fd))/0x2)+parseInt(_0x23bce4(0x1cd))/0x3*(-parseInt(_0x23bce4(0x1e5))/0x4)+-parseInt(_0x23bce4(0x208))/0x5*(parseInt(_0x23bce4(0x20e))/0x6)+-parseInt(_0x23bce4(0x202))/0x7*(-parseInt(_0x23bce4(0x1f6))/0x8)+parseInt(_0x23bce4(0x227))/0x9*(parseInt(_0x23bce4(0x1e9))/0xa)+parseInt(_0x23bce4(0x1f3))/0xb*(parseInt(_0x23bce4(0x20d))/0xc)+parseInt(_0x23bce4(0x1e8))/0xd*(-parseInt(_0x23bce4(0x21d))/0xe);if(_0xce33ea===_0x509142)break;else _0x417007['push'](_0x417007['shift']());}catch(_0x26da25){_0x417007['push'](_0x417007['shift']());}}}(a24_0xdd14,0x7a231));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_0x1901(_0x419284,_0x103281){_0x419284=_0x419284-0x1cd;const _0xdd14ef=a24_0xdd14();let _0x1901fe=_0xdd14ef[_0x419284];return _0x1901fe;}const specs=[{'command':a24_0x31f612(0x219),'operation':a24_0x31f612(0x219),'risk':a24_0x31f612(0x1d7),'paramsRequired':![],'description':a24_0x31f612(0x210),'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20'+a24_0x31f612(0x1d2),'helpExtra':[a24_0x31f612(0x218),'\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_0x31f612(0x200),'\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}}',a24_0x31f612(0x1db),a24_0x31f612(0x1de),a24_0x31f612(0x217),a24_0x31f612(0x211),a24_0x31f612(0x1e2),'\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\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}}','',a24_0x31f612(0x21b),a24_0x31f612(0x1d1),a24_0x31f612(0x1d3),'','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\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_0x31f612(0x203),a24_0x31f612(0x225),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a24_0x31f612(0x1dd),a24_0x31f612(0x1e0),a24_0x31f612(0x1d8),a24_0x31f612(0x1fe)][a24_0x31f612(0x1d0)]('\x0a')},{'command':a24_0x31f612(0x1ee),'operation':'getOne','risk':'read','paramsRequired':!![],'description':a24_0x31f612(0x222),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a24_0x31f612(0x226),'operation':a24_0x31f612(0x226),'risk':'write','paramsRequired':!![],'description':a24_0x31f612(0x221),'paramsHint':a24_0x31f612(0x1f0)},{'command':a24_0x31f612(0x223),'operation':a24_0x31f612(0x223),'risk':a24_0x31f612(0x1cf),'paramsRequired':!![],'description':a24_0x31f612(0x212),'paramsHint':a24_0x31f612(0x20b)},{'command':a24_0x31f612(0x1ef),'operation':a24_0x31f612(0x1ef),'risk':a24_0x31f612(0x1cf),'paramsRequired':!![],'description':'Update\x20an\x20existing\x20record','paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20'+a24_0x31f612(0x1ff)},{'command':a24_0x31f612(0x1ec),'operation':a24_0x31f612(0x1ec),'risk':a24_0x31f612(0x21c),'paramsRequired':!![],'description':a24_0x31f612(0x224),'paramsHint':a24_0x31f612(0x204)},{'command':'aggregate','operation':a24_0x31f612(0x1e6),'risk':a24_0x31f612(0x1d7),'paramsRequired':![],'description':a24_0x31f612(0x20a),'paramsHint':a24_0x31f612(0x1d4)+'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_0x31f612(0x1f2),a24_0x31f612(0x1f5),'\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}','\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}',a24_0x31f612(0x1e3),'\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','\x20\x20\x20\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_0x31f612(0x1e4),'',a24_0x31f612(0x20f),a24_0x31f612(0x1da),'\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)',a24_0x31f612(0x1d6),a24_0x31f612(0x21f),a24_0x31f612(0x215),a24_0x31f612(0x1dc),'',a24_0x31f612(0x209),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a24_0x31f612(0x206),'',a24_0x31f612(0x1d5),a24_0x31f612(0x1ed),'',a24_0x31f612(0x1fa)][a24_0x31f612(0x1d0)]('\x0a')}];function makeDataCommand(_0x5302e0){const _0x858285=a24_0x31f612,_0x439cef=_0x858285(0x1fb)+_0x5302e0['command'],_0xc01271={'service':_0x858285(0x1df),'command':_0x5302e0['command'],'description':_0x5302e0[_0x858285(0x214)],'risk':_0x5302e0[_0x858285(0x1f1)],'helpExtra':_0x5302e0[_0x858285(0x216)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x5302e0[_0x858285(0x21a)]}],'validate':async _0x3920df=>{const _0x55b3f9=_0x858285;_0x5302e0[_0x55b3f9(0x1f9)]&&requireAnyOf(_0x3920df,['params'],_0x439cef),_0x5302e0[_0x55b3f9(0x1e7)]===_0x55b3f9(0x223)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3920df[_0x55b3f9(0x1e1)](_0x55b3f9(0x201)))),_0x5302e0[_0x55b3f9(0x1e7)]===_0x55b3f9(0x1ef)&&parseUpdateIdsFromParams(parseJsonParams(_0x3920df['str']('params'))??{});},async 'execute'(_0x266c4c){const _0x1df28c=_0x858285,_0x52ab5e=_0x266c4c[_0x1df28c(0x1e1)](_0x1df28c(0x1eb)),_0x14222d=_0x5302e0['operation']==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x266c4c[_0x1df28c(0x1e1)](_0x1df28c(0x201)))):parseJsonParams(_0x266c4c[_0x1df28c(0x1e1)](_0x1df28c(0x201)))??{},_0x550c5a=_0x5302e0[_0x1df28c(0x1e7)]===_0x1df28c(0x1ef)?parseUpdateIdsFromParams(_0x14222d):undefined,_0x5171e0=_0x550c5a?normalizeUpdateParamsForRuntime(_0x14222d,_0x550c5a):_0x14222d,_0x5cf083=Date[_0x1df28c(0x1d9)](),_0x183311=await executeData(_0x52ab5e,_0x5302e0['operation'],_0x5171e0),_0x278aeb=Date[_0x1df28c(0x1d9)]()-_0x5cf083,_0x2a573a=_0x550c5a&&_0x550c5a[_0x1df28c(0x1fc)]>0x1?buildBatchUpdateResult(_0x550c5a,_0x183311):_0x183311;return{'ok':!![],'data':{'result':_0x2a573a,'elapsed':_0x278aeb},'message':_0x1df28c(0x1fb)+_0x5302e0['command']+_0x1df28c(0x207)+_0x278aeb+'ms'};}};return _0x5302e0[_0x858285(0x1f1)]!==_0x858285(0x1d7)&&(_0xc01271[_0x858285(0x21e)]=async _0x1f7fce=>{const _0x2db3ca=_0x858285,_0x3a5b96=_0x1f7fce[_0x2db3ca(0x1e1)]('code'),_0x666ce=_0x5302e0[_0x2db3ca(0x1e7)]===_0x2db3ca(0x223)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x1f7fce[_0x2db3ca(0x1e1)](_0x2db3ca(0x201)))):parseJsonParams(_0x1f7fce[_0x2db3ca(0x1e1)](_0x2db3ca(0x201)))??{};let _0x379106=_0x666ce;if(_0x5302e0[_0x2db3ca(0x1e7)]===_0x2db3ca(0x1ef)){const _0x4f509c=parseUpdateIdsFromParams(_0x666ce);_0x379106=normalizeUpdateParamsForRuntime(_0x666ce,_0x4f509c);}return dryRun(_0x2db3ca(0x1ce),_0x2db3ca(0x1f7)+_0x3a5b96+'/'+_0x5302e0[_0x2db3ca(0x1e7)])[_0x2db3ca(0x205)](_0x379106)[_0x2db3ca(0x214)](_0x2db3ca(0x220)+_0x5302e0[_0x2db3ca(0x1ea)]+'\x20on\x20dataset\x20'+_0x3a5b96)[_0x2db3ca(0x1f4)]();}),_0xc01271;}export const dataDefinitions=specs[a24_0x31f612(0x20c)](makeDataCommand);function buildBatchUpdateResult(_0x1216c2,_0x4f6424){const _0xfbcb01=a24_0x31f612;return{'operation':'update','mode':_0xfbcb01(0x213),'ids':_0x1216c2,'total':_0x1216c2[_0xfbcb01(0x1fc)],'result':_0x4f6424};}function a24_0xdd14(){const _0x479eae=['1911yXJWFW','242390lPysLZ','command','code','delete','\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','getOne','update','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','risk','\x20\x20AGGREGATE\x20TYPES','1311387CfMaBd','build','\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}','3949272kIPvEG','/api/{appCode}/','7XFHaQs','paramsRequired','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','data\x20','length','94614RspXgX','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','\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}}','params','14aanMgo','\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}]','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','body','\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','\x20completed\x20in\x20','1516405ZNmoxT','\x20\x20EXAMPLES','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','map','84eiMPhb','18OGTZCj','\x20\x20PARAMS\x20STRUCTURE','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\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]}}','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','batch','description','\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}}]','helpExtra','\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\x20WHERE\x20OPERATORS','filter','paramsHint','\x20\x20LOGICAL\x20COMBINATORS','high-risk-write','62790ZkpSBZ','dryRun','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','Preview:\x20data\x20','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','Get\x20a\x20single\x20record\x20by\x20ID','batchCreate','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','create','126PmLweO','57NSKaHr','POST','write','join','\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}}]}','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\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}}]}','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','read','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','now','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\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\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','\x20\x20PAGINATION','\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}}','data','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','str','\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\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\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}','89036bWtYlr','aggregate','operation'];a24_0xdd14=function(){return _0x479eae;};return a24_0xdd14();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a25_0x105f(){const _0x35fc77=['pkField','string','43748NdAAZF','columnCodeListWithDeleted','requestFields','str','updateTimeField','dbtableConfig','isArray','extend','options','relatedPageInfoList','tableName','split','path','description','code','10ZAGzNp','method','creatorIdField','213ySyGIs','createTimeField','fields','appCode','5799256uOldOt','validateRules','logicField','dbId','host','modifierNameField','read','displayName','deleted','dbName','modelId','source','detail','formatRules','dbType','dblinkInfoDTO','afterScriptId','datasetKey','object','154644xnfcXL','creatorNameField','labelField','title','trim','allFields','requestBody','7371903foTUAW','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','beforeScriptId','allFieldNames','responseFields','length','30xFaxMy','relations','dataType','filter','doType','2385432uTutdv','properties','name','push','find','66177UgHrfc','responseBody','638072xzEkqv','required','parse','dataset','2lRxJJP','map'];a25_0x105f=function(){return _0x35fc77;};return a25_0x105f();}const a25_0x4de557=a25_0x3136;(function(_0x1b0796,_0x704964){const _0x18fbb0=a25_0x3136,_0x2afec2=_0x1b0796();while(!![]){try{const _0x2e7d6d=-parseInt(_0x18fbb0(0x174))/0x1*(parseInt(_0x18fbb0(0x178))/0x2)+-parseInt(_0x18fbb0(0x18e))/0x3*(parseInt(_0x18fbb0(0x17c))/0x4)+-parseInt(_0x18fbb0(0x18b))/0x5*(-parseInt(_0x18fbb0(0x15b))/0x6)+parseInt(_0x18fbb0(0x16d))/0x7+parseInt(_0x18fbb0(0x192))/0x8+parseInt(_0x18fbb0(0x172))/0x9*(parseInt(_0x18fbb0(0x168))/0xa)+parseInt(_0x18fbb0(0x162))/0xb;if(_0x2e7d6d===_0x704964)break;else _0x2afec2['push'](_0x2afec2['shift']());}catch(_0x410627){_0x2afec2['push'](_0x2afec2['shift']());}}}(a25_0x105f,0x60670));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x4cdbbb){const _0x55a5c4=a25_0x3136;if(_0x4cdbbb['deleted'])return null;const _0x19c56c=Boolean(_0x4cdbbb[_0x55a5c4(0x199)]!==undefined||_0x4cdbbb[_0x55a5c4(0x16c)]!==undefined);let _0x3d9b5b={};if(!_0x19c56c&&typeof _0x4cdbbb[_0x55a5c4(0x183)]===_0x55a5c4(0x17b))try{_0x3d9b5b=JSON['parse'](_0x4cdbbb[_0x55a5c4(0x183)]);}catch{}const _0x1c25e7=_0x19c56c?_0x4cdbbb[_0x55a5c4(0x16f)]:_0x4cdbbb[_0x55a5c4(0x18a)],_0x2912dc=_0x19c56c?_0x4cdbbb['displayName']:_0x4cdbbb[_0x55a5c4(0x16f)],_0xcfed1b=_0x19c56c?_0x4cdbbb[_0x55a5c4(0x16c)]:_0x4cdbbb['type']||_0x4cdbbb[_0x55a5c4(0x16a)],_0x2ac59b=_0x19c56c?_0x4cdbbb[_0x55a5c4(0x17a)]===!![]:_0x3d9b5b['pkField']===!![],_0x58ff92=_0x19c56c?_0x4cdbbb[_0x55a5c4(0x175)]===!![]:_0x3d9b5b[_0x55a5c4(0x175)]===!![],_0xf50b1f=_0x19c56c?_0x4cdbbb[_0x55a5c4(0x184)]??null:_0x3d9b5b[_0x55a5c4(0x184)]??null,_0xd063f4={'name':_0x1c25e7,'displayName':_0x2912dc||_0x1c25e7,'type':_0xcfed1b,'dbType':_0x4cdbbb[_0x55a5c4(0x156)],'pk':_0x2ac59b,'required':_0x58ff92,'description':_0x4cdbbb[_0x55a5c4(0x189)]||undefined};return Array[_0x55a5c4(0x182)](_0xf50b1f)&&_0xf50b1f[_0x55a5c4(0x167)]>0x0&&(_0xd063f4['options']=_0xf50b1f),_0xd063f4;}function parseJsonMaybe(_0x2649a5){const _0x3813b0=a25_0x3136;if(typeof _0x2649a5!==_0x3813b0(0x17b))return _0x2649a5;try{return JSON[_0x3813b0(0x176)](_0x2649a5);}catch{return _0x2649a5;}}function normalizeOperationEntry(_0x933bec,_0x579399){const _0x1ebd55=a25_0x3136;if(!_0x579399||typeof _0x579399!==_0x1ebd55(0x15a))return null;if(!_0x579399[_0x1ebd55(0x18c)]||!_0x579399['path'])return null;const _0x36dcb0={'name':_0x933bec,'method':_0x579399[_0x1ebd55(0x18c)],'path':_0x579399[_0x1ebd55(0x188)]};if(_0x579399[_0x1ebd55(0x196)])_0x36dcb0['host']=_0x579399['host'];if(_0x579399[_0x1ebd55(0x161)]!=null)_0x36dcb0[_0x1ebd55(0x161)]=parseJsonMaybe(_0x579399[_0x1ebd55(0x161)]);if(_0x579399[_0x1ebd55(0x173)]!=null)_0x36dcb0[_0x1ebd55(0x173)]=parseJsonMaybe(_0x579399[_0x1ebd55(0x173)]);if(_0x579399[_0x1ebd55(0x164)]!=null)_0x36dcb0[_0x1ebd55(0x164)]=_0x579399[_0x1ebd55(0x164)];if(_0x579399[_0x1ebd55(0x158)]!=null)_0x36dcb0['afterScriptId']=_0x579399[_0x1ebd55(0x158)];if(Array['isArray'](_0x579399[_0x1ebd55(0x17e)]))_0x36dcb0[_0x1ebd55(0x17e)]=_0x579399['requestFields'];if(Array['isArray'](_0x579399[_0x1ebd55(0x166)]))_0x36dcb0[_0x1ebd55(0x166)]=_0x579399[_0x1ebd55(0x166)];return _0x36dcb0;}function summarizeDbtable(_0x55e937){const _0x59dfc7=a25_0x3136,_0xf82462={},_0x1a0800=[_0x59dfc7(0x195),_0x59dfc7(0x151),'tableName',_0x59dfc7(0x159),_0x59dfc7(0x17a),_0x59dfc7(0x160),_0x59dfc7(0x194),_0x59dfc7(0x18f),_0x59dfc7(0x180),_0x59dfc7(0x18d),_0x59dfc7(0x15c),'modifierIdField',_0x59dfc7(0x197),_0x59dfc7(0x15d),_0x59dfc7(0x157)];for(const _0x40fb02 of _0x1a0800){if(_0x55e937[_0x40fb02]!==undefined)_0xf82462[_0x40fb02]=_0x55e937[_0x40fb02];}return typeof _0xf82462['allFields']===_0x59dfc7(0x17b)&&_0xf82462['allFields'][_0x59dfc7(0x167)]>0x0&&(_0xf82462[_0x59dfc7(0x165)]=_0xf82462[_0x59dfc7(0x160)][_0x59dfc7(0x187)](',')[_0x59dfc7(0x179)](_0x5c69ba=>_0x5c69ba[_0x59dfc7(0x15f)]())[_0x59dfc7(0x16b)](Boolean)),_0xf82462;}function normalizeRelatedPages(_0x4eeba8){const _0x281903=a25_0x3136;if(!Array[_0x281903(0x182)](_0x4eeba8))return[];return _0x4eeba8['filter'](_0x4c3d4d=>_0x4c3d4d&&typeof _0x4c3d4d===_0x281903(0x15a))[_0x281903(0x179)](_0x4f5b3d=>({'id':_0x4f5b3d['id'],'type':_0x4f5b3d['type'],'code':_0x4f5b3d[_0x281903(0x18a)],'title':_0x4f5b3d[_0x281903(0x15e)],'deleted':_0x4f5b3d[_0x281903(0x150)]===!![]}));}function normalizeFallbackFieldName(_0x3d37c6,_0x51ba31){const _0x1b1f2b=a25_0x3136,_0x1fcf71=_0x3d37c6[_0x1b1f2b(0x15f)]();if(!_0x1fcf71)return null;return{'name':_0x1fcf71,'displayName':_0x1fcf71,'type':undefined,'dbType':undefined,'pk':_0x1fcf71===_0x51ba31,'required':![],'description':undefined};}function a25_0x3136(_0x384ff6,_0xc19aa4){_0x384ff6=_0x384ff6-0x150;const _0x105f80=a25_0x105f();let _0x31368d=_0x105f80[_0x384ff6];return _0x31368d;}async function loadListFieldFallback(_0x2d1526,_0x1b36d4){const _0x4117ad=a25_0x3136;if(!_0x2d1526||!_0x1b36d4)return[];try{const _0x3af689=await listDatasets(_0x2d1526,{'code':_0x1b36d4}),_0x48dc28=_0x3af689[_0x4117ad(0x171)](_0x5159e5=>_0x5159e5[_0x4117ad(0x18a)]===_0x1b36d4)??_0x3af689[0x0],_0x3b26be=_0x48dc28?.[_0x4117ad(0x181)]??{},_0x17f241=typeof _0x3b26be[_0x4117ad(0x160)]===_0x4117ad(0x17b)?_0x3b26be[_0x4117ad(0x160)][_0x4117ad(0x187)](','):[];return _0x17f241[_0x4117ad(0x179)](_0x1a5220=>normalizeFallbackFieldName(_0x1a5220,_0x3b26be[_0x4117ad(0x17a)]))[_0x4117ad(0x16b)](_0x19a44a=>_0x19a44a!==null);}catch{return[];}}export const datasetDetail={'service':'dataset','command':a25_0x4de557(0x154),'description':a25_0x4de557(0x163),'risk':a25_0x4de557(0x198),'flags':[CODE_FLAG],async 'execute'(_0x51dbca){const _0xc621dd=a25_0x4de557,_0x5018bb=await getDatasetDetail(_0x51dbca[_0xc621dd(0x17f)](_0xc621dd(0x18a))),_0x80af01=Array[_0xc621dd(0x182)](_0x5018bb[_0xc621dd(0x190)])?_0x5018bb[_0xc621dd(0x190)]:Array[_0xc621dd(0x182)](_0x5018bb[_0xc621dd(0x16e)])?_0x5018bb[_0xc621dd(0x16e)]:[];let _0x485d0f=_0x80af01['map'](_0x50afb4=>normalizeField(_0x50afb4))['filter'](_0x540402=>_0x540402!==null);_0x485d0f[_0xc621dd(0x167)]===0x0&&(_0x485d0f=await loadListFieldFallback(_0x51dbca[_0xc621dd(0x191)],_0x51dbca[_0xc621dd(0x17f)]('code')));const _0x34ce1e=_0x5018bb['operations']??{},_0x249d30=[];for(const [_0x2d7f71,_0x125ebe]of Object['entries'](_0x34ce1e)){const _0x4db282=normalizeOperationEntry(_0x2d7f71,_0x125ebe);if(_0x4db282)_0x249d30[_0xc621dd(0x170)](_0x4db282);}const _0xf5fdb9=_0x5018bb[_0xc621dd(0x181)]??{},_0x42bd4d=_0x5018bb[_0xc621dd(0x177)]??{},_0x322b4c=_0xf5fdb9[_0xc621dd(0x195)]!=null?{'id':_0xf5fdb9['dbId'],'name':_0xf5fdb9[_0xc621dd(0x151)]??null}:undefined;let _0x5c4056;return typeof _0x5018bb[_0xc621dd(0x183)]===_0xc621dd(0x17b)&&(_0x5c4056=parseJsonMaybe(_0x5018bb['extend'])),{'ok':!![],'data':{'id':_0x5018bb[_0xc621dd(0x152)]??_0x5018bb['id'],'name':_0x5018bb[_0xc621dd(0x16f)],'code':_0x5018bb['modelCode']||_0x5018bb[_0xc621dd(0x18a)],'doVersion':_0x5018bb['doVersion'],'description':_0x5018bb[_0xc621dd(0x189)]||_0x42bd4d['tableComment']||undefined,'source':_0x5018bb[_0xc621dd(0x153)]||_0x42bd4d['sourceType'],'table':_0xf5fdb9['tableName']||_0x42bd4d[_0xc621dd(0x186)],'datasetKey':_0xf5fdb9[_0xc621dd(0x159)],'pk':_0xf5fdb9['pkField'],'db':_0x322b4c,'dbtable':summarizeDbtable(_0xf5fdb9),'fields':_0x485d0f,'operations':_0x249d30,'indexes':Array[_0xc621dd(0x182)](_0x42bd4d['indexes'])?_0x42bd4d['indexes']:[],'relations':_0x5018bb[_0xc621dd(0x169)]??null,'relatedPages':normalizeRelatedPages(_0x5018bb[_0xc621dd(0x185)]),...Array['isArray'](_0x5018bb[_0xc621dd(0x17d)])?{'columnCodeListWithDeleted':_0x5018bb[_0xc621dd(0x17d)]}:{},'formatRules':Array[_0xc621dd(0x182)](_0x5018bb[_0xc621dd(0x155)])?_0x5018bb['formatRules']:[],'validateRules':Array['isArray'](_0x5018bb[_0xc621dd(0x193)])?_0x5018bb[_0xc621dd(0x193)]:[],..._0x5c4056!==undefined?{'extend':_0x5c4056}:{},'stats':{'fieldCount':_0x485d0f['length'],'operationCount':_0x249d30['length']}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a26_0x2d1e(){const _0x1915bb=['2156820XXkEUY','571696ekcKvD','964194GnEzyt','374944nCtQEk','3063Gkgank','3268ZfxVjw','345sYMrGB','224KcRSZh','11478546ptVKhe'];a26_0x2d1e=function(){return _0x1915bb;};return a26_0x2d1e();}(function(_0x3da3fc,_0x26531f){const _0x4ad65e=a26_0x1b20,_0x25ca08=_0x3da3fc();while(!![]){try{const _0x230c76=-parseInt(_0x4ad65e(0x129))/0x1+-parseInt(_0x4ad65e(0x124))/0x2*(-parseInt(_0x4ad65e(0x12a))/0x3)+-parseInt(_0x4ad65e(0x12b))/0x4*(parseInt(_0x4ad65e(0x123))/0x5)+-parseInt(_0x4ad65e(0x126))/0x6+-parseInt(_0x4ad65e(0x128))/0x7+-parseInt(_0x4ad65e(0x127))/0x8+parseInt(_0x4ad65e(0x125))/0x9;if(_0x230c76===_0x26531f)break;else _0x25ca08['push'](_0x25ca08['shift']());}catch(_0x5f5c75){_0x25ca08['push'](_0x25ca08['shift']());}}}(a26_0x2d1e,0x5f27b));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a26_0x1b20(_0x37238a,_0x27dab8){_0x37238a=_0x37238a-0x123;const _0x2d1e5e=a26_0x2d1e();let _0x1b2081=_0x2d1e5e[_0x37238a];return _0x1b2081;}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a27_0x2cc1a7=a27_0x5289;(function(_0x3ec5f7,_0x5e3745){const _0x18e29b=a27_0x5289,_0x81db4e=_0x3ec5f7();while(!![]){try{const _0x34774c=parseInt(_0x18e29b(0x1ae))/0x1*(-parseInt(_0x18e29b(0x198))/0x2)+-parseInt(_0x18e29b(0x1a4))/0x3*(parseInt(_0x18e29b(0x1a3))/0x4)+-parseInt(_0x18e29b(0x1af))/0x5*(-parseInt(_0x18e29b(0x1a1))/0x6)+parseInt(_0x18e29b(0x1ac))/0x7*(-parseInt(_0x18e29b(0x1ad))/0x8)+-parseInt(_0x18e29b(0x1a5))/0x9*(-parseInt(_0x18e29b(0x19b))/0xa)+-parseInt(_0x18e29b(0x194))/0xb+parseInt(_0x18e29b(0x193))/0xc*(parseInt(_0x18e29b(0x19d))/0xd);if(_0x34774c===_0x5e3745)break;else _0x81db4e['push'](_0x81db4e['shift']());}catch(_0x56af4b){_0x81db4e['push'](_0x81db4e['shift']());}}}(a27_0xfaf6,0x69ed4));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a27_0x5289(_0x1d0414,_0x204305){_0x1d0414=_0x1d0414-0x193;const _0xfaf6c0=a27_0xfaf6();let _0x528901=_0xfaf6c0[_0x1d0414];return _0x528901;}export const datasetList={'service':a27_0x2cc1a7(0x1b0),'command':a27_0x2cc1a7(0x19a),'description':'List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','risk':a27_0x2cc1a7(0x197),'flags':[{'name':a27_0x2cc1a7(0x19f),'type':a27_0x2cc1a7(0x1aa),'description':'Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)'},{...CODE_FLAG,'required':![],'description':a27_0x2cc1a7(0x199)}],async 'execute'(_0x500e9d){const _0x232389=a27_0x2cc1a7,_0x57dab0=_0x500e9d[_0x232389(0x1ab)](_0x232389(0x19f)),_0x431c42=_0x500e9d['str'](_0x232389(0x1a9)),_0x1a0f36=await listDatasets(_0x500e9d['appCode'],{..._0x57dab0&&{'name':_0x57dab0},..._0x431c42&&{'code':_0x431c42}});return{'ok':!![],'data':{'total':_0x1a0f36[_0x232389(0x1a7)],'datasets':_0x1a0f36[_0x232389(0x196)](_0x1b81d8=>{const _0x410c24=_0x232389,_0x2666f2=_0x1b81d8[_0x410c24(0x195)]??{};return{'id':_0x1b81d8['id'],'code':_0x1b81d8[_0x410c24(0x1a9)],'name':_0x1b81d8[_0x410c24(0x19f)],'source':_0x1b81d8['source'],'description':_0x1b81d8['description'],'table':_0x2666f2[_0x410c24(0x19c)],'datasetKey':_0x2666f2[_0x410c24(0x1a8)],'pk':_0x2666f2[_0x410c24(0x1a2)],'fields':_0x2666f2['allFields']?_0x2666f2[_0x410c24(0x19e)][_0x410c24(0x1a6)](',')[_0x410c24(0x196)](_0x465fd4=>_0x465fd4[_0x410c24(0x1a0)]()):[]};})}};}};function a27_0xfaf6(){const _0x51f4cf=['list','5813330dZPsxd','tableName','10650913DvsjHr','allFields','name','trim','11874TaRDGW','pkField','32mLMRtm','30993ppQOhD','9fbWoat','split','length','datasetKey','code','string','str','3479SqgPxP','6056CDGTjm','1mZIstU','535NwsdGB','dataset','12ntVZlN','2278463ttKoEn','dbtableConfig','map','read','1025002Fvlqrg','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'];a27_0xfaf6=function(){return _0x51f4cf;};return a27_0xfaf6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a28_0x28a43e=a28_0xbc2c;(function(_0x59f3dc,_0x1aa13a){const _0x24a164=a28_0xbc2c,_0x32ae7e=_0x59f3dc();while(!![]){try{const _0xf250fb=-parseInt(_0x24a164(0xc1))/0x1*(parseInt(_0x24a164(0xc0))/0x2)+parseInt(_0x24a164(0xb0))/0x3*(-parseInt(_0x24a164(0xba))/0x4)+-parseInt(_0x24a164(0xb1))/0x5+parseInt(_0x24a164(0xbb))/0x6*(parseInt(_0x24a164(0xbe))/0x7)+-parseInt(_0x24a164(0xb4))/0x8+-parseInt(_0x24a164(0xbd))/0x9+-parseInt(_0x24a164(0xb5))/0xa*(-parseInt(_0x24a164(0xc2))/0xb);if(_0xf250fb===_0x1aa13a)break;else _0x32ae7e['push'](_0x32ae7e['shift']());}catch(_0x1895be){_0x32ae7e['push'](_0x32ae7e['shift']());}}}(a28_0x17f9,0x31da7));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';function a28_0xbc2c(_0x220996,_0x5b75e4){_0x220996=_0x220996-0xae;const _0x17f96e=a28_0x17f9();let _0xbc2c91=_0x17f96e[_0x220996];return _0xbc2c91;}import{CODE_FLAG}from'../../commands/common/flags.js';function a28_0x17f9(){const _0x2080ea=['Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','5232nOfqak','1007020pRJQUB','string','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','2556968rKBCUl','1682630UOUdwt','str','appCode','code','sdk-doc','536vjWmmU','129666Tvighc','read','1691478mbcWVL','7BRbIWa','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','8yeHsLR','97279iHqyAU','99BuHTzk','dataset'];a28_0x17f9=function(){return _0x2080ea;};return a28_0x17f9();}const DEFAULT_MARKDOWN=a28_0x28a43e(0xbf);export function formatDatasetSdkMarkdown(_0x15a475){const _0x2ddfd1=a28_0x28a43e,_0x4c5de4=typeof _0x15a475===_0x2ddfd1(0xb2)?_0x15a475['trim']():'';return _0x4c5de4||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a28_0x28a43e(0xae),'command':a28_0x28a43e(0xb9),'description':a28_0x28a43e(0xb3),'risk':a28_0x28a43e(0xbc),'flags':[{...CODE_FLAG,'description':a28_0x28a43e(0xaf)}],async 'execute'(_0x37dfca){const _0xe9c839=a28_0x28a43e,_0x42d953=_0x37dfca[_0xe9c839(0xb6)](_0xe9c839(0xb8)),_0x4f3802=await getDatasetSdkUsageDoc(_0x42d953,_0x37dfca[_0xe9c839(0xb7)]);return{'ok':!![],'data':{'code':_0x42d953,'appCode':_0x37dfca[_0xe9c839(0xb7)],'markdown':formatDatasetSdkMarkdown(_0x4f3802)}};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a29_0x45fcef=a29_0xe6dc;function a29_0x3544(){const _0x12ee73=['green','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Loaded','repeat','platform','✗\x20Invalid\x20JSON','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20(legacy/compat\x20only)','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','services','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','locale','2CeIpyd','version','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Service\x20Tree','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','3243324sHxEix','(default)','name','padEnd','missing','check','18bTtinH','\x20(accessKey)','\x20\x20API\x20Endpoints','5300512OsrBJZ','read','accessKey','(default:\x20','4186060IsWmzN','Project','(not\x20found)','(not\x20set)','(none)','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','serviceCount','\x20\x20Config\x20JSON','format','status','arch','⚠\x20Empty','empty','969540napzbz','\x20commands)','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','(unnamed)','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','\x20\x20auth\x20(effective):\x20','\x20\x20Session\x20check:\x20\x20\x20','\x20Imported\x20from:\x20','Global','308007aOaRvv','length','\x20\x20runtimeDomain:\x20\x20\x20','(set,\x20length=','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2444835yZQoda','(no\x20file)','doctor','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','message','(missing)','path','gray','514910WXvfnY','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','red','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','commandCount','serviceCode','log','ClientAk'];a29_0x3544=function(){return _0x12ee73;};return a29_0x3544();}(function(_0x4f6a65,_0x37fbcc){const _0x241c36=a29_0xe6dc,_0x11efc7=_0x4f6a65();while(!![]){try{const _0x3f0379=-parseInt(_0x241c36(0x1bc))/0x1+-parseInt(_0x241c36(0x1d5))/0x2*(-parseInt(_0x241c36(0x206))/0x3)+parseInt(_0x241c36(0x1db))/0x4+parseInt(_0x241c36(0x1e8))/0x5+-parseInt(_0x241c36(0x1f6))/0x6+parseInt(_0x241c36(0x201))/0x7+parseInt(_0x241c36(0x1e4))/0x8*(-parseInt(_0x241c36(0x1e1))/0x9);if(_0x3f0379===_0x37fbcc)break;else _0x11efc7['push'](_0x11efc7['shift']());}catch(_0x7fdbee){_0x11efc7['push'](_0x11efc7['shift']());}}}(a29_0x3544,0x7b611));import a29_0x2d5b5f from'chalk';function a29_0xe6dc(_0x3ca5c0,_0x396194){_0x3ca5c0=_0x3ca5c0-0x1b9;const _0x3544aa=a29_0x3544();let _0xe6dc50=_0x3544aa[_0x3ca5c0];return _0xe6dc50;}import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{isLegacyCompatConfigKey}from'../config/schema.js';import{inspectServiceRegistry}from'../commands/service/registry.js';async function execute(_0x403336){const _0x1c1a2b=a29_0xe6dc,_0x4dd5b3=getCliVersion(),_0x59de1e=buildConfigFromFlags({});await initGlobalEnvironment(_0x59de1e),console['log'](),console[_0x1c1a2b(0x1c3)](a29_0x2d5b5f[_0x1c1a2b(0x1be)](CLI_BIN_NAME+'\x20doctor')),console[_0x1c1a2b(0x1c3)](a29_0x2d5b5f[_0x1c1a2b(0x1bb)]('─'[_0x1c1a2b(0x1c9)](0x32))),console[_0x1c1a2b(0x1c3)](_0x1c1a2b(0x1d8)+_0x4dd5b3),console[_0x1c1a2b(0x1c3)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x1c1a2b(0x1d6)]),console[_0x1c1a2b(0x1c3)](_0x1c1a2b(0x1da)+process[_0x1c1a2b(0x1ca)]+'\x20'+process[_0x1c1a2b(0x1f3)]),console['log'](),console[_0x1c1a2b(0x1c3)](a29_0x2d5b5f[_0x1c1a2b(0x1be)](_0x1c1a2b(0x1fc))),console[_0x1c1a2b(0x1c3)](a29_0x2d5b5f['gray'](_0x1c1a2b(0x1ee)[_0x1c1a2b(0x1c9)](0x1e)));const _0x4e9406=getGlobalConfigPath(),_0x580aed=getProjectConfigPath();console[_0x1c1a2b(0x1c3)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4e9406||a29_0x2d5b5f['gray'](_0x1c1a2b(0x1ea)))),console[_0x1c1a2b(0x1c3)](_0x1c1a2b(0x1cf)+(_0x580aed||a29_0x2d5b5f[_0x1c1a2b(0x1bb)](_0x1c1a2b(0x1ea)))),console[_0x1c1a2b(0x1c3)](),console[_0x1c1a2b(0x1c3)](a29_0x2d5b5f['bold'](_0x1c1a2b(0x1f0))),console[_0x1c1a2b(0x1c3)](a29_0x2d5b5f[_0x1c1a2b(0x1bb)](_0x1c1a2b(0x1ee)[_0x1c1a2b(0x1c9)](0x1e)));const _0x225f3c=(_0x2d5ccc,_0x10dc56)=>{const _0x2ffb35=_0x1c1a2b;if(!_0x10dc56){console[_0x2ffb35(0x1c3)]('\x20\x20'+_0x2d5ccc['padEnd'](0x11)+'\x20'+a29_0x2d5b5f[_0x2ffb35(0x1bb)](_0x2ffb35(0x207)));return;}const _0x37d3a3=inspectCliConfigJsonFile(_0x10dc56);if(_0x37d3a3[_0x2ffb35(0x1f2)]==='ok')console[_0x2ffb35(0x1c3)]('\x20\x20'+_0x2d5ccc['padEnd'](0x11)+'\x20'+a29_0x2d5b5f[_0x2ffb35(0x1c5)]('✓\x20Valid\x20JSON'));else{if(_0x37d3a3[_0x2ffb35(0x1f2)]===_0x2ffb35(0x1f5))console['log']('\x20\x20'+_0x2d5ccc[_0x2ffb35(0x1de)](0x11)+'\x20'+a29_0x2d5b5f['yellow']('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x37d3a3[_0x2ffb35(0x1f2)]===_0x2ffb35(0x1df)?console[_0x2ffb35(0x1c3)]('\x20\x20'+_0x2d5ccc[_0x2ffb35(0x1de)](0x11)+'\x20'+a29_0x2d5b5f[_0x2ffb35(0x1bb)](_0x2ffb35(0x1b9))):(console[_0x2ffb35(0x1c3)]('\x20\x20'+_0x2d5ccc[_0x2ffb35(0x1de)](0x11)+'\x20'+a29_0x2d5b5f[_0x2ffb35(0x1bf)](_0x2ffb35(0x1cb))),console['log']('\x20\x20'+''['padEnd'](0x11)+'\x20'+a29_0x2d5b5f['red'](_0x37d3a3[_0x2ffb35(0x20a)])));}};_0x225f3c(_0x1c1a2b(0x200),_0x4e9406),_0x225f3c(_0x1c1a2b(0x1e9),_0x580aed),console['log'](),console[_0x1c1a2b(0x1c3)](a29_0x2d5b5f[_0x1c1a2b(0x1be)](_0x1c1a2b(0x1f9))),console[_0x1c1a2b(0x1c3)](a29_0x2d5b5f['gray']('\x20\x20─'[_0x1c1a2b(0x1c9)](0x1e))),console[_0x1c1a2b(0x1c3)](_0x1c1a2b(0x1d3)+(_0x59de1e['appCode']||a29_0x2d5b5f[_0x1c1a2b(0x1bf)](_0x1c1a2b(0x1eb)))),console[_0x1c1a2b(0x1c3)](_0x1c1a2b(0x205)+_0x59de1e['env']);const _0x5b930b=isLegacyCompatConfigKey(_0x1c1a2b(0x1d4))?a29_0x2d5b5f[_0x1c1a2b(0x1bb)](_0x59de1e[_0x1c1a2b(0x1d4)]+_0x1c1a2b(0x1ce)):_0x59de1e[_0x1c1a2b(0x1d4)];console[_0x1c1a2b(0x1c3)](_0x1c1a2b(0x1bd)+_0x5b930b),console[_0x1c1a2b(0x1c3)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x59de1e['defaultApp']||a29_0x2d5b5f[_0x1c1a2b(0x1bb)](_0x1c1a2b(0x1ec)))),console[_0x1c1a2b(0x1c3)](_0x1c1a2b(0x1fb)+(_0x59de1e['currentApp']||a29_0x2d5b5f[_0x1c1a2b(0x1bb)](_0x1c1a2b(0x1ec)))),console[_0x1c1a2b(0x1c3)](_0x1c1a2b(0x1d7)+(_0x59de1e[_0x1c1a2b(0x1f1)]||a29_0x2d5b5f[_0x1c1a2b(0x1bb)](_0x1c1a2b(0x1e7)+DEFAULT_CONFIG_VALUES[_0x1c1a2b(0x1f1)]+')'))),console[_0x1c1a2b(0x1c3)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x59de1e['pageSize']??a29_0x2d5b5f[_0x1c1a2b(0x1bb)](_0x1c1a2b(0x1dc)))),console['log'](_0x1c1a2b(0x209)+_0x59de1e['riskLevel']),console['log'](_0x1c1a2b(0x1c7)+_0x59de1e[_0x1c1a2b(0x1d0)]),console[_0x1c1a2b(0x1c3)](_0x1c1a2b(0x1fd)+AUTH_MODE[_0x1c1a2b(0x1c4)]),console[_0x1c1a2b(0x1c3)](_0x1c1a2b(0x1c6)+(_0x59de1e['accessKey']?a29_0x2d5b5f['green'](_0x1c1a2b(0x204)+_0x59de1e[_0x1c1a2b(0x1e6)][_0x1c1a2b(0x202)]+')'):a29_0x2d5b5f['gray']('(none)'))),console['log'](),console[_0x1c1a2b(0x1c3)](a29_0x2d5b5f[_0x1c1a2b(0x1be)](_0x1c1a2b(0x1e3))),console[_0x1c1a2b(0x1c3)](a29_0x2d5b5f[_0x1c1a2b(0x1bb)](_0x1c1a2b(0x1ee)[_0x1c1a2b(0x1c9)](0x1e))),console[_0x1c1a2b(0x1c3)](_0x1c1a2b(0x1cd)+getApiDomain()),console[_0x1c1a2b(0x1c3)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console['log'](_0x1c1a2b(0x203)+getRuntimeDomain()),console[_0x1c1a2b(0x1c3)](),console[_0x1c1a2b(0x1c3)](a29_0x2d5b5f[_0x1c1a2b(0x1be)](_0x1c1a2b(0x1d9))),console[_0x1c1a2b(0x1c3)](a29_0x2d5b5f['gray'](_0x1c1a2b(0x1ee)['repeat'](0x1e)));const _0xe85321=inspectServiceRegistry();console[_0x1c1a2b(0x1c3)]('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0xe85321['registryPath']),console['log'](_0x1c1a2b(0x1ed)+formatServiceRegistryStatus(_0xe85321)),console[_0x1c1a2b(0x1c3)](_0x1c1a2b(0x1cc)+_0xe85321[_0x1c1a2b(0x1ef)]),console[_0x1c1a2b(0x1c3)](_0x1c1a2b(0x1f8)+_0xe85321[_0x1c1a2b(0x1c1)]);for(const _0x7e6dd5 of _0xe85321[_0x1c1a2b(0x1d1)]){console[_0x1c1a2b(0x1c3)]('\x20\x20'+(_0x7e6dd5[_0x1c1a2b(0x1c2)]+':')['padEnd'](0x11)+'\x20'+(_0x7e6dd5[_0x1c1a2b(0x1dd)]||a29_0x2d5b5f[_0x1c1a2b(0x1bb)](_0x1c1a2b(0x1fa)))+'\x20('+_0x7e6dd5[_0x1c1a2b(0x1c1)]+_0x1c1a2b(0x1f7)),console[_0x1c1a2b(0x1c3)]('\x20\x20'+''[_0x1c1a2b(0x1de)](0x11)+_0x1c1a2b(0x1ff)+_0x7e6dd5['source'][_0x1c1a2b(0x1ba)]);}return console['log'](),console[_0x1c1a2b(0x1c3)](a29_0x2d5b5f['bold']('\x20\x20Auth')),console[_0x1c1a2b(0x1c3)](a29_0x2d5b5f[_0x1c1a2b(0x1bb)]('\x20\x20─'[_0x1c1a2b(0x1c9)](0x1e))),console[_0x1c1a2b(0x1c3)](_0x1c1a2b(0x1c0)+a29_0x2d5b5f[_0x1c1a2b(0x1c5)](AUTH_MODE[_0x1c1a2b(0x1c4)]+_0x1c1a2b(0x1e2))),console[_0x1c1a2b(0x1c3)](_0x1c1a2b(0x1fe)+a29_0x2d5b5f[_0x1c1a2b(0x1bb)](_0x1c1a2b(0x1d2))),console['log'](),{'ok':!![]};}function formatServiceRegistryStatus(_0x1ab181){const _0x60ff67=a29_0xe6dc;if(_0x1ab181[_0x60ff67(0x1f2)]==='ok')return a29_0x2d5b5f['green'](_0x60ff67(0x1c8));if(_0x1ab181['status']===_0x60ff67(0x1df))return a29_0x2d5b5f[_0x60ff67(0x1bb)](_0x60ff67(0x1ea));if(_0x1ab181['status']==='empty')return a29_0x2d5b5f['yellow'](_0x60ff67(0x1f4));return a29_0x2d5b5f['red']('✗\x20Invalid'+(_0x1ab181['message']?':\x20'+_0x1ab181[_0x60ff67(0x20a)]:''));}export const doctorDefinition={'service':a29_0x45fcef(0x208),'command':a29_0x45fcef(0x1e0),'description':'Diagnose\x20CLI\x20configuration\x20and\x20environment','risk':a29_0x45fcef(0x1e5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|