@lovrabet/lovrabet-cli 2.1.21 → 2.1.22-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/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/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/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_0x34e91d=a12_0x3671;(function(_0x1e5fbd,_0x1e4042){const _0x1622f4=a12_0x3671,_0x1d3140=_0x1e5fbd();while(!![]){try{const _0x113150=-parseInt(_0x1622f4(0x1cf))/0x1*(parseInt(_0x1622f4(0x17f))/0x2)+parseInt(_0x1622f4(0x1a5))/0x3+parseInt(_0x1622f4(0x18c))/0x4*(-parseInt(_0x1622f4(0x1a6))/0x5)+parseInt(_0x1622f4(0x1bf))/0x6*(parseInt(_0x1622f4(0x1d3))/0x7)+-parseInt(_0x1622f4(0x195))/0x8*(-parseInt(_0x1622f4(0x177))/0x9)+-parseInt(_0x1622f4(0x198))/0xa+-parseInt(_0x1622f4(0x1a4))/0xb;if(_0x113150===_0x1e4042)break;else _0x1d3140['push'](_0x1d3140['shift']());}catch(_0x1464cf){_0x1d3140['push'](_0x1d3140['shift']());}}}(a12_0x40e3,0x732d4));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';function a12_0x40e3(){const _0x2b5014=['\x20scope.','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','\x20doctor','development','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','access_key','249206HApDvR','\x20Verify:\x20','Show\x20current\x20authentication\x20status','`auth\x20login`\x20does\x20not\x20support\x20--yes.','login','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','status','global','check','auth','access-key','project\x20config','success','188LeYroH','newConfigFileName','global-default','bool','Clear\x20accessKey\x20from\x20config','project','repeat','read','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','1832bdKARn','code','Write\x20to\x20global\x20config\x20(default)','6402930Xiopzt','write','=ak_xxx','stdout','AccessKey\x20cleared\x20from\x20','nonInteractive','scope','info','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','stdin','\x20Current\x20env:\x20','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','1677203uMUKqV','1749939qZywrm','11870eVTCZo','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','userCenterDisplayName','accessKey','Clear\x20from\x20global\x20config\x20(default)','length','str','yes','AccessKey:\x20','init','No\x20AccessKey\x20found\x20in\x20','\x20config.','Auth\x20config\x20reinitialized\x20in\x20','ClientAk','AccessKey\x20(ak_xxx...)','test','slice','ACCESS_KEY','production','\x20auth\x20login\x20--access-key\x20<ak_xxx>','Use\x20`','Option\x20C:\x20environment\x20variable','Read\x20from\x20global\x20config\x20(default)','Tip:\x20you\x20can\x20also\x20run:','\x20auth\x20status','18GupSAG','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','boolean','\x20config.\x20Nothing\x20to\x20clear.','envName','push','string','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','Shorthand\x20for\x20--access-key','env','Option\x20A:\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','Status:\x20valid','\x20(via\x20','2mdEZca','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','expired','1715329OKjcoS','Auth\x20mode:\x20','trim','authRequired','\x20config','\x20\x20export\x20','Invalid\x20accessKey\x20format:\x20\x22','Option\x20B:\x20apps\x20config\x20(','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','validation','join','logout','12060ShkFfL','AccessKey\x20saved\x20to\x20'];a12_0x40e3=function(){return _0x2b5014;};return a12_0x40e3();}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';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_0x3671(_0x158092,_0x5738bd){_0x158092=_0x158092-0x174;const _0x40e32e=a12_0x40e3();let _0x36714c=_0x40e32e[_0x158092];return _0x36714c;}function showAccessKeyCreateHint(){const _0x33ae53=a12_0x3671;writeCliSideChannelLine(_0x33ae53(0x1a0)+PRODUCT_CONFIG['userCenterDisplayName']+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x33ae53(0x1bd)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x33ae53(0x1b9));}function buildAccessKeySetupGuide(){const _0x989aae=a12_0x3671;return[_0x989aae(0x1a0)+PRODUCT_CONFIG[_0x989aae(0x1a8)]+':',USER_ACCESS_KEY_CREATE_URL,_0x989aae(0x1a3)+CLI_BIN_NAME+_0x989aae(0x1cc)][_0x989aae(0x175)]('\x0a');}function canPromptForAccessKey(_0x1c7ac6){const _0x2bb22=a12_0x3671;return!_0x1c7ac6[_0x2bb22(0x19d)]&&process[_0x2bb22(0x1a1)]['isTTY']!==![]&&process[_0x2bb22(0x19b)]['isTTY']!==![];}function resolveAuthScopeFlags(_0x36bb2f){const _0x5b945e=a12_0x3671;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x36bb2f[_0x5b945e(0x18f)](_0x5b945e(0x186)),'explicitProject':_0x36bb2f[_0x5b945e(0x18f)](_0x5b945e(0x191)),'policy':_0x5b945e(0x18e)}));}async function resolveAuthWriteInput(_0x167779){const _0x1dfe7a=a12_0x3671;let _0x545424=(_0x167779['str'](_0x1dfe7a(0x189))||_0x167779[_0x1dfe7a(0x1ac)]('ak')||'')[_0x1dfe7a(0x1d5)]();const _0x5137ef=(_0x167779['str'](_0x1dfe7a(0x1c8))||'')['trim']();if(!_0x545424&&canPromptForAccessKey(_0x167779))try{showAccessKeyCreateHint(),_0x545424=await promptAccessKey('');}catch(_0x73a390){if(isAbortPrompt(_0x73a390))throw CliErrors['cancelled']();throw _0x73a390;}if(!_0x545424)throw CliErrors[_0x1dfe7a(0x174)]('Missing\x20accessKey.',buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x1dfe7a(0x1b5)](_0x545424))throw CliErrors[_0x1dfe7a(0x174)](_0x1dfe7a(0x1d9)+_0x545424+'\x22',_0x1dfe7a(0x184));if(!_0x5137ef)return{'accessKey':_0x545424};const _0x1ce57f=normalizeEnv(_0x5137ef);return{'accessKey':_0x545424,'env':isDaily(_0x1ce57f)?'daily':isDev(_0x1ce57f)?_0x1dfe7a(0x17c):_0x1dfe7a(0x1b8)};}export const authDefinitions=[{'service':a12_0x34e91d(0x188),'command':a12_0x34e91d(0x183),'description':a12_0x34e91d(0x1db),'risk':a12_0x34e91d(0x199),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x34e91d(0x189),'type':a12_0x34e91d(0x1c5),'description':a12_0x34e91d(0x1b4)},{'name':'ak','type':a12_0x34e91d(0x1c5),'description':a12_0x34e91d(0x1c7)},{'name':a12_0x34e91d(0x186),'type':a12_0x34e91d(0x1c1),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':a12_0x34e91d(0x191),'type':a12_0x34e91d(0x1c1),'description':a12_0x34e91d(0x1dc),'default':![]}],async 'execute'(_0x2451fc){const _0x10ec1d=a12_0x34e91d;if(_0x2451fc['bool'](_0x10ec1d(0x1ad)))throw CliErrors['validation'](_0x10ec1d(0x182),_0x10ec1d(0x1ba)+CLI_BIN_NAME+_0x10ec1d(0x17a)+CLI_BIN_NAME+_0x10ec1d(0x1ca));const _0x5c41f4=(_0x2451fc['str'](_0x10ec1d(0x189))||_0x2451fc[_0x10ec1d(0x1ac)]('ak')||'')[_0x10ec1d(0x1d5)]();if(!_0x5c41f4&&_0x2451fc['nonInteractive'])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x14c8bf=await resolveAuthWriteInput(_0x2451fc),_0x383221=resolveAuthScopeFlags(_0x2451fc),_0x2c8118=readScopedConfig(_0x383221);_0x2c8118[_0x10ec1d(0x1a9)]=_0x14c8bf[_0x10ec1d(0x1a9)];_0x14c8bf[_0x10ec1d(0x1c8)]&&(_0x2c8118[_0x10ec1d(0x1c8)]=_0x14c8bf['env']);writeScopedConfig(_0x2c8118,_0x383221);const _0x2e6353=_0x383221[_0x10ec1d(0x186)]?_0x10ec1d(0x186):'project',_0x321760=_0x2c8118[_0x10ec1d(0x1c8)]?_0x10ec1d(0x1a2)+_0x2c8118['env']+'.':'';return{'ok':!![],'message':_0x10ec1d(0x178)+_0x2e6353+_0x10ec1d(0x1b1)+_0x321760+_0x10ec1d(0x180)+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a12_0x34e91d(0x188),'command':a12_0x34e91d(0x1af),'description':'Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','risk':a12_0x34e91d(0x199),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x34e91d(0x189),'type':a12_0x34e91d(0x1c5),'description':a12_0x34e91d(0x1b4)},{'name':'ak','type':'string','description':a12_0x34e91d(0x1c7)},{'name':a12_0x34e91d(0x1c8),'type':a12_0x34e91d(0x1c5),'description':'Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config'},{'name':a12_0x34e91d(0x186),'type':a12_0x34e91d(0x1c1),'description':a12_0x34e91d(0x197),'default':!![]},{'name':'project','type':a12_0x34e91d(0x1c1),'description':a12_0x34e91d(0x1dc),'default':![]}],async 'execute'(_0x2c329a){const _0x2931fb=a12_0x34e91d,_0x2873bd=await resolveAuthWriteInput(_0x2c329a),_0x11f6fb=resolveAuthScopeFlags(_0x2c329a),_0x1407b7={'accessKey':_0x2873bd[_0x2931fb(0x1a9)]};_0x2873bd['env']&&(_0x1407b7[_0x2931fb(0x1c8)]=_0x2873bd[_0x2931fb(0x1c8)]);writeScopedConfig(_0x1407b7,_0x11f6fb);const _0x4bcfc4=_0x11f6fb['global']?_0x2931fb(0x186):_0x2931fb(0x191),_0x58766e=_0x1407b7[_0x2931fb(0x1c8)]?_0x2931fb(0x1a2)+_0x1407b7['env']+'.':'';return{'ok':!![],'message':_0x2931fb(0x1b2)+_0x4bcfc4+_0x2931fb(0x179)+_0x58766e+_0x2931fb(0x180)+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a12_0x34e91d(0x188),'command':a12_0x34e91d(0x176),'description':a12_0x34e91d(0x190),'risk':a12_0x34e91d(0x199),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x34e91d(0x186),'type':a12_0x34e91d(0x1c1),'description':a12_0x34e91d(0x1aa),'default':!![]},{'name':a12_0x34e91d(0x191),'type':a12_0x34e91d(0x1c1),'description':a12_0x34e91d(0x1d1),'default':![]}],async 'execute'(_0x3054a0){const _0x3c8013=a12_0x34e91d,_0x5b9ba5=resolveAuthScopeFlags(_0x3054a0),_0x5ce840=readScopedConfig(_0x5b9ba5),_0x2129c5=!!_0x5ce840[_0x3c8013(0x1a9)];delete _0x5ce840['accessKey'],writeScopedConfig(_0x5ce840,_0x5b9ba5);const _0x1bba83=_0x5b9ba5[_0x3c8013(0x186)]?_0x3c8013(0x186):'project';if(_0x2129c5)return{'ok':!![],'message':_0x3c8013(0x19c)+_0x1bba83+_0x3c8013(0x1b1)};return{'ok':!![],'message':_0x3c8013(0x1b0)+_0x1bba83+_0x3c8013(0x1c2)};}},{'service':a12_0x34e91d(0x188),'command':a12_0x34e91d(0x185),'description':a12_0x34e91d(0x181),'risk':a12_0x34e91d(0x193),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x34e91d(0x186),'type':a12_0x34e91d(0x1c1),'description':a12_0x34e91d(0x1bc),'default':!![]},{'name':'project','type':a12_0x34e91d(0x1c1),'description':a12_0x34e91d(0x1a7),'default':![]},{'name':a12_0x34e91d(0x187),'type':'boolean','description':a12_0x34e91d(0x1c0),'default':![]}],async 'execute'(_0x5ec06b){const _0x5380ea=a12_0x34e91d,_0x3e8cfe=resolveAuthScopeFlags(_0x5ec06b),_0x3c36f7=readScopedConfig(_0x3e8cfe),_0x20451d=productEnvName('ACCESS_KEY'),_0x3db312=productEnv(_0x5380ea(0x1b7))||undefined,_0x230998=_0x3c36f7[_0x5380ea(0x1a9)]||undefined,_0x4602c1=_0x3db312||_0x230998,_0x3cb57f=_0x3db312?_0x20451d+'\x20env\x20var':_0x230998?(_0x3e8cfe['global']?_0x5380ea(0x186):'project')+_0x5380ea(0x1d7):null,_0x4f16d0=[_0x5380ea(0x1d4)+AUTH_MODE[_0x5380ea(0x1b3)]];if(_0x4602c1){const _0x4851b9=_0x4602c1['length']>0x8?''+_0x4602c1[_0x5380ea(0x1b6)](0x0,0x8)+'*'[_0x5380ea(0x192)](_0x4602c1['length']-0x8):_0x4602c1;_0x4f16d0[_0x5380ea(0x1c4)](_0x5380ea(0x1ae)+_0x4851b9+(_0x3cb57f?_0x5380ea(0x1ce)+_0x3cb57f+')':'')),_0x4f16d0[_0x5380ea(0x1c4)](_0x5380ea(0x1cd));}if(!_0x4602c1){_0x4f16d0[_0x5380ea(0x1c4)](''),_0x4f16d0[_0x5380ea(0x1c4)](_0x5380ea(0x1cb)),_0x4f16d0[_0x5380ea(0x1c4)](''),_0x4f16d0['push'](_0x5380ea(0x1c9)+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x4f16d0[_0x5380ea(0x1c4)](''),_0x4f16d0[_0x5380ea(0x1c4)](_0x5380ea(0x1da)+PRODUCT_CONFIG[_0x5380ea(0x18d)]+')'),_0x4f16d0[_0x5380ea(0x1c4)](_0x5380ea(0x17d)),_0x4f16d0[_0x5380ea(0x1c4)](''),_0x4f16d0['push'](_0x5380ea(0x1bb)),_0x4f16d0[_0x5380ea(0x1c4)](_0x5380ea(0x1d8)+_0x20451d+_0x5380ea(0x19a)),_0x4f16d0[_0x5380ea(0x1c4)](''),_0x4f16d0[_0x5380ea(0x1c4)]('Then\x20verify\x20with:\x20'+CLI_BIN_NAME+_0x5380ea(0x1be)),_0x4f16d0[_0x5380ea(0x1c4)](_0x5380ea(0x194)+CLI_BIN_NAME+_0x5380ea(0x17b));if(_0x5ec06b[_0x5380ea(0x18f)](_0x5380ea(0x187))){const _0x4df7c5=readStoredDeviceCode();if(_0x4df7c5&&!isStoredDeviceCodeExpired(_0x4df7c5)){const _0x1c5656=getUserDomain(),_0x4a1f1c=await fetchDeviceToken(_0x1c5656,_0x4df7c5[_0x5380ea(0x196)]);if(_0x4a1f1c['status']===_0x5380ea(0x18b)&&_0x4a1f1c[_0x5380ea(0x17e)]){const _0x109554={'global':_0x4df7c5[_0x5380ea(0x19e)]===_0x5380ea(0x186)},_0x4a8307=readScopedConfig(_0x109554);_0x4a8307[_0x5380ea(0x1a9)]=_0x4a1f1c[_0x5380ea(0x17e)],writeScopedConfig(_0x4a8307,_0x109554),deleteStoredDeviceCode();const _0x3ce443=_0x4a1f1c[_0x5380ea(0x17e)],_0x31078e=_0x3ce443[_0x5380ea(0x1ab)]>0x8?''+_0x3ce443[_0x5380ea(0x1b6)](0x0,0x8)+'*'[_0x5380ea(0x192)](_0x3ce443['length']-0x8):_0x3ce443,_0x22bf5c=_0x4df7c5[_0x5380ea(0x19e)]===_0x5380ea(0x186)?'global\x20config':_0x5380ea(0x18a);return{'ok':!![],'message':[_0x5380ea(0x1d4)+AUTH_MODE['ClientAk'],_0x5380ea(0x1ae)+_0x31078e+'\x20(via\x20'+_0x22bf5c+')',_0x5380ea(0x1cd)][_0x5380ea(0x175)]('\x0a')};}_0x4a1f1c[_0x5380ea(0x185)]===_0x5380ea(0x1d2)&&deleteStoredDeviceCode();throw CliErrors[_0x5380ea(0x1d6)](_0x5380ea(0x1d0));}throw CliErrors[_0x5380ea(0x1d6)](_0x4f16d0[_0x5380ea(0x175)]('\x0a'));}}return{'ok':!![],'message':_0x4f16d0[_0x5380ea(0x175)]('\x0a')};}},{'service':a12_0x34e91d(0x188),'command':a12_0x34e91d(0x19f),'description':a12_0x34e91d(0x1c6),'risk':a12_0x34e91d(0x193),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x838d0a){const _0x2b14a2=a12_0x34e91d,_0x4186de=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x4186de,'meta':{'env':_0x838d0a[_0x2b14a2(0x1c3)]??'production'}}};}},authDeviceDefinition];
|
|
1
|
+
const a12_0x3eb62d=a12_0x6d44;(function(_0x1f0808,_0x518080){const _0x1da7d7=a12_0x6d44,_0x53365d=_0x1f0808();while(!![]){try{const _0x16cb78=-parseInt(_0x1da7d7(0xc6))/0x1+parseInt(_0x1da7d7(0x10e))/0x2*(-parseInt(_0x1da7d7(0x104))/0x3)+-parseInt(_0x1da7d7(0xe3))/0x4*(parseInt(_0x1da7d7(0xf6))/0x5)+parseInt(_0x1da7d7(0xe2))/0x6*(-parseInt(_0x1da7d7(0x109))/0x7)+-parseInt(_0x1da7d7(0xe1))/0x8*(-parseInt(_0x1da7d7(0x114))/0x9)+-parseInt(_0x1da7d7(0x112))/0xa+-parseInt(_0x1da7d7(0x105))/0xb*(-parseInt(_0x1da7d7(0xe7))/0xc);if(_0x16cb78===_0x518080)break;else _0x53365d['push'](_0x53365d['shift']());}catch(_0x46c8cf){_0x53365d['push'](_0x53365d['shift']());}}}(a12_0x385e,0xeba2b));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';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_0x6d44(_0x1bfff4,_0x5b2a26){_0x1bfff4=_0x1bfff4-0xb7;const _0x385ebc=a12_0x385e();let _0x6d447c=_0x385ebc[_0x1bfff4];return _0x6d447c;}function showAccessKeyCreateHint(){const _0xa0fd33=a12_0x6d44;writeCliSideChannelLine(_0xa0fd33(0x10d)+PRODUCT_CONFIG[_0xa0fd33(0xf7)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0xa0fd33(0xc0)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>');}function buildAccessKeySetupGuide(){const _0x1f0f4d=a12_0x6d44;return[_0x1f0f4d(0x10d)+PRODUCT_CONFIG[_0x1f0f4d(0xf7)]+':',USER_ACCESS_KEY_CREATE_URL,'Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20'+CLI_BIN_NAME+_0x1f0f4d(0xfb)]['join']('\x0a');}function canPromptForAccessKey(_0x4310c6){const _0x3eaad6=a12_0x6d44;return!_0x4310c6[_0x3eaad6(0xbc)]&&process[_0x3eaad6(0xc7)][_0x3eaad6(0xff)]!==![]&&process[_0x3eaad6(0xf2)]['isTTY']!==![];}function resolveAuthScopeFlags(_0x563e16){const _0x59d8d4=a12_0x6d44;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x563e16[_0x59d8d4(0xec)](_0x59d8d4(0xef)),'explicitProject':_0x563e16[_0x59d8d4(0xec)](_0x59d8d4(0xed)),'policy':'global-default'}));}function a12_0x385e(){const _0x548a99=['test','global','Invalid\x20accessKey\x20format:\x20\x22','Missing\x20accessKey.','stdout','join','ClientAk','ACCESS_KEY','10060kDmdmJ','userCenterDisplayName','Option\x20B:\x20apps\x20config\x20(','trim','accessKey','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','expired','login','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','isTTY','\x20config.','length','\x20scope.','=ak_xxx','3zeMERX','2849gkfpfZ','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','Use\x20`','Read\x20from\x20global\x20config\x20(default)','469hsAEVB','Auth\x20mode:\x20','development','string','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','2279338bLyztz','scope','str','global\x20config','2669510lHSfTC','newConfigFileName','188361bLLhYu','Clear\x20accessKey\x20from\x20config','envName','\x20\x20export\x20','repeat','info','nonInteractive','AccessKey\x20saved\x20to\x20','env','check','Tip:\x20you\x20can\x20also\x20run:','push','success','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','No\x20AccessKey\x20found\x20in\x20','1305979pDNLlq','stdin','production','\x20(via\x20','read','\x20doctor','boolean','\x20Current\x20env:\x20','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','logout','Option\x20C:\x20environment\x20variable','write','Status:\x20valid','\x20auth\x20status','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','validation','access-key','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','access_key','Shorthand\x20for\x20--access-key','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','AccessKey\x20(ak_xxx...)','project\x20config','\x20config','Then\x20verify\x20with:\x20','authRequired','Write\x20to\x20global\x20config\x20(default)','400FROQdA','159426LSCnie','36dlrdfx','status','\x20Verify:\x20','AccessKey:\x20','205236DlJUXS','auth','\x20config.\x20Nothing\x20to\x20clear.','slice','cancelled','bool','project'];a12_0x385e=function(){return _0x548a99;};return a12_0x385e();}async function resolveAuthWriteInput(_0x11c6af){const _0x42e054=a12_0x6d44;let _0x33e729=(_0x11c6af[_0x42e054(0x110)]('access-key')||_0x11c6af[_0x42e054(0x110)]('ak')||'')[_0x42e054(0xf9)]();const _0x196515=(_0x11c6af[_0x42e054(0x110)](_0x42e054(0xbe))||'')[_0x42e054(0xf9)]();if(!_0x33e729&&canPromptForAccessKey(_0x11c6af))try{showAccessKeyCreateHint(),_0x33e729=await promptAccessKey('');}catch(_0x3848b4){if(isAbortPrompt(_0x3848b4))throw CliErrors[_0x42e054(0xeb)]();throw _0x3848b4;}if(!_0x33e729)throw CliErrors[_0x42e054(0xd5)](_0x42e054(0xf1),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x42e054(0xee)](_0x33e729))throw CliErrors[_0x42e054(0xd5)](_0x42e054(0xf0)+_0x33e729+'\x22',_0x42e054(0xda));if(!_0x196515)return{'accessKey':_0x33e729};const _0xb39aa3=normalizeEnv(_0x196515);return{'accessKey':_0x33e729,'env':isDaily(_0xb39aa3)?'daily':isDev(_0xb39aa3)?_0x42e054(0x10b):'production'};}export const authDefinitions=[{'service':a12_0x3eb62d(0xe8),'command':a12_0x3eb62d(0xfd),'description':'Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','risk':a12_0x3eb62d(0xd1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x3eb62d(0xd6),'type':a12_0x3eb62d(0x10c),'description':a12_0x3eb62d(0xdb)},{'name':'ak','type':'string','description':'Shorthand\x20for\x20--access-key'},{'name':a12_0x3eb62d(0xef),'type':a12_0x3eb62d(0xcc),'description':a12_0x3eb62d(0xe0),'default':!![]},{'name':a12_0x3eb62d(0xed),'type':a12_0x3eb62d(0xcc),'description':a12_0x3eb62d(0xc3),'default':![]}],async 'execute'(_0x54142f){const _0x3dff82=a12_0x3eb62d;if(_0x54142f[_0x3dff82(0xec)]('yes'))throw CliErrors[_0x3dff82(0xd5)]('`auth\x20login`\x20does\x20not\x20support\x20--yes.',_0x3dff82(0x107)+CLI_BIN_NAME+'\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`'+CLI_BIN_NAME+_0x3dff82(0xd4));const _0x3ef5e4=(_0x54142f[_0x3dff82(0x110)](_0x3dff82(0xd6))||_0x54142f[_0x3dff82(0x110)]('ak')||'')[_0x3dff82(0xf9)]();if(!_0x3ef5e4&&_0x54142f['nonInteractive'])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x492e26=await resolveAuthWriteInput(_0x54142f),_0x4a87d4=resolveAuthScopeFlags(_0x54142f),_0x180224=readScopedConfig(_0x4a87d4);_0x180224[_0x3dff82(0xfa)]=_0x492e26[_0x3dff82(0xfa)];_0x492e26[_0x3dff82(0xbe)]&&(_0x180224[_0x3dff82(0xbe)]=_0x492e26[_0x3dff82(0xbe)]);writeScopedConfig(_0x180224,_0x4a87d4);const _0x36ad63=_0x4a87d4[_0x3dff82(0xef)]?_0x3dff82(0xef):_0x3dff82(0xed),_0x4572ad=_0x180224[_0x3dff82(0xbe)]?_0x3dff82(0xcd)+_0x180224['env']+'.':'';return{'ok':!![],'message':_0x3dff82(0xbd)+_0x36ad63+_0x3dff82(0x100)+_0x4572ad+_0x3dff82(0xe5)+CLI_BIN_NAME+_0x3dff82(0xd3)};}},{'service':a12_0x3eb62d(0xe8),'command':'init','description':a12_0x3eb62d(0xce),'risk':a12_0x3eb62d(0xd1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a12_0x3eb62d(0x10c),'description':a12_0x3eb62d(0xdb)},{'name':'ak','type':a12_0x3eb62d(0x10c),'description':a12_0x3eb62d(0xd9)},{'name':'env','type':a12_0x3eb62d(0x10c),'description':a12_0x3eb62d(0xfe)},{'name':a12_0x3eb62d(0xef),'type':'boolean','description':a12_0x3eb62d(0xe0),'default':!![]},{'name':a12_0x3eb62d(0xed),'type':a12_0x3eb62d(0xcc),'description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x1990a6){const _0x590f17=a12_0x3eb62d,_0x4e4bb3=await resolveAuthWriteInput(_0x1990a6),_0x54f7e6=resolveAuthScopeFlags(_0x1990a6),_0x6d0492={'accessKey':_0x4e4bb3['accessKey']};_0x4e4bb3[_0x590f17(0xbe)]&&(_0x6d0492[_0x590f17(0xbe)]=_0x4e4bb3['env']);writeScopedConfig(_0x6d0492,_0x54f7e6);const _0x5723c4=_0x54f7e6[_0x590f17(0xef)]?_0x590f17(0xef):_0x590f17(0xed),_0x48c1a7=_0x6d0492[_0x590f17(0xbe)]?_0x590f17(0xcd)+_0x6d0492[_0x590f17(0xbe)]+'.':'';return{'ok':!![],'message':'Auth\x20config\x20reinitialized\x20in\x20'+_0x5723c4+_0x590f17(0x102)+_0x48c1a7+_0x590f17(0xe5)+CLI_BIN_NAME+_0x590f17(0xd3)};}},{'service':'auth','command':a12_0x3eb62d(0xcf),'description':a12_0x3eb62d(0xb7),'risk':a12_0x3eb62d(0xd1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':a12_0x3eb62d(0xcc),'description':'Clear\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a12_0x3eb62d(0xed),'type':'boolean','description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x5616f5){const _0x2dfad4=a12_0x3eb62d,_0x15cd45=resolveAuthScopeFlags(_0x5616f5),_0x50b89b=readScopedConfig(_0x15cd45),_0x227033=!!_0x50b89b['accessKey'];delete _0x50b89b['accessKey'],writeScopedConfig(_0x50b89b,_0x15cd45);const _0x29d57f=_0x15cd45[_0x2dfad4(0xef)]?'global':_0x2dfad4(0xed);if(_0x227033)return{'ok':!![],'message':'AccessKey\x20cleared\x20from\x20'+_0x29d57f+_0x2dfad4(0x100)};return{'ok':!![],'message':_0x2dfad4(0xc5)+_0x29d57f+_0x2dfad4(0xe9)};}},{'service':'auth','command':a12_0x3eb62d(0xe4),'description':'Show\x20current\x20authentication\x20status','risk':a12_0x3eb62d(0xca),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':'boolean','description':a12_0x3eb62d(0x108),'default':!![]},{'name':a12_0x3eb62d(0xed),'type':'boolean','description':'Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]},{'name':'check','type':a12_0x3eb62d(0xcc),'description':'Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','default':![]}],async 'execute'(_0x449274){const _0x6b2bab=a12_0x3eb62d,_0xa6ce13=resolveAuthScopeFlags(_0x449274),_0x4fb27a=readScopedConfig(_0xa6ce13),_0x3ee805=productEnvName(_0x6b2bab(0xf5)),_0x16ab9=productEnv(_0x6b2bab(0xf5))||undefined,_0x55be54=_0x4fb27a[_0x6b2bab(0xfa)]||undefined,_0x1ae783=_0x16ab9||_0x55be54,_0x5772ef=_0x16ab9?_0x3ee805+'\x20env\x20var':_0x55be54?(_0xa6ce13[_0x6b2bab(0xef)]?'global':'project')+_0x6b2bab(0xdd):null,_0x41268d=[_0x6b2bab(0x10a)+AUTH_MODE[_0x6b2bab(0xf4)]];if(_0x1ae783){const _0x14a178=_0x1ae783[_0x6b2bab(0x101)]>0x8?''+_0x1ae783['slice'](0x0,0x8)+'*'['repeat'](_0x1ae783[_0x6b2bab(0x101)]-0x8):_0x1ae783;_0x41268d[_0x6b2bab(0xc1)](_0x6b2bab(0xe6)+_0x14a178+(_0x5772ef?_0x6b2bab(0xc9)+_0x5772ef+')':'')),_0x41268d[_0x6b2bab(0xc1)](_0x6b2bab(0xd2));}if(!_0x1ae783){_0x41268d[_0x6b2bab(0xc1)](''),_0x41268d[_0x6b2bab(0xc1)]('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0x41268d[_0x6b2bab(0xc1)](''),_0x41268d[_0x6b2bab(0xc1)]('Option\x20A:\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x41268d[_0x6b2bab(0xc1)](''),_0x41268d[_0x6b2bab(0xc1)](_0x6b2bab(0xf8)+PRODUCT_CONFIG[_0x6b2bab(0x113)]+')'),_0x41268d[_0x6b2bab(0xc1)](_0x6b2bab(0xd7)),_0x41268d[_0x6b2bab(0xc1)](''),_0x41268d['push'](_0x6b2bab(0xd0)),_0x41268d[_0x6b2bab(0xc1)](_0x6b2bab(0xb9)+_0x3ee805+_0x6b2bab(0x103)),_0x41268d['push'](''),_0x41268d[_0x6b2bab(0xc1)](_0x6b2bab(0xde)+CLI_BIN_NAME+_0x6b2bab(0xd3)),_0x41268d[_0x6b2bab(0xc1)](_0x6b2bab(0xc4)+CLI_BIN_NAME+_0x6b2bab(0xcb));if(_0x449274[_0x6b2bab(0xec)](_0x6b2bab(0xbf))){const _0xd43d86=readStoredDeviceCode();if(_0xd43d86&&!isStoredDeviceCodeExpired(_0xd43d86)){const _0xcc1a0d=getUserDomain(),_0x56ec0e=await fetchDeviceToken(_0xcc1a0d,_0xd43d86['code']);if(_0x56ec0e[_0x6b2bab(0xe4)]===_0x6b2bab(0xc2)&&_0x56ec0e[_0x6b2bab(0xd8)]){const _0x29618c={'global':_0xd43d86['scope']==='global'},_0x1a42f3=readScopedConfig(_0x29618c);_0x1a42f3[_0x6b2bab(0xfa)]=_0x56ec0e[_0x6b2bab(0xd8)],writeScopedConfig(_0x1a42f3,_0x29618c),deleteStoredDeviceCode();const _0x44ee38=_0x56ec0e['access_key'],_0x223535=_0x44ee38[_0x6b2bab(0x101)]>0x8?''+_0x44ee38[_0x6b2bab(0xea)](0x0,0x8)+'*'[_0x6b2bab(0xba)](_0x44ee38[_0x6b2bab(0x101)]-0x8):_0x44ee38,_0x25ba77=_0xd43d86[_0x6b2bab(0x10f)]===_0x6b2bab(0xef)?_0x6b2bab(0x111):_0x6b2bab(0xdc);return{'ok':!![],'message':[_0x6b2bab(0x10a)+AUTH_MODE[_0x6b2bab(0xf4)],_0x6b2bab(0xe6)+_0x223535+'\x20(via\x20'+_0x25ba77+')','Status:\x20valid'][_0x6b2bab(0xf3)]('\x0a')};}_0x56ec0e[_0x6b2bab(0xe4)]===_0x6b2bab(0xfc)&&deleteStoredDeviceCode();throw CliErrors['authRequired'](_0x6b2bab(0x106));}throw CliErrors[_0x6b2bab(0xdf)](_0x41268d['join']('\x0a'));}}return{'ok':!![],'message':_0x41268d[_0x6b2bab(0xf3)]('\x0a')};}},{'service':a12_0x3eb62d(0xe8),'command':a12_0x3eb62d(0xbb),'description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':a12_0x3eb62d(0xca),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x312af7){const _0x5a66e6=a12_0x3eb62d,_0x3508fb=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x3508fb,'meta':{'env':_0x312af7[_0x5a66e6(0xb8)]??_0x5a66e6(0xc8)}}};}},authDeviceDefinition];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x8f7792,_0x4424ab){const _0x286048=a13_0x2ef9,_0x4f612e=_0x8f7792();while(!![]){try{const _0x52e031=parseInt(_0x286048(0x84))/0x1*(-parseInt(_0x286048(0x83))/0x2)+-parseInt(_0x286048(0x81))/0x3+-parseInt(_0x286048(0x92))/0x4+-parseInt(_0x286048(0x93))/0x5*(-parseInt(_0x286048(0x7e))/0x6)+-parseInt(_0x286048(0x85))/0x7*(parseInt(_0x286048(0x8c))/0x8)+parseInt(_0x286048(0x88))/0x9+parseInt(_0x286048(0x90))/0xa;if(_0x52e031===_0x4424ab)break;else _0x4f612e['push'](_0x4f612e['shift']());}catch(_0x2a38b7){_0x4f612e['push'](_0x4f612e['shift']());}}}(a13_0x4115,0x43c2d));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x421582=a13_0x2ef9;super('User\x20aborted\x20prompt'),this[_0x421582(0x8d)]=_0x421582(0x89);}}function createSafeRl(){const _0xe2ad72=a13_0x2ef9,_0x2d66e5=createInterface({'input':process['stdin'],'output':process[_0xe2ad72(0x94)]});let _0x21908c;const _0x485a91=new Promise((_0x1b623d,_0x1976d3)=>{const _0x34ad28=_0xe2ad72;_0x21908c=()=>{const _0x3cd98f=a13_0x2ef9;_0x21908c&&(_0x2d66e5[_0x3cd98f(0x80)]('SIGINT',_0x21908c),_0x21908c=undefined);try{_0x2d66e5['close']();}catch{}_0x1976d3(new AbortPrompt());},_0x2d66e5[_0x34ad28(0x7f)](_0x34ad28(0x86),_0x21908c);}),_0x138a6a=()=>{const _0x54e1a9=_0xe2ad72;_0x21908c&&(_0x2d66e5['removeListener'](_0x54e1a9(0x86),_0x21908c),_0x21908c=undefined);try{_0x2d66e5[_0x54e1a9(0x8f)]();}catch{}};return{'rl':_0x2d66e5,'abortPromise':_0x485a91,'disposeSuccess':_0x138a6a};}export async function promptAccessKey(_0x4cab92=''){const _0x46954b=a13_0x2ef9,{rl:_0x2b8f16,abortPromise:_0xc4a306,disposeSuccess:_0x12a0b9}=createSafeRl(),_0x7109b=new Promise(_0x34bf1d=>{const _0x442e41=a13_0x2ef9,_0x2d8ab9=_0x4cab92?_0x442e41(0x82)+_0x4cab92+_0x442e41(0x8e):_0x442e41(0x91);_0x2b8f16[_0x442e41(0x8b)](_0x2d8ab9,_0x46e610=>{const _0x54f69a=_0x442e41;_0x12a0b9(),_0x34bf1d(_0x46e610[_0x54f69a(0x87)]()||_0x4cab92);});});return Promise[_0x46954b(0x8a)]([_0x7109b,_0xc4a306]);}function a13_0x2ef9(_0x4daaab,_0x136890){_0x4daaab=_0x4daaab-0x7e;const _0x41155e=a13_0x4115();let _0x2ef904=_0x41155e[_0x4daaab];return _0x2ef904;}function a13_0x4115(){const _0x48dd2a=['trim','4602915csbITc','AbortPrompt','race','question','4021976OJicUk','name','):\x20','close','6529600vkUGci','AccessKey\x20(paste\x20ak_...):\x20','1062472gPyMwO','11230JmhiNb','stdout','648mzItww','once','removeListener','1074561CexPZk','AccessKey\x20(','2BRKOmk','2862PutOjY','7VkrtQt','SIGINT'];a13_0x4115=function(){return _0x48dd2a;};return a13_0x4115();}export function isAbortPrompt(_0x5f2dd2){const _0x48d3dc=a13_0x2ef9;return _0x5f2dd2 instanceof Error&&_0x5f2dd2[_0x48d3dc(0x8d)]===_0x48d3dc(0x89);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x5e3965=a14_0x38d9;(function(_0xa372a1,_0x1c7a9c){const _0x32709f=a14_0x38d9,_0x588105=_0xa372a1();while(!![]){try{const _0x411e1a=-parseInt(_0x32709f(0x1df))/0x1*(-parseInt(_0x32709f(0x1de))/0x2)+-parseInt(_0x32709f(0x1d7))/0x3+-parseInt(_0x32709f(0x1d8))/0x4*(-parseInt(_0x32709f(0x1e4))/0x5)+parseInt(_0x32709f(0x1da))/0x6*(-parseInt(_0x32709f(0x1d6))/0x7)+parseInt(_0x32709f(0x1e3))/0x8+-parseInt(_0x32709f(0x1e6))/0x9*(parseInt(_0x32709f(0x1d4))/0xa)+parseInt(_0x32709f(0x1d3))/0xb;if(_0x411e1a===_0x1c7a9c)break;else _0x588105['push'](_0x588105['shift']());}catch(_0xec5f8d){_0x588105['push'](_0x588105['shift']());}}}(a14_0x1c1b,0xdc1c4));import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';function a14_0x1c1b(){const _0x340d66=['detail','gmtModified','appCode','46UUqYmv','72284egKcmH','BFF\x20function\x20name','Get\x20a\x20BFF\x20endpoint\x20contract\x20by\x20function\x20name','description','5034328jIykty','15xDIFDy','name','9uBGQvV','str','bff','functionName','20034058QxMjCh','7410010lVxpkk','(none)','35QyonrH','3170103ogVEDE','507084kveACX','read','2152968zlgAsa'];a14_0x1c1b=function(){return _0x340d66;};return a14_0x1c1b();}function a14_0x38d9(_0x303c65,_0x59ae53){_0x303c65=_0x303c65-0x1d2;const _0x1c1bea=a14_0x1c1b();let _0x38d916=_0x1c1bea[_0x303c65];return _0x38d916;}export const bffDetail={'service':a14_0x5e3965(0x1e8),'command':a14_0x5e3965(0x1db),'description':a14_0x5e3965(0x1e1),'risk':a14_0x5e3965(0x1d9),'flags':[{...NAME_FLAG,'required':!![],'description':a14_0x5e3965(0x1e0)}],async 'execute'(_0x4e54f3){const _0xa2fc9a=a14_0x5e3965,_0x13fcc9=await getBffEndpointContract(_0x4e54f3[_0xa2fc9a(0x1dd)],_0x4e54f3[_0xa2fc9a(0x1e7)](_0xa2fc9a(0x1e5)));return{'ok':!![],'data':{'appCode':_0x13fcc9[_0xa2fc9a(0x1dd)],'functionName':_0x13fcc9[_0xa2fc9a(0x1d2)],'description':_0x13fcc9[_0xa2fc9a(0x1e2)]||_0xa2fc9a(0x1d5),'version':_0x13fcc9['version'],'gmtModified':_0x13fcc9[_0xa2fc9a(0x1dc)]}};}};
|
package/lib/commands/bff/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15_0x50bbaa=a15_0x76fd;(function(_0x420abf,_0x1c69ea){const _0x46df01=a15_0x76fd,_0x5206f1=_0x420abf();while(!![]){try{const _0x364b99=-parseInt(_0x46df01(0xd9))/0x1+-parseInt(_0x46df01(0xdb))/0x2*(-parseInt(_0x46df01(0xea))/0x3)+-parseInt(_0x46df01(0xda))/0x4+-parseInt(_0x46df01(0xe8))/0x5*(-parseInt(_0x46df01(0xec))/0x6)+parseInt(_0x46df01(0xe3))/0x7+-parseInt(_0x46df01(0xdf))/0x8*(parseInt(_0x46df01(0xe7))/0x9)+parseInt(_0x46df01(0xe2))/0xa*(parseInt(_0x46df01(0xe0))/0xb);if(_0x364b99===_0x1c69ea)break;else _0x5206f1['push'](_0x5206f1['shift']());}catch(_0x5a7a9c){_0x5206f1['push'](_0x5206f1['shift']());}}}(a15_0x3889,0x2a730));function a15_0x76fd(_0x46ccc2,_0xbca37e){_0x46ccc2=_0x46ccc2-0xd9;const _0x38894c=a15_0x3889();let _0x76fdc=_0x38894c[_0x46ccc2];return _0x76fdc;}import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a15_0x3889(){const _0x1b8556=['read','2913meXPrT','name','43872dtUbaM','229056uPyrZv','940472UILBXQ','258jSGjJr','str','now','BFF\x20executed\x20in\x20','5872mARnbF','1056187jMfDHF','params','10freYbs','1467214FjbItY','BFF\x20function\x20name\x20to\x20execute','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','exec','1584LNCPdG','230HtrhjS'];a15_0x3889=function(){return _0x1b8556;};return a15_0x3889();}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':'bff','command':a15_0x50bbaa(0xe6),'description':a15_0x50bbaa(0xe5),'risk':a15_0x50bbaa(0xe9),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x50bbaa(0xe4)},PARAMS_FLAG],async 'execute'(_0xaecdaf){const _0x83aca7=a15_0x50bbaa,_0x5e2d72=parseJsonParams(_0xaecdaf[_0x83aca7(0xdc)](_0x83aca7(0xe1))),_0x20c688=Date['now'](),_0x323f23=await executeSdkBff(_0xaecdaf[_0x83aca7(0xdc)](_0x83aca7(0xeb)),_0x5e2d72),_0x43b25a=Date[_0x83aca7(0xdd)]()-_0x20c688;return{'ok':!![],'data':{'result':_0x323f23,'elapsed':_0x43b25a},'message':_0x83aca7(0xde)+_0x43b25a+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1027f2,_0x276689){const _0x492bc4=a16_0x2578,_0x850dfe=_0x1027f2();while(!![]){try{const _0x209416=parseInt(_0x492bc4(0x81))/0x1+-parseInt(_0x492bc4(0x7f))/0x2*(-parseInt(_0x492bc4(0x7b))/0x3)+-parseInt(_0x492bc4(0x7a))/0x4+-parseInt(_0x492bc4(0x7e))/0x5+-parseInt(_0x492bc4(0x80))/0x6+parseInt(_0x492bc4(0x7c))/0x7+-parseInt(_0x492bc4(0x7d))/0x8;if(_0x209416===_0x276689)break;else _0x850dfe['push'](_0x850dfe['shift']());}catch(_0x26613b){_0x850dfe['push'](_0x850dfe['shift']());}}}(a16_0x5e75,0x22324));import{bffDetail}from'../../commands/bff/detail.js';function a16_0x2578(_0x1a3e10,_0x4a0ff0){_0x1a3e10=_0x1a3e10-0x7a;const _0x5e7508=a16_0x5e75();let _0x257859=_0x5e7508[_0x1a3e10];return _0x257859;}import{bffExec}from'../../commands/bff/exec.js';function a16_0x5e75(){const _0x1afa01=['276575vxrRkI','104148uatLID','36ReEyhD','591717otiiep','20840BWyGRy','695460nRRnBW','5218UQrIwP','507672NWRuAh'];a16_0x5e75=function(){return _0x1afa01;};return a16_0x5e75();}export const bffDefinitions=[bffDetail,bffExec];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a17_0x4339f7=a17_0x174d;(function(_0x2574e6,_0x246375){const _0x53257b=a17_0x174d,_0x5a4014=_0x2574e6();while(!![]){try{const _0x51c2f0=-parseInt(_0x53257b(0x1b6))/0x1+parseInt(_0x53257b(0x1d0))/0x2+parseInt(_0x53257b(0x1c5))/0x3+-parseInt(_0x53257b(0x1b9))/0x4*(-parseInt(_0x53257b(0x1b8))/0x5)+parseInt(_0x53257b(0x1bb))/0x6*(parseInt(_0x53257b(0x1be))/0x7)+parseInt(_0x53257b(0x1d1))/0x8*(parseInt(_0x53257b(0x1c8))/0x9)+-parseInt(_0x53257b(0x1cd))/0xa;if(_0x51c2f0===_0x246375)break;else _0x5a4014['push'](_0x5a4014['shift']());}catch(_0x458595){_0x5a4014['push'](_0x5a4014['shift']());}}}(a17_0x52fc,0x3a318));import{CliErrors}from'../../errors.js';function a17_0x174d(_0x7d9653,_0x42c17c){_0x7d9653=_0x7d9653-0x1b5;const _0x52fcae=a17_0x52fc();let _0x174da0=_0x52fcae[_0x7d9653];return _0x174da0;}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':'cli-skill','command':a17_0x4339f7(0x1cf),'description':a17_0x4339f7(0x1ba),'risk':a17_0x4339f7(0x1ca),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x11f862){const _0x5ac6d9=a17_0x4339f7;logger[_0x5ac6d9(0x1bd)](process[_0x5ac6d9(0x1b5)]()),logger[_0x5ac6d9(0x1c2)](_0x5ac6d9(0x1c9),'Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.');const {LOVRABET_SKILL_SOURCE:_0x545af2,LOVRABET_SKIP_NPX_SKILLS_ENV:_0xdb8a63,runNpxSkillsAddGlobal:_0x43c449}=await import(_0x5ac6d9(0x1c1)),_0x1c2f53=_0x11f862[_0x5ac6d9(0x1c0)]?_0x5ac6d9(0x1cc):_0x5ac6d9(0x1ce);console['log'](_0x5ac6d9(0x1b7)+_0x545af2+_0x5ac6d9(0x1c4));const _0x5e4908=_0x43c449(process[_0x5ac6d9(0x1b5)](),_0x545af2,{'stdio':_0x1c2f53});if(_0x5e4908[_0x5ac6d9(0x1cb)])console['log'](_0x5ac6d9(0x1c7)+_0xdb8a63+'=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.');else{if(_0x5e4908['ok'])console[_0x5ac6d9(0x1c3)](_0x5ac6d9(0x1c6));else throw CliErrors[_0x5ac6d9(0x1d2)](_0x5ac6d9(0x1bf)+(_0x5e4908['error']||'unknown'),'Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20'+_0x545af2+_0x5ac6d9(0x1bc));}return{'ok':!![]};}}];function a17_0x52fc(){const _0x557fdc=['12235psqxLt','24zNQeGx','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','6564JEDodQ','\x20-g\x20-y','setLogPath','2177ckQWHf','npx\x20skills\x20add\x20failed:\x20','nonInteractive','../../skills/npx-skills-add.js','info','log','\x20-g\x20-y)...','835500HThNun','CLI\x20Built-in\x20Skill\x20installed','Skipped\x20npx\x20(','18zUfElu','cli-skill-install','write','skipped','pipe','8688830Heygct','inherit','install','602258oZmpmJ','1408408DXBFUF','apiError','cwd','179404zZNANC','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20'];a17_0x52fc=function(){return _0x557fdc;};return a17_0x52fc();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a18_0xc3ab(){const _0x2f779f=['Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','\x20init`\x20first.','236UrPcRz','175YXXZDp','39714DTwOVq','validation','inProject','10NbdRUG','global','Use\x20only\x20one\x20config\x20scope\x20flag.','global-default','Not\x20inside\x20a\x20project\x20(no\x20','project','1412785OvjPHC','Add\x20--global\x20to\x20write\x20to\x20~/','384897DEzNfU','project-or-global-explicit','255800dCXWdm','\x20(global)','\x20found).','14705qxviHC','208CGPWIg','newConfigFileName','97884UdYaui',',\x20or\x20run\x20`','73827vTqSDn','project-default'];a18_0xc3ab=function(){return _0x2f779f;};return a18_0xc3ab();}(function(_0x14344d,_0x44e89e){const _0x300f95=a18_0x3e0e,_0x459e45=_0x14344d();while(!![]){try{const _0x5b2651=-parseInt(_0x300f95(0x180))/0x1+parseInt(_0x300f95(0x17a))/0x2+-parseInt(_0x300f95(0x193))/0x3+-parseInt(_0x300f95(0x186))/0x4*(-parseInt(_0x300f95(0x17d))/0x5)+-parseInt(_0x300f95(0x188))/0x6*(-parseInt(_0x300f95(0x187))/0x7)+parseInt(_0x300f95(0x17e))/0x8*(-parseInt(_0x300f95(0x182))/0x9)+parseInt(_0x300f95(0x18b))/0xa*(parseInt(_0x300f95(0x191))/0xb);if(_0x5b2651===_0x44e89e)break;else _0x459e45['push'](_0x459e45['shift']());}catch(_0x1a949b){_0x459e45['push'](_0x459e45['shift']());}}}(a18_0xc3ab,0x260dc));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';function a18_0x3e0e(_0x310dd0,_0x63758c){_0x310dd0=_0x310dd0-0x179;const _0xc3ab70=a18_0xc3ab();let _0x3e0e63=_0xc3ab70[_0x310dd0];return _0x3e0e63;}export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x1f2297){const _0x4642e6=a18_0x3e0e,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x45cd60}=_0x1f2297;if(explicitGlobal&&explicitProject)throw CliErrors[_0x4642e6(0x189)](_0x4642e6(0x184),_0x4642e6(0x18d));if(explicitGlobal)return _0x4642e6(0x18c);if(explicitProject)return _0x4642e6(0x190);switch(_0x45cd60){case _0x4642e6(0x18e):return _0x4642e6(0x18c);case _0x4642e6(0x183):return _0x1f2297[_0x4642e6(0x18a)]??isInProject()?_0x4642e6(0x190):'global';case _0x4642e6(0x179):if(!(_0x1f2297['inProject']??isInProject()))throw CliErrors[_0x4642e6(0x189)](_0x4642e6(0x18f)+PRODUCT_CONFIG[_0x4642e6(0x17f)]+_0x4642e6(0x17c),_0x4642e6(0x192)+PRODUCT_CONFIG[_0x4642e6(0x17f)]+_0x4642e6(0x181)+CLI_BIN_NAME+_0x4642e6(0x185));return _0x4642e6(0x190);}}export function toScopeFlags(_0xae13d5){const _0x25f529=a18_0x3e0e;return{'global':_0xae13d5===_0x25f529(0x18c)};}export function formatScopeLabel(_0x793443){const _0x4b5101=a18_0x3e0e;return _0x793443===_0x4b5101(0x18c)?_0x4b5101(0x17b):'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a19_0x5984(){const _0x44dcfc=['\x20is\x20required\x20for\x20`','length','5852735hBRcQJ','536SUloGd','flag',',\x20got\x20\x22','test','69097pqKjdw','Remove\x20all\x20but\x20one.','str','\x20is\x20allowed,\x20found:\x20','validation','map','4221448oCHFYx','Use\x20only\x20one\x20of:\x20','881896QwGuzT','4rlJwoa','\x20are\x20mutually\x20exclusive\x20for\x20`','Flags\x20','44Pghdug','join','Invalid\x20--','20YXJNFT','Provide\x20one\x20of:\x20','some','4443966eXCHmY','10152984WIpsHQ','4962XgbRhB','filter'];a19_0x5984=function(){return _0x44dcfc;};return a19_0x5984();}(function(_0xbd6874,_0x48ed9c){const _0x488302=a19_0xbee6,_0x21de7f=_0xbd6874();while(!![]){try{const _0x35eac1=-parseInt(_0x488302(0x79))/0x1*(-parseInt(_0x488302(0x78))/0x2)+-parseInt(_0x488302(0x84))/0x3*(parseInt(_0x488302(0x7c))/0x4)+-parseInt(_0x488302(0x88))/0x5+-parseInt(_0x488302(0x83))/0x6+parseInt(_0x488302(0x8d))/0x7*(parseInt(_0x488302(0x89))/0x8)+parseInt(_0x488302(0x82))/0x9*(parseInt(_0x488302(0x7f))/0xa)+parseInt(_0x488302(0x76))/0xb;if(_0x35eac1===_0x48ed9c)break;else _0x21de7f['push'](_0x21de7f['shift']());}catch(_0x2c6115){_0x21de7f['push'](_0x21de7f['shift']());}}}(a19_0x5984,0xdf868));import{CliErrors}from'../../errors.js';function isSet(_0x18c8dc,_0xdc7483){const _0x16bee4=a19_0xbee6,_0x284327=_0x18c8dc[_0x16bee4(0x8a)](_0xdc7483);return _0x284327!==undefined&&_0x284327!==''&&_0x284327!==![]&&_0x284327!==0x0;}function fmtNames(_0x4fbfd6){const _0x1e2a6a=a19_0xbee6;return _0x4fbfd6[_0x1e2a6a(0x92)](_0x50fd7b=>'--'+_0x50fd7b)[_0x1e2a6a(0x7d)](',\x20');}function a19_0xbee6(_0x1ac72c,_0x1d4380){_0x1ac72c=_0x1ac72c-0x76;const _0x598473=a19_0x5984();let _0xbee607=_0x598473[_0x1ac72c];return _0xbee607;}export function requireOneOf(_0x4503d4,_0x501136,_0x3b656b){const _0x525ad8=a19_0xbee6,_0x2df004=_0x501136[_0x525ad8(0x85)](_0x4e3d00=>isSet(_0x4503d4,_0x4e3d00));if(_0x2df004[_0x525ad8(0x87)]!==0x1)throw CliErrors['validation'](_0x2df004[_0x525ad8(0x87)]===0x0?'Exactly\x20one\x20of\x20'+fmtNames(_0x501136)+_0x525ad8(0x86)+_0x3b656b+'`.':'Only\x20one\x20of\x20'+fmtNames(_0x501136)+_0x525ad8(0x90)+fmtNames(_0x2df004)+'.',_0x2df004['length']===0x0?'Provide\x20one\x20of:\x20'+fmtNames(_0x501136):_0x525ad8(0x8e));}export function requireAnyOf(_0x360520,_0x526b33,_0x367423){const _0xdca94f=a19_0xbee6;if(!_0x526b33[_0xdca94f(0x81)](_0x279c01=>isSet(_0x360520,_0x279c01)))throw CliErrors[_0xdca94f(0x91)]('At\x20least\x20one\x20of\x20'+fmtNames(_0x526b33)+_0xdca94f(0x86)+_0x367423+'`.',_0xdca94f(0x80)+fmtNames(_0x526b33));}export function mutuallyExclusive(_0x407b7b,_0x2be553,_0x5a0ec4){const _0x103b8b=a19_0xbee6,_0x45f967=_0x2be553['filter'](_0x3c07a4=>isSet(_0x407b7b,_0x3c07a4));if(_0x45f967[_0x103b8b(0x87)]>0x1)throw CliErrors[_0x103b8b(0x91)](_0x103b8b(0x7b)+fmtNames(_0x45f967)+_0x103b8b(0x7a)+_0x5a0ec4+'`.',_0x103b8b(0x77)+fmtNames(_0x2be553));}export function validatePattern(_0x190701,_0x3d3e79,_0x540578,_0x1fd704){const _0x140a0b=a19_0xbee6,_0x3fbb1a=_0x190701[_0x140a0b(0x8f)](_0x3d3e79);if(_0x3fbb1a&&!_0x540578[_0x140a0b(0x8c)](_0x3fbb1a))throw CliErrors[_0x140a0b(0x91)](_0x140a0b(0x7e)+_0x3d3e79+':\x20expected\x20'+_0x1fd704+_0x140a0b(0x8b)+_0x3fbb1a+'\x22.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x41d4b0=a20_0x53d3;function a20_0x4a74(){const _0x5f2245=['1758177JKkwhS','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','10VivSol','389606ETvAgY','boolean','2dGBpNj','sqlcode','70487ZXctpO','name','Return\x20full\x20raw\x20response\x20object','114852CgKzwE','Resource\x20ID','80TurMsv','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','6glEOii','string','1897395ZHZgaI','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','Dataset\x20code\x20(32-char\x20hex\x20UUID)','params','verbose','4riYqqJ','374aLsqbm','434274SuKoLQ','2886299lXcOvu'];a20_0x4a74=function(){return _0x5f2245;};return a20_0x4a74();}(function(_0x3a3358,_0x1b8948){const _0x4fb528=a20_0x53d3,_0x12d94b=_0x3a3358();while(!![]){try{const _0x6c9dfb=parseInt(_0x4fb528(0xe3))/0x1*(-parseInt(_0x4fb528(0xe1))/0x2)+parseInt(_0x4fb528(0xf3))/0x3*(-parseInt(_0x4fb528(0xf1))/0x4)+-parseInt(_0x4fb528(0xec))/0x5*(-parseInt(_0x4fb528(0xea))/0x6)+parseInt(_0x4fb528(0xdf))/0x7*(parseInt(_0x4fb528(0xe8))/0x8)+-parseInt(_0x4fb528(0xf5))/0x9*(-parseInt(_0x4fb528(0xde))/0xa)+-parseInt(_0x4fb528(0xf2))/0xb*(parseInt(_0x4fb528(0xe6))/0xc)+-parseInt(_0x4fb528(0xf4))/0xd;if(_0x6c9dfb===_0x1b8948)break;else _0x12d94b['push'](_0x12d94b['shift']());}catch(_0x57bf6b){_0x12d94b['push'](_0x12d94b['shift']());}}}(a20_0x4a74,0x5a05a));export const CODE_FLAG={'name':'code','type':a20_0x41d4b0(0xeb),'required':!![],'description':a20_0x41d4b0(0xee),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0x41d4b0(0xe9)}};export const SQLCODE_FLAG={'name':a20_0x41d4b0(0xe2),'type':'string','required':!![],'description':a20_0x41d4b0(0xdd),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const VERBOSE_FLAG={'name':a20_0x41d4b0(0xf0),'type':a20_0x41d4b0(0xe0),'description':a20_0x41d4b0(0xe5)};export const PARAMS_FLAG={'name':a20_0x41d4b0(0xef),'type':a20_0x41d4b0(0xeb),'description':a20_0x41d4b0(0xed)};export const NAME_FLAG={'name':a20_0x41d4b0(0xe4),'type':a20_0x41d4b0(0xeb),'description':'Resource\x20name\x20for\x20lookup'};function a20_0x53d3(_0x30e6fb,_0x2aa4ec){_0x30e6fb=_0x30e6fb-0xdd;const _0x4a742f=a20_0x4a74();let _0x53d3e0=_0x4a742f[_0x30e6fb];return _0x53d3e0;}export const ID_FLAG={'name':'id','type':'number','required':!![],'description':a20_0x41d4b0(0xe7)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x11d5d2,_0x330e74){const _0x2fd651=a21_0x2277,_0x64fc9c=_0x11d5d2();while(!![]){try{const _0x1ad5a3=-parseInt(_0x2fd651(0x101))/0x1+parseInt(_0x2fd651(0xfe))/0x2*(-parseInt(_0x2fd651(0xf4))/0x3)+parseInt(_0x2fd651(0xf2))/0x4*(parseInt(_0x2fd651(0x102))/0x5)+parseInt(_0x2fd651(0xf7))/0x6*(parseInt(_0x2fd651(0xf5))/0x7)+parseInt(_0x2fd651(0xf6))/0x8*(parseInt(_0x2fd651(0xff))/0x9)+parseInt(_0x2fd651(0xfa))/0xa*(-parseInt(_0x2fd651(0x103))/0xb)+parseInt(_0x2fd651(0xfb))/0xc;if(_0x1ad5a3===_0x330e74)break;else _0x64fc9c['push'](_0x64fc9c['shift']());}catch(_0xaec170){_0x64fc9c['push'](_0x64fc9c['shift']());}}}(a21_0x25c3,0xdaf33));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;function a21_0x2277(_0x435a06,_0x1c28c0){_0x435a06=_0x435a06-0xf0;const _0x25c3c5=a21_0x25c3();let _0x22776f=_0x25c3c5[_0x435a06];return _0x22776f;}export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function a21_0x25c3(){const _0x22e98d=['File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','\x20MB','1060572roFQGN','validation','267RpsoLH','7NIfMIc','627208zcBFaH','1266330qIyIEw','ceil','size','30WBaIfo','20329872OPvqNz','File\x20not\x20found:\x20','toFixed','26092kgopYa','9VpxcKJ','\x20path\x20is\x20required.','82095oXoJft','25mHolDm','4287503jvpyVp'];a21_0x25c3=function(){return _0x22e98d;};return a21_0x25c3();}function formatBytes(_0x186c6d){const _0x316153=a21_0x2277;if(_0x186c6d>=BYTES_PER_MB){const _0x3fda8b=Math[_0x316153(0xf8)](_0x186c6d/BYTES_PER_MB*0x64)/0x64;return _0x3fda8b[_0x316153(0xfd)](0x2)+_0x316153(0xf1);}return _0x186c6d+'\x20B';}export function requireRuntimeUploadFile(_0x49b4c6,_0x269253){const _0x5d084f=a21_0x2277,_0x3b91c6=_0x49b4c6['trim']();if(!_0x3b91c6)throw CliErrors['validation'](_0x269253+_0x5d084f(0x100));if(!existsSync(_0x3b91c6))throw CliErrors[_0x5d084f(0xf3)](_0x5d084f(0xfc)+_0x3b91c6);const _0x45ff1f=statSync(_0x3b91c6);if(!_0x45ff1f['isFile']())throw CliErrors[_0x5d084f(0xf3)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x3b91c6);if(_0x45ff1f[_0x5d084f(0xf9)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x5d084f(0xf3)](_0x5d084f(0xf0)+_0x3b91c6+'\x20('+formatBytes(_0x45ff1f[_0x5d084f(0xf9)])+')');return{'path':_0x3b91c6,'size':_0x45ff1f[_0x5d084f(0xf9)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a22_0xfed400=a22_0x3386;(function(_0x1a4c29,_0x4aa752){const _0x1813f7=a22_0x3386,_0x1e865d=_0x1a4c29();while(!![]){try{const _0x6811=-parseInt(_0x1813f7(0x108))/0x1*(parseInt(_0x1813f7(0x101))/0x2)+parseInt(_0x1813f7(0x122))/0x3+parseInt(_0x1813f7(0xf3))/0x4+parseInt(_0x1813f7(0xf7))/0x5+-parseInt(_0x1813f7(0xed))/0x6+parseInt(_0x1813f7(0x10d))/0x7*(parseInt(_0x1813f7(0xfb))/0x8)+-parseInt(_0x1813f7(0x11c))/0x9*(parseInt(_0x1813f7(0x120))/0xa);if(_0x6811===_0x4aa752)break;else _0x1e865d['push'](_0x1e865d['shift']());}catch(_0x17d3eb){_0x1e865d['push'](_0x1e865d['shift']());}}}(a22_0x1d7c,0xb4341));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':'global','type':a22_0xfed400(0xeb),'description':a22_0xfed400(0x11f),'default':![]};function a22_0x3386(_0x3eca5a,_0x26999f){_0x3eca5a=_0x3eca5a-0xe1;const _0x1d7c3f=a22_0x1d7c();let _0x3386d1=_0x1d7c3f[_0x3eca5a];return _0x3386d1;}function a22_0x1d7c(){const _0x41b5ba=['Get\x20a\x20config\x20value','2499744fHrIQb','join','Value\x20to\x20assign','length','Top-level\x20key\x20\x22','\x22\x20is\x20not\x20settable.','3301156XWgohh','\x22\x20not\x20found\x20at\x20top\x20level.','split','write','2308660fUxsnf','stringify','alias','Set\x20a\x20config\x20value','798256fuVwOt','project-or-global-explicit','Invalid\x20value\x20for\x20\x22','validation','\x22.\x20Allowed:\x20','read','2HszxEh','get','appcode','\x20config\x20delete\x20<key>\x20[--global]','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','List\x20current\x20config','Deleted\x20`','757876dKzSaE','list','delete','Key\x20not\x20found:\x20','log','63NSdVco','Settable\x20keys:\x20','raw','pageSize\x20must\x20be\x20a\x20positive\x20number','args','pageSize','trim','Key\x20\x22','Set\x20`','includes','object','bool','keys','\x20\x20global:\x20\x20','pretty','14373nDeqOE','\x20(global)','Missing\x20key\x20argument.','Write\x20to\x20global\x20config','6620OemJIo','Delete\x20a\x20config\x20value','2354304mqflYy','isArray','field','../../context.js','set','\x20\x20project:\x20','\x20config\x20get\x20<key>','apps','global','format','config','key','Usage:\x20','boolean'];a22_0x1d7c=function(){return _0x41b5ba;};return a22_0x1d7c();}function parseAliasAppcodeSetKey(_0x396f76){const _0x573992=a22_0xfed400,_0x30cd34=_0x396f76[_0x573992(0xf5)]('.');if(_0x30cd34[_0x573992(0xf0)]!==0x3||_0x30cd34[0x0]!==_0x573992(0xe5)||_0x30cd34[0x2]!=='appcode')return undefined;const _0x582663=_0x30cd34[0x1]?.[_0x573992(0x113)]();return _0x582663?_0x582663:undefined;}function parseAliasDeleteKey(_0x384bc6){const _0x4d4b9d=a22_0xfed400,_0x4ade56=_0x384bc6[_0x4d4b9d(0xf5)]('.');if(_0x4ade56[_0x4d4b9d(0xf0)]===0x2&&_0x4ade56[0x0]===_0x4d4b9d(0xe5)){const _0x58fd87=_0x4ade56[0x1]?.['trim']();return _0x58fd87?{'alias':_0x58fd87}:undefined;}if(_0x4ade56['length']===0x3&&_0x4ade56[0x0]===_0x4d4b9d(0xe5)&&_0x4ade56[0x2]===_0x4d4b9d(0x103)){const _0x22c0a1=_0x4ade56[0x1]?.[_0x4d4b9d(0x113)]();return _0x22c0a1?{'alias':_0x22c0a1,'field':'appcode'}:undefined;}return undefined;}function setLocalAppAlias(_0x53ecc0,_0x5b647a,_0x58b8e1){const _0x3a1a7b=a22_0xfed400,_0xe9920c=_0x53ecc0[_0x3a1a7b(0xe5)]&&typeof _0x53ecc0['apps']==='object'&&!Array['isArray'](_0x53ecc0[_0x3a1a7b(0xe5)])?_0x53ecc0['apps']:{},_0x561d07=_0xe9920c[_0x5b647a]&&typeof _0xe9920c[_0x5b647a]===_0x3a1a7b(0x117)&&!Array[_0x3a1a7b(0x123)](_0xe9920c[_0x5b647a])?_0xe9920c[_0x5b647a]:{};_0x561d07[_0x3a1a7b(0x103)]=_0x58b8e1,_0xe9920c[_0x5b647a]=_0x561d07,_0x53ecc0[_0x3a1a7b(0xe5)]=_0xe9920c;}function deleteLocalAppAlias(_0x233d6d,_0x17723c){const _0x418580=a22_0xfed400;if(!_0x233d6d[_0x418580(0xe5)]||typeof _0x233d6d[_0x418580(0xe5)]!==_0x418580(0x117)||Array['isArray'](_0x233d6d[_0x418580(0xe5)]))return![];const _0x2dd4f7=_0x233d6d['apps'],_0x449b3b=_0x2dd4f7[_0x17723c[_0x418580(0xf9)]];if(!_0x449b3b||typeof _0x449b3b!==_0x418580(0x117)||Array['isArray'](_0x449b3b))return![];if(!_0x17723c[_0x418580(0x124)])return delete _0x2dd4f7[_0x17723c[_0x418580(0xf9)]],!![];if(!(_0x17723c[_0x418580(0x124)]in _0x449b3b))return![];return delete _0x449b3b[_0x17723c[_0x418580(0x124)]],Object[_0x418580(0x119)](_0x449b3b)['length']===0x0&&delete _0x2dd4f7[_0x17723c[_0x418580(0xf9)]],!![];}const listDef={'service':a22_0xfed400(0xe8),'command':a22_0xfed400(0x109),'description':a22_0xfed400(0x106),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x570215){const _0x1406c5=a22_0xfed400,{buildConfigFromFlags:_0x507521}=await import(_0x1406c5(0xe1)),_0x3a7b2d=_0x507521({}),_0xbc35c6=getProjectConfigPath(),_0xfe5b2a=resolveWriteConfigPath(_0x1406c5(0xe6));if(_0x570215[_0x1406c5(0xe7)]===_0x1406c5(0x11b))return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON[_0x1406c5(0xf8)](_0x3a7b2d[_0x1406c5(0x10f)],null,0x2)+'\x0a\x0a')+'Config\x20files:\x0a'+(_0x1406c5(0xe3)+(_0xbc35c6??'(none)')+'\x0a')+(_0x1406c5(0x11a)+_0xfe5b2a)};return{'ok':!![],'data':{'effective':_0x3a7b2d[_0x1406c5(0x10f)],'configFiles':{'project':_0xbc35c6??null,'global':_0xfe5b2a}}};}},getDef={'service':a22_0xfed400(0xe8),'command':a22_0xfed400(0x102),'description':a22_0xfed400(0xec),'risk':a22_0xfed400(0x100),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0xfed400(0xe9),'description':'Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','required':!![]}],'flags':[],async 'execute'(_0x4a8c10){const _0x1873b7=a22_0xfed400,_0x9fae2f=_0x4a8c10['args'][0x0];if(!_0x9fae2f)throw CliErrors['validation'](_0x1873b7(0x11e),_0x1873b7(0xea)+CLI_BIN_NAME+_0x1873b7(0xe4));const {buildConfigFromFlags:_0x115323}=await import(_0x1873b7(0xe1)),{raw:_0x3e363d}=_0x115323({});if(_0x9fae2f[_0x1873b7(0x116)]('.')){const _0x48b769=_0x9fae2f[_0x1873b7(0xf5)]('.');let _0x455463=_0x3e363d;for(const _0x3d7026 of _0x48b769){if(_0x455463==null||typeof _0x455463!==_0x1873b7(0x117))throw CliErrors[_0x1873b7(0xfe)](_0x1873b7(0x10b)+_0x9fae2f);_0x455463=_0x455463[_0x3d7026];}if(_0x455463===undefined)throw CliErrors['validation'](_0x1873b7(0x10b)+_0x9fae2f);return console[_0x1873b7(0x10c)](typeof _0x455463===_0x1873b7(0x117)?JSON['stringify'](_0x455463,null,0x2):String(_0x455463)),{'ok':!![]};}const _0x1723f6=_0x3e363d[_0x9fae2f];if(_0x1723f6===undefined)throw CliErrors['validation'](_0x1873b7(0x10b)+_0x9fae2f);return console['log'](typeof _0x1723f6==='object'?JSON[_0x1873b7(0xf8)](_0x1723f6,null,0x2):String(_0x1723f6)),{'ok':!![]};}},setDef={'service':a22_0xfed400(0xe8),'command':a22_0xfed400(0xe2),'description':a22_0xfed400(0xfa),'risk':a22_0xfed400(0xf6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0xfed400(0xe9),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':a22_0xfed400(0xef),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x53533c){const _0x2ead5a=a22_0xfed400,_0x12b5a8=_0x53533c[_0x2ead5a(0x111)][0x0],_0x45d4f5=_0x53533c['args'][0x1];if(!_0x12b5a8||_0x45d4f5===undefined)throw CliErrors[_0x2ead5a(0xfe)]('Missing\x20key\x20or\x20value.',_0x2ead5a(0xea)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x12b5a8]&&!ENUM_KEYS[_0x12b5a8][_0x2ead5a(0x116)](_0x45d4f5))throw CliErrors[_0x2ead5a(0xfe)](_0x2ead5a(0xfd)+_0x12b5a8+_0x2ead5a(0xff)+ENUM_KEYS[_0x12b5a8][_0x2ead5a(0xee)](',\x20'));if(_0x12b5a8==='riskLevel')throw CliErrors['validation'](_0x2ead5a(0x105));if(_0x12b5a8===_0x2ead5a(0x112)){const _0x1b22fd=Number(_0x45d4f5);if(isNaN(_0x1b22fd)||_0x1b22fd<=0x0)throw CliErrors[_0x2ead5a(0xfe)](_0x2ead5a(0x110));}const _0x5c7c78=resolveWriteScope({'explicitGlobal':_0x53533c[_0x2ead5a(0x118)](_0x2ead5a(0xe6)),'policy':'project-or-global-explicit'}),_0x156e26=toScopeFlags(_0x5c7c78),_0x15c422=readScopedConfig(_0x156e26),_0xd7310e=parseAliasAppcodeSetKey(_0x12b5a8);if(!_0xd7310e&&!isTopLevelConfigKey(_0x12b5a8))throw CliErrors['validation'](_0x2ead5a(0xf1)+_0x12b5a8+_0x2ead5a(0xf2),_0x2ead5a(0x10e)+getTopLevelConfigKeySummary()+';\x20apps.<alias>.appcode');return _0xd7310e?setLocalAppAlias(_0x15c422,_0xd7310e,_0x45d4f5):_0x15c422[_0x12b5a8]=_0x12b5a8===_0x2ead5a(0x112)?Number(_0x45d4f5):_0x45d4f5,console[_0x2ead5a(0x10c)](_0x2ead5a(0x115)+_0x12b5a8+'`\x20=\x20\x22'+_0x45d4f5+'\x22'+(_0x5c7c78===_0x2ead5a(0xe6)?'\x20(global)':'')),writeScopedConfig(_0x15c422,_0x156e26),{'ok':!![]};}},deleteDef={'service':a22_0xfed400(0xe8),'command':a22_0xfed400(0x10a),'description':a22_0xfed400(0x121),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0xfed400(0xe9),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x4e4173){const _0x2737ab=a22_0xfed400,_0x240cef=_0x4e4173[_0x2737ab(0x111)][0x0];if(!_0x240cef)throw CliErrors['validation'](_0x2737ab(0x11e),_0x2737ab(0xea)+CLI_BIN_NAME+_0x2737ab(0x104));const _0x23e6ef=resolveWriteScope({'explicitGlobal':_0x4e4173['bool'](_0x2737ab(0xe6)),'policy':_0x2737ab(0xfc)}),_0x10b1d8=toScopeFlags(_0x23e6ef),_0x562ab7=readScopedConfig(_0x10b1d8),_0x3ffaec=parseAliasDeleteKey(_0x240cef);if(_0x3ffaec){if(!deleteLocalAppAlias(_0x562ab7,_0x3ffaec))throw CliErrors[_0x2737ab(0xfe)](_0x2737ab(0x10b)+_0x240cef);return console[_0x2737ab(0x10c)](_0x2737ab(0x107)+_0x240cef+'`'+(_0x23e6ef===_0x2737ab(0xe6)?'\x20(global)':'')),writeScopedConfig(_0x562ab7,_0x10b1d8),{'ok':!![]};}if(_0x562ab7[_0x240cef]===undefined)throw CliErrors[_0x2737ab(0xfe)](_0x2737ab(0x114)+_0x240cef+_0x2737ab(0xf4));return delete _0x562ab7[_0x240cef],console[_0x2737ab(0x10c)]('Deleted\x20`'+_0x240cef+'`'+(_0x23e6ef==='global'?_0x2737ab(0x11d):'')),writeScopedConfig(_0x562ab7,_0x10b1d8),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
1
|
+
const a22_0x582afb=a22_0x3ea7;function a22_0x3ea7(_0x4077f0,_0x2e19b3){_0x4077f0=_0x4077f0-0x175;const _0x2867eb=a22_0x2867();let _0x3ea759=_0x2867eb[_0x4077f0];return _0x3ea759;}(function(_0x54f253,_0x51c88b){const _0x2a2d77=a22_0x3ea7,_0x5b62ba=_0x54f253();while(!![]){try{const _0x84394b=-parseInt(_0x2a2d77(0x1a3))/0x1*(-parseInt(_0x2a2d77(0x1b0))/0x2)+parseInt(_0x2a2d77(0x188))/0x3+-parseInt(_0x2a2d77(0x19c))/0x4+parseInt(_0x2a2d77(0x197))/0x5+-parseInt(_0x2a2d77(0x1a5))/0x6+parseInt(_0x2a2d77(0x19b))/0x7+parseInt(_0x2a2d77(0x194))/0x8*(parseInt(_0x2a2d77(0x17a))/0x9);if(_0x84394b===_0x51c88b)break;else _0x5b62ba['push'](_0x5b62ba['shift']());}catch(_0x3d17a0){_0x5b62ba['push'](_0x5b62ba['shift']());}}}(a22_0x2867,0xe1309));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_0x582afb(0x196),'type':a22_0x582afb(0x178),'description':a22_0x582afb(0x18e),'default':![]};function parseAliasAppcodeSetKey(_0x1ceca4){const _0x2ea152=a22_0x582afb,_0x51fd57=_0x1ceca4[_0x2ea152(0x18b)]('.');if(_0x51fd57['length']!==0x3||_0x51fd57[0x0]!=='apps'||_0x51fd57[0x2]!==_0x2ea152(0x176))return undefined;const _0x40e955=_0x51fd57[0x1]?.[_0x2ea152(0x191)]();return _0x40e955?_0x40e955:undefined;}function parseAliasDeleteKey(_0x40e87a){const _0x391df8=a22_0x582afb,_0x3d5700=_0x40e87a['split']('.');if(_0x3d5700[_0x391df8(0x187)]===0x2&&_0x3d5700[0x0]===_0x391df8(0x1ac)){const _0x137ca1=_0x3d5700[0x1]?.['trim']();return _0x137ca1?{'alias':_0x137ca1}:undefined;}if(_0x3d5700[_0x391df8(0x187)]===0x3&&_0x3d5700[0x0]===_0x391df8(0x1ac)&&_0x3d5700[0x2]===_0x391df8(0x176)){const _0x32cada=_0x3d5700[0x1]?.[_0x391df8(0x191)]();return _0x32cada?{'alias':_0x32cada,'field':_0x391df8(0x176)}:undefined;}return undefined;}function setLocalAppAlias(_0x184fd1,_0x1f81bc,_0x5e0cc5){const _0x334e97=a22_0x582afb,_0x19a713=_0x184fd1[_0x334e97(0x1ac)]&&typeof _0x184fd1[_0x334e97(0x1ac)]===_0x334e97(0x18a)&&!Array[_0x334e97(0x17d)](_0x184fd1[_0x334e97(0x1ac)])?_0x184fd1[_0x334e97(0x1ac)]:{},_0x4089aa=_0x19a713[_0x1f81bc]&&typeof _0x19a713[_0x1f81bc]===_0x334e97(0x18a)&&!Array['isArray'](_0x19a713[_0x1f81bc])?_0x19a713[_0x1f81bc]:{};_0x4089aa['appcode']=_0x5e0cc5,_0x19a713[_0x1f81bc]=_0x4089aa,_0x184fd1[_0x334e97(0x1ac)]=_0x19a713;}function deleteLocalAppAlias(_0x4e7047,_0x11bf0e){const _0x2d310a=a22_0x582afb;if(!_0x4e7047['apps']||typeof _0x4e7047[_0x2d310a(0x1ac)]!==_0x2d310a(0x18a)||Array[_0x2d310a(0x17d)](_0x4e7047['apps']))return![];const _0x434dc4=_0x4e7047[_0x2d310a(0x1ac)],_0xd14713=_0x434dc4[_0x11bf0e['alias']];if(!_0xd14713||typeof _0xd14713!=='object'||Array[_0x2d310a(0x17d)](_0xd14713))return![];if(!_0x11bf0e[_0x2d310a(0x17c)])return delete _0x434dc4[_0x11bf0e[_0x2d310a(0x185)]],!![];if(!(_0x11bf0e[_0x2d310a(0x17c)]in _0xd14713))return![];return delete _0xd14713[_0x11bf0e[_0x2d310a(0x17c)]],Object[_0x2d310a(0x1a8)](_0xd14713)[_0x2d310a(0x187)]===0x0&&delete _0x434dc4[_0x11bf0e[_0x2d310a(0x185)]],!![];}const listDef={'service':a22_0x582afb(0x1af),'command':'list','description':a22_0x582afb(0x193),'risk':a22_0x582afb(0x190),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x35d0be){const _0x4a6917=a22_0x582afb,{buildConfigFromFlags:_0x329307}=await import(_0x4a6917(0x180)),_0x16ace1=_0x329307({}),_0x2c8f96=getProjectConfigPath(),_0x45136e=resolveWriteConfigPath(_0x4a6917(0x196));if(_0x35d0be['format']==='pretty')return{'ok':!![],'message':_0x4a6917(0x1b1)+(JSON[_0x4a6917(0x17e)](_0x16ace1[_0x4a6917(0x1a6)],null,0x2)+'\x0a\x0a')+_0x4a6917(0x19a)+(_0x4a6917(0x19f)+(_0x2c8f96??_0x4a6917(0x1b2))+'\x0a')+(_0x4a6917(0x1b5)+_0x45136e)};return{'ok':!![],'data':{'effective':_0x16ace1[_0x4a6917(0x1a6)],'configFiles':{'project':_0x2c8f96??null,'global':_0x45136e}}};}},getDef={'service':'config','command':a22_0x582afb(0x17f),'description':'Get\x20a\x20config\x20value','risk':a22_0x582afb(0x190),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x582afb(0x195),'description':a22_0x582afb(0x189),'required':!![]}],'flags':[],async 'execute'(_0x45ab54){const _0x3cdfc6=a22_0x582afb,_0x5360bf=_0x45ab54[_0x3cdfc6(0x183)][0x0];if(!_0x5360bf)throw CliErrors[_0x3cdfc6(0x17b)](_0x3cdfc6(0x1b4),_0x3cdfc6(0x18f)+CLI_BIN_NAME+_0x3cdfc6(0x1a9));const {buildConfigFromFlags:_0x5253e8}=await import('../../context.js'),{raw:_0x38df11}=_0x5253e8({});if(_0x5360bf[_0x3cdfc6(0x186)]('.')){const _0x3a0343=_0x5360bf[_0x3cdfc6(0x18b)]('.');let _0x2ebbca=_0x38df11;for(const _0x4b9d6d of _0x3a0343){if(_0x2ebbca==null||typeof _0x2ebbca!==_0x3cdfc6(0x18a))throw CliErrors[_0x3cdfc6(0x17b)](_0x3cdfc6(0x177)+_0x5360bf);_0x2ebbca=_0x2ebbca[_0x4b9d6d];}if(_0x2ebbca===undefined)throw CliErrors[_0x3cdfc6(0x17b)](_0x3cdfc6(0x177)+_0x5360bf);return console[_0x3cdfc6(0x184)](typeof _0x2ebbca==='object'?JSON[_0x3cdfc6(0x17e)](_0x2ebbca,null,0x2):String(_0x2ebbca)),{'ok':!![]};}const _0x2cfdf2=_0x38df11[_0x5360bf];if(_0x2cfdf2===undefined)throw CliErrors[_0x3cdfc6(0x17b)](_0x3cdfc6(0x177)+_0x5360bf);return console[_0x3cdfc6(0x184)](typeof _0x2cfdf2===_0x3cdfc6(0x18a)?JSON[_0x3cdfc6(0x17e)](_0x2cfdf2,null,0x2):String(_0x2cfdf2)),{'ok':!![]};}},setDef={'service':a22_0x582afb(0x1af),'command':'set','description':a22_0x582afb(0x19d),'risk':a22_0x582afb(0x1ad),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x582afb(0x195),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':a22_0x582afb(0x1a0),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x36ea22){const _0x494465=a22_0x582afb,_0x54f0d5=_0x36ea22['args'][0x0],_0xfe90a8=_0x36ea22[_0x494465(0x183)][0x1];if(!_0x54f0d5||_0xfe90a8===undefined)throw CliErrors[_0x494465(0x17b)](_0x494465(0x198),'Usage:\x20'+CLI_BIN_NAME+_0x494465(0x182));if(ENUM_KEYS[_0x54f0d5]&&!ENUM_KEYS[_0x54f0d5][_0x494465(0x186)](_0xfe90a8))throw CliErrors[_0x494465(0x17b)](_0x494465(0x199)+_0x54f0d5+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x54f0d5][_0x494465(0x175)](',\x20'));if(_0x54f0d5===_0x494465(0x192))throw CliErrors[_0x494465(0x17b)](_0x494465(0x1ae));if(_0x54f0d5==='pageSize'){const _0xadef0c=Number(_0xfe90a8);if(isNaN(_0xadef0c)||_0xadef0c<=0x0)throw CliErrors[_0x494465(0x17b)](_0x494465(0x1a4));}const _0x6d9148=resolveWriteScope({'explicitGlobal':_0x36ea22['bool']('global'),'policy':_0x494465(0x1ab)}),_0x234df3=toScopeFlags(_0x6d9148),_0x44f8d3=readScopedConfig(_0x234df3),_0x25bf01=parseAliasAppcodeSetKey(_0x54f0d5);if(!_0x25bf01&&!isTopLevelConfigKey(_0x54f0d5))throw CliErrors[_0x494465(0x17b)](_0x494465(0x18d)+_0x54f0d5+_0x494465(0x1aa),'Settable\x20keys:\x20'+getTopLevelConfigKeySummary()+_0x494465(0x1b3));return _0x25bf01?setLocalAppAlias(_0x44f8d3,_0x25bf01,_0xfe90a8):_0x44f8d3[_0x54f0d5]=_0x54f0d5==='pageSize'?Number(_0xfe90a8):_0xfe90a8,console[_0x494465(0x184)]('Set\x20`'+_0x54f0d5+'`\x20=\x20\x22'+_0xfe90a8+'\x22'+(_0x6d9148===_0x494465(0x196)?'\x20(global)':'')),writeScopedConfig(_0x44f8d3,_0x234df3),{'ok':!![]};}},deleteDef={'service':a22_0x582afb(0x1af),'command':a22_0x582afb(0x1a1),'description':a22_0x582afb(0x19e),'risk':a22_0x582afb(0x1ad),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x582afb(0x195),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x396b9f){const _0x5b88ba=a22_0x582afb,_0x41c467=_0x396b9f[_0x5b88ba(0x183)][0x0];if(!_0x41c467)throw CliErrors[_0x5b88ba(0x17b)]('Missing\x20key\x20argument.','Usage:\x20'+CLI_BIN_NAME+_0x5b88ba(0x1a7));const _0x34ab43=resolveWriteScope({'explicitGlobal':_0x396b9f[_0x5b88ba(0x18c)](_0x5b88ba(0x196)),'policy':_0x5b88ba(0x1ab)}),_0xa46f3f=toScopeFlags(_0x34ab43),_0x12edf0=readScopedConfig(_0xa46f3f),_0x504bce=parseAliasDeleteKey(_0x41c467);if(_0x504bce){if(!deleteLocalAppAlias(_0x12edf0,_0x504bce))throw CliErrors[_0x5b88ba(0x17b)](_0x5b88ba(0x177)+_0x41c467);return console[_0x5b88ba(0x184)](_0x5b88ba(0x181)+_0x41c467+'`'+(_0x34ab43===_0x5b88ba(0x196)?_0x5b88ba(0x1a2):'')),writeScopedConfig(_0x12edf0,_0xa46f3f),{'ok':!![]};}if(_0x12edf0[_0x41c467]===undefined)throw CliErrors['validation']('Key\x20\x22'+_0x41c467+_0x5b88ba(0x179));return delete _0x12edf0[_0x41c467],console[_0x5b88ba(0x184)](_0x5b88ba(0x181)+_0x41c467+'`'+(_0x34ab43===_0x5b88ba(0x196)?_0x5b88ba(0x1a2):'')),writeScopedConfig(_0x12edf0,_0xa46f3f),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];function a22_0x2867(){const _0x12d19b=['pageSize\x20must\x20be\x20a\x20positive\x20number','4222926hqWkEl','raw','\x20config\x20delete\x20<key>\x20[--global]','keys','\x20config\x20get\x20<key>','\x22\x20is\x20not\x20settable.','project-or-global-explicit','apps','write','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','config','30wOgnPK','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','(none)',';\x20apps.<alias>.appcode','Missing\x20key\x20argument.','\x20\x20global:\x20\x20','join','appcode','Key\x20not\x20found:\x20','boolean','\x22\x20not\x20found\x20at\x20top\x20level.','390177WFKkhE','validation','field','isArray','stringify','get','../../context.js','Deleted\x20`','\x20config\x20set\x20<key>\x20<value>\x20[--global]','args','log','alias','includes','length','624420nNnDPb','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','object','split','bool','Top-level\x20key\x20\x22','Write\x20to\x20global\x20config','Usage:\x20','read','trim','riskLevel','List\x20current\x20config','40IVLaUV','key','global','1084495QMdYex','Missing\x20key\x20or\x20value.','Invalid\x20value\x20for\x20\x22','Config\x20files:\x0a','12440708zmKWnn','6779140ewjsVV','Set\x20a\x20config\x20value','Delete\x20a\x20config\x20value','\x20\x20project:\x20','Value\x20to\x20assign','delete','\x20(global)','60129PhTvqm'];a22_0x2867=function(){return _0x12d19b;};return a22_0x2867();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1a7a78,_0xbbf4){var _0x16a858=a23_0x3e14,_0x58cb38=_0x1a7a78();while(!![]){try{var _0x329f49=parseInt(_0x16a858(0x194))/0x1+-parseInt(_0x16a858(0x19a))/0x2+-parseInt(_0x16a858(0x192))/0x3*(-parseInt(_0x16a858(0x197))/0x4)+parseInt(_0x16a858(0x195))/0x5+parseInt(_0x16a858(0x190))/0x6*(-parseInt(_0x16a858(0x199))/0x7)+-parseInt(_0x16a858(0x193))/0x8*(parseInt(_0x16a858(0x198))/0x9)+parseInt(_0x16a858(0x191))/0xa*(parseInt(_0x16a858(0x196))/0xb);if(_0x329f49===_0xbbf4)break;else _0x58cb38['push'](_0x58cb38['shift']());}catch(_0x5a36e2){_0x58cb38['push'](_0x58cb38['shift']());}}}(a23_0x5e0f,0x511fb));import{CLI_BIN_NAME}from'../../constant/cli.js';function a23_0x3e14(_0x2f5f46,_0x43129f){_0x2f5f46=_0x2f5f46-0x190;var _0x5e0fea=a23_0x5e0f();var _0x3e141f=_0x5e0fea[_0x2f5f46];return _0x3e141f;}export{CLI_BIN_NAME};function a23_0x5e0f(){var _0x359118=['15JZJujD','1078040oaGOQl','23023CjRMby','1536925QqzFKH','1639CqWXaV','16964beHDgA','18JHfcnw','266iNWBez','637882IwrZnq','25206CxmZCa','48910qUOrUw'];a23_0x5e0f=function(){return _0x359118;};return a23_0x5e0f();}export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a24_0x123c25=a24_0x1331;(function(_0x38b08c,_0x2aa088){const _0x1dcb1e=a24_0x1331,_0x3a0f42=_0x38b08c();while(!![]){try{const _0x4710df=-parseInt(_0x1dcb1e(0x20a))/0x1+parseInt(_0x1dcb1e(0x1ef))/0x2+-parseInt(_0x1dcb1e(0x1fd))/0x3*(-parseInt(_0x1dcb1e(0x223))/0x4)+parseInt(_0x1dcb1e(0x1e7))/0x5*(parseInt(_0x1dcb1e(0x226))/0x6)+-parseInt(_0x1dcb1e(0x1fe))/0x7+parseInt(_0x1dcb1e(0x20f))/0x8+parseInt(_0x1dcb1e(0x21e))/0x9*(-parseInt(_0x1dcb1e(0x22e))/0xa);if(_0x4710df===_0x2aa088)break;else _0x3a0f42['push'](_0x3a0f42['shift']());}catch(_0x3b0c7a){_0x3a0f42['push'](_0x3a0f42['shift']());}}}(a24_0x3e49,0xd7284));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_0x123c25(0x235),'operation':a24_0x123c25(0x235),'risk':'read','paramsRequired':![],'description':a24_0x123c25(0x20c),'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20'+a24_0x123c25(0x1ec),'helpExtra':[a24_0x123c25(0x1f8),a24_0x123c25(0x1f7),'\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_0x123c25(0x22c),'\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}}',a24_0x123c25(0x236),'\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}',a24_0x123c25(0x1f0),a24_0x123c25(0x220),'\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}}','',a24_0x123c25(0x1f9),a24_0x123c25(0x207),a24_0x123c25(0x208),'',a24_0x123c25(0x229),a24_0x123c25(0x22d),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]',a24_0x123c25(0x1e6),a24_0x123c25(0x228),a24_0x123c25(0x202),'',a24_0x123c25(0x1eb),'\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','\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_0x123c25(0x1ed),a24_0x123c25(0x20b),a24_0x123c25(0x217),a24_0x123c25(0x214)][a24_0x123c25(0x21c)]('\x0a')},{'command':a24_0x123c25(0x1f3),'operation':a24_0x123c25(0x1f3),'risk':a24_0x123c25(0x1f6),'paramsRequired':!![],'description':a24_0x123c25(0x21f),'paramsHint':a24_0x123c25(0x209)},{'command':'create','operation':'create','risk':a24_0x123c25(0x1f1),'paramsRequired':!![],'description':a24_0x123c25(0x1e9),'paramsHint':a24_0x123c25(0x22a)},{'command':a24_0x123c25(0x1ea),'operation':a24_0x123c25(0x1ea),'risk':a24_0x123c25(0x1f1),'paramsRequired':!![],'description':a24_0x123c25(0x1ee),'paramsHint':a24_0x123c25(0x231)},{'command':'update','operation':'update','risk':a24_0x123c25(0x1f1),'paramsRequired':!![],'description':a24_0x123c25(0x234),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20'+a24_0x123c25(0x1fc)},{'command':'delete','operation':a24_0x123c25(0x219),'risk':a24_0x123c25(0x1fb),'paramsRequired':!![],'description':a24_0x123c25(0x1e4),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a24_0x123c25(0x216),'operation':a24_0x123c25(0x216),'risk':a24_0x123c25(0x1f6),'paramsRequired':![],'description':'Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','paramsHint':a24_0x123c25(0x215)+a24_0x123c25(0x1f4),'helpExtra':[a24_0x123c25(0x200),a24_0x123c25(0x20e),a24_0x123c25(0x212),a24_0x123c25(0x204),'\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}',a24_0x123c25(0x20d),'\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}',a24_0x123c25(0x210),'',a24_0x123c25(0x211),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)',a24_0x123c25(0x21a),'\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_0x123c25(0x1f5),'',a24_0x123c25(0x201),'\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_0x123c25(0x1e3),a24_0x123c25(0x213),'',a24_0x123c25(0x1fa)][a24_0x123c25(0x21c)]('\x0a')}];function makeDataCommand(_0x10c310){const _0x39e24f=a24_0x123c25,_0x1099a1=_0x39e24f(0x1ff)+_0x10c310[_0x39e24f(0x22f)],_0x432c58={'service':_0x39e24f(0x205),'command':_0x10c310[_0x39e24f(0x22f)],'description':_0x10c310[_0x39e24f(0x222)],'risk':_0x10c310[_0x39e24f(0x203)],'helpExtra':_0x10c310[_0x39e24f(0x232)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x10c310[_0x39e24f(0x218)]}],'validate':async _0x2aea23=>{const _0x37bcf7=_0x39e24f;_0x10c310[_0x37bcf7(0x224)]&&requireAnyOf(_0x2aea23,[_0x37bcf7(0x233)],_0x1099a1),_0x10c310['operation']===_0x37bcf7(0x1ea)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2aea23[_0x37bcf7(0x21d)](_0x37bcf7(0x233)))),_0x10c310[_0x37bcf7(0x1e8)]===_0x37bcf7(0x1f2)&&parseUpdateIdsFromParams(parseJsonParams(_0x2aea23[_0x37bcf7(0x21d)]('params'))??{});},async 'execute'(_0x2f4267){const _0x43adf6=_0x39e24f,_0x177ba5=_0x2f4267[_0x43adf6(0x21d)]('code'),_0x4d1c7e=_0x10c310[_0x43adf6(0x1e8)]===_0x43adf6(0x1ea)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2f4267[_0x43adf6(0x21d)]('params'))):parseJsonParams(_0x2f4267[_0x43adf6(0x21d)]('params'))??{},_0x30c0d5=_0x10c310[_0x43adf6(0x1e8)]===_0x43adf6(0x1f2)?parseUpdateIdsFromParams(_0x4d1c7e):undefined,_0x5bf0dc=_0x30c0d5?normalizeUpdateParamsForRuntime(_0x4d1c7e,_0x30c0d5):_0x4d1c7e,_0xabe1e4=Date['now'](),_0x48d29d=await executeData(_0x177ba5,_0x10c310[_0x43adf6(0x1e8)],_0x5bf0dc),_0x397f33=Date[_0x43adf6(0x227)]()-_0xabe1e4,_0x523857=_0x30c0d5&&_0x30c0d5[_0x43adf6(0x22b)]>0x1?buildBatchUpdateResult(_0x30c0d5,_0x48d29d):_0x48d29d;return{'ok':!![],'data':{'result':_0x523857,'elapsed':_0x397f33},'message':_0x43adf6(0x1ff)+_0x10c310[_0x43adf6(0x22f)]+'\x20completed\x20in\x20'+_0x397f33+'ms'};}};return _0x10c310[_0x39e24f(0x203)]!==_0x39e24f(0x1f6)&&(_0x432c58['dryRun']=async _0x47d22d=>{const _0x2b8a94=_0x39e24f,_0x2f4616=_0x47d22d[_0x2b8a94(0x21d)](_0x2b8a94(0x221)),_0xd7f6ba=_0x10c310[_0x2b8a94(0x1e8)]===_0x2b8a94(0x1ea)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x47d22d[_0x2b8a94(0x21d)](_0x2b8a94(0x233)))):parseJsonParams(_0x47d22d[_0x2b8a94(0x21d)](_0x2b8a94(0x233)))??{};let _0x1bf14d=_0xd7f6ba;if(_0x10c310[_0x2b8a94(0x1e8)]===_0x2b8a94(0x1f2)){const _0x522e9d=parseUpdateIdsFromParams(_0xd7f6ba);_0x1bf14d=normalizeUpdateParamsForRuntime(_0xd7f6ba,_0x522e9d);}return dryRun(_0x2b8a94(0x1e5),_0x2b8a94(0x206)+_0x2f4616+'/'+_0x10c310['operation'])['body'](_0x1bf14d)[_0x2b8a94(0x222)]('Preview:\x20data\x20'+_0x10c310[_0x2b8a94(0x22f)]+_0x2b8a94(0x230)+_0x2f4616)[_0x2b8a94(0x21b)]();}),_0x432c58;}export const dataDefinitions=specs['map'](makeDataCommand);function a24_0x1331(_0x43bc24,_0x202188){_0x43bc24=_0x43bc24-0x1e3;const _0x3e4948=a24_0x3e49();let _0x133139=_0x3e4948[_0x43bc24];return _0x133139;}function a24_0x3e49(){const _0x5a1759=['\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\x20WHERE\x20OPERATORS','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','high-risk-write','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','261zHBJpU','9755445rzgFlY','data\x20','\x20\x20AGGREGATE\x20TYPES','\x20\x20EXAMPLES','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','risk','\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}','data','/api/{appCode}/','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','\x20\x20\x20\x20$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}}]}','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','579512oWXpiR','\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','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\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\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}','1173400gdiyss','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','\x20\x20PARAMS\x20STRUCTURE','\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\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','aggregate','\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','paramsHint','delete','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','build','join','str','27uXVyjI','Get\x20a\x20single\x20record\x20by\x20ID','\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}}','code','description','65524UXoalS','paramsRequired','batch','598020djlIIA','now','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','length','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','5740390OidgLC','command','\x20on\x20dataset\x20','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','helpExtra','params','Update\x20an\x20existing\x20record','filter','\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#\x20Count\x20orders\x20per\x20region\x20with\x20filter','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','POST','\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}]','75OhogXh','operation','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','batchCreate','\x20\x20PAGINATION','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','3019352NoqKEN','\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','update','getOne','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\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','read'];a24_0x3e49=function(){return _0x5a1759;};return a24_0x3e49();}function buildBatchUpdateResult(_0xdf2ee5,_0x4f5821){const _0x57326c=a24_0x123c25;return{'operation':_0x57326c(0x1f2),'mode':_0x57326c(0x225),'ids':_0xdf2ee5,'total':_0xdf2ee5[_0x57326c(0x22b)],'result':_0x4f5821};}
|
|
1
|
+
const a24_0x34f5b5=a24_0xbda4;(function(_0x558f30,_0x498d4d){const _0x95c3cc=a24_0xbda4,_0x21f760=_0x558f30();while(!![]){try{const _0x9f1135=-parseInt(_0x95c3cc(0x195))/0x1*(-parseInt(_0x95c3cc(0x19f))/0x2)+-parseInt(_0x95c3cc(0x1a1))/0x3+-parseInt(_0x95c3cc(0x18e))/0x4*(-parseInt(_0x95c3cc(0x1e2))/0x5)+-parseInt(_0x95c3cc(0x1bb))/0x6+-parseInt(_0x95c3cc(0x1b1))/0x7*(parseInt(_0x95c3cc(0x184))/0x8)+parseInt(_0x95c3cc(0x18f))/0x9+parseInt(_0x95c3cc(0x191))/0xa;if(_0x9f1135===_0x498d4d)break;else _0x21f760['push'](_0x21f760['shift']());}catch(_0xfd7f34){_0x21f760['push'](_0x21f760['shift']());}}}(a24_0x3642,0x29f14));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';function a24_0x3642(){const _0x540979=['description','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','2053XCCYgO','\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\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','create','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\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','Get\x20a\x20single\x20record\x20by\x20ID','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','326jIxOHx','\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','528726lrcZMp','\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','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','Preview:\x20data\x20','\x20completed\x20in\x20','join','/api/{appCode}/','write','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','data\x20','\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}}','\x20on\x20dataset\x20','\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}}','map','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','77legdGh','\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$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','\x20\x20\x20\x20Do\x20NOT\x20use\x20--where,\x20--select,\x20--order-by,\x20--current-page,\x20--page,\x20or\x20--page-size\x20as\x20CLI\x20flags.','now','\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}','length','command','dryRun','batchCreate','1624332cbkSGk','\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','build','batch','\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','read','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\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\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\x20\x20WHERE\x20OPERATORS','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\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\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','\x20\x20PARAMS\x20STRUCTURE','body','operation','update','aggregate','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','risk','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\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}}','helpExtra','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged','data','\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\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$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','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}]','\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}}]}','paramsRequired','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','getOne','\x20\x20PAGINATION','20ELzroj','str','POST','delete','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','\x20\x20EXAMPLES','150376MEQzZP','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','code','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\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\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}','params','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20\x20AGGREGATE\x20TYPES','173892nRzLXP','66510VISrAJ','\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}}]','3096060yVFxCg'];a24_0x3642=function(){return _0x540979;};return a24_0x3642();}import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a24_0x34f5b5(0x1da),'operation':a24_0x34f5b5(0x1da),'risk':a24_0x34f5b5(0x1c0),'paramsRequired':![],'description':a24_0x34f5b5(0x1c2),'paramsHint':a24_0x34f5b5(0x1d4)+a24_0x34f5b5(0x198),'helpExtra':[a24_0x34f5b5(0x1c6),a24_0x34f5b5(0x1d8),a24_0x34f5b5(0x1ab),a24_0x34f5b5(0x1ad),a24_0x34f5b5(0x1b2),'\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_0x34f5b5(0x1b3),a24_0x34f5b5(0x1d9),a24_0x34f5b5(0x182),a24_0x34f5b5(0x1d2),'',a24_0x34f5b5(0x1de),'\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_0x34f5b5(0x1dc),'',a24_0x34f5b5(0x197),a24_0x34f5b5(0x1a9),a24_0x34f5b5(0x1c3),a24_0x34f5b5(0x1db),a24_0x34f5b5(0x19b),a24_0x34f5b5(0x1c5),'',a24_0x34f5b5(0x1e1),a24_0x34f5b5(0x185),a24_0x34f5b5(0x1b4),a24_0x34f5b5(0x1d5),a24_0x34f5b5(0x1a0),a24_0x34f5b5(0x1a2),a24_0x34f5b5(0x189),a24_0x34f5b5(0x1c4)]['join']('\x0a')},{'command':a24_0x34f5b5(0x1e0),'operation':a24_0x34f5b5(0x1e0),'risk':'read','paramsRequired':!![],'description':a24_0x34f5b5(0x19d),'paramsHint':a24_0x34f5b5(0x1b0)},{'command':'create','operation':a24_0x34f5b5(0x199),'risk':a24_0x34f5b5(0x1a8),'paramsRequired':!![],'description':'Create\x20a\x20new\x20record\x20in\x20a\x20dataset','paramsHint':a24_0x34f5b5(0x194)},{'command':a24_0x34f5b5(0x1ba),'operation':a24_0x34f5b5(0x1ba),'risk':a24_0x34f5b5(0x1a8),'paramsRequired':!![],'description':a24_0x34f5b5(0x186),'paramsHint':a24_0x34f5b5(0x19e)},{'command':'update','operation':a24_0x34f5b5(0x1cd),'risk':a24_0x34f5b5(0x1a8),'paramsRequired':!![],'description':'Update\x20an\x20existing\x20record','paramsHint':a24_0x34f5b5(0x1c7)+'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_0x34f5b5(0x181),'operation':a24_0x34f5b5(0x181),'risk':'high-risk-write','paramsRequired':!![],'description':'Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','paramsHint':a24_0x34f5b5(0x1b0)},{'command':a24_0x34f5b5(0x1ce),'operation':a24_0x34f5b5(0x1ce),'risk':'read','paramsRequired':![],'description':a24_0x34f5b5(0x1c1),'paramsHint':a24_0x34f5b5(0x18c)+a24_0x34f5b5(0x19a),'helpExtra':[a24_0x34f5b5(0x18d),a24_0x34f5b5(0x193),a24_0x34f5b5(0x1b6),a24_0x34f5b5(0x1af),a24_0x34f5b5(0x196),a24_0x34f5b5(0x1d7),a24_0x34f5b5(0x18a),'\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_0x34f5b5(0x1ca),a24_0x34f5b5(0x1df),a24_0x34f5b5(0x1d1),a24_0x34f5b5(0x19c),a24_0x34f5b5(0x1a3),a24_0x34f5b5(0x190),a24_0x34f5b5(0x1c8),'',a24_0x34f5b5(0x183),a24_0x34f5b5(0x1cf),a24_0x34f5b5(0x1bc),'',a24_0x34f5b5(0x188),a24_0x34f5b5(0x1bf),'',a24_0x34f5b5(0x1c9)][a24_0x34f5b5(0x1a6)]('\x0a')}];function makeDataCommand(_0x3dcd5a){const _0x1cc1f0=a24_0x34f5b5,_0x12f4cf='data\x20'+_0x3dcd5a[_0x1cc1f0(0x1b8)],_0x445df9={'service':_0x1cc1f0(0x1d6),'command':_0x3dcd5a[_0x1cc1f0(0x1b8)],'description':_0x3dcd5a['description'],'risk':_0x3dcd5a[_0x1cc1f0(0x1d0)],'helpExtra':_0x3dcd5a[_0x1cc1f0(0x1d3)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x3dcd5a['paramsHint']}],'validate':async _0x4a682f=>{const _0x13916a=_0x1cc1f0;_0x3dcd5a[_0x13916a(0x1dd)]&&requireAnyOf(_0x4a682f,[_0x13916a(0x18b)],_0x12f4cf),_0x3dcd5a[_0x13916a(0x1cc)]===_0x13916a(0x1ba)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x4a682f[_0x13916a(0x17f)](_0x13916a(0x18b)))),_0x3dcd5a[_0x13916a(0x1cc)]===_0x13916a(0x1cd)&&parseUpdateIdsFromParams(parseJsonParams(_0x4a682f['str'](_0x13916a(0x18b)))??{});},async 'execute'(_0x312710){const _0x19115a=_0x1cc1f0,_0x832e3c=_0x312710[_0x19115a(0x17f)](_0x19115a(0x187)),_0x470ec1=_0x3dcd5a[_0x19115a(0x1cc)]===_0x19115a(0x1ba)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x312710[_0x19115a(0x17f)]('params'))):parseJsonParams(_0x312710[_0x19115a(0x17f)]('params'))??{},_0x244a60=_0x3dcd5a[_0x19115a(0x1cc)]===_0x19115a(0x1cd)?parseUpdateIdsFromParams(_0x470ec1):undefined,_0x1f52a2=_0x244a60?normalizeUpdateParamsForRuntime(_0x470ec1,_0x244a60):_0x470ec1,_0x1b6008=Date[_0x19115a(0x1b5)](),_0x221338=await executeData(_0x832e3c,_0x3dcd5a['operation'],_0x1f52a2),_0x1fe1d6=Date[_0x19115a(0x1b5)]()-_0x1b6008,_0x3a8f91=_0x244a60&&_0x244a60['length']>0x1?buildBatchUpdateResult(_0x244a60,_0x221338):_0x221338;return{'ok':!![],'data':{'result':_0x3a8f91,'elapsed':_0x1fe1d6},'message':_0x19115a(0x1aa)+_0x3dcd5a[_0x19115a(0x1b8)]+_0x19115a(0x1a5)+_0x1fe1d6+'ms'};}};return _0x3dcd5a[_0x1cc1f0(0x1d0)]!==_0x1cc1f0(0x1c0)&&(_0x445df9[_0x1cc1f0(0x1b9)]=async _0x2df2ed=>{const _0x1ee4fd=_0x1cc1f0,_0x4512c1=_0x2df2ed[_0x1ee4fd(0x17f)](_0x1ee4fd(0x187)),_0x4fba95=_0x3dcd5a[_0x1ee4fd(0x1cc)]===_0x1ee4fd(0x1ba)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2df2ed['str'](_0x1ee4fd(0x18b)))):parseJsonParams(_0x2df2ed[_0x1ee4fd(0x17f)](_0x1ee4fd(0x18b)))??{};let _0x43649c=_0x4fba95;if(_0x3dcd5a[_0x1ee4fd(0x1cc)]===_0x1ee4fd(0x1cd)){const _0x374b89=parseUpdateIdsFromParams(_0x4fba95);_0x43649c=normalizeUpdateParamsForRuntime(_0x4fba95,_0x374b89);}return dryRun(_0x1ee4fd(0x180),_0x1ee4fd(0x1a7)+_0x4512c1+'/'+_0x3dcd5a[_0x1ee4fd(0x1cc)])[_0x1ee4fd(0x1cb)](_0x43649c)[_0x1ee4fd(0x192)](_0x1ee4fd(0x1a4)+_0x3dcd5a[_0x1ee4fd(0x1b8)]+_0x1ee4fd(0x1ac)+_0x4512c1)[_0x1ee4fd(0x1bd)]();}),_0x445df9;}function a24_0xbda4(_0x24e283,_0x505aee){_0x24e283=_0x24e283-0x17f;const _0x364221=a24_0x3642();let _0xbda43c=_0x364221[_0x24e283];return _0xbda43c;}export const dataDefinitions=specs[a24_0x34f5b5(0x1ae)](makeDataCommand);function buildBatchUpdateResult(_0x2b0cc6,_0x1b6d2c){const _0x42b9b7=a24_0x34f5b5;return{'operation':_0x42b9b7(0x1cd),'mode':_0x42b9b7(0x1be),'ids':_0x2b0cc6,'total':_0x2b0cc6[_0x42b9b7(0x1b7)],'result':_0x1b6d2c};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a25_0x478edd=a25_0x5631;(function(_0x5a780e,_0x43252){const _0x58710a=a25_0x5631,_0xd65d9e=_0x5a780e();while(!![]){try{const _0x5db37c=-parseInt(_0x58710a(0x130))/0x1+parseInt(_0x58710a(0xfc))/0x2+-parseInt(_0x58710a(0x117))/0x3*(parseInt(_0x58710a(0x105))/0x4)+parseInt(_0x58710a(0x125))/0x5*(parseInt(_0x58710a(0x118))/0x6)+-parseInt(_0x58710a(0x127))/0x7+parseInt(_0x58710a(0x12d))/0x8+parseInt(_0x58710a(0x11a))/0x9;if(_0x5db37c===_0x43252)break;else _0xd65d9e['push'](_0xd65d9e['shift']());}catch(_0x325f63){_0xd65d9e['push'](_0xd65d9e['shift']());}}}(a25_0x48a6,0x927f9));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0xd40a93){const _0x476be6=a25_0x5631;if(_0xd40a93[_0x476be6(0x131)])return null;const _0x19c835=Boolean(_0xd40a93[_0x476be6(0x120)]!==undefined||_0xd40a93['doType']!==undefined);let _0x5303d0={};if(!_0x19c835&&typeof _0xd40a93[_0x476be6(0x13a)]===_0x476be6(0x13c))try{_0x5303d0=JSON[_0x476be6(0x111)](_0xd40a93[_0x476be6(0x13a)]);}catch{}const _0xcf6d1f=_0x19c835?_0xd40a93[_0x476be6(0x12a)]:_0xd40a93[_0x476be6(0x135)],_0x503b3c=_0x19c835?_0xd40a93['displayName']:_0xd40a93[_0x476be6(0x12a)],_0x28c8c7=_0x19c835?_0xd40a93[_0x476be6(0x102)]:_0xd40a93['type']||_0xd40a93['dataType'],_0x2c044e=_0x19c835?_0xd40a93[_0x476be6(0x11e)]===!![]:_0x5303d0[_0x476be6(0x11e)]===!![],_0x51ed70=_0x19c835?_0xd40a93['required']===!![]:_0x5303d0[_0x476be6(0x10d)]===!![],_0x2b3af0=_0x19c835?_0xd40a93[_0x476be6(0xfb)]??null:_0x5303d0[_0x476be6(0xfb)]??null,_0x59ac80={'name':_0xcf6d1f,'displayName':_0x503b3c||_0xcf6d1f,'type':_0x28c8c7,'dbType':_0xd40a93[_0x476be6(0x10f)],'pk':_0x2c044e,'required':_0x51ed70,'description':_0xd40a93['description']||undefined};return Array[_0x476be6(0x113)](_0x2b3af0)&&_0x2b3af0[_0x476be6(0x12e)]>0x0&&(_0x59ac80[_0x476be6(0xfb)]=_0x2b3af0),_0x59ac80;}function parseJsonMaybe(_0x17fdf0){const _0xe8d50=a25_0x5631;if(typeof _0x17fdf0!==_0xe8d50(0x13c))return _0x17fdf0;try{return JSON[_0xe8d50(0x111)](_0x17fdf0);}catch{return _0x17fdf0;}}function normalizeOperationEntry(_0x2f7103,_0x1c72cf){const _0x44e033=a25_0x5631;if(!_0x1c72cf||typeof _0x1c72cf!==_0x44e033(0x13b))return null;if(!_0x1c72cf[_0x44e033(0x128)]||!_0x1c72cf[_0x44e033(0x104)])return null;const _0x3a25e9={'name':_0x2f7103,'method':_0x1c72cf['method'],'path':_0x1c72cf[_0x44e033(0x104)]};if(_0x1c72cf[_0x44e033(0x112)])_0x3a25e9[_0x44e033(0x112)]=_0x1c72cf[_0x44e033(0x112)];if(_0x1c72cf[_0x44e033(0x106)]!=null)_0x3a25e9[_0x44e033(0x106)]=parseJsonMaybe(_0x1c72cf[_0x44e033(0x106)]);if(_0x1c72cf[_0x44e033(0x124)]!=null)_0x3a25e9[_0x44e033(0x124)]=parseJsonMaybe(_0x1c72cf['responseBody']);if(_0x1c72cf[_0x44e033(0x114)]!=null)_0x3a25e9[_0x44e033(0x114)]=_0x1c72cf[_0x44e033(0x114)];if(_0x1c72cf[_0x44e033(0x11d)]!=null)_0x3a25e9[_0x44e033(0x11d)]=_0x1c72cf[_0x44e033(0x11d)];if(Array[_0x44e033(0x113)](_0x1c72cf['requestFields']))_0x3a25e9['requestFields']=_0x1c72cf['requestFields'];if(Array['isArray'](_0x1c72cf['responseFields']))_0x3a25e9[_0x44e033(0x122)]=_0x1c72cf[_0x44e033(0x122)];return _0x3a25e9;}function summarizeDbtable(_0x49ffdf){const _0x362533=a25_0x5631,_0x59bbb1={},_0x4cca9d=[_0x362533(0x136),_0x362533(0x110),_0x362533(0x116),'datasetKey','pkField',_0x362533(0x109),_0x362533(0x11c),_0x362533(0x119),_0x362533(0x10b),'creatorIdField','creatorNameField','modifierIdField',_0x362533(0x126),_0x362533(0x133),_0x362533(0x139)];for(const _0x1f9e25 of _0x4cca9d){if(_0x49ffdf[_0x1f9e25]!==undefined)_0x59bbb1[_0x1f9e25]=_0x49ffdf[_0x1f9e25];}return typeof _0x59bbb1[_0x362533(0x109)]===_0x362533(0x13c)&&_0x59bbb1[_0x362533(0x109)][_0x362533(0x12e)]>0x0&&(_0x59bbb1[_0x362533(0xfd)]=_0x59bbb1[_0x362533(0x109)][_0x362533(0x10a)](',')[_0x362533(0x12f)](_0x30a052=>_0x30a052['trim']())[_0x362533(0x103)](Boolean)),_0x59bbb1;}function a25_0x5631(_0x333853,_0x188b60){_0x333853=_0x333853-0xfa;const _0x48a68b=a25_0x48a6();let _0x5631f5=_0x48a68b[_0x333853];return _0x5631f5;}function normalizeRelatedPages(_0x109f31){const _0x4a0942=a25_0x5631;if(!Array[_0x4a0942(0x113)](_0x109f31))return[];return _0x109f31[_0x4a0942(0x103)](_0x4d27ca=>_0x4d27ca&&typeof _0x4d27ca===_0x4a0942(0x13b))[_0x4a0942(0x12f)](_0x49336f=>({'id':_0x49336f['id'],'type':_0x49336f[_0x4a0942(0xfa)],'code':_0x49336f['code'],'title':_0x49336f[_0x4a0942(0xff)],'deleted':_0x49336f[_0x4a0942(0x131)]===!![]}));}function normalizeFallbackFieldName(_0x315aad,_0x3d078e){const _0x343a3e=a25_0x5631,_0x1c4b06=_0x315aad[_0x343a3e(0x115)]();if(!_0x1c4b06)return null;return{'name':_0x1c4b06,'displayName':_0x1c4b06,'type':undefined,'dbType':undefined,'pk':_0x1c4b06===_0x3d078e,'required':![],'description':undefined};}async function loadListFieldFallback(_0x4af668,_0x3c5975){const _0x2f0d4e=a25_0x5631;if(!_0x4af668||!_0x3c5975)return[];try{const _0x49198b=await listDatasets(_0x4af668,{'code':_0x3c5975}),_0x4ffdc6=_0x49198b['find'](_0x25b213=>_0x25b213[_0x2f0d4e(0x135)]===_0x3c5975)??_0x49198b[0x0],_0x2c7117=_0x4ffdc6?.[_0x2f0d4e(0x107)]??{},_0x27fe61=typeof _0x2c7117['allFields']===_0x2f0d4e(0x13c)?_0x2c7117[_0x2f0d4e(0x109)][_0x2f0d4e(0x10a)](','):[];return _0x27fe61[_0x2f0d4e(0x12f)](_0x1ce9cb=>normalizeFallbackFieldName(_0x1ce9cb,_0x2c7117[_0x2f0d4e(0x11e)]))[_0x2f0d4e(0x103)](_0x5ee96f=>_0x5ee96f!==null);}catch{return[];}}function a25_0x48a6(){const _0x188576=['title','properties','fields','doType','filter','path','12BEVgEq','requestBody','dbtableConfig','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','allFields','split','updateTimeField','tableComment','required','modelId','dbType','dbName','parse','host','isArray','beforeScriptId','trim','tableName','835482RZSCcU','2555874pppyDW','createTimeField','1248552tEuTtn','formatRules','logicField','afterScriptId','pkField','appCode','displayName','str','responseFields','modelCode','responseBody','10TyNYnf','modifierNameField','1988602iCsvqm','method','detail','name','columnCodeListWithDeleted','validateRules','1732448UonLGI','length','map','186144voUJXC','deleted','relations','labelField','indexes','code','dbId','datasetKey','sourceType','dblinkInfoDTO','extend','object','string','type','options','1397054andSGy','allFieldNames','dataset'];a25_0x48a6=function(){return _0x188576;};return a25_0x48a6();}export const datasetDetail={'service':a25_0x478edd(0xfe),'command':a25_0x478edd(0x129),'description':a25_0x478edd(0x108),'risk':'read','flags':[CODE_FLAG],async 'execute'(_0x59f434){const _0x17c44f=a25_0x478edd,_0x3862c3=await getDatasetDetail(_0x59f434['str'](_0x17c44f(0x135))),_0x8175c8=Array[_0x17c44f(0x113)](_0x3862c3[_0x17c44f(0x101)])?_0x3862c3['fields']:Array[_0x17c44f(0x113)](_0x3862c3[_0x17c44f(0x100)])?_0x3862c3[_0x17c44f(0x100)]:[];let _0x116d5a=_0x8175c8[_0x17c44f(0x12f)](_0x42f694=>normalizeField(_0x42f694))[_0x17c44f(0x103)](_0x34835f=>_0x34835f!==null);_0x116d5a[_0x17c44f(0x12e)]===0x0&&(_0x116d5a=await loadListFieldFallback(_0x59f434[_0x17c44f(0x11f)],_0x59f434[_0x17c44f(0x121)](_0x17c44f(0x135))));const _0x2e1e10=_0x3862c3['operations']??{},_0x28641a=[];for(const [_0x20b07b,_0x433c25]of Object['entries'](_0x2e1e10)){const _0x5b2fd7=normalizeOperationEntry(_0x20b07b,_0x433c25);if(_0x5b2fd7)_0x28641a['push'](_0x5b2fd7);}const _0x5c7798=_0x3862c3[_0x17c44f(0x107)]??{},_0x2333e6=_0x3862c3[_0x17c44f(0xfe)]??{},_0x1bd7d1=_0x5c7798[_0x17c44f(0x136)]!=null?{'id':_0x5c7798['dbId'],'name':_0x5c7798[_0x17c44f(0x110)]??null}:undefined;let _0x3937ac;return typeof _0x3862c3[_0x17c44f(0x13a)]===_0x17c44f(0x13c)&&(_0x3937ac=parseJsonMaybe(_0x3862c3[_0x17c44f(0x13a)])),{'ok':!![],'data':{'id':_0x3862c3[_0x17c44f(0x10e)]??_0x3862c3['id'],'name':_0x3862c3[_0x17c44f(0x12a)],'code':_0x3862c3[_0x17c44f(0x123)]||_0x3862c3[_0x17c44f(0x135)],'doVersion':_0x3862c3['doVersion'],'description':_0x3862c3['description']||_0x2333e6[_0x17c44f(0x10c)]||undefined,'source':_0x3862c3['source']||_0x2333e6[_0x17c44f(0x138)],'table':_0x5c7798[_0x17c44f(0x116)]||_0x2333e6[_0x17c44f(0x116)],'datasetKey':_0x5c7798[_0x17c44f(0x137)],'pk':_0x5c7798[_0x17c44f(0x11e)],'db':_0x1bd7d1,'dbtable':summarizeDbtable(_0x5c7798),'fields':_0x116d5a,'operations':_0x28641a,'indexes':Array[_0x17c44f(0x113)](_0x2333e6[_0x17c44f(0x134)])?_0x2333e6['indexes']:[],'relations':_0x3862c3[_0x17c44f(0x132)]??null,'relatedPages':normalizeRelatedPages(_0x3862c3['relatedPageInfoList']),...Array[_0x17c44f(0x113)](_0x3862c3[_0x17c44f(0x12b)])?{'columnCodeListWithDeleted':_0x3862c3[_0x17c44f(0x12b)]}:{},'formatRules':Array[_0x17c44f(0x113)](_0x3862c3[_0x17c44f(0x11b)])?_0x3862c3[_0x17c44f(0x11b)]:[],'validateRules':Array['isArray'](_0x3862c3['validateRules'])?_0x3862c3[_0x17c44f(0x12c)]:[],..._0x3937ac!==undefined?{'extend':_0x3937ac}:{},'stats':{'fieldCount':_0x116d5a[_0x17c44f(0x12e)],'operationCount':_0x28641a[_0x17c44f(0x12e)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a26_0x5768(_0x351fea,_0x4658aa){_0x351fea=_0x351fea-0x129;const _0x311538=a26_0x3115();let _0x576887=_0x311538[_0x351fea];return _0x576887;}(function(_0x4c3886,_0x30543f){const _0x4261b5=a26_0x5768,_0x263027=_0x4c3886();while(!![]){try{const _0x33d3a2=parseInt(_0x4261b5(0x12c))/0x1+parseInt(_0x4261b5(0x12b))/0x2+parseInt(_0x4261b5(0x12d))/0x3*(parseInt(_0x4261b5(0x132))/0x4)+-parseInt(_0x4261b5(0x131))/0x5+parseInt(_0x4261b5(0x12f))/0x6+parseInt(_0x4261b5(0x12e))/0x7*(-parseInt(_0x4261b5(0x12a))/0x8)+-parseInt(_0x4261b5(0x129))/0x9*(-parseInt(_0x4261b5(0x130))/0xa);if(_0x33d3a2===_0x30543f)break;else _0x263027['push'](_0x263027['shift']());}catch(_0xdfcb18){_0x263027['push'](_0x263027['shift']());}}}(a26_0x3115,0x4bf94));import{datasetList}from'../../commands/dataset/list.js';function a26_0x3115(){const _0x17f4b9=['3780cMXykc','144QxctNf','35552SYTlfn','68728SVhccN','131943XhyPxN','1272xwsqQX','581BhjlNU','2193888zHyaqD','63290PJuYcJ','1769295ZHQtak'];a26_0x3115=function(){return _0x17f4b9;};return a26_0x3115();}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_0x5299af=a27_0x39eb;function a27_0x59b1(){const _0x4d3ed6=['description','list','split','appCode','13014GpBnea','allFields','1232JfZaYM','source','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','54MVPQkG','12PwVmwr','464584mSyHrd','name','map','dataset','278765fVbWOU','1015236XwbsoU','trim','length','2392610rHFaZx','tableName','dbtableConfig','34886RbEUvx','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','pkField','53739CyUwgO','str','code','read'];a27_0x59b1=function(){return _0x4d3ed6;};return a27_0x59b1();}(function(_0x497277,_0x16644c){const _0x480299=a27_0x39eb,_0x51be6a=_0x497277();while(!![]){try{const _0x36d7c7=-parseInt(_0x480299(0xf8))/0x1+parseInt(_0x480299(0xf5))/0x2*(parseInt(_0x480299(0xe9))/0x3)+-parseInt(_0x480299(0xef))/0x4+parseInt(_0x480299(0xee))/0x5+-parseInt(_0x480299(0xe3))/0x6*(-parseInt(_0x480299(0xe5))/0x7)+-parseInt(_0x480299(0xea))/0x8*(-parseInt(_0x480299(0xe8))/0x9)+-parseInt(_0x480299(0xf2))/0xa;if(_0x36d7c7===_0x16644c)break;else _0x51be6a['push'](_0x51be6a['shift']());}catch(_0x4a7e53){_0x51be6a['push'](_0x51be6a['shift']());}}}(a27_0x59b1,0x4b6a2));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a27_0x39eb(_0x14d3bb,_0x222102){_0x14d3bb=_0x14d3bb-0xdd;const _0x59b172=a27_0x59b1();let _0x39eb11=_0x59b172[_0x14d3bb];return _0x39eb11;}export const datasetList={'service':a27_0x5299af(0xed),'command':a27_0x5299af(0xe0),'description':a27_0x5299af(0xe7),'risk':a27_0x5299af(0xde),'flags':[{'name':a27_0x5299af(0xeb),'type':'string','description':'Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)'},{...CODE_FLAG,'required':![],'description':a27_0x5299af(0xf6)}],async 'execute'(_0x6db534){const _0x318b96=a27_0x5299af,_0x4b8716=_0x6db534[_0x318b96(0xf9)](_0x318b96(0xeb)),_0x302f1a=_0x6db534[_0x318b96(0xf9)](_0x318b96(0xdd)),_0x2adfc5=await listDatasets(_0x6db534[_0x318b96(0xe2)],{..._0x4b8716&&{'name':_0x4b8716},..._0x302f1a&&{'code':_0x302f1a}});return{'ok':!![],'data':{'total':_0x2adfc5[_0x318b96(0xf1)],'datasets':_0x2adfc5['map'](_0x1971e3=>{const _0x46ac6a=_0x318b96,_0x3b8975=_0x1971e3[_0x46ac6a(0xf4)]??{};return{'id':_0x1971e3['id'],'code':_0x1971e3[_0x46ac6a(0xdd)],'name':_0x1971e3['name'],'source':_0x1971e3[_0x46ac6a(0xe6)],'description':_0x1971e3[_0x46ac6a(0xdf)],'table':_0x3b8975[_0x46ac6a(0xf3)],'datasetKey':_0x3b8975['datasetKey'],'pk':_0x3b8975[_0x46ac6a(0xf7)],'fields':_0x3b8975[_0x46ac6a(0xe4)]?_0x3b8975[_0x46ac6a(0xe4)][_0x46ac6a(0xe1)](',')[_0x46ac6a(0xec)](_0x4a45c5=>_0x4a45c5[_0x46ac6a(0xf0)]()):[]};})}};}};
|