@lovrabet/rabetbase-cli 2.3.1 → 2.3.2-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/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
|
+
const a74_0x126149=a74_0x394e;function a74_0x394e(_0x2713f2,_0x19d0b3){_0x2713f2=_0x2713f2-0x100;const _0x2b6297=a74_0x2b62();let _0x394eec=_0x2b6297[_0x2713f2];return _0x394eec;}(function(_0x2303bc,_0x2be2d9){const _0x3cb639=a74_0x394e,_0x58cec0=_0x2303bc();while(!![]){try{const _0xef5f25=-parseInt(_0x3cb639(0x112))/0x1+parseInt(_0x3cb639(0x111))/0x2*(-parseInt(_0x3cb639(0x106))/0x3)+parseInt(_0x3cb639(0x10c))/0x4+parseInt(_0x3cb639(0x116))/0x5*(-parseInt(_0x3cb639(0x109))/0x6)+parseInt(_0x3cb639(0x110))/0x7*(parseInt(_0x3cb639(0x10d))/0x8)+parseInt(_0x3cb639(0x101))/0x9*(-parseInt(_0x3cb639(0x105))/0xa)+parseInt(_0x3cb639(0x114))/0xb*(parseInt(_0x3cb639(0x10a))/0xc);if(_0xef5f25===_0x2be2d9)break;else _0x58cec0['push'](_0x58cec0['shift']());}catch(_0x466ac6){_0x58cec0['push'](_0x58cec0['shift']());}}}(a74_0x2b62,0xb94db));import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a74_0x2b62(){const _0x435963=['write','5178882pAIzCI','1098744TBYucp','analyze-cancel','312956yUJnJu','1053288vEYaqC','Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.','Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','7SnHdXE','10UqnqZg','1233016JDtMMi','plan','583QsxAGp','Cancel\x20requested\x20for\x20plan\x20','5xHBOnQ','num','2232TErvXO','str','latestAnalysisTraceId','No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.','48750eiqxpa','599112njUyCl','string'];a74_0x2b62=function(){return _0x435963;};return a74_0x2b62();}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeCancel={'service':'db','command':a74_0x126149(0x10b),'description':a74_0x126149(0x10f),'risk':a74_0x126149(0x108),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a74_0x126149(0x113),'type':a74_0x126149(0x107),'description':'Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)'}],async 'execute'(_0x4ce8e1){const _0x3ffdea=a74_0x126149,_0x2210b9=_0x4ce8e1[_0x3ffdea(0x100)]('id');let _0x323e36=_0x4ce8e1[_0x3ffdea(0x102)]('plan')||undefined;if(!_0x323e36){const _0xd5e0a8=await getDbLinkInfo(_0x2210b9);_0x323e36=_0xd5e0a8[_0x3ffdea(0x103)]??undefined;if(!_0x323e36)throw CliErrors['validation'](_0x3ffdea(0x104),_0x3ffdea(0x10e));}return await cancelDbAnalysis(_0x323e36),{'ok':!![],'data':{'dbLinkId':_0x2210b9,'planId':_0x323e36},'message':_0x3ffdea(0x115)+_0x323e36};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a75_0x2efcd9=a75_0x3a9f;function a75_0x4465(){const _0x599c39=['string','map','Started\x20analysis\x20for\x20db\x20link\x20','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','108552VSEKIS','10XLibBC','34876MJxHLV','trim','7911207YQeLrp','1494192HHzWiQ','appCode','filter','518UeLaHI','111arGuDN','370pPaOIk','tables','analyze-start','832632xHguXV','write','43597664hhkKFo','str','6366qrZrYx'];a75_0x4465=function(){return _0x599c39;};return a75_0x4465();}(function(_0x3298fd,_0x4a8d0c){const _0x3de0d0=a75_0x3a9f,_0xf97a1=_0x3298fd();while(!![]){try{const _0x473a7e=-parseInt(_0x3de0d0(0x13f))/0x1*(parseInt(_0x3de0d0(0x131))/0x2)+-parseInt(_0x3de0d0(0x12d))/0x3+parseInt(_0x3de0d0(0x138))/0x4*(-parseInt(_0x3de0d0(0x140))/0x5)+-parseInt(_0x3de0d0(0x13b))/0x6+-parseInt(_0x3de0d0(0x13e))/0x7*(parseInt(_0x3de0d0(0x136))/0x8)+-parseInt(_0x3de0d0(0x13a))/0x9*(parseInt(_0x3de0d0(0x137))/0xa)+parseInt(_0x3de0d0(0x12f))/0xb;if(_0x473a7e===_0x4a8d0c)break;else _0xf97a1['push'](_0xf97a1['shift']());}catch(_0x4578dc){_0xf97a1['push'](_0xf97a1['shift']());}}}(a75_0x4465,0x878c0));import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a75_0x3a9f(_0x1a9f7e,_0x2d4cac){_0x1a9f7e=_0x1a9f7e-0x12b;const _0x4465bf=a75_0x4465();let _0x3a9f3e=_0x4465bf[_0x1a9f7e];return _0x3a9f3e;}import{buildDbPageLinks}from'../../commands/db/shared.js';export const dbAnalyzeStart={'service':'db','command':a75_0x2efcd9(0x12c),'description':a75_0x2efcd9(0x135),'risk':a75_0x2efcd9(0x12e),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a75_0x2efcd9(0x12b),'type':a75_0x2efcd9(0x132),'description':'Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)'}],async 'execute'(_0x5d0241){const _0x32b21f=a75_0x2efcd9,_0x40484a=_0x5d0241['num']('id'),_0x3c39ac=_0x5d0241[_0x32b21f(0x130)]('tables'),_0x4ea425=_0x3c39ac?_0x3c39ac['split'](',')[_0x32b21f(0x133)](_0x52af4e=>_0x52af4e[_0x32b21f(0x139)]())[_0x32b21f(0x13d)](Boolean):undefined,_0xc2d7ce=await startDbAnalysis(_0x40484a,_0x4ea425),_0x4e4f26=buildDbPageLinks(_0x5d0241[_0x32b21f(0x13c)],_0x40484a);return{'ok':!![],'data':{'dbLinkId':_0x40484a,'planId':_0xc2d7ce,'tableNames':_0x4ea425??[],..._0x4e4f26?{'links':_0x4e4f26}:{}},'message':_0x32b21f(0x134)+_0x40484a};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a76_0x72b626=a76_0x17e7;(function(_0x81ba3e,_0x50ad89){const _0x3013cb=a76_0x17e7,_0x5350ee=_0x81ba3e();while(!![]){try{const _0x37f732=-parseInt(_0x3013cb(0x1eb))/0x1*(-parseInt(_0x3013cb(0x1e8))/0x2)+-parseInt(_0x3013cb(0x1e1))/0x3+parseInt(_0x3013cb(0x1ef))/0x4+parseInt(_0x3013cb(0x1e0))/0x5*(parseInt(_0x3013cb(0x1df))/0x6)+parseInt(_0x3013cb(0x1e7))/0x7*(-parseInt(_0x3013cb(0x1e2))/0x8)+parseInt(_0x3013cb(0x1e4))/0x9*(parseInt(_0x3013cb(0x1ec))/0xa)+-parseInt(_0x3013cb(0x1ee))/0xb*(parseInt(_0x3013cb(0x1e5))/0xc);if(_0x37f732===_0x50ad89)break;else _0x5350ee['push'](_0x5350ee['shift']());}catch(_0xed65e7){_0x5350ee['push'](_0x5350ee['shift']());}}}(a76_0x49ab,0xeefb7));import{getDbAnalysisStatus}from'../../core/api-client.js';function a76_0x17e7(_0x1e7d4b,_0x3df868){_0x1e7d4b=_0x1e7d4b-0x1df;const _0x49abd8=a76_0x49ab();let _0x17e7f7=_0x49abd8[_0x1e7d4b];return _0x17e7f7;}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';function a76_0x49ab(){const _0x4971dc=['6795stBphL','27048hsfWYR','analyze-status','1111390xwsYNk','49372MtyzhK','Analysis\x20status\x20for\x20','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','49bKwncm','25370VeJXtc','plan','14333lwaJej','6320464MoTnHq','read','num','9714TWbiKU','1635EsODEu','2527305kYqvXG','24YNUkVB','str'];a76_0x49ab=function(){return _0x4971dc;};return a76_0x49ab();}export const dbAnalyzeStatus={'service':'db','command':a76_0x72b626(0x1e6),'description':a76_0x72b626(0x1ea),'risk':a76_0x72b626(0x1f0),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a76_0x72b626(0x1ed),'type':'string','required':!![],'description':'Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)'}],async 'execute'(_0x768bed){const _0xf9b46d=a76_0x72b626,_0x9905c9=_0x768bed[_0xf9b46d(0x1f1)]('id'),_0xfd615e=_0x768bed[_0xf9b46d(0x1e3)](_0xf9b46d(0x1ed)),_0x22ea1e=await getDbAnalysisStatus(_0xfd615e),_0x1bfa13=buildDbPageLinks(_0x768bed['appCode'],_0x9905c9);return{'ok':!![],'data':{'dbLinkId':_0x9905c9,'planId':_0xfd615e,'status':_0x22ea1e,..._0x1bfa13?{'links':_0x1bfa13}:{}},'message':_0xf9b46d(0x1e9)+_0xfd615e};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a77_0x4901cd=a77_0xd20b;(function(_0x46389b,_0x11bf54){const _0x4ce70b=a77_0xd20b,_0x39ca49=_0x46389b();while(!![]){try{const _0x3f49e2=-parseInt(_0x4ce70b(0xe3))/0x1+-parseInt(_0x4ce70b(0xd7))/0x2*(parseInt(_0x4ce70b(0xfa))/0x3)+parseInt(_0x4ce70b(0xed))/0x4*(parseInt(_0x4ce70b(0xf8))/0x5)+-parseInt(_0x4ce70b(0xf5))/0x6*(-parseInt(_0x4ce70b(0xf0))/0x7)+-parseInt(_0x4ce70b(0xe8))/0x8+parseInt(_0x4ce70b(0xfb))/0x9+parseInt(_0x4ce70b(0xdd))/0xa*(parseInt(_0x4ce70b(0xf2))/0xb);if(_0x3f49e2===_0x11bf54)break;else _0x39ca49['push'](_0x39ca49['shift']());}catch(_0x118c89){_0x39ca49['push'](_0x39ca49['shift']());}}}(a77_0x2bf8,0x85787));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a77_0xd20b(_0x38769b,_0x1b5ae1){_0x38769b=_0x38769b-0xd0;const _0x2bf88c=a77_0x2bf8();let _0xd20b91=_0x2bf88c[_0x38769b];return _0xd20b91;}import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a77_0x2bf8(){const _0x45147b=['boolean','36724bkSKxd','dbdesc','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','7oyZMcf','create','2783RWnDam','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','dbversion','289866YRbdAY','bool','8.0','380VnjWyn','autostart','825DtowxW','7543044GnMmUz','POST','Create\x20dblink','Database\x20username','\x20and\x20started\x20analysis','trim','dbtype','str','username','6050xJVlnX','password','After\x20create,\x20start\x20schema\x20analysis','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','dbparam','12390EslMgl','Human-readable\x20description','appCode','message','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','dburl','356427BzRBIC','Database\x20password','databasePage','string','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','1301224murvKY','[redacted]','dbname','Created\x20db\x20link\x20'];a77_0x2bf8=function(){return _0x45147b;};return a77_0x2bf8();}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':a77_0x4901cd(0xf1),'description':a77_0x4901cd(0xf3),'risk':'write','flags':[APPCODE_FLAG_OPTIONAL,{'name':a77_0x4901cd(0xea),'type':a77_0x4901cd(0xe6),'required':!![],'description':a77_0x4901cd(0xef)},DB_TYPE_FLAG,{'name':a77_0x4901cd(0xf4),'type':'string','description':'Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','default':a77_0x4901cd(0xf7)},{'name':a77_0x4901cd(0xe2),'type':'string','required':!![],'description':'Host\x20and\x20port:\x20host:port'},{'name':a77_0x4901cd(0xd6),'type':a77_0x4901cd(0xe6),'required':!![],'description':a77_0x4901cd(0xd1)},{'name':a77_0x4901cd(0xd8),'type':a77_0x4901cd(0xe6),'required':!![],'description':a77_0x4901cd(0xe4)},{'name':a77_0x4901cd(0xdc),'type':a77_0x4901cd(0xe6),'description':'Extra\x20JDBC-style\x20connection\x20parameters\x20string'},{'name':'dbdesc','type':'string','description':a77_0x4901cd(0xde)},{'name':a77_0x4901cd(0xf9),'type':a77_0x4901cd(0xec),'description':a77_0x4901cd(0xd9),'default':![]}],async 'validate'(_0x4c51df){const _0x58f089=a77_0x4901cd,_0x1d3375=_0x4c51df[_0x58f089(0xd5)](_0x58f089(0xe2))['trim']();if(!validateDbUrl(_0x1d3375))throw CliErrors['validation'](_0x58f089(0xe1)+_0x1d3375+'\x22',_0x58f089(0xda));},async 'dryRun'(_0xe27e5b){const _0x3e1c64=a77_0x4901cd,_0x362b1f={'appCode':_0xe27e5b['appCode'],'dbName':_0xe27e5b[_0x3e1c64(0xd5)](_0x3e1c64(0xea)),'dbType':_0xe27e5b['str'](_0x3e1c64(0xd4)),'dbVersion':_0xe27e5b[_0x3e1c64(0xd5)]('dbversion')||_0x3e1c64(0xf7),'dbUrl':_0xe27e5b['str'](_0x3e1c64(0xe2))[_0x3e1c64(0xd3)](),'username':_0xe27e5b[_0x3e1c64(0xd5)](_0x3e1c64(0xd6)),'password':_0x3e1c64(0xe9),..._0xe27e5b[_0x3e1c64(0xd5)]('dbparam')?{'dbParam':_0xe27e5b[_0x3e1c64(0xd5)](_0x3e1c64(0xdc))}:{},..._0xe27e5b[_0x3e1c64(0xd5)](_0x3e1c64(0xee))?{'dbDesc':_0xe27e5b['str']('dbdesc')}:{}};return{'method':_0x3e1c64(0xfc),'url':'/smartapi/dblink/create','body':_0x362b1f,'description':[_0x3e1c64(0xd0),_0xe27e5b[_0x3e1c64(0xf6)]('autostart')?_0x3e1c64(0xe7):'No\x20follow-up\x20analysis']['join']('\x0a')};},async 'execute'(_0x40c232){const _0x25288e=a77_0x4901cd,_0x32ede6={'appCode':_0x40c232[_0x25288e(0xdf)],'dbName':_0x40c232['str']('dbname'),'dbType':_0x40c232[_0x25288e(0xd5)](_0x25288e(0xd4)),'dbVersion':_0x40c232[_0x25288e(0xd5)]('dbversion')||'8.0','dbUrl':_0x40c232[_0x25288e(0xd5)]('dburl')[_0x25288e(0xd3)](),'username':_0x40c232[_0x25288e(0xd5)](_0x25288e(0xd6)),'password':_0x40c232[_0x25288e(0xd5)](_0x25288e(0xd8)),..._0x40c232['str'](_0x25288e(0xdc))?{'dbParam':_0x40c232[_0x25288e(0xd5)](_0x25288e(0xdc))}:{},..._0x40c232['str'](_0x25288e(0xee))?{'dbDesc':_0x40c232[_0x25288e(0xd5)]('dbdesc')}:{}},{id:_0x191852,entity:_0x379c20}=normalizeEntityWithIdResponse(await createDbLink(_0x32ede6));if(!_0x191852)return{'ok':![],'message':'Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','data':sanitizeDbLinkForOutput(_0x379c20)};let _0x1f70fa,_0x2f6445;if(_0x40c232['bool'](_0x25288e(0xf9)))try{_0x1f70fa=await startDbAnalysis(_0x191852);}catch(_0x2ce72b){_0x2f6445=_0x2ce72b instanceof Error?_0x2ce72b[_0x25288e(0xe0)]:String(_0x2ce72b);}const _0x114a9c=buildDbPageLinks(_0x40c232[_0x25288e(0xdf)],_0x191852),_0x542354={'connection':sanitizeDbLinkForOutput(_0x379c20),..._0x114a9c?{'links':{'databasePage':_0x114a9c[_0x25288e(0xe5)]}}:{},..._0x1f70fa?{'analysisPlanId':_0x1f70fa}:{},..._0x2f6445?{'analysisStartWarning':_0x2f6445}:{}};let _0x5dae05;return _0x40c232[_0x25288e(0xf6)]('autostart')?_0x2f6445?_0x5dae05=_0x25288e(0xeb)+_0x191852+_0x25288e(0xdb):_0x5dae05='Created\x20db\x20link\x20'+_0x191852+_0x25288e(0xd2):_0x5dae05='Created\x20db\x20link\x20'+_0x191852,{'ok':!![],'data':_0x542354,'message':_0x5dae05};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a78_0x318506=a78_0x3c86;(function(_0x3abb7d,_0xaefd7a){const _0x34961b=a78_0x3c86,_0x47263d=_0x3abb7d();while(!![]){try{const _0x331a35=-parseInt(_0x34961b(0x122))/0x1*(parseInt(_0x34961b(0x11e))/0x2)+parseInt(_0x34961b(0x120))/0x3*(parseInt(_0x34961b(0x127))/0x4)+-parseInt(_0x34961b(0x121))/0x5*(parseInt(_0x34961b(0x118))/0x6)+-parseInt(_0x34961b(0x11d))/0x7+parseInt(_0x34961b(0x123))/0x8+-parseInt(_0x34961b(0x126))/0x9*(parseInt(_0x34961b(0x11a))/0xa)+parseInt(_0x34961b(0x11c))/0xb*(parseInt(_0x34961b(0x119))/0xc);if(_0x331a35===_0xaefd7a)break;else _0x47263d['push'](_0x47263d['shift']());}catch(_0x66f702){_0x47263d['push'](_0x47263d['shift']());}}}(a78_0x5ba2,0xe05c3));import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a78_0x3c86(_0x753f37,_0x2ab564){_0x753f37=_0x753f37-0x118;const _0x5ba201=a78_0x5ba2();let _0x3c8676=_0x5ba201[_0x753f37];return _0x3c8676;}export const dbDelete={'service':'db','command':a78_0x318506(0x124),'description':a78_0x318506(0x11f),'risk':'high-risk-write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0xdd52e0){const _0x414d9c=a78_0x318506,_0x514f1b=_0xdd52e0[_0x414d9c(0x11b)]('id');return await deleteDbLink(_0x514f1b),{'ok':!![],'data':{'id':_0x514f1b,'deleted':!![]},'message':_0x414d9c(0x125)+_0x514f1b};}};function a78_0x5ba2(){const _0x2f70f8=['1028400cyFftx','15AqRRZs','1BgpdfQ','10696904yhrtgF','delete','Deleted\x20db\x20link\x20','140139FmnByt','4YxnxnZ','2767878DlhGtZ','39022656srhQiz','770CESGnT','num','11OsMBrL','9788534MvHEdp','63108DHUXwM','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently'];a78_0x5ba2=function(){return _0x2f70f8;};return a78_0x5ba2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a79_0x58dd05=a79_0x4e06;function a79_0x2a44(){const _0x112970=['4982838FNdnAs','db\x20link\x20','6013119lrlprw','1327179EPvdzu','4705320AcDUef','detail','4560725rHDcXK','read','752360jTfNzp','8AZwQLF','265843PBEVAv','dbName'];a79_0x2a44=function(){return _0x112970;};return a79_0x2a44();}(function(_0x1394c3,_0x3d1efc){const _0x26dd04=a79_0x4e06,_0x39db83=_0x1394c3();while(!![]){try{const _0x135851=-parseInt(_0x26dd04(0x15d))/0x1+-parseInt(_0x26dd04(0x15b))/0x2+-parseInt(_0x26dd04(0x156))/0x3*(-parseInt(_0x26dd04(0x15c))/0x4)+parseInt(_0x26dd04(0x159))/0x5+-parseInt(_0x26dd04(0x153))/0x6+parseInt(_0x26dd04(0x155))/0x7+-parseInt(_0x26dd04(0x157))/0x8;if(_0x135851===_0x3d1efc)break;else _0x39db83['push'](_0x39db83['shift']());}catch(_0x1b1cc1){_0x39db83['push'](_0x39db83['shift']());}}}(a79_0x2a44,0x91557));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a79_0x4e06(_0x5ce269,_0x3a95b7){_0x5ce269=_0x5ce269-0x152;const _0x2a449e=a79_0x2a44();let _0x4e0653=_0x2a449e[_0x5ce269];return _0x4e0653;}export const dbDetail={'service':'db','command':a79_0x58dd05(0x158),'description':'Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','risk':a79_0x58dd05(0x15a),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1d076e){const _0x2b1b55=a79_0x58dd05,_0x26dcf7=_0x1d076e['num']('id'),_0x361998=await getDbLinkInfo(_0x26dcf7);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x361998),'message':_0x2b1b55(0x154)+_0x26dcf7+':\x20'+_0x361998[_0x2b1b55(0x152)]};}};
|
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a80_0x1a11ac=a80_0x3b63;function a80_0x32e0(){const _0x4b8c66=['1459345kPlBLc','1004171yiyHyz','Page\x20size','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','pagesize','1714792uENqGx','140840tPypbV','number','\x20(db\x20link\x20','\x20row(s),\x20total\x20','diff','7093413GRdQEm','252939UiLfZk','string','1LyBGhn','table','522072bzOoyQ','length','num','6WtEQYj','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','appCode','Page\x20index\x20(1-based)'];a80_0x32e0=function(){return _0x4b8c66;};return a80_0x32e0();}function a80_0x3b63(_0x37d440,_0x3a0f4d){_0x37d440=_0x37d440-0x1a9;const _0x32e031=a80_0x32e0();let _0x3b6324=_0x32e031[_0x37d440];return _0x3b6324;}(function(_0x55932a,_0x40db8b){const _0x3b7087=a80_0x3b63,_0x2482b5=_0x55932a();while(!![]){try{const _0x2defec=-parseInt(_0x3b7087(0x1bf))/0x1*(-parseInt(_0x3b7087(0x1b7))/0x2)+parseInt(_0x3b7087(0x1bd))/0x3+parseInt(_0x3b7087(0x1aa))/0x4+parseInt(_0x3b7087(0x1b1))/0x5+-parseInt(_0x3b7087(0x1ad))/0x6*(-parseInt(_0x3b7087(0x1b2))/0x7)+parseInt(_0x3b7087(0x1b6))/0x8+-parseInt(_0x3b7087(0x1bc))/0x9;if(_0x2defec===_0x40db8b)break;else _0x2482b5['push'](_0x2482b5['shift']());}catch(_0x236478){_0x2482b5['push'](_0x2482b5['shift']());}}}(a80_0x32e0,0x23d4d));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDiff={'service':'db','command':a80_0x1a11ac(0x1bb),'description':a80_0x1a11ac(0x1b4),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a80_0x1a11ac(0x1a9),'type':a80_0x1a11ac(0x1be),'description':a80_0x1a11ac(0x1ae)},{'name':'page','type':a80_0x1a11ac(0x1b8),'description':a80_0x1a11ac(0x1b0),'default':0x1},{'name':'pagesize','type':a80_0x1a11ac(0x1b8),'description':a80_0x1a11ac(0x1b3),'default':0x14}],async 'execute'(_0x3b8788){const _0x2f28d2=a80_0x1a11ac,_0x1f47f2=_0x3b8788['num']('id'),_0x5b9a48=_0x3b8788[_0x2f28d2(0x1ac)]('page',0x1)||0x1,_0x293223=_0x3b8788[_0x2f28d2(0x1ac)](_0x2f28d2(0x1b5),0x14)||0x14,_0x1fc107=_0x3b8788['str'](_0x2f28d2(0x1a9))||undefined,{totalCount:_0x2c8d6d,physicalTableCount:_0x2dcf05,datasetTableCount:_0x1202ca,summary:_0x556276,tableList:_0x30cb04}=await getDbTableDiff(_0x3b8788[_0x2f28d2(0x1af)],_0x1f47f2,{'pageIndex':_0x5b9a48,'pageSize':_0x293223,'tableName':_0x1fc107});return{'ok':!![],'data':{'dbLinkId':_0x1f47f2,'page':_0x5b9a48,'pageSize':_0x293223,'totalCount':_0x2c8d6d,'physicalTableCount':_0x2dcf05,'datasetTableCount':_0x1202ca,..._0x556276?{'summary':_0x556276}:{},'tables':_0x30cb04,'tableList':_0x30cb04},'message':_0x30cb04[_0x2f28d2(0x1ab)]+_0x2f28d2(0x1ba)+_0x2c8d6d+_0x2f28d2(0x1b9)+_0x1f47f2+')'};}};
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1e37f6,_0xb538d5){const _0x20f7a6=a81_0x5eb9,_0x1a0e97=_0x1e37f6();while(!![]){try{const _0x59b538=parseInt(_0x20f7a6(0xf1))/0x1*(parseInt(_0x20f7a6(0xf5))/0x2)+parseInt(_0x20f7a6(0xfc))/0x3+parseInt(_0x20f7a6(0xf7))/0x4*(-parseInt(_0x20f7a6(0xfb))/0x5)+-parseInt(_0x20f7a6(0xf8))/0x6*(parseInt(_0x20f7a6(0xf4))/0x7)+parseInt(_0x20f7a6(0xf3))/0x8*(-parseInt(_0x20f7a6(0xf6))/0x9)+parseInt(_0x20f7a6(0xf9))/0xa+parseInt(_0x20f7a6(0xfa))/0xb*(parseInt(_0x20f7a6(0xf2))/0xc);if(_0x59b538===_0xb538d5)break;else _0x1a0e97['push'](_0x1a0e97['shift']());}catch(_0xc0f9f3){_0x1a0e97['push'](_0x1a0e97['shift']());}}}(a81_0x64f2,0x5f2dc));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';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';function a81_0x64f2(){const _0x1b82a6=['612657vBKCfe','1JFOPhn','12vbEAaf','104cqLtVB','4949826jEFRLG','968162OsGrrG','311229oDQLvT','8VUjYNT','6jYyFIx','3114630WPHLAU','13849198pfeabP','1780645VBslTg'];a81_0x64f2=function(){return _0x1b82a6;};return a81_0x64f2();}import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';function a81_0x5eb9(_0x8885ef,_0x57852f){_0x8885ef=_0x8885ef-0xf1;const _0x64f233=a81_0x64f2();let _0x5eb96f=_0x64f233[_0x8885ef];return _0x5eb96f;}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_0x5f0d21=a82_0x9e2d;(function(_0x3cf8b7,_0x478a32){const _0xaa399b=a82_0x9e2d,_0x36bc0b=_0x3cf8b7();while(!![]){try{const _0x4e434c=-parseInt(_0xaa399b(0x7b))/0x1+parseInt(_0xaa399b(0x86))/0x2*(parseInt(_0xaa399b(0x7d))/0x3)+-parseInt(_0xaa399b(0x78))/0x4+-parseInt(_0xaa399b(0x77))/0x5+-parseInt(_0xaa399b(0x85))/0x6+parseInt(_0xaa399b(0x7a))/0x7+parseInt(_0xaa399b(0x82))/0x8*(parseInt(_0xaa399b(0x80))/0x9);if(_0x4e434c===_0x478a32)break;else _0x36bc0b['push'](_0x36bc0b['shift']());}catch(_0x54b17a){_0x36bc0b['push'](_0x36bc0b['shift']());}}}(a82_0x16b3,0xb8a9f));import{listDbLinks}from'../../core/api-client.js';function a82_0x16b3(){const _0x5f45af=['4847620DgoyTh','2338744NGTOYK','Page\x20size','7279741EWwtIk','328035Tndyem','page','1146GoAlRk','Page\x20index\x20(1-based)','pagesize','63HoxoZf','\x20database\x20connection(s)','2240432HkgEDo','number','length','3845730CSXrtM','1462SESnkU','num','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','appCode'];a82_0x16b3=function(){return _0x5f45af;};return a82_0x16b3();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';function a82_0x9e2d(_0x1dbc57,_0x4e5419){_0x1dbc57=_0x1dbc57-0x77;const _0x16b3f0=a82_0x16b3();let _0x9e2d97=_0x16b3f0[_0x1dbc57];return _0x9e2d97;}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':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a82_0x5f0d21(0x7c),'type':a82_0x5f0d21(0x83),'description':a82_0x5f0d21(0x7e),'default':0x1},{'name':a82_0x5f0d21(0x7f),'type':a82_0x5f0d21(0x83),'description':a82_0x5f0d21(0x79),'default':0x64}],async 'execute'(_0x4117ed){const _0x3c9515=a82_0x5f0d21,_0x22793a=_0x4117ed['num'](_0x3c9515(0x7c),0x1)||0x1,_0x564793=_0x4117ed[_0x3c9515(0x87)](_0x3c9515(0x7f),0x64)||0x64,{items:_0x43de18,paging:_0x465583}=await listDbLinks(_0x4117ed[_0x3c9515(0x89)],{'currentPage':_0x22793a,'pageSize':_0x564793}),_0x5a3b18=sanitizeDbLinkList(_0x43de18),_0x3fa26b=_0x465583?_0x465583:{'currentPage':_0x22793a,'pageSize':_0x564793,'rowsOnPage':_0x5a3b18[_0x3c9515(0x84)],'totalCount':null,'note':_0x3c9515(0x88)};return{'ok':!![],'data':{'connections':_0x5a3b18,'paging':_0x3fa26b},'message':'Found\x20'+_0x5a3b18[_0x3c9515(0x84)]+_0x3c9515(0x81)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2841c0,_0x3cee4d){const _0x5ecca5=a83_0x57eb,_0x128d25=_0x2841c0();while(!![]){try{const _0x49882f=parseInt(_0x5ecca5(0xdf))/0x1+parseInt(_0x5ecca5(0xd3))/0x2+-parseInt(_0x5ecca5(0xe3))/0x3*(-parseInt(_0x5ecca5(0xd0))/0x4)+parseInt(_0x5ecca5(0xed))/0x5+-parseInt(_0x5ecca5(0xe6))/0x6+parseInt(_0x5ecca5(0xe5))/0x7*(parseInt(_0x5ecca5(0xde))/0x8)+-parseInt(_0x5ecca5(0xea))/0x9*(parseInt(_0x5ecca5(0xee))/0xa);if(_0x49882f===_0x3cee4d)break;else _0x128d25['push'](_0x128d25['shift']());}catch(_0x32c3fe){_0x128d25['push'](_0x128d25['shift']());}}}(a83_0x1273,0x572c8));import{getAppBaseUrl}from'../../constant/domain.js';function a83_0x1273(){const _0x207b41=['passwd','81UWpkPD','credential','toLowerCase','1834075DHiIOS','1606210DdZpDd','22404xDRuMG','connectionstring','secret','588492TmQenr','jdbcurl','map','token','length','trim','isFinite','dbpassword','keys','privatekey','test','16448oRBCiW','57563bmDThG','includes','[redacted]','/data/database','303rkLbSf','password','1939NOWQuV','307104kuaavY','accesskey','authorization'];a83_0x1273=function(){return _0x207b41;};return a83_0x1273();}function shouldRedactKey(_0x44daf2){const _0x2d21d0=a83_0x57eb,_0x24ea0c=_0x44daf2[_0x2d21d0(0xec)]();if(_0x24ea0c===_0x2d21d0(0xe4)||_0x24ea0c===_0x2d21d0(0xe9)||_0x24ea0c===_0x2d21d0(0xda))return!![];if(_0x24ea0c[_0x2d21d0(0xe0)](_0x2d21d0(0xd2))||_0x24ea0c[_0x2d21d0(0xe0)](_0x2d21d0(0xd6))||_0x24ea0c[_0x2d21d0(0xe0)](_0x2d21d0(0xeb)))return!![];if(_0x24ea0c['includes'](_0x2d21d0(0xdc))||_0x24ea0c[_0x2d21d0(0xe0)](_0x2d21d0(0xe7)))return!![];if(_0x24ea0c===_0x2d21d0(0xe8)||_0x24ea0c===_0x2d21d0(0xd1)||_0x24ea0c===_0x2d21d0(0xd4))return!![];return![];}export function sanitizeDbLinkForOutput(_0x4a7a3d){const _0x373356=a83_0x57eb,_0x5483a7={..._0x4a7a3d};for(const _0x1fa5d6 of Object[_0x373356(0xdb)](_0x5483a7)){if(!shouldRedactKey(_0x1fa5d6))continue;const _0x2ebf50=_0x5483a7[_0x1fa5d6];_0x2ebf50!=null&&String(_0x2ebf50)[_0x373356(0xd7)]>0x0&&(_0x5483a7[_0x1fa5d6]=_0x373356(0xe1));}return _0x5483a7;}export function sanitizeDbLinkList(_0x31fbf3){const _0x5eb0c3=a83_0x57eb;return _0x31fbf3[_0x5eb0c3(0xd5)](_0x233e72=>sanitizeDbLinkForOutput(_0x233e72));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x16b37e){const _0x248b3f=a83_0x57eb,_0x4857cb=_0x16b37e[_0x248b3f(0xd8)]();if(!_0x4857cb)return![];return DB_URL_PATTERN[_0x248b3f(0xdd)](_0x4857cb);}function a83_0x57eb(_0x19f5ad,_0x363361){_0x19f5ad=_0x19f5ad-0xd0;const _0x12733d=a83_0x1273();let _0x57eb24=_0x12733d[_0x19f5ad];return _0x57eb24;}export function buildDbPageLinks(_0x1ca2a,_0x289ff4){const _0x43ffc3=a83_0x57eb,_0x1a0cdb=_0x1ca2a?.[_0x43ffc3(0xd8)]();if(!_0x1a0cdb)return undefined;const _0x536641=typeof _0x289ff4==='number'?String(_0x289ff4):String(_0x289ff4??'')[_0x43ffc3(0xd8)]();if(!_0x536641)return undefined;const _0x474131=Number(_0x536641);if(!Number[_0x43ffc3(0xd9)](_0x474131)||_0x474131<=0x0)return undefined;const _0x2d6b85=getAppBaseUrl(_0x1a0cdb),_0x470a56=encodeURIComponent(String(_0x474131));return{'databasePage':_0x2d6b85+_0x43ffc3(0xe2),'erPage':_0x2d6b85+'/data/er?dbId='+_0x470a56};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a84_0x25f312=a84_0x1ea3;function a84_0x336a(){const _0x887bbe=['10079172BCaNdZ','16WGTTrC','1848182CbzkZV','appCode','1257785TcMNEZ','5309505XnOZTu','length','1116WOnaIk','1406921Fmvqny','2758430RVkTwz','num','508016ojCqUg','\x20table(s)\x20on\x20db\x20link\x20','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','tables'];a84_0x336a=function(){return _0x887bbe;};return a84_0x336a();}(function(_0x1c8f7f,_0xc6e979){const _0x2b1a67=a84_0x1ea3,_0x304560=_0x1c8f7f();while(!![]){try{const _0x525755=-parseInt(_0x2b1a67(0xb4))/0x1+-parseInt(_0x2b1a67(0xb5))/0x2+-parseInt(_0x2b1a67(0xb1))/0x3+parseInt(_0x2b1a67(0xbc))/0x4*(-parseInt(_0x2b1a67(0xb0))/0x5)+-parseInt(_0x2b1a67(0xbb))/0x6+parseInt(_0x2b1a67(0xbd))/0x7+-parseInt(_0x2b1a67(0xb7))/0x8*(-parseInt(_0x2b1a67(0xb3))/0x9);if(_0x525755===_0xc6e979)break;else _0x304560['push'](_0x304560['shift']());}catch(_0x4d9aac){_0x304560['push'](_0x304560['shift']());}}}(a84_0x336a,0xdacd5));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a84_0x1ea3(_0x24fd01,_0x310525){_0x24fd01=_0x24fd01-0xb0;const _0x336aaf=a84_0x336a();let _0x1ea3fa=_0x336aaf[_0x24fd01];return _0x1ea3fa;}export const dbTables={'service':'db','command':a84_0x25f312(0xba),'description':a84_0x25f312(0xb9),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x16ff0d){const _0x4e363e=a84_0x25f312,_0x3af4c7=_0x16ff0d[_0x4e363e(0xb6)]('id'),_0x3c9755=await getDbAllTableList(_0x16ff0d[_0x4e363e(0xbe)],_0x3af4c7);return{'ok':!![],'data':{'dbLinkId':_0x3af4c7,'total':_0x3c9755[_0x4e363e(0xb2)],'tables':_0x3c9755},'message':_0x3c9755[_0x4e363e(0xb2)]+_0x4e363e(0xb8)+_0x3af4c7};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a85_0x52b7(_0x45ade6,_0x44ca88){_0x45ade6=_0x45ade6-0x108;const _0x2d9f51=a85_0x2d9f();let _0x52b74f=_0x2d9f51[_0x45ade6];return _0x52b74f;}const a85_0x316071=a85_0x52b7;(function(_0x374293,_0x3dc2cc){const _0x1182e6=a85_0x52b7,_0x58a93e=_0x374293();while(!![]){try{const _0x26a19c=parseInt(_0x1182e6(0x117))/0x1+parseInt(_0x1182e6(0x10c))/0x2+parseInt(_0x1182e6(0x110))/0x3*(-parseInt(_0x1182e6(0x112))/0x4)+parseInt(_0x1182e6(0x108))/0x5+parseInt(_0x1182e6(0x113))/0x6+-parseInt(_0x1182e6(0x115))/0x7*(parseInt(_0x1182e6(0x11f))/0x8)+-parseInt(_0x1182e6(0x114))/0x9;if(_0x26a19c===_0x3dc2cc)break;else _0x58a93e['push'](_0x58a93e['shift']());}catch(_0x2d6ca2){_0x58a93e['push'](_0x58a93e['shift']());}}}(a85_0x2d9f,0xc8ed2));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x3d76a1){const _0x564332=a85_0x52b7;if(_0x3d76a1===!![]||_0x3d76a1===![])return{'success':_0x3d76a1};if(_0x3d76a1===null||_0x3d76a1===undefined)return{'type':typeof _0x3d76a1};if(typeof _0x3d76a1!==_0x564332(0x116))return{'type':typeof _0x3d76a1};const _0x499d70=_0x3d76a1,_0x46f550=[_0x564332(0x119),_0x564332(0x10e),'code','error',_0x564332(0x10d),_0x564332(0x111)],_0x4e6ea1={};for(const _0x3bb440 of _0x46f550){if(_0x3bb440 in _0x499d70)_0x4e6ea1[_0x3bb440]=_0x499d70[_0x3bb440];}return Object[_0x564332(0x10a)](_0x4e6ea1)[_0x564332(0x109)]===0x0&&(_0x4e6ea1['keys']=Object['keys'](_0x499d70)[_0x564332(0x11c)](0x0,0x14)),_0x4e6ea1;}export const dbTest={'service':'db','command':a85_0x316071(0x11d),'description':a85_0x316071(0x10b),'risk':a85_0x316071(0x11e),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x16fd11){const _0x40725b=a85_0x316071,_0x50a33b=_0x16fd11[_0x40725b(0x11b)]('id'),_0xdabb7=await testDbLinkConnect(_0x50a33b),_0x521f12=_0xdabb7===!![]||typeof _0xdabb7==='object'&&_0xdabb7!==null&&_0xdabb7[_0x40725b(0x119)]===!![],_0x580b59=summarizeTestConnectResult(_0xdabb7);return{'ok':!![],'data':{'id':_0x50a33b,'connected':Boolean(_0x521f12),'result':_0x580b59},'message':_0x521f12?_0x40725b(0x118)+_0x50a33b:_0x40725b(0x11a)+_0x50a33b+_0x40725b(0x10f)};}};function a85_0x2d9f(){const _0x93640c=['data','44GqoJes','4116792YeaIcv','5873004AMkpQS','4193oqmOkl','object','914646PmuHLO','Connection\x20OK\x20for\x20db\x20link\x20','success','Connection\x20check\x20finished\x20for\x20db\x20link\x20','num','slice','test','read','14584sCyokT','2046330TvzwNH','length','keys','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','1819032CYgpkH','msg','message','\x20(see\x20data.result)','96009HBhxCq'];a85_0x2d9f=function(){return _0x93640c;};return a85_0x2d9f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0x42ca98=a86_0x7f94;(function(_0x198741,_0x3a4171){const _0x4199fa=a86_0x7f94,_0x4cdcff=_0x198741();while(!![]){try{const _0x3e742f=-parseInt(_0x4199fa(0xda))/0x1*(parseInt(_0x4199fa(0xe5))/0x2)+parseInt(_0x4199fa(0xd0))/0x3+parseInt(_0x4199fa(0xe4))/0x4*(-parseInt(_0x4199fa(0xe0))/0x5)+parseInt(_0x4199fa(0xd6))/0x6*(parseInt(_0x4199fa(0xe2))/0x7)+parseInt(_0x4199fa(0xd3))/0x8*(parseInt(_0x4199fa(0xe6))/0x9)+parseInt(_0x4199fa(0xcf))/0xa*(parseInt(_0x4199fa(0xd7))/0xb)+parseInt(_0x4199fa(0xd1))/0xc;if(_0x3e742f===_0x3a4171)break;else _0x4cdcff['push'](_0x4cdcff['shift']());}catch(_0x2d2b5f){_0x4cdcff['push'](_0x4cdcff['shift']());}}}(a86_0x456d,0xc36c1));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';function a86_0x456d(){const _0x14b057=['New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','64VtCcjd','dbname','trim','6rmzOkj','5092813sziqeR','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','New\x20username','12689rpYgac','dbParam','POST','write','dburl','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','3927975hvMRjK','New\x20description','3713381vmZznb','username','4PAHJuw','172lKXEVf','1024038FAmAIj','New\x20database\x20name','validation','string','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','Updated\x20db\x20link\x20','dbDesc','dbdesc','New\x20host:port','New\x20connection\x20parameter\x20string','password','num','dbName','str','/smartapi/dblink/update','dbparam','update','dbUrl','10HncJIo','1455156SgQPqV','3462288CWtvOB'];a86_0x456d=function(){return _0x14b057;};return a86_0x456d();}import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a86_0x7f94(_0x9a759b,_0x51cdbb){_0x9a759b=_0x9a759b-0xc7;const _0x456d4d=a86_0x456d();let _0x7f9490=_0x456d4d[_0x9a759b];return _0x7f9490;}export const dbUpdate={'service':'db','command':a86_0x42ca98(0xcd),'description':a86_0x42ca98(0xd8),'risk':a86_0x42ca98(0xdd),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a86_0x42ca98(0xd4),'type':a86_0x42ca98(0xe9),'description':a86_0x42ca98(0xe7)},{'name':a86_0x42ca98(0xde),'type':a86_0x42ca98(0xe9),'description':a86_0x42ca98(0xee)},{'name':a86_0x42ca98(0xe3),'type':a86_0x42ca98(0xe9),'description':a86_0x42ca98(0xd9)},{'name':a86_0x42ca98(0xc7),'type':a86_0x42ca98(0xe9),'description':a86_0x42ca98(0xd2)},{'name':a86_0x42ca98(0xcc),'type':'string','description':a86_0x42ca98(0xef)},{'name':a86_0x42ca98(0xed),'type':'string','description':a86_0x42ca98(0xe1)}],async 'validate'(_0x5739f5){const _0x3c2b2c=a86_0x42ca98,_0x490555=_0x5739f5[_0x3c2b2c(0xca)](_0x3c2b2c(0xde));if(_0x490555&&!validateDbUrl(_0x490555[_0x3c2b2c(0xd5)]()))throw CliErrors[_0x3c2b2c(0xe8)](_0x3c2b2c(0xdf)+_0x490555+'\x22');},async 'dryRun'(_0x323185){const _0xb9a7fe=a86_0x42ca98,_0x16b7bc=_0x323185[_0xb9a7fe(0xc8)]('id'),_0x22fdf4=await getDbLinkInfo(_0x16b7bc),_0x16ee41={..._0x22fdf4},_0x27ee1b=_0x323185[_0xb9a7fe(0xca)](_0xb9a7fe(0xd4));if(_0x27ee1b)_0x16ee41['dbName']=_0x27ee1b;const _0x43fa32=_0x323185['str'](_0xb9a7fe(0xde));if(_0x43fa32)_0x16ee41[_0xb9a7fe(0xce)]=_0x43fa32[_0xb9a7fe(0xd5)]();const _0x2fd137=_0x323185['str'](_0xb9a7fe(0xe3));if(_0x2fd137)_0x16ee41[_0xb9a7fe(0xe3)]=_0x2fd137;const _0x3cc9d9=_0x323185['str']('password');if(_0x3cc9d9)_0x16ee41[_0xb9a7fe(0xc7)]=_0x3cc9d9;const _0x17e190=_0x323185[_0xb9a7fe(0xca)](_0xb9a7fe(0xcc));if(_0x17e190)_0x16ee41['dbParam']=_0x17e190;const _0x9db3e0=_0x323185[_0xb9a7fe(0xca)](_0xb9a7fe(0xed));if(_0x9db3e0)_0x16ee41[_0xb9a7fe(0xec)]=_0x9db3e0;const _0x126f24=sanitizeDbLinkForOutput(_0x16ee41);return{'method':_0xb9a7fe(0xdc),'url':_0xb9a7fe(0xcb),'body':_0x126f24,'description':_0xb9a7fe(0xea)};},async 'execute'(_0x57e703){const _0x481c22=a86_0x42ca98,_0x25ff92=_0x57e703[_0x481c22(0xc8)]('id'),_0xe3a346=await getDbLinkInfo(_0x25ff92),_0x54a6fd={..._0xe3a346},_0x2e6406=_0x57e703[_0x481c22(0xca)](_0x481c22(0xd4));if(_0x2e6406)_0x54a6fd[_0x481c22(0xc9)]=_0x2e6406;const _0x38e135=_0x57e703[_0x481c22(0xca)]('dburl');if(_0x38e135)_0x54a6fd[_0x481c22(0xce)]=_0x38e135['trim']();const _0x296fe0=_0x57e703[_0x481c22(0xca)](_0x481c22(0xe3));if(_0x296fe0)_0x54a6fd[_0x481c22(0xe3)]=_0x296fe0;const _0x31b953=_0x57e703[_0x481c22(0xca)](_0x481c22(0xc7));if(_0x31b953)_0x54a6fd[_0x481c22(0xc7)]=_0x31b953;const _0x463202=_0x57e703[_0x481c22(0xca)](_0x481c22(0xcc));if(_0x463202)_0x54a6fd[_0x481c22(0xdb)]=_0x463202;const _0x502f53=_0x57e703['str'](_0x481c22(0xed));if(_0x502f53)_0x54a6fd['dbDesc']=_0x502f53;const {id:_0x212294,entity:_0x4b3e40}=normalizeEntityWithIdResponse(await updateDbLink(_0x54a6fd));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x4b3e40),'message':_0x481c22(0xeb)+(_0x212294??_0x25ff92)};}};
|
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_0x41731e=a87_0x4407;(function(_0x36ad76,_0x5cd3d5){const _0x229530=a87_0x4407,_0xa134b2=_0x36ad76();while(!![]){try{const _0x2bfbbd=-parseInt(_0x229530(0x71))/0x1+-parseInt(_0x229530(0xa9))/0x2+-parseInt(_0x229530(0x9d))/0x3+-parseInt(_0x229530(0x92))/0x4*(parseInt(_0x229530(0x75))/0x5)+-parseInt(_0x229530(0xc0))/0x6*(-parseInt(_0x229530(0xa3))/0x7)+-parseInt(_0x229530(0xc4))/0x8*(parseInt(_0x229530(0x7c))/0x9)+parseInt(_0x229530(0xb0))/0xa;if(_0x2bfbbd===_0x5cd3d5)break;else _0xa134b2['push'](_0xa134b2['shift']());}catch(_0x6c8b4){_0xa134b2['push'](_0xa134b2['shift']());}}}(a87_0x4c1a,0x62242));import a87_0x4567ef 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_0x4c1a(){const _0x38bc63=['accessKey','check','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing','✗\x20Invalid\x20JSON','\x20doctor','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','locale','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','message','\x20\x20Merged\x20Config','✓\x20Valid','unknown','arch','log','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','4wNnaiV','platform','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','✗\x20Expired','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','currentApp','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','2151297fzDXaP','appCode','status','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20Auth','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','238JSAqpC','empty','(not\x20set)','✗\x20Not\x20logged\x20in','length','padEnd','138178SMrdKE','\x20\x20API\x20Endpoints','Global','(default)','appcode','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20←\x20current','21525040oHbeRU','format','\x20\x20Apps','red','✓\x20Valid\x20JSON','env','green','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','verbose','riskLevel','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20Config\x20Files','gray','source','bold','42054GCyCxi','(default:\x20','\x20\x20─','value','2776QptkSU','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','674566AGJBwn','keys','repeat','(set,\x20length=','964340nbmqSm','read','(set\x20via\x20file,\x20length=','raw','apiDir','defaultApp','cookie','8694CfOjQy','(not\x20found)','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','slice'];a87_0x4c1a=function(){return _0x38bc63;};return a87_0x4c1a();}function a87_0x4407(_0x3d477b,_0x479230){_0x3d477b=_0x3d477b-0x71;const _0x4c1a04=a87_0x4c1a();let _0x4407b3=_0x4c1a04[_0x3d477b];return _0x4407b3;}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';async function execute(_0x4a4d74){const _0x441453=a87_0x4407,_0x4d6bb3=GIT_COMMIT!==_0x441453(0x8e)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x441453(0x7f)](0x0,0xa)+')':VERSION,_0x35732f=buildConfigFromFlags({}),_0x5962f7=getCookie();console[_0x441453(0x90)](),console[_0x441453(0x90)](a87_0x4567ef[_0x441453(0xbf)](CLI_BIN_NAME+_0x441453(0x87))),console[_0x441453(0x90)](a87_0x4567ef[_0x441453(0xbd)]('─'[_0x441453(0x73)](0x32))),console[_0x441453(0x90)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x4d6bb3),console[_0x441453(0x90)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console[_0x441453(0x90)](_0x441453(0x98)+process[_0x441453(0x93)]+'\x20'+process[_0x441453(0x8f)]),console[_0x441453(0x90)](),console['log'](a87_0x4567ef[_0x441453(0xbf)](_0x441453(0xbc))),console['log'](a87_0x4567ef[_0x441453(0xbd)]('\x20\x20─'[_0x441453(0x73)](0x1e)));const _0x413d6b=getGlobalConfigPath(),_0x151455=getProjectConfigPath();console['log'](_0x441453(0x84)+(_0x413d6b||a87_0x4567ef[_0x441453(0xbd)]('(not\x20found)'))),console[_0x441453(0x90)](_0x441453(0x8a)+(_0x151455||a87_0x4567ef['gray'](_0x441453(0x7d)))),console[_0x441453(0x90)](),console['log'](a87_0x4567ef[_0x441453(0xbf)](_0x441453(0x9c))),console[_0x441453(0x90)](a87_0x4567ef[_0x441453(0xbd)](_0x441453(0xc2)[_0x441453(0x73)](0x1e)));const _0x14d339=(_0x25c2b3,_0x595776)=>{const _0x59e2e4=_0x441453;if(!_0x595776){console[_0x59e2e4(0x90)]('\x20\x20'+_0x25c2b3['padEnd'](0x11)+'\x20'+a87_0x4567ef[_0x59e2e4(0xbd)]('(no\x20file)'));return;}const _0x1d8b5a=inspectCliConfigJsonFile(_0x595776);if(_0x1d8b5a[_0x59e2e4(0x9f)]==='ok')console[_0x59e2e4(0x90)]('\x20\x20'+_0x25c2b3[_0x59e2e4(0xa8)](0x11)+'\x20'+a87_0x4567ef['green'](_0x59e2e4(0xb4)));else{if(_0x1d8b5a[_0x59e2e4(0x9f)]===_0x59e2e4(0xa4))console[_0x59e2e4(0x90)]('\x20\x20'+_0x25c2b3[_0x59e2e4(0xa8)](0x11)+'\x20'+a87_0x4567ef['yellow'](_0x59e2e4(0xbb)));else _0x1d8b5a[_0x59e2e4(0x9f)]===_0x59e2e4(0x85)?console[_0x59e2e4(0x90)]('\x20\x20'+_0x25c2b3['padEnd'](0x11)+'\x20'+a87_0x4567ef['gray']('(missing)')):(console[_0x59e2e4(0x90)]('\x20\x20'+_0x25c2b3[_0x59e2e4(0xa8)](0x11)+'\x20'+a87_0x4567ef[_0x59e2e4(0xb3)](_0x59e2e4(0x86))),console[_0x59e2e4(0x90)]('\x20\x20'+''[_0x59e2e4(0xa8)](0x11)+'\x20'+a87_0x4567ef['red'](_0x1d8b5a[_0x59e2e4(0x8b)])));}};_0x14d339(_0x441453(0xab),_0x413d6b),_0x14d339('Project',_0x151455),console[_0x441453(0x90)](),console[_0x441453(0x90)](a87_0x4567ef['bold'](_0x441453(0x8c))),console['log'](a87_0x4567ef[_0x441453(0xbd)](_0x441453(0xc2)[_0x441453(0x73)](0x1e))),console[_0x441453(0x90)](_0x441453(0x94)+(_0x35732f[_0x441453(0x9e)]||a87_0x4567ef[_0x441453(0xb3)](_0x441453(0xa5)))),console['log']('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x35732f[_0x441453(0xb5)]),console[_0x441453(0x90)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x35732f[_0x441453(0x89)]),console[_0x441453(0x90)](_0x441453(0x91)+_0x35732f[_0x441453(0x79)]),console[_0x441453(0x90)](_0x441453(0xae)+(_0x35732f[_0x441453(0x7a)]||a87_0x4567ef[_0x441453(0xbd)](_0x441453(0x96)))),console[_0x441453(0x90)](_0x441453(0x88)+(_0x35732f['currentApp']||a87_0x4567ef[_0x441453(0xbd)](_0x441453(0x96)))),console[_0x441453(0x90)]('\x20\x20explicitAppName:\x20'+(_0x35732f['explicitAppName']||a87_0x4567ef[_0x441453(0xbd)](_0x441453(0x96)))),console['log'](_0x441453(0x9b)+(_0x35732f[_0x441453(0xb1)]||a87_0x4567ef[_0x441453(0xbd)](_0x441453(0xc1)+DEFAULT_CONFIG_VALUES[_0x441453(0xb1)]+')'))),console[_0x441453(0x90)](_0x441453(0xb8)+(_0x35732f['pageSize']??a87_0x4567ef['gray'](_0x441453(0xac)))),console['log'](_0x441453(0xa2)+_0x35732f[_0x441453(0xba)]),console['log'](_0x441453(0x82)+_0x35732f[_0x441453(0xb9)]),console[_0x441453(0x90)](_0x441453(0x95)+(_0x35732f[_0x441453(0x7b)]?a87_0x4567ef['green'](_0x441453(0x74)+_0x35732f['cookie']['length']+')'):_0x5962f7?a87_0x4567ef[_0x441453(0xb6)](_0x441453(0x77)+_0x5962f7[_0x441453(0xa7)]+')'):a87_0x4567ef[_0x441453(0xbd)]('(none)')));const _0xf599d7=Object[_0x441453(0x72)](_0x35732f['apps']);if(_0xf599d7[_0x441453(0xa7)]>0x0){console['log'](),console[_0x441453(0x90)](a87_0x4567ef[_0x441453(0xbf)](_0x441453(0xb2))),console['log'](a87_0x4567ef[_0x441453(0xbd)](_0x441453(0xc2)[_0x441453(0x73)](0x1e)));for(const _0x48a1fc of _0xf599d7){const _0x5e89e7=_0x35732f['apps'][_0x48a1fc],_0x19461c=_0x48a1fc===_0x35732f['defaultApp'],_0x274aef=_0x48a1fc===_0x35732f[_0x441453(0x9a)],_0x54a60e=_0x274aef?a87_0x4567ef[_0x441453(0xb6)](_0x441453(0xaf)):'',_0x81f73c=_0x19461c?'\x20(default)':'';console[_0x441453(0x90)]('\x20\x20'+_0x48a1fc+_0x81f73c+_0x54a60e),console[_0x441453(0x90)](_0x441453(0xc5)+_0x5e89e7[_0x441453(0xad)]);const _0x22ddad=buildAppDoctorFields(_0x5e89e7,{'env':_0x35732f[_0x441453(0xb5)],'apiDir':_0x35732f[_0x441453(0x78)]['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x35732f[_0x441453(0x7b)]||_0x5962f7||undefined,'accessKey':_0x35732f[_0x441453(0x80)]});console[_0x441453(0x90)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x22ddad[_0x441453(0xb5)]['value']+'\x20\x20'+a87_0x4567ef[_0x441453(0xbd)]('('+_0x22ddad[_0x441453(0xb5)][_0x441453(0xbe)]+')')),console[_0x441453(0x90)](_0x441453(0xa0)+_0x22ddad[_0x441453(0x79)][_0x441453(0xc3)]+'\x20\x20'+a87_0x4567ef[_0x441453(0xbd)]('('+_0x22ddad[_0x441453(0x79)][_0x441453(0xbe)]+')'));const _0x35e0b1=_0x22ddad[_0x441453(0x7b)][_0x441453(0xc3)]?a87_0x4567ef[_0x441453(0xb6)](_0x441453(0x74)+_0x22ddad[_0x441453(0x7b)][_0x441453(0xc3)][_0x441453(0xa7)]+')'):a87_0x4567ef[_0x441453(0xbd)](_0x441453(0x96));console[_0x441453(0x90)](_0x441453(0x99)+_0x35e0b1+'\x20\x20'+a87_0x4567ef[_0x441453(0xbd)]('('+_0x22ddad[_0x441453(0x7b)][_0x441453(0xbe)]+')'));const _0x19a25d=_0x22ddad[_0x441453(0x80)][_0x441453(0xc3)]?a87_0x4567ef[_0x441453(0xb6)](_0x441453(0x74)+_0x22ddad[_0x441453(0x80)]['value']['length']+')'):a87_0x4567ef[_0x441453(0xbd)](_0x441453(0x96));console[_0x441453(0x90)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x19a25d+'\x20\x20'+a87_0x4567ef[_0x441453(0xbd)]('('+_0x22ddad[_0x441453(0x80)][_0x441453(0xbe)]+')'));}}console['log'](),console[_0x441453(0x90)](a87_0x4567ef[_0x441453(0xbf)](_0x441453(0xaa))),console[_0x441453(0x90)](a87_0x4567ef[_0x441453(0xbd)](_0x441453(0xc2)['repeat'](0x1e))),console['log'](_0x441453(0xb7)+getApiDomain()),console[_0x441453(0x90)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x441453(0x90)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x441453(0x90)](),console[_0x441453(0x90)](a87_0x4567ef[_0x441453(0xbf)](_0x441453(0xa1))),console[_0x441453(0x90)](a87_0x4567ef[_0x441453(0xbd)](_0x441453(0xc2)[_0x441453(0x73)](0x1e)));if(_0x5962f7){const _0x4e9f1c=await getIsSessionValid();console[_0x441453(0x90)](_0x441453(0x7e)+(_0x4e9f1c?a87_0x4567ef['green'](_0x441453(0x8d)):a87_0x4567ef[_0x441453(0xb3)](_0x441453(0x97))));}else console[_0x441453(0x90)](_0x441453(0x7e)+a87_0x4567ef[_0x441453(0xb3)](_0x441453(0xa6)));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a87_0x41731e(0x83),'command':a87_0x41731e(0x81),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a87_0x41731e(0x76),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x1089f8=a88_0x1d2d;(function(_0x230516,_0x59add0){const _0x110072=a88_0x1d2d,_0x15b3ee=_0x230516();while(!![]){try{const _0x60499=parseInt(_0x110072(0xa6))/0x1+-parseInt(_0x110072(0xa8))/0x2+-parseInt(_0x110072(0x9d))/0x3*(-parseInt(_0x110072(0x97))/0x4)+parseInt(_0x110072(0xab))/0x5+-parseInt(_0x110072(0xa0))/0x6+-parseInt(_0x110072(0xae))/0x7+parseInt(_0x110072(0x8c))/0x8*(parseInt(_0x110072(0x8f))/0x9);if(_0x60499===_0x59add0)break;else _0x15b3ee['push'](_0x15b3ee['shift']());}catch(_0xcbdf93){_0x15b3ee['push'](_0x15b3ee['shift']());}}}(a88_0x491f,0xcca7f));function a88_0x491f(){const _0x3eee32=['Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','join','toLocaleString','run','log','env','4059052LyZqpm','bool','validation','Usage:\x20','Write\x20to\x20global\x20config\x20instead\x20of\x20project','\x20\x20Env:\x20','3dgxZaC','App\x20code\x20to\x20initialize\x20with','Target\x20environment','7458084nbNkpn','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','defaultApp','appCode','appcode','\x20\x20Apps:\x20','862741vTDnYU','nonInteractive','2902918etAubK','\x20\x20Default:\x20','string','8132605OpHnuH','\x0a✓\x20Successfully\x20initialized\x20','some','2349536JwVMQO','map','str','global','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','\x20config','custom','project','boolean','message','yes','cwd','../../commands/project/init.js','328UdekVu','write','\x20\x20Config:\x20','79983hBBqWt'];a88_0x491f=function(){return _0x3eee32;};return a88_0x491f();}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';function a88_0x1d2d(_0x4ecb8a,_0x2da811){_0x4ecb8a=_0x4ecb8a-0x89;const _0x491f36=a88_0x491f();let _0x1d2d76=_0x491f36[_0x4ecb8a];return _0x1d2d76;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';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(_0x257e18){return{'appCode':_0x257e18,'appName':_0x257e18};}function writeInitConfig(_0x470ec9,_0x3ae992,_0x2493da){const _0xba9c19=a88_0x1d2d,_0x408ceb=resolveWriteConfigPath(_0x470ec9),_0x40f9a9=buildCanonicalProjectConfig({},{'appCodes':_0x3ae992[_0xba9c19(0xaf)](_0x49fdd3=>_0x49fdd3[_0xba9c19(0xa3)]),'env':_0x2493da,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0xba9c19(0x93)]()}});writeConfigFile(_0x408ceb,_0x40f9a9);const _0x1d1255=_0x470ec9===_0xba9c19(0xb1)?_0xba9c19(0xb1):_0xba9c19(0xb5);console[_0xba9c19(0x95)](_0xba9c19(0xac)+_0x1d1255+_0xba9c19(0xb3)),console['log'](_0xba9c19(0xa5)+_0x3ae992[_0xba9c19(0xaf)](_0x4d16a1=>_0x4d16a1[_0xba9c19(0xa3)])[_0xba9c19(0x92)](',\x20')),console[_0xba9c19(0x95)](_0xba9c19(0xa9)+_0x40f9a9[_0xba9c19(0xa2)]),console['log'](_0xba9c19(0x9c)+_0x40f9a9[_0xba9c19(0x96)]),console['log'](_0xba9c19(0x8e)+_0x408ceb);}async function runSmartInit(_0x150429){const _0x24b6e9=a88_0x1d2d,_0x38a82d=process[_0x24b6e9(0x8a)](),_0x236164=_0x150429[_0x24b6e9(0x98)](_0x24b6e9(0xb1))?_0x24b6e9(0xb1):_0x24b6e9(0xb5),_0x3dae4c=_0x150429[_0x24b6e9(0xb0)](_0x24b6e9(0x96))||'production',_0x28e164=_0x150429['str']('appcode')||undefined,_0x1ea008=_0x150429[_0x24b6e9(0x98)](_0x24b6e9(0xb5));if(_0x1ea008){const {initConfig:_0x10456a}=await import(_0x24b6e9(0x8b));return _0x10456a({'appcode':_0x28e164,'env':_0x3dae4c,'autoYes':_0x150429['bool'](_0x24b6e9(0x89))});}if(_0x236164===_0x24b6e9(0xb5)){const _0x4376a9=existsSync(resolve(_0x38a82d,NEW_CONFIG_NAME)),_0x52a026=LEGACY_CONFIG_NAMES[_0x24b6e9(0xad)](_0x435b50=>existsSync(resolve(_0x38a82d,_0x435b50)));if(_0x52a026&&!_0x4376a9)return console['log']('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x150429['nonInteractive'],{'yes':_0x150429[_0x24b6e9(0x98)](_0x24b6e9(0x89))});if(_0x4376a9)throw CliErrors['validation'](_0x24b6e9(0xa1),'Use\x20`'+CLI_BIN_NAME+_0x24b6e9(0xb2));}if(_0x28e164){const _0x3d3d11=validateAppcode(_0x28e164);if(!_0x3d3d11['valid'])throw CliErrors[_0x24b6e9(0x99)](_0x3d3d11[_0x24b6e9(0xb7)]);writeInitConfig(_0x236164,[syntheticApp(_0x28e164)],_0x3dae4c);return;}if(_0x150429[_0x24b6e9(0xa7)])throw CliErrors['flagMissing'](_0x24b6e9(0xa4),_0x24b6e9(0x9a)+CLI_BIN_NAME+_0x24b6e9(0x91));const _0x6ff02d=getCookie(),_0x23d4f0=await selectMultipleApps(_0x6ff02d),_0x5b4ff9=_0x23d4f0===_0x24b6e9(0xb4)?[syntheticApp(await promptCustomAppcode())]:_0x23d4f0;writeInitConfig(_0x236164,_0x5b4ff9,_0x3dae4c);}const initFlags=[{'name':a88_0x1089f8(0xb1),'type':a88_0x1089f8(0xb6),'description':a88_0x1089f8(0x9b),'default':![]},{'name':a88_0x1089f8(0x96),'type':'string','description':a88_0x1089f8(0x9f),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':a88_0x1089f8(0xa4),'type':a88_0x1089f8(0xaa),'description':a88_0x1089f8(0x9e)},{'name':'project','type':a88_0x1089f8(0xb6),'description':a88_0x1089f8(0x90),'default':![]},{'name':a88_0x1089f8(0x89),'type':a88_0x1089f8(0xb6),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':'init','command':a88_0x1089f8(0x94),'description':'Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','risk':a88_0x1089f8(0x8d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x33218c){return await runSmartInit(_0x33218c),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x222e09,_0x384ece){const _0x46d380=a89_0xa4c6,_0x48cef9=_0x222e09();while(!![]){try{const _0x911e8c=-parseInt(_0x46d380(0xfe))/0x1*(-parseInt(_0x46d380(0xfa))/0x2)+-parseInt(_0x46d380(0xfb))/0x3+parseInt(_0x46d380(0xf7))/0x4+-parseInt(_0x46d380(0xf4))/0x5*(-parseInt(_0x46d380(0xf5))/0x6)+parseInt(_0x46d380(0xf6))/0x7*(parseInt(_0x46d380(0xf9))/0x8)+-parseInt(_0x46d380(0xf8))/0x9*(-parseInt(_0x46d380(0xf3))/0xa)+-parseInt(_0x46d380(0xfd))/0xb*(parseInt(_0x46d380(0xfc))/0xc);if(_0x911e8c===_0x384ece)break;else _0x48cef9['push'](_0x48cef9['shift']());}catch(_0x5c3345){_0x48cef9['push'](_0x48cef9['shift']());}}}(a89_0x1f3d,0xa4087));import{issueReport}from'../../commands/issue/report.js';function a89_0xa4c6(_0x320e1e,_0x9affae){_0x320e1e=_0x320e1e-0xf3;const _0x1f3dc4=a89_0x1f3d();let _0xa4c6bf=_0x1f3dc4[_0x320e1e];return _0xa4c6bf;}export const issueDefinitions=[issueReport];function a89_0x1f3d(){const _0x554818=['1799328hFwQxj','24TrGNIs','4036307lxfpqC','45217pZVaSB','2165860fLShPG','80klPQQH','351984jZCode','383089uVGQvC','1259568zjPeKO','9AbyOso','32BSrfAV','14cDuLyD'];a89_0x1f3d=function(){return _0x554818;};return a89_0x1f3d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a90_0x42a7fc=a90_0x2cf4;(function(_0xefa824,_0x47e938){const _0x5128a8=a90_0x2cf4,_0x53c9d=_0xefa824();while(!![]){try{const _0x2336b2=-parseInt(_0x5128a8(0x82))/0x1*(-parseInt(_0x5128a8(0x7c))/0x2)+-parseInt(_0x5128a8(0x72))/0x3+parseInt(_0x5128a8(0x7e))/0x4+-parseInt(_0x5128a8(0x86))/0x5*(parseInt(_0x5128a8(0x68))/0x6)+parseInt(_0x5128a8(0x81))/0x7+parseInt(_0x5128a8(0x6a))/0x8*(-parseInt(_0x5128a8(0x80))/0x9)+-parseInt(_0x5128a8(0x70))/0xa*(-parseInt(_0x5128a8(0x73))/0xb);if(_0x2336b2===_0x47e938)break;else _0x53c9d['push'](_0x53c9d['shift']());}catch(_0x46c4b7){_0x53c9d['push'](_0x53c9d['shift']());}}}(a90_0x2aff,0x6d6c3));function a90_0x2aff(){const _0x17bb3a=['8IQRwBK','auth_required','issue','not_in_project','replace','cancelled','2752010tUlLdM','validation_error','1937250UlxYNe','11XkubQS','Hit\x20a\x20','command','RABETBASE_DISABLE_ISSUE_NUDGE','report','\x20bug?\x20Help\x20us\x20fix\x20it:','network_error','length','has','2aZjKbP','\x20issue\x20report\x20\x5c','3071912pUSqmm','service','3548799hYevFE','4068379UbPCwN','4353pBqKRq','join','flag_missing','message','5cQTYCI','\x20\x20Set\x20','write','842838CByVRl','slice'];a90_0x2aff=function(){return _0x17bb3a;};return a90_0x2aff();}import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a90_0x2cf4(_0x115a37,_0x4f2d44){_0x115a37=_0x115a37-0x66;const _0x2affd4=a90_0x2aff();let _0x2cf429=_0x2affd4[_0x115a37];return _0x2cf429;}export const NUDGE_OPT_OUT_ENV=a90_0x42a7fc(0x76);const NUDGE_SUPPRESSED_CODES=new Set([a90_0x42a7fc(0x6f),a90_0x42a7fc(0x6b),'config_missing',a90_0x42a7fc(0x6d),'unknown_command',a90_0x42a7fc(0x84),a90_0x42a7fc(0x71),a90_0x42a7fc(0x79)]),defaultWriter=_0x19aa50=>{const _0x445cc1=a90_0x42a7fc;process['stderr'][_0x445cc1(0x67)](_0x19aa50);};export function shouldNudgeForError(_0xffec20,_0x34e9b9){const _0x4ce89d=a90_0x42a7fc;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x34e9b9[_0x4ce89d(0x7f)]===_0x4ce89d(0x6c)&&_0x34e9b9['command']===_0x4ce89d(0x77))return![];if(_0xffec20 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x4ce89d(0x7b)](_0xffec20['code']);return!![];}export function printIssueReportNudgeForError(_0x514129,_0x372803,_0x92f2a4=defaultWriter){if(!shouldNudgeForError(_0x514129,_0x372803))return;const _0x417345=buildSuggestedTitle(_0x514129,_0x372803);_0x92f2a4(formatNudge(_0x417345));}function buildSuggestedTitle(_0x487567,_0xea8aba){const _0x207102=a90_0x42a7fc,_0x416654=_0x487567 instanceof Error?_0x487567[_0x207102(0x85)]:String(_0x487567),_0x615e6b=_0x416654[_0x207102(0x6e)](/[\r\n]+/g,'\x20')[_0x207102(0x6e)](/\s+/g,'\x20')['trim']()[_0x207102(0x69)](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x16eafa=CLI_BIN_NAME+'\x20'+_0xea8aba[_0x207102(0x7f)]+'\x20'+_0xea8aba[_0x207102(0x75)];return _0x615e6b[_0x207102(0x7a)]>0x0?_0x16eafa+':\x20'+_0x615e6b:_0x16eafa;}function formatNudge(_0x26849e){const _0x3c0f5b=a90_0x42a7fc;return['',_0x3c0f5b(0x74)+CLI_BIN_NAME+_0x3c0f5b(0x78),'\x20\x20'+CLI_BIN_NAME+_0x3c0f5b(0x7d),'\x20\x20\x20\x20--title\x20\x22'+_0x26849e+'\x22\x20\x5c','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)',_0x3c0f5b(0x66)+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.',''][_0x3c0f5b(0x83)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a91_0x318f9d=a91_0x1efc;(function(_0x417b56,_0x1cd7ff){const _0x5839dc=a91_0x1efc,_0x4147d5=_0x417b56();while(!![]){try{const _0x2a666f=-parseInt(_0x5839dc(0x179))/0x1+-parseInt(_0x5839dc(0x1a4))/0x2*(-parseInt(_0x5839dc(0x197))/0x3)+parseInt(_0x5839dc(0x176))/0x4+parseInt(_0x5839dc(0x187))/0x5+parseInt(_0x5839dc(0x17a))/0x6+-parseInt(_0x5839dc(0x1a8))/0x7*(parseInt(_0x5839dc(0x17e))/0x8)+-parseInt(_0x5839dc(0x177))/0x9;if(_0x2a666f===_0x1cd7ff)break;else _0x4147d5['push'](_0x4147d5['shift']());}catch(_0x7050f4){_0x4147d5['push'](_0x4147d5['shift']());}}}(a91_0x33c9,0x29f86));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';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='description-file';export const issueReport={'service':a91_0x318f9d(0x19b),'command':a91_0x318f9d(0x1ac),'description':a91_0x318f9d(0x192),'risk':a91_0x318f9d(0x17b),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a91_0x318f9d(0x194),'flags':[{'name':a91_0x318f9d(0x18e),'type':a91_0x318f9d(0x18f),'required':!![],'description':'One-line\x20issue\x20summary'},{'name':a91_0x318f9d(0x18b),'type':a91_0x318f9d(0x18f),'description':a91_0x318f9d(0x185)},{'name':DESCRIPTION_FILE_FLAG,'type':'string','description':a91_0x318f9d(0x1a6)}],async 'validate'(_0x39007d){const _0x2cbbfd=a91_0x318f9d,_0x54a125=_0x39007d[_0x2cbbfd(0x189)](_0x2cbbfd(0x18e))['trim'](),_0x502467=_0x39007d[_0x2cbbfd(0x189)]('description')['trim'](),_0x2f0d39=_0x39007d[_0x2cbbfd(0x189)](DESCRIPTION_FILE_FLAG)[_0x2cbbfd(0x1ad)]();if(!_0x54a125)throw CliErrors[_0x2cbbfd(0x182)](_0x2cbbfd(0x18e),'Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x4f8c29=_0x502467[_0x2cbbfd(0x1a7)]>0x0,_0x521604=_0x2f0d39[_0x2cbbfd(0x1a7)]>0x0;if(_0x4f8c29===_0x521604)throw CliErrors[_0x2cbbfd(0x193)](_0x2cbbfd(0x18a),_0x2cbbfd(0x17f));if(_0x521604){const _0x3b27f8=resolve(process[_0x2cbbfd(0x175)](),_0x2f0d39);if(!existsSync(_0x3b27f8))throw CliErrors[_0x2cbbfd(0x193)](_0x2cbbfd(0x19c)+_0x3b27f8);}},async 'dryRun'(_0x35a063){const _0xe5fff9=a91_0x318f9d,_0x1d0b0e=await prepareIssueReport(_0x35a063);return{'method':_0xe5fff9(0x183),'url':_0xe5fff9(0x190)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1d0b0e[_0xe5fff9(0x18e)],'issue.description':_0x1d0b0e[_0xe5fff9(0x18b)],'issue.description_original_bytes':_0x1d0b0e[_0xe5fff9(0x1a0)][_0xe5fff9(0x19e)],'issue.description_truncated':_0x1d0b0e[_0xe5fff9(0x1a0)][_0xe5fff9(0x19f)],'issue.description_redactions':_0x1d0b0e[_0xe5fff9(0x1a0)]['redactionCount'],'issue.description_redaction_kinds':_0x1d0b0e[_0xe5fff9(0x1a0)][_0xe5fff9(0x18d)][_0xe5fff9(0x17c)](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter',_0xe5fff9(0x1a1)+_0x1d0b0e[_0xe5fff9(0x1aa)],_0x1d0b0e[_0xe5fff9(0x17d)]?'descriptionFile:\x20'+_0x1d0b0e[_0xe5fff9(0x17d)]:null,_0x1d0b0e[_0xe5fff9(0x1a0)][_0xe5fff9(0x19f)]?_0xe5fff9(0x19a)+_0x1d0b0e[_0xe5fff9(0x1a0)][_0xe5fff9(0x19e)]+'\x20bytes':null,_0x1d0b0e[_0xe5fff9(0x1a0)]['redactionCount']>0x0?_0xe5fff9(0x1a5)+_0x1d0b0e[_0xe5fff9(0x1a0)][_0xe5fff9(0x195)]+'\x20('+_0x1d0b0e[_0xe5fff9(0x1a0)]['redactionKinds']['join'](',\x20')+')':null][_0xe5fff9(0x191)](Boolean)[_0xe5fff9(0x17c)]('\x0a')};},async 'execute'(_0x5265b2){const _0x2f9399=a91_0x318f9d,_0x109056=await prepareIssueReport(_0x5265b2);try{await sendPlatformIssueCollectLog({'title':_0x109056[_0x2f9399(0x18e)],'description':_0x109056['description'],'sanitize':{'originalBytes':_0x109056['sanitize'][_0x2f9399(0x19e)],'truncated':_0x109056[_0x2f9399(0x1a0)][_0x2f9399(0x19f)],'redactionCount':_0x109056[_0x2f9399(0x1a0)]['redactionCount'],'redactionKinds':_0x109056[_0x2f9399(0x1a0)][_0x2f9399(0x18d)]}});}catch(_0x4d0fb5){throw CliErrors[_0x2f9399(0x1a3)]('Failed\x20to\x20report\x20platform\x20issue:\x20'+(_0x4d0fb5 instanceof Error?_0x4d0fb5[_0x2f9399(0x186)]:String(_0x4d0fb5)),_0x2f9399(0x184));}return{'ok':!![],'message':buildResultMessage(_0x109056['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x2f9399(0x198),'issue.description','issue.description_original_bytes',_0x2f9399(0x1ab),_0x2f9399(0x199),_0x2f9399(0x1a2)],'issue':{'title':_0x109056['title'],'descriptionLength':_0x109056['description']['length'],'descriptionSource':_0x109056[_0x2f9399(0x1aa)],..._0x109056[_0x2f9399(0x17d)]?{'descriptionFile':_0x109056[_0x2f9399(0x17d)]}:{},'sanitize':{'originalBytes':_0x109056[_0x2f9399(0x1a0)]['originalBytes'],'truncated':_0x109056['sanitize'][_0x2f9399(0x19f)],'redactions':_0x109056[_0x2f9399(0x1a0)][_0x2f9399(0x195)],'redactionKinds':_0x109056['sanitize'][_0x2f9399(0x18d)]}}}};}};function a91_0x1efc(_0x997635,_0x51d404){_0x997635=_0x997635-0x175;const _0x33c9d8=a91_0x33c9();let _0x1efc8d=_0x33c9d8[_0x997635];return _0x1efc8d;}function buildResultMessage(_0x2dd28f){const _0x2339e7=a91_0x318f9d,_0x1fa042=[];return _0x2dd28f[_0x2339e7(0x19f)]&&_0x1fa042[_0x2339e7(0x1ae)]('truncated\x20from\x20'+_0x2dd28f[_0x2339e7(0x19e)]+_0x2339e7(0x178)),_0x2dd28f[_0x2339e7(0x195)]>0x0&&_0x1fa042[_0x2339e7(0x1ae)]('redacted\x20'+_0x2dd28f['redactionCount']+_0x2339e7(0x180)+_0x2dd28f[_0x2339e7(0x18d)][_0x2339e7(0x17c)](',\x20')),_0x1fa042[_0x2339e7(0x1a7)]===0x0?_0x2339e7(0x18c):_0x2339e7(0x188)+_0x1fa042[_0x2339e7(0x17c)](';\x20')+')';}function a91_0x33c9(){const _0xfb4343=['issue','File\x20not\x20found:\x20','file','originalBytes','truncated','sanitize','descriptionSource:\x20','issue.description_redaction_kinds','apiError','30eYIPXt','redactions:\x20','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','length','20209lpfbCu','Issue\x20description\x20cannot\x20be\x20empty.','descriptionSource','issue.description_truncated','report','trim','push','cwd','728128rZkTEa','5421492gYnHLC','\x20bytes','2964GsJyhq','1686864bXAOrW','write','join','descriptionFilePath','152MIentN','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','\x20secret(s):\x20','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','flagMissing','POST','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','message','571795xGqqLB','Platform\x20issue\x20reported\x20(','str','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','description','Platform\x20issue\x20reported','redactionKinds','title','string','otel://','filter','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','validation','compress','redactionCount','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','50916GvsRrq','issue.title','issue.description_redactions','truncated:\x20original\x20'];a91_0x33c9=function(){return _0xfb4343;};return a91_0x33c9();}async function prepareIssueReport(_0x3a79d7){const _0x5284c6=a91_0x318f9d,_0x5779a6=_0x3a79d7[_0x5284c6(0x189)]('title')[_0x5284c6(0x1ad)](),_0x2ab0f9=_0x3a79d7[_0x5284c6(0x189)]('description'),_0x4ad2ec=_0x3a79d7[_0x5284c6(0x189)](DESCRIPTION_FILE_FLAG)[_0x5284c6(0x1ad)]();if(!_0x4ad2ec){const _0x164e07=_0x2ab0f9;if(!_0x164e07[_0x5284c6(0x1ad)]())throw CliErrors['validation'](_0x5284c6(0x1a9),_0x5284c6(0x196));const _0x1b4b64=sanitizeIssueDescription(_0x164e07);return{'title':_0x5779a6,'description':_0x1b4b64[_0x5284c6(0x18b)],'descriptionSource':'inline','sanitize':_0x1b4b64};}const _0x4302e0=resolve(process[_0x5284c6(0x175)](),_0x4ad2ec),_0x2c5d22=await readFile(_0x4302e0,'utf8');if(!_0x2c5d22[_0x5284c6(0x1ad)]())throw CliErrors[_0x5284c6(0x193)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x4302e0,_0x5284c6(0x181));const _0x4b72fc=sanitizeIssueDescription(_0x2c5d22);return{'title':_0x5779a6,'description':_0x4b72fc[_0x5284c6(0x18b)],'descriptionSource':_0x5284c6(0x19d),'descriptionFilePath':_0x4302e0,'sanitize':_0x4b72fc};}
|