@lovrabet/rabetbase-cli 2.5.2-beta.7 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/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
|
-
const a231_0xa710e9=a231_0x1820;(function(_0x2ad82a,_0x461bc0){const _0x3efc2d=a231_0x1820,_0xcc4f24=_0x2ad82a();while(!![]){try{const _0x3cebf9=-parseInt(_0x3efc2d(0x1eb))/0x1+-parseInt(_0x3efc2d(0x208))/0x2*(-parseInt(_0x3efc2d(0x24c))/0x3)+-parseInt(_0x3efc2d(0x1ef))/0x4+parseInt(_0x3efc2d(0x23d))/0x5+parseInt(_0x3efc2d(0x25b))/0x6+-parseInt(_0x3efc2d(0x26b))/0x7*(-parseInt(_0x3efc2d(0x1fd))/0x8)+parseInt(_0x3efc2d(0x201))/0x9;if(_0x3cebf9===_0x461bc0)break;else _0xcc4f24['push'](_0xcc4f24['shift']());}catch(_0x410592){_0xcc4f24['push'](_0xcc4f24['shift']());}}}(a231_0x40cc,0x4f293));function a231_0x1820(_0x3717ec,_0x3a87f7){_0x3717ec=_0x3717ec-0x1e2;const _0x40cc71=a231_0x40cc();let _0x18202f=_0x40cc71[_0x3717ec];return _0x18202f;}export const CLI_BIN_NAME=a231_0xa710e9(0x22a);export const CLI_DISPLAY_NAME=a231_0xa710e9(0x22c);function a231_0x40cc(){const _0x2745ac=['JSON\x20params','string','name','Function\x20node','expected-count','Name','env','Override\x20appcode','keyword','sqlName','query','fromEnv','Watch\x20mode','Type\x20filter','sqlname','10330OiaDpi','confirm','dryRun','reveal','Read\x20value\x20from\x20environment\x20variable','expectedCount','Search\x20query','project','skipImports','type','Preview\x20operation\x20without\x20executing','sqlcode','watch','Output\x20format','@lovrabet/rabetbase-cli','6AWgkLc','Description\x20file','Page\x20number','expect-path','Skip\x20import\x20generation','Expected\x20current\x20menu\x20path','non-interactive','locale','force','SQL\x20code','taskId','target','Config\x20value','Dataset\x20code','title','3661158ZJlgsx','topk','function-node','yes','params','nonInteractive','map','Expected\x20affected\x20count','Expected\x20current\x20child\x20count','boolean','operationType','sql-name','format','Comma-separated\x20menu\x20IDs','sort','Use\x20project\x20config\x20scope','1083467REUpKY','tags','key','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','Target\x20path','appcode','pagesize','Alias\x20for\x20--non-interactive','Asynchronous\x20task\x20ID','Reveal\x20sensitive\x20value','app','307541wXrsuC','Menu\x20label','Confirm\x20destructive\x20action','parentId','2441692cdUpAP','Menu\x20sort\x20value','help','dry-run','Expected\x20current\x20parent\x20menu\x20id','Keyword\x20filter','Clear','Config\x20key','<code>','code','DB\x20ID','Force\x20overwrite','dbid','menuIds','8jkdvib','production\x20|\x20daily','Verbose\x20output','Use\x20remote','2903301ZBAZBO','description-file','Force\x20non-interactive\x20mode\x20(CI)','Select\x20app\x20profile\x20by\x20name','page','Operation\x20type','<expr>','152578TGTVNa','clear','file','operation','enableBffSave','sql','Show\x20help','Read\x20value\x20from\x20stdin','<name>','descriptionFile','label','Comma-separated\x20metadata\x20codes','fromEntries','Schemas','description','json\x20|\x20pretty\x20|\x20compress','Record\x20ID','operation-type','Code\x20filter','schemas','Environment','value','output','remote','expectedChildrenCount','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','functionNode','expected-children-count','Apply\x20to\x20all','Maximum\x20search\x20hits','expectParentId','SQL\x20string','verbose','all','rabetbase','datasetcode','Rabetbase\x20CLI','stdin'];a231_0x40cc=function(){return _0x2745ac;};return a231_0x40cc();}export const NPM_PACKAGE_NAME=a231_0xa710e9(0x24b);export const GLOBAL_FLAGS=[{'name':a231_0xa710e9(0x1e5),'meowKey':a231_0xa710e9(0x1e5),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x235),'hint':a231_0xa710e9(0x1f7)},{'name':a231_0xa710e9(0x1ea),'meowKey':a231_0xa710e9(0x1ea),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x204),'hint':a231_0xa710e9(0x210)},{'name':a231_0xa710e9(0x234),'meowKey':a231_0xa710e9(0x234),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x21c),'hint':a231_0xa710e9(0x1fe)},{'name':'format','meowKey':a231_0xa710e9(0x267),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x24a),'hint':a231_0xa710e9(0x217)},{'name':'jq','meowKey':'jq','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x221),'hint':a231_0xa710e9(0x207)},{'name':'dry-run','meowKey':a231_0xa710e9(0x23f),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x247)},{'name':a231_0xa710e9(0x25e),'meowKey':a231_0xa710e9(0x25e),'type':a231_0xa710e9(0x264),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':'non-interactive','meowKey':a231_0xa710e9(0x260),'type':'boolean','description':a231_0xa710e9(0x203)},{'name':'global','meowKey':'global','type':a231_0xa710e9(0x264),'description':'Use\x20global\x20config\x20scope'},{'name':a231_0xa710e9(0x244),'meowKey':'project','type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x26a)},{'name':'ci','meowKey':'ci','type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x1e7),'hidden':!![]},{'name':a231_0xa710e9(0x1f1),'meowKey':'help','type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x20e)},{'name':'locale','meowKey':a231_0xa710e9(0x253),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1e3),'hidden':!![],'hint':'zh-CN\x20|\x20en-US'},{'name':a231_0xa710e9(0x230),'meowKey':a231_0xa710e9(0x230),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x233),'hidden':!![]},{'name':'title','meowKey':a231_0xa710e9(0x25a),'type':a231_0xa710e9(0x22f),'description':'Title','hidden':!![]},{'name':a231_0xa710e9(0x238),'meowKey':a231_0xa710e9(0x238),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x243),'hidden':!![]},{'name':a231_0xa710e9(0x25c),'meowKey':'topk','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x225),'hidden':!![]},{'name':a231_0xa710e9(0x209),'meowKey':a231_0xa710e9(0x209),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x1f5),'hidden':!![]},{'name':a231_0xa710e9(0x249),'meowKey':a231_0xa710e9(0x249),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x23a),'hidden':!![]},{'name':a231_0xa710e9(0x21e),'meowKey':a231_0xa710e9(0x21e),'type':a231_0xa710e9(0x22f),'description':'Output\x20path','hidden':!![]},{'name':a231_0xa710e9(0x25f),'meowKey':'params','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x22e),'hidden':!![]},{'name':a231_0xa710e9(0x22b),'meowKey':a231_0xa710e9(0x22b),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x259),'hidden':!![]},{'name':a231_0xa710e9(0x229),'meowKey':a231_0xa710e9(0x229),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x224),'hidden':!![]},{'name':'enable-bff-save','meowKey':a231_0xa710e9(0x20c),'type':a231_0xa710e9(0x264),'description':'Enable\x20Backend\x20Function\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x218),'hidden':!![]},{'name':a231_0xa710e9(0x246),'meowKey':a231_0xa710e9(0x246),'type':'string','description':a231_0xa710e9(0x23b),'hidden':!![]},{'name':a231_0xa710e9(0x20a),'meowKey':'file','type':'string','description':'File\x20path','hidden':!![]},{'name':a231_0xa710e9(0x248),'meowKey':a231_0xa710e9(0x248),'type':'string','description':a231_0xa710e9(0x255),'hidden':!![]},{'name':a231_0xa710e9(0x266),'meowKey':a231_0xa710e9(0x237),'type':a231_0xa710e9(0x22f),'description':'SQL\x20name','hidden':!![]},{'name':a231_0xa710e9(0x23c),'meowKey':a231_0xa710e9(0x23c),'type':a231_0xa710e9(0x22f),'description':'SQL\x20name','hidden':!![]},{'name':'db-id','meowKey':'dbId','type':'string','description':a231_0xa710e9(0x1f9),'hidden':!![]},{'name':a231_0xa710e9(0x1fb),'meowKey':a231_0xa710e9(0x1fb),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1f9),'hidden':!![]},{'name':a231_0xa710e9(0x216),'meowKey':'description','type':'string','description':'Description','hidden':!![]},{'name':a231_0xa710e9(0x202),'meowKey':a231_0xa710e9(0x211),'type':'string','description':a231_0xa710e9(0x24d),'hidden':!![]},{'name':a231_0xa710e9(0x205),'meowKey':'page','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x24e),'hidden':!![]},{'name':a231_0xa710e9(0x1e6),'meowKey':a231_0xa710e9(0x1e6),'type':a231_0xa710e9(0x22f),'description':'Page\x20size','hidden':!![]},{'name':'keyword','meowKey':a231_0xa710e9(0x236),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1f4),'hidden':!![]},{'name':a231_0xa710e9(0x1f8),'meowKey':a231_0xa710e9(0x1f8),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x21a),'hidden':!![]},{'name':a231_0xa710e9(0x20d),'meowKey':a231_0xa710e9(0x20d),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x227),'hidden':!![]},{'name':a231_0xa710e9(0x21b),'meowKey':a231_0xa710e9(0x21b),'type':'string','description':a231_0xa710e9(0x215),'hidden':!![]},{'name':a231_0xa710e9(0x20b),'meowKey':'operation','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x206),'hidden':!![]},{'name':a231_0xa710e9(0x257),'meowKey':a231_0xa710e9(0x257),'type':'string','description':a231_0xa710e9(0x1e4),'hidden':!![]},{'name':'skip-imports','meowKey':a231_0xa710e9(0x245),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x250),'hidden':!![]},{'name':a231_0xa710e9(0x1e2),'meowKey':'key','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1f6),'hidden':!![]},{'name':a231_0xa710e9(0x21d),'meowKey':a231_0xa710e9(0x21d),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x258),'hidden':!![]},{'name':a231_0xa710e9(0x26c),'meowKey':a231_0xa710e9(0x26c),'type':a231_0xa710e9(0x22f),'description':'Tags','hidden':!![]},{'name':a231_0xa710e9(0x22d),'meowKey':a231_0xa710e9(0x22d),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x20f),'hidden':!![]},{'name':'from-env','meowKey':a231_0xa710e9(0x239),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x241),'hidden':!![]},{'name':a231_0xa710e9(0x240),'meowKey':a231_0xa710e9(0x240),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x1e9),'hidden':!![]},{'name':a231_0xa710e9(0x254),'meowKey':a231_0xa710e9(0x254),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x1fa),'hidden':!![]},{'name':a231_0xa710e9(0x23e),'meowKey':a231_0xa710e9(0x23e),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x1ed),'hidden':!![]},{'name':a231_0xa710e9(0x21f),'meowKey':a231_0xa710e9(0x21f),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x200),'hidden':!![]},{'name':a231_0xa710e9(0x228),'meowKey':a231_0xa710e9(0x228),'type':a231_0xa710e9(0x264),'description':a231_0xa710e9(0x1ff),'hidden':!![]},{'name':a231_0xa710e9(0x232),'meowKey':a231_0xa710e9(0x242),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x262),'hidden':!![]},{'name':a231_0xa710e9(0x212),'meowKey':a231_0xa710e9(0x212),'type':'string','description':a231_0xa710e9(0x1ec),'hidden':!![]},{'name':'parent-id','meowKey':a231_0xa710e9(0x1ee),'type':'string','description':'Parent\x20menu\x20id','hidden':!![]},{'name':a231_0xa710e9(0x269),'meowKey':a231_0xa710e9(0x269),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1f0),'hidden':!![]},{'name':'expect-parent-id','meowKey':a231_0xa710e9(0x226),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1f3),'hidden':!![]},{'name':a231_0xa710e9(0x24f),'meowKey':'expectPath','type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x251),'hidden':!![]},{'name':a231_0xa710e9(0x223),'meowKey':a231_0xa710e9(0x220),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x263),'hidden':!![]},{'name':'menu-ids','meowKey':a231_0xa710e9(0x1fc),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x268),'hidden':!![]},{'name':'task-id','meowKey':a231_0xa710e9(0x256),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x1e8),'hidden':!![]},{'name':a231_0xa710e9(0x219),'meowKey':a231_0xa710e9(0x265),'type':a231_0xa710e9(0x22f),'description':a231_0xa710e9(0x206),'hidden':!![]},{'name':a231_0xa710e9(0x25d),'meowKey':a231_0xa710e9(0x222),'type':'string','description':a231_0xa710e9(0x231),'hidden':!![]},{'name':'codes','meowKey':'codes','type':'string','description':a231_0xa710e9(0x213),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a231_0xa710e9(0x1e5),a231_0xa710e9(0x1ea),a231_0xa710e9(0x234),a231_0xa710e9(0x267),'jq',a231_0xa710e9(0x1f2),a231_0xa710e9(0x25e),a231_0xa710e9(0x252),'ci']);export function buildMeowFlags(){const _0x559b23=a231_0xa710e9;return Object[_0x559b23(0x214)](GLOBAL_FLAGS[_0x559b23(0x261)](_0x379c55=>[_0x379c55['meowKey'],{'type':_0x379c55['type']}]));}
|
|
1
|
+
function a231_0x162b(){const _0x4c4726=['Page\x20number','help','Use\x20project\x20config\x20scope','reveal','skip-imports','meowKey','596TRBdOi','File\x20path','Name','env','confirm','Target\x20path','Schemas','datasetcode','description-file','JSON\x20params','taskId','fromEntries','topk','<name>','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','all','sqlcode','tags','Force\x20overwrite','remote','Function\x20node','string','386FHCHkQ','type','value','dbid','Asynchronous\x20task\x20ID','297185HILJxJ','90460Hrszkm','Override\x20appcode','project','Verbose\x20output','Use\x20global\x20config\x20scope','Record\x20ID','500124DYTEmX','stdin','Reveal\x20sensitive\x20value','enable-bff-save','non-interactive','force','Environment','parentId','expect-path','operationType','sort','Clear','Read\x20value\x20from\x20environment\x20variable','watch','global','Config\x20key','function-node','Output\x20format','369639WXVDUw','SQL\x20string','Menu\x20sort\x20value','expectParentId','Maximum\x20search\x20hits','Dataset\x20code','Tags','Skip\x20import\x20generation','production\x20|\x20daily','Page\x20size','appcode','801nKkcuG','app','sql','Show\x20help','expectedCount','Skip\x20confirmation\x20for\x20high-risk\x20writes','db-id','Operation\x20type','label','boolean','SQL\x20name','dbId','Expected\x20current\x20child\x20count','keyword','Description','11936OWAOuE','query','Comma-separated\x20menu\x20IDs','expect-parent-id','schemas','expected-count','30gKKjcl','Code\x20filter','yes','Enable\x20Backend\x20Function\x20save','<expr>','dry-run','key','operation-type','Expected\x20current\x20parent\x20menu\x20id','Force\x20non-interactive\x20mode\x20(CI)','menuIds','title','sql-name','Read\x20value\x20from\x20stdin','sqlname','description','1182380LdllrP','DB\x20ID','name','rabetbase','from-env','page','params','Menu\x20label','clear','expectedChildrenCount','Use\x20remote','Config\x20value','codes','target','enableBffSave','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','code','fromEnv','Search\x20query','Apply\x20to\x20all','verbose','Parent\x20menu\x20id','parent-id','<code>','expectPath','format','33rdqVeR','functionNode','sqlName','zh-CN\x20|\x20en-US','Expected\x20affected\x20count','nonInteractive','descriptionFile','Type\x20filter'];a231_0x162b=function(){return _0x4c4726;};return a231_0x162b();}function a231_0x157c(_0x1c691c,_0x23551e){_0x1c691c=_0x1c691c-0xcf;const _0x162b8b=a231_0x162b();let _0x157c56=_0x162b8b[_0x1c691c];return _0x157c56;}const a231_0x430e9=a231_0x157c;(function(_0x468708,_0x311bd1){const _0x32e34d=a231_0x157c,_0x17d9b9=_0x468708();while(!![]){try{const _0xf50d45=-parseInt(_0x32e34d(0x155))/0x1*(parseInt(_0x32e34d(0x13f))/0x2)+parseInt(_0x32e34d(0xe7))/0x3+parseInt(_0x32e34d(0xd5))/0x4+-parseInt(_0x32e34d(0xcf))/0x5+parseInt(_0x32e34d(0x107))/0x6*(-parseInt(_0x32e34d(0x15a))/0x7)+parseInt(_0x32e34d(0x101))/0x8*(-parseInt(_0x32e34d(0xf2))/0x9)+parseInt(_0x32e34d(0x117))/0xa*(parseInt(_0x32e34d(0x131))/0xb);if(_0xf50d45===_0x311bd1)break;else _0x17d9b9['push'](_0x17d9b9['shift']());}catch(_0x28d626){_0x17d9b9['push'](_0x17d9b9['shift']());}}}(a231_0x162b,0x1e767));export const CLI_BIN_NAME=a231_0x430e9(0x11a);export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a231_0x430e9(0xf1),'meowKey':a231_0x430e9(0xf1),'type':'string','description':a231_0x430e9(0xd0),'hint':a231_0x430e9(0x12e)},{'name':a231_0x430e9(0xf3),'meowKey':'app','type':a231_0x430e9(0x154),'description':'Select\x20app\x20profile\x20by\x20name','hint':a231_0x430e9(0x14c)},{'name':'env','meowKey':a231_0x430e9(0x142),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xdb),'hint':a231_0x430e9(0xef)},{'name':a231_0x430e9(0x130),'meowKey':a231_0x430e9(0x130),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xe6),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a231_0x430e9(0x154),'description':a231_0x430e9(0x14d),'hint':a231_0x430e9(0x10b)},{'name':a231_0x430e9(0x10c),'meowKey':'dryRun','type':a231_0x430e9(0xfb),'description':'Preview\x20operation\x20without\x20executing'},{'name':'yes','meowKey':a231_0x430e9(0x109),'type':a231_0x430e9(0xfb),'description':a231_0x430e9(0xf7)},{'name':a231_0x430e9(0xd9),'meowKey':a231_0x430e9(0x136),'type':'boolean','description':a231_0x430e9(0x110)},{'name':a231_0x430e9(0xe3),'meowKey':a231_0x430e9(0xe3),'type':a231_0x430e9(0xfb),'description':a231_0x430e9(0xd3)},{'name':a231_0x430e9(0xd1),'meowKey':'project','type':a231_0x430e9(0xfb),'description':a231_0x430e9(0x13b)},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a231_0x430e9(0x13a),'meowKey':'help','type':a231_0x430e9(0xfb),'description':a231_0x430e9(0xf5)},{'name':'locale','meowKey':'locale','type':a231_0x430e9(0x154),'description':a231_0x430e9(0x126),'hidden':!![],'hint':a231_0x430e9(0x134)},{'name':a231_0x430e9(0x119),'meowKey':a231_0x430e9(0x119),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x141),'hidden':!![]},{'name':a231_0x430e9(0x112),'meowKey':a231_0x430e9(0x112),'type':a231_0x430e9(0x154),'description':'Title','hidden':!![]},{'name':a231_0x430e9(0x102),'meowKey':a231_0x430e9(0x102),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x129),'hidden':!![]},{'name':a231_0x430e9(0x14b),'meowKey':a231_0x430e9(0x14b),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xeb),'hidden':!![]},{'name':a231_0x430e9(0x11f),'meowKey':a231_0x430e9(0x11f),'type':'boolean','description':a231_0x430e9(0xe0),'hidden':!![]},{'name':a231_0x430e9(0xe2),'meowKey':a231_0x430e9(0xe2),'type':'boolean','description':'Watch\x20mode','hidden':!![]},{'name':'output','meowKey':'output','type':'string','description':'Output\x20path','hidden':!![]},{'name':a231_0x430e9(0x11d),'meowKey':a231_0x430e9(0x11d),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x148),'hidden':!![]},{'name':a231_0x430e9(0x146),'meowKey':'datasetcode','type':a231_0x430e9(0x154),'description':a231_0x430e9(0xec),'hidden':!![]},{'name':a231_0x430e9(0x14e),'meowKey':'all','type':'boolean','description':a231_0x430e9(0x12a),'hidden':!![]},{'name':a231_0x430e9(0xd8),'meowKey':a231_0x430e9(0x125),'type':a231_0x430e9(0xfb),'description':a231_0x430e9(0x10a),'hidden':!![]},{'name':'id','meowKey':'id','type':a231_0x430e9(0x154),'description':a231_0x430e9(0xd4),'hidden':!![]},{'name':a231_0x430e9(0x156),'meowKey':'type','type':a231_0x430e9(0x154),'description':a231_0x430e9(0x138),'hidden':!![]},{'name':'file','meowKey':'file','type':a231_0x430e9(0x154),'description':a231_0x430e9(0x140),'hidden':!![]},{'name':a231_0x430e9(0x14f),'meowKey':a231_0x430e9(0x14f),'type':a231_0x430e9(0x154),'description':'SQL\x20code','hidden':!![]},{'name':a231_0x430e9(0x113),'meowKey':a231_0x430e9(0x133),'type':'string','description':a231_0x430e9(0xfc),'hidden':!![]},{'name':'sqlname','meowKey':a231_0x430e9(0x115),'type':a231_0x430e9(0x154),'description':'SQL\x20name','hidden':!![]},{'name':a231_0x430e9(0xf8),'meowKey':a231_0x430e9(0xfd),'type':'string','description':a231_0x430e9(0x118),'hidden':!![]},{'name':a231_0x430e9(0x158),'meowKey':'dbid','type':a231_0x430e9(0x154),'description':a231_0x430e9(0x118),'hidden':!![]},{'name':a231_0x430e9(0x116),'meowKey':a231_0x430e9(0x116),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x100),'hidden':!![]},{'name':a231_0x430e9(0x147),'meowKey':a231_0x430e9(0x137),'type':a231_0x430e9(0x154),'description':'Description\x20file','hidden':!![]},{'name':a231_0x430e9(0x11c),'meowKey':'page','type':a231_0x430e9(0x154),'description':a231_0x430e9(0x139),'hidden':!![]},{'name':'pagesize','meowKey':'pagesize','type':a231_0x430e9(0x154),'description':a231_0x430e9(0xf0),'hidden':!![]},{'name':a231_0x430e9(0xff),'meowKey':a231_0x430e9(0xff),'type':'string','description':'Keyword\x20filter','hidden':!![]},{'name':a231_0x430e9(0x127),'meowKey':'code','type':a231_0x430e9(0x154),'description':a231_0x430e9(0x108),'hidden':!![]},{'name':a231_0x430e9(0xf4),'meowKey':a231_0x430e9(0xf4),'type':'string','description':a231_0x430e9(0xe8),'hidden':!![]},{'name':a231_0x430e9(0x105),'meowKey':a231_0x430e9(0x105),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x145),'hidden':!![]},{'name':'operation','meowKey':'operation','type':a231_0x430e9(0x154),'description':a231_0x430e9(0xf9),'hidden':!![]},{'name':a231_0x430e9(0x124),'meowKey':a231_0x430e9(0x124),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x144),'hidden':!![]},{'name':a231_0x430e9(0x13d),'meowKey':'skipImports','type':'boolean','description':a231_0x430e9(0xee),'hidden':!![]},{'name':'key','meowKey':a231_0x430e9(0x10d),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xe4),'hidden':!![]},{'name':a231_0x430e9(0x157),'meowKey':'value','type':a231_0x430e9(0x154),'description':a231_0x430e9(0x122),'hidden':!![]},{'name':'tags','meowKey':a231_0x430e9(0x150),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xed),'hidden':!![]},{'name':'stdin','meowKey':a231_0x430e9(0xd6),'type':'boolean','description':a231_0x430e9(0x114),'hidden':!![]},{'name':a231_0x430e9(0x11b),'meowKey':a231_0x430e9(0x128),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xe1),'hidden':!![]},{'name':a231_0x430e9(0x13c),'meowKey':a231_0x430e9(0x13c),'type':a231_0x430e9(0xfb),'description':a231_0x430e9(0xd7),'hidden':!![]},{'name':a231_0x430e9(0xda),'meowKey':a231_0x430e9(0xda),'type':a231_0x430e9(0xfb),'description':a231_0x430e9(0x151),'hidden':!![]},{'name':a231_0x430e9(0x143),'meowKey':a231_0x430e9(0x143),'type':a231_0x430e9(0xfb),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a231_0x430e9(0x152),'meowKey':a231_0x430e9(0x152),'type':a231_0x430e9(0xfb),'description':a231_0x430e9(0x121),'hidden':!![]},{'name':a231_0x430e9(0x12b),'meowKey':'verbose','type':a231_0x430e9(0xfb),'description':a231_0x430e9(0xd2),'hidden':!![]},{'name':a231_0x430e9(0x106),'meowKey':a231_0x430e9(0xf6),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x135),'hidden':!![]},{'name':a231_0x430e9(0xfa),'meowKey':a231_0x430e9(0xfa),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x11e),'hidden':!![]},{'name':a231_0x430e9(0x12d),'meowKey':a231_0x430e9(0xdc),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x12c),'hidden':!![]},{'name':a231_0x430e9(0xdf),'meowKey':a231_0x430e9(0xdf),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xe9),'hidden':!![]},{'name':a231_0x430e9(0x104),'meowKey':a231_0x430e9(0xea),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x10f),'hidden':!![]},{'name':a231_0x430e9(0xdd),'meowKey':a231_0x430e9(0x12f),'type':a231_0x430e9(0x154),'description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':'expected-children-count','meowKey':a231_0x430e9(0x120),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xfe),'hidden':!![]},{'name':'menu-ids','meowKey':a231_0x430e9(0x111),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x103),'hidden':!![]},{'name':'task-id','meowKey':a231_0x430e9(0x149),'type':'string','description':a231_0x430e9(0x159),'hidden':!![]},{'name':a231_0x430e9(0x10e),'meowKey':a231_0x430e9(0xde),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0xf9),'hidden':!![]},{'name':a231_0x430e9(0xe5),'meowKey':a231_0x430e9(0x132),'type':a231_0x430e9(0x154),'description':a231_0x430e9(0x153),'hidden':!![]},{'name':a231_0x430e9(0x123),'meowKey':'codes','type':'string','description':'Comma-separated\x20metadata\x20codes','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a231_0x430e9(0xf3),a231_0x430e9(0x142),'format','jq',a231_0x430e9(0x10c),a231_0x430e9(0x109),a231_0x430e9(0xd9),'ci']);export function buildMeowFlags(){const _0x55ef46=a231_0x430e9;return Object[_0x55ef46(0x14a)](GLOBAL_FLAGS['map'](_0x376c20=>[_0x376c20[_0x55ef46(0x13e)],{'type':_0x376c20[_0x55ef46(0x156)]}]));}
|
package/lib/constant/defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a232_0x4059fc=a232_0x2e2f;function a232_0x2e2f(_0x5305a5,_0x32fdf9){_0x5305a5=_0x5305a5-0x73;const _0x3fdecd=a232_0x3fde();let _0x2e2f7e=_0x3fdecd[_0x5305a5];return _0x2e2f7e;}(function(_0x45afb9,_0x5f529d){const _0x432962=a232_0x2e2f,_0x27ad91=_0x45afb9();while(!![]){try{const _0x1c1842=parseInt(_0x432962(0x76))/0x1*(parseInt(_0x432962(0x79))/0x2)+-parseInt(_0x432962(0x7e))/0x3*(parseInt(_0x432962(0x7c))/0x4)+-parseInt(_0x432962(0x77))/0x5*(parseInt(_0x432962(0x7b))/0x6)+-parseInt(_0x432962(0x75))/0x7+-parseInt(_0x432962(0x74))/0x8+parseInt(_0x432962(0x80))/0x9*(-parseInt(_0x432962(0x7a))/0xa)+parseInt(_0x432962(0x7f))/0xb;if(_0x1c1842===_0x5f529d)break;else _0x27ad91['push'](_0x27ad91['shift']());}catch(_0x994b01){_0x27ad91['push'](_0x27ad91['shift']());}}}(a232_0x3fde,0xf08e0));function a232_0x3fde(){const _0x7f2f96=['en-US','744356bQyLoT','10SWHQEK','912Dhhwwq','302852YUnmKd','production','12mYtTOW','41129220otfUAV','11441637TSQkwE','write','compress','441848NPvUoT','7043764rJuzRO','4XeiImL','52855oJFSUv'];a232_0x3fde=function(){return _0x7f2f96;};return a232_0x3fde();}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a232_0x4059fc(0x7d),'format':a232_0x4059fc(0x73),'locale':a232_0x4059fc(0x78),'riskLevel':a232_0x4059fc(0x81),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a232_0x4059fc(0x73);
|
package/lib/constant/domain.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a233_0x1d4b(_0x406da6,_0x10d8f8){_0x406da6=_0x406da6-0xee;const _0x13002a=a233_0x1300();let _0x1d4b44=_0x13002a[_0x406da6];return _0x1d4b44;}const a233_0x5a11c3=a233_0x1d4b;(function(_0x5f27b7,_0x4d494b){const _0x545ff0=a233_0x1d4b,_0x229113=_0x5f27b7();while(!![]){try{const _0x43ac1e=parseInt(_0x545ff0(0xf7))/0x1+-parseInt(_0x545ff0(0xfd))/0x2+parseInt(_0x545ff0(0x107))/0x3*(parseInt(_0x545ff0(0xfa))/0x4)+parseInt(_0x545ff0(0x10a))/0x5*(parseInt(_0x545ff0(0xfc))/0x6)+-parseInt(_0x545ff0(0x102))/0x7+parseInt(_0x545ff0(0xee))/0x8*(-parseInt(_0x545ff0(0x101))/0x9)+parseInt(_0x545ff0(0xef))/0xa;if(_0x43ac1e===_0x4d494b)break;else _0x229113['push'](_0x229113['shift']());}catch(_0xfa40a9){_0x229113['push'](_0x229113['shift']());}}}(a233_0x1300,0x959cc));import{getEnv,isProduction}from'../constant/env.js';function a233_0x1300(){const _0xaf4b85=['105432PxXkKY','trim','apiDomain','2186256JZMiRC','serviceDomains','525558cYFldg','295078eGfVdl','/web-app/app/','appDomain','runtime','16551wzzKrH','7714091XRCltz','/app/','api','app','user','3LEDxVY','cdn','kbDomain','20SGDlzh','4912lQPxgt','19891420yyRbsg','daily','region','userDomain','hostname','production','localDomain','certificateDomain'];a233_0x1300=function(){return _0xaf4b85;};return a233_0x1300();}import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x4b58ac=a233_0x1d4b,_0x507815=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x507815[_0x4b58ac(0xfb)][_0x4b58ac(0xf4)]:_0x507815['serviceDomains'][_0x4b58ac(0xf0)]??_0x507815[_0x4b58ac(0xfb)][_0x4b58ac(0xf4)];}export function initDomains(_0x476777){const _0x8ffa9e=a233_0x1d4b;customApiDomain=_0x476777?.[_0x8ffa9e(0xf9)],customUserDomain=_0x476777?.[_0x8ffa9e(0xf2)],customRuntimeDomain=_0x476777?.['runtimeDomain'],customSkillDomain=_0x476777?.['skillDomain'],customKbDomain=_0x476777?.[_0x8ffa9e(0x109)],customAppDomain=_0x476777?.[_0x8ffa9e(0xff)],customLocalDomain=_0x476777?.[_0x8ffa9e(0xf5)],customCertificateDomain=_0x476777?.[_0x8ffa9e(0xf6)],customCdn=_0x476777?.[_0x8ffa9e(0x108)],activeRegion=_0x476777?.[_0x8ffa9e(0xf1)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a233_0x5a11c3(0x106)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a233_0x5a11c3(0x104)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a233_0x5a11c3(0x100)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a233_0x5a11c3(0x105)];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 _0x5cd991=a233_0x5a11c3;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x5cd991(0x100)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x454071=>{const _0x25119c=a233_0x5a11c3,_0x40653a=encodeURIComponent(_0x454071['trim']());return isProduction(getEnv())?getAppDomain()+_0x25119c(0x103)+_0x40653a:getAppDomain()+_0x25119c(0xfe)+_0x40653a;};export const getPublishedAppDomain=_0x1fdd28=>{const _0x164aae=a233_0x5a11c3,_0x3ed8f8=new URL(getAppDomain());return _0x3ed8f8[_0x164aae(0xf3)]=_0x1fdd28[_0x164aae(0xf8)]()+'.'+_0x3ed8f8[_0x164aae(0xf3)],_0x3ed8f8['origin'];};
|
package/lib/constant/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a234_0xda9fb4=a234_0x2b7b;(function(_0x3a9aa1,_0x4250f8){const _0x5943d6=a234_0x2b7b,_0x12b77a=_0x3a9aa1();while(!![]){try{const _0x91c2fa=parseInt(_0x5943d6(0x1f3))/0x1*(parseInt(_0x5943d6(0x200))/0x2)+parseInt(_0x5943d6(0x1fc))/0x3*(parseInt(_0x5943d6(0x1fa))/0x4)+-parseInt(_0x5943d6(0x1f6))/0x5+parseInt(_0x5943d6(0x1f7))/0x6+-parseInt(_0x5943d6(0x1fd))/0x7+-parseInt(_0x5943d6(0x1f9))/0x8+-parseInt(_0x5943d6(0x1fb))/0x9*(parseInt(_0x5943d6(0x1ff))/0xa);if(_0x91c2fa===_0x4250f8)break;else _0x12b77a['push'](_0x12b77a['shift']());}catch(_0x258185){_0x12b77a['push'](_0x12b77a['shift']());}}}(a234_0x37ac,0x37351));export const RABETBASE_ENV_VALUES=[a234_0xda9fb4(0x1fe),a234_0xda9fb4(0x1f8)];export function normalizeEnv(_0x3358c1){const _0x44a38c=a234_0xda9fb4;return _0x3358c1===_0x44a38c(0x1f5)?_0x44a38c(0x1fe):_0x3358c1;}export function isProduction(_0xd114ed){return normalizeEnv(_0xd114ed)==='production';}function a234_0x2b7b(_0x488b1b,_0x54db1a){_0x488b1b=_0x488b1b-0x1f3;const _0x37ac0c=a234_0x37ac();let _0x2b7b98=_0x37ac0c[_0x488b1b];return _0x2b7b98;}export function isDaily(_0x2a6180){const _0x4ca754=a234_0xda9fb4;return normalizeEnv(_0x2a6180)===_0x4ca754(0x1f8);}export function isDev(_0x24ffec){const _0xaff422=a234_0xda9fb4,_0x1d74b7=normalizeEnv(_0x24ffec);return _0x1d74b7==='development'||_0x1d74b7===_0xaff422(0x1f4);}function a234_0x37ac(){const _0x1d1956=['8270VIEjOe','49292blCWjM','8APVhIf','dev','online','540995ScyWqe','1874100kqTHoc','daily','1260064HUvhkJ','8KtmOSb','2673zOTWnt','437286HXkqDx','445109qTRywE','production'];a234_0x37ac=function(){return _0x1d1956;};return a234_0x37ac();}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a234_0xda9fb4(0x1fe));export function getEnv(){return env;}export function initEnv(_0x79b42d){env=normalizeEnv(_0x79b42d);}
|
package/lib/constant/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a235_0x427489=a235_0x5707;function a235_0x4401(){const _0x42803a=['20yBKIAh','2793350zxYbCO','7512568dmVEhU','8NkBcpD','687685GYZjtH','5641614uPXOTC','pretty','3WrDXOa','673155sWQbKO','compress','json','1093049wDbxlA','1027742lHlZfO'];a235_0x4401=function(){return _0x42803a;};return a235_0x4401();}(function(_0x3fc5c3,_0xd03071){const _0x44674a=a235_0x5707,_0x2b0781=_0x3fc5c3();while(!![]){try{const _0x56b360=parseInt(_0x44674a(0xb7))/0x1+parseInt(_0x44674a(0xb8))/0x2*(parseInt(_0x44674a(0xb3))/0x3)+parseInt(_0x44674a(0xb9))/0x4*(-parseInt(_0x44674a(0xb0))/0x5)+parseInt(_0x44674a(0xb1))/0x6+-parseInt(_0x44674a(0xae))/0x7+-parseInt(_0x44674a(0xaf))/0x8*(-parseInt(_0x44674a(0xb4))/0x9)+-parseInt(_0x44674a(0xba))/0xa;if(_0x56b360===_0xd03071)break;else _0x2b0781['push'](_0x2b0781['shift']());}catch(_0x5c9462){_0x2b0781['push'](_0x2b0781['shift']());}}}(a235_0x4401,0x8e06c));function a235_0x5707(_0x2d2cf3,_0xc98df){_0x2d2cf3=_0x2d2cf3-0xae;const _0x4401eb=a235_0x4401();let _0x570744=_0x4401eb[_0x2d2cf3];return _0x570744;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a235_0x427489(0xb6),a235_0x427489(0xb2),a235_0x427489(0xb5)];
|
package/lib/constant/paths.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a236_0x1192d7=a236_0x2cca;function a236_0x2cca(_0x392fe0,_0x37dbcd){_0x392fe0=_0x392fe0-0x1b7;const _0x5b7d61=a236_0x5b7d();let _0x2cca2c=_0x5b7d61[_0x392fe0];return _0x2cca2c;}function a236_0x5b7d(){const _0x42bf52=['4008370XQgeaI','10836RFhBNu','1686abpbcy','./src/api','22996FKnGKE','1591931TZyOTJ','1068026gQEopo','1358658sIUZhe','309uSeclJ','9384HucKln','1ZGMuRZ','15115FqBaYb'];a236_0x5b7d=function(){return _0x42bf52;};return a236_0x5b7d();}(function(_0x589f55,_0x3c9354){const _0x40431b=a236_0x2cca,_0x327c72=_0x589f55();while(!![]){try{const _0x106e86=parseInt(_0x40431b(0x1b9))/0x1*(parseInt(_0x40431b(0x1c1))/0x2)+parseInt(_0x40431b(0x1b7))/0x3*(-parseInt(_0x40431b(0x1bf))/0x4)+parseInt(_0x40431b(0x1ba))/0x5*(-parseInt(_0x40431b(0x1bd))/0x6)+-parseInt(_0x40431b(0x1c2))/0x7+parseInt(_0x40431b(0x1b8))/0x8*(parseInt(_0x40431b(0x1bc))/0x9)+parseInt(_0x40431b(0x1bb))/0xa+parseInt(_0x40431b(0x1c0))/0xb;if(_0x106e86===_0x3c9354)break;else _0x327c72['push'](_0x327c72['shift']());}catch(_0xc2d21){_0x327c72['push'](_0x327c72['shift']());}}}(a236_0x5b7d,0xd105f));export const DEFAULT_API_DIR=a236_0x1192d7(0x1be);
|
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x573485,_0x3f0d36){const _0x106a25=a237_0x5b33,_0x2d23ca=_0x573485();while(!![]){try{const _0x4dbb9c=parseInt(_0x106a25(0xf0))/0x1*(-parseInt(_0x106a25(0xf2))/0x2)+parseInt(_0x106a25(0xf5))/0x3*(parseInt(_0x106a25(0xf4))/0x4)+parseInt(_0x106a25(0xf6))/0x5+-parseInt(_0x106a25(0xef))/0x6*(parseInt(_0x106a25(0xed))/0x7)+-parseInt(_0x106a25(0xee))/0x8*(parseInt(_0x106a25(0xeb))/0x9)+-parseInt(_0x106a25(0xf3))/0xa+parseInt(_0x106a25(0xf7))/0xb;if(_0x4dbb9c===_0x3f0d36)break;else _0x2d23ca['push'](_0x2d23ca['shift']());}catch(_0x471dc9){_0x2d23ca['push'](_0x2d23ca['shift']());}}}(a237_0x14bc,0x6c08e));function a237_0x14bc(){const _0x3dc0c6=['170536RITHkK','2846616mkpnLe','11633onAcxF','string','50BnZDJB','8240820ZhlMHG','648APgDMu','1899UGUxcc','3527860vKtQGa','17916338fYRNtD','171AjhfQl','includes','7TIyekC'];a237_0x14bc=function(){return _0x3dc0c6;};return a237_0x14bc();}import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x2a2e26){const _0x1c1ad6=a237_0x5b33;return typeof _0x2a2e26==='string'&&LOVRABET_REGION_VALUES[_0x1c1ad6(0xec)](_0x2a2e26);}export function isEnabledLovrabetRegion(_0x5d81ca){const _0x5f273a=a237_0x5b33;return typeof _0x5d81ca===_0x5f273a(0xf1)&&ENABLED_LOVRABET_REGION_VALUES['includes'](_0x5d81ca);}export function normalizeLovrabetRegion(_0x13cab9){const _0x46a1d5=a237_0x5b33;if(typeof _0x13cab9!==_0x46a1d5(0xf1))return undefined;const _0x5435e8=REGION_ALIASES[_0x13cab9]??_0x13cab9;return isLovrabetRegion(_0x5435e8)?_0x5435e8:undefined;}function a237_0x5b33(_0x48c61c,_0xb943da){_0x48c61c=_0x48c61c-0xeb;const _0x14bcfb=a237_0x14bc();let _0x5b332b=_0x14bcfb[_0x48c61c];return _0x5b332b;}export function isInvalidLovrabetRegion(_0x132fa7){return _0x132fa7!==undefined&&_0x132fa7!==null&&_0x132fa7!==''&&normalizeLovrabetRegion(_0x132fa7)===undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a238_0x1fdb89=a238_0x394b;(function(_0x614cc8,_0x5576a2){const _0x374a45=a238_0x394b,_0x30653b=_0x614cc8();while(!![]){try{const _0x3b12d1=parseInt(_0x374a45(0x180))/0x1+parseInt(_0x374a45(0x187))/0x2+parseInt(_0x374a45(0x186))/0x3+-parseInt(_0x374a45(0x189))/0x4+parseInt(_0x374a45(0x184))/0x5+-parseInt(_0x374a45(0x185))/0x6+-parseInt(_0x374a45(0x181))/0x7*(-parseInt(_0x374a45(0x183))/0x8);if(_0x3b12d1===_0x5576a2)break;else _0x30653b['push'](_0x30653b['shift']());}catch(_0x2efce9){_0x30653b['push'](_0x30653b['shift']());}}}(a238_0xa2dc,0x69aca));function a238_0x394b(_0x301508,_0x425c2a){_0x301508=_0x301508-0x180;const _0xa2dc80=a238_0xa2dc();let _0x394bf7=_0xa2dc80[_0x301508];return _0x394bf7;}export const RISK_LEVEL_VALUES=['read',a238_0x1fdb89(0x182),a238_0x1fdb89(0x188)];function a238_0xa2dc(){const _0x3bb0c8=['266500QVNFbQ','high-risk-write','804052aMqDcy','232914bsmwSJ','1276919rfaasO','write','8fWOxId','1074540HhrKeK','3535320HdxYPH','1378758bKwNBG'];a238_0xa2dc=function(){return _0x3bb0c8;};return a238_0xa2dc();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a239_0x5d33(_0xbc22f,_0x26fda4){_0xbc22f=_0xbc22f-0x88;const _0xfabaec=a239_0xfaba();let _0x5d339a=_0xfabaec[_0xbc22f];return _0x5d339a;}(function(_0x4f5957,_0x10a057){const _0x3c929d=a239_0x5d33,_0x5c3ad0=_0x4f5957();while(!![]){try{const _0x3cfa13=-parseInt(_0x3c929d(0x95))/0x1*(parseInt(_0x3c929d(0x89))/0x2)+parseInt(_0x3c929d(0x94))/0x3*(parseInt(_0x3c929d(0x93))/0x4)+parseInt(_0x3c929d(0x8f))/0x5+parseInt(_0x3c929d(0x8c))/0x6*(parseInt(_0x3c929d(0x8e))/0x7)+-parseInt(_0x3c929d(0x96))/0x8*(parseInt(_0x3c929d(0x90))/0x9)+-parseInt(_0x3c929d(0x88))/0xa+-parseInt(_0x3c929d(0x92))/0xb*(-parseInt(_0x3c929d(0x8a))/0xc);if(_0x3cfa13===_0x10a057)break;else _0x5c3ad0['push'](_0x5c3ad0['shift']());}catch(_0xe6b450){_0x5c3ad0['push'](_0x5c3ad0['shift']());}}}(a239_0xfaba,0x644d4));import{OFFICIAL_ROUTING_PROFILES as a239_0xe5f54a,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a239_0xe5f54a;export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x32f44f){return OFFICIAL_ROUTING_PROFILES[_0x32f44f];}function a239_0xfaba(){const _0x44a7b1=['\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','44nkJVDd','4TEYulH','215895koWomy','80krMGgX','8Fevmcu','libraries','1671230jKnLmM','3376wMAXOl','145764qketvz','lovrabet','4616022WArtbu','cdn','7fWljLP','2769940kFaKOn','6577911oTwaeP'];a239_0xfaba=function(){return _0x44a7b1;};return a239_0xfaba();}export function getOfficialRoutingCdn(_0x44bc42){const _0x4a6da7=a239_0x5d33,_0x43e4f0=getOfficialRoutingProfile(_0x44bc42)[_0x4a6da7(0x8d)];if(!_0x43e4f0[_0x4a6da7(0x8b)])throw new Error('Official\x20routing\x20for\x20region\x20\x22'+_0x44bc42+_0x4a6da7(0x91));return{'libraries':_0x43e4f0[_0x4a6da7(0x97)],'lovrabet':_0x43e4f0[_0x4a6da7(0x8b)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x107c3d,_0x1b5298){const _0x484354=a240_0x1a15,_0x1ffafd=_0x107c3d();while(!![]){try{const _0x40e9ff=parseInt(_0x484354(0x1ce))/0x1+-parseInt(_0x484354(0x1bd))/0x2+parseInt(_0x484354(0x1b8))/0x3*(-parseInt(_0x484354(0x1c5))/0x4)+parseInt(_0x484354(0x1d6))/0x5+-parseInt(_0x484354(0x1d7))/0x6*(parseInt(_0x484354(0x1c9))/0x7)+-parseInt(_0x484354(0x1c2))/0x8+-parseInt(_0x484354(0x1cc))/0x9;if(_0x40e9ff===_0x1b5298)break;else _0x1ffafd['push'](_0x1ffafd['shift']());}catch(_0x3ea502){_0x1ffafd['push'](_0x1ffafd['shift']());}}}(a240_0x543b,0x77b10));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a240_0x543b(){const _0x331a64=['entries','length','object','read','find','9nUveZJ','pageSize','string','apiDir','cookie','384472jTOknV','riskLevel','projectConfig','keys','RISK_LEVEL','3280136pCZscw','ACCESS_KEY','high-risk-write','255396xcpgkA','projectPath','locale','FORMAT','34951YBMAag','defaultApp','globalConfig','2067759lkhaph','app','825903LaBjGj','format','ENV','apps','appcode','write','daily','PAGE_SIZE','3664205kKDKic','54QjEOeP','env','VERBOSE','trim','accessKey'];a240_0x543b=function(){return _0x331a64;};return a240_0x543b();}import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x404536){const _0x59af07=a240_0x1a15;return typeof _0x404536===_0x59af07(0x1ba)&&_0x404536[_0x59af07(0x1da)]()?_0x404536[_0x59af07(0x1da)]():undefined;}function appProfiles(_0x443a18){const _0x459d46=a240_0x1a15;return _0x443a18['apps']&&typeof _0x443a18[_0x459d46(0x1d1)]==='object'?_0x443a18['apps']:{};}function a240_0x1a15(_0x47d513,_0x15ef77){_0x47d513=_0x47d513-0x1b2;const _0x543bea=a240_0x543b();let _0x1a15ff=_0x543bea[_0x47d513];return _0x1a15ff;}function resolveDefaultAppName(_0x193b97){const _0x36ff17=a240_0x1a15,_0x2ddb99=stringConfigValue(_0x193b97[_0x36ff17(0x1ca)]);if(_0x2ddb99)return _0x2ddb99;const _0x15a986=Object[_0x36ff17(0x1c0)](appProfiles(_0x193b97));return _0x15a986[_0x36ff17(0x1b4)]===0x1?_0x15a986[0x0]:undefined;}function resolveTopLevelAppCode(_0x2f5f4f){const _0x12cfbd=a240_0x1a15;return stringConfigValue(_0x2f5f4f[_0x12cfbd(0x1d2)])||stringConfigValue(_0x2f5f4f[_0x12cfbd(0x1cd)]);}function normalizeRiskCeiling(_0x412122){const _0x20045d=a240_0x1a15;if(_0x412122===undefined||_0x412122===null)return undefined;if(_0x412122===_0x20045d(0x1b6)||_0x412122===_0x20045d(0x1d3)||_0x412122===_0x20045d(0x1c4))return _0x412122;return'read';}function resolveRiskCeiling(..._0x2d60bf){const _0x2858c0=a240_0x1a15;let _0x2ecdab;for(const _0x2509d6 of _0x2d60bf){const _0x381fe2=normalizeRiskCeiling(_0x2509d6);_0x381fe2&&(!_0x2ecdab||riskLevelOrder(_0x381fe2)<riskLevelOrder(_0x2ecdab))&&(_0x2ecdab=_0x381fe2);}return _0x2ecdab??DEFAULT_CONFIG_VALUES[_0x2858c0(0x1be)];}export function resolveAppConfig({raw:_0x23fc67,flags:_0x58a3e3,layers:_0x35dc82,readEnv:_0x5cc546}){const _0x43c2a1=a240_0x1a15,_0x4d4ee7=_0x35dc82?.[_0x43c2a1(0x1bf)]??{},_0x5dcdc8=_0x35dc82?.['globalConfig']??{},_0x5efc00=!!_0x35dc82?.[_0x43c2a1(0x1c6)]||Object[_0x43c2a1(0x1c0)](_0x4d4ee7)[_0x43c2a1(0x1b4)]>0x0,_0x5d8066=!_0x5efc00,_0x34e211=_0x5efc00?resolveDefaultAppName(_0x4d4ee7):undefined,_0x219ad3=_0x5d8066?resolveDefaultAppName(_0x5dcdc8):undefined,_0x134ce5=stringConfigValue(_0x58a3e3[_0x43c2a1(0x1cd)]),_0x252257=_0x5cc546('APP'),_0x77f3cc={};if(_0x23fc67['apps']&&typeof _0x23fc67['apps']===_0x43c2a1(0x1b5))for(const [_0x54cf8b,_0x58ed24]of Object[_0x43c2a1(0x1b3)](_0x23fc67[_0x43c2a1(0x1d1)])){_0x58ed24&&typeof _0x58ed24===_0x43c2a1(0x1b5)&&_0x58ed24[_0x43c2a1(0x1d2)]&&(_0x77f3cc[_0x54cf8b]=_0x58ed24);}const _0x88fc13=_0x34e211||_0x219ad3||resolveDefaultAppName(_0x23fc67),_0x10169c=Object['keys'](_0x77f3cc)[_0x43c2a1(0x1b4)]>0x0,_0x223c32=_0x134ce5||_0x34e211||_0x252257||_0x219ad3||_0x88fc13||undefined,_0x400f89=stringConfigValue(_0x58a3e3[_0x43c2a1(0x1d2)]),_0x4b645e=_0x400f89?Object[_0x43c2a1(0x1b3)](_0x77f3cc)[_0x43c2a1(0x1b7)](([,_0x7d2523])=>_0x7d2523?.[_0x43c2a1(0x1d2)]===_0x400f89):undefined,_0x572d81=_0x4b645e?.[0x0],_0xf0a22b=_0x4b645e?.[0x1],_0x547889=_0x400f89?_0x572d81:_0x223c32;let _0xa5623e=_0x547889&&_0x77f3cc[_0x547889]?_0x77f3cc[_0x547889]:undefined;_0x400f89&&_0xf0a22b&&(_0xa5623e=_0xf0a22b);const _0x8d25f6=_0x400f89?_0xf0a22b??_0xa5623e:_0xa5623e,_0xf17e46=!_0x134ce5&&!_0x34e211&&_0x252257&&_0x547889===_0x252257,_0x11c8d6=_0x134ce5||(_0xf17e46?_0x252257:undefined)||(_0x400f89?_0x572d81:undefined),_0x1fb7cf=_0x8d25f6?.[_0x43c2a1(0x1d2)],_0x4c13e1=_0x5efc00?resolveTopLevelAppCode(_0x4d4ee7):undefined,_0x5aa169=_0x5d8066?resolveTopLevelAppCode(_0x5dcdc8):undefined,_0x39bafe=_0x134ce5||_0x34e211?_0x1fb7cf:undefined,_0x424ef0=!_0x134ce5&&!_0x34e211?_0x1fb7cf:undefined,_0x97e80c=_0x400f89||_0x39bafe||_0x4c13e1||_0x424ef0||_0x5aa169||undefined,_0x43f1e6=_0x5efc00?stringConfigValue(_0x4d4ee7[_0x43c2a1(0x1d8)]):undefined,_0x303d99=_0x5d8066?stringConfigValue(_0x5dcdc8['env']):undefined,_0x36f231=_0x58a3e3[_0x43c2a1(0x1d8)]||_0x8d25f6?.[_0x43c2a1(0x1d8)]||_0x43f1e6||_0x5cc546(_0x43c2a1(0x1d0))||_0x303d99||_0x23fc67[_0x43c2a1(0x1d8)]||DEFAULT_CONFIG_VALUES[_0x43c2a1(0x1d8)],_0x23661b=_0x8d25f6?.[_0x43c2a1(0x1c7)]||_0x23fc67[_0x43c2a1(0x1c7)]||DEFAULT_CONFIG_VALUES[_0x43c2a1(0x1c7)],_0x1098f6=_0x5cc546('COOKIE')||_0x8d25f6?.[_0x43c2a1(0x1bc)]||_0x23fc67['cookie']||undefined,_0x5d25ff=_0x5cc546(_0x43c2a1(0x1c3))||_0x8d25f6?.[_0x43c2a1(0x1b2)]||_0x23fc67[_0x43c2a1(0x1b2)]||undefined,_0x853de3=_0x58a3e3[_0x43c2a1(0x1cf)]||_0x5cc546(_0x43c2a1(0x1c8))||_0x8d25f6?.[_0x43c2a1(0x1cf)]||_0x23fc67[_0x43c2a1(0x1cf)],_0x3e91f5=normalizeLegacyOutputFormat(_0x853de3),_0x3e30a2=_0x5cc546(_0x43c2a1(0x1d5))||_0x8d25f6?.[_0x43c2a1(0x1b9)]||_0x23fc67[_0x43c2a1(0x1b9)],_0xee5fc7=_0x3e30a2?Number(_0x3e30a2)||undefined:undefined,_0x4a70cf=_0x35dc82?[_0x35dc82[_0x43c2a1(0x1cb)][_0x43c2a1(0x1be)],_0x35dc82[_0x43c2a1(0x1bf)][_0x43c2a1(0x1be)]]:[_0x23fc67[_0x43c2a1(0x1be)]],_0x898715=resolveRiskCeiling(..._0x4a70cf,_0x8d25f6?.[_0x43c2a1(0x1be)]),_0xe5d115=resolveRiskCeiling(_0x898715,_0x5cc546(_0x43c2a1(0x1c1))),_0x4365a9=_0x5cc546(_0x43c2a1(0x1d9)),_0x1b2709=_0x4365a9==='1'||_0x4365a9==='true',_0x526539=_0x8d25f6?.[_0x43c2a1(0x1bb)]||_0x23fc67[_0x43c2a1(0x1bb)]||DEFAULT_CONFIG_VALUES[_0x43c2a1(0x1bb)],_0x4baf5a=isDaily(normalizeEnv(String(_0x36f231)))?_0x43c2a1(0x1d4):'production';return{'appCode':typeof _0x97e80c===_0x43c2a1(0x1ba)&&_0x97e80c[_0x43c2a1(0x1da)]()?_0x97e80c['trim']():undefined,'env':_0x4baf5a,'locale':_0x23661b,'cookie':_0x1098f6,'accessKey':_0x5d25ff,'format':_0x3e91f5,'pageSize':_0xee5fc7,'riskLevel':_0xe5d115,'verbose':_0x1b2709,'apiDir':_0x526539,'apps':_0x77f3cc,'defaultApp':_0x88fc13,'currentApp':_0x10169c?_0x547889:undefined,'explicitAppName':_0x11c8d6};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a241_0x3f91(){const _0x395fab=['463784IrvkVE','16479KGahCU','authRequired','2706585qOZNVa','1955688BOoEYZ','../auth/get-cookie.js','7WrgSJO','452ocOYXK','100hvRRlj','cookie','2dOtduZ','16289130bHPIxe','3881432hRHFNw','78534HjOYnV'];a241_0x3f91=function(){return _0x395fab;};return a241_0x3f91();}(function(_0x528952,_0x47e799){const _0x5d9a1a=a241_0x500c,_0x113f55=_0x528952();while(!![]){try{const _0x479b21=parseInt(_0x5d9a1a(0x89))/0x1*(-parseInt(_0x5d9a1a(0x8d))/0x2)+-parseInt(_0x5d9a1a(0x80))/0x3*(-parseInt(_0x5d9a1a(0x86))/0x4)+-parseInt(_0x5d9a1a(0x82))/0x5+parseInt(_0x5d9a1a(0x83))/0x6*(-parseInt(_0x5d9a1a(0x85))/0x7)+-parseInt(_0x5d9a1a(0x8b))/0x8+-parseInt(_0x5d9a1a(0x8c))/0x9*(-parseInt(_0x5d9a1a(0x87))/0xa)+parseInt(_0x5d9a1a(0x8a))/0xb;if(_0x479b21===_0x47e799)break;else _0x113f55['push'](_0x113f55['shift']());}catch(_0x3a8251){_0x113f55['push'](_0x113f55['shift']());}}}(a241_0x3f91,0x5af5b));function a241_0x500c(_0xa7ac0b,_0x6457d0){_0xa7ac0b=_0xa7ac0b-0x80;const _0x3f913a=a241_0x3f91();let _0x500c2d=_0x3f913a[_0xa7ac0b];return _0x500c2d;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x2d05fa){const _0x50121b=a241_0x500c,{getCookie:_0x15730e}=await import(_0x50121b(0x84)),_0x3f4ff8=_0x2d05fa[_0x50121b(0x88)]||_0x15730e(),_0x2f2a23=_0x3f4ff8?await getIsSessionValid():![];return{'cookie':_0x3f4ff8,'isLoggedIn':_0x2f2a23,async 'getOrLogin'(){const _0x1d2998=_0x50121b;if(_0x3f4ff8&&_0x2f2a23)return _0x3f4ff8;throw CliErrors[_0x1d2998(0x81)]();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a242_0x42c1ad=a242_0xe335;(function(_0x228b94,_0x510530){const _0x388d1b=a242_0xe335,_0x5bbbf1=_0x228b94();while(!![]){try{const _0x443b99=parseInt(_0x388d1b(0x18d))/0x1*(-parseInt(_0x388d1b(0x15d))/0x2)+parseInt(_0x388d1b(0x16b))/0x3*(parseInt(_0x388d1b(0x176))/0x4)+parseInt(_0x388d1b(0x160))/0x5+-parseInt(_0x388d1b(0x165))/0x6+-parseInt(_0x388d1b(0x190))/0x7+parseInt(_0x388d1b(0x16c))/0x8+-parseInt(_0x388d1b(0x168))/0x9;if(_0x443b99===_0x510530)break;else _0x5bbbf1['push'](_0x5bbbf1['shift']());}catch(_0x1f6569){_0x5bbbf1['push'](_0x5bbbf1['shift']());}}}(a242_0x2755,0xe9b90));function a242_0x2755(){const _0x50cb6b=['env','trim','status','data','stringify','certificateDomain','apiDomain','accessKey','pageSize','length','migrated','parse','empty','.tmp','runtimeDomain','skillDomain','inherit','134132wLukMP','config','userDomain','8030932TzugEC','app','appcode','project','Global','8lUdVvs','silent','error','9376630voOdfO','locale','string','apiDir','get','798492HwxZvm','keys','defaultApp','10701747zyhaRK','localDomain','object','3Yqcinv','7877064isdZqn','appDomain','riskLevel','missing','utf8','message','kbDomain','format','cookie','routing','4413352FyuglK','projectPath','.rabetbase.json','cwd','apps','warn'];a242_0x2755=function(){return _0x50cb6b;};return a242_0x2755();}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=a242_0x42c1ad(0x178);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x1fdd35){for(const _0x403268 of CONFIG_NAMES){const _0x4ea7c7=resolve(_0x1fdd35,_0x403268);if(existsSync(_0x4ea7c7))return _0x4ea7c7;}return undefined;}export function findProjectRootDirectory(_0x3ac1c3=process['cwd']()){let _0x581181=resolve(_0x3ac1c3);const {root:_0x341203}=parse(_0x581181),_0x45e0e4=homedir();while(!![]){if(resolveConfigPath(_0x581181)){if(_0x581181===_0x45e0e4)break;return _0x581181;}if(_0x581181===_0x341203||_0x581181===_0x45e0e4)break;const _0x173156=dirname(_0x581181);if(_0x173156===_0x581181)break;_0x581181=_0x173156;}return resolve(_0x3ac1c3);}export function getProjectConfigPath(){const _0x243de5=a242_0x42c1ad;return resolveConfigPath(process[_0x243de5(0x179)]());}function a242_0xe335(_0x378870,_0x46f1c9){_0x378870=_0x378870-0x15b;const _0x275508=a242_0x2755();let _0xe3356a=_0x275508[_0x378870];return _0xe3356a;}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x51e093){const _0x3c2ace=a242_0x42c1ad;if(!existsSync(_0x51e093))return{'status':'missing'};try{const _0x594922=readFileSync(_0x51e093,{'encoding':'utf8'});if(!_0x594922?.[_0x3c2ace(0x17d)]())return{'status':_0x3c2ace(0x188)};const _0x2c32bb=JSON[_0x3c2ace(0x187)](_0x594922);return{'status':'ok','data':_0x2c32bb};}catch(_0x288a56){return{'status':_0x3c2ace(0x15f),'message':_0x288a56 instanceof Error?_0x288a56[_0x3c2ace(0x171)]:String(_0x288a56)};}}function parseCliConfigJsonFile(_0x5d3c39,_0x4601a8,_0x62029a){const _0x43203a=a242_0x42c1ad,_0x32131b=inspectCliConfigJsonFile(_0x5d3c39);if(_0x32131b[_0x43203a(0x17e)]===_0x43203a(0x16f)||_0x32131b[_0x43203a(0x17e)]===_0x43203a(0x188))return{};if(_0x32131b['status']==='ok')return _0x32131b[_0x43203a(0x17f)];return _0x4601a8===_0x43203a(0x17b)&&_0x62029a&&console[_0x43203a(0x15f)](CLI_BIN_NAME+':\x20'+_0x62029a+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x5d3c39+'\x0a\x20\x20'+_0x32131b[_0x43203a(0x171)]),{};}function normalizeLegacyConfigShape(_0x433664){const _0xcea114=a242_0x42c1ad;if(!_0x433664||typeof _0x433664!==_0xcea114(0x16a))return{'config':{},'migrated':![]};const _0x13a6b0={..._0x433664},_0x380358=_0x13a6b0[_0xcea114(0x17a)]&&typeof _0x13a6b0[_0xcea114(0x17a)]===_0xcea114(0x16a)?{..._0x13a6b0[_0xcea114(0x17a)]}:{},_0x7492a4=Object[_0xcea114(0x166)](_0x380358)[_0xcea114(0x185)],_0x2c5cfd=_0x13a6b0[_0xcea114(0x192)]||_0x13a6b0[_0xcea114(0x191)];let _0x1d6692=![];if(_0x2c5cfd&&_0x7492a4===0x0){const _0x4dcffc=typeof _0x13a6b0[_0xcea114(0x167)]===_0xcea114(0x162)&&_0x13a6b0['defaultApp'][_0xcea114(0x17d)]()?_0x13a6b0['defaultApp']:String(_0x2c5cfd)[_0xcea114(0x17d)]();_0x380358[_0x4dcffc]={'appcode':String(_0x2c5cfd)[_0xcea114(0x17d)](),..._0x13a6b0[_0xcea114(0x17c)]!=null?{'env':_0x13a6b0[_0xcea114(0x17c)]}:{},..._0x13a6b0[_0xcea114(0x163)]!=null?{'apiDir':_0x13a6b0['apiDir']}:{},..._0x13a6b0[_0xcea114(0x174)]!=null?{'cookie':_0x13a6b0[_0xcea114(0x174)]}:{},..._0x13a6b0[_0xcea114(0x183)]!=null?{'accessKey':_0x13a6b0[_0xcea114(0x183)]}:{},..._0x13a6b0[_0xcea114(0x173)]!=null?{'format':_0x13a6b0[_0xcea114(0x173)]}:{},..._0x13a6b0[_0xcea114(0x184)]!=null?{'pageSize':_0x13a6b0[_0xcea114(0x184)]}:{},..._0x13a6b0[_0xcea114(0x16e)]!=null?{'riskLevel':_0x13a6b0[_0xcea114(0x16e)]}:{},..._0x13a6b0[_0xcea114(0x161)]!=null?{'locale':_0x13a6b0['locale']}:{}},_0x13a6b0[_0xcea114(0x17a)]=_0x380358,delete _0x13a6b0[_0xcea114(0x167)],_0x1d6692=!![];}return(_0xcea114(0x192)in _0x13a6b0||_0xcea114(0x191)in _0x13a6b0)&&(delete _0x13a6b0[_0xcea114(0x192)],delete _0x13a6b0[_0xcea114(0x191)],_0x1d6692=!![]),{'config':_0x13a6b0,'migrated':_0x1d6692};}function writeNormalizedConfigIfNeeded(_0x5a2e9a,_0x56f49b){const _0x420ddb=a242_0x42c1ad,_0x41da7c=JSON[_0x420ddb(0x180)](_0x56f49b,null,0x2)+'\x0a';if(normalizedWriteCache[_0x420ddb(0x164)](_0x5a2e9a)===_0x41da7c)return;writeConfigFile(_0x5a2e9a,_0x56f49b),normalizedWriteCache['set'](_0x5a2e9a,_0x41da7c);}function parseAndNormalizeConfig(_0x37ce1f,_0x3820fb,_0x553b68){const _0x741467=a242_0x42c1ad,_0x293992=parseCliConfigJsonFile(_0x37ce1f,_0x3820fb,_0x553b68),_0x29136d=normalizeLegacyConfigShape(_0x293992);if(_0x29136d[_0x741467(0x186)])try{writeNormalizedConfigIfNeeded(_0x37ce1f,_0x29136d[_0x741467(0x18e)]);}catch{}return _0x29136d[_0x741467(0x18e)];}export function loadRawConfigLayers(_0x4203eb){const _0x188038=a242_0x42c1ad;let _0x1e94de={},_0x58635e={};const _0x578c57=resolveConfigPath(homedir());_0x578c57&&(_0x1e94de=parseAndNormalizeConfig(_0x578c57,_0x188038(0x17b),_0x188038(0x15c)));const _0x1a1520=_0x4203eb??findProjectRootDirectory(),_0x593bb4=resolveConfigPath(_0x1a1520);return _0x593bb4&&(_0x58635e=parseAndNormalizeConfig(_0x593bb4,_0x188038(0x17b),'Project')),{'globalPath':_0x578c57,'projectPath':_0x593bb4,'globalConfig':_0x1e94de,'projectConfig':_0x58635e};}const INHERIT_WHITELIST=['cookie',a242_0x42c1ad(0x183),a242_0x42c1ad(0x161),a242_0x42c1ad(0x173),'riskLevel',a242_0x42c1ad(0x184),'region',a242_0x42c1ad(0x175),a242_0x42c1ad(0x18f),a242_0x42c1ad(0x182),a242_0x42c1ad(0x18a),a242_0x42c1ad(0x18b),a242_0x42c1ad(0x172),a242_0x42c1ad(0x16d),a242_0x42c1ad(0x169),a242_0x42c1ad(0x181)];export function mergeRawConfigLayers(_0x4ce876){const _0x1b4ec5=a242_0x42c1ad,{globalConfig:_0x4e010a,projectConfig:_0x403b65}=_0x4ce876,_0x10ecd9=!!_0x4ce876[_0x1b4ec5(0x177)]||Object['keys'](_0x403b65)[_0x1b4ec5(0x185)]>0x0;if(!_0x10ecd9)return mergeGlobalOnly(_0x4e010a);return mergeProjectFirst(_0x4e010a,_0x403b65);}function mergeGlobalOnly(_0x2a3e67){const _0x284e5d=a242_0x42c1ad,_0x25ee56={..._0x2a3e67};delete _0x25ee56[_0x284e5d(0x18c)];const _0x833e6e=_0x2a3e67['apps']&&typeof _0x2a3e67[_0x284e5d(0x17a)]===_0x284e5d(0x16a)?_0x2a3e67['apps']:{};if(Object['keys'](_0x833e6e)['length']>0x0)_0x25ee56[_0x284e5d(0x17a)]=_0x833e6e;if(_0x2a3e67['defaultApp'])_0x25ee56[_0x284e5d(0x167)]=_0x2a3e67[_0x284e5d(0x167)];return _0x25ee56;}function mergeProjectFirst(_0x8897a1,_0x9ff4dc){const _0x1a3286=a242_0x42c1ad,_0x5e29ec={..._0x9ff4dc};delete _0x5e29ec[_0x1a3286(0x18c)];for(const _0x1fdf81 of INHERIT_WHITELIST){!(_0x1fdf81 in _0x5e29ec)&&_0x1fdf81 in _0x8897a1&&(_0x5e29ec[_0x1fdf81]=_0x8897a1[_0x1fdf81]);}const _0xe98ebc=_0x9ff4dc['apps']&&typeof _0x9ff4dc[_0x1a3286(0x17a)]===_0x1a3286(0x16a)?_0x9ff4dc[_0x1a3286(0x17a)]:{};return Object[_0x1a3286(0x166)](_0xe98ebc)[_0x1a3286(0x185)]>0x0?_0x5e29ec[_0x1a3286(0x17a)]=_0xe98ebc:delete _0x5e29ec[_0x1a3286(0x17a)],_0x1a3286(0x167)in _0x9ff4dc?_0x5e29ec['defaultApp']=_0x9ff4dc[_0x1a3286(0x167)]:delete _0x5e29ec[_0x1a3286(0x167)],_0x5e29ec;}export function readRawConfigWithLayers(_0x1aca46){const _0xa8b456=loadRawConfigLayers(_0x1aca46);return{'config':mergeRawConfigLayers(_0xa8b456),'layers':_0xa8b456};}export function readRawConfig(_0x530421){return mergeRawConfigLayers(loadRawConfigLayers(_0x530421));}export function readConfigFile(_0x4d4827){const _0x123fe7=a242_0x42c1ad;return parseAndNormalizeConfig(_0x4d4827,_0x123fe7(0x15e));}export function writeConfigFile(_0x22dbf8,_0x3b4dba){const _0xe2b79=a242_0x42c1ad,_0x5a3c5b=dirname(_0x22dbf8);!existsSync(_0x5a3c5b)&&mkdirSync(_0x5a3c5b,{'recursive':!![]});const _0x1ed55a=_0x22dbf8+_0xe2b79(0x189);try{writeFileSync(_0x1ed55a,JSON[_0xe2b79(0x180)](_0x3b4dba,null,0x2)+'\x0a',{'encoding':_0xe2b79(0x170),'mode':0x180}),renameSync(_0x1ed55a,_0x22dbf8);}catch(_0x37b8eb){try{unlinkSync(_0x1ed55a);}catch{}throw _0x37b8eb;}}export function resolveWriteConfigPath(_0x3fd8d4){const _0x49edab=a242_0x42c1ad,_0x3e60bf=_0x3fd8d4===_0x49edab(0x15b)?process[_0x49edab(0x179)]():homedir(),_0x201ed0=resolveConfigPath(_0x3e60bf);return _0x201ed0??resolve(_0x3e60bf,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
+
const a243_0x3770c8=a243_0x566a;(function(_0x180137,_0x4f5b1a){const _0x2d28d3=a243_0x566a,_0x3b7369=_0x180137();while(!![]){try{const _0xf8925=parseInt(_0x2d28d3(0x133))/0x1+-parseInt(_0x2d28d3(0x129))/0x2*(-parseInt(_0x2d28d3(0x13c))/0x3)+-parseInt(_0x2d28d3(0x147))/0x4*(parseInt(_0x2d28d3(0x143))/0x5)+parseInt(_0x2d28d3(0x146))/0x6*(-parseInt(_0x2d28d3(0x132))/0x7)+-parseInt(_0x2d28d3(0x12c))/0x8+-parseInt(_0x2d28d3(0x127))/0x9+parseInt(_0x2d28d3(0x126))/0xa;if(_0xf8925===_0x4f5b1a)break;else _0x3b7369['push'](_0x3b7369['shift']());}catch(_0x3ba190){_0x3b7369['push'](_0x3b7369['shift']());}}}(a243_0x2ceb,0x2d483));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion,normalizeLovrabetRegion}from'./constant/region.js';import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';function a243_0x2ceb(){const _0xa5c170=['10CRSyCX','setRawCommand','./constant/domain.js','11742ySFkEO','271384WLmsRT','routing','stringify','template_base_url','apiDir','a\x20value\x20of\x20type\x20','app','null','cookie','apps','runtimeDomain','projectConfig','kbDomain','merged','find','https://g.lovrabet.com/dist/lovrabet-skill','./constant/env.js','-api.ts','slice','skillDomain','values','cwd','trim','config','localDomain','5883110qKlTye','3126060wxrzck','certificateDomain','2VLLLTW','raw','agentDomain','2308184GdEMUT','globalConfig','join','domains','\x20doctor`\x20to\x20locate\x20and\x20repair\x20the\x20invalid\x20configuration\x20before\x20retrying.','length','91XhbOxm','129822oETycJ','Run\x20`','env','object','string','keys','project','setLogPath','api.ts','793014deyLVl','appDomain','userDomain','cdn','entries','appcode','defaultApp'];a243_0x2ceb=function(){return _0xa5c170;};return a243_0x2ceb();}export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x3d66f5){return process.env[`RABETBASE_${_0x3d66f5}`]||process.env[`LOVRABET_${_0x3d66f5}`]||undefined;}function optionalString(_0x533aad){const _0x1161b9=a243_0x566a;return typeof _0x533aad==='string'&&_0x533aad[_0x1161b9(0x123)]()?_0x533aad[_0x1161b9(0x123)]():undefined;}function a243_0x566a(_0xe7c251,_0x25ae58){_0xe7c251=_0xe7c251-0x117;const _0x2cebad=a243_0x2ceb();let _0x566a1a=_0x2cebad[_0xe7c251];return _0x566a1a;}function describeConfiguredRegion(_0x2e1a92){const _0x438e8e=a243_0x566a;return typeof _0x2e1a92==='string'?JSON[_0x438e8e(0x149)](_0x2e1a92):_0x438e8e(0x14c)+(_0x2e1a92===null?_0x438e8e(0x14e):typeof _0x2e1a92);}function resolveConfiguredRegion(_0x94155a){const _0x105984=a243_0x566a;if(isInvalidLovrabetRegion(_0x94155a))throw CliErrors['validation']('Invalid\x20country/region\x20'+describeConfiguredRegion(_0x94155a)+'\x20in\x20Rabetbase\x20configuration.',_0x105984(0x134)+CLI_BIN_NAME+_0x105984(0x130));return normalizeLovrabetRegion(_0x94155a)??DEFAULT_LOVRABET_REGION;}export function isRoutingRecoveryService(_0x47fb86){const _0x4c8f3c=a243_0x566a;return _0x47fb86===_0x4c8f3c(0x124)||_0x47fb86==='doctor';}export async function createContext(_0x7eacca){const _0x38b7b8=a243_0x566a,{config:_0x23b51c,layers:_0x617544}=readRawConfigWithLayers(),_0x13733c=buildConfig(_0x23b51c,_0x7eacca,_0x617544);await initGlobalEnvironment(_0x13733c);const {getUserDomain:_0x3d083e,getApiDomain:_0x48ab64}=await import(_0x38b7b8(0x145)),_0x4682d4={'apiDomain':_0x48ab64(),'userDomain':_0x3d083e()},_0x10c271=await buildAuth(_0x13733c);logger[_0x38b7b8(0x13a)](process['cwd']());const _0x1810ff=(CLI_BIN_NAME+'\x20'+process['argv'][_0x38b7b8(0x11f)](0x2)[_0x38b7b8(0x12e)]('\x20'))[_0x38b7b8(0x123)]();logger[_0x38b7b8(0x144)](_0x1810ff);const {isNonInteractive:_0x4f4e11}=await import('./utils/is-non-interactive.js'),_0x87663a=_0x4f4e11(_0x7eacca);return{'config':_0x13733c,'auth':_0x10c271,'logger':logger,'env':_0x4682d4,'nonInteractive':_0x87663a};}export function buildConfigFromFlags(_0x1de3aa){const {config:_0x4315c8,layers:_0x468a30}=readRawConfigWithLayers();return buildConfig(_0x4315c8,_0x1de3aa,_0x468a30);}export async function initGlobalEnvironment(_0x209528){const _0x30eb63=a243_0x566a,_0x23896f=resolveConfiguredRegion(_0x209528['raw']?.['region']),_0x1d340c=resolveEnterpriseRoutingManifest(_0x209528[_0x30eb63(0x12a)]?.[_0x30eb63(0x148)]),_0x28e579={'region':_0x23896f,'apiDomain':_0x1d340c?_0x1d340c[_0x30eb63(0x12f)]['apiDomain']:optionalString(_0x209528[_0x30eb63(0x12a)]?.['apiDomain']),'userDomain':_0x1d340c?_0x1d340c[_0x30eb63(0x12f)][_0x30eb63(0x13e)]:optionalString(_0x209528[_0x30eb63(0x12a)]?.[_0x30eb63(0x13e)]),'runtimeDomain':_0x1d340c?_0x1d340c[_0x30eb63(0x12f)][_0x30eb63(0x117)]:optionalString(_0x209528['raw']?.[_0x30eb63(0x117)]),'skillDomain':_0x1d340c?_0x1d340c[_0x30eb63(0x12f)][_0x30eb63(0x120)]:optionalString(_0x209528[_0x30eb63(0x12a)]?.[_0x30eb63(0x120)])||optionalString(_0x209528[_0x30eb63(0x12a)]?.['skillHubDomain'])||optionalString(_0x209528[_0x30eb63(0x12a)]?.[_0x30eb63(0x12b)])||optionalString(_0x209528[_0x30eb63(0x12a)]?.['platformDomain']),'kbDomain':_0x1d340c?_0x1d340c[_0x30eb63(0x12f)][_0x30eb63(0x119)]:optionalString(_0x209528[_0x30eb63(0x12a)]?.['kbDomain'])||optionalString(_0x209528[_0x30eb63(0x12a)]?.[_0x30eb63(0x12b)])||optionalString(_0x209528[_0x30eb63(0x12a)]?.['platformDomain']),'appDomain':_0x1d340c?_0x1d340c[_0x30eb63(0x12f)][_0x30eb63(0x13d)]:optionalString(_0x209528['raw']?.[_0x30eb63(0x13d)]),'localDomain':_0x1d340c?_0x1d340c['domains']['localDomain']:optionalString(_0x209528['raw']?.[_0x30eb63(0x125)]),'certificateDomain':_0x1d340c?_0x1d340c['domains'][_0x30eb63(0x128)]:optionalString(_0x209528[_0x30eb63(0x12a)]?.['certificateDomain']),'cdn':_0x1d340c?.[_0x30eb63(0x13f)]},{initEnv:_0x5aafbc}=await import(_0x30eb63(0x11d)),{initDomains:_0x2a3313}=await import(_0x30eb63(0x145));_0x5aafbc(_0x209528[_0x30eb63(0x135)]),_0x2a3313(_0x28e579);}export function getConfigAppCode(_0x125c24){const _0x2b09dc=a243_0x566a,_0x2ee588=readRawConfig(_0x125c24);if(_0x2ee588[_0x2b09dc(0x150)]&&typeof _0x2ee588[_0x2b09dc(0x150)]==='object'){const _0x1148dd=_0x2ee588['defaultApp'];if(_0x1148dd)return _0x2ee588[_0x2b09dc(0x150)][_0x1148dd]?.['appcode']?String(_0x2ee588['apps'][_0x1148dd]['appcode'])[_0x2b09dc(0x123)]():undefined;const _0x120cb3=Object[_0x2b09dc(0x121)](_0x2ee588[_0x2b09dc(0x150)]);if(_0x120cb3[_0x2b09dc(0x131)]===0x1&&_0x120cb3[0x0]?.[_0x2b09dc(0x141)])return String(_0x120cb3[0x0][_0x2b09dc(0x141)])[_0x2b09dc(0x123)]();}const _0x33952c=_0x2ee588[_0x2b09dc(0x141)]||_0x2ee588[_0x2b09dc(0x14d)];if(typeof _0x33952c!=='string'||_0x33952c[_0x2b09dc(0x123)]()==='')return undefined;return _0x33952c[_0x2b09dc(0x123)]();}export function getMultiAppConfigs(_0x1deadc=a243_0x3770c8(0x139),_0x34faeb){const _0x5ef8cb=a243_0x3770c8,_0x132856=loadRawConfigLayers(_0x34faeb);let _0x34b115,_0x3879f0;if(_0x1deadc===_0x5ef8cb(0x11a)){const _0x252a0c=_0x132856['globalConfig'][_0x5ef8cb(0x150)]&&typeof _0x132856[_0x5ef8cb(0x12d)][_0x5ef8cb(0x150)]==='object'?_0x132856[_0x5ef8cb(0x12d)][_0x5ef8cb(0x150)]:{},_0x32b6ae=_0x132856[_0x5ef8cb(0x118)][_0x5ef8cb(0x150)]&&typeof _0x132856['projectConfig'][_0x5ef8cb(0x150)]==='object'?_0x132856[_0x5ef8cb(0x118)][_0x5ef8cb(0x150)]:{};_0x34b115={..._0x252a0c,..._0x32b6ae};const _0x5a4d3e=readRawConfig(_0x34faeb);_0x3879f0=_0x5a4d3e[_0x5ef8cb(0x142)];}else _0x34b115=_0x132856[_0x5ef8cb(0x118)][_0x5ef8cb(0x150)],_0x3879f0=_0x132856[_0x5ef8cb(0x118)][_0x5ef8cb(0x142)];!_0x3879f0&&_0x34b115&&typeof _0x34b115==='object'&&Object[_0x5ef8cb(0x138)](_0x34b115)[_0x5ef8cb(0x131)]===0x1&&(_0x3879f0=Object[_0x5ef8cb(0x138)](_0x34b115)[0x0]);if(!_0x34b115||typeof _0x34b115!==_0x5ef8cb(0x136)||Object[_0x5ef8cb(0x138)](_0x34b115)[_0x5ef8cb(0x131)]===0x0)return null;return Object[_0x5ef8cb(0x140)](_0x34b115)['map'](([_0x5c340c,_0x207f1d])=>({'name':_0x5c340c,'appcode':_0x207f1d?.['appcode']||'','isDefault':_0x5c340c===_0x3879f0,'env':_0x207f1d?.[_0x5ef8cb(0x135)],'apiDir':_0x207f1d?.['apiDir'],'cookie':_0x207f1d?.[_0x5ef8cb(0x14f)]||undefined}))['filter'](_0x266808=>_0x266808[_0x5ef8cb(0x141)]);}export function getTemplateBaseUrl(_0xb8247d){const _0x212781=a243_0x3770c8,_0x40bcca=readRawConfig(_0xb8247d);if(_0x40bcca[_0x212781(0x14a)]&&typeof _0x40bcca[_0x212781(0x14a)]===_0x212781(0x137))return _0x40bcca[_0x212781(0x14a)]['replace'](/\/$/,'');return _0x212781(0x11c);}function buildConfig(_0x471f1b,_0x418e1b,_0x5e95ea){return{...resolveAppConfig({'raw':_0x471f1b,'flags':_0x418e1b,'layers':_0x5e95ea,'readEnv':env}),'raw':_0x471f1b};}export function resolveApiFilePath(_0xd7ea8c,_0x1fa050){const _0x14546b=a243_0x3770c8,_0x3a9b49=resolve(process[_0x14546b(0x122)](),_0xd7ea8c),_0x4e3442=resolve(_0x3a9b49,_0x14546b(0x13b));if(!_0x1fa050)return _0x4e3442;const _0x232cc3=readRawConfig(),_0x308433=_0x232cc3[_0x14546b(0x150)]&&typeof _0x232cc3[_0x14546b(0x150)]===_0x14546b(0x136)?_0x232cc3[_0x14546b(0x150)]:{},_0x41e25b=Object[_0x14546b(0x140)](_0x308433)[_0x14546b(0x11b)](([,_0xc62e60])=>_0xc62e60?.['appcode']===_0x1fa050);if(!_0x41e25b)return _0x4e3442;const [_0x2b0981,_0x58bea3]=_0x41e25b,_0x5cb71e=typeof _0x232cc3[_0x14546b(0x142)]===_0x14546b(0x137)?_0x232cc3[_0x14546b(0x142)]:undefined;if(_0x58bea3?.[_0x14546b(0x14b)])return _0x4e3442;if(_0x5cb71e&&_0x2b0981!==_0x5cb71e)return resolve(_0x3a9b49,_0x2b0981+_0x14546b(0x11e));return _0x4e3442;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3bf94e,_0x5991bf){const _0x4f6baa=a244_0x31aa,_0x295105=_0x3bf94e();while(!![]){try{const _0xe5a408=parseInt(_0x4f6baa(0x10f))/0x1*(-parseInt(_0x4f6baa(0x101))/0x2)+-parseInt(_0x4f6baa(0x10b))/0x3*(parseInt(_0x4f6baa(0x109))/0x4)+-parseInt(_0x4f6baa(0x112))/0x5+parseInt(_0x4f6baa(0x110))/0x6*(parseInt(_0x4f6baa(0x106))/0x7)+parseInt(_0x4f6baa(0x10a))/0x8*(-parseInt(_0x4f6baa(0x105))/0x9)+-parseInt(_0x4f6baa(0x103))/0xa+-parseInt(_0x4f6baa(0x107))/0xb*(-parseInt(_0x4f6baa(0x10e))/0xc);if(_0xe5a408===_0x5991bf)break;else _0x295105['push'](_0x295105['shift']());}catch(_0x220adc){_0x295105['push'](_0x295105['shift']());}}}(a244_0x575a,0xcb7e5));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';const cache=new Map();function parseApiFile(_0x2a266f){const _0x1edc7c=a244_0x31aa,_0x3eb2bf=[],_0x1805ea=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x65db3d;while((_0x65db3d=_0x1805ea[_0x1edc7c(0x113)](_0x2a266f))!==null){_0x3eb2bf[_0x1edc7c(0xff)]({'datasetCode':_0x65db3d[0x1],'tableName':_0x65db3d[0x2],'name':_0x65db3d[0x3],'alias':_0x65db3d[0x4]});}return _0x3eb2bf;}export function loadAliasMap(_0x544332,_0x407127,_0x51a69e){const _0x345266=a244_0x31aa,_0x12d6ce=_0x51a69e??resolve(process[_0x345266(0x104)](),_0x544332,'api.ts');if(cache[_0x345266(0x102)](_0x12d6ce))return cache[_0x345266(0x10d)](_0x12d6ce);if(!existsSync(_0x12d6ce))return cache[_0x345266(0x111)](_0x12d6ce,[]),[];try{const _0x3c94d4=readFileSync(_0x12d6ce,_0x345266(0x108)),_0x517112=parseApiFile(_0x3c94d4);return cache[_0x345266(0x111)](_0x12d6ce,_0x517112),_0x517112;}catch{return cache[_0x345266(0x111)](_0x12d6ce,[]),[];}}function a244_0x31aa(_0x3d66c6,_0x255e1a){_0x3d66c6=_0x3d66c6-0xfe;const _0x575adc=a244_0x575a();let _0x31aae3=_0x575adc[_0x3d66c6];return _0x31aae3;}function a244_0x575a(){const _0x5e4fa4=['cwd','27tdpuKy','210175AkTmOW','11LoaFbZ','utf-8','12LzGtRx','463080Rumadm','14277hHOLek','find','get','18244308wbxzjG','34fnArYx','96eUaaKU','set','2529195sfqfvs','exec','alias','push','datasetCode','19402YzuJef','has','1436450DaDasW'];a244_0x575a=function(){return _0x5e4fa4;};return a244_0x575a();}export function resolveAlias(_0x4e5cc8,_0x353cbc,_0x55190e,_0x5c23d6){const _0x2774cd=a244_0x31aa;if(!_0x353cbc)return undefined;const _0x5e4593=loadAliasMap(_0x4e5cc8,_0x55190e,_0x5c23d6),_0x2107c9=_0x5e4593[_0x2774cd(0x10c)](_0x3b60a0=>_0x3b60a0[_0x2774cd(0xfe)]===_0x353cbc);return _0x2107c9?.[_0x2774cd(0x100)];}export function listAliases(_0x203066,_0xc7fc8,_0x5668cd){return loadAliasMap(_0x203066,_0xc7fc8,_0x5668cd);}
|