@lovrabet/rabetbase-cli 2.5.2 → 2.5.3-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.d.ts +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.d.ts +2 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.d.ts +23 -0
- package/lib/config/region-config.js +1 -0
- package/lib/config/schema.d.ts +15 -0
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.d.ts +6 -0
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.d.ts +13 -0
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +2 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.d.ts +6 -0
- package/lib/core/page/lr-smart-jsx.js +1 -0
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.d.ts +2 -8
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.d.ts +2 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +6 -5
- package/skills/rabetbase/guides/page-development-workflow.md +3 -0
- package/skills/rabetbase/guides/sdk-client-generation.md +5 -5
- package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +11 -3
- package/skills/rabetbase/references/rabetbase-api-pull.md +5 -4
- package/skills/rabetbase/references/rabetbase-app-list.md +3 -0
- package/skills/rabetbase/references/rabetbase-bff-list.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-pull.md +2 -0
- package/skills/rabetbase/references/rabetbase-bff-status.md +2 -0
- package/skills/rabetbase/references/rabetbase-config.md +10 -9
- package/skills/rabetbase/references/rabetbase-doctor.md +2 -2
- package/skills/rabetbase/references/rabetbase-page-push.md +5 -1
- package/skills/rabetbase/references/rabetbase-workspace.md +4 -2
- package/skills/rabetbase.manifest.json +3 -3
- package/templates/generate-api/client.ts.tpl +1 -1
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a231_0x162b(){const _0x4c4726=['Page\x20number','help','Use\x20project\x20config\x20scope','reveal','skip-imports','meowKey','596TRBdOi','File\x20path','Name','env','confirm','Target\x20path','Schemas','datasetcode','description-file','JSON\x20params','taskId','fromEntries','topk','<name>','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','all','sqlcode','tags','Force\x20overwrite','remote','Function\x20node','string','386FHCHkQ','type','value','dbid','Asynchronous\x20task\x20ID','297185HILJxJ','90460Hrszkm','Override\x20appcode','project','Verbose\x20output','Use\x20global\x20config\x20scope','Record\x20ID','500124DYTEmX','stdin','Reveal\x20sensitive\x20value','enable-bff-save','non-interactive','force','Environment','parentId','expect-path','operationType','sort','Clear','Read\x20value\x20from\x20environment\x20variable','watch','global','Config\x20key','function-node','Output\x20format','369639WXVDUw','SQL\x20string','Menu\x20sort\x20value','expectParentId','Maximum\x20search\x20hits','Dataset\x20code','Tags','Skip\x20import\x20generation','production\x20|\x20daily','Page\x20size','appcode','801nKkcuG','app','sql','Show\x20help','expectedCount','Skip\x20confirmation\x20for\x20high-risk\x20writes','db-id','Operation\x20type','label','boolean','SQL\x20name','dbId','Expected\x20current\x20child\x20count','keyword','Description','11936OWAOuE','query','Comma-separated\x20menu\x20IDs','expect-parent-id','schemas','expected-count','30gKKjcl','Code\x20filter','yes','Enable\x20Backend\x20Function\x20save','<expr>','dry-run','key','operation-type','Expected\x20current\x20parent\x20menu\x20id','Force\x20non-interactive\x20mode\x20(CI)','menuIds','title','sql-name','Read\x20value\x20from\x20stdin','sqlname','description','1182380LdllrP','DB\x20ID','name','rabetbase','from-env','page','params','Menu\x20label','clear','expectedChildrenCount','Use\x20remote','Config\x20value','codes','target','enableBffSave','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','code','fromEnv','Search\x20query','Apply\x20to\x20all','verbose','Parent\x20menu\x20id','parent-id','<code>','expectPath','format','33rdqVeR','functionNode','sqlName','zh-CN\x20|\x20en-US','Expected\x20affected\x20count','nonInteractive','descriptionFile','Type\x20filter'];a231_0x162b=function(){return _0x4c4726;};return a231_0x162b();}function a231_0x157c(_0x1c691c,_0x23551e){_0x1c691c=_0x1c691c-0xcf;const _0x162b8b=a231_0x162b();let _0x157c56=_0x162b8b[_0x1c691c];return _0x157c56;}const a231_0x430e9=a231_0x157c;(function(_0x468708,_0x311bd1){const _0x32e34d=a231_0x157c,_0x17d9b9=_0x468708();while(!![]){try{const _0xf50d45=-parseInt(_0x32e34d(0x155))/0x1*(parseInt(_0x32e34d(0x13f))/0x2)+parseInt(_0x32e34d(0xe7))/0x3+parseInt(_0x32e34d(0xd5))/0x4+-parseInt(_0x32e34d(0xcf))/0x5+parseInt(_0x32e34d(0x107))/0x6*(-parseInt(_0x32e34d(0x15a))/0x7)+parseInt(_0x32e34d(0x101))/0x8*(-parseInt(_0x32e34d(0xf2))/0x9)+parseInt(_0x32e34d(0x117))/0xa*(parseInt(_0x32e34d(0x131))/0xb);if(_0xf50d45===_0x311bd1)break;else _0x17d9b9['push'](_0x17d9b9['shift']());}catch(_0x28d626){_0x17d9b9['push'](_0x17d9b9['shift']());}}}(a231_0x162b,0x1e767));export const CLI_BIN_NAME=a231_0x430e9(0x11a);export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a231_0x430e9(0xf1),'meowKey':a231_0x430e9(0xf1),'type':'string','description':a231_0x430e9(0xd0),'hint':a231_0x430e9(0x12e)},{'name':a231_0x430e9(0xf3),'meowKey':'app','type':a231_0x430e9(0x154),'description':'Select\x20app\x20profile\x20by\x20name','hint':a231_0x430e9(0x14c)},{'name':'env','meowKey':a231_0x430e9(0x142),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xdb),'hint':a231_0x430e9(0xef)},{'name':a231_0x430e9(0x130),'meowKey':a231_0x430e9(0x130),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xe6),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a231_0x430e9(0x154),'description':a231_0x430e9(0x14d),'hint':a231_0x430e9(0x10b)},{'name':a231_0x430e9(0x10c),'meowKey':'dryRun','type':a231_0x430e9(0xfb),'description':'Preview\x20operation\x20without\x20executing'},{'name':'yes','meowKey':a231_0x430e9(0x109),'type':a231_0x430e9(0xfb),'description':a231_0x430e9(0xf7)},{'name':a231_0x430e9(0xd9),'meowKey':a231_0x430e9(0x136),'type':'boolean','description':a231_0x430e9(0x110)},{'name':a231_0x430e9(0xe3),'meowKey':a231_0x430e9(0xe3),'type':a231_0x430e9(0xfb),'description':a231_0x430e9(0xd3)},{'name':a231_0x430e9(0xd1),'meowKey':'project','type':a231_0x430e9(0xfb),'description':a231_0x430e9(0x13b)},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a231_0x430e9(0x13a),'meowKey':'help','type':a231_0x430e9(0xfb),'description':a231_0x430e9(0xf5)},{'name':'locale','meowKey':'locale','type':a231_0x430e9(0x154),'description':a231_0x430e9(0x126),'hidden':!![],'hint':a231_0x430e9(0x134)},{'name':a231_0x430e9(0x119),'meowKey':a231_0x430e9(0x119),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x141),'hidden':!![]},{'name':a231_0x430e9(0x112),'meowKey':a231_0x430e9(0x112),'type':a231_0x430e9(0x154),'description':'Title','hidden':!![]},{'name':a231_0x430e9(0x102),'meowKey':a231_0x430e9(0x102),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x129),'hidden':!![]},{'name':a231_0x430e9(0x14b),'meowKey':a231_0x430e9(0x14b),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xeb),'hidden':!![]},{'name':a231_0x430e9(0x11f),'meowKey':a231_0x430e9(0x11f),'type':'boolean','description':a231_0x430e9(0xe0),'hidden':!![]},{'name':a231_0x430e9(0xe2),'meowKey':a231_0x430e9(0xe2),'type':'boolean','description':'Watch\x20mode','hidden':!![]},{'name':'output','meowKey':'output','type':'string','description':'Output\x20path','hidden':!![]},{'name':a231_0x430e9(0x11d),'meowKey':a231_0x430e9(0x11d),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x148),'hidden':!![]},{'name':a231_0x430e9(0x146),'meowKey':'datasetcode','type':a231_0x430e9(0x154),'description':a231_0x430e9(0xec),'hidden':!![]},{'name':a231_0x430e9(0x14e),'meowKey':'all','type':'boolean','description':a231_0x430e9(0x12a),'hidden':!![]},{'name':a231_0x430e9(0xd8),'meowKey':a231_0x430e9(0x125),'type':a231_0x430e9(0xfb),'description':a231_0x430e9(0x10a),'hidden':!![]},{'name':'id','meowKey':'id','type':a231_0x430e9(0x154),'description':a231_0x430e9(0xd4),'hidden':!![]},{'name':a231_0x430e9(0x156),'meowKey':'type','type':a231_0x430e9(0x154),'description':a231_0x430e9(0x138),'hidden':!![]},{'name':'file','meowKey':'file','type':a231_0x430e9(0x154),'description':a231_0x430e9(0x140),'hidden':!![]},{'name':a231_0x430e9(0x14f),'meowKey':a231_0x430e9(0x14f),'type':a231_0x430e9(0x154),'description':'SQL\x20code','hidden':!![]},{'name':a231_0x430e9(0x113),'meowKey':a231_0x430e9(0x133),'type':'string','description':a231_0x430e9(0xfc),'hidden':!![]},{'name':'sqlname','meowKey':a231_0x430e9(0x115),'type':a231_0x430e9(0x154),'description':'SQL\x20name','hidden':!![]},{'name':a231_0x430e9(0xf8),'meowKey':a231_0x430e9(0xfd),'type':'string','description':a231_0x430e9(0x118),'hidden':!![]},{'name':a231_0x430e9(0x158),'meowKey':'dbid','type':a231_0x430e9(0x154),'description':a231_0x430e9(0x118),'hidden':!![]},{'name':a231_0x430e9(0x116),'meowKey':a231_0x430e9(0x116),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x100),'hidden':!![]},{'name':a231_0x430e9(0x147),'meowKey':a231_0x430e9(0x137),'type':a231_0x430e9(0x154),'description':'Description\x20file','hidden':!![]},{'name':a231_0x430e9(0x11c),'meowKey':'page','type':a231_0x430e9(0x154),'description':a231_0x430e9(0x139),'hidden':!![]},{'name':'pagesize','meowKey':'pagesize','type':a231_0x430e9(0x154),'description':a231_0x430e9(0xf0),'hidden':!![]},{'name':a231_0x430e9(0xff),'meowKey':a231_0x430e9(0xff),'type':'string','description':'Keyword\x20filter','hidden':!![]},{'name':a231_0x430e9(0x127),'meowKey':'code','type':a231_0x430e9(0x154),'description':a231_0x430e9(0x108),'hidden':!![]},{'name':a231_0x430e9(0xf4),'meowKey':a231_0x430e9(0xf4),'type':'string','description':a231_0x430e9(0xe8),'hidden':!![]},{'name':a231_0x430e9(0x105),'meowKey':a231_0x430e9(0x105),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x145),'hidden':!![]},{'name':'operation','meowKey':'operation','type':a231_0x430e9(0x154),'description':a231_0x430e9(0xf9),'hidden':!![]},{'name':a231_0x430e9(0x124),'meowKey':a231_0x430e9(0x124),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x144),'hidden':!![]},{'name':a231_0x430e9(0x13d),'meowKey':'skipImports','type':'boolean','description':a231_0x430e9(0xee),'hidden':!![]},{'name':'key','meowKey':a231_0x430e9(0x10d),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xe4),'hidden':!![]},{'name':a231_0x430e9(0x157),'meowKey':'value','type':a231_0x430e9(0x154),'description':a231_0x430e9(0x122),'hidden':!![]},{'name':'tags','meowKey':a231_0x430e9(0x150),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xed),'hidden':!![]},{'name':'stdin','meowKey':a231_0x430e9(0xd6),'type':'boolean','description':a231_0x430e9(0x114),'hidden':!![]},{'name':a231_0x430e9(0x11b),'meowKey':a231_0x430e9(0x128),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xe1),'hidden':!![]},{'name':a231_0x430e9(0x13c),'meowKey':a231_0x430e9(0x13c),'type':a231_0x430e9(0xfb),'description':a231_0x430e9(0xd7),'hidden':!![]},{'name':a231_0x430e9(0xda),'meowKey':a231_0x430e9(0xda),'type':a231_0x430e9(0xfb),'description':a231_0x430e9(0x151),'hidden':!![]},{'name':a231_0x430e9(0x143),'meowKey':a231_0x430e9(0x143),'type':a231_0x430e9(0xfb),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a231_0x430e9(0x152),'meowKey':a231_0x430e9(0x152),'type':a231_0x430e9(0xfb),'description':a231_0x430e9(0x121),'hidden':!![]},{'name':a231_0x430e9(0x12b),'meowKey':'verbose','type':a231_0x430e9(0xfb),'description':a231_0x430e9(0xd2),'hidden':!![]},{'name':a231_0x430e9(0x106),'meowKey':a231_0x430e9(0xf6),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x135),'hidden':!![]},{'name':a231_0x430e9(0xfa),'meowKey':a231_0x430e9(0xfa),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x11e),'hidden':!![]},{'name':a231_0x430e9(0x12d),'meowKey':a231_0x430e9(0xdc),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x12c),'hidden':!![]},{'name':a231_0x430e9(0xdf),'meowKey':a231_0x430e9(0xdf),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xe9),'hidden':!![]},{'name':a231_0x430e9(0x104),'meowKey':a231_0x430e9(0xea),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x10f),'hidden':!![]},{'name':a231_0x430e9(0xdd),'meowKey':a231_0x430e9(0x12f),'type':a231_0x430e9(0x154),'description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':'expected-children-count','meowKey':a231_0x430e9(0x120),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xfe),'hidden':!![]},{'name':'menu-ids','meowKey':a231_0x430e9(0x111),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x103),'hidden':!![]},{'name':'task-id','meowKey':a231_0x430e9(0x149),'type':'string','description':a231_0x430e9(0x159),'hidden':!![]},{'name':a231_0x430e9(0x10e),'meowKey':a231_0x430e9(0xde),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xf9),'hidden':!![]},{'name':a231_0x430e9(0xe5),'meowKey':a231_0x430e9(0x132),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x153),'hidden':!![]},{'name':a231_0x430e9(0x123),'meowKey':'codes','type':'string','description':'Comma-separated\x20metadata\x20codes','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a231_0x430e9(0xf3),a231_0x430e9(0x142),'format','jq',a231_0x430e9(0x10c),a231_0x430e9(0x109),a231_0x430e9(0xd9),'ci']);export function buildMeowFlags(){const _0x55ef46=a231_0x430e9;return Object[_0x55ef46(0x14a)](GLOBAL_FLAGS['map'](_0x376c20=>[_0x376c20[_0x55ef46(0x13e)],{'type':_0x376c20[_0x55ef46(0x156)]}]));}
|
|
1
|
+
const a232_0x2b9595=a232_0x1de7;(function(_0x117159,_0x1ca3af){const _0x587e8c=a232_0x1de7,_0x430905=_0x117159();while(!![]){try{const _0x1b5a73=parseInt(_0x587e8c(0x10d))/0x1*(parseInt(_0x587e8c(0x103))/0x2)+parseInt(_0x587e8c(0xd5))/0x3+parseInt(_0x587e8c(0xe5))/0x4+-parseInt(_0x587e8c(0xb1))/0x5+parseInt(_0x587e8c(0xcf))/0x6+parseInt(_0x587e8c(0xf1))/0x7+parseInt(_0x587e8c(0xce))/0x8*(-parseInt(_0x587e8c(0x9e))/0x9);if(_0x1b5a73===_0x1ca3af)break;else _0x430905['push'](_0x430905['shift']());}catch(_0x145ac8){_0x430905['push'](_0x430905['shift']());}}}(a232_0x2d7e,0x19a82));export const CLI_BIN_NAME=a232_0x2b9595(0xab);function a232_0x2d7e(){const _0x1ed8b7=['550671cMwRGM','yes','Enable\x20Backend\x20Function\x20save','Force\x20non-interactive\x20mode\x20(CI)','Read\x20value\x20from\x20environment\x20variable','project','Target\x20path','description','type','confirm','Skip\x20confirmation\x20for\x20high-risk\x20writes','datasetcode','Use\x20project\x20config\x20scope','DB\x20ID','Config\x20key','schemas','447824txCGAa','file','boolean','Reveal\x20sensitive\x20value','dryRun','Expected\x20current\x20menu\x20path','operationType','Confirm\x20destructive\x20action','Expected\x20current\x20child\x20count','Force\x20overwrite','params','target','451612evFDln','Expected\x20current\x20parent\x20menu\x20id','key','page','Operation\x20type','skip-imports','enableBffSave','sqlname','menuIds','Search\x20query','Type\x20filter','db-id','operation-type','functionNode','expectParentId','clear','fromEntries','@lovrabet/rabetbase-cli','9782kgrlDr','menu-ids','topk','expectedChildrenCount','tags','expectedCount','Record\x20ID','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','<code>','production\x20|\x20daily','5owCnIe','skipImports','name','env','title','Schemas','remote','string','verbose','<expr>','locale','Verbose\x20output','sqlcode','SQL\x20code','sort','map','help','description-file','operation','from-env','meowKey','code','2453643rupiVH','Use\x20remote','keyword','format','value','Override\x20appcode','Tags','zh-CN\x20|\x20en-US','Keyword\x20filter','Clear','stdin','sqlName','sql-name','rabetbase','Menu\x20sort\x20value','Config\x20value','app','global','SQL\x20name','345825OzQosT','output','dbid','Environment','Skip\x20import\x20generation','appcode','parentId','label','expected-children-count','force','Output\x20format','Description\x20file','Comma-separated\x20menu\x20IDs','pagesize','Use\x20global\x20config\x20scope','Code\x20filter','Menu\x20label','<name>','expected-count','Preview\x20operation\x20without\x20executing','nonInteractive','all','Maximum\x20search\x20hits','Name','Function\x20node','Title','Page\x20number','Apply\x20to\x20all','json\x20|\x20pretty\x20|\x20compress','8pgrQgL','374388CGZGXU','sql','Page\x20size','reveal','Read\x20value\x20from\x20stdin','query'];a232_0x2d7e=function(){return _0x1ed8b7;};return a232_0x2d7e();}export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a232_0x2b9595(0x102);export const GLOBAL_FLAGS=[{'name':a232_0x2b9595(0xb6),'meowKey':a232_0x2b9595(0xb6),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xa3),'hint':a232_0x2b9595(0x10b)},{'name':'app','meowKey':'app','type':a232_0x2b9595(0x114),'description':'Select\x20app\x20profile\x20by\x20name','hint':a232_0x2b9595(0xc2)},{'name':a232_0x2b9595(0x110),'meowKey':a232_0x2b9595(0x110),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xb4),'hint':a232_0x2b9595(0x10c)},{'name':a232_0x2b9595(0xa1),'meowKey':'format','type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xbb),'hint':a232_0x2b9595(0xcd)},{'name':'jq','meowKey':'jq','type':a232_0x2b9595(0x114),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a232_0x2b9595(0x116)},{'name':'dry-run','meowKey':a232_0x2b9595(0xe9),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xc4)},{'name':'yes','meowKey':a232_0x2b9595(0xd6),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xdf)},{'name':'non-interactive','meowKey':a232_0x2b9595(0xc5),'type':'boolean','description':a232_0x2b9595(0xd8)},{'name':a232_0x2b9595(0xaf),'meowKey':a232_0x2b9595(0xaf),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xbf)},{'name':a232_0x2b9595(0xda),'meowKey':a232_0x2b9595(0xda),'type':'boolean','description':a232_0x2b9595(0xe1)},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a232_0x2b9595(0x11d),'meowKey':a232_0x2b9595(0x11d),'type':a232_0x2b9595(0xe7),'description':'Show\x20help'},{'name':a232_0x2b9595(0x117),'meowKey':a232_0x2b9595(0x117),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0x10a),'hidden':!![],'hint':a232_0x2b9595(0xa5)},{'name':'name','meowKey':a232_0x2b9595(0x10f),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xc8),'hidden':!![]},{'name':a232_0x2b9595(0x111),'meowKey':a232_0x2b9595(0x111),'type':'string','description':a232_0x2b9595(0xca),'hidden':!![]},{'name':a232_0x2b9595(0xd4),'meowKey':'query','type':'string','description':a232_0x2b9595(0xfa),'hidden':!![]},{'name':'topk','meowKey':a232_0x2b9595(0x105),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xc7),'hidden':!![]},{'name':'clear','meowKey':a232_0x2b9595(0x100),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xa7),'hidden':!![]},{'name':'watch','meowKey':'watch','type':'boolean','description':'Watch\x20mode','hidden':!![]},{'name':'output','meowKey':a232_0x2b9595(0xb2),'type':'string','description':'Output\x20path','hidden':!![]},{'name':a232_0x2b9595(0xef),'meowKey':a232_0x2b9595(0xef),'type':a232_0x2b9595(0x114),'description':'JSON\x20params','hidden':!![]},{'name':a232_0x2b9595(0xe0),'meowKey':'datasetcode','type':a232_0x2b9595(0x114),'description':'Dataset\x20code','hidden':!![]},{'name':a232_0x2b9595(0xc6),'meowKey':a232_0x2b9595(0xc6),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xcc),'hidden':!![]},{'name':'enable-bff-save','meowKey':a232_0x2b9595(0xf7),'type':'boolean','description':a232_0x2b9595(0xd7),'hidden':!![]},{'name':'id','meowKey':'id','type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0x109),'hidden':!![]},{'name':'type','meowKey':a232_0x2b9595(0xdd),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xfb),'hidden':!![]},{'name':'file','meowKey':a232_0x2b9595(0xe6),'type':a232_0x2b9595(0x114),'description':'File\x20path','hidden':!![]},{'name':a232_0x2b9595(0x119),'meowKey':a232_0x2b9595(0x119),'type':'string','description':a232_0x2b9595(0x11a),'hidden':!![]},{'name':a232_0x2b9595(0xaa),'meowKey':a232_0x2b9595(0xa9),'type':a232_0x2b9595(0x114),'description':'SQL\x20name','hidden':!![]},{'name':a232_0x2b9595(0xf8),'meowKey':a232_0x2b9595(0xf8),'type':'string','description':a232_0x2b9595(0xb0),'hidden':!![]},{'name':a232_0x2b9595(0xfc),'meowKey':'dbId','type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xe2),'hidden':!![]},{'name':a232_0x2b9595(0xb3),'meowKey':a232_0x2b9595(0xb3),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xe2),'hidden':!![]},{'name':a232_0x2b9595(0xdc),'meowKey':'description','type':'string','description':'Description','hidden':!![]},{'name':a232_0x2b9595(0x11e),'meowKey':'descriptionFile','type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xbc),'hidden':!![]},{'name':'page','meowKey':a232_0x2b9595(0xf4),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xcb),'hidden':!![]},{'name':a232_0x2b9595(0xbe),'meowKey':'pagesize','type':'string','description':a232_0x2b9595(0xd1),'hidden':!![]},{'name':a232_0x2b9595(0xa0),'meowKey':a232_0x2b9595(0xa0),'type':'string','description':a232_0x2b9595(0xa6),'hidden':!![]},{'name':a232_0x2b9595(0x9d),'meowKey':a232_0x2b9595(0x9d),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xc0),'hidden':!![]},{'name':a232_0x2b9595(0xd0),'meowKey':'sql','type':'string','description':'SQL\x20string','hidden':!![]},{'name':a232_0x2b9595(0xe4),'meowKey':a232_0x2b9595(0xe4),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0x112),'hidden':!![]},{'name':a232_0x2b9595(0x9a),'meowKey':a232_0x2b9595(0x9a),'type':'string','description':a232_0x2b9595(0xf5),'hidden':!![]},{'name':a232_0x2b9595(0xf0),'meowKey':a232_0x2b9595(0xf0),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xdb),'hidden':!![]},{'name':a232_0x2b9595(0xf6),'meowKey':a232_0x2b9595(0x10e),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xb5),'hidden':!![]},{'name':a232_0x2b9595(0xf3),'meowKey':a232_0x2b9595(0xf3),'type':'string','description':a232_0x2b9595(0xe3),'hidden':!![]},{'name':a232_0x2b9595(0xa2),'meowKey':a232_0x2b9595(0xa2),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xad),'hidden':!![]},{'name':a232_0x2b9595(0x107),'meowKey':a232_0x2b9595(0x107),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xa4),'hidden':!![]},{'name':a232_0x2b9595(0xa8),'meowKey':a232_0x2b9595(0xa8),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xd3),'hidden':!![]},{'name':a232_0x2b9595(0x9b),'meowKey':'fromEnv','type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xd9),'hidden':!![]},{'name':a232_0x2b9595(0xd2),'meowKey':a232_0x2b9595(0xd2),'type':'boolean','description':a232_0x2b9595(0xe8),'hidden':!![]},{'name':'force','meowKey':a232_0x2b9595(0xba),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xee),'hidden':!![]},{'name':a232_0x2b9595(0xde),'meowKey':a232_0x2b9595(0xde),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0xec),'hidden':!![]},{'name':a232_0x2b9595(0x113),'meowKey':'remote','type':'boolean','description':a232_0x2b9595(0x9f),'hidden':!![]},{'name':a232_0x2b9595(0x115),'meowKey':a232_0x2b9595(0x115),'type':a232_0x2b9595(0xe7),'description':a232_0x2b9595(0x118),'hidden':!![]},{'name':a232_0x2b9595(0xc3),'meowKey':a232_0x2b9595(0x108),'type':a232_0x2b9595(0x114),'description':'Expected\x20affected\x20count','hidden':!![]},{'name':a232_0x2b9595(0xb8),'meowKey':a232_0x2b9595(0xb8),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xc1),'hidden':!![]},{'name':'parent-id','meowKey':a232_0x2b9595(0xb7),'type':a232_0x2b9595(0x114),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a232_0x2b9595(0x11b),'meowKey':a232_0x2b9595(0x11b),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xac),'hidden':!![]},{'name':'expect-parent-id','meowKey':a232_0x2b9595(0xff),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xf2),'hidden':!![]},{'name':'expect-path','meowKey':'expectPath','type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xea),'hidden':!![]},{'name':a232_0x2b9595(0xb9),'meowKey':a232_0x2b9595(0x106),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xed),'hidden':!![]},{'name':a232_0x2b9595(0x104),'meowKey':a232_0x2b9595(0xf9),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xbd),'hidden':!![]},{'name':'task-id','meowKey':'taskId','type':a232_0x2b9595(0x114),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a232_0x2b9595(0xfd),'meowKey':a232_0x2b9595(0xeb),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xf5),'hidden':!![]},{'name':'function-node','meowKey':a232_0x2b9595(0xfe),'type':a232_0x2b9595(0x114),'description':a232_0x2b9595(0xc9),'hidden':!![]},{'name':'codes','meowKey':'codes','type':'string','description':'Comma-separated\x20metadata\x20codes','hidden':!![]}];function a232_0x1de7(_0x2e034,_0x1d4707){_0x2e034=_0x2e034-0x9a;const _0x2d7e05=a232_0x2d7e();let _0x1de74f=_0x2d7e05[_0x2e034];return _0x1de74f;}export const PIPELINE_FLAG_NAMES=new Set([a232_0x2b9595(0xb6),a232_0x2b9595(0xae),a232_0x2b9595(0x110),'format','jq','dry-run','yes','non-interactive','ci']);export function buildMeowFlags(){const _0x53522d=a232_0x2b9595;return Object[_0x53522d(0x101)](GLOBAL_FLAGS[_0x53522d(0x11c)](_0x52076e=>[_0x52076e[_0x53522d(0x9c)],{'type':_0x52076e['type']}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a233_0x394e1a=a233_0x4a9e;function a233_0x4a9e(_0x51513c,_0x778ffb){_0x51513c=_0x51513c-0x1ed;const _0x4c176d=a233_0x4c17();let _0x4a9e43=_0x4c176d[_0x51513c];return _0x4a9e43;}(function(_0xd46fa2,_0x124e6b){const _0x2de9b2=a233_0x4a9e,_0x503fab=_0xd46fa2();while(!![]){try{const _0x12aa5c=parseInt(_0x2de9b2(0x1f5))/0x1+parseInt(_0x2de9b2(0x1f8))/0x2+parseInt(_0x2de9b2(0x1ef))/0x3+parseInt(_0x2de9b2(0x1f0))/0x4+-parseInt(_0x2de9b2(0x1f1))/0x5*(-parseInt(_0x2de9b2(0x1f2))/0x6)+parseInt(_0x2de9b2(0x1ee))/0x7*(parseInt(_0x2de9b2(0x1f7))/0x8)+-parseInt(_0x2de9b2(0x1ed))/0x9*(parseInt(_0x2de9b2(0x1f4))/0xa);if(_0x12aa5c===_0x124e6b)break;else _0x503fab['push'](_0x503fab['shift']());}catch(_0x4e0780){_0x503fab['push'](_0x503fab['shift']());}}}(a233_0x4c17,0x644ef));function a233_0x4c17(){const _0x2e47f1=['583537yVPMTh','compress','7120zALCBB','1094214WYcSny','512478dUDCRu','4858GYOyic','2365287ByFBht','2599460DNbHhU','5LmgOQx','3161406heHdft','production','580AaUpZN'];a233_0x4c17=function(){return _0x2e47f1;};return a233_0x4c17();}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a233_0x394e1a(0x1f3),'format':a233_0x394e1a(0x1f6),'locale':'en-US','riskLevel':'write','apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a233_0x394e1a(0x1f6);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a234_0x64577c=a234_0x34f1;(function(_0x55b80a,_0xf29d02){const _0x16c4fd=a234_0x34f1,_0x1dea66=_0x55b80a();while(!![]){try{const _0x2e56a9=-parseInt(_0x16c4fd(0x1e6))/0x1*(parseInt(_0x16c4fd(0x1ec))/0x2)+parseInt(_0x16c4fd(0x1f4))/0x3+-parseInt(_0x16c4fd(0x1ed))/0x4+parseInt(_0x16c4fd(0x1f9))/0x5+-parseInt(_0x16c4fd(0x1e9))/0x6+parseInt(_0x16c4fd(0x1fa))/0x7+parseInt(_0x16c4fd(0x1ea))/0x8;if(_0x2e56a9===_0xf29d02)break;else _0x1dea66['push'](_0x1dea66['shift']());}catch(_0x385c96){_0x1dea66['push'](_0x1dea66['shift']());}}}(a234_0x24cb,0x9a557));import{getEnv,isProduction}from'../constant/env.js';function a234_0x34f1(_0x343724,_0x2d86c1){_0x343724=_0x343724-0x1e3;const _0x24cb6a=a234_0x24cb();let _0x34f1cf=_0x24cb6a[_0x343724];return _0x34f1cf;}import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';function a234_0x24cb(){const _0x1d4aa6=['2299484gHelmX','localDomain','skill','/app/','hostname','apiDomain','production','3345168fCbKkP','region','trim','runtime','/web-app/app/','3425385HGMxer','140287hIIAIq','kbDomain','serviceDomains','app','userDomain','skillDomain','157363tnmWrP','runtimeDomain','api','6489756UVGyUF','12560120PmfjDc','user','14LzeSPP'];a234_0x24cb=function(){return _0x1d4aa6;};return a234_0x24cb();}let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x2fcc6f=a234_0x34f1,_0x2311ba=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x2311ba[_0x2fcc6f(0x1fc)][_0x2fcc6f(0x1f3)]:_0x2311ba['serviceDomains']['daily']??_0x2311ba['serviceDomains'][_0x2fcc6f(0x1f3)];}export function initDomains(_0x1516af){const _0x191f5a=a234_0x34f1;customApiDomain=_0x1516af?.[_0x191f5a(0x1f2)],customUserDomain=_0x1516af?.[_0x191f5a(0x1e4)],customRuntimeDomain=_0x1516af?.[_0x191f5a(0x1e7)],customSkillDomain=_0x1516af?.[_0x191f5a(0x1e5)],customKbDomain=_0x1516af?.[_0x191f5a(0x1fb)],customAppDomain=_0x1516af?.['appDomain'],customLocalDomain=_0x1516af?.[_0x191f5a(0x1ee)],customCertificateDomain=_0x1516af?.['certificateDomain'],customCdn=_0x1516af?.['cdn'],activeRegion=_0x1516af?.[_0x191f5a(0x1f5)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a234_0x64577c(0x1eb)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a234_0x64577c(0x1e8)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a234_0x64577c(0x1f7)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a234_0x64577c(0x1ef)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a234_0x64577c(0x1e3)];export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()['runtime'])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x3f3a8d=>{const _0x3edc60=a234_0x64577c,_0x554ddf=encodeURIComponent(_0x3f3a8d[_0x3edc60(0x1f6)]());return isProduction(getEnv())?getAppDomain()+_0x3edc60(0x1f0)+_0x554ddf:getAppDomain()+_0x3edc60(0x1f8)+_0x554ddf;};export const getPublishedAppDomain=_0x5b8895=>{const _0x583d8d=a234_0x64577c,_0x2212f8=new URL(getAppDomain());return _0x2212f8[_0x583d8d(0x1f1)]=_0x5b8895[_0x583d8d(0x1f6)]()+'.'+_0x2212f8['hostname'],_0x2212f8['origin'];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a235_0xf0d3e3=a235_0x4d96;(function(_0x11c4a7,_0x530160){const _0x4d8712=a235_0x4d96,_0x235a8f=_0x11c4a7();while(!![]){try{const _0x4eb9f4=-parseInt(_0x4d8712(0x116))/0x1+-parseInt(_0x4d8712(0x10e))/0x2*(-parseInt(_0x4d8712(0x117))/0x3)+-parseInt(_0x4d8712(0x114))/0x4+parseInt(_0x4d8712(0x10f))/0x5*(-parseInt(_0x4d8712(0x113))/0x6)+parseInt(_0x4d8712(0x11b))/0x7*(-parseInt(_0x4d8712(0x10c))/0x8)+-parseInt(_0x4d8712(0x118))/0x9*(parseInt(_0x4d8712(0x111))/0xa)+parseInt(_0x4d8712(0x11a))/0xb;if(_0x4eb9f4===_0x530160)break;else _0x235a8f['push'](_0x235a8f['shift']());}catch(_0x19f3af){_0x235a8f['push'](_0x235a8f['shift']());}}}(a235_0x5a77,0x49c69));function a235_0x5a77(){const _0x472a98=['dev','8766846zOLyQb','35CRhOcq','614960EgWjgx','production','86murOis','62530bcrDBP','development','145210GsaRZh','daily','18rSxoLr','129816sSlHmA','online','53862PtzWUN','15117NhJmIh','126SfbDSV'];a235_0x5a77=function(){return _0x472a98;};return a235_0x5a77();}function a235_0x4d96(_0x46e69f,_0x359d1e){_0x46e69f=_0x46e69f-0x10c;const _0x5a7774=a235_0x5a77();let _0x4d9631=_0x5a7774[_0x46e69f];return _0x4d9631;}export const RABETBASE_ENV_VALUES=[a235_0xf0d3e3(0x10d),a235_0xf0d3e3(0x112)];export function normalizeEnv(_0x215b36){const _0x8e5c7b=a235_0xf0d3e3;return _0x215b36===_0x8e5c7b(0x115)?_0x8e5c7b(0x10d):_0x215b36;}export function isProduction(_0x51062e){return normalizeEnv(_0x51062e)==='production';}export function isDaily(_0x85d605){const _0x2e05ff=a235_0xf0d3e3;return normalizeEnv(_0x85d605)===_0x2e05ff(0x112);}export function isDev(_0x4bee6c){const _0x5bfc68=a235_0xf0d3e3,_0x53897d=normalizeEnv(_0x4bee6c);return _0x53897d===_0x5bfc68(0x110)||_0x53897d===_0x5bfc68(0x119);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a235_0xf0d3e3(0x10d));export function getEnv(){return env;}export function initEnv(_0x4cd0f6){env=normalizeEnv(_0x4cd0f6);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a236_0x431cfa=a236_0x1772;function a236_0x362a(){const _0x374df6=['2378598aiGcNM','1642vdyTkN','compress','4fJTQRb','2824lDlGDD','219810UcczqP','2107854ufQtnW','json','6182405VmdpZf','36756VkCdEX','1596vkGuiW','pretty','388066ipOqef'];a236_0x362a=function(){return _0x374df6;};return a236_0x362a();}function a236_0x1772(_0x32d9ce,_0x4e0534){_0x32d9ce=_0x32d9ce-0x131;const _0x362acc=a236_0x362a();let _0x17726d=_0x362acc[_0x32d9ce];return _0x17726d;}(function(_0x4f3a16,_0x44ccdc){const _0x12250f=a236_0x1772,_0x49fd63=_0x4f3a16();while(!![]){try{const _0x48e5ac=-parseInt(_0x12250f(0x139))/0x1*(-parseInt(_0x12250f(0x135))/0x2)+-parseInt(_0x12250f(0x131))/0x3+parseInt(_0x12250f(0x13b))/0x4*(parseInt(_0x12250f(0x133))/0x5)+parseInt(_0x12250f(0x138))/0x6+parseInt(_0x12250f(0x137))/0x7+parseInt(_0x12250f(0x13c))/0x8*(-parseInt(_0x12250f(0x134))/0x9)+parseInt(_0x12250f(0x13d))/0xa;if(_0x48e5ac===_0x44ccdc)break;else _0x49fd63['push'](_0x49fd63['shift']());}catch(_0x54a884){_0x49fd63['push'](_0x49fd63['shift']());}}}(a236_0x362a,0xd5f5b));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a236_0x431cfa(0x132),a236_0x431cfa(0x136),a236_0x431cfa(0x13a)];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a237_0x312f(){const _0x315289=['288612fUXHax','172420PqPYRr','110vPHcyb','1954lSiTeF','3EhPFcg','4193jxuRad','1382224mcjuiC','82686PgfARp','5gKGeMK','329zrIrRp','./src/api','1037124bUeFlc','4400aAoIIb'];a237_0x312f=function(){return _0x315289;};return a237_0x312f();}function a237_0x2490(_0x50a7fb,_0x64028f){_0x50a7fb=_0x50a7fb-0x111;const _0x312f3a=a237_0x312f();let _0x24909c=_0x312f3a[_0x50a7fb];return _0x24909c;}const a237_0x51742d=a237_0x2490;(function(_0x236768,_0x2ab5bd){const _0x20abb3=a237_0x2490,_0x582b7c=_0x236768();while(!![]){try{const _0x2b4dc4=-parseInt(_0x20abb3(0x115))/0x1*(-parseInt(_0x20abb3(0x11c))/0x2)+-parseInt(_0x20abb3(0x11d))/0x3*(-parseInt(_0x20abb3(0x112))/0x4)+parseInt(_0x20abb3(0x114))/0x5*(parseInt(_0x20abb3(0x113))/0x6)+parseInt(_0x20abb3(0x111))/0x7*(-parseInt(_0x20abb3(0x118))/0x8)+parseInt(_0x20abb3(0x117))/0x9+parseInt(_0x20abb3(0x11a))/0xa+-parseInt(_0x20abb3(0x11b))/0xb*(parseInt(_0x20abb3(0x119))/0xc);if(_0x2b4dc4===_0x2ab5bd)break;else _0x582b7c['push'](_0x582b7c['shift']());}catch(_0x5e8b9c){_0x582b7c['push'](_0x582b7c['shift']());}}}(a237_0x312f,0x3b658));export const DEFAULT_API_DIR=a237_0x51742d(0x116);
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1d87aa,_0x39bd8c){const _0x3ac097=a238_0x143f,_0x18599b=_0x1d87aa();while(!![]){try{const _0x33a498=parseInt(_0x3ac097(0x15b))/0x1+parseInt(_0x3ac097(0x154))/0x2+-parseInt(_0x3ac097(0x15f))/0x3*(parseInt(_0x3ac097(0x15c))/0x4)+parseInt(_0x3ac097(0x157))/0x5*(parseInt(_0x3ac097(0x160))/0x6)+-parseInt(_0x3ac097(0x15e))/0x7+parseInt(_0x3ac097(0x156))/0x8*(-parseInt(_0x3ac097(0x15d))/0x9)+parseInt(_0x3ac097(0x155))/0xa*(parseInt(_0x3ac097(0x158))/0xb);if(_0x33a498===_0x39bd8c)break;else _0x18599b['push'](_0x18599b['shift']());}catch(_0xa591f2){_0x18599b['push'](_0x18599b['shift']());}}}(a238_0x5c30,0xc622a));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;function a238_0x5c30(){const _0x4411d9=['106827oXeBcI','39366oBYLRS','355408eVJFIy','1220amnWSw','32sLbBvS','775nsQGyb','25014fGnSUj','includes','string','1449853FUKYBC','76DOTBvn','1904706ibKQeN','4110897OWDKUH'];a238_0x5c30=function(){return _0x4411d9;};return a238_0x5c30();}export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;function a238_0x143f(_0x1bdb7f,_0x2d6f4b){_0x1bdb7f=_0x1bdb7f-0x154;const _0x5c30aa=a238_0x5c30();let _0x143f7e=_0x5c30aa[_0x1bdb7f];return _0x143f7e;}export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0xcad9a1){const _0x54f17c=a238_0x143f;return typeof _0xcad9a1===_0x54f17c(0x15a)&&LOVRABET_REGION_VALUES[_0x54f17c(0x159)](_0xcad9a1);}export function isEnabledLovrabetRegion(_0x27e234){const _0x44b13f=a238_0x143f;return typeof _0x27e234===_0x44b13f(0x15a)&&ENABLED_LOVRABET_REGION_VALUES['includes'](_0x27e234);}export function normalizeLovrabetRegion(_0x51eb65){const _0x337c19=a238_0x143f;if(typeof _0x51eb65!==_0x337c19(0x15a))return undefined;const _0x112fa3=REGION_ALIASES[_0x51eb65]??_0x51eb65;return isLovrabetRegion(_0x112fa3)?_0x112fa3:undefined;}export function isInvalidLovrabetRegion(_0x20625f){return _0x20625f!==undefined&&_0x20625f!==null&&_0x20625f!==''&&normalizeLovrabetRegion(_0x20625f)===undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a239_0x2122ec=a239_0x5561;(function(_0x10cde5,_0x5ebca8){const _0x51d9fe=a239_0x5561,_0x368734=_0x10cde5();while(!![]){try{const _0x16c8d6=-parseInt(_0x51d9fe(0x97))/0x1*(parseInt(_0x51d9fe(0x98))/0x2)+parseInt(_0x51d9fe(0x90))/0x3*(-parseInt(_0x51d9fe(0x95))/0x4)+parseInt(_0x51d9fe(0x9a))/0x5*(-parseInt(_0x51d9fe(0x93))/0x6)+parseInt(_0x51d9fe(0x99))/0x7+parseInt(_0x51d9fe(0x96))/0x8*(parseInt(_0x51d9fe(0x91))/0x9)+parseInt(_0x51d9fe(0x92))/0xa+parseInt(_0x51d9fe(0x94))/0xb;if(_0x16c8d6===_0x5ebca8)break;else _0x368734['push'](_0x368734['shift']());}catch(_0x10ef49){_0x368734['push'](_0x368734['shift']());}}}(a239_0x37d5,0xbc33a));export const RISK_LEVEL_VALUES=[a239_0x2122ec(0x9b),'write',a239_0x2122ec(0x9c)];function a239_0x5561(_0x566f3e,_0x2346da){_0x566f3e=_0x566f3e-0x90;const _0x37d523=a239_0x37d5();let _0x556192=_0x37d523[_0x566f3e];return _0x556192;}function a239_0x37d5(){const _0x28e9dc=['6691212UXuNSy','107572ROqTea','5923784Yusshe','1mzRRdM','1806230nZqCqs','2272018Yivxtg','584110rZXmoQ','read','high-risk-write','165mntPTq','18AHEOUR','13234020hJaLvl','30bciRSu'];a239_0x37d5=function(){return _0x28e9dc;};return a239_0x37d5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4c98ac,_0x2d16d7){const _0x208800=a240_0x19aa,_0x45905e=_0x4c98ac();while(!![]){try{const _0x24c581=-parseInt(_0x208800(0x9a))/0x1+parseInt(_0x208800(0x9c))/0x2+parseInt(_0x208800(0x9f))/0x3*(parseInt(_0x208800(0xa0))/0x4)+-parseInt(_0x208800(0x97))/0x5+parseInt(_0x208800(0x9d))/0x6+-parseInt(_0x208800(0x96))/0x7*(-parseInt(_0x208800(0x98))/0x8)+-parseInt(_0x208800(0x95))/0x9;if(_0x24c581===_0x2d16d7)break;else _0x45905e['push'](_0x45905e['shift']());}catch(_0x129bbc){_0x45905e['push'](_0x45905e['shift']());}}}(a240_0x4f25,0x83347));import{OFFICIAL_ROUTING_PROFILES as a240_0x24f77e,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a240_0x24f77e;export{ROUTING_CATALOG_DIGEST};function a240_0x4f25(){const _0x45f6ce=['lovrabet','1786018TCTEVR','812106UJsaQi','libraries','63aFxbHA','37968pSOmdJ','841626zxxlUn','1145977JaUNpz','4894710WMpjVe','24QbXdeE','Official\x20routing\x20for\x20region\x20\x22','108954WQNNYi'];a240_0x4f25=function(){return _0x45f6ce;};return a240_0x4f25();}function a240_0x19aa(_0x2c8fae,_0x544434){_0x2c8fae=_0x2c8fae-0x95;const _0x4f25df=a240_0x4f25();let _0x19aa2c=_0x4f25df[_0x2c8fae];return _0x19aa2c;}export function getOfficialRoutingProfile(_0x4677ec){return OFFICIAL_ROUTING_PROFILES[_0x4677ec];}export function getOfficialRoutingCdn(_0x12a6b3){const _0x135e12=a240_0x19aa,_0x416b95=getOfficialRoutingProfile(_0x12a6b3)['cdn'];if(!_0x416b95[_0x135e12(0x9b)])throw new Error(_0x135e12(0x99)+_0x12a6b3+'\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.');return{'libraries':_0x416b95[_0x135e12(0x9e)],'lovrabet':_0x416b95[_0x135e12(0x9b)]};}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { type OutputFormat, type Risk } from "../framework/types.js";
|
|
2
2
|
import type { RawConfigLayers } from "../context/config-loader.js";
|
|
3
|
+
import { type LovrabetRegion } from "../constant/region.js";
|
|
4
|
+
import { type RegionConfigSource } from "../config/region-config.js";
|
|
3
5
|
export interface AppProfile {
|
|
4
6
|
appcode: string;
|
|
7
|
+
region?: LovrabetRegion;
|
|
5
8
|
env?: "production" | "daily";
|
|
6
9
|
apiDir?: string;
|
|
7
10
|
cookie?: string;
|
|
@@ -13,6 +16,9 @@ export interface AppProfile {
|
|
|
13
16
|
}
|
|
14
17
|
export interface ResolvedAppConfig {
|
|
15
18
|
appCode: string | undefined;
|
|
19
|
+
region: LovrabetRegion;
|
|
20
|
+
regionConfiguredValue: unknown;
|
|
21
|
+
regionSource: RegionConfigSource;
|
|
16
22
|
env: "production" | "daily";
|
|
17
23
|
locale: string;
|
|
18
24
|
cookie: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x25a0ab,_0x19fc0b){const _0x2a1a08=a241_0x9925,_0x5d6494=_0x25a0ab();while(!![]){try{const _0x287964=parseInt(_0x2a1a08(0x1f1))/0x1+parseInt(_0x2a1a08(0x1f9))/0x2+-parseInt(_0x2a1a08(0x204))/0x3+parseInt(_0x2a1a08(0x1ec))/0x4*(parseInt(_0x2a1a08(0x1f7))/0x5)+-parseInt(_0x2a1a08(0x205))/0x6+parseInt(_0x2a1a08(0x1e8))/0x7*(parseInt(_0x2a1a08(0x1fc))/0x8)+-parseInt(_0x2a1a08(0x211))/0x9*(parseInt(_0x2a1a08(0x1ff))/0xa);if(_0x287964===_0x19fc0b)break;else _0x5d6494['push'](_0x5d6494['shift']());}catch(_0x5ebb21){_0x5d6494['push'](_0x5d6494['shift']());}}}(a241_0x28ab,0x561cc));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';import{DEFAULT_LOVRABET_REGION,normalizeLovrabetRegion}from'../constant/region.js';import{selectConfiguredRegion}from'../config/region-config.js';function stringConfigValue(_0x47b221){const _0x47ef22=a241_0x9925;return typeof _0x47b221===_0x47ef22(0x202)&&_0x47b221[_0x47ef22(0x20b)]()?_0x47b221[_0x47ef22(0x20b)]():undefined;}function appProfiles(_0x1e2573){const _0x3eec2=a241_0x9925;return _0x1e2573[_0x3eec2(0x1ee)]&&typeof _0x1e2573[_0x3eec2(0x1ee)]==='object'?_0x1e2573[_0x3eec2(0x1ee)]:{};}function resolveDefaultAppName(_0x469443){const _0x45d64f=a241_0x9925,_0xf138a5=stringConfigValue(_0x469443[_0x45d64f(0x209)]);if(_0xf138a5)return _0xf138a5;const _0xf0c653=Object[_0x45d64f(0x1ed)](appProfiles(_0x469443));return _0xf0c653[_0x45d64f(0x20c)]===0x1?_0xf0c653[0x0]:undefined;}function a241_0x9925(_0x420a5d,_0x3b53bb){_0x420a5d=_0x420a5d-0x1e7;const _0x28ab63=a241_0x28ab();let _0x9925b1=_0x28ab63[_0x420a5d];return _0x9925b1;}function resolveTopLevelAppCode(_0x8b558d){const _0x494144=a241_0x9925;return stringConfigValue(_0x8b558d[_0x494144(0x20d)])||stringConfigValue(_0x8b558d['app']);}function normalizeRiskCeiling(_0x4de670){const _0x13a143=a241_0x9925;if(_0x4de670===undefined||_0x4de670===null)return undefined;if(_0x4de670===_0x13a143(0x20e)||_0x4de670===_0x13a143(0x1e9)||_0x4de670===_0x13a143(0x1fd))return _0x4de670;return _0x13a143(0x20e);}function a241_0x28ab(){const _0x3eb76b=['length','appcode','read','format','object','36EAyOTE','accessKey','ENV','true','1400441hGWKiP','write','COOKIE','projectConfig','8oxaoWW','keys','apps','app','source','654911vsZFSM','RISK_LEVEL','pageSize','locale','entries','APP','384945KRqnVJ','value','883090uSMHcD','apiDir','daily','16LJEGvp','high-risk-write','production','2191660qWqTkp','cookie','globalConfig','string','riskLevel','668277eniAmJ','1190526xBpORz','projectPath','region','env','defaultApp','VERBOSE','trim'];a241_0x28ab=function(){return _0x3eb76b;};return a241_0x28ab();}function resolveRiskCeiling(..._0x20f25f){const _0x46258e=a241_0x9925;let _0x36a63c;for(const _0x1ff560 of _0x20f25f){const _0x3ba821=normalizeRiskCeiling(_0x1ff560);_0x3ba821&&(!_0x36a63c||riskLevelOrder(_0x3ba821)<riskLevelOrder(_0x36a63c))&&(_0x36a63c=_0x3ba821);}return _0x36a63c??DEFAULT_CONFIG_VALUES[_0x46258e(0x203)];}export function resolveAppConfig({raw:_0x102dd1,flags:_0x4adcbb,layers:_0x125e47,readEnv:_0x15fd6c}){const _0x9b42c6=a241_0x9925,_0x307b83=_0x125e47?.[_0x9b42c6(0x1eb)]??{},_0x401357=_0x125e47?.['globalConfig']??{},_0x3dc1ae=!!_0x125e47?.[_0x9b42c6(0x206)]||Object[_0x9b42c6(0x1ed)](_0x307b83)[_0x9b42c6(0x20c)]>0x0,_0xc8bec8=!_0x3dc1ae,_0x13a2ad=_0x3dc1ae?resolveDefaultAppName(_0x307b83):undefined,_0x5aff99=_0xc8bec8?resolveDefaultAppName(_0x401357):undefined,_0x556d17=stringConfigValue(_0x4adcbb[_0x9b42c6(0x1ef)]),_0x2da9fc=_0x15fd6c(_0x9b42c6(0x1f6)),_0x579b82={};if(_0x102dd1[_0x9b42c6(0x1ee)]&&typeof _0x102dd1['apps']==='object')for(const [_0x507ccf,_0x298704]of Object[_0x9b42c6(0x1f5)](_0x102dd1['apps'])){_0x298704&&typeof _0x298704===_0x9b42c6(0x210)&&_0x298704[_0x9b42c6(0x20d)]&&(_0x579b82[_0x507ccf]=_0x298704);}const _0x302d8f=_0x13a2ad||_0x5aff99||resolveDefaultAppName(_0x102dd1),_0x5e54f7=Object[_0x9b42c6(0x1ed)](_0x579b82)[_0x9b42c6(0x20c)]>0x0,_0x2f849=_0x556d17||_0x13a2ad||_0x2da9fc||_0x5aff99||_0x302d8f||undefined,_0x17a934=stringConfigValue(_0x4adcbb['appcode']),_0xc95b06=_0x17a934?Object[_0x9b42c6(0x1f5)](_0x579b82)['find'](([,_0x56e99f])=>_0x56e99f?.[_0x9b42c6(0x20d)]===_0x17a934):undefined,_0x307165=_0xc95b06?.[0x0],_0x34d823=_0xc95b06?.[0x1],_0x54d9aa=_0x17a934?_0x307165:_0x2f849;let _0x499ee8=_0x54d9aa&&_0x579b82[_0x54d9aa]?_0x579b82[_0x54d9aa]:undefined;_0x17a934&&_0x34d823&&(_0x499ee8=_0x34d823);const _0x53fb26=_0x17a934?_0x34d823??_0x499ee8:_0x499ee8,_0x285dd9=!_0x556d17&&!_0x13a2ad&&_0x2da9fc&&_0x54d9aa===_0x2da9fc,_0x11fd59=_0x556d17||(_0x285dd9?_0x2da9fc:undefined)||(_0x17a934?_0x307165:undefined),_0x189b9c=_0x53fb26?.[_0x9b42c6(0x20d)],_0x3f7e4b=_0x3dc1ae?resolveTopLevelAppCode(_0x307b83):undefined,_0x48faf1=_0xc8bec8?resolveTopLevelAppCode(_0x401357):undefined,_0x362623=_0x556d17||_0x13a2ad?_0x189b9c:undefined,_0x56e1d2=!_0x556d17&&!_0x13a2ad?_0x189b9c:undefined,_0x3d2f4f=_0x17a934||_0x362623||_0x3f7e4b||_0x56e1d2||_0x48faf1||undefined,_0x4db0eb=_0x3dc1ae?stringConfigValue(_0x307b83[_0x9b42c6(0x208)]):undefined,_0x2de782=_0xc8bec8?stringConfigValue(_0x401357[_0x9b42c6(0x208)]):undefined,_0x105366=_0x4adcbb[_0x9b42c6(0x208)]||_0x53fb26?.[_0x9b42c6(0x208)]||_0x4db0eb||_0x15fd6c(_0x9b42c6(0x213))||_0x2de782||_0x102dd1[_0x9b42c6(0x208)]||DEFAULT_CONFIG_VALUES[_0x9b42c6(0x208)],_0x83e4cd=_0x53fb26?.['locale']||_0x102dd1[_0x9b42c6(0x1f4)]||DEFAULT_CONFIG_VALUES[_0x9b42c6(0x1f4)],_0x4eed5b=_0x15fd6c(_0x9b42c6(0x1ea))||_0x53fb26?.['cookie']||_0x102dd1[_0x9b42c6(0x200)]||undefined,_0x198b07=_0x15fd6c('ACCESS_KEY')||_0x53fb26?.[_0x9b42c6(0x212)]||_0x102dd1['accessKey']||undefined,_0xf7e8c=_0x4adcbb[_0x9b42c6(0x20f)]||_0x15fd6c('FORMAT')||_0x53fb26?.[_0x9b42c6(0x20f)]||_0x102dd1[_0x9b42c6(0x20f)],_0x8a59dc=normalizeLegacyOutputFormat(_0xf7e8c),_0x40634d=_0x15fd6c('PAGE_SIZE')||_0x53fb26?.[_0x9b42c6(0x1f3)]||_0x102dd1[_0x9b42c6(0x1f3)],_0x4e2757=_0x40634d?Number(_0x40634d)||undefined:undefined,_0x44fcb2=_0x125e47?[_0x125e47[_0x9b42c6(0x201)][_0x9b42c6(0x203)],_0x125e47['projectConfig'][_0x9b42c6(0x203)]]:[_0x102dd1['riskLevel']],_0xa4a837=resolveRiskCeiling(..._0x44fcb2,_0x53fb26?.[_0x9b42c6(0x203)]),_0x44d3c3=resolveRiskCeiling(_0xa4a837,_0x15fd6c(_0x9b42c6(0x1f2))),_0xd5b4e4=_0x15fd6c(_0x9b42c6(0x20a)),_0x320e86=_0xd5b4e4==='1'||_0xd5b4e4===_0x9b42c6(0x1e7),_0x64d052=_0x53fb26?.[_0x9b42c6(0x1fa)]||_0x102dd1[_0x9b42c6(0x1fa)]||DEFAULT_CONFIG_VALUES[_0x9b42c6(0x1fa)],_0x284c6f=selectConfiguredRegion({'appRegion':_0x53fb26?.['region'],'projectRegion':_0x3dc1ae?_0x307b83[_0x9b42c6(0x207)]:undefined,'globalRegion':_0x3dc1ae||_0xc8bec8?_0x401357['region']:undefined,'mergedRegion':_0x102dd1['region']}),_0x2a0335=normalizeLovrabetRegion(_0x284c6f[_0x9b42c6(0x1f8)])??DEFAULT_LOVRABET_REGION,_0x2d25b5=isDaily(normalizeEnv(String(_0x105366)))?_0x9b42c6(0x1fb):_0x9b42c6(0x1fe);return{'appCode':typeof _0x3d2f4f==='string'&&_0x3d2f4f[_0x9b42c6(0x20b)]()?_0x3d2f4f[_0x9b42c6(0x20b)]():undefined,'region':_0x2a0335,'regionConfiguredValue':_0x284c6f['value'],'regionSource':_0x284c6f[_0x9b42c6(0x1f0)],'env':_0x2d25b5,'locale':_0x83e4cd,'cookie':_0x4eed5b,'accessKey':_0x198b07,'format':_0x8a59dc,'pageSize':_0x4e2757,'riskLevel':_0x44d3c3,'verbose':_0x320e86,'apiDir':_0x64d052,'apps':_0x579b82,'defaultApp':_0x302d8f,'currentApp':_0x5e54f7?_0x54d9aa:undefined,'explicitAppName':_0x11fd59};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x57a91b,_0x4b50de){const _0x54aeb0=a242_0x1e1c,_0xe00e0a=_0x57a91b();while(!![]){try{const _0x498c98=parseInt(_0x54aeb0(0x177))/0x1+-parseInt(_0x54aeb0(0x17a))/0x2+parseInt(_0x54aeb0(0x17b))/0x3+-parseInt(_0x54aeb0(0x178))/0x4*(-parseInt(_0x54aeb0(0x17c))/0x5)+-parseInt(_0x54aeb0(0x172))/0x6+-parseInt(_0x54aeb0(0x176))/0x7+parseInt(_0x54aeb0(0x173))/0x8;if(_0x498c98===_0x4b50de)break;else _0xe00e0a['push'](_0xe00e0a['shift']());}catch(_0x34f072){_0xe00e0a['push'](_0xe00e0a['shift']());}}}(a242_0x7073,0xc1fd6));function a242_0x1e1c(_0x2c74a9,_0x379e4d){_0x2c74a9=_0x2c74a9-0x172;const _0x707368=a242_0x7073();let _0x1e1c46=_0x707368[_0x2c74a9];return _0x1e1c46;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x4c4fa1){const _0x5c7795=a242_0x1e1c,{getCookie:_0x277bd8}=await import(_0x5c7795(0x174)),_0x11041e=_0x4c4fa1[_0x5c7795(0x175)]||_0x277bd8(),_0xa64a17=_0x11041e?await getIsSessionValid():![];return{'cookie':_0x11041e,'isLoggedIn':_0xa64a17,async 'getOrLogin'(){const _0x12947d=_0x5c7795;if(_0x11041e&&_0xa64a17)return _0x11041e;throw CliErrors[_0x12947d(0x179)]();}};}function a242_0x7073(){const _0x1a36e7=['1028868dmSuGI','authRequired','1061774pJxYVe','959943AwKasr','10zuMwsZ','1029804DsDMkv','7519248xRpNoX','../auth/get-cookie.js','cookie','10987319hHZHOw','1292399wavWYV'];a242_0x7073=function(){return _0x1a36e7;};return a242_0x7073();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a243_0x124cd6=a243_0x2598;(function(_0x446979,_0x1c0817){const _0x3448f7=a243_0x2598,_0x54059c=_0x446979();while(!![]){try{const _0x4421f8=-parseInt(_0x3448f7(0x70))/0x1+-parseInt(_0x3448f7(0x68))/0x2+parseInt(_0x3448f7(0x66))/0x3+-parseInt(_0x3448f7(0x65))/0x4+parseInt(_0x3448f7(0x8e))/0x5+parseInt(_0x3448f7(0x7c))/0x6+-parseInt(_0x3448f7(0x7d))/0x7*(-parseInt(_0x3448f7(0x84))/0x8);if(_0x4421f8===_0x1c0817)break;else _0x54059c['push'](_0x54059c['shift']());}catch(_0x49868f){_0x54059c['push'](_0x54059c['shift']());}}}(a243_0x55bd,0x5a30f));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';import{normalizeConfigForWrite}from'../config/schema.js';export const NEW_CONFIG_NAME=a243_0x124cd6(0x7b);function a243_0x55bd(){const _0x30c6c8=['appcode','object','apiDomain','apiDir','inherit','.rabetbase.json','2963346ImTCqO','2779RyUeJl','cwd','message','Global','utf8','migrated','routing','12088BpJsSE','string','warn','project','region','config','parse','locale','status','length','2483325NHFELu','error','keys','silent','appDomain','set','format','Project','skillDomain','pageSize','empty','1465960Spkzrg','588042HNJrav','apps','1052182bsHTUt','localDomain','userDomain','stringify','.tmp','data','riskLevel','projectPath','524433WTwEyy','accessKey','cookie','trim','app','defaultApp'];a243_0x55bd=function(){return _0x30c6c8;};return a243_0x55bd();}export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x4ff5b2){for(const _0x529521 of CONFIG_NAMES){const _0x15d093=resolve(_0x4ff5b2,_0x529521);if(existsSync(_0x15d093))return _0x15d093;}return undefined;}export function findProjectRootDirectory(_0x5cf2ba=process[a243_0x124cd6(0x7e)]()){let _0x678389=resolve(_0x5cf2ba);const {root:_0x28bce4}=parse(_0x678389),_0x3c8705=homedir();while(!![]){if(resolveConfigPath(_0x678389)){if(_0x678389===_0x3c8705)break;return _0x678389;}if(_0x678389===_0x28bce4||_0x678389===_0x3c8705)break;const _0xbbf2f0=dirname(_0x678389);if(_0xbbf2f0===_0x678389)break;_0x678389=_0xbbf2f0;}return resolve(_0x5cf2ba);}export function getProjectConfigPath(){const _0x3b6bfa=a243_0x124cd6;return resolveConfigPath(process[_0x3b6bfa(0x7e)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}function a243_0x2598(_0x1cf3f2,_0x716d60){_0x1cf3f2=_0x1cf3f2-0x65;const _0x55bd03=a243_0x55bd();let _0x259885=_0x55bd03[_0x1cf3f2];return _0x259885;}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x142118){const _0x518ce9=a243_0x124cd6;if(!existsSync(_0x142118))return{'status':'missing'};try{const _0x5acd11=readFileSync(_0x142118,{'encoding':_0x518ce9(0x81)});if(!_0x5acd11?.[_0x518ce9(0x73)]())return{'status':'empty'};const _0x21088a=JSON[_0x518ce9(0x8a)](_0x5acd11);return{'status':'ok','data':_0x21088a};}catch(_0x1cd941){return{'status':_0x518ce9(0x8f),'message':_0x1cd941 instanceof Error?_0x1cd941['message']:String(_0x1cd941)};}}function parseCliConfigJsonFile(_0x527dc7,_0x427891,_0x5f0b29){const _0x4233c8=a243_0x124cd6,_0x8d00be=inspectCliConfigJsonFile(_0x527dc7);if(_0x8d00be[_0x4233c8(0x8c)]==='missing'||_0x8d00be[_0x4233c8(0x8c)]===_0x4233c8(0x98))return{};if(_0x8d00be['status']==='ok')return _0x8d00be[_0x4233c8(0x6d)];return _0x427891===_0x4233c8(0x86)&&_0x5f0b29&&console['error'](CLI_BIN_NAME+':\x20'+_0x5f0b29+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x527dc7+'\x0a\x20\x20'+_0x8d00be[_0x4233c8(0x7f)]),{};}function normalizeLegacyConfigShape(_0x1f98b9){const _0x52e601=a243_0x124cd6;if(!_0x1f98b9||typeof _0x1f98b9!==_0x52e601(0x77))return{'config':{},'migrated':![]};const _0x431613={..._0x1f98b9},_0x58c143=_0x431613['apps']&&typeof _0x431613[_0x52e601(0x67)]===_0x52e601(0x77)?{..._0x431613[_0x52e601(0x67)]}:{},_0x49001f=Object['keys'](_0x58c143)['length'],_0x2fe96c=_0x431613[_0x52e601(0x76)]||_0x431613[_0x52e601(0x74)];let _0x38c536=![];if(_0x2fe96c&&_0x49001f===0x0){const _0x262bd4=typeof _0x431613['defaultApp']===_0x52e601(0x85)&&_0x431613[_0x52e601(0x75)][_0x52e601(0x73)]()?_0x431613[_0x52e601(0x75)]:String(_0x2fe96c)[_0x52e601(0x73)]();_0x58c143[_0x262bd4]={'appcode':String(_0x2fe96c)[_0x52e601(0x73)](),..._0x431613['env']!=null?{'env':_0x431613['env']}:{},..._0x431613[_0x52e601(0x79)]!=null?{'apiDir':_0x431613[_0x52e601(0x79)]}:{},..._0x431613[_0x52e601(0x72)]!=null?{'cookie':_0x431613['cookie']}:{},..._0x431613[_0x52e601(0x71)]!=null?{'accessKey':_0x431613[_0x52e601(0x71)]}:{},..._0x431613[_0x52e601(0x94)]!=null?{'format':_0x431613[_0x52e601(0x94)]}:{},..._0x431613[_0x52e601(0x97)]!=null?{'pageSize':_0x431613[_0x52e601(0x97)]}:{},..._0x431613['riskLevel']!=null?{'riskLevel':_0x431613[_0x52e601(0x6e)]}:{},..._0x431613[_0x52e601(0x8b)]!=null?{'locale':_0x431613[_0x52e601(0x8b)]}:{}},_0x431613['apps']=_0x58c143,delete _0x431613['defaultApp'],_0x38c536=!![];}return(_0x52e601(0x76)in _0x431613||'app'in _0x431613)&&(delete _0x431613[_0x52e601(0x76)],delete _0x431613[_0x52e601(0x74)],_0x38c536=!![]),{'config':_0x431613,'migrated':_0x38c536};}function writeNormalizedConfigIfNeeded(_0x4ecdcc,_0x314ca8){const _0x3783a3=a243_0x124cd6,_0x21b32d=JSON[_0x3783a3(0x6b)](normalizeConfigForWrite(_0x314ca8),null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x4ecdcc)===_0x21b32d)return;writeConfigFile(_0x4ecdcc,_0x314ca8),normalizedWriteCache[_0x3783a3(0x93)](_0x4ecdcc,_0x21b32d);}function parseAndNormalizeConfig(_0xebf1a5,_0x657e01,_0x2295df){const _0x394bc6=a243_0x124cd6,_0x4f3122=parseCliConfigJsonFile(_0xebf1a5,_0x657e01,_0x2295df),_0x59d55f=normalizeLegacyConfigShape(_0x4f3122);if(_0x59d55f[_0x394bc6(0x82)])try{writeNormalizedConfigIfNeeded(_0xebf1a5,_0x59d55f[_0x394bc6(0x89)]);}catch{}return _0x59d55f[_0x394bc6(0x89)];}export function loadRawConfigLayers(_0x3252c4){const _0x4d287f=a243_0x124cd6;let _0x21392f={},_0x1cf747={};const _0x1b2b80=resolveConfigPath(homedir());_0x1b2b80&&(_0x21392f=parseAndNormalizeConfig(_0x1b2b80,'warn',_0x4d287f(0x80)));const _0xaf544e=_0x3252c4??findProjectRootDirectory(),_0xee8c91=resolveConfigPath(_0xaf544e);return _0xee8c91&&(_0x1cf747=parseAndNormalizeConfig(_0xee8c91,_0x4d287f(0x86),_0x4d287f(0x95))),{'globalPath':_0x1b2b80,'projectPath':_0xee8c91,'globalConfig':_0x21392f,'projectConfig':_0x1cf747};}const INHERIT_WHITELIST=['cookie',a243_0x124cd6(0x71),a243_0x124cd6(0x8b),a243_0x124cd6(0x94),'riskLevel',a243_0x124cd6(0x97),a243_0x124cd6(0x88),a243_0x124cd6(0x83),a243_0x124cd6(0x6a),a243_0x124cd6(0x78),'runtimeDomain',a243_0x124cd6(0x96),'kbDomain',a243_0x124cd6(0x92),a243_0x124cd6(0x69),'certificateDomain'];export function mergeRawConfigLayers(_0x75b351){const _0x5d489d=a243_0x124cd6,{globalConfig:_0x30d0c7,projectConfig:_0x1d695a}=_0x75b351,_0x28c294=!!_0x75b351[_0x5d489d(0x6f)]||Object[_0x5d489d(0x90)](_0x1d695a)[_0x5d489d(0x8d)]>0x0;if(!_0x28c294)return mergeGlobalOnly(_0x30d0c7);return mergeProjectFirst(_0x30d0c7,_0x1d695a);}function mergeGlobalOnly(_0x5ce961){const _0x1e2de0=a243_0x124cd6,_0x1e575b={..._0x5ce961};delete _0x1e575b['inherit'];const _0x259359=_0x5ce961['apps']&&typeof _0x5ce961['apps']===_0x1e2de0(0x77)?_0x5ce961[_0x1e2de0(0x67)]:{};if(Object[_0x1e2de0(0x90)](_0x259359)[_0x1e2de0(0x8d)]>0x0)_0x1e575b['apps']=_0x259359;if(_0x5ce961[_0x1e2de0(0x75)])_0x1e575b['defaultApp']=_0x5ce961[_0x1e2de0(0x75)];return _0x1e575b;}function mergeProjectFirst(_0x2a730f,_0x484b0f){const _0x386d56=a243_0x124cd6,_0xe7ed14={..._0x484b0f};delete _0xe7ed14[_0x386d56(0x7a)];for(const _0x424f34 of INHERIT_WHITELIST){!(_0x424f34 in _0xe7ed14)&&_0x424f34 in _0x2a730f&&(_0xe7ed14[_0x424f34]=_0x2a730f[_0x424f34]);}const _0x27ff41=_0x484b0f[_0x386d56(0x67)]&&typeof _0x484b0f[_0x386d56(0x67)]==='object'?_0x484b0f['apps']:{};return Object[_0x386d56(0x90)](_0x27ff41)[_0x386d56(0x8d)]>0x0?_0xe7ed14[_0x386d56(0x67)]=_0x27ff41:delete _0xe7ed14[_0x386d56(0x67)],'defaultApp'in _0x484b0f?_0xe7ed14[_0x386d56(0x75)]=_0x484b0f['defaultApp']:delete _0xe7ed14[_0x386d56(0x75)],_0xe7ed14;}export function readRawConfigWithLayers(_0x4176fb){const _0x44fc7c=loadRawConfigLayers(_0x4176fb);return{'config':mergeRawConfigLayers(_0x44fc7c),'layers':_0x44fc7c};}export function readRawConfig(_0x1b1c15){return mergeRawConfigLayers(loadRawConfigLayers(_0x1b1c15));}export function readConfigFile(_0xfecc93){const _0x516264=a243_0x124cd6;return parseAndNormalizeConfig(_0xfecc93,_0x516264(0x91));}export function writeConfigFile(_0x4e2981,_0xec49c9){const _0x28376c=a243_0x124cd6,_0x5df883=dirname(_0x4e2981);!existsSync(_0x5df883)&&mkdirSync(_0x5df883,{'recursive':!![]});const _0x3ea229=_0x4e2981+_0x28376c(0x6c);try{const _0x120cba=normalizeConfigForWrite(_0xec49c9);writeFileSync(_0x3ea229,JSON[_0x28376c(0x6b)](_0x120cba,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0x3ea229,_0x4e2981);}catch(_0x4a6d12){try{unlinkSync(_0x3ea229);}catch{}throw _0x4a6d12;}}export function resolveWriteConfigPath(_0x37de11){const _0xf84f60=a243_0x124cd6,_0x523772=_0x37de11===_0xf84f60(0x87)?process['cwd']():homedir(),_0xee8e54=resolveConfigPath(_0x523772);return _0xee8e54??resolve(_0x523772,NEW_CONFIG_NAME);}
|
package/lib/context.d.ts
CHANGED
|
@@ -8,10 +8,17 @@
|
|
|
8
8
|
import { type AppProfile } from "./context/app-resolver.js";
|
|
9
9
|
import { CONFIG_NAMES, NEW_CONFIG_NAME, findProjectRootDirectory, getGlobalConfigPath, getProjectConfigPath, inspectCliConfigJsonFile, isInProject, loadRawConfigLayers, mergeRawConfigLayers, readConfigFile, readRawConfig, readRawConfigWithLayers, resolveConfigPath, resolveWriteConfigPath, writeConfigFile, type CliConfigJsonInspect, type RawConfigLayers } from "./context/config-loader.js";
|
|
10
10
|
import type { OutputFormat, Risk } from "./framework/types.js";
|
|
11
|
+
import { type LovrabetRegion } from "./constant/region.js";
|
|
12
|
+
import { type RegionConfigSource } from "./config/region-config.js";
|
|
11
13
|
import { logger } from "./utils/logger.js";
|
|
12
14
|
export { CONFIG_NAMES, NEW_CONFIG_NAME, findProjectRootDirectory, getGlobalConfigPath, getProjectConfigPath, inspectCliConfigJsonFile, isInProject, loadRawConfigLayers, mergeRawConfigLayers, readConfigFile, readRawConfig, readRawConfigWithLayers, resolveConfigPath, resolveWriteConfigPath, writeConfigFile, type AppProfile, type CliConfigJsonInspect, type RawConfigLayers, };
|
|
13
15
|
export interface CLIConfig {
|
|
14
16
|
appCode: string | undefined;
|
|
17
|
+
/** Effective country/region after the selected app profile override. */
|
|
18
|
+
region?: LovrabetRegion;
|
|
19
|
+
/** Raw selected value retained so doctor can report invalid manual edits. */
|
|
20
|
+
regionConfiguredValue?: unknown;
|
|
21
|
+
regionSource?: RegionConfigSource;
|
|
15
22
|
env: "production" | "daily";
|
|
16
23
|
locale: string;
|
|
17
24
|
/** 内联 cookie,优先于 ~/.lovrabet/cookie 文件 */
|
|
@@ -58,9 +65,13 @@ export interface MultiAppConfig {
|
|
|
58
65
|
name: string;
|
|
59
66
|
appcode: string;
|
|
60
67
|
isDefault: boolean;
|
|
68
|
+
region: LovrabetRegion;
|
|
69
|
+
regionSource: RegionConfigSource;
|
|
61
70
|
env?: string;
|
|
62
71
|
apiDir?: string;
|
|
63
72
|
cookie?: string;
|
|
73
|
+
/** Effective top-level connection settings for this app's defining layer. */
|
|
74
|
+
routingConfig: Record<string, any>;
|
|
64
75
|
}
|
|
65
76
|
export interface CLIContext {
|
|
66
77
|
config: CLIConfig;
|
|
@@ -87,6 +98,8 @@ export declare function buildConfigFromFlags(flags: Record<string, any>): CLICon
|
|
|
87
98
|
* 终端 CLI 与嵌入式 runtime 共用该入口,避免 env/domain 初始化语义漂移。
|
|
88
99
|
*/
|
|
89
100
|
export declare function initGlobalEnvironment(config: CLIConfig): Promise<void>;
|
|
101
|
+
/** Switch process-wide routing before a multi-app operation. Callers must run apps sequentially. */
|
|
102
|
+
export declare function initMultiAppEnvironment(app: MultiAppConfig): Promise<void>;
|
|
90
103
|
export declare function getConfigAppCode(projectRoot?: string): string | undefined;
|
|
91
104
|
export type MultiAppConfigScope = "project" | "merged";
|
|
92
105
|
export declare function getMultiAppConfigs(scope?: MultiAppConfigScope, projectRoot?: string): MultiAppConfig[] | null;
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a243_0x3770c8=a243_0x566a;(function(_0x180137,_0x4f5b1a){const _0x2d28d3=a243_0x566a,_0x3b7369=_0x180137();while(!![]){try{const _0xf8925=parseInt(_0x2d28d3(0x133))/0x1+-parseInt(_0x2d28d3(0x129))/0x2*(-parseInt(_0x2d28d3(0x13c))/0x3)+-parseInt(_0x2d28d3(0x147))/0x4*(parseInt(_0x2d28d3(0x143))/0x5)+parseInt(_0x2d28d3(0x146))/0x6*(-parseInt(_0x2d28d3(0x132))/0x7)+-parseInt(_0x2d28d3(0x12c))/0x8+-parseInt(_0x2d28d3(0x127))/0x9+parseInt(_0x2d28d3(0x126))/0xa;if(_0xf8925===_0x4f5b1a)break;else _0x3b7369['push'](_0x3b7369['shift']());}catch(_0x3ba190){_0x3b7369['push'](_0x3b7369['shift']());}}}(a243_0x2ceb,0x2d483));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';function a243_0x2ceb(){const _0xa5c170=['10CRSyCX','setRawCommand','./constant/domain.js','11742ySFkEO','271384WLmsRT','routing','stringify','template_base_url','apiDir','a\x20value\x20of\x20type\x20','app','null','cookie','apps','runtimeDomain','projectConfig','kbDomain','merged','find','https://g.lovrabet.com/dist/lovrabet-skill','./constant/env.js','-api.ts','slice','skillDomain','values','cwd','trim','config','localDomain','5883110qKlTye','3126060wxrzck','certificateDomain','2VLLLTW','raw','agentDomain','2308184GdEMUT','globalConfig','join','domains','\x20doctor`\x20to\x20locate\x20and\x20repair\x20the\x20invalid\x20configuration\x20before\x20retrying.','length','91XhbOxm','129822oETycJ','Run\x20`','env','object','string','keys','project','setLogPath','api.ts','793014deyLVl','appDomain','userDomain','cdn','entries','appcode','defaultApp'];a243_0x2ceb=function(){return _0xa5c170;};return a243_0x2ceb();}export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x3d66f5){return process.env[`RABETBASE_${_0x3d66f5}`]||process.env[`LOVRABET_${_0x3d66f5}`]||undefined;}function optionalString(_0x533aad){const _0x1161b9=a243_0x566a;return typeof _0x533aad==='string'&&_0x533aad[_0x1161b9(0x123)]()?_0x533aad[_0x1161b9(0x123)]():undefined;}function a243_0x566a(_0xe7c251,_0x25ae58){_0xe7c251=_0xe7c251-0x117;const _0x2cebad=a243_0x2ceb();let _0x566a1a=_0x2cebad[_0xe7c251];return _0x566a1a;}function describeConfiguredRegion(_0x2e1a92){const _0x438e8e=a243_0x566a;return typeof _0x2e1a92==='string'?JSON[_0x438e8e(0x149)](_0x2e1a92):_0x438e8e(0x14c)+(_0x2e1a92===null?_0x438e8e(0x14e):typeof _0x2e1a92);}function resolveConfiguredRegion(_0x94155a){const _0x105984=a243_0x566a;if(isInvalidLovrabetRegion(_0x94155a))throw CliErrors['validation']('Invalid\x20country/region\x20'+describeConfiguredRegion(_0x94155a)+'\x20in\x20Rabetbase\x20configuration.',_0x105984(0x134)+CLI_BIN_NAME+_0x105984(0x130));return normalizeLovrabetRegion(_0x94155a)??DEFAULT_LOVRABET_REGION;}export function isRoutingRecoveryService(_0x47fb86){const _0x4c8f3c=a243_0x566a;return _0x47fb86===_0x4c8f3c(0x124)||_0x47fb86==='doctor';}export async function createContext(_0x7eacca){const _0x38b7b8=a243_0x566a,{config:_0x23b51c,layers:_0x617544}=readRawConfigWithLayers(),_0x13733c=buildConfig(_0x23b51c,_0x7eacca,_0x617544);await initGlobalEnvironment(_0x13733c);const {getUserDomain:_0x3d083e,getApiDomain:_0x48ab64}=await import(_0x38b7b8(0x145)),_0x4682d4={'apiDomain':_0x48ab64(),'userDomain':_0x3d083e()},_0x10c271=await buildAuth(_0x13733c);logger[_0x38b7b8(0x13a)](process['cwd']());const _0x1810ff=(CLI_BIN_NAME+'\x20'+process['argv'][_0x38b7b8(0x11f)](0x2)[_0x38b7b8(0x12e)]('\x20'))[_0x38b7b8(0x123)]();logger[_0x38b7b8(0x144)](_0x1810ff);const {isNonInteractive:_0x4f4e11}=await import('./utils/is-non-interactive.js'),_0x87663a=_0x4f4e11(_0x7eacca);return{'config':_0x13733c,'auth':_0x10c271,'logger':logger,'env':_0x4682d4,'nonInteractive':_0x87663a};}export function buildConfigFromFlags(_0x1de3aa){const {config:_0x4315c8,layers:_0x468a30}=readRawConfigWithLayers();return buildConfig(_0x4315c8,_0x1de3aa,_0x468a30);}export async function initGlobalEnvironment(_0x209528){const _0x30eb63=a243_0x566a,_0x23896f=resolveConfiguredRegion(_0x209528['raw']?.['region']),_0x1d340c=resolveEnterpriseRoutingManifest(_0x209528[_0x30eb63(0x12a)]?.[_0x30eb63(0x148)]),_0x28e579={'region':_0x23896f,'apiDomain':_0x1d340c?_0x1d340c[_0x30eb63(0x12f)]['apiDomain']:optionalString(_0x209528[_0x30eb63(0x12a)]?.['apiDomain']),'userDomain':_0x1d340c?_0x1d340c[_0x30eb63(0x12f)][_0x30eb63(0x13e)]:optionalString(_0x209528[_0x30eb63(0x12a)]?.[_0x30eb63(0x13e)]),'runtimeDomain':_0x1d340c?_0x1d340c[_0x30eb63(0x12f)][_0x30eb63(0x117)]:optionalString(_0x209528['raw']?.[_0x30eb63(0x117)]),'skillDomain':_0x1d340c?_0x1d340c[_0x30eb63(0x12f)][_0x30eb63(0x120)]:optionalString(_0x209528[_0x30eb63(0x12a)]?.[_0x30eb63(0x120)])||optionalString(_0x209528[_0x30eb63(0x12a)]?.['skillHubDomain'])||optionalString(_0x209528[_0x30eb63(0x12a)]?.[_0x30eb63(0x12b)])||optionalString(_0x209528[_0x30eb63(0x12a)]?.['platformDomain']),'kbDomain':_0x1d340c?_0x1d340c[_0x30eb63(0x12f)][_0x30eb63(0x119)]:optionalString(_0x209528[_0x30eb63(0x12a)]?.['kbDomain'])||optionalString(_0x209528[_0x30eb63(0x12a)]?.[_0x30eb63(0x12b)])||optionalString(_0x209528[_0x30eb63(0x12a)]?.['platformDomain']),'appDomain':_0x1d340c?_0x1d340c[_0x30eb63(0x12f)][_0x30eb63(0x13d)]:optionalString(_0x209528['raw']?.[_0x30eb63(0x13d)]),'localDomain':_0x1d340c?_0x1d340c['domains']['localDomain']:optionalString(_0x209528['raw']?.[_0x30eb63(0x125)]),'certificateDomain':_0x1d340c?_0x1d340c['domains'][_0x30eb63(0x128)]:optionalString(_0x209528[_0x30eb63(0x12a)]?.['certificateDomain']),'cdn':_0x1d340c?.[_0x30eb63(0x13f)]},{initEnv:_0x5aafbc}=await import(_0x30eb63(0x11d)),{initDomains:_0x2a3313}=await import(_0x30eb63(0x145));_0x5aafbc(_0x209528[_0x30eb63(0x135)]),_0x2a3313(_0x28e579);}export function getConfigAppCode(_0x125c24){const _0x2b09dc=a243_0x566a,_0x2ee588=readRawConfig(_0x125c24);if(_0x2ee588[_0x2b09dc(0x150)]&&typeof _0x2ee588[_0x2b09dc(0x150)]==='object'){const _0x1148dd=_0x2ee588['defaultApp'];if(_0x1148dd)return _0x2ee588[_0x2b09dc(0x150)][_0x1148dd]?.['appcode']?String(_0x2ee588['apps'][_0x1148dd]['appcode'])[_0x2b09dc(0x123)]():undefined;const _0x120cb3=Object[_0x2b09dc(0x121)](_0x2ee588[_0x2b09dc(0x150)]);if(_0x120cb3[_0x2b09dc(0x131)]===0x1&&_0x120cb3[0x0]?.[_0x2b09dc(0x141)])return String(_0x120cb3[0x0][_0x2b09dc(0x141)])[_0x2b09dc(0x123)]();}const _0x33952c=_0x2ee588[_0x2b09dc(0x141)]||_0x2ee588[_0x2b09dc(0x14d)];if(typeof _0x33952c!=='string'||_0x33952c[_0x2b09dc(0x123)]()==='')return undefined;return _0x33952c[_0x2b09dc(0x123)]();}export function getMultiAppConfigs(_0x1deadc=a243_0x3770c8(0x139),_0x34faeb){const _0x5ef8cb=a243_0x3770c8,_0x132856=loadRawConfigLayers(_0x34faeb);let _0x34b115,_0x3879f0;if(_0x1deadc===_0x5ef8cb(0x11a)){const _0x252a0c=_0x132856['globalConfig'][_0x5ef8cb(0x150)]&&typeof _0x132856[_0x5ef8cb(0x12d)][_0x5ef8cb(0x150)]==='object'?_0x132856[_0x5ef8cb(0x12d)][_0x5ef8cb(0x150)]:{},_0x32b6ae=_0x132856[_0x5ef8cb(0x118)][_0x5ef8cb(0x150)]&&typeof _0x132856['projectConfig'][_0x5ef8cb(0x150)]==='object'?_0x132856[_0x5ef8cb(0x118)][_0x5ef8cb(0x150)]:{};_0x34b115={..._0x252a0c,..._0x32b6ae};const _0x5a4d3e=readRawConfig(_0x34faeb);_0x3879f0=_0x5a4d3e[_0x5ef8cb(0x142)];}else _0x34b115=_0x132856[_0x5ef8cb(0x118)][_0x5ef8cb(0x150)],_0x3879f0=_0x132856[_0x5ef8cb(0x118)][_0x5ef8cb(0x142)];!_0x3879f0&&_0x34b115&&typeof _0x34b115==='object'&&Object[_0x5ef8cb(0x138)](_0x34b115)[_0x5ef8cb(0x131)]===0x1&&(_0x3879f0=Object[_0x5ef8cb(0x138)](_0x34b115)[0x0]);if(!_0x34b115||typeof _0x34b115!==_0x5ef8cb(0x136)||Object[_0x5ef8cb(0x138)](_0x34b115)[_0x5ef8cb(0x131)]===0x0)return null;return Object[_0x5ef8cb(0x140)](_0x34b115)['map'](([_0x5c340c,_0x207f1d])=>({'name':_0x5c340c,'appcode':_0x207f1d?.['appcode']||'','isDefault':_0x5c340c===_0x3879f0,'env':_0x207f1d?.[_0x5ef8cb(0x135)],'apiDir':_0x207f1d?.['apiDir'],'cookie':_0x207f1d?.[_0x5ef8cb(0x14f)]||undefined}))['filter'](_0x266808=>_0x266808[_0x5ef8cb(0x141)]);}export function getTemplateBaseUrl(_0xb8247d){const _0x212781=a243_0x3770c8,_0x40bcca=readRawConfig(_0xb8247d);if(_0x40bcca[_0x212781(0x14a)]&&typeof _0x40bcca[_0x212781(0x14a)]===_0x212781(0x137))return _0x40bcca[_0x212781(0x14a)]['replace'](/\/$/,'');return _0x212781(0x11c);}function buildConfig(_0x471f1b,_0x418e1b,_0x5e95ea){return{...resolveAppConfig({'raw':_0x471f1b,'flags':_0x418e1b,'layers':_0x5e95ea,'readEnv':env}),'raw':_0x471f1b};}export function resolveApiFilePath(_0xd7ea8c,_0x1fa050){const _0x14546b=a243_0x3770c8,_0x3a9b49=resolve(process[_0x14546b(0x122)](),_0xd7ea8c),_0x4e3442=resolve(_0x3a9b49,_0x14546b(0x13b));if(!_0x1fa050)return _0x4e3442;const _0x232cc3=readRawConfig(),_0x308433=_0x232cc3[_0x14546b(0x150)]&&typeof _0x232cc3[_0x14546b(0x150)]===_0x14546b(0x136)?_0x232cc3[_0x14546b(0x150)]:{},_0x41e25b=Object[_0x14546b(0x140)](_0x308433)[_0x14546b(0x11b)](([,_0xc62e60])=>_0xc62e60?.['appcode']===_0x1fa050);if(!_0x41e25b)return _0x4e3442;const [_0x2b0981,_0x58bea3]=_0x41e25b,_0x5cb71e=typeof _0x232cc3[_0x14546b(0x142)]===_0x14546b(0x137)?_0x232cc3[_0x14546b(0x142)]:undefined;if(_0x58bea3?.[_0x14546b(0x14b)])return _0x4e3442;if(_0x5cb71e&&_0x2b0981!==_0x5cb71e)return resolve(_0x3a9b49,_0x2b0981+_0x14546b(0x11e));return _0x4e3442;}
|
|
1
|
+
const a244_0x3084ab=a244_0x5d02;(function(_0x3503df,_0x6efb39){const _0x5e939c=a244_0x5d02,_0x2dde36=_0x3503df();while(!![]){try{const _0x147c6f=-parseInt(_0x5e939c(0x1ac))/0x1+-parseInt(_0x5e939c(0x1a8))/0x2*(parseInt(_0x5e939c(0x1d1))/0x3)+parseInt(_0x5e939c(0x1bc))/0x4+parseInt(_0x5e939c(0x1df))/0x5+parseInt(_0x5e939c(0x1a1))/0x6+parseInt(_0x5e939c(0x1d2))/0x7+-parseInt(_0x5e939c(0x1ca))/0x8;if(_0x147c6f===_0x6efb39)break;else _0x2dde36['push'](_0x2dde36['shift']());}catch(_0x4bf535){_0x2dde36['push'](_0x2dde36['shift']());}}}(a244_0x5854,0x57dcd));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';function a244_0x5854(){const _0xd7fd59=['apiDomain','name','hasOwnProperty','setLogPath','platformDomain','prototype','api.ts','entries','length','skillDomain','projectConfig','filter','config','replace','doctor','1627036FQbhPV','production','region','userDomain','app','global','cookie','globalConfig','configuredRegion','defaultApp','template_base_url','appDomain','env','raw','443096SchKRn','agentDomain','apiDir','runtimeDomain','Rabetbase\x20configuration','-api.ts','call','364125dmSSdu','4917605ftfsNd','find','cdn','./constant/domain.js','routing','regionConfiguredValue','certificateDomain','domains','app\x20profile\x20\x22','appcode','argv','cwd','global\x20Rabetbase\x20configuration','786875LMmMzc','object','./utils/is-non-interactive.js','regionLocation','kbDomain','values','apps','daily','keys','regionSource','localDomain','1500216YZiEHs','string','join','skillHubDomain','trim','routingConfig','project','10NQOCnR','slice','https://g.lovrabet.com/dist/lovrabet-skill','currentApp','494538ADwXSC'];a244_0x5854=function(){return _0xd7fd59;};return a244_0x5854();}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{resolveConfiguredRegion,resolveEffectiveRegion}from'./config/region-config.js';import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x4a63c8){return process.env[`RABETBASE_${_0x4a63c8}`]||process.env[`LOVRABET_${_0x4a63c8}`]||undefined;}function optionalString(_0x37011c){const _0x3bfe8d=a244_0x5d02;return typeof _0x37011c===_0x3bfe8d(0x1a2)&&_0x37011c['trim']()?_0x37011c['trim']():undefined;}export function isRoutingRecoveryService(_0x375edc){const _0x5499e2=a244_0x5d02;return _0x375edc===_0x5499e2(0x1b9)||_0x375edc===_0x5499e2(0x1bb);}export async function createContext(_0x5cb91c){const _0x1a6afd=a244_0x5d02,{config:_0x13e5a7,layers:_0x5f2195}=readRawConfigWithLayers(),_0x1319a0=buildConfig(_0x13e5a7,_0x5cb91c,_0x5f2195);await initGlobalEnvironment(_0x1319a0);const {getUserDomain:_0x18e4f7,getApiDomain:_0xe8250e}=await import('./constant/domain.js'),_0xe1f2e8={'apiDomain':_0xe8250e(),'userDomain':_0x18e4f7()},_0x21d4a0=await buildAuth(_0x1319a0);logger[_0x1a6afd(0x1b0)](process[_0x1a6afd(0x1dd)]());const _0xeb89e0=(CLI_BIN_NAME+'\x20'+process[_0x1a6afd(0x1dc)][_0x1a6afd(0x1a9)](0x2)[_0x1a6afd(0x1a3)]('\x20'))[_0x1a6afd(0x1a5)]();logger['setRawCommand'](_0xeb89e0);const {isNonInteractive:_0x43e2e2}=await import(_0x1a6afd(0x1e1)),_0x1230ce=_0x43e2e2(_0x5cb91c);return{'config':_0x1319a0,'auth':_0x21d4a0,'logger':logger,'env':_0xe1f2e8,'nonInteractive':_0x1230ce};}export function buildConfigFromFlags(_0x339093){const {config:_0x31d8f5,layers:_0x4edc0a}=readRawConfigWithLayers();return buildConfig(_0x31d8f5,_0x339093,_0x4edc0a);}export async function initGlobalEnvironment(_0x5e7dd2){const _0x3192b8=a244_0x5d02,_0xfa1319=_0x5e7dd2[_0x3192b8(0x19f)]==='app'&&_0x5e7dd2[_0x3192b8(0x1ab)]?_0x3192b8(0x1da)+_0x5e7dd2[_0x3192b8(0x1ab)]+'\x22':_0x5e7dd2['regionSource']===_0x3192b8(0x1a7)?'project\x20Rabetbase\x20configuration':_0x5e7dd2[_0x3192b8(0x19f)]===_0x3192b8(0x1c1)?_0x3192b8(0x1de):_0x3192b8(0x1ce);await initConfiguredEnvironment({'raw':_0x5e7dd2['raw'],'configuredRegion':_0x5e7dd2[_0x3192b8(0x1d7)]??_0x5e7dd2[_0x3192b8(0x1c9)]?.[_0x3192b8(0x1be)]??_0x5e7dd2[_0x3192b8(0x1be)],'regionLocation':_0xfa1319,'targetEnv':_0x5e7dd2[_0x3192b8(0x1c8)]});}async function initConfiguredEnvironment(_0x2bfedb){const _0x530251=a244_0x5d02,_0x207883=resolveConfiguredRegion(_0x2bfedb[_0x530251(0x1c4)],_0x2bfedb[_0x530251(0x1e2)]),_0x14e444=resolveEnterpriseRoutingManifest(_0x2bfedb[_0x530251(0x1c9)]?.[_0x530251(0x1d6)]),_0x31cb15={'region':_0x207883,'apiDomain':_0x14e444?_0x14e444[_0x530251(0x1d9)][_0x530251(0x1ad)]:optionalString(_0x2bfedb[_0x530251(0x1c9)]?.[_0x530251(0x1ad)]),'userDomain':_0x14e444?_0x14e444[_0x530251(0x1d9)][_0x530251(0x1bf)]:optionalString(_0x2bfedb[_0x530251(0x1c9)]?.[_0x530251(0x1bf)]),'runtimeDomain':_0x14e444?_0x14e444[_0x530251(0x1d9)][_0x530251(0x1cd)]:optionalString(_0x2bfedb['raw']?.[_0x530251(0x1cd)]),'skillDomain':_0x14e444?_0x14e444[_0x530251(0x1d9)]['skillDomain']:optionalString(_0x2bfedb['raw']?.[_0x530251(0x1b6)])||optionalString(_0x2bfedb[_0x530251(0x1c9)]?.['skillHubDomain'])||optionalString(_0x2bfedb[_0x530251(0x1c9)]?.[_0x530251(0x1cb)])||optionalString(_0x2bfedb['raw']?.[_0x530251(0x1b1)]),'kbDomain':_0x14e444?_0x14e444['domains']['kbDomain']:optionalString(_0x2bfedb[_0x530251(0x1c9)]?.[_0x530251(0x1e3)])||optionalString(_0x2bfedb['raw']?.['agentDomain'])||optionalString(_0x2bfedb[_0x530251(0x1c9)]?.[_0x530251(0x1b1)]),'appDomain':_0x14e444?_0x14e444[_0x530251(0x1d9)][_0x530251(0x1c7)]:optionalString(_0x2bfedb[_0x530251(0x1c9)]?.['appDomain']),'localDomain':_0x14e444?_0x14e444[_0x530251(0x1d9)]['localDomain']:optionalString(_0x2bfedb[_0x530251(0x1c9)]?.['localDomain']),'certificateDomain':_0x14e444?_0x14e444[_0x530251(0x1d9)][_0x530251(0x1d8)]:optionalString(_0x2bfedb[_0x530251(0x1c9)]?.[_0x530251(0x1d8)]),'cdn':_0x14e444?.[_0x530251(0x1d4)]},{initEnv:_0x3528a0}=await import('./constant/env.js'),{initDomains:_0x2cad7e}=await import(_0x530251(0x1d5));_0x3528a0(_0x2bfedb['targetEnv']),_0x2cad7e(_0x31cb15);}export async function initMultiAppEnvironment(_0x33296d){const _0x55f01d=a244_0x5d02;await initConfiguredEnvironment({'raw':_0x33296d[_0x55f01d(0x1a6)],'configuredRegion':_0x33296d[_0x55f01d(0x1be)],'regionLocation':_0x55f01d(0x1da)+_0x33296d[_0x55f01d(0x1ae)]+'\x22','targetEnv':_0x33296d[_0x55f01d(0x1c8)]==='daily'?_0x55f01d(0x19d):_0x55f01d(0x1bd)});}export function getConfigAppCode(_0x4ef55a){const _0x545990=a244_0x5d02,_0x1150fd=readRawConfig(_0x4ef55a);if(_0x1150fd[_0x545990(0x1e5)]&&typeof _0x1150fd[_0x545990(0x1e5)]===_0x545990(0x1e0)){const _0xa7eeda=_0x1150fd['defaultApp'];if(_0xa7eeda)return _0x1150fd[_0x545990(0x1e5)][_0xa7eeda]?.[_0x545990(0x1db)]?String(_0x1150fd[_0x545990(0x1e5)][_0xa7eeda][_0x545990(0x1db)])['trim']():undefined;const _0x35f331=Object[_0x545990(0x1e4)](_0x1150fd[_0x545990(0x1e5)]);if(_0x35f331['length']===0x1&&_0x35f331[0x0]?.[_0x545990(0x1db)])return String(_0x35f331[0x0]['appcode'])['trim']();}const _0xd80df2=_0x1150fd[_0x545990(0x1db)]||_0x1150fd[_0x545990(0x1c0)];if(typeof _0xd80df2!==_0x545990(0x1a2)||_0xd80df2[_0x545990(0x1a5)]()==='')return undefined;return _0xd80df2[_0x545990(0x1a5)]();}function a244_0x5d02(_0x5708e3,_0x168f35){_0x5708e3=_0x5708e3-0x19d;const _0x5854ed=a244_0x5854();let _0x5d02c5=_0x5854ed[_0x5708e3];return _0x5d02c5;}const CONNECTION_ROUTING_KEYS=[a244_0x3084ab(0x1d6),'apiDomain','userDomain',a244_0x3084ab(0x1cd),a244_0x3084ab(0x1b6),a244_0x3084ab(0x1a4),'kbDomain','agentDomain','platformDomain',a244_0x3084ab(0x1c7),a244_0x3084ab(0x1a0),a244_0x3084ab(0x1d8)];function pickConnectionRoutingConfig(_0x12c5d0,_0x48f2c9){const _0x4088a4={'region':_0x48f2c9};for(const _0xb39a71 of CONNECTION_ROUTING_KEYS){if(_0x12c5d0[_0xb39a71]!==undefined)_0x4088a4[_0xb39a71]=_0x12c5d0[_0xb39a71];}return _0x4088a4;}export function getMultiAppConfigs(_0x3d2f52=a244_0x3084ab(0x1a7),_0x543728){const _0x2241d7=a244_0x3084ab,_0x2a927e=loadRawConfigLayers(_0x543728);let _0x38ec5b,_0x46ca1d;const _0x234a9d=mergeRawConfigLayers(_0x2a927e),_0x24b246=_0x2a927e[_0x2241d7(0x1c3)][_0x2241d7(0x1e5)]&&typeof _0x2a927e[_0x2241d7(0x1c3)][_0x2241d7(0x1e5)]===_0x2241d7(0x1e0)?_0x2a927e['globalConfig'][_0x2241d7(0x1e5)]:{},_0x268e9e=_0x2a927e['projectConfig'][_0x2241d7(0x1e5)]&&typeof _0x2a927e[_0x2241d7(0x1b7)]['apps']===_0x2241d7(0x1e0)?_0x2a927e[_0x2241d7(0x1b7)][_0x2241d7(0x1e5)]:{};_0x3d2f52==='merged'?(_0x38ec5b={..._0x24b246,..._0x268e9e},_0x46ca1d=_0x234a9d[_0x2241d7(0x1c5)]):(_0x38ec5b=_0x2a927e['projectConfig'][_0x2241d7(0x1e5)],_0x46ca1d=_0x2a927e[_0x2241d7(0x1b7)]['defaultApp']);!_0x46ca1d&&_0x38ec5b&&typeof _0x38ec5b===_0x2241d7(0x1e0)&&Object[_0x2241d7(0x19e)](_0x38ec5b)[_0x2241d7(0x1b5)]===0x1&&(_0x46ca1d=Object[_0x2241d7(0x19e)](_0x38ec5b)[0x0]);if(!_0x38ec5b||typeof _0x38ec5b!==_0x2241d7(0x1e0)||Object[_0x2241d7(0x19e)](_0x38ec5b)[_0x2241d7(0x1b5)]===0x0)return null;return Object[_0x2241d7(0x1b4)](_0x38ec5b)['map'](([_0xd0b1e2,_0x349c60])=>{const _0x153ed5=_0x2241d7,_0x350f4d=_0x3d2f52===_0x153ed5(0x1a7)||Object[_0x153ed5(0x1b2)][_0x153ed5(0x1af)][_0x153ed5(0x1d0)](_0x268e9e,_0xd0b1e2),_0x1921f9=_0x350f4d?_0x234a9d:_0x2a927e['globalConfig'],_0x17fe30=resolveEffectiveRegion({'appRegion':_0x349c60?.['region'],'projectRegion':_0x350f4d?_0x2a927e[_0x153ed5(0x1b7)][_0x153ed5(0x1be)]:undefined,'globalRegion':_0x2a927e['globalConfig']['region'],'mergedRegion':_0x1921f9[_0x153ed5(0x1be)],'appName':_0xd0b1e2});return{'name':_0xd0b1e2,'appcode':_0x349c60?.[_0x153ed5(0x1db)]||'','isDefault':_0xd0b1e2===_0x46ca1d,'region':_0x17fe30[_0x153ed5(0x1be)],'regionSource':_0x17fe30['source'],'env':_0x349c60?.['env'],'apiDir':_0x349c60?.[_0x153ed5(0x1cc)],'cookie':_0x349c60?.[_0x153ed5(0x1c2)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x1921f9,_0x17fe30['region'])};})[_0x2241d7(0x1b8)](_0x1b1023=>_0x1b1023[_0x2241d7(0x1db)]);}export function getTemplateBaseUrl(_0x278a5f){const _0x5f6ae5=a244_0x3084ab,_0xdbe835=readRawConfig(_0x278a5f);if(_0xdbe835[_0x5f6ae5(0x1c6)]&&typeof _0xdbe835[_0x5f6ae5(0x1c6)]===_0x5f6ae5(0x1a2))return _0xdbe835[_0x5f6ae5(0x1c6)][_0x5f6ae5(0x1ba)](/\/$/,'');return _0x5f6ae5(0x1aa);}function buildConfig(_0x262cd5,_0x38412b,_0xd154b1){return{...resolveAppConfig({'raw':_0x262cd5,'flags':_0x38412b,'layers':_0xd154b1,'readEnv':env}),'raw':_0x262cd5};}export function resolveApiFilePath(_0x54f547,_0x5d7944){const _0x99d849=a244_0x3084ab,_0x2c49d2=resolve(process[_0x99d849(0x1dd)](),_0x54f547),_0x3aed45=resolve(_0x2c49d2,_0x99d849(0x1b3));if(!_0x5d7944)return _0x3aed45;const _0x4f65ed=readRawConfig(),_0x276426=_0x4f65ed[_0x99d849(0x1e5)]&&typeof _0x4f65ed[_0x99d849(0x1e5)]===_0x99d849(0x1e0)?_0x4f65ed[_0x99d849(0x1e5)]:{},_0x2d7873=Object[_0x99d849(0x1b4)](_0x276426)[_0x99d849(0x1d3)](([,_0x45ed9b])=>_0x45ed9b?.['appcode']===_0x5d7944);if(!_0x2d7873)return _0x3aed45;const [_0x339ac5,_0x373bc7]=_0x2d7873,_0x360725=typeof _0x4f65ed[_0x99d849(0x1c5)]==='string'?_0x4f65ed[_0x99d849(0x1c5)]:undefined;if(_0x373bc7?.[_0x99d849(0x1cc)])return _0x3aed45;if(_0x360725&&_0x339ac5!==_0x360725)return resolve(_0x2c49d2,_0x339ac5+_0x99d849(0x1cf));return _0x3aed45;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5c7a26,_0x23901f){const _0x2db7a7=a245_0x4ac4,_0x3d052f=_0x5c7a26();while(!![]){try{const _0x578f0a=parseInt(_0x2db7a7(0x12b))/0x1+parseInt(_0x2db7a7(0x130))/0x2+parseInt(_0x2db7a7(0x129))/0x3+parseInt(_0x2db7a7(0x133))/0x4*(-parseInt(_0x2db7a7(0x13a))/0x5)+-parseInt(_0x2db7a7(0x134))/0x6+parseInt(_0x2db7a7(0x135))/0x7*(-parseInt(_0x2db7a7(0x139))/0x8)+-parseInt(_0x2db7a7(0x128))/0x9*(parseInt(_0x2db7a7(0x132))/0xa);if(_0x578f0a===_0x23901f)break;else _0x3d052f['push'](_0x3d052f['shift']());}catch(_0x24b2a8){_0x3d052f['push'](_0x3d052f['shift']());}}}(a245_0x9893,0x9a629));function a245_0x4ac4(_0x46890f,_0xec9a46){_0x46890f=_0x46890f-0x128;const _0x98937e=a245_0x9893();let _0x4ac484=_0x98937e[_0x46890f];return _0x4ac484;}import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';const cache=new Map();function a245_0x9893(){const _0x29250c=['push','407349FCHqgf','cwd','set','api.ts','get','2100452YYuIFc','find','211310JwPBXl','492WBueuH','1200792ohNTaO','1974ylJctC','exec','alias','utf-8','13848fHpirc','23415KlGoAx','99BBOqdv','2014530zOeSRi'];a245_0x9893=function(){return _0x29250c;};return a245_0x9893();}function parseApiFile(_0x5249bc){const _0x1ceb62=a245_0x4ac4,_0x59afbc=[],_0x432787=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x34a179;while((_0x34a179=_0x432787[_0x1ceb62(0x136)](_0x5249bc))!==null){_0x59afbc[_0x1ceb62(0x12a)]({'datasetCode':_0x34a179[0x1],'tableName':_0x34a179[0x2],'name':_0x34a179[0x3],'alias':_0x34a179[0x4]});}return _0x59afbc;}export function loadAliasMap(_0x59325e,_0x5ed313,_0x5ab081){const _0x16eca9=a245_0x4ac4,_0x30c368=_0x5ab081??resolve(process[_0x16eca9(0x12c)](),_0x59325e,_0x16eca9(0x12e));if(cache['has'](_0x30c368))return cache[_0x16eca9(0x12f)](_0x30c368);if(!existsSync(_0x30c368))return cache['set'](_0x30c368,[]),[];try{const _0xf3dae6=readFileSync(_0x30c368,_0x16eca9(0x138)),_0x48521a=parseApiFile(_0xf3dae6);return cache[_0x16eca9(0x12d)](_0x30c368,_0x48521a),_0x48521a;}catch{return cache[_0x16eca9(0x12d)](_0x30c368,[]),[];}}export function resolveAlias(_0x347acc,_0x4c0adf,_0x134217,_0x3b7cc7){const _0x432638=a245_0x4ac4;if(!_0x4c0adf)return undefined;const _0x2c54a8=loadAliasMap(_0x347acc,_0x134217,_0x3b7cc7),_0x391383=_0x2c54a8[_0x432638(0x131)](_0x557fbf=>_0x557fbf[_0x432638(0x137)]===_0x4c0adf);return _0x391383?.['datasetCode'];}export function listAliases(_0x5a6bef,_0x1d00b4,_0x24bab2){return loadAliasMap(_0x5a6bef,_0x1d00b4,_0x24bab2);}
|
package/lib/core/api-client.d.ts
CHANGED
|
@@ -294,6 +294,7 @@ export interface BffScriptStatistics {
|
|
|
294
294
|
beforeScriptId: number | null;
|
|
295
295
|
afterScriptId: number | null;
|
|
296
296
|
}
|
|
297
|
+
export declare const BFF_LIST_PAGE_SIZE = 100;
|
|
297
298
|
export declare function listBffScripts(appCode: string, type?: string, options?: {
|
|
298
299
|
scriptName?: string;
|
|
299
300
|
}): Promise<BffScript[]>;
|
|
@@ -814,6 +815,7 @@ export declare function listDeletedPages(appCode: string, pageType: PageProductT
|
|
|
814
815
|
export declare function restoreDataListPage(pageId: number): Promise<void>;
|
|
815
816
|
export declare function restoreCustomPage(appCode: string, pageId: number): Promise<boolean>;
|
|
816
817
|
export declare function updatePage(appCode: string, pageId: number, code: string, datasetIds: number[]): Promise<boolean>;
|
|
818
|
+
export declare function transpileLrSmartJsx(source: string): Promise<string>;
|
|
817
819
|
export declare function generateSdkCode(dataset: {
|
|
818
820
|
name: string;
|
|
819
821
|
code: string;
|