@lovrabet/rabetbase-cli 2.5.2-beta.3 → 2.5.2-beta.5
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/README.md +1 -1
- 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/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/auto-sync.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/deployment/sync.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.d.ts +0 -8
- 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.d.ts +4 -0
- 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.d.ts +5 -1
- package/lib/config/project-domain-routing.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/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.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.d.ts +0 -26
- 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.d.ts +43 -0
- 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/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/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/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.d.ts +6 -5
- package/lib/utils/platform.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 +2 -1
- package/skills/rabetbase/SKILL.md +5 -5
- package/skills/rabetbase/guides/custom-page-workflow.md +35 -17
- package/skills/rabetbase/guides/page-development-workflow.md +1 -1
- package/skills/rabetbase/knowledge/components.md +292 -0
- package/skills/rabetbase/knowledge/custom-page/generation-standards.md +74 -4
- package/skills/rabetbase/knowledge/custom-page/page-templates.md +68 -0
- package/skills/rabetbase/references/rabetbase-page-create.md +21 -9
- package/skills/rabetbase/references/rabetbase-page-custom-detail.md +1 -1
- package/skills/rabetbase/references/rabetbase-page-custom-update.md +13 -9
- package/skills/rabetbase/references/rabetbase-project-create.md +5 -2
- package/skills/rabetbase/references/rabetbase-project-domain-routing-sync.md +2 -2
- package/skills/rabetbase/references/rabetbase-run.md +1 -0
- package/skills/rabetbase.manifest.json +5 -4
- package/templates/README.md +10 -4
- package/templates/custom-pages/blank.json +5 -0
- package/templates/custom-pages/dashboard.json +5 -0
- package/templates/custom-pages/onepage.json +5 -0
- package/templates/generate-api/api.ts.tpl +1 -1
- package/lib/commands/page/custom/template.d.ts +0 -8
- package/lib/commands/page/custom/template.js +0 -1
- package/skills/rabetbase/knowledge/custom-page/components.md +0 -225
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a234_0x2dc487=a234_0x5250;(function(_0xad397a,_0x11ae7f){const _0x4a0870=a234_0x5250,_0x353d11=_0xad397a();while(!![]){try{const _0x33af9e=parseInt(_0x4a0870(0xbf))/0x1*(parseInt(_0x4a0870(0x95))/0x2)+-parseInt(_0x4a0870(0x80))/0x3*(-parseInt(_0x4a0870(0x8e))/0x4)+-parseInt(_0x4a0870(0x79))/0x5*(parseInt(_0x4a0870(0xd0))/0x6)+-parseInt(_0x4a0870(0x77))/0x7*(-parseInt(_0x4a0870(0xad))/0x8)+parseInt(_0x4a0870(0xb7))/0x9*(parseInt(_0x4a0870(0x98))/0xa)+-parseInt(_0x4a0870(0xda))/0xb*(parseInt(_0x4a0870(0x7a))/0xc)+parseInt(_0x4a0870(0xd8))/0xd;if(_0x33af9e===_0x11ae7f)break;else _0x353d11['push'](_0x353d11['shift']());}catch(_0x5570e5){_0x353d11['push'](_0x353d11['shift']());}}}(a234_0x22ea,0xbbf8c));export const CLI_BIN_NAME=a234_0x2dc487(0xc1);export const CLI_DISPLAY_NAME=a234_0x2dc487(0x76);export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a234_0x2dc487(0xd1),'meowKey':a234_0x2dc487(0xd1),'type':a234_0x2dc487(0x90),'description':'Override\x20appcode','hint':a234_0x2dc487(0xb2)},{'name':a234_0x2dc487(0xa8),'meowKey':a234_0x2dc487(0xa8),'type':a234_0x2dc487(0x90),'description':a234_0x2dc487(0xde),'hint':a234_0x2dc487(0xc3)},{'name':a234_0x2dc487(0xe3),'meowKey':a234_0x2dc487(0xe3),'type':'string','description':'Environment','hint':'production\x20|\x20daily'},{'name':a234_0x2dc487(0x6e),'meowKey':a234_0x2dc487(0x6e),'type':a234_0x2dc487(0x90),'description':'Output\x20format','hint':a234_0x2dc487(0x8d)},{'name':'jq','meowKey':'jq','type':'string','description':a234_0x2dc487(0x9b),'hint':'<expr>'},{'name':a234_0x2dc487(0xd9),'meowKey':'dryRun','type':a234_0x2dc487(0xdb),'description':a234_0x2dc487(0xc8)},{'name':a234_0x2dc487(0xea),'meowKey':a234_0x2dc487(0xea),'type':a234_0x2dc487(0xdb),'description':a234_0x2dc487(0xba)},{'name':a234_0x2dc487(0x83),'meowKey':a234_0x2dc487(0xa3),'type':a234_0x2dc487(0xdb),'description':a234_0x2dc487(0x97)},{'name':'global','meowKey':'global','type':'boolean','description':'Use\x20global\x20config\x20scope'},{'name':a234_0x2dc487(0xc7),'meowKey':a234_0x2dc487(0xc7),'type':a234_0x2dc487(0xdb),'description':a234_0x2dc487(0xa1)},{'name':'ci','meowKey':'ci','type':a234_0x2dc487(0xdb),'description':a234_0x2dc487(0x9e),'hidden':!![]},{'name':a234_0x2dc487(0xcb),'meowKey':a234_0x2dc487(0xcb),'type':a234_0x2dc487(0xdb),'description':a234_0x2dc487(0x96)},{'name':a234_0x2dc487(0x88),'meowKey':a234_0x2dc487(0x88),'type':a234_0x2dc487(0x90),'description':a234_0x2dc487(0x70),'hidden':!![],'hint':a234_0x2dc487(0x7f)},{'name':a234_0x2dc487(0x7b),'meowKey':'name','type':a234_0x2dc487(0x90),'description':a234_0x2dc487(0x8f),'hidden':!![]},{'name':'title','meowKey':a234_0x2dc487(0xc9),'type':a234_0x2dc487(0x90),'description':a234_0x2dc487(0xee),'hidden':!![]},{'name':a234_0x2dc487(0xb0),'meowKey':a234_0x2dc487(0xb0),'type':a234_0x2dc487(0x90),'description':'Search\x20query','hidden':!![]},{'name':'topk','meowKey':a234_0x2dc487(0xbc),'type':'string','description':a234_0x2dc487(0xb4),'hidden':!![]},{'name':a234_0x2dc487(0xce),'meowKey':a234_0x2dc487(0xce),'type':a234_0x2dc487(0xdb),'description':'Clear','hidden':!![]},{'name':'watch','meowKey':a234_0x2dc487(0x9a),'type':a234_0x2dc487(0xdb),'description':a234_0x2dc487(0xf0),'hidden':!![]},{'name':a234_0x2dc487(0x6f),'meowKey':a234_0x2dc487(0x6f),'type':a234_0x2dc487(0x90),'description':a234_0x2dc487(0x7c),'hidden':!![]},{'name':'params','meowKey':a234_0x2dc487(0x91),'type':a234_0x2dc487(0x90),'description':a234_0x2dc487(0xd4),'hidden':!![]},{'name':'datasetcode','meowKey':a234_0x2dc487(0x84),'type':a234_0x2dc487(0x90),'description':'Dataset\x20code','hidden':!![]},{'name':a234_0x2dc487(0x8b),'meowKey':a234_0x2dc487(0x8b),'type':a234_0x2dc487(0xdb),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a234_0x2dc487(0xd7),'meowKey':a234_0x2dc487(0xab),'type':'boolean','description':a234_0x2dc487(0xcd),'hidden':!![]},{'name':'id','meowKey':'id','type':a234_0x2dc487(0x90),'description':a234_0x2dc487(0xe4),'hidden':!![]},{'name':'type','meowKey':a234_0x2dc487(0x85),'type':a234_0x2dc487(0x90),'description':'Type\x20filter','hidden':!![]},{'name':a234_0x2dc487(0xdc),'meowKey':a234_0x2dc487(0xdc),'type':a234_0x2dc487(0x90),'description':a234_0x2dc487(0xe9),'hidden':!![]},{'name':a234_0x2dc487(0xa0),'meowKey':a234_0x2dc487(0xa0),'type':a234_0x2dc487(0x90),'description':'SQL\x20code','hidden':!![]},{'name':a234_0x2dc487(0xca),'meowKey':'sqlName','type':'string','description':a234_0x2dc487(0xa7),'hidden':!![]},{'name':a234_0x2dc487(0x72),'meowKey':a234_0x2dc487(0x72),'type':a234_0x2dc487(0x90),'description':'SQL\x20name','hidden':!![]},{'name':a234_0x2dc487(0xeb),'meowKey':a234_0x2dc487(0xc6),'type':a234_0x2dc487(0x90),'description':'DB\x20ID','hidden':!![]},{'name':a234_0x2dc487(0xe0),'meowKey':a234_0x2dc487(0xe0),'type':a234_0x2dc487(0x90),'description':'DB\x20ID','hidden':!![]},{'name':a234_0x2dc487(0xa9),'meowKey':a234_0x2dc487(0xa9),'type':a234_0x2dc487(0x90),'description':a234_0x2dc487(0x93),'hidden':!![]},{'name':a234_0x2dc487(0xdf),'meowKey':a234_0x2dc487(0x81),'type':a234_0x2dc487(0x90),'description':a234_0x2dc487(0xe1),'hidden':!![]},{'name':'page','meowKey':a234_0x2dc487(0xec),'type':'string','description':'Page\x20number','hidden':!![]},{'name':'pagesize','meowKey':'pagesize','type':a234_0x2dc487(0x90),'description':'Page\x20size','hidden':!![]},{'name':'keyword','meowKey':a234_0x2dc487(0xc2),'type':'string','description':a234_0x2dc487(0xa6),'hidden':!![]},{'name':a234_0x2dc487(0xae),'meowKey':a234_0x2dc487(0xae),'type':a234_0x2dc487(0x90),'description':a234_0x2dc487(0x6a),'hidden':!![]},{'name':a234_0x2dc487(0x6b),'meowKey':a234_0x2dc487(0x6b),'type':a234_0x2dc487(0x90),'description':'SQL\x20string','hidden':!![]},{'name':a234_0x2dc487(0x92),'meowKey':a234_0x2dc487(0x92),'type':a234_0x2dc487(0x90),'description':'Schemas','hidden':!![]},{'name':a234_0x2dc487(0x8c),'meowKey':a234_0x2dc487(0x8c),'type':a234_0x2dc487(0x90),'description':a234_0x2dc487(0x89),'hidden':!![]},{'name':'target','meowKey':'target','type':a234_0x2dc487(0x90),'description':a234_0x2dc487(0xc0),'hidden':!![]},{'name':a234_0x2dc487(0xef),'meowKey':a234_0x2dc487(0x7e),'type':a234_0x2dc487(0xdb),'description':a234_0x2dc487(0xb3),'hidden':!![]},{'name':a234_0x2dc487(0xaa),'meowKey':a234_0x2dc487(0xaa),'type':'string','description':a234_0x2dc487(0xb5),'hidden':!![]},{'name':a234_0x2dc487(0xd3),'meowKey':a234_0x2dc487(0xd3),'type':a234_0x2dc487(0x90),'description':a234_0x2dc487(0x9d),'hidden':!![]},{'name':a234_0x2dc487(0xa4),'meowKey':a234_0x2dc487(0xa4),'type':a234_0x2dc487(0x90),'description':a234_0x2dc487(0xbe),'hidden':!![]},{'name':a234_0x2dc487(0x8a),'meowKey':a234_0x2dc487(0x8a),'type':a234_0x2dc487(0xdb),'description':a234_0x2dc487(0x7d),'hidden':!![]},{'name':'from-env','meowKey':'fromEnv','type':a234_0x2dc487(0x90),'description':a234_0x2dc487(0xc4),'hidden':!![]},{'name':a234_0x2dc487(0x87),'meowKey':a234_0x2dc487(0x87),'type':a234_0x2dc487(0xdb),'description':a234_0x2dc487(0x9c),'hidden':!![]},{'name':a234_0x2dc487(0xd6),'meowKey':a234_0x2dc487(0xd6),'type':a234_0x2dc487(0xdb),'description':a234_0x2dc487(0xe6),'hidden':!![]},{'name':a234_0x2dc487(0x6c),'meowKey':a234_0x2dc487(0x6c),'type':a234_0x2dc487(0xdb),'description':a234_0x2dc487(0xc5),'hidden':!![]},{'name':a234_0x2dc487(0x6d),'meowKey':a234_0x2dc487(0x6d),'type':'boolean','description':a234_0x2dc487(0x73),'hidden':!![]},{'name':a234_0x2dc487(0xb6),'meowKey':a234_0x2dc487(0xb6),'type':a234_0x2dc487(0xdb),'description':a234_0x2dc487(0xe8),'hidden':!![]},{'name':'expected-count','meowKey':a234_0x2dc487(0xed),'type':a234_0x2dc487(0x90),'description':a234_0x2dc487(0xa2),'hidden':!![]},{'name':a234_0x2dc487(0xb9),'meowKey':a234_0x2dc487(0xb9),'type':a234_0x2dc487(0x90),'description':a234_0x2dc487(0x86),'hidden':!![]},{'name':'parent-id','meowKey':a234_0x2dc487(0x78),'type':a234_0x2dc487(0x90),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a234_0x2dc487(0xb1),'meowKey':a234_0x2dc487(0xb1),'type':a234_0x2dc487(0x90),'description':a234_0x2dc487(0xaf),'hidden':!![]},{'name':a234_0x2dc487(0xe2),'meowKey':a234_0x2dc487(0xa5),'type':a234_0x2dc487(0x90),'description':a234_0x2dc487(0x75),'hidden':!![]},{'name':a234_0x2dc487(0xdd),'meowKey':'expectPath','type':a234_0x2dc487(0x90),'description':a234_0x2dc487(0xbb),'hidden':!![]},{'name':'expected-children-count','meowKey':a234_0x2dc487(0xac),'type':a234_0x2dc487(0x90),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a234_0x2dc487(0xcf),'meowKey':a234_0x2dc487(0xd2),'type':a234_0x2dc487(0x90),'description':a234_0x2dc487(0x99),'hidden':!![]},{'name':a234_0x2dc487(0xbd),'meowKey':a234_0x2dc487(0xcc),'type':a234_0x2dc487(0x90),'description':a234_0x2dc487(0xb8),'hidden':!![]},{'name':a234_0x2dc487(0x74),'meowKey':'operationType','type':a234_0x2dc487(0x90),'description':a234_0x2dc487(0x89),'hidden':!![]},{'name':a234_0x2dc487(0x9f),'meowKey':'functionNode','type':'string','description':a234_0x2dc487(0x71),'hidden':!![]},{'name':a234_0x2dc487(0x82),'meowKey':'codes','type':a234_0x2dc487(0x90),'description':a234_0x2dc487(0xd5),'hidden':!![]}];function a234_0x5250(_0x483387,_0x27b3dd){_0x483387=_0x483387-0x6a;const _0x22ea5f=a234_0x22ea();let _0x5250a5=_0x22ea5f[_0x483387];return _0x5250a5;}export const PIPELINE_FLAG_NAMES=new Set([a234_0x2dc487(0xd1),a234_0x2dc487(0xa8),a234_0x2dc487(0xe3),a234_0x2dc487(0x6e),'jq',a234_0x2dc487(0xd9),a234_0x2dc487(0xea),a234_0x2dc487(0x83),'ci']);function a234_0x22ea(){const _0x3743dd=['enableBffSave','expectedChildrenCount','33568gGjNho','code','Menu\x20sort\x20value','query','sort','<code>','Skip\x20import\x20generation','Maximum\x20search\x20hits','Config\x20key','verbose','675639SScakZ','Asynchronous\x20task\x20ID','label','Skip\x20confirmation\x20for\x20high-risk\x20writes','Expected\x20current\x20menu\x20path','topk','task-id','Tags','1KqqIxS','Target\x20path','rabetbase','keyword','<name>','Read\x20value\x20from\x20environment\x20variable','Confirm\x20destructive\x20action','dbId','project','Preview\x20operation\x20without\x20executing','title','sql-name','help','taskId','Enable\x20Backend\x20Function\x20save','clear','menu-ids','7689804lNUhlz','appcode','menuIds','value','JSON\x20params','Comma-separated\x20metadata\x20codes','force','enable-bff-save','27773616jnjFSS','dry-run','118008OFblWS','boolean','file','expect-path','Select\x20app\x20profile\x20by\x20name','description-file','dbid','Description\x20file','expect-parent-id','env','Record\x20ID','map','Force\x20overwrite','meowKey','Verbose\x20output','File\x20path','yes','db-id','page','expectedCount','Title','skip-imports','Watch\x20mode','Code\x20filter','sql','confirm','remote','format','output','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','Function\x20node','sqlname','Use\x20remote','operation-type','Expected\x20current\x20parent\x20menu\x20id','Rabetbase\x20CLI','1253xzbNGr','parentId','5dbfONs','1428wuyshV','name','Output\x20path','Read\x20value\x20from\x20stdin','skipImports','zh-CN\x20|\x20en-US','105NXWbNZ','descriptionFile','codes','non-interactive','datasetcode','type','Menu\x20label','reveal','locale','Operation\x20type','stdin','all','operation','json\x20|\x20pretty\x20|\x20compress','8780elZfHK','Name','string','params','schemas','Description','fromEntries','127146DAKBJw','Show\x20help','Force\x20non-interactive\x20mode\x20(CI)','40MBkNnU','Comma-separated\x20menu\x20IDs','watch','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Reveal\x20sensitive\x20value','Config\x20value','Alias\x20for\x20--non-interactive','function-node','sqlcode','Use\x20project\x20config\x20scope','Expected\x20affected\x20count','nonInteractive','tags','expectParentId','Keyword\x20filter','SQL\x20name','app','description','key'];a234_0x22ea=function(){return _0x3743dd;};return a234_0x22ea();}export function buildMeowFlags(){const _0x460d1f=a234_0x2dc487;return Object[_0x460d1f(0x94)](GLOBAL_FLAGS[_0x460d1f(0xe5)](_0x26f8aa=>[_0x26f8aa[_0x460d1f(0xe7)],{'type':_0x26f8aa[_0x460d1f(0x85)]}]));}
|
|
1
|
+
const a233_0x2204c0=a233_0x184d;function a233_0x184d(_0x187549,_0x53a38c){_0x187549=_0x187549-0x73;const _0x429217=a233_0x4292();let _0x184d0a=_0x429217[_0x187549];return _0x184d0a;}(function(_0x22ccc2,_0x23be49){const _0x5b79fe=a233_0x184d,_0x253324=_0x22ccc2();while(!![]){try{const _0x437aac=parseInt(_0x5b79fe(0x83))/0x1*(-parseInt(_0x5b79fe(0xd6))/0x2)+parseInt(_0x5b79fe(0x8e))/0x3*(-parseInt(_0x5b79fe(0xaa))/0x4)+parseInt(_0x5b79fe(0xd1))/0x5*(parseInt(_0x5b79fe(0x97))/0x6)+parseInt(_0x5b79fe(0x81))/0x7+-parseInt(_0x5b79fe(0xdf))/0x8+-parseInt(_0x5b79fe(0xc0))/0x9*(-parseInt(_0x5b79fe(0xa1))/0xa)+parseInt(_0x5b79fe(0xfe))/0xb;if(_0x437aac===_0x23be49)break;else _0x253324['push'](_0x253324['shift']());}catch(_0xa0a87d){_0x253324['push'](_0x253324['shift']());}}}(a233_0x4292,0xc45f1));export const CLI_BIN_NAME=a233_0x2204c0(0x85);function a233_0x4292(){const _0x47f4c1=['Force\x20overwrite','Clear','18bVWSZA','parentId','Parent\x20menu\x20id','dbId','zh-CN\x20|\x20en-US','Comma-separated\x20menu\x20IDs','query','fromEntries','Title','60ntjbUd','Output\x20path','map','code','Confirm\x20destructive\x20action','remote','JSON\x20params','expected-children-count','watch','non-interactive','10fmDCyx','Comma-separated\x20metadata\x20codes','<expr>','meowKey','description','DB\x20ID','dbid','force','dry-run','896048LMxneA','@lovrabet/rabetbase-cli','skipImports','env','skip-imports','Reveal\x20sensitive\x20value','target','Use\x20project\x20config\x20scope','Description','datasetcode','Verbose\x20output','task-id','Config\x20value','Code\x20filter','Record\x20ID','file','Asynchronous\x20task\x20ID','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','Enable\x20Backend\x20Function\x20save','fromEnv','Description\x20file','value','5405247CvvcYr','Function\x20node','functionNode','Page\x20size','File\x20path','Expected\x20current\x20parent\x20menu\x20id','stdin','global','operation','type','Watch\x20mode','expectedChildrenCount','expect-parent-id','project','help','tags','json\x20|\x20pretty\x20|\x20compress','157010ONSpdD','appcode','from-env','Override\x20appcode','db-id','4yHraVx','Menu\x20label','Dataset\x20code','operation-type','key','Schemas','pagesize','title','app','7157928AhqLUT','Read\x20value\x20from\x20environment\x20variable','boolean','Show\x20help','confirm','Operation\x20type','enableBffSave','Select\x20app\x20profile\x20by\x20name','topk','SQL\x20code','<code>','<name>','label','enable-bff-save','locale','all','Menu\x20sort\x20value','Target\x20path','sqlname','string','output','format','page','yes','sort','taskId','expectPath','Rabetbase\x20CLI','schemas','menu-ids','sql-name','25928694ZXxJtK','codes','expectedCount','Search\x20query','Use\x20global\x20config\x20scope','sql','Output\x20format','Alias\x20for\x20--non-interactive','Read\x20value\x20from\x20stdin','Page\x20number','sqlcode','Config\x20key','verbose','Tags','sqlName','1725661CWMeSs','params','237565qephoD','name','rabetbase','production\x20|\x20daily','expected-count','reveal','SQL\x20name','Expected\x20affected\x20count','function-node'];a233_0x4292=function(){return _0x47f4c1;};return a233_0x4292();}export const CLI_DISPLAY_NAME=a233_0x2204c0(0xfa);export const NPM_PACKAGE_NAME=a233_0x2204c0(0xab);export const GLOBAL_FLAGS=[{'name':a233_0x2204c0(0xd2),'meowKey':'appcode','type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0xd4),'hint':a233_0x2204c0(0xe9)},{'name':a233_0x2204c0(0xde),'meowKey':a233_0x2204c0(0xde),'type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0xe6),'hint':a233_0x2204c0(0xea)},{'name':a233_0x2204c0(0xad),'meowKey':a233_0x2204c0(0xad),'type':a233_0x2204c0(0xf2),'description':'Environment','hint':a233_0x2204c0(0x86)},{'name':a233_0x2204c0(0xf4),'meowKey':a233_0x2204c0(0xf4),'type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0x78),'hint':a233_0x2204c0(0xd0)},{'name':'jq','meowKey':'jq','type':a233_0x2204c0(0xf2),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a233_0x2204c0(0xa3)},{'name':a233_0x2204c0(0xa9),'meowKey':'dryRun','type':'boolean','description':'Preview\x20operation\x20without\x20executing'},{'name':a233_0x2204c0(0xf6),'meowKey':a233_0x2204c0(0xf6),'type':'boolean','description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a233_0x2204c0(0xa0),'meowKey':'nonInteractive','type':'boolean','description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a233_0x2204c0(0xc7),'meowKey':a233_0x2204c0(0xc7),'type':a233_0x2204c0(0xe1),'description':a233_0x2204c0(0x76)},{'name':'project','meowKey':a233_0x2204c0(0xcd),'type':'boolean','description':a233_0x2204c0(0xb1)},{'name':'ci','meowKey':'ci','type':a233_0x2204c0(0xe1),'description':a233_0x2204c0(0x79),'hidden':!![]},{'name':a233_0x2204c0(0xce),'meowKey':'help','type':a233_0x2204c0(0xe1),'description':a233_0x2204c0(0xe2)},{'name':a233_0x2204c0(0xed),'meowKey':a233_0x2204c0(0xed),'type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0xbb),'hidden':!![],'hint':a233_0x2204c0(0x92)},{'name':'name','meowKey':a233_0x2204c0(0x84),'type':a233_0x2204c0(0xf2),'description':'Name','hidden':!![]},{'name':a233_0x2204c0(0xdd),'meowKey':a233_0x2204c0(0xdd),'type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0x96),'hidden':!![]},{'name':'query','meowKey':a233_0x2204c0(0x94),'type':'string','description':a233_0x2204c0(0x75),'hidden':!![]},{'name':a233_0x2204c0(0xe7),'meowKey':a233_0x2204c0(0xe7),'type':a233_0x2204c0(0xf2),'description':'Maximum\x20search\x20hits','hidden':!![]},{'name':'clear','meowKey':'clear','type':a233_0x2204c0(0xe1),'description':a233_0x2204c0(0x8d),'hidden':!![]},{'name':a233_0x2204c0(0x9f),'meowKey':a233_0x2204c0(0x9f),'type':a233_0x2204c0(0xe1),'description':a233_0x2204c0(0xca),'hidden':!![]},{'name':a233_0x2204c0(0xf3),'meowKey':a233_0x2204c0(0xf3),'type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0x98),'hidden':!![]},{'name':'params','meowKey':a233_0x2204c0(0x82),'type':'string','description':a233_0x2204c0(0x9d),'hidden':!![]},{'name':a233_0x2204c0(0xb3),'meowKey':a233_0x2204c0(0xb3),'type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0xd8),'hidden':!![]},{'name':a233_0x2204c0(0xee),'meowKey':a233_0x2204c0(0xee),'type':'boolean','description':'Apply\x20to\x20all','hidden':!![]},{'name':a233_0x2204c0(0xec),'meowKey':a233_0x2204c0(0xe5),'type':'boolean','description':a233_0x2204c0(0xbc),'hidden':!![]},{'name':'id','meowKey':'id','type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0xb8),'hidden':!![]},{'name':a233_0x2204c0(0xc9),'meowKey':a233_0x2204c0(0xc9),'type':'string','description':'Type\x20filter','hidden':!![]},{'name':a233_0x2204c0(0xb9),'meowKey':'file','type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0xc4),'hidden':!![]},{'name':'sqlcode','meowKey':a233_0x2204c0(0x7c),'type':'string','description':a233_0x2204c0(0xe8),'hidden':!![]},{'name':a233_0x2204c0(0xfd),'meowKey':a233_0x2204c0(0x80),'type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0x89),'hidden':!![]},{'name':a233_0x2204c0(0xf1),'meowKey':a233_0x2204c0(0xf1),'type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0x89),'hidden':!![]},{'name':a233_0x2204c0(0xd5),'meowKey':a233_0x2204c0(0x91),'type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0xa6),'hidden':!![]},{'name':a233_0x2204c0(0xa7),'meowKey':'dbid','type':'string','description':a233_0x2204c0(0xa6),'hidden':!![]},{'name':'description','meowKey':a233_0x2204c0(0xa5),'type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0xb2),'hidden':!![]},{'name':'description-file','meowKey':'descriptionFile','type':'string','description':a233_0x2204c0(0xbe),'hidden':!![]},{'name':a233_0x2204c0(0xf5),'meowKey':'page','type':'string','description':a233_0x2204c0(0x7b),'hidden':!![]},{'name':'pagesize','meowKey':a233_0x2204c0(0xdc),'type':'string','description':a233_0x2204c0(0xc3),'hidden':!![]},{'name':'keyword','meowKey':'keyword','type':a233_0x2204c0(0xf2),'description':'Keyword\x20filter','hidden':!![]},{'name':a233_0x2204c0(0x9a),'meowKey':a233_0x2204c0(0x9a),'type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0xb7),'hidden':!![]},{'name':a233_0x2204c0(0x77),'meowKey':a233_0x2204c0(0x77),'type':a233_0x2204c0(0xf2),'description':'SQL\x20string','hidden':!![]},{'name':a233_0x2204c0(0xfb),'meowKey':a233_0x2204c0(0xfb),'type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0xdb),'hidden':!![]},{'name':a233_0x2204c0(0xc8),'meowKey':a233_0x2204c0(0xc8),'type':'string','description':'Operation\x20type','hidden':!![]},{'name':a233_0x2204c0(0xb0),'meowKey':a233_0x2204c0(0xb0),'type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0xf0),'hidden':!![]},{'name':a233_0x2204c0(0xae),'meowKey':a233_0x2204c0(0xac),'type':a233_0x2204c0(0xe1),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a233_0x2204c0(0xda),'meowKey':a233_0x2204c0(0xda),'type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0x7d),'hidden':!![]},{'name':a233_0x2204c0(0xbf),'meowKey':a233_0x2204c0(0xbf),'type':'string','description':a233_0x2204c0(0xb6),'hidden':!![]},{'name':a233_0x2204c0(0xcf),'meowKey':a233_0x2204c0(0xcf),'type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0x7f),'hidden':!![]},{'name':a233_0x2204c0(0xc6),'meowKey':a233_0x2204c0(0xc6),'type':'boolean','description':a233_0x2204c0(0x7a),'hidden':!![]},{'name':a233_0x2204c0(0xd3),'meowKey':a233_0x2204c0(0xbd),'type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0xe0),'hidden':!![]},{'name':a233_0x2204c0(0x88),'meowKey':a233_0x2204c0(0x88),'type':a233_0x2204c0(0xe1),'description':a233_0x2204c0(0xaf),'hidden':!![]},{'name':a233_0x2204c0(0xa8),'meowKey':a233_0x2204c0(0xa8),'type':a233_0x2204c0(0xe1),'description':a233_0x2204c0(0x8c),'hidden':!![]},{'name':a233_0x2204c0(0xe3),'meowKey':a233_0x2204c0(0xe3),'type':a233_0x2204c0(0xe1),'description':a233_0x2204c0(0x9b),'hidden':!![]},{'name':a233_0x2204c0(0x9c),'meowKey':'remote','type':a233_0x2204c0(0xe1),'description':'Use\x20remote','hidden':!![]},{'name':'verbose','meowKey':a233_0x2204c0(0x7e),'type':a233_0x2204c0(0xe1),'description':a233_0x2204c0(0xb4),'hidden':!![]},{'name':a233_0x2204c0(0x87),'meowKey':a233_0x2204c0(0x74),'type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0x8a),'hidden':!![]},{'name':a233_0x2204c0(0xeb),'meowKey':'label','type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0xd7),'hidden':!![]},{'name':'parent-id','meowKey':a233_0x2204c0(0x8f),'type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0x90),'hidden':!![]},{'name':a233_0x2204c0(0xf7),'meowKey':a233_0x2204c0(0xf7),'type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0xef),'hidden':!![]},{'name':a233_0x2204c0(0xcc),'meowKey':'expectParentId','type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0xc5),'hidden':!![]},{'name':'expect-path','meowKey':a233_0x2204c0(0xf9),'type':'string','description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':a233_0x2204c0(0x9e),'meowKey':a233_0x2204c0(0xcb),'type':'string','description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a233_0x2204c0(0xfc),'meowKey':'menuIds','type':'string','description':a233_0x2204c0(0x93),'hidden':!![]},{'name':a233_0x2204c0(0xb5),'meowKey':a233_0x2204c0(0xf8),'type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0xba),'hidden':!![]},{'name':a233_0x2204c0(0xd9),'meowKey':'operationType','type':'string','description':a233_0x2204c0(0xe4),'hidden':!![]},{'name':a233_0x2204c0(0x8b),'meowKey':a233_0x2204c0(0xc2),'type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0xc1),'hidden':!![]},{'name':a233_0x2204c0(0x73),'meowKey':a233_0x2204c0(0x73),'type':a233_0x2204c0(0xf2),'description':a233_0x2204c0(0xa2),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a233_0x2204c0(0xd2),a233_0x2204c0(0xde),a233_0x2204c0(0xad),a233_0x2204c0(0xf4),'jq',a233_0x2204c0(0xa9),'yes','non-interactive','ci']);export function buildMeowFlags(){const _0x107ef1=a233_0x2204c0;return Object[_0x107ef1(0x95)](GLOBAL_FLAGS[_0x107ef1(0x99)](_0x5377b3=>[_0x5377b3[_0x107ef1(0xa4)],{'type':_0x5377b3[_0x107ef1(0xc9)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a234_0x500131=a234_0x258b;(function(_0x4528bd,_0x2915fd){const _0x6c27cf=a234_0x258b,_0x22e3e4=_0x4528bd();while(!![]){try{const _0x233acc=-parseInt(_0x6c27cf(0x11b))/0x1*(parseInt(_0x6c27cf(0x112))/0x2)+parseInt(_0x6c27cf(0x114))/0x3*(parseInt(_0x6c27cf(0x117))/0x4)+-parseInt(_0x6c27cf(0x11c))/0x5+parseInt(_0x6c27cf(0x113))/0x6*(-parseInt(_0x6c27cf(0x115))/0x7)+parseInt(_0x6c27cf(0x11d))/0x8+parseInt(_0x6c27cf(0x11e))/0x9+parseInt(_0x6c27cf(0x11a))/0xa;if(_0x233acc===_0x2915fd)break;else _0x22e3e4['push'](_0x22e3e4['shift']());}catch(_0x3dca78){_0x22e3e4['push'](_0x22e3e4['shift']());}}}(a234_0x1958,0xa0014));import{DEFAULT_API_DIR}from'../constant/paths.js';function a234_0x258b(_0x308fe8,_0x613c6b){_0x308fe8=_0x308fe8-0x111;const _0x195886=a234_0x1958();let _0x258b47=_0x195886[_0x308fe8];return _0x258b47;}export const DEFAULT_CONFIG_VALUES={'env':a234_0x500131(0x116),'format':a234_0x500131(0x118),'locale':a234_0x500131(0x111),'riskLevel':a234_0x500131(0x119),'apiDir':DEFAULT_API_DIR};function a234_0x1958(){const _0x3ae7d9=['4588BOhJOy','compress','write','18753290WgfXcb','39775eLJBxg','6401940LzzMon','3349112jzvUPI','331353yszUql','en-US','26hXMclm','106098tDLhdH','1383FzrIAS','161HgOpSf','production'];a234_0x1958=function(){return _0x3ae7d9;};return a234_0x1958();}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a234_0x500131(0x118);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a235_0x3fffd6=a235_0x4ebf;function a235_0x2753(){const _0x4d618e=['userDomain','region','runtimeDomain','certificateDomain','trim','production','451311ZqiOcT','apiDomain','cdn','daily','kbDomain','2bowFaT','skill','1048704TtzZIu','8mTJQgi','508RLtMlw','serviceDomains','9526104HUsRgC','app','skillDomain','user','appDomain','runtime','origin','10738870kpGVIA','743228KHbLKz','39095kIykme','8317645HePDTN','api','/app/'];a235_0x2753=function(){return _0x4d618e;};return a235_0x2753();}function a235_0x4ebf(_0xb22ce8,_0x3c0769){_0xb22ce8=_0xb22ce8-0xb7;const _0x27536a=a235_0x2753();let _0x4ebf36=_0x27536a[_0xb22ce8];return _0x4ebf36;}(function(_0x49ec7c,_0x145c3b){const _0x4306a1=a235_0x4ebf,_0x23ade1=_0x49ec7c();while(!![]){try{const _0x5b72aa=parseInt(_0x4306a1(0xb7))/0x1*(parseInt(_0x4306a1(0xc5))/0x2)+-parseInt(_0x4306a1(0xd0))/0x3+parseInt(_0x4306a1(0xbb))/0x4*(-parseInt(_0x4306a1(0xc6))/0x5)+-parseInt(_0x4306a1(0xb9))/0x6+parseInt(_0x4306a1(0xc7))/0x7+parseInt(_0x4306a1(0xba))/0x8*(parseInt(_0x4306a1(0xbd))/0x9)+-parseInt(_0x4306a1(0xc4))/0xa;if(_0x5b72aa===_0x145c3b)break;else _0x23ade1['push'](_0x23ade1['shift']());}catch(_0x3b65d1){_0x23ade1['push'](_0x23ade1['shift']());}}}(a235_0x2753,0x91f26));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x4addb0=a235_0x4ebf,_0x5b4843=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x5b4843[_0x4addb0(0xbc)]['production']:_0x5b4843[_0x4addb0(0xbc)][_0x4addb0(0xd3)]??_0x5b4843['serviceDomains'][_0x4addb0(0xcf)];}export function initDomains(_0x2eea3e){const _0x185980=a235_0x4ebf;customApiDomain=_0x2eea3e?.[_0x185980(0xd1)],customUserDomain=_0x2eea3e?.[_0x185980(0xca)],customRuntimeDomain=_0x2eea3e?.[_0x185980(0xcc)],customSkillDomain=_0x2eea3e?.[_0x185980(0xbf)],customKbDomain=_0x2eea3e?.[_0x185980(0xd4)],customAppDomain=_0x2eea3e?.[_0x185980(0xc1)],customLocalDomain=_0x2eea3e?.['localDomain'],customCertificateDomain=_0x2eea3e?.[_0x185980(0xcd)],customCdn=_0x2eea3e?.[_0x185980(0xd2)],activeRegion=_0x2eea3e?.[_0x185980(0xcb)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a235_0x3fffd6(0xc0)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a235_0x3fffd6(0xc8)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a235_0x3fffd6(0xc2)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a235_0x3fffd6(0xb8)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a235_0x3fffd6(0xbe)];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(){const _0x2135c7=a235_0x3fffd6;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x2135c7(0xc2)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x1ebf23=>{const _0x2cebcd=a235_0x3fffd6,_0x29352c=encodeURIComponent(_0x1ebf23['trim']());return isProduction(getEnv())?getAppDomain()+_0x2cebcd(0xc9)+_0x29352c:getAppDomain()+'/web-app/app/'+_0x29352c;};export const getPublishedAppDomain=_0x31d65f=>{const _0x256593=a235_0x3fffd6,_0x152620=new URL(getAppDomain());return _0x152620['hostname']=_0x31d65f[_0x256593(0xce)]()+'.'+_0x152620['hostname'],_0x152620[_0x256593(0xc3)];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a236_0x27ce55=a236_0x47aa;(function(_0xa44cad,_0x10e56b){const _0x4a9314=a236_0x47aa,_0x567447=_0xa44cad();while(!![]){try{const _0x342a88=parseInt(_0x4a9314(0xaa))/0x1+-parseInt(_0x4a9314(0xa5))/0x2+-parseInt(_0x4a9314(0xa0))/0x3+parseInt(_0x4a9314(0xa8))/0x4*(-parseInt(_0x4a9314(0xa6))/0x5)+parseInt(_0x4a9314(0xab))/0x6*(-parseInt(_0x4a9314(0xa7))/0x7)+-parseInt(_0x4a9314(0xa9))/0x8+parseInt(_0x4a9314(0xa4))/0x9;if(_0x342a88===_0x10e56b)break;else _0x567447['push'](_0x567447['shift']());}catch(_0x324464){_0x567447['push'](_0x567447['shift']());}}}(a236_0x42fd,0xd0324));export const RABETBASE_ENV_VALUES=['production',a236_0x27ce55(0x9f)];export function normalizeEnv(_0x9f3cbc){const _0xc402f8=a236_0x27ce55;return _0x9f3cbc==='online'?_0xc402f8(0xa2):_0x9f3cbc;}export function isProduction(_0x109411){const _0x3c12ef=a236_0x27ce55;return normalizeEnv(_0x109411)===_0x3c12ef(0xa2);}export function isDaily(_0x17d3b2){const _0x1de8e5=a236_0x27ce55;return normalizeEnv(_0x17d3b2)===_0x1de8e5(0x9f);}export function isDev(_0x4b9d32){const _0x3e5c09=a236_0x27ce55,_0x3bf0e3=normalizeEnv(_0x4b9d32);return _0x3bf0e3===_0x3e5c09(0xa3)||_0x3bf0e3===_0x3e5c09(0xa1);}function a236_0x42fd(){const _0x1808c1=['dev','production','development','47144457hFAKxS','1603346YsbPgA','12185vNIZsV','11349653NcUVoM','1900zfeYzw','13242088YLdHLD','1101533PwKrsu','6KOTdvk','daily','753438DhZoOE'];a236_0x42fd=function(){return _0x1808c1;};return a236_0x42fd();}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a236_0x27ce55(0xa2));export function getEnv(){return env;}function a236_0x47aa(_0x2f8ca0,_0x50e26a){_0x2f8ca0=_0x2f8ca0-0x9f;const _0x42fda6=a236_0x42fd();let _0x47aa98=_0x42fda6[_0x2f8ca0];return _0x47aa98;}export function initEnv(_0x55b238){env=normalizeEnv(_0x55b238);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a237_0x17b4(){const _0xde8493=['pretty','1305546zRnjGj','15932oZAbTF','json','3881480VZObhf','72fewUQT','8TYGHNE','4383066HtLKyC','905005mUUeOM','14030442JnFPfP','compress','2363893xTFxKG'];a237_0x17b4=function(){return _0xde8493;};return a237_0x17b4();}const a237_0x53322a=a237_0x24a3;function a237_0x24a3(_0x29ad87,_0x5caa11){_0x29ad87=_0x29ad87-0xa9;const _0x17b43d=a237_0x17b4();let _0x24a30a=_0x17b43d[_0x29ad87];return _0x24a30a;}(function(_0xfe661c,_0x31e0f3){const _0x1a4156=a237_0x24a3,_0x5131eb=_0xfe661c();while(!![]){try{const _0x3800c7=parseInt(_0x1a4156(0xb0))/0x1*(parseInt(_0x1a4156(0xb3))/0x2)+-parseInt(_0x1a4156(0xaf))/0x3+-parseInt(_0x1a4156(0xb4))/0x4*(parseInt(_0x1a4156(0xaa))/0x5)+-parseInt(_0x1a4156(0xa9))/0x6+parseInt(_0x1a4156(0xad))/0x7+-parseInt(_0x1a4156(0xb2))/0x8+parseInt(_0x1a4156(0xab))/0x9;if(_0x3800c7===_0x31e0f3)break;else _0x5131eb['push'](_0x5131eb['shift']());}catch(_0x5e2ee6){_0x5131eb['push'](_0x5131eb['shift']());}}}(a237_0x17b4,0x6fa5d));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a237_0x53322a(0xb1),a237_0x53322a(0xae),a237_0x53322a(0xac)];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a238_0x5e42(){const _0x33549d=['2019190mOKWLQ','5855605hlkimv','69cnPduh','65444cejjud','44pucqio','./src/api','3742560wbJhfx','4240416tfQaLE','2319672DhnvGn','99WGXomE'];a238_0x5e42=function(){return _0x33549d;};return a238_0x5e42();}const a238_0x4bf559=a238_0x5362;(function(_0x325621,_0x28d3e1){const _0xcb5a9d=a238_0x5362,_0x1e4dbd=_0x325621();while(!![]){try{const _0x147881=-parseInt(_0xcb5a9d(0x192))/0x1*(parseInt(_0xcb5a9d(0x18d))/0x2)+parseInt(_0xcb5a9d(0x18b))/0x3*(parseInt(_0xcb5a9d(0x18c))/0x4)+-parseInt(_0xcb5a9d(0x193))/0x5+parseInt(_0xcb5a9d(0x191))/0x6+-parseInt(_0xcb5a9d(0x18a))/0x7+parseInt(_0xcb5a9d(0x190))/0x8+parseInt(_0xcb5a9d(0x18f))/0x9;if(_0x147881===_0x28d3e1)break;else _0x1e4dbd['push'](_0x1e4dbd['shift']());}catch(_0x277d09){_0x1e4dbd['push'](_0x1e4dbd['shift']());}}}(a238_0x5e42,0x71d64));function a238_0x5362(_0x371d16,_0x3359d8){_0x371d16=_0x371d16-0x18a;const _0x5e4228=a238_0x5e42();let _0x5362f2=_0x5e4228[_0x371d16];return _0x5362f2;}export const DEFAULT_API_DIR=a238_0x4bf559(0x18e);
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4cb634,_0x581d2b){const _0x482c7e=a239_0x3fef,_0x95d30d=_0x4cb634();while(!![]){try{const _0x4a818e=parseInt(_0x482c7e(0x1f4))/0x1+parseInt(_0x482c7e(0x1ec))/0x2*(parseInt(_0x482c7e(0x1e9))/0x3)+-parseInt(_0x482c7e(0x1e8))/0x4*(parseInt(_0x482c7e(0x1ea))/0x5)+parseInt(_0x482c7e(0x1ee))/0x6*(-parseInt(_0x482c7e(0x1f3))/0x7)+-parseInt(_0x482c7e(0x1f0))/0x8+parseInt(_0x482c7e(0x1eb))/0x9*(parseInt(_0x482c7e(0x1f1))/0xa)+parseInt(_0x482c7e(0x1f5))/0xb*(parseInt(_0x482c7e(0x1ef))/0xc);if(_0x4a818e===_0x581d2b)break;else _0x95d30d['push'](_0x95d30d['shift']());}catch(_0x103ea6){_0x95d30d['push'](_0x95d30d['shift']());}}}(a239_0x3b61,0x737c6));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;function a239_0x3fef(_0x45a31b,_0x5d0425){_0x45a31b=_0x45a31b-0x1e8;const _0x3b613c=a239_0x3b61();let _0x3fef93=_0x3b613c[_0x45a31b];return _0x3fef93;}export function isLovrabetRegion(_0x1a87cd){const _0x414ded=a239_0x3fef;return typeof _0x1a87cd===_0x414ded(0x1f2)&&LOVRABET_REGION_VALUES[_0x414ded(0x1ed)](_0x1a87cd);}function a239_0x3b61(){const _0x47c2c9=['includes','5238654xHqSpL','108oeuWIA','4897488aMVElW','140rVbVpi','string','7wSdCYk','205974TXMbAF','390379sjQJMj','1000vfOSSC','2454HsiOex','535ycfUmz','520848OpdfuG','1588HZHngx'];a239_0x3b61=function(){return _0x47c2c9;};return a239_0x3b61();}export function isEnabledLovrabetRegion(_0x49870f){const _0x364bbc=a239_0x3fef;return typeof _0x49870f===_0x364bbc(0x1f2)&&ENABLED_LOVRABET_REGION_VALUES['includes'](_0x49870f);}export function normalizeLovrabetRegion(_0x1b18c5){const _0x4cab74=a239_0x3fef;if(typeof _0x1b18c5!==_0x4cab74(0x1f2))return undefined;const _0x5ae34b=REGION_ALIASES[_0x1b18c5]??_0x1b18c5;return isLovrabetRegion(_0x5ae34b)?_0x5ae34b:undefined;}export function isInvalidLovrabetRegion(_0x269d42){return _0x269d42!==undefined&&_0x269d42!==null&&_0x269d42!==''&&normalizeLovrabetRegion(_0x269d42)===undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a240_0x3264cc=a240_0x2527;function a240_0x2527(_0x113f03,_0x58ca91){_0x113f03=_0x113f03-0x1d5;const _0x2371ce=a240_0x2371();let _0x25273b=_0x2371ce[_0x113f03];return _0x25273b;}(function(_0x506b1d,_0x1eaadc){const _0x20eb32=a240_0x2527,_0x1f1935=_0x506b1d();while(!![]){try{const _0x2748bb=parseInt(_0x20eb32(0x1dc))/0x1*(parseInt(_0x20eb32(0x1d8))/0x2)+parseInt(_0x20eb32(0x1df))/0x3*(-parseInt(_0x20eb32(0x1db))/0x4)+-parseInt(_0x20eb32(0x1e0))/0x5*(-parseInt(_0x20eb32(0x1d5))/0x6)+parseInt(_0x20eb32(0x1da))/0x7*(parseInt(_0x20eb32(0x1e3))/0x8)+-parseInt(_0x20eb32(0x1de))/0x9*(-parseInt(_0x20eb32(0x1e1))/0xa)+-parseInt(_0x20eb32(0x1d7))/0xb+parseInt(_0x20eb32(0x1e2))/0xc;if(_0x2748bb===_0x1eaadc)break;else _0x1f1935['push'](_0x1f1935['shift']());}catch(_0x1595eb){_0x1f1935['push'](_0x1f1935['shift']());}}}(a240_0x2371,0x7e030));export const RISK_LEVEL_VALUES=[a240_0x3264cc(0x1d9),a240_0x3264cc(0x1d6),a240_0x3264cc(0x1dd)];function a240_0x2371(){const _0x31f5f2=['1RdQdav','high-risk-write','18HzMUjH','1971453jtyiwq','275705bQIXXE','1735380mgxLrB','5680188cttJGv','4192592MyxBQk','6TwHKtr','write','3598606OMFnIy','201602FbmJbe','read','7vhaRrY','4olHTHb'];a240_0x2371=function(){return _0x31f5f2;};return a240_0x2371();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a241_0x3976(){const _0x5b391c=['3998760LBRBiS','4150FqIowm','809751zAyrId','1194Oxzpsn','4zeqgFH','cdn','Official\x20routing\x20for\x20region\x20\x22','19107RAGvWH','569426efvSAM','1516516RvbuWo','lovrabet','5054320ibVWvl','19306zUmLXR'];a241_0x3976=function(){return _0x5b391c;};return a241_0x3976();}(function(_0x26c014,_0x3ba7d1){const _0x1b6c52=a241_0xbdf7,_0x5b280c=_0x26c014();while(!![]){try{const _0x33a492=parseInt(_0x1b6c52(0x1c5))/0x1+-parseInt(_0x1b6c52(0x1c4))/0x2+parseInt(_0x1b6c52(0x1cb))/0x3*(-parseInt(_0x1b6c52(0x1cd))/0x4)+-parseInt(_0x1b6c52(0x1c9))/0x5+-parseInt(_0x1b6c52(0x1cc))/0x6*(-parseInt(_0x1b6c52(0x1c8))/0x7)+-parseInt(_0x1b6c52(0x1c7))/0x8+-parseInt(_0x1b6c52(0x1c3))/0x9*(-parseInt(_0x1b6c52(0x1ca))/0xa);if(_0x33a492===_0x3ba7d1)break;else _0x5b280c['push'](_0x5b280c['shift']());}catch(_0x30d565){_0x5b280c['push'](_0x5b280c['shift']());}}}(a241_0x3976,0xea6e7));import{OFFICIAL_ROUTING_PROFILES as a241_0x298f4e,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a241_0x298f4e;export{ROUTING_CATALOG_DIGEST};function a241_0xbdf7(_0x315f0c,_0x255e69){_0x315f0c=_0x315f0c-0x1c3;const _0x397625=a241_0x3976();let _0xbdf72b=_0x397625[_0x315f0c];return _0xbdf72b;}export function getOfficialRoutingProfile(_0x3c1123){return OFFICIAL_ROUTING_PROFILES[_0x3c1123];}export function getOfficialRoutingCdn(_0x570921){const _0x5ee190=a241_0xbdf7,_0xcf4e88=getOfficialRoutingProfile(_0x570921)[_0x5ee190(0x1ce)];if(!_0xcf4e88[_0x5ee190(0x1c6)])throw new Error(_0x5ee190(0x1cf)+_0x570921+'\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.');return{'libraries':_0xcf4e88['libraries'],'lovrabet':_0xcf4e88['lovrabet']};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4042c6,_0x3d8bea){const _0x28e960=a242_0x2d06,_0x1f9799=_0x4042c6();while(!![]){try{const _0x28a56d=-parseInt(_0x28e960(0x16b))/0x1+parseInt(_0x28e960(0x182))/0x2*(-parseInt(_0x28e960(0x169))/0x3)+parseInt(_0x28e960(0x170))/0x4*(-parseInt(_0x28e960(0x178))/0x5)+-parseInt(_0x28e960(0x16c))/0x6*(-parseInt(_0x28e960(0x187))/0x7)+-parseInt(_0x28e960(0x17d))/0x8*(-parseInt(_0x28e960(0x18c))/0x9)+parseInt(_0x28e960(0x185))/0xa+parseInt(_0x28e960(0x16a))/0xb*(-parseInt(_0x28e960(0x177))/0xc);if(_0x28a56d===_0x3d8bea)break;else _0x1f9799['push'](_0x1f9799['shift']());}catch(_0x48d626){_0x1f9799['push'](_0x1f9799['shift']());}}}(a242_0x586b,0xf263b));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a242_0x2d06(_0x693bad,_0x5f29cc){_0x693bad=_0x693bad-0x165;const _0x586bd4=a242_0x586b();let _0x2d0649=_0x586bd4[_0x693bad];return _0x2d0649;}import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x44eec8){const _0x520e14=a242_0x2d06;return typeof _0x44eec8===_0x520e14(0x16d)&&_0x44eec8[_0x520e14(0x188)]()?_0x44eec8[_0x520e14(0x188)]():undefined;}function appProfiles(_0x170888){const _0x145135=a242_0x2d06;return _0x170888[_0x145135(0x174)]&&typeof _0x170888[_0x145135(0x174)]===_0x145135(0x17a)?_0x170888[_0x145135(0x174)]:{};}function resolveDefaultAppName(_0x132b20){const _0x55b86c=a242_0x2d06,_0x290033=stringConfigValue(_0x132b20['defaultApp']);if(_0x290033)return _0x290033;const _0x2a6f29=Object[_0x55b86c(0x17e)](appProfiles(_0x132b20));return _0x2a6f29['length']===0x1?_0x2a6f29[0x0]:undefined;}function resolveTopLevelAppCode(_0x8da5e2){const _0x12ef1d=a242_0x2d06;return stringConfigValue(_0x8da5e2[_0x12ef1d(0x171)])||stringConfigValue(_0x8da5e2['app']);}function a242_0x586b(){const _0x21b26f=['app','FORMAT','format','78dSLPGg','COOKIE','ENV','16055010NHmBWw','globalConfig','7KxVBOc','trim','accessKey','true','riskLevel','8047899WWmDNr','locale','ACCESS_KEY','apiDir','find','5019atnEiF','14685wATBlK','888421MRDVIb','8660526gHSyVd','string','length','pageSize','2164nJJdmx','appcode','cookie','APP','apps','read','projectConfig','17568uWRjtS','390FYVHpP','env','object','write','production','8ivcayv','keys'];a242_0x586b=function(){return _0x21b26f;};return a242_0x586b();}function normalizeRiskCeiling(_0x458e5a){const _0x374299=a242_0x2d06;if(_0x458e5a===undefined||_0x458e5a===null)return undefined;if(_0x458e5a===_0x374299(0x175)||_0x458e5a===_0x374299(0x17b)||_0x458e5a==='high-risk-write')return _0x458e5a;return _0x374299(0x175);}function resolveRiskCeiling(..._0x5d9068){const _0x521fbc=a242_0x2d06;let _0x36f6e9;for(const _0x3fc997 of _0x5d9068){const _0x1cfac3=normalizeRiskCeiling(_0x3fc997);_0x1cfac3&&(!_0x36f6e9||riskLevelOrder(_0x1cfac3)<riskLevelOrder(_0x36f6e9))&&(_0x36f6e9=_0x1cfac3);}return _0x36f6e9??DEFAULT_CONFIG_VALUES[_0x521fbc(0x18b)];}export function resolveAppConfig({raw:_0xfe7b22,flags:_0x26ac38,layers:_0x595188,readEnv:_0x49398c}){const _0x3a7404=a242_0x2d06,_0x3de3aa=_0x595188?.[_0x3a7404(0x176)]??{},_0x270d33=_0x595188?.[_0x3a7404(0x186)]??{},_0x12be67=!!_0x595188?.['projectPath']||Object[_0x3a7404(0x17e)](_0x3de3aa)[_0x3a7404(0x16e)]>0x0,_0xc3ff9d=!_0x12be67,_0xccc7c0=_0x12be67?resolveDefaultAppName(_0x3de3aa):undefined,_0x28cd4c=_0xc3ff9d?resolveDefaultAppName(_0x270d33):undefined,_0xa71ef=stringConfigValue(_0x26ac38[_0x3a7404(0x17f)]),_0xe6be73=_0x49398c(_0x3a7404(0x173)),_0x33a509={};if(_0xfe7b22[_0x3a7404(0x174)]&&typeof _0xfe7b22[_0x3a7404(0x174)]===_0x3a7404(0x17a))for(const [_0x1f2164,_0x17a4bb]of Object['entries'](_0xfe7b22[_0x3a7404(0x174)])){_0x17a4bb&&typeof _0x17a4bb===_0x3a7404(0x17a)&&_0x17a4bb[_0x3a7404(0x171)]&&(_0x33a509[_0x1f2164]=_0x17a4bb);}const _0x31b27d=_0xccc7c0||_0x28cd4c||resolveDefaultAppName(_0xfe7b22),_0x38d02f=Object[_0x3a7404(0x17e)](_0x33a509)[_0x3a7404(0x16e)]>0x0,_0x369821=_0xa71ef||_0xccc7c0||_0xe6be73||_0x28cd4c||_0x31b27d||undefined,_0x5b4a2e=stringConfigValue(_0x26ac38['appcode']),_0x2aa26c=_0x5b4a2e?Object['entries'](_0x33a509)[_0x3a7404(0x168)](([,_0x57e8c1])=>_0x57e8c1?.[_0x3a7404(0x171)]===_0x5b4a2e):undefined,_0x266cbc=_0x2aa26c?.[0x0],_0xcaf6d1=_0x2aa26c?.[0x1],_0x244c61=_0x5b4a2e?_0x266cbc:_0x369821;let _0x5bf181=_0x244c61&&_0x33a509[_0x244c61]?_0x33a509[_0x244c61]:undefined;_0x5b4a2e&&_0xcaf6d1&&(_0x5bf181=_0xcaf6d1);const _0x379448=_0x5b4a2e?_0xcaf6d1??_0x5bf181:_0x5bf181,_0x3eb98e=!_0xa71ef&&!_0xccc7c0&&_0xe6be73&&_0x244c61===_0xe6be73,_0x3d8a21=_0xa71ef||(_0x3eb98e?_0xe6be73:undefined)||(_0x5b4a2e?_0x266cbc:undefined),_0x500ab8=_0x379448?.[_0x3a7404(0x171)],_0x5a3d0c=_0x12be67?resolveTopLevelAppCode(_0x3de3aa):undefined,_0x52c756=_0xc3ff9d?resolveTopLevelAppCode(_0x270d33):undefined,_0x38f80d=_0xa71ef||_0xccc7c0?_0x500ab8:undefined,_0x4a58cf=!_0xa71ef&&!_0xccc7c0?_0x500ab8:undefined,_0x14231f=_0x5b4a2e||_0x38f80d||_0x5a3d0c||_0x4a58cf||_0x52c756||undefined,_0x2dffed=_0x12be67?stringConfigValue(_0x3de3aa[_0x3a7404(0x179)]):undefined,_0x2ef63f=_0xc3ff9d?stringConfigValue(_0x270d33[_0x3a7404(0x179)]):undefined,_0xeb00e5=_0x26ac38[_0x3a7404(0x179)]||_0x379448?.[_0x3a7404(0x179)]||_0x2dffed||_0x49398c(_0x3a7404(0x184))||_0x2ef63f||_0xfe7b22[_0x3a7404(0x179)]||DEFAULT_CONFIG_VALUES[_0x3a7404(0x179)],_0x599ee0=_0x379448?.[_0x3a7404(0x165)]||_0xfe7b22[_0x3a7404(0x165)]||DEFAULT_CONFIG_VALUES[_0x3a7404(0x165)],_0x3618d1=_0x49398c(_0x3a7404(0x183))||_0x379448?.['cookie']||_0xfe7b22[_0x3a7404(0x172)]||undefined,_0x42ebec=_0x49398c(_0x3a7404(0x166))||_0x379448?.[_0x3a7404(0x189)]||_0xfe7b22['accessKey']||undefined,_0x460451=_0x26ac38['format']||_0x49398c(_0x3a7404(0x180))||_0x379448?.[_0x3a7404(0x181)]||_0xfe7b22[_0x3a7404(0x181)],_0x8f7532=normalizeLegacyOutputFormat(_0x460451),_0x148432=_0x49398c('PAGE_SIZE')||_0x379448?.[_0x3a7404(0x16f)]||_0xfe7b22[_0x3a7404(0x16f)],_0x451536=_0x148432?Number(_0x148432)||undefined:undefined,_0x54f7b6=_0x595188?[_0x595188[_0x3a7404(0x186)][_0x3a7404(0x18b)],_0x595188[_0x3a7404(0x176)][_0x3a7404(0x18b)]]:[_0xfe7b22[_0x3a7404(0x18b)]],_0x3e0880=resolveRiskCeiling(..._0x54f7b6,_0x379448?.['riskLevel']),_0x397475=resolveRiskCeiling(_0x3e0880,_0x49398c('RISK_LEVEL')),_0x2ce994=_0x49398c('VERBOSE'),_0x2e44f6=_0x2ce994==='1'||_0x2ce994===_0x3a7404(0x18a),_0xb1bb3a=_0x379448?.[_0x3a7404(0x167)]||_0xfe7b22[_0x3a7404(0x167)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x2d6a82=isDaily(normalizeEnv(String(_0xeb00e5)))?'daily':_0x3a7404(0x17c);return{'appCode':typeof _0x14231f===_0x3a7404(0x16d)&&_0x14231f[_0x3a7404(0x188)]()?_0x14231f['trim']():undefined,'env':_0x2d6a82,'locale':_0x599ee0,'cookie':_0x3618d1,'accessKey':_0x42ebec,'format':_0x8f7532,'pageSize':_0x451536,'riskLevel':_0x397475,'verbose':_0x2e44f6,'apiDir':_0xb1bb3a,'apps':_0x33a509,'defaultApp':_0x31b27d,'currentApp':_0x38d02f?_0x244c61:undefined,'explicitAppName':_0x3d8a21};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4aee17,_0x59a856){const _0x377d8a=a243_0x4f32,_0x21e162=_0x4aee17();while(!![]){try{const _0x159a80=parseInt(_0x377d8a(0xa9))/0x1+-parseInt(_0x377d8a(0xa8))/0x2+-parseInt(_0x377d8a(0xac))/0x3*(-parseInt(_0x377d8a(0xaa))/0x4)+parseInt(_0x377d8a(0xae))/0x5+parseInt(_0x377d8a(0xa6))/0x6*(parseInt(_0x377d8a(0xad))/0x7)+-parseInt(_0x377d8a(0xa7))/0x8+parseInt(_0x377d8a(0xaf))/0x9*(-parseInt(_0x377d8a(0xab))/0xa);if(_0x159a80===_0x59a856)break;else _0x21e162['push'](_0x21e162['shift']());}catch(_0x2af757){_0x21e162['push'](_0x21e162['shift']());}}}(a243_0x1873,0x2c58b));function a243_0x1873(){const _0xd957d5=['1260795zFMeWD','5448123jdGxPb','cookie','762JKoALA','58096lIAlVO','461818JmvgPC','84101iaWpPG','60FcFKpi','10DmryAh','66711WCLeBa','19586oTpEQo'];a243_0x1873=function(){return _0xd957d5;};return a243_0x1873();}import{getIsSessionValid}from'../auth/is-session-valid.js';function a243_0x4f32(_0x561ce9,_0x23c06a){_0x561ce9=_0x561ce9-0xa6;const _0x187359=a243_0x1873();let _0x4f32d5=_0x187359[_0x561ce9];return _0x4f32d5;}import{CliErrors}from'../errors.js';export async function buildAuth(_0x55b61e){const _0x10781f=a243_0x4f32,{getCookie:_0xe5eb08}=await import('../auth/get-cookie.js'),_0x3cb945=_0x55b61e[_0x10781f(0xb0)]||_0xe5eb08(),_0x39ea9f=_0x3cb945?await getIsSessionValid():![];return{'cookie':_0x3cb945,'isLoggedIn':_0x39ea9f,async 'getOrLogin'(){if(_0x3cb945&&_0x39ea9f)return _0x3cb945;throw CliErrors['authRequired']();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a244_0x5c9140=a244_0x5980;(function(_0x297891,_0x51cc7c){const _0x358bb6=a244_0x5980,_0x9de528=_0x297891();while(!![]){try{const _0x12ea3d=parseInt(_0x358bb6(0x128))/0x1+parseInt(_0x358bb6(0x116))/0x2+-parseInt(_0x358bb6(0xfe))/0x3*(-parseInt(_0x358bb6(0x129))/0x4)+-parseInt(_0x358bb6(0x109))/0x5*(parseInt(_0x358bb6(0xff))/0x6)+parseInt(_0x358bb6(0xf4))/0x7+-parseInt(_0x358bb6(0xf3))/0x8+-parseInt(_0x358bb6(0xf5))/0x9;if(_0x12ea3d===_0x51cc7c)break;else _0x9de528['push'](_0x9de528['shift']());}catch(_0xdf447c){_0x9de528['push'](_0x9de528['shift']());}}}(a244_0x6829,0x91f3b));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a244_0x5c9140(0xf9);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x3c52e8){for(const _0x1043b6 of CONFIG_NAMES){const _0x1c4d24=resolve(_0x3c52e8,_0x1043b6);if(existsSync(_0x1c4d24))return _0x1c4d24;}return undefined;}export function findProjectRootDirectory(_0x2e8fdd=process[a244_0x5c9140(0x113)]()){let _0x39a49e=resolve(_0x2e8fdd);const {root:_0x5716de}=parse(_0x39a49e),_0x2ee7ed=homedir();while(!![]){if(resolveConfigPath(_0x39a49e)){if(_0x39a49e===_0x2ee7ed)break;return _0x39a49e;}if(_0x39a49e===_0x5716de||_0x39a49e===_0x2ee7ed)break;const _0x1c8dfb=dirname(_0x39a49e);if(_0x1c8dfb===_0x39a49e)break;_0x39a49e=_0x1c8dfb;}return resolve(_0x2e8fdd);}export function getProjectConfigPath(){const _0x592c70=a244_0x5c9140;return resolveConfigPath(process[_0x592c70(0x113)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}function a244_0x6829(){const _0x1f42bb=['length','1649946bSQVzx','set','stringify','Project','format','apps','missing','.tmp','string','empty','region','apiDomain','skillDomain','\x0a\x20\x20','project','cookie','message','pageSize','444827iRYWyi','291792gtMExw','status','2841496uqpQmb','7182770omXGUj','15373836JeuGOB','kbDomain','warn','certificateDomain','.rabetbase.json','app','env','appcode','trim','33XIXXQE','655692WqRQgy','locale','appDomain','runtimeDomain','error','riskLevel','parse','config','keys','projectPath','20QQsfqH','data','userDomain','localDomain','object','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','defaultApp','accessKey','apiDir','utf8','cwd','inherit'];a244_0x6829=function(){return _0x1f42bb;};return a244_0x6829();}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x405168){const _0x11f08f=a244_0x5c9140;if(!existsSync(_0x405168))return{'status':'missing'};try{const _0x4251e8=readFileSync(_0x405168,{'encoding':_0x11f08f(0x112)});if(!_0x4251e8?.[_0x11f08f(0xfd)]())return{'status':_0x11f08f(0x11f)};const _0x270388=JSON[_0x11f08f(0x105)](_0x4251e8);return{'status':'ok','data':_0x270388};}catch(_0x1c0f65){return{'status':_0x11f08f(0x103),'message':_0x1c0f65 instanceof Error?_0x1c0f65[_0x11f08f(0x126)]:String(_0x1c0f65)};}}function parseCliConfigJsonFile(_0xb7e923,_0x335405,_0x4b8b91){const _0x213333=a244_0x5c9140,_0x46d92e=inspectCliConfigJsonFile(_0xb7e923);if(_0x46d92e[_0x213333(0x12a)]===_0x213333(0x11c)||_0x46d92e['status']==='empty')return{};if(_0x46d92e[_0x213333(0x12a)]==='ok')return _0x46d92e[_0x213333(0x10a)];return _0x335405===_0x213333(0xf7)&&_0x4b8b91&&console[_0x213333(0x103)](CLI_BIN_NAME+':\x20'+_0x4b8b91+_0x213333(0x10e)+_0xb7e923+_0x213333(0x123)+_0x46d92e['message']),{};}function normalizeLegacyConfigShape(_0x63d2e){const _0x10da77=a244_0x5c9140;if(!_0x63d2e||typeof _0x63d2e!==_0x10da77(0x10d))return{'config':{},'migrated':![]};const _0x2b5f58={..._0x63d2e},_0x358aa4=_0x2b5f58[_0x10da77(0x11b)]&&typeof _0x2b5f58[_0x10da77(0x11b)]==='object'?{..._0x2b5f58['apps']}:{},_0xef6a2b=Object[_0x10da77(0x107)](_0x358aa4)[_0x10da77(0x115)],_0x334d43=_0x2b5f58['appcode']||_0x2b5f58[_0x10da77(0xfa)];let _0x43246c=![];if(_0x334d43&&_0xef6a2b===0x0){const _0x4f494c=typeof _0x2b5f58[_0x10da77(0x10f)]===_0x10da77(0x11e)&&_0x2b5f58[_0x10da77(0x10f)]['trim']()?_0x2b5f58[_0x10da77(0x10f)]:String(_0x334d43)[_0x10da77(0xfd)]();_0x358aa4[_0x4f494c]={'appcode':String(_0x334d43)[_0x10da77(0xfd)](),..._0x2b5f58[_0x10da77(0xfb)]!=null?{'env':_0x2b5f58[_0x10da77(0xfb)]}:{},..._0x2b5f58[_0x10da77(0x111)]!=null?{'apiDir':_0x2b5f58[_0x10da77(0x111)]}:{},..._0x2b5f58[_0x10da77(0x125)]!=null?{'cookie':_0x2b5f58[_0x10da77(0x125)]}:{},..._0x2b5f58[_0x10da77(0x110)]!=null?{'accessKey':_0x2b5f58['accessKey']}:{},..._0x2b5f58['format']!=null?{'format':_0x2b5f58['format']}:{},..._0x2b5f58['pageSize']!=null?{'pageSize':_0x2b5f58['pageSize']}:{},..._0x2b5f58['riskLevel']!=null?{'riskLevel':_0x2b5f58[_0x10da77(0x104)]}:{},..._0x2b5f58[_0x10da77(0x100)]!=null?{'locale':_0x2b5f58[_0x10da77(0x100)]}:{}},_0x2b5f58['apps']=_0x358aa4,delete _0x2b5f58[_0x10da77(0x10f)],_0x43246c=!![];}return(_0x10da77(0xfc)in _0x2b5f58||_0x10da77(0xfa)in _0x2b5f58)&&(delete _0x2b5f58[_0x10da77(0xfc)],delete _0x2b5f58[_0x10da77(0xfa)],_0x43246c=!![]),{'config':_0x2b5f58,'migrated':_0x43246c};}function writeNormalizedConfigIfNeeded(_0x4900fc,_0x3607ca){const _0x536ea9=a244_0x5c9140,_0x471f5b=JSON['stringify'](_0x3607ca,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x4900fc)===_0x471f5b)return;writeConfigFile(_0x4900fc,_0x3607ca),normalizedWriteCache[_0x536ea9(0x117)](_0x4900fc,_0x471f5b);}function parseAndNormalizeConfig(_0xb45cbb,_0x17338f,_0x2ff203){const _0x3003da=a244_0x5c9140,_0x58b1be=parseCliConfigJsonFile(_0xb45cbb,_0x17338f,_0x2ff203),_0x183298=normalizeLegacyConfigShape(_0x58b1be);if(_0x183298['migrated'])try{writeNormalizedConfigIfNeeded(_0xb45cbb,_0x183298[_0x3003da(0x106)]);}catch{}return _0x183298[_0x3003da(0x106)];}export function loadRawConfigLayers(_0xb0df42){const _0x14c3b3=a244_0x5c9140;let _0x160c3c={},_0x28493e={};const _0x5607ab=resolveConfigPath(homedir());_0x5607ab&&(_0x160c3c=parseAndNormalizeConfig(_0x5607ab,_0x14c3b3(0xf7),'Global'));const _0x579b13=_0xb0df42??findProjectRootDirectory(),_0xeb9f98=resolveConfigPath(_0x579b13);return _0xeb9f98&&(_0x28493e=parseAndNormalizeConfig(_0xeb9f98,_0x14c3b3(0xf7),_0x14c3b3(0x119))),{'globalPath':_0x5607ab,'projectPath':_0xeb9f98,'globalConfig':_0x160c3c,'projectConfig':_0x28493e};}const INHERIT_WHITELIST=[a244_0x5c9140(0x125),'accessKey',a244_0x5c9140(0x100),a244_0x5c9140(0x11a),'riskLevel',a244_0x5c9140(0x127),a244_0x5c9140(0x120),'routing',a244_0x5c9140(0x10b),a244_0x5c9140(0x121),a244_0x5c9140(0x102),a244_0x5c9140(0x122),a244_0x5c9140(0xf6),a244_0x5c9140(0x101),a244_0x5c9140(0x10c),a244_0x5c9140(0xf8)];export function mergeRawConfigLayers(_0x53ce4a){const _0x17a494=a244_0x5c9140,{globalConfig:_0x926c7f,projectConfig:_0x40c69c}=_0x53ce4a,_0x422d77=!!_0x53ce4a[_0x17a494(0x108)]||Object[_0x17a494(0x107)](_0x40c69c)[_0x17a494(0x115)]>0x0;if(!_0x422d77)return mergeGlobalOnly(_0x926c7f);return mergeProjectFirst(_0x926c7f,_0x40c69c);}function mergeGlobalOnly(_0x13b2e8){const _0x1e74e8=a244_0x5c9140,_0xb9702d={..._0x13b2e8};delete _0xb9702d[_0x1e74e8(0x114)];const _0x5651e9=_0x13b2e8['apps']&&typeof _0x13b2e8[_0x1e74e8(0x11b)]===_0x1e74e8(0x10d)?_0x13b2e8[_0x1e74e8(0x11b)]:{};if(Object[_0x1e74e8(0x107)](_0x5651e9)[_0x1e74e8(0x115)]>0x0)_0xb9702d['apps']=_0x5651e9;if(_0x13b2e8[_0x1e74e8(0x10f)])_0xb9702d[_0x1e74e8(0x10f)]=_0x13b2e8['defaultApp'];return _0xb9702d;}function mergeProjectFirst(_0x280552,_0x4af657){const _0x22b81d=a244_0x5c9140,_0x5874b4={..._0x4af657};delete _0x5874b4['inherit'];for(const _0x271bd9 of INHERIT_WHITELIST){!(_0x271bd9 in _0x5874b4)&&_0x271bd9 in _0x280552&&(_0x5874b4[_0x271bd9]=_0x280552[_0x271bd9]);}const _0x59fb0b=_0x4af657[_0x22b81d(0x11b)]&&typeof _0x4af657[_0x22b81d(0x11b)]===_0x22b81d(0x10d)?_0x4af657[_0x22b81d(0x11b)]:{};return Object[_0x22b81d(0x107)](_0x59fb0b)[_0x22b81d(0x115)]>0x0?_0x5874b4[_0x22b81d(0x11b)]=_0x59fb0b:delete _0x5874b4['apps'],'defaultApp'in _0x4af657?_0x5874b4['defaultApp']=_0x4af657[_0x22b81d(0x10f)]:delete _0x5874b4[_0x22b81d(0x10f)],_0x5874b4;}export function readRawConfigWithLayers(_0x4de1ad){const _0x3c6256=loadRawConfigLayers(_0x4de1ad);return{'config':mergeRawConfigLayers(_0x3c6256),'layers':_0x3c6256};}export function readRawConfig(_0x573a73){return mergeRawConfigLayers(loadRawConfigLayers(_0x573a73));}function a244_0x5980(_0x159505,_0x56efb4){_0x159505=_0x159505-0xf3;const _0x682962=a244_0x6829();let _0x598098=_0x682962[_0x159505];return _0x598098;}export function readConfigFile(_0x10af8b){return parseAndNormalizeConfig(_0x10af8b,'silent');}export function writeConfigFile(_0x27dcac,_0x2c2caf){const _0x528910=a244_0x5c9140,_0xc2b34e=dirname(_0x27dcac);!existsSync(_0xc2b34e)&&mkdirSync(_0xc2b34e,{'recursive':!![]});const _0x975da7=_0x27dcac+_0x528910(0x11d);try{writeFileSync(_0x975da7,JSON[_0x528910(0x118)](_0x2c2caf,null,0x2)+'\x0a',{'encoding':_0x528910(0x112),'mode':0x180}),renameSync(_0x975da7,_0x27dcac);}catch(_0x48bf00){try{unlinkSync(_0x975da7);}catch{}throw _0x48bf00;}}export function resolveWriteConfigPath(_0x560e5f){const _0x58c08e=a244_0x5c9140,_0x9c4d81=_0x560e5f===_0x58c08e(0x124)?process[_0x58c08e(0x113)]():homedir(),_0x5a1bbd=resolveConfigPath(_0x9c4d81);return _0x5a1bbd??resolve(_0x9c4d81,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a246_0x1aad2a=a246_0x5273;(function(_0x42100a,_0x375aac){const _0x5d72d2=a246_0x5273,_0x5be3ec=_0x42100a();while(!![]){try{const _0x1261b8=parseInt(_0x5d72d2(0xa5))/0x1*(parseInt(_0x5d72d2(0xb6))/0x2)+-parseInt(_0x5d72d2(0xa3))/0x3+-parseInt(_0x5d72d2(0xc2))/0x4+parseInt(_0x5d72d2(0xb7))/0x5+parseInt(_0x5d72d2(0x9a))/0x6+-parseInt(_0x5d72d2(0xc8))/0x7*(-parseInt(_0x5d72d2(0xcb))/0x8)+-parseInt(_0x5d72d2(0xa7))/0x9;if(_0x1261b8===_0x375aac)break;else _0x5be3ec['push'](_0x5be3ec['shift']());}catch(_0x424154){_0x5be3ec['push'](_0x5be3ec['shift']());}}}(a246_0x1dc6,0x81c65));import{resolve}from'node:path';function a246_0x1dc6(){const _0x823003=['raw','routing','domains','stringify','apps','app','values','apiDomain','2013147BZkmCM','env','823507JnkdIe','project','9848466eYKwOY','find','apiDir','userDomain','null','object','trim','keys','Invalid\x20country/region\x20','Run\x20`','a\x20value\x20of\x20type\x20','kbDomain','skillDomain','validation','\x20doctor`\x20to\x20locate\x20and\x20repair\x20the\x20invalid\x20configuration\x20before\x20retrying.','2yXIdip','4974510ZgSYDJ','certificateDomain','api.ts','replace','localDomain','./constant/env.js','string','./utils/is-non-interactive.js','setLogPath','setRawCommand','agentDomain','3891004aUnqZt','map','region','https://g.lovrabet.com/dist/lovrabet-skill','length','skillHubDomain','1636719BabMSz','cdn','cwd','24vKvBnH','projectConfig','join','template_base_url','appcode','appDomain','defaultApp','./constant/domain.js','\x20in\x20Rabetbase\x20configuration.','doctor','entries','cookie','4498626SeSdgP'];a246_0x1dc6=function(){return _0x823003;};return a246_0x1dc6();}import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion,normalizeLovrabetRegion}from'./constant/region.js';import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x162f1f){return process.env[`RABETBASE_${_0x162f1f}`]||process.env[`LOVRABET_${_0x162f1f}`]||undefined;}function optionalString(_0x33f260){const _0x57d552=a246_0x5273;return typeof _0x33f260===_0x57d552(0xbd)&&_0x33f260[_0x57d552(0xad)]()?_0x33f260['trim']():undefined;}function describeConfiguredRegion(_0x4c15bc){const _0x128604=a246_0x5273;return typeof _0x4c15bc===_0x128604(0xbd)?JSON[_0x128604(0x9e)](_0x4c15bc):_0x128604(0xb1)+(_0x4c15bc===null?_0x128604(0xab):typeof _0x4c15bc);}function resolveConfiguredRegion(_0x32531a){const _0x551f85=a246_0x5273;if(isInvalidLovrabetRegion(_0x32531a))throw CliErrors[_0x551f85(0xb4)](_0x551f85(0xaf)+describeConfiguredRegion(_0x32531a)+_0x551f85(0x96),_0x551f85(0xb0)+CLI_BIN_NAME+_0x551f85(0xb5));return normalizeLovrabetRegion(_0x32531a)??DEFAULT_LOVRABET_REGION;}export function isRoutingRecoveryService(_0x183441){const _0x541b51=a246_0x5273;return _0x183441==='config'||_0x183441===_0x541b51(0x97);}export async function createContext(_0x5a028a){const _0x3db864=a246_0x5273,{config:_0x3d3cd5,layers:_0x3d56bf}=readRawConfigWithLayers(),_0x40047c=buildConfig(_0x3d3cd5,_0x5a028a,_0x3d56bf);await initGlobalEnvironment(_0x40047c);const {getUserDomain:_0x5340d2,getApiDomain:_0x30f582}=await import('./constant/domain.js'),_0x48118={'apiDomain':_0x30f582(),'userDomain':_0x5340d2()},_0x557e7e=await buildAuth(_0x40047c);logger[_0x3db864(0xbf)](process[_0x3db864(0xca)]());const _0x226a3c=(CLI_BIN_NAME+'\x20'+process['argv']['slice'](0x2)[_0x3db864(0xcd)]('\x20'))[_0x3db864(0xad)]();logger[_0x3db864(0xc0)](_0x226a3c);const {isNonInteractive:_0x5bd6c9}=await import(_0x3db864(0xbe)),_0x2265d8=_0x5bd6c9(_0x5a028a);return{'config':_0x40047c,'auth':_0x557e7e,'logger':logger,'env':_0x48118,'nonInteractive':_0x2265d8};}export function buildConfigFromFlags(_0x31ebed){const {config:_0xd77692,layers:_0xbb691d}=readRawConfigWithLayers();return buildConfig(_0xd77692,_0x31ebed,_0xbb691d);}export async function initGlobalEnvironment(_0xc9ac12){const _0xa9ffcc=a246_0x5273,_0x18517c=resolveConfiguredRegion(_0xc9ac12[_0xa9ffcc(0x9b)]?.[_0xa9ffcc(0xc4)]),_0x3daadb=resolveEnterpriseRoutingManifest(_0xc9ac12['raw']?.[_0xa9ffcc(0x9c)]),_0x1161ad={'region':_0x18517c,'apiDomain':_0x3daadb?_0x3daadb[_0xa9ffcc(0x9d)][_0xa9ffcc(0xa2)]:optionalString(_0xc9ac12['raw']?.[_0xa9ffcc(0xa2)]),'userDomain':_0x3daadb?_0x3daadb[_0xa9ffcc(0x9d)][_0xa9ffcc(0xaa)]:optionalString(_0xc9ac12['raw']?.['userDomain']),'runtimeDomain':_0x3daadb?_0x3daadb['domains']['runtimeDomain']:optionalString(_0xc9ac12[_0xa9ffcc(0x9b)]?.['runtimeDomain']),'skillDomain':_0x3daadb?_0x3daadb[_0xa9ffcc(0x9d)][_0xa9ffcc(0xb3)]:optionalString(_0xc9ac12['raw']?.[_0xa9ffcc(0xb3)])||optionalString(_0xc9ac12[_0xa9ffcc(0x9b)]?.[_0xa9ffcc(0xc7)])||optionalString(_0xc9ac12[_0xa9ffcc(0x9b)]?.[_0xa9ffcc(0xc1)])||optionalString(_0xc9ac12[_0xa9ffcc(0x9b)]?.['platformDomain']),'kbDomain':_0x3daadb?_0x3daadb[_0xa9ffcc(0x9d)]['kbDomain']:optionalString(_0xc9ac12[_0xa9ffcc(0x9b)]?.[_0xa9ffcc(0xb2)])||optionalString(_0xc9ac12[_0xa9ffcc(0x9b)]?.[_0xa9ffcc(0xc1)])||optionalString(_0xc9ac12['raw']?.['platformDomain']),'appDomain':_0x3daadb?_0x3daadb[_0xa9ffcc(0x9d)]['appDomain']:optionalString(_0xc9ac12['raw']?.[_0xa9ffcc(0xd0)]),'localDomain':_0x3daadb?_0x3daadb[_0xa9ffcc(0x9d)]['localDomain']:optionalString(_0xc9ac12[_0xa9ffcc(0x9b)]?.[_0xa9ffcc(0xbb)]),'certificateDomain':_0x3daadb?_0x3daadb[_0xa9ffcc(0x9d)][_0xa9ffcc(0xb8)]:optionalString(_0xc9ac12[_0xa9ffcc(0x9b)]?.[_0xa9ffcc(0xb8)]),'cdn':_0x3daadb?.[_0xa9ffcc(0xc9)]},{initEnv:_0x6befea}=await import(_0xa9ffcc(0xbc)),{initDomains:_0x5841ac}=await import(_0xa9ffcc(0x95));_0x6befea(_0xc9ac12[_0xa9ffcc(0xa4)]),_0x5841ac(_0x1161ad);}export function getConfigAppCode(_0x130cb0){const _0x4a4935=a246_0x5273,_0x5bc80a=readRawConfig(_0x130cb0);if(_0x5bc80a['apps']&&typeof _0x5bc80a['apps']===_0x4a4935(0xac)){const _0x54944b=_0x5bc80a['defaultApp'];if(_0x54944b)return _0x5bc80a['apps'][_0x54944b]?.['appcode']?String(_0x5bc80a[_0x4a4935(0x9f)][_0x54944b]['appcode'])[_0x4a4935(0xad)]():undefined;const _0x1aaebc=Object[_0x4a4935(0xa1)](_0x5bc80a['apps']);if(_0x1aaebc['length']===0x1&&_0x1aaebc[0x0]?.[_0x4a4935(0xcf)])return String(_0x1aaebc[0x0]['appcode'])[_0x4a4935(0xad)]();}const _0x6e96c1=_0x5bc80a[_0x4a4935(0xcf)]||_0x5bc80a[_0x4a4935(0xa0)];if(typeof _0x6e96c1!==_0x4a4935(0xbd)||_0x6e96c1['trim']()==='')return undefined;return _0x6e96c1['trim']();}function a246_0x5273(_0x2316b5,_0x4763cf){_0x2316b5=_0x2316b5-0x95;const _0x1dc6d3=a246_0x1dc6();let _0x527303=_0x1dc6d3[_0x2316b5];return _0x527303;}export function getMultiAppConfigs(_0x47804b=a246_0x1aad2a(0xa6),_0x553858){const _0x3b07fb=a246_0x1aad2a,_0x5a0ef0=loadRawConfigLayers(_0x553858);let _0x59ef08,_0x495fd8;if(_0x47804b==='merged'){const _0x9ba66b=_0x5a0ef0['globalConfig'][_0x3b07fb(0x9f)]&&typeof _0x5a0ef0['globalConfig'][_0x3b07fb(0x9f)]===_0x3b07fb(0xac)?_0x5a0ef0['globalConfig'][_0x3b07fb(0x9f)]:{},_0x2b14c8=_0x5a0ef0[_0x3b07fb(0xcc)]['apps']&&typeof _0x5a0ef0[_0x3b07fb(0xcc)][_0x3b07fb(0x9f)]===_0x3b07fb(0xac)?_0x5a0ef0[_0x3b07fb(0xcc)][_0x3b07fb(0x9f)]:{};_0x59ef08={..._0x9ba66b,..._0x2b14c8};const _0x25cadf=readRawConfig(_0x553858);_0x495fd8=_0x25cadf[_0x3b07fb(0xd1)];}else _0x59ef08=_0x5a0ef0[_0x3b07fb(0xcc)][_0x3b07fb(0x9f)],_0x495fd8=_0x5a0ef0['projectConfig']['defaultApp'];!_0x495fd8&&_0x59ef08&&typeof _0x59ef08==='object'&&Object[_0x3b07fb(0xae)](_0x59ef08)['length']===0x1&&(_0x495fd8=Object['keys'](_0x59ef08)[0x0]);if(!_0x59ef08||typeof _0x59ef08!==_0x3b07fb(0xac)||Object['keys'](_0x59ef08)[_0x3b07fb(0xc6)]===0x0)return null;return Object[_0x3b07fb(0x98)](_0x59ef08)[_0x3b07fb(0xc3)](([_0x42574f,_0x7c383a])=>({'name':_0x42574f,'appcode':_0x7c383a?.[_0x3b07fb(0xcf)]||'','isDefault':_0x42574f===_0x495fd8,'env':_0x7c383a?.['env'],'apiDir':_0x7c383a?.[_0x3b07fb(0xa9)],'cookie':_0x7c383a?.[_0x3b07fb(0x99)]||undefined}))['filter'](_0x13dbf8=>_0x13dbf8[_0x3b07fb(0xcf)]);}export function getTemplateBaseUrl(_0x1e4632){const _0x2c4240=a246_0x1aad2a,_0x79e603=readRawConfig(_0x1e4632);if(_0x79e603[_0x2c4240(0xce)]&&typeof _0x79e603[_0x2c4240(0xce)]===_0x2c4240(0xbd))return _0x79e603['template_base_url'][_0x2c4240(0xba)](/\/$/,'');return _0x2c4240(0xc5);}function buildConfig(_0x125218,_0x3acd83,_0x4b213c){return{...resolveAppConfig({'raw':_0x125218,'flags':_0x3acd83,'layers':_0x4b213c,'readEnv':env}),'raw':_0x125218};}export function resolveApiFilePath(_0x458ecd,_0x329711){const _0x18a118=a246_0x1aad2a,_0x44be56=resolve(process['cwd'](),_0x458ecd),_0x55af1d=resolve(_0x44be56,_0x18a118(0xb9));if(!_0x329711)return _0x55af1d;const _0x413fc0=readRawConfig(),_0x44c297=_0x413fc0[_0x18a118(0x9f)]&&typeof _0x413fc0[_0x18a118(0x9f)]===_0x18a118(0xac)?_0x413fc0['apps']:{},_0x5061d1=Object['entries'](_0x44c297)[_0x18a118(0xa8)](([,_0x5b8e60])=>_0x5b8e60?.[_0x18a118(0xcf)]===_0x329711);if(!_0x5061d1)return _0x55af1d;const [_0xaff9fc,_0x3e618d]=_0x5061d1,_0x33cf22=typeof _0x413fc0[_0x18a118(0xd1)]===_0x18a118(0xbd)?_0x413fc0[_0x18a118(0xd1)]:undefined;if(_0x3e618d?.[_0x18a118(0xa9)])return _0x55af1d;if(_0x33cf22&&_0xaff9fc!==_0x33cf22)return resolve(_0x44be56,_0xaff9fc+'-api.ts');return _0x55af1d;}
|
|
1
|
+
function a245_0x2275(_0x12a6f9,_0x55335){_0x12a6f9=_0x12a6f9-0x18a;const _0x4c8978=a245_0x4c89();let _0x227588=_0x4c8978[_0x12a6f9];return _0x227588;}const a245_0x36efeb=a245_0x2275;(function(_0x35007b,_0x3fdffc){const _0x103a1a=a245_0x2275,_0x3f0fd5=_0x35007b();while(!![]){try{const _0x418a3b=parseInt(_0x103a1a(0x192))/0x1*(parseInt(_0x103a1a(0x1b9))/0x2)+-parseInt(_0x103a1a(0x1a7))/0x3+parseInt(_0x103a1a(0x1c0))/0x4*(-parseInt(_0x103a1a(0x198))/0x5)+parseInt(_0x103a1a(0x1c6))/0x6*(parseInt(_0x103a1a(0x1a3))/0x7)+parseInt(_0x103a1a(0x1ad))/0x8+-parseInt(_0x103a1a(0x1b0))/0x9*(-parseInt(_0x103a1a(0x1c7))/0xa)+parseInt(_0x103a1a(0x19c))/0xb;if(_0x418a3b===_0x3fdffc)break;else _0x3f0fd5['push'](_0x3f0fd5['shift']());}catch(_0x48dd20){_0x3f0fd5['push'](_0x3f0fd5['shift']());}}}(a245_0x4c89,0x8d46f));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion,normalizeLovrabetRegion}from'./constant/region.js';import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x7fdf86){return process.env[`RABETBASE_${_0x7fdf86}`]||process.env[`LOVRABET_${_0x7fdf86}`]||undefined;}function optionalString(_0x201d2d){const _0x49648b=a245_0x2275;return typeof _0x201d2d==='string'&&_0x201d2d[_0x49648b(0x1a2)]()?_0x201d2d[_0x49648b(0x1a2)]():undefined;}function a245_0x4c89(){const _0x256512=['24UeQLUT','apiDir','./utils/is-non-interactive.js','projectConfig','kbDomain','\x20in\x20Rabetbase\x20configuration.','276GcKEZb','30LCObMv','domains','keys','stringify','raw','find','doctor','entries','appDomain','Invalid\x20country/region\x20','project','length','518IMUuVi','template_base_url','validation','region','certificateDomain','map','617285OgZINg','api.ts','slice','localDomain','2283677OhOfzK','env','apiDomain','argv','-api.ts','skillDomain','trim','7231xEYwCj','appcode','a\x20value\x20of\x20type\x20','./constant/domain.js','1676484ghQQmF','string','Run\x20`','replace','globalConfig','merged','121424Pyjptf','values','agentDomain','3398796PsnwVO','apps','app','defaultApp','platformDomain','join','./constant/env.js','https://g.lovrabet.com/dist/lovrabet-skill','skillHubDomain','1834qpFfsk','userDomain','object','filter','setRawCommand','cookie','runtimeDomain'];a245_0x4c89=function(){return _0x256512;};return a245_0x4c89();}function describeConfiguredRegion(_0x1da965){const _0x2101f6=a245_0x2275;return typeof _0x1da965==='string'?JSON[_0x2101f6(0x1ca)](_0x1da965):_0x2101f6(0x1a5)+(_0x1da965===null?'null':typeof _0x1da965);}function resolveConfiguredRegion(_0x4c9e43){const _0x30ad80=a245_0x2275;if(isInvalidLovrabetRegion(_0x4c9e43))throw CliErrors[_0x30ad80(0x194)](_0x30ad80(0x18f)+describeConfiguredRegion(_0x4c9e43)+_0x30ad80(0x1c5),_0x30ad80(0x1a9)+CLI_BIN_NAME+'\x20doctor`\x20to\x20locate\x20and\x20repair\x20the\x20invalid\x20configuration\x20before\x20retrying.');return normalizeLovrabetRegion(_0x4c9e43)??DEFAULT_LOVRABET_REGION;}export function isRoutingRecoveryService(_0x32f5bb){const _0x2b28e2=a245_0x2275;return _0x32f5bb==='config'||_0x32f5bb===_0x2b28e2(0x18c);}export async function createContext(_0x497003){const _0x14491e=a245_0x2275,{config:_0x50b1a2,layers:_0x3c0eab}=readRawConfigWithLayers(),_0x4ee85c=buildConfig(_0x50b1a2,_0x497003,_0x3c0eab);await initGlobalEnvironment(_0x4ee85c);const {getUserDomain:_0x12aa74,getApiDomain:_0x3edda5}=await import(_0x14491e(0x1a6)),_0x4f9093={'apiDomain':_0x3edda5(),'userDomain':_0x12aa74()},_0x535a69=await buildAuth(_0x4ee85c);logger['setLogPath'](process['cwd']());const _0x28e8b5=(CLI_BIN_NAME+'\x20'+process[_0x14491e(0x19f)][_0x14491e(0x19a)](0x2)[_0x14491e(0x1b5)]('\x20'))['trim']();logger[_0x14491e(0x1bd)](_0x28e8b5);const {isNonInteractive:_0x57dade}=await import(_0x14491e(0x1c2)),_0x27c79a=_0x57dade(_0x497003);return{'config':_0x4ee85c,'auth':_0x535a69,'logger':logger,'env':_0x4f9093,'nonInteractive':_0x27c79a};}export function buildConfigFromFlags(_0x2faab2){const {config:_0x199c5d,layers:_0x34c534}=readRawConfigWithLayers();return buildConfig(_0x199c5d,_0x2faab2,_0x34c534);}export async function initGlobalEnvironment(_0x4dc329){const _0x48ea8e=a245_0x2275,_0x4a93de=resolveConfiguredRegion(_0x4dc329['raw']?.[_0x48ea8e(0x195)]),_0x69febe=resolveEnterpriseRoutingManifest(_0x4dc329['raw']?.['routing']),_0x3ad664={'region':_0x4a93de,'apiDomain':_0x69febe?_0x69febe[_0x48ea8e(0x1c8)]['apiDomain']:optionalString(_0x4dc329[_0x48ea8e(0x18a)]?.[_0x48ea8e(0x19e)]),'userDomain':_0x69febe?_0x69febe[_0x48ea8e(0x1c8)][_0x48ea8e(0x1ba)]:optionalString(_0x4dc329[_0x48ea8e(0x18a)]?.[_0x48ea8e(0x1ba)]),'runtimeDomain':_0x69febe?_0x69febe['domains']['runtimeDomain']:optionalString(_0x4dc329[_0x48ea8e(0x18a)]?.[_0x48ea8e(0x1bf)]),'skillDomain':_0x69febe?_0x69febe[_0x48ea8e(0x1c8)][_0x48ea8e(0x1a1)]:optionalString(_0x4dc329[_0x48ea8e(0x18a)]?.[_0x48ea8e(0x1a1)])||optionalString(_0x4dc329[_0x48ea8e(0x18a)]?.[_0x48ea8e(0x1b8)])||optionalString(_0x4dc329[_0x48ea8e(0x18a)]?.['agentDomain'])||optionalString(_0x4dc329[_0x48ea8e(0x18a)]?.[_0x48ea8e(0x1b4)]),'kbDomain':_0x69febe?_0x69febe[_0x48ea8e(0x1c8)][_0x48ea8e(0x1c4)]:optionalString(_0x4dc329[_0x48ea8e(0x18a)]?.[_0x48ea8e(0x1c4)])||optionalString(_0x4dc329[_0x48ea8e(0x18a)]?.[_0x48ea8e(0x1af)])||optionalString(_0x4dc329['raw']?.[_0x48ea8e(0x1b4)]),'appDomain':_0x69febe?_0x69febe[_0x48ea8e(0x1c8)][_0x48ea8e(0x18e)]:optionalString(_0x4dc329[_0x48ea8e(0x18a)]?.['appDomain']),'localDomain':_0x69febe?_0x69febe[_0x48ea8e(0x1c8)][_0x48ea8e(0x19b)]:optionalString(_0x4dc329[_0x48ea8e(0x18a)]?.['localDomain']),'certificateDomain':_0x69febe?_0x69febe['domains'][_0x48ea8e(0x196)]:optionalString(_0x4dc329[_0x48ea8e(0x18a)]?.[_0x48ea8e(0x196)]),'cdn':_0x69febe?.['cdn']},{initEnv:_0x39847e}=await import(_0x48ea8e(0x1b6)),{initDomains:_0x188daf}=await import(_0x48ea8e(0x1a6));_0x39847e(_0x4dc329['env']),_0x188daf(_0x3ad664);}export function getConfigAppCode(_0x2c23fc){const _0x427c6d=a245_0x2275,_0x18a05e=readRawConfig(_0x2c23fc);if(_0x18a05e[_0x427c6d(0x1b1)]&&typeof _0x18a05e[_0x427c6d(0x1b1)]===_0x427c6d(0x1bb)){const _0x15ee1b=_0x18a05e[_0x427c6d(0x1b3)];if(_0x15ee1b)return _0x18a05e[_0x427c6d(0x1b1)][_0x15ee1b]?.[_0x427c6d(0x1a4)]?String(_0x18a05e[_0x427c6d(0x1b1)][_0x15ee1b]['appcode'])[_0x427c6d(0x1a2)]():undefined;const _0x415c2e=Object[_0x427c6d(0x1ae)](_0x18a05e[_0x427c6d(0x1b1)]);if(_0x415c2e['length']===0x1&&_0x415c2e[0x0]?.[_0x427c6d(0x1a4)])return String(_0x415c2e[0x0][_0x427c6d(0x1a4)])[_0x427c6d(0x1a2)]();}const _0x184de5=_0x18a05e[_0x427c6d(0x1a4)]||_0x18a05e[_0x427c6d(0x1b2)];if(typeof _0x184de5!==_0x427c6d(0x1a8)||_0x184de5[_0x427c6d(0x1a2)]()==='')return undefined;return _0x184de5[_0x427c6d(0x1a2)]();}export function getMultiAppConfigs(_0x1ba65e=a245_0x36efeb(0x190),_0xe18436){const _0x4f494b=a245_0x36efeb,_0x30ccd9=loadRawConfigLayers(_0xe18436);let _0xe5682c,_0x3f6c34;if(_0x1ba65e===_0x4f494b(0x1ac)){const _0xdf8052=_0x30ccd9['globalConfig'][_0x4f494b(0x1b1)]&&typeof _0x30ccd9[_0x4f494b(0x1ab)][_0x4f494b(0x1b1)]===_0x4f494b(0x1bb)?_0x30ccd9[_0x4f494b(0x1ab)][_0x4f494b(0x1b1)]:{},_0x5adb3a=_0x30ccd9[_0x4f494b(0x1c3)]['apps']&&typeof _0x30ccd9['projectConfig']['apps']===_0x4f494b(0x1bb)?_0x30ccd9[_0x4f494b(0x1c3)][_0x4f494b(0x1b1)]:{};_0xe5682c={..._0xdf8052,..._0x5adb3a};const _0x98ba81=readRawConfig(_0xe18436);_0x3f6c34=_0x98ba81['defaultApp'];}else _0xe5682c=_0x30ccd9[_0x4f494b(0x1c3)][_0x4f494b(0x1b1)],_0x3f6c34=_0x30ccd9[_0x4f494b(0x1c3)]['defaultApp'];!_0x3f6c34&&_0xe5682c&&typeof _0xe5682c===_0x4f494b(0x1bb)&&Object['keys'](_0xe5682c)[_0x4f494b(0x191)]===0x1&&(_0x3f6c34=Object[_0x4f494b(0x1c9)](_0xe5682c)[0x0]);if(!_0xe5682c||typeof _0xe5682c!==_0x4f494b(0x1bb)||Object[_0x4f494b(0x1c9)](_0xe5682c)[_0x4f494b(0x191)]===0x0)return null;return Object['entries'](_0xe5682c)[_0x4f494b(0x197)](([_0x583420,_0x2037ed])=>({'name':_0x583420,'appcode':_0x2037ed?.[_0x4f494b(0x1a4)]||'','isDefault':_0x583420===_0x3f6c34,'env':_0x2037ed?.[_0x4f494b(0x19d)],'apiDir':_0x2037ed?.[_0x4f494b(0x1c1)],'cookie':_0x2037ed?.[_0x4f494b(0x1be)]||undefined}))[_0x4f494b(0x1bc)](_0xbb3e67=>_0xbb3e67[_0x4f494b(0x1a4)]);}export function getTemplateBaseUrl(_0x2592fb){const _0x538db4=a245_0x36efeb,_0x4fcb40=readRawConfig(_0x2592fb);if(_0x4fcb40[_0x538db4(0x193)]&&typeof _0x4fcb40[_0x538db4(0x193)]===_0x538db4(0x1a8))return _0x4fcb40['template_base_url'][_0x538db4(0x1aa)](/\/$/,'');return _0x538db4(0x1b7);}function buildConfig(_0x200547,_0x3814c3,_0x1d741c){return{...resolveAppConfig({'raw':_0x200547,'flags':_0x3814c3,'layers':_0x1d741c,'readEnv':env}),'raw':_0x200547};}export function resolveApiFilePath(_0x586949,_0x1d027c){const _0x2aa8a9=a245_0x36efeb,_0x5e5d9e=resolve(process['cwd'](),_0x586949),_0x1bce8a=resolve(_0x5e5d9e,_0x2aa8a9(0x199));if(!_0x1d027c)return _0x1bce8a;const _0x12daae=readRawConfig(),_0x2431ae=_0x12daae[_0x2aa8a9(0x1b1)]&&typeof _0x12daae[_0x2aa8a9(0x1b1)]===_0x2aa8a9(0x1bb)?_0x12daae[_0x2aa8a9(0x1b1)]:{},_0x193a55=Object[_0x2aa8a9(0x18d)](_0x2431ae)[_0x2aa8a9(0x18b)](([,_0xc601c7])=>_0xc601c7?.['appcode']===_0x1d027c);if(!_0x193a55)return _0x1bce8a;const [_0x5b59c2,_0x41cdf6]=_0x193a55,_0x3b306d=typeof _0x12daae['defaultApp']===_0x2aa8a9(0x1a8)?_0x12daae[_0x2aa8a9(0x1b3)]:undefined;if(_0x41cdf6?.[_0x2aa8a9(0x1c1)])return _0x1bce8a;if(_0x3b306d&&_0x5b59c2!==_0x3b306d)return resolve(_0x5e5d9e,_0x5b59c2+_0x2aa8a9(0x1a0));return _0x1bce8a;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5b9789,_0x3190f2){const _0xc7941e=a246_0x33b8,_0x3bd0fa=_0x5b9789();while(!![]){try{const _0x5257df=parseInt(_0xc7941e(0x8f))/0x1+parseInt(_0xc7941e(0x94))/0x2+parseInt(_0xc7941e(0x8e))/0x3*(-parseInt(_0xc7941e(0x96))/0x4)+parseInt(_0xc7941e(0x99))/0x5*(parseInt(_0xc7941e(0x9c))/0x6)+parseInt(_0xc7941e(0x93))/0x7*(-parseInt(_0xc7941e(0x92))/0x8)+parseInt(_0xc7941e(0x95))/0x9+parseInt(_0xc7941e(0x97))/0xa*(parseInt(_0xc7941e(0xa0))/0xb);if(_0x5257df===_0x3190f2)break;else _0x3bd0fa['push'](_0x3bd0fa['shift']());}catch(_0x40ffe3){_0x3bd0fa['push'](_0x3bd0fa['shift']());}}}(a246_0x4e7c,0xdf8cc));function a246_0x33b8(_0x49997c,_0x22cfea){_0x49997c=_0x49997c-0x8d;const _0x4e7c50=a246_0x4e7c();let _0x33b8b8=_0x4e7c50[_0x49997c];return _0x33b8b8;}import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';const cache=new Map();function parseApiFile(_0x49ef05){const _0x5eb0f8=a246_0x33b8,_0x394344=[],_0x47ab85=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x11e6b6;while((_0x11e6b6=_0x47ab85[_0x5eb0f8(0x9b)](_0x49ef05))!==null){_0x394344[_0x5eb0f8(0x98)]({'datasetCode':_0x11e6b6[0x1],'tableName':_0x11e6b6[0x2],'name':_0x11e6b6[0x3],'alias':_0x11e6b6[0x4]});}return _0x394344;}export function loadAliasMap(_0x45a2c4,_0x3d3150,_0x26f311){const _0x2e6bd6=a246_0x33b8,_0x53d721=_0x26f311??resolve(process[_0x2e6bd6(0x8d)](),_0x45a2c4,'api.ts');if(cache[_0x2e6bd6(0x90)](_0x53d721))return cache[_0x2e6bd6(0x9d)](_0x53d721);if(!existsSync(_0x53d721))return cache[_0x2e6bd6(0x9e)](_0x53d721,[]),[];try{const _0x23f616=readFileSync(_0x53d721,_0x2e6bd6(0x9f)),_0x5616d0=parseApiFile(_0x23f616);return cache[_0x2e6bd6(0x9e)](_0x53d721,_0x5616d0),_0x5616d0;}catch{return cache['set'](_0x53d721,[]),[];}}function a246_0x4e7c(){const _0x3dda08=['set','utf-8','1047992JanInz','datasetCode','cwd','36MlussQ','390900TPCLXm','has','find','9380944ZRDlpV','7dPhPTh','1213602PVTzog','11209995qXCmPv','181432ObisXm','20WicOEF','push','90MCBlEs','alias','exec','66258GExiyL','get'];a246_0x4e7c=function(){return _0x3dda08;};return a246_0x4e7c();}export function resolveAlias(_0x9e5101,_0x5ba601,_0x4aa321,_0xe3796a){const _0x46fd83=a246_0x33b8;if(!_0x5ba601)return undefined;const _0x2696bf=loadAliasMap(_0x9e5101,_0x4aa321,_0xe3796a),_0x2ce86c=_0x2696bf[_0x46fd83(0x91)](_0x1c8450=>_0x1c8450[_0x46fd83(0x9a)]===_0x5ba601);return _0x2ce86c?.[_0x46fd83(0xa1)];}export function listAliases(_0x192bab,_0x492059,_0x5601f0){return loadAliasMap(_0x192bab,_0x492059,_0x5601f0);}
|
package/lib/core/api-client.d.ts
CHANGED
|
@@ -735,32 +735,6 @@ export interface CustomPagePublishRequest {
|
|
|
735
735
|
pageId: number;
|
|
736
736
|
remark?: string;
|
|
737
737
|
}
|
|
738
|
-
export interface AppI18nInfo {
|
|
739
|
-
enableI18n?: boolean;
|
|
740
|
-
langs?: string[];
|
|
741
|
-
}
|
|
742
|
-
export interface AppInfo {
|
|
743
|
-
appCode: string;
|
|
744
|
-
appDomain?: string;
|
|
745
|
-
appName?: string;
|
|
746
|
-
appDesc?: string;
|
|
747
|
-
enableI18n?: boolean;
|
|
748
|
-
i18nInfo?: AppI18nInfo;
|
|
749
|
-
}
|
|
750
|
-
/**
|
|
751
|
-
* 获取应用信息
|
|
752
|
-
*
|
|
753
|
-
* @param appCode 目标应用 code
|
|
754
|
-
* @returns 应用详情
|
|
755
|
-
*/
|
|
756
|
-
export declare function getAppInfo(appCode: string): Promise<AppInfo>;
|
|
757
|
-
/**
|
|
758
|
-
* 获取应用国际化配置
|
|
759
|
-
*
|
|
760
|
-
* @param appCode 目标应用 code
|
|
761
|
-
* @returns 应用国际化开关和语言列表
|
|
762
|
-
*/
|
|
763
|
-
export declare function getI18nInfo(appCode: string): Promise<AppI18nInfo>;
|
|
764
738
|
/**
|
|
765
739
|
* 创建自定义页面(React JSX 实现)
|
|
766
740
|
*
|