@lovrabet/rabetbase-cli 2.5.2-beta.7 → 2.5.3-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.d.ts +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.d.ts +2 -1
- package/lib/api/generate-sdk-config-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/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.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/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.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-restore.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/dataset/user-deleted-field-list.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-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.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/table-diff-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/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.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/search.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/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.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/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.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/domain-routing-sync.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/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/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.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/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.d.ts +23 -0
- package/lib/config/region-config.js +1 -0
- package/lib/config/schema.d.ts +15 -0
- 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/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.d.ts +6 -0
- 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.d.ts +13 -0
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +2 -0
- 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/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.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/page/lr-smart-jsx.d.ts +6 -0
- package/lib/core/page/lr-smart-jsx.js +1 -0
- 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/supported-flags.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/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.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/types/index.d.ts +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.d.ts +2 -8
- package/lib/utils/config.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/sleep.js +1 -1
- package/lib/utils/template-replacer.d.ts +2 -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
- package/skills/rabetbase/SKILL.md +6 -5
- package/skills/rabetbase/guides/page-development-workflow.md +3 -0
- package/skills/rabetbase/guides/sdk-client-generation.md +5 -5
- package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +11 -3
- package/skills/rabetbase/references/rabetbase-api-pull.md +5 -4
- package/skills/rabetbase/references/rabetbase-app-list.md +3 -0
- package/skills/rabetbase/references/rabetbase-bff-list.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-pull.md +2 -0
- package/skills/rabetbase/references/rabetbase-bff-status.md +2 -0
- package/skills/rabetbase/references/rabetbase-config.md +10 -9
- package/skills/rabetbase/references/rabetbase-doctor.md +2 -2
- package/skills/rabetbase/references/rabetbase-page-push.md +5 -1
- package/skills/rabetbase/references/rabetbase-workspace.md +4 -2
- package/skills/rabetbase.manifest.json +3 -3
- package/templates/generate-api/client.ts.tpl +1 -1
package/lib/config/schema.d.ts
CHANGED
|
@@ -19,11 +19,16 @@ export declare function getAppProfileFlagDefs(): FlagDef[];
|
|
|
19
19
|
export declare function collectAppProfileOverrides(getFlagValue: (name: string) => string): Record<string, any>;
|
|
20
20
|
export declare function buildAppProfileListFields(profile: Record<string, any>): Record<string, unknown>;
|
|
21
21
|
export declare function buildAppDoctorFields(profile: Record<string, any>, effective: {
|
|
22
|
+
region: string;
|
|
22
23
|
env: string;
|
|
23
24
|
apiDir: string;
|
|
24
25
|
cookie?: string;
|
|
25
26
|
accessKey?: string;
|
|
26
27
|
}): {
|
|
28
|
+
region: {
|
|
29
|
+
value: string;
|
|
30
|
+
source: "app" | "inherit";
|
|
31
|
+
};
|
|
27
32
|
env: {
|
|
28
33
|
value: string;
|
|
29
34
|
source: "app" | "inherit";
|
|
@@ -49,4 +54,14 @@ export declare function buildCanonicalProjectConfig(base: Record<string, unknown
|
|
|
49
54
|
env?: string;
|
|
50
55
|
metadata?: ConfigMetadataFields;
|
|
51
56
|
}): Record<string, any>;
|
|
57
|
+
/**
|
|
58
|
+
* Return the public on-disk configuration without persisting the default
|
|
59
|
+
* internal routing mode. Historical files remain readable; every CLI write
|
|
60
|
+
* converges them to the minimal representation.
|
|
61
|
+
*
|
|
62
|
+
* When a non-default top-level value coexists with an explicit default app
|
|
63
|
+
* override, move the inherited value into the other profiles first. This
|
|
64
|
+
* preserves effective routing while still removing every default marker.
|
|
65
|
+
*/
|
|
66
|
+
export declare function normalizeConfigForWrite(input: Record<string, any>): Record<string, any>;
|
|
52
67
|
export declare function normalizeLocale(value: string): "zh-CN" | "en-US" | null;
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a230_0xa77104=a230_0x4ff9;(function(_0x4c83f2,_0xd2be60){const _0x3795bf=a230_0x4ff9,_0x2a46a7=_0x4c83f2();while(!![]){try{const _0x309952=parseInt(_0x3795bf(0x1bf))/0x1+parseInt(_0x3795bf(0x1b3))/0x2+parseInt(_0x3795bf(0x1bd))/0x3+-parseInt(_0x3795bf(0x1a0))/0x4+parseInt(_0x3795bf(0x1ba))/0x5+-parseInt(_0x3795bf(0x190))/0x6+-parseInt(_0x3795bf(0x1c4))/0x7;if(_0x309952===_0xd2be60)break;else _0x2a46a7['push'](_0x2a46a7['shift']());}catch(_0xb8a6a2){_0x2a46a7['push'](_0x2a46a7['shift']());}}}(a230_0x1c90,0xbef5c));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,isProduction,RABETBASE_ENV_VALUES}from'../constant/env.js';function a230_0x1c90(){const _0x2b83e6=['number','en-US','867020rtPaxl','pageSize','Target\x20environment','8434830OUUUSo','kbDomain','string','env','riskLevel','join','cookie','entries','some','inherit','toLowerCase','trim','app','isArray','object','certificateDomain','2925468EMTPVW','defaultApp','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','Auth\x20cookie','zh-CN','appDomain','accessKey','length','region','userDomain','format','map','API\x20directory\x20path','Config\x20key\x20(','Risk\x20level','apps','skillDomain','keys','Access\x20key','1167828Mynlqq','runtimeDomain','values','apiDomain','filter','Default\x20page\x20size','localDomain','6570745VMIddl','has','defaultFormat','2817321EekmXr','apiDir','206034SfJqKw','fromEntries','locale'];a230_0x1c90=function(){return _0x2b83e6;};return a230_0x1c90();}import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie',a230_0xa77104(0x1a6),a230_0xa77104(0x1c1),a230_0xa77104(0x1aa),'riskLevel',a230_0xa77104(0x1a8),'routing',a230_0xa77104(0x1a9),'apiDomain',a230_0xa77104(0x1b4),a230_0xa77104(0x1b0),'kbDomain','appDomain',a230_0xa77104(0x1b9),a230_0xa77104(0x19f)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode','env',a230_0xa77104(0x1c1),a230_0xa77104(0x1aa),'cookie',a230_0xa77104(0x1a6),a230_0xa77104(0x1be),'region','userDomain',a230_0xa77104(0x1b6),a230_0xa77104(0x1b4),a230_0xa77104(0x1b0),a230_0xa77104(0x191),a230_0xa77104(0x1a5),a230_0xa77104(0x1b9),a230_0xa77104(0x19f)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x25f9f6){const _0x498d24=a230_0xa77104;return[..._0x25f9f6][_0x498d24(0x195)](',\x20');}function a230_0x4ff9(_0x3dc027,_0x2fbadb){_0x3dc027=_0x3dc027-0x18e;const _0x1c908d=a230_0x1c90();let _0x4ff954=_0x1c908d[_0x3dc027];return _0x4ff954;}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x276069){const _0x6fe5be=a230_0xa77104;return TOP_LEVEL_CONFIG_KEYS[_0x6fe5be(0x1bb)](_0x276069);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x1faac2=a230_0xa77104;return _0x1faac2(0x1ad)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'region':'region','env':a230_0xa77104(0x193),'apiDir':a230_0xa77104(0x1be),'cookie':a230_0xa77104(0x196),'accessKey':'accessKey','defaultFormat':'format','pageSize':a230_0xa77104(0x18e),'riskLevel':a230_0xa77104(0x194),'locale':a230_0xa77104(0x1c1)};export function getAppProfileFlagDefs(){const _0x33769c=a230_0xa77104;return[{'name':_0x33769c(0x1a8),'type':_0x33769c(0x192),'description':'Country/region\x20for\x20this\x20app\x20profile','enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':'env','type':_0x33769c(0x192),'description':_0x33769c(0x18f),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x33769c(0x1be),'type':_0x33769c(0x192),'description':_0x33769c(0x1ac)},{'name':'cookie','type':'string','description':_0x33769c(0x1a3),'hidden':!![]},{'name':_0x33769c(0x1a6),'type':'string','description':_0x33769c(0x1b2),'hidden':!![]},{'name':_0x33769c(0x1bc),'type':_0x33769c(0x192),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x33769c(0x18e),'type':_0x33769c(0x1c2),'description':_0x33769c(0x1b8)},{'name':_0x33769c(0x194),'type':_0x33769c(0x192),'description':_0x33769c(0x1ae),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x33769c(0x192),'description':_0x33769c(0x1a2)}];}export function collectAppProfileOverrides(_0x1536b0){const _0x44aae8=a230_0xa77104,_0x8cfa19={};for(const [_0x37e8b1,_0x4412e4]of Object[_0x44aae8(0x197)](APP_PROFILE_FLAG_KEY_MAP)){const _0x3e4756=_0x1536b0(_0x37e8b1);if(!_0x3e4756)continue;_0x8cfa19[_0x4412e4]=_0x4412e4==='pageSize'?Number(_0x3e4756):_0x3e4756;}return _0x8cfa19;}export function buildAppProfileListFields(_0x53278d){const _0x317944=a230_0xa77104;return{'region':_0x53278d[_0x317944(0x1a8)]??null,'env':_0x53278d['env']??null,'apiDir':_0x53278d[_0x317944(0x1be)]??null,'hasCookie':!!_0x53278d['cookie'],'hasAccessKey':!!_0x53278d[_0x317944(0x1a6)],'format':_0x53278d[_0x317944(0x1aa)]??null,'pageSize':_0x53278d['pageSize']??null,'riskLevel':_0x53278d[_0x317944(0x194)]??null,'locale':_0x53278d[_0x317944(0x1c1)]??null};}export function buildAppDoctorFields(_0x40442e,_0x209e8f){const _0x5a873d=a230_0xa77104;return{'region':{'value':_0x40442e[_0x5a873d(0x1a8)]||_0x209e8f[_0x5a873d(0x1a8)],'source':_0x40442e[_0x5a873d(0x1a8)]?'app':_0x5a873d(0x199)},'env':{'value':_0x40442e[_0x5a873d(0x193)]||_0x209e8f[_0x5a873d(0x193)],'source':_0x40442e[_0x5a873d(0x193)]?_0x5a873d(0x19c):_0x5a873d(0x199)},'apiDir':{'value':_0x40442e['apiDir']||_0x209e8f[_0x5a873d(0x1be)],'source':_0x40442e[_0x5a873d(0x1be)]?_0x5a873d(0x19c):_0x5a873d(0x199)},'cookie':{'value':_0x40442e[_0x5a873d(0x196)]||_0x209e8f[_0x5a873d(0x196)],'source':_0x40442e[_0x5a873d(0x196)]?_0x5a873d(0x19c):_0x5a873d(0x199)},'accessKey':{'value':_0x40442e[_0x5a873d(0x1a6)]||_0x209e8f[_0x5a873d(0x1a6)],'source':_0x40442e[_0x5a873d(0x1a6)]?_0x5a873d(0x19c):_0x5a873d(0x199)}};}export function buildCanonicalAppConfig(_0x421625,_0x59e579){const _0xb0df4a=a230_0xa77104,_0x2c7559=_0x421625['map'](_0x28a78f=>String(_0x28a78f||'')[_0xb0df4a(0x19b)]())[_0xb0df4a(0x1b7)](Boolean);if(_0x2c7559[_0xb0df4a(0x1a7)]===0x0)return{};const _0x4bc7d3={};for(const _0xae9f3 of _0x2c7559){_0x4bc7d3[_0xae9f3]=_0x59e579&&!isProduction(_0x59e579)?{'appcode':_0xae9f3,'env':_0x59e579}:{'appcode':_0xae9f3};}return _0x2c7559[_0xb0df4a(0x1a7)]>0x1?{'apps':_0x4bc7d3,'defaultApp':_0x2c7559[0x0]}:{'apps':_0x4bc7d3};}export function normalizeStoredDefaultApp(_0x1ceee3,_0x26d3c0){const _0x2bb82e=a230_0xa77104,_0x11af60=_0x1ceee3[_0x2bb82e(0x1af)]&&typeof _0x1ceee3[_0x2bb82e(0x1af)]===_0x2bb82e(0x19e)?_0x1ceee3[_0x2bb82e(0x1af)]:{},_0x446d9d=Object[_0x2bb82e(0x1b1)](_0x11af60);if(_0x446d9d['length']<=0x1)return delete _0x1ceee3[_0x2bb82e(0x1a1)],undefined;const _0xcc543c=typeof _0x1ceee3['defaultApp']===_0x2bb82e(0x192)&&_0x11af60[_0x1ceee3[_0x2bb82e(0x1a1)]]?_0x1ceee3[_0x2bb82e(0x1a1)]:undefined,_0x4948d8=_0x26d3c0&&_0x11af60[_0x26d3c0]?_0x26d3c0:_0xcc543c;if(_0x4948d8)return _0x1ceee3[_0x2bb82e(0x1a1)]=_0x4948d8,_0x4948d8;return delete _0x1ceee3[_0x2bb82e(0x1a1)],undefined;}export function buildCanonicalProjectConfig(_0x5e5e1d,_0x397eec){const _0x5b4687=a230_0xa77104,{appCodes:appCodes=[],env:_0x5734c2,metadata:_0x18963f}=_0x397eec,_0xba0724={..._0x5e5e1d,..._0x18963f||{}};delete _0xba0724['appcode'],delete _0xba0724['app'];const _0x189f8d=_0x5734c2||(typeof _0xba0724[_0x5b4687(0x193)]===_0x5b4687(0x192)?_0xba0724[_0x5b4687(0x193)]:'')||DEFAULT_CONFIG_VALUES['env'];if(isProduction(_0x189f8d))delete _0xba0724[_0x5b4687(0x193)];else _0xba0724['env']=_0x189f8d;const _0x2ea018=buildCanonicalAppConfig(appCodes,_0x189f8d);if(Object[_0x5b4687(0x1b1)](_0x2ea018)['length']>0x0){_0xba0724['apps']=_0x2ea018[_0x5b4687(0x1af)];if(_0x2ea018['defaultApp'])_0xba0724[_0x5b4687(0x1a1)]=_0x2ea018['defaultApp'];else delete _0xba0724['defaultApp'];}return normalizeConfigForWrite(_0xba0724);}function isRecord(_0x185de6){const _0xce06a9=a230_0xa77104;return!!_0x185de6&&typeof _0x185de6===_0xce06a9(0x19e)&&!Array[_0xce06a9(0x19d)](_0x185de6);}export function normalizeConfigForWrite(_0x55e1ac){const _0xfd7fe0=a230_0xa77104,_0x34e03d={..._0x55e1ac},_0xe95c70=isRecord(_0x55e1ac[_0xfd7fe0(0x1af)])?_0x55e1ac['apps']:undefined,_0x421f14=_0xe95c70?Object[_0xfd7fe0(0x1c0)](Object['entries'](_0xe95c70)[_0xfd7fe0(0x1ab)](([_0x1f4a83,_0x1dc2be])=>[_0x1f4a83,isRecord(_0x1dc2be)?{..._0x1dc2be}:_0x1dc2be])):undefined;if(_0x421f14){const _0x552a50=typeof _0x34e03d[_0xfd7fe0(0x193)]===_0xfd7fe0(0x192)?_0x34e03d[_0xfd7fe0(0x193)]:undefined,_0x34f05c=Object[_0xfd7fe0(0x1b5)](_0x421f14)[_0xfd7fe0(0x198)](_0x3478fb=>isRecord(_0x3478fb)&&typeof _0x3478fb[_0xfd7fe0(0x193)]===_0xfd7fe0(0x192)&&isProduction(_0x3478fb[_0xfd7fe0(0x193)]));if(_0x552a50&&isDaily(_0x552a50)&&_0x34f05c){for(const _0x468e0f of Object[_0xfd7fe0(0x1b5)](_0x421f14)){if(!isRecord(_0x468e0f))continue;if(_0x468e0f[_0xfd7fe0(0x193)]===undefined)_0x468e0f[_0xfd7fe0(0x193)]=_0x552a50;}delete _0x34e03d['env'];}for(const _0x33bbfb of Object[_0xfd7fe0(0x1b5)](_0x421f14)){isRecord(_0x33bbfb)&&typeof _0x33bbfb[_0xfd7fe0(0x193)]==='string'&&isProduction(_0x33bbfb[_0xfd7fe0(0x193)])&&delete _0x33bbfb[_0xfd7fe0(0x193)];}_0x34e03d[_0xfd7fe0(0x1af)]=_0x421f14;}return typeof _0x34e03d[_0xfd7fe0(0x193)]===_0xfd7fe0(0x192)&&isProduction(_0x34e03d[_0xfd7fe0(0x193)])&&delete _0x34e03d['env'],_0x34e03d;}const LOCALE_MAP={'zh':a230_0xa77104(0x1a4),'zh-cn':a230_0xa77104(0x1a4),'zh_cn':a230_0xa77104(0x1a4),'en':'en-US','en-us':a230_0xa77104(0x1c3),'en_us':a230_0xa77104(0x1c3)};export function normalizeLocale(_0x235ecc){const _0x5902d9=a230_0xa77104;if(!_0x235ecc)return null;return LOCALE_MAP[_0x235ecc[_0x5902d9(0x19a)]()]??null;}
|
package/lib/constant/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a231_0x242356=a231_0x254b;function a231_0x254b(_0x2ce6a9,_0x410b0c){_0x2ce6a9=_0x2ce6a9-0x6d;const _0x17e7ec=a231_0x17e7();let _0x254be8=_0x17e7ec[_0x2ce6a9];return _0x254be8;}function a231_0x17e7(){const _0x1fac67=['19540kjUymr','1OlehoX','102zwrcFy','30926HvneVd','3660428IWkYvX','2195457jrwyyW','/templates/projects','3088owzSZg','47739288wEJXCG','152270YbKdtk','36zeGkqo','3TELRQU','1434234nTwwPt'];a231_0x17e7=function(){return _0x1fac67;};return a231_0x17e7();}(function(_0x1c0f7f,_0x3485d7){const _0x399abb=a231_0x254b,_0x42dda9=_0x1c0f7f();while(!![]){try{const _0x3eb204=-parseInt(_0x399abb(0x6f))/0x1*(parseInt(_0x399abb(0x6d))/0x2)+parseInt(_0x399abb(0x79))/0x3*(-parseInt(_0x399abb(0x72))/0x4)+-parseInt(_0x399abb(0x6e))/0x5*(-parseInt(_0x399abb(0x70))/0x6)+parseInt(_0x399abb(0x71))/0x7*(-parseInt(_0x399abb(0x75))/0x8)+parseInt(_0x399abb(0x78))/0x9*(parseInt(_0x399abb(0x77))/0xa)+parseInt(_0x399abb(0x73))/0xb+parseInt(_0x399abb(0x76))/0xc;if(_0x3eb204===_0x3485d7)break;else _0x42dda9['push'](_0x42dda9['shift']());}catch(_0x1a8b96){_0x42dda9['push'](_0x42dda9['shift']());}}}(a231_0x17e7,0xec3d1));export const RABETBASE_CDN_BASE_URL='https://g.lovrabet.com/dist/rabetbase-cli';export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+'/config/index.json';export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a231_0x242356(0x74);
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a231_0xa710e9=a231_0x1820;(function(_0x2ad82a,_0x461bc0){const _0x3efc2d=a231_0x1820,_0xcc4f24=_0x2ad82a();while(!![]){try{const _0x3cebf9=-parseInt(_0x3efc2d(0x1eb))/0x1+-parseInt(_0x3efc2d(0x208))/0x2*(-parseInt(_0x3efc2d(0x24c))/0x3)+-parseInt(_0x3efc2d(0x1ef))/0x4+parseInt(_0x3efc2d(0x23d))/0x5+parseInt(_0x3efc2d(0x25b))/0x6+-parseInt(_0x3efc2d(0x26b))/0x7*(-parseInt(_0x3efc2d(0x1fd))/0x8)+parseInt(_0x3efc2d(0x201))/0x9;if(_0x3cebf9===_0x461bc0)break;else _0xcc4f24['push'](_0xcc4f24['shift']());}catch(_0x410592){_0xcc4f24['push'](_0xcc4f24['shift']());}}}(a231_0x40cc,0x4f293));function a231_0x1820(_0x3717ec,_0x3a87f7){_0x3717ec=_0x3717ec-0x1e2;const _0x40cc71=a231_0x40cc();let _0x18202f=_0x40cc71[_0x3717ec];return _0x18202f;}export const CLI_BIN_NAME=a231_0xa710e9(0x22a);export const CLI_DISPLAY_NAME=a231_0xa710e9(0x22c);function a231_0x40cc(){const _0x2745ac=['JSON\x20params','string','name','Function\x20node','expected-count','Name','env','Override\x20appcode','keyword','sqlName','query','fromEnv','Watch\x20mode','Type\x20filter','sqlname','10330OiaDpi','confirm','dryRun','reveal','Read\x20value\x20from\x20environment\x20variable','expectedCount','Search\x20query','project','skipImports','type','Preview\x20operation\x20without\x20executing','sqlcode','watch','Output\x20format','@lovrabet/rabetbase-cli','6AWgkLc','Description\x20file','Page\x20number','expect-path','Skip\x20import\x20generation','Expected\x20current\x20menu\x20path','non-interactive','locale','force','SQL\x20code','taskId','target','Config\x20value','Dataset\x20code','title','3661158ZJlgsx','topk','function-node','yes','params','nonInteractive','map','Expected\x20affected\x20count','Expected\x20current\x20child\x20count','boolean','operationType','sql-name','format','Comma-separated\x20menu\x20IDs','sort','Use\x20project\x20config\x20scope','1083467REUpKY','tags','key','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','Target\x20path','appcode','pagesize','Alias\x20for\x20--non-interactive','Asynchronous\x20task\x20ID','Reveal\x20sensitive\x20value','app','307541wXrsuC','Menu\x20label','Confirm\x20destructive\x20action','parentId','2441692cdUpAP','Menu\x20sort\x20value','help','dry-run','Expected\x20current\x20parent\x20menu\x20id','Keyword\x20filter','Clear','Config\x20key','<code>','code','DB\x20ID','Force\x20overwrite','dbid','menuIds','8jkdvib','production\x20|\x20daily','Verbose\x20output','Use\x20remote','2903301ZBAZBO','description-file','Force\x20non-interactive\x20mode\x20(CI)','Select\x20app\x20profile\x20by\x20name','page','Operation\x20type','<expr>','152578TGTVNa','clear','file','operation','enableBffSave','sql','Show\x20help','Read\x20value\x20from\x20stdin','<name>','descriptionFile','label','Comma-separated\x20metadata\x20codes','fromEntries','Schemas','description','json\x20|\x20pretty\x20|\x20compress','Record\x20ID','operation-type','Code\x20filter','schemas','Environment','value','output','remote','expectedChildrenCount','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','functionNode','expected-children-count','Apply\x20to\x20all','Maximum\x20search\x20hits','expectParentId','SQL\x20string','verbose','all','rabetbase','datasetcode','Rabetbase\x20CLI','stdin'];a231_0x40cc=function(){return _0x2745ac;};return a231_0x40cc();}export const NPM_PACKAGE_NAME=a231_0xa710e9(0x24b);export const GLOBAL_FLAGS=[{'name':a231_0xa710e9(0x1e5),'meowKey':a231_0xa710e9(0x1e5),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x235),'hint':a231_0xa710e9(0x1f7)},{'name':a231_0xa710e9(0x1ea),'meowKey':a231_0xa710e9(0x1ea),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x204),'hint':a231_0xa710e9(0x210)},{'name':a231_0xa710e9(0x234),'meowKey':a231_0xa710e9(0x234),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x21c),'hint':a231_0xa710e9(0x1fe)},{'name':'format','meowKey':a231_0xa710e9(0x267),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x24a),'hint':a231_0xa710e9(0x217)},{'name':'jq','meowKey':'jq','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x221),'hint':a231_0xa710e9(0x207)},{'name':'dry-run','meowKey':a231_0xa710e9(0x23f),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x247)},{'name':a231_0xa710e9(0x25e),'meowKey':a231_0xa710e9(0x25e),'type':a231_0xa710e9(0x264),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':'non-interactive','meowKey':a231_0xa710e9(0x260),'type':'boolean','description':a231_0xa710e9(0x203)},{'name':'global','meowKey':'global','type':a231_0xa710e9(0x264),'description':'Use\x20global\x20config\x20scope'},{'name':a231_0xa710e9(0x244),'meowKey':'project','type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x26a)},{'name':'ci','meowKey':'ci','type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x1e7),'hidden':!![]},{'name':a231_0xa710e9(0x1f1),'meowKey':'help','type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x20e)},{'name':'locale','meowKey':a231_0xa710e9(0x253),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1e3),'hidden':!![],'hint':'zh-CN\x20|\x20en-US'},{'name':a231_0xa710e9(0x230),'meowKey':a231_0xa710e9(0x230),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x233),'hidden':!![]},{'name':'title','meowKey':a231_0xa710e9(0x25a),'type':a231_0xa710e9(0x22f),'description':'Title','hidden':!![]},{'name':a231_0xa710e9(0x238),'meowKey':a231_0xa710e9(0x238),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x243),'hidden':!![]},{'name':a231_0xa710e9(0x25c),'meowKey':'topk','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x225),'hidden':!![]},{'name':a231_0xa710e9(0x209),'meowKey':a231_0xa710e9(0x209),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x1f5),'hidden':!![]},{'name':a231_0xa710e9(0x249),'meowKey':a231_0xa710e9(0x249),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x23a),'hidden':!![]},{'name':a231_0xa710e9(0x21e),'meowKey':a231_0xa710e9(0x21e),'type':a231_0xa710e9(0x22f),'description':'Output\x20path','hidden':!![]},{'name':a231_0xa710e9(0x25f),'meowKey':'params','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x22e),'hidden':!![]},{'name':a231_0xa710e9(0x22b),'meowKey':a231_0xa710e9(0x22b),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x259),'hidden':!![]},{'name':a231_0xa710e9(0x229),'meowKey':a231_0xa710e9(0x229),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x224),'hidden':!![]},{'name':'enable-bff-save','meowKey':a231_0xa710e9(0x20c),'type':a231_0xa710e9(0x264),'description':'Enable\x20Backend\x20Function\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x218),'hidden':!![]},{'name':a231_0xa710e9(0x246),'meowKey':a231_0xa710e9(0x246),'type':'string','description':a231_0xa710e9(0x23b),'hidden':!![]},{'name':a231_0xa710e9(0x20a),'meowKey':'file','type':'string','description':'File\x20path','hidden':!![]},{'name':a231_0xa710e9(0x248),'meowKey':a231_0xa710e9(0x248),'type':'string','description':a231_0xa710e9(0x255),'hidden':!![]},{'name':a231_0xa710e9(0x266),'meowKey':a231_0xa710e9(0x237),'type':a231_0xa710e9(0x22f),'description':'SQL\x20name','hidden':!![]},{'name':a231_0xa710e9(0x23c),'meowKey':a231_0xa710e9(0x23c),'type':a231_0xa710e9(0x22f),'description':'SQL\x20name','hidden':!![]},{'name':'db-id','meowKey':'dbId','type':'string','description':a231_0xa710e9(0x1f9),'hidden':!![]},{'name':a231_0xa710e9(0x1fb),'meowKey':a231_0xa710e9(0x1fb),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1f9),'hidden':!![]},{'name':a231_0xa710e9(0x216),'meowKey':'description','type':'string','description':'Description','hidden':!![]},{'name':a231_0xa710e9(0x202),'meowKey':a231_0xa710e9(0x211),'type':'string','description':a231_0xa710e9(0x24d),'hidden':!![]},{'name':a231_0xa710e9(0x205),'meowKey':'page','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x24e),'hidden':!![]},{'name':a231_0xa710e9(0x1e6),'meowKey':a231_0xa710e9(0x1e6),'type':a231_0xa710e9(0x22f),'description':'Page\x20size','hidden':!![]},{'name':'keyword','meowKey':a231_0xa710e9(0x236),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1f4),'hidden':!![]},{'name':a231_0xa710e9(0x1f8),'meowKey':a231_0xa710e9(0x1f8),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x21a),'hidden':!![]},{'name':a231_0xa710e9(0x20d),'meowKey':a231_0xa710e9(0x20d),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x227),'hidden':!![]},{'name':a231_0xa710e9(0x21b),'meowKey':a231_0xa710e9(0x21b),'type':'string','description':a231_0xa710e9(0x215),'hidden':!![]},{'name':a231_0xa710e9(0x20b),'meowKey':'operation','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x206),'hidden':!![]},{'name':a231_0xa710e9(0x257),'meowKey':a231_0xa710e9(0x257),'type':'string','description':a231_0xa710e9(0x1e4),'hidden':!![]},{'name':'skip-imports','meowKey':a231_0xa710e9(0x245),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x250),'hidden':!![]},{'name':a231_0xa710e9(0x1e2),'meowKey':'key','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1f6),'hidden':!![]},{'name':a231_0xa710e9(0x21d),'meowKey':a231_0xa710e9(0x21d),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x258),'hidden':!![]},{'name':a231_0xa710e9(0x26c),'meowKey':a231_0xa710e9(0x26c),'type':a231_0xa710e9(0x22f),'description':'Tags','hidden':!![]},{'name':a231_0xa710e9(0x22d),'meowKey':a231_0xa710e9(0x22d),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x20f),'hidden':!![]},{'name':'from-env','meowKey':a231_0xa710e9(0x239),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x241),'hidden':!![]},{'name':a231_0xa710e9(0x240),'meowKey':a231_0xa710e9(0x240),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x1e9),'hidden':!![]},{'name':a231_0xa710e9(0x254),'meowKey':a231_0xa710e9(0x254),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x1fa),'hidden':!![]},{'name':a231_0xa710e9(0x23e),'meowKey':a231_0xa710e9(0x23e),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x1ed),'hidden':!![]},{'name':a231_0xa710e9(0x21f),'meowKey':a231_0xa710e9(0x21f),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x200),'hidden':!![]},{'name':a231_0xa710e9(0x228),'meowKey':a231_0xa710e9(0x228),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x1ff),'hidden':!![]},{'name':a231_0xa710e9(0x232),'meowKey':a231_0xa710e9(0x242),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x262),'hidden':!![]},{'name':a231_0xa710e9(0x212),'meowKey':a231_0xa710e9(0x212),'type':'string','description':a231_0xa710e9(0x1ec),'hidden':!![]},{'name':'parent-id','meowKey':a231_0xa710e9(0x1ee),'type':'string','description':'Parent\x20menu\x20id','hidden':!![]},{'name':a231_0xa710e9(0x269),'meowKey':a231_0xa710e9(0x269),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1f0),'hidden':!![]},{'name':'expect-parent-id','meowKey':a231_0xa710e9(0x226),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1f3),'hidden':!![]},{'name':a231_0xa710e9(0x24f),'meowKey':'expectPath','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x251),'hidden':!![]},{'name':a231_0xa710e9(0x223),'meowKey':a231_0xa710e9(0x220),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x263),'hidden':!![]},{'name':'menu-ids','meowKey':a231_0xa710e9(0x1fc),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x268),'hidden':!![]},{'name':'task-id','meowKey':a231_0xa710e9(0x256),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1e8),'hidden':!![]},{'name':a231_0xa710e9(0x219),'meowKey':a231_0xa710e9(0x265),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x206),'hidden':!![]},{'name':a231_0xa710e9(0x25d),'meowKey':a231_0xa710e9(0x222),'type':'string','description':a231_0xa710e9(0x231),'hidden':!![]},{'name':'codes','meowKey':'codes','type':'string','description':a231_0xa710e9(0x213),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a231_0xa710e9(0x1e5),a231_0xa710e9(0x1ea),a231_0xa710e9(0x234),a231_0xa710e9(0x267),'jq',a231_0xa710e9(0x1f2),a231_0xa710e9(0x25e),a231_0xa710e9(0x252),'ci']);export function buildMeowFlags(){const _0x559b23=a231_0xa710e9;return Object[_0x559b23(0x214)](GLOBAL_FLAGS[_0x559b23(0x261)](_0x379c55=>[_0x379c55['meowKey'],{'type':_0x379c55['type']}]));}
|
|
1
|
+
const a232_0x2b9595=a232_0x1de7;(function(_0x117159,_0x1ca3af){const _0x587e8c=a232_0x1de7,_0x430905=_0x117159();while(!![]){try{const _0x1b5a73=parseInt(_0x587e8c(0x10d))/0x1*(parseInt(_0x587e8c(0x103))/0x2)+parseInt(_0x587e8c(0xd5))/0x3+parseInt(_0x587e8c(0xe5))/0x4+-parseInt(_0x587e8c(0xb1))/0x5+parseInt(_0x587e8c(0xcf))/0x6+parseInt(_0x587e8c(0xf1))/0x7+parseInt(_0x587e8c(0xce))/0x8*(-parseInt(_0x587e8c(0x9e))/0x9);if(_0x1b5a73===_0x1ca3af)break;else _0x430905['push'](_0x430905['shift']());}catch(_0x145ac8){_0x430905['push'](_0x430905['shift']());}}}(a232_0x2d7e,0x19a82));export const CLI_BIN_NAME=a232_0x2b9595(0xab);function a232_0x2d7e(){const _0x1ed8b7=['550671cMwRGM','yes','Enable\x20Backend\x20Function\x20save','Force\x20non-interactive\x20mode\x20(CI)','Read\x20value\x20from\x20environment\x20variable','project','Target\x20path','description','type','confirm','Skip\x20confirmation\x20for\x20high-risk\x20writes','datasetcode','Use\x20project\x20config\x20scope','DB\x20ID','Config\x20key','schemas','447824txCGAa','file','boolean','Reveal\x20sensitive\x20value','dryRun','Expected\x20current\x20menu\x20path','operationType','Confirm\x20destructive\x20action','Expected\x20current\x20child\x20count','Force\x20overwrite','params','target','451612evFDln','Expected\x20current\x20parent\x20menu\x20id','key','page','Operation\x20type','skip-imports','enableBffSave','sqlname','menuIds','Search\x20query','Type\x20filter','db-id','operation-type','functionNode','expectParentId','clear','fromEntries','@lovrabet/rabetbase-cli','9782kgrlDr','menu-ids','topk','expectedChildrenCount','tags','expectedCount','Record\x20ID','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','<code>','production\x20|\x20daily','5owCnIe','skipImports','name','env','title','Schemas','remote','string','verbose','<expr>','locale','Verbose\x20output','sqlcode','SQL\x20code','sort','map','help','description-file','operation','from-env','meowKey','code','2453643rupiVH','Use\x20remote','keyword','format','value','Override\x20appcode','Tags','zh-CN\x20|\x20en-US','Keyword\x20filter','Clear','stdin','sqlName','sql-name','rabetbase','Menu\x20sort\x20value','Config\x20value','app','global','SQL\x20name','345825OzQosT','output','dbid','Environment','Skip\x20import\x20generation','appcode','parentId','label','expected-children-count','force','Output\x20format','Description\x20file','Comma-separated\x20menu\x20IDs','pagesize','Use\x20global\x20config\x20scope','Code\x20filter','Menu\x20label','<name>','expected-count','Preview\x20operation\x20without\x20executing','nonInteractive','all','Maximum\x20search\x20hits','Name','Function\x20node','Title','Page\x20number','Apply\x20to\x20all','json\x20|\x20pretty\x20|\x20compress','8pgrQgL','374388CGZGXU','sql','Page\x20size','reveal','Read\x20value\x20from\x20stdin','query'];a232_0x2d7e=function(){return _0x1ed8b7;};return a232_0x2d7e();}export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a232_0x2b9595(0x102);export const GLOBAL_FLAGS=[{'name':a232_0x2b9595(0xb6),'meowKey':a232_0x2b9595(0xb6),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xa3),'hint':a232_0x2b9595(0x10b)},{'name':'app','meowKey':'app','type':a232_0x2b9595(0x114),'description':'Select\x20app\x20profile\x20by\x20name','hint':a232_0x2b9595(0xc2)},{'name':a232_0x2b9595(0x110),'meowKey':a232_0x2b9595(0x110),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xb4),'hint':a232_0x2b9595(0x10c)},{'name':a232_0x2b9595(0xa1),'meowKey':'format','type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xbb),'hint':a232_0x2b9595(0xcd)},{'name':'jq','meowKey':'jq','type':a232_0x2b9595(0x114),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a232_0x2b9595(0x116)},{'name':'dry-run','meowKey':a232_0x2b9595(0xe9),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xc4)},{'name':'yes','meowKey':a232_0x2b9595(0xd6),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xdf)},{'name':'non-interactive','meowKey':a232_0x2b9595(0xc5),'type':'boolean','description':a232_0x2b9595(0xd8)},{'name':a232_0x2b9595(0xaf),'meowKey':a232_0x2b9595(0xaf),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xbf)},{'name':a232_0x2b9595(0xda),'meowKey':a232_0x2b9595(0xda),'type':'boolean','description':a232_0x2b9595(0xe1)},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a232_0x2b9595(0x11d),'meowKey':a232_0x2b9595(0x11d),'type':a232_0x2b9595(0xe7),'description':'Show\x20help'},{'name':a232_0x2b9595(0x117),'meowKey':a232_0x2b9595(0x117),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0x10a),'hidden':!![],'hint':a232_0x2b9595(0xa5)},{'name':'name','meowKey':a232_0x2b9595(0x10f),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xc8),'hidden':!![]},{'name':a232_0x2b9595(0x111),'meowKey':a232_0x2b9595(0x111),'type':'string','description':a232_0x2b9595(0xca),'hidden':!![]},{'name':a232_0x2b9595(0xd4),'meowKey':'query','type':'string','description':a232_0x2b9595(0xfa),'hidden':!![]},{'name':'topk','meowKey':a232_0x2b9595(0x105),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xc7),'hidden':!![]},{'name':'clear','meowKey':a232_0x2b9595(0x100),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xa7),'hidden':!![]},{'name':'watch','meowKey':'watch','type':'boolean','description':'Watch\x20mode','hidden':!![]},{'name':'output','meowKey':a232_0x2b9595(0xb2),'type':'string','description':'Output\x20path','hidden':!![]},{'name':a232_0x2b9595(0xef),'meowKey':a232_0x2b9595(0xef),'type':a232_0x2b9595(0x114),'description':'JSON\x20params','hidden':!![]},{'name':a232_0x2b9595(0xe0),'meowKey':'datasetcode','type':a232_0x2b9595(0x114),'description':'Dataset\x20code','hidden':!![]},{'name':a232_0x2b9595(0xc6),'meowKey':a232_0x2b9595(0xc6),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xcc),'hidden':!![]},{'name':'enable-bff-save','meowKey':a232_0x2b9595(0xf7),'type':'boolean','description':a232_0x2b9595(0xd7),'hidden':!![]},{'name':'id','meowKey':'id','type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0x109),'hidden':!![]},{'name':'type','meowKey':a232_0x2b9595(0xdd),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xfb),'hidden':!![]},{'name':'file','meowKey':a232_0x2b9595(0xe6),'type':a232_0x2b9595(0x114),'description':'File\x20path','hidden':!![]},{'name':a232_0x2b9595(0x119),'meowKey':a232_0x2b9595(0x119),'type':'string','description':a232_0x2b9595(0x11a),'hidden':!![]},{'name':a232_0x2b9595(0xaa),'meowKey':a232_0x2b9595(0xa9),'type':a232_0x2b9595(0x114),'description':'SQL\x20name','hidden':!![]},{'name':a232_0x2b9595(0xf8),'meowKey':a232_0x2b9595(0xf8),'type':'string','description':a232_0x2b9595(0xb0),'hidden':!![]},{'name':a232_0x2b9595(0xfc),'meowKey':'dbId','type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xe2),'hidden':!![]},{'name':a232_0x2b9595(0xb3),'meowKey':a232_0x2b9595(0xb3),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xe2),'hidden':!![]},{'name':a232_0x2b9595(0xdc),'meowKey':'description','type':'string','description':'Description','hidden':!![]},{'name':a232_0x2b9595(0x11e),'meowKey':'descriptionFile','type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xbc),'hidden':!![]},{'name':'page','meowKey':a232_0x2b9595(0xf4),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xcb),'hidden':!![]},{'name':a232_0x2b9595(0xbe),'meowKey':'pagesize','type':'string','description':a232_0x2b9595(0xd1),'hidden':!![]},{'name':a232_0x2b9595(0xa0),'meowKey':a232_0x2b9595(0xa0),'type':'string','description':a232_0x2b9595(0xa6),'hidden':!![]},{'name':a232_0x2b9595(0x9d),'meowKey':a232_0x2b9595(0x9d),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xc0),'hidden':!![]},{'name':a232_0x2b9595(0xd0),'meowKey':'sql','type':'string','description':'SQL\x20string','hidden':!![]},{'name':a232_0x2b9595(0xe4),'meowKey':a232_0x2b9595(0xe4),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0x112),'hidden':!![]},{'name':a232_0x2b9595(0x9a),'meowKey':a232_0x2b9595(0x9a),'type':'string','description':a232_0x2b9595(0xf5),'hidden':!![]},{'name':a232_0x2b9595(0xf0),'meowKey':a232_0x2b9595(0xf0),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xdb),'hidden':!![]},{'name':a232_0x2b9595(0xf6),'meowKey':a232_0x2b9595(0x10e),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xb5),'hidden':!![]},{'name':a232_0x2b9595(0xf3),'meowKey':a232_0x2b9595(0xf3),'type':'string','description':a232_0x2b9595(0xe3),'hidden':!![]},{'name':a232_0x2b9595(0xa2),'meowKey':a232_0x2b9595(0xa2),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xad),'hidden':!![]},{'name':a232_0x2b9595(0x107),'meowKey':a232_0x2b9595(0x107),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xa4),'hidden':!![]},{'name':a232_0x2b9595(0xa8),'meowKey':a232_0x2b9595(0xa8),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xd3),'hidden':!![]},{'name':a232_0x2b9595(0x9b),'meowKey':'fromEnv','type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xd9),'hidden':!![]},{'name':a232_0x2b9595(0xd2),'meowKey':a232_0x2b9595(0xd2),'type':'boolean','description':a232_0x2b9595(0xe8),'hidden':!![]},{'name':'force','meowKey':a232_0x2b9595(0xba),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xee),'hidden':!![]},{'name':a232_0x2b9595(0xde),'meowKey':a232_0x2b9595(0xde),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xec),'hidden':!![]},{'name':a232_0x2b9595(0x113),'meowKey':'remote','type':'boolean','description':a232_0x2b9595(0x9f),'hidden':!![]},{'name':a232_0x2b9595(0x115),'meowKey':a232_0x2b9595(0x115),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0x118),'hidden':!![]},{'name':a232_0x2b9595(0xc3),'meowKey':a232_0x2b9595(0x108),'type':a232_0x2b9595(0x114),'description':'Expected\x20affected\x20count','hidden':!![]},{'name':a232_0x2b9595(0xb8),'meowKey':a232_0x2b9595(0xb8),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xc1),'hidden':!![]},{'name':'parent-id','meowKey':a232_0x2b9595(0xb7),'type':a232_0x2b9595(0x114),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a232_0x2b9595(0x11b),'meowKey':a232_0x2b9595(0x11b),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xac),'hidden':!![]},{'name':'expect-parent-id','meowKey':a232_0x2b9595(0xff),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xf2),'hidden':!![]},{'name':'expect-path','meowKey':'expectPath','type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xea),'hidden':!![]},{'name':a232_0x2b9595(0xb9),'meowKey':a232_0x2b9595(0x106),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xed),'hidden':!![]},{'name':a232_0x2b9595(0x104),'meowKey':a232_0x2b9595(0xf9),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xbd),'hidden':!![]},{'name':'task-id','meowKey':'taskId','type':a232_0x2b9595(0x114),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a232_0x2b9595(0xfd),'meowKey':a232_0x2b9595(0xeb),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xf5),'hidden':!![]},{'name':'function-node','meowKey':a232_0x2b9595(0xfe),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xc9),'hidden':!![]},{'name':'codes','meowKey':'codes','type':'string','description':'Comma-separated\x20metadata\x20codes','hidden':!![]}];function a232_0x1de7(_0x2e034,_0x1d4707){_0x2e034=_0x2e034-0x9a;const _0x2d7e05=a232_0x2d7e();let _0x1de74f=_0x2d7e05[_0x2e034];return _0x1de74f;}export const PIPELINE_FLAG_NAMES=new Set([a232_0x2b9595(0xb6),a232_0x2b9595(0xae),a232_0x2b9595(0x110),'format','jq','dry-run','yes','non-interactive','ci']);export function buildMeowFlags(){const _0x53522d=a232_0x2b9595;return Object[_0x53522d(0x101)](GLOBAL_FLAGS[_0x53522d(0x11c)](_0x52076e=>[_0x52076e[_0x53522d(0x9c)],{'type':_0x52076e['type']}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a233_0x394e1a=a233_0x4a9e;function a233_0x4a9e(_0x51513c,_0x778ffb){_0x51513c=_0x51513c-0x1ed;const _0x4c176d=a233_0x4c17();let _0x4a9e43=_0x4c176d[_0x51513c];return _0x4a9e43;}(function(_0xd46fa2,_0x124e6b){const _0x2de9b2=a233_0x4a9e,_0x503fab=_0xd46fa2();while(!![]){try{const _0x12aa5c=parseInt(_0x2de9b2(0x1f5))/0x1+parseInt(_0x2de9b2(0x1f8))/0x2+parseInt(_0x2de9b2(0x1ef))/0x3+parseInt(_0x2de9b2(0x1f0))/0x4+-parseInt(_0x2de9b2(0x1f1))/0x5*(-parseInt(_0x2de9b2(0x1f2))/0x6)+parseInt(_0x2de9b2(0x1ee))/0x7*(parseInt(_0x2de9b2(0x1f7))/0x8)+-parseInt(_0x2de9b2(0x1ed))/0x9*(parseInt(_0x2de9b2(0x1f4))/0xa);if(_0x12aa5c===_0x124e6b)break;else _0x503fab['push'](_0x503fab['shift']());}catch(_0x4e0780){_0x503fab['push'](_0x503fab['shift']());}}}(a233_0x4c17,0x644ef));function a233_0x4c17(){const _0x2e47f1=['583537yVPMTh','compress','7120zALCBB','1094214WYcSny','512478dUDCRu','4858GYOyic','2365287ByFBht','2599460DNbHhU','5LmgOQx','3161406heHdft','production','580AaUpZN'];a233_0x4c17=function(){return _0x2e47f1;};return a233_0x4c17();}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a233_0x394e1a(0x1f3),'format':a233_0x394e1a(0x1f6),'locale':'en-US','riskLevel':'write','apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a233_0x394e1a(0x1f6);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a234_0x64577c=a234_0x34f1;(function(_0x55b80a,_0xf29d02){const _0x16c4fd=a234_0x34f1,_0x1dea66=_0x55b80a();while(!![]){try{const _0x2e56a9=-parseInt(_0x16c4fd(0x1e6))/0x1*(parseInt(_0x16c4fd(0x1ec))/0x2)+parseInt(_0x16c4fd(0x1f4))/0x3+-parseInt(_0x16c4fd(0x1ed))/0x4+parseInt(_0x16c4fd(0x1f9))/0x5+-parseInt(_0x16c4fd(0x1e9))/0x6+parseInt(_0x16c4fd(0x1fa))/0x7+parseInt(_0x16c4fd(0x1ea))/0x8;if(_0x2e56a9===_0xf29d02)break;else _0x1dea66['push'](_0x1dea66['shift']());}catch(_0x385c96){_0x1dea66['push'](_0x1dea66['shift']());}}}(a234_0x24cb,0x9a557));import{getEnv,isProduction}from'../constant/env.js';function a234_0x34f1(_0x343724,_0x2d86c1){_0x343724=_0x343724-0x1e3;const _0x24cb6a=a234_0x24cb();let _0x34f1cf=_0x24cb6a[_0x343724];return _0x34f1cf;}import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';function a234_0x24cb(){const _0x1d4aa6=['2299484gHelmX','localDomain','skill','/app/','hostname','apiDomain','production','3345168fCbKkP','region','trim','runtime','/web-app/app/','3425385HGMxer','140287hIIAIq','kbDomain','serviceDomains','app','userDomain','skillDomain','157363tnmWrP','runtimeDomain','api','6489756UVGyUF','12560120PmfjDc','user','14LzeSPP'];a234_0x24cb=function(){return _0x1d4aa6;};return a234_0x24cb();}let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x2fcc6f=a234_0x34f1,_0x2311ba=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x2311ba[_0x2fcc6f(0x1fc)][_0x2fcc6f(0x1f3)]:_0x2311ba['serviceDomains']['daily']??_0x2311ba['serviceDomains'][_0x2fcc6f(0x1f3)];}export function initDomains(_0x1516af){const _0x191f5a=a234_0x34f1;customApiDomain=_0x1516af?.[_0x191f5a(0x1f2)],customUserDomain=_0x1516af?.[_0x191f5a(0x1e4)],customRuntimeDomain=_0x1516af?.[_0x191f5a(0x1e7)],customSkillDomain=_0x1516af?.[_0x191f5a(0x1e5)],customKbDomain=_0x1516af?.[_0x191f5a(0x1fb)],customAppDomain=_0x1516af?.['appDomain'],customLocalDomain=_0x1516af?.[_0x191f5a(0x1ee)],customCertificateDomain=_0x1516af?.['certificateDomain'],customCdn=_0x1516af?.['cdn'],activeRegion=_0x1516af?.[_0x191f5a(0x1f5)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a234_0x64577c(0x1eb)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a234_0x64577c(0x1e8)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a234_0x64577c(0x1f7)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a234_0x64577c(0x1ef)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a234_0x64577c(0x1e3)];export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()['runtime'])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x3f3a8d=>{const _0x3edc60=a234_0x64577c,_0x554ddf=encodeURIComponent(_0x3f3a8d[_0x3edc60(0x1f6)]());return isProduction(getEnv())?getAppDomain()+_0x3edc60(0x1f0)+_0x554ddf:getAppDomain()+_0x3edc60(0x1f8)+_0x554ddf;};export const getPublishedAppDomain=_0x5b8895=>{const _0x583d8d=a234_0x64577c,_0x2212f8=new URL(getAppDomain());return _0x2212f8[_0x583d8d(0x1f1)]=_0x5b8895[_0x583d8d(0x1f6)]()+'.'+_0x2212f8['hostname'],_0x2212f8['origin'];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a235_0xf0d3e3=a235_0x4d96;(function(_0x11c4a7,_0x530160){const _0x4d8712=a235_0x4d96,_0x235a8f=_0x11c4a7();while(!![]){try{const _0x4eb9f4=-parseInt(_0x4d8712(0x116))/0x1+-parseInt(_0x4d8712(0x10e))/0x2*(-parseInt(_0x4d8712(0x117))/0x3)+-parseInt(_0x4d8712(0x114))/0x4+parseInt(_0x4d8712(0x10f))/0x5*(-parseInt(_0x4d8712(0x113))/0x6)+parseInt(_0x4d8712(0x11b))/0x7*(-parseInt(_0x4d8712(0x10c))/0x8)+-parseInt(_0x4d8712(0x118))/0x9*(parseInt(_0x4d8712(0x111))/0xa)+parseInt(_0x4d8712(0x11a))/0xb;if(_0x4eb9f4===_0x530160)break;else _0x235a8f['push'](_0x235a8f['shift']());}catch(_0x19f3af){_0x235a8f['push'](_0x235a8f['shift']());}}}(a235_0x5a77,0x49c69));function a235_0x5a77(){const _0x472a98=['dev','8766846zOLyQb','35CRhOcq','614960EgWjgx','production','86murOis','62530bcrDBP','development','145210GsaRZh','daily','18rSxoLr','129816sSlHmA','online','53862PtzWUN','15117NhJmIh','126SfbDSV'];a235_0x5a77=function(){return _0x472a98;};return a235_0x5a77();}function a235_0x4d96(_0x46e69f,_0x359d1e){_0x46e69f=_0x46e69f-0x10c;const _0x5a7774=a235_0x5a77();let _0x4d9631=_0x5a7774[_0x46e69f];return _0x4d9631;}export const RABETBASE_ENV_VALUES=[a235_0xf0d3e3(0x10d),a235_0xf0d3e3(0x112)];export function normalizeEnv(_0x215b36){const _0x8e5c7b=a235_0xf0d3e3;return _0x215b36===_0x8e5c7b(0x115)?_0x8e5c7b(0x10d):_0x215b36;}export function isProduction(_0x51062e){return normalizeEnv(_0x51062e)==='production';}export function isDaily(_0x85d605){const _0x2e05ff=a235_0xf0d3e3;return normalizeEnv(_0x85d605)===_0x2e05ff(0x112);}export function isDev(_0x4bee6c){const _0x5bfc68=a235_0xf0d3e3,_0x53897d=normalizeEnv(_0x4bee6c);return _0x53897d===_0x5bfc68(0x110)||_0x53897d===_0x5bfc68(0x119);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a235_0xf0d3e3(0x10d));export function getEnv(){return env;}export function initEnv(_0x4cd0f6){env=normalizeEnv(_0x4cd0f6);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a236_0x431cfa=a236_0x1772;function a236_0x362a(){const _0x374df6=['2378598aiGcNM','1642vdyTkN','compress','4fJTQRb','2824lDlGDD','219810UcczqP','2107854ufQtnW','json','6182405VmdpZf','36756VkCdEX','1596vkGuiW','pretty','388066ipOqef'];a236_0x362a=function(){return _0x374df6;};return a236_0x362a();}function a236_0x1772(_0x32d9ce,_0x4e0534){_0x32d9ce=_0x32d9ce-0x131;const _0x362acc=a236_0x362a();let _0x17726d=_0x362acc[_0x32d9ce];return _0x17726d;}(function(_0x4f3a16,_0x44ccdc){const _0x12250f=a236_0x1772,_0x49fd63=_0x4f3a16();while(!![]){try{const _0x48e5ac=-parseInt(_0x12250f(0x139))/0x1*(-parseInt(_0x12250f(0x135))/0x2)+-parseInt(_0x12250f(0x131))/0x3+parseInt(_0x12250f(0x13b))/0x4*(parseInt(_0x12250f(0x133))/0x5)+parseInt(_0x12250f(0x138))/0x6+parseInt(_0x12250f(0x137))/0x7+parseInt(_0x12250f(0x13c))/0x8*(-parseInt(_0x12250f(0x134))/0x9)+parseInt(_0x12250f(0x13d))/0xa;if(_0x48e5ac===_0x44ccdc)break;else _0x49fd63['push'](_0x49fd63['shift']());}catch(_0x54a884){_0x49fd63['push'](_0x49fd63['shift']());}}}(a236_0x362a,0xd5f5b));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a236_0x431cfa(0x132),a236_0x431cfa(0x136),a236_0x431cfa(0x13a)];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a237_0x312f(){const _0x315289=['288612fUXHax','172420PqPYRr','110vPHcyb','1954lSiTeF','3EhPFcg','4193jxuRad','1382224mcjuiC','82686PgfARp','5gKGeMK','329zrIrRp','./src/api','1037124bUeFlc','4400aAoIIb'];a237_0x312f=function(){return _0x315289;};return a237_0x312f();}function a237_0x2490(_0x50a7fb,_0x64028f){_0x50a7fb=_0x50a7fb-0x111;const _0x312f3a=a237_0x312f();let _0x24909c=_0x312f3a[_0x50a7fb];return _0x24909c;}const a237_0x51742d=a237_0x2490;(function(_0x236768,_0x2ab5bd){const _0x20abb3=a237_0x2490,_0x582b7c=_0x236768();while(!![]){try{const _0x2b4dc4=-parseInt(_0x20abb3(0x115))/0x1*(-parseInt(_0x20abb3(0x11c))/0x2)+-parseInt(_0x20abb3(0x11d))/0x3*(-parseInt(_0x20abb3(0x112))/0x4)+parseInt(_0x20abb3(0x114))/0x5*(parseInt(_0x20abb3(0x113))/0x6)+parseInt(_0x20abb3(0x111))/0x7*(-parseInt(_0x20abb3(0x118))/0x8)+parseInt(_0x20abb3(0x117))/0x9+parseInt(_0x20abb3(0x11a))/0xa+-parseInt(_0x20abb3(0x11b))/0xb*(parseInt(_0x20abb3(0x119))/0xc);if(_0x2b4dc4===_0x2ab5bd)break;else _0x582b7c['push'](_0x582b7c['shift']());}catch(_0x5e8b9c){_0x582b7c['push'](_0x582b7c['shift']());}}}(a237_0x312f,0x3b658));export const DEFAULT_API_DIR=a237_0x51742d(0x116);
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1d87aa,_0x39bd8c){const _0x3ac097=a238_0x143f,_0x18599b=_0x1d87aa();while(!![]){try{const _0x33a498=parseInt(_0x3ac097(0x15b))/0x1+parseInt(_0x3ac097(0x154))/0x2+-parseInt(_0x3ac097(0x15f))/0x3*(parseInt(_0x3ac097(0x15c))/0x4)+parseInt(_0x3ac097(0x157))/0x5*(parseInt(_0x3ac097(0x160))/0x6)+-parseInt(_0x3ac097(0x15e))/0x7+parseInt(_0x3ac097(0x156))/0x8*(-parseInt(_0x3ac097(0x15d))/0x9)+parseInt(_0x3ac097(0x155))/0xa*(parseInt(_0x3ac097(0x158))/0xb);if(_0x33a498===_0x39bd8c)break;else _0x18599b['push'](_0x18599b['shift']());}catch(_0xa591f2){_0x18599b['push'](_0x18599b['shift']());}}}(a238_0x5c30,0xc622a));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;function a238_0x5c30(){const _0x4411d9=['106827oXeBcI','39366oBYLRS','355408eVJFIy','1220amnWSw','32sLbBvS','775nsQGyb','25014fGnSUj','includes','string','1449853FUKYBC','76DOTBvn','1904706ibKQeN','4110897OWDKUH'];a238_0x5c30=function(){return _0x4411d9;};return a238_0x5c30();}export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;function a238_0x143f(_0x1bdb7f,_0x2d6f4b){_0x1bdb7f=_0x1bdb7f-0x154;const _0x5c30aa=a238_0x5c30();let _0x143f7e=_0x5c30aa[_0x1bdb7f];return _0x143f7e;}export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0xcad9a1){const _0x54f17c=a238_0x143f;return typeof _0xcad9a1===_0x54f17c(0x15a)&&LOVRABET_REGION_VALUES[_0x54f17c(0x159)](_0xcad9a1);}export function isEnabledLovrabetRegion(_0x27e234){const _0x44b13f=a238_0x143f;return typeof _0x27e234===_0x44b13f(0x15a)&&ENABLED_LOVRABET_REGION_VALUES['includes'](_0x27e234);}export function normalizeLovrabetRegion(_0x51eb65){const _0x337c19=a238_0x143f;if(typeof _0x51eb65!==_0x337c19(0x15a))return undefined;const _0x112fa3=REGION_ALIASES[_0x51eb65]??_0x51eb65;return isLovrabetRegion(_0x112fa3)?_0x112fa3:undefined;}export function isInvalidLovrabetRegion(_0x20625f){return _0x20625f!==undefined&&_0x20625f!==null&&_0x20625f!==''&&normalizeLovrabetRegion(_0x20625f)===undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a239_0x2122ec=a239_0x5561;(function(_0x10cde5,_0x5ebca8){const _0x51d9fe=a239_0x5561,_0x368734=_0x10cde5();while(!![]){try{const _0x16c8d6=-parseInt(_0x51d9fe(0x97))/0x1*(parseInt(_0x51d9fe(0x98))/0x2)+parseInt(_0x51d9fe(0x90))/0x3*(-parseInt(_0x51d9fe(0x95))/0x4)+parseInt(_0x51d9fe(0x9a))/0x5*(-parseInt(_0x51d9fe(0x93))/0x6)+parseInt(_0x51d9fe(0x99))/0x7+parseInt(_0x51d9fe(0x96))/0x8*(parseInt(_0x51d9fe(0x91))/0x9)+parseInt(_0x51d9fe(0x92))/0xa+parseInt(_0x51d9fe(0x94))/0xb;if(_0x16c8d6===_0x5ebca8)break;else _0x368734['push'](_0x368734['shift']());}catch(_0x10ef49){_0x368734['push'](_0x368734['shift']());}}}(a239_0x37d5,0xbc33a));export const RISK_LEVEL_VALUES=[a239_0x2122ec(0x9b),'write',a239_0x2122ec(0x9c)];function a239_0x5561(_0x566f3e,_0x2346da){_0x566f3e=_0x566f3e-0x90;const _0x37d523=a239_0x37d5();let _0x556192=_0x37d523[_0x566f3e];return _0x556192;}function a239_0x37d5(){const _0x28e9dc=['6691212UXuNSy','107572ROqTea','5923784Yusshe','1mzRRdM','1806230nZqCqs','2272018Yivxtg','584110rZXmoQ','read','high-risk-write','165mntPTq','18AHEOUR','13234020hJaLvl','30bciRSu'];a239_0x37d5=function(){return _0x28e9dc;};return a239_0x37d5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4c98ac,_0x2d16d7){const _0x208800=a240_0x19aa,_0x45905e=_0x4c98ac();while(!![]){try{const _0x24c581=-parseInt(_0x208800(0x9a))/0x1+parseInt(_0x208800(0x9c))/0x2+parseInt(_0x208800(0x9f))/0x3*(parseInt(_0x208800(0xa0))/0x4)+-parseInt(_0x208800(0x97))/0x5+parseInt(_0x208800(0x9d))/0x6+-parseInt(_0x208800(0x96))/0x7*(-parseInt(_0x208800(0x98))/0x8)+-parseInt(_0x208800(0x95))/0x9;if(_0x24c581===_0x2d16d7)break;else _0x45905e['push'](_0x45905e['shift']());}catch(_0x129bbc){_0x45905e['push'](_0x45905e['shift']());}}}(a240_0x4f25,0x83347));import{OFFICIAL_ROUTING_PROFILES as a240_0x24f77e,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a240_0x24f77e;export{ROUTING_CATALOG_DIGEST};function a240_0x4f25(){const _0x45f6ce=['lovrabet','1786018TCTEVR','812106UJsaQi','libraries','63aFxbHA','37968pSOmdJ','841626zxxlUn','1145977JaUNpz','4894710WMpjVe','24QbXdeE','Official\x20routing\x20for\x20region\x20\x22','108954WQNNYi'];a240_0x4f25=function(){return _0x45f6ce;};return a240_0x4f25();}function a240_0x19aa(_0x2c8fae,_0x544434){_0x2c8fae=_0x2c8fae-0x95;const _0x4f25df=a240_0x4f25();let _0x19aa2c=_0x4f25df[_0x2c8fae];return _0x19aa2c;}export function getOfficialRoutingProfile(_0x4677ec){return OFFICIAL_ROUTING_PROFILES[_0x4677ec];}export function getOfficialRoutingCdn(_0x12a6b3){const _0x135e12=a240_0x19aa,_0x416b95=getOfficialRoutingProfile(_0x12a6b3)['cdn'];if(!_0x416b95[_0x135e12(0x9b)])throw new Error(_0x135e12(0x99)+_0x12a6b3+'\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.');return{'libraries':_0x416b95[_0x135e12(0x9e)],'lovrabet':_0x416b95[_0x135e12(0x9b)]};}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { type OutputFormat, type Risk } from "../framework/types.js";
|
|
2
2
|
import type { RawConfigLayers } from "../context/config-loader.js";
|
|
3
|
+
import { type LovrabetRegion } from "../constant/region.js";
|
|
4
|
+
import { type RegionConfigSource } from "../config/region-config.js";
|
|
3
5
|
export interface AppProfile {
|
|
4
6
|
appcode: string;
|
|
7
|
+
region?: LovrabetRegion;
|
|
5
8
|
env?: "production" | "daily";
|
|
6
9
|
apiDir?: string;
|
|
7
10
|
cookie?: string;
|
|
@@ -13,6 +16,9 @@ export interface AppProfile {
|
|
|
13
16
|
}
|
|
14
17
|
export interface ResolvedAppConfig {
|
|
15
18
|
appCode: string | undefined;
|
|
19
|
+
region: LovrabetRegion;
|
|
20
|
+
regionConfiguredValue: unknown;
|
|
21
|
+
regionSource: RegionConfigSource;
|
|
16
22
|
env: "production" | "daily";
|
|
17
23
|
locale: string;
|
|
18
24
|
cookie: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x25a0ab,_0x19fc0b){const _0x2a1a08=a241_0x9925,_0x5d6494=_0x25a0ab();while(!![]){try{const _0x287964=parseInt(_0x2a1a08(0x1f1))/0x1+parseInt(_0x2a1a08(0x1f9))/0x2+-parseInt(_0x2a1a08(0x204))/0x3+parseInt(_0x2a1a08(0x1ec))/0x4*(parseInt(_0x2a1a08(0x1f7))/0x5)+-parseInt(_0x2a1a08(0x205))/0x6+parseInt(_0x2a1a08(0x1e8))/0x7*(parseInt(_0x2a1a08(0x1fc))/0x8)+-parseInt(_0x2a1a08(0x211))/0x9*(parseInt(_0x2a1a08(0x1ff))/0xa);if(_0x287964===_0x19fc0b)break;else _0x5d6494['push'](_0x5d6494['shift']());}catch(_0x5ebb21){_0x5d6494['push'](_0x5d6494['shift']());}}}(a241_0x28ab,0x561cc));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';import{DEFAULT_LOVRABET_REGION,normalizeLovrabetRegion}from'../constant/region.js';import{selectConfiguredRegion}from'../config/region-config.js';function stringConfigValue(_0x47b221){const _0x47ef22=a241_0x9925;return typeof _0x47b221===_0x47ef22(0x202)&&_0x47b221[_0x47ef22(0x20b)]()?_0x47b221[_0x47ef22(0x20b)]():undefined;}function appProfiles(_0x1e2573){const _0x3eec2=a241_0x9925;return _0x1e2573[_0x3eec2(0x1ee)]&&typeof _0x1e2573[_0x3eec2(0x1ee)]==='object'?_0x1e2573[_0x3eec2(0x1ee)]:{};}function resolveDefaultAppName(_0x469443){const _0x45d64f=a241_0x9925,_0xf138a5=stringConfigValue(_0x469443[_0x45d64f(0x209)]);if(_0xf138a5)return _0xf138a5;const _0xf0c653=Object[_0x45d64f(0x1ed)](appProfiles(_0x469443));return _0xf0c653[_0x45d64f(0x20c)]===0x1?_0xf0c653[0x0]:undefined;}function a241_0x9925(_0x420a5d,_0x3b53bb){_0x420a5d=_0x420a5d-0x1e7;const _0x28ab63=a241_0x28ab();let _0x9925b1=_0x28ab63[_0x420a5d];return _0x9925b1;}function resolveTopLevelAppCode(_0x8b558d){const _0x494144=a241_0x9925;return stringConfigValue(_0x8b558d[_0x494144(0x20d)])||stringConfigValue(_0x8b558d['app']);}function normalizeRiskCeiling(_0x4de670){const _0x13a143=a241_0x9925;if(_0x4de670===undefined||_0x4de670===null)return undefined;if(_0x4de670===_0x13a143(0x20e)||_0x4de670===_0x13a143(0x1e9)||_0x4de670===_0x13a143(0x1fd))return _0x4de670;return _0x13a143(0x20e);}function a241_0x28ab(){const _0x3eb76b=['length','appcode','read','format','object','36EAyOTE','accessKey','ENV','true','1400441hGWKiP','write','COOKIE','projectConfig','8oxaoWW','keys','apps','app','source','654911vsZFSM','RISK_LEVEL','pageSize','locale','entries','APP','384945KRqnVJ','value','883090uSMHcD','apiDir','daily','16LJEGvp','high-risk-write','production','2191660qWqTkp','cookie','globalConfig','string','riskLevel','668277eniAmJ','1190526xBpORz','projectPath','region','env','defaultApp','VERBOSE','trim'];a241_0x28ab=function(){return _0x3eb76b;};return a241_0x28ab();}function resolveRiskCeiling(..._0x20f25f){const _0x46258e=a241_0x9925;let _0x36a63c;for(const _0x1ff560 of _0x20f25f){const _0x3ba821=normalizeRiskCeiling(_0x1ff560);_0x3ba821&&(!_0x36a63c||riskLevelOrder(_0x3ba821)<riskLevelOrder(_0x36a63c))&&(_0x36a63c=_0x3ba821);}return _0x36a63c??DEFAULT_CONFIG_VALUES[_0x46258e(0x203)];}export function resolveAppConfig({raw:_0x102dd1,flags:_0x4adcbb,layers:_0x125e47,readEnv:_0x15fd6c}){const _0x9b42c6=a241_0x9925,_0x307b83=_0x125e47?.[_0x9b42c6(0x1eb)]??{},_0x401357=_0x125e47?.['globalConfig']??{},_0x3dc1ae=!!_0x125e47?.[_0x9b42c6(0x206)]||Object[_0x9b42c6(0x1ed)](_0x307b83)[_0x9b42c6(0x20c)]>0x0,_0xc8bec8=!_0x3dc1ae,_0x13a2ad=_0x3dc1ae?resolveDefaultAppName(_0x307b83):undefined,_0x5aff99=_0xc8bec8?resolveDefaultAppName(_0x401357):undefined,_0x556d17=stringConfigValue(_0x4adcbb[_0x9b42c6(0x1ef)]),_0x2da9fc=_0x15fd6c(_0x9b42c6(0x1f6)),_0x579b82={};if(_0x102dd1[_0x9b42c6(0x1ee)]&&typeof _0x102dd1['apps']==='object')for(const [_0x507ccf,_0x298704]of Object[_0x9b42c6(0x1f5)](_0x102dd1['apps'])){_0x298704&&typeof _0x298704===_0x9b42c6(0x210)&&_0x298704[_0x9b42c6(0x20d)]&&(_0x579b82[_0x507ccf]=_0x298704);}const _0x302d8f=_0x13a2ad||_0x5aff99||resolveDefaultAppName(_0x102dd1),_0x5e54f7=Object[_0x9b42c6(0x1ed)](_0x579b82)[_0x9b42c6(0x20c)]>0x0,_0x2f849=_0x556d17||_0x13a2ad||_0x2da9fc||_0x5aff99||_0x302d8f||undefined,_0x17a934=stringConfigValue(_0x4adcbb['appcode']),_0xc95b06=_0x17a934?Object[_0x9b42c6(0x1f5)](_0x579b82)['find'](([,_0x56e99f])=>_0x56e99f?.[_0x9b42c6(0x20d)]===_0x17a934):undefined,_0x307165=_0xc95b06?.[0x0],_0x34d823=_0xc95b06?.[0x1],_0x54d9aa=_0x17a934?_0x307165:_0x2f849;let _0x499ee8=_0x54d9aa&&_0x579b82[_0x54d9aa]?_0x579b82[_0x54d9aa]:undefined;_0x17a934&&_0x34d823&&(_0x499ee8=_0x34d823);const _0x53fb26=_0x17a934?_0x34d823??_0x499ee8:_0x499ee8,_0x285dd9=!_0x556d17&&!_0x13a2ad&&_0x2da9fc&&_0x54d9aa===_0x2da9fc,_0x11fd59=_0x556d17||(_0x285dd9?_0x2da9fc:undefined)||(_0x17a934?_0x307165:undefined),_0x189b9c=_0x53fb26?.[_0x9b42c6(0x20d)],_0x3f7e4b=_0x3dc1ae?resolveTopLevelAppCode(_0x307b83):undefined,_0x48faf1=_0xc8bec8?resolveTopLevelAppCode(_0x401357):undefined,_0x362623=_0x556d17||_0x13a2ad?_0x189b9c:undefined,_0x56e1d2=!_0x556d17&&!_0x13a2ad?_0x189b9c:undefined,_0x3d2f4f=_0x17a934||_0x362623||_0x3f7e4b||_0x56e1d2||_0x48faf1||undefined,_0x4db0eb=_0x3dc1ae?stringConfigValue(_0x307b83[_0x9b42c6(0x208)]):undefined,_0x2de782=_0xc8bec8?stringConfigValue(_0x401357[_0x9b42c6(0x208)]):undefined,_0x105366=_0x4adcbb[_0x9b42c6(0x208)]||_0x53fb26?.[_0x9b42c6(0x208)]||_0x4db0eb||_0x15fd6c(_0x9b42c6(0x213))||_0x2de782||_0x102dd1[_0x9b42c6(0x208)]||DEFAULT_CONFIG_VALUES[_0x9b42c6(0x208)],_0x83e4cd=_0x53fb26?.['locale']||_0x102dd1[_0x9b42c6(0x1f4)]||DEFAULT_CONFIG_VALUES[_0x9b42c6(0x1f4)],_0x4eed5b=_0x15fd6c(_0x9b42c6(0x1ea))||_0x53fb26?.['cookie']||_0x102dd1[_0x9b42c6(0x200)]||undefined,_0x198b07=_0x15fd6c('ACCESS_KEY')||_0x53fb26?.[_0x9b42c6(0x212)]||_0x102dd1['accessKey']||undefined,_0xf7e8c=_0x4adcbb[_0x9b42c6(0x20f)]||_0x15fd6c('FORMAT')||_0x53fb26?.[_0x9b42c6(0x20f)]||_0x102dd1[_0x9b42c6(0x20f)],_0x8a59dc=normalizeLegacyOutputFormat(_0xf7e8c),_0x40634d=_0x15fd6c('PAGE_SIZE')||_0x53fb26?.[_0x9b42c6(0x1f3)]||_0x102dd1[_0x9b42c6(0x1f3)],_0x4e2757=_0x40634d?Number(_0x40634d)||undefined:undefined,_0x44fcb2=_0x125e47?[_0x125e47[_0x9b42c6(0x201)][_0x9b42c6(0x203)],_0x125e47['projectConfig'][_0x9b42c6(0x203)]]:[_0x102dd1['riskLevel']],_0xa4a837=resolveRiskCeiling(..._0x44fcb2,_0x53fb26?.[_0x9b42c6(0x203)]),_0x44d3c3=resolveRiskCeiling(_0xa4a837,_0x15fd6c(_0x9b42c6(0x1f2))),_0xd5b4e4=_0x15fd6c(_0x9b42c6(0x20a)),_0x320e86=_0xd5b4e4==='1'||_0xd5b4e4===_0x9b42c6(0x1e7),_0x64d052=_0x53fb26?.[_0x9b42c6(0x1fa)]||_0x102dd1[_0x9b42c6(0x1fa)]||DEFAULT_CONFIG_VALUES[_0x9b42c6(0x1fa)],_0x284c6f=selectConfiguredRegion({'appRegion':_0x53fb26?.['region'],'projectRegion':_0x3dc1ae?_0x307b83[_0x9b42c6(0x207)]:undefined,'globalRegion':_0x3dc1ae||_0xc8bec8?_0x401357['region']:undefined,'mergedRegion':_0x102dd1['region']}),_0x2a0335=normalizeLovrabetRegion(_0x284c6f[_0x9b42c6(0x1f8)])??DEFAULT_LOVRABET_REGION,_0x2d25b5=isDaily(normalizeEnv(String(_0x105366)))?_0x9b42c6(0x1fb):_0x9b42c6(0x1fe);return{'appCode':typeof _0x3d2f4f==='string'&&_0x3d2f4f[_0x9b42c6(0x20b)]()?_0x3d2f4f[_0x9b42c6(0x20b)]():undefined,'region':_0x2a0335,'regionConfiguredValue':_0x284c6f['value'],'regionSource':_0x284c6f[_0x9b42c6(0x1f0)],'env':_0x2d25b5,'locale':_0x83e4cd,'cookie':_0x4eed5b,'accessKey':_0x198b07,'format':_0x8a59dc,'pageSize':_0x4e2757,'riskLevel':_0x44d3c3,'verbose':_0x320e86,'apiDir':_0x64d052,'apps':_0x579b82,'defaultApp':_0x302d8f,'currentApp':_0x5e54f7?_0x54d9aa:undefined,'explicitAppName':_0x11fd59};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x57a91b,_0x4b50de){const _0x54aeb0=a242_0x1e1c,_0xe00e0a=_0x57a91b();while(!![]){try{const _0x498c98=parseInt(_0x54aeb0(0x177))/0x1+-parseInt(_0x54aeb0(0x17a))/0x2+parseInt(_0x54aeb0(0x17b))/0x3+-parseInt(_0x54aeb0(0x178))/0x4*(-parseInt(_0x54aeb0(0x17c))/0x5)+-parseInt(_0x54aeb0(0x172))/0x6+-parseInt(_0x54aeb0(0x176))/0x7+parseInt(_0x54aeb0(0x173))/0x8;if(_0x498c98===_0x4b50de)break;else _0xe00e0a['push'](_0xe00e0a['shift']());}catch(_0x34f072){_0xe00e0a['push'](_0xe00e0a['shift']());}}}(a242_0x7073,0xc1fd6));function a242_0x1e1c(_0x2c74a9,_0x379e4d){_0x2c74a9=_0x2c74a9-0x172;const _0x707368=a242_0x7073();let _0x1e1c46=_0x707368[_0x2c74a9];return _0x1e1c46;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x4c4fa1){const _0x5c7795=a242_0x1e1c,{getCookie:_0x277bd8}=await import(_0x5c7795(0x174)),_0x11041e=_0x4c4fa1[_0x5c7795(0x175)]||_0x277bd8(),_0xa64a17=_0x11041e?await getIsSessionValid():![];return{'cookie':_0x11041e,'isLoggedIn':_0xa64a17,async 'getOrLogin'(){const _0x12947d=_0x5c7795;if(_0x11041e&&_0xa64a17)return _0x11041e;throw CliErrors[_0x12947d(0x179)]();}};}function a242_0x7073(){const _0x1a36e7=['1028868dmSuGI','authRequired','1061774pJxYVe','959943AwKasr','10zuMwsZ','1029804DsDMkv','7519248xRpNoX','../auth/get-cookie.js','cookie','10987319hHZHOw','1292399wavWYV'];a242_0x7073=function(){return _0x1a36e7;};return a242_0x7073();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a243_0x124cd6=a243_0x2598;(function(_0x446979,_0x1c0817){const _0x3448f7=a243_0x2598,_0x54059c=_0x446979();while(!![]){try{const _0x4421f8=-parseInt(_0x3448f7(0x70))/0x1+-parseInt(_0x3448f7(0x68))/0x2+parseInt(_0x3448f7(0x66))/0x3+-parseInt(_0x3448f7(0x65))/0x4+parseInt(_0x3448f7(0x8e))/0x5+parseInt(_0x3448f7(0x7c))/0x6+-parseInt(_0x3448f7(0x7d))/0x7*(-parseInt(_0x3448f7(0x84))/0x8);if(_0x4421f8===_0x1c0817)break;else _0x54059c['push'](_0x54059c['shift']());}catch(_0x49868f){_0x54059c['push'](_0x54059c['shift']());}}}(a243_0x55bd,0x5a30f));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';import{normalizeConfigForWrite}from'../config/schema.js';export const NEW_CONFIG_NAME=a243_0x124cd6(0x7b);function a243_0x55bd(){const _0x30c6c8=['appcode','object','apiDomain','apiDir','inherit','.rabetbase.json','2963346ImTCqO','2779RyUeJl','cwd','message','Global','utf8','migrated','routing','12088BpJsSE','string','warn','project','region','config','parse','locale','status','length','2483325NHFELu','error','keys','silent','appDomain','set','format','Project','skillDomain','pageSize','empty','1465960Spkzrg','588042HNJrav','apps','1052182bsHTUt','localDomain','userDomain','stringify','.tmp','data','riskLevel','projectPath','524433WTwEyy','accessKey','cookie','trim','app','defaultApp'];a243_0x55bd=function(){return _0x30c6c8;};return a243_0x55bd();}export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x4ff5b2){for(const _0x529521 of CONFIG_NAMES){const _0x15d093=resolve(_0x4ff5b2,_0x529521);if(existsSync(_0x15d093))return _0x15d093;}return undefined;}export function findProjectRootDirectory(_0x5cf2ba=process[a243_0x124cd6(0x7e)]()){let _0x678389=resolve(_0x5cf2ba);const {root:_0x28bce4}=parse(_0x678389),_0x3c8705=homedir();while(!![]){if(resolveConfigPath(_0x678389)){if(_0x678389===_0x3c8705)break;return _0x678389;}if(_0x678389===_0x28bce4||_0x678389===_0x3c8705)break;const _0xbbf2f0=dirname(_0x678389);if(_0xbbf2f0===_0x678389)break;_0x678389=_0xbbf2f0;}return resolve(_0x5cf2ba);}export function getProjectConfigPath(){const _0x3b6bfa=a243_0x124cd6;return resolveConfigPath(process[_0x3b6bfa(0x7e)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}function a243_0x2598(_0x1cf3f2,_0x716d60){_0x1cf3f2=_0x1cf3f2-0x65;const _0x55bd03=a243_0x55bd();let _0x259885=_0x55bd03[_0x1cf3f2];return _0x259885;}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x142118){const _0x518ce9=a243_0x124cd6;if(!existsSync(_0x142118))return{'status':'missing'};try{const _0x5acd11=readFileSync(_0x142118,{'encoding':_0x518ce9(0x81)});if(!_0x5acd11?.[_0x518ce9(0x73)]())return{'status':'empty'};const _0x21088a=JSON[_0x518ce9(0x8a)](_0x5acd11);return{'status':'ok','data':_0x21088a};}catch(_0x1cd941){return{'status':_0x518ce9(0x8f),'message':_0x1cd941 instanceof Error?_0x1cd941['message']:String(_0x1cd941)};}}function parseCliConfigJsonFile(_0x527dc7,_0x427891,_0x5f0b29){const _0x4233c8=a243_0x124cd6,_0x8d00be=inspectCliConfigJsonFile(_0x527dc7);if(_0x8d00be[_0x4233c8(0x8c)]==='missing'||_0x8d00be[_0x4233c8(0x8c)]===_0x4233c8(0x98))return{};if(_0x8d00be['status']==='ok')return _0x8d00be[_0x4233c8(0x6d)];return _0x427891===_0x4233c8(0x86)&&_0x5f0b29&&console['error'](CLI_BIN_NAME+':\x20'+_0x5f0b29+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x527dc7+'\x0a\x20\x20'+_0x8d00be[_0x4233c8(0x7f)]),{};}function normalizeLegacyConfigShape(_0x1f98b9){const _0x52e601=a243_0x124cd6;if(!_0x1f98b9||typeof _0x1f98b9!==_0x52e601(0x77))return{'config':{},'migrated':![]};const _0x431613={..._0x1f98b9},_0x58c143=_0x431613['apps']&&typeof _0x431613[_0x52e601(0x67)]===_0x52e601(0x77)?{..._0x431613[_0x52e601(0x67)]}:{},_0x49001f=Object['keys'](_0x58c143)['length'],_0x2fe96c=_0x431613[_0x52e601(0x76)]||_0x431613[_0x52e601(0x74)];let _0x38c536=![];if(_0x2fe96c&&_0x49001f===0x0){const _0x262bd4=typeof _0x431613['defaultApp']===_0x52e601(0x85)&&_0x431613[_0x52e601(0x75)][_0x52e601(0x73)]()?_0x431613[_0x52e601(0x75)]:String(_0x2fe96c)[_0x52e601(0x73)]();_0x58c143[_0x262bd4]={'appcode':String(_0x2fe96c)[_0x52e601(0x73)](),..._0x431613['env']!=null?{'env':_0x431613['env']}:{},..._0x431613[_0x52e601(0x79)]!=null?{'apiDir':_0x431613[_0x52e601(0x79)]}:{},..._0x431613[_0x52e601(0x72)]!=null?{'cookie':_0x431613['cookie']}:{},..._0x431613[_0x52e601(0x71)]!=null?{'accessKey':_0x431613[_0x52e601(0x71)]}:{},..._0x431613[_0x52e601(0x94)]!=null?{'format':_0x431613[_0x52e601(0x94)]}:{},..._0x431613[_0x52e601(0x97)]!=null?{'pageSize':_0x431613[_0x52e601(0x97)]}:{},..._0x431613['riskLevel']!=null?{'riskLevel':_0x431613[_0x52e601(0x6e)]}:{},..._0x431613[_0x52e601(0x8b)]!=null?{'locale':_0x431613[_0x52e601(0x8b)]}:{}},_0x431613['apps']=_0x58c143,delete _0x431613['defaultApp'],_0x38c536=!![];}return(_0x52e601(0x76)in _0x431613||'app'in _0x431613)&&(delete _0x431613[_0x52e601(0x76)],delete _0x431613[_0x52e601(0x74)],_0x38c536=!![]),{'config':_0x431613,'migrated':_0x38c536};}function writeNormalizedConfigIfNeeded(_0x4ecdcc,_0x314ca8){const _0x3783a3=a243_0x124cd6,_0x21b32d=JSON[_0x3783a3(0x6b)](normalizeConfigForWrite(_0x314ca8),null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x4ecdcc)===_0x21b32d)return;writeConfigFile(_0x4ecdcc,_0x314ca8),normalizedWriteCache[_0x3783a3(0x93)](_0x4ecdcc,_0x21b32d);}function parseAndNormalizeConfig(_0xebf1a5,_0x657e01,_0x2295df){const _0x394bc6=a243_0x124cd6,_0x4f3122=parseCliConfigJsonFile(_0xebf1a5,_0x657e01,_0x2295df),_0x59d55f=normalizeLegacyConfigShape(_0x4f3122);if(_0x59d55f[_0x394bc6(0x82)])try{writeNormalizedConfigIfNeeded(_0xebf1a5,_0x59d55f[_0x394bc6(0x89)]);}catch{}return _0x59d55f[_0x394bc6(0x89)];}export function loadRawConfigLayers(_0x3252c4){const _0x4d287f=a243_0x124cd6;let _0x21392f={},_0x1cf747={};const _0x1b2b80=resolveConfigPath(homedir());_0x1b2b80&&(_0x21392f=parseAndNormalizeConfig(_0x1b2b80,'warn',_0x4d287f(0x80)));const _0xaf544e=_0x3252c4??findProjectRootDirectory(),_0xee8c91=resolveConfigPath(_0xaf544e);return _0xee8c91&&(_0x1cf747=parseAndNormalizeConfig(_0xee8c91,_0x4d287f(0x86),_0x4d287f(0x95))),{'globalPath':_0x1b2b80,'projectPath':_0xee8c91,'globalConfig':_0x21392f,'projectConfig':_0x1cf747};}const INHERIT_WHITELIST=['cookie',a243_0x124cd6(0x71),a243_0x124cd6(0x8b),a243_0x124cd6(0x94),'riskLevel',a243_0x124cd6(0x97),a243_0x124cd6(0x88),a243_0x124cd6(0x83),a243_0x124cd6(0x6a),a243_0x124cd6(0x78),'runtimeDomain',a243_0x124cd6(0x96),'kbDomain',a243_0x124cd6(0x92),a243_0x124cd6(0x69),'certificateDomain'];export function mergeRawConfigLayers(_0x75b351){const _0x5d489d=a243_0x124cd6,{globalConfig:_0x30d0c7,projectConfig:_0x1d695a}=_0x75b351,_0x28c294=!!_0x75b351[_0x5d489d(0x6f)]||Object[_0x5d489d(0x90)](_0x1d695a)[_0x5d489d(0x8d)]>0x0;if(!_0x28c294)return mergeGlobalOnly(_0x30d0c7);return mergeProjectFirst(_0x30d0c7,_0x1d695a);}function mergeGlobalOnly(_0x5ce961){const _0x1e2de0=a243_0x124cd6,_0x1e575b={..._0x5ce961};delete _0x1e575b['inherit'];const _0x259359=_0x5ce961['apps']&&typeof _0x5ce961['apps']===_0x1e2de0(0x77)?_0x5ce961[_0x1e2de0(0x67)]:{};if(Object[_0x1e2de0(0x90)](_0x259359)[_0x1e2de0(0x8d)]>0x0)_0x1e575b['apps']=_0x259359;if(_0x5ce961[_0x1e2de0(0x75)])_0x1e575b['defaultApp']=_0x5ce961[_0x1e2de0(0x75)];return _0x1e575b;}function mergeProjectFirst(_0x2a730f,_0x484b0f){const _0x386d56=a243_0x124cd6,_0xe7ed14={..._0x484b0f};delete _0xe7ed14[_0x386d56(0x7a)];for(const _0x424f34 of INHERIT_WHITELIST){!(_0x424f34 in _0xe7ed14)&&_0x424f34 in _0x2a730f&&(_0xe7ed14[_0x424f34]=_0x2a730f[_0x424f34]);}const _0x27ff41=_0x484b0f[_0x386d56(0x67)]&&typeof _0x484b0f[_0x386d56(0x67)]==='object'?_0x484b0f['apps']:{};return Object[_0x386d56(0x90)](_0x27ff41)[_0x386d56(0x8d)]>0x0?_0xe7ed14[_0x386d56(0x67)]=_0x27ff41:delete _0xe7ed14[_0x386d56(0x67)],'defaultApp'in _0x484b0f?_0xe7ed14[_0x386d56(0x75)]=_0x484b0f['defaultApp']:delete _0xe7ed14[_0x386d56(0x75)],_0xe7ed14;}export function readRawConfigWithLayers(_0x4176fb){const _0x44fc7c=loadRawConfigLayers(_0x4176fb);return{'config':mergeRawConfigLayers(_0x44fc7c),'layers':_0x44fc7c};}export function readRawConfig(_0x1b1c15){return mergeRawConfigLayers(loadRawConfigLayers(_0x1b1c15));}export function readConfigFile(_0xfecc93){const _0x516264=a243_0x124cd6;return parseAndNormalizeConfig(_0xfecc93,_0x516264(0x91));}export function writeConfigFile(_0x4e2981,_0xec49c9){const _0x28376c=a243_0x124cd6,_0x5df883=dirname(_0x4e2981);!existsSync(_0x5df883)&&mkdirSync(_0x5df883,{'recursive':!![]});const _0x3ea229=_0x4e2981+_0x28376c(0x6c);try{const _0x120cba=normalizeConfigForWrite(_0xec49c9);writeFileSync(_0x3ea229,JSON[_0x28376c(0x6b)](_0x120cba,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0x3ea229,_0x4e2981);}catch(_0x4a6d12){try{unlinkSync(_0x3ea229);}catch{}throw _0x4a6d12;}}export function resolveWriteConfigPath(_0x37de11){const _0xf84f60=a243_0x124cd6,_0x523772=_0x37de11===_0xf84f60(0x87)?process['cwd']():homedir(),_0xee8e54=resolveConfigPath(_0x523772);return _0xee8e54??resolve(_0x523772,NEW_CONFIG_NAME);}
|
package/lib/context.d.ts
CHANGED
|
@@ -8,10 +8,17 @@
|
|
|
8
8
|
import { type AppProfile } from "./context/app-resolver.js";
|
|
9
9
|
import { CONFIG_NAMES, NEW_CONFIG_NAME, findProjectRootDirectory, getGlobalConfigPath, getProjectConfigPath, inspectCliConfigJsonFile, isInProject, loadRawConfigLayers, mergeRawConfigLayers, readConfigFile, readRawConfig, readRawConfigWithLayers, resolveConfigPath, resolveWriteConfigPath, writeConfigFile, type CliConfigJsonInspect, type RawConfigLayers } from "./context/config-loader.js";
|
|
10
10
|
import type { OutputFormat, Risk } from "./framework/types.js";
|
|
11
|
+
import { type LovrabetRegion } from "./constant/region.js";
|
|
12
|
+
import { type RegionConfigSource } from "./config/region-config.js";
|
|
11
13
|
import { logger } from "./utils/logger.js";
|
|
12
14
|
export { CONFIG_NAMES, NEW_CONFIG_NAME, findProjectRootDirectory, getGlobalConfigPath, getProjectConfigPath, inspectCliConfigJsonFile, isInProject, loadRawConfigLayers, mergeRawConfigLayers, readConfigFile, readRawConfig, readRawConfigWithLayers, resolveConfigPath, resolveWriteConfigPath, writeConfigFile, type AppProfile, type CliConfigJsonInspect, type RawConfigLayers, };
|
|
13
15
|
export interface CLIConfig {
|
|
14
16
|
appCode: string | undefined;
|
|
17
|
+
/** Effective country/region after the selected app profile override. */
|
|
18
|
+
region?: LovrabetRegion;
|
|
19
|
+
/** Raw selected value retained so doctor can report invalid manual edits. */
|
|
20
|
+
regionConfiguredValue?: unknown;
|
|
21
|
+
regionSource?: RegionConfigSource;
|
|
15
22
|
env: "production" | "daily";
|
|
16
23
|
locale: string;
|
|
17
24
|
/** 内联 cookie,优先于 ~/.lovrabet/cookie 文件 */
|
|
@@ -58,9 +65,13 @@ export interface MultiAppConfig {
|
|
|
58
65
|
name: string;
|
|
59
66
|
appcode: string;
|
|
60
67
|
isDefault: boolean;
|
|
68
|
+
region: LovrabetRegion;
|
|
69
|
+
regionSource: RegionConfigSource;
|
|
61
70
|
env?: string;
|
|
62
71
|
apiDir?: string;
|
|
63
72
|
cookie?: string;
|
|
73
|
+
/** Effective top-level connection settings for this app's defining layer. */
|
|
74
|
+
routingConfig: Record<string, any>;
|
|
64
75
|
}
|
|
65
76
|
export interface CLIContext {
|
|
66
77
|
config: CLIConfig;
|
|
@@ -87,6 +98,8 @@ export declare function buildConfigFromFlags(flags: Record<string, any>): CLICon
|
|
|
87
98
|
* 终端 CLI 与嵌入式 runtime 共用该入口,避免 env/domain 初始化语义漂移。
|
|
88
99
|
*/
|
|
89
100
|
export declare function initGlobalEnvironment(config: CLIConfig): Promise<void>;
|
|
101
|
+
/** Switch process-wide routing before a multi-app operation. Callers must run apps sequentially. */
|
|
102
|
+
export declare function initMultiAppEnvironment(app: MultiAppConfig): Promise<void>;
|
|
90
103
|
export declare function getConfigAppCode(projectRoot?: string): string | undefined;
|
|
91
104
|
export type MultiAppConfigScope = "project" | "merged";
|
|
92
105
|
export declare function getMultiAppConfigs(scope?: MultiAppConfigScope, projectRoot?: string): MultiAppConfig[] | null;
|