@lovrabet/rabetbase-cli 2.5.2-beta.6 → 2.5.2-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/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.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/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 +1 -1
- package/skills/rabetbase.manifest.json +3 -3
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a231_0x2709(){const _0x1022ad=['1935930mtPwdO','map','verbose','expect-path','env','Function\x20node','stdin','SQL\x20code','Expected\x20affected\x20count','expectedChildrenCount','from-env','value','sort','Use\x20remote','Watch\x20mode','Type\x20filter','Name','Menu\x20sort\x20value','file','Read\x20value\x20from\x20environment\x20variable','Code\x20filter','Read\x20value\x20from\x20stdin','<name>','description','Preview\x20operation\x20without\x20executing','label','fromEnv','fromEntries','remote','nonInteractive','Use\x20global\x20config\x20scope','tags','<expr>','help','descriptionFile','skip-imports','type','codes','115129blKavL','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','Expected\x20current\x20child\x20count','schemas','Clear','menuIds','90MKEmgf','Override\x20appcode','target','1664696Zdgpee','Force\x20non-interactive\x20mode\x20(CI)','dbid','pagesize','page','expected-children-count','description-file','code','keyword','Skip\x20import\x20generation','json\x20|\x20pretty\x20|\x20compress','reveal','Tags','yes','<code>','task-id','taskId','File\x20path','Use\x20project\x20config\x20scope','dryRun','sqlname','params','Output\x20path','Alias\x20for\x20--non-interactive','parentId','project','Expected\x20current\x20parent\x20menu\x20id','Page\x20number','enable-bff-save','2QiMIvH','Expected\x20current\x20menu\x20path','meowKey','app','menu-ids','confirm','expectedCount','Apply\x20to\x20all','14645772DQMOZW','3019544TExkBL','expected-count','Rabetbase\x20CLI','string','Page\x20size','SQL\x20string','query','enableBffSave','73738jcaaCr','parent-id','Force\x20overwrite','expectPath','expect-parent-id','Maximum\x20search\x20hits','functionNode','dbId','topk','2734332zsLbUM','name','JSON\x20params','Comma-separated\x20menu\x20IDs','rabetbase','clear','operation','Skip\x20confirmation\x20for\x20high-risk\x20writes','Reveal\x20sensitive\x20value','Schemas','dry-run','Record\x20ID','sqlcode','db-id','force','datasetcode','production\x20|\x20daily','title','Parent\x20menu\x20id','output','non-interactive','sql','global','zh-CN\x20|\x20en-US','boolean','Operation\x20type','Asynchronous\x20task\x20ID','Environment','Search\x20query','Verbose\x20output','format','appcode','@lovrabet/rabetbase-cli','Menu\x20label','locale','watch','DB\x20ID','all','SQL\x20name','Enable\x20Backend\x20Function\x20save','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)'];a231_0x2709=function(){return _0x1022ad;};return a231_0x2709();}const a231_0x20a4a5=a231_0x48df;(function(_0x19a8cd,_0x4db599){const _0xd1096d=a231_0x48df,_0x2cd4e2=_0x19a8cd();while(!![]){try{const _0x444248=-parseInt(_0xd1096d(0x1e7))/0x1*(-parseInt(_0xd1096d(0x20d))/0x2)+-parseInt(_0xd1096d(0x198))/0x3+-parseInt(_0xd1096d(0x1f0))/0x4+parseInt(_0xd1096d(0x1c1))/0x5+parseInt(_0xd1096d(0x1ed))/0x6*(parseInt(_0xd1096d(0x18f))/0x7)+-parseInt(_0xd1096d(0x187))/0x8+parseInt(_0xd1096d(0x186))/0x9;if(_0x444248===_0x4db599)break;else _0x2cd4e2['push'](_0x2cd4e2['shift']());}catch(_0x5579b9){_0x2cd4e2['push'](_0x2cd4e2['shift']());}}}(a231_0x2709,0x8e3ac));function a231_0x48df(_0x4f50c5,_0x47455c){_0x4f50c5=_0x4f50c5-0x185;const _0x270954=a231_0x2709();let _0x48df48=_0x270954[_0x4f50c5];return _0x48df48;}export const CLI_BIN_NAME=a231_0x20a4a5(0x19c);export const CLI_DISPLAY_NAME=a231_0x20a4a5(0x189);export const NPM_PACKAGE_NAME=a231_0x20a4a5(0x1b8);export const GLOBAL_FLAGS=[{'name':a231_0x20a4a5(0x1b7),'meowKey':a231_0x20a4a5(0x1b7),'type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x1ee),'hint':a231_0x20a4a5(0x1fe)},{'name':a231_0x20a4a5(0x210),'meowKey':a231_0x20a4a5(0x210),'type':a231_0x20a4a5(0x18a),'description':'Select\x20app\x20profile\x20by\x20name','hint':a231_0x20a4a5(0x1d7)},{'name':a231_0x20a4a5(0x1c5),'meowKey':'env','type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x1b3),'hint':a231_0x20a4a5(0x1a8)},{'name':'format','meowKey':a231_0x20a4a5(0x1b6),'type':'string','description':'Output\x20format','hint':a231_0x20a4a5(0x1fa)},{'name':'jq','meowKey':'jq','type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x1c0),'hint':a231_0x20a4a5(0x1e1)},{'name':a231_0x20a4a5(0x1a2),'meowKey':a231_0x20a4a5(0x203),'type':a231_0x20a4a5(0x1b0),'description':a231_0x20a4a5(0x1d9)},{'name':a231_0x20a4a5(0x1fd),'meowKey':a231_0x20a4a5(0x1fd),'type':'boolean','description':a231_0x20a4a5(0x19f)},{'name':'non-interactive','meowKey':a231_0x20a4a5(0x1de),'type':a231_0x20a4a5(0x1b0),'description':a231_0x20a4a5(0x1f1)},{'name':a231_0x20a4a5(0x1ae),'meowKey':'global','type':a231_0x20a4a5(0x1b0),'description':a231_0x20a4a5(0x1df)},{'name':'project','meowKey':a231_0x20a4a5(0x209),'type':'boolean','description':a231_0x20a4a5(0x202)},{'name':'ci','meowKey':'ci','type':a231_0x20a4a5(0x1b0),'description':a231_0x20a4a5(0x207),'hidden':!![]},{'name':a231_0x20a4a5(0x1e2),'meowKey':'help','type':a231_0x20a4a5(0x1b0),'description':'Show\x20help'},{'name':a231_0x20a4a5(0x1ba),'meowKey':a231_0x20a4a5(0x1ba),'type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x1e8),'hidden':!![],'hint':a231_0x20a4a5(0x1af)},{'name':a231_0x20a4a5(0x199),'meowKey':a231_0x20a4a5(0x199),'type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x1d1),'hidden':!![]},{'name':'title','meowKey':a231_0x20a4a5(0x1a9),'type':a231_0x20a4a5(0x18a),'description':'Title','hidden':!![]},{'name':a231_0x20a4a5(0x18d),'meowKey':'query','type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x1b4),'hidden':!![]},{'name':a231_0x20a4a5(0x197),'meowKey':a231_0x20a4a5(0x197),'type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x194),'hidden':!![]},{'name':a231_0x20a4a5(0x19d),'meowKey':a231_0x20a4a5(0x19d),'type':a231_0x20a4a5(0x1b0),'description':a231_0x20a4a5(0x1eb),'hidden':!![]},{'name':a231_0x20a4a5(0x1bb),'meowKey':a231_0x20a4a5(0x1bb),'type':a231_0x20a4a5(0x1b0),'description':a231_0x20a4a5(0x1cf),'hidden':!![]},{'name':a231_0x20a4a5(0x1ab),'meowKey':a231_0x20a4a5(0x1ab),'type':'string','description':a231_0x20a4a5(0x206),'hidden':!![]},{'name':'params','meowKey':a231_0x20a4a5(0x205),'type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x19a),'hidden':!![]},{'name':'datasetcode','meowKey':a231_0x20a4a5(0x1a7),'type':'string','description':'Dataset\x20code','hidden':!![]},{'name':a231_0x20a4a5(0x1bd),'meowKey':a231_0x20a4a5(0x1bd),'type':a231_0x20a4a5(0x1b0),'description':a231_0x20a4a5(0x185),'hidden':!![]},{'name':a231_0x20a4a5(0x20c),'meowKey':a231_0x20a4a5(0x18e),'type':'boolean','description':a231_0x20a4a5(0x1bf),'hidden':!![]},{'name':'id','meowKey':'id','type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x1a3),'hidden':!![]},{'name':a231_0x20a4a5(0x1e5),'meowKey':'type','type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x1d0),'hidden':!![]},{'name':a231_0x20a4a5(0x1d3),'meowKey':'file','type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x201),'hidden':!![]},{'name':a231_0x20a4a5(0x1a4),'meowKey':a231_0x20a4a5(0x1a4),'type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x1c8),'hidden':!![]},{'name':'sql-name','meowKey':'sqlName','type':'string','description':'SQL\x20name','hidden':!![]},{'name':'sqlname','meowKey':a231_0x20a4a5(0x204),'type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x1be),'hidden':!![]},{'name':a231_0x20a4a5(0x1a5),'meowKey':a231_0x20a4a5(0x196),'type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x1bc),'hidden':!![]},{'name':'dbid','meowKey':a231_0x20a4a5(0x1f2),'type':a231_0x20a4a5(0x18a),'description':'DB\x20ID','hidden':!![]},{'name':a231_0x20a4a5(0x1d8),'meowKey':a231_0x20a4a5(0x1d8),'type':a231_0x20a4a5(0x18a),'description':'Description','hidden':!![]},{'name':a231_0x20a4a5(0x1f6),'meowKey':a231_0x20a4a5(0x1e3),'type':'string','description':'Description\x20file','hidden':!![]},{'name':'page','meowKey':a231_0x20a4a5(0x1f4),'type':'string','description':a231_0x20a4a5(0x20b),'hidden':!![]},{'name':a231_0x20a4a5(0x1f3),'meowKey':a231_0x20a4a5(0x1f3),'type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x18b),'hidden':!![]},{'name':'keyword','meowKey':a231_0x20a4a5(0x1f8),'type':a231_0x20a4a5(0x18a),'description':'Keyword\x20filter','hidden':!![]},{'name':a231_0x20a4a5(0x1f7),'meowKey':'code','type':'string','description':a231_0x20a4a5(0x1d5),'hidden':!![]},{'name':a231_0x20a4a5(0x1ad),'meowKey':'sql','type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x18c),'hidden':!![]},{'name':a231_0x20a4a5(0x1ea),'meowKey':'schemas','type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x1a1),'hidden':!![]},{'name':a231_0x20a4a5(0x19e),'meowKey':'operation','type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x1b1),'hidden':!![]},{'name':a231_0x20a4a5(0x1ef),'meowKey':a231_0x20a4a5(0x1ef),'type':a231_0x20a4a5(0x18a),'description':'Target\x20path','hidden':!![]},{'name':a231_0x20a4a5(0x1e4),'meowKey':'skipImports','type':a231_0x20a4a5(0x1b0),'description':a231_0x20a4a5(0x1f9),'hidden':!![]},{'name':'key','meowKey':'key','type':'string','description':'Config\x20key','hidden':!![]},{'name':a231_0x20a4a5(0x1cc),'meowKey':a231_0x20a4a5(0x1cc),'type':a231_0x20a4a5(0x18a),'description':'Config\x20value','hidden':!![]},{'name':a231_0x20a4a5(0x1e0),'meowKey':a231_0x20a4a5(0x1e0),'type':'string','description':a231_0x20a4a5(0x1fc),'hidden':!![]},{'name':a231_0x20a4a5(0x1c7),'meowKey':a231_0x20a4a5(0x1c7),'type':a231_0x20a4a5(0x1b0),'description':a231_0x20a4a5(0x1d6),'hidden':!![]},{'name':a231_0x20a4a5(0x1cb),'meowKey':a231_0x20a4a5(0x1db),'type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x1d4),'hidden':!![]},{'name':a231_0x20a4a5(0x1fb),'meowKey':a231_0x20a4a5(0x1fb),'type':a231_0x20a4a5(0x1b0),'description':a231_0x20a4a5(0x1a0),'hidden':!![]},{'name':a231_0x20a4a5(0x1a6),'meowKey':a231_0x20a4a5(0x1a6),'type':'boolean','description':a231_0x20a4a5(0x191),'hidden':!![]},{'name':a231_0x20a4a5(0x212),'meowKey':'confirm','type':a231_0x20a4a5(0x1b0),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a231_0x20a4a5(0x1dd),'meowKey':'remote','type':a231_0x20a4a5(0x1b0),'description':a231_0x20a4a5(0x1ce),'hidden':!![]},{'name':a231_0x20a4a5(0x1c3),'meowKey':a231_0x20a4a5(0x1c3),'type':a231_0x20a4a5(0x1b0),'description':a231_0x20a4a5(0x1b5),'hidden':!![]},{'name':a231_0x20a4a5(0x188),'meowKey':a231_0x20a4a5(0x213),'type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x1c9),'hidden':!![]},{'name':a231_0x20a4a5(0x1da),'meowKey':a231_0x20a4a5(0x1da),'type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x1b9),'hidden':!![]},{'name':a231_0x20a4a5(0x190),'meowKey':a231_0x20a4a5(0x208),'type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x1aa),'hidden':!![]},{'name':a231_0x20a4a5(0x1cd),'meowKey':a231_0x20a4a5(0x1cd),'type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x1d2),'hidden':!![]},{'name':a231_0x20a4a5(0x193),'meowKey':'expectParentId','type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x20a),'hidden':!![]},{'name':a231_0x20a4a5(0x1c4),'meowKey':a231_0x20a4a5(0x192),'type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x20e),'hidden':!![]},{'name':a231_0x20a4a5(0x1f5),'meowKey':a231_0x20a4a5(0x1ca),'type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x1e9),'hidden':!![]},{'name':a231_0x20a4a5(0x211),'meowKey':a231_0x20a4a5(0x1ec),'type':'string','description':a231_0x20a4a5(0x19b),'hidden':!![]},{'name':a231_0x20a4a5(0x1ff),'meowKey':a231_0x20a4a5(0x200),'type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x1b2),'hidden':!![]},{'name':'operation-type','meowKey':'operationType','type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x1b1),'hidden':!![]},{'name':'function-node','meowKey':a231_0x20a4a5(0x195),'type':a231_0x20a4a5(0x18a),'description':a231_0x20a4a5(0x1c6),'hidden':!![]},{'name':'codes','meowKey':a231_0x20a4a5(0x1e6),'type':a231_0x20a4a5(0x18a),'description':'Comma-separated\x20metadata\x20codes','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a231_0x20a4a5(0x1b7),a231_0x20a4a5(0x210),a231_0x20a4a5(0x1c5),a231_0x20a4a5(0x1b6),'jq',a231_0x20a4a5(0x1a2),'yes',a231_0x20a4a5(0x1ac),'ci']);export function buildMeowFlags(){const _0x12fc09=a231_0x20a4a5;return Object[_0x12fc09(0x1dc)](GLOBAL_FLAGS[_0x12fc09(0x1c2)](_0x340709=>[_0x340709[_0x12fc09(0x20f)],{'type':_0x340709[_0x12fc09(0x1e5)]}]));}
|
|
1
|
+
const a231_0xa710e9=a231_0x1820;(function(_0x2ad82a,_0x461bc0){const _0x3efc2d=a231_0x1820,_0xcc4f24=_0x2ad82a();while(!![]){try{const _0x3cebf9=-parseInt(_0x3efc2d(0x1eb))/0x1+-parseInt(_0x3efc2d(0x208))/0x2*(-parseInt(_0x3efc2d(0x24c))/0x3)+-parseInt(_0x3efc2d(0x1ef))/0x4+parseInt(_0x3efc2d(0x23d))/0x5+parseInt(_0x3efc2d(0x25b))/0x6+-parseInt(_0x3efc2d(0x26b))/0x7*(-parseInt(_0x3efc2d(0x1fd))/0x8)+parseInt(_0x3efc2d(0x201))/0x9;if(_0x3cebf9===_0x461bc0)break;else _0xcc4f24['push'](_0xcc4f24['shift']());}catch(_0x410592){_0xcc4f24['push'](_0xcc4f24['shift']());}}}(a231_0x40cc,0x4f293));function a231_0x1820(_0x3717ec,_0x3a87f7){_0x3717ec=_0x3717ec-0x1e2;const _0x40cc71=a231_0x40cc();let _0x18202f=_0x40cc71[_0x3717ec];return _0x18202f;}export const CLI_BIN_NAME=a231_0xa710e9(0x22a);export const CLI_DISPLAY_NAME=a231_0xa710e9(0x22c);function a231_0x40cc(){const _0x2745ac=['JSON\x20params','string','name','Function\x20node','expected-count','Name','env','Override\x20appcode','keyword','sqlName','query','fromEnv','Watch\x20mode','Type\x20filter','sqlname','10330OiaDpi','confirm','dryRun','reveal','Read\x20value\x20from\x20environment\x20variable','expectedCount','Search\x20query','project','skipImports','type','Preview\x20operation\x20without\x20executing','sqlcode','watch','Output\x20format','@lovrabet/rabetbase-cli','6AWgkLc','Description\x20file','Page\x20number','expect-path','Skip\x20import\x20generation','Expected\x20current\x20menu\x20path','non-interactive','locale','force','SQL\x20code','taskId','target','Config\x20value','Dataset\x20code','title','3661158ZJlgsx','topk','function-node','yes','params','nonInteractive','map','Expected\x20affected\x20count','Expected\x20current\x20child\x20count','boolean','operationType','sql-name','format','Comma-separated\x20menu\x20IDs','sort','Use\x20project\x20config\x20scope','1083467REUpKY','tags','key','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','Target\x20path','appcode','pagesize','Alias\x20for\x20--non-interactive','Asynchronous\x20task\x20ID','Reveal\x20sensitive\x20value','app','307541wXrsuC','Menu\x20label','Confirm\x20destructive\x20action','parentId','2441692cdUpAP','Menu\x20sort\x20value','help','dry-run','Expected\x20current\x20parent\x20menu\x20id','Keyword\x20filter','Clear','Config\x20key','<code>','code','DB\x20ID','Force\x20overwrite','dbid','menuIds','8jkdvib','production\x20|\x20daily','Verbose\x20output','Use\x20remote','2903301ZBAZBO','description-file','Force\x20non-interactive\x20mode\x20(CI)','Select\x20app\x20profile\x20by\x20name','page','Operation\x20type','<expr>','152578TGTVNa','clear','file','operation','enableBffSave','sql','Show\x20help','Read\x20value\x20from\x20stdin','<name>','descriptionFile','label','Comma-separated\x20metadata\x20codes','fromEntries','Schemas','description','json\x20|\x20pretty\x20|\x20compress','Record\x20ID','operation-type','Code\x20filter','schemas','Environment','value','output','remote','expectedChildrenCount','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','functionNode','expected-children-count','Apply\x20to\x20all','Maximum\x20search\x20hits','expectParentId','SQL\x20string','verbose','all','rabetbase','datasetcode','Rabetbase\x20CLI','stdin'];a231_0x40cc=function(){return _0x2745ac;};return a231_0x40cc();}export const NPM_PACKAGE_NAME=a231_0xa710e9(0x24b);export const GLOBAL_FLAGS=[{'name':a231_0xa710e9(0x1e5),'meowKey':a231_0xa710e9(0x1e5),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x235),'hint':a231_0xa710e9(0x1f7)},{'name':a231_0xa710e9(0x1ea),'meowKey':a231_0xa710e9(0x1ea),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x204),'hint':a231_0xa710e9(0x210)},{'name':a231_0xa710e9(0x234),'meowKey':a231_0xa710e9(0x234),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x21c),'hint':a231_0xa710e9(0x1fe)},{'name':'format','meowKey':a231_0xa710e9(0x267),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x24a),'hint':a231_0xa710e9(0x217)},{'name':'jq','meowKey':'jq','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x221),'hint':a231_0xa710e9(0x207)},{'name':'dry-run','meowKey':a231_0xa710e9(0x23f),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x247)},{'name':a231_0xa710e9(0x25e),'meowKey':a231_0xa710e9(0x25e),'type':a231_0xa710e9(0x264),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':'non-interactive','meowKey':a231_0xa710e9(0x260),'type':'boolean','description':a231_0xa710e9(0x203)},{'name':'global','meowKey':'global','type':a231_0xa710e9(0x264),'description':'Use\x20global\x20config\x20scope'},{'name':a231_0xa710e9(0x244),'meowKey':'project','type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x26a)},{'name':'ci','meowKey':'ci','type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x1e7),'hidden':!![]},{'name':a231_0xa710e9(0x1f1),'meowKey':'help','type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x20e)},{'name':'locale','meowKey':a231_0xa710e9(0x253),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1e3),'hidden':!![],'hint':'zh-CN\x20|\x20en-US'},{'name':a231_0xa710e9(0x230),'meowKey':a231_0xa710e9(0x230),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x233),'hidden':!![]},{'name':'title','meowKey':a231_0xa710e9(0x25a),'type':a231_0xa710e9(0x22f),'description':'Title','hidden':!![]},{'name':a231_0xa710e9(0x238),'meowKey':a231_0xa710e9(0x238),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x243),'hidden':!![]},{'name':a231_0xa710e9(0x25c),'meowKey':'topk','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x225),'hidden':!![]},{'name':a231_0xa710e9(0x209),'meowKey':a231_0xa710e9(0x209),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x1f5),'hidden':!![]},{'name':a231_0xa710e9(0x249),'meowKey':a231_0xa710e9(0x249),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x23a),'hidden':!![]},{'name':a231_0xa710e9(0x21e),'meowKey':a231_0xa710e9(0x21e),'type':a231_0xa710e9(0x22f),'description':'Output\x20path','hidden':!![]},{'name':a231_0xa710e9(0x25f),'meowKey':'params','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x22e),'hidden':!![]},{'name':a231_0xa710e9(0x22b),'meowKey':a231_0xa710e9(0x22b),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x259),'hidden':!![]},{'name':a231_0xa710e9(0x229),'meowKey':a231_0xa710e9(0x229),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x224),'hidden':!![]},{'name':'enable-bff-save','meowKey':a231_0xa710e9(0x20c),'type':a231_0xa710e9(0x264),'description':'Enable\x20Backend\x20Function\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x218),'hidden':!![]},{'name':a231_0xa710e9(0x246),'meowKey':a231_0xa710e9(0x246),'type':'string','description':a231_0xa710e9(0x23b),'hidden':!![]},{'name':a231_0xa710e9(0x20a),'meowKey':'file','type':'string','description':'File\x20path','hidden':!![]},{'name':a231_0xa710e9(0x248),'meowKey':a231_0xa710e9(0x248),'type':'string','description':a231_0xa710e9(0x255),'hidden':!![]},{'name':a231_0xa710e9(0x266),'meowKey':a231_0xa710e9(0x237),'type':a231_0xa710e9(0x22f),'description':'SQL\x20name','hidden':!![]},{'name':a231_0xa710e9(0x23c),'meowKey':a231_0xa710e9(0x23c),'type':a231_0xa710e9(0x22f),'description':'SQL\x20name','hidden':!![]},{'name':'db-id','meowKey':'dbId','type':'string','description':a231_0xa710e9(0x1f9),'hidden':!![]},{'name':a231_0xa710e9(0x1fb),'meowKey':a231_0xa710e9(0x1fb),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1f9),'hidden':!![]},{'name':a231_0xa710e9(0x216),'meowKey':'description','type':'string','description':'Description','hidden':!![]},{'name':a231_0xa710e9(0x202),'meowKey':a231_0xa710e9(0x211),'type':'string','description':a231_0xa710e9(0x24d),'hidden':!![]},{'name':a231_0xa710e9(0x205),'meowKey':'page','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x24e),'hidden':!![]},{'name':a231_0xa710e9(0x1e6),'meowKey':a231_0xa710e9(0x1e6),'type':a231_0xa710e9(0x22f),'description':'Page\x20size','hidden':!![]},{'name':'keyword','meowKey':a231_0xa710e9(0x236),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1f4),'hidden':!![]},{'name':a231_0xa710e9(0x1f8),'meowKey':a231_0xa710e9(0x1f8),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x21a),'hidden':!![]},{'name':a231_0xa710e9(0x20d),'meowKey':a231_0xa710e9(0x20d),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x227),'hidden':!![]},{'name':a231_0xa710e9(0x21b),'meowKey':a231_0xa710e9(0x21b),'type':'string','description':a231_0xa710e9(0x215),'hidden':!![]},{'name':a231_0xa710e9(0x20b),'meowKey':'operation','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x206),'hidden':!![]},{'name':a231_0xa710e9(0x257),'meowKey':a231_0xa710e9(0x257),'type':'string','description':a231_0xa710e9(0x1e4),'hidden':!![]},{'name':'skip-imports','meowKey':a231_0xa710e9(0x245),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x250),'hidden':!![]},{'name':a231_0xa710e9(0x1e2),'meowKey':'key','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1f6),'hidden':!![]},{'name':a231_0xa710e9(0x21d),'meowKey':a231_0xa710e9(0x21d),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x258),'hidden':!![]},{'name':a231_0xa710e9(0x26c),'meowKey':a231_0xa710e9(0x26c),'type':a231_0xa710e9(0x22f),'description':'Tags','hidden':!![]},{'name':a231_0xa710e9(0x22d),'meowKey':a231_0xa710e9(0x22d),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x20f),'hidden':!![]},{'name':'from-env','meowKey':a231_0xa710e9(0x239),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x241),'hidden':!![]},{'name':a231_0xa710e9(0x240),'meowKey':a231_0xa710e9(0x240),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x1e9),'hidden':!![]},{'name':a231_0xa710e9(0x254),'meowKey':a231_0xa710e9(0x254),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x1fa),'hidden':!![]},{'name':a231_0xa710e9(0x23e),'meowKey':a231_0xa710e9(0x23e),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x1ed),'hidden':!![]},{'name':a231_0xa710e9(0x21f),'meowKey':a231_0xa710e9(0x21f),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x200),'hidden':!![]},{'name':a231_0xa710e9(0x228),'meowKey':a231_0xa710e9(0x228),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x1ff),'hidden':!![]},{'name':a231_0xa710e9(0x232),'meowKey':a231_0xa710e9(0x242),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x262),'hidden':!![]},{'name':a231_0xa710e9(0x212),'meowKey':a231_0xa710e9(0x212),'type':'string','description':a231_0xa710e9(0x1ec),'hidden':!![]},{'name':'parent-id','meowKey':a231_0xa710e9(0x1ee),'type':'string','description':'Parent\x20menu\x20id','hidden':!![]},{'name':a231_0xa710e9(0x269),'meowKey':a231_0xa710e9(0x269),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1f0),'hidden':!![]},{'name':'expect-parent-id','meowKey':a231_0xa710e9(0x226),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1f3),'hidden':!![]},{'name':a231_0xa710e9(0x24f),'meowKey':'expectPath','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x251),'hidden':!![]},{'name':a231_0xa710e9(0x223),'meowKey':a231_0xa710e9(0x220),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x263),'hidden':!![]},{'name':'menu-ids','meowKey':a231_0xa710e9(0x1fc),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x268),'hidden':!![]},{'name':'task-id','meowKey':a231_0xa710e9(0x256),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1e8),'hidden':!![]},{'name':a231_0xa710e9(0x219),'meowKey':a231_0xa710e9(0x265),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x206),'hidden':!![]},{'name':a231_0xa710e9(0x25d),'meowKey':a231_0xa710e9(0x222),'type':'string','description':a231_0xa710e9(0x231),'hidden':!![]},{'name':'codes','meowKey':'codes','type':'string','description':a231_0xa710e9(0x213),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a231_0xa710e9(0x1e5),a231_0xa710e9(0x1ea),a231_0xa710e9(0x234),a231_0xa710e9(0x267),'jq',a231_0xa710e9(0x1f2),a231_0xa710e9(0x25e),a231_0xa710e9(0x252),'ci']);export function buildMeowFlags(){const _0x559b23=a231_0xa710e9;return Object[_0x559b23(0x214)](GLOBAL_FLAGS[_0x559b23(0x261)](_0x379c55=>[_0x379c55['meowKey'],{'type':_0x379c55['type']}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a232_0x2da290=a232_0x5ccc;function a232_0x5ccc(_0x5658c6,_0x4b5798){_0x5658c6=_0x5658c6-0xc7;const _0x5bbc54=a232_0x5bbc();let _0x5ccc4c=_0x5bbc54[_0x5658c6];return _0x5ccc4c;}(function(_0x40c867,_0x3ac1a4){const _0x1b1c94=a232_0x5ccc,_0x235f6b=_0x40c867();while(!![]){try{const _0x4f51c0=-parseInt(_0x1b1c94(0xc8))/0x1*(-parseInt(_0x1b1c94(0xcb))/0x2)+parseInt(_0x1b1c94(0xd4))/0x3*(-parseInt(_0x1b1c94(0xd2))/0x4)+parseInt(_0x1b1c94(0xca))/0x5*(-parseInt(_0x1b1c94(0xcf))/0x6)+parseInt(_0x1b1c94(0xcc))/0x7+-parseInt(_0x1b1c94(0xce))/0x8*(parseInt(_0x1b1c94(0xc9))/0x9)+-parseInt(_0x1b1c94(0xc7))/0xa+-parseInt(_0x1b1c94(0xd3))/0xb*(-parseInt(_0x1b1c94(0xd5))/0xc);if(_0x4f51c0===_0x3ac1a4)break;else _0x235f6b['push'](_0x235f6b['shift']());}catch(_0x1c8fdb){_0x235f6b['push'](_0x235f6b['shift']());}}}(a232_0x5bbc,0x4fe69));import{DEFAULT_API_DIR}from'../constant/paths.js';function a232_0x5bbc(){const _0x2edea3=['3LmBqYg','1428DNScRP','production','1240480vdfkhz','243659xVmdJQ','1365930xQZNPZ','5TmKJiZ','2emBQmW','94045uGvzRf','compress','32vbbYoQ','3879258EEJwfK','write','en-US','20084GpMcSA','134299qVwlcl'];a232_0x5bbc=function(){return _0x2edea3;};return a232_0x5bbc();}export const DEFAULT_CONFIG_VALUES={'env':a232_0x2da290(0xd6),'format':'compress','locale':a232_0x2da290(0xd1),'riskLevel':a232_0x2da290(0xd0),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a232_0x2da290(0xcd);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a233_0x356e(_0x345282,_0x3bc8cb){_0x345282=_0x345282-0x170;const _0x14658d=a233_0x1465();let _0x356ea3=_0x14658d[_0x345282];return _0x356ea3;}const a233_0x283173=a233_0x356e;(function(_0x594696,_0x16e937){const _0x537f4e=a233_0x356e,_0x4f5a4f=_0x594696();while(!![]){try{const _0x14932f=-parseInt(_0x537f4e(0x172))/0x1+parseInt(_0x537f4e(0x181))/0x2*(-parseInt(_0x537f4e(0x186))/0x3)+-parseInt(_0x537f4e(0x173))/0x4+-parseInt(_0x537f4e(0x182))/0x5+-parseInt(_0x537f4e(0x176))/0x6+parseInt(_0x537f4e(0x185))/0x7*(parseInt(_0x537f4e(0x177))/0x8)+-parseInt(_0x537f4e(0x17e))/0x9*(-parseInt(_0x537f4e(0x184))/0xa);if(_0x14932f===_0x16e937)break;else _0x4f5a4f['push'](_0x4f5a4f['shift']());}catch(_0x2bbf4a){_0x4f5a4f['push'](_0x4f5a4f['shift']());}}}(a233_0x1465,0xd4e51));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 a233_0x1465(){const _0x3678c4=['hostname','1296846mhQwZf','2884956aaNlfy','region','runtime','1123830jELIFJ','1648688DygSfN','trim','serviceDomains','/app/','user','/web-app/app/','apiDomain','81bsZMVD','skill','runtimeDomain','206526VNugsL','4129410rEuJBF','skillDomain','5943790KozWWB','7IITsyh','48vhOTvV','kbDomain','userDomain','appDomain'];a233_0x1465=function(){return _0x3678c4;};return a233_0x1465();}function getActiveRegionDomains(){const _0x219024=a233_0x356e,_0x169bfe=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x169bfe[_0x219024(0x179)]['production']:_0x169bfe[_0x219024(0x179)]['daily']??_0x169bfe[_0x219024(0x179)]['production'];}export function initDomains(_0x258b33){const _0x4a94ad=a233_0x356e;customApiDomain=_0x258b33?.[_0x4a94ad(0x17d)],customUserDomain=_0x258b33?.[_0x4a94ad(0x188)],customRuntimeDomain=_0x258b33?.[_0x4a94ad(0x180)],customSkillDomain=_0x258b33?.[_0x4a94ad(0x183)],customKbDomain=_0x258b33?.[_0x4a94ad(0x187)],customAppDomain=_0x258b33?.[_0x4a94ad(0x170)],customLocalDomain=_0x258b33?.['localDomain'],customCertificateDomain=_0x258b33?.['certificateDomain'],customCdn=_0x258b33?.['cdn'],activeRegion=_0x258b33?.[_0x4a94ad(0x174)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a233_0x283173(0x17b)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a233_0x283173(0x175)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a233_0x283173(0x17f)];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 _0x41293a=a233_0x283173;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x41293a(0x175)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0xa6b009=>{const _0x18542f=a233_0x283173,_0x4199f6=encodeURIComponent(_0xa6b009['trim']());return isProduction(getEnv())?getAppDomain()+_0x18542f(0x17a)+_0x4199f6:getAppDomain()+_0x18542f(0x17c)+_0x4199f6;};export const getPublishedAppDomain=_0xeecff2=>{const _0x49e24a=a233_0x283173,_0x28b6d1=new URL(getAppDomain());return _0x28b6d1[_0x49e24a(0x171)]=_0xeecff2[_0x49e24a(0x178)]()+'.'+_0x28b6d1[_0x49e24a(0x171)],_0x28b6d1['origin'];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a234_0x9f10c4=a234_0x469b;(function(_0x413f4f,_0x2f8f61){const _0x4aba3f=a234_0x469b,_0x186200=_0x413f4f();while(!![]){try{const _0x129656=-parseInt(_0x4aba3f(0x183))/0x1+-parseInt(_0x4aba3f(0x182))/0x2+-parseInt(_0x4aba3f(0x18f))/0x3+-parseInt(_0x4aba3f(0x18d))/0x4+parseInt(_0x4aba3f(0x18e))/0x5*(-parseInt(_0x4aba3f(0x186))/0x6)+-parseInt(_0x4aba3f(0x189))/0x7*(parseInt(_0x4aba3f(0x187))/0x8)+-parseInt(_0x4aba3f(0x18c))/0x9*(-parseInt(_0x4aba3f(0x190))/0xa);if(_0x129656===_0x2f8f61)break;else _0x186200['push'](_0x186200['shift']());}catch(_0x405ec0){_0x186200['push'](_0x186200['shift']());}}}(a234_0xd219,0xa4b35));export const RABETBASE_ENV_VALUES=[a234_0x9f10c4(0x18b),a234_0x9f10c4(0x185)];export function normalizeEnv(_0xfbe606){const _0x2a2fb9=a234_0x9f10c4;return _0xfbe606===_0x2a2fb9(0x18a)?'production':_0xfbe606;}function a234_0x469b(_0x9d5bc,_0x2cb44a){_0x9d5bc=_0x9d5bc-0x182;const _0xd2191d=a234_0xd219();let _0x469bcd=_0xd2191d[_0x9d5bc];return _0x469bcd;}function a234_0xd219(){const _0x10cae7=['3001776XrDJRV','60460uqQKdX','2545660tGUAGQ','206481DYMqQu','development','daily','4542150itTsXp','8WbeLYl','dev','3441431GXAtQC','online','production','7902GPRwGS','3620856GJtfoj','5ZlRVPl'];a234_0xd219=function(){return _0x10cae7;};return a234_0xd219();}export function isProduction(_0x551131){return normalizeEnv(_0x551131)==='production';}export function isDaily(_0x35630c){const _0x34bec0=a234_0x9f10c4;return normalizeEnv(_0x35630c)===_0x34bec0(0x185);}export function isDev(_0x1866f7){const _0x1cf9a1=a234_0x9f10c4,_0x5368c9=normalizeEnv(_0x1866f7);return _0x5368c9===_0x1cf9a1(0x184)||_0x5368c9===_0x1cf9a1(0x188);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||'production');export function getEnv(){return env;}export function initEnv(_0x5beca4){env=normalizeEnv(_0x5beca4);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a235_0x5e99ed=a235_0x2528;function a235_0x2528(_0x2eb044,_0x380f25){_0x2eb044=_0x2eb044-0x1ef;const _0x5a32d6=a235_0x5a32();let _0x25282e=_0x5a32d6[_0x2eb044];return _0x25282e;}(function(_0xd7e0eb,_0x2bb6aa){const _0xc60ad8=a235_0x2528,_0x74d66b=_0xd7e0eb();while(!![]){try{const _0x36a090=parseInt(_0xc60ad8(0x1f8))/0x1+parseInt(_0xc60ad8(0x1f9))/0x2*(parseInt(_0xc60ad8(0x1f7))/0x3)+parseInt(_0xc60ad8(0x1f6))/0x4+parseInt(_0xc60ad8(0x1f3))/0x5+-parseInt(_0xc60ad8(0x1f4))/0x6+-parseInt(_0xc60ad8(0x1ef))/0x7+-parseInt(_0xc60ad8(0x1f2))/0x8;if(_0x36a090===_0x2bb6aa)break;else _0x74d66b['push'](_0x74d66b['shift']());}catch(_0x48fabf){_0x74d66b['push'](_0x74d66b['shift']());}}}(a235_0x5a32,0x61506));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a235_0x5e99ed(0x1f1),a235_0x5e99ed(0x1f5),a235_0x5e99ed(0x1f0)];function a235_0x5a32(){const _0x480d38=['pretty','1696188mKxrWW','37299eFLuCA','560917MJmQRo','52KjYGcx','2441166sMfylj','compress','json','1662464PPGUdU','1241640vkdJxR','3608436NjxPqv'];a235_0x5a32=function(){return _0x480d38;};return a235_0x5a32();}
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a236_0xd9e6(){const _0x1f0b4c=['40512PgShYp','149322gYhLbN','193566DWsteS','1108359hacwiD','1245016cgsRXr','80yvFFar','163730qBCieg','474612gFAsAs'];a236_0xd9e6=function(){return _0x1f0b4c;};return a236_0xd9e6();}function a236_0x2c0d(_0x54435a,_0x4cfee3){_0x54435a=_0x54435a-0x1d3;const _0xd9e6fb=a236_0xd9e6();let _0x2c0df3=_0xd9e6fb[_0x54435a];return _0x2c0df3;}(function(_0x23b4d6,_0x392230){const _0x5d5f17=a236_0x2c0d,_0x19df95=_0x23b4d6();while(!![]){try{const _0x3f66c9=parseInt(_0x5d5f17(0x1d8))/0x1+-parseInt(_0x5d5f17(0x1d3))/0x2+-parseInt(_0x5d5f17(0x1d4))/0x3+-parseInt(_0x5d5f17(0x1d9))/0x4+parseInt(_0x5d5f17(0x1d7))/0x5*(-parseInt(_0x5d5f17(0x1da))/0x6)+parseInt(_0x5d5f17(0x1d5))/0x7+parseInt(_0x5d5f17(0x1d6))/0x8;if(_0x3f66c9===_0x392230)break;else _0x19df95['push'](_0x19df95['shift']());}catch(_0x476f9f){_0x19df95['push'](_0x19df95['shift']());}}}(a236_0xd9e6,0x1b4d2));export const DEFAULT_API_DIR='./src/api';
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1093ab,_0x35cbdd){const _0x428496=a237_0x471a,_0x6694f3=_0x1093ab();while(!![]){try{const _0x1f0333=-parseInt(_0x428496(0xe4))/0x1+-parseInt(_0x428496(0xea))/0x2*(parseInt(_0x428496(0xe6))/0x3)+-parseInt(_0x428496(0xe7))/0x4*(-parseInt(_0x428496(0xf0))/0x5)+parseInt(_0x428496(0xee))/0x6+parseInt(_0x428496(0xef))/0x7+parseInt(_0x428496(0xe5))/0x8*(parseInt(_0x428496(0xed))/0x9)+parseInt(_0x428496(0xe8))/0xa*(parseInt(_0x428496(0xeb))/0xb);if(_0x1f0333===_0x35cbdd)break;else _0x6694f3['push'](_0x6694f3['shift']());}catch(_0x44706c){_0x6694f3['push'](_0x6694f3['shift']());}}}(a237_0x1be0,0xd00a9));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;function a237_0x1be0(){const _0x1399ac=['835272QHwGkT','5318870CaKiPk','includes','834314ngfOmv','11wmkTCO','string','621spdjzD','313020GUgUNy','6082111RwiuQU','30kJtEoY','1154851ekoZrz','64072LXKOjq','9LFPUfm'];a237_0x1be0=function(){return _0x1399ac;};return a237_0x1be0();}export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x50b837){const _0x911d44=a237_0x471a;return typeof _0x50b837===_0x911d44(0xec)&&LOVRABET_REGION_VALUES['includes'](_0x50b837);}export function isEnabledLovrabetRegion(_0x5761d9){const _0x1adb54=a237_0x471a;return typeof _0x5761d9==='string'&&ENABLED_LOVRABET_REGION_VALUES[_0x1adb54(0xe9)](_0x5761d9);}export function normalizeLovrabetRegion(_0x356fd0){const _0x1938d1=a237_0x471a;if(typeof _0x356fd0!==_0x1938d1(0xec))return undefined;const _0x468a29=REGION_ALIASES[_0x356fd0]??_0x356fd0;return isLovrabetRegion(_0x468a29)?_0x468a29:undefined;}function a237_0x471a(_0x2d375e,_0x19ddb7){_0x2d375e=_0x2d375e-0xe4;const _0x1be004=a237_0x1be0();let _0x471a6a=_0x1be004[_0x2d375e];return _0x471a6a;}export function isInvalidLovrabetRegion(_0x2ce3cb){return _0x2ce3cb!==undefined&&_0x2ce3cb!==null&&_0x2ce3cb!==''&&normalizeLovrabetRegion(_0x2ce3cb)===undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a238_0x5453(){const _0x5535f4=['5353564KrJITv','1488246JirslX','read','1186364xUKvJA','2538455fovLaE','3103618vTRHDh','4256985zLBnvN','6170376qAtDDe','high-risk-write','write'];a238_0x5453=function(){return _0x5535f4;};return a238_0x5453();}const a238_0x5272b3=a238_0x439d;(function(_0x5f398a,_0x4223d3){const _0x3486cd=a238_0x439d,_0x25867f=_0x5f398a();while(!![]){try{const _0x543f76=-parseInt(_0x3486cd(0x15d))/0x1+parseInt(_0x3486cd(0x15b))/0x2+parseInt(_0x3486cd(0x160))/0x3+-parseInt(_0x3486cd(0x15a))/0x4+parseInt(_0x3486cd(0x15e))/0x5+parseInt(_0x3486cd(0x157))/0x6+-parseInt(_0x3486cd(0x15f))/0x7;if(_0x543f76===_0x4223d3)break;else _0x25867f['push'](_0x25867f['shift']());}catch(_0x142885){_0x25867f['push'](_0x25867f['shift']());}}}(a238_0x5453,0xb27c4));function a238_0x439d(_0x3af9cc,_0x393602){_0x3af9cc=_0x3af9cc-0x157;const _0x54531d=a238_0x5453();let _0x439d28=_0x54531d[_0x3af9cc];return _0x439d28;}export const RISK_LEVEL_VALUES=[a238_0x5272b3(0x15c),a238_0x5272b3(0x159),a238_0x5272b3(0x158)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2dfffc,_0x5750da){const _0x447241=a239_0x5302,_0x42a692=_0x2dfffc();while(!![]){try{const _0x3d62a0=parseInt(_0x447241(0x7e))/0x1*(-parseInt(_0x447241(0x7c))/0x2)+parseInt(_0x447241(0x81))/0x3*(parseInt(_0x447241(0x80))/0x4)+parseInt(_0x447241(0x7a))/0x5*(parseInt(_0x447241(0x84))/0x6)+-parseInt(_0x447241(0x89))/0x7+parseInt(_0x447241(0x7d))/0x8+parseInt(_0x447241(0x7f))/0x9*(-parseInt(_0x447241(0x82))/0xa)+-parseInt(_0x447241(0x85))/0xb*(-parseInt(_0x447241(0x86))/0xc);if(_0x3d62a0===_0x5750da)break;else _0x42a692['push'](_0x42a692['shift']());}catch(_0x4c691c){_0x42a692['push'](_0x42a692['shift']());}}}(a239_0x4d67,0xc0580));import{OFFICIAL_ROUTING_PROFILES as a239_0x9b0836,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a239_0x9b0836;export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x154482){return OFFICIAL_ROUTING_PROFILES[_0x154482];}function a239_0x5302(_0x728e93,_0x35bb91){_0x728e93=_0x728e93-0x7a;const _0x4d67de=a239_0x4d67();let _0x530225=_0x4d67de[_0x728e93];return _0x530225;}export function getOfficialRoutingCdn(_0x50df19){const _0x4853e7=a239_0x5302,_0x26a22b=getOfficialRoutingProfile(_0x50df19)[_0x4853e7(0x87)];if(!_0x26a22b[_0x4853e7(0x83)])throw new Error(_0x4853e7(0x88)+_0x50df19+'\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.');return{'libraries':_0x26a22b[_0x4853e7(0x7b)],'lovrabet':_0x26a22b[_0x4853e7(0x83)]};}function a239_0x4d67(){const _0x3946df=['9539894eEhkVW','7870rneVvC','libraries','73004FngFBq','533016bxDVuf','40exCTii','270EAqweE','1689236DkXUNQ','6qAdJUb','378470pZiRXZ','lovrabet','2190srkCEA','35864587acfUgR','12MMieNI','cdn','Official\x20routing\x20for\x20region\x20\x22'];a239_0x4d67=function(){return _0x3946df;};return a239_0x4d67();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x167ed8,_0x49a791){const _0x5d597a=a240_0x41d2,_0x200bdd=_0x167ed8();while(!![]){try{const _0x58d57e=-parseInt(_0x5d597a(0x1c6))/0x1*(parseInt(_0x5d597a(0x1ac))/0x2)+parseInt(_0x5d597a(0x19c))/0x3+parseInt(_0x5d597a(0x1b9))/0x4*(parseInt(_0x5d597a(0x1b4))/0x5)+parseInt(_0x5d597a(0x19d))/0x6+parseInt(_0x5d597a(0x1ae))/0x7*(parseInt(_0x5d597a(0x1c2))/0x8)+parseInt(_0x5d597a(0x1a2))/0x9+parseInt(_0x5d597a(0x1b3))/0xa*(-parseInt(_0x5d597a(0x1bb))/0xb);if(_0x58d57e===_0x49a791)break;else _0x200bdd['push'](_0x200bdd['shift']());}catch(_0xb9cb68){_0x200bdd['push'](_0x200bdd['shift']());}}}(a240_0x1ea2,0xf189a));function a240_0x1ea2(){const _0x41a457=['32dPMHUl','object','read','projectConfig','144503TjnIQa','2994048DIpYMO','11550978qWxZjc','projectPath','apps','pageSize','riskLevel','7081389LyOJOb','apiDir','string','locale','production','appcode','PAGE_SIZE','trim','find','accessKey','16qLNDLm','format','917063iSWYwV','keys','daily','entries','cookie','10NFrTnF','15htCfpR','length','VERBOSE','globalConfig','env','1659772qIYynM','ENV','36668533ClWyhO','APP','ACCESS_KEY','app','high-risk-write','RISK_LEVEL','write'];a240_0x1ea2=function(){return _0x41a457;};return a240_0x1ea2();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a240_0x41d2(_0x496fe4,_0x2292a3){_0x496fe4=_0x496fe4-0x19c;const _0x1ea2a1=a240_0x1ea2();let _0x41d2dd=_0x1ea2a1[_0x496fe4];return _0x41d2dd;}import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x16e83b){const _0x4cb512=a240_0x41d2;return typeof _0x16e83b==='string'&&_0x16e83b[_0x4cb512(0x1a9)]()?_0x16e83b[_0x4cb512(0x1a9)]():undefined;}function appProfiles(_0x395ae6){const _0x465073=a240_0x41d2;return _0x395ae6[_0x465073(0x19f)]&&typeof _0x395ae6['apps']===_0x465073(0x1c3)?_0x395ae6['apps']:{};}function resolveDefaultAppName(_0x34339c){const _0x34bc69=a240_0x41d2,_0x143924=stringConfigValue(_0x34339c['defaultApp']);if(_0x143924)return _0x143924;const _0x2d1e5d=Object[_0x34bc69(0x1af)](appProfiles(_0x34339c));return _0x2d1e5d[_0x34bc69(0x1b5)]===0x1?_0x2d1e5d[0x0]:undefined;}function resolveTopLevelAppCode(_0x5c0351){const _0x2390c1=a240_0x41d2;return stringConfigValue(_0x5c0351[_0x2390c1(0x1a7)])||stringConfigValue(_0x5c0351[_0x2390c1(0x1be)]);}function normalizeRiskCeiling(_0x32d8cc){const _0x29efcf=a240_0x41d2;if(_0x32d8cc===undefined||_0x32d8cc===null)return undefined;if(_0x32d8cc===_0x29efcf(0x1c4)||_0x32d8cc===_0x29efcf(0x1c1)||_0x32d8cc===_0x29efcf(0x1bf))return _0x32d8cc;return _0x29efcf(0x1c4);}function resolveRiskCeiling(..._0xa4f5a9){const _0x5b4c39=a240_0x41d2;let _0x1a682e;for(const _0x3f107d of _0xa4f5a9){const _0xc8de03=normalizeRiskCeiling(_0x3f107d);_0xc8de03&&(!_0x1a682e||riskLevelOrder(_0xc8de03)<riskLevelOrder(_0x1a682e))&&(_0x1a682e=_0xc8de03);}return _0x1a682e??DEFAULT_CONFIG_VALUES[_0x5b4c39(0x1a1)];}export function resolveAppConfig({raw:_0x5380e6,flags:_0x505e7a,layers:_0x75ef0c,readEnv:_0x26af99}){const _0x26a365=a240_0x41d2,_0x3a6d76=_0x75ef0c?.[_0x26a365(0x1c5)]??{},_0x15edfc=_0x75ef0c?.[_0x26a365(0x1b7)]??{},_0x34e4e4=!!_0x75ef0c?.[_0x26a365(0x19e)]||Object[_0x26a365(0x1af)](_0x3a6d76)[_0x26a365(0x1b5)]>0x0,_0x5d4d72=!_0x34e4e4,_0x34501c=_0x34e4e4?resolveDefaultAppName(_0x3a6d76):undefined,_0x45212f=_0x5d4d72?resolveDefaultAppName(_0x15edfc):undefined,_0x45a605=stringConfigValue(_0x505e7a[_0x26a365(0x1be)]),_0x5e0af1=_0x26af99(_0x26a365(0x1bc)),_0x300c10={};if(_0x5380e6[_0x26a365(0x19f)]&&typeof _0x5380e6[_0x26a365(0x19f)]==='object')for(const [_0x233793,_0x36c6b7]of Object[_0x26a365(0x1b1)](_0x5380e6['apps'])){_0x36c6b7&&typeof _0x36c6b7===_0x26a365(0x1c3)&&_0x36c6b7['appcode']&&(_0x300c10[_0x233793]=_0x36c6b7);}const _0x5b584c=_0x34501c||_0x45212f||resolveDefaultAppName(_0x5380e6),_0x59bbc1=Object[_0x26a365(0x1af)](_0x300c10)['length']>0x0,_0xbf691a=_0x45a605||_0x34501c||_0x5e0af1||_0x45212f||_0x5b584c||undefined,_0x485f68=stringConfigValue(_0x505e7a[_0x26a365(0x1a7)]),_0x3cc724=_0x485f68?Object['entries'](_0x300c10)[_0x26a365(0x1aa)](([,_0x1ec621])=>_0x1ec621?.[_0x26a365(0x1a7)]===_0x485f68):undefined,_0x5595c7=_0x3cc724?.[0x0],_0x1cdf9e=_0x3cc724?.[0x1],_0xa4459b=_0x485f68?_0x5595c7:_0xbf691a;let _0x5bbf0a=_0xa4459b&&_0x300c10[_0xa4459b]?_0x300c10[_0xa4459b]:undefined;_0x485f68&&_0x1cdf9e&&(_0x5bbf0a=_0x1cdf9e);const _0x3b368d=_0x485f68?_0x1cdf9e??_0x5bbf0a:_0x5bbf0a,_0x173ed7=!_0x45a605&&!_0x34501c&&_0x5e0af1&&_0xa4459b===_0x5e0af1,_0x460474=_0x45a605||(_0x173ed7?_0x5e0af1:undefined)||(_0x485f68?_0x5595c7:undefined),_0x34992f=_0x3b368d?.['appcode'],_0x5462bf=_0x34e4e4?resolveTopLevelAppCode(_0x3a6d76):undefined,_0x1d5785=_0x5d4d72?resolveTopLevelAppCode(_0x15edfc):undefined,_0x2d84c5=_0x45a605||_0x34501c?_0x34992f:undefined,_0x5b9409=!_0x45a605&&!_0x34501c?_0x34992f:undefined,_0x35b8f8=_0x485f68||_0x2d84c5||_0x5462bf||_0x5b9409||_0x1d5785||undefined,_0x213f17=_0x34e4e4?stringConfigValue(_0x3a6d76['env']):undefined,_0x221971=_0x5d4d72?stringConfigValue(_0x15edfc['env']):undefined,_0x2cb8bd=_0x505e7a[_0x26a365(0x1b8)]||_0x3b368d?.['env']||_0x213f17||_0x26af99(_0x26a365(0x1ba))||_0x221971||_0x5380e6[_0x26a365(0x1b8)]||DEFAULT_CONFIG_VALUES[_0x26a365(0x1b8)],_0x4cc5fb=_0x3b368d?.['locale']||_0x5380e6[_0x26a365(0x1a5)]||DEFAULT_CONFIG_VALUES[_0x26a365(0x1a5)],_0x3ed1d8=_0x26af99('COOKIE')||_0x3b368d?.[_0x26a365(0x1b2)]||_0x5380e6['cookie']||undefined,_0x1abe1c=_0x26af99(_0x26a365(0x1bd))||_0x3b368d?.['accessKey']||_0x5380e6[_0x26a365(0x1ab)]||undefined,_0x45ecd1=_0x505e7a[_0x26a365(0x1ad)]||_0x26af99('FORMAT')||_0x3b368d?.['format']||_0x5380e6[_0x26a365(0x1ad)],_0x3e29f4=normalizeLegacyOutputFormat(_0x45ecd1),_0x12bbc4=_0x26af99(_0x26a365(0x1a8))||_0x3b368d?.[_0x26a365(0x1a0)]||_0x5380e6['pageSize'],_0x10c547=_0x12bbc4?Number(_0x12bbc4)||undefined:undefined,_0x1c9ec0=_0x75ef0c?[_0x75ef0c[_0x26a365(0x1b7)]['riskLevel'],_0x75ef0c[_0x26a365(0x1c5)][_0x26a365(0x1a1)]]:[_0x5380e6[_0x26a365(0x1a1)]],_0x2b13e8=resolveRiskCeiling(..._0x1c9ec0,_0x3b368d?.[_0x26a365(0x1a1)]),_0x451b5e=resolveRiskCeiling(_0x2b13e8,_0x26af99(_0x26a365(0x1c0))),_0x483cff=_0x26af99(_0x26a365(0x1b6)),_0x309171=_0x483cff==='1'||_0x483cff==='true',_0x4cd442=_0x3b368d?.[_0x26a365(0x1a3)]||_0x5380e6[_0x26a365(0x1a3)]||DEFAULT_CONFIG_VALUES[_0x26a365(0x1a3)],_0x4f1cec=isDaily(normalizeEnv(String(_0x2cb8bd)))?_0x26a365(0x1b0):_0x26a365(0x1a6);return{'appCode':typeof _0x35b8f8===_0x26a365(0x1a4)&&_0x35b8f8['trim']()?_0x35b8f8[_0x26a365(0x1a9)]():undefined,'env':_0x4f1cec,'locale':_0x4cc5fb,'cookie':_0x3ed1d8,'accessKey':_0x1abe1c,'format':_0x3e29f4,'pageSize':_0x10c547,'riskLevel':_0x451b5e,'verbose':_0x309171,'apiDir':_0x4cd442,'apps':_0x300c10,'defaultApp':_0x5b584c,'currentApp':_0x59bbc1?_0xa4459b:undefined,'explicitAppName':_0x460474};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x761a9a,_0x48f304){const _0x4d7313=a241_0x582b,_0x5f110b=_0x761a9a();while(!![]){try{const _0xdd0754=parseInt(_0x4d7313(0x6b))/0x1+-parseInt(_0x4d7313(0x6a))/0x2+parseInt(_0x4d7313(0x70))/0x3+-parseInt(_0x4d7313(0x68))/0x4*(-parseInt(_0x4d7313(0x6f))/0x5)+parseInt(_0x4d7313(0x6c))/0x6*(-parseInt(_0x4d7313(0x6d))/0x7)+-parseInt(_0x4d7313(0x67))/0x8+-parseInt(_0x4d7313(0x6e))/0x9;if(_0xdd0754===_0x48f304)break;else _0x5f110b['push'](_0x5f110b['shift']());}catch(_0x38b138){_0x5f110b['push'](_0x5f110b['shift']());}}}(a241_0x46c0,0xe3c92));function a241_0x582b(_0x329c75,_0x327600){_0x329c75=_0x329c75-0x67;const _0x46c093=a241_0x46c0();let _0x582bae=_0x46c093[_0x329c75];return _0x582bae;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x19f31b){const _0x71de8e=a241_0x582b,{getCookie:_0x386b90}=await import(_0x71de8e(0x69)),_0xfd0afe=_0x19f31b['cookie']||_0x386b90(),_0x4a2631=_0xfd0afe?await getIsSessionValid():![];return{'cookie':_0xfd0afe,'isLoggedIn':_0x4a2631,async 'getOrLogin'(){if(_0xfd0afe&&_0x4a2631)return _0xfd0afe;throw CliErrors['authRequired']();}};}function a241_0x46c0(){const _0x410563=['364BEfdNQ','430461jbEYUw','55CmdKHp','3642909aVMfhG','6237808qGrNPu','498436ZtZTqH','../auth/get-cookie.js','2588120FhAsXe','1486691ISTlNQ','117354YZaomj'];a241_0x46c0=function(){return _0x410563;};return a241_0x46c0();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a242_0x357cf0=a242_0x56ef;(function(_0x8ec9e5,_0x2e6ebd){const _0x28b038=a242_0x56ef,_0x2106c1=_0x8ec9e5();while(!![]){try{const _0x370b63=parseInt(_0x28b038(0x132))/0x1+-parseInt(_0x28b038(0x144))/0x2+parseInt(_0x28b038(0x13e))/0x3+-parseInt(_0x28b038(0x12e))/0x4+parseInt(_0x28b038(0x11d))/0x5+-parseInt(_0x28b038(0x125))/0x6*(-parseInt(_0x28b038(0x136))/0x7)+parseInt(_0x28b038(0x124))/0x8*(-parseInt(_0x28b038(0x14b))/0x9);if(_0x370b63===_0x2e6ebd)break;else _0x2106c1['push'](_0x2106c1['shift']());}catch(_0x3f8d88){_0x2106c1['push'](_0x2106c1['shift']());}}}(a242_0xbc5b,0x2ce98));function a242_0x56ef(_0x2b1ce9,_0x26600c){_0x2b1ce9=_0x2b1ce9-0x119;const _0xbc5b6f=a242_0xbc5b();let _0x56efcf=_0xbc5b6f[_0x2b1ce9];return _0x56efcf;}function a242_0xbc5b(){const _0x196089=['silent','appcode','object','region','4918ouSvdl','userDomain','pageSize','length','project','skillDomain','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','9WWTNuA','apiDomain','Global','config','cookie','accessKey','1566460xsvWYB','runtimeDomain','kbDomain','stringify','status','error','inherit','5939816YLPbHj','40908kjHVLR','cwd','message','migrated','set','localDomain','format','app','keys','152680ZlCxHK','locale','warn','projectPath','342896rmBusw','trim','missing','defaultApp','119qbuaZz','data','appDomain','empty','utf8','riskLevel','\x0a\x20\x20','parse','584916VIbDGy','apps'];a242_0xbc5b=function(){return _0x196089;};return a242_0xbc5b();}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='.rabetbase.json';export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x512203){for(const _0x16754d of CONFIG_NAMES){const _0x32e2a2=resolve(_0x512203,_0x16754d);if(existsSync(_0x32e2a2))return _0x32e2a2;}return undefined;}export function findProjectRootDirectory(_0x5f15ea=process['cwd']()){let _0x22b3a6=resolve(_0x5f15ea);const {root:_0x3d3557}=parse(_0x22b3a6),_0x1d3621=homedir();while(!![]){if(resolveConfigPath(_0x22b3a6)){if(_0x22b3a6===_0x1d3621)break;return _0x22b3a6;}if(_0x22b3a6===_0x3d3557||_0x22b3a6===_0x1d3621)break;const _0x490b9e=dirname(_0x22b3a6);if(_0x490b9e===_0x22b3a6)break;_0x22b3a6=_0x490b9e;}return resolve(_0x5f15ea);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x505dfc){const _0x531879=a242_0x56ef;if(!existsSync(_0x505dfc))return{'status':_0x531879(0x134)};try{const _0xd24713=readFileSync(_0x505dfc,{'encoding':'utf8'});if(!_0xd24713?.[_0x531879(0x133)]())return{'status':_0x531879(0x139)};const _0x26ea12=JSON[_0x531879(0x13d)](_0xd24713);return{'status':'ok','data':_0x26ea12};}catch(_0x3d1eee){return{'status':_0x531879(0x122),'message':_0x3d1eee instanceof Error?_0x3d1eee[_0x531879(0x127)]:String(_0x3d1eee)};}}function parseCliConfigJsonFile(_0x14d673,_0x118da2,_0x4a764d){const _0x56ee07=a242_0x56ef,_0x59e66e=inspectCliConfigJsonFile(_0x14d673);if(_0x59e66e[_0x56ee07(0x121)]===_0x56ee07(0x134)||_0x59e66e[_0x56ee07(0x121)]===_0x56ee07(0x139))return{};if(_0x59e66e['status']==='ok')return _0x59e66e[_0x56ee07(0x137)];return _0x118da2===_0x56ee07(0x130)&&_0x4a764d&&console['error'](CLI_BIN_NAME+':\x20'+_0x4a764d+_0x56ee07(0x14a)+_0x14d673+_0x56ee07(0x13c)+_0x59e66e[_0x56ee07(0x127)]),{};}function normalizeLegacyConfigShape(_0x2151ca){const _0x1831fc=a242_0x56ef;if(!_0x2151ca||typeof _0x2151ca!==_0x1831fc(0x142))return{'config':{},'migrated':![]};const _0x4355e2={..._0x2151ca},_0x55a4ac=_0x4355e2[_0x1831fc(0x13f)]&&typeof _0x4355e2[_0x1831fc(0x13f)]===_0x1831fc(0x142)?{..._0x4355e2[_0x1831fc(0x13f)]}:{},_0x30f8b3=Object[_0x1831fc(0x12d)](_0x55a4ac)[_0x1831fc(0x147)],_0x40b974=_0x4355e2[_0x1831fc(0x141)]||_0x4355e2[_0x1831fc(0x12c)];let _0xf253f7=![];if(_0x40b974&&_0x30f8b3===0x0){const _0x2cf4e7=typeof _0x4355e2['defaultApp']==='string'&&_0x4355e2[_0x1831fc(0x135)][_0x1831fc(0x133)]()?_0x4355e2[_0x1831fc(0x135)]:String(_0x40b974)['trim']();_0x55a4ac[_0x2cf4e7]={'appcode':String(_0x40b974)[_0x1831fc(0x133)](),..._0x4355e2['env']!=null?{'env':_0x4355e2['env']}:{},..._0x4355e2['apiDir']!=null?{'apiDir':_0x4355e2['apiDir']}:{},..._0x4355e2[_0x1831fc(0x11b)]!=null?{'cookie':_0x4355e2[_0x1831fc(0x11b)]}:{},..._0x4355e2[_0x1831fc(0x11c)]!=null?{'accessKey':_0x4355e2[_0x1831fc(0x11c)]}:{},..._0x4355e2[_0x1831fc(0x12b)]!=null?{'format':_0x4355e2[_0x1831fc(0x12b)]}:{},..._0x4355e2[_0x1831fc(0x146)]!=null?{'pageSize':_0x4355e2[_0x1831fc(0x146)]}:{},..._0x4355e2[_0x1831fc(0x13b)]!=null?{'riskLevel':_0x4355e2[_0x1831fc(0x13b)]}:{},..._0x4355e2[_0x1831fc(0x12f)]!=null?{'locale':_0x4355e2[_0x1831fc(0x12f)]}:{}},_0x4355e2[_0x1831fc(0x13f)]=_0x55a4ac,delete _0x4355e2[_0x1831fc(0x135)],_0xf253f7=!![];}return(_0x1831fc(0x141)in _0x4355e2||_0x1831fc(0x12c)in _0x4355e2)&&(delete _0x4355e2[_0x1831fc(0x141)],delete _0x4355e2[_0x1831fc(0x12c)],_0xf253f7=!![]),{'config':_0x4355e2,'migrated':_0xf253f7};}function writeNormalizedConfigIfNeeded(_0x31b185,_0x468f6b){const _0x58c777=a242_0x56ef,_0x4096c6=JSON[_0x58c777(0x120)](_0x468f6b,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x31b185)===_0x4096c6)return;writeConfigFile(_0x31b185,_0x468f6b),normalizedWriteCache[_0x58c777(0x129)](_0x31b185,_0x4096c6);}function parseAndNormalizeConfig(_0x27c00d,_0x25ebd7,_0x3d2522){const _0x275e00=a242_0x56ef,_0x3089eb=parseCliConfigJsonFile(_0x27c00d,_0x25ebd7,_0x3d2522),_0x283795=normalizeLegacyConfigShape(_0x3089eb);if(_0x283795[_0x275e00(0x128)])try{writeNormalizedConfigIfNeeded(_0x27c00d,_0x283795[_0x275e00(0x11a)]);}catch{}return _0x283795[_0x275e00(0x11a)];}export function loadRawConfigLayers(_0x261acb){const _0x19720f=a242_0x56ef;let _0x171e0c={},_0x411898={};const _0x40a28c=resolveConfigPath(homedir());_0x40a28c&&(_0x171e0c=parseAndNormalizeConfig(_0x40a28c,'warn',_0x19720f(0x119)));const _0x3a9747=_0x261acb??findProjectRootDirectory(),_0x522142=resolveConfigPath(_0x3a9747);return _0x522142&&(_0x411898=parseAndNormalizeConfig(_0x522142,_0x19720f(0x130),'Project')),{'globalPath':_0x40a28c,'projectPath':_0x522142,'globalConfig':_0x171e0c,'projectConfig':_0x411898};}const INHERIT_WHITELIST=['cookie',a242_0x357cf0(0x11c),'locale',a242_0x357cf0(0x12b),a242_0x357cf0(0x13b),'pageSize',a242_0x357cf0(0x143),'routing',a242_0x357cf0(0x145),a242_0x357cf0(0x14c),a242_0x357cf0(0x11e),a242_0x357cf0(0x149),a242_0x357cf0(0x11f),a242_0x357cf0(0x138),a242_0x357cf0(0x12a),'certificateDomain'];export function mergeRawConfigLayers(_0x35ec65){const _0x5b2ed1=a242_0x357cf0,{globalConfig:_0x221e44,projectConfig:_0x7d661f}=_0x35ec65,_0xe41b8=!!_0x35ec65[_0x5b2ed1(0x131)]||Object['keys'](_0x7d661f)['length']>0x0;if(!_0xe41b8)return mergeGlobalOnly(_0x221e44);return mergeProjectFirst(_0x221e44,_0x7d661f);}function mergeGlobalOnly(_0x31a413){const _0x321d2a=a242_0x357cf0,_0x50db48={..._0x31a413};delete _0x50db48[_0x321d2a(0x123)];const _0x46e4ea=_0x31a413[_0x321d2a(0x13f)]&&typeof _0x31a413['apps']===_0x321d2a(0x142)?_0x31a413[_0x321d2a(0x13f)]:{};if(Object[_0x321d2a(0x12d)](_0x46e4ea)[_0x321d2a(0x147)]>0x0)_0x50db48[_0x321d2a(0x13f)]=_0x46e4ea;if(_0x31a413[_0x321d2a(0x135)])_0x50db48[_0x321d2a(0x135)]=_0x31a413['defaultApp'];return _0x50db48;}function mergeProjectFirst(_0x2821ff,_0x265518){const _0x948fa2=a242_0x357cf0,_0x38fac4={..._0x265518};delete _0x38fac4[_0x948fa2(0x123)];for(const _0x5944f2 of INHERIT_WHITELIST){!(_0x5944f2 in _0x38fac4)&&_0x5944f2 in _0x2821ff&&(_0x38fac4[_0x5944f2]=_0x2821ff[_0x5944f2]);}const _0x4b3028=_0x265518[_0x948fa2(0x13f)]&&typeof _0x265518[_0x948fa2(0x13f)]===_0x948fa2(0x142)?_0x265518[_0x948fa2(0x13f)]:{};return Object[_0x948fa2(0x12d)](_0x4b3028)['length']>0x0?_0x38fac4[_0x948fa2(0x13f)]=_0x4b3028:delete _0x38fac4['apps'],_0x948fa2(0x135)in _0x265518?_0x38fac4[_0x948fa2(0x135)]=_0x265518['defaultApp']:delete _0x38fac4[_0x948fa2(0x135)],_0x38fac4;}export function readRawConfigWithLayers(_0x4fb1f6){const _0x569439=loadRawConfigLayers(_0x4fb1f6);return{'config':mergeRawConfigLayers(_0x569439),'layers':_0x569439};}export function readRawConfig(_0x4d7b8a){return mergeRawConfigLayers(loadRawConfigLayers(_0x4d7b8a));}export function readConfigFile(_0x2258bf){const _0x21c2ff=a242_0x357cf0;return parseAndNormalizeConfig(_0x2258bf,_0x21c2ff(0x140));}export function writeConfigFile(_0x12cc82,_0x5aeb1a){const _0x116ae2=a242_0x357cf0,_0x182000=dirname(_0x12cc82);!existsSync(_0x182000)&&mkdirSync(_0x182000,{'recursive':!![]});const _0x16287d=_0x12cc82+'.tmp';try{writeFileSync(_0x16287d,JSON[_0x116ae2(0x120)](_0x5aeb1a,null,0x2)+'\x0a',{'encoding':_0x116ae2(0x13a),'mode':0x180}),renameSync(_0x16287d,_0x12cc82);}catch(_0x23aad8){try{unlinkSync(_0x16287d);}catch{}throw _0x23aad8;}}export function resolveWriteConfigPath(_0x2302d5){const _0x6dcd6a=a242_0x357cf0,_0x5bb10b=_0x2302d5===_0x6dcd6a(0x148)?process[_0x6dcd6a(0x126)]():homedir(),_0x27f436=resolveConfigPath(_0x5bb10b);return _0x27f436??resolve(_0x5bb10b,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a243_0x4f7c8c=a243_0x89fb;(function(_0x56a6b0,_0x4f714a){const _0x10f4bc=a243_0x89fb,_0x3b5c27=_0x56a6b0();while(!![]){try{const _0x2a03ea=-parseInt(_0x10f4bc(0x1b8))/0x1+parseInt(_0x10f4bc(0x1b6))/0x2+-parseInt(_0x10f4bc(0x1ae))/0x3+parseInt(_0x10f4bc(0x1ca))/0x4+parseInt(_0x10f4bc(0x1a2))/0x5+parseInt(_0x10f4bc(0x1ac))/0x6+-parseInt(_0x10f4bc(0x19c))/0x7;if(_0x2a03ea===_0x4f714a)break;else _0x3b5c27['push'](_0x3b5c27['shift']());}catch(_0x2aee59){_0x3b5c27['push'](_0x3b5c27['shift']());}}}(a243_0x189e,0x65c99));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(_0x1716cb){return process.env[`RABETBASE_${_0x1716cb}`]||process.env[`LOVRABET_${_0x1716cb}`]||undefined;}function a243_0x89fb(_0x2a4335,_0x159bfa){_0x2a4335=_0x2a4335-0x192;const _0x189e34=a243_0x189e();let _0x89fbac=_0x189e34[_0x2a4335];return _0x89fbac;}function optionalString(_0x4f8e61){const _0x5120bb=a243_0x89fb;return typeof _0x4f8e61===_0x5120bb(0x1a8)&&_0x4f8e61[_0x5120bb(0x1a1)]()?_0x4f8e61[_0x5120bb(0x1a1)]():undefined;}function describeConfiguredRegion(_0x2f2201){const _0x2f7e4a=a243_0x89fb;return typeof _0x2f2201===_0x2f7e4a(0x1a8)?JSON[_0x2f7e4a(0x1ab)](_0x2f2201):_0x2f7e4a(0x1b1)+(_0x2f2201===null?'null':typeof _0x2f2201);}function resolveConfiguredRegion(_0x1d67b9){const _0x31524d=a243_0x89fb;if(isInvalidLovrabetRegion(_0x1d67b9))throw CliErrors[_0x31524d(0x1bc)]('Invalid\x20country/region\x20'+describeConfiguredRegion(_0x1d67b9)+'\x20in\x20Rabetbase\x20configuration.',_0x31524d(0x1c7)+CLI_BIN_NAME+'\x20doctor`\x20to\x20locate\x20and\x20repair\x20the\x20invalid\x20configuration\x20before\x20retrying.');return normalizeLovrabetRegion(_0x1d67b9)??DEFAULT_LOVRABET_REGION;}export function isRoutingRecoveryService(_0x33fc6c){const _0x4a7397=a243_0x89fb;return _0x33fc6c===_0x4a7397(0x1a5)||_0x33fc6c===_0x4a7397(0x198);}export async function createContext(_0x1af4fc){const _0x363e38=a243_0x89fb,{config:_0x10667,layers:_0x5ac09a}=readRawConfigWithLayers(),_0x301ec5=buildConfig(_0x10667,_0x1af4fc,_0x5ac09a);await initGlobalEnvironment(_0x301ec5);const {getUserDomain:_0x35311a,getApiDomain:_0x34647a}=await import(_0x363e38(0x196)),_0x13daa4={'apiDomain':_0x34647a(),'userDomain':_0x35311a()},_0x46f095=await buildAuth(_0x301ec5);logger[_0x363e38(0x1a3)](process['cwd']());const _0x2de255=(CLI_BIN_NAME+'\x20'+process[_0x363e38(0x199)][_0x363e38(0x1cc)](0x2)[_0x363e38(0x1a7)]('\x20'))[_0x363e38(0x1a1)]();logger[_0x363e38(0x1c8)](_0x2de255);const {isNonInteractive:_0x5d7f9c}=await import(_0x363e38(0x1b9)),_0x3a3b5a=_0x5d7f9c(_0x1af4fc);return{'config':_0x301ec5,'auth':_0x46f095,'logger':logger,'env':_0x13daa4,'nonInteractive':_0x3a3b5a};}export function buildConfigFromFlags(_0x596491){const {config:_0xb15e1f,layers:_0x4b8ae0}=readRawConfigWithLayers();return buildConfig(_0xb15e1f,_0x596491,_0x4b8ae0);}export async function initGlobalEnvironment(_0x21d286){const _0x151fbc=a243_0x89fb,_0x9defa3=resolveConfiguredRegion(_0x21d286[_0x151fbc(0x1c5)]?.[_0x151fbc(0x19b)]),_0x109ebe=resolveEnterpriseRoutingManifest(_0x21d286['raw']?.[_0x151fbc(0x1b2)]),_0x19babd={'region':_0x9defa3,'apiDomain':_0x109ebe?_0x109ebe[_0x151fbc(0x1be)][_0x151fbc(0x197)]:optionalString(_0x21d286['raw']?.[_0x151fbc(0x197)]),'userDomain':_0x109ebe?_0x109ebe[_0x151fbc(0x1be)][_0x151fbc(0x1b4)]:optionalString(_0x21d286[_0x151fbc(0x1c5)]?.[_0x151fbc(0x1b4)]),'runtimeDomain':_0x109ebe?_0x109ebe[_0x151fbc(0x1be)]['runtimeDomain']:optionalString(_0x21d286['raw']?.['runtimeDomain']),'skillDomain':_0x109ebe?_0x109ebe[_0x151fbc(0x1be)][_0x151fbc(0x19a)]:optionalString(_0x21d286['raw']?.[_0x151fbc(0x19a)])||optionalString(_0x21d286[_0x151fbc(0x1c5)]?.[_0x151fbc(0x1cd)])||optionalString(_0x21d286[_0x151fbc(0x1c5)]?.[_0x151fbc(0x1c9)])||optionalString(_0x21d286['raw']?.[_0x151fbc(0x1af)]),'kbDomain':_0x109ebe?_0x109ebe[_0x151fbc(0x1be)][_0x151fbc(0x1c3)]:optionalString(_0x21d286[_0x151fbc(0x1c5)]?.[_0x151fbc(0x1c3)])||optionalString(_0x21d286['raw']?.['agentDomain'])||optionalString(_0x21d286[_0x151fbc(0x1c5)]?.[_0x151fbc(0x1af)]),'appDomain':_0x109ebe?_0x109ebe[_0x151fbc(0x1be)][_0x151fbc(0x19e)]:optionalString(_0x21d286['raw']?.[_0x151fbc(0x19e)]),'localDomain':_0x109ebe?_0x109ebe['domains'][_0x151fbc(0x1aa)]:optionalString(_0x21d286['raw']?.['localDomain']),'certificateDomain':_0x109ebe?_0x109ebe[_0x151fbc(0x1be)][_0x151fbc(0x1a6)]:optionalString(_0x21d286['raw']?.[_0x151fbc(0x1a6)]),'cdn':_0x109ebe?.[_0x151fbc(0x192)]},{initEnv:_0x26332f}=await import(_0x151fbc(0x1a0)),{initDomains:_0x97f326}=await import('./constant/domain.js');_0x26332f(_0x21d286[_0x151fbc(0x1c2)]),_0x97f326(_0x19babd);}export function getConfigAppCode(_0x4864ca){const _0x11b7a9=a243_0x89fb,_0x14c6a0=readRawConfig(_0x4864ca);if(_0x14c6a0['apps']&&typeof _0x14c6a0[_0x11b7a9(0x1b7)]===_0x11b7a9(0x1ba)){const _0x1f382a=_0x14c6a0[_0x11b7a9(0x19d)];if(_0x1f382a)return _0x14c6a0['apps'][_0x1f382a]?.[_0x11b7a9(0x1bb)]?String(_0x14c6a0[_0x11b7a9(0x1b7)][_0x1f382a]['appcode'])[_0x11b7a9(0x1a1)]():undefined;const _0x17a1dd=Object[_0x11b7a9(0x1c6)](_0x14c6a0['apps']);if(_0x17a1dd[_0x11b7a9(0x193)]===0x1&&_0x17a1dd[0x0]?.[_0x11b7a9(0x1bb)])return String(_0x17a1dd[0x0][_0x11b7a9(0x1bb)])[_0x11b7a9(0x1a1)]();}const _0x27a5e3=_0x14c6a0[_0x11b7a9(0x1bb)]||_0x14c6a0['app'];if(typeof _0x27a5e3!==_0x11b7a9(0x1a8)||_0x27a5e3[_0x11b7a9(0x1a1)]()==='')return undefined;return _0x27a5e3[_0x11b7a9(0x1a1)]();}export function getMultiAppConfigs(_0x1611fe=a243_0x4f7c8c(0x1c4),_0x369d8d){const _0x62da7b=a243_0x4f7c8c,_0x14aee7=loadRawConfigLayers(_0x369d8d);let _0x42d7c6,_0x339a8f;if(_0x1611fe===_0x62da7b(0x1a4)){const _0x331bb1=_0x14aee7[_0x62da7b(0x194)][_0x62da7b(0x1b7)]&&typeof _0x14aee7[_0x62da7b(0x194)][_0x62da7b(0x1b7)]===_0x62da7b(0x1ba)?_0x14aee7[_0x62da7b(0x194)]['apps']:{},_0x3351d0=_0x14aee7[_0x62da7b(0x19f)]['apps']&&typeof _0x14aee7[_0x62da7b(0x19f)][_0x62da7b(0x1b7)]===_0x62da7b(0x1ba)?_0x14aee7[_0x62da7b(0x19f)][_0x62da7b(0x1b7)]:{};_0x42d7c6={..._0x331bb1,..._0x3351d0};const _0x2b5723=readRawConfig(_0x369d8d);_0x339a8f=_0x2b5723['defaultApp'];}else _0x42d7c6=_0x14aee7[_0x62da7b(0x19f)][_0x62da7b(0x1b7)],_0x339a8f=_0x14aee7[_0x62da7b(0x19f)]['defaultApp'];!_0x339a8f&&_0x42d7c6&&typeof _0x42d7c6===_0x62da7b(0x1ba)&&Object[_0x62da7b(0x1bd)](_0x42d7c6)[_0x62da7b(0x193)]===0x1&&(_0x339a8f=Object[_0x62da7b(0x1bd)](_0x42d7c6)[0x0]);if(!_0x42d7c6||typeof _0x42d7c6!==_0x62da7b(0x1ba)||Object[_0x62da7b(0x1bd)](_0x42d7c6)['length']===0x0)return null;return Object[_0x62da7b(0x1b5)](_0x42d7c6)[_0x62da7b(0x195)](([_0x510326,_0x486a21])=>({'name':_0x510326,'appcode':_0x486a21?.[_0x62da7b(0x1bb)]||'','isDefault':_0x510326===_0x339a8f,'env':_0x486a21?.[_0x62da7b(0x1c2)],'apiDir':_0x486a21?.[_0x62da7b(0x1cb)],'cookie':_0x486a21?.['cookie']||undefined}))[_0x62da7b(0x1c1)](_0x28c75d=>_0x28c75d['appcode']);}export function getTemplateBaseUrl(_0x5bb73b){const _0x1113b1=a243_0x4f7c8c,_0x36e3ec=readRawConfig(_0x5bb73b);if(_0x36e3ec[_0x1113b1(0x1ad)]&&typeof _0x36e3ec[_0x1113b1(0x1ad)]==='string')return _0x36e3ec[_0x1113b1(0x1ad)][_0x1113b1(0x1b0)](/\/$/,'');return _0x1113b1(0x1a9);}function buildConfig(_0x3d7dfa,_0x4bca64,_0x52ef50){return{...resolveAppConfig({'raw':_0x3d7dfa,'flags':_0x4bca64,'layers':_0x52ef50,'readEnv':env}),'raw':_0x3d7dfa};}export function resolveApiFilePath(_0x2c47cb,_0x337802){const _0x45de15=a243_0x4f7c8c,_0x47a8bf=resolve(process[_0x45de15(0x1bf)](),_0x2c47cb),_0x25e8bd=resolve(_0x47a8bf,_0x45de15(0x1b3));if(!_0x337802)return _0x25e8bd;const _0x1e7b1e=readRawConfig(),_0x1767bf=_0x1e7b1e[_0x45de15(0x1b7)]&&typeof _0x1e7b1e['apps']==='object'?_0x1e7b1e[_0x45de15(0x1b7)]:{},_0x37400f=Object[_0x45de15(0x1b5)](_0x1767bf)[_0x45de15(0x1c0)](([,_0x19b5d0])=>_0x19b5d0?.[_0x45de15(0x1bb)]===_0x337802);if(!_0x37400f)return _0x25e8bd;const [_0x1d7e59,_0x5befcf]=_0x37400f,_0x3e2673=typeof _0x1e7b1e[_0x45de15(0x19d)]===_0x45de15(0x1a8)?_0x1e7b1e[_0x45de15(0x19d)]:undefined;if(_0x5befcf?.[_0x45de15(0x1cb)])return _0x25e8bd;if(_0x3e2673&&_0x1d7e59!==_0x3e2673)return resolve(_0x47a8bf,_0x1d7e59+'-api.ts');return _0x25e8bd;}function a243_0x189e(){const _0x2baee3=['keys','domains','cwd','find','filter','env','kbDomain','project','raw','values','Run\x20`','setRawCommand','agentDomain','1028124DRwBco','apiDir','slice','skillHubDomain','cdn','length','globalConfig','map','./constant/domain.js','apiDomain','doctor','argv','skillDomain','region','1608873ubFybn','defaultApp','appDomain','projectConfig','./constant/env.js','trim','23435XoKBDr','setLogPath','merged','config','certificateDomain','join','string','https://g.lovrabet.com/dist/lovrabet-skill','localDomain','stringify','3183342iVFXiS','template_base_url','2218284FuItSn','platformDomain','replace','a\x20value\x20of\x20type\x20','routing','api.ts','userDomain','entries','1654572NNsAqS','apps','233373JSXskP','./utils/is-non-interactive.js','object','appcode','validation'];a243_0x189e=function(){return _0x2baee3;};return a243_0x189e();}
|
|
1
|
+
const a243_0x359480=a243_0x44f0;(function(_0x104d19,_0x5cda72){const _0x142ceb=a243_0x44f0,_0x59d62b=_0x104d19();while(!![]){try{const _0x39352c=-parseInt(_0x142ceb(0xc5))/0x1*(parseInt(_0x142ceb(0xc6))/0x2)+-parseInt(_0x142ceb(0xa9))/0x3*(parseInt(_0x142ceb(0xbb))/0x4)+parseInt(_0x142ceb(0xba))/0x5+-parseInt(_0x142ceb(0xc7))/0x6*(parseInt(_0x142ceb(0xbd))/0x7)+parseInt(_0x142ceb(0xae))/0x8*(parseInt(_0x142ceb(0xb8))/0x9)+-parseInt(_0x142ceb(0xa8))/0xa*(parseInt(_0x142ceb(0xc0))/0xb)+-parseInt(_0x142ceb(0xc8))/0xc*(-parseInt(_0x142ceb(0xca))/0xd);if(_0x39352c===_0x5cda72)break;else _0x59d62b['push'](_0x59d62b['shift']());}catch(_0x85ec1){_0x59d62b['push'](_0x59d62b['shift']());}}}(a243_0xd7a5,0xeda66));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';function a243_0xd7a5(){const _0x12a69e=['api.ts','globalConfig','localDomain','252OUUNQT','./constant/domain.js','574910zOogfv','4388368ijUCHk','region','168833GlexUz','null','cookie','280819KAXHTL','appcode','./constant/env.js','keys','skillHubDomain','8Isjeoj','186962qHVIFb','414uujTbJ','120vBfYuV','runtimeDomain','4236609zjsFIz','./utils/is-non-interactive.js','setRawCommand','domains','doctor','trim','skillDomain','join','stringify','apps','https://g.lovrabet.com/dist/lovrabet-skill','slice','string','length','entries','apiDomain','a\x20value\x20of\x20type\x20','apiDir','agentDomain','defaultApp','raw','kbDomain','certificateDomain','cwd','setLogPath','appDomain','validation','project','\x20doctor`\x20to\x20locate\x20and\x20repair\x20the\x20invalid\x20configuration\x20before\x20retrying.','config','projectConfig','\x20in\x20Rabetbase\x20configuration.','Run\x20`','190EUZhIj','3lfbwEI','routing','values','userDomain','platformDomain','455344iZgSRj','template_base_url','app','merged','replace','object','Invalid\x20country/region\x20'];a243_0xd7a5=function(){return _0x12a69e;};return a243_0xd7a5();}import{resolveAppConfig}from'./context/app-resolver.js';function a243_0x44f0(_0x59985b,_0x5b2110){_0x59985b=_0x59985b-0x93;const _0xd7a59f=a243_0xd7a5();let _0x44f0f9=_0xd7a59f[_0x59985b];return _0x44f0f9;}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(_0x28fd73){return process.env[`RABETBASE_${_0x28fd73}`]||process.env[`LOVRABET_${_0x28fd73}`]||undefined;}function optionalString(_0x164bbe){const _0x4971a2=a243_0x44f0;return typeof _0x164bbe===_0x4971a2(0x93)&&_0x164bbe[_0x4971a2(0xcf)]()?_0x164bbe[_0x4971a2(0xcf)]():undefined;}function describeConfiguredRegion(_0x2240d7){const _0x476a0c=a243_0x44f0;return typeof _0x2240d7===_0x476a0c(0x93)?JSON[_0x476a0c(0xd2)](_0x2240d7):_0x476a0c(0x97)+(_0x2240d7===null?_0x476a0c(0xbe):typeof _0x2240d7);}function resolveConfiguredRegion(_0x12fdb7){const _0x26bac5=a243_0x44f0;if(isInvalidLovrabetRegion(_0x12fdb7))throw CliErrors[_0x26bac5(0xa1)](_0x26bac5(0xb4)+describeConfiguredRegion(_0x12fdb7)+_0x26bac5(0xa6),_0x26bac5(0xa7)+CLI_BIN_NAME+_0x26bac5(0xa3));return normalizeLovrabetRegion(_0x12fdb7)??DEFAULT_LOVRABET_REGION;}export function isRoutingRecoveryService(_0x498068){const _0x18ceed=a243_0x44f0;return _0x498068===_0x18ceed(0xa4)||_0x498068===_0x18ceed(0xce);}export async function createContext(_0x2eeea7){const _0xec8198=a243_0x44f0,{config:_0x4fd43e,layers:_0x4466f4}=readRawConfigWithLayers(),_0x39a243=buildConfig(_0x4fd43e,_0x2eeea7,_0x4466f4);await initGlobalEnvironment(_0x39a243);const {getUserDomain:_0x1c80a9,getApiDomain:_0x2b8cde}=await import(_0xec8198(0xb9)),_0x1bfd2e={'apiDomain':_0x2b8cde(),'userDomain':_0x1c80a9()},_0x4b6f63=await buildAuth(_0x39a243);logger[_0xec8198(0x9f)](process[_0xec8198(0x9e)]());const _0x5eb03c=(CLI_BIN_NAME+'\x20'+process['argv'][_0xec8198(0xd5)](0x2)[_0xec8198(0xd1)]('\x20'))[_0xec8198(0xcf)]();logger[_0xec8198(0xcc)](_0x5eb03c);const {isNonInteractive:_0x557fae}=await import(_0xec8198(0xcb)),_0x5ccc26=_0x557fae(_0x2eeea7);return{'config':_0x39a243,'auth':_0x4b6f63,'logger':logger,'env':_0x1bfd2e,'nonInteractive':_0x5ccc26};}export function buildConfigFromFlags(_0x485044){const {config:_0x45a5ac,layers:_0x2da8fe}=readRawConfigWithLayers();return buildConfig(_0x45a5ac,_0x485044,_0x2da8fe);}export async function initGlobalEnvironment(_0x2aaea3){const _0x521d0b=a243_0x44f0,_0xdb77d9=resolveConfiguredRegion(_0x2aaea3[_0x521d0b(0x9b)]?.[_0x521d0b(0xbc)]),_0x5334eb=resolveEnterpriseRoutingManifest(_0x2aaea3[_0x521d0b(0x9b)]?.[_0x521d0b(0xaa)]),_0x4aa5f5={'region':_0xdb77d9,'apiDomain':_0x5334eb?_0x5334eb['domains'][_0x521d0b(0x96)]:optionalString(_0x2aaea3['raw']?.[_0x521d0b(0x96)]),'userDomain':_0x5334eb?_0x5334eb['domains']['userDomain']:optionalString(_0x2aaea3['raw']?.[_0x521d0b(0xac)]),'runtimeDomain':_0x5334eb?_0x5334eb[_0x521d0b(0xcd)][_0x521d0b(0xc9)]:optionalString(_0x2aaea3[_0x521d0b(0x9b)]?.[_0x521d0b(0xc9)]),'skillDomain':_0x5334eb?_0x5334eb['domains'][_0x521d0b(0xd0)]:optionalString(_0x2aaea3[_0x521d0b(0x9b)]?.['skillDomain'])||optionalString(_0x2aaea3[_0x521d0b(0x9b)]?.[_0x521d0b(0xc4)])||optionalString(_0x2aaea3[_0x521d0b(0x9b)]?.[_0x521d0b(0x99)])||optionalString(_0x2aaea3[_0x521d0b(0x9b)]?.[_0x521d0b(0xad)]),'kbDomain':_0x5334eb?_0x5334eb[_0x521d0b(0xcd)][_0x521d0b(0x9c)]:optionalString(_0x2aaea3[_0x521d0b(0x9b)]?.[_0x521d0b(0x9c)])||optionalString(_0x2aaea3[_0x521d0b(0x9b)]?.[_0x521d0b(0x99)])||optionalString(_0x2aaea3[_0x521d0b(0x9b)]?.[_0x521d0b(0xad)]),'appDomain':_0x5334eb?_0x5334eb[_0x521d0b(0xcd)][_0x521d0b(0xa0)]:optionalString(_0x2aaea3['raw']?.[_0x521d0b(0xa0)]),'localDomain':_0x5334eb?_0x5334eb[_0x521d0b(0xcd)]['localDomain']:optionalString(_0x2aaea3[_0x521d0b(0x9b)]?.[_0x521d0b(0xb7)]),'certificateDomain':_0x5334eb?_0x5334eb['domains'][_0x521d0b(0x9d)]:optionalString(_0x2aaea3[_0x521d0b(0x9b)]?.[_0x521d0b(0x9d)]),'cdn':_0x5334eb?.['cdn']},{initEnv:_0x3926d9}=await import(_0x521d0b(0xc2)),{initDomains:_0x1349ec}=await import('./constant/domain.js');_0x3926d9(_0x2aaea3['env']),_0x1349ec(_0x4aa5f5);}export function getConfigAppCode(_0xe69ff4){const _0x28a3cb=a243_0x44f0,_0x22bf1c=readRawConfig(_0xe69ff4);if(_0x22bf1c[_0x28a3cb(0xd3)]&&typeof _0x22bf1c[_0x28a3cb(0xd3)]===_0x28a3cb(0xb3)){const _0x2e2c9f=_0x22bf1c[_0x28a3cb(0x9a)];if(_0x2e2c9f)return _0x22bf1c[_0x28a3cb(0xd3)][_0x2e2c9f]?.[_0x28a3cb(0xc1)]?String(_0x22bf1c[_0x28a3cb(0xd3)][_0x2e2c9f][_0x28a3cb(0xc1)])[_0x28a3cb(0xcf)]():undefined;const _0x27cefb=Object[_0x28a3cb(0xab)](_0x22bf1c['apps']);if(_0x27cefb['length']===0x1&&_0x27cefb[0x0]?.[_0x28a3cb(0xc1)])return String(_0x27cefb[0x0]['appcode'])[_0x28a3cb(0xcf)]();}const _0xc5d4dc=_0x22bf1c[_0x28a3cb(0xc1)]||_0x22bf1c[_0x28a3cb(0xb0)];if(typeof _0xc5d4dc!==_0x28a3cb(0x93)||_0xc5d4dc[_0x28a3cb(0xcf)]()==='')return undefined;return _0xc5d4dc[_0x28a3cb(0xcf)]();}export function getMultiAppConfigs(_0x2c8e71=a243_0x359480(0xa2),_0x55b684){const _0x3aea59=a243_0x359480,_0x3ca9cb=loadRawConfigLayers(_0x55b684);let _0x4a16c6,_0x27276a;if(_0x2c8e71===_0x3aea59(0xb1)){const _0x4d668d=_0x3ca9cb[_0x3aea59(0xb6)][_0x3aea59(0xd3)]&&typeof _0x3ca9cb[_0x3aea59(0xb6)]['apps']===_0x3aea59(0xb3)?_0x3ca9cb[_0x3aea59(0xb6)][_0x3aea59(0xd3)]:{},_0x1d0b82=_0x3ca9cb[_0x3aea59(0xa5)]['apps']&&typeof _0x3ca9cb[_0x3aea59(0xa5)][_0x3aea59(0xd3)]==='object'?_0x3ca9cb[_0x3aea59(0xa5)][_0x3aea59(0xd3)]:{};_0x4a16c6={..._0x4d668d,..._0x1d0b82};const _0x36fa02=readRawConfig(_0x55b684);_0x27276a=_0x36fa02[_0x3aea59(0x9a)];}else _0x4a16c6=_0x3ca9cb['projectConfig'][_0x3aea59(0xd3)],_0x27276a=_0x3ca9cb['projectConfig'][_0x3aea59(0x9a)];!_0x27276a&&_0x4a16c6&&typeof _0x4a16c6===_0x3aea59(0xb3)&&Object['keys'](_0x4a16c6)[_0x3aea59(0x94)]===0x1&&(_0x27276a=Object['keys'](_0x4a16c6)[0x0]);if(!_0x4a16c6||typeof _0x4a16c6!=='object'||Object[_0x3aea59(0xc3)](_0x4a16c6)[_0x3aea59(0x94)]===0x0)return null;return Object['entries'](_0x4a16c6)['map'](([_0xad58d4,_0xb1fd14])=>({'name':_0xad58d4,'appcode':_0xb1fd14?.['appcode']||'','isDefault':_0xad58d4===_0x27276a,'env':_0xb1fd14?.['env'],'apiDir':_0xb1fd14?.[_0x3aea59(0x98)],'cookie':_0xb1fd14?.[_0x3aea59(0xbf)]||undefined}))['filter'](_0x221d67=>_0x221d67[_0x3aea59(0xc1)]);}export function getTemplateBaseUrl(_0x87bd96){const _0x5067a0=a243_0x359480,_0x3bc2e6=readRawConfig(_0x87bd96);if(_0x3bc2e6[_0x5067a0(0xaf)]&&typeof _0x3bc2e6[_0x5067a0(0xaf)]===_0x5067a0(0x93))return _0x3bc2e6[_0x5067a0(0xaf)][_0x5067a0(0xb2)](/\/$/,'');return _0x5067a0(0xd4);}function buildConfig(_0x5ea775,_0x1f6395,_0x19a116){return{...resolveAppConfig({'raw':_0x5ea775,'flags':_0x1f6395,'layers':_0x19a116,'readEnv':env}),'raw':_0x5ea775};}export function resolveApiFilePath(_0x3bef66,_0x2a7f00){const _0x2c04ed=a243_0x359480,_0x186e2b=resolve(process[_0x2c04ed(0x9e)](),_0x3bef66),_0x144bd0=resolve(_0x186e2b,_0x2c04ed(0xb5));if(!_0x2a7f00)return _0x144bd0;const _0x390309=readRawConfig(),_0x34d23b=_0x390309[_0x2c04ed(0xd3)]&&typeof _0x390309[_0x2c04ed(0xd3)]===_0x2c04ed(0xb3)?_0x390309[_0x2c04ed(0xd3)]:{},_0x3982c2=Object[_0x2c04ed(0x95)](_0x34d23b)['find'](([,_0x25a104])=>_0x25a104?.['appcode']===_0x2a7f00);if(!_0x3982c2)return _0x144bd0;const [_0x846e00,_0x485874]=_0x3982c2,_0xb430a5=typeof _0x390309[_0x2c04ed(0x9a)]==='string'?_0x390309[_0x2c04ed(0x9a)]:undefined;if(_0x485874?.[_0x2c04ed(0x98)])return _0x144bd0;if(_0xb430a5&&_0x846e00!==_0xb430a5)return resolve(_0x186e2b,_0x846e00+'-api.ts');return _0x144bd0;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a244_0x4738(_0x3bde67,_0x37b059){_0x3bde67=_0x3bde67-0x199;const _0x486a42=a244_0x486a();let _0x473848=_0x486a42[_0x3bde67];return _0x473848;}(function(_0x273a05,_0x5bfd93){const _0x2e1385=a244_0x4738,_0x47a937=_0x273a05();while(!![]){try{const _0x5f4dc9=-parseInt(_0x2e1385(0x1a8))/0x1*(-parseInt(_0x2e1385(0x1a3))/0x2)+-parseInt(_0x2e1385(0x1a0))/0x3+parseInt(_0x2e1385(0x1a2))/0x4+-parseInt(_0x2e1385(0x199))/0x5+parseInt(_0x2e1385(0x19d))/0x6*(-parseInt(_0x2e1385(0x19b))/0x7)+parseInt(_0x2e1385(0x19f))/0x8*(parseInt(_0x2e1385(0x19a))/0x9)+-parseInt(_0x2e1385(0x1aa))/0xa;if(_0x5f4dc9===_0x5bfd93)break;else _0x47a937['push'](_0x47a937['shift']());}catch(_0x13f92a){_0x47a937['push'](_0x47a937['shift']());}}}(a244_0x486a,0x7454b));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';function a244_0x486a(){const _0x40567d=['1776944TBwieK','2214USInjt','get','datasetCode','cwd','alias','771dapABj','find','304080ALUqoe','set','4195565ihkCte','1497708lMHplx','11389kvErPH','exec','402oqNwVN','has','32SpujTF','1525080bGsRBG','push'];a244_0x486a=function(){return _0x40567d;};return a244_0x486a();}const cache=new Map();function parseApiFile(_0x68456a){const _0x4cccb8=a244_0x4738,_0x437064=[],_0x56c4ce=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x495697;while((_0x495697=_0x56c4ce[_0x4cccb8(0x19c)](_0x68456a))!==null){_0x437064[_0x4cccb8(0x1a1)]({'datasetCode':_0x495697[0x1],'tableName':_0x495697[0x2],'name':_0x495697[0x3],'alias':_0x495697[0x4]});}return _0x437064;}export function loadAliasMap(_0x4a3971,_0xc98c96,_0x19d004){const _0x2ce439=a244_0x4738,_0x2a0da5=_0x19d004??resolve(process[_0x2ce439(0x1a6)](),_0x4a3971,'api.ts');if(cache[_0x2ce439(0x19e)](_0x2a0da5))return cache[_0x2ce439(0x1a4)](_0x2a0da5);if(!existsSync(_0x2a0da5))return cache[_0x2ce439(0x1ab)](_0x2a0da5,[]),[];try{const _0x1259a1=readFileSync(_0x2a0da5,'utf-8'),_0x10d6bf=parseApiFile(_0x1259a1);return cache['set'](_0x2a0da5,_0x10d6bf),_0x10d6bf;}catch{return cache[_0x2ce439(0x1ab)](_0x2a0da5,[]),[];}}export function resolveAlias(_0x455b0e,_0x1fd82d,_0x159476,_0x8a0e1c){const _0x83fb74=a244_0x4738;if(!_0x1fd82d)return undefined;const _0x46900f=loadAliasMap(_0x455b0e,_0x159476,_0x8a0e1c),_0x3babef=_0x46900f[_0x83fb74(0x1a9)](_0x53392e=>_0x53392e[_0x83fb74(0x1a7)]===_0x1fd82d);return _0x3babef?.[_0x83fb74(0x1a5)];}export function listAliases(_0x5038a7,_0x4daffa,_0x2c50ee){return loadAliasMap(_0x5038a7,_0x4daffa,_0x2c50ee);}
|