@lovrabet/rabetbase-cli 2.4.2 → 2.4.3
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/guides/react-custom-page-workflow.md +9 -3
- package/skills/rabetbase/knowledge/react-page/generation-standards.md +13 -2
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x56a17b,_0x28c9c9){const _0x4373bd=a198_0x1376,_0x3d4e0f=_0x56a17b();while(!![]){try{const _0x11006c=-parseInt(_0x4373bd(0x86))/0x1+parseInt(_0x4373bd(0x95))/0x2*(-parseInt(_0x4373bd(0x8e))/0x3)+-parseInt(_0x4373bd(0x96))/0x4+parseInt(_0x4373bd(0x91))/0x5*(-parseInt(_0x4373bd(0x8b))/0x6)+-parseInt(_0x4373bd(0x9b))/0x7*(-parseInt(_0x4373bd(0x9a))/0x8)+parseInt(_0x4373bd(0x94))/0x9+parseInt(_0x4373bd(0x8f))/0xa;if(_0x11006c===_0x28c9c9)break;else _0x3d4e0f['push'](_0x3d4e0f['shift']());}catch(_0x39c693){_0x3d4e0f['push'](_0x3d4e0f['shift']());}}}(a198_0x54a3,0x4854f));function a198_0x54a3(){const _0x539e40=['3440412bxobKU','218376hYjbDE','796260zjBiDQ','Tenant\x20\x22','get','displayName','56Ifqvkv','98665UVHZzX','\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.','validation','MEMBER','role','tenantCode','81951OqbKfm','values','adminFlag','status','some','186kuWaFg','username','sort','12cIkkXx','7920490zgRbSQ','userId','41765UlUPMe','trim','ADMIN'];a198_0x54a3=function(){return _0x539e40;};return a198_0x54a3();}import{CliErrors}from'../../errors.js';function textOrNull(_0x77fc86){const _0x45452b=a198_0x1376,_0x3d91cc=_0x77fc86?.[_0x45452b(0x92)]();return _0x3d91cc?_0x3d91cc:null;}export function projectTenantMembers(_0x537b48){const _0x24b2f4=a198_0x1376,_0x19c42f=new Map();for(const _0x523c7e of _0x537b48){const _0xf726ba=Number(_0x523c7e['userId']);if(!Number['isFinite'](_0xf726ba)||_0xf726ba<=0x0)continue;const _0x330210={'userId':_0xf726ba,'username':textOrNull(_0x523c7e[_0x24b2f4(0x8c)]),'displayName':textOrNull(_0x523c7e['nickname']),'role':_0x523c7e[_0x24b2f4(0x88)]===!![]?'ADMIN':_0x24b2f4(0x9e),'status':textOrNull(_0x523c7e[_0x24b2f4(0x89)])},_0x5e76e8=_0x19c42f[_0x24b2f4(0x98)](_0xf726ba);if(!_0x5e76e8){_0x19c42f['set'](_0xf726ba,_0x330210);continue;}_0x5e76e8[_0x24b2f4(0x8c)]??=_0x330210[_0x24b2f4(0x8c)],_0x5e76e8[_0x24b2f4(0x99)]??=_0x330210[_0x24b2f4(0x99)],_0x5e76e8[_0x24b2f4(0x89)]??=_0x330210[_0x24b2f4(0x89)];if(_0x330210[_0x24b2f4(0x9f)]==='ADMIN')_0x5e76e8[_0x24b2f4(0x9f)]=_0x24b2f4(0x93);}return[..._0x19c42f[_0x24b2f4(0x87)]()][_0x24b2f4(0x8d)]((_0x1d3aa0,_0x3949d7)=>_0x1d3aa0[_0x24b2f4(0x90)]-_0x3949d7[_0x24b2f4(0x90)]);}function a198_0x1376(_0x51c580,_0x40f208){_0x51c580=_0x51c580-0x85;const _0x54a3c5=a198_0x54a3();let _0x137610=_0x54a3c5[_0x51c580];return _0x137610;}export function assertTenantAccessible(_0x148717,_0x541adc){const _0x104609=a198_0x1376;if(_0x541adc[_0x104609(0x8a)](_0x1ac5da=>_0x1ac5da[_0x104609(0x85)]===_0x148717))return;throw CliErrors[_0x104609(0x9d)](_0x104609(0x97)+_0x148717+_0x104609(0x9c),'Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a199_0x10ea0c=a199_0x3c0a;(function(_0x3e222f,_0x185b43){const _0x14290d=a199_0x3c0a,_0x529842=_0x3e222f();while(!![]){try{const _0x1400e2=parseInt(_0x14290d(0x192))/0x1+parseInt(_0x14290d(0x194))/0x2*(parseInt(_0x14290d(0x189))/0x3)+parseInt(_0x14290d(0x193))/0x4*(-parseInt(_0x14290d(0x188))/0x5)+parseInt(_0x14290d(0x185))/0x6+parseInt(_0x14290d(0x18e))/0x7+-parseInt(_0x14290d(0x17f))/0x8+-parseInt(_0x14290d(0x190))/0x9*(parseInt(_0x14290d(0x181))/0xa);if(_0x1400e2===_0x185b43)break;else _0x529842['push'](_0x529842['shift']());}catch(_0x398ae0){_0x529842['push'](_0x529842['shift']());}}}(a199_0x5262,0xb5467));import{asDryRunResult}from'../../commands/common/dry-run.js';import{bindDingTalkSandboxAccount,DING_TALK_SANDBOX_BIND_PATH}from'../../core/api-client.js';function a199_0x3c0a(_0x337a47,_0x28a6cf){_0x337a47=_0x337a47-0x17f;const _0x526261=a199_0x5262();let _0x3c0aee=_0x526261[_0x337a47];return _0x3c0aee;}import{CliErrors}from'../../errors.js';const PROVIDER_ID=a199_0x10ea0c(0x184),CURRENT_BINDING_WARNING='The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.';function readDingTalkUserId(_0x29e0db){const _0x3ae57e=a199_0x10ea0c,_0x2fd96f=_0x29e0db[_0x3ae57e(0x18d)]('ding-talk-user-id')[_0x3ae57e(0x182)]();if(!_0x2fd96f)throw CliErrors[_0x3ae57e(0x187)](_0x3ae57e(0x18a),'Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.');return _0x2fd96f;}function a199_0x5262(){const _0x326461=['apiError','757014fBCyhl','4lOhuud','1129636zIcAEY','Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.','dingding-sandbox-bind','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','4346808drkGcH','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','650FNkafz','trim','string','dingding-sandbox','8335290gNszjj','POST','validation','2144335SVCxMp','3rBFMgK','--ding-talk-user-id\x20cannot\x20be\x20empty.','user-account','bind','str','2819593BIgRMO','ding-talk-user-id','193725TRwXjL'];a199_0x5262=function(){return _0x326461;};return a199_0x5262();}function buildBindingData(_0x5e61d5,_0x34d233){const _0x3f3a16=a199_0x10ea0c;return{'operation':_0x3f3a16(0x18c),'selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x5e61d5},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x5e61d5,'bound':!![]},'dryRun':_0x34d233,'backend':{'method':'POST','path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const dingTalkSandboxBind={'service':a199_0x10ea0c(0x18b),'command':a199_0x10ea0c(0x196),'description':a199_0x10ea0c(0x180),'risk':'high-risk-write','requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a199_0x10ea0c(0x18f),'type':a199_0x10ea0c(0x183),'required':!![],'description':a199_0x10ea0c(0x197)}],async 'validate'(_0x137e94){readDingTalkUserId(_0x137e94);},async 'dryRun'(_0x19f517){const _0x553d35=a199_0x10ea0c,_0x23c656=readDingTalkUserId(_0x19f517);return asDryRunResult(buildBindingData(_0x23c656,!![]),{'method':_0x553d35(0x186),'url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x4269d8){const _0x30c323=a199_0x10ea0c,_0x339c36=readDingTalkUserId(_0x4269d8),_0x307eab=await bindDingTalkSandboxAccount(_0x339c36);if(_0x307eab!==!![])throw CliErrors[_0x30c323(0x191)]('DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.','Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.');return{'ok':!![],'data':buildBindingData(_0x339c36,![]),'message':_0x30c323(0x195)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a200_0x3bba(_0x39ddc8,_0x595711){_0x39ddc8=_0x39ddc8-0x1d4;const _0x5be1a7=a200_0x5be1();let _0x3bba3b=_0x5be1a7[_0x39ddc8];return _0x3bba3b;}(function(_0x11d060,_0x4ca505){const _0x26f05c=a200_0x3bba,_0x88f777=_0x11d060();while(!![]){try{const _0x5c07cd=-parseInt(_0x26f05c(0x1dd))/0x1+parseInt(_0x26f05c(0x1de))/0x2*(parseInt(_0x26f05c(0x1db))/0x3)+parseInt(_0x26f05c(0x1d7))/0x4*(-parseInt(_0x26f05c(0x1d4))/0x5)+parseInt(_0x26f05c(0x1d9))/0x6*(-parseInt(_0x26f05c(0x1d6))/0x7)+parseInt(_0x26f05c(0x1d8))/0x8+parseInt(_0x26f05c(0x1df))/0x9*(-parseInt(_0x26f05c(0x1dc))/0xa)+parseInt(_0x26f05c(0x1da))/0xb*(parseInt(_0x26f05c(0x1d5))/0xc);if(_0x5c07cd===_0x4ca505)break;else _0x88f777['push'](_0x88f777['shift']());}catch(_0x2c6908){_0x88f777['push'](_0x88f777['shift']());}}}(a200_0x5be1,0x73da3));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';export const userAccountDefinitions=[dingTalkSandboxBind];function a200_0x5be1(){const _0x5b4b81=['50OCRfkB','12DSevBs','349034zgbwlx','172060PacLVl','4385536NLtSnd','18PCNpeh','8564017oKtvFN','15ujbYZW','2672840wEWTCD','470698oDPfpa','186204fWZItx','9infhIG'];a200_0x5be1=function(){return _0x5b4b81;};return a200_0x5be1();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a201_0x4314(){const _0x25fcfa=['add','81UZuQaA','983885moSwJu','App\x20profile\x20name','8rrLRQB','86peZuma','2778bWIPbl','24654773lmiMla','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','3462078mmUQzi','write','599730eEQRKd','8134mjoQcj','5134BfPszG','8687656ccGCHW'];a201_0x4314=function(){return _0x25fcfa;};return a201_0x4314();}function a201_0x1fad(_0x382899,_0x2456ca){_0x382899=_0x382899-0x188;const _0x431494=a201_0x4314();let _0x1fad8a=_0x431494[_0x382899];return _0x1fad8a;}const a201_0x1807cd=a201_0x1fad;(function(_0x553f6b,_0x22b42a){const _0x1b9178=a201_0x1fad,_0xcbb96c=_0x553f6b();while(!![]){try{const _0x3f77f3=parseInt(_0x1b9178(0x190))/0x1*(parseInt(_0x1b9178(0x188))/0x2)+-parseInt(_0x1b9178(0x18c))/0x3+parseInt(_0x1b9178(0x196))/0x4*(parseInt(_0x1b9178(0x194))/0x5)+parseInt(_0x1b9178(0x189))/0x6*(-parseInt(_0x1b9178(0x18f))/0x7)+-parseInt(_0x1b9178(0x191))/0x8+-parseInt(_0x1b9178(0x193))/0x9*(-parseInt(_0x1b9178(0x18e))/0xa)+parseInt(_0x1b9178(0x18a))/0xb;if(_0x3f77f3===_0x22b42a)break;else _0xcbb96c['push'](_0xcbb96c['shift']());}catch(_0x13ba1d){_0xcbb96c['push'](_0xcbb96c['shift']());}}}(a201_0x4314,0x96bd3));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':'workspace','command':a201_0x1807cd(0x192),'description':a201_0x1807cd(0x18b),'risk':a201_0x1807cd(0x18d),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a201_0x1807cd(0x195),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x27e505=>validateAppName(_0x27e505,'workspace\x20add'),'execute':_0x839de5=>runAppAdd(_0x839de5,'workspace\x20add')};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a202_0x407666=a202_0xcd01;(function(_0x24dc53,_0x34d2c6){const _0x19cbd3=a202_0xcd01,_0x5f3b51=_0x24dc53();while(!![]){try{const _0xd82169=-parseInt(_0x19cbd3(0x117))/0x1+-parseInt(_0x19cbd3(0xe0))/0x2*(-parseInt(_0x19cbd3(0xe4))/0x3)+-parseInt(_0x19cbd3(0xf4))/0x4+parseInt(_0x19cbd3(0x108))/0x5+parseInt(_0x19cbd3(0x10b))/0x6*(-parseInt(_0x19cbd3(0xff))/0x7)+-parseInt(_0x19cbd3(0x100))/0x8*(parseInt(_0x19cbd3(0xe1))/0x9)+parseInt(_0x19cbd3(0x11a))/0xa;if(_0xd82169===_0x34d2c6)break;else _0x5f3b51['push'](_0x5f3b51['shift']());}catch(_0x23fb03){_0x5f3b51['push'](_0x5f3b51['shift']());}}}(a202_0x2bc1,0x24efc));import{CliErrors}from'../../errors.js';function a202_0xcd01(_0xbb8a22,_0x7b26c){_0xbb8a22=_0xbb8a22-0xe0;const _0x2bc1f2=a202_0x2bc1();let _0xcd01e5=_0x2bc1f2[_0xbb8a22];return _0xcd01e5;}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+a202_0x407666(0xe9),SAFE_PROFILE_KEYS=[a202_0x407666(0x106),a202_0x407666(0x104),a202_0x407666(0x113),a202_0x407666(0xec),'pageSize','riskLevel',a202_0x407666(0x112)],workspaceFlags=[{'name':a202_0x407666(0x107),'type':a202_0x407666(0xeb),'description':a202_0x407666(0xf6)},{'name':a202_0x407666(0x106),'type':'string','description':a202_0x407666(0x110)},{'name':a202_0x407666(0x104),'type':a202_0x407666(0xeb),'description':a202_0x407666(0x102),'enum':[...RABETBASE_ENV_VALUES]},{'name':a202_0x407666(0x113),'type':a202_0x407666(0xeb),'description':a202_0x407666(0x115)},{'name':'defaultFormat','type':'string','description':a202_0x407666(0x116),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a202_0x407666(0x10d),'type':a202_0x407666(0xfc),'description':a202_0x407666(0xe3)},{'name':a202_0x407666(0x10e),'type':a202_0x407666(0xeb),'description':'Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RISK_LEVEL_VALUES]},{'name':a202_0x407666(0x112),'type':a202_0x407666(0xeb),'description':'Locale\x20for\x20this\x20workspace\x20app\x20profile'}];function isRecord(_0xfe668e){const _0x496871=a202_0x407666;return!!_0xfe668e&&typeof _0xfe668e===_0x496871(0x11b)&&!Array[_0x496871(0xee)](_0xfe668e);}function assertValidAppcode(_0xf7ebde){const _0x9a9e88=a202_0x407666,{valid:_0x47d6e3,message:_0x1b96a2}=validateAppcode(_0xf7ebde);if(!_0x47d6e3)throw CliErrors[_0x9a9e88(0xf8)](_0x9a9e88(0x10f)+_0xf7ebde,_0x1b96a2);}function sanitizeProfile(_0x1487e8){if(!isRecord(_0x1487e8))return{};const _0x559e69={};for(const _0x3203e4 of SAFE_PROFILE_KEYS){if(_0x1487e8[_0x3203e4]!==undefined)_0x559e69[_0x3203e4]=_0x1487e8[_0x3203e4];}return _0x559e69;}function cloneProfile(_0x2557b6){return isRecord(_0x2557b6)?{..._0x2557b6}:{};}function collectWorkspaceProfileOverrides(_0x11718f){const _0x1a3e0c=a202_0x407666,_0x41ce66={},_0x3bd8cd=_0x11718f['str'](_0x1a3e0c(0x104)),_0x19465e=_0x11718f[_0x1a3e0c(0x10a)](_0x1a3e0c(0x113)),_0x2e4d17=_0x11718f[_0x1a3e0c(0x10a)](_0x1a3e0c(0xe7)),_0x11ddcf=_0x11718f[_0x1a3e0c(0x10c)](_0x1a3e0c(0x10d)),_0x105fc5=_0x11718f[_0x1a3e0c(0x10a)](_0x1a3e0c(0x10e)),_0x31e77a=_0x11718f[_0x1a3e0c(0x10a)](_0x1a3e0c(0x112));if(_0x3bd8cd)_0x41ce66[_0x1a3e0c(0x104)]=_0x3bd8cd;if(_0x19465e)_0x41ce66['apiDir']=_0x19465e;if(_0x2e4d17)_0x41ce66[_0x1a3e0c(0xec)]=_0x2e4d17;if(_0x11ddcf!==undefined&&_0x11ddcf!=='')_0x41ce66[_0x1a3e0c(0x10d)]=Number(_0x11ddcf);if(_0x105fc5)_0x41ce66['riskLevel']=_0x105fc5;if(_0x31e77a)_0x41ce66['locale']=_0x31e77a;return _0x41ce66;}async function validateWorkspaceArgs(_0x1cccc7){const _0x4089f6=a202_0x407666,_0x549026=_0x1cccc7[_0x4089f6(0x10a)](_0x4089f6(0x107))[_0x4089f6(0x103)](),_0x185d0b=_0x1cccc7[_0x4089f6(0x10a)]('appcode')[_0x4089f6(0x103)]();if(!_0x549026&&!_0x185d0b)throw CliErrors[_0x4089f6(0xf8)](_0x4089f6(0x109),'Use\x20`'+CLI_BIN_NAME+_0x4089f6(0xf2)+CLI_BIN_NAME+_0x4089f6(0x119));if(_0x185d0b)assertValidAppcode(_0x185d0b);}function resolveKnownApps(){const _0x46c2b8=a202_0x407666,{config:_0x3050f0,layers:_0xdca036}=readRawConfigWithLayers(),_0x2dac4d=isRecord(_0x3050f0[_0x46c2b8(0xfa)])?_0x3050f0[_0x46c2b8(0xfa)]:{},_0x2a514b=isRecord(_0xdca036[_0x46c2b8(0x114)][_0x46c2b8(0xfa)])?_0xdca036[_0x46c2b8(0x114)][_0x46c2b8(0xfa)]:{};return{..._0x2a514b,..._0x2dac4d};}async function configureWorkspace(_0x4d738d,_0x484883){const _0x595fde=a202_0x407666,_0x3791b5=_0x4d738d[_0x595fde(0x10a)](_0x595fde(0x107))[_0x595fde(0x103)](),_0xfe54e2=_0x4d738d[_0x595fde(0x10a)](_0x595fde(0x106))[_0x595fde(0x103)](),_0x615eb0=_0x3791b5||_0xfe54e2;if(!_0x615eb0)throw CliErrors[_0x595fde(0xf8)]('Missing\x20workspace\x20app\x20selector.',_0x595fde(0xef)+CLI_BIN_NAME+_0x595fde(0xf2)+CLI_BIN_NAME+_0x595fde(0x119));if(_0xfe54e2)assertValidAppcode(_0xfe54e2);const _0x1aebfa=resolveWriteConfigPath(_0x595fde(0xe2)),_0x35779c=readConfigFile(_0x1aebfa),_0x21c7ce=resolveKnownApps(),_0xefea6e=isRecord(_0x35779c[_0x595fde(0xfa)])?{..._0x35779c['apps']}:{},_0x3d8722=cloneProfile(_0xefea6e[_0x615eb0]),_0x1ab3e9=sanitizeProfile(_0x21c7ce[_0x615eb0]),_0x58400a=_0xfe54e2?{}:_0x1ab3e9,_0x30b655=_0xfe54e2||_0x58400a[_0x595fde(0x106)];if(!_0x30b655){const _0x282836=Object[_0x595fde(0xf3)](_0x21c7ce),_0x713559=_0x282836['length']===0x0?_0x595fde(0xef)+CLI_BIN_NAME+'\x20workspace\x20'+_0x484883+_0x595fde(0xfe)+_0x615eb0+_0x595fde(0x101):_0x595fde(0xed)+_0x282836[_0x595fde(0xf5)](',\x20');throw CliErrors[_0x595fde(0xf8)](_0x595fde(0xf1)+_0x615eb0+_0x595fde(0xe5),_0x713559);}assertValidAppcode(String(_0x30b655));const _0x7119da={..._0x58400a,..._0x3d8722,'appcode':String(_0x30b655),...collectWorkspaceProfileOverrides(_0x4d738d)};return _0xefea6e[_0x615eb0]=_0x7119da,_0x35779c['apps']=_0xefea6e,_0x35779c[_0x595fde(0x105)]=_0x615eb0,delete _0x35779c['appcode'],delete _0x35779c[_0x595fde(0x107)],_0x7119da[_0x595fde(0x104)]&&(_0x35779c[_0x595fde(0x104)]=_0x7119da[_0x595fde(0x104)]),writeConfigFile(_0x1aebfa,_0x35779c),{'ok':!![],'message':_0x595fde(0xe6)+(_0x484883===_0x595fde(0xe8)?_0x595fde(0x118):_0x595fde(0xea))+':\x20'+_0x615eb0+_0x595fde(0xfb)+_0x7119da['appcode']+').\x20Config:\x20'+_0x1aebfa+'.\x20Credentials:\x20not\x20written.','data':{'operation':_0x595fde(0x111)+_0x484883,'configPath':_0x1aebfa,'app':_0x615eb0,'appcode':_0x7119da[_0x595fde(0x106)],'env':_0x7119da[_0x595fde(0x104)]??null,'credentialsWritten':![]}};}function a202_0x2bc1(){const _0x4011c9=['initialized','\x20workspace\x20use\x20--app\x20<name>`.','795270YyhpbJ','object','39918USVxYQ','31095UkxhNN','project','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','15nesyka','\x22\x20not\x20found.','Workspace\x20','defaultFormat','init','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','updated','string','format','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','isArray','Use\x20`','Initialize\x20the\x20current\x20workspace\x20app\x20binding','App\x20\x22','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','keys','325244lCNxbo','join','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','Switch\x20the\x20current\x20workspace\x20app\x20binding','validation','write','apps','\x20(appcode:\x20','number','workspace','\x20--app\x20','28Hpplkx','136pBPQfF','\x20--appcode\x20<code>`.','Target\x20environment','trim','env','defaultApp','appcode','app','1213310VdoutP','Missing\x20workspace\x20app\x20selector.','str','165234pfEwsV','flag','pageSize','riskLevel','Invalid\x20appcode:\x20','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','workspace.','locale','apiDir','globalConfig','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','20490mqKIYg'];a202_0x2bc1=function(){return _0x4011c9;};return a202_0x2bc1();}const workspaceInitDefinition={'service':a202_0x407666(0xfd),'command':a202_0x407666(0xe8),'description':a202_0x407666(0xf0),'risk':a202_0x407666(0xf9),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x15c0d5=>configureWorkspace(_0x15c0d5,a202_0x407666(0xe8))},workspaceUseDefinition={'service':a202_0x407666(0xfd),'command':'use','description':a202_0x407666(0xf7),'risk':a202_0x407666(0xf9),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x1c0d4e=>configureWorkspace(_0x1c0d4e,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a203_0x1d9736=a203_0x1a38;function a203_0x3e01(){const _0x3a96cd=['4933352yqAFVI','remove','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','112236hkWGhL','30zFSQgs','name','980117QypIqV','8782551AqqQin','1542050DtNvbJ','write','10vCZtPS','workspace\x20remove','4499ReynVJ','128382HcJCEC','12gaqELT','26AqpliO','437045EtGCpF'];a203_0x3e01=function(){return _0x3a96cd;};return a203_0x3e01();}(function(_0x3705e3,_0x1fd755){const _0x5f3825=a203_0x1a38,_0x4c38eb=_0x3705e3();while(!![]){try{const _0x28b4f8=-parseInt(_0x5f3825(0x1f1))/0x1+-parseInt(_0x5f3825(0x1fa))/0x2*(-parseInt(_0x5f3825(0x1f8))/0x3)+-parseInt(_0x5f3825(0x1f9))/0x4*(parseInt(_0x5f3825(0x1f3))/0x5)+-parseInt(_0x5f3825(0x1ef))/0x6*(parseInt(_0x5f3825(0x1fb))/0x7)+-parseInt(_0x5f3825(0x1fc))/0x8+-parseInt(_0x5f3825(0x1f2))/0x9*(parseInt(_0x5f3825(0x1f5))/0xa)+-parseInt(_0x5f3825(0x1f7))/0xb*(-parseInt(_0x5f3825(0x1ee))/0xc);if(_0x28b4f8===_0x1fd755)break;else _0x4c38eb['push'](_0x4c38eb['shift']());}catch(_0x166672){_0x4c38eb['push'](_0x4c38eb['shift']());}}}(a203_0x3e01,0x8b915));function a203_0x1a38(_0x193c9e,_0x59b338){_0x193c9e=_0x193c9e-0x1ec;const _0x3e0157=a203_0x3e01();let _0x1a3881=_0x3e0157[_0x193c9e];return _0x1a3881;}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':'workspace','command':a203_0x1d9736(0x1ec),'description':a203_0x1d9736(0x1ed),'risk':a203_0x1d9736(0x1f4),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a203_0x1d9736(0x1f0),'description':'App\x20profile\x20name\x20to\x20remove','required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x10cb7a=>validateAppName(_0x10cb7a,a203_0x1d9736(0x1f6)),'execute':_0x64b3a2=>runAppRemove(_0x64b3a2,a203_0x1d9736(0x1f6))};
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a204_0x4f6ea1=a204_0x4da3;(function(_0x446628,_0x425ba8){const _0x59a895=a204_0x4da3,_0x363c99=_0x446628();while(!![]){try{const _0x5148de=-parseInt(_0x59a895(0x1fb))/0x1*(parseInt(_0x59a895(0x216))/0x2)+-parseInt(_0x59a895(0x1fe))/0x3+-parseInt(_0x59a895(0x1ed))/0x4*(-parseInt(_0x59a895(0x1f1))/0x5)+parseInt(_0x59a895(0x1f7))/0x6+-parseInt(_0x59a895(0x20a))/0x7*(parseInt(_0x59a895(0x201))/0x8)+parseInt(_0x59a895(0x1f2))/0x9*(-parseInt(_0x59a895(0x20c))/0xa)+parseInt(_0x59a895(0x1ff))/0xb;if(_0x5148de===_0x425ba8)break;else _0x363c99['push'](_0x363c99['shift']());}catch(_0x131e21){_0x363c99['push'](_0x363c99['shift']());}}}(a204_0x404e,0x47235));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.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';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a204_0x4f6ea1(0x1ef),'accessKey',a204_0x4f6ea1(0x213),'format',a204_0x4f6ea1(0x20b)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a204_0x4f6ea1(0x20d),a204_0x4f6ea1(0x214),'locale',a204_0x4f6ea1(0x1f0),a204_0x4f6ea1(0x1ef),'accessKey',a204_0x4f6ea1(0x211)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x2f590c){const _0x4b4735=a204_0x4f6ea1;return[..._0x2f590c][_0x4b4735(0x20e)](',\x20');}function a204_0x4da3(_0x49a047,_0x4a752a){_0x49a047=_0x49a047-0x1ed;const _0x404e9a=a204_0x404e();let _0x4da3cb=_0x404e9a[_0x49a047];return _0x4da3cb;}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x52216d){const _0x5b63ca=a204_0x4f6ea1;return TOP_LEVEL_CONFIG_KEYS[_0x5b63ca(0x1f8)](_0x52216d);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a204_0x4f6ea1(0x214),'apiDir':a204_0x4f6ea1(0x211),'cookie':'cookie','accessKey':'accessKey','defaultFormat':'format','pageSize':'pageSize','riskLevel':'riskLevel','locale':a204_0x4f6ea1(0x213)};export function getAppProfileFlagDefs(){const _0x59a75b=a204_0x4f6ea1;return[{'name':_0x59a75b(0x214),'type':_0x59a75b(0x1fd),'description':_0x59a75b(0x206),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x59a75b(0x1fd),'description':_0x59a75b(0x1f5)},{'name':_0x59a75b(0x1ef),'type':_0x59a75b(0x1fd),'description':_0x59a75b(0x208),'hidden':!![]},{'name':'accessKey','type':_0x59a75b(0x1fd),'description':_0x59a75b(0x1f3),'hidden':!![]},{'name':'defaultFormat','type':_0x59a75b(0x1fd),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x59a75b(0x200),'type':_0x59a75b(0x1f9),'description':_0x59a75b(0x1f6)},{'name':_0x59a75b(0x20b),'type':_0x59a75b(0x1fd),'description':_0x59a75b(0x1fa),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x59a75b(0x213),'type':_0x59a75b(0x1fd),'description':_0x59a75b(0x204)}];}export function collectAppProfileOverrides(_0x301c70){const _0x2588e6={};for(const [_0x2ae48b,_0x58ffb8]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x115e6d=_0x301c70(_0x2ae48b);if(!_0x115e6d)continue;_0x2588e6[_0x58ffb8]=_0x58ffb8==='pageSize'?Number(_0x115e6d):_0x115e6d;}return _0x2588e6;}export function buildAppProfileListFields(_0x1cd7a1){const _0x29e6bf=a204_0x4f6ea1;return{'env':_0x1cd7a1['env']??null,'apiDir':_0x1cd7a1[_0x29e6bf(0x211)]??null,'hasCookie':!!_0x1cd7a1[_0x29e6bf(0x1ef)],'hasAccessKey':!!_0x1cd7a1[_0x29e6bf(0x210)],'format':_0x1cd7a1[_0x29e6bf(0x1f0)]??null,'pageSize':_0x1cd7a1[_0x29e6bf(0x200)]??null,'riskLevel':_0x1cd7a1[_0x29e6bf(0x20b)]??null,'locale':_0x1cd7a1[_0x29e6bf(0x213)]??null};}function a204_0x404e(){const _0x1ae14a=['Default\x20page\x20size','45276TOUPQK','has','number','Risk\x20level','29hqYQtI','defaultApp','string','819285JOoUYf','16388845GvFwMW','pageSize','191080ZQCjEo','keys','map','Locale','apps','Target\x20environment','trim','Auth\x20cookie','filter','98bxarUK','riskLevel','2512430DLMMiV','appcode','join','inherit','accessKey','apiDir','length','locale','env','app','27386Qevviw','1076cGNsgr','en-US','cookie','format','925qeDwNE','9DVKANQ','Access\x20key','zh-CN','API\x20directory\x20path'];a204_0x404e=function(){return _0x1ae14a;};return a204_0x404e();}export function buildAppDoctorFields(_0x3375fb,_0x11e410){const _0x527d63=a204_0x4f6ea1;return{'env':{'value':_0x3375fb['env']||_0x11e410['env'],'source':_0x3375fb['env']?_0x527d63(0x215):_0x527d63(0x20f)},'apiDir':{'value':_0x3375fb['apiDir']||_0x11e410[_0x527d63(0x211)],'source':_0x3375fb[_0x527d63(0x211)]?_0x527d63(0x215):'inherit'},'cookie':{'value':_0x3375fb[_0x527d63(0x1ef)]||_0x11e410[_0x527d63(0x1ef)],'source':_0x3375fb[_0x527d63(0x1ef)]?_0x527d63(0x215):'inherit'},'accessKey':{'value':_0x3375fb[_0x527d63(0x210)]||_0x11e410[_0x527d63(0x210)],'source':_0x3375fb[_0x527d63(0x210)]?_0x527d63(0x215):_0x527d63(0x20f)}};}export function buildCanonicalAppConfig(_0x1e4815,_0x4de29c){const _0x262fac=a204_0x4f6ea1,_0x1b80a5=_0x1e4815[_0x262fac(0x203)](_0xc6e898=>String(_0xc6e898||'')[_0x262fac(0x207)]())[_0x262fac(0x209)](Boolean);if(_0x1b80a5['length']===0x0)return{};const _0x1e4b05={};for(const _0x56c652 of _0x1b80a5){_0x1e4b05[_0x56c652]=_0x4de29c?{'appcode':_0x56c652,'env':_0x4de29c}:{'appcode':_0x56c652};}return{'apps':_0x1e4b05,'defaultApp':_0x1b80a5[0x0]};}export function buildCanonicalProjectConfig(_0x5fe24f,_0x54a20c){const _0x45a384=a204_0x4f6ea1,{appCodes:appCodes=[],env:_0x543a7d,metadata:_0x2a3b32}=_0x54a20c,_0x162cef={..._0x5fe24f,..._0x2a3b32||{}};delete _0x162cef[_0x45a384(0x20d)],delete _0x162cef[_0x45a384(0x215)];if(_0x543a7d)_0x162cef[_0x45a384(0x214)]=_0x543a7d;else!_0x162cef['env']&&(_0x162cef['env']=DEFAULT_CONFIG_VALUES[_0x45a384(0x214)]);const _0x378302=buildCanonicalAppConfig(appCodes,_0x162cef['env']);return Object[_0x45a384(0x202)](_0x378302)[_0x45a384(0x212)]>0x0&&(_0x162cef[_0x45a384(0x205)]=_0x378302[_0x45a384(0x205)],_0x162cef[_0x45a384(0x1fc)]=_0x378302['defaultApp']),_0x162cef;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':a204_0x4f6ea1(0x1f4),'zh_cn':'zh-CN','en':'en-US','en-us':'en-US','en_us':a204_0x4f6ea1(0x1ee)};export function normalizeLocale(_0x4d1722){if(!_0x4d1722)return null;return LOCALE_MAP[_0x4d1722['toLowerCase']()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x15ac27,_0x163ae0){const _0x420143=a205_0x57bb,_0x56e65f=_0x15ac27();while(!![]){try{const _0x7f8436=parseInt(_0x420143(0x118))/0x1+-parseInt(_0x420143(0x11c))/0x2+parseInt(_0x420143(0x11d))/0x3+-parseInt(_0x420143(0x11b))/0x4*(parseInt(_0x420143(0x119))/0x5)+parseInt(_0x420143(0x117))/0x6+parseInt(_0x420143(0x114))/0x7*(-parseInt(_0x420143(0x11a))/0x8)+parseInt(_0x420143(0x116))/0x9*(parseInt(_0x420143(0x115))/0xa);if(_0x7f8436===_0x163ae0)break;else _0x56e65f['push'](_0x56e65f['shift']());}catch(_0x4a133a){_0x56e65f['push'](_0x56e65f['shift']());}}}(a205_0x54bf,0x9dac2));function a205_0x54bf(){const _0x5c4b81=['345191nDcQyn','13663150ONGfER','9WavEqC','1653660JoSDEc','198467gSBHoQ','1554035vfpbUf','88PbCgDM','4ioyEzH','1258580LEKxAc','863922TTMAIi'];a205_0x54bf=function(){return _0x5c4b81;};return a205_0x54bf();}function a205_0x57bb(_0x67ea6e,_0x1987bc){_0x67ea6e=_0x67ea6e-0x114;const _0x54bfbe=a205_0x54bf();let _0x57bbd1=_0x54bfbe[_0x67ea6e];return _0x57bbd1;}export const CLI_VERSION_POLICY_URL='https://g.lovrabet.com/dist/rabetbase-cli/config/index.json';
|
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_0x48fe87=a206_0x1174;(function(_0x4e5cfe,_0x3d4fb5){const _0x2297cc=a206_0x1174,_0x1bbad6=_0x4e5cfe();while(!![]){try{const _0x25cdc6=parseInt(_0x2297cc(0x1e4))/0x1+parseInt(_0x2297cc(0x1da))/0x2+-parseInt(_0x2297cc(0x22d))/0x3+parseInt(_0x2297cc(0x251))/0x4*(parseInt(_0x2297cc(0x216))/0x5)+-parseInt(_0x2297cc(0x254))/0x6+parseInt(_0x2297cc(0x237))/0x7*(-parseInt(_0x2297cc(0x243))/0x8)+parseInt(_0x2297cc(0x232))/0x9;if(_0x25cdc6===_0x3d4fb5)break;else _0x1bbad6['push'](_0x1bbad6['shift']());}catch(_0x389a39){_0x1bbad6['push'](_0x1bbad6['shift']());}}}(a206_0x1dd8,0x69eab));export const CLI_BIN_NAME=a206_0x48fe87(0x1dc);export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a206_0x48fe87(0x1e7),'meowKey':a206_0x48fe87(0x1e7),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x231),'hint':a206_0x48fe87(0x203)},{'name':a206_0x48fe87(0x24f),'meowKey':'app','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1e0),'hint':a206_0x48fe87(0x1db)},{'name':a206_0x48fe87(0x1f6),'meowKey':a206_0x48fe87(0x1f6),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x200),'hint':'production\x20|\x20daily'},{'name':a206_0x48fe87(0x23f),'meowKey':a206_0x48fe87(0x23f),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1f5),'hint':a206_0x48fe87(0x21c)},{'name':'jq','meowKey':'jq','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x21a),'hint':a206_0x48fe87(0x202)},{'name':a206_0x48fe87(0x224),'meowKey':'dryRun','type':a206_0x48fe87(0x1ec),'description':'Preview\x20operation\x20without\x20executing'},{'name':a206_0x48fe87(0x20e),'meowKey':a206_0x48fe87(0x20e),'type':a206_0x48fe87(0x1ec),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a206_0x48fe87(0x1f8),'meowKey':a206_0x48fe87(0x223),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x1ef)},{'name':a206_0x48fe87(0x1f9),'meowKey':a206_0x48fe87(0x1f9),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x220)},{'name':a206_0x48fe87(0x238),'meowKey':a206_0x48fe87(0x238),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x1d6)},{'name':'ci','meowKey':'ci','type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x208),'hidden':!![]},{'name':'help','meowKey':a206_0x48fe87(0x1f7),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x222)},{'name':'name','meowKey':a206_0x48fe87(0x249),'type':'string','description':a206_0x48fe87(0x20f),'hidden':!![]},{'name':a206_0x48fe87(0x1d7),'meowKey':a206_0x48fe87(0x1d7),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x24d),'hidden':!![]},{'name':a206_0x48fe87(0x226),'meowKey':a206_0x48fe87(0x226),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x20c),'hidden':!![]},{'name':'watch','meowKey':a206_0x48fe87(0x1e8),'type':'boolean','description':a206_0x48fe87(0x210),'hidden':!![]},{'name':a206_0x48fe87(0x201),'meowKey':a206_0x48fe87(0x201),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1fd),'hidden':!![]},{'name':a206_0x48fe87(0x242),'meowKey':a206_0x48fe87(0x242),'type':'string','description':a206_0x48fe87(0x24a),'hidden':!![]},{'name':a206_0x48fe87(0x1de),'meowKey':a206_0x48fe87(0x1de),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x21d),'hidden':!![]},{'name':a206_0x48fe87(0x250),'meowKey':'all','type':a206_0x48fe87(0x1ec),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a206_0x48fe87(0x253),'meowKey':a206_0x48fe87(0x1d5),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x24e),'hidden':!![]},{'name':'id','meowKey':'id','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1fb),'hidden':!![]},{'name':'type','meowKey':a206_0x48fe87(0x1fe),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1e1),'hidden':!![]},{'name':a206_0x48fe87(0x228),'meowKey':'file','type':a206_0x48fe87(0x22c),'description':'File\x20path','hidden':!![]},{'name':'sqlcode','meowKey':a206_0x48fe87(0x255),'type':'string','description':a206_0x48fe87(0x1d4),'hidden':!![]},{'name':a206_0x48fe87(0x1ea),'meowKey':a206_0x48fe87(0x22f),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x233),'hidden':!![]},{'name':a206_0x48fe87(0x234),'meowKey':a206_0x48fe87(0x234),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x233),'hidden':!![]},{'name':a206_0x48fe87(0x215),'meowKey':a206_0x48fe87(0x212),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1fc),'hidden':!![]},{'name':a206_0x48fe87(0x225),'meowKey':a206_0x48fe87(0x225),'type':'string','description':a206_0x48fe87(0x1fc),'hidden':!![]},{'name':'description','meowKey':'description','type':'string','description':a206_0x48fe87(0x230),'hidden':!![]},{'name':a206_0x48fe87(0x20b),'meowKey':a206_0x48fe87(0x1f3),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1ff),'hidden':!![]},{'name':a206_0x48fe87(0x219),'meowKey':'page','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x22a),'hidden':!![]},{'name':'pagesize','meowKey':a206_0x48fe87(0x1e2),'type':a206_0x48fe87(0x22c),'description':'Page\x20size','hidden':!![]},{'name':'keyword','meowKey':a206_0x48fe87(0x246),'type':'string','description':a206_0x48fe87(0x1ed),'hidden':!![]},{'name':'code','meowKey':a206_0x48fe87(0x248),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x23d),'hidden':!![]},{'name':a206_0x48fe87(0x1e9),'meowKey':a206_0x48fe87(0x1e9),'type':'string','description':a206_0x48fe87(0x23b),'hidden':!![]},{'name':'schemas','meowKey':a206_0x48fe87(0x20a),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x23a),'hidden':!![]},{'name':'operation','meowKey':a206_0x48fe87(0x213),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x227),'hidden':!![]},{'name':a206_0x48fe87(0x217),'meowKey':'target','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1f4),'hidden':!![]},{'name':a206_0x48fe87(0x23c),'meowKey':a206_0x48fe87(0x239),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x241),'hidden':!![]},{'name':'key','meowKey':'key','type':a206_0x48fe87(0x22c),'description':'Config\x20key','hidden':!![]},{'name':'value','meowKey':a206_0x48fe87(0x22b),'type':'string','description':a206_0x48fe87(0x1dd),'hidden':!![]},{'name':a206_0x48fe87(0x1d8),'meowKey':a206_0x48fe87(0x1d8),'type':a206_0x48fe87(0x22c),'description':'Tags','hidden':!![]},{'name':a206_0x48fe87(0x236),'meowKey':a206_0x48fe87(0x236),'type':'boolean','description':a206_0x48fe87(0x1d9),'hidden':!![]},{'name':a206_0x48fe87(0x20d),'meowKey':a206_0x48fe87(0x207),'type':'string','description':a206_0x48fe87(0x1e5),'hidden':!![]},{'name':'reveal','meowKey':a206_0x48fe87(0x1eb),'type':'boolean','description':a206_0x48fe87(0x244),'hidden':!![]},{'name':a206_0x48fe87(0x211),'meowKey':'force','type':'boolean','description':a206_0x48fe87(0x1e6),'hidden':!![]},{'name':a206_0x48fe87(0x21f),'meowKey':a206_0x48fe87(0x21f),'type':a206_0x48fe87(0x1ec),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':'remote','meowKey':'remote','type':'boolean','description':a206_0x48fe87(0x21e),'hidden':!![]},{'name':a206_0x48fe87(0x1fa),'meowKey':a206_0x48fe87(0x1fa),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x209),'hidden':!![]},{'name':a206_0x48fe87(0x204),'meowKey':a206_0x48fe87(0x1ee),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x206),'hidden':!![]},{'name':a206_0x48fe87(0x21b),'meowKey':'label','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x23e),'hidden':!![]},{'name':'parent-id','meowKey':a206_0x48fe87(0x22e),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x229),'hidden':!![]},{'name':a206_0x48fe87(0x252),'meowKey':'sort','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x218),'hidden':!![]},{'name':a206_0x48fe87(0x247),'meowKey':a206_0x48fe87(0x24b),'type':'string','description':a206_0x48fe87(0x235),'hidden':!![]},{'name':'expect-path','meowKey':a206_0x48fe87(0x205),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1df),'hidden':!![]},{'name':a206_0x48fe87(0x24c),'meowKey':'expectedChildrenCount','type':a206_0x48fe87(0x22c),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':'menu-ids','meowKey':a206_0x48fe87(0x240),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x221),'hidden':!![]},{'name':a206_0x48fe87(0x1f2),'meowKey':'taskId','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1f1),'hidden':!![]},{'name':a206_0x48fe87(0x245),'meowKey':a206_0x48fe87(0x1f0),'type':'string','description':a206_0x48fe87(0x227),'hidden':!![]},{'name':a206_0x48fe87(0x214),'meowKey':'functionNode','type':a206_0x48fe87(0x22c),'description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a206_0x48fe87(0x1e7),a206_0x48fe87(0x24f),a206_0x48fe87(0x1f6),a206_0x48fe87(0x23f),'jq',a206_0x48fe87(0x224),a206_0x48fe87(0x20e),a206_0x48fe87(0x1f8),'ci']);function a206_0x1174(_0x4ca893,_0x143076){_0x4ca893=_0x4ca893-0x1d4;const _0x1dd899=a206_0x1dd8();let _0x1174e8=_0x1dd899[_0x4ca893];return _0x1174e8;}function a206_0x1dd8(){const _0x18507c=['expected-count','expectPath','Expected\x20affected\x20count','fromEnv','Alias\x20for\x20--non-interactive','Verbose\x20output','schemas','description-file','Clear','from-env','yes','Name','Watch\x20mode','force','dbId','operation','function-node','db-id','641440VJdTMa','target','Menu\x20sort\x20value','page','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','label','json\x20|\x20pretty\x20|\x20compress','Dataset\x20code','Use\x20remote','confirm','Use\x20global\x20config\x20scope','Comma-separated\x20menu\x20IDs','Show\x20help','nonInteractive','dry-run','dbid','clear','Operation\x20type','file','Parent\x20menu\x20id','Page\x20number','value','string','1624704VPFhOR','parentId','sqlName','Description','Override\x20appcode','940896vzcFFW','SQL\x20name','sqlname','Expected\x20current\x20parent\x20menu\x20id','stdin','14LedBnX','project','skipImports','Schemas','SQL\x20string','skip-imports','Code\x20filter','Menu\x20label','format','menuIds','Skip\x20import\x20generation','params','447096UDbZCh','Reveal\x20sensitive\x20value','operation-type','keyword','expect-parent-id','code','name','JSON\x20params','expectParentId','expected-children-count','Title','Enable\x20BFF\x20save','app','all','12uFKeJd','sort','enable-bff-save','3368850XUmKWA','sqlcode','SQL\x20code','enableBffSave','Use\x20project\x20config\x20scope','title','tags','Read\x20value\x20from\x20stdin','741278aGWgsi','<name>','rabetbase','Config\x20value','datasetcode','Expected\x20current\x20menu\x20path','Select\x20app\x20profile\x20by\x20name','Type\x20filter','pagesize','meowKey','788605SvBTYy','Read\x20value\x20from\x20environment\x20variable','Force\x20overwrite','appcode','watch','sql','sql-name','reveal','boolean','Keyword\x20filter','expectedCount','Force\x20non-interactive\x20mode\x20(CI)','operationType','Asynchronous\x20task\x20ID','task-id','descriptionFile','Target\x20path','Output\x20format','env','help','non-interactive','global','verbose','Record\x20ID','DB\x20ID','Output\x20path','type','Description\x20file','Environment','output','<expr>','<code>'];a206_0x1dd8=function(){return _0x18507c;};return a206_0x1dd8();}export function buildMeowFlags(){const _0x1a26d0=a206_0x48fe87;return Object['fromEntries'](GLOBAL_FLAGS['map'](_0x2e1f16=>[_0x2e1f16[_0x1a26d0(0x1e3)],{'type':_0x2e1f16[_0x1a26d0(0x1fe)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a207_0x3f8e81=a207_0x13b6;function a207_0x13b6(_0xec3587,_0x3cc591){_0xec3587=_0xec3587-0x139;const _0x5ed4f6=a207_0x5ed4();let _0x13b67a=_0x5ed4f6[_0xec3587];return _0x13b67a;}function a207_0x5ed4(){const _0x179bd8=['970128FJCXCu','14253970xbXfro','776yHwOgh','4602608pEKBvE','13206SuSlXL','11970396UBvzmu','en-US','1NYFbZR','compress','high-risk-write','14wCOtsH','6ZmkOLT','2218562mcIxlP','11Jtzyns','710755FLltsw','260KPhFBc'];a207_0x5ed4=function(){return _0x179bd8;};return a207_0x5ed4();}(function(_0x21f3ae,_0x5b9b5f){const _0x32be6a=a207_0x13b6,_0x1b0aed=_0x21f3ae();while(!![]){try{const _0x287dba=-parseInt(_0x32be6a(0x13d))/0x1*(parseInt(_0x32be6a(0x142))/0x2)+parseInt(_0x32be6a(0x13a))/0x3*(-parseInt(_0x32be6a(0x148))/0x4)+-parseInt(_0x32be6a(0x144))/0x5*(parseInt(_0x32be6a(0x141))/0x6)+-parseInt(_0x32be6a(0x140))/0x7*(-parseInt(_0x32be6a(0x139))/0x8)+-parseInt(_0x32be6a(0x13b))/0x9+-parseInt(_0x32be6a(0x147))/0xa*(-parseInt(_0x32be6a(0x143))/0xb)+-parseInt(_0x32be6a(0x146))/0xc*(-parseInt(_0x32be6a(0x145))/0xd);if(_0x287dba===_0x5b9b5f)break;else _0x1b0aed['push'](_0x1b0aed['shift']());}catch(_0x4fbed8){_0x1b0aed['push'](_0x1b0aed['shift']());}}}(a207_0x5ed4,0xb8ed9));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':'production','format':a207_0x3f8e81(0x13e),'locale':a207_0x3f8e81(0x13c),'riskLevel':a207_0x3f8e81(0x13f),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a207_0x3f8e81(0x13e);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a208_0x4b4262=a208_0xf135;(function(_0x214949,_0x1e6487){const _0x5364bb=a208_0xf135,_0x4924c4=_0x214949();while(!![]){try{const _0x13f178=-parseInt(_0x5364bb(0x1d9))/0x1+parseInt(_0x5364bb(0x1cb))/0x2*(-parseInt(_0x5364bb(0x1d1))/0x3)+-parseInt(_0x5364bb(0x1d8))/0x4*(parseInt(_0x5364bb(0x1c9))/0x5)+parseInt(_0x5364bb(0x1d0))/0x6*(-parseInt(_0x5364bb(0x1d6))/0x7)+-parseInt(_0x5364bb(0x1ca))/0x8*(-parseInt(_0x5364bb(0x1dd))/0x9)+parseInt(_0x5364bb(0x1de))/0xa*(-parseInt(_0x5364bb(0x1ce))/0xb)+parseInt(_0x5364bb(0x1d2))/0xc*(parseInt(_0x5364bb(0x1d3))/0xd);if(_0x13f178===_0x1e6487)break;else _0x4924c4['push'](_0x4924c4['shift']());}catch(_0x42f781){_0x4924c4['push'](_0x4924c4['shift']());}}}(a208_0x51aa,0x8fe4e));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;function a208_0x51aa(){const _0x755987=['/app/','runtimeDomain','https://api.lovrabet.com','531OXixHO','470990aultYe','https://runtime.lovrabet.com','trim','/web-app/app/','2535015oepHIJ','57032yNPUFd','46QHtfWv','apiDomain','https://user.lovrabet.com','77AnkOQz','https://daily.lovrabet.com','984PWVjaZ','39429EwcEgF','13476HbwmxV','30979wvfExz','userDomain','https://daily-runtime.lovrabet.com','41909EiykDN','https://user-daily.lovrabet.com','4JiplaG','386477cakXLA'];a208_0x51aa=function(){return _0x755987;};return a208_0x51aa();}export function initDomains(_0x12369d){const _0x66ada9=a208_0xf135;customApiDomain=_0x12369d?.[_0x66ada9(0x1cc)],customUserDomain=_0x12369d?.[_0x66ada9(0x1d4)],customRuntimeDomain=_0x12369d?.[_0x66ada9(0x1db)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a208_0x4b4262(0x1cd):a208_0x4b4262(0x1d7));function a208_0xf135(_0x1b6994,_0x581462){_0x1b6994=_0x1b6994-0x1c7;const _0x51aa75=a208_0x51aa();let _0xf13579=_0x51aa75[_0x1b6994];return _0xf13579;}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a208_0x4b4262(0x1dc):'https://daily-api.lovrabet.com');export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a208_0x4b4262(0x1df):a208_0x4b4262(0x1d5));export const getAppDomain=()=>isProduction(getEnv())?'https://app.lovrabet.com':a208_0x4b4262(0x1cf);export const getAppBaseUrl=_0x1e70c1=>{const _0x3eaddc=a208_0x4b4262,_0x1e6b27=encodeURIComponent(_0x1e70c1[_0x3eaddc(0x1c7)]());return isProduction(getEnv())?getAppDomain()+_0x3eaddc(0x1da)+_0x1e6b27:getAppDomain()+_0x3eaddc(0x1c8)+_0x1e6b27;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a209_0x3bd4(){const _0x2bc075=['4WxddSa','dev','536aMYFcj','production','daily','4501756RZBUJP','6730932ipMRVE','online','10972056GcMnjN','10UzBpMl','4175712aqvuxZ','63095kjsQji','48391875NDcLde','848143rahMBh'];a209_0x3bd4=function(){return _0x2bc075;};return a209_0x3bd4();}function a209_0xbefe(_0x12617f,_0x5e176a){_0x12617f=_0x12617f-0x102;const _0x3bd4bc=a209_0x3bd4();let _0xbefe48=_0x3bd4bc[_0x12617f];return _0xbefe48;}const a209_0x356b4e=a209_0xbefe;(function(_0xbe622,_0xfd30e1){const _0x15b395=a209_0xbefe,_0x5a6045=_0xbe622();while(!![]){try{const _0x23aaac=-parseInt(_0x15b395(0x107))/0x1*(parseInt(_0x15b395(0x108))/0x2)+-parseInt(_0x15b395(0x104))/0x3+parseInt(_0x15b395(0x10a))/0x4*(-parseInt(_0x15b395(0x105))/0x5)+parseInt(_0x15b395(0x10e))/0x6+parseInt(_0x15b395(0x10d))/0x7+-parseInt(_0x15b395(0x102))/0x8+-parseInt(_0x15b395(0x106))/0x9*(-parseInt(_0x15b395(0x103))/0xa);if(_0x23aaac===_0xfd30e1)break;else _0x5a6045['push'](_0x5a6045['shift']());}catch(_0x17d450){_0x5a6045['push'](_0x5a6045['shift']());}}}(a209_0x3bd4,0xf1fba));export const RABETBASE_ENV_VALUES=[a209_0x356b4e(0x10b),a209_0x356b4e(0x10c)];export function normalizeEnv(_0x43d223){const _0x31cc16=a209_0x356b4e;return _0x43d223===_0x31cc16(0x10f)?_0x31cc16(0x10b):_0x43d223;}export function isProduction(_0x2b8b62){return normalizeEnv(_0x2b8b62)==='production';}export function isDaily(_0x30554f){const _0x2c4139=a209_0x356b4e;return normalizeEnv(_0x30554f)===_0x2c4139(0x10c);}export function isDev(_0x42f39d){const _0x5d2258=a209_0x356b4e,_0x54c4c2=normalizeEnv(_0x42f39d);return _0x54c4c2==='development'||_0x54c4c2===_0x5d2258(0x109);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||'production');export function getEnv(){return env;}export function initEnv(_0x3189c1){env=normalizeEnv(_0x3189c1);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a210_0x35db91=a210_0x96f2;function a210_0x96f2(_0x4af2d1,_0x5ab0f3){_0x4af2d1=_0x4af2d1-0x114;const _0x513e18=a210_0x513e();let _0x96f286=_0x513e18[_0x4af2d1];return _0x96f286;}function a210_0x513e(){const _0x184bdc=['8DWFGkL','4674PloZBG','compress','4tRcmmw','18qpApDt','2593602YktOgG','58902szxUoX','json','1379357vtEjcU','432751QyRkQj','1013700nPQrpK','252aAJHkI','4915285CLiNSX','pretty','20iKYqjQ'];a210_0x513e=function(){return _0x184bdc;};return a210_0x513e();}(function(_0x1e020a,_0x4c9ba2){const _0x391335=a210_0x96f2,_0x1d109f=_0x1e020a();while(!![]){try{const _0x54340d=-parseInt(_0x391335(0x116))/0x1+-parseInt(_0x391335(0x114))/0x2*(parseInt(_0x391335(0x120))/0x3)+-parseInt(_0x391335(0x122))/0x4*(-parseInt(_0x391335(0x11c))/0x5)+-parseInt(_0x391335(0x11a))/0x6+-parseInt(_0x391335(0x118))/0x7*(parseInt(_0x391335(0x11f))/0x8)+parseInt(_0x391335(0x115))/0x9*(-parseInt(_0x391335(0x11e))/0xa)+parseInt(_0x391335(0x119))/0xb*(parseInt(_0x391335(0x11b))/0xc);if(_0x54340d===_0x4c9ba2)break;else _0x1d109f['push'](_0x1d109f['shift']());}catch(_0x3c442d){_0x1d109f['push'](_0x1d109f['shift']());}}}(a210_0x513e,0xc1d51));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a210_0x35db91(0x117),a210_0x35db91(0x11d),a210_0x35db91(0x121)];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a211_0xaa05(_0x32ca32,_0x171e18){_0x32ca32=_0x32ca32-0x182;const _0x4fa6a6=a211_0x4fa6();let _0xaa050e=_0x4fa6a6[_0x32ca32];return _0xaa050e;}(function(_0x5d6c79,_0x3c89f4){const _0x1b8988=a211_0xaa05,_0x8bf578=_0x5d6c79();while(!![]){try{const _0xea5f3b=parseInt(_0x1b8988(0x186))/0x1*(-parseInt(_0x1b8988(0x188))/0x2)+-parseInt(_0x1b8988(0x182))/0x3+parseInt(_0x1b8988(0x18a))/0x4+parseInt(_0x1b8988(0x184))/0x5+parseInt(_0x1b8988(0x183))/0x6*(-parseInt(_0x1b8988(0x187))/0x7)+-parseInt(_0x1b8988(0x18b))/0x8*(-parseInt(_0x1b8988(0x185))/0x9)+-parseInt(_0x1b8988(0x189))/0xa;if(_0xea5f3b===_0x3c89f4)break;else _0x8bf578['push'](_0x8bf578['shift']());}catch(_0x1f3559){_0x8bf578['push'](_0x8bf578['shift']());}}}(a211_0x4fa6,0xe95b6));export const DEFAULT_API_DIR='./src/api';function a211_0x4fa6(){const _0x19794b=['66843ENavbO','8HmIEBZ','7mHLljp','4538shQskK','12812850UXSsJG','7337944RDKuhp','456ojwkvn','2058174uETuPi','6830754kCFUBV','9109795WjOhmW'];a211_0x4fa6=function(){return _0x19794b;};return a211_0x4fa6();}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a212_0x4cdf9a=a212_0x3480;function a212_0x3480(_0xd9aa17,_0x3066e2){_0xd9aa17=_0xd9aa17-0xd7;const _0x42031e=a212_0x4203();let _0x3480c6=_0x42031e[_0xd9aa17];return _0x3480c6;}function a212_0x4203(){const _0xecfe73=['2915151HdrvJR','380816FpHZRh','4879284TmKJgV','745bmyMTj','603eWfRxH','16JVlbCy','8787702qBdZQJ','read','1532PrYMig','high-risk-write','153910UqXryg','382205hqRknb'];a212_0x4203=function(){return _0xecfe73;};return a212_0x4203();}(function(_0x493363,_0x3a380d){const _0x2eaf5a=a212_0x3480,_0x4f54be=_0x493363();while(!![]){try{const _0x3a55cd=parseInt(_0x2eaf5a(0xd8))/0x1*(parseInt(_0x2eaf5a(0xdd))/0x2)+-parseInt(_0x2eaf5a(0xe1))/0x3+parseInt(_0x2eaf5a(0xda))/0x4*(-parseInt(_0x2eaf5a(0xe0))/0x5)+-parseInt(_0x2eaf5a(0xd7))/0x6+parseInt(_0x2eaf5a(0xdb))/0x7+parseInt(_0x2eaf5a(0xe2))/0x8+parseInt(_0x2eaf5a(0xd9))/0x9*(parseInt(_0x2eaf5a(0xdf))/0xa);if(_0x3a55cd===_0x3a380d)break;else _0x4f54be['push'](_0x4f54be['shift']());}catch(_0x342679){_0x4f54be['push'](_0x4f54be['shift']());}}}(a212_0x4203,0xc6c50));export const RISK_LEVEL_VALUES=[a212_0x4cdf9a(0xdc),'write',a212_0x4cdf9a(0xde)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x226338,_0x4f87e6){const _0x16c2b6=a213_0x574a,_0x1b775f=_0x226338();while(!![]){try{const _0x2c1912=-parseInt(_0x16c2b6(0x214))/0x1*(parseInt(_0x16c2b6(0x21b))/0x2)+parseInt(_0x16c2b6(0x21a))/0x3*(parseInt(_0x16c2b6(0x1ff))/0x4)+-parseInt(_0x16c2b6(0x200))/0x5+parseInt(_0x16c2b6(0x1fd))/0x6+-parseInt(_0x16c2b6(0x1ef))/0x7*(-parseInt(_0x16c2b6(0x1f6))/0x8)+parseInt(_0x16c2b6(0x1fa))/0x9*(parseInt(_0x16c2b6(0x203))/0xa)+-parseInt(_0x16c2b6(0x1f4))/0xb;if(_0x2c1912===_0x4f87e6)break;else _0x1b775f['push'](_0x1b775f['shift']());}catch(_0x1b1937){_0x1b775f['push'](_0x1b775f['shift']());}}}(a213_0x479c,0xe7ff8));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x63cb76){const _0x47ae22=a213_0x574a;return typeof _0x63cb76===_0x47ae22(0x212)&&_0x63cb76[_0x47ae22(0x20e)]()?_0x63cb76['trim']():undefined;}function appProfiles(_0x1787fe){const _0x30b30c=a213_0x574a;return _0x1787fe['apps']&&typeof _0x1787fe[_0x30b30c(0x208)]===_0x30b30c(0x207)?_0x1787fe[_0x30b30c(0x208)]:{};}function resolveDefaultAppName(_0x46a151){const _0x4e9933=a213_0x574a,_0x35e536=stringConfigValue(_0x46a151[_0x4e9933(0x1f5)]);if(_0x35e536)return _0x35e536;return Object['keys'](appProfiles(_0x46a151))[0x0];}function resolveTopLevelAppCode(_0x88bd8b){const _0x42e755=a213_0x574a;return stringConfigValue(_0x88bd8b['appcode'])||stringConfigValue(_0x88bd8b[_0x42e755(0x20d)]);}function normalizeRiskCeiling(_0x2bb383){const _0x21f3b9=a213_0x574a;if(_0x2bb383===undefined||_0x2bb383===null)return undefined;if(_0x2bb383==='read'||_0x2bb383===_0x21f3b9(0x20a)||_0x2bb383===_0x21f3b9(0x1f2))return _0x2bb383;return'read';}function resolveRiskCeiling(..._0x1b6d78){const _0x44a539=a213_0x574a;let _0x21452f=DEFAULT_CONFIG_VALUES[_0x44a539(0x205)];for(const _0x3984c1 of _0x1b6d78){const _0x4c9576=normalizeRiskCeiling(_0x3984c1);_0x4c9576&&riskLevelOrder(_0x4c9576)<riskLevelOrder(_0x21452f)&&(_0x21452f=_0x4c9576);}return _0x21452f;}function a213_0x479c(){const _0x1901a3=['FORMAT','locale','high-risk-write','globalConfig','28548740kwVrNH','defaultApp','12123512rgFtbN','env','call','ENV','211293wfPmkD','maxRisk','pageSize','11255838taNdLG','RISK_LEVEL','4odQyFK','7066705FiETFO','apiDir','prototype','660EAyYZw','PAGE_SIZE','riskLevel','find','object','apps','COOKIE','write','VERBOSE','cookie','app','trim','format','true','accessKey','string','hasOwnProperty','14VVbhrg','appcode','inherit','entries','APP','projectConfig','2064147petJxa','95714LUELev','keys','daily','MAX_RISK','production','7dCHZNz'];a213_0x479c=function(){return _0x1901a3;};return a213_0x479c();}function a213_0x574a(_0x31b24f,_0x1867c9){_0x31b24f=_0x31b24f-0x1ec;const _0x479cd0=a213_0x479c();let _0x574aa0=_0x479cd0[_0x31b24f];return _0x574aa0;}function configuredRiskCeilings(_0x28b1cb){const _0x5605cb=a213_0x574a;return[...Object[_0x5605cb(0x202)][_0x5605cb(0x213)][_0x5605cb(0x1f8)](_0x28b1cb,'maxRisk')?[_0x28b1cb[_0x5605cb(0x1fb)]]:[],...Object['prototype']['hasOwnProperty'][_0x5605cb(0x1f8)](_0x28b1cb,'riskLevel')?[_0x28b1cb[_0x5605cb(0x205)]]:[]];}export function resolveAppConfig({raw:_0x23a1ef,flags:_0x54a45e,layers:_0x729743,readEnv:_0x39939b}){const _0x56d013=a213_0x574a,_0x5a8dbd=_0x729743?.[_0x56d013(0x219)]??{},_0x1cb248=_0x729743?.[_0x56d013(0x1f3)]??{},_0x86d10b=Object[_0x56d013(0x21c)](_0x5a8dbd)['length']>0x0,_0x44ffd1=!_0x86d10b||_0x5a8dbd[_0x56d013(0x216)]===!![],_0x5b4083=_0x86d10b?resolveDefaultAppName(_0x5a8dbd):undefined,_0x405bba=_0x44ffd1?resolveDefaultAppName(_0x1cb248):undefined,_0x5e2690=stringConfigValue(_0x54a45e[_0x56d013(0x20d)]),_0x17b6d6=_0x39939b(_0x56d013(0x218)),_0x64bd73={};if(_0x23a1ef[_0x56d013(0x208)]&&typeof _0x23a1ef[_0x56d013(0x208)]===_0x56d013(0x207))for(const [_0x775204,_0x18f5cc]of Object['entries'](_0x23a1ef[_0x56d013(0x208)])){_0x18f5cc&&typeof _0x18f5cc===_0x56d013(0x207)&&_0x18f5cc['appcode']&&(_0x64bd73[_0x775204]=_0x18f5cc);}const _0x4cf593=_0x23a1ef['defaultApp']||undefined,_0x1fee01=Object['keys'](_0x64bd73)['length']>0x0,_0x4ae0f3=_0x5e2690||_0x5b4083||_0x17b6d6||_0x405bba||_0x4cf593||undefined,_0x552d81=stringConfigValue(_0x54a45e[_0x56d013(0x215)]),_0xe02ee7=_0x552d81?Object[_0x56d013(0x217)](_0x64bd73)[_0x56d013(0x206)](([,_0x5312e8])=>_0x5312e8?.['appcode']===_0x552d81):undefined,_0x187992=_0xe02ee7?.[0x0],_0x47421d=_0xe02ee7?.[0x1],_0x54861c=_0x552d81?_0x187992:_0x4ae0f3;let _0x430900=_0x54861c&&_0x64bd73[_0x54861c]?_0x64bd73[_0x54861c]:undefined;_0x552d81&&_0x47421d&&(_0x430900=_0x47421d);const _0x5ecfdc=_0x552d81?_0x47421d??_0x430900:_0x430900,_0x10d51a=!_0x5e2690&&!_0x5b4083&&_0x17b6d6&&_0x54861c===_0x17b6d6,_0x3079e7=_0x5e2690||(_0x10d51a?_0x17b6d6:undefined)||(_0x552d81?_0x187992:undefined),_0xfbbceb=_0x5ecfdc?.[_0x56d013(0x215)],_0x4386d4=_0x86d10b?resolveTopLevelAppCode(_0x5a8dbd):undefined,_0x1ea0a7=_0x44ffd1?resolveTopLevelAppCode(_0x1cb248):undefined,_0x22a8d5=_0x5e2690||_0x5b4083?_0xfbbceb:undefined,_0x1617fe=!_0x5e2690&&!_0x5b4083?_0xfbbceb:undefined,_0x42e066=_0x552d81||_0x22a8d5||_0x4386d4||_0x1617fe||_0x1ea0a7||undefined,_0x45decf=_0x86d10b?stringConfigValue(_0x5a8dbd[_0x56d013(0x1f7)]):undefined,_0x2403b5=_0x44ffd1?stringConfigValue(_0x1cb248[_0x56d013(0x1f7)]):undefined,_0x105d3a=_0x54a45e['env']||_0x5ecfdc?.['env']||_0x45decf||_0x39939b(_0x56d013(0x1f9))||_0x2403b5||_0x23a1ef['env']||DEFAULT_CONFIG_VALUES[_0x56d013(0x1f7)],_0x2e699b=_0x5ecfdc?.[_0x56d013(0x1f1)]||_0x23a1ef[_0x56d013(0x1f1)]||DEFAULT_CONFIG_VALUES[_0x56d013(0x1f1)],_0x517904=_0x39939b(_0x56d013(0x209))||_0x5ecfdc?.['cookie']||_0x23a1ef[_0x56d013(0x20c)]||undefined,_0x3f572a=_0x39939b('ACCESS_KEY')||_0x5ecfdc?.[_0x56d013(0x211)]||_0x23a1ef[_0x56d013(0x211)]||undefined,_0x58552b=_0x54a45e[_0x56d013(0x20f)]||_0x39939b(_0x56d013(0x1f0))||_0x5ecfdc?.['format']||_0x23a1ef[_0x56d013(0x20f)],_0x56c74a=normalizeLegacyOutputFormat(_0x58552b),_0x547a87=_0x39939b(_0x56d013(0x204))||_0x5ecfdc?.[_0x56d013(0x1fc)]||_0x23a1ef[_0x56d013(0x1fc)],_0x59f93f=_0x547a87?Number(_0x547a87)||undefined:undefined,_0x2404d2=_0x729743?[...configuredRiskCeilings(_0x729743['globalConfig']),...configuredRiskCeilings(_0x729743[_0x56d013(0x219)])]:configuredRiskCeilings(_0x23a1ef),_0x22e5af=resolveRiskCeiling(..._0x2404d2,_0x5ecfdc?.['riskLevel'],_0x39939b(_0x56d013(0x1fe)),_0x39939b(_0x56d013(0x1ed))),_0x55748d=_0x39939b(_0x56d013(0x20b)),_0x405e8e=_0x55748d==='1'||_0x55748d===_0x56d013(0x210),_0x47400c=_0x5ecfdc?.[_0x56d013(0x201)]||_0x23a1ef[_0x56d013(0x201)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x463250=isDaily(normalizeEnv(String(_0x105d3a)))?_0x56d013(0x1ec):_0x56d013(0x1ee);return{'appCode':typeof _0x42e066===_0x56d013(0x212)&&_0x42e066[_0x56d013(0x20e)]()?_0x42e066['trim']():undefined,'env':_0x463250,'locale':_0x2e699b,'cookie':_0x517904,'accessKey':_0x3f572a,'format':_0x56c74a,'pageSize':_0x59f93f,'riskLevel':_0x22e5af,'verbose':_0x405e8e,'apiDir':_0x47400c,'apps':_0x64bd73,'defaultApp':_0x4cf593,'currentApp':_0x1fee01?_0x54861c:undefined,'explicitAppName':_0x3079e7};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xf3bbd,_0x59c772){const _0x3e5d8c=a214_0x366e,_0x7a552d=_0xf3bbd();while(!![]){try{const _0x31e5b5=parseInt(_0x3e5d8c(0x12e))/0x1*(parseInt(_0x3e5d8c(0x12b))/0x2)+parseInt(_0x3e5d8c(0x127))/0x3+parseInt(_0x3e5d8c(0x128))/0x4*(parseInt(_0x3e5d8c(0x12d))/0x5)+-parseInt(_0x3e5d8c(0x12a))/0x6+parseInt(_0x3e5d8c(0x129))/0x7*(parseInt(_0x3e5d8c(0x126))/0x8)+parseInt(_0x3e5d8c(0x12c))/0x9+parseInt(_0x3e5d8c(0x130))/0xa;if(_0x31e5b5===_0x59c772)break;else _0x7a552d['push'](_0x7a552d['shift']());}catch(_0x73363b){_0x7a552d['push'](_0x7a552d['shift']());}}}(a214_0x48aa,0x49d35));import{getIsSessionValid}from'../auth/is-session-valid.js';function a214_0x48aa(){const _0x12d30c=['14gYUrsB','3539766XnsSEq','697122llUJgP','351405wPkNii','5ufhXRC','1DvwWUY','authRequired','2083720qtVAgP','49232oNYyEH','475449CeqKrO','502324lslCYx'];a214_0x48aa=function(){return _0x12d30c;};return a214_0x48aa();}function a214_0x366e(_0x398114,_0x5d9080){_0x398114=_0x398114-0x126;const _0x48aaec=a214_0x48aa();let _0x366ea9=_0x48aaec[_0x398114];return _0x366ea9;}import{CliErrors}from'../errors.js';export async function buildAuth(_0x1631cf){const {getCookie:_0x82086b}=await import('../auth/get-cookie.js'),_0x57d8af=_0x1631cf['cookie']||_0x82086b(),_0x2bf673=_0x57d8af?await getIsSessionValid():![];return{'cookie':_0x57d8af,'isLoggedIn':_0x2bf673,async 'getOrLogin'(){const _0x14de19=a214_0x366e;if(_0x57d8af&&_0x2bf673)return _0x57d8af;throw CliErrors[_0x14de19(0x12f)]();}};}
|
|
@@ -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_0x41aea3=a215_0xa5fc;(function(_0x4a7746,_0x475ca9){const _0x175328=a215_0xa5fc,_0x3c0a9d=_0x4a7746();while(!![]){try{const _0x279dd5=-parseInt(_0x175328(0x1f7))/0x1+-parseInt(_0x175328(0x1f9))/0x2+parseInt(_0x175328(0x1fc))/0x3*(-parseInt(_0x175328(0x1dd))/0x4)+-parseInt(_0x175328(0x1dc))/0x5*(parseInt(_0x175328(0x1df))/0x6)+parseInt(_0x175328(0x1e1))/0x7+-parseInt(_0x175328(0x1f0))/0x8+-parseInt(_0x175328(0x1d9))/0x9*(-parseInt(_0x175328(0x1e2))/0xa);if(_0x279dd5===_0x475ca9)break;else _0x3c0a9d['push'](_0x3c0a9d['shift']());}catch(_0xc89a81){_0x3c0a9d['push'](_0x3c0a9d['shift']());}}}(a215_0x3ab2,0x26b5d));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_0x41aea3(0x1d2);export const CONFIG_NAMES=[a215_0x41aea3(0x1d2),'.lovrabet.json','.lovrabetrc'];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a215_0x41aea3(0x1ec)](_0x1df4eb=>_0x1df4eb!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x5da467){for(const _0x30cfa0 of CONFIG_NAMES){const _0x572cde=resolve(_0x5da467,_0x30cfa0);if(existsSync(_0x572cde))return _0x572cde;}return undefined;}export function findProjectRootDirectory(_0x522bdc=process[a215_0x41aea3(0x1ed)]()){let _0x1c8415=resolve(_0x522bdc);const {root:_0x3addf7}=parse(_0x1c8415),_0x32fadc=homedir();while(!![]){if(resolveConfigPath(_0x1c8415)){if(_0x1c8415===_0x32fadc)break;return _0x1c8415;}if(_0x1c8415===_0x3addf7||_0x1c8415===_0x32fadc)break;const _0x4235c2=dirname(_0x1c8415);if(_0x4235c2===_0x1c8415)break;_0x1c8415=_0x4235c2;}return resolve(_0x522bdc);}export function getProjectConfigPath(){const _0x56ca30=a215_0x41aea3;return resolveConfigPath(process[_0x56ca30(0x1ed)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x451049){const _0x39ca1a=a215_0x41aea3;if(!existsSync(_0x451049))return{'status':_0x39ca1a(0x1e4)};try{const _0x4daed7=readFileSync(_0x451049,{'encoding':'utf8'});if(!_0x4daed7?.[_0x39ca1a(0x1f4)]())return{'status':_0x39ca1a(0x1d8)};const _0xaee8b6=JSON[_0x39ca1a(0x1e3)](_0x4daed7);return{'status':'ok','data':_0xaee8b6};}catch(_0x49c987){return{'status':_0x39ca1a(0x1e7),'message':_0x49c987 instanceof Error?_0x49c987['message']:String(_0x49c987)};}}function parseCliConfigJsonFile(_0x16a1a5,_0x1202bf,_0x54480d){const _0x52484d=a215_0x41aea3,_0x79dce5=inspectCliConfigJsonFile(_0x16a1a5);if(_0x79dce5[_0x52484d(0x1d4)]==='missing'||_0x79dce5[_0x52484d(0x1d4)]==='empty')return{};if(_0x79dce5[_0x52484d(0x1d4)]==='ok')return _0x79dce5['data'];return _0x1202bf===_0x52484d(0x1d6)&&_0x54480d&&console[_0x52484d(0x1e7)](CLI_BIN_NAME+':\x20'+_0x54480d+_0x52484d(0x1fb)+_0x16a1a5+'\x0a\x20\x20'+_0x79dce5[_0x52484d(0x1de)]),{};}function a215_0x3ab2(){const _0x177303=['warn','set','empty','45ATLOmj','apiDir','apps','20oQRfRr','4iLrGfC','message','464874qoKDoV','pageSize','2016791UNjKHx','1467210FIUbaB','parse','missing','object','app','error','keys','appcode','format','accessKey','filter','cwd','config','cookie','2171064zjPcBM','defaultApp','length','inherit','trim','locale','stringify','8542GHIOqp','project','236334ggvmIV','env','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','465459cbKDQq','riskLevel','.rabetbase.json','.tmp','status','utf8'];a215_0x3ab2=function(){return _0x177303;};return a215_0x3ab2();}function normalizeLegacyConfigShape(_0x1e60ca){const _0x32feff=a215_0x41aea3;if(!_0x1e60ca||typeof _0x1e60ca!==_0x32feff(0x1e5))return{'config':{},'migrated':![]};const _0xf5936c={..._0x1e60ca},_0x3d1939=_0xf5936c['apps']&&typeof _0xf5936c[_0x32feff(0x1db)]===_0x32feff(0x1e5)?{..._0xf5936c[_0x32feff(0x1db)]}:{},_0x28cb8f=Object['keys'](_0x3d1939)[_0x32feff(0x1f2)],_0x41003a=_0xf5936c[_0x32feff(0x1e9)]||_0xf5936c[_0x32feff(0x1e6)];let _0x2dfd6e=![];if(_0x41003a&&_0x28cb8f===0x0){const _0x2c7f67=typeof _0xf5936c['defaultApp']==='string'&&_0xf5936c[_0x32feff(0x1f1)]['trim']()?_0xf5936c[_0x32feff(0x1f1)]:String(_0x41003a)['trim']();_0x3d1939[_0x2c7f67]={'appcode':String(_0x41003a)['trim'](),..._0xf5936c[_0x32feff(0x1fa)]!=null?{'env':_0xf5936c[_0x32feff(0x1fa)]}:{},..._0xf5936c[_0x32feff(0x1da)]!=null?{'apiDir':_0xf5936c[_0x32feff(0x1da)]}:{},..._0xf5936c[_0x32feff(0x1ef)]!=null?{'cookie':_0xf5936c[_0x32feff(0x1ef)]}:{},..._0xf5936c[_0x32feff(0x1eb)]!=null?{'accessKey':_0xf5936c[_0x32feff(0x1eb)]}:{},..._0xf5936c['format']!=null?{'format':_0xf5936c[_0x32feff(0x1ea)]}:{},..._0xf5936c[_0x32feff(0x1e0)]!=null?{'pageSize':_0xf5936c[_0x32feff(0x1e0)]}:{},..._0xf5936c[_0x32feff(0x1d1)]!=null?{'riskLevel':_0xf5936c[_0x32feff(0x1d1)]}:{},..._0xf5936c[_0x32feff(0x1f5)]!=null?{'locale':_0xf5936c[_0x32feff(0x1f5)]}:{}},_0xf5936c[_0x32feff(0x1db)]=_0x3d1939;if(!_0xf5936c[_0x32feff(0x1f1)])_0xf5936c['defaultApp']=_0x2c7f67;_0x2dfd6e=!![];}return(_0x32feff(0x1e9)in _0xf5936c||_0x32feff(0x1e6)in _0xf5936c)&&(delete _0xf5936c[_0x32feff(0x1e9)],delete _0xf5936c[_0x32feff(0x1e6)],_0x2dfd6e=!![]),{'config':_0xf5936c,'migrated':_0x2dfd6e};}function writeNormalizedConfigIfNeeded(_0x3cef50,_0xcdab44){const _0x18f29a=a215_0x41aea3,_0xa7502d=JSON[_0x18f29a(0x1f6)](_0xcdab44,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x3cef50)===_0xa7502d)return;writeConfigFile(_0x3cef50,_0xcdab44),normalizedWriteCache[_0x18f29a(0x1d7)](_0x3cef50,_0xa7502d);}function a215_0xa5fc(_0x3493aa,_0x1e5884){_0x3493aa=_0x3493aa-0x1d1;const _0x3ab20e=a215_0x3ab2();let _0xa5fcb0=_0x3ab20e[_0x3493aa];return _0xa5fcb0;}function parseAndNormalizeConfig(_0x33b910,_0x355657,_0x104cbe){const _0x261d62=a215_0x41aea3,_0x2cb4f6=parseCliConfigJsonFile(_0x33b910,_0x355657,_0x104cbe),_0x30bc9c=normalizeLegacyConfigShape(_0x2cb4f6);if(_0x30bc9c['migrated'])try{writeNormalizedConfigIfNeeded(_0x33b910,_0x30bc9c[_0x261d62(0x1ee)]);}catch{}return _0x30bc9c[_0x261d62(0x1ee)];}export function loadRawConfigLayers(_0x414001){const _0x44b0b3=a215_0x41aea3;let _0x38a75a={},_0x5f0ec1={};const _0x23be89=resolveConfigPath(homedir());_0x23be89&&(_0x38a75a=parseAndNormalizeConfig(_0x23be89,_0x44b0b3(0x1d6),'Global'));const _0x1b39fd=_0x414001??findProjectRootDirectory(),_0x128a8d=resolveConfigPath(_0x1b39fd);return _0x128a8d&&(_0x5f0ec1=parseAndNormalizeConfig(_0x128a8d,'warn','Project')),{'globalPath':_0x23be89,'projectPath':_0x128a8d,'globalConfig':_0x38a75a,'projectConfig':_0x5f0ec1};}const INHERIT_WHITELIST=[a215_0x41aea3(0x1ef),a215_0x41aea3(0x1eb),a215_0x41aea3(0x1f5),a215_0x41aea3(0x1ea),a215_0x41aea3(0x1d1),'pageSize'];export function mergeRawConfigLayers(_0x5770a0){const _0x41a200=a215_0x41aea3,{globalConfig:_0x291bb0,projectConfig:_0x198f43}=_0x5770a0,_0x48e646=Object['keys'](_0x198f43)[_0x41a200(0x1f2)]>0x0;if(!_0x48e646)return mergeGlobalOnly(_0x291bb0);if(_0x198f43['inherit']===!![])return mergeFullInherit(_0x291bb0,_0x198f43);if(_0x198f43[_0x41a200(0x1f3)]===![])return mergeIsolated(_0x198f43);return mergeProjectFirst(_0x291bb0,_0x198f43);}function mergeGlobalOnly(_0x1ed769){const _0x2e014c=a215_0x41aea3,_0x4d4989={..._0x1ed769},_0x5596a0=_0x1ed769[_0x2e014c(0x1db)]&&typeof _0x1ed769[_0x2e014c(0x1db)]===_0x2e014c(0x1e5)?_0x1ed769[_0x2e014c(0x1db)]:{};if(Object[_0x2e014c(0x1e8)](_0x5596a0)[_0x2e014c(0x1f2)]>0x0)_0x4d4989[_0x2e014c(0x1db)]=_0x5596a0;if(_0x1ed769[_0x2e014c(0x1f1)])_0x4d4989[_0x2e014c(0x1f1)]=_0x1ed769[_0x2e014c(0x1f1)];else{const _0x6f9d9e=Object[_0x2e014c(0x1e8)](_0x5596a0);if(_0x6f9d9e[_0x2e014c(0x1f2)]>0x0)_0x4d4989[_0x2e014c(0x1f1)]=_0x6f9d9e[0x0];}return _0x4d4989;}function mergeIsolated(_0x4f0b9b){const _0xc241e8=a215_0x41aea3,_0x510018={..._0x4f0b9b};delete _0x510018['inherit'];const _0xb1b8f1=_0x4f0b9b['apps']&&typeof _0x4f0b9b['apps']===_0xc241e8(0x1e5)?_0x4f0b9b['apps']:{};Object[_0xc241e8(0x1e8)](_0xb1b8f1)['length']>0x0?_0x510018[_0xc241e8(0x1db)]=_0xb1b8f1:delete _0x510018['apps'];if(_0xc241e8(0x1f1)in _0x4f0b9b)_0x510018[_0xc241e8(0x1f1)]=_0x4f0b9b['defaultApp'];else Object[_0xc241e8(0x1e8)](_0xb1b8f1)[_0xc241e8(0x1f2)]>0x0?_0x510018[_0xc241e8(0x1f1)]=Object['keys'](_0xb1b8f1)[0x0]:delete _0x510018[_0xc241e8(0x1f1)];return _0x510018;}function mergeProjectFirst(_0x2f5fe8,_0x22d775){const _0x344764=a215_0x41aea3,_0x43e517={..._0x22d775};delete _0x43e517[_0x344764(0x1f3)];for(const _0x54deed of INHERIT_WHITELIST){!(_0x54deed in _0x43e517)&&_0x54deed in _0x2f5fe8&&(_0x43e517[_0x54deed]=_0x2f5fe8[_0x54deed]);}const _0x38ccba=_0x22d775[_0x344764(0x1db)]&&typeof _0x22d775[_0x344764(0x1db)]===_0x344764(0x1e5)?_0x22d775[_0x344764(0x1db)]:{};Object['keys'](_0x38ccba)['length']>0x0?_0x43e517[_0x344764(0x1db)]=_0x38ccba:delete _0x43e517['apps'];if(_0x344764(0x1f1)in _0x22d775)_0x43e517['defaultApp']=_0x22d775[_0x344764(0x1f1)];else Object['keys'](_0x38ccba)['length']>0x0?_0x43e517['defaultApp']=Object[_0x344764(0x1e8)](_0x38ccba)[0x0]:delete _0x43e517[_0x344764(0x1f1)];return _0x43e517;}function mergeFullInherit(_0x2888c8,_0x2c56ec){const _0xe0a350=a215_0x41aea3,_0x2d3ae4=_0x2888c8[_0xe0a350(0x1db)]&&typeof _0x2888c8[_0xe0a350(0x1db)]==='object'?_0x2888c8['apps']:{},_0x35b0ad=_0x2c56ec[_0xe0a350(0x1db)]&&typeof _0x2c56ec[_0xe0a350(0x1db)]==='object'?_0x2c56ec[_0xe0a350(0x1db)]:{},_0x1047d9={..._0x2d3ae4,..._0x35b0ad},_0x119db8={..._0x2888c8,..._0x2c56ec};delete _0x119db8['inherit'];if(Object[_0xe0a350(0x1e8)](_0x1047d9)[_0xe0a350(0x1f2)]>0x0)_0x119db8['apps']=_0x1047d9;if(_0xe0a350(0x1f1)in _0x2c56ec)_0x119db8['defaultApp']=_0x2c56ec[_0xe0a350(0x1f1)];else{if(Object[_0xe0a350(0x1e8)](_0x35b0ad)['length']>0x0)_0x119db8[_0xe0a350(0x1f1)]=Object['keys'](_0x35b0ad)[0x0];else{if(_0x2888c8[_0xe0a350(0x1f1)])_0x119db8[_0xe0a350(0x1f1)]=_0x2888c8['defaultApp'];else{const _0x3fa50b=Object[_0xe0a350(0x1e8)](_0x2d3ae4);if(_0x3fa50b[_0xe0a350(0x1f2)]>0x0)_0x119db8['defaultApp']=_0x3fa50b[0x0];}}}return _0x119db8;}export function readRawConfigWithLayers(_0x2ec146){const _0x1f0723=loadRawConfigLayers(_0x2ec146);return{'config':mergeRawConfigLayers(_0x1f0723),'layers':_0x1f0723};}export function readRawConfig(_0x1384f5){return mergeRawConfigLayers(loadRawConfigLayers(_0x1384f5));}export function readConfigFile(_0x4a4b49){return parseAndNormalizeConfig(_0x4a4b49,'silent');}export function writeConfigFile(_0xc02460,_0x3a7d6a){const _0x2413b1=a215_0x41aea3,_0x2af709=dirname(_0xc02460);!existsSync(_0x2af709)&&mkdirSync(_0x2af709,{'recursive':!![]});const _0x53ebd0=_0xc02460+_0x2413b1(0x1d3);try{writeFileSync(_0x53ebd0,JSON[_0x2413b1(0x1f6)](_0x3a7d6a,null,0x2)+'\x0a',{'encoding':_0x2413b1(0x1d5),'mode':0x180}),renameSync(_0x53ebd0,_0xc02460);}catch(_0x34316b){try{unlinkSync(_0x53ebd0);}catch{}throw _0x34316b;}}export function resolveWriteConfigPath(_0x2317f8){const _0x403ec3=a215_0x41aea3,_0x10f69c=_0x2317f8===_0x403ec3(0x1f8)?process[_0x403ec3(0x1ed)]():homedir(),_0x209733=resolveConfigPath(_0x10f69c);return _0x209733??resolve(_0x10f69c,NEW_CONFIG_NAME);}
|