@lovrabet/lovrabet-cli 2.1.11 → 2.1.12-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/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_0x39d6bb=a14_0x176d;(function(_0x5d1a0a,_0x321131){const _0x3c7f2c=a14_0x176d,_0x55fad0=_0x5d1a0a();while(!![]){try{const _0x22f5bc=-parseInt(_0x3c7f2c(0x80))/0x1*(parseInt(_0x3c7f2c(0x85))/0x2)+-parseInt(_0x3c7f2c(0x88))/0x3+-parseInt(_0x3c7f2c(0x7a))/0x4*(parseInt(_0x3c7f2c(0x7f))/0x5)+-parseInt(_0x3c7f2c(0x8b))/0x6*(-parseInt(_0x3c7f2c(0x82))/0x7)+parseInt(_0x3c7f2c(0x8a))/0x8+parseInt(_0x3c7f2c(0x8c))/0x9+parseInt(_0x3c7f2c(0x77))/0xa;if(_0x22f5bc===_0x321131)break;else _0x55fad0['push'](_0x55fad0['shift']());}catch(_0x22457f){_0x55fad0['push'](_0x55fad0['shift']());}}}(a14_0x5160,0xdc920));function a14_0x5160(){const _0x461fbb=['scriptType','2ZIrzzo','(none)','bool','1028007ixXMjb','Get\x20BFF\x20script\x20details\x20by\x20ID','14429608rUPrNM','6jJIzeo','3807234zdZJtO','appCode','1533110sRnxZg','read','verbose','2400SEzOKI','updatedTime','bff','num','createdTime','13435MwsnjB','257069yDKlCg','Script\x20ID','5147492ijMxwm','detail'];a14_0x5160=function(){return _0x461fbb;};return a14_0x5160();}function a14_0x176d(_0x1df748,_0x44efcd){_0x1df748=_0x1df748-0x77;const _0x516020=a14_0x5160();let _0x176d89=_0x516020[_0x1df748];return _0x176d89;}import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a14_0x39d6bb(0x7c),'command':a14_0x39d6bb(0x83),'description':a14_0x39d6bb(0x89),'risk':a14_0x39d6bb(0x78),'flags':[{...ID_FLAG,'description':a14_0x39d6bb(0x81)},VERBOSE_FLAG],async 'execute'(_0x590d00){const _0x2daef6=a14_0x39d6bb,_0x1c677b=await getBffScriptInfo(_0x590d00[_0x2daef6(0x7d)]('id')),_0x53eb21=_0x590d00[_0x2daef6(0x87)](_0x2daef6(0x79));if(_0x53eb21)return{'ok':!![],'data':_0x1c677b};return{'ok':!![],'data':{'id':_0x1c677b['id'],'appCode':_0x1c677b[_0x2daef6(0x8d)],'functionName':_0x1c677b['functionName']??'','scriptType':_0x1c677b[_0x2daef6(0x84)],'description':_0x1c677b['description']||_0x2daef6(0x86),'createdTime':_0x1c677b[_0x2daef6(0x7e)]??'','updatedTime':_0x1c677b[_0x2daef6(0x7b)]??''}};}};
|
package/lib/commands/bff/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15_0x2220e0=a15_0x2d9b;(function(_0x3de671,_0x405d56){const _0x18e4f9=a15_0x2d9b,_0x3bb865=_0x3de671();while(!![]){try{const _0x4dab66=-parseInt(_0x18e4f9(0x1bc))/0x1+-parseInt(_0x18e4f9(0x1c1))/0x2*(parseInt(_0x18e4f9(0x1c6))/0x3)+parseInt(_0x18e4f9(0x1c0))/0x4+parseInt(_0x18e4f9(0x1b9))/0x5*(parseInt(_0x18e4f9(0x1be))/0x6)+-parseInt(_0x18e4f9(0x1c4))/0x7*(-parseInt(_0x18e4f9(0x1c3))/0x8)+parseInt(_0x18e4f9(0x1c5))/0x9*(-parseInt(_0x18e4f9(0x1b3))/0xa)+parseInt(_0x18e4f9(0x1b6))/0xb*(parseInt(_0x18e4f9(0x1bb))/0xc);if(_0x4dab66===_0x405d56)break;else _0x3bb865['push'](_0x3bb865['shift']());}catch(_0x2553db){_0x3bb865['push'](_0x3bb865['shift']());}}}(a15_0x186a,0xce877));import{executeSdkBff}from'../../core/sdk-client.js';function a15_0x2d9b(_0x2cb59e,_0x34d8de){_0x2cb59e=_0x2cb59e-0x1b3;const _0x186a6e=a15_0x186a();let _0x2d9b05=_0x186a6e[_0x2cb59e];return _0x2d9b05;}import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':'bff','command':a15_0x2220e0(0x1b5),'description':a15_0x2220e0(0x1bd),'risk':a15_0x2220e0(0x1b7),'flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name\x20to\x20execute'},PARAMS_FLAG],async 'execute'(_0x58a1bd){const _0x346e88=a15_0x2220e0,_0x481290=parseJsonParams(_0x58a1bd[_0x346e88(0x1bf)](_0x346e88(0x1c2))),_0x133129=Date['now'](),_0x226efa=await executeSdkBff(_0x58a1bd[_0x346e88(0x1bf)](_0x346e88(0x1b8)),_0x481290),_0x3652ea=Date[_0x346e88(0x1b4)]()-_0x133129;return{'ok':!![],'data':{'result':_0x226efa,'elapsed':_0x3652ea},'message':_0x346e88(0x1ba)+_0x3652ea+'ms'};}};function a15_0x186a(){const _0xcf3139=['1445746RudGTM','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','3736830TpeFMW','str','82580PTflXr','4dAgwke','params','8NLfxSZ','9979137wtkRau','155889WMnrQD','276366LZMjgI','130UxQEEU','now','exec','44cqMtNx','read','name','10gKYMRO','BFF\x20executed\x20in\x20','27780TddROg'];a15_0x186a=function(){return _0xcf3139;};return a15_0x186a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3d0a00,_0x58c348){const _0x34daa5=a16_0x29cf,_0x54bd92=_0x3d0a00();while(!![]){try{const _0x32f3b2=parseInt(_0x34daa5(0x9c))/0x1+-parseInt(_0x34daa5(0x99))/0x2+-parseInt(_0x34daa5(0x98))/0x3*(-parseInt(_0x34daa5(0x97))/0x4)+parseInt(_0x34daa5(0x9b))/0x5*(parseInt(_0x34daa5(0x9a))/0x6)+parseInt(_0x34daa5(0x9e))/0x7*(-parseInt(_0x34daa5(0x9f))/0x8)+parseInt(_0x34daa5(0x9d))/0x9+-parseInt(_0x34daa5(0x96))/0xa;if(_0x32f3b2===_0x58c348)break;else _0x54bd92['push'](_0x54bd92['shift']());}catch(_0x3cccef){_0x54bd92['push'](_0x54bd92['shift']());}}}(a16_0x5f05,0x75da3));function a16_0x5f05(){const _0x2a1915=['416301MVhlfa','2257866ijRCvQ','287KMOxTG','90664jPFDom','3734090sciUrM','8GyKuQK','471579cAQxFQ','215370RZrBxY','2681454IaArnD','5yHXKcY'];a16_0x5f05=function(){return _0x2a1915;};return a16_0x5f05();}function a16_0x29cf(_0x1a6b36,_0xdc6597){_0x1a6b36=_0x1a6b36-0x96;const _0x5f0513=a16_0x5f05();let _0x29cf13=_0x5f0513[_0x1a6b36];return _0x29cf13;}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a17_0x2027e7=a17_0xa1f2;function a17_0x19d9(){const _0x303b12=['install','455709YfPDqf','setLogPath','237882LXJewU','info','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','4fRnlAa','3100182MvXPcJ','cwd','apiError','pipe','cli-skill-install','7xJssyI','2EAngOq','256760HcsnTC','12ixydyM','2696344iNESDN','\x20-g\x20-y)...','log','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','\x20-g\x20-y','318280lPxXJF','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','../../skills/npx-skills-add.js','Skipped\x20npx\x20(','error','skipped','126LSjqIJ','write','5054995VrIrCE','cli-skill','unknown'];a17_0x19d9=function(){return _0x303b12;};return a17_0x19d9();}function a17_0xa1f2(_0xf53a7e,_0x7c36b7){_0xf53a7e=_0xf53a7e-0x65;const _0x19d96f=a17_0x19d9();let _0xa1f21b=_0x19d96f[_0xf53a7e];return _0xa1f21b;}(function(_0xd2262a,_0x8941d){const _0x3edc97=a17_0xa1f2,_0x165273=_0xd2262a();while(!![]){try{const _0x45c93c=-parseInt(_0x3edc97(0x83))/0x1*(parseInt(_0x3edc97(0x6e))/0x2)+-parseInt(_0x3edc97(0x85))/0x3*(parseInt(_0x3edc97(0x67))/0x4)+-parseInt(_0x3edc97(0x6f))/0x5+parseInt(_0x3edc97(0x68))/0x6*(parseInt(_0x3edc97(0x6d))/0x7)+parseInt(_0x3edc97(0x71))/0x8+parseInt(_0x3edc97(0x7d))/0x9*(-parseInt(_0x3edc97(0x76))/0xa)+parseInt(_0x3edc97(0x7f))/0xb*(parseInt(_0x3edc97(0x70))/0xc);if(_0x45c93c===_0x8941d)break;else _0x165273['push'](_0x165273['shift']());}catch(_0x3834e5){_0x165273['push'](_0x165273['shift']());}}}(a17_0x19d9,0x44afa));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a17_0x2027e7(0x80),'command':a17_0x2027e7(0x82),'description':a17_0x2027e7(0x78),'risk':a17_0x2027e7(0x7e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x472fc3){const _0x4e1dd4=a17_0x2027e7;logger[_0x4e1dd4(0x84)](process['cwd']()),logger[_0x4e1dd4(0x65)](_0x4e1dd4(0x6c),_0x4e1dd4(0x77));const {LOVRABET_SKILL_SOURCE:_0x3b9106,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x55fcca,runNpxSkillsAddGlobal:_0x51c9f4}=await import(_0x4e1dd4(0x79)),_0x270ec2=_0x472fc3['nonInteractive']?_0x4e1dd4(0x6b):'inherit';console[_0x4e1dd4(0x73)]('Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20'+_0x3b9106+_0x4e1dd4(0x72));const _0x355485=_0x51c9f4(process[_0x4e1dd4(0x69)](),_0x3b9106,{'stdio':_0x270ec2});if(_0x355485[_0x4e1dd4(0x7c)])console['log'](_0x4e1dd4(0x7a)+_0x55fcca+_0x4e1dd4(0x74));else{if(_0x355485['ok'])console['log']('CLI\x20Built-in\x20Skill\x20installed');else throw CliErrors[_0x4e1dd4(0x6a)]('npx\x20skills\x20add\x20failed:\x20'+(_0x355485[_0x4e1dd4(0x7b)]||_0x4e1dd4(0x81)),_0x4e1dd4(0x66)+_0x3b9106+_0x4e1dd4(0x75));}return{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x145f95,_0x528ee8){const _0x132ddd=a18_0x5b68,_0x42885e=_0x145f95();while(!![]){try{const _0x3c9fec=-parseInt(_0x132ddd(0x68))/0x1*(-parseInt(_0x132ddd(0x75))/0x2)+-parseInt(_0x132ddd(0x78))/0x3*(parseInt(_0x132ddd(0x6c))/0x4)+parseInt(_0x132ddd(0x69))/0x5*(-parseInt(_0x132ddd(0x7d))/0x6)+-parseInt(_0x132ddd(0x73))/0x7+-parseInt(_0x132ddd(0x7a))/0x8+-parseInt(_0x132ddd(0x72))/0x9+parseInt(_0x132ddd(0x6e))/0xa;if(_0x3c9fec===_0x528ee8)break;else _0x42885e['push'](_0x42885e['shift']());}catch(_0x38a365){_0x42885e['push'](_0x42885e['shift']());}}}(a18_0x5b4e,0x63d2a));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';function a18_0x5b4e(){const _0x157768=['project-default','validation','16902ApPtJE','global-default','inProject',',\x20or\x20run\x20`','104mgiuAb','1185wyNAZR','\x20found).','newConfigFileName','121708tfzdAI','\x20(global)','24481890NqopXz','project-or-global-explicit','project','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','4160259ZDoacM','5227901zQhTwX','global','4246HHttru','Add\x20--global\x20to\x20write\x20to\x20~/','Use\x20only\x20one\x20config\x20scope\x20flag.','3jOxuxR','\x20init`\x20first.','2823656dGNqNs'];a18_0x5b4e=function(){return _0x157768;};return a18_0x5b4e();}export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x5a5ca7){const _0x17164b=a18_0x5b68,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x135e7e}=_0x5a5ca7;if(explicitGlobal&&explicitProject)throw CliErrors[_0x17164b(0x7c)](_0x17164b(0x71),_0x17164b(0x77));if(explicitGlobal)return _0x17164b(0x74);if(explicitProject)return _0x17164b(0x70);switch(_0x135e7e){case _0x17164b(0x7e):return _0x17164b(0x74);case _0x17164b(0x7b):return _0x5a5ca7['inProject']??isInProject()?'project':_0x17164b(0x74);case _0x17164b(0x6f):if(!(_0x5a5ca7[_0x17164b(0x7f)]??isInProject()))throw CliErrors[_0x17164b(0x7c)]('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG[_0x17164b(0x6b)]+_0x17164b(0x6a),_0x17164b(0x76)+PRODUCT_CONFIG['newConfigFileName']+_0x17164b(0x67)+CLI_BIN_NAME+_0x17164b(0x79));return _0x17164b(0x70);}}export function toScopeFlags(_0xdf4e98){const _0x158c1f=a18_0x5b68;return{'global':_0xdf4e98===_0x158c1f(0x74)};}function a18_0x5b68(_0x34e5fc,_0xc4b4f1){_0x34e5fc=_0x34e5fc-0x67;const _0x5b4ecb=a18_0x5b4e();let _0x5b6830=_0x5b4ecb[_0x34e5fc];return _0x5b6830;}export function formatScopeLabel(_0x53313f){const _0x44ad42=a18_0x5b68;return _0x53313f===_0x44ad42(0x74)?_0x44ad42(0x6d):'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x25be42,_0x38f6e9){const _0x36d5fb=a19_0x8119,_0x540401=_0x25be42();while(!![]){try{const _0x20f459=parseInt(_0x36d5fb(0x172))/0x1*(parseInt(_0x36d5fb(0x17c))/0x2)+parseInt(_0x36d5fb(0x183))/0x3*(parseInt(_0x36d5fb(0x182))/0x4)+parseInt(_0x36d5fb(0x16c))/0x5+parseInt(_0x36d5fb(0x167))/0x6*(-parseInt(_0x36d5fb(0x173))/0x7)+-parseInt(_0x36d5fb(0x17e))/0x8*(-parseInt(_0x36d5fb(0x170))/0x9)+-parseInt(_0x36d5fb(0x16e))/0xa*(-parseInt(_0x36d5fb(0x166))/0xb)+parseInt(_0x36d5fb(0x17d))/0xc*(-parseInt(_0x36d5fb(0x179))/0xd);if(_0x20f459===_0x38f6e9)break;else _0x540401['push'](_0x540401['shift']());}catch(_0x1d8e9e){_0x540401['push'](_0x540401['shift']());}}}(a19_0x1ad0,0xe369a));import{CliErrors}from'../../errors.js';function isSet(_0x4e595c,_0x41d33f){const _0x43af19=a19_0x8119,_0x4a4595=_0x4e595c[_0x43af19(0x165)](_0x41d33f);return _0x4a4595!==undefined&&_0x4a4595!==''&&_0x4a4595!==![]&&_0x4a4595!==0x0;}function fmtNames(_0x47b4a5){const _0x2cec0b=a19_0x8119;return _0x47b4a5[_0x2cec0b(0x16f)](_0x40e34a=>'--'+_0x40e34a)[_0x2cec0b(0x169)](',\x20');}export function requireOneOf(_0x190693,_0x1d79b0,_0x453351){const _0x8e8465=a19_0x8119,_0x3c2657=_0x1d79b0['filter'](_0x23dab1=>isSet(_0x190693,_0x23dab1));if(_0x3c2657['length']!==0x1)throw CliErrors['validation'](_0x3c2657[_0x8e8465(0x174)]===0x0?'Exactly\x20one\x20of\x20'+fmtNames(_0x1d79b0)+'\x20is\x20required\x20for\x20`'+_0x453351+'`.':_0x8e8465(0x168)+fmtNames(_0x1d79b0)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x3c2657)+'.',_0x3c2657[_0x8e8465(0x174)]===0x0?_0x8e8465(0x176)+fmtNames(_0x1d79b0):_0x8e8465(0x177));}export function requireAnyOf(_0x449a90,_0xb1944e,_0x4b11e2){const _0x263b4b=a19_0x8119;if(!_0xb1944e[_0x263b4b(0x16a)](_0x346b1f=>isSet(_0x449a90,_0x346b1f)))throw CliErrors[_0x263b4b(0x164)](_0x263b4b(0x175)+fmtNames(_0xb1944e)+_0x263b4b(0x17f)+_0x4b11e2+'`.',_0x263b4b(0x176)+fmtNames(_0xb1944e));}function a19_0x1ad0(){const _0x4b7865=['Only\x20one\x20of\x20','join','some','Flags\x20','1436755KZFPDV','filter','10zJryDg','map','9ZljVCl',':\x20expected\x20','1607303iybggw','1254778vSwEzS','length','At\x20least\x20one\x20of\x20','Provide\x20one\x20of:\x20','Remove\x20all\x20but\x20one.','\x20are\x20mutually\x20exclusive\x20for\x20`','39689znzklK','str','Use\x20only\x20one\x20of:\x20','2hdOjhs','12828ilrLoJ','6290696aKOmsd','\x20is\x20required\x20for\x20`',',\x20got\x20\x22','Invalid\x20--','112468VsywXa','111YaPKBz','test','validation','flag','9155597uHrMWK','12tuGjtC'];a19_0x1ad0=function(){return _0x4b7865;};return a19_0x1ad0();}export function mutuallyExclusive(_0x40fb6a,_0x3fea71,_0x119d46){const _0x371a7f=a19_0x8119,_0xce5ad5=_0x3fea71[_0x371a7f(0x16d)](_0x2438b6=>isSet(_0x40fb6a,_0x2438b6));if(_0xce5ad5[_0x371a7f(0x174)]>0x1)throw CliErrors[_0x371a7f(0x164)](_0x371a7f(0x16b)+fmtNames(_0xce5ad5)+_0x371a7f(0x178)+_0x119d46+'`.',_0x371a7f(0x17b)+fmtNames(_0x3fea71));}function a19_0x8119(_0x15af2c,_0x448c2d){_0x15af2c=_0x15af2c-0x164;const _0x1ad097=a19_0x1ad0();let _0x811938=_0x1ad097[_0x15af2c];return _0x811938;}export function validatePattern(_0x486843,_0x2fd3fd,_0x2e327e,_0x5a0dfd){const _0x5cf244=a19_0x8119,_0x134c3d=_0x486843[_0x5cf244(0x17a)](_0x2fd3fd);if(_0x134c3d&&!_0x2e327e[_0x5cf244(0x184)](_0x134c3d))throw CliErrors['validation'](_0x5cf244(0x181)+_0x2fd3fd+_0x5cf244(0x171)+_0x5a0dfd+_0x5cf244(0x180)+_0x134c3d+'\x22.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a20_0x24e4(_0x560263,_0x19da68){_0x560263=_0x560263-0x11d;const _0x2d2221=a20_0x2d22();let _0x24e45c=_0x2d2221[_0x560263];return _0x24e45c;}const a20_0x227daa=a20_0x24e4;function a20_0x2d22(){const _0x5bef85=['Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','name','8973976XxGwqp','2259715mAZzSn','4027086cZWXXi','boolean','Dataset\x20code\x20(32-char\x20hex\x20UUID)','string','1684116GcsnSC','8zBaEjD','code','589980QzKYIz','162551gNWpdn','1811190twFpUu','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','verbose','sqlcode','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'];a20_0x2d22=function(){return _0x5bef85;};return a20_0x2d22();}(function(_0x344fc6,_0x3a1388){const _0x200a21=a20_0x24e4,_0x29c112=_0x344fc6();while(!![]){try{const _0x204001=parseInt(_0x200a21(0x12a))/0x1*(-parseInt(_0x200a21(0x127))/0x2)+-parseInt(_0x200a21(0x12b))/0x3+parseInt(_0x200a21(0x129))/0x4+-parseInt(_0x200a21(0x121))/0x5+parseInt(_0x200a21(0x126))/0x6+parseInt(_0x200a21(0x122))/0x7+parseInt(_0x200a21(0x120))/0x8;if(_0x204001===_0x3a1388)break;else _0x29c112['push'](_0x29c112['shift']());}catch(_0x3c4f24){_0x29c112['push'](_0x29c112['shift']());}}}(a20_0x2d22,0x66615));export const CODE_FLAG={'name':a20_0x227daa(0x128),'type':a20_0x227daa(0x125),'required':!![],'description':a20_0x227daa(0x124),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};export const SQLCODE_FLAG={'name':a20_0x227daa(0x12e),'type':a20_0x227daa(0x125),'required':!![],'description':a20_0x227daa(0x12c),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0x227daa(0x11d)}};export const VERBOSE_FLAG={'name':a20_0x227daa(0x12d),'type':a20_0x227daa(0x123),'description':'Return\x20full\x20raw\x20response\x20object'};export const PARAMS_FLAG={'name':'params','type':a20_0x227daa(0x125),'description':a20_0x227daa(0x11e)};export const NAME_FLAG={'name':a20_0x227daa(0x11f),'type':a20_0x227daa(0x125),'description':'Resource\x20name\x20for\x20lookup'};export const ID_FLAG={'name':'id','type':'number','required':!![],'description':'Resource\x20ID'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x59272d,_0x326918){const _0xb6824f=a21_0x39e9,_0x5a5d30=_0x59272d();while(!![]){try{const _0x19c22f=parseInt(_0xb6824f(0xb5))/0x1+parseInt(_0xb6824f(0xaa))/0x2*(-parseInt(_0xb6824f(0xb9))/0x3)+parseInt(_0xb6824f(0xab))/0x4+parseInt(_0xb6824f(0xb8))/0x5*(-parseInt(_0xb6824f(0xb1))/0x6)+parseInt(_0xb6824f(0xa7))/0x7+parseInt(_0xb6824f(0xb7))/0x8*(parseInt(_0xb6824f(0xb4))/0x9)+-parseInt(_0xb6824f(0xb3))/0xa;if(_0x19c22f===_0x326918)break;else _0x5a5d30['push'](_0x5a5d30['shift']());}catch(_0x40a6f8){_0x5a5d30['push'](_0x5a5d30['shift']());}}}(a21_0x274c,0x25f48));import{existsSync,statSync}from'node:fs';function a21_0x39e9(_0x5c58a9,_0x136dc7){_0x5c58a9=_0x5c58a9-0xa7;const _0x274c19=a21_0x274c();let _0x39e970=_0x274c19[_0x5c58a9];return _0x39e970;}import{CliErrors}from'../../errors.js';function a21_0x274c(){const _0x4eca0e=['2765KwNYHs','644709PgLlFj','1287874ZPIuEC','\x20MB','trim','2wggPIK','765724SBZDDc','File\x20not\x20found:\x20','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','toFixed','isFile','validation','1476BmqtUJ','ceil','1750990tZwYwR','9qumTKR','217982DObEbG','size','704872ByOFph'];a21_0x274c=function(){return _0x4eca0e;};return a21_0x274c();}const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x5d4e0f){const _0x5d49a5=a21_0x39e9;if(_0x5d4e0f>=BYTES_PER_MB){const _0xa59627=Math[_0x5d49a5(0xb2)](_0x5d4e0f/BYTES_PER_MB*0x64)/0x64;return _0xa59627[_0x5d49a5(0xae)](0x2)+_0x5d49a5(0xa8);}return _0x5d4e0f+'\x20B';}export function requireRuntimeUploadFile(_0x2fbda9,_0x1cd054){const _0x5e9b17=a21_0x39e9,_0x36fd87=_0x2fbda9[_0x5e9b17(0xa9)]();if(!_0x36fd87)throw CliErrors['validation'](_0x1cd054+'\x20path\x20is\x20required.');if(!existsSync(_0x36fd87))throw CliErrors[_0x5e9b17(0xb0)](_0x5e9b17(0xac)+_0x36fd87);const _0x5ed3c0=statSync(_0x36fd87);if(!_0x5ed3c0[_0x5e9b17(0xaf)]())throw CliErrors['validation']('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x36fd87);if(_0x5ed3c0[_0x5e9b17(0xb6)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x5e9b17(0xb0)](_0x5e9b17(0xad)+_0x36fd87+'\x20('+formatBytes(_0x5ed3c0[_0x5e9b17(0xb6)])+')');return{'path':_0x36fd87,'size':_0x5ed3c0['size']};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a22_0x2b53(){const _0xf2cf93=['Invalid\x20value\x20for\x20\x22','\x20config\x20get\x20<key>','isArray','Deleted\x20`','Delete\x20a\x20config\x20value','riskLevel','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','\x20(global)','Settable\x20keys:\x20','List\x20current\x20config','delete','read','Set\x20`','list','295144CLIVPF','raw','\x22\x20not\x20found\x20at\x20top\x20level.','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','apps','pageSize','format','log',';\x20apps.<alias>.appcode','includes','Set\x20a\x20config\x20value','keys','bool','alias','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','Missing\x20key\x20argument.','project-or-global-explicit','stringify','length','../../context.js','config','write','7615426cbXXbb','702umMElY','appcode','118410eFWLNd','pageSize\x20must\x20be\x20a\x20positive\x20number','Missing\x20key\x20or\x20value.','222kkIgwL','66593KsvPlu','27lGrLVm','88455JVRZGQ','Value\x20to\x20assign','\x20\x20project:\x20','(none)','field','\x20config\x20delete\x20<key>\x20[--global]','8409800JcEhey','Config\x20files:\x0a','global','Usage:\x20','key','Top-level\x20key\x20\x22','Key\x20not\x20found:\x20','10PCABoK','`\x20=\x20\x22','validation','Key\x20\x22','trim','object','27148319OekzVO','args','split','\x22.\x20Allowed:\x20','Get\x20a\x20config\x20value','Write\x20to\x20global\x20config'];a22_0x2b53=function(){return _0xf2cf93;};return a22_0x2b53();}const a22_0x2e47e8=a22_0x4e9d;(function(_0x115a73,_0x4e0632){const _0x5ade87=a22_0x4e9d,_0x5de79d=_0x115a73();while(!![]){try{const _0x1bcfcf=parseInt(_0x5ade87(0x81))/0x1*(parseInt(_0x5ade87(0x90))/0x2)+-parseInt(_0x5ade87(0x82))/0x3*(parseInt(_0x5ade87(0xaa))/0x4)+parseInt(_0x5ade87(0x83))/0x5*(-parseInt(_0x5ade87(0x80))/0x6)+parseInt(_0x5ade87(0x7a))/0x7+-parseInt(_0x5ade87(0x89))/0x8+parseInt(_0x5ade87(0x7b))/0x9*(-parseInt(_0x5ade87(0x7d))/0xa)+parseInt(_0x5ade87(0x96))/0xb;if(_0x1bcfcf===_0x4e0632)break;else _0x5de79d['push'](_0x5de79d['shift']());}catch(_0x4f14e8){_0x5de79d['push'](_0x5de79d['shift']());}}}(a22_0x2b53,0x915f8));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a22_0x2e47e8(0x8b),'type':'boolean','description':a22_0x2e47e8(0x9b),'default':![]};function parseAliasAppcodeSetKey(_0x4d91d7){const _0x325b99=a22_0x2e47e8,_0x109a9c=_0x4d91d7['split']('.');if(_0x109a9c[_0x325b99(0x76)]!==0x3||_0x109a9c[0x0]!==_0x325b99(0xae)||_0x109a9c[0x2]!==_0x325b99(0x7c))return undefined;const _0x5eb677=_0x109a9c[0x1]?.[_0x325b99(0x94)]();return _0x5eb677?_0x5eb677:undefined;}function parseAliasDeleteKey(_0x2180a1){const _0x848c39=a22_0x2e47e8,_0x1ccef0=_0x2180a1[_0x848c39(0x98)]('.');if(_0x1ccef0[_0x848c39(0x76)]===0x2&&_0x1ccef0[0x0]===_0x848c39(0xae)){const _0x398500=_0x1ccef0[0x1]?.['trim']();return _0x398500?{'alias':_0x398500}:undefined;}if(_0x1ccef0[_0x848c39(0x76)]===0x3&&_0x1ccef0[0x0]==='apps'&&_0x1ccef0[0x2]==='appcode'){const _0x14fd06=_0x1ccef0[0x1]?.[_0x848c39(0x94)]();return _0x14fd06?{'alias':_0x14fd06,'field':_0x848c39(0x7c)}:undefined;}return undefined;}function setLocalAppAlias(_0x28f8b2,_0xd27cc4,_0x463070){const _0x51fed9=a22_0x2e47e8,_0x523de5=_0x28f8b2[_0x51fed9(0xae)]&&typeof _0x28f8b2['apps']===_0x51fed9(0x95)&&!Array[_0x51fed9(0x9e)](_0x28f8b2[_0x51fed9(0xae)])?_0x28f8b2[_0x51fed9(0xae)]:{},_0x5d550e=_0x523de5[_0xd27cc4]&&typeof _0x523de5[_0xd27cc4]===_0x51fed9(0x95)&&!Array[_0x51fed9(0x9e)](_0x523de5[_0xd27cc4])?_0x523de5[_0xd27cc4]:{};_0x5d550e['appcode']=_0x463070,_0x523de5[_0xd27cc4]=_0x5d550e,_0x28f8b2[_0x51fed9(0xae)]=_0x523de5;}function deleteLocalAppAlias(_0x1c3cc6,_0x835136){const _0x4fba53=a22_0x2e47e8;if(!_0x1c3cc6[_0x4fba53(0xae)]||typeof _0x1c3cc6[_0x4fba53(0xae)]!==_0x4fba53(0x95)||Array[_0x4fba53(0x9e)](_0x1c3cc6[_0x4fba53(0xae)]))return![];const _0x43d5bc=_0x1c3cc6[_0x4fba53(0xae)],_0x3a9aee=_0x43d5bc[_0x835136[_0x4fba53(0x71)]];if(!_0x3a9aee||typeof _0x3a9aee!==_0x4fba53(0x95)||Array['isArray'](_0x3a9aee))return![];if(!_0x835136[_0x4fba53(0x87)])return delete _0x43d5bc[_0x835136[_0x4fba53(0x71)]],!![];if(!(_0x835136[_0x4fba53(0x87)]in _0x3a9aee))return![];return delete _0x3a9aee[_0x835136[_0x4fba53(0x87)]],Object[_0x4fba53(0x6f)](_0x3a9aee)[_0x4fba53(0x76)]===0x0&&delete _0x43d5bc[_0x835136[_0x4fba53(0x71)]],!![];}function a22_0x4e9d(_0x52c3ed,_0x395bcb){_0x52c3ed=_0x52c3ed-0x6d;const _0x2b538d=a22_0x2b53();let _0x4e9d39=_0x2b538d[_0x52c3ed];return _0x4e9d39;}const listDef={'service':a22_0x2e47e8(0x78),'command':a22_0x2e47e8(0xa9),'description':a22_0x2e47e8(0xa5),'risk':a22_0x2e47e8(0xa7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0xd7cea0){const _0x5d50ac=a22_0x2e47e8,{buildConfigFromFlags:_0x76d43e}=await import(_0x5d50ac(0x77)),_0x5cfdca=_0x76d43e({}),_0x30de26=getProjectConfigPath(),_0x2cde08=resolveWriteConfigPath(_0x5d50ac(0x8b));if(_0xd7cea0[_0x5d50ac(0xb0)]==='pretty')return{'ok':!![],'message':_0x5d50ac(0xa2)+(JSON[_0x5d50ac(0x75)](_0x5cfdca['raw'],null,0x2)+'\x0a\x0a')+_0x5d50ac(0x8a)+(_0x5d50ac(0x85)+(_0x30de26??_0x5d50ac(0x86))+'\x0a')+('\x20\x20global:\x20\x20'+_0x2cde08)};return{'ok':!![],'data':{'effective':_0x5cfdca[_0x5d50ac(0xab)],'configFiles':{'project':_0x30de26??null,'global':_0x2cde08}}};}},getDef={'service':a22_0x2e47e8(0x78),'command':'get','description':a22_0x2e47e8(0x9a),'risk':a22_0x2e47e8(0xa7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x2e47e8(0x8d),'description':a22_0x2e47e8(0x72),'required':!![]}],'flags':[],async 'execute'(_0x1f9d16){const _0x2ebcae=a22_0x2e47e8,_0x2d2a79=_0x1f9d16[_0x2ebcae(0x97)][0x0];if(!_0x2d2a79)throw CliErrors[_0x2ebcae(0x92)](_0x2ebcae(0x73),_0x2ebcae(0x8c)+CLI_BIN_NAME+_0x2ebcae(0x9d));const {buildConfigFromFlags:_0x104901}=await import(_0x2ebcae(0x77)),{raw:_0x52ec34}=_0x104901({});if(_0x2d2a79['includes']('.')){const _0x5402fb=_0x2d2a79[_0x2ebcae(0x98)]('.');let _0xa53b7a=_0x52ec34;for(const _0x16be3a of _0x5402fb){if(_0xa53b7a==null||typeof _0xa53b7a!==_0x2ebcae(0x95))throw CliErrors['validation'](_0x2ebcae(0x8f)+_0x2d2a79);_0xa53b7a=_0xa53b7a[_0x16be3a];}if(_0xa53b7a===undefined)throw CliErrors[_0x2ebcae(0x92)](_0x2ebcae(0x8f)+_0x2d2a79);return console['log'](typeof _0xa53b7a===_0x2ebcae(0x95)?JSON[_0x2ebcae(0x75)](_0xa53b7a,null,0x2):String(_0xa53b7a)),{'ok':!![]};}const _0x2859f9=_0x52ec34[_0x2d2a79];if(_0x2859f9===undefined)throw CliErrors[_0x2ebcae(0x92)](_0x2ebcae(0x8f)+_0x2d2a79);return console[_0x2ebcae(0xb1)](typeof _0x2859f9==='object'?JSON['stringify'](_0x2859f9,null,0x2):String(_0x2859f9)),{'ok':!![]};}},setDef={'service':'config','command':'set','description':a22_0x2e47e8(0x6e),'risk':a22_0x2e47e8(0x79),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x2e47e8(0x8d),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':a22_0x2e47e8(0x84),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x5cac31){const _0x318680=a22_0x2e47e8,_0x279181=_0x5cac31[_0x318680(0x97)][0x0],_0x27fb90=_0x5cac31[_0x318680(0x97)][0x1];if(!_0x279181||_0x27fb90===undefined)throw CliErrors[_0x318680(0x92)](_0x318680(0x7f),_0x318680(0x8c)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x279181]&&!ENUM_KEYS[_0x279181][_0x318680(0x6d)](_0x27fb90))throw CliErrors[_0x318680(0x92)](_0x318680(0x9c)+_0x279181+_0x318680(0x99)+ENUM_KEYS[_0x279181]['join'](',\x20'));if(_0x279181===_0x318680(0xa1))throw CliErrors['validation'](_0x318680(0xad));if(_0x279181===_0x318680(0xaf)){const _0x4a91c8=Number(_0x27fb90);if(isNaN(_0x4a91c8)||_0x4a91c8<=0x0)throw CliErrors[_0x318680(0x92)](_0x318680(0x7e));}const _0x5e56b0=resolveWriteScope({'explicitGlobal':_0x5cac31[_0x318680(0x70)](_0x318680(0x8b)),'policy':_0x318680(0x74)}),_0x211d93=toScopeFlags(_0x5e56b0),_0x14bc23=readScopedConfig(_0x211d93),_0x584293=parseAliasAppcodeSetKey(_0x279181);if(!_0x584293&&!isTopLevelConfigKey(_0x279181))throw CliErrors[_0x318680(0x92)](_0x318680(0x8e)+_0x279181+'\x22\x20is\x20not\x20settable.',_0x318680(0xa4)+getTopLevelConfigKeySummary()+_0x318680(0xb2));return _0x584293?setLocalAppAlias(_0x14bc23,_0x584293,_0x27fb90):_0x14bc23[_0x279181]=_0x279181===_0x318680(0xaf)?Number(_0x27fb90):_0x27fb90,console[_0x318680(0xb1)](_0x318680(0xa8)+_0x279181+_0x318680(0x91)+_0x27fb90+'\x22'+(_0x5e56b0===_0x318680(0x8b)?'\x20(global)':'')),writeScopedConfig(_0x14bc23,_0x211d93),{'ok':!![]};}},deleteDef={'service':a22_0x2e47e8(0x78),'command':a22_0x2e47e8(0xa6),'description':a22_0x2e47e8(0xa0),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x136242){const _0x4db5f0=a22_0x2e47e8,_0x5856f8=_0x136242[_0x4db5f0(0x97)][0x0];if(!_0x5856f8)throw CliErrors['validation'](_0x4db5f0(0x73),'Usage:\x20'+CLI_BIN_NAME+_0x4db5f0(0x88));const _0x16567b=resolveWriteScope({'explicitGlobal':_0x136242['bool'](_0x4db5f0(0x8b)),'policy':_0x4db5f0(0x74)}),_0x3c46fc=toScopeFlags(_0x16567b),_0x3f131d=readScopedConfig(_0x3c46fc),_0x72b568=parseAliasDeleteKey(_0x5856f8);if(_0x72b568){if(!deleteLocalAppAlias(_0x3f131d,_0x72b568))throw CliErrors[_0x4db5f0(0x92)](_0x4db5f0(0x8f)+_0x5856f8);return console[_0x4db5f0(0xb1)](_0x4db5f0(0x9f)+_0x5856f8+'`'+(_0x16567b===_0x4db5f0(0x8b)?_0x4db5f0(0xa3):'')),writeScopedConfig(_0x3f131d,_0x3c46fc),{'ok':!![]};}if(_0x3f131d[_0x5856f8]===undefined)throw CliErrors[_0x4db5f0(0x92)](_0x4db5f0(0x93)+_0x5856f8+_0x4db5f0(0xac));return delete _0x3f131d[_0x5856f8],console[_0x4db5f0(0xb1)](_0x4db5f0(0x9f)+_0x5856f8+'`'+(_0x16567b===_0x4db5f0(0x8b)?'\x20(global)':'')),writeScopedConfig(_0x3f131d,_0x3c46fc),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
1
|
+
const a22_0x1876de=a22_0x1b31;(function(_0x212338,_0xad6905){const _0x2ea6bd=a22_0x1b31,_0x1979f9=_0x212338();while(!![]){try{const _0x5c9155=parseInt(_0x2ea6bd(0x1a3))/0x1*(parseInt(_0x2ea6bd(0x1b3))/0x2)+-parseInt(_0x2ea6bd(0x19f))/0x3*(parseInt(_0x2ea6bd(0x196))/0x4)+-parseInt(_0x2ea6bd(0x19d))/0x5*(-parseInt(_0x2ea6bd(0x1ca))/0x6)+parseInt(_0x2ea6bd(0x1db))/0x7+parseInt(_0x2ea6bd(0x1cc))/0x8*(parseInt(_0x2ea6bd(0x1ab))/0x9)+-parseInt(_0x2ea6bd(0x194))/0xa*(-parseInt(_0x2ea6bd(0x1d2))/0xb)+-parseInt(_0x2ea6bd(0x1ae))/0xc;if(_0x5c9155===_0xad6905)break;else _0x1979f9['push'](_0x1979f9['shift']());}catch(_0x325887){_0x1979f9['push'](_0x1979f9['shift']());}}}(a22_0x1895,0xafa44));function a22_0x1b31(_0x4d7249,_0x4ffa12){_0x4d7249=_0x4d7249-0x194;const _0x1895b6=a22_0x1895();let _0x1b311d=_0x1895b6[_0x4d7249];return _0x1b311d;}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a22_0x1876de(0x198),'type':a22_0x1876de(0x1b1),'description':a22_0x1876de(0x1c4),'default':![]};function a22_0x1895(){const _0x4d4e38=['pretty','get','Missing\x20key\x20argument.','\x20(global)','Get\x20a\x20config\x20value','Settable\x20keys:\x20','project-or-global-explicit','args','format','Write\x20to\x20global\x20config','keys','config','split','alias','read','4620558rPPnPO','value','347896heDhuv','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','validation','includes','trim','`\x20=\x20\x22','297NAMvZv','log','join','\x20config\x20set\x20<key>\x20<value>\x20[--global]','pageSize','key','(none)','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','../../context.js','1219029PCqAWx','length','87990InjEBN','delete','518540OWZfGV','List\x20current\x20config','global','Key\x20\x22','Top-level\x20key\x20\x22','Set\x20a\x20config\x20value','apps','5IGbQfa','object','30WJYJNh','appcode','Set\x20`','write','171299ErnKLo','raw','field','Usage:\x20','Deleted\x20`','Key\x20not\x20found:\x20','Value\x20to\x20assign',';\x20apps.<alias>.appcode','9CaeUQa','\x22\x20not\x20found\x20at\x20top\x20level.','\x20\x20project:\x20','4903380gTvsrO','\x20config\x20delete\x20<key>\x20[--global]','stringify','boolean','bool','14DYOwsX','pageSize\x20must\x20be\x20a\x20positive\x20number','list','isArray','riskLevel','\x22.\x20Allowed:\x20','set','Config\x20files:\x0a'];a22_0x1895=function(){return _0x4d4e38;};return a22_0x1895();}function parseAliasAppcodeSetKey(_0x136d02){const _0x39f979=a22_0x1876de,_0x490616=_0x136d02[_0x39f979(0x1c7)]('.');if(_0x490616[_0x39f979(0x1dc)]!==0x3||_0x490616[0x0]!==_0x39f979(0x19c)||_0x490616[0x2]!==_0x39f979(0x1a0))return undefined;const _0x5ede3e=_0x490616[0x1]?.[_0x39f979(0x1d0)]();return _0x5ede3e?_0x5ede3e:undefined;}function parseAliasDeleteKey(_0x5d2c68){const _0x167485=a22_0x1876de,_0x1f2557=_0x5d2c68[_0x167485(0x1c7)]('.');if(_0x1f2557[_0x167485(0x1dc)]===0x2&&_0x1f2557[0x0]===_0x167485(0x19c)){const _0x214da4=_0x1f2557[0x1]?.[_0x167485(0x1d0)]();return _0x214da4?{'alias':_0x214da4}:undefined;}if(_0x1f2557[_0x167485(0x1dc)]===0x3&&_0x1f2557[0x0]==='apps'&&_0x1f2557[0x2]===_0x167485(0x1a0)){const _0x50e76d=_0x1f2557[0x1]?.[_0x167485(0x1d0)]();return _0x50e76d?{'alias':_0x50e76d,'field':_0x167485(0x1a0)}:undefined;}return undefined;}function setLocalAppAlias(_0x591ca1,_0x9fab2b,_0x297ea1){const _0x305c04=a22_0x1876de,_0x16649a=_0x591ca1['apps']&&typeof _0x591ca1[_0x305c04(0x19c)]===_0x305c04(0x19e)&&!Array['isArray'](_0x591ca1['apps'])?_0x591ca1[_0x305c04(0x19c)]:{},_0x222ed7=_0x16649a[_0x9fab2b]&&typeof _0x16649a[_0x9fab2b]===_0x305c04(0x19e)&&!Array['isArray'](_0x16649a[_0x9fab2b])?_0x16649a[_0x9fab2b]:{};_0x222ed7[_0x305c04(0x1a0)]=_0x297ea1,_0x16649a[_0x9fab2b]=_0x222ed7,_0x591ca1['apps']=_0x16649a;}function deleteLocalAppAlias(_0x160fcc,_0x4139d3){const _0x32d8b3=a22_0x1876de;if(!_0x160fcc[_0x32d8b3(0x19c)]||typeof _0x160fcc[_0x32d8b3(0x19c)]!=='object'||Array[_0x32d8b3(0x1b6)](_0x160fcc['apps']))return![];const _0xfed90f=_0x160fcc[_0x32d8b3(0x19c)],_0x2c5018=_0xfed90f[_0x4139d3['alias']];if(!_0x2c5018||typeof _0x2c5018!==_0x32d8b3(0x19e)||Array[_0x32d8b3(0x1b6)](_0x2c5018))return![];if(!_0x4139d3['field'])return delete _0xfed90f[_0x4139d3[_0x32d8b3(0x1c8)]],!![];if(!(_0x4139d3[_0x32d8b3(0x1a5)]in _0x2c5018))return![];return delete _0x2c5018[_0x4139d3[_0x32d8b3(0x1a5)]],Object[_0x32d8b3(0x1c5)](_0x2c5018)[_0x32d8b3(0x1dc)]===0x0&&delete _0xfed90f[_0x4139d3[_0x32d8b3(0x1c8)]],!![];}const listDef={'service':'config','command':a22_0x1876de(0x1b5),'description':a22_0x1876de(0x197),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x4b0ffd){const _0x58ebbe=a22_0x1876de,{buildConfigFromFlags:_0x1a828f}=await import(_0x58ebbe(0x1da)),_0x1f12e9=_0x1a828f({}),_0x391b70=getProjectConfigPath(),_0x572d27=resolveWriteConfigPath(_0x58ebbe(0x198));if(_0x4b0ffd[_0x58ebbe(0x1c3)]===_0x58ebbe(0x1bb))return{'ok':!![],'message':_0x58ebbe(0x1d9)+(JSON[_0x58ebbe(0x1b0)](_0x1f12e9[_0x58ebbe(0x1a4)],null,0x2)+'\x0a\x0a')+_0x58ebbe(0x1ba)+(_0x58ebbe(0x1ad)+(_0x391b70??_0x58ebbe(0x1d8))+'\x0a')+('\x20\x20global:\x20\x20'+_0x572d27)};return{'ok':!![],'data':{'effective':_0x1f12e9[_0x58ebbe(0x1a4)],'configFiles':{'project':_0x391b70??null,'global':_0x572d27}}};}},getDef={'service':a22_0x1876de(0x1c6),'command':a22_0x1876de(0x1bc),'description':a22_0x1876de(0x1bf),'risk':a22_0x1876de(0x1c9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x1876de(0x1d7),'description':a22_0x1876de(0x1cd),'required':!![]}],'flags':[],async 'execute'(_0x44d90d){const _0x52e647=a22_0x1876de,_0x4e296d=_0x44d90d[_0x52e647(0x1c2)][0x0];if(!_0x4e296d)throw CliErrors[_0x52e647(0x1ce)](_0x52e647(0x1bd),_0x52e647(0x1a6)+CLI_BIN_NAME+'\x20config\x20get\x20<key>');const {buildConfigFromFlags:_0x5c334f}=await import(_0x52e647(0x1da)),{raw:_0x1155dc}=_0x5c334f({});if(_0x4e296d[_0x52e647(0x1cf)]('.')){const _0x504a3e=_0x4e296d['split']('.');let _0x2f142c=_0x1155dc;for(const _0x5bb4f9 of _0x504a3e){if(_0x2f142c==null||typeof _0x2f142c!=='object')throw CliErrors['validation'](_0x52e647(0x1a8)+_0x4e296d);_0x2f142c=_0x2f142c[_0x5bb4f9];}if(_0x2f142c===undefined)throw CliErrors[_0x52e647(0x1ce)]('Key\x20not\x20found:\x20'+_0x4e296d);return console[_0x52e647(0x1d3)](typeof _0x2f142c===_0x52e647(0x19e)?JSON[_0x52e647(0x1b0)](_0x2f142c,null,0x2):String(_0x2f142c)),{'ok':!![]};}const _0x342c54=_0x1155dc[_0x4e296d];if(_0x342c54===undefined)throw CliErrors[_0x52e647(0x1ce)](_0x52e647(0x1a8)+_0x4e296d);return console[_0x52e647(0x1d3)](typeof _0x342c54===_0x52e647(0x19e)?JSON[_0x52e647(0x1b0)](_0x342c54,null,0x2):String(_0x342c54)),{'ok':!![]};}},setDef={'service':a22_0x1876de(0x1c6),'command':a22_0x1876de(0x1b9),'description':a22_0x1876de(0x19b),'risk':a22_0x1876de(0x1a2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x1876de(0x1d7),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x1876de(0x1cb),'description':a22_0x1876de(0x1a9),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x3a5d49){const _0x33bf1b=a22_0x1876de,_0x73b636=_0x3a5d49[_0x33bf1b(0x1c2)][0x0],_0x2c4cb6=_0x3a5d49[_0x33bf1b(0x1c2)][0x1];if(!_0x73b636||_0x2c4cb6===undefined)throw CliErrors[_0x33bf1b(0x1ce)]('Missing\x20key\x20or\x20value.','Usage:\x20'+CLI_BIN_NAME+_0x33bf1b(0x1d5));if(ENUM_KEYS[_0x73b636]&&!ENUM_KEYS[_0x73b636][_0x33bf1b(0x1cf)](_0x2c4cb6))throw CliErrors[_0x33bf1b(0x1ce)]('Invalid\x20value\x20for\x20\x22'+_0x73b636+_0x33bf1b(0x1b8)+ENUM_KEYS[_0x73b636][_0x33bf1b(0x1d4)](',\x20'));if(_0x73b636===_0x33bf1b(0x1b7))throw CliErrors['validation']('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(_0x73b636===_0x33bf1b(0x1d6)){const _0x3a476b=Number(_0x2c4cb6);if(isNaN(_0x3a476b)||_0x3a476b<=0x0)throw CliErrors[_0x33bf1b(0x1ce)](_0x33bf1b(0x1b4));}const _0x36fddd=resolveWriteScope({'explicitGlobal':_0x3a5d49[_0x33bf1b(0x1b2)](_0x33bf1b(0x198)),'policy':_0x33bf1b(0x1c1)}),_0x2270e9=toScopeFlags(_0x36fddd),_0x5a57de=readScopedConfig(_0x2270e9),_0x1a1b41=parseAliasAppcodeSetKey(_0x73b636);if(!_0x1a1b41&&!isTopLevelConfigKey(_0x73b636))throw CliErrors[_0x33bf1b(0x1ce)](_0x33bf1b(0x19a)+_0x73b636+'\x22\x20is\x20not\x20settable.',_0x33bf1b(0x1c0)+getTopLevelConfigKeySummary()+_0x33bf1b(0x1aa));return _0x1a1b41?setLocalAppAlias(_0x5a57de,_0x1a1b41,_0x2c4cb6):_0x5a57de[_0x73b636]=_0x73b636===_0x33bf1b(0x1d6)?Number(_0x2c4cb6):_0x2c4cb6,console[_0x33bf1b(0x1d3)](_0x33bf1b(0x1a1)+_0x73b636+_0x33bf1b(0x1d1)+_0x2c4cb6+'\x22'+(_0x36fddd===_0x33bf1b(0x198)?_0x33bf1b(0x1be):'')),writeScopedConfig(_0x5a57de,_0x2270e9),{'ok':!![]};}},deleteDef={'service':a22_0x1876de(0x1c6),'command':a22_0x1876de(0x195),'description':'Delete\x20a\x20config\x20value','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x1876de(0x1d7),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0xf83779){const _0x35b6d4=a22_0x1876de,_0x11a8b6=_0xf83779[_0x35b6d4(0x1c2)][0x0];if(!_0x11a8b6)throw CliErrors[_0x35b6d4(0x1ce)](_0x35b6d4(0x1bd),_0x35b6d4(0x1a6)+CLI_BIN_NAME+_0x35b6d4(0x1af));const _0x3667ef=resolveWriteScope({'explicitGlobal':_0xf83779[_0x35b6d4(0x1b2)](_0x35b6d4(0x198)),'policy':_0x35b6d4(0x1c1)}),_0x354ff4=toScopeFlags(_0x3667ef),_0x35eb88=readScopedConfig(_0x354ff4),_0x3017b8=parseAliasDeleteKey(_0x11a8b6);if(_0x3017b8){if(!deleteLocalAppAlias(_0x35eb88,_0x3017b8))throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x11a8b6);return console['log'](_0x35b6d4(0x1a7)+_0x11a8b6+'`'+(_0x3667ef==='global'?_0x35b6d4(0x1be):'')),writeScopedConfig(_0x35eb88,_0x354ff4),{'ok':!![]};}if(_0x35eb88[_0x11a8b6]===undefined)throw CliErrors[_0x35b6d4(0x1ce)](_0x35b6d4(0x199)+_0x11a8b6+_0x35b6d4(0x1ac));return delete _0x35eb88[_0x11a8b6],console['log'](_0x35b6d4(0x1a7)+_0x11a8b6+'`'+(_0x3667ef===_0x35b6d4(0x198)?_0x35b6d4(0x1be):'')),writeScopedConfig(_0x35eb88,_0x354ff4),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a23_0x1d17(_0x450580,_0x521c93){_0x450580=_0x450580-0x17d;var _0x263bc3=a23_0x263b();var _0x1d1760=_0x263bc3[_0x450580];return _0x1d1760;}function a23_0x263b(){var _0x971663=['2586EYKdHL','100GUWmjZ','199780QtNWEv','1839636WXrkTQ','3096960QqplcW','54oCzMHg','3550248UBizIp','4VSiLIL','11CLjYtF','5270740kisrtB','5286725fKKJxD'];a23_0x263b=function(){return _0x971663;};return a23_0x263b();}(function(_0x53a956,_0x3ebc67){var _0x17cb06=a23_0x1d17,_0xf8fb33=_0x53a956();while(!![]){try{var _0x9f62b=parseInt(_0x17cb06(0x184))/0x1*(-parseInt(_0x17cb06(0x185))/0x2)+-parseInt(_0x17cb06(0x17f))/0x3+parseInt(_0x17cb06(0x180))/0x4*(parseInt(_0x17cb06(0x183))/0x5)+-parseInt(_0x17cb06(0x17e))/0x6*(parseInt(_0x17cb06(0x186))/0x7)+parseInt(_0x17cb06(0x17d))/0x8+parseInt(_0x17cb06(0x187))/0x9+parseInt(_0x17cb06(0x182))/0xa*(parseInt(_0x17cb06(0x181))/0xb);if(_0x9f62b===_0x3ebc67)break;else _0xf8fb33['push'](_0xf8fb33['shift']());}catch(_0x275e7c){_0xf8fb33['push'](_0xf8fb33['shift']());}}}(a23_0x263b,0x9409f));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';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a24_0x7e1114=a24_0x126b;function a24_0x5c17(){const _0xa0b8f2=['2367VKUAdk','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20\x20\x20$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}}','487077BMewOX','update','160184TLjtSW','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\x20\x20WHERE\x20OPERATORS','\x20\x20PAGINATION','\x20on\x20dataset\x20','build','code','now','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','210uSkyVL','map','16iIblfO','\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}','params','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','create','high-risk-write','getOne','risk','read','\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}','7640amWivs','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','write','221955SKVWBr','paramsHint','length','POST','Get\x20a\x20single\x20record\x20by\x20ID','batchCreate','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','aggregate','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\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}','body','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20AGGREGATE\x20TYPES','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\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}}','36WBGFhb','435258aXEksy','\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}}]}','operation','649546VqSzct','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','description','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','filter','\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\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\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}','Update\x20an\x20existing\x20record','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','str','dryRun','\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}}','delete','/api/{appCode}/','paramsRequired','\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}}','command','\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}}','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','1752850qGFnji','join','\x20completed\x20in\x20','\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','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status'];a24_0x5c17=function(){return _0xa0b8f2;};return a24_0x5c17();}(function(_0xeae650,_0x34b134){const _0x1ecc6a=a24_0x126b,_0x5771a5=_0xeae650();while(!![]){try{const _0x37feaa=parseInt(_0x1ecc6a(0xc6))/0x1+parseInt(_0x1ecc6a(0xc9))/0x2+parseInt(_0x1ecc6a(0x9b))/0x3*(-parseInt(_0x1ecc6a(0xa9))/0x4)+-parseInt(_0x1ecc6a(0xb6))/0x5*(parseInt(_0x1ecc6a(0xc5))/0x6)+-parseInt(_0x1ecc6a(0xa7))/0x7*(-parseInt(_0x1ecc6a(0x9d))/0x8)+-parseInt(_0x1ecc6a(0x95))/0x9*(-parseInt(_0x1ecc6a(0xb3))/0xa)+-parseInt(_0x1ecc6a(0x8e))/0xb;if(_0x37feaa===_0x34b134)break;else _0x5771a5['push'](_0x5771a5['shift']());}catch(_0x508289){_0x5771a5['push'](_0x5771a5['shift']());}}}(a24_0x5c17,0x76c79));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a24_0x126b(_0x343981,_0x2003be){_0x343981=_0x343981-0x8c;const _0x5c1720=a24_0x5c17();let _0x126b34=_0x5c1720[_0x343981];return _0x126b34;}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_0x7e1114(0xd1),'operation':a24_0x7e1114(0xd1),'risk':a24_0x7e1114(0xb1),'paramsRequired':![],'description':a24_0x7e1114(0xc3),'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20'+a24_0x7e1114(0xb4),'helpExtra':[a24_0x7e1114(0xa0),a24_0x7e1114(0xdf),a24_0x7e1114(0x9a),a24_0x7e1114(0xc4),a24_0x7e1114(0xd0),a24_0x7e1114(0x99),a24_0x7e1114(0xd9),'\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]}}',a24_0x7e1114(0xd2),a24_0x7e1114(0x92),a24_0x7e1114(0xdd),'',a24_0x7e1114(0xce),'\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}}]}',a24_0x7e1114(0xc7),'',a24_0x7e1114(0x8d),a24_0x7e1114(0xcf),a24_0x7e1114(0xbc),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a24_0x7e1114(0xa1),'\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.',a24_0x7e1114(0xe1),'\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)']['join']('\x0a')},{'command':a24_0x7e1114(0xaf),'operation':'getOne','risk':a24_0x7e1114(0xb1),'paramsRequired':!![],'description':a24_0x7e1114(0xba),'paramsHint':a24_0x7e1114(0x9e)},{'command':a24_0x7e1114(0xad),'operation':a24_0x7e1114(0xad),'risk':'write','paramsRequired':!![],'description':a24_0x7e1114(0x97),'paramsHint':a24_0x7e1114(0xcb)},{'command':'batchCreate','operation':a24_0x7e1114(0xbb),'risk':a24_0x7e1114(0xb5),'paramsRequired':!![],'description':a24_0x7e1114(0xe0),'paramsHint':a24_0x7e1114(0xbe)},{'command':a24_0x7e1114(0x9c),'operation':a24_0x7e1114(0x9c),'risk':'write','paramsRequired':!![],'description':a24_0x7e1114(0xd5),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20'+a24_0x7e1114(0xa6)},{'command':'delete','operation':a24_0x7e1114(0xda),'risk':a24_0x7e1114(0xae),'paramsRequired':!![],'description':a24_0x7e1114(0xac),'paramsHint':a24_0x7e1114(0x9e)},{'command':a24_0x7e1114(0xbd),'operation':a24_0x7e1114(0xbd),'risk':a24_0x7e1114(0xb1),'paramsRequired':![],'description':a24_0x7e1114(0xd6),'paramsHint':a24_0x7e1114(0x96)+a24_0x7e1114(0xc1),'helpExtra':[a24_0x7e1114(0xc2),'\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_0x7e1114(0xb2),a24_0x7e1114(0xaa),'\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}',a24_0x7e1114(0xbf),a24_0x7e1114(0xd4),'','\x20\x20PARAMS\x20STRUCTURE',a24_0x7e1114(0xd3),a24_0x7e1114(0xcc),a24_0x7e1114(0x8c),a24_0x7e1114(0x98),a24_0x7e1114(0x93),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','','\x20\x20EXAMPLES',a24_0x7e1114(0x94),a24_0x7e1114(0x91),'',a24_0x7e1114(0x9f),a24_0x7e1114(0xca),'','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'][a24_0x7e1114(0x8f)]('\x0a')}];function makeDataCommand(_0x37c863){const _0x4fcaa7=a24_0x7e1114,_0x47cbc6='data\x20'+_0x37c863['command'],_0x25dea0={'service':'data','command':_0x37c863[_0x4fcaa7(0xde)],'description':_0x37c863[_0x4fcaa7(0xcd)],'risk':_0x37c863[_0x4fcaa7(0xb0)],'helpExtra':_0x37c863['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x37c863[_0x4fcaa7(0xb7)]}],'validate':async _0x13f9e9=>{const _0x237d13=_0x4fcaa7;_0x37c863[_0x237d13(0xdc)]&&requireAnyOf(_0x13f9e9,[_0x237d13(0xab)],_0x47cbc6),_0x37c863[_0x237d13(0xc8)]===_0x237d13(0xbb)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x13f9e9[_0x237d13(0xd7)](_0x237d13(0xab)))),_0x37c863[_0x237d13(0xc8)]===_0x237d13(0x9c)&&parseUpdateIdsFromParams(parseJsonParams(_0x13f9e9['str'](_0x237d13(0xab)))??{});},async 'execute'(_0x282bb4){const _0x238d2b=_0x4fcaa7,_0xfbb9aa=_0x282bb4[_0x238d2b(0xd7)](_0x238d2b(0xa4)),_0x556b73=_0x37c863['operation']==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x282bb4[_0x238d2b(0xd7)](_0x238d2b(0xab)))):parseJsonParams(_0x282bb4[_0x238d2b(0xd7)]('params'))??{},_0x471786=_0x37c863['operation']==='update'?parseUpdateIdsFromParams(_0x556b73):undefined,_0x403e27=_0x471786?normalizeUpdateParamsForRuntime(_0x556b73,_0x471786):_0x556b73,_0x1ca3b8=Date[_0x238d2b(0xa5)](),_0x5a4d59=await executeData(_0xfbb9aa,_0x37c863[_0x238d2b(0xc8)],_0x403e27),_0x2632bf=Date[_0x238d2b(0xa5)]()-_0x1ca3b8,_0xe96ce2=_0x471786&&_0x471786[_0x238d2b(0xb8)]>0x1?buildBatchUpdateResult(_0x471786,_0x5a4d59):_0x5a4d59;return{'ok':!![],'data':{'result':_0xe96ce2,'elapsed':_0x2632bf},'message':'data\x20'+_0x37c863[_0x238d2b(0xde)]+_0x238d2b(0x90)+_0x2632bf+'ms'};}};return _0x37c863['risk']!=='read'&&(_0x25dea0[_0x4fcaa7(0xd8)]=async _0x1ea8b8=>{const _0x256567=_0x4fcaa7,_0xac21d9=_0x1ea8b8[_0x256567(0xd7)]('code'),_0xb412ca=_0x37c863['operation']===_0x256567(0xbb)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x1ea8b8[_0x256567(0xd7)]('params'))):parseJsonParams(_0x1ea8b8[_0x256567(0xd7)]('params'))??{};let _0x567d6d=_0xb412ca;if(_0x37c863[_0x256567(0xc8)]===_0x256567(0x9c)){const _0x9f52ac=parseUpdateIdsFromParams(_0xb412ca);_0x567d6d=normalizeUpdateParamsForRuntime(_0xb412ca,_0x9f52ac);}return dryRun(_0x256567(0xb9),_0x256567(0xdb)+_0xac21d9+'/'+_0x37c863['operation'])[_0x256567(0xc0)](_0x567d6d)[_0x256567(0xcd)]('Preview:\x20data\x20'+_0x37c863[_0x256567(0xde)]+_0x256567(0xa2)+_0xac21d9)[_0x256567(0xa3)]();}),_0x25dea0;}export const dataDefinitions=specs[a24_0x7e1114(0xa8)](makeDataCommand);function buildBatchUpdateResult(_0x454664,_0x374565){const _0x5b84d9=a24_0x7e1114;return{'operation':_0x5b84d9(0x9c),'mode':'batch','ids':_0x454664,'total':_0x454664[_0x5b84d9(0xb8)],'result':_0x374565};}
|
|
1
|
+
const a24_0x3fcf56=a24_0x4489;(function(_0x462fdd,_0x2f7818){const _0x50ede4=a24_0x4489,_0xf76a8c=_0x462fdd();while(!![]){try{const _0x4c822d=-parseInt(_0x50ede4(0xd1))/0x1+-parseInt(_0x50ede4(0x99))/0x2*(-parseInt(_0x50ede4(0xab))/0x3)+-parseInt(_0x50ede4(0x9b))/0x4+parseInt(_0x50ede4(0xbb))/0x5+parseInt(_0x50ede4(0xdc))/0x6+parseInt(_0x50ede4(0xcd))/0x7+parseInt(_0x50ede4(0xbd))/0x8*(-parseInt(_0x50ede4(0x91))/0x9);if(_0x4c822d===_0x2f7818)break;else _0xf76a8c['push'](_0xf76a8c['shift']());}catch(_0x3dbe5b){_0xf76a8c['push'](_0xf76a8c['shift']());}}}(a24_0x10b5,0xa4bfe));import{executeData}from'../../core/sdk-client.js';function a24_0x4489(_0x9f8a7,_0x5e0440){_0x9f8a7=_0x9f8a7-0x8c;const _0x10b5d7=a24_0x10b5();let _0x44897c=_0x10b5d7[_0x9f8a7];return _0x44897c;}import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';function a24_0x10b5(){const _0xf4e6ab=['\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','update','\x20\x20PAGINATION','command','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','risk','\x20\x20WHERE\x20OPERATORS','30273bXnPPs','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','Get\x20a\x20single\x20record\x20by\x20ID','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','description','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','high-risk-write','now','\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}}]}','join','data\x20','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','\x20\x20\x20\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}','1364600TfLWya','\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}','4635112DRBWiF','\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}}','str','\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}}','read','\x20\x20PARAMS\x20STRUCTURE','\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]}}','length','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\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}]','write','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','paramsHint','create','\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}}','paramsRequired','5757038sMZGdA','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','aggregate','302289YYUvZR','\x20\x20LOGICAL\x20COMBINATORS','delete','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','map','\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}}','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\x20completed\x20in\x20','dryRun','operation','\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}','2613216FEoNMt','params','\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','batch','Filter\x20dataset\x20records\x20with\x20query\x20conditions','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\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}}','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','\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}}','batchCreate','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','9XEqkrk','\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\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\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','/api/{appCode}/','194mysjVO','\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]','3812900txuUKT','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','body','\x20\x20AGGREGATE\x20TYPES','filter','helpExtra','\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}}'];a24_0x10b5=function(){return _0xf4e6ab;};return a24_0x10b5();}import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a24_0x3fcf56(0xa0),'operation':'filter','risk':a24_0x3fcf56(0xc1),'paramsRequired':![],'description':a24_0x3fcf56(0xe0),'paramsHint':a24_0x3fcf56(0xae)+a24_0x3fcf56(0xa4),'helpExtra':[a24_0x3fcf56(0xaa),'\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_0x3fcf56(0xa2),a24_0x3fcf56(0x8c),a24_0x3fcf56(0xc0),a24_0x3fcf56(0xbe),a24_0x3fcf56(0xcb),a24_0x3fcf56(0xc3),a24_0x3fcf56(0xb2),a24_0x3fcf56(0xd6),a24_0x3fcf56(0xe3),'',a24_0x3fcf56(0xd2),a24_0x3fcf56(0x92),a24_0x3fcf56(0xb6),'',a24_0x3fcf56(0x9c),a24_0x3fcf56(0x97),a24_0x3fcf56(0x9a),a24_0x3fcf56(0xc6),a24_0x3fcf56(0xcf),a24_0x3fcf56(0x94),'',a24_0x3fcf56(0xa6),a24_0x3fcf56(0x96),a24_0x3fcf56(0xc5),a24_0x3fcf56(0xe5)]['join']('\x0a')},{'command':'getOne','operation':'getOne','risk':a24_0x3fcf56(0xc1),'paramsRequired':!![],'description':a24_0x3fcf56(0xad),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a24_0x3fcf56(0xca),'operation':a24_0x3fcf56(0xca),'risk':a24_0x3fcf56(0xc7),'paramsRequired':!![],'description':'Create\x20a\x20new\x20record\x20in\x20a\x20dataset','paramsHint':a24_0x3fcf56(0xd4)},{'command':a24_0x3fcf56(0x8d),'operation':a24_0x3fcf56(0x8d),'risk':a24_0x3fcf56(0xc7),'paramsRequired':!![],'description':a24_0x3fcf56(0xd7),'paramsHint':a24_0x3fcf56(0x9d)},{'command':a24_0x3fcf56(0xa5),'operation':a24_0x3fcf56(0xa5),'risk':a24_0x3fcf56(0xc7),'paramsRequired':!![],'description':'Update\x20an\x20existing\x20record','paramsHint':a24_0x3fcf56(0xa8)+a24_0x3fcf56(0xb3)},{'command':a24_0x3fcf56(0xd3),'operation':a24_0x3fcf56(0xd3),'risk':a24_0x3fcf56(0xb4),'paramsRequired':!![],'description':a24_0x3fcf56(0xe1),'paramsHint':a24_0x3fcf56(0xe2)},{'command':a24_0x3fcf56(0xd0),'operation':a24_0x3fcf56(0xd0),'risk':a24_0x3fcf56(0xc1),'paramsRequired':![],'description':'Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','paramsHint':a24_0x3fcf56(0xc8)+a24_0x3fcf56(0x8e),'helpExtra':[a24_0x3fcf56(0x9f),a24_0x3fcf56(0xb1),a24_0x3fcf56(0xaf),'\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}',a24_0x3fcf56(0xdb),a24_0x3fcf56(0xba),a24_0x3fcf56(0xb9),a24_0x3fcf56(0xbc),'',a24_0x3fcf56(0xc2),a24_0x3fcf56(0xce),'\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_0x3fcf56(0x90),a24_0x3fcf56(0x93),a24_0x3fcf56(0xac),'','\x20\x20EXAMPLES',a24_0x3fcf56(0xa3),a24_0x3fcf56(0xde),'',a24_0x3fcf56(0x8f),a24_0x3fcf56(0x95),'',a24_0x3fcf56(0xe4)][a24_0x3fcf56(0xb7)]('\x0a')}];function makeDataCommand(_0x35713e){const _0x254c1d=a24_0x3fcf56,_0x4e8868='data\x20'+_0x35713e[_0x254c1d(0xa7)],_0x35e115={'service':'data','command':_0x35713e['command'],'description':_0x35713e[_0x254c1d(0xb0)],'risk':_0x35713e[_0x254c1d(0xa9)],'helpExtra':_0x35713e[_0x254c1d(0xa1)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x35713e[_0x254c1d(0xc9)]}],'validate':async _0xcdbcff=>{const _0x48840f=_0x254c1d;_0x35713e[_0x48840f(0xcc)]&&requireAnyOf(_0xcdbcff,[_0x48840f(0xdd)],_0x4e8868),_0x35713e[_0x48840f(0xda)]===_0x48840f(0x8d)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0xcdbcff[_0x48840f(0xbf)]('params'))),_0x35713e[_0x48840f(0xda)]===_0x48840f(0xa5)&&parseUpdateIdsFromParams(parseJsonParams(_0xcdbcff['str'](_0x48840f(0xdd)))??{});},async 'execute'(_0x226c0e){const _0x3cb7ca=_0x254c1d,_0x2f1b34=_0x226c0e[_0x3cb7ca(0xbf)]('code'),_0x2b95e6=_0x35713e[_0x3cb7ca(0xda)]===_0x3cb7ca(0x8d)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x226c0e[_0x3cb7ca(0xbf)](_0x3cb7ca(0xdd)))):parseJsonParams(_0x226c0e[_0x3cb7ca(0xbf)](_0x3cb7ca(0xdd)))??{},_0x15edde=_0x35713e[_0x3cb7ca(0xda)]===_0x3cb7ca(0xa5)?parseUpdateIdsFromParams(_0x2b95e6):undefined,_0x7b1596=_0x15edde?normalizeUpdateParamsForRuntime(_0x2b95e6,_0x15edde):_0x2b95e6,_0xf52b81=Date[_0x3cb7ca(0xb5)](),_0x227f1d=await executeData(_0x2f1b34,_0x35713e[_0x3cb7ca(0xda)],_0x7b1596),_0x511b83=Date[_0x3cb7ca(0xb5)]()-_0xf52b81,_0xa4b633=_0x15edde&&_0x15edde['length']>0x1?buildBatchUpdateResult(_0x15edde,_0x227f1d):_0x227f1d;return{'ok':!![],'data':{'result':_0xa4b633,'elapsed':_0x511b83},'message':_0x3cb7ca(0xb8)+_0x35713e[_0x3cb7ca(0xa7)]+_0x3cb7ca(0xd8)+_0x511b83+'ms'};}};return _0x35713e[_0x254c1d(0xa9)]!=='read'&&(_0x35e115[_0x254c1d(0xd9)]=async _0x5d7d68=>{const _0x1d52d6=_0x254c1d,_0x230c15=_0x5d7d68['str']('code'),_0x4beeb1=_0x35713e[_0x1d52d6(0xda)]===_0x1d52d6(0x8d)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5d7d68['str']('params'))):parseJsonParams(_0x5d7d68['str'](_0x1d52d6(0xdd)))??{};let _0x535f8c=_0x4beeb1;if(_0x35713e['operation']===_0x1d52d6(0xa5)){const _0x4599e8=parseUpdateIdsFromParams(_0x4beeb1);_0x535f8c=normalizeUpdateParamsForRuntime(_0x4beeb1,_0x4599e8);}return dryRun('POST',_0x1d52d6(0x98)+_0x230c15+'/'+_0x35713e[_0x1d52d6(0xda)])[_0x1d52d6(0x9e)](_0x535f8c)['description']('Preview:\x20data\x20'+_0x35713e[_0x1d52d6(0xa7)]+'\x20on\x20dataset\x20'+_0x230c15)['build']();}),_0x35e115;}export const dataDefinitions=specs[a24_0x3fcf56(0xd5)](makeDataCommand);function buildBatchUpdateResult(_0x31dfec,_0x527a85){const _0x345a11=a24_0x3fcf56;return{'operation':_0x345a11(0xa5),'mode':_0x345a11(0xdf),'ids':_0x31dfec,'total':_0x31dfec[_0x345a11(0xc4)],'result':_0x527a85};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a25_0x351a94=a25_0x1877;(function(_0x2259a6,_0x447a2b){const _0x13c772=a25_0x1877,_0x5d0b2b=_0x2259a6();while(!![]){try{const _0x430b5a=parseInt(_0x13c772(0x17d))/0x1+parseInt(_0x13c772(0x152))/0x2*(parseInt(_0x13c772(0x176))/0x3)+-parseInt(_0x13c772(0x163))/0x4+parseInt(_0x13c772(0x162))/0x5*(-parseInt(_0x13c772(0x17e))/0x6)+-parseInt(_0x13c772(0x15d))/0x7+-parseInt(_0x13c772(0x18b))/0x8+parseInt(_0x13c772(0x18d))/0x9;if(_0x430b5a===_0x447a2b)break;else _0x5d0b2b['push'](_0x5d0b2b['shift']());}catch(_0x49ca6b){_0x5d0b2b['push'](_0x5d0b2b['shift']());}}}(a25_0x168d,0x9940a));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a25_0x1877(_0x105990,_0x463a24){_0x105990=_0x105990-0x150;const _0x168d63=a25_0x168d();let _0x18771a=_0x168d63[_0x105990];return _0x18771a;}import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x519e94){const _0x12022f=a25_0x1877;if(_0x519e94['deleted'])return null;const _0x304904=Boolean(_0x519e94[_0x12022f(0x188)]!==undefined||_0x519e94[_0x12022f(0x187)]!==undefined);let _0x58ec96={};if(!_0x304904&&typeof _0x519e94[_0x12022f(0x154)]===_0x12022f(0x18c))try{_0x58ec96=JSON[_0x12022f(0x178)](_0x519e94['extend']);}catch{}const _0x420c30=_0x304904?_0x519e94[_0x12022f(0x183)]:_0x519e94[_0x12022f(0x15a)],_0x5a5150=_0x304904?_0x519e94[_0x12022f(0x188)]:_0x519e94[_0x12022f(0x183)],_0x550e51=_0x304904?_0x519e94[_0x12022f(0x187)]:_0x519e94[_0x12022f(0x158)]||_0x519e94[_0x12022f(0x159)],_0x1059c6=_0x304904?_0x519e94[_0x12022f(0x157)]===!![]:_0x58ec96[_0x12022f(0x157)]===!![],_0x2f0850=_0x304904?_0x519e94['required']===!![]:_0x58ec96[_0x12022f(0x190)]===!![],_0x544f83=_0x304904?_0x519e94[_0x12022f(0x182)]??null:_0x58ec96[_0x12022f(0x182)]??null,_0x3cc7c0={'name':_0x420c30,'displayName':_0x5a5150||_0x420c30,'type':_0x550e51,'dbType':_0x519e94['dbType'],'pk':_0x1059c6,'required':_0x2f0850,'description':_0x519e94[_0x12022f(0x161)]||undefined};return Array['isArray'](_0x544f83)&&_0x544f83['length']>0x0&&(_0x3cc7c0[_0x12022f(0x182)]=_0x544f83),_0x3cc7c0;}function a25_0x168d(){const _0x30368b=['map','404311sXyqJU','53196jkjJtC','filter','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','beforeScriptId','options','name','modelId','title','allFields','doType','displayName','properties','afterScriptId','1299976RUmWnw','string','2772459xfhgsa','datasetKey','entries','required','fields','method','responseBody','1858394QRvviC','requestFields','extend','object','operations','pkField','type','dataType','code','requestBody','relatedPageInfoList','5580498UnrVji','dataset','dbId','indexes','description','20AMdzkv','74648RLqdzR','columnCodeListWithDeleted','dbName','doVersion','deleted','responseFields','formatRules','host','detail','isArray','tableName','modifierIdField','source','path','dbtableConfig','appCode','createTimeField','length','validateRules','3QklXoe','read','parse','str','sourceType','trim'];a25_0x168d=function(){return _0x30368b;};return a25_0x168d();}function parseJsonMaybe(_0x5c80a2){const _0x5eb1eb=a25_0x1877;if(typeof _0x5c80a2!==_0x5eb1eb(0x18c))return _0x5c80a2;try{return JSON[_0x5eb1eb(0x178)](_0x5c80a2);}catch{return _0x5c80a2;}}function normalizeOperationEntry(_0x531d95,_0x37fad6){const _0x4414e9=a25_0x1877;if(!_0x37fad6||typeof _0x37fad6!==_0x4414e9(0x155))return null;if(!_0x37fad6['method']||!_0x37fad6[_0x4414e9(0x170)])return null;const _0x5596b5={'name':_0x531d95,'method':_0x37fad6[_0x4414e9(0x150)],'path':_0x37fad6[_0x4414e9(0x170)]};if(_0x37fad6[_0x4414e9(0x16a)])_0x5596b5[_0x4414e9(0x16a)]=_0x37fad6[_0x4414e9(0x16a)];if(_0x37fad6[_0x4414e9(0x15b)]!=null)_0x5596b5[_0x4414e9(0x15b)]=parseJsonMaybe(_0x37fad6['requestBody']);if(_0x37fad6[_0x4414e9(0x151)]!=null)_0x5596b5[_0x4414e9(0x151)]=parseJsonMaybe(_0x37fad6[_0x4414e9(0x151)]);if(_0x37fad6['beforeScriptId']!=null)_0x5596b5[_0x4414e9(0x181)]=_0x37fad6['beforeScriptId'];if(_0x37fad6[_0x4414e9(0x18a)]!=null)_0x5596b5[_0x4414e9(0x18a)]=_0x37fad6[_0x4414e9(0x18a)];if(Array[_0x4414e9(0x16c)](_0x37fad6[_0x4414e9(0x153)]))_0x5596b5[_0x4414e9(0x153)]=_0x37fad6[_0x4414e9(0x153)];if(Array[_0x4414e9(0x16c)](_0x37fad6['responseFields']))_0x5596b5[_0x4414e9(0x168)]=_0x37fad6['responseFields'];return _0x5596b5;}function summarizeDbtable(_0x2988f4){const _0x193f2a=a25_0x1877,_0x56e795={},_0x3836bb=[_0x193f2a(0x15f),_0x193f2a(0x165),_0x193f2a(0x16d),'datasetKey','pkField','allFields','logicField',_0x193f2a(0x173),'updateTimeField','creatorIdField','creatorNameField',_0x193f2a(0x16e),'modifierNameField','labelField','dblinkInfoDTO'];for(const _0x14ded7 of _0x3836bb){if(_0x2988f4[_0x14ded7]!==undefined)_0x56e795[_0x14ded7]=_0x2988f4[_0x14ded7];}return typeof _0x56e795[_0x193f2a(0x186)]===_0x193f2a(0x18c)&&_0x56e795[_0x193f2a(0x186)][_0x193f2a(0x174)]>0x0&&(_0x56e795['allFieldNames']=_0x56e795['allFields']['split'](',')[_0x193f2a(0x17c)](_0x57ae83=>_0x57ae83[_0x193f2a(0x17b)]())['filter'](Boolean)),_0x56e795;}function normalizeRelatedPages(_0x1f1e74){const _0xbbbd89=a25_0x1877;if(!Array[_0xbbbd89(0x16c)](_0x1f1e74))return[];return _0x1f1e74[_0xbbbd89(0x17f)](_0x5bdc5c=>_0x5bdc5c&&typeof _0x5bdc5c===_0xbbbd89(0x155))[_0xbbbd89(0x17c)](_0x3467cf=>({'id':_0x3467cf['id'],'type':_0x3467cf[_0xbbbd89(0x158)],'code':_0x3467cf['code'],'title':_0x3467cf[_0xbbbd89(0x185)],'deleted':_0x3467cf[_0xbbbd89(0x167)]===!![]}));}function normalizeFallbackFieldName(_0x2725ed,_0x2f0eff){const _0x5bcce6=_0x2725ed['trim']();if(!_0x5bcce6)return null;return{'name':_0x5bcce6,'displayName':_0x5bcce6,'type':undefined,'dbType':undefined,'pk':_0x5bcce6===_0x2f0eff,'required':![],'description':undefined};}async function loadListFieldFallback(_0x2d90e2,_0x1cf48b){const _0x4f8f60=a25_0x1877;if(!_0x2d90e2||!_0x1cf48b)return[];try{const _0x1b6055=await listDatasets(_0x2d90e2,{'code':_0x1cf48b}),_0x13fc37=_0x1b6055['find'](_0xbe2a74=>_0xbe2a74[_0x4f8f60(0x15a)]===_0x1cf48b)??_0x1b6055[0x0],_0x3a721b=_0x13fc37?.[_0x4f8f60(0x171)]??{},_0x810377=typeof _0x3a721b[_0x4f8f60(0x186)]==='string'?_0x3a721b[_0x4f8f60(0x186)]['split'](','):[];return _0x810377[_0x4f8f60(0x17c)](_0x492fd1=>normalizeFallbackFieldName(_0x492fd1,_0x3a721b[_0x4f8f60(0x157)]))[_0x4f8f60(0x17f)](_0x5e7a18=>_0x5e7a18!==null);}catch{return[];}}export const datasetDetail={'service':a25_0x351a94(0x15e),'command':a25_0x351a94(0x16b),'description':a25_0x351a94(0x180),'risk':a25_0x351a94(0x177),'flags':[CODE_FLAG],async 'execute'(_0xc571b5){const _0x3d02d3=a25_0x351a94,_0x32cd4d=await getDatasetDetail(_0xc571b5[_0x3d02d3(0x179)](_0x3d02d3(0x15a))),_0x14ac75=Array[_0x3d02d3(0x16c)](_0x32cd4d['fields'])?_0x32cd4d[_0x3d02d3(0x191)]:Array['isArray'](_0x32cd4d[_0x3d02d3(0x189)])?_0x32cd4d[_0x3d02d3(0x189)]:[];let _0x50b8d3=_0x14ac75[_0x3d02d3(0x17c)](_0x11ae51=>normalizeField(_0x11ae51))[_0x3d02d3(0x17f)](_0x410851=>_0x410851!==null);_0x50b8d3[_0x3d02d3(0x174)]===0x0&&(_0x50b8d3=await loadListFieldFallback(_0xc571b5[_0x3d02d3(0x172)],_0xc571b5[_0x3d02d3(0x179)](_0x3d02d3(0x15a))));const _0x5b44a3=_0x32cd4d[_0x3d02d3(0x156)]??{},_0x51744f=[];for(const [_0x5a373c,_0x1ebe3c]of Object[_0x3d02d3(0x18f)](_0x5b44a3)){const _0x313cb1=normalizeOperationEntry(_0x5a373c,_0x1ebe3c);if(_0x313cb1)_0x51744f['push'](_0x313cb1);}const _0xbe7077=_0x32cd4d[_0x3d02d3(0x171)]??{},_0x1e135f=_0x32cd4d[_0x3d02d3(0x15e)]??{},_0x29e440=_0xbe7077[_0x3d02d3(0x15f)]!=null?{'id':_0xbe7077[_0x3d02d3(0x15f)],'name':_0xbe7077['dbName']??null}:undefined;let _0x39ee97;return typeof _0x32cd4d[_0x3d02d3(0x154)]==='string'&&(_0x39ee97=parseJsonMaybe(_0x32cd4d[_0x3d02d3(0x154)])),{'ok':!![],'data':{'id':_0x32cd4d[_0x3d02d3(0x184)]??_0x32cd4d['id'],'name':_0x32cd4d['name'],'code':_0x32cd4d['modelCode']||_0x32cd4d[_0x3d02d3(0x15a)],'doVersion':_0x32cd4d[_0x3d02d3(0x166)],'description':_0x32cd4d['description']||_0x1e135f['tableComment']||undefined,'source':_0x32cd4d[_0x3d02d3(0x16f)]||_0x1e135f[_0x3d02d3(0x17a)],'table':_0xbe7077[_0x3d02d3(0x16d)]||_0x1e135f[_0x3d02d3(0x16d)],'datasetKey':_0xbe7077[_0x3d02d3(0x18e)],'pk':_0xbe7077[_0x3d02d3(0x157)],'db':_0x29e440,'dbtable':summarizeDbtable(_0xbe7077),'fields':_0x50b8d3,'operations':_0x51744f,'indexes':Array[_0x3d02d3(0x16c)](_0x1e135f[_0x3d02d3(0x160)])?_0x1e135f['indexes']:[],'relations':_0x32cd4d['relations']??null,'relatedPages':normalizeRelatedPages(_0x32cd4d[_0x3d02d3(0x15c)]),...Array[_0x3d02d3(0x16c)](_0x32cd4d[_0x3d02d3(0x164)])?{'columnCodeListWithDeleted':_0x32cd4d[_0x3d02d3(0x164)]}:{},'formatRules':Array[_0x3d02d3(0x16c)](_0x32cd4d[_0x3d02d3(0x169)])?_0x32cd4d['formatRules']:[],'validateRules':Array[_0x3d02d3(0x16c)](_0x32cd4d[_0x3d02d3(0x175)])?_0x32cd4d[_0x3d02d3(0x175)]:[],..._0x39ee97!==undefined?{'extend':_0x39ee97}:{},'stats':{'fieldCount':_0x50b8d3[_0x3d02d3(0x174)],'operationCount':_0x51744f[_0x3d02d3(0x174)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a26_0x184b(_0x348131,_0x2f5982){_0x348131=_0x348131-0x123;const _0xad5a7a=a26_0xad5a();let _0x184b9a=_0xad5a7a[_0x348131];return _0x184b9a;}(function(_0x3c1974,_0x2a8090){const _0x2a3450=a26_0x184b,_0x53285b=_0x3c1974();while(!![]){try{const _0x2de625=parseInt(_0x2a3450(0x12a))/0x1*(-parseInt(_0x2a3450(0x125))/0x2)+-parseInt(_0x2a3450(0x126))/0x3*(-parseInt(_0x2a3450(0x129))/0x4)+-parseInt(_0x2a3450(0x12c))/0x5+parseInt(_0x2a3450(0x12b))/0x6*(parseInt(_0x2a3450(0x12d))/0x7)+-parseInt(_0x2a3450(0x127))/0x8+-parseInt(_0x2a3450(0x124))/0x9*(parseInt(_0x2a3450(0x128))/0xa)+parseInt(_0x2a3450(0x123))/0xb;if(_0x2de625===_0x2a8090)break;else _0x53285b['push'](_0x53285b['shift']());}catch(_0x197641){_0x53285b['push'](_0x53285b['shift']());}}}(a26_0xad5a,0x2b6a3));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];function a26_0xad5a(){const _0x55f721=['7fyCSnv','7799506IEPlgi','27cpbVit','2vrrndU','164382gDuCye','1538224pojNgz','945950xaAJxX','4LnPMtz','45463ErZkRq','1307514NUbyjM','1412030UXorXz'];a26_0xad5a=function(){return _0x55f721;};return a26_0xad5a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a27_0x6219c3=a27_0x4bd0;function a27_0x4bd0(_0x12000b,_0x14db88){_0x12000b=_0x12000b-0x1f2;const _0x455849=a27_0x4558();let _0x4bd089=_0x455849[_0x12000b];return _0x4bd089;}(function(_0x2fb415,_0x7ec2b5){const _0x46a393=a27_0x4bd0,_0x3aa58e=_0x2fb415();while(!![]){try{const _0xf43d9a=-parseInt(_0x46a393(0x1ff))/0x1+parseInt(_0x46a393(0x201))/0x2+-parseInt(_0x46a393(0x200))/0x3+-parseInt(_0x46a393(0x1f2))/0x4*(-parseInt(_0x46a393(0x1f9))/0x5)+parseInt(_0x46a393(0x1f8))/0x6*(-parseInt(_0x46a393(0x206))/0x7)+parseInt(_0x46a393(0x1fb))/0x8+-parseInt(_0x46a393(0x20b))/0x9*(parseInt(_0x46a393(0x1f4))/0xa);if(_0xf43d9a===_0x7ec2b5)break;else _0x3aa58e['push'](_0x3aa58e['shift']());}catch(_0x54ecb1){_0x3aa58e['push'](_0x3aa58e['shift']());}}}(a27_0x4558,0x1ef34));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a27_0x6219c3(0x204),'command':a27_0x6219c3(0x1fd),'description':a27_0x6219c3(0x205),'risk':'read','flags':[{'name':'name','type':'string','description':a27_0x6219c3(0x209)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x21cef8){const _0x5d1c88=a27_0x6219c3,_0x4023cc=_0x21cef8['str'](_0x5d1c88(0x203)),_0xfe6f29=_0x21cef8[_0x5d1c88(0x1f6)](_0x5d1c88(0x208)),_0x18d33c=await listDatasets(_0x21cef8['appCode'],{..._0x4023cc&&{'name':_0x4023cc},..._0xfe6f29&&{'code':_0xfe6f29}});return{'ok':!![],'data':{'total':_0x18d33c[_0x5d1c88(0x1f7)],'datasets':_0x18d33c[_0x5d1c88(0x1f5)](_0x57da0e=>{const _0x55b4c7=_0x5d1c88,_0x8f13eb=_0x57da0e[_0x55b4c7(0x1fc)]??{};return{'id':_0x57da0e['id'],'code':_0x57da0e[_0x55b4c7(0x208)],'name':_0x57da0e[_0x55b4c7(0x203)],'source':_0x57da0e['source'],'description':_0x57da0e[_0x55b4c7(0x207)],'table':_0x8f13eb[_0x55b4c7(0x1fe)],'datasetKey':_0x8f13eb[_0x55b4c7(0x1fa)],'pk':_0x8f13eb[_0x55b4c7(0x20a)],'fields':_0x8f13eb[_0x55b4c7(0x202)]?_0x8f13eb[_0x55b4c7(0x202)][_0x55b4c7(0x1f3)](',')[_0x55b4c7(0x1f5)](_0x20fc07=>_0x20fc07['trim']()):[]};})}};}};function a27_0x4558(){const _0x582b0c=['625484OZudeA','split','50tRJkkp','map','str','length','6dTaVAy','5wjcHTR','datasetKey','428112VqADiQ','dbtableConfig','list','tableName','7598wsAyMw','572430IgRPhz','499072jsqRat','allFields','name','dataset','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','109172oMxaDa','description','code','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','pkField','213561UoEdPr'];a27_0x4558=function(){return _0x582b0c;};return a27_0x4558();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a28_0xb4d923=a28_0x4433;function a28_0x4433(_0x3c87c3,_0x33571e){_0x3c87c3=_0x3c87c3-0x138;const _0x234595=a28_0x2345();let _0x4433da=_0x234595[_0x3c87c3];return _0x4433da;}function a28_0x2345(){const _0x437041=['551410fvTwDf','24612iFPrdJ','dataset','506575sKlJkh','2zEvBqn','6177126QdwTMj','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','37724730xKYDMM','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','4535428bdRgVZ','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','233046HNywbB','1336Lxvnby','string','3KfVTBM','appCode'];a28_0x2345=function(){return _0x437041;};return a28_0x2345();}(function(_0x37cb05,_0x4df321){const _0x118932=a28_0x4433,_0x3a69d6=_0x37cb05();while(!![]){try{const _0x2b5c93=parseInt(_0x118932(0x13e))/0x1*(-parseInt(_0x118932(0x142))/0x2)+parseInt(_0x118932(0x13c))/0x3*(-parseInt(_0x118932(0x147))/0x4)+parseInt(_0x118932(0x141))/0x5+-parseInt(_0x118932(0x143))/0x6+-parseInt(_0x118932(0x13f))/0x7*(parseInt(_0x118932(0x13a))/0x8)+parseInt(_0x118932(0x139))/0x9+parseInt(_0x118932(0x145))/0xa;if(_0x2b5c93===_0x4df321)break;else _0x3a69d6['push'](_0x3a69d6['shift']());}catch(_0x44efdf){_0x3a69d6['push'](_0x3a69d6['shift']());}}}(a28_0x2345,0x91eda));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a28_0xb4d923(0x144);export function formatDatasetSdkMarkdown(_0x42d756){const _0x25b8ef=a28_0xb4d923,_0x13b4ee=typeof _0x42d756===_0x25b8ef(0x13b)?_0x42d756['trim']():'';return _0x13b4ee||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a28_0xb4d923(0x140),'command':'sdk-doc','description':a28_0xb4d923(0x138),'risk':'read','flags':[{...CODE_FLAG,'description':a28_0xb4d923(0x146)}],async 'execute'(_0x2ea378){const _0x1f788f=a28_0xb4d923,_0x44fe5c=_0x2ea378['str']('code'),_0x18a468=await getDatasetSdkUsageDoc(_0x44fe5c,_0x2ea378[_0x1f788f(0x13d)]);return{'ok':!![],'data':{'code':_0x44fe5c,'appCode':_0x2ea378[_0x1f788f(0x13d)],'markdown':formatDatasetSdkMarkdown(_0x18a468)}};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0xd24bd6=a29_0x46e6;(function(_0x3f1f8a,_0x4979a7){const _0x10d014=a29_0x46e6,_0x4fe609=_0x3f1f8a();while(!![]){try{const _0x524a73=-parseInt(_0x10d014(0x128))/0x1*(-parseInt(_0x10d014(0x126))/0x2)+-parseInt(_0x10d014(0x145))/0x3+parseInt(_0x10d014(0x160))/0x4+parseInt(_0x10d014(0x15e))/0x5+parseInt(_0x10d014(0x142))/0x6*(-parseInt(_0x10d014(0x115))/0x7)+-parseInt(_0x10d014(0x156))/0x8*(-parseInt(_0x10d014(0x155))/0x9)+parseInt(_0x10d014(0x13f))/0xa*(-parseInt(_0x10d014(0x11d))/0xb);if(_0x524a73===_0x4979a7)break;else _0x4fe609['push'](_0x4fe609['shift']());}catch(_0x53aab0){_0x4fe609['push'](_0x4fe609['shift']());}}}(a29_0x296c,0x31b0e));import a29_0x336855 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';function a29_0x46e6(_0x29d62e,_0x3e8396){_0x29d62e=_0x29d62e-0x110;const _0x296c2d=a29_0x296c();let _0x46e640=_0x296c2d[_0x29d62e];return _0x46e640;}import{isLegacyCompatConfigKey}from'../config/schema.js';function a29_0x296c(){const _0x1fa27f=['\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','commandCount','appCode','\x20\x20Config\x20JSON','green','\x20\x20API\x20Endpoints','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','message','currentApp','Diagnose\x20CLI\x20configuration\x20and\x20environment','(not\x20found)','defaultApp','✓\x20Loaded','riskLevel','10rqpLAc','arch','\x20\x20Session\x20check:\x20\x20\x20','1080318SOxzVv','\x20doctor','length','996894IKdnuw','(set,\x20length=','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','gray','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','bold','\x20commands)','status','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','red','\x20\x20runtimeDomain:\x20\x20\x20','yellow','repeat','padEnd','(none)','\x20\x20Service\x20Tree','705933SlpcKV','40OuDXsO','ClientAk','✓\x20Valid\x20JSON','\x20\x20Auth','locale','(default)','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','406820zyyner','format','1194124sFVeOn','name','source','\x20\x20Config\x20Files','\x20(accessKey)','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Global','\x20\x20─','✗\x20Invalid\x20JSON','version','14woKVQZ','serviceCount','\x20\x20auth\x20(effective):\x20','missing','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(removed\x20—\x20cookie\x20auth\x20disabled)','1851212tKDYhG','empty','(no\x20file)','env','\x20(legacy/compat\x20only)','✗\x20Invalid','(missing)','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','4RczBtd','\x20Imported\x20from:\x20','146075YJgNqK','accessKey','check','(unnamed)','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','registryPath'];a29_0x296c=function(){return _0x1fa27f;};return a29_0x296c();}import{inspectServiceRegistry}from'../commands/service/registry.js';async function execute(_0xfa298d){const _0xf70e27=a29_0x46e6,_0x29909b=getCliVersion(),_0x97428=buildConfigFromFlags({});await initGlobalEnvironment(_0x97428),console['log'](),console[_0xf70e27(0x125)](a29_0x336855[_0xf70e27(0x14a)](CLI_BIN_NAME+_0xf70e27(0x143))),console['log'](a29_0x336855['gray']('─'[_0xf70e27(0x151)](0x32))),console[_0xf70e27(0x125)](_0xf70e27(0x12d)+_0x29909b),console[_0xf70e27(0x125)](_0xf70e27(0x137)+process[_0xf70e27(0x114)]),console[_0xf70e27(0x125)](_0xf70e27(0x12e)+process['platform']+'\x20'+process[_0xf70e27(0x140)]),console['log'](),console[_0xf70e27(0x125)](a29_0x336855[_0xf70e27(0x14a)](_0xf70e27(0x163))),console[_0xf70e27(0x125)](a29_0x336855[_0xf70e27(0x148)](_0xf70e27(0x112)['repeat'](0x1e)));const _0x1af0a9=getGlobalConfigPath(),_0x173086=getProjectConfigPath();console['log'](_0xf70e27(0x131)+(_0x1af0a9||a29_0x336855[_0xf70e27(0x148)](_0xf70e27(0x13b)))),console[_0xf70e27(0x125)](_0xf70e27(0x119)+(_0x173086||a29_0x336855[_0xf70e27(0x148)](_0xf70e27(0x13b)))),console['log'](),console[_0xf70e27(0x125)](a29_0x336855['bold'](_0xf70e27(0x134))),console[_0xf70e27(0x125)](a29_0x336855[_0xf70e27(0x148)](_0xf70e27(0x112)[_0xf70e27(0x151)](0x1e)));const _0x9ec865=(_0x39a2a9,_0x4c08dd)=>{const _0x3ae21b=_0xf70e27;if(!_0x4c08dd){console[_0x3ae21b(0x125)]('\x20\x20'+_0x39a2a9[_0x3ae21b(0x152)](0x11)+'\x20'+a29_0x336855[_0x3ae21b(0x148)](_0x3ae21b(0x11f)));return;}const _0xa4f644=inspectCliConfigJsonFile(_0x4c08dd);if(_0xa4f644[_0x3ae21b(0x14c)]==='ok')console[_0x3ae21b(0x125)]('\x20\x20'+_0x39a2a9[_0x3ae21b(0x152)](0x11)+'\x20'+a29_0x336855[_0x3ae21b(0x135)](_0x3ae21b(0x158)));else{if(_0xa4f644['status']===_0x3ae21b(0x11e))console[_0x3ae21b(0x125)]('\x20\x20'+_0x39a2a9['padEnd'](0x11)+'\x20'+a29_0x336855[_0x3ae21b(0x150)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0xa4f644['status']===_0x3ae21b(0x118)?console[_0x3ae21b(0x125)]('\x20\x20'+_0x39a2a9[_0x3ae21b(0x152)](0x11)+'\x20'+a29_0x336855[_0x3ae21b(0x148)](_0x3ae21b(0x123))):(console[_0x3ae21b(0x125)]('\x20\x20'+_0x39a2a9[_0x3ae21b(0x152)](0x11)+'\x20'+a29_0x336855['red'](_0x3ae21b(0x113))),console['log']('\x20\x20'+''[_0x3ae21b(0x152)](0x11)+'\x20'+a29_0x336855[_0x3ae21b(0x14e)](_0xa4f644[_0x3ae21b(0x138)])));}};_0x9ec865(_0xf70e27(0x111),_0x1af0a9),_0x9ec865('Project',_0x173086),console[_0xf70e27(0x125)](),console[_0xf70e27(0x125)](a29_0x336855[_0xf70e27(0x14a)]('\x20\x20Merged\x20Config')),console[_0xf70e27(0x125)](a29_0x336855[_0xf70e27(0x148)](_0xf70e27(0x112)[_0xf70e27(0x151)](0x1e))),console[_0xf70e27(0x125)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x97428[_0xf70e27(0x133)]||a29_0x336855['red']('(not\x20set)'))),console[_0xf70e27(0x125)](_0xf70e27(0x15c)+_0x97428[_0xf70e27(0x120)]);const _0x556f2e=isLegacyCompatConfigKey(_0xf70e27(0x15a))?a29_0x336855['gray'](_0x97428[_0xf70e27(0x15a)]+_0xf70e27(0x121)):_0x97428[_0xf70e27(0x15a)];console[_0xf70e27(0x125)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x556f2e),console[_0xf70e27(0x125)](_0xf70e27(0x147)+(_0x97428[_0xf70e27(0x13c)]||a29_0x336855[_0xf70e27(0x148)]('(none)'))),console[_0xf70e27(0x125)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x97428[_0xf70e27(0x139)]||a29_0x336855[_0xf70e27(0x148)]('(none)'))),console['log']('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x97428[_0xf70e27(0x15f)]||a29_0x336855['gray']('(default:\x20'+DEFAULT_CONFIG_VALUES[_0xf70e27(0x15f)]+')'))),console[_0xf70e27(0x125)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x97428['pageSize']??a29_0x336855[_0xf70e27(0x148)](_0xf70e27(0x15b)))),console[_0xf70e27(0x125)](_0xf70e27(0x149)+_0x97428[_0xf70e27(0x13e)]),console[_0xf70e27(0x125)](_0xf70e27(0x110)+_0x97428[_0xf70e27(0x15d)]),console[_0xf70e27(0x125)](_0xf70e27(0x117)+AUTH_MODE[_0xf70e27(0x157)]),console[_0xf70e27(0x125)](_0xf70e27(0x12c)+(_0x97428[_0xf70e27(0x129)]?a29_0x336855[_0xf70e27(0x135)](_0xf70e27(0x146)+_0x97428[_0xf70e27(0x129)][_0xf70e27(0x144)]+')'):a29_0x336855[_0xf70e27(0x148)](_0xf70e27(0x153)))),console[_0xf70e27(0x125)](),console[_0xf70e27(0x125)](a29_0x336855[_0xf70e27(0x14a)](_0xf70e27(0x136))),console[_0xf70e27(0x125)](a29_0x336855[_0xf70e27(0x148)]('\x20\x20─'[_0xf70e27(0x151)](0x1e))),console['log']('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0xf70e27(0x125)](_0xf70e27(0x11b)+getUserDomain()),console[_0xf70e27(0x125)](_0xf70e27(0x14f)+getRuntimeDomain()),console[_0xf70e27(0x125)](),console['log'](a29_0x336855[_0xf70e27(0x14a)](_0xf70e27(0x154))),console[_0xf70e27(0x125)](a29_0x336855['gray']('\x20\x20─'[_0xf70e27(0x151)](0x1e)));const _0x50f96d=inspectServiceRegistry();console['log']('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x50f96d[_0xf70e27(0x12f)]),console[_0xf70e27(0x125)](_0xf70e27(0x130)+formatServiceRegistryStatus(_0x50f96d)),console[_0xf70e27(0x125)]('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x50f96d[_0xf70e27(0x116)]),console[_0xf70e27(0x125)](_0xf70e27(0x14d)+_0x50f96d[_0xf70e27(0x132)]);for(const _0xc120c9 of _0x50f96d['services']){console[_0xf70e27(0x125)]('\x20\x20'+(_0xc120c9['serviceCode']+':')['padEnd'](0x11)+'\x20'+(_0xc120c9[_0xf70e27(0x161)]||a29_0x336855['gray'](_0xf70e27(0x12b)))+'\x20('+_0xc120c9[_0xf70e27(0x132)]+_0xf70e27(0x14b)),console['log']('\x20\x20'+''[_0xf70e27(0x152)](0x11)+_0xf70e27(0x127)+_0xc120c9[_0xf70e27(0x162)]['path']);}return console[_0xf70e27(0x125)](),console[_0xf70e27(0x125)](a29_0x336855[_0xf70e27(0x14a)](_0xf70e27(0x159))),console[_0xf70e27(0x125)](a29_0x336855[_0xf70e27(0x148)]('\x20\x20─'[_0xf70e27(0x151)](0x1e))),console[_0xf70e27(0x125)](_0xf70e27(0x124)+a29_0x336855['green'](AUTH_MODE[_0xf70e27(0x157)]+_0xf70e27(0x164))),console[_0xf70e27(0x125)](_0xf70e27(0x141)+a29_0x336855[_0xf70e27(0x148)](_0xf70e27(0x11c))),console[_0xf70e27(0x125)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x4b633d){const _0x5bd1b4=a29_0x46e6;if(_0x4b633d[_0x5bd1b4(0x14c)]==='ok')return a29_0x336855['green'](_0x5bd1b4(0x13d));if(_0x4b633d[_0x5bd1b4(0x14c)]===_0x5bd1b4(0x118))return a29_0x336855['gray']('(not\x20found)');if(_0x4b633d['status']==='empty')return a29_0x336855[_0x5bd1b4(0x150)]('⚠\x20Empty');return a29_0x336855[_0x5bd1b4(0x14e)](_0x5bd1b4(0x122)+(_0x4b633d[_0x5bd1b4(0x138)]?':\x20'+_0x4b633d['message']:''));}export const doctorDefinition={'service':a29_0xd24bd6(0x11a),'command':a29_0xd24bd6(0x12a),'description':a29_0xd24bd6(0x13a),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|