@lovrabet/rabetbase-cli 2.1.12-beta.4 → 2.1.12
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 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/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 +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a65_0x2404(){const _0x149caa=['Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','username','Database\x20username','dburl','databasePage','str','Database\x20password','Human-readable\x20description','8.0','1697935mJnrre','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','After\x20create,\x20start\x20schema\x20analysis','dbname','bool','dbversion','dbtype','autostart','dbparam','1406756YTspFg','write','2cGIVOe','136264pIyOoS','8131030KFNGPl','80215uukaiA','trim','validation','Host\x20and\x20port:\x20host:port','string','54ExeSJp','/smartapi/dblink/create','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','POST','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','message','dbdesc','Created\x20db\x20link\x20','join','216vSlCMI','519153CDCXUp','22316AgWxGA','password','[redacted]','Create\x20dblink','appCode'];a65_0x2404=function(){return _0x149caa;};return a65_0x2404();}const a65_0x1ca1aa=a65_0x3092;function a65_0x3092(_0x2baebd,_0x2d6f88){_0x2baebd=_0x2baebd-0x71;const _0x2404fe=a65_0x2404();let _0x30923a=_0x2404fe[_0x2baebd];return _0x30923a;}(function(_0x5593df,_0x3246ac){const _0x20c734=a65_0x3092,_0x5a72de=_0x5593df();while(!![]){try{const _0x33be16=-parseInt(_0x20c734(0x7c))/0x1+parseInt(_0x20c734(0x79))/0x2*(parseInt(_0x20c734(0x8c))/0x3)+parseInt(_0x20c734(0x77))/0x4+parseInt(_0x20c734(0x9b))/0x5+-parseInt(_0x20c734(0x8b))/0x6*(-parseInt(_0x20c734(0x8d))/0x7)+parseInt(_0x20c734(0x7a))/0x8*(parseInt(_0x20c734(0x81))/0x9)+-parseInt(_0x20c734(0x7b))/0xa;if(_0x33be16===_0x3246ac)break;else _0x5a72de['push'](_0x5a72de['shift']());}catch(_0x30a96e){_0x5a72de['push'](_0x5a72de['shift']());}}}(a65_0x2404,0x2de47));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':'create','description':a65_0x1ca1aa(0x86),'risk':a65_0x1ca1aa(0x78),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a65_0x1ca1aa(0x80),'required':!![],'description':a65_0x1ca1aa(0x92)},DB_TYPE_FLAG,{'name':a65_0x1ca1aa(0x73),'type':a65_0x1ca1aa(0x80),'description':'Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','default':a65_0x1ca1aa(0x9a)},{'name':'dburl','type':a65_0x1ca1aa(0x80),'required':!![],'description':a65_0x1ca1aa(0x7f)},{'name':a65_0x1ca1aa(0x93),'type':a65_0x1ca1aa(0x80),'required':!![],'description':a65_0x1ca1aa(0x94)},{'name':a65_0x1ca1aa(0x8e),'type':a65_0x1ca1aa(0x80),'required':!![],'description':a65_0x1ca1aa(0x98)},{'name':a65_0x1ca1aa(0x76),'type':'string','description':'Extra\x20JDBC-style\x20connection\x20parameters\x20string'},{'name':'dbdesc','type':a65_0x1ca1aa(0x80),'description':a65_0x1ca1aa(0x99)},{'name':'autostart','type':'boolean','description':a65_0x1ca1aa(0x9d),'default':![]}],async 'validate'(_0x1a1495){const _0x455e9a=a65_0x1ca1aa,_0xc1882c=_0x1a1495['str']('dburl')['trim']();if(!validateDbUrl(_0xc1882c))throw CliErrors[_0x455e9a(0x7e)]('Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22'+_0xc1882c+'\x22',_0x455e9a(0x83));},async 'dryRun'(_0x55f8d9){const _0x47f446=a65_0x1ca1aa,_0x3f6b0b={'appCode':_0x55f8d9['appCode'],'dbName':_0x55f8d9[_0x47f446(0x97)](_0x47f446(0x71)),'dbType':_0x55f8d9[_0x47f446(0x97)](_0x47f446(0x74)),'dbVersion':_0x55f8d9[_0x47f446(0x97)](_0x47f446(0x73))||_0x47f446(0x9a),'dbUrl':_0x55f8d9[_0x47f446(0x97)](_0x47f446(0x95))[_0x47f446(0x7d)](),'username':_0x55f8d9['str'](_0x47f446(0x93)),'password':_0x47f446(0x8f),..._0x55f8d9['str'](_0x47f446(0x76))?{'dbParam':_0x55f8d9['str'](_0x47f446(0x76))}:{},..._0x55f8d9[_0x47f446(0x97)](_0x47f446(0x88))?{'dbDesc':_0x55f8d9['str'](_0x47f446(0x88))}:{}};return{'method':_0x47f446(0x84),'url':_0x47f446(0x82),'body':_0x3f6b0b,'description':[_0x47f446(0x90),_0x55f8d9[_0x47f446(0x72)](_0x47f446(0x75))?_0x47f446(0x85):'No\x20follow-up\x20analysis'][_0x47f446(0x8a)]('\x0a')};},async 'execute'(_0x14473a){const _0x4e77bc=a65_0x1ca1aa,_0xe143d9={'appCode':_0x14473a[_0x4e77bc(0x91)],'dbName':_0x14473a[_0x4e77bc(0x97)](_0x4e77bc(0x71)),'dbType':_0x14473a[_0x4e77bc(0x97)](_0x4e77bc(0x74)),'dbVersion':_0x14473a['str']('dbversion')||_0x4e77bc(0x9a),'dbUrl':_0x14473a[_0x4e77bc(0x97)](_0x4e77bc(0x95))[_0x4e77bc(0x7d)](),'username':_0x14473a[_0x4e77bc(0x97)]('username'),'password':_0x14473a[_0x4e77bc(0x97)]('password'),..._0x14473a[_0x4e77bc(0x97)]('dbparam')?{'dbParam':_0x14473a[_0x4e77bc(0x97)]('dbparam')}:{},..._0x14473a['str'](_0x4e77bc(0x88))?{'dbDesc':_0x14473a[_0x4e77bc(0x97)](_0x4e77bc(0x88))}:{}},{id:_0x31718a,entity:_0x4a029e}=normalizeEntityWithIdResponse(await createDbLink(_0xe143d9));if(!_0x31718a)return{'ok':![],'message':_0x4e77bc(0x9c),'data':sanitizeDbLinkForOutput(_0x4a029e)};let _0x51bdd1,_0x3b0c1c;if(_0x14473a['bool'](_0x4e77bc(0x75)))try{_0x51bdd1=await startDbAnalysis(_0x31718a);}catch(_0x4ad25d){_0x3b0c1c=_0x4ad25d instanceof Error?_0x4ad25d[_0x4e77bc(0x87)]:String(_0x4ad25d);}const _0x4968ca=buildDbPageLinks(_0x14473a[_0x4e77bc(0x91)],_0x31718a),_0x469fea={'connection':sanitizeDbLinkForOutput(_0x4a029e),..._0x4968ca?{'links':{'databasePage':_0x4968ca[_0x4e77bc(0x96)]}}:{},..._0x51bdd1?{'analysisPlanId':_0x51bdd1}:{},..._0x3b0c1c?{'analysisStartWarning':_0x3b0c1c}:{}};let _0xf59d49;return _0x14473a[_0x4e77bc(0x72)](_0x4e77bc(0x75))?_0x3b0c1c?_0xf59d49='Created\x20db\x20link\x20'+_0x31718a+';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning':_0xf59d49=_0x4e77bc(0x89)+_0x31718a+'\x20and\x20started\x20analysis':_0xf59d49=_0x4e77bc(0x89)+_0x31718a,{'ok':!![],'data':_0x469fea,'message':_0xf59d49};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a66_0x4a0d1c=a66_0x3e0f;(function(_0xeb09ef,_0x21ed60){const _0x1d5058=a66_0x3e0f,_0x556eee=_0xeb09ef();while(!![]){try{const _0x4d5e79=-parseInt(_0x1d5058(0x121))/0x1*(parseInt(_0x1d5058(0x124))/0x2)+-parseInt(_0x1d5058(0x128))/0x3+parseInt(_0x1d5058(0x11e))/0x4+parseInt(_0x1d5058(0x129))/0x5*(-parseInt(_0x1d5058(0x125))/0x6)+-parseInt(_0x1d5058(0x11f))/0x7+-parseInt(_0x1d5058(0x123))/0x8+parseInt(_0x1d5058(0x126))/0x9;if(_0x4d5e79===_0x21ed60)break;else _0x556eee['push'](_0x556eee['shift']());}catch(_0x4c082a){_0x556eee['push'](_0x556eee['shift']());}}}(a66_0x2e41,0x8aef9));function a66_0x2e41(){const _0x8ca4b5=['high-risk-write','4072344QtZbvU','5062MAaeaa','2172JIWXIR','21927636RsAiwo','Deleted\x20db\x20link\x20','1224912lwXJfA','11230vStgJv','delete','3702260bCTMRq','7401989LBWMfc','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','2JuEQVj'];a66_0x2e41=function(){return _0x8ca4b5;};return a66_0x2e41();}import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a66_0x3e0f(_0x527b64,_0x32cf49){_0x527b64=_0x527b64-0x11e;const _0x2e41c9=a66_0x2e41();let _0x3e0f43=_0x2e41c9[_0x527b64];return _0x3e0f43;}export const dbDelete={'service':'db','command':a66_0x4a0d1c(0x12a),'description':a66_0x4a0d1c(0x120),'risk':a66_0x4a0d1c(0x122),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4c72c8){const _0x365df3=a66_0x4a0d1c,_0x8007bd=_0x4c72c8['num']('id');return await deleteDbLink(_0x8007bd),{'ok':!![],'data':{'id':_0x8007bd,'deleted':!![]},'message':_0x365df3(0x127)+_0x8007bd};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a67_0xfb4053=a67_0x2545;(function(_0x1883d4,_0x31e8b1){const _0x209c49=a67_0x2545,_0xd06c8c=_0x1883d4();while(!![]){try{const _0x205c2b=parseInt(_0x209c49(0x1f2))/0x1+-parseInt(_0x209c49(0x1f0))/0x2+parseInt(_0x209c49(0x1f6))/0x3*(-parseInt(_0x209c49(0x1f4))/0x4)+-parseInt(_0x209c49(0x1f1))/0x5*(parseInt(_0x209c49(0x1f7))/0x6)+-parseInt(_0x209c49(0x1ea))/0x7*(parseInt(_0x209c49(0x1e8))/0x8)+-parseInt(_0x209c49(0x1ec))/0x9*(parseInt(_0x209c49(0x1ed))/0xa)+-parseInt(_0x209c49(0x1eb))/0xb*(-parseInt(_0x209c49(0x1e9))/0xc);if(_0x205c2b===_0x31e8b1)break;else _0xd06c8c['push'](_0xd06c8c['shift']());}catch(_0x4cec41){_0xd06c8c['push'](_0xd06c8c['shift']());}}}(a67_0x1d73,0x1e8e4));import{getDbLinkInfo}from'../../core/api-client.js';function a67_0x2545(_0x11bbbd,_0x2f44d8){_0x11bbbd=_0x11bbbd-0x1e8;const _0x1d73bf=a67_0x1d73();let _0x254591=_0x1d73bf[_0x11bbbd];return _0x254591;}function a67_0x1d73(){const _0x10659d=['25uxuVml','131811RUXtSR','read','4ZouShP','dbName','286287nYrTwS','199392QWPJtR','15256ayTmOa','456JoFnfv','525HRdbcn','256454SRgRwB','3069CLnosk','7240tPRqmP','detail','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','482178HCRCDs'];a67_0x1d73=function(){return _0x10659d;};return a67_0x1d73();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a67_0xfb4053(0x1ee),'description':a67_0xfb4053(0x1ef),'risk':a67_0xfb4053(0x1f3),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2bf9ee){const _0x1654f8=a67_0xfb4053,_0x4676e2=_0x2bf9ee['num']('id'),_0x290e72=await getDbLinkInfo(_0x4676e2);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x290e72),'message':'db\x20link\x20'+_0x4676e2+':\x20'+_0x290e72[_0x1654f8(0x1f5)]};}};
|
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x40a938=a68_0x2fe8;(function(_0x39ab79,_0x1995ed){const _0x4b6548=a68_0x2fe8,_0x41d4fe=_0x39ab79();while(!![]){try{const _0x49f38f=-parseInt(_0x4b6548(0x12f))/0x1*(parseInt(_0x4b6548(0x120))/0x2)+parseInt(_0x4b6548(0x130))/0x3+parseInt(_0x4b6548(0x127))/0x4+-parseInt(_0x4b6548(0x124))/0x5*(parseInt(_0x4b6548(0x122))/0x6)+-parseInt(_0x4b6548(0x133))/0x7*(parseInt(_0x4b6548(0x123))/0x8)+parseInt(_0x4b6548(0x125))/0x9+parseInt(_0x4b6548(0x131))/0xa;if(_0x49f38f===_0x1995ed)break;else _0x41d4fe['push'](_0x41d4fe['shift']());}catch(_0x138b07){_0x41d4fe['push'](_0x41d4fe['shift']());}}}(a68_0x127c,0x8bbbf));import{getDbTableDiff}from'../../core/api-client.js';function a68_0x127c(){const _0x28fe84=['str','table','string','18cOaAif','\x20(db\x20link\x20','314046PCvDde','5648IuwXfL','10QgPags','3093372zqaZhI','appCode','3563032jOidGP','num','length','pagesize','number','page','Page\x20size','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','115941rKHACn','513588WsdbYt','9191760uvDycf','diff','5992FwBjKB'];a68_0x127c=function(){return _0x28fe84;};return a68_0x127c();}function a68_0x2fe8(_0xf4ea64,_0x4667d2){_0xf4ea64=_0xf4ea64-0x11d;const _0x127cba=a68_0x127c();let _0x2fe811=_0x127cba[_0xf4ea64];return _0x2fe811;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDiff={'service':'db','command':a68_0x40a938(0x132),'description':a68_0x40a938(0x12e),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a68_0x40a938(0x11e),'type':a68_0x40a938(0x11f),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':a68_0x40a938(0x12c),'type':a68_0x40a938(0x12b),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':a68_0x40a938(0x12a),'type':a68_0x40a938(0x12b),'description':a68_0x40a938(0x12d),'default':0x14}],async 'execute'(_0x5b414e){const _0x47f6bf=a68_0x40a938,_0x8185ad=_0x5b414e['num']('id'),_0x399e5c=_0x5b414e[_0x47f6bf(0x128)](_0x47f6bf(0x12c),0x1)||0x1,_0x20f1b6=_0x5b414e[_0x47f6bf(0x128)](_0x47f6bf(0x12a),0x14)||0x14,_0x1b0fbc=_0x5b414e[_0x47f6bf(0x11d)](_0x47f6bf(0x11e))||undefined,{totalCount:_0x1df1b4,tableList:_0x2b1214}=await getDbTableDiff(_0x5b414e[_0x47f6bf(0x126)],_0x8185ad,{'pageIndex':_0x399e5c,'pageSize':_0x20f1b6,'tableName':_0x1b0fbc});return{'ok':!![],'data':{'dbLinkId':_0x8185ad,'page':_0x399e5c,'pageSize':_0x20f1b6,'totalCount':_0x1df1b4,'tableList':_0x2b1214},'message':_0x2b1214[_0x47f6bf(0x129)]+'\x20row(s),\x20total\x20'+_0x1df1b4+_0x47f6bf(0x121)+_0x8185ad+')'};}};
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x288eb9,_0x39abf1){const _0x36dec0=a69_0x24be,_0x5a2a2a=_0x288eb9();while(!![]){try{const _0x8b9b85=parseInt(_0x36dec0(0x9c))/0x1*(-parseInt(_0x36dec0(0x9a))/0x2)+parseInt(_0x36dec0(0x9e))/0x3*(-parseInt(_0x36dec0(0xa0))/0x4)+parseInt(_0x36dec0(0x99))/0x5*(-parseInt(_0x36dec0(0x9b))/0x6)+-parseInt(_0x36dec0(0x9f))/0x7+parseInt(_0x36dec0(0xa1))/0x8+parseInt(_0x36dec0(0xa2))/0x9+parseInt(_0x36dec0(0x9d))/0xa;if(_0x8b9b85===_0x39abf1)break;else _0x5a2a2a['push'](_0x5a2a2a['shift']());}catch(_0xcdf7bc){_0x5a2a2a['push'](_0x5a2a2a['shift']());}}}(a69_0x396f,0x5ff8a));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';function a69_0x396f(){const _0x51e9cc=['6912702FnvWOn','2045fFaGzd','98UlioBE','11346DkcdyN','6979PFkBVv','10114820SrLwKa','45105SYviRh','639464jCTxcV','184sBChRk','4095120vqkjTo'];a69_0x396f=function(){return _0x51e9cc;};return a69_0x396f();}import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';function a69_0x24be(_0xb4b279,_0x59e916){_0xb4b279=_0xb4b279-0x99;const _0x396fc3=a69_0x396f();let _0x24befd=_0x396fc3[_0xb4b279];return _0x24befd;}import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
|
package/lib/commands/db/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0x6e71e4=a70_0x28f9;(function(_0x41d8b3,_0x5c54a4){const _0x13fa32=a70_0x28f9,_0x1c8f0f=_0x41d8b3();while(!![]){try{const _0x3f19d7=-parseInt(_0x13fa32(0xc7))/0x1*(-parseInt(_0x13fa32(0xbe))/0x2)+parseInt(_0x13fa32(0xc5))/0x3+parseInt(_0x13fa32(0xcc))/0x4*(-parseInt(_0x13fa32(0xc3))/0x5)+parseInt(_0x13fa32(0xc8))/0x6*(parseInt(_0x13fa32(0xba))/0x7)+-parseInt(_0x13fa32(0xbb))/0x8+parseInt(_0x13fa32(0xc2))/0x9+-parseInt(_0x13fa32(0xca))/0xa;if(_0x3f19d7===_0x5c54a4)break;else _0x1c8f0f['push'](_0x1c8f0f['shift']());}catch(_0x180918){_0x1c8f0f['push'](_0x1c8f0f['shift']());}}}(a70_0x305b,0x727e3));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a70_0x28f9(_0x4c77ce,_0x431a54){_0x4c77ce=_0x4c77ce-0xba;const _0x305be4=a70_0x305b();let _0x28f9c7=_0x305be4[_0x4c77ce];return _0x28f9c7;}function a70_0x305b(){const _0x40e523=['2879768XUztnJ','number','page','438NBdlQq','length','Found\x20','num','7784838mlHlQU','35MpIoWO','\x20database\x20connection(s)','1660374jEkCwV','pagesize','776PgaCSU','64794iBbcJi','Page\x20index\x20(1-based)','5945040nrhthh','list','174476DncdUr','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','91nIJqlS'];a70_0x305b=function(){return _0x40e523;};return a70_0x305b();}import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a70_0x6e71e4(0xcb),'description':a70_0x6e71e4(0xcd),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a70_0x6e71e4(0xbd),'type':a70_0x6e71e4(0xbc),'description':a70_0x6e71e4(0xc9),'default':0x1},{'name':'pagesize','type':a70_0x6e71e4(0xbc),'description':'Page\x20size','default':0x64}],async 'execute'(_0x2693a3){const _0x2e2b63=a70_0x6e71e4,_0x4a976f=_0x2693a3['num'](_0x2e2b63(0xbd),0x1)||0x1,_0x3c147d=_0x2693a3[_0x2e2b63(0xc1)](_0x2e2b63(0xc6),0x64)||0x64,{items:_0x56636a,paging:_0x50506c}=await listDbLinks(_0x2693a3['appCode'],{'currentPage':_0x4a976f,'pageSize':_0x3c147d}),_0x13d913=sanitizeDbLinkList(_0x56636a),_0x5c75e6=_0x50506c?_0x50506c:{'currentPage':_0x4a976f,'pageSize':_0x3c147d,'rowsOnPage':_0x13d913[_0x2e2b63(0xbf)],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x13d913,'paging':_0x5c75e6},'message':_0x2e2b63(0xc0)+_0x13d913['length']+_0x2e2b63(0xc4)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1ddd4b,_0x10b5d4){const _0x304d68=a71_0x426c,_0x315f1b=_0x1ddd4b();while(!![]){try{const _0x1d2257=-parseInt(_0x304d68(0x14e))/0x1+parseInt(_0x304d68(0x150))/0x2+-parseInt(_0x304d68(0x147))/0x3+-parseInt(_0x304d68(0x14d))/0x4+parseInt(_0x304d68(0x159))/0x5*(parseInt(_0x304d68(0x152))/0x6)+-parseInt(_0x304d68(0x151))/0x7+parseInt(_0x304d68(0x158))/0x8;if(_0x1d2257===_0x10b5d4)break;else _0x315f1b['push'](_0x315f1b['shift']());}catch(_0x1d0d73){_0x315f1b['push'](_0x315f1b['shift']());}}}(a71_0x18f3,0xd455d));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0x10254d){const _0x2cf335=a71_0x426c,_0x2a90c2=_0x10254d[_0x2cf335(0x14a)]();if(_0x2a90c2===_0x2cf335(0x144)||_0x2a90c2===_0x2cf335(0x155)||_0x2a90c2===_0x2cf335(0x154))return!![];if(_0x2a90c2[_0x2cf335(0x149)]('secret')||_0x2a90c2['includes']('token')||_0x2a90c2[_0x2cf335(0x149)](_0x2cf335(0x156)))return!![];if(_0x2a90c2[_0x2cf335(0x149)](_0x2cf335(0x14b))||_0x2a90c2[_0x2cf335(0x149)](_0x2cf335(0x14c)))return!![];if(_0x2a90c2==='authorization'||_0x2a90c2===_0x2cf335(0x143)||_0x2a90c2==='jdbcurl')return!![];return![];}export function sanitizeDbLinkForOutput(_0x57287e){const _0x3b0b82=a71_0x426c,_0x32c562={..._0x57287e};for(const _0x579764 of Object[_0x3b0b82(0x148)](_0x32c562)){if(!shouldRedactKey(_0x579764))continue;const _0x138dbd=_0x32c562[_0x579764];_0x138dbd!=null&&String(_0x138dbd)['length']>0x0&&(_0x32c562[_0x579764]=_0x3b0b82(0x14f));}return _0x32c562;}export function sanitizeDbLinkList(_0x1af9c2){const _0x2f5a7d=a71_0x426c;return _0x1af9c2[_0x2f5a7d(0x157)](_0x1b1988=>sanitizeDbLinkForOutput(_0x1b1988));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;function a71_0x18f3(){const _0x18f2d3=['5305930gthXsX','connectionstring','password','isFinite','trim','4122966rpyyrF','keys','includes','toLowerCase','privatekey','accesskey','4539596dtsUEF','1135605Qjkvym','[redacted]','1418926qKrgPZ','8949626EtPogZ','6ouPnCh','https://daily.lovrabet.com/web-app/app/','dbpassword','passwd','credential','map','32179360QUaVfj'];a71_0x18f3=function(){return _0x18f2d3;};return a71_0x18f3();}export function validateDbUrl(_0x3fa5d9){const _0x1f7769=a71_0x426c,_0x5b9184=_0x3fa5d9[_0x1f7769(0x146)]();if(!_0x5b9184)return![];return DB_URL_PATTERN['test'](_0x5b9184);}function a71_0x426c(_0x481031,_0x133f77){_0x481031=_0x481031-0x143;const _0x18f387=a71_0x18f3();let _0x426cd1=_0x18f387[_0x481031];return _0x426cd1;}export function buildDbPageLinks(_0x42e55e,_0x400988){const _0x115d01=a71_0x426c,_0xa207c5=_0x42e55e?.[_0x115d01(0x146)]();if(!_0xa207c5)return undefined;const _0x263d0a=typeof _0x400988==='number'?String(_0x400988):String(_0x400988??'')['trim']();if(!_0x263d0a)return undefined;const _0x41ad4e=Number(_0x263d0a);if(!Number[_0x115d01(0x145)](_0x41ad4e)||_0x41ad4e<=0x0)return undefined;const _0x3d3aa5=isDaily(normalizeEnv(getEnv()))?_0x115d01(0x153)+encodeURIComponent(_0xa207c5):'https://app.lovrabet.com/app/'+encodeURIComponent(_0xa207c5),_0x4ceb69=encodeURIComponent(String(_0x41ad4e));return{'databasePage':_0x3d3aa5+'/data/database','erPage':_0x3d3aa5+'/data/er?dbId='+_0x4ceb69};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0x289505=a72_0xe65f;(function(_0x3e0d08,_0x1225ec){const _0x22083c=a72_0xe65f,_0x34c4b6=_0x3e0d08();while(!![]){try{const _0x41b403=parseInt(_0x22083c(0xc8))/0x1*(-parseInt(_0x22083c(0xbe))/0x2)+-parseInt(_0x22083c(0xc2))/0x3+-parseInt(_0x22083c(0xc9))/0x4+-parseInt(_0x22083c(0xc5))/0x5*(-parseInt(_0x22083c(0xc0))/0x6)+-parseInt(_0x22083c(0xcc))/0x7+-parseInt(_0x22083c(0xc6))/0x8*(-parseInt(_0x22083c(0xc4))/0x9)+parseInt(_0x22083c(0xc7))/0xa;if(_0x41b403===_0x1225ec)break;else _0x34c4b6['push'](_0x34c4b6['shift']());}catch(_0x5c23d1){_0x34c4b6['push'](_0x34c4b6['shift']());}}}(a72_0x3f4f,0x4dc7c));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a72_0xe65f(_0x5a008c,_0x5289b6){_0x5a008c=_0x5a008c-0xbe;const _0x3f4f6a=a72_0x3f4f();let _0xe65f5=_0x3f4f6a[_0x5a008c];return _0xe65f5;}function a72_0x3f4f(){const _0x468073=['3060428hfXOXX','675914vzAhWN','num','18GmQYMq','\x20table(s)\x20on\x20db\x20link\x20','753684FbWLNZ','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','162YfcWaH','469435OmfEFF','2016BywkuG','14164580oIQfDK','1LFSJgJ','1430712ofdXga','tables','length'];a72_0x3f4f=function(){return _0x468073;};return a72_0x3f4f();}export const dbTables={'service':'db','command':a72_0x289505(0xca),'description':a72_0x289505(0xc3),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x58c51e){const _0x457dd7=a72_0x289505,_0x48241d=_0x58c51e[_0x457dd7(0xbf)]('id'),_0x54fef7=await getDbAllTableList(_0x58c51e['appCode'],_0x48241d);return{'ok':!![],'data':{'dbLinkId':_0x48241d,'total':_0x54fef7[_0x457dd7(0xcb)],'tables':_0x54fef7},'message':_0x54fef7['length']+_0x457dd7(0xc1)+_0x48241d};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a73_0x1dc1(){const _0x2f1e6e=['\x20(see\x20data.result)','code','100072yGirrl','221661ypoNfI','30190VvGupK','error','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','198kgtris','object','10aLgbMF','length','keys','258482opXhXm','success','16ChmiKr','test','data','2oUqvDb','msg','846567dEDawh','372612gERqkO','2604FWjEBs','90XynQhD','num','read'];a73_0x1dc1=function(){return _0x2f1e6e;};return a73_0x1dc1();}const a73_0x339dd6=a73_0xba0b;(function(_0x231077,_0x28c4c9){const _0x433561=a73_0xba0b,_0x3a6576=_0x231077();while(!![]){try{const _0x33293f=-parseInt(_0x433561(0x188))/0x1*(-parseInt(_0x433561(0x192))/0x2)+parseInt(_0x433561(0x18d))/0x3*(parseInt(_0x433561(0x18c))/0x4)+-parseInt(_0x433561(0x17b))/0x5*(-parseInt(_0x433561(0x17e))/0x6)+-parseInt(_0x433561(0x183))/0x7+parseInt(_0x433561(0x185))/0x8*(-parseInt(_0x433561(0x18a))/0x9)+-parseInt(_0x433561(0x180))/0xa*(parseInt(_0x433561(0x17a))/0xb)+parseInt(_0x433561(0x18b))/0xc;if(_0x33293f===_0x28c4c9)break;else _0x3a6576['push'](_0x3a6576['shift']());}catch(_0x37a4c2){_0x3a6576['push'](_0x3a6576['shift']());}}}(a73_0x1dc1,0x19900));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a73_0xba0b(_0x1d9bd4,_0x5bf721){_0x1d9bd4=_0x1d9bd4-0x17a;const _0x1dc18f=a73_0x1dc1();let _0xba0ba4=_0x1dc18f[_0x1d9bd4];return _0xba0ba4;}function summarizeTestConnectResult(_0x3f1292){const _0x48b743=a73_0xba0b;if(_0x3f1292===!![]||_0x3f1292===![])return{'success':_0x3f1292};if(_0x3f1292===null||_0x3f1292===undefined)return{'type':typeof _0x3f1292};if(typeof _0x3f1292!==_0x48b743(0x17f))return{'type':typeof _0x3f1292};const _0x5022ce=_0x3f1292,_0x598c0d=[_0x48b743(0x184),'message',_0x48b743(0x191),_0x48b743(0x17c),_0x48b743(0x189),_0x48b743(0x187)],_0x504304={};for(const _0x3cf499 of _0x598c0d){if(_0x3cf499 in _0x5022ce)_0x504304[_0x3cf499]=_0x5022ce[_0x3cf499];}return Object[_0x48b743(0x182)](_0x504304)[_0x48b743(0x181)]===0x0&&(_0x504304[_0x48b743(0x182)]=Object[_0x48b743(0x182)](_0x5022ce)['slice'](0x0,0x14)),_0x504304;}export const dbTest={'service':'db','command':a73_0x339dd6(0x186),'description':a73_0x339dd6(0x17d),'risk':a73_0x339dd6(0x18f),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x555f2a){const _0x1ba8c8=a73_0x339dd6,_0x335a7a=_0x555f2a[_0x1ba8c8(0x18e)]('id'),_0x2731da=await testDbLinkConnect(_0x335a7a),_0x502e37=_0x2731da===!![]||typeof _0x2731da===_0x1ba8c8(0x17f)&&_0x2731da!==null&&_0x2731da['success']===!![],_0x34149e=summarizeTestConnectResult(_0x2731da);return{'ok':!![],'data':{'id':_0x335a7a,'connected':Boolean(_0x502e37),'result':_0x34149e},'message':_0x502e37?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x335a7a:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x335a7a+_0x1ba8c8(0x190)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74_0x56c1dd=a74_0x5866;(function(_0x55de8f,_0x1f4d89){const _0x528cab=a74_0x5866,_0x45ebd4=_0x55de8f();while(!![]){try{const _0x1dcae8=-parseInt(_0x528cab(0x144))/0x1+parseInt(_0x528cab(0x12a))/0x2+-parseInt(_0x528cab(0x12f))/0x3+-parseInt(_0x528cab(0x136))/0x4+parseInt(_0x528cab(0x12c))/0x5*(parseInt(_0x528cab(0x132))/0x6)+-parseInt(_0x528cab(0x138))/0x7*(parseInt(_0x528cab(0x128))/0x8)+parseInt(_0x528cab(0x130))/0x9;if(_0x1dcae8===_0x1f4d89)break;else _0x45ebd4['push'](_0x45ebd4['shift']());}catch(_0x208320){_0x45ebd4['push'](_0x45ebd4['shift']());}}}(a74_0x5daa,0x667e7));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a74_0x5866(_0xa54664,_0x2b0d99){_0xa54664=_0xa54664-0x127;const _0x5daae6=a74_0x5daa();let _0x586672=_0x5daae6[_0xa54664];return _0x586672;}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_0x5daa(){const _0xa77eae=['dbname','dbParam','dburl','153704BrimpC','dbUrl','107292yPIgLX','trim','3208990iLuTjm','num','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','610782UplscT','17086932RQukfq','username','6fTKUNZ','New\x20host:port','validation','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','2945600yPbOOp','string','224DUFcZK','dbparam','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','New\x20database\x20name','POST','password','dbDesc','dbdesc','update','New\x20username','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','str','619367ePSLbY','dbName'];a74_0x5daa=function(){return _0xa77eae;};return a74_0x5daa();}export const dbUpdate={'service':'db','command':a74_0x56c1dd(0x140),'description':a74_0x56c1dd(0x135),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a74_0x56c1dd(0x146),'type':'string','description':a74_0x56c1dd(0x13b)},{'name':'dburl','type':a74_0x56c1dd(0x137),'description':a74_0x56c1dd(0x133)},{'name':a74_0x56c1dd(0x131),'type':'string','description':a74_0x56c1dd(0x141)},{'name':'password','type':a74_0x56c1dd(0x137),'description':a74_0x56c1dd(0x13a)},{'name':a74_0x56c1dd(0x139),'type':a74_0x56c1dd(0x137),'description':'New\x20connection\x20parameter\x20string'},{'name':a74_0x56c1dd(0x13f),'type':a74_0x56c1dd(0x137),'description':'New\x20description'}],async 'validate'(_0x44f4e2){const _0x2081da=a74_0x56c1dd,_0x3eb971=_0x44f4e2['str'](_0x2081da(0x127));if(_0x3eb971&&!validateDbUrl(_0x3eb971[_0x2081da(0x12b)]()))throw CliErrors[_0x2081da(0x134)](_0x2081da(0x12e)+_0x3eb971+'\x22');},async 'dryRun'(_0x5be51f){const _0xb46560=a74_0x56c1dd,_0x5a39ad=_0x5be51f[_0xb46560(0x12d)]('id'),_0x493ba4=await getDbLinkInfo(_0x5a39ad),_0x143b91={..._0x493ba4},_0x45763d=_0x5be51f[_0xb46560(0x143)](_0xb46560(0x146));if(_0x45763d)_0x143b91[_0xb46560(0x145)]=_0x45763d;const _0x55ce49=_0x5be51f[_0xb46560(0x143)](_0xb46560(0x127));if(_0x55ce49)_0x143b91[_0xb46560(0x129)]=_0x55ce49[_0xb46560(0x12b)]();const _0x2284ff=_0x5be51f[_0xb46560(0x143)](_0xb46560(0x131));if(_0x2284ff)_0x143b91[_0xb46560(0x131)]=_0x2284ff;const _0x53605e=_0x5be51f[_0xb46560(0x143)](_0xb46560(0x13d));if(_0x53605e)_0x143b91[_0xb46560(0x13d)]=_0x53605e;const _0x2074fd=_0x5be51f[_0xb46560(0x143)](_0xb46560(0x139));if(_0x2074fd)_0x143b91[_0xb46560(0x147)]=_0x2074fd;const _0x3aae18=_0x5be51f[_0xb46560(0x143)](_0xb46560(0x13f));if(_0x3aae18)_0x143b91[_0xb46560(0x13e)]=_0x3aae18;const _0x2d69d5=sanitizeDbLinkForOutput(_0x143b91);return{'method':_0xb46560(0x13c),'url':'/smartapi/dblink/update','body':_0x2d69d5,'description':_0xb46560(0x142)};},async 'execute'(_0x3ded9e){const _0x24e3be=a74_0x56c1dd,_0x4242d1=_0x3ded9e[_0x24e3be(0x12d)]('id'),_0x5e69c1=await getDbLinkInfo(_0x4242d1),_0x516328={..._0x5e69c1},_0x576af8=_0x3ded9e[_0x24e3be(0x143)](_0x24e3be(0x146));if(_0x576af8)_0x516328[_0x24e3be(0x145)]=_0x576af8;const _0x133d55=_0x3ded9e['str']('dburl');if(_0x133d55)_0x516328[_0x24e3be(0x129)]=_0x133d55[_0x24e3be(0x12b)]();const _0x4bed1a=_0x3ded9e[_0x24e3be(0x143)](_0x24e3be(0x131));if(_0x4bed1a)_0x516328['username']=_0x4bed1a;const _0x3ba226=_0x3ded9e[_0x24e3be(0x143)](_0x24e3be(0x13d));if(_0x3ba226)_0x516328[_0x24e3be(0x13d)]=_0x3ba226;const _0x13c838=_0x3ded9e[_0x24e3be(0x143)](_0x24e3be(0x139));if(_0x13c838)_0x516328[_0x24e3be(0x147)]=_0x13c838;const _0x88da45=_0x3ded9e[_0x24e3be(0x143)](_0x24e3be(0x13f));if(_0x88da45)_0x516328[_0x24e3be(0x13e)]=_0x88da45;const {id:_0x35c7c4,entity:_0x22bf0f}=normalizeEntityWithIdResponse(await updateDbLink(_0x516328));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x22bf0f),'message':'Updated\x20db\x20link\x20'+(_0x35c7c4??_0x4242d1)};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a75_0x385ff9=a75_0x36a7;(function(_0x2cfa18,_0x4161d){const _0x28fc72=a75_0x36a7,_0x4db345=_0x2cfa18();while(!![]){try{const _0x1dbc76=parseInt(_0x28fc72(0x18c))/0x1*(-parseInt(_0x28fc72(0x1b8))/0x2)+parseInt(_0x28fc72(0x1a6))/0x3+parseInt(_0x28fc72(0x1b2))/0x4+parseInt(_0x28fc72(0x17c))/0x5+-parseInt(_0x28fc72(0x18b))/0x6*(parseInt(_0x28fc72(0x197))/0x7)+parseInt(_0x28fc72(0x1a2))/0x8*(-parseInt(_0x28fc72(0x18d))/0x9)+parseInt(_0x28fc72(0x1bf))/0xa;if(_0x1dbc76===_0x4161d)break;else _0x4db345['push'](_0x4db345['shift']());}catch(_0xb9375e){_0x4db345['push'](_0x4db345['shift']());}}}(a75_0x25d6,0x48143));import a75_0x453a80 from'chalk';function a75_0x25d6(){const _0x1be8e1=['(set,\x20length=','\x20\x20Config\x20Files','arch','(none)','\x20\x20explicitAppName:\x20','3021186wlJGxp','52CdxoGv','189TLohef','locale','\x20(default)','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','missing','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','read','appCode','7cNSzCs','log','padEnd','\x20←\x20current','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','env','red','cookie','accessKey','raw','pageSize','78136stCWce','source','Project','(not\x20found)','156765QNLaGB','keys','gray','(default:\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Apps','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid','bold','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','yellow','2104372cFjVSb','slice','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','apiDir','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','20162GEmGwe','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20Merged\x20Config','currentApp','\x20doctor','5227850jUIsiN','Global','verbose','(no\x20file)','apps','platform','\x20\x20─','(set\x20via\x20file,\x20length=','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','⚠\x20Empty\x20(treated\x20as\x20{})','✗\x20Invalid\x20JSON','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','message','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','\x20\x20Auth','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2134760gnbvEM','length','value','(not\x20set)','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','✗\x20Expired','unknown','check','riskLevel','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'];a75_0x25d6=function(){return _0x1be8e1;};return a75_0x25d6();}import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a75_0x36a7(_0x51379c,_0x33405a){_0x51379c=_0x51379c-0x175;const _0x25d628=a75_0x25d6();let _0x36a70d=_0x25d628[_0x51379c];return _0x36a70d;}import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x454880){const _0x1d3e44=a75_0x36a7,_0x3ca023=GIT_COMMIT!==_0x1d3e44(0x182)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x1d3e44(0x1b3)](0x0,0xa)+')':VERSION,_0x5dfe81=buildConfigFromFlags({}),_0x142913=getCookie();console[_0x1d3e44(0x198)](),console['log'](a75_0x453a80[_0x1d3e44(0x1ae)](CLI_BIN_NAME+_0x1d3e44(0x1be))),console['log'](a75_0x453a80['gray']('─'['repeat'](0x32))),console[_0x1d3e44(0x198)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x3ca023),console[_0x1d3e44(0x198)](_0x1d3e44(0x17b)+process['version']),console['log'](_0x1d3e44(0x19b)+process[_0x1d3e44(0x1c4)]+'\x20'+process[_0x1d3e44(0x188)]),console[_0x1d3e44(0x198)](),console[_0x1d3e44(0x198)](a75_0x453a80[_0x1d3e44(0x1ae)](_0x1d3e44(0x187))),console[_0x1d3e44(0x198)](a75_0x453a80[_0x1d3e44(0x1a8)]('\x20\x20─'['repeat'](0x1e)));const _0x5590ce=getGlobalConfigPath(),_0x1de08b=getProjectConfigPath();console[_0x1d3e44(0x198)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5590ce||a75_0x453a80[_0x1d3e44(0x1a8)]('(not\x20found)'))),console[_0x1d3e44(0x198)](_0x1d3e44(0x178)+(_0x1de08b||a75_0x453a80[_0x1d3e44(0x1a8)](_0x1d3e44(0x1a5)))),console['log'](),console[_0x1d3e44(0x198)](a75_0x453a80[_0x1d3e44(0x1ae)](_0x1d3e44(0x1b7))),console['log'](a75_0x453a80[_0x1d3e44(0x1a8)](_0x1d3e44(0x1c5)[_0x1d3e44(0x191)](0x1e)));const _0x12982e=(_0x3f4b34,_0x534e3b)=>{const _0x1b057c=_0x1d3e44;if(!_0x534e3b){console['log']('\x20\x20'+_0x3f4b34[_0x1b057c(0x199)](0x11)+'\x20'+a75_0x453a80['gray'](_0x1b057c(0x1c2)));return;}const _0x315bc6=inspectCliConfigJsonFile(_0x534e3b);if(_0x315bc6[_0x1b057c(0x1ba)]==='ok')console['log']('\x20\x20'+_0x3f4b34['padEnd'](0x11)+'\x20'+a75_0x453a80[_0x1b057c(0x1c8)]('✓\x20Valid\x20JSON'));else{if(_0x315bc6[_0x1b057c(0x1ba)]==='empty')console[_0x1b057c(0x198)]('\x20\x20'+_0x3f4b34[_0x1b057c(0x199)](0x11)+'\x20'+a75_0x453a80[_0x1b057c(0x1b1)](_0x1b057c(0x1c9)));else _0x315bc6[_0x1b057c(0x1ba)]===_0x1b057c(0x192)?console[_0x1b057c(0x198)]('\x20\x20'+_0x3f4b34[_0x1b057c(0x199)](0x11)+'\x20'+a75_0x453a80['gray']('(missing)')):(console[_0x1b057c(0x198)]('\x20\x20'+_0x3f4b34[_0x1b057c(0x199)](0x11)+'\x20'+a75_0x453a80[_0x1b057c(0x19d)](_0x1b057c(0x175))),console['log']('\x20\x20'+''['padEnd'](0x11)+'\x20'+a75_0x453a80[_0x1b057c(0x19d)](_0x315bc6[_0x1b057c(0x177)])));}};_0x12982e(_0x1d3e44(0x1c0),_0x5590ce),_0x12982e(_0x1d3e44(0x1a4),_0x1de08b),console[_0x1d3e44(0x198)](),console[_0x1d3e44(0x198)](a75_0x453a80[_0x1d3e44(0x1ae)](_0x1d3e44(0x1bc))),console[_0x1d3e44(0x198)](a75_0x453a80[_0x1d3e44(0x1a8)](_0x1d3e44(0x1c5)[_0x1d3e44(0x191)](0x1e))),console[_0x1d3e44(0x198)](_0x1d3e44(0x193)+(_0x5dfe81[_0x1d3e44(0x196)]||a75_0x453a80['red'](_0x1d3e44(0x17f)))),console[_0x1d3e44(0x198)](_0x1d3e44(0x1b0)+_0x5dfe81[_0x1d3e44(0x19c)]),console['log']('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5dfe81[_0x1d3e44(0x18e)]),console[_0x1d3e44(0x198)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5dfe81['apiDir']),console['log'](_0x1d3e44(0x176)+(_0x5dfe81['defaultApp']||a75_0x453a80['gray'](_0x1d3e44(0x189)))),console[_0x1d3e44(0x198)](_0x1d3e44(0x1b4)+(_0x5dfe81[_0x1d3e44(0x1bd)]||a75_0x453a80[_0x1d3e44(0x1a8)](_0x1d3e44(0x189)))),console[_0x1d3e44(0x198)](_0x1d3e44(0x18a)+(_0x5dfe81[_0x1d3e44(0x179)]||a75_0x453a80[_0x1d3e44(0x1a8)](_0x1d3e44(0x189)))),console[_0x1d3e44(0x198)](_0x1d3e44(0x1c7)+(_0x5dfe81['format']||a75_0x453a80['gray'](_0x1d3e44(0x1a9)+DEFAULT_CONFIG_VALUES[_0x1d3e44(0x194)]+')'))),console[_0x1d3e44(0x198)](_0x1d3e44(0x1ac)+(_0x5dfe81[_0x1d3e44(0x1a1)]??a75_0x453a80[_0x1d3e44(0x1a8)]('(default)'))),console[_0x1d3e44(0x198)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x5dfe81[_0x1d3e44(0x184)]),console[_0x1d3e44(0x198)](_0x1d3e44(0x1b9)+_0x5dfe81[_0x1d3e44(0x1c1)]),console[_0x1d3e44(0x198)](_0x1d3e44(0x1af)+(_0x5dfe81[_0x1d3e44(0x19e)]?a75_0x453a80[_0x1d3e44(0x1c8)](_0x1d3e44(0x186)+_0x5dfe81[_0x1d3e44(0x19e)]['length']+')'):_0x142913?a75_0x453a80[_0x1d3e44(0x1c8)](_0x1d3e44(0x1c6)+_0x142913[_0x1d3e44(0x17d)]+')'):a75_0x453a80[_0x1d3e44(0x1a8)](_0x1d3e44(0x189))));const _0x479e8b=Object[_0x1d3e44(0x1a7)](_0x5dfe81[_0x1d3e44(0x1c3)]);if(_0x479e8b[_0x1d3e44(0x17d)]>0x0){console[_0x1d3e44(0x198)](),console['log'](a75_0x453a80[_0x1d3e44(0x1ae)](_0x1d3e44(0x1ab))),console[_0x1d3e44(0x198)](a75_0x453a80[_0x1d3e44(0x1a8)](_0x1d3e44(0x1c5)[_0x1d3e44(0x191)](0x1e)));for(const _0x1dfaeb of _0x479e8b){const _0x406be5=_0x5dfe81['apps'][_0x1dfaeb],_0x11e4f9=_0x1dfaeb===_0x5dfe81['defaultApp'],_0x4b801b=_0x1dfaeb===_0x5dfe81[_0x1d3e44(0x1bd)],_0x46d479=_0x4b801b?a75_0x453a80[_0x1d3e44(0x1c8)](_0x1d3e44(0x19a)):'',_0x508d46=_0x11e4f9?_0x1d3e44(0x18f):'';console[_0x1d3e44(0x198)]('\x20\x20'+_0x1dfaeb+_0x508d46+_0x46d479),console[_0x1d3e44(0x198)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x406be5['appcode']);const _0x2772da=buildAppDoctorFields(_0x406be5,{'env':_0x5dfe81['env'],'apiDir':_0x5dfe81[_0x1d3e44(0x1a0)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x1d3e44(0x1b5)],'cookie':_0x5dfe81[_0x1d3e44(0x19e)]||_0x142913||undefined,'accessKey':_0x5dfe81[_0x1d3e44(0x19f)]});console[_0x1d3e44(0x198)](_0x1d3e44(0x185)+_0x2772da['env'][_0x1d3e44(0x17e)]+'\x20\x20'+a75_0x453a80['gray']('('+_0x2772da[_0x1d3e44(0x19c)]['source']+')')),console[_0x1d3e44(0x198)](_0x1d3e44(0x1b6)+_0x2772da[_0x1d3e44(0x1b5)]['value']+'\x20\x20'+a75_0x453a80[_0x1d3e44(0x1a8)]('('+_0x2772da[_0x1d3e44(0x1b5)][_0x1d3e44(0x1a3)]+')'));const _0x5d1a24=_0x2772da[_0x1d3e44(0x19e)][_0x1d3e44(0x17e)]?a75_0x453a80[_0x1d3e44(0x1c8)](_0x1d3e44(0x186)+_0x2772da[_0x1d3e44(0x19e)]['value'][_0x1d3e44(0x17d)]+')'):a75_0x453a80[_0x1d3e44(0x1a8)](_0x1d3e44(0x189));console[_0x1d3e44(0x198)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x5d1a24+'\x20\x20'+a75_0x453a80[_0x1d3e44(0x1a8)]('('+_0x2772da[_0x1d3e44(0x19e)][_0x1d3e44(0x1a3)]+')'));const _0x2a3101=_0x2772da['accessKey'][_0x1d3e44(0x17e)]?a75_0x453a80[_0x1d3e44(0x1c8)]('(set,\x20length='+_0x2772da[_0x1d3e44(0x19f)][_0x1d3e44(0x17e)][_0x1d3e44(0x17d)]+')'):a75_0x453a80['gray'](_0x1d3e44(0x189));console[_0x1d3e44(0x198)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x2a3101+'\x20\x20'+a75_0x453a80[_0x1d3e44(0x1a8)]('('+_0x2772da['accessKey'][_0x1d3e44(0x1a3)]+')'));}}console[_0x1d3e44(0x198)](),console[_0x1d3e44(0x198)](a75_0x453a80['bold']('\x20\x20API\x20Endpoints')),console[_0x1d3e44(0x198)](a75_0x453a80[_0x1d3e44(0x1a8)](_0x1d3e44(0x1c5)[_0x1d3e44(0x191)](0x1e))),console[_0x1d3e44(0x198)](_0x1d3e44(0x1aa)+getApiDomain()),console[_0x1d3e44(0x198)](_0x1d3e44(0x180)+getUserDomain()),console['log']('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x1d3e44(0x198)](),console[_0x1d3e44(0x198)](a75_0x453a80[_0x1d3e44(0x1ae)](_0x1d3e44(0x17a))),console[_0x1d3e44(0x198)](a75_0x453a80[_0x1d3e44(0x1a8)](_0x1d3e44(0x1c5)['repeat'](0x1e)));if(_0x142913){const _0x462855=await getIsSessionValid();console['log'](_0x1d3e44(0x190)+(_0x462855?a75_0x453a80[_0x1d3e44(0x1c8)](_0x1d3e44(0x1ad)):a75_0x453a80[_0x1d3e44(0x19d)](_0x1d3e44(0x181))));}else console['log'](_0x1d3e44(0x190)+a75_0x453a80[_0x1d3e44(0x19d)]('✗\x20Not\x20logged\x20in'));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a75_0x385ff9(0x183),'description':a75_0x385ff9(0x1bb),'risk':a75_0x385ff9(0x195),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a75_0x10e3a8=a75_0x1317;function a75_0x5b78(){const _0x4808a4=['\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','81QMXnOz','32460KPUptt','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','1SSmziv','(not\x20found)','\x20\x20Apps','apps','⚠\x20Empty\x20(treated\x20as\x20{})','(missing)','source','\x20doctor','message','\x20\x20Config\x20JSON','(set\x20via\x20file,\x20length=','Project','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','15092CENwmx','yellow','status','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','empty','(not\x20set)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','13389ueSzmC','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','Global','184rdQlsW','(none)','padEnd','value','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20─','bold','slice','platform','7ZdmOhc','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','(no\x20file)','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','locale','keys','explicitAppName','green','\x20(default)','✗\x20Expired','accessKey','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','656762oaSWTA','722892yWconE','unknown','\x20\x20API\x20Endpoints','apiDir','(default:\x20','gray','red','(default)','missing','read','riskLevel','defaultApp','516498yTIfIp','✗\x20Invalid\x20JSON','env','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','(set,\x20length=','pageSize','version','arch','verbose','raw','✗\x20Not\x20logged\x20in','cookie','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','appcode','log','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','51160oBixNG','790fjFeNN'];a75_0x5b78=function(){return _0x4808a4;};return a75_0x5b78();}(function(_0x16ff7f,_0x4e57f1){const _0x1e2628=a75_0x1317,_0x2a2e3a=_0x16ff7f();while(!![]){try{const _0x3dc47e=-parseInt(_0x1e2628(0x165))/0x1*(parseInt(_0x1e2628(0x13f))/0x2)+parseInt(_0x1e2628(0x17b))/0x3+parseInt(_0x1e2628(0x17f))/0x4*(parseInt(_0x1e2628(0x161))/0x5)+parseInt(_0x1e2628(0x14c))/0x6*(parseInt(_0x1e2628(0x133))/0x7)+parseInt(_0x1e2628(0x15d))/0x8*(-parseInt(_0x1e2628(0x160))/0x9)+parseInt(_0x1e2628(0x15e))/0xa*(parseInt(_0x1e2628(0x172))/0xb)+parseInt(_0x1e2628(0x140))/0xc;if(_0x3dc47e===_0x4e57f1)break;else _0x2a2e3a['push'](_0x2a2e3a['shift']());}catch(_0x52d8c4){_0x2a2e3a['push'](_0x2a2e3a['shift']());}}}(a75_0x5b78,0x29f5f));import a75_0x22d68e 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';function a75_0x1317(_0x2f71c2,_0x3672d4){_0x2f71c2=_0x2f71c2-0x130;const _0x5b78cd=a75_0x5b78();let _0x131775=_0x5b78cd[_0x2f71c2];return _0x131775;}import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x5489b0){const _0x17e761=a75_0x1317,_0x548395=GIT_COMMIT!==_0x17e761(0x141)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x17e761(0x131)](0x0,0xa)+')':VERSION,_0x1365ad=buildConfigFromFlags({}),_0x2f5742=getCookie();console[_0x17e761(0x15b)](),console['log'](a75_0x22d68e['bold'](CLI_BIN_NAME+_0x17e761(0x16c))),console[_0x17e761(0x15b)](a75_0x22d68e[_0x17e761(0x145)]('─'[_0x17e761(0x176)](0x32))),console[_0x17e761(0x15b)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x548395),console[_0x17e761(0x15b)](_0x17e761(0x17c)+process[_0x17e761(0x153)]),console[_0x17e761(0x15b)](_0x17e761(0x17d)+process[_0x17e761(0x132)]+'\x20'+process[_0x17e761(0x154)]),console[_0x17e761(0x15b)](),console['log'](a75_0x22d68e[_0x17e761(0x130)]('\x20\x20Config\x20Files')),console[_0x17e761(0x15b)](a75_0x22d68e['gray'](_0x17e761(0x185)[_0x17e761(0x176)](0x1e)));const _0x40e611=getGlobalConfigPath(),_0x5a6d0d=getProjectConfigPath();console['log']('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x40e611||a75_0x22d68e[_0x17e761(0x145)](_0x17e761(0x166)))),console[_0x17e761(0x15b)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5a6d0d||a75_0x22d68e[_0x17e761(0x145)](_0x17e761(0x166)))),console['log'](),console['log'](a75_0x22d68e[_0x17e761(0x130)](_0x17e761(0x16e))),console[_0x17e761(0x15b)](a75_0x22d68e[_0x17e761(0x145)](_0x17e761(0x185)['repeat'](0x1e)));const _0x189b81=(_0x5284c9,_0x1b5206)=>{const _0x2c57c7=_0x17e761;if(!_0x1b5206){console['log']('\x20\x20'+_0x5284c9['padEnd'](0x11)+'\x20'+a75_0x22d68e['gray'](_0x2c57c7(0x135)));return;}const _0x557bf8=inspectCliConfigJsonFile(_0x1b5206);if(_0x557bf8['status']==='ok')console[_0x2c57c7(0x15b)]('\x20\x20'+_0x5284c9[_0x2c57c7(0x181)](0x11)+'\x20'+a75_0x22d68e[_0x2c57c7(0x13a)]('✓\x20Valid\x20JSON'));else{if(_0x557bf8['status']===_0x2c57c7(0x177))console['log']('\x20\x20'+_0x5284c9[_0x2c57c7(0x181)](0x11)+'\x20'+a75_0x22d68e[_0x2c57c7(0x173)](_0x2c57c7(0x169)));else _0x557bf8[_0x2c57c7(0x174)]===_0x2c57c7(0x148)?console['log']('\x20\x20'+_0x5284c9['padEnd'](0x11)+'\x20'+a75_0x22d68e[_0x2c57c7(0x145)](_0x2c57c7(0x16a))):(console['log']('\x20\x20'+_0x5284c9[_0x2c57c7(0x181)](0x11)+'\x20'+a75_0x22d68e[_0x2c57c7(0x146)](_0x2c57c7(0x14d))),console['log']('\x20\x20'+''[_0x2c57c7(0x181)](0x11)+'\x20'+a75_0x22d68e[_0x2c57c7(0x146)](_0x557bf8[_0x2c57c7(0x16d)])));}};_0x189b81(_0x17e761(0x17e),_0x40e611),_0x189b81(_0x17e761(0x170),_0x5a6d0d),console['log'](),console['log'](a75_0x22d68e[_0x17e761(0x130)]('\x20\x20Merged\x20Config')),console[_0x17e761(0x15b)](a75_0x22d68e[_0x17e761(0x145)](_0x17e761(0x185)[_0x17e761(0x176)](0x1e))),console['log'](_0x17e761(0x171)+(_0x1365ad['appCode']||a75_0x22d68e[_0x17e761(0x146)](_0x17e761(0x178)))),console[_0x17e761(0x15b)](_0x17e761(0x175)+_0x1365ad[_0x17e761(0x14e)]),console[_0x17e761(0x15b)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1365ad[_0x17e761(0x137)]),console['log']('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1365ad[_0x17e761(0x143)]),console[_0x17e761(0x15b)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x1365ad[_0x17e761(0x14b)]||a75_0x22d68e[_0x17e761(0x145)](_0x17e761(0x180)))),console['log'](_0x17e761(0x134)+(_0x1365ad['currentApp']||a75_0x22d68e[_0x17e761(0x145)](_0x17e761(0x180)))),console[_0x17e761(0x15b)](_0x17e761(0x17a)+(_0x1365ad[_0x17e761(0x139)]||a75_0x22d68e[_0x17e761(0x145)]('(none)'))),console[_0x17e761(0x15b)](_0x17e761(0x14f)+(_0x1365ad['format']||a75_0x22d68e[_0x17e761(0x145)](_0x17e761(0x144)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x17e761(0x15b)](_0x17e761(0x15c)+(_0x1365ad[_0x17e761(0x152)]??a75_0x22d68e[_0x17e761(0x145)](_0x17e761(0x147)))),console['log'](_0x17e761(0x13e)+_0x1365ad[_0x17e761(0x14a)]),console['log'](_0x17e761(0x15f)+_0x1365ad[_0x17e761(0x155)]),console[_0x17e761(0x15b)](_0x17e761(0x163)+(_0x1365ad[_0x17e761(0x158)]?a75_0x22d68e[_0x17e761(0x13a)](_0x17e761(0x151)+_0x1365ad[_0x17e761(0x158)][_0x17e761(0x150)]+')'):_0x2f5742?a75_0x22d68e[_0x17e761(0x13a)](_0x17e761(0x16f)+_0x2f5742[_0x17e761(0x150)]+')'):a75_0x22d68e[_0x17e761(0x145)]('(none)')));const _0x18d864=Object[_0x17e761(0x138)](_0x1365ad['apps']);if(_0x18d864['length']>0x0){console[_0x17e761(0x15b)](),console['log'](a75_0x22d68e[_0x17e761(0x130)](_0x17e761(0x167))),console[_0x17e761(0x15b)](a75_0x22d68e[_0x17e761(0x145)](_0x17e761(0x185)[_0x17e761(0x176)](0x1e)));for(const _0x39b5df of _0x18d864){const _0x31be42=_0x1365ad[_0x17e761(0x168)][_0x39b5df],_0x101108=_0x39b5df===_0x1365ad[_0x17e761(0x14b)],_0x17cf07=_0x39b5df===_0x1365ad[_0x17e761(0x164)],_0x1a7485=_0x17cf07?a75_0x22d68e[_0x17e761(0x13a)]('\x20←\x20current'):'',_0x49a94b=_0x101108?_0x17e761(0x13b):'';console[_0x17e761(0x15b)]('\x20\x20'+_0x39b5df+_0x49a94b+_0x1a7485),console[_0x17e761(0x15b)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x31be42[_0x17e761(0x15a)]);const _0x30b73d=buildAppDoctorFields(_0x31be42,{'env':_0x1365ad['env'],'apiDir':_0x1365ad[_0x17e761(0x156)][_0x17e761(0x143)]||DEFAULT_CONFIG_VALUES[_0x17e761(0x143)],'cookie':_0x1365ad[_0x17e761(0x158)]||_0x2f5742||undefined,'accessKey':_0x1365ad['accessKey']});console[_0x17e761(0x15b)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x30b73d[_0x17e761(0x14e)][_0x17e761(0x182)]+'\x20\x20'+a75_0x22d68e[_0x17e761(0x145)]('('+_0x30b73d[_0x17e761(0x14e)][_0x17e761(0x16b)]+')')),console['log'](_0x17e761(0x159)+_0x30b73d[_0x17e761(0x143)]['value']+'\x20\x20'+a75_0x22d68e[_0x17e761(0x145)]('('+_0x30b73d[_0x17e761(0x143)][_0x17e761(0x16b)]+')'));const _0x4a3e8f=_0x30b73d[_0x17e761(0x158)][_0x17e761(0x182)]?a75_0x22d68e['green']('(set,\x20length='+_0x30b73d[_0x17e761(0x158)]['value']['length']+')'):a75_0x22d68e['gray']('(none)');console[_0x17e761(0x15b)](_0x17e761(0x184)+_0x4a3e8f+'\x20\x20'+a75_0x22d68e['gray']('('+_0x30b73d[_0x17e761(0x158)]['source']+')'));const _0x2d756c=_0x30b73d[_0x17e761(0x13d)][_0x17e761(0x182)]?a75_0x22d68e[_0x17e761(0x13a)]('(set,\x20length='+_0x30b73d[_0x17e761(0x13d)][_0x17e761(0x182)]['length']+')'):a75_0x22d68e[_0x17e761(0x145)]('(none)');console[_0x17e761(0x15b)](_0x17e761(0x183)+_0x2d756c+'\x20\x20'+a75_0x22d68e[_0x17e761(0x145)]('('+_0x30b73d[_0x17e761(0x13d)]['source']+')'));}}console['log'](),console[_0x17e761(0x15b)](a75_0x22d68e[_0x17e761(0x130)](_0x17e761(0x142))),console[_0x17e761(0x15b)](a75_0x22d68e[_0x17e761(0x145)](_0x17e761(0x185)[_0x17e761(0x176)](0x1e))),console['log'](_0x17e761(0x179)+getApiDomain()),console[_0x17e761(0x15b)](_0x17e761(0x162)+getUserDomain()),console[_0x17e761(0x15b)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x17e761(0x15b)](),console[_0x17e761(0x15b)](a75_0x22d68e[_0x17e761(0x130)]('\x20\x20Auth')),console[_0x17e761(0x15b)](a75_0x22d68e[_0x17e761(0x145)](_0x17e761(0x185)['repeat'](0x1e)));if(_0x2f5742){const _0x45e626=await getIsSessionValid();console[_0x17e761(0x15b)](_0x17e761(0x136)+(_0x45e626?a75_0x22d68e[_0x17e761(0x13a)]('✓\x20Valid'):a75_0x22d68e[_0x17e761(0x146)](_0x17e761(0x13c))));}else console[_0x17e761(0x15b)](_0x17e761(0x136)+a75_0x22d68e[_0x17e761(0x146)](_0x17e761(0x157)));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a75_0x10e3a8(0x149),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a76_0xce1a(_0x1f5774,_0x14d6c2){_0x1f5774=_0x1f5774-0xed;const _0x500ad5=a76_0x500a();let _0xce1aa8=_0x500ad5[_0x1f5774];return _0xce1aa8;}const a76_0xa9ee6c=a76_0xce1a;(function(_0x7905f2,_0x4040e1){const _0x42f9ee=a76_0xce1a,_0xe32670=_0x7905f2();while(!![]){try{const _0x5703df=parseInt(_0x42f9ee(0xf4))/0x1*(-parseInt(_0x42f9ee(0x11a))/0x2)+-parseInt(_0x42f9ee(0x10f))/0x3+parseInt(_0x42f9ee(0x114))/0x4+parseInt(_0x42f9ee(0xf0))/0x5+parseInt(_0x42f9ee(0x10b))/0x6+parseInt(_0x42f9ee(0xef))/0x7*(parseInt(_0x42f9ee(0x101))/0x8)+parseInt(_0x42f9ee(0xf5))/0x9;if(_0x5703df===_0x4040e1)break;else _0xe32670['push'](_0xe32670['shift']());}catch(_0x28a604){_0xe32670['push'](_0xe32670['shift']());}}}(a76_0x500a,0x3fb4d));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';function a76_0x500a(){const _0x3478bd=['yes','project','custom','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','env','检测到旧配置文件,正在自动升级...\x0a','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','log','run','3232456iMeeid','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','some','Auto-confirm\x20prompts','\x20config','Write\x20to\x20global\x20config\x20instead\x20of\x20project','defaultApp','\x20\x20Config:\x20','validation','\x20\x20Env:\x20','177306KgwHZO','nonInteractive','\x20\x20Apps:\x20','toLocaleString','1500759YnxvGh','map','Target\x20environment','../../commands/project/init.js','Usage:\x20','614900QLVNfX','appcode','message','write','global','\x0a✓\x20Successfully\x20initialized\x20','1406vInCnZ','cwd','init','boolean','flagMissing','str','7vxActN','1180850qCWUaW','Use\x20`','production','valid','102iWgrWz','84573rDATGB','bool'];a76_0x500a=function(){return _0x3478bd;};return a76_0x500a();}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(_0x51397b){return{'appCode':_0x51397b,'appName':_0x51397b};}function writeInitConfig(_0x13faa2,_0x2e81e6,_0x3725f8){const _0x1c9f4f=a76_0xce1a,_0x45abcc=resolveWriteConfigPath(_0x13faa2),_0x4f6518=buildCanonicalProjectConfig({},{'appCodes':_0x2e81e6[_0x1c9f4f(0x110)](_0x54e221=>_0x54e221['appCode']),'env':_0x3725f8,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x1c9f4f(0x10e)]()}});writeConfigFile(_0x45abcc,_0x4f6518);const _0x27c172=_0x13faa2===_0x1c9f4f(0x118)?_0x1c9f4f(0x118):_0x1c9f4f(0xf8);console[_0x1c9f4f(0xff)](_0x1c9f4f(0x119)+_0x27c172+_0x1c9f4f(0x105)),console[_0x1c9f4f(0xff)](_0x1c9f4f(0x10d)+_0x2e81e6[_0x1c9f4f(0x110)](_0xda6087=>_0xda6087['appCode'])['join'](',\x20')),console[_0x1c9f4f(0xff)]('\x20\x20Default:\x20'+_0x4f6518[_0x1c9f4f(0x107)]),console['log'](_0x1c9f4f(0x10a)+_0x4f6518[_0x1c9f4f(0xfb)]),console[_0x1c9f4f(0xff)](_0x1c9f4f(0x108)+_0x45abcc);}async function runSmartInit(_0x5db6b9){const _0x3ef1e7=a76_0xce1a,_0x5c7fd5=process[_0x3ef1e7(0x11b)](),_0x3d3ed1=_0x5db6b9[_0x3ef1e7(0xf6)](_0x3ef1e7(0x118))?_0x3ef1e7(0x118):'project',_0x2a05be=_0x5db6b9[_0x3ef1e7(0xee)](_0x3ef1e7(0xfb))||_0x3ef1e7(0xf2),_0x2b4d15=_0x5db6b9[_0x3ef1e7(0xee)](_0x3ef1e7(0x115))||undefined,_0x55ac3d=_0x5db6b9[_0x3ef1e7(0xf6)](_0x3ef1e7(0xf8));if(_0x55ac3d){const {initConfig:_0x1c2128}=await import(_0x3ef1e7(0x112));return _0x1c2128({'appcode':_0x2b4d15,'env':_0x2a05be,'autoYes':_0x5db6b9[_0x3ef1e7(0xf6)](_0x3ef1e7(0xf7))});}if(_0x3d3ed1===_0x3ef1e7(0xf8)){const _0x425cef=existsSync(resolve(_0x5c7fd5,NEW_CONFIG_NAME)),_0x5430b9=LEGACY_CONFIG_NAMES[_0x3ef1e7(0x103)](_0x4ae01d=>existsSync(resolve(_0x5c7fd5,_0x4ae01d)));if(_0x5430b9&&!_0x425cef)return console[_0x3ef1e7(0xff)](_0x3ef1e7(0xfc)),upgradeApp(_0x5db6b9[_0x3ef1e7(0x10c)],{'yes':_0x5db6b9['bool']('yes')});if(_0x425cef)throw CliErrors['validation']('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.',_0x3ef1e7(0xf1)+CLI_BIN_NAME+_0x3ef1e7(0xfd));}if(_0x2b4d15){const _0x4bff52=validateAppcode(_0x2b4d15);if(!_0x4bff52[_0x3ef1e7(0xf3)])throw CliErrors[_0x3ef1e7(0x109)](_0x4bff52[_0x3ef1e7(0x116)]);writeInitConfig(_0x3d3ed1,[syntheticApp(_0x2b4d15)],_0x2a05be);return;}if(_0x5db6b9[_0x3ef1e7(0x10c)])throw CliErrors[_0x3ef1e7(0xed)](_0x3ef1e7(0x115),_0x3ef1e7(0x113)+CLI_BIN_NAME+_0x3ef1e7(0x102));const _0x19dec9=getCookie(),_0x5b57ae=await selectMultipleApps(_0x19dec9),_0x1b32ab=_0x5b57ae===_0x3ef1e7(0xf9)?[syntheticApp(await promptCustomAppcode())]:_0x5b57ae;writeInitConfig(_0x3d3ed1,_0x1b32ab,_0x2a05be);}const initFlags=[{'name':a76_0xa9ee6c(0x118),'type':a76_0xa9ee6c(0x11d),'description':a76_0xa9ee6c(0x106),'default':![]},{'name':a76_0xa9ee6c(0xfb),'type':'string','description':a76_0xa9ee6c(0x111),'default':a76_0xa9ee6c(0xf2),'enum':[...RABETBASE_ENV_VALUES]},{'name':a76_0xa9ee6c(0x115),'type':'string','description':'App\x20code\x20to\x20initialize\x20with'},{'name':a76_0xa9ee6c(0xf8),'type':a76_0xa9ee6c(0x11d),'description':a76_0xa9ee6c(0xfe),'default':![]},{'name':a76_0xa9ee6c(0xf7),'type':'boolean','description':a76_0xa9ee6c(0x104),'default':![]}];export const initDefinitions=[{'service':a76_0xa9ee6c(0x11c),'command':a76_0xa9ee6c(0x100),'description':a76_0xa9ee6c(0xfa),'risk':a76_0xa9ee6c(0x117),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x5562ac){return await runSmartInit(_0x5562ac),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a77_0x18c9(){const _0x8df8d0=['841548AOhplL','61685GtJQpt','26IdUhfV','528346rEXfqJ','663048wYtiDe','30hfoGGz','7ScHKLG','33JwuubE','4047rXnmNZ','1259880eIGdzs','6fbMofV','10uXutEr','162484PApzsS'];a77_0x18c9=function(){return _0x8df8d0;};return a77_0x18c9();}(function(_0x567e5a,_0x487c04){const _0x3c73be=a77_0x4faa,_0x11166b=_0x567e5a();while(!![]){try{const _0x29c925=parseInt(_0x3c73be(0x7d))/0x1*(-parseInt(_0x3c73be(0x84))/0x2)+-parseInt(_0x3c73be(0x7f))/0x3*(-parseInt(_0x3c73be(0x81))/0x4)+-parseInt(_0x3c73be(0x83))/0x5*(-parseInt(_0x3c73be(0x7a))/0x6)+-parseInt(_0x3c73be(0x7b))/0x7*(parseInt(_0x3c73be(0x7e))/0x8)+parseInt(_0x3c73be(0x79))/0x9*(-parseInt(_0x3c73be(0x80))/0xa)+parseInt(_0x3c73be(0x7c))/0xb*(parseInt(_0x3c73be(0x82))/0xc)+parseInt(_0x3c73be(0x78))/0xd;if(_0x29c925===_0x487c04)break;else _0x11166b['push'](_0x11166b['shift']());}catch(_0x34ea36){_0x11166b['push'](_0x11166b['shift']());}}}(a77_0x18c9,0x1ae6c));function a77_0x4faa(_0x39b20c,_0x293b99){_0x39b20c=_0x39b20c-0x78;const _0x18c95f=a77_0x18c9();let _0x4faa57=_0x18c95f[_0x39b20c];return _0x4faa57;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a78_0x4ae862=a78_0x124d;(function(_0x1906ff,_0x52b16c){const _0x45b3e0=a78_0x124d,_0x469b53=_0x1906ff();while(!![]){try{const _0x39cc9f=-parseInt(_0x45b3e0(0xe8))/0x1*(parseInt(_0x45b3e0(0xf8))/0x2)+-parseInt(_0x45b3e0(0x107))/0x3*(parseInt(_0x45b3e0(0xf3))/0x4)+parseInt(_0x45b3e0(0xee))/0x5*(-parseInt(_0x45b3e0(0xf5))/0x6)+parseInt(_0x45b3e0(0xf0))/0x7*(parseInt(_0x45b3e0(0x100))/0x8)+parseInt(_0x45b3e0(0xf9))/0x9*(parseInt(_0x45b3e0(0x106))/0xa)+parseInt(_0x45b3e0(0xe7))/0xb*(parseInt(_0x45b3e0(0x101))/0xc)+parseInt(_0x45b3e0(0xe9))/0xd*(parseInt(_0x45b3e0(0xfd))/0xe);if(_0x39cc9f===_0x52b16c)break;else _0x469b53['push'](_0x469b53['shift']());}catch(_0x57a18a){_0x469b53['push'](_0x469b53['shift']());}}}(a78_0x4bcd,0xf027f));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a78_0x4ae862(0xf2);const NUDGE_SUPPRESSED_CODES=new Set(['cancelled','auth_required','config_missing',a78_0x4ae862(0x105),'unknown_command','flag_missing',a78_0x4ae862(0xfe),a78_0x4ae862(0xfa)]),defaultWriter=_0x378ae2=>{const _0x2037b0=a78_0x4ae862;process[_0x2037b0(0xe6)]['write'](_0x378ae2);};export function shouldNudgeForError(_0x4e802f,_0x58762c){const _0x18074d=a78_0x4ae862;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x58762c[_0x18074d(0x103)]===_0x18074d(0xfb)&&_0x58762c['command']===_0x18074d(0xeb))return![];if(_0x4e802f instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x18074d(0xf7)](_0x4e802f[_0x18074d(0xfc)]);return!![];}export function printIssueReportNudgeForError(_0x220d90,_0x3d0afa,_0x360936=defaultWriter){if(!shouldNudgeForError(_0x220d90,_0x3d0afa))return;const _0x177e29=buildSuggestedTitle(_0x220d90,_0x3d0afa);_0x360936(formatNudge(_0x177e29));}function a78_0x124d(_0x3b8b78,_0x57cbf3){_0x3b8b78=_0x3b8b78-0xe5;const _0x4bcd81=a78_0x4bcd();let _0x124d78=_0x4bcd81[_0x3b8b78];return _0x124d78;}function buildSuggestedTitle(_0x542409,_0xdb7c59){const _0x2ff054=a78_0x4ae862,_0x56fe77=_0x542409 instanceof Error?_0x542409['message']:String(_0x542409),_0x5395d9=_0x56fe77[_0x2ff054(0xe5)](/[\r\n]+/g,'\x20')[_0x2ff054(0xe5)](/\s+/g,'\x20')[_0x2ff054(0xef)]()[_0x2ff054(0xea)](0x0,0x78)[_0x2ff054(0xe5)](/"/g,'\x5c\x22'),_0x18212c=CLI_BIN_NAME+'\x20'+_0xdb7c59[_0x2ff054(0x103)]+'\x20'+_0xdb7c59[_0x2ff054(0x104)];return _0x5395d9[_0x2ff054(0xf6)]>0x0?_0x18212c+':\x20'+_0x5395d9:_0x18212c;}function formatNudge(_0x51284b){const _0x39fc2e=a78_0x4ae862;return['','Hit\x20a\x20'+CLI_BIN_NAME+'\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20'+CLI_BIN_NAME+_0x39fc2e(0x102),_0x39fc2e(0xed)+_0x51284b+_0x39fc2e(0xec),_0x39fc2e(0xff),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)',_0x39fc2e(0x108)+NUDGE_OPT_OUT_ENV+_0x39fc2e(0xf1),''][_0x39fc2e(0xf4)]('\x0a');}function a78_0x4bcd(){const _0x29818d=['17081340QKSVAR','3369kagalK','\x20\x20Set\x20','replace','stderr','121DkIMxf','3zLvBWC','21129459dxUXDC','slice','report','\x22\x20\x5c','\x20\x20\x20\x20--title\x20\x22','10KEZwkm','trim','5558CHgPkh','=1\x20to\x20silence\x20this\x20hint.','RABETBASE_DISABLE_ISSUE_NUDGE','6428xgIwJf','join','5557260jmNsAb','length','has','248134GdEamv','9HsmdTJ','network_error','issue','code','14KMpbrP','validation_error','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','6616BXYplw','1115832ylqcRc','\x20issue\x20report\x20\x5c','service','command','not_in_project'];a78_0x4bcd=function(){return _0x29818d;};return a78_0x4bcd();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a79_0x11182e=a79_0xdfbd;(function(_0x461d94,_0x10cc5b){const _0x243907=a79_0xdfbd,_0x35ebb5=_0x461d94();while(!![]){try{const _0x3ac2fc=-parseInt(_0x243907(0x1f9))/0x1+parseInt(_0x243907(0x1e5))/0x2*(parseInt(_0x243907(0x1ea))/0x3)+-parseInt(_0x243907(0x1eb))/0x4*(parseInt(_0x243907(0x1f5))/0x5)+parseInt(_0x243907(0x1ee))/0x6*(parseInt(_0x243907(0x1fc))/0x7)+parseInt(_0x243907(0x1d3))/0x8+-parseInt(_0x243907(0x1dd))/0x9+parseInt(_0x243907(0x1e0))/0xa;if(_0x3ac2fc===_0x10cc5b)break;else _0x35ebb5['push'](_0x35ebb5['shift']());}catch(_0x87c5e6){_0x35ebb5['push'](_0x35ebb5['shift']());}}}(a79_0x2ebb,0x790a1));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a79_0x11182e(0x202);export const issueReport={'service':a79_0x11182e(0x205),'command':a79_0x11182e(0x1d0),'description':a79_0x11182e(0x1d5),'risk':a79_0x11182e(0x1f3),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a79_0x11182e(0x1fa),'flags':[{'name':'title','type':a79_0x11182e(0x1de),'required':!![],'description':'One-line\x20issue\x20summary'},{'name':a79_0x11182e(0x1f7),'type':a79_0x11182e(0x1de),'description':a79_0x11182e(0x1ff)},{'name':DESCRIPTION_FILE_FLAG,'type':a79_0x11182e(0x1de),'description':a79_0x11182e(0x208)}],async 'validate'(_0x101531){const _0x59fba6=a79_0x11182e,_0xc72665=_0x101531[_0x59fba6(0x1e7)](_0x59fba6(0x1e2))[_0x59fba6(0x1fe)](),_0x5eb880=_0x101531[_0x59fba6(0x1e7)]('description')['trim'](),_0x58657f=_0x101531[_0x59fba6(0x1e7)](DESCRIPTION_FILE_FLAG)[_0x59fba6(0x1fe)]();if(!_0xc72665)throw CliErrors['flagMissing'](_0x59fba6(0x1e2),_0x59fba6(0x1dc));const _0x1bccfe=_0x5eb880['length']>0x0,_0x26dbc4=_0x58657f[_0x59fba6(0x1fb)]>0x0;if(_0x1bccfe===_0x26dbc4)throw CliErrors[_0x59fba6(0x200)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0x59fba6(0x1e6));if(_0x26dbc4){const _0x2da898=resolve(process[_0x59fba6(0x1ed)](),_0x58657f);if(!existsSync(_0x2da898))throw CliErrors[_0x59fba6(0x200)]('File\x20not\x20found:\x20'+_0x2da898);}},async 'dryRun'(_0x10ae38){const _0x5989e4=a79_0x11182e,_0x5929fa=await prepareIssueReport(_0x10ae38);return{'method':_0x5989e4(0x1cb),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x5929fa[_0x5989e4(0x1e2)],'issue.description':_0x5929fa[_0x5989e4(0x1f7)],'issue.description_original_bytes':_0x5929fa['sanitize'][_0x5989e4(0x1f4)],'issue.description_truncated':_0x5929fa[_0x5989e4(0x1e3)][_0x5989e4(0x209)],'issue.description_redactions':_0x5929fa[_0x5989e4(0x1e3)][_0x5989e4(0x1d8)],'issue.description_redaction_kinds':_0x5929fa['sanitize'][_0x5989e4(0x1cc)][_0x5989e4(0x1e9)](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter',_0x5989e4(0x1e4)+_0x5929fa['descriptionSource'],_0x5929fa['descriptionFilePath']?_0x5989e4(0x1e1)+_0x5929fa[_0x5989e4(0x1d6)]:null,_0x5929fa[_0x5989e4(0x1e3)][_0x5989e4(0x209)]?_0x5989e4(0x1d4)+_0x5929fa[_0x5989e4(0x1e3)][_0x5989e4(0x1f4)]+_0x5989e4(0x1f8):null,_0x5929fa['sanitize']['redactionCount']>0x0?_0x5989e4(0x1f1)+_0x5929fa[_0x5989e4(0x1e3)][_0x5989e4(0x1d8)]+'\x20('+_0x5929fa[_0x5989e4(0x1e3)][_0x5989e4(0x1cc)]['join'](',\x20')+')':null][_0x5989e4(0x1da)](Boolean)[_0x5989e4(0x1e9)]('\x0a')};},async 'execute'(_0xdc57a9){const _0x473836=a79_0x11182e,_0x1ceb39=await prepareIssueReport(_0xdc57a9);try{await sendPlatformIssueCollectLog({'title':_0x1ceb39[_0x473836(0x1e2)],'description':_0x1ceb39[_0x473836(0x1f7)],'sanitize':{'originalBytes':_0x1ceb39[_0x473836(0x1e3)][_0x473836(0x1f4)],'truncated':_0x1ceb39['sanitize'][_0x473836(0x209)],'redactionCount':_0x1ceb39[_0x473836(0x1e3)][_0x473836(0x1d8)],'redactionKinds':_0x1ceb39['sanitize'][_0x473836(0x1cc)]}});}catch(_0x80b1f6){throw CliErrors[_0x473836(0x1ce)](_0x473836(0x207)+(_0x80b1f6 instanceof Error?_0x80b1f6[_0x473836(0x1ec)]:String(_0x80b1f6)),_0x473836(0x1df));}return{'ok':!![],'message':buildResultMessage(_0x1ceb39[_0x473836(0x1e3)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x473836(0x203),_0x473836(0x206),_0x473836(0x1e8),_0x473836(0x1f2),_0x473836(0x1db),'issue.description_redaction_kinds'],'issue':{'title':_0x1ceb39['title'],'descriptionLength':_0x1ceb39[_0x473836(0x1f7)][_0x473836(0x1fb)],'descriptionSource':_0x1ceb39[_0x473836(0x1fd)],..._0x1ceb39['descriptionFilePath']?{'descriptionFile':_0x1ceb39[_0x473836(0x1d6)]}:{},'sanitize':{'originalBytes':_0x1ceb39[_0x473836(0x1e3)]['originalBytes'],'truncated':_0x1ceb39[_0x473836(0x1e3)][_0x473836(0x209)],'redactions':_0x1ceb39[_0x473836(0x1e3)][_0x473836(0x1d8)],'redactionKinds':_0x1ceb39['sanitize'][_0x473836(0x1cc)]}}}};}};function a79_0xdfbd(_0x20e42e,_0x3353bf){_0x20e42e=_0x20e42e-0x1cb;const _0x2ebbc=a79_0x2ebb();let _0xdfbd81=_0x2ebbc[_0x20e42e];return _0xdfbd81;}function buildResultMessage(_0x127d43){const _0x11057e=a79_0x11182e,_0x384c95=[];return _0x127d43[_0x11057e(0x209)]&&_0x384c95[_0x11057e(0x1cf)](_0x11057e(0x1cd)+_0x127d43['originalBytes']+_0x11057e(0x1f8)),_0x127d43[_0x11057e(0x1d8)]>0x0&&_0x384c95[_0x11057e(0x1cf)](_0x11057e(0x20a)+_0x127d43[_0x11057e(0x1d8)]+_0x11057e(0x204)+_0x127d43[_0x11057e(0x1cc)]['join'](',\x20')),_0x384c95['length']===0x0?_0x11057e(0x1d7):_0x11057e(0x1f0)+_0x384c95[_0x11057e(0x1e9)](';\x20')+')';}function a79_0x2ebb(){const _0x2a0007=['utf8','Platform\x20issue\x20reported\x20(','redactions:\x20','issue.description_truncated','write','originalBytes','5FygScP','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','description','\x20bytes','984146EiqmaF','compress','length','3183131NUixhF','descriptionSource','trim','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','validation','Issue\x20description\x20file\x20is\x20empty:\x20','description-file','issue.title','\x20secret(s):\x20','issue','issue.description','Failed\x20to\x20report\x20platform\x20issue:\x20','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','truncated','redacted\x20','POST','redactionKinds','truncated\x20from\x20','apiError','push','report','file','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','1455592xcuGSD','truncated:\x20original\x20','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','descriptionFilePath','Platform\x20issue\x20reported','redactionCount','inline','filter','issue.description_redactions','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','8483211bumstw','string','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','14046440JnTydt','descriptionFile:\x20','title','sanitize','descriptionSource:\x20','2QcVnlK','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','str','issue.description_original_bytes','join','142338euucRa','484012HmwltH','message','cwd','12AZvJSG'];a79_0x2ebb=function(){return _0x2a0007;};return a79_0x2ebb();}async function prepareIssueReport(_0x40da4a){const _0x546882=a79_0x11182e,_0x385755=_0x40da4a[_0x546882(0x1e7)]('title')[_0x546882(0x1fe)](),_0x5f2e20=_0x40da4a[_0x546882(0x1e7)]('description'),_0xb1bb5b=_0x40da4a[_0x546882(0x1e7)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0xb1bb5b){const _0x51ddbf=_0x5f2e20;if(!_0x51ddbf[_0x546882(0x1fe)]())throw CliErrors[_0x546882(0x200)]('Issue\x20description\x20cannot\x20be\x20empty.',_0x546882(0x1f6));const _0x522f81=sanitizeIssueDescription(_0x51ddbf);return{'title':_0x385755,'description':_0x522f81['description'],'descriptionSource':_0x546882(0x1d9),'sanitize':_0x522f81};}const _0x3f30f9=resolve(process[_0x546882(0x1ed)](),_0xb1bb5b),_0x5f5194=await readFile(_0x3f30f9,_0x546882(0x1ef));if(!_0x5f5194[_0x546882(0x1fe)]())throw CliErrors[_0x546882(0x200)](_0x546882(0x201)+_0x3f30f9,_0x546882(0x1d2));const _0x3c6fb6=sanitizeIssueDescription(_0x5f5194);return{'title':_0x385755,'description':_0x3c6fb6[_0x546882(0x1f7)],'descriptionSource':_0x546882(0x1d1),'descriptionFilePath':_0x3f30f9,'sanitize':_0x3c6fb6};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a80_0x4b2722=a80_0x5908;(function(_0x14a7d2,_0x5e3abd){const _0x164e7e=a80_0x5908,_0x393545=_0x14a7d2();while(!![]){try{const _0x53d136=-parseInt(_0x164e7e(0xaa))/0x1*(parseInt(_0x164e7e(0x9c))/0x2)+-parseInt(_0x164e7e(0xbc))/0x3+-parseInt(_0x164e7e(0xae))/0x4*(-parseInt(_0x164e7e(0xa2))/0x5)+-parseInt(_0x164e7e(0xb2))/0x6*(parseInt(_0x164e7e(0xaf))/0x7)+-parseInt(_0x164e7e(0x9d))/0x8*(-parseInt(_0x164e7e(0xb5))/0x9)+-parseInt(_0x164e7e(0xb1))/0xa*(parseInt(_0x164e7e(0xb4))/0xb)+-parseInt(_0x164e7e(0x9f))/0xc*(-parseInt(_0x164e7e(0xa6))/0xd);if(_0x53d136===_0x5e3abd)break;else _0x393545['push'](_0x393545['shift']());}catch(_0x55fde3){_0x393545['push'](_0x393545['shift']());}}}(a80_0x37a5,0x3c93a));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a80_0x4b2722(0xa7),REDACTION_RULES=[{'kind':a80_0x4b2722(0xb9),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a80_0x4b2722(0xa3)},{'kind':a80_0x4b2722(0xa8),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a80_0x4b2722(0xab)},{'kind':a80_0x4b2722(0xbd),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a80_0x4b2722(0xa0)},{'kind':a80_0x4b2722(0xb8),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a80_0x4b2722(0x9b)},{'kind':a80_0x4b2722(0xa1),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a80_0x4b2722(0xb0)},{'kind':a80_0x4b2722(0xac),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a80_0x4b2722(0xa4)}];function a80_0x37a5(){const _0x23f3c1=['kind','push','access-key','cookie','max','includes','555618nmRVEX','private-key','REDACTED:access-key','296500ZofMsA','75968TWHTKe','subarray','312HjaeAo','REDACTED:private-key','password','135XoWhIN','REDACTED:cookie','REDACTED:bearer-jwt','byteLength','457522QOpDeJ','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','authorization','replace','3opoERt','REDACTED:authorization','bearer-jwt','utf8','62780pRuTTE','7ssyxoK','REDACTED:password','103890CVbJZZ','794526uFgqLU','string','418ZqUlUJ','63GATjMg'];a80_0x37a5=function(){return _0x23f3c1;};return a80_0x37a5();}export function sanitizeIssueDescription(_0x3d4953){const _0x4a99d1=a80_0x4b2722,_0x47e4eb=Buffer['byteLength'](_0x3d4953,_0x4a99d1(0xad)),_0x1b08ca=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x31687f=_0x3d4953,_0x4cd523=0x0;const _0xc3ddf9=[];if(!_0x1b08ca)for(const _0x43b84a of REDACTION_RULES){let _0x1e30ac=0x0;_0x31687f=_0x31687f[_0x4a99d1(0xa9)](_0x43b84a['pattern'],(_0x4a5bc3,_0x43b7d4)=>{const _0x326742=_0x4a99d1;_0x1e30ac+=0x1;const _0x16a5d4=typeof _0x43b7d4===_0x326742(0xb3)?_0x43b7d4:'';return _0x16a5d4+'['+_0x43b84a['label']+']';}),_0x1e30ac>0x0&&(_0x4cd523+=_0x1e30ac,!_0xc3ddf9[_0x4a99d1(0xbb)](_0x43b84a[_0x4a99d1(0xb6)])&&_0xc3ddf9[_0x4a99d1(0xb7)](_0x43b84a[_0x4a99d1(0xb6)]));}let _0x237917=![];if(Buffer[_0x4a99d1(0xa5)](_0x31687f,_0x4a99d1(0xad))>ISSUE_DESCRIPTION_MAX_BYTES){_0x237917=!![];const _0x4263a5=Buffer['byteLength'](TRUNCATION_NOTICE,'utf8'),_0x19445a=Math[_0x4a99d1(0xba)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x4263a5);_0x31687f=sliceUtf8Bytes(_0x31687f,_0x19445a)+TRUNCATION_NOTICE;}return{'description':_0x31687f,'originalBytes':_0x47e4eb,'truncated':_0x237917,'redactionCount':_0x4cd523,'redactionKinds':_0xc3ddf9};}function a80_0x5908(_0x1636ac,_0x1c38c9){_0x1636ac=_0x1636ac-0x9b;const _0x37a53b=a80_0x37a5();let _0x5908b4=_0x37a53b[_0x1636ac];return _0x5908b4;}function sliceUtf8Bytes(_0x1b4c2b,_0x3379eb){const _0x1d13cb=a80_0x4b2722;if(_0x3379eb<=0x0)return'';const _0x5248d3=Buffer['from'](_0x1b4c2b,_0x1d13cb(0xad));if(_0x5248d3[_0x1d13cb(0xa5)]<=_0x3379eb)return _0x1b4c2b;let _0x39a0ab=_0x3379eb;while(_0x39a0ab>0x0){const _0x5e6478=_0x5248d3[_0x39a0ab];if(_0x5e6478===undefined||(_0x5e6478&0xc0)!==0x80)break;_0x39a0ab-=0x1;}return _0x5248d3[_0x1d13cb(0x9e)](0x0,_0x39a0ab)['toString'](_0x1d13cb(0xad));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a81_0x22f5d8=a81_0x5358;(function(_0x2bade8,_0x303865){const _0x5a20e4=a81_0x5358,_0x7d436d=_0x2bade8();while(!![]){try{const _0x4c97a5=parseInt(_0x5a20e4(0xa3))/0x1+-parseInt(_0x5a20e4(0xba))/0x2+-parseInt(_0x5a20e4(0xa4))/0x3+parseInt(_0x5a20e4(0xb2))/0x4+parseInt(_0x5a20e4(0xad))/0x5+parseInt(_0x5a20e4(0xa0))/0x6*(-parseInt(_0x5a20e4(0xab))/0x7)+parseInt(_0x5a20e4(0x9f))/0x8;if(_0x4c97a5===_0x303865)break;else _0x7d436d['push'](_0x7d436d['shift']());}catch(_0x3604ec){_0x7d436d['push'](_0x7d436d['shift']());}}}(a81_0x5ebd,0x9ce45));import{logger}from'../../utils/logger.js';function a81_0x5358(_0x124bea,_0x544aac){_0x124bea=_0x124bea-0x9c;const _0x5ebd70=a81_0x5ebd();let _0x535852=_0x5ebd70[_0x124bea];return _0x535852;}function a81_0x5ebd(){const _0xf4d1ee=['timestamp','5576625mNKtoL','clear','keys','forEach','Clear\x20command\x20history\x20logs','597916dkXCFE','stringify','clearLogs','success','*\x20Lovrabet\x20CLI\x20logs:\x0a','readLogs','length','*\x20No\x20logs\x20found','1470682nziPBh','warn','logs','level','read','3707096xhqDDW','6KFvCya','details','duration','75677lXLZnh','672156zsuVJY','error','\x20\x20\x20Details:\x20','en-US','log','show','\x20\x20\x20Duration:\x20','1412922jViPYb'];a81_0x5ebd=function(){return _0xf4d1ee;};return a81_0x5ebd();}function printLogs(_0x443590){const _0xf31644=a81_0x5358;if(_0x443590[_0xf31644(0xb8)]===0x0){console['log'](_0xf31644(0xb9));return;}console[_0xf31644(0xa8)](_0xf31644(0xb6)),_0x443590[_0xf31644(0xb0)]((_0x5eb326,_0x5c24bc)=>{const _0x5d88a3=_0xf31644,_0x1794e2=new Date(_0x5eb326[_0x5d88a3(0xac)])['toLocaleString'](_0x5d88a3(0xa7)),_0x46d725=_0x5eb326[_0x5d88a3(0x9d)]===_0x5d88a3(0xb5)?'√':_0x5eb326[_0x5d88a3(0x9d)]===_0x5d88a3(0xa5)?'×':_0x5eb326[_0x5d88a3(0x9d)]===_0x5d88a3(0xbb)?'!':'i';console[_0x5d88a3(0xa8)](_0x5c24bc+0x1+'.\x20'+_0x46d725+'\x20['+_0x5eb326['command']+']\x20'+_0x5eb326['message']),console[_0x5d88a3(0xa8)]('\x20\x20\x20Time:\x20'+_0x1794e2),_0x5eb326[_0x5d88a3(0xa2)]&&console[_0x5d88a3(0xa8)](_0x5d88a3(0xaa)+_0x5eb326['duration']+'ms'),_0x5eb326['details']&&Object[_0x5d88a3(0xaf)](_0x5eb326[_0x5d88a3(0xa1)])[_0x5d88a3(0xb8)]>0x0&&console[_0x5d88a3(0xa8)](_0x5d88a3(0xa6)+JSON[_0x5d88a3(0xb3)](_0x5eb326[_0x5d88a3(0xa1)],null,0x2)),console[_0x5d88a3(0xa8)]('');});}export const logsDefinitions=[{'service':'logs','command':a81_0x22f5d8(0xa9),'description':'View\x20command\x20history\x20logs','risk':a81_0x22f5d8(0x9e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x5dc780){const _0x1ad592=a81_0x22f5d8;return printLogs(logger[_0x1ad592(0xb7)]()),{'ok':!![]};}},{'service':a81_0x22f5d8(0x9c),'command':a81_0x22f5d8(0xae),'description':a81_0x22f5d8(0xb1),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x493217){const _0x4b3680=a81_0x22f5d8;return logger[_0x4b3680(0xb4)](),console[_0x4b3680(0xa8)]('*\x20Logs\x20cleared'),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x36b45c,_0x370817){const _0x1ad6bb=a82_0x8bf0,_0x2bf8f1=_0x36b45c();while(!![]){try{const _0x16a892=parseInt(_0x1ad6bb(0x78))/0x1*(parseInt(_0x1ad6bb(0x76))/0x2)+parseInt(_0x1ad6bb(0x77))/0x3*(parseInt(_0x1ad6bb(0x70))/0x4)+-parseInt(_0x1ad6bb(0x71))/0x5*(parseInt(_0x1ad6bb(0x72))/0x6)+parseInt(_0x1ad6bb(0x73))/0x7*(-parseInt(_0x1ad6bb(0x75))/0x8)+parseInt(_0x1ad6bb(0x6f))/0x9*(parseInt(_0x1ad6bb(0x79))/0xa)+-parseInt(_0x1ad6bb(0x7a))/0xb+parseInt(_0x1ad6bb(0x6e))/0xc*(parseInt(_0x1ad6bb(0x74))/0xd);if(_0x16a892===_0x370817)break;else _0x2bf8f1['push'](_0x2bf8f1['shift']());}catch(_0x322f7b){_0x2bf8f1['push'](_0x2bf8f1['shift']());}}}(a82_0x4a00,0x8d2cd));import{menuSync}from'../../commands/menu/sync.js';function a82_0x8bf0(_0x54be61,_0x248942){_0x54be61=_0x54be61-0x6e;const _0x4a008e=a82_0x4a00();let _0x8bf02b=_0x4a008e[_0x54be61];return _0x8bf02b;}function a82_0x4a00(){const _0xd455f6=['1522417eFKPen','128KVzDbt','1242514nJEWGU','2853JAdtje','1JSLgDk','50ThMLXt','2994739UbtZgk','24BHZjVz','1748772viYYeD','3820TtAWdM','850nCoQmg','38562XEhDGT','346556LWQZKc'];a82_0x4a00=function(){return _0xd455f6;};return a82_0x4a00();}import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];
|