@lovrabet/rabetbase-cli 2.1.2-beta.3 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/discover.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/new.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/links.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.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/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.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/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.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/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a71_0x5a29cc=a71_0x21f4;function a71_0x153d(){const _0x34eca9=['\x20remote-only','bool','functions','9350705mSFogP','all','length','push','3884109qsaSzG','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','filePath','datasetCode','alias','read','3225922nXkkfp','lockFilePath','bff','\x20unchanged','appCode','568240juemEF','apiDir','2537101iFlypb','1515052dDISfg','boolean','lockKey','7101948iUypXa','\x20added,\x20','status','Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','scriptsRoot','hash'];a71_0x153d=function(){return _0x34eca9;};return a71_0x153d();}(function(_0x38d87d,_0x392625){const _0x7fd56e=a71_0x21f4,_0xb53bf5=_0x38d87d();while(!![]){try{const _0x1ed714=parseInt(_0x7fd56e(0xf4))/0x1+-parseInt(_0x7fd56e(0xef))/0x2+parseInt(_0x7fd56e(0xe9))/0x3+parseInt(_0x7fd56e(0xf7))/0x4+parseInt(_0x7fd56e(0x103))/0x5+-parseInt(_0x7fd56e(0xfa))/0x6+-parseInt(_0x7fd56e(0xf6))/0x7;if(_0x1ed714===_0x392625)break;else _0xb53bf5['push'](_0xb53bf5['shift']());}catch(_0x57519f){_0xb53bf5['push'](_0xb53bf5['shift']());}}}(a71_0x153d,0xe89d1));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';function a71_0x21f4(_0xb3790d,_0x229ee2){_0xb3790d=_0xb3790d-0xe7;const _0x153d3c=a71_0x153d();let _0x21f44b=_0x153d3c[_0xb3790d];return _0x21f44b;}import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':a71_0x5a29cc(0xf1),'command':'status','description':a71_0x5a29cc(0xfd),'risk':a71_0x5a29cc(0xee),'flags':[{'name':'remote','type':a71_0x5a29cc(0xf8),'description':a71_0x5a29cc(0xea)}],async 'execute'(_0x53d2c5){const _0x5b5637=a71_0x5a29cc,_0x24d986=loadBffProjectConfig(_0x53d2c5[_0x5b5637(0xf3)]),_0x26b9a0=await readBffLockFile(_0x24d986[_0x5b5637(0xf0)]),{appLock:_0x389cf3}=ensureLockScope(_0x26b9a0??createEmptyBffLock(),_0x53d2c5[_0x5b5637(0xf3)],_0x24d986[_0x5b5637(0xfe)],_0x5b5637(0xfc)),_0x52c02e=await scanLocalBffFunctions(_0x24d986),_0xaad4f5=[],_0x1c2abc=[],_0x1126a4=[];for(const _0x1831a7 of _0x52c02e){const _0x188720=await computeFileHash(_0x1831a7[_0x5b5637(0xeb)]),_0x424840=_0x389cf3['functions'][_0x1831a7['lockKey']];if(!_0x424840)_0xaad4f5[_0x5b5637(0xe8)](_0x1831a7[_0x5b5637(0xf9)]);else _0x424840[_0x5b5637(0xff)]!==_0x188720?_0x1c2abc[_0x5b5637(0xe8)](_0x1831a7[_0x5b5637(0xf9)]):_0x1126a4['push'](_0x1831a7[_0x5b5637(0xf9)]);}const _0x2bd547=[];if(_0x53d2c5[_0x5b5637(0x101)]('remote')){const _0x266e0a=loadAliasMap(_0x53d2c5[_0x5b5637(0xf5)],undefined,resolveApiFilePath(_0x53d2c5[_0x5b5637(0xf5)],_0x53d2c5[_0x5b5637(0xf3)])),_0x45cce1=new Map(_0x266e0a['map'](_0x3f129d=>[_0x3f129d[_0x5b5637(0xec)],_0x3f129d[_0x5b5637(0xed)]])),[_0x29ab83,_0x3ea13e]=await Promise[_0x5b5637(0x104)]([listBffScripts(_0x53d2c5[_0x5b5637(0xf3)]),getBffScriptStatistics(_0x53d2c5[_0x5b5637(0xf3)])]),_0xb33cc8=createHookLocationMap(_0x3ea13e),_0x4f4e36=new Set(_0x52c02e['map'](_0x364666=>_0x364666['lockKey']));for(const _0x1efc9e of _0x29ab83){const _0x539aff=resolveRemoteScriptTarget(_0x24d986,_0x1efc9e,_0xb33cc8,_0x389cf3[_0x5b5637(0x102)],_0x45cce1);_0x539aff&&!_0x4f4e36['has'](_0x539aff[_0x5b5637(0xf9)])&&_0x2bd547['push'](_0x539aff['lockKey']);}}const _0x5a5314=_0xaad4f5[_0x5b5637(0xe7)]===0x0&&_0x1c2abc[_0x5b5637(0xe7)]===0x0&&_0x2bd547['length']===0x0;return{'ok':!![],'data':{'added':_0xaad4f5,'modified':_0x1c2abc,'unchanged':_0x1126a4,'remoteOnly':_0x2bd547},'message':_0x5a5314?'All\x20BFF\x20scripts\x20are\x20in\x20sync.':_0xaad4f5[_0x5b5637(0xe7)]+_0x5b5637(0xfb)+_0x1c2abc['length']+'\x20modified,\x20'+_0x1126a4['length']+_0x5b5637(0xf2)+(_0x2bd547['length']>0x0?',\x20'+_0x2bd547[_0x5b5637(0xe7)]+_0x5b5637(0x100):'')};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a115_0x3b933f=a115_0x149a;(function(_0x395f97,_0x1fb24b){const _0x465b68=a115_0x149a,_0x46cdfe=_0x395f97();while(!![]){try{const _0x3daec6=parseInt(_0x465b68(0x211))/0x1+parseInt(_0x465b68(0x1f9))/0x2+-parseInt(_0x465b68(0x1fc))/0x3+parseInt(_0x465b68(0x1e3))/0x4*(-parseInt(_0x465b68(0x202))/0x5)+parseInt(_0x465b68(0x1f7))/0x6+parseInt(_0x465b68(0x201))/0x7*(parseInt(_0x465b68(0x20a))/0x8)+parseInt(_0x465b68(0x1ee))/0x9*(parseInt(_0x465b68(0x203))/0xa);if(_0x3daec6===_0x1fb24b)break;else _0x46cdfe['push'](_0x46cdfe['shift']());}catch(_0x2f990a){_0x46cdfe['push'](_0x46cdfe['shift']());}}}(a115_0x42e8,0x7b620));import a115_0x859a9a from'chalk';import a115_0x1c1b40 from'ora';import a115_0x2fb4b0 from'semver';import{execa}from'execa';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a115_0x149a(_0x207349,_0x2e53b3){_0x207349=_0x207349-0x1e2;const _0x42e8e0=a115_0x42e8();let _0x149a09=_0x42e8e0[_0x207349];return _0x149a09;}import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getCdnConfig}from'../utils/cdn-config.js';import{resolveNpmBin}from'../utils/platform.js';function a115_0x42e8(){const _0x2f7534=['4392095mjMFAG','8690VPVGxR','bun','\x20install\x20-g\x20','Unable\x20to\x20check\x20for\x20updates','\x20\x20Try\x20manually:\x20','json','timeout','2985640eWkkCi','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Version\x20comparison\x20failed','includes','https://registry.npmjs.org/','succeed','Current\x20version:\x20','354418HBWvMR','log','coerce','4OPrzVt','...','Update\x20available:\x20','Updated\x20to\x20v','Update\x20failed','pipe','/latest','gray','@latest','\x20→\x20','write','9819YlycKw','fail','start','install','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','stableVersion','yellow','unknown','Already\x20up\x20to\x20date\x20(v','1969932kaHTtH','Updating\x20via\x20','687484rbebLX','message','cli','2891913KFdaHI','info','execPath','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','error','7qXYhrh'];a115_0x42e8=function(){return _0x2f7534;};return a115_0x42e8();}function getCurrentVersion(){const _0x15aa4c=a115_0x149a;return GIT_COMMIT!==_0x15aa4c(0x1f5)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x3a3385=a115_0x149a,_0x529784=process[_0x3a3385(0x1fe)]['toLowerCase']();if(_0x529784[_0x3a3385(0x20d)](_0x3a3385(0x204)))return'bun';return'npm';}async function fetchLatestNpmVersion(){const _0x97a9b2=a115_0x149a;try{const _0x1bd54a=await fetch(_0x97a9b2(0x20e)+NPM_PACKAGE_NAME+_0x97a9b2(0x1e9),{'signal':AbortSignal[_0x97a9b2(0x209)](0x2710)});if(!_0x1bd54a['ok'])return null;const _0x37599b=await _0x1bd54a[_0x97a9b2(0x208)]();return _0x37599b['version']??null;}catch{return null;}}async function fetchLatestVersion(){const _0x54175c=a115_0x149a,_0x36ab3d=await fetchLatestNpmVersion();if(_0x36ab3d)return _0x36ab3d;const _0x543e97=await getCdnConfig();return _0x543e97?.[_0x54175c(0x1fb)]?.[_0x54175c(0x1f3)]??null;}async function execute(_0x4127c7){const _0x1556b8=a115_0x149a,_0x35a675=getCurrentVersion();console[_0x1556b8(0x212)](_0x1556b8(0x210)+_0x35a675);const _0x2dce8a=a115_0x1c1b40('Checking\x20for\x20updates...')[_0x1556b8(0x1f0)](),_0x35d606=await fetchLatestVersion();if(!_0x35d606)return _0x2dce8a[_0x1556b8(0x1ef)]('Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)'),console[_0x1556b8(0x212)](a115_0x859a9a['gray'](_0x1556b8(0x1ff)+NPM_PACKAGE_NAME+_0x1556b8(0x1eb))),{'ok':![],'message':_0x1556b8(0x206)};const _0x27c863=a115_0x2fb4b0['coerce'](_0x35a675),_0x2f108a=a115_0x2fb4b0[_0x1556b8(0x1e2)](_0x35d606);if(!_0x27c863||!_0x2f108a)return _0x2dce8a['fail'](_0x1556b8(0x20c)),{'ok':![],'message':_0x1556b8(0x20c)};if(!a115_0x2fb4b0['lt'](_0x27c863,_0x2f108a))return _0x2dce8a[_0x1556b8(0x20f)](_0x1556b8(0x1f6)+_0x35d606+')'),{'ok':!![]};_0x2dce8a[_0x1556b8(0x1fd)](_0x1556b8(0x1e5)+a115_0x859a9a[_0x1556b8(0x1f4)](_0x35a675)+_0x1556b8(0x1ec)+a115_0x859a9a['green'](_0x35d606));const _0x39bb9a=detectPackageManager(),_0x1dbaac=_0x39bb9a==='npm'?resolveNpmBin('npm'):_0x39bb9a,_0x67bb81=a115_0x1c1b40(_0x1556b8(0x1f8)+_0x39bb9a+_0x1556b8(0x1e4))['start']();try{return await execa(_0x1dbaac,[_0x1556b8(0x1f1),'-g',NPM_PACKAGE_NAME+'@latest'],{'stdio':_0x1556b8(0x1e8)}),_0x67bb81[_0x1556b8(0x20f)](_0x1556b8(0x1e6)+_0x35d606),console[_0x1556b8(0x212)](a115_0x859a9a[_0x1556b8(0x1ea)](_0x1556b8(0x20b))),{'ok':!![]};}catch(_0x4cdfa6){return _0x67bb81['fail'](_0x1556b8(0x1e7)),console[_0x1556b8(0x200)](a115_0x859a9a['red']('\x20\x20'+_0x4cdfa6[_0x1556b8(0x1fa)])),console[_0x1556b8(0x212)](a115_0x859a9a[_0x1556b8(0x1ea)](_0x1556b8(0x207)+_0x39bb9a+_0x1556b8(0x205)+NPM_PACKAGE_NAME+'@latest')),{'ok':![],'message':_0x4cdfa6[_0x1556b8(0x1fa)]};}}export const updateDefinition={'service':'update','command':'run','description':a115_0x3b933f(0x1f2),'risk':a115_0x3b933f(0x1ed),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x491b80,_0x2cf06a){const _0x5f05aa=a98_0x1be5,_0x59fb9c=_0x491b80();while(!![]){try{const _0x5dcf16=parseInt(_0x5f05aa(0x132))/0x1+-parseInt(_0x5f05aa(0x131))/0x2+parseInt(_0x5f05aa(0x130))/0x3+-parseInt(_0x5f05aa(0x133))/0x4+-parseInt(_0x5f05aa(0x134))/0x5+-parseInt(_0x5f05aa(0x135))/0x6+parseInt(_0x5f05aa(0x12f))/0x7;if(_0x5dcf16===_0x2cf06a)break;else _0x59fb9c['push'](_0x59fb9c['shift']());}catch(_0x5c97d7){_0x59fb9c['push'](_0x59fb9c['shift']());}}}(a98_0x13a8,0x72108));function a98_0x1be5(_0x11668e,_0x4f9b56){_0x11668e=_0x11668e-0x12f;const _0x13a87c=a98_0x13a8();let _0x1be566=_0x13a87c[_0x11668e];return _0x1be566;}import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];function a98_0x13a8(){const _0x5c1933=['3102282EadwJX','6279497RCYLzo','1642494qyxrSS','319454LSELAd','284228afhdfO','1377616dHNaVx','1202055SWkSfU'];a98_0x13a8=function(){return _0x5c1933;};return a98_0x13a8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a99_0x3366(){const _0x1d9ba1=['161FxVazb','bool','alias','4009Bolzjd','sdk','1250800VYBFlX','389635BAAeTa','operation','32202XVRzLX','470644SjfBzz','skip-imports','tableName','str','appCode','code','4815018BbFgJt','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','4dgUCip','name','539703yukSDj','string'];a99_0x3366=function(){return _0x1d9ba1;};return a99_0x3366();}const a99_0x50c5de=a99_0xb899;(function(_0x45a7b3,_0x39f20f){const _0x44d088=a99_0xb899,_0x8f8ab2=_0x45a7b3();while(!![]){try{const _0x4eb606=-parseInt(_0x44d088(0x182))/0x1+parseInt(_0x44d088(0x173))/0x2+parseInt(_0x44d088(0x17d))/0x3+-parseInt(_0x44d088(0x17b))/0x4*(-parseInt(_0x44d088(0x185))/0x5)+-parseInt(_0x44d088(0x172))/0x6*(-parseInt(_0x44d088(0x17f))/0x7)+parseInt(_0x44d088(0x184))/0x8+-parseInt(_0x44d088(0x179))/0x9;if(_0x4eb606===_0x39f20f)break;else _0x8f8ab2['push'](_0x8f8ab2['shift']());}catch(_0x20836a){_0x8f8ab2['push'](_0x8f8ab2['shift']());}}}(a99_0x3366,0x391ca));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';function a99_0xb899(_0x3463e1,_0xbe1bf5){_0x3463e1=_0x3463e1-0x172;const _0x336609=a99_0x3366();let _0xb899ae=_0x336609[_0x3463e1];return _0xb899ae;}import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':'codegen','command':a99_0x50c5de(0x183),'description':'Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','risk':'read','flags':[CODE_FLAG_OPTIONAL,{'name':a99_0x50c5de(0x181),'type':'string','description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'},{'name':a99_0x50c5de(0x186),'type':a99_0x50c5de(0x17e),'required':!![],'description':a99_0x50c5de(0x17a)},{'name':'skip-imports','type':'boolean','description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x66ced0){const _0x4b1645=a99_0x50c5de,{dataset:_0x59bc11,operation:_0x535b35}=await getOperationDetail(_0x66ced0[_0x4b1645(0x177)],_0x66ced0[_0x4b1645(0x176)](_0x4b1645(0x178)),_0x66ced0[_0x4b1645(0x176)](_0x4b1645(0x186))),_0x3b3e92=generateSdkCode(_0x59bc11,_0x535b35,{'includeImports':!_0x66ced0[_0x4b1645(0x180)](_0x4b1645(0x174))});return{'ok':!![],'data':{'dataset':{'name':_0x59bc11[_0x4b1645(0x17c)],'code':_0x59bc11[_0x4b1645(0x178)],'tableName':_0x59bc11[_0x4b1645(0x175)]},'operation':_0x66ced0[_0x4b1645(0x176)](_0x4b1645(0x186)),'code':_0x3b3e92}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a97_0x5f1b59=a97_0x1822;(function(_0xbde040,_0x3ca938){const _0x28f2af=a97_0x1822,_0x240148=_0xbde040();while(!![]){try{const _0xbdf447=parseInt(_0x28f2af(0x12a))/0x1+-parseInt(_0x28f2af(0x11d))/0x2+-parseInt(_0x28f2af(0x124))/0x3+parseInt(_0x28f2af(0x127))/0x4+-parseInt(_0x28f2af(0x12e))/0x5*(parseInt(_0x28f2af(0x11a))/0x6)+-parseInt(_0x28f2af(0x11e))/0x7+parseInt(_0x28f2af(0x128))/0x8*(parseInt(_0x28f2af(0x130))/0x9);if(_0xbdf447===_0x3ca938)break;else _0x240148['push'](_0x240148['shift']());}catch(_0x329596){_0x240148['push'](_0x240148['shift']());}}}(a97_0xdc71,0x82c8a));function a97_0x1822(_0x257a1a,_0x182336){_0x257a1a=_0x257a1a-0x11a;const _0xdc7165=a97_0xdc71();let _0x1822c4=_0xdc7165[_0x257a1a];return _0x1822c4;}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a97_0x5f1b59(0x120),'command':a97_0x5f1b59(0x125),'description':a97_0x5f1b59(0x11b),'risk':'read','flags':[SQLCODE_FLAG,{'name':a97_0x5f1b59(0x12f),'type':a97_0x5f1b59(0x126),'description':a97_0x5f1b59(0x121),'default':a97_0x5f1b59(0x123),'enum':[a97_0x5f1b59(0x123),a97_0x5f1b59(0x132)]},{'name':a97_0x5f1b59(0x122),'type':a97_0x5f1b59(0x131),'description':a97_0x5f1b59(0x11f)}],async 'execute'(_0x309a81){const _0x2cbdec=a97_0x5f1b59,_0x6db673=await getSqlQueryInfo(_0x309a81[_0x2cbdec(0x12d)],_0x309a81[_0x2cbdec(0x129)](_0x2cbdec(0x12c))),_0x28c703=_0x309a81[_0x2cbdec(0x129)](_0x2cbdec(0x12f))||'sdk',_0x272c0a=generateSqlCodeTemplate(_0x6db673,{'target':_0x28c703,'includeImports':!_0x309a81[_0x2cbdec(0x12b)]('no-imports')});return{'ok':!![],'data':{'sqlCode':_0x6db673['sqlCode'],'sqlName':_0x6db673[_0x2cbdec(0x11c)],'target':_0x28c703,'code':_0x272c0a}};}};function a97_0xdc71(){const _0x144c0e=['12TXOInS','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','sqlName','967896Bnetep','5463591afNIpZ','Omit\x20import\x20statements\x20from\x20generated\x20code','codegen','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','no-imports','sdk','1948701VZFwzh','sql','string','2842408Ddqpgn','24GYaeFw','str','530399Gplqok','bool','sqlcode','appCode','1155970FDbCru','target','5013315PxHvII','boolean','bff'];a97_0xdc71=function(){return _0x144c0e;};return a97_0xdc71();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a88_0x50be(_0xe9ee37,_0x13243c){_0xe9ee37=_0xe9ee37-0x10c;const _0x35f7d4=a88_0x35f7();let _0x50bea4=_0x35f7d4[_0xe9ee37];return _0x50bea4;}(function(_0x1b1637,_0x282f39){const _0x123794=a88_0x50be,_0x2f0c30=_0x1b1637();while(!![]){try{const _0x47d0d7=-parseInt(_0x123794(0x12a))/0x1*(parseInt(_0x123794(0x11d))/0x2)+-parseInt(_0x123794(0x10c))/0x3+parseInt(_0x123794(0x12b))/0x4*(parseInt(_0x123794(0x122))/0x5)+-parseInt(_0x123794(0x117))/0x6*(parseInt(_0x123794(0x114))/0x7)+-parseInt(_0x123794(0x118))/0x8+-parseInt(_0x123794(0x12c))/0x9+parseInt(_0x123794(0x115))/0xa;if(_0x47d0d7===_0x282f39)break;else _0x2f0c30['push'](_0x2f0c30['shift']());}catch(_0x3ec1b9){_0x2f0c30['push'](_0x2f0c30['shift']());}}}(a88_0x35f7,0x6dcfb));import{input,checkbox,select}from'@inquirer/prompts';import a88_0x3d9cc4 from'chalk';import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0x4794d1=a88_0x50be,_0x3deb63=await input({'message':'请输入\x20App\x20Code:','validate':_0x476f3e=>{const _0x2b6da3=a88_0x50be,_0x139ee9=validateAppcode(_0x476f3e[_0x2b6da3(0x111)]());return _0x139ee9['valid']||_0x139ee9[_0x2b6da3(0x11a)]||_0x2b6da3(0x132);}});return _0x3deb63[_0x4794d1(0x111)]();}export async function promptAppSelection(_0x2bb490){const _0x287caa=a88_0x50be,_0x5ac3a8=[{'name':a88_0x3d9cc4['yellow'](_0x287caa(0x10f)),'value':-0x1},..._0x2bb490[_0x287caa(0x10e)]((_0x580d39,_0x413587)=>({'name':_0x580d39[_0x287caa(0x119)]+'\x20\x20'+a88_0x3d9cc4[_0x287caa(0x126)]('('+_0x580d39[_0x287caa(0x120)]+')'),'value':_0x413587}))],_0xaa17cd=await checkbox({'message':_0x287caa(0x10d)+a88_0x3d9cc4['cyan'](_0x2bb490[_0x287caa(0x129)])+_0x287caa(0x12d),'choices':_0x5ac3a8,'loop':![]});if(_0xaa17cd[_0x287caa(0x127)](-0x1))return _0x287caa(0x11f);if(_0xaa17cd['length']===0x0)return'custom';return _0xaa17cd[_0x287caa(0x10e)](_0x23ed68=>_0x2bb490[_0x23ed68]);}export async function promptSingleAppSelection(_0x2960bd){const _0x3bd147=a88_0x50be,_0x4bf357=[{'name':a88_0x3d9cc4[_0x3bd147(0x126)](_0x3bd147(0x113)),'value':_0x3bd147(0x12e)},{'name':a88_0x3d9cc4[_0x3bd147(0x112)](_0x3bd147(0x10f)),'value':_0x3bd147(0x11f)},..._0x2960bd[_0x3bd147(0x10e)](_0x598977=>({'name':_0x598977['appName']+'\x20\x20'+a88_0x3d9cc4[_0x3bd147(0x126)]('('+_0x598977[_0x3bd147(0x120)]+')'),'value':_0x598977[_0x3bd147(0x120)]}))],_0xd00240=await select({'message':_0x3bd147(0x130),'choices':_0x4bf357});if(_0xd00240===_0x3bd147(0x12e))return'skip';if(_0xd00240===_0x3bd147(0x11f))return'custom';return _0x2960bd[_0x3bd147(0x128)](_0x327dd9=>_0x327dd9[_0x3bd147(0x120)]===_0xd00240);}export async function selectSingleAppcode(_0xbaf006){const _0x10cef4=a88_0x50be;if(!_0xbaf006)return writeCliSideChannelLine(a88_0x3d9cc4[_0x10cef4(0x126)](_0x10cef4(0x11c))),_fallbackOrSkip();writeCliSideChannelLine(_0x10cef4(0x116));let _0x1860f0;try{_0x1860f0=await withActiveCookie(_0xbaf006,()=>listRemoteApps());}catch(_0x152027){writeCliSideChannelLine(a88_0x3d9cc4['yellow'](_0x10cef4(0x11e)));if(_0x152027 instanceof Error)writeCliSideChannelLine(a88_0x3d9cc4[_0x10cef4(0x126)](_0x10cef4(0x123)+_0x152027[_0x10cef4(0x11a)]+')'));return _fallbackOrSkip();}if(_0x1860f0[_0x10cef4(0x129)]===0x0)return writeCliSideChannelLine(a88_0x3d9cc4[_0x10cef4(0x112)](_0x10cef4(0x131))),_fallbackOrSkip();const _0xa18f5e=await promptSingleAppSelection(_0x1860f0);if(_0xa18f5e===_0x10cef4(0x12e))return'';if(_0xa18f5e===_0x10cef4(0x11f))return promptCustomAppcode();return _0xa18f5e[_0x10cef4(0x120)];}export async function selectMultipleApps(_0x14c903){const _0x1b9afe=a88_0x50be;writeCliSideChannelLine(_0x1b9afe(0x116));let _0x425d07;try{_0x425d07=await withActiveCookie(_0x14c903,()=>listRemoteApps());}catch(_0x27d279){writeCliSideChannelLine(_0x1b9afe(0x11b));if(_0x27d279 instanceof Error)writeCliSideChannelLine(_0x1b9afe(0x123)+_0x27d279['message']+')');return _0x1b9afe(0x11f);}if(_0x425d07[_0x1b9afe(0x129)]===0x0)return writeCliSideChannelLine(_0x1b9afe(0x121)),_0x1b9afe(0x11f);return promptAppSelection(_0x425d07);}function a88_0x35f7(){const _0x180087=['7021584qPtWmx','appName','message','\x0a无法获取远程应用列表,请手动输入。','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','544sraONV','无法获取远程应用列表,请手动输入。','custom','appCode','\x0a未找到可用应用。','3405SaflyK','\x20\x20(','App\x20Code:','✎\x20手动输入','gray','includes','find','length','1032PCLFOz','1684bGSEyJ','1496097nDfHqb','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','skip','(跳过,稍后配置)','请选择要绑定的应用:','未找到可用应用。','Invalid\x20App\x20Code','1125672PfpmrD','获取到\x20','map','✎\x20自定义输入\x20appcode','manual','trim','yellow','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','2415pCTPPM','27430400xEvkds','正在获取可用应用列表...','15306NAjwKu'];a88_0x35f7=function(){return _0x180087;};return a88_0x35f7();}async function _fallbackOrSkip(){const _0x17d434=a88_0x50be,_0x398ec5=await select({'message':_0x17d434(0x124),'choices':[{'name':a88_0x3d9cc4['gray'](_0x17d434(0x12f)),'value':'skip'},{'name':a88_0x3d9cc4['yellow'](_0x17d434(0x125)),'value':_0x17d434(0x110)}]});if(_0x398ec5===_0x17d434(0x12e))return'';return promptCustomAppcode();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0x5e1091=a87_0x44a1;(function(_0xce7737,_0x1c6e43){const _0x5024ba=a87_0x44a1,_0x28a5df=_0xce7737();while(!![]){try{const _0x4f28f9=-parseInt(_0x5024ba(0xf1))/0x1*(-parseInt(_0x5024ba(0xe4))/0x2)+parseInt(_0x5024ba(0xdd))/0x3*(parseInt(_0x5024ba(0xdb))/0x4)+-parseInt(_0x5024ba(0xed))/0x5*(parseInt(_0x5024ba(0xe7))/0x6)+parseInt(_0x5024ba(0xde))/0x7+parseInt(_0x5024ba(0xe2))/0x8+-parseInt(_0x5024ba(0xe8))/0x9*(-parseInt(_0x5024ba(0xd9))/0xa)+parseInt(_0x5024ba(0xdc))/0xb*(-parseInt(_0x5024ba(0xdf))/0xc);if(_0x4f28f9===_0x1c6e43)break;else _0x28a5df['push'](_0x28a5df['shift']());}catch(_0x416b22){_0x28a5df['push'](_0x28a5df['shift']());}}}(a87_0x4d4b,0xc5be7));function a87_0x44a1(_0x315426,_0x510bb7){_0x315426=_0x315426-0xd9;const _0x4d4bbb=a87_0x4d4b();let _0x44a11e=_0x4d4bbb[_0x315426];return _0x44a11e;}function a87_0x4d4b(){const _0x386f4a=['POSTGRESQL','82031pmjCZU','160RwrZbx','string','39136VqFvyg','22LzaQAR','360YurbSE','5421353ADvFMh','21734796BioHuA','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','dbtype','7884400nIhqbG','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','2Hyvpoj','sqlcode','code','42cVtrMQ','806256kWWMuE','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','Dataset\x20code\x20(32-char\x20hex\x20UUID)','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','MYSQL','12185CZuzcr','appcode','Database\x20product\x20type'];a87_0x4d4b=function(){return _0x386f4a;};return a87_0x4d4b();}export const CODE_FLAG={'name':a87_0x5e1091(0xe6),'type':a87_0x5e1091(0xda),'required':!![],'description':a87_0x5e1091(0xea),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a87_0x5e1091(0xeb)}};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const SQLCODE_FLAG={'name':a87_0x5e1091(0xe5),'type':a87_0x5e1091(0xda),'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':a87_0x5e1091(0xe3)}};export const APPCODE_FLAG_OPTIONAL={'name':a87_0x5e1091(0xee),'type':a87_0x5e1091(0xda),'required':![],'description':a87_0x5e1091(0xe0)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':'number','required':!![],'description':a87_0x5e1091(0xe9)};export const DB_TYPE_FLAG={'name':a87_0x5e1091(0xe1),'type':a87_0x5e1091(0xda),'required':!![],'description':a87_0x5e1091(0xef),'enum':[a87_0x5e1091(0xec),a87_0x5e1091(0xf0)]};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3dbce9,_0x56df59){const _0x3345f6=a86_0x491b,_0x26b51d=_0x3dbce9();while(!![]){try{const _0x24a424=-parseInt(_0x3345f6(0x17f))/0x1*(-parseInt(_0x3345f6(0x182))/0x2)+-parseInt(_0x3345f6(0x181))/0x3*(-parseInt(_0x3345f6(0x18f))/0x4)+parseInt(_0x3345f6(0x18a))/0x5*(parseInt(_0x3345f6(0x183))/0x6)+parseInt(_0x3345f6(0x180))/0x7+-parseInt(_0x3345f6(0x185))/0x8*(-parseInt(_0x3345f6(0x187))/0x9)+parseInt(_0x3345f6(0x184))/0xa+-parseInt(_0x3345f6(0x18c))/0xb*(parseInt(_0x3345f6(0x188))/0xc);if(_0x24a424===_0x56df59)break;else _0x26b51d['push'](_0x26b51d['shift']());}catch(_0x55caf3){_0x26b51d['push'](_0x26b51d['shift']());}}}(a86_0x76f0,0x39f39));function a86_0x76f0(){const _0x549256=['trim','5Nenomv','test','2596wETjMy','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','App\x20Code\x20cannot\x20be\x20empty','16KYgnot','App\x20Code\x20cannot\x20exceed\x20100\x20characters','1seCanT','2925657YgpXko','105213nbbSUU','444922FYIPZa','2462442wtbGgU','3181360WmCQZw','1569608iKXiCN','length','18xZKVBZ','84624mxuKaH'];a86_0x76f0=function(){return _0x549256;};return a86_0x76f0();}function a86_0x491b(_0x39a266,_0x5bbc9f){_0x39a266=_0x39a266-0x17f;const _0x76f0e0=a86_0x76f0();let _0x491b1e=_0x76f0e0[_0x39a266];return _0x491b1e;}export function validateAppcode(_0x354c70){const _0x831d40=a86_0x491b,_0x22f209=_0x354c70[_0x831d40(0x189)]();if(!_0x22f209)return{'valid':![],'message':_0x831d40(0x18e)};if(_0x22f209[_0x831d40(0x186)]>0x64)return{'valid':![],'message':_0x831d40(0x190)};if(!/^[A-Za-z0-9_-]+$/[_0x831d40(0x18b)](_0x22f209))return{'valid':![],'message':_0x831d40(0x18d)};return{'valid':!![]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a96_0x2f2c(_0x5f5174,_0x22dffb){_0x5f5174=_0x5f5174-0x1d3;const _0x3e9c15=a96_0x3e9c();let _0x2f2ce4=_0x3e9c15[_0x5f5174];return _0x2f2ce4;}function a96_0x3e9c(){const _0x25707f=['appcode','2161224oFZGcx','string','548389AEhSWW','5FcJoxW','\x20config\x20get\x20--key\x20<key>','object','read','2661155NadTrl','validation','Key\x20not\x20found:\x20','2753544EzLzdm','5144304KugAnX','711432LWqzfG','1532980MmAaYR','get','key'];a96_0x3e9c=function(){return _0x25707f;};return a96_0x3e9c();}const a96_0x483681=a96_0x2f2c;(function(_0x5f3baa,_0xf0facc){const _0x1fbb2b=a96_0x2f2c,_0x5b4039=_0x5f3baa();while(!![]){try{const _0x2c2964=-parseInt(_0x1fbb2b(0x1d4))/0x1+-parseInt(_0x1fbb2b(0x1df))/0x2+parseInt(_0x1fbb2b(0x1e3))/0x3+parseInt(_0x1fbb2b(0x1dc))/0x4*(parseInt(_0x1fbb2b(0x1d5))/0x5)+parseInt(_0x1fbb2b(0x1dd))/0x6+-parseInt(_0x1fbb2b(0x1d9))/0x7+-parseInt(_0x1fbb2b(0x1de))/0x8;if(_0x2c2964===_0xf0facc)break;else _0x5b4039['push'](_0x5b4039['shift']());}catch(_0x13bbdd){_0x5b4039['push'](_0x5b4039['shift']());}}}(a96_0x3e9c,0x75b9d));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0xdbb196){const _0x4e74c5=a96_0x2f2c,_0x31934b=_0xdbb196['str']('key');if(!_0x31934b)throw CliErrors['validation']('Missing\x20key.','Usage:\x20'+CLI_BIN_NAME+_0x4e74c5(0x1d6));const _0x1f3092=readConfig(),_0x191fe0=_0x31934b==='app'?_0x4e74c5(0x1e2):_0x31934b,_0x5c85b2=_0x1f3092[_0x191fe0];if(_0x5c85b2===undefined)throw CliErrors[_0x4e74c5(0x1da)](_0x4e74c5(0x1db)+_0x31934b);return{'ok':!![],'data':typeof _0x5c85b2===_0x4e74c5(0x1d7)?_0x5c85b2:{[_0x191fe0]:_0x5c85b2},'message':typeof _0x5c85b2===_0x4e74c5(0x1d7)?undefined:String(_0x5c85b2)};}export const configGetDefinition={'service':'config','command':a96_0x483681(0x1e0),'description':'Get\x20a\x20config\x20value\x20by\x20key','risk':a96_0x483681(0x1d8),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a96_0x483681(0x1e1),'type':a96_0x483681(0x1d3),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x250d54,_0x40e1c5){const _0x382b8d=a93_0x8230,_0x30b344=_0x250d54();while(!![]){try{const _0x11b6c4=parseInt(_0x382b8d(0x1af))/0x1+parseInt(_0x382b8d(0x1b9))/0x2+-parseInt(_0x382b8d(0x1b7))/0x3*(parseInt(_0x382b8d(0x1b4))/0x4)+parseInt(_0x382b8d(0x1b5))/0x5+-parseInt(_0x382b8d(0x1b2))/0x6*(parseInt(_0x382b8d(0x1b3))/0x7)+parseInt(_0x382b8d(0x1b0))/0x8*(parseInt(_0x382b8d(0x1b6))/0x9)+parseInt(_0x382b8d(0x1b1))/0xa*(-parseInt(_0x382b8d(0x1b8))/0xb);if(_0x11b6c4===_0x40e1c5)break;else _0x30b344['push'](_0x30b344['shift']());}catch(_0x9a60db){_0x30b344['push'](_0x30b344['shift']());}}}(a93_0x2d79,0x41ed6));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];function a93_0x8230(_0x408be3,_0x115e9c){_0x408be3=_0x408be3-0x1af;const _0x2d7911=a93_0x2d79();let _0x82305b=_0x2d7911[_0x408be3];return _0x82305b;}function a93_0x2d79(){const _0x33151a=['1786312PrEjcl','10phXQMN','89058QYZxSi','119HbUJEK','19620kBJEcW','1629070PuDIsc','9RUxtCL','309geiiMu','4531263wQIuyp','938904uLMTQE','420962bigLAH'];a93_0x2d79=function(){return _0x33151a;};return a93_0x2d79();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a92_0x5cb507=a92_0x4c9c;(function(_0xb18f7a,_0x29d667){const _0x47d38e=a92_0x4c9c,_0x4d3f7b=_0xb18f7a();while(!![]){try{const _0x2a4d69=-parseInt(_0x47d38e(0x71))/0x1+-parseInt(_0x47d38e(0x6e))/0x2+parseInt(_0x47d38e(0x74))/0x3+-parseInt(_0x47d38e(0x72))/0x4*(-parseInt(_0x47d38e(0x78))/0x5)+-parseInt(_0x47d38e(0x76))/0x6*(parseInt(_0x47d38e(0x75))/0x7)+-parseInt(_0x47d38e(0x6d))/0x8+parseInt(_0x47d38e(0x77))/0x9;if(_0x2a4d69===_0x29d667)break;else _0x4d3f7b['push'](_0x4d3f7b['shift']());}catch(_0x295947){_0x4d3f7b['push'](_0x4d3f7b['shift']());}}}(a92_0x5134,0x96957));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x1e1cf2){const _0x183fa2=a92_0x4c9c,_0x3bdd90=_0x1e1cf2[_0x183fa2(0x6c)](_0x183fa2(0x73))?readScopedConfig(_0x183fa2(0x73)):readConfig();return{'ok':!![],'data':_0x3bdd90};}function a92_0x4c9c(_0x49b9ba,_0x689b7d){_0x49b9ba=_0x49b9ba-0x6c;const _0x51345d=a92_0x5134();let _0x4c9c77=_0x51345d[_0x49b9ba];return _0x4c9c77;}function a92_0x5134(){const _0x2634a6=['bool','7529784GkFZJI','839326kiVKdJ','config','List\x20all\x20config\x20values','629230pCXZhA','54500YWOpHd','global','1153116ZuUsdu','7010199iDMZHk','6SBiLFI','24724053JcLJrH','175YmBWce','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)'];a92_0x5134=function(){return _0x2634a6;};return a92_0x5134();}export const configListDefinition={'service':a92_0x5cb507(0x6f),'command':'list','description':a92_0x5cb507(0x70),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a92_0x5cb507(0x73),'type':'boolean','description':a92_0x5cb507(0x79),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a94_0x35698d=a94_0x4819;(function(_0x2ae8dc,_0x55b015){const _0x27c221=a94_0x4819,_0x4cb194=_0x2ae8dc();while(!![]){try{const _0x403126=-parseInt(_0x27c221(0x1a1))/0x1*(parseInt(_0x27c221(0x1a3))/0x2)+-parseInt(_0x27c221(0x17b))/0x3*(-parseInt(_0x27c221(0x170))/0x4)+parseInt(_0x27c221(0x188))/0x5+-parseInt(_0x27c221(0x19b))/0x6+parseInt(_0x27c221(0x1a2))/0x7*(-parseInt(_0x27c221(0x199))/0x8)+parseInt(_0x27c221(0x16e))/0x9*(parseInt(_0x27c221(0x19e))/0xa)+parseInt(_0x27c221(0x18b))/0xb*(parseInt(_0x27c221(0x17c))/0xc);if(_0x403126===_0x55b015)break;else _0x4cb194['push'](_0x4cb194['shift']());}catch(_0x3ea05e){_0x4cb194['push'](_0x4cb194['shift']());}}}(a94_0x1b9b,0xd6ea3));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function a94_0x1b9b(){const _0x502a21=['`,\x20`','Invalid\x20locale\x20value.','Set\x20a\x20config\x20value','Missing\x20key.','Project','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','riskLevel','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','225304esjVXx','includes','951060TMlLcs','\x20app\x20add\x20<name>\x20--appcode\x20','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','9887160vKWnoD','env','key','1479082lKDkEh','259bYRtXg','2wJfFtL','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','9ACayAX','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','16FAjvWT','string','bool','str','appcode','keys','global','\x22.\x20Allowed:\x20','\x20set\x20to:\x20','object','app','68451fRXude','24725892MMMUPd','\x22\x20is\x20not\x20settable.','set','locale','Missing\x20value.','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','Invalid\x20value\x20for\x20\x22','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','Config\x20value','Top-level\x20key\x20\x22','Usage:\x20','apps','2097195ShQzKa','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','length','11BOExvq','value','config','validation','Global'];a94_0x1b9b=function(){return _0x502a21;};return a94_0x1b9b();}import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';async function execute(_0x31b99e){const _0xd05218=a94_0x4819,_0x16a77b=_0x31b99e[_0xd05218(0x173)](_0xd05218(0x1a0)),_0xc5db26=_0x31b99e[_0xd05218(0x173)]('value');if(!_0x16a77b)throw CliErrors[_0xd05218(0x18e)](_0xd05218(0x193),'Usage:\x20'+CLI_BIN_NAME+_0xd05218(0x1a4));if(_0xc5db26===undefined||_0xc5db26==='')throw CliErrors[_0xd05218(0x18e)](_0xd05218(0x180),_0xd05218(0x186)+CLI_BIN_NAME+_0xd05218(0x1a4));if(_0xc5db26['length']>0x1f4)throw CliErrors[_0xd05218(0x18e)](_0xd05218(0x181));if(!isTopLevelConfigKey(_0x16a77b))throw CliErrors['validation'](_0xd05218(0x185)+_0x16a77b+_0xd05218(0x17d),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(_0x16a77b===_0xd05218(0x197))throw CliErrors[_0xd05218(0x18e)](_0xd05218(0x189));if(CONFIG_ENUM_VALUES[_0x16a77b]&&!CONFIG_ENUM_VALUES[_0x16a77b][_0xd05218(0x19a)](_0xc5db26))throw CliErrors['validation'](_0xd05218(0x182)+_0x16a77b+_0xd05218(0x177)+CONFIG_ENUM_VALUES[_0x16a77b]['join'](',\x20'));if(_0x16a77b===_0xd05218(0x17f)&&!normalizeLocale(_0xc5db26))throw CliErrors[_0xd05218(0x18e)](_0xd05218(0x191),_0xd05218(0x195));const _0x1d4154={'global':_0x31b99e[_0xd05218(0x172)](_0xd05218(0x176))},_0x1d1fe8=resolveWriteScope(_0x1d4154),_0x15268d=readScopedConfig(_0x1d1fe8);let _0x3bfef0=_0x16a77b,_0x397ed3=_0xc5db26;_0x16a77b===_0xd05218(0x17a)&&(_0x3bfef0=_0xd05218(0x174),delete _0x15268d['app']);_0x16a77b==='locale'&&(_0x397ed3=normalizeLocale(_0xc5db26));if(_0x16a77b===_0xd05218(0x19f)){_0x397ed3=normalizeEnv(_0xc5db26);if(!isProduction(_0x397ed3)&&!isDaily(_0x397ed3))throw CliErrors['validation'](_0xd05218(0x196),_0xd05218(0x183));}if(_0x16a77b===_0xd05218(0x174)){const _0x211825=_0x15268d['apps']&&typeof _0x15268d[_0xd05218(0x187)]===_0xd05218(0x179)?Object[_0xd05218(0x175)](_0x15268d['apps']):[];if(_0x211825[_0xd05218(0x18a)]>0x0)throw CliErrors['validation'](_0xd05218(0x198),'Use\x20`'+CLI_BIN_NAME+_0xd05218(0x19c)+_0x397ed3+_0xd05218(0x190)+CLI_BIN_NAME+'\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.');const _0x2504ef=buildCanonicalProjectConfig({..._0x15268d},{'appCodes':[_0x397ed3],'env':typeof _0x15268d['env']===_0xd05218(0x171)?_0x15268d[_0xd05218(0x19f)]:undefined});writeScopedConfig(_0x2504ef,_0x1d1fe8);const _0x3baf4d=_0x1d1fe8==='global'?'Global':'Project';return{'ok':!![],'message':'✓\x20'+_0x3baf4d+'\x20appcode\x20set\x20to:\x20'+_0x397ed3+_0xd05218(0x16f)};}_0x15268d[_0x3bfef0]=_0x397ed3,writeScopedConfig(_0x15268d,_0x1d1fe8);const _0x3bbbb1=_0x1d1fe8===_0xd05218(0x176)?_0xd05218(0x18f):_0xd05218(0x194);return{'ok':!![],'message':'✓\x20'+_0x3bbbb1+'\x20'+_0x3bfef0+_0xd05218(0x178)+_0x397ed3};}function a94_0x4819(_0x4b3dea,_0x3f1f7d){_0x4b3dea=_0x4b3dea-0x16e;const _0x1b9b62=a94_0x1b9b();let _0x4819e5=_0x1b9b62[_0x4b3dea];return _0x4819e5;}export const configSetDefinition={'service':a94_0x35698d(0x18d),'command':a94_0x35698d(0x17e),'description':a94_0x35698d(0x192),'risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a94_0x35698d(0x1a0),'type':a94_0x35698d(0x171),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a94_0x35698d(0x18c),'type':a94_0x35698d(0x171),'description':a94_0x35698d(0x184),'required':!![]},{'name':'global','type':'boolean','description':a94_0x35698d(0x19d),'default':![]}],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3a8abd,_0x51ef1c){var _0x131290=a95_0x259c,_0x2e1509=_0x3a8abd();while(!![]){try{var _0x12e304=parseInt(_0x131290(0x165))/0x1+parseInt(_0x131290(0x161))/0x2*(-parseInt(_0x131290(0x162))/0x3)+-parseInt(_0x131290(0x158))/0x4*(parseInt(_0x131290(0x15c))/0x5)+parseInt(_0x131290(0x159))/0x6*(-parseInt(_0x131290(0x160))/0x7)+parseInt(_0x131290(0x15f))/0x8*(parseInt(_0x131290(0x156))/0x9)+parseInt(_0x131290(0x166))/0xa*(parseInt(_0x131290(0x157))/0xb)+parseInt(_0x131290(0x164))/0xc;if(_0x12e304===_0x51ef1c)break;else _0x2e1509['push'](_0x2e1509['shift']());}catch(_0x3398b9){_0x2e1509['push'](_0x2e1509['shift']());}}}(a95_0x55bf,0x890d6));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';function a95_0x259c(_0x377168,_0x2a9ff8){_0x377168=_0x377168-0x156;var _0x55bf8d=a95_0x55bf();var _0x259c79=_0x55bf8d[_0x377168];return _0x259c79;}function a95_0x55bf(){var _0x82bd6b=['project','validation','16SRscQR','7HYPTBn','25018dRyFrA','204YgbBws','global','13231308YVyCRB','551435DavHUW','41740BuiNGR','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','822312woyKSS','2321rKvoVW','1236LMTxOS','3329730oIxHKu','\x20init`\x20first.','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','12145EiyHQv'];a95_0x55bf=function(){return _0x82bd6b;};return a95_0x55bf();}import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x17f735){var _0x1df4a0=a95_0x259c;if(_0x17f735[_0x1df4a0(0x163)])return _0x1df4a0(0x163);if(!isInProject())throw CliErrors[_0x1df4a0(0x15e)](_0x1df4a0(0x15b),_0x1df4a0(0x167)+CLI_BIN_NAME+_0x1df4a0(0x15a));return _0x1df4a0(0x15d);}export function readScopedConfig(_0x4644f1){return readConfigFile(resolveWriteConfigPath(_0x4644f1));}export function writeScopedConfig(_0x4278c7,_0x508000){writeConfigFile(resolveWriteConfigPath(_0x508000),_0x4278c7);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112_0x573025=a112_0x55bc;(function(_0xe94f9,_0x48ea95){const _0x31141d=a112_0x55bc,_0x3fa9eb=_0xe94f9();while(!![]){try{const _0x227953=-parseInt(_0x31141d(0x181))/0x1*(-parseInt(_0x31141d(0x1a7))/0x2)+-parseInt(_0x31141d(0x179))/0x3+parseInt(_0x31141d(0x18e))/0x4+parseInt(_0x31141d(0x1ac))/0x5*(-parseInt(_0x31141d(0x186))/0x6)+parseInt(_0x31141d(0x1af))/0x7*(-parseInt(_0x31141d(0x17e))/0x8)+parseInt(_0x31141d(0x1a3))/0x9*(-parseInt(_0x31141d(0x1b1))/0xa)+parseInt(_0x31141d(0x1ae))/0xb;if(_0x227953===_0x48ea95)break;else _0x3fa9eb['push'](_0x3fa9eb['shift']());}catch(_0x3c7de7){_0x3fa9eb['push'](_0x3fa9eb['shift']());}}}(a112_0x517d,0x402e9));import{getDatasetDetail}from'../../core/api-client.js';function a112_0x55bc(_0x16ed78,_0x34b86b){_0x16ed78=_0x16ed78-0x170;const _0x517d41=a112_0x517d();let _0x55bcb5=_0x517d41[_0x16ed78];return _0x55bcb5;}import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x5f25dd){const _0x536b1d=a112_0x55bc;if(_0x5f25dd['deleted'])return null;const _0x315229=Boolean(_0x5f25dd[_0x536b1d(0x19f)]!==undefined||_0x5f25dd[_0x536b1d(0x17a)]!==undefined);let _0x56eb0d={};if(!_0x315229&&typeof _0x5f25dd[_0x536b1d(0x182)]===_0x536b1d(0x185))try{_0x56eb0d=JSON['parse'](_0x5f25dd['extend']);}catch{}const _0xc225bf=_0x315229?_0x5f25dd['name']:_0x5f25dd['code'],_0x51f198=_0x315229?_0x5f25dd[_0x536b1d(0x19f)]:_0x5f25dd[_0x536b1d(0x197)],_0x44890c=_0x315229?_0x5f25dd['doType']:_0x5f25dd[_0x536b1d(0x1ad)]||_0x5f25dd[_0x536b1d(0x17f)],_0xb33059=_0x315229?_0x5f25dd[_0x536b1d(0x177)]===!![]:_0x56eb0d[_0x536b1d(0x177)]===!![],_0x58d820=_0x315229?_0x5f25dd[_0x536b1d(0x18f)]===!![]:_0x56eb0d[_0x536b1d(0x18f)]===!![],_0xf63a71=_0x315229?_0x5f25dd['options']??null:_0x56eb0d[_0x536b1d(0x19b)]??null,_0x21a417={'name':_0xc225bf,'displayName':_0x51f198||_0xc225bf,'type':_0x44890c,'dbType':_0x5f25dd[_0x536b1d(0x198)],'pk':_0xb33059,'required':_0x58d820,'description':_0x5f25dd[_0x536b1d(0x1a9)]||undefined};return Array[_0x536b1d(0x1a5)](_0xf63a71)&&_0xf63a71[_0x536b1d(0x18b)]>0x0&&(_0x21a417[_0x536b1d(0x19b)]=_0xf63a71),_0x21a417;}function parseJsonMaybe(_0x5280a9){const _0x976f63=a112_0x55bc;if(typeof _0x5280a9!=='string')return _0x5280a9;try{return JSON[_0x976f63(0x1b2)](_0x5280a9);}catch{return _0x5280a9;}}function a112_0x517d(){const _0x1b37be=['read','9TLmVSj','code','isArray','dataset','2Xzerrg','toTableName','description','beforeScriptId','modifierNameField','5XGcQsu','type','6116506ZnvlsC','126959xVpqEZ','dbId','3687910RzboRW','parse','fields','relations','dbName','dblinkInfoDTO','createTimeField','title','responseFields','host','dbtableConfig','method','relatedPageInfoList','pkField','tableName','1464420sEBeby','doType','toDatasetName','toFieldLabel','modifierIdField','80tndbyz','dataType','afterScriptId','365169LkQisu','extend','responseBody','operations','string','298674XfAGfN','allFieldNames','object','creatorNameField','properties','length','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','datasetKey','1719016NaaXjB','required','formatRules','entries','creatorIdField','doVersion','labelField','map','indexes','name','dbType','push','source','options','filter','validateRules','requestBody','displayName','trim','allFields'];a112_0x517d=function(){return _0x1b37be;};return a112_0x517d();}function normalizeOperationEntry(_0x28c82b,_0x317470){const _0x171181=a112_0x55bc;if(!_0x317470||typeof _0x317470!==_0x171181(0x188))return null;if(!_0x317470[_0x171181(0x175)]||!_0x317470['path'])return null;const _0x50be32={'name':_0x28c82b,'method':_0x317470[_0x171181(0x175)],'path':_0x317470['path']};if(_0x317470[_0x171181(0x173)])_0x50be32[_0x171181(0x173)]=_0x317470['host'];if(_0x317470[_0x171181(0x19e)]!=null){const _0x2e9c2b=parseJsonMaybe(_0x317470['requestBody']);_0x50be32['requestBody']=_0x2e9c2b;}if(_0x317470['responseBody']!=null){const _0xa85e8e=parseJsonMaybe(_0x317470[_0x171181(0x183)]);_0x50be32['responseBody']=_0xa85e8e;}if(_0x317470[_0x171181(0x1aa)]!=null)_0x50be32[_0x171181(0x1aa)]=_0x317470[_0x171181(0x1aa)];if(_0x317470[_0x171181(0x180)]!=null)_0x50be32[_0x171181(0x180)]=_0x317470['afterScriptId'];if(Array[_0x171181(0x1a5)](_0x317470['requestFields']))_0x50be32['requestFields']=_0x317470['requestFields'];if(Array['isArray'](_0x317470[_0x171181(0x172)]))_0x50be32[_0x171181(0x172)]=_0x317470[_0x171181(0x172)];return _0x50be32;}function summarizeDbtable(_0x2bd750){const _0x140a1e=a112_0x55bc,_0x234439={},_0x571499=[_0x140a1e(0x1b0),_0x140a1e(0x1b5),_0x140a1e(0x178),_0x140a1e(0x18d),'pkField',_0x140a1e(0x1a1),'logicField',_0x140a1e(0x170),'updateTimeField',_0x140a1e(0x192),_0x140a1e(0x189),_0x140a1e(0x17d),_0x140a1e(0x1ab),_0x140a1e(0x194),_0x140a1e(0x1b6)];for(const _0x2bba86 of _0x571499){if(_0x2bd750[_0x2bba86]!==undefined)_0x234439[_0x2bba86]=_0x2bd750[_0x2bba86];}return typeof _0x234439[_0x140a1e(0x1a1)]===_0x140a1e(0x185)&&_0x234439[_0x140a1e(0x1a1)]['length']>0x0&&(_0x234439[_0x140a1e(0x187)]=_0x234439[_0x140a1e(0x1a1)]['split'](',')[_0x140a1e(0x195)](_0x580b98=>_0x580b98[_0x140a1e(0x1a0)]())['filter'](Boolean)),_0x234439;}function normalizeRelatedPages(_0x2e5ece){const _0x3921d8=a112_0x55bc;if(!Array[_0x3921d8(0x1a5)](_0x2e5ece))return[];return _0x2e5ece[_0x3921d8(0x19c)](_0x57fd24=>_0x57fd24&&typeof _0x57fd24===_0x3921d8(0x188))['map'](_0x256671=>({'id':_0x256671['id'],'type':_0x256671[_0x3921d8(0x1ad)],'code':_0x256671[_0x3921d8(0x1a4)],'title':_0x256671[_0x3921d8(0x171)],'deleted':_0x256671['deleted']===!![]}));}export const datasetDetail={'service':a112_0x573025(0x1a6),'command':'detail','description':'Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','risk':a112_0x573025(0x1a2),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':'string','description':a112_0x573025(0x18c)}],async 'execute'(_0x222f99){const _0x7a304a=a112_0x573025,_0x17a9e3=await getDatasetDetail(_0x222f99['str'](_0x7a304a(0x1a4))),_0x246efb=Array[_0x7a304a(0x1a5)](_0x17a9e3[_0x7a304a(0x1b3)])?_0x17a9e3[_0x7a304a(0x1b3)]:Array[_0x7a304a(0x1a5)](_0x17a9e3[_0x7a304a(0x18a)])?_0x17a9e3[_0x7a304a(0x18a)]:[],_0x4a2e22=_0x246efb['map'](_0x46474b=>normalizeField(_0x46474b))[_0x7a304a(0x19c)](_0x55bace=>_0x55bace!==null),_0x896f0c=_0x17a9e3[_0x7a304a(0x184)]??{},_0x40d85b=[];for(const [_0x329770,_0x849130]of Object[_0x7a304a(0x191)](_0x896f0c)){const _0x137d71=normalizeOperationEntry(_0x329770,_0x849130);if(_0x137d71)_0x40d85b[_0x7a304a(0x199)](_0x137d71);}const _0x466ca8=_0x17a9e3[_0x7a304a(0x174)]??{},_0x106057=_0x17a9e3[_0x7a304a(0x1a6)]??{},_0x23cd8e=_0x466ca8[_0x7a304a(0x1b0)]!=null?{'id':_0x466ca8['dbId'],'name':_0x466ca8[_0x7a304a(0x1b5)]??null}:undefined;let _0x1e8afc;return typeof _0x17a9e3[_0x7a304a(0x182)]==='string'&&(_0x1e8afc=parseJsonMaybe(_0x17a9e3[_0x7a304a(0x182)])),{'ok':!![],'data':{'id':_0x17a9e3['modelId']??_0x17a9e3['id'],'name':_0x17a9e3[_0x7a304a(0x197)],'code':_0x17a9e3['modelCode']||_0x17a9e3[_0x7a304a(0x1a4)],'doVersion':_0x17a9e3[_0x7a304a(0x193)],'description':_0x17a9e3[_0x7a304a(0x1a9)]||_0x106057['tableComment']||undefined,'source':_0x17a9e3[_0x7a304a(0x19a)]||_0x106057['sourceType'],'table':_0x466ca8[_0x7a304a(0x178)]||_0x106057[_0x7a304a(0x178)],'datasetKey':_0x466ca8[_0x7a304a(0x18d)],'pk':_0x466ca8[_0x7a304a(0x177)],'db':_0x23cd8e,'dbtable':summarizeDbtable(_0x466ca8),'fields':_0x4a2e22,'operations':_0x40d85b,'indexes':Array['isArray'](_0x106057[_0x7a304a(0x196)])?_0x106057[_0x7a304a(0x196)]:[],'relations':Array[_0x7a304a(0x1a5)](_0x17a9e3[_0x7a304a(0x1b4)])?_0x17a9e3[_0x7a304a(0x1b4)][_0x7a304a(0x195)](_0x58f2e6=>({'fromField':_0x58f2e6['fromField'],'toDataset':_0x58f2e6[_0x7a304a(0x17b)],'toCode':_0x58f2e6['toDatasetCode'],'toTable':_0x58f2e6[_0x7a304a(0x1a8)],'toField':_0x58f2e6['toField'],'labelField':_0x58f2e6[_0x7a304a(0x17c)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x17a9e3[_0x7a304a(0x176)]),...Array['isArray'](_0x17a9e3['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x17a9e3['columnCodeListWithDeleted']}:{},'formatRules':Array['isArray'](_0x17a9e3[_0x7a304a(0x190)])?_0x17a9e3[_0x7a304a(0x190)]:[],'validateRules':Array[_0x7a304a(0x1a5)](_0x17a9e3[_0x7a304a(0x19d)])?_0x17a9e3[_0x7a304a(0x19d)]:[],..._0x1e8afc!==undefined?{'extend':_0x1e8afc}:{},'stats':{'fieldCount':_0x4a2e22[_0x7a304a(0x18b)],'operationCount':_0x40d85b['length']}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x461e9c,_0x4469c3){const _0x5124bd=a111_0x58cd,_0x1e1940=_0x461e9c();while(!![]){try{const _0x3968fe=parseInt(_0x5124bd(0x133))/0x1+-parseInt(_0x5124bd(0x134))/0x2*(-parseInt(_0x5124bd(0x139))/0x3)+-parseInt(_0x5124bd(0x135))/0x4+parseInt(_0x5124bd(0x13a))/0x5*(-parseInt(_0x5124bd(0x137))/0x6)+-parseInt(_0x5124bd(0x136))/0x7+parseInt(_0x5124bd(0x138))/0x8+parseInt(_0x5124bd(0x132))/0x9;if(_0x3968fe===_0x4469c3)break;else _0x1e1940['push'](_0x1e1940['shift']());}catch(_0x2d36e7){_0x1e1940['push'](_0x1e1940['shift']());}}}(a111_0x314d,0xca82d));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetOperations}from'../../commands/dataset/operations.js';import{datasetLinks}from'../../commands/dataset/links.js';function a111_0x58cd(_0x42492e,_0x16b469){_0x42492e=_0x42492e-0x132;const _0x314deb=a111_0x314d();let _0x58cde8=_0x314deb[_0x42492e];return _0x58cde8;}export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];function a111_0x314d(){const _0x5a262a=['5173280EgsXFP','12Arfgmh','10286872bhYVNN','33618qcBSVk','1174155KRLhwy','95562VHrUTo','70797yKCOqC','246eIMcRn','2829700hqcXqn'];a111_0x314d=function(){return _0x5a262a;};return a111_0x314d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a110_0x28e9a5=a110_0x58b1;(function(_0x2216f9,_0x2ae67d){const _0x3900b9=a110_0x58b1,_0x107011=_0x2216f9();while(!![]){try{const _0x4ba58a=parseInt(_0x3900b9(0xb0))/0x1*(parseInt(_0x3900b9(0xa5))/0x2)+-parseInt(_0x3900b9(0xac))/0x3*(-parseInt(_0x3900b9(0xc5))/0x4)+-parseInt(_0x3900b9(0xd0))/0x5+parseInt(_0x3900b9(0xb2))/0x6*(parseInt(_0x3900b9(0xbb))/0x7)+parseInt(_0x3900b9(0xba))/0x8+parseInt(_0x3900b9(0xbe))/0x9*(-parseInt(_0x3900b9(0xcf))/0xa)+-parseInt(_0x3900b9(0xc9))/0xb;if(_0x4ba58a===_0x2ae67d)break;else _0x107011['push'](_0x107011['shift']());}catch(_0x598095){_0x107011['push'](_0x107011['shift']());}}}(a110_0x3539,0x6e8b9));function a110_0x3539(){const _0x155fb3=['relations','verbose','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','str','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','datasets','Return\x20full\x20raw\x20ER\x20response\x20from\x20API','displayName','relationCount','2bBJBCz','bool','LEFT','datasetCount','fields','dataset','toField','2289951MOvQZo','isForeignKey','dbId','read','696821UMmqBh','reduce','5206224bPtzTn','boolean','name','all','map','stats','tableComment','datasetName','1573288ktxxtW','7ArtptB','string','meta','9XOkKRQ','Fetched\x20link\x20graph\x20for\x20','filter','fromField','Link\x20graph:\x20','links','dbName','4bJHAbW','\x20database(s),\x20','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','joinType','12194622qovgMx','\x20dataset(s),\x20','\x20relation(s)','toDatasetName','length','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','7196390lbwSbn','1217345Oycdfk','appCode','toDataset','tableName'];a110_0x3539=function(){return _0x155fb3;};return a110_0x3539();}import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a110_0x58b1(_0x5439bb,_0x35ed6f){_0x5439bb=_0x5439bb-0xa5;const _0x353927=a110_0x3539();let _0x58b117=_0x353927[_0x5439bb];return _0x58b117;}export const datasetLinks={'service':a110_0x28e9a5(0xaa),'command':a110_0x28e9a5(0xc3),'description':a110_0x28e9a5(0xd6)+a110_0x28e9a5(0xc7)+'Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','risk':a110_0x28e9a5(0xaf),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':a110_0x28e9a5(0xbc),'description':a110_0x28e9a5(0xd8)+a110_0x28e9a5(0xce)},{'name':'verbose','type':a110_0x28e9a5(0xb3),'description':a110_0x28e9a5(0xda)}],async 'execute'(_0x221402){const _0x26b6d2=a110_0x28e9a5,_0x5b4f88=_0x221402[_0x26b6d2(0xa6)](_0x26b6d2(0xd5)),{resolved:_0x38c010,error:_0x293950}=await resolveDb(_0x221402[_0x26b6d2(0xd1)],_0x221402[_0x26b6d2(0xd7)]('db')||undefined);if(_0x293950)return{'ok':![],'message':_0x293950};const _0x545778=_0x38c010[_0x26b6d2(0xb6)](_0x25ad1b=>_0x25ad1b[_0x26b6d2(0xae)]),_0x50c280=await Promise[_0x26b6d2(0xb5)](_0x545778[_0x26b6d2(0xb6)](_0x191407=>getErConfig(_0x221402['appCode'],_0x191407)));if(_0x5b4f88)return{'ok':!![],'data':_0x50c280[_0x26b6d2(0xcd)]===0x1?_0x50c280[0x0]:_0x50c280,'message':_0x26b6d2(0xbf)+_0x545778['length']+'\x20database(s)'};const _0x24bd75=_0x50c280[_0x26b6d2(0xb6)](_0x267c69=>{const _0x313c18=_0x26b6d2,_0x145191=(_0x267c69[_0x313c18(0xd9)]??[])['map'](_0x324254=>{const _0x3ecb4d=_0x313c18,_0x2d789a=_0x324254[_0x3ecb4d(0xa9)]?.['filter'](_0x34117e=>_0x34117e['isPrimaryKey'])[_0x3ecb4d(0xb6)](_0x5acc11=>_0x5acc11['name'])??[],_0x165c07=_0x324254[_0x3ecb4d(0xa9)]?.[_0x3ecb4d(0xc0)](_0x20a9e1=>_0x20a9e1['isForeignKey'])[_0x3ecb4d(0xb6)](_0x438be8=>_0x438be8['name'])??[];return{'id':_0x324254['datasetId'],'name':_0x324254[_0x3ecb4d(0xb9)],'code':_0x324254['datasetCode'],'table':_0x324254[_0x3ecb4d(0xd3)],'comment':_0x324254[_0x3ecb4d(0xb8)]||undefined,'fields':(_0x324254[_0x3ecb4d(0xa9)]??[])[_0x3ecb4d(0xb6)](_0x4b14b7=>({'name':_0x4b14b7[_0x3ecb4d(0xb4)],'displayName':_0x4b14b7[_0x3ecb4d(0xdb)],'type':_0x4b14b7['dbType'],'pk':_0x4b14b7['isPrimaryKey'],'fk':_0x4b14b7[_0x3ecb4d(0xad)]})),'relations':(_0x324254[_0x3ecb4d(0xd4)]??[])['filter'](_0x5b768d=>_0x5b768d[_0x3ecb4d(0xc1)]&&_0x5b768d[_0x3ecb4d(0xd2)])[_0x3ecb4d(0xb6)](_0x3348e8=>({'from':_0x3348e8[_0x3ecb4d(0xc1)],'toDataset':_0x3348e8[_0x3ecb4d(0xcc)],'toCode':_0x3348e8[_0x3ecb4d(0xd2)],'toField':_0x3348e8[_0x3ecb4d(0xab)],'joinType':_0x3348e8[_0x3ecb4d(0xc8)]||_0x3ecb4d(0xa7)})),'stats':{'fieldCount':_0x324254[_0x3ecb4d(0xa9)]?.[_0x3ecb4d(0xcd)]??0x0,'pkCount':_0x2d789a[_0x3ecb4d(0xcd)],'fkCount':_0x165c07[_0x3ecb4d(0xcd)],'relationCount':_0x324254[_0x3ecb4d(0xd4)]?.[_0x3ecb4d(0xcd)]??0x0}};}),_0x324921=_0x145191['filter'](_0x11522f=>_0x11522f[_0x313c18(0xb7)][_0x313c18(0xdc)]>0x0)['map'](_0x14bba5=>_0x14bba5[_0x313c18(0xb4)]);return{'db':_0x267c69[_0x313c18(0xbd)]?.[_0x313c18(0xc4)],'dbId':_0x267c69[_0x313c18(0xbd)]?.[_0x313c18(0xae)],'appCode':_0x267c69[_0x313c18(0xbd)]?.[_0x313c18(0xd1)],'datasetCount':_0x145191[_0x313c18(0xcd)],'connectedDatasets':_0x324921,'datasets':_0x145191};}),_0x1ad78b=_0x24bd75['reduce']((_0x29e59d,_0x21198e)=>_0x29e59d+_0x21198e[_0x26b6d2(0xa8)],0x0),_0x5acf7c=_0x24bd75[_0x26b6d2(0xb1)]((_0x2e24e0,_0x1a62cd)=>_0x2e24e0+_0x1a62cd[_0x26b6d2(0xd9)][_0x26b6d2(0xb1)]((_0x32cb2a,_0x23f4d6)=>_0x32cb2a+_0x23f4d6['stats']['relationCount'],0x0),0x0);return{'ok':!![],'data':_0x24bd75[_0x26b6d2(0xcd)]===0x1?_0x24bd75[0x0]:{'databases':_0x24bd75},'message':_0x26b6d2(0xc2)+_0x24bd75[_0x26b6d2(0xcd)]+_0x26b6d2(0xc6)+_0x1ad78b+_0x26b6d2(0xca)+_0x5acf7c+_0x26b6d2(0xcb)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a109_0x4fd6db=a109_0x3378;function a109_0x4277(){const _0x499f33=['map','2956335vRTzCp','string','dbtableConfig','allFields','962086GASNxd','source','name','List\x20all\x20datasets\x20with\x20metadata','\x20dataset(s)','15861064IqWnvW','list','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','length','trim','2251944hPOiEW','3012348VeVfmx','Found\x20','3657136zRTgTt','4908984kRkWwr','code','pkField','dbName','str','7sLwnGa'];a109_0x4277=function(){return _0x499f33;};return a109_0x4277();}(function(_0x16b460,_0x424abb){const _0x5ca406=a109_0x3378,_0x45a80c=_0x16b460();while(!![]){try{const _0x5921da=-parseInt(_0x5ca406(0x1ee))/0x1+-parseInt(_0x5ca406(0x1e0))/0x2+parseInt(_0x5ca406(0x1df))/0x3+parseInt(_0x5ca406(0x1e2))/0x4+parseInt(_0x5ca406(0x1ea))/0x5+-parseInt(_0x5ca406(0x1e3))/0x6+-parseInt(_0x5ca406(0x1e8))/0x7*(-parseInt(_0x5ca406(0x1da))/0x8);if(_0x5921da===_0x424abb)break;else _0x45a80c['push'](_0x45a80c['shift']());}catch(_0x135a56){_0x45a80c['push'](_0x45a80c['shift']());}}}(a109_0x4277,0xe8858));function a109_0x3378(_0x2e9b6a,_0x5f1da3){_0x2e9b6a=_0x2e9b6a-0x1d8;const _0x42775c=a109_0x4277();let _0x3378cd=_0x42775c[_0x2e9b6a];return _0x3378cd;}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetList={'service':'dataset','command':a109_0x4fd6db(0x1db),'description':a109_0x4fd6db(0x1d8),'risk':'read','flags':[{'name':a109_0x4fd6db(0x1f0),'type':a109_0x4fd6db(0x1eb),'description':a109_0x4fd6db(0x1dc)},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1ac01d){const _0x3809b6=a109_0x4fd6db,_0x3b5d4e=_0x1ac01d['str'](_0x3809b6(0x1f0)),_0xd9c8d7=_0x1ac01d[_0x3809b6(0x1e7)](_0x3809b6(0x1e4)),_0x4e5b05=await listDatasets(_0x1ac01d['appCode'],{..._0x3b5d4e&&{'name':_0x3b5d4e},..._0xd9c8d7&&{'code':_0xd9c8d7}}),_0x25b949=_0x4e5b05[_0x3809b6(0x1e9)](_0x3a5c99=>{const _0x2f28bd=_0x3809b6,_0x8f4742=_0x3a5c99[_0x2f28bd(0x1ec)]??{};return{'id':_0x3a5c99['id'],'name':_0x3a5c99[_0x2f28bd(0x1f0)],'code':_0x3a5c99['code'],'description':_0x3a5c99['description'],'source':_0x3a5c99[_0x2f28bd(0x1ef)],'db':_0x8f4742[_0x2f28bd(0x1e6)],'table':_0x8f4742['tableName'],'datasetKey':_0x8f4742['datasetKey'],'pk':_0x8f4742[_0x2f28bd(0x1e5)],'fields':_0x8f4742[_0x2f28bd(0x1ed)]?_0x8f4742[_0x2f28bd(0x1ed)]['split'](',')[_0x2f28bd(0x1e9)](_0xc60854=>_0xc60854[_0x2f28bd(0x1de)]()):[]};});return{'ok':!![],'data':{'total':_0x25b949[_0x3809b6(0x1dd)],'datasets':_0x25b949},'message':_0x3809b6(0x1e1)+_0x25b949[_0x3809b6(0x1dd)]+_0x3809b6(0x1d9)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a113_0x45c767=a113_0x57ba;(function(_0x3c0fa3,_0x3cf0b0){const _0x103ab4=a113_0x57ba,_0x33e7d3=_0x3c0fa3();while(!![]){try{const _0x30ab49=-parseInt(_0x103ab4(0x7e))/0x1*(parseInt(_0x103ab4(0x8d))/0x2)+parseInt(_0x103ab4(0x84))/0x3*(-parseInt(_0x103ab4(0x75))/0x4)+parseInt(_0x103ab4(0x93))/0x5+parseInt(_0x103ab4(0x83))/0x6*(parseInt(_0x103ab4(0x7f))/0x7)+parseInt(_0x103ab4(0x92))/0x8+-parseInt(_0x103ab4(0x8e))/0x9*(parseInt(_0x103ab4(0x7c))/0xa)+-parseInt(_0x103ab4(0x86))/0xb;if(_0x30ab49===_0x3cf0b0)break;else _0x33e7d3['push'](_0x33e7d3['shift']());}catch(_0x3b0fee){_0x33e7d3['push'](_0x33e7d3['shift']());}}}(a113_0x1514,0xc548c));import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';function a113_0x57ba(_0x23bd0c,_0x4b485e){_0x23bd0c=_0x23bd0c-0x75;const _0x151499=a113_0x1514();let _0x57baab=_0x151499[_0x23bd0c];return _0x57baab;}import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetOperations={'service':a113_0x45c767(0x88),'command':a113_0x45c767(0x81),'description':'Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','risk':a113_0x45c767(0x8f),'flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a113_0x45c767(0x8b),'type':a113_0x45c767(0x85),'description':a113_0x45c767(0x78)},{'name':a113_0x45c767(0x8a),'type':a113_0x45c767(0x85),'description':a113_0x45c767(0x80)},{'name':a113_0x45c767(0x89),'type':'boolean','description':a113_0x45c767(0x7a)}],async 'execute'(_0x49d6f3){const _0x590a1c=a113_0x45c767,_0x4a7429=_0x49d6f3[_0x590a1c(0x7b)](_0x590a1c(0x7d)),_0x4aa35d=_0x49d6f3['str'](_0x590a1c(0x8a)),_0x1081b6=_0x49d6f3['bool']('verbose');if(_0x4aa35d){const {dataset:_0x2ba1c1,operation:_0x255f88}=await getOperationDetail(_0x49d6f3[_0x590a1c(0x82)],_0x4a7429,_0x4aa35d);return{'ok':!![],'data':{'dataset':_0x2ba1c1,'operation':_0x255f88}};}const {dataset:_0x330e7c,operations:_0x5584fc}=await getDatasetOperations(_0x4a7429);return{'ok':!![],'data':{'dataset':_0x330e7c,'total':_0x5584fc[_0x590a1c(0x8c)],'operations':_0x1081b6?_0x5584fc:_0x5584fc[_0x590a1c(0x87)](_0x2c4b41=>({'name':_0x2c4b41[_0x590a1c(0x79)],'displayName':_0x2c4b41[_0x590a1c(0x77)],'type':_0x2c4b41[_0x590a1c(0x90)],'method':_0x2c4b41[_0x590a1c(0x91)],'enabled':_0x2c4b41[_0x590a1c(0x76)]}))}};}};function a113_0x1514(){const _0x46ebf5=['alias','length','180244ABXVxj','9aQUjVS','read','type','method','9080840KLOMHL','3289780MmMAqb','4YiXnym','enabled','displayName','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','name','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','str','2450710lFiHEg','code','12kdBCvM','3474254cjLOGW','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','operations','appCode','18DdaOIL','717507vXwcqB','string','9990717pzEDwZ','map','dataset','verbose','operation'];a113_0x1514=function(){return _0x46ebf5;};return a113_0x1514();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a142_0x4fd680=a142_0x21f9;(function(_0x1216cf,_0x330a07){const _0x2c20c0=a142_0x21f9,_0x2a9c61=_0x1216cf();while(!![]){try{const _0xa27759=parseInt(_0x2c20c0(0x200))/0x1+parseInt(_0x2c20c0(0x1f6))/0x2*(parseInt(_0x2c20c0(0x1f0))/0x3)+parseInt(_0x2c20c0(0x1ef))/0x4+-parseInt(_0x2c20c0(0x1fe))/0x5*(-parseInt(_0x2c20c0(0x1f3))/0x6)+-parseInt(_0x2c20c0(0x1f5))/0x7+-parseInt(_0x2c20c0(0x1fc))/0x8*(parseInt(_0x2c20c0(0x1f8))/0x9)+parseInt(_0x2c20c0(0x1f9))/0xa;if(_0xa27759===_0x330a07)break;else _0x2a9c61['push'](_0x2a9c61['shift']());}catch(_0x2471db){_0x2a9c61['push'](_0x2a9c61['shift']());}}}(a142_0x1630,0x21dd4));import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a142_0x21f9(_0x1cdeab,_0x2b1367){_0x1cdeab=_0x1cdeab-0x1ed;const _0x163054=a142_0x1630();let _0x21f9ba=_0x163054[_0x1cdeab];return _0x21f9ba;}function a142_0x1630(){const _0x56b9a3=['Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','35573PlnEip','num','string','37060FCaOKc','393lkUzdt','str','Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.','870ndsnjy','analyze-cancel','1933302IvXlyJ','510fiWeqg','Cancel\x20requested\x20for\x20plan\x20','721359XJjVUo','5206990ylZKqL','latestAnalysisTraceId','No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.','24HkEtRx','plan','1945koDWjQ'];a142_0x1630=function(){return _0x56b9a3;};return a142_0x1630();}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeCancel={'service':'db','command':a142_0x4fd680(0x1f4),'description':a142_0x4fd680(0x1ff),'risk':'write','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a142_0x4fd680(0x1fd),'type':a142_0x4fd680(0x1ee),'description':'Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)'}],async 'execute'(_0x3caae3){const _0x19fac7=a142_0x4fd680,_0x2a80ac=_0x3caae3[_0x19fac7(0x1ed)]('id');let _0x25ad3f=_0x3caae3[_0x19fac7(0x1f1)](_0x19fac7(0x1fd))||undefined;if(!_0x25ad3f){const _0x5381b6=await getDbLinkInfo(_0x2a80ac);_0x25ad3f=_0x5381b6[_0x19fac7(0x1fa)]??undefined;if(!_0x25ad3f)throw CliErrors['validation'](_0x19fac7(0x1fb),_0x19fac7(0x1f2));}return await cancelDbAnalysis(_0x25ad3f),{'ok':!![],'data':{'dbLinkId':_0x2a80ac,'planId':_0x25ad3f},'message':_0x19fac7(0x1f7)+_0x25ad3f};}};
|