@lovrabet/lovrabet-cli 2.1.13 → 2.1.14-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/function-name-adapter.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/rate-limit.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/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x1290f7=a14_0x3aea;function a14_0x3aea(_0x34cd0e,_0x4059b1){_0x34cd0e=_0x34cd0e-0xa6;const _0x15a829=a14_0x15a8();let _0x3aea85=_0x15a829[_0x34cd0e];return _0x3aea85;}function a14_0x15a8(){const _0x31be4b=['5070149ZRFPMJ','appCode','6uHbMFL','779661kAinKU','926669qBREWr','41063AMWbHc','bff','str','Get\x20a\x20BFF\x20endpoint\x20contract\x20by\x20function\x20name','3788548uCUrhS','802446kgYqBu','name','60NYCjEX','functionName','13390VbLUCb','(none)','24QxOicE','2815158qIJxDu','description','version','detail'];a14_0x15a8=function(){return _0x31be4b;};return a14_0x15a8();}(function(_0x1815b4,_0x290af2){const _0x4492a5=a14_0x3aea,_0xa09626=_0x1815b4();while(!![]){try{const _0x369e56=-parseInt(_0x4492a5(0xba))/0x1+parseInt(_0x4492a5(0xb2))/0x2+-parseInt(_0x4492a5(0xb8))/0x3*(parseInt(_0x4492a5(0xaa))/0x4)+-parseInt(_0x4492a5(0xad))/0x5*(parseInt(_0x4492a5(0xab))/0x6)+-parseInt(_0x4492a5(0xb6))/0x7+-parseInt(_0x4492a5(0xb1))/0x8*(parseInt(_0x4492a5(0xb9))/0x9)+-parseInt(_0x4492a5(0xaf))/0xa*(-parseInt(_0x4492a5(0xa6))/0xb);if(_0x369e56===_0x290af2)break;else _0xa09626['push'](_0xa09626['shift']());}catch(_0x1a02a0){_0xa09626['push'](_0xa09626['shift']());}}}(a14_0x15a8,0xf32c5));import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a14_0x1290f7(0xa7),'command':a14_0x1290f7(0xb5),'description':a14_0x1290f7(0xa9),'risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name'}],async 'execute'(_0x8d440f){const _0x26d2b4=a14_0x1290f7,_0x58ddf4=await getBffEndpointContract(_0x8d440f[_0x26d2b4(0xb7)],_0x8d440f[_0x26d2b4(0xa8)](_0x26d2b4(0xac)));return{'ok':!![],'data':{'appCode':_0x58ddf4[_0x26d2b4(0xb7)],'functionName':_0x58ddf4[_0x26d2b4(0xae)],'description':_0x58ddf4[_0x26d2b4(0xb3)]||_0x26d2b4(0xb0),'version':_0x58ddf4[_0x26d2b4(0xb4)],'gmtModified':_0x58ddf4['gmtModified']}};}};
|
package/lib/commands/bff/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15_0x4417a7=a15_0xc7ec;(function(_0x5eb92b,_0x4385ae){const _0x2112de=a15_0xc7ec,_0x379246=_0x5eb92b();while(!![]){try{const _0xe5ff87=-parseInt(_0x2112de(0x146))/0x1*(parseInt(_0x2112de(0x151))/0x2)+-parseInt(_0x2112de(0x14b))/0x3+parseInt(_0x2112de(0x14d))/0x4+parseInt(_0x2112de(0x14a))/0x5+-parseInt(_0x2112de(0x159))/0x6*(parseInt(_0x2112de(0x14c))/0x7)+-parseInt(_0x2112de(0x149))/0x8+-parseInt(_0x2112de(0x14f))/0x9*(-parseInt(_0x2112de(0x154))/0xa);if(_0xe5ff87===_0x4385ae)break;else _0x379246['push'](_0x379246['shift']());}catch(_0x1c55de){_0x379246['push'](_0x379246['shift']());}}}(a15_0x5747,0xb68f3));function a15_0xc7ec(_0x33f4d0,_0x591c8e){_0x33f4d0=_0x33f4d0-0x146;const _0x574777=a15_0x5747();let _0xc7eca9=_0x574777[_0x33f4d0];return _0xc7eca9;}function a15_0x5747(){const _0x43c1c2=['bff','28624fxrnfk','name','exec','10qMMnYn','read','str','BFF\x20function\x20name\x20to\x20execute','BFF\x20executed\x20in\x20','6psGVex','16rcMoyG','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','params','8798520FAYycq','7289565hJFVBD','756021YGBWaQ','9004408CvaSqD','2030008wcYWQq','now','14845554CIFZgC'];a15_0x5747=function(){return _0x43c1c2;};return a15_0x5747();}import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a15_0x4417a7(0x150),'command':a15_0x4417a7(0x153),'description':a15_0x4417a7(0x147),'risk':a15_0x4417a7(0x155),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x4417a7(0x157)},PARAMS_FLAG],async 'execute'(_0x47dce0){const _0x13a5e6=a15_0x4417a7,_0x28708e=parseJsonParams(_0x47dce0[_0x13a5e6(0x156)](_0x13a5e6(0x148))),_0x1eb0c8=Date[_0x13a5e6(0x14e)](),_0x59b3c5=await executeSdkBff(_0x47dce0[_0x13a5e6(0x156)](_0x13a5e6(0x152)),_0x28708e),_0x523aa4=Date[_0x13a5e6(0x14e)]()-_0x1eb0c8;return{'ok':!![],'data':{'result':_0x59b3c5,'elapsed':_0x523aa4},'message':_0x13a5e6(0x158)+_0x523aa4+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x50b7a0,_0x3e3d77){const _0x1bc759=a16_0x5ee5,_0x43b08f=_0x50b7a0();while(!![]){try{const _0x260c6d=-parseInt(_0x1bc759(0xbb))/0x1+parseInt(_0x1bc759(0xc0))/0x2*(parseInt(_0x1bc759(0xc3))/0x3)+parseInt(_0x1bc759(0xbe))/0x4*(-parseInt(_0x1bc759(0xc6))/0x5)+parseInt(_0x1bc759(0xc5))/0x6+-parseInt(_0x1bc759(0xbc))/0x7*(-parseInt(_0x1bc759(0xc1))/0x8)+-parseInt(_0x1bc759(0xbf))/0x9*(-parseInt(_0x1bc759(0xc2))/0xa)+-parseInt(_0x1bc759(0xc4))/0xb*(parseInt(_0x1bc759(0xbd))/0xc);if(_0x260c6d===_0x3e3d77)break;else _0x43b08f['push'](_0x43b08f['shift']());}catch(_0x117da4){_0x43b08f['push'](_0x43b08f['shift']());}}}(a16_0xaf69,0xefcf9));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];function a16_0x5ee5(_0xef0a71,_0x430951){_0xef0a71=_0xef0a71-0xbb;const _0xaf6929=a16_0xaf69();let _0x5ee5dc=_0xaf6929[_0xef0a71];return _0x5ee5dc;}function a16_0xaf69(){const _0x12e643=['6rqFgsY','8Mvyhoa','1130lleQGR','1075827OjlViZ','41261IyjNzG','5824200BtmhrZ','1550mdxqcG','1042304EGTJcK','3042893Ysnfvn','5676IPxTwe','980pMcSUq','110988PCDKuF'];a16_0xaf69=function(){return _0x12e643;};return a16_0xaf69();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a17_0x5f4ea0=a17_0x1d87;(function(_0x2352d9,_0x4ecc2b){const _0xa4418a=a17_0x1d87,_0x114b6d=_0x2352d9();while(!![]){try{const _0x487cf5=parseInt(_0xa4418a(0x1c0))/0x1*(-parseInt(_0xa4418a(0x1cb))/0x2)+parseInt(_0xa4418a(0x1cc))/0x3+-parseInt(_0xa4418a(0x1d8))/0x4+parseInt(_0xa4418a(0x1c3))/0x5*(parseInt(_0xa4418a(0x1cf))/0x6)+parseInt(_0xa4418a(0x1c9))/0x7*(parseInt(_0xa4418a(0x1c5))/0x8)+parseInt(_0xa4418a(0x1d4))/0x9+-parseInt(_0xa4418a(0x1d0))/0xa;if(_0x487cf5===_0x4ecc2b)break;else _0x114b6d['push'](_0x114b6d['shift']());}catch(_0x4fa586){_0x114b6d['push'](_0x114b6d['shift']());}}}(a17_0x3333,0xa70e2));import{CliErrors}from'../../errors.js';function a17_0x3333(){const _0xa33c0d=['nonInteractive','write','15642BtqyyB','8344430LXTkbf','skipped','apiError','setLogPath','3924486acccdW','cli-skill-install','cwd','log','1739112jEMOfP','\x20-g\x20-y','pipe','../../skills/npx-skills-add.js','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','102988uTDhya','inherit','error','1395nZdESB','info','24JIwNCu','unknown','install','CLI\x20Built-in\x20Skill\x20installed','1861062tWdWaN','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','20nfjFhv','3067062ZRzDGs'];a17_0x3333=function(){return _0xa33c0d;};return a17_0x3333();}import{logger}from'../../utils/logger.js';function a17_0x1d87(_0x2f83c7,_0x469edc){_0x2f83c7=_0x2f83c7-0x1be;const _0x33337a=a17_0x3333();let _0x1d8707=_0x33337a[_0x2f83c7];return _0x1d8707;}export const cliSkillDefinitions=[{'service':'cli-skill','command':a17_0x5f4ea0(0x1c7),'description':'Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','risk':a17_0x5f4ea0(0x1ce),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1a27bb){const _0x4a4554=a17_0x5f4ea0;logger[_0x4a4554(0x1d3)](process[_0x4a4554(0x1d6)]()),logger[_0x4a4554(0x1c4)](_0x4a4554(0x1d5),_0x4a4554(0x1ca));const {LOVRABET_SKILL_SOURCE:_0x2ed489,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x425019,runNpxSkillsAddGlobal:_0x40775b}=await import(_0x4a4554(0x1be)),_0x13bf68=_0x1a27bb[_0x4a4554(0x1cd)]?_0x4a4554(0x1da):_0x4a4554(0x1c1);console[_0x4a4554(0x1d7)]('Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20'+_0x2ed489+'\x20-g\x20-y)...');const _0x3923d2=_0x40775b(process[_0x4a4554(0x1d6)](),_0x2ed489,{'stdio':_0x13bf68});if(_0x3923d2[_0x4a4554(0x1d1)])console[_0x4a4554(0x1d7)]('Skipped\x20npx\x20('+_0x425019+_0x4a4554(0x1bf));else{if(_0x3923d2['ok'])console[_0x4a4554(0x1d7)](_0x4a4554(0x1c8));else throw CliErrors[_0x4a4554(0x1d2)]('npx\x20skills\x20add\x20failed:\x20'+(_0x3923d2[_0x4a4554(0x1c2)]||_0x4a4554(0x1c6)),'Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20'+_0x2ed489+_0x4a4554(0x1d9));}return{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x534de0,_0x2323c3){const _0x34482d=a18_0x1005,_0x580dce=_0x534de0();while(!![]){try{const _0x38e08f=parseInt(_0x34482d(0x189))/0x1+parseInt(_0x34482d(0x18d))/0x2+-parseInt(_0x34482d(0x17b))/0x3*(-parseInt(_0x34482d(0x185))/0x4)+parseInt(_0x34482d(0x181))/0x5*(-parseInt(_0x34482d(0x18c))/0x6)+-parseInt(_0x34482d(0x17c))/0x7*(parseInt(_0x34482d(0x18e))/0x8)+-parseInt(_0x34482d(0x183))/0x9*(parseInt(_0x34482d(0x184))/0xa)+parseInt(_0x34482d(0x180))/0xb;if(_0x38e08f===_0x2323c3)break;else _0x580dce['push'](_0x580dce['shift']());}catch(_0x128b88){_0x580dce['push'](_0x580dce['shift']());}}}(a18_0x4d17,0xb4fb8));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';function a18_0x1005(_0x35d03d,_0x44f4a9){_0x35d03d=_0x35d03d-0x179;const _0x4d17b3=a18_0x4d17();let _0x100598=_0x4d17b3[_0x35d03d];return _0x100598;}export function resolveConfigScope(_0x8228e0){const _0x3ac746=a18_0x1005,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x3a39ba}=_0x8228e0;if(explicitGlobal&&explicitProject)throw CliErrors[_0x3ac746(0x17a)]('Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.',_0x3ac746(0x17d));if(explicitGlobal)return _0x3ac746(0x188);if(explicitProject)return _0x3ac746(0x179);switch(_0x3a39ba){case _0x3ac746(0x18b):return _0x3ac746(0x188);case _0x3ac746(0x18a):return _0x8228e0[_0x3ac746(0x182)]??isInProject()?'project':_0x3ac746(0x188);case'project-or-global-explicit':if(!(_0x8228e0[_0x3ac746(0x182)]??isInProject()))throw CliErrors[_0x3ac746(0x17a)]('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG[_0x3ac746(0x17e)]+'\x20found).',_0x3ac746(0x186)+PRODUCT_CONFIG[_0x3ac746(0x17e)]+_0x3ac746(0x18f)+CLI_BIN_NAME+_0x3ac746(0x17f));return _0x3ac746(0x179);}}function a18_0x4d17(){const _0x351c73=['4740974rvKPdj','Use\x20only\x20one\x20config\x20scope\x20flag.','newConfigFileName','\x20init`\x20first.','5985540yKWLtL','1334365zxWfIc','inProject','32256oBcEdP','3220MCQwif','16vurvOq','Add\x20--global\x20to\x20write\x20to\x20~/','\x20(global)','global','1451892hUYJaZ','project-default','global-default','12lrmUlb','719344fwsrBl','8pLxxor',',\x20or\x20run\x20`','project','validation','563007ExyEiD'];a18_0x4d17=function(){return _0x351c73;};return a18_0x4d17();}export function toScopeFlags(_0x33dac2){const _0xd4b158=a18_0x1005;return{'global':_0x33dac2===_0xd4b158(0x188)};}export function formatScopeLabel(_0x3967c2){const _0x18fc9b=a18_0x1005;return _0x3967c2==='global'?_0x18fc9b(0x187):'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2c9c31,_0x53b942){const _0x2c850c=a19_0x1529,_0x2c1605=_0x2c9c31();while(!![]){try{const _0x1faf22=-parseInt(_0x2c850c(0x1bc))/0x1+parseInt(_0x2c850c(0x1c0))/0x2+-parseInt(_0x2c850c(0x1c2))/0x3+-parseInt(_0x2c850c(0x1b9))/0x4+-parseInt(_0x2c850c(0x1c1))/0x5*(parseInt(_0x2c850c(0x1be))/0x6)+-parseInt(_0x2c850c(0x1ba))/0x7*(-parseInt(_0x2c850c(0x1b8))/0x8)+parseInt(_0x2c850c(0x1b1))/0x9;if(_0x1faf22===_0x53b942)break;else _0x2c1605['push'](_0x2c1605['shift']());}catch(_0x405542){_0x2c1605['push'](_0x2c1605['shift']());}}}(a19_0x3d67,0x4beb4));import{CliErrors}from'../../errors.js';function isSet(_0x8b4b7d,_0x2db7c1){const _0x56bd05=a19_0x1529,_0x4ac49e=_0x8b4b7d[_0x56bd05(0x1b2)](_0x2db7c1);return _0x4ac49e!==undefined&&_0x4ac49e!==''&&_0x4ac49e!==![]&&_0x4ac49e!==0x0;}function fmtNames(_0x1ae09c){const _0x313059=a19_0x1529;return _0x1ae09c[_0x313059(0x1c7)](_0x4bbe6d=>'--'+_0x4bbe6d)[_0x313059(0x1b5)](',\x20');}export function requireOneOf(_0x10298f,_0x5c86f5,_0x570920){const _0x337fd0=a19_0x1529,_0x4dbbfd=_0x5c86f5['filter'](_0x256f39=>isSet(_0x10298f,_0x256f39));if(_0x4dbbfd[_0x337fd0(0x1c4)]!==0x1)throw CliErrors[_0x337fd0(0x1b3)](_0x4dbbfd['length']===0x0?'Exactly\x20one\x20of\x20'+fmtNames(_0x5c86f5)+'\x20is\x20required\x20for\x20`'+_0x570920+'`.':'Only\x20one\x20of\x20'+fmtNames(_0x5c86f5)+_0x337fd0(0x1c6)+fmtNames(_0x4dbbfd)+'.',_0x4dbbfd[_0x337fd0(0x1c4)]===0x0?'Provide\x20one\x20of:\x20'+fmtNames(_0x5c86f5):'Remove\x20all\x20but\x20one.');}export function requireAnyOf(_0x1513bb,_0x11b03d,_0x5eaf3b){const _0x2ab83e=a19_0x1529;if(!_0x11b03d[_0x2ab83e(0x1c3)](_0xb59211=>isSet(_0x1513bb,_0xb59211)))throw CliErrors['validation']('At\x20least\x20one\x20of\x20'+fmtNames(_0x11b03d)+'\x20is\x20required\x20for\x20`'+_0x5eaf3b+'`.',_0x2ab83e(0x1c8)+fmtNames(_0x11b03d));}function a19_0x3d67(){const _0x2d6454=['238260CGBuJA','1715tDIrKb','Invalid\x20--','475884qrgxHH','str','1046238Hltyix','Use\x20only\x20one\x20of:\x20','957380NlCxIa','5VQcDNI','641967vwTUgB','some','length',':\x20expected\x20','\x20is\x20allowed,\x20found:\x20','map','Provide\x20one\x20of:\x20','5942610SxUgIA','flag','validation','Flags\x20','join','\x20are\x20mutually\x20exclusive\x20for\x20`','test','3128NXHDkP'];a19_0x3d67=function(){return _0x2d6454;};return a19_0x3d67();}export function mutuallyExclusive(_0x4344b0,_0x34deac,_0x587a4e){const _0x2bbbde=a19_0x1529,_0x174ad7=_0x34deac['filter'](_0x12b080=>isSet(_0x4344b0,_0x12b080));if(_0x174ad7[_0x2bbbde(0x1c4)]>0x1)throw CliErrors[_0x2bbbde(0x1b3)](_0x2bbbde(0x1b4)+fmtNames(_0x174ad7)+_0x2bbbde(0x1b6)+_0x587a4e+'`.',_0x2bbbde(0x1bf)+fmtNames(_0x34deac));}function a19_0x1529(_0x5cc9e3,_0x1951b4){_0x5cc9e3=_0x5cc9e3-0x1b1;const _0x3d6739=a19_0x3d67();let _0x152937=_0x3d6739[_0x5cc9e3];return _0x152937;}export function validatePattern(_0x3a8ddc,_0x690d09,_0x5e3a9d,_0x3fa3d8){const _0x31fadf=a19_0x1529,_0x1ab729=_0x3a8ddc[_0x31fadf(0x1bd)](_0x690d09);if(_0x1ab729&&!_0x5e3a9d[_0x31fadf(0x1b7)](_0x1ab729))throw CliErrors['validation'](_0x31fadf(0x1bb)+_0x690d09+_0x31fadf(0x1c5)+_0x3fa3d8+',\x20got\x20\x22'+_0x1ab729+'\x22.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x54b25e=a20_0x9e92;(function(_0x17b60,_0x316c5b){const _0x188db2=a20_0x9e92,_0x27701f=_0x17b60();while(!![]){try{const _0x343515=parseInt(_0x188db2(0x1e7))/0x1+parseInt(_0x188db2(0x1e3))/0x2*(-parseInt(_0x188db2(0x1e1))/0x3)+parseInt(_0x188db2(0x1e9))/0x4*(parseInt(_0x188db2(0x1ed))/0x5)+-parseInt(_0x188db2(0x1da))/0x6+parseInt(_0x188db2(0x1e5))/0x7+parseInt(_0x188db2(0x1d7))/0x8*(-parseInt(_0x188db2(0x1d5))/0x9)+-parseInt(_0x188db2(0x1de))/0xa*(-parseInt(_0x188db2(0x1dd))/0xb);if(_0x343515===_0x316c5b)break;else _0x27701f['push'](_0x27701f['shift']());}catch(_0x561f5e){_0x27701f['push'](_0x27701f['shift']());}}}(a20_0x4bb7,0x77cf6));export const CODE_FLAG={'name':a20_0x54b25e(0x1ea),'type':a20_0x54b25e(0x1e0),'required':!![],'description':a20_0x54b25e(0x1eb),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0x54b25e(0x1d8)}};export const SQLCODE_FLAG={'name':a20_0x54b25e(0x1d4),'type':a20_0x54b25e(0x1e0),'required':!![],'description':a20_0x54b25e(0x1df),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0x54b25e(0x1dc)}};function a20_0x4bb7(){const _0x4d840c=['Resource\x20name\x20for\x20lookup','3625158GLLdJN','name','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','9680TKIngv','11870YRhXSk','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','string','1429257cmDnke','number','2qTOZNV','Resource\x20ID','4047855eECtYj','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','587437NRhoHo','params','918628zvAcPl','code','Dataset\x20code\x20(32-char\x20hex\x20UUID)','boolean','5ABAiAG','Return\x20full\x20raw\x20response\x20object','sqlcode','9vaGaBB','verbose','6948520OcNxxj','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'];a20_0x4bb7=function(){return _0x4d840c;};return a20_0x4bb7();}function a20_0x9e92(_0x209428,_0x2720b4){_0x209428=_0x209428-0x1d4;const _0x4bb7f9=a20_0x4bb7();let _0x9e9288=_0x4bb7f9[_0x209428];return _0x9e9288;}export const VERBOSE_FLAG={'name':a20_0x54b25e(0x1d6),'type':a20_0x54b25e(0x1ec),'description':a20_0x54b25e(0x1ee)};export const PARAMS_FLAG={'name':a20_0x54b25e(0x1e8),'type':a20_0x54b25e(0x1e0),'description':a20_0x54b25e(0x1e6)};export const NAME_FLAG={'name':a20_0x54b25e(0x1db),'type':a20_0x54b25e(0x1e0),'description':a20_0x54b25e(0x1d9)};export const ID_FLAG={'name':'id','type':a20_0x54b25e(0x1e2),'required':!![],'description':a20_0x54b25e(0x1e4)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1d8fa0,_0x328f08){const _0x21b9fa=a21_0x1ae8,_0x583bb9=_0x1d8fa0();while(!![]){try{const _0x1e40fc=-parseInt(_0x21b9fa(0x13e))/0x1+-parseInt(_0x21b9fa(0x12f))/0x2*(parseInt(_0x21b9fa(0x136))/0x3)+-parseInt(_0x21b9fa(0x135))/0x4+parseInt(_0x21b9fa(0x137))/0x5+-parseInt(_0x21b9fa(0x12e))/0x6*(parseInt(_0x21b9fa(0x132))/0x7)+parseInt(_0x21b9fa(0x134))/0x8+-parseInt(_0x21b9fa(0x12d))/0x9*(-parseInt(_0x21b9fa(0x139))/0xa);if(_0x1e40fc===_0x328f08)break;else _0x583bb9['push'](_0x583bb9['shift']());}catch(_0x241744){_0x583bb9['push'](_0x583bb9['shift']());}}}(a21_0xf897,0x8085e));function a21_0x1ae8(_0x2511df,_0x5e59a1){_0x2511df=_0x2511df-0x12d;const _0xf897ee=a21_0xf897();let _0x1ae88b=_0xf897ee[_0x2511df];return _0x1ae88b;}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(_0x1a6909){const _0x4cf305=a21_0x1ae8;if(_0x1a6909>=BYTES_PER_MB){const _0x97b993=Math[_0x4cf305(0x130)](_0x1a6909/BYTES_PER_MB*0x64)/0x64;return _0x97b993[_0x4cf305(0x133)](0x2)+_0x4cf305(0x13a);}return _0x1a6909+'\x20B';}export function requireRuntimeUploadFile(_0x2ad218,_0x2f2423){const _0x32fb08=a21_0x1ae8,_0x3d1dfe=_0x2ad218[_0x32fb08(0x13d)]();if(!_0x3d1dfe)throw CliErrors[_0x32fb08(0x138)](_0x2f2423+_0x32fb08(0x13f));if(!existsSync(_0x3d1dfe))throw CliErrors[_0x32fb08(0x138)](_0x32fb08(0x131)+_0x3d1dfe);const _0x1777e2=statSync(_0x3d1dfe);if(!_0x1777e2[_0x32fb08(0x13c)]())throw CliErrors['validation']('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x3d1dfe);if(_0x1777e2['size']>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors['validation'](_0x32fb08(0x140)+_0x3d1dfe+'\x20('+formatBytes(_0x1777e2[_0x32fb08(0x13b)])+')');return{'path':_0x3d1dfe,'size':_0x1777e2[_0x32fb08(0x13b)]};}function a21_0xf897(){const _0x3c3b40=['3123nyougD','66SZLyXt','2rhBljc','ceil','File\x20not\x20found:\x20','593460FEihGm','toFixed','4288968kmgqoB','3980212gCvQRX','537087LnveLN','3670805NPAylF','validation','49070NRWwKl','\x20MB','size','isFile','trim','339919bCOGPm','\x20path\x20is\x20required.','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20'];a21_0xf897=function(){return _0x3c3b40;};return a21_0xf897();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a22_0x246dc5=a22_0xa7f2;(function(_0x4a9fcd,_0x4c0577){const _0x52df2f=a22_0xa7f2,_0x27f73b=_0x4a9fcd();while(!![]){try{const _0x100a0a=parseInt(_0x52df2f(0x1c4))/0x1+parseInt(_0x52df2f(0x1be))/0x2+parseInt(_0x52df2f(0x1bb))/0x3*(-parseInt(_0x52df2f(0x1ca))/0x4)+-parseInt(_0x52df2f(0x1d0))/0x5*(parseInt(_0x52df2f(0x1a8))/0x6)+-parseInt(_0x52df2f(0x190))/0x7+-parseInt(_0x52df2f(0x1c0))/0x8*(-parseInt(_0x52df2f(0x19e))/0x9)+parseInt(_0x52df2f(0x1aa))/0xa;if(_0x100a0a===_0x4c0577)break;else _0x27f73b['push'](_0x27f73b['shift']());}catch(_0x13c6e1){_0x27f73b['push'](_0x27f73b['shift']());}}}(a22_0x53e4,0x6c652));function a22_0x53e4(){const _0x4e245d=['357795RsfhyJ','bool','riskLevel','List\x20current\x20config','Missing\x20key\x20argument.','pageSize','config','object','alias','\x20config\x20set\x20<key>\x20<value>\x20[--global]','6AfyODe','isArray','518830ThRpiW','../../context.js','split','Missing\x20key\x20or\x20value.','project-or-global-explicit','args','Set\x20a\x20config\x20value','Invalid\x20value\x20for\x20\x22','trim','Usage:\x20','pretty','includes','apps','validation','raw','get','Delete\x20a\x20config\x20value','21nYnVza','Get\x20a\x20config\x20value','read','1065854WDLWra','\x20\x20project:\x20','104mhRVOt','global','\x20(global)','Config\x20files:\x0a','642647IUoWpt','join','log','Top-level\x20key\x20\x22','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','Deleted\x20`','40556BTvCRZ','keys','Settable\x20keys:\x20','stringify','\x22.\x20Allowed:\x20','key','3245030UbanFP','Write\x20to\x20global\x20config','4062149CnZPqO','boolean','write','(none)','pageSize\x20must\x20be\x20a\x20positive\x20number','appcode','length','Key\x20not\x20found:\x20','set','format','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','field','\x20config\x20get\x20<key>','value'];a22_0x53e4=function(){return _0x4e245d;};return a22_0x53e4();}import{CliErrors}from'../../errors.js';function a22_0xa7f2(_0x329a62,_0x1f07ca){_0x329a62=_0x329a62-0x18f;const _0x53e414=a22_0x53e4();let _0xa7f256=_0x53e414[_0x329a62];return _0xa7f256;}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_0x246dc5(0x1c1),'type':a22_0x246dc5(0x191),'description':a22_0x246dc5(0x18f),'default':![]};function parseAliasAppcodeSetKey(_0x4e15a6){const _0x4f63e8=a22_0x246dc5,_0x598883=_0x4e15a6[_0x4f63e8(0x1ac)]('.');if(_0x598883[_0x4f63e8(0x196)]!==0x3||_0x598883[0x0]!==_0x4f63e8(0x1b6)||_0x598883[0x2]!==_0x4f63e8(0x195))return undefined;const _0x4cd540=_0x598883[0x1]?.[_0x4f63e8(0x1b2)]();return _0x4cd540?_0x4cd540:undefined;}function parseAliasDeleteKey(_0x45e9ee){const _0x6dc782=a22_0x246dc5,_0x418bc0=_0x45e9ee[_0x6dc782(0x1ac)]('.');if(_0x418bc0[_0x6dc782(0x196)]===0x2&&_0x418bc0[0x0]===_0x6dc782(0x1b6)){const _0x586524=_0x418bc0[0x1]?.[_0x6dc782(0x1b2)]();return _0x586524?{'alias':_0x586524}:undefined;}if(_0x418bc0[_0x6dc782(0x196)]===0x3&&_0x418bc0[0x0]===_0x6dc782(0x1b6)&&_0x418bc0[0x2]===_0x6dc782(0x195)){const _0x50412d=_0x418bc0[0x1]?.[_0x6dc782(0x1b2)]();return _0x50412d?{'alias':_0x50412d,'field':'appcode'}:undefined;}return undefined;}function setLocalAppAlias(_0x2877d7,_0x2c4667,_0x1c1bac){const _0x573abb=a22_0x246dc5,_0x367a3e=_0x2877d7['apps']&&typeof _0x2877d7['apps']===_0x573abb(0x1a5)&&!Array[_0x573abb(0x1a9)](_0x2877d7['apps'])?_0x2877d7[_0x573abb(0x1b6)]:{},_0xf6ce08=_0x367a3e[_0x2c4667]&&typeof _0x367a3e[_0x2c4667]===_0x573abb(0x1a5)&&!Array['isArray'](_0x367a3e[_0x2c4667])?_0x367a3e[_0x2c4667]:{};_0xf6ce08[_0x573abb(0x195)]=_0x1c1bac,_0x367a3e[_0x2c4667]=_0xf6ce08,_0x2877d7[_0x573abb(0x1b6)]=_0x367a3e;}function deleteLocalAppAlias(_0x509509,_0x4e1fd5){const _0x3cda22=a22_0x246dc5;if(!_0x509509[_0x3cda22(0x1b6)]||typeof _0x509509[_0x3cda22(0x1b6)]!==_0x3cda22(0x1a5)||Array['isArray'](_0x509509[_0x3cda22(0x1b6)]))return![];const _0x4f1288=_0x509509[_0x3cda22(0x1b6)],_0x118c6b=_0x4f1288[_0x4e1fd5[_0x3cda22(0x1a6)]];if(!_0x118c6b||typeof _0x118c6b!=='object'||Array[_0x3cda22(0x1a9)](_0x118c6b))return![];if(!_0x4e1fd5[_0x3cda22(0x19b)])return delete _0x4f1288[_0x4e1fd5[_0x3cda22(0x1a6)]],!![];if(!(_0x4e1fd5[_0x3cda22(0x19b)]in _0x118c6b))return![];return delete _0x118c6b[_0x4e1fd5[_0x3cda22(0x19b)]],Object[_0x3cda22(0x1cb)](_0x118c6b)[_0x3cda22(0x196)]===0x0&&delete _0x4f1288[_0x4e1fd5['alias']],!![];}const listDef={'service':a22_0x246dc5(0x1a4),'command':'list','description':a22_0x246dc5(0x1a1),'risk':a22_0x246dc5(0x1bd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x111438){const _0x164f74=a22_0x246dc5,{buildConfigFromFlags:_0x922eb5}=await import(_0x164f74(0x1ab)),_0x215d34=_0x922eb5({}),_0x59ebcf=getProjectConfigPath(),_0x560299=resolveWriteConfigPath('global');if(_0x111438[_0x164f74(0x199)]===_0x164f74(0x1b4))return{'ok':!![],'message':_0x164f74(0x1c8)+(JSON[_0x164f74(0x1cd)](_0x215d34[_0x164f74(0x1b8)],null,0x2)+'\x0a\x0a')+_0x164f74(0x1c3)+(_0x164f74(0x1bf)+(_0x59ebcf??_0x164f74(0x193))+'\x0a')+('\x20\x20global:\x20\x20'+_0x560299)};return{'ok':!![],'data':{'effective':_0x215d34[_0x164f74(0x1b8)],'configFiles':{'project':_0x59ebcf??null,'global':_0x560299}}};}},getDef={'service':a22_0x246dc5(0x1a4),'command':a22_0x246dc5(0x1b9),'description':a22_0x246dc5(0x1bc),'risk':a22_0x246dc5(0x1bd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':'Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','required':!![]}],'flags':[],async 'execute'(_0x519097){const _0xd3de41=a22_0x246dc5,_0x2430ee=_0x519097['args'][0x0];if(!_0x2430ee)throw CliErrors[_0xd3de41(0x1b7)](_0xd3de41(0x1a2),_0xd3de41(0x1b3)+CLI_BIN_NAME+_0xd3de41(0x19c));const {buildConfigFromFlags:_0x2b2388}=await import(_0xd3de41(0x1ab)),{raw:_0x1e62a}=_0x2b2388({});if(_0x2430ee[_0xd3de41(0x1b5)]('.')){const _0x26c5a3=_0x2430ee['split']('.');let _0xdeccb5=_0x1e62a;for(const _0x485698 of _0x26c5a3){if(_0xdeccb5==null||typeof _0xdeccb5!==_0xd3de41(0x1a5))throw CliErrors[_0xd3de41(0x1b7)](_0xd3de41(0x197)+_0x2430ee);_0xdeccb5=_0xdeccb5[_0x485698];}if(_0xdeccb5===undefined)throw CliErrors[_0xd3de41(0x1b7)]('Key\x20not\x20found:\x20'+_0x2430ee);return console['log'](typeof _0xdeccb5===_0xd3de41(0x1a5)?JSON['stringify'](_0xdeccb5,null,0x2):String(_0xdeccb5)),{'ok':!![]};}const _0x17450c=_0x1e62a[_0x2430ee];if(_0x17450c===undefined)throw CliErrors['validation'](_0xd3de41(0x197)+_0x2430ee);return console[_0xd3de41(0x1c6)](typeof _0x17450c===_0xd3de41(0x1a5)?JSON[_0xd3de41(0x1cd)](_0x17450c,null,0x2):String(_0x17450c)),{'ok':!![]};}},setDef={'service':a22_0x246dc5(0x1a4),'command':a22_0x246dc5(0x198),'description':a22_0x246dc5(0x1b0),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x246dc5(0x1cf),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x246dc5(0x19d),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x35c9cf){const _0x2258f1=a22_0x246dc5,_0xd80482=_0x35c9cf[_0x2258f1(0x1af)][0x0],_0x4768b9=_0x35c9cf['args'][0x1];if(!_0xd80482||_0x4768b9===undefined)throw CliErrors[_0x2258f1(0x1b7)](_0x2258f1(0x1ad),_0x2258f1(0x1b3)+CLI_BIN_NAME+_0x2258f1(0x1a7));if(ENUM_KEYS[_0xd80482]&&!ENUM_KEYS[_0xd80482][_0x2258f1(0x1b5)](_0x4768b9))throw CliErrors['validation'](_0x2258f1(0x1b1)+_0xd80482+_0x2258f1(0x1ce)+ENUM_KEYS[_0xd80482][_0x2258f1(0x1c5)](',\x20'));if(_0xd80482===_0x2258f1(0x1a0))throw CliErrors[_0x2258f1(0x1b7)](_0x2258f1(0x19a));if(_0xd80482===_0x2258f1(0x1a3)){const _0xb84cd6=Number(_0x4768b9);if(isNaN(_0xb84cd6)||_0xb84cd6<=0x0)throw CliErrors[_0x2258f1(0x1b7)](_0x2258f1(0x194));}const _0x2ebd78=resolveWriteScope({'explicitGlobal':_0x35c9cf[_0x2258f1(0x19f)](_0x2258f1(0x1c1)),'policy':_0x2258f1(0x1ae)}),_0x1c6345=toScopeFlags(_0x2ebd78),_0x3f298b=readScopedConfig(_0x1c6345),_0x656b0d=parseAliasAppcodeSetKey(_0xd80482);if(!_0x656b0d&&!isTopLevelConfigKey(_0xd80482))throw CliErrors[_0x2258f1(0x1b7)](_0x2258f1(0x1c7)+_0xd80482+'\x22\x20is\x20not\x20settable.',_0x2258f1(0x1cc)+getTopLevelConfigKeySummary()+';\x20apps.<alias>.appcode');return _0x656b0d?setLocalAppAlias(_0x3f298b,_0x656b0d,_0x4768b9):_0x3f298b[_0xd80482]=_0xd80482==='pageSize'?Number(_0x4768b9):_0x4768b9,console[_0x2258f1(0x1c6)]('Set\x20`'+_0xd80482+'`\x20=\x20\x22'+_0x4768b9+'\x22'+(_0x2ebd78==='global'?_0x2258f1(0x1c2):'')),writeScopedConfig(_0x3f298b,_0x1c6345),{'ok':!![]};}},deleteDef={'service':'config','command':'delete','description':a22_0x246dc5(0x1ba),'risk':a22_0x246dc5(0x192),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x246dc5(0x1cf),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0xb72118){const _0x5b878e=a22_0x246dc5,_0x18385c=_0xb72118[_0x5b878e(0x1af)][0x0];if(!_0x18385c)throw CliErrors[_0x5b878e(0x1b7)](_0x5b878e(0x1a2),_0x5b878e(0x1b3)+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x2c26f2=resolveWriteScope({'explicitGlobal':_0xb72118[_0x5b878e(0x19f)]('global'),'policy':_0x5b878e(0x1ae)}),_0x350d7e=toScopeFlags(_0x2c26f2),_0x435bcd=readScopedConfig(_0x350d7e),_0x452f19=parseAliasDeleteKey(_0x18385c);if(_0x452f19){if(!deleteLocalAppAlias(_0x435bcd,_0x452f19))throw CliErrors[_0x5b878e(0x1b7)](_0x5b878e(0x197)+_0x18385c);return console[_0x5b878e(0x1c6)](_0x5b878e(0x1c9)+_0x18385c+'`'+(_0x2c26f2===_0x5b878e(0x1c1)?'\x20(global)':'')),writeScopedConfig(_0x435bcd,_0x350d7e),{'ok':!![]};}if(_0x435bcd[_0x18385c]===undefined)throw CliErrors['validation']('Key\x20\x22'+_0x18385c+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0x435bcd[_0x18385c],console[_0x5b878e(0x1c6)](_0x5b878e(0x1c9)+_0x18385c+'`'+(_0x2c26f2===_0x5b878e(0x1c1)?_0x5b878e(0x1c2):'')),writeScopedConfig(_0x435bcd,_0x350d7e),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
1
|
+
const a22_0x566277=a22_0x5f30;(function(_0x40b2dd,_0x573a7f){const _0x55f8f9=a22_0x5f30,_0x3ab7e4=_0x40b2dd();while(!![]){try{const _0xe5be26=-parseInt(_0x55f8f9(0x1d0))/0x1+-parseInt(_0x55f8f9(0x1e5))/0x2+-parseInt(_0x55f8f9(0x1dd))/0x3+-parseInt(_0x55f8f9(0x1e0))/0x4+parseInt(_0x55f8f9(0x1b9))/0x5+parseInt(_0x55f8f9(0x1c2))/0x6+-parseInt(_0x55f8f9(0x1c8))/0x7*(-parseInt(_0x55f8f9(0x1c6))/0x8);if(_0xe5be26===_0x573a7f)break;else _0x3ab7e4['push'](_0x3ab7e4['shift']());}catch(_0x55a2a2){_0x3ab7e4['push'](_0x3ab7e4['shift']());}}}(a22_0x5e1e,0xeee4a));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_0x5f30(_0x2e2f73,_0x5f3f4f){_0x2e2f73=_0x2e2f73-0x1ad;const _0x5e1e0d=a22_0x5e1e();let _0x5f3055=_0x5e1e0d[_0x2e2f73];return _0x5f3055;}import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a22_0x566277(0x1b8),'type':a22_0x566277(0x1d5),'description':a22_0x566277(0x1cd),'default':![]};function parseAliasAppcodeSetKey(_0x56f169){const _0x4e2485=a22_0x566277,_0x50c9d4=_0x56f169[_0x4e2485(0x1b4)]('.');if(_0x50c9d4[_0x4e2485(0x1bd)]!==0x3||_0x50c9d4[0x0]!==_0x4e2485(0x1be)||_0x50c9d4[0x2]!=='appcode')return undefined;const _0x376181=_0x50c9d4[0x1]?.['trim']();return _0x376181?_0x376181:undefined;}function parseAliasDeleteKey(_0x26b808){const _0x5e7fcb=a22_0x566277,_0x53e8aa=_0x26b808[_0x5e7fcb(0x1b4)]('.');if(_0x53e8aa[_0x5e7fcb(0x1bd)]===0x2&&_0x53e8aa[0x0]===_0x5e7fcb(0x1be)){const _0x1be976=_0x53e8aa[0x1]?.[_0x5e7fcb(0x1ca)]();return _0x1be976?{'alias':_0x1be976}:undefined;}if(_0x53e8aa[_0x5e7fcb(0x1bd)]===0x3&&_0x53e8aa[0x0]===_0x5e7fcb(0x1be)&&_0x53e8aa[0x2]===_0x5e7fcb(0x1d6)){const _0x109776=_0x53e8aa[0x1]?.[_0x5e7fcb(0x1ca)]();return _0x109776?{'alias':_0x109776,'field':_0x5e7fcb(0x1d6)}:undefined;}return undefined;}function a22_0x5e1e(){const _0x38f5bb=['Usage:\x20','1111212HeUYAC','Config\x20files:\x0a','config','\x20config\x20get\x20<key>','join','keys','riskLevel','List\x20current\x20config','\x20(global)','isArray','Key\x20not\x20found:\x20','split','\x20\x20global:\x20\x20','field','\x22.\x20Allowed:\x20','global','2928505tePkIv','bool','Settable\x20keys:\x20','Set\x20a\x20config\x20value','length','apps','pageSize\x20must\x20be\x20a\x20positive\x20number','write','Missing\x20key\x20argument.','9992946YKirLf','list','log','Deleted\x20`','968FwDsSc','includes','225211HtfulZ','args','trim','key','\x20\x20project:\x20','Write\x20to\x20global\x20config','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','object','1182764IxbdNa','validation','alias','pageSize','Key\x20\x22','boolean','appcode','project-or-global-explicit','Delete\x20a\x20config\x20value','\x20config\x20delete\x20<key>\x20[--global]',';\x20apps.<alias>.appcode','raw','stringify','5434554ysCoGi','get','(none)','6462924XQpQOi','format','Invalid\x20value\x20for\x20\x22','read'];a22_0x5e1e=function(){return _0x38f5bb;};return a22_0x5e1e();}function setLocalAppAlias(_0x7ba895,_0x3b4178,_0x1ed1e5){const _0x270f14=a22_0x566277,_0x5ce611=_0x7ba895[_0x270f14(0x1be)]&&typeof _0x7ba895[_0x270f14(0x1be)]==='object'&&!Array[_0x270f14(0x1b2)](_0x7ba895[_0x270f14(0x1be)])?_0x7ba895['apps']:{},_0x1b6637=_0x5ce611[_0x3b4178]&&typeof _0x5ce611[_0x3b4178]==='object'&&!Array['isArray'](_0x5ce611[_0x3b4178])?_0x5ce611[_0x3b4178]:{};_0x1b6637[_0x270f14(0x1d6)]=_0x1ed1e5,_0x5ce611[_0x3b4178]=_0x1b6637,_0x7ba895[_0x270f14(0x1be)]=_0x5ce611;}function deleteLocalAppAlias(_0x4f3f8a,_0x5b5bab){const _0x41996e=a22_0x566277;if(!_0x4f3f8a[_0x41996e(0x1be)]||typeof _0x4f3f8a[_0x41996e(0x1be)]!=='object'||Array[_0x41996e(0x1b2)](_0x4f3f8a[_0x41996e(0x1be)]))return![];const _0x37df5b=_0x4f3f8a['apps'],_0x3bb957=_0x37df5b[_0x5b5bab['alias']];if(!_0x3bb957||typeof _0x3bb957!==_0x41996e(0x1cf)||Array[_0x41996e(0x1b2)](_0x3bb957))return![];if(!_0x5b5bab[_0x41996e(0x1b6)])return delete _0x37df5b[_0x5b5bab[_0x41996e(0x1d2)]],!![];if(!(_0x5b5bab[_0x41996e(0x1b6)]in _0x3bb957))return![];return delete _0x3bb957[_0x5b5bab[_0x41996e(0x1b6)]],Object[_0x41996e(0x1ae)](_0x3bb957)[_0x41996e(0x1bd)]===0x0&&delete _0x37df5b[_0x5b5bab[_0x41996e(0x1d2)]],!![];}const listDef={'service':a22_0x566277(0x1e7),'command':a22_0x566277(0x1c3),'description':a22_0x566277(0x1b0),'risk':a22_0x566277(0x1e3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x4f6dc8){const _0x10f888=a22_0x566277,{buildConfigFromFlags:_0x40c423}=await import('../../context.js'),_0x3816ef=_0x40c423({}),_0x11f45a=getProjectConfigPath(),_0x1f636c=resolveWriteConfigPath('global');if(_0x4f6dc8[_0x10f888(0x1e1)]==='pretty')return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON['stringify'](_0x3816ef[_0x10f888(0x1db)],null,0x2)+'\x0a\x0a')+_0x10f888(0x1e6)+(_0x10f888(0x1cc)+(_0x11f45a??_0x10f888(0x1df))+'\x0a')+(_0x10f888(0x1b5)+_0x1f636c)};return{'ok':!![],'data':{'effective':_0x3816ef[_0x10f888(0x1db)],'configFiles':{'project':_0x11f45a??null,'global':_0x1f636c}}};}},getDef={'service':'config','command':a22_0x566277(0x1de),'description':'Get\x20a\x20config\x20value','risk':a22_0x566277(0x1e3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x566277(0x1cb),'description':a22_0x566277(0x1ce),'required':!![]}],'flags':[],async 'execute'(_0x59273c){const _0x548f16=a22_0x566277,_0x5888b9=_0x59273c[_0x548f16(0x1c9)][0x0];if(!_0x5888b9)throw CliErrors['validation'](_0x548f16(0x1c1),_0x548f16(0x1e4)+CLI_BIN_NAME+_0x548f16(0x1e8));const {buildConfigFromFlags:_0x2336d4}=await import('../../context.js'),{raw:_0x4093e9}=_0x2336d4({});if(_0x5888b9['includes']('.')){const _0x55100c=_0x5888b9[_0x548f16(0x1b4)]('.');let _0x1c675d=_0x4093e9;for(const _0x2720fe of _0x55100c){if(_0x1c675d==null||typeof _0x1c675d!==_0x548f16(0x1cf))throw CliErrors[_0x548f16(0x1d1)](_0x548f16(0x1b3)+_0x5888b9);_0x1c675d=_0x1c675d[_0x2720fe];}if(_0x1c675d===undefined)throw CliErrors[_0x548f16(0x1d1)]('Key\x20not\x20found:\x20'+_0x5888b9);return console['log'](typeof _0x1c675d===_0x548f16(0x1cf)?JSON['stringify'](_0x1c675d,null,0x2):String(_0x1c675d)),{'ok':!![]};}const _0x40e604=_0x4093e9[_0x5888b9];if(_0x40e604===undefined)throw CliErrors[_0x548f16(0x1d1)]('Key\x20not\x20found:\x20'+_0x5888b9);return console[_0x548f16(0x1c4)](typeof _0x40e604===_0x548f16(0x1cf)?JSON[_0x548f16(0x1dc)](_0x40e604,null,0x2):String(_0x40e604)),{'ok':!![]};}},setDef={'service':a22_0x566277(0x1e7),'command':'set','description':a22_0x566277(0x1bc),'risk':a22_0x566277(0x1c0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x129b86){const _0x128436=a22_0x566277,_0x4176a4=_0x129b86[_0x128436(0x1c9)][0x0],_0x4b140c=_0x129b86[_0x128436(0x1c9)][0x1];if(!_0x4176a4||_0x4b140c===undefined)throw CliErrors[_0x128436(0x1d1)]('Missing\x20key\x20or\x20value.','Usage:\x20'+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x4176a4]&&!ENUM_KEYS[_0x4176a4][_0x128436(0x1c7)](_0x4b140c))throw CliErrors['validation'](_0x128436(0x1e2)+_0x4176a4+_0x128436(0x1b7)+ENUM_KEYS[_0x4176a4][_0x128436(0x1ad)](',\x20'));if(_0x4176a4===_0x128436(0x1af))throw CliErrors[_0x128436(0x1d1)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(_0x4176a4==='pageSize'){const _0x2e4226=Number(_0x4b140c);if(isNaN(_0x2e4226)||_0x2e4226<=0x0)throw CliErrors[_0x128436(0x1d1)](_0x128436(0x1bf));}const _0x307d08=resolveWriteScope({'explicitGlobal':_0x129b86[_0x128436(0x1ba)](_0x128436(0x1b8)),'policy':_0x128436(0x1d7)}),_0xa5c87b=toScopeFlags(_0x307d08),_0x4c077a=readScopedConfig(_0xa5c87b),_0x18fa80=parseAliasAppcodeSetKey(_0x4176a4);if(!_0x18fa80&&!isTopLevelConfigKey(_0x4176a4))throw CliErrors[_0x128436(0x1d1)]('Top-level\x20key\x20\x22'+_0x4176a4+'\x22\x20is\x20not\x20settable.',_0x128436(0x1bb)+getTopLevelConfigKeySummary()+_0x128436(0x1da));return _0x18fa80?setLocalAppAlias(_0x4c077a,_0x18fa80,_0x4b140c):_0x4c077a[_0x4176a4]=_0x4176a4===_0x128436(0x1d3)?Number(_0x4b140c):_0x4b140c,console[_0x128436(0x1c4)]('Set\x20`'+_0x4176a4+'`\x20=\x20\x22'+_0x4b140c+'\x22'+(_0x307d08===_0x128436(0x1b8)?_0x128436(0x1b1):'')),writeScopedConfig(_0x4c077a,_0xa5c87b),{'ok':!![]};}},deleteDef={'service':a22_0x566277(0x1e7),'command':'delete','description':a22_0x566277(0x1d8),'risk':a22_0x566277(0x1c0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x566277(0x1cb),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x16fc94){const _0x15d5a2=a22_0x566277,_0x566f39=_0x16fc94[_0x15d5a2(0x1c9)][0x0];if(!_0x566f39)throw CliErrors[_0x15d5a2(0x1d1)]('Missing\x20key\x20argument.',_0x15d5a2(0x1e4)+CLI_BIN_NAME+_0x15d5a2(0x1d9));const _0x55173b=resolveWriteScope({'explicitGlobal':_0x16fc94['bool']('global'),'policy':_0x15d5a2(0x1d7)}),_0x280abe=toScopeFlags(_0x55173b),_0xb1717e=readScopedConfig(_0x280abe),_0x45c770=parseAliasDeleteKey(_0x566f39);if(_0x45c770){if(!deleteLocalAppAlias(_0xb1717e,_0x45c770))throw CliErrors[_0x15d5a2(0x1d1)](_0x15d5a2(0x1b3)+_0x566f39);return console[_0x15d5a2(0x1c4)](_0x15d5a2(0x1c5)+_0x566f39+'`'+(_0x55173b===_0x15d5a2(0x1b8)?_0x15d5a2(0x1b1):'')),writeScopedConfig(_0xb1717e,_0x280abe),{'ok':!![]};}if(_0xb1717e[_0x566f39]===undefined)throw CliErrors[_0x15d5a2(0x1d1)](_0x15d5a2(0x1d4)+_0x566f39+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0xb1717e[_0x566f39],console['log'](_0x15d5a2(0x1c5)+_0x566f39+'`'+(_0x55173b==='global'?'\x20(global)':'')),writeScopedConfig(_0xb1717e,_0x280abe),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a23_0x5af9(_0x53de56,_0x4c253a){_0x53de56=_0x53de56-0xf5;var _0x5b25cc=a23_0x5b25();var _0x5af99a=_0x5b25cc[_0x53de56];return _0x5af99a;}(function(_0x13edff,_0x5d669c){var _0x232e8f=a23_0x5af9,_0x1f1659=_0x13edff();while(!![]){try{var _0x5d6ae4=-parseInt(_0x232e8f(0x100))/0x1*(parseInt(_0x232e8f(0xfb))/0x2)+parseInt(_0x232e8f(0xf7))/0x3+-parseInt(_0x232e8f(0xf5))/0x4*(parseInt(_0x232e8f(0xfc))/0x5)+-parseInt(_0x232e8f(0xf9))/0x6*(parseInt(_0x232e8f(0xf6))/0x7)+parseInt(_0x232e8f(0xf8))/0x8+-parseInt(_0x232e8f(0xfa))/0x9*(-parseInt(_0x232e8f(0xfd))/0xa)+parseInt(_0x232e8f(0xff))/0xb*(parseInt(_0x232e8f(0xfe))/0xc);if(_0x5d6ae4===_0x5d669c)break;else _0x1f1659['push'](_0x1f1659['shift']());}catch(_0x47b80b){_0x1f1659['push'](_0x1f1659['shift']());}}}(a23_0x5b25,0xaa80d));import{CLI_BIN_NAME}from'../../constant/cli.js';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';function a23_0x5b25(){var _0x36a474=['3118023kQSLmA','1629240ndzxVn','729546NXHrBh','3402DOpZdB','8594xBkifo','5vzbCGs','13140TjHkKB','1252344HzzvSh','132KgrSGL','188DQyeGw','1079620QyaUyq','70XamPTL'];a23_0x5b25=function(){return _0x36a474;};return a23_0x5b25();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a24_0x108d92=a24_0x4fcd;(function(_0x2d1d48,_0x176bd1){const _0x3786d3=a24_0x4fcd,_0x55bea9=_0x2d1d48();while(!![]){try{const _0x26b95d=-parseInt(_0x3786d3(0x169))/0x1*(parseInt(_0x3786d3(0x12e))/0x2)+-parseInt(_0x3786d3(0x16f))/0x3*(-parseInt(_0x3786d3(0x170))/0x4)+parseInt(_0x3786d3(0x148))/0x5+parseInt(_0x3786d3(0x147))/0x6+-parseInt(_0x3786d3(0x15c))/0x7+-parseInt(_0x3786d3(0x121))/0x8*(-parseInt(_0x3786d3(0x165))/0x9)+-parseInt(_0x3786d3(0x140))/0xa;if(_0x26b95d===_0x176bd1)break;else _0x55bea9['push'](_0x55bea9['shift']());}catch(_0x13e005){_0x55bea9['push'](_0x55bea9['shift']());}}}(a24_0x13ed,0x70228));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a24_0x13ed(){const _0x1226d2=['Filter\x20dataset\x20records\x20with\x20query\x20conditions','risk','\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]','body','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','8TCSBVz','build','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','write','\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\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','length','paramsHint','\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\x20AGGREGATE\x20TYPES','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','data\x20','Get\x20a\x20single\x20record\x20by\x20ID','batchCreate','params','Preview:\x20data\x20','data','3592730XDlGtu','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\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}','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','\x20completed\x20in\x20','\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\x20EXAMPLES','4078878dImfpz','2027090dQQaSm','aggregate','code','\x20\x20LOGICAL\x20COMBINATORS','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','batch','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\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}}','description','getOne','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','helpExtra','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','now','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','\x20\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}','read','delete','\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]','883624yhDYgD','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','create','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','map','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20WHERE\x20OPERATORS','\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\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','27LyHOTV','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]','\x20\x20\x20\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}','POST','222529HKUKdm','\x20\x20PAGINATION','\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]}}','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','2463CyCNbr','3084xHIAJb','\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}}','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\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}}','command','Update\x20an\x20existing\x20record','str','update','\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}}','filter','311208uDffAi','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','paramsRequired','operation','join','\x20\x20PARAMS\x20STRUCTURE'];a24_0x13ed=function(){return _0x1226d2;};return a24_0x13ed();}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_0x4fcd(_0x6725be,_0x55edc0){_0x6725be=_0x6725be-0x119;const _0x13edc3=a24_0x13ed();let _0x4fcde7=_0x13edc3[_0x6725be];return _0x4fcde7;}const specs=[{'command':'filter','operation':a24_0x108d92(0x120),'risk':a24_0x108d92(0x159),'paramsRequired':![],'description':a24_0x108d92(0x128),'paramsHint':a24_0x108d92(0x12d)+a24_0x108d92(0x172),'helpExtra':[a24_0x108d92(0x162),a24_0x108d92(0x11a),a24_0x108d92(0x14f),'\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_0x108d92(0x11f),'\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}}',a24_0x108d92(0x171),a24_0x108d92(0x16b),'\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\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}',a24_0x108d92(0x131),'',a24_0x108d92(0x14b),a24_0x108d92(0x137),'\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_0x108d92(0x164),a24_0x108d92(0x16d),a24_0x108d92(0x12a),a24_0x108d92(0x163),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)',a24_0x108d92(0x119),'',a24_0x108d92(0x16a),a24_0x108d92(0x153),a24_0x108d92(0x130),a24_0x108d92(0x123)][a24_0x108d92(0x126)]('\x0a')},{'command':a24_0x108d92(0x151),'operation':a24_0x108d92(0x151),'risk':a24_0x108d92(0x159),'paramsRequired':!![],'description':a24_0x108d92(0x13b),'paramsHint':a24_0x108d92(0x12c)},{'command':'create','operation':a24_0x108d92(0x15e),'risk':a24_0x108d92(0x132),'paramsRequired':!![],'description':'Create\x20a\x20new\x20record\x20in\x20a\x20dataset','paramsHint':'JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27'},{'command':a24_0x108d92(0x13c),'operation':'batchCreate','risk':a24_0x108d92(0x132),'paramsRequired':!![],'description':a24_0x108d92(0x15f),'paramsHint':a24_0x108d92(0x15d)},{'command':'update','operation':'update','risk':a24_0x108d92(0x132),'paramsRequired':!![],'description':a24_0x108d92(0x11c),'paramsHint':a24_0x108d92(0x152)+a24_0x108d92(0x143)},{'command':'delete','operation':a24_0x108d92(0x15a),'risk':'high-risk-write','paramsRequired':!![],'description':a24_0x108d92(0x141),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a24_0x108d92(0x149),'operation':a24_0x108d92(0x149),'risk':a24_0x108d92(0x159),'paramsRequired':![],'description':a24_0x108d92(0x14c),'paramsHint':a24_0x108d92(0x122)+a24_0x108d92(0x16c),'helpExtra':[a24_0x108d92(0x138),'\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\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}',a24_0x108d92(0x167),a24_0x108d92(0x133),a24_0x108d92(0x142),a24_0x108d92(0x158),a24_0x108d92(0x157),'',a24_0x108d92(0x127),a24_0x108d92(0x15b),'\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)',a24_0x108d92(0x161),a24_0x108d92(0x166),a24_0x108d92(0x134),'',a24_0x108d92(0x146),a24_0x108d92(0x14e),a24_0x108d92(0x139),'',a24_0x108d92(0x155),a24_0x108d92(0x145),'',a24_0x108d92(0x16e)][a24_0x108d92(0x126)]('\x0a')}];function makeDataCommand(_0x3f3dc3){const _0x149e32=a24_0x108d92,_0x46af54='data\x20'+_0x3f3dc3[_0x149e32(0x11b)],_0x3c0e35={'service':_0x149e32(0x13f),'command':_0x3f3dc3['command'],'description':_0x3f3dc3[_0x149e32(0x150)],'risk':_0x3f3dc3[_0x149e32(0x129)],'helpExtra':_0x3f3dc3[_0x149e32(0x154)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x3f3dc3[_0x149e32(0x136)]}],'validate':async _0x3cb6e5=>{const _0x22d345=_0x149e32;_0x3f3dc3[_0x22d345(0x124)]&&requireAnyOf(_0x3cb6e5,[_0x22d345(0x13d)],_0x46af54),_0x3f3dc3[_0x22d345(0x125)]===_0x22d345(0x13c)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3cb6e5[_0x22d345(0x11d)]('params'))),_0x3f3dc3[_0x22d345(0x125)]==='update'&&parseUpdateIdsFromParams(parseJsonParams(_0x3cb6e5['str']('params'))??{});},async 'execute'(_0x5421d3){const _0x12a706=_0x149e32,_0x224810=_0x5421d3[_0x12a706(0x11d)](_0x12a706(0x14a)),_0x3625b5=_0x3f3dc3[_0x12a706(0x125)]===_0x12a706(0x13c)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5421d3[_0x12a706(0x11d)](_0x12a706(0x13d)))):parseJsonParams(_0x5421d3['str'](_0x12a706(0x13d)))??{},_0x349db5=_0x3f3dc3[_0x12a706(0x125)]===_0x12a706(0x11e)?parseUpdateIdsFromParams(_0x3625b5):undefined,_0x3ea466=_0x349db5?normalizeUpdateParamsForRuntime(_0x3625b5,_0x349db5):_0x3625b5,_0x945cd9=Date[_0x12a706(0x156)](),_0x50e666=await executeData(_0x224810,_0x3f3dc3['operation'],_0x3ea466),_0x960f38=Date[_0x12a706(0x156)]()-_0x945cd9,_0x5993f9=_0x349db5&&_0x349db5['length']>0x1?buildBatchUpdateResult(_0x349db5,_0x50e666):_0x50e666;return{'ok':!![],'data':{'result':_0x5993f9,'elapsed':_0x960f38},'message':_0x12a706(0x13a)+_0x3f3dc3['command']+_0x12a706(0x144)+_0x960f38+'ms'};}};return _0x3f3dc3['risk']!==_0x149e32(0x159)&&(_0x3c0e35['dryRun']=async _0xb1e42b=>{const _0x267d49=_0x149e32,_0x5355a1=_0xb1e42b[_0x267d49(0x11d)](_0x267d49(0x14a)),_0x2b3a1c=_0x3f3dc3[_0x267d49(0x125)]===_0x267d49(0x13c)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0xb1e42b[_0x267d49(0x11d)](_0x267d49(0x13d)))):parseJsonParams(_0xb1e42b['str']('params'))??{};let _0x520c82=_0x2b3a1c;if(_0x3f3dc3[_0x267d49(0x125)]===_0x267d49(0x11e)){const _0x4e2798=parseUpdateIdsFromParams(_0x2b3a1c);_0x520c82=normalizeUpdateParamsForRuntime(_0x2b3a1c,_0x4e2798);}return dryRun(_0x267d49(0x168),'/api/{appCode}/'+_0x5355a1+'/'+_0x3f3dc3[_0x267d49(0x125)])[_0x267d49(0x12b)](_0x520c82)[_0x267d49(0x150)](_0x267d49(0x13e)+_0x3f3dc3['command']+'\x20on\x20dataset\x20'+_0x5355a1)[_0x267d49(0x12f)]();}),_0x3c0e35;}export const dataDefinitions=specs[a24_0x108d92(0x160)](makeDataCommand);function buildBatchUpdateResult(_0x26db98,_0x5ba662){const _0x25885d=a24_0x108d92;return{'operation':_0x25885d(0x11e),'mode':_0x25885d(0x14d),'ids':_0x26db98,'total':_0x26db98[_0x25885d(0x135)],'result':_0x5ba662};}
|
|
1
|
+
const a24_0x297ef2=a24_0x1dfc;function a24_0x1dfc(_0x47c423,_0x626c63){_0x47c423=_0x47c423-0x13e;const _0x38879a=a24_0x3887();let _0x1dfc00=_0x38879a[_0x47c423];return _0x1dfc00;}(function(_0x4a1fae,_0x26c650){const _0x399b71=a24_0x1dfc,_0x1f325e=_0x4a1fae();while(!![]){try{const _0x17e590=-parseInt(_0x399b71(0x18c))/0x1+parseInt(_0x399b71(0x150))/0x2*(parseInt(_0x399b71(0x162))/0x3)+parseInt(_0x399b71(0x152))/0x4+parseInt(_0x399b71(0x17a))/0x5+parseInt(_0x399b71(0x191))/0x6*(-parseInt(_0x399b71(0x158))/0x7)+parseInt(_0x399b71(0x16e))/0x8*(parseInt(_0x399b71(0x165))/0x9)+-parseInt(_0x399b71(0x181))/0xa;if(_0x17e590===_0x26c650)break;else _0x1f325e['push'](_0x1f325e['shift']());}catch(_0x26cf81){_0x1f325e['push'](_0x1f325e['shift']());}}}(a24_0x3887,0x2ca1e));import{executeData}from'../../core/sdk-client.js';function a24_0x3887(){const _0x187e1e=['getOne','operation','update','87486HQFjrC','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','delete','batch','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','data\x20','params','Filter\x20dataset\x20records\x20with\x20query\x20conditions','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','8538RKHXNN','helpExtra','join','18UjiGpj','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\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\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}','Update\x20an\x20existing\x20record','\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\x20WHERE\x20OPERATORS','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','str','787256nzKmem','\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}','paramsHint','length','\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}}','body','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20AGGREGATE\x20TYPES','paramsRequired','dryRun','map','POST','1412260NpEqbD','now','batchCreate','build','filter','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','\x20\x20\x20\x20$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}}','3924600WEoPfk','\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}','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','\x20\x20LOGICAL\x20COMBINATORS','\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}}','Get\x20a\x20single\x20record\x20by\x20ID','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','risk','\x20\x20PARAMS\x20STRUCTURE','125125KftJJy','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20on\x20dataset\x20','\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\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','120JnfUKs','read','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','\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\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}','create','command','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','high-risk-write','aggregate','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','\x20\x20\x20\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\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]','\x20\x20EXAMPLES','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','description','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','Preview:\x20data\x20','166nxAZmO','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','939500BOTiSG','\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}','write'];a24_0x3887=function(){return _0x187e1e;};return a24_0x3887();}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';const specs=[{'command':a24_0x297ef2(0x17e),'operation':a24_0x297ef2(0x17e),'risk':a24_0x297ef2(0x13e),'paramsRequired':![],'description':a24_0x297ef2(0x15f),'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20'+a24_0x297ef2(0x14c),'helpExtra':[a24_0x297ef2(0x16b),'\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_0x297ef2(0x172),a24_0x297ef2(0x148),a24_0x297ef2(0x167),a24_0x297ef2(0x187),a24_0x297ef2(0x17f),'\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}',a24_0x297ef2(0x180),'',a24_0x297ef2(0x186),'\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','\x20\x20\x20\x20$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_0x297ef2(0x174),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)',a24_0x297ef2(0x16a),a24_0x297ef2(0x140),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','','\x20\x20PAGINATION',a24_0x297ef2(0x185),a24_0x297ef2(0x159),a24_0x297ef2(0x14e)][a24_0x297ef2(0x164)]('\x0a')},{'command':a24_0x297ef2(0x155),'operation':a24_0x297ef2(0x155),'risk':a24_0x297ef2(0x13e),'paramsRequired':!![],'description':a24_0x297ef2(0x188),'paramsHint':a24_0x297ef2(0x144)},{'command':a24_0x297ef2(0x142),'operation':'create','risk':a24_0x297ef2(0x154),'paramsRequired':!![],'description':a24_0x297ef2(0x151),'paramsHint':a24_0x297ef2(0x184)},{'command':a24_0x297ef2(0x17c),'operation':a24_0x297ef2(0x17c),'risk':a24_0x297ef2(0x154),'paramsRequired':!![],'description':a24_0x297ef2(0x183),'paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':a24_0x297ef2(0x157),'operation':'update','risk':a24_0x297ef2(0x154),'paramsRequired':!![],'description':a24_0x297ef2(0x169),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20'+'Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27'},{'command':a24_0x297ef2(0x15a),'operation':a24_0x297ef2(0x15a),'risk':a24_0x297ef2(0x146),'paramsRequired':!![],'description':a24_0x297ef2(0x15c),'paramsHint':a24_0x297ef2(0x144)},{'command':'aggregate','operation':a24_0x297ef2(0x147),'risk':a24_0x297ef2(0x13e),'paramsRequired':![],'description':a24_0x297ef2(0x16c),'paramsHint':a24_0x297ef2(0x166)+a24_0x297ef2(0x160),'helpExtra':[a24_0x297ef2(0x175),a24_0x297ef2(0x153),a24_0x297ef2(0x168),a24_0x297ef2(0x16f),a24_0x297ef2(0x149),a24_0x297ef2(0x18f),a24_0x297ef2(0x141),a24_0x297ef2(0x182),'',a24_0x297ef2(0x18b),'\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]',a24_0x297ef2(0x190),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)',a24_0x297ef2(0x18d),a24_0x297ef2(0x14a),a24_0x297ef2(0x145),'',a24_0x297ef2(0x14b),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\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','',a24_0x297ef2(0x189),'\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','',a24_0x297ef2(0x13f)][a24_0x297ef2(0x164)]('\x0a')}];function makeDataCommand(_0x1beb45){const _0x2c015f=a24_0x297ef2,_0x4bb555=_0x2c015f(0x15d)+_0x1beb45[_0x2c015f(0x143)],_0x1fda6a={'service':'data','command':_0x1beb45[_0x2c015f(0x143)],'description':_0x1beb45[_0x2c015f(0x14d)],'risk':_0x1beb45[_0x2c015f(0x18a)],'helpExtra':_0x1beb45[_0x2c015f(0x163)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x1beb45[_0x2c015f(0x170)]}],'validate':async _0x809ccf=>{const _0x3b57e4=_0x2c015f;_0x1beb45[_0x3b57e4(0x176)]&&requireAnyOf(_0x809ccf,['params'],_0x4bb555),_0x1beb45[_0x3b57e4(0x156)]===_0x3b57e4(0x17c)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x809ccf[_0x3b57e4(0x16d)](_0x3b57e4(0x15e)))),_0x1beb45[_0x3b57e4(0x156)]==='update'&&parseUpdateIdsFromParams(parseJsonParams(_0x809ccf[_0x3b57e4(0x16d)](_0x3b57e4(0x15e)))??{});},async 'execute'(_0x2c878a){const _0x5a1102=_0x2c015f,_0x120bec=_0x2c878a[_0x5a1102(0x16d)]('code'),_0x805ad7=_0x1beb45[_0x5a1102(0x156)]===_0x5a1102(0x17c)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2c878a[_0x5a1102(0x16d)](_0x5a1102(0x15e)))):parseJsonParams(_0x2c878a['str'](_0x5a1102(0x15e)))??{},_0x39d3df=_0x1beb45['operation']===_0x5a1102(0x157)?parseUpdateIdsFromParams(_0x805ad7):undefined,_0x423d03=_0x39d3df?normalizeUpdateParamsForRuntime(_0x805ad7,_0x39d3df):_0x805ad7,_0x2324dd=Date[_0x5a1102(0x17b)](),_0x41b533=await executeData(_0x120bec,_0x1beb45['operation'],_0x423d03),_0x4af086=Date['now']()-_0x2324dd,_0x5008f8=_0x39d3df&&_0x39d3df[_0x5a1102(0x171)]>0x1?buildBatchUpdateResult(_0x39d3df,_0x41b533):_0x41b533;return{'ok':!![],'data':{'result':_0x5008f8,'elapsed':_0x4af086},'message':_0x5a1102(0x15d)+_0x1beb45['command']+_0x5a1102(0x161)+_0x4af086+'ms'};}};return _0x1beb45[_0x2c015f(0x18a)]!==_0x2c015f(0x13e)&&(_0x1fda6a[_0x2c015f(0x177)]=async _0x2d1741=>{const _0x1d36e4=_0x2c015f,_0x415aca=_0x2d1741[_0x1d36e4(0x16d)]('code'),_0x7e7282=_0x1beb45[_0x1d36e4(0x156)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2d1741[_0x1d36e4(0x16d)](_0x1d36e4(0x15e)))):parseJsonParams(_0x2d1741[_0x1d36e4(0x16d)](_0x1d36e4(0x15e)))??{};let _0x441adb=_0x7e7282;if(_0x1beb45[_0x1d36e4(0x156)]==='update'){const _0x9111fd=parseUpdateIdsFromParams(_0x7e7282);_0x441adb=normalizeUpdateParamsForRuntime(_0x7e7282,_0x9111fd);}return dryRun(_0x1d36e4(0x179),'/api/{appCode}/'+_0x415aca+'/'+_0x1beb45[_0x1d36e4(0x156)])[_0x1d36e4(0x173)](_0x441adb)[_0x1d36e4(0x14d)](_0x1d36e4(0x14f)+_0x1beb45[_0x1d36e4(0x143)]+_0x1d36e4(0x18e)+_0x415aca)[_0x1d36e4(0x17d)]();}),_0x1fda6a;}export const dataDefinitions=specs[a24_0x297ef2(0x178)](makeDataCommand);function buildBatchUpdateResult(_0x3f003b,_0x59b004){const _0x24a432=a24_0x297ef2;return{'operation':_0x24a432(0x157),'mode':_0x24a432(0x15b),'ids':_0x3f003b,'total':_0x3f003b[_0x24a432(0x171)],'result':_0x59b004};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a25_0x8e28a6=a25_0x228e;(function(_0xa565b0,_0x2cd6cc){const _0xa13f92=a25_0x228e,_0x552bf6=_0xa565b0();while(!![]){try{const _0xb672e1=-parseInt(_0xa13f92(0x12d))/0x1*(-parseInt(_0xa13f92(0x14c))/0x2)+-parseInt(_0xa13f92(0x124))/0x3+parseInt(_0xa13f92(0x111))/0x4*(parseInt(_0xa13f92(0x13a))/0x5)+-parseInt(_0xa13f92(0x129))/0x6*(-parseInt(_0xa13f92(0x11f))/0x7)+parseInt(_0xa13f92(0x10a))/0x8*(-parseInt(_0xa13f92(0x12a))/0x9)+-parseInt(_0xa13f92(0x10e))/0xa*(parseInt(_0xa13f92(0x133))/0xb)+-parseInt(_0xa13f92(0x119))/0xc*(-parseInt(_0xa13f92(0x114))/0xd);if(_0xb672e1===_0x2cd6cc)break;else _0x552bf6['push'](_0x552bf6['shift']());}catch(_0x1f54df){_0x552bf6['push'](_0x552bf6['shift']());}}}(a25_0x4eb7,0x3dedc));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x14e2c9){const _0x246254=a25_0x228e;if(_0x14e2c9[_0x246254(0x117)])return null;const _0x3c1ccb=Boolean(_0x14e2c9[_0x246254(0x135)]!==undefined||_0x14e2c9[_0x246254(0x105)]!==undefined);let _0x532d6e={};if(!_0x3c1ccb&&typeof _0x14e2c9[_0x246254(0x118)]==='string')try{_0x532d6e=JSON[_0x246254(0x13b)](_0x14e2c9[_0x246254(0x118)]);}catch{}const _0xc614f7=_0x3c1ccb?_0x14e2c9['name']:_0x14e2c9[_0x246254(0x13c)],_0x327bc4=_0x3c1ccb?_0x14e2c9[_0x246254(0x135)]:_0x14e2c9['name'],_0x10971a=_0x3c1ccb?_0x14e2c9[_0x246254(0x105)]:_0x14e2c9[_0x246254(0x13d)]||_0x14e2c9[_0x246254(0x139)],_0x2524c0=_0x3c1ccb?_0x14e2c9[_0x246254(0x127)]===!![]:_0x532d6e[_0x246254(0x127)]===!![],_0x27b7f3=_0x3c1ccb?_0x14e2c9[_0x246254(0x123)]===!![]:_0x532d6e[_0x246254(0x123)]===!![],_0x24f105=_0x3c1ccb?_0x14e2c9[_0x246254(0x148)]??null:_0x532d6e[_0x246254(0x148)]??null,_0x1e8c60={'name':_0xc614f7,'displayName':_0x327bc4||_0xc614f7,'type':_0x10971a,'dbType':_0x14e2c9[_0x246254(0x125)],'pk':_0x2524c0,'required':_0x27b7f3,'description':_0x14e2c9[_0x246254(0x126)]||undefined};return Array[_0x246254(0x10d)](_0x24f105)&&_0x24f105[_0x246254(0x11c)]>0x0&&(_0x1e8c60[_0x246254(0x148)]=_0x24f105),_0x1e8c60;}function a25_0x228e(_0x2a1350,_0x4f8dbb){_0x2a1350=_0x2a1350-0x104;const _0x4eb764=a25_0x4eb7();let _0x228e60=_0x4eb764[_0x2a1350];return _0x228e60;}function parseJsonMaybe(_0x3672df){const _0x23f05c=a25_0x228e;if(typeof _0x3672df!==_0x23f05c(0x136))return _0x3672df;try{return JSON[_0x23f05c(0x13b)](_0x3672df);}catch{return _0x3672df;}}function normalizeOperationEntry(_0x298725,_0x125423){const _0x1b6f25=a25_0x228e;if(!_0x125423||typeof _0x125423!==_0x1b6f25(0x116))return null;if(!_0x125423[_0x1b6f25(0x147)]||!_0x125423[_0x1b6f25(0x108)])return null;const _0x353c2e={'name':_0x298725,'method':_0x125423[_0x1b6f25(0x147)],'path':_0x125423[_0x1b6f25(0x108)]};if(_0x125423[_0x1b6f25(0x128)])_0x353c2e['host']=_0x125423[_0x1b6f25(0x128)];if(_0x125423[_0x1b6f25(0x137)]!=null)_0x353c2e[_0x1b6f25(0x137)]=parseJsonMaybe(_0x125423['requestBody']);if(_0x125423['responseBody']!=null)_0x353c2e[_0x1b6f25(0x110)]=parseJsonMaybe(_0x125423[_0x1b6f25(0x110)]);if(_0x125423['beforeScriptId']!=null)_0x353c2e[_0x1b6f25(0x121)]=_0x125423[_0x1b6f25(0x121)];if(_0x125423[_0x1b6f25(0x138)]!=null)_0x353c2e[_0x1b6f25(0x138)]=_0x125423['afterScriptId'];if(Array[_0x1b6f25(0x10d)](_0x125423[_0x1b6f25(0x130)]))_0x353c2e[_0x1b6f25(0x130)]=_0x125423[_0x1b6f25(0x130)];if(Array[_0x1b6f25(0x10d)](_0x125423[_0x1b6f25(0x11b)]))_0x353c2e[_0x1b6f25(0x11b)]=_0x125423['responseFields'];return _0x353c2e;}function summarizeDbtable(_0x1f4f25){const _0x5e4921=a25_0x228e,_0x12aea1={},_0x5c9bce=['dbId','dbName','tableName','datasetKey',_0x5e4921(0x127),_0x5e4921(0x109),'logicField','createTimeField','updateTimeField',_0x5e4921(0x11a),'creatorNameField',_0x5e4921(0x149),_0x5e4921(0x11e),_0x5e4921(0x144),'dblinkInfoDTO'];for(const _0x302154 of _0x5c9bce){if(_0x1f4f25[_0x302154]!==undefined)_0x12aea1[_0x302154]=_0x1f4f25[_0x302154];}return typeof _0x12aea1[_0x5e4921(0x109)]===_0x5e4921(0x136)&&_0x12aea1['allFields'][_0x5e4921(0x11c)]>0x0&&(_0x12aea1[_0x5e4921(0x146)]=_0x12aea1[_0x5e4921(0x109)][_0x5e4921(0x13e)](',')['map'](_0x3b615=>_0x3b615['trim']())['filter'](Boolean)),_0x12aea1;}function normalizeRelatedPages(_0x24bedf){const _0x1842c7=a25_0x228e;if(!Array[_0x1842c7(0x10d)](_0x24bedf))return[];return _0x24bedf[_0x1842c7(0x106)](_0x46c7ca=>_0x46c7ca&&typeof _0x46c7ca==='object')[_0x1842c7(0x13f)](_0x542a12=>({'id':_0x542a12['id'],'type':_0x542a12[_0x1842c7(0x13d)],'code':_0x542a12[_0x1842c7(0x13c)],'title':_0x542a12['title'],'deleted':_0x542a12[_0x1842c7(0x117)]===!![]}));}function normalizeFallbackFieldName(_0x508e0d,_0x59164b){const _0x3b9c24=a25_0x228e,_0x237ae4=_0x508e0d[_0x3b9c24(0x104)]();if(!_0x237ae4)return null;return{'name':_0x237ae4,'displayName':_0x237ae4,'type':undefined,'dbType':undefined,'pk':_0x237ae4===_0x59164b,'required':![],'description':undefined};}async function loadListFieldFallback(_0x182cb5,_0x3e4ad9){const _0x35e25b=a25_0x228e;if(!_0x182cb5||!_0x3e4ad9)return[];try{const _0x1b79e0=await listDatasets(_0x182cb5,{'code':_0x3e4ad9}),_0x25037d=_0x1b79e0[_0x35e25b(0x14a)](_0x4f0410=>_0x4f0410[_0x35e25b(0x13c)]===_0x3e4ad9)??_0x1b79e0[0x0],_0x239250=_0x25037d?.[_0x35e25b(0x14d)]??{},_0x4a34a9=typeof _0x239250['allFields']===_0x35e25b(0x136)?_0x239250[_0x35e25b(0x109)][_0x35e25b(0x13e)](','):[];return _0x4a34a9[_0x35e25b(0x13f)](_0x1c6e7b=>normalizeFallbackFieldName(_0x1c6e7b,_0x239250[_0x35e25b(0x127)]))['filter'](_0x51a15e=>_0x51a15e!==null);}catch{return[];}}export const datasetDetail={'service':a25_0x8e28a6(0x12f),'command':a25_0x8e28a6(0x140),'description':a25_0x8e28a6(0x132),'risk':a25_0x8e28a6(0x10b),'flags':[CODE_FLAG],async 'execute'(_0x4258d7){const _0x5c4eb7=a25_0x8e28a6,_0x47731c=await getDatasetDetail(_0x4258d7['str']('code')),_0x5035b0=Array[_0x5c4eb7(0x10d)](_0x47731c['fields'])?_0x47731c[_0x5c4eb7(0x143)]:Array[_0x5c4eb7(0x10d)](_0x47731c[_0x5c4eb7(0x12b)])?_0x47731c[_0x5c4eb7(0x12b)]:[];let _0x525862=_0x5035b0[_0x5c4eb7(0x13f)](_0x302318=>normalizeField(_0x302318))[_0x5c4eb7(0x106)](_0x4f574d=>_0x4f574d!==null);_0x525862[_0x5c4eb7(0x11c)]===0x0&&(_0x525862=await loadListFieldFallback(_0x4258d7[_0x5c4eb7(0x120)],_0x4258d7[_0x5c4eb7(0x12c)](_0x5c4eb7(0x13c))));const _0xbea1dd=_0x47731c[_0x5c4eb7(0x145)]??{},_0x414edf=[];for(const [_0x1bb28b,_0x24f565]of Object['entries'](_0xbea1dd)){const _0x38ea78=normalizeOperationEntry(_0x1bb28b,_0x24f565);if(_0x38ea78)_0x414edf[_0x5c4eb7(0x112)](_0x38ea78);}const _0x998319=_0x47731c[_0x5c4eb7(0x14d)]??{},_0x29e7dc=_0x47731c['dataset']??{},_0x4507f9=_0x998319[_0x5c4eb7(0x10f)]!=null?{'id':_0x998319['dbId'],'name':_0x998319[_0x5c4eb7(0x10c)]??null}:undefined;let _0x4483e6;return typeof _0x47731c['extend']===_0x5c4eb7(0x136)&&(_0x4483e6=parseJsonMaybe(_0x47731c[_0x5c4eb7(0x118)])),{'ok':!![],'data':{'id':_0x47731c[_0x5c4eb7(0x113)]??_0x47731c['id'],'name':_0x47731c[_0x5c4eb7(0x115)],'code':_0x47731c[_0x5c4eb7(0x131)]||_0x47731c[_0x5c4eb7(0x13c)],'doVersion':_0x47731c[_0x5c4eb7(0x14e)],'description':_0x47731c[_0x5c4eb7(0x126)]||_0x29e7dc[_0x5c4eb7(0x12e)]||undefined,'source':_0x47731c[_0x5c4eb7(0x11d)]||_0x29e7dc['sourceType'],'table':_0x998319['tableName']||_0x29e7dc[_0x5c4eb7(0x107)],'datasetKey':_0x998319['datasetKey'],'pk':_0x998319[_0x5c4eb7(0x127)],'db':_0x4507f9,'dbtable':summarizeDbtable(_0x998319),'fields':_0x525862,'operations':_0x414edf,'indexes':Array[_0x5c4eb7(0x10d)](_0x29e7dc[_0x5c4eb7(0x122)])?_0x29e7dc[_0x5c4eb7(0x122)]:[],'relations':_0x47731c[_0x5c4eb7(0x141)]??null,'relatedPages':normalizeRelatedPages(_0x47731c['relatedPageInfoList']),...Array['isArray'](_0x47731c['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x47731c[_0x5c4eb7(0x142)]}:{},'formatRules':Array['isArray'](_0x47731c[_0x5c4eb7(0x14b)])?_0x47731c[_0x5c4eb7(0x14b)]:[],'validateRules':Array[_0x5c4eb7(0x10d)](_0x47731c[_0x5c4eb7(0x134)])?_0x47731c['validateRules']:[],..._0x4483e6!==undefined?{'extend':_0x4483e6}:{},'stats':{'fieldCount':_0x525862['length'],'operationCount':_0x414edf['length']}}};}};function a25_0x4eb7(){const _0x1a19b8=['140iHEeok','dbtableConfig','doVersion','trim','doType','filter','tableName','path','allFields','1224AAfzeZ','read','dbName','isArray','2189830goNWCE','dbId','responseBody','476RPrGzF','push','modelId','26AvGgdc','name','object','deleted','extend','444936hwZfzy','creatorIdField','responseFields','length','source','modifierNameField','1043NgpctC','appCode','beforeScriptId','indexes','required','1384575VAjDDu','dbType','description','pkField','host','16908cnwbti','1557genIPK','properties','str','5576VFceqF','tableComment','dataset','requestFields','modelCode','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','11UmGgjw','validateRules','displayName','string','requestBody','afterScriptId','dataType','3205bTafPW','parse','code','type','split','map','detail','relations','columnCodeListWithDeleted','fields','labelField','operations','allFieldNames','method','options','modifierIdField','find','formatRules'];a25_0x4eb7=function(){return _0x1a19b8;};return a25_0x4eb7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xf5162d,_0x17a2e1){const _0x52a421=a26_0x458a,_0x290dba=_0xf5162d();while(!![]){try{const _0x25e836=-parseInt(_0x52a421(0xd7))/0x1*(parseInt(_0x52a421(0xe0))/0x2)+-parseInt(_0x52a421(0xdc))/0x3+parseInt(_0x52a421(0xde))/0x4*(parseInt(_0x52a421(0xdb))/0x5)+-parseInt(_0x52a421(0xda))/0x6+parseInt(_0x52a421(0xd8))/0x7+parseInt(_0x52a421(0xe1))/0x8*(parseInt(_0x52a421(0xdd))/0x9)+parseInt(_0x52a421(0xd9))/0xa*(-parseInt(_0x52a421(0xdf))/0xb);if(_0x25e836===_0x17a2e1)break;else _0x290dba['push'](_0x290dba['shift']());}catch(_0x51abe4){_0x290dba['push'](_0x290dba['shift']());}}}(a26_0x5da8,0xc226c));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a26_0x5da8(){const _0xdbb972=['142677mPyWnH','51796AwbsUn','33WfaqkA','249902XdhOrW','488BcTGTf','5LmXfVv','10517780kPToji','2425080tJWKSX','2604294DvafVG','105bZFlFy','479790ufOIOb'];a26_0x5da8=function(){return _0xdbb972;};return a26_0x5da8();}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a26_0x458a(_0x1ab6b0,_0x53acd){_0x1ab6b0=_0x1ab6b0-0xd7;const _0x5da86e=a26_0x5da8();let _0x458a8e=_0x5da86e[_0x1ab6b0];return _0x458a8e;}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a27_0x1accff=a27_0x159e;(function(_0x410a91,_0x4bc270){const _0x2e1174=a27_0x159e,_0x2d3fe4=_0x410a91();while(!![]){try{const _0x27d8b8=parseInt(_0x2e1174(0xd5))/0x1*(parseInt(_0x2e1174(0xe1))/0x2)+-parseInt(_0x2e1174(0xd0))/0x3*(parseInt(_0x2e1174(0xdc))/0x4)+parseInt(_0x2e1174(0xd2))/0x5+-parseInt(_0x2e1174(0xd9))/0x6+parseInt(_0x2e1174(0xe5))/0x7*(-parseInt(_0x2e1174(0xe3))/0x8)+-parseInt(_0x2e1174(0xdd))/0x9*(-parseInt(_0x2e1174(0xde))/0xa)+parseInt(_0x2e1174(0xe8))/0xb;if(_0x27d8b8===_0x4bc270)break;else _0x2d3fe4['push'](_0x2d3fe4['shift']());}catch(_0x4a3b62){_0x2d3fe4['push'](_0x2d3fe4['shift']());}}}(a27_0x2115,0xd2474));import{listDatasets}from'../../core/api-client.js';function a27_0x159e(_0x16d125,_0x2b2f3a){_0x16d125=_0x16d125-0xce;const _0x2115c7=a27_0x2115();let _0x159e7e=_0x2115c7[_0x16d125];return _0x159e7e;}import{CODE_FLAG}from'../../commands/common/flags.js';function a27_0x2115(){const _0x21b831=['2eXdvtO','list','24tZEMpb','name','2351132nOztTU','trim','allFields','2854214GIFezU','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','source','21pYHwOj','split','5275425nnIowt','description','string','1193840IDceht','map','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','6501210QHLxwS','code','length','237580jmQKUg','801RRXsoH','96610HPTAZz','str','appCode'];a27_0x2115=function(){return _0x21b831;};return a27_0x2115();}export const datasetList={'service':'dataset','command':a27_0x1accff(0xe2),'description':a27_0x1accff(0xd7),'risk':'read','flags':[{'name':a27_0x1accff(0xe4),'type':a27_0x1accff(0xd4),'description':a27_0x1accff(0xd8)},{...CODE_FLAG,'required':![],'description':a27_0x1accff(0xce)}],async 'execute'(_0x2cc06c){const _0x1e62d1=a27_0x1accff,_0x1c750e=_0x2cc06c['str']('name'),_0x1ed151=_0x2cc06c[_0x1e62d1(0xdf)](_0x1e62d1(0xda)),_0xc69fcd=await listDatasets(_0x2cc06c[_0x1e62d1(0xe0)],{..._0x1c750e&&{'name':_0x1c750e},..._0x1ed151&&{'code':_0x1ed151}});return{'ok':!![],'data':{'total':_0xc69fcd[_0x1e62d1(0xdb)],'datasets':_0xc69fcd['map'](_0x304256=>{const _0x4a87a7=_0x1e62d1,_0x4055e1=_0x304256['dbtableConfig']??{};return{'id':_0x304256['id'],'code':_0x304256[_0x4a87a7(0xda)],'name':_0x304256[_0x4a87a7(0xe4)],'source':_0x304256[_0x4a87a7(0xcf)],'description':_0x304256[_0x4a87a7(0xd3)],'table':_0x4055e1['tableName'],'datasetKey':_0x4055e1['datasetKey'],'pk':_0x4055e1['pkField'],'fields':_0x4055e1['allFields']?_0x4055e1[_0x4a87a7(0xe7)][_0x4a87a7(0xd1)](',')[_0x4a87a7(0xd6)](_0x5ad49c=>_0x5ad49c[_0x4a87a7(0xe6)]()):[]};})}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a28_0x95e274=a28_0x1830;(function(_0xc5b346,_0x258d77){const _0x293f21=a28_0x1830,_0x47be50=_0xc5b346();while(!![]){try{const _0x2158a7=-parseInt(_0x293f21(0xa4))/0x1+parseInt(_0x293f21(0xa9))/0x2*(parseInt(_0x293f21(0x9c))/0x3)+parseInt(_0x293f21(0x9b))/0x4*(-parseInt(_0x293f21(0xa2))/0x5)+-parseInt(_0x293f21(0xa7))/0x6+parseInt(_0x293f21(0x99))/0x7*(-parseInt(_0x293f21(0x9e))/0x8)+-parseInt(_0x293f21(0xa1))/0x9*(-parseInt(_0x293f21(0x9f))/0xa)+parseInt(_0x293f21(0x98))/0xb;if(_0x2158a7===_0x258d77)break;else _0x47be50['push'](_0x47be50['shift']());}catch(_0x57c5bb){_0x47be50['push'](_0x47be50['shift']());}}}(a28_0x47e8,0x5ea95));function a28_0x47e8(){const _0x490a8b=['2456NvlVeU','string','4127684VrrYoO','149667JYSgkX','dataset','31976xlBaPA','1797cwQEUI','appCode','136aBCedC','10FvXCFB','trim','5455458wkwQJA','5prIzNl','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','732865eghRLy','str','code','1349454YyzZQO','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.'];a28_0x47e8=function(){return _0x490a8b;};return a28_0x47e8();}import{getDatasetSdkUsageDoc}from'../../core/api-client.js';function a28_0x1830(_0x55cbf4,_0x3f92aa){_0x55cbf4=_0x55cbf4-0x98;const _0x47e8a7=a28_0x47e8();let _0x18307b=_0x47e8a7[_0x55cbf4];return _0x18307b;}import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a28_0x95e274(0xa3);export function formatDatasetSdkMarkdown(_0x42443d){const _0x12ef09=a28_0x95e274,_0x181d36=typeof _0x42443d===_0x12ef09(0xaa)?_0x42443d[_0x12ef09(0xa0)]():'';return _0x181d36||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a28_0x95e274(0x9a),'command':'sdk-doc','description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':'read','flags':[{...CODE_FLAG,'description':a28_0x95e274(0xa8)}],async 'execute'(_0x11788f){const _0x3504c8=a28_0x95e274,_0x3f3b84=_0x11788f[_0x3504c8(0xa5)](_0x3504c8(0xa6)),_0x97f478=await getDatasetSdkUsageDoc(_0x3f3b84,_0x11788f['appCode']);return{'ok':!![],'data':{'code':_0x3f3b84,'appCode':_0x11788f[_0x3504c8(0x9d)],'markdown':formatDatasetSdkMarkdown(_0x97f478)}};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0x1cbd67=a29_0x333e;(function(_0x372094,_0x1bc71e){const _0x5721ab=a29_0x333e,_0xecd1bc=_0x372094();while(!![]){try{const _0x465273=parseInt(_0x5721ab(0xe3))/0x1+-parseInt(_0x5721ab(0xc5))/0x2+-parseInt(_0x5721ab(0xfb))/0x3*(-parseInt(_0x5721ab(0x102))/0x4)+-parseInt(_0x5721ab(0xcf))/0x5*(-parseInt(_0x5721ab(0xbe))/0x6)+-parseInt(_0x5721ab(0xef))/0x7*(parseInt(_0x5721ab(0xd4))/0x8)+-parseInt(_0x5721ab(0xf8))/0x9+-parseInt(_0x5721ab(0xca))/0xa*(parseInt(_0x5721ab(0xc0))/0xb);if(_0x465273===_0x1bc71e)break;else _0xecd1bc['push'](_0xecd1bc['shift']());}catch(_0x6a8247){_0xecd1bc['push'](_0xecd1bc['shift']());}}}(a29_0x35d1,0xc11ab));import a29_0xd2cfa0 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a29_0x35d1(){const _0x1aa816=['\x20(accessKey)','\x20\x20Auth','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20auth\x20(effective):\x20','riskLevel','message','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','273CdGSMF','bold','ClientAk','source','✓\x20Valid\x20JSON','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','10066509cqdBkC','\x20\x20Config\x20Files','defaultApp','3gJUIud','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20commands)','accessKey','padEnd','format','2085788KFeGxk','(default)','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','(none)','\x20(legacy/compat\x20only)','appCode','repeat','(not\x20set)','Global','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','Project','gray','empty','status','8117844SMwQbe','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','8327GFyJlS','\x20\x20Service\x20Tree','services','\x20\x20─','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','310060jrnyOP','locale','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','8970sRbvwP','read','missing','(no\x20file)','✗\x20Invalid','5ihfPlv','✓\x20Loaded','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20doctor','name','96568UqmonB','serviceCount','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','version','log','(removed\x20—\x20cookie\x20auth\x20disabled)','serviceCode','path','commandCount','yellow','\x20Imported\x20from:\x20','env','pageSize','(set,\x20length=','1339863OIvlic'];a29_0x35d1=function(){return _0x1aa816;};return a29_0x35d1();}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';function a29_0x333e(_0x48654f,_0x3acd13){_0x48654f=_0x48654f-0xb2;const _0x35d1fd=a29_0x35d1();let _0x333e21=_0x35d1fd[_0x48654f];return _0x333e21;}import{isLegacyCompatConfigKey}from'../config/schema.js';import{inspectServiceRegistry}from'../commands/service/registry.js';async function execute(_0x5a8baf){const _0x1ffff9=a29_0x333e,_0x6ee39f=getCliVersion(),_0x2d4db2=buildConfigFromFlags({});await initGlobalEnvironment(_0x2d4db2),console[_0x1ffff9(0xd9)](),console['log'](a29_0xd2cfa0['bold'](CLI_BIN_NAME+_0x1ffff9(0xd2))),console[_0x1ffff9(0xd9)](a29_0xd2cfa0[_0x1ffff9(0xbb)]('─'[_0x1ffff9(0xb6)](0x32))),console[_0x1ffff9(0xd9)](_0x1ffff9(0xe6)+_0x6ee39f),console[_0x1ffff9(0xd9)](_0x1ffff9(0x105)+process[_0x1ffff9(0xd8)]),console[_0x1ffff9(0xd9)](_0x1ffff9(0xfd)+process['platform']+'\x20'+process['arch']),console[_0x1ffff9(0xd9)](),console[_0x1ffff9(0xd9)](a29_0xd2cfa0[_0x1ffff9(0xf0)](_0x1ffff9(0xf9))),console[_0x1ffff9(0xd9)](a29_0xd2cfa0[_0x1ffff9(0xbb)]('\x20\x20─'[_0x1ffff9(0xb6)](0x1e)));const _0x2e35f0=getGlobalConfigPath(),_0x39dba9=getProjectConfigPath();console[_0x1ffff9(0xd9)](_0x1ffff9(0xeb)+(_0x2e35f0||a29_0xd2cfa0[_0x1ffff9(0xbb)](_0x1ffff9(0xf7)))),console['log']('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x39dba9||a29_0xd2cfa0[_0x1ffff9(0xbb)](_0x1ffff9(0xf7)))),console['log'](),console[_0x1ffff9(0xd9)](a29_0xd2cfa0[_0x1ffff9(0xf0)](_0x1ffff9(0xc9))),console['log'](a29_0xd2cfa0[_0x1ffff9(0xbb)]('\x20\x20─'['repeat'](0x1e)));const _0x565903=(_0x1794df,_0x3812d7)=>{const _0x799618=_0x1ffff9;if(!_0x3812d7){console[_0x799618(0xd9)]('\x20\x20'+_0x1794df[_0x799618(0x100)](0x11)+'\x20'+a29_0xd2cfa0[_0x799618(0xbb)](_0x799618(0xcd)));return;}const _0xf1b435=inspectCliConfigJsonFile(_0x3812d7);if(_0xf1b435[_0x799618(0xbd)]==='ok')console['log']('\x20\x20'+_0x1794df['padEnd'](0x11)+'\x20'+a29_0xd2cfa0[_0x799618(0xb2)](_0x799618(0xf3)));else{if(_0xf1b435[_0x799618(0xbd)]==='empty')console[_0x799618(0xd9)]('\x20\x20'+_0x1794df[_0x799618(0x100)](0x11)+'\x20'+a29_0xd2cfa0['yellow']('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0xf1b435['status']===_0x799618(0xcc)?console['log']('\x20\x20'+_0x1794df[_0x799618(0x100)](0x11)+'\x20'+a29_0xd2cfa0['gray']('(missing)')):(console[_0x799618(0xd9)]('\x20\x20'+_0x1794df[_0x799618(0x100)](0x11)+'\x20'+a29_0xd2cfa0[_0x799618(0xf5)]('✗\x20Invalid\x20JSON')),console[_0x799618(0xd9)]('\x20\x20'+''[_0x799618(0x100)](0x11)+'\x20'+a29_0xd2cfa0[_0x799618(0xf5)](_0xf1b435[_0x799618(0xe9)])));}};_0x565903(_0x1ffff9(0xb8),_0x2e35f0),_0x565903(_0x1ffff9(0xba),_0x39dba9),console['log'](),console['log'](a29_0xd2cfa0[_0x1ffff9(0xf0)]('\x20\x20Merged\x20Config')),console[_0x1ffff9(0xd9)](a29_0xd2cfa0[_0x1ffff9(0xbb)]('\x20\x20─'[_0x1ffff9(0xb6)](0x1e))),console['log']('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2d4db2[_0x1ffff9(0xb5)]||a29_0xd2cfa0['red'](_0x1ffff9(0xb7)))),console[_0x1ffff9(0xd9)](_0x1ffff9(0x104)+_0x2d4db2[_0x1ffff9(0xe0)]);const _0x5ef1bb=isLegacyCompatConfigKey('locale')?a29_0xd2cfa0[_0x1ffff9(0xbb)](_0x2d4db2[_0x1ffff9(0xc6)]+_0x1ffff9(0xb4)):_0x2d4db2[_0x1ffff9(0xc6)];console[_0x1ffff9(0xd9)](_0x1ffff9(0xf6)+_0x5ef1bb),console[_0x1ffff9(0xd9)](_0x1ffff9(0xed)+(_0x2d4db2[_0x1ffff9(0xfa)]||a29_0xd2cfa0['gray'](_0x1ffff9(0xb3)))),console[_0x1ffff9(0xd9)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x2d4db2['currentApp']||a29_0xd2cfa0[_0x1ffff9(0xbb)](_0x1ffff9(0xb3)))),console[_0x1ffff9(0xd9)](_0x1ffff9(0xc8)+(_0x2d4db2[_0x1ffff9(0x101)]||a29_0xd2cfa0[_0x1ffff9(0xbb)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x1ffff9(0x101)]+')'))),console['log']('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2d4db2[_0x1ffff9(0xe1)]??a29_0xd2cfa0[_0x1ffff9(0xbb)](_0x1ffff9(0x103)))),console[_0x1ffff9(0xd9)](_0x1ffff9(0xd1)+_0x2d4db2[_0x1ffff9(0xe8)]),console[_0x1ffff9(0xd9)](_0x1ffff9(0xee)+_0x2d4db2[_0x1ffff9(0xd7)]),console[_0x1ffff9(0xd9)](_0x1ffff9(0xe7)+AUTH_MODE[_0x1ffff9(0xf1)]),console['log'](_0x1ffff9(0xc4)+(_0x2d4db2[_0x1ffff9(0xff)]?a29_0xd2cfa0['green'](_0x1ffff9(0xe2)+_0x2d4db2[_0x1ffff9(0xff)][_0x1ffff9(0xec)]+')'):a29_0xd2cfa0[_0x1ffff9(0xbb)](_0x1ffff9(0xb3)))),console[_0x1ffff9(0xd9)](),console[_0x1ffff9(0xd9)](a29_0xd2cfa0[_0x1ffff9(0xf0)]('\x20\x20API\x20Endpoints')),console[_0x1ffff9(0xd9)](a29_0xd2cfa0['gray'](_0x1ffff9(0xc3)[_0x1ffff9(0xb6)](0x1e))),console['log'](_0x1ffff9(0xb9)+getApiDomain()),console[_0x1ffff9(0xd9)](_0x1ffff9(0xea)+getUserDomain()),console[_0x1ffff9(0xd9)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x1ffff9(0xd9)](),console['log'](a29_0xd2cfa0[_0x1ffff9(0xf0)](_0x1ffff9(0xc1))),console['log'](a29_0xd2cfa0[_0x1ffff9(0xbb)]('\x20\x20─'[_0x1ffff9(0xb6)](0x1e)));const _0x213df8=inspectServiceRegistry();console[_0x1ffff9(0xd9)](_0x1ffff9(0xfc)+_0x213df8['registryPath']),console['log'](_0x1ffff9(0xd6)+formatServiceRegistryStatus(_0x213df8)),console[_0x1ffff9(0xd9)](_0x1ffff9(0xbf)+_0x213df8[_0x1ffff9(0xd5)]),console['log'](_0x1ffff9(0xc7)+_0x213df8[_0x1ffff9(0xdd)]);for(const _0x1f6e67 of _0x213df8[_0x1ffff9(0xc2)]){console[_0x1ffff9(0xd9)]('\x20\x20'+(_0x1f6e67[_0x1ffff9(0xdb)]+':')[_0x1ffff9(0x100)](0x11)+'\x20'+(_0x1f6e67[_0x1ffff9(0xd3)]||a29_0xd2cfa0['gray']('(unnamed)'))+'\x20('+_0x1f6e67['commandCount']+_0x1ffff9(0xfe)),console[_0x1ffff9(0xd9)]('\x20\x20'+''[_0x1ffff9(0x100)](0x11)+_0x1ffff9(0xdf)+_0x1f6e67[_0x1ffff9(0xf2)][_0x1ffff9(0xdc)]);}return console[_0x1ffff9(0xd9)](),console[_0x1ffff9(0xd9)](a29_0xd2cfa0[_0x1ffff9(0xf0)](_0x1ffff9(0xe5))),console[_0x1ffff9(0xd9)](a29_0xd2cfa0[_0x1ffff9(0xbb)]('\x20\x20─'['repeat'](0x1e))),console[_0x1ffff9(0xd9)](_0x1ffff9(0xf4)+a29_0xd2cfa0[_0x1ffff9(0xb2)](AUTH_MODE[_0x1ffff9(0xf1)]+_0x1ffff9(0xe4))),console[_0x1ffff9(0xd9)]('\x20\x20Session\x20check:\x20\x20\x20'+a29_0xd2cfa0[_0x1ffff9(0xbb)](_0x1ffff9(0xda))),console[_0x1ffff9(0xd9)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x3a2a72){const _0x479afd=a29_0x333e;if(_0x3a2a72['status']==='ok')return a29_0xd2cfa0[_0x479afd(0xb2)](_0x479afd(0xd0));if(_0x3a2a72[_0x479afd(0xbd)]===_0x479afd(0xcc))return a29_0xd2cfa0[_0x479afd(0xbb)](_0x479afd(0xf7));if(_0x3a2a72['status']===_0x479afd(0xbc))return a29_0xd2cfa0[_0x479afd(0xde)]('⚠\x20Empty');return a29_0xd2cfa0[_0x479afd(0xf5)](_0x479afd(0xce)+(_0x3a2a72[_0x479afd(0xe9)]?':\x20'+_0x3a2a72[_0x479afd(0xe9)]:''));}export const doctorDefinition={'service':'doctor','command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20environment','risk':a29_0x1cbd67(0xcb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|