@lovrabet/lovrabet-cli 2.1.13 → 2.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a14_0x2b4c(_0x4767a7,_0x4009d2){_0x4767a7=_0x4767a7-0x111;const _0x168f00=a14_0x168f();let _0x2b4c79=_0x168f00[_0x4767a7];return _0x2b4c79;}const a14_0x551b42=a14_0x2b4c;(function(_0x5d75b4,_0x205003){const _0x3bfeff=a14_0x2b4c,_0x4c702c=_0x5d75b4();while(!![]){try{const _0x20ba0a=-parseInt(_0x3bfeff(0x11e))/0x1*(parseInt(_0x3bfeff(0x124))/0x2)+-parseInt(_0x3bfeff(0x11f))/0x3*(-parseInt(_0x3bfeff(0x11b))/0x4)+parseInt(_0x3bfeff(0x120))/0x5+parseInt(_0x3bfeff(0x11a))/0x6+parseInt(_0x3bfeff(0x126))/0x7*(parseInt(_0x3bfeff(0x116))/0x8)+parseInt(_0x3bfeff(0x123))/0x9*(parseInt(_0x3bfeff(0x113))/0xa)+-parseInt(_0x3bfeff(0x118))/0xb*(parseInt(_0x3bfeff(0x111))/0xc);if(_0x20ba0a===_0x205003)break;else _0x4c702c['push'](_0x4c702c['shift']());}catch(_0x1eac1c){_0x4c702c['push'](_0x4c702c['shift']());}}}(a14_0x168f,0xeb617));import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a14_0x551b42(0x115),'command':a14_0x551b42(0x119),'description':a14_0x551b42(0x114),'risk':a14_0x551b42(0x122),'flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name'}],async 'execute'(_0x41911c){const _0xb38694=a14_0x551b42,_0x5aea3e=await getBffEndpointContract(_0x41911c[_0xb38694(0x11c)],_0x41911c['str'](_0xb38694(0x127)));return{'ok':!![],'data':{'appCode':_0x5aea3e['appCode'],'functionName':_0x5aea3e[_0xb38694(0x125)],'description':_0x5aea3e[_0xb38694(0x112)]||_0xb38694(0x117),'version':_0x5aea3e[_0xb38694(0x121)],'gmtModified':_0x5aea3e[_0xb38694(0x11d)]}};}};function a14_0x168f(){const _0x519650=['7mUqKbd','name','4436772zNloPB','description','80RncsXY','Get\x20a\x20BFF\x20endpoint\x20contract\x20by\x20function\x20name','bff','371560xsTrgJ','(none)','33uCJGNL','detail','7989378NpSJPI','452468iYecLI','appCode','gmtModified','1aGYGfR','3flsXSU','6380VTBIKc','version','read','2114190SSdYQA','2596738yAzEfI','functionName'];a14_0x168f=function(){return _0x519650;};return a14_0x168f();}
|
package/lib/commands/bff/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15_0x17d0b2=a15_0xa289;(function(_0x446a29,_0x142dae){const _0x39c6cd=a15_0xa289,_0x4aa42b=_0x446a29();while(!![]){try{const _0x2f84ab=-parseInt(_0x39c6cd(0x129))/0x1+parseInt(_0x39c6cd(0x134))/0x2*(-parseInt(_0x39c6cd(0x136))/0x3)+parseInt(_0x39c6cd(0x133))/0x4*(parseInt(_0x39c6cd(0x12c))/0x5)+-parseInt(_0x39c6cd(0x130))/0x6*(-parseInt(_0x39c6cd(0x12f))/0x7)+parseInt(_0x39c6cd(0x135))/0x8*(-parseInt(_0x39c6cd(0x12b))/0x9)+parseInt(_0x39c6cd(0x12e))/0xa+-parseInt(_0x39c6cd(0x132))/0xb;if(_0x2f84ab===_0x142dae)break;else _0x4aa42b['push'](_0x4aa42b['shift']());}catch(_0xc5b6c1){_0x4aa42b['push'](_0x4aa42b['shift']());}}}(a15_0x3ad9,0xd2ccc));function a15_0x3ad9(){const _0x115ada=['read','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','name','str','BFF\x20function\x20name\x20to\x20execute','params','1789rJvBNL','bff','6773031uHrmjn','295GZiBGb','now','11773220IObFCa','35txTKBm','1550418GrMWXb','BFF\x20executed\x20in\x20','9290666VIskoz','66632yTERuK','1979538eAdmow','8beNXqS','3YgORlQ'];a15_0x3ad9=function(){return _0x115ada;};return a15_0x3ad9();}import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a15_0xa289(_0x31f06f,_0x428bb5){_0x31f06f=_0x31f06f-0x125;const _0x3ad9e2=a15_0x3ad9();let _0xa28967=_0x3ad9e2[_0x31f06f];return _0xa28967;}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a15_0x17d0b2(0x12a),'command':'exec','description':a15_0x17d0b2(0x138),'risk':a15_0x17d0b2(0x137),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x17d0b2(0x127)},PARAMS_FLAG],async 'execute'(_0x304b48){const _0x8df539=a15_0x17d0b2,_0x140c1b=parseJsonParams(_0x304b48[_0x8df539(0x126)](_0x8df539(0x128))),_0x43ce04=Date[_0x8df539(0x12d)](),_0x2a7777=await executeSdkBff(_0x304b48[_0x8df539(0x126)](_0x8df539(0x125)),_0x140c1b),_0x562837=Date['now']()-_0x43ce04;return{'ok':!![],'data':{'result':_0x2a7777,'elapsed':_0x562837},'message':_0x8df539(0x131)+_0x562837+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2d49d6,_0x26bf9b){const _0x23cfba=a16_0x4104,_0x4d7cec=_0x2d49d6();while(!![]){try{const _0x408847=parseInt(_0x23cfba(0x1c5))/0x1+-parseInt(_0x23cfba(0x1c3))/0x2*(parseInt(_0x23cfba(0x1c6))/0x3)+parseInt(_0x23cfba(0x1ca))/0x4+-parseInt(_0x23cfba(0x1c2))/0x5*(-parseInt(_0x23cfba(0x1c4))/0x6)+-parseInt(_0x23cfba(0x1c0))/0x7*(parseInt(_0x23cfba(0x1c8))/0x8)+parseInt(_0x23cfba(0x1c1))/0x9*(parseInt(_0x23cfba(0x1c9))/0xa)+-parseInt(_0x23cfba(0x1c7))/0xb;if(_0x408847===_0x26bf9b)break;else _0x4d7cec['push'](_0x4d7cec['shift']());}catch(_0x13c5a6){_0x4d7cec['push'](_0x4d7cec['shift']());}}}(a16_0x30ba,0x1ed84));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';function a16_0x4104(_0x20806b,_0x2fd854){_0x20806b=_0x20806b-0x1c0;const _0x30ba23=a16_0x30ba();let _0x4104b6=_0x30ba23[_0x20806b];return _0x4104b6;}export const bffDefinitions=[bffDetail,bffExec];function a16_0x30ba(){const _0x1cfbb9=['88650nhNGgA','350788Jftaud','705880JNLZOq','27ZMxQqE','20HKfLKn','4fAFkNq','214764uPOYVo','218915eBuHpy','91437NDnKKr','961455uapfsK','16aqdaOO'];a16_0x30ba=function(){return _0x1cfbb9;};return a16_0x30ba();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a17_0x4c5f3b=a17_0x4125;function a17_0x99ef(){const _0x5824d5=['write','CLI\x20Built-in\x20Skill\x20installed','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','cwd','2144448GgxcrZ','\x20-g\x20-y','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','17394580CFaobe','skipped','7453000dObVvq','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','1210293ntaIkn','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','inherit','apiError','2868123RWLovo','nonInteractive','Skipped\x20npx\x20(','cli-skill-install','\x20-g\x20-y)...','log','../../skills/npx-skills-add.js','cli-skill','unknown','pipe','npx\x20skills\x20add\x20failed:\x20','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','install','3509270QtJWSg','info','380236tRfBqw'];a17_0x99ef=function(){return _0x5824d5;};return a17_0x99ef();}(function(_0x315e7f,_0x184807){const _0x55c211=a17_0x4125,_0x819a65=_0x315e7f();while(!![]){try{const _0x3a9114=parseInt(_0x55c211(0x1a3))/0x1+-parseInt(_0x55c211(0x195))/0x2+parseInt(_0x55c211(0x1a7))/0x3+-parseInt(_0x55c211(0x197))/0x4+-parseInt(_0x55c211(0x1a1))/0x5+-parseInt(_0x55c211(0x19c))/0x6+parseInt(_0x55c211(0x19f))/0x7;if(_0x3a9114===_0x184807)break;else _0x819a65['push'](_0x819a65['shift']());}catch(_0x527fbe){_0x819a65['push'](_0x819a65['shift']());}}}(a17_0x99ef,0xe8ce4));function a17_0x4125(_0xdb7ef5,_0x410947){_0xdb7ef5=_0xdb7ef5-0x191;const _0x99eff8=a17_0x99ef();let _0x41253b=_0x99eff8[_0xdb7ef5];return _0x41253b;}import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a17_0x4c5f3b(0x1ae),'command':a17_0x4c5f3b(0x194),'description':a17_0x4c5f3b(0x1a2),'risk':a17_0x4c5f3b(0x198),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1abb44){const _0x264254=a17_0x4c5f3b;logger['setLogPath'](process[_0x264254(0x19b)]()),logger[_0x264254(0x196)](_0x264254(0x1aa),_0x264254(0x1a4));const {LOVRABET_SKILL_SOURCE:_0x3b2b0e,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x1e99e9,runNpxSkillsAddGlobal:_0x1f6ad4}=await import(_0x264254(0x1ad)),_0x398b4f=_0x1abb44[_0x264254(0x1a8)]?_0x264254(0x191):_0x264254(0x1a5);console['log'](_0x264254(0x19a)+_0x3b2b0e+_0x264254(0x1ab));const _0x1c810e=_0x1f6ad4(process[_0x264254(0x19b)](),_0x3b2b0e,{'stdio':_0x398b4f});if(_0x1c810e[_0x264254(0x1a0)])console['log'](_0x264254(0x1a9)+_0x1e99e9+_0x264254(0x19e));else{if(_0x1c810e['ok'])console[_0x264254(0x1ac)](_0x264254(0x199));else throw CliErrors[_0x264254(0x1a6)](_0x264254(0x192)+(_0x1c810e['error']||_0x264254(0x1af)),_0x264254(0x193)+_0x3b2b0e+_0x264254(0x19d));}return{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x543223,_0x3b2765){const _0x5e9438=a18_0x3fa4,_0x433800=_0x543223();while(!![]){try{const _0x15b21c=parseInt(_0x5e9438(0x81))/0x1+parseInt(_0x5e9438(0x85))/0x2*(parseInt(_0x5e9438(0x86))/0x3)+parseInt(_0x5e9438(0x8b))/0x4+-parseInt(_0x5e9438(0x90))/0x5+parseInt(_0x5e9438(0x7f))/0x6*(parseInt(_0x5e9438(0x80))/0x7)+parseInt(_0x5e9438(0x7c))/0x8+-parseInt(_0x5e9438(0x82))/0x9;if(_0x15b21c===_0x3b2765)break;else _0x433800['push'](_0x433800['shift']());}catch(_0x14264b){_0x433800['push'](_0x433800['shift']());}}}(a18_0x520f,0xa0afb));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';function a18_0x3fa4(_0x150a06,_0x2652c7){_0x150a06=_0x150a06-0x7c;const _0x520ff1=a18_0x520f();let _0x3fa4ec=_0x520ff1[_0x150a06];return _0x3fa4ec;}export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x35927a){const _0x4c1538=a18_0x3fa4,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x236666}=_0x35927a;if(explicitGlobal&&explicitProject)throw CliErrors['validation'](_0x4c1538(0x7e),'Use\x20only\x20one\x20config\x20scope\x20flag.');if(explicitGlobal)return'global';if(explicitProject)return _0x4c1538(0x87);switch(_0x236666){case _0x4c1538(0x8d):return _0x4c1538(0x88);case _0x4c1538(0x83):return _0x35927a[_0x4c1538(0x8f)]??isInProject()?_0x4c1538(0x87):_0x4c1538(0x88);case'project-or-global-explicit':if(!(_0x35927a[_0x4c1538(0x8f)]??isInProject()))throw CliErrors[_0x4c1538(0x84)]('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG[_0x4c1538(0x89)]+_0x4c1538(0x8e),_0x4c1538(0x7d)+PRODUCT_CONFIG['newConfigFileName']+',\x20or\x20run\x20`'+CLI_BIN_NAME+_0x4c1538(0x8a));return _0x4c1538(0x87);}}export function toScopeFlags(_0x423f88){const _0x405985=a18_0x3fa4;return{'global':_0x423f88===_0x405985(0x88)};}function a18_0x520f(){const _0x30157c=['129aLvTPS','project','global','newConfigFileName','\x20init`\x20first.','684776hUCyIC','\x20(global)','global-default','\x20found).','inProject','1681990icAnLB','8500088vzLhdB','Add\x20--global\x20to\x20write\x20to\x20~/','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','1902VSeeNb','18466IcgAWC','928068XJEsnu','29155752vzhebw','project-default','validation','57492phlZDj'];a18_0x520f=function(){return _0x30157c;};return a18_0x520f();}export function formatScopeLabel(_0x3e66ed){const _0x1c44d8=a18_0x3fa4;return _0x3e66ed===_0x1c44d8(0x88)?_0x1c44d8(0x8c):'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a19_0x1831(){const _0x173bef=['At\x20least\x20one\x20of\x20','filter','65mjEbjQ','join','validation','flag','18EAJfsq','11165632ORFqbZ','Provide\x20one\x20of:\x20','3483529MYjvba','144829edGDxY','4093248IZKhPK',',\x20got\x20\x22','Exactly\x20one\x20of\x20','8166366bypusK','Invalid\x20--','\x20is\x20allowed,\x20found:\x20','458168hHSQRe','str','Use\x20only\x20one\x20of:\x20','map','\x20are\x20mutually\x20exclusive\x20for\x20`','64899280hrWoYX','12DPHEGk','length','\x20is\x20required\x20for\x20`',':\x20expected\x20'];a19_0x1831=function(){return _0x173bef;};return a19_0x1831();}function a19_0xdfec(_0x4f3406,_0x470f11){_0x4f3406=_0x4f3406-0xac;const _0x18314c=a19_0x1831();let _0xdfecab=_0x18314c[_0x4f3406];return _0xdfecab;}(function(_0x5eed4f,_0x563202){const _0x326eac=a19_0xdfec,_0x447ec7=_0x5eed4f();while(!![]){try{const _0x311cc3=parseInt(_0x326eac(0xb4))/0x1*(-parseInt(_0x326eac(0xb0))/0x2)+-parseInt(_0x326eac(0xb5))/0x3+-parseInt(_0x326eac(0xbb))/0x4*(parseInt(_0x326eac(0xac))/0x5)+-parseInt(_0x326eac(0xc1))/0x6*(parseInt(_0x326eac(0xb3))/0x7)+-parseInt(_0x326eac(0xb1))/0x8+parseInt(_0x326eac(0xb8))/0x9+parseInt(_0x326eac(0xc0))/0xa;if(_0x311cc3===_0x563202)break;else _0x447ec7['push'](_0x447ec7['shift']());}catch(_0x1863da){_0x447ec7['push'](_0x447ec7['shift']());}}}(a19_0x1831,0xcf5e5));import{CliErrors}from'../../errors.js';function isSet(_0x591541,_0x1ed3a4){const _0xd7c59f=a19_0xdfec,_0x3afb9f=_0x591541[_0xd7c59f(0xaf)](_0x1ed3a4);return _0x3afb9f!==undefined&&_0x3afb9f!==''&&_0x3afb9f!==![]&&_0x3afb9f!==0x0;}function fmtNames(_0x55c84b){const _0x908d16=a19_0xdfec;return _0x55c84b[_0x908d16(0xbe)](_0x3a04f3=>'--'+_0x3a04f3)[_0x908d16(0xad)](',\x20');}export function requireOneOf(_0x58c867,_0x3be831,_0x2fc88e){const _0x219be4=a19_0xdfec,_0x507c82=_0x3be831[_0x219be4(0xc6)](_0x3a20a4=>isSet(_0x58c867,_0x3a20a4));if(_0x507c82[_0x219be4(0xc2)]!==0x1)throw CliErrors[_0x219be4(0xae)](_0x507c82['length']===0x0?_0x219be4(0xb7)+fmtNames(_0x3be831)+_0x219be4(0xc3)+_0x2fc88e+'`.':'Only\x20one\x20of\x20'+fmtNames(_0x3be831)+_0x219be4(0xba)+fmtNames(_0x507c82)+'.',_0x507c82[_0x219be4(0xc2)]===0x0?'Provide\x20one\x20of:\x20'+fmtNames(_0x3be831):'Remove\x20all\x20but\x20one.');}export function requireAnyOf(_0x2e05cb,_0x3ea566,_0x23cec8){const _0x1498d3=a19_0xdfec;if(!_0x3ea566['some'](_0x3bdcc0=>isSet(_0x2e05cb,_0x3bdcc0)))throw CliErrors[_0x1498d3(0xae)](_0x1498d3(0xc5)+fmtNames(_0x3ea566)+_0x1498d3(0xc3)+_0x23cec8+'`.',_0x1498d3(0xb2)+fmtNames(_0x3ea566));}export function mutuallyExclusive(_0xd8ce77,_0x1d5098,_0x297db4){const _0x57a015=a19_0xdfec,_0x13f5d7=_0x1d5098[_0x57a015(0xc6)](_0x17a768=>isSet(_0xd8ce77,_0x17a768));if(_0x13f5d7[_0x57a015(0xc2)]>0x1)throw CliErrors['validation']('Flags\x20'+fmtNames(_0x13f5d7)+_0x57a015(0xbf)+_0x297db4+'`.',_0x57a015(0xbd)+fmtNames(_0x1d5098));}export function validatePattern(_0x367c53,_0xd308a3,_0x4f0272,_0x1c7387){const _0x2c36fb=a19_0xdfec,_0x4b4b86=_0x367c53[_0x2c36fb(0xbc)](_0xd308a3);if(_0x4b4b86&&!_0x4f0272['test'](_0x4b4b86))throw CliErrors[_0x2c36fb(0xae)](_0x2c36fb(0xb9)+_0xd308a3+_0x2c36fb(0xc4)+_0x1c7387+_0x2c36fb(0xb6)+_0x4b4b86+'\x22.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a20_0x263b(){const _0x15421f=['a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','3mPqEbo','111VWYVVx','5vVslBm','364pqBKVr','2246590gYKado','number','string','17548aVuupB','Dataset\x20code\x20(32-char\x20hex\x20UUID)','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','79164WOhnDZ','Resource\x20name\x20for\x20lookup','5146299lShVxe','boolean','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','verbose','1991cVOnvV','sqlcode','Return\x20full\x20raw\x20response\x20object','1694298SIfyws','308962zKzLAe','code','33032BNLabW','Resource\x20ID'];a20_0x263b=function(){return _0x15421f;};return a20_0x263b();}function a20_0xae15(_0x1f178f,_0x2a6e7a){_0x1f178f=_0x1f178f-0xc8;const _0x263ba0=a20_0x263b();let _0xae1503=_0x263ba0[_0x1f178f];return _0xae1503;}const a20_0x131b60=a20_0xae15;(function(_0x1a1c49,_0x2f3c10){const _0x507317=a20_0xae15,_0x51d5a6=_0x1a1c49();while(!![]){try{const _0x6c9a92=parseInt(_0x507317(0xcd))/0x1*(parseInt(_0x507317(0xc8))/0x2)+-parseInt(_0x507317(0xce))/0x3*(-parseInt(_0x507317(0xd4))/0x4)+-parseInt(_0x507317(0xcf))/0x5*(-parseInt(_0x507317(0xe1))/0x6)+parseInt(_0x507317(0xd0))/0x7*(-parseInt(_0x507317(0xca))/0x8)+parseInt(_0x507317(0xda))/0x9+parseInt(_0x507317(0xd1))/0xa+parseInt(_0x507317(0xde))/0xb*(-parseInt(_0x507317(0xd8))/0xc);if(_0x6c9a92===_0x2f3c10)break;else _0x51d5a6['push'](_0x51d5a6['shift']());}catch(_0x1c0011){_0x51d5a6['push'](_0x51d5a6['shift']());}}}(a20_0x263b,0x483aa));export const CODE_FLAG={'name':a20_0x131b60(0xc9),'type':a20_0x131b60(0xd3),'required':!![],'description':a20_0x131b60(0xd5),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0x131b60(0xcc)}};export const SQLCODE_FLAG={'name':a20_0x131b60(0xdf),'type':a20_0x131b60(0xd3),'required':!![],'description':a20_0x131b60(0xd7),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0x131b60(0xd6)}};export const VERBOSE_FLAG={'name':a20_0x131b60(0xdd),'type':a20_0x131b60(0xdb),'description':a20_0x131b60(0xe0)};export const PARAMS_FLAG={'name':'params','type':a20_0x131b60(0xd3),'description':a20_0x131b60(0xdc)};export const NAME_FLAG={'name':'name','type':a20_0x131b60(0xd3),'description':a20_0x131b60(0xd9)};export const ID_FLAG={'name':'id','type':a20_0x131b60(0xd2),'required':!![],'description':a20_0x131b60(0xcb)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x40c640,_0x4b8f03){const _0x29ad71=a21_0x2afa,_0x4fbd48=_0x40c640();while(!![]){try{const _0x5501dc=-parseInt(_0x29ad71(0x135))/0x1*(-parseInt(_0x29ad71(0x136))/0x2)+parseInt(_0x29ad71(0x13b))/0x3*(parseInt(_0x29ad71(0x12e))/0x4)+parseInt(_0x29ad71(0x13a))/0x5+-parseInt(_0x29ad71(0x130))/0x6*(-parseInt(_0x29ad71(0x12b))/0x7)+parseInt(_0x29ad71(0x13d))/0x8*(-parseInt(_0x29ad71(0x132))/0x9)+-parseInt(_0x29ad71(0x128))/0xa*(-parseInt(_0x29ad71(0x12c))/0xb)+-parseInt(_0x29ad71(0x139))/0xc*(parseInt(_0x29ad71(0x127))/0xd);if(_0x5501dc===_0x4b8f03)break;else _0x4fbd48['push'](_0x4fbd48['shift']());}catch(_0x33a290){_0x4fbd48['push'](_0x4fbd48['shift']());}}}(a21_0xc76d,0x5ac52));function a21_0x2afa(_0x28cbea,_0x58d007){_0x28cbea=_0x28cbea-0x127;const _0xc76d65=a21_0xc76d();let _0x2afad3=_0xc76d65[_0x28cbea];return _0x2afad3;}import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x88060){const _0x118c6b=a21_0x2afa;if(_0x88060>=BYTES_PER_MB){const _0x5a8012=Math[_0x118c6b(0x133)](_0x88060/BYTES_PER_MB*0x64)/0x64;return _0x5a8012[_0x118c6b(0x131)](0x2)+'\x20MB';}return _0x88060+'\x20B';}function a21_0xc76d(){const _0x142252=['3fLcfAZ','451678lsSucf','isFile','size','132WwCAPU','589550ijUlsJ','1416483TrBcaR','File\x20not\x20found:\x20','77992TwtzsT','1976221MaTWEO','10uoFWEE','File\x20is\x20not\x20a\x20regular\x20file:\x20','\x20path\x20is\x20required.','28bQzAJS','6562644mNYibA','trim','4vmmghH','validation','313554QXDFCn','toFixed','27BAlzNE','ceil','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20'];a21_0xc76d=function(){return _0x142252;};return a21_0xc76d();}export function requireRuntimeUploadFile(_0x552096,_0x956656){const _0x5750f4=a21_0x2afa,_0x20f5a4=_0x552096[_0x5750f4(0x12d)]();if(!_0x20f5a4)throw CliErrors[_0x5750f4(0x12f)](_0x956656+_0x5750f4(0x12a));if(!existsSync(_0x20f5a4))throw CliErrors[_0x5750f4(0x12f)](_0x5750f4(0x13c)+_0x20f5a4);const _0x1a2cc4=statSync(_0x20f5a4);if(!_0x1a2cc4[_0x5750f4(0x137)]())throw CliErrors[_0x5750f4(0x12f)](_0x5750f4(0x129)+_0x20f5a4);if(_0x1a2cc4[_0x5750f4(0x138)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x5750f4(0x12f)](_0x5750f4(0x134)+_0x20f5a4+'\x20('+formatBytes(_0x1a2cc4[_0x5750f4(0x138)])+')');return{'path':_0x20f5a4,'size':_0x1a2cc4[_0x5750f4(0x138)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a22_0x246dc5=a22_0xa7f2;(function(_0x4a9fcd,_0x4c0577){const _0x52df2f=a22_0xa7f2,_0x27f73b=_0x4a9fcd();while(!![]){try{const _0x100a0a=parseInt(_0x52df2f(0x1c4))/0x1+parseInt(_0x52df2f(0x1be))/0x2+parseInt(_0x52df2f(0x1bb))/0x3*(-parseInt(_0x52df2f(0x1ca))/0x4)+-parseInt(_0x52df2f(0x1d0))/0x5*(parseInt(_0x52df2f(0x1a8))/0x6)+-parseInt(_0x52df2f(0x190))/0x7+-parseInt(_0x52df2f(0x1c0))/0x8*(-parseInt(_0x52df2f(0x19e))/0x9)+parseInt(_0x52df2f(0x1aa))/0xa;if(_0x100a0a===_0x4c0577)break;else _0x27f73b['push'](_0x27f73b['shift']());}catch(_0x13c6e1){_0x27f73b['push'](_0x27f73b['shift']());}}}(a22_0x53e4,0x6c652));function a22_0x53e4(){const _0x4e245d=['357795RsfhyJ','bool','riskLevel','List\x20current\x20config','Missing\x20key\x20argument.','pageSize','config','object','alias','\x20config\x20set\x20<key>\x20<value>\x20[--global]','6AfyODe','isArray','518830ThRpiW','../../context.js','split','Missing\x20key\x20or\x20value.','project-or-global-explicit','args','Set\x20a\x20config\x20value','Invalid\x20value\x20for\x20\x22','trim','Usage:\x20','pretty','includes','apps','validation','raw','get','Delete\x20a\x20config\x20value','21nYnVza','Get\x20a\x20config\x20value','read','1065854WDLWra','\x20\x20project:\x20','104mhRVOt','global','\x20(global)','Config\x20files:\x0a','642647IUoWpt','join','log','Top-level\x20key\x20\x22','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','Deleted\x20`','40556BTvCRZ','keys','Settable\x20keys:\x20','stringify','\x22.\x20Allowed:\x20','key','3245030UbanFP','Write\x20to\x20global\x20config','4062149CnZPqO','boolean','write','(none)','pageSize\x20must\x20be\x20a\x20positive\x20number','appcode','length','Key\x20not\x20found:\x20','set','format','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','field','\x20config\x20get\x20<key>','value'];a22_0x53e4=function(){return _0x4e245d;};return a22_0x53e4();}import{CliErrors}from'../../errors.js';function a22_0xa7f2(_0x329a62,_0x1f07ca){_0x329a62=_0x329a62-0x18f;const _0x53e414=a22_0x53e4();let _0xa7f256=_0x53e414[_0x329a62];return _0xa7f256;}import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a22_0x246dc5(0x1c1),'type':a22_0x246dc5(0x191),'description':a22_0x246dc5(0x18f),'default':![]};function parseAliasAppcodeSetKey(_0x4e15a6){const _0x4f63e8=a22_0x246dc5,_0x598883=_0x4e15a6[_0x4f63e8(0x1ac)]('.');if(_0x598883[_0x4f63e8(0x196)]!==0x3||_0x598883[0x0]!==_0x4f63e8(0x1b6)||_0x598883[0x2]!==_0x4f63e8(0x195))return undefined;const _0x4cd540=_0x598883[0x1]?.[_0x4f63e8(0x1b2)]();return _0x4cd540?_0x4cd540:undefined;}function parseAliasDeleteKey(_0x45e9ee){const _0x6dc782=a22_0x246dc5,_0x418bc0=_0x45e9ee[_0x6dc782(0x1ac)]('.');if(_0x418bc0[_0x6dc782(0x196)]===0x2&&_0x418bc0[0x0]===_0x6dc782(0x1b6)){const _0x586524=_0x418bc0[0x1]?.[_0x6dc782(0x1b2)]();return _0x586524?{'alias':_0x586524}:undefined;}if(_0x418bc0[_0x6dc782(0x196)]===0x3&&_0x418bc0[0x0]===_0x6dc782(0x1b6)&&_0x418bc0[0x2]===_0x6dc782(0x195)){const _0x50412d=_0x418bc0[0x1]?.[_0x6dc782(0x1b2)]();return _0x50412d?{'alias':_0x50412d,'field':'appcode'}:undefined;}return undefined;}function setLocalAppAlias(_0x2877d7,_0x2c4667,_0x1c1bac){const _0x573abb=a22_0x246dc5,_0x367a3e=_0x2877d7['apps']&&typeof _0x2877d7['apps']===_0x573abb(0x1a5)&&!Array[_0x573abb(0x1a9)](_0x2877d7['apps'])?_0x2877d7[_0x573abb(0x1b6)]:{},_0xf6ce08=_0x367a3e[_0x2c4667]&&typeof _0x367a3e[_0x2c4667]===_0x573abb(0x1a5)&&!Array['isArray'](_0x367a3e[_0x2c4667])?_0x367a3e[_0x2c4667]:{};_0xf6ce08[_0x573abb(0x195)]=_0x1c1bac,_0x367a3e[_0x2c4667]=_0xf6ce08,_0x2877d7[_0x573abb(0x1b6)]=_0x367a3e;}function deleteLocalAppAlias(_0x509509,_0x4e1fd5){const _0x3cda22=a22_0x246dc5;if(!_0x509509[_0x3cda22(0x1b6)]||typeof _0x509509[_0x3cda22(0x1b6)]!==_0x3cda22(0x1a5)||Array['isArray'](_0x509509[_0x3cda22(0x1b6)]))return![];const _0x4f1288=_0x509509[_0x3cda22(0x1b6)],_0x118c6b=_0x4f1288[_0x4e1fd5[_0x3cda22(0x1a6)]];if(!_0x118c6b||typeof _0x118c6b!=='object'||Array[_0x3cda22(0x1a9)](_0x118c6b))return![];if(!_0x4e1fd5[_0x3cda22(0x19b)])return delete _0x4f1288[_0x4e1fd5[_0x3cda22(0x1a6)]],!![];if(!(_0x4e1fd5[_0x3cda22(0x19b)]in _0x118c6b))return![];return delete _0x118c6b[_0x4e1fd5[_0x3cda22(0x19b)]],Object[_0x3cda22(0x1cb)](_0x118c6b)[_0x3cda22(0x196)]===0x0&&delete _0x4f1288[_0x4e1fd5['alias']],!![];}const listDef={'service':a22_0x246dc5(0x1a4),'command':'list','description':a22_0x246dc5(0x1a1),'risk':a22_0x246dc5(0x1bd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x111438){const _0x164f74=a22_0x246dc5,{buildConfigFromFlags:_0x922eb5}=await import(_0x164f74(0x1ab)),_0x215d34=_0x922eb5({}),_0x59ebcf=getProjectConfigPath(),_0x560299=resolveWriteConfigPath('global');if(_0x111438[_0x164f74(0x199)]===_0x164f74(0x1b4))return{'ok':!![],'message':_0x164f74(0x1c8)+(JSON[_0x164f74(0x1cd)](_0x215d34[_0x164f74(0x1b8)],null,0x2)+'\x0a\x0a')+_0x164f74(0x1c3)+(_0x164f74(0x1bf)+(_0x59ebcf??_0x164f74(0x193))+'\x0a')+('\x20\x20global:\x20\x20'+_0x560299)};return{'ok':!![],'data':{'effective':_0x215d34[_0x164f74(0x1b8)],'configFiles':{'project':_0x59ebcf??null,'global':_0x560299}}};}},getDef={'service':a22_0x246dc5(0x1a4),'command':a22_0x246dc5(0x1b9),'description':a22_0x246dc5(0x1bc),'risk':a22_0x246dc5(0x1bd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':'Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','required':!![]}],'flags':[],async 'execute'(_0x519097){const _0xd3de41=a22_0x246dc5,_0x2430ee=_0x519097['args'][0x0];if(!_0x2430ee)throw CliErrors[_0xd3de41(0x1b7)](_0xd3de41(0x1a2),_0xd3de41(0x1b3)+CLI_BIN_NAME+_0xd3de41(0x19c));const {buildConfigFromFlags:_0x2b2388}=await import(_0xd3de41(0x1ab)),{raw:_0x1e62a}=_0x2b2388({});if(_0x2430ee[_0xd3de41(0x1b5)]('.')){const _0x26c5a3=_0x2430ee['split']('.');let _0xdeccb5=_0x1e62a;for(const _0x485698 of _0x26c5a3){if(_0xdeccb5==null||typeof _0xdeccb5!==_0xd3de41(0x1a5))throw CliErrors[_0xd3de41(0x1b7)](_0xd3de41(0x197)+_0x2430ee);_0xdeccb5=_0xdeccb5[_0x485698];}if(_0xdeccb5===undefined)throw CliErrors[_0xd3de41(0x1b7)]('Key\x20not\x20found:\x20'+_0x2430ee);return console['log'](typeof _0xdeccb5===_0xd3de41(0x1a5)?JSON['stringify'](_0xdeccb5,null,0x2):String(_0xdeccb5)),{'ok':!![]};}const _0x17450c=_0x1e62a[_0x2430ee];if(_0x17450c===undefined)throw CliErrors['validation'](_0xd3de41(0x197)+_0x2430ee);return console[_0xd3de41(0x1c6)](typeof _0x17450c===_0xd3de41(0x1a5)?JSON[_0xd3de41(0x1cd)](_0x17450c,null,0x2):String(_0x17450c)),{'ok':!![]};}},setDef={'service':a22_0x246dc5(0x1a4),'command':a22_0x246dc5(0x198),'description':a22_0x246dc5(0x1b0),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x246dc5(0x1cf),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x246dc5(0x19d),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x35c9cf){const _0x2258f1=a22_0x246dc5,_0xd80482=_0x35c9cf[_0x2258f1(0x1af)][0x0],_0x4768b9=_0x35c9cf['args'][0x1];if(!_0xd80482||_0x4768b9===undefined)throw CliErrors[_0x2258f1(0x1b7)](_0x2258f1(0x1ad),_0x2258f1(0x1b3)+CLI_BIN_NAME+_0x2258f1(0x1a7));if(ENUM_KEYS[_0xd80482]&&!ENUM_KEYS[_0xd80482][_0x2258f1(0x1b5)](_0x4768b9))throw CliErrors['validation'](_0x2258f1(0x1b1)+_0xd80482+_0x2258f1(0x1ce)+ENUM_KEYS[_0xd80482][_0x2258f1(0x1c5)](',\x20'));if(_0xd80482===_0x2258f1(0x1a0))throw CliErrors[_0x2258f1(0x1b7)](_0x2258f1(0x19a));if(_0xd80482===_0x2258f1(0x1a3)){const _0xb84cd6=Number(_0x4768b9);if(isNaN(_0xb84cd6)||_0xb84cd6<=0x0)throw CliErrors[_0x2258f1(0x1b7)](_0x2258f1(0x194));}const _0x2ebd78=resolveWriteScope({'explicitGlobal':_0x35c9cf[_0x2258f1(0x19f)](_0x2258f1(0x1c1)),'policy':_0x2258f1(0x1ae)}),_0x1c6345=toScopeFlags(_0x2ebd78),_0x3f298b=readScopedConfig(_0x1c6345),_0x656b0d=parseAliasAppcodeSetKey(_0xd80482);if(!_0x656b0d&&!isTopLevelConfigKey(_0xd80482))throw CliErrors[_0x2258f1(0x1b7)](_0x2258f1(0x1c7)+_0xd80482+'\x22\x20is\x20not\x20settable.',_0x2258f1(0x1cc)+getTopLevelConfigKeySummary()+';\x20apps.<alias>.appcode');return _0x656b0d?setLocalAppAlias(_0x3f298b,_0x656b0d,_0x4768b9):_0x3f298b[_0xd80482]=_0xd80482==='pageSize'?Number(_0x4768b9):_0x4768b9,console[_0x2258f1(0x1c6)]('Set\x20`'+_0xd80482+'`\x20=\x20\x22'+_0x4768b9+'\x22'+(_0x2ebd78==='global'?_0x2258f1(0x1c2):'')),writeScopedConfig(_0x3f298b,_0x1c6345),{'ok':!![]};}},deleteDef={'service':'config','command':'delete','description':a22_0x246dc5(0x1ba),'risk':a22_0x246dc5(0x192),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x246dc5(0x1cf),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0xb72118){const _0x5b878e=a22_0x246dc5,_0x18385c=_0xb72118[_0x5b878e(0x1af)][0x0];if(!_0x18385c)throw CliErrors[_0x5b878e(0x1b7)](_0x5b878e(0x1a2),_0x5b878e(0x1b3)+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x2c26f2=resolveWriteScope({'explicitGlobal':_0xb72118[_0x5b878e(0x19f)]('global'),'policy':_0x5b878e(0x1ae)}),_0x350d7e=toScopeFlags(_0x2c26f2),_0x435bcd=readScopedConfig(_0x350d7e),_0x452f19=parseAliasDeleteKey(_0x18385c);if(_0x452f19){if(!deleteLocalAppAlias(_0x435bcd,_0x452f19))throw CliErrors[_0x5b878e(0x1b7)](_0x5b878e(0x197)+_0x18385c);return console[_0x5b878e(0x1c6)](_0x5b878e(0x1c9)+_0x18385c+'`'+(_0x2c26f2===_0x5b878e(0x1c1)?'\x20(global)':'')),writeScopedConfig(_0x435bcd,_0x350d7e),{'ok':!![]};}if(_0x435bcd[_0x18385c]===undefined)throw CliErrors['validation']('Key\x20\x22'+_0x18385c+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0x435bcd[_0x18385c],console[_0x5b878e(0x1c6)](_0x5b878e(0x1c9)+_0x18385c+'`'+(_0x2c26f2===_0x5b878e(0x1c1)?_0x5b878e(0x1c2):'')),writeScopedConfig(_0x435bcd,_0x350d7e),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
1
|
+
const a22_0x3296e2=a22_0x1702;(function(_0x9fc1cf,_0x13686f){const _0x3477c1=a22_0x1702,_0x395c23=_0x9fc1cf();while(!![]){try{const _0x41b2b2=-parseInt(_0x3477c1(0x18d))/0x1*(parseInt(_0x3477c1(0x19a))/0x2)+-parseInt(_0x3477c1(0x19e))/0x3+-parseInt(_0x3477c1(0x1b1))/0x4+parseInt(_0x3477c1(0x1b3))/0x5+-parseInt(_0x3477c1(0x185))/0x6*(parseInt(_0x3477c1(0x1aa))/0x7)+-parseInt(_0x3477c1(0x19b))/0x8+parseInt(_0x3477c1(0x1a7))/0x9;if(_0x41b2b2===_0x13686f)break;else _0x395c23['push'](_0x395c23['shift']());}catch(_0x362cd8){_0x395c23['push'](_0x395c23['shift']());}}}(a22_0x32be,0x3d167));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':'global','type':a22_0x3296e2(0x18c),'description':a22_0x3296e2(0x1a3),'default':![]};function parseAliasAppcodeSetKey(_0x2ad4fb){const _0x273207=a22_0x3296e2,_0x2b12be=_0x2ad4fb[_0x273207(0x182)]('.');if(_0x2b12be[_0x273207(0x19c)]!==0x3||_0x2b12be[0x0]!==_0x273207(0x17b)||_0x2b12be[0x2]!=='appcode')return undefined;const _0x23effa=_0x2b12be[0x1]?.['trim']();return _0x23effa?_0x23effa:undefined;}function parseAliasDeleteKey(_0x7f156){const _0x1e58eb=a22_0x3296e2,_0x27191f=_0x7f156[_0x1e58eb(0x182)]('.');if(_0x27191f[_0x1e58eb(0x19c)]===0x2&&_0x27191f[0x0]===_0x1e58eb(0x17b)){const _0x50ad47=_0x27191f[0x1]?.['trim']();return _0x50ad47?{'alias':_0x50ad47}:undefined;}if(_0x27191f[_0x1e58eb(0x19c)]===0x3&&_0x27191f[0x0]===_0x1e58eb(0x17b)&&_0x27191f[0x2]===_0x1e58eb(0x178)){const _0x4c3a8e=_0x27191f[0x1]?.[_0x1e58eb(0x17f)]();return _0x4c3a8e?{'alias':_0x4c3a8e,'field':_0x1e58eb(0x178)}:undefined;}return undefined;}function setLocalAppAlias(_0x132950,_0xfeb674,_0x51d0b9){const _0x676449=a22_0x3296e2,_0x248bea=_0x132950[_0x676449(0x17b)]&&typeof _0x132950[_0x676449(0x17b)]===_0x676449(0x1b5)&&!Array[_0x676449(0x184)](_0x132950[_0x676449(0x17b)])?_0x132950[_0x676449(0x17b)]:{},_0x352023=_0x248bea[_0xfeb674]&&typeof _0x248bea[_0xfeb674]===_0x676449(0x1b5)&&!Array['isArray'](_0x248bea[_0xfeb674])?_0x248bea[_0xfeb674]:{};_0x352023[_0x676449(0x178)]=_0x51d0b9,_0x248bea[_0xfeb674]=_0x352023,_0x132950[_0x676449(0x17b)]=_0x248bea;}function deleteLocalAppAlias(_0x120c93,_0x39face){const _0x231837=a22_0x3296e2;if(!_0x120c93[_0x231837(0x17b)]||typeof _0x120c93[_0x231837(0x17b)]!==_0x231837(0x1b5)||Array[_0x231837(0x184)](_0x120c93[_0x231837(0x17b)]))return![];const _0x4db4ac=_0x120c93[_0x231837(0x17b)],_0x2d3624=_0x4db4ac[_0x39face[_0x231837(0x1b2)]];if(!_0x2d3624||typeof _0x2d3624!==_0x231837(0x1b5)||Array[_0x231837(0x184)](_0x2d3624))return![];if(!_0x39face[_0x231837(0x187)])return delete _0x4db4ac[_0x39face[_0x231837(0x1b2)]],!![];if(!(_0x39face[_0x231837(0x187)]in _0x2d3624))return![];return delete _0x2d3624[_0x39face[_0x231837(0x187)]],Object[_0x231837(0x1ad)](_0x2d3624)['length']===0x0&&delete _0x4db4ac[_0x39face[_0x231837(0x1b2)]],!![];}function a22_0x1702(_0x353b0f,_0x54e6e4){_0x353b0f=_0x353b0f-0x177;const _0x32be33=a22_0x32be();let _0x17022c=_0x32be33[_0x353b0f];return _0x17022c;}function a22_0x32be(){const _0x19706a=['value','read','Usage:\x20','trim','stringify','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','split','\x22\x20is\x20not\x20settable.','isArray','597144mteEWM',';\x20apps.<alias>.appcode','field','bool','pageSize','\x20(global)','\x22\x20not\x20found\x20at\x20top\x20level.','boolean','1lWIvMD','Key\x20\x22','config','format','Delete\x20a\x20config\x20value','raw','../../context.js','\x22.\x20Allowed:\x20','Set\x20a\x20config\x20value','Settable\x20keys:\x20','Key\x20not\x20found:\x20','key','List\x20current\x20config','219010pFIIaR','2750296iqJEqm','length','project-or-global-explicit','584079DrCktv','Set\x20`','Missing\x20key\x20or\x20value.','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','\x20config\x20get\x20<key>','Write\x20to\x20global\x20config','Invalid\x20value\x20for\x20\x22','`\x20=\x20\x22','includes','11083707NhqRpm','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','validation','14ZHdZDw','write','Missing\x20key\x20argument.','keys','args','log','Value\x20to\x20assign','1024396GQggNY','alias','609120OmLPEX','delete','object','\x20\x20project:\x20','global','riskLevel','Deleted\x20`','Top-level\x20key\x20\x22','pretty','pageSize\x20must\x20be\x20a\x20positive\x20number','appcode','Config\x20files:\x0a','join','apps'];a22_0x32be=function(){return _0x19706a;};return a22_0x32be();}const listDef={'service':'config','command':'list','description':a22_0x3296e2(0x199),'risk':a22_0x3296e2(0x17d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x19e26c){const _0x1ad9a0=a22_0x3296e2,{buildConfigFromFlags:_0x49f30a}=await import(_0x1ad9a0(0x193)),_0x3c74e7=_0x49f30a({}),_0x50e2c8=getProjectConfigPath(),_0x39b9cd=resolveWriteConfigPath(_0x1ad9a0(0x1b7));if(_0x19e26c[_0x1ad9a0(0x190)]===_0x1ad9a0(0x1bb))return{'ok':!![],'message':_0x1ad9a0(0x1a1)+(JSON[_0x1ad9a0(0x180)](_0x3c74e7['raw'],null,0x2)+'\x0a\x0a')+_0x1ad9a0(0x179)+(_0x1ad9a0(0x1b6)+(_0x50e2c8??'(none)')+'\x0a')+('\x20\x20global:\x20\x20'+_0x39b9cd)};return{'ok':!![],'data':{'effective':_0x3c74e7[_0x1ad9a0(0x192)],'configFiles':{'project':_0x50e2c8??null,'global':_0x39b9cd}}};}},getDef={'service':a22_0x3296e2(0x18f),'command':'get','description':'Get\x20a\x20config\x20value','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':a22_0x3296e2(0x181),'required':!![]}],'flags':[],async 'execute'(_0x41f37b){const _0x378b5a=a22_0x3296e2,_0x5a9943=_0x41f37b[_0x378b5a(0x1ae)][0x0];if(!_0x5a9943)throw CliErrors[_0x378b5a(0x1a9)](_0x378b5a(0x1ac),_0x378b5a(0x17e)+CLI_BIN_NAME+_0x378b5a(0x1a2));const {buildConfigFromFlags:_0x1ed65e}=await import('../../context.js'),{raw:_0x281523}=_0x1ed65e({});if(_0x5a9943['includes']('.')){const _0x18e458=_0x5a9943[_0x378b5a(0x182)]('.');let _0x2db43d=_0x281523;for(const _0x47fab2 of _0x18e458){if(_0x2db43d==null||typeof _0x2db43d!==_0x378b5a(0x1b5))throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x5a9943);_0x2db43d=_0x2db43d[_0x47fab2];}if(_0x2db43d===undefined)throw CliErrors[_0x378b5a(0x1a9)](_0x378b5a(0x197)+_0x5a9943);return console[_0x378b5a(0x1af)](typeof _0x2db43d==='object'?JSON[_0x378b5a(0x180)](_0x2db43d,null,0x2):String(_0x2db43d)),{'ok':!![]};}const _0x138bc9=_0x281523[_0x5a9943];if(_0x138bc9===undefined)throw CliErrors[_0x378b5a(0x1a9)](_0x378b5a(0x197)+_0x5a9943);return console[_0x378b5a(0x1af)](typeof _0x138bc9===_0x378b5a(0x1b5)?JSON[_0x378b5a(0x180)](_0x138bc9,null,0x2):String(_0x138bc9)),{'ok':!![]};}},setDef={'service':a22_0x3296e2(0x18f),'command':'set','description':a22_0x3296e2(0x195),'risk':a22_0x3296e2(0x1ab),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x3296e2(0x198),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x3296e2(0x17c),'description':a22_0x3296e2(0x1b0),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x442738){const _0x1660ee=a22_0x3296e2,_0xd35bd2=_0x442738[_0x1660ee(0x1ae)][0x0],_0x35b163=_0x442738[_0x1660ee(0x1ae)][0x1];if(!_0xd35bd2||_0x35b163===undefined)throw CliErrors[_0x1660ee(0x1a9)](_0x1660ee(0x1a0),_0x1660ee(0x17e)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0xd35bd2]&&!ENUM_KEYS[_0xd35bd2][_0x1660ee(0x1a6)](_0x35b163))throw CliErrors['validation'](_0x1660ee(0x1a4)+_0xd35bd2+_0x1660ee(0x194)+ENUM_KEYS[_0xd35bd2][_0x1660ee(0x17a)](',\x20'));if(_0xd35bd2===_0x1660ee(0x1b8))throw CliErrors[_0x1660ee(0x1a9)](_0x1660ee(0x1a8));if(_0xd35bd2===_0x1660ee(0x189)){const _0x124d9e=Number(_0x35b163);if(isNaN(_0x124d9e)||_0x124d9e<=0x0)throw CliErrors['validation'](_0x1660ee(0x177));}const _0x5db644=resolveWriteScope({'explicitGlobal':_0x442738[_0x1660ee(0x188)]('global'),'policy':'project-or-global-explicit'}),_0x1a2c9a=toScopeFlags(_0x5db644),_0x452ca7=readScopedConfig(_0x1a2c9a),_0x5f1090=parseAliasAppcodeSetKey(_0xd35bd2);if(!_0x5f1090&&!isTopLevelConfigKey(_0xd35bd2))throw CliErrors[_0x1660ee(0x1a9)](_0x1660ee(0x1ba)+_0xd35bd2+_0x1660ee(0x183),_0x1660ee(0x196)+getTopLevelConfigKeySummary()+_0x1660ee(0x186));return _0x5f1090?setLocalAppAlias(_0x452ca7,_0x5f1090,_0x35b163):_0x452ca7[_0xd35bd2]=_0xd35bd2==='pageSize'?Number(_0x35b163):_0x35b163,console[_0x1660ee(0x1af)](_0x1660ee(0x19f)+_0xd35bd2+_0x1660ee(0x1a5)+_0x35b163+'\x22'+(_0x5db644===_0x1660ee(0x1b7)?_0x1660ee(0x18a):'')),writeScopedConfig(_0x452ca7,_0x1a2c9a),{'ok':!![]};}},deleteDef={'service':'config','command':a22_0x3296e2(0x1b4),'description':a22_0x3296e2(0x191),'risk':a22_0x3296e2(0x1ab),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x3296e2(0x198),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x4ac283){const _0x4fff08=a22_0x3296e2,_0x56538e=_0x4ac283[_0x4fff08(0x1ae)][0x0];if(!_0x56538e)throw CliErrors[_0x4fff08(0x1a9)](_0x4fff08(0x1ac),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x2a7166=resolveWriteScope({'explicitGlobal':_0x4ac283[_0x4fff08(0x188)](_0x4fff08(0x1b7)),'policy':_0x4fff08(0x19d)}),_0x49d02c=toScopeFlags(_0x2a7166),_0x4a7a3b=readScopedConfig(_0x49d02c),_0x151cfb=parseAliasDeleteKey(_0x56538e);if(_0x151cfb){if(!deleteLocalAppAlias(_0x4a7a3b,_0x151cfb))throw CliErrors[_0x4fff08(0x1a9)](_0x4fff08(0x197)+_0x56538e);return console[_0x4fff08(0x1af)](_0x4fff08(0x1b9)+_0x56538e+'`'+(_0x2a7166===_0x4fff08(0x1b7)?_0x4fff08(0x18a):'')),writeScopedConfig(_0x4a7a3b,_0x49d02c),{'ok':!![]};}if(_0x4a7a3b[_0x56538e]===undefined)throw CliErrors[_0x4fff08(0x1a9)](_0x4fff08(0x18e)+_0x56538e+_0x4fff08(0x18b));return delete _0x4a7a3b[_0x56538e],console[_0x4fff08(0x1af)](_0x4fff08(0x1b9)+_0x56538e+'`'+(_0x2a7166===_0x4fff08(0x1b7)?_0x4fff08(0x18a):'')),writeScopedConfig(_0x4a7a3b,_0x49d02c),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4cf1a4,_0x4ff0a1){var _0x3666e2=a23_0x500b,_0xb61eb8=_0x4cf1a4();while(!![]){try{var _0x472134=parseInt(_0x3666e2(0x188))/0x1+parseInt(_0x3666e2(0x186))/0x2+parseInt(_0x3666e2(0x183))/0x3*(-parseInt(_0x3666e2(0x18a))/0x4)+parseInt(_0x3666e2(0x185))/0x5*(parseInt(_0x3666e2(0x187))/0x6)+parseInt(_0x3666e2(0x189))/0x7+parseInt(_0x3666e2(0x18b))/0x8+-parseInt(_0x3666e2(0x184))/0x9;if(_0x472134===_0x4ff0a1)break;else _0xb61eb8['push'](_0xb61eb8['shift']());}catch(_0x53b560){_0xb61eb8['push'](_0xb61eb8['shift']());}}}(a23_0x2419,0xebd97));function a23_0x500b(_0x32e9cc,_0x255c33){_0x32e9cc=_0x32e9cc-0x183;var _0x24192c=a23_0x2419();var _0x500b2f=_0x24192c[_0x32e9cc];return _0x500b2f;}import{CLI_BIN_NAME}from'../../constant/cli.js';function a23_0x2419(){var _0x1cc2ef=['783401ZmHDKd','3775128JsVGnh','18764ayrRud','9917456XRrABV','171cTIKkS','32512311rBifyI','33485oWMkxN','3040120TnzCCm','684JIdAvh'];a23_0x2419=function(){return _0x1cc2ef;};return a23_0x2419();}export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a24_0x108d92=a24_0x4fcd;(function(_0x2d1d48,_0x176bd1){const _0x3786d3=a24_0x4fcd,_0x55bea9=_0x2d1d48();while(!![]){try{const _0x26b95d=-parseInt(_0x3786d3(0x169))/0x1*(parseInt(_0x3786d3(0x12e))/0x2)+-parseInt(_0x3786d3(0x16f))/0x3*(-parseInt(_0x3786d3(0x170))/0x4)+parseInt(_0x3786d3(0x148))/0x5+parseInt(_0x3786d3(0x147))/0x6+-parseInt(_0x3786d3(0x15c))/0x7+-parseInt(_0x3786d3(0x121))/0x8*(-parseInt(_0x3786d3(0x165))/0x9)+-parseInt(_0x3786d3(0x140))/0xa;if(_0x26b95d===_0x176bd1)break;else _0x55bea9['push'](_0x55bea9['shift']());}catch(_0x13e005){_0x55bea9['push'](_0x55bea9['shift']());}}}(a24_0x13ed,0x70228));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a24_0x13ed(){const _0x1226d2=['Filter\x20dataset\x20records\x20with\x20query\x20conditions','risk','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','body','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','8TCSBVz','build','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','write','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','length','paramsHint','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','\x20\x20AGGREGATE\x20TYPES','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','data\x20','Get\x20a\x20single\x20record\x20by\x20ID','batchCreate','params','Preview:\x20data\x20','data','3592730XDlGtu','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','\x20completed\x20in\x20','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','\x20\x20EXAMPLES','4078878dImfpz','2027090dQQaSm','aggregate','code','\x20\x20LOGICAL\x20COMBINATORS','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','batch','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','description','getOne','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','helpExtra','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','now','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','read','delete','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','883624yhDYgD','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','create','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','map','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20WHERE\x20OPERATORS','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','27LyHOTV','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','POST','222529HKUKdm','\x20\x20PAGINATION','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','2463CyCNbr','3084xHIAJb','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','command','Update\x20an\x20existing\x20record','str','update','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','filter','311208uDffAi','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','paramsRequired','operation','join','\x20\x20PARAMS\x20STRUCTURE'];a24_0x13ed=function(){return _0x1226d2;};return a24_0x13ed();}import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';function a24_0x4fcd(_0x6725be,_0x55edc0){_0x6725be=_0x6725be-0x119;const _0x13edc3=a24_0x13ed();let _0x4fcde7=_0x13edc3[_0x6725be];return _0x4fcde7;}const specs=[{'command':'filter','operation':a24_0x108d92(0x120),'risk':a24_0x108d92(0x159),'paramsRequired':![],'description':a24_0x108d92(0x128),'paramsHint':a24_0x108d92(0x12d)+a24_0x108d92(0x172),'helpExtra':[a24_0x108d92(0x162),a24_0x108d92(0x11a),a24_0x108d92(0x14f),'\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}',a24_0x108d92(0x11f),'\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}',a24_0x108d92(0x171),a24_0x108d92(0x16b),'\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}',a24_0x108d92(0x131),'',a24_0x108d92(0x14b),a24_0x108d92(0x137),'\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','',a24_0x108d92(0x164),a24_0x108d92(0x16d),a24_0x108d92(0x12a),a24_0x108d92(0x163),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)',a24_0x108d92(0x119),'',a24_0x108d92(0x16a),a24_0x108d92(0x153),a24_0x108d92(0x130),a24_0x108d92(0x123)][a24_0x108d92(0x126)]('\x0a')},{'command':a24_0x108d92(0x151),'operation':a24_0x108d92(0x151),'risk':a24_0x108d92(0x159),'paramsRequired':!![],'description':a24_0x108d92(0x13b),'paramsHint':a24_0x108d92(0x12c)},{'command':'create','operation':a24_0x108d92(0x15e),'risk':a24_0x108d92(0x132),'paramsRequired':!![],'description':'Create\x20a\x20new\x20record\x20in\x20a\x20dataset','paramsHint':'JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27'},{'command':a24_0x108d92(0x13c),'operation':'batchCreate','risk':a24_0x108d92(0x132),'paramsRequired':!![],'description':a24_0x108d92(0x15f),'paramsHint':a24_0x108d92(0x15d)},{'command':'update','operation':'update','risk':a24_0x108d92(0x132),'paramsRequired':!![],'description':a24_0x108d92(0x11c),'paramsHint':a24_0x108d92(0x152)+a24_0x108d92(0x143)},{'command':'delete','operation':a24_0x108d92(0x15a),'risk':'high-risk-write','paramsRequired':!![],'description':a24_0x108d92(0x141),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a24_0x108d92(0x149),'operation':a24_0x108d92(0x149),'risk':a24_0x108d92(0x159),'paramsRequired':![],'description':a24_0x108d92(0x14c),'paramsHint':a24_0x108d92(0x122)+a24_0x108d92(0x16c),'helpExtra':[a24_0x108d92(0x138),'\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}',a24_0x108d92(0x167),a24_0x108d92(0x133),a24_0x108d92(0x142),a24_0x108d92(0x158),a24_0x108d92(0x157),'',a24_0x108d92(0x127),a24_0x108d92(0x15b),'\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)',a24_0x108d92(0x161),a24_0x108d92(0x166),a24_0x108d92(0x134),'',a24_0x108d92(0x146),a24_0x108d92(0x14e),a24_0x108d92(0x139),'',a24_0x108d92(0x155),a24_0x108d92(0x145),'',a24_0x108d92(0x16e)][a24_0x108d92(0x126)]('\x0a')}];function makeDataCommand(_0x3f3dc3){const _0x149e32=a24_0x108d92,_0x46af54='data\x20'+_0x3f3dc3[_0x149e32(0x11b)],_0x3c0e35={'service':_0x149e32(0x13f),'command':_0x3f3dc3['command'],'description':_0x3f3dc3[_0x149e32(0x150)],'risk':_0x3f3dc3[_0x149e32(0x129)],'helpExtra':_0x3f3dc3[_0x149e32(0x154)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x3f3dc3[_0x149e32(0x136)]}],'validate':async _0x3cb6e5=>{const _0x22d345=_0x149e32;_0x3f3dc3[_0x22d345(0x124)]&&requireAnyOf(_0x3cb6e5,[_0x22d345(0x13d)],_0x46af54),_0x3f3dc3[_0x22d345(0x125)]===_0x22d345(0x13c)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3cb6e5[_0x22d345(0x11d)]('params'))),_0x3f3dc3[_0x22d345(0x125)]==='update'&&parseUpdateIdsFromParams(parseJsonParams(_0x3cb6e5['str']('params'))??{});},async 'execute'(_0x5421d3){const _0x12a706=_0x149e32,_0x224810=_0x5421d3[_0x12a706(0x11d)](_0x12a706(0x14a)),_0x3625b5=_0x3f3dc3[_0x12a706(0x125)]===_0x12a706(0x13c)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5421d3[_0x12a706(0x11d)](_0x12a706(0x13d)))):parseJsonParams(_0x5421d3['str'](_0x12a706(0x13d)))??{},_0x349db5=_0x3f3dc3[_0x12a706(0x125)]===_0x12a706(0x11e)?parseUpdateIdsFromParams(_0x3625b5):undefined,_0x3ea466=_0x349db5?normalizeUpdateParamsForRuntime(_0x3625b5,_0x349db5):_0x3625b5,_0x945cd9=Date[_0x12a706(0x156)](),_0x50e666=await executeData(_0x224810,_0x3f3dc3['operation'],_0x3ea466),_0x960f38=Date[_0x12a706(0x156)]()-_0x945cd9,_0x5993f9=_0x349db5&&_0x349db5['length']>0x1?buildBatchUpdateResult(_0x349db5,_0x50e666):_0x50e666;return{'ok':!![],'data':{'result':_0x5993f9,'elapsed':_0x960f38},'message':_0x12a706(0x13a)+_0x3f3dc3['command']+_0x12a706(0x144)+_0x960f38+'ms'};}};return _0x3f3dc3['risk']!==_0x149e32(0x159)&&(_0x3c0e35['dryRun']=async _0xb1e42b=>{const _0x267d49=_0x149e32,_0x5355a1=_0xb1e42b[_0x267d49(0x11d)](_0x267d49(0x14a)),_0x2b3a1c=_0x3f3dc3[_0x267d49(0x125)]===_0x267d49(0x13c)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0xb1e42b[_0x267d49(0x11d)](_0x267d49(0x13d)))):parseJsonParams(_0xb1e42b['str']('params'))??{};let _0x520c82=_0x2b3a1c;if(_0x3f3dc3[_0x267d49(0x125)]===_0x267d49(0x11e)){const _0x4e2798=parseUpdateIdsFromParams(_0x2b3a1c);_0x520c82=normalizeUpdateParamsForRuntime(_0x2b3a1c,_0x4e2798);}return dryRun(_0x267d49(0x168),'/api/{appCode}/'+_0x5355a1+'/'+_0x3f3dc3[_0x267d49(0x125)])[_0x267d49(0x12b)](_0x520c82)[_0x267d49(0x150)](_0x267d49(0x13e)+_0x3f3dc3['command']+'\x20on\x20dataset\x20'+_0x5355a1)[_0x267d49(0x12f)]();}),_0x3c0e35;}export const dataDefinitions=specs[a24_0x108d92(0x160)](makeDataCommand);function buildBatchUpdateResult(_0x26db98,_0x5ba662){const _0x25885d=a24_0x108d92;return{'operation':_0x25885d(0x11e),'mode':_0x25885d(0x14d),'ids':_0x26db98,'total':_0x26db98[_0x25885d(0x135)],'result':_0x5ba662};}
|
|
1
|
+
const a24_0x2cb561=a24_0x3eb9;(function(_0x13883f,_0x1a84ca){const _0x361041=a24_0x3eb9,_0x3bcdf2=_0x13883f();while(!![]){try{const _0x4233bd=parseInt(_0x361041(0x1e1))/0x1*(-parseInt(_0x361041(0x212))/0x2)+-parseInt(_0x361041(0x237))/0x3+-parseInt(_0x361041(0x1e7))/0x4*(-parseInt(_0x361041(0x222))/0x5)+-parseInt(_0x361041(0x231))/0x6+-parseInt(_0x361041(0x1e3))/0x7+-parseInt(_0x361041(0x22a))/0x8*(parseInt(_0x361041(0x20f))/0x9)+parseInt(_0x361041(0x1f5))/0xa;if(_0x4233bd===_0x1a84ca)break;else _0x3bcdf2['push'](_0x3bcdf2['shift']());}catch(_0x5a41d4){_0x3bcdf2['push'](_0x3bcdf2['shift']());}}}(a24_0x4a25,0x73c7d));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a24_0x4a25(){const _0x39d38c=['25168070lkjqLY','\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}}','dryRun','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','delete','data','paramsRequired','\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','Preview:\x20data\x20','batchCreate','code','\x20on\x20dataset\x20','\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}','str','create','\x20\x20AGGREGATE\x20TYPES','command','filter','paramsHint','now','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','\x20\x20PARAMS\x20STRUCTURE','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','aggregate','2295rvpbUm','\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\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','1229104rKwzlt','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','description','\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}}','high-risk-write','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','body','\x20\x20\x20\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\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','Update\x20an\x20existing\x20record','update','\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}}','length','20bgAFpC','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','build','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','14968HceEdg','\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}]','/api/{appCode}/','getOne','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','data\x20','POST','5120826ObJzqA','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','params','\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#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','291807pGqLSN','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','1Jyermx','\x20completed\x20in\x20','2471343lyNHFt','\x20\x20WHERE\x20OPERATORS','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\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','352876BXHSXb','join','risk','read','batch','operation','\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\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$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}}','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','\x20\x20\x20\x20$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}}','write','\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_0x4a25=function(){return _0x39d38c;};return a24_0x4a25();}import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a24_0x2cb561(0x208),'operation':a24_0x2cb561(0x208),'risk':a24_0x2cb561(0x1ea),'paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a24_0x2cb561(0x1fe)+a24_0x2cb561(0x236),'helpExtra':[a24_0x2cb561(0x1e4),a24_0x2cb561(0x1ef),a24_0x2cb561(0x1f2),a24_0x2cb561(0x220),a24_0x2cb561(0x21c),a24_0x2cb561(0x210),a24_0x2cb561(0x1f1),a24_0x2cb561(0x225),a24_0x2cb561(0x224),a24_0x2cb561(0x216),a24_0x2cb561(0x1f6),'',a24_0x2cb561(0x219),a24_0x2cb561(0x1df),a24_0x2cb561(0x1dd),'',a24_0x2cb561(0x1de),a24_0x2cb561(0x22e),a24_0x2cb561(0x234),a24_0x2cb561(0x22b),a24_0x2cb561(0x21d),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','','\x20\x20PAGINATION',a24_0x2cb561(0x226),a24_0x2cb561(0x211),a24_0x2cb561(0x227)][a24_0x2cb561(0x1e8)]('\x0a')},{'command':a24_0x2cb561(0x22d),'operation':a24_0x2cb561(0x22d),'risk':'read','paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a24_0x2cb561(0x214)},{'command':a24_0x2cb561(0x205),'operation':a24_0x2cb561(0x205),'risk':'write','paramsRequired':!![],'description':'Create\x20a\x20new\x20record\x20in\x20a\x20dataset','paramsHint':a24_0x2cb561(0x1e5)},{'command':'batchCreate','operation':a24_0x2cb561(0x200),'risk':'write','paramsRequired':!![],'description':'Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':a24_0x2cb561(0x21f),'operation':a24_0x2cb561(0x21f),'risk':a24_0x2cb561(0x1f3),'paramsRequired':!![],'description':a24_0x2cb561(0x21e),'paramsHint':a24_0x2cb561(0x229)+a24_0x2cb561(0x20b)},{'command':a24_0x2cb561(0x1fa),'operation':a24_0x2cb561(0x1fa),'risk':a24_0x2cb561(0x217),'paramsRequired':!![],'description':'Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','paramsHint':a24_0x2cb561(0x214)},{'command':a24_0x2cb561(0x20e),'operation':a24_0x2cb561(0x20e),'risk':a24_0x2cb561(0x1ea),'paramsRequired':![],'description':a24_0x2cb561(0x218),'paramsHint':'JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20'+a24_0x2cb561(0x20d),'helpExtra':[a24_0x2cb561(0x206),a24_0x2cb561(0x1ee),'\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_0x2cb561(0x1ed),'\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_0x2cb561(0x1f4),a24_0x2cb561(0x203),'',a24_0x2cb561(0x20c),a24_0x2cb561(0x21a),a24_0x2cb561(0x213),a24_0x2cb561(0x1fd),a24_0x2cb561(0x232),a24_0x2cb561(0x223),a24_0x2cb561(0x1f9),'','\x20\x20EXAMPLES',a24_0x2cb561(0x1f8),a24_0x2cb561(0x1e0),'',a24_0x2cb561(0x1f0),a24_0x2cb561(0x1e6),'',a24_0x2cb561(0x235)]['join']('\x0a')}];function a24_0x3eb9(_0x21e03e,_0x4d6aa1){_0x21e03e=_0x21e03e-0x1dd;const _0x4a2590=a24_0x4a25();let _0x3eb9b2=_0x4a2590[_0x21e03e];return _0x3eb9b2;}function makeDataCommand(_0xbf071b){const _0x32acc3=a24_0x2cb561,_0xb26c7a=_0x32acc3(0x22f)+_0xbf071b['command'],_0x471953={'service':_0x32acc3(0x1fb),'command':_0xbf071b[_0x32acc3(0x207)],'description':_0xbf071b['description'],'risk':_0xbf071b[_0x32acc3(0x1e9)],'helpExtra':_0xbf071b['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0xbf071b[_0x32acc3(0x209)]}],'validate':async _0x33c97b=>{const _0x58100b=_0x32acc3;_0xbf071b[_0x58100b(0x1fc)]&&requireAnyOf(_0x33c97b,['params'],_0xb26c7a),_0xbf071b[_0x58100b(0x1ec)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x33c97b[_0x58100b(0x204)](_0x58100b(0x233)))),_0xbf071b[_0x58100b(0x1ec)]===_0x58100b(0x21f)&&parseUpdateIdsFromParams(parseJsonParams(_0x33c97b[_0x58100b(0x204)]('params'))??{});},async 'execute'(_0x2efcdb){const _0x1aa20b=_0x32acc3,_0x38b609=_0x2efcdb[_0x1aa20b(0x204)](_0x1aa20b(0x201)),_0x41f2ff=_0xbf071b[_0x1aa20b(0x1ec)]===_0x1aa20b(0x200)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2efcdb[_0x1aa20b(0x204)](_0x1aa20b(0x233)))):parseJsonParams(_0x2efcdb['str']('params'))??{},_0x5ee737=_0xbf071b['operation']==='update'?parseUpdateIdsFromParams(_0x41f2ff):undefined,_0xd1e717=_0x5ee737?normalizeUpdateParamsForRuntime(_0x41f2ff,_0x5ee737):_0x41f2ff,_0x54a224=Date['now'](),_0x545dc9=await executeData(_0x38b609,_0xbf071b['operation'],_0xd1e717),_0x4aa2bf=Date[_0x1aa20b(0x20a)]()-_0x54a224,_0x24c52f=_0x5ee737&&_0x5ee737[_0x1aa20b(0x221)]>0x1?buildBatchUpdateResult(_0x5ee737,_0x545dc9):_0x545dc9;return{'ok':!![],'data':{'result':_0x24c52f,'elapsed':_0x4aa2bf},'message':_0x1aa20b(0x22f)+_0xbf071b[_0x1aa20b(0x207)]+_0x1aa20b(0x1e2)+_0x4aa2bf+'ms'};}};return _0xbf071b[_0x32acc3(0x1e9)]!==_0x32acc3(0x1ea)&&(_0x471953[_0x32acc3(0x1f7)]=async _0x250d74=>{const _0x1a6b96=_0x32acc3,_0x138536=_0x250d74[_0x1a6b96(0x204)](_0x1a6b96(0x201)),_0x4f2b97=_0xbf071b[_0x1a6b96(0x1ec)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x250d74[_0x1a6b96(0x204)](_0x1a6b96(0x233)))):parseJsonParams(_0x250d74[_0x1a6b96(0x204)](_0x1a6b96(0x233)))??{};let _0x190cfd=_0x4f2b97;if(_0xbf071b['operation']===_0x1a6b96(0x21f)){const _0x1202ed=parseUpdateIdsFromParams(_0x4f2b97);_0x190cfd=normalizeUpdateParamsForRuntime(_0x4f2b97,_0x1202ed);}return dryRun(_0x1a6b96(0x230),_0x1a6b96(0x22c)+_0x138536+'/'+_0xbf071b[_0x1a6b96(0x1ec)])[_0x1a6b96(0x21b)](_0x190cfd)[_0x1a6b96(0x215)](_0x1a6b96(0x1ff)+_0xbf071b[_0x1a6b96(0x207)]+_0x1a6b96(0x202)+_0x138536)[_0x1a6b96(0x228)]();}),_0x471953;}export const dataDefinitions=specs['map'](makeDataCommand);function buildBatchUpdateResult(_0x41d869,_0x43a6d4){const _0x4e75ef=a24_0x2cb561;return{'operation':_0x4e75ef(0x21f),'mode':_0x4e75ef(0x1eb),'ids':_0x41d869,'total':_0x41d869[_0x4e75ef(0x221)],'result':_0x43a6d4};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a25_0x223f(_0x12f7b0,_0x10352){_0x12f7b0=_0x12f7b0-0xad;const _0x548766=a25_0x5487();let _0x223fed=_0x548766[_0x12f7b0];return _0x223fed;}const a25_0x3e04a5=a25_0x223f;(function(_0x1faec6,_0x11858a){const _0x202514=a25_0x223f,_0x4a8758=_0x1faec6();while(!![]){try{const _0x2e5735=-parseInt(_0x202514(0xaf))/0x1+-parseInt(_0x202514(0xf0))/0x2+parseInt(_0x202514(0xbc))/0x3+-parseInt(_0x202514(0xb2))/0x4*(parseInt(_0x202514(0xe3))/0x5)+parseInt(_0x202514(0xe5))/0x6*(parseInt(_0x202514(0xd8))/0x7)+parseInt(_0x202514(0xd7))/0x8*(-parseInt(_0x202514(0xda))/0x9)+-parseInt(_0x202514(0xb5))/0xa*(-parseInt(_0x202514(0xc2))/0xb);if(_0x2e5735===_0x11858a)break;else _0x4a8758['push'](_0x4a8758['shift']());}catch(_0x59dba8){_0x4a8758['push'](_0x4a8758['shift']());}}}(a25_0x5487,0x8c3a6));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x3dccd4){const _0x19e0aa=a25_0x223f;if(_0x3dccd4[_0x19e0aa(0xef)])return null;const _0xb1df11=Boolean(_0x3dccd4[_0x19e0aa(0xd1)]!==undefined||_0x3dccd4[_0x19e0aa(0xe7)]!==undefined);let _0x44e08a={};if(!_0xb1df11&&typeof _0x3dccd4[_0x19e0aa(0xb4)]===_0x19e0aa(0xbd))try{_0x44e08a=JSON['parse'](_0x3dccd4[_0x19e0aa(0xb4)]);}catch{}const _0x1462b2=_0xb1df11?_0x3dccd4[_0x19e0aa(0xdc)]:_0x3dccd4[_0x19e0aa(0xc5)],_0x411a2d=_0xb1df11?_0x3dccd4[_0x19e0aa(0xd1)]:_0x3dccd4['name'],_0x1e5bfa=_0xb1df11?_0x3dccd4[_0x19e0aa(0xe7)]:_0x3dccd4[_0x19e0aa(0xd0)]||_0x3dccd4[_0x19e0aa(0xea)],_0xd05c81=_0xb1df11?_0x3dccd4[_0x19e0aa(0xdb)]===!![]:_0x44e08a[_0x19e0aa(0xdb)]===!![],_0x5f3ae4=_0xb1df11?_0x3dccd4[_0x19e0aa(0xc0)]===!![]:_0x44e08a['required']===!![],_0x53a680=_0xb1df11?_0x3dccd4[_0x19e0aa(0xb8)]??null:_0x44e08a['options']??null,_0x24e98={'name':_0x1462b2,'displayName':_0x411a2d||_0x1462b2,'type':_0x1e5bfa,'dbType':_0x3dccd4[_0x19e0aa(0xe2)],'pk':_0xd05c81,'required':_0x5f3ae4,'description':_0x3dccd4['description']||undefined};return Array[_0x19e0aa(0xdd)](_0x53a680)&&_0x53a680[_0x19e0aa(0xe0)]>0x0&&(_0x24e98[_0x19e0aa(0xb8)]=_0x53a680),_0x24e98;}function parseJsonMaybe(_0x9e4e7){const _0x100730=a25_0x223f;if(typeof _0x9e4e7!==_0x100730(0xbd))return _0x9e4e7;try{return JSON['parse'](_0x9e4e7);}catch{return _0x9e4e7;}}function normalizeOperationEntry(_0x1f1f99,_0x149acc){const _0x1ba2a0=a25_0x223f;if(!_0x149acc||typeof _0x149acc!==_0x1ba2a0(0xbe))return null;if(!_0x149acc[_0x1ba2a0(0xf2)]||!_0x149acc[_0x1ba2a0(0xce)])return null;const _0x351a76={'name':_0x1f1f99,'method':_0x149acc['method'],'path':_0x149acc[_0x1ba2a0(0xce)]};if(_0x149acc['host'])_0x351a76[_0x1ba2a0(0xd9)]=_0x149acc[_0x1ba2a0(0xd9)];if(_0x149acc['requestBody']!=null)_0x351a76[_0x1ba2a0(0xcd)]=parseJsonMaybe(_0x149acc[_0x1ba2a0(0xcd)]);if(_0x149acc[_0x1ba2a0(0xee)]!=null)_0x351a76[_0x1ba2a0(0xee)]=parseJsonMaybe(_0x149acc[_0x1ba2a0(0xee)]);if(_0x149acc[_0x1ba2a0(0xdf)]!=null)_0x351a76['beforeScriptId']=_0x149acc[_0x1ba2a0(0xdf)];if(_0x149acc['afterScriptId']!=null)_0x351a76['afterScriptId']=_0x149acc[_0x1ba2a0(0xbf)];if(Array[_0x1ba2a0(0xdd)](_0x149acc[_0x1ba2a0(0xc8)]))_0x351a76[_0x1ba2a0(0xc8)]=_0x149acc[_0x1ba2a0(0xc8)];if(Array[_0x1ba2a0(0xdd)](_0x149acc[_0x1ba2a0(0xcf)]))_0x351a76['responseFields']=_0x149acc[_0x1ba2a0(0xcf)];return _0x351a76;}function a25_0x5487(){const _0x23a998=['allFields','170910avTgLV','dbName','dataset','4EACAnz','title','extend','3918170DnQqXk','str','validateRules','options','dbtableConfig','modelId','indexes','1381296rWpNMr','string','object','afterScriptId','required','creatorNameField','55ZGViln','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','entries','code','filter','creatorIdField','requestFields','columnCodeListWithDeleted','updateTimeField','datasetKey','dbId','requestBody','path','responseFields','type','displayName','trim','operations','fields','appCode','map','56xKapRq','7HOdVzj','host','1105911ZeOJAR','pkField','name','isArray','doVersion','beforeScriptId','length','createTimeField','dbType','1075170YajCKC','read','3242718HAZWfR','modifierIdField','doType','properties','labelField','dataType','tableComment','push','split','responseBody','deleted','2278998cDWqWo','tableName','method','description','relatedPageInfoList','detail','formatRules'];a25_0x5487=function(){return _0x23a998;};return a25_0x5487();}function summarizeDbtable(_0x40d81b){const _0x53d911=a25_0x223f,_0x3e9ab3={},_0x1f6f55=[_0x53d911(0xcc),_0x53d911(0xb0),_0x53d911(0xf1),_0x53d911(0xcb),_0x53d911(0xdb),_0x53d911(0xae),'logicField',_0x53d911(0xe1),_0x53d911(0xca),_0x53d911(0xc7),_0x53d911(0xc1),_0x53d911(0xe6),'modifierNameField',_0x53d911(0xe9),'dblinkInfoDTO'];for(const _0x36daae of _0x1f6f55){if(_0x40d81b[_0x36daae]!==undefined)_0x3e9ab3[_0x36daae]=_0x40d81b[_0x36daae];}return typeof _0x3e9ab3['allFields']===_0x53d911(0xbd)&&_0x3e9ab3['allFields']['length']>0x0&&(_0x3e9ab3['allFieldNames']=_0x3e9ab3[_0x53d911(0xae)][_0x53d911(0xed)](',')[_0x53d911(0xd6)](_0x326fba=>_0x326fba[_0x53d911(0xd2)]())['filter'](Boolean)),_0x3e9ab3;}function normalizeRelatedPages(_0x99d07d){const _0x36c2d8=a25_0x223f;if(!Array['isArray'](_0x99d07d))return[];return _0x99d07d['filter'](_0x552276=>_0x552276&&typeof _0x552276==='object')['map'](_0x3ed3c5=>({'id':_0x3ed3c5['id'],'type':_0x3ed3c5[_0x36c2d8(0xd0)],'code':_0x3ed3c5[_0x36c2d8(0xc5)],'title':_0x3ed3c5[_0x36c2d8(0xb3)],'deleted':_0x3ed3c5[_0x36c2d8(0xef)]===!![]}));}function normalizeFallbackFieldName(_0x25bb73,_0x9eca3d){const _0x1d319c=a25_0x223f,_0x1125c4=_0x25bb73[_0x1d319c(0xd2)]();if(!_0x1125c4)return null;return{'name':_0x1125c4,'displayName':_0x1125c4,'type':undefined,'dbType':undefined,'pk':_0x1125c4===_0x9eca3d,'required':![],'description':undefined};}async function loadListFieldFallback(_0x29ad17,_0x381055){const _0x5cb04f=a25_0x223f;if(!_0x29ad17||!_0x381055)return[];try{const _0x4960f4=await listDatasets(_0x29ad17,{'code':_0x381055}),_0x300a24=_0x4960f4['find'](_0x1839ea=>_0x1839ea[_0x5cb04f(0xc5)]===_0x381055)??_0x4960f4[0x0],_0x1cba6d=_0x300a24?.[_0x5cb04f(0xb9)]??{},_0x4e2910=typeof _0x1cba6d[_0x5cb04f(0xae)]===_0x5cb04f(0xbd)?_0x1cba6d['allFields']['split'](','):[];return _0x4e2910['map'](_0x3361ca=>normalizeFallbackFieldName(_0x3361ca,_0x1cba6d[_0x5cb04f(0xdb)]))[_0x5cb04f(0xc6)](_0x1c44c1=>_0x1c44c1!==null);}catch{return[];}}export const datasetDetail={'service':a25_0x3e04a5(0xb1),'command':a25_0x3e04a5(0xf5),'description':a25_0x3e04a5(0xc3),'risk':a25_0x3e04a5(0xe4),'flags':[CODE_FLAG],async 'execute'(_0xe6a734){const _0x512ff9=a25_0x3e04a5,_0x4e47bd=await getDatasetDetail(_0xe6a734[_0x512ff9(0xb6)](_0x512ff9(0xc5))),_0x551afb=Array['isArray'](_0x4e47bd[_0x512ff9(0xd4)])?_0x4e47bd['fields']:Array[_0x512ff9(0xdd)](_0x4e47bd[_0x512ff9(0xe8)])?_0x4e47bd[_0x512ff9(0xe8)]:[];let _0x9ebfe8=_0x551afb[_0x512ff9(0xd6)](_0xb928=>normalizeField(_0xb928))[_0x512ff9(0xc6)](_0x171adf=>_0x171adf!==null);_0x9ebfe8[_0x512ff9(0xe0)]===0x0&&(_0x9ebfe8=await loadListFieldFallback(_0xe6a734[_0x512ff9(0xd5)],_0xe6a734[_0x512ff9(0xb6)](_0x512ff9(0xc5))));const _0xbced74=_0x4e47bd[_0x512ff9(0xd3)]??{},_0x2d85a=[];for(const [_0x6e25e7,_0x53053b]of Object[_0x512ff9(0xc4)](_0xbced74)){const _0x25e22b=normalizeOperationEntry(_0x6e25e7,_0x53053b);if(_0x25e22b)_0x2d85a[_0x512ff9(0xec)](_0x25e22b);}const _0x35c1c8=_0x4e47bd[_0x512ff9(0xb9)]??{},_0x62c317=_0x4e47bd[_0x512ff9(0xb1)]??{},_0x41bf92=_0x35c1c8[_0x512ff9(0xcc)]!=null?{'id':_0x35c1c8[_0x512ff9(0xcc)],'name':_0x35c1c8['dbName']??null}:undefined;let _0x1080e5;return typeof _0x4e47bd[_0x512ff9(0xb4)]===_0x512ff9(0xbd)&&(_0x1080e5=parseJsonMaybe(_0x4e47bd['extend'])),{'ok':!![],'data':{'id':_0x4e47bd[_0x512ff9(0xba)]??_0x4e47bd['id'],'name':_0x4e47bd['name'],'code':_0x4e47bd['modelCode']||_0x4e47bd[_0x512ff9(0xc5)],'doVersion':_0x4e47bd[_0x512ff9(0xde)],'description':_0x4e47bd[_0x512ff9(0xf3)]||_0x62c317[_0x512ff9(0xeb)]||undefined,'source':_0x4e47bd['source']||_0x62c317['sourceType'],'table':_0x35c1c8[_0x512ff9(0xf1)]||_0x62c317[_0x512ff9(0xf1)],'datasetKey':_0x35c1c8[_0x512ff9(0xcb)],'pk':_0x35c1c8[_0x512ff9(0xdb)],'db':_0x41bf92,'dbtable':summarizeDbtable(_0x35c1c8),'fields':_0x9ebfe8,'operations':_0x2d85a,'indexes':Array[_0x512ff9(0xdd)](_0x62c317[_0x512ff9(0xbb)])?_0x62c317[_0x512ff9(0xbb)]:[],'relations':_0x4e47bd['relations']??null,'relatedPages':normalizeRelatedPages(_0x4e47bd[_0x512ff9(0xf4)]),...Array[_0x512ff9(0xdd)](_0x4e47bd['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x4e47bd[_0x512ff9(0xc9)]}:{},'formatRules':Array[_0x512ff9(0xdd)](_0x4e47bd[_0x512ff9(0xad)])?_0x4e47bd['formatRules']:[],'validateRules':Array[_0x512ff9(0xdd)](_0x4e47bd[_0x512ff9(0xb7)])?_0x4e47bd[_0x512ff9(0xb7)]:[],..._0x1080e5!==undefined?{'extend':_0x1080e5}:{},'stats':{'fieldCount':_0x9ebfe8[_0x512ff9(0xe0)],'operationCount':_0x2d85a[_0x512ff9(0xe0)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a26_0x5ea3(_0x3fb25e,_0x543de5){_0x3fb25e=_0x3fb25e-0x1b8;const _0x224404=a26_0x2244();let _0x5ea3db=_0x224404[_0x3fb25e];return _0x5ea3db;}(function(_0x4410a5,_0x1cb6e2){const _0x57533c=a26_0x5ea3,_0x46bc12=_0x4410a5();while(!![]){try{const _0x130bf1=-parseInt(_0x57533c(0x1be))/0x1*(parseInt(_0x57533c(0x1c1))/0x2)+parseInt(_0x57533c(0x1bf))/0x3*(-parseInt(_0x57533c(0x1ba))/0x4)+-parseInt(_0x57533c(0x1bc))/0x5*(parseInt(_0x57533c(0x1b8))/0x6)+-parseInt(_0x57533c(0x1bd))/0x7+parseInt(_0x57533c(0x1c2))/0x8+parseInt(_0x57533c(0x1b9))/0x9*(parseInt(_0x57533c(0x1bb))/0xa)+parseInt(_0x57533c(0x1c0))/0xb;if(_0x130bf1===_0x1cb6e2)break;else _0x46bc12['push'](_0x46bc12['shift']());}catch(_0xe26a45){_0x46bc12['push'](_0x46bc12['shift']());}}}(a26_0x2244,0xb50c3));import{datasetList}from'../../commands/dataset/list.js';function a26_0x2244(){const _0x20ee93=['8uByeLI','10870nVBMpf','1935985zHVYeP','4838750VfgSTs','42331shkXwD','19800YgjjWx','28296587wfeXWP','62kUKfSZ','3897512rhRNzD','6pqBwAq','711UXEpJM'];a26_0x2244=function(){return _0x20ee93;};return a26_0x2244();}import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a27_0xd81762=a27_0x1a8c;(function(_0x48386e,_0x5aab71){const _0x154736=a27_0x1a8c,_0x19ba52=_0x48386e();while(!![]){try{const _0x34b66b=parseInt(_0x154736(0x15a))/0x1*(-parseInt(_0x154736(0x166))/0x2)+parseInt(_0x154736(0x15f))/0x3+parseInt(_0x154736(0x160))/0x4+parseInt(_0x154736(0x16d))/0x5+parseInt(_0x154736(0x15d))/0x6+-parseInt(_0x154736(0x16f))/0x7*(-parseInt(_0x154736(0x16a))/0x8)+parseInt(_0x154736(0x161))/0x9*(-parseInt(_0x154736(0x15e))/0xa);if(_0x34b66b===_0x5aab71)break;else _0x19ba52['push'](_0x19ba52['shift']());}catch(_0x539eba){_0x19ba52['push'](_0x19ba52['shift']());}}}(a27_0x42bd,0xa02d6));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a27_0x42bd(){const _0x1d4b11=['978XNxpqd','allFields','str','source','888ZzrKUB','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','dataset','3029240oMAFHj','pkField','483xaHndV','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','trim','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','dbtableConfig','2476rtdemc','string','appCode','4703496jSUfPp','10RGiMkg','1012623UyhQkc','2352376hujuJN','4105872fSypya','split','length','map','code'];a27_0x42bd=function(){return _0x1d4b11;};return a27_0x42bd();}function a27_0x1a8c(_0x4eb06d,_0x34da78){_0x4eb06d=_0x4eb06d-0x159;const _0x42bda2=a27_0x42bd();let _0x1a8ca6=_0x42bda2[_0x4eb06d];return _0x1a8ca6;}export const datasetList={'service':a27_0xd81762(0x16c),'command':'list','description':a27_0xd81762(0x16b),'risk':'read','flags':[{'name':'name','type':a27_0xd81762(0x15b),'description':a27_0xd81762(0x172)},{...CODE_FLAG,'required':![],'description':a27_0xd81762(0x170)}],async 'execute'(_0x3d74fa){const _0x2f7a57=a27_0xd81762,_0x530828=_0x3d74fa[_0x2f7a57(0x168)]('name'),_0x3f09ad=_0x3d74fa['str'](_0x2f7a57(0x165)),_0xf330f7=await listDatasets(_0x3d74fa[_0x2f7a57(0x15c)],{..._0x530828&&{'name':_0x530828},..._0x3f09ad&&{'code':_0x3f09ad}});return{'ok':!![],'data':{'total':_0xf330f7[_0x2f7a57(0x163)],'datasets':_0xf330f7[_0x2f7a57(0x164)](_0x395ecb=>{const _0x54cca0=_0x2f7a57,_0x2fe20a=_0x395ecb[_0x54cca0(0x159)]??{};return{'id':_0x395ecb['id'],'code':_0x395ecb[_0x54cca0(0x165)],'name':_0x395ecb['name'],'source':_0x395ecb[_0x54cca0(0x169)],'description':_0x395ecb['description'],'table':_0x2fe20a['tableName'],'datasetKey':_0x2fe20a['datasetKey'],'pk':_0x2fe20a[_0x54cca0(0x16e)],'fields':_0x2fe20a[_0x54cca0(0x167)]?_0x2fe20a['allFields'][_0x54cca0(0x162)](',')['map'](_0xbfbba4=>_0xbfbba4[_0x54cca0(0x171)]()):[]};})}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a28_0x5080a8=a28_0x2a7e;(function(_0x2d2c49,_0x5006cb){const _0x2b5080=a28_0x2a7e,_0x348ab7=_0x2d2c49();while(!![]){try{const _0x536afc=parseInt(_0x2b5080(0x1c3))/0x1+parseInt(_0x2b5080(0x1c1))/0x2*(parseInt(_0x2b5080(0x1ce))/0x3)+parseInt(_0x2b5080(0x1cb))/0x4+parseInt(_0x2b5080(0x1d0))/0x5+-parseInt(_0x2b5080(0x1c7))/0x6+parseInt(_0x2b5080(0x1d1))/0x7*(parseInt(_0x2b5080(0x1cc))/0x8)+-parseInt(_0x2b5080(0x1c5))/0x9;if(_0x536afc===_0x5006cb)break;else _0x348ab7['push'](_0x348ab7['shift']());}catch(_0x3d8455){_0x348ab7['push'](_0x348ab7['shift']());}}}(a28_0x4fac,0xcb702));function a28_0x2a7e(_0x34d006,_0x4428fb){_0x34d006=_0x34d006-0x1bf;const _0x4fac08=a28_0x4fac();let _0x2a7ed0=_0x4fac08[_0x34d006];return _0x2a7ed0;}import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a28_0x5080a8(0x1c2);function a28_0x4fac(){const _0xff0422=['2534aEOQDB','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','905287rSjfvK','str','9218007pPvKqE','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','9540132RsVnRu','trim','dataset','sdk-doc','3141228sFjUKe','56pmiNMK','read','2325dyWxnU','string','1248430KViZMq','525322QFipxr','code','appCode'];a28_0x4fac=function(){return _0xff0422;};return a28_0x4fac();}export function formatDatasetSdkMarkdown(_0x477e4d){const _0x48563b=a28_0x5080a8,_0x3d5210=typeof _0x477e4d===_0x48563b(0x1cf)?_0x477e4d[_0x48563b(0x1c8)]():'';return _0x3d5210||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a28_0x5080a8(0x1c9),'command':a28_0x5080a8(0x1ca),'description':a28_0x5080a8(0x1c6),'risk':a28_0x5080a8(0x1cd),'flags':[{...CODE_FLAG,'description':'Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.'}],async 'execute'(_0x24a4d7){const _0xea5223=a28_0x5080a8,_0x46c987=_0x24a4d7[_0xea5223(0x1c4)](_0xea5223(0x1bf)),_0x44d99e=await getDatasetSdkUsageDoc(_0x46c987,_0x24a4d7[_0xea5223(0x1c0)]);return{'ok':!![],'data':{'code':_0x46c987,'appCode':_0x24a4d7['appCode'],'markdown':formatDatasetSdkMarkdown(_0x44d99e)}};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0x1ec793=a29_0x5d0a;function a29_0x5d0a(_0xeec58,_0x1a9f5c){_0xeec58=_0xeec58-0x167;const _0x430451=a29_0x4304();let _0x5d0a55=_0x430451[_0xeec58];return _0x5d0a55;}(function(_0x2f5100,_0x2e58ea){const _0x20532a=a29_0x5d0a,_0x140f2a=_0x2f5100();while(!![]){try{const _0x4447dc=-parseInt(_0x20532a(0x1bb))/0x1+-parseInt(_0x20532a(0x19b))/0x2*(-parseInt(_0x20532a(0x16f))/0x3)+parseInt(_0x20532a(0x19c))/0x4*(-parseInt(_0x20532a(0x16e))/0x5)+-parseInt(_0x20532a(0x1ae))/0x6*(parseInt(_0x20532a(0x198))/0x7)+parseInt(_0x20532a(0x17d))/0x8*(parseInt(_0x20532a(0x1a1))/0x9)+-parseInt(_0x20532a(0x1a0))/0xa*(parseInt(_0x20532a(0x1b9))/0xb)+parseInt(_0x20532a(0x17c))/0xc;if(_0x4447dc===_0x2e58ea)break;else _0x140f2a['push'](_0x140f2a['shift']());}catch(_0x3ec30a){_0x140f2a['push'](_0x140f2a['shift']());}}}(a29_0x4304,0xbe12c));import a29_0x21bb0d from'chalk';function a29_0x4304(){const _0xba8fe5=['\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','90130NqzjWN','144RcghqH','log','⚠\x20Empty\x20(treated\x20as\x20{})','length','(no\x20file)','\x20\x20Merged\x20Config','platform','commandCount','\x20\x20Session\x20check:\x20\x20\x20','doctor','(default)','source','(set,\x20length=','7218weYamb','status','bold','✗\x20Invalid','message','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20Imported\x20from:\x20','\x20\x20auth\x20(effective):\x20','\x20\x20Auth','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','847FXBfOr','(not\x20found)','417758XFRxcE','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Service\x20Tree','(not\x20set)','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20commands)','path','appCode','green','✓\x20Valid\x20JSON','5nTAryu','4128639CKnIta','\x20(accessKey)','⚠\x20Empty','repeat','defaultApp','check','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','serviceCount','riskLevel','Diagnose\x20CLI\x20configuration\x20and\x20environment','version','✓\x20Loaded','9419580FMkCrs','408896Qargle','services','name','serviceCode','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','yellow','✗\x20Invalid\x20JSON','(unnamed)','missing','\x20\x20─','currentApp','Global','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','\x20\x20Config\x20JSON','(missing)','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','env','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20(legacy/compat\x20only)','gray','(default:\x20','empty','6020riuFSL','accessKey','locale','2SMWzyu','216364igyjJA','padEnd','red'];a29_0x4304=function(){return _0xba8fe5;};return a29_0x4304();}import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{isLegacyCompatConfigKey}from'../config/schema.js';import{inspectServiceRegistry}from'../commands/service/registry.js';async function execute(_0x42addd){const _0x54e7d0=a29_0x5d0a,_0x189533=getCliVersion(),_0x222f21=buildConfigFromFlags({});await initGlobalEnvironment(_0x222f21),console[_0x54e7d0(0x1a2)](),console[_0x54e7d0(0x1a2)](a29_0x21bb0d[_0x54e7d0(0x1b0)](CLI_BIN_NAME+'\x20doctor')),console[_0x54e7d0(0x1a2)](a29_0x21bb0d[_0x54e7d0(0x195)]('─'[_0x54e7d0(0x172)](0x32))),console[_0x54e7d0(0x1a2)](_0x54e7d0(0x183)+_0x189533),console[_0x54e7d0(0x1a2)](_0x54e7d0(0x1bd)+process[_0x54e7d0(0x17a)]),console['log']('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x54e7d0(0x1a7)]+'\x20'+process['arch']),console[_0x54e7d0(0x1a2)](),console[_0x54e7d0(0x1a2)](a29_0x21bb0d[_0x54e7d0(0x1b0)]('\x20\x20Config\x20Files')),console[_0x54e7d0(0x1a2)](a29_0x21bb0d[_0x54e7d0(0x195)](_0x54e7d0(0x189)['repeat'](0x1e)));const _0x72c49f=getGlobalConfigPath(),_0x342706=getProjectConfigPath();console[_0x54e7d0(0x1a2)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x72c49f||a29_0x21bb0d[_0x54e7d0(0x195)]('(not\x20found)'))),console[_0x54e7d0(0x1a2)](_0x54e7d0(0x1bc)+(_0x342706||a29_0x21bb0d[_0x54e7d0(0x195)](_0x54e7d0(0x1ba)))),console['log'](),console[_0x54e7d0(0x1a2)](a29_0x21bb0d[_0x54e7d0(0x1b0)](_0x54e7d0(0x18e))),console['log'](a29_0x21bb0d[_0x54e7d0(0x195)](_0x54e7d0(0x189)[_0x54e7d0(0x172)](0x1e)));const _0x3267e9=(_0x4b4bf0,_0x11d393)=>{const _0x1638b6=_0x54e7d0;if(!_0x11d393){console[_0x1638b6(0x1a2)]('\x20\x20'+_0x4b4bf0[_0x1638b6(0x19d)](0x11)+'\x20'+a29_0x21bb0d[_0x1638b6(0x195)](_0x1638b6(0x1a5)));return;}const _0x378dbe=inspectCliConfigJsonFile(_0x11d393);if(_0x378dbe[_0x1638b6(0x1af)]==='ok')console[_0x1638b6(0x1a2)]('\x20\x20'+_0x4b4bf0[_0x1638b6(0x19d)](0x11)+'\x20'+a29_0x21bb0d['green'](_0x1638b6(0x16d)));else{if(_0x378dbe[_0x1638b6(0x1af)]===_0x1638b6(0x197))console['log']('\x20\x20'+_0x4b4bf0['padEnd'](0x11)+'\x20'+a29_0x21bb0d['yellow'](_0x1638b6(0x1a3)));else _0x378dbe['status']===_0x1638b6(0x188)?console[_0x1638b6(0x1a2)]('\x20\x20'+_0x4b4bf0[_0x1638b6(0x19d)](0x11)+'\x20'+a29_0x21bb0d[_0x1638b6(0x195)](_0x1638b6(0x18f))):(console[_0x1638b6(0x1a2)]('\x20\x20'+_0x4b4bf0['padEnd'](0x11)+'\x20'+a29_0x21bb0d[_0x1638b6(0x19e)](_0x1638b6(0x186))),console['log']('\x20\x20'+''[_0x1638b6(0x19d)](0x11)+'\x20'+a29_0x21bb0d['red'](_0x378dbe['message'])));}};_0x3267e9(_0x54e7d0(0x18b),_0x72c49f),_0x3267e9('Project',_0x342706),console['log'](),console[_0x54e7d0(0x1a2)](a29_0x21bb0d[_0x54e7d0(0x1b0)](_0x54e7d0(0x1a6))),console[_0x54e7d0(0x1a2)](a29_0x21bb0d[_0x54e7d0(0x195)](_0x54e7d0(0x189)['repeat'](0x1e))),console[_0x54e7d0(0x1a2)](_0x54e7d0(0x192)+(_0x222f21[_0x54e7d0(0x16b)]||a29_0x21bb0d[_0x54e7d0(0x19e)](_0x54e7d0(0x167)))),console[_0x54e7d0(0x1a2)](_0x54e7d0(0x18c)+_0x222f21[_0x54e7d0(0x191)]);const _0x6aaa01=isLegacyCompatConfigKey('locale')?a29_0x21bb0d[_0x54e7d0(0x195)](_0x222f21['locale']+_0x54e7d0(0x194)):_0x222f21[_0x54e7d0(0x19a)];console['log'](_0x54e7d0(0x1b4)+_0x6aaa01),console['log'](_0x54e7d0(0x176)+(_0x222f21[_0x54e7d0(0x173)]||a29_0x21bb0d[_0x54e7d0(0x195)](_0x54e7d0(0x18d)))),console[_0x54e7d0(0x1a2)](_0x54e7d0(0x193)+(_0x222f21[_0x54e7d0(0x18a)]||a29_0x21bb0d['gray'](_0x54e7d0(0x18d)))),console[_0x54e7d0(0x1a2)](_0x54e7d0(0x181)+(_0x222f21[_0x54e7d0(0x182)]||a29_0x21bb0d['gray'](_0x54e7d0(0x196)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x54e7d0(0x1a2)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x222f21['pageSize']??a29_0x21bb0d[_0x54e7d0(0x195)](_0x54e7d0(0x1ab)))),console['log'](_0x54e7d0(0x175)+_0x222f21[_0x54e7d0(0x178)]),console[_0x54e7d0(0x1a2)](_0x54e7d0(0x168)+_0x222f21['verbose']),console['log'](_0x54e7d0(0x1b6)+AUTH_MODE['ClientAk']),console[_0x54e7d0(0x1a2)](_0x54e7d0(0x19f)+(_0x222f21['accessKey']?a29_0x21bb0d[_0x54e7d0(0x16c)](_0x54e7d0(0x1ad)+_0x222f21[_0x54e7d0(0x199)][_0x54e7d0(0x1a4)]+')'):a29_0x21bb0d[_0x54e7d0(0x195)](_0x54e7d0(0x18d)))),console['log'](),console['log'](a29_0x21bb0d[_0x54e7d0(0x1b0)]('\x20\x20API\x20Endpoints')),console[_0x54e7d0(0x1a2)](a29_0x21bb0d['gray']('\x20\x20─'[_0x54e7d0(0x172)](0x1e))),console[_0x54e7d0(0x1a2)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console['log'](_0x54e7d0(0x190)+getUserDomain()),console[_0x54e7d0(0x1a2)](_0x54e7d0(0x184)+getRuntimeDomain()),console['log'](),console[_0x54e7d0(0x1a2)](a29_0x21bb0d['bold'](_0x54e7d0(0x1be))),console['log'](a29_0x21bb0d['gray'](_0x54e7d0(0x189)[_0x54e7d0(0x172)](0x1e)));const _0x3aed44=inspectServiceRegistry();console['log']('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3aed44['registryPath']),console['log'](_0x54e7d0(0x1b8)+formatServiceRegistryStatus(_0x3aed44)),console[_0x54e7d0(0x1a2)](_0x54e7d0(0x1b3)+_0x3aed44[_0x54e7d0(0x177)]),console[_0x54e7d0(0x1a2)]('\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3aed44[_0x54e7d0(0x1a8)]);for(const _0x1ac485 of _0x3aed44[_0x54e7d0(0x17e)]){console['log']('\x20\x20'+(_0x1ac485[_0x54e7d0(0x180)]+':')[_0x54e7d0(0x19d)](0x11)+'\x20'+(_0x1ac485[_0x54e7d0(0x17f)]||a29_0x21bb0d[_0x54e7d0(0x195)](_0x54e7d0(0x187)))+'\x20('+_0x1ac485[_0x54e7d0(0x1a8)]+_0x54e7d0(0x169)),console['log']('\x20\x20'+''['padEnd'](0x11)+_0x54e7d0(0x1b5)+_0x1ac485[_0x54e7d0(0x1ac)][_0x54e7d0(0x16a)]);}return console[_0x54e7d0(0x1a2)](),console[_0x54e7d0(0x1a2)](a29_0x21bb0d[_0x54e7d0(0x1b0)](_0x54e7d0(0x1b7))),console[_0x54e7d0(0x1a2)](a29_0x21bb0d['gray']('\x20\x20─'['repeat'](0x1e))),console[_0x54e7d0(0x1a2)]('\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a29_0x21bb0d[_0x54e7d0(0x16c)](AUTH_MODE['ClientAk']+_0x54e7d0(0x170))),console[_0x54e7d0(0x1a2)](_0x54e7d0(0x1a9)+a29_0x21bb0d[_0x54e7d0(0x195)]('(removed\x20—\x20cookie\x20auth\x20disabled)')),console[_0x54e7d0(0x1a2)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x5e0552){const _0x1a246c=a29_0x5d0a;if(_0x5e0552[_0x1a246c(0x1af)]==='ok')return a29_0x21bb0d[_0x1a246c(0x16c)](_0x1a246c(0x17b));if(_0x5e0552[_0x1a246c(0x1af)]==='missing')return a29_0x21bb0d[_0x1a246c(0x195)](_0x1a246c(0x1ba));if(_0x5e0552[_0x1a246c(0x1af)]===_0x1a246c(0x197))return a29_0x21bb0d[_0x1a246c(0x185)](_0x1a246c(0x171));return a29_0x21bb0d[_0x1a246c(0x19e)](_0x1a246c(0x1b1)+(_0x5e0552[_0x1a246c(0x1b2)]?':\x20'+_0x5e0552[_0x1a246c(0x1b2)]:''));}export const doctorDefinition={'service':a29_0x1ec793(0x1aa),'command':a29_0x1ec793(0x174),'description':a29_0x1ec793(0x179),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|