@lovrabet/rabetbase-cli 2.3.2 → 2.3.3-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/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/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.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/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.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/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -0
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.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/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.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/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.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/sql/create.js +1 -1
- package/lib/commands/sql/delete.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/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.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/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.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/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.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/telemetry/send-platform-issue-collect-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/cli-version-policy.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/params.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/update-notice.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
|
-
const
|
|
1
|
+
const a73_0x381ecc=a73_0x3657;(function(_0x396f79,_0x3dc4eb){const _0x25f731=a73_0x3657,_0x422b58=_0x396f79();while(!![]){try{const _0x53ba03=parseInt(_0x25f731(0xa4))/0x1+parseInt(_0x25f731(0xb2))/0x2*(parseInt(_0x25f731(0xa1))/0x3)+-parseInt(_0x25f731(0xa3))/0x4+-parseInt(_0x25f731(0xae))/0x5+-parseInt(_0x25f731(0xc0))/0x6+parseInt(_0x25f731(0xc7))/0x7+-parseInt(_0x25f731(0xc6))/0x8;if(_0x53ba03===_0x3dc4eb)break;else _0x422b58['push'](_0x422b58['shift']());}catch(_0x3a655e){_0x422b58['push'](_0x422b58['shift']());}}}(a73_0x2466,0x26284));import{getDatasetDetail,updateDrivenData}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';export async function buildDatasetRenameResult({input:_0x6b745e,dryRun:_0x3c7776}){const _0x1d659b=a73_0x3657;validateInput(_0x6b745e);const _0x5d26a0=await getDatasetDetail(_0x6b745e[_0x1d659b(0xc5)]),_0x3aa7cd=resolveCurrentName(_0x5d26a0);if(_0x3aa7cd!==_0x6b745e[_0x1d659b(0x9e)])throw CliErrors['validation'](_0x1d659b(0xa8),_0x1d659b(0xc1)+JSON['stringify'](_0x6b745e[_0x1d659b(0x9e)])+',\x20actual\x20'+JSON[_0x1d659b(0xb3)](_0x3aa7cd));const _0x2c106f=buildRenameRequest(_0x5d26a0,_0x6b745e),_0x37ee55=_0x3aa7cd!==_0x6b745e[_0x1d659b(0xa5)];let _0x1bbdb0;return _0x37ee55&&!_0x3c7776&&(_0x1bbdb0=await updateDrivenData(_0x2c106f)),{'ok':!![],'data':{'dataset':{'id':_0x2c106f[_0x1d659b(0xac)],'code':_0x2c106f[_0x1d659b(0xb9)]},'dryRun':_0x3c7776,'changed':_0x37ee55,'before':{'name':_0x3aa7cd},'after':{'name':_0x6b745e[_0x1d659b(0xa5)]},'request':_0x2c106f,'submitted':_0x37ee55&&!_0x3c7776,..._0x1bbdb0!==undefined?{'version':_0x1bbdb0}:{}},'message':_0x37ee55?_0x3c7776?_0x1d659b(0xa0)+_0x2c106f['modelCode']+_0x1d659b(0xb6)+_0x6b745e[_0x1d659b(0xa5)]:_0x1d659b(0xad)+_0x2c106f[_0x1d659b(0xb9)]+'\x20to\x20'+_0x6b745e[_0x1d659b(0xa5)]:_0x1d659b(0xb4)+_0x2c106f[_0x1d659b(0xb9)]};}function a73_0x3657(_0x5183af,_0x53516b){_0x5183af=_0x5183af-0x9d;const _0x2466d8=a73_0x2466();let _0x3657d5=_0x2466d8[_0x5183af];return _0x3657d5;}export const datasetRename={'service':a73_0x381ecc(0xa2),'command':'rename','description':a73_0x381ecc(0xb8),'risk':'write','flags':[CODE_FLAG,{'name':a73_0x381ecc(0xa5),'type':a73_0x381ecc(0xab),'required':!![],'description':a73_0x381ecc(0xa6)},{'name':a73_0x381ecc(0xbf),'type':'string','required':!![],'description':a73_0x381ecc(0xbb)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4109d6){validateInput(readDatasetRenameInput(_0x4109d6));},async 'dryRun'(_0x479e4f){const _0x472875=a73_0x381ecc,_0x38e665=await buildDatasetRenameResult({'input':readDatasetRenameInput(_0x479e4f),'dryRun':!![]});return{'method':_0x472875(0xaf),'url':_0x472875(0xbe),'body':_0x38e665['data'][_0x472875(0xbc)],'description':_0x38e665[_0x472875(0xbd)],..._0x38e665[_0x472875(0xc3)]};},async 'execute'(_0x2d8f12){return buildDatasetRenameResult({'input':readDatasetRenameInput(_0x2d8f12),'dryRun':![]});}};function readDatasetRenameInput(_0x4593ed){const _0x195a30=a73_0x381ecc;return{'code':trim(_0x4593ed['str'](_0x195a30(0xc5))),'name':trim(_0x4593ed[_0x195a30(0x9f)](_0x195a30(0xa5))),'expectName':trim(_0x4593ed[_0x195a30(0x9f)](_0x195a30(0xbf)))};}function validateInput(_0x553bba){const _0x4d6ea9=a73_0x381ecc;if(!_0x553bba[_0x4d6ea9(0xc5)])throw CliErrors[_0x4d6ea9(0xc2)](_0x4d6ea9(0xc4));if(!_0x553bba['name'])throw CliErrors[_0x4d6ea9(0xc2)](_0x4d6ea9(0xa9));if(!_0x553bba[_0x4d6ea9(0x9e)])throw CliErrors[_0x4d6ea9(0xc2)](_0x4d6ea9(0xaa));}function a73_0x2466(){const _0x4b3097=['/smartapi/dataset/update-driven-data','expect-name','506340NhrnPv','Expected\x20','validation','data','--code\x20is\x20required','code','121584zMzTdq','1711899mnupSS','datasetCode','expectName','str','Dry-run:\x20dataset\x20','135OEayqM','dataset','250360dInVMJ','143204AKdyUb','name','New\x20dataset\x20display\x20name','datasetName','Expectation\x20mismatch\x20at\x20dataset.name','--name\x20is\x20required','--expect-name\x20is\x20required','string','modelId','Renamed\x20dataset\x20','964755TEPXtz','POST','datasetId','trim','5496WvMAoj','stringify','No\x20changes\x20for\x20dataset\x20','Dataset\x20detail\x20does\x20not\x20contain\x20dataset\x20id','\x20would\x20be\x20renamed\x20to\x20','isArray','Rename\x20dataset\x20display\x20name\x20safely','modelCode','object','Expected\x20current\x20dataset\x20display\x20name;\x20mismatch\x20aborts\x20without\x20writing','request','message'];a73_0x2466=function(){return _0x4b3097;};return a73_0x2466();}function resolveCurrentName(_0x3c7d8){const _0x1b90c5=a73_0x381ecc;return String(_0x3c7d8['dataset']?.[_0x1b90c5(0xa7)]??_0x3c7d8[_0x1b90c5(0xa5)]??'')['trim']();}function buildRenameRequest(_0x7e15ff,_0x1f744f){const _0x2fc5a6=a73_0x381ecc,_0x46cc76=isPlainObject(_0x7e15ff['dataset'])?_0x7e15ff[_0x2fc5a6(0xa2)]:{},_0x1c2e3b=_0x7e15ff['modelId']??_0x7e15ff['id']??_0x46cc76[_0x2fc5a6(0xb0)];if(_0x1c2e3b===undefined||_0x1c2e3b===null||_0x1c2e3b==='')throw CliErrors[_0x2fc5a6(0xc2)](_0x2fc5a6(0xb5));const _0x4099d0=String(_0x7e15ff[_0x2fc5a6(0xb9)]??_0x7e15ff[_0x2fc5a6(0xc5)]??_0x46cc76[_0x2fc5a6(0x9d)]??_0x1f744f[_0x2fc5a6(0xc5)])[_0x2fc5a6(0xb1)]();if(!_0x4099d0)throw CliErrors[_0x2fc5a6(0xc2)]('Dataset\x20detail\x20does\x20not\x20contain\x20dataset\x20code');return{'modelId':_0x1c2e3b,'modelCode':_0x4099d0,'name':_0x1f744f[_0x2fc5a6(0xa5)],'dataset':{'datasetId':_0x1c2e3b,'datasetCode':_0x4099d0,'datasetName':_0x1f744f[_0x2fc5a6(0xa5)]}};}function isPlainObject(_0x2a7c69){const _0x922c57=a73_0x381ecc;return Boolean(_0x2a7c69)&&typeof _0x2a7c69===_0x922c57(0xba)&&!Array[_0x922c57(0xb7)](_0x2a7c69);}function trim(_0x3653a0){const _0x3a3279=a73_0x381ecc;return String(_0x3653a0||'')[_0x3a3279(0xb1)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74_0xd59efe=a74_0xd139;(function(_0xc95d93,_0x88dc57){const _0x9b1ea4=a74_0xd139,_0x4e5a9c=_0xc95d93();while(!![]){try{const _0xfeb165=parseInt(_0x9b1ea4(0xfe))/0x1+-parseInt(_0x9b1ea4(0x10f))/0x2*(-parseInt(_0x9b1ea4(0x108))/0x3)+parseInt(_0x9b1ea4(0x112))/0x4+-parseInt(_0x9b1ea4(0x10e))/0x5*(-parseInt(_0x9b1ea4(0x11a))/0x6)+-parseInt(_0x9b1ea4(0xff))/0x7*(parseInt(_0x9b1ea4(0x11f))/0x8)+-parseInt(_0x9b1ea4(0x105))/0x9+-parseInt(_0x9b1ea4(0x115))/0xa;if(_0xfeb165===_0x88dc57)break;else _0x4e5a9c['push'](_0x4e5a9c['shift']());}catch(_0xb858f){_0x4e5a9c['push'](_0x4e5a9c['shift']());}}}(a74_0x342e,0x65a51));import{listDatasets,restoreDataset}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a74_0x342e(){const _0x190ee7=['dbtableConfig','push','str','map','/smartapi/dataset/restore-dataset','No\x20deleted\x20dataset\x20found\x20for\x20','expected-count','id=','POST','\x20deleted\x20dataset(s)\x20and\x20related\x20deleted\x20page/menu\x20records.','dbid','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','Restored\x20','\x20failed','isArray','appCode','dbId','num','267258lLZGLs','6881AFaoho','validation','boolean','filter','length','dataset','6974460rFZIFf','Would\x20restore\x20','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','11346EkSbVu','Restore\x20all\x20deleted\x20datasets\x20under\x20this\x20database\x20connection\x20id','\x20dataset(s)','tableName','description','number','19215KhewoB','262fcBMaK','dbid=','relationPages','1828704QSUMhi','bool','--confirm\x20is\x20required\x20to\x20restore\x20datasets.','109090kBtluh','high-risk-write','Required\x20to\x20execute\x20dataset\x20restore','name','\x20dataset(s);\x20','66lUMxSc','code','source','confirm','Dataset\x20id','488KJbwtB','Restore\x20deleted\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20deleted\x20datasets\x20under\x20a\x20db\x20id','Matched\x20'];a74_0x342e=function(){return _0x190ee7;};return a74_0x342e();}const DATASET_ID_FLAG={'name':'id','type':a74_0xd59efe(0x10d),'description':a74_0xd59efe(0x11e)},DBID_FLAG={'name':a74_0xd59efe(0xf6),'type':a74_0xd59efe(0x10d),'description':a74_0xd59efe(0x109)},CONFIRM_FLAG={'name':a74_0xd59efe(0x11d),'type':a74_0xd59efe(0x101),'description':a74_0xd59efe(0x117)},EXPECTED_COUNT_FLAG={'name':a74_0xd59efe(0xf2),'type':a74_0xd59efe(0x10d),'description':a74_0xd59efe(0x107)};function a74_0xd139(_0x46e167,_0x401666){_0x46e167=_0x46e167-0xf1;const _0x342e77=a74_0x342e();let _0xd13975=_0x342e77[_0x46e167];return _0xd13975;}export const datasetRestore={'service':a74_0xd59efe(0x104),'command':'restore','description':a74_0xd59efe(0x120),'risk':a74_0xd59efe(0x116),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1f97c9){const _0x46b8c3=a74_0xd59efe,_0x35d579=_0x1f97c9['num']('id'),_0x3e5e59=_0x1f97c9['str'](_0x46b8c3(0x11b)),_0x32904c=_0x1f97c9[_0x46b8c3(0xfd)](_0x46b8c3(0xf6)),_0x2280ad=[_0x35d579>0x0,Boolean(_0x3e5e59),_0x32904c>0x0][_0x46b8c3(0x102)](Boolean);if(_0x2280ad[_0x46b8c3(0x103)]===0x0)throw CliErrors[_0x46b8c3(0x100)]('One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.');if(_0x2280ad['length']>0x1)throw CliErrors['validation'](_0x46b8c3(0xf7));},async 'dryRun'(_0x432f05){const _0x5137d5=a74_0xd59efe,_0x25a2f6=await resolveTargets(_0x432f05);return{'method':_0x5137d5(0xf4),'url':_0x5137d5(0x126),'body':{'appCode':_0x432f05[_0x5137d5(0xfb)],'count':_0x25a2f6[_0x5137d5(0x103)],'datasets':_0x25a2f6},'description':_0x5137d5(0x106)+_0x25a2f6[_0x5137d5(0x103)]+_0x5137d5(0xf5)};},async 'execute'(_0x547458){const _0x1d96c9=a74_0xd59efe;if(!_0x547458[_0x1d96c9(0x113)](_0x1d96c9(0x11d)))throw CliErrors[_0x1d96c9(0x100)](_0x1d96c9(0x114),'Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.');const _0x3e4283=await resolveTargets(_0x547458),_0x24c14c=[],_0x10ec2b=[];for(const _0x5f1509 of _0x3e4283){try{await restoreDataset(_0x547458[_0x1d96c9(0xfb)],_0x5f1509['id']),_0x24c14c[_0x1d96c9(0x123)](_0x5f1509);}catch(_0x5b59bc){_0x10ec2b['push']({..._0x5f1509,'error':_0x5b59bc instanceof Error?_0x5b59bc['message']:String(_0x5b59bc)});}}if(_0x10ec2b['length']>0x0)return{'ok':![],'data':{'requested':_0x3e4283[_0x1d96c9(0x103)],'restoredCount':_0x24c14c[_0x1d96c9(0x103)],'failedCount':_0x10ec2b[_0x1d96c9(0x103)],'restored':_0x24c14c,'failed':_0x10ec2b},'message':'Restored\x20'+_0x24c14c['length']+'/'+_0x3e4283[_0x1d96c9(0x103)]+_0x1d96c9(0x119)+_0x10ec2b[_0x1d96c9(0x103)]+_0x1d96c9(0xf9)};return{'ok':!![],'data':{'requested':_0x3e4283[_0x1d96c9(0x103)],'restoredCount':_0x24c14c[_0x1d96c9(0x103)],'restored':_0x24c14c},'message':_0x1d96c9(0xf8)+_0x24c14c[_0x1d96c9(0x103)]+_0x1d96c9(0x10a)};}};async function resolveTargets(_0x110203){const _0x47c05d=a74_0xd59efe,_0x1d1bab=_0x110203['num']('id'),_0x91857c=_0x110203[_0x47c05d(0x124)]('code'),_0x3f6ace=_0x110203[_0x47c05d(0xfd)]('dbid');let _0x59769e;_0x91857c?(_0x59769e=await listDatasets(_0x110203[_0x47c05d(0xfb)],{'code':_0x91857c,'deleted':!![]}),_0x59769e=_0x59769e[_0x47c05d(0x102)](_0x357ea3=>_0x357ea3[_0x47c05d(0x11b)]===_0x91857c)):(_0x59769e=await listDatasets(_0x110203[_0x47c05d(0xfb)],{'deleted':!![]}),_0x1d1bab>0x0&&(_0x59769e=_0x59769e[_0x47c05d(0x102)](_0xe114f8=>_0xe114f8['id']===_0x1d1bab)),_0x3f6ace>0x0&&(_0x59769e=_0x59769e[_0x47c05d(0x102)](_0x3aea3f=>_0x3aea3f['dbtableConfig']?.[_0x47c05d(0xfc)]===_0x3f6ace)));const _0x287a2b=_0x59769e[_0x47c05d(0x125)](normalizeTarget);if(_0x287a2b[_0x47c05d(0x103)]===0x0){const _0x291d37=_0x91857c||(_0x1d1bab>0x0?_0x47c05d(0xf3)+_0x1d1bab:_0x47c05d(0x110)+_0x3f6ace);throw CliErrors[_0x47c05d(0x100)](_0x47c05d(0xf1)+_0x291d37+'.');}const _0x411efa=_0x110203[_0x47c05d(0xfd)](_0x47c05d(0xf2));if(_0x411efa>0x0&&_0x287a2b[_0x47c05d(0x103)]!==_0x411efa)throw CliErrors[_0x47c05d(0x100)](_0x47c05d(0x121)+_0x287a2b[_0x47c05d(0x103)]+'\x20dataset(s),\x20but\x20--expected-count\x20is\x20'+_0x411efa+'.');return _0x287a2b;}function normalizeTarget(_0x28f45e){const _0xde5153=a74_0xd59efe,_0x38968d=_0x28f45e[_0xde5153(0x122)]??{};return{'id':_0x28f45e['id'],'code':_0x28f45e['code'],'name':_0x28f45e[_0xde5153(0x118)],'description':_0x28f45e[_0xde5153(0x10c)],'source':_0x28f45e[_0xde5153(0x11c)],'dbId':_0x38968d[_0xde5153(0xfc)],'dbName':_0x38968d['dbName'],'tableName':_0x38968d[_0xde5153(0x10b)],'relatedPageCount':Array[_0xde5153(0xfa)](_0x28f45e[_0xde5153(0x111)])?_0x28f45e[_0xde5153(0x111)]['length']:undefined};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a75_0x39f36f=a75_0x3d5d;(function(_0x3895c5,_0x1a9c95){const _0x396c1c=a75_0x3d5d,_0x226fbb=_0x3895c5();while(!![]){try{const _0x15547d=-parseInt(_0x396c1c(0x204))/0x1*(-parseInt(_0x396c1c(0x207))/0x2)+parseInt(_0x396c1c(0x1ff))/0x3+-parseInt(_0x396c1c(0x202))/0x4*(parseInt(_0x396c1c(0x1f4))/0x5)+-parseInt(_0x396c1c(0x206))/0x6+parseInt(_0x396c1c(0x1fe))/0x7+-parseInt(_0x396c1c(0x200))/0x8*(parseInt(_0x396c1c(0x1f7))/0x9)+parseInt(_0x396c1c(0x203))/0xa;if(_0x15547d===_0x1a9c95)break;else _0x226fbb['push'](_0x226fbb['shift']());}catch(_0x327974){_0x226fbb['push'](_0x226fbb['shift']());}}}(a75_0x30a7,0xbc8d5));import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeCancel={'service':'db','command':a75_0x39f36f(0x201),'description':a75_0x39f36f(0x1f3),'risk':a75_0x39f36f(0x1fc),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a75_0x39f36f(0x205),'type':a75_0x39f36f(0x1fa),'description':a75_0x39f36f(0x1f5)}],async 'execute'(_0xe4d329){const _0x1fe011=a75_0x39f36f,_0x18aee1=_0xe4d329['num']('id');let _0x349b43=_0xe4d329[_0x1fe011(0x1f6)](_0x1fe011(0x205))||undefined;if(!_0x349b43){const _0xbd57af=await getDbLinkInfo(_0x18aee1);_0x349b43=_0xbd57af[_0x1fe011(0x1f8)]??undefined;if(!_0x349b43)throw CliErrors[_0x1fe011(0x1f9)]('No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.',_0x1fe011(0x1fd));}return await cancelDbAnalysis(_0x349b43),{'ok':!![],'data':{'dbLinkId':_0x18aee1,'planId':_0x349b43},'message':_0x1fe011(0x1fb)+_0x349b43};}};function a75_0x3d5d(_0x1b1f1e,_0x837df0){_0x1b1f1e=_0x1b1f1e-0x1f3;const _0x30a7ac=a75_0x30a7();let _0x3d5d5b=_0x30a7ac[_0x1b1f1e];return _0x3d5d5b;}function a75_0x30a7(){const _0x5ea8cc=['14988720qdjhtH','21788juTtgt','plan','6054792Uldqbq','134xkoidY','Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','6173845XttuOf','Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)','str','45Pjuesl','latestAnalysisTraceId','validation','string','Cancel\x20requested\x20for\x20plan\x20','write','Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.','144683QdQVhB','3637704PAINQV','1881112MpkUou','analyze-cancel','4HyZKDu'];a75_0x30a7=function(){return _0x5ea8cc;};return a75_0x30a7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a76_0x46fce4=a76_0x2e80;(function(_0x23e8eb,_0xcc7022){const _0x1e6f27=a76_0x2e80,_0x2bf9ec=_0x23e8eb();while(!![]){try{const _0x25fab5=-parseInt(_0x1e6f27(0x17f))/0x1+parseInt(_0x1e6f27(0x174))/0x2+parseInt(_0x1e6f27(0x183))/0x3*(-parseInt(_0x1e6f27(0x181))/0x4)+parseInt(_0x1e6f27(0x17b))/0x5+parseInt(_0x1e6f27(0x180))/0x6*(-parseInt(_0x1e6f27(0x186))/0x7)+parseInt(_0x1e6f27(0x17c))/0x8*(parseInt(_0x1e6f27(0x177))/0x9)+parseInt(_0x1e6f27(0x178))/0xa;if(_0x25fab5===_0xcc7022)break;else _0x2bf9ec['push'](_0x2bf9ec['shift']());}catch(_0x374b3a){_0x2bf9ec['push'](_0x2bf9ec['shift']());}}}(a76_0x30f2,0x20406));import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';function a76_0x2e80(_0x3a61c4,_0x5ee3af){_0x3a61c4=_0x3a61c4-0x174;const _0x30f28f=a76_0x30f2();let _0x2e805a=_0x30f28f[_0x3a61c4];return _0x2e805a;}function a76_0x30f2(){const _0x5c64ea=['820eBwMLI','appCode','957RYaRsi','write','str','7287bntqqG','7306CfKzFp','string','tables','90PtBaIU','3534950ylLgDq','analyze-start','Started\x20analysis\x20for\x20db\x20link\x20','447545EdUrlt','20800lJdQkI','split','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','159609cPFEKC','666UZaliA'];a76_0x30f2=function(){return _0x5c64ea;};return a76_0x30f2();}export const dbAnalyzeStart={'service':'db','command':a76_0x46fce4(0x179),'description':a76_0x46fce4(0x17e),'risk':a76_0x46fce4(0x184),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a76_0x46fce4(0x176),'type':a76_0x46fce4(0x175),'description':'Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)'}],async 'execute'(_0x2859e2){const _0x51af20=a76_0x46fce4,_0x198bbc=_0x2859e2['num']('id'),_0x506507=_0x2859e2[_0x51af20(0x185)](_0x51af20(0x176)),_0x387a3c=_0x506507?_0x506507[_0x51af20(0x17d)](',')['map'](_0x1317dc=>_0x1317dc['trim']())['filter'](Boolean):undefined,_0x170e10=await startDbAnalysis(_0x198bbc,_0x387a3c),_0x1c159d=buildDbPageLinks(_0x2859e2[_0x51af20(0x182)],_0x198bbc);return{'ok':!![],'data':{'dbLinkId':_0x198bbc,'planId':_0x170e10,'tableNames':_0x387a3c??[],..._0x1c159d?{'links':_0x1c159d}:{}},'message':_0x51af20(0x17a)+_0x198bbc};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a77_0x4e4331=a77_0x4565;function a77_0x158d(){const _0x11bceb=['num','263508bhrEcO','1165635wbcMhS','read','Analysis\x20status\x20for\x20','4DOcXVU','799971KBLKRF','analyze-status','3033pBXlYX','appCode','112vGVdUJ','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','string','179689TdXxDk','1497408BArZSQ','4037816gDysCR','12krXGeO','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','10970OZbLIx','str','plan'];a77_0x158d=function(){return _0x11bceb;};return a77_0x158d();}(function(_0x35cd3c,_0x27b1a9){const _0x109884=a77_0x4565,_0x3bb0e8=_0x35cd3c();while(!![]){try{const _0x411b10=parseInt(_0x109884(0x1bb))/0x1*(parseInt(_0x109884(0x1b3))/0x2)+-parseInt(_0x109884(0x1b4))/0x3+-parseInt(_0x109884(0x1be))/0x4*(parseInt(_0x109884(0x1b0))/0x5)+parseInt(_0x109884(0x1af))/0x6*(parseInt(_0x109884(0x1b8))/0x7)+parseInt(_0x109884(0x1bd))/0x8+parseInt(_0x109884(0x1b6))/0x9*(-parseInt(_0x109884(0x1c0))/0xa)+parseInt(_0x109884(0x1bc))/0xb;if(_0x411b10===_0x27b1a9)break;else _0x3bb0e8['push'](_0x3bb0e8['shift']());}catch(_0x1916fc){_0x3bb0e8['push'](_0x3bb0e8['shift']());}}}(a77_0x158d,0x59a5a));import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a77_0x4565(_0x3a8af9,_0x325c5c){_0x3a8af9=_0x3a8af9-0x1ad;const _0x158d23=a77_0x158d();let _0x456588=_0x158d23[_0x3a8af9];return _0x456588;}import{buildDbPageLinks}from'../../commands/db/shared.js';export const dbAnalyzeStatus={'service':'db','command':a77_0x4e4331(0x1b5),'description':a77_0x4e4331(0x1bf),'risk':a77_0x4e4331(0x1b1),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a77_0x4e4331(0x1ad),'type':a77_0x4e4331(0x1ba),'required':!![],'description':a77_0x4e4331(0x1b9)}],async 'execute'(_0x73670d){const _0x4b57e5=a77_0x4e4331,_0x5eaca8=_0x73670d[_0x4b57e5(0x1ae)]('id'),_0x22b733=_0x73670d[_0x4b57e5(0x1c1)](_0x4b57e5(0x1ad)),_0x1699bf=await getDbAnalysisStatus(_0x22b733),_0x4d06b4=buildDbPageLinks(_0x73670d[_0x4b57e5(0x1b7)],_0x5eaca8);return{'ok':!![],'data':{'dbLinkId':_0x5eaca8,'planId':_0x22b733,'status':_0x1699bf,..._0x4d06b4?{'links':_0x4d06b4}:{}},'message':_0x4b57e5(0x1b2)+_0x22b733};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a78_0x9caf73=a78_0x5cbf;(function(_0x245cd5,_0x23461d){const _0x33207a=a78_0x5cbf,_0x3ef869=_0x245cd5();while(!![]){try{const _0x3b6e70=-parseInt(_0x33207a(0x198))/0x1+-parseInt(_0x33207a(0x178))/0x2+parseInt(_0x33207a(0x173))/0x3+parseInt(_0x33207a(0x186))/0x4+-parseInt(_0x33207a(0x181))/0x5*(-parseInt(_0x33207a(0x185))/0x6)+-parseInt(_0x33207a(0x17b))/0x7*(parseInt(_0x33207a(0x184))/0x8)+parseInt(_0x33207a(0x192))/0x9;if(_0x3b6e70===_0x23461d)break;else _0x3ef869['push'](_0x3ef869['shift']());}catch(_0x4b1d17){_0x3ef869['push'](_0x3ef869['shift']());}}}(a78_0x2507,0x2391d));function a78_0x5cbf(_0x5c3249,_0x314c1b){_0x5c3249=_0x5c3249-0x173;const _0x25076c=a78_0x2507();let _0x5cbf5f=_0x25076c[_0x5c3249];return _0x5cbf5f;}import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a78_0x2507(){const _0x596151=['129363xhObKP','dbversion','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','Host\x20and\x20port:\x20host:port',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','164392ZUaDeV','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','Human-readable\x20description','8519kxnVfK','Extra\x20JDBC-style\x20connection\x20parameters\x20string','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','trim','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','POST','15PRzZES','password','string','1616jtcZEP','228678uwLMCm','944472XBvYho','Created\x20db\x20link\x20','databasePage','bool','dbdesc','dburl','boolean','message','Create\x20dblink','8.0','/smartapi/dblink/create','autostart','1217592pgRHVQ','dbparam','str','create','dbname','username','55143ncLAYk','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','[redacted]','No\x20follow-up\x20analysis','dbtype','appCode'];a78_0x2507=function(){return _0x596151;};return a78_0x2507();}import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':a78_0x9caf73(0x195),'description':a78_0x9caf73(0x17f),'risk':'write','flags':[APPCODE_FLAG_OPTIONAL,{'name':a78_0x9caf73(0x196),'type':a78_0x9caf73(0x183),'required':!![],'description':a78_0x9caf73(0x179)},DB_TYPE_FLAG,{'name':a78_0x9caf73(0x174),'type':'string','description':'Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','default':a78_0x9caf73(0x18f)},{'name':'dburl','type':a78_0x9caf73(0x183),'required':!![],'description':a78_0x9caf73(0x176)},{'name':a78_0x9caf73(0x197),'type':a78_0x9caf73(0x183),'required':!![],'description':'Database\x20username'},{'name':a78_0x9caf73(0x182),'type':a78_0x9caf73(0x183),'required':!![],'description':'Database\x20password'},{'name':a78_0x9caf73(0x193),'type':a78_0x9caf73(0x183),'description':a78_0x9caf73(0x17c)},{'name':a78_0x9caf73(0x18a),'type':a78_0x9caf73(0x183),'description':a78_0x9caf73(0x17a)},{'name':a78_0x9caf73(0x191),'type':a78_0x9caf73(0x18c),'description':'After\x20create,\x20start\x20schema\x20analysis','default':![]}],async 'validate'(_0x5e13d5){const _0x46814a=a78_0x9caf73,_0x2b68aa=_0x5e13d5['str'](_0x46814a(0x18b))[_0x46814a(0x17e)]();if(!validateDbUrl(_0x2b68aa))throw CliErrors['validation'](_0x46814a(0x175)+_0x2b68aa+'\x22','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.');},async 'dryRun'(_0xfa7dc6){const _0x136055=a78_0x9caf73,_0x5c629b={'appCode':_0xfa7dc6['appCode'],'dbName':_0xfa7dc6[_0x136055(0x194)](_0x136055(0x196)),'dbType':_0xfa7dc6['str']('dbtype'),'dbVersion':_0xfa7dc6[_0x136055(0x194)](_0x136055(0x174))||_0x136055(0x18f),'dbUrl':_0xfa7dc6['str'](_0x136055(0x18b))['trim'](),'username':_0xfa7dc6[_0x136055(0x194)](_0x136055(0x197)),'password':_0x136055(0x19a),..._0xfa7dc6[_0x136055(0x194)](_0x136055(0x193))?{'dbParam':_0xfa7dc6[_0x136055(0x194)](_0x136055(0x193))}:{},..._0xfa7dc6['str'](_0x136055(0x18a))?{'dbDesc':_0xfa7dc6[_0x136055(0x194)]('dbdesc')}:{}};return{'method':_0x136055(0x180),'url':_0x136055(0x190),'body':_0x5c629b,'description':[_0x136055(0x18e),_0xfa7dc6[_0x136055(0x189)](_0x136055(0x191))?_0x136055(0x17d):_0x136055(0x19b)]['join']('\x0a')};},async 'execute'(_0x1e3e68){const _0x478512=a78_0x9caf73,_0x4fa5d0={'appCode':_0x1e3e68[_0x478512(0x19d)],'dbName':_0x1e3e68[_0x478512(0x194)](_0x478512(0x196)),'dbType':_0x1e3e68[_0x478512(0x194)](_0x478512(0x19c)),'dbVersion':_0x1e3e68[_0x478512(0x194)](_0x478512(0x174))||_0x478512(0x18f),'dbUrl':_0x1e3e68[_0x478512(0x194)]('dburl')['trim'](),'username':_0x1e3e68[_0x478512(0x194)](_0x478512(0x197)),'password':_0x1e3e68[_0x478512(0x194)](_0x478512(0x182)),..._0x1e3e68[_0x478512(0x194)](_0x478512(0x193))?{'dbParam':_0x1e3e68[_0x478512(0x194)](_0x478512(0x193))}:{},..._0x1e3e68[_0x478512(0x194)](_0x478512(0x18a))?{'dbDesc':_0x1e3e68[_0x478512(0x194)](_0x478512(0x18a))}:{}},{id:_0x46a6be,entity:_0x22bd06}=normalizeEntityWithIdResponse(await createDbLink(_0x4fa5d0));if(!_0x46a6be)return{'ok':![],'message':_0x478512(0x199),'data':sanitizeDbLinkForOutput(_0x22bd06)};let _0x141be6,_0x204c95;if(_0x1e3e68[_0x478512(0x189)](_0x478512(0x191)))try{_0x141be6=await startDbAnalysis(_0x46a6be);}catch(_0x21d9ea){_0x204c95=_0x21d9ea instanceof Error?_0x21d9ea[_0x478512(0x18d)]:String(_0x21d9ea);}const _0x43b422=buildDbPageLinks(_0x1e3e68[_0x478512(0x19d)],_0x46a6be),_0x5c752b={'connection':sanitizeDbLinkForOutput(_0x22bd06),..._0x43b422?{'links':{'databasePage':_0x43b422[_0x478512(0x188)]}}:{},..._0x141be6?{'analysisPlanId':_0x141be6}:{},..._0x204c95?{'analysisStartWarning':_0x204c95}:{}};let _0x4515be;return _0x1e3e68[_0x478512(0x189)](_0x478512(0x191))?_0x204c95?_0x4515be=_0x478512(0x187)+_0x46a6be+_0x478512(0x177):_0x4515be=_0x478512(0x187)+_0x46a6be+'\x20and\x20started\x20analysis':_0x4515be='Created\x20db\x20link\x20'+_0x46a6be,{'ok':!![],'data':_0x5c752b,'message':_0x4515be};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a79_0x34a6(){const _0x554152=['6UjyEdo','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','1363858OPfrou','377310tygDcJ','179764yzYuhJ','Deleted\x20db\x20link\x20','num','delete','6902ivNDZP','5079545jjruvq','5816bjVpna','105LvmvmG','high-risk-write','3010257WquTWj','83330ALcffq'];a79_0x34a6=function(){return _0x554152;};return a79_0x34a6();}const a79_0x353e86=a79_0x8f8e;(function(_0x49431e,_0x4696ce){const _0x43cedf=a79_0x8f8e,_0x565534=_0x49431e();while(!![]){try{const _0x47a6b3=parseInt(_0x43cedf(0x1c3))/0x1+parseInt(_0x43cedf(0x1c0))/0x2+-parseInt(_0x43cedf(0x1bd))/0x3*(-parseInt(_0x43cedf(0x1c5))/0x4)+-parseInt(_0x43cedf(0x1bb))/0x5*(parseInt(_0x43cedf(0x1c1))/0x6)+-parseInt(_0x43cedf(0x1ba))/0x7*(parseInt(_0x43cedf(0x1bc))/0x8)+-parseInt(_0x43cedf(0x1bf))/0x9+parseInt(_0x43cedf(0x1c4))/0xa;if(_0x47a6b3===_0x4696ce)break;else _0x565534['push'](_0x565534['shift']());}catch(_0x27a1f6){_0x565534['push'](_0x565534['shift']());}}}(a79_0x34a6,0xe7af9));import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a79_0x8f8e(_0xc6c628,_0x528a9b){_0xc6c628=_0xc6c628-0x1b7;const _0x34a6ef=a79_0x34a6();let _0x8f8e9=_0x34a6ef[_0xc6c628];return _0x8f8e9;}export const dbDelete={'service':'db','command':a79_0x353e86(0x1b9),'description':a79_0x353e86(0x1c2),'risk':a79_0x353e86(0x1be),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x494902){const _0x215b31=a79_0x353e86,_0x56cc1d=_0x494902[_0x215b31(0x1b8)]('id');return await deleteDbLink(_0x56cc1d),{'ok':!![],'data':{'id':_0x56cc1d,'deleted':!![]},'message':_0x215b31(0x1b7)+_0x56cc1d};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a80_0xdb1127=a80_0x4e2c;(function(_0x512517,_0x164529){const _0x47d9b9=a80_0x4e2c,_0x5712e4=_0x512517();while(!![]){try{const _0x1d8380=-parseInt(_0x47d9b9(0x10d))/0x1*(parseInt(_0x47d9b9(0x10c))/0x2)+parseInt(_0x47d9b9(0x113))/0x3+-parseInt(_0x47d9b9(0x10a))/0x4+-parseInt(_0x47d9b9(0x109))/0x5+-parseInt(_0x47d9b9(0x114))/0x6+parseInt(_0x47d9b9(0x111))/0x7+parseInt(_0x47d9b9(0x112))/0x8;if(_0x1d8380===_0x164529)break;else _0x5712e4['push'](_0x5712e4['shift']());}catch(_0x1cb991){_0x5712e4['push'](_0x5712e4['shift']());}}}(a80_0x2b1f,0x6c838));function a80_0x4e2c(_0x257255,_0x2db71a){_0x257255=_0x257255-0x109;const _0x2b1fe8=a80_0x2b1f();let _0x4e2c75=_0x2b1fe8[_0x257255];return _0x4e2c75;}import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a80_0x2b1f(){const _0x407d8b=['166299wPHMcC','11096800iQBZlt','1271346YVhlYd','3397578sXHtye','2044535WAEovW','335696JTOJcB','db\x20link\x20','2CFrZiy','331073GdZobg','num','read','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)'];a80_0x2b1f=function(){return _0x407d8b;};return a80_0x2b1f();}import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':'detail','description':a80_0xdb1127(0x110),'risk':a80_0xdb1127(0x10f),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2c3360){const _0x46b723=a80_0xdb1127,_0x2d2009=_0x2c3360[_0x46b723(0x10e)]('id'),_0x5e7974=await getDbLinkInfo(_0x2d2009);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x5e7974),'message':_0x46b723(0x10b)+_0x2d2009+':\x20'+_0x5e7974['dbName']};}};
|
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a81_0x5d54(_0x67efb8,_0x3b9c50){_0x67efb8=_0x67efb8-0x90;const _0x20476d=a81_0x2047();let _0x5d54c7=_0x20476d[_0x67efb8];return _0x5d54c7;}const a81_0x4550b4=a81_0x5d54;(function(_0x4618e1,_0x57baaf){const _0x422aac=a81_0x5d54,_0xd97280=_0x4618e1();while(!![]){try{const _0x4a07bb=parseInt(_0x422aac(0x9e))/0x1*(parseInt(_0x422aac(0x93))/0x2)+parseInt(_0x422aac(0x9a))/0x3*(parseInt(_0x422aac(0x98))/0x4)+parseInt(_0x422aac(0xa6))/0x5+-parseInt(_0x422aac(0x96))/0x6+parseInt(_0x422aac(0x9c))/0x7+-parseInt(_0x422aac(0xa2))/0x8+-parseInt(_0x422aac(0x90))/0x9;if(_0x4a07bb===_0x57baaf)break;else _0xd97280['push'](_0xd97280['shift']());}catch(_0xa86cd4){_0xd97280['push'](_0xd97280['shift']());}}}(a81_0x2047,0xd351c));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a81_0x2047(){const _0x5560d8=['8848144xOpTAl','page','string','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','6194105GvBojY','appCode','\x20(db\x20link\x20','11788425ejXAux','length','number','180874mlzTBV','pagesize','read','1622586IDhIQi','num','348qDfghp','Page\x20index\x20(1-based)','37776XtbKsy','str','7256473rnzzwP','\x20row(s),\x20total\x20','2JiXdiZ','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','table','diff'];a81_0x2047=function(){return _0x5560d8;};return a81_0x2047();}export const dbDiff={'service':'db','command':a81_0x4550b4(0xa1),'description':a81_0x4550b4(0x9f),'risk':a81_0x4550b4(0x95),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':a81_0x4550b4(0xa4),'description':a81_0x4550b4(0xa5)},{'name':a81_0x4550b4(0xa3),'type':a81_0x4550b4(0x92),'description':a81_0x4550b4(0x99),'default':0x1},{'name':a81_0x4550b4(0x94),'type':'number','description':'Page\x20size','default':0x14}],async 'execute'(_0x438587){const _0x5e345e=a81_0x4550b4,_0x21b2fa=_0x438587[_0x5e345e(0x97)]('id'),_0x31a3cd=_0x438587[_0x5e345e(0x97)](_0x5e345e(0xa3),0x1)||0x1,_0x470e64=_0x438587['num'](_0x5e345e(0x94),0x14)||0x14,_0x572996=_0x438587[_0x5e345e(0x9b)](_0x5e345e(0xa0))||undefined,{totalCount:_0x3765f7,physicalTableCount:_0x4f78c3,datasetTableCount:_0x5ba421,summary:_0x111ddb,tableList:_0x2c1528}=await getDbTableDiff(_0x438587[_0x5e345e(0xa7)],_0x21b2fa,{'pageIndex':_0x31a3cd,'pageSize':_0x470e64,'tableName':_0x572996});return{'ok':!![],'data':{'dbLinkId':_0x21b2fa,'page':_0x31a3cd,'pageSize':_0x470e64,'totalCount':_0x3765f7,'physicalTableCount':_0x4f78c3,'datasetTableCount':_0x5ba421,..._0x111ddb?{'summary':_0x111ddb}:{},'tables':_0x2c1528,'tableList':_0x2c1528},'message':_0x2c1528[_0x5e345e(0x91)]+_0x5e345e(0x9d)+_0x3765f7+_0x5e345e(0xa8)+_0x21b2fa+')'};}};
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3e02fb,_0x8b31ac){const _0x432cd9=a82_0x1f06,_0xee336c=_0x3e02fb();while(!![]){try{const _0x406212=parseInt(_0x432cd9(0xcf))/0x1*(-parseInt(_0x432cd9(0xd0))/0x2)+parseInt(_0x432cd9(0xd1))/0x3+-parseInt(_0x432cd9(0xcd))/0x4*(parseInt(_0x432cd9(0xc9))/0x5)+-parseInt(_0x432cd9(0xce))/0x6*(-parseInt(_0x432cd9(0xcc))/0x7)+parseInt(_0x432cd9(0xc8))/0x8+parseInt(_0x432cd9(0xcb))/0x9*(-parseInt(_0x432cd9(0xc7))/0xa)+-parseInt(_0x432cd9(0xd2))/0xb*(-parseInt(_0x432cd9(0xca))/0xc);if(_0x406212===_0x8b31ac)break;else _0xee336c['push'](_0xee336c['shift']());}catch(_0x1b46e0){_0xee336c['push'](_0xee336c['shift']());}}}(a82_0x48ea,0x4e6b1));function a82_0x1f06(_0x111abd,_0x297a35){_0x111abd=_0x111abd-0xc7;const _0x48ea88=a82_0x48ea();let _0x1f06c4=_0x48ea88[_0x111abd];return _0x1f06c4;}import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';function a82_0x48ea(){const _0x38491e=['2689mZQriK','460MZkdwM','522246ippFld','44nEsagD','50IcYkxr','3212768EpLOMf','5YQzEXH','2523060CRAXMP','848754XbpEbX','7hgNkap','2322940rvBumE','3451428uACzph'];a82_0x48ea=function(){return _0x38491e;};return a82_0x48ea();}import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
|
package/lib/commands/db/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a83_0x585b7d=a83_0x3c15;(function(_0x160e5c,_0x4ebb83){const _0x21dceb=a83_0x3c15,_0x242ac4=_0x160e5c();while(!![]){try{const _0x3ece77=-parseInt(_0x21dceb(0x184))/0x1+parseInt(_0x21dceb(0x188))/0x2+-parseInt(_0x21dceb(0x180))/0x3+parseInt(_0x21dceb(0x18e))/0x4*(-parseInt(_0x21dceb(0x18a))/0x5)+-parseInt(_0x21dceb(0x18b))/0x6+parseInt(_0x21dceb(0x187))/0x7+-parseInt(_0x21dceb(0x18c))/0x8*(-parseInt(_0x21dceb(0x186))/0x9);if(_0x3ece77===_0x4ebb83)break;else _0x242ac4['push'](_0x242ac4['shift']());}catch(_0xfe75fb){_0x242ac4['push'](_0x242ac4['shift']());}}}(a83_0x17f2,0x258ba));import{listDbLinks}from'../../core/api-client.js';function a83_0x17f2(){const _0x1df597=['Page\x20size','96792vUKaOC','list','number','length','177416jQANNU','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','3746079wKogDc','1895208qboZtZ','10470aVYxAt','pagesize','189310GAzisw','382260gUamKh','8AWOsdL','Found\x20','28TyhkjR','List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','num','read'];a83_0x17f2=function(){return _0x1df597;};return a83_0x17f2();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a83_0x3c15(_0xe60cb0,_0xb95986){_0xe60cb0=_0xe60cb0-0x17e;const _0x17f2d5=a83_0x17f2();let _0x3c159f=_0x17f2d5[_0xe60cb0];return _0x3c159f;}import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a83_0x585b7d(0x181),'description':a83_0x585b7d(0x18f),'risk':a83_0x585b7d(0x17e),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':a83_0x585b7d(0x182),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':a83_0x585b7d(0x189),'type':a83_0x585b7d(0x182),'description':a83_0x585b7d(0x17f),'default':0x64}],async 'execute'(_0x5e1e90){const _0x2ce2d0=a83_0x585b7d,_0x28da75=_0x5e1e90[_0x2ce2d0(0x190)]('page',0x1)||0x1,_0x54ff4c=_0x5e1e90[_0x2ce2d0(0x190)](_0x2ce2d0(0x189),0x64)||0x64,{items:_0x3bbd12,paging:_0x4b69c6}=await listDbLinks(_0x5e1e90['appCode'],{'currentPage':_0x28da75,'pageSize':_0x54ff4c}),_0x415150=sanitizeDbLinkList(_0x3bbd12),_0x28cfdd=_0x4b69c6?_0x4b69c6:{'currentPage':_0x28da75,'pageSize':_0x54ff4c,'rowsOnPage':_0x415150[_0x2ce2d0(0x183)],'totalCount':null,'note':_0x2ce2d0(0x185)};return{'ok':!![],'data':{'connections':_0x415150,'paging':_0x28cfdd},'message':_0x2ce2d0(0x18d)+_0x415150['length']+'\x20database\x20connection(s)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5cbb64,_0x3ab69b){const _0x4dd4d8=a84_0x4b42,_0x331f78=_0x5cbb64();while(!![]){try{const _0x408729=parseInt(_0x4dd4d8(0xea))/0x1+-parseInt(_0x4dd4d8(0xf3))/0x2*(parseInt(_0x4dd4d8(0xe1))/0x3)+-parseInt(_0x4dd4d8(0xf4))/0x4+-parseInt(_0x4dd4d8(0xe9))/0x5*(parseInt(_0x4dd4d8(0xf1))/0x6)+parseInt(_0x4dd4d8(0xf5))/0x7+parseInt(_0x4dd4d8(0xe5))/0x8+parseInt(_0x4dd4d8(0xe7))/0x9;if(_0x408729===_0x3ab69b)break;else _0x331f78['push'](_0x331f78['shift']());}catch(_0x26a032){_0x331f78['push'](_0x331f78['shift']());}}}(a84_0x14a0,0x4a545));import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0x35d283){const _0x51b220=a84_0x4b42,_0x407df0=_0x35d283[_0x51b220(0xfb)]();if(_0x407df0===_0x51b220(0xf8)||_0x407df0===_0x51b220(0xfa)||_0x407df0===_0x51b220(0xed))return!![];if(_0x407df0[_0x51b220(0xf9)]('secret')||_0x407df0[_0x51b220(0xf9)](_0x51b220(0xe6))||_0x407df0['includes'](_0x51b220(0xe4)))return!![];if(_0x407df0[_0x51b220(0xf9)](_0x51b220(0xe2))||_0x407df0[_0x51b220(0xf9)]('accesskey'))return!![];if(_0x407df0===_0x51b220(0xf7)||_0x407df0===_0x51b220(0xf6)||_0x407df0===_0x51b220(0xee))return!![];return![];}function a84_0x4b42(_0x56f105,_0x3b06a1){_0x56f105=_0x56f105-0xe1;const _0x14a0ee=a84_0x14a0();let _0x4b4215=_0x14a0ee[_0x56f105];return _0x4b4215;}export function sanitizeDbLinkForOutput(_0x4b1e61){const _0xa91dd2=a84_0x4b42,_0x4b5e22={..._0x4b1e61};for(const _0x58e14d of Object[_0xa91dd2(0xf2)](_0x4b5e22)){if(!shouldRedactKey(_0x58e14d))continue;const _0x358317=_0x4b5e22[_0x58e14d];_0x358317!=null&&String(_0x358317)[_0xa91dd2(0xe8)]>0x0&&(_0x4b5e22[_0x58e14d]='[redacted]');}return _0x4b5e22;}export function sanitizeDbLinkList(_0x4044da){const _0x2645e6=a84_0x4b42;return _0x4044da[_0x2645e6(0xeb)](_0x6e1837=>sanitizeDbLinkForOutput(_0x6e1837));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x4c9596){const _0x46b9d9=a84_0x4b42,_0x494c96=_0x4c9596['trim']();if(!_0x494c96)return![];return DB_URL_PATTERN[_0x46b9d9(0xef)](_0x494c96);}export function buildDbPageLinks(_0x352071,_0xf62a8e){const _0x264b87=a84_0x4b42,_0x2fff16=_0x352071?.[_0x264b87(0xe3)]();if(!_0x2fff16)return undefined;const _0xbad7ce=typeof _0xf62a8e==='number'?String(_0xf62a8e):String(_0xf62a8e??'')['trim']();if(!_0xbad7ce)return undefined;const _0x1fd768=Number(_0xbad7ce);if(!Number[_0x264b87(0xf0)](_0x1fd768)||_0x1fd768<=0x0)return undefined;const _0x18dc47=getAppBaseUrl(_0x2fff16),_0x482ac2=encodeURIComponent(String(_0x1fd768));return{'databasePage':_0x18dc47+'/data/database','erPage':_0x18dc47+_0x264b87(0xec)+_0x482ac2};}function a84_0x14a0(){const _0x1eeca1=['2242672kDziId','token','3110031WZCzYP','length','3755nsUZOL','332305WBuSue','map','/data/er?dbId=','dbpassword','jdbcurl','test','isFinite','3114BXDJmI','keys','316532ObiUQI','924248grlclM','3093188HvVkVM','connectionstring','authorization','password','includes','passwd','toLowerCase','9sooPfC','privatekey','trim','credential'];a84_0x14a0=function(){return _0x1eeca1;};return a84_0x14a0();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a85_0x4a1b2c=a85_0x22e4;(function(_0x36b218,_0x1e039c){const _0x695482=a85_0x22e4,_0x11218c=_0x36b218();while(!![]){try{const _0x3f5b40=parseInt(_0x695482(0x17b))/0x1*(parseInt(_0x695482(0x17c))/0x2)+-parseInt(_0x695482(0x178))/0x3+-parseInt(_0x695482(0x17f))/0x4*(parseInt(_0x695482(0x183))/0x5)+parseInt(_0x695482(0x17d))/0x6+-parseInt(_0x695482(0x182))/0x7+-parseInt(_0x695482(0x184))/0x8+parseInt(_0x695482(0x17e))/0x9;if(_0x3f5b40===_0x1e039c)break;else _0x11218c['push'](_0x11218c['shift']());}catch(_0x2d7236){_0x11218c['push'](_0x11218c['shift']());}}}(a85_0x3798,0xdfcc4));function a85_0x22e4(_0x432f20,_0x244886){_0x432f20=_0x432f20-0x178;const _0x3798ed=a85_0x3798();let _0x22e4e5=_0x3798ed[_0x432f20];return _0x22e4e5;}import{getDbAllTableList}from'../../core/api-client.js';function a85_0x3798(){const _0x356f26=['34467372NQzkQg','767244POIGFf','appCode','tables','9580011saLJGa','20ayHxLK','14107760koUkil','length','256608iZNVYK','read','num','94554hHoyIZ','18LUNQXr','1324830eHilVC'];a85_0x3798=function(){return _0x356f26;};return a85_0x3798();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a85_0x4a1b2c(0x181),'description':'List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','risk':a85_0x4a1b2c(0x179),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x143f6f){const _0x5df2b1=a85_0x4a1b2c,_0x3b4ab2=_0x143f6f[_0x5df2b1(0x17a)]('id'),_0x4723ea=await getDbAllTableList(_0x143f6f[_0x5df2b1(0x180)],_0x3b4ab2);return{'ok':!![],'data':{'dbLinkId':_0x3b4ab2,'total':_0x4723ea[_0x5df2b1(0x185)],'tables':_0x4723ea},'message':_0x4723ea[_0x5df2b1(0x185)]+'\x20table(s)\x20on\x20db\x20link\x20'+_0x3b4ab2};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a86_0x46cf9a=a86_0x51b7;(function(_0x38d85f,_0x296b93){const _0xb3ce1=a86_0x51b7,_0x1bf437=_0x38d85f();while(!![]){try{const _0x38e80e=parseInt(_0xb3ce1(0x9c))/0x1*(parseInt(_0xb3ce1(0x98))/0x2)+-parseInt(_0xb3ce1(0x9a))/0x3+parseInt(_0xb3ce1(0x99))/0x4*(-parseInt(_0xb3ce1(0xaa))/0x5)+-parseInt(_0xb3ce1(0x96))/0x6*(-parseInt(_0xb3ce1(0x95))/0x7)+-parseInt(_0xb3ce1(0xa0))/0x8+parseInt(_0xb3ce1(0xa9))/0x9*(parseInt(_0xb3ce1(0x9b))/0xa)+parseInt(_0xb3ce1(0x9f))/0xb;if(_0x38e80e===_0x296b93)break;else _0x1bf437['push'](_0x1bf437['shift']());}catch(_0x281ed8){_0x1bf437['push'](_0x1bf437['shift']());}}}(a86_0xb683,0x26ce5));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a86_0xb683(){const _0x215321=['object','19474jOtwMw','300EtFwlu','slice','59058BOuArl','12ggyyHx','662190Ujytce','95330ikzAHy','9LqNTxo','test','message','1874499pMZYOH','2471408nrfdcC','\x20(see\x20data.result)','read','length','success','data','keys','code','num','261ffgnvw','271870MeJynv','error','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)'];a86_0xb683=function(){return _0x215321;};return a86_0xb683();}function a86_0x51b7(_0x50d480,_0x19d8e4){_0x50d480=_0x50d480-0x93;const _0xb683bb=a86_0xb683();let _0x51b782=_0xb683bb[_0x50d480];return _0x51b782;}function summarizeTestConnectResult(_0x18376e){const _0xdf3236=a86_0x51b7;if(_0x18376e===!![]||_0x18376e===![])return{'success':_0x18376e};if(_0x18376e===null||_0x18376e===undefined)return{'type':typeof _0x18376e};if(typeof _0x18376e!==_0xdf3236(0x94))return{'type':typeof _0x18376e};const _0x4fbe33=_0x18376e,_0x4436e2=[_0xdf3236(0xa4),_0xdf3236(0x9e),_0xdf3236(0xa7),_0xdf3236(0xab),'msg',_0xdf3236(0xa5)],_0x14ace3={};for(const _0x564cae of _0x4436e2){if(_0x564cae in _0x4fbe33)_0x14ace3[_0x564cae]=_0x4fbe33[_0x564cae];}return Object['keys'](_0x14ace3)[_0xdf3236(0xa3)]===0x0&&(_0x14ace3[_0xdf3236(0xa6)]=Object[_0xdf3236(0xa6)](_0x4fbe33)[_0xdf3236(0x97)](0x0,0x14)),_0x14ace3;}export const dbTest={'service':'db','command':a86_0x46cf9a(0x9d),'description':a86_0x46cf9a(0x93),'risk':a86_0x46cf9a(0xa2),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1020cd){const _0x1bde2b=a86_0x46cf9a,_0x55d9c2=_0x1020cd[_0x1bde2b(0xa8)]('id'),_0x53e64d=await testDbLinkConnect(_0x55d9c2),_0x45b0f9=_0x53e64d===!![]||typeof _0x53e64d===_0x1bde2b(0x94)&&_0x53e64d!==null&&_0x53e64d[_0x1bde2b(0xa4)]===!![],_0x178940=summarizeTestConnectResult(_0x53e64d);return{'ok':!![],'data':{'id':_0x55d9c2,'connected':Boolean(_0x45b0f9),'result':_0x178940},'message':_0x45b0f9?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x55d9c2:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x55d9c2+_0x1bde2b(0xa1)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a87_0xb9be21=a87_0x5840;function a87_0x5e25(){const _0x54ff7c=['3659085hLgkfT','997742ApUEVx','New\x20username','str','60nWlpdW','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','dbparam','New\x20description','username','New\x20host:port','1OOcOSG','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','dbUrl','password','dbname','dbDesc','1158858gYUBrF','POST','num','Updated\x20db\x20link\x20','dbName','trim','3304545pkkTes','dbdesc','dbParam','386872XBsTyw','dburl','2192022uxTaPX','string','22986xuDxxR','/smartapi/dblink/update','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','validation'];a87_0x5e25=function(){return _0x54ff7c;};return a87_0x5e25();}function a87_0x5840(_0x17be81,_0x19bb93){_0x17be81=_0x17be81-0x119;const _0x5e25f2=a87_0x5e25();let _0x584065=_0x5e25f2[_0x17be81];return _0x584065;}(function(_0x2d3302,_0x26d837){const _0x59aecd=a87_0x5840,_0x227148=_0x2d3302();while(!![]){try{const _0x257ba7=-parseInt(_0x59aecd(0x11e))/0x1*(-parseInt(_0x59aecd(0x136))/0x2)+-parseInt(_0x59aecd(0x131))/0x3*(-parseInt(_0x59aecd(0x139))/0x4)+parseInt(_0x59aecd(0x12a))/0x5+-parseInt(_0x59aecd(0x124))/0x6+-parseInt(_0x59aecd(0x12f))/0x7+parseInt(_0x59aecd(0x12d))/0x8+-parseInt(_0x59aecd(0x135))/0x9;if(_0x257ba7===_0x26d837)break;else _0x227148['push'](_0x227148['shift']());}catch(_0x4433ae){_0x227148['push'](_0x227148['shift']());}}}(a87_0x5e25,0x64267));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':'update','description':a87_0xb9be21(0x119),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a87_0xb9be21(0x122),'type':a87_0xb9be21(0x130),'description':'New\x20database\x20name'},{'name':'dburl','type':a87_0xb9be21(0x130),'description':a87_0xb9be21(0x11d)},{'name':a87_0xb9be21(0x11c),'type':a87_0xb9be21(0x130),'description':a87_0xb9be21(0x137)},{'name':'password','type':a87_0xb9be21(0x130),'description':a87_0xb9be21(0x11f)},{'name':a87_0xb9be21(0x11a),'type':a87_0xb9be21(0x130),'description':'New\x20connection\x20parameter\x20string'},{'name':a87_0xb9be21(0x12b),'type':a87_0xb9be21(0x130),'description':a87_0xb9be21(0x11b)}],async 'validate'(_0x5ed106){const _0x4a93a4=a87_0xb9be21,_0x18d04a=_0x5ed106['str']('dburl');if(_0x18d04a&&!validateDbUrl(_0x18d04a[_0x4a93a4(0x129)]()))throw CliErrors[_0x4a93a4(0x134)](_0x4a93a4(0x133)+_0x18d04a+'\x22');},async 'dryRun'(_0x3bb077){const _0x141054=a87_0xb9be21,_0x616781=_0x3bb077[_0x141054(0x126)]('id'),_0x2d5fef=await getDbLinkInfo(_0x616781),_0x550d1e={..._0x2d5fef},_0x130818=_0x3bb077[_0x141054(0x138)](_0x141054(0x122));if(_0x130818)_0x550d1e[_0x141054(0x128)]=_0x130818;const _0xb9f87b=_0x3bb077[_0x141054(0x138)](_0x141054(0x12e));if(_0xb9f87b)_0x550d1e['dbUrl']=_0xb9f87b[_0x141054(0x129)]();const _0x29ffbf=_0x3bb077[_0x141054(0x138)]('username');if(_0x29ffbf)_0x550d1e[_0x141054(0x11c)]=_0x29ffbf;const _0x52a776=_0x3bb077[_0x141054(0x138)](_0x141054(0x121));if(_0x52a776)_0x550d1e[_0x141054(0x121)]=_0x52a776;const _0x27a4f6=_0x3bb077[_0x141054(0x138)](_0x141054(0x11a));if(_0x27a4f6)_0x550d1e[_0x141054(0x12c)]=_0x27a4f6;const _0x20aed1=_0x3bb077[_0x141054(0x138)](_0x141054(0x12b));if(_0x20aed1)_0x550d1e[_0x141054(0x123)]=_0x20aed1;const _0x2f4100=sanitizeDbLinkForOutput(_0x550d1e);return{'method':_0x141054(0x125),'url':_0x141054(0x132),'body':_0x2f4100,'description':'Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview'};},async 'execute'(_0x59d253){const _0x4268a6=a87_0xb9be21,_0x1ca50e=_0x59d253[_0x4268a6(0x126)]('id'),_0x36e415=await getDbLinkInfo(_0x1ca50e),_0x15e52c={..._0x36e415},_0x2103b7=_0x59d253['str'](_0x4268a6(0x122));if(_0x2103b7)_0x15e52c[_0x4268a6(0x128)]=_0x2103b7;const _0x432912=_0x59d253[_0x4268a6(0x138)]('dburl');if(_0x432912)_0x15e52c[_0x4268a6(0x120)]=_0x432912[_0x4268a6(0x129)]();const _0x36f542=_0x59d253['str']('username');if(_0x36f542)_0x15e52c[_0x4268a6(0x11c)]=_0x36f542;const _0x53ef3a=_0x59d253['str'](_0x4268a6(0x121));if(_0x53ef3a)_0x15e52c[_0x4268a6(0x121)]=_0x53ef3a;const _0x2da6b4=_0x59d253[_0x4268a6(0x138)](_0x4268a6(0x11a));if(_0x2da6b4)_0x15e52c[_0x4268a6(0x12c)]=_0x2da6b4;const _0x3f6a38=_0x59d253[_0x4268a6(0x138)](_0x4268a6(0x12b));if(_0x3f6a38)_0x15e52c[_0x4268a6(0x123)]=_0x3f6a38;const {id:_0x3e05e2,entity:_0xc8ac74}=normalizeEntityWithIdResponse(await updateDbLink(_0x15e52c));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0xc8ac74),'message':_0x4268a6(0x127)+(_0x3e05e2??_0x1ca50e)};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a87_0x44b8da=a87_0x17ab;(function(_0x1dfc48,_0x4c8303){const _0x355332=a87_0x17ab,_0x5af455=_0x1dfc48();while(!![]){try{const _0x21aa8b=parseInt(_0x355332(0x100))/0x1+parseInt(_0x355332(0x101))/0x2*(parseInt(_0x355332(0xef))/0x3)+parseInt(_0x355332(0x11b))/0x4*(parseInt(_0x355332(0xff))/0x5)+-parseInt(_0x355332(0xf4))/0x6*(-parseInt(_0x355332(0xf8))/0x7)+-parseInt(_0x355332(0xfc))/0x8+parseInt(_0x355332(0xfb))/0x9*(-parseInt(_0x355332(0xe6))/0xa)+parseInt(_0x355332(0xeb))/0xb;if(_0x21aa8b===_0x4c8303)break;else _0x5af455['push'](_0x5af455['shift']());}catch(_0xdd1e80){_0x5af455['push'](_0x5af455['shift']());}}}(a87_0x59a2,0x5b2c6));import a87_0x1682e2 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a87_0x17ab(_0x3fcbb3,_0x5dd92a){_0x3fcbb3=_0x3fcbb3-0xe0;const _0x59a2c2=a87_0x59a2();let _0x17ab18=_0x59a2c2[_0x3fcbb3];return _0x17ab18;}import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';function a87_0x59a2(){const _0xc50f8b=['\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','(none)','source','\x20\x20Config\x20JSON','accessKey','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','platform','value','missing','gray','\x20←\x20current','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','60afzIJq','\x20(default)','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','4734829iQYqnK','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','keys','294ZFqaxR','yellow','check','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','unknown','1866VdGMTP','(set\x20via\x20file,\x20length=','green','appcode','2940liBXwu','\x20\x20Apps','raw','995967fIcECt','4549024VfGark','verbose','(not\x20found)','319385pwgCIv','548348ybRZDK','8832BkAnAn','currentApp','cookie','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','bold','(missing)','\x20doctor','slice','apps','format','locale','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','(no\x20file)','\x20\x20Merged\x20Config','repeat','red','\x20\x20runtimeDomain:\x20\x20\x20','defaultApp','explicitAppName','env','apiDir','message','doctor','padEnd','4KSdzDb','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','Project','(default)','version','Global','✗\x20Expired','\x20\x20Config\x20Files','status'];a87_0x59a2=function(){return _0xc50f8b;};return a87_0x59a2();}import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x518a54){const _0x517a85=a87_0x17ab,_0x2bc35d=GIT_COMMIT!==_0x517a85(0xf3)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x517a85(0x109)](0x0,0xa)+')':VERSION,_0x426cb3=buildConfigFromFlags({}),_0x485994=getCookie();console[_0x517a85(0x10e)](),console[_0x517a85(0x10e)](a87_0x1682e2[_0x517a85(0x106)](CLI_BIN_NAME+_0x517a85(0x108))),console['log'](a87_0x1682e2[_0x517a85(0xe2)]('─'[_0x517a85(0x111)](0x32))),console['log'](_0x517a85(0x11c)+_0x2bc35d),console[_0x517a85(0x10e)](_0x517a85(0x12a)+process[_0x517a85(0x120)]),console[_0x517a85(0x10e)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x517a85(0x131)]+'\x20'+process[_0x517a85(0x130)]),console[_0x517a85(0x10e)](),console[_0x517a85(0x10e)](a87_0x1682e2[_0x517a85(0x106)](_0x517a85(0x123))),console['log'](a87_0x1682e2['gray']('\x20\x20─'[_0x517a85(0x111)](0x1e)));const _0x434af1=getGlobalConfigPath(),_0x22b18a=getProjectConfigPath();console[_0x517a85(0x10e)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x434af1||a87_0x1682e2[_0x517a85(0xe2)](_0x517a85(0xfe)))),console[_0x517a85(0x10e)](_0x517a85(0xf2)+(_0x22b18a||a87_0x1682e2[_0x517a85(0xe2)](_0x517a85(0xfe)))),console[_0x517a85(0x10e)](),console[_0x517a85(0x10e)](a87_0x1682e2['bold'](_0x517a85(0x128))),console[_0x517a85(0x10e)](a87_0x1682e2[_0x517a85(0xe2)](_0x517a85(0xed)[_0x517a85(0x111)](0x1e)));const _0x39c853=(_0x48485f,_0x18239a)=>{const _0x1a4395=_0x517a85;if(!_0x18239a){console['log']('\x20\x20'+_0x48485f[_0x1a4395(0x11a)](0x11)+'\x20'+a87_0x1682e2['gray'](_0x1a4395(0x10f)));return;}const _0x3fb146=inspectCliConfigJsonFile(_0x18239a);if(_0x3fb146['status']==='ok')console[_0x1a4395(0x10e)]('\x20\x20'+_0x48485f[_0x1a4395(0x11a)](0x11)+'\x20'+a87_0x1682e2['green']('✓\x20Valid\x20JSON'));else{if(_0x3fb146[_0x1a4395(0x124)]==='empty')console[_0x1a4395(0x10e)]('\x20\x20'+_0x48485f[_0x1a4395(0x11a)](0x11)+'\x20'+a87_0x1682e2[_0x1a4395(0xf0)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x3fb146[_0x1a4395(0x124)]===_0x1a4395(0xe1)?console['log']('\x20\x20'+_0x48485f[_0x1a4395(0x11a)](0x11)+'\x20'+a87_0x1682e2[_0x1a4395(0xe2)](_0x1a4395(0x107))):(console[_0x1a4395(0x10e)]('\x20\x20'+_0x48485f[_0x1a4395(0x11a)](0x11)+'\x20'+a87_0x1682e2[_0x1a4395(0x112)]('✗\x20Invalid\x20JSON')),console[_0x1a4395(0x10e)]('\x20\x20'+''[_0x1a4395(0x11a)](0x11)+'\x20'+a87_0x1682e2[_0x1a4395(0x112)](_0x3fb146[_0x1a4395(0x118)])));}};_0x39c853(_0x517a85(0x121),_0x434af1),_0x39c853(_0x517a85(0x11e),_0x22b18a),console['log'](),console[_0x517a85(0x10e)](a87_0x1682e2[_0x517a85(0x106)](_0x517a85(0x110))),console['log'](a87_0x1682e2['gray'](_0x517a85(0xed)[_0x517a85(0x111)](0x1e))),console['log'](_0x517a85(0xec)+(_0x426cb3['appCode']||a87_0x1682e2[_0x517a85(0x112)]('(not\x20set)'))),console['log'](_0x517a85(0xe9)+_0x426cb3['env']),console[_0x517a85(0x10e)](_0x517a85(0x10d)+_0x426cb3[_0x517a85(0x10c)]),console['log'](_0x517a85(0x12b)+_0x426cb3[_0x517a85(0x117)]),console[_0x517a85(0x10e)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x426cb3[_0x517a85(0x114)]||a87_0x1682e2[_0x517a85(0xe2)]('(none)'))),console[_0x517a85(0x10e)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x426cb3[_0x517a85(0x102)]||a87_0x1682e2['gray']('(none)'))),console[_0x517a85(0x10e)]('\x20\x20explicitAppName:\x20'+(_0x426cb3[_0x517a85(0x115)]||a87_0x1682e2[_0x517a85(0xe2)](_0x517a85(0x126)))),console[_0x517a85(0x10e)](_0x517a85(0x104)+(_0x426cb3['format']||a87_0x1682e2['gray']('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x517a85(0x10b)]+')'))),console[_0x517a85(0x10e)](_0x517a85(0x105)+(_0x426cb3['pageSize']??a87_0x1682e2['gray'](_0x517a85(0x11f)))),console[_0x517a85(0x10e)](_0x517a85(0xe5)+_0x426cb3['riskLevel']),console['log'](_0x517a85(0xe4)+_0x426cb3[_0x517a85(0xfd)]),console[_0x517a85(0x10e)](_0x517a85(0x12e)+(_0x426cb3[_0x517a85(0x103)]?a87_0x1682e2['green']('(set,\x20length='+_0x426cb3[_0x517a85(0x103)][_0x517a85(0x12c)]+')'):_0x485994?a87_0x1682e2[_0x517a85(0xf6)](_0x517a85(0xf5)+_0x485994[_0x517a85(0x12c)]+')'):a87_0x1682e2[_0x517a85(0xe2)](_0x517a85(0x126))));const _0x8be69a=Object[_0x517a85(0xee)](_0x426cb3[_0x517a85(0x10a)]);if(_0x8be69a[_0x517a85(0x12c)]>0x0){console[_0x517a85(0x10e)](),console[_0x517a85(0x10e)](a87_0x1682e2[_0x517a85(0x106)](_0x517a85(0xf9))),console[_0x517a85(0x10e)](a87_0x1682e2[_0x517a85(0xe2)](_0x517a85(0xed)['repeat'](0x1e)));for(const _0x5537af of _0x8be69a){const _0x734c49=_0x426cb3[_0x517a85(0x10a)][_0x5537af],_0x4cfc41=_0x5537af===_0x426cb3[_0x517a85(0x114)],_0x2642e9=_0x5537af===_0x426cb3[_0x517a85(0x102)],_0x2bdb0e=_0x2642e9?a87_0x1682e2[_0x517a85(0xf6)](_0x517a85(0xe3)):'',_0x174c85=_0x4cfc41?_0x517a85(0xe7):'';console[_0x517a85(0x10e)]('\x20\x20'+_0x5537af+_0x174c85+_0x2bdb0e),console[_0x517a85(0x10e)](_0x517a85(0x12d)+_0x734c49[_0x517a85(0xf7)]);const _0x3f8dc1=buildAppDoctorFields(_0x734c49,{'env':_0x426cb3[_0x517a85(0x116)],'apiDir':_0x426cb3[_0x517a85(0xfa)][_0x517a85(0x117)]||DEFAULT_CONFIG_VALUES[_0x517a85(0x117)],'cookie':_0x426cb3[_0x517a85(0x103)]||_0x485994||undefined,'accessKey':_0x426cb3[_0x517a85(0x129)]});console[_0x517a85(0x10e)](_0x517a85(0xe8)+_0x3f8dc1[_0x517a85(0x116)]['value']+'\x20\x20'+a87_0x1682e2['gray']('('+_0x3f8dc1['env'][_0x517a85(0x127)]+')')),console[_0x517a85(0x10e)](_0x517a85(0x125)+_0x3f8dc1[_0x517a85(0x117)][_0x517a85(0xe0)]+'\x20\x20'+a87_0x1682e2[_0x517a85(0xe2)]('('+_0x3f8dc1[_0x517a85(0x117)][_0x517a85(0x127)]+')'));const _0x1b9208=_0x3f8dc1['cookie'][_0x517a85(0xe0)]?a87_0x1682e2[_0x517a85(0xf6)]('(set,\x20length='+_0x3f8dc1[_0x517a85(0x103)][_0x517a85(0xe0)][_0x517a85(0x12c)]+')'):a87_0x1682e2['gray'](_0x517a85(0x126));console[_0x517a85(0x10e)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x1b9208+'\x20\x20'+a87_0x1682e2[_0x517a85(0xe2)]('('+_0x3f8dc1[_0x517a85(0x103)][_0x517a85(0x127)]+')'));const _0x26dc34=_0x3f8dc1[_0x517a85(0x129)][_0x517a85(0xe0)]?a87_0x1682e2['green']('(set,\x20length='+_0x3f8dc1[_0x517a85(0x129)][_0x517a85(0xe0)]['length']+')'):a87_0x1682e2[_0x517a85(0xe2)](_0x517a85(0x126));console[_0x517a85(0x10e)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x26dc34+'\x20\x20'+a87_0x1682e2[_0x517a85(0xe2)]('('+_0x3f8dc1[_0x517a85(0x129)][_0x517a85(0x127)]+')'));}}console[_0x517a85(0x10e)](),console['log'](a87_0x1682e2['bold']('\x20\x20API\x20Endpoints')),console['log'](a87_0x1682e2['gray'](_0x517a85(0xed)[_0x517a85(0x111)](0x1e))),console[_0x517a85(0x10e)](_0x517a85(0x11d)+getApiDomain()),console[_0x517a85(0x10e)](_0x517a85(0xea)+getUserDomain()),console[_0x517a85(0x10e)](_0x517a85(0x113)+getRuntimeDomain()),console[_0x517a85(0x10e)](),console['log'](a87_0x1682e2[_0x517a85(0x106)]('\x20\x20Auth')),console['log'](a87_0x1682e2['gray'](_0x517a85(0xed)[_0x517a85(0x111)](0x1e)));if(_0x485994){const _0x4a65e3=await getIsSessionValid();console[_0x517a85(0x10e)](_0x517a85(0x12f)+(_0x4a65e3?a87_0x1682e2[_0x517a85(0xf6)]('✓\x20Valid'):a87_0x1682e2['red'](_0x517a85(0x122))));}else console[_0x517a85(0x10e)](_0x517a85(0x12f)+a87_0x1682e2[_0x517a85(0x112)]('✗\x20Not\x20logged\x20in'));return console[_0x517a85(0x10e)](),{'ok':!![]};}export const doctorDefinition={'service':a87_0x44b8da(0x119),'command':a87_0x44b8da(0xf1),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a88_0x32f7f5=a88_0x1561;(function(_0xb3816c,_0x27302c){const _0xf8e671=a88_0x1561,_0x3d177d=_0xb3816c();while(!![]){try{const _0x501bb9=parseInt(_0xf8e671(0xf2))/0x1*(parseInt(_0xf8e671(0x125))/0x2)+parseInt(_0xf8e671(0x134))/0x3*(parseInt(_0xf8e671(0x122))/0x4)+parseInt(_0xf8e671(0x11f))/0x5*(parseInt(_0xf8e671(0xf0))/0x6)+parseInt(_0xf8e671(0x132))/0x7+parseInt(_0xf8e671(0xf6))/0x8*(-parseInt(_0xf8e671(0x11b))/0x9)+parseInt(_0xf8e671(0x13a))/0xa+-parseInt(_0xf8e671(0x11e))/0xb;if(_0x501bb9===_0x27302c)break;else _0x3d177d['push'](_0x3d177d['shift']());}catch(_0x4f6e7d){_0x3d177d['push'](_0x3d177d['shift']());}}}(a88_0x4099,0xe7187));import a88_0x39a32e from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a88_0x1561(_0x1560ee,_0x150c87){_0x1560ee=_0x1560ee-0xe8;const _0x40999d=a88_0x4099();let _0x156148=_0x40999d[_0x1560ee];return _0x156148;}import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';function a88_0x4099(){const _0xcf10b7=['(default:\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','riskLevel','9JzQafM','(default)','✓\x20Valid','29903566FAqxhe','45GvEepx','padEnd','currentApp','5937572pKZGOU','\x20doctor','\x20(default)','144uiQjHO','⚠\x20Empty\x20(treated\x20as\x20{})','check','✗\x20Not\x20logged\x20in','\x20\x20─','doctor','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','(set,\x20length=','red','log','\x20\x20Auth','(missing)','gray','5004048PYdGmN','raw','3DOjoqx','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','accessKey','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Apps','11412550CxBxJT','✓\x20Valid\x20JSON','length','value','keys','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Project','✗\x20Invalid\x20JSON','arch','appcode','version','✗\x20Expired','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','\x20\x20Config\x20JSON','711966xZKUry','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','6304KNCJNA','pageSize','(set\x20via\x20file,\x20length=','apps','9578208RMwqxo','env','\x20\x20API\x20Endpoints','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','apiDir','\x20\x20Merged\x20Config','Global','source','locale','(not\x20found)','cookie','(no\x20file)','repeat','\x20\x20\x20\x20accessKey:\x20\x20','status','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','yellow','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','format','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','slice','bold','empty','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','explicitAppName','(none)','missing'];a88_0x4099=function(){return _0xcf10b7;};return a88_0x4099();}import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x21dbef){const _0x134814=a88_0x1561,_0x4f77ac=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x134814(0x10f)](0x0,0xa)+')':VERSION,_0x179424=buildConfigFromFlags({}),_0x27be6b=getCookie();console[_0x134814(0x12e)](),console[_0x134814(0x12e)](a88_0x39a32e[_0x134814(0x110)](CLI_BIN_NAME+_0x134814(0x123))),console['log'](a88_0x39a32e[_0x134814(0x131)]('─'[_0x134814(0x103)](0x32))),console[_0x134814(0x12e)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x4f77ac),console['log'](_0x134814(0xed)+process[_0x134814(0xeb)]),console[_0x134814(0x12e)](_0x134814(0x109)+process['platform']+'\x20'+process[_0x134814(0xe9)]),console[_0x134814(0x12e)](),console[_0x134814(0x12e)](a88_0x39a32e[_0x134814(0x110)]('\x20\x20Config\x20Files')),console['log'](a88_0x39a32e[_0x134814(0x131)]('\x20\x20─'[_0x134814(0x103)](0x1e)));const _0x1c5027=getGlobalConfigPath(),_0x23d682=getProjectConfigPath();console[_0x134814(0x12e)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1c5027||a88_0x39a32e[_0x134814(0x131)]('(not\x20found)'))),console[_0x134814(0x12e)](_0x134814(0x13f)+(_0x23d682||a88_0x39a32e[_0x134814(0x131)](_0x134814(0x100)))),console['log'](),console['log'](a88_0x39a32e[_0x134814(0x110)](_0x134814(0xef))),console['log'](a88_0x39a32e[_0x134814(0x131)](_0x134814(0x129)['repeat'](0x1e)));const _0xd08aa7=(_0x479df8,_0x1b5c84)=>{const _0x928de=_0x134814;if(!_0x1b5c84){console[_0x928de(0x12e)]('\x20\x20'+_0x479df8[_0x928de(0x120)](0x11)+'\x20'+a88_0x39a32e[_0x928de(0x131)](_0x928de(0x102)));return;}const _0x3e0d28=inspectCliConfigJsonFile(_0x1b5c84);if(_0x3e0d28[_0x928de(0x105)]==='ok')console[_0x928de(0x12e)]('\x20\x20'+_0x479df8[_0x928de(0x120)](0x11)+'\x20'+a88_0x39a32e[_0x928de(0xee)](_0x928de(0x13b)));else{if(_0x3e0d28[_0x928de(0x105)]===_0x928de(0x111))console[_0x928de(0x12e)]('\x20\x20'+_0x479df8[_0x928de(0x120)](0x11)+'\x20'+a88_0x39a32e[_0x928de(0x108)](_0x928de(0x126)));else _0x3e0d28[_0x928de(0x105)]===_0x928de(0x116)?console[_0x928de(0x12e)]('\x20\x20'+_0x479df8['padEnd'](0x11)+'\x20'+a88_0x39a32e[_0x928de(0x131)](_0x928de(0x130))):(console[_0x928de(0x12e)]('\x20\x20'+_0x479df8[_0x928de(0x120)](0x11)+'\x20'+a88_0x39a32e['red'](_0x928de(0xe8))),console[_0x928de(0x12e)]('\x20\x20'+''[_0x928de(0x120)](0x11)+'\x20'+a88_0x39a32e[_0x928de(0x12d)](_0x3e0d28['message'])));}};_0xd08aa7(_0x134814(0xfd),_0x1c5027),_0xd08aa7(_0x134814(0x140),_0x23d682),console[_0x134814(0x12e)](),console[_0x134814(0x12e)](a88_0x39a32e[_0x134814(0x110)](_0x134814(0xfc))),console[_0x134814(0x12e)](a88_0x39a32e[_0x134814(0x131)](_0x134814(0x129)[_0x134814(0x103)](0x1e))),console[_0x134814(0x12e)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x179424['appCode']||a88_0x39a32e[_0x134814(0x12d)]('(not\x20set)'))),console[_0x134814(0x12e)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x179424[_0x134814(0xf7)]),console[_0x134814(0x12e)](_0x134814(0x118)+_0x179424[_0x134814(0xff)]),console[_0x134814(0x12e)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x179424[_0x134814(0xfb)]),console[_0x134814(0x12e)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x179424[_0x134814(0x10a)]||a88_0x39a32e['gray'](_0x134814(0x115)))),console['log'](_0x134814(0xfa)+(_0x179424[_0x134814(0x121)]||a88_0x39a32e['gray'](_0x134814(0x115)))),console[_0x134814(0x12e)](_0x134814(0x113)+(_0x179424[_0x134814(0x114)]||a88_0x39a32e[_0x134814(0x131)](_0x134814(0x115)))),console['log'](_0x134814(0x138)+(_0x179424[_0x134814(0x10b)]||a88_0x39a32e[_0x134814(0x131)](_0x134814(0x117)+DEFAULT_CONFIG_VALUES[_0x134814(0x10b)]+')'))),console[_0x134814(0x12e)](_0x134814(0xf9)+(_0x179424[_0x134814(0xf3)]??a88_0x39a32e[_0x134814(0x131)](_0x134814(0x11c)))),console[_0x134814(0x12e)](_0x134814(0x106)+_0x179424[_0x134814(0x11a)]),console[_0x134814(0x12e)](_0x134814(0x10e)+_0x179424['verbose']),console[_0x134814(0x12e)](_0x134814(0x10c)+(_0x179424['cookie']?a88_0x39a32e[_0x134814(0xee)]('(set,\x20length='+_0x179424[_0x134814(0x101)][_0x134814(0x13c)]+')'):_0x27be6b?a88_0x39a32e['green'](_0x134814(0xf4)+_0x27be6b[_0x134814(0x13c)]+')'):a88_0x39a32e[_0x134814(0x131)]('(none)')));const _0x26be84=Object[_0x134814(0x13e)](_0x179424[_0x134814(0xf5)]);if(_0x26be84[_0x134814(0x13c)]>0x0){console[_0x134814(0x12e)](),console[_0x134814(0x12e)](a88_0x39a32e['bold'](_0x134814(0x139))),console[_0x134814(0x12e)](a88_0x39a32e['gray']('\x20\x20─'[_0x134814(0x103)](0x1e)));for(const _0x5aeedb of _0x26be84){const _0x4918f1=_0x179424['apps'][_0x5aeedb],_0x333b05=_0x5aeedb===_0x179424[_0x134814(0x10a)],_0x1818be=_0x5aeedb===_0x179424[_0x134814(0x121)],_0x22b14c=_0x1818be?a88_0x39a32e[_0x134814(0xee)]('\x20←\x20current'):'',_0x45645e=_0x333b05?_0x134814(0x124):'';console[_0x134814(0x12e)]('\x20\x20'+_0x5aeedb+_0x45645e+_0x22b14c),console[_0x134814(0x12e)](_0x134814(0x12b)+_0x4918f1[_0x134814(0xea)]);const _0x127288=buildAppDoctorFields(_0x4918f1,{'env':_0x179424['env'],'apiDir':_0x179424[_0x134814(0x133)][_0x134814(0xfb)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x179424['cookie']||_0x27be6b||undefined,'accessKey':_0x179424['accessKey']});console[_0x134814(0x12e)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x127288[_0x134814(0xf7)]['value']+'\x20\x20'+a88_0x39a32e['gray']('('+_0x127288[_0x134814(0xf7)][_0x134814(0xfe)]+')')),console[_0x134814(0x12e)](_0x134814(0x119)+_0x127288[_0x134814(0xfb)][_0x134814(0x13d)]+'\x20\x20'+a88_0x39a32e['gray']('('+_0x127288[_0x134814(0xfb)][_0x134814(0xfe)]+')'));const _0x27db38=_0x127288[_0x134814(0x101)][_0x134814(0x13d)]?a88_0x39a32e['green'](_0x134814(0x12c)+_0x127288[_0x134814(0x101)][_0x134814(0x13d)][_0x134814(0x13c)]+')'):a88_0x39a32e[_0x134814(0x131)]('(none)');console[_0x134814(0x12e)](_0x134814(0x137)+_0x27db38+'\x20\x20'+a88_0x39a32e[_0x134814(0x131)]('('+_0x127288[_0x134814(0x101)]['source']+')'));const _0x50e537=_0x127288['accessKey']['value']?a88_0x39a32e['green']('(set,\x20length='+_0x127288[_0x134814(0x136)]['value'][_0x134814(0x13c)]+')'):a88_0x39a32e['gray'](_0x134814(0x115));console[_0x134814(0x12e)](_0x134814(0x104)+_0x50e537+'\x20\x20'+a88_0x39a32e[_0x134814(0x131)]('('+_0x127288[_0x134814(0x136)]['source']+')'));}}console[_0x134814(0x12e)](),console[_0x134814(0x12e)](a88_0x39a32e[_0x134814(0x110)](_0x134814(0xf8))),console[_0x134814(0x12e)](a88_0x39a32e[_0x134814(0x131)](_0x134814(0x129)[_0x134814(0x103)](0x1e))),console['log'](_0x134814(0x135)+getApiDomain()),console['log'](_0x134814(0x10d)+getUserDomain()),console['log'](_0x134814(0x107)+getRuntimeDomain()),console[_0x134814(0x12e)](),console[_0x134814(0x12e)](a88_0x39a32e[_0x134814(0x110)](_0x134814(0x12f))),console[_0x134814(0x12e)](a88_0x39a32e[_0x134814(0x131)](_0x134814(0x129)[_0x134814(0x103)](0x1e)));if(_0x27be6b){const _0x3e5f5a=await getIsSessionValid();console[_0x134814(0x12e)](_0x134814(0x112)+(_0x3e5f5a?a88_0x39a32e[_0x134814(0xee)](_0x134814(0x11d)):a88_0x39a32e['red'](_0x134814(0xec))));}else console['log'](_0x134814(0x112)+a88_0x39a32e['red'](_0x134814(0x128)));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a88_0x32f7f5(0x12a),'command':a88_0x32f7f5(0x127),'description':a88_0x32f7f5(0xf1),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0x184810=a89_0x4920;(function(_0x201edc,_0xc27a7){const _0x4b7c98=a89_0x4920,_0x566869=_0x201edc();while(!![]){try{const _0x545a51=-parseInt(_0x4b7c98(0x126))/0x1+parseInt(_0x4b7c98(0x11c))/0x2+parseInt(_0x4b7c98(0x125))/0x3*(parseInt(_0x4b7c98(0x104))/0x4)+-parseInt(_0x4b7c98(0x107))/0x5*(-parseInt(_0x4b7c98(0x105))/0x6)+-parseInt(_0x4b7c98(0x12c))/0x7*(-parseInt(_0x4b7c98(0x10f))/0x8)+-parseInt(_0x4b7c98(0x103))/0x9+parseInt(_0x4b7c98(0x130))/0xa*(-parseInt(_0x4b7c98(0x109))/0xb);if(_0x545a51===_0xc27a7)break;else _0x566869['push'](_0x566869['shift']());}catch(_0x3b24de){_0x566869['push'](_0x566869['shift']());}}}(a89_0x4548,0xdf1d3));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';function a89_0x4920(_0x4ee931,_0x43f66d){_0x4ee931=_0x4ee931-0x103;const _0x45481b=a89_0x4548();let _0x4920e7=_0x45481b[_0x4ee931];return _0x4920e7;}import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';function a89_0x4548(){const _0x3e5c15=['some','Write\x20to\x20global\x20config\x20instead\x20of\x20project','defaultApp','write','208108vGldAl','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','custom','string','\x0a✓\x20Successfully\x20initialized\x20','map','log','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','valid','903ahbYLY','84115wolUrN','project','production','str','global','join','44555pVLGjV','Usage:\x20','检测到旧配置文件,正在自动升级...\x0a','appCode','3494030SVktbH','Target\x20environment','4339377OhreLw','11668jRnmQj','795468JlTWwm','../../commands/project/init.js','25QvLWKt','nonInteractive','11vlYOaw','appcode','cwd','toLocaleString','init','yes','232sFspVe','App\x20code\x20to\x20initialize\x20with','boolean','bool','env','\x20\x20Env:\x20','\x20\x20Apps:\x20','\x20\x20Config:\x20','flagMissing'];a89_0x4548=function(){return _0x3e5c15;};return a89_0x4548();}import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x2587d1){return{'appCode':_0x2587d1,'appName':_0x2587d1};}function writeInitConfig(_0x2198a7,_0x4676e5,_0x425fe3){const _0x5ab604=a89_0x4920,_0x3f4e1d=resolveWriteConfigPath(_0x2198a7),_0x22574b=buildCanonicalProjectConfig({},{'appCodes':_0x4676e5[_0x5ab604(0x121)](_0x57d8d6=>_0x57d8d6[_0x5ab604(0x12f)]),'env':_0x425fe3,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x5ab604(0x10c)]()}});writeConfigFile(_0x3f4e1d,_0x22574b);const _0x113f50=_0x2198a7==='global'?_0x5ab604(0x12a):_0x5ab604(0x127);console['log'](_0x5ab604(0x120)+_0x113f50+'\x20config'),console[_0x5ab604(0x122)](_0x5ab604(0x115)+_0x4676e5[_0x5ab604(0x121)](_0x5e02ec=>_0x5e02ec[_0x5ab604(0x12f)])[_0x5ab604(0x12b)](',\x20')),console[_0x5ab604(0x122)]('\x20\x20Default:\x20'+_0x22574b[_0x5ab604(0x11a)]),console[_0x5ab604(0x122)](_0x5ab604(0x114)+_0x22574b[_0x5ab604(0x113)]),console['log'](_0x5ab604(0x116)+_0x3f4e1d);}async function runSmartInit(_0x55c5b3){const _0x502bae=a89_0x4920,_0x390109=process[_0x502bae(0x10b)](),_0x5c47bc=_0x55c5b3[_0x502bae(0x112)](_0x502bae(0x12a))?'global':'project',_0x218538=_0x55c5b3[_0x502bae(0x129)](_0x502bae(0x113))||'production',_0x2a59d7=_0x55c5b3[_0x502bae(0x129)](_0x502bae(0x10a))||undefined,_0x38af83=_0x55c5b3['bool']('project');if(_0x38af83){const {initConfig:_0x392c30}=await import(_0x502bae(0x106));return _0x392c30({'appcode':_0x2a59d7,'env':_0x218538,'autoYes':_0x55c5b3['bool']('yes')});}if(_0x5c47bc===_0x502bae(0x127)){const _0x34549a=existsSync(resolve(_0x390109,NEW_CONFIG_NAME)),_0x2eb76d=LEGACY_CONFIG_NAMES[_0x502bae(0x118)](_0x1a80be=>existsSync(resolve(_0x390109,_0x1a80be)));if(_0x2eb76d&&!_0x34549a)return console['log'](_0x502bae(0x12e)),upgradeApp(_0x55c5b3[_0x502bae(0x108)],{'yes':_0x55c5b3[_0x502bae(0x112)](_0x502bae(0x10e))});if(_0x34549a)throw CliErrors['validation']('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','Use\x20`'+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x2a59d7){const _0x494573=validateAppcode(_0x2a59d7);if(!_0x494573[_0x502bae(0x124)])throw CliErrors['validation'](_0x494573['message']);writeInitConfig(_0x5c47bc,[syntheticApp(_0x2a59d7)],_0x218538);return;}if(_0x55c5b3['nonInteractive'])throw CliErrors[_0x502bae(0x117)](_0x502bae(0x10a),_0x502bae(0x12d)+CLI_BIN_NAME+_0x502bae(0x123));const _0x4bf39e=getCookie(),_0x1d825b=await selectMultipleApps(_0x4bf39e),_0x40eccf=_0x1d825b===_0x502bae(0x11e)?[syntheticApp(await promptCustomAppcode())]:_0x1d825b;writeInitConfig(_0x5c47bc,_0x40eccf,_0x218538);}const initFlags=[{'name':a89_0x184810(0x12a),'type':a89_0x184810(0x111),'description':a89_0x184810(0x119),'default':![]},{'name':a89_0x184810(0x113),'type':a89_0x184810(0x11f),'description':a89_0x184810(0x131),'default':a89_0x184810(0x128),'enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':a89_0x184810(0x11f),'description':a89_0x184810(0x110)},{'name':a89_0x184810(0x127),'type':a89_0x184810(0x111),'description':a89_0x184810(0x11d),'default':![]},{'name':a89_0x184810(0x10e),'type':a89_0x184810(0x111),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a89_0x184810(0x10d),'command':'run','description':'Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','risk':a89_0x184810(0x11b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x1909ef){return await runSmartInit(_0x1909ef),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a90_0x4057(_0xb82d95,_0x5951f6){_0xb82d95=_0xb82d95-0x14a;const _0x404970=a90_0x4049();let _0x4057c4=_0x404970[_0xb82d95];return _0x4057c4;}(function(_0x287904,_0xa2337c){const _0x1d580b=a90_0x4057,_0x4a65c0=_0x287904();while(!![]){try{const _0x1a2f7e=-parseInt(_0x1d580b(0x14d))/0x1+-parseInt(_0x1d580b(0x14b))/0x2*(parseInt(_0x1d580b(0x14f))/0x3)+parseInt(_0x1d580b(0x151))/0x4+parseInt(_0x1d580b(0x14e))/0x5+parseInt(_0x1d580b(0x14c))/0x6+-parseInt(_0x1d580b(0x14a))/0x7+parseInt(_0x1d580b(0x150))/0x8;if(_0x1a2f7e===_0xa2337c)break;else _0x4a65c0['push'](_0x4a65c0['shift']());}catch(_0x54ab8d){_0x4a65c0['push'](_0x4a65c0['shift']());}}}(a90_0x4049,0x29339));import{issueReport}from'../../commands/issue/report.js';function a90_0x4049(){const _0x5afa46=['92HdeYBH','718242SmQJsa','265095MTtCpI','1552290TALqpt','11328klFQGz','789376Quimhn','747284ggjkjq','756742IuXIwW'];a90_0x4049=function(){return _0x5afa46;};return a90_0x4049();}export const issueDefinitions=[issueReport];
|