@lovrabet/lovrabet-cli 2.1.8 → 2.1.9-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a14_0x15f9c7=a14_0x1259;(function(_0x25e6e3,_0x33a749){const _0x116e37=a14_0x1259,_0x19be19=_0x25e6e3();while(!![]){try{const _0xff0a84=parseInt(_0x116e37(0xc7))/0x1*(-parseInt(_0x116e37(0xca))/0x2)+-parseInt(_0x116e37(0xc5))/0x3+parseInt(_0x116e37(0xcc))/0x4*(-parseInt(_0x116e37(0xc9))/0x5)+-parseInt(_0x116e37(0xbe))/0x6*(-parseInt(_0x116e37(0xc2))/0x7)+-parseInt(_0x116e37(0xcb))/0x8+-parseInt(_0x116e37(0xcf))/0x9*(-parseInt(_0x116e37(0xc8))/0xa)+parseInt(_0x116e37(0xc0))/0xb;if(_0xff0a84===_0x33a749)break;else _0x19be19['push'](_0x19be19['shift']());}catch(_0x25f746){_0x19be19['push'](_0x19be19['shift']());}}}(a14_0x1c41,0x9591d));import{getBffScriptInfo}from'../../core/api-client.js';function a14_0x1c41(){const _0x3f842e=['(none)','bff','createdTime','verbose','bool','5689014lyFjFX','appCode','2651660QIWnKB','Get\x20BFF\x20script\x20details\x20by\x20ID','7ofUUuW','read','description','2445528vjjiKA','Script\x20ID','175844nhdZue','1500680gXoLel','1193795IkELKt','8InTRKD','158600hXzzFi','4sVZquN','updatedTime','functionName','72IJzewV','num'];a14_0x1c41=function(){return _0x3f842e;};return a14_0x1c41();}function a14_0x1259(_0x1bca1b,_0x427da0){_0x1bca1b=_0x1bca1b-0xbd;const _0x1c4196=a14_0x1c41();let _0x1259de=_0x1c4196[_0x1bca1b];return _0x1259de;}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a14_0x15f9c7(0xd2),'command':'detail','description':a14_0x15f9c7(0xc1),'risk':a14_0x15f9c7(0xc3),'flags':[{...ID_FLAG,'description':a14_0x15f9c7(0xc6)},VERBOSE_FLAG],async 'execute'(_0x29be87){const _0x5435f2=a14_0x15f9c7,_0x1c507f=await getBffScriptInfo(_0x29be87[_0x5435f2(0xd0)]('id')),_0x2dadba=_0x29be87[_0x5435f2(0xbd)](_0x5435f2(0xd4));if(_0x2dadba)return{'ok':!![],'data':_0x1c507f};return{'ok':!![],'data':{'id':_0x1c507f['id'],'appCode':_0x1c507f[_0x5435f2(0xbf)],'functionName':_0x1c507f[_0x5435f2(0xce)]??'','scriptType':_0x1c507f['scriptType'],'description':_0x1c507f[_0x5435f2(0xc4)]||_0x5435f2(0xd1),'createdTime':_0x1c507f[_0x5435f2(0xd3)]??'','updatedTime':_0x1c507f[_0x5435f2(0xcd)]??''}};}};
|
package/lib/commands/bff/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15_0x491725=a15_0x23ae;(function(_0x54f194,_0x1846f2){const _0x5c255f=a15_0x23ae,_0x163ae2=_0x54f194();while(!![]){try{const _0x5b727e=-parseInt(_0x5c255f(0x168))/0x1+-parseInt(_0x5c255f(0x15c))/0x2+parseInt(_0x5c255f(0x161))/0x3*(parseInt(_0x5c255f(0x159))/0x4)+-parseInt(_0x5c255f(0x158))/0x5*(-parseInt(_0x5c255f(0x15e))/0x6)+parseInt(_0x5c255f(0x162))/0x7*(-parseInt(_0x5c255f(0x165))/0x8)+parseInt(_0x5c255f(0x15d))/0x9+parseInt(_0x5c255f(0x163))/0xa;if(_0x5b727e===_0x1846f2)break;else _0x163ae2['push'](_0x163ae2['shift']());}catch(_0x4399ed){_0x163ae2['push'](_0x163ae2['shift']());}}}(a15_0x26a7,0xbf2e3));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a15_0x26a7(){const _0x1ca467=['BFF\x20function\x20name\x20to\x20execute','2027586QLmHnt','12992067fIyEME','282852WKxXRe','params','now','255xfPcsr','182vRujOD','16508250CQyVqO','bff','388112soownl','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','str','764224mjMXtr','45NSTEFs','14296XvemVH','BFF\x20executed\x20in\x20'];a15_0x26a7=function(){return _0x1ca467;};return a15_0x26a7();}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a15_0x23ae(_0x3eaed5,_0x478edc){_0x3eaed5=_0x3eaed5-0x158;const _0x26a755=a15_0x26a7();let _0x23ae67=_0x26a755[_0x3eaed5];return _0x23ae67;}export const bffExec={'service':a15_0x491725(0x164),'command':'exec','description':a15_0x491725(0x166),'risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':a15_0x491725(0x15b)},PARAMS_FLAG],async 'execute'(_0x453206){const _0x1b3c68=a15_0x491725,_0x1c9da6=parseJsonParams(_0x453206['str'](_0x1b3c68(0x15f))),_0x2b3074=Date[_0x1b3c68(0x160)](),_0x48928c=await executeSdkBff(_0x453206[_0x1b3c68(0x167)]('name'),_0x1c9da6),_0x54621c=Date[_0x1b3c68(0x160)]()-_0x2b3074;return{'ok':!![],'data':{'result':_0x48928c,'elapsed':_0x54621c},'message':_0x1b3c68(0x15a)+_0x54621c+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x36c2fc,_0x38a259){const _0x1c2cf0=a16_0x2e9d,_0x2e7c5d=_0x36c2fc();while(!![]){try{const _0x329d0f=parseInt(_0x1c2cf0(0x13e))/0x1+parseInt(_0x1c2cf0(0x141))/0x2*(-parseInt(_0x1c2cf0(0x13c))/0x3)+-parseInt(_0x1c2cf0(0x144))/0x4*(parseInt(_0x1c2cf0(0x140))/0x5)+parseInt(_0x1c2cf0(0x13f))/0x6*(-parseInt(_0x1c2cf0(0x13d))/0x7)+parseInt(_0x1c2cf0(0x145))/0x8+parseInt(_0x1c2cf0(0x142))/0x9+-parseInt(_0x1c2cf0(0x13b))/0xa*(parseInt(_0x1c2cf0(0x143))/0xb);if(_0x329d0f===_0x38a259)break;else _0x2e7c5d['push'](_0x2e7c5d['shift']());}catch(_0x303901){_0x2e7c5d['push'](_0x2e7c5d['shift']());}}}(a16_0x38d1,0x8c1f9));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';function a16_0x2e9d(_0x2e5ce9,_0x5c0bb9){_0x2e5ce9=_0x2e5ce9-0x13b;const _0x38d1f4=a16_0x38d1();let _0x2e9ddc=_0x38d1f4[_0x2e5ce9];return _0x2e9ddc;}function a16_0x38d1(){const _0xcf5498=['1067xsRKXS','20VikuXm','4439896DwYFJA','21430VMmgGA','1648734dCqFrB','1614669YHWLrz','862040cfkjrJ','24mtarse','82625WqHHXY','2TmmAkI','8276940FhOJxK'];a16_0x38d1=function(){return _0xcf5498;};return a16_0x38d1();}export const bffDefinitions=[bffDetail,bffExec];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a17_0x2f63(_0x351950,_0x4befd3){_0x351950=_0x351950-0x1e8;const _0x13bad1=a17_0x13ba();let _0x2f63af=_0x13bad1[_0x351950];return _0x2f63af;}const a17_0x521693=a17_0x2f63;(function(_0x12082b,_0x2e32ea){const _0x33366f=a17_0x2f63,_0x126eab=_0x12082b();while(!![]){try{const _0x508e6f=parseInt(_0x33366f(0x1f1))/0x1+-parseInt(_0x33366f(0x205))/0x2*(parseInt(_0x33366f(0x1f9))/0x3)+parseInt(_0x33366f(0x1f6))/0x4+parseInt(_0x33366f(0x1f5))/0x5*(-parseInt(_0x33366f(0x1e9))/0x6)+parseInt(_0x33366f(0x1f0))/0x7+-parseInt(_0x33366f(0x202))/0x8*(parseInt(_0x33366f(0x1fe))/0x9)+-parseInt(_0x33366f(0x203))/0xa;if(_0x508e6f===_0x2e32ea)break;else _0x126eab['push'](_0x126eab['shift']());}catch(_0x99adbe){_0x126eab['push'](_0x126eab['shift']());}}}(a17_0x13ba,0x8e54b));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';function a17_0x13ba(){const _0xab140=['129626phAVDy','npx\x20skills\x20add\x20failed:\x20','36qIjlKG','error','inherit','log','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','info','../../skills/npx-skills-add.js','1460431MUQXKV','390763xdRFLq','nonInteractive','\x20-g\x20-y','install','124225DYESIh','3520376TRuSqO','write','cwd','3xaozHM','pipe','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','apiError','44235WTeGXN','\x20-g\x20-y)...','unknown','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','24vefBMC','6678750goGXhR','setLogPath'];a17_0x13ba=function(){return _0xab140;};return a17_0x13ba();}export const cliSkillDefinitions=[{'service':'cli-skill','command':a17_0x521693(0x1f4),'description':a17_0x521693(0x1fc),'risk':a17_0x521693(0x1f7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x348beb){const _0x12b163=a17_0x521693;logger[_0x12b163(0x204)](process[_0x12b163(0x1f8)]()),logger[_0x12b163(0x1ee)]('cli-skill-install','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.');const {LOVRABET_SKILL_SOURCE:_0x529df7,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x24105a,runNpxSkillsAddGlobal:_0x49fef0}=await import(_0x12b163(0x1ef)),_0x290b77=_0x348beb[_0x12b163(0x1f2)]?_0x12b163(0x1fa):_0x12b163(0x1eb);console['log'](_0x12b163(0x1ed)+_0x529df7+_0x12b163(0x1ff));const _0x57bdf7=_0x49fef0(process[_0x12b163(0x1f8)](),_0x529df7,{'stdio':_0x290b77});if(_0x57bdf7['skipped'])console[_0x12b163(0x1ec)]('Skipped\x20npx\x20('+_0x24105a+_0x12b163(0x1fb));else{if(_0x57bdf7['ok'])console['log']('CLI\x20Built-in\x20Skill\x20installed');else throw CliErrors[_0x12b163(0x1fd)](_0x12b163(0x1e8)+(_0x57bdf7[_0x12b163(0x1ea)]||_0x12b163(0x200)),_0x12b163(0x201)+_0x529df7+_0x12b163(0x1f3));}return{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x220f23,_0x46b323){const _0x1dd4ec=a18_0xcafb,_0x299c4b=_0x220f23();while(!![]){try{const _0x1818e8=-parseInt(_0x1dd4ec(0x17c))/0x1+-parseInt(_0x1dd4ec(0x189))/0x2*(-parseInt(_0x1dd4ec(0x18b))/0x3)+parseInt(_0x1dd4ec(0x18a))/0x4*(parseInt(_0x1dd4ec(0x176))/0x5)+-parseInt(_0x1dd4ec(0x17d))/0x6*(-parseInt(_0x1dd4ec(0x17a))/0x7)+parseInt(_0x1dd4ec(0x185))/0x8*(parseInt(_0x1dd4ec(0x182))/0x9)+-parseInt(_0x1dd4ec(0x181))/0xa+parseInt(_0x1dd4ec(0x17b))/0xb;if(_0x1818e8===_0x46b323)break;else _0x299c4b['push'](_0x299c4b['shift']());}catch(_0x2f2e92){_0x299c4b['push'](_0x299c4b['shift']());}}}(a18_0xffce,0xf32d9));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';function a18_0xcafb(_0x497096,_0x5bc660){_0x497096=_0x497096-0x175;const _0xffcec2=a18_0xffce();let _0xcafb9a=_0xffcec2[_0x497096];return _0xcafb9a;}export function resolveConfigScope(_0x122caf){const _0x50e809=a18_0xcafb,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x4fc3e0}=_0x122caf;if(explicitGlobal&&explicitProject)throw CliErrors['validation'](_0x50e809(0x180),_0x50e809(0x179));if(explicitGlobal)return _0x50e809(0x186);if(explicitProject)return _0x50e809(0x17e);switch(_0x4fc3e0){case _0x50e809(0x177):return'global';case _0x50e809(0x175):return _0x122caf[_0x50e809(0x184)]??isInProject()?'project':_0x50e809(0x186);case'project-or-global-explicit':if(!(_0x122caf[_0x50e809(0x184)]??isInProject()))throw CliErrors[_0x50e809(0x17f)](_0x50e809(0x178)+PRODUCT_CONFIG[_0x50e809(0x187)]+'\x20found).','Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG[_0x50e809(0x187)]+',\x20or\x20run\x20`'+CLI_BIN_NAME+_0x50e809(0x188));return'project';}}export function toScopeFlags(_0x5f193e){const _0x4a40bf=a18_0xcafb;return{'global':_0x5f193e===_0x4a40bf(0x186)};}function a18_0xffce(){const _0x4bac2c=['newConfigFileName','\x20init`\x20first.','99602PrUIvi','1749412hJeutS','6fAHXZK','project-default','5DguMbY','global-default','Not\x20inside\x20a\x20project\x20(no\x20','Use\x20only\x20one\x20config\x20scope\x20flag.','16317SGxYjB','12628330xynPDF','741843ROdecN','390oJvzzb','project','validation','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','14715240LRgFAI','63XEkvmX','\x20(global)','inProject','1569056POXhaS','global'];a18_0xffce=function(){return _0x4bac2c;};return a18_0xffce();}export function formatScopeLabel(_0x567d00){const _0x1cb6f5=a18_0xcafb;return _0x567d00===_0x1cb6f5(0x186)?_0x1cb6f5(0x183):'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x396585,_0x4e9777){const _0x523990=a19_0x3ed8,_0x3fce47=_0x396585();while(!![]){try{const _0x5ab891=parseInt(_0x523990(0x6b))/0x1+parseInt(_0x523990(0x7e))/0x2+parseInt(_0x523990(0x7d))/0x3+parseInt(_0x523990(0x6c))/0x4*(-parseInt(_0x523990(0x6f))/0x5)+-parseInt(_0x523990(0x69))/0x6+-parseInt(_0x523990(0x6a))/0x7*(parseInt(_0x523990(0x78))/0x8)+-parseInt(_0x523990(0x68))/0x9*(-parseInt(_0x523990(0x67))/0xa);if(_0x5ab891===_0x4e9777)break;else _0x3fce47['push'](_0x3fce47['shift']());}catch(_0x59d6ec){_0x3fce47['push'](_0x3fce47['shift']());}}}(a19_0x5ea7,0xcc6f0));import{CliErrors}from'../../errors.js';function isSet(_0x5dcf8b,_0x254705){const _0x19e832=_0x5dcf8b['flag'](_0x254705);return _0x19e832!==undefined&&_0x19e832!==''&&_0x19e832!==![]&&_0x19e832!==0x0;}function a19_0x3ed8(_0x45ad79,_0x283c2e){_0x45ad79=_0x45ad79-0x66;const _0x5ea7ba=a19_0x5ea7();let _0x3ed87d=_0x5ea7ba[_0x45ad79];return _0x3ed87d;}function fmtNames(_0x1be757){const _0x36ba02=a19_0x3ed8;return _0x1be757[_0x36ba02(0x7c)](_0x3c8744=>'--'+_0x3c8744)[_0x36ba02(0x7f)](',\x20');}export function requireOneOf(_0x5cc55b,_0x1e011b,_0x5cc752){const _0x58e5c2=a19_0x3ed8,_0x42f075=_0x1e011b[_0x58e5c2(0x79)](_0x15b27e=>isSet(_0x5cc55b,_0x15b27e));if(_0x42f075[_0x58e5c2(0x6e)]!==0x1)throw CliErrors[_0x58e5c2(0x77)](_0x42f075[_0x58e5c2(0x6e)]===0x0?_0x58e5c2(0x74)+fmtNames(_0x1e011b)+_0x58e5c2(0x72)+_0x5cc752+'`.':'Only\x20one\x20of\x20'+fmtNames(_0x1e011b)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x42f075)+'.',_0x42f075[_0x58e5c2(0x6e)]===0x0?_0x58e5c2(0x75)+fmtNames(_0x1e011b):_0x58e5c2(0x73));}function a19_0x5ea7(){const _0x53fbc7=[',\x20got\x20\x22','some','map','1193952kYoCjO','1467044qJvKsQ','join','Use\x20only\x20one\x20of:\x20','390qWBHqN','481266BrUtGQ','4864596afQgHh','34405dZiYRs','412558mGogsT','4UmZoJd','str','length','4820095ejThCM',':\x20expected\x20','test','\x20is\x20required\x20for\x20`','Remove\x20all\x20but\x20one.','Exactly\x20one\x20of\x20','Provide\x20one\x20of:\x20','Flags\x20','validation','1656tCBdJg','filter'];a19_0x5ea7=function(){return _0x53fbc7;};return a19_0x5ea7();}export function requireAnyOf(_0x3001eb,_0x336de7,_0x21b6eb){const _0x106d05=a19_0x3ed8;if(!_0x336de7[_0x106d05(0x7b)](_0x183073=>isSet(_0x3001eb,_0x183073)))throw CliErrors[_0x106d05(0x77)]('At\x20least\x20one\x20of\x20'+fmtNames(_0x336de7)+'\x20is\x20required\x20for\x20`'+_0x21b6eb+'`.',_0x106d05(0x75)+fmtNames(_0x336de7));}export function mutuallyExclusive(_0x52d330,_0x4775ee,_0x53e233){const _0xc8f966=a19_0x3ed8,_0x3d68b1=_0x4775ee[_0xc8f966(0x79)](_0x392d35=>isSet(_0x52d330,_0x392d35));if(_0x3d68b1[_0xc8f966(0x6e)]>0x1)throw CliErrors['validation'](_0xc8f966(0x76)+fmtNames(_0x3d68b1)+'\x20are\x20mutually\x20exclusive\x20for\x20`'+_0x53e233+'`.',_0xc8f966(0x66)+fmtNames(_0x4775ee));}export function validatePattern(_0x227970,_0x1590a6,_0x328e0a,_0x2fef42){const _0x1cc065=a19_0x3ed8,_0x178f35=_0x227970[_0x1cc065(0x6d)](_0x1590a6);if(_0x178f35&&!_0x328e0a[_0x1cc065(0x71)](_0x178f35))throw CliErrors['validation']('Invalid\x20--'+_0x1590a6+_0x1cc065(0x70)+_0x2fef42+_0x1cc065(0x7a)+_0x178f35+'\x22.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a20_0x1b92(){const _0x17a7f7=['code','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','Resource\x20name\x20for\x20lookup','params','153600qUwPmH','8900WWyhYa','194216KltwTX','Resource\x20ID','boolean','448314PWkikU','5411KPXlTF','number','116176eJubYA','string','verbose','sqlcode','741630GcCurF','name','189cfhBmZ'];a20_0x1b92=function(){return _0x17a7f7;};return a20_0x1b92();}const a20_0x56eb57=a20_0x5e56;(function(_0x4f25eb,_0x341f64){const _0x1e1254=a20_0x5e56,_0x17fa28=_0x4f25eb();while(!![]){try{const _0x4c7e1f=-parseInt(_0x1e1254(0x1c6))/0x1+-parseInt(_0x1e1254(0x1c1))/0x2+-parseInt(_0x1e1254(0x1cc))/0x3+-parseInt(_0x1e1254(0x1c2))/0x4+-parseInt(_0x1e1254(0x1c0))/0x5+parseInt(_0x1e1254(0x1c5))/0x6+-parseInt(_0x1e1254(0x1ce))/0x7*(-parseInt(_0x1e1254(0x1c8))/0x8);if(_0x4c7e1f===_0x341f64)break;else _0x17fa28['push'](_0x17fa28['shift']());}catch(_0x2976b7){_0x17fa28['push'](_0x17fa28['shift']());}}}(a20_0x1b92,0x1fda4));export const CODE_FLAG={'name':a20_0x56eb57(0x1cf),'type':'string','required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};export const SQLCODE_FLAG={'name':a20_0x56eb57(0x1cb),'type':a20_0x56eb57(0x1c9),'required':!![],'description':a20_0x56eb57(0x1d0),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0x56eb57(0x1d1)}};export const VERBOSE_FLAG={'name':a20_0x56eb57(0x1ca),'type':a20_0x56eb57(0x1c4),'description':'Return\x20full\x20raw\x20response\x20object'};export const PARAMS_FLAG={'name':a20_0x56eb57(0x1d3),'type':a20_0x56eb57(0x1c9),'description':'Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)'};export const NAME_FLAG={'name':a20_0x56eb57(0x1cd),'type':a20_0x56eb57(0x1c9),'description':a20_0x56eb57(0x1d2)};function a20_0x5e56(_0x2412da,_0x5a27fd){_0x2412da=_0x2412da-0x1c0;const _0x1b9216=a20_0x1b92();let _0x5e565a=_0x1b9216[_0x2412da];return _0x5e565a;}export const ID_FLAG={'name':'id','type':a20_0x56eb57(0x1c7),'required':!![],'description':a20_0x56eb57(0x1c3)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x9f0722,_0x2bba83){const _0x3cdd0a=a21_0x3235,_0x5b53f3=_0x9f0722();while(!![]){try{const _0x154589=parseInt(_0x3cdd0a(0x12a))/0x1+parseInt(_0x3cdd0a(0x12e))/0x2*(-parseInt(_0x3cdd0a(0x130))/0x3)+-parseInt(_0x3cdd0a(0x127))/0x4*(-parseInt(_0x3cdd0a(0x131))/0x5)+-parseInt(_0x3cdd0a(0x12c))/0x6*(parseInt(_0x3cdd0a(0x133))/0x7)+-parseInt(_0x3cdd0a(0x137))/0x8+parseInt(_0x3cdd0a(0x12b))/0x9+parseInt(_0x3cdd0a(0x125))/0xa*(parseInt(_0x3cdd0a(0x126))/0xb);if(_0x154589===_0x2bba83)break;else _0x5b53f3['push'](_0x5b53f3['shift']());}catch(_0x7ea700){_0x5b53f3['push'](_0x5b53f3['shift']());}}}(a21_0x5d8b,0x45206));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;function a21_0x3235(_0x2c8a08,_0x2d4bf4){_0x2c8a08=_0x2c8a08-0x125;const _0x5d8b24=a21_0x5d8b();let _0x3235e1=_0x5d8b24[_0x2c8a08];return _0x3235e1;}export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function a21_0x5d8b(){const _0x2aba38=['size','280563rEBCHZ','3216195XqcaRS','109482OOBmtz','isFile','22tquqnm','toFixed','110631AlCMBe','2491795ovTziq','File\x20is\x20not\x20a\x20regular\x20file:\x20','63dcJpxI','validation','ceil','trim','3975584erqezv','18910QvTeUd','1243hpnDRs','4JnnoVr','\x20path\x20is\x20required.'];a21_0x5d8b=function(){return _0x2aba38;};return a21_0x5d8b();}function formatBytes(_0x48018c){const _0x48dfa4=a21_0x3235;if(_0x48018c>=BYTES_PER_MB){const _0x48e77e=Math[_0x48dfa4(0x135)](_0x48018c/BYTES_PER_MB*0x64)/0x64;return _0x48e77e[_0x48dfa4(0x12f)](0x2)+'\x20MB';}return _0x48018c+'\x20B';}export function requireRuntimeUploadFile(_0x32cd5b,_0x1b9326){const _0x4b1ff0=a21_0x3235,_0x559aaa=_0x32cd5b[_0x4b1ff0(0x136)]();if(!_0x559aaa)throw CliErrors[_0x4b1ff0(0x134)](_0x1b9326+_0x4b1ff0(0x128));if(!existsSync(_0x559aaa))throw CliErrors[_0x4b1ff0(0x134)]('File\x20not\x20found:\x20'+_0x559aaa);const _0x54c98e=statSync(_0x559aaa);if(!_0x54c98e[_0x4b1ff0(0x12d)]())throw CliErrors[_0x4b1ff0(0x134)](_0x4b1ff0(0x132)+_0x559aaa);if(_0x54c98e[_0x4b1ff0(0x129)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x4b1ff0(0x134)]('File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20'+_0x559aaa+'\x20('+formatBytes(_0x54c98e[_0x4b1ff0(0x129)])+')');return{'path':_0x559aaa,'size':_0x54c98e[_0x4b1ff0(0x129)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a22_0xefaf(_0x2926e5,_0x19f6ee){_0x2926e5=_0x2926e5-0x13a;const _0x32a624=a22_0x32a6();let _0xefafbd=_0x32a624[_0x2926e5];return _0xefafbd;}const a22_0x27f826=a22_0xefaf;(function(_0x2a78b8,_0x519984){const _0x3d2eee=a22_0xefaf,_0x2ad1b7=_0x2a78b8();while(!![]){try{const _0x178206=parseInt(_0x3d2eee(0x168))/0x1+parseInt(_0x3d2eee(0x13d))/0x2+parseInt(_0x3d2eee(0x163))/0x3+-parseInt(_0x3d2eee(0x14b))/0x4+parseInt(_0x3d2eee(0x159))/0x5+parseInt(_0x3d2eee(0x153))/0x6*(-parseInt(_0x3d2eee(0x13f))/0x7)+-parseInt(_0x3d2eee(0x13e))/0x8;if(_0x178206===_0x519984)break;else _0x2ad1b7['push'](_0x2ad1b7['shift']());}catch(_0x14153f){_0x2ad1b7['push'](_0x2ad1b7['shift']());}}}(a22_0x32a6,0x76c8e));import{CliErrors}from'../../errors.js';function a22_0x32a6(){const _0x39a945=['join','boolean','Key\x20\x22','Key\x20not\x20found:\x20','pageSize','3107785JkVmhy','config','Deleted\x20`','Delete\x20a\x20config\x20value','includes','format','split','Top-level\x20key\x20\x22','Get\x20a\x20config\x20value','Config\x20files:\x0a','1974045mIJlxM','global','\x20\x20global:\x20\x20','\x20config\x20get\x20<key>','write','494362fphfbI','\x20\x20project:\x20','Value\x20to\x20assign','bool','object','length','read','Missing\x20key\x20argument.','stringify','appcode','isArray','alias','\x20(global)','get','validation','apps','raw','keys','pretty','project-or-global-explicit','trim','Invalid\x20value\x20for\x20\x22','246386tBDQZS','2208200PJkOdq','7VdSCvD','args','delete','../../context.js','value','Usage:\x20','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','set','riskLevel','Set\x20`','field','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','1812892vigznC','log','(none)','Write\x20to\x20global\x20config','pageSize\x20must\x20be\x20a\x20positive\x20number','key','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a',';\x20apps.<alias>.appcode','4088022FcvUPQ'];a22_0x32a6=function(){return _0x39a945;};return a22_0x32a6();}import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':'global','type':a22_0x27f826(0x155),'description':a22_0x27f826(0x14e),'default':![]};function parseAliasAppcodeSetKey(_0x515a24){const _0x278c95=a22_0x27f826,_0x34d0ab=_0x515a24['split']('.');if(_0x34d0ab[_0x278c95(0x16d)]!==0x3||_0x34d0ab[0x0]!==_0x278c95(0x177)||_0x34d0ab[0x2]!==_0x278c95(0x171))return undefined;const _0x2d3848=_0x34d0ab[0x1]?.[_0x278c95(0x13b)]();return _0x2d3848?_0x2d3848:undefined;}function parseAliasDeleteKey(_0x191271){const _0x5176e5=a22_0x27f826,_0x4e505a=_0x191271[_0x5176e5(0x15f)]('.');if(_0x4e505a[_0x5176e5(0x16d)]===0x2&&_0x4e505a[0x0]===_0x5176e5(0x177)){const _0x577ef2=_0x4e505a[0x1]?.[_0x5176e5(0x13b)]();return _0x577ef2?{'alias':_0x577ef2}:undefined;}if(_0x4e505a[_0x5176e5(0x16d)]===0x3&&_0x4e505a[0x0]===_0x5176e5(0x177)&&_0x4e505a[0x2]==='appcode'){const _0x36f4b8=_0x4e505a[0x1]?.[_0x5176e5(0x13b)]();return _0x36f4b8?{'alias':_0x36f4b8,'field':_0x5176e5(0x171)}:undefined;}return undefined;}function setLocalAppAlias(_0x1f7ebd,_0x5e33d7,_0x484530){const _0x3d2939=a22_0x27f826,_0x2833bc=_0x1f7ebd[_0x3d2939(0x177)]&&typeof _0x1f7ebd['apps']===_0x3d2939(0x16c)&&!Array[_0x3d2939(0x172)](_0x1f7ebd[_0x3d2939(0x177)])?_0x1f7ebd['apps']:{},_0xb23df7=_0x2833bc[_0x5e33d7]&&typeof _0x2833bc[_0x5e33d7]===_0x3d2939(0x16c)&&!Array[_0x3d2939(0x172)](_0x2833bc[_0x5e33d7])?_0x2833bc[_0x5e33d7]:{};_0xb23df7[_0x3d2939(0x171)]=_0x484530,_0x2833bc[_0x5e33d7]=_0xb23df7,_0x1f7ebd[_0x3d2939(0x177)]=_0x2833bc;}function deleteLocalAppAlias(_0x27721c,_0x541830){const _0xc8301a=a22_0x27f826;if(!_0x27721c[_0xc8301a(0x177)]||typeof _0x27721c[_0xc8301a(0x177)]!==_0xc8301a(0x16c)||Array[_0xc8301a(0x172)](_0x27721c[_0xc8301a(0x177)]))return![];const _0x5693a4=_0x27721c[_0xc8301a(0x177)],_0x56a5a0=_0x5693a4[_0x541830[_0xc8301a(0x173)]];if(!_0x56a5a0||typeof _0x56a5a0!==_0xc8301a(0x16c)||Array['isArray'](_0x56a5a0))return![];if(!_0x541830[_0xc8301a(0x149)])return delete _0x5693a4[_0x541830['alias']],!![];if(!(_0x541830['field']in _0x56a5a0))return![];return delete _0x56a5a0[_0x541830['field']],Object[_0xc8301a(0x179)](_0x56a5a0)[_0xc8301a(0x16d)]===0x0&&delete _0x5693a4[_0x541830[_0xc8301a(0x173)]],!![];}const listDef={'service':a22_0x27f826(0x15a),'command':'list','description':'List\x20current\x20config','risk':a22_0x27f826(0x16e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x39cfd3){const _0x4ed135=a22_0x27f826,{buildConfigFromFlags:_0xf03221}=await import(_0x4ed135(0x142)),_0x41c745=_0xf03221({}),_0x566ae1=getProjectConfigPath(),_0x745512=resolveWriteConfigPath(_0x4ed135(0x164));if(_0x39cfd3[_0x4ed135(0x15e)]===_0x4ed135(0x17a))return{'ok':!![],'message':_0x4ed135(0x151)+(JSON[_0x4ed135(0x170)](_0x41c745['raw'],null,0x2)+'\x0a\x0a')+_0x4ed135(0x162)+(_0x4ed135(0x169)+(_0x566ae1??_0x4ed135(0x14d))+'\x0a')+(_0x4ed135(0x165)+_0x745512)};return{'ok':!![],'data':{'effective':_0x41c745[_0x4ed135(0x178)],'configFiles':{'project':_0x566ae1??null,'global':_0x745512}}};}},getDef={'service':a22_0x27f826(0x15a),'command':a22_0x27f826(0x175),'description':a22_0x27f826(0x161),'risk':a22_0x27f826(0x16e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x27f826(0x150),'description':a22_0x27f826(0x14a),'required':!![]}],'flags':[],async 'execute'(_0x28bccc){const _0x19f078=a22_0x27f826,_0x3e67e6=_0x28bccc['args'][0x0];if(!_0x3e67e6)throw CliErrors[_0x19f078(0x176)](_0x19f078(0x16f),_0x19f078(0x144)+CLI_BIN_NAME+_0x19f078(0x166));const {buildConfigFromFlags:_0x5162bf}=await import(_0x19f078(0x142)),{raw:_0x272e1d}=_0x5162bf({});if(_0x3e67e6[_0x19f078(0x15d)]('.')){const _0x38edc0=_0x3e67e6[_0x19f078(0x15f)]('.');let _0x10520c=_0x272e1d;for(const _0x42ae9d of _0x38edc0){if(_0x10520c==null||typeof _0x10520c!=='object')throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x3e67e6);_0x10520c=_0x10520c[_0x42ae9d];}if(_0x10520c===undefined)throw CliErrors[_0x19f078(0x176)]('Key\x20not\x20found:\x20'+_0x3e67e6);return console[_0x19f078(0x14c)](typeof _0x10520c===_0x19f078(0x16c)?JSON[_0x19f078(0x170)](_0x10520c,null,0x2):String(_0x10520c)),{'ok':!![]};}const _0x2b1407=_0x272e1d[_0x3e67e6];if(_0x2b1407===undefined)throw CliErrors[_0x19f078(0x176)](_0x19f078(0x157)+_0x3e67e6);return console['log'](typeof _0x2b1407==='object'?JSON[_0x19f078(0x170)](_0x2b1407,null,0x2):String(_0x2b1407)),{'ok':!![]};}},setDef={'service':a22_0x27f826(0x15a),'command':a22_0x27f826(0x146),'description':'Set\x20a\x20config\x20value','risk':a22_0x27f826(0x167),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x27f826(0x150),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x27f826(0x143),'description':a22_0x27f826(0x16a),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x285379){const _0xe1ae7e=a22_0x27f826,_0x519057=_0x285379[_0xe1ae7e(0x140)][0x0],_0x27b662=_0x285379['args'][0x1];if(!_0x519057||_0x27b662===undefined)throw CliErrors[_0xe1ae7e(0x176)]('Missing\x20key\x20or\x20value.',_0xe1ae7e(0x144)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x519057]&&!ENUM_KEYS[_0x519057][_0xe1ae7e(0x15d)](_0x27b662))throw CliErrors['validation'](_0xe1ae7e(0x13c)+_0x519057+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x519057][_0xe1ae7e(0x154)](',\x20'));if(_0x519057===_0xe1ae7e(0x147))throw CliErrors[_0xe1ae7e(0x176)](_0xe1ae7e(0x145));if(_0x519057===_0xe1ae7e(0x158)){const _0x52db1e=Number(_0x27b662);if(isNaN(_0x52db1e)||_0x52db1e<=0x0)throw CliErrors[_0xe1ae7e(0x176)](_0xe1ae7e(0x14f));}const _0xb7be87=resolveWriteScope({'explicitGlobal':_0x285379[_0xe1ae7e(0x16b)](_0xe1ae7e(0x164)),'policy':'project-or-global-explicit'}),_0x831d93=toScopeFlags(_0xb7be87),_0x520774=readScopedConfig(_0x831d93),_0x221e1d=parseAliasAppcodeSetKey(_0x519057);if(!_0x221e1d&&!isTopLevelConfigKey(_0x519057))throw CliErrors[_0xe1ae7e(0x176)](_0xe1ae7e(0x160)+_0x519057+'\x22\x20is\x20not\x20settable.','Settable\x20keys:\x20'+getTopLevelConfigKeySummary()+_0xe1ae7e(0x152));return _0x221e1d?setLocalAppAlias(_0x520774,_0x221e1d,_0x27b662):_0x520774[_0x519057]=_0x519057===_0xe1ae7e(0x158)?Number(_0x27b662):_0x27b662,console[_0xe1ae7e(0x14c)](_0xe1ae7e(0x148)+_0x519057+'`\x20=\x20\x22'+_0x27b662+'\x22'+(_0xb7be87===_0xe1ae7e(0x164)?_0xe1ae7e(0x174):'')),writeScopedConfig(_0x520774,_0x831d93),{'ok':!![]};}},deleteDef={'service':a22_0x27f826(0x15a),'command':a22_0x27f826(0x141),'description':a22_0x27f826(0x15c),'risk':a22_0x27f826(0x167),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x27f826(0x150),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x3d49c3){const _0x246668=a22_0x27f826,_0x4b5024=_0x3d49c3[_0x246668(0x140)][0x0];if(!_0x4b5024)throw CliErrors[_0x246668(0x176)]('Missing\x20key\x20argument.','Usage:\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x28a632=resolveWriteScope({'explicitGlobal':_0x3d49c3[_0x246668(0x16b)](_0x246668(0x164)),'policy':_0x246668(0x13a)}),_0x20050a=toScopeFlags(_0x28a632),_0x20037a=readScopedConfig(_0x20050a),_0x991c77=parseAliasDeleteKey(_0x4b5024);if(_0x991c77){if(!deleteLocalAppAlias(_0x20037a,_0x991c77))throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x4b5024);return console['log']('Deleted\x20`'+_0x4b5024+'`'+(_0x28a632==='global'?_0x246668(0x174):'')),writeScopedConfig(_0x20037a,_0x20050a),{'ok':!![]};}if(_0x20037a[_0x4b5024]===undefined)throw CliErrors['validation'](_0x246668(0x156)+_0x4b5024+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0x20037a[_0x4b5024],console['log'](_0x246668(0x15b)+_0x4b5024+'`'+(_0x28a632===_0x246668(0x164)?_0x246668(0x174):'')),writeScopedConfig(_0x20037a,_0x20050a),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
1
|
+
const a22_0x4563bb=a22_0x51ab;(function(_0x585910,_0x9186e1){const _0x3190e0=a22_0x51ab,_0x5c7c38=_0x585910();while(!![]){try{const _0xca0d9a=-parseInt(_0x3190e0(0xa8))/0x1+parseInt(_0x3190e0(0xa2))/0x2+parseInt(_0x3190e0(0xcc))/0x3*(parseInt(_0x3190e0(0xa0))/0x4)+parseInt(_0x3190e0(0xc9))/0x5*(-parseInt(_0x3190e0(0x8f))/0x6)+-parseInt(_0x3190e0(0x9b))/0x7+-parseInt(_0x3190e0(0xa9))/0x8+parseInt(_0x3190e0(0xa6))/0x9*(parseInt(_0x3190e0(0xca))/0xa);if(_0xca0d9a===_0x9186e1)break;else _0x5c7c38['push'](_0x5c7c38['shift']());}catch(_0x3c7cf8){_0x5c7c38['push'](_0x5c7c38['shift']());}}}(a22_0x225d,0x60e52));import{CliErrors}from'../../errors.js';function a22_0x225d(){const _0x441cc3=['pageSize','stringify','args','\x20config\x20get\x20<key>','get','Config\x20files:\x0a','List\x20current\x20config','Set\x20a\x20config\x20value','trim','read','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','appcode','delete','\x22\x20is\x20not\x20settable.','includes','join','riskLevel','Get\x20a\x20config\x20value','pretty','\x20\x20global:\x20\x20','Delete\x20a\x20config\x20value','Key\x20not\x20found:\x20','list','\x20(global)','raw','139010MWoala','307460stFXfL','`\x20=\x20\x22','93OmHsfe','alias','key','24zCMNqg','Value\x20to\x20assign','\x22.\x20Allowed:\x20','Write\x20to\x20global\x20config','bool','\x22\x20not\x20found\x20at\x20top\x20level.','length','\x20\x20project:\x20','split','config','object','isArray','2652048qDqUUO','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','log','../../context.js','validation','96988aoNMKa','format','931636dEXgaE','Usage:\x20','field','set','171QndCgA','Missing\x20key\x20or\x20value.','546548VkYBnE','2945176kOWCoB','global','apps','project-or-global-explicit','Missing\x20key\x20argument.','Set\x20`','(none)'];a22_0x225d=function(){return _0x441cc3;};return a22_0x225d();}import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a22_0x4563bb(0xaa),'type':'boolean','description':a22_0x4563bb(0x92),'default':![]};function parseAliasAppcodeSetKey(_0x5a94ed){const _0x4877a4=a22_0x4563bb,_0x1c1be3=_0x5a94ed[_0x4877a4(0x97)]('.');if(_0x1c1be3['length']!==0x3||_0x1c1be3[0x0]!==_0x4877a4(0xab)||_0x1c1be3[0x2]!==_0x4877a4(0xbb))return undefined;const _0x5875e4=_0x1c1be3[0x1]?.[_0x4877a4(0xb8)]();return _0x5875e4?_0x5875e4:undefined;}function a22_0x51ab(_0x24b570,_0x4b4bf6){_0x24b570=_0x24b570-0x8f;const _0x225d4f=a22_0x225d();let _0x51ab5a=_0x225d4f[_0x24b570];return _0x51ab5a;}function parseAliasDeleteKey(_0x8811f){const _0x5282a7=a22_0x4563bb,_0x4303a6=_0x8811f[_0x5282a7(0x97)]('.');if(_0x4303a6['length']===0x2&&_0x4303a6[0x0]===_0x5282a7(0xab)){const _0x23dfae=_0x4303a6[0x1]?.[_0x5282a7(0xb8)]();return _0x23dfae?{'alias':_0x23dfae}:undefined;}if(_0x4303a6[_0x5282a7(0x95)]===0x3&&_0x4303a6[0x0]==='apps'&&_0x4303a6[0x2]===_0x5282a7(0xbb)){const _0x45be67=_0x4303a6[0x1]?.[_0x5282a7(0xb8)]();return _0x45be67?{'alias':_0x45be67,'field':_0x5282a7(0xbb)}:undefined;}return undefined;}function setLocalAppAlias(_0x330095,_0x593ed7,_0x46a708){const _0x59362f=a22_0x4563bb,_0x2b5634=_0x330095[_0x59362f(0xab)]&&typeof _0x330095[_0x59362f(0xab)]==='object'&&!Array[_0x59362f(0x9a)](_0x330095[_0x59362f(0xab)])?_0x330095[_0x59362f(0xab)]:{},_0x73cf3=_0x2b5634[_0x593ed7]&&typeof _0x2b5634[_0x593ed7]===_0x59362f(0x99)&&!Array[_0x59362f(0x9a)](_0x2b5634[_0x593ed7])?_0x2b5634[_0x593ed7]:{};_0x73cf3['appcode']=_0x46a708,_0x2b5634[_0x593ed7]=_0x73cf3,_0x330095[_0x59362f(0xab)]=_0x2b5634;}function deleteLocalAppAlias(_0x4e343f,_0xe44f6f){const _0x28cf4f=a22_0x4563bb;if(!_0x4e343f[_0x28cf4f(0xab)]||typeof _0x4e343f['apps']!==_0x28cf4f(0x99)||Array['isArray'](_0x4e343f[_0x28cf4f(0xab)]))return![];const _0x529990=_0x4e343f[_0x28cf4f(0xab)],_0x1e9c43=_0x529990[_0xe44f6f[_0x28cf4f(0xcd)]];if(!_0x1e9c43||typeof _0x1e9c43!==_0x28cf4f(0x99)||Array[_0x28cf4f(0x9a)](_0x1e9c43))return![];if(!_0xe44f6f['field'])return delete _0x529990[_0xe44f6f[_0x28cf4f(0xcd)]],!![];if(!(_0xe44f6f[_0x28cf4f(0xa4)]in _0x1e9c43))return![];return delete _0x1e9c43[_0xe44f6f['field']],Object['keys'](_0x1e9c43)[_0x28cf4f(0x95)]===0x0&&delete _0x529990[_0xe44f6f[_0x28cf4f(0xcd)]],!![];}const listDef={'service':'config','command':a22_0x4563bb(0xc6),'description':a22_0x4563bb(0xb6),'risk':a22_0x4563bb(0xb9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x597633){const _0x211d27=a22_0x4563bb,{buildConfigFromFlags:_0x1e9855}=await import(_0x211d27(0x9e)),_0x34e1c0=_0x1e9855({}),_0x1949c5=getProjectConfigPath(),_0x172377=resolveWriteConfigPath(_0x211d27(0xaa));if(_0x597633[_0x211d27(0xa1)]===_0x211d27(0xc2))return{'ok':!![],'message':_0x211d27(0x9c)+(JSON[_0x211d27(0xb1)](_0x34e1c0[_0x211d27(0xc8)],null,0x2)+'\x0a\x0a')+_0x211d27(0xb5)+(_0x211d27(0x96)+(_0x1949c5??_0x211d27(0xaf))+'\x0a')+(_0x211d27(0xc3)+_0x172377)};return{'ok':!![],'data':{'effective':_0x34e1c0[_0x211d27(0xc8)],'configFiles':{'project':_0x1949c5??null,'global':_0x172377}}};}},getDef={'service':a22_0x4563bb(0x98),'command':a22_0x4563bb(0xb4),'description':a22_0x4563bb(0xc1),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x4563bb(0xce),'description':'Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','required':!![]}],'flags':[],async 'execute'(_0x26afc4){const _0x4c2ed6=a22_0x4563bb,_0x320e8d=_0x26afc4[_0x4c2ed6(0xb2)][0x0];if(!_0x320e8d)throw CliErrors['validation'](_0x4c2ed6(0xad),'Usage:\x20'+CLI_BIN_NAME+_0x4c2ed6(0xb3));const {buildConfigFromFlags:_0x3586a5}=await import(_0x4c2ed6(0x9e)),{raw:_0x17e6e0}=_0x3586a5({});if(_0x320e8d[_0x4c2ed6(0xbe)]('.')){const _0x39de1f=_0x320e8d['split']('.');let _0x5bc7b6=_0x17e6e0;for(const _0x241301 of _0x39de1f){if(_0x5bc7b6==null||typeof _0x5bc7b6!==_0x4c2ed6(0x99))throw CliErrors['validation'](_0x4c2ed6(0xc5)+_0x320e8d);_0x5bc7b6=_0x5bc7b6[_0x241301];}if(_0x5bc7b6===undefined)throw CliErrors[_0x4c2ed6(0x9f)]('Key\x20not\x20found:\x20'+_0x320e8d);return console[_0x4c2ed6(0x9d)](typeof _0x5bc7b6===_0x4c2ed6(0x99)?JSON[_0x4c2ed6(0xb1)](_0x5bc7b6,null,0x2):String(_0x5bc7b6)),{'ok':!![]};}const _0x1e0b71=_0x17e6e0[_0x320e8d];if(_0x1e0b71===undefined)throw CliErrors[_0x4c2ed6(0x9f)](_0x4c2ed6(0xc5)+_0x320e8d);return console[_0x4c2ed6(0x9d)](typeof _0x1e0b71===_0x4c2ed6(0x99)?JSON[_0x4c2ed6(0xb1)](_0x1e0b71,null,0x2):String(_0x1e0b71)),{'ok':!![]};}},setDef={'service':'config','command':a22_0x4563bb(0xa5),'description':a22_0x4563bb(0xb7),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x4563bb(0xce),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':a22_0x4563bb(0x90),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x250986){const _0x588266=a22_0x4563bb,_0x168f57=_0x250986[_0x588266(0xb2)][0x0],_0x31de00=_0x250986[_0x588266(0xb2)][0x1];if(!_0x168f57||_0x31de00===undefined)throw CliErrors[_0x588266(0x9f)](_0x588266(0xa7),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x168f57]&&!ENUM_KEYS[_0x168f57]['includes'](_0x31de00))throw CliErrors[_0x588266(0x9f)]('Invalid\x20value\x20for\x20\x22'+_0x168f57+_0x588266(0x91)+ENUM_KEYS[_0x168f57][_0x588266(0xbf)](',\x20'));if(_0x168f57===_0x588266(0xc0))throw CliErrors[_0x588266(0x9f)](_0x588266(0xba));if(_0x168f57===_0x588266(0xb0)){const _0x1bbcea=Number(_0x31de00);if(isNaN(_0x1bbcea)||_0x1bbcea<=0x0)throw CliErrors[_0x588266(0x9f)]('pageSize\x20must\x20be\x20a\x20positive\x20number');}const _0x333424=resolveWriteScope({'explicitGlobal':_0x250986[_0x588266(0x93)]('global'),'policy':_0x588266(0xac)}),_0x7f6f3f=toScopeFlags(_0x333424),_0x2c2d30=readScopedConfig(_0x7f6f3f),_0x19c6c1=parseAliasAppcodeSetKey(_0x168f57);if(!_0x19c6c1&&!isTopLevelConfigKey(_0x168f57))throw CliErrors[_0x588266(0x9f)]('Top-level\x20key\x20\x22'+_0x168f57+_0x588266(0xbd),'Settable\x20keys:\x20'+getTopLevelConfigKeySummary()+';\x20apps.<alias>.appcode');return _0x19c6c1?setLocalAppAlias(_0x2c2d30,_0x19c6c1,_0x31de00):_0x2c2d30[_0x168f57]=_0x168f57===_0x588266(0xb0)?Number(_0x31de00):_0x31de00,console[_0x588266(0x9d)](_0x588266(0xae)+_0x168f57+_0x588266(0xcb)+_0x31de00+'\x22'+(_0x333424===_0x588266(0xaa)?_0x588266(0xc7):'')),writeScopedConfig(_0x2c2d30,_0x7f6f3f),{'ok':!![]};}},deleteDef={'service':a22_0x4563bb(0x98),'command':a22_0x4563bb(0xbc),'description':a22_0x4563bb(0xc4),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x4563bb(0xce),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x316f1e){const _0xe551d8=a22_0x4563bb,_0x238628=_0x316f1e[_0xe551d8(0xb2)][0x0];if(!_0x238628)throw CliErrors[_0xe551d8(0x9f)](_0xe551d8(0xad),_0xe551d8(0xa3)+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x269d7a=resolveWriteScope({'explicitGlobal':_0x316f1e[_0xe551d8(0x93)](_0xe551d8(0xaa)),'policy':'project-or-global-explicit'}),_0x39b6b0=toScopeFlags(_0x269d7a),_0x44bbdc=readScopedConfig(_0x39b6b0),_0x3ce465=parseAliasDeleteKey(_0x238628);if(_0x3ce465){if(!deleteLocalAppAlias(_0x44bbdc,_0x3ce465))throw CliErrors[_0xe551d8(0x9f)](_0xe551d8(0xc5)+_0x238628);return console[_0xe551d8(0x9d)]('Deleted\x20`'+_0x238628+'`'+(_0x269d7a===_0xe551d8(0xaa)?_0xe551d8(0xc7):'')),writeScopedConfig(_0x44bbdc,_0x39b6b0),{'ok':!![]};}if(_0x44bbdc[_0x238628]===undefined)throw CliErrors[_0xe551d8(0x9f)]('Key\x20\x22'+_0x238628+_0xe551d8(0x94));return delete _0x44bbdc[_0x238628],console['log']('Deleted\x20`'+_0x238628+'`'+(_0x269d7a===_0xe551d8(0xaa)?_0xe551d8(0xc7):'')),writeScopedConfig(_0x44bbdc,_0x39b6b0),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2f59ac,_0x376399){var _0x54dc17=a23_0x45b7,_0x3071f7=_0x2f59ac();while(!![]){try{var _0x5c6db9=parseInt(_0x54dc17(0xbf))/0x1*(parseInt(_0x54dc17(0xc3))/0x2)+-parseInt(_0x54dc17(0xbd))/0x3+parseInt(_0x54dc17(0xc4))/0x4*(-parseInt(_0x54dc17(0xc2))/0x5)+-parseInt(_0x54dc17(0xbe))/0x6*(parseInt(_0x54dc17(0xc1))/0x7)+parseInt(_0x54dc17(0xc5))/0x8+-parseInt(_0x54dc17(0xbc))/0x9+parseInt(_0x54dc17(0xc0))/0xa;if(_0x5c6db9===_0x376399)break;else _0x3071f7['push'](_0x3071f7['shift']());}catch(_0x3cbad3){_0x3071f7['push'](_0x3071f7['shift']());}}}(a23_0xd18d,0xa3dd5));function a23_0x45b7(_0xf64ba0,_0x4dfa33){_0xf64ba0=_0xf64ba0-0xbc;var _0xd18d73=a23_0xd18d();var _0x45b760=_0xd18d73[_0xf64ba0];return _0x45b760;}import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};function a23_0xd18d(){var _0xa5131c=['1318534XmJPwM','10vHpbmJ','2RqKWqx','1079804bbZxrI','2011392MoYebX','1225989LBdkxf','802659oNXtXJ','30EImCTZ','672757gEhzFD','16324940seDsBh'];a23_0xd18d=function(){return _0xa5131c;};return a23_0xd18d();}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
|
-
function a24_0x5354(_0x3d25c4,_0x51404c){_0x3d25c4=_0x3d25c4-0x97;const _0x352943=a24_0x3529();let _0x535450=_0x352943[_0x3d25c4];return _0x535450;}const a24_0x496c05=a24_0x5354;function a24_0x3529(){const _0x558db1=['dryRun','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20EXAMPLES','\x20\x20AGGREGATE\x20TYPES','2821VceamK','body','\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\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','delete','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','20889590WVfqjB','/api/{appCode}/','15416jjnPmC','create','\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}}','84VAfOHt','\x20\x20WHERE\x20OPERATORS','Preview:\x20data\x20','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20LOGICAL\x20COMBINATORS','\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$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,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','aggregate','18228aLEIkW','\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\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','1861821wbYRqI','helpExtra','Update\x20an\x20existing\x20record','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\x20completed\x20in\x20','\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}','filter','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','100218FOHNjS','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27','paramsRequired','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','now','params','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20\x20\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}}','1575570WMleyA','\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}}]','data\x20','command','map','\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}}]}','read','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','Filter\x20dataset\x20records\x20with\x20query\x20conditions','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\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}}','risk','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','str','getOne','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','join','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','write','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\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}','operation','description','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','update','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','data','\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}}','batchCreate','\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}}','2666900jPTDGJ','\x20\x20PAGINATION','\x20on\x20dataset\x20','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','\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}','50cWWjUR','\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]}}','POST'];a24_0x3529=function(){return _0x558db1;};return a24_0x3529();}(function(_0x59fdc8,_0x4ea132){const _0x3c7dd8=a24_0x5354,_0x22afa0=_0x59fdc8();while(!![]){try{const _0x565e10=parseInt(_0x3c7dd8(0xd8))/0x1*(parseInt(_0x3c7dd8(0xcf))/0x2)+-parseInt(_0x3c7dd8(0x97))/0x3+-parseInt(_0x3c7dd8(0xb8))/0x4+parseInt(_0x3c7dd8(0xbd))/0x5*(-parseInt(_0x3c7dd8(0xe3))/0x6)+parseInt(_0x3c7dd8(0xc4))/0x7*(-parseInt(_0x3c7dd8(0xcc))/0x8)+-parseInt(_0x3c7dd8(0xdb))/0x9+parseInt(_0x3c7dd8(0xca))/0xa;if(_0x565e10===_0x4ea132)break;else _0x22afa0['push'](_0x22afa0['shift']());}catch(_0x452a99){_0x22afa0['push'](_0x22afa0['shift']());}}}(a24_0x3529,0x7d08c));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a24_0x496c05(0xe1),'operation':a24_0x496c05(0xe1),'risk':'read','paramsRequired':![],'description':a24_0x496c05(0xa0),'paramsHint':a24_0x496c05(0xc1)+a24_0x496c05(0xb1),'helpExtra':[a24_0x496c05(0xd0),'\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_0x496c05(0xce),a24_0x496c05(0xa3),a24_0x496c05(0xb5),'\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}',a24_0x496c05(0xb7),a24_0x496c05(0xbe),a24_0x496c05(0xd5),a24_0x496c05(0xeb),a24_0x496c05(0xab),'',a24_0x496c05(0xd3),a24_0x496c05(0x9c),'\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','',a24_0x496c05(0xc7),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)',a24_0x496c05(0xd6),a24_0x496c05(0xa8),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)',a24_0x496c05(0xde),'',a24_0x496c05(0xb9),'\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.',a24_0x496c05(0xe2),a24_0x496c05(0xa2)][a24_0x496c05(0xaa)]('\x0a')},{'command':a24_0x496c05(0xa7),'operation':a24_0x496c05(0xa7),'risk':a24_0x496c05(0x9d),'paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a24_0x496c05(0x9e)},{'command':'create','operation':a24_0x496c05(0xcd),'risk':a24_0x496c05(0xac),'paramsRequired':!![],'description':a24_0x496c05(0xad),'paramsHint':a24_0x496c05(0xb3)},{'command':a24_0x496c05(0xb6),'operation':a24_0x496c05(0xb6),'risk':a24_0x496c05(0xac),'paramsRequired':!![],'description':a24_0x496c05(0xc9),'paramsHint':a24_0x496c05(0xd2)},{'command':a24_0x496c05(0xb2),'operation':a24_0x496c05(0xb2),'risk':a24_0x496c05(0xac),'paramsRequired':!![],'description':a24_0x496c05(0xdd),'paramsHint':a24_0x496c05(0xe4)},{'command':a24_0x496c05(0xc8),'operation':'delete','risk':'high-risk-write','paramsRequired':!![],'description':'Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a24_0x496c05(0xd7),'operation':a24_0x496c05(0xd7),'risk':a24_0x496c05(0x9d),'paramsRequired':![],'description':'Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','paramsHint':a24_0x496c05(0xe6)+a24_0x496c05(0xa1),'helpExtra':[a24_0x496c05(0xc3),a24_0x496c05(0xa9),'\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_0x496c05(0xe0),'\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}',a24_0x496c05(0xbc),a24_0x496c05(0xae),'','\x20\x20PARAMS\x20STRUCTURE',a24_0x496c05(0xc6),a24_0x496c05(0xda),a24_0x496c05(0xea),a24_0x496c05(0x9f),a24_0x496c05(0x98),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','',a24_0x496c05(0xc2),a24_0x496c05(0xe9),a24_0x496c05(0xd4),'',a24_0x496c05(0xa5),a24_0x496c05(0xd9),'',a24_0x496c05(0xbb)]['join']('\x0a')}];function makeDataCommand(_0x4c15eb){const _0x211faf=a24_0x496c05,_0x537a07=_0x211faf(0x99)+_0x4c15eb[_0x211faf(0x9a)],_0x1cbd68={'service':_0x211faf(0xb4),'command':_0x4c15eb['command'],'description':_0x4c15eb[_0x211faf(0xb0)],'risk':_0x4c15eb['risk'],'helpExtra':_0x4c15eb[_0x211faf(0xdc)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x4c15eb['paramsHint']}],'validate':async _0x4a9cda=>{const _0xc6c9ea=_0x211faf;_0x4c15eb[_0xc6c9ea(0xe5)]&&requireAnyOf(_0x4a9cda,[_0xc6c9ea(0xe8)],_0x537a07),_0x4c15eb['operation']===_0xc6c9ea(0xb6)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x4a9cda['str'](_0xc6c9ea(0xe8))));},async 'execute'(_0x3ea613){const _0x125241=_0x211faf,_0x1ad7e2=_0x3ea613['str']('code'),_0x545d94=_0x4c15eb['operation']===_0x125241(0xb6)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3ea613['str'](_0x125241(0xe8)))):parseJsonParams(_0x3ea613[_0x125241(0xa6)](_0x125241(0xe8)))??{},_0x4c683e=Date[_0x125241(0xe7)](),_0x35624b=await executeData(_0x1ad7e2,_0x4c15eb[_0x125241(0xaf)],_0x545d94),_0x3960c4=Date[_0x125241(0xe7)]()-_0x4c683e;return{'ok':!![],'data':{'result':_0x35624b,'elapsed':_0x3960c4},'message':_0x125241(0x99)+_0x4c15eb['command']+_0x125241(0xdf)+_0x3960c4+'ms'};}};return _0x4c15eb[_0x211faf(0xa4)]!=='read'&&(_0x1cbd68[_0x211faf(0xc0)]=async _0x57b87e=>{const _0xdc80b7=_0x211faf,_0x56ec74=_0x57b87e[_0xdc80b7(0xa6)]('code'),_0xa6b176=_0x4c15eb[_0xdc80b7(0xaf)]===_0xdc80b7(0xb6)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x57b87e[_0xdc80b7(0xa6)]('params'))):parseJsonParams(_0x57b87e[_0xdc80b7(0xa6)](_0xdc80b7(0xe8)))??{};return dryRun(_0xdc80b7(0xbf),_0xdc80b7(0xcb)+_0x56ec74+'/'+_0x4c15eb['operation'])[_0xdc80b7(0xc5)](_0xa6b176)['description'](_0xdc80b7(0xd1)+_0x4c15eb[_0xdc80b7(0x9a)]+_0xdc80b7(0xba)+_0x56ec74)['build']();}),_0x1cbd68;}export const dataDefinitions=specs[a24_0x496c05(0x9b)](makeDataCommand);
|
|
1
|
+
const a24_0x21b592=a24_0x11a1;(function(_0x11f044,_0x2f50f2){const _0x5f36fe=a24_0x11a1,_0x26ccee=_0x11f044();while(!![]){try{const _0x4ac224=parseInt(_0x5f36fe(0xfb))/0x1*(parseInt(_0x5f36fe(0x102))/0x2)+parseInt(_0x5f36fe(0x132))/0x3*(-parseInt(_0x5f36fe(0x147))/0x4)+parseInt(_0x5f36fe(0xf9))/0x5+-parseInt(_0x5f36fe(0x124))/0x6+parseInt(_0x5f36fe(0x105))/0x7+parseInt(_0x5f36fe(0x14a))/0x8*(-parseInt(_0x5f36fe(0xf8))/0x9)+-parseInt(_0x5f36fe(0x13d))/0xa;if(_0x4ac224===_0x2f50f2)break;else _0x26ccee['push'](_0x26ccee['shift']());}catch(_0x1975c6){_0x26ccee['push'](_0x26ccee['shift']());}}}(a24_0x129f,0x71a99));function a24_0x129f(){const _0x2f096b=['\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','str','721264FiCMra','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','1416uoNTaR','description','map','now','POST','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','write','\x20on\x20dataset\x20','32058qSChuJ','3372825WEpVmz','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','109379pczlcY','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','high-risk-write','data','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','14CFaTBP','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','join','4401376yFdyYI','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','\x20\x20EXAMPLES','\x20\x20AGGREGATE\x20TYPES','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','paramsRequired','delete','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','paramsHint','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','aggregate','\x20\x20PAGINATION','operation','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','batchCreate','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','getOne','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','Preview:\x20data\x20','update','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','risk','\x20\x20WHERE\x20OPERATORS','params','\x20\x20PARAMS\x20STRUCTURE','1984230BbqtAX','\x20completed\x20in\x20','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','filter','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','length','code','6MJBdIW','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','body','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','batch','/api/{appCode}/','build','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','read','2816140CPwhJf','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','create','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','command','Update\x20an\x20existing\x20record'];a24_0x129f=function(){return _0x2f096b;};return a24_0x129f();}import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';function a24_0x11a1(_0x5a0536,_0x452236){_0x5a0536=_0x5a0536-0xf3;const _0x129f41=a24_0x129f();let _0x11a1bf=_0x129f41[_0x5a0536];return _0x11a1bf;}import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':'filter','operation':a24_0x21b592(0x12e),'risk':a24_0x21b592(0x13c),'paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a24_0x21b592(0xf4)+a24_0x21b592(0x149),'helpExtra':[a24_0x21b592(0x121),a24_0x21b592(0x133),a24_0x21b592(0x112),a24_0x21b592(0x10f),a24_0x21b592(0x135),a24_0x21b592(0x136),a24_0x21b592(0x129),a24_0x21b592(0x137),a24_0x21b592(0x110),a24_0x21b592(0x10c),a24_0x21b592(0x148),'',a24_0x21b592(0x14f),a24_0x21b592(0x101),a24_0x21b592(0x11c),'','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)',a24_0x21b592(0x12a),a24_0x21b592(0x144),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]',a24_0x21b592(0x103),a24_0x21b592(0x12f),'',a24_0x21b592(0x115),a24_0x21b592(0xf5),a24_0x21b592(0x128),a24_0x21b592(0x11f)][a24_0x21b592(0x104)]('\x0a')},{'command':a24_0x21b592(0x11b),'operation':'getOne','risk':'read','paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a24_0x21b592(0x141)},{'command':a24_0x21b592(0x13f),'operation':a24_0x21b592(0x13f),'risk':a24_0x21b592(0xf6),'paramsRequired':!![],'description':a24_0x21b592(0x109),'paramsHint':a24_0x21b592(0xfd)},{'command':a24_0x21b592(0x119),'operation':a24_0x21b592(0x119),'risk':a24_0x21b592(0xf6),'paramsRequired':!![],'description':a24_0x21b592(0x12c),'paramsHint':a24_0x21b592(0x100)},{'command':a24_0x21b592(0x11e),'operation':'update','risk':a24_0x21b592(0xf6),'paramsRequired':!![],'description':a24_0x21b592(0x143),'paramsHint':a24_0x21b592(0x127)+a24_0x21b592(0x106)},{'command':a24_0x21b592(0x10b),'operation':a24_0x21b592(0x10b),'risk':a24_0x21b592(0xfe),'paramsRequired':!![],'description':a24_0x21b592(0x11a),'paramsHint':a24_0x21b592(0x141)},{'command':a24_0x21b592(0x114),'operation':'aggregate','risk':'read','paramsRequired':![],'description':a24_0x21b592(0x113),'paramsHint':'JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20'+'Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra':[a24_0x21b592(0x108),a24_0x21b592(0x10e),a24_0x21b592(0x12b),'\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}',a24_0x21b592(0x12d),'\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}',a24_0x21b592(0x140),'',a24_0x21b592(0x123),a24_0x21b592(0x118),a24_0x21b592(0x126),a24_0x21b592(0xf3),a24_0x21b592(0xfa),a24_0x21b592(0x10d),a24_0x21b592(0x117),'',a24_0x21b592(0x107),a24_0x21b592(0x145),a24_0x21b592(0x13b),'','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter',a24_0x21b592(0xfc),'',a24_0x21b592(0x13e)][a24_0x21b592(0x104)]('\x0a')}];function makeDataCommand(_0x280f33){const _0x55d2a7=a24_0x21b592,_0x1a8fbe='data\x20'+_0x280f33[_0x55d2a7(0x142)],_0x265e9e={'service':_0x55d2a7(0xff),'command':_0x280f33[_0x55d2a7(0x142)],'description':_0x280f33[_0x55d2a7(0x14b)],'risk':_0x280f33['risk'],'helpExtra':_0x280f33['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x280f33[_0x55d2a7(0x111)]}],'validate':async _0x4d75b8=>{const _0xe78064=_0x55d2a7;_0x280f33[_0xe78064(0x10a)]&&requireAnyOf(_0x4d75b8,[_0xe78064(0x122)],_0x1a8fbe),_0x280f33[_0xe78064(0x116)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x4d75b8['str'](_0xe78064(0x122)))),_0x280f33[_0xe78064(0x116)]==='update'&&parseUpdateIdsFromParams(parseJsonParams(_0x4d75b8[_0xe78064(0x146)](_0xe78064(0x122)))??{});},async 'execute'(_0x382a14){const _0x3a6e26=_0x55d2a7,_0x110584=_0x382a14['str'](_0x3a6e26(0x131)),_0x101cc6=_0x280f33[_0x3a6e26(0x116)]===_0x3a6e26(0x119)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x382a14[_0x3a6e26(0x146)](_0x3a6e26(0x122)))):parseJsonParams(_0x382a14[_0x3a6e26(0x146)](_0x3a6e26(0x122)))??{},_0x41f061=_0x280f33['operation']===_0x3a6e26(0x11e)?parseUpdateIdsFromParams(_0x101cc6):undefined,_0xddc462=_0x41f061?normalizeUpdateParamsForRuntime(_0x101cc6,_0x41f061):_0x101cc6,_0x49028e=Date[_0x3a6e26(0x14d)](),_0x246d1f=await executeData(_0x110584,_0x280f33[_0x3a6e26(0x116)],_0xddc462),_0x37ec19=Date[_0x3a6e26(0x14d)]()-_0x49028e,_0xd4ecaf=_0x41f061&&_0x41f061['length']>0x1?buildBatchUpdateResult(_0x41f061,_0x246d1f):_0x246d1f;return{'ok':!![],'data':{'result':_0xd4ecaf,'elapsed':_0x37ec19},'message':'data\x20'+_0x280f33[_0x3a6e26(0x142)]+_0x3a6e26(0x125)+_0x37ec19+'ms'};}};return _0x280f33[_0x55d2a7(0x120)]!=='read'&&(_0x265e9e['dryRun']=async _0xf550ea=>{const _0x11c768=_0x55d2a7,_0x4cbfbf=_0xf550ea[_0x11c768(0x146)](_0x11c768(0x131)),_0x3086fa=_0x280f33['operation']==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0xf550ea[_0x11c768(0x146)](_0x11c768(0x122)))):parseJsonParams(_0xf550ea[_0x11c768(0x146)](_0x11c768(0x122)))??{};let _0x2bc408=_0x3086fa;if(_0x280f33['operation']==='update'){const _0x252212=parseUpdateIdsFromParams(_0x3086fa);_0x2bc408=normalizeUpdateParamsForRuntime(_0x3086fa,_0x252212);}return dryRun(_0x11c768(0x14e),_0x11c768(0x139)+_0x4cbfbf+'/'+_0x280f33[_0x11c768(0x116)])[_0x11c768(0x134)](_0x2bc408)[_0x11c768(0x14b)](_0x11c768(0x11d)+_0x280f33[_0x11c768(0x142)]+_0x11c768(0xf7)+_0x4cbfbf)[_0x11c768(0x13a)]();}),_0x265e9e;}export const dataDefinitions=specs[a24_0x21b592(0x14c)](makeDataCommand);function buildBatchUpdateResult(_0x5bd7bf,_0x3a4895){const _0x59bc36=a24_0x21b592;return{'operation':_0x59bc36(0x11e),'mode':_0x59bc36(0x138),'ids':_0x5bd7bf,'total':_0x5bd7bf[_0x59bc36(0x130)],'result':_0x3a4895};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a25_0x43b690=a25_0x10cd;(function(_0xd3dfbf,_0xf2ddc2){const _0x518a13=a25_0x10cd,_0x3889e8=_0xd3dfbf();while(!![]){try{const _0x20eb60=parseInt(_0x518a13(0x1dc))/0x1*(parseInt(_0x518a13(0x1df))/0x2)+-parseInt(_0x518a13(0x208))/0x3+-parseInt(_0x518a13(0x207))/0x4+-parseInt(_0x518a13(0x1f7))/0x5*(-parseInt(_0x518a13(0x21b))/0x6)+parseInt(_0x518a13(0x1f6))/0x7*(parseInt(_0x518a13(0x1ea))/0x8)+-parseInt(_0x518a13(0x1ec))/0x9+-parseInt(_0x518a13(0x1e7))/0xa*(-parseInt(_0x518a13(0x1e1))/0xb);if(_0x20eb60===_0xf2ddc2)break;else _0x3889e8['push'](_0x3889e8['shift']());}catch(_0x247eb0){_0x3889e8['push'](_0x3889e8['shift']());}}}(a25_0x2ede,0x2c6c6));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x413f5d){const _0x2e2d53=a25_0x10cd;if(_0x413f5d[_0x2e2d53(0x1e6)])return null;const _0x34ebf4=Boolean(_0x413f5d[_0x2e2d53(0x218)]!==undefined||_0x413f5d[_0x2e2d53(0x224)]!==undefined);let _0x276d13={};if(!_0x34ebf4&&typeof _0x413f5d[_0x2e2d53(0x211)]==='string')try{_0x276d13=JSON[_0x2e2d53(0x1f5)](_0x413f5d[_0x2e2d53(0x211)]);}catch{}const _0x392631=_0x34ebf4?_0x413f5d['name']:_0x413f5d[_0x2e2d53(0x1f1)],_0x160a4b=_0x34ebf4?_0x413f5d['displayName']:_0x413f5d[_0x2e2d53(0x1d9)],_0x278eca=_0x34ebf4?_0x413f5d[_0x2e2d53(0x224)]:_0x413f5d[_0x2e2d53(0x1f4)]||_0x413f5d[_0x2e2d53(0x1f9)],_0x1263b8=_0x34ebf4?_0x413f5d[_0x2e2d53(0x1f3)]===!![]:_0x276d13[_0x2e2d53(0x1f3)]===!![],_0x1a4062=_0x34ebf4?_0x413f5d[_0x2e2d53(0x1f2)]===!![]:_0x276d13[_0x2e2d53(0x1f2)]===!![],_0x57082b=_0x34ebf4?_0x413f5d['options']??null:_0x276d13[_0x2e2d53(0x201)]??null,_0x27cf2c={'name':_0x392631,'displayName':_0x160a4b||_0x392631,'type':_0x278eca,'dbType':_0x413f5d[_0x2e2d53(0x1e3)],'pk':_0x1263b8,'required':_0x1a4062,'description':_0x413f5d['description']||undefined};return Array['isArray'](_0x57082b)&&_0x57082b[_0x2e2d53(0x1f8)]>0x0&&(_0x27cf2c[_0x2e2d53(0x201)]=_0x57082b),_0x27cf2c;}function parseJsonMaybe(_0x30c352){const _0x2650b3=a25_0x10cd;if(typeof _0x30c352!==_0x2650b3(0x1db))return _0x30c352;try{return JSON[_0x2650b3(0x1f5)](_0x30c352);}catch{return _0x30c352;}}function normalizeOperationEntry(_0x4f5579,_0x4cf901){const _0x4ef8cb=a25_0x10cd;if(!_0x4cf901||typeof _0x4cf901!==_0x4ef8cb(0x1d7))return null;if(!_0x4cf901[_0x4ef8cb(0x1ee)]||!_0x4cf901[_0x4ef8cb(0x206)])return null;const _0x4f623d={'name':_0x4f5579,'method':_0x4cf901[_0x4ef8cb(0x1ee)],'path':_0x4cf901['path']};if(_0x4cf901[_0x4ef8cb(0x1fd)])_0x4f623d[_0x4ef8cb(0x1fd)]=_0x4cf901['host'];if(_0x4cf901[_0x4ef8cb(0x205)]!=null)_0x4f623d[_0x4ef8cb(0x205)]=parseJsonMaybe(_0x4cf901[_0x4ef8cb(0x205)]);if(_0x4cf901[_0x4ef8cb(0x21c)]!=null)_0x4f623d['responseBody']=parseJsonMaybe(_0x4cf901[_0x4ef8cb(0x21c)]);if(_0x4cf901[_0x4ef8cb(0x1e9)]!=null)_0x4f623d[_0x4ef8cb(0x1e9)]=_0x4cf901[_0x4ef8cb(0x1e9)];if(_0x4cf901[_0x4ef8cb(0x219)]!=null)_0x4f623d[_0x4ef8cb(0x219)]=_0x4cf901[_0x4ef8cb(0x219)];if(Array[_0x4ef8cb(0x213)](_0x4cf901[_0x4ef8cb(0x1d6)]))_0x4f623d[_0x4ef8cb(0x1d6)]=_0x4cf901[_0x4ef8cb(0x1d6)];if(Array[_0x4ef8cb(0x213)](_0x4cf901[_0x4ef8cb(0x1eb)]))_0x4f623d[_0x4ef8cb(0x1eb)]=_0x4cf901[_0x4ef8cb(0x1eb)];return _0x4f623d;}function a25_0x2ede(){const _0x59f577=['30790RSnhjf','operations','beforeScriptId','124256mLwIdu','responseFields','35577tpYdrS','indexes','method','detail','relations','code','required','pkField','type','parse','98IGFIPU','5ClUjuM','length','dataType','relatedPageInfoList','read','modelId','host','source','modelCode','modifierNameField','options','creatorIdField','tableName','split','requestBody','path','1123072RSAfsG','1071969wXtkwU','appCode','createTimeField','filter','datasetKey','properties','sourceType','dbName','validateRules','extend','description','isArray','updateTimeField','str','map','allFields','displayName','afterScriptId','dblinkInfoDTO','1851996IgKNmX','responseBody','dbtableConfig','creatorNameField','title','modifierIdField','allFieldNames','dbId','formatRules','doType','requestFields','object','doVersion','name','logicField','string','439UWJhXw','columnCodeListWithDeleted','fields','782aPeHJH','tableComment','451MyyEIG','trim','dbType','dataset','entries','deleted'];a25_0x2ede=function(){return _0x59f577;};return a25_0x2ede();}function summarizeDbtable(_0x1c0cc4){const _0x91bffb=a25_0x10cd,_0x30c871={},_0x230ec2=[_0x91bffb(0x222),'dbName',_0x91bffb(0x203),_0x91bffb(0x20c),_0x91bffb(0x1f3),_0x91bffb(0x217),_0x91bffb(0x1da),_0x91bffb(0x20a),_0x91bffb(0x214),_0x91bffb(0x202),_0x91bffb(0x21e),_0x91bffb(0x220),_0x91bffb(0x200),'labelField',_0x91bffb(0x21a)];for(const _0x62b3c4 of _0x230ec2){if(_0x1c0cc4[_0x62b3c4]!==undefined)_0x30c871[_0x62b3c4]=_0x1c0cc4[_0x62b3c4];}return typeof _0x30c871[_0x91bffb(0x217)]===_0x91bffb(0x1db)&&_0x30c871[_0x91bffb(0x217)]['length']>0x0&&(_0x30c871[_0x91bffb(0x221)]=_0x30c871[_0x91bffb(0x217)][_0x91bffb(0x204)](',')['map'](_0x5755fe=>_0x5755fe[_0x91bffb(0x1e2)]())[_0x91bffb(0x20b)](Boolean)),_0x30c871;}function normalizeRelatedPages(_0x19b85f){const _0x1596ed=a25_0x10cd;if(!Array[_0x1596ed(0x213)](_0x19b85f))return[];return _0x19b85f['filter'](_0x2c9319=>_0x2c9319&&typeof _0x2c9319===_0x1596ed(0x1d7))[_0x1596ed(0x216)](_0x15e408=>({'id':_0x15e408['id'],'type':_0x15e408['type'],'code':_0x15e408[_0x1596ed(0x1f1)],'title':_0x15e408[_0x1596ed(0x21f)],'deleted':_0x15e408[_0x1596ed(0x1e6)]===!![]}));}function normalizeFallbackFieldName(_0x51fcdd,_0x5484a6){const _0x521c5a=a25_0x10cd,_0x26088f=_0x51fcdd[_0x521c5a(0x1e2)]();if(!_0x26088f)return null;return{'name':_0x26088f,'displayName':_0x26088f,'type':undefined,'dbType':undefined,'pk':_0x26088f===_0x5484a6,'required':![],'description':undefined};}async function loadListFieldFallback(_0x4c8239,_0x40ff56){const _0x2b1725=a25_0x10cd;if(!_0x4c8239||!_0x40ff56)return[];try{const _0x56477c=await listDatasets(_0x4c8239,{'code':_0x40ff56}),_0x5bdd51=_0x56477c['find'](_0x45f946=>_0x45f946[_0x2b1725(0x1f1)]===_0x40ff56)??_0x56477c[0x0],_0x3ce38d=_0x5bdd51?.[_0x2b1725(0x21d)]??{},_0x1ae734=typeof _0x3ce38d[_0x2b1725(0x217)]===_0x2b1725(0x1db)?_0x3ce38d['allFields'][_0x2b1725(0x204)](','):[];return _0x1ae734[_0x2b1725(0x216)](_0x875a9=>normalizeFallbackFieldName(_0x875a9,_0x3ce38d[_0x2b1725(0x1f3)]))[_0x2b1725(0x20b)](_0x457b8a=>_0x457b8a!==null);}catch{return[];}}function a25_0x10cd(_0x47570e,_0x543944){_0x47570e=_0x47570e-0x1d6;const _0x2ede9b=a25_0x2ede();let _0x10cddf=_0x2ede9b[_0x47570e];return _0x10cddf;}export const datasetDetail={'service':a25_0x43b690(0x1e4),'command':a25_0x43b690(0x1ef),'description':'Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','risk':a25_0x43b690(0x1fb),'flags':[CODE_FLAG],async 'execute'(_0x236bab){const _0x93eca3=a25_0x43b690,_0x4cb030=await getDatasetDetail(_0x236bab[_0x93eca3(0x215)]('code')),_0x174f59=Array[_0x93eca3(0x213)](_0x4cb030[_0x93eca3(0x1de)])?_0x4cb030[_0x93eca3(0x1de)]:Array[_0x93eca3(0x213)](_0x4cb030[_0x93eca3(0x20d)])?_0x4cb030[_0x93eca3(0x20d)]:[];let _0x870da6=_0x174f59[_0x93eca3(0x216)](_0x23796a=>normalizeField(_0x23796a))['filter'](_0x261ec7=>_0x261ec7!==null);_0x870da6[_0x93eca3(0x1f8)]===0x0&&(_0x870da6=await loadListFieldFallback(_0x236bab[_0x93eca3(0x209)],_0x236bab[_0x93eca3(0x215)](_0x93eca3(0x1f1))));const _0x3e01f3=_0x4cb030[_0x93eca3(0x1e8)]??{},_0x34f966=[];for(const [_0x516492,_0x3981b1]of Object[_0x93eca3(0x1e5)](_0x3e01f3)){const _0x2fad67=normalizeOperationEntry(_0x516492,_0x3981b1);if(_0x2fad67)_0x34f966['push'](_0x2fad67);}const _0x5f0b0b=_0x4cb030[_0x93eca3(0x21d)]??{},_0x41c249=_0x4cb030['dataset']??{},_0x41e8c3=_0x5f0b0b[_0x93eca3(0x222)]!=null?{'id':_0x5f0b0b['dbId'],'name':_0x5f0b0b[_0x93eca3(0x20f)]??null}:undefined;let _0x49e200;return typeof _0x4cb030[_0x93eca3(0x211)]===_0x93eca3(0x1db)&&(_0x49e200=parseJsonMaybe(_0x4cb030[_0x93eca3(0x211)])),{'ok':!![],'data':{'id':_0x4cb030[_0x93eca3(0x1fc)]??_0x4cb030['id'],'name':_0x4cb030[_0x93eca3(0x1d9)],'code':_0x4cb030[_0x93eca3(0x1ff)]||_0x4cb030[_0x93eca3(0x1f1)],'doVersion':_0x4cb030[_0x93eca3(0x1d8)],'description':_0x4cb030[_0x93eca3(0x212)]||_0x41c249[_0x93eca3(0x1e0)]||undefined,'source':_0x4cb030[_0x93eca3(0x1fe)]||_0x41c249[_0x93eca3(0x20e)],'table':_0x5f0b0b[_0x93eca3(0x203)]||_0x41c249[_0x93eca3(0x203)],'datasetKey':_0x5f0b0b[_0x93eca3(0x20c)],'pk':_0x5f0b0b[_0x93eca3(0x1f3)],'db':_0x41e8c3,'dbtable':summarizeDbtable(_0x5f0b0b),'fields':_0x870da6,'operations':_0x34f966,'indexes':Array[_0x93eca3(0x213)](_0x41c249[_0x93eca3(0x1ed)])?_0x41c249['indexes']:[],'relations':_0x4cb030[_0x93eca3(0x1f0)]??null,'relatedPages':normalizeRelatedPages(_0x4cb030[_0x93eca3(0x1fa)]),...Array[_0x93eca3(0x213)](_0x4cb030[_0x93eca3(0x1dd)])?{'columnCodeListWithDeleted':_0x4cb030[_0x93eca3(0x1dd)]}:{},'formatRules':Array[_0x93eca3(0x213)](_0x4cb030['formatRules'])?_0x4cb030[_0x93eca3(0x223)]:[],'validateRules':Array[_0x93eca3(0x213)](_0x4cb030[_0x93eca3(0x210)])?_0x4cb030['validateRules']:[],..._0x49e200!==undefined?{'extend':_0x49e200}:{},'stats':{'fieldCount':_0x870da6[_0x93eca3(0x1f8)],'operationCount':_0x34f966[_0x93eca3(0x1f8)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x15b27c,_0x348b78){const _0x5c721f=a26_0x286a,_0x4752d2=_0x15b27c();while(!![]){try{const _0x481ad5=parseInt(_0x5c721f(0x186))/0x1*(-parseInt(_0x5c721f(0x187))/0x2)+-parseInt(_0x5c721f(0x180))/0x3+parseInt(_0x5c721f(0x189))/0x4+parseInt(_0x5c721f(0x188))/0x5+parseInt(_0x5c721f(0x183))/0x6+parseInt(_0x5c721f(0x185))/0x7*(parseInt(_0x5c721f(0x184))/0x8)+-parseInt(_0x5c721f(0x181))/0x9*(parseInt(_0x5c721f(0x182))/0xa);if(_0x481ad5===_0x348b78)break;else _0x4752d2['push'](_0x4752d2['shift']());}catch(_0x5b212){_0x4752d2['push'](_0x4752d2['shift']());}}}(a26_0x18bd,0xe9892));import{datasetList}from'../../commands/dataset/list.js';function a26_0x18bd(){const _0x2cbdcf=['9822702VvzmyI','1624OqNZCZ','48699vVfrYg','12GYJXOM','298990QKHSmg','3050465JcQZNg','5204368bolHfA','857748cmjtwP','27AJaDUV','6413850LYtgCa'];a26_0x18bd=function(){return _0x2cbdcf;};return a26_0x18bd();}import{datasetDetail}from'../../commands/dataset/detail.js';function a26_0x286a(_0x1e363b,_0x13005d){_0x1e363b=_0x1e363b-0x180;const _0x18bd1c=a26_0x18bd();let _0x286a4b=_0x18bd1c[_0x1e363b];return _0x286a4b;}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a27_0x9ef8e3=a27_0x5c93;(function(_0x541920,_0x46ca81){const _0x4547e6=a27_0x5c93,_0x365834=_0x541920();while(!![]){try{const _0xdfcb4=parseInt(_0x4547e6(0xa6))/0x1*(-parseInt(_0x4547e6(0xa9))/0x2)+-parseInt(_0x4547e6(0xb0))/0x3*(-parseInt(_0x4547e6(0xa5))/0x4)+parseInt(_0x4547e6(0xa2))/0x5+-parseInt(_0x4547e6(0xb5))/0x6*(parseInt(_0x4547e6(0xab))/0x7)+-parseInt(_0x4547e6(0xb6))/0x8+parseInt(_0x4547e6(0xb8))/0x9+-parseInt(_0x4547e6(0xaf))/0xa;if(_0xdfcb4===_0x46ca81)break;else _0x365834['push'](_0x365834['shift']());}catch(_0x28e410){_0x365834['push'](_0x365834['shift']());}}}(a27_0x4940,0x772dd));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a27_0x5c93(_0x5831ff,_0x5d0479){_0x5831ff=_0x5831ff-0xa1;const _0x4940c7=a27_0x4940();let _0x5c939d=_0x4940c7[_0x5831ff];return _0x5c939d;}function a27_0x4940(){const _0x1fa17b=['2885325xHmWmj','list','name','3221144CFHmzj','1eeUSAC','code','read','914702kvDvLy','map','7iPvcZQ','string','datasetKey','trim','1107090THmFnp','3sJeNsj','dataset','allFields','length','split','1205898PCTPwc','1421496thOMQj','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','472824IeKRDk','tableName'];a27_0x4940=function(){return _0x1fa17b;};return a27_0x4940();}export const datasetList={'service':a27_0x9ef8e3(0xb1),'command':a27_0x9ef8e3(0xa3),'description':'List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','risk':a27_0x9ef8e3(0xa8),'flags':[{'name':a27_0x9ef8e3(0xa4),'type':a27_0x9ef8e3(0xac),'description':a27_0x9ef8e3(0xb7)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x10404c){const _0x183da4=a27_0x9ef8e3,_0x4f0b2a=_0x10404c['str'](_0x183da4(0xa4)),_0x5abbf5=_0x10404c['str'](_0x183da4(0xa7)),_0x30e003=await listDatasets(_0x10404c['appCode'],{..._0x4f0b2a&&{'name':_0x4f0b2a},..._0x5abbf5&&{'code':_0x5abbf5}});return{'ok':!![],'data':{'total':_0x30e003[_0x183da4(0xb3)],'datasets':_0x30e003[_0x183da4(0xaa)](_0x424202=>{const _0x408515=_0x183da4,_0x127c1f=_0x424202['dbtableConfig']??{};return{'id':_0x424202['id'],'code':_0x424202['code'],'name':_0x424202[_0x408515(0xa4)],'source':_0x424202['source'],'description':_0x424202['description'],'table':_0x127c1f[_0x408515(0xa1)],'datasetKey':_0x127c1f[_0x408515(0xad)],'pk':_0x127c1f['pkField'],'fields':_0x127c1f[_0x408515(0xb2)]?_0x127c1f[_0x408515(0xb2)][_0x408515(0xb4)](',')[_0x408515(0xaa)](_0x47d31c=>_0x47d31c[_0x408515(0xae)]()):[]};})}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a28_0xd1c50a=a28_0x510d;function a28_0x1a97(){const _0x4ad23c=['appCode','238958wEeluk','3XcfYAx','trim','456952ZrOxUJ','644553DbYtYD','216gMGmkZ','4315IqGhaz','1757SjMtJj','sdk-doc','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','dataset','654GEfoOX','202078paIDkB','3449420HGXzSL'];a28_0x1a97=function(){return _0x4ad23c;};return a28_0x1a97();}(function(_0x560b8b,_0x4bfa05){const _0x2ffb78=a28_0x510d,_0x33fdb4=_0x560b8b();while(!![]){try{const _0x121893=-parseInt(_0x2ffb78(0xf2))/0x1+parseInt(_0x2ffb78(0xf5))/0x2+-parseInt(_0x2ffb78(0xf6))/0x3*(parseInt(_0x2ffb78(0xf8))/0x4)+-parseInt(_0x2ffb78(0xec))/0x5*(parseInt(_0x2ffb78(0xf1))/0x6)+-parseInt(_0x2ffb78(0xed))/0x7*(parseInt(_0x2ffb78(0xeb))/0x8)+parseInt(_0x2ffb78(0xea))/0x9+parseInt(_0x2ffb78(0xf3))/0xa;if(_0x121893===_0x4bfa05)break;else _0x33fdb4['push'](_0x33fdb4['shift']());}catch(_0x165831){_0x33fdb4['push'](_0x33fdb4['shift']());}}}(a28_0x1a97,0x1d05e));function a28_0x510d(_0x557020,_0x1598ce){_0x557020=_0x557020-0xea;const _0x1a977e=a28_0x1a97();let _0x510dde=_0x1a977e[_0x557020];return _0x510dde;}import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a28_0xd1c50a(0xef);export function formatDatasetSdkMarkdown(_0x462fd1){const _0x1f6d85=a28_0xd1c50a,_0x31cbe0=typeof _0x462fd1==='string'?_0x462fd1[_0x1f6d85(0xf7)]():'';return _0x31cbe0||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a28_0xd1c50a(0xf0),'command':a28_0xd1c50a(0xee),'description':'Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','risk':'read','flags':[{...CODE_FLAG,'description':'Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.'}],async 'execute'(_0x467d1c){const _0x1cf1fd=a28_0xd1c50a,_0x4ee2ba=_0x467d1c['str']('code'),_0x3387eb=await getDatasetSdkUsageDoc(_0x4ee2ba,_0x467d1c[_0x1cf1fd(0xf4)]);return{'ok':!![],'data':{'code':_0x4ee2ba,'appCode':_0x467d1c[_0x1cf1fd(0xf4)],'markdown':formatDatasetSdkMarkdown(_0x3387eb)}};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0x2e5ae5=a29_0x37d3;(function(_0x2b1070,_0x362b34){const _0x33fb4c=a29_0x37d3,_0x3ebe90=_0x2b1070();while(!![]){try{const _0x16bc59=-parseInt(_0x33fb4c(0x1ac))/0x1*(parseInt(_0x33fb4c(0x17d))/0x2)+parseInt(_0x33fb4c(0x1a1))/0x3+parseInt(_0x33fb4c(0x173))/0x4*(parseInt(_0x33fb4c(0x197))/0x5)+-parseInt(_0x33fb4c(0x1ab))/0x6*(parseInt(_0x33fb4c(0x19b))/0x7)+-parseInt(_0x33fb4c(0x188))/0x8+parseInt(_0x33fb4c(0x160))/0x9*(parseInt(_0x33fb4c(0x175))/0xa)+parseInt(_0x33fb4c(0x1a6))/0xb;if(_0x16bc59===_0x362b34)break;else _0x3ebe90['push'](_0x3ebe90['shift']());}catch(_0x20471){_0x3ebe90['push'](_0x3ebe90['shift']());}}}(a29_0x3544,0x1871c));import a29_0x2e2cb2 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a29_0x3544(){const _0x52b5f8=['\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','verbose','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Service\x20Tree','376725UjEQWj','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','860189fKiCFG','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','⚠\x20Empty\x20(treated\x20as\x20{})','green','3726wEeDGW','3jtspfV','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(default)','commandCount','bold','registryPath','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','locale','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','124587AfIEhL','\x20\x20auth\x20(effective):\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20Config\x20Files','arch','\x20\x20API\x20Endpoints','serviceCode','(set,\x20length=','platform','pageSize','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','✓\x20Loaded','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','\x20(accessKey)','doctor','yellow','4ZhdDpF','(missing)','20bKAxKu','ClientAk','(none)','name','riskLevel','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Auth','log','131730ngoaRS','accessKey','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing','\x20doctor','(not\x20set)','read','services','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','message','Global','456344oMXfwY','check','gray','\x20\x20─','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','repeat','status','red','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','serviceCount','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','\x20\x20Merged\x20Config','empty','(default:\x20','830755xsMbjL','(not\x20found)','\x20\x20Config\x20JSON','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','483xIwLUA'];a29_0x3544=function(){return _0x52b5f8;};return a29_0x3544();}import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{isLegacyCompatConfigKey}from'../config/schema.js';import{inspectServiceRegistry}from'../commands/service/registry.js';function a29_0x37d3(_0x1d46d3,_0x801369){_0x1d46d3=_0x1d46d3-0x159;const _0x3544d2=a29_0x3544();let _0x37d3f4=_0x3544d2[_0x1d46d3];return _0x37d3f4;}async function execute(_0x38b8eb){const _0xfa8fa0=a29_0x37d3,_0x56b75c=getCliVersion(),_0x147447=buildConfigFromFlags({});await initGlobalEnvironment(_0x147447),console['log'](),console[_0xfa8fa0(0x17c)](a29_0x2e2cb2['bold'](CLI_BIN_NAME+_0xfa8fa0(0x181))),console[_0xfa8fa0(0x17c)](a29_0x2e2cb2[_0xfa8fa0(0x18a)]('─'[_0xfa8fa0(0x18d)](0x32))),console[_0xfa8fa0(0x17c)](_0xfa8fa0(0x1a2)+_0x56b75c),console[_0xfa8fa0(0x17c)](_0xfa8fa0(0x1a5)+process['version']),console['log'](_0xfa8fa0(0x19f)+process[_0xfa8fa0(0x16a)]+'\x20'+process[_0xfa8fa0(0x166)]),console[_0xfa8fa0(0x17c)](),console[_0xfa8fa0(0x17c)](a29_0x2e2cb2['bold'](_0xfa8fa0(0x165))),console[_0xfa8fa0(0x17c)](a29_0x2e2cb2['gray'](_0xfa8fa0(0x18b)['repeat'](0x1e)));const _0x49a64b=getGlobalConfigPath(),_0xb90bcb=getProjectConfigPath();console[_0xfa8fa0(0x17c)](_0xfa8fa0(0x15f)+(_0x49a64b||a29_0x2e2cb2[_0xfa8fa0(0x18a)](_0xfa8fa0(0x198)))),console['log']('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xb90bcb||a29_0x2e2cb2[_0xfa8fa0(0x18a)](_0xfa8fa0(0x198)))),console[_0xfa8fa0(0x17c)](),console[_0xfa8fa0(0x17c)](a29_0x2e2cb2[_0xfa8fa0(0x15b)](_0xfa8fa0(0x199))),console['log'](a29_0x2e2cb2[_0xfa8fa0(0x18a)](_0xfa8fa0(0x18b)[_0xfa8fa0(0x18d)](0x1e)));const _0x172154=(_0x5ad263,_0x359baa)=>{const _0xf20f7d=_0xfa8fa0;if(!_0x359baa){console[_0xf20f7d(0x17c)]('\x20\x20'+_0x5ad263['padEnd'](0x11)+'\x20'+a29_0x2e2cb2[_0xf20f7d(0x18a)]('(no\x20file)'));return;}const _0x17aac9=inspectCliConfigJsonFile(_0x359baa);if(_0x17aac9[_0xf20f7d(0x18e)]==='ok')console[_0xf20f7d(0x17c)]('\x20\x20'+_0x5ad263[_0xf20f7d(0x193)](0x11)+'\x20'+a29_0x2e2cb2[_0xf20f7d(0x1aa)](_0xf20f7d(0x16d)));else{if(_0x17aac9[_0xf20f7d(0x18e)]===_0xf20f7d(0x195))console['log']('\x20\x20'+_0x5ad263[_0xf20f7d(0x193)](0x11)+'\x20'+a29_0x2e2cb2[_0xf20f7d(0x172)](_0xf20f7d(0x1a9)));else _0x17aac9[_0xf20f7d(0x18e)]===_0xf20f7d(0x180)?console[_0xf20f7d(0x17c)]('\x20\x20'+_0x5ad263[_0xf20f7d(0x193)](0x11)+'\x20'+a29_0x2e2cb2[_0xf20f7d(0x18a)](_0xf20f7d(0x174))):(console[_0xf20f7d(0x17c)]('\x20\x20'+_0x5ad263[_0xf20f7d(0x193)](0x11)+'\x20'+a29_0x2e2cb2[_0xf20f7d(0x18f)](_0xf20f7d(0x163))),console[_0xf20f7d(0x17c)]('\x20\x20'+''[_0xf20f7d(0x193)](0x11)+'\x20'+a29_0x2e2cb2[_0xf20f7d(0x18f)](_0x17aac9[_0xf20f7d(0x186)])));}};_0x172154(_0xfa8fa0(0x187),_0x49a64b),_0x172154('Project',_0xb90bcb),console['log'](),console[_0xfa8fa0(0x17c)](a29_0x2e2cb2['bold'](_0xfa8fa0(0x194))),console[_0xfa8fa0(0x17c)](a29_0x2e2cb2[_0xfa8fa0(0x18a)](_0xfa8fa0(0x18b)[_0xfa8fa0(0x18d)](0x1e))),console[_0xfa8fa0(0x17c)](_0xfa8fa0(0x17f)+(_0x147447['appCode']||a29_0x2e2cb2[_0xfa8fa0(0x18f)](_0xfa8fa0(0x182)))),console['log']('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x147447['env']);const _0x381d3c=isLegacyCompatConfigKey(_0xfa8fa0(0x15e))?a29_0x2e2cb2[_0xfa8fa0(0x18a)](_0x147447[_0xfa8fa0(0x15e)]+'\x20(legacy/compat\x20only)'):_0x147447[_0xfa8fa0(0x15e)];console[_0xfa8fa0(0x17c)](_0xfa8fa0(0x190)+_0x381d3c),console['log']('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x147447['defaultApp']||a29_0x2e2cb2[_0xfa8fa0(0x18a)]('(none)'))),console[_0xfa8fa0(0x17c)](_0xfa8fa0(0x18c)+(_0x147447[_0xfa8fa0(0x19d)]||a29_0x2e2cb2[_0xfa8fa0(0x18a)](_0xfa8fa0(0x177)))),console[_0xfa8fa0(0x17c)](_0xfa8fa0(0x162)+(_0x147447['format']||a29_0x2e2cb2['gray'](_0xfa8fa0(0x196)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0xfa8fa0(0x17c)](_0xfa8fa0(0x192)+(_0x147447[_0xfa8fa0(0x16b)]??a29_0x2e2cb2[_0xfa8fa0(0x18a)](_0xfa8fa0(0x159)))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x147447[_0xfa8fa0(0x179)]),console[_0xfa8fa0(0x17c)](_0xfa8fa0(0x185)+_0x147447[_0xfa8fa0(0x19e)]),console[_0xfa8fa0(0x17c)](_0xfa8fa0(0x161)+AUTH_MODE[_0xfa8fa0(0x176)]),console[_0xfa8fa0(0x17c)](_0xfa8fa0(0x19a)+(_0x147447[_0xfa8fa0(0x17e)]?a29_0x2e2cb2[_0xfa8fa0(0x1aa)](_0xfa8fa0(0x169)+_0x147447['accessKey'][_0xfa8fa0(0x1a8)]+')'):a29_0x2e2cb2['gray'](_0xfa8fa0(0x177)))),console[_0xfa8fa0(0x17c)](),console[_0xfa8fa0(0x17c)](a29_0x2e2cb2[_0xfa8fa0(0x15b)](_0xfa8fa0(0x167))),console['log'](a29_0x2e2cb2[_0xfa8fa0(0x18a)](_0xfa8fa0(0x18b)[_0xfa8fa0(0x18d)](0x1e))),console[_0xfa8fa0(0x17c)](_0xfa8fa0(0x15d)+getApiDomain()),console[_0xfa8fa0(0x17c)](_0xfa8fa0(0x1ad)+getUserDomain()),console[_0xfa8fa0(0x17c)](_0xfa8fa0(0x17a)+getRuntimeDomain()),console[_0xfa8fa0(0x17c)](),console[_0xfa8fa0(0x17c)](a29_0x2e2cb2[_0xfa8fa0(0x15b)](_0xfa8fa0(0x1a0))),console[_0xfa8fa0(0x17c)](a29_0x2e2cb2[_0xfa8fa0(0x18a)]('\x20\x20─'[_0xfa8fa0(0x18d)](0x1e)));const _0x4266b1=inspectServiceRegistry();console[_0xfa8fa0(0x17c)](_0xfa8fa0(0x16c)+_0x4266b1[_0xfa8fa0(0x15c)]),console[_0xfa8fa0(0x17c)](_0xfa8fa0(0x19c)+formatServiceRegistryStatus(_0x4266b1)),console[_0xfa8fa0(0x17c)](_0xfa8fa0(0x1a3)+_0x4266b1[_0xfa8fa0(0x191)]),console['log'](_0xfa8fa0(0x16f)+_0x4266b1['commandCount']);for(const _0xd6c2d6 of _0x4266b1[_0xfa8fa0(0x184)]){console[_0xfa8fa0(0x17c)]('\x20\x20'+(_0xd6c2d6[_0xfa8fa0(0x168)]+':')['padEnd'](0x11)+'\x20'+(_0xd6c2d6[_0xfa8fa0(0x178)]||a29_0x2e2cb2['gray']('(unnamed)'))+'\x20('+_0xd6c2d6[_0xfa8fa0(0x15a)]+'\x20commands)'),console[_0xfa8fa0(0x17c)]('\x20\x20'+''[_0xfa8fa0(0x193)](0x11)+'\x20Imported\x20from:\x20'+_0xd6c2d6['source']['path']);}return console[_0xfa8fa0(0x17c)](),console[_0xfa8fa0(0x17c)](a29_0x2e2cb2[_0xfa8fa0(0x15b)](_0xfa8fa0(0x17b))),console['log'](a29_0x2e2cb2[_0xfa8fa0(0x18a)](_0xfa8fa0(0x18b)[_0xfa8fa0(0x18d)](0x1e))),console[_0xfa8fa0(0x17c)](_0xfa8fa0(0x1a7)+a29_0x2e2cb2[_0xfa8fa0(0x1aa)](AUTH_MODE['ClientAk']+_0xfa8fa0(0x170))),console[_0xfa8fa0(0x17c)]('\x20\x20Session\x20check:\x20\x20\x20'+a29_0x2e2cb2[_0xfa8fa0(0x18a)](_0xfa8fa0(0x164))),console['log'](),{'ok':!![]};}function formatServiceRegistryStatus(_0x58539d){const _0xe1d651=a29_0x37d3;if(_0x58539d[_0xe1d651(0x18e)]==='ok')return a29_0x2e2cb2[_0xe1d651(0x1aa)](_0xe1d651(0x16e));if(_0x58539d[_0xe1d651(0x18e)]===_0xe1d651(0x180))return a29_0x2e2cb2[_0xe1d651(0x18a)](_0xe1d651(0x198));if(_0x58539d[_0xe1d651(0x18e)]===_0xe1d651(0x195))return a29_0x2e2cb2[_0xe1d651(0x172)](_0xe1d651(0x1a4));return a29_0x2e2cb2[_0xe1d651(0x18f)]('✗\x20Invalid'+(_0x58539d[_0xe1d651(0x186)]?':\x20'+_0x58539d[_0xe1d651(0x186)]:''));}export const doctorDefinition={'service':a29_0x2e5ae5(0x171),'command':a29_0x2e5ae5(0x189),'description':'Diagnose\x20CLI\x20configuration\x20and\x20environment','risk':a29_0x2e5ae5(0x183),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|