@lovrabet/rabetbase-cli 2.3.1 → 2.3.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/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/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 -0
- 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
|
-
function
|
|
1
|
+
function a74_0x5be1(){const _0x1bda48=['Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)','4695608VvvOoC','2824796emkRJb','analyze-cancel','369135zLpumR','384700HrOhGB','latestAnalysisTraceId','string','num','1720146GPUhgF','Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','254WymJTh','str','12OPXqnw','4223JPZfHB','Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.','42kMsaeC','validation','7lKPmhX','130VjWfIH','Cancel\x20requested\x20for\x20plan\x20','plan','2356409amXsji'];a74_0x5be1=function(){return _0x1bda48;};return a74_0x5be1();}const a74_0x277c43=a74_0x5557;(function(_0x14429e,_0x245481){const _0x777bed=a74_0x5557,_0x584337=_0x14429e();while(!![]){try{const _0x43e498=-parseInt(_0x777bed(0x14c))/0x1*(parseInt(_0x777bed(0x149))/0x2)+parseInt(_0x777bed(0x147))/0x3+parseInt(_0x777bed(0x140))/0x4+-parseInt(_0x777bed(0x143))/0x5*(parseInt(_0x777bed(0x137))/0x6)+parseInt(_0x777bed(0x139))/0x7*(-parseInt(_0x777bed(0x13f))/0x8)+-parseInt(_0x777bed(0x142))/0x9*(-parseInt(_0x777bed(0x13a))/0xa)+-parseInt(_0x777bed(0x13d))/0xb*(-parseInt(_0x777bed(0x14b))/0xc);if(_0x43e498===_0x245481)break;else _0x584337['push'](_0x584337['shift']());}catch(_0x3770c5){_0x584337['push'](_0x584337['shift']());}}}(a74_0x5be1,0x59257));import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a74_0x5557(_0x9e4ee6,_0x4a66e4){_0x9e4ee6=_0x9e4ee6-0x137;const _0x5be1d7=a74_0x5be1();let _0x555709=_0x5be1d7[_0x9e4ee6];return _0x555709;}export const dbAnalyzeCancel={'service':'db','command':a74_0x277c43(0x141),'description':a74_0x277c43(0x148),'risk':'write','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':'plan','type':a74_0x277c43(0x145),'description':a74_0x277c43(0x13e)}],async 'execute'(_0x2dfe11){const _0x4d0ce6=a74_0x277c43,_0x2dcec1=_0x2dfe11[_0x4d0ce6(0x146)]('id');let _0x2d234f=_0x2dfe11[_0x4d0ce6(0x14a)](_0x4d0ce6(0x13c))||undefined;if(!_0x2d234f){const _0xae0646=await getDbLinkInfo(_0x2dcec1);_0x2d234f=_0xae0646[_0x4d0ce6(0x144)]??undefined;if(!_0x2d234f)throw CliErrors[_0x4d0ce6(0x138)]('No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.',_0x4d0ce6(0x14d));}return await cancelDbAnalysis(_0x2d234f),{'ok':!![],'data':{'dbLinkId':_0x2dcec1,'planId':_0x2d234f},'message':_0x4d0ce6(0x13b)+_0x2d234f};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a75_0x24fd(){const _0x5d3910=['write','507885ljNekt','filter','15daJBIX','4677147jKSDkI','appCode','1720048iUIWhS','Started\x20analysis\x20for\x20db\x20link\x20','11739200TyqWiZ','analyze-start','1810sJBfDD','87feiXHi','map','split','8KwvkaD','3398381aSiKyY','Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)','6654XaItET'];a75_0x24fd=function(){return _0x5d3910;};return a75_0x24fd();}const a75_0x870e76=a75_0x5188;function a75_0x5188(_0x57936c,_0x15eef9){_0x57936c=_0x57936c-0x93;const _0x24fda2=a75_0x24fd();let _0x51884f=_0x24fda2[_0x57936c];return _0x51884f;}(function(_0x6539e1,_0x12d91a){const _0x2f794f=a75_0x5188,_0x201f1a=_0x6539e1();while(!![]){try{const _0x19a095=parseInt(_0x2f794f(0x9c))/0x1+parseInt(_0x2f794f(0x93))/0x2*(parseInt(_0x2f794f(0x94))/0x3)+-parseInt(_0x2f794f(0xa1))/0x4+-parseInt(_0x2f794f(0x9e))/0x5*(-parseInt(_0x2f794f(0x9a))/0x6)+-parseInt(_0x2f794f(0x98))/0x7+parseInt(_0x2f794f(0x97))/0x8*(-parseInt(_0x2f794f(0x9f))/0x9)+parseInt(_0x2f794f(0xa3))/0xa;if(_0x19a095===_0x12d91a)break;else _0x201f1a['push'](_0x201f1a['shift']());}catch(_0x2bf953){_0x201f1a['push'](_0x201f1a['shift']());}}}(a75_0x24fd,0x436e7));import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';export const dbAnalyzeStart={'service':'db','command':a75_0x870e76(0xa4),'description':'Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','risk':a75_0x870e76(0x9b),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':'tables','type':'string','description':a75_0x870e76(0x99)}],async 'execute'(_0x146db4){const _0x1ab047=a75_0x870e76,_0x384f61=_0x146db4['num']('id'),_0x115e08=_0x146db4['str']('tables'),_0x3e9e28=_0x115e08?_0x115e08[_0x1ab047(0x96)](',')[_0x1ab047(0x95)](_0x3aeeb9=>_0x3aeeb9['trim']())[_0x1ab047(0x9d)](Boolean):undefined,_0xbee4a0=await startDbAnalysis(_0x384f61,_0x3e9e28),_0x231e0b=buildDbPageLinks(_0x146db4[_0x1ab047(0xa0)],_0x384f61);return{'ok':!![],'data':{'dbLinkId':_0x384f61,'planId':_0xbee4a0,'tableNames':_0x3e9e28??[],..._0x231e0b?{'links':_0x231e0b}:{}},'message':_0x1ab047(0xa2)+_0x384f61};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a76_0x4403b4=a76_0x41ec;(function(_0x5c8297,_0x1ce682){const _0x5c88d4=a76_0x41ec,_0x10cbe7=_0x5c8297();while(!![]){try{const _0x99029f=-parseInt(_0x5c88d4(0x126))/0x1+-parseInt(_0x5c88d4(0x12b))/0x2+-parseInt(_0x5c88d4(0x12e))/0x3*(-parseInt(_0x5c88d4(0x133))/0x4)+-parseInt(_0x5c88d4(0x132))/0x5*(parseInt(_0x5c88d4(0x135))/0x6)+-parseInt(_0x5c88d4(0x12a))/0x7*(parseInt(_0x5c88d4(0x136))/0x8)+-parseInt(_0x5c88d4(0x125))/0x9+parseInt(_0x5c88d4(0x129))/0xa*(parseInt(_0x5c88d4(0x130))/0xb);if(_0x99029f===_0x1ce682)break;else _0x10cbe7['push'](_0x10cbe7['shift']());}catch(_0x4c0474){_0x10cbe7['push'](_0x10cbe7['shift']());}}}(a76_0x2c0f,0xb7bef));import{getDbAnalysisStatus}from'../../core/api-client.js';function a76_0x2c0f(){const _0x4c4543=['694505fHZpcB','4cDiTSJ','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','24HrxAJx','9830736GNIfkg','4505067MtoQKG','219887HAkafC','num','str','37694620RcCxyx','7qytLLD','1978214izeOID','analyze-status','read','1431492BapKDA','plan','11sPqyXo','string'];a76_0x2c0f=function(){return _0x4c4543;};return a76_0x2c0f();}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';function a76_0x41ec(_0x3ab448,_0x171609){_0x3ab448=_0x3ab448-0x125;const _0x2c0f1b=a76_0x2c0f();let _0x41ecbd=_0x2c0f1b[_0x3ab448];return _0x41ecbd;}export const dbAnalyzeStatus={'service':'db','command':a76_0x4403b4(0x12c),'description':a76_0x4403b4(0x134),'risk':a76_0x4403b4(0x12d),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a76_0x4403b4(0x12f),'type':a76_0x4403b4(0x131),'required':!![],'description':'Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)'}],async 'execute'(_0x2c989f){const _0x3f6717=a76_0x4403b4,_0x482fa0=_0x2c989f[_0x3f6717(0x127)]('id'),_0xb8a0da=_0x2c989f[_0x3f6717(0x128)](_0x3f6717(0x12f)),_0x3859ae=await getDbAnalysisStatus(_0xb8a0da),_0x4d6add=buildDbPageLinks(_0x2c989f['appCode'],_0x482fa0);return{'ok':!![],'data':{'dbLinkId':_0x482fa0,'planId':_0xb8a0da,'status':_0x3859ae,..._0x4d6add?{'links':_0x4d6add}:{}},'message':'Analysis\x20status\x20for\x20'+_0xb8a0da};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a77_0x37ae(_0x446394,_0x2dc7e7){_0x446394=_0x446394-0x9d;const _0x5f0f0c=a77_0x5f0f();let _0x37ae84=_0x5f0f0c[_0x446394];return _0x37ae84;}const a77_0x5b0700=a77_0x37ae;(function(_0x161284,_0x3eedab){const _0x590080=a77_0x37ae,_0x4a20fc=_0x161284();while(!![]){try{const _0x1a16ad=-parseInt(_0x590080(0xca))/0x1*(-parseInt(_0x590080(0xb2))/0x2)+-parseInt(_0x590080(0xbc))/0x3*(-parseInt(_0x590080(0xb7))/0x4)+-parseInt(_0x590080(0xa5))/0x5+-parseInt(_0x590080(0xc6))/0x6*(parseInt(_0x590080(0xa1))/0x7)+-parseInt(_0x590080(0x9e))/0x8*(parseInt(_0x590080(0xbf))/0x9)+parseInt(_0x590080(0xc8))/0xa+parseInt(_0x590080(0xa3))/0xb*(parseInt(_0x590080(0xcc))/0xc);if(_0x1a16ad===_0x3eedab)break;else _0x4a20fc['push'](_0x4a20fc['shift']());}catch(_0x4c8c02){_0x4a20fc['push'](_0x4a20fc['shift']());}}}(a77_0x5f0f,0x28122));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';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':a77_0x5b0700(0xb5),'description':a77_0x5b0700(0xbb),'risk':a77_0x5b0700(0xab),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a77_0x5b0700(0xc5),'type':a77_0x5b0700(0xb0),'required':!![],'description':a77_0x5b0700(0xc1)},DB_TYPE_FLAG,{'name':'dbversion','type':a77_0x5b0700(0xb0),'description':a77_0x5b0700(0xad),'default':a77_0x5b0700(0xb8)},{'name':a77_0x5b0700(0x9f),'type':a77_0x5b0700(0xb0),'required':!![],'description':a77_0x5b0700(0xc9)},{'name':a77_0x5b0700(0xa4),'type':a77_0x5b0700(0xb0),'required':!![],'description':a77_0x5b0700(0xaa)},{'name':a77_0x5b0700(0xa7),'type':a77_0x5b0700(0xb0),'required':!![],'description':a77_0x5b0700(0xc7)},{'name':a77_0x5b0700(0xac),'type':a77_0x5b0700(0xb0),'description':'Extra\x20JDBC-style\x20connection\x20parameters\x20string'},{'name':a77_0x5b0700(0xa2),'type':'string','description':'Human-readable\x20description'},{'name':'autostart','type':'boolean','description':a77_0x5b0700(0xba),'default':![]}],async 'validate'(_0x31daa4){const _0x220107=a77_0x5b0700,_0x13eea5=_0x31daa4[_0x220107(0xb3)](_0x220107(0x9f))[_0x220107(0xb1)]();if(!validateDbUrl(_0x13eea5))throw CliErrors[_0x220107(0xcb)](_0x220107(0xb6)+_0x13eea5+'\x22',_0x220107(0xb9));},async 'dryRun'(_0x451b6c){const _0x4c102c=a77_0x5b0700,_0x32559b={'appCode':_0x451b6c['appCode'],'dbName':_0x451b6c['str'](_0x4c102c(0xc5)),'dbType':_0x451b6c[_0x4c102c(0xb3)]('dbtype'),'dbVersion':_0x451b6c[_0x4c102c(0xb3)](_0x4c102c(0xa9))||_0x4c102c(0xb8),'dbUrl':_0x451b6c[_0x4c102c(0xb3)](_0x4c102c(0x9f))['trim'](),'username':_0x451b6c[_0x4c102c(0xb3)]('username'),'password':'[redacted]',..._0x451b6c['str']('dbparam')?{'dbParam':_0x451b6c[_0x4c102c(0xb3)](_0x4c102c(0xac))}:{},..._0x451b6c[_0x4c102c(0xb3)](_0x4c102c(0xa2))?{'dbDesc':_0x451b6c[_0x4c102c(0xb3)](_0x4c102c(0xa2))}:{}};return{'method':'POST','url':_0x4c102c(0xb4),'body':_0x32559b,'description':[_0x4c102c(0x9d),_0x451b6c['bool'](_0x4c102c(0xa0))?'Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id':_0x4c102c(0xc3)][_0x4c102c(0xc4)]('\x0a')};},async 'execute'(_0x600ec3){const _0x2e8f43=a77_0x5b0700,_0x17050b={'appCode':_0x600ec3[_0x2e8f43(0xae)],'dbName':_0x600ec3['str']('dbname'),'dbType':_0x600ec3[_0x2e8f43(0xb3)](_0x2e8f43(0xbd)),'dbVersion':_0x600ec3[_0x2e8f43(0xb3)](_0x2e8f43(0xa9))||_0x2e8f43(0xb8),'dbUrl':_0x600ec3[_0x2e8f43(0xb3)](_0x2e8f43(0x9f))[_0x2e8f43(0xb1)](),'username':_0x600ec3['str']('username'),'password':_0x600ec3['str'](_0x2e8f43(0xa7)),..._0x600ec3[_0x2e8f43(0xb3)](_0x2e8f43(0xac))?{'dbParam':_0x600ec3[_0x2e8f43(0xb3)](_0x2e8f43(0xac))}:{},..._0x600ec3['str']('dbdesc')?{'dbDesc':_0x600ec3[_0x2e8f43(0xb3)](_0x2e8f43(0xa2))}:{}},{id:_0x50d64f,entity:_0x2d1291}=normalizeEntityWithIdResponse(await createDbLink(_0x17050b));if(!_0x50d64f)return{'ok':![],'message':_0x2e8f43(0xa6),'data':sanitizeDbLinkForOutput(_0x2d1291)};let _0x3e57a7,_0xe684cc;if(_0x600ec3[_0x2e8f43(0xc0)](_0x2e8f43(0xa0)))try{_0x3e57a7=await startDbAnalysis(_0x50d64f);}catch(_0x434a72){_0xe684cc=_0x434a72 instanceof Error?_0x434a72['message']:String(_0x434a72);}const _0x39d2c9=buildDbPageLinks(_0x600ec3['appCode'],_0x50d64f),_0x3dd032={'connection':sanitizeDbLinkForOutput(_0x2d1291),..._0x39d2c9?{'links':{'databasePage':_0x39d2c9[_0x2e8f43(0xc2)]}}:{},..._0x3e57a7?{'analysisPlanId':_0x3e57a7}:{},..._0xe684cc?{'analysisStartWarning':_0xe684cc}:{}};let _0x3d09ca;return _0x600ec3[_0x2e8f43(0xc0)](_0x2e8f43(0xa0))?_0xe684cc?_0x3d09ca='Created\x20db\x20link\x20'+_0x50d64f+_0x2e8f43(0xa8):_0x3d09ca='Created\x20db\x20link\x20'+_0x50d64f+_0x2e8f43(0xbe):_0x3d09ca=_0x2e8f43(0xaf)+_0x50d64f,{'ok':!![],'data':_0x3dd032,'message':_0x3d09ca};}};function a77_0x5f0f(){const _0x9a1c28=['29ZxeRfr','validation','6444AGPuMX','Create\x20dblink','56TUYoMx','dburl','autostart','1687mzxjjJ','dbdesc','7700ICQpzX','username','868855zAgEHi','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','password',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','dbversion','Database\x20username','write','dbparam','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','appCode','Created\x20db\x20link\x20','string','trim','6728hKTClw','str','/smartapi/dblink/create','create','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','232100DLpMSO','8.0','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','After\x20create,\x20start\x20schema\x20analysis','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','3WKJjyh','dbtype','\x20and\x20started\x20analysis','321696qNojKG','bool','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','databasePage','No\x20follow-up\x20analysis','join','dbname','2334ToYUtb','Database\x20password','1503770sVYgDs','Host\x20and\x20port:\x20host:port'];a77_0x5f0f=function(){return _0x9a1c28;};return a77_0x5f0f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a78_0x39c6ef=a78_0x1572;function a78_0x1572(_0x4c9669,_0x550601){_0x4c9669=_0x4c9669-0xa5;const _0xb4cfa7=a78_0xb4cf();let _0x157210=_0xb4cfa7[_0x4c9669];return _0x157210;}(function(_0x51d399,_0xd6841){const _0xe00be8=a78_0x1572,_0x247189=_0x51d399();while(!![]){try{const _0x48a83e=parseInt(_0xe00be8(0xaf))/0x1+parseInt(_0xe00be8(0xa6))/0x2*(-parseInt(_0xe00be8(0xa8))/0x3)+parseInt(_0xe00be8(0xae))/0x4+-parseInt(_0xe00be8(0xa9))/0x5*(-parseInt(_0xe00be8(0xad))/0x6)+-parseInt(_0xe00be8(0xb0))/0x7*(parseInt(_0xe00be8(0xaa))/0x8)+parseInt(_0xe00be8(0xa5))/0x9+-parseInt(_0xe00be8(0xb1))/0xa*(parseInt(_0xe00be8(0xab))/0xb);if(_0x48a83e===_0xd6841)break;else _0x247189['push'](_0x247189['shift']());}catch(_0x12582d){_0x247189['push'](_0x247189['shift']());}}}(a78_0xb4cf,0xd744d));function a78_0xb4cf(){const _0xfdf4bd=['8562561yjspXj','570doBzJN','14508648tOxfwd','2WjXkRb','Deleted\x20db\x20link\x20','4084872ezriKI','5CdfFAz','8rpMnBA','54714FZFtdo','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','3650736dRZwPi','2677872KQiugD','860110IOjfiF'];a78_0xb4cf=function(){return _0xfdf4bd;};return a78_0xb4cf();}import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDelete={'service':'db','command':'delete','description':a78_0x39c6ef(0xac),'risk':'high-risk-write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x39211c){const _0x1fbf50=a78_0x39c6ef,_0x538137=_0x39211c['num']('id');return await deleteDbLink(_0x538137),{'ok':!![],'data':{'id':_0x538137,'deleted':!![]},'message':_0x1fbf50(0xa7)+_0x538137};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a79_0x5ebc1c=a79_0x1334;(function(_0x1b6686,_0x2c0b6a){const _0x569b27=a79_0x1334,_0x4f483c=_0x1b6686();while(!![]){try{const _0x2804ac=parseInt(_0x569b27(0x84))/0x1+-parseInt(_0x569b27(0x86))/0x2+parseInt(_0x569b27(0x8c))/0x3*(parseInt(_0x569b27(0x8a))/0x4)+parseInt(_0x569b27(0x81))/0x5*(parseInt(_0x569b27(0x8d))/0x6)+parseInt(_0x569b27(0x88))/0x7*(parseInt(_0x569b27(0x82))/0x8)+-parseInt(_0x569b27(0x83))/0x9+parseInt(_0x569b27(0x85))/0xa*(parseInt(_0x569b27(0x8b))/0xb);if(_0x2804ac===_0x2c0b6a)break;else _0x4f483c['push'](_0x4f483c['shift']());}catch(_0x382b4d){_0x4f483c['push'](_0x4f483c['shift']());}}}(a79_0x43b7,0x97be8));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a79_0x43b7(){const _0x150752=['10632060uHdBWv','14229uFepcv','10WnxTzE','354806TjIKDK','dbName','91zXOLrI','detail','104QnVdGX','2058947mvDyTg','30117cWlDRQ','40488JXlzyx','read','260gdSriZ','718136FGSDrO'];a79_0x43b7=function(){return _0x150752;};return a79_0x43b7();}import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a79_0x1334(_0x129840,_0x5d1117){_0x129840=_0x129840-0x81;const _0x43b7a9=a79_0x43b7();let _0x133403=_0x43b7a9[_0x129840];return _0x133403;}export const dbDetail={'service':'db','command':a79_0x5ebc1c(0x89),'description':'Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','risk':a79_0x5ebc1c(0x8e),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2d0915){const _0x424834=a79_0x5ebc1c,_0xca10c5=_0x2d0915['num']('id'),_0x14d837=await getDbLinkInfo(_0xca10c5);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x14d837),'message':'db\x20link\x20'+_0xca10c5+':\x20'+_0x14d837[_0x424834(0x87)]};}};
|
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a80_0x449a3f=a80_0x1c83;function a80_0x1c83(_0x5cd612,_0xd553b8){_0x5cd612=_0x5cd612-0x108;const _0x4fc6e5=a80_0x4fc6();let _0x1c83ad=_0x4fc6e5[_0x5cd612];return _0x1c83ad;}(function(_0x2695c3,_0x1744de){const _0x240302=a80_0x1c83,_0x18450b=_0x2695c3();while(!![]){try{const _0x383b48=parseInt(_0x240302(0x119))/0x1+-parseInt(_0x240302(0x118))/0x2*(parseInt(_0x240302(0x115))/0x3)+-parseInt(_0x240302(0x11d))/0x4+-parseInt(_0x240302(0x109))/0x5*(parseInt(_0x240302(0x110))/0x6)+-parseInt(_0x240302(0x120))/0x7*(parseInt(_0x240302(0x116))/0x8)+parseInt(_0x240302(0x11e))/0x9+-parseInt(_0x240302(0x10b))/0xa*(-parseInt(_0x240302(0x11c))/0xb);if(_0x383b48===_0x1744de)break;else _0x18450b['push'](_0x18450b['shift']());}catch(_0x1d3692){_0x18450b['push'](_0x18450b['shift']());}}}(a80_0x4fc6,0x3f310));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a80_0x4fc6(){const _0xdc79eb=['550iWNeCA','139058gxXArC','string','Page\x20size','11MvnlLm','1674972PxxUyA','4499856xNAPmC','diff','7VJkLxb','number','87590prxVmd','length','8568610pFrNuL','str','\x20(db\x20link\x20','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','num','120IIbqVW','\x20row(s),\x20total\x20','appCode','page','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','1713oxlpis','2487544jAsbEF','pagesize'];a80_0x4fc6=function(){return _0xdc79eb;};return a80_0x4fc6();}export const dbDiff={'service':'db','command':a80_0x449a3f(0x11f),'description':a80_0x449a3f(0x114),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':a80_0x449a3f(0x11a),'description':a80_0x449a3f(0x10e)},{'name':a80_0x449a3f(0x113),'type':'number','description':'Page\x20index\x20(1-based)','default':0x1},{'name':a80_0x449a3f(0x117),'type':a80_0x449a3f(0x108),'description':a80_0x449a3f(0x11b),'default':0x14}],async 'execute'(_0x3eebfb){const _0x498dbf=a80_0x449a3f,_0x5a3f60=_0x3eebfb[_0x498dbf(0x10f)]('id'),_0x5d0e0d=_0x3eebfb[_0x498dbf(0x10f)](_0x498dbf(0x113),0x1)||0x1,_0x2ef419=_0x3eebfb[_0x498dbf(0x10f)](_0x498dbf(0x117),0x14)||0x14,_0x31d131=_0x3eebfb[_0x498dbf(0x10c)]('table')||undefined,{totalCount:_0x4ec8f4,physicalTableCount:_0xf4e6f3,datasetTableCount:_0x1d1dc6,summary:_0x3df5a5,tableList:_0x500f4d}=await getDbTableDiff(_0x3eebfb[_0x498dbf(0x112)],_0x5a3f60,{'pageIndex':_0x5d0e0d,'pageSize':_0x2ef419,'tableName':_0x31d131});return{'ok':!![],'data':{'dbLinkId':_0x5a3f60,'page':_0x5d0e0d,'pageSize':_0x2ef419,'totalCount':_0x4ec8f4,'physicalTableCount':_0xf4e6f3,'datasetTableCount':_0x1d1dc6,..._0x3df5a5?{'summary':_0x3df5a5}:{},'tables':_0x500f4d,'tableList':_0x500f4d},'message':_0x500f4d[_0x498dbf(0x10a)]+_0x498dbf(0x111)+_0x4ec8f4+_0x498dbf(0x10d)+_0x5a3f60+')'};}};
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x48b175,_0x2a6e63){const _0x471612=a81_0x2bec,_0x262e77=_0x48b175();while(!![]){try{const _0x1d4135=parseInt(_0x471612(0xbb))/0x1*(-parseInt(_0x471612(0xb3))/0x2)+-parseInt(_0x471612(0xb8))/0x3*(-parseInt(_0x471612(0xbd))/0x4)+parseInt(_0x471612(0xb7))/0x5*(-parseInt(_0x471612(0xb4))/0x6)+parseInt(_0x471612(0xba))/0x7*(-parseInt(_0x471612(0xb5))/0x8)+parseInt(_0x471612(0xb9))/0x9+parseInt(_0x471612(0xbc))/0xa+-parseInt(_0x471612(0xb6))/0xb;if(_0x1d4135===_0x2a6e63)break;else _0x262e77['push'](_0x262e77['shift']());}catch(_0x19d07c){_0x262e77['push'](_0x262e77['shift']());}}}(a81_0x28b9,0x26f84));function a81_0x2bec(_0x9f732b,_0x456829){_0x9f732b=_0x9f732b-0xb3;const _0x28b9cf=a81_0x28b9();let _0x2becfc=_0x28b9cf[_0x9f732b];return _0x2becfc;}import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';function a81_0x28b9(){const _0x10ac1a=['798292MFpqbh','5BoGQCm','155046QQEaas','1272105YHSAQP','23303QUrsOn','197426XAfNXh','3001800eFrrAA','4zeWgOP','2NvnuLa','121872SMFApq','104hjcPNT'];a81_0x28b9=function(){return _0x10ac1a;};return a81_0x28b9();}import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';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
|
-
|
|
1
|
+
const a82_0x43db62=a82_0x1e75;(function(_0x15439d,_0xa78f5c){const _0x254833=a82_0x1e75,_0xddf13f=_0x15439d();while(!![]){try{const _0x4a9f98=parseInt(_0x254833(0x7b))/0x1+-parseInt(_0x254833(0x6c))/0x2*(parseInt(_0x254833(0x6b))/0x3)+parseInt(_0x254833(0x71))/0x4+-parseInt(_0x254833(0x77))/0x5*(-parseInt(_0x254833(0x6e))/0x6)+parseInt(_0x254833(0x6f))/0x7+parseInt(_0x254833(0x7a))/0x8*(-parseInt(_0x254833(0x68))/0x9)+-parseInt(_0x254833(0x78))/0xa;if(_0x4a9f98===_0xa78f5c)break;else _0xddf13f['push'](_0xddf13f['shift']());}catch(_0x36d6c8){_0xddf13f['push'](_0xddf13f['shift']());}}}(a82_0x5bbc,0x5bef3));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':'list','description':'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','risk':a82_0x43db62(0x75),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a82_0x43db62(0x69),'type':a82_0x43db62(0x74),'description':a82_0x43db62(0x72),'default':0x1},{'name':a82_0x43db62(0x70),'type':a82_0x43db62(0x74),'description':a82_0x43db62(0x6d),'default':0x64}],async 'execute'(_0x2dcfc3){const _0x26cead=a82_0x43db62,_0x1a3bfc=_0x2dcfc3[_0x26cead(0x6a)]('page',0x1)||0x1,_0x5efea3=_0x2dcfc3[_0x26cead(0x6a)](_0x26cead(0x70),0x64)||0x64,{items:_0x2790ff,paging:_0x34cb1a}=await listDbLinks(_0x2dcfc3['appCode'],{'currentPage':_0x1a3bfc,'pageSize':_0x5efea3}),_0x3cc0ff=sanitizeDbLinkList(_0x2790ff),_0x2f444c=_0x34cb1a?_0x34cb1a:{'currentPage':_0x1a3bfc,'pageSize':_0x5efea3,'rowsOnPage':_0x3cc0ff[_0x26cead(0x76)],'totalCount':null,'note':_0x26cead(0x73)};return{'ok':!![],'data':{'connections':_0x3cc0ff,'paging':_0x2f444c},'message':_0x26cead(0x79)+_0x3cc0ff['length']+'\x20database\x20connection(s)'};}};function a82_0x1e75(_0x21c585,_0xcdfc34){_0x21c585=_0x21c585-0x68;const _0x5bbc0e=a82_0x5bbc();let _0x1e75a8=_0x5bbc0e[_0x21c585];return _0x1e75a8;}function a82_0x5bbc(){const _0x365540=['956109oCflBB','pagesize','1802144eCTdum','Page\x20index\x20(1-based)','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','number','read','length','15XcthGR','5319310XJMNIn','Found\x20','232cYBUoe','212666TsIFDv','88443QiLbSF','page','num','17034PmziOy','86ixzqcB','Page\x20size','1275684UXpZVF'];a82_0x5bbc=function(){return _0x365540;};return a82_0x5bbc();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5956ab,_0x125e99){const _0x32d8e1=a83_0x3ea9,_0x317227=_0x5956ab();while(!![]){try{const _0x503444=parseInt(_0x32d8e1(0x1c8))/0x1+parseInt(_0x32d8e1(0x1be))/0x2*(parseInt(_0x32d8e1(0x1b5))/0x3)+parseInt(_0x32d8e1(0x1c4))/0x4+parseInt(_0x32d8e1(0x1bb))/0x5+-parseInt(_0x32d8e1(0x1c3))/0x6+-parseInt(_0x32d8e1(0x1b9))/0x7*(-parseInt(_0x32d8e1(0x1b8))/0x8)+-parseInt(_0x32d8e1(0x1c5))/0x9*(parseInt(_0x32d8e1(0x1cb))/0xa);if(_0x503444===_0x125e99)break;else _0x317227['push'](_0x317227['shift']());}catch(_0xe08349){_0x317227['push'](_0x317227['shift']());}}}(a83_0x4565,0xa76d8));import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0x2e8c7b){const _0x1704f2=a83_0x3ea9,_0x43fa6c=_0x2e8c7b['toLowerCase']();if(_0x43fa6c==='password'||_0x43fa6c===_0x1704f2(0x1c2)||_0x43fa6c===_0x1704f2(0x1bc))return!![];if(_0x43fa6c[_0x1704f2(0x1b7)](_0x1704f2(0x1c9))||_0x43fa6c[_0x1704f2(0x1b7)]('token')||_0x43fa6c[_0x1704f2(0x1b7)](_0x1704f2(0x1b4)))return!![];if(_0x43fa6c[_0x1704f2(0x1b7)](_0x1704f2(0x1b6))||_0x43fa6c[_0x1704f2(0x1b7)](_0x1704f2(0x1b3)))return!![];if(_0x43fa6c===_0x1704f2(0x1bd)||_0x43fa6c===_0x1704f2(0x1bf)||_0x43fa6c===_0x1704f2(0x1c0))return!![];return![];}function a83_0x3ea9(_0x541119,_0xcf17a6){_0x541119=_0x541119-0x1b2;const _0x456591=a83_0x4565();let _0x3ea9c2=_0x456591[_0x541119];return _0x3ea9c2;}function a83_0x4565(){const _0x3243e0=['secret','[redacted]','40PglaTm','/data/er?dbId=','length','accesskey','credential','3gxUPCZ','privatekey','includes','4247648umeQMV','7hTZJJj','isFinite','6682235rOnAxT','dbpassword','authorization','2275576QBbbwR','connectionstring','jdbcurl','map','passwd','980118pgHfLe','2525128RwdiRJ','7386651HTdPCq','trim','/data/database','495620YIxeXF'];a83_0x4565=function(){return _0x3243e0;};return a83_0x4565();}export function sanitizeDbLinkForOutput(_0x40be8c){const _0x1f7bc1=a83_0x3ea9,_0x1ce812={..._0x40be8c};for(const _0xd6eabf of Object['keys'](_0x1ce812)){if(!shouldRedactKey(_0xd6eabf))continue;const _0x1191ec=_0x1ce812[_0xd6eabf];_0x1191ec!=null&&String(_0x1191ec)[_0x1f7bc1(0x1b2)]>0x0&&(_0x1ce812[_0xd6eabf]=_0x1f7bc1(0x1ca));}return _0x1ce812;}export function sanitizeDbLinkList(_0x2bc5f0){const _0x34154f=a83_0x3ea9;return _0x2bc5f0[_0x34154f(0x1c1)](_0x23dedd=>sanitizeDbLinkForOutput(_0x23dedd));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x39a4f6){const _0x1b4abb=a83_0x3ea9,_0x349079=_0x39a4f6[_0x1b4abb(0x1c6)]();if(!_0x349079)return![];return DB_URL_PATTERN['test'](_0x349079);}export function buildDbPageLinks(_0x171a2a,_0x4de8ae){const _0x1c763b=a83_0x3ea9,_0x4a05ec=_0x171a2a?.['trim']();if(!_0x4a05ec)return undefined;const _0x5a9b34=typeof _0x4de8ae==='number'?String(_0x4de8ae):String(_0x4de8ae??'')[_0x1c763b(0x1c6)]();if(!_0x5a9b34)return undefined;const _0x397024=Number(_0x5a9b34);if(!Number[_0x1c763b(0x1ba)](_0x397024)||_0x397024<=0x0)return undefined;const _0x51198e=getAppBaseUrl(_0x4a05ec),_0x596c35=encodeURIComponent(String(_0x397024));return{'databasePage':_0x51198e+_0x1c763b(0x1c7),'erPage':_0x51198e+_0x1c763b(0x1cc)+_0x596c35};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a84_0x5283f2=a84_0x27d3;function a84_0x1b40(){const _0x59a8d3=['appCode','205186sKFGTa','2390DofTpp','length','2211064EqpMLo','tables','3717xdjBCq','3119688myZJdy','42mzPrRw','num','271350CYABZY','420LAFWWX','1084860OiPfKZ','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','read','1noMBcZ','12199PyVKxv'];a84_0x1b40=function(){return _0x59a8d3;};return a84_0x1b40();}function a84_0x27d3(_0x312e13,_0x215cf5){_0x312e13=_0x312e13-0x1db;const _0x1b40b3=a84_0x1b40();let _0x27d36d=_0x1b40b3[_0x312e13];return _0x27d36d;}(function(_0x34b22f,_0x351d2d){const _0x49b855=a84_0x27d3,_0x6160c6=_0x34b22f();while(!![]){try{const _0x1133cd=parseInt(_0x49b855(0x1e1))/0x1*(-parseInt(_0x49b855(0x1e4))/0x2)+parseInt(_0x49b855(0x1e9))/0x3*(parseInt(_0x49b855(0x1dd))/0x4)+parseInt(_0x49b855(0x1de))/0x5+-parseInt(_0x49b855(0x1dc))/0x6*(-parseInt(_0x49b855(0x1eb))/0x7)+parseInt(_0x49b855(0x1e7))/0x8+-parseInt(_0x49b855(0x1ea))/0x9+parseInt(_0x49b855(0x1e5))/0xa*(-parseInt(_0x49b855(0x1e2))/0xb);if(_0x1133cd===_0x351d2d)break;else _0x6160c6['push'](_0x6160c6['shift']());}catch(_0x7bb5e8){_0x6160c6['push'](_0x6160c6['shift']());}}}(a84_0x1b40,0x2c12c));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a84_0x5283f2(0x1e8),'description':a84_0x5283f2(0x1df),'risk':a84_0x5283f2(0x1e0),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5b3651){const _0xf929c3=a84_0x5283f2,_0xfaf4f2=_0x5b3651[_0xf929c3(0x1db)]('id'),_0x205755=await getDbAllTableList(_0x5b3651[_0xf929c3(0x1e3)],_0xfaf4f2);return{'ok':!![],'data':{'dbLinkId':_0xfaf4f2,'total':_0x205755['length'],'tables':_0x205755},'message':_0x205755[_0xf929c3(0x1e6)]+'\x20table(s)\x20on\x20db\x20link\x20'+_0xfaf4f2};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a85_0x5de1(_0x15c98e,_0x2cbbb8){_0x15c98e=_0x15c98e-0x97;const _0x56fd64=a85_0x56fd();let _0x5de171=_0x56fd64[_0x15c98e];return _0x5de171;}const a85_0x50276e=a85_0x5de1;function a85_0x56fd(){const _0x38993d=['4rzAnYM','5562090sxDDKJ','3956295bbAmcS','data','msg','1046754iKzioz','success','3587664wrEZNU','21UEHzRy','read','9106659xAkTpP','length','code','keys','num','8PwUxDQ','10tXQAyc','slice','17067259eaUYif','object','error','\x20(see\x20data.result)','160477fBnAqX','Connection\x20check\x20finished\x20for\x20db\x20link\x20','Connection\x20OK\x20for\x20db\x20link\x20','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)'];a85_0x56fd=function(){return _0x38993d;};return a85_0x56fd();}(function(_0x3744fd,_0x54ca94){const _0x13652f=a85_0x5de1,_0x175e75=_0x3744fd();while(!![]){try{const _0x56e7dd=parseInt(_0x13652f(0x97))/0x1*(-parseInt(_0x13652f(0xaa))/0x2)+-parseInt(_0x13652f(0x9d))/0x3+-parseInt(_0x13652f(0x9b))/0x4*(-parseInt(_0x13652f(0x9c))/0x5)+parseInt(_0x13652f(0xa0))/0x6*(parseInt(_0x13652f(0xa3))/0x7)+parseInt(_0x13652f(0xa2))/0x8+-parseInt(_0x13652f(0xa5))/0x9+-parseInt(_0x13652f(0xab))/0xa*(-parseInt(_0x13652f(0xad))/0xb);if(_0x56e7dd===_0x54ca94)break;else _0x175e75['push'](_0x175e75['shift']());}catch(_0x1774f1){_0x175e75['push'](_0x175e75['shift']());}}}(a85_0x56fd,0xa1f02));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x38ccbc){const _0x40b176=a85_0x5de1;if(_0x38ccbc===!![]||_0x38ccbc===![])return{'success':_0x38ccbc};if(_0x38ccbc===null||_0x38ccbc===undefined)return{'type':typeof _0x38ccbc};if(typeof _0x38ccbc!=='object')return{'type':typeof _0x38ccbc};const _0x3dd7ab=_0x38ccbc,_0xedf95c=[_0x40b176(0xa1),'message',_0x40b176(0xa7),_0x40b176(0xaf),_0x40b176(0x9f),_0x40b176(0x9e)],_0x50315f={};for(const _0x1d0680 of _0xedf95c){if(_0x1d0680 in _0x3dd7ab)_0x50315f[_0x1d0680]=_0x3dd7ab[_0x1d0680];}return Object['keys'](_0x50315f)[_0x40b176(0xa6)]===0x0&&(_0x50315f[_0x40b176(0xa8)]=Object[_0x40b176(0xa8)](_0x3dd7ab)[_0x40b176(0xac)](0x0,0x14)),_0x50315f;}export const dbTest={'service':'db','command':'test','description':a85_0x50276e(0x9a),'risk':a85_0x50276e(0xa4),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5569e5){const _0x1d3191=a85_0x50276e,_0xc49cf2=_0x5569e5[_0x1d3191(0xa9)]('id'),_0x583b6d=await testDbLinkConnect(_0xc49cf2),_0x4ad5a2=_0x583b6d===!![]||typeof _0x583b6d===_0x1d3191(0xae)&&_0x583b6d!==null&&_0x583b6d[_0x1d3191(0xa1)]===!![],_0x52ddb4=summarizeTestConnectResult(_0x583b6d);return{'ok':!![],'data':{'id':_0xc49cf2,'connected':Boolean(_0x4ad5a2),'result':_0x52ddb4},'message':_0x4ad5a2?_0x1d3191(0x99)+_0xc49cf2:_0x1d3191(0x98)+_0xc49cf2+_0x1d3191(0xb0)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0xfd0ab6=a86_0x3979;(function(_0x4d62ee,_0x4c982f){const _0xe38bc5=a86_0x3979,_0x660f6d=_0x4d62ee();while(!![]){try{const _0x4c832f=parseInt(_0xe38bc5(0x10f))/0x1+parseInt(_0xe38bc5(0x118))/0x2*(parseInt(_0xe38bc5(0x119))/0x3)+parseInt(_0xe38bc5(0x102))/0x4*(-parseInt(_0xe38bc5(0x107))/0x5)+parseInt(_0xe38bc5(0x10b))/0x6*(parseInt(_0xe38bc5(0x125))/0x7)+parseInt(_0xe38bc5(0x11f))/0x8+-parseInt(_0xe38bc5(0x11e))/0x9*(-parseInt(_0xe38bc5(0x10c))/0xa)+-parseInt(_0xe38bc5(0x10a))/0xb;if(_0x4c832f===_0x4c982f)break;else _0x660f6d['push'](_0x660f6d['shift']());}catch(_0x20867e){_0x660f6d['push'](_0x660f6d['shift']());}}}(a86_0x28ba,0xb72e4));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a86_0x3979(_0x311a1a,_0x12d4ab){_0x311a1a=_0x311a1a-0x101;const _0x28bac2=a86_0x28ba();let _0x39794f=_0x28bac2[_0x311a1a];return _0x39794f;}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';function a86_0x28ba(){const _0x42c6ed=['dbdesc','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','validation','dbparam','44RwOAKD','163641DOOSdV','dbName','POST','dbDesc','dburl','90DrRwOG','977944qqchIM','update','write','string','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','password','7scZIYO','New\x20description','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','/smartapi/dblink/update','542128YULYvh','str','New\x20host:port','username','New\x20connection\x20parameter\x20string','10dKdueM','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','dbname','30625133CcPryd','8924856XlywhS','532310sKVWqN','trim','num','463412cMHLHd','New\x20database\x20name','dbParam','New\x20username','dbUrl'];a86_0x28ba=function(){return _0x42c6ed;};return a86_0x28ba();}export const dbUpdate={'service':'db','command':a86_0xfd0ab6(0x120),'description':a86_0xfd0ab6(0x115),'risk':a86_0xfd0ab6(0x121),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':'string','description':a86_0xfd0ab6(0x110)},{'name':'dburl','type':'string','description':a86_0xfd0ab6(0x104)},{'name':a86_0xfd0ab6(0x105),'type':a86_0xfd0ab6(0x122),'description':a86_0xfd0ab6(0x112)},{'name':'password','type':a86_0xfd0ab6(0x122),'description':a86_0xfd0ab6(0x127)},{'name':'dbparam','type':a86_0xfd0ab6(0x122),'description':a86_0xfd0ab6(0x106)},{'name':'dbdesc','type':'string','description':a86_0xfd0ab6(0x126)}],async 'validate'(_0x2d26c6){const _0x52312a=a86_0xfd0ab6,_0x2ad433=_0x2d26c6[_0x52312a(0x103)](_0x52312a(0x11d));if(_0x2ad433&&!validateDbUrl(_0x2ad433[_0x52312a(0x10d)]()))throw CliErrors[_0x52312a(0x116)](_0x52312a(0x108)+_0x2ad433+'\x22');},async 'dryRun'(_0x555626){const _0x3ca2f2=a86_0xfd0ab6,_0x7ad5d0=_0x555626[_0x3ca2f2(0x10e)]('id'),_0x30bc9d=await getDbLinkInfo(_0x7ad5d0),_0x465b8d={..._0x30bc9d},_0x296d43=_0x555626[_0x3ca2f2(0x103)](_0x3ca2f2(0x109));if(_0x296d43)_0x465b8d[_0x3ca2f2(0x11a)]=_0x296d43;const _0x430030=_0x555626[_0x3ca2f2(0x103)](_0x3ca2f2(0x11d));if(_0x430030)_0x465b8d[_0x3ca2f2(0x113)]=_0x430030['trim']();const _0x4e5a6e=_0x555626[_0x3ca2f2(0x103)](_0x3ca2f2(0x105));if(_0x4e5a6e)_0x465b8d[_0x3ca2f2(0x105)]=_0x4e5a6e;const _0x1d2c80=_0x555626[_0x3ca2f2(0x103)](_0x3ca2f2(0x124));if(_0x1d2c80)_0x465b8d[_0x3ca2f2(0x124)]=_0x1d2c80;const _0x5ed546=_0x555626['str'](_0x3ca2f2(0x117));if(_0x5ed546)_0x465b8d['dbParam']=_0x5ed546;const _0x3514d2=_0x555626[_0x3ca2f2(0x103)](_0x3ca2f2(0x114));if(_0x3514d2)_0x465b8d[_0x3ca2f2(0x11c)]=_0x3514d2;const _0x1bf8ee=sanitizeDbLinkForOutput(_0x465b8d);return{'method':_0x3ca2f2(0x11b),'url':_0x3ca2f2(0x101),'body':_0x1bf8ee,'description':_0x3ca2f2(0x123)};},async 'execute'(_0x2d5d62){const _0x2da448=a86_0xfd0ab6,_0x379660=_0x2d5d62[_0x2da448(0x10e)]('id'),_0x2fde1e=await getDbLinkInfo(_0x379660),_0x3d4935={..._0x2fde1e},_0x5c1a53=_0x2d5d62['str'](_0x2da448(0x109));if(_0x5c1a53)_0x3d4935['dbName']=_0x5c1a53;const _0x386638=_0x2d5d62['str'](_0x2da448(0x11d));if(_0x386638)_0x3d4935[_0x2da448(0x113)]=_0x386638[_0x2da448(0x10d)]();const _0x2d3252=_0x2d5d62[_0x2da448(0x103)](_0x2da448(0x105));if(_0x2d3252)_0x3d4935[_0x2da448(0x105)]=_0x2d3252;const _0x52e548=_0x2d5d62[_0x2da448(0x103)](_0x2da448(0x124));if(_0x52e548)_0x3d4935[_0x2da448(0x124)]=_0x52e548;const _0x25e568=_0x2d5d62[_0x2da448(0x103)](_0x2da448(0x117));if(_0x25e568)_0x3d4935[_0x2da448(0x111)]=_0x25e568;const _0x26c162=_0x2d5d62[_0x2da448(0x103)](_0x2da448(0x114));if(_0x26c162)_0x3d4935[_0x2da448(0x11c)]=_0x26c162;const {id:_0x3e630e,entity:_0x81e900}=normalizeEntityWithIdResponse(await updateDbLink(_0x3d4935));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x81e900),'message':'Updated\x20db\x20link\x20'+(_0x3e630e??_0x379660)};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a86_0x1560(){const _0x8d2c2d=['\x20\x20─','apiDir','unknown','28017PxnJEs','cookie','slice','(not\x20set)','✗\x20Not\x20logged\x20in','apps','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','verbose','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','env','\x20\x20Merged\x20Config','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','15qKDYSF','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','197718mxkGKd','empty','Global','8925552aGojJm','value','110800BDgeXB','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','(no\x20file)','\x20\x20explicitAppName:\x20','source','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','appCode','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Apps','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','missing','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','620991EvIYqV','✓\x20Valid','arch','\x20\x20Config\x20JSON','2345012urOOZV','\x20(default)','keys','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','padEnd','\x20\x20API\x20Endpoints','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','appcode','check','(not\x20found)','(missing)','(default)','(none)','(default:\x20','log','11077829tEwMNR','red','doctor','defaultApp','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','bold','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','riskLevel','\x20\x20\x20\x20accessKey:\x20\x20','14680HtMgWL','\x20\x20Auth','170Wkkthy','accessKey','✗\x20Expired','locale','currentApp','gray','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Config\x20Files','format','green','pageSize'];a86_0x1560=function(){return _0x8d2c2d;};return a86_0x1560();}const a86_0x1641db=a86_0x143d;(function(_0x3721ff,_0x2d3fd5){const _0x3f1e01=a86_0x143d,_0x4752c3=_0x3721ff();while(!![]){try{const _0x3bc29e=parseInt(_0x3f1e01(0xcd))/0x1+parseInt(_0x3f1e01(0xd1))/0x2+parseInt(_0x3f1e01(0xb8))/0x3*(-parseInt(_0x3f1e01(0xbf))/0x4)+-parseInt(_0x3f1e01(0x9c))/0x5*(-parseInt(_0x3f1e01(0xba))/0x6)+parseInt(_0x3f1e01(0xe3))/0x7+parseInt(_0x3f1e01(0xbd))/0x8+-parseInt(_0x3f1e01(0xaa))/0x9*(parseInt(_0x3f1e01(0x9a))/0xa);if(_0x3bc29e===_0x2d3fd5)break;else _0x4752c3['push'](_0x4752c3['shift']());}catch(_0x5a4db4){_0x4752c3['push'](_0x4752c3['shift']());}}}(a86_0x1560,0xdca4c));import a86_0x3e0687 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';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';function a86_0x143d(_0x469ad7,_0x9dab2c){_0x469ad7=_0x469ad7-0x9a;const _0x15601d=a86_0x1560();let _0x143dcc=_0x15601d[_0x469ad7];return _0x143dcc;}async function execute(_0x5d1bb0){const _0x523d28=a86_0x143d,_0x2f07ab=GIT_COMMIT!==_0x523d28(0xa9)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x523d28(0xac)](0x0,0xa)+')':VERSION,_0x3538cc=buildConfigFromFlags({}),_0x591c65=getCookie();console['log'](),console[_0x523d28(0xe2)](a86_0x3e0687[_0x523d28(0xe9)](CLI_BIN_NAME+'\x20doctor')),console[_0x523d28(0xe2)](a86_0x3e0687['gray']('─'[_0x523d28(0xc6)](0x32))),console[_0x523d28(0xe2)](_0x523d28(0xd6)+_0x2f07ab),console[_0x523d28(0xe2)](_0x523d28(0xc8)+process['version']),console[_0x523d28(0xe2)](_0x523d28(0xd4)+process['platform']+'\x20'+process[_0x523d28(0xcf)]),console[_0x523d28(0xe2)](),console[_0x523d28(0xe2)](a86_0x3e0687[_0x523d28(0xe9)](_0x523d28(0xa3))),console[_0x523d28(0xe2)](a86_0x3e0687['gray'](_0x523d28(0xa7)[_0x523d28(0xc6)](0x1e)));const _0x109092=getGlobalConfigPath(),_0x32afa9=getProjectConfigPath();console['log'](_0x523d28(0xc5)+(_0x109092||a86_0x3e0687[_0x523d28(0xa1)](_0x523d28(0xdd)))),console[_0x523d28(0xe2)](_0x523d28(0xea)+(_0x32afa9||a86_0x3e0687[_0x523d28(0xa1)](_0x523d28(0xdd)))),console['log'](),console[_0x523d28(0xe2)](a86_0x3e0687[_0x523d28(0xe9)](_0x523d28(0xd0))),console['log'](a86_0x3e0687['gray'](_0x523d28(0xa7)[_0x523d28(0xc6)](0x1e)));const _0x3bee39=(_0x16bc40,_0x2e9778)=>{const _0x477b60=_0x523d28;if(!_0x2e9778){console[_0x477b60(0xe2)]('\x20\x20'+_0x16bc40[_0x477b60(0xd8)](0x11)+'\x20'+a86_0x3e0687['gray'](_0x477b60(0xc2)));return;}const _0x14d39a=inspectCliConfigJsonFile(_0x2e9778);if(_0x14d39a['status']==='ok')console[_0x477b60(0xe2)]('\x20\x20'+_0x16bc40[_0x477b60(0xd8)](0x11)+'\x20'+a86_0x3e0687[_0x477b60(0xa5)](_0x477b60(0xeb)));else{if(_0x14d39a[_0x477b60(0xc1)]===_0x477b60(0xbb))console[_0x477b60(0xe2)]('\x20\x20'+_0x16bc40['padEnd'](0x11)+'\x20'+a86_0x3e0687['yellow'](_0x477b60(0xb0)));else _0x14d39a[_0x477b60(0xc1)]===_0x477b60(0xcb)?console['log']('\x20\x20'+_0x16bc40[_0x477b60(0xd8)](0x11)+'\x20'+a86_0x3e0687[_0x477b60(0xa1)](_0x477b60(0xde))):(console[_0x477b60(0xe2)]('\x20\x20'+_0x16bc40[_0x477b60(0xd8)](0x11)+'\x20'+a86_0x3e0687[_0x477b60(0xe4)]('✗\x20Invalid\x20JSON')),console[_0x477b60(0xe2)]('\x20\x20'+''[_0x477b60(0xd8)](0x11)+'\x20'+a86_0x3e0687[_0x477b60(0xe4)](_0x14d39a['message'])));}};_0x3bee39(_0x523d28(0xbc),_0x109092),_0x3bee39('Project',_0x32afa9),console['log'](),console[_0x523d28(0xe2)](a86_0x3e0687[_0x523d28(0xe9)](_0x523d28(0xb5))),console[_0x523d28(0xe2)](a86_0x3e0687[_0x523d28(0xa1)](_0x523d28(0xa7)[_0x523d28(0xc6)](0x1e))),console[_0x523d28(0xe2)](_0x523d28(0xcc)+(_0x3538cc[_0x523d28(0xc7)]||a86_0x3e0687['red'](_0x523d28(0xad)))),console['log'](_0x523d28(0xc0)+_0x3538cc['env']),console['log']('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3538cc[_0x523d28(0x9f)]),console[_0x523d28(0xe2)](_0x523d28(0xd5)+_0x3538cc[_0x523d28(0xa8)]),console[_0x523d28(0xe2)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x3538cc['defaultApp']||a86_0x3e0687[_0x523d28(0xa1)]('(none)'))),console[_0x523d28(0xe2)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x3538cc[_0x523d28(0xa0)]||a86_0x3e0687[_0x523d28(0xa1)](_0x523d28(0xe0)))),console['log'](_0x523d28(0xc3)+(_0x3538cc['explicitAppName']||a86_0x3e0687[_0x523d28(0xa1)]('(none)'))),console['log'](_0x523d28(0xda)+(_0x3538cc['format']||a86_0x3e0687[_0x523d28(0xa1)](_0x523d28(0xe1)+DEFAULT_CONFIG_VALUES[_0x523d28(0xa4)]+')'))),console[_0x523d28(0xe2)](_0x523d28(0xb1)+(_0x3538cc[_0x523d28(0xa6)]??a86_0x3e0687[_0x523d28(0xa1)](_0x523d28(0xdf)))),console[_0x523d28(0xe2)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x3538cc[_0x523d28(0xec)]),console[_0x523d28(0xe2)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3538cc[_0x523d28(0xb2)]),console[_0x523d28(0xe2)](_0x523d28(0xe7)+(_0x3538cc[_0x523d28(0xab)]?a86_0x3e0687['green']('(set,\x20length='+_0x3538cc['cookie']['length']+')'):_0x591c65?a86_0x3e0687['green']('(set\x20via\x20file,\x20length='+_0x591c65['length']+')'):a86_0x3e0687[_0x523d28(0xa1)]('(none)')));const _0x5b51f3=Object[_0x523d28(0xd3)](_0x3538cc[_0x523d28(0xaf)]);if(_0x5b51f3[_0x523d28(0xe8)]>0x0){console[_0x523d28(0xe2)](),console[_0x523d28(0xe2)](a86_0x3e0687[_0x523d28(0xe9)](_0x523d28(0xc9))),console[_0x523d28(0xe2)](a86_0x3e0687['gray']('\x20\x20─'[_0x523d28(0xc6)](0x1e)));for(const _0xb4095 of _0x5b51f3){const _0x5c511c=_0x3538cc[_0x523d28(0xaf)][_0xb4095],_0x59f4c3=_0xb4095===_0x3538cc[_0x523d28(0xe6)],_0x1b5d1b=_0xb4095===_0x3538cc['currentApp'],_0x26c023=_0x1b5d1b?a86_0x3e0687['green']('\x20←\x20current'):'',_0x319d47=_0x59f4c3?_0x523d28(0xd2):'';console[_0x523d28(0xe2)]('\x20\x20'+_0xb4095+_0x319d47+_0x26c023),console[_0x523d28(0xe2)](_0x523d28(0xd7)+_0x5c511c[_0x523d28(0xdb)]);const _0x1c6606=buildAppDoctorFields(_0x5c511c,{'env':_0x3538cc[_0x523d28(0xb4)],'apiDir':_0x3538cc['raw'][_0x523d28(0xa8)]||DEFAULT_CONFIG_VALUES[_0x523d28(0xa8)],'cookie':_0x3538cc[_0x523d28(0xab)]||_0x591c65||undefined,'accessKey':_0x3538cc['accessKey']});console[_0x523d28(0xe2)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1c6606[_0x523d28(0xb4)][_0x523d28(0xbe)]+'\x20\x20'+a86_0x3e0687[_0x523d28(0xa1)]('('+_0x1c6606[_0x523d28(0xb4)]['source']+')')),console[_0x523d28(0xe2)](_0x523d28(0xca)+_0x1c6606['apiDir']['value']+'\x20\x20'+a86_0x3e0687[_0x523d28(0xa1)]('('+_0x1c6606[_0x523d28(0xa8)][_0x523d28(0xc4)]+')'));const _0x502902=_0x1c6606['cookie'][_0x523d28(0xbe)]?a86_0x3e0687[_0x523d28(0xa5)](_0x523d28(0xb7)+_0x1c6606[_0x523d28(0xab)][_0x523d28(0xbe)]['length']+')'):a86_0x3e0687['gray'](_0x523d28(0xe0));console[_0x523d28(0xe2)](_0x523d28(0xb9)+_0x502902+'\x20\x20'+a86_0x3e0687[_0x523d28(0xa1)]('('+_0x1c6606[_0x523d28(0xab)][_0x523d28(0xc4)]+')'));const _0x883920=_0x1c6606['accessKey'][_0x523d28(0xbe)]?a86_0x3e0687[_0x523d28(0xa5)]('(set,\x20length='+_0x1c6606[_0x523d28(0x9d)]['value'][_0x523d28(0xe8)]+')'):a86_0x3e0687[_0x523d28(0xa1)]('(none)');console[_0x523d28(0xe2)](_0x523d28(0xed)+_0x883920+'\x20\x20'+a86_0x3e0687[_0x523d28(0xa1)]('('+_0x1c6606['accessKey'][_0x523d28(0xc4)]+')'));}}console[_0x523d28(0xe2)](),console[_0x523d28(0xe2)](a86_0x3e0687[_0x523d28(0xe9)](_0x523d28(0xd9))),console['log'](a86_0x3e0687[_0x523d28(0xa1)](_0x523d28(0xa7)['repeat'](0x1e))),console[_0x523d28(0xe2)](_0x523d28(0xb3)+getApiDomain()),console[_0x523d28(0xe2)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console['log'](_0x523d28(0xa2)+getRuntimeDomain()),console['log'](),console[_0x523d28(0xe2)](a86_0x3e0687[_0x523d28(0xe9)](_0x523d28(0x9b))),console['log'](a86_0x3e0687[_0x523d28(0xa1)](_0x523d28(0xa7)['repeat'](0x1e)));if(_0x591c65){const _0xa960f4=await getIsSessionValid();console[_0x523d28(0xe2)](_0x523d28(0xb6)+(_0xa960f4?a86_0x3e0687[_0x523d28(0xa5)](_0x523d28(0xce)):a86_0x3e0687[_0x523d28(0xe4)](_0x523d28(0x9e))));}else console[_0x523d28(0xe2)](_0x523d28(0xb6)+a86_0x3e0687[_0x523d28(0xe4)](_0x523d28(0xae)));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a86_0x1641db(0xe5),'command':a86_0x1641db(0xdc),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
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 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x5e3dde=a88_0x3325;(function(_0x5b5567,_0x16f01b){const _0x5d948a=a88_0x3325,_0x14ff2a=_0x5b5567();while(!![]){try{const _0x1bcd98=parseInt(_0x5d948a(0x9b))/0x1+parseInt(_0x5d948a(0x89))/0x2+parseInt(_0x5d948a(0xa2))/0x3+-parseInt(_0x5d948a(0x8b))/0x4+parseInt(_0x5d948a(0x8e))/0x5*(-parseInt(_0x5d948a(0x80))/0x6)+parseInt(_0x5d948a(0xa1))/0x7*(parseInt(_0x5d948a(0x78))/0x8)+-parseInt(_0x5d948a(0x9e))/0x9*(parseInt(_0x5d948a(0x77))/0xa);if(_0x1bcd98===_0x16f01b)break;else _0x14ff2a['push'](_0x14ff2a['shift']());}catch(_0x20a7c8){_0x14ff2a['push'](_0x14ff2a['shift']());}}}(a88_0x552c,0xa9cc8));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';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';function a88_0x3325(_0x40262a,_0x22fcf6){_0x40262a=_0x40262a-0x72;const _0x552c6e=a88_0x552c();let _0x33253e=_0x552c6e[_0x40262a];return _0x33253e;}import{existsSync}from'node:fs';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(_0x547464){return{'appCode':_0x547464,'appName':_0x547464};}function writeInitConfig(_0x4db86f,_0x260869,_0x11b3a9){const _0x1a184c=a88_0x3325,_0x3699a8=resolveWriteConfigPath(_0x4db86f),_0x5dfc94=buildCanonicalProjectConfig({},{'appCodes':_0x260869[_0x1a184c(0x7f)](_0x487420=>_0x487420[_0x1a184c(0x97)]),'env':_0x11b3a9,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x1a184c(0x93)]()}});writeConfigFile(_0x3699a8,_0x5dfc94);const _0x32c8b8=_0x4db86f==='global'?_0x1a184c(0x7d):_0x1a184c(0x75);console[_0x1a184c(0x87)](_0x1a184c(0x79)+_0x32c8b8+_0x1a184c(0x88)),console[_0x1a184c(0x87)](_0x1a184c(0x9d)+_0x260869[_0x1a184c(0x7f)](_0x3746a1=>_0x3746a1[_0x1a184c(0x97)])[_0x1a184c(0xa4)](',\x20')),console['log']('\x20\x20Default:\x20'+_0x5dfc94[_0x1a184c(0x7c)]),console[_0x1a184c(0x87)](_0x1a184c(0x81)+_0x5dfc94[_0x1a184c(0x8c)]),console[_0x1a184c(0x87)]('\x20\x20Config:\x20'+_0x3699a8);}async function runSmartInit(_0x54c938){const _0x387b9e=a88_0x3325,_0x184676=process[_0x387b9e(0x85)](),_0x165a8c=_0x54c938[_0x387b9e(0x9f)]('global')?_0x387b9e(0x7d):_0x387b9e(0x75),_0x527da6=_0x54c938[_0x387b9e(0x76)](_0x387b9e(0x8c))||'production',_0x1ece5a=_0x54c938[_0x387b9e(0x76)](_0x387b9e(0x7e))||undefined,_0xf695fe=_0x54c938['bool'](_0x387b9e(0x75));if(_0xf695fe){const {initConfig:_0x138962}=await import(_0x387b9e(0x96));return _0x138962({'appcode':_0x1ece5a,'env':_0x527da6,'autoYes':_0x54c938[_0x387b9e(0x9f)]('yes')});}if(_0x165a8c===_0x387b9e(0x75)){const _0x4cfa75=existsSync(resolve(_0x184676,NEW_CONFIG_NAME)),_0x3e7bd6=LEGACY_CONFIG_NAMES[_0x387b9e(0x90)](_0x4db93c=>existsSync(resolve(_0x184676,_0x4db93c)));if(_0x3e7bd6&&!_0x4cfa75)return console[_0x387b9e(0x87)](_0x387b9e(0x73)),upgradeApp(_0x54c938['nonInteractive'],{'yes':_0x54c938[_0x387b9e(0x9f)](_0x387b9e(0x7b))});if(_0x4cfa75)throw CliErrors[_0x387b9e(0x8d)](_0x387b9e(0x8f),_0x387b9e(0x83)+CLI_BIN_NAME+_0x387b9e(0x8a));}if(_0x1ece5a){const _0xe9ecc8=validateAppcode(_0x1ece5a);if(!_0xe9ecc8[_0x387b9e(0xa3)])throw CliErrors[_0x387b9e(0x8d)](_0xe9ecc8[_0x387b9e(0x98)]);writeInitConfig(_0x165a8c,[syntheticApp(_0x1ece5a)],_0x527da6);return;}if(_0x54c938[_0x387b9e(0x82)])throw CliErrors[_0x387b9e(0x9c)](_0x387b9e(0x7e),_0x387b9e(0xa0)+CLI_BIN_NAME+_0x387b9e(0x7a));const _0x99e2d3=getCookie(),_0x202499=await selectMultipleApps(_0x99e2d3),_0xe4795e=_0x202499===_0x387b9e(0x74)?[syntheticApp(await promptCustomAppcode())]:_0x202499;writeInitConfig(_0x165a8c,_0xe4795e,_0x527da6);}const initFlags=[{'name':a88_0x5e3dde(0x7d),'type':a88_0x5e3dde(0x86),'description':a88_0x5e3dde(0x72),'default':![]},{'name':a88_0x5e3dde(0x8c),'type':a88_0x5e3dde(0x91),'description':a88_0x5e3dde(0x99),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':a88_0x5e3dde(0x91),'description':a88_0x5e3dde(0x9a)},{'name':a88_0x5e3dde(0x75),'type':a88_0x5e3dde(0x86),'description':a88_0x5e3dde(0x95),'default':![]},{'name':a88_0x5e3dde(0x7b),'type':'boolean','description':a88_0x5e3dde(0x84),'default':![]}];export const initDefinitions=[{'service':'init','command':a88_0x5e3dde(0x94),'description':a88_0x5e3dde(0x92),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x965d0d){return await runSmartInit(_0x965d0d),{'ok':!![]};}}];function a88_0x552c(){const _0x6986c7=['cwd','boolean','log','\x20config','2214372BdwioV','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','490392YUXSUF','env','validation','5249030HeWAfW','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','some','string','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','toLocaleString','run','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','../../commands/project/init.js','appCode','message','Target\x20environment','App\x20code\x20to\x20initialize\x20with','477160xevJIA','flagMissing','\x20\x20Apps:\x20','9PrxRGo','bool','Usage:\x20','7NavHYW','1436484LJexxm','valid','join','Write\x20to\x20global\x20config\x20instead\x20of\x20project','检测到旧配置文件,正在自动升级...\x0a','custom','project','str','14595770gcPkFU','10114424vALYAS','\x0a✓\x20Successfully\x20initialized\x20','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','yes','defaultApp','global','appcode','map','6dejfXx','\x20\x20Env:\x20','nonInteractive','Use\x20`','Auto-confirm\x20prompts'];a88_0x552c=function(){return _0x6986c7;};return a88_0x552c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a89_0x2dda(_0xb34c7e,_0x43f483){_0xb34c7e=_0xb34c7e-0x138;const _0x584158=a89_0x5841();let _0x2dda9c=_0x584158[_0xb34c7e];return _0x2dda9c;}(function(_0x466906,_0x3e5fac){const _0x39f799=a89_0x2dda,_0x59d543=_0x466906();while(!![]){try{const _0x2cbb1a=-parseInt(_0x39f799(0x13b))/0x1+-parseInt(_0x39f799(0x13e))/0x2+parseInt(_0x39f799(0x13d))/0x3*(-parseInt(_0x39f799(0x138))/0x4)+parseInt(_0x39f799(0x140))/0x5*(parseInt(_0x39f799(0x13f))/0x6)+parseInt(_0x39f799(0x13a))/0x7+parseInt(_0x39f799(0x13c))/0x8+parseInt(_0x39f799(0x139))/0x9;if(_0x2cbb1a===_0x3e5fac)break;else _0x59d543['push'](_0x59d543['shift']());}catch(_0xd353a1){_0x59d543['push'](_0x59d543['shift']());}}}(a89_0x5841,0x1faf1));import{issueReport}from'../../commands/issue/report.js';function a89_0x5841(){const _0x20766e=['5GopJCk','4MiyDgw','3612429ntpwaq','1005158PLxUPi','250376TZGpfk','1301984shICiG','594387qHmnlk','292268LoaHhl','100158yuMEXr'];a89_0x5841=function(){return _0x20766e;};return a89_0x5841();}export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a90_0x1a0b87=a90_0x3abf;(function(_0x541cfc,_0x45ac3a){const _0x55e4b4=a90_0x3abf,_0x4a7e9b=_0x541cfc();while(!![]){try{const _0x4a267a=-parseInt(_0x55e4b4(0xc2))/0x1+-parseInt(_0x55e4b4(0xd3))/0x2*(parseInt(_0x55e4b4(0xb5))/0x3)+parseInt(_0x55e4b4(0xcc))/0x4*(parseInt(_0x55e4b4(0xb3))/0x5)+parseInt(_0x55e4b4(0xb8))/0x6*(-parseInt(_0x55e4b4(0xca))/0x7)+parseInt(_0x55e4b4(0xb6))/0x8*(parseInt(_0x55e4b4(0xb2))/0x9)+parseInt(_0x55e4b4(0xb1))/0xa+-parseInt(_0x55e4b4(0xcb))/0xb*(-parseInt(_0x55e4b4(0xc6))/0xc);if(_0x4a267a===_0x45ac3a)break;else _0x4a7e9b['push'](_0x4a7e9b['shift']());}catch(_0x22b518){_0x4a7e9b['push'](_0x4a7e9b['shift']());}}}(a90_0x37ac,0x7d746));function a90_0x37ac(){const _0x4b6472=['command','cancelled','flag_missing','has','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','report','trim','join','573453dyogOI','code','\x20\x20\x20\x20--title\x20\x22','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','1089504cWwGsl','network_error','validation_error','Hit\x20a\x20','1578899WVjmDc','22UdjXPv','5164mQSBGJ','\x20issue\x20report\x20\x5c','=1\x20to\x20silence\x20this\x20hint.','replace','\x22\x20\x5c','stderr','issue','21138aQSnhv','RABETBASE_DISABLE_ISSUE_NUDGE','not_in_project','config_missing','slice','auth_required','\x20\x20Set\x20','7254100BqgpGO','18RnNdUz','1895sGuBvE','unknown_command','63DnWMyf','554152hybkLh','length','6QIiPZL','message'];a90_0x37ac=function(){return _0x4b6472;};return a90_0x37ac();}import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a90_0x1a0b87(0xd4);const NUDGE_SUPPRESSED_CODES=new Set([a90_0x1a0b87(0xbb),a90_0x1a0b87(0xd8),a90_0x1a0b87(0xd6),a90_0x1a0b87(0xd5),a90_0x1a0b87(0xb4),a90_0x1a0b87(0xbc),a90_0x1a0b87(0xc8),a90_0x1a0b87(0xc7)]),defaultWriter=_0x5bbbca=>{const _0x1ca3c0=a90_0x1a0b87;process[_0x1ca3c0(0xd1)]['write'](_0x5bbbca);};export function shouldNudgeForError(_0x3f2db9,_0x5a4aba){const _0x5b49da=a90_0x1a0b87;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x5a4aba['service']===_0x5b49da(0xd2)&&_0x5a4aba[_0x5b49da(0xba)]===_0x5b49da(0xbf))return![];if(_0x3f2db9 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x5b49da(0xbd)](_0x3f2db9[_0x5b49da(0xc3)]);return!![];}export function printIssueReportNudgeForError(_0x56ff3a,_0x147329,_0x3b4824=defaultWriter){if(!shouldNudgeForError(_0x56ff3a,_0x147329))return;const _0x50a50d=buildSuggestedTitle(_0x56ff3a,_0x147329);_0x3b4824(formatNudge(_0x50a50d));}function a90_0x3abf(_0x4e9250,_0x5b0ba8){_0x4e9250=_0x4e9250-0xb0;const _0x37ac44=a90_0x37ac();let _0x3abf2b=_0x37ac44[_0x4e9250];return _0x3abf2b;}function buildSuggestedTitle(_0x4b0b1a,_0x40ee83){const _0x9bafcd=a90_0x1a0b87,_0x2b68a9=_0x4b0b1a instanceof Error?_0x4b0b1a[_0x9bafcd(0xb9)]:String(_0x4b0b1a),_0x3eae82=_0x2b68a9[_0x9bafcd(0xcf)](/[\r\n]+/g,'\x20')[_0x9bafcd(0xcf)](/\s+/g,'\x20')[_0x9bafcd(0xc0)]()[_0x9bafcd(0xd7)](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x24e4b7=CLI_BIN_NAME+'\x20'+_0x40ee83['service']+'\x20'+_0x40ee83[_0x9bafcd(0xba)];return _0x3eae82[_0x9bafcd(0xb7)]>0x0?_0x24e4b7+':\x20'+_0x3eae82:_0x24e4b7;}function formatNudge(_0x4a5fff){const _0x5c9b34=a90_0x1a0b87;return['',_0x5c9b34(0xc9)+CLI_BIN_NAME+'\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20'+CLI_BIN_NAME+_0x5c9b34(0xcd),_0x5c9b34(0xc4)+_0x4a5fff+_0x5c9b34(0xd0),_0x5c9b34(0xbe),_0x5c9b34(0xc5),_0x5c9b34(0xb0)+NUDGE_OPT_OUT_ENV+_0x5c9b34(0xce),''][_0x5c9b34(0xc1)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a91_0x63bcb1=a91_0x2d9d;(function(_0x504da3,_0x34b9f8){const _0x5d4ed6=a91_0x2d9d,_0x3f6436=_0x504da3();while(!![]){try{const _0x386161=parseInt(_0x5d4ed6(0x83))/0x1*(-parseInt(_0x5d4ed6(0xa4))/0x2)+-parseInt(_0x5d4ed6(0x8d))/0x3*(parseInt(_0x5d4ed6(0xa6))/0x4)+parseInt(_0x5d4ed6(0x87))/0x5*(-parseInt(_0x5d4ed6(0x8c))/0x6)+parseInt(_0x5d4ed6(0xa2))/0x7*(parseInt(_0x5d4ed6(0x8a))/0x8)+-parseInt(_0x5d4ed6(0x91))/0x9+parseInt(_0x5d4ed6(0xb2))/0xa+parseInt(_0x5d4ed6(0x78))/0xb;if(_0x386161===_0x34b9f8)break;else _0x3f6436['push'](_0x3f6436['shift']());}catch(_0x1a8f45){_0x3f6436['push'](_0x3f6436['shift']());}}}(a91_0x4d92,0x562d8));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';function a91_0x4d92(){const _0x29c4e8=['Failed\x20to\x20report\x20platform\x20issue:\x20','3737525ZgBzah','descriptionSource','One-line\x20issue\x20summary','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','compress','truncated\x20from\x20','message','issue.description_truncated','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','title','string','43QwouFu','utf8','issue.description','push','1448645XoPZFs','descriptionFilePath','filter','372664XYYcSj','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','6TVHpjF','92559AuQBML','cwd','originalBytes','issue.title','1059696LzpyhJ','description','str','apiError','\x20secret(s):\x20','issue','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','report','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','redactionKinds','trim','\x20bytes','description-file','join','Platform\x20issue\x20reported\x20(','sanitize','77VCkhmD','validation','24938BfPEmB','flagMissing','8AUhYUd','write','issue.description_redactions','redactionCount','POST','truncated','length','inline','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','issue.description_redaction_kinds','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','redactions:\x20','5061420NNiNiz'];a91_0x4d92=function(){return _0x29c4e8;};return a91_0x4d92();}function a91_0x2d9d(_0x378b2d,_0x95e221){_0x378b2d=_0x378b2d-0x78;const _0x4d92f3=a91_0x4d92();let _0x2d9dcc=_0x4d92f3[_0x378b2d];return _0x2d9dcc;}import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a91_0x63bcb1(0x9e);export const issueReport={'service':a91_0x63bcb1(0x96),'command':a91_0x63bcb1(0x98),'description':a91_0x63bcb1(0xb0),'risk':a91_0x63bcb1(0xa7),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a91_0x63bcb1(0x7c),'flags':[{'name':'title','type':'string','required':!![],'description':a91_0x63bcb1(0x7a)},{'name':a91_0x63bcb1(0x92),'type':a91_0x63bcb1(0x82),'description':a91_0x63bcb1(0x97)},{'name':DESCRIPTION_FILE_FLAG,'type':a91_0x63bcb1(0x82),'description':a91_0x63bcb1(0x7b)}],async 'validate'(_0x5b333f){const _0x5af10a=a91_0x63bcb1,_0x3540d1=_0x5b333f[_0x5af10a(0x93)](_0x5af10a(0x81))['trim'](),_0x48b7f2=_0x5b333f['str'](_0x5af10a(0x92))[_0x5af10a(0x9c)](),_0x176230=_0x5b333f[_0x5af10a(0x93)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x3540d1)throw CliErrors[_0x5af10a(0xa5)]('title',_0x5af10a(0x80));const _0x4a864c=_0x48b7f2['length']>0x0,_0x254230=_0x176230[_0x5af10a(0xac)]>0x0;if(_0x4a864c===_0x254230)throw CliErrors['validation'](_0x5af10a(0x99),_0x5af10a(0xae));if(_0x254230){const _0x3c052f=resolve(process[_0x5af10a(0x8e)](),_0x176230);if(!existsSync(_0x3c052f))throw CliErrors[_0x5af10a(0xa3)]('File\x20not\x20found:\x20'+_0x3c052f);}},async 'dryRun'(_0x4dca6e){const _0x3ee1c9=a91_0x63bcb1,_0xb015d7=await prepareIssueReport(_0x4dca6e);return{'method':_0x3ee1c9(0xaa),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0xb015d7[_0x3ee1c9(0x81)],'issue.description':_0xb015d7[_0x3ee1c9(0x92)],'issue.description_original_bytes':_0xb015d7[_0x3ee1c9(0xa1)][_0x3ee1c9(0x8f)],'issue.description_truncated':_0xb015d7[_0x3ee1c9(0xa1)][_0x3ee1c9(0xab)],'issue.description_redactions':_0xb015d7['sanitize'][_0x3ee1c9(0xa9)],'issue.description_redaction_kinds':_0xb015d7[_0x3ee1c9(0xa1)][_0x3ee1c9(0x9b)]['join'](',')}},'description':[_0x3ee1c9(0x9a),'descriptionSource:\x20'+_0xb015d7[_0x3ee1c9(0x79)],_0xb015d7[_0x3ee1c9(0x88)]?'descriptionFile:\x20'+_0xb015d7[_0x3ee1c9(0x88)]:null,_0xb015d7[_0x3ee1c9(0xa1)]['truncated']?'truncated:\x20original\x20'+_0xb015d7[_0x3ee1c9(0xa1)][_0x3ee1c9(0x8f)]+_0x3ee1c9(0x9d):null,_0xb015d7[_0x3ee1c9(0xa1)][_0x3ee1c9(0xa9)]>0x0?_0x3ee1c9(0xb1)+_0xb015d7[_0x3ee1c9(0xa1)]['redactionCount']+'\x20('+_0xb015d7[_0x3ee1c9(0xa1)][_0x3ee1c9(0x9b)][_0x3ee1c9(0x9f)](',\x20')+')':null][_0x3ee1c9(0x89)](Boolean)['join']('\x0a')};},async 'execute'(_0x1accea){const _0x37e862=a91_0x63bcb1,_0x5ef58d=await prepareIssueReport(_0x1accea);try{await sendPlatformIssueCollectLog({'title':_0x5ef58d['title'],'description':_0x5ef58d[_0x37e862(0x92)],'sanitize':{'originalBytes':_0x5ef58d[_0x37e862(0xa1)][_0x37e862(0x8f)],'truncated':_0x5ef58d['sanitize']['truncated'],'redactionCount':_0x5ef58d['sanitize']['redactionCount'],'redactionKinds':_0x5ef58d[_0x37e862(0xa1)][_0x37e862(0x9b)]}});}catch(_0x2f8821){throw CliErrors[_0x37e862(0x94)](_0x37e862(0xb3)+(_0x2f8821 instanceof Error?_0x2f8821[_0x37e862(0x7e)]:String(_0x2f8821)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x5ef58d[_0x37e862(0xa1)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x37e862(0x90),_0x37e862(0x85),'issue.description_original_bytes',_0x37e862(0x7f),_0x37e862(0xa8),_0x37e862(0xaf)],'issue':{'title':_0x5ef58d[_0x37e862(0x81)],'descriptionLength':_0x5ef58d[_0x37e862(0x92)]['length'],'descriptionSource':_0x5ef58d[_0x37e862(0x79)],..._0x5ef58d['descriptionFilePath']?{'descriptionFile':_0x5ef58d[_0x37e862(0x88)]}:{},'sanitize':{'originalBytes':_0x5ef58d[_0x37e862(0xa1)][_0x37e862(0x8f)],'truncated':_0x5ef58d[_0x37e862(0xa1)][_0x37e862(0xab)],'redactions':_0x5ef58d['sanitize'][_0x37e862(0xa9)],'redactionKinds':_0x5ef58d[_0x37e862(0xa1)][_0x37e862(0x9b)]}}}};}};function buildResultMessage(_0x59bb8b){const _0x1d9b43=a91_0x63bcb1,_0x497968=[];return _0x59bb8b[_0x1d9b43(0xab)]&&_0x497968[_0x1d9b43(0x86)](_0x1d9b43(0x7d)+_0x59bb8b[_0x1d9b43(0x8f)]+_0x1d9b43(0x9d)),_0x59bb8b['redactionCount']>0x0&&_0x497968['push']('redacted\x20'+_0x59bb8b[_0x1d9b43(0xa9)]+_0x1d9b43(0x95)+_0x59bb8b[_0x1d9b43(0x9b)][_0x1d9b43(0x9f)](',\x20')),_0x497968['length']===0x0?'Platform\x20issue\x20reported':_0x1d9b43(0xa0)+_0x497968[_0x1d9b43(0x9f)](';\x20')+')';}async function prepareIssueReport(_0x2f8b76){const _0x59c3fb=a91_0x63bcb1,_0x57fa95=_0x2f8b76[_0x59c3fb(0x93)]('title')['trim'](),_0x21f6b8=_0x2f8b76[_0x59c3fb(0x93)](_0x59c3fb(0x92)),_0x5b0d55=_0x2f8b76[_0x59c3fb(0x93)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x5b0d55){const _0x404be6=_0x21f6b8;if(!_0x404be6[_0x59c3fb(0x9c)]())throw CliErrors[_0x59c3fb(0xa3)]('Issue\x20description\x20cannot\x20be\x20empty.',_0x59c3fb(0x8b));const _0x4d8b45=sanitizeIssueDescription(_0x404be6);return{'title':_0x57fa95,'description':_0x4d8b45['description'],'descriptionSource':_0x59c3fb(0xad),'sanitize':_0x4d8b45};}const _0xecd991=resolve(process['cwd'](),_0x5b0d55),_0x3a7cc7=await readFile(_0xecd991,_0x59c3fb(0x84));if(!_0x3a7cc7[_0x59c3fb(0x9c)]())throw CliErrors['validation']('Issue\x20description\x20file\x20is\x20empty:\x20'+_0xecd991,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x43d2f8=sanitizeIssueDescription(_0x3a7cc7);return{'title':_0x57fa95,'description':_0x43d2f8['description'],'descriptionSource':'file','descriptionFilePath':_0xecd991,'sanitize':_0x43d2f8};}
|