@lovrabet/rabetbase-cli 2.3.16-beta.5 → 2.3.16-beta.7
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/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/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/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/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 +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x467d67,_0x3f0d41){const _0x1ee26c=a186_0xf94b,_0x5d980c=_0x467d67();while(!![]){try{const _0x976bb8=-parseInt(_0x1ee26c(0xc9))/0x1+parseInt(_0x1ee26c(0xca))/0x2+-parseInt(_0x1ee26c(0xce))/0x3+parseInt(_0x1ee26c(0xcd))/0x4*(parseInt(_0x1ee26c(0xc7))/0x5)+-parseInt(_0x1ee26c(0xd0))/0x6*(parseInt(_0x1ee26c(0xcf))/0x7)+parseInt(_0x1ee26c(0xcc))/0x8*(-parseInt(_0x1ee26c(0xc8))/0x9)+parseInt(_0x1ee26c(0xcb))/0xa;if(_0x976bb8===_0x3f0d41)break;else _0x5d980c['push'](_0x5d980c['shift']());}catch(_0x2b3a13){_0x5d980c['push'](_0x5d980c['shift']());}}}(a186_0x2676,0x71308));import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];function a186_0xf94b(_0xf38c70,_0x17e611){_0xf38c70=_0xf38c70-0xc7;const _0x267692=a186_0x2676();let _0xf94b9=_0x267692[_0xf38c70];return _0xf94b9;}function a186_0x2676(){const _0x14add2=['91vrJYMa','101778ALEejW','3863290roREEw','9nYNomk','496763cLSOtP','1722572iLXJaS','6153540moCeeC','5297696CLkvIM','4vRmEwl','1218540SgevhI'];a186_0x2676=function(){return _0x14add2;};return a186_0x2676();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a187_0x12faca=a187_0x1819;(function(_0x561c42,_0x161f67){const _0x85d657=a187_0x1819,_0x5adf08=_0x561c42();while(!![]){try{const _0x5c0d07=parseInt(_0x85d657(0x1b9))/0x1*(parseInt(_0x85d657(0x1c2))/0x2)+parseInt(_0x85d657(0x1bd))/0x3*(-parseInt(_0x85d657(0x1b0))/0x4)+parseInt(_0x85d657(0x1c0))/0x5+parseInt(_0x85d657(0x1c5))/0x6+-parseInt(_0x85d657(0x1b7))/0x7+-parseInt(_0x85d657(0x1b4))/0x8+parseInt(_0x85d657(0x1b8))/0x9*(parseInt(_0x85d657(0x1c4))/0xa);if(_0x5c0d07===_0x161f67)break;else _0x5adf08['push'](_0x5adf08['shift']());}catch(_0x1471a8){_0x5adf08['push'](_0x5adf08['shift']());}}}(a187_0x1cfb,0x94150));function a187_0x1cfb(){const _0xddda56=['Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','12xyVitv','cookie',',\x20received\x20','4338985pcWipt','apiError','724468sqZixa','trim','2280snZzeU','3582588tVrcJr','taskId','181000BagQrM','str','compress','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','1110720fANPCq','appCode','task-id','7380919KHiJaD','6066FQyeGV','1BJhkxc','flagMissing','isTerminal'];a187_0x1cfb=function(){return _0xddda56;};return a187_0x1cfb();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a187_0x1819(_0x29d5d1,_0x18e709){_0x29d5d1=_0x29d5d1-0x1b0;const _0x1cfbb9=a187_0x1cfb();let _0x1819e0=_0x1cfbb9[_0x29d5d1];return _0x1819e0;}import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';import{getAsyncTaskStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const taskStatus={'service':'task','command':'status','description':'Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','risk':'read','defaultOutputFormat':a187_0x12faca(0x1b2),'structuredErrors':!![],'flags':[{'name':a187_0x12faca(0x1b6),'type':'string','required':!![],'description':a187_0x12faca(0x1bc)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x104f8a){const _0x5067e2=a187_0x12faca;if(!_0x104f8a[_0x5067e2(0x1b1)]('task-id')[_0x5067e2(0x1c3)]())throw CliErrors[_0x5067e2(0x1ba)](_0x5067e2(0x1b6));},async 'execute'(_0x5cd6e5){const _0x258762=a187_0x12faca,_0x3ab2c9=_0x5cd6e5[_0x258762(0x1b1)](_0x258762(0x1b6))['trim'](),_0x48b209=normalizeAsyncTask(await getAsyncTaskStatus(_0x3ab2c9,_0x5cd6e5[_0x258762(0x1b5)],_0x5cd6e5[_0x258762(0x1be)]));if(_0x48b209[_0x258762(0x1c6)]!==_0x3ab2c9)throw CliErrors[_0x258762(0x1c1)](_0x258762(0x1b3)+_0x3ab2c9+_0x258762(0x1bf)+_0x48b209[_0x258762(0x1c6)]+'.');const _0x37dbfa=buildAsyncTaskStatusCommand(_0x48b209[_0x258762(0x1c6)],_0x5cd6e5['appCode']);return{'ok':!![],'message':asyncTaskMessage(_0x48b209),'data':{'appCode':_0x5cd6e5[_0x258762(0x1b5)],..._0x48b209,'query':_0x48b209[_0x258762(0x1bb)]?null:{'command':_0x37dbfa}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a188_0x5f19(_0x41ac56,_0x3baa36){_0x41ac56=_0x41ac56-0x14d;const _0x2bdd20=a188_0x2bdd();let _0x5f19db=_0x2bdd20[_0x41ac56];return _0x5f19db;}(function(_0x1b2574,_0x1731aa){const _0x4046f0=a188_0x5f19,_0x18a347=_0x1b2574();while(!![]){try{const _0x3e6a01=parseInt(_0x4046f0(0x152))/0x1+-parseInt(_0x4046f0(0x151))/0x2*(-parseInt(_0x4046f0(0x157))/0x3)+-parseInt(_0x4046f0(0x14f))/0x4*(-parseInt(_0x4046f0(0x155))/0x5)+-parseInt(_0x4046f0(0x150))/0x6+-parseInt(_0x4046f0(0x14e))/0x7*(-parseInt(_0x4046f0(0x154))/0x8)+parseInt(_0x4046f0(0x14d))/0x9*(-parseInt(_0x4046f0(0x156))/0xa)+parseInt(_0x4046f0(0x153))/0xb;if(_0x3e6a01===_0x1731aa)break;else _0x18a347['push'](_0x18a347['shift']());}catch(_0x190b4f){_0x18a347['push'](_0x18a347['shift']());}}}(a188_0x2bdd,0xd1fdf));import{tenantMembersListDefinition}from'../../commands/tenant/members-list.js';export const tenantDefinitions=[tenantMembersListDefinition];function a188_0x2bdd(){const _0xc6598a=['8XcIKOA','175365yxnCfW','2882530pluREI','49026mpSjGo','36sgcXiP','5689257swoDwZ','24lOxWao','9570816RmSfiT','138WIFnvV','83091buHNMj','15118367ccNVOy'];a188_0x2bdd=function(){return _0xc6598a;};return a188_0x2bdd();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a189_0x5ec09f=a189_0x5179;(function(_0x501f85,_0x420e3c){const _0x417721=a189_0x5179,_0x100753=_0x501f85();while(!![]){try{const _0x5b3530=-parseInt(_0x417721(0x18f))/0x1+parseInt(_0x417721(0x18b))/0x2+-parseInt(_0x417721(0x18e))/0x3+parseInt(_0x417721(0x187))/0x4+-parseInt(_0x417721(0x192))/0x5*(-parseInt(_0x417721(0x182))/0x6)+parseInt(_0x417721(0x18d))/0x7*(-parseInt(_0x417721(0x184))/0x8)+parseInt(_0x417721(0x188))/0x9*(-parseInt(_0x417721(0x185))/0xa);if(_0x5b3530===_0x420e3c)break;else _0x100753['push'](_0x100753['shift']());}catch(_0x47c09c){_0x100753['push'](_0x100753['shift']());}}}(a189_0x4c41,0x45714));import{listCurrentUserTenantMemberships,listTenantDirectoryMembers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a189_0x4c41(){const _0xaf660d=['99wlsJwA','tenant-code','List\x20members\x20of\x20a\x20tenant\x20available\x20to\x20the\x20current\x20account','259112fKzhYX','Exact\x20tenant\x20code','224917hdLxUt','106212FJPaTW','70020mzXtSL','trim','length','1740090FPoHYt','str','6wftaxo','read','56hRtKeO','327830toZVjM','Found\x20','1991264GNCjIV'];a189_0x4c41=function(){return _0xaf660d;};return a189_0x4c41();}import{assertTenantAccessible,projectTenantMembers}from'../../commands/tenant/shared.js';function a189_0x5179(_0x84e97d,_0x5f0c46){_0x84e97d=_0x84e97d-0x182;const _0x4c41d1=a189_0x4c41();let _0x51792c=_0x4c41d1[_0x84e97d];return _0x51792c;}export const tenantMembersListDefinition={'service':'tenant','command':'members-list','description':a189_0x5ec09f(0x18a),'risk':a189_0x5ec09f(0x183),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a189_0x5ec09f(0x189),'type':'string','required':!![],'description':a189_0x5ec09f(0x18c)}],async 'validate'(_0x6b4674){const _0x132703=a189_0x5ec09f;if(!_0x6b4674[_0x132703(0x193)](_0x132703(0x189))[_0x132703(0x190)]())throw CliErrors['flagMissing'](_0x132703(0x189),'Pass\x20--tenant-code\x20<code>.');},async 'execute'(_0x38e655){const _0x1eaed6=a189_0x5ec09f,_0x179a46=_0x38e655[_0x1eaed6(0x193)](_0x1eaed6(0x189))[_0x1eaed6(0x190)](),_0xd06e74=await listCurrentUserTenantMemberships();assertTenantAccessible(_0x179a46,_0xd06e74);const _0x5890f4=projectTenantMembers(await listTenantDirectoryMembers(_0x179a46));return{'ok':!![],'data':{'tenantCode':_0x179a46,'items':_0x5890f4,'totalCount':_0x5890f4[_0x1eaed6(0x191)]},'message':_0x1eaed6(0x186)+_0x5890f4[_0x1eaed6(0x191)]+'\x20tenant\x20member(s)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x444913,_0x228495){const _0x889be0=a190_0xb95d,_0x565cf8=_0x444913();while(!![]){try{const _0x20f91e=-parseInt(_0x889be0(0x17f))/0x1+parseInt(_0x889be0(0x16d))/0x2*(parseInt(_0x889be0(0x170))/0x3)+-parseInt(_0x889be0(0x185))/0x4+-parseInt(_0x889be0(0x176))/0x5*(parseInt(_0x889be0(0x177))/0x6)+parseInt(_0x889be0(0x182))/0x7*(parseInt(_0x889be0(0x17d))/0x8)+parseInt(_0x889be0(0x17b))/0x9+-parseInt(_0x889be0(0x184))/0xa;if(_0x20f91e===_0x228495)break;else _0x565cf8['push'](_0x565cf8['shift']());}catch(_0x5b8d54){_0x565cf8['push'](_0x565cf8['shift']());}}}(a190_0x5cce,0x1d694));import{CliErrors}from'../../errors.js';function textOrNull(_0x525f74){const _0x400ba6=a190_0xb95d,_0x55965e=_0x525f74?.[_0x400ba6(0x183)]();return _0x55965e?_0x55965e:null;}function a190_0x5cce(){const _0x57a6e0=['isFinite','username','65IJNZju','6084nrNNHD','role','displayName','values','979911SBAxzE','Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.','8XFPWXv','adminFlag','11592NqstHF','ADMIN','userId','687113hbOpRn','trim','86540hNzsnz','549608HnVmUz','nickname','sort','some','10XNGRUS','set','status','50556kfRqqB','tenantCode','validation','Tenant\x20\x22'];a190_0x5cce=function(){return _0x57a6e0;};return a190_0x5cce();}function a190_0xb95d(_0x28ce4a,_0x297358){_0x28ce4a=_0x28ce4a-0x16a;const _0x5cce67=a190_0x5cce();let _0xb95dfd=_0x5cce67[_0x28ce4a];return _0xb95dfd;}export function projectTenantMembers(_0x281b10){const _0x2ee891=a190_0xb95d,_0x4205a7=new Map();for(const _0x185fc8 of _0x281b10){const _0x322d64=Number(_0x185fc8['userId']);if(!Number[_0x2ee891(0x174)](_0x322d64)||_0x322d64<=0x0)continue;const _0x53e337={'userId':_0x322d64,'username':textOrNull(_0x185fc8[_0x2ee891(0x175)]),'displayName':textOrNull(_0x185fc8[_0x2ee891(0x16a)]),'role':_0x185fc8[_0x2ee891(0x17e)]===!![]?_0x2ee891(0x180):'MEMBER','status':textOrNull(_0x185fc8[_0x2ee891(0x16f)])},_0x396ed4=_0x4205a7['get'](_0x322d64);if(!_0x396ed4){_0x4205a7[_0x2ee891(0x16e)](_0x322d64,_0x53e337);continue;}_0x396ed4[_0x2ee891(0x175)]??=_0x53e337[_0x2ee891(0x175)],_0x396ed4[_0x2ee891(0x179)]??=_0x53e337[_0x2ee891(0x179)],_0x396ed4['status']??=_0x53e337['status'];if(_0x53e337['role']===_0x2ee891(0x180))_0x396ed4[_0x2ee891(0x178)]=_0x2ee891(0x180);}return[..._0x4205a7[_0x2ee891(0x17a)]()][_0x2ee891(0x16b)]((_0x121f7d,_0x4adf79)=>_0x121f7d[_0x2ee891(0x181)]-_0x4adf79[_0x2ee891(0x181)]);}export function assertTenantAccessible(_0x27f129,_0x13b462){const _0x3b0bb9=a190_0xb95d;if(_0x13b462[_0x3b0bb9(0x16c)](_0x55d6b5=>_0x55d6b5[_0x3b0bb9(0x171)]===_0x27f129))return;throw CliErrors[_0x3b0bb9(0x172)](_0x3b0bb9(0x173)+_0x27f129+'\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.',_0x3b0bb9(0x17c));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a191_0x1d98(){const _0x525fe3=['12776nNXlAF','workspace\x20add','3102cmlDqB','1210870EjjJpp','1191065edxvZL','748446wWNYhn','App\x20profile\x20name','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','write','12alXKMu','881423kJlARt','2711303DpzDOo','add','1502TAvHdE','405eobbmA','workspace'];a191_0x1d98=function(){return _0x525fe3;};return a191_0x1d98();}const a191_0x45b325=a191_0xef98;function a191_0xef98(_0x2f2544,_0x521fe2){_0x2f2544=_0x2f2544-0xd1;const _0x1d9855=a191_0x1d98();let _0xef989e=_0x1d9855[_0x2f2544];return _0xef989e;}(function(_0x4dffe8,_0x5e1cf8){const _0x1a2caf=a191_0xef98,_0x5e7059=_0x4dffe8();while(!![]){try{const _0x3a8516=parseInt(_0x1a2caf(0xe0))/0x1+-parseInt(_0x1a2caf(0xd3))/0x2*(parseInt(_0x1a2caf(0xd8))/0x3)+-parseInt(_0x1a2caf(0xdf))/0x4*(-parseInt(_0x1a2caf(0xda))/0x5)+parseInt(_0x1a2caf(0xdb))/0x6+-parseInt(_0x1a2caf(0xd1))/0x7+-parseInt(_0x1a2caf(0xd6))/0x8*(-parseInt(_0x1a2caf(0xd4))/0x9)+-parseInt(_0x1a2caf(0xd9))/0xa;if(_0x3a8516===_0x5e1cf8)break;else _0x5e7059['push'](_0x5e7059['shift']());}catch(_0x32d6d2){_0x5e7059['push'](_0x5e7059['shift']());}}}(a191_0x1d98,0x7bf46));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a191_0x45b325(0xd5),'command':a191_0x45b325(0xd2),'description':a191_0x45b325(0xdd),'risk':a191_0x45b325(0xde),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a191_0x45b325(0xdc),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x476a72=>validateAppName(_0x476a72,a191_0x45b325(0xd7)),'execute':_0x486fbf=>runAppAdd(_0x486fbf,a191_0x45b325(0xd7))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a192_0x1ac181=a192_0x3818;(function(_0x4a02ca,_0x1f2af9){const _0xe61473=a192_0x3818,_0x16bc52=_0x4a02ca();while(!![]){try{const _0x32dedd=parseInt(_0xe61473(0xf2))/0x1+-parseInt(_0xe61473(0xd5))/0x2+parseInt(_0xe61473(0xcc))/0x3*(-parseInt(_0xe61473(0xe1))/0x4)+parseInt(_0xe61473(0xf3))/0x5+parseInt(_0xe61473(0xbc))/0x6*(parseInt(_0xe61473(0xb7))/0x7)+parseInt(_0xe61473(0xe3))/0x8+-parseInt(_0xe61473(0xe5))/0x9;if(_0x32dedd===_0x1f2af9)break;else _0x16bc52['push'](_0x16bc52['shift']());}catch(_0x4492ee){_0x16bc52['push'](_0x16bc52['shift']());}}}(a192_0x3724,0xda166));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a192_0x3818(_0x167779,_0x3ec96b){_0x167779=_0x167779-0xb7;const _0x3724f7=a192_0x3724();let _0x38187a=_0x3724f7[_0x167779];return _0x38187a;}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';function a192_0x3724(){const _0x1c76d8=['Locale\x20for\x20this\x20workspace\x20app\x20profile','\x20workspace\x20','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','string','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','format','3qcEYbi','\x20workspace\x20use\x20--app\x20<name>`.','apiDir','defaultApp','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','apps','workspace','Workspace\x20','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','1883198PYyQbA','Missing\x20workspace\x20app\x20selector.','appcode','updated','project','globalConfig','use','\x22\x20not\x20found.','env','defaultFormat','number','locale','4444276wOitnY','str','13467136NheTxA','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','14432481OGqNxq','\x20--app\x20','length','object','flag','initialized','riskLevel','write','app','App\x20\x22','Switch\x20the\x20current\x20workspace\x20app\x20binding','pageSize','trim','1365144fxnXgP','1239235pUrqpm','Use\x20`',').\x20Config:\x20','1754452LsKFdz','keys','validation','Target\x20environment','\x20--appcode\x20<code>`.','30qtbvSJ','init','.\x20Credentials:\x20not\x20written.','join','Initialize\x20the\x20current\x20workspace\x20app\x20binding','isArray','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','workspace.'];a192_0x3724=function(){return _0x1c76d8;};return a192_0x3724();}const WORKSPACE_USAGE=CLI_BIN_NAME+a192_0x1ac181(0xc6),SAFE_PROFILE_KEYS=['appcode',a192_0x1ac181(0xdd),'apiDir',a192_0x1ac181(0xcb),a192_0x1ac181(0xf0),a192_0x1ac181(0xeb),a192_0x1ac181(0xe0)],workspaceFlags=[{'name':a192_0x1ac181(0xed),'type':a192_0x1ac181(0xc8),'description':a192_0x1ac181(0xc2)},{'name':a192_0x1ac181(0xd7),'type':'string','description':a192_0x1ac181(0xca)},{'name':a192_0x1ac181(0xdd),'type':a192_0x1ac181(0xc8),'description':a192_0x1ac181(0xba),'enum':[...RABETBASE_ENV_VALUES]},{'name':a192_0x1ac181(0xce),'type':a192_0x1ac181(0xc8),'description':a192_0x1ac181(0xd4)},{'name':a192_0x1ac181(0xde),'type':a192_0x1ac181(0xc8),'description':a192_0x1ac181(0xc7),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a192_0x1ac181(0xf0),'type':a192_0x1ac181(0xdf),'description':a192_0x1ac181(0xe4)},{'name':a192_0x1ac181(0xeb),'type':a192_0x1ac181(0xc8),'description':'Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RISK_LEVEL_VALUES]},{'name':a192_0x1ac181(0xe0),'type':'string','description':a192_0x1ac181(0xc4)}];function isRecord(_0x340c77){const _0x359db9=a192_0x1ac181;return!!_0x340c77&&typeof _0x340c77===_0x359db9(0xe8)&&!Array[_0x359db9(0xc1)](_0x340c77);}function assertValidAppcode(_0xf116f1){const {valid:_0x24011a,message:_0x249658}=validateAppcode(_0xf116f1);if(!_0x24011a)throw CliErrors['validation']('Invalid\x20appcode:\x20'+_0xf116f1,_0x249658);}function sanitizeProfile(_0x354295){if(!isRecord(_0x354295))return{};const _0x2f7e73={};for(const _0x40f45b of SAFE_PROFILE_KEYS){if(_0x354295[_0x40f45b]!==undefined)_0x2f7e73[_0x40f45b]=_0x354295[_0x40f45b];}return _0x2f7e73;}function cloneProfile(_0xd07997){return isRecord(_0xd07997)?{..._0xd07997}:{};}function collectWorkspaceProfileOverrides(_0x48973d){const _0x14030e=a192_0x1ac181,_0x32d06d={},_0x2a3448=_0x48973d[_0x14030e(0xe2)](_0x14030e(0xdd)),_0xd2918=_0x48973d[_0x14030e(0xe2)](_0x14030e(0xce)),_0x490783=_0x48973d['str']('defaultFormat'),_0x1dbc0c=_0x48973d[_0x14030e(0xe9)]('pageSize'),_0x399086=_0x48973d[_0x14030e(0xe2)](_0x14030e(0xeb)),_0x48f086=_0x48973d[_0x14030e(0xe2)](_0x14030e(0xe0));if(_0x2a3448)_0x32d06d['env']=_0x2a3448;if(_0xd2918)_0x32d06d['apiDir']=_0xd2918;if(_0x490783)_0x32d06d[_0x14030e(0xcb)]=_0x490783;if(_0x1dbc0c!==undefined&&_0x1dbc0c!=='')_0x32d06d[_0x14030e(0xf0)]=Number(_0x1dbc0c);if(_0x399086)_0x32d06d[_0x14030e(0xeb)]=_0x399086;if(_0x48f086)_0x32d06d[_0x14030e(0xe0)]=_0x48f086;return _0x32d06d;}async function validateWorkspaceArgs(_0x4fb051){const _0x3b14c2=a192_0x1ac181,_0x48dbd1=_0x4fb051[_0x3b14c2(0xe2)](_0x3b14c2(0xed))[_0x3b14c2(0xf1)](),_0x32cfd9=_0x4fb051['str'](_0x3b14c2(0xd7))[_0x3b14c2(0xf1)]();if(!_0x48dbd1&&!_0x32cfd9)throw CliErrors[_0x3b14c2(0xb9)](_0x3b14c2(0xd6),_0x3b14c2(0xf4)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x3b14c2(0xcd));if(_0x32cfd9)assertValidAppcode(_0x32cfd9);}function resolveKnownApps(){const _0x2e2afc=a192_0x1ac181,{config:_0x4089aa,layers:_0x7b5c90}=readRawConfigWithLayers(),_0x3bc892=isRecord(_0x4089aa[_0x2e2afc(0xd1)])?_0x4089aa[_0x2e2afc(0xd1)]:{},_0x5e4732=isRecord(_0x7b5c90[_0x2e2afc(0xda)][_0x2e2afc(0xd1)])?_0x7b5c90[_0x2e2afc(0xda)][_0x2e2afc(0xd1)]:{};return{..._0x5e4732,..._0x3bc892};}async function configureWorkspace(_0x207925,_0x53b0f3){const _0x5b5d3a=a192_0x1ac181,_0x2b34ff=_0x207925[_0x5b5d3a(0xe2)](_0x5b5d3a(0xed))[_0x5b5d3a(0xf1)](),_0x81804f=_0x207925[_0x5b5d3a(0xe2)]('appcode')[_0x5b5d3a(0xf1)](),_0x3f272a=_0x2b34ff||_0x81804f;if(!_0x3f272a)throw CliErrors[_0x5b5d3a(0xb9)]('Missing\x20workspace\x20app\x20selector.',_0x5b5d3a(0xf4)+CLI_BIN_NAME+_0x5b5d3a(0xc9)+CLI_BIN_NAME+_0x5b5d3a(0xcd));if(_0x81804f)assertValidAppcode(_0x81804f);const _0xb54aac=resolveWriteConfigPath(_0x5b5d3a(0xd9)),_0x16b395=readConfigFile(_0xb54aac),_0x144ddc=resolveKnownApps(),_0x126a8a=isRecord(_0x16b395[_0x5b5d3a(0xd1)])?{..._0x16b395[_0x5b5d3a(0xd1)]}:{},_0x5e1bf7=cloneProfile(_0x126a8a[_0x3f272a]),_0x4aace9=sanitizeProfile(_0x144ddc[_0x3f272a]),_0x78c289=_0x81804f?{}:_0x4aace9,_0x284c6e=_0x81804f||_0x78c289[_0x5b5d3a(0xd7)];if(!_0x284c6e){const _0x1e726d=Object[_0x5b5d3a(0xb8)](_0x144ddc),_0x5d4521=_0x1e726d[_0x5b5d3a(0xe7)]===0x0?_0x5b5d3a(0xf4)+CLI_BIN_NAME+_0x5b5d3a(0xc5)+_0x53b0f3+_0x5b5d3a(0xe6)+_0x3f272a+_0x5b5d3a(0xbb):_0x5b5d3a(0xd0)+_0x1e726d[_0x5b5d3a(0xbf)](',\x20');throw CliErrors[_0x5b5d3a(0xb9)](_0x5b5d3a(0xee)+_0x3f272a+_0x5b5d3a(0xdc),_0x5d4521);}assertValidAppcode(String(_0x284c6e));const _0x593519={..._0x78c289,..._0x5e1bf7,'appcode':String(_0x284c6e),...collectWorkspaceProfileOverrides(_0x207925)};return _0x126a8a[_0x3f272a]=_0x593519,_0x16b395[_0x5b5d3a(0xd1)]=_0x126a8a,_0x16b395[_0x5b5d3a(0xcf)]=_0x3f272a,delete _0x16b395[_0x5b5d3a(0xd7)],delete _0x16b395[_0x5b5d3a(0xed)],_0x593519['env']&&(_0x16b395['env']=_0x593519[_0x5b5d3a(0xdd)]),writeConfigFile(_0xb54aac,_0x16b395),{'ok':!![],'message':_0x5b5d3a(0xd3)+(_0x53b0f3==='init'?_0x5b5d3a(0xea):_0x5b5d3a(0xd8))+':\x20'+_0x3f272a+'\x20(appcode:\x20'+_0x593519[_0x5b5d3a(0xd7)]+_0x5b5d3a(0xf5)+_0xb54aac+_0x5b5d3a(0xbe),'data':{'operation':_0x5b5d3a(0xc3)+_0x53b0f3,'configPath':_0xb54aac,'app':_0x3f272a,'appcode':_0x593519[_0x5b5d3a(0xd7)],'env':_0x593519[_0x5b5d3a(0xdd)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a192_0x1ac181(0xd2),'command':a192_0x1ac181(0xbd),'description':a192_0x1ac181(0xc0),'risk':a192_0x1ac181(0xec),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x5a588a=>configureWorkspace(_0x5a588a,a192_0x1ac181(0xbd))},workspaceUseDefinition={'service':a192_0x1ac181(0xd2),'command':a192_0x1ac181(0xdb),'description':a192_0x1ac181(0xef),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x2c34fd=>configureWorkspace(_0x2c34fd,a192_0x1ac181(0xdb))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a193_0x5eabdf=a193_0x475b;function a193_0x8e2f(){const _0x4f4a9b=['8PhYwvA','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','7ccMvIQ','name','App\x20profile\x20name\x20to\x20remove','714762xJWEnp','workspace','709364ikAHgI','183172sYzDJM','write','3225WxHTge','8630862wshRJq','1347827ZDXDyd','8516PDlWob','5423499HWUnoS','workspace\x20remove','1910zLFVba'];a193_0x8e2f=function(){return _0x4f4a9b;};return a193_0x8e2f();}(function(_0x169ba1,_0x26352d){const _0x22a8d6=a193_0x475b,_0x5ca0d7=_0x169ba1();while(!![]){try{const _0x16f1b2=parseInt(_0x22a8d6(0x13a))/0x1+-parseInt(_0x22a8d6(0x135))/0x2+parseInt(_0x22a8d6(0x133))/0x3+-parseInt(_0x22a8d6(0x13b))/0x4*(parseInt(_0x22a8d6(0x138))/0x5)+parseInt(_0x22a8d6(0x139))/0x6*(-parseInt(_0x22a8d6(0x141))/0x7)+-parseInt(_0x22a8d6(0x13f))/0x8*(parseInt(_0x22a8d6(0x13c))/0x9)+parseInt(_0x22a8d6(0x13e))/0xa*(parseInt(_0x22a8d6(0x136))/0xb);if(_0x16f1b2===_0x26352d)break;else _0x5ca0d7['push'](_0x5ca0d7['shift']());}catch(_0xb1f032){_0x5ca0d7['push'](_0x5ca0d7['shift']());}}}(a193_0x8e2f,0xf3906));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a193_0x475b(_0x3f487,_0x239014){_0x3f487=_0x3f487-0x132;const _0x8e2f9f=a193_0x8e2f();let _0x475b71=_0x8e2f9f[_0x3f487];return _0x475b71;}export const workspaceRemoveDefinition={'service':a193_0x5eabdf(0x134),'command':'remove','description':a193_0x5eabdf(0x140),'risk':a193_0x5eabdf(0x137),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a193_0x5eabdf(0x142),'description':a193_0x5eabdf(0x132),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x440713=>validateAppName(_0x440713,a193_0x5eabdf(0x13d)),'execute':_0x4de346=>runAppRemove(_0x4de346,a193_0x5eabdf(0x13d))};
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a194_0x5bf277=a194_0x48af;(function(_0x2ba940,_0x446d4a){const _0x566341=a194_0x48af,_0xaef861=_0x2ba940();while(!![]){try{const _0x20bc97=-parseInt(_0x566341(0x213))/0x1*(parseInt(_0x566341(0x215))/0x2)+parseInt(_0x566341(0x210))/0x3+parseInt(_0x566341(0x1ef))/0x4*(-parseInt(_0x566341(0x1f0))/0x5)+parseInt(_0x566341(0x1fb))/0x6*(parseInt(_0x566341(0x201))/0x7)+parseInt(_0x566341(0x1f5))/0x8*(-parseInt(_0x566341(0x21b))/0x9)+-parseInt(_0x566341(0x202))/0xa*(parseInt(_0x566341(0x204))/0xb)+parseInt(_0x566341(0x212))/0xc*(parseInt(_0x566341(0x1fe))/0xd);if(_0x20bc97===_0x446d4a)break;else _0xaef861['push'](_0xaef861['shift']());}catch(_0x58883a){_0xaef861['push'](_0xaef861['shift']());}}}(a194_0x22ad,0x9e876));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';function a194_0x48af(_0x306ffb,_0x512510){_0x306ffb=_0x306ffb-0x1ed;const _0x22ad2c=a194_0x22ad();let _0x48af57=_0x22ad2c[_0x306ffb];return _0x48af57;}import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a194_0x5bf277(0x1f6),a194_0x5bf277(0x20e),a194_0x5bf277(0x1ed),a194_0x5bf277(0x214),a194_0x5bf277(0x203)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode','env',a194_0x5bf277(0x1ed),a194_0x5bf277(0x214),'cookie',a194_0x5bf277(0x20e),a194_0x5bf277(0x1ff)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};function a194_0x22ad(){const _0x23958c=['Risk\x20level','defaultApp','Access\x20key','accessKey','Target\x20environment','1590321Hokcnp','trim','710652SlbiGE','3699uHYMKF','format','74teetNb','Config\x20key\x20(','apps','pageSize','toLowerCase','has','27cyjSSh','locale','entries','4JXizvl','1876555qaXEVl','length','string','Default\x20page\x20size','Locale','2907288LKSgnD','cookie','keys','Auth\x20cookie','inherit','zh-CN','18JOzcIp','API\x20directory\x20path','en-US','455cCQVmZ','apiDir','join','1320431WjPlDp','2292500Yvncxz','riskLevel','44FUqENP','app','number','appcode','env','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','defaultFormat'];a194_0x22ad=function(){return _0x23958c;};return a194_0x22ad();}export function formatConfigKeyList(_0x57d49d){const _0x298bd7=a194_0x5bf277;return[..._0x57d49d][_0x298bd7(0x200)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x2cf259){const _0x344cbc=a194_0x5bf277;return TOP_LEVEL_CONFIG_KEYS[_0x344cbc(0x21a)](_0x2cf259);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x1910c3=a194_0x5bf277;return _0x1910c3(0x216)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a194_0x5bf277(0x208),'apiDir':a194_0x5bf277(0x1ff),'cookie':a194_0x5bf277(0x1f6),'accessKey':'accessKey','defaultFormat':a194_0x5bf277(0x214),'pageSize':a194_0x5bf277(0x218),'riskLevel':'riskLevel','locale':a194_0x5bf277(0x1ed)};export function getAppProfileFlagDefs(){const _0x136c04=a194_0x5bf277;return[{'name':'env','type':_0x136c04(0x1f2),'description':_0x136c04(0x20f),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x136c04(0x1ff),'type':_0x136c04(0x1f2),'description':_0x136c04(0x1fc)},{'name':_0x136c04(0x1f6),'type':_0x136c04(0x1f2),'description':_0x136c04(0x1f8),'hidden':!![]},{'name':_0x136c04(0x20e),'type':'string','description':_0x136c04(0x20d),'hidden':!![]},{'name':_0x136c04(0x20a),'type':_0x136c04(0x1f2),'description':_0x136c04(0x209),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x136c04(0x218),'type':_0x136c04(0x206),'description':_0x136c04(0x1f3)},{'name':_0x136c04(0x203),'type':_0x136c04(0x1f2),'description':_0x136c04(0x20b),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x136c04(0x1ed),'type':'string','description':_0x136c04(0x1f4)}];}export function collectAppProfileOverrides(_0x1e988b){const _0x16451f=a194_0x5bf277,_0x155263={};for(const [_0x1c8bb2,_0x4a3004]of Object[_0x16451f(0x1ee)](APP_PROFILE_FLAG_KEY_MAP)){const _0xb2fe4d=_0x1e988b(_0x1c8bb2);if(!_0xb2fe4d)continue;_0x155263[_0x4a3004]=_0x4a3004==='pageSize'?Number(_0xb2fe4d):_0xb2fe4d;}return _0x155263;}export function buildAppProfileListFields(_0x1352c2){const _0x21c136=a194_0x5bf277;return{'env':_0x1352c2[_0x21c136(0x208)]??null,'apiDir':_0x1352c2[_0x21c136(0x1ff)]??null,'hasCookie':!!_0x1352c2[_0x21c136(0x1f6)],'hasAccessKey':!!_0x1352c2[_0x21c136(0x20e)],'format':_0x1352c2['format']??null,'pageSize':_0x1352c2[_0x21c136(0x218)]??null,'riskLevel':_0x1352c2[_0x21c136(0x203)]??null,'locale':_0x1352c2[_0x21c136(0x1ed)]??null};}export function buildAppDoctorFields(_0x5c43fb,_0x1a6a89){const _0x22bbaa=a194_0x5bf277;return{'env':{'value':_0x5c43fb[_0x22bbaa(0x208)]||_0x1a6a89[_0x22bbaa(0x208)],'source':_0x5c43fb[_0x22bbaa(0x208)]?_0x22bbaa(0x205):'inherit'},'apiDir':{'value':_0x5c43fb[_0x22bbaa(0x1ff)]||_0x1a6a89['apiDir'],'source':_0x5c43fb[_0x22bbaa(0x1ff)]?'app':'inherit'},'cookie':{'value':_0x5c43fb['cookie']||_0x1a6a89['cookie'],'source':_0x5c43fb['cookie']?_0x22bbaa(0x205):_0x22bbaa(0x1f9)},'accessKey':{'value':_0x5c43fb[_0x22bbaa(0x20e)]||_0x1a6a89[_0x22bbaa(0x20e)],'source':_0x5c43fb[_0x22bbaa(0x20e)]?_0x22bbaa(0x205):'inherit'}};}export function buildCanonicalAppConfig(_0xb4a1fd,_0x4517da){const _0x7a9eda=a194_0x5bf277,_0x2ccd5a=_0xb4a1fd['map'](_0x5541ba=>String(_0x5541ba||'')[_0x7a9eda(0x211)]())['filter'](Boolean);if(_0x2ccd5a[_0x7a9eda(0x1f1)]===0x0)return{};const _0x48aa75={};for(const _0xe1724a of _0x2ccd5a){_0x48aa75[_0xe1724a]=_0x4517da?{'appcode':_0xe1724a,'env':_0x4517da}:{'appcode':_0xe1724a};}return{'apps':_0x48aa75,'defaultApp':_0x2ccd5a[0x0]};}export function buildCanonicalProjectConfig(_0x524f9f,_0x2cda96){const _0xfa2a63=a194_0x5bf277,{appCodes:appCodes=[],env:_0x189456,metadata:_0x252e13}=_0x2cda96,_0x44646b={..._0x524f9f,..._0x252e13||{}};delete _0x44646b[_0xfa2a63(0x207)],delete _0x44646b[_0xfa2a63(0x205)];if(_0x189456)_0x44646b['env']=_0x189456;else!_0x44646b[_0xfa2a63(0x208)]&&(_0x44646b[_0xfa2a63(0x208)]=DEFAULT_CONFIG_VALUES[_0xfa2a63(0x208)]);const _0x7e9321=buildCanonicalAppConfig(appCodes,_0x44646b['env']);return Object[_0xfa2a63(0x1f7)](_0x7e9321)[_0xfa2a63(0x1f1)]>0x0&&(_0x44646b[_0xfa2a63(0x217)]=_0x7e9321[_0xfa2a63(0x217)],_0x44646b[_0xfa2a63(0x20c)]=_0x7e9321[_0xfa2a63(0x20c)]),_0x44646b;}const LOCALE_MAP={'zh':a194_0x5bf277(0x1fa),'zh-cn':a194_0x5bf277(0x1fa),'zh_cn':a194_0x5bf277(0x1fa),'en':'en-US','en-us':a194_0x5bf277(0x1fd),'en_us':a194_0x5bf277(0x1fd)};export function normalizeLocale(_0x47571a){const _0x184188=a194_0x5bf277;if(!_0x47571a)return null;return LOCALE_MAP[_0x47571a[_0x184188(0x219)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4311f4,_0x2187d4){const _0x36dfe0=a195_0x1610,_0x532b5d=_0x4311f4();while(!![]){try{const _0xa6c0de=-parseInt(_0x36dfe0(0x112))/0x1*(parseInt(_0x36dfe0(0x11b))/0x2)+parseInt(_0x36dfe0(0x11c))/0x3*(-parseInt(_0x36dfe0(0x115))/0x4)+-parseInt(_0x36dfe0(0x116))/0x5*(parseInt(_0x36dfe0(0x119))/0x6)+-parseInt(_0x36dfe0(0x113))/0x7+parseInt(_0x36dfe0(0x117))/0x8*(-parseInt(_0x36dfe0(0x11a))/0x9)+-parseInt(_0x36dfe0(0x114))/0xa+parseInt(_0x36dfe0(0x118))/0xb;if(_0xa6c0de===_0x2187d4)break;else _0x532b5d['push'](_0x532b5d['shift']());}catch(_0x116d20){_0x532b5d['push'](_0x532b5d['shift']());}}}(a195_0x230f,0x57676));function a195_0x1610(_0x321823,_0x4a910f){_0x321823=_0x321823-0x112;const _0x230fce=a195_0x230f();let _0x1610eb=_0x230fce[_0x321823];return _0x1610eb;}export const CLI_VERSION_POLICY_URL='https://g.lovrabet.com/dist/rabetbase-cli/config/index.json';function a195_0x230f(){const _0x29b6aa=['29606214RZypBv','6AzfATx','9ROABqj','2vQCzdk','175227eWatUu','478358emTloa','2410254xJjyAc','5787860eqijKm','44pxuVta','127895CNZvcF','2111392wuFklg'];a195_0x230f=function(){return _0x29b6aa;};return a195_0x230f();}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a196_0x37c696=a196_0x3f0f;(function(_0x5d6335,_0x256b67){const _0xd76e75=a196_0x3f0f,_0x5b8fa7=_0x5d6335();while(!![]){try{const _0x1f0a81=parseInt(_0xd76e75(0x1b3))/0x1+parseInt(_0xd76e75(0x225))/0x2*(parseInt(_0xd76e75(0x203))/0x3)+-parseInt(_0xd76e75(0x1e6))/0x4*(parseInt(_0xd76e75(0x1e2))/0x5)+parseInt(_0xd76e75(0x205))/0x6+parseInt(_0xd76e75(0x1ba))/0x7+-parseInt(_0xd76e75(0x1ee))/0x8*(parseInt(_0xd76e75(0x220))/0x9)+parseInt(_0xd76e75(0x1f5))/0xa*(-parseInt(_0xd76e75(0x1ed))/0xb);if(_0x1f0a81===_0x256b67)break;else _0x5b8fa7['push'](_0x5b8fa7['shift']());}catch(_0x175aca){_0x5b8fa7['push'](_0x5b8fa7['shift']());}}}(a196_0x5b62,0xc963c));function a196_0x5b62(){const _0x49427d=['Target\x20path','type','operation','task-id','expect-parent-id','skipImports','Read\x20value\x20from\x20stdin','descriptionFile','Clear','fromEnv','functionNode','format','Watch\x20mode','schemas','Reveal\x20sensitive\x20value','non-interactive','json\x20|\x20pretty\x20|\x20compress','clear','meowKey','Confirm\x20destructive\x20action','281583CWWsqZ','sqlname','enableBffSave','parentId','output','434YscRUj','force','confirm','taskId','enable-bff-save','Description','global','Name','stdin','Operation\x20type','boolean','Read\x20value\x20from\x20environment\x20variable','pagesize','349169zWBZlH','Rabetbase\x20CLI','key','page','Tags','sort','Expected\x20current\x20parent\x20menu\x20id','7424263MZsYSh','Apply\x20to\x20all','title','fromEntries','production\x20|\x20daily','sqlName','value','Show\x20help','expectPath','Page\x20number','env','menu-ids','JSON\x20params','SQL\x20name','<code>','project','yes','Schemas','DB\x20ID','Config\x20value','Force\x20non-interactive\x20mode\x20(CI)','File\x20path','appcode','Comma-separated\x20menu\x20IDs','SQL\x20string','string','Menu\x20label','keyword','target','expected-children-count','map','name','expectedChildrenCount','watch','db-id','Skip\x20confirmation\x20for\x20high-risk\x20writes','<name>','Override\x20appcode','<expr>','expectedCount','122815OhMIsP','Config\x20key','help','SQL\x20code','8YuJGdw','code','Dataset\x20code','Force\x20overwrite','Menu\x20sort\x20value','from-env','Enable\x20BFF\x20save','715wASyvx','56sujdiG','remote','datasetcode','Expected\x20affected\x20count','dry-run','params','Title','382030kEltuI','Expected\x20current\x20menu\x20path','reveal','label','expectParentId','app','description-file','Environment','Record\x20ID','sqlcode','Page\x20size','Use\x20remote','dbId','verbose','12963lQAzpW','tags','7372722bxPacK','Skip\x20import\x20generation','Asynchronous\x20task\x20ID','parent-id','Description\x20file','Output\x20path','dbid'];a196_0x5b62=function(){return _0x49427d;};return a196_0x5b62();}export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME=a196_0x37c696(0x1b4);export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a196_0x37c696(0x1d0),'meowKey':a196_0x37c696(0x1d0),'type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x1df),'hint':a196_0x37c696(0x1c8)},{'name':'app','meowKey':'app','type':a196_0x37c696(0x1d3),'description':'Select\x20app\x20profile\x20by\x20name','hint':a196_0x37c696(0x1de)},{'name':'env','meowKey':a196_0x37c696(0x1c4),'type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x1fc),'hint':a196_0x37c696(0x1be)},{'name':a196_0x37c696(0x217),'meowKey':a196_0x37c696(0x217),'type':'string','description':'Output\x20format','hint':a196_0x37c696(0x21c)},{'name':'jq','meowKey':'jq','type':'string','description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a196_0x37c696(0x1e0)},{'name':a196_0x37c696(0x1f2),'meowKey':'dryRun','type':a196_0x37c696(0x1b0),'description':'Preview\x20operation\x20without\x20executing'},{'name':a196_0x37c696(0x1ca),'meowKey':a196_0x37c696(0x1ca),'type':'boolean','description':a196_0x37c696(0x1dd)},{'name':a196_0x37c696(0x21b),'meowKey':'nonInteractive','type':a196_0x37c696(0x1b0),'description':a196_0x37c696(0x1ce)},{'name':a196_0x37c696(0x1ac),'meowKey':a196_0x37c696(0x1ac),'type':a196_0x37c696(0x1b0),'description':'Use\x20global\x20config\x20scope'},{'name':'project','meowKey':a196_0x37c696(0x1c9),'type':a196_0x37c696(0x1b0),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a196_0x37c696(0x1b0),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a196_0x37c696(0x1e4),'meowKey':a196_0x37c696(0x1e4),'type':'boolean','description':a196_0x37c696(0x1c1)},{'name':a196_0x37c696(0x1d9),'meowKey':a196_0x37c696(0x1d9),'type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x1ad),'hidden':!![]},{'name':a196_0x37c696(0x1bc),'meowKey':a196_0x37c696(0x1bc),'type':'string','description':a196_0x37c696(0x1f4),'hidden':!![]},{'name':a196_0x37c696(0x21d),'meowKey':a196_0x37c696(0x21d),'type':'boolean','description':a196_0x37c696(0x214),'hidden':!![]},{'name':a196_0x37c696(0x1db),'meowKey':'watch','type':a196_0x37c696(0x1b0),'description':a196_0x37c696(0x218),'hidden':!![]},{'name':a196_0x37c696(0x224),'meowKey':a196_0x37c696(0x224),'type':'string','description':a196_0x37c696(0x20a),'hidden':!![]},{'name':a196_0x37c696(0x1f3),'meowKey':'params','type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x1c6),'hidden':!![]},{'name':'datasetcode','meowKey':a196_0x37c696(0x1f0),'type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x1e8),'hidden':!![]},{'name':'all','meowKey':'all','type':a196_0x37c696(0x1b0),'description':a196_0x37c696(0x1bb),'hidden':!![]},{'name':a196_0x37c696(0x1aa),'meowKey':a196_0x37c696(0x222),'type':a196_0x37c696(0x1b0),'description':a196_0x37c696(0x1ec),'hidden':!![]},{'name':'id','meowKey':'id','type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x1fd),'hidden':!![]},{'name':a196_0x37c696(0x20d),'meowKey':a196_0x37c696(0x20d),'type':a196_0x37c696(0x1d3),'description':'Type\x20filter','hidden':!![]},{'name':'file','meowKey':'file','type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x1cf),'hidden':!![]},{'name':a196_0x37c696(0x1fe),'meowKey':a196_0x37c696(0x1fe),'type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x1e5),'hidden':!![]},{'name':'sql-name','meowKey':a196_0x37c696(0x1bf),'type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x1c7),'hidden':!![]},{'name':a196_0x37c696(0x221),'meowKey':a196_0x37c696(0x221),'type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x1c7),'hidden':!![]},{'name':a196_0x37c696(0x1dc),'meowKey':a196_0x37c696(0x201),'type':'string','description':a196_0x37c696(0x1cc),'hidden':!![]},{'name':'dbid','meowKey':a196_0x37c696(0x20b),'type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x1cc),'hidden':!![]},{'name':'description','meowKey':'description','type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x1ab),'hidden':!![]},{'name':a196_0x37c696(0x1fb),'meowKey':a196_0x37c696(0x213),'type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x209),'hidden':!![]},{'name':a196_0x37c696(0x1b6),'meowKey':a196_0x37c696(0x1b6),'type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x1c3),'hidden':!![]},{'name':a196_0x37c696(0x1b2),'meowKey':'pagesize','type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x1ff),'hidden':!![]},{'name':a196_0x37c696(0x1d5),'meowKey':a196_0x37c696(0x1d5),'type':a196_0x37c696(0x1d3),'description':'Keyword\x20filter','hidden':!![]},{'name':a196_0x37c696(0x1e7),'meowKey':a196_0x37c696(0x1e7),'type':a196_0x37c696(0x1d3),'description':'Code\x20filter','hidden':!![]},{'name':'sql','meowKey':'sql','type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x1d2),'hidden':!![]},{'name':a196_0x37c696(0x219),'meowKey':a196_0x37c696(0x219),'type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x1cb),'hidden':!![]},{'name':'operation','meowKey':a196_0x37c696(0x20e),'type':'string','description':a196_0x37c696(0x1af),'hidden':!![]},{'name':a196_0x37c696(0x1d6),'meowKey':a196_0x37c696(0x1d6),'type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x20c),'hidden':!![]},{'name':'skip-imports','meowKey':a196_0x37c696(0x211),'type':a196_0x37c696(0x1b0),'description':a196_0x37c696(0x206),'hidden':!![]},{'name':a196_0x37c696(0x1b5),'meowKey':'key','type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x1e3),'hidden':!![]},{'name':a196_0x37c696(0x1c0),'meowKey':a196_0x37c696(0x1c0),'type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x1cd),'hidden':!![]},{'name':a196_0x37c696(0x204),'meowKey':a196_0x37c696(0x204),'type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x1b7),'hidden':!![]},{'name':a196_0x37c696(0x1ae),'meowKey':a196_0x37c696(0x1ae),'type':a196_0x37c696(0x1b0),'description':a196_0x37c696(0x212),'hidden':!![]},{'name':a196_0x37c696(0x1eb),'meowKey':a196_0x37c696(0x215),'type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x1b1),'hidden':!![]},{'name':a196_0x37c696(0x1f7),'meowKey':a196_0x37c696(0x1f7),'type':a196_0x37c696(0x1b0),'description':a196_0x37c696(0x21a),'hidden':!![]},{'name':'force','meowKey':a196_0x37c696(0x226),'type':a196_0x37c696(0x1b0),'description':a196_0x37c696(0x1e9),'hidden':!![]},{'name':a196_0x37c696(0x1a8),'meowKey':a196_0x37c696(0x1a8),'type':a196_0x37c696(0x1b0),'description':a196_0x37c696(0x21f),'hidden':!![]},{'name':a196_0x37c696(0x1ef),'meowKey':a196_0x37c696(0x1ef),'type':a196_0x37c696(0x1b0),'description':a196_0x37c696(0x200),'hidden':!![]},{'name':a196_0x37c696(0x202),'meowKey':a196_0x37c696(0x202),'type':a196_0x37c696(0x1b0),'description':'Verbose\x20output','hidden':!![]},{'name':'expected-count','meowKey':a196_0x37c696(0x1e1),'type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x1f1),'hidden':!![]},{'name':a196_0x37c696(0x1f8),'meowKey':'label','type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x1d4),'hidden':!![]},{'name':a196_0x37c696(0x208),'meowKey':a196_0x37c696(0x223),'type':'string','description':'Parent\x20menu\x20id','hidden':!![]},{'name':a196_0x37c696(0x1b8),'meowKey':a196_0x37c696(0x1b8),'type':'string','description':a196_0x37c696(0x1ea),'hidden':!![]},{'name':a196_0x37c696(0x210),'meowKey':a196_0x37c696(0x1f9),'type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x1b9),'hidden':!![]},{'name':'expect-path','meowKey':a196_0x37c696(0x1c2),'type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x1f6),'hidden':!![]},{'name':a196_0x37c696(0x1d7),'meowKey':a196_0x37c696(0x1da),'type':a196_0x37c696(0x1d3),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a196_0x37c696(0x1c5),'meowKey':'menuIds','type':'string','description':a196_0x37c696(0x1d1),'hidden':!![]},{'name':a196_0x37c696(0x20f),'meowKey':a196_0x37c696(0x1a9),'type':'string','description':a196_0x37c696(0x207),'hidden':!![]},{'name':'operation-type','meowKey':'operationType','type':a196_0x37c696(0x1d3),'description':a196_0x37c696(0x1af),'hidden':!![]},{'name':'function-node','meowKey':a196_0x37c696(0x216),'type':a196_0x37c696(0x1d3),'description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a196_0x37c696(0x1d0),a196_0x37c696(0x1fa),a196_0x37c696(0x1c4),a196_0x37c696(0x217),'jq',a196_0x37c696(0x1f2),a196_0x37c696(0x1ca),a196_0x37c696(0x21b),'ci']);function a196_0x3f0f(_0x395bc2,_0x2b478c){_0x395bc2=_0x395bc2-0x1a8;const _0x5b62a8=a196_0x5b62();let _0x3f0f5d=_0x5b62a8[_0x395bc2];return _0x3f0f5d;}export function buildMeowFlags(){const _0xc250=a196_0x37c696;return Object[_0xc250(0x1bd)](GLOBAL_FLAGS[_0xc250(0x1d8)](_0x3d42a8=>[_0x3d42a8[_0xc250(0x21e)],{'type':_0x3d42a8[_0xc250(0x20d)]}]));}
|
|
1
|
+
const a196_0x468652=a196_0x1a47;(function(_0x706442,_0x2af25f){const _0xe096d3=a196_0x1a47,_0x4562df=_0x706442();while(!![]){try{const _0x4479af=-parseInt(_0xe096d3(0x199))/0x1*(-parseInt(_0xe096d3(0x177))/0x2)+parseInt(_0xe096d3(0x198))/0x3+parseInt(_0xe096d3(0x128))/0x4*(parseInt(_0xe096d3(0x146))/0x5)+parseInt(_0xe096d3(0x12b))/0x6*(-parseInt(_0xe096d3(0x170))/0x7)+parseInt(_0xe096d3(0x12e))/0x8*(-parseInt(_0xe096d3(0x19e))/0x9)+parseInt(_0xe096d3(0x17d))/0xa+-parseInt(_0xe096d3(0x13e))/0xb*(-parseInt(_0xe096d3(0x15a))/0xc);if(_0x4479af===_0x2af25f)break;else _0x4562df['push'](_0x4562df['shift']());}catch(_0x2065fc){_0x4562df['push'](_0x4562df['shift']());}}}(a196_0x3f8c,0xd7514));export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME=a196_0x468652(0x124);export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':'appcode','type':a196_0x468652(0x19d),'description':a196_0x468652(0x193),'hint':a196_0x468652(0x18d)},{'name':a196_0x468652(0x16a),'meowKey':a196_0x468652(0x16a),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x130),'hint':a196_0x468652(0x164)},{'name':a196_0x468652(0x186),'meowKey':'env','type':'string','description':a196_0x468652(0x1a0),'hint':'production\x20|\x20daily'},{'name':a196_0x468652(0x185),'meowKey':a196_0x468652(0x185),'type':'string','description':a196_0x468652(0x14f),'hint':a196_0x468652(0x17a)},{'name':'jq','meowKey':'jq','type':a196_0x468652(0x19d),'description':a196_0x468652(0x139),'hint':a196_0x468652(0x140)},{'name':a196_0x468652(0x180),'meowKey':a196_0x468652(0x19f),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x14d)},{'name':a196_0x468652(0x14e),'meowKey':a196_0x468652(0x14e),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x157)},{'name':a196_0x468652(0x12c),'meowKey':a196_0x468652(0x135),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x158)},{'name':'global','meowKey':'global','type':'boolean','description':a196_0x468652(0x167)},{'name':'project','meowKey':'project','type':a196_0x468652(0x19a),'description':a196_0x468652(0x191)},{'name':'ci','meowKey':'ci','type':a196_0x468652(0x19a),'description':a196_0x468652(0x15c),'hidden':!![]},{'name':a196_0x468652(0x17e),'meowKey':a196_0x468652(0x17e),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x18b)},{'name':a196_0x468652(0x182),'meowKey':a196_0x468652(0x182),'type':a196_0x468652(0x19d),'description':'Name','hidden':!![]},{'name':'title','meowKey':'title','type':a196_0x468652(0x19d),'description':a196_0x468652(0x12a),'hidden':!![]},{'name':a196_0x468652(0x166),'meowKey':a196_0x468652(0x166),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x14c),'hidden':!![]},{'name':'watch','meowKey':a196_0x468652(0x17c),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x13c),'hidden':!![]},{'name':a196_0x468652(0x174),'meowKey':a196_0x468652(0x174),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x156),'hidden':!![]},{'name':a196_0x468652(0x150),'meowKey':a196_0x468652(0x150),'type':'string','description':'JSON\x20params','hidden':!![]},{'name':a196_0x468652(0x1a2),'meowKey':'datasetcode','type':a196_0x468652(0x19d),'description':'Dataset\x20code','hidden':!![]},{'name':'all','meowKey':a196_0x468652(0x196),'type':'boolean','description':a196_0x468652(0x126),'hidden':!![]},{'name':a196_0x468652(0x134),'meowKey':'enableBffSave','type':a196_0x468652(0x19a),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a196_0x468652(0x19d),'description':'Record\x20ID','hidden':!![]},{'name':a196_0x468652(0x13f),'meowKey':a196_0x468652(0x13f),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x18a),'hidden':!![]},{'name':'file','meowKey':a196_0x468652(0x169),'type':'string','description':'File\x20path','hidden':!![]},{'name':a196_0x468652(0x142),'meowKey':'sqlcode','type':a196_0x468652(0x19d),'description':a196_0x468652(0x17f),'hidden':!![]},{'name':a196_0x468652(0x190),'meowKey':a196_0x468652(0x179),'type':'string','description':a196_0x468652(0x144),'hidden':!![]},{'name':'sqlname','meowKey':a196_0x468652(0x165),'type':'string','description':a196_0x468652(0x144),'hidden':!![]},{'name':'db-id','meowKey':'dbId','type':a196_0x468652(0x19d),'description':a196_0x468652(0x18e),'hidden':!![]},{'name':a196_0x468652(0x12f),'meowKey':'dbid','type':'string','description':a196_0x468652(0x18e),'hidden':!![]},{'name':a196_0x468652(0x160),'meowKey':'description','type':'string','description':'Description','hidden':!![]},{'name':a196_0x468652(0x194),'meowKey':a196_0x468652(0x149),'type':'string','description':a196_0x468652(0x13b),'hidden':!![]},{'name':a196_0x468652(0x12d),'meowKey':a196_0x468652(0x12d),'type':a196_0x468652(0x19d),'description':'Page\x20number','hidden':!![]},{'name':a196_0x468652(0x138),'meowKey':a196_0x468652(0x138),'type':'string','description':'Page\x20size','hidden':!![]},{'name':a196_0x468652(0x14a),'meowKey':'keyword','type':'string','description':'Keyword\x20filter','hidden':!![]},{'name':a196_0x468652(0x159),'meowKey':a196_0x468652(0x159),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x1a1),'hidden':!![]},{'name':a196_0x468652(0x175),'meowKey':a196_0x468652(0x175),'type':'string','description':a196_0x468652(0x15b),'hidden':!![]},{'name':a196_0x468652(0x173),'meowKey':a196_0x468652(0x173),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x162),'hidden':!![]},{'name':'operation','meowKey':'operation','type':a196_0x468652(0x19d),'description':a196_0x468652(0x195),'hidden':!![]},{'name':a196_0x468652(0x168),'meowKey':'target','type':a196_0x468652(0x19d),'description':'Target\x20path','hidden':!![]},{'name':a196_0x468652(0x197),'meowKey':a196_0x468652(0x188),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x143),'hidden':!![]},{'name':a196_0x468652(0x13a),'meowKey':a196_0x468652(0x13a),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x147),'hidden':!![]},{'name':a196_0x468652(0x187),'meowKey':'value','type':a196_0x468652(0x19d),'description':a196_0x468652(0x19c),'hidden':!![]},{'name':'tags','meowKey':'tags','type':a196_0x468652(0x19d),'description':a196_0x468652(0x141),'hidden':!![]},{'name':a196_0x468652(0x192),'meowKey':'stdin','type':a196_0x468652(0x19a),'description':a196_0x468652(0x184),'hidden':!![]},{'name':a196_0x468652(0x129),'meowKey':a196_0x468652(0x14b),'type':a196_0x468652(0x19d),'description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':'reveal','meowKey':'reveal','type':a196_0x468652(0x19a),'description':a196_0x468652(0x18f),'hidden':!![]},{'name':a196_0x468652(0x125),'meowKey':a196_0x468652(0x125),'type':a196_0x468652(0x19a),'description':'Force\x20overwrite','hidden':!![]},{'name':a196_0x468652(0x13d),'meowKey':a196_0x468652(0x13d),'type':a196_0x468652(0x19a),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a196_0x468652(0x172),'meowKey':a196_0x468652(0x172),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x181),'hidden':!![]},{'name':a196_0x468652(0x152),'meowKey':a196_0x468652(0x152),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x16d),'hidden':!![]},{'name':a196_0x468652(0x16f),'meowKey':a196_0x468652(0x133),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x15f),'hidden':!![]},{'name':'label','meowKey':a196_0x468652(0x183),'type':a196_0x468652(0x19d),'description':'Menu\x20label','hidden':!![]},{'name':a196_0x468652(0x15d),'meowKey':a196_0x468652(0x176),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x145),'hidden':!![]},{'name':a196_0x468652(0x154),'meowKey':a196_0x468652(0x154),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x16e),'hidden':!![]},{'name':a196_0x468652(0x153),'meowKey':'expectParentId','type':a196_0x468652(0x19d),'description':a196_0x468652(0x148),'hidden':!![]},{'name':a196_0x468652(0x16b),'meowKey':a196_0x468652(0x136),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x16c),'hidden':!![]},{'name':a196_0x468652(0x189),'meowKey':a196_0x468652(0x15e),'type':a196_0x468652(0x19d),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a196_0x468652(0x18c),'meowKey':a196_0x468652(0x163),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x171),'hidden':!![]},{'name':a196_0x468652(0x131),'meowKey':a196_0x468652(0x132),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x151),'hidden':!![]},{'name':'operation-type','meowKey':a196_0x468652(0x137),'type':a196_0x468652(0x19d),'description':'Operation\x20type','hidden':!![]},{'name':'function-node','meowKey':a196_0x468652(0x178),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x155),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a196_0x468652(0x161),'app','env',a196_0x468652(0x185),'jq',a196_0x468652(0x180),'yes',a196_0x468652(0x12c),'ci']);export function buildMeowFlags(){const _0x4cda97=a196_0x468652;return Object[_0x4cda97(0x19b)](GLOBAL_FLAGS[_0x4cda97(0x17b)](_0x591430=>[_0x591430[_0x4cda97(0x127)],{'type':_0x591430['type']}]));}function a196_0x1a47(_0x740c17,_0x5f2265){_0x740c17=_0x740c17-0x124;const _0x3f8c57=a196_0x3f8c();let _0x1a478f=_0x3f8c57[_0x740c17];return _0x1a478f;}function a196_0x3f8c(){const _0x3a6ab2=['Reveal\x20sensitive\x20value','sql-name','Use\x20project\x20config\x20scope','stdin','Override\x20appcode','description-file','Operation\x20type','all','skip-imports','1471596aGdDvO','1334waxkpb','boolean','fromEntries','Config\x20value','string','77481gKsrRV','dryRun','Environment','Code\x20filter','datasetcode','Rabetbase\x20CLI','force','Apply\x20to\x20all','meowKey','12LLeRwk','from-env','Title','294OwCIDN','non-interactive','page','1608QaUsDD','dbid','Select\x20app\x20profile\x20by\x20name','task-id','taskId','expectedCount','enable-bff-save','nonInteractive','expectPath','operationType','pagesize','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','key','Description\x20file','Watch\x20mode','confirm','4477uHusVo','type','<expr>','Tags','sqlcode','Skip\x20import\x20generation','SQL\x20name','Parent\x20menu\x20id','1330190CuILXC','Config\x20key','Expected\x20current\x20parent\x20menu\x20id','descriptionFile','keyword','fromEnv','Clear','Preview\x20operation\x20without\x20executing','yes','Output\x20format','params','Asynchronous\x20task\x20ID','verbose','expect-parent-id','sort','Function\x20node','Output\x20path','Skip\x20confirmation\x20for\x20high-risk\x20writes','Force\x20non-interactive\x20mode\x20(CI)','code','408WguWza','SQL\x20string','Alias\x20for\x20--non-interactive','parent-id','expectedChildrenCount','Expected\x20affected\x20count','description','appcode','Schemas','menuIds','<name>','sqlname','clear','Use\x20global\x20config\x20scope','target','file','app','expect-path','Expected\x20current\x20menu\x20path','Verbose\x20output','Menu\x20sort\x20value','expected-count','195335HQaRlP','Comma-separated\x20menu\x20IDs','remote','schemas','output','sql','parentId','2336ogdmRy','functionNode','sqlName','json\x20|\x20pretty\x20|\x20compress','map','watch','11190980uOFbYL','help','SQL\x20code','dry-run','Use\x20remote','name','label','Read\x20value\x20from\x20stdin','format','env','value','skipImports','expected-children-count','Type\x20filter','Show\x20help','menu-ids','<code>','DB\x20ID'];a196_0x3f8c=function(){return _0x3a6ab2;};return a196_0x3f8c();}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a197_0x5b6e00=a197_0x2aad;(function(_0x6f3dd5,_0x445e23){const _0x422d30=a197_0x2aad,_0x569578=_0x6f3dd5();while(!![]){try{const _0x3e5020=parseInt(_0x422d30(0x183))/0x1+parseInt(_0x422d30(0x181))/0x2+parseInt(_0x422d30(0x17f))/0x3*(-parseInt(_0x422d30(0x187))/0x4)+parseInt(_0x422d30(0x184))/0x5*(-parseInt(_0x422d30(0x186))/0x6)+-parseInt(_0x422d30(0x182))/0x7+parseInt(_0x422d30(0x188))/0x8*(-parseInt(_0x422d30(0x185))/0x9)+parseInt(_0x422d30(0x17c))/0xa*(parseInt(_0x422d30(0x17e))/0xb);if(_0x3e5020===_0x445e23)break;else _0x569578['push'](_0x569578['shift']());}catch(_0x570e47){_0x569578['push'](_0x569578['shift']());}}}(a197_0x2782,0x46b3c));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a197_0x5b6e00(0x17d),'format':a197_0x5b6e00(0x18a),'locale':a197_0x5b6e00(0x189),'riskLevel':a197_0x5b6e00(0x180),'apiDir':DEFAULT_API_DIR};function a197_0x2aad(_0x410649,_0x4aebd5){_0x410649=_0x410649-0x17c;const _0x2782d1=a197_0x2782();let _0x2aad39=_0x2782d1[_0x410649];return _0x2aad39;}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a197_0x5b6e00(0x18a);function a197_0x2782(){const _0x1a916b=['10968dkqArb','90328ZagHPp','16gXpQYG','en-US','compress','6033470GBERIt','production','11FBzvWu','12jYgoeZ','high-risk-write','697886sdauiR','3874472lnNytw','110028JNkpkT','345isHSvz','12447XogaLA'];a197_0x2782=function(){return _0x1a916b;};return a197_0x2782();}
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a198_0x7c02cb=a198_0x5e59;(function(_0x252b6b,_0x51296a){const _0x132dd0=a198_0x5e59,_0x284e3f=_0x252b6b();while(!![]){try{const _0x1b4a71=parseInt(_0x132dd0(0x94))/0x1+parseInt(_0x132dd0(0x9e))/0x2*(-parseInt(_0x132dd0(0x9c))/0x3)+-parseInt(_0x132dd0(0xa6))/0x4*(-parseInt(_0x132dd0(0xa1))/0x5)+parseInt(_0x132dd0(0xa5))/0x6*(-parseInt(_0x132dd0(0x99))/0x7)+parseInt(_0x132dd0(0x9f))/0x8+-parseInt(_0x132dd0(0x9d))/0x9*(parseInt(_0x132dd0(0xa2))/0xa)+parseInt(_0x132dd0(0x98))/0xb;if(_0x1b4a71===_0x51296a)break;else _0x284e3f['push'](_0x284e3f['shift']());}catch(_0x17c66b){_0x284e3f['push'](_0x284e3f['shift']());}}}(a198_0x190c,0xccbe0));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x4289c3){const _0x28dfb5=a198_0x5e59;customApiDomain=_0x4289c3?.[_0x28dfb5(0x9a)],customUserDomain=_0x4289c3?.['userDomain'],customRuntimeDomain=_0x4289c3?.['runtimeDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a198_0x7c02cb(0x95):'https://user-daily.lovrabet.com');export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?'https://api.lovrabet.com':'https://daily-api.lovrabet.com');export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a198_0x7c02cb(0xa4):a198_0x7c02cb(0xa3));export const getAppDomain=()=>isProduction(getEnv())?a198_0x7c02cb(0xa0):a198_0x7c02cb(0x96);function a198_0x5e59(_0x5a0611,_0x45f059){_0x5a0611=_0x5a0611-0x94;const _0x190c0c=a198_0x190c();let _0x5e596f=_0x190c0c[_0x5a0611];return _0x5e596f;}function a198_0x190c(){const _0x4a8a28=['18918gJqTHD','1658vaexyM','2098472UdQAzH','https://app.lovrabet.com','13595BgGFhV','3190BkBGsd','https://daily-runtime.lovrabet.com','https://runtime.lovrabet.com','2672202avXQMZ','1708KqZxzz','487088MFlGdq','https://user.lovrabet.com','https://daily.lovrabet.com','/app/','23806860tetlPX','21yeoWCJ','apiDomain','/web-app/app/','4449GSgwzv'];a198_0x190c=function(){return _0x4a8a28;};return a198_0x190c();}export const getAppBaseUrl=_0x32fdba=>{const _0x1611e6=a198_0x7c02cb,_0x3a8bdf=encodeURIComponent(_0x32fdba['trim']());return isProduction(getEnv())?getAppDomain()+_0x1611e6(0x97)+_0x3a8bdf:getAppDomain()+_0x1611e6(0x9b)+_0x3a8bdf;};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a199_0x372c(_0x5923a1,_0x449db1){_0x5923a1=_0x5923a1-0x86;const _0x36493a=a199_0x3649();let _0x372c75=_0x36493a[_0x5923a1];return _0x372c75;}function a199_0x3649(){const _0x4f76f6=['development','dev','198291JzpAgv','634200hygHZW','3046484KjXnvA','2isCnFd','829228EPFOYQ','2816082suuFAA','daily','1315200IbwpuQ','5gzdsmJ','1043768gQzbih','production'];a199_0x3649=function(){return _0x4f76f6;};return a199_0x3649();}const a199_0x42cf14=a199_0x372c;(function(_0x662be0,_0x3ae75e){const _0x2941a3=a199_0x372c,_0xac0f94=_0x662be0();while(!![]){try{const _0x1067ea=parseInt(_0x2941a3(0x88))/0x1*(parseInt(_0x2941a3(0x8b))/0x2)+-parseInt(_0x2941a3(0x89))/0x3+-parseInt(_0x2941a3(0x8c))/0x4*(parseInt(_0x2941a3(0x90))/0x5)+parseInt(_0x2941a3(0x8f))/0x6+parseInt(_0x2941a3(0x8a))/0x7+parseInt(_0x2941a3(0x91))/0x8+-parseInt(_0x2941a3(0x8d))/0x9;if(_0x1067ea===_0x3ae75e)break;else _0xac0f94['push'](_0xac0f94['shift']());}catch(_0x218fe9){_0xac0f94['push'](_0xac0f94['shift']());}}}(a199_0x3649,0x3d6b1));export const RABETBASE_ENV_VALUES=[a199_0x42cf14(0x92),a199_0x42cf14(0x8e)];export function normalizeEnv(_0x1b978f){return _0x1b978f==='online'?'production':_0x1b978f;}export function isProduction(_0x3f3a08){const _0x4291c2=a199_0x42cf14;return normalizeEnv(_0x3f3a08)===_0x4291c2(0x92);}export function isDaily(_0x44a771){const _0x417802=a199_0x42cf14;return normalizeEnv(_0x44a771)===_0x417802(0x8e);}export function isDev(_0x133dbf){const _0x2eb48a=a199_0x42cf14,_0x4dd84c=normalizeEnv(_0x133dbf);return _0x4dd84c===_0x2eb48a(0x86)||_0x4dd84c===_0x2eb48a(0x87);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a199_0x42cf14(0x92));export function getEnv(){return env;}export function initEnv(_0x4a8160){env=normalizeEnv(_0x4a8160);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a200_0x460273=a200_0x8afe;(function(_0x3e5142,_0x96dc58){const _0x233823=a200_0x8afe,_0x1262a8=_0x3e5142();while(!![]){try{const _0x5df574=parseInt(_0x233823(0xa9))/0x1*(parseInt(_0x233823(0xb0))/0x2)+parseInt(_0x233823(0xa5))/0x3+parseInt(_0x233823(0xa4))/0x4+-parseInt(_0x233823(0xa7))/0x5*(parseInt(_0x233823(0xa8))/0x6)+parseInt(_0x233823(0xad))/0x7+-parseInt(_0x233823(0xaf))/0x8+-parseInt(_0x233823(0xa6))/0x9*(-parseInt(_0x233823(0xae))/0xa);if(_0x5df574===_0x96dc58)break;else _0x1262a8['push'](_0x1262a8['shift']());}catch(_0x118de6){_0x1262a8['push'](_0x1262a8['shift']());}}}(a200_0xbc91,0x8a1f3));function a200_0x8afe(_0x28f53b,_0x1594d2){_0x28f53b=_0x28f53b-0xa4;const _0xbc914a=a200_0xbc91();let _0x8afe03=_0xbc914a[_0x28f53b];return _0x8afe03;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a200_0x460273(0xac),a200_0x460273(0xaa),a200_0x460273(0xab)];function a200_0xbc91(){const _0x20d185=['2117726OzXflF','1660040gFfLNg','3079317nQAjBT','2423097CviOBU','3985fQpEAv','8418clwWBA','1UYbXHz','pretty','compress','json','116550fDJmae','10uWnfJJ','8818056xYCAVG'];a200_0xbc91=function(){return _0x20d185;};return a200_0xbc91();}
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a201_0x5834(){const _0x411546=['1791279fgpIOz','3408sNDhjn','2412mTqDoi','./src/api','26VvcayS','4807704UkiXlD','56073AOHvow','949iTiZjl','10ixUjMm','312930JuwgcI','24jfuwtc','105240nlSKnb','5OHayfd','3738097AkikDc'];a201_0x5834=function(){return _0x411546;};return a201_0x5834();}function a201_0x3ef1(_0x14eef2,_0x32b320){_0x14eef2=_0x14eef2-0xbc;const _0x5834e1=a201_0x5834();let _0x3ef110=_0x5834e1[_0x14eef2];return _0x3ef110;}const a201_0xe9f2a=a201_0x3ef1;(function(_0x11efc9,_0x1c9fbf){const _0x37aaf3=a201_0x3ef1,_0x8f55fb=_0x11efc9();while(!![]){try{const _0xf9f4c1=-parseInt(_0x37aaf3(0xc5))/0x1*(-parseInt(_0x37aaf3(0xc3))/0x2)+parseInt(_0x37aaf3(0xc0))/0x3*(parseInt(_0x37aaf3(0xc1))/0x4)+-parseInt(_0x37aaf3(0xbd))/0x5*(-parseInt(_0x37aaf3(0xc4))/0x6)+parseInt(_0x37aaf3(0xbf))/0x7*(-parseInt(_0x37aaf3(0xc9))/0x8)+-parseInt(_0x37aaf3(0xc8))/0x9+parseInt(_0x37aaf3(0xc7))/0xa*(-parseInt(_0x37aaf3(0xbe))/0xb)+-parseInt(_0x37aaf3(0xbc))/0xc*(parseInt(_0x37aaf3(0xc6))/0xd);if(_0xf9f4c1===_0x1c9fbf)break;else _0x8f55fb['push'](_0x8f55fb['shift']());}catch(_0x3aef08){_0x8f55fb['push'](_0x8f55fb['shift']());}}}(a201_0x5834,0x69a67));export const DEFAULT_API_DIR=a201_0xe9f2a(0xc2);
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a202_0x2027(){const _0x18f89f=['79533nwzxrT','write','high-risk-write','22070EXJutk','1668296aoSDCg','4238130TFwMSK','120RyNLee','7368585rduHPB','59606cyrMCO','110DqsZAt','6klQApE','44YibJgi','read','703592WTXpHE'];a202_0x2027=function(){return _0x18f89f;};return a202_0x2027();}function a202_0x7d6e(_0x242761,_0x33d985){_0x242761=_0x242761-0x18b;const _0x202748=a202_0x2027();let _0x7d6e07=_0x202748[_0x242761];return _0x7d6e07;}const a202_0x2ec335=a202_0x7d6e;(function(_0x55ac0d,_0x5026fb){const _0xc0c897=a202_0x7d6e,_0x890bcb=_0x55ac0d();while(!![]){try{const _0x4ae7b2=parseInt(_0xc0c897(0x197))/0x1*(parseInt(_0xc0c897(0x194))/0x2)+parseInt(_0xc0c897(0x196))/0x3*(parseInt(_0xc0c897(0x18b))/0x4)+-parseInt(_0xc0c897(0x193))/0x5+parseInt(_0xc0c897(0x191))/0x6+-parseInt(_0xc0c897(0x190))/0x7+parseInt(_0xc0c897(0x192))/0x8*(parseInt(_0xc0c897(0x18c))/0x9)+-parseInt(_0xc0c897(0x18f))/0xa*(parseInt(_0xc0c897(0x195))/0xb);if(_0x4ae7b2===_0x5026fb)break;else _0x890bcb['push'](_0x890bcb['shift']());}catch(_0x19afae){_0x890bcb['push'](_0x890bcb['shift']());}}}(a202_0x2027,0xbb7b3));export const RISK_LEVEL_VALUES=[a202_0x2ec335(0x198),a202_0x2ec335(0x18d),a202_0x2ec335(0x18e)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a203_0x4480(_0x18d2e7,_0x229b3f){_0x18d2e7=_0x18d2e7-0x9e;const _0x43d333=a203_0x43d3();let _0x44807d=_0x43d333[_0x18d2e7];return _0x44807d;}(function(_0x5566a7,_0x3d39a0){const _0x2d8e9a=a203_0x4480,_0x3ce83d=_0x5566a7();while(!![]){try{const _0x40c06c=parseInt(_0x2d8e9a(0xb6))/0x1*(-parseInt(_0x2d8e9a(0xca))/0x2)+parseInt(_0x2d8e9a(0xc8))/0x3*(-parseInt(_0x2d8e9a(0x9f))/0x4)+parseInt(_0x2d8e9a(0xb7))/0x5+parseInt(_0x2d8e9a(0xba))/0x6*(parseInt(_0x2d8e9a(0xa3))/0x7)+-parseInt(_0x2d8e9a(0xbd))/0x8*(parseInt(_0x2d8e9a(0xc7))/0x9)+parseInt(_0x2d8e9a(0xcd))/0xa+parseInt(_0x2d8e9a(0xa9))/0xb;if(_0x40c06c===_0x3d39a0)break;else _0x3ce83d['push'](_0x3ce83d['shift']());}catch(_0x2d9d35){_0x3ce83d['push'](_0x3ce83d['shift']());}}}(a203_0x43d3,0x96d0b));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x4b3e7c){const _0x413c19=a203_0x4480;return typeof _0x4b3e7c===_0x413c19(0xb3)&&_0x4b3e7c[_0x413c19(0xc0)]()?_0x4b3e7c[_0x413c19(0xc0)]():undefined;}function appProfiles(_0x281994){const _0x2acf77=a203_0x4480;return _0x281994[_0x2acf77(0xb5)]&&typeof _0x281994[_0x2acf77(0xb5)]==='object'?_0x281994[_0x2acf77(0xb5)]:{};}function resolveDefaultAppName(_0x79f0f6){const _0x26ff40=a203_0x4480,_0x3ff3d0=stringConfigValue(_0x79f0f6[_0x26ff40(0x9e)]);if(_0x3ff3d0)return _0x3ff3d0;return Object[_0x26ff40(0xc6)](appProfiles(_0x79f0f6))[0x0];}function resolveTopLevelAppCode(_0xb8080a){const _0xe96f22=a203_0x4480;return stringConfigValue(_0xb8080a['appcode'])||stringConfigValue(_0xb8080a[_0xe96f22(0xc1)]);}function normalizeRiskCeiling(_0x3a2533){const _0x448fa3=a203_0x4480;if(_0x3a2533===undefined||_0x3a2533===null)return undefined;if(_0x3a2533===_0x448fa3(0xa0)||_0x3a2533===_0x448fa3(0xcc)||_0x3a2533===_0x448fa3(0xc3))return _0x3a2533;return _0x448fa3(0xa0);}function a203_0x43d3(){const _0x14f2c8=['1875663abzWXw','517938NtGpoi','MAX_RISK','786974UCoMnG','APP','write','6185340lUTKEb','ENV','defaultApp','4nMjvJU','read','production','ACCESS_KEY','2164463KVDUFT','prototype','pageSize','maxRisk','object','appcode','5124185dECnNc','inherit','projectConfig','call','locale','true','globalConfig','apiDir','VERBOSE','riskLevel','string','format','apps','1mrZCEM','1069555LdfZmL','length','cookie','18UKiTbP','find','PAGE_SIZE','40QtQYLW','accessKey','env','trim','app','hasOwnProperty','high-risk-write','RISK_LEVEL','daily','keys'];a203_0x43d3=function(){return _0x14f2c8;};return a203_0x43d3();}function resolveRiskCeiling(..._0x2b8845){const _0xbbcd83=a203_0x4480;let _0x26ecae=DEFAULT_CONFIG_VALUES[_0xbbcd83(0xb2)];for(const _0x36cc05 of _0x2b8845){const _0x96e598=normalizeRiskCeiling(_0x36cc05);_0x96e598&&riskLevelOrder(_0x96e598)<riskLevelOrder(_0x26ecae)&&(_0x26ecae=_0x96e598);}return _0x26ecae;}function configuredRiskCeilings(_0xc5c479){const _0x117c47=a203_0x4480;return[...Object[_0x117c47(0xa4)][_0x117c47(0xc2)][_0x117c47(0xac)](_0xc5c479,_0x117c47(0xa6))?[_0xc5c479[_0x117c47(0xa6)]]:[],...Object['prototype']['hasOwnProperty'][_0x117c47(0xac)](_0xc5c479,'riskLevel')?[_0xc5c479[_0x117c47(0xb2)]]:[]];}export function resolveAppConfig({raw:_0x14a502,flags:_0x25ac38,layers:_0x4db634,readEnv:_0x24710c}){const _0x4c5d10=a203_0x4480,_0x98a7d4=_0x4db634?.['projectConfig']??{},_0x1a8c1b=_0x4db634?.[_0x4c5d10(0xaf)]??{},_0xf7c9f3=Object[_0x4c5d10(0xc6)](_0x98a7d4)[_0x4c5d10(0xb8)]>0x0,_0xd3aafb=!_0xf7c9f3||_0x98a7d4[_0x4c5d10(0xaa)]===!![],_0x4254fd=_0xf7c9f3?resolveDefaultAppName(_0x98a7d4):undefined,_0x17f3f4=_0xd3aafb?resolveDefaultAppName(_0x1a8c1b):undefined,_0x4a6666=stringConfigValue(_0x25ac38['app']),_0x1d27b0=_0x24710c(_0x4c5d10(0xcb)),_0x346a88={};if(_0x14a502[_0x4c5d10(0xb5)]&&typeof _0x14a502[_0x4c5d10(0xb5)]===_0x4c5d10(0xa7))for(const [_0x4fa538,_0x2e9c63]of Object['entries'](_0x14a502['apps'])){_0x2e9c63&&typeof _0x2e9c63===_0x4c5d10(0xa7)&&_0x2e9c63['appcode']&&(_0x346a88[_0x4fa538]=_0x2e9c63);}const _0x219d2b=_0x14a502[_0x4c5d10(0x9e)]||undefined,_0xfae846=Object['keys'](_0x346a88)[_0x4c5d10(0xb8)]>0x0,_0x53a7cf=_0x4a6666||_0x4254fd||_0x1d27b0||_0x17f3f4||_0x219d2b||undefined,_0x2b40e2=stringConfigValue(_0x25ac38[_0x4c5d10(0xa8)]),_0x5c8b71=_0x2b40e2?Object['entries'](_0x346a88)[_0x4c5d10(0xbb)](([,_0x5982cc])=>_0x5982cc?.[_0x4c5d10(0xa8)]===_0x2b40e2):undefined,_0x31bba9=_0x5c8b71?.[0x0],_0x3b6c0a=_0x5c8b71?.[0x1],_0x3bcfaf=_0x2b40e2?_0x31bba9:_0x53a7cf;let _0x29b975=_0x3bcfaf&&_0x346a88[_0x3bcfaf]?_0x346a88[_0x3bcfaf]:undefined;_0x2b40e2&&_0x3b6c0a&&(_0x29b975=_0x3b6c0a);const _0xd386b7=_0x2b40e2?_0x3b6c0a??_0x29b975:_0x29b975,_0x57a4ed=!_0x4a6666&&!_0x4254fd&&_0x1d27b0&&_0x3bcfaf===_0x1d27b0,_0x50efaf=_0x4a6666||(_0x57a4ed?_0x1d27b0:undefined)||(_0x2b40e2?_0x31bba9:undefined),_0xdd6f75=_0xd386b7?.[_0x4c5d10(0xa8)],_0x54b8a5=_0xf7c9f3?resolveTopLevelAppCode(_0x98a7d4):undefined,_0x53afdd=_0xd3aafb?resolveTopLevelAppCode(_0x1a8c1b):undefined,_0x31834d=_0x4a6666||_0x4254fd?_0xdd6f75:undefined,_0x295537=!_0x4a6666&&!_0x4254fd?_0xdd6f75:undefined,_0xab731d=_0x2b40e2||_0x31834d||_0x54b8a5||_0x295537||_0x53afdd||undefined,_0x112d61=_0xf7c9f3?stringConfigValue(_0x98a7d4[_0x4c5d10(0xbf)]):undefined,_0x24c193=_0xd3aafb?stringConfigValue(_0x1a8c1b[_0x4c5d10(0xbf)]):undefined,_0x10302c=_0x25ac38['env']||_0xd386b7?.[_0x4c5d10(0xbf)]||_0x112d61||_0x24710c(_0x4c5d10(0xce))||_0x24c193||_0x14a502[_0x4c5d10(0xbf)]||DEFAULT_CONFIG_VALUES[_0x4c5d10(0xbf)],_0x15b8d6=_0xd386b7?.[_0x4c5d10(0xad)]||_0x14a502['locale']||DEFAULT_CONFIG_VALUES[_0x4c5d10(0xad)],_0x337a65=_0x24710c('COOKIE')||_0xd386b7?.[_0x4c5d10(0xb9)]||_0x14a502[_0x4c5d10(0xb9)]||undefined,_0x59b4e1=_0x24710c(_0x4c5d10(0xa2))||_0xd386b7?.[_0x4c5d10(0xbe)]||_0x14a502[_0x4c5d10(0xbe)]||undefined,_0x35a401=_0x25ac38['format']||_0x24710c('FORMAT')||_0xd386b7?.['format']||_0x14a502[_0x4c5d10(0xb4)],_0x43fb86=normalizeLegacyOutputFormat(_0x35a401),_0x1f5929=_0x24710c(_0x4c5d10(0xbc))||_0xd386b7?.['pageSize']||_0x14a502[_0x4c5d10(0xa5)],_0x303d19=_0x1f5929?Number(_0x1f5929)||undefined:undefined,_0x2142ef=_0x4db634?[...configuredRiskCeilings(_0x4db634[_0x4c5d10(0xaf)]),...configuredRiskCeilings(_0x4db634[_0x4c5d10(0xab)])]:configuredRiskCeilings(_0x14a502),_0x58917c=resolveRiskCeiling(..._0x2142ef,_0xd386b7?.[_0x4c5d10(0xb2)],_0x24710c(_0x4c5d10(0xc4)),_0x24710c(_0x4c5d10(0xc9))),_0x3821a7=_0x24710c(_0x4c5d10(0xb1)),_0x40b4c8=_0x3821a7==='1'||_0x3821a7===_0x4c5d10(0xae),_0x4d46a3=_0xd386b7?.[_0x4c5d10(0xb0)]||_0x14a502[_0x4c5d10(0xb0)]||DEFAULT_CONFIG_VALUES[_0x4c5d10(0xb0)],_0xc325cb=isDaily(normalizeEnv(String(_0x10302c)))?_0x4c5d10(0xc5):_0x4c5d10(0xa1);return{'appCode':typeof _0xab731d===_0x4c5d10(0xb3)&&_0xab731d[_0x4c5d10(0xc0)]()?_0xab731d[_0x4c5d10(0xc0)]():undefined,'env':_0xc325cb,'locale':_0x15b8d6,'cookie':_0x337a65,'accessKey':_0x59b4e1,'format':_0x43fb86,'pageSize':_0x303d19,'riskLevel':_0x58917c,'verbose':_0x40b4c8,'apiDir':_0x4d46a3,'apps':_0x346a88,'defaultApp':_0x219d2b,'currentApp':_0xfae846?_0x3bcfaf:undefined,'explicitAppName':_0x50efaf};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4d76eb,_0x52382e){const _0x17b355=a204_0x11b1,_0x27c970=_0x4d76eb();while(!![]){try{const _0x5a08f7=parseInt(_0x17b355(0xc8))/0x1+parseInt(_0x17b355(0xce))/0x2*(-parseInt(_0x17b355(0xc7))/0x3)+-parseInt(_0x17b355(0xc5))/0x4*(-parseInt(_0x17b355(0xc4))/0x5)+parseInt(_0x17b355(0xcb))/0x6+parseInt(_0x17b355(0xcc))/0x7*(-parseInt(_0x17b355(0xc2))/0x8)+-parseInt(_0x17b355(0xc9))/0x9*(parseInt(_0x17b355(0xca))/0xa)+parseInt(_0x17b355(0xc1))/0xb;if(_0x5a08f7===_0x52382e)break;else _0x27c970['push'](_0x27c970['shift']());}catch(_0x42ada1){_0x27c970['push'](_0x27c970['shift']());}}}(a204_0x1991,0xe18f7));function a204_0x11b1(_0xcfe25e,_0x375440){_0xcfe25e=_0xcfe25e-0xc1;const _0x1991e3=a204_0x1991();let _0x11b19f=_0x1991e3[_0xcfe25e];return _0x11b19f;}import{getIsSessionValid}from'../auth/is-session-valid.js';function a204_0x1991(){const _0x3e5383=['21170BKJtaF','9930216YYXDrI','7DpdMjk','cookie','4czwDSo','2817463hfuuDo','8163016wtsbzz','authRequired','5HYwpzg','1057428MXmfFw','../auth/get-cookie.js','2040117JcFuPL','1533171cTtZGT','1719AOJVkZ'];a204_0x1991=function(){return _0x3e5383;};return a204_0x1991();}import{CliErrors}from'../errors.js';export async function buildAuth(_0x302a88){const _0x79ab5b=a204_0x11b1,{getCookie:_0x46af09}=await import(_0x79ab5b(0xc6)),_0x256219=_0x302a88[_0x79ab5b(0xcd)]||_0x46af09(),_0x57f1b6=_0x256219?await getIsSessionValid():![];return{'cookie':_0x256219,'isLoggedIn':_0x57f1b6,async 'getOrLogin'(){const _0x1a1b3d=_0x79ab5b;if(_0x256219&&_0x57f1b6)return _0x256219;throw CliErrors[_0x1a1b3d(0xc3)]();}};}
|