@lovrabet/rabetbase-cli 2.4.2 → 2.4.3-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.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/file/index.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/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.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/mutations.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/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/ocr/index.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/react/create.js +1 -1
- package/lib/commands/page/react/detail.js +1 -1
- package/lib/commands/page/react/list.js +1 -1
- package/lib/commands/page/react/publish.js +1 -1
- package/lib/commands/page/react/shared.js +1 -1
- package/lib/commands/page/react/syntax.js +1 -1
- package/lib/commands/page/react/template.js +1 -1
- package/lib/commands/page/react/update.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.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/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.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/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.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/error-output.js +1 -1
- package/lib/framework/explicit-yes.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.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +8 -4
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5e7000,_0x2223b2){const _0x1544db=a198_0x3b46,_0x4846e2=_0x5e7000();while(!![]){try{const _0x324f96=-parseInt(_0x1544db(0x115))/0x1*(parseInt(_0x1544db(0x11b))/0x2)+parseInt(_0x1544db(0x122))/0x3+-parseInt(_0x1544db(0x11f))/0x4*(parseInt(_0x1544db(0x118))/0x5)+parseInt(_0x1544db(0x123))/0x6+parseInt(_0x1544db(0x12b))/0x7+-parseInt(_0x1544db(0x127))/0x8+parseInt(_0x1544db(0x11c))/0x9;if(_0x324f96===_0x2223b2)break;else _0x4846e2['push'](_0x4846e2['shift']());}catch(_0x5b8004){_0x4846e2['push'](_0x4846e2['shift']());}}}(a198_0x1ba1,0x3937d));import{CliErrors}from'../../errors.js';function textOrNull(_0x33e24d){const _0x2fffee=a198_0x3b46,_0x17ec01=_0x33e24d?.[_0x2fffee(0x126)]();return _0x17ec01?_0x17ec01:null;}function a198_0x3b46(_0x1cd09b,_0x26f3d0){_0x1cd09b=_0x1cd09b-0x111;const _0x1ba1dd=a198_0x1ba1();let _0x3b46ff=_0x1ba1dd[_0x1cd09b];return _0x3b46ff;}export function projectTenantMembers(_0x4a0877){const _0x55fbb1=a198_0x3b46,_0x2c33bf=new Map();for(const _0x2e2a29 of _0x4a0877){const _0x5f4b96=Number(_0x2e2a29[_0x55fbb1(0x12a)]);if(!Number[_0x55fbb1(0x128)](_0x5f4b96)||_0x5f4b96<=0x0)continue;const _0xfe1064={'userId':_0x5f4b96,'username':textOrNull(_0x2e2a29[_0x55fbb1(0x11a)]),'displayName':textOrNull(_0x2e2a29['nickname']),'role':_0x2e2a29[_0x55fbb1(0x111)]===!![]?_0x55fbb1(0x119):'MEMBER','status':textOrNull(_0x2e2a29['status'])},_0x15f930=_0x2c33bf[_0x55fbb1(0x11e)](_0x5f4b96);if(!_0x15f930){_0x2c33bf['set'](_0x5f4b96,_0xfe1064);continue;}_0x15f930[_0x55fbb1(0x11a)]??=_0xfe1064[_0x55fbb1(0x11a)],_0x15f930['displayName']??=_0xfe1064[_0x55fbb1(0x121)],_0x15f930[_0x55fbb1(0x116)]??=_0xfe1064[_0x55fbb1(0x116)];if(_0xfe1064['role']==='ADMIN')_0x15f930[_0x55fbb1(0x129)]=_0x55fbb1(0x119);}return[..._0x2c33bf[_0x55fbb1(0x112)]()][_0x55fbb1(0x11d)]((_0x277715,_0x511115)=>_0x277715[_0x55fbb1(0x12a)]-_0x511115[_0x55fbb1(0x12a)]);}function a198_0x1ba1(){const _0x5d3529=['userId','1494269rWyTyw','adminFlag','values','some','validation','4006czFyxU','status','tenantCode','126235hmpBHW','ADMIN','username','226hEqftz','4547448lhgoMj','sort','get','48DbDyAY','Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.','displayName','935454rguoYa','1798788CETJyy','Tenant\x20\x22','\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.','trim','2722784vTiKpq','isFinite','role'];a198_0x1ba1=function(){return _0x5d3529;};return a198_0x1ba1();}export function assertTenantAccessible(_0x1c6184,_0x4e84f6){const _0x5aa0bf=a198_0x3b46;if(_0x4e84f6[_0x5aa0bf(0x113)](_0xf9a510=>_0xf9a510[_0x5aa0bf(0x117)]===_0x1c6184))return;throw CliErrors[_0x5aa0bf(0x114)](_0x5aa0bf(0x124)+_0x1c6184+_0x5aa0bf(0x125),_0x5aa0bf(0x120));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a199_0x239b97=a199_0x1041;function a199_0x466b(){const _0x18c839=['534aFvBNa','Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.','222470wMhJKh','bind','POST','DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.','48643vwPgoF','183357QbMqVQ','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','validation','dingding-sandbox','trim','763880CfbNfU','2123RNuKeR','high-risk-write','Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','3xzHOeg','585500qduhLo','apiError','5199844nWMGzl','--ding-talk-user-id\x20cannot\x20be\x20empty.','1375720OztxwF','216BCNLml','str'];a199_0x466b=function(){return _0x18c839;};return a199_0x466b();}function a199_0x1041(_0x325be1,_0x1da568){_0x325be1=_0x325be1-0x14b;const _0x466b31=a199_0x466b();let _0x104111=_0x466b31[_0x325be1];return _0x104111;}(function(_0x314e76,_0xf619b){const _0x3ce416=a199_0x1041,_0x162afa=_0x314e76();while(!![]){try{const _0x2c6754=-parseInt(_0x3ce416(0x153))/0x1+parseInt(_0x3ce416(0x157))/0x2*(-parseInt(_0x3ce416(0x152))/0x3)+-parseInt(_0x3ce416(0x155))/0x4+parseInt(_0x3ce416(0x14d))/0x5+-parseInt(_0x3ce416(0x15a))/0x6*(parseInt(_0x3ce416(0x160))/0x7)+parseInt(_0x3ce416(0x158))/0x8*(-parseInt(_0x3ce416(0x161))/0x9)+-parseInt(_0x3ce416(0x15c))/0xa*(-parseInt(_0x3ce416(0x14e))/0xb);if(_0x2c6754===_0xf619b)break;else _0x162afa['push'](_0x162afa['shift']());}catch(_0x482810){_0x162afa['push'](_0x162afa['shift']());}}}(a199_0x466b,0xac052));import{asDryRunResult}from'../../commands/common/dry-run.js';import{bindDingTalkSandboxAccount,DING_TALK_SANDBOX_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const PROVIDER_ID=a199_0x239b97(0x14b),CURRENT_BINDING_WARNING=a199_0x239b97(0x162);function readDingTalkUserId(_0x165f4e){const _0x25b2ae=a199_0x239b97,_0x46767c=_0x165f4e[_0x25b2ae(0x159)]('ding-talk-user-id')[_0x25b2ae(0x14c)]();if(!_0x46767c)throw CliErrors[_0x25b2ae(0x163)](_0x25b2ae(0x156),_0x25b2ae(0x15b));return _0x46767c;}function buildBindingData(_0x4d78d5,_0x17eb06){const _0x34d793=a199_0x239b97;return{'operation':_0x34d793(0x15d),'selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x4d78d5},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x4d78d5,'bound':!![]},'dryRun':_0x17eb06,'backend':{'method':_0x34d793(0x15e),'path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const dingTalkSandboxBind={'service':'user-account','command':'dingding-sandbox-bind','description':'Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','risk':a199_0x239b97(0x14f),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':'ding-talk-user-id','type':'string','required':!![],'description':a199_0x239b97(0x151)}],async 'validate'(_0x4d44d7){readDingTalkUserId(_0x4d44d7);},async 'dryRun'(_0x1ed96e){const _0x23cc96=readDingTalkUserId(_0x1ed96e);return asDryRunResult(buildBindingData(_0x23cc96,!![]),{'method':'POST','url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x53a9c2){const _0x4a2b65=a199_0x239b97,_0x44aa87=readDingTalkUserId(_0x53a9c2),_0x1cee5f=await bindDingTalkSandboxAccount(_0x44aa87);if(_0x1cee5f!==!![])throw CliErrors[_0x4a2b65(0x154)](_0x4a2b65(0x15f),_0x4a2b65(0x150));return{'ok':!![],'data':buildBindingData(_0x44aa87,![]),'message':'Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a200_0x58bb(){const _0x1598cd=['4556881gKMmOW','1755738lcvZIh','2867385BuIERu','1956222vkKWzV','158708hpRAGx','4759638EoYxgZ','8tTXaRe','104006qXXCSy'];a200_0x58bb=function(){return _0x1598cd;};return a200_0x58bb();}(function(_0x563185,_0x205dbc){const _0x4a8d8c=a200_0x3dc4,_0x3ce3b7=_0x563185();while(!![]){try{const _0x57df30=-parseInt(_0x4a8d8c(0x8e))/0x1+parseInt(_0x4a8d8c(0x90))/0x2+-parseInt(_0x4a8d8c(0x8a))/0x3+-parseInt(_0x4a8d8c(0x8b))/0x4+parseInt(_0x4a8d8c(0x91))/0x5+-parseInt(_0x4a8d8c(0x8c))/0x6+-parseInt(_0x4a8d8c(0x8f))/0x7*(-parseInt(_0x4a8d8c(0x8d))/0x8);if(_0x57df30===_0x205dbc)break;else _0x3ce3b7['push'](_0x3ce3b7['shift']());}catch(_0x4a678b){_0x3ce3b7['push'](_0x3ce3b7['shift']());}}}(a200_0x58bb,0x7d513));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';function a200_0x3dc4(_0x25c558,_0x48e119){_0x25c558=_0x25c558-0x8a;const _0x58bb19=a200_0x58bb();let _0x3dc4ca=_0x58bb19[_0x25c558];return _0x3dc4ca;}export const userAccountDefinitions=[dingTalkSandboxBind];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a201_0x261b(_0x5e6474,_0x172e12){_0x5e6474=_0x5e6474-0x182;const _0x5c11ab=a201_0x5c11();let _0x261bdc=_0x5c11ab[_0x5e6474];return _0x261bdc;}const a201_0x138eb4=a201_0x261b;(function(_0x28df36,_0x419b3d){const _0x3a2982=a201_0x261b,_0x544bb2=_0x28df36();while(!![]){try{const _0x187dc6=parseInt(_0x3a2982(0x18b))/0x1+-parseInt(_0x3a2982(0x189))/0x2*(-parseInt(_0x3a2982(0x183))/0x3)+parseInt(_0x3a2982(0x18d))/0x4+parseInt(_0x3a2982(0x18a))/0x5*(parseInt(_0x3a2982(0x184))/0x6)+parseInt(_0x3a2982(0x18f))/0x7+parseInt(_0x3a2982(0x188))/0x8+-parseInt(_0x3a2982(0x185))/0x9;if(_0x187dc6===_0x419b3d)break;else _0x544bb2['push'](_0x544bb2['shift']());}catch(_0x1b71ab){_0x544bb2['push'](_0x544bb2['shift']());}}}(a201_0x5c11,0x46ff4));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':'workspace','command':a201_0x138eb4(0x182),'description':'Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','risk':a201_0x138eb4(0x18e),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a201_0x138eb4(0x18c),'description':a201_0x138eb4(0x186),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x3ef0e9=>validateAppName(_0x3ef0e9,a201_0x138eb4(0x187)),'execute':_0xd7baaa=>runAppAdd(_0xd7baaa,'workspace\x20add')};function a201_0x5c11(){const _0x4c36b0=['11286558iIZpHu','App\x20profile\x20name','workspace\x20add','2081176YnAjfD','1116338zeVKcI','85LlFZOc','147043OQjpqD','name','205700jEBFkz','write','2930690Qlhajl','add','3aMLtUC','38616vTsNyg'];a201_0x5c11=function(){return _0x4c36b0;};return a201_0x5c11();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a202_0x28f3a4=a202_0x36c6;(function(_0x5a7f9f,_0x4760c8){const _0x37a498=a202_0x36c6,_0x8fe42e=_0x5a7f9f();while(!![]){try{const _0x5d3a10=-parseInt(_0x37a498(0x17e))/0x1*(parseInt(_0x37a498(0x187))/0x2)+-parseInt(_0x37a498(0x19d))/0x3*(-parseInt(_0x37a498(0x19e))/0x4)+-parseInt(_0x37a498(0x184))/0x5+-parseInt(_0x37a498(0x1a1))/0x6*(parseInt(_0x37a498(0x190))/0x7)+-parseInt(_0x37a498(0x181))/0x8+parseInt(_0x37a498(0x195))/0x9*(parseInt(_0x37a498(0x19c))/0xa)+-parseInt(_0x37a498(0x1a3))/0xb*(-parseInt(_0x37a498(0x170))/0xc);if(_0x5d3a10===_0x4760c8)break;else _0x8fe42e['push'](_0x8fe42e['shift']());}catch(_0x834181){_0x8fe42e['push'](_0x8fe42e['shift']());}}}(a202_0x33df,0x4b9cc));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';const WORKSPACE_USAGE=CLI_BIN_NAME+'\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]',SAFE_PROFILE_KEYS=[a202_0x28f3a4(0x186),'env',a202_0x28f3a4(0x1a7),a202_0x28f3a4(0x185),a202_0x28f3a4(0x18e),a202_0x28f3a4(0x18a),'locale'],workspaceFlags=[{'name':'app','type':a202_0x28f3a4(0x197),'description':a202_0x28f3a4(0x17d)},{'name':a202_0x28f3a4(0x186),'type':a202_0x28f3a4(0x197),'description':a202_0x28f3a4(0x1a2)},{'name':a202_0x28f3a4(0x1a5),'type':a202_0x28f3a4(0x197),'description':a202_0x28f3a4(0x17f),'enum':[...RABETBASE_ENV_VALUES]},{'name':a202_0x28f3a4(0x1a7),'type':a202_0x28f3a4(0x197),'description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a202_0x28f3a4(0x188),'type':'string','description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a202_0x28f3a4(0x18e),'type':a202_0x28f3a4(0x196),'description':a202_0x28f3a4(0x18c)},{'name':'riskLevel','type':a202_0x28f3a4(0x197),'description':a202_0x28f3a4(0x189),'enum':[...RISK_LEVEL_VALUES]},{'name':a202_0x28f3a4(0x18f),'type':a202_0x28f3a4(0x197),'description':a202_0x28f3a4(0x182)}];function isRecord(_0x311aec){const _0xeee61f=a202_0x28f3a4;return!!_0x311aec&&typeof _0x311aec===_0xeee61f(0x198)&&!Array[_0xeee61f(0x178)](_0x311aec);}function assertValidAppcode(_0x3d2205){const _0x1968b1=a202_0x28f3a4,{valid:_0x60ec4d,message:_0x19df6f}=validateAppcode(_0x3d2205);if(!_0x60ec4d)throw CliErrors[_0x1968b1(0x17c)]('Invalid\x20appcode:\x20'+_0x3d2205,_0x19df6f);}function sanitizeProfile(_0x4af8db){if(!isRecord(_0x4af8db))return{};const _0x249810={};for(const _0x244c30 of SAFE_PROFILE_KEYS){if(_0x4af8db[_0x244c30]!==undefined)_0x249810[_0x244c30]=_0x4af8db[_0x244c30];}return _0x249810;}function cloneProfile(_0x29f9b1){return isRecord(_0x29f9b1)?{..._0x29f9b1}:{};}function collectWorkspaceProfileOverrides(_0x33ba32){const _0x354526=a202_0x28f3a4,_0x19f9f8={},_0x59bee6=_0x33ba32[_0x354526(0x18d)](_0x354526(0x1a5)),_0x45a568=_0x33ba32[_0x354526(0x18d)](_0x354526(0x1a7)),_0x2b5212=_0x33ba32['str'](_0x354526(0x188)),_0x337c02=_0x33ba32[_0x354526(0x183)](_0x354526(0x18e)),_0x1cbd52=_0x33ba32[_0x354526(0x18d)]('riskLevel'),_0x4488b9=_0x33ba32[_0x354526(0x18d)]('locale');if(_0x59bee6)_0x19f9f8[_0x354526(0x1a5)]=_0x59bee6;if(_0x45a568)_0x19f9f8['apiDir']=_0x45a568;if(_0x2b5212)_0x19f9f8[_0x354526(0x185)]=_0x2b5212;if(_0x337c02!==undefined&&_0x337c02!=='')_0x19f9f8[_0x354526(0x18e)]=Number(_0x337c02);if(_0x1cbd52)_0x19f9f8[_0x354526(0x18a)]=_0x1cbd52;if(_0x4488b9)_0x19f9f8[_0x354526(0x18f)]=_0x4488b9;return _0x19f9f8;}async function validateWorkspaceArgs(_0x4e8d8e){const _0x3a9395=a202_0x28f3a4,_0x3c7da9=_0x4e8d8e[_0x3a9395(0x18d)](_0x3a9395(0x16f))['trim'](),_0x22e4eb=_0x4e8d8e[_0x3a9395(0x18d)](_0x3a9395(0x186))[_0x3a9395(0x173)]();if(!_0x3c7da9&&!_0x22e4eb)throw CliErrors[_0x3a9395(0x17c)](_0x3a9395(0x191),_0x3a9395(0x172)+CLI_BIN_NAME+_0x3a9395(0x193)+CLI_BIN_NAME+_0x3a9395(0x176));if(_0x22e4eb)assertValidAppcode(_0x22e4eb);}function a202_0x36c6(_0x24437f,_0x26f977){_0x24437f=_0x24437f-0x16e;const _0x33df6a=a202_0x33df();let _0x36c6b2=_0x33df6a[_0x24437f];return _0x36c6b2;}function resolveKnownApps(){const _0x49f6ca=a202_0x28f3a4,{config:_0x4cca36,layers:_0x33fe31}=readRawConfigWithLayers(),_0x3a3462=isRecord(_0x4cca36[_0x49f6ca(0x192)])?_0x4cca36['apps']:{},_0x4b3c36=isRecord(_0x33fe31['globalConfig'][_0x49f6ca(0x192)])?_0x33fe31['globalConfig'][_0x49f6ca(0x192)]:{};return{..._0x4b3c36,..._0x3a3462};}async function configureWorkspace(_0x3cdafe,_0x217331){const _0x391ca5=a202_0x28f3a4,_0x26894e=_0x3cdafe[_0x391ca5(0x18d)](_0x391ca5(0x16f))[_0x391ca5(0x173)](),_0x4e4c81=_0x3cdafe['str'](_0x391ca5(0x186))[_0x391ca5(0x173)](),_0x204f33=_0x26894e||_0x4e4c81;if(!_0x204f33)throw CliErrors[_0x391ca5(0x17c)](_0x391ca5(0x191),_0x391ca5(0x172)+CLI_BIN_NAME+_0x391ca5(0x193)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x4e4c81)assertValidAppcode(_0x4e4c81);const _0x42144b=resolveWriteConfigPath(_0x391ca5(0x1a4)),_0x567e1f=readConfigFile(_0x42144b),_0x385875=resolveKnownApps(),_0x2318e0=isRecord(_0x567e1f[_0x391ca5(0x192)])?{..._0x567e1f[_0x391ca5(0x192)]}:{},_0x1c2749=cloneProfile(_0x2318e0[_0x204f33]),_0x22241c=sanitizeProfile(_0x385875[_0x204f33]),_0x406bb1=_0x4e4c81?{}:_0x22241c,_0x5e89de=_0x4e4c81||_0x406bb1[_0x391ca5(0x186)];if(!_0x5e89de){const _0x43e975=Object[_0x391ca5(0x177)](_0x385875),_0x4e3d5e=_0x43e975[_0x391ca5(0x179)]===0x0?_0x391ca5(0x172)+CLI_BIN_NAME+_0x391ca5(0x194)+_0x217331+_0x391ca5(0x17a)+_0x204f33+'\x20--appcode\x20<code>`.':_0x391ca5(0x18b)+_0x43e975[_0x391ca5(0x19b)](',\x20');throw CliErrors[_0x391ca5(0x17c)]('App\x20\x22'+_0x204f33+'\x22\x20not\x20found.',_0x4e3d5e);}assertValidAppcode(String(_0x5e89de));const _0x3dbf37={..._0x406bb1,..._0x1c2749,'appcode':String(_0x5e89de),...collectWorkspaceProfileOverrides(_0x3cdafe)};return _0x2318e0[_0x204f33]=_0x3dbf37,_0x567e1f[_0x391ca5(0x192)]=_0x2318e0,_0x567e1f[_0x391ca5(0x17b)]=_0x204f33,delete _0x567e1f[_0x391ca5(0x186)],delete _0x567e1f[_0x391ca5(0x16f)],_0x3dbf37['env']&&(_0x567e1f[_0x391ca5(0x1a5)]=_0x3dbf37[_0x391ca5(0x1a5)]),writeConfigFile(_0x42144b,_0x567e1f),{'ok':!![],'message':'Workspace\x20'+(_0x217331==='init'?_0x391ca5(0x180):'updated')+':\x20'+_0x204f33+_0x391ca5(0x19f)+_0x3dbf37['appcode']+_0x391ca5(0x19a)+_0x42144b+_0x391ca5(0x171),'data':{'operation':_0x391ca5(0x1a0)+_0x217331,'configPath':_0x42144b,'app':_0x204f33,'appcode':_0x3dbf37[_0x391ca5(0x186)],'env':_0x3dbf37[_0x391ca5(0x1a5)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':'workspace','command':'init','description':a202_0x28f3a4(0x16e),'risk':a202_0x28f3a4(0x199),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x421645=>configureWorkspace(_0x421645,a202_0x28f3a4(0x175))},workspaceUseDefinition={'service':a202_0x28f3a4(0x174),'command':a202_0x28f3a4(0x1a6),'description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':a202_0x28f3a4(0x199),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x5e6eda=>configureWorkspace(_0x5e6eda,a202_0x28f3a4(0x1a6))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];function a202_0x33df(){const _0x2ba5af=['447100CyYfCS','defaultFormat','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','riskLevel','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','str','pageSize','locale','28NwWUWl','Missing\x20workspace\x20app\x20selector.','apps','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','\x20workspace\x20','14967cKfyWP','number','string','object','write',').\x20Config:\x20','join','2960dmPluj','3wxwubJ','774804wNLNlW','\x20(appcode:\x20','workspace.','635790kEcWiW','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','4994SQhjZw','project','env','use','apiDir','Initialize\x20the\x20current\x20workspace\x20app\x20binding','app','37548YrsQlF','.\x20Credentials:\x20not\x20written.','Use\x20`','trim','workspace','init','\x20workspace\x20use\x20--app\x20<name>`.','keys','isArray','length','\x20--app\x20','defaultApp','validation','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','2cUgjyR','Target\x20environment','initialized','3742472VdPHUd','Locale\x20for\x20this\x20workspace\x20app\x20profile','flag','2290190JehVsY','format','appcode'];a202_0x33df=function(){return _0x2ba5af;};return a202_0x33df();}export{WORKSPACE_USAGE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a203_0x52fa35=a203_0x49bb;(function(_0x4fd376,_0x47ab41){const _0x217ec6=a203_0x49bb,_0x3afbe3=_0x4fd376();while(!![]){try{const _0x46f86e=-parseInt(_0x217ec6(0x1d2))/0x1+-parseInt(_0x217ec6(0x1dc))/0x2*(-parseInt(_0x217ec6(0x1d0))/0x3)+-parseInt(_0x217ec6(0x1d4))/0x4+parseInt(_0x217ec6(0x1d1))/0x5*(parseInt(_0x217ec6(0x1db))/0x6)+parseInt(_0x217ec6(0x1cf))/0x7*(-parseInt(_0x217ec6(0x1cd))/0x8)+-parseInt(_0x217ec6(0x1de))/0x9*(parseInt(_0x217ec6(0x1dd))/0xa)+parseInt(_0x217ec6(0x1d3))/0xb*(parseInt(_0x217ec6(0x1d7))/0xc);if(_0x46f86e===_0x47ab41)break;else _0x3afbe3['push'](_0x3afbe3['shift']());}catch(_0x3070e9){_0x3afbe3['push'](_0x3afbe3['shift']());}}}(a203_0x183f,0xd70ba));function a203_0x49bb(_0x446ae2,_0x53ea95){_0x446ae2=_0x446ae2-0x1cd;const _0x183fdd=a203_0x183f();let _0x49bba5=_0x183fdd[_0x446ae2];return _0x49bba5;}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a203_0x52fa35(0x1d5),'command':a203_0x52fa35(0x1d9),'description':a203_0x52fa35(0x1ce),'risk':a203_0x52fa35(0x1d8),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a203_0x52fa35(0x1d6),'description':a203_0x52fa35(0x1da),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0xc7075e=>validateAppName(_0xc7075e,'workspace\x20remove'),'execute':_0x48904b=>runAppRemove(_0x48904b,'workspace\x20remove')};function a203_0x183f(){const _0x24ec07=['2316kZvrkD','15220lYfhkW','3204jcoZwU','1752oWQNTv','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','42245veHcYG','2055aooUUu','6835ELfKiD','1380346EdzjMn','43510742dXScPN','3715696JeQrRS','workspace','name','12axuNKf','write','remove','App\x20profile\x20name\x20to\x20remove','1338NpSoNZ'];a203_0x183f=function(){return _0x24ec07;};return a203_0x183f();}
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a204_0x28961a=a204_0x14d8;(function(_0x3edb20,_0x31cf3b){const _0x551f4e=a204_0x14d8,_0x1d6b0e=_0x3edb20();while(!![]){try{const _0x5ae69c=-parseInt(_0x551f4e(0x160))/0x1+-parseInt(_0x551f4e(0x166))/0x2+-parseInt(_0x551f4e(0x155))/0x3+parseInt(_0x551f4e(0x14b))/0x4*(parseInt(_0x551f4e(0x14a))/0x5)+-parseInt(_0x551f4e(0x141))/0x6+parseInt(_0x551f4e(0x151))/0x7+-parseInt(_0x551f4e(0x163))/0x8*(-parseInt(_0x551f4e(0x13e))/0x9);if(_0x5ae69c===_0x31cf3b)break;else _0x1d6b0e['push'](_0x1d6b0e['shift']());}catch(_0xc1a17b){_0x1d6b0e['push'](_0x1d6b0e['shift']());}}}(a204_0x7889,0xdea1c));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';function a204_0x14d8(_0x3fc665,_0x233ae2){_0x3fc665=_0x3fc665-0x13e;const _0x7889aa=a204_0x7889();let _0x14d853=_0x7889aa[_0x3fc665];return _0x14d853;}import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie',a204_0x28961a(0x15e),a204_0x28961a(0x15d),'format',a204_0x28961a(0x165)];function a204_0x7889(){const _0x35e976=['Default\x20page\x20size','appcode','15gWzVto','1425756kyRiPz','trim','entries','API\x20directory\x20path','app','cookie','2673419aFsCbD','string','keys','join','4917072riLwxK','has','apiDir','map','pageSize','apps','en-US','number','locale','accessKey','Access\x20key','228170OBepvl','defaultFormat','env','24YUBKRf','Risk\x20level','riskLevel','1583804kkhtpk','inherit','9169749btinIr','length','Target\x20environment','5620926WbTror','Auth\x20cookie','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','format','Locale','Config\x20key\x20(','zh-CN'];a204_0x7889=function(){return _0x35e976;};return a204_0x7889();}export const TOP_LEVEL_CONFIG_KEYS=new Set([a204_0x28961a(0x149),a204_0x28961a(0x162),'locale',a204_0x28961a(0x144),a204_0x28961a(0x150),a204_0x28961a(0x15e),a204_0x28961a(0x157)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x56c219){const _0x46d374=a204_0x28961a;return[..._0x56c219][_0x46d374(0x154)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x30df11){const _0x5e0dfe=a204_0x28961a;return TOP_LEVEL_CONFIG_KEYS[_0x5e0dfe(0x156)](_0x30df11);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x353ad8=a204_0x28961a;return _0x353ad8(0x146)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':a204_0x28961a(0x157),'cookie':a204_0x28961a(0x150),'accessKey':a204_0x28961a(0x15e),'defaultFormat':a204_0x28961a(0x144),'pageSize':a204_0x28961a(0x159),'riskLevel':a204_0x28961a(0x165),'locale':a204_0x28961a(0x15d)};export function getAppProfileFlagDefs(){const _0x2ad085=a204_0x28961a;return[{'name':_0x2ad085(0x162),'type':_0x2ad085(0x152),'description':_0x2ad085(0x140),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x2ad085(0x157),'type':_0x2ad085(0x152),'description':_0x2ad085(0x14e)},{'name':_0x2ad085(0x150),'type':'string','description':_0x2ad085(0x142),'hidden':!![]},{'name':'accessKey','type':'string','description':_0x2ad085(0x15f),'hidden':!![]},{'name':_0x2ad085(0x161),'type':_0x2ad085(0x152),'description':_0x2ad085(0x143),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x2ad085(0x159),'type':_0x2ad085(0x15c),'description':_0x2ad085(0x148)},{'name':'riskLevel','type':_0x2ad085(0x152),'description':_0x2ad085(0x164),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x2ad085(0x15d),'type':_0x2ad085(0x152),'description':_0x2ad085(0x145)}];}export function collectAppProfileOverrides(_0x1ca8b3){const _0x361d30=a204_0x28961a,_0x1cc1d7={};for(const [_0x50d075,_0x4f5a00]of Object[_0x361d30(0x14d)](APP_PROFILE_FLAG_KEY_MAP)){const _0x21b1af=_0x1ca8b3(_0x50d075);if(!_0x21b1af)continue;_0x1cc1d7[_0x4f5a00]=_0x4f5a00==='pageSize'?Number(_0x21b1af):_0x21b1af;}return _0x1cc1d7;}export function buildAppProfileListFields(_0x27d141){const _0x4f2261=a204_0x28961a;return{'env':_0x27d141[_0x4f2261(0x162)]??null,'apiDir':_0x27d141['apiDir']??null,'hasCookie':!!_0x27d141['cookie'],'hasAccessKey':!!_0x27d141[_0x4f2261(0x15e)],'format':_0x27d141[_0x4f2261(0x144)]??null,'pageSize':_0x27d141['pageSize']??null,'riskLevel':_0x27d141[_0x4f2261(0x165)]??null,'locale':_0x27d141['locale']??null};}export function buildAppDoctorFields(_0x3862c7,_0x23582f){const _0x476d82=a204_0x28961a;return{'env':{'value':_0x3862c7[_0x476d82(0x162)]||_0x23582f['env'],'source':_0x3862c7[_0x476d82(0x162)]?_0x476d82(0x14f):_0x476d82(0x167)},'apiDir':{'value':_0x3862c7['apiDir']||_0x23582f[_0x476d82(0x157)],'source':_0x3862c7[_0x476d82(0x157)]?_0x476d82(0x14f):_0x476d82(0x167)},'cookie':{'value':_0x3862c7[_0x476d82(0x150)]||_0x23582f[_0x476d82(0x150)],'source':_0x3862c7[_0x476d82(0x150)]?_0x476d82(0x14f):_0x476d82(0x167)},'accessKey':{'value':_0x3862c7[_0x476d82(0x15e)]||_0x23582f[_0x476d82(0x15e)],'source':_0x3862c7['accessKey']?_0x476d82(0x14f):_0x476d82(0x167)}};}export function buildCanonicalAppConfig(_0x522998,_0x35b9e2){const _0x206294=a204_0x28961a,_0x3c9f7b=_0x522998[_0x206294(0x158)](_0x2971b6=>String(_0x2971b6||'')[_0x206294(0x14c)]())['filter'](Boolean);if(_0x3c9f7b['length']===0x0)return{};const _0x5127e8={};for(const _0x2f1a64 of _0x3c9f7b){_0x5127e8[_0x2f1a64]=_0x35b9e2?{'appcode':_0x2f1a64,'env':_0x35b9e2}:{'appcode':_0x2f1a64};}return{'apps':_0x5127e8,'defaultApp':_0x3c9f7b[0x0]};}export function buildCanonicalProjectConfig(_0x370d2d,_0xd6cf0f){const _0x1afbbc=a204_0x28961a,{appCodes:appCodes=[],env:_0x23c732,metadata:_0x1cc524}=_0xd6cf0f,_0xcc87ea={..._0x370d2d,..._0x1cc524||{}};delete _0xcc87ea['appcode'],delete _0xcc87ea['app'];if(_0x23c732)_0xcc87ea[_0x1afbbc(0x162)]=_0x23c732;else!_0xcc87ea[_0x1afbbc(0x162)]&&(_0xcc87ea[_0x1afbbc(0x162)]=DEFAULT_CONFIG_VALUES['env']);const _0x58c9b0=buildCanonicalAppConfig(appCodes,_0xcc87ea[_0x1afbbc(0x162)]);return Object[_0x1afbbc(0x153)](_0x58c9b0)[_0x1afbbc(0x13f)]>0x0&&(_0xcc87ea['apps']=_0x58c9b0[_0x1afbbc(0x15a)],_0xcc87ea['defaultApp']=_0x58c9b0['defaultApp']),_0xcc87ea;}const LOCALE_MAP={'zh':a204_0x28961a(0x147),'zh-cn':'zh-CN','zh_cn':'zh-CN','en':a204_0x28961a(0x15b),'en-us':a204_0x28961a(0x15b),'en_us':a204_0x28961a(0x15b)};export function normalizeLocale(_0x2dce2d){if(!_0x2dce2d)return null;return LOCALE_MAP[_0x2dce2d['toLowerCase']()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a205_0x4df2(_0x525d11,_0x32609e){_0x525d11=_0x525d11-0x9b;const _0x4f79ba=a205_0x4f79();let _0x4df256=_0x4f79ba[_0x525d11];return _0x4df256;}const a205_0x10097a=a205_0x4df2;(function(_0x48193b,_0x48d51b){const _0x1054c0=a205_0x4df2,_0x549ad7=_0x48193b();while(!![]){try{const _0x1d2558=-parseInt(_0x1054c0(0xa0))/0x1+parseInt(_0x1054c0(0x9b))/0x2*(parseInt(_0x1054c0(0x9e))/0x3)+parseInt(_0x1054c0(0xa5))/0x4+parseInt(_0x1054c0(0xa3))/0x5*(-parseInt(_0x1054c0(0xa1))/0x6)+parseInt(_0x1054c0(0xa4))/0x7+-parseInt(_0x1054c0(0xa2))/0x8*(parseInt(_0x1054c0(0x9c))/0x9)+parseInt(_0x1054c0(0x9f))/0xa;if(_0x1d2558===_0x48d51b)break;else _0x549ad7['push'](_0x549ad7['shift']());}catch(_0x22cabf){_0x549ad7['push'](_0x549ad7['shift']());}}}(a205_0x4f79,0x85b19));function a205_0x4f79(){const _0x3b951f=['169648bBwviF','5113915KXflQR','5129929RcziKY','765592EsMAmu','358zenvqR','351arPJbz','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','3531uHrEUT','20671720YwXrBl','804674tdZkWQ','6HMBhxq'];a205_0x4f79=function(){return _0x3b951f;};return a205_0x4f79();}export const CLI_VERSION_POLICY_URL=a205_0x10097a(0x9d);
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a206_0x15b5eb=a206_0x1957;(function(_0x176d77,_0x2c9a66){const _0x5e313f=a206_0x1957,_0xf07e1f=_0x176d77();while(!![]){try{const _0x47da02=parseInt(_0x5e313f(0x1e6))/0x1*(parseInt(_0x5e313f(0x1ab))/0x2)+parseInt(_0x5e313f(0x1d7))/0x3+-parseInt(_0x5e313f(0x197))/0x4+-parseInt(_0x5e313f(0x1f2))/0x5*(parseInt(_0x5e313f(0x1c2))/0x6)+parseInt(_0x5e313f(0x1d3))/0x7+-parseInt(_0x5e313f(0x1dc))/0x8+parseInt(_0x5e313f(0x1ed))/0x9*(parseInt(_0x5e313f(0x20f))/0xa);if(_0x47da02===_0x2c9a66)break;else _0xf07e1f['push'](_0xf07e1f['shift']());}catch(_0x53241c){_0xf07e1f['push'](_0xf07e1f['shift']());}}}(a206_0x314b,0x450ac));export const CLI_BIN_NAME=a206_0x15b5eb(0x1a2);export const CLI_DISPLAY_NAME=a206_0x15b5eb(0x1cc);function a206_0x314b(){const _0x22b629=['confirm','expectedCount','params','Function\x20node','dry-run','dbid','yes','Rabetbase\x20CLI','remote','appcode','Dataset\x20code','Menu\x20sort\x20value','label','Expected\x20current\x20parent\x20menu\x20id','3935134qtOcKr','Use\x20global\x20config\x20scope','sqlcode','meowKey','820812swqtQf','expected-children-count','SQL\x20code','Show\x20help','Force\x20overwrite','2045760fUvpSU','parentId','code','Page\x20size','type','string','Expected\x20current\x20child\x20count','sql','force','expectPath','1HjFXHh','Page\x20number','Name','Parent\x20menu\x20id','Skip\x20import\x20generation','file','nonInteractive','214551mTRVNd','value','Config\x20key','menuIds','operation','837295cjRCbU','File\x20path','watch','enableBffSave','Reveal\x20sensitive\x20value','reveal','datasetcode','Clear','Environment','non-interactive','fromEnv','sort','skipImports','SQL\x20name','name','pagesize','sqlname','Description\x20file','format','Preview\x20operation\x20without\x20executing','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','keyword','<expr>','project','Schemas','sqlName','Expected\x20affected\x20count','parent-id','description','90zOXGWD','map','@lovrabet/rabetbase-cli','enable-bff-save','Operation\x20type','operationType','Alias\x20for\x20--non-interactive','2206808uEhAGR','Override\x20appcode','descriptionFile','help','Read\x20value\x20from\x20stdin','<name>','Menu\x20label','env','Enable\x20BFF\x20save','clear','Asynchronous\x20task\x20ID','rabetbase','json\x20|\x20pretty\x20|\x20compress','Verbose\x20output','boolean','schemas','all','sql-name','Skip\x20confirmation\x20for\x20high-risk\x20writes','DB\x20ID','1084556YGzdOH','db-id','Output\x20path','Watch\x20mode','target','key','operation-type','skip-imports','Select\x20app\x20profile\x20by\x20name','app','verbose','Keyword\x20filter','fromEntries','Output\x20format','stdin','Use\x20project\x20config\x20scope','task-id','output','Force\x20non-interactive\x20mode\x20(CI)','Confirm\x20destructive\x20action','Expected\x20current\x20menu\x20path','Config\x20value','menu-ids','18mlUjwZ','title','tags'];a206_0x314b=function(){return _0x22b629;};return a206_0x314b();}export const NPM_PACKAGE_NAME=a206_0x15b5eb(0x211);export const GLOBAL_FLAGS=[{'name':a206_0x15b5eb(0x1ce),'meowKey':a206_0x15b5eb(0x1ce),'type':a206_0x15b5eb(0x1e1),'description':a206_0x15b5eb(0x198),'hint':'<code>'},{'name':a206_0x15b5eb(0x1b4),'meowKey':a206_0x15b5eb(0x1b4),'type':a206_0x15b5eb(0x1e1),'description':a206_0x15b5eb(0x1b3),'hint':a206_0x15b5eb(0x19c)},{'name':a206_0x15b5eb(0x19e),'meowKey':a206_0x15b5eb(0x19e),'type':a206_0x15b5eb(0x1e1),'description':a206_0x15b5eb(0x1fa),'hint':'production\x20|\x20daily'},{'name':'format','meowKey':a206_0x15b5eb(0x204),'type':a206_0x15b5eb(0x1e1),'description':a206_0x15b5eb(0x1b8),'hint':a206_0x15b5eb(0x1a3)},{'name':'jq','meowKey':'jq','type':a206_0x15b5eb(0x1e1),'description':a206_0x15b5eb(0x206),'hint':a206_0x15b5eb(0x208)},{'name':a206_0x15b5eb(0x1c9),'meowKey':'dryRun','type':a206_0x15b5eb(0x1a5),'description':a206_0x15b5eb(0x205)},{'name':a206_0x15b5eb(0x1cb),'meowKey':a206_0x15b5eb(0x1cb),'type':a206_0x15b5eb(0x1a5),'description':a206_0x15b5eb(0x1a9)},{'name':'non-interactive','meowKey':a206_0x15b5eb(0x1ec),'type':'boolean','description':a206_0x15b5eb(0x1bd)},{'name':'global','meowKey':'global','type':a206_0x15b5eb(0x1a5),'description':a206_0x15b5eb(0x1d4)},{'name':'project','meowKey':a206_0x15b5eb(0x209),'type':a206_0x15b5eb(0x1a5),'description':a206_0x15b5eb(0x1ba)},{'name':'ci','meowKey':'ci','type':a206_0x15b5eb(0x1a5),'description':a206_0x15b5eb(0x196),'hidden':!![]},{'name':'help','meowKey':a206_0x15b5eb(0x19a),'type':a206_0x15b5eb(0x1a5),'description':a206_0x15b5eb(0x1da)},{'name':a206_0x15b5eb(0x200),'meowKey':a206_0x15b5eb(0x200),'type':a206_0x15b5eb(0x1e1),'description':a206_0x15b5eb(0x1e8),'hidden':!![]},{'name':a206_0x15b5eb(0x1c3),'meowKey':a206_0x15b5eb(0x1c3),'type':a206_0x15b5eb(0x1e1),'description':'Title','hidden':!![]},{'name':a206_0x15b5eb(0x1a0),'meowKey':a206_0x15b5eb(0x1a0),'type':a206_0x15b5eb(0x1a5),'description':a206_0x15b5eb(0x1f9),'hidden':!![]},{'name':a206_0x15b5eb(0x1f4),'meowKey':a206_0x15b5eb(0x1f4),'type':a206_0x15b5eb(0x1a5),'description':a206_0x15b5eb(0x1ae),'hidden':!![]},{'name':a206_0x15b5eb(0x1bc),'meowKey':a206_0x15b5eb(0x1bc),'type':a206_0x15b5eb(0x1e1),'description':a206_0x15b5eb(0x1ad),'hidden':!![]},{'name':'params','meowKey':a206_0x15b5eb(0x1c7),'type':a206_0x15b5eb(0x1e1),'description':'JSON\x20params','hidden':!![]},{'name':a206_0x15b5eb(0x1f8),'meowKey':'datasetcode','type':a206_0x15b5eb(0x1e1),'description':a206_0x15b5eb(0x1cf),'hidden':!![]},{'name':a206_0x15b5eb(0x1a7),'meowKey':'all','type':a206_0x15b5eb(0x1a5),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a206_0x15b5eb(0x193),'meowKey':a206_0x15b5eb(0x1f5),'type':a206_0x15b5eb(0x1a5),'description':a206_0x15b5eb(0x19f),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':'Record\x20ID','hidden':!![]},{'name':'type','meowKey':a206_0x15b5eb(0x1e0),'type':a206_0x15b5eb(0x1e1),'description':'Type\x20filter','hidden':!![]},{'name':a206_0x15b5eb(0x1eb),'meowKey':'file','type':a206_0x15b5eb(0x1e1),'description':a206_0x15b5eb(0x1f3),'hidden':!![]},{'name':'sqlcode','meowKey':a206_0x15b5eb(0x1d5),'type':a206_0x15b5eb(0x1e1),'description':a206_0x15b5eb(0x1d9),'hidden':!![]},{'name':a206_0x15b5eb(0x1a8),'meowKey':a206_0x15b5eb(0x20b),'type':'string','description':'SQL\x20name','hidden':!![]},{'name':a206_0x15b5eb(0x202),'meowKey':a206_0x15b5eb(0x202),'type':'string','description':a206_0x15b5eb(0x1ff),'hidden':!![]},{'name':a206_0x15b5eb(0x1ac),'meowKey':'dbId','type':'string','description':a206_0x15b5eb(0x1aa),'hidden':!![]},{'name':a206_0x15b5eb(0x1ca),'meowKey':a206_0x15b5eb(0x1ca),'type':a206_0x15b5eb(0x1e1),'description':a206_0x15b5eb(0x1aa),'hidden':!![]},{'name':a206_0x15b5eb(0x20e),'meowKey':a206_0x15b5eb(0x20e),'type':'string','description':'Description','hidden':!![]},{'name':'description-file','meowKey':a206_0x15b5eb(0x199),'type':a206_0x15b5eb(0x1e1),'description':a206_0x15b5eb(0x203),'hidden':!![]},{'name':'page','meowKey':'page','type':a206_0x15b5eb(0x1e1),'description':a206_0x15b5eb(0x1e7),'hidden':!![]},{'name':a206_0x15b5eb(0x201),'meowKey':a206_0x15b5eb(0x201),'type':a206_0x15b5eb(0x1e1),'description':a206_0x15b5eb(0x1df),'hidden':!![]},{'name':a206_0x15b5eb(0x207),'meowKey':'keyword','type':'string','description':a206_0x15b5eb(0x1b6),'hidden':!![]},{'name':a206_0x15b5eb(0x1de),'meowKey':a206_0x15b5eb(0x1de),'type':a206_0x15b5eb(0x1e1),'description':'Code\x20filter','hidden':!![]},{'name':'sql','meowKey':a206_0x15b5eb(0x1e3),'type':'string','description':'SQL\x20string','hidden':!![]},{'name':a206_0x15b5eb(0x1a6),'meowKey':'schemas','type':a206_0x15b5eb(0x1e1),'description':a206_0x15b5eb(0x20a),'hidden':!![]},{'name':a206_0x15b5eb(0x1f1),'meowKey':a206_0x15b5eb(0x1f1),'type':'string','description':a206_0x15b5eb(0x194),'hidden':!![]},{'name':a206_0x15b5eb(0x1af),'meowKey':'target','type':a206_0x15b5eb(0x1e1),'description':'Target\x20path','hidden':!![]},{'name':a206_0x15b5eb(0x1b2),'meowKey':a206_0x15b5eb(0x1fe),'type':a206_0x15b5eb(0x1a5),'description':a206_0x15b5eb(0x1ea),'hidden':!![]},{'name':a206_0x15b5eb(0x1b0),'meowKey':'key','type':a206_0x15b5eb(0x1e1),'description':a206_0x15b5eb(0x1ef),'hidden':!![]},{'name':a206_0x15b5eb(0x1ee),'meowKey':a206_0x15b5eb(0x1ee),'type':a206_0x15b5eb(0x1e1),'description':a206_0x15b5eb(0x1c0),'hidden':!![]},{'name':a206_0x15b5eb(0x1c4),'meowKey':a206_0x15b5eb(0x1c4),'type':a206_0x15b5eb(0x1e1),'description':'Tags','hidden':!![]},{'name':'stdin','meowKey':a206_0x15b5eb(0x1b9),'type':a206_0x15b5eb(0x1a5),'description':a206_0x15b5eb(0x19b),'hidden':!![]},{'name':'from-env','meowKey':a206_0x15b5eb(0x1fc),'type':a206_0x15b5eb(0x1e1),'description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':a206_0x15b5eb(0x1f7),'meowKey':a206_0x15b5eb(0x1f7),'type':'boolean','description':a206_0x15b5eb(0x1f6),'hidden':!![]},{'name':'force','meowKey':a206_0x15b5eb(0x1e4),'type':a206_0x15b5eb(0x1a5),'description':a206_0x15b5eb(0x1db),'hidden':!![]},{'name':a206_0x15b5eb(0x1c5),'meowKey':a206_0x15b5eb(0x1c5),'type':'boolean','description':a206_0x15b5eb(0x1be),'hidden':!![]},{'name':a206_0x15b5eb(0x1cd),'meowKey':a206_0x15b5eb(0x1cd),'type':a206_0x15b5eb(0x1a5),'description':'Use\x20remote','hidden':!![]},{'name':'verbose','meowKey':a206_0x15b5eb(0x1b5),'type':a206_0x15b5eb(0x1a5),'description':a206_0x15b5eb(0x1a4),'hidden':!![]},{'name':'expected-count','meowKey':a206_0x15b5eb(0x1c6),'type':a206_0x15b5eb(0x1e1),'description':a206_0x15b5eb(0x20c),'hidden':!![]},{'name':'label','meowKey':a206_0x15b5eb(0x1d1),'type':a206_0x15b5eb(0x1e1),'description':a206_0x15b5eb(0x19d),'hidden':!![]},{'name':a206_0x15b5eb(0x20d),'meowKey':a206_0x15b5eb(0x1dd),'type':a206_0x15b5eb(0x1e1),'description':a206_0x15b5eb(0x1e9),'hidden':!![]},{'name':a206_0x15b5eb(0x1fd),'meowKey':'sort','type':'string','description':a206_0x15b5eb(0x1d0),'hidden':!![]},{'name':'expect-parent-id','meowKey':'expectParentId','type':'string','description':a206_0x15b5eb(0x1d2),'hidden':!![]},{'name':'expect-path','meowKey':a206_0x15b5eb(0x1e5),'type':'string','description':a206_0x15b5eb(0x1bf),'hidden':!![]},{'name':a206_0x15b5eb(0x1d8),'meowKey':'expectedChildrenCount','type':'string','description':a206_0x15b5eb(0x1e2),'hidden':!![]},{'name':a206_0x15b5eb(0x1c1),'meowKey':a206_0x15b5eb(0x1f0),'type':a206_0x15b5eb(0x1e1),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':a206_0x15b5eb(0x1bb),'meowKey':'taskId','type':a206_0x15b5eb(0x1e1),'description':a206_0x15b5eb(0x1a1),'hidden':!![]},{'name':a206_0x15b5eb(0x1b1),'meowKey':a206_0x15b5eb(0x195),'type':a206_0x15b5eb(0x1e1),'description':'Operation\x20type','hidden':!![]},{'name':'function-node','meowKey':'functionNode','type':'string','description':a206_0x15b5eb(0x1c8),'hidden':!![]}];function a206_0x1957(_0x5a98a1,_0x1312bd){_0x5a98a1=_0x5a98a1-0x193;const _0x314bad=a206_0x314b();let _0x19571a=_0x314bad[_0x5a98a1];return _0x19571a;}export const PIPELINE_FLAG_NAMES=new Set(['appcode',a206_0x15b5eb(0x1b4),'env','format','jq',a206_0x15b5eb(0x1c9),a206_0x15b5eb(0x1cb),a206_0x15b5eb(0x1fb),'ci']);export function buildMeowFlags(){const _0x114b28=a206_0x15b5eb;return Object[_0x114b28(0x1b7)](GLOBAL_FLAGS[_0x114b28(0x210)](_0x578b27=>[_0x578b27[_0x114b28(0x1d6)],{'type':_0x578b27[_0x114b28(0x1e0)]}]));}
|
|
1
|
+
const a206_0x541eb5=a206_0x3ec7;function a206_0x3ec7(_0x26f586,_0x41c8dd){_0x26f586=_0x26f586-0x178;const _0x105055=a206_0x1050();let _0x3ec799=_0x105055[_0x26f586];return _0x3ec799;}(function(_0x4a8e6b,_0x26806c){const _0xf52465=a206_0x3ec7,_0x16517c=_0x4a8e6b();while(!![]){try{const _0x38110e=-parseInt(_0xf52465(0x1aa))/0x1+-parseInt(_0xf52465(0x1e0))/0x2+parseInt(_0xf52465(0x1d0))/0x3*(-parseInt(_0xf52465(0x178))/0x4)+-parseInt(_0xf52465(0x180))/0x5*(-parseInt(_0xf52465(0x197))/0x6)+parseInt(_0xf52465(0x19f))/0x7*(-parseInt(_0xf52465(0x1c0))/0x8)+parseInt(_0xf52465(0x1b8))/0x9+parseInt(_0xf52465(0x19d))/0xa;if(_0x38110e===_0x26806c)break;else _0x16517c['push'](_0x16517c['shift']());}catch(_0x908ba5){_0x16517c['push'](_0x16517c['shift']());}}}(a206_0x1050,0x3c3ea));export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';function a206_0x1050(){const _0xd3eda1=['80993LRlHcK','Operation\x20type','Force\x20non-interactive\x20mode\x20(CI)','description','sql-name','dryRun','code','Show\x20help','Use\x20project\x20config\x20scope','Page\x20size','File\x20path','value','SQL\x20string','fromEntries','1659411RYhWcE','watch','Reveal\x20sensitive\x20value','SQL\x20name','output','title','string','Output\x20format','318328vvTEiP','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Title','nonInteractive','function-node','pagesize','production\x20|\x20daily','clear','sort','<code>','Record\x20ID','params','Use\x20global\x20config\x20scope','sqlname','Preview\x20operation\x20without\x20executing','dry-run','22440tXxFSE','Asynchronous\x20task\x20ID','label','boolean','Enable\x20BFF\x20save','task-id','Target\x20path','<expr>','descriptionFile','expectedChildrenCount','parentId','Config\x20key','Confirm\x20destructive\x20action','taskId','dbId','file','295450oENCSo','Name','yes','schemas','page','expectParentId','Config\x20value','from-env','Function\x20node','Comma-separated\x20menu\x20IDs','Force\x20overwrite','appcode','Description\x20file','sqlcode','env','global','DB\x20ID','Parent\x20menu\x20id','52oRpnOF','Code\x20filter','Menu\x20label','force','non-interactive','operation-type','Expected\x20current\x20child\x20count','Menu\x20sort\x20value','5MfTKfl','Use\x20remote','expected-children-count','expectPath','expect-parent-id','project','expected-count','SQL\x20code','all','remote','datasetcode','enableBffSave','Keyword\x20filter','confirm','sql','Alias\x20for\x20--non-interactive','operationType','Dataset\x20code','Skip\x20confirmation\x20for\x20high-risk\x20writes','keyword','verbose','stdin','Expected\x20current\x20parent\x20menu\x20id','341358diBoFI','JSON\x20params','skipImports','app','name','format','6895670wvPSYa','map','63QTLGAK','key','type','enable-bff-save','Output\x20path','parent-id','Environment','expectedCount','tags','reveal','target'];a206_0x1050=function(){return _0xd3eda1;};return a206_0x1050();}export const GLOBAL_FLAGS=[{'name':a206_0x541eb5(0x1eb),'meowKey':a206_0x541eb5(0x1eb),'type':'string','description':'Override\x20appcode','hint':a206_0x541eb5(0x1c9)},{'name':'app','meowKey':a206_0x541eb5(0x19a),'type':a206_0x541eb5(0x1be),'description':'Select\x20app\x20profile\x20by\x20name','hint':'<name>'},{'name':a206_0x541eb5(0x1ee),'meowKey':'env','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1a5),'hint':a206_0x541eb5(0x1c6)},{'name':'format','meowKey':a206_0x541eb5(0x19c),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1bf),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':'string','description':a206_0x541eb5(0x1c1),'hint':a206_0x541eb5(0x1d7)},{'name':a206_0x541eb5(0x1cf),'meowKey':a206_0x541eb5(0x1af),'type':'boolean','description':a206_0x541eb5(0x1ce)},{'name':a206_0x541eb5(0x1e2),'meowKey':'yes','type':'boolean','description':a206_0x541eb5(0x192)},{'name':a206_0x541eb5(0x17c),'meowKey':a206_0x541eb5(0x1c3),'type':a206_0x541eb5(0x1d3),'description':a206_0x541eb5(0x1ac)},{'name':'global','meowKey':a206_0x541eb5(0x1ef),'type':'boolean','description':a206_0x541eb5(0x1cc)},{'name':a206_0x541eb5(0x185),'meowKey':a206_0x541eb5(0x185),'type':'boolean','description':a206_0x541eb5(0x1b2)},{'name':'ci','meowKey':'ci','type':a206_0x541eb5(0x1d3),'description':a206_0x541eb5(0x18f),'hidden':!![]},{'name':'help','meowKey':'help','type':a206_0x541eb5(0x1d3),'description':a206_0x541eb5(0x1b1)},{'name':a206_0x541eb5(0x19b),'meowKey':a206_0x541eb5(0x19b),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1e1),'hidden':!![]},{'name':a206_0x541eb5(0x1bd),'meowKey':a206_0x541eb5(0x1bd),'type':'string','description':a206_0x541eb5(0x1c2),'hidden':!![]},{'name':a206_0x541eb5(0x1c7),'meowKey':a206_0x541eb5(0x1c7),'type':a206_0x541eb5(0x1d3),'description':'Clear','hidden':!![]},{'name':a206_0x541eb5(0x1b9),'meowKey':a206_0x541eb5(0x1b9),'type':a206_0x541eb5(0x1d3),'description':'Watch\x20mode','hidden':!![]},{'name':a206_0x541eb5(0x1bc),'meowKey':a206_0x541eb5(0x1bc),'type':'string','description':a206_0x541eb5(0x1a3),'hidden':!![]},{'name':a206_0x541eb5(0x1cb),'meowKey':a206_0x541eb5(0x1cb),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x198),'hidden':!![]},{'name':'datasetcode','meowKey':a206_0x541eb5(0x18a),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x191),'hidden':!![]},{'name':a206_0x541eb5(0x188),'meowKey':a206_0x541eb5(0x188),'type':a206_0x541eb5(0x1d3),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a206_0x541eb5(0x1a2),'meowKey':a206_0x541eb5(0x18b),'type':'boolean','description':a206_0x541eb5(0x1d4),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':a206_0x541eb5(0x1ca),'hidden':!![]},{'name':a206_0x541eb5(0x1a1),'meowKey':a206_0x541eb5(0x1a1),'type':a206_0x541eb5(0x1be),'description':'Type\x20filter','hidden':!![]},{'name':a206_0x541eb5(0x1df),'meowKey':a206_0x541eb5(0x1df),'type':'string','description':a206_0x541eb5(0x1b4),'hidden':!![]},{'name':'sqlcode','meowKey':a206_0x541eb5(0x1ed),'type':'string','description':a206_0x541eb5(0x187),'hidden':!![]},{'name':a206_0x541eb5(0x1ae),'meowKey':'sqlName','type':'string','description':a206_0x541eb5(0x1bb),'hidden':!![]},{'name':a206_0x541eb5(0x1cd),'meowKey':a206_0x541eb5(0x1cd),'type':a206_0x541eb5(0x1be),'description':'SQL\x20name','hidden':!![]},{'name':'db-id','meowKey':a206_0x541eb5(0x1de),'type':'string','description':'DB\x20ID','hidden':!![]},{'name':'dbid','meowKey':'dbid','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1f0),'hidden':!![]},{'name':a206_0x541eb5(0x1ad),'meowKey':a206_0x541eb5(0x1ad),'type':a206_0x541eb5(0x1be),'description':'Description','hidden':!![]},{'name':'description-file','meowKey':a206_0x541eb5(0x1d8),'type':'string','description':a206_0x541eb5(0x1ec),'hidden':!![]},{'name':a206_0x541eb5(0x1e4),'meowKey':a206_0x541eb5(0x1e4),'type':a206_0x541eb5(0x1be),'description':'Page\x20number','hidden':!![]},{'name':a206_0x541eb5(0x1c5),'meowKey':'pagesize','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1b3),'hidden':!![]},{'name':a206_0x541eb5(0x193),'meowKey':a206_0x541eb5(0x193),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x18c),'hidden':!![]},{'name':a206_0x541eb5(0x1b0),'meowKey':a206_0x541eb5(0x1b0),'type':'string','description':a206_0x541eb5(0x179),'hidden':!![]},{'name':'sql','meowKey':a206_0x541eb5(0x18e),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1b6),'hidden':!![]},{'name':a206_0x541eb5(0x1e3),'meowKey':a206_0x541eb5(0x1e3),'type':'string','description':'Schemas','hidden':!![]},{'name':'operation','meowKey':'operation','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1ab),'hidden':!![]},{'name':a206_0x541eb5(0x1a9),'meowKey':a206_0x541eb5(0x1a9),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1d6),'hidden':!![]},{'name':'skip-imports','meowKey':a206_0x541eb5(0x199),'type':'boolean','description':'Skip\x20import\x20generation','hidden':!![]},{'name':a206_0x541eb5(0x1a0),'meowKey':'key','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1db),'hidden':!![]},{'name':a206_0x541eb5(0x1b5),'meowKey':a206_0x541eb5(0x1b5),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1e6),'hidden':!![]},{'name':a206_0x541eb5(0x1a7),'meowKey':a206_0x541eb5(0x1a7),'type':a206_0x541eb5(0x1be),'description':'Tags','hidden':!![]},{'name':a206_0x541eb5(0x195),'meowKey':a206_0x541eb5(0x195),'type':a206_0x541eb5(0x1d3),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a206_0x541eb5(0x1e7),'meowKey':'fromEnv','type':'string','description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':a206_0x541eb5(0x1a8),'meowKey':'reveal','type':a206_0x541eb5(0x1d3),'description':a206_0x541eb5(0x1ba),'hidden':!![]},{'name':a206_0x541eb5(0x17b),'meowKey':a206_0x541eb5(0x17b),'type':a206_0x541eb5(0x1d3),'description':a206_0x541eb5(0x1ea),'hidden':!![]},{'name':a206_0x541eb5(0x18d),'meowKey':a206_0x541eb5(0x18d),'type':'boolean','description':a206_0x541eb5(0x1dc),'hidden':!![]},{'name':'remote','meowKey':a206_0x541eb5(0x189),'type':a206_0x541eb5(0x1d3),'description':a206_0x541eb5(0x181),'hidden':!![]},{'name':a206_0x541eb5(0x194),'meowKey':a206_0x541eb5(0x194),'type':a206_0x541eb5(0x1d3),'description':'Verbose\x20output','hidden':!![]},{'name':a206_0x541eb5(0x186),'meowKey':a206_0x541eb5(0x1a6),'type':a206_0x541eb5(0x1be),'description':'Expected\x20affected\x20count','hidden':!![]},{'name':a206_0x541eb5(0x1d2),'meowKey':a206_0x541eb5(0x1d2),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x17a),'hidden':!![]},{'name':a206_0x541eb5(0x1a4),'meowKey':a206_0x541eb5(0x1da),'type':'string','description':a206_0x541eb5(0x1f1),'hidden':!![]},{'name':'sort','meowKey':a206_0x541eb5(0x1c8),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x17f),'hidden':!![]},{'name':a206_0x541eb5(0x184),'meowKey':a206_0x541eb5(0x1e5),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x196),'hidden':!![]},{'name':'expect-path','meowKey':a206_0x541eb5(0x183),'type':a206_0x541eb5(0x1be),'description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':a206_0x541eb5(0x182),'meowKey':a206_0x541eb5(0x1d9),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x17e),'hidden':!![]},{'name':'menu-ids','meowKey':'menuIds','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1e9),'hidden':!![]},{'name':a206_0x541eb5(0x1d5),'meowKey':a206_0x541eb5(0x1dd),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1d1),'hidden':!![]},{'name':a206_0x541eb5(0x17d),'meowKey':a206_0x541eb5(0x190),'type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1ab),'hidden':!![]},{'name':a206_0x541eb5(0x1c4),'meowKey':'functionNode','type':a206_0x541eb5(0x1be),'description':a206_0x541eb5(0x1e8),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a206_0x541eb5(0x19a),a206_0x541eb5(0x1ee),a206_0x541eb5(0x19c),'jq',a206_0x541eb5(0x1cf),a206_0x541eb5(0x1e2),'non-interactive','ci']);export function buildMeowFlags(){const _0x4eea7a=a206_0x541eb5;return Object[_0x4eea7a(0x1b7)](GLOBAL_FLAGS[_0x4eea7a(0x19e)](_0x4d30cf=>[_0x4d30cf['meowKey'],{'type':_0x4d30cf[_0x4eea7a(0x1a1)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a207_0x53414f=a207_0x23c9;function a207_0x2c41(){const _0x10a5f5=['24660AsCdhk','3198097TIajmo','4QFmlgc','8zqtCAj','2vtxsUj','1435743RvadQC','21922012MSlGoX','275470ZdTvJg','3443859cHlNVy','10qwLJNQ','compress','517hFXAvT','2526MLOUjV','13ATlzWL','high-risk-write','3735urTyGv'];a207_0x2c41=function(){return _0x10a5f5;};return a207_0x2c41();}(function(_0x2fe959,_0x4c5bae){const _0x375519=a207_0x23c9,_0x3f8a70=_0x2fe959();while(!![]){try{const _0x3a8fa2=parseInt(_0x375519(0xa0))/0x1*(-parseInt(_0x375519(0xa3))/0x2)+parseInt(_0x375519(0xa1))/0x3*(-parseInt(_0x375519(0x9e))/0x4)+parseInt(_0x375519(0x9b))/0x5*(-parseInt(_0x375519(0x98))/0x6)+parseInt(_0x375519(0x9d))/0x7*(-parseInt(_0x375519(0x9f))/0x8)+parseInt(_0x375519(0xa4))/0x9*(parseInt(_0x375519(0xa5))/0xa)+parseInt(_0x375519(0x97))/0xb*(parseInt(_0x375519(0x9c))/0xc)+-parseInt(_0x375519(0x99))/0xd*(-parseInt(_0x375519(0xa2))/0xe);if(_0x3a8fa2===_0x4c5bae)break;else _0x3f8a70['push'](_0x3f8a70['shift']());}catch(_0xe1e988){_0x3f8a70['push'](_0x3f8a70['shift']());}}}(a207_0x2c41,0x7ee05));import{DEFAULT_API_DIR}from'../constant/paths.js';function a207_0x23c9(_0x258729,_0x5518c7){_0x258729=_0x258729-0x96;const _0x2c4133=a207_0x2c41();let _0x23c9e0=_0x2c4133[_0x258729];return _0x23c9e0;}export const DEFAULT_CONFIG_VALUES={'env':'production','format':a207_0x53414f(0x96),'locale':'en-US','riskLevel':a207_0x53414f(0x9a),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a207_0x53414f(0x96);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a208_0x137891=a208_0x2630;(function(_0x4688d,_0x3f6a0d){const _0x3db64c=a208_0x2630,_0x4e9e28=_0x4688d();while(!![]){try{const _0x1135de=-parseInt(_0x3db64c(0x1d8))/0x1*(-parseInt(_0x3db64c(0x1c6))/0x2)+-parseInt(_0x3db64c(0x1cd))/0x3+parseInt(_0x3db64c(0x1ce))/0x4*(-parseInt(_0x3db64c(0x1d1))/0x5)+-parseInt(_0x3db64c(0x1cf))/0x6*(-parseInt(_0x3db64c(0x1d0))/0x7)+-parseInt(_0x3db64c(0x1cc))/0x8+parseInt(_0x3db64c(0x1d4))/0x9+parseInt(_0x3db64c(0x1d9))/0xa*(parseInt(_0x3db64c(0x1c7))/0xb);if(_0x1135de===_0x3f6a0d)break;else _0x4e9e28['push'](_0x4e9e28['shift']());}catch(_0x19ee86){_0x4e9e28['push'](_0x4e9e28['shift']());}}}(a208_0x3f98,0x96c34));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x2aee2c){const _0x528eaf=a208_0x2630;customApiDomain=_0x2aee2c?.[_0x528eaf(0x1c9)],customUserDomain=_0x2aee2c?.['userDomain'],customRuntimeDomain=_0x2aee2c?.[_0x528eaf(0x1c8)];}function a208_0x3f98(){const _0x32f30e=['14XFIJYo','240240FUpvdO','trim','https://user-daily.lovrabet.com','6093198KHOWlp','/app/','https://runtime.lovrabet.com','https://user.lovrabet.com','271742vQwPXG','3000evkXeT','6qNoDgp','9647SwuRZi','runtimeDomain','apiDomain','https://daily-runtime.lovrabet.com','https://api.lovrabet.com','2778576BQkbqy','2749068mrBQoa','24XAOIGR','1242426FSYXHN'];a208_0x3f98=function(){return _0x32f30e;};return a208_0x3f98();}function a208_0x2630(_0x48e5f5,_0x425bf9){_0x48e5f5=_0x48e5f5-0x1c6;const _0x3f983a=a208_0x3f98();let _0x26308e=_0x3f983a[_0x48e5f5];return _0x26308e;}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a208_0x137891(0x1d7):a208_0x137891(0x1d3));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a208_0x137891(0x1cb):'https://daily-api.lovrabet.com');export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a208_0x137891(0x1d6):a208_0x137891(0x1ca));export const getAppDomain=()=>isProduction(getEnv())?'https://app.lovrabet.com':'https://daily.lovrabet.com';export const getAppBaseUrl=_0xef85fd=>{const _0xc7a1f=a208_0x137891,_0xf36e79=encodeURIComponent(_0xef85fd[_0xc7a1f(0x1d2)]());return isProduction(getEnv())?getAppDomain()+_0xc7a1f(0x1d5)+_0xf36e79:getAppDomain()+'/web-app/app/'+_0xf36e79;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a209_0x2db2(){const _0x3e3b1f=['5801389MnCJla','2487160IGBnQX','1490JqxqUC','16722492zmjViV','dev','1631RflSzV','3128GqlQbW','606DvUzpt','134056YIOBWY','development','126dEhIzr','production','52484DIXVJX','8XCiWGg','daily','9vBxmjq','online'];a209_0x2db2=function(){return _0x3e3b1f;};return a209_0x2db2();}const a209_0x52a9ca=a209_0x3dd9;(function(_0x437cbd,_0x4ad5a8){const _0x5ab8a3=a209_0x3dd9,_0x4c9335=_0x437cbd();while(!![]){try{const _0x234281=parseInt(_0x5ab8a3(0x12f))/0x1*(parseInt(_0x5ab8a3(0x134))/0x2)+parseInt(_0x5ab8a3(0x131))/0x3*(parseInt(_0x5ab8a3(0x133))/0x4)+-parseInt(_0x5ab8a3(0x129))/0x5*(parseInt(_0x5ab8a3(0x12e))/0x6)+-parseInt(_0x5ab8a3(0x12c))/0x7*(parseInt(_0x5ab8a3(0x12d))/0x8)+-parseInt(_0x5ab8a3(0x136))/0x9*(-parseInt(_0x5ab8a3(0x139))/0xa)+parseInt(_0x5ab8a3(0x138))/0xb+-parseInt(_0x5ab8a3(0x12a))/0xc;if(_0x234281===_0x4ad5a8)break;else _0x4c9335['push'](_0x4c9335['shift']());}catch(_0x1e2603){_0x4c9335['push'](_0x4c9335['shift']());}}}(a209_0x2db2,0x55207));export const RABETBASE_ENV_VALUES=[a209_0x52a9ca(0x132),'daily'];export function normalizeEnv(_0x42e532){const _0x4d3501=a209_0x52a9ca;return _0x42e532===_0x4d3501(0x137)?'production':_0x42e532;}export function isProduction(_0x2bb79d){return normalizeEnv(_0x2bb79d)==='production';}export function isDaily(_0x41d1fb){const _0x57b9ba=a209_0x52a9ca;return normalizeEnv(_0x41d1fb)===_0x57b9ba(0x135);}export function isDev(_0x50bca3){const _0x59fb5e=a209_0x52a9ca,_0x211b95=normalizeEnv(_0x50bca3);return _0x211b95===_0x59fb5e(0x130)||_0x211b95===_0x59fb5e(0x12b);}function a209_0x3dd9(_0x3dfbdb,_0x2d2f13){_0x3dfbdb=_0x3dfbdb-0x129;const _0x2db2dc=a209_0x2db2();let _0x3dd91d=_0x2db2dc[_0x3dfbdb];return _0x3dd91d;}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a209_0x52a9ca(0x132));export function getEnv(){return env;}export function initEnv(_0x4cf270){env=normalizeEnv(_0x4cf270);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a210_0x2904(){const _0xa3ae22=['66BUdaec','73115VUfGYC','627207KHwRqY','118358lkEtzc','821079vwdxEo','563300Nojtyp','40wuJJJQ','1130646dIBdWC','51328NShlbg','192mDMGJz','54oDwDBD'];a210_0x2904=function(){return _0xa3ae22;};return a210_0x2904();}function a210_0x1942(_0x17404d,_0x33592b){_0x17404d=_0x17404d-0x121;const _0x29042a=a210_0x2904();let _0x194276=_0x29042a[_0x17404d];return _0x194276;}(function(_0x1cd2e3,_0x110d64){const _0x4f1220=a210_0x1942,_0x3e7919=_0x1cd2e3();while(!![]){try{const _0x2eb9e5=-parseInt(_0x4f1220(0x12a))/0x1+parseInt(_0x4f1220(0x128))/0x2+parseInt(_0x4f1220(0x129))/0x3+-parseInt(_0x4f1220(0x123))/0x4*(parseInt(_0x4f1220(0x126))/0x5)+parseInt(_0x4f1220(0x125))/0x6*(parseInt(_0x4f1220(0x127))/0x7)+parseInt(_0x4f1220(0x122))/0x8*(parseInt(_0x4f1220(0x124))/0x9)+parseInt(_0x4f1220(0x12b))/0xa*(parseInt(_0x4f1220(0x121))/0xb);if(_0x2eb9e5===_0x110d64)break;else _0x3e7919['push'](_0x3e7919['shift']());}catch(_0x1dd2ca){_0x3e7919['push'](_0x3e7919['shift']());}}}(a210_0x2904,0x7ac87));export const RABETBASE_OUTPUT_FORMAT_VALUES=['json','pretty','compress'];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a211_0x36d0(){const _0x12bd60=['76728dZAEPh','180995Nqrvsi','56uUTwUN','595176tmWfrq','30FtPtkp','20352jhGAJA','981711qfcvDW','3538WDtCKj','4UlwTkB','301192dBJpFD'];a211_0x36d0=function(){return _0x12bd60;};return a211_0x36d0();}function a211_0x19cf(_0x45bd94,_0x24bc23){_0x45bd94=_0x45bd94-0xc6;const _0x36d07b=a211_0x36d0();let _0x19cf56=_0x36d07b[_0x45bd94];return _0x19cf56;}(function(_0x4c78b6,_0x17d531){const _0x117341=a211_0x19cf,_0x363803=_0x4c78b6();while(!![]){try{const _0x351acc=-parseInt(_0x117341(0xcf))/0x1+-parseInt(_0x117341(0xc7))/0x2+-parseInt(_0x117341(0xc8))/0x3+parseInt(_0x117341(0xc6))/0x4*(-parseInt(_0x117341(0xc9))/0x5)+parseInt(_0x117341(0xcd))/0x6*(-parseInt(_0x117341(0xca))/0x7)+parseInt(_0x117341(0xcb))/0x8+-parseInt(_0x117341(0xce))/0x9*(-parseInt(_0x117341(0xcc))/0xa);if(_0x351acc===_0x17d531)break;else _0x363803['push'](_0x363803['shift']());}catch(_0x53ecd0){_0x363803['push'](_0x363803['shift']());}}}(a211_0x36d0,0x26b7d));export const DEFAULT_API_DIR='./src/api';
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a212_0x4ce135=a212_0x2d9f;function a212_0x2d9f(_0x3a55f5,_0x2dcf23){_0x3a55f5=_0x3a55f5-0x13f;const _0x256778=a212_0x2567();let _0x2d9f8f=_0x256778[_0x3a55f5];return _0x2d9f8f;}(function(_0x39a84c,_0x44b3f3){const _0x1dcefd=a212_0x2d9f,_0x5d0535=_0x39a84c();while(!![]){try{const _0x481082=-parseInt(_0x1dcefd(0x13f))/0x1+parseInt(_0x1dcefd(0x149))/0x2*(parseInt(_0x1dcefd(0x140))/0x3)+-parseInt(_0x1dcefd(0x14a))/0x4*(-parseInt(_0x1dcefd(0x145))/0x5)+parseInt(_0x1dcefd(0x148))/0x6+parseInt(_0x1dcefd(0x142))/0x7+-parseInt(_0x1dcefd(0x143))/0x8+-parseInt(_0x1dcefd(0x141))/0x9;if(_0x481082===_0x44b3f3)break;else _0x5d0535['push'](_0x5d0535['shift']());}catch(_0x362f3a){_0x5d0535['push'](_0x5d0535['shift']());}}}(a212_0x2567,0x4e75d));function a212_0x2567(){const _0x329eb0=['147jOoYeK','11108484kRKrmN','3638894vRjfXj','419256IjZshW','high-risk-write','1094090dYlacD','read','write','3053592lLcJrY','15026upRFyh','8vwRANA','226491ppObPp'];a212_0x2567=function(){return _0x329eb0;};return a212_0x2567();}export const RISK_LEVEL_VALUES=[a212_0x4ce135(0x146),a212_0x4ce135(0x147),a212_0x4ce135(0x144)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xd7cfe0,_0x17bb0b){const _0x5434cc=a213_0x2f05,_0x424851=_0xd7cfe0();while(!![]){try{const _0x5eaf0e=-parseInt(_0x5434cc(0x13b))/0x1+parseInt(_0x5434cc(0x13c))/0x2*(parseInt(_0x5434cc(0x156))/0x3)+parseInt(_0x5434cc(0x143))/0x4*(parseInt(_0x5434cc(0x135))/0x5)+parseInt(_0x5434cc(0x140))/0x6*(parseInt(_0x5434cc(0x148))/0x7)+-parseInt(_0x5434cc(0x139))/0x8+-parseInt(_0x5434cc(0x14e))/0x9+-parseInt(_0x5434cc(0x13f))/0xa*(-parseInt(_0x5434cc(0x14f))/0xb);if(_0x5eaf0e===_0x17bb0b)break;else _0x424851['push'](_0x424851['shift']());}catch(_0x41e88b){_0x424851['push'](_0x424851['shift']());}}}(a213_0x59e0,0x2fbae));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x5d92b4){const _0x1ff409=a213_0x2f05;return typeof _0x5d92b4==='string'&&_0x5d92b4[_0x1ff409(0x157)]()?_0x5d92b4[_0x1ff409(0x157)]():undefined;}function appProfiles(_0x10c3c1){const _0x32c750=a213_0x2f05;return _0x10c3c1[_0x32c750(0x137)]&&typeof _0x10c3c1[_0x32c750(0x137)]==='object'?_0x10c3c1[_0x32c750(0x137)]:{};}function resolveDefaultAppName(_0x33c0f5){const _0x16487f=stringConfigValue(_0x33c0f5['defaultApp']);if(_0x16487f)return _0x16487f;return Object['keys'](appProfiles(_0x33c0f5))[0x0];}function resolveTopLevelAppCode(_0x4bd523){const _0x38ff19=a213_0x2f05;return stringConfigValue(_0x4bd523['appcode'])||stringConfigValue(_0x4bd523[_0x38ff19(0x131)]);}function a213_0x59e0(){const _0x2ae0ca=['1091928DkjXWC','call','303545DOsDxd','8thUJst','apiDir','VERBOSE','80HbPUbK','157512KMUaHP','daily','find','16YRzEuN','COOKIE','ACCESS_KEY','appcode','inherit','63DWwpxr','accessKey','write','length','keys','FORMAT','2249334anJttd','214698WHLAqm','true','high-risk-write','globalConfig','read','prototype','APP','84540DBsyBa','trim','MAX_RISK','projectConfig','riskLevel','hasOwnProperty','PAGE_SIZE','pageSize','cookie','app','defaultApp','env','format','475415qwJjQR','entries','apps','maxRisk'];a213_0x59e0=function(){return _0x2ae0ca;};return a213_0x59e0();}function a213_0x2f05(_0x3f452d,_0x15d9f7){_0x3f452d=_0x3f452d-0x12d;const _0x59e074=a213_0x59e0();let _0x2f0504=_0x59e074[_0x3f452d];return _0x2f0504;}function normalizeRiskCeiling(_0x539530){const _0x452055=a213_0x2f05;if(_0x539530===undefined||_0x539530===null)return undefined;if(_0x539530==='read'||_0x539530===_0x452055(0x14a)||_0x539530===_0x452055(0x151))return _0x539530;return _0x452055(0x153);}function resolveRiskCeiling(..._0x54cdeb){const _0x20b014=a213_0x2f05;let _0x2dea9a=DEFAULT_CONFIG_VALUES[_0x20b014(0x15a)];for(const _0x50c01f of _0x54cdeb){const _0x35c35b=normalizeRiskCeiling(_0x50c01f);_0x35c35b&&riskLevelOrder(_0x35c35b)<riskLevelOrder(_0x2dea9a)&&(_0x2dea9a=_0x35c35b);}return _0x2dea9a;}function configuredRiskCeilings(_0x4e5717){const _0x258a16=a213_0x2f05;return[...Object[_0x258a16(0x154)][_0x258a16(0x12d)][_0x258a16(0x13a)](_0x4e5717,_0x258a16(0x138))?[_0x4e5717[_0x258a16(0x138)]]:[],...Object[_0x258a16(0x154)][_0x258a16(0x12d)][_0x258a16(0x13a)](_0x4e5717,_0x258a16(0x15a))?[_0x4e5717[_0x258a16(0x15a)]]:[]];}export function resolveAppConfig({raw:_0x3b86d0,flags:_0x1d6263,layers:_0x1d967c,readEnv:_0x27eca2}){const _0x21d6f5=a213_0x2f05,_0x379b56=_0x1d967c?.[_0x21d6f5(0x159)]??{},_0x491d53=_0x1d967c?.[_0x21d6f5(0x152)]??{},_0x2626ec=Object[_0x21d6f5(0x14c)](_0x379b56)['length']>0x0,_0x368805=!_0x2626ec||_0x379b56[_0x21d6f5(0x147)]===!![],_0xb943eb=_0x2626ec?resolveDefaultAppName(_0x379b56):undefined,_0x58ba48=_0x368805?resolveDefaultAppName(_0x491d53):undefined,_0x14166c=stringConfigValue(_0x1d6263[_0x21d6f5(0x131)]),_0x5df152=_0x27eca2(_0x21d6f5(0x155)),_0x2b88f5={};if(_0x3b86d0[_0x21d6f5(0x137)]&&typeof _0x3b86d0[_0x21d6f5(0x137)]==='object')for(const [_0xb2e675,_0x481094]of Object[_0x21d6f5(0x136)](_0x3b86d0['apps'])){_0x481094&&typeof _0x481094==='object'&&_0x481094[_0x21d6f5(0x146)]&&(_0x2b88f5[_0xb2e675]=_0x481094);}const _0x10877a=_0x3b86d0[_0x21d6f5(0x132)]||undefined,_0x340198=Object['keys'](_0x2b88f5)[_0x21d6f5(0x14b)]>0x0,_0x4fbfaf=_0x14166c||_0xb943eb||_0x5df152||_0x58ba48||_0x10877a||undefined,_0x4f7d72=stringConfigValue(_0x1d6263[_0x21d6f5(0x146)]),_0x3f8e83=_0x4f7d72?Object['entries'](_0x2b88f5)[_0x21d6f5(0x142)](([,_0x4f45b9])=>_0x4f45b9?.[_0x21d6f5(0x146)]===_0x4f7d72):undefined,_0x1b9f4b=_0x3f8e83?.[0x0],_0x3db464=_0x3f8e83?.[0x1],_0x45e384=_0x4f7d72?_0x1b9f4b:_0x4fbfaf;let _0x1b9f70=_0x45e384&&_0x2b88f5[_0x45e384]?_0x2b88f5[_0x45e384]:undefined;_0x4f7d72&&_0x3db464&&(_0x1b9f70=_0x3db464);const _0x5e893e=_0x4f7d72?_0x3db464??_0x1b9f70:_0x1b9f70,_0x20ae7b=!_0x14166c&&!_0xb943eb&&_0x5df152&&_0x45e384===_0x5df152,_0x32806f=_0x14166c||(_0x20ae7b?_0x5df152:undefined)||(_0x4f7d72?_0x1b9f4b:undefined),_0x3061c9=_0x5e893e?.[_0x21d6f5(0x146)],_0x2ef0c3=_0x2626ec?resolveTopLevelAppCode(_0x379b56):undefined,_0x319c29=_0x368805?resolveTopLevelAppCode(_0x491d53):undefined,_0x27bb46=_0x14166c||_0xb943eb?_0x3061c9:undefined,_0x142c74=!_0x14166c&&!_0xb943eb?_0x3061c9:undefined,_0x1f8714=_0x4f7d72||_0x27bb46||_0x2ef0c3||_0x142c74||_0x319c29||undefined,_0x5f09c9=_0x2626ec?stringConfigValue(_0x379b56[_0x21d6f5(0x133)]):undefined,_0x382136=_0x368805?stringConfigValue(_0x491d53[_0x21d6f5(0x133)]):undefined,_0xea956c=_0x1d6263[_0x21d6f5(0x133)]||_0x5e893e?.['env']||_0x5f09c9||_0x27eca2('ENV')||_0x382136||_0x3b86d0[_0x21d6f5(0x133)]||DEFAULT_CONFIG_VALUES['env'],_0x494612=_0x5e893e?.['locale']||_0x3b86d0['locale']||DEFAULT_CONFIG_VALUES['locale'],_0x27dc09=_0x27eca2(_0x21d6f5(0x144))||_0x5e893e?.[_0x21d6f5(0x130)]||_0x3b86d0['cookie']||undefined,_0x9ce760=_0x27eca2(_0x21d6f5(0x145))||_0x5e893e?.[_0x21d6f5(0x149)]||_0x3b86d0[_0x21d6f5(0x149)]||undefined,_0xf3325c=_0x1d6263[_0x21d6f5(0x134)]||_0x27eca2(_0x21d6f5(0x14d))||_0x5e893e?.[_0x21d6f5(0x134)]||_0x3b86d0[_0x21d6f5(0x134)],_0x260d65=normalizeLegacyOutputFormat(_0xf3325c),_0x3882cf=_0x27eca2(_0x21d6f5(0x12e))||_0x5e893e?.[_0x21d6f5(0x12f)]||_0x3b86d0[_0x21d6f5(0x12f)],_0x171607=_0x3882cf?Number(_0x3882cf)||undefined:undefined,_0x529346=_0x1d967c?[...configuredRiskCeilings(_0x1d967c[_0x21d6f5(0x152)]),...configuredRiskCeilings(_0x1d967c[_0x21d6f5(0x159)])]:configuredRiskCeilings(_0x3b86d0),_0x3797c7=resolveRiskCeiling(..._0x529346,_0x5e893e?.[_0x21d6f5(0x15a)],_0x27eca2('RISK_LEVEL'),_0x27eca2(_0x21d6f5(0x158))),_0x411c70=_0x27eca2(_0x21d6f5(0x13e)),_0x5b2c6a=_0x411c70==='1'||_0x411c70===_0x21d6f5(0x150),_0x4fcfa3=_0x5e893e?.[_0x21d6f5(0x13d)]||_0x3b86d0[_0x21d6f5(0x13d)]||DEFAULT_CONFIG_VALUES[_0x21d6f5(0x13d)],_0x53541b=isDaily(normalizeEnv(String(_0xea956c)))?_0x21d6f5(0x141):'production';return{'appCode':typeof _0x1f8714==='string'&&_0x1f8714[_0x21d6f5(0x157)]()?_0x1f8714[_0x21d6f5(0x157)]():undefined,'env':_0x53541b,'locale':_0x494612,'cookie':_0x27dc09,'accessKey':_0x9ce760,'format':_0x260d65,'pageSize':_0x171607,'riskLevel':_0x3797c7,'verbose':_0x5b2c6a,'apiDir':_0x4fcfa3,'apps':_0x2b88f5,'defaultApp':_0x10877a,'currentApp':_0x340198?_0x45e384:undefined,'explicitAppName':_0x32806f};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a214_0x2222(){const _0x429c91=['../auth/get-cookie.js','authRequired','130784SOeMuG','532251foEIax','431430coFwXP','451urdEMw','2872020akYheh','288zwsYeq','295791IQKwvq','2sHzpBO','178215cKgWKx','7847LMEMOD','80ATibhw','cookie'];a214_0x2222=function(){return _0x429c91;};return a214_0x2222();}(function(_0xf5fe71,_0x403ace){const _0x5835b5=a214_0x5d7e,_0xf27e02=_0xf5fe71();while(!![]){try{const _0x167d89=-parseInt(_0x5835b5(0xd5))/0x1+-parseInt(_0x5835b5(0xd4))/0x2*(parseInt(_0x5835b5(0xd3))/0x3)+parseInt(_0x5835b5(0xdb))/0x4*(-parseInt(_0x5835b5(0xd7))/0x5)+-parseInt(_0x5835b5(0xd1))/0x6+-parseInt(_0x5835b5(0xd6))/0x7*(parseInt(_0x5835b5(0xd2))/0x8)+-parseInt(_0x5835b5(0xdc))/0x9+-parseInt(_0x5835b5(0xdd))/0xa*(-parseInt(_0x5835b5(0xd0))/0xb);if(_0x167d89===_0x403ace)break;else _0xf27e02['push'](_0xf27e02['shift']());}catch(_0x44fb3f){_0xf27e02['push'](_0xf27e02['shift']());}}}(a214_0x2222,0x5f65e));function a214_0x5d7e(_0x48a158,_0x1f86ba){_0x48a158=_0x48a158-0xd0;const _0x222295=a214_0x2222();let _0x5d7e8b=_0x222295[_0x48a158];return _0x5d7e8b;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x408df6){const _0x29d3e6=a214_0x5d7e,{getCookie:_0x22b67b}=await import(_0x29d3e6(0xd9)),_0xbe8ca=_0x408df6[_0x29d3e6(0xd8)]||_0x22b67b(),_0x4db4bd=_0xbe8ca?await getIsSessionValid():![];return{'cookie':_0xbe8ca,'isLoggedIn':_0x4db4bd,async 'getOrLogin'(){const _0x2bcb9f=_0x29d3e6;if(_0xbe8ca&&_0x4db4bd)return _0xbe8ca;throw CliErrors[_0x2bcb9f(0xda)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a215_0x30ada3=a215_0x5e62;(function(_0x1bf28e,_0x14061e){const _0x1de829=a215_0x5e62,_0x5cdf89=_0x1bf28e();while(!![]){try{const _0x36ce2f=-parseInt(_0x1de829(0x202))/0x1*(parseInt(_0x1de829(0x1dc))/0x2)+parseInt(_0x1de829(0x1f6))/0x3*(-parseInt(_0x1de829(0x1e5))/0x4)+-parseInt(_0x1de829(0x1f5))/0x5+parseInt(_0x1de829(0x1e2))/0x6+parseInt(_0x1de829(0x1fb))/0x7*(parseInt(_0x1de829(0x1ef))/0x8)+parseInt(_0x1de829(0x1da))/0x9+-parseInt(_0x1de829(0x201))/0xa*(-parseInt(_0x1de829(0x1d6))/0xb);if(_0x36ce2f===_0x14061e)break;else _0x5cdf89['push'](_0x5cdf89['shift']());}catch(_0x2ba16d){_0x5cdf89['push'](_0x5cdf89['shift']());}}}(a215_0x3870,0x80b72));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME='.rabetbase.json';export const CONFIG_NAMES=[a215_0x30ada3(0x1f1),a215_0x30ada3(0x1f4),a215_0x30ada3(0x1ea)];function a215_0x3870(){const _0x2232a2=['pageSize','.tmp','trim','410anzQlM','19603vbgnHQ','apps','object','accessKey','data','cookie','inherit','app','51381XSIEYH','message','cwd','migrated','6131727sfMbuo','defaultApp','102eBErCB','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','utf8','appcode','length','stringify','5531178Ttipfy','error','filter','4IgcaEo','\x0a\x20\x20','env','empty','string','.lovrabetrc','Project','parse','format','config','8iUjnOd','Global','.rabetbase.json','apiDir','keys','.lovrabet.json','2768795HjFrup','21939xJmnIS','warn','locale','riskLevel','set','2053562wwMKGD','status','missing'];a215_0x3870=function(){return _0x2232a2;};return a215_0x3870();}export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a215_0x30ada3(0x1e4)](_0xde52b5=>_0xde52b5!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x4ed41d){for(const _0x309d42 of CONFIG_NAMES){const _0x438ed2=resolve(_0x4ed41d,_0x309d42);if(existsSync(_0x438ed2))return _0x438ed2;}return undefined;}export function findProjectRootDirectory(_0x1e08c3=process[a215_0x30ada3(0x1d8)]()){let _0x2b8dd5=resolve(_0x1e08c3);const {root:_0x59dece}=parse(_0x2b8dd5),_0x53d111=homedir();while(!![]){if(resolveConfigPath(_0x2b8dd5)){if(_0x2b8dd5===_0x53d111)break;return _0x2b8dd5;}if(_0x2b8dd5===_0x59dece||_0x2b8dd5===_0x53d111)break;const _0x5730b1=dirname(_0x2b8dd5);if(_0x5730b1===_0x2b8dd5)break;_0x2b8dd5=_0x5730b1;}return resolve(_0x1e08c3);}export function getProjectConfigPath(){const _0x34bbee=a215_0x30ada3;return resolveConfigPath(process[_0x34bbee(0x1d8)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x5f02b9){const _0x8e0fa5=a215_0x30ada3;if(!existsSync(_0x5f02b9))return{'status':_0x8e0fa5(0x1fd)};try{const _0x3dd642=readFileSync(_0x5f02b9,{'encoding':_0x8e0fa5(0x1de)});if(!_0x3dd642?.[_0x8e0fa5(0x200)]())return{'status':_0x8e0fa5(0x1e8)};const _0x5ae7ab=JSON[_0x8e0fa5(0x1ec)](_0x3dd642);return{'status':'ok','data':_0x5ae7ab};}catch(_0x30fb52){return{'status':_0x8e0fa5(0x1e3),'message':_0x30fb52 instanceof Error?_0x30fb52['message']:String(_0x30fb52)};}}function parseCliConfigJsonFile(_0x3869c1,_0x175654,_0x469da3){const _0x352fee=a215_0x30ada3,_0x4eda05=inspectCliConfigJsonFile(_0x3869c1);if(_0x4eda05[_0x352fee(0x1fc)]===_0x352fee(0x1fd)||_0x4eda05['status']===_0x352fee(0x1e8))return{};if(_0x4eda05[_0x352fee(0x1fc)]==='ok')return _0x4eda05[_0x352fee(0x1d2)];return _0x175654===_0x352fee(0x1f7)&&_0x469da3&&console[_0x352fee(0x1e3)](CLI_BIN_NAME+':\x20'+_0x469da3+_0x352fee(0x1dd)+_0x3869c1+_0x352fee(0x1e6)+_0x4eda05[_0x352fee(0x1d7)]),{};}function normalizeLegacyConfigShape(_0xb11bc2){const _0x3906bc=a215_0x30ada3;if(!_0xb11bc2||typeof _0xb11bc2!==_0x3906bc(0x204))return{'config':{},'migrated':![]};const _0x4bd291={..._0xb11bc2},_0x4f4402=_0x4bd291[_0x3906bc(0x203)]&&typeof _0x4bd291[_0x3906bc(0x203)]===_0x3906bc(0x204)?{..._0x4bd291[_0x3906bc(0x203)]}:{},_0x16073e=Object[_0x3906bc(0x1f3)](_0x4f4402)[_0x3906bc(0x1e0)],_0x1db9a4=_0x4bd291[_0x3906bc(0x1df)]||_0x4bd291['app'];let _0x5d9714=![];if(_0x1db9a4&&_0x16073e===0x0){const _0xda5f23=typeof _0x4bd291['defaultApp']===_0x3906bc(0x1e9)&&_0x4bd291[_0x3906bc(0x1db)][_0x3906bc(0x200)]()?_0x4bd291[_0x3906bc(0x1db)]:String(_0x1db9a4)[_0x3906bc(0x200)]();_0x4f4402[_0xda5f23]={'appcode':String(_0x1db9a4)[_0x3906bc(0x200)](),..._0x4bd291[_0x3906bc(0x1e7)]!=null?{'env':_0x4bd291['env']}:{},..._0x4bd291[_0x3906bc(0x1f2)]!=null?{'apiDir':_0x4bd291[_0x3906bc(0x1f2)]}:{},..._0x4bd291[_0x3906bc(0x1d3)]!=null?{'cookie':_0x4bd291[_0x3906bc(0x1d3)]}:{},..._0x4bd291[_0x3906bc(0x1d1)]!=null?{'accessKey':_0x4bd291['accessKey']}:{},..._0x4bd291['format']!=null?{'format':_0x4bd291[_0x3906bc(0x1ed)]}:{},..._0x4bd291['pageSize']!=null?{'pageSize':_0x4bd291[_0x3906bc(0x1fe)]}:{},..._0x4bd291[_0x3906bc(0x1f9)]!=null?{'riskLevel':_0x4bd291[_0x3906bc(0x1f9)]}:{},..._0x4bd291[_0x3906bc(0x1f8)]!=null?{'locale':_0x4bd291['locale']}:{}},_0x4bd291[_0x3906bc(0x203)]=_0x4f4402;if(!_0x4bd291[_0x3906bc(0x1db)])_0x4bd291[_0x3906bc(0x1db)]=_0xda5f23;_0x5d9714=!![];}return(_0x3906bc(0x1df)in _0x4bd291||_0x3906bc(0x1d5)in _0x4bd291)&&(delete _0x4bd291[_0x3906bc(0x1df)],delete _0x4bd291[_0x3906bc(0x1d5)],_0x5d9714=!![]),{'config':_0x4bd291,'migrated':_0x5d9714};}function writeNormalizedConfigIfNeeded(_0x49b930,_0x4a7a0f){const _0x282ffa=a215_0x30ada3,_0xdff8c4=JSON[_0x282ffa(0x1e1)](_0x4a7a0f,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x49b930)===_0xdff8c4)return;writeConfigFile(_0x49b930,_0x4a7a0f),normalizedWriteCache[_0x282ffa(0x1fa)](_0x49b930,_0xdff8c4);}function parseAndNormalizeConfig(_0x4d6982,_0x3b4fd3,_0x3b1805){const _0x158663=a215_0x30ada3,_0x272406=parseCliConfigJsonFile(_0x4d6982,_0x3b4fd3,_0x3b1805),_0x58e569=normalizeLegacyConfigShape(_0x272406);if(_0x58e569[_0x158663(0x1d9)])try{writeNormalizedConfigIfNeeded(_0x4d6982,_0x58e569[_0x158663(0x1ee)]);}catch{}return _0x58e569[_0x158663(0x1ee)];}export function loadRawConfigLayers(_0xb2198c){const _0x3522cd=a215_0x30ada3;let _0x17bf1b={},_0x4afcdf={};const _0x264f33=resolveConfigPath(homedir());_0x264f33&&(_0x17bf1b=parseAndNormalizeConfig(_0x264f33,_0x3522cd(0x1f7),_0x3522cd(0x1f0)));const _0xf05a03=_0xb2198c??findProjectRootDirectory(),_0x101255=resolveConfigPath(_0xf05a03);return _0x101255&&(_0x4afcdf=parseAndNormalizeConfig(_0x101255,_0x3522cd(0x1f7),_0x3522cd(0x1eb))),{'globalPath':_0x264f33,'projectPath':_0x101255,'globalConfig':_0x17bf1b,'projectConfig':_0x4afcdf};}const INHERIT_WHITELIST=[a215_0x30ada3(0x1d3),a215_0x30ada3(0x1d1),a215_0x30ada3(0x1f8),a215_0x30ada3(0x1ed),'riskLevel',a215_0x30ada3(0x1fe)];export function mergeRawConfigLayers(_0x3a020d){const _0x570202=a215_0x30ada3,{globalConfig:_0x1f2693,projectConfig:_0x209e30}=_0x3a020d,_0x1bb14e=Object['keys'](_0x209e30)[_0x570202(0x1e0)]>0x0;if(!_0x1bb14e)return mergeGlobalOnly(_0x1f2693);if(_0x209e30[_0x570202(0x1d4)]===!![])return mergeFullInherit(_0x1f2693,_0x209e30);if(_0x209e30[_0x570202(0x1d4)]===![])return mergeIsolated(_0x209e30);return mergeProjectFirst(_0x1f2693,_0x209e30);}function mergeGlobalOnly(_0x3e9bcb){const _0x2a9c96=a215_0x30ada3,_0x5155e0={..._0x3e9bcb},_0x4cb972=_0x3e9bcb['apps']&&typeof _0x3e9bcb['apps']===_0x2a9c96(0x204)?_0x3e9bcb[_0x2a9c96(0x203)]:{};if(Object[_0x2a9c96(0x1f3)](_0x4cb972)[_0x2a9c96(0x1e0)]>0x0)_0x5155e0[_0x2a9c96(0x203)]=_0x4cb972;if(_0x3e9bcb[_0x2a9c96(0x1db)])_0x5155e0[_0x2a9c96(0x1db)]=_0x3e9bcb[_0x2a9c96(0x1db)];else{const _0x1dc4bc=Object['keys'](_0x4cb972);if(_0x1dc4bc[_0x2a9c96(0x1e0)]>0x0)_0x5155e0[_0x2a9c96(0x1db)]=_0x1dc4bc[0x0];}return _0x5155e0;}function mergeIsolated(_0xf01303){const _0xee4d7f=a215_0x30ada3,_0x15a280={..._0xf01303};delete _0x15a280[_0xee4d7f(0x1d4)];const _0x322c51=_0xf01303[_0xee4d7f(0x203)]&&typeof _0xf01303[_0xee4d7f(0x203)]===_0xee4d7f(0x204)?_0xf01303[_0xee4d7f(0x203)]:{};Object[_0xee4d7f(0x1f3)](_0x322c51)['length']>0x0?_0x15a280[_0xee4d7f(0x203)]=_0x322c51:delete _0x15a280['apps'];if(_0xee4d7f(0x1db)in _0xf01303)_0x15a280[_0xee4d7f(0x1db)]=_0xf01303[_0xee4d7f(0x1db)];else Object[_0xee4d7f(0x1f3)](_0x322c51)['length']>0x0?_0x15a280[_0xee4d7f(0x1db)]=Object['keys'](_0x322c51)[0x0]:delete _0x15a280[_0xee4d7f(0x1db)];return _0x15a280;}function mergeProjectFirst(_0x39178b,_0x3645f1){const _0x32c839=a215_0x30ada3,_0x1b8307={..._0x3645f1};delete _0x1b8307['inherit'];for(const _0x305d4c of INHERIT_WHITELIST){!(_0x305d4c in _0x1b8307)&&_0x305d4c in _0x39178b&&(_0x1b8307[_0x305d4c]=_0x39178b[_0x305d4c]);}const _0x407de9=_0x3645f1[_0x32c839(0x203)]&&typeof _0x3645f1[_0x32c839(0x203)]==='object'?_0x3645f1[_0x32c839(0x203)]:{};Object[_0x32c839(0x1f3)](_0x407de9)[_0x32c839(0x1e0)]>0x0?_0x1b8307[_0x32c839(0x203)]=_0x407de9:delete _0x1b8307[_0x32c839(0x203)];if(_0x32c839(0x1db)in _0x3645f1)_0x1b8307[_0x32c839(0x1db)]=_0x3645f1[_0x32c839(0x1db)];else Object['keys'](_0x407de9)[_0x32c839(0x1e0)]>0x0?_0x1b8307[_0x32c839(0x1db)]=Object[_0x32c839(0x1f3)](_0x407de9)[0x0]:delete _0x1b8307[_0x32c839(0x1db)];return _0x1b8307;}function mergeFullInherit(_0x4798f9,_0x42ea4a){const _0x530220=a215_0x30ada3,_0xabbaac=_0x4798f9[_0x530220(0x203)]&&typeof _0x4798f9[_0x530220(0x203)]===_0x530220(0x204)?_0x4798f9[_0x530220(0x203)]:{},_0x21878e=_0x42ea4a[_0x530220(0x203)]&&typeof _0x42ea4a[_0x530220(0x203)]==='object'?_0x42ea4a[_0x530220(0x203)]:{},_0x2617a0={..._0xabbaac,..._0x21878e},_0x3e41a9={..._0x4798f9,..._0x42ea4a};delete _0x3e41a9[_0x530220(0x1d4)];if(Object[_0x530220(0x1f3)](_0x2617a0)[_0x530220(0x1e0)]>0x0)_0x3e41a9['apps']=_0x2617a0;if(_0x530220(0x1db)in _0x42ea4a)_0x3e41a9[_0x530220(0x1db)]=_0x42ea4a[_0x530220(0x1db)];else{if(Object[_0x530220(0x1f3)](_0x21878e)[_0x530220(0x1e0)]>0x0)_0x3e41a9[_0x530220(0x1db)]=Object[_0x530220(0x1f3)](_0x21878e)[0x0];else{if(_0x4798f9['defaultApp'])_0x3e41a9[_0x530220(0x1db)]=_0x4798f9[_0x530220(0x1db)];else{const _0x4b86fb=Object[_0x530220(0x1f3)](_0xabbaac);if(_0x4b86fb[_0x530220(0x1e0)]>0x0)_0x3e41a9[_0x530220(0x1db)]=_0x4b86fb[0x0];}}}return _0x3e41a9;}export function readRawConfigWithLayers(_0x2eda45){const _0xb4b1ab=loadRawConfigLayers(_0x2eda45);return{'config':mergeRawConfigLayers(_0xb4b1ab),'layers':_0xb4b1ab};}export function readRawConfig(_0x5028ee){return mergeRawConfigLayers(loadRawConfigLayers(_0x5028ee));}export function readConfigFile(_0x2c452a){return parseAndNormalizeConfig(_0x2c452a,'silent');}function a215_0x5e62(_0x11eaae,_0x5d54d3){_0x11eaae=_0x11eaae-0x1d1;const _0x38704b=a215_0x3870();let _0x5e62f7=_0x38704b[_0x11eaae];return _0x5e62f7;}export function writeConfigFile(_0x43d86e,_0x31e286){const _0x3421c4=a215_0x30ada3,_0x38bba4=dirname(_0x43d86e);!existsSync(_0x38bba4)&&mkdirSync(_0x38bba4,{'recursive':!![]});const _0x3f4d4e=_0x43d86e+_0x3421c4(0x1ff);try{writeFileSync(_0x3f4d4e,JSON[_0x3421c4(0x1e1)](_0x31e286,null,0x2)+'\x0a',{'encoding':_0x3421c4(0x1de),'mode':0x180}),renameSync(_0x3f4d4e,_0x43d86e);}catch(_0x100dd2){try{unlinkSync(_0x3f4d4e);}catch{}throw _0x100dd2;}}export function resolveWriteConfigPath(_0x5c371d){const _0x491641=a215_0x30ada3,_0x426940=_0x5c371d==='project'?process[_0x491641(0x1d8)]():homedir(),_0x2ed207=resolveConfigPath(_0x426940);return _0x2ed207??resolve(_0x426940,NEW_CONFIG_NAME);}
|
|
1
|
+
const a215_0x10f6e2=a215_0x162d;(function(_0x411282,_0x2baf7a){const _0x2c4cb7=a215_0x162d,_0x36514b=_0x411282();while(!![]){try{const _0x50093b=parseInt(_0x2c4cb7(0xe1))/0x1+-parseInt(_0x2c4cb7(0xd9))/0x2+-parseInt(_0x2c4cb7(0xf3))/0x3*(parseInt(_0x2c4cb7(0xfa))/0x4)+-parseInt(_0x2c4cb7(0xe6))/0x5*(-parseInt(_0x2c4cb7(0xf9))/0x6)+-parseInt(_0x2c4cb7(0xf7))/0x7+-parseInt(_0x2c4cb7(0xdb))/0x8*(-parseInt(_0x2c4cb7(0xd5))/0x9)+parseInt(_0x2c4cb7(0xed))/0xa*(parseInt(_0x2c4cb7(0xc7))/0xb);if(_0x50093b===_0x2baf7a)break;else _0x36514b['push'](_0x36514b['shift']());}catch(_0x72242c){_0x36514b['push'](_0x36514b['shift']());}}}(a215_0x2ca9,0x54325));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a215_0x10f6e2(0xcf);export const CONFIG_NAMES=[a215_0x10f6e2(0xcf),a215_0x10f6e2(0xd6),a215_0x10f6e2(0xca)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0xbf3669=>_0xbf3669!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x34c200){for(const _0x5c4716 of CONFIG_NAMES){const _0x3ba6fc=resolve(_0x34c200,_0x5c4716);if(existsSync(_0x3ba6fc))return _0x3ba6fc;}return undefined;}export function findProjectRootDirectory(_0x104700=process[a215_0x10f6e2(0xe7)]()){let _0x128934=resolve(_0x104700);const {root:_0x38c496}=parse(_0x128934),_0x3c896b=homedir();while(!![]){if(resolveConfigPath(_0x128934)){if(_0x128934===_0x3c896b)break;return _0x128934;}if(_0x128934===_0x38c496||_0x128934===_0x3c896b)break;const _0x20dc92=dirname(_0x128934);if(_0x20dc92===_0x128934)break;_0x128934=_0x20dc92;}return resolve(_0x104700);}export function getProjectConfigPath(){const _0xf7cd4=a215_0x10f6e2;return resolveConfigPath(process[_0xf7cd4(0xe7)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}function a215_0x162d(_0x4c8de7,_0x5060de){_0x4c8de7=_0x4c8de7-0xc7;const _0x2ca942=a215_0x2ca9();let _0x162dcc=_0x2ca942[_0x4c8de7];return _0x162dcc;}export function isInProject(){return!!getProjectConfigPath();}function a215_0x2ca9(){const _0x25fc75=['apps','.lovrabetrc','riskLevel','utf8','pageSize','migrated','.rabetbase.json','inherit','silent','data','\x0a\x20\x20','defaultApp','18yrZIDB','.lovrabet.json','Global','missing','953050fdcThH','parse','1750264WHanaR','config','app','set','status','get','164475icBCiY','message','appcode','stringify','trim','5hyLDqx','cwd','apiDir','accessKey','keys','string','env','3005680iIawbC','project','format','empty','.tmp','Project','12333eOVpFH','warn','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','object','2116730uBVZgd','locale','3519534nawAJb','648QXgPIP','length','cookie','22xuDEzx','error'];a215_0x2ca9=function(){return _0x25fc75;};return a215_0x2ca9();}export function inspectCliConfigJsonFile(_0x552464){const _0x2a3628=a215_0x10f6e2;if(!existsSync(_0x552464))return{'status':_0x2a3628(0xd8)};try{const _0x3ba64d=readFileSync(_0x552464,{'encoding':_0x2a3628(0xcc)});if(!_0x3ba64d?.[_0x2a3628(0xe5)]())return{'status':_0x2a3628(0xf0)};const _0x11849f=JSON[_0x2a3628(0xda)](_0x3ba64d);return{'status':'ok','data':_0x11849f};}catch(_0x1fdad1){return{'status':_0x2a3628(0xc8),'message':_0x1fdad1 instanceof Error?_0x1fdad1[_0x2a3628(0xe2)]:String(_0x1fdad1)};}}function parseCliConfigJsonFile(_0x20ffe3,_0x72c002,_0x49ad52){const _0x548b8c=a215_0x10f6e2,_0x156e18=inspectCliConfigJsonFile(_0x20ffe3);if(_0x156e18['status']==='missing'||_0x156e18[_0x548b8c(0xdf)]===_0x548b8c(0xf0))return{};if(_0x156e18[_0x548b8c(0xdf)]==='ok')return _0x156e18[_0x548b8c(0xd2)];return _0x72c002===_0x548b8c(0xf4)&&_0x49ad52&&console[_0x548b8c(0xc8)](CLI_BIN_NAME+':\x20'+_0x49ad52+_0x548b8c(0xf5)+_0x20ffe3+_0x548b8c(0xd3)+_0x156e18['message']),{};}function normalizeLegacyConfigShape(_0xa7a672){const _0x3f0239=a215_0x10f6e2;if(!_0xa7a672||typeof _0xa7a672!==_0x3f0239(0xf6))return{'config':{},'migrated':![]};const _0x4eb9b4={..._0xa7a672},_0x1abda5=_0x4eb9b4[_0x3f0239(0xc9)]&&typeof _0x4eb9b4[_0x3f0239(0xc9)]==='object'?{..._0x4eb9b4['apps']}:{},_0x375778=Object[_0x3f0239(0xea)](_0x1abda5)[_0x3f0239(0xfb)],_0x29c7c5=_0x4eb9b4[_0x3f0239(0xe3)]||_0x4eb9b4[_0x3f0239(0xdd)];let _0x18610a=![];if(_0x29c7c5&&_0x375778===0x0){const _0xc2dd2b=typeof _0x4eb9b4[_0x3f0239(0xd4)]===_0x3f0239(0xeb)&&_0x4eb9b4[_0x3f0239(0xd4)]['trim']()?_0x4eb9b4[_0x3f0239(0xd4)]:String(_0x29c7c5)[_0x3f0239(0xe5)]();_0x1abda5[_0xc2dd2b]={'appcode':String(_0x29c7c5)[_0x3f0239(0xe5)](),..._0x4eb9b4[_0x3f0239(0xec)]!=null?{'env':_0x4eb9b4[_0x3f0239(0xec)]}:{},..._0x4eb9b4[_0x3f0239(0xe8)]!=null?{'apiDir':_0x4eb9b4[_0x3f0239(0xe8)]}:{},..._0x4eb9b4[_0x3f0239(0xfc)]!=null?{'cookie':_0x4eb9b4['cookie']}:{},..._0x4eb9b4[_0x3f0239(0xe9)]!=null?{'accessKey':_0x4eb9b4[_0x3f0239(0xe9)]}:{},..._0x4eb9b4[_0x3f0239(0xef)]!=null?{'format':_0x4eb9b4[_0x3f0239(0xef)]}:{},..._0x4eb9b4[_0x3f0239(0xcd)]!=null?{'pageSize':_0x4eb9b4[_0x3f0239(0xcd)]}:{},..._0x4eb9b4[_0x3f0239(0xcb)]!=null?{'riskLevel':_0x4eb9b4[_0x3f0239(0xcb)]}:{},..._0x4eb9b4['locale']!=null?{'locale':_0x4eb9b4[_0x3f0239(0xf8)]}:{}},_0x4eb9b4['apps']=_0x1abda5;if(!_0x4eb9b4[_0x3f0239(0xd4)])_0x4eb9b4[_0x3f0239(0xd4)]=_0xc2dd2b;_0x18610a=!![];}return('appcode'in _0x4eb9b4||'app'in _0x4eb9b4)&&(delete _0x4eb9b4[_0x3f0239(0xe3)],delete _0x4eb9b4[_0x3f0239(0xdd)],_0x18610a=!![]),{'config':_0x4eb9b4,'migrated':_0x18610a};}function writeNormalizedConfigIfNeeded(_0x1da4df,_0x343e83){const _0x4cfa6a=a215_0x10f6e2,_0x224a6a=JSON[_0x4cfa6a(0xe4)](_0x343e83,null,0x2)+'\x0a';if(normalizedWriteCache[_0x4cfa6a(0xe0)](_0x1da4df)===_0x224a6a)return;writeConfigFile(_0x1da4df,_0x343e83),normalizedWriteCache[_0x4cfa6a(0xde)](_0x1da4df,_0x224a6a);}function parseAndNormalizeConfig(_0x51339f,_0x1c6509,_0x151f4c){const _0x53a134=a215_0x10f6e2,_0x1b81db=parseCliConfigJsonFile(_0x51339f,_0x1c6509,_0x151f4c),_0x5a12e7=normalizeLegacyConfigShape(_0x1b81db);if(_0x5a12e7[_0x53a134(0xce)])try{writeNormalizedConfigIfNeeded(_0x51339f,_0x5a12e7['config']);}catch{}return _0x5a12e7[_0x53a134(0xdc)];}export function loadRawConfigLayers(_0x138266){const _0x4d602a=a215_0x10f6e2;let _0x5f3fb4={},_0x45957f={};const _0x78bb1c=resolveConfigPath(homedir());_0x78bb1c&&(_0x5f3fb4=parseAndNormalizeConfig(_0x78bb1c,_0x4d602a(0xf4),_0x4d602a(0xd7)));const _0x3ad69d=_0x138266??findProjectRootDirectory(),_0xe487fa=resolveConfigPath(_0x3ad69d);return _0xe487fa&&(_0x45957f=parseAndNormalizeConfig(_0xe487fa,_0x4d602a(0xf4),_0x4d602a(0xf2))),{'globalPath':_0x78bb1c,'projectPath':_0xe487fa,'globalConfig':_0x5f3fb4,'projectConfig':_0x45957f};}const INHERIT_WHITELIST=['cookie','accessKey','locale',a215_0x10f6e2(0xef),a215_0x10f6e2(0xcb),a215_0x10f6e2(0xcd)];export function mergeRawConfigLayers(_0x456d09){const _0x346f70=a215_0x10f6e2,{globalConfig:_0x51563c,projectConfig:_0x12a7d7}=_0x456d09,_0x150ed7=Object['keys'](_0x12a7d7)[_0x346f70(0xfb)]>0x0;if(!_0x150ed7)return mergeGlobalOnly(_0x51563c);if(_0x12a7d7['inherit']===!![])return mergeFullInherit(_0x51563c,_0x12a7d7);if(_0x12a7d7['inherit']===![])return mergeIsolated(_0x12a7d7);return mergeProjectFirst(_0x51563c,_0x12a7d7);}function mergeGlobalOnly(_0x4d5aad){const _0x574fa4=a215_0x10f6e2,_0x159854={..._0x4d5aad},_0xf02769=_0x4d5aad['apps']&&typeof _0x4d5aad[_0x574fa4(0xc9)]===_0x574fa4(0xf6)?_0x4d5aad[_0x574fa4(0xc9)]:{};if(Object[_0x574fa4(0xea)](_0xf02769)[_0x574fa4(0xfb)]>0x0)_0x159854[_0x574fa4(0xc9)]=_0xf02769;if(_0x4d5aad['defaultApp'])_0x159854[_0x574fa4(0xd4)]=_0x4d5aad[_0x574fa4(0xd4)];else{const _0x2b5a05=Object[_0x574fa4(0xea)](_0xf02769);if(_0x2b5a05[_0x574fa4(0xfb)]>0x0)_0x159854[_0x574fa4(0xd4)]=_0x2b5a05[0x0];}return _0x159854;}function mergeIsolated(_0x3eac2c){const _0xcc1e56=a215_0x10f6e2,_0xd63d4b={..._0x3eac2c};delete _0xd63d4b[_0xcc1e56(0xd0)];const _0x3622a4=_0x3eac2c['apps']&&typeof _0x3eac2c[_0xcc1e56(0xc9)]===_0xcc1e56(0xf6)?_0x3eac2c[_0xcc1e56(0xc9)]:{};Object[_0xcc1e56(0xea)](_0x3622a4)[_0xcc1e56(0xfb)]>0x0?_0xd63d4b[_0xcc1e56(0xc9)]=_0x3622a4:delete _0xd63d4b['apps'];if(_0xcc1e56(0xd4)in _0x3eac2c)_0xd63d4b[_0xcc1e56(0xd4)]=_0x3eac2c['defaultApp'];else Object[_0xcc1e56(0xea)](_0x3622a4)[_0xcc1e56(0xfb)]>0x0?_0xd63d4b[_0xcc1e56(0xd4)]=Object[_0xcc1e56(0xea)](_0x3622a4)[0x0]:delete _0xd63d4b['defaultApp'];return _0xd63d4b;}function mergeProjectFirst(_0x52399b,_0x4169ba){const _0x3ed900=a215_0x10f6e2,_0x38b158={..._0x4169ba};delete _0x38b158[_0x3ed900(0xd0)];for(const _0x354d5f of INHERIT_WHITELIST){!(_0x354d5f in _0x38b158)&&_0x354d5f in _0x52399b&&(_0x38b158[_0x354d5f]=_0x52399b[_0x354d5f]);}const _0x60363b=_0x4169ba[_0x3ed900(0xc9)]&&typeof _0x4169ba[_0x3ed900(0xc9)]==='object'?_0x4169ba[_0x3ed900(0xc9)]:{};Object['keys'](_0x60363b)['length']>0x0?_0x38b158[_0x3ed900(0xc9)]=_0x60363b:delete _0x38b158[_0x3ed900(0xc9)];if(_0x3ed900(0xd4)in _0x4169ba)_0x38b158[_0x3ed900(0xd4)]=_0x4169ba[_0x3ed900(0xd4)];else Object[_0x3ed900(0xea)](_0x60363b)['length']>0x0?_0x38b158[_0x3ed900(0xd4)]=Object[_0x3ed900(0xea)](_0x60363b)[0x0]:delete _0x38b158[_0x3ed900(0xd4)];return _0x38b158;}function mergeFullInherit(_0x1f8196,_0x50c414){const _0xc4f75e=a215_0x10f6e2,_0x118497=_0x1f8196[_0xc4f75e(0xc9)]&&typeof _0x1f8196[_0xc4f75e(0xc9)]==='object'?_0x1f8196['apps']:{},_0x2f429d=_0x50c414[_0xc4f75e(0xc9)]&&typeof _0x50c414['apps']===_0xc4f75e(0xf6)?_0x50c414[_0xc4f75e(0xc9)]:{},_0x29875c={..._0x118497,..._0x2f429d},_0x136848={..._0x1f8196,..._0x50c414};delete _0x136848[_0xc4f75e(0xd0)];if(Object[_0xc4f75e(0xea)](_0x29875c)[_0xc4f75e(0xfb)]>0x0)_0x136848['apps']=_0x29875c;if(_0xc4f75e(0xd4)in _0x50c414)_0x136848[_0xc4f75e(0xd4)]=_0x50c414['defaultApp'];else{if(Object[_0xc4f75e(0xea)](_0x2f429d)['length']>0x0)_0x136848[_0xc4f75e(0xd4)]=Object[_0xc4f75e(0xea)](_0x2f429d)[0x0];else{if(_0x1f8196[_0xc4f75e(0xd4)])_0x136848[_0xc4f75e(0xd4)]=_0x1f8196[_0xc4f75e(0xd4)];else{const _0x7fe3ac=Object[_0xc4f75e(0xea)](_0x118497);if(_0x7fe3ac['length']>0x0)_0x136848[_0xc4f75e(0xd4)]=_0x7fe3ac[0x0];}}}return _0x136848;}export function readRawConfigWithLayers(_0x140e82){const _0x424f9c=loadRawConfigLayers(_0x140e82);return{'config':mergeRawConfigLayers(_0x424f9c),'layers':_0x424f9c};}export function readRawConfig(_0x46e8a8){return mergeRawConfigLayers(loadRawConfigLayers(_0x46e8a8));}export function readConfigFile(_0x4fd43f){const _0x340bb4=a215_0x10f6e2;return parseAndNormalizeConfig(_0x4fd43f,_0x340bb4(0xd1));}export function writeConfigFile(_0x5b9a16,_0x4f8000){const _0x5a5037=a215_0x10f6e2,_0xb770c2=dirname(_0x5b9a16);!existsSync(_0xb770c2)&&mkdirSync(_0xb770c2,{'recursive':!![]});const _0x11cf62=_0x5b9a16+_0x5a5037(0xf1);try{writeFileSync(_0x11cf62,JSON[_0x5a5037(0xe4)](_0x4f8000,null,0x2)+'\x0a',{'encoding':_0x5a5037(0xcc),'mode':0x180}),renameSync(_0x11cf62,_0x5b9a16);}catch(_0x4f96a8){try{unlinkSync(_0x11cf62);}catch{}throw _0x4f96a8;}}export function resolveWriteConfigPath(_0x1ba96a){const _0x5b2de5=a215_0x10f6e2,_0x432631=_0x1ba96a===_0x5b2de5(0xee)?process[_0x5b2de5(0xe7)]():homedir(),_0x1c1da0=resolveConfigPath(_0x432631);return _0x1c1da0??resolve(_0x432631,NEW_CONFIG_NAME);}
|