@lovrabet/rabetbase-cli 2.5.2-beta.1 → 2.5.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/auto-sync.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.d.ts +2 -0
- package/lib/commands/deployment/sync-all.js +1 -0
- package/lib/commands/deployment/sync-jobs.d.ts +2 -0
- package/lib/commands/deployment/sync-jobs.js +1 -0
- package/lib/commands/deployment/sync-status.d.ts +2 -0
- package/lib/commands/deployment/sync-status.js +1 -0
- package/lib/commands/deployment/sync.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/instant-api-policy/current.d.ts +2 -0
- package/lib/commands/instant-api-policy/current.js +1 -0
- package/lib/commands/instant-api-policy/index.d.ts +2 -0
- package/lib/commands/instant-api-policy/index.js +1 -0
- package/lib/commands/instant-api-policy/init.d.ts +2 -0
- package/lib/commands/instant-api-policy/init.js +1 -0
- package/lib/commands/instant-api-policy/publish.d.ts +2 -0
- package/lib/commands/instant-api-policy/publish.js +1 -0
- package/lib/commands/instant-api-policy/pull.d.ts +2 -0
- package/lib/commands/instant-api-policy/pull.js +1 -0
- package/lib/commands/instant-api-policy/revision.d.ts +2 -0
- package/lib/commands/instant-api-policy/revision.js +1 -0
- package/lib/commands/instant-api-policy/revisions.d.ts +2 -0
- package/lib/commands/instant-api-policy/revisions.js +1 -0
- package/lib/commands/instant-api-policy/rollback.d.ts +2 -0
- package/lib/commands/instant-api-policy/rollback.js +1 -0
- package/lib/commands/instant-api-policy/shared.d.ts +82 -0
- package/lib/commands/instant-api-policy/shared.js +1 -0
- package/lib/commands/instant-api-policy/validate.d.ts +2 -0
- package/lib/commands/instant-api-policy/validate.js +1 -0
- 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/template.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/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +113 -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.d.ts +23 -0
- package/lib/core/instant-api-policy/config.js +1 -0
- 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/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +11 -5
- package/skills/rabetbase/references/rabetbase-deployment-sync.md +41 -5
- package/skills/rabetbase/references/rabetbase-instant-api-policy.md +92 -0
- package/skills/rabetbase.manifest.json +4 -3
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a221_0x4d12be=a221_0x4ad7;(function(_0x260471,_0x3c1515){const _0x2c98cb=a221_0x4ad7,_0x5356c5=_0x260471();while(!![]){try{const _0x11ef8a=parseInt(_0x2c98cb(0x87))/0x1+parseInt(_0x2c98cb(0xa6))/0x2*(-parseInt(_0x2c98cb(0x101))/0x3)+-parseInt(_0x2c98cb(0xe0))/0x4*(parseInt(_0x2c98cb(0xad))/0x5)+parseInt(_0x2c98cb(0xa1))/0x6+parseInt(_0x2c98cb(0xf2))/0x7*(parseInt(_0x2c98cb(0xd4))/0x8)+parseInt(_0x2c98cb(0xe9))/0x9+parseInt(_0x2c98cb(0xd7))/0xa*(parseInt(_0x2c98cb(0xa0))/0xb);if(_0x11ef8a===_0x3c1515)break;else _0x5356c5['push'](_0x5356c5['shift']());}catch(_0x3a5e49){_0x5356c5['push'](_0x5356c5['shift']());}}}(a221_0x3a47,0xd5dfd));export const CLI_BIN_NAME=a221_0x4d12be(0xb9);export const CLI_DISPLAY_NAME=a221_0x4d12be(0x9f);function a221_0x3a47(){const _0x219529=['Description','expected-children-count','parent-id','appcode','SQL\x20string','sqlcode','Tags','Skip\x20confirmation\x20for\x20high-risk\x20writes','1456446zSNCuZ','yes','operation-type','DB\x20ID','Show\x20help','sort','params','name','@lovrabet/rabetbase-cli','sqlName','schemas','expectParentId','description','env','Expected\x20affected\x20count','meowKey','operation','expect-path','force','Confirm\x20destructive\x20action','Name','Alias\x20for\x20--non-interactive','Schemas','Preview\x20operation\x20without\x20executing','Rabetbase\x20CLI','16379hUbBrp','8133852VjoDAP','Use\x20remote','<expr>','Read\x20value\x20from\x20stdin','Skip\x20import\x20generation','11044awWNxh','Reveal\x20sensitive\x20value','Use\x20global\x20config\x20scope','zh-CN\x20|\x20en-US','Enable\x20Backend\x20Function\x20save','Code\x20filter','Output\x20format','7881145ORKLCH','Menu\x20label','enableBffSave','page','Environment','<name>','Use\x20project\x20config\x20scope','taskId','string','sqlname','codes','Expected\x20current\x20menu\x20path','rabetbase','Operation\x20type','tags','project','type','Target\x20path','output','map','keyword','pagesize','Menu\x20sort\x20value','value','Force\x20overwrite','Title','function-node','dry-run','skipImports','description-file','global','JSON\x20params','SQL\x20name','dryRun','Select\x20app\x20profile\x20by\x20name','confirm','dbid','enable-bff-save','SQL\x20code','352VyQMJR','Override\x20appcode','Record\x20ID','600nbWcSA','json\x20|\x20pretty\x20|\x20compress','Expected\x20current\x20child\x20count','menu-ids','key','boolean','watch','topk','Read\x20value\x20from\x20environment\x20variable','4Jmflhh','Watch\x20mode','remote','Config\x20key','datasetcode','nonInteractive','File\x20path','production\x20|\x20daily','expect-parent-id','2315052vbHWXO','stdin','menuIds','Comma-separated\x20menu\x20IDs','expectedChildrenCount','sql','title','file','format','34328LIzcup','code','Verbose\x20output','reveal','Function\x20node','verbose','target','Type\x20filter','Apply\x20to\x20all','Dataset\x20code','non-interactive','Output\x20path','Force\x20non-interactive\x20mode\x20(CI)','all','operationType','501zkTqUx','label','Expected\x20current\x20parent\x20menu\x20id','locale','<code>','skip-imports','Parent\x20menu\x20id','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Page\x20number','sql-name','functionNode','Comma-separated\x20metadata\x20codes','clear','query','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','app'];a221_0x3a47=function(){return _0x219529;};return a221_0x3a47();}export const NPM_PACKAGE_NAME=a221_0x4d12be(0x8f);function a221_0x4ad7(_0x3f449a,_0x479c57){_0x3f449a=_0x3f449a-0x7f;const _0x3a47f3=a221_0x3a47();let _0x4ad7fc=_0x3a47f3[_0x3f449a];return _0x4ad7fc;}export const GLOBAL_FLAGS=[{'name':a221_0x4d12be(0x82),'meowKey':'appcode','type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xd5),'hint':a221_0x4d12be(0x105)},{'name':a221_0x4d12be(0x110),'meowKey':a221_0x4d12be(0x110),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xcf),'hint':a221_0x4d12be(0xb2)},{'name':a221_0x4d12be(0x94),'meowKey':'env','type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xb1),'hint':a221_0x4d12be(0xe7)},{'name':a221_0x4d12be(0xf1),'meowKey':a221_0x4d12be(0xf1),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xac),'hint':a221_0x4d12be(0xd8)},{'name':'jq','meowKey':'jq','type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0x108),'hint':a221_0x4d12be(0xa3)},{'name':a221_0x4d12be(0xc8),'meowKey':a221_0x4d12be(0xce),'type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0x9e)},{'name':a221_0x4d12be(0x88),'meowKey':a221_0x4d12be(0x88),'type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0x86)},{'name':a221_0x4d12be(0xfc),'meowKey':a221_0x4d12be(0xe5),'type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0xfe)},{'name':a221_0x4d12be(0xcb),'meowKey':'global','type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0xa8)},{'name':a221_0x4d12be(0xbc),'meowKey':a221_0x4d12be(0xbc),'type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0xb3)},{'name':'ci','meowKey':'ci','type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0x9c),'hidden':!![]},{'name':'help','meowKey':'help','type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0x8b)},{'name':a221_0x4d12be(0x104),'meowKey':a221_0x4d12be(0x104),'type':'string','description':a221_0x4d12be(0x10f),'hidden':!![],'hint':a221_0x4d12be(0xa9)},{'name':a221_0x4d12be(0x8e),'meowKey':'name','type':'string','description':a221_0x4d12be(0x9b),'hidden':!![]},{'name':a221_0x4d12be(0xef),'meowKey':a221_0x4d12be(0xef),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xc6),'hidden':!![]},{'name':a221_0x4d12be(0x10e),'meowKey':a221_0x4d12be(0x10e),'type':'string','description':'Search\x20query','hidden':!![]},{'name':a221_0x4d12be(0xde),'meowKey':a221_0x4d12be(0xde),'type':a221_0x4d12be(0xb5),'description':'Maximum\x20search\x20hits','hidden':!![]},{'name':a221_0x4d12be(0x10d),'meowKey':a221_0x4d12be(0x10d),'type':'boolean','description':'Clear','hidden':!![]},{'name':'watch','meowKey':a221_0x4d12be(0xdd),'type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0xe1),'hidden':!![]},{'name':'output','meowKey':a221_0x4d12be(0xbf),'type':'string','description':a221_0x4d12be(0xfd),'hidden':!![]},{'name':a221_0x4d12be(0x8d),'meowKey':a221_0x4d12be(0x8d),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xcc),'hidden':!![]},{'name':a221_0x4d12be(0xe4),'meowKey':a221_0x4d12be(0xe4),'type':'string','description':a221_0x4d12be(0xfb),'hidden':!![]},{'name':'all','meowKey':a221_0x4d12be(0xff),'type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0xfa),'hidden':!![]},{'name':a221_0x4d12be(0xd2),'meowKey':a221_0x4d12be(0xaf),'type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0xaa),'hidden':!![]},{'name':'id','meowKey':'id','type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xd6),'hidden':!![]},{'name':a221_0x4d12be(0xbd),'meowKey':a221_0x4d12be(0xbd),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xf9),'hidden':!![]},{'name':a221_0x4d12be(0xf0),'meowKey':a221_0x4d12be(0xf0),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xe6),'hidden':!![]},{'name':a221_0x4d12be(0x84),'meowKey':a221_0x4d12be(0x84),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xd3),'hidden':!![]},{'name':a221_0x4d12be(0x10a),'meowKey':a221_0x4d12be(0x90),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xcd),'hidden':!![]},{'name':a221_0x4d12be(0xb6),'meowKey':a221_0x4d12be(0xb6),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xcd),'hidden':!![]},{'name':'db-id','meowKey':'dbId','type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0x8a),'hidden':!![]},{'name':a221_0x4d12be(0xd1),'meowKey':a221_0x4d12be(0xd1),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0x8a),'hidden':!![]},{'name':a221_0x4d12be(0x93),'meowKey':a221_0x4d12be(0x93),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0x7f),'hidden':!![]},{'name':a221_0x4d12be(0xca),'meowKey':'descriptionFile','type':'string','description':'Description\x20file','hidden':!![]},{'name':a221_0x4d12be(0xb0),'meowKey':a221_0x4d12be(0xb0),'type':'string','description':a221_0x4d12be(0x109),'hidden':!![]},{'name':a221_0x4d12be(0xc2),'meowKey':a221_0x4d12be(0xc2),'type':a221_0x4d12be(0xb5),'description':'Page\x20size','hidden':!![]},{'name':a221_0x4d12be(0xc1),'meowKey':a221_0x4d12be(0xc1),'type':'string','description':'Keyword\x20filter','hidden':!![]},{'name':a221_0x4d12be(0xf3),'meowKey':a221_0x4d12be(0xf3),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xab),'hidden':!![]},{'name':a221_0x4d12be(0xee),'meowKey':'sql','type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0x83),'hidden':!![]},{'name':a221_0x4d12be(0x91),'meowKey':a221_0x4d12be(0x91),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0x9d),'hidden':!![]},{'name':a221_0x4d12be(0x97),'meowKey':a221_0x4d12be(0x97),'type':'string','description':a221_0x4d12be(0xba),'hidden':!![]},{'name':a221_0x4d12be(0xf8),'meowKey':a221_0x4d12be(0xf8),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xbe),'hidden':!![]},{'name':a221_0x4d12be(0x106),'meowKey':a221_0x4d12be(0xc9),'type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0xa5),'hidden':!![]},{'name':a221_0x4d12be(0xdb),'meowKey':a221_0x4d12be(0xdb),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xe3),'hidden':!![]},{'name':a221_0x4d12be(0xc4),'meowKey':a221_0x4d12be(0xc4),'type':a221_0x4d12be(0xb5),'description':'Config\x20value','hidden':!![]},{'name':a221_0x4d12be(0xbb),'meowKey':a221_0x4d12be(0xbb),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0x85),'hidden':!![]},{'name':a221_0x4d12be(0xea),'meowKey':'stdin','type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0xa4),'hidden':!![]},{'name':'from-env','meowKey':'fromEnv','type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xdf),'hidden':!![]},{'name':a221_0x4d12be(0xf5),'meowKey':a221_0x4d12be(0xf5),'type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0xa7),'hidden':!![]},{'name':a221_0x4d12be(0x99),'meowKey':a221_0x4d12be(0x99),'type':'boolean','description':a221_0x4d12be(0xc5),'hidden':!![]},{'name':'confirm','meowKey':a221_0x4d12be(0xd0),'type':'boolean','description':a221_0x4d12be(0x9a),'hidden':!![]},{'name':a221_0x4d12be(0xe2),'meowKey':a221_0x4d12be(0xe2),'type':'boolean','description':a221_0x4d12be(0xa2),'hidden':!![]},{'name':a221_0x4d12be(0xf7),'meowKey':a221_0x4d12be(0xf7),'type':a221_0x4d12be(0xdc),'description':a221_0x4d12be(0xf4),'hidden':!![]},{'name':'expected-count','meowKey':'expectedCount','type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0x95),'hidden':!![]},{'name':a221_0x4d12be(0x102),'meowKey':'label','type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xae),'hidden':!![]},{'name':a221_0x4d12be(0x81),'meowKey':'parentId','type':'string','description':a221_0x4d12be(0x107),'hidden':!![]},{'name':a221_0x4d12be(0x8c),'meowKey':'sort','type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xc3),'hidden':!![]},{'name':a221_0x4d12be(0xe8),'meowKey':a221_0x4d12be(0x92),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0x103),'hidden':!![]},{'name':a221_0x4d12be(0x98),'meowKey':'expectPath','type':'string','description':a221_0x4d12be(0xb8),'hidden':!![]},{'name':a221_0x4d12be(0x80),'meowKey':a221_0x4d12be(0xed),'type':'string','description':a221_0x4d12be(0xd9),'hidden':!![]},{'name':a221_0x4d12be(0xda),'meowKey':a221_0x4d12be(0xeb),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xec),'hidden':!![]},{'name':'task-id','meowKey':a221_0x4d12be(0xb4),'type':a221_0x4d12be(0xb5),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a221_0x4d12be(0x89),'meowKey':a221_0x4d12be(0x100),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xba),'hidden':!![]},{'name':a221_0x4d12be(0xc7),'meowKey':a221_0x4d12be(0x10b),'type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0xf6),'hidden':!![]},{'name':a221_0x4d12be(0xb7),'meowKey':'codes','type':a221_0x4d12be(0xb5),'description':a221_0x4d12be(0x10c),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a221_0x4d12be(0x82),a221_0x4d12be(0x110),a221_0x4d12be(0x94),a221_0x4d12be(0xf1),'jq','dry-run','yes',a221_0x4d12be(0xfc),'ci']);export function buildMeowFlags(){const _0x2d396d=a221_0x4d12be;return Object['fromEntries'](GLOBAL_FLAGS[_0x2d396d(0xc0)](_0x4eb211=>[_0x4eb211[_0x2d396d(0x96)],{'type':_0x4eb211[_0x2d396d(0xbd)]}]));}
|
|
1
|
+
const a234_0x3a7383=a234_0x486f;(function(_0x1eb152,_0xaedf10){const _0x19b479=a234_0x486f,_0x333302=_0x1eb152();while(!![]){try{const _0x579c6e=-parseInt(_0x19b479(0x21b))/0x1*(-parseInt(_0x19b479(0x1ea))/0x2)+-parseInt(_0x19b479(0x20c))/0x3+parseInt(_0x19b479(0x1ed))/0x4*(-parseInt(_0x19b479(0x218))/0x5)+parseInt(_0x19b479(0x1e3))/0x6+parseInt(_0x19b479(0x209))/0x7+-parseInt(_0x19b479(0x1d6))/0x8+parseInt(_0x19b479(0x1fc))/0x9*(parseInt(_0x19b479(0x221))/0xa);if(_0x579c6e===_0xaedf10)break;else _0x333302['push'](_0x333302['shift']());}catch(_0x45cd68){_0x333302['push'](_0x333302['shift']());}}}(a234_0x5e50,0x1abd6));function a234_0x5e50(){const _0xba3e43=['Clear','Output\x20format','Tags','code','clear','File\x20path','topk','description','remote','Apply\x20to\x20all','Title','<code>','keyword','db-id','label','page','production\x20|\x20daily','force','functionNode','enable-bff-save','Keyword\x20filter','Output\x20path','verbose','appcode','file','Force\x20overwrite','SQL\x20string','Confirm\x20destructive\x20action','schemas','Target\x20path','value','taskId','expected-count','reveal','target','key','expected-children-count','<expr>','sql','Config\x20value','global','Override\x20appcode','234856dguRfa','boolean','Force\x20non-interactive\x20mode\x20(CI)','zh-CN\x20|\x20en-US','sql-name','yes','Page\x20size','Asynchronous\x20task\x20ID','Skip\x20confirmation\x20for\x20high-risk\x20writes','help','Expected\x20current\x20child\x20count','confirm','output','267774tIRwrq','tags','@lovrabet/rabetbase-cli','Comma-separated\x20metadata\x20codes','JSON\x20params','pagesize','all','46894SLzgee','dryRun','description-file','136oomfWy','skip-imports','dry-run','expectedCount','DB\x20ID','Rabetbase\x20CLI','Function\x20node','Code\x20filter','Select\x20app\x20profile\x20by\x20name','Read\x20value\x20from\x20stdin','sqlcode','Expected\x20current\x20menu\x20path','fromEntries','function-node','rabetbase','1234098eUyNms','non-interactive','Alias\x20for\x20--non-interactive','Read\x20value\x20from\x20environment\x20variable','sort','stdin','from-env','app','Environment','task-id','expect-parent-id','Menu\x20label','fromEnv','554477uipjcx','string','sqlName','139044pgjQZt','skipImports','query','enableBffSave','Dataset\x20code','expect-path','title','operationType','watch','Name','locale','Config\x20key','14585tRmAqK','env','dbid','1DTzEUd','Expected\x20current\x20parent\x20menu\x20id','sqlname','parent-id','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Enable\x20Backend\x20Function\x20save','10JKvSAg','operation-type','expectPath','parentId','Watch\x20mode','params','SQL\x20name','format','name','project','type','operation','Record\x20ID','Description\x20file','expectParentId','Verbose\x20output','map'];a234_0x5e50=function(){return _0xba3e43;};return a234_0x5e50();}export const CLI_BIN_NAME=a234_0x3a7383(0x1fb);function a234_0x486f(_0x140128,_0x45d282){_0x140128=_0x140128-0x1d6;const _0x5e505e=a234_0x5e50();let _0x486f44=_0x5e505e[_0x140128];return _0x486f44;}export const CLI_DISPLAY_NAME=a234_0x3a7383(0x1f2);export const NPM_PACKAGE_NAME=a234_0x3a7383(0x1e5);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a234_0x3a7383(0x249),'type':a234_0x3a7383(0x20a),'description':a234_0x3a7383(0x25b),'hint':a234_0x3a7383(0x23d)},{'name':'app','meowKey':a234_0x3a7383(0x203),'type':a234_0x3a7383(0x20a),'description':a234_0x3a7383(0x1f5),'hint':'<name>'},{'name':a234_0x3a7383(0x219),'meowKey':'env','type':a234_0x3a7383(0x20a),'description':a234_0x3a7383(0x204),'hint':a234_0x3a7383(0x242)},{'name':a234_0x3a7383(0x228),'meowKey':a234_0x3a7383(0x228),'type':a234_0x3a7383(0x20a),'description':a234_0x3a7383(0x233),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':'string','description':a234_0x3a7383(0x21f),'hint':a234_0x3a7383(0x257)},{'name':a234_0x3a7383(0x1ef),'meowKey':a234_0x3a7383(0x1eb),'type':'boolean','description':'Preview\x20operation\x20without\x20executing'},{'name':'yes','meowKey':a234_0x3a7383(0x1db),'type':a234_0x3a7383(0x1d7),'description':a234_0x3a7383(0x1de)},{'name':a234_0x3a7383(0x1fd),'meowKey':'nonInteractive','type':a234_0x3a7383(0x1d7),'description':a234_0x3a7383(0x1d8)},{'name':a234_0x3a7383(0x25a),'meowKey':a234_0x3a7383(0x25a),'type':a234_0x3a7383(0x1d7),'description':'Use\x20global\x20config\x20scope'},{'name':a234_0x3a7383(0x22a),'meowKey':a234_0x3a7383(0x22a),'type':'boolean','description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a234_0x3a7383(0x1d7),'description':a234_0x3a7383(0x1fe),'hidden':!![]},{'name':a234_0x3a7383(0x1df),'meowKey':a234_0x3a7383(0x1df),'type':a234_0x3a7383(0x1d7),'description':'Show\x20help'},{'name':a234_0x3a7383(0x216),'meowKey':a234_0x3a7383(0x216),'type':a234_0x3a7383(0x20a),'description':'App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','hidden':!![],'hint':a234_0x3a7383(0x1d9)},{'name':a234_0x3a7383(0x229),'meowKey':a234_0x3a7383(0x229),'type':'string','description':a234_0x3a7383(0x215),'hidden':!![]},{'name':a234_0x3a7383(0x212),'meowKey':a234_0x3a7383(0x212),'type':a234_0x3a7383(0x20a),'description':a234_0x3a7383(0x23c),'hidden':!![]},{'name':a234_0x3a7383(0x20e),'meowKey':'query','type':a234_0x3a7383(0x20a),'description':'Search\x20query','hidden':!![]},{'name':a234_0x3a7383(0x238),'meowKey':'topk','type':'string','description':'Maximum\x20search\x20hits','hidden':!![]},{'name':a234_0x3a7383(0x236),'meowKey':a234_0x3a7383(0x236),'type':a234_0x3a7383(0x1d7),'description':a234_0x3a7383(0x232),'hidden':!![]},{'name':a234_0x3a7383(0x214),'meowKey':'watch','type':a234_0x3a7383(0x1d7),'description':a234_0x3a7383(0x225),'hidden':!![]},{'name':a234_0x3a7383(0x1e2),'meowKey':a234_0x3a7383(0x1e2),'type':'string','description':a234_0x3a7383(0x247),'hidden':!![]},{'name':a234_0x3a7383(0x226),'meowKey':a234_0x3a7383(0x226),'type':a234_0x3a7383(0x20a),'description':a234_0x3a7383(0x1e7),'hidden':!![]},{'name':'datasetcode','meowKey':'datasetcode','type':a234_0x3a7383(0x20a),'description':a234_0x3a7383(0x210),'hidden':!![]},{'name':a234_0x3a7383(0x1e9),'meowKey':'all','type':a234_0x3a7383(0x1d7),'description':a234_0x3a7383(0x23b),'hidden':!![]},{'name':a234_0x3a7383(0x245),'meowKey':a234_0x3a7383(0x20f),'type':'boolean','description':a234_0x3a7383(0x220),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':a234_0x3a7383(0x22d),'hidden':!![]},{'name':a234_0x3a7383(0x22b),'meowKey':a234_0x3a7383(0x22b),'type':a234_0x3a7383(0x20a),'description':'Type\x20filter','hidden':!![]},{'name':a234_0x3a7383(0x24a),'meowKey':a234_0x3a7383(0x24a),'type':a234_0x3a7383(0x20a),'description':a234_0x3a7383(0x237),'hidden':!![]},{'name':'sqlcode','meowKey':a234_0x3a7383(0x1f7),'type':a234_0x3a7383(0x20a),'description':'SQL\x20code','hidden':!![]},{'name':a234_0x3a7383(0x1da),'meowKey':a234_0x3a7383(0x20b),'type':'string','description':'SQL\x20name','hidden':!![]},{'name':a234_0x3a7383(0x21d),'meowKey':a234_0x3a7383(0x21d),'type':a234_0x3a7383(0x20a),'description':a234_0x3a7383(0x227),'hidden':!![]},{'name':a234_0x3a7383(0x23f),'meowKey':'dbId','type':a234_0x3a7383(0x20a),'description':'DB\x20ID','hidden':!![]},{'name':a234_0x3a7383(0x21a),'meowKey':a234_0x3a7383(0x21a),'type':a234_0x3a7383(0x20a),'description':a234_0x3a7383(0x1f1),'hidden':!![]},{'name':'description','meowKey':a234_0x3a7383(0x239),'type':a234_0x3a7383(0x20a),'description':'Description','hidden':!![]},{'name':a234_0x3a7383(0x1ec),'meowKey':'descriptionFile','type':a234_0x3a7383(0x20a),'description':a234_0x3a7383(0x22e),'hidden':!![]},{'name':a234_0x3a7383(0x241),'meowKey':a234_0x3a7383(0x241),'type':'string','description':'Page\x20number','hidden':!![]},{'name':a234_0x3a7383(0x1e8),'meowKey':a234_0x3a7383(0x1e8),'type':a234_0x3a7383(0x20a),'description':a234_0x3a7383(0x1dc),'hidden':!![]},{'name':'keyword','meowKey':a234_0x3a7383(0x23e),'type':'string','description':a234_0x3a7383(0x246),'hidden':!![]},{'name':a234_0x3a7383(0x235),'meowKey':a234_0x3a7383(0x235),'type':a234_0x3a7383(0x20a),'description':a234_0x3a7383(0x1f4),'hidden':!![]},{'name':a234_0x3a7383(0x258),'meowKey':a234_0x3a7383(0x258),'type':a234_0x3a7383(0x20a),'description':a234_0x3a7383(0x24c),'hidden':!![]},{'name':a234_0x3a7383(0x24e),'meowKey':'schemas','type':a234_0x3a7383(0x20a),'description':'Schemas','hidden':!![]},{'name':a234_0x3a7383(0x22c),'meowKey':a234_0x3a7383(0x22c),'type':a234_0x3a7383(0x20a),'description':'Operation\x20type','hidden':!![]},{'name':a234_0x3a7383(0x254),'meowKey':a234_0x3a7383(0x254),'type':a234_0x3a7383(0x20a),'description':a234_0x3a7383(0x24f),'hidden':!![]},{'name':a234_0x3a7383(0x1ee),'meowKey':a234_0x3a7383(0x20d),'type':a234_0x3a7383(0x1d7),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a234_0x3a7383(0x255),'meowKey':a234_0x3a7383(0x255),'type':a234_0x3a7383(0x20a),'description':a234_0x3a7383(0x217),'hidden':!![]},{'name':a234_0x3a7383(0x250),'meowKey':a234_0x3a7383(0x250),'type':a234_0x3a7383(0x20a),'description':a234_0x3a7383(0x259),'hidden':!![]},{'name':a234_0x3a7383(0x1e4),'meowKey':a234_0x3a7383(0x1e4),'type':a234_0x3a7383(0x20a),'description':a234_0x3a7383(0x234),'hidden':!![]},{'name':a234_0x3a7383(0x201),'meowKey':a234_0x3a7383(0x201),'type':a234_0x3a7383(0x1d7),'description':a234_0x3a7383(0x1f6),'hidden':!![]},{'name':a234_0x3a7383(0x202),'meowKey':a234_0x3a7383(0x208),'type':a234_0x3a7383(0x20a),'description':a234_0x3a7383(0x1ff),'hidden':!![]},{'name':'reveal','meowKey':a234_0x3a7383(0x253),'type':'boolean','description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':'force','meowKey':a234_0x3a7383(0x243),'type':a234_0x3a7383(0x1d7),'description':a234_0x3a7383(0x24b),'hidden':!![]},{'name':a234_0x3a7383(0x1e1),'meowKey':a234_0x3a7383(0x1e1),'type':'boolean','description':a234_0x3a7383(0x24d),'hidden':!![]},{'name':a234_0x3a7383(0x23a),'meowKey':'remote','type':a234_0x3a7383(0x1d7),'description':'Use\x20remote','hidden':!![]},{'name':a234_0x3a7383(0x248),'meowKey':a234_0x3a7383(0x248),'type':a234_0x3a7383(0x1d7),'description':a234_0x3a7383(0x230),'hidden':!![]},{'name':a234_0x3a7383(0x252),'meowKey':a234_0x3a7383(0x1f0),'type':'string','description':'Expected\x20affected\x20count','hidden':!![]},{'name':'label','meowKey':a234_0x3a7383(0x240),'type':'string','description':a234_0x3a7383(0x207),'hidden':!![]},{'name':a234_0x3a7383(0x21e),'meowKey':a234_0x3a7383(0x224),'type':'string','description':'Parent\x20menu\x20id','hidden':!![]},{'name':'sort','meowKey':a234_0x3a7383(0x200),'type':a234_0x3a7383(0x20a),'description':'Menu\x20sort\x20value','hidden':!![]},{'name':a234_0x3a7383(0x206),'meowKey':a234_0x3a7383(0x22f),'type':'string','description':a234_0x3a7383(0x21c),'hidden':!![]},{'name':a234_0x3a7383(0x211),'meowKey':a234_0x3a7383(0x223),'type':a234_0x3a7383(0x20a),'description':a234_0x3a7383(0x1f8),'hidden':!![]},{'name':a234_0x3a7383(0x256),'meowKey':'expectedChildrenCount','type':a234_0x3a7383(0x20a),'description':a234_0x3a7383(0x1e0),'hidden':!![]},{'name':'menu-ids','meowKey':'menuIds','type':'string','description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':a234_0x3a7383(0x205),'meowKey':a234_0x3a7383(0x251),'type':'string','description':a234_0x3a7383(0x1dd),'hidden':!![]},{'name':a234_0x3a7383(0x222),'meowKey':a234_0x3a7383(0x213),'type':a234_0x3a7383(0x20a),'description':'Operation\x20type','hidden':!![]},{'name':a234_0x3a7383(0x1fa),'meowKey':a234_0x3a7383(0x244),'type':a234_0x3a7383(0x20a),'description':a234_0x3a7383(0x1f3),'hidden':!![]},{'name':'codes','meowKey':'codes','type':a234_0x3a7383(0x20a),'description':a234_0x3a7383(0x1e6),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a234_0x3a7383(0x203),'env',a234_0x3a7383(0x228),'jq',a234_0x3a7383(0x1ef),a234_0x3a7383(0x1db),a234_0x3a7383(0x1fd),'ci']);export function buildMeowFlags(){const _0x20c65a=a234_0x3a7383;return Object[_0x20c65a(0x1f9)](GLOBAL_FLAGS[_0x20c65a(0x231)](_0x45eebf=>[_0x45eebf['meowKey'],{'type':_0x45eebf[_0x20c65a(0x22b)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a235_0xc34554=a235_0x581a;(function(_0x198ea7,_0x589542){const _0x8032d2=a235_0x581a,_0x4d2769=_0x198ea7();while(!![]){try{const _0x1b69bb=parseInt(_0x8032d2(0x186))/0x1+-parseInt(_0x8032d2(0x18b))/0x2+-parseInt(_0x8032d2(0x189))/0x3+parseInt(_0x8032d2(0x184))/0x4*(-parseInt(_0x8032d2(0x18d))/0x5)+parseInt(_0x8032d2(0x185))/0x6+parseInt(_0x8032d2(0x18e))/0x7+-parseInt(_0x8032d2(0x188))/0x8*(-parseInt(_0x8032d2(0x187))/0x9);if(_0x1b69bb===_0x589542)break;else _0x4d2769['push'](_0x4d2769['shift']());}catch(_0x207af3){_0x4d2769['push'](_0x4d2769['shift']());}}}(a235_0x6283,0x80281));function a235_0x581a(_0x598140,_0x5f05df){_0x598140=_0x598140-0x184;const _0x628335=a235_0x6283();let _0x581a18=_0x628335[_0x598140];return _0x581a18;}function a235_0x6283(){const _0x50abb2=['432451jWObIO','9sqAhxQ','1707688BJVHuR','1836207vhWAxW','write','1101720QswjIB','compress','925jMxGEZ','4591748iaBtdF','3132qMZfyk','3185022kgQrdB'];a235_0x6283=function(){return _0x50abb2;};return a235_0x6283();}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':'production','format':a235_0xc34554(0x18c),'locale':'en-US','riskLevel':a235_0xc34554(0x18a),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a235_0xc34554(0x18c);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a236_0x5f2c(){const _0x27c1d2=['certificateDomain','cdn','12YjsJfL','skill','appDomain','userDomain','serviceDomains','6nTSjXn','hostname','runtime','7116309BQwBSY','34GavSIi','apiDomain','kbDomain','skillDomain','5718540oREteE','trim','/app/','43557VgqPxj','localDomain','user','4505670sPfNie','38539193cKHXJe','144RhbUGO','196007IvbLTK','/web-app/app/','66448dFzcIy','232omEjdi','production'];a236_0x5f2c=function(){return _0x27c1d2;};return a236_0x5f2c();}const a236_0x25eab0=a236_0x9464;(function(_0x53c3ea,_0x59ad3e){const _0x5c2624=a236_0x9464,_0x5f467a=_0x53c3ea();while(!![]){try{const _0xc347a=-parseInt(_0x5c2624(0x114))/0x1*(parseInt(_0x5c2624(0x123))/0x2)+-parseInt(_0x5c2624(0x11b))/0x3*(parseInt(_0x5c2624(0x120))/0x4)+parseInt(_0x5c2624(0x11e))/0x5*(parseInt(_0x5c2624(0x12d))/0x6)+parseInt(_0x5c2624(0x121))/0x7*(-parseInt(_0x5c2624(0x124))/0x8)+-parseInt(_0x5c2624(0x113))/0x9+-parseInt(_0x5c2624(0x118))/0xa+-parseInt(_0x5c2624(0x11f))/0xb*(-parseInt(_0x5c2624(0x128))/0xc);if(_0xc347a===_0x59ad3e)break;else _0x5f467a['push'](_0x5f467a['shift']());}catch(_0x4dd233){_0x5f467a['push'](_0x5f467a['shift']());}}}(a236_0x5f2c,0x8d115));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x375fc4=a236_0x9464,_0x144714=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x144714[_0x375fc4(0x12c)][_0x375fc4(0x125)]:_0x144714[_0x375fc4(0x12c)]['daily']??_0x144714[_0x375fc4(0x12c)]['production'];}export function initDomains(_0x43822a){const _0x545f3e=a236_0x9464;customApiDomain=_0x43822a?.[_0x545f3e(0x115)],customUserDomain=_0x43822a?.[_0x545f3e(0x12b)],customRuntimeDomain=_0x43822a?.['runtimeDomain'],customSkillDomain=_0x43822a?.[_0x545f3e(0x117)],customKbDomain=_0x43822a?.[_0x545f3e(0x116)],customAppDomain=_0x43822a?.[_0x545f3e(0x12a)],customLocalDomain=_0x43822a?.[_0x545f3e(0x11c)],customCertificateDomain=_0x43822a?.[_0x545f3e(0x126)],customCdn=_0x43822a?.[_0x545f3e(0x127)],activeRegion=_0x43822a?.['region']??DEFAULT_LOVRABET_REGION;}function a236_0x9464(_0x449e81,_0x248446){_0x449e81=_0x449e81-0x113;const _0x5f2c8f=a236_0x5f2c();let _0x946406=_0x5f2c8f[_0x449e81];return _0x946406;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a236_0x25eab0(0x11d)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()['runtime'];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a236_0x25eab0(0x129)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()['app'];export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){const _0x4becdb=a236_0x25eab0;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x4becdb(0x12f)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x422b66=>{const _0x3e4da8=a236_0x25eab0,_0x26dafe=encodeURIComponent(_0x422b66[_0x3e4da8(0x119)]());return isProduction(getEnv())?getAppDomain()+_0x3e4da8(0x11a)+_0x26dafe:getAppDomain()+_0x3e4da8(0x122)+_0x26dafe;};export const getPublishedAppDomain=_0x5c8523=>{const _0x3f8a15=a236_0x25eab0,_0x3512f0=new URL(getAppDomain());return _0x3512f0[_0x3f8a15(0x12e)]=_0x5c8523['trim']()+'.'+_0x3512f0['hostname'],_0x3512f0['origin'];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a237_0x4cc7a9=a237_0x573c;(function(_0x5c7815,_0x383905){const _0x30cb27=a237_0x573c,_0x4babcf=_0x5c7815();while(!![]){try{const _0x142158=-parseInt(_0x30cb27(0x128))/0x1+-parseInt(_0x30cb27(0x137))/0x2*(parseInt(_0x30cb27(0x129))/0x3)+-parseInt(_0x30cb27(0x12f))/0x4*(-parseInt(_0x30cb27(0x131))/0x5)+parseInt(_0x30cb27(0x132))/0x6*(-parseInt(_0x30cb27(0x12e))/0x7)+-parseInt(_0x30cb27(0x12c))/0x8+parseInt(_0x30cb27(0x133))/0x9*(-parseInt(_0x30cb27(0x138))/0xa)+-parseInt(_0x30cb27(0x12a))/0xb*(-parseInt(_0x30cb27(0x130))/0xc);if(_0x142158===_0x383905)break;else _0x4babcf['push'](_0x4babcf['shift']());}catch(_0x5b315a){_0x4babcf['push'](_0x4babcf['shift']());}}}(a237_0x551f,0x47a88));export const RABETBASE_ENV_VALUES=[a237_0x4cc7a9(0x135),a237_0x4cc7a9(0x12d)];export function normalizeEnv(_0x324e6b){const _0x3a7d88=a237_0x4cc7a9;return _0x324e6b===_0x3a7d88(0x12b)?_0x3a7d88(0x135):_0x324e6b;}export function isProduction(_0x1e375e){const _0x5d1834=a237_0x4cc7a9;return normalizeEnv(_0x1e375e)===_0x5d1834(0x135);}export function isDaily(_0x352891){const _0xd54279=a237_0x4cc7a9;return normalizeEnv(_0x352891)===_0xd54279(0x12d);}function a237_0x573c(_0x4865a9,_0x14c387){_0x4865a9=_0x4865a9-0x128;const _0x551fec=a237_0x551f();let _0x573c3a=_0x551fec[_0x4865a9];return _0x573c3a;}export function isDev(_0x388f22){const _0x3f81c0=a237_0x4cc7a9,_0x34216e=normalizeEnv(_0x388f22);return _0x34216e===_0x3f81c0(0x134)||_0x34216e===_0x3f81c0(0x136);}function a237_0x551f(){const _0x12113e=['3141438AyIdzY','9zECKMf','development','production','dev','8rWNiau','1475670qkDeLo','412509ejKDaG','29082FWcpcC','286BdmLsC','online','2870120ajcCUY','daily','7fjfPKj','19496hrhHfC','805596ntBJnB','30TBKrLx'];a237_0x551f=function(){return _0x12113e;};return a237_0x551f();}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a237_0x4cc7a9(0x135));export function getEnv(){return env;}export function initEnv(_0x2775a0){env=normalizeEnv(_0x2775a0);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a238_0x155e(_0x53af98,_0x4fcac5){_0x53af98=_0x53af98-0xaf;const _0x2a4dcd=a238_0x2a4d();let _0x155e38=_0x2a4dcd[_0x53af98];return _0x155e38;}const a238_0x5b11b=a238_0x155e;(function(_0x212988,_0x1e69b8){const _0x2f065f=a238_0x155e,_0x1dc7fd=_0x212988();while(!![]){try{const _0x2d9eba=parseInt(_0x2f065f(0xb8))/0x1*(-parseInt(_0x2f065f(0xb4))/0x2)+parseInt(_0x2f065f(0xb3))/0x3*(-parseInt(_0x2f065f(0xb1))/0x4)+parseInt(_0x2f065f(0xb9))/0x5+parseInt(_0x2f065f(0xb2))/0x6+parseInt(_0x2f065f(0xb0))/0x7+parseInt(_0x2f065f(0xb7))/0x8*(-parseInt(_0x2f065f(0xbb))/0x9)+parseInt(_0x2f065f(0xaf))/0xa;if(_0x2d9eba===_0x1e69b8)break;else _0x1dc7fd['push'](_0x1dc7fd['shift']());}catch(_0x59c8ce){_0x1dc7fd['push'](_0x1dc7fd['shift']());}}}(a238_0x2a4d,0x5b05a));function a238_0x2a4d(){const _0xa4f18d=['json','compress','4971696wBKTcK','46VczzOx','3466940UepbFY','pretty','9vOaxUi','704700pVgxlm','5065865zXWQfD','651364tWPhxO','962112qfncXH','9LTysRu','7178fkqViM'];a238_0x2a4d=function(){return _0xa4f18d;};return a238_0x2a4d();}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a238_0x5b11b(0xb5),a238_0x5b11b(0xba),a238_0x5b11b(0xb6)];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a239_0xe38bc3=a239_0x37ed;(function(_0x1ecf5a,_0x3cd736){const _0xd81c34=a239_0x37ed,_0xf9951c=_0x1ecf5a();while(!![]){try{const _0x29184c=-parseInt(_0xd81c34(0x11d))/0x1*(-parseInt(_0xd81c34(0x119))/0x2)+-parseInt(_0xd81c34(0x116))/0x3*(parseInt(_0xd81c34(0x11c))/0x4)+parseInt(_0xd81c34(0x114))/0x5+-parseInt(_0xd81c34(0x118))/0x6*(parseInt(_0xd81c34(0x11b))/0x7)+parseInt(_0xd81c34(0x113))/0x8*(parseInt(_0xd81c34(0x117))/0x9)+-parseInt(_0xd81c34(0x11a))/0xa+parseInt(_0xd81c34(0x115))/0xb;if(_0x29184c===_0x3cd736)break;else _0xf9951c['push'](_0xf9951c['shift']());}catch(_0x3d26f5){_0xf9951c['push'](_0xf9951c['shift']());}}}(a239_0x1d19,0xc1dbf));function a239_0x37ed(_0x4ef258,_0x87f383){_0x4ef258=_0x4ef258-0x113;const _0x1d19f8=a239_0x1d19();let _0x37ed93=_0x1d19f8[_0x4ef258];return _0x37ed93;}export const DEFAULT_API_DIR=a239_0xe38bc3(0x11e);function a239_0x1d19(){const _0x494748=['361XtzlQd','./src/api','4278712TXRTtb','2823755qVmpnp','29804489wGgiem','39sTwyJl','9qUuKAb','138NqfhAu','3518BsZmlJ','9267280VOngZJ','412454wIhTFp','420956aanlIJ'];a239_0x1d19=function(){return _0x494748;};return a239_0x1d19();}
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x221c8c,_0x1c3ef6){const _0x3c3387=a240_0x426f,_0x453b65=_0x221c8c();while(!![]){try{const _0x55b045=parseInt(_0x3c3387(0x1eb))/0x1*(-parseInt(_0x3c3387(0x1e9))/0x2)+-parseInt(_0x3c3387(0x1ea))/0x3+parseInt(_0x3c3387(0x1e5))/0x4+parseInt(_0x3c3387(0x1e7))/0x5+parseInt(_0x3c3387(0x1e3))/0x6*(-parseInt(_0x3c3387(0x1ee))/0x7)+-parseInt(_0x3c3387(0x1ed))/0x8+-parseInt(_0x3c3387(0x1e6))/0x9*(-parseInt(_0x3c3387(0x1ec))/0xa);if(_0x55b045===_0x1c3ef6)break;else _0x453b65['push'](_0x453b65['shift']());}catch(_0x20352a){_0x453b65['push'](_0x453b65['shift']());}}}(a240_0x3dac,0xb2e63));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;function a240_0x426f(_0x3f3623,_0x5eb257){_0x3f3623=_0x3f3623-0x1e3;const _0x3dac4b=a240_0x3dac();let _0x426fde=_0x3dac4b[_0x3f3623];return _0x426fde;}function a240_0x3dac(){const _0x4d2fa6=['string','6GHifCc','3162372CjAOha','328714QOixAz','4601090RjQyNd','2617880iTMCvO','49mnikgn','614634BNGexz','includes','4138180OTCGtU','45DRpONY','2411275KAEaUU'];a240_0x3dac=function(){return _0x4d2fa6;};return a240_0x3dac();}export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x167b16){const _0x1cd078=a240_0x426f;return typeof _0x167b16===_0x1cd078(0x1e8)&&LOVRABET_REGION_VALUES['includes'](_0x167b16);}export function isEnabledLovrabetRegion(_0x413b3a){const _0x4c0c8f=a240_0x426f;return typeof _0x413b3a===_0x4c0c8f(0x1e8)&&ENABLED_LOVRABET_REGION_VALUES[_0x4c0c8f(0x1e4)](_0x413b3a);}export function normalizeLovrabetRegion(_0x4027a8){const _0x40b97a=a240_0x426f;if(typeof _0x4027a8!==_0x40b97a(0x1e8))return undefined;const _0x3bf255=REGION_ALIASES[_0x4027a8]??_0x4027a8;return isLovrabetRegion(_0x3bf255)?_0x3bf255:undefined;}export function isInvalidLovrabetRegion(_0x52766a){return _0x52766a!==undefined&&_0x52766a!==null&&_0x52766a!==''&&normalizeLovrabetRegion(_0x52766a)===undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a241_0x53fe(_0x1742ae,_0x554d85){_0x1742ae=_0x1742ae-0xf1;const _0x2ef8ea=a241_0x2ef8();let _0x53fe4b=_0x2ef8ea[_0x1742ae];return _0x53fe4b;}const a241_0x3c46b=a241_0x53fe;function a241_0x2ef8(){const _0x3f9cdd=['72737WieUto','713715ttkcWi','76116fQAOXN','825JbdXQV','read','696DeZfBM','10143880KexIKv','high-risk-write','170UuvRPd','4GnMIFL','128796vjcLSL','45qeZFuC','19785rIafnQ','1851540ELLgQX'];a241_0x2ef8=function(){return _0x3f9cdd;};return a241_0x2ef8();}(function(_0x5754dc,_0x12d894){const _0x2dfb75=a241_0x53fe,_0x11a436=_0x5754dc();while(!![]){try{const _0x2be050=parseInt(_0x2dfb75(0xfc))/0x1+-parseInt(_0x2dfb75(0xf4))/0x2*(-parseInt(_0x2dfb75(0xf8))/0x3)+-parseInt(_0x2dfb75(0xf5))/0x4*(parseInt(_0x2dfb75(0xfb))/0x5)+-parseInt(_0x2dfb75(0xf1))/0x6*(parseInt(_0x2dfb75(0xfa))/0x7)+parseInt(_0x2dfb75(0xf2))/0x8+parseInt(_0x2dfb75(0xf7))/0x9*(parseInt(_0x2dfb75(0xf9))/0xa)+parseInt(_0x2dfb75(0xfd))/0xb*(-parseInt(_0x2dfb75(0xf6))/0xc);if(_0x2be050===_0x12d894)break;else _0x11a436['push'](_0x11a436['shift']());}catch(_0x144f40){_0x11a436['push'](_0x11a436['shift']());}}}(a241_0x2ef8,0xa55fc));export const RISK_LEVEL_VALUES=[a241_0x3c46b(0xfe),'write',a241_0x3c46b(0xf3)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x16dcac,_0x25a7ac){const _0x3b7a66=a242_0x5761,_0x55e539=_0x16dcac();while(!![]){try{const _0x5a85d1=parseInt(_0x3b7a66(0x19b))/0x1+-parseInt(_0x3b7a66(0x1a3))/0x2*(parseInt(_0x3b7a66(0x19d))/0x3)+-parseInt(_0x3b7a66(0x1a0))/0x4*(parseInt(_0x3b7a66(0x197))/0x5)+-parseInt(_0x3b7a66(0x1a2))/0x6*(-parseInt(_0x3b7a66(0x19a))/0x7)+-parseInt(_0x3b7a66(0x198))/0x8*(-parseInt(_0x3b7a66(0x19c))/0x9)+-parseInt(_0x3b7a66(0x1a1))/0xa+parseInt(_0x3b7a66(0x19f))/0xb;if(_0x5a85d1===_0x25a7ac)break;else _0x55e539['push'](_0x55e539['shift']());}catch(_0x516fb1){_0x55e539['push'](_0x55e539['shift']());}}}(a242_0x1686,0x3c1f1));function a242_0x1686(){const _0x4fba14=['500DdosYG','5416CawBzj','Official\x20routing\x20for\x20region\x20\x22','35EIXhWu','114490rRqboI','5526PISnao','975333hoKKnv','lovrabet','3807859UvQiaj','16916cFOOaS','2745090hILUnT','470928FyHRlJ','2kfFwuk','libraries'];a242_0x1686=function(){return _0x4fba14;};return a242_0x1686();}function a242_0x5761(_0x4d6297,_0x2e95de){_0x4d6297=_0x4d6297-0x196;const _0x1686bd=a242_0x1686();let _0x5761e3=_0x1686bd[_0x4d6297];return _0x5761e3;}import{OFFICIAL_ROUTING_PROFILES as a242_0x14690b,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a242_0x14690b;export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x3a0ec6){return OFFICIAL_ROUTING_PROFILES[_0x3a0ec6];}export function getOfficialRoutingCdn(_0x1164ef){const _0x2bcad4=a242_0x5761,_0xa9961f=getOfficialRoutingProfile(_0x1164ef)['cdn'];if(!_0xa9961f['lovrabet'])throw new Error(_0x2bcad4(0x199)+_0x1164ef+'\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.');return{'libraries':_0xa9961f[_0x2bcad4(0x196)],'lovrabet':_0xa9961f[_0x2bcad4(0x19e)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x317bb7,_0x4043c4){const _0x234538=a243_0x45dd,_0x3548a2=_0x317bb7();while(!![]){try{const _0x28b35d=-parseInt(_0x234538(0x165))/0x1*(-parseInt(_0x234538(0x172))/0x2)+parseInt(_0x234538(0x163))/0x3*(parseInt(_0x234538(0x15e))/0x4)+parseInt(_0x234538(0x167))/0x5+parseInt(_0x234538(0x155))/0x6+parseInt(_0x234538(0x177))/0x7+-parseInt(_0x234538(0x164))/0x8+-parseInt(_0x234538(0x158))/0x9;if(_0x28b35d===_0x4043c4)break;else _0x3548a2['push'](_0x3548a2['shift']());}catch(_0x1054ef){_0x3548a2['push'](_0x3548a2['shift']());}}}(a243_0x5993,0xe09a1));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function a243_0x5993(){const _0x1d34ce=['PAGE_SIZE','RISK_LEVEL','ENV','globalConfig','appcode','APP','trim','2188bKkLgN','string','projectConfig','env','format','10948238LxdcpF','entries','riskLevel','apps','5849820fuXDNK','FORMAT','length','23636997Xktwzo','locale','high-risk-write','true','cookie','apiDir','708qCCOVf','ACCESS_KEY','object','read','projectPath','3693BxgJHL','6709736TRbllx','802OlVjNH','app','3753700UvpEwM','write','pageSize','keys'];a243_0x5993=function(){return _0x1d34ce;};return a243_0x5993();}function stringConfigValue(_0x53aab1){const _0x1adaf7=a243_0x45dd;return typeof _0x53aab1===_0x1adaf7(0x173)&&_0x53aab1['trim']()?_0x53aab1[_0x1adaf7(0x171)]():undefined;}function appProfiles(_0xb4e76b){const _0x3175f=a243_0x45dd;return _0xb4e76b[_0x3175f(0x154)]&&typeof _0xb4e76b['apps']==='object'?_0xb4e76b[_0x3175f(0x154)]:{};}function resolveDefaultAppName(_0x4e362b){const _0x13a434=a243_0x45dd,_0x5c04fb=stringConfigValue(_0x4e362b['defaultApp']);if(_0x5c04fb)return _0x5c04fb;const _0x114b77=Object[_0x13a434(0x16a)](appProfiles(_0x4e362b));return _0x114b77[_0x13a434(0x157)]===0x1?_0x114b77[0x0]:undefined;}function resolveTopLevelAppCode(_0x35555d){const _0x457827=a243_0x45dd;return stringConfigValue(_0x35555d[_0x457827(0x16f)])||stringConfigValue(_0x35555d['app']);}function a243_0x45dd(_0xeba9cf,_0x18f2cb){_0xeba9cf=_0xeba9cf-0x153;const _0x59936e=a243_0x5993();let _0x45ddb2=_0x59936e[_0xeba9cf];return _0x45ddb2;}function normalizeRiskCeiling(_0x5798e4){const _0x555dc3=a243_0x45dd;if(_0x5798e4===undefined||_0x5798e4===null)return undefined;if(_0x5798e4===_0x555dc3(0x161)||_0x5798e4===_0x555dc3(0x168)||_0x5798e4===_0x555dc3(0x15a))return _0x5798e4;return _0x555dc3(0x161);}function resolveRiskCeiling(..._0x5cd6b4){let _0x2c8691;for(const _0x1928f6 of _0x5cd6b4){const _0x4de467=normalizeRiskCeiling(_0x1928f6);_0x4de467&&(!_0x2c8691||riskLevelOrder(_0x4de467)<riskLevelOrder(_0x2c8691))&&(_0x2c8691=_0x4de467);}return _0x2c8691??DEFAULT_CONFIG_VALUES['riskLevel'];}export function resolveAppConfig({raw:_0x2b90ce,flags:_0x34a646,layers:_0x55c972,readEnv:_0x517cd2}){const _0x16a2f1=a243_0x45dd,_0x357879=_0x55c972?.[_0x16a2f1(0x174)]??{},_0x1d76d0=_0x55c972?.[_0x16a2f1(0x16e)]??{},_0x294ff4=!!_0x55c972?.[_0x16a2f1(0x162)]||Object['keys'](_0x357879)['length']>0x0,_0x3dc4cb=!_0x294ff4,_0x3ec47e=_0x294ff4?resolveDefaultAppName(_0x357879):undefined,_0x192803=_0x3dc4cb?resolveDefaultAppName(_0x1d76d0):undefined,_0x19d0f3=stringConfigValue(_0x34a646[_0x16a2f1(0x166)]),_0x143917=_0x517cd2(_0x16a2f1(0x170)),_0x3f0838={};if(_0x2b90ce['apps']&&typeof _0x2b90ce[_0x16a2f1(0x154)]===_0x16a2f1(0x160))for(const [_0x5a3639,_0x5baf2a]of Object[_0x16a2f1(0x178)](_0x2b90ce[_0x16a2f1(0x154)])){_0x5baf2a&&typeof _0x5baf2a===_0x16a2f1(0x160)&&_0x5baf2a[_0x16a2f1(0x16f)]&&(_0x3f0838[_0x5a3639]=_0x5baf2a);}const _0x47c3d4=_0x3ec47e||_0x192803||resolveDefaultAppName(_0x2b90ce),_0x2074f6=Object[_0x16a2f1(0x16a)](_0x3f0838)[_0x16a2f1(0x157)]>0x0,_0x345732=_0x19d0f3||_0x3ec47e||_0x143917||_0x192803||_0x47c3d4||undefined,_0x40f6ab=stringConfigValue(_0x34a646[_0x16a2f1(0x16f)]),_0x532dc4=_0x40f6ab?Object['entries'](_0x3f0838)['find'](([,_0x1567f2])=>_0x1567f2?.['appcode']===_0x40f6ab):undefined,_0x150b9c=_0x532dc4?.[0x0],_0x2d5ae5=_0x532dc4?.[0x1],_0x3e60a9=_0x40f6ab?_0x150b9c:_0x345732;let _0x4e9e09=_0x3e60a9&&_0x3f0838[_0x3e60a9]?_0x3f0838[_0x3e60a9]:undefined;_0x40f6ab&&_0x2d5ae5&&(_0x4e9e09=_0x2d5ae5);const _0x26eb21=_0x40f6ab?_0x2d5ae5??_0x4e9e09:_0x4e9e09,_0x3fb612=!_0x19d0f3&&!_0x3ec47e&&_0x143917&&_0x3e60a9===_0x143917,_0x15fc75=_0x19d0f3||(_0x3fb612?_0x143917:undefined)||(_0x40f6ab?_0x150b9c:undefined),_0x29a96d=_0x26eb21?.[_0x16a2f1(0x16f)],_0x45c918=_0x294ff4?resolveTopLevelAppCode(_0x357879):undefined,_0x4e0d60=_0x3dc4cb?resolveTopLevelAppCode(_0x1d76d0):undefined,_0x3ebe8b=_0x19d0f3||_0x3ec47e?_0x29a96d:undefined,_0x2e02b0=!_0x19d0f3&&!_0x3ec47e?_0x29a96d:undefined,_0x4add81=_0x40f6ab||_0x3ebe8b||_0x45c918||_0x2e02b0||_0x4e0d60||undefined,_0x1b63e3=_0x294ff4?stringConfigValue(_0x357879[_0x16a2f1(0x175)]):undefined,_0x122a0c=_0x3dc4cb?stringConfigValue(_0x1d76d0['env']):undefined,_0x529318=_0x34a646[_0x16a2f1(0x175)]||_0x26eb21?.[_0x16a2f1(0x175)]||_0x1b63e3||_0x517cd2(_0x16a2f1(0x16d))||_0x122a0c||_0x2b90ce[_0x16a2f1(0x175)]||DEFAULT_CONFIG_VALUES[_0x16a2f1(0x175)],_0x5ea4b1=_0x26eb21?.[_0x16a2f1(0x159)]||_0x2b90ce['locale']||DEFAULT_CONFIG_VALUES[_0x16a2f1(0x159)],_0x1099fc=_0x517cd2('COOKIE')||_0x26eb21?.[_0x16a2f1(0x15c)]||_0x2b90ce[_0x16a2f1(0x15c)]||undefined,_0x37f5d=_0x517cd2(_0x16a2f1(0x15f))||_0x26eb21?.['accessKey']||_0x2b90ce['accessKey']||undefined,_0x188c9f=_0x34a646[_0x16a2f1(0x176)]||_0x517cd2(_0x16a2f1(0x156))||_0x26eb21?.[_0x16a2f1(0x176)]||_0x2b90ce['format'],_0x2f218e=normalizeLegacyOutputFormat(_0x188c9f),_0x379192=_0x517cd2(_0x16a2f1(0x16b))||_0x26eb21?.[_0x16a2f1(0x169)]||_0x2b90ce['pageSize'],_0x121a74=_0x379192?Number(_0x379192)||undefined:undefined,_0x5cbd94=_0x55c972?[_0x55c972[_0x16a2f1(0x16e)][_0x16a2f1(0x153)],_0x55c972['projectConfig'][_0x16a2f1(0x153)]]:[_0x2b90ce['riskLevel']],_0x24ea37=resolveRiskCeiling(..._0x5cbd94,_0x26eb21?.[_0x16a2f1(0x153)]),_0x28bcf2=resolveRiskCeiling(_0x24ea37,_0x517cd2(_0x16a2f1(0x16c))),_0xa5f807=_0x517cd2('VERBOSE'),_0x245d0d=_0xa5f807==='1'||_0xa5f807===_0x16a2f1(0x15b),_0x2de695=_0x26eb21?.[_0x16a2f1(0x15d)]||_0x2b90ce[_0x16a2f1(0x15d)]||DEFAULT_CONFIG_VALUES[_0x16a2f1(0x15d)],_0x9fd319=isDaily(normalizeEnv(String(_0x529318)))?'daily':'production';return{'appCode':typeof _0x4add81===_0x16a2f1(0x173)&&_0x4add81[_0x16a2f1(0x171)]()?_0x4add81['trim']():undefined,'env':_0x9fd319,'locale':_0x5ea4b1,'cookie':_0x1099fc,'accessKey':_0x37f5d,'format':_0x2f218e,'pageSize':_0x121a74,'riskLevel':_0x28bcf2,'verbose':_0x245d0d,'apiDir':_0x2de695,'apps':_0x3f0838,'defaultApp':_0x47c3d4,'currentApp':_0x2074f6?_0x3e60a9:undefined,'explicitAppName':_0x15fc75};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5b4fd8,_0x4810ec){const _0x1b3f3e=a244_0x4635,_0x118958=_0x5b4fd8();while(!![]){try{const _0x1df619=parseInt(_0x1b3f3e(0x1d8))/0x1+parseInt(_0x1b3f3e(0x1d3))/0x2+parseInt(_0x1b3f3e(0x1d7))/0x3+-parseInt(_0x1b3f3e(0x1d1))/0x4*(-parseInt(_0x1b3f3e(0x1cc))/0x5)+-parseInt(_0x1b3f3e(0x1ce))/0x6*(-parseInt(_0x1b3f3e(0x1d5))/0x7)+-parseInt(_0x1b3f3e(0x1d4))/0x8*(parseInt(_0x1b3f3e(0x1cf))/0x9)+parseInt(_0x1b3f3e(0x1d0))/0xa*(-parseInt(_0x1b3f3e(0x1d2))/0xb);if(_0x1df619===_0x4810ec)break;else _0x118958['push'](_0x118958['shift']());}catch(_0x24f173){_0x118958['push'](_0x118958['shift']());}}}(a244_0x4e65,0xcb122));function a244_0x4635(_0x51aea7,_0x1b7712){_0x51aea7=_0x51aea7-0x1cc;const _0x4e650b=a244_0x4e65();let _0x4635ee=_0x4e650b[_0x51aea7];return _0x4635ee;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0xb072f){const _0x286e0f=a244_0x4635,{getCookie:_0x25f8a1}=await import(_0x286e0f(0x1cd)),_0x20dd91=_0xb072f[_0x286e0f(0x1d6)]||_0x25f8a1(),_0x5ba6bb=_0x20dd91?await getIsSessionValid():![];return{'cookie':_0x20dd91,'isLoggedIn':_0x5ba6bb,async 'getOrLogin'(){if(_0x20dd91&&_0x5ba6bb)return _0x20dd91;throw CliErrors['authRequired']();}};}function a244_0x4e65(){const _0x4b59c8=['cookie','4577778VKLMOx','347063fyGOxl','1212805KjDLWm','../auth/get-cookie.js','642WsVKDV','3951xMrQSf','20lwSecu','4vZiRUd','5653879VFmZSF','708658bHkYgb','17360LJUFEg','22407jqrqnV'];a244_0x4e65=function(){return _0x4b59c8;};return a244_0x4e65();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a245_0x242e5a=a245_0x5d78;(function(_0x290ee0,_0x5a6e28){const _0x2fbc3d=a245_0x5d78,_0x51d9f8=_0x290ee0();while(!![]){try{const _0x475e70=parseInt(_0x2fbc3d(0x10a))/0x1*(parseInt(_0x2fbc3d(0x12e))/0x2)+-parseInt(_0x2fbc3d(0x130))/0x3+parseInt(_0x2fbc3d(0x11e))/0x4+-parseInt(_0x2fbc3d(0x116))/0x5+parseInt(_0x2fbc3d(0x126))/0x6+parseInt(_0x2fbc3d(0x110))/0x7+parseInt(_0x2fbc3d(0x125))/0x8*(-parseInt(_0x2fbc3d(0x133))/0x9);if(_0x475e70===_0x5a6e28)break;else _0x51d9f8['push'](_0x51d9f8['shift']());}catch(_0xd1ca80){_0x51d9f8['push'](_0x51d9f8['shift']());}}}(a245_0x234d,0x2f856));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a245_0x242e5a(0x134);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x3c95b6){for(const _0x14e976 of CONFIG_NAMES){const _0x121dfb=resolve(_0x3c95b6,_0x14e976);if(existsSync(_0x121dfb))return _0x121dfb;}return undefined;}export function findProjectRootDirectory(_0x1dc934=process[a245_0x242e5a(0x105)]()){let _0x5d58b5=resolve(_0x1dc934);const {root:_0x50da95}=parse(_0x5d58b5),_0xcb4787=homedir();while(!![]){if(resolveConfigPath(_0x5d58b5)){if(_0x5d58b5===_0xcb4787)break;return _0x5d58b5;}if(_0x5d58b5===_0x50da95||_0x5d58b5===_0xcb4787)break;const _0x4f95b5=dirname(_0x5d58b5);if(_0x4f95b5===_0x5d58b5)break;_0x5d58b5=_0x4f95b5;}return resolve(_0x1dc934);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x2827ad){const _0x4796a3=a245_0x242e5a;if(!existsSync(_0x2827ad))return{'status':'missing'};try{const _0x105509=readFileSync(_0x2827ad,{'encoding':_0x4796a3(0x128)});if(!_0x105509?.['trim']())return{'status':_0x4796a3(0x12d)};const _0x3f8f0b=JSON[_0x4796a3(0x117)](_0x105509);return{'status':'ok','data':_0x3f8f0b};}catch(_0x9d0cf){return{'status':_0x4796a3(0x122),'message':_0x9d0cf instanceof Error?_0x9d0cf[_0x4796a3(0x114)]:String(_0x9d0cf)};}}function parseCliConfigJsonFile(_0x3bf9f1,_0x1e7b34,_0x5a4ccf){const _0x47ea8e=a245_0x242e5a,_0x3dd000=inspectCliConfigJsonFile(_0x3bf9f1);if(_0x3dd000[_0x47ea8e(0x109)]===_0x47ea8e(0x118)||_0x3dd000['status']===_0x47ea8e(0x12d))return{};if(_0x3dd000['status']==='ok')return _0x3dd000['data'];return _0x1e7b34===_0x47ea8e(0x11d)&&_0x5a4ccf&&console[_0x47ea8e(0x122)](CLI_BIN_NAME+':\x20'+_0x5a4ccf+_0x47ea8e(0x112)+_0x3bf9f1+_0x47ea8e(0x129)+_0x3dd000[_0x47ea8e(0x114)]),{};}function normalizeLegacyConfigShape(_0x52b893){const _0x22c89f=a245_0x242e5a;if(!_0x52b893||typeof _0x52b893!=='object')return{'config':{},'migrated':![]};const _0x397cc2={..._0x52b893},_0x55f4db=_0x397cc2['apps']&&typeof _0x397cc2[_0x22c89f(0x10f)]===_0x22c89f(0x11c)?{..._0x397cc2['apps']}:{},_0x1d0957=Object[_0x22c89f(0x108)](_0x55f4db)['length'],_0x23a95e=_0x397cc2[_0x22c89f(0x10e)]||_0x397cc2['app'];let _0x2bde18=![];if(_0x23a95e&&_0x1d0957===0x0){const _0x415869=typeof _0x397cc2[_0x22c89f(0x111)]===_0x22c89f(0x123)&&_0x397cc2[_0x22c89f(0x111)]['trim']()?_0x397cc2[_0x22c89f(0x111)]:String(_0x23a95e)['trim']();_0x55f4db[_0x415869]={'appcode':String(_0x23a95e)['trim'](),..._0x397cc2['env']!=null?{'env':_0x397cc2['env']}:{},..._0x397cc2['apiDir']!=null?{'apiDir':_0x397cc2['apiDir']}:{},..._0x397cc2['cookie']!=null?{'cookie':_0x397cc2[_0x22c89f(0x115)]}:{},..._0x397cc2['accessKey']!=null?{'accessKey':_0x397cc2['accessKey']}:{},..._0x397cc2[_0x22c89f(0x12b)]!=null?{'format':_0x397cc2[_0x22c89f(0x12b)]}:{},..._0x397cc2[_0x22c89f(0x12a)]!=null?{'pageSize':_0x397cc2['pageSize']}:{},..._0x397cc2[_0x22c89f(0x107)]!=null?{'riskLevel':_0x397cc2['riskLevel']}:{},..._0x397cc2['locale']!=null?{'locale':_0x397cc2[_0x22c89f(0x121)]}:{}},_0x397cc2[_0x22c89f(0x10f)]=_0x55f4db,delete _0x397cc2[_0x22c89f(0x111)],_0x2bde18=!![];}return(_0x22c89f(0x10e)in _0x397cc2||_0x22c89f(0x10b)in _0x397cc2)&&(delete _0x397cc2[_0x22c89f(0x10e)],delete _0x397cc2['app'],_0x2bde18=!![]),{'config':_0x397cc2,'migrated':_0x2bde18};}function writeNormalizedConfigIfNeeded(_0x1264a8,_0x28f070){const _0x2a96be=a245_0x242e5a,_0x1374e3=JSON[_0x2a96be(0x104)](_0x28f070,null,0x2)+'\x0a';if(normalizedWriteCache[_0x2a96be(0x11b)](_0x1264a8)===_0x1374e3)return;writeConfigFile(_0x1264a8,_0x28f070),normalizedWriteCache['set'](_0x1264a8,_0x1374e3);}function parseAndNormalizeConfig(_0x2c86f7,_0x2d77d6,_0x417bf3){const _0x2834f1=a245_0x242e5a,_0x2edd2b=parseCliConfigJsonFile(_0x2c86f7,_0x2d77d6,_0x417bf3),_0x2d3df0=normalizeLegacyConfigShape(_0x2edd2b);if(_0x2d3df0['migrated'])try{writeNormalizedConfigIfNeeded(_0x2c86f7,_0x2d3df0['config']);}catch{}return _0x2d3df0[_0x2834f1(0x106)];}export function loadRawConfigLayers(_0x4dfb6c){const _0x18736f=a245_0x242e5a;let _0x5ce9cc={},_0x521417={};const _0x24ea8d=resolveConfigPath(homedir());_0x24ea8d&&(_0x5ce9cc=parseAndNormalizeConfig(_0x24ea8d,_0x18736f(0x11d),_0x18736f(0x10d)));const _0xe0b42f=_0x4dfb6c??findProjectRootDirectory(),_0x47df75=resolveConfigPath(_0xe0b42f);return _0x47df75&&(_0x521417=parseAndNormalizeConfig(_0x47df75,_0x18736f(0x11d),'Project')),{'globalPath':_0x24ea8d,'projectPath':_0x47df75,'globalConfig':_0x5ce9cc,'projectConfig':_0x521417};}const INHERIT_WHITELIST=[a245_0x242e5a(0x115),'accessKey',a245_0x242e5a(0x121),a245_0x242e5a(0x12b),a245_0x242e5a(0x107),a245_0x242e5a(0x12a),'region',a245_0x242e5a(0x127),a245_0x242e5a(0x132),a245_0x242e5a(0x12c),a245_0x242e5a(0x12f),a245_0x242e5a(0x10c),'kbDomain',a245_0x242e5a(0x120),a245_0x242e5a(0x11f),a245_0x242e5a(0x124)];export function mergeRawConfigLayers(_0x5b6d81){const _0x29155e=a245_0x242e5a,{globalConfig:_0x229010,projectConfig:_0x5b4db9}=_0x5b6d81,_0x2a7c40=!!_0x5b6d81[_0x29155e(0x131)]||Object[_0x29155e(0x108)](_0x5b4db9)[_0x29155e(0x11a)]>0x0;if(!_0x2a7c40)return mergeGlobalOnly(_0x229010);return mergeProjectFirst(_0x229010,_0x5b4db9);}function mergeGlobalOnly(_0x59ee62){const _0x395601=a245_0x242e5a,_0x186380={..._0x59ee62};delete _0x186380[_0x395601(0x113)];const _0x541de4=_0x59ee62[_0x395601(0x10f)]&&typeof _0x59ee62[_0x395601(0x10f)]===_0x395601(0x11c)?_0x59ee62[_0x395601(0x10f)]:{};if(Object[_0x395601(0x108)](_0x541de4)[_0x395601(0x11a)]>0x0)_0x186380['apps']=_0x541de4;if(_0x59ee62[_0x395601(0x111)])_0x186380[_0x395601(0x111)]=_0x59ee62[_0x395601(0x111)];return _0x186380;}function a245_0x5d78(_0x2e8c57,_0x43f9fe){_0x2e8c57=_0x2e8c57-0x104;const _0x234da3=a245_0x234d();let _0x5d789f=_0x234da3[_0x2e8c57];return _0x5d789f;}function mergeProjectFirst(_0x38a5d1,_0x533c7e){const _0x13207c=a245_0x242e5a,_0x1e02e3={..._0x533c7e};delete _0x1e02e3[_0x13207c(0x113)];for(const _0x1447ab of INHERIT_WHITELIST){!(_0x1447ab in _0x1e02e3)&&_0x1447ab in _0x38a5d1&&(_0x1e02e3[_0x1447ab]=_0x38a5d1[_0x1447ab]);}const _0x5a4d7e=_0x533c7e[_0x13207c(0x10f)]&&typeof _0x533c7e[_0x13207c(0x10f)]===_0x13207c(0x11c)?_0x533c7e[_0x13207c(0x10f)]:{};return Object['keys'](_0x5a4d7e)[_0x13207c(0x11a)]>0x0?_0x1e02e3[_0x13207c(0x10f)]=_0x5a4d7e:delete _0x1e02e3[_0x13207c(0x10f)],_0x13207c(0x111)in _0x533c7e?_0x1e02e3[_0x13207c(0x111)]=_0x533c7e['defaultApp']:delete _0x1e02e3['defaultApp'],_0x1e02e3;}export function readRawConfigWithLayers(_0x655d62){const _0x5a0e1b=loadRawConfigLayers(_0x655d62);return{'config':mergeRawConfigLayers(_0x5a0e1b),'layers':_0x5a0e1b};}export function readRawConfig(_0x47a550){return mergeRawConfigLayers(loadRawConfigLayers(_0x47a550));}export function readConfigFile(_0x534e63){const _0x2e962a=a245_0x242e5a;return parseAndNormalizeConfig(_0x534e63,_0x2e962a(0x119));}export function writeConfigFile(_0x1970cf,_0x68a858){const _0x54b7f4=a245_0x242e5a,_0x5ca137=dirname(_0x1970cf);!existsSync(_0x5ca137)&&mkdirSync(_0x5ca137,{'recursive':!![]});const _0x24f113=_0x1970cf+'.tmp';try{writeFileSync(_0x24f113,JSON[_0x54b7f4(0x104)](_0x68a858,null,0x2)+'\x0a',{'encoding':_0x54b7f4(0x128),'mode':0x180}),renameSync(_0x24f113,_0x1970cf);}catch(_0x135964){try{unlinkSync(_0x24f113);}catch{}throw _0x135964;}}export function resolveWriteConfigPath(_0x35fb0d){const _0x3d8174=a245_0x242e5a,_0x571e12=_0x35fb0d==='project'?process[_0x3d8174(0x105)]():homedir(),_0x1049b0=resolveConfigPath(_0x571e12);return _0x1049b0??resolve(_0x571e12,NEW_CONFIG_NAME);}function a245_0x234d(){const _0x3e5b9d=['routing','utf8','\x0a\x20\x20','pageSize','format','apiDomain','empty','246EZHJtm','runtimeDomain','661266WyUNKK','projectPath','userDomain','162cyRtnw','.rabetbase.json','stringify','cwd','config','riskLevel','keys','status','2963GmRsDi','app','skillDomain','Global','appcode','apps','2537395kLFDxH','defaultApp','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','inherit','message','cookie','364945vowrDN','parse','missing','silent','length','get','object','warn','861900VEdxpE','localDomain','appDomain','locale','error','string','certificateDomain','346920hYjhZP','1957308YsXwQs'];a245_0x234d=function(){return _0x3e5b9d;};return a245_0x234d();}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a233_0xef55d2=a233_0x32e2;(function(_0x51359a,_0x1c94bf){const _0x224dff=a233_0x32e2,_0x2948d3=_0x51359a();while(!![]){try{const _0x4a5e9d=parseInt(_0x224dff(0x1a8))/0x1*(parseInt(_0x224dff(0x19b))/0x2)+-parseInt(_0x224dff(0x194))/0x3+-parseInt(_0x224dff(0x19e))/0x4+-parseInt(_0x224dff(0x198))/0x5+-parseInt(_0x224dff(0x1b8))/0x6*(parseInt(_0x224dff(0x189))/0x7)+parseInt(_0x224dff(0x188))/0x8*(parseInt(_0x224dff(0x1a3))/0x9)+parseInt(_0x224dff(0x187))/0xa;if(_0x4a5e9d===_0x1c94bf)break;else _0x2948d3['push'](_0x2948d3['shift']());}catch(_0x3ce1c9){_0x2948d3['push'](_0x2948d3['shift']());}}}(a233_0x5947,0x7fc44));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion,normalizeLovrabetRegion}from'./constant/region.js';import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x156965){return process.env[`RABETBASE_${_0x156965}`]||process.env[`LOVRABET_${_0x156965}`]||undefined;}function a233_0x32e2(_0x4562b4,_0x7dcab8){_0x4562b4=_0x4562b4-0x181;const _0x5947ac=a233_0x5947();let _0x32e236=_0x5947ac[_0x4562b4];return _0x32e236;}function optionalString(_0xfa3014){const _0x17730e=a233_0x32e2;return typeof _0xfa3014===_0x17730e(0x181)&&_0xfa3014[_0x17730e(0x18b)]()?_0xfa3014[_0x17730e(0x18b)]():undefined;}function describeConfiguredRegion(_0x3cdce2){const _0x57e860=a233_0x32e2;return typeof _0x3cdce2==='string'?JSON[_0x57e860(0x1a9)](_0x3cdce2):_0x57e860(0x1b9)+(_0x3cdce2===null?_0x57e860(0x1a2):typeof _0x3cdce2);}function resolveConfiguredRegion(_0x1ff289){const _0x2d4368=a233_0x32e2;if(isInvalidLovrabetRegion(_0x1ff289))throw CliErrors[_0x2d4368(0x1a6)]('Invalid\x20country/region\x20'+describeConfiguredRegion(_0x1ff289)+_0x2d4368(0x1bd),'Run\x20`'+CLI_BIN_NAME+_0x2d4368(0x185));return normalizeLovrabetRegion(_0x1ff289)??DEFAULT_LOVRABET_REGION;}export function isRoutingRecoveryService(_0x46c39a){const _0x38eccf=a233_0x32e2;return _0x46c39a===_0x38eccf(0x18d)||_0x46c39a==='doctor';}export async function createContext(_0x21c0c3){const _0x4c6f3c=a233_0x32e2,{config:_0xc222a7,layers:_0x3cff18}=readRawConfigWithLayers(),_0x2b0579=buildConfig(_0xc222a7,_0x21c0c3,_0x3cff18);await initGlobalEnvironment(_0x2b0579);const {getUserDomain:_0xd20ec3,getApiDomain:_0x1be948}=await import(_0x4c6f3c(0x186)),_0xbb2edd={'apiDomain':_0x1be948(),'userDomain':_0xd20ec3()},_0x5ddbc6=await buildAuth(_0x2b0579);logger[_0x4c6f3c(0x1a0)](process[_0x4c6f3c(0x1ba)]());const _0x46c90c=(CLI_BIN_NAME+'\x20'+process[_0x4c6f3c(0x1a4)][_0x4c6f3c(0x1ad)](0x2)[_0x4c6f3c(0x19d)]('\x20'))[_0x4c6f3c(0x18b)]();logger[_0x4c6f3c(0x1b7)](_0x46c90c);const {isNonInteractive:_0x10f05c}=await import(_0x4c6f3c(0x193)),_0x5e9e12=_0x10f05c(_0x21c0c3);return{'config':_0x2b0579,'auth':_0x5ddbc6,'logger':logger,'env':_0xbb2edd,'nonInteractive':_0x5e9e12};}function a233_0x5947(){const _0x3cb81b=['merged','\x20doctor`\x20to\x20locate\x20and\x20repair\x20the\x20invalid\x20configuration\x20before\x20retrying.','./constant/domain.js','11193660JxQQTI','24SAPtlC','7KkkAIl','keys','trim','-api.ts','config','agentDomain','userDomain','localDomain','platformDomain','appcode','./utils/is-non-interactive.js','537933LKzMto','project','cdn','apps','431660SIevCm','defaultApp','replace','3086opvUEy','domains','join','2521140YcIAYW','entries','setLogPath','cookie','null','2684376SwtdRx','argv','filter','validation','raw','167KvxsvR','stringify','projectConfig','kbDomain','apiDomain','slice','app','find','https://g.lovrabet.com/dist/lovrabet-skill','skillDomain','length','skillHubDomain','region','appDomain','globalConfig','setRawCommand','5115474nHCivn','a\x20value\x20of\x20type\x20','cwd','object','env','\x20in\x20Rabetbase\x20configuration.','template_base_url','apiDir','string','values','runtimeDomain'];a233_0x5947=function(){return _0x3cb81b;};return a233_0x5947();}export function buildConfigFromFlags(_0x2ade6a){const {config:_0x98db1f,layers:_0x3b91c7}=readRawConfigWithLayers();return buildConfig(_0x98db1f,_0x2ade6a,_0x3b91c7);}export async function initGlobalEnvironment(_0x4f5a4d){const _0x4562dc=a233_0x32e2,_0x42cf4a=resolveConfiguredRegion(_0x4f5a4d[_0x4562dc(0x1a7)]?.[_0x4562dc(0x1b4)]),_0x507d14=resolveEnterpriseRoutingManifest(_0x4f5a4d['raw']?.['routing']),_0x2a9d23={'region':_0x42cf4a,'apiDomain':_0x507d14?_0x507d14[_0x4562dc(0x19c)][_0x4562dc(0x1ac)]:optionalString(_0x4f5a4d[_0x4562dc(0x1a7)]?.[_0x4562dc(0x1ac)]),'userDomain':_0x507d14?_0x507d14[_0x4562dc(0x19c)][_0x4562dc(0x18f)]:optionalString(_0x4f5a4d[_0x4562dc(0x1a7)]?.[_0x4562dc(0x18f)]),'runtimeDomain':_0x507d14?_0x507d14[_0x4562dc(0x19c)][_0x4562dc(0x183)]:optionalString(_0x4f5a4d[_0x4562dc(0x1a7)]?.['runtimeDomain']),'skillDomain':_0x507d14?_0x507d14[_0x4562dc(0x19c)][_0x4562dc(0x1b1)]:optionalString(_0x4f5a4d[_0x4562dc(0x1a7)]?.['skillDomain'])||optionalString(_0x4f5a4d['raw']?.[_0x4562dc(0x1b3)])||optionalString(_0x4f5a4d['raw']?.[_0x4562dc(0x18e)])||optionalString(_0x4f5a4d['raw']?.[_0x4562dc(0x191)]),'kbDomain':_0x507d14?_0x507d14[_0x4562dc(0x19c)][_0x4562dc(0x1ab)]:optionalString(_0x4f5a4d['raw']?.[_0x4562dc(0x1ab)])||optionalString(_0x4f5a4d[_0x4562dc(0x1a7)]?.[_0x4562dc(0x18e)])||optionalString(_0x4f5a4d[_0x4562dc(0x1a7)]?.[_0x4562dc(0x191)]),'appDomain':_0x507d14?_0x507d14['domains'][_0x4562dc(0x1b5)]:optionalString(_0x4f5a4d[_0x4562dc(0x1a7)]?.[_0x4562dc(0x1b5)]),'localDomain':_0x507d14?_0x507d14[_0x4562dc(0x19c)][_0x4562dc(0x190)]:optionalString(_0x4f5a4d[_0x4562dc(0x1a7)]?.['localDomain']),'certificateDomain':_0x507d14?_0x507d14[_0x4562dc(0x19c)]['certificateDomain']:optionalString(_0x4f5a4d[_0x4562dc(0x1a7)]?.['certificateDomain']),'cdn':_0x507d14?.[_0x4562dc(0x196)]},{initEnv:_0x402e07}=await import('./constant/env.js'),{initDomains:_0x1ea37b}=await import('./constant/domain.js');_0x402e07(_0x4f5a4d[_0x4562dc(0x1bc)]),_0x1ea37b(_0x2a9d23);}export function getConfigAppCode(_0x26316a){const _0x448ee2=a233_0x32e2,_0x10a47b=readRawConfig(_0x26316a);if(_0x10a47b['apps']&&typeof _0x10a47b[_0x448ee2(0x197)]===_0x448ee2(0x1bb)){const _0x43be88=_0x10a47b[_0x448ee2(0x199)];if(_0x43be88)return _0x10a47b[_0x448ee2(0x197)][_0x43be88]?.[_0x448ee2(0x192)]?String(_0x10a47b[_0x448ee2(0x197)][_0x43be88][_0x448ee2(0x192)])[_0x448ee2(0x18b)]():undefined;const _0x195bb7=Object[_0x448ee2(0x182)](_0x10a47b[_0x448ee2(0x197)]);if(_0x195bb7['length']===0x1&&_0x195bb7[0x0]?.['appcode'])return String(_0x195bb7[0x0][_0x448ee2(0x192)])[_0x448ee2(0x18b)]();}const _0x5662df=_0x10a47b[_0x448ee2(0x192)]||_0x10a47b[_0x448ee2(0x1ae)];if(typeof _0x5662df!==_0x448ee2(0x181)||_0x5662df[_0x448ee2(0x18b)]()==='')return undefined;return _0x5662df[_0x448ee2(0x18b)]();}export function getMultiAppConfigs(_0x4c4473=a233_0xef55d2(0x195),_0x57e576){const _0x299757=a233_0xef55d2,_0x2cc688=loadRawConfigLayers(_0x57e576);let _0x10303c,_0x19f3f3;if(_0x4c4473===_0x299757(0x184)){const _0x340c45=_0x2cc688[_0x299757(0x1b6)][_0x299757(0x197)]&&typeof _0x2cc688[_0x299757(0x1b6)][_0x299757(0x197)]===_0x299757(0x1bb)?_0x2cc688[_0x299757(0x1b6)]['apps']:{},_0x35910a=_0x2cc688[_0x299757(0x1aa)]['apps']&&typeof _0x2cc688[_0x299757(0x1aa)][_0x299757(0x197)]===_0x299757(0x1bb)?_0x2cc688['projectConfig']['apps']:{};_0x10303c={..._0x340c45,..._0x35910a};const _0x40d93b=readRawConfig(_0x57e576);_0x19f3f3=_0x40d93b[_0x299757(0x199)];}else _0x10303c=_0x2cc688[_0x299757(0x1aa)][_0x299757(0x197)],_0x19f3f3=_0x2cc688[_0x299757(0x1aa)][_0x299757(0x199)];!_0x19f3f3&&_0x10303c&&typeof _0x10303c===_0x299757(0x1bb)&&Object[_0x299757(0x18a)](_0x10303c)['length']===0x1&&(_0x19f3f3=Object[_0x299757(0x18a)](_0x10303c)[0x0]);if(!_0x10303c||typeof _0x10303c!==_0x299757(0x1bb)||Object[_0x299757(0x18a)](_0x10303c)[_0x299757(0x1b2)]===0x0)return null;return Object['entries'](_0x10303c)['map'](([_0x287ad8,_0x2cb050])=>({'name':_0x287ad8,'appcode':_0x2cb050?.[_0x299757(0x192)]||'','isDefault':_0x287ad8===_0x19f3f3,'env':_0x2cb050?.[_0x299757(0x1bc)],'apiDir':_0x2cb050?.[_0x299757(0x1bf)],'cookie':_0x2cb050?.[_0x299757(0x1a1)]||undefined}))[_0x299757(0x1a5)](_0x45e6bb=>_0x45e6bb[_0x299757(0x192)]);}export function getTemplateBaseUrl(_0x4befb9){const _0x3cd303=a233_0xef55d2,_0x328d5f=readRawConfig(_0x4befb9);if(_0x328d5f[_0x3cd303(0x1be)]&&typeof _0x328d5f['template_base_url']===_0x3cd303(0x181))return _0x328d5f['template_base_url'][_0x3cd303(0x19a)](/\/$/,'');return _0x3cd303(0x1b0);}function buildConfig(_0x1b99aa,_0x30ff58,_0x302f37){return{...resolveAppConfig({'raw':_0x1b99aa,'flags':_0x30ff58,'layers':_0x302f37,'readEnv':env}),'raw':_0x1b99aa};}export function resolveApiFilePath(_0xce1e24,_0x20779a){const _0x28e4f8=a233_0xef55d2,_0x12d77b=resolve(process['cwd'](),_0xce1e24),_0x4cc8cf=resolve(_0x12d77b,'api.ts');if(!_0x20779a)return _0x4cc8cf;const _0x3e609d=readRawConfig(),_0x2994dc=_0x3e609d['apps']&&typeof _0x3e609d[_0x28e4f8(0x197)]===_0x28e4f8(0x1bb)?_0x3e609d[_0x28e4f8(0x197)]:{},_0xb23384=Object[_0x28e4f8(0x19f)](_0x2994dc)[_0x28e4f8(0x1af)](([,_0x760b72])=>_0x760b72?.[_0x28e4f8(0x192)]===_0x20779a);if(!_0xb23384)return _0x4cc8cf;const [_0x1a534e,_0x1e1ed3]=_0xb23384,_0x23e5c4=typeof _0x3e609d[_0x28e4f8(0x199)]==='string'?_0x3e609d[_0x28e4f8(0x199)]:undefined;if(_0x1e1ed3?.[_0x28e4f8(0x1bf)])return _0x4cc8cf;if(_0x23e5c4&&_0x1a534e!==_0x23e5c4)return resolve(_0x12d77b,_0x1a534e+_0x28e4f8(0x18c));return _0x4cc8cf;}
|
|
1
|
+
const a246_0x10b1bc=a246_0x20d8;(function(_0x24d992,_0x17995a){const _0x127614=a246_0x20d8,_0x3857f7=_0x24d992();while(!![]){try{const _0x1b92c4=parseInt(_0x127614(0x1b6))/0x1+-parseInt(_0x127614(0x1c2))/0x2*(parseInt(_0x127614(0x198))/0x3)+-parseInt(_0x127614(0x1b1))/0x4*(-parseInt(_0x127614(0x197))/0x5)+-parseInt(_0x127614(0x1a4))/0x6+parseInt(_0x127614(0x187))/0x7+parseInt(_0x127614(0x192))/0x8*(-parseInt(_0x127614(0x18b))/0x9)+-parseInt(_0x127614(0x1af))/0xa*(-parseInt(_0x127614(0x193))/0xb);if(_0x1b92c4===_0x17995a)break;else _0x3857f7['push'](_0x3857f7['shift']());}catch(_0xdc0351){_0x3857f7['push'](_0x3857f7['shift']());}}}(a246_0x4c74,0xc6824));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';function a246_0x4c74(){const _0x5e1899=['argv','apiDomain','kbDomain','object','api.ts','\x20in\x20Rabetbase\x20configuration.','739170pLDBjB','join','168136nYahbE','localDomain','setRawCommand','runtimeDomain','entries','288341LvpsYf','globalConfig','project','appDomain','projectConfig','./utils/is-non-interactive.js','defaultApp','length','domains','appcode','app','trim','2mOnAdR','cdn','./constant/domain.js','doctor','\x20doctor`\x20to\x20locate\x20and\x20repair\x20the\x20invalid\x20configuration\x20before\x20retrying.','8723561vkRNFp','cwd','null','keys','8970435CJzuss','setLogPath','userDomain','raw','platformDomain','skillDomain','values','8lacqlp','143BBHdEc','find','Run\x20`','config','155HBhoQv','3024087BhVCKb','map','apps','apiDir','replace','https://g.lovrabet.com/dist/lovrabet-skill','agentDomain','routing','a\x20value\x20of\x20type\x20','-api.ts','template_base_url','slice','5884218QssIrs','filter','string','Invalid\x20country/region\x20','certificateDomain'];a246_0x4c74=function(){return _0x5e1899;};return a246_0x4c74();}import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion,normalizeLovrabetRegion}from'./constant/region.js';import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x336497){return process.env[`RABETBASE_${_0x336497}`]||process.env[`LOVRABET_${_0x336497}`]||undefined;}function optionalString(_0x4fb777){const _0x2be032=a246_0x20d8;return typeof _0x4fb777===_0x2be032(0x1a6)&&_0x4fb777['trim']()?_0x4fb777[_0x2be032(0x1c1)]():undefined;}function describeConfiguredRegion(_0x1059a3){const _0x5e9e95=a246_0x20d8;return typeof _0x1059a3===_0x5e9e95(0x1a6)?JSON['stringify'](_0x1059a3):_0x5e9e95(0x1a0)+(_0x1059a3===null?_0x5e9e95(0x189):typeof _0x1059a3);}function resolveConfiguredRegion(_0x4a4188){const _0x1875bb=a246_0x20d8;if(isInvalidLovrabetRegion(_0x4a4188))throw CliErrors['validation'](_0x1875bb(0x1a7)+describeConfiguredRegion(_0x4a4188)+_0x1875bb(0x1ae),_0x1875bb(0x195)+CLI_BIN_NAME+_0x1875bb(0x186));return normalizeLovrabetRegion(_0x4a4188)??DEFAULT_LOVRABET_REGION;}export function isRoutingRecoveryService(_0x28725b){const _0x1ac893=a246_0x20d8;return _0x28725b===_0x1ac893(0x196)||_0x28725b===_0x1ac893(0x185);}export async function createContext(_0x556b1c){const _0x5dbd55=a246_0x20d8,{config:_0x2f4c95,layers:_0x12646b}=readRawConfigWithLayers(),_0x37e5b7=buildConfig(_0x2f4c95,_0x556b1c,_0x12646b);await initGlobalEnvironment(_0x37e5b7);const {getUserDomain:_0x87ac0b,getApiDomain:_0x25c541}=await import('./constant/domain.js'),_0x40f9a1={'apiDomain':_0x25c541(),'userDomain':_0x87ac0b()},_0x52bd8c=await buildAuth(_0x37e5b7);logger[_0x5dbd55(0x18c)](process[_0x5dbd55(0x188)]());const _0x4e327d=(CLI_BIN_NAME+'\x20'+process[_0x5dbd55(0x1a9)][_0x5dbd55(0x1a3)](0x2)[_0x5dbd55(0x1b0)]('\x20'))[_0x5dbd55(0x1c1)]();logger[_0x5dbd55(0x1b3)](_0x4e327d);const {isNonInteractive:_0x279f46}=await import(_0x5dbd55(0x1bb)),_0x2c8f52=_0x279f46(_0x556b1c);return{'config':_0x37e5b7,'auth':_0x52bd8c,'logger':logger,'env':_0x40f9a1,'nonInteractive':_0x2c8f52};}export function buildConfigFromFlags(_0x26351b){const {config:_0x402a74,layers:_0x3584e7}=readRawConfigWithLayers();return buildConfig(_0x402a74,_0x26351b,_0x3584e7);}export async function initGlobalEnvironment(_0x26d15b){const _0x627a03=a246_0x20d8,_0x40a085=resolveConfiguredRegion(_0x26d15b['raw']?.['region']),_0x4e010b=resolveEnterpriseRoutingManifest(_0x26d15b[_0x627a03(0x18e)]?.[_0x627a03(0x19f)]),_0x15770e={'region':_0x40a085,'apiDomain':_0x4e010b?_0x4e010b['domains']['apiDomain']:optionalString(_0x26d15b[_0x627a03(0x18e)]?.[_0x627a03(0x1aa)]),'userDomain':_0x4e010b?_0x4e010b['domains']['userDomain']:optionalString(_0x26d15b[_0x627a03(0x18e)]?.[_0x627a03(0x18d)]),'runtimeDomain':_0x4e010b?_0x4e010b[_0x627a03(0x1be)][_0x627a03(0x1b4)]:optionalString(_0x26d15b['raw']?.[_0x627a03(0x1b4)]),'skillDomain':_0x4e010b?_0x4e010b['domains']['skillDomain']:optionalString(_0x26d15b[_0x627a03(0x18e)]?.[_0x627a03(0x190)])||optionalString(_0x26d15b['raw']?.['skillHubDomain'])||optionalString(_0x26d15b['raw']?.[_0x627a03(0x19e)])||optionalString(_0x26d15b[_0x627a03(0x18e)]?.[_0x627a03(0x18f)]),'kbDomain':_0x4e010b?_0x4e010b[_0x627a03(0x1be)][_0x627a03(0x1ab)]:optionalString(_0x26d15b[_0x627a03(0x18e)]?.[_0x627a03(0x1ab)])||optionalString(_0x26d15b[_0x627a03(0x18e)]?.['agentDomain'])||optionalString(_0x26d15b[_0x627a03(0x18e)]?.[_0x627a03(0x18f)]),'appDomain':_0x4e010b?_0x4e010b[_0x627a03(0x1be)][_0x627a03(0x1b9)]:optionalString(_0x26d15b[_0x627a03(0x18e)]?.[_0x627a03(0x1b9)]),'localDomain':_0x4e010b?_0x4e010b[_0x627a03(0x1be)][_0x627a03(0x1b2)]:optionalString(_0x26d15b['raw']?.['localDomain']),'certificateDomain':_0x4e010b?_0x4e010b[_0x627a03(0x1be)][_0x627a03(0x1a8)]:optionalString(_0x26d15b['raw']?.['certificateDomain']),'cdn':_0x4e010b?.[_0x627a03(0x1c3)]},{initEnv:_0x4b0bf5}=await import('./constant/env.js'),{initDomains:_0xd6dee4}=await import(_0x627a03(0x184));_0x4b0bf5(_0x26d15b['env']),_0xd6dee4(_0x15770e);}export function getConfigAppCode(_0xecb5f7){const _0x534537=a246_0x20d8,_0x1c4987=readRawConfig(_0xecb5f7);if(_0x1c4987[_0x534537(0x19a)]&&typeof _0x1c4987[_0x534537(0x19a)]==='object'){const _0x29f804=_0x1c4987[_0x534537(0x1bc)];if(_0x29f804)return _0x1c4987[_0x534537(0x19a)][_0x29f804]?.['appcode']?String(_0x1c4987[_0x534537(0x19a)][_0x29f804]['appcode'])[_0x534537(0x1c1)]():undefined;const _0x29f5ff=Object[_0x534537(0x191)](_0x1c4987[_0x534537(0x19a)]);if(_0x29f5ff['length']===0x1&&_0x29f5ff[0x0]?.['appcode'])return String(_0x29f5ff[0x0][_0x534537(0x1bf)])[_0x534537(0x1c1)]();}const _0x2038f3=_0x1c4987[_0x534537(0x1bf)]||_0x1c4987[_0x534537(0x1c0)];if(typeof _0x2038f3!==_0x534537(0x1a6)||_0x2038f3[_0x534537(0x1c1)]()==='')return undefined;return _0x2038f3['trim']();}export function getMultiAppConfigs(_0x588fc2=a246_0x10b1bc(0x1b8),_0x218e84){const _0x4bf8bb=a246_0x10b1bc,_0x4b0f0a=loadRawConfigLayers(_0x218e84);let _0x36b41a,_0x4cf9ff;if(_0x588fc2==='merged'){const _0x35744b=_0x4b0f0a['globalConfig'][_0x4bf8bb(0x19a)]&&typeof _0x4b0f0a[_0x4bf8bb(0x1b7)][_0x4bf8bb(0x19a)]===_0x4bf8bb(0x1ac)?_0x4b0f0a[_0x4bf8bb(0x1b7)]['apps']:{},_0x26eb4f=_0x4b0f0a[_0x4bf8bb(0x1ba)][_0x4bf8bb(0x19a)]&&typeof _0x4b0f0a[_0x4bf8bb(0x1ba)][_0x4bf8bb(0x19a)]==='object'?_0x4b0f0a[_0x4bf8bb(0x1ba)][_0x4bf8bb(0x19a)]:{};_0x36b41a={..._0x35744b,..._0x26eb4f};const _0x3b073b=readRawConfig(_0x218e84);_0x4cf9ff=_0x3b073b[_0x4bf8bb(0x1bc)];}else _0x36b41a=_0x4b0f0a[_0x4bf8bb(0x1ba)][_0x4bf8bb(0x19a)],_0x4cf9ff=_0x4b0f0a['projectConfig'][_0x4bf8bb(0x1bc)];!_0x4cf9ff&&_0x36b41a&&typeof _0x36b41a===_0x4bf8bb(0x1ac)&&Object[_0x4bf8bb(0x18a)](_0x36b41a)[_0x4bf8bb(0x1bd)]===0x1&&(_0x4cf9ff=Object[_0x4bf8bb(0x18a)](_0x36b41a)[0x0]);if(!_0x36b41a||typeof _0x36b41a!==_0x4bf8bb(0x1ac)||Object['keys'](_0x36b41a)[_0x4bf8bb(0x1bd)]===0x0)return null;return Object[_0x4bf8bb(0x1b5)](_0x36b41a)[_0x4bf8bb(0x199)](([_0x142594,_0x3bbda1])=>({'name':_0x142594,'appcode':_0x3bbda1?.['appcode']||'','isDefault':_0x142594===_0x4cf9ff,'env':_0x3bbda1?.['env'],'apiDir':_0x3bbda1?.[_0x4bf8bb(0x19b)],'cookie':_0x3bbda1?.['cookie']||undefined}))[_0x4bf8bb(0x1a5)](_0x7fdce6=>_0x7fdce6[_0x4bf8bb(0x1bf)]);}function a246_0x20d8(_0x1ea53a,_0x2bb410){_0x1ea53a=_0x1ea53a-0x184;const _0x4c746f=a246_0x4c74();let _0x20d818=_0x4c746f[_0x1ea53a];return _0x20d818;}export function getTemplateBaseUrl(_0x27e2ce){const _0x51c2fa=a246_0x10b1bc,_0x280701=readRawConfig(_0x27e2ce);if(_0x280701[_0x51c2fa(0x1a2)]&&typeof _0x280701[_0x51c2fa(0x1a2)]==='string')return _0x280701[_0x51c2fa(0x1a2)][_0x51c2fa(0x19c)](/\/$/,'');return _0x51c2fa(0x19d);}function buildConfig(_0x300f66,_0x48be48,_0x1b212b){return{...resolveAppConfig({'raw':_0x300f66,'flags':_0x48be48,'layers':_0x1b212b,'readEnv':env}),'raw':_0x300f66};}export function resolveApiFilePath(_0x15a9eb,_0x166c15){const _0x509e82=a246_0x10b1bc,_0x17e171=resolve(process[_0x509e82(0x188)](),_0x15a9eb),_0x42b61f=resolve(_0x17e171,_0x509e82(0x1ad));if(!_0x166c15)return _0x42b61f;const _0x41834c=readRawConfig(),_0x2c5091=_0x41834c[_0x509e82(0x19a)]&&typeof _0x41834c[_0x509e82(0x19a)]===_0x509e82(0x1ac)?_0x41834c[_0x509e82(0x19a)]:{},_0x408035=Object[_0x509e82(0x1b5)](_0x2c5091)[_0x509e82(0x194)](([,_0x1e6fff])=>_0x1e6fff?.[_0x509e82(0x1bf)]===_0x166c15);if(!_0x408035)return _0x42b61f;const [_0x29cbe2,_0x13c68a]=_0x408035,_0x33a834=typeof _0x41834c['defaultApp']==='string'?_0x41834c['defaultApp']:undefined;if(_0x13c68a?.[_0x509e82(0x19b)])return _0x42b61f;if(_0x33a834&&_0x29cbe2!==_0x33a834)return resolve(_0x17e171,_0x29cbe2+_0x509e82(0x1a1));return _0x42b61f;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x254b47,_0x25a4d3){const _0x495703=a247_0x12f9,_0xff2be2=_0x254b47();while(!![]){try{const _0x3defcc=parseInt(_0x495703(0x7b))/0x1+parseInt(_0x495703(0x86))/0x2+-parseInt(_0x495703(0x7c))/0x3+-parseInt(_0x495703(0x80))/0x4+-parseInt(_0x495703(0x74))/0x5*(parseInt(_0x495703(0x79))/0x6)+-parseInt(_0x495703(0x83))/0x7*(-parseInt(_0x495703(0x81))/0x8)+-parseInt(_0x495703(0x7a))/0x9*(-parseInt(_0x495703(0x78))/0xa);if(_0x3defcc===_0x25a4d3)break;else _0xff2be2['push'](_0xff2be2['shift']());}catch(_0x1af841){_0xff2be2['push'](_0xff2be2['shift']());}}}(a247_0x48a5,0xc2da1));import{readFileSync,existsSync}from'node:fs';function a247_0x12f9(_0x4376d6,_0x25b69b){_0x4376d6=_0x4376d6-0x74;const _0x48a539=a247_0x48a5();let _0x12f90c=_0x48a539[_0x4376d6];return _0x12f90c;}import{resolve}from'node:path';const cache=new Map();function parseApiFile(_0x307e9f){const _0x510034=a247_0x12f9,_0x16ed83=[],_0x48e492=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x143e4c;while((_0x143e4c=_0x48e492[_0x510034(0x7e)](_0x307e9f))!==null){_0x16ed83[_0x510034(0x77)]({'datasetCode':_0x143e4c[0x1],'tableName':_0x143e4c[0x2],'name':_0x143e4c[0x3],'alias':_0x143e4c[0x4]});}return _0x16ed83;}export function loadAliasMap(_0x222aee,_0x50c5cf,_0x11cf8b){const _0x439947=a247_0x12f9,_0x46edbd=_0x11cf8b??resolve(process[_0x439947(0x7d)](),_0x222aee,_0x439947(0x82));if(cache[_0x439947(0x75)](_0x46edbd))return cache[_0x439947(0x85)](_0x46edbd);if(!existsSync(_0x46edbd))return cache[_0x439947(0x84)](_0x46edbd,[]),[];try{const _0xeeeb29=readFileSync(_0x46edbd,_0x439947(0x7f)),_0x16b900=parseApiFile(_0xeeeb29);return cache['set'](_0x46edbd,_0x16b900),_0x16b900;}catch{return cache[_0x439947(0x84)](_0x46edbd,[]),[];}}export function resolveAlias(_0x23d6aa,_0x2fbf91,_0x155977,_0x36e705){const _0xb975dd=a247_0x12f9;if(!_0x2fbf91)return undefined;const _0x26f49a=loadAliasMap(_0x23d6aa,_0x155977,_0x36e705),_0x116180=_0x26f49a[_0xb975dd(0x76)](_0x19f96d=>_0x19f96d['alias']===_0x2fbf91);return _0x116180?.[_0xb975dd(0x87)];}export function listAliases(_0x38df7d,_0x740078,_0x5acfca){return loadAliasMap(_0x38df7d,_0x740078,_0x5acfca);}function a247_0x48a5(){const _0x558e45=['10xasZzm','564ZOyQpY','31664007ZiNcNq','115575KuBLqI','1235475PrzCWV','cwd','exec','utf-8','6021740AuPTIn','6472XBDRRf','api.ts','2863yacTWD','set','get','113272iRUPaY','datasetCode','69465JxxQYu','has','find','push'];a247_0x48a5=function(){return _0x558e45;};return a247_0x48a5();}
|
package/lib/core/api-client.d.ts
CHANGED
|
@@ -452,7 +452,53 @@ export interface DeploymentSyncItem {
|
|
|
452
452
|
export interface DeploymentSyncResult {
|
|
453
453
|
items: DeploymentSyncItem[];
|
|
454
454
|
}
|
|
455
|
+
export interface DeploymentSyncJobItem {
|
|
456
|
+
bizType: string;
|
|
457
|
+
code: string;
|
|
458
|
+
action: string;
|
|
459
|
+
[key: string]: unknown;
|
|
460
|
+
}
|
|
461
|
+
export interface DeploymentSyncJob {
|
|
462
|
+
jobId: number;
|
|
463
|
+
status: string;
|
|
464
|
+
results: DeploymentSyncJobItem[];
|
|
465
|
+
[key: string]: unknown;
|
|
466
|
+
}
|
|
467
|
+
export type DeploymentSyncSubmission = {
|
|
468
|
+
outcome: "submitted";
|
|
469
|
+
job: DeploymentSyncJob;
|
|
470
|
+
} | {
|
|
471
|
+
outcome: "not_needed";
|
|
472
|
+
};
|
|
473
|
+
export interface DeploymentSyncJobSummary {
|
|
474
|
+
jobId: number;
|
|
475
|
+
appCode: string;
|
|
476
|
+
status: string;
|
|
477
|
+
[key: string]: unknown;
|
|
478
|
+
}
|
|
479
|
+
export interface DeploymentSyncJobsPage {
|
|
480
|
+
items: DeploymentSyncJobSummary[];
|
|
481
|
+
paging: {
|
|
482
|
+
currentPage: number;
|
|
483
|
+
pageSize: number;
|
|
484
|
+
totalCount: number;
|
|
485
|
+
totalPages: number;
|
|
486
|
+
};
|
|
487
|
+
}
|
|
455
488
|
export declare function syncDeploymentMetadata(input: DeploymentSyncInput): Promise<DeploymentSyncResult>;
|
|
489
|
+
export declare function submitDeploymentMetadataSyncAll(input: {
|
|
490
|
+
appCode: string;
|
|
491
|
+
}): Promise<DeploymentSyncSubmission>;
|
|
492
|
+
export declare function getDeploymentMetadataSyncStatus(input: {
|
|
493
|
+
jobId: number;
|
|
494
|
+
appCode: string;
|
|
495
|
+
}): Promise<DeploymentSyncJob>;
|
|
496
|
+
export declare function listDeploymentMetadataSyncJobs(input: {
|
|
497
|
+
appCode: string;
|
|
498
|
+
currentPage: number;
|
|
499
|
+
pageSize: number;
|
|
500
|
+
status?: string;
|
|
501
|
+
}): Promise<DeploymentSyncJobsPage>;
|
|
456
502
|
export type RecycleBinResourceType = "DATASET";
|
|
457
503
|
export interface RecycleBinResourceLog {
|
|
458
504
|
id: number;
|
|
@@ -972,6 +1018,73 @@ export interface DbAnalysisStatus {
|
|
|
972
1018
|
endTime?: number | string | null;
|
|
973
1019
|
[key: string]: unknown;
|
|
974
1020
|
}
|
|
1021
|
+
export type InstantApiPolicyAction = "allow" | "deny" | "route";
|
|
1022
|
+
export interface InstantApiPolicyDatasetTarget {
|
|
1023
|
+
datasetCode?: string | null;
|
|
1024
|
+
tableName?: string | null;
|
|
1025
|
+
}
|
|
1026
|
+
export interface InstantApiPolicyRule {
|
|
1027
|
+
name: string;
|
|
1028
|
+
description?: string | null;
|
|
1029
|
+
datasets: InstantApiPolicyDatasetTarget[];
|
|
1030
|
+
apis: string[];
|
|
1031
|
+
action: InstantApiPolicyAction | string;
|
|
1032
|
+
backendFunction?: string | null;
|
|
1033
|
+
}
|
|
1034
|
+
export interface InstantApiPolicyConfig {
|
|
1035
|
+
/** Policy document schema version. This is distinct from the published revision. */
|
|
1036
|
+
version: string;
|
|
1037
|
+
appCode: string;
|
|
1038
|
+
defaults: {
|
|
1039
|
+
instantApi: "allow" | "deny" | string;
|
|
1040
|
+
};
|
|
1041
|
+
rules?: InstantApiPolicyRule[] | null;
|
|
1042
|
+
}
|
|
1043
|
+
export interface InstantApiPolicy {
|
|
1044
|
+
id: number;
|
|
1045
|
+
appCode: string;
|
|
1046
|
+
revision: number;
|
|
1047
|
+
config: InstantApiPolicyConfig;
|
|
1048
|
+
configHash: string;
|
|
1049
|
+
enabled: boolean;
|
|
1050
|
+
createUserId?: string | null;
|
|
1051
|
+
updateUserId?: string | null;
|
|
1052
|
+
gmtCreate?: string | null;
|
|
1053
|
+
gmtModified?: string | null;
|
|
1054
|
+
}
|
|
1055
|
+
export interface InstantApiPolicyValidation {
|
|
1056
|
+
valid: boolean;
|
|
1057
|
+
configHash: string;
|
|
1058
|
+
normalizedConfig: InstantApiPolicyConfig;
|
|
1059
|
+
}
|
|
1060
|
+
export interface InstantApiPolicyRevision {
|
|
1061
|
+
id: number;
|
|
1062
|
+
policyId: number;
|
|
1063
|
+
appCode: string;
|
|
1064
|
+
revision: number;
|
|
1065
|
+
config: InstantApiPolicyConfig;
|
|
1066
|
+
configHash: string;
|
|
1067
|
+
changeType: "PUBLISH" | "ROLLBACK" | string;
|
|
1068
|
+
changeSummary?: string | null;
|
|
1069
|
+
operatorId?: string | null;
|
|
1070
|
+
gmtCreate?: string | null;
|
|
1071
|
+
}
|
|
1072
|
+
export interface InstantApiPolicyPublishInput {
|
|
1073
|
+
appCode: string;
|
|
1074
|
+
config: InstantApiPolicyConfig;
|
|
1075
|
+
changeSummary?: string;
|
|
1076
|
+
}
|
|
1077
|
+
export interface InstantApiPolicyRollbackInput {
|
|
1078
|
+
appCode: string;
|
|
1079
|
+
revision: number;
|
|
1080
|
+
changeSummary?: string;
|
|
1081
|
+
}
|
|
1082
|
+
export declare function getCurrentInstantApiPolicy(appCode: string): Promise<InstantApiPolicy | null>;
|
|
1083
|
+
export declare function validateInstantApiPolicy(input: InstantApiPolicyPublishInput): Promise<InstantApiPolicyValidation>;
|
|
1084
|
+
export declare function publishInstantApiPolicy(input: InstantApiPolicyPublishInput): Promise<InstantApiPolicy>;
|
|
1085
|
+
export declare function listInstantApiPolicyRevisions(appCode: string): Promise<InstantApiPolicyRevision[]>;
|
|
1086
|
+
export declare function getInstantApiPolicyRevision(appCode: string, revision: number): Promise<InstantApiPolicyRevision>;
|
|
1087
|
+
export declare function rollbackInstantApiPolicy(input: InstantApiPolicyRollbackInput): Promise<InstantApiPolicy>;
|
|
975
1088
|
export type NotificationChannelType = "EMAIL" | "FEISHU" | "DINGTALK" | "WECOM" | "WEBHOOK";
|
|
976
1089
|
export interface NotificationChannelConfigItem {
|
|
977
1090
|
id?: number | null;
|