@lovrabet/lovrabet-cli 2.1.22-beta.3 → 2.1.22-beta.4
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/artifact/index.js +1 -1
- package/lib/commands/auth/device.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/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.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/diagram.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/raw-flags.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.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.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/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a12_0x3fa7ed=a12_0x11e1;(function(_0x231149,_0x177edc){const _0x2802c5=a12_0x11e1,_0x4761bb=_0x231149();while(!![]){try{const _0x11f5ae=parseInt(_0x2802c5(0x18b))/0x1*(-parseInt(_0x2802c5(0x1ca))/0x2)+parseInt(_0x2802c5(0x1a3))/0x3*(-parseInt(_0x2802c5(0x1cc))/0x4)+parseInt(_0x2802c5(0x1be))/0x5+-parseInt(_0x2802c5(0x1a9))/0x6+-parseInt(_0x2802c5(0x18e))/0x7*(parseInt(_0x2802c5(0x1c7))/0x8)+parseInt(_0x2802c5(0x177))/0x9*(-parseInt(_0x2802c5(0x187))/0xa)+parseInt(_0x2802c5(0x1bb))/0xb;if(_0x11f5ae===_0x177edc)break;else _0x4761bb['push'](_0x4761bb['shift']());}catch(_0x1c883e){_0x4761bb['push'](_0x4761bb['shift']());}}}(a12_0x46d4,0x8f956));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function a12_0x46d4(){const _0x47e0ca=['Missing\x20accessKey.','`auth\x20login`\x20does\x20not\x20support\x20--yes.','\x20scope.','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','Invalid\x20accessKey\x20format:\x20\x22','slice','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','length','code','project','authRequired','=ak_xxx','\x20auth\x20login\x20--access-key\x20<ak_xxx>','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','2080amqGei','trim','AccessKey\x20(ak_xxx...)','\x20config.','8605hESCMX','Auth\x20mode:\x20','Write\x20to\x20global\x20config\x20(default)','168yhDDRi','production','yes','project\x20config','\x20env\x20var','scope','cancelled','development','str','global','Clear\x20accessKey\x20from\x20config','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','Option\x20C:\x20environment\x20variable','join','logout','bool','expired','Shorthand\x20for\x20--access-key','isTTY','nonInteractive','string','9CkCxMY','stdout','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','Show\x20current\x20authentication\x20status','Tip:\x20you\x20can\x20also\x20run:','Option\x20B:\x20apps\x20config\x20(','6697728KGduiU','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','global\x20config','\x20config.\x20Nothing\x20to\x20clear.','userCenterDisplayName','newConfigFileName','Clear\x20from\x20global\x20config\x20(default)','boolean','ACCESS_KEY','access-key','read','push','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','status','Read\x20from\x20global\x20config\x20(default)','AccessKey\x20cleared\x20from\x20','stdin','repeat','30899473FMSfrv','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','check','3932515pSwpym','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','env','\x20auth\x20status','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','Status:\x20valid','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','write','\x20Current\x20env:\x20','57808HftqCp','AccessKey:\x20','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','166WrmOZP','ClientAk','1250364ExOvEy','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','init','accessKey','No\x20AccessKey\x20found\x20in\x20','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','auth','\x20(via\x20','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','\x20Verify:\x20','Auth\x20config\x20reinitialized\x20in\x20','daily','envName','access_key','2844RQsTSS'];a12_0x46d4=function(){return _0x47e0ca;};return a12_0x46d4();}import{getLoginUserInfo}from'../../core/api-client.js';import{getUserDomain}from'../../constant/domain.js';import{authDeviceDefinition,readStoredDeviceCode,deleteStoredDeviceCode,fetchDeviceToken,isStoredDeviceCodeExpired}from'../../commands/auth/device.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x517459=a12_0x11e1;writeCliSideChannelLine(_0x517459(0x1b5)+PRODUCT_CONFIG[_0x517459(0x1ad)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x517459(0x1a7)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x517459(0x185));}function a12_0x11e1(_0x3216cf,_0x240b24){_0x3216cf=_0x3216cf-0x172;const _0x46d436=a12_0x46d4();let _0x11e18f=_0x46d436[_0x3216cf];return _0x11e18f;}function buildAccessKeySetupGuide(){const _0x2ec29e=a12_0x11e1;return[_0x2ec29e(0x1b5)+PRODUCT_CONFIG[_0x2ec29e(0x1ad)]+':',USER_ACCESS_KEY_CREATE_URL,_0x2ec29e(0x186)+CLI_BIN_NAME+_0x2ec29e(0x1bf)]['join']('\x0a');}function canPromptForAccessKey(_0x884565){const _0x346805=a12_0x11e1;return!_0x884565[_0x346805(0x1a1)]&&process[_0x346805(0x1b9)]['isTTY']!==![]&&process[_0x346805(0x1a4)][_0x346805(0x1a0)]!==![];}function resolveAuthScopeFlags(_0x49b75d){const _0x246e25=a12_0x11e1;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x49b75d['bool'](_0x246e25(0x197)),'explicitProject':_0x49b75d[_0x246e25(0x19d)](_0x246e25(0x182)),'policy':'global-default'}));}async function resolveAuthWriteInput(_0x26d594){const _0x5bcba7=a12_0x11e1;let _0x4bc55c=(_0x26d594[_0x5bcba7(0x196)](_0x5bcba7(0x1b2))||_0x26d594[_0x5bcba7(0x196)]('ak')||'')[_0x5bcba7(0x188)]();const _0x424cd4=(_0x26d594[_0x5bcba7(0x196)](_0x5bcba7(0x1c0))||'')[_0x5bcba7(0x188)]();if(!_0x4bc55c&&canPromptForAccessKey(_0x26d594))try{showAccessKeyCreateHint(),_0x4bc55c=await promptAccessKey('');}catch(_0x5b8dd7){if(isAbortPrompt(_0x5b8dd7))throw CliErrors[_0x5bcba7(0x194)]();throw _0x5b8dd7;}if(!_0x4bc55c)throw CliErrors['validation'](_0x5bcba7(0x178),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN['test'](_0x4bc55c))throw CliErrors['validation'](_0x5bcba7(0x17c)+_0x4bc55c+'\x22','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars');if(!_0x424cd4)return{'accessKey':_0x4bc55c};const _0x50bb79=normalizeEnv(_0x424cd4);return{'accessKey':_0x4bc55c,'env':isDaily(_0x50bb79)?_0x5bcba7(0x174):isDev(_0x50bb79)?_0x5bcba7(0x195):'production'};}export const authDefinitions=[{'service':a12_0x3fa7ed(0x1d2),'command':'login','description':a12_0x3fa7ed(0x17f),'risk':a12_0x3fa7ed(0x1c5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x3fa7ed(0x1b2),'type':'string','description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a12_0x3fa7ed(0x1a2),'description':a12_0x3fa7ed(0x19f)},{'name':'global','type':a12_0x3fa7ed(0x1b0),'description':a12_0x3fa7ed(0x18d),'default':!![]},{'name':a12_0x3fa7ed(0x182),'type':a12_0x3fa7ed(0x1b0),'description':a12_0x3fa7ed(0x17e),'default':![]}],async 'execute'(_0x176d18){const _0x138e31=a12_0x3fa7ed;if(_0x176d18[_0x138e31(0x19d)](_0x138e31(0x190)))throw CliErrors['validation'](_0x138e31(0x179),'Use\x20`'+CLI_BIN_NAME+_0x138e31(0x1cd)+CLI_BIN_NAME+_0x138e31(0x1c2));const _0x1a0aa2=(_0x176d18[_0x138e31(0x196)](_0x138e31(0x1b2))||_0x176d18['str']('ak')||'')[_0x138e31(0x188)]();if(!_0x1a0aa2&&_0x176d18[_0x138e31(0x1a1)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0xfa8578=await resolveAuthWriteInput(_0x176d18),_0x429c2b=resolveAuthScopeFlags(_0x176d18),_0x1fc499=readScopedConfig(_0x429c2b);_0x1fc499[_0x138e31(0x1cf)]=_0xfa8578['accessKey'];_0xfa8578['env']&&(_0x1fc499['env']=_0xfa8578['env']);writeScopedConfig(_0x1fc499,_0x429c2b);const _0x5c8af2=_0x429c2b['global']?_0x138e31(0x197):_0x138e31(0x182),_0x1b4b62=_0x1fc499[_0x138e31(0x1c0)]?'\x20Current\x20env:\x20'+_0x1fc499['env']+'.':'';return{'ok':!![],'message':'AccessKey\x20saved\x20to\x20'+_0x5c8af2+_0x138e31(0x18a)+_0x1b4b62+_0x138e31(0x172)+CLI_BIN_NAME+_0x138e31(0x1c1)};}},{'service':a12_0x3fa7ed(0x1d2),'command':a12_0x3fa7ed(0x1ce),'description':a12_0x3fa7ed(0x17b),'risk':a12_0x3fa7ed(0x1c5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x3fa7ed(0x1b2),'type':'string','description':a12_0x3fa7ed(0x189)},{'name':'ak','type':a12_0x3fa7ed(0x1a2),'description':'Shorthand\x20for\x20--access-key'},{'name':'env','type':'string','description':a12_0x3fa7ed(0x1c9)},{'name':a12_0x3fa7ed(0x197),'type':a12_0x3fa7ed(0x1b0),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':'project','type':'boolean','description':a12_0x3fa7ed(0x17e),'default':![]}],async 'execute'(_0x176224){const _0x8dbfb9=a12_0x3fa7ed,_0x13706f=await resolveAuthWriteInput(_0x176224),_0x22aae5=resolveAuthScopeFlags(_0x176224),_0x591442={'accessKey':_0x13706f[_0x8dbfb9(0x1cf)]};_0x13706f[_0x8dbfb9(0x1c0)]&&(_0x591442['env']=_0x13706f[_0x8dbfb9(0x1c0)]);writeScopedConfig(_0x591442,_0x22aae5);const _0x41af08=_0x22aae5[_0x8dbfb9(0x197)]?_0x8dbfb9(0x197):_0x8dbfb9(0x182),_0x5140af=_0x591442[_0x8dbfb9(0x1c0)]?_0x8dbfb9(0x1c6)+_0x591442[_0x8dbfb9(0x1c0)]+'.':'';return{'ok':!![],'message':_0x8dbfb9(0x173)+_0x41af08+_0x8dbfb9(0x17a)+_0x5140af+_0x8dbfb9(0x172)+CLI_BIN_NAME+_0x8dbfb9(0x1c1)};}},{'service':a12_0x3fa7ed(0x1d2),'command':a12_0x3fa7ed(0x19c),'description':a12_0x3fa7ed(0x198),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x3fa7ed(0x197),'type':a12_0x3fa7ed(0x1b0),'description':a12_0x3fa7ed(0x1af),'default':!![]},{'name':a12_0x3fa7ed(0x182),'type':a12_0x3fa7ed(0x1b0),'description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x32f031){const _0x4dfd1b=a12_0x3fa7ed,_0x387386=resolveAuthScopeFlags(_0x32f031),_0x2d7a64=readScopedConfig(_0x387386),_0xa2d5fc=!!_0x2d7a64[_0x4dfd1b(0x1cf)];delete _0x2d7a64[_0x4dfd1b(0x1cf)],writeScopedConfig(_0x2d7a64,_0x387386);const _0x5556aa=_0x387386[_0x4dfd1b(0x197)]?_0x4dfd1b(0x197):_0x4dfd1b(0x182);if(_0xa2d5fc)return{'ok':!![],'message':_0x4dfd1b(0x1b8)+_0x5556aa+_0x4dfd1b(0x18a)};return{'ok':!![],'message':_0x4dfd1b(0x1d0)+_0x5556aa+_0x4dfd1b(0x1ac)};}},{'service':a12_0x3fa7ed(0x1d2),'command':a12_0x3fa7ed(0x1b6),'description':a12_0x3fa7ed(0x1a6),'risk':a12_0x3fa7ed(0x1b3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x3fa7ed(0x197),'type':a12_0x3fa7ed(0x1b0),'description':a12_0x3fa7ed(0x1b7),'default':!![]},{'name':a12_0x3fa7ed(0x182),'type':a12_0x3fa7ed(0x1b0),'description':a12_0x3fa7ed(0x1c4),'default':![]},{'name':a12_0x3fa7ed(0x1bd),'type':a12_0x3fa7ed(0x1b0),'description':'Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','default':![]}],async 'execute'(_0x203ef4){const _0x29ea94=a12_0x3fa7ed,_0x1ef2f9=resolveAuthScopeFlags(_0x203ef4),_0x1ba3ba=readScopedConfig(_0x1ef2f9),_0x235c9a=productEnvName(_0x29ea94(0x1b1)),_0x992de9=productEnv('ACCESS_KEY')||undefined,_0x3a1852=_0x1ba3ba[_0x29ea94(0x1cf)]||undefined,_0x3f22c1=_0x992de9||_0x3a1852,_0xea89d6=_0x992de9?_0x235c9a+_0x29ea94(0x192):_0x3a1852?(_0x1ef2f9[_0x29ea94(0x197)]?_0x29ea94(0x197):'project')+'\x20config':null,_0x54fc6=[_0x29ea94(0x18c)+AUTH_MODE[_0x29ea94(0x1cb)]];if(_0x3f22c1){const _0x16e42e=_0x3f22c1[_0x29ea94(0x180)]>0x8?''+_0x3f22c1[_0x29ea94(0x17d)](0x0,0x8)+'*'[_0x29ea94(0x1ba)](_0x3f22c1[_0x29ea94(0x180)]-0x8):_0x3f22c1;_0x54fc6[_0x29ea94(0x1b4)](_0x29ea94(0x1c8)+_0x16e42e+(_0xea89d6?'\x20(via\x20'+_0xea89d6+')':'')),_0x54fc6[_0x29ea94(0x1b4)](_0x29ea94(0x1c3));}if(!_0x3f22c1){_0x54fc6[_0x29ea94(0x1b4)](''),_0x54fc6['push'](_0x29ea94(0x1d4)),_0x54fc6[_0x29ea94(0x1b4)](''),_0x54fc6[_0x29ea94(0x1b4)]('Option\x20A:\x20'+CLI_BIN_NAME+_0x29ea94(0x199)),_0x54fc6[_0x29ea94(0x1b4)](''),_0x54fc6['push'](_0x29ea94(0x1a8)+PRODUCT_CONFIG[_0x29ea94(0x1ae)]+')'),_0x54fc6[_0x29ea94(0x1b4)](_0x29ea94(0x1a5)),_0x54fc6[_0x29ea94(0x1b4)](''),_0x54fc6[_0x29ea94(0x1b4)](_0x29ea94(0x19a)),_0x54fc6[_0x29ea94(0x1b4)]('\x20\x20export\x20'+_0x235c9a+_0x29ea94(0x184)),_0x54fc6[_0x29ea94(0x1b4)](''),_0x54fc6['push']('Then\x20verify\x20with:\x20'+CLI_BIN_NAME+'\x20auth\x20status'),_0x54fc6[_0x29ea94(0x1b4)](_0x29ea94(0x1d1)+CLI_BIN_NAME+'\x20doctor');if(_0x203ef4[_0x29ea94(0x19d)](_0x29ea94(0x1bd))){const _0x1666e2=readStoredDeviceCode();if(_0x1666e2&&!isStoredDeviceCodeExpired(_0x1666e2)){const _0x413b8a=getUserDomain(),_0x33503d=await fetchDeviceToken(_0x413b8a,_0x1666e2[_0x29ea94(0x181)]);if(_0x33503d[_0x29ea94(0x1b6)]==='success'&&_0x33503d[_0x29ea94(0x176)]){const _0x1b2b48={'global':_0x1666e2[_0x29ea94(0x193)]===_0x29ea94(0x197)},_0xda4d34=readScopedConfig(_0x1b2b48);_0xda4d34[_0x29ea94(0x1cf)]=_0x33503d[_0x29ea94(0x176)],writeScopedConfig(_0xda4d34,_0x1b2b48),deleteStoredDeviceCode();const _0x13e117=_0x33503d[_0x29ea94(0x176)],_0x5e1dba=_0x13e117[_0x29ea94(0x180)]>0x8?''+_0x13e117[_0x29ea94(0x17d)](0x0,0x8)+'*'[_0x29ea94(0x1ba)](_0x13e117[_0x29ea94(0x180)]-0x8):_0x13e117,_0xb7b14d=_0x1666e2[_0x29ea94(0x193)]===_0x29ea94(0x197)?_0x29ea94(0x1ab):_0x29ea94(0x191);return{'ok':!![],'message':[_0x29ea94(0x18c)+AUTH_MODE['ClientAk'],_0x29ea94(0x1c8)+_0x5e1dba+_0x29ea94(0x1d3)+_0xb7b14d+')',_0x29ea94(0x1c3)][_0x29ea94(0x19b)]('\x0a')};}_0x33503d['status']===_0x29ea94(0x19e)&&deleteStoredDeviceCode();throw CliErrors[_0x29ea94(0x183)](_0x29ea94(0x1aa));}throw CliErrors[_0x29ea94(0x183)](_0x54fc6['join']('\x0a'));}}return{'ok':!![],'message':_0x54fc6[_0x29ea94(0x19b)]('\x0a')};}},{'service':'auth','command':'info','description':a12_0x3fa7ed(0x1bc),'risk':a12_0x3fa7ed(0x1b3),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0xa49635){const _0x4952c5=a12_0x3fa7ed,_0x169252=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x169252,'meta':{'env':_0xa49635[_0x4952c5(0x175)]??_0x4952c5(0x18f)}}};}},authDeviceDefinition];
|
|
1
|
+
const a12_0x4b771b=a12_0x4cc2;(function(_0x21eb8b,_0x83dcb9){const _0xbeeba2=a12_0x4cc2,_0x37bebf=_0x21eb8b();while(!![]){try{const _0x5515ea=-parseInt(_0xbeeba2(0x1b8))/0x1*(-parseInt(_0xbeeba2(0x17b))/0x2)+-parseInt(_0xbeeba2(0x19c))/0x3*(parseInt(_0xbeeba2(0x17f))/0x4)+-parseInt(_0xbeeba2(0x16a))/0x5*(-parseInt(_0xbeeba2(0x193))/0x6)+-parseInt(_0xbeeba2(0x19a))/0x7+parseInt(_0xbeeba2(0x1a6))/0x8+-parseInt(_0xbeeba2(0x1a2))/0x9+parseInt(_0xbeeba2(0x18d))/0xa;if(_0x5515ea===_0x83dcb9)break;else _0x37bebf['push'](_0x37bebf['shift']());}catch(_0xae0dff){_0x37bebf['push'](_0x37bebf['shift']());}}}(a12_0x42d8,0x3131e));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';function a12_0x42d8(){const _0x9116be=['ACCESS_KEY','project','join','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','init','\x20scope.','`auth\x20login`\x20does\x20not\x20support\x20--yes.','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','slice','Shorthand\x20for\x20--access-key','project\x20config','4504190jFagZP','\x20config.','bool','env','validation','production','150wexgjq','AccessKey\x20saved\x20to\x20','string','Option\x20A:\x20','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','nonInteractive','isTTY','1883798yaeNRX','Option\x20C:\x20environment\x20variable','3MrfGPL','\x20Verify:\x20','authRequired','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','code','Use\x20`','1277577jfLgrD','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','info','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','209568yEIdzj','global\x20config','str','\x20doctor','\x20env\x20var','\x20auth\x20status','\x20Current\x20env:\x20','Read\x20from\x20global\x20config\x20(default)','development','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','length','access-key','AccessKey\x20cleared\x20from\x20','login','AccessKey\x20(ak_xxx...)','Clear\x20from\x20global\x20config\x20(default)','read','status','4uUMenp','global','boolean','Auth\x20mode:\x20','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','repeat','Show\x20current\x20authentication\x20status','\x20config.\x20Nothing\x20to\x20clear.','Auth\x20config\x20reinitialized\x20in\x20','cancelled','ClientAk','write','newConfigFileName','=ak_xxx','Write\x20to\x20global\x20config\x20(default)','push','Status:\x20valid','29240frqfUn','Tip:\x20you\x20can\x20also\x20run:','auth','Missing\x20accessKey.','stdout','scope','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','access_key','logout','accessKey','AccessKey:\x20','userCenterDisplayName','Then\x20verify\x20with:\x20','test','\x20(via\x20','\x20\x20export\x20','172268QHvhDs','\x20config','success','global-default','1419128aySaVE','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'];a12_0x42d8=function(){return _0x9116be;};return a12_0x42d8();}import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';import{getUserDomain}from'../../constant/domain.js';import{authDeviceDefinition,readStoredDeviceCode,deleteStoredDeviceCode,fetchDeviceToken,isStoredDeviceCodeExpired}from'../../commands/auth/device.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function a12_0x4cc2(_0x44ab9c,_0x4fe059){_0x44ab9c=_0x44ab9c-0x162;const _0x42d8b5=a12_0x42d8();let _0x4cc275=_0x42d8b5[_0x44ab9c];return _0x4cc275;}function showAccessKeyCreateHint(){const _0x305fde=a12_0x4cc2;writeCliSideChannelLine('AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x305fde(0x176)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x305fde(0x16b)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>');}function buildAccessKeySetupGuide(){const _0x1a7c5e=a12_0x4cc2;return[_0x1a7c5e(0x181)+PRODUCT_CONFIG['userCenterDisplayName']+':',USER_ACCESS_KEY_CREATE_URL,_0x1a7c5e(0x1af)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]'][_0x1a7c5e(0x184)]('\x0a');}function canPromptForAccessKey(_0x50d088){const _0x529053=a12_0x4cc2;return!_0x50d088['nonInteractive']&&process['stdin'][_0x529053(0x199)]!==![]&&process[_0x529053(0x16e)][_0x529053(0x199)]!==![];}function resolveAuthScopeFlags(_0x1d7ca3){const _0x460aa0=a12_0x4cc2;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x1d7ca3[_0x460aa0(0x18f)](_0x460aa0(0x1b9)),'explicitProject':_0x1d7ca3[_0x460aa0(0x18f)](_0x460aa0(0x183)),'policy':_0x460aa0(0x17e)}));}async function resolveAuthWriteInput(_0x1182c4){const _0x3d758f=a12_0x4cc2;let _0x3ea6e1=(_0x1182c4['str'](_0x3d758f(0x1b1))||_0x1182c4[_0x3d758f(0x1a8)]('ak')||'')['trim']();const _0x571b98=(_0x1182c4[_0x3d758f(0x1a8)]('env')||'')['trim']();if(!_0x3ea6e1&&canPromptForAccessKey(_0x1182c4))try{showAccessKeyCreateHint(),_0x3ea6e1=await promptAccessKey('');}catch(_0x353b42){if(isAbortPrompt(_0x353b42))throw CliErrors[_0x3d758f(0x162)]();throw _0x353b42;}if(!_0x3ea6e1)throw CliErrors['validation'](_0x3d758f(0x16d),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x3d758f(0x178)](_0x3ea6e1))throw CliErrors[_0x3d758f(0x191)]('Invalid\x20accessKey\x20format:\x20\x22'+_0x3ea6e1+'\x22',_0x3d758f(0x1a3));if(!_0x571b98)return{'accessKey':_0x3ea6e1};const _0x40151b=normalizeEnv(_0x571b98);return{'accessKey':_0x3ea6e1,'env':isDaily(_0x40151b)?'daily':isDev(_0x40151b)?_0x3d758f(0x1ae):'production'};}export const authDefinitions=[{'service':'auth','command':a12_0x4b771b(0x1b3),'description':a12_0x4b771b(0x1a5),'risk':a12_0x4b771b(0x164),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x4b771b(0x1b1),'type':'string','description':a12_0x4b771b(0x1b4)},{'name':'ak','type':a12_0x4b771b(0x195),'description':'Shorthand\x20for\x20--access-key'},{'name':a12_0x4b771b(0x1b9),'type':a12_0x4b771b(0x1ba),'description':a12_0x4b771b(0x167),'default':!![]},{'name':a12_0x4b771b(0x183),'type':a12_0x4b771b(0x1ba),'description':a12_0x4b771b(0x171),'default':![]}],async 'execute'(_0x5b81cb){const _0x2b9c20=a12_0x4b771b;if(_0x5b81cb[_0x2b9c20(0x18f)]('yes'))throw CliErrors['validation'](_0x2b9c20(0x188),_0x2b9c20(0x1a1)+CLI_BIN_NAME+_0x2b9c20(0x1bc)+CLI_BIN_NAME+_0x2b9c20(0x170));const _0x4581c2=(_0x5b81cb[_0x2b9c20(0x1a8)](_0x2b9c20(0x1b1))||_0x5b81cb[_0x2b9c20(0x1a8)]('ak')||'')['trim']();if(!_0x4581c2&&_0x5b81cb[_0x2b9c20(0x198)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x1d1140=await resolveAuthWriteInput(_0x5b81cb),_0x268964=resolveAuthScopeFlags(_0x5b81cb),_0x197979=readScopedConfig(_0x268964);_0x197979[_0x2b9c20(0x174)]=_0x1d1140[_0x2b9c20(0x174)];_0x1d1140[_0x2b9c20(0x190)]&&(_0x197979[_0x2b9c20(0x190)]=_0x1d1140[_0x2b9c20(0x190)]);writeScopedConfig(_0x197979,_0x268964);const _0x5588c5=_0x268964[_0x2b9c20(0x1b9)]?_0x2b9c20(0x1b9):_0x2b9c20(0x183),_0x4d3f29=_0x197979['env']?_0x2b9c20(0x1ac)+_0x197979[_0x2b9c20(0x190)]+'.':'';return{'ok':!![],'message':_0x2b9c20(0x194)+_0x5588c5+_0x2b9c20(0x18e)+_0x4d3f29+_0x2b9c20(0x19d)+CLI_BIN_NAME+_0x2b9c20(0x1ab)};}},{'service':'auth','command':a12_0x4b771b(0x186),'description':a12_0x4b771b(0x19f),'risk':a12_0x4b771b(0x164),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x4b771b(0x1b1),'type':a12_0x4b771b(0x195),'description':a12_0x4b771b(0x1b4)},{'name':'ak','type':a12_0x4b771b(0x195),'description':a12_0x4b771b(0x18b)},{'name':a12_0x4b771b(0x190),'type':a12_0x4b771b(0x195),'description':a12_0x4b771b(0x189)},{'name':'global','type':a12_0x4b771b(0x1ba),'description':a12_0x4b771b(0x167),'default':!![]},{'name':a12_0x4b771b(0x183),'type':a12_0x4b771b(0x1ba),'description':a12_0x4b771b(0x171),'default':![]}],async 'execute'(_0x295639){const _0x35035b=a12_0x4b771b,_0x5c9749=await resolveAuthWriteInput(_0x295639),_0x3b3e7c=resolveAuthScopeFlags(_0x295639),_0x46e1b3={'accessKey':_0x5c9749[_0x35035b(0x174)]};_0x5c9749['env']&&(_0x46e1b3['env']=_0x5c9749['env']);writeScopedConfig(_0x46e1b3,_0x3b3e7c);const _0x5bb430=_0x3b3e7c[_0x35035b(0x1b9)]?'global':_0x35035b(0x183),_0x29bf95=_0x46e1b3[_0x35035b(0x190)]?'\x20Current\x20env:\x20'+_0x46e1b3[_0x35035b(0x190)]+'.':'';return{'ok':!![],'message':_0x35035b(0x1c1)+_0x5bb430+_0x35035b(0x187)+_0x29bf95+'\x20Verify:\x20'+CLI_BIN_NAME+_0x35035b(0x1ab)};}},{'service':'auth','command':a12_0x4b771b(0x173),'description':'Clear\x20accessKey\x20from\x20config','risk':a12_0x4b771b(0x164),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x4b771b(0x1b9),'type':a12_0x4b771b(0x1ba),'description':a12_0x4b771b(0x1b5),'default':!![]},{'name':a12_0x4b771b(0x183),'type':a12_0x4b771b(0x1ba),'description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x25f5f8){const _0x17f2d6=a12_0x4b771b,_0x50f4c3=resolveAuthScopeFlags(_0x25f5f8),_0x57a64d=readScopedConfig(_0x50f4c3),_0x1d3e00=!!_0x57a64d['accessKey'];delete _0x57a64d[_0x17f2d6(0x174)],writeScopedConfig(_0x57a64d,_0x50f4c3);const _0x1ddc69=_0x50f4c3[_0x17f2d6(0x1b9)]?_0x17f2d6(0x1b9):_0x17f2d6(0x183);if(_0x1d3e00)return{'ok':!![],'message':_0x17f2d6(0x1b2)+_0x1ddc69+_0x17f2d6(0x18e)};return{'ok':!![],'message':'No\x20AccessKey\x20found\x20in\x20'+_0x1ddc69+_0x17f2d6(0x1c0)};}},{'service':a12_0x4b771b(0x16c),'command':a12_0x4b771b(0x1b7),'description':a12_0x4b771b(0x1bf),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x4b771b(0x1b9),'type':a12_0x4b771b(0x1ba),'description':a12_0x4b771b(0x1ad),'default':!![]},{'name':'project','type':a12_0x4b771b(0x1ba),'description':'Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]},{'name':'check','type':a12_0x4b771b(0x1ba),'description':'Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','default':![]}],async 'execute'(_0x57bff0){const _0x3bb8f9=a12_0x4b771b,_0x241931=resolveAuthScopeFlags(_0x57bff0),_0x257813=readScopedConfig(_0x241931),_0x27387e=productEnvName('ACCESS_KEY'),_0x1c9274=productEnv(_0x3bb8f9(0x182))||undefined,_0x61159b=_0x257813['accessKey']||undefined,_0x19450e=_0x1c9274||_0x61159b,_0x368ac8=_0x1c9274?_0x27387e+_0x3bb8f9(0x1aa):_0x61159b?(_0x241931['global']?'global':'project')+_0x3bb8f9(0x17c):null,_0x461033=[_0x3bb8f9(0x1bb)+AUTH_MODE[_0x3bb8f9(0x163)]];if(_0x19450e){const _0xa18dfe=_0x19450e['length']>0x8?''+_0x19450e['slice'](0x0,0x8)+'*'[_0x3bb8f9(0x1be)](_0x19450e[_0x3bb8f9(0x1b0)]-0x8):_0x19450e;_0x461033[_0x3bb8f9(0x168)](_0x3bb8f9(0x175)+_0xa18dfe+(_0x368ac8?_0x3bb8f9(0x179)+_0x368ac8+')':'')),_0x461033['push']('Status:\x20valid');}if(!_0x19450e){_0x461033[_0x3bb8f9(0x168)](''),_0x461033[_0x3bb8f9(0x168)]('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0x461033[_0x3bb8f9(0x168)](''),_0x461033[_0x3bb8f9(0x168)](_0x3bb8f9(0x196)+CLI_BIN_NAME+_0x3bb8f9(0x185)),_0x461033[_0x3bb8f9(0x168)](''),_0x461033['push']('Option\x20B:\x20apps\x20config\x20('+PRODUCT_CONFIG[_0x3bb8f9(0x165)]+')'),_0x461033[_0x3bb8f9(0x168)](_0x3bb8f9(0x180)),_0x461033[_0x3bb8f9(0x168)](''),_0x461033[_0x3bb8f9(0x168)](_0x3bb8f9(0x19b)),_0x461033['push'](_0x3bb8f9(0x17a)+_0x27387e+_0x3bb8f9(0x166)),_0x461033[_0x3bb8f9(0x168)](''),_0x461033['push'](_0x3bb8f9(0x177)+CLI_BIN_NAME+'\x20auth\x20status'),_0x461033['push'](_0x3bb8f9(0x1bd)+CLI_BIN_NAME+_0x3bb8f9(0x1a9));if(_0x57bff0[_0x3bb8f9(0x18f)]('check')){const _0x5ef149=readStoredDeviceCode();if(_0x5ef149&&!isStoredDeviceCodeExpired(_0x5ef149)){const _0x583ce0=getUserDomain(),_0x576188=await fetchDeviceToken(_0x583ce0,_0x5ef149[_0x3bb8f9(0x1a0)]);if(_0x576188[_0x3bb8f9(0x1b7)]===_0x3bb8f9(0x17d)&&_0x576188[_0x3bb8f9(0x172)]){const _0x391fd7={'global':_0x5ef149['scope']===_0x3bb8f9(0x1b9)},_0x3683f2=readScopedConfig(_0x391fd7);_0x3683f2[_0x3bb8f9(0x174)]=_0x576188[_0x3bb8f9(0x172)],writeScopedConfig(_0x3683f2,_0x391fd7),deleteStoredDeviceCode();const _0x17496c=_0x576188[_0x3bb8f9(0x172)],_0x5bcf6e=_0x17496c[_0x3bb8f9(0x1b0)]>0x8?''+_0x17496c[_0x3bb8f9(0x18a)](0x0,0x8)+'*'[_0x3bb8f9(0x1be)](_0x17496c['length']-0x8):_0x17496c,_0x1967dd=_0x5ef149[_0x3bb8f9(0x16f)]===_0x3bb8f9(0x1b9)?_0x3bb8f9(0x1a7):_0x3bb8f9(0x18c);return{'ok':!![],'message':[_0x3bb8f9(0x1bb)+AUTH_MODE[_0x3bb8f9(0x163)],_0x3bb8f9(0x175)+_0x5bcf6e+_0x3bb8f9(0x179)+_0x1967dd+')',_0x3bb8f9(0x169)][_0x3bb8f9(0x184)]('\x0a')};}_0x576188[_0x3bb8f9(0x1b7)]==='expired'&&deleteStoredDeviceCode();throw CliErrors[_0x3bb8f9(0x19e)]('Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.');}throw CliErrors['authRequired'](_0x461033[_0x3bb8f9(0x184)]('\x0a'));}}return{'ok':!![],'message':_0x461033[_0x3bb8f9(0x184)]('\x0a')};}},{'service':a12_0x4b771b(0x16c),'command':a12_0x4b771b(0x1a4),'description':a12_0x4b771b(0x197),'risk':a12_0x4b771b(0x1b6),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x5a2e5b){const _0x278cbc=a12_0x4b771b,_0x57ab95=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x57ab95,'meta':{'env':_0x5a2e5b['envName']??_0x278cbc(0x192)}}};}},authDeviceDefinition];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1843ab,_0x4319ae){const _0x4aa866=a13_0x519a,_0x40cad0=_0x1843ab();while(!![]){try{const _0xaa7557=-parseInt(_0x4aa866(0xca))/0x1*(-parseInt(_0x4aa866(0xc6))/0x2)+-parseInt(_0x4aa866(0xbd))/0x3*(parseInt(_0x4aa866(0xbe))/0x4)+parseInt(_0x4aa866(0xd4))/0x5+parseInt(_0x4aa866(0xc1))/0x6*(-parseInt(_0x4aa866(0xc5))/0x7)+-parseInt(_0x4aa866(0xc3))/0x8*(parseInt(_0x4aa866(0xcd))/0x9)+parseInt(_0x4aa866(0xd2))/0xa+-parseInt(_0x4aa866(0xc7))/0xb;if(_0xaa7557===_0x4319ae)break;else _0x40cad0['push'](_0x40cad0['shift']());}catch(_0x387a7a){_0x40cad0['push'](_0x40cad0['shift']());}}}(a13_0x2c41,0x5f6bf));function a13_0x519a(_0x19aa9b,_0x5b1bec){_0x19aa9b=_0x19aa9b-0xbc;const _0x2c4164=a13_0x2c41();let _0x519ab1=_0x2c4164[_0x19aa9b];return _0x519ab1;}function a13_0x2c41(){const _0x450889=['SIGINT','name','2408260YMcZux','race','3479655GhiAcC','User\x20aborted\x20prompt','174GBzSuD','8788csuVCP','AccessKey\x20(paste\x20ak_...):\x20','question','646926TWTjPX','stdin','5288SLXsji','once','7nfZzaP','107528eLLdcW','6081108vVGLeZ','AbortPrompt','stdout','7XIkIJA','close','trim','1827zPBbws','removeListener','AccessKey\x20('];a13_0x2c41=function(){return _0x450889;};return a13_0x2c41();}import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0xd598ce=a13_0x519a;super(_0xd598ce(0xbc)),this['name']=_0xd598ce(0xc8);}}function createSafeRl(){const _0xa1ef12=a13_0x519a,_0x12794d=createInterface({'input':process[_0xa1ef12(0xc2)],'output':process[_0xa1ef12(0xc9)]});let _0x4bf34b;const _0x70cc28=new Promise((_0x4ec5a2,_0x32495e)=>{const _0x48d538=_0xa1ef12;_0x4bf34b=()=>{const _0x902d51=a13_0x519a;_0x4bf34b&&(_0x12794d[_0x902d51(0xce)]('SIGINT',_0x4bf34b),_0x4bf34b=undefined);try{_0x12794d['close']();}catch{}_0x32495e(new AbortPrompt());},_0x12794d[_0x48d538(0xc4)](_0x48d538(0xd0),_0x4bf34b);}),_0x371be3=()=>{const _0x431d90=_0xa1ef12;_0x4bf34b&&(_0x12794d[_0x431d90(0xce)](_0x431d90(0xd0),_0x4bf34b),_0x4bf34b=undefined);try{_0x12794d[_0x431d90(0xcb)]();}catch{}};return{'rl':_0x12794d,'abortPromise':_0x70cc28,'disposeSuccess':_0x371be3};}export async function promptAccessKey(_0x33d20f=''){const _0x1243b9=a13_0x519a,{rl:_0x2de305,abortPromise:_0x1dbd2f,disposeSuccess:_0x18aeea}=createSafeRl(),_0x4cfeca=new Promise(_0x35d177=>{const _0x4fb260=a13_0x519a,_0x4212c6=_0x33d20f?_0x4fb260(0xcf)+_0x33d20f+'):\x20':_0x4fb260(0xbf);_0x2de305[_0x4fb260(0xc0)](_0x4212c6,_0x11c6ae=>{const _0x4e3b99=_0x4fb260;_0x18aeea(),_0x35d177(_0x11c6ae[_0x4e3b99(0xcc)]()||_0x33d20f);});});return Promise[_0x1243b9(0xd3)]([_0x4cfeca,_0x1dbd2f]);}export function isAbortPrompt(_0x315d36){const _0x1ce095=a13_0x519a;return _0x315d36 instanceof Error&&_0x315d36[_0x1ce095(0xd1)]===_0x1ce095(0xc8);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a14_0x4da0(_0x14db62,_0x5913dd){_0x14db62=_0x14db62-0x78;const _0x250785=a14_0x2507();let _0x4da0d9=_0x250785[_0x14db62];return _0x4da0d9;}const a14_0x36dc2f=a14_0x4da0;(function(_0x2aeba8,_0x526ae2){const _0x590b25=a14_0x4da0,_0x5eb2c5=_0x2aeba8();while(!![]){try{const _0x2a971c=parseInt(_0x590b25(0x7e))/0x1*(-parseInt(_0x590b25(0x82))/0x2)+parseInt(_0x590b25(0x8b))/0x3+parseInt(_0x590b25(0x7a))/0x4*(parseInt(_0x590b25(0x85))/0x5)+parseInt(_0x590b25(0x83))/0x6+-parseInt(_0x590b25(0x8c))/0x7*(parseInt(_0x590b25(0x87))/0x8)+-parseInt(_0x590b25(0x88))/0x9*(-parseInt(_0x590b25(0x8a))/0xa)+parseInt(_0x590b25(0x80))/0xb;if(_0x2a971c===_0x526ae2)break;else _0x5eb2c5['push'](_0x5eb2c5['shift']());}catch(_0x21ea56){_0x5eb2c5['push'](_0x5eb2c5['shift']());}}}(a14_0x2507,0xbfca2));import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a14_0x36dc2f(0x78),'command':a14_0x36dc2f(0x84),'description':a14_0x36dc2f(0x89),'risk':a14_0x36dc2f(0x86),'flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name'}],async 'execute'(_0x4724a7){const _0x85e6ab=a14_0x36dc2f,_0x40d579=await getBffEndpointContract(_0x4724a7['appCode'],_0x4724a7[_0x85e6ab(0x8d)](_0x85e6ab(0x7f)));return{'ok':!![],'data':{'appCode':_0x40d579['appCode'],'functionName':_0x40d579[_0x85e6ab(0x79)],'description':_0x40d579[_0x85e6ab(0x7c)]||_0x85e6ab(0x7b),'version':_0x40d579[_0x85e6ab(0x81)],'gmtModified':_0x40d579[_0x85e6ab(0x7d)]}};}};function a14_0x2507(){const _0x1e4e60=['gmtModified','666421esKVzu','name','9811461aaTLBn','version','2kfYWjJ','1539216ChHBDj','detail','2970KbhRGw','read','16FZkrxB','7677UAiuJm','Get\x20a\x20BFF\x20endpoint\x20contract\x20by\x20function\x20name','380cKzIkz','943530TVOJrQ','3093755OyvYEd','str','bff','functionName','5660lzZqbS','(none)','description'];a14_0x2507=function(){return _0x1e4e60;};return a14_0x2507();}
|
package/lib/commands/bff/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a15_0x530f60=a15_0x32d7;function a15_0x32d7(_0x19e461,_0x587854){_0x19e461=_0x19e461-0xe9;const _0x54e18=a15_0x54e1();let _0x32d7b9=_0x54e18[_0x19e461];return _0x32d7b9;}(function(_0x4b4c6d,_0x2cdc0c){const _0x1a2dca=a15_0x32d7,_0x3d392e=_0x4b4c6d();while(!![]){try{const _0x11205f=parseInt(_0x1a2dca(0xef))/0x1*(-parseInt(_0x1a2dca(0xec))/0x2)+-parseInt(_0x1a2dca(0xee))/0x3+parseInt(_0x1a2dca(0xf7))/0x4+-parseInt(_0x1a2dca(0xf3))/0x5+parseInt(_0x1a2dca(0xf2))/0x6+-parseInt(_0x1a2dca(0xed))/0x7*(-parseInt(_0x1a2dca(0xf4))/0x8)+-parseInt(_0x1a2dca(0xf6))/0x9*(parseInt(_0x1a2dca(0xeb))/0xa);if(_0x11205f===_0x2cdc0c)break;else _0x3d392e['push'](_0x3d392e['shift']());}catch(_0x2b958b){_0x3d392e['push'](_0x3d392e['shift']());}}}(a15_0x54e1,0x3e765));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a15_0x54e1(){const _0x4c056e=['1eWsSxv','BFF\x20executed\x20in\x20','str','2334306bTVLTP','794000Jffnil','3538856wDrQbs','name','261EjoMVh','666032QVcisA','read','bff','35870NyyqMk','239996uOwRtx','7kVVFBb','1077750UvAdAz'];a15_0x54e1=function(){return _0x4c056e;};return a15_0x54e1();}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a15_0x530f60(0xea),'command':'exec','description':'Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','risk':a15_0x530f60(0xe9),'flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name\x20to\x20execute'},PARAMS_FLAG],async 'execute'(_0x133112){const _0xf7428b=a15_0x530f60,_0x1fc9ee=parseJsonParams(_0x133112['str']('params')),_0x6ad6d6=Date['now'](),_0x36358b=await executeSdkBff(_0x133112[_0xf7428b(0xf1)](_0xf7428b(0xf5)),_0x1fc9ee),_0x2cc3a0=Date['now']()-_0x6ad6d6;return{'ok':!![],'data':{'result':_0x36358b,'elapsed':_0x2cc3a0},'message':_0xf7428b(0xf0)+_0x2cc3a0+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x25fe34,_0x94ccfa){const _0x43d5c0=a16_0x1887,_0x312fd9=_0x25fe34();while(!![]){try{const _0x17d124=parseInt(_0x43d5c0(0xcd))/0x1+parseInt(_0x43d5c0(0xcc))/0x2*(parseInt(_0x43d5c0(0xce))/0x3)+parseInt(_0x43d5c0(0xd0))/0x4*(-parseInt(_0x43d5c0(0xc9))/0x5)+-parseInt(_0x43d5c0(0xd1))/0x6+parseInt(_0x43d5c0(0xcb))/0x7+-parseInt(_0x43d5c0(0xca))/0x8+parseInt(_0x43d5c0(0xcf))/0x9;if(_0x17d124===_0x94ccfa)break;else _0x312fd9['push'](_0x312fd9['shift']());}catch(_0x1a26d5){_0x312fd9['push'](_0x312fd9['shift']());}}}(a16_0x2435,0x7db34));import{bffDetail}from'../../commands/bff/detail.js';function a16_0x2435(){const _0x4348b8=['32xSAjki','4758180QbLswS','351370vnLxUs','1417160RTDOvO','981960eIAkma','50LOFgZX','72887jwyqQC','645AiFPRk','16458237JSgHkx'];a16_0x2435=function(){return _0x4348b8;};return a16_0x2435();}function a16_0x1887(_0x92c2cd,_0x31fdff){_0x92c2cd=_0x92c2cd-0xc9;const _0x2435db=a16_0x2435();let _0x188761=_0x2435db[_0x92c2cd];return _0x188761;}import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a17_0x47f6bd=a17_0x1ba9;(function(_0x485ad6,_0x4009da){const _0x45c23a=a17_0x1ba9,_0x348301=_0x485ad6();while(!![]){try{const _0x41fc59=-parseInt(_0x45c23a(0x77))/0x1+-parseInt(_0x45c23a(0x6c))/0x2*(parseInt(_0x45c23a(0x7e))/0x3)+parseInt(_0x45c23a(0x7c))/0x4*(parseInt(_0x45c23a(0x7f))/0x5)+parseInt(_0x45c23a(0x71))/0x6+-parseInt(_0x45c23a(0x6a))/0x7+parseInt(_0x45c23a(0x76))/0x8*(parseInt(_0x45c23a(0x80))/0x9)+-parseInt(_0x45c23a(0x7d))/0xa*(-parseInt(_0x45c23a(0x82))/0xb);if(_0x41fc59===_0x4009da)break;else _0x348301['push'](_0x348301['shift']());}catch(_0x5aee9f){_0x348301['push'](_0x348301['shift']());}}}(a17_0x2b92,0xc2636));function a17_0x1ba9(_0xae2d9c,_0x56bb7f){_0xae2d9c=_0xae2d9c-0x65;const _0x2b92e8=a17_0x2b92();let _0x1ba902=_0x2b92e8[_0xae2d9c];return _0x1ba902;}import{CliErrors}from'../../errors.js';function a17_0x2b92(){const _0x57221d=['78726MSirog','Skipped\x20npx\x20(','install','\x20-g\x20-y','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','6517344lZdkvo','CLI\x20Built-in\x20Skill\x20installed','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','unknown','info','2554416LqjiKZ','1225637CSdLdc','inherit','log','cwd','\x20-g\x20-y)...','24iFnlwM','1000290SfrwYP','15dWJoSt','310410QRpMDn','9BZtDJc','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','77jYrZqH','error','../../skills/npx-skills-add.js','skipped','setLogPath','cli-skill-install','write','1816885kKPzGh','apiError'];a17_0x2b92=function(){return _0x57221d;};return a17_0x2b92();}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':'cli-skill','command':a17_0x47f6bd(0x6e),'description':a17_0x47f6bd(0x81),'risk':a17_0x47f6bd(0x69),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x360e38){const _0x34cab9=a17_0x47f6bd;logger[_0x34cab9(0x67)](process[_0x34cab9(0x7a)]()),logger[_0x34cab9(0x75)](_0x34cab9(0x68),'Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.');const {LOVRABET_SKILL_SOURCE:_0x4218ee,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x2e7ce5,runNpxSkillsAddGlobal:_0x2c794f}=await import(_0x34cab9(0x65)),_0xe30b6e=_0x360e38['nonInteractive']?'pipe':_0x34cab9(0x78);console[_0x34cab9(0x79)](_0x34cab9(0x70)+_0x4218ee+_0x34cab9(0x7b));const _0x5c2192=_0x2c794f(process[_0x34cab9(0x7a)](),_0x4218ee,{'stdio':_0xe30b6e});if(_0x5c2192[_0x34cab9(0x66)])console['log'](_0x34cab9(0x6d)+_0x2e7ce5+_0x34cab9(0x73));else{if(_0x5c2192['ok'])console['log'](_0x34cab9(0x72));else throw CliErrors[_0x34cab9(0x6b)]('npx\x20skills\x20add\x20failed:\x20'+(_0x5c2192[_0x34cab9(0x83)]||_0x34cab9(0x74)),'Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20'+_0x4218ee+_0x34cab9(0x6f));}return{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x913229,_0x4d9262){const _0x4b8b62=a18_0x52d5,_0x58aa05=_0x913229();while(!![]){try{const _0x496147=-parseInt(_0x4b8b62(0xd4))/0x1+parseInt(_0x4b8b62(0xcc))/0x2+parseInt(_0x4b8b62(0xd7))/0x3*(-parseInt(_0x4b8b62(0xdd))/0x4)+-parseInt(_0x4b8b62(0xca))/0x5+parseInt(_0x4b8b62(0xce))/0x6*(parseInt(_0x4b8b62(0xd3))/0x7)+parseInt(_0x4b8b62(0xd1))/0x8*(parseInt(_0x4b8b62(0xd9))/0x9)+parseInt(_0x4b8b62(0xd5))/0xa*(-parseInt(_0x4b8b62(0xda))/0xb);if(_0x496147===_0x4d9262)break;else _0x58aa05['push'](_0x58aa05['shift']());}catch(_0x28dd03){_0x58aa05['push'](_0x58aa05['shift']());}}}(a18_0x2539,0xd14cd));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';function a18_0x52d5(_0x4c5f15,_0x4e04fe){_0x4c5f15=_0x4c5f15-0xca;const _0x2539e6=a18_0x2539();let _0x52d57e=_0x2539e6[_0x4c5f15];return _0x52d57e;}import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';function a18_0x2539(){const _0x2c675d=['project','10629CpzzRr','60357bXfSsp','inProject','project-or-global-explicit','24pxzZXL','\x20found).','Use\x20only\x20one\x20config\x20scope\x20flag.','global-default','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','2758165ZxkEcZ','newConfigFileName','3080054YgcGSJ','\x20init`\x20first.','426GbYhDM','Add\x20--global\x20to\x20write\x20to\x20~/','global','10072uuujpf','\x20(global)','8869ScLCLP','519661PXLsYb','540QbJRMy','Not\x20inside\x20a\x20project\x20(no\x20','445989eeFVHl'];a18_0x2539=function(){return _0x2c675d;};return a18_0x2539();}export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x6ebe11){const _0x181313=a18_0x52d5,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x6bb568}=_0x6ebe11;if(explicitGlobal&&explicitProject)throw CliErrors['validation'](_0x181313(0xe1),_0x181313(0xdf));if(explicitGlobal)return _0x181313(0xd0);if(explicitProject)return _0x181313(0xd8);switch(_0x6bb568){case _0x181313(0xe0):return'global';case'project-default':return _0x6ebe11[_0x181313(0xdb)]??isInProject()?'project':'global';case _0x181313(0xdc):if(!(_0x6ebe11[_0x181313(0xdb)]??isInProject()))throw CliErrors['validation'](_0x181313(0xd6)+PRODUCT_CONFIG[_0x181313(0xcb)]+_0x181313(0xde),_0x181313(0xcf)+PRODUCT_CONFIG[_0x181313(0xcb)]+',\x20or\x20run\x20`'+CLI_BIN_NAME+_0x181313(0xcd));return _0x181313(0xd8);}}export function toScopeFlags(_0x2808c0){const _0x38de02=a18_0x52d5;return{'global':_0x2808c0===_0x38de02(0xd0)};}export function formatScopeLabel(_0x33f7b2){const _0x1b788e=a18_0x52d5;return _0x33f7b2===_0x1b788e(0xd0)?_0x1b788e(0xd2):'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a19_0x361f(_0x2f5227,_0x2c1642){_0x2f5227=_0x2f5227-0x189;const _0x4374a1=a19_0x4374();let _0x361f6b=_0x4374a1[_0x2f5227];return _0x361f6b;}(function(_0x356780,_0x51c9b6){const _0x29ed47=a19_0x361f,_0x14e997=_0x356780();while(!![]){try{const _0x4d3838=parseInt(_0x29ed47(0x1a8))/0x1+parseInt(_0x29ed47(0x192))/0x2+-parseInt(_0x29ed47(0x195))/0x3*(-parseInt(_0x29ed47(0x18f))/0x4)+parseInt(_0x29ed47(0x1a6))/0x5*(parseInt(_0x29ed47(0x19e))/0x6)+parseInt(_0x29ed47(0x18a))/0x7*(-parseInt(_0x29ed47(0x1a2))/0x8)+-parseInt(_0x29ed47(0x193))/0x9*(parseInt(_0x29ed47(0x1a0))/0xa)+parseInt(_0x29ed47(0x190))/0xb*(-parseInt(_0x29ed47(0x19d))/0xc);if(_0x4d3838===_0x51c9b6)break;else _0x14e997['push'](_0x14e997['shift']());}catch(_0x1c1ef5){_0x14e997['push'](_0x14e997['shift']());}}}(a19_0x4374,0x9ee26));function a19_0x4374(){const _0x4cda7b=['7UVjamZ','filter','Exactly\x20one\x20of\x20','test','\x20is\x20required\x20for\x20`','4MwSkSr','825737pyMLpB','str','1123672WszFnI','513HhSCSq','\x20are\x20mutually\x20exclusive\x20for\x20`','2258547fiTPQu',',\x20got\x20\x22','Provide\x20one\x20of:\x20','Invalid\x20--','At\x20least\x20one\x20of\x20','Only\x20one\x20of\x20',':\x20expected\x20','some','12GkZBaz','3410046zxoyBQ','Remove\x20all\x20but\x20one.','92740TxMFvh','join','9984808wQOBMr','Flags\x20','validation','Use\x20only\x20one\x20of:\x20','5qGmeGf','length','619550xWEJPv','map'];a19_0x4374=function(){return _0x4cda7b;};return a19_0x4374();}import{CliErrors}from'../../errors.js';function isSet(_0x4d76fb,_0x217369){const _0x31da54=_0x4d76fb['flag'](_0x217369);return _0x31da54!==undefined&&_0x31da54!==''&&_0x31da54!==![]&&_0x31da54!==0x0;}function fmtNames(_0x2b8eb0){const _0x72d612=a19_0x361f;return _0x2b8eb0[_0x72d612(0x189)](_0x3a07b8=>'--'+_0x3a07b8)[_0x72d612(0x1a1)](',\x20');}export function requireOneOf(_0x51883f,_0x859207,_0x33e459){const _0x14a741=a19_0x361f,_0x11db83=_0x859207[_0x14a741(0x18b)](_0x1b4454=>isSet(_0x51883f,_0x1b4454));if(_0x11db83[_0x14a741(0x1a7)]!==0x1)throw CliErrors[_0x14a741(0x1a4)](_0x11db83['length']===0x0?_0x14a741(0x18c)+fmtNames(_0x859207)+_0x14a741(0x18e)+_0x33e459+'`.':_0x14a741(0x19a)+fmtNames(_0x859207)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x11db83)+'.',_0x11db83[_0x14a741(0x1a7)]===0x0?_0x14a741(0x197)+fmtNames(_0x859207):_0x14a741(0x19f));}export function requireAnyOf(_0x28a862,_0x782fc5,_0x5c2f8c){const _0x200bef=a19_0x361f;if(!_0x782fc5[_0x200bef(0x19c)](_0x4c2746=>isSet(_0x28a862,_0x4c2746)))throw CliErrors[_0x200bef(0x1a4)](_0x200bef(0x199)+fmtNames(_0x782fc5)+'\x20is\x20required\x20for\x20`'+_0x5c2f8c+'`.','Provide\x20one\x20of:\x20'+fmtNames(_0x782fc5));}export function mutuallyExclusive(_0x4b377f,_0x352b35,_0x1fcd18){const _0x1df163=a19_0x361f,_0x537330=_0x352b35[_0x1df163(0x18b)](_0x1755e6=>isSet(_0x4b377f,_0x1755e6));if(_0x537330[_0x1df163(0x1a7)]>0x1)throw CliErrors[_0x1df163(0x1a4)](_0x1df163(0x1a3)+fmtNames(_0x537330)+_0x1df163(0x194)+_0x1fcd18+'`.',_0x1df163(0x1a5)+fmtNames(_0x352b35));}export function validatePattern(_0x343e9d,_0x26ffab,_0x9858f2,_0x214a86){const _0x5b4972=a19_0x361f,_0x374a89=_0x343e9d[_0x5b4972(0x191)](_0x26ffab);if(_0x374a89&&!_0x9858f2[_0x5b4972(0x18d)](_0x374a89))throw CliErrors[_0x5b4972(0x1a4)](_0x5b4972(0x198)+_0x26ffab+_0x5b4972(0x19b)+_0x214a86+_0x5b4972(0x196)+_0x374a89+'\x22.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0xdd9eae=a20_0x4beb;(function(_0x5bd8fb,_0x25183b){const _0x248f14=a20_0x4beb,_0x5dab24=_0x5bd8fb();while(!![]){try{const _0x182d57=parseInt(_0x248f14(0xa1))/0x1*(-parseInt(_0x248f14(0xa0))/0x2)+parseInt(_0x248f14(0x92))/0x3*(-parseInt(_0x248f14(0x95))/0x4)+parseInt(_0x248f14(0xa5))/0x5+parseInt(_0x248f14(0x9e))/0x6*(parseInt(_0x248f14(0xa8))/0x7)+parseInt(_0x248f14(0xab))/0x8+-parseInt(_0x248f14(0x96))/0x9*(-parseInt(_0x248f14(0xa6))/0xa)+-parseInt(_0x248f14(0x93))/0xb*(parseInt(_0x248f14(0xaa))/0xc);if(_0x182d57===_0x25183b)break;else _0x5dab24['push'](_0x5dab24['shift']());}catch(_0x13e527){_0x5dab24['push'](_0x5dab24['shift']());}}}(a20_0x2597,0x8e2c3));export const CODE_FLAG={'name':a20_0xdd9eae(0x98),'type':a20_0xdd9eae(0xa9),'required':!![],'description':a20_0xdd9eae(0x9c),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0xdd9eae(0x99)}};export const SQLCODE_FLAG={'name':a20_0xdd9eae(0xa4),'type':a20_0xdd9eae(0xa9),'required':!![],'description':a20_0xdd9eae(0x9a),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0xdd9eae(0xa3)}};export const VERBOSE_FLAG={'name':a20_0xdd9eae(0x94),'type':a20_0xdd9eae(0x97),'description':'Return\x20full\x20raw\x20response\x20object'};function a20_0x4beb(_0x2575ff,_0x489042){_0x2575ff=_0x2575ff-0x92;const _0x259745=a20_0x2597();let _0x4beb2b=_0x259745[_0x2575ff];return _0x4beb2b;}function a20_0x2597(){const _0x1745bf=['verbose','443048qGEdFB','1375938grWNdT','boolean','code','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','Resource\x20name\x20for\x20lookup','Dataset\x20code\x20(32-char\x20hex\x20UUID)','Resource\x20ID','24RkZMjY','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','79358YQpAPm','1JYsSPm','number','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','sqlcode','1394445ztQEHx','70uRtKXH','params','968891rFOZvr','string','12fNNsZQ','1098520CYDTMK','24RvcIve','5851076bYUUJh'];a20_0x2597=function(){return _0x1745bf;};return a20_0x2597();}export const PARAMS_FLAG={'name':a20_0xdd9eae(0xa7),'type':a20_0xdd9eae(0xa9),'description':a20_0xdd9eae(0x9f)};export const NAME_FLAG={'name':'name','type':a20_0xdd9eae(0xa9),'description':a20_0xdd9eae(0x9b)};export const ID_FLAG={'name':'id','type':a20_0xdd9eae(0xa2),'required':!![],'description':a20_0xdd9eae(0x9d)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x414444,_0x3c4207){const _0x91467b=a21_0x17b2,_0x365936=_0x414444();while(!![]){try{const _0x3a51cf=-parseInt(_0x91467b(0xde))/0x1+-parseInt(_0x91467b(0xe4))/0x2*(-parseInt(_0x91467b(0xe5))/0x3)+parseInt(_0x91467b(0xeb))/0x4*(-parseInt(_0x91467b(0xf2))/0x5)+parseInt(_0x91467b(0xec))/0x6+-parseInt(_0x91467b(0xea))/0x7*(-parseInt(_0x91467b(0xe2))/0x8)+-parseInt(_0x91467b(0xf0))/0x9*(parseInt(_0x91467b(0xe1))/0xa)+-parseInt(_0x91467b(0xe3))/0xb*(parseInt(_0x91467b(0xed))/0xc);if(_0x3a51cf===_0x3c4207)break;else _0x365936['push'](_0x365936['shift']());}catch(_0x17e35a){_0x365936['push'](_0x365936['shift']());}}}(a21_0x8e51,0xa1645));import{existsSync,statSync}from'node:fs';function a21_0x17b2(_0x3a36a3,_0x3ba1b0){_0x3a36a3=_0x3a36a3-0xde;const _0x8e51ba=a21_0x8e51();let _0x17b249=_0x8e51ba[_0x3a36a3];return _0x17b249;}import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x5993f9){const _0x3d7332=a21_0x17b2;if(_0x5993f9>=BYTES_PER_MB){const _0x16e830=Math[_0x3d7332(0xf1)](_0x5993f9/BYTES_PER_MB*0x64)/0x64;return _0x16e830[_0x3d7332(0xee)](0x2)+'\x20MB';}return _0x5993f9+'\x20B';}export function requireRuntimeUploadFile(_0x4a0aa8,_0x3ae0cb){const _0x2f32a2=a21_0x17b2,_0x5e9f96=_0x4a0aa8[_0x2f32a2(0xdf)]();if(!_0x5e9f96)throw CliErrors[_0x2f32a2(0xe8)](_0x3ae0cb+_0x2f32a2(0xe0));if(!existsSync(_0x5e9f96))throw CliErrors['validation'](_0x2f32a2(0xe7)+_0x5e9f96);const _0x2c124a=statSync(_0x5e9f96);if(!_0x2c124a['isFile']())throw CliErrors[_0x2f32a2(0xe8)](_0x2f32a2(0xe6)+_0x5e9f96);if(_0x2c124a[_0x2f32a2(0xef)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors['validation'](_0x2f32a2(0xe9)+_0x5e9f96+'\x20('+formatBytes(_0x2c124a[_0x2f32a2(0xef)])+')');return{'path':_0x5e9f96,'size':_0x2c124a[_0x2f32a2(0xef)]};}function a21_0x8e51(){const _0x1bb176=['File\x20not\x20found:\x20','validation','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','4725sZkbFw','625732DFDTbd','7707438SxgmeV','396468JTXgPz','toFixed','size','1143rwGuOt','ceil','5ZTnLlM','547641UzORzk','trim','\x20path\x20is\x20required.','60030RPmMtB','904sxfTIS','33NdKVNM','577190wfZASN','9JXaOhg','File\x20is\x20not\x20a\x20regular\x20file:\x20'];a21_0x8e51=function(){return _0x1bb176;};return a21_0x8e51();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a22_0x265ac7=a22_0x552a;(function(_0x4faa01,_0x4f9e46){const _0x181b29=a22_0x552a,_0x55d2ba=_0x4faa01();while(!![]){try{const _0x3e4ea4=parseInt(_0x181b29(0x1d0))/0x1*(parseInt(_0x181b29(0x1d8))/0x2)+parseInt(_0x181b29(0x1d6))/0x3*(parseInt(_0x181b29(0x1ea))/0x4)+parseInt(_0x181b29(0x1b7))/0x5*(parseInt(_0x181b29(0x1da))/0x6)+parseInt(_0x181b29(0x1f0))/0x7*(-parseInt(_0x181b29(0x1e4))/0x8)+parseInt(_0x181b29(0x1db))/0x9+parseInt(_0x181b29(0x1c2))/0xa+-parseInt(_0x181b29(0x1e7))/0xb*(parseInt(_0x181b29(0x1c8))/0xc);if(_0x3e4ea4===_0x4f9e46)break;else _0x55d2ba['push'](_0x55d2ba['shift']());}catch(_0x3afeba){_0x55d2ba['push'](_0x55d2ba['shift']());}}}(a22_0x4567,0x3cffa));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_0x265ac7(0x1c5),'type':a22_0x265ac7(0x1e8),'description':a22_0x265ac7(0x1ee),'default':![]};function a22_0x4567(){const _0x50dae9=['#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','\x20\x20project:\x20','50KtFius','bool','apps','project-or-global-explicit','pageSize','Config\x20files:\x0a','409731wbsWkU','keys','4336pUAhgM','trim','126kdIYuR','290619HWxuXj','format','Key\x20not\x20found:\x20','object','Deleted\x20`','\x22\x20is\x20not\x20settable.','\x20config\x20get\x20<key>','riskLevel','Set\x20a\x20config\x20value','1409056yhlHzi','\x20config\x20set\x20<key>\x20<value>\x20[--global]','appcode','253lXjGzX','boolean','Top-level\x20key\x20\x22','12VJOlRz','join',';\x20apps.<alias>.appcode','\x22.\x20Allowed:\x20','Write\x20to\x20global\x20config','Key\x20\x22','7vGxdSj','length','field','Invalid\x20value\x20for\x20\x22','\x22\x20not\x20found\x20at\x20top\x20level.','list','config','key','List\x20current\x20config','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','\x20\x20global:\x20\x20','isArray','(none)','5080RTMGhy','write','value','Usage:\x20','Get\x20a\x20config\x20value','includes','pretty','args','log','set','\x20(global)','479530FHytyn','`\x20=\x20\x22','split','global','validation','../../context.js','101076YOSAKp','Missing\x20key\x20or\x20value.','pageSize\x20must\x20be\x20a\x20positive\x20number','stringify','delete','alias'];a22_0x4567=function(){return _0x50dae9;};return a22_0x4567();}function a22_0x552a(_0x50ad95,_0x3a4b17){_0x50ad95=_0x50ad95-0x1ad;const _0x4567ec=a22_0x4567();let _0x552aab=_0x4567ec[_0x50ad95];return _0x552aab;}function parseAliasAppcodeSetKey(_0x29f39d){const _0x3845cf=a22_0x265ac7,_0x20fb95=_0x29f39d[_0x3845cf(0x1c4)]('.');if(_0x20fb95['length']!==0x3||_0x20fb95[0x0]!==_0x3845cf(0x1d2)||_0x20fb95[0x2]!==_0x3845cf(0x1e6))return undefined;const _0x332647=_0x20fb95[0x1]?.[_0x3845cf(0x1d9)]();return _0x332647?_0x332647:undefined;}function parseAliasDeleteKey(_0x186891){const _0xe2cbd4=a22_0x265ac7,_0x1522e3=_0x186891[_0xe2cbd4(0x1c4)]('.');if(_0x1522e3[_0xe2cbd4(0x1f1)]===0x2&&_0x1522e3[0x0]===_0xe2cbd4(0x1d2)){const _0x215de0=_0x1522e3[0x1]?.[_0xe2cbd4(0x1d9)]();return _0x215de0?{'alias':_0x215de0}:undefined;}if(_0x1522e3[_0xe2cbd4(0x1f1)]===0x3&&_0x1522e3[0x0]===_0xe2cbd4(0x1d2)&&_0x1522e3[0x2]===_0xe2cbd4(0x1e6)){const _0x2940aa=_0x1522e3[0x1]?.[_0xe2cbd4(0x1d9)]();return _0x2940aa?{'alias':_0x2940aa,'field':'appcode'}:undefined;}return undefined;}function setLocalAppAlias(_0x45f1a0,_0x56c8d3,_0x37532b){const _0x5d2cb8=a22_0x265ac7,_0x1f4cb8=_0x45f1a0[_0x5d2cb8(0x1d2)]&&typeof _0x45f1a0[_0x5d2cb8(0x1d2)]===_0x5d2cb8(0x1de)&&!Array['isArray'](_0x45f1a0[_0x5d2cb8(0x1d2)])?_0x45f1a0[_0x5d2cb8(0x1d2)]:{},_0x353854=_0x1f4cb8[_0x56c8d3]&&typeof _0x1f4cb8[_0x56c8d3]==='object'&&!Array[_0x5d2cb8(0x1b5)](_0x1f4cb8[_0x56c8d3])?_0x1f4cb8[_0x56c8d3]:{};_0x353854[_0x5d2cb8(0x1e6)]=_0x37532b,_0x1f4cb8[_0x56c8d3]=_0x353854,_0x45f1a0[_0x5d2cb8(0x1d2)]=_0x1f4cb8;}function deleteLocalAppAlias(_0x42ebf0,_0x4b335e){const _0x4e8285=a22_0x265ac7;if(!_0x42ebf0[_0x4e8285(0x1d2)]||typeof _0x42ebf0[_0x4e8285(0x1d2)]!==_0x4e8285(0x1de)||Array['isArray'](_0x42ebf0[_0x4e8285(0x1d2)]))return![];const _0x415f35=_0x42ebf0[_0x4e8285(0x1d2)],_0x5a99bc=_0x415f35[_0x4b335e['alias']];if(!_0x5a99bc||typeof _0x5a99bc!==_0x4e8285(0x1de)||Array[_0x4e8285(0x1b5)](_0x5a99bc))return![];if(!_0x4b335e[_0x4e8285(0x1f2)])return delete _0x415f35[_0x4b335e[_0x4e8285(0x1cd)]],!![];if(!(_0x4b335e['field']in _0x5a99bc))return![];return delete _0x5a99bc[_0x4b335e[_0x4e8285(0x1f2)]],Object[_0x4e8285(0x1d7)](_0x5a99bc)[_0x4e8285(0x1f1)]===0x0&&delete _0x415f35[_0x4b335e[_0x4e8285(0x1cd)]],!![];}const listDef={'service':'config','command':a22_0x265ac7(0x1af),'description':a22_0x265ac7(0x1b2),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x214f7f){const _0x3f69a9=a22_0x265ac7,{buildConfigFromFlags:_0x40a759}=await import(_0x3f69a9(0x1c7)),_0x48959b=_0x40a759({}),_0x1dbd78=getProjectConfigPath(),_0x336e55=resolveWriteConfigPath(_0x3f69a9(0x1c5));if(_0x214f7f[_0x3f69a9(0x1dc)]===_0x3f69a9(0x1bd))return{'ok':!![],'message':_0x3f69a9(0x1ce)+(JSON[_0x3f69a9(0x1cb)](_0x48959b['raw'],null,0x2)+'\x0a\x0a')+_0x3f69a9(0x1d5)+(_0x3f69a9(0x1cf)+(_0x1dbd78??_0x3f69a9(0x1b6))+'\x0a')+(_0x3f69a9(0x1b4)+_0x336e55)};return{'ok':!![],'data':{'effective':_0x48959b['raw'],'configFiles':{'project':_0x1dbd78??null,'global':_0x336e55}}};}},getDef={'service':a22_0x265ac7(0x1b0),'command':'get','description':a22_0x265ac7(0x1bb),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':'Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','required':!![]}],'flags':[],async 'execute'(_0x4debe0){const _0x3cfa32=a22_0x265ac7,_0x2ad38b=_0x4debe0[_0x3cfa32(0x1be)][0x0];if(!_0x2ad38b)throw CliErrors['validation']('Missing\x20key\x20argument.',_0x3cfa32(0x1ba)+CLI_BIN_NAME+_0x3cfa32(0x1e1));const {buildConfigFromFlags:_0x1fa29c}=await import(_0x3cfa32(0x1c7)),{raw:_0x3493e7}=_0x1fa29c({});if(_0x2ad38b[_0x3cfa32(0x1bc)]('.')){const _0x1e77f3=_0x2ad38b[_0x3cfa32(0x1c4)]('.');let _0x1ff714=_0x3493e7;for(const _0xb20023 of _0x1e77f3){if(_0x1ff714==null||typeof _0x1ff714!==_0x3cfa32(0x1de))throw CliErrors[_0x3cfa32(0x1c6)](_0x3cfa32(0x1dd)+_0x2ad38b);_0x1ff714=_0x1ff714[_0xb20023];}if(_0x1ff714===undefined)throw CliErrors[_0x3cfa32(0x1c6)](_0x3cfa32(0x1dd)+_0x2ad38b);return console[_0x3cfa32(0x1bf)](typeof _0x1ff714===_0x3cfa32(0x1de)?JSON['stringify'](_0x1ff714,null,0x2):String(_0x1ff714)),{'ok':!![]};}const _0x3d4971=_0x3493e7[_0x2ad38b];if(_0x3d4971===undefined)throw CliErrors[_0x3cfa32(0x1c6)](_0x3cfa32(0x1dd)+_0x2ad38b);return console[_0x3cfa32(0x1bf)](typeof _0x3d4971==='object'?JSON[_0x3cfa32(0x1cb)](_0x3d4971,null,0x2):String(_0x3d4971)),{'ok':!![]};}},setDef={'service':a22_0x265ac7(0x1b0),'command':a22_0x265ac7(0x1c0),'description':a22_0x265ac7(0x1e3),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x265ac7(0x1b1),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x265ac7(0x1b9),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0xaba2f7){const _0x3c244c=a22_0x265ac7,_0x224252=_0xaba2f7[_0x3c244c(0x1be)][0x0],_0x404bb8=_0xaba2f7[_0x3c244c(0x1be)][0x1];if(!_0x224252||_0x404bb8===undefined)throw CliErrors[_0x3c244c(0x1c6)](_0x3c244c(0x1c9),_0x3c244c(0x1ba)+CLI_BIN_NAME+_0x3c244c(0x1e5));if(ENUM_KEYS[_0x224252]&&!ENUM_KEYS[_0x224252]['includes'](_0x404bb8))throw CliErrors['validation'](_0x3c244c(0x1ad)+_0x224252+_0x3c244c(0x1ed)+ENUM_KEYS[_0x224252][_0x3c244c(0x1eb)](',\x20'));if(_0x224252===_0x3c244c(0x1e2))throw CliErrors['validation'](_0x3c244c(0x1b3));if(_0x224252===_0x3c244c(0x1d4)){const _0xc43d42=Number(_0x404bb8);if(isNaN(_0xc43d42)||_0xc43d42<=0x0)throw CliErrors[_0x3c244c(0x1c6)](_0x3c244c(0x1ca));}const _0x957dee=resolveWriteScope({'explicitGlobal':_0xaba2f7[_0x3c244c(0x1d1)](_0x3c244c(0x1c5)),'policy':_0x3c244c(0x1d3)}),_0x55468e=toScopeFlags(_0x957dee),_0x37e8ee=readScopedConfig(_0x55468e),_0x3b437f=parseAliasAppcodeSetKey(_0x224252);if(!_0x3b437f&&!isTopLevelConfigKey(_0x224252))throw CliErrors[_0x3c244c(0x1c6)](_0x3c244c(0x1e9)+_0x224252+_0x3c244c(0x1e0),'Settable\x20keys:\x20'+getTopLevelConfigKeySummary()+_0x3c244c(0x1ec));return _0x3b437f?setLocalAppAlias(_0x37e8ee,_0x3b437f,_0x404bb8):_0x37e8ee[_0x224252]=_0x224252==='pageSize'?Number(_0x404bb8):_0x404bb8,console['log']('Set\x20`'+_0x224252+_0x3c244c(0x1c3)+_0x404bb8+'\x22'+(_0x957dee===_0x3c244c(0x1c5)?_0x3c244c(0x1c1):'')),writeScopedConfig(_0x37e8ee,_0x55468e),{'ok':!![]};}},deleteDef={'service':a22_0x265ac7(0x1b0),'command':a22_0x265ac7(0x1cc),'description':'Delete\x20a\x20config\x20value','risk':a22_0x265ac7(0x1b8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x265ac7(0x1b1),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0xcc8216){const _0x156836=a22_0x265ac7,_0x34e777=_0xcc8216[_0x156836(0x1be)][0x0];if(!_0x34e777)throw CliErrors[_0x156836(0x1c6)]('Missing\x20key\x20argument.',_0x156836(0x1ba)+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x220c38=resolveWriteScope({'explicitGlobal':_0xcc8216[_0x156836(0x1d1)](_0x156836(0x1c5)),'policy':_0x156836(0x1d3)}),_0x5aaa70=toScopeFlags(_0x220c38),_0x2d6af5=readScopedConfig(_0x5aaa70),_0x1ee977=parseAliasDeleteKey(_0x34e777);if(_0x1ee977){if(!deleteLocalAppAlias(_0x2d6af5,_0x1ee977))throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x34e777);return console[_0x156836(0x1bf)](_0x156836(0x1df)+_0x34e777+'`'+(_0x220c38===_0x156836(0x1c5)?_0x156836(0x1c1):'')),writeScopedConfig(_0x2d6af5,_0x5aaa70),{'ok':!![]};}if(_0x2d6af5[_0x34e777]===undefined)throw CliErrors[_0x156836(0x1c6)](_0x156836(0x1ef)+_0x34e777+_0x156836(0x1ae));return delete _0x2d6af5[_0x34e777],console[_0x156836(0x1bf)](_0x156836(0x1df)+_0x34e777+'`'+(_0x220c38===_0x156836(0x1c5)?_0x156836(0x1c1):'')),writeScopedConfig(_0x2d6af5,_0x5aaa70),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
1
|
+
const a22_0x457ff7=a22_0x412e;(function(_0x52e1b1,_0xe00372){const _0x40fc0c=a22_0x412e,_0x19bbc5=_0x52e1b1();while(!![]){try{const _0x56e04e=parseInt(_0x40fc0c(0x17a))/0x1+parseInt(_0x40fc0c(0x16a))/0x2*(parseInt(_0x40fc0c(0x17c))/0x3)+-parseInt(_0x40fc0c(0x192))/0x4+parseInt(_0x40fc0c(0x17d))/0x5+parseInt(_0x40fc0c(0x176))/0x6+parseInt(_0x40fc0c(0x174))/0x7*(parseInt(_0x40fc0c(0x177))/0x8)+-parseInt(_0x40fc0c(0x181))/0x9*(parseInt(_0x40fc0c(0x159))/0xa);if(_0x56e04e===_0xe00372)break;else _0x19bbc5['push'](_0x19bbc5['shift']());}catch(_0x8cec2d){_0x19bbc5['push'](_0x19bbc5['shift']());}}}(a22_0x9278,0x39401));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_0x457ff7(0x16e),'type':a22_0x457ff7(0x186),'description':a22_0x457ff7(0x18b),'default':![]};function parseAliasAppcodeSetKey(_0x479962){const _0x5cdfb6=a22_0x457ff7,_0x27b7cc=_0x479962[_0x5cdfb6(0x15b)]('.');if(_0x27b7cc[_0x5cdfb6(0x183)]!==0x3||_0x27b7cc[0x0]!==_0x5cdfb6(0x173)||_0x27b7cc[0x2]!=='appcode')return undefined;const _0x581780=_0x27b7cc[0x1]?.['trim']();return _0x581780?_0x581780:undefined;}function a22_0x412e(_0x43ffbc,_0x324d97){_0x43ffbc=_0x43ffbc-0x157;const _0x92786c=a22_0x9278();let _0x412e44=_0x92786c[_0x43ffbc];return _0x412e44;}function parseAliasDeleteKey(_0x408b11){const _0x5838c0=a22_0x457ff7,_0x4feba9=_0x408b11[_0x5838c0(0x15b)]('.');if(_0x4feba9[_0x5838c0(0x183)]===0x2&&_0x4feba9[0x0]===_0x5838c0(0x173)){const _0x3b2851=_0x4feba9[0x1]?.[_0x5838c0(0x172)]();return _0x3b2851?{'alias':_0x3b2851}:undefined;}if(_0x4feba9[_0x5838c0(0x183)]===0x3&&_0x4feba9[0x0]===_0x5838c0(0x173)&&_0x4feba9[0x2]===_0x5838c0(0x17b)){const _0x2af6c8=_0x4feba9[0x1]?.[_0x5838c0(0x172)]();return _0x2af6c8?{'alias':_0x2af6c8,'field':_0x5838c0(0x17b)}:undefined;}return undefined;}function a22_0x9278(){const _0x3d1973=['3XGFGcy','1943540woLbtP','stringify','pretty','(none)','1116ioZmGD','\x20(global)','length','keys','pageSize\x20must\x20be\x20a\x20positive\x20number','boolean','args','Key\x20\x22','field','project-or-global-explicit','Write\x20to\x20global\x20config','pageSize','alias','object','set','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Set\x20a\x20config\x20value','1832640qUjKRM','\x20\x20project:\x20','Key\x20not\x20found:\x20','Invalid\x20value\x20for\x20\x22','config','../../context.js','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','32660hRyqNV','Missing\x20key\x20or\x20value.','split',';\x20apps.<alias>.appcode','Deleted\x20`','bool','includes','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','Delete\x20a\x20config\x20value','isArray','format','delete','Usage:\x20','\x20config\x20get\x20<key>','read','`\x20=\x20\x22','value','466546REdnwQ','validation','key','get','global','raw','log','riskLevel','trim','apps','7hCbEUe','Get\x20a\x20config\x20value','1665528eLjDhH','1266632ILOXMY','\x20config\x20set\x20<key>\x20<value>\x20[--global]','write','39743elHmus','appcode'];a22_0x9278=function(){return _0x3d1973;};return a22_0x9278();}function setLocalAppAlias(_0x25116a,_0x4e1314,_0x1bc016){const _0x1f682d=a22_0x457ff7,_0x5d18e1=_0x25116a[_0x1f682d(0x173)]&&typeof _0x25116a[_0x1f682d(0x173)]==='object'&&!Array['isArray'](_0x25116a['apps'])?_0x25116a[_0x1f682d(0x173)]:{},_0x242e7f=_0x5d18e1[_0x4e1314]&&typeof _0x5d18e1[_0x4e1314]===_0x1f682d(0x18e)&&!Array[_0x1f682d(0x162)](_0x5d18e1[_0x4e1314])?_0x5d18e1[_0x4e1314]:{};_0x242e7f[_0x1f682d(0x17b)]=_0x1bc016,_0x5d18e1[_0x4e1314]=_0x242e7f,_0x25116a[_0x1f682d(0x173)]=_0x5d18e1;}function deleteLocalAppAlias(_0x53028d,_0x4b6669){const _0x2533fd=a22_0x457ff7;if(!_0x53028d[_0x2533fd(0x173)]||typeof _0x53028d[_0x2533fd(0x173)]!==_0x2533fd(0x18e)||Array[_0x2533fd(0x162)](_0x53028d[_0x2533fd(0x173)]))return![];const _0x51d716=_0x53028d[_0x2533fd(0x173)],_0x2cc9e7=_0x51d716[_0x4b6669[_0x2533fd(0x18d)]];if(!_0x2cc9e7||typeof _0x2cc9e7!==_0x2533fd(0x18e)||Array[_0x2533fd(0x162)](_0x2cc9e7))return![];if(!_0x4b6669[_0x2533fd(0x189)])return delete _0x51d716[_0x4b6669[_0x2533fd(0x18d)]],!![];if(!(_0x4b6669[_0x2533fd(0x189)]in _0x2cc9e7))return![];return delete _0x2cc9e7[_0x4b6669[_0x2533fd(0x189)]],Object[_0x2533fd(0x184)](_0x2cc9e7)['length']===0x0&&delete _0x51d716[_0x4b6669[_0x2533fd(0x18d)]],!![];}const listDef={'service':a22_0x457ff7(0x196),'command':'list','description':'List\x20current\x20config','risk':a22_0x457ff7(0x167),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x500fb5){const _0x43c03b=a22_0x457ff7,{buildConfigFromFlags:_0x377771}=await import(_0x43c03b(0x157)),_0x41c79c=_0x377771({}),_0x56125d=getProjectConfigPath(),_0x2ef362=resolveWriteConfigPath(_0x43c03b(0x16e));if(_0x500fb5[_0x43c03b(0x163)]===_0x43c03b(0x17f))return{'ok':!![],'message':_0x43c03b(0x158)+(JSON[_0x43c03b(0x17e)](_0x41c79c[_0x43c03b(0x16f)],null,0x2)+'\x0a\x0a')+'Config\x20files:\x0a'+(_0x43c03b(0x193)+(_0x56125d??_0x43c03b(0x180))+'\x0a')+('\x20\x20global:\x20\x20'+_0x2ef362)};return{'ok':!![],'data':{'effective':_0x41c79c[_0x43c03b(0x16f)],'configFiles':{'project':_0x56125d??null,'global':_0x2ef362}}};}},getDef={'service':a22_0x457ff7(0x196),'command':a22_0x457ff7(0x16d),'description':a22_0x457ff7(0x175),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x457ff7(0x16c),'description':a22_0x457ff7(0x160),'required':!![]}],'flags':[],async 'execute'(_0x2a36d3){const _0x58adf7=a22_0x457ff7,_0xc7f4d8=_0x2a36d3[_0x58adf7(0x187)][0x0];if(!_0xc7f4d8)throw CliErrors[_0x58adf7(0x16b)]('Missing\x20key\x20argument.',_0x58adf7(0x165)+CLI_BIN_NAME+_0x58adf7(0x166));const {buildConfigFromFlags:_0x319303}=await import('../../context.js'),{raw:_0x5776be}=_0x319303({});if(_0xc7f4d8['includes']('.')){const _0x3cc311=_0xc7f4d8[_0x58adf7(0x15b)]('.');let _0x3c608c=_0x5776be;for(const _0x34bba7 of _0x3cc311){if(_0x3c608c==null||typeof _0x3c608c!==_0x58adf7(0x18e))throw CliErrors['validation'](_0x58adf7(0x194)+_0xc7f4d8);_0x3c608c=_0x3c608c[_0x34bba7];}if(_0x3c608c===undefined)throw CliErrors[_0x58adf7(0x16b)]('Key\x20not\x20found:\x20'+_0xc7f4d8);return console['log'](typeof _0x3c608c===_0x58adf7(0x18e)?JSON['stringify'](_0x3c608c,null,0x2):String(_0x3c608c)),{'ok':!![]};}const _0x40ff41=_0x5776be[_0xc7f4d8];if(_0x40ff41===undefined)throw CliErrors['validation'](_0x58adf7(0x194)+_0xc7f4d8);return console[_0x58adf7(0x170)](typeof _0x40ff41===_0x58adf7(0x18e)?JSON[_0x58adf7(0x17e)](_0x40ff41,null,0x2):String(_0x40ff41)),{'ok':!![]};}},setDef={'service':a22_0x457ff7(0x196),'command':a22_0x457ff7(0x18f),'description':a22_0x457ff7(0x191),'risk':a22_0x457ff7(0x179),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x457ff7(0x16c),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x457ff7(0x169),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x40d823){const _0x1a1892=a22_0x457ff7,_0x5cc59e=_0x40d823[_0x1a1892(0x187)][0x0],_0x148e93=_0x40d823[_0x1a1892(0x187)][0x1];if(!_0x5cc59e||_0x148e93===undefined)throw CliErrors[_0x1a1892(0x16b)](_0x1a1892(0x15a),_0x1a1892(0x165)+CLI_BIN_NAME+_0x1a1892(0x178));if(ENUM_KEYS[_0x5cc59e]&&!ENUM_KEYS[_0x5cc59e][_0x1a1892(0x15f)](_0x148e93))throw CliErrors[_0x1a1892(0x16b)](_0x1a1892(0x195)+_0x5cc59e+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x5cc59e]['join'](',\x20'));if(_0x5cc59e===_0x1a1892(0x171))throw CliErrors['validation'](_0x1a1892(0x190));if(_0x5cc59e==='pageSize'){const _0x4a7e81=Number(_0x148e93);if(isNaN(_0x4a7e81)||_0x4a7e81<=0x0)throw CliErrors['validation'](_0x1a1892(0x185));}const _0x44bb24=resolveWriteScope({'explicitGlobal':_0x40d823[_0x1a1892(0x15e)](_0x1a1892(0x16e)),'policy':_0x1a1892(0x18a)}),_0x531843=toScopeFlags(_0x44bb24),_0x1893da=readScopedConfig(_0x531843),_0x3f52c1=parseAliasAppcodeSetKey(_0x5cc59e);if(!_0x3f52c1&&!isTopLevelConfigKey(_0x5cc59e))throw CliErrors[_0x1a1892(0x16b)]('Top-level\x20key\x20\x22'+_0x5cc59e+'\x22\x20is\x20not\x20settable.','Settable\x20keys:\x20'+getTopLevelConfigKeySummary()+_0x1a1892(0x15c));return _0x3f52c1?setLocalAppAlias(_0x1893da,_0x3f52c1,_0x148e93):_0x1893da[_0x5cc59e]=_0x5cc59e===_0x1a1892(0x18c)?Number(_0x148e93):_0x148e93,console['log']('Set\x20`'+_0x5cc59e+_0x1a1892(0x168)+_0x148e93+'\x22'+(_0x44bb24===_0x1a1892(0x16e)?_0x1a1892(0x182):'')),writeScopedConfig(_0x1893da,_0x531843),{'ok':!![]};}},deleteDef={'service':a22_0x457ff7(0x196),'command':a22_0x457ff7(0x164),'description':a22_0x457ff7(0x161),'risk':a22_0x457ff7(0x179),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x457ff7(0x16c),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x1ef59e){const _0x48f9ea=a22_0x457ff7,_0x30f45e=_0x1ef59e[_0x48f9ea(0x187)][0x0];if(!_0x30f45e)throw CliErrors['validation']('Missing\x20key\x20argument.','Usage:\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x1d5ec9=resolveWriteScope({'explicitGlobal':_0x1ef59e[_0x48f9ea(0x15e)](_0x48f9ea(0x16e)),'policy':'project-or-global-explicit'}),_0x5ca65c=toScopeFlags(_0x1d5ec9),_0xffa3de=readScopedConfig(_0x5ca65c),_0x5be7d9=parseAliasDeleteKey(_0x30f45e);if(_0x5be7d9){if(!deleteLocalAppAlias(_0xffa3de,_0x5be7d9))throw CliErrors[_0x48f9ea(0x16b)](_0x48f9ea(0x194)+_0x30f45e);return console['log'](_0x48f9ea(0x15d)+_0x30f45e+'`'+(_0x1d5ec9===_0x48f9ea(0x16e)?_0x48f9ea(0x182):'')),writeScopedConfig(_0xffa3de,_0x5ca65c),{'ok':!![]};}if(_0xffa3de[_0x30f45e]===undefined)throw CliErrors[_0x48f9ea(0x16b)](_0x48f9ea(0x188)+_0x30f45e+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0xffa3de[_0x30f45e],console[_0x48f9ea(0x170)]('Deleted\x20`'+_0x30f45e+'`'+(_0x1d5ec9==='global'?_0x48f9ea(0x182):'')),writeScopedConfig(_0xffa3de,_0x5ca65c),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x422a69,_0x23b426){var _0xd76ec6=a23_0x12bb,_0x39fcef=_0x422a69();while(!![]){try{var _0xe2d6a9=-parseInt(_0xd76ec6(0x19b))/0x1*(parseInt(_0xd76ec6(0x19e))/0x2)+-parseInt(_0xd76ec6(0x197))/0x3+parseInt(_0xd76ec6(0x19d))/0x4*(-parseInt(_0xd76ec6(0x198))/0x5)+parseInt(_0xd76ec6(0x199))/0x6*(-parseInt(_0xd76ec6(0x1a0))/0x7)+parseInt(_0xd76ec6(0x19f))/0x8*(parseInt(_0xd76ec6(0x1a1))/0x9)+parseInt(_0xd76ec6(0x19c))/0xa+parseInt(_0xd76ec6(0x19a))/0xb;if(_0xe2d6a9===_0x23b426)break;else _0x39fcef['push'](_0x39fcef['shift']());}catch(_0x335605){_0x39fcef['push'](_0x39fcef['shift']());}}}(a23_0x5897,0x391cb));import{CLI_BIN_NAME}from'../../constant/cli.js';function a23_0x12bb(_0x512e79,_0x1299b2){_0x512e79=_0x512e79-0x197;var _0x58977b=a23_0x5897();var _0x12bbe8=_0x58977b[_0x512e79];return _0x12bbe8;}export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';function a23_0x5897(){var _0x4b54f6=['3848wfqTVq','21280ljlmsT','1359jSJOhJ','963174PYZlYy','70ibzfqe','174cXQtTI','8261638qSYHHE','631TQOYUR','3644880mUcVAd','60892AGIQpz','1052IwrRsl'];a23_0x5897=function(){return _0x4b54f6;};return a23_0x5897();}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_0x195886=a24_0x461b;(function(_0x22985f,_0x35dddd){const _0x4ee428=a24_0x461b,_0x1bd3ab=_0x22985f();while(!![]){try{const _0x4e5a85=parseInt(_0x4ee428(0x190))/0x1*(-parseInt(_0x4ee428(0x171))/0x2)+parseInt(_0x4ee428(0x173))/0x3*(-parseInt(_0x4ee428(0x191))/0x4)+-parseInt(_0x4ee428(0x197))/0x5*(-parseInt(_0x4ee428(0x18c))/0x6)+parseInt(_0x4ee428(0x172))/0x7*(-parseInt(_0x4ee428(0x158))/0x8)+-parseInt(_0x4ee428(0x167))/0x9+parseInt(_0x4ee428(0x16f))/0xa*(-parseInt(_0x4ee428(0x18f))/0xb)+-parseInt(_0x4ee428(0x193))/0xc*(-parseInt(_0x4ee428(0x19b))/0xd);if(_0x4e5a85===_0x35dddd)break;else _0x1bd3ab['push'](_0x1bd3ab['shift']());}catch(_0x9986bb){_0x1bd3ab['push'](_0x1bd3ab['shift']());}}}(a24_0x3eda,0x35bc7));import{executeData}from'../../core/sdk-client.js';function a24_0x3eda(){const _0x1ff55d=['JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','length','\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}','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','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','paramsRequired','Get\x20a\x20single\x20record\x20by\x20ID','\x20\x20\x20\x20Do\x20NOT\x20use\x20--where,\x20--select,\x20--order-by,\x20--current-page,\x20--page,\x20or\x20--page-size\x20as\x20CLI\x20flags.','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20\x20\x20$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}}]}','now','operation','batch','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','helpExtra','\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\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','385272xPlmdd','create','join','command','delete','\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]}}','Preview:\x20data\x20','\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$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','\x20\x20\x20\x20$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}}','read','\x20\x20WHERE\x20OPERATORS','update','\x20\x20AGGREGATE\x20TYPES','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','1598346PCkfaW','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','\x20\x20PARAMS\x20STRUCTURE','\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','20YPvPIx','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','214414hxVJoW','49SEIhkS','29229neEVwj','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\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}','batchCreate','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20Page\x202:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:2,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20\x20\x20$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\x20a\x20new\x20record\x20in\x20a\x20dataset','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','map','\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}','dryRun','\x20\x20\x20\x20Page\x201:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','/api/{appCode}/','\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\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}','\x20completed\x20in\x20','\x20on\x20dataset\x20','Update\x20an\x20existing\x20record','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','risk','code','description','10926TJkWST','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','build','1840113JbhYkj','3mGzdkf','48qycMNv','high-risk-write','492504fFeGOx','body','filter','\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}]','985LYuoaL','data','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','params','364ReySRY','str','paramsHint','\x20\x20PAGINATION','write'];a24_0x3eda=function(){return _0x1ff55d;};return a24_0x3eda();}import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';function a24_0x461b(_0x27f733,_0x40858a){_0x27f733=_0x27f733-0x144;const _0x3edab9=a24_0x3eda();let _0x461b94=_0x3edab9[_0x27f733];return _0x461b94;}import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a24_0x195886(0x195),'operation':a24_0x195886(0x195),'risk':a24_0x195886(0x162),'paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a24_0x195886(0x152)+'Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':[a24_0x195886(0x163),'\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_0x195886(0x183),a24_0x195886(0x161),a24_0x195886(0x160),'\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_0x195886(0x17b),a24_0x195886(0x15d),'\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}}',a24_0x195886(0x168),a24_0x195886(0x174),'','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}',a24_0x195886(0x14e),'',a24_0x195886(0x147),a24_0x195886(0x178),a24_0x195886(0x17a),a24_0x195886(0x196),a24_0x195886(0x157),a24_0x195886(0x154),'',a24_0x195886(0x19e),a24_0x195886(0x16e),a24_0x195886(0x14c),'\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged',a24_0x195886(0x16b),a24_0x195886(0x181),a24_0x195886(0x179),'\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.'][a24_0x195886(0x15a)]('\x0a')},{'command':'getOne','operation':'getOne','risk':'read','paramsRequired':!![],'description':a24_0x195886(0x14b),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a24_0x195886(0x159),'operation':a24_0x195886(0x159),'risk':'write','paramsRequired':!![],'description':a24_0x195886(0x17c),'paramsHint':a24_0x195886(0x188)},{'command':a24_0x195886(0x177),'operation':a24_0x195886(0x177),'risk':a24_0x195886(0x19f),'paramsRequired':!![],'description':a24_0x195886(0x17d),'paramsHint':a24_0x195886(0x14d)},{'command':a24_0x195886(0x164),'operation':a24_0x195886(0x164),'risk':a24_0x195886(0x19f),'paramsRequired':!![],'description':a24_0x195886(0x187),'paramsHint':a24_0x195886(0x1a0)+'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_0x195886(0x15c),'operation':a24_0x195886(0x15c),'risk':a24_0x195886(0x192),'paramsRequired':!![],'description':a24_0x195886(0x199),'paramsHint':a24_0x195886(0x16c)},{'command':'aggregate','operation':'aggregate','risk':'read','paramsRequired':![],'description':'Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','paramsHint':a24_0x195886(0x148)+a24_0x195886(0x175),'helpExtra':[a24_0x195886(0x165),a24_0x195886(0x16d),a24_0x195886(0x145),a24_0x195886(0x184),a24_0x195886(0x176),a24_0x195886(0x17f),'\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','\x20\x20\x20\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}','',a24_0x195886(0x16a),a24_0x195886(0x146),a24_0x195886(0x18d),a24_0x195886(0x156),a24_0x195886(0x166),a24_0x195886(0x15f),a24_0x195886(0x169),'','\x20\x20EXAMPLES','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','',a24_0x195886(0x170),a24_0x195886(0x149),'',a24_0x195886(0x153)][a24_0x195886(0x15a)]('\x0a')}];function makeDataCommand(_0x1a8f3d){const _0x52294d=a24_0x195886,_0x38bb6e='data\x20'+_0x1a8f3d['command'],_0x1f0132={'service':_0x52294d(0x198),'command':_0x1a8f3d[_0x52294d(0x15b)],'description':_0x1a8f3d[_0x52294d(0x18b)],'risk':_0x1a8f3d[_0x52294d(0x189)],'helpExtra':_0x1a8f3d[_0x52294d(0x155)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x1a8f3d[_0x52294d(0x19d)]}],'validate':async _0x4891f5=>{const _0x463cb2=_0x52294d;_0x1a8f3d[_0x463cb2(0x14a)]&&requireAnyOf(_0x4891f5,[_0x463cb2(0x19a)],_0x38bb6e),_0x1a8f3d[_0x463cb2(0x150)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x4891f5['str']('params'))),_0x1a8f3d[_0x463cb2(0x150)]===_0x463cb2(0x164)&&parseUpdateIdsFromParams(parseJsonParams(_0x4891f5[_0x463cb2(0x19c)](_0x463cb2(0x19a)))??{});},async 'execute'(_0xf11e42){const _0x2c1273=_0x52294d,_0x1e939f=_0xf11e42[_0x2c1273(0x19c)](_0x2c1273(0x18a)),_0x151911=_0x1a8f3d[_0x2c1273(0x150)]===_0x2c1273(0x177)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0xf11e42['str']('params'))):parseJsonParams(_0xf11e42[_0x2c1273(0x19c)]('params'))??{},_0x580093=_0x1a8f3d[_0x2c1273(0x150)]===_0x2c1273(0x164)?parseUpdateIdsFromParams(_0x151911):undefined,_0x46aa83=_0x580093?normalizeUpdateParamsForRuntime(_0x151911,_0x580093):_0x151911,_0x3d66a1=Date[_0x2c1273(0x14f)](),_0x7ea95b=await executeData(_0x1e939f,_0x1a8f3d[_0x2c1273(0x150)],_0x46aa83),_0x5a39eb=Date[_0x2c1273(0x14f)]()-_0x3d66a1,_0x4b31dd=_0x580093&&_0x580093['length']>0x1?buildBatchUpdateResult(_0x580093,_0x7ea95b):_0x7ea95b;return{'ok':!![],'data':{'result':_0x4b31dd,'elapsed':_0x5a39eb},'message':'data\x20'+_0x1a8f3d[_0x2c1273(0x15b)]+_0x2c1273(0x185)+_0x5a39eb+'ms'};}};return _0x1a8f3d[_0x52294d(0x189)]!==_0x52294d(0x162)&&(_0x1f0132[_0x52294d(0x180)]=async _0x37df0d=>{const _0x5ae99d=_0x52294d,_0x569a2b=_0x37df0d[_0x5ae99d(0x19c)]('code'),_0x43bc65=_0x1a8f3d['operation']===_0x5ae99d(0x177)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x37df0d['str']('params'))):parseJsonParams(_0x37df0d['str'](_0x5ae99d(0x19a)))??{};let _0x43068a=_0x43bc65;if(_0x1a8f3d['operation']==='update'){const _0x30a2a9=parseUpdateIdsFromParams(_0x43bc65);_0x43068a=normalizeUpdateParamsForRuntime(_0x43bc65,_0x30a2a9);}return dryRun('POST',_0x5ae99d(0x182)+_0x569a2b+'/'+_0x1a8f3d[_0x5ae99d(0x150)])[_0x5ae99d(0x194)](_0x43068a)[_0x5ae99d(0x18b)](_0x5ae99d(0x15e)+_0x1a8f3d['command']+_0x5ae99d(0x186)+_0x569a2b)[_0x5ae99d(0x18e)]();}),_0x1f0132;}export const dataDefinitions=specs[a24_0x195886(0x17e)](makeDataCommand);function buildBatchUpdateResult(_0x2fd715,_0x5560de){const _0x19e1c6=a24_0x195886;return{'operation':_0x19e1c6(0x164),'mode':_0x19e1c6(0x151),'ids':_0x2fd715,'total':_0x2fd715[_0x19e1c6(0x144)],'result':_0x5560de};}
|
|
1
|
+
function a24_0x1fbe(){const _0x5f1652=['\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}','232543GLYOhn','\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]}}','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','high-risk-write','/api/{appCode}/','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\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}}]}','\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}}','write','2fkuXNJ','5wWoCHg','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','delete','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','risk','4023848LgXaka','8350830TUIcbh','\x20on\x20dataset\x20','join','\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\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}','6368046fvodch','dryRun','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','paramsHint','3190608UvsouG','POST','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\x20completed\x20in\x20','\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}}','create','map','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\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','\x20\x20PAGINATION','operation','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','\x20\x20PARAMS\x20STRUCTURE','Update\x20an\x20existing\x20record','body','\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','description','14HJUOYh','paramsRequired','length','\x20\x20AGGREGATE\x20TYPES','data','read','996700EANCSY','Get\x20a\x20single\x20record\x20by\x20ID','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','\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\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\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}','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20WHERE\x20OPERATORS','batchCreate','now','data\x20','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','12427173AVkfrH','code','str','\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}}]}','helpExtra','filter','params','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','update','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20Page\x201:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','command','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','getOne','aggregate','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}'];a24_0x1fbe=function(){return _0x5f1652;};return a24_0x1fbe();}const a24_0x3a096d=a24_0xef3b;(function(_0xbf7794,_0x42caaa){const _0x2ee9cb=a24_0xef3b,_0x4d53b1=_0xbf7794();while(!![]){try{const _0x5cb749=parseInt(_0x2ee9cb(0x1b7))/0x1*(-parseInt(_0x2ee9cb(0x1c3))/0x2)+parseInt(_0x2ee9cb(0x1d6))/0x3+-parseInt(_0x2ee9cb(0x1ef))/0x4+-parseInt(_0x2ee9cb(0x1c4))/0x5*(parseInt(_0x2ee9cb(0x1d1))/0x6)+parseInt(_0x2ee9cb(0x1e9))/0x7*(-parseInt(_0x2ee9cb(0x1cb))/0x8)+parseInt(_0x2ee9cb(0x1fd))/0x9+parseInt(_0x2ee9cb(0x1cc))/0xa;if(_0x5cb749===_0x42caaa)break;else _0x4d53b1['push'](_0x4d53b1['shift']());}catch(_0x3a49e9){_0x4d53b1['push'](_0x4d53b1['shift']());}}}(a24_0x1fbe,0xb251b));function a24_0xef3b(_0x11ec06,_0x493595){_0x11ec06=_0x11ec06-0x1b2;const _0x1fbe0f=a24_0x1fbe();let _0xef3b6c=_0x1fbe0f[_0x11ec06];return _0xef3b6c;}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';const specs=[{'command':a24_0x3a096d(0x202),'operation':a24_0x3a096d(0x202),'risk':a24_0x3a096d(0x1ee),'paramsRequired':![],'description':a24_0x3a096d(0x1f1),'paramsHint':a24_0x3a096d(0x1f7)+a24_0x3a096d(0x1bf),'helpExtra':[a24_0x3a096d(0x1f8),'\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}',a24_0x3a096d(0x1b5),a24_0x3a096d(0x1e3),'\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}',a24_0x3a096d(0x1b8),a24_0x3a096d(0x1c1),'\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}',a24_0x3a096d(0x1da),'','\x20\x20LOGICAL\x20COMBINATORS',a24_0x3a096d(0x200),a24_0x3a096d(0x1c0),'','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)',a24_0x3a096d(0x1de),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20\x20\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_0x3a096d(0x1bb),a24_0x3a096d(0x1d8),'',a24_0x3a096d(0x1e1),a24_0x3a096d(0x1f3),'\x20\x20\x20\x20Do\x20NOT\x20use\x20--where,\x20--select,\x20--order-by,\x20--current-page,\x20--page,\x20or\x20--page-size\x20as\x20CLI\x20flags.','\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged',a24_0x3a096d(0x1e7),a24_0x3a096d(0x207),'\x20\x20\x20\x20Page\x202:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:2,\x22pageSize\x22:20}\x27',a24_0x3a096d(0x1f2)][a24_0x3a096d(0x1ce)]('\x0a')},{'command':a24_0x3a096d(0x1b3),'operation':a24_0x3a096d(0x1b3),'risk':a24_0x3a096d(0x1ee),'paramsRequired':!![],'description':a24_0x3a096d(0x1f0),'paramsHint':a24_0x3a096d(0x206)},{'command':'create','operation':a24_0x3a096d(0x1db),'risk':a24_0x3a096d(0x1c2),'paramsRequired':!![],'description':a24_0x3a096d(0x1c6),'paramsHint':a24_0x3a096d(0x1f5)},{'command':'batchCreate','operation':a24_0x3a096d(0x1f9),'risk':a24_0x3a096d(0x1c2),'paramsRequired':!![],'description':'Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','paramsHint':a24_0x3a096d(0x1b2)},{'command':a24_0x3a096d(0x205),'operation':a24_0x3a096d(0x205),'risk':a24_0x3a096d(0x1c2),'paramsRequired':!![],'description':a24_0x3a096d(0x1e5),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20'+a24_0x3a096d(0x1b9)},{'command':'delete','operation':a24_0x3a096d(0x1c8),'risk':a24_0x3a096d(0x1bc),'paramsRequired':!![],'description':a24_0x3a096d(0x1be),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a24_0x3a096d(0x1b4),'operation':'aggregate','risk':a24_0x3a096d(0x1ee),'paramsRequired':![],'description':'Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','paramsHint':a24_0x3a096d(0x1fc)+a24_0x3a096d(0x1d4),'helpExtra':[a24_0x3a096d(0x1ec),'\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_0x3a096d(0x1b6),a24_0x3a096d(0x1f6),a24_0x3a096d(0x1dd),a24_0x3a096d(0x1cf),a24_0x3a096d(0x1f4),a24_0x3a096d(0x1d0),'',a24_0x3a096d(0x1e4),'\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_0x3a096d(0x1d3),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)',a24_0x3a096d(0x1c9),'\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}}]',a24_0x3a096d(0x1ba),'',a24_0x3a096d(0x1e0),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a24_0x3a096d(0x204),'',a24_0x3a096d(0x1c5),a24_0x3a096d(0x1df),'',a24_0x3a096d(0x1c7)][a24_0x3a096d(0x1ce)]('\x0a')}];function makeDataCommand(_0x28075e){const _0x36ead0=a24_0x3a096d,_0x540817=_0x36ead0(0x1fb)+_0x28075e[_0x36ead0(0x208)],_0x5d9a71={'service':_0x36ead0(0x1ed),'command':_0x28075e[_0x36ead0(0x208)],'description':_0x28075e[_0x36ead0(0x1e8)],'risk':_0x28075e[_0x36ead0(0x1ca)],'helpExtra':_0x28075e[_0x36ead0(0x201)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x28075e[_0x36ead0(0x1d5)]}],'validate':async _0x222b3f=>{const _0x20e2c3=_0x36ead0;_0x28075e[_0x20e2c3(0x1ea)]&&requireAnyOf(_0x222b3f,[_0x20e2c3(0x203)],_0x540817),_0x28075e[_0x20e2c3(0x1e2)]===_0x20e2c3(0x1f9)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x222b3f[_0x20e2c3(0x1ff)](_0x20e2c3(0x203)))),_0x28075e[_0x20e2c3(0x1e2)]===_0x20e2c3(0x205)&&parseUpdateIdsFromParams(parseJsonParams(_0x222b3f[_0x20e2c3(0x1ff)](_0x20e2c3(0x203)))??{});},async 'execute'(_0x25dc81){const _0x31b4c6=_0x36ead0,_0x463091=_0x25dc81[_0x31b4c6(0x1ff)](_0x31b4c6(0x1fe)),_0x1f2e72=_0x28075e[_0x31b4c6(0x1e2)]===_0x31b4c6(0x1f9)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x25dc81[_0x31b4c6(0x1ff)]('params'))):parseJsonParams(_0x25dc81[_0x31b4c6(0x1ff)](_0x31b4c6(0x203)))??{},_0x36ed86=_0x28075e['operation']===_0x31b4c6(0x205)?parseUpdateIdsFromParams(_0x1f2e72):undefined,_0x45e370=_0x36ed86?normalizeUpdateParamsForRuntime(_0x1f2e72,_0x36ed86):_0x1f2e72,_0x3f8b0b=Date[_0x31b4c6(0x1fa)](),_0x13c99a=await executeData(_0x463091,_0x28075e['operation'],_0x45e370),_0x2ed5ca=Date[_0x31b4c6(0x1fa)]()-_0x3f8b0b,_0x54c7ca=_0x36ed86&&_0x36ed86[_0x31b4c6(0x1eb)]>0x1?buildBatchUpdateResult(_0x36ed86,_0x13c99a):_0x13c99a;return{'ok':!![],'data':{'result':_0x54c7ca,'elapsed':_0x2ed5ca},'message':_0x31b4c6(0x1fb)+_0x28075e['command']+_0x31b4c6(0x1d9)+_0x2ed5ca+'ms'};}};return _0x28075e[_0x36ead0(0x1ca)]!==_0x36ead0(0x1ee)&&(_0x5d9a71[_0x36ead0(0x1d2)]=async _0x2f5115=>{const _0x25fdda=_0x36ead0,_0x2e3880=_0x2f5115[_0x25fdda(0x1ff)](_0x25fdda(0x1fe)),_0x1aa25a=_0x28075e[_0x25fdda(0x1e2)]===_0x25fdda(0x1f9)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2f5115[_0x25fdda(0x1ff)]('params'))):parseJsonParams(_0x2f5115['str'](_0x25fdda(0x203)))??{};let _0x38770a=_0x1aa25a;if(_0x28075e[_0x25fdda(0x1e2)]===_0x25fdda(0x205)){const _0x2d8b6c=parseUpdateIdsFromParams(_0x1aa25a);_0x38770a=normalizeUpdateParamsForRuntime(_0x1aa25a,_0x2d8b6c);}return dryRun(_0x25fdda(0x1d7),_0x25fdda(0x1bd)+_0x2e3880+'/'+_0x28075e['operation'])[_0x25fdda(0x1e6)](_0x38770a)[_0x25fdda(0x1e8)]('Preview:\x20data\x20'+_0x28075e['command']+_0x25fdda(0x1cd)+_0x2e3880)['build']();}),_0x5d9a71;}export const dataDefinitions=specs[a24_0x3a096d(0x1dc)](makeDataCommand);function buildBatchUpdateResult(_0xdd8b07,_0x4f5c16){const _0x4d757f=a24_0x3a096d;return{'operation':_0x4d757f(0x205),'mode':'batch','ids':_0xdd8b07,'total':_0xdd8b07[_0x4d757f(0x1eb)],'result':_0x4f5c16};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a25_0x4b9753=a25_0x421a;function a25_0x421a(_0x371c9d,_0x2896ac){_0x371c9d=_0x371c9d-0x131;const _0x37421a=a25_0x3742();let _0x421ac4=_0x37421a[_0x371c9d];return _0x421ac4;}(function(_0x5eb8d9,_0x5bc9b2){const _0x453093=a25_0x421a,_0x4d7e1d=_0x5eb8d9();while(!![]){try{const _0xb751cb=-parseInt(_0x453093(0x142))/0x1+-parseInt(_0x453093(0x15c))/0x2+-parseInt(_0x453093(0x136))/0x3+parseInt(_0x453093(0x13b))/0x4+parseInt(_0x453093(0x149))/0x5*(parseInt(_0x453093(0x162))/0x6)+-parseInt(_0x453093(0x13a))/0x7+parseInt(_0x453093(0x14e))/0x8;if(_0xb751cb===_0x5bc9b2)break;else _0x4d7e1d['push'](_0x4d7e1d['shift']());}catch(_0x408ec1){_0x4d7e1d['push'](_0x4d7e1d['shift']());}}}(a25_0x3742,0x2d3b0));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x256320){const _0x10b881=a25_0x421a;if(_0x256320[_0x10b881(0x158)])return null;const _0x457b52=Boolean(_0x256320[_0x10b881(0x133)]!==undefined||_0x256320[_0x10b881(0x15e)]!==undefined);let _0x241c15={};if(!_0x457b52&&typeof _0x256320[_0x10b881(0x159)]===_0x10b881(0x163))try{_0x241c15=JSON[_0x10b881(0x171)](_0x256320[_0x10b881(0x159)]);}catch{}const _0x160609=_0x457b52?_0x256320[_0x10b881(0x134)]:_0x256320[_0x10b881(0x153)],_0x21ed24=_0x457b52?_0x256320[_0x10b881(0x133)]:_0x256320[_0x10b881(0x134)],_0x1d22b2=_0x457b52?_0x256320['doType']:_0x256320[_0x10b881(0x132)]||_0x256320['dataType'],_0x49492b=_0x457b52?_0x256320[_0x10b881(0x16d)]===!![]:_0x241c15[_0x10b881(0x16d)]===!![],_0x80edcf=_0x457b52?_0x256320[_0x10b881(0x177)]===!![]:_0x241c15[_0x10b881(0x177)]===!![],_0x289adf=_0x457b52?_0x256320['options']??null:_0x241c15['options']??null,_0x3b6f99={'name':_0x160609,'displayName':_0x21ed24||_0x160609,'type':_0x1d22b2,'dbType':_0x256320[_0x10b881(0x164)],'pk':_0x49492b,'required':_0x80edcf,'description':_0x256320['description']||undefined};return Array[_0x10b881(0x14f)](_0x289adf)&&_0x289adf[_0x10b881(0x152)]>0x0&&(_0x3b6f99['options']=_0x289adf),_0x3b6f99;}function parseJsonMaybe(_0x362ce6){const _0x4c8092=a25_0x421a;if(typeof _0x362ce6!==_0x4c8092(0x163))return _0x362ce6;try{return JSON[_0x4c8092(0x171)](_0x362ce6);}catch{return _0x362ce6;}}function normalizeOperationEntry(_0xdb16e3,_0x50d19a){const _0x5015d6=a25_0x421a;if(!_0x50d19a||typeof _0x50d19a!==_0x5015d6(0x135))return null;if(!_0x50d19a[_0x5015d6(0x13c)]||!_0x50d19a['path'])return null;const _0x2f2798={'name':_0xdb16e3,'method':_0x50d19a['method'],'path':_0x50d19a['path']};if(_0x50d19a[_0x5015d6(0x13d)])_0x2f2798[_0x5015d6(0x13d)]=_0x50d19a['host'];if(_0x50d19a[_0x5015d6(0x161)]!=null)_0x2f2798[_0x5015d6(0x161)]=parseJsonMaybe(_0x50d19a[_0x5015d6(0x161)]);if(_0x50d19a[_0x5015d6(0x16f)]!=null)_0x2f2798[_0x5015d6(0x16f)]=parseJsonMaybe(_0x50d19a[_0x5015d6(0x16f)]);if(_0x50d19a[_0x5015d6(0x147)]!=null)_0x2f2798[_0x5015d6(0x147)]=_0x50d19a['beforeScriptId'];if(_0x50d19a[_0x5015d6(0x145)]!=null)_0x2f2798[_0x5015d6(0x145)]=_0x50d19a['afterScriptId'];if(Array[_0x5015d6(0x14f)](_0x50d19a['requestFields']))_0x2f2798['requestFields']=_0x50d19a[_0x5015d6(0x14a)];if(Array[_0x5015d6(0x14f)](_0x50d19a[_0x5015d6(0x140)]))_0x2f2798[_0x5015d6(0x140)]=_0x50d19a[_0x5015d6(0x140)];return _0x2f2798;}function summarizeDbtable(_0x4782c5){const _0x1f7a54=a25_0x421a,_0x161386={},_0x3accad=[_0x1f7a54(0x137),'dbName',_0x1f7a54(0x15f),'datasetKey',_0x1f7a54(0x16d),_0x1f7a54(0x167),_0x1f7a54(0x169),'createTimeField',_0x1f7a54(0x178),_0x1f7a54(0x175),_0x1f7a54(0x173),_0x1f7a54(0x14b),_0x1f7a54(0x16c),_0x1f7a54(0x157),_0x1f7a54(0x170)];for(const _0x3c7900 of _0x3accad){if(_0x4782c5[_0x3c7900]!==undefined)_0x161386[_0x3c7900]=_0x4782c5[_0x3c7900];}return typeof _0x161386[_0x1f7a54(0x167)]===_0x1f7a54(0x163)&&_0x161386['allFields'][_0x1f7a54(0x152)]>0x0&&(_0x161386[_0x1f7a54(0x155)]=_0x161386[_0x1f7a54(0x167)][_0x1f7a54(0x138)](',')[_0x1f7a54(0x172)](_0x4d6719=>_0x4d6719[_0x1f7a54(0x176)]())[_0x1f7a54(0x174)](Boolean)),_0x161386;}function a25_0x3742(){const _0x924f1b=['host','dbtableConfig','properties','responseFields','find','316340hCFZpi','appCode','doVersion','afterScriptId','title','beforeScriptId','push','32375dWfNBk','requestFields','modifierIdField','read','dataset','8001752ILAyXj','isArray','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','fields','length','code','tableComment','allFieldNames','indexes','labelField','deleted','extend','modelId','str','572584CgMpPw','columnCodeListWithDeleted','doType','tableName','datasetKey','requestBody','282qksvHV','string','dbType','operations','dbName','allFields','entries','logicField','source','modelCode','modifierNameField','pkField','detail','responseBody','dblinkInfoDTO','parse','map','creatorNameField','filter','creatorIdField','trim','required','updateTimeField','validateRules','type','displayName','name','object','809580xMXwtn','dbId','split','formatRules','2228597LKFsad','286332sdwvxN','method'];a25_0x3742=function(){return _0x924f1b;};return a25_0x3742();}function normalizeRelatedPages(_0xbaa6a5){const _0x478da5=a25_0x421a;if(!Array[_0x478da5(0x14f)](_0xbaa6a5))return[];return _0xbaa6a5['filter'](_0x329d51=>_0x329d51&&typeof _0x329d51===_0x478da5(0x135))['map'](_0x16734b=>({'id':_0x16734b['id'],'type':_0x16734b[_0x478da5(0x132)],'code':_0x16734b[_0x478da5(0x153)],'title':_0x16734b[_0x478da5(0x146)],'deleted':_0x16734b['deleted']===!![]}));}function normalizeFallbackFieldName(_0x3fa43a,_0xc0ea46){const _0x2cbda7=_0x3fa43a['trim']();if(!_0x2cbda7)return null;return{'name':_0x2cbda7,'displayName':_0x2cbda7,'type':undefined,'dbType':undefined,'pk':_0x2cbda7===_0xc0ea46,'required':![],'description':undefined};}async function loadListFieldFallback(_0x59986f,_0x5570b2){const _0x5657dc=a25_0x421a;if(!_0x59986f||!_0x5570b2)return[];try{const _0x4d86b2=await listDatasets(_0x59986f,{'code':_0x5570b2}),_0x2021a7=_0x4d86b2[_0x5657dc(0x141)](_0x5a5855=>_0x5a5855['code']===_0x5570b2)??_0x4d86b2[0x0],_0x1d517e=_0x2021a7?.[_0x5657dc(0x13e)]??{},_0x1ce9cb=typeof _0x1d517e[_0x5657dc(0x167)]===_0x5657dc(0x163)?_0x1d517e[_0x5657dc(0x167)][_0x5657dc(0x138)](','):[];return _0x1ce9cb['map'](_0x2d4849=>normalizeFallbackFieldName(_0x2d4849,_0x1d517e[_0x5657dc(0x16d)]))[_0x5657dc(0x174)](_0x1cc398=>_0x1cc398!==null);}catch{return[];}}export const datasetDetail={'service':a25_0x4b9753(0x14d),'command':a25_0x4b9753(0x16e),'description':a25_0x4b9753(0x150),'risk':a25_0x4b9753(0x14c),'flags':[CODE_FLAG],async 'execute'(_0x2006a5){const _0x4b71f2=a25_0x4b9753,_0x22acfc=await getDatasetDetail(_0x2006a5[_0x4b71f2(0x15b)](_0x4b71f2(0x153))),_0x1e6e21=Array[_0x4b71f2(0x14f)](_0x22acfc[_0x4b71f2(0x151)])?_0x22acfc[_0x4b71f2(0x151)]:Array[_0x4b71f2(0x14f)](_0x22acfc['properties'])?_0x22acfc[_0x4b71f2(0x13f)]:[];let _0xdb59c4=_0x1e6e21['map'](_0x31cd8c=>normalizeField(_0x31cd8c))[_0x4b71f2(0x174)](_0x28ab41=>_0x28ab41!==null);_0xdb59c4[_0x4b71f2(0x152)]===0x0&&(_0xdb59c4=await loadListFieldFallback(_0x2006a5[_0x4b71f2(0x143)],_0x2006a5['str'](_0x4b71f2(0x153))));const _0x3bb791=_0x22acfc[_0x4b71f2(0x165)]??{},_0x44bb9c=[];for(const [_0x5442c9,_0x4636eb]of Object[_0x4b71f2(0x168)](_0x3bb791)){const _0x3cd0b1=normalizeOperationEntry(_0x5442c9,_0x4636eb);if(_0x3cd0b1)_0x44bb9c[_0x4b71f2(0x148)](_0x3cd0b1);}const _0x2806a7=_0x22acfc[_0x4b71f2(0x13e)]??{},_0x5c28fc=_0x22acfc['dataset']??{},_0x46933d=_0x2806a7['dbId']!=null?{'id':_0x2806a7[_0x4b71f2(0x137)],'name':_0x2806a7[_0x4b71f2(0x166)]??null}:undefined;let _0x451089;return typeof _0x22acfc[_0x4b71f2(0x159)]===_0x4b71f2(0x163)&&(_0x451089=parseJsonMaybe(_0x22acfc[_0x4b71f2(0x159)])),{'ok':!![],'data':{'id':_0x22acfc[_0x4b71f2(0x15a)]??_0x22acfc['id'],'name':_0x22acfc['name'],'code':_0x22acfc[_0x4b71f2(0x16b)]||_0x22acfc[_0x4b71f2(0x153)],'doVersion':_0x22acfc[_0x4b71f2(0x144)],'description':_0x22acfc['description']||_0x5c28fc[_0x4b71f2(0x154)]||undefined,'source':_0x22acfc[_0x4b71f2(0x16a)]||_0x5c28fc['sourceType'],'table':_0x2806a7[_0x4b71f2(0x15f)]||_0x5c28fc[_0x4b71f2(0x15f)],'datasetKey':_0x2806a7[_0x4b71f2(0x160)],'pk':_0x2806a7['pkField'],'db':_0x46933d,'dbtable':summarizeDbtable(_0x2806a7),'fields':_0xdb59c4,'operations':_0x44bb9c,'indexes':Array[_0x4b71f2(0x14f)](_0x5c28fc[_0x4b71f2(0x156)])?_0x5c28fc['indexes']:[],'relations':_0x22acfc['relations']??null,'relatedPages':normalizeRelatedPages(_0x22acfc['relatedPageInfoList']),...Array[_0x4b71f2(0x14f)](_0x22acfc[_0x4b71f2(0x15d)])?{'columnCodeListWithDeleted':_0x22acfc[_0x4b71f2(0x15d)]}:{},'formatRules':Array[_0x4b71f2(0x14f)](_0x22acfc[_0x4b71f2(0x139)])?_0x22acfc['formatRules']:[],'validateRules':Array[_0x4b71f2(0x14f)](_0x22acfc[_0x4b71f2(0x131)])?_0x22acfc[_0x4b71f2(0x131)]:[],..._0x451089!==undefined?{'extend':_0x451089}:{},'stats':{'fieldCount':_0xdb59c4[_0x4b71f2(0x152)],'operationCount':_0x44bb9c[_0x4b71f2(0x152)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x190d8a,_0x30d0a6){const _0x2762f2=a26_0x3abd,_0x597f55=_0x190d8a();while(!![]){try{const _0x5b2304=-parseInt(_0x2762f2(0x1a8))/0x1+parseInt(_0x2762f2(0x1ab))/0x2*(-parseInt(_0x2762f2(0x1a2))/0x3)+parseInt(_0x2762f2(0x1a7))/0x4+-parseInt(_0x2762f2(0x1aa))/0x5+parseInt(_0x2762f2(0x1a3))/0x6*(-parseInt(_0x2762f2(0x1ac))/0x7)+-parseInt(_0x2762f2(0x1a6))/0x8*(-parseInt(_0x2762f2(0x1a4))/0x9)+-parseInt(_0x2762f2(0x1a5))/0xa*(parseInt(_0x2762f2(0x1a9))/0xb);if(_0x5b2304===_0x30d0a6)break;else _0x597f55['push'](_0x597f55['shift']());}catch(_0x4d52f6){_0x597f55['push'](_0x597f55['shift']());}}}(a26_0x569a,0xd391c));import{datasetList}from'../../commands/dataset/list.js';function a26_0x3abd(_0x261545,_0x5a8dae){_0x261545=_0x261545-0x1a2;const _0x569a5a=a26_0x569a();let _0x3abd20=_0x569a5a[_0x261545];return _0x3abd20;}function a26_0x569a(){const _0x1d4999=['154806KNtsHu','66210tQFkwv','7114131EcofUB','603190YOSYmG','8suEcbk','5794444SPneeL','469061UJhvJM','11nyUwRS','1101525OtewMe','22tigBWR','35iSkoxX'];a26_0x569a=function(){return _0x1d4999;};return a26_0x569a();}import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a27_0xe90a54=a27_0x17b3;(function(_0x5ea244,_0x5ed4f4){const _0x245aaf=a27_0x17b3,_0x33246d=_0x5ea244();while(!![]){try{const _0x160f28=parseInt(_0x245aaf(0x1eb))/0x1+parseInt(_0x245aaf(0x1e6))/0x2*(-parseInt(_0x245aaf(0x1ec))/0x3)+-parseInt(_0x245aaf(0x1ed))/0x4*(-parseInt(_0x245aaf(0x1ee))/0x5)+-parseInt(_0x245aaf(0x1dd))/0x6+parseInt(_0x245aaf(0x1f9))/0x7*(-parseInt(_0x245aaf(0x1f8))/0x8)+parseInt(_0x245aaf(0x1f5))/0x9*(parseInt(_0x245aaf(0x1e2))/0xa)+parseInt(_0x245aaf(0x1e5))/0xb*(parseInt(_0x245aaf(0x1e7))/0xc);if(_0x160f28===_0x5ed4f4)break;else _0x33246d['push'](_0x33246d['shift']());}catch(_0x1ac486){_0x33246d['push'](_0x33246d['shift']());}}}(a27_0xfcf0,0x1d9df));import{listDatasets}from'../../core/api-client.js';function a27_0xfcf0(){const _0x273d4d=['allFields','code','name','str','24950lnMoHX','trim','source','693wRzLub','2GgxMJw','37764SiIlMA','dbtableConfig','length','split','36766axHlHZ','119274jgqIcI','132644GjfTnQ','20ZQXFoe','appCode','pkField','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','map','list','datasetKey','90PmoMnb','dataset','read','612088xvonuA','21vOiEve','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','description','12114tJbvKy'];a27_0xfcf0=function(){return _0x273d4d;};return a27_0xfcf0();}function a27_0x17b3(_0x5d9f73,_0x347913){_0x5d9f73=_0x5d9f73-0x1dd;const _0xfcf0f0=a27_0xfcf0();let _0x17b370=_0xfcf0f0[_0x5d9f73];return _0x17b370;}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a27_0xe90a54(0x1f6),'command':a27_0xe90a54(0x1f3),'description':a27_0xe90a54(0x1fa),'risk':a27_0xe90a54(0x1f7),'flags':[{'name':a27_0xe90a54(0x1e0),'type':'string','description':'Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)'},{...CODE_FLAG,'required':![],'description':a27_0xe90a54(0x1f1)}],async 'execute'(_0x15a911){const _0x491aae=a27_0xe90a54,_0x574b86=_0x15a911[_0x491aae(0x1e1)](_0x491aae(0x1e0)),_0x526374=_0x15a911[_0x491aae(0x1e1)](_0x491aae(0x1df)),_0x3f175c=await listDatasets(_0x15a911[_0x491aae(0x1ef)],{..._0x574b86&&{'name':_0x574b86},..._0x526374&&{'code':_0x526374}});return{'ok':!![],'data':{'total':_0x3f175c[_0x491aae(0x1e9)],'datasets':_0x3f175c['map'](_0xfb9bf6=>{const _0x344552=_0x491aae,_0x388702=_0xfb9bf6[_0x344552(0x1e8)]??{};return{'id':_0xfb9bf6['id'],'code':_0xfb9bf6['code'],'name':_0xfb9bf6[_0x344552(0x1e0)],'source':_0xfb9bf6[_0x344552(0x1e4)],'description':_0xfb9bf6[_0x344552(0x1fb)],'table':_0x388702['tableName'],'datasetKey':_0x388702[_0x344552(0x1f4)],'pk':_0x388702[_0x344552(0x1f0)],'fields':_0x388702[_0x344552(0x1de)]?_0x388702['allFields'][_0x344552(0x1ea)](',')[_0x344552(0x1f2)](_0x364ab3=>_0x364ab3[_0x344552(0x1e3)]()):[]};})}};}};
|