@lovrabet/rabetbase-cli 2.1.12-beta.0 → 2.1.12-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/discover.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/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-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/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/link-create.js +1 -1
- package/lib/commands/dataset/link-delete.js +1 -1
- package/lib/commands/dataset/link-shared.js +1 -1
- package/lib/commands/dataset/link-update.js +1 -1
- package/lib/commands/dataset/links.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -0
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -0
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.js +1 -1
- package/lib/commands/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/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/skill/index.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/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.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/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 +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a65_0xa325(){const _0x1fc400=['appCode','dbname','password','17139550npElPN','577870IVOTFl','Host\x20and\x20port:\x20host:port','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','112904IKkhyt','1MFtkhQ','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','77iHpZpk','message','username','18294emwJqB','trim','dbversion','str','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','bool','Database\x20username','write','421728gLlDdd','Extra\x20JDBC-style\x20connection\x20parameters\x20string','5553702UQKdmU','dbdesc','autostart','After\x20create,\x20start\x20schema\x20analysis','dbparam','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','string','Created\x20db\x20link\x20','1005NjjNYX','create','8.0','No\x20follow-up\x20analysis','Database\x20password','\x20and\x20started\x20analysis','546264sLbGed','[redacted]','join','dbtype','/smartapi/dblink/create'];a65_0xa325=function(){return _0x1fc400;};return a65_0xa325();}const a65_0x20e92f=a65_0xb4ab;(function(_0xee6c6b,_0x28cd5c){const _0x5257aa=a65_0xb4ab,_0x368bee=_0xee6c6b();while(!![]){try{const _0x3cbeec=parseInt(_0x5257aa(0xf0))/0x1*(-parseInt(_0x5257aa(0xec))/0x2)+parseInt(_0x5257aa(0xd3))/0x3+parseInt(_0x5257aa(0xe3))/0x4+parseInt(_0x5257aa(0xdd))/0x5*(-parseInt(_0x5257aa(0xcb))/0x6)+parseInt(_0x5257aa(0xf2))/0x7*(-parseInt(_0x5257aa(0xef))/0x8)+-parseInt(_0x5257aa(0xd5))/0x9+parseInt(_0x5257aa(0xeb))/0xa;if(_0x3cbeec===_0x28cd5c)break;else _0x368bee['push'](_0x368bee['shift']());}catch(_0x2fd282){_0x368bee['push'](_0x368bee['shift']());}}}(a65_0xa325,0x4d640));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a65_0xb4ab(_0x2dbafa,_0x6f3e80){_0x2dbafa=_0x2dbafa-0xca;const _0xa32547=a65_0xa325();let _0xb4abe0=_0xa32547[_0x2dbafa];return _0xb4abe0;}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':a65_0x20e92f(0xde),'description':'Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','risk':a65_0x20e92f(0xd2),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a65_0x20e92f(0xdb),'required':!![],'description':a65_0x20e92f(0xf1)},DB_TYPE_FLAG,{'name':a65_0x20e92f(0xcd),'type':a65_0x20e92f(0xdb),'description':a65_0x20e92f(0xcf),'default':'8.0'},{'name':'dburl','type':a65_0x20e92f(0xdb),'required':!![],'description':a65_0x20e92f(0xed)},{'name':'username','type':a65_0x20e92f(0xdb),'required':!![],'description':a65_0x20e92f(0xd1)},{'name':a65_0x20e92f(0xea),'type':a65_0x20e92f(0xdb),'required':!![],'description':a65_0x20e92f(0xe1)},{'name':a65_0x20e92f(0xd9),'type':a65_0x20e92f(0xdb),'description':a65_0x20e92f(0xd4)},{'name':a65_0x20e92f(0xd6),'type':'string','description':'Human-readable\x20description'},{'name':a65_0x20e92f(0xd7),'type':'boolean','description':a65_0x20e92f(0xd8),'default':![]}],async 'validate'(_0x363107){const _0x29f100=a65_0x20e92f,_0x2f108f=_0x363107[_0x29f100(0xce)]('dburl')[_0x29f100(0xcc)]();if(!validateDbUrl(_0x2f108f))throw CliErrors['validation']('Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22'+_0x2f108f+'\x22',_0x29f100(0xda));},async 'dryRun'(_0x421613){const _0x1bb205=a65_0x20e92f,_0xf3b764={'appCode':_0x421613['appCode'],'dbName':_0x421613[_0x1bb205(0xce)](_0x1bb205(0xe9)),'dbType':_0x421613[_0x1bb205(0xce)](_0x1bb205(0xe6)),'dbVersion':_0x421613[_0x1bb205(0xce)](_0x1bb205(0xcd))||_0x1bb205(0xdf),'dbUrl':_0x421613[_0x1bb205(0xce)]('dburl')['trim'](),'username':_0x421613['str'](_0x1bb205(0xca)),'password':_0x1bb205(0xe4),..._0x421613[_0x1bb205(0xce)](_0x1bb205(0xd9))?{'dbParam':_0x421613[_0x1bb205(0xce)]('dbparam')}:{},..._0x421613[_0x1bb205(0xce)]('dbdesc')?{'dbDesc':_0x421613[_0x1bb205(0xce)](_0x1bb205(0xd6))}:{}};return{'method':'POST','url':_0x1bb205(0xe7),'body':_0xf3b764,'description':['Create\x20dblink',_0x421613[_0x1bb205(0xd0)](_0x1bb205(0xd7))?'Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id':_0x1bb205(0xe0)][_0x1bb205(0xe5)]('\x0a')};},async 'execute'(_0x84a3f){const _0x4f653f=a65_0x20e92f,_0x4b193d={'appCode':_0x84a3f[_0x4f653f(0xe8)],'dbName':_0x84a3f[_0x4f653f(0xce)](_0x4f653f(0xe9)),'dbType':_0x84a3f[_0x4f653f(0xce)]('dbtype'),'dbVersion':_0x84a3f[_0x4f653f(0xce)]('dbversion')||_0x4f653f(0xdf),'dbUrl':_0x84a3f[_0x4f653f(0xce)]('dburl')[_0x4f653f(0xcc)](),'username':_0x84a3f[_0x4f653f(0xce)](_0x4f653f(0xca)),'password':_0x84a3f[_0x4f653f(0xce)](_0x4f653f(0xea)),..._0x84a3f[_0x4f653f(0xce)](_0x4f653f(0xd9))?{'dbParam':_0x84a3f[_0x4f653f(0xce)](_0x4f653f(0xd9))}:{},..._0x84a3f['str'](_0x4f653f(0xd6))?{'dbDesc':_0x84a3f['str'](_0x4f653f(0xd6))}:{}},{id:_0x540246,entity:_0x52ce36}=normalizeEntityWithIdResponse(await createDbLink(_0x4b193d));if(!_0x540246)return{'ok':![],'message':_0x4f653f(0xee),'data':sanitizeDbLinkForOutput(_0x52ce36)};let _0x54b64a,_0x59dcff;if(_0x84a3f[_0x4f653f(0xd0)](_0x4f653f(0xd7)))try{_0x54b64a=await startDbAnalysis(_0x540246);}catch(_0x6025d1){_0x59dcff=_0x6025d1 instanceof Error?_0x6025d1[_0x4f653f(0xf3)]:String(_0x6025d1);}const _0x258ce7=buildDbPageLinks(_0x84a3f['appCode'],_0x540246),_0x16ec40={'connection':sanitizeDbLinkForOutput(_0x52ce36),..._0x258ce7?{'links':{'databasePage':_0x258ce7['databasePage']}}:{},..._0x54b64a?{'analysisPlanId':_0x54b64a}:{},..._0x59dcff?{'analysisStartWarning':_0x59dcff}:{}};let _0x49f793;return _0x84a3f['bool'](_0x4f653f(0xd7))?_0x59dcff?_0x49f793=_0x4f653f(0xdc)+_0x540246+';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning':_0x49f793=_0x4f653f(0xdc)+_0x540246+_0x4f653f(0xe2):_0x49f793=_0x4f653f(0xdc)+_0x540246,{'ok':!![],'data':_0x16ec40,'message':_0x49f793};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a66_0x32cd(_0x365ac7,_0x5ec63c){_0x365ac7=_0x365ac7-0x11d;const _0x73838c=a66_0x7383();let _0x32cdb6=_0x73838c[_0x365ac7];return _0x32cdb6;}const a66_0x65ecc2=a66_0x32cd;(function(_0xd66251,_0x4bec22){const _0x418223=a66_0x32cd,_0x2f0250=_0xd66251();while(!![]){try{const _0x5f146d=-parseInt(_0x418223(0x11f))/0x1*(-parseInt(_0x418223(0x126))/0x2)+-parseInt(_0x418223(0x120))/0x3+parseInt(_0x418223(0x11d))/0x4+-parseInt(_0x418223(0x129))/0x5+parseInt(_0x418223(0x124))/0x6+parseInt(_0x418223(0x11e))/0x7*(parseInt(_0x418223(0x128))/0x8)+-parseInt(_0x418223(0x123))/0x9;if(_0x5f146d===_0x4bec22)break;else _0x2f0250['push'](_0x2f0250['shift']());}catch(_0x88ead6){_0x2f0250['push'](_0x2f0250['shift']());}}}(a66_0x7383,0xc2cc0));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':a66_0x65ecc2(0x127),'description':a66_0x65ecc2(0x125),'risk':'high-risk-write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3bb04a){const _0x9b949f=a66_0x65ecc2,_0x448740=_0x3bb04a[_0x9b949f(0x122)]('id');return await deleteDbLink(_0x448740),{'ok':!![],'data':{'id':_0x448740,'deleted':!![]},'message':_0x9b949f(0x121)+_0x448740};}};function a66_0x7383(){const _0x518753=['Deleted\x20db\x20link\x20','num','20086803GqvQDy','506118BfTNwM','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','16914oGRGtU','delete','5936552gIJIyh','2205600IHmvQW','5298984wrauqM','7iwLBIf','166iwwtAy','252465SuZCwr'];a66_0x7383=function(){return _0x518753;};return a66_0x7383();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a67_0x3c195d=a67_0x1ffe;(function(_0x359672,_0x2ccfa9){const _0x42d3c2=a67_0x1ffe,_0x2b4332=_0x359672();while(!![]){try{const _0x169055=parseInt(_0x42d3c2(0x15d))/0x1+parseInt(_0x42d3c2(0x15f))/0x2*(parseInt(_0x42d3c2(0x158))/0x3)+-parseInt(_0x42d3c2(0x162))/0x4+-parseInt(_0x42d3c2(0x154))/0x5*(-parseInt(_0x42d3c2(0x157))/0x6)+-parseInt(_0x42d3c2(0x15e))/0x7+parseInt(_0x42d3c2(0x15a))/0x8*(parseInt(_0x42d3c2(0x15c))/0x9)+-parseInt(_0x42d3c2(0x156))/0xa*(parseInt(_0x42d3c2(0x15b))/0xb);if(_0x169055===_0x2ccfa9)break;else _0x2b4332['push'](_0x2b4332['shift']());}catch(_0x4219fb){_0x2b4332['push'](_0x2b4332['shift']());}}}(a67_0x3f79,0xa0eba));import{getDbLinkInfo}from'../../core/api-client.js';function a67_0x1ffe(_0x19fcd5,_0x176842){_0x19fcd5=_0x19fcd5-0x152;const _0x3f79bc=a67_0x3f79();let _0x1ffe9e=_0x3f79bc[_0x19fcd5];return _0x1ffe9e;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a67_0x3f79(){const _0x5e443d=['2TgRECv','num','read','4257768ZBHWPy','db\x20link\x20','detail','5SmzSRl','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','125270DjmLyF','2312502hnZmCA','2553339bGcsqK','dbName','80gpYRoo','748KQzGHb','456390TOuOlZ','1052748esiAnA','1546790ipzIWJ'];a67_0x3f79=function(){return _0x5e443d;};return a67_0x3f79();}import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a67_0x3c195d(0x153),'description':a67_0x3c195d(0x155),'risk':a67_0x3c195d(0x161),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x598142){const _0x1aae64=a67_0x3c195d,_0x587744=_0x598142[_0x1aae64(0x160)]('id'),_0xe4388=await getDbLinkInfo(_0x587744);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0xe4388),'message':_0x1aae64(0x152)+_0x587744+':\x20'+_0xe4388[_0x1aae64(0x159)]};}};
|
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x4e7161=a68_0x20c9;(function(_0x1c95cb,_0x1906e6){const _0x55f3c1=a68_0x20c9,_0x24b233=_0x1c95cb();while(!![]){try{const _0x246906=-parseInt(_0x55f3c1(0xdd))/0x1*(-parseInt(_0x55f3c1(0xe9))/0x2)+parseInt(_0x55f3c1(0xea))/0x3+parseInt(_0x55f3c1(0xe8))/0x4+-parseInt(_0x55f3c1(0xd7))/0x5+-parseInt(_0x55f3c1(0xe6))/0x6+parseInt(_0x55f3c1(0xdc))/0x7+-parseInt(_0x55f3c1(0xe4))/0x8;if(_0x246906===_0x1906e6)break;else _0x24b233['push'](_0x24b233['shift']());}catch(_0x4d007d){_0x24b233['push'](_0x24b233['shift']());}}}(a68_0x51af,0x8cc94));function a68_0x20c9(_0xf4d8d3,_0x56fe64){_0xf4d8d3=_0xf4d8d3-0xd7;const _0x51af70=a68_0x51af();let _0x20c957=_0x51af70[_0xf4d8d3];return _0x20c957;}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':'diff','description':a68_0x4e7161(0xde),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a68_0x4e7161(0xe1),'type':a68_0x4e7161(0xe5),'description':a68_0x4e7161(0xdb)},{'name':a68_0x4e7161(0xe0),'type':'number','description':a68_0x4e7161(0xe3),'default':0x1},{'name':a68_0x4e7161(0xd8),'type':a68_0x4e7161(0xe7),'description':'Page\x20size','default':0x14}],async 'execute'(_0x41ace6){const _0x4ac71b=a68_0x4e7161,_0x77a263=_0x41ace6[_0x4ac71b(0xdf)]('id'),_0x35c4d0=_0x41ace6[_0x4ac71b(0xdf)](_0x4ac71b(0xe0),0x1)||0x1,_0x4e38a3=_0x41ace6[_0x4ac71b(0xdf)](_0x4ac71b(0xd8),0x14)||0x14,_0x250c69=_0x41ace6[_0x4ac71b(0xd9)]('table')||undefined,{totalCount:_0x5132d2,tableList:_0x1508f0}=await getDbTableDiff(_0x41ace6[_0x4ac71b(0xda)],_0x77a263,{'pageIndex':_0x35c4d0,'pageSize':_0x4e38a3,'tableName':_0x250c69});return{'ok':!![],'data':{'dbLinkId':_0x77a263,'page':_0x35c4d0,'pageSize':_0x4e38a3,'totalCount':_0x5132d2,'tableList':_0x1508f0},'message':_0x1508f0[_0x4ac71b(0xeb)]+_0x4ac71b(0xe2)+_0x5132d2+'\x20(db\x20link\x20'+_0x77a263+')'};}};function a68_0x51af(){const _0x221584=['table','\x20row(s),\x20total\x20','Page\x20index\x20(1-based)','15796928oJOXgT','string','569694sjKdGx','number','4143236nyWMfe','2nkCAGw','799296UHvbnb','length','1530655BDbrGB','pagesize','str','appCode','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','5310928gwjkiC','891411Nhdgbc','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','num','page'];a68_0x51af=function(){return _0x221584;};return a68_0x51af();}
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x41266b,_0x48f5f4){const _0x263945=a69_0x3278,_0x26a838=_0x41266b();while(!![]){try{const _0x54193e=parseInt(_0x263945(0x1f1))/0x1*(-parseInt(_0x263945(0x1ef))/0x2)+-parseInt(_0x263945(0x1f2))/0x3+-parseInt(_0x263945(0x1ea))/0x4+parseInt(_0x263945(0x1ed))/0x5+parseInt(_0x263945(0x1ee))/0x6+-parseInt(_0x263945(0x1eb))/0x7*(-parseInt(_0x263945(0x1ec))/0x8)+-parseInt(_0x263945(0x1f0))/0x9;if(_0x54193e===_0x48f5f4)break;else _0x26a838['push'](_0x26a838['shift']());}catch(_0x382d70){_0x26a838['push'](_0x26a838['shift']());}}}(a69_0x1c04,0x4ab5d));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';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';function a69_0x1c04(){const _0x2e2719=['785144dNEUVW','3563AlZVHK','3272lHVLxu','1736710DOczDz','2951940kqJeoL','10ZOaEub','2263266pwdQPZ','58610zcpeor','2070yjuNLA'];a69_0x1c04=function(){return _0x2e2719;};return a69_0x1c04();}import{dbDiff}from'../../commands/db/diff.js';function a69_0x3278(_0x1f1cff,_0x4ebd1a){_0x1f1cff=_0x1f1cff-0x1ea;const _0x1c0445=a69_0x1c04();let _0x3278d0=_0x1c0445[_0x1f1cff];return _0x3278d0;}export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
|
package/lib/commands/db/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a70_0x5115(_0x4c2ac0,_0x34f5f5){_0x4c2ac0=_0x4c2ac0-0xf8;const _0x54f3a3=a70_0x54f3();let _0x511596=_0x54f3a3[_0x4c2ac0];return _0x511596;}const a70_0x13d763=a70_0x5115;function a70_0x54f3(){const _0x299659=['4198PeSfcq','1312240xgCVDb','number','3810BnObBW','\x20database\x20connection(s)','num','9456oMRPhN','749112DreJZz','854OPbdfU','Found\x20','267SONidR','Page\x20size','555456vRIjop','read','3454011GxIihz','appCode','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','list','Page\x20index\x20(1-based)','pagesize','page','length'];a70_0x54f3=function(){return _0x299659;};return a70_0x54f3();}(function(_0x13a10b,_0x3f7fdf){const _0x507e1c=a70_0x5115,_0x426716=_0x13a10b();while(!![]){try{const _0x28a6c2=-parseInt(_0x507e1c(0x10c))/0x1+-parseInt(_0x507e1c(0x109))/0x2*(parseInt(_0x507e1c(0xfd))/0x3)+-parseInt(_0x507e1c(0xfa))/0x4+parseInt(_0x507e1c(0x10a))/0x5+parseInt(_0x507e1c(0xf9))/0x6*(-parseInt(_0x507e1c(0xfb))/0x7)+parseInt(_0x507e1c(0xff))/0x8+parseInt(_0x507e1c(0x101))/0x9;if(_0x28a6c2===_0x3f7fdf)break;else _0x426716['push'](_0x426716['shift']());}catch(_0x53469c){_0x426716['push'](_0x426716['shift']());}}}(a70_0x54f3,0x23850));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':a70_0x13d763(0x104),'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':a70_0x13d763(0x100),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a70_0x13d763(0x107),'type':'number','description':a70_0x13d763(0x105),'default':0x1},{'name':'pagesize','type':a70_0x13d763(0x10b),'description':a70_0x13d763(0xfe),'default':0x64}],async 'execute'(_0x53e5ea){const _0x17cd2d=a70_0x13d763,_0x2527b9=_0x53e5ea[_0x17cd2d(0xf8)](_0x17cd2d(0x107),0x1)||0x1,_0x4cd153=_0x53e5ea[_0x17cd2d(0xf8)](_0x17cd2d(0x106),0x64)||0x64,{items:_0x25bd6c,paging:_0x580022}=await listDbLinks(_0x53e5ea[_0x17cd2d(0x102)],{'currentPage':_0x2527b9,'pageSize':_0x4cd153}),_0x562cd5=sanitizeDbLinkList(_0x25bd6c),_0x4db33a=_0x580022?_0x580022:{'currentPage':_0x2527b9,'pageSize':_0x4cd153,'rowsOnPage':_0x562cd5['length'],'totalCount':null,'note':_0x17cd2d(0x103)};return{'ok':!![],'data':{'connections':_0x562cd5,'paging':_0x4db33a},'message':_0x17cd2d(0xfc)+_0x562cd5[_0x17cd2d(0x108)]+_0x17cd2d(0x10d)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc16b41,_0x12eb88){const _0x9d8878=a71_0x24b6,_0x313560=_0xc16b41();while(!![]){try{const _0x5c14c3=-parseInt(_0x9d8878(0x191))/0x1*(-parseInt(_0x9d8878(0x19b))/0x2)+parseInt(_0x9d8878(0x190))/0x3*(parseInt(_0x9d8878(0x19c))/0x4)+-parseInt(_0x9d8878(0x198))/0x5+-parseInt(_0x9d8878(0x1a0))/0x6+parseInt(_0x9d8878(0x1a2))/0x7*(parseInt(_0x9d8878(0x1a1))/0x8)+-parseInt(_0x9d8878(0x1a7))/0x9*(-parseInt(_0x9d8878(0x1ad))/0xa)+-parseInt(_0x9d8878(0x1ac))/0xb;if(_0x5c14c3===_0x12eb88)break;else _0x313560['push'](_0x313560['shift']());}catch(_0x48a696){_0x313560['push'](_0x313560['shift']());}}}(a71_0x11c7,0x8ea15));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0x35787e){const _0x492604=a71_0x24b6,_0x3e6867=_0x35787e[_0x492604(0x192)]();if(_0x3e6867===_0x492604(0x1a5)||_0x3e6867===_0x492604(0x194)||_0x3e6867===_0x492604(0x19f))return!![];if(_0x3e6867[_0x492604(0x1a9)](_0x492604(0x1a4))||_0x3e6867[_0x492604(0x1a9)](_0x492604(0x1aa))||_0x3e6867['includes']('credential'))return!![];if(_0x3e6867[_0x492604(0x1a9)](_0x492604(0x1a8))||_0x3e6867[_0x492604(0x1a9)](_0x492604(0x1ab)))return!![];if(_0x3e6867===_0x492604(0x1a6)||_0x3e6867===_0x492604(0x19e)||_0x3e6867==='jdbcurl')return!![];return![];}function a71_0x11c7(){const _0x202de4=['includes','token','accesskey','7736806MtiLPh','3600PjrhoT','test','1284HoQzoW','1ukBMDj','toLowerCase','length','passwd','/data/er?dbId=','number','isFinite','3063265GJwMrE','map','trim','1709070fndqBb','8868NcCKbj','https://daily.lovrabet.com/web-app/app/','connectionstring','dbpassword','2397366iUTsbI','6608jBJhkN','4179SdcSNY','keys','secret','password','authorization','81OKsjDJ','privatekey'];a71_0x11c7=function(){return _0x202de4;};return a71_0x11c7();}export function sanitizeDbLinkForOutput(_0x26d8f5){const _0x7cf623=a71_0x24b6,_0x54162c={..._0x26d8f5};for(const _0x39a5ff of Object[_0x7cf623(0x1a3)](_0x54162c)){if(!shouldRedactKey(_0x39a5ff))continue;const _0x263b57=_0x54162c[_0x39a5ff];_0x263b57!=null&&String(_0x263b57)[_0x7cf623(0x193)]>0x0&&(_0x54162c[_0x39a5ff]='[redacted]');}return _0x54162c;}export function sanitizeDbLinkList(_0x29934c){const _0x35d5e4=a71_0x24b6;return _0x29934c[_0x35d5e4(0x199)](_0x48ce98=>sanitizeDbLinkForOutput(_0x48ce98));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x2421b9){const _0x1dff15=a71_0x24b6,_0xe66002=_0x2421b9['trim']();if(!_0xe66002)return![];return DB_URL_PATTERN[_0x1dff15(0x18f)](_0xe66002);}function a71_0x24b6(_0x47667e,_0x2b3523){_0x47667e=_0x47667e-0x18f;const _0x11c737=a71_0x11c7();let _0x24b65b=_0x11c737[_0x47667e];return _0x24b65b;}export function buildDbPageLinks(_0x540078,_0x3df65e){const _0x289404=a71_0x24b6,_0xf48f2=_0x540078?.[_0x289404(0x19a)]();if(!_0xf48f2)return undefined;const _0x4648c3=typeof _0x3df65e===_0x289404(0x196)?String(_0x3df65e):String(_0x3df65e??'')[_0x289404(0x19a)]();if(!_0x4648c3)return undefined;const _0x50f28c=Number(_0x4648c3);if(!Number[_0x289404(0x197)](_0x50f28c)||_0x50f28c<=0x0)return undefined;const _0x856be5=isDaily(normalizeEnv(getEnv()))?_0x289404(0x19d)+encodeURIComponent(_0xf48f2):'https://app.lovrabet.com/app/'+encodeURIComponent(_0xf48f2),_0x12111a=encodeURIComponent(String(_0x50f28c));return{'databasePage':_0x856be5+'/data/database','erPage':_0x856be5+_0x289404(0x195)+_0x12111a};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0xdeafa5=a72_0xa817;function a72_0xa817(_0x5edba0,_0x558dcd){_0x5edba0=_0x5edba0-0x71;const _0x13e960=a72_0x13e9();let _0xa8173d=_0x13e960[_0x5edba0];return _0xa8173d;}function a72_0x13e9(){const _0x36b382=['165xpqvYC','31495tQWOPq','354KohrNJ','tables','length','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','num','370299kwOnwl','22669569jviMQS','13899832uQWtUK','\x20table(s)\x20on\x20db\x20link\x20','116716ZycQlG','appCode','1915024ZhKUaa','1300908kAPUfY'];a72_0x13e9=function(){return _0x36b382;};return a72_0x13e9();}(function(_0x4dbe0b,_0x19ba53){const _0x2d9071=a72_0xa817,_0x591397=_0x4dbe0b();while(!![]){try{const _0x502c18=-parseInt(_0x2d9071(0x7f))/0x1+-parseInt(_0x2d9071(0x76))/0x2+parseInt(_0x2d9071(0x78))/0x3*(parseInt(_0x2d9071(0x74))/0x4)+parseInt(_0x2d9071(0x79))/0x5*(-parseInt(_0x2d9071(0x7a))/0x6)+parseInt(_0x2d9071(0x77))/0x7+-parseInt(_0x2d9071(0x72))/0x8+parseInt(_0x2d9071(0x71))/0x9;if(_0x502c18===_0x19ba53)break;else _0x591397['push'](_0x591397['shift']());}catch(_0x26df5d){_0x591397['push'](_0x591397['shift']());}}}(a72_0x13e9,0xd5097));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':a72_0xdeafa5(0x7b),'description':a72_0xdeafa5(0x7d),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0xd583fc){const _0x511b2c=a72_0xdeafa5,_0x412361=_0xd583fc[_0x511b2c(0x7e)]('id'),_0xe83a37=await getDbAllTableList(_0xd583fc[_0x511b2c(0x75)],_0x412361);return{'ok':!![],'data':{'dbLinkId':_0x412361,'total':_0xe83a37[_0x511b2c(0x7c)],'tables':_0xe83a37},'message':_0xe83a37['length']+_0x511b2c(0x73)+_0x412361};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a73_0x1b5ce6=a73_0x387f;(function(_0x2ea37e,_0x5b0daa){const _0x391bae=a73_0x387f,_0x15096c=_0x2ea37e();while(!![]){try{const _0x48c1f0=parseInt(_0x391bae(0x1f4))/0x1*(-parseInt(_0x391bae(0x1f0))/0x2)+parseInt(_0x391bae(0x1f8))/0x3+-parseInt(_0x391bae(0x1ff))/0x4+parseInt(_0x391bae(0x1f7))/0x5+-parseInt(_0x391bae(0x1f1))/0x6*(parseInt(_0x391bae(0x1f2))/0x7)+parseInt(_0x391bae(0x1ed))/0x8+parseInt(_0x391bae(0x1fb))/0x9*(parseInt(_0x391bae(0x1fa))/0xa);if(_0x48c1f0===_0x5b0daa)break;else _0x15096c['push'](_0x15096c['shift']());}catch(_0x421e23){_0x15096c['push'](_0x15096c['shift']());}}}(a73_0x312a,0xc0c20));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x519329){const _0x2ef818=a73_0x387f;if(_0x519329===!![]||_0x519329===![])return{'success':_0x519329};if(_0x519329===null||_0x519329===undefined)return{'type':typeof _0x519329};if(typeof _0x519329!=='object')return{'type':typeof _0x519329};const _0x2f069b=_0x519329,_0x42a1ad=[_0x2ef818(0x1ec),_0x2ef818(0x1f5),'code',_0x2ef818(0x200),'msg',_0x2ef818(0x1fe)],_0x9ecea5={};for(const _0x372a8a of _0x42a1ad){if(_0x372a8a in _0x2f069b)_0x9ecea5[_0x372a8a]=_0x2f069b[_0x372a8a];}return Object['keys'](_0x9ecea5)[_0x2ef818(0x1fd)]===0x0&&(_0x9ecea5[_0x2ef818(0x1fc)]=Object['keys'](_0x2f069b)['slice'](0x0,0x14)),_0x9ecea5;}function a73_0x387f(_0x471610,_0x91289d){_0x471610=_0x471610-0x1ec;const _0x312aa8=a73_0x312a();let _0x387f5a=_0x312aa8[_0x471610];return _0x387f5a;}function a73_0x312a(){const _0x55c85d=['error','test','success','1529568WiHqiv','num','Connection\x20check\x20finished\x20for\x20db\x20link\x20','2rxqkeR','3765618Dwjoqx','7wnRzaN','\x20(see\x20data.result)','948353PyVxBD','message','Connection\x20OK\x20for\x20db\x20link\x20','1136165yAneJy','3976782skWFVT','object','13026660UKgfsE','9ffikMe','keys','length','data','2724788cFZUjp'];a73_0x312a=function(){return _0x55c85d;};return a73_0x312a();}export const dbTest={'service':'db','command':a73_0x1b5ce6(0x201),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3b7127){const _0x3415fb=a73_0x1b5ce6,_0x26598d=_0x3b7127[_0x3415fb(0x1ee)]('id'),_0x142bb4=await testDbLinkConnect(_0x26598d),_0x4959d5=_0x142bb4===!![]||typeof _0x142bb4===_0x3415fb(0x1f9)&&_0x142bb4!==null&&_0x142bb4[_0x3415fb(0x1ec)]===!![],_0x2d995a=summarizeTestConnectResult(_0x142bb4);return{'ok':!![],'data':{'id':_0x26598d,'connected':Boolean(_0x4959d5),'result':_0x2d995a},'message':_0x4959d5?_0x3415fb(0x1f6)+_0x26598d:_0x3415fb(0x1ef)+_0x26598d+_0x3415fb(0x1f3)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a74_0x23abb2=a74_0x592f;(function(_0x71b3e9,_0x4d1577){const _0x9d52ff=a74_0x592f,_0x3b324e=_0x71b3e9();while(!![]){try{const _0x5a31dd=-parseInt(_0x9d52ff(0xec))/0x1+-parseInt(_0x9d52ff(0xe2))/0x2*(-parseInt(_0x9d52ff(0xe9))/0x3)+parseInt(_0x9d52ff(0xf0))/0x4*(parseInt(_0x9d52ff(0xf7))/0x5)+parseInt(_0x9d52ff(0xe5))/0x6+parseInt(_0x9d52ff(0xdb))/0x7+parseInt(_0x9d52ff(0xe8))/0x8*(-parseInt(_0x9d52ff(0xea))/0x9)+-parseInt(_0x9d52ff(0xf6))/0xa;if(_0x5a31dd===_0x4d1577)break;else _0x3b324e['push'](_0x3b324e['shift']());}catch(_0x27095f){_0x3b324e['push'](_0x3b324e['shift']());}}}(a74_0x1cbf,0xd3bc8));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';function a74_0x1cbf(){const _0x2523f8=['POST','2nILAzs','New\x20host:port','num','4069902XIMLCH','password','dbParam','111920gIvalN','678603hMNdnV','270QsNiiO','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','696744RwLWMg','str','update','New\x20database\x20name','4531796GZaTUb','/smartapi/dblink/update','trim','dbdesc','dbDesc','dbName','14581640owcFBU','5FdNZHb','string','dburl','9830891xvzMAY','dbname','username','dbUrl','write','dbparam'];a74_0x1cbf=function(){return _0x2523f8;};return a74_0x1cbf();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a74_0x592f(_0x1b57e8,_0x2b1abc){_0x1b57e8=_0x1b57e8-0xda;const _0x1cbf99=a74_0x1cbf();let _0x592f47=_0x1cbf99[_0x1b57e8];return _0x592f47;}export const dbUpdate={'service':'db','command':a74_0x23abb2(0xee),'description':'Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','risk':a74_0x23abb2(0xdf),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a74_0x23abb2(0xdc),'type':a74_0x23abb2(0xf8),'description':a74_0x23abb2(0xef)},{'name':'dburl','type':a74_0x23abb2(0xf8),'description':a74_0x23abb2(0xe3)},{'name':a74_0x23abb2(0xdd),'type':a74_0x23abb2(0xf8),'description':'New\x20username'},{'name':a74_0x23abb2(0xe6),'type':a74_0x23abb2(0xf8),'description':'New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API'},{'name':'dbparam','type':a74_0x23abb2(0xf8),'description':'New\x20connection\x20parameter\x20string'},{'name':a74_0x23abb2(0xf3),'type':a74_0x23abb2(0xf8),'description':'New\x20description'}],async 'validate'(_0x42191e){const _0x19612f=a74_0x23abb2,_0x178fc2=_0x42191e[_0x19612f(0xed)](_0x19612f(0xda));if(_0x178fc2&&!validateDbUrl(_0x178fc2[_0x19612f(0xf2)]()))throw CliErrors['validation']('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x178fc2+'\x22');},async 'dryRun'(_0x18e91c){const _0x33af89=a74_0x23abb2,_0x2d96eb=_0x18e91c[_0x33af89(0xe4)]('id'),_0x28800f=await getDbLinkInfo(_0x2d96eb),_0x2b443f={..._0x28800f},_0x4e1f6a=_0x18e91c[_0x33af89(0xed)](_0x33af89(0xdc));if(_0x4e1f6a)_0x2b443f['dbName']=_0x4e1f6a;const _0x2563ee=_0x18e91c[_0x33af89(0xed)](_0x33af89(0xda));if(_0x2563ee)_0x2b443f[_0x33af89(0xde)]=_0x2563ee[_0x33af89(0xf2)]();const _0x4748eb=_0x18e91c[_0x33af89(0xed)](_0x33af89(0xdd));if(_0x4748eb)_0x2b443f[_0x33af89(0xdd)]=_0x4748eb;const _0x544e43=_0x18e91c['str'](_0x33af89(0xe6));if(_0x544e43)_0x2b443f['password']=_0x544e43;const _0x3b9a4c=_0x18e91c[_0x33af89(0xed)](_0x33af89(0xe0));if(_0x3b9a4c)_0x2b443f['dbParam']=_0x3b9a4c;const _0x4f382e=_0x18e91c[_0x33af89(0xed)](_0x33af89(0xf3));if(_0x4f382e)_0x2b443f['dbDesc']=_0x4f382e;const _0x3f14e8=sanitizeDbLinkForOutput(_0x2b443f);return{'method':_0x33af89(0xe1),'url':_0x33af89(0xf1),'body':_0x3f14e8,'description':_0x33af89(0xeb)};},async 'execute'(_0x22e08e){const _0x27281b=a74_0x23abb2,_0x21884d=_0x22e08e[_0x27281b(0xe4)]('id'),_0x4ac706=await getDbLinkInfo(_0x21884d),_0x3ee2ad={..._0x4ac706},_0x32c696=_0x22e08e[_0x27281b(0xed)]('dbname');if(_0x32c696)_0x3ee2ad[_0x27281b(0xf5)]=_0x32c696;const _0x40dd4f=_0x22e08e[_0x27281b(0xed)](_0x27281b(0xda));if(_0x40dd4f)_0x3ee2ad[_0x27281b(0xde)]=_0x40dd4f['trim']();const _0x5edd62=_0x22e08e[_0x27281b(0xed)](_0x27281b(0xdd));if(_0x5edd62)_0x3ee2ad['username']=_0x5edd62;const _0x7d4fdc=_0x22e08e[_0x27281b(0xed)](_0x27281b(0xe6));if(_0x7d4fdc)_0x3ee2ad[_0x27281b(0xe6)]=_0x7d4fdc;const _0x4406c7=_0x22e08e['str']('dbparam');if(_0x4406c7)_0x3ee2ad[_0x27281b(0xe7)]=_0x4406c7;const _0x3cfe0b=_0x22e08e[_0x27281b(0xed)](_0x27281b(0xf3));if(_0x3cfe0b)_0x3ee2ad[_0x27281b(0xf4)]=_0x3cfe0b;const {id:_0xa8b9c4,entity:_0xb5c368}=normalizeEntityWithIdResponse(await updateDbLink(_0x3ee2ad));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0xb5c368),'message':'Updated\x20db\x20link\x20'+(_0xa8b9c4??_0x21884d)};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a75_0x986a58=a75_0xd6d3;(function(_0xec107b,_0x4aa93a){const _0x168ee6=a75_0xd6d3,_0x2b33f0=_0xec107b();while(!![]){try{const _0xc0d85c=-parseInt(_0x168ee6(0x1a2))/0x1*(parseInt(_0x168ee6(0x19b))/0x2)+parseInt(_0x168ee6(0x1a3))/0x3+parseInt(_0x168ee6(0x187))/0x4*(-parseInt(_0x168ee6(0x165))/0x5)+parseInt(_0x168ee6(0x1a4))/0x6*(-parseInt(_0x168ee6(0x17f))/0x7)+-parseInt(_0x168ee6(0x16f))/0x8+parseInt(_0x168ee6(0x18e))/0x9+-parseInt(_0x168ee6(0x178))/0xa*(-parseInt(_0x168ee6(0x172))/0xb);if(_0xc0d85c===_0x4aa93a)break;else _0x2b33f0['push'](_0x2b33f0['shift']());}catch(_0x1e7dd4){_0x2b33f0['push'](_0x2b33f0['shift']());}}}(a75_0x2500,0x242b2));import a75_0x2f4fdd 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';function a75_0xd6d3(_0x28b7b2,_0x4965cb){_0x28b7b2=_0x28b7b2-0x15e;const _0x25004e=a75_0x2500();let _0xd6d3b1=_0x25004e[_0x28b7b2];return _0xd6d3b1;}import{buildAppDoctorFields}from'../config/schema.js';function a75_0x2500(){const _0x57e551=['read','yellow','locale','arch','204908rbctPw','cookie','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','\x20\x20explicitAppName:\x20','green','\x20\x20runtimeDomain:\x20\x20\x20','1OlTDof','815595bWEkoY','345894DpmJpU','apiDir','apps','appCode','check','currentApp','message','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','source','(set,\x20length=','format','\x20\x20─','5cWHGZb','log','(set\x20via\x20file,\x20length=','missing','✗\x20Invalid\x20JSON','(not\x20found)','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','1627304WnzZnT','\x20←\x20current','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','143EzFRie','⚠\x20Empty\x20(treated\x20as\x20{})','value','status','\x20\x20\x20\x20accessKey:\x20\x20','defaultApp','331130UEtOmq','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','bold','riskLevel','\x20\x20Apps','(none)','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','14OwXHAx','repeat','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','Global','gray','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','length','(default:\x20','1094392Iuxqer','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','version','accessKey','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','✗\x20Expired','1265175dzGOsA','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','red','explicitAppName','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','slice','unknown'];a75_0x2500=function(){return _0x57e551;};return a75_0x2500();}async function execute(_0x528633){const _0x1ae052=a75_0xd6d3,_0x8237be=GIT_COMMIT!==_0x1ae052(0x196)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x1ae052(0x195)](0x0,0xa)+')':VERSION,_0x124280=buildConfigFromFlags({}),_0x46bb1d=getCookie();console[_0x1ae052(0x166)](),console[_0x1ae052(0x166)](a75_0x2f4fdd[_0x1ae052(0x17a)](CLI_BIN_NAME+'\x20doctor')),console[_0x1ae052(0x166)](a75_0x2f4fdd['gray']('─'[_0x1ae052(0x180)](0x32))),console['log'](_0x1ae052(0x171)+_0x8237be),console['log']('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x1ae052(0x189)]),console['log'](_0x1ae052(0x188)+process['platform']+'\x20'+process[_0x1ae052(0x19a)]),console[_0x1ae052(0x166)](),console[_0x1ae052(0x166)](a75_0x2f4fdd['bold'](_0x1ae052(0x16d))),console[_0x1ae052(0x166)](a75_0x2f4fdd[_0x1ae052(0x183)]('\x20\x20─'[_0x1ae052(0x180)](0x1e)));const _0x11c15b=getGlobalConfigPath(),_0x28d99f=getProjectConfigPath();console[_0x1ae052(0x166)](_0x1ae052(0x194)+(_0x11c15b||a75_0x2f4fdd[_0x1ae052(0x183)](_0x1ae052(0x16a)))),console[_0x1ae052(0x166)](_0x1ae052(0x16e)+(_0x28d99f||a75_0x2f4fdd[_0x1ae052(0x183)](_0x1ae052(0x16a)))),console['log'](),console[_0x1ae052(0x166)](a75_0x2f4fdd[_0x1ae052(0x17a)]('\x20\x20Config\x20JSON')),console[_0x1ae052(0x166)](a75_0x2f4fdd[_0x1ae052(0x183)]('\x20\x20─'[_0x1ae052(0x180)](0x1e)));const _0x28dc4b=(_0x3470f0,_0x3ae9a8)=>{const _0x5229c7=_0x1ae052;if(!_0x3ae9a8){console['log']('\x20\x20'+_0x3470f0[_0x5229c7(0x190)](0x11)+'\x20'+a75_0x2f4fdd['gray']('(no\x20file)'));return;}const _0x3332d6=inspectCliConfigJsonFile(_0x3ae9a8);if(_0x3332d6['status']==='ok')console[_0x5229c7(0x166)]('\x20\x20'+_0x3470f0[_0x5229c7(0x190)](0x11)+'\x20'+a75_0x2f4fdd[_0x5229c7(0x1a0)]('✓\x20Valid\x20JSON'));else{if(_0x3332d6[_0x5229c7(0x175)]==='empty')console[_0x5229c7(0x166)]('\x20\x20'+_0x3470f0[_0x5229c7(0x190)](0x11)+'\x20'+a75_0x2f4fdd[_0x5229c7(0x198)](_0x5229c7(0x173)));else _0x3332d6[_0x5229c7(0x175)]===_0x5229c7(0x168)?console[_0x5229c7(0x166)]('\x20\x20'+_0x3470f0[_0x5229c7(0x190)](0x11)+'\x20'+a75_0x2f4fdd['gray']('(missing)')):(console[_0x5229c7(0x166)]('\x20\x20'+_0x3470f0[_0x5229c7(0x190)](0x11)+'\x20'+a75_0x2f4fdd[_0x5229c7(0x191)](_0x5229c7(0x169))),console[_0x5229c7(0x166)]('\x20\x20'+''[_0x5229c7(0x190)](0x11)+'\x20'+a75_0x2f4fdd[_0x5229c7(0x191)](_0x3332d6[_0x5229c7(0x1aa)])));}};_0x28dc4b(_0x1ae052(0x182),_0x11c15b),_0x28dc4b('Project',_0x28d99f),console[_0x1ae052(0x166)](),console[_0x1ae052(0x166)](a75_0x2f4fdd[_0x1ae052(0x17a)](_0x1ae052(0x19e))),console[_0x1ae052(0x166)](a75_0x2f4fdd['gray']('\x20\x20─'[_0x1ae052(0x180)](0x1e))),console[_0x1ae052(0x166)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x124280[_0x1ae052(0x1a7)]||a75_0x2f4fdd['red']('(not\x20set)'))),console[_0x1ae052(0x166)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x124280[_0x1ae052(0x160)]),console[_0x1ae052(0x166)](_0x1ae052(0x18b)+_0x124280[_0x1ae052(0x199)]),console['log'](_0x1ae052(0x193)+_0x124280['apiDir']),console[_0x1ae052(0x166)](_0x1ae052(0x1ab)+(_0x124280[_0x1ae052(0x177)]||a75_0x2f4fdd[_0x1ae052(0x183)](_0x1ae052(0x17d)))),console['log'](_0x1ae052(0x17e)+(_0x124280[_0x1ae052(0x1a9)]||a75_0x2f4fdd[_0x1ae052(0x183)](_0x1ae052(0x17d)))),console[_0x1ae052(0x166)](_0x1ae052(0x19f)+(_0x124280[_0x1ae052(0x192)]||a75_0x2f4fdd[_0x1ae052(0x183)]('(none)'))),console[_0x1ae052(0x166)](_0x1ae052(0x15f)+(_0x124280[_0x1ae052(0x163)]||a75_0x2f4fdd['gray'](_0x1ae052(0x186)+DEFAULT_CONFIG_VALUES[_0x1ae052(0x163)]+')'))),console['log']('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x124280['pageSize']??a75_0x2f4fdd[_0x1ae052(0x183)]('(default)'))),console['log'](_0x1ae052(0x16c)+_0x124280[_0x1ae052(0x17b)]),console['log']('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x124280['verbose']),console[_0x1ae052(0x166)](_0x1ae052(0x15e)+(_0x124280['cookie']?a75_0x2f4fdd['green']('(set,\x20length='+_0x124280['cookie'][_0x1ae052(0x185)]+')'):_0x46bb1d?a75_0x2f4fdd['green'](_0x1ae052(0x167)+_0x46bb1d[_0x1ae052(0x185)]+')'):a75_0x2f4fdd['gray'](_0x1ae052(0x17d))));const _0x525750=Object['keys'](_0x124280[_0x1ae052(0x1a6)]);if(_0x525750[_0x1ae052(0x185)]>0x0){console[_0x1ae052(0x166)](),console[_0x1ae052(0x166)](a75_0x2f4fdd['bold'](_0x1ae052(0x17c))),console['log'](a75_0x2f4fdd[_0x1ae052(0x183)](_0x1ae052(0x164)['repeat'](0x1e)));for(const _0x2e00f9 of _0x525750){const _0x57a014=_0x124280['apps'][_0x2e00f9],_0x12567e=_0x2e00f9===_0x124280['defaultApp'],_0x32c460=_0x2e00f9===_0x124280[_0x1ae052(0x1a9)],_0x54078d=_0x32c460?a75_0x2f4fdd[_0x1ae052(0x1a0)](_0x1ae052(0x170)):'',_0x217067=_0x12567e?'\x20(default)':'';console[_0x1ae052(0x166)]('\x20\x20'+_0x2e00f9+_0x217067+_0x54078d),console[_0x1ae052(0x166)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x57a014['appcode']);const _0x50ed9e=buildAppDoctorFields(_0x57a014,{'env':_0x124280['env'],'apiDir':_0x124280['raw'][_0x1ae052(0x1a5)]||DEFAULT_CONFIG_VALUES[_0x1ae052(0x1a5)],'cookie':_0x124280[_0x1ae052(0x19c)]||_0x46bb1d||undefined,'accessKey':_0x124280[_0x1ae052(0x18a)]});console[_0x1ae052(0x166)](_0x1ae052(0x18f)+_0x50ed9e[_0x1ae052(0x160)][_0x1ae052(0x174)]+'\x20\x20'+a75_0x2f4fdd[_0x1ae052(0x183)]('('+_0x50ed9e['env']['source']+')')),console[_0x1ae052(0x166)](_0x1ae052(0x16b)+_0x50ed9e['apiDir'][_0x1ae052(0x174)]+'\x20\x20'+a75_0x2f4fdd[_0x1ae052(0x183)]('('+_0x50ed9e['apiDir'][_0x1ae052(0x161)]+')'));const _0x533151=_0x50ed9e[_0x1ae052(0x19c)]['value']?a75_0x2f4fdd[_0x1ae052(0x1a0)](_0x1ae052(0x162)+_0x50ed9e[_0x1ae052(0x19c)][_0x1ae052(0x174)]['length']+')'):a75_0x2f4fdd[_0x1ae052(0x183)]('(none)');console[_0x1ae052(0x166)](_0x1ae052(0x181)+_0x533151+'\x20\x20'+a75_0x2f4fdd[_0x1ae052(0x183)]('('+_0x50ed9e[_0x1ae052(0x19c)][_0x1ae052(0x161)]+')'));const _0x8e7e21=_0x50ed9e[_0x1ae052(0x18a)][_0x1ae052(0x174)]?a75_0x2f4fdd[_0x1ae052(0x1a0)](_0x1ae052(0x162)+_0x50ed9e[_0x1ae052(0x18a)][_0x1ae052(0x174)][_0x1ae052(0x185)]+')'):a75_0x2f4fdd['gray'](_0x1ae052(0x17d));console['log'](_0x1ae052(0x176)+_0x8e7e21+'\x20\x20'+a75_0x2f4fdd[_0x1ae052(0x183)]('('+_0x50ed9e[_0x1ae052(0x18a)][_0x1ae052(0x161)]+')'));}}console[_0x1ae052(0x166)](),console[_0x1ae052(0x166)](a75_0x2f4fdd[_0x1ae052(0x17a)]('\x20\x20API\x20Endpoints')),console[_0x1ae052(0x166)](a75_0x2f4fdd[_0x1ae052(0x183)](_0x1ae052(0x164)[_0x1ae052(0x180)](0x1e))),console['log'](_0x1ae052(0x179)+getApiDomain()),console[_0x1ae052(0x166)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x1ae052(0x166)](_0x1ae052(0x1a1)+getRuntimeDomain()),console[_0x1ae052(0x166)](),console[_0x1ae052(0x166)](a75_0x2f4fdd[_0x1ae052(0x17a)]('\x20\x20Auth')),console[_0x1ae052(0x166)](a75_0x2f4fdd['gray'](_0x1ae052(0x164)['repeat'](0x1e)));if(_0x46bb1d){const _0x532996=await getIsSessionValid();console[_0x1ae052(0x166)](_0x1ae052(0x19d)+(_0x532996?a75_0x2f4fdd[_0x1ae052(0x1a0)]('✓\x20Valid'):a75_0x2f4fdd[_0x1ae052(0x191)](_0x1ae052(0x18d))));}else console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a75_0x2f4fdd[_0x1ae052(0x191)]('✗\x20Not\x20logged\x20in'));return console[_0x1ae052(0x166)](),{'ok':!![]};}export const doctorDefinition={'service':a75_0x986a58(0x18c),'command':a75_0x986a58(0x1a8),'description':a75_0x986a58(0x184),'risk':a75_0x986a58(0x197),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a75_0x1ec386=a75_0xe644;function a75_0xe644(_0x55f496,_0x33668f){_0x55f496=_0x55f496-0x193;const _0x476299=a75_0x4762();let _0xe64415=_0x476299[_0x55f496];return _0xe64415;}(function(_0x438245,_0x538941){const _0x53b89b=a75_0xe644,_0x110ace=_0x438245();while(!![]){try{const _0x18f037=-parseInt(_0x53b89b(0x1d0))/0x1*(parseInt(_0x53b89b(0x1c7))/0x2)+-parseInt(_0x53b89b(0x1bb))/0x3*(parseInt(_0x53b89b(0x199))/0x4)+parseInt(_0x53b89b(0x1a0))/0x5+-parseInt(_0x53b89b(0x1b9))/0x6+-parseInt(_0x53b89b(0x1e2))/0x7*(-parseInt(_0x53b89b(0x194))/0x8)+-parseInt(_0x53b89b(0x1be))/0x9+parseInt(_0x53b89b(0x1da))/0xa*(parseInt(_0x53b89b(0x1dd))/0xb);if(_0x18f037===_0x538941)break;else _0x110ace['push'](_0x110ace['shift']());}catch(_0x59cb62){_0x110ace['push'](_0x110ace['shift']());}}}(a75_0x4762,0xd77de));import a75_0x3dd758 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';function a75_0x4762(){const _0x2e0e20=['\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','accessKey','127523dEEKPL','padEnd','pageSize','status','raw','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','(none)','\x20\x20─','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','12990vHZANb','defaultApp','✗\x20Expired','21120swhByU','appcode','log','format','\x20\x20runtimeDomain:\x20\x20\x20','7PhctBm','gray','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','(default)','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','7634104wFPqBZ','currentApp','(default:\x20','appCode','verbose','1819628foISHS','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','keys','apps','\x20\x20\x20\x20accessKey:\x20\x20','1863095ZlDeUd','apiDir','\x20doctor','arch','✓\x20Valid\x20JSON','(set\x20via\x20file,\x20length=','(not\x20found)','length','(set,\x20length=','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','(not\x20set)','explicitAppName','cookie','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','doctor','(no\x20file)','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','message','repeat','read','\x20\x20explicitAppName:\x20','green','empty','9033906kKJUAQ','slice','3MNmIxB','yellow','\x20←\x20current','3061215RUuPFW','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','source','red','version','\x20\x20Auth','Global','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','env','10EjwEMH','locale','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity'];a75_0x4762=function(){return _0x2e0e20;};return a75_0x4762();}import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x32131f){const _0x3da398=a75_0xe644,_0x20feaf=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x3da398(0x1ba)](0x0,0xa)+')':VERSION,_0x4fc16f=buildConfigFromFlags({}),_0x12055f=getCookie();console[_0x3da398(0x1df)](),console['log'](a75_0x3dd758[_0x3da398(0x193)](CLI_BIN_NAME+_0x3da398(0x1a2))),console[_0x3da398(0x1df)](a75_0x3dd758['gray']('─'[_0x3da398(0x1b4)](0x32))),console[_0x3da398(0x1df)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x20feaf),console[_0x3da398(0x1df)](_0x3da398(0x19a)+process[_0x3da398(0x1c2)]),console[_0x3da398(0x1df)](_0x3da398(0x1e5)+process['platform']+'\x20'+process[_0x3da398(0x1a3)]),console['log'](),console[_0x3da398(0x1df)](a75_0x3dd758['bold'](_0x3da398(0x1aa))),console['log'](a75_0x3dd758[_0x3da398(0x1e3)](_0x3da398(0x1d8)[_0x3da398(0x1b4)](0x1e)));const _0x4dfeb7=getGlobalConfigPath(),_0x1852d5=getProjectConfigPath();console[_0x3da398(0x1df)](_0x3da398(0x1e7)+(_0x4dfeb7||a75_0x3dd758[_0x3da398(0x1e3)](_0x3da398(0x1a6)))),console[_0x3da398(0x1df)](_0x3da398(0x1e4)+(_0x1852d5||a75_0x3dd758[_0x3da398(0x1e3)]('(not\x20found)'))),console[_0x3da398(0x1df)](),console[_0x3da398(0x1df)](a75_0x3dd758[_0x3da398(0x193)]('\x20\x20Config\x20JSON')),console[_0x3da398(0x1df)](a75_0x3dd758[_0x3da398(0x1e3)](_0x3da398(0x1d8)[_0x3da398(0x1b4)](0x1e)));const _0x2cc2ee=(_0x490147,_0x308508)=>{const _0x402c94=_0x3da398;if(!_0x308508){console['log']('\x20\x20'+_0x490147['padEnd'](0x11)+'\x20'+a75_0x3dd758['gray'](_0x402c94(0x1b0)));return;}const _0x48e084=inspectCliConfigJsonFile(_0x308508);if(_0x48e084['status']==='ok')console[_0x402c94(0x1df)]('\x20\x20'+_0x490147['padEnd'](0x11)+'\x20'+a75_0x3dd758[_0x402c94(0x1b7)](_0x402c94(0x1a4)));else{if(_0x48e084[_0x402c94(0x1d3)]===_0x402c94(0x1b8))console[_0x402c94(0x1df)]('\x20\x20'+_0x490147['padEnd'](0x11)+'\x20'+a75_0x3dd758[_0x402c94(0x1bc)](_0x402c94(0x1cc)));else _0x48e084[_0x402c94(0x1d3)]==='missing'?console['log']('\x20\x20'+_0x490147[_0x402c94(0x1d1)](0x11)+'\x20'+a75_0x3dd758[_0x402c94(0x1e3)]('(missing)')):(console[_0x402c94(0x1df)]('\x20\x20'+_0x490147[_0x402c94(0x1d1)](0x11)+'\x20'+a75_0x3dd758['red'](_0x402c94(0x1ce))),console[_0x402c94(0x1df)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a75_0x3dd758['red'](_0x48e084[_0x402c94(0x1b3)])));}};_0x2cc2ee(_0x3da398(0x1c4),_0x4dfeb7),_0x2cc2ee('Project',_0x1852d5),console[_0x3da398(0x1df)](),console[_0x3da398(0x1df)](a75_0x3dd758['bold'](_0x3da398(0x19c))),console[_0x3da398(0x1df)](a75_0x3dd758[_0x3da398(0x1e3)](_0x3da398(0x1d8)['repeat'](0x1e))),console[_0x3da398(0x1df)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4fc16f[_0x3da398(0x197)]||a75_0x3dd758[_0x3da398(0x1c1)](_0x3da398(0x1ab)))),console['log'](_0x3da398(0x1cb)+_0x4fc16f[_0x3da398(0x1c6)]),console['log']('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4fc16f[_0x3da398(0x1c8)]),console[_0x3da398(0x1df)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4fc16f[_0x3da398(0x1a1)]),console[_0x3da398(0x1df)](_0x3da398(0x1d6)+(_0x4fc16f[_0x3da398(0x1db)]||a75_0x3dd758['gray'](_0x3da398(0x1d7)))),console[_0x3da398(0x1df)](_0x3da398(0x1a9)+(_0x4fc16f[_0x3da398(0x195)]||a75_0x3dd758[_0x3da398(0x1e3)](_0x3da398(0x1d7)))),console['log'](_0x3da398(0x1b6)+(_0x4fc16f[_0x3da398(0x1ac)]||a75_0x3dd758[_0x3da398(0x1e3)]('(none)'))),console[_0x3da398(0x1df)](_0x3da398(0x1d9)+(_0x4fc16f[_0x3da398(0x1e0)]||a75_0x3dd758[_0x3da398(0x1e3)](_0x3da398(0x196)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x3da398(0x1df)](_0x3da398(0x1cd)+(_0x4fc16f[_0x3da398(0x1d2)]??a75_0x3dd758[_0x3da398(0x1e3)](_0x3da398(0x1e6)))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x4fc16f['riskLevel']),console[_0x3da398(0x1df)](_0x3da398(0x1d5)+_0x4fc16f[_0x3da398(0x198)]),console[_0x3da398(0x1df)](_0x3da398(0x1c9)+(_0x4fc16f[_0x3da398(0x1ad)]?a75_0x3dd758[_0x3da398(0x1b7)](_0x3da398(0x1a8)+_0x4fc16f['cookie']['length']+')'):_0x12055f?a75_0x3dd758[_0x3da398(0x1b7)](_0x3da398(0x1a5)+_0x12055f[_0x3da398(0x1a7)]+')'):a75_0x3dd758[_0x3da398(0x1e3)](_0x3da398(0x1d7))));const _0xd3f412=Object[_0x3da398(0x19d)](_0x4fc16f[_0x3da398(0x19e)]);if(_0xd3f412[_0x3da398(0x1a7)]>0x0){console[_0x3da398(0x1df)](),console[_0x3da398(0x1df)](a75_0x3dd758['bold']('\x20\x20Apps')),console[_0x3da398(0x1df)](a75_0x3dd758[_0x3da398(0x1e3)](_0x3da398(0x1d8)[_0x3da398(0x1b4)](0x1e)));for(const _0x1e3495 of _0xd3f412){const _0x529c90=_0x4fc16f[_0x3da398(0x19e)][_0x1e3495],_0x497207=_0x1e3495===_0x4fc16f[_0x3da398(0x1db)],_0x3e99f9=_0x1e3495===_0x4fc16f[_0x3da398(0x195)],_0x1ca191=_0x3e99f9?a75_0x3dd758[_0x3da398(0x1b7)](_0x3da398(0x1bd)):'',_0x740fe5=_0x497207?'\x20(default)':'';console[_0x3da398(0x1df)]('\x20\x20'+_0x1e3495+_0x740fe5+_0x1ca191),console[_0x3da398(0x1df)](_0x3da398(0x1c5)+_0x529c90[_0x3da398(0x1de)]);const _0xf69775=buildAppDoctorFields(_0x529c90,{'env':_0x4fc16f[_0x3da398(0x1c6)],'apiDir':_0x4fc16f[_0x3da398(0x1d4)][_0x3da398(0x1a1)]||DEFAULT_CONFIG_VALUES[_0x3da398(0x1a1)],'cookie':_0x4fc16f[_0x3da398(0x1ad)]||_0x12055f||undefined,'accessKey':_0x4fc16f[_0x3da398(0x1cf)]});console[_0x3da398(0x1df)](_0x3da398(0x1ae)+_0xf69775[_0x3da398(0x1c6)][_0x3da398(0x1b2)]+'\x20\x20'+a75_0x3dd758['gray']('('+_0xf69775[_0x3da398(0x1c6)][_0x3da398(0x1c0)]+')')),console[_0x3da398(0x1df)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0xf69775['apiDir']['value']+'\x20\x20'+a75_0x3dd758[_0x3da398(0x1e3)]('('+_0xf69775[_0x3da398(0x1a1)][_0x3da398(0x1c0)]+')'));const _0x3fa3fc=_0xf69775['cookie']['value']?a75_0x3dd758[_0x3da398(0x1b7)](_0x3da398(0x1a8)+_0xf69775[_0x3da398(0x1ad)][_0x3da398(0x1b2)]['length']+')'):a75_0x3dd758[_0x3da398(0x1e3)](_0x3da398(0x1d7));console[_0x3da398(0x1df)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x3fa3fc+'\x20\x20'+a75_0x3dd758[_0x3da398(0x1e3)]('('+_0xf69775[_0x3da398(0x1ad)]['source']+')'));const _0x5f2526=_0xf69775['accessKey'][_0x3da398(0x1b2)]?a75_0x3dd758[_0x3da398(0x1b7)](_0x3da398(0x1a8)+_0xf69775[_0x3da398(0x1cf)][_0x3da398(0x1b2)]['length']+')'):a75_0x3dd758['gray']('(none)');console[_0x3da398(0x1df)](_0x3da398(0x19f)+_0x5f2526+'\x20\x20'+a75_0x3dd758[_0x3da398(0x1e3)]('('+_0xf69775['accessKey']['source']+')'));}}console[_0x3da398(0x1df)](),console[_0x3da398(0x1df)](a75_0x3dd758['bold']('\x20\x20API\x20Endpoints')),console[_0x3da398(0x1df)](a75_0x3dd758[_0x3da398(0x1e3)]('\x20\x20─'[_0x3da398(0x1b4)](0x1e))),console['log'](_0x3da398(0x1bf)+getApiDomain()),console[_0x3da398(0x1df)](_0x3da398(0x19b)+getUserDomain()),console[_0x3da398(0x1df)](_0x3da398(0x1e1)+getRuntimeDomain()),console[_0x3da398(0x1df)](),console[_0x3da398(0x1df)](a75_0x3dd758[_0x3da398(0x193)](_0x3da398(0x1c3))),console[_0x3da398(0x1df)](a75_0x3dd758[_0x3da398(0x1e3)](_0x3da398(0x1d8)['repeat'](0x1e)));if(_0x12055f){const _0x20547a=await getIsSessionValid();console[_0x3da398(0x1df)](_0x3da398(0x1b1)+(_0x20547a?a75_0x3dd758[_0x3da398(0x1b7)]('✓\x20Valid'):a75_0x3dd758[_0x3da398(0x1c1)](_0x3da398(0x1dc))));}else console[_0x3da398(0x1df)](_0x3da398(0x1b1)+a75_0x3dd758[_0x3da398(0x1c1)]('✗\x20Not\x20logged\x20in'));return console[_0x3da398(0x1df)](),{'ok':!![]};}export const doctorDefinition={'service':a75_0x1ec386(0x1af),'command':'check','description':a75_0x1ec386(0x1ca),'risk':a75_0x1ec386(0x1b5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a76_0x3556a8=a76_0x4e5a;function a76_0xecd6(){const _0x478e26=['20461650EeIzwN','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','global','检测到旧配置文件,正在自动升级...\x0a','project','write','appcode','3673630Ztlykk','string','\x20\x20Default:\x20','custom','validation','valid','env','6aaUzKL','run','log','map','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','defaultApp','message','init','yes','some','3947920vtrStL','boolean','nonInteractive','Target\x20environment','Use\x20`','\x0a✓\x20Successfully\x20initialized\x20','35OYXMsx','cwd','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','../../commands/project/init.js','bool','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','str','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','flagMissing','\x20\x20Env:\x20','Write\x20to\x20global\x20config\x20instead\x20of\x20project','\x20config','Usage:\x20','92112Ghehsq','toLocaleString','9AjDbgK','appCode','1034052tApAsT','654702wlUJzl','1377087GbRNIh'];a76_0xecd6=function(){return _0x478e26;};return a76_0xecd6();}(function(_0x5cdcf9,_0x2d4d7a){const _0x53eb83=a76_0x4e5a,_0x1475ae=_0x5cdcf9();while(!![]){try{const _0x815ea4=-parseInt(_0x53eb83(0x1d6))/0x1*(parseInt(_0x53eb83(0x1eb))/0x2)+-parseInt(_0x53eb83(0x1dc))/0x3+-parseInt(_0x53eb83(0x1da))/0x4+-parseInt(_0x53eb83(0x1e4))/0x5+parseInt(_0x53eb83(0x1db))/0x6*(parseInt(_0x53eb83(0x1c9))/0x7)+-parseInt(_0x53eb83(0x1f5))/0x8+parseInt(_0x53eb83(0x1d8))/0x9*(parseInt(_0x53eb83(0x1dd))/0xa);if(_0x815ea4===_0x2d4d7a)break;else _0x1475ae['push'](_0x1475ae['shift']());}catch(_0x20ba15){_0x1475ae['push'](_0x1475ae['shift']());}}}(a76_0xecd6,0x5a3f8));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';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(_0x1858b9){return{'appCode':_0x1858b9,'appName':_0x1858b9};}function writeInitConfig(_0x2c6f93,_0x5dd30e,_0x191c65){const _0x7815b8=a76_0x4e5a,_0x2c0ab6=resolveWriteConfigPath(_0x2c6f93),_0x40ff31=buildCanonicalProjectConfig({},{'appCodes':_0x5dd30e[_0x7815b8(0x1ee)](_0x4abf0d=>_0x4abf0d[_0x7815b8(0x1d9)]),'env':_0x191c65,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x7815b8(0x1d7)]()}});writeConfigFile(_0x2c0ab6,_0x40ff31);const _0x3f985d=_0x2c6f93===_0x7815b8(0x1df)?_0x7815b8(0x1df):'project';console[_0x7815b8(0x1ed)](_0x7815b8(0x1fa)+_0x3f985d+_0x7815b8(0x1d4)),console[_0x7815b8(0x1ed)]('\x20\x20Apps:\x20'+_0x5dd30e[_0x7815b8(0x1ee)](_0x8831f5=>_0x8831f5['appCode'])['join'](',\x20')),console['log'](_0x7815b8(0x1e6)+_0x40ff31[_0x7815b8(0x1f0)]),console[_0x7815b8(0x1ed)](_0x7815b8(0x1d2)+_0x40ff31['env']),console[_0x7815b8(0x1ed)]('\x20\x20Config:\x20'+_0x2c0ab6);}function a76_0x4e5a(_0x28cdbe,_0x2de70e){_0x28cdbe=_0x28cdbe-0x1c9;const _0xecd6a9=a76_0xecd6();let _0x4e5ac0=_0xecd6a9[_0x28cdbe];return _0x4e5ac0;}async function runSmartInit(_0x5bc728){const _0x53d380=a76_0x4e5a,_0xb8d953=process[_0x53d380(0x1ca)](),_0x32f4e1=_0x5bc728['bool'](_0x53d380(0x1df))?'global':_0x53d380(0x1e1),_0x43c8e2=_0x5bc728[_0x53d380(0x1cf)](_0x53d380(0x1ea))||'production',_0x426717=_0x5bc728['str'](_0x53d380(0x1e3))||undefined,_0x284810=_0x5bc728['bool'](_0x53d380(0x1e1));if(_0x284810){const {initConfig:_0x7425fa}=await import(_0x53d380(0x1cc));return _0x7425fa({'appcode':_0x426717,'env':_0x43c8e2,'autoYes':_0x5bc728[_0x53d380(0x1cd)](_0x53d380(0x1f3))});}if(_0x32f4e1===_0x53d380(0x1e1)){const _0x394752=existsSync(resolve(_0xb8d953,NEW_CONFIG_NAME)),_0x11909c=LEGACY_CONFIG_NAMES[_0x53d380(0x1f4)](_0x2c9dfa=>existsSync(resolve(_0xb8d953,_0x2c9dfa)));if(_0x11909c&&!_0x394752)return console[_0x53d380(0x1ed)](_0x53d380(0x1e0)),upgradeApp(_0x5bc728[_0x53d380(0x1f7)],{'yes':_0x5bc728[_0x53d380(0x1cd)](_0x53d380(0x1f3))});if(_0x394752)throw CliErrors[_0x53d380(0x1e8)](_0x53d380(0x1ef),_0x53d380(0x1f9)+CLI_BIN_NAME+_0x53d380(0x1cb));}if(_0x426717){const _0x4e344b=validateAppcode(_0x426717);if(!_0x4e344b[_0x53d380(0x1e9)])throw CliErrors[_0x53d380(0x1e8)](_0x4e344b[_0x53d380(0x1f1)]);writeInitConfig(_0x32f4e1,[syntheticApp(_0x426717)],_0x43c8e2);return;}if(_0x5bc728['nonInteractive'])throw CliErrors[_0x53d380(0x1d1)](_0x53d380(0x1e3),_0x53d380(0x1d5)+CLI_BIN_NAME+_0x53d380(0x1de));const _0x481e35=getCookie(),_0x58b779=await selectMultipleApps(_0x481e35),_0x38e5c2=_0x58b779===_0x53d380(0x1e7)?[syntheticApp(await promptCustomAppcode())]:_0x58b779;writeInitConfig(_0x32f4e1,_0x38e5c2,_0x43c8e2);}const initFlags=[{'name':'global','type':a76_0x3556a8(0x1f6),'description':a76_0x3556a8(0x1d3),'default':![]},{'name':'env','type':a76_0x3556a8(0x1e5),'description':a76_0x3556a8(0x1f8),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':a76_0x3556a8(0x1e5),'description':'App\x20code\x20to\x20initialize\x20with'},{'name':a76_0x3556a8(0x1e1),'type':a76_0x3556a8(0x1f6),'description':a76_0x3556a8(0x1d0),'default':![]},{'name':a76_0x3556a8(0x1f3),'type':a76_0x3556a8(0x1f6),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a76_0x3556a8(0x1f2),'command':a76_0x3556a8(0x1ec),'description':a76_0x3556a8(0x1ce),'risk':a76_0x3556a8(0x1e2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x285aa6){return await runSmartInit(_0x285aa6),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a77_0x2720(){const _0x17b8e1=['32jMjchC','742932XqDLXJ','8298648yzJBWU','2094280RSASck','188IpprFN','7106515rrKLGJ','1902355SWuZgK','15796737iyzVan','103434FSsEoF'];a77_0x2720=function(){return _0x17b8e1;};return a77_0x2720();}(function(_0x114aae,_0xd44541){const _0x495733=a77_0x3609,_0x1e5bed=_0x114aae();while(!![]){try{const _0x3f6d79=parseInt(_0x495733(0x137))/0x1+-parseInt(_0x495733(0x139))/0x2+-parseInt(_0x495733(0x135))/0x3*(parseInt(_0x495733(0x13a))/0x4)+-parseInt(_0x495733(0x132))/0x5+parseInt(_0x495733(0x138))/0x6+parseInt(_0x495733(0x133))/0x7*(parseInt(_0x495733(0x136))/0x8)+parseInt(_0x495733(0x134))/0x9;if(_0x3f6d79===_0xd44541)break;else _0x1e5bed['push'](_0x1e5bed['shift']());}catch(_0x53a15f){_0x1e5bed['push'](_0x1e5bed['shift']());}}}(a77_0x2720,0xd6b18));function a77_0x3609(_0xec7168,_0x25d8ce){_0xec7168=_0xec7168-0x132;const _0x272003=a77_0x2720();let _0x36091f=_0x272003[_0xec7168];return _0x36091f;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a78_0x2386f0=a78_0x1566;(function(_0x2da9dd,_0x1f463b){const _0x378c62=a78_0x1566,_0x44890c=_0x2da9dd();while(!![]){try{const _0x1e0d52=parseInt(_0x378c62(0x182))/0x1+-parseInt(_0x378c62(0x195))/0x2+-parseInt(_0x378c62(0x18c))/0x3+-parseInt(_0x378c62(0x18f))/0x4+parseInt(_0x378c62(0x17e))/0x5+-parseInt(_0x378c62(0x192))/0x6+parseInt(_0x378c62(0x190))/0x7;if(_0x1e0d52===_0x1f463b)break;else _0x44890c['push'](_0x44890c['shift']());}catch(_0x169de2){_0x44890c['push'](_0x44890c['shift']());}}}(a78_0x46ab,0x887d6));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a78_0x46ab(){const _0x55d9f8=['slice','replace','service','789416FfoSNI','\x20bug?\x20Help\x20us\x20fix\x20it:','Hit\x20a\x20','length','join','validation_error','network_error','\x20\x20Set\x20','not_in_project','\x22\x20\x5c','2304504FEtHWy','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','report','1759056Lvlssy','7537754ZEAISr','issue','1300140tTNceh','config_missing','unknown_command','388788QdKSVM','cancelled','has','code','\x20issue\x20report\x20\x5c','1559200vowOdj'];a78_0x46ab=function(){return _0x55d9f8;};return a78_0x46ab();}export const NUDGE_OPT_OUT_ENV='RABETBASE_DISABLE_ISSUE_NUDGE';const NUDGE_SUPPRESSED_CODES=new Set([a78_0x2386f0(0x196),'auth_required',a78_0x2386f0(0x193),a78_0x2386f0(0x18a),a78_0x2386f0(0x194),'flag_missing',a78_0x2386f0(0x187),a78_0x2386f0(0x188)]),defaultWriter=_0x47d8be=>{process['stderr']['write'](_0x47d8be);};export function shouldNudgeForError(_0x97e54c,_0x161ce5){const _0x114ea4=a78_0x2386f0;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x161ce5[_0x114ea4(0x181)]===_0x114ea4(0x191)&&_0x161ce5['command']===_0x114ea4(0x18e))return![];if(_0x97e54c instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x114ea4(0x197)](_0x97e54c[_0x114ea4(0x17c)]);return!![];}export function printIssueReportNudgeForError(_0x535a39,_0x54891a,_0x2b962f=defaultWriter){if(!shouldNudgeForError(_0x535a39,_0x54891a))return;const _0x30eda=buildSuggestedTitle(_0x535a39,_0x54891a);_0x2b962f(formatNudge(_0x30eda));}function buildSuggestedTitle(_0x5ba589,_0x4af10d){const _0x1f424f=a78_0x2386f0,_0x5afbc5=_0x5ba589 instanceof Error?_0x5ba589['message']:String(_0x5ba589),_0x54eb7c=_0x5afbc5[_0x1f424f(0x180)](/[\r\n]+/g,'\x20')[_0x1f424f(0x180)](/\s+/g,'\x20')['trim']()[_0x1f424f(0x17f)](0x0,0x78)[_0x1f424f(0x180)](/"/g,'\x5c\x22'),_0x17d542=CLI_BIN_NAME+'\x20'+_0x4af10d[_0x1f424f(0x181)]+'\x20'+_0x4af10d['command'];return _0x54eb7c[_0x1f424f(0x185)]>0x0?_0x17d542+':\x20'+_0x54eb7c:_0x17d542;}function a78_0x1566(_0x492c92,_0x3403d8){_0x492c92=_0x492c92-0x17c;const _0x46ab4d=a78_0x46ab();let _0x156672=_0x46ab4d[_0x492c92];return _0x156672;}function formatNudge(_0x5629f8){const _0x31fc67=a78_0x2386f0;return['',_0x31fc67(0x184)+CLI_BIN_NAME+_0x31fc67(0x183),'\x20\x20'+CLI_BIN_NAME+_0x31fc67(0x17d),'\x20\x20\x20\x20--title\x20\x22'+_0x5629f8+_0x31fc67(0x18b),_0x31fc67(0x18d),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)',_0x31fc67(0x189)+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.',''][_0x31fc67(0x186)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a79_0x18ea96=a79_0x3564;(function(_0x29372c,_0x2fb97c){const _0x409299=a79_0x3564,_0x4a10d4=_0x29372c();while(!![]){try{const _0x1c4f73=parseInt(_0x409299(0x15e))/0x1*(parseInt(_0x409299(0x16f))/0x2)+parseInt(_0x409299(0x172))/0x3*(parseInt(_0x409299(0x167))/0x4)+parseInt(_0x409299(0x166))/0x5+-parseInt(_0x409299(0x16d))/0x6*(parseInt(_0x409299(0x150))/0x7)+-parseInt(_0x409299(0x175))/0x8+-parseInt(_0x409299(0x16a))/0x9*(-parseInt(_0x409299(0x173))/0xa)+-parseInt(_0x409299(0x170))/0xb;if(_0x1c4f73===_0x2fb97c)break;else _0x4a10d4['push'](_0x4a10d4['shift']());}catch(_0x492d09){_0x4a10d4['push'](_0x4a10d4['shift']());}}}(a79_0x47b4,0x7f2b6));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';function a79_0x3564(_0x27b2f3,_0x2a8503){_0x27b2f3=_0x27b2f3-0x144;const _0x47b464=a79_0x47b4();let _0x3564a1=_0x47b464[_0x27b2f3];return _0x3564a1;}import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a79_0x18ea96(0x14e);export const issueReport={'service':'issue','command':a79_0x18ea96(0x17d),'description':a79_0x18ea96(0x17a),'risk':a79_0x18ea96(0x163),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a79_0x18ea96(0x16c),'flags':[{'name':a79_0x18ea96(0x146),'type':'string','required':!![],'description':'One-line\x20issue\x20summary'},{'name':a79_0x18ea96(0x17b),'type':'string','description':a79_0x18ea96(0x17c)},{'name':DESCRIPTION_FILE_FLAG,'type':a79_0x18ea96(0x15c),'description':a79_0x18ea96(0x157)}],async 'validate'(_0x58353e){const _0x59a2a7=a79_0x18ea96,_0x3e23e5=_0x58353e[_0x59a2a7(0x156)](_0x59a2a7(0x146))[_0x59a2a7(0x159)](),_0x11e0ec=_0x58353e[_0x59a2a7(0x156)](_0x59a2a7(0x17b))[_0x59a2a7(0x159)](),_0x2f012f=_0x58353e[_0x59a2a7(0x156)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x3e23e5)throw CliErrors[_0x59a2a7(0x14a)](_0x59a2a7(0x146),'Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x524c15=_0x11e0ec[_0x59a2a7(0x151)]>0x0,_0x143049=_0x2f012f[_0x59a2a7(0x151)]>0x0;if(_0x524c15===_0x143049)throw CliErrors[_0x59a2a7(0x14b)](_0x59a2a7(0x144),'Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x143049){const _0x13cb41=resolve(process['cwd'](),_0x2f012f);if(!existsSync(_0x13cb41))throw CliErrors[_0x59a2a7(0x14b)](_0x59a2a7(0x162)+_0x13cb41);}},async 'dryRun'(_0x4f7b97){const _0x2d8d99=a79_0x18ea96,_0x4924ca=await prepareIssueReport(_0x4f7b97);return{'method':_0x2d8d99(0x15f),'url':_0x2d8d99(0x148)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4924ca[_0x2d8d99(0x146)],'issue.description':_0x4924ca[_0x2d8d99(0x17b)],'issue.description_original_bytes':_0x4924ca['sanitize']['originalBytes'],'issue.description_truncated':_0x4924ca['sanitize'][_0x2d8d99(0x16e)],'issue.description_redactions':_0x4924ca[_0x2d8d99(0x174)][_0x2d8d99(0x149)],'issue.description_redaction_kinds':_0x4924ca[_0x2d8d99(0x174)]['redactionKinds'][_0x2d8d99(0x164)](',')}},'description':[_0x2d8d99(0x14d),_0x2d8d99(0x171)+_0x4924ca[_0x2d8d99(0x161)],_0x4924ca[_0x2d8d99(0x177)]?_0x2d8d99(0x145)+_0x4924ca['descriptionFilePath']:null,_0x4924ca[_0x2d8d99(0x174)][_0x2d8d99(0x16e)]?_0x2d8d99(0x165)+_0x4924ca['sanitize'][_0x2d8d99(0x176)]+_0x2d8d99(0x16b):null,_0x4924ca[_0x2d8d99(0x174)][_0x2d8d99(0x149)]>0x0?'redactions:\x20'+_0x4924ca[_0x2d8d99(0x174)][_0x2d8d99(0x149)]+'\x20('+_0x4924ca[_0x2d8d99(0x174)][_0x2d8d99(0x14f)][_0x2d8d99(0x164)](',\x20')+')':null][_0x2d8d99(0x15a)](Boolean)['join']('\x0a')};},async 'execute'(_0x1165c5){const _0x3d5448=a79_0x18ea96,_0x4e38cb=await prepareIssueReport(_0x1165c5);try{await sendPlatformIssueCollectLog({'title':_0x4e38cb['title'],'description':_0x4e38cb['description'],'sanitize':{'originalBytes':_0x4e38cb[_0x3d5448(0x174)][_0x3d5448(0x176)],'truncated':_0x4e38cb[_0x3d5448(0x174)][_0x3d5448(0x16e)],'redactionCount':_0x4e38cb[_0x3d5448(0x174)][_0x3d5448(0x149)],'redactionKinds':_0x4e38cb[_0x3d5448(0x174)][_0x3d5448(0x14f)]}});}catch(_0x46736a){throw CliErrors[_0x3d5448(0x15d)](_0x3d5448(0x160)+(_0x46736a instanceof Error?_0x46736a[_0x3d5448(0x14c)]:String(_0x46736a)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x4e38cb[_0x3d5448(0x174)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x3d5448(0x155),'issue.description',_0x3d5448(0x153),_0x3d5448(0x169),'issue.description_redactions',_0x3d5448(0x154)],'issue':{'title':_0x4e38cb['title'],'descriptionLength':_0x4e38cb['description'][_0x3d5448(0x151)],'descriptionSource':_0x4e38cb[_0x3d5448(0x161)],..._0x4e38cb[_0x3d5448(0x177)]?{'descriptionFile':_0x4e38cb[_0x3d5448(0x177)]}:{},'sanitize':{'originalBytes':_0x4e38cb[_0x3d5448(0x174)][_0x3d5448(0x176)],'truncated':_0x4e38cb[_0x3d5448(0x174)][_0x3d5448(0x16e)],'redactions':_0x4e38cb[_0x3d5448(0x174)][_0x3d5448(0x149)],'redactionKinds':_0x4e38cb[_0x3d5448(0x174)][_0x3d5448(0x14f)]}}}};}};function buildResultMessage(_0x52e468){const _0x458925=a79_0x18ea96,_0x2be80b=[];return _0x52e468[_0x458925(0x16e)]&&_0x2be80b[_0x458925(0x168)]('truncated\x20from\x20'+_0x52e468[_0x458925(0x176)]+_0x458925(0x16b)),_0x52e468['redactionCount']>0x0&&_0x2be80b[_0x458925(0x168)](_0x458925(0x179)+_0x52e468[_0x458925(0x149)]+_0x458925(0x152)+_0x52e468[_0x458925(0x14f)]['join'](',\x20')),_0x2be80b[_0x458925(0x151)]===0x0?'Platform\x20issue\x20reported':_0x458925(0x158)+_0x2be80b[_0x458925(0x164)](';\x20')+')';}function a79_0x47b4(){const _0x1ae62a=['string','apiError','38yoTzUL','POST','Failed\x20to\x20report\x20platform\x20issue:\x20','descriptionSource','File\x20not\x20found:\x20','write','join','truncated:\x20original\x20','4105455QuzJSc','4lukTON','push','issue.description_truncated','18ibsrpI','\x20bytes','compress','30rQbPHM','truncated','46564aYSMKF','21112905YeziGN','descriptionSource:\x20','2690349lgXFTX','2375470lEGiiW','sanitize','4042064HlPDyA','originalBytes','descriptionFilePath','Issue\x20description\x20cannot\x20be\x20empty.','redacted\x20','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','description','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','report','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','descriptionFile:\x20','title','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','otel://','redactionCount','flagMissing','validation','message','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','description-file','redactionKinds','185059AukOOj','length','\x20secret(s):\x20','issue.description_original_bytes','issue.description_redaction_kinds','issue.title','str','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','Platform\x20issue\x20reported\x20(','trim','filter','file'];a79_0x47b4=function(){return _0x1ae62a;};return a79_0x47b4();}async function prepareIssueReport(_0x15e8b8){const _0x4acc9e=a79_0x18ea96,_0x201925=_0x15e8b8[_0x4acc9e(0x156)]('title')['trim'](),_0xa5869b=_0x15e8b8[_0x4acc9e(0x156)](_0x4acc9e(0x17b)),_0x541958=_0x15e8b8[_0x4acc9e(0x156)](DESCRIPTION_FILE_FLAG)[_0x4acc9e(0x159)]();if(!_0x541958){const _0x183bc1=_0xa5869b;if(!_0x183bc1[_0x4acc9e(0x159)]())throw CliErrors[_0x4acc9e(0x14b)](_0x4acc9e(0x178),'Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');const _0x522226=sanitizeIssueDescription(_0x183bc1);return{'title':_0x201925,'description':_0x522226[_0x4acc9e(0x17b)],'descriptionSource':'inline','sanitize':_0x522226};}const _0x5c9868=resolve(process['cwd'](),_0x541958),_0x356a33=await readFile(_0x5c9868,'utf8');if(!_0x356a33['trim']())throw CliErrors[_0x4acc9e(0x14b)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x5c9868,_0x4acc9e(0x147));const _0x4f661=sanitizeIssueDescription(_0x356a33);return{'title':_0x201925,'description':_0x4f661['description'],'descriptionSource':_0x4acc9e(0x15b),'descriptionFilePath':_0x5c9868,'sanitize':_0x4f661};}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a80_0x4b90e1=a80_0x55e2;function a80_0x1b86(){const _0x2aaa68=['REDACTED:access-key','private-key','9388092vzXEiy','REDACTED:bearer-jwt','2246178GutHQq','5581112mRrvPO','pattern','REDACTED:cookie','7UnMBTu','cookie','authorization','kind','toString','4687868KHfbDx','8617105LYIdeW','utf8','37838vCBrrJ','10171818YPYxXK','REDACTED:private-key','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','byteLength','includes','14ydrbiB','from','push','string','label','access-key'];a80_0x1b86=function(){return _0x2aaa68;};return a80_0x1b86();}(function(_0x3d6524,_0x19c0f3){const _0x33c9fd=a80_0x55e2,_0x1cb37c=_0x3d6524();while(!![]){try{const _0x9b0dbf=-parseInt(_0x33c9fd(0x9b))/0x1*(parseInt(_0x33c9fd(0xa3))/0x2)+-parseInt(_0x33c9fd(0x97))/0x3+-parseInt(_0x33c9fd(0xa0))/0x4+parseInt(_0x33c9fd(0xa1))/0x5+parseInt(_0x33c9fd(0x95))/0x6+parseInt(_0x33c9fd(0x8d))/0x7*(-parseInt(_0x33c9fd(0x98))/0x8)+parseInt(_0x33c9fd(0xa4))/0x9;if(_0x9b0dbf===_0x19c0f3)break;else _0x1cb37c['push'](_0x1cb37c['shift']());}catch(_0x26deca){_0x1cb37c['push'](_0x1cb37c['shift']());}}}(a80_0x1b86,0xeccad));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;function a80_0x55e2(_0x232df7,_0x1b6974){_0x232df7=_0x232df7-0x8c;const _0x1b86e5=a80_0x1b86();let _0x55e248=_0x1b86e5[_0x232df7];return _0x55e248;}const TRUNCATION_NOTICE=a80_0x4b90e1(0xa6),REDACTION_RULES=[{'kind':a80_0x4b90e1(0x9c),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a80_0x4b90e1(0x9a)},{'kind':a80_0x4b90e1(0x9d),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':a80_0x4b90e1(0x94),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a80_0x4b90e1(0xa5)},{'kind':a80_0x4b90e1(0x92),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a80_0x4b90e1(0x93)},{'kind':'password','pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':'bearer-jwt','pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a80_0x4b90e1(0x96)}];export function sanitizeIssueDescription(_0x538d93){const _0x1d8206=a80_0x4b90e1,_0x22385c=Buffer['byteLength'](_0x538d93,_0x1d8206(0xa2)),_0x503909=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x15fbcf=_0x538d93,_0x5d22e8=0x0;const _0x542dff=[];if(!_0x503909)for(const _0x4dd391 of REDACTION_RULES){let _0x41211f=0x0;_0x15fbcf=_0x15fbcf['replace'](_0x4dd391[_0x1d8206(0x99)],(_0x40ada9,_0x5a1740)=>{const _0x43e28f=_0x1d8206;_0x41211f+=0x1;const _0x37d239=typeof _0x5a1740===_0x43e28f(0x90)?_0x5a1740:'';return _0x37d239+'['+_0x4dd391[_0x43e28f(0x91)]+']';}),_0x41211f>0x0&&(_0x5d22e8+=_0x41211f,!_0x542dff[_0x1d8206(0x8c)](_0x4dd391[_0x1d8206(0x9e)])&&_0x542dff[_0x1d8206(0x8f)](_0x4dd391[_0x1d8206(0x9e)]));}let _0x1bb075=![];if(Buffer[_0x1d8206(0xa7)](_0x15fbcf,'utf8')>ISSUE_DESCRIPTION_MAX_BYTES){_0x1bb075=!![];const _0x58b810=Buffer['byteLength'](TRUNCATION_NOTICE,_0x1d8206(0xa2)),_0x43103c=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x58b810);_0x15fbcf=sliceUtf8Bytes(_0x15fbcf,_0x43103c)+TRUNCATION_NOTICE;}return{'description':_0x15fbcf,'originalBytes':_0x22385c,'truncated':_0x1bb075,'redactionCount':_0x5d22e8,'redactionKinds':_0x542dff};}function sliceUtf8Bytes(_0x4684c7,_0x5f460d){const _0x1a5c46=a80_0x4b90e1;if(_0x5f460d<=0x0)return'';const _0x441790=Buffer[_0x1a5c46(0x8e)](_0x4684c7,_0x1a5c46(0xa2));if(_0x441790[_0x1a5c46(0xa7)]<=_0x5f460d)return _0x4684c7;let _0x56a032=_0x5f460d;while(_0x56a032>0x0){const _0x3fe882=_0x441790[_0x56a032];if(_0x3fe882===undefined||(_0x3fe882&0xc0)!==0x80)break;_0x56a032-=0x1;}return _0x441790['subarray'](0x0,_0x56a032)[_0x1a5c46(0x9f)](_0x1a5c46(0xa2));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a81_0x2defab=a81_0x77c3;(function(_0x11d9f8,_0x55f072){const _0x4ffaeb=a81_0x77c3,_0x434f9f=_0x11d9f8();while(!![]){try{const _0x4b1be6=parseInt(_0x4ffaeb(0x17a))/0x1+parseInt(_0x4ffaeb(0x18b))/0x2*(-parseInt(_0x4ffaeb(0x188))/0x3)+-parseInt(_0x4ffaeb(0x174))/0x4+-parseInt(_0x4ffaeb(0x182))/0x5*(parseInt(_0x4ffaeb(0x177))/0x6)+parseInt(_0x4ffaeb(0x178))/0x7*(-parseInt(_0x4ffaeb(0x17b))/0x8)+parseInt(_0x4ffaeb(0x18f))/0x9+parseInt(_0x4ffaeb(0x18a))/0xa;if(_0x4b1be6===_0x55f072)break;else _0x434f9f['push'](_0x434f9f['shift']());}catch(_0x24d2ae){_0x434f9f['push'](_0x434f9f['shift']());}}}(a81_0x43ad,0x5f86a));import{logger}from'../../utils/logger.js';function a81_0x43ad(){const _0x34b9ac=['readLogs','show','1850919oGwaMh','keys','8716390jnEIav','2QNkERy','forEach','\x20\x20\x20Time:\x20','toLocaleString','1979100GiJKGV','en-US','View\x20command\x20history\x20logs','message','length','command','1742968qZegqW','*\x20Lovrabet\x20CLI\x20logs:\x0a','clearLogs','6054VbSPdG','28rwQQPq','*\x20No\x20logs\x20found','697187XKVCGP','259640vldEdX','details','level','write','logs','log','timestamp','1065VvyEnq','warn','Clear\x20command\x20history\x20logs','clear'];a81_0x43ad=function(){return _0x34b9ac;};return a81_0x43ad();}function a81_0x77c3(_0x100732,_0x3251ea){_0x100732=_0x100732-0x172;const _0x43ad68=a81_0x43ad();let _0x77c325=_0x43ad68[_0x100732];return _0x77c325;}function printLogs(_0x362fd1){const _0x21c154=a81_0x77c3;if(_0x362fd1[_0x21c154(0x172)]===0x0){console[_0x21c154(0x180)](_0x21c154(0x179));return;}console[_0x21c154(0x180)](_0x21c154(0x175)),_0x362fd1[_0x21c154(0x18c)]((_0x469031,_0x210907)=>{const _0x5194c6=_0x21c154,_0x363c49=new Date(_0x469031[_0x5194c6(0x181)])[_0x5194c6(0x18e)](_0x5194c6(0x190)),_0x4627c2=_0x469031[_0x5194c6(0x17d)]==='success'?'√':_0x469031[_0x5194c6(0x17d)]==='error'?'×':_0x469031[_0x5194c6(0x17d)]===_0x5194c6(0x183)?'!':'i';console[_0x5194c6(0x180)](_0x210907+0x1+'.\x20'+_0x4627c2+'\x20['+_0x469031[_0x5194c6(0x173)]+']\x20'+_0x469031[_0x5194c6(0x192)]),console['log'](_0x5194c6(0x18d)+_0x363c49),_0x469031['duration']&&console[_0x5194c6(0x180)]('\x20\x20\x20Duration:\x20'+_0x469031['duration']+'ms'),_0x469031[_0x5194c6(0x17c)]&&Object[_0x5194c6(0x189)](_0x469031[_0x5194c6(0x17c)])[_0x5194c6(0x172)]>0x0&&console[_0x5194c6(0x180)]('\x20\x20\x20Details:\x20'+JSON['stringify'](_0x469031[_0x5194c6(0x17c)],null,0x2)),console[_0x5194c6(0x180)]('');});}export const logsDefinitions=[{'service':a81_0x2defab(0x17f),'command':a81_0x2defab(0x187),'description':a81_0x2defab(0x191),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x58525e){const _0x5a99c2=a81_0x2defab;return printLogs(logger[_0x5a99c2(0x186)]()),{'ok':!![]};}},{'service':a81_0x2defab(0x17f),'command':a81_0x2defab(0x185),'description':a81_0x2defab(0x184),'risk':a81_0x2defab(0x17e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x556aef){const _0xb580a0=a81_0x2defab;return logger[_0xb580a0(0x176)](),console['log']('*\x20Logs\x20cleared'),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3053f8,_0x1d7576){const _0x40a9e9=a82_0x39e2,_0x9b474b=_0x3053f8();while(!![]){try{const _0x3c61a9=-parseInt(_0x40a9e9(0x1bd))/0x1+-parseInt(_0x40a9e9(0x1c4))/0x2+parseInt(_0x40a9e9(0x1c3))/0x3*(-parseInt(_0x40a9e9(0x1c5))/0x4)+parseInt(_0x40a9e9(0x1c7))/0x5*(parseInt(_0x40a9e9(0x1be))/0x6)+-parseInt(_0x40a9e9(0x1c2))/0x7*(parseInt(_0x40a9e9(0x1c6))/0x8)+-parseInt(_0x40a9e9(0x1c0))/0x9+-parseInt(_0x40a9e9(0x1bf))/0xa*(-parseInt(_0x40a9e9(0x1c1))/0xb);if(_0x3c61a9===_0x1d7576)break;else _0x9b474b['push'](_0x9b474b['shift']());}catch(_0x85a5f6){_0x9b474b['push'](_0x9b474b['shift']());}}}(a82_0x2068,0xc6c3a));import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';function a82_0x39e2(_0x2521a2,_0x38819d){_0x2521a2=_0x2521a2-0x1bd;const _0x20684e=a82_0x2068();let _0x39e2d4=_0x20684e[_0x2521a2];return _0x39e2d4;}function a82_0x2068(){const _0x532894=['5wUNKcb','711438vmVKCO','8980938tGSbxb','339950muXczv','14412591ovTMqF','1331TTkQgu','6263558TYbilc','602187RjAmup','2775440wGbouM','4QIFXvz','8bjukFm'];a82_0x2068=function(){return _0x532894;};return a82_0x2068();}export const menuDefinitions=[menuSync,menuUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x396c97,_0x19bad4){const _0x29f0e5=a83_0x5334,_0xfe7cbb=_0x396c97();while(!![]){try{const _0x41572f=-parseInt(_0x29f0e5(0x6a))/0x1*(parseInt(_0x29f0e5(0x67))/0x2)+parseInt(_0x29f0e5(0x80))/0x3+-parseInt(_0x29f0e5(0x74))/0x4*(parseInt(_0x29f0e5(0x6e))/0x5)+parseInt(_0x29f0e5(0x70))/0x6*(parseInt(_0x29f0e5(0x73))/0x7)+parseInt(_0x29f0e5(0x81))/0x8+parseInt(_0x29f0e5(0x71))/0x9+parseInt(_0x29f0e5(0x66))/0xa;if(_0x41572f===_0x19bad4)break;else _0xfe7cbb['push'](_0xfe7cbb['shift']());}catch(_0x369c8c){_0xfe7cbb['push'](_0xfe7cbb['shift']());}}}(a83_0x27e8,0xeba86));function strWidth(_0x1c7cd4){const _0x4dc243=a83_0x5334;let _0x34f1a0=0x0;for(const _0x3c619b of _0x1c7cd4){_0x34f1a0+=/[\u4e00-\u9fa5]/[_0x4dc243(0x7e)](_0x3c619b)?0x2:0x1;}return _0x34f1a0;}function a83_0x5334(_0x887bbf,_0x188c50){_0x887bbf=_0x887bbf-0x66;const _0x27e8be=a83_0x27e8();let _0x533443=_0x27e8be[_0x887bbf];return _0x533443;}function padRight(_0x12d4da,_0x42fea2){const _0x33e06f=a83_0x5334,_0x367797=strWidth(_0x12d4da);return _0x12d4da+'\x20'['repeat'](Math[_0x33e06f(0x82)](0x0,_0x42fea2-_0x367797));}export function renderCompareTable(_0x1f7fb1,_0x2a42bb={}){const _0x1526d3=a83_0x5334;if(_0x1f7fb1['length']===0x0)return'';const _0x4e6409=_0x2a42bb[_0x1526d3(0x7f)]??!![],_0x3cb7cd=Math['max'](0x1e,..._0x1f7fb1['map'](_0x5ee57a=>strWidth(_0x5ee57a['label']))),_0x4008f9=0x4,_0x1ff4af=[],_0x12353b='\x20\x20'+padRight(_0x1526d3(0x7b),_0x3cb7cd),_0x27b54c=padRight(_0x1526d3(0x69),_0x4008f9),_0xf5c28a=_0x4e6409?'\x20\x20'+padRight(_0x1526d3(0x7a),_0x4008f9):'';_0x1ff4af[_0x1526d3(0x7c)](_0x12353b+'\x20\x20'+_0x27b54c+(_0x4e6409?_0xf5c28a:'')),_0x1ff4af[_0x1526d3(0x7c)]('\x20\x20'+'─'[_0x1526d3(0x7d)](_0x3cb7cd)+'\x20\x20'+'─'[_0x1526d3(0x7d)](_0x4008f9)+(_0x4e6409?'\x20\x20'+'─'[_0x1526d3(0x7d)](_0x4008f9):''));for(const _0x53e184 of _0x1f7fb1){const _0x31edc2=padRight(_0x53e184[_0x1526d3(0x75)],_0x3cb7cd),_0x411e33=_0x53e184['local']?'✓':'✗',_0x2ad084=padRight(_0x411e33,_0x4008f9);let _0x227315='\x20\x20'+_0x31edc2+'\x20\x20'+_0x2ad084;if(_0x4e6409){const _0x5aaadc=_0x53e184[_0x1526d3(0x83)]?'✓':'✗';_0x227315+='\x20\x20'+padRight(_0x5aaadc,_0x4008f9);}_0x1ff4af[_0x1526d3(0x7c)](_0x227315);}return _0x1ff4af[_0x1526d3(0x77)]('\x0a');}export function renderSyncSummary(_0x52262d,_0x5b21ce){const _0x4f0fe6=a83_0x5334;if(_0x52262d[_0x4f0fe6(0x68)]===0x0)return _0x5b21ce?'\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.':_0x4f0fe6(0x6c);const _0x57188e=['\x20\x20'+_0x52262d[_0x4f0fe6(0x68)]+_0x4f0fe6(0x76)];for(const _0x5d9672 of _0x52262d){_0x57188e[_0x4f0fe6(0x7c)](_0x4f0fe6(0x72)+_0x5d9672['label']+'\x20('+_0x5d9672['path']+')');}return _0x57188e[_0x4f0fe6(0x77)]('\x0a');}function a83_0x27e8(){const _0x3beca9=['\x20\x20No\x20pages\x20to\x20sync.','\x20\x20\x20\x20JS:\x20\x20','415abIJKh','(unchanged)','781794paZGtw','1930905kByPLQ','\x20\x20\x20\x20•\x20','28xAdTuz','22892nyagAS','label','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','join','\x20\x20\x20\x20CSS:\x20','\x20\x20Affected\x20menus:\x20','Platform','Menu\x20Name','push','repeat','test','showOnline','4732857sdYgMu','6702120epNXmJ','max','online','1474750vpFziq','26yqVtvy','length','Local','142949UwLaxI','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:'];a83_0x27e8=function(){return _0x3beca9;};return a83_0x27e8();}export function renderUpdateSummary(_0x50b337,_0x2cbed2){const _0x41acee=a83_0x5334;if(_0x50b337[_0x41acee(0x68)]===0x0)return'\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.';const _0x72d1df=['\x20\x20'+_0x50b337[_0x41acee(0x68)]+_0x41acee(0x6b),_0x41acee(0x6d)+(_0x2cbed2[0x0]??_0x41acee(0x6f)),_0x41acee(0x78)+(_0x2cbed2[0x1]??'(unchanged)'),'',_0x41acee(0x79)+_0x50b337['join'](',\x20')];return _0x72d1df[_0x41acee(0x77)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xaf2c34,_0x1f91c8){var _0x4486c8=a84_0x52ff,_0x436dba=_0xaf2c34();while(!![]){try{var _0x374c1f=parseInt(_0x4486c8(0x186))/0x1+-parseInt(_0x4486c8(0x18c))/0x2+-parseInt(_0x4486c8(0x188))/0x3+-parseInt(_0x4486c8(0x185))/0x4*(parseInt(_0x4486c8(0x189))/0x5)+parseInt(_0x4486c8(0x183))/0x6+-parseInt(_0x4486c8(0x18a))/0x7*(-parseInt(_0x4486c8(0x184))/0x8)+parseInt(_0x4486c8(0x187))/0x9*(parseInt(_0x4486c8(0x18b))/0xa);if(_0x374c1f===_0x1f91c8)break;else _0x436dba['push'](_0x436dba['shift']());}catch(_0x295f31){_0x436dba['push'](_0x436dba['shift']());}}}(a84_0x4566,0x76323));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';function a84_0x4566(){var _0x33c633=['387480FjkbKt','35784eXZHtA','2301764gxQEyj','402922btvtyB','29709KtfXtu','338802eaPQFO','5bDFGsr','1099vZtMra','230vrmMXx','146360RwnePr'];a84_0x4566=function(){return _0x33c633;};return a84_0x4566();}export*from'../../../commands/menu/shared/compare-table.js';function a84_0x52ff(_0x379294,_0x548011){_0x379294=_0x379294-0x183;var _0x456643=a84_0x4566();var _0x52ff1a=_0x456643[_0x379294];return _0x52ff1a;}export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
|