@lovrabet/lovrabet-cli 2.1.18 → 2.1.19-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/README.md +7 -0
- 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.d.ts +1 -0
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.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.d.ts +9 -0
- package/lib/skills/runtime-skill-sync/install-target.js +1 -0
- package/lib/skills/runtime-skill-sync/links.d.ts +5 -4
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.d.ts +2 -2
- 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/types.d.ts +17 -0
- 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.d.ts +2 -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_0x59be29=a12_0x29d2;(function(_0x43c994,_0x11efd0){const _0x9b87d8=a12_0x29d2,_0x5366e9=_0x43c994();while(!![]){try{const _0x177662=parseInt(_0x9b87d8(0xe9))/0x1+-parseInt(_0x9b87d8(0xec))/0x2+parseInt(_0x9b87d8(0x9d))/0x3+parseInt(_0x9b87d8(0xbb))/0x4*(parseInt(_0x9b87d8(0xf2))/0x5)+parseInt(_0x9b87d8(0xd3))/0x6*(-parseInt(_0x9b87d8(0x97))/0x7)+-parseInt(_0x9b87d8(0xf4))/0x8*(-parseInt(_0x9b87d8(0xb5))/0x9)+-parseInt(_0x9b87d8(0x99))/0xa*(parseInt(_0x9b87d8(0xee))/0xb);if(_0x177662===_0x11efd0)break;else _0x5366e9['push'](_0x5366e9['shift']());}catch(_0x9fe058){_0x5366e9['push'](_0x5366e9['shift']());}}}(a12_0xb368,0x291e7));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a12_0x29d2(_0x365b8e,_0x39e63a){_0x365b8e=_0x365b8e-0x93;const _0xb36896=a12_0xb368();let _0x29d20d=_0xb36896[_0x365b8e];return _0x29d20d;}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 showAccessKeyCreateHint(){const _0x37ceee=a12_0x29d2;writeCliSideChannelLine(_0x37ceee(0xbf)+PRODUCT_CONFIG['userCenterDisplayName']+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x37ceee(0xbc)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x37ceee(0xb6));}function buildAccessKeySetupGuide(){const _0x263902=a12_0x29d2;return[_0x263902(0xbf)+PRODUCT_CONFIG[_0x263902(0xd9)]+':',USER_ACCESS_KEY_CREATE_URL,_0x263902(0xf3)+CLI_BIN_NAME+_0x263902(0xf5)][_0x263902(0xb3)]('\x0a');}function canPromptForAccessKey(_0xd9a4c8){const _0x3b52af=a12_0x29d2;return!_0xd9a4c8[_0x3b52af(0xce)]&&process[_0x3b52af(0xb4)][_0x3b52af(0xd7)]!==![]&&process['stdout'][_0x3b52af(0xd7)]!==![];}function resolveAuthScopeFlags(_0x2475b0){const _0x10e092=a12_0x29d2;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x2475b0[_0x10e092(0xe3)](_0x10e092(0xe1)),'explicitProject':_0x2475b0[_0x10e092(0xe3)]('project'),'policy':_0x10e092(0xa2)}));}async function resolveAuthWriteInput(_0x5e7405){const _0x41c18d=a12_0x29d2;let _0x22a02c=(_0x5e7405[_0x41c18d(0x9b)](_0x41c18d(0xc4))||_0x5e7405[_0x41c18d(0x9b)]('ak')||'')['trim']();const _0x1dcefc=(_0x5e7405['str'](_0x41c18d(0xcb))||'')[_0x41c18d(0xca)]();if(!_0x22a02c&&canPromptForAccessKey(_0x5e7405))try{showAccessKeyCreateHint(),_0x22a02c=await promptAccessKey('');}catch(_0x1bb616){if(isAbortPrompt(_0x1bb616))throw CliErrors['cancelled']();throw _0x1bb616;}if(!_0x22a02c)throw CliErrors['validation'](_0x41c18d(0xd4),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN['test'](_0x22a02c))throw CliErrors[_0x41c18d(0x9a)](_0x41c18d(0xe6)+_0x22a02c+'\x22',_0x41c18d(0xc9));if(!_0x1dcefc)return{'accessKey':_0x22a02c};const _0x513827=normalizeEnv(_0x1dcefc);return{'accessKey':_0x22a02c,'env':isDaily(_0x513827)?_0x41c18d(0xde):isDev(_0x513827)?_0x41c18d(0xf1):_0x41c18d(0xeb)};}function a12_0xb368(){const _0x4f909c=['If\x20command\x20execution\x20still\x20fails,\x20run:\x20','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','trim','env','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','scope','nonInteractive','\x20config.\x20Nothing\x20to\x20clear.','ACCESS_KEY','Clear\x20accessKey\x20from\x20config','yes','130098InASlZ','Missing\x20accessKey.','newConfigFileName','=ak_xxx','isTTY','string','userCenterDisplayName','expired','\x20doctor','Option\x20A:\x20','Use\x20`','daily','Write\x20to\x20global\x20config\x20(default)','Then\x20verify\x20with:\x20','global','AccessKey\x20cleared\x20from\x20','bool','info','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','Invalid\x20accessKey\x20format:\x20\x22','push','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','335073xvPnVU','project\x20config','production','284152hRtcBH','AccessKey:\x20','6118673pwmPEy','Auth\x20config\x20reinitialized\x20in\x20','Option\x20C:\x20environment\x20variable','development','5GGpQGJ','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','2387048tsfxEU','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','Option\x20B:\x20apps\x20config\x20(','global\x20config','length','success','28NowRvG','Clear\x20from\x20global\x20config\x20(default)','10aDDIdM','validation','str','authRequired','308421ZhPNLn','Read\x20from\x20global\x20config\x20(default)','slice','AccessKey\x20saved\x20to\x20','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','global-default','login','AccessKey\x20(ak_xxx...)','Shorthand\x20for\x20--access-key','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','write','accessKey','No\x20AccessKey\x20found\x20in\x20','\x20Verify:\x20','Show\x20current\x20authentication\x20status','status','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','Status:\x20valid','init','logout','\x20auth\x20status','\x20scope.','join','stdin','9kKNpHg','\x20auth\x20login\x20--access-key\x20<ak_xxx>','auth','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','project','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','868852Jeuyvg','Tip:\x20you\x20can\x20also\x20run:','repeat','ClientAk','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','access_key','\x20config','\x20(via\x20','check','access-key','code','boolean'];a12_0xb368=function(){return _0x4f909c;};return a12_0xb368();}export const authDefinitions=[{'service':a12_0x59be29(0xb7),'command':a12_0x59be29(0xa3),'description':'Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x59be29(0xc4),'type':a12_0x59be29(0xd8),'description':a12_0x59be29(0xa4)},{'name':'ak','type':a12_0x59be29(0xd8),'description':a12_0x59be29(0xa5)},{'name':a12_0x59be29(0xe1),'type':'boolean','description':a12_0x59be29(0xdf),'default':!![]},{'name':a12_0x59be29(0xb9),'type':a12_0x59be29(0xc6),'description':a12_0x59be29(0xa6),'default':![]}],async 'execute'(_0x130a23){const _0xb18514=a12_0x59be29;if(_0x130a23['bool'](_0xb18514(0xd2)))throw CliErrors[_0xb18514(0x9a)]('`auth\x20login`\x20does\x20not\x20support\x20--yes.',_0xb18514(0xdd)+CLI_BIN_NAME+_0xb18514(0xcc)+CLI_BIN_NAME+_0xb18514(0xba));const _0x282387=(_0x130a23[_0xb18514(0x9b)]('access-key')||_0x130a23[_0xb18514(0x9b)]('ak')||'')[_0xb18514(0xca)]();if(!_0x282387&&_0x130a23[_0xb18514(0xce)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x3dcc22=await resolveAuthWriteInput(_0x130a23),_0x9f06b=resolveAuthScopeFlags(_0x130a23),_0x3039fa=readScopedConfig(_0x9f06b);_0x3039fa[_0xb18514(0xa8)]=_0x3dcc22['accessKey'];_0x3dcc22[_0xb18514(0xcb)]&&(_0x3039fa[_0xb18514(0xcb)]=_0x3dcc22[_0xb18514(0xcb)]);writeScopedConfig(_0x3039fa,_0x9f06b);const _0x1e54b5=_0x9f06b[_0xb18514(0xe1)]?_0xb18514(0xe1):_0xb18514(0xb9),_0x2081e1=_0x3039fa[_0xb18514(0xcb)]?'\x20Current\x20env:\x20'+_0x3039fa['env']+'.':'';return{'ok':!![],'message':_0xb18514(0xa0)+_0x1e54b5+'\x20config.'+_0x2081e1+_0xb18514(0xaa)+CLI_BIN_NAME+_0xb18514(0xb1)};}},{'service':a12_0x59be29(0xb7),'command':a12_0x59be29(0xaf),'description':a12_0x59be29(0xa1),'risk':a12_0x59be29(0xa7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x59be29(0xc4),'type':'string','description':a12_0x59be29(0xa4)},{'name':'ak','type':'string','description':a12_0x59be29(0xa5)},{'name':'env','type':a12_0x59be29(0xd8),'description':a12_0x59be29(0xe5)},{'name':a12_0x59be29(0xe1),'type':a12_0x59be29(0xc6),'description':a12_0x59be29(0xdf),'default':!![]},{'name':a12_0x59be29(0xb9),'type':a12_0x59be29(0xc6),'description':a12_0x59be29(0xa6),'default':![]}],async 'execute'(_0x1cd10a){const _0x23e123=a12_0x59be29,_0x315b61=await resolveAuthWriteInput(_0x1cd10a),_0x4405ef=resolveAuthScopeFlags(_0x1cd10a),_0x3f722f={'accessKey':_0x315b61[_0x23e123(0xa8)]};_0x315b61['env']&&(_0x3f722f[_0x23e123(0xcb)]=_0x315b61['env']);writeScopedConfig(_0x3f722f,_0x4405ef);const _0x3dc9f5=_0x4405ef[_0x23e123(0xe1)]?'global':_0x23e123(0xb9),_0x34c238=_0x3f722f[_0x23e123(0xcb)]?'\x20Current\x20env:\x20'+_0x3f722f[_0x23e123(0xcb)]+'.':'';return{'ok':!![],'message':_0x23e123(0xef)+_0x3dc9f5+_0x23e123(0xb2)+_0x34c238+_0x23e123(0xaa)+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a12_0x59be29(0xb7),'command':a12_0x59be29(0xb0),'description':a12_0x59be29(0xd1),'risk':a12_0x59be29(0xa7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':a12_0x59be29(0xc6),'description':a12_0x59be29(0x98),'default':!![]},{'name':a12_0x59be29(0xb9),'type':'boolean','description':a12_0x59be29(0xe8),'default':![]}],async 'execute'(_0xd20559){const _0x2246fb=a12_0x59be29,_0x56bc80=resolveAuthScopeFlags(_0xd20559),_0x4f8b74=readScopedConfig(_0x56bc80),_0x40d6a8=!!_0x4f8b74[_0x2246fb(0xa8)];delete _0x4f8b74[_0x2246fb(0xa8)],writeScopedConfig(_0x4f8b74,_0x56bc80);const _0x453607=_0x56bc80[_0x2246fb(0xe1)]?'global':_0x2246fb(0xb9);if(_0x40d6a8)return{'ok':!![],'message':_0x2246fb(0xe2)+_0x453607+'\x20config.'};return{'ok':!![],'message':_0x2246fb(0xa9)+_0x453607+_0x2246fb(0xcf)};}},{'service':'auth','command':a12_0x59be29(0xac),'description':a12_0x59be29(0xab),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x59be29(0xe1),'type':a12_0x59be29(0xc6),'description':a12_0x59be29(0x9e),'default':!![]},{'name':a12_0x59be29(0xb9),'type':a12_0x59be29(0xc6),'description':'Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]},{'name':a12_0x59be29(0xc3),'type':a12_0x59be29(0xc6),'description':'Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','default':![]}],async 'execute'(_0x5bb9e4){const _0x48d9fe=a12_0x59be29,_0x17812d=resolveAuthScopeFlags(_0x5bb9e4),_0x46128d=readScopedConfig(_0x17812d),_0x126cdb=productEnvName(_0x48d9fe(0xd0)),_0x1cccb1=productEnv(_0x48d9fe(0xd0))||undefined,_0x2719f8=_0x46128d[_0x48d9fe(0xa8)]||undefined,_0x5abac4=_0x1cccb1||_0x2719f8,_0x2da6f8=_0x1cccb1?_0x126cdb+'\x20env\x20var':_0x2719f8?(_0x17812d[_0x48d9fe(0xe1)]?_0x48d9fe(0xe1):_0x48d9fe(0xb9))+_0x48d9fe(0xc1):null,_0x81382d=['Auth\x20mode:\x20'+AUTH_MODE['ClientAk']];if(_0x5abac4){const _0x176b58=_0x5abac4[_0x48d9fe(0x95)]>0x8?''+_0x5abac4[_0x48d9fe(0x9f)](0x0,0x8)+'*'[_0x48d9fe(0xbd)](_0x5abac4['length']-0x8):_0x5abac4;_0x81382d[_0x48d9fe(0xe7)](_0x48d9fe(0xed)+_0x176b58+(_0x2da6f8?_0x48d9fe(0xc2)+_0x2da6f8+')':'')),_0x81382d['push']('Status:\x20valid');}if(!_0x5abac4){_0x81382d[_0x48d9fe(0xe7)](''),_0x81382d[_0x48d9fe(0xe7)](_0x48d9fe(0xc8)),_0x81382d[_0x48d9fe(0xe7)](''),_0x81382d['push'](_0x48d9fe(0xdc)+CLI_BIN_NAME+_0x48d9fe(0xad)),_0x81382d[_0x48d9fe(0xe7)](''),_0x81382d[_0x48d9fe(0xe7)](_0x48d9fe(0x93)+PRODUCT_CONFIG[_0x48d9fe(0xd5)]+')'),_0x81382d['push']('{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}'),_0x81382d['push'](''),_0x81382d[_0x48d9fe(0xe7)](_0x48d9fe(0xf0)),_0x81382d[_0x48d9fe(0xe7)]('\x20\x20export\x20'+_0x126cdb+_0x48d9fe(0xd6)),_0x81382d[_0x48d9fe(0xe7)](''),_0x81382d[_0x48d9fe(0xe7)](_0x48d9fe(0xe0)+CLI_BIN_NAME+_0x48d9fe(0xb1)),_0x81382d['push'](_0x48d9fe(0xc7)+CLI_BIN_NAME+_0x48d9fe(0xdb));if(_0x5bb9e4[_0x48d9fe(0xe3)](_0x48d9fe(0xc3))){const _0x6c4c37=readStoredDeviceCode();if(_0x6c4c37&&!isStoredDeviceCodeExpired(_0x6c4c37)){const _0x2a8f2a=getUserDomain(),_0x5b177a=await fetchDeviceToken(_0x2a8f2a,_0x6c4c37[_0x48d9fe(0xc5)]);if(_0x5b177a[_0x48d9fe(0xac)]===_0x48d9fe(0x96)&&_0x5b177a[_0x48d9fe(0xc0)]){const _0x455477={'global':_0x6c4c37[_0x48d9fe(0xcd)]===_0x48d9fe(0xe1)},_0x1af00b=readScopedConfig(_0x455477);_0x1af00b[_0x48d9fe(0xa8)]=_0x5b177a[_0x48d9fe(0xc0)],writeScopedConfig(_0x1af00b,_0x455477),deleteStoredDeviceCode();const _0x155fd5=_0x5b177a[_0x48d9fe(0xc0)],_0x23221a=_0x155fd5[_0x48d9fe(0x95)]>0x8?''+_0x155fd5['slice'](0x0,0x8)+'*'[_0x48d9fe(0xbd)](_0x155fd5[_0x48d9fe(0x95)]-0x8):_0x155fd5,_0x1debd1=_0x6c4c37[_0x48d9fe(0xcd)]===_0x48d9fe(0xe1)?_0x48d9fe(0x94):_0x48d9fe(0xea);return{'ok':!![],'message':['Auth\x20mode:\x20'+AUTH_MODE[_0x48d9fe(0xbe)],'AccessKey:\x20'+_0x23221a+_0x48d9fe(0xc2)+_0x1debd1+')',_0x48d9fe(0xae)][_0x48d9fe(0xb3)]('\x0a')};}_0x5b177a[_0x48d9fe(0xac)]===_0x48d9fe(0xda)&&deleteStoredDeviceCode();throw CliErrors[_0x48d9fe(0x9c)](_0x48d9fe(0xb8));}throw CliErrors['authRequired'](_0x81382d[_0x48d9fe(0xb3)]('\x0a'));}}return{'ok':!![],'message':_0x81382d[_0x48d9fe(0xb3)]('\x0a')};}},{'service':a12_0x59be29(0xb7),'command':a12_0x59be29(0xe4),'description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x2b4174){const _0x194eb2=a12_0x59be29,_0x31aa4a=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x31aa4a,'meta':{'env':_0x2b4174['envName']??_0x194eb2(0xeb)}}};}},authDeviceDefinition];
|
|
1
|
+
const a12_0x3328a0=a12_0x8539;(function(_0x381b83,_0x533a4d){const _0x288c14=a12_0x8539,_0x4ee8a0=_0x381b83();while(!![]){try{const _0x5bc1a0=parseInt(_0x288c14(0xfd))/0x1+-parseInt(_0x288c14(0xca))/0x2*(-parseInt(_0x288c14(0xc6))/0x3)+parseInt(_0x288c14(0xb3))/0x4+parseInt(_0x288c14(0xd1))/0x5*(parseInt(_0x288c14(0xc4))/0x6)+-parseInt(_0x288c14(0xee))/0x7+parseInt(_0x288c14(0xb7))/0x8+parseInt(_0x288c14(0xb0))/0x9*(-parseInt(_0x288c14(0xad))/0xa);if(_0x5bc1a0===_0x533a4d)break;else _0x4ee8a0['push'](_0x4ee8a0['shift']());}catch(_0x4687a9){_0x4ee8a0['push'](_0x4ee8a0['shift']());}}}(a12_0x5728,0x8c950));import{readScopedConfig,writeScopedConfig}from'../../context.js';function a12_0x8539(_0x15ba0b,_0xcefc97){_0x15ba0b=_0x15ba0b-0xa2;const _0x572855=a12_0x5728();let _0x853940=_0x572855[_0x15ba0b];return _0x853940;}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 showAccessKeyCreateHint(){const _0x1e809b=a12_0x8539;writeCliSideChannelLine(_0x1e809b(0xb8)+PRODUCT_CONFIG[_0x1e809b(0xc2)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine('Tip:\x20you\x20can\x20also\x20run:'),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>');}function buildAccessKeySetupGuide(){const _0x53878a=a12_0x8539;return[_0x53878a(0xb8)+PRODUCT_CONFIG[_0x53878a(0xc2)]+':',USER_ACCESS_KEY_CREATE_URL,_0x53878a(0xfe)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]']['join']('\x0a');}function canPromptForAccessKey(_0x4dae7a){const _0x5085cc=a12_0x8539;return!_0x4dae7a[_0x5085cc(0xf7)]&&process[_0x5085cc(0xa4)]['isTTY']!==![]&&process[_0x5085cc(0xe7)]['isTTY']!==![];}function resolveAuthScopeFlags(_0x5567cd){const _0x203603=a12_0x8539;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x5567cd['bool']('global'),'explicitProject':_0x5567cd[_0x203603(0xb4)](_0x203603(0xe1)),'policy':_0x203603(0xb2)}));}function a12_0x5728(){const _0x29f4ee=['Status:\x20valid','trim','AccessKey\x20saved\x20to\x20','authRequired','validation','stdout','status','test','Clear\x20from\x20global\x20config\x20(default)','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','length','\x20config','7017304imcNWd','daily','\x20config.\x20Nothing\x20to\x20clear.','Read\x20from\x20global\x20config\x20(default)','slice','Invalid\x20accessKey\x20format:\x20\x22','boolean','accessKey','`auth\x20login`\x20does\x20not\x20support\x20--yes.','nonInteractive','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','access-key','ACCESS_KEY','Then\x20verify\x20with:\x20','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','195669PBVfJp','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','Option\x20A:\x20','read','join','stdin','AccessKey\x20(ak_xxx...)','\x20doctor','\x20auth\x20status','str','project\x20config','string','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','info','2190ZYaJAP','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','production','28278wnUQYC','global','global-default','2217800DgytRb','bool','Show\x20current\x20authentication\x20status','code','5402472WFSJwb','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','newConfigFileName','\x20\x20export\x20','Option\x20B:\x20apps\x20config\x20(','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','global\x20config','logout','\x20config.','write','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','userCenterDisplayName','envName','263502lwPJhc','access_key','9bUzLtw','repeat','Auth\x20mode:\x20','development','414254WujfFT','ClientAk','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','Write\x20to\x20global\x20config\x20(default)','=ak_xxx','\x20Verify:\x20','yes','25grkSAf','auth','Option\x20C:\x20environment\x20variable','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','push','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','AccessKey:\x20','env','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','\x20Current\x20env:\x20','expired','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','Shorthand\x20for\x20--access-key','\x20(via\x20','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','scope','project'];a12_0x5728=function(){return _0x29f4ee;};return a12_0x5728();}async function resolveAuthWriteInput(_0x36d15c){const _0x3d1a0a=a12_0x8539;let _0x5bc8ae=(_0x36d15c['str'](_0x3d1a0a(0xf9))||_0x36d15c[_0x3d1a0a(0xa8)]('ak')||'')[_0x3d1a0a(0xe3)]();const _0x346a32=(_0x36d15c[_0x3d1a0a(0xa8)](_0x3d1a0a(0xd8))||'')['trim']();if(!_0x5bc8ae&&canPromptForAccessKey(_0x36d15c))try{showAccessKeyCreateHint(),_0x5bc8ae=await promptAccessKey('');}catch(_0x3bd595){if(isAbortPrompt(_0x3bd595))throw CliErrors['cancelled']();throw _0x3bd595;}if(!_0x5bc8ae)throw CliErrors['validation']('Missing\x20accessKey.',buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x3d1a0a(0xe9)](_0x5bc8ae))throw CliErrors['validation'](_0x3d1a0a(0xf3)+_0x5bc8ae+'\x22',_0x3d1a0a(0xae));if(!_0x346a32)return{'accessKey':_0x5bc8ae};const _0x3bac04=normalizeEnv(_0x346a32);return{'accessKey':_0x5bc8ae,'env':isDaily(_0x3bac04)?_0x3d1a0a(0xef):isDev(_0x3bac04)?_0x3d1a0a(0xc9):_0x3d1a0a(0xaf)};}export const authDefinitions=[{'service':'auth','command':'login','description':a12_0x3328a0(0xab),'risk':a12_0x3328a0(0xc0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x3328a0(0xf9),'type':a12_0x3328a0(0xaa),'description':a12_0x3328a0(0xa5)},{'name':'ak','type':a12_0x3328a0(0xaa),'description':a12_0x3328a0(0xdd)},{'name':a12_0x3328a0(0xb1),'type':a12_0x3328a0(0xf4),'description':a12_0x3328a0(0xcd),'default':!![]},{'name':a12_0x3328a0(0xe1),'type':a12_0x3328a0(0xf4),'description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x2e7c82){const _0x14e024=a12_0x3328a0;if(_0x2e7c82[_0x14e024(0xb4)](_0x14e024(0xd0)))throw CliErrors[_0x14e024(0xe6)](_0x14e024(0xf6),'Use\x20`'+CLI_BIN_NAME+_0x14e024(0xd9)+CLI_BIN_NAME+_0x14e024(0xeb));const _0xd2c1d3=(_0x2e7c82[_0x14e024(0xa8)](_0x14e024(0xf9))||_0x2e7c82[_0x14e024(0xa8)]('ak')||'')['trim']();if(!_0xd2c1d3&&_0x2e7c82[_0x14e024(0xf7)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x1d5688=await resolveAuthWriteInput(_0x2e7c82),_0x3b4d36=resolveAuthScopeFlags(_0x2e7c82),_0x1896cc=readScopedConfig(_0x3b4d36);_0x1896cc[_0x14e024(0xf5)]=_0x1d5688[_0x14e024(0xf5)];_0x1d5688[_0x14e024(0xd8)]&&(_0x1896cc[_0x14e024(0xd8)]=_0x1d5688['env']);writeScopedConfig(_0x1896cc,_0x3b4d36);const _0x548e50=_0x3b4d36[_0x14e024(0xb1)]?_0x14e024(0xb1):_0x14e024(0xe1),_0x26a176=_0x1896cc['env']?_0x14e024(0xda)+_0x1896cc[_0x14e024(0xd8)]+'.':'';return{'ok':!![],'message':_0x14e024(0xe4)+_0x548e50+_0x14e024(0xbf)+_0x26a176+_0x14e024(0xcf)+CLI_BIN_NAME+_0x14e024(0xa7)};}},{'service':'auth','command':'init','description':a12_0x3328a0(0xd4),'risk':a12_0x3328a0(0xc0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x3328a0(0xf9),'type':'string','description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a12_0x3328a0(0xaa),'description':a12_0x3328a0(0xdd)},{'name':a12_0x3328a0(0xd8),'type':'string','description':a12_0x3328a0(0xf8)},{'name':a12_0x3328a0(0xb1),'type':'boolean','description':a12_0x3328a0(0xcd),'default':!![]},{'name':a12_0x3328a0(0xe1),'type':a12_0x3328a0(0xf4),'description':a12_0x3328a0(0xdc),'default':![]}],async 'execute'(_0x449555){const _0x471986=a12_0x3328a0,_0x5e7eb7=await resolveAuthWriteInput(_0x449555),_0x5e23df=resolveAuthScopeFlags(_0x449555),_0x3d5808={'accessKey':_0x5e7eb7[_0x471986(0xf5)]};_0x5e7eb7[_0x471986(0xd8)]&&(_0x3d5808['env']=_0x5e7eb7[_0x471986(0xd8)]);writeScopedConfig(_0x3d5808,_0x5e23df);const _0x1f7b20=_0x5e23df[_0x471986(0xb1)]?_0x471986(0xb1):_0x471986(0xe1),_0x3c6ba8=_0x3d5808[_0x471986(0xd8)]?'\x20Current\x20env:\x20'+_0x3d5808[_0x471986(0xd8)]+'.':'';return{'ok':!![],'message':'Auth\x20config\x20reinitialized\x20in\x20'+_0x1f7b20+'\x20scope.'+_0x3c6ba8+_0x471986(0xcf)+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a12_0x3328a0(0xd2),'command':a12_0x3328a0(0xbe),'description':'Clear\x20accessKey\x20from\x20config','risk':a12_0x3328a0(0xc0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x3328a0(0xb1),'type':a12_0x3328a0(0xf4),'description':a12_0x3328a0(0xea),'default':!![]},{'name':a12_0x3328a0(0xe1),'type':a12_0x3328a0(0xf4),'description':a12_0x3328a0(0xbc),'default':![]}],async 'execute'(_0x2e9b13){const _0x3e6b71=a12_0x3328a0,_0x4bb288=resolveAuthScopeFlags(_0x2e9b13),_0x32a762=readScopedConfig(_0x4bb288),_0x57dfd2=!!_0x32a762[_0x3e6b71(0xf5)];delete _0x32a762[_0x3e6b71(0xf5)],writeScopedConfig(_0x32a762,_0x4bb288);const _0x2f3126=_0x4bb288[_0x3e6b71(0xb1)]?_0x3e6b71(0xb1):'project';if(_0x57dfd2)return{'ok':!![],'message':'AccessKey\x20cleared\x20from\x20'+_0x2f3126+_0x3e6b71(0xbf)};return{'ok':!![],'message':'No\x20AccessKey\x20found\x20in\x20'+_0x2f3126+_0x3e6b71(0xf0)};}},{'service':a12_0x3328a0(0xd2),'command':a12_0x3328a0(0xe8),'description':a12_0x3328a0(0xb5),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x3328a0(0xb1),'type':a12_0x3328a0(0xf4),'description':a12_0x3328a0(0xf1),'default':!![]},{'name':'project','type':'boolean','description':a12_0x3328a0(0xfc),'default':![]},{'name':'check','type':a12_0x3328a0(0xf4),'description':a12_0x3328a0(0xd6),'default':![]}],async 'execute'(_0x24da8c){const _0x4eef42=a12_0x3328a0,_0x37aa71=resolveAuthScopeFlags(_0x24da8c),_0x2df037=readScopedConfig(_0x37aa71),_0xe1a290=productEnvName(_0x4eef42(0xfa)),_0x4bbf4b=productEnv(_0x4eef42(0xfa))||undefined,_0x4b0fd2=_0x2df037['accessKey']||undefined,_0x57aa12=_0x4bbf4b||_0x4b0fd2,_0x51897e=_0x4bbf4b?_0xe1a290+'\x20env\x20var':_0x4b0fd2?(_0x37aa71[_0x4eef42(0xb1)]?'global':'project')+_0x4eef42(0xed):null,_0x40f40b=[_0x4eef42(0xc8)+AUTH_MODE[_0x4eef42(0xcb)]];if(_0x57aa12){const _0x473967=_0x57aa12[_0x4eef42(0xec)]>0x8?''+_0x57aa12[_0x4eef42(0xf2)](0x0,0x8)+'*'[_0x4eef42(0xc7)](_0x57aa12[_0x4eef42(0xec)]-0x8):_0x57aa12;_0x40f40b['push'](_0x4eef42(0xd7)+_0x473967+(_0x51897e?_0x4eef42(0xde)+_0x51897e+')':'')),_0x40f40b[_0x4eef42(0xd5)](_0x4eef42(0xe2));}if(!_0x57aa12){_0x40f40b['push'](''),_0x40f40b[_0x4eef42(0xd5)](_0x4eef42(0xcc)),_0x40f40b[_0x4eef42(0xd5)](''),_0x40f40b[_0x4eef42(0xd5)](_0x4eef42(0xff)+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x40f40b[_0x4eef42(0xd5)](''),_0x40f40b[_0x4eef42(0xd5)](_0x4eef42(0xbb)+PRODUCT_CONFIG[_0x4eef42(0xb9)]+')'),_0x40f40b['push']('{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}'),_0x40f40b[_0x4eef42(0xd5)](''),_0x40f40b[_0x4eef42(0xd5)](_0x4eef42(0xd3)),_0x40f40b[_0x4eef42(0xd5)](_0x4eef42(0xba)+_0xe1a290+_0x4eef42(0xce)),_0x40f40b['push'](''),_0x40f40b[_0x4eef42(0xd5)](_0x4eef42(0xfb)+CLI_BIN_NAME+_0x4eef42(0xa7)),_0x40f40b[_0x4eef42(0xd5)](_0x4eef42(0xdf)+CLI_BIN_NAME+_0x4eef42(0xa6));if(_0x24da8c[_0x4eef42(0xb4)]('check')){const _0x518144=readStoredDeviceCode();if(_0x518144&&!isStoredDeviceCodeExpired(_0x518144)){const _0x3d9d9d=getUserDomain(),_0x18f5f9=await fetchDeviceToken(_0x3d9d9d,_0x518144[_0x4eef42(0xb6)]);if(_0x18f5f9[_0x4eef42(0xe8)]==='success'&&_0x18f5f9[_0x4eef42(0xc5)]){const _0x59c5d2={'global':_0x518144['scope']===_0x4eef42(0xb1)},_0x212355=readScopedConfig(_0x59c5d2);_0x212355[_0x4eef42(0xf5)]=_0x18f5f9[_0x4eef42(0xc5)],writeScopedConfig(_0x212355,_0x59c5d2),deleteStoredDeviceCode();const _0x2534ea=_0x18f5f9[_0x4eef42(0xc5)],_0xe2967b=_0x2534ea[_0x4eef42(0xec)]>0x8?''+_0x2534ea[_0x4eef42(0xf2)](0x0,0x8)+'*'[_0x4eef42(0xc7)](_0x2534ea['length']-0x8):_0x2534ea,_0x7abc79=_0x518144[_0x4eef42(0xe0)]===_0x4eef42(0xb1)?_0x4eef42(0xbd):_0x4eef42(0xa9);return{'ok':!![],'message':[_0x4eef42(0xc8)+AUTH_MODE[_0x4eef42(0xcb)],_0x4eef42(0xd7)+_0xe2967b+_0x4eef42(0xde)+_0x7abc79+')',_0x4eef42(0xe2)][_0x4eef42(0xa3)]('\x0a')};}_0x18f5f9[_0x4eef42(0xe8)]===_0x4eef42(0xdb)&&deleteStoredDeviceCode();throw CliErrors[_0x4eef42(0xe5)](_0x4eef42(0xc1));}throw CliErrors[_0x4eef42(0xe5)](_0x40f40b[_0x4eef42(0xa3)]('\x0a'));}}return{'ok':!![],'message':_0x40f40b[_0x4eef42(0xa3)]('\x0a')};}},{'service':a12_0x3328a0(0xd2),'command':a12_0x3328a0(0xac),'description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':a12_0x3328a0(0xa2),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x213e95){const _0xe6fe70=a12_0x3328a0,_0x58dd5e=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x58dd5e,'meta':{'env':_0x213e95[_0xe6fe70(0xc3)]??'production'}}};}},authDeviceDefinition];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x105a78,_0x461312){const _0x1e85da=a13_0x54cd,_0x14b78c=_0x105a78();while(!![]){try{const _0x17159d=parseInt(_0x1e85da(0x174))/0x1*(-parseInt(_0x1e85da(0x16b))/0x2)+parseInt(_0x1e85da(0x166))/0x3+parseInt(_0x1e85da(0x164))/0x4*(-parseInt(_0x1e85da(0x16f))/0x5)+-parseInt(_0x1e85da(0x16d))/0x6*(-parseInt(_0x1e85da(0x177))/0x7)+-parseInt(_0x1e85da(0x169))/0x8*(-parseInt(_0x1e85da(0x163))/0x9)+-parseInt(_0x1e85da(0x173))/0xa*(-parseInt(_0x1e85da(0x167))/0xb)+-parseInt(_0x1e85da(0x165))/0xc;if(_0x17159d===_0x461312)break;else _0x14b78c['push'](_0x14b78c['shift']());}catch(_0xd8636f){_0x14b78c['push'](_0x14b78c['shift']());}}}(a13_0x2acd,0x259f8));import{createInterface}from'node:readline';function a13_0x2acd(){const _0x50f1c0=['User\x20aborted\x20prompt','close','28CYEnPf','removeListener','AccessKey\x20(paste\x20ak_...):\x20','AccessKey\x20(','360918EFVQFt','4EWRpnI','1173240HZHOie','188595xKhfAd','22NHszXk','SIGINT','8RQiWPM','AbortPrompt','42156HqhcKt','name','291948TzDRGQ','stdin','856965zwJgQs','once','question','):\x20','839120fveuug','2DGlwkZ'];a13_0x2acd=function(){return _0x50f1c0;};return a13_0x2acd();}function a13_0x54cd(_0x8c98b3,_0xe42053){_0x8c98b3=_0x8c98b3-0x160;const _0x2acde8=a13_0x2acd();let _0x54cd62=_0x2acde8[_0x8c98b3];return _0x54cd62;}class AbortPrompt extends Error{constructor(){const _0x2558aa=a13_0x54cd;super(_0x2558aa(0x175)),this['name']=_0x2558aa(0x16a);}}function createSafeRl(){const _0x2dbdf5=a13_0x54cd,_0x30cc16=createInterface({'input':process[_0x2dbdf5(0x16e)],'output':process['stdout']});let _0x1b5b88;const _0x2a9bb8=new Promise((_0x390a3c,_0x55b23f)=>{const _0x56fdb1=_0x2dbdf5;_0x1b5b88=()=>{const _0x162c55=a13_0x54cd;_0x1b5b88&&(_0x30cc16[_0x162c55(0x160)](_0x162c55(0x168),_0x1b5b88),_0x1b5b88=undefined);try{_0x30cc16[_0x162c55(0x176)]();}catch{}_0x55b23f(new AbortPrompt());},_0x30cc16[_0x56fdb1(0x170)](_0x56fdb1(0x168),_0x1b5b88);}),_0x178763=()=>{const _0x392169=_0x2dbdf5;_0x1b5b88&&(_0x30cc16[_0x392169(0x160)](_0x392169(0x168),_0x1b5b88),_0x1b5b88=undefined);try{_0x30cc16['close']();}catch{}};return{'rl':_0x30cc16,'abortPromise':_0x2a9bb8,'disposeSuccess':_0x178763};}export async function promptAccessKey(_0x4f82c2=''){const {rl:_0x2da6e3,abortPromise:_0x197902,disposeSuccess:_0x2987a2}=createSafeRl(),_0x2bd98d=new Promise(_0x2f7418=>{const _0x1fa6ec=a13_0x54cd,_0x40b935=_0x4f82c2?_0x1fa6ec(0x162)+_0x4f82c2+_0x1fa6ec(0x172):_0x1fa6ec(0x161);_0x2da6e3[_0x1fa6ec(0x171)](_0x40b935,_0x637fdb=>{_0x2987a2(),_0x2f7418(_0x637fdb['trim']()||_0x4f82c2);});});return Promise['race']([_0x2bd98d,_0x197902]);}export function isAbortPrompt(_0x5f344a){const _0x28f19c=a13_0x54cd;return _0x5f344a instanceof Error&&_0x5f344a[_0x28f19c(0x16c)]===_0x28f19c(0x16a);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a14_0xcfbac2=a14_0x11bf;(function(_0x30a5dd,_0x4b2c8e){const _0x55bdbf=a14_0x11bf,_0x367d5e=_0x30a5dd();while(!![]){try{const _0x2d6321=parseInt(_0x55bdbf(0xc5))/0x1*(parseInt(_0x55bdbf(0xc1))/0x2)+parseInt(_0x55bdbf(0xc4))/0x3+parseInt(_0x55bdbf(0xc2))/0x4*(-parseInt(_0x55bdbf(0xb7))/0x5)+-parseInt(_0x55bdbf(0xbc))/0x6*(parseInt(_0x55bdbf(0xb0))/0x7)+-parseInt(_0x55bdbf(0xb9))/0x8+parseInt(_0x55bdbf(0xb4))/0x9+-parseInt(_0x55bdbf(0xb2))/0xa*(parseInt(_0x55bdbf(0xbf))/0xb);if(_0x2d6321===_0x4b2c8e)break;else _0x367d5e['push'](_0x367d5e['shift']());}catch(_0x5524fd){_0x367d5e['push'](_0x367d5e['shift']());}}}(a14_0x31b7,0xaa4d6));import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';function a14_0x11bf(_0x13831c,_0x5be41b){_0x13831c=_0x13831c-0xb0;const _0x31b767=a14_0x31b7();let _0x11bfa6=_0x31b767[_0x13831c];return _0x11bfa6;}function a14_0x31b7(){const _0x23c60b=['1110901mNynba','appCode','14auokVZ','4HVsTnn','bff','2887047egxsDG','164093AbamTM','gmtModified','description','21lUMvfE','version','10CUulAn','detail','8315487KyVDtt','BFF\x20function\x20name','read','1308920gWMhUW','functionName','7333784wlnmar','(none)','str','2115774VMcHPd','Get\x20a\x20BFF\x20endpoint\x20contract\x20by\x20function\x20name','name'];a14_0x31b7=function(){return _0x23c60b;};return a14_0x31b7();}export const bffDetail={'service':a14_0xcfbac2(0xc3),'command':a14_0xcfbac2(0xb3),'description':a14_0xcfbac2(0xbd),'risk':a14_0xcfbac2(0xb6),'flags':[{...NAME_FLAG,'required':!![],'description':a14_0xcfbac2(0xb5)}],async 'execute'(_0x474382){const _0x43e9a0=a14_0xcfbac2,_0x58e245=await getBffEndpointContract(_0x474382[_0x43e9a0(0xc0)],_0x474382[_0x43e9a0(0xbb)](_0x43e9a0(0xbe)));return{'ok':!![],'data':{'appCode':_0x58e245['appCode'],'functionName':_0x58e245[_0x43e9a0(0xb8)],'description':_0x58e245[_0x43e9a0(0xc7)]||_0x43e9a0(0xba),'version':_0x58e245[_0x43e9a0(0xb1)],'gmtModified':_0x58e245[_0x43e9a0(0xc6)]}};}};
|
package/lib/commands/bff/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15_0x4bd33c=a15_0x4d37;(function(_0x29eee6,_0x5cca70){const _0x177b7a=a15_0x4d37,_0x37af93=_0x29eee6();while(!![]){try{const _0x26fdd3=parseInt(_0x177b7a(0x1b4))/0x1*(-parseInt(_0x177b7a(0x1bc))/0x2)+parseInt(_0x177b7a(0x1c1))/0x3*(parseInt(_0x177b7a(0x1c0))/0x4)+-parseInt(_0x177b7a(0x1b1))/0x5+-parseInt(_0x177b7a(0x1b8))/0x6*(-parseInt(_0x177b7a(0x1b0))/0x7)+-parseInt(_0x177b7a(0x1b3))/0x8+-parseInt(_0x177b7a(0x1ae))/0x9+parseInt(_0x177b7a(0x1c2))/0xa*(parseInt(_0x177b7a(0x1b9))/0xb);if(_0x26fdd3===_0x5cca70)break;else _0x37af93['push'](_0x37af93['shift']());}catch(_0x1d1b71){_0x37af93['push'](_0x37af93['shift']());}}}(a15_0x208a,0xc28ea));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a15_0x4d37(_0x4c6c13,_0x1e1f64){_0x4c6c13=_0x4c6c13-0x1ae;const _0x208a0e=a15_0x208a();let _0x4d3777=_0x208a0e[_0x4c6c13];return _0x4d3777;}export const bffExec={'service':a15_0x4bd33c(0x1b7),'command':a15_0x4bd33c(0x1bb),'description':a15_0x4bd33c(0x1bf),'risk':a15_0x4bd33c(0x1be),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x4bd33c(0x1bd)},PARAMS_FLAG],async 'execute'(_0x19cbb){const _0x2a5b60=a15_0x4bd33c,_0x579ff5=parseJsonParams(_0x19cbb[_0x2a5b60(0x1af)](_0x2a5b60(0x1ba))),_0x322ff3=Date[_0x2a5b60(0x1b6)](),_0x1f6f37=await executeSdkBff(_0x19cbb['str'](_0x2a5b60(0x1b2)),_0x579ff5),_0x256300=Date[_0x2a5b60(0x1b6)]()-_0x322ff3;return{'ok':!![],'data':{'result':_0x1f6f37,'elapsed':_0x256300},'message':_0x2a5b60(0x1b5)+_0x256300+'ms'};}};function a15_0x208a(){const _0x3e5fcf=['name','1742640jafxxR','96940ljFFok','BFF\x20executed\x20in\x20','now','bff','35196vHZSMP','170698BbvtGx','params','exec','22ANmZsD','BFF\x20function\x20name\x20to\x20execute','read','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','4wXJZwu','4760571KxpZGs','660ciCsaD','6554007YpbjDv','str','784PfBwKy','2293690MRZzJa'];a15_0x208a=function(){return _0x3e5fcf;};return a15_0x208a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x130dfe,_0x59139f){const _0x4951eb=a16_0x2e41,_0x14ac20=_0x130dfe();while(!![]){try{const _0x31e012=parseInt(_0x4951eb(0xba))/0x1+parseInt(_0x4951eb(0xbf))/0x2*(parseInt(_0x4951eb(0xb6))/0x3)+-parseInt(_0x4951eb(0xb7))/0x4+-parseInt(_0x4951eb(0xbc))/0x5*(-parseInt(_0x4951eb(0xbe))/0x6)+-parseInt(_0x4951eb(0xb8))/0x7+parseInt(_0x4951eb(0xb9))/0x8*(-parseInt(_0x4951eb(0xbd))/0x9)+parseInt(_0x4951eb(0xbb))/0xa;if(_0x31e012===_0x59139f)break;else _0x14ac20['push'](_0x14ac20['shift']());}catch(_0x533cd0){_0x14ac20['push'](_0x14ac20['shift']());}}}(a16_0x431b,0x819ac));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];function a16_0x2e41(_0x57c664,_0x38aaed){_0x57c664=_0x57c664-0xb6;const _0x431ba2=a16_0x431b();let _0x2e41cc=_0x431ba2[_0x57c664];return _0x2e41cc;}function a16_0x431b(){const _0x462542=['19760320qbGfRh','5roYIjg','5700789XXGBVw','672318kPgclT','162jbZRcJ','16767yCLelA','3335720DbjXNv','5700485XaSflQ','8dgDsjU','271772HmTPst'];a16_0x431b=function(){return _0x462542;};return a16_0x431b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a17_0x4f391a=a17_0x1205;function a17_0x12f1(){const _0xd9b895=['log','info','pipe','\x20-g\x20-y)...','1170512QmKzNO','642194zbokSG','cli-skill-install','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','6740800nloLdr','90870LlKrif','1387596dVTZGk','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','nonInteractive','16mvQWFH','inherit','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','cwd','25kNlqCs','550962HqsSYu','apiError','3XMtztw','unknown','skipped','npx\x20skills\x20add\x20failed:\x20','1145475aIulJw','../../skills/npx-skills-add.js','write','error','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','cli-skill','Skipped\x20npx\x20(','setLogPath'];a17_0x12f1=function(){return _0xd9b895;};return a17_0x12f1();}(function(_0x296ad4,_0x25a32f){const _0x367ffe=a17_0x1205,_0xabec0a=_0x296ad4();while(!![]){try{const _0x14b8fa=parseInt(_0x367ffe(0xcf))/0x1+parseInt(_0x367ffe(0xcb))/0x2+-parseInt(_0x367ffe(0xda))/0x3*(-parseInt(_0x367ffe(0xd0))/0x4)+parseInt(_0x367ffe(0xd7))/0x5*(parseInt(_0x367ffe(0xd8))/0x6)+-parseInt(_0x367ffe(0xca))/0x7*(parseInt(_0x367ffe(0xd3))/0x8)+parseInt(_0x367ffe(0xbd))/0x9+-parseInt(_0x367ffe(0xce))/0xa;if(_0x14b8fa===_0x25a32f)break;else _0xabec0a['push'](_0xabec0a['shift']());}catch(_0x565580){_0xabec0a['push'](_0xabec0a['shift']());}}}(a17_0x12f1,0x5237c));function a17_0x1205(_0x33812a,_0x343449){_0x33812a=_0x33812a-0xba;const _0x12f119=a17_0x12f1();let _0x1205eb=_0x12f119[_0x33812a];return _0x1205eb;}import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a17_0x4f391a(0xc3),'command':'install','description':a17_0x4f391a(0xd1),'risk':a17_0x4f391a(0xbf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2b5022){const _0x57d064=a17_0x4f391a;logger[_0x57d064(0xc5)](process[_0x57d064(0xd6)]()),logger[_0x57d064(0xc7)](_0x57d064(0xcc),_0x57d064(0xc1));const {LOVRABET_SKILL_SOURCE:_0x105022,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x4cff15,runNpxSkillsAddGlobal:_0x104dad}=await import(_0x57d064(0xbe)),_0x4b67e3=_0x2b5022[_0x57d064(0xd2)]?_0x57d064(0xc8):_0x57d064(0xd4);console['log'](_0x57d064(0xd5)+_0x105022+_0x57d064(0xc9));const _0xdfad29=_0x104dad(process[_0x57d064(0xd6)](),_0x105022,{'stdio':_0x4b67e3});if(_0xdfad29[_0x57d064(0xbb)])console[_0x57d064(0xc6)](_0x57d064(0xc4)+_0x4cff15+_0x57d064(0xc2));else{if(_0xdfad29['ok'])console[_0x57d064(0xc6)]('CLI\x20Built-in\x20Skill\x20installed');else throw CliErrors[_0x57d064(0xd9)](_0x57d064(0xbc)+(_0xdfad29[_0x57d064(0xc0)]||_0x57d064(0xba)),_0x57d064(0xcd)+_0x105022+'\x20-g\x20-y');}return{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1d07cd,_0x1058a6){const _0x5e22c9=a18_0x2138,_0x3a1c12=_0x1d07cd();while(!![]){try{const _0x160bed=parseInt(_0x5e22c9(0x107))/0x1+-parseInt(_0x5e22c9(0x117))/0x2+-parseInt(_0x5e22c9(0x113))/0x3+parseInt(_0x5e22c9(0x111))/0x4*(parseInt(_0x5e22c9(0x118))/0x5)+parseInt(_0x5e22c9(0x10a))/0x6+-parseInt(_0x5e22c9(0x115))/0x7+parseInt(_0x5e22c9(0x10d))/0x8*(parseInt(_0x5e22c9(0x10c))/0x9);if(_0x160bed===_0x1058a6)break;else _0x3a1c12['push'](_0x3a1c12['shift']());}catch(_0x4e7c54){_0x3a1c12['push'](_0x3a1c12['shift']());}}}(a18_0x3d56,0x2df20));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';function a18_0x2138(_0x198a28,_0x390cea){_0x198a28=_0x198a28-0x106;const _0x3d5678=a18_0x3d56();let _0x2138af=_0x3d5678[_0x198a28];return _0x2138af;}import{CliErrors}from'../../errors.js';function a18_0x3d56(){const _0x4c1221=['Not\x20inside\x20a\x20project\x20(no\x20','Use\x20only\x20one\x20config\x20scope\x20flag.','396412fyaKjB','newConfigFileName','950499hPAwef','global','644714toAtdi','\x20(global)','73174lWDqpa','10QmGUAs','inProject','328413XzhIlr',',\x20or\x20run\x20`','validation','306582ntnFrL','project-default','486UfLeeK','8296BqhuQf','project'];a18_0x3d56=function(){return _0x4c1221;};return a18_0x3d56();}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(_0x4b4712){const _0x2c9a2e=a18_0x2138,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x96a325}=_0x4b4712;if(explicitGlobal&&explicitProject)throw CliErrors[_0x2c9a2e(0x109)]('Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.',_0x2c9a2e(0x110));if(explicitGlobal)return'global';if(explicitProject)return'project';switch(_0x96a325){case'global-default':return _0x2c9a2e(0x114);case _0x2c9a2e(0x10b):return _0x4b4712[_0x2c9a2e(0x106)]??isInProject()?_0x2c9a2e(0x10e):_0x2c9a2e(0x114);case'project-or-global-explicit':if(!(_0x4b4712[_0x2c9a2e(0x106)]??isInProject()))throw CliErrors['validation'](_0x2c9a2e(0x10f)+PRODUCT_CONFIG[_0x2c9a2e(0x112)]+'\x20found).','Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG[_0x2c9a2e(0x112)]+_0x2c9a2e(0x108)+CLI_BIN_NAME+'\x20init`\x20first.');return _0x2c9a2e(0x10e);}}export function toScopeFlags(_0x76ef3f){return{'global':_0x76ef3f==='global'};}export function formatScopeLabel(_0x210d49){const _0x363635=a18_0x2138;return _0x210d49==='global'?_0x363635(0x116):'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x77d903,_0x5ac140){const _0x5b6ec6=a19_0x1677,_0x5b885f=_0x77d903();while(!![]){try{const _0xd9257f=parseInt(_0x5b6ec6(0xab))/0x1+parseInt(_0x5b6ec6(0xa2))/0x2+parseInt(_0x5b6ec6(0xa0))/0x3+-parseInt(_0x5b6ec6(0xb1))/0x4*(parseInt(_0x5b6ec6(0xb9))/0x5)+-parseInt(_0x5b6ec6(0xb3))/0x6+-parseInt(_0x5b6ec6(0xad))/0x7*(parseInt(_0x5b6ec6(0xa7))/0x8)+-parseInt(_0x5b6ec6(0xb4))/0x9*(parseInt(_0x5b6ec6(0xa3))/0xa);if(_0xd9257f===_0x5ac140)break;else _0x5b885f['push'](_0x5b885f['shift']());}catch(_0x447530){_0x5b885f['push'](_0x5b885f['shift']());}}}(a19_0x248e,0xd2b77));import{CliErrors}from'../../errors.js';function isSet(_0x5571d6,_0x2c621a){const _0x505a2c=a19_0x1677,_0x1939a4=_0x5571d6[_0x505a2c(0xa1)](_0x2c621a);return _0x1939a4!==undefined&&_0x1939a4!==''&&_0x1939a4!==![]&&_0x1939a4!==0x0;}function fmtNames(_0x5e2df1){const _0x210122=a19_0x1677;return _0x5e2df1['map'](_0x5432c3=>'--'+_0x5432c3)[_0x210122(0xaa)](',\x20');}export function requireOneOf(_0x3b8e0b,_0x8b00ff,_0x7de213){const _0x46e455=a19_0x1677,_0x1398f5=_0x8b00ff[_0x46e455(0xb7)](_0x2d8220=>isSet(_0x3b8e0b,_0x2d8220));if(_0x1398f5['length']!==0x1)throw CliErrors[_0x46e455(0xb6)](_0x1398f5[_0x46e455(0x9e)]===0x0?'Exactly\x20one\x20of\x20'+fmtNames(_0x8b00ff)+_0x46e455(0xba)+_0x7de213+'`.':_0x46e455(0xb5)+fmtNames(_0x8b00ff)+_0x46e455(0xa5)+fmtNames(_0x1398f5)+'.',_0x1398f5[_0x46e455(0x9e)]===0x0?'Provide\x20one\x20of:\x20'+fmtNames(_0x8b00ff):_0x46e455(0xa6));}function a19_0x1677(_0x35a065,_0x1081e6){_0x35a065=_0x35a065-0x9e;const _0x248e94=a19_0x248e();let _0x1677c7=_0x248e94[_0x35a065];return _0x1677c7;}function a19_0x248e(){const _0x4e9033=['Provide\x20one\x20of:\x20','\x20is\x20allowed,\x20found:\x20','Remove\x20all\x20but\x20one.','104Mnpvhj','\x20are\x20mutually\x20exclusive\x20for\x20`','str','join','1654599PfbEYV','Invalid\x20--','148946AEPzyt','At\x20least\x20one\x20of\x20',':\x20expected\x20','Flags\x20','4EyTcap',',\x20got\x20\x22','3988320WOIcoO','385839ySNNCR','Only\x20one\x20of\x20','validation','filter','test','2790315jaBaeT','\x20is\x20required\x20for\x20`','length','some','3093585LmHnpU','flag','2611592ZRaHbh','380ILjqYh'];a19_0x248e=function(){return _0x4e9033;};return a19_0x248e();}export function requireAnyOf(_0x454fe1,_0x3f7463,_0x26fc4c){const _0x541f61=a19_0x1677;if(!_0x3f7463[_0x541f61(0x9f)](_0x44ee22=>isSet(_0x454fe1,_0x44ee22)))throw CliErrors['validation'](_0x541f61(0xae)+fmtNames(_0x3f7463)+'\x20is\x20required\x20for\x20`'+_0x26fc4c+'`.',_0x541f61(0xa4)+fmtNames(_0x3f7463));}export function mutuallyExclusive(_0x2250a2,_0x217db6,_0xdff59c){const _0x672ef0=a19_0x1677,_0x21fc88=_0x217db6[_0x672ef0(0xb7)](_0x3f2fca=>isSet(_0x2250a2,_0x3f2fca));if(_0x21fc88[_0x672ef0(0x9e)]>0x1)throw CliErrors[_0x672ef0(0xb6)](_0x672ef0(0xb0)+fmtNames(_0x21fc88)+_0x672ef0(0xa8)+_0xdff59c+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x217db6));}export function validatePattern(_0x4bec2c,_0x17283a,_0x8fd2be,_0x5bfda2){const _0x22e326=a19_0x1677,_0xe0e0d7=_0x4bec2c[_0x22e326(0xa9)](_0x17283a);if(_0xe0e0d7&&!_0x8fd2be[_0x22e326(0xb8)](_0xe0e0d7))throw CliErrors[_0x22e326(0xb6)](_0x22e326(0xac)+_0x17283a+_0x22e326(0xaf)+_0x5bfda2+_0x22e326(0xb2)+_0xe0e0d7+'\x22.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x592685=a20_0x53c8;function a20_0x3359(){const _0x1e28dd=['1442820YGRNKk','3939220goNiNV','369ruSEmr','boolean','code','Resource\x20name\x20for\x20lookup','7GLDNLp','1058087WhgUUr','279568CDexaN','751248VdGcto','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','Resource\x20ID','Return\x20full\x20raw\x20response\x20object','9308766PmrIar','sqlcode','verbose','name','1609328ZdJntd','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','Dataset\x20code\x20(32-char\x20hex\x20UUID)','string'];a20_0x3359=function(){return _0x1e28dd;};return a20_0x3359();}function a20_0x53c8(_0x7ca53e,_0x502d34){_0x7ca53e=_0x7ca53e-0xed;const _0x3359d5=a20_0x3359();let _0x53c89c=_0x3359d5[_0x7ca53e];return _0x53c89c;}(function(_0x55ba24,_0xc0ced6){const _0x57480f=a20_0x53c8,_0x12a201=_0x55ba24();while(!![]){try{const _0x4f8134=-parseInt(_0x57480f(0xfb))/0x1+parseInt(_0x57480f(0xf0))/0x2+parseInt(_0x57480f(0xfd))/0x3+parseInt(_0x57480f(0xf5))/0x4+-parseInt(_0x57480f(0xf4))/0x5+parseInt(_0x57480f(0x101))/0x6*(parseInt(_0x57480f(0xfa))/0x7)+parseInt(_0x57480f(0xfc))/0x8*(-parseInt(_0x57480f(0xf6))/0x9);if(_0x4f8134===_0xc0ced6)break;else _0x12a201['push'](_0x12a201['shift']());}catch(_0xff9983){_0x12a201['push'](_0x12a201['shift']());}}}(a20_0x3359,0xc6385));export const CODE_FLAG={'name':a20_0x592685(0xf8),'type':'string','required':!![],'description':a20_0x592685(0xf2),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};export const SQLCODE_FLAG={'name':a20_0x592685(0xed),'type':a20_0x592685(0xf3),'required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0x592685(0xf1)}};export const VERBOSE_FLAG={'name':a20_0x592685(0xee),'type':a20_0x592685(0xf7),'description':a20_0x592685(0x100)};export const PARAMS_FLAG={'name':'params','type':'string','description':a20_0x592685(0xfe)};export const NAME_FLAG={'name':a20_0x592685(0xef),'type':a20_0x592685(0xf3),'description':a20_0x592685(0xf9)};export const ID_FLAG={'name':'id','type':'number','required':!![],'description':a20_0x592685(0xff)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5d802a,_0x34df18){const _0x49b476=a21_0x4fe0,_0x3df069=_0x5d802a();while(!![]){try{const _0x3f6a85=parseInt(_0x49b476(0x19e))/0x1*(parseInt(_0x49b476(0x1a3))/0x2)+-parseInt(_0x49b476(0x1a8))/0x3+parseInt(_0x49b476(0x1a6))/0x4*(parseInt(_0x49b476(0x1a1))/0x5)+parseInt(_0x49b476(0x1ac))/0x6+parseInt(_0x49b476(0x1a0))/0x7+parseInt(_0x49b476(0x1a5))/0x8+-parseInt(_0x49b476(0x1a2))/0x9*(parseInt(_0x49b476(0x1a7))/0xa);if(_0x3f6a85===_0x34df18)break;else _0x3df069['push'](_0x3df069['shift']());}catch(_0x4216b7){_0x3df069['push'](_0x3df069['shift']());}}}(a21_0x44c4,0x969ca));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;function a21_0x4fe0(_0x350ca5,_0x5403be){_0x350ca5=_0x350ca5-0x19b;const _0x44c439=a21_0x44c4();let _0x4fe0c5=_0x44c439[_0x350ca5];return _0x4fe0c5;}export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function a21_0x44c4(){const _0x3ca91f=['\x20path\x20is\x20required.','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','File\x20is\x20not\x20a\x20regular\x20file:\x20','2KecJMr','ceil','8247911VtsBCj','684730MlBRwm','9ZGzzlL','984058bIaSKr','toFixed','4026048pxtvfi','4QylWEd','30441710mZitSV','1052901MSlmEi','size','trim','\x20MB','7257066GZsFlR','isFile','validation'];a21_0x44c4=function(){return _0x3ca91f;};return a21_0x44c4();}function formatBytes(_0x1814d3){const _0x26a083=a21_0x4fe0;if(_0x1814d3>=BYTES_PER_MB){const _0x11492c=Math[_0x26a083(0x19f)](_0x1814d3/BYTES_PER_MB*0x64)/0x64;return _0x11492c[_0x26a083(0x1a4)](0x2)+_0x26a083(0x1ab);}return _0x1814d3+'\x20B';}export function requireRuntimeUploadFile(_0x429463,_0x375d68){const _0x904f78=a21_0x4fe0,_0x2e495f=_0x429463[_0x904f78(0x1aa)]();if(!_0x2e495f)throw CliErrors[_0x904f78(0x1ae)](_0x375d68+_0x904f78(0x19b));if(!existsSync(_0x2e495f))throw CliErrors['validation']('File\x20not\x20found:\x20'+_0x2e495f);const _0x1fd2ab=statSync(_0x2e495f);if(!_0x1fd2ab[_0x904f78(0x1ad)]())throw CliErrors['validation'](_0x904f78(0x19d)+_0x2e495f);if(_0x1fd2ab[_0x904f78(0x1a9)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x904f78(0x1ae)](_0x904f78(0x19c)+_0x2e495f+'\x20('+formatBytes(_0x1fd2ab['size'])+')');return{'path':_0x2e495f,'size':_0x1fd2ab['size']};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a22_0x58544c=a22_0x534e;function a22_0x534e(_0xbc77b8,_0x464dc8){_0xbc77b8=_0xbc77b8-0xf4;const _0x145184=a22_0x1451();let _0x534eb6=_0x145184[_0xbc77b8];return _0x534eb6;}(function(_0x329157,_0x248f4f){const _0x329f51=a22_0x534e,_0x2c1e38=_0x329157();while(!![]){try{const _0x3944d2=-parseInt(_0x329f51(0x116))/0x1*(-parseInt(_0x329f51(0x112))/0x2)+parseInt(_0x329f51(0x128))/0x3+parseInt(_0x329f51(0x107))/0x4*(parseInt(_0x329f51(0x117))/0x5)+parseInt(_0x329f51(0xfa))/0x6+parseInt(_0x329f51(0xf7))/0x7+parseInt(_0x329f51(0x124))/0x8*(-parseInt(_0x329f51(0x113))/0x9)+-parseInt(_0x329f51(0x100))/0xa;if(_0x3944d2===_0x248f4f)break;else _0x2c1e38['push'](_0x2c1e38['shift']());}catch(_0xb3e85b){_0x2c1e38['push'](_0x2c1e38['shift']());}}}(a22_0x1451,0xe9336));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_0x58544c(0x130),'type':a22_0x58544c(0x111),'description':'Write\x20to\x20global\x20config','default':![]};function parseAliasAppcodeSetKey(_0x45b3b6){const _0x560669=a22_0x58544c,_0x170730=_0x45b3b6[_0x560669(0x12a)]('.');if(_0x170730[_0x560669(0xf9)]!==0x3||_0x170730[0x0]!==_0x560669(0x10f)||_0x170730[0x2]!==_0x560669(0x110))return undefined;const _0x502292=_0x170730[0x1]?.[_0x560669(0xf6)]();return _0x502292?_0x502292:undefined;}function parseAliasDeleteKey(_0x2aee9c){const _0x4efb4f=a22_0x58544c,_0x5855de=_0x2aee9c['split']('.');if(_0x5855de[_0x4efb4f(0xf9)]===0x2&&_0x5855de[0x0]===_0x4efb4f(0x10f)){const _0x34a86c=_0x5855de[0x1]?.[_0x4efb4f(0xf6)]();return _0x34a86c?{'alias':_0x34a86c}:undefined;}if(_0x5855de[_0x4efb4f(0xf9)]===0x3&&_0x5855de[0x0]===_0x4efb4f(0x10f)&&_0x5855de[0x2]===_0x4efb4f(0x110)){const _0x50b15a=_0x5855de[0x1]?.[_0x4efb4f(0xf6)]();return _0x50b15a?{'alias':_0x50b15a,'field':_0x4efb4f(0x110)}:undefined;}return undefined;}function setLocalAppAlias(_0x15aeda,_0x5dceb5,_0x5926c7){const _0xb33c53=a22_0x58544c,_0xfb223b=_0x15aeda[_0xb33c53(0x10f)]&&typeof _0x15aeda[_0xb33c53(0x10f)]===_0xb33c53(0x118)&&!Array[_0xb33c53(0xfe)](_0x15aeda['apps'])?_0x15aeda[_0xb33c53(0x10f)]:{},_0x4fc473=_0xfb223b[_0x5dceb5]&&typeof _0xfb223b[_0x5dceb5]==='object'&&!Array[_0xb33c53(0xfe)](_0xfb223b[_0x5dceb5])?_0xfb223b[_0x5dceb5]:{};_0x4fc473['appcode']=_0x5926c7,_0xfb223b[_0x5dceb5]=_0x4fc473,_0x15aeda[_0xb33c53(0x10f)]=_0xfb223b;}function deleteLocalAppAlias(_0x16d5d3,_0x99b65){const _0x18741a=a22_0x58544c;if(!_0x16d5d3['apps']||typeof _0x16d5d3[_0x18741a(0x10f)]!=='object'||Array[_0x18741a(0xfe)](_0x16d5d3[_0x18741a(0x10f)]))return![];const _0x1d3e3b=_0x16d5d3['apps'],_0x148e7c=_0x1d3e3b[_0x99b65[_0x18741a(0xfb)]];if(!_0x148e7c||typeof _0x148e7c!==_0x18741a(0x118)||Array['isArray'](_0x148e7c))return![];if(!_0x99b65[_0x18741a(0x103)])return delete _0x1d3e3b[_0x99b65['alias']],!![];if(!(_0x99b65[_0x18741a(0x103)]in _0x148e7c))return![];return delete _0x148e7c[_0x99b65[_0x18741a(0x103)]],Object[_0x18741a(0xf8)](_0x148e7c)[_0x18741a(0xf9)]===0x0&&delete _0x1d3e3b[_0x99b65[_0x18741a(0xfb)]],!![];}const listDef={'service':a22_0x58544c(0x11b),'command':a22_0x58544c(0x108),'description':'List\x20current\x20config','risk':a22_0x58544c(0x12f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x5317fa){const _0x2ce321=a22_0x58544c,{buildConfigFromFlags:_0x386185}=await import(_0x2ce321(0x121)),_0x5249c0=_0x386185({}),_0x15b298=getProjectConfigPath(),_0x2a385a=resolveWriteConfigPath(_0x2ce321(0x130));if(_0x5317fa[_0x2ce321(0xfc)]==='pretty')return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON[_0x2ce321(0xfd)](_0x5249c0['raw'],null,0x2)+'\x0a\x0a')+_0x2ce321(0x10a)+(_0x2ce321(0x105)+(_0x15b298??_0x2ce321(0x115))+'\x0a')+('\x20\x20global:\x20\x20'+_0x2a385a)};return{'ok':!![],'data':{'effective':_0x5249c0[_0x2ce321(0x126)],'configFiles':{'project':_0x15b298??null,'global':_0x2a385a}}};}},getDef={'service':a22_0x58544c(0x11b),'command':a22_0x58544c(0x104),'description':'Get\x20a\x20config\x20value','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x58544c(0xf5),'description':a22_0x58544c(0x10e),'required':!![]}],'flags':[],async 'execute'(_0x586b79){const _0x1079ec=a22_0x58544c,_0x29737c=_0x586b79[_0x1079ec(0x106)][0x0];if(!_0x29737c)throw CliErrors['validation'](_0x1079ec(0x101),_0x1079ec(0x122)+CLI_BIN_NAME+_0x1079ec(0x10b));const {buildConfigFromFlags:_0x1e54f2}=await import(_0x1079ec(0x121)),{raw:_0x5e503d}=_0x1e54f2({});if(_0x29737c['includes']('.')){const _0x562442=_0x29737c[_0x1079ec(0x12a)]('.');let _0xa42090=_0x5e503d;for(const _0x536323 of _0x562442){if(_0xa42090==null||typeof _0xa42090!==_0x1079ec(0x118))throw CliErrors['validation'](_0x1079ec(0x127)+_0x29737c);_0xa42090=_0xa42090[_0x536323];}if(_0xa42090===undefined)throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x29737c);return console[_0x1079ec(0x11d)](typeof _0xa42090===_0x1079ec(0x118)?JSON[_0x1079ec(0xfd)](_0xa42090,null,0x2):String(_0xa42090)),{'ok':!![]};}const _0x12ed5d=_0x5e503d[_0x29737c];if(_0x12ed5d===undefined)throw CliErrors[_0x1079ec(0x12e)]('Key\x20not\x20found:\x20'+_0x29737c);return console['log'](typeof _0x12ed5d==='object'?JSON['stringify'](_0x12ed5d,null,0x2):String(_0x12ed5d)),{'ok':!![]};}},setDef={'service':a22_0x58544c(0x11b),'command':a22_0x58544c(0x12d),'description':a22_0x58544c(0x129),'risk':a22_0x58544c(0x11e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x58544c(0x132),'description':a22_0x58544c(0x102),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x3db958){const _0x5858f4=a22_0x58544c,_0xa990b=_0x3db958[_0x5858f4(0x106)][0x0],_0x55930e=_0x3db958[_0x5858f4(0x106)][0x1];if(!_0xa990b||_0x55930e===undefined)throw CliErrors[_0x5858f4(0x12e)](_0x5858f4(0x131),_0x5858f4(0x122)+CLI_BIN_NAME+_0x5858f4(0xf4));if(ENUM_KEYS[_0xa990b]&&!ENUM_KEYS[_0xa990b]['includes'](_0x55930e))throw CliErrors[_0x5858f4(0x12e)]('Invalid\x20value\x20for\x20\x22'+_0xa990b+_0x5858f4(0x11a)+ENUM_KEYS[_0xa990b][_0x5858f4(0x125)](',\x20'));if(_0xa990b===_0x5858f4(0x114))throw CliErrors[_0x5858f4(0x12e)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(_0xa990b===_0x5858f4(0x11c)){const _0x106acf=Number(_0x55930e);if(isNaN(_0x106acf)||_0x106acf<=0x0)throw CliErrors[_0x5858f4(0x12e)](_0x5858f4(0x120));}const _0x56c37c=resolveWriteScope({'explicitGlobal':_0x3db958[_0x5858f4(0x119)]('global'),'policy':'project-or-global-explicit'}),_0x5e74a0=toScopeFlags(_0x56c37c),_0x72db8f=readScopedConfig(_0x5e74a0),_0x6900a6=parseAliasAppcodeSetKey(_0xa990b);if(!_0x6900a6&&!isTopLevelConfigKey(_0xa990b))throw CliErrors[_0x5858f4(0x12e)]('Top-level\x20key\x20\x22'+_0xa990b+_0x5858f4(0x10d),_0x5858f4(0x12b)+getTopLevelConfigKeySummary()+';\x20apps.<alias>.appcode');return _0x6900a6?setLocalAppAlias(_0x72db8f,_0x6900a6,_0x55930e):_0x72db8f[_0xa990b]=_0xa990b==='pageSize'?Number(_0x55930e):_0x55930e,console[_0x5858f4(0x11d)](_0x5858f4(0xff)+_0xa990b+'`\x20=\x20\x22'+_0x55930e+'\x22'+(_0x56c37c===_0x5858f4(0x130)?'\x20(global)':'')),writeScopedConfig(_0x72db8f,_0x5e74a0),{'ok':!![]};}},deleteDef={'service':a22_0x58544c(0x11b),'command':a22_0x58544c(0x10c),'description':'Delete\x20a\x20config\x20value','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x58544c(0xf5),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x586d61){const _0x404b5d=a22_0x58544c,_0x1154e6=_0x586d61[_0x404b5d(0x106)][0x0];if(!_0x1154e6)throw CliErrors[_0x404b5d(0x12e)](_0x404b5d(0x101),_0x404b5d(0x122)+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x42060f=resolveWriteScope({'explicitGlobal':_0x586d61['bool'](_0x404b5d(0x130)),'policy':_0x404b5d(0x11f)}),_0x2afbb9=toScopeFlags(_0x42060f),_0x1e0bfc=readScopedConfig(_0x2afbb9),_0x5a8a18=parseAliasDeleteKey(_0x1154e6);if(_0x5a8a18){if(!deleteLocalAppAlias(_0x1e0bfc,_0x5a8a18))throw CliErrors[_0x404b5d(0x12e)]('Key\x20not\x20found:\x20'+_0x1154e6);return console['log'](_0x404b5d(0x12c)+_0x1154e6+'`'+(_0x42060f===_0x404b5d(0x130)?_0x404b5d(0x123):'')),writeScopedConfig(_0x1e0bfc,_0x2afbb9),{'ok':!![]};}if(_0x1e0bfc[_0x1154e6]===undefined)throw CliErrors[_0x404b5d(0x12e)]('Key\x20\x22'+_0x1154e6+_0x404b5d(0x109));return delete _0x1e0bfc[_0x1154e6],console[_0x404b5d(0x11d)](_0x404b5d(0x12c)+_0x1154e6+'`'+(_0x42060f==='global'?_0x404b5d(0x123):'')),writeScopedConfig(_0x1e0bfc,_0x2afbb9),{'ok':!![]};}};function a22_0x1451(){const _0x1abeca=['Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','apps','appcode','boolean','456206gnTCat','653553fnVVwn','riskLevel','(none)','8HwCVMn','5EEseHL','object','bool','\x22.\x20Allowed:\x20','config','pageSize','log','write','project-or-global-explicit','pageSize\x20must\x20be\x20a\x20positive\x20number','../../context.js','Usage:\x20','\x20(global)','80SZDVDV','join','raw','Key\x20not\x20found:\x20','583695jAXPgs','Set\x20a\x20config\x20value','split','Settable\x20keys:\x20','Deleted\x20`','set','validation','read','global','Missing\x20key\x20or\x20value.','value','\x20config\x20set\x20<key>\x20<value>\x20[--global]','key','trim','8161461VagZnn','keys','length','2553288cXsFhx','alias','format','stringify','isArray','Set\x20`','22394430mMmvda','Missing\x20key\x20argument.','Value\x20to\x20assign','field','get','\x20\x20project:\x20','args','1239772oDDpVX','list','\x22\x20not\x20found\x20at\x20top\x20level.','Config\x20files:\x0a','\x20config\x20get\x20<key>','delete','\x22\x20is\x20not\x20settable.'];a22_0x1451=function(){return _0x1abeca;};return a22_0x1451();}export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
1
|
+
const a22_0x16b394=a22_0xd224;function a22_0x3307(){const _0x30e796=['`\x20=\x20\x22','list','Invalid\x20value\x20for\x20\x22','\x20config\x20set\x20<key>\x20<value>\x20[--global]','\x20config\x20get\x20<key>','stringify','value','../../context.js','riskLevel','raw','5254551hRUstE','config','trim','Value\x20to\x20assign','global','Key\x20not\x20found:\x20','Key\x20\x22','(none)','isArray','1938936FuiyTy','args','validation','\x22\x20not\x20found\x20at\x20top\x20level.','apps','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','\x20(global)',';\x20apps.<alias>.appcode','Missing\x20key\x20argument.','key','Get\x20a\x20config\x20value','field','bool','Write\x20to\x20global\x20config','project-or-global-explicit','Config\x20files:\x0a','10IJDdZv','\x20\x20project:\x20','Set\x20a\x20config\x20value','1484620OmSDSY','Delete\x20a\x20config\x20value','includes','1468qpujup','423688VKZQjf','\x22\x20is\x20not\x20settable.','boolean','pageSize\x20must\x20be\x20a\x20positive\x20number','List\x20current\x20config','Usage:\x20','split','get','length','format','appcode','alias','225837DKGqzM','7TuVXjD','log','3IbsxDW','81356basqVy','read','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','pageSize','object','write','Settable\x20keys:\x20','\x20\x20global:\x20\x20'];a22_0x3307=function(){return _0x30e796;};return a22_0x3307();}(function(_0x4a3627,_0x33fdd5){const _0xf2f552=a22_0xd224,_0x38e2fa=_0x4a3627();while(!![]){try{const _0x3b3504=parseInt(_0xf2f552(0x1ff))/0x1+parseInt(_0xf2f552(0x203))/0x2+parseInt(_0xf2f552(0x202))/0x3*(-parseInt(_0xf2f552(0x1f2))/0x4)+parseInt(_0xf2f552(0x1ef))/0x5+-parseInt(_0xf2f552(0x21e))/0x6*(-parseInt(_0xf2f552(0x200))/0x7)+-parseInt(_0xf2f552(0x1f3))/0x8+parseInt(_0xf2f552(0x215))/0x9*(-parseInt(_0xf2f552(0x1ec))/0xa);if(_0x3b3504===_0x33fdd5)break;else _0x38e2fa['push'](_0x38e2fa['shift']());}catch(_0x256213){_0x38e2fa['push'](_0x38e2fa['shift']());}}}(a22_0x3307,0x3ce54));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_0x16b394(0x219),'type':a22_0x16b394(0x1f5),'description':a22_0x16b394(0x1e9),'default':![]};function parseAliasAppcodeSetKey(_0x25f10d){const _0x1b4fd5=a22_0x16b394,_0x5a77a8=_0x25f10d[_0x1b4fd5(0x1f9)]('.');if(_0x5a77a8[_0x1b4fd5(0x1fb)]!==0x3||_0x5a77a8[0x0]!==_0x1b4fd5(0x222)||_0x5a77a8[0x2]!==_0x1b4fd5(0x1fd))return undefined;const _0x372c80=_0x5a77a8[0x1]?.[_0x1b4fd5(0x217)]();return _0x372c80?_0x372c80:undefined;}function parseAliasDeleteKey(_0x223e19){const _0x174ead=a22_0x16b394,_0x128044=_0x223e19[_0x174ead(0x1f9)]('.');if(_0x128044[_0x174ead(0x1fb)]===0x2&&_0x128044[0x0]===_0x174ead(0x222)){const _0x3aca25=_0x128044[0x1]?.[_0x174ead(0x217)]();return _0x3aca25?{'alias':_0x3aca25}:undefined;}if(_0x128044[_0x174ead(0x1fb)]===0x3&&_0x128044[0x0]===_0x174ead(0x222)&&_0x128044[0x2]===_0x174ead(0x1fd)){const _0x4c8b19=_0x128044[0x1]?.[_0x174ead(0x217)]();return _0x4c8b19?{'alias':_0x4c8b19,'field':_0x174ead(0x1fd)}:undefined;}return undefined;}function setLocalAppAlias(_0x5ac894,_0x20413f,_0x107753){const _0x3f7912=a22_0x16b394,_0x30c29b=_0x5ac894[_0x3f7912(0x222)]&&typeof _0x5ac894[_0x3f7912(0x222)]===_0x3f7912(0x207)&&!Array[_0x3f7912(0x21d)](_0x5ac894['apps'])?_0x5ac894[_0x3f7912(0x222)]:{},_0x8f3eac=_0x30c29b[_0x20413f]&&typeof _0x30c29b[_0x20413f]===_0x3f7912(0x207)&&!Array[_0x3f7912(0x21d)](_0x30c29b[_0x20413f])?_0x30c29b[_0x20413f]:{};_0x8f3eac[_0x3f7912(0x1fd)]=_0x107753,_0x30c29b[_0x20413f]=_0x8f3eac,_0x5ac894[_0x3f7912(0x222)]=_0x30c29b;}function a22_0xd224(_0x39d4ac,_0x3a8472){_0x39d4ac=_0x39d4ac-0x1e6;const _0x330782=a22_0x3307();let _0xd2242a=_0x330782[_0x39d4ac];return _0xd2242a;}function deleteLocalAppAlias(_0x2db0c2,_0x4c251d){const _0x2d8f42=a22_0x16b394;if(!_0x2db0c2[_0x2d8f42(0x222)]||typeof _0x2db0c2[_0x2d8f42(0x222)]!==_0x2d8f42(0x207)||Array[_0x2d8f42(0x21d)](_0x2db0c2['apps']))return![];const _0x475d7e=_0x2db0c2[_0x2d8f42(0x222)],_0x23c28b=_0x475d7e[_0x4c251d[_0x2d8f42(0x1fe)]];if(!_0x23c28b||typeof _0x23c28b!=='object'||Array[_0x2d8f42(0x21d)](_0x23c28b))return![];if(!_0x4c251d[_0x2d8f42(0x1e7)])return delete _0x475d7e[_0x4c251d[_0x2d8f42(0x1fe)]],!![];if(!(_0x4c251d[_0x2d8f42(0x1e7)]in _0x23c28b))return![];return delete _0x23c28b[_0x4c251d['field']],Object['keys'](_0x23c28b)['length']===0x0&&delete _0x475d7e[_0x4c251d[_0x2d8f42(0x1fe)]],!![];}const listDef={'service':a22_0x16b394(0x216),'command':a22_0x16b394(0x20c),'description':a22_0x16b394(0x1f7),'risk':a22_0x16b394(0x204),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x6e571b){const _0x24dfc1=a22_0x16b394,{buildConfigFromFlags:_0x42a8ae}=await import(_0x24dfc1(0x212)),_0x40f8b6=_0x42a8ae({}),_0x1f8e3c=getProjectConfigPath(),_0x3ce6aa=resolveWriteConfigPath(_0x24dfc1(0x219));if(_0x6e571b[_0x24dfc1(0x1fc)]==='pretty')return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON['stringify'](_0x40f8b6[_0x24dfc1(0x214)],null,0x2)+'\x0a\x0a')+_0x24dfc1(0x1eb)+(_0x24dfc1(0x1ed)+(_0x1f8e3c??_0x24dfc1(0x21c))+'\x0a')+(_0x24dfc1(0x20a)+_0x3ce6aa)};return{'ok':!![],'data':{'effective':_0x40f8b6[_0x24dfc1(0x214)],'configFiles':{'project':_0x1f8e3c??null,'global':_0x3ce6aa}}};}},getDef={'service':a22_0x16b394(0x216),'command':a22_0x16b394(0x1fa),'description':a22_0x16b394(0x1e6),'risk':a22_0x16b394(0x204),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x16b394(0x227),'description':a22_0x16b394(0x205),'required':!![]}],'flags':[],async 'execute'(_0x1255bd){const _0x42aae6=a22_0x16b394,_0x42b3fd=_0x1255bd['args'][0x0];if(!_0x42b3fd)throw CliErrors['validation'](_0x42aae6(0x226),'Usage:\x20'+CLI_BIN_NAME+_0x42aae6(0x20f));const {buildConfigFromFlags:_0x254105}=await import(_0x42aae6(0x212)),{raw:_0x445b25}=_0x254105({});if(_0x42b3fd[_0x42aae6(0x1f1)]('.')){const _0x49a993=_0x42b3fd[_0x42aae6(0x1f9)]('.');let _0x3a46f5=_0x445b25;for(const _0x35e6ff of _0x49a993){if(_0x3a46f5==null||typeof _0x3a46f5!=='object')throw CliErrors[_0x42aae6(0x220)](_0x42aae6(0x21a)+_0x42b3fd);_0x3a46f5=_0x3a46f5[_0x35e6ff];}if(_0x3a46f5===undefined)throw CliErrors[_0x42aae6(0x220)]('Key\x20not\x20found:\x20'+_0x42b3fd);return console['log'](typeof _0x3a46f5==='object'?JSON[_0x42aae6(0x210)](_0x3a46f5,null,0x2):String(_0x3a46f5)),{'ok':!![]};}const _0x40852b=_0x445b25[_0x42b3fd];if(_0x40852b===undefined)throw CliErrors[_0x42aae6(0x220)](_0x42aae6(0x21a)+_0x42b3fd);return console[_0x42aae6(0x201)](typeof _0x40852b===_0x42aae6(0x207)?JSON['stringify'](_0x40852b,null,0x2):String(_0x40852b)),{'ok':!![]};}},setDef={'service':a22_0x16b394(0x216),'command':'set','description':a22_0x16b394(0x1ee),'risk':a22_0x16b394(0x208),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a22_0x16b394(0x211),'description':a22_0x16b394(0x218),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x493d15){const _0xaadf49=a22_0x16b394,_0x5e88af=_0x493d15[_0xaadf49(0x21f)][0x0],_0x3e2aa5=_0x493d15[_0xaadf49(0x21f)][0x1];if(!_0x5e88af||_0x3e2aa5===undefined)throw CliErrors[_0xaadf49(0x220)]('Missing\x20key\x20or\x20value.',_0xaadf49(0x1f8)+CLI_BIN_NAME+_0xaadf49(0x20e));if(ENUM_KEYS[_0x5e88af]&&!ENUM_KEYS[_0x5e88af][_0xaadf49(0x1f1)](_0x3e2aa5))throw CliErrors[_0xaadf49(0x220)](_0xaadf49(0x20d)+_0x5e88af+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x5e88af]['join'](',\x20'));if(_0x5e88af===_0xaadf49(0x213))throw CliErrors[_0xaadf49(0x220)](_0xaadf49(0x223));if(_0x5e88af===_0xaadf49(0x206)){const _0x3d8070=Number(_0x3e2aa5);if(isNaN(_0x3d8070)||_0x3d8070<=0x0)throw CliErrors[_0xaadf49(0x220)](_0xaadf49(0x1f6));}const _0x58e842=resolveWriteScope({'explicitGlobal':_0x493d15[_0xaadf49(0x1e8)](_0xaadf49(0x219)),'policy':_0xaadf49(0x1ea)}),_0x33f929=toScopeFlags(_0x58e842),_0x25c28e=readScopedConfig(_0x33f929),_0x3def95=parseAliasAppcodeSetKey(_0x5e88af);if(!_0x3def95&&!isTopLevelConfigKey(_0x5e88af))throw CliErrors[_0xaadf49(0x220)]('Top-level\x20key\x20\x22'+_0x5e88af+_0xaadf49(0x1f4),_0xaadf49(0x209)+getTopLevelConfigKeySummary()+_0xaadf49(0x225));return _0x3def95?setLocalAppAlias(_0x25c28e,_0x3def95,_0x3e2aa5):_0x25c28e[_0x5e88af]=_0x5e88af===_0xaadf49(0x206)?Number(_0x3e2aa5):_0x3e2aa5,console[_0xaadf49(0x201)]('Set\x20`'+_0x5e88af+_0xaadf49(0x20b)+_0x3e2aa5+'\x22'+(_0x58e842===_0xaadf49(0x219)?'\x20(global)':'')),writeScopedConfig(_0x25c28e,_0x33f929),{'ok':!![]};}},deleteDef={'service':a22_0x16b394(0x216),'command':'delete','description':a22_0x16b394(0x1f0),'risk':a22_0x16b394(0x208),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x16b394(0x227),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x3c5137){const _0x134c88=a22_0x16b394,_0x3c42a0=_0x3c5137[_0x134c88(0x21f)][0x0];if(!_0x3c42a0)throw CliErrors[_0x134c88(0x220)](_0x134c88(0x226),_0x134c88(0x1f8)+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');const _0x344415=resolveWriteScope({'explicitGlobal':_0x3c5137[_0x134c88(0x1e8)](_0x134c88(0x219)),'policy':_0x134c88(0x1ea)}),_0x1bfac2=toScopeFlags(_0x344415),_0x355dec=readScopedConfig(_0x1bfac2),_0x5911ba=parseAliasDeleteKey(_0x3c42a0);if(_0x5911ba){if(!deleteLocalAppAlias(_0x355dec,_0x5911ba))throw CliErrors[_0x134c88(0x220)](_0x134c88(0x21a)+_0x3c42a0);return console[_0x134c88(0x201)]('Deleted\x20`'+_0x3c42a0+'`'+(_0x344415==='global'?_0x134c88(0x224):'')),writeScopedConfig(_0x355dec,_0x1bfac2),{'ok':!![]};}if(_0x355dec[_0x3c42a0]===undefined)throw CliErrors[_0x134c88(0x220)](_0x134c88(0x21b)+_0x3c42a0+_0x134c88(0x221));return delete _0x355dec[_0x3c42a0],console['log']('Deleted\x20`'+_0x3c42a0+'`'+(_0x344415===_0x134c88(0x219)?'\x20(global)':'')),writeScopedConfig(_0x355dec,_0x1bfac2),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a23_0x26f2(){var _0x1aae30=['8viwCTj','715548AAZjph','181702PQyTXW','158312dskQpV','1771626oEbYqq','3020PjzAgl','7326Pgojie','1955534VxpFpf','5bbzfwQ','4224319eZsuES','12ABEeOU','3rTCDQI'];a23_0x26f2=function(){return _0x1aae30;};return a23_0x26f2();}(function(_0x2c2bed,_0x50bfc0){var _0x239d34=a23_0x1149,_0x562a57=_0x2c2bed();while(!![]){try{var _0x1821f2=parseInt(_0x239d34(0xff))/0x1*(-parseInt(_0x239d34(0x102))/0x2)+-parseInt(_0x239d34(0x101))/0x3+-parseInt(_0x239d34(0x103))/0x4+-parseInt(_0x239d34(0xfc))/0x5*(-parseInt(_0x239d34(0xf8))/0x6)+parseInt(_0x239d34(0xfb))/0x7*(parseInt(_0x239d34(0x100))/0x8)+parseInt(_0x239d34(0xfa))/0x9*(-parseInt(_0x239d34(0xf9))/0xa)+-parseInt(_0x239d34(0xfd))/0xb*(-parseInt(_0x239d34(0xfe))/0xc);if(_0x1821f2===_0x50bfc0)break;else _0x562a57['push'](_0x562a57['shift']());}catch(_0x5c42bd){_0x562a57['push'](_0x562a57['shift']());}}}(a23_0x26f2,0x2798b));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};function a23_0x1149(_0x5a1e43,_0x234612){_0x5a1e43=_0x5a1e43-0xf8;var _0x26f280=a23_0x26f2();var _0x1149a9=_0x26f280[_0x5a1e43];return _0x1149a9;}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_0x1be370=a24_0xb99e;(function(_0x4ce548,_0x388d5f){const _0x53c0ee=a24_0xb99e,_0x204c7f=_0x4ce548();while(!![]){try{const _0x5f4274=parseInt(_0x53c0ee(0x1b4))/0x1*(-parseInt(_0x53c0ee(0x1b0))/0x2)+-parseInt(_0x53c0ee(0x19f))/0x3+-parseInt(_0x53c0ee(0x182))/0x4+parseInt(_0x53c0ee(0x1d2))/0x5*(-parseInt(_0x53c0ee(0x198))/0x6)+parseInt(_0x53c0ee(0x1c5))/0x7*(parseInt(_0x53c0ee(0x17e))/0x8)+-parseInt(_0x53c0ee(0x1c0))/0x9*(parseInt(_0x53c0ee(0x199))/0xa)+parseInt(_0x53c0ee(0x1c8))/0xb;if(_0x5f4274===_0x388d5f)break;else _0x204c7f['push'](_0x204c7f['shift']());}catch(_0x7377f6){_0x204c7f['push'](_0x204c7f['shift']());}}}(a24_0x2923,0x1cdb4));import{executeData}from'../../core/sdk-client.js';function a24_0x2923(){const _0x1b3b1b=['\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','join','170105tpuGis','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20AGGREGATE\x20TYPES','\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}}','\x20on\x20dataset\x20','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','now','\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}}','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','521334tqBQgy','length','write','\x20\x20PARAMS\x20STRUCTURE','\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]}}','1367709JpYkPt','risk','batch','6465822FscMEq','\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\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}}','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','data\x20','\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}}]}','/api/{appCode}/','paramsRequired','25CxCEHo','Preview:\x20data\x20','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','\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\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','update','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','8GeSyiO','\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}}','create','\x20\x20LOGICAL\x20COMBINATORS','250328BnnxSY','aggregate','\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\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','Update\x20an\x20existing\x20record','\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}}','params','operation','body','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20$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}}','delete','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','\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\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\x20PAGINATION','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','build','command','89814MRhvlq','40RsSrEq','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','data','read','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','377271QfRyRc','map','filter','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\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}','description','\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\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\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','dryRun','POST','batchCreate','str','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','code','getOne','2iUaNJY','\x20\x20WHERE\x20OPERATORS'];a24_0x2923=function(){return _0x1b3b1b;};return a24_0x2923();}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_0x1be370(0x1a1),'operation':a24_0x1be370(0x1a1),'risk':a24_0x1be370(0x19c),'paramsRequired':![],'description':a24_0x1be370(0x1a2),'paramsHint':a24_0x1be370(0x1b5)+a24_0x1be370(0x1a8),'helpExtra':[a24_0x1be370(0x1b1),a24_0x1be370(0x17f),a24_0x1be370(0x186),a24_0x1be370(0x18e),a24_0x1be370(0x184),a24_0x1be370(0x1b7),a24_0x1be370(0x1bd),a24_0x1be370(0x1c4),a24_0x1be370(0x188),a24_0x1be370(0x19a),a24_0x1be370(0x1ca),'',a24_0x1be370(0x181),a24_0x1be370(0x1d5),a24_0x1be370(0x1cf),'',a24_0x1be370(0x1cc),a24_0x1be370(0x1b9),a24_0x1be370(0x1bb),a24_0x1be370(0x193),a24_0x1be370(0x1d6),a24_0x1be370(0x1ad),'',a24_0x1be370(0x194),a24_0x1be370(0x190),a24_0x1be370(0x191),a24_0x1be370(0x1b2)]['join']('\x0a')},{'command':a24_0x1be370(0x1af),'operation':'getOne','risk':a24_0x1be370(0x19c),'paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a24_0x1be370(0x19e)},{'command':a24_0x1be370(0x180),'operation':a24_0x1be370(0x180),'risk':a24_0x1be370(0x1c2),'paramsRequired':!![],'description':'Create\x20a\x20new\x20record\x20in\x20a\x20dataset','paramsHint':'JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27'},{'command':'batchCreate','operation':a24_0x1be370(0x1ab),'risk':'write','paramsRequired':!![],'description':'Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','paramsHint':a24_0x1be370(0x1a7)},{'command':a24_0x1be370(0x17c),'operation':a24_0x1be370(0x17c),'risk':a24_0x1be370(0x1c2),'paramsRequired':!![],'description':a24_0x1be370(0x187),'paramsHint':a24_0x1be370(0x1be)+'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_0x1be370(0x18f),'operation':a24_0x1be370(0x18f),'risk':'high-risk-write','paramsRequired':!![],'description':a24_0x1be370(0x1cb),'paramsHint':a24_0x1be370(0x19e)},{'command':a24_0x1be370(0x183),'operation':a24_0x1be370(0x183),'risk':a24_0x1be370(0x19c),'paramsRequired':![],'description':a24_0x1be370(0x18c),'paramsHint':a24_0x1be370(0x1bf)+'Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra':[a24_0x1be370(0x1b6),a24_0x1be370(0x1ba),'\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}',a24_0x1be370(0x1a6),a24_0x1be370(0x185),a24_0x1be370(0x1a5),a24_0x1be370(0x1a3),a24_0x1be370(0x1d4),'',a24_0x1be370(0x1c3),a24_0x1be370(0x192),a24_0x1be370(0x17b),a24_0x1be370(0x1cd),'\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]',a24_0x1be370(0x19d),'','\x20\x20EXAMPLES',a24_0x1be370(0x17d),a24_0x1be370(0x18d),'','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter',a24_0x1be370(0x1c9),'',a24_0x1be370(0x195)][a24_0x1be370(0x1b3)]('\x0a')}];function makeDataCommand(_0x215abb){const _0xebfb74=a24_0x1be370,_0x1b51a9=_0xebfb74(0x1ce)+_0x215abb[_0xebfb74(0x197)],_0x53f85d={'service':_0xebfb74(0x19b),'command':_0x215abb[_0xebfb74(0x197)],'description':_0x215abb[_0xebfb74(0x1a4)],'risk':_0x215abb['risk'],'helpExtra':_0x215abb['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x215abb['paramsHint']}],'validate':async _0x5f3886=>{const _0x1dc3ac=_0xebfb74;_0x215abb[_0x1dc3ac(0x1d1)]&&requireAnyOf(_0x5f3886,[_0x1dc3ac(0x189)],_0x1b51a9),_0x215abb[_0x1dc3ac(0x18a)]===_0x1dc3ac(0x1ab)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5f3886['str']('params'))),_0x215abb['operation']==='update'&&parseUpdateIdsFromParams(parseJsonParams(_0x5f3886[_0x1dc3ac(0x1ac)](_0x1dc3ac(0x189)))??{});},async 'execute'(_0x10fdaa){const _0x2e2037=_0xebfb74,_0x2b8d6d=_0x10fdaa[_0x2e2037(0x1ac)](_0x2e2037(0x1ae)),_0x1c5906=_0x215abb[_0x2e2037(0x18a)]===_0x2e2037(0x1ab)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x10fdaa[_0x2e2037(0x1ac)](_0x2e2037(0x189)))):parseJsonParams(_0x10fdaa['str'](_0x2e2037(0x189)))??{},_0x504041=_0x215abb[_0x2e2037(0x18a)]==='update'?parseUpdateIdsFromParams(_0x1c5906):undefined,_0x43b5cd=_0x504041?normalizeUpdateParamsForRuntime(_0x1c5906,_0x504041):_0x1c5906,_0xfdcfcf=Date[_0x2e2037(0x1bc)](),_0x45f1b0=await executeData(_0x2b8d6d,_0x215abb[_0x2e2037(0x18a)],_0x43b5cd),_0x1e58a6=Date['now']()-_0xfdcfcf,_0x4ff9f4=_0x504041&&_0x504041[_0x2e2037(0x1c1)]>0x1?buildBatchUpdateResult(_0x504041,_0x45f1b0):_0x45f1b0;return{'ok':!![],'data':{'result':_0x4ff9f4,'elapsed':_0x1e58a6},'message':_0x2e2037(0x1ce)+_0x215abb[_0x2e2037(0x197)]+'\x20completed\x20in\x20'+_0x1e58a6+'ms'};}};return _0x215abb[_0xebfb74(0x1c6)]!==_0xebfb74(0x19c)&&(_0x53f85d[_0xebfb74(0x1a9)]=async _0x3fb6fd=>{const _0x798592=_0xebfb74,_0x4ea89b=_0x3fb6fd['str'](_0x798592(0x1ae)),_0x2f4d9d=_0x215abb[_0x798592(0x18a)]===_0x798592(0x1ab)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3fb6fd['str'](_0x798592(0x189)))):parseJsonParams(_0x3fb6fd[_0x798592(0x1ac)]('params'))??{};let _0x4d0313=_0x2f4d9d;if(_0x215abb['operation']===_0x798592(0x17c)){const _0x540022=parseUpdateIdsFromParams(_0x2f4d9d);_0x4d0313=normalizeUpdateParamsForRuntime(_0x2f4d9d,_0x540022);}return dryRun(_0x798592(0x1aa),_0x798592(0x1d0)+_0x4ea89b+'/'+_0x215abb['operation'])[_0x798592(0x18b)](_0x4d0313)[_0x798592(0x1a4)](_0x798592(0x1d3)+_0x215abb[_0x798592(0x197)]+_0x798592(0x1b8)+_0x4ea89b)[_0x798592(0x196)]();}),_0x53f85d;}export const dataDefinitions=specs[a24_0x1be370(0x1a0)](makeDataCommand);function a24_0xb99e(_0x4dd239,_0x12821a){_0x4dd239=_0x4dd239-0x17b;const _0x2923cd=a24_0x2923();let _0xb99e62=_0x2923cd[_0x4dd239];return _0xb99e62;}function buildBatchUpdateResult(_0xb691fa,_0xe36921){const _0x2018ad=a24_0x1be370;return{'operation':_0x2018ad(0x17c),'mode':_0x2018ad(0x1c7),'ids':_0xb691fa,'total':_0xb691fa[_0x2018ad(0x1c1)],'result':_0xe36921};}
|
|
1
|
+
const a24_0x1daadf=a24_0x1851;(function(_0x50607a,_0x65fbb4){const _0x23c269=a24_0x1851,_0x3aeee8=_0x50607a();while(!![]){try{const _0x25ef0b=-parseInt(_0x23c269(0x224))/0x1+parseInt(_0x23c269(0x21c))/0x2+-parseInt(_0x23c269(0x1fc))/0x3*(-parseInt(_0x23c269(0x1ee))/0x4)+parseInt(_0x23c269(0x1e6))/0x5*(parseInt(_0x23c269(0x1fd))/0x6)+parseInt(_0x23c269(0x1d0))/0x7+parseInt(_0x23c269(0x1fe))/0x8+-parseInt(_0x23c269(0x212))/0x9;if(_0x25ef0b===_0x65fbb4)break;else _0x3aeee8['push'](_0x3aeee8['shift']());}catch(_0x33282f){_0x3aeee8['push'](_0x3aeee8['shift']());}}}(a24_0x1ca3,0x529f9));import{executeData}from'../../core/sdk-client.js';function a24_0x1ca3(){const _0x113c77=['str','\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}}','1729956jrwXBk','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}','batch','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','risk','code','\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}}','Preview:\x20data\x20','params','\x20completed\x20in\x20','\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}}','3caCOJS','1244628PlPQBR','3176368xycXQV','body','\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}}]}','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','dryRun','aggregate','Get\x20a\x20single\x20record\x20by\x20ID','join','filter','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','/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$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','\x20\x20EXAMPLES','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','update','8271846oIGLds','\x20\x20PARAMS\x20STRUCTURE','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','Filter\x20dataset\x20records\x20with\x20query\x20conditions','write','build','length','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','Update\x20an\x20existing\x20record','now','614538DTZUKk','\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]}}','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','high-risk-write','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','\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}}','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','352230HXwFsP','POST','description','delete','batchCreate','1858549NRiiWE','\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}','helpExtra','create','read','getOne','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\x20\x20WHERE\x20OPERATORS','\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]','command','operation','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\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\x20PAGINATION','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','data','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','5PxZcrI','data\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\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','paramsRequired'];a24_0x1ca3=function(){return _0x113c77;};return a24_0x1ca3();}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_0x1daadf(0x206),'operation':a24_0x1daadf(0x206),'risk':'read','paramsRequired':![],'description':a24_0x1daadf(0x215),'paramsHint':a24_0x1daadf(0x220)+a24_0x1daadf(0x219),'helpExtra':[a24_0x1daadf(0x1d7),'\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}',a24_0x1daadf(0x20d),'\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}',a24_0x1daadf(0x1fb),'\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}',a24_0x1daadf(0x1ed),a24_0x1daadf(0x21d),a24_0x1daadf(0x1f7),a24_0x1daadf(0x222),a24_0x1daadf(0x221),'',a24_0x1daadf(0x207),a24_0x1daadf(0x20c),a24_0x1daadf(0x200),'',a24_0x1daadf(0x1e5),a24_0x1daadf(0x20a),a24_0x1daadf(0x1d8),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]',a24_0x1daadf(0x1ea),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a24_0x1daadf(0x1df),a24_0x1daadf(0x1f4),'\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27',a24_0x1daadf(0x1f2)][a24_0x1daadf(0x205)]('\x0a')},{'command':a24_0x1daadf(0x1d5),'operation':a24_0x1daadf(0x1d5),'risk':a24_0x1daadf(0x1d4),'paramsRequired':!![],'description':a24_0x1daadf(0x204),'paramsHint':a24_0x1daadf(0x21e)},{'command':a24_0x1daadf(0x1d3),'operation':a24_0x1daadf(0x1d3),'risk':a24_0x1daadf(0x216),'paramsRequired':!![],'description':a24_0x1daadf(0x223),'paramsHint':a24_0x1daadf(0x1dd)},{'command':a24_0x1daadf(0x1cf),'operation':'batchCreate','risk':'write','paramsRequired':!![],'description':'Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','paramsHint':a24_0x1daadf(0x1e2)},{'command':a24_0x1daadf(0x211),'operation':'update','risk':a24_0x1daadf(0x216),'paramsRequired':!![],'description':a24_0x1daadf(0x21a),'paramsHint':a24_0x1daadf(0x214)+a24_0x1daadf(0x210)},{'command':'delete','operation':a24_0x1daadf(0x1ce),'risk':a24_0x1daadf(0x21f),'paramsRequired':!![],'description':a24_0x1daadf(0x1e0),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':'aggregate','operation':a24_0x1daadf(0x203),'risk':a24_0x1daadf(0x1d4),'paramsRequired':![],'description':a24_0x1daadf(0x201),'paramsHint':'JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20'+'Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra':['\x20\x20AGGREGATE\x20TYPES',a24_0x1daadf(0x209),a24_0x1daadf(0x20e),a24_0x1daadf(0x1f0),a24_0x1daadf(0x1e9),a24_0x1daadf(0x1de),a24_0x1daadf(0x1d1),a24_0x1daadf(0x208),'',a24_0x1daadf(0x213),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a24_0x1daadf(0x1e4),a24_0x1daadf(0x1e1),'\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]',a24_0x1daadf(0x1e8),'',a24_0x1daadf(0x20f),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a24_0x1daadf(0x1db),'',a24_0x1daadf(0x1d6),a24_0x1daadf(0x1dc),'',a24_0x1daadf(0x1f3)][a24_0x1daadf(0x205)]('\x0a')}];function makeDataCommand(_0x56e8fc){const _0x3552ee=a24_0x1daadf,_0x1917f9=_0x3552ee(0x1e7)+_0x56e8fc[_0x3552ee(0x1d9)],_0x467c09={'service':_0x3552ee(0x1e3),'command':_0x56e8fc['command'],'description':_0x56e8fc[_0x3552ee(0x1cd)],'risk':_0x56e8fc[_0x3552ee(0x1f5)],'helpExtra':_0x56e8fc[_0x3552ee(0x1d2)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x56e8fc['paramsHint']}],'validate':async _0x32e614=>{const _0x40ca56=_0x3552ee;_0x56e8fc[_0x40ca56(0x1eb)]&&requireAnyOf(_0x32e614,['params'],_0x1917f9),_0x56e8fc[_0x40ca56(0x1da)]===_0x40ca56(0x1cf)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x32e614[_0x40ca56(0x1ec)]('params'))),_0x56e8fc[_0x40ca56(0x1da)]===_0x40ca56(0x211)&&parseUpdateIdsFromParams(parseJsonParams(_0x32e614[_0x40ca56(0x1ec)](_0x40ca56(0x1f9)))??{});},async 'execute'(_0x5910b6){const _0x1ac64b=_0x3552ee,_0xcc2bd=_0x5910b6[_0x1ac64b(0x1ec)](_0x1ac64b(0x1f6)),_0x5f4b14=_0x56e8fc[_0x1ac64b(0x1da)]===_0x1ac64b(0x1cf)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5910b6['str'](_0x1ac64b(0x1f9)))):parseJsonParams(_0x5910b6[_0x1ac64b(0x1ec)]('params'))??{},_0x335b44=_0x56e8fc['operation']===_0x1ac64b(0x211)?parseUpdateIdsFromParams(_0x5f4b14):undefined,_0x86a9d3=_0x335b44?normalizeUpdateParamsForRuntime(_0x5f4b14,_0x335b44):_0x5f4b14,_0x11b082=Date[_0x1ac64b(0x21b)](),_0x3e2469=await executeData(_0xcc2bd,_0x56e8fc[_0x1ac64b(0x1da)],_0x86a9d3),_0x2dfac0=Date[_0x1ac64b(0x21b)]()-_0x11b082,_0x14da9a=_0x335b44&&_0x335b44[_0x1ac64b(0x218)]>0x1?buildBatchUpdateResult(_0x335b44,_0x3e2469):_0x3e2469;return{'ok':!![],'data':{'result':_0x14da9a,'elapsed':_0x2dfac0},'message':_0x1ac64b(0x1e7)+_0x56e8fc[_0x1ac64b(0x1d9)]+_0x1ac64b(0x1fa)+_0x2dfac0+'ms'};}};return _0x56e8fc[_0x3552ee(0x1f5)]!==_0x3552ee(0x1d4)&&(_0x467c09[_0x3552ee(0x202)]=async _0x5c96f2=>{const _0x4fa3cb=_0x3552ee,_0x26c7fb=_0x5c96f2['str']('code'),_0x405795=_0x56e8fc[_0x4fa3cb(0x1da)]===_0x4fa3cb(0x1cf)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5c96f2[_0x4fa3cb(0x1ec)](_0x4fa3cb(0x1f9)))):parseJsonParams(_0x5c96f2['str'](_0x4fa3cb(0x1f9)))??{};let _0x4b9ddb=_0x405795;if(_0x56e8fc['operation']===_0x4fa3cb(0x211)){const _0x496f9b=parseUpdateIdsFromParams(_0x405795);_0x4b9ddb=normalizeUpdateParamsForRuntime(_0x405795,_0x496f9b);}return dryRun(_0x4fa3cb(0x1cc),_0x4fa3cb(0x20b)+_0x26c7fb+'/'+_0x56e8fc['operation'])[_0x4fa3cb(0x1ff)](_0x4b9ddb)[_0x4fa3cb(0x1cd)](_0x4fa3cb(0x1f8)+_0x56e8fc['command']+'\x20on\x20dataset\x20'+_0x26c7fb)[_0x4fa3cb(0x217)]();}),_0x467c09;}function a24_0x1851(_0x2e32ed,_0x13892a){_0x2e32ed=_0x2e32ed-0x1cc;const _0x1ca35f=a24_0x1ca3();let _0x18511a=_0x1ca35f[_0x2e32ed];return _0x18511a;}export const dataDefinitions=specs[a24_0x1daadf(0x1ef)](makeDataCommand);function buildBatchUpdateResult(_0x54480d,_0x1dec68){const _0x2fda36=a24_0x1daadf;return{'operation':'update','mode':_0x2fda36(0x1f1),'ids':_0x54480d,'total':_0x54480d[_0x2fda36(0x218)],'result':_0x1dec68};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a25_0x4a7953=a25_0x9791;(function(_0x3bcfd8,_0x412192){const _0x2f5b2d=a25_0x9791,_0x5d36aa=_0x3bcfd8();while(!![]){try{const _0xa63cce=parseInt(_0x2f5b2d(0x22f))/0x1*(parseInt(_0x2f5b2d(0x204))/0x2)+parseInt(_0x2f5b2d(0x217))/0x3*(parseInt(_0x2f5b2d(0x232))/0x4)+-parseInt(_0x2f5b2d(0x228))/0x5*(-parseInt(_0x2f5b2d(0x1f9))/0x6)+parseInt(_0x2f5b2d(0x1fa))/0x7*(parseInt(_0x2f5b2d(0x20e))/0x8)+-parseInt(_0x2f5b2d(0x21f))/0x9+parseInt(_0x2f5b2d(0x208))/0xa+-parseInt(_0x2f5b2d(0x213))/0xb;if(_0xa63cce===_0x412192)break;else _0x5d36aa['push'](_0x5d36aa['shift']());}catch(_0x27e01b){_0x5d36aa['push'](_0x5d36aa['shift']());}}}(a25_0x3d06,0xa37c1));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x3b3414){const _0xc2387b=a25_0x9791;if(_0x3b3414[_0xc2387b(0x1f4)])return null;const _0x50f1a8=Boolean(_0x3b3414[_0xc2387b(0x230)]!==undefined||_0x3b3414[_0xc2387b(0x1fb)]!==undefined);let _0x180b1c={};if(!_0x50f1a8&&typeof _0x3b3414[_0xc2387b(0x21d)]===_0xc2387b(0x234))try{_0x180b1c=JSON[_0xc2387b(0x207)](_0x3b3414[_0xc2387b(0x21d)]);}catch{}const _0x2fd49a=_0x50f1a8?_0x3b3414[_0xc2387b(0x211)]:_0x3b3414['code'],_0x449984=_0x50f1a8?_0x3b3414[_0xc2387b(0x230)]:_0x3b3414[_0xc2387b(0x211)],_0x2511e7=_0x50f1a8?_0x3b3414[_0xc2387b(0x1fb)]:_0x3b3414[_0xc2387b(0x212)]||_0x3b3414['dataType'],_0x881b48=_0x50f1a8?_0x3b3414['pkField']===!![]:_0x180b1c[_0xc2387b(0x1f1)]===!![],_0x150097=_0x50f1a8?_0x3b3414['required']===!![]:_0x180b1c[_0xc2387b(0x1f5)]===!![],_0xc79910=_0x50f1a8?_0x3b3414[_0xc2387b(0x231)]??null:_0x180b1c[_0xc2387b(0x231)]??null,_0x33d7d6={'name':_0x2fd49a,'displayName':_0x449984||_0x2fd49a,'type':_0x2511e7,'dbType':_0x3b3414[_0xc2387b(0x1f2)],'pk':_0x881b48,'required':_0x150097,'description':_0x3b3414[_0xc2387b(0x203)]||undefined};return Array[_0xc2387b(0x221)](_0xc79910)&&_0xc79910[_0xc2387b(0x1f8)]>0x0&&(_0x33d7d6['options']=_0xc79910),_0x33d7d6;}function parseJsonMaybe(_0x55c095){const _0x156134=a25_0x9791;if(typeof _0x55c095!==_0x156134(0x234))return _0x55c095;try{return JSON[_0x156134(0x207)](_0x55c095);}catch{return _0x55c095;}}function a25_0x3d06(){const _0x21e137=['8wpwBtC','responseBody','string','modelCode','createTimeField','afterScriptId','pkField','dbType','labelField','deleted','required','indexes','code','length','2304QkNAho','1158269quZbDv','doType','host','validateRules','title','doVersion','find','source','tableName','description','2oaoDsH','relations','filter','parse','654160rSYAIg','logicField','requestFields','datasetKey','allFields','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','40XUWZdO','requestBody','fields','name','type','14389089ZjGwlY','modifierNameField','updateTimeField','properties','1554948KYwFAG','str','modifierIdField','path','map','columnCodeListWithDeleted','extend','dbId','6310998xqXAAH','dataset','isArray','split','trim','method','tableComment','dbName','push','7505OSMNiO','object','detail','formatRules','responseFields','dbtableConfig','beforeScriptId','173187mXtuKn','displayName','options'];a25_0x3d06=function(){return _0x21e137;};return a25_0x3d06();}function normalizeOperationEntry(_0xe6d0b9,_0x4c1e21){const _0x136d89=a25_0x9791;if(!_0x4c1e21||typeof _0x4c1e21!==_0x136d89(0x229))return null;if(!_0x4c1e21[_0x136d89(0x224)]||!_0x4c1e21[_0x136d89(0x21a)])return null;const _0x5b4c6e={'name':_0xe6d0b9,'method':_0x4c1e21[_0x136d89(0x224)],'path':_0x4c1e21[_0x136d89(0x21a)]};if(_0x4c1e21['host'])_0x5b4c6e[_0x136d89(0x1fc)]=_0x4c1e21[_0x136d89(0x1fc)];if(_0x4c1e21[_0x136d89(0x20f)]!=null)_0x5b4c6e[_0x136d89(0x20f)]=parseJsonMaybe(_0x4c1e21[_0x136d89(0x20f)]);if(_0x4c1e21[_0x136d89(0x233)]!=null)_0x5b4c6e[_0x136d89(0x233)]=parseJsonMaybe(_0x4c1e21[_0x136d89(0x233)]);if(_0x4c1e21[_0x136d89(0x22e)]!=null)_0x5b4c6e['beforeScriptId']=_0x4c1e21[_0x136d89(0x22e)];if(_0x4c1e21[_0x136d89(0x1f0)]!=null)_0x5b4c6e[_0x136d89(0x1f0)]=_0x4c1e21['afterScriptId'];if(Array[_0x136d89(0x221)](_0x4c1e21[_0x136d89(0x20a)]))_0x5b4c6e['requestFields']=_0x4c1e21[_0x136d89(0x20a)];if(Array['isArray'](_0x4c1e21[_0x136d89(0x22c)]))_0x5b4c6e[_0x136d89(0x22c)]=_0x4c1e21['responseFields'];return _0x5b4c6e;}function summarizeDbtable(_0x36c9a6){const _0x45550c=a25_0x9791,_0x5c8e90={},_0xd14b15=[_0x45550c(0x21e),'dbName','tableName',_0x45550c(0x20b),_0x45550c(0x1f1),'allFields',_0x45550c(0x209),_0x45550c(0x1ef),_0x45550c(0x215),'creatorIdField','creatorNameField',_0x45550c(0x219),_0x45550c(0x214),_0x45550c(0x1f3),'dblinkInfoDTO'];for(const _0x2d0402 of _0xd14b15){if(_0x36c9a6[_0x2d0402]!==undefined)_0x5c8e90[_0x2d0402]=_0x36c9a6[_0x2d0402];}return typeof _0x5c8e90[_0x45550c(0x20c)]==='string'&&_0x5c8e90['allFields'][_0x45550c(0x1f8)]>0x0&&(_0x5c8e90['allFieldNames']=_0x5c8e90['allFields']['split'](',')[_0x45550c(0x21b)](_0x27a57f=>_0x27a57f[_0x45550c(0x223)]())[_0x45550c(0x206)](Boolean)),_0x5c8e90;}function normalizeRelatedPages(_0x5f514c){const _0x93c614=a25_0x9791;if(!Array[_0x93c614(0x221)](_0x5f514c))return[];return _0x5f514c[_0x93c614(0x206)](_0xe2f11=>_0xe2f11&&typeof _0xe2f11===_0x93c614(0x229))['map'](_0x5cf346=>({'id':_0x5cf346['id'],'type':_0x5cf346[_0x93c614(0x212)],'code':_0x5cf346[_0x93c614(0x1f7)],'title':_0x5cf346[_0x93c614(0x1fe)],'deleted':_0x5cf346[_0x93c614(0x1f4)]===!![]}));}function a25_0x9791(_0x5c836b,_0x3c885e){_0x5c836b=_0x5c836b-0x1ee;const _0x3d06ca=a25_0x3d06();let _0x979135=_0x3d06ca[_0x5c836b];return _0x979135;}function normalizeFallbackFieldName(_0x594d21,_0x121e66){const _0x437ced=a25_0x9791,_0x156899=_0x594d21[_0x437ced(0x223)]();if(!_0x156899)return null;return{'name':_0x156899,'displayName':_0x156899,'type':undefined,'dbType':undefined,'pk':_0x156899===_0x121e66,'required':![],'description':undefined};}async function loadListFieldFallback(_0x149ffb,_0x5108e5){const _0x47c894=a25_0x9791;if(!_0x149ffb||!_0x5108e5)return[];try{const _0x537db5=await listDatasets(_0x149ffb,{'code':_0x5108e5}),_0x4c7426=_0x537db5[_0x47c894(0x200)](_0x4596bb=>_0x4596bb[_0x47c894(0x1f7)]===_0x5108e5)??_0x537db5[0x0],_0x4cdecc=_0x4c7426?.[_0x47c894(0x22d)]??{},_0xabdf05=typeof _0x4cdecc[_0x47c894(0x20c)]===_0x47c894(0x234)?_0x4cdecc['allFields'][_0x47c894(0x222)](','):[];return _0xabdf05[_0x47c894(0x21b)](_0x36ff71=>normalizeFallbackFieldName(_0x36ff71,_0x4cdecc[_0x47c894(0x1f1)]))[_0x47c894(0x206)](_0x1e89a0=>_0x1e89a0!==null);}catch{return[];}}export const datasetDetail={'service':a25_0x4a7953(0x220),'command':a25_0x4a7953(0x22a),'description':a25_0x4a7953(0x20d),'risk':'read','flags':[CODE_FLAG],async 'execute'(_0x3967a5){const _0x45b728=a25_0x4a7953,_0x3d2cbd=await getDatasetDetail(_0x3967a5[_0x45b728(0x218)](_0x45b728(0x1f7))),_0x5cdf11=Array[_0x45b728(0x221)](_0x3d2cbd['fields'])?_0x3d2cbd[_0x45b728(0x210)]:Array['isArray'](_0x3d2cbd[_0x45b728(0x216)])?_0x3d2cbd[_0x45b728(0x216)]:[];let _0x4006c7=_0x5cdf11[_0x45b728(0x21b)](_0xfcee73=>normalizeField(_0xfcee73))[_0x45b728(0x206)](_0x526a3e=>_0x526a3e!==null);_0x4006c7[_0x45b728(0x1f8)]===0x0&&(_0x4006c7=await loadListFieldFallback(_0x3967a5['appCode'],_0x3967a5[_0x45b728(0x218)](_0x45b728(0x1f7))));const _0x37287a=_0x3d2cbd['operations']??{},_0x4d5dde=[];for(const [_0x3d59e5,_0x5010d8]of Object['entries'](_0x37287a)){const _0x53145d=normalizeOperationEntry(_0x3d59e5,_0x5010d8);if(_0x53145d)_0x4d5dde[_0x45b728(0x227)](_0x53145d);}const _0x20376d=_0x3d2cbd[_0x45b728(0x22d)]??{},_0x5f5a75=_0x3d2cbd[_0x45b728(0x220)]??{},_0x2df54b=_0x20376d[_0x45b728(0x21e)]!=null?{'id':_0x20376d[_0x45b728(0x21e)],'name':_0x20376d[_0x45b728(0x226)]??null}:undefined;let _0x483445;return typeof _0x3d2cbd[_0x45b728(0x21d)]===_0x45b728(0x234)&&(_0x483445=parseJsonMaybe(_0x3d2cbd[_0x45b728(0x21d)])),{'ok':!![],'data':{'id':_0x3d2cbd['modelId']??_0x3d2cbd['id'],'name':_0x3d2cbd[_0x45b728(0x211)],'code':_0x3d2cbd[_0x45b728(0x1ee)]||_0x3d2cbd[_0x45b728(0x1f7)],'doVersion':_0x3d2cbd[_0x45b728(0x1ff)],'description':_0x3d2cbd['description']||_0x5f5a75[_0x45b728(0x225)]||undefined,'source':_0x3d2cbd[_0x45b728(0x201)]||_0x5f5a75['sourceType'],'table':_0x20376d[_0x45b728(0x202)]||_0x5f5a75['tableName'],'datasetKey':_0x20376d[_0x45b728(0x20b)],'pk':_0x20376d[_0x45b728(0x1f1)],'db':_0x2df54b,'dbtable':summarizeDbtable(_0x20376d),'fields':_0x4006c7,'operations':_0x4d5dde,'indexes':Array['isArray'](_0x5f5a75[_0x45b728(0x1f6)])?_0x5f5a75[_0x45b728(0x1f6)]:[],'relations':_0x3d2cbd[_0x45b728(0x205)]??null,'relatedPages':normalizeRelatedPages(_0x3d2cbd['relatedPageInfoList']),...Array[_0x45b728(0x221)](_0x3d2cbd[_0x45b728(0x21c)])?{'columnCodeListWithDeleted':_0x3d2cbd['columnCodeListWithDeleted']}:{},'formatRules':Array[_0x45b728(0x221)](_0x3d2cbd[_0x45b728(0x22b)])?_0x3d2cbd['formatRules']:[],'validateRules':Array[_0x45b728(0x221)](_0x3d2cbd[_0x45b728(0x1fd)])?_0x3d2cbd[_0x45b728(0x1fd)]:[],..._0x483445!==undefined?{'extend':_0x483445}:{},'stats':{'fieldCount':_0x4006c7[_0x45b728(0x1f8)],'operationCount':_0x4d5dde[_0x45b728(0x1f8)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x37758a,_0x5a5529){const _0x1d6074=a26_0x2172,_0x22067f=_0x37758a();while(!![]){try{const _0xd2560f=parseInt(_0x1d6074(0xb3))/0x1+parseInt(_0x1d6074(0xad))/0x2+parseInt(_0x1d6074(0xb0))/0x3*(parseInt(_0x1d6074(0xb2))/0x4)+-parseInt(_0x1d6074(0xac))/0x5*(-parseInt(_0x1d6074(0xb1))/0x6)+-parseInt(_0x1d6074(0xae))/0x7+-parseInt(_0x1d6074(0xaf))/0x8*(parseInt(_0x1d6074(0xb5))/0x9)+parseInt(_0x1d6074(0xb4))/0xa;if(_0xd2560f===_0x5a5529)break;else _0x22067f['push'](_0x22067f['shift']());}catch(_0x40cd9d){_0x22067f['push'](_0x22067f['shift']());}}}(a26_0x3d60,0xa86fb));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a26_0x2172(_0x130789,_0x542c31){_0x130789=_0x130789-0xac;const _0x3d60ba=a26_0x3d60();let _0x217216=_0x3d60ba[_0x130789];return _0x217216;}function a26_0x3d60(){const _0x298a33=['1059803lsRMul','4599700gArsvB','3790575lvcnFc','131745uDoOpL','481252hDpJHd','4765089nnaNhu','24OUkKVa','3SWMXuD','138bfGSSD','1070964USIpou'];a26_0x3d60=function(){return _0x298a33;};return a26_0x3d60();}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a27_0x50df(){const _0x131381=['source','str','list','8Nljotn','208VbcEiZ','pkField','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','5710fQmgpn','name','6982554vhcVVH','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','dataset','1940792EiKoiJ','split','code','425130THwmZL','string','6561415fCBgRS','34407OLmrxr','5699850MFsODY','datasetKey','6006AgRXsu','allFields','length','dbtableConfig','map','trim','read','tableName'];a27_0x50df=function(){return _0x131381;};return a27_0x50df();}const a27_0x4bd226=a27_0x57fd;function a27_0x57fd(_0x4d3a3e,_0x26e7bc){_0x4d3a3e=_0x4d3a3e-0x1ed;const _0x50dff0=a27_0x50df();let _0x57fd63=_0x50dff0[_0x4d3a3e];return _0x57fd63;}(function(_0x52c07d,_0x2df568){const _0x7bd6ca=a27_0x57fd,_0x382787=_0x52c07d();while(!![]){try{const _0x4ac2ec=parseInt(_0x7bd6ca(0x1f3))/0x1+-parseInt(_0x7bd6ca(0x1f0))/0x2+-parseInt(_0x7bd6ca(0x1f9))/0x3*(parseInt(_0x7bd6ca(0x205))/0x4)+-parseInt(_0x7bd6ca(0x1f7))/0x5+parseInt(_0x7bd6ca(0x1ed))/0x6+parseInt(_0x7bd6ca(0x1f5))/0x7*(-parseInt(_0x7bd6ca(0x204))/0x8)+-parseInt(_0x7bd6ca(0x1f6))/0x9*(-parseInt(_0x7bd6ca(0x208))/0xa);if(_0x4ac2ec===_0x2df568)break;else _0x382787['push'](_0x382787['shift']());}catch(_0x1f2899){_0x382787['push'](_0x382787['shift']());}}}(a27_0x50df,0x975e7));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a27_0x4bd226(0x1ef),'command':a27_0x4bd226(0x203),'description':a27_0x4bd226(0x207),'risk':a27_0x4bd226(0x1ff),'flags':[{'name':a27_0x4bd226(0x209),'type':a27_0x4bd226(0x1f4),'description':a27_0x4bd226(0x1ee)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x2831ab){const _0x5ad5fb=a27_0x4bd226,_0x3d7c98=_0x2831ab['str']('name'),_0x3870d7=_0x2831ab[_0x5ad5fb(0x202)](_0x5ad5fb(0x1f2)),_0x2d28b4=await listDatasets(_0x2831ab['appCode'],{..._0x3d7c98&&{'name':_0x3d7c98},..._0x3870d7&&{'code':_0x3870d7}});return{'ok':!![],'data':{'total':_0x2d28b4[_0x5ad5fb(0x1fb)],'datasets':_0x2d28b4[_0x5ad5fb(0x1fd)](_0x263ae0=>{const _0x1bd7fc=_0x5ad5fb,_0x56af76=_0x263ae0[_0x1bd7fc(0x1fc)]??{};return{'id':_0x263ae0['id'],'code':_0x263ae0['code'],'name':_0x263ae0['name'],'source':_0x263ae0[_0x1bd7fc(0x201)],'description':_0x263ae0['description'],'table':_0x56af76[_0x1bd7fc(0x200)],'datasetKey':_0x56af76[_0x1bd7fc(0x1f8)],'pk':_0x56af76[_0x1bd7fc(0x206)],'fields':_0x56af76[_0x1bd7fc(0x1fa)]?_0x56af76[_0x1bd7fc(0x1fa)][_0x1bd7fc(0x1f1)](',')[_0x1bd7fc(0x1fd)](_0xfe0476=>_0xfe0476[_0x1bd7fc(0x1fe)]()):[]};})}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a28_0x5f4544=a28_0x468d;(function(_0x4e37b6,_0x31794b){const _0x415f4c=a28_0x468d,_0x3aba13=_0x4e37b6();while(!![]){try{const _0x2fbb85=parseInt(_0x415f4c(0x14f))/0x1+-parseInt(_0x415f4c(0x151))/0x2+parseInt(_0x415f4c(0x14b))/0x3*(-parseInt(_0x415f4c(0x146))/0x4)+-parseInt(_0x415f4c(0x152))/0x5+-parseInt(_0x415f4c(0x150))/0x6*(-parseInt(_0x415f4c(0x14d))/0x7)+parseInt(_0x415f4c(0x14a))/0x8*(parseInt(_0x415f4c(0x153))/0x9)+parseInt(_0x415f4c(0x157))/0xa*(parseInt(_0x415f4c(0x149))/0xb);if(_0x2fbb85===_0x31794b)break;else _0x3aba13['push'](_0x3aba13['shift']());}catch(_0x5a681c){_0x3aba13['push'](_0x3aba13['shift']());}}}(a28_0x4e94,0xf0a9b));function a28_0x4e94(){const _0x222130=['132KclZqU','1467156YPUchM','658040jjWDZn','9fqrzGM','code','appCode','str','19872190ZdvLJO','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','36OuMOwv','dataset','read','11yltDtd','12368OLLlzg','355461NMtcSv','trim','92099sybrcr','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0a暂无\x20SDK\x20使用文档','639105Owwyzs'];a28_0x4e94=function(){return _0x222130;};return a28_0x4e94();}function a28_0x468d(_0x41e3af,_0x240a7c){_0x41e3af=_0x41e3af-0x146;const _0x4e9402=a28_0x4e94();let _0x468db3=_0x4e9402[_0x41e3af];return _0x468db3;}import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a28_0x5f4544(0x14e);export function formatDatasetSdkMarkdown(_0x2271f9){const _0x2fcf1f=a28_0x5f4544,_0x714fc9=typeof _0x2271f9==='string'?_0x2271f9[_0x2fcf1f(0x14c)]():'';return _0x714fc9||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a28_0x5f4544(0x147),'command':'sdk-doc','description':a28_0x5f4544(0x158),'risk':a28_0x5f4544(0x148),'flags':[{...CODE_FLAG,'description':'Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.'}],async 'execute'(_0x3f0715){const _0x53a4cd=a28_0x5f4544,_0x344030=_0x3f0715[_0x53a4cd(0x156)](_0x53a4cd(0x154)),_0xa0ac88=await getDatasetSdkUsageDoc(_0x344030,_0x3f0715[_0x53a4cd(0x155)]);return{'ok':!![],'data':{'code':_0x344030,'appCode':_0x3f0715[_0x53a4cd(0x155)],'markdown':formatDatasetSdkMarkdown(_0xa0ac88)}};}};
|