@lovrabet/lovrabet-cli 2.1.11-beta.2 → 2.1.11-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -0
- 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
|
-
function
|
|
1
|
+
function a14_0x3bb9(){const _0x56e2b8=['detail','445506LaflXR','read','createdTime','103685JDhEID','470904YeyAHV','4kesTUb','Get\x20BFF\x20script\x20details\x20by\x20ID','verbose','appCode','(none)','7UCiThZ','functionName','scriptType','415846wYGjCn','120664shoOSX','242475SKLADZ','bff','1318428cNuBLF'];a14_0x3bb9=function(){return _0x56e2b8;};return a14_0x3bb9();}function a14_0x40a9(_0x47edbc,_0x338d26){_0x47edbc=_0x47edbc-0x108;const _0x3bb93e=a14_0x3bb9();let _0x40a993=_0x3bb93e[_0x47edbc];return _0x40a993;}const a14_0x239346=a14_0x40a9;(function(_0xd0fecf,_0x9c29d9){const _0x5cd36a=a14_0x40a9,_0x49e7fa=_0xd0fecf();while(!![]){try{const _0x347663=-parseInt(_0x5cd36a(0x117))/0x1+parseInt(_0x5cd36a(0x10e))/0x2+-parseInt(_0x5cd36a(0x118))/0x3+parseInt(_0x5cd36a(0x119))/0x4*(-parseInt(_0x5cd36a(0x110))/0x5)+parseInt(_0x5cd36a(0x114))/0x6+parseInt(_0x5cd36a(0x10b))/0x7*(-parseInt(_0x5cd36a(0x10f))/0x8)+parseInt(_0x5cd36a(0x112))/0x9;if(_0x347663===_0x9c29d9)break;else _0x49e7fa['push'](_0x49e7fa['shift']());}catch(_0x1d7131){_0x49e7fa['push'](_0x49e7fa['shift']());}}}(a14_0x3bb9,0x197f3));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a14_0x239346(0x111),'command':a14_0x239346(0x113),'description':a14_0x239346(0x11a),'risk':a14_0x239346(0x115),'flags':[{...ID_FLAG,'description':'Script\x20ID'},VERBOSE_FLAG],async 'execute'(_0xc5426e){const _0x36e86a=a14_0x239346,_0x4f793a=await getBffScriptInfo(_0xc5426e['num']('id')),_0x40e6e9=_0xc5426e['bool'](_0x36e86a(0x108));if(_0x40e6e9)return{'ok':!![],'data':_0x4f793a};return{'ok':!![],'data':{'id':_0x4f793a['id'],'appCode':_0x4f793a[_0x36e86a(0x109)],'functionName':_0x4f793a[_0x36e86a(0x10c)]??'','scriptType':_0x4f793a[_0x36e86a(0x10d)],'description':_0x4f793a['description']||_0x36e86a(0x10a),'createdTime':_0x4f793a[_0x36e86a(0x116)]??'','updatedTime':_0x4f793a['updatedTime']??''}};}};
|
package/lib/commands/bff/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15_0x5c3f1d=a15_0x37ed;(function(_0x51b77c,_0x4e0d48){const _0xdbe702=a15_0x37ed,_0x4cd370=_0x51b77c();while(!![]){try{const _0x57745e=parseInt(_0xdbe702(0x77))/0x1*(parseInt(_0xdbe702(0x83))/0x2)+parseInt(_0xdbe702(0x7a))/0x3*(-parseInt(_0xdbe702(0x7b))/0x4)+-parseInt(_0xdbe702(0x84))/0x5+-parseInt(_0xdbe702(0x7c))/0x6*(parseInt(_0xdbe702(0x7f))/0x7)+parseInt(_0xdbe702(0x79))/0x8*(-parseInt(_0xdbe702(0x75))/0x9)+parseInt(_0xdbe702(0x85))/0xa*(-parseInt(_0xdbe702(0x7e))/0xb)+parseInt(_0xdbe702(0x82))/0xc*(parseInt(_0xdbe702(0x78))/0xd);if(_0x57745e===_0x4e0d48)break;else _0x4cd370['push'](_0x4cd370['shift']());}catch(_0x162c14){_0x4cd370['push'](_0x4cd370['shift']());}}}(a15_0x2123,0x25289));function a15_0x2123(){const _0x353265=['str','bff','10093764GyPNsz','17102Asewku','1041315tMylVV','860HrYNpA','exec','2403qNMJtm','BFF\x20function\x20name\x20to\x20execute','1TndHNG','13rCtAMR','2248HYtUIX','597357HWGmAK','4PjAFfK','12zELaXC','params','26081DOWkEq','39137Bhwgwv'];a15_0x2123=function(){return _0x353265;};return a15_0x2123();}import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a15_0x37ed(_0x54c614,_0x129f6a){_0x54c614=_0x54c614-0x75;const _0x212328=a15_0x2123();let _0x37ed0a=_0x212328[_0x54c614];return _0x37ed0a;}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a15_0x5c3f1d(0x81),'command':a15_0x5c3f1d(0x86),'description':'Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':a15_0x5c3f1d(0x76)},PARAMS_FLAG],async 'execute'(_0x1d86ab){const _0x220ddc=a15_0x5c3f1d,_0x64294f=parseJsonParams(_0x1d86ab[_0x220ddc(0x80)](_0x220ddc(0x7d))),_0x38be2a=Date['now'](),_0xbabba1=await executeSdkBff(_0x1d86ab[_0x220ddc(0x80)]('name'),_0x64294f),_0x53ff4e=Date['now']()-_0x38be2a;return{'ok':!![],'data':{'result':_0xbabba1,'elapsed':_0x53ff4e},'message':'BFF\x20executed\x20in\x20'+_0x53ff4e+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1d169c,_0x2e0a87){const _0x8adf65=a16_0x53b1,_0x3478b1=_0x1d169c();while(!![]){try{const _0x1a3d50=parseInt(_0x8adf65(0x1f1))/0x1+parseInt(_0x8adf65(0x1f0))/0x2*(-parseInt(_0x8adf65(0x1f4))/0x3)+parseInt(_0x8adf65(0x1f6))/0x4+parseInt(_0x8adf65(0x1f7))/0x5+parseInt(_0x8adf65(0x1f5))/0x6+-parseInt(_0x8adf65(0x1ef))/0x7+-parseInt(_0x8adf65(0x1f3))/0x8*(parseInt(_0x8adf65(0x1f2))/0x9);if(_0x1a3d50===_0x2e0a87)break;else _0x3478b1['push'](_0x3478b1['shift']());}catch(_0x286cf5){_0x3478b1['push'](_0x3478b1['shift']());}}}(a16_0x1116,0xdde4c));import{bffDetail}from'../../commands/bff/detail.js';function a16_0x1116(){const _0x42b171=['322395gqVcsC','8691840UrMJzY','6125932AyBuQO','5793815bFMtLJ','10622374sRMGnj','2GziWaK','826569rMbvzc','72gKvgoz','2431632NKAZbu'];a16_0x1116=function(){return _0x42b171;};return a16_0x1116();}function a16_0x53b1(_0x116765,_0x47afe7){_0x116765=_0x116765-0x1ef;const _0x11160d=a16_0x1116();let _0x53b192=_0x11160d[_0x116765];return _0x53b192;}import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a17_0x352b0d=a17_0x463d;(function(_0x18793b,_0x10c538){const _0x2a3029=a17_0x463d,_0x20c20f=_0x18793b();while(!![]){try{const _0x41d382=-parseInt(_0x2a3029(0x122))/0x1+-parseInt(_0x2a3029(0x133))/0x2*(-parseInt(_0x2a3029(0x12b))/0x3)+parseInt(_0x2a3029(0x134))/0x4+parseInt(_0x2a3029(0x12c))/0x5*(parseInt(_0x2a3029(0x135))/0x6)+-parseInt(_0x2a3029(0x12d))/0x7+-parseInt(_0x2a3029(0x137))/0x8+parseInt(_0x2a3029(0x130))/0x9;if(_0x41d382===_0x10c538)break;else _0x20c20f['push'](_0x20c20f['shift']());}catch(_0x18c486){_0x20c20f['push'](_0x20c20f['shift']());}}}(a17_0x41f1,0x4e937));import{CliErrors}from'../../errors.js';function a17_0x41f1(){const _0x4fc87a=['info','log','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','CLI\x20Built-in\x20Skill\x20installed','Skipped\x20npx\x20(','nonInteractive','cli-skill-install','inherit','364863WmyaXq','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','apiError','\x20-g\x20-y)...','unknown','write','setLogPath','../../skills/npx-skills-add.js','pipe','415053rHxcCw','25SXVdYt','3499069jTiFiG','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','skipped','5602410vWYcmy','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','cwd','8ZNrzfE','1128116uRAdan','325722WLuZMT','\x20-g\x20-y','4342248gDIiKn','npx\x20skills\x20add\x20failed:\x20'];a17_0x41f1=function(){return _0x4fc87a;};return a17_0x41f1();}import{logger}from'../../utils/logger.js';function a17_0x463d(_0x28188d,_0x29ce9c){_0x28188d=_0x28188d-0x119;const _0x41f13a=a17_0x41f1();let _0x463d70=_0x41f13a[_0x28188d];return _0x463d70;}export const cliSkillDefinitions=[{'service':'cli-skill','command':'install','description':a17_0x352b0d(0x123),'risk':a17_0x352b0d(0x127),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x28d2d3){const _0x2dfbcc=a17_0x352b0d;logger[_0x2dfbcc(0x128)](process['cwd']()),logger[_0x2dfbcc(0x11a)](_0x2dfbcc(0x120),_0x2dfbcc(0x12e));const {LOVRABET_SKILL_SOURCE:_0x4b18b3,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x3d45c2,runNpxSkillsAddGlobal:_0x5836cb}=await import(_0x2dfbcc(0x129)),_0x13c5d0=_0x28d2d3[_0x2dfbcc(0x11f)]?_0x2dfbcc(0x12a):_0x2dfbcc(0x121);console[_0x2dfbcc(0x11b)](_0x2dfbcc(0x131)+_0x4b18b3+_0x2dfbcc(0x125));const _0x26d7e7=_0x5836cb(process[_0x2dfbcc(0x132)](),_0x4b18b3,{'stdio':_0x13c5d0});if(_0x26d7e7[_0x2dfbcc(0x12f)])console[_0x2dfbcc(0x11b)](_0x2dfbcc(0x11e)+_0x3d45c2+'=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.');else{if(_0x26d7e7['ok'])console[_0x2dfbcc(0x11b)](_0x2dfbcc(0x11d));else throw CliErrors[_0x2dfbcc(0x124)](_0x2dfbcc(0x119)+(_0x26d7e7['error']||_0x2dfbcc(0x126)),_0x2dfbcc(0x11c)+_0x4b18b3+_0x2dfbcc(0x136));}return{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2f0909,_0x309b1f){const _0x250b13=a18_0x19b5,_0x1390e2=_0x2f0909();while(!![]){try{const _0x5d74e0=-parseInt(_0x250b13(0x1cf))/0x1+parseInt(_0x250b13(0x1de))/0x2*(parseInt(_0x250b13(0x1d9))/0x3)+-parseInt(_0x250b13(0x1d2))/0x4+-parseInt(_0x250b13(0x1c9))/0x5*(-parseInt(_0x250b13(0x1cb))/0x6)+parseInt(_0x250b13(0x1d4))/0x7*(-parseInt(_0x250b13(0x1d1))/0x8)+-parseInt(_0x250b13(0x1d5))/0x9+parseInt(_0x250b13(0x1da))/0xa*(parseInt(_0x250b13(0x1dd))/0xb);if(_0x5d74e0===_0x309b1f)break;else _0x1390e2['push'](_0x1390e2['shift']());}catch(_0x437bd2){_0x1390e2['push'](_0x1390e2['shift']());}}}(a18_0xfb94,0xdfce2));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';function a18_0x19b5(_0x26faa6,_0x3f34e7){_0x26faa6=_0x26faa6-0x1c8;const _0xfb94b=a18_0xfb94();let _0x19b506=_0xfb94b[_0x26faa6];return _0x19b506;}export function resolveConfigScope(_0x422b75){const _0x4bfd45=a18_0x19b5,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x1f7f2c}=_0x422b75;if(explicitGlobal&&explicitProject)throw CliErrors[_0x4bfd45(0x1ce)](_0x4bfd45(0x1d8),_0x4bfd45(0x1cd));if(explicitGlobal)return _0x4bfd45(0x1d3);if(explicitProject)return _0x4bfd45(0x1d7);switch(_0x1f7f2c){case _0x4bfd45(0x1dc):return'global';case _0x4bfd45(0x1d6):return _0x422b75['inProject']??isInProject()?_0x4bfd45(0x1d7):'global';case'project-or-global-explicit':if(!(_0x422b75['inProject']??isInProject()))throw CliErrors[_0x4bfd45(0x1ce)]('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG[_0x4bfd45(0x1c8)]+_0x4bfd45(0x1cc),'Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG['newConfigFileName']+_0x4bfd45(0x1ca)+CLI_BIN_NAME+_0x4bfd45(0x1d0));return _0x4bfd45(0x1d7);}}export function toScopeFlags(_0x1ea0c7){const _0x5cc109=a18_0x19b5;return{'global':_0x1ea0c7===_0x5cc109(0x1d3)};}function a18_0xfb94(){const _0x871d5c=['3123580OROiUb','global','2513119iVffts','9186534BcqtAX','project-default','project','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','328758iLvIqW','10mpaqsy','\x20(global)','global-default','27488835TiKFRU','2cziuHO','newConfigFileName','28160DYJdFm',',\x20or\x20run\x20`','1776NJjmXO','\x20found).','Use\x20only\x20one\x20config\x20scope\x20flag.','validation','480265WeBFci','\x20init`\x20first.','24NhGbEA'];a18_0xfb94=function(){return _0x871d5c;};return a18_0xfb94();}export function formatScopeLabel(_0x7f4346){const _0x52e5a3=a18_0x19b5;return _0x7f4346==='global'?_0x52e5a3(0x1db):'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a19_0x1445(){const _0x26e4da=['Remove\x20all\x20but\x20one.','Use\x20only\x20one\x20of:\x20','9TwsutU','12XVKJiO','filter','1407241OIojPp','125131lYzGQh','Exactly\x20one\x20of\x20','At\x20least\x20one\x20of\x20','\x20is\x20required\x20for\x20`','join','map','437481mxURUt','1424390piJsVA','length','Invalid\x20--','6eAguwR','3903608tkPZsg','\x20is\x20allowed,\x20found:\x20','Provide\x20one\x20of:\x20','validation',':\x20expected\x20','663866DaFCJi','some','flag','Flags\x20','235236gCDbCO','22lyWdmo','35YsVKxW'];a19_0x1445=function(){return _0x26e4da;};return a19_0x1445();}(function(_0x11d16c,_0x51cad7){const _0x3a802b=a19_0x4a4f,_0x15aa6f=_0x11d16c();while(!![]){try{const _0x18a60a=-parseInt(_0x3a802b(0xeb))/0x1*(-parseInt(_0x3a802b(0xe3))/0x2)+parseInt(_0x3a802b(0xd4))/0x3+parseInt(_0x3a802b(0xe2))/0x4*(-parseInt(_0x3a802b(0xe4))/0x5)+parseInt(_0x3a802b(0xd8))/0x6*(-parseInt(_0x3a802b(0xde))/0x7)+parseInt(_0x3a802b(0xd9))/0x8*(-parseInt(_0x3a802b(0xe7))/0x9)+parseInt(_0x3a802b(0xd5))/0xa+-parseInt(_0x3a802b(0xea))/0xb*(-parseInt(_0x3a802b(0xe8))/0xc);if(_0x18a60a===_0x51cad7)break;else _0x15aa6f['push'](_0x15aa6f['shift']());}catch(_0x59358e){_0x15aa6f['push'](_0x15aa6f['shift']());}}}(a19_0x1445,0xc2dea));function a19_0x4a4f(_0x35c0f6,_0x2f68f3){_0x35c0f6=_0x35c0f6-0xd4;const _0x14454d=a19_0x1445();let _0x4a4f38=_0x14454d[_0x35c0f6];return _0x4a4f38;}import{CliErrors}from'../../errors.js';function isSet(_0x3668bf,_0xac9edc){const _0x3cd237=a19_0x4a4f,_0x357275=_0x3668bf[_0x3cd237(0xe0)](_0xac9edc);return _0x357275!==undefined&&_0x357275!==''&&_0x357275!==![]&&_0x357275!==0x0;}function fmtNames(_0x329d10){const _0x2ba32b=a19_0x4a4f;return _0x329d10[_0x2ba32b(0xf0)](_0x84b5e=>'--'+_0x84b5e)[_0x2ba32b(0xef)](',\x20');}export function requireOneOf(_0x2b63ca,_0x351418,_0x2abca3){const _0x17c9c7=a19_0x4a4f,_0x279e4a=_0x351418[_0x17c9c7(0xe9)](_0x4116ec=>isSet(_0x2b63ca,_0x4116ec));if(_0x279e4a['length']!==0x1)throw CliErrors[_0x17c9c7(0xdc)](_0x279e4a[_0x17c9c7(0xd6)]===0x0?_0x17c9c7(0xec)+fmtNames(_0x351418)+_0x17c9c7(0xee)+_0x2abca3+'`.':'Only\x20one\x20of\x20'+fmtNames(_0x351418)+_0x17c9c7(0xda)+fmtNames(_0x279e4a)+'.',_0x279e4a[_0x17c9c7(0xd6)]===0x0?_0x17c9c7(0xdb)+fmtNames(_0x351418):_0x17c9c7(0xe5));}export function requireAnyOf(_0x44b1fc,_0x5f1310,_0x56e7e4){const _0x15f539=a19_0x4a4f;if(!_0x5f1310[_0x15f539(0xdf)](_0x43d3e5=>isSet(_0x44b1fc,_0x43d3e5)))throw CliErrors['validation'](_0x15f539(0xed)+fmtNames(_0x5f1310)+_0x15f539(0xee)+_0x56e7e4+'`.',_0x15f539(0xdb)+fmtNames(_0x5f1310));}export function mutuallyExclusive(_0x13fbb1,_0x1c2f19,_0x301212){const _0x3e75f2=a19_0x4a4f,_0x54efaa=_0x1c2f19[_0x3e75f2(0xe9)](_0x3c8ee4=>isSet(_0x13fbb1,_0x3c8ee4));if(_0x54efaa[_0x3e75f2(0xd6)]>0x1)throw CliErrors[_0x3e75f2(0xdc)](_0x3e75f2(0xe1)+fmtNames(_0x54efaa)+'\x20are\x20mutually\x20exclusive\x20for\x20`'+_0x301212+'`.',_0x3e75f2(0xe6)+fmtNames(_0x1c2f19));}export function validatePattern(_0x29b01d,_0x50228c,_0x543005,_0x2073aa){const _0x6ab435=a19_0x4a4f,_0x18e848=_0x29b01d['str'](_0x50228c);if(_0x18e848&&!_0x543005['test'](_0x18e848))throw CliErrors[_0x6ab435(0xdc)](_0x6ab435(0xd7)+_0x50228c+_0x6ab435(0xdd)+_0x2073aa+',\x20got\x20\x22'+_0x18e848+'\x22.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x1056c1=a20_0x17d4;(function(_0x53de0d,_0x54f000){const _0xfcc92f=a20_0x17d4,_0x43d5a4=_0x53de0d();while(!![]){try{const _0x35133c=-parseInt(_0xfcc92f(0xf0))/0x1+-parseInt(_0xfcc92f(0xf9))/0x2+parseInt(_0xfcc92f(0xf6))/0x3*(parseInt(_0xfcc92f(0xef))/0x4)+-parseInt(_0xfcc92f(0xf4))/0x5*(-parseInt(_0xfcc92f(0xe9))/0x6)+-parseInt(_0xfcc92f(0xeb))/0x7+-parseInt(_0xfcc92f(0xec))/0x8*(-parseInt(_0xfcc92f(0xf7))/0x9)+parseInt(_0xfcc92f(0xf2))/0xa;if(_0x35133c===_0x54f000)break;else _0x43d5a4['push'](_0x43d5a4['shift']());}catch(_0x2e0c6f){_0x43d5a4['push'](_0x43d5a4['shift']());}}}(a20_0x3a92,0x94f69));export const CODE_FLAG={'name':a20_0x1056c1(0xfb),'type':'string','required':!![],'description':a20_0x1056c1(0xe8),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0x1056c1(0xf8)}};export const SQLCODE_FLAG={'name':'sqlcode','type':a20_0x1056c1(0xea),'required':!![],'description':a20_0x1056c1(0xf3),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};function a20_0x3a92(){const _0x127a3f=['Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','3910140CDNXkH','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','190sMgOeL','boolean','3237639QdnexH','1304469oEEneW','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','1801250Tynmlm','number','code','verbose','Dataset\x20code\x20(32-char\x20hex\x20UUID)','87732nsehSc','string','3049249ExFfHY','24xTCICp','Resource\x20name\x20for\x20lookup','Return\x20full\x20raw\x20response\x20object','4xWrhpW','514301eQNpnS'];a20_0x3a92=function(){return _0x127a3f;};return a20_0x3a92();}export const VERBOSE_FLAG={'name':a20_0x1056c1(0xfc),'type':a20_0x1056c1(0xf5),'description':a20_0x1056c1(0xee)};function a20_0x17d4(_0x45ba7c,_0x2ea368){_0x45ba7c=_0x45ba7c-0xe8;const _0x3a928f=a20_0x3a92();let _0x17d41c=_0x3a928f[_0x45ba7c];return _0x17d41c;}export const PARAMS_FLAG={'name':'params','type':a20_0x1056c1(0xea),'description':a20_0x1056c1(0xf1)};export const NAME_FLAG={'name':'name','type':a20_0x1056c1(0xea),'description':a20_0x1056c1(0xed)};export const ID_FLAG={'name':'id','type':a20_0x1056c1(0xfa),'required':!![],'description':'Resource\x20ID'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x10a104,_0x5501a3){const _0x4cb5fb=a21_0x4b84,_0x2a484b=_0x10a104();while(!![]){try{const _0xd6b8e2=-parseInt(_0x4cb5fb(0xb6))/0x1+parseInt(_0x4cb5fb(0xb4))/0x2*(parseInt(_0x4cb5fb(0xac))/0x3)+parseInt(_0x4cb5fb(0xb9))/0x4+-parseInt(_0x4cb5fb(0xb0))/0x5+-parseInt(_0x4cb5fb(0xb1))/0x6*(-parseInt(_0x4cb5fb(0xb5))/0x7)+-parseInt(_0x4cb5fb(0xa9))/0x8*(parseInt(_0x4cb5fb(0xad))/0x9)+parseInt(_0x4cb5fb(0xaa))/0xa;if(_0xd6b8e2===_0x5501a3)break;else _0x2a484b['push'](_0x2a484b['shift']());}catch(_0x23587c){_0x2a484b['push'](_0x2a484b['shift']());}}}(a21_0x34d6,0x6251b));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;function a21_0x4b84(_0x590170,_0x14f247){_0x590170=_0x590170-0xa7;const _0x34d6a6=a21_0x34d6();let _0x4b8412=_0x34d6a6[_0x590170];return _0x4b8412;}export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function a21_0x34d6(){const _0x315eb9=['validation','toFixed','479204BVjkkf','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','size','2038208EfAzPt','9563690gzDeCz','ceil','3jwPvLL','18IYAGEz','trim','\x20path\x20is\x20required.','3827235dyjpeB','90rlxhfn','isFile','\x20MB','699410PNHrpa','197239MprGSh','170816dykCJh'];a21_0x34d6=function(){return _0x315eb9;};return a21_0x34d6();}function formatBytes(_0x58322c){const _0x3290ce=a21_0x4b84;if(_0x58322c>=BYTES_PER_MB){const _0x2bf6d7=Math[_0x3290ce(0xab)](_0x58322c/BYTES_PER_MB*0x64)/0x64;return _0x2bf6d7[_0x3290ce(0xb8)](0x2)+_0x3290ce(0xb3);}return _0x58322c+'\x20B';}export function requireRuntimeUploadFile(_0x429b35,_0x1184c2){const _0x1fcdf0=a21_0x4b84,_0x40455e=_0x429b35[_0x1fcdf0(0xae)]();if(!_0x40455e)throw CliErrors[_0x1fcdf0(0xb7)](_0x1184c2+_0x1fcdf0(0xaf));if(!existsSync(_0x40455e))throw CliErrors['validation']('File\x20not\x20found:\x20'+_0x40455e);const _0x23720c=statSync(_0x40455e);if(!_0x23720c[_0x1fcdf0(0xb2)]())throw CliErrors[_0x1fcdf0(0xb7)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x40455e);if(_0x23720c[_0x1fcdf0(0xa8)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x1fcdf0(0xb7)](_0x1fcdf0(0xa7)+_0x40455e+'\x20('+formatBytes(_0x23720c['size'])+')');return{'path':_0x40455e,'size':_0x23720c[_0x1fcdf0(0xa8)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a22_0x2380(){const _0x324b19=['project-or-global-explicit','includes','validation','pageSize','key','bool','delete','Missing\x20key\x20or\x20value.','Write\x20to\x20global\x20config','Value\x20to\x20assign','1454fZNCWv','read','\x22\x20is\x20not\x20settable.','1337rFtVCM','787380IFIPAE','1114830KNQUNo','104116oYHusA','12072RqjKju','Config\x20files:\x0a','get','write','global','value','1312636IEjrSW','riskLevel','Set\x20a\x20config\x20value','Delete\x20a\x20config\x20value','Invalid\x20value\x20for\x20\x22','Get\x20a\x20config\x20value','Key\x20not\x20found:\x20','object','appcode','pretty','field','pageSize\x20must\x20be\x20a\x20positive\x20number','../../context.js','format','\x20\x20global:\x20\x20','16005230iQUYva','\x20(global)','\x20config\x20delete\x20<key>\x20[--global]','args','Settable\x20keys:\x20','9yQipNt','Usage:\x20','join','apps','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Deleted\x20`','Missing\x20key\x20argument.','stringify','log','split','\x20config\x20set\x20<key>\x20<value>\x20[--global]','Key\x20\x22','raw','alias','isArray','trim','1422xVNbXm','keys','List\x20current\x20config','`\x20=\x20\x22','Set\x20`','\x22\x20not\x20found\x20at\x20top\x20level.','config','set','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)',';\x20apps.<alias>.appcode','length','\x20\x20project:\x20'];a22_0x2380=function(){return _0x324b19;};return a22_0x2380();}const a22_0x4f310f=a22_0x29fe;(function(_0x11bca2,_0x106294){const _0x156901=a22_0x29fe,_0x4d8350=_0x11bca2();while(!![]){try{const _0x320b18=-parseInt(_0x156901(0x15d))/0x1+parseInt(_0x156901(0x157))/0x2*(-parseInt(_0x156901(0x188))/0x3)+-parseInt(_0x156901(0x164))/0x4+-parseInt(_0x156901(0x15c))/0x5+-parseInt(_0x156901(0x15b))/0x6+-parseInt(_0x156901(0x15a))/0x7*(parseInt(_0x156901(0x15e))/0x8)+parseInt(_0x156901(0x178))/0x9*(parseInt(_0x156901(0x173))/0xa);if(_0x320b18===_0x106294)break;else _0x4d8350['push'](_0x4d8350['shift']());}catch(_0x102ba7){_0x4d8350['push'](_0x4d8350['shift']());}}}(a22_0x2380,0x2c3f3));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a22_0x4f310f(0x162),'type':'boolean','description':a22_0x4f310f(0x155),'default':![]};function parseAliasAppcodeSetKey(_0x5b47a2){const _0x53502a=a22_0x4f310f,_0x5f2f13=_0x5b47a2[_0x53502a(0x181)]('.');if(_0x5f2f13['length']!==0x3||_0x5f2f13[0x0]!==_0x53502a(0x17b)||_0x5f2f13[0x2]!==_0x53502a(0x16c))return undefined;const _0x47da31=_0x5f2f13[0x1]?.[_0x53502a(0x187)]();return _0x47da31?_0x47da31:undefined;}function parseAliasDeleteKey(_0x1e6ed2){const _0xf093d6=a22_0x4f310f,_0x521ad6=_0x1e6ed2[_0xf093d6(0x181)]('.');if(_0x521ad6[_0xf093d6(0x192)]===0x2&&_0x521ad6[0x0]===_0xf093d6(0x17b)){const _0x3677fd=_0x521ad6[0x1]?.[_0xf093d6(0x187)]();return _0x3677fd?{'alias':_0x3677fd}:undefined;}if(_0x521ad6[_0xf093d6(0x192)]===0x3&&_0x521ad6[0x0]===_0xf093d6(0x17b)&&_0x521ad6[0x2]==='appcode'){const _0x805be8=_0x521ad6[0x1]?.[_0xf093d6(0x187)]();return _0x805be8?{'alias':_0x805be8,'field':_0xf093d6(0x16c)}:undefined;}return undefined;}function setLocalAppAlias(_0x16b8b9,_0x2d7007,_0x3dd56b){const _0x128c8b=a22_0x4f310f,_0x9b0828=_0x16b8b9['apps']&&typeof _0x16b8b9['apps']===_0x128c8b(0x16b)&&!Array['isArray'](_0x16b8b9[_0x128c8b(0x17b)])?_0x16b8b9[_0x128c8b(0x17b)]:{},_0x5e59a8=_0x9b0828[_0x2d7007]&&typeof _0x9b0828[_0x2d7007]===_0x128c8b(0x16b)&&!Array[_0x128c8b(0x186)](_0x9b0828[_0x2d7007])?_0x9b0828[_0x2d7007]:{};_0x5e59a8[_0x128c8b(0x16c)]=_0x3dd56b,_0x9b0828[_0x2d7007]=_0x5e59a8,_0x16b8b9['apps']=_0x9b0828;}function deleteLocalAppAlias(_0x11c4bc,_0x376aef){const _0x3b2ae3=a22_0x4f310f;if(!_0x11c4bc[_0x3b2ae3(0x17b)]||typeof _0x11c4bc[_0x3b2ae3(0x17b)]!==_0x3b2ae3(0x16b)||Array[_0x3b2ae3(0x186)](_0x11c4bc[_0x3b2ae3(0x17b)]))return![];const _0x56dafc=_0x11c4bc[_0x3b2ae3(0x17b)],_0xb046cc=_0x56dafc[_0x376aef[_0x3b2ae3(0x185)]];if(!_0xb046cc||typeof _0xb046cc!=='object'||Array[_0x3b2ae3(0x186)](_0xb046cc))return![];if(!_0x376aef['field'])return delete _0x56dafc[_0x376aef[_0x3b2ae3(0x185)]],!![];if(!(_0x376aef[_0x3b2ae3(0x16e)]in _0xb046cc))return![];return delete _0xb046cc[_0x376aef[_0x3b2ae3(0x16e)]],Object[_0x3b2ae3(0x189)](_0xb046cc)[_0x3b2ae3(0x192)]===0x0&&delete _0x56dafc[_0x376aef[_0x3b2ae3(0x185)]],!![];}const listDef={'service':'config','command':'list','description':a22_0x4f310f(0x18a),'risk':a22_0x4f310f(0x158),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x5eab9d){const _0x38153a=a22_0x4f310f,{buildConfigFromFlags:_0x6a8435}=await import(_0x38153a(0x170)),_0x4daae2=_0x6a8435({}),_0x5968ed=getProjectConfigPath(),_0x1e9da3=resolveWriteConfigPath('global');if(_0x5eab9d[_0x38153a(0x171)]===_0x38153a(0x16d))return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON[_0x38153a(0x17f)](_0x4daae2[_0x38153a(0x184)],null,0x2)+'\x0a\x0a')+_0x38153a(0x15f)+(_0x38153a(0x193)+(_0x5968ed??'(none)')+'\x0a')+(_0x38153a(0x172)+_0x1e9da3)};return{'ok':!![],'data':{'effective':_0x4daae2[_0x38153a(0x184)],'configFiles':{'project':_0x5968ed??null,'global':_0x1e9da3}}};}},getDef={'service':'config','command':a22_0x4f310f(0x160),'description':a22_0x4f310f(0x169),'risk':a22_0x4f310f(0x158),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':a22_0x4f310f(0x190),'required':!![]}],'flags':[],async 'execute'(_0x1ae80e){const _0x1c3324=a22_0x4f310f,_0x31466f=_0x1ae80e[_0x1c3324(0x176)][0x0];if(!_0x31466f)throw CliErrors['validation'](_0x1c3324(0x17e),_0x1c3324(0x179)+CLI_BIN_NAME+'\x20config\x20get\x20<key>');const {buildConfigFromFlags:_0x45a6b2}=await import(_0x1c3324(0x170)),{raw:_0x3b43cc}=_0x45a6b2({});if(_0x31466f[_0x1c3324(0x195)]('.')){const _0x5e2e2d=_0x31466f[_0x1c3324(0x181)]('.');let _0x4debd6=_0x3b43cc;for(const _0x2b3d9e of _0x5e2e2d){if(_0x4debd6==null||typeof _0x4debd6!==_0x1c3324(0x16b))throw CliErrors['validation'](_0x1c3324(0x16a)+_0x31466f);_0x4debd6=_0x4debd6[_0x2b3d9e];}if(_0x4debd6===undefined)throw CliErrors['validation'](_0x1c3324(0x16a)+_0x31466f);return console[_0x1c3324(0x180)](typeof _0x4debd6===_0x1c3324(0x16b)?JSON[_0x1c3324(0x17f)](_0x4debd6,null,0x2):String(_0x4debd6)),{'ok':!![]};}const _0x2b5b89=_0x3b43cc[_0x31466f];if(_0x2b5b89===undefined)throw CliErrors[_0x1c3324(0x14f)]('Key\x20not\x20found:\x20'+_0x31466f);return console[_0x1c3324(0x180)](typeof _0x2b5b89===_0x1c3324(0x16b)?JSON[_0x1c3324(0x17f)](_0x2b5b89,null,0x2):String(_0x2b5b89)),{'ok':!![]};}},setDef={'service':a22_0x4f310f(0x18e),'command':a22_0x4f310f(0x18f),'description':a22_0x4f310f(0x166),'risk':a22_0x4f310f(0x161),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x4f310f(0x151),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x4f310f(0x163),'description':a22_0x4f310f(0x156),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x518e03){const _0x3a4a51=a22_0x4f310f,_0x150689=_0x518e03[_0x3a4a51(0x176)][0x0],_0x24788f=_0x518e03[_0x3a4a51(0x176)][0x1];if(!_0x150689||_0x24788f===undefined)throw CliErrors[_0x3a4a51(0x14f)](_0x3a4a51(0x154),_0x3a4a51(0x179)+CLI_BIN_NAME+_0x3a4a51(0x182));if(ENUM_KEYS[_0x150689]&&!ENUM_KEYS[_0x150689][_0x3a4a51(0x195)](_0x24788f))throw CliErrors[_0x3a4a51(0x14f)](_0x3a4a51(0x168)+_0x150689+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x150689][_0x3a4a51(0x17a)](',\x20'));if(_0x150689===_0x3a4a51(0x165))throw CliErrors['validation'](_0x3a4a51(0x17c));if(_0x150689===_0x3a4a51(0x150)){const _0x4a1a7d=Number(_0x24788f);if(isNaN(_0x4a1a7d)||_0x4a1a7d<=0x0)throw CliErrors[_0x3a4a51(0x14f)](_0x3a4a51(0x16f));}const _0x3fa73c=resolveWriteScope({'explicitGlobal':_0x518e03[_0x3a4a51(0x152)](_0x3a4a51(0x162)),'policy':_0x3a4a51(0x194)}),_0x395d3c=toScopeFlags(_0x3fa73c),_0x319765=readScopedConfig(_0x395d3c),_0x35932c=parseAliasAppcodeSetKey(_0x150689);if(!_0x35932c&&!isTopLevelConfigKey(_0x150689))throw CliErrors[_0x3a4a51(0x14f)]('Top-level\x20key\x20\x22'+_0x150689+_0x3a4a51(0x159),_0x3a4a51(0x177)+getTopLevelConfigKeySummary()+_0x3a4a51(0x191));return _0x35932c?setLocalAppAlias(_0x319765,_0x35932c,_0x24788f):_0x319765[_0x150689]=_0x150689===_0x3a4a51(0x150)?Number(_0x24788f):_0x24788f,console[_0x3a4a51(0x180)](_0x3a4a51(0x18c)+_0x150689+_0x3a4a51(0x18b)+_0x24788f+'\x22'+(_0x3fa73c===_0x3a4a51(0x162)?_0x3a4a51(0x174):'')),writeScopedConfig(_0x319765,_0x395d3c),{'ok':!![]};}},deleteDef={'service':a22_0x4f310f(0x18e),'command':a22_0x4f310f(0x153),'description':a22_0x4f310f(0x167),'risk':a22_0x4f310f(0x161),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x4f310f(0x151),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x26247a){const _0x561497=a22_0x4f310f,_0x5616fc=_0x26247a[_0x561497(0x176)][0x0];if(!_0x5616fc)throw CliErrors[_0x561497(0x14f)]('Missing\x20key\x20argument.',_0x561497(0x179)+CLI_BIN_NAME+_0x561497(0x175));const _0x53914f=resolveWriteScope({'explicitGlobal':_0x26247a[_0x561497(0x152)](_0x561497(0x162)),'policy':'project-or-global-explicit'}),_0x114b72=toScopeFlags(_0x53914f),_0x720cc5=readScopedConfig(_0x114b72),_0x5d1687=parseAliasDeleteKey(_0x5616fc);if(_0x5d1687){if(!deleteLocalAppAlias(_0x720cc5,_0x5d1687))throw CliErrors[_0x561497(0x14f)]('Key\x20not\x20found:\x20'+_0x5616fc);return console['log']('Deleted\x20`'+_0x5616fc+'`'+(_0x53914f===_0x561497(0x162)?_0x561497(0x174):'')),writeScopedConfig(_0x720cc5,_0x114b72),{'ok':!![]};}if(_0x720cc5[_0x5616fc]===undefined)throw CliErrors[_0x561497(0x14f)](_0x561497(0x183)+_0x5616fc+_0x561497(0x18d));return delete _0x720cc5[_0x5616fc],console[_0x561497(0x180)](_0x561497(0x17d)+_0x5616fc+'`'+(_0x53914f==='global'?_0x561497(0x174):'')),writeScopedConfig(_0x720cc5,_0x114b72),{'ok':!![]};}};function a22_0x29fe(_0x3434c9,_0x2ef99e){_0x3434c9=_0x3434c9-0x14f;const _0x238071=a22_0x2380();let _0x29fe5b=_0x238071[_0x3434c9];return _0x29fe5b;}export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
1
|
+
function a22_0x32e7(_0x39aee8,_0x30833c){_0x39aee8=_0x39aee8-0x1b6;const _0x57c66b=a22_0x57c6();let _0x32e706=_0x57c66b[_0x39aee8];return _0x32e706;}const a22_0x25b463=a22_0x32e7;(function(_0x3e330d,_0x33eeaf){const _0x2c51c4=a22_0x32e7,_0x48e9ca=_0x3e330d();while(!![]){try{const _0x59c1c0=-parseInt(_0x2c51c4(0x1ea))/0x1*(-parseInt(_0x2c51c4(0x1c7))/0x2)+-parseInt(_0x2c51c4(0x1c2))/0x3*(parseInt(_0x2c51c4(0x1c1))/0x4)+parseInt(_0x2c51c4(0x1bc))/0x5+-parseInt(_0x2c51c4(0x1e4))/0x6+-parseInt(_0x2c51c4(0x1b9))/0x7+parseInt(_0x2c51c4(0x1d5))/0x8*(parseInt(_0x2c51c4(0x1cf))/0x9)+parseInt(_0x2c51c4(0x1bf))/0xa*(parseInt(_0x2c51c4(0x1e8))/0xb);if(_0x59c1c0===_0x33eeaf)break;else _0x48e9ca['push'](_0x48e9ca['shift']());}catch(_0x533bd3){_0x48e9ca['push'](_0x48e9ca['shift']());}}}(a22_0x57c6,0x4e53a));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':'boolean','description':a22_0x25b463(0x1ca),'default':![]};function a22_0x57c6(){const _0x474103=['\x22\x20is\x20not\x20settable.','write','bool','104428sqdeAl','log',';\x20apps.<alias>.appcode','Write\x20to\x20global\x20config','Key\x20not\x20found:\x20','\x22\x20not\x20found\x20at\x20top\x20level.','list','pageSize\x20must\x20be\x20a\x20positive\x20number','9whpduD','apps','stringify','get','set','raw','3470744HyDAPK','riskLevel','global','Delete\x20a\x20config\x20value','includes','field','Invalid\x20value\x20for\x20\x22','Set\x20`','Settable\x20keys:\x20','keys','Config\x20files:\x0a','appcode','Get\x20a\x20config\x20value','../../context.js','alias','3643566MZHZiW','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','project-or-global-explicit','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','7964wihUji','args','2BsMYyu','value','\x22.\x20Allowed:\x20','Deleted\x20`','\x20config\x20get\x20<key>','split','read','\x20\x20project:\x20','join','pageSize','pretty','Set\x20a\x20config\x20value','validation','Value\x20to\x20assign','\x20config\x20set\x20<key>\x20<value>\x20[--global]','(none)','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','Missing\x20key\x20argument.','isArray','Usage:\x20','\x20config\x20delete\x20<key>\x20[--global]','Missing\x20key\x20or\x20value.','config','\x20\x20global:\x20\x20','2583336KvmGuB','\x20(global)','object','2869995XzhRbL','length','Top-level\x20key\x20\x22','8940lFqbQc','trim','4swmelM','1387173kGKFVn','Key\x20\x22'];a22_0x57c6=function(){return _0x474103;};return a22_0x57c6();}function parseAliasAppcodeSetKey(_0x536dc2){const _0x6e34e5=a22_0x25b463,_0x2caa83=_0x536dc2[_0x6e34e5(0x1ef)]('.');if(_0x2caa83['length']!==0x3||_0x2caa83[0x0]!==_0x6e34e5(0x1d0)||_0x2caa83[0x2]!=='appcode')return undefined;const _0x2d4a9d=_0x2caa83[0x1]?.['trim']();return _0x2d4a9d?_0x2d4a9d:undefined;}function parseAliasDeleteKey(_0x5ba586){const _0x4183be=a22_0x25b463,_0x158723=_0x5ba586[_0x4183be(0x1ef)]('.');if(_0x158723[_0x4183be(0x1bd)]===0x2&&_0x158723[0x0]===_0x4183be(0x1d0)){const _0x18efea=_0x158723[0x1]?.[_0x4183be(0x1c0)]();return _0x18efea?{'alias':_0x18efea}:undefined;}if(_0x158723[_0x4183be(0x1bd)]===0x3&&_0x158723[0x0]===_0x4183be(0x1d0)&&_0x158723[0x2]===_0x4183be(0x1e0)){const _0x62140f=_0x158723[0x1]?.[_0x4183be(0x1c0)]();return _0x62140f?{'alias':_0x62140f,'field':_0x4183be(0x1e0)}:undefined;}return undefined;}function setLocalAppAlias(_0x224147,_0x5af0ef,_0x16fa89){const _0x25de04=a22_0x25b463,_0x2e63da=_0x224147[_0x25de04(0x1d0)]&&typeof _0x224147['apps']==='object'&&!Array[_0x25de04(0x1fc)](_0x224147[_0x25de04(0x1d0)])?_0x224147['apps']:{},_0x38cdd0=_0x2e63da[_0x5af0ef]&&typeof _0x2e63da[_0x5af0ef]==='object'&&!Array[_0x25de04(0x1fc)](_0x2e63da[_0x5af0ef])?_0x2e63da[_0x5af0ef]:{};_0x38cdd0[_0x25de04(0x1e0)]=_0x16fa89,_0x2e63da[_0x5af0ef]=_0x38cdd0,_0x224147[_0x25de04(0x1d0)]=_0x2e63da;}function deleteLocalAppAlias(_0x59be73,_0x1f96d2){const _0x16cde9=a22_0x25b463;if(!_0x59be73[_0x16cde9(0x1d0)]||typeof _0x59be73[_0x16cde9(0x1d0)]!==_0x16cde9(0x1bb)||Array[_0x16cde9(0x1fc)](_0x59be73[_0x16cde9(0x1d0)]))return![];const _0x2f4931=_0x59be73['apps'],_0x1caac9=_0x2f4931[_0x1f96d2[_0x16cde9(0x1e3)]];if(!_0x1caac9||typeof _0x1caac9!==_0x16cde9(0x1bb)||Array[_0x16cde9(0x1fc)](_0x1caac9))return![];if(!_0x1f96d2['field'])return delete _0x2f4931[_0x1f96d2[_0x16cde9(0x1e3)]],!![];if(!(_0x1f96d2[_0x16cde9(0x1da)]in _0x1caac9))return![];return delete _0x1caac9[_0x1f96d2[_0x16cde9(0x1da)]],Object[_0x16cde9(0x1de)](_0x1caac9)[_0x16cde9(0x1bd)]===0x0&&delete _0x2f4931[_0x1f96d2[_0x16cde9(0x1e3)]],!![];}const listDef={'service':a22_0x25b463(0x1b7),'command':a22_0x25b463(0x1cd),'description':'List\x20current\x20config','risk':a22_0x25b463(0x1f0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x16fc5c){const _0x5b28e7=a22_0x25b463,{buildConfigFromFlags:_0x5c3715}=await import(_0x5b28e7(0x1e2)),_0x1048c4=_0x5c3715({}),_0x307a18=getProjectConfigPath(),_0x45fe7d=resolveWriteConfigPath(_0x5b28e7(0x1d7));if(_0x16fc5c['format']===_0x5b28e7(0x1f4))return{'ok':!![],'message':_0x5b28e7(0x1e5)+(JSON['stringify'](_0x1048c4[_0x5b28e7(0x1d4)],null,0x2)+'\x0a\x0a')+_0x5b28e7(0x1df)+(_0x5b28e7(0x1f1)+(_0x307a18??_0x5b28e7(0x1f9))+'\x0a')+(_0x5b28e7(0x1b8)+_0x45fe7d)};return{'ok':!![],'data':{'effective':_0x1048c4[_0x5b28e7(0x1d4)],'configFiles':{'project':_0x307a18??null,'global':_0x45fe7d}}};}},getDef={'service':'config','command':a22_0x25b463(0x1d2),'description':a22_0x25b463(0x1e1),'risk':a22_0x25b463(0x1f0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':a22_0x25b463(0x1fa),'required':!![]}],'flags':[],async 'execute'(_0x17d9d1){const _0x4354dc=a22_0x25b463,_0x265d69=_0x17d9d1[_0x4354dc(0x1e9)][0x0];if(!_0x265d69)throw CliErrors[_0x4354dc(0x1f6)](_0x4354dc(0x1fb),_0x4354dc(0x1fd)+CLI_BIN_NAME+_0x4354dc(0x1ee));const {buildConfigFromFlags:_0x247069}=await import(_0x4354dc(0x1e2)),{raw:_0x8fd9a6}=_0x247069({});if(_0x265d69[_0x4354dc(0x1d9)]('.')){const _0x3c29a1=_0x265d69[_0x4354dc(0x1ef)]('.');let _0x44e713=_0x8fd9a6;for(const _0x2a258c of _0x3c29a1){if(_0x44e713==null||typeof _0x44e713!==_0x4354dc(0x1bb))throw CliErrors[_0x4354dc(0x1f6)]('Key\x20not\x20found:\x20'+_0x265d69);_0x44e713=_0x44e713[_0x2a258c];}if(_0x44e713===undefined)throw CliErrors['validation'](_0x4354dc(0x1cb)+_0x265d69);return console['log'](typeof _0x44e713===_0x4354dc(0x1bb)?JSON[_0x4354dc(0x1d1)](_0x44e713,null,0x2):String(_0x44e713)),{'ok':!![]};}const _0x309ccb=_0x8fd9a6[_0x265d69];if(_0x309ccb===undefined)throw CliErrors[_0x4354dc(0x1f6)](_0x4354dc(0x1cb)+_0x265d69);return console[_0x4354dc(0x1c8)](typeof _0x309ccb==='object'?JSON[_0x4354dc(0x1d1)](_0x309ccb,null,0x2):String(_0x309ccb)),{'ok':!![]};}},setDef={'service':a22_0x25b463(0x1b7),'command':a22_0x25b463(0x1d3),'description':a22_0x25b463(0x1f5),'risk':a22_0x25b463(0x1c5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x25b463(0x1eb),'description':a22_0x25b463(0x1f7),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x10eaef){const _0x38a9e5=a22_0x25b463,_0x28d0c4=_0x10eaef[_0x38a9e5(0x1e9)][0x0],_0xb432db=_0x10eaef[_0x38a9e5(0x1e9)][0x1];if(!_0x28d0c4||_0xb432db===undefined)throw CliErrors[_0x38a9e5(0x1f6)](_0x38a9e5(0x1b6),_0x38a9e5(0x1fd)+CLI_BIN_NAME+_0x38a9e5(0x1f8));if(ENUM_KEYS[_0x28d0c4]&&!ENUM_KEYS[_0x28d0c4][_0x38a9e5(0x1d9)](_0xb432db))throw CliErrors[_0x38a9e5(0x1f6)](_0x38a9e5(0x1db)+_0x28d0c4+_0x38a9e5(0x1ec)+ENUM_KEYS[_0x28d0c4][_0x38a9e5(0x1f2)](',\x20'));if(_0x28d0c4===_0x38a9e5(0x1d6))throw CliErrors[_0x38a9e5(0x1f6)](_0x38a9e5(0x1e7));if(_0x28d0c4===_0x38a9e5(0x1f3)){const _0x55130a=Number(_0xb432db);if(isNaN(_0x55130a)||_0x55130a<=0x0)throw CliErrors['validation'](_0x38a9e5(0x1ce));}const _0x5713e9=resolveWriteScope({'explicitGlobal':_0x10eaef[_0x38a9e5(0x1c6)](_0x38a9e5(0x1d7)),'policy':_0x38a9e5(0x1e6)}),_0x326a89=toScopeFlags(_0x5713e9),_0xe7da61=readScopedConfig(_0x326a89),_0x434fd3=parseAliasAppcodeSetKey(_0x28d0c4);if(!_0x434fd3&&!isTopLevelConfigKey(_0x28d0c4))throw CliErrors['validation'](_0x38a9e5(0x1be)+_0x28d0c4+_0x38a9e5(0x1c4),_0x38a9e5(0x1dd)+getTopLevelConfigKeySummary()+_0x38a9e5(0x1c9));return _0x434fd3?setLocalAppAlias(_0xe7da61,_0x434fd3,_0xb432db):_0xe7da61[_0x28d0c4]=_0x28d0c4===_0x38a9e5(0x1f3)?Number(_0xb432db):_0xb432db,console[_0x38a9e5(0x1c8)](_0x38a9e5(0x1dc)+_0x28d0c4+'`\x20=\x20\x22'+_0xb432db+'\x22'+(_0x5713e9===_0x38a9e5(0x1d7)?_0x38a9e5(0x1ba):'')),writeScopedConfig(_0xe7da61,_0x326a89),{'ok':!![]};}},deleteDef={'service':a22_0x25b463(0x1b7),'command':'delete','description':a22_0x25b463(0x1d8),'risk':a22_0x25b463(0x1c5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x332e35){const _0x250085=a22_0x25b463,_0x5d91de=_0x332e35[_0x250085(0x1e9)][0x0];if(!_0x5d91de)throw CliErrors[_0x250085(0x1f6)](_0x250085(0x1fb),_0x250085(0x1fd)+CLI_BIN_NAME+_0x250085(0x1fe));const _0x3f7dc1=resolveWriteScope({'explicitGlobal':_0x332e35[_0x250085(0x1c6)](_0x250085(0x1d7)),'policy':_0x250085(0x1e6)}),_0x2c147b=toScopeFlags(_0x3f7dc1),_0x44be17=readScopedConfig(_0x2c147b),_0x8ecd89=parseAliasDeleteKey(_0x5d91de);if(_0x8ecd89){if(!deleteLocalAppAlias(_0x44be17,_0x8ecd89))throw CliErrors[_0x250085(0x1f6)](_0x250085(0x1cb)+_0x5d91de);return console[_0x250085(0x1c8)](_0x250085(0x1ed)+_0x5d91de+'`'+(_0x3f7dc1===_0x250085(0x1d7)?'\x20(global)':'')),writeScopedConfig(_0x44be17,_0x2c147b),{'ok':!![]};}if(_0x44be17[_0x5d91de]===undefined)throw CliErrors[_0x250085(0x1f6)](_0x250085(0x1c3)+_0x5d91de+_0x250085(0x1cc));return delete _0x44be17[_0x5d91de],console['log'](_0x250085(0x1ed)+_0x5d91de+'`'+(_0x3f7dc1==='global'?'\x20(global)':'')),writeScopedConfig(_0x44be17,_0x2c147b),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4af75a,_0x4fba26){var _0x1521bf=a23_0x446a,_0x582ec2=_0x4af75a();while(!![]){try{var _0x44683e=parseInt(_0x1521bf(0x109))/0x1*(-parseInt(_0x1521bf(0x102))/0x2)+parseInt(_0x1521bf(0x101))/0x3+parseInt(_0x1521bf(0x103))/0x4*(parseInt(_0x1521bf(0x108))/0x5)+-parseInt(_0x1521bf(0x10b))/0x6*(-parseInt(_0x1521bf(0x10a))/0x7)+-parseInt(_0x1521bf(0x104))/0x8*(parseInt(_0x1521bf(0x106))/0x9)+-parseInt(_0x1521bf(0x105))/0xa+parseInt(_0x1521bf(0x107))/0xb*(parseInt(_0x1521bf(0x100))/0xc);if(_0x44683e===_0x4fba26)break;else _0x582ec2['push'](_0x582ec2['shift']());}catch(_0x48e523){_0x582ec2['push'](_0x582ec2['shift']());}}}(a23_0x20a5,0x486e2));import{CLI_BIN_NAME}from'../../constant/cli.js';function a23_0x446a(_0xf953c9,_0x50ba72){_0xf953c9=_0xf953c9-0x100;var _0x20a537=a23_0x20a5();var _0x446a5b=_0x20a537[_0xf953c9];return _0x446a5b;}function a23_0x20a5(){var _0x3f66fe=['11897glLptS','66031NqXSfF','126tzsPmp','684JEHqMt','585852HNFDDP','22iVdRAx','12ghQrTq','8KyLida','3020810FqBWbz','4112163haiFxY','138391bUedRq','126725AxrUIJ'];a23_0x20a5=function(){return _0x3f66fe;};return a23_0x20a5();}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_0x2dd630=a24_0x4d90;(function(_0x457287,_0x17a085){const _0x14de9a=a24_0x4d90,_0x2a16ee=_0x457287();while(!![]){try{const _0x585053=-parseInt(_0x14de9a(0xd5))/0x1*(parseInt(_0x14de9a(0xb1))/0x2)+-parseInt(_0x14de9a(0xe8))/0x3+parseInt(_0x14de9a(0xb4))/0x4*(parseInt(_0x14de9a(0xd0))/0x5)+parseInt(_0x14de9a(0xca))/0x6*(-parseInt(_0x14de9a(0xe9))/0x7)+-parseInt(_0x14de9a(0xc1))/0x8*(parseInt(_0x14de9a(0xf7))/0x9)+-parseInt(_0x14de9a(0xed))/0xa+parseInt(_0x14de9a(0xe1))/0xb;if(_0x585053===_0x17a085)break;else _0x2a16ee['push'](_0x2a16ee['shift']());}catch(_0x2c857f){_0x2a16ee['push'](_0x2a16ee['shift']());}}}(a24_0x482c,0x9d0cd));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a24_0x4d90(_0x155ad4,_0x50a9b2){_0x155ad4=_0x155ad4-0xb1;const _0x482c76=a24_0x482c();let _0x4d90e5=_0x482c76[_0x155ad4];return _0x4d90e5;}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_0x2dd630(0xe0),'operation':a24_0x2dd630(0xe0),'risk':'read','paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20'+a24_0x2dd630(0x100),'helpExtra':['\x20\x20WHERE\x20OPERATORS',a24_0x2dd630(0xda),'\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}}','\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_0x2dd630(0xcf),a24_0x2dd630(0xc4),a24_0x2dd630(0xf0),a24_0x2dd630(0xdc),a24_0x2dd630(0xf9),a24_0x2dd630(0xd8),a24_0x2dd630(0xf3),'',a24_0x2dd630(0xf2),a24_0x2dd630(0xce),'\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_0x2dd630(0xc5),a24_0x2dd630(0xcd),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]',a24_0x2dd630(0xdd),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a24_0x2dd630(0xfe),a24_0x2dd630(0xf5),a24_0x2dd630(0xdb),a24_0x2dd630(0xd4)]['join']('\x0a')},{'command':a24_0x2dd630(0xc2),'operation':a24_0x2dd630(0xc2),'risk':a24_0x2dd630(0xec),'paramsRequired':!![],'description':a24_0x2dd630(0xe7),'paramsHint':a24_0x2dd630(0xc8)},{'command':a24_0x2dd630(0xf1),'operation':a24_0x2dd630(0xf1),'risk':a24_0x2dd630(0x108),'paramsRequired':!![],'description':a24_0x2dd630(0xe6),'paramsHint':a24_0x2dd630(0x101)},{'command':'batchCreate','operation':'batchCreate','risk':'write','paramsRequired':!![],'description':'Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','paramsHint':a24_0x2dd630(0xbc)},{'command':'update','operation':'update','risk':a24_0x2dd630(0x108),'paramsRequired':!![],'description':a24_0x2dd630(0xe2),'paramsHint':a24_0x2dd630(0xc0)+a24_0x2dd630(0xfd)},{'command':a24_0x2dd630(0x103),'operation':a24_0x2dd630(0x103),'risk':'high-risk-write','paramsRequired':!![],'description':a24_0x2dd630(0xd2),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a24_0x2dd630(0xd3),'operation':a24_0x2dd630(0xd3),'risk':'read','paramsRequired':![],'description':a24_0x2dd630(0xc6),'paramsHint':a24_0x2dd630(0x104)+a24_0x2dd630(0xb7),'helpExtra':['\x20\x20AGGREGATE\x20TYPES','\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}',a24_0x2dd630(0xe4),a24_0x2dd630(0xb9),a24_0x2dd630(0xc9),'\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}',a24_0x2dd630(0xd7),'',a24_0x2dd630(0xbb),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a24_0x2dd630(0xf4),a24_0x2dd630(0xeb),a24_0x2dd630(0xff),a24_0x2dd630(0xf8),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','',a24_0x2dd630(0x106),a24_0x2dd630(0xcc),a24_0x2dd630(0xd1),'',a24_0x2dd630(0xea),a24_0x2dd630(0x105),'',a24_0x2dd630(0xbf)][a24_0x2dd630(0xfa)]('\x0a')}];function makeDataCommand(_0x11b636){const _0x55964d=a24_0x2dd630,_0x2b2f49=_0x55964d(0xd9)+_0x11b636[_0x55964d(0xfb)],_0x4842f6={'service':'data','command':_0x11b636['command'],'description':_0x11b636[_0x55964d(0xfc)],'risk':_0x11b636[_0x55964d(0x107)],'helpExtra':_0x11b636[_0x55964d(0xb5)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x11b636[_0x55964d(0xba)]}],'validate':async _0x2ef489=>{const _0x16d9aa=_0x55964d;_0x11b636[_0x16d9aa(0xdf)]&&requireAnyOf(_0x2ef489,['params'],_0x2b2f49),_0x11b636[_0x16d9aa(0xd6)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2ef489[_0x16d9aa(0xe3)](_0x16d9aa(0x102)))),_0x11b636[_0x16d9aa(0xd6)]===_0x16d9aa(0xe5)&&parseUpdateIdsFromParams(parseJsonParams(_0x2ef489[_0x16d9aa(0xe3)](_0x16d9aa(0x102)))??{});},async 'execute'(_0x5f0db4){const _0xd84c0d=_0x55964d,_0x1e3c2c=_0x5f0db4['str'](_0xd84c0d(0xbd)),_0x5c6682=_0x11b636['operation']===_0xd84c0d(0xb6)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5f0db4[_0xd84c0d(0xe3)]('params'))):parseJsonParams(_0x5f0db4[_0xd84c0d(0xe3)]('params'))??{},_0x1f0460=_0x11b636[_0xd84c0d(0xd6)]==='update'?parseUpdateIdsFromParams(_0x5c6682):undefined,_0x792ddc=_0x1f0460?normalizeUpdateParamsForRuntime(_0x5c6682,_0x1f0460):_0x5c6682,_0x212edb=Date['now'](),_0x36971f=await executeData(_0x1e3c2c,_0x11b636['operation'],_0x792ddc),_0x35d2d8=Date[_0xd84c0d(0xf6)]()-_0x212edb,_0x22d208=_0x1f0460&&_0x1f0460[_0xd84c0d(0xde)]>0x1?buildBatchUpdateResult(_0x1f0460,_0x36971f):_0x36971f;return{'ok':!![],'data':{'result':_0x22d208,'elapsed':_0x35d2d8},'message':'data\x20'+_0x11b636[_0xd84c0d(0xfb)]+_0xd84c0d(0xc3)+_0x35d2d8+'ms'};}};return _0x11b636[_0x55964d(0x107)]!==_0x55964d(0xec)&&(_0x4842f6[_0x55964d(0xee)]=async _0x13e259=>{const _0x3eb811=_0x55964d,_0xbe8f1d=_0x13e259[_0x3eb811(0xe3)](_0x3eb811(0xbd)),_0x54cdd9=_0x11b636[_0x3eb811(0xd6)]===_0x3eb811(0xb6)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x13e259[_0x3eb811(0xe3)](_0x3eb811(0x102)))):parseJsonParams(_0x13e259[_0x3eb811(0xe3)](_0x3eb811(0x102)))??{};let _0x3a2250=_0x54cdd9;if(_0x11b636[_0x3eb811(0xd6)]==='update'){const _0x50bf28=parseUpdateIdsFromParams(_0x54cdd9);_0x3a2250=normalizeUpdateParamsForRuntime(_0x54cdd9,_0x50bf28);}return dryRun(_0x3eb811(0xb2),'/api/{appCode}/'+_0xbe8f1d+'/'+_0x11b636[_0x3eb811(0xd6)])[_0x3eb811(0xcb)](_0x3a2250)[_0x3eb811(0xfc)](_0x3eb811(0xc7)+_0x11b636['command']+_0x3eb811(0xbe)+_0xbe8f1d)[_0x3eb811(0xb3)]();}),_0x4842f6;}function a24_0x482c(){const _0x1faeab=['length','paramsRequired','filter','37872131hhdOkg','Update\x20an\x20existing\x20record','str','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','update','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','Get\x20a\x20single\x20record\x20by\x20ID','2805072bexxKf','14RNxdSQ','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','read','10117700qHGDbb','dryRun','batch','\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}}','create','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','now','14679NVNVyp','\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}}','join','command','description','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','\x20\x20PAGINATION','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','params','delete','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\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','risk','write','13958UFzccY','POST','build','4QXNlXj','helpExtra','batchCreate','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','map','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','paramsHint','\x20\x20PARAMS\x20STRUCTURE','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','code','\x20on\x20dataset\x20','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','1456TsoQHf','getOne','\x20completed\x20in\x20','\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\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','Preview:\x20data\x20','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\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}','883020VHSmSg','body','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\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$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$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','2495215WHXHCq','\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','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','aggregate','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','109lAESEd','operation','\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\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}}','data\x20','\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\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\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\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]'];a24_0x482c=function(){return _0x1faeab;};return a24_0x482c();}export const dataDefinitions=specs[a24_0x2dd630(0xb8)](makeDataCommand);function buildBatchUpdateResult(_0x2c6e93,_0x40003e){const _0x26c60f=a24_0x2dd630;return{'operation':'update','mode':_0x26c60f(0xef),'ids':_0x2c6e93,'total':_0x2c6e93[_0x26c60f(0xde)],'result':_0x40003e};}
|
|
1
|
+
const a24_0x164b7f=a24_0x201b;(function(_0x159414,_0x5aa905){const _0x236c7d=a24_0x201b,_0x26582b=_0x159414();while(!![]){try{const _0x583b85=parseInt(_0x236c7d(0x166))/0x1*(parseInt(_0x236c7d(0x142))/0x2)+-parseInt(_0x236c7d(0x16e))/0x3+-parseInt(_0x236c7d(0x13a))/0x4+-parseInt(_0x236c7d(0x149))/0x5+parseInt(_0x236c7d(0x124))/0x6+parseInt(_0x236c7d(0x15c))/0x7*(-parseInt(_0x236c7d(0x150))/0x8)+parseInt(_0x236c7d(0x139))/0x9;if(_0x583b85===_0x5aa905)break;else _0x26582b['push'](_0x26582b['shift']());}catch(_0x393004){_0x26582b['push'](_0x26582b['shift']());}}}(a24_0x4c9a,0x4ee6b));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';function a24_0x4c9a(){const _0x4fa632=['risk','delete','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','read','params','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20$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}}]}','293wpzdau','Preview:\x20data\x20','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','batch','\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}}]}','str','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\x20\x20PAGINATION','1131624VJMXEL','create','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\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\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\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]}}','paramsRequired','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20PARAMS\x20STRUCTURE','3620472fspDoh','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','\x20\x20\x20\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}}','\x20completed\x20in\x20','build','\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\x20LOGICAL\x20COMBINATORS','\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}','helpExtra','update','now','code','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\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$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}}','Update\x20an\x20existing\x20record','6107382ClTnXY','605172cwpLxf','\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}','POST','getOne','\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}}','/api/{appCode}/','write','batchCreate','520vGoDiI','join','\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','Get\x20a\x20single\x20record\x20by\x20ID','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20EXAMPLES','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','919250cKkHEp','data','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\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}}','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','520EMVjhv','\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}}','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\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}','dryRun','operation','paramsHint','data\x20','\x20on\x20dataset\x20','aggregate','command','high-risk-write','34748GqXFxi','description'];a24_0x4c9a=function(){return _0x4fa632;};return a24_0x4c9a();}const specs=[{'command':'filter','operation':'filter','risk':a24_0x164b7f(0x161),'paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a24_0x164b7f(0x131)+a24_0x164b7f(0x14c),'helpExtra':['\x20\x20WHERE\x20OPERATORS','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}',a24_0x164b7f(0x137),'\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_0x164b7f(0x13e),'\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_0x164b7f(0x127),a24_0x164b7f(0x173),a24_0x164b7f(0x151),a24_0x164b7f(0x163),a24_0x164b7f(0x14e),'',a24_0x164b7f(0x12b),a24_0x164b7f(0x16a),a24_0x164b7f(0x165),'',a24_0x164b7f(0x122),a24_0x164b7f(0x120),a24_0x164b7f(0x12a),a24_0x164b7f(0x126),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)',a24_0x164b7f(0x148),'',a24_0x164b7f(0x16d),'\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.',a24_0x164b7f(0x16c),a24_0x164b7f(0x134)][a24_0x164b7f(0x143)]('\x0a')},{'command':a24_0x164b7f(0x13d),'operation':a24_0x164b7f(0x13d),'risk':'read','paramsRequired':!![],'description':a24_0x164b7f(0x145),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a24_0x164b7f(0x16f),'operation':'create','risk':a24_0x164b7f(0x140),'paramsRequired':!![],'description':a24_0x164b7f(0x135),'paramsHint':a24_0x164b7f(0x14f)},{'command':'batchCreate','operation':a24_0x164b7f(0x141),'risk':a24_0x164b7f(0x140),'paramsRequired':!![],'description':'Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','paramsHint':a24_0x164b7f(0x133)},{'command':'update','operation':a24_0x164b7f(0x12e),'risk':'write','paramsRequired':!![],'description':a24_0x164b7f(0x138),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20'+'Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27'},{'command':a24_0x164b7f(0x15f),'operation':'delete','risk':a24_0x164b7f(0x15b),'paramsRequired':!![],'description':'Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','paramsHint':a24_0x164b7f(0x121)},{'command':a24_0x164b7f(0x159),'operation':a24_0x164b7f(0x159),'risk':'read','paramsRequired':![],'description':a24_0x164b7f(0x170),'paramsHint':a24_0x164b7f(0x152)+a24_0x164b7f(0x164),'helpExtra':['\x20\x20AGGREGATE\x20TYPES',a24_0x164b7f(0x12c),'\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_0x164b7f(0x171),a24_0x164b7f(0x153),a24_0x164b7f(0x168),a24_0x164b7f(0x132),a24_0x164b7f(0x13b),'',a24_0x164b7f(0x123),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a24_0x164b7f(0x14b),a24_0x164b7f(0x14d),a24_0x164b7f(0x146),a24_0x164b7f(0x136),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','',a24_0x164b7f(0x147),a24_0x164b7f(0x172),a24_0x164b7f(0x144),'',a24_0x164b7f(0x125),'\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','',a24_0x164b7f(0x160)][a24_0x164b7f(0x143)]('\x0a')}];function makeDataCommand(_0x4dd5fa){const _0x3a9815=a24_0x164b7f,_0x5a4547='data\x20'+_0x4dd5fa[_0x3a9815(0x15a)],_0x13897f={'service':_0x3a9815(0x14a),'command':_0x4dd5fa[_0x3a9815(0x15a)],'description':_0x4dd5fa[_0x3a9815(0x15d)],'risk':_0x4dd5fa[_0x3a9815(0x15e)],'helpExtra':_0x4dd5fa[_0x3a9815(0x12d)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x4dd5fa[_0x3a9815(0x156)]}],'validate':async _0x58dade=>{const _0x13c9f4=_0x3a9815;_0x4dd5fa[_0x13c9f4(0x11f)]&&requireAnyOf(_0x58dade,[_0x13c9f4(0x162)],_0x5a4547),_0x4dd5fa[_0x13c9f4(0x155)]===_0x13c9f4(0x141)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x58dade[_0x13c9f4(0x16b)]('params'))),_0x4dd5fa[_0x13c9f4(0x155)]==='update'&&parseUpdateIdsFromParams(parseJsonParams(_0x58dade[_0x13c9f4(0x16b)]('params'))??{});},async 'execute'(_0x55d522){const _0x33f3e0=_0x3a9815,_0x2adc74=_0x55d522[_0x33f3e0(0x16b)]('code'),_0x4f1ecd=_0x4dd5fa[_0x33f3e0(0x155)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x55d522[_0x33f3e0(0x16b)](_0x33f3e0(0x162)))):parseJsonParams(_0x55d522[_0x33f3e0(0x16b)](_0x33f3e0(0x162)))??{},_0x2875bb=_0x4dd5fa['operation']===_0x33f3e0(0x12e)?parseUpdateIdsFromParams(_0x4f1ecd):undefined,_0x485060=_0x2875bb?normalizeUpdateParamsForRuntime(_0x4f1ecd,_0x2875bb):_0x4f1ecd,_0x2b836e=Date[_0x33f3e0(0x12f)](),_0x166330=await executeData(_0x2adc74,_0x4dd5fa[_0x33f3e0(0x155)],_0x485060),_0x572c54=Date[_0x33f3e0(0x12f)]()-_0x2b836e,_0x4ab3ff=_0x2875bb&&_0x2875bb['length']>0x1?buildBatchUpdateResult(_0x2875bb,_0x166330):_0x166330;return{'ok':!![],'data':{'result':_0x4ab3ff,'elapsed':_0x572c54},'message':_0x33f3e0(0x157)+_0x4dd5fa[_0x33f3e0(0x15a)]+_0x33f3e0(0x128)+_0x572c54+'ms'};}};return _0x4dd5fa[_0x3a9815(0x15e)]!==_0x3a9815(0x161)&&(_0x13897f[_0x3a9815(0x154)]=async _0x48ba9d=>{const _0x39913c=_0x3a9815,_0x3182cb=_0x48ba9d[_0x39913c(0x16b)](_0x39913c(0x130)),_0x1b8d02=_0x4dd5fa[_0x39913c(0x155)]===_0x39913c(0x141)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x48ba9d['str'](_0x39913c(0x162)))):parseJsonParams(_0x48ba9d[_0x39913c(0x16b)](_0x39913c(0x162)))??{};let _0x312d2d=_0x1b8d02;if(_0x4dd5fa[_0x39913c(0x155)]===_0x39913c(0x12e)){const _0x5bd2d5=parseUpdateIdsFromParams(_0x1b8d02);_0x312d2d=normalizeUpdateParamsForRuntime(_0x1b8d02,_0x5bd2d5);}return dryRun(_0x39913c(0x13c),_0x39913c(0x13f)+_0x3182cb+'/'+_0x4dd5fa[_0x39913c(0x155)])['body'](_0x312d2d)[_0x39913c(0x15d)](_0x39913c(0x167)+_0x4dd5fa[_0x39913c(0x15a)]+_0x39913c(0x158)+_0x3182cb)[_0x39913c(0x129)]();}),_0x13897f;}export const dataDefinitions=specs['map'](makeDataCommand);function a24_0x201b(_0x4dd289,_0xe1e241){_0x4dd289=_0x4dd289-0x11f;const _0x4c9a45=a24_0x4c9a();let _0x201bf3=_0x4c9a45[_0x4dd289];return _0x201bf3;}function buildBatchUpdateResult(_0x3275b4,_0x2b0ad9){const _0x186264=a24_0x164b7f;return{'operation':_0x186264(0x12e),'mode':_0x186264(0x169),'ids':_0x3275b4,'total':_0x3275b4['length'],'result':_0x2b0ad9};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a25_0x1a9b(_0x49fe65,_0x482ece){_0x49fe65=_0x49fe65-0x73;const _0x37a664=a25_0x37a6();let _0x1a9b2a=_0x37a664[_0x49fe65];return _0x1a9b2a;}const a25_0x275ae8=a25_0x1a9b;(function(_0x390708,_0x15a254){const _0x49dd54=a25_0x1a9b,_0x59fbd5=_0x390708();while(!![]){try{const _0x147033=-parseInt(_0x49dd54(0xb8))/0x1*(-parseInt(_0x49dd54(0xa7))/0x2)+-parseInt(_0x49dd54(0x7e))/0x3*(parseInt(_0x49dd54(0x8d))/0x4)+-parseInt(_0x49dd54(0xb4))/0x5+-parseInt(_0x49dd54(0x92))/0x6*(parseInt(_0x49dd54(0x98))/0x7)+parseInt(_0x49dd54(0x87))/0x8*(-parseInt(_0x49dd54(0xb1))/0x9)+-parseInt(_0x49dd54(0x8f))/0xa+parseInt(_0x49dd54(0x95))/0xb;if(_0x147033===_0x15a254)break;else _0x59fbd5['push'](_0x59fbd5['shift']());}catch(_0x2d7eb8){_0x59fbd5['push'](_0x59fbd5['shift']());}}}(a25_0x37a6,0x7135a));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x460e5a){const _0x266253=a25_0x1a9b;if(_0x460e5a['deleted'])return null;const _0xd74129=Boolean(_0x460e5a[_0x266253(0x7d)]!==undefined||_0x460e5a['doType']!==undefined);let _0x17cdc0={};if(!_0xd74129&&typeof _0x460e5a['extend']===_0x266253(0x97))try{_0x17cdc0=JSON[_0x266253(0x8c)](_0x460e5a[_0x266253(0x86)]);}catch{}const _0x50bdcd=_0xd74129?_0x460e5a[_0x266253(0x99)]:_0x460e5a[_0x266253(0x88)],_0x5ea511=_0xd74129?_0x460e5a[_0x266253(0x7d)]:_0x460e5a[_0x266253(0x99)],_0x177fef=_0xd74129?_0x460e5a[_0x266253(0xaa)]:_0x460e5a[_0x266253(0x81)]||_0x460e5a['dataType'],_0x478bc4=_0xd74129?_0x460e5a[_0x266253(0x93)]===!![]:_0x17cdc0[_0x266253(0x93)]===!![],_0x5971be=_0xd74129?_0x460e5a[_0x266253(0xa2)]===!![]:_0x17cdc0[_0x266253(0xa2)]===!![],_0x26a350=_0xd74129?_0x460e5a[_0x266253(0x7b)]??null:_0x17cdc0[_0x266253(0x7b)]??null,_0xbf58e9={'name':_0x50bdcd,'displayName':_0x5ea511||_0x50bdcd,'type':_0x177fef,'dbType':_0x460e5a['dbType'],'pk':_0x478bc4,'required':_0x5971be,'description':_0x460e5a[_0x266253(0x74)]||undefined};return Array['isArray'](_0x26a350)&&_0x26a350['length']>0x0&&(_0xbf58e9[_0x266253(0x7b)]=_0x26a350),_0xbf58e9;}function parseJsonMaybe(_0x35a3e3){const _0x1c4bb7=a25_0x1a9b;if(typeof _0x35a3e3!==_0x1c4bb7(0x97))return _0x35a3e3;try{return JSON['parse'](_0x35a3e3);}catch{return _0x35a3e3;}}function normalizeOperationEntry(_0xe3ac1c,_0x3c71a5){const _0x5c6c24=a25_0x1a9b;if(!_0x3c71a5||typeof _0x3c71a5!==_0x5c6c24(0xa8))return null;if(!_0x3c71a5['method']||!_0x3c71a5[_0x5c6c24(0x8b)])return null;const _0x4216a6={'name':_0xe3ac1c,'method':_0x3c71a5[_0x5c6c24(0x90)],'path':_0x3c71a5[_0x5c6c24(0x8b)]};if(_0x3c71a5['host'])_0x4216a6[_0x5c6c24(0xab)]=_0x3c71a5[_0x5c6c24(0xab)];if(_0x3c71a5[_0x5c6c24(0xbc)]!=null)_0x4216a6[_0x5c6c24(0xbc)]=parseJsonMaybe(_0x3c71a5[_0x5c6c24(0xbc)]);if(_0x3c71a5['responseBody']!=null)_0x4216a6[_0x5c6c24(0x8e)]=parseJsonMaybe(_0x3c71a5['responseBody']);if(_0x3c71a5[_0x5c6c24(0xb3)]!=null)_0x4216a6[_0x5c6c24(0xb3)]=_0x3c71a5[_0x5c6c24(0xb3)];if(_0x3c71a5[_0x5c6c24(0x76)]!=null)_0x4216a6['afterScriptId']=_0x3c71a5[_0x5c6c24(0x76)];if(Array[_0x5c6c24(0x8a)](_0x3c71a5['requestFields']))_0x4216a6[_0x5c6c24(0xac)]=_0x3c71a5[_0x5c6c24(0xac)];if(Array[_0x5c6c24(0x8a)](_0x3c71a5['responseFields']))_0x4216a6['responseFields']=_0x3c71a5[_0x5c6c24(0xa3)];return _0x4216a6;}function summarizeDbtable(_0x392fee){const _0x57c998=a25_0x1a9b,_0x9a8c2f={},_0x1fbde4=[_0x57c998(0xbd),_0x57c998(0x84),_0x57c998(0x73),_0x57c998(0x9b),'pkField',_0x57c998(0xbb),_0x57c998(0x9d),'createTimeField',_0x57c998(0xa6),'creatorIdField',_0x57c998(0x82),_0x57c998(0x78),_0x57c998(0xb5),_0x57c998(0x96),'dblinkInfoDTO'];for(const _0x2474f1 of _0x1fbde4){if(_0x392fee[_0x2474f1]!==undefined)_0x9a8c2f[_0x2474f1]=_0x392fee[_0x2474f1];}return typeof _0x9a8c2f[_0x57c998(0xbb)]===_0x57c998(0x97)&&_0x9a8c2f[_0x57c998(0xbb)][_0x57c998(0xb9)]>0x0&&(_0x9a8c2f[_0x57c998(0xb7)]=_0x9a8c2f[_0x57c998(0xbb)]['split'](',')[_0x57c998(0xa0)](_0x3c19c8=>_0x3c19c8[_0x57c998(0xaf)]())[_0x57c998(0xae)](Boolean)),_0x9a8c2f;}function normalizeRelatedPages(_0x87297b){const _0x362ad0=a25_0x1a9b;if(!Array['isArray'](_0x87297b))return[];return _0x87297b[_0x362ad0(0xae)](_0x5f3d3d=>_0x5f3d3d&&typeof _0x5f3d3d===_0x362ad0(0xa8))[_0x362ad0(0xa0)](_0x4fc31e=>({'id':_0x4fc31e['id'],'type':_0x4fc31e['type'],'code':_0x4fc31e[_0x362ad0(0x88)],'title':_0x4fc31e[_0x362ad0(0x85)],'deleted':_0x4fc31e[_0x362ad0(0x9f)]===!![]}));}function a25_0x37a6(){const _0x287c0f=['push','required','responseFields','tableComment','relations','updateTimeField','311948fnRdCD','object','formatRules','doType','host','requestFields','source','filter','trim','fields','318879knULXx','find','beforeScriptId','61120vsPoYb','modifierNameField','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','allFieldNames','1zpCqQo','length','doVersion','allFields','requestBody','dbId','validateRules','tableName','description','read','afterScriptId','modelCode','modifierIdField','detail','sourceType','options','properties','displayName','8679FYlnNI','relatedPageInfoList','dataset','type','creatorNameField','dbtableConfig','dbName','title','extend','112TCzMhH','code','columnCodeListWithDeleted','isArray','path','parse','1004dwpPxq','responseBody','4753880itqGme','method','operations','6xAGVhd','pkField','indexes','31568075oNHZna','labelField','string','5966128griPHb','name','entries','datasetKey','split','logicField','str','deleted','map'];a25_0x37a6=function(){return _0x287c0f;};return a25_0x37a6();}function normalizeFallbackFieldName(_0xf5cf6b,_0xbd90b2){const _0x5d28bb=_0xf5cf6b['trim']();if(!_0x5d28bb)return null;return{'name':_0x5d28bb,'displayName':_0x5d28bb,'type':undefined,'dbType':undefined,'pk':_0x5d28bb===_0xbd90b2,'required':![],'description':undefined};}async function loadListFieldFallback(_0x30a5b9,_0x204426){const _0x31f56e=a25_0x1a9b;if(!_0x30a5b9||!_0x204426)return[];try{const _0x250f6d=await listDatasets(_0x30a5b9,{'code':_0x204426}),_0x1673dc=_0x250f6d[_0x31f56e(0xb2)](_0x2d7c1e=>_0x2d7c1e['code']===_0x204426)??_0x250f6d[0x0],_0x3f5c43=_0x1673dc?.['dbtableConfig']??{},_0x29f4de=typeof _0x3f5c43[_0x31f56e(0xbb)]===_0x31f56e(0x97)?_0x3f5c43[_0x31f56e(0xbb)][_0x31f56e(0x9c)](','):[];return _0x29f4de[_0x31f56e(0xa0)](_0x50b71d=>normalizeFallbackFieldName(_0x50b71d,_0x3f5c43[_0x31f56e(0x93)]))[_0x31f56e(0xae)](_0x177ab6=>_0x177ab6!==null);}catch{return[];}}export const datasetDetail={'service':'dataset','command':a25_0x275ae8(0x79),'description':a25_0x275ae8(0xb6),'risk':a25_0x275ae8(0x75),'flags':[CODE_FLAG],async 'execute'(_0x5dfe4a){const _0x37ef73=a25_0x275ae8,_0x4f0912=await getDatasetDetail(_0x5dfe4a[_0x37ef73(0x9e)](_0x37ef73(0x88))),_0x6cef4=Array['isArray'](_0x4f0912[_0x37ef73(0xb0)])?_0x4f0912[_0x37ef73(0xb0)]:Array[_0x37ef73(0x8a)](_0x4f0912[_0x37ef73(0x7c)])?_0x4f0912['properties']:[];let _0x45bd4e=_0x6cef4[_0x37ef73(0xa0)](_0x31cccb=>normalizeField(_0x31cccb))[_0x37ef73(0xae)](_0x530523=>_0x530523!==null);_0x45bd4e[_0x37ef73(0xb9)]===0x0&&(_0x45bd4e=await loadListFieldFallback(_0x5dfe4a['appCode'],_0x5dfe4a[_0x37ef73(0x9e)](_0x37ef73(0x88))));const _0xe44959=_0x4f0912[_0x37ef73(0x91)]??{},_0x2040a0=[];for(const [_0x2d1580,_0x39f0b5]of Object[_0x37ef73(0x9a)](_0xe44959)){const _0x5d830e=normalizeOperationEntry(_0x2d1580,_0x39f0b5);if(_0x5d830e)_0x2040a0[_0x37ef73(0xa1)](_0x5d830e);}const _0x5b95ae=_0x4f0912[_0x37ef73(0x83)]??{},_0x41adb1=_0x4f0912[_0x37ef73(0x80)]??{},_0x2e1b48=_0x5b95ae[_0x37ef73(0xbd)]!=null?{'id':_0x5b95ae[_0x37ef73(0xbd)],'name':_0x5b95ae[_0x37ef73(0x84)]??null}:undefined;let _0x21ea6d;return typeof _0x4f0912[_0x37ef73(0x86)]===_0x37ef73(0x97)&&(_0x21ea6d=parseJsonMaybe(_0x4f0912[_0x37ef73(0x86)])),{'ok':!![],'data':{'id':_0x4f0912['modelId']??_0x4f0912['id'],'name':_0x4f0912[_0x37ef73(0x99)],'code':_0x4f0912[_0x37ef73(0x77)]||_0x4f0912[_0x37ef73(0x88)],'doVersion':_0x4f0912[_0x37ef73(0xba)],'description':_0x4f0912[_0x37ef73(0x74)]||_0x41adb1[_0x37ef73(0xa4)]||undefined,'source':_0x4f0912[_0x37ef73(0xad)]||_0x41adb1[_0x37ef73(0x7a)],'table':_0x5b95ae[_0x37ef73(0x73)]||_0x41adb1['tableName'],'datasetKey':_0x5b95ae[_0x37ef73(0x9b)],'pk':_0x5b95ae[_0x37ef73(0x93)],'db':_0x2e1b48,'dbtable':summarizeDbtable(_0x5b95ae),'fields':_0x45bd4e,'operations':_0x2040a0,'indexes':Array[_0x37ef73(0x8a)](_0x41adb1[_0x37ef73(0x94)])?_0x41adb1[_0x37ef73(0x94)]:[],'relations':_0x4f0912[_0x37ef73(0xa5)]??null,'relatedPages':normalizeRelatedPages(_0x4f0912[_0x37ef73(0x7f)]),...Array[_0x37ef73(0x8a)](_0x4f0912[_0x37ef73(0x89)])?{'columnCodeListWithDeleted':_0x4f0912['columnCodeListWithDeleted']}:{},'formatRules':Array[_0x37ef73(0x8a)](_0x4f0912[_0x37ef73(0xa9)])?_0x4f0912[_0x37ef73(0xa9)]:[],'validateRules':Array[_0x37ef73(0x8a)](_0x4f0912[_0x37ef73(0xbe)])?_0x4f0912[_0x37ef73(0xbe)]:[],..._0x21ea6d!==undefined?{'extend':_0x21ea6d}:{},'stats':{'fieldCount':_0x45bd4e['length'],'operationCount':_0x2040a0[_0x37ef73(0xb9)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x559da2,_0x7dfa37){const _0x33072f=a26_0x385f,_0x19812a=_0x559da2();while(!![]){try{const _0x98943c=-parseInt(_0x33072f(0x192))/0x1*(parseInt(_0x33072f(0x191))/0x2)+parseInt(_0x33072f(0x190))/0x3*(parseInt(_0x33072f(0x196))/0x4)+-parseInt(_0x33072f(0x194))/0x5*(-parseInt(_0x33072f(0x18f))/0x6)+parseInt(_0x33072f(0x18a))/0x7*(parseInt(_0x33072f(0x18b))/0x8)+parseInt(_0x33072f(0x18c))/0x9*(-parseInt(_0x33072f(0x18e))/0xa)+-parseInt(_0x33072f(0x18d))/0xb*(-parseInt(_0x33072f(0x195))/0xc)+parseInt(_0x33072f(0x193))/0xd*(parseInt(_0x33072f(0x197))/0xe);if(_0x98943c===_0x7dfa37)break;else _0x19812a['push'](_0x19812a['shift']());}catch(_0x1309fa){_0x19812a['push'](_0x19812a['shift']());}}}(a26_0x49d0,0x26782));import{datasetList}from'../../commands/dataset/list.js';function a26_0x49d0(){const _0x44d1d6=['186KeBdcS','377054uGqGBr','1dXwAoZ','52zSidIc','522555BeaiSk','11112GFEuRn','3628YvLktZ','15834DtYzhL','161aXhkPc','60144TRRIgc','576iZOTOQ','1001dYqkPb','11930ZUOQLf','6sWRNxG'];a26_0x49d0=function(){return _0x44d1d6;};return a26_0x49d0();}import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a26_0x385f(_0x5d8065,_0x57f921){_0x5d8065=_0x5d8065-0x18a;const _0x49d04b=a26_0x49d0();let _0x385fef=_0x49d04b[_0x5d8065];return _0x385fef;}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a27_0x1ee204=a27_0x4e1d;(function(_0x2ee549,_0xf71bb0){const _0x312063=a27_0x4e1d,_0x56a8f4=_0x2ee549();while(!![]){try{const _0x48c5d9=parseInt(_0x312063(0x1d0))/0x1*(parseInt(_0x312063(0x1cc))/0x2)+parseInt(_0x312063(0x1da))/0x3*(-parseInt(_0x312063(0x1d9))/0x4)+-parseInt(_0x312063(0x1dd))/0x5*(-parseInt(_0x312063(0x1d6))/0x6)+-parseInt(_0x312063(0x1cd))/0x7*(-parseInt(_0x312063(0x1cf))/0x8)+-parseInt(_0x312063(0x1de))/0x9+parseInt(_0x312063(0x1ce))/0xa+parseInt(_0x312063(0x1e1))/0xb;if(_0x48c5d9===_0xf71bb0)break;else _0x56a8f4['push'](_0x56a8f4['shift']());}catch(_0x2ddcb2){_0x56a8f4['push'](_0x56a8f4['shift']());}}}(a27_0x3ef6,0xb60ed));function a27_0x4e1d(_0x5c2a3a,_0x183c5b){_0x5c2a3a=_0x5c2a3a-0x1ca;const _0x3ef61d=a27_0x3ef6();let _0x4e1d73=_0x3ef61d[_0x5c2a3a];return _0x4e1d73;}function a27_0x3ef6(){const _0x2c0d5d=['182AqsuSe','5839130wERZmd','249976EIpUou','12Tmxgxv','str','code','map','appCode','trim','6dwbqSb','description','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','1012JhevBn','12714iZdWZO','name','allFields','783290zDsFyr','4304583UXzYIt','dataset','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','6147735txSUMy','split','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','pkField','30722ECztJM'];a27_0x3ef6=function(){return _0x2c0d5d;};return a27_0x3ef6();}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a27_0x1ee204(0x1df),'command':'list','description':a27_0x1ee204(0x1ca),'risk':'read','flags':[{'name':'name','type':'string','description':a27_0x1ee204(0x1e0)},{...CODE_FLAG,'required':![],'description':a27_0x1ee204(0x1d8)}],async 'execute'(_0x4c3ee1){const _0x3411bc=a27_0x1ee204,_0x1a6898=_0x4c3ee1[_0x3411bc(0x1d1)](_0x3411bc(0x1db)),_0x52e442=_0x4c3ee1[_0x3411bc(0x1d1)](_0x3411bc(0x1d2)),_0xe3e608=await listDatasets(_0x4c3ee1[_0x3411bc(0x1d4)],{..._0x1a6898&&{'name':_0x1a6898},..._0x52e442&&{'code':_0x52e442}});return{'ok':!![],'data':{'total':_0xe3e608['length'],'datasets':_0xe3e608[_0x3411bc(0x1d3)](_0x106feb=>{const _0x1cfd37=_0x3411bc,_0x235feb=_0x106feb['dbtableConfig']??{};return{'id':_0x106feb['id'],'code':_0x106feb[_0x1cfd37(0x1d2)],'name':_0x106feb[_0x1cfd37(0x1db)],'source':_0x106feb['source'],'description':_0x106feb[_0x1cfd37(0x1d7)],'table':_0x235feb['tableName'],'datasetKey':_0x235feb['datasetKey'],'pk':_0x235feb[_0x1cfd37(0x1cb)],'fields':_0x235feb[_0x1cfd37(0x1dc)]?_0x235feb[_0x1cfd37(0x1dc)][_0x1cfd37(0x1e2)](',')[_0x1cfd37(0x1d3)](_0x33c0df=>_0x33c0df[_0x1cfd37(0x1d5)]()):[]};})}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a28_0x4adfd6=a28_0x21bf;(function(_0x1d0508,_0xb00b87){const _0x272b86=a28_0x21bf,_0x64a399=_0x1d0508();while(!![]){try{const _0x11812d=parseInt(_0x272b86(0xa3))/0x1+-parseInt(_0x272b86(0xb2))/0x2+parseInt(_0x272b86(0xb0))/0x3+parseInt(_0x272b86(0xa6))/0x4+parseInt(_0x272b86(0xa2))/0x5*(parseInt(_0x272b86(0xb3))/0x6)+parseInt(_0x272b86(0xac))/0x7*(-parseInt(_0x272b86(0xa4))/0x8)+-parseInt(_0x272b86(0xa8))/0x9;if(_0x11812d===_0xb00b87)break;else _0x64a399['push'](_0x64a399['shift']());}catch(_0x15d187){_0x64a399['push'](_0x64a399['shift']());}}}(a28_0x2586,0x661f4));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a28_0x2586(){const _0x43c760=['21357MftDyD','string','sdk-doc','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','518355vyNZLH','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','725056iwBGvO','6ARiDTQ','2273675HBuclv','111031FbZXel','824PZIBGy','str','1868904dXRroY','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','996336iWqyzj','code','appCode','read'];a28_0x2586=function(){return _0x43c760;};return a28_0x2586();}const DEFAULT_MARKDOWN=a28_0x4adfd6(0xa7);function a28_0x21bf(_0x2b10b9,_0x34e3c8){_0x2b10b9=_0x2b10b9-0xa2;const _0x258672=a28_0x2586();let _0x21bf00=_0x258672[_0x2b10b9];return _0x21bf00;}export function formatDatasetSdkMarkdown(_0x3b3d4e){const _0x13932d=a28_0x4adfd6,_0x28e186=typeof _0x3b3d4e===_0x13932d(0xad)?_0x3b3d4e['trim']():'';return _0x28e186||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':'dataset','command':a28_0x4adfd6(0xae),'description':a28_0x4adfd6(0xb1),'risk':a28_0x4adfd6(0xab),'flags':[{...CODE_FLAG,'description':a28_0x4adfd6(0xaf)}],async 'execute'(_0x2faf90){const _0x29a786=a28_0x4adfd6,_0x72a5cd=_0x2faf90[_0x29a786(0xa5)](_0x29a786(0xa9)),_0xe20321=await getDatasetSdkUsageDoc(_0x72a5cd,_0x2faf90[_0x29a786(0xaa)]);return{'ok':!![],'data':{'code':_0x72a5cd,'appCode':_0x2faf90[_0x29a786(0xaa)],'markdown':formatDatasetSdkMarkdown(_0xe20321)}};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0x5ade74=a29_0x281d;(function(_0x2e4d31,_0x48c9b8){const _0x34d957=a29_0x281d,_0x6cf0e9=_0x2e4d31();while(!![]){try{const _0x19c383=-parseInt(_0x34d957(0xc6))/0x1+-parseInt(_0x34d957(0xb2))/0x2+-parseInt(_0x34d957(0xc8))/0x3*(-parseInt(_0x34d957(0xf3))/0x4)+-parseInt(_0x34d957(0xd4))/0x5+-parseInt(_0x34d957(0xc3))/0x6+-parseInt(_0x34d957(0xb9))/0x7*(-parseInt(_0x34d957(0xc2))/0x8)+parseInt(_0x34d957(0xc7))/0x9*(parseInt(_0x34d957(0xcb))/0xa);if(_0x19c383===_0x48c9b8)break;else _0x6cf0e9['push'](_0x6cf0e9['shift']());}catch(_0x3b3c8a){_0x6cf0e9['push'](_0x6cf0e9['shift']());}}}(a29_0x4923,0xa314a));import a29_0x5108a4 from'chalk';function a29_0x4923(){const _0x3b76c8=['\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','\x20\x20Service\x20Tree','platform','format','\x20\x20Auth','\x20\x20Session\x20check:\x20\x20\x20','ClientAk','message','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','yellow','516752FOEoMJ','doctor','(none)','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','version','repeat','2142igWNhR','locale','verbose','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid','Project','\x20\x20─','arch','serviceCount','13352sgLLCr','2300292ecNrSG','pageSize','⚠\x20Empty','634073CteEDP','155403yFrevH','137337oYQIql','padEnd','green','830mURgDq','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','1602595IoYmuo','(default)','\x20doctor','bold','Global','missing','Diagnose\x20CLI\x20configuration\x20and\x20environment','(missing)','env','serviceCode','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','(unnamed)','source','accessKey','commandCount','\x20\x20Merged\x20Config','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','name','path','gray','\x20(legacy/compat\x20only)','log','\x20commands)','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','read','(default:\x20','empty','✓\x20Loaded','riskLevel','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','appCode','28mmZBHB','(removed\x20—\x20cookie\x20auth\x20disabled)','(no\x20file)','(not\x20found)','red','\x20(accessKey)','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','services','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','currentApp'];a29_0x4923=function(){return _0x3b76c8;};return a29_0x4923();}import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';function a29_0x281d(_0x2cb5ae,_0x265b25){_0x2cb5ae=_0x2cb5ae-0xa6;const _0x492377=a29_0x4923();let _0x281d2b=_0x492377[_0x2cb5ae];return _0x281d2b;}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(_0x18249c){const _0x1de272=a29_0x281d,_0x5ad873=getCliVersion(),_0x54e345=buildConfigFromFlags({});await initGlobalEnvironment(_0x54e345),console[_0x1de272(0xe9)](),console['log'](a29_0x5108a4[_0x1de272(0xd7)](CLI_BIN_NAME+_0x1de272(0xd6))),console[_0x1de272(0xe9)](a29_0x5108a4[_0x1de272(0xe7)]('─'[_0x1de272(0xb8)](0x32))),console[_0x1de272(0xe9)](_0x1de272(0xf1)+_0x5ad873),console[_0x1de272(0xe9)](_0x1de272(0xd2)+process[_0x1de272(0xb7)]),console[_0x1de272(0xe9)](_0x1de272(0xe4)+process[_0x1de272(0xa9)]+'\x20'+process[_0x1de272(0xc0)]),console[_0x1de272(0xe9)](),console['log'](a29_0x5108a4[_0x1de272(0xd7)]('\x20\x20Config\x20Files')),console['log'](a29_0x5108a4[_0x1de272(0xe7)]('\x20\x20─'[_0x1de272(0xb8)](0x1e)));const _0x5495ce=getGlobalConfigPath(),_0xada427=getProjectConfigPath();console[_0x1de272(0xe9)](_0x1de272(0xeb)+(_0x5495ce||a29_0x5108a4[_0x1de272(0xe7)](_0x1de272(0xf6)))),console[_0x1de272(0xe9)](_0x1de272(0xb6)+(_0xada427||a29_0x5108a4[_0x1de272(0xe7)](_0x1de272(0xf6)))),console[_0x1de272(0xe9)](),console[_0x1de272(0xe9)](a29_0x5108a4[_0x1de272(0xd7)](_0x1de272(0xa7))),console[_0x1de272(0xe9)](a29_0x5108a4['gray']('\x20\x20─'[_0x1de272(0xb8)](0x1e)));const _0x41afad=(_0x29fa7e,_0x2e875e)=>{const _0x35a28c=_0x1de272;if(!_0x2e875e){console[_0x35a28c(0xe9)]('\x20\x20'+_0x29fa7e[_0x35a28c(0xc9)](0x11)+'\x20'+a29_0x5108a4[_0x35a28c(0xe7)](_0x35a28c(0xf5)));return;}const _0x171bea=inspectCliConfigJsonFile(_0x2e875e);if(_0x171bea[_0x35a28c(0xfc)]==='ok')console[_0x35a28c(0xe9)]('\x20\x20'+_0x29fa7e[_0x35a28c(0xc9)](0x11)+'\x20'+a29_0x5108a4[_0x35a28c(0xca)]('✓\x20Valid\x20JSON'));else{if(_0x171bea[_0x35a28c(0xfc)]===_0x35a28c(0xee))console[_0x35a28c(0xe9)]('\x20\x20'+_0x29fa7e['padEnd'](0x11)+'\x20'+a29_0x5108a4[_0x35a28c(0xb1)](_0x35a28c(0xcf)));else _0x171bea[_0x35a28c(0xfc)]===_0x35a28c(0xd9)?console['log']('\x20\x20'+_0x29fa7e[_0x35a28c(0xc9)](0x11)+'\x20'+a29_0x5108a4[_0x35a28c(0xe7)](_0x35a28c(0xdb))):(console['log']('\x20\x20'+_0x29fa7e[_0x35a28c(0xc9)](0x11)+'\x20'+a29_0x5108a4['red']('✗\x20Invalid\x20JSON')),console['log']('\x20\x20'+''[_0x35a28c(0xc9)](0x11)+'\x20'+a29_0x5108a4[_0x35a28c(0xf7)](_0x171bea[_0x35a28c(0xae)])));}};_0x41afad(_0x1de272(0xd8),_0x5495ce),_0x41afad(_0x1de272(0xbe),_0xada427),console[_0x1de272(0xe9)](),console[_0x1de272(0xe9)](a29_0x5108a4['bold'](_0x1de272(0xe3))),console['log'](a29_0x5108a4['gray'](_0x1de272(0xbf)['repeat'](0x1e))),console['log'](_0x1de272(0xd3)+(_0x54e345[_0x1de272(0xf2)]||a29_0x5108a4[_0x1de272(0xf7)]('(not\x20set)'))),console[_0x1de272(0xe9)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x54e345[_0x1de272(0xdc)]);const _0x596478=isLegacyCompatConfigKey('locale')?a29_0x5108a4['gray'](_0x54e345[_0x1de272(0xba)]+_0x1de272(0xe8)):_0x54e345[_0x1de272(0xba)];console['log'](_0x1de272(0xcc)+_0x596478),console[_0x1de272(0xe9)](_0x1de272(0xa6)+(_0x54e345['defaultApp']||a29_0x5108a4[_0x1de272(0xe7)](_0x1de272(0xb4)))),console[_0x1de272(0xe9)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x54e345[_0x1de272(0xfd)]||a29_0x5108a4['gray'](_0x1de272(0xb4)))),console[_0x1de272(0xe9)](_0x1de272(0xb5)+(_0x54e345[_0x1de272(0xaa)]||a29_0x5108a4[_0x1de272(0xe7)](_0x1de272(0xed)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x1de272(0xe9)](_0x1de272(0xcd)+(_0x54e345[_0x1de272(0xc4)]??a29_0x5108a4[_0x1de272(0xe7)](_0x1de272(0xd5)))),console['log'](_0x1de272(0xce)+_0x54e345[_0x1de272(0xf0)]),console[_0x1de272(0xe9)](_0x1de272(0xaf)+_0x54e345[_0x1de272(0xbb)]),console['log']('\x20\x20auth\x20(effective):\x20'+AUTH_MODE[_0x1de272(0xad)]),console[_0x1de272(0xe9)](_0x1de272(0xf9)+(_0x54e345[_0x1de272(0xe1)]?a29_0x5108a4[_0x1de272(0xca)](_0x1de272(0xb0)+_0x54e345[_0x1de272(0xe1)]['length']+')'):a29_0x5108a4['gray']('(none)'))),console['log'](),console[_0x1de272(0xe9)](a29_0x5108a4[_0x1de272(0xd7)](_0x1de272(0xd1))),console[_0x1de272(0xe9)](a29_0x5108a4['gray'](_0x1de272(0xbf)['repeat'](0x1e))),console['log'](_0x1de272(0xbc)+getApiDomain()),console[_0x1de272(0xe9)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x1de272(0xe9)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console['log'](),console['log'](a29_0x5108a4['bold'](_0x1de272(0xa8))),console[_0x1de272(0xe9)](a29_0x5108a4['gray'](_0x1de272(0xbf)[_0x1de272(0xb8)](0x1e)));const _0x45314a=inspectServiceRegistry();console['log']('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x45314a['registryPath']),console[_0x1de272(0xe9)](_0x1de272(0xd0)+formatServiceRegistryStatus(_0x45314a)),console['log']('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x45314a[_0x1de272(0xc1)]),console['log'](_0x1de272(0xde)+_0x45314a['commandCount']);for(const _0x1056df of _0x45314a[_0x1de272(0xfa)]){console[_0x1de272(0xe9)]('\x20\x20'+(_0x1056df[_0x1de272(0xdd)]+':')[_0x1de272(0xc9)](0x11)+'\x20'+(_0x1056df[_0x1de272(0xe5)]||a29_0x5108a4[_0x1de272(0xe7)](_0x1de272(0xdf)))+'\x20('+_0x1056df[_0x1de272(0xe2)]+_0x1de272(0xea)),console[_0x1de272(0xe9)]('\x20\x20'+''['padEnd'](0x11)+'\x20Imported\x20from:\x20'+_0x1056df[_0x1de272(0xe0)][_0x1de272(0xe6)]);}return console[_0x1de272(0xe9)](),console[_0x1de272(0xe9)](a29_0x5108a4[_0x1de272(0xd7)](_0x1de272(0xab))),console[_0x1de272(0xe9)](a29_0x5108a4[_0x1de272(0xe7)](_0x1de272(0xbf)[_0x1de272(0xb8)](0x1e))),console['log'](_0x1de272(0xfb)+a29_0x5108a4[_0x1de272(0xca)](AUTH_MODE[_0x1de272(0xad)]+_0x1de272(0xf8))),console['log'](_0x1de272(0xac)+a29_0x5108a4[_0x1de272(0xe7)](_0x1de272(0xf4))),console[_0x1de272(0xe9)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x50fe3b){const _0x2d3730=a29_0x281d;if(_0x50fe3b[_0x2d3730(0xfc)]==='ok')return a29_0x5108a4[_0x2d3730(0xca)](_0x2d3730(0xef));if(_0x50fe3b[_0x2d3730(0xfc)]===_0x2d3730(0xd9))return a29_0x5108a4['gray']('(not\x20found)');if(_0x50fe3b[_0x2d3730(0xfc)]===_0x2d3730(0xee))return a29_0x5108a4[_0x2d3730(0xb1)](_0x2d3730(0xc5));return a29_0x5108a4[_0x2d3730(0xf7)](_0x2d3730(0xbd)+(_0x50fe3b[_0x2d3730(0xae)]?':\x20'+_0x50fe3b[_0x2d3730(0xae)]:''));}export const doctorDefinition={'service':a29_0x5ade74(0xb3),'command':'check','description':a29_0x5ade74(0xda),'risk':a29_0x5ade74(0xec),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|